@performant-software/geospatial 3.0.6-beta.9 → 3.0.6

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 (370) hide show
  1. package/dist/index.cjs101.js +1 -1
  2. package/dist/index.cjs102.js +1 -1
  3. package/dist/index.cjs103.js +1 -1
  4. package/dist/index.cjs104.js +1 -1
  5. package/dist/index.cjs109.js +1 -1
  6. package/dist/index.cjs110.js +1 -1
  7. package/dist/index.cjs111.js +1 -1
  8. package/dist/index.cjs112.js +1 -1
  9. package/dist/index.cjs115.js +1 -1
  10. package/dist/index.cjs116.js +1 -1
  11. package/dist/index.cjs117.js +1 -1
  12. package/dist/index.cjs121.js +1 -1
  13. package/dist/index.cjs124.js +1 -1
  14. package/dist/index.cjs128.js +1 -1
  15. package/dist/index.cjs131.js +1 -1
  16. package/dist/index.cjs139.js +1 -1
  17. package/dist/index.cjs14.js +1 -1
  18. package/dist/index.cjs140.js +1 -1
  19. package/dist/index.cjs141.js +1 -1
  20. package/dist/index.cjs142.js +1 -1
  21. package/dist/index.cjs143.js +1 -1
  22. package/dist/index.cjs144.js +1 -1
  23. package/dist/index.cjs145.js +1 -1
  24. package/dist/index.cjs147.js +1 -1
  25. package/dist/index.cjs148.js +1 -1
  26. package/dist/index.cjs149.js +1 -1
  27. package/dist/index.cjs15.js +1 -1
  28. package/dist/index.cjs150.js +1 -1
  29. package/dist/index.cjs151.js +1 -1
  30. package/dist/index.cjs152.js +1 -1
  31. package/dist/index.cjs153.js +1 -1
  32. package/dist/index.cjs154.js +1 -1
  33. package/dist/index.cjs155.js +1 -1
  34. package/dist/index.cjs158.js +1 -1
  35. package/dist/index.cjs159.js +1 -1
  36. package/dist/index.cjs16.js +1 -1
  37. package/dist/index.cjs161.js +1 -1
  38. package/dist/index.cjs162.js +1 -1
  39. package/dist/index.cjs163.js +1 -1
  40. package/dist/index.cjs164.js +1 -1
  41. package/dist/index.cjs165.js +1 -1
  42. package/dist/index.cjs166.js +1 -1
  43. package/dist/index.cjs167.js +1 -1
  44. package/dist/index.cjs168.js +1 -1
  45. package/dist/index.cjs174.js +1 -1
  46. package/dist/index.cjs175.js +1 -1
  47. package/dist/index.cjs176.js +1 -1
  48. package/dist/index.cjs177.js +1 -1
  49. package/dist/index.cjs178.js +1 -1
  50. package/dist/index.cjs181.js +1 -1
  51. package/dist/index.cjs182.js +1 -1
  52. package/dist/index.cjs183.js +1 -1
  53. package/dist/index.cjs184.js +1 -1
  54. package/dist/index.cjs19.js +1 -1
  55. package/dist/index.cjs206.js +1 -1
  56. package/dist/index.cjs206.js.map +1 -1
  57. package/dist/index.cjs207.js +1 -1
  58. package/dist/index.cjs207.js.map +1 -1
  59. package/dist/index.cjs208.js +1 -1
  60. package/dist/index.cjs208.js.map +1 -1
  61. package/dist/index.cjs209.js +1 -1
  62. package/dist/index.cjs209.js.map +1 -1
  63. package/dist/index.cjs210.js +1 -1
  64. package/dist/index.cjs210.js.map +1 -1
  65. package/dist/index.cjs211.js +1 -1
  66. package/dist/index.cjs211.js.map +1 -1
  67. package/dist/index.cjs212.js +1 -1
  68. package/dist/index.cjs212.js.map +1 -1
  69. package/dist/index.cjs213.js +1 -1
  70. package/dist/index.cjs213.js.map +1 -1
  71. package/dist/index.cjs214.js +1 -1
  72. package/dist/index.cjs214.js.map +1 -1
  73. package/dist/index.cjs215.js +1 -1
  74. package/dist/index.cjs215.js.map +1 -1
  75. package/dist/index.cjs216.js +1 -1
  76. package/dist/index.cjs216.js.map +1 -1
  77. package/dist/index.cjs217.js +1 -1
  78. package/dist/index.cjs217.js.map +1 -1
  79. package/dist/index.cjs218.js +1 -1
  80. package/dist/index.cjs218.js.map +1 -1
  81. package/dist/index.cjs219.js +1 -1
  82. package/dist/index.cjs219.js.map +1 -1
  83. package/dist/index.cjs220.js +1 -1
  84. package/dist/index.cjs220.js.map +1 -1
  85. package/dist/index.cjs221.js +1 -1
  86. package/dist/index.cjs221.js.map +1 -1
  87. package/dist/index.cjs222.js +1 -1
  88. package/dist/index.cjs222.js.map +1 -1
  89. package/dist/index.cjs223.js +1 -1
  90. package/dist/index.cjs223.js.map +1 -1
  91. package/dist/index.cjs224.js +1 -1
  92. package/dist/index.cjs224.js.map +1 -1
  93. package/dist/index.cjs225.js +1 -1
  94. package/dist/index.cjs225.js.map +1 -1
  95. package/dist/index.cjs226.js +1 -1
  96. package/dist/index.cjs226.js.map +1 -1
  97. package/dist/index.cjs227.js +1 -1
  98. package/dist/index.cjs227.js.map +1 -1
  99. package/dist/index.cjs228.js +1 -1
  100. package/dist/index.cjs228.js.map +1 -1
  101. package/dist/index.cjs229.js +1 -1
  102. package/dist/index.cjs229.js.map +1 -1
  103. package/dist/index.cjs230.js +1 -1
  104. package/dist/index.cjs230.js.map +1 -1
  105. package/dist/index.cjs231.js +1 -1
  106. package/dist/index.cjs231.js.map +1 -1
  107. package/dist/index.cjs232.js +1 -1
  108. package/dist/index.cjs232.js.map +1 -1
  109. package/dist/index.cjs233.js +1 -1
  110. package/dist/index.cjs233.js.map +1 -1
  111. package/dist/index.cjs234.js +1 -1
  112. package/dist/index.cjs234.js.map +1 -1
  113. package/dist/index.cjs235.js +1 -1
  114. package/dist/index.cjs235.js.map +1 -1
  115. package/dist/index.cjs236.js +1 -1
  116. package/dist/index.cjs236.js.map +1 -1
  117. package/dist/index.cjs237.js +1 -1
  118. package/dist/index.cjs237.js.map +1 -1
  119. package/dist/index.cjs25.js +1 -1
  120. package/dist/index.cjs250.js +1 -1
  121. package/dist/index.cjs251.js +1 -1
  122. package/dist/index.cjs254.js +1 -1
  123. package/dist/index.cjs258.js +1 -1
  124. package/dist/index.cjs258.js.map +1 -1
  125. package/dist/index.cjs26.js +1 -1
  126. package/dist/index.cjs260.js +1 -1
  127. package/dist/index.cjs260.js.map +1 -1
  128. package/dist/index.cjs27.js +1 -1
  129. package/dist/index.cjs29.js +1 -1
  130. package/dist/index.cjs30.js +1 -1
  131. package/dist/index.cjs31.js +1 -1
  132. package/dist/index.cjs33.js +1 -1
  133. package/dist/index.cjs34.js +1 -1
  134. package/dist/index.cjs35.js +1 -1
  135. package/dist/index.cjs37.js +1 -1
  136. package/dist/index.cjs38.js +1 -1
  137. package/dist/index.cjs39.js +1 -1
  138. package/dist/index.cjs43.js +1 -1
  139. package/dist/index.cjs44.js +1 -1
  140. package/dist/index.cjs45.js +1 -1
  141. package/dist/index.cjs47.js +1 -1
  142. package/dist/index.cjs48.js +1 -1
  143. package/dist/index.cjs5.js +1 -1
  144. package/dist/index.cjs5.js.map +1 -1
  145. package/dist/index.cjs50.js +1 -1
  146. package/dist/index.cjs52.js +1 -1
  147. package/dist/index.cjs61.js +1 -1
  148. package/dist/index.cjs62.js +1 -1
  149. package/dist/index.cjs68.js +1 -1
  150. package/dist/index.cjs68.js.map +1 -1
  151. package/dist/index.cjs69.js +1 -1
  152. package/dist/index.cjs69.js.map +1 -1
  153. package/dist/index.cjs70.js +1 -1
  154. package/dist/index.cjs70.js.map +1 -1
  155. package/dist/index.cjs71.js +1 -1
  156. package/dist/index.cjs71.js.map +1 -1
  157. package/dist/index.cjs72.js +1 -1
  158. package/dist/index.cjs72.js.map +1 -1
  159. package/dist/index.cjs73.js +1 -1
  160. package/dist/index.cjs73.js.map +1 -1
  161. package/dist/index.cjs74.js +1 -1
  162. package/dist/index.cjs74.js.map +1 -1
  163. package/dist/index.cjs75.js +1 -1
  164. package/dist/index.cjs75.js.map +1 -1
  165. package/dist/index.cjs76.js +1 -1
  166. package/dist/index.cjs76.js.map +1 -1
  167. package/dist/index.cjs77.js +1 -1
  168. package/dist/index.cjs77.js.map +1 -1
  169. package/dist/index.cjs78.js +1 -1
  170. package/dist/index.cjs78.js.map +1 -1
  171. package/dist/index.cjs80.js +1 -1
  172. package/dist/index.cjs87.js +1 -1
  173. package/dist/index.cjs88.js +1 -1
  174. package/dist/index.cjs89.js +1 -1
  175. package/dist/index.cjs90.js +1 -1
  176. package/dist/index.cjs91.js +1 -1
  177. package/dist/index.cjs92.js +1 -1
  178. package/dist/index.cjs93.js +1 -1
  179. package/dist/index.cjs94.js +1 -1
  180. package/dist/index.cjs95.js +1 -1
  181. package/dist/index.cjs98.js +1 -1
  182. package/dist/index.cjs99.js +1 -1
  183. package/dist/index.es101.js +3 -3
  184. package/dist/index.es102.js +1 -1
  185. package/dist/index.es103.js +2 -2
  186. package/dist/index.es104.js +1 -1
  187. package/dist/index.es109.js +1 -1
  188. package/dist/index.es110.js +1 -1
  189. package/dist/index.es111.js +1 -1
  190. package/dist/index.es112.js +1 -1
  191. package/dist/index.es115.js +2 -2
  192. package/dist/index.es116.js +2 -2
  193. package/dist/index.es117.js +1 -1
  194. package/dist/index.es121.js +2 -2
  195. package/dist/index.es124.js +1 -1
  196. package/dist/index.es128.js +1 -1
  197. package/dist/index.es131.js +1 -1
  198. package/dist/index.es139.js +1 -1
  199. package/dist/index.es14.js +1 -1
  200. package/dist/index.es140.js +1 -1
  201. package/dist/index.es141.js +1 -1
  202. package/dist/index.es142.js +2 -2
  203. package/dist/index.es143.js +1 -1
  204. package/dist/index.es144.js +1 -1
  205. package/dist/index.es145.js +1 -1
  206. package/dist/index.es147.js +2 -2
  207. package/dist/index.es148.js +2 -2
  208. package/dist/index.es149.js +1 -1
  209. package/dist/index.es15.js +5 -5
  210. package/dist/index.es150.js +1 -1
  211. package/dist/index.es151.js +1 -1
  212. package/dist/index.es152.js +1 -1
  213. package/dist/index.es153.js +2 -2
  214. package/dist/index.es154.js +2 -2
  215. package/dist/index.es155.js +1 -1
  216. package/dist/index.es158.js +2 -2
  217. package/dist/index.es159.js +2 -2
  218. package/dist/index.es16.js +1 -1
  219. package/dist/index.es161.js +2 -2
  220. package/dist/index.es162.js +1 -1
  221. package/dist/index.es163.js +2 -2
  222. package/dist/index.es164.js +1 -1
  223. package/dist/index.es165.js +2 -2
  224. package/dist/index.es166.js +1 -1
  225. package/dist/index.es167.js +1 -1
  226. package/dist/index.es168.js +1 -1
  227. package/dist/index.es174.js +1 -1
  228. package/dist/index.es175.js +2 -2
  229. package/dist/index.es176.js +1 -1
  230. package/dist/index.es177.js +1 -1
  231. package/dist/index.es178.js +1 -1
  232. package/dist/index.es181.js +1 -1
  233. package/dist/index.es182.js +1 -1
  234. package/dist/index.es183.js +1 -1
  235. package/dist/index.es184.js +2 -2
  236. package/dist/index.es19.js +1 -1
  237. package/dist/index.es206.js +2 -46
  238. package/dist/index.es206.js.map +1 -1
  239. package/dist/index.es207.js +7 -22
  240. package/dist/index.es207.js.map +1 -1
  241. package/dist/index.es208.js +4 -7
  242. package/dist/index.es208.js.map +1 -1
  243. package/dist/index.es209.js +4 -5
  244. package/dist/index.es209.js.map +1 -1
  245. package/dist/index.es210.js +3 -4
  246. package/dist/index.es210.js.map +1 -1
  247. package/dist/index.es211.js +2 -2
  248. package/dist/index.es211.js.map +1 -1
  249. package/dist/index.es212.js +9 -3
  250. package/dist/index.es212.js.map +1 -1
  251. package/dist/index.es213.js +21 -8
  252. package/dist/index.es213.js.map +1 -1
  253. package/dist/index.es214.js +20 -20
  254. package/dist/index.es214.js.map +1 -1
  255. package/dist/index.es215.js +12 -20
  256. package/dist/index.es215.js.map +1 -1
  257. package/dist/index.es216.js +15 -12
  258. package/dist/index.es216.js.map +1 -1
  259. package/dist/index.es217.js +5 -16
  260. package/dist/index.es217.js.map +1 -1
  261. package/dist/index.es218.js +8 -5
  262. package/dist/index.es218.js.map +1 -1
  263. package/dist/index.es219.js +6 -8
  264. package/dist/index.es219.js.map +1 -1
  265. package/dist/index.es220.js +21 -6
  266. package/dist/index.es220.js.map +1 -1
  267. package/dist/index.es221.js +8 -20
  268. package/dist/index.es221.js.map +1 -1
  269. package/dist/index.es222.js +9 -10
  270. package/dist/index.es222.js.map +1 -1
  271. package/dist/index.es223.js +4 -9
  272. package/dist/index.es223.js.map +1 -1
  273. package/dist/index.es224.js +11 -4
  274. package/dist/index.es224.js.map +1 -1
  275. package/dist/index.es225.js +8 -10
  276. package/dist/index.es225.js.map +1 -1
  277. package/dist/index.es226.js +22 -8
  278. package/dist/index.es226.js.map +1 -1
  279. package/dist/index.es227.js +11 -22
  280. package/dist/index.es227.js.map +1 -1
  281. package/dist/index.es228.js +16 -9
  282. package/dist/index.es228.js.map +1 -1
  283. package/dist/index.es229.js +4 -19
  284. package/dist/index.es229.js.map +1 -1
  285. package/dist/index.es230.js +18 -4
  286. package/dist/index.es230.js.map +1 -1
  287. package/dist/index.es231.js +10 -16
  288. package/dist/index.es231.js.map +1 -1
  289. package/dist/index.es232.js +3 -11
  290. package/dist/index.es232.js.map +1 -1
  291. package/dist/index.es233.js +4 -3
  292. package/dist/index.es233.js.map +1 -1
  293. package/dist/index.es234.js +45 -4
  294. package/dist/index.es234.js.map +1 -1
  295. package/dist/index.es235.js +23 -2
  296. package/dist/index.es235.js.map +1 -1
  297. package/dist/index.es236.js +6 -3
  298. package/dist/index.es236.js.map +1 -1
  299. package/dist/index.es237.js +3 -6
  300. package/dist/index.es237.js.map +1 -1
  301. package/dist/index.es25.js +1 -1
  302. package/dist/index.es250.js +1 -1
  303. package/dist/index.es251.js +1 -1
  304. package/dist/index.es254.js +1 -1
  305. package/dist/index.es258.js +15 -70
  306. package/dist/index.es258.js.map +1 -1
  307. package/dist/index.es26.js +1 -1
  308. package/dist/index.es260.js +70 -15
  309. package/dist/index.es260.js.map +1 -1
  310. package/dist/index.es27.js +2 -2
  311. package/dist/index.es29.js +2 -2
  312. package/dist/index.es30.js +2 -2
  313. package/dist/index.es31.js +2 -2
  314. package/dist/index.es33.js +1 -1
  315. package/dist/index.es34.js +2 -2
  316. package/dist/index.es35.js +2 -2
  317. package/dist/index.es37.js +1 -1
  318. package/dist/index.es38.js +1 -1
  319. package/dist/index.es39.js +1 -1
  320. package/dist/index.es43.js +2 -2
  321. package/dist/index.es44.js +3 -3
  322. package/dist/index.es45.js +1 -1
  323. package/dist/index.es47.js +1 -1
  324. package/dist/index.es48.js +1 -1
  325. package/dist/index.es5.js +6 -7
  326. package/dist/index.es5.js.map +1 -1
  327. package/dist/index.es50.js +1 -1
  328. package/dist/index.es52.js +5 -5
  329. package/dist/index.es61.js +1 -1
  330. package/dist/index.es62.js +1 -1
  331. package/dist/index.es64.js +2 -2
  332. package/dist/index.es65.js +2 -2
  333. package/dist/index.es68.js +55 -2
  334. package/dist/index.es68.js.map +1 -1
  335. package/dist/index.es69.js +48 -4
  336. package/dist/index.es69.js.map +1 -1
  337. package/dist/index.es70.js +37 -55
  338. package/dist/index.es70.js.map +1 -1
  339. package/dist/index.es71.js +11 -47
  340. package/dist/index.es71.js.map +1 -1
  341. package/dist/index.es72.js +14 -38
  342. package/dist/index.es72.js.map +1 -1
  343. package/dist/index.es73.js +29 -11
  344. package/dist/index.es73.js.map +1 -1
  345. package/dist/index.es74.js +10 -10
  346. package/dist/index.es74.js.map +1 -1
  347. package/dist/index.es75.js +13 -29
  348. package/dist/index.es75.js.map +1 -1
  349. package/dist/index.es76.js +10 -12
  350. package/dist/index.es76.js.map +1 -1
  351. package/dist/index.es77.js +4 -14
  352. package/dist/index.es77.js.map +1 -1
  353. package/dist/index.es78.js +2 -11
  354. package/dist/index.es78.js.map +1 -1
  355. package/dist/index.es80.js +1 -1
  356. package/dist/index.es87.js +1 -1
  357. package/dist/index.es88.js +1 -1
  358. package/dist/index.es89.js +1 -1
  359. package/dist/index.es90.js +1 -1
  360. package/dist/index.es91.js +1 -1
  361. package/dist/index.es92.js +1 -1
  362. package/dist/index.es93.js +1 -1
  363. package/dist/index.es94.js +1 -1
  364. package/dist/index.es95.js +1 -1
  365. package/dist/index.es98.js +1 -1
  366. package/dist/index.es99.js +1 -1
  367. package/dist/style.css +1 -1
  368. package/package.json +1 -1
  369. package/src/components/LayerMenu.js +1 -2
  370. package/types/components/LayerMenu.js.flow +1 -2
@@ -1,2 +1,2 @@
1
- "use strict";const r=require("./index.cjs28.js");function c(n,e){return n._chain?r(e).chain():e}module.exports=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.cjs189.js");function a(n){const i=n.clone();return i.pixelsToGLUnits=n.pixelsToGLUnits,i}function r(n,i){if(!n.getProjection)return;const e=n.getProjection(),o=i.getProjection();c.deepEqual(e,o)||i.setProjection(e)}function s(n){return{longitude:n.center.lng,latitude:n.center.lat,zoom:n.zoom,pitch:n.pitch,bearing:n.bearing,padding:n.padding}}function d(n,i){const e=i.viewState||i;let o=!1;if("longitude"in e&&"latitude"in e){const t=n.center;n.center=new t.constructor(e.longitude,e.latitude),o=o||t!==n.center}if("zoom"in e){const t=n.zoom;n.zoom=e.zoom,o=o||t!==n.zoom}if("bearing"in e){const t=n.bearing;n.bearing=e.bearing,o=o||t!==n.bearing}if("pitch"in e){const t=n.pitch;n.pitch=e.pitch,o=o||t!==n.pitch}return e.padding&&!n.isPaddingEqual(e.padding)&&(o=!0,n.padding=e.padding),o}exports.applyViewStateToTransform=d;exports.cloneTransform=a;exports.syncProjection=r;exports.transformToViewState=s;
2
2
  //# sourceMappingURL=index.cjs234.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs234.js","sources":["../../../node_modules/underscore/modules/_chainResult.js"],"sourcesContent":["import _ from './underscore.js';\n\n// Helper function to continue chaining intermediate results.\nexport default function chainResult(instance, obj) {\n return instance._chain ? _(obj).chain() : obj;\n}\n"],"names":["chainResult","instance","obj","_"],"mappings":"iDAGwB,SAAAA,EAAYC,EAAUC,EAAK,CACjD,OAAOD,EAAS,OAASE,EAAED,CAAG,EAAE,MAAU,EAAAA,CAC5C","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs234.js","sources":["../../../node_modules/react-map-gl/dist/esm/utils/transform.js"],"sourcesContent":["import { deepEqual } from './deep-equal';\n/**\n * Make a copy of a transform\n * @param tr\n */\nexport function cloneTransform(tr) {\n const newTransform = tr.clone();\n // Work around mapbox bug - this value is not assigned in clone(), only in resize()\n newTransform.pixelsToGLUnits = tr.pixelsToGLUnits;\n return newTransform;\n}\n/**\n * Copy projection from one transform to another. This only applies to mapbox-gl transforms\n * @param src the transform to copy projection settings from\n * @param dest to transform to copy projection settings to\n */\nexport function syncProjection(src, dest) {\n if (!src.getProjection) {\n return;\n }\n const srcProjection = src.getProjection();\n const destProjection = dest.getProjection();\n if (!deepEqual(srcProjection, destProjection)) {\n dest.setProjection(srcProjection);\n }\n}\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 * Mutate a transform to match the given view state\n * @param transform\n * @param viewState\n * @returns true if the transform has changed\n */\nexport function applyViewStateToTransform(tr, props) {\n const v = props.viewState || props;\n let changed = false;\n if ('longitude' in v && 'latitude' in v) {\n const center = tr.center;\n // @ts-ignore\n tr.center = new center.constructor(v.longitude, v.latitude);\n changed = changed || center !== tr.center;\n }\n if ('zoom' in v) {\n const zoom = tr.zoom;\n tr.zoom = v.zoom;\n changed = changed || zoom !== tr.zoom;\n }\n if ('bearing' in v) {\n const bearing = tr.bearing;\n tr.bearing = v.bearing;\n changed = changed || bearing !== tr.bearing;\n }\n if ('pitch' in v) {\n const pitch = tr.pitch;\n tr.pitch = v.pitch;\n changed = changed || pitch !== tr.pitch;\n }\n if (v.padding && !tr.isPaddingEqual(v.padding)) {\n changed = true;\n tr.padding = v.padding;\n }\n return changed;\n}\n//# sourceMappingURL=transform.js.map"],"names":["cloneTransform","tr","newTransform","syncProjection","src","dest","srcProjection","destProjection","deepEqual","transformToViewState","applyViewStateToTransform","props","v","changed","center","zoom","bearing","pitch"],"mappings":"qHAKO,SAASA,EAAeC,EAAI,CACzB,MAAAC,EAAeD,EAAG,QAExB,OAAAC,EAAa,gBAAkBD,EAAG,gBAC3BC,CACX,CAMgB,SAAAC,EAAeC,EAAKC,EAAM,CAClC,GAAA,CAACD,EAAI,cACL,OAEE,MAAAE,EAAgBF,EAAI,gBACpBG,EAAiBF,EAAK,gBACvBG,EAAA,UAAUF,EAAeC,CAAc,GACxCF,EAAK,cAAcC,CAAa,CAExC,CAMO,SAASG,EAAqBR,EAAI,CAC9B,MAAA,CACH,UAAWA,EAAG,OAAO,IACrB,SAAUA,EAAG,OAAO,IACpB,KAAMA,EAAG,KACT,MAAOA,EAAG,MACV,QAASA,EAAG,QACZ,QAASA,EAAG,OAAA,CAEpB,CAQgB,SAAAS,EAA0BT,EAAIU,EAAO,CAC3C,MAAAC,EAAID,EAAM,WAAaA,EAC7B,IAAIE,EAAU,GACV,GAAA,cAAeD,GAAK,aAAcA,EAAG,CACrC,MAAME,EAASb,EAAG,OAElBA,EAAG,OAAS,IAAIa,EAAO,YAAYF,EAAE,UAAWA,EAAE,QAAQ,EAChDC,EAAAA,GAAWC,IAAWb,EAAG,MACvC,CACA,GAAI,SAAUW,EAAG,CACb,MAAMG,EAAOd,EAAG,KAChBA,EAAG,KAAOW,EAAE,KACFC,EAAAA,GAAWE,IAASd,EAAG,IACrC,CACA,GAAI,YAAaW,EAAG,CAChB,MAAMI,EAAUf,EAAG,QACnBA,EAAG,QAAUW,EAAE,QACLC,EAAAA,GAAWG,IAAYf,EAAG,OACxC,CACA,GAAI,UAAWW,EAAG,CACd,MAAMK,EAAQhB,EAAG,MACjBA,EAAG,MAAQW,EAAE,MACHC,EAAAA,GAAWI,IAAUhB,EAAG,KACtC,CACA,OAAIW,EAAE,SAAW,CAACX,EAAG,eAAeW,EAAE,OAAO,IAC/BC,EAAA,GACVZ,EAAG,QAAUW,EAAE,SAEZC,CACX","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
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.cjs235.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs235.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.cjs235.js","sources":["../../../node_modules/react-map-gl/dist/esm/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,EACM,OAAA,KAQP,GANA,OAAOA,GAAU,WAGjB,SAAUA,IACVA,EAAQA,EAAM,QAEd,CAACA,EAAM,QACA,OAAAA,EAEX,MAAMC,EAAa,CAAA,EACR,UAAAC,KAASF,EAAM,OACXC,EAAAC,EAAM,EAAE,EAAIA,EAE3B,MAAMC,EAASH,EAAM,OAAO,IAAaE,GAAA,CACrC,IAAIE,EAAkB,KAClB,gBAAiBF,IACjBE,EAAkB,OAAO,OAAO,CAAC,EAAGF,CAAK,EAGzC,OAAOE,EAAgB,aAIrB,MAAAC,EAAWJ,EAAWC,EAAM,GAAG,EACrC,GAAIG,EAAU,CACVD,EAAkBA,GAAmB,OAAO,OAAO,GAAIF,CAAK,EAE5D,OAAOE,EAAgB,IAEvB,UAAWE,KAAYR,EACfQ,KAAYD,IACID,EAAAE,CAAQ,EAAID,EAASC,CAAQ,EAGzD,CACA,OAAOF,GAAmBF,CAAA,CAC7B,EAEM,MAAA,CAAE,GAAGF,EAAO,OAAAG,EACvB","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs208.js"),e=t("Object");module.exports=e;
1
+ "use strict";function n(t){return function(r){return r==null?void 0:r[t]}}module.exports=n;
2
2
  //# sourceMappingURL=index.cjs236.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs236.js","sources":["../../../node_modules/underscore/modules/_hasObjectTag.js"],"sourcesContent":["import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n"],"names":["tagTester"],"mappings":"kDAEeA,EAAAA,EAAU,QAAQ","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs236.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,OAAOA,GAAO,KAAO,OAASA,EAAID,CAAG,CAAA,CAEzC","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";function n(t){return function(r){return r==null?void 0:r[t]}}module.exports=n;
1
+ "use strict";const t=require("./index.cjs207.js"),e=t("Object");module.exports=e;
2
2
  //# sourceMappingURL=index.cjs237.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs237.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,OAAOA,GAAO,KAAO,OAASA,EAAID,CAAG,CAAA,CAEzC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs237.js","sources":["../../../node_modules/underscore/modules/_hasObjectTag.js"],"sourcesContent":["import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n"],"names":["tagTester"],"mappings":"kDAEeA,EAAAA,EAAU,QAAQ","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs208.js"),t=require("./index.cjs24.js");var o=e("Function"),c=t.root.document&&t.root.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof c!="function"&&(o=function(n){return typeof n=="function"||!1});const i=o;module.exports=i;
1
+ "use strict";const e=require("./index.cjs207.js"),t=require("./index.cjs24.js");var o=e("Function"),c=t.root.document&&t.root.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof c!="function"&&(o=function(n){return typeof n=="function"||!1});const i=o;module.exports=i;
2
2
  //# sourceMappingURL=index.cjs25.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const s=require("./index.cjs258.js"),i=require("./index.cjs242.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.cjs260.js"),i=require("./index.cjs242.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.cjs250.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs241.js"),Q=require("./index.cjs240.js"),e=require("./index.cjs242.js"),j=require("./index.cjs259.js"),T=require("./index.cjs258.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.cjs241.js"),Q=require("./index.cjs240.js"),e=require("./index.cjs242.js"),j=require("./index.cjs259.js"),T=require("./index.cjs260.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.cjs251.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index.cjs256.js"),s=require("./index.cjs260.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.cjs256.js"),s=require("./index.cjs258.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.cjs254.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const w=require("./index.cjs244.js"),z=require("./index.cjs246.js"),g=require("./index.cjs242.js"),A=require("./index.cjs198.js");require("./index.cjs197.js");const D=require("./index.cjs247.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";const r=require("./index.cjs257.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.cjs258.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs258.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","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KAAKA,EAAa,IAAI,EAAE,OAAOA,EAAa,MAAO,CAAA,CAAC,EAEzFjB,EAAS,KAAKiB,EAAa,OAAOI,CAAY,CAAC,EACjD,CAEO,OAAAnC,CAAA,CAEX,CAEA,SAASmC,EAAaD,EAAS,CAC7B,OAAOA,EAAQ,OAAS,CAC1B,CAIA,SAASR,EAAoBU,EAAGC,EAAG,CACjC,QAASD,EAAIA,EAAE,GAAG,CAAC,EAAI,EAAIA,EAAE,CAAC,EAAIE,EAAA,OAASC,EAAU,QAAAD,EAAA,OAASF,EAAE,CAAC,KACxDC,EAAIA,EAAE,GAAG,CAAC,EAAI,EAAIA,EAAE,CAAC,EAAIC,EAAAA,OAASC,EAAAA,QAAUD,EAAAA,OAASD,EAAE,CAAC,EACnE","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs258.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,CACb,IAAAC,EAAS,CAAC,CAACP,EAAIC,CAAE,EAAG,CAACC,EAAIC,CAAE,CAAC,EAC3B,OAAAD,EAAAC,EAAK,EAAEF,EAAKD,EAAK,KACfO,CACT,CACF,EAEA,SAASF,EAAYG,EAAGC,EAAG,CACrBD,EAAIR,IAASA,EAAAQ,GACbA,EAAIN,IAASA,EAAAM,GACbC,EAAIR,IAASA,EAAAQ,GACbA,EAAIN,IAASA,EAAAM,EACnB","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs24.js"),e=require("./index.cjs236.js");var t=a.supportsDataView&&e(new DataView(new ArrayBuffer(8))),r=typeof Map<"u"&&e(new Map);exports.hasStringTagBug=t;exports.isIE11=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs24.js"),e=require("./index.cjs237.js");var t=a.supportsDataView&&e(new DataView(new ArrayBuffer(8))),r=typeof Map<"u"&&e(new Map);exports.hasStringTagBug=t;exports.isIE11=r;
2
2
  //# sourceMappingURL=index.cjs26.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const r=require("./index.cjs257.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 w=require("./index.cjs244.js"),z=require("./index.cjs246.js"),g=require("./index.cjs242.js"),A=require("./index.cjs198.js");require("./index.cjs197.js");const D=require("./index.cjs247.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.cjs260.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs260.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,CACb,IAAAC,EAAS,CAAC,CAACP,EAAIC,CAAE,EAAG,CAACC,EAAIC,CAAE,CAAC,EAC3B,OAAAD,EAAAC,EAAK,EAAEF,EAAKD,EAAK,KACfO,CACT,CACF,EAEA,SAASF,EAAYG,EAAGC,EAAG,CACrBD,EAAIR,IAASA,EAAAQ,GACbA,EAAIN,IAASA,EAAAM,GACbC,EAAIR,IAASA,EAAAQ,GACbA,EAAIN,IAASA,EAAAM,EACnB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs260.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":"iNAMwB,SAAAA,EAAAC,EAAcC,EAAUC,EAAaC,EAAO,CAC3D,OAAA,SAASC,EAAQC,EAAM,CACxB,IAAAC,EAAOL,EAASI,CAAI,EACpBE,EAAeH,EAAO,OAAOD,EAAM,CAAC,EAAGA,EAAM,CAAC,CAAC,EAC/CK,EAAaC,EAAW,EACxBC,EAAWT,EAASO,CAAU,EAC9BG,EAAiB,GACjBC,EACAC,EACAC,EAEAf,EAAO,CACT,MAAAgB,EACA,UAAAC,EACA,QAAAC,EACA,aAAc,UAAW,CACvBlB,EAAK,MAAQmB,EACbnB,EAAK,UAAYoB,EACjBpB,EAAK,QAAUqB,EACfP,EAAW,CAAA,EACXD,EAAU,CAAA,CACZ,EACA,WAAY,UAAW,CACrBb,EAAK,MAAQgB,EACbhB,EAAK,UAAYiB,EACjBjB,EAAK,QAAUkB,EACfJ,EAAWQ,EAAMR,CAAQ,EACrB,IAAAS,EAAcC,EAAgBX,EAASL,CAAY,EACnDM,EAAS,QACNF,IAAqBN,EAAA,aAAA,EAAgBM,EAAiB,IAC3Da,EAAYX,EAAUY,EAAqBH,EAAapB,EAAaG,CAAI,GAChEiB,IACJX,IAAqBN,EAAA,aAAA,EAAgBM,EAAiB,IAC3DN,EAAK,UAAU,EACHH,EAAA,KAAM,KAAM,EAAGG,CAAI,EAC/BA,EAAK,QAAQ,GAEXM,IAAqBN,EAAA,WAAA,EAAcM,EAAiB,IACxDE,EAAWD,EAAU,IACvB,EACA,OAAQ,UAAW,CACjBP,EAAK,aAAa,EAClBA,EAAK,UAAU,EACHH,EAAA,KAA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,EAAgBM,EAAiB,IAC3DN,EAAK,UAAU,EACV,EAAI,EAAG,EAAI2B,EAAG,EAAE,EAAQ3B,EAAA,OAAOU,EAAQkB,EAAQ,CAAC,GAAG,CAAC,EAAGlB,EAAM,CAAC,CAAC,EACpEV,EAAK,QAAQ,CACf,CACA,MACF,CAII0B,EAAI,GAAKF,EAAQ,GAAgBC,EAAA,KAAKA,EAAa,IAAI,EAAE,OAAOA,EAAa,MAAO,CAAA,CAAC,EAEzFjB,EAAS,KAAKiB,EAAa,OAAOI,CAAY,CAAC,EACjD,CAEO,OAAAnC,CAAA,CAEX,CAEA,SAASmC,EAAaD,EAAS,CAC7B,OAAOA,EAAQ,OAAS,CAC1B,CAIA,SAASR,EAAoBU,EAAGC,EAAG,CACjC,QAASD,EAAIA,EAAE,GAAG,CAAC,EAAI,EAAIA,EAAE,CAAC,EAAIE,EAAA,OAASC,EAAU,QAAAD,EAAA,OAASF,EAAE,CAAC,KACxDC,EAAIA,EAAE,GAAG,CAAC,EAAI,EAAIA,EAAE,CAAC,EAAIC,EAAAA,OAASC,EAAAA,QAAUD,EAAAA,OAASD,EAAE,CAAC,EACnE","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const r=require("./index.cjs208.js"),s=require("./index.cjs209.js");var e=r("Arguments");(function(){e(arguments)||(e=function(t){return s(t,"callee")})})();const n=e;module.exports=n;
1
+ "use strict";const r=require("./index.cjs207.js"),s=require("./index.cjs208.js");var e=r("Arguments");(function(){e(arguments)||(e=function(t){return s(t,"callee")})})();const n=e;module.exports=n;
2
2
  //# sourceMappingURL=index.cjs27.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const r=require("./index.cjs208.js"),t=require("./index.cjs26.js"),e=require("./index.cjs214.js"),i=t.isIE11?e.ie11fingerprint(e.mapMethods):r("Map");module.exports=i;
1
+ "use strict";const r=require("./index.cjs207.js"),t=require("./index.cjs26.js"),e=require("./index.cjs213.js"),i=t.isIE11?e.ie11fingerprint(e.mapMethods):r("Map");module.exports=i;
2
2
  //# sourceMappingURL=index.cjs29.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const r=require("./index.cjs208.js"),t=require("./index.cjs26.js"),e=require("./index.cjs214.js"),i=t.isIE11?e.ie11fingerprint(e.weakMapMethods):r("WeakMap");module.exports=i;
1
+ "use strict";const r=require("./index.cjs207.js"),t=require("./index.cjs26.js"),e=require("./index.cjs213.js"),i=t.isIE11?e.ie11fingerprint(e.weakMapMethods):r("WeakMap");module.exports=i;
2
2
  //# sourceMappingURL=index.cjs30.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs208.js"),r=require("./index.cjs26.js"),e=require("./index.cjs214.js"),s=r.isIE11?e.ie11fingerprint(e.setMethods):t("Set");module.exports=s;
1
+ "use strict";const t=require("./index.cjs207.js"),r=require("./index.cjs26.js"),e=require("./index.cjs213.js"),s=r.isIE11?e.ie11fingerprint(e.setMethods):t("Set");module.exports=s;
2
2
  //# sourceMappingURL=index.cjs31.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const i=require("./index.cjs28.js"),n=require("./index.cjs225.js");function e(t,r){return n(t,r,1/0)}i.iteratee=e;module.exports=e;
1
+ "use strict";const i=require("./index.cjs28.js"),n=require("./index.cjs224.js");function e(t,r){return n(t,r,1/0)}i.iteratee=e;module.exports=e;
2
2
  //# sourceMappingURL=index.cjs33.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs222.js"),s=require("./index.cjs223.js"),c=e(s);module.exports=c;
1
+ "use strict";const e=require("./index.cjs221.js"),s=require("./index.cjs222.js"),c=e(s);module.exports=c;
2
2
  //# sourceMappingURL=index.cjs34.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs222.js"),s=require("./index.cjs224.js"),c=e(s);module.exports=c;
1
+ "use strict";const e=require("./index.cjs221.js"),s=require("./index.cjs223.js"),c=e(s);module.exports=c;
2
2
  //# sourceMappingURL=index.cjs35.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const l=require("./index.cjs81.js"),h=require("./index.cjs226.js"),i=require("./index.cjs28.js");var a=l(function(o,e){var c=a.placeholder,s=function(){for(var t=0,u=e.length,n=Array(u),r=0;r<u;r++)n[r]=e[r]===c?arguments[t++]:e[r];for(;t<arguments.length;)n.push(arguments[t++]);return h(o,s,this,this,n)};return s});a.placeholder=i;module.exports=a;
1
+ "use strict";const l=require("./index.cjs81.js"),h=require("./index.cjs225.js"),i=require("./index.cjs28.js");var a=l(function(o,e){var c=a.placeholder,s=function(){for(var t=0,u=e.length,n=Array(u),r=0;r<u;r++)n[r]=e[r]===c?arguments[t++]:e[r];for(;t<arguments.length;)n.push(arguments[t++]);return h(o,s,this,this,n)};return s});a.placeholder=i;module.exports=a;
2
2
  //# sourceMappingURL=index.cjs37.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs81.js"),i=require("./index.cjs25.js"),c=require("./index.cjs226.js"),s=e(function(n,r,o){if(!i(n))throw new TypeError("Bind must be called on a function");var t=e(function(u){return c(n,t,r,this,o.concat(u))});return t});module.exports=s;
1
+ "use strict";const e=require("./index.cjs81.js"),i=require("./index.cjs25.js"),c=require("./index.cjs225.js"),s=e(function(n,r,o){if(!i(n))throw new TypeError("Bind must be called on a function");var t=e(function(u){return c(n,t,r,this,o.concat(u))});return t});module.exports=s;
2
2
  //# sourceMappingURL=index.cjs38.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const i=require("./index.cjs81.js"),s=require("./index.cjs227.js"),l=require("./index.cjs38.js"),u=i(function(n,r){r=s(r,!1,!1);var e=r.length;if(e<1)throw new Error("bindAll must be passed function names");for(;e--;){var t=r[e];n[t]=l(n[t],n)}return n});module.exports=u;
1
+ "use strict";const i=require("./index.cjs81.js"),s=require("./index.cjs226.js"),l=require("./index.cjs38.js"),u=i(function(n,r){r=s(r,!1,!1);var e=r.length;if(e<1)throw new Error("bindAll must be passed function names");for(;e--;){var t=r[e];n[t]=l(n[t],n)}return n});module.exports=u;
2
2
  //# sourceMappingURL=index.cjs39.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs81.js"),c=require("./index.cjs25.js"),l=require("./index.cjs148.js"),f=require("./index.cjs219.js"),q=require("./index.cjs218.js"),v=t(function(s,e,o){var i,u;return c(e)?u=e:(e=q(e),i=e.slice(0,-1),e=e[e.length-1]),l(s,function(r){var n=u;if(!n){if(i&&i.length&&(r=f(r,i)),r==null)return;n=r[e]}return n==null?n:n.apply(r,o)})});module.exports=v;
1
+ "use strict";const t=require("./index.cjs81.js"),c=require("./index.cjs25.js"),l=require("./index.cjs148.js"),f=require("./index.cjs218.js"),q=require("./index.cjs217.js"),v=t(function(s,e,o){var i,u;return c(e)?u=e:(e=q(e),i=e.slice(0,-1),e=e[e.length-1]),l(s,function(r){var n=u;if(!n){if(i&&i.length&&(r=f(r,i)),r==null)return;n=r[e]}return n==null?n:n.apply(r,o)})});module.exports=v;
2
2
  //# sourceMappingURL=index.cjs43.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const l=require("./index.cjs81.js"),f=require("./index.cjs25.js"),a=require("./index.cjs221.js"),o=require("./index.cjs104.js"),q=require("./index.cjs233.js"),g=require("./index.cjs227.js"),p=l(function(t,r){var n={},e=r[0];if(t==null)return n;f(e)?(r.length>1&&(e=a(e,r[1])),r=o(t)):(e=q,r=g(r,!1,!1),t=Object(t));for(var i=0,s=r.length;i<s;i++){var u=r[i],c=t[u];e(c,u,t)&&(n[u]=c)}return n});module.exports=p;
1
+ "use strict";const l=require("./index.cjs81.js"),f=require("./index.cjs25.js"),a=require("./index.cjs220.js"),o=require("./index.cjs104.js"),q=require("./index.cjs232.js"),g=require("./index.cjs226.js"),p=l(function(t,r){var n={},e=r[0];if(t==null)return n;f(e)?(r.length>1&&(e=a(e,r[1])),r=o(t)):(e=q,r=g(r,!1,!1),t=Object(t));for(var i=0,s=r.length;i<s;i++){var u=r[i],c=t[u];e(c,u,t)&&(n[u]=c)}return n});module.exports=p;
2
2
  //# sourceMappingURL=index.cjs44.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const c=require("./index.cjs81.js"),o=require("./index.cjs25.js"),u=require("./index.cjs135.js"),s=require("./index.cjs148.js"),a=require("./index.cjs227.js"),f=require("./index.cjs155.js"),q=require("./index.cjs44.js"),l=c(function(n,t){var e=t[0],r;return o(e)?(e=u(e),t.length>1&&(r=t[1])):(t=s(a(t,!1,!1),String),e=function(g,i){return!f(t,i)}),q(n,e,r)});module.exports=l;
1
+ "use strict";const c=require("./index.cjs81.js"),o=require("./index.cjs25.js"),u=require("./index.cjs135.js"),s=require("./index.cjs148.js"),a=require("./index.cjs226.js"),f=require("./index.cjs155.js"),q=require("./index.cjs44.js"),l=c(function(n,t){var e=t[0],r;return o(e)?(e=u(e),t.length>1&&(r=t[1])):(t=s(a(t,!1,!1),String),e=function(g,i){return!f(t,i)}),q(n,e,r)});module.exports=l;
2
2
  //# sourceMappingURL=index.cjs45.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs81.js"),r=require("./index.cjs175.js"),n=require("./index.cjs227.js"),u=e(function(t){return r(n(t,!0,!0))});module.exports=u;
1
+ "use strict";const e=require("./index.cjs81.js"),r=require("./index.cjs175.js"),n=require("./index.cjs226.js"),u=e(function(t){return r(n(t,!0,!0))});module.exports=u;
2
2
  //# sourceMappingURL=index.cjs47.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const n=require("./index.cjs81.js"),u=require("./index.cjs227.js"),c=require("./index.cjs151.js"),i=require("./index.cjs155.js"),o=n(function(r,e){return e=u(e,!0,!0),c(r,function(t){return!i(e,t)})});module.exports=o;
1
+ "use strict";const n=require("./index.cjs81.js"),u=require("./index.cjs226.js"),c=require("./index.cjs151.js"),i=require("./index.cjs155.js"),o=n(function(r,e){return e=u(e,!0,!0),c(r,function(t){return!i(e,t)})});module.exports=o;
2
2
  //# sourceMappingURL=index.cjs48.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs17.js"),s=require("react"),p=require("./index.cjs21.js"),E=require("./index.cjs22.js"),u=require("./index.cjs23.js");require("./index.cjs24.js");require("./index.cjs25.js");require("./index.cjs26.js");require("./index.cjs27.js");require("./index.cjs28.js");require("./index.cjs29.js");require("./index.cjs30.js");require("./index.cjs31.js");require("./index.cjs32.js");require("./index.cjs33.js");require("./index.cjs34.js");require("./index.cjs35.js");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");const R=require("./index.cjs7.js");require("./index.cjs51.js");const g=30,q=i=>{const[x,h]=s.useState(0),[a,o]=s.useState(),[j,d]=s.useState(!1),l=s.useRef(),f=s.useCallback(e=>i.names&&i.names.length>e&&i.names[e],[i.names]),n=s.useCallback(e=>u.includes(a,e),[a]),c=s.useMemo(()=>s.Children.toArray(i.children),[i.children]),b=s.useMemo(()=>u.filter(c,(e,r)=>n(r)),[c,n]),m=s.useCallback(e=>{let r;n(e)?r=u.without(a,e):r=[...a,e],o(r)},[n,a]);return s.useEffect(()=>{o(u.times(c.length,e=>e))},[]),s.useEffect(()=>{const{current:e}=l;if(e&&e._canvas){const{offsetHeight:r=0}=l.current._canvas;h(r)}},[l.current]),u.isEmpty(c)?null:t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsxs(R,{mapRef:l,position:i.position,children:[t.jsxRuntimeExports.jsx("button",{"aria-label":"Toggle Menu",className:i.className||"mapbox-gl-draw_ctrl-draw-btn layer-button",onClick:()=>d(e=>!e),type:"button",children:t.jsxRuntimeExports.jsx(p.BsStack,{size:"1.25em"})}),j&&t.jsxRuntimeExports.jsx("div",{className:"layer-menu",style:{maxHeight:`calc(${x}px - ${g}px)`},children:t.jsxRuntimeExports.jsx("div",{className:"menu",children:u.map(c,(e,r)=>t.jsxRuntimeExports.jsxs("div",{"aria-selected":n(r),className:"option",onClick:()=>m(r),onKeyDown:()=>m(r),role:"option",tabIndex:r,children:[t.jsxRuntimeExports.jsx("div",{className:"checkmark-container",children:n(r)&&t.jsxRuntimeExports.jsx(E.IoCheckmarkOutline,{size:"1em"})}),f(r)]},r))})})]}),b]})};q.defaultProps={position:"top-left"};module.exports=q;
1
+ "use strict";const t=require("./index.cjs17.js"),s=require("react"),p=require("./index.cjs21.js"),E=require("./index.cjs22.js"),u=require("./index.cjs23.js");require("./index.cjs24.js");require("./index.cjs25.js");require("./index.cjs26.js");require("./index.cjs27.js");require("./index.cjs28.js");require("./index.cjs29.js");require("./index.cjs30.js");require("./index.cjs31.js");require("./index.cjs32.js");require("./index.cjs33.js");require("./index.cjs34.js");require("./index.cjs35.js");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");const R=require("./index.cjs7.js");require("./index.cjs51.js");const g=30,q=i=>{const[x,h]=s.useState(0),[a,o]=s.useState(),[j,d]=s.useState(!1),l=s.useRef(),f=s.useCallback(e=>i.names&&i.names.length>e&&i.names[e],[i.names]),n=s.useCallback(e=>u.includes(a,e),[a]),c=s.useMemo(()=>s.Children.toArray(i.children),[i.children]),b=s.useMemo(()=>u.filter(c,(e,r)=>n(r)),[c,n]),m=s.useCallback(e=>{let r;n(e)?r=u.without(a,e):r=[...a,e],o(r)},[n,a]);return s.useEffect(()=>{o(u.times(c.length,e=>e))},[]),s.useEffect(()=>{const{current:e}=l;if(e&&e._canvas){const{offsetHeight:r=0}=l.current._canvas;h(r)}},[l.current]),u.isEmpty(c)?null:t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsxs(R,{mapRef:l,position:i.position,children:[t.jsxRuntimeExports.jsx("button",{"aria-label":"Toggle Menu",className:i.className||"mapbox-gl-draw_ctrl-draw-btn layer-button",onClick:()=>d(e=>!e),type:"button",children:t.jsxRuntimeExports.jsx(p.BsStack,{size:"1.25em"})}),j&&t.jsxRuntimeExports.jsx("div",{className:"layer-menu",style:{maxHeight:`calc(${x}px - ${g}px)`},children:t.jsxRuntimeExports.jsx("div",{className:"menu",children:u.map(c,(e,r)=>t.jsxRuntimeExports.jsxs("div",{"aria-selected":n(r),className:"option",role:"option",onClick:()=>m(r),onKeyDown:()=>m(r),tabIndex:r,children:[t.jsxRuntimeExports.jsx("div",{className:"checkmark-container",children:n(r)&&t.jsxRuntimeExports.jsx(E.IoCheckmarkOutline,{size:"1em"})}),f(r)]}))})})]}),b]})};q.defaultProps={position:"top-left"};module.exports=q;
2
2
  //# sourceMappingURL=index.cjs5.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs5.js","sources":["../src/components/LayerMenu.js"],"sourcesContent":["// @flow\n\nimport React, {\n Children,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport { BsStack } from 'react-icons/bs';\nimport { IoCheckmarkOutline } from 'react-icons/io5';\nimport _ from 'underscore';\nimport MapControl from './MapControl';\nimport './LayerMenu.css';\n\ntype Props = {\n children: Node,\n className?: string,\n names: Array<string>,\n position: 'top-left' | 'bottom-left' | 'top-right' | 'bottom-right'\n};\n\nconst MENU_PADDING = 30;\n\nconst LayerMenu = (props: Props) => {\n const [canvasHeight, setCanvasHeight] = useState(0);\n const [visible, setVisible] = useState();\n const [menuOpen, setMenuOpen] = useState(false);\n\n const mapRef = useRef();\n\n /**\n * Returns the name of the layer at the passed index.\n *\n * @type {unknown}\n */\n const getLayerName = useCallback((index) => (\n props.names && props.names.length > index && props.names[index]\n ), [props.names]);\n\n /**\n * Returns true if the child element at the passed index is visible.\n *\n * @type {function(*): *}\n */\n const isVisible = useCallback((index) => _.includes(visible, index), [visible]);\n\n /**\n * Returns a memoized array of the child elements.\n *\n * @type {Array<$NonMaybeType<unknown>>}\n */\n const children = useMemo(() => Children.toArray(props.children), [props.children]);\n\n /**\n * Returns a memoized array of visible child elements.\n */\n const visibleChildren = useMemo(() => _.filter(children, (child, index) => isVisible(index)), [children, isVisible]);\n\n /**\n * Toggles the visibility for the child element at the passed index.\n *\n * @type {(function(*): void)|*}\n */\n const toggleVisibility = useCallback((index) => {\n let value;\n\n if (isVisible(index)) {\n value = _.without(visible, index);\n } else {\n value = [...visible, index];\n }\n\n setVisible(value);\n }, [isVisible, visible]);\n\n /**\n * Sets all of the child elements to be visible when the component mounts.\n */\n useEffect(() => {\n setVisible(_.times(children.length, (index) => index));\n }, []);\n\n /**\n * Sets the map canvas height.\n */\n useEffect(() => {\n const { current: instance } = mapRef;\n\n if (instance && instance._canvas) {\n const { offsetHeight = 0 } = mapRef.current._canvas;\n setCanvasHeight(offsetHeight);\n }\n }, [mapRef.current]);\n\n if (_.isEmpty(children)) {\n return null;\n }\n\n return (\n <>\n <MapControl\n mapRef={mapRef}\n position={props.position}\n >\n <button\n aria-label='Toggle Menu'\n className={props.className || 'mapbox-gl-draw_ctrl-draw-btn layer-button'}\n onClick={() => setMenuOpen((prevMenuOpen) => !prevMenuOpen)}\n type='button'\n >\n <BsStack\n size='1.25em'\n />\n </button>\n { menuOpen && (\n <div\n className='layer-menu'\n style={{\n maxHeight: `calc(${canvasHeight}px - ${MENU_PADDING}px)`\n }}\n >\n <div\n className='menu'\n >\n { _.map(children, (child, index) => (\n <div\n aria-selected={isVisible(index)}\n className='option'\n key={index}\n onClick={() => toggleVisibility(index)}\n onKeyDown={() => toggleVisibility(index)}\n role='option'\n tabIndex={index}\n >\n <div\n className='checkmark-container'\n >\n { isVisible(index) && (\n <IoCheckmarkOutline\n size='1em'\n />\n )}\n </div>\n { getLayerName(index) }\n </div>\n ))}\n </div>\n </div>\n )}\n </MapControl>\n { visibleChildren }\n </>\n );\n};\n\nLayerMenu.defaultProps = {\n position: 'top-left'\n};\n\nexport default LayerMenu;\n"],"names":["MENU_PADDING","LayerMenu","props","canvasHeight","setCanvasHeight","useState","visible","setVisible","menuOpen","setMenuOpen","mapRef","useRef","getLayerName","useCallback","index","isVisible","_","children","useMemo","Children","visibleChildren","child","toggleVisibility","value","useEffect","instance","offsetHeight","jsxs","Fragment","MapControl","jsx","prevMenuOpen","BsStack","IoCheckmarkOutline"],"mappings":"i9BAuBA,MAAMA,EAAe,GAEfC,EAAaC,GAAiB,CAClC,KAAM,CAACC,EAAcC,CAAe,EAAIC,WAAS,CAAC,EAC5C,CAACC,EAASC,CAAU,EAAIF,EAAS,SAAA,EACjC,CAACG,EAAUC,CAAW,EAAIJ,WAAS,EAAK,EAExCK,EAASC,EAAAA,SAOTC,EAAeC,EAAAA,YAAaC,GAChCZ,EAAM,OAASA,EAAM,MAAM,OAASY,GAASZ,EAAM,MAAMY,CAAK,EAC7D,CAACZ,EAAM,KAAK,CAAC,EAOVa,EAAYF,EAAAA,YAAaC,GAAUE,EAAE,SAASV,EAASQ,CAAK,EAAG,CAACR,CAAO,CAAC,EAOxEW,EAAWC,EAAAA,QAAQ,IAAMC,EAAAA,SAAS,QAAQjB,EAAM,QAAQ,EAAG,CAACA,EAAM,QAAQ,CAAC,EAK3EkB,EAAkBF,EAAAA,QAAQ,IAAMF,EAAE,OAAOC,EAAU,CAACI,EAAOP,IAAUC,EAAUD,CAAK,CAAC,EAAG,CAACG,EAAUF,CAAS,CAAC,EAO7GO,EAAmBT,cAAaC,GAAU,CAC1C,IAAAS,EAEAR,EAAUD,CAAK,EACTS,EAAAP,EAAE,QAAQV,EAASQ,CAAK,EAExBS,EAAA,CAAC,GAAGjB,EAASQ,CAAK,EAG5BP,EAAWgB,CAAK,CAAA,EACf,CAACR,EAAWT,CAAO,CAAC,EAqBnB,OAhBJkB,EAAAA,UAAU,IAAM,CACdjB,EAA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BR,CAAA,CACH,CAAA,CACF,CAAA,CAAA,CAEJ,EACEM,CACJ,CAAA,CAAA,CAEJ,EAEAnB,EAAU,aAAe,CACvB,SAAU,UACZ"}
1
+ {"version":3,"file":"index.cjs5.js","sources":["../src/components/LayerMenu.js"],"sourcesContent":["// @flow\n\nimport React, {\n Children,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport { BsStack } from 'react-icons/bs';\nimport { IoCheckmarkOutline } from 'react-icons/io5';\nimport _ from 'underscore';\nimport MapControl from './MapControl';\nimport './LayerMenu.css';\n\ntype Props = {\n children: Node,\n className?: string,\n names: Array<string>,\n position: 'top-left' | 'bottom-left' | 'top-right' | 'bottom-right'\n};\n\nconst MENU_PADDING = 30;\n\nconst LayerMenu = (props: Props) => {\n const [canvasHeight, setCanvasHeight] = useState(0);\n const [visible, setVisible] = useState();\n const [menuOpen, setMenuOpen] = useState(false);\n\n const mapRef = useRef();\n\n /**\n * Returns the name of the layer at the passed index.\n *\n * @type {unknown}\n */\n const getLayerName = useCallback((index) => (\n props.names && props.names.length > index && props.names[index]\n ), [props.names]);\n\n /**\n * Returns true if the child element at the passed index is visible.\n *\n * @type {function(*): *}\n */\n const isVisible = useCallback((index) => _.includes(visible, index), [visible]);\n\n /**\n * Returns a memoized array of the child elements.\n *\n * @type {Array<$NonMaybeType<unknown>>}\n */\n const children = useMemo(() => Children.toArray(props.children), [props.children]);\n\n /**\n * Returns a memoized array of visible child elements.\n */\n const visibleChildren = useMemo(() => _.filter(children, (child, index) => isVisible(index)), [children, isVisible]);\n\n /**\n * Toggles the visibility for the child element at the passed index.\n *\n * @type {(function(*): void)|*}\n */\n const toggleVisibility = useCallback((index) => {\n let value;\n\n if (isVisible(index)) {\n value = _.without(visible, index);\n } else {\n value = [...visible, index];\n }\n\n setVisible(value);\n }, [isVisible, visible]);\n\n /**\n * Sets all of the child elements to be visible when the component mounts.\n */\n useEffect(() => {\n setVisible(_.times(children.length, (index) => index));\n }, []);\n\n /**\n * Sets the map canvas height.\n */\n useEffect(() => {\n const { current: instance } = mapRef;\n\n if (instance && instance._canvas) {\n const { offsetHeight = 0 } = mapRef.current._canvas;\n setCanvasHeight(offsetHeight);\n }\n }, [mapRef.current]);\n\n if (_.isEmpty(children)) {\n return null;\n }\n\n return (\n <>\n <MapControl\n mapRef={mapRef}\n position={props.position}\n >\n <button\n aria-label='Toggle Menu'\n className={props.className || 'mapbox-gl-draw_ctrl-draw-btn layer-button'}\n onClick={() => setMenuOpen((prevMenuOpen) => !prevMenuOpen)}\n type='button'\n >\n <BsStack\n size='1.25em'\n />\n </button>\n { menuOpen && (\n <div\n className='layer-menu'\n style={{\n maxHeight: `calc(${canvasHeight}px - ${MENU_PADDING}px)`\n }}\n >\n <div\n className='menu'\n >\n { _.map(children, (child, index) => (\n <div\n aria-selected={isVisible(index)}\n className='option'\n role='option'\n onClick={() => toggleVisibility(index)}\n onKeyDown={() => toggleVisibility(index)}\n tabIndex={index}\n >\n <div\n className='checkmark-container'\n >\n { isVisible(index) && (\n <IoCheckmarkOutline\n size='1em'\n />\n )}\n </div>\n { getLayerName(index) }\n </div>\n ))}\n </div>\n </div>\n )}\n </MapControl>\n { visibleChildren }\n </>\n );\n};\n\nLayerMenu.defaultProps = {\n position: 'top-left'\n};\n\nexport default LayerMenu;\n"],"names":["MENU_PADDING","LayerMenu","props","canvasHeight","setCanvasHeight","useState","visible","setVisible","menuOpen","setMenuOpen","mapRef","useRef","getLayerName","useCallback","index","isVisible","_","children","useMemo","Children","visibleChildren","child","toggleVisibility","value","useEffect","instance","offsetHeight","jsxs","Fragment","MapControl","jsx","prevMenuOpen","BsStack","IoCheckmarkOutline"],"mappings":"i9BAuBA,MAAMA,EAAe,GAEfC,EAAaC,GAAiB,CAClC,KAAM,CAACC,EAAcC,CAAe,EAAIC,WAAS,CAAC,EAC5C,CAACC,EAASC,CAAU,EAAIF,EAAS,SAAA,EACjC,CAACG,EAAUC,CAAW,EAAIJ,WAAS,EAAK,EAExC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a,4CAC9B,QAAS,IAAMO,EAAasB,GAAiB,CAACA,CAAY,EAC1D,KAAK,SAEL,SAAAD,EAAA,kBAAA,IAACE,EAAA,QAAA,CACC,KAAK,QAAA,CACP,CAAA,CACF,EACExB,GACAsB,EAAA,kBAAA,IAAC,MAAA,CACC,UAAU,aACV,MAAO,CACL,UAAW,QAAQ3B,CAAY,QAAQH,CAAY,KACrD,EAEA,SAAA8B,EAAA,kBAAA,IAAC,MAAA,CACC,UAAU,OAER,SAAEd,EAAA,IAAIC,EAAU,CAACI,EAAOP,IACxBa,EAAA,kBAAA,KAAC,MAAA,CACC,gBAAeZ,EAAUD,CAAK,EAC9B,UAAU,SACV,KAAK,SACL,QAAS,IAAMQ,EAAiBR,CAAK,EACrC,UAAW,IAAMQ,EAAiBR,CAAK,EACvC,SAAUA,EAEV,SAAA,CAAAgB,EAAA,kBAAA,IAAC,MAAA,CACC,UAAU,sBAER,SAAAf,EAAUD,CAAK,GACfgB,EAAA,kBAAA,IAACG,EAAA,mBAAA,CACC,KAAK,KAAA,CACP,CAAA,CAEJ,EACErB,EAAaE,CAAK,CAAA,CAAA,CAAA,CAEvB,CAAA,CACH,CAAA,CACF,CAAA,CAAA,CAEJ,EACEM,CACJ,CAAA,CAAA,CAEJ,EAEAnB,EAAU,aAAe,CACvB,SAAU,UACZ"}
@@ -1,2 +1,2 @@
1
- "use strict";const o=require("./index.cjs28.js"),s=require("./index.cjs147.js"),i=require("./index.cjs24.js"),n=require("./index.cjs234.js");s(["pop","push","reverse","shift","sort","splice","unshift"],function(r){var e=i.ArrayProto[r];o.prototype[r]=function(){var t=this._wrapped;return t!=null&&(e.apply(t,arguments),(r==="shift"||r==="splice")&&t.length===0&&delete t[0]),n(this,t)}});s(["concat","join","slice"],function(r){var e=i.ArrayProto[r];o.prototype[r]=function(){var t=this._wrapped;return t!=null&&(t=e.apply(t,arguments)),n(this,t)}});module.exports=o;
1
+ "use strict";const o=require("./index.cjs28.js"),s=require("./index.cjs147.js"),i=require("./index.cjs24.js"),n=require("./index.cjs233.js");s(["pop","push","reverse","shift","sort","splice","unshift"],function(r){var e=i.ArrayProto[r];o.prototype[r]=function(){var t=this._wrapped;return t!=null&&(e.apply(t,arguments),(r==="shift"||r==="splice")&&t.length===0&&delete t[0]),n(this,t)}});s(["concat","join","slice"],function(r){var e=i.ArrayProto[r];o.prototype[r]=function(){var t=this._wrapped;return t!=null&&(t=e.apply(t,arguments)),n(this,t)}});module.exports=o;
2
2
  //# sourceMappingURL=index.cjs50.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),u=require("./index.cjs70.js");require("./index.cjs71.js");require("./index.cjs72.js");require("./index.cjs73.js");const c=require("./index.cjs74.js");require("./index.cjs75.js");require("./index.cjs76.js");require("./index.cjs77.js");require("./index.cjs78.js");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=i(o),a=Promise.resolve().then(()=>require("./index.cjs19.js")).then(e=>e.on);l.forwardRef(function(t,r){return u.default(t,r,a)});const s=c;exports.FullscreenControl=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),u=require("./index.cjs68.js");require("./index.cjs69.js");require("./index.cjs70.js");require("./index.cjs71.js");const c=require("./index.cjs72.js");require("./index.cjs73.js");require("./index.cjs74.js");require("./index.cjs75.js");require("./index.cjs76.js");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=i(o),a=Promise.resolve().then(()=>require("./index.cjs19.js")).then(e=>e.on);l.forwardRef(function(t,r){return u.default(t,r,a)});const s=c;exports.FullscreenControl=s;
2
2
  //# sourceMappingURL=index.cjs52.js.map
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs68.js"),R=require("react");var p;function a(){if(p)return t.__exports;p=1;/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs77.js"),R=require("react");var p;function a(){if(p)return t.__exports;p=1;/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("./index.cjs69.js"),tr=require("react");var he;function ar(){if(he)return R.__exports;he=1;/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("./index.cjs78.js"),tr=require("react");var he;function ar(){if(he)return R.__exports;he=1;/**
2
2
  * @license React
3
3
  * react-jsx-runtime.development.js
4
4
  *
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react"),g=require("./index.cjs76.js"),m=require("./index.cjs184.js"),y=require("./index.cjs185.js"),E=require("./index.cjs186.js"),x=require("./index.cjs187.js");function w(e){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const t=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(u,i,t.get?t:{enumerable:!0,get:()=>e[i]})}}return u.default=e,Object.freeze(u)}const c=w(a),M=c.createContext(null);function L(e,u,i){const t=a.useContext(g.MountedMapsContext),[s,b]=a.useState(null),f=a.useRef(),{current:l}=a.useRef({mapLib:null,map:null});a.useEffect(()=>{const h=e.mapLib;let d=!0,r;return Promise.resolve(h||i).then(o=>{if(!d)return;if(!o)throw new Error("Invalid mapLib");const n="Map"in o?o:o.default;if(!n.Map)throw new Error("Invalid mapLib");if(x(n,e),!n.supported||n.supported(e))e.reuseMaps&&(r=m.reuse(e,f.current)),r||(r=new m(n.Map,e,f.current)),l.map=y(r),l.mapLib=n,b(r),t==null||t.onMapMount(l.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(o=>{const{onError:n}=e;n?n({type:"error",target:null,originalEvent:null,error:o}):console.error(o)}),()=>{d=!1,r&&(t==null||t.onMapUnmount(e.id),e.reuseMaps?r.recycle():r.destroy())}},[]),E(()=>{s&&s.setProps(e)}),a.useImperativeHandle(u,()=>l.map,[s]);const p=a.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),v={height:"100%"};return c.createElement("div",{id:e.id,ref:f,style:p},s&&c.createElement(M.Provider,{value:l},c.createElement("div",{"mapboxgl-children":"",style:v},e.children)))}exports.MapContext=M;exports.default=L;
2
2
  //# sourceMappingURL=index.cjs68.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs68.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.cjs68.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/map.js"],"sourcesContent":["import * as React from 'react';\nimport { useState, useRef, useEffect, useContext, useMemo, useImperativeHandle } from 'react';\nimport { MountedMapsContext } from './use-map';\nimport Mapbox from '../mapbox/mapbox';\nimport createRef from '../mapbox/create-ref';\nimport useIsomorphicLayoutEffect from '../utils/use-isomorphic-layout-effect';\nimport setGlobals from '../utils/set-globals';\nexport const MapContext = React.createContext(null);\nexport default function Map(props, ref, defaultLib) {\n const mountedMapsContext = useContext(MountedMapsContext);\n const [mapInstance, setMapInstance] = useState(null);\n const containerRef = useRef();\n const { current: contextValue } = useRef({ mapLib: null, map: null });\n useEffect(() => {\n const mapLib = props.mapLib;\n let isMounted = true;\n let mapbox;\n Promise.resolve(mapLib || defaultLib)\n .then((module) => {\n if (!isMounted) {\n return;\n }\n if (!module) {\n throw new Error('Invalid mapLib');\n }\n const mapboxgl = 'Map' in module ? module : module.default;\n if (!mapboxgl.Map) {\n throw new Error('Invalid mapLib');\n }\n // workerUrl & workerClass may change the result of supported()\n // https://github.com/visgl/react-map-gl/discussions/2027\n setGlobals(mapboxgl, props);\n if (!mapboxgl.supported || mapboxgl.supported(props)) {\n if (props.reuseMaps) {\n mapbox = Mapbox.reuse(props, containerRef.current);\n }\n if (!mapbox) {\n mapbox = new Mapbox(mapboxgl.Map, props, containerRef.current);\n }\n contextValue.map = createRef(mapbox);\n contextValue.mapLib = mapboxgl;\n setMapInstance(mapbox);\n mountedMapsContext === null || mountedMapsContext === void 0 ? void 0 : mountedMapsContext.onMapMount(contextValue.map, props.id);\n }\n else {\n throw new Error('Map is not supported by this browser');\n }\n })\n .catch(error => {\n const { onError } = props;\n if (onError) {\n onError({\n type: 'error',\n target: null,\n originalEvent: null,\n error\n });\n }\n else {\n console.error(error); // eslint-disable-line\n }\n });\n return () => {\n isMounted = false;\n if (mapbox) {\n mountedMapsContext === null || mountedMapsContext === void 0 ? void 0 : mountedMapsContext.onMapUnmount(props.id);\n if (props.reuseMaps) {\n mapbox.recycle();\n }\n else {\n mapbox.destroy();\n }\n }\n };\n }, []);\n useIsomorphicLayoutEffect(() => {\n if (mapInstance) {\n mapInstance.setProps(props);\n }\n });\n useImperativeHandle(ref, () => contextValue.map, [mapInstance]);\n const style = useMemo(() => ({\n position: 'relative',\n width: '100%',\n height: '100%',\n ...props.style\n }), [props.style]);\n const CHILD_CONTAINER_STYLE = {\n height: '100%'\n };\n return (React.createElement(\"div\", { id: props.id, ref: containerRef, style: style }, mapInstance && (React.createElement(MapContext.Provider, { value: contextValue },\n React.createElement(\"div\", { \"mapboxgl-children\": \"\", style: CHILD_CONTAINER_STYLE }, props.children)))));\n}\n//# sourceMappingURL=map.js.map"],"names":["MapContext","React","Map","props","ref","defaultLib","mountedMapsContext","useContext","MountedMapsContext","mapInstance","setMapInstance","useState","containerRef","useRef","contextValue","useEffect","mapLib","isMounted","mapbox","module","mapboxgl","setGlobals","Mapbox","createRef","error","onError","useIsomorphicLayoutEffect","useImperativeHandle","style","useMemo","CHILD_CONTAINER_STYLE"],"mappings":"yjBAOaA,EAAaC,EAAM,cAAc,IAAI,EAC1B,SAAAC,EAAIC,EAAOC,EAAKC,EAAY,CAC1C,MAAAC,EAAqBC,aAAWC,EAAAA,kBAAkB,EAClD,CAACC,EAAaC,CAAc,EAAIC,WAAS,IAAI,EAC7CC,EAAeC,EAAAA,SACf,CAAE,QAASC,CAAA,EAAiBD,EAAA,OAAO,CAAE,OAAQ,KAAM,IAAK,IAAA,CAAM,EACpEE,EAAAA,UAAU,IAAM,CACZ,MAAMC,EAASb,EAAM,OACrB,IAAIc,EAAY,GACZC,EACJ,eAAQ,QAAQF,GAAUX,CAAU,EAC/B,KAAMc,GAAW,CAClB,GAAI,CAACF,EACD,OAEJ,GAAI,CAACE,EACK,MAAA,IAAI,MAAM,gBAAgB,EAEpC,MAAMC,EAAW,QAASD,EAASA,EAASA,EAAO,QAC/C,GAAA,CAACC,EAAS,IACJ,MAAA,IAAI,MAAM,gBAAgB,EAKpC,GADAC,EAAWD,EAAUjB,CAAK,EACtB,CAACiB,EAAS,WAAaA,EAAS,UAAUjB,CAAK,EAC3CA,EAAM,YACNe,EAASI,EAAO,MAAMnB,EAAOS,EAAa,OAAO,GAEhDM,IACDA,EAAS,IAAII,EAAOF,EAAS,IAAKjB,EAAOS,EAAa,OAAO,GAEpDE,EAAA,IAAMS,EAAUL,CAAM,EACnCJ,EAAa,OAASM,EACtBV,EAAeQ,CAAM,EACEZ,GAAA,MAAiDA,EAAmB,WAAWQ,EAAa,IAAKX,EAAM,EAAE,MAG1H,OAAA,IAAI,MAAM,sCAAsC,CAC1D,CACH,EACI,MAAeqB,GAAA,CACV,KAAA,CAAE,QAAAC,CAAY,EAAAtB,EAChBsB,EACQA,EAAA,CACJ,KAAM,QACN,OAAQ,KACR,cAAe,KACf,MAAAD,CAAA,CACH,EAGD,QAAQ,MAAMA,CAAK,CACvB,CACH,EACM,IAAM,CACGP,EAAA,GACRC,IACAZ,GAAuB,MAAiDA,EAAmB,aAAaH,EAAM,EAAE,EAC5GA,EAAM,UACNe,EAAO,QAAQ,EAGfA,EAAO,QAAQ,EAEvB,CAER,EAAG,CAAE,CAAA,EACLQ,EAA0B,IAAM,CACxBjB,GACAA,EAAY,SAASN,CAAK,CAC9B,CACH,EACDwB,EAAA,oBAAoBvB,EAAK,IAAMU,EAAa,IAAK,CAACL,CAAW,CAAC,EACxD,MAAAmB,EAAQC,EAAAA,QAAQ,KAAO,CACzB,SAAU,WACV,MAAO,OACP,OAAQ,OACR,GAAG1B,EAAM,KACT,GAAA,CAACA,EAAM,KAAK,CAAC,EACX2B,EAAwB,CAC1B,OAAQ,MAAA,EAEZ,OAAQ7B,EAAM,cAAc,MAAO,CAAE,GAAIE,EAAM,GAAI,IAAKS,EAAc,MAAAgB,CAAgB,EAAAnB,GAAgBR,EAAM,cAAcD,EAAW,SAAU,CAAE,MAAOc,CAAa,EACjKb,EAAM,cAAc,MAAO,CAAE,oBAAqB,GAAI,MAAO6B,CAAA,EAAyB3B,EAAM,QAAQ,CAAA,CAAG,CAC/G","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
1
+ "use strict";const o=require("react"),y=require("react-dom"),k=require("./index.cjs188.js"),D=require("./index.cjs68.js"),P=require("./index.cjs189.js");function q(n){const g=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const c in n)if(c!=="default"){const s=Object.getOwnPropertyDescriptor(n,c);Object.defineProperty(g,c,s.get?s:{enumerable:!0,get:()=>n[c]})}}return g.default=n,Object.freeze(g)}const O=q(o);function A(n,g){const{map:c,mapLib:s}=o.useContext(D.MapContext),u=o.useRef({props:n});u.current.props=n;const t=o.useMemo(()=>{let _=!1;O.Children.forEach(n.children,r=>{r&&(_=!0)});const h={...n,element:_?document.createElement("div"):null},i=new s.Marker(h);return i.setLngLat([n.longitude,n.latitude]),i.getElement().addEventListener("click",r=>{var a,e;(e=(a=u.current.props).onClick)===null||e===void 0||e.call(a,{type:"click",target:i,originalEvent:r})}),i.on("dragstart",r=>{var a,e;const l=r;l.lngLat=t.getLngLat(),(e=(a=u.current.props).onDragStart)===null||e===void 0||e.call(a,l)}),i.on("drag",r=>{var a,e;const l=r;l.lngLat=t.getLngLat(),(e=(a=u.current.props).onDrag)===null||e===void 0||e.call(a,l)}),i.on("dragend",r=>{var a,e;const l=r;l.lngLat=t.getLngLat(),(e=(a=u.current.props).onDragEnd)===null||e===void 0||e.call(a,l)}),i},[]);o.useEffect(()=>(t.addTo(c.getMap()),()=>{t.remove()}),[]);const{longitude:f,latitude:m,offset:d,style:p,draggable:v=!1,popup:L=null,rotation:b=0,rotationAlignment:E="auto",pitchAlignment:R="auto"}=n;return o.useEffect(()=>{k.applyReactStyle(t.getElement(),p)},[p]),o.useImperativeHandle(g,()=>t,[]),(t.getLngLat().lng!==f||t.getLngLat().lat!==m)&&t.setLngLat([f,m]),d&&!P.arePointsEqual(t.getOffset(),d)&&t.setOffset(d),t.isDraggable()!==v&&t.setDraggable(v),t.getRotation()!==b&&t.setRotation(b),t.getRotationAlignment()!==E&&t.setRotationAlignment(E),t.getPitchAlignment()!==R&&t.setPitchAlignment(R),t.getPopup()!==L&&t.setPopup(L),y.createPortal(n.children,t.getElement())}o.memo(o.forwardRef(A));
2
2
  //# sourceMappingURL=index.cjs69.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs69.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.cjs69.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/marker.js"],"sourcesContent":["/* global document */\nimport * as React from 'react';\nimport { createPortal } from 'react-dom';\nimport { useImperativeHandle, useEffect, useMemo, useRef, useContext, forwardRef, memo } from 'react';\nimport { applyReactStyle } from '../utils/apply-react-style';\nimport { MapContext } from './map';\nimport { arePointsEqual } from '../utils/deep-equal';\n/* eslint-disable complexity,max-statements */\nfunction Marker(props, ref) {\n const { map, mapLib } = useContext(MapContext);\n const thisRef = useRef({ props });\n thisRef.current.props = props;\n const marker = useMemo(() => {\n let hasChildren = false;\n React.Children.forEach(props.children, el => {\n if (el) {\n hasChildren = true;\n }\n });\n const options = {\n ...props,\n element: hasChildren ? document.createElement('div') : null\n };\n const mk = new mapLib.Marker(options);\n mk.setLngLat([props.longitude, props.latitude]);\n mk.getElement().addEventListener('click', (e) => {\n var _a, _b;\n (_b = (_a = thisRef.current.props).onClick) === null || _b === void 0 ? void 0 : _b.call(_a, {\n type: 'click',\n target: mk,\n originalEvent: e\n });\n });\n mk.on('dragstart', e => {\n var _a, _b;\n const evt = e;\n evt.lngLat = marker.getLngLat();\n (_b = (_a = thisRef.current.props).onDragStart) === null || _b === void 0 ? void 0 : _b.call(_a, evt);\n });\n mk.on('drag', e => {\n var _a, _b;\n const evt = e;\n evt.lngLat = marker.getLngLat();\n (_b = (_a = thisRef.current.props).onDrag) === null || _b === void 0 ? void 0 : _b.call(_a, evt);\n });\n mk.on('dragend', e => {\n var _a, _b;\n const evt = e;\n evt.lngLat = marker.getLngLat();\n (_b = (_a = thisRef.current.props).onDragEnd) === null || _b === void 0 ? void 0 : _b.call(_a, evt);\n });\n return mk;\n }, []);\n useEffect(() => {\n marker.addTo(map.getMap());\n return () => {\n marker.remove();\n };\n }, []);\n const { longitude, latitude, offset, style, draggable = false, popup = null, rotation = 0, rotationAlignment = 'auto', pitchAlignment = 'auto' } = props;\n useEffect(() => {\n applyReactStyle(marker.getElement(), style);\n }, [style]);\n useImperativeHandle(ref, () => marker, []);\n if (marker.getLngLat().lng !== longitude || marker.getLngLat().lat !== latitude) {\n marker.setLngLat([longitude, latitude]);\n }\n if (offset && !arePointsEqual(marker.getOffset(), offset)) {\n marker.setOffset(offset);\n }\n if (marker.isDraggable() !== draggable) {\n marker.setDraggable(draggable);\n }\n if (marker.getRotation() !== rotation) {\n marker.setRotation(rotation);\n }\n if (marker.getRotationAlignment() !== rotationAlignment) {\n marker.setRotationAlignment(rotationAlignment);\n }\n if (marker.getPitchAlignment() !== pitchAlignment) {\n marker.setPitchAlignment(pitchAlignment);\n }\n if (marker.getPopup() !== popup) {\n marker.setPopup(popup);\n }\n return createPortal(props.children, marker.getElement());\n}\nexport default memo(forwardRef(Marker));\n//# sourceMappingURL=marker.js.map"],"names":["Marker","props","ref","map","mapLib","useContext","MapContext","thisRef","useRef","marker","useMemo","hasChildren","React","el","options","mk","e","_a","_b","evt","useEffect","longitude","latitude","offset","style","draggable","popup","rotation","rotationAlignment","pitchAlignment","applyReactStyle","useImperativeHandle","arePointsEqual","createPortal","memo","forwardRef"],"mappings":"mbAQA,SAASA,EAAOC,EAAOC,EAAK,CACxB,KAAM,CAAEC,IAAAA,EAAK,OAAAC,CAAO,EAAIC,aAAWC,EAAU,UAAA,EACvCC,EAAUC,EAAAA,OAAO,CAAE,MAAAP,CAAO,CAAA,EAChCM,EAAQ,QAAQ,MAAQN,EAClB,MAAAQ,EAASC,EAAAA,QAAQ,IAAM,CACzB,IAAIC,EAAc,GAClBC,EAAM,SAAS,QAAQX,EAAM,SAAgBY,GAAA,CACrCA,IACcF,EAAA,GAClB,CACH,EACD,MAAMG,EAAU,CACZ,GAAGb,EACH,QAASU,EAAc,SAAS,cAAc,KAAK,EAAI,IAAA,EAErDI,EAAK,IAAIX,EAAO,OAAOU,CAAO,EACpC,OAAAC,EAAG,UAAU,CAACd,EAAM,UAAWA,EAAM,QAAQ,CAAC,EAC9Cc,EAAG,WAAW,EAAE,iBAAiB,QAAUC,GAAM,CAC7C,IAAIC,EAAIC,GACPA,GAAMD,EAAKV,EAAQ,QAAQ,OAAO,WAAa,MAAQW,IAAO,QAAkBA,EAAG,KAAKD,EAAI,CACzF,KAAM,QACN,OAAQF,EACR,cAAeC,CAAA,CAClB,CAAA,CACJ,EACED,EAAA,GAAG,YAAkB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AAO,UAAU,EAAGc,CAAM,GACpDd,EAAO,UAAUc,CAAM,EAEvBd,EAAO,YAAY,IAAMgB,GACzBhB,EAAO,aAAagB,CAAS,EAE7BhB,EAAO,YAAY,IAAMkB,GACzBlB,EAAO,YAAYkB,CAAQ,EAE3BlB,EAAO,qBAAqB,IAAMmB,GAClCnB,EAAO,qBAAqBmB,CAAiB,EAE7CnB,EAAO,kBAAkB,IAAMoB,GAC/BpB,EAAO,kBAAkBoB,CAAc,EAEvCpB,EAAO,SAAS,IAAMiB,GACtBjB,EAAO,SAASiB,CAAK,EAElBO,EAAAA,aAAahC,EAAM,SAAUQ,EAAO,WAAY,CAAA,CAC3D,CACeyB,EAAAA,KAAKC,EAAAA,WAAWnC,CAAM,CAAC","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react"),g=require("./index.cjs78.js"),m=require("./index.cjs184.js"),y=require("./index.cjs185.js"),E=require("./index.cjs186.js"),x=require("./index.cjs187.js");function w(e){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const t=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(u,i,t.get?t:{enumerable:!0,get:()=>e[i]})}}return u.default=e,Object.freeze(u)}const c=w(a),M=c.createContext(null);function L(e,u,i){const t=a.useContext(g.MountedMapsContext),[s,b]=a.useState(null),f=a.useRef(),{current:l}=a.useRef({mapLib:null,map:null});a.useEffect(()=>{const h=e.mapLib;let d=!0,r;return Promise.resolve(h||i).then(o=>{if(!d)return;if(!o)throw new Error("Invalid mapLib");const n="Map"in o?o:o.default;if(!n.Map)throw new Error("Invalid mapLib");if(x(n,e),!n.supported||n.supported(e))e.reuseMaps&&(r=m.reuse(e,f.current)),r||(r=new m(n.Map,e,f.current)),l.map=y(r),l.mapLib=n,b(r),t==null||t.onMapMount(l.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(o=>{const{onError:n}=e;n?n({type:"error",target:null,originalEvent:null,error:o}):console.error(o)}),()=>{d=!1,r&&(t==null||t.onMapUnmount(e.id),e.reuseMaps?r.recycle():r.destroy())}},[]),E(()=>{s&&s.setProps(e)}),a.useImperativeHandle(u,()=>l.map,[s]);const p=a.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),v={height:"100%"};return c.createElement("div",{id:e.id,ref:f,style:p},s&&c.createElement(M.Provider,{value:l},c.createElement("div",{"mapboxgl-children":"",style:v},e.children)))}exports.MapContext=M;exports.default=L;
1
+ "use strict";const g=require("react-dom"),a=require("react"),h=require("./index.cjs188.js"),L=require("./index.cjs68.js"),v=require("./index.cjs189.js");function f(e){return new Set(e?e.trim().split(/\s+/):[])}function C(e,r){const{map:m,mapLib:d}=a.useContext(L.MapContext),u=a.useMemo(()=>document.createElement("div"),[]),c=a.useRef({props:e});c.current.props=e;const t=a.useMemo(()=>{const s={...e},o=new d.Popup(s);return o.setLngLat([e.longitude,e.latitude]),o.once("open",n=>{var i,l;(l=(i=c.current.props).onOpen)===null||l===void 0||l.call(i,n)}),o},[]);if(a.useEffect(()=>{const s=o=>{var n,i;(i=(n=c.current.props).onClose)===null||i===void 0||i.call(n,o)};return t.on("close",s),t.setDOMContent(u).addTo(m.getMap()),()=>{t.off("close",s),t.isOpen()&&t.remove()}},[]),a.useEffect(()=>{h.applyReactStyle(t.getElement(),e.style)},[e.style]),a.useImperativeHandle(r,()=>t,[]),t.isOpen()&&((t.getLngLat().lng!==e.longitude||t.getLngLat().lat!==e.latitude)&&t.setLngLat([e.longitude,e.latitude]),e.offset&&!v.deepEqual(t.options.offset,e.offset)&&t.setOffset(e.offset),(t.options.anchor!==e.anchor||t.options.maxWidth!==e.maxWidth)&&(t.options.anchor=e.anchor,t.setMaxWidth(e.maxWidth)),t.options.className!==e.className)){const s=f(t.options.className),o=f(e.className);for(const n of s)o.has(n)||t.removeClassName(n);for(const n of o)s.has(n)||t.addClassName(n);t.options.className=e.className}return g.createPortal(e.children,u)}a.memo(a.forwardRef(C));
2
2
  //# sourceMappingURL=index.cjs70.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs70.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/map.js"],"sourcesContent":["import * as React from 'react';\nimport { useState, useRef, useEffect, useContext, useMemo, useImperativeHandle } from 'react';\nimport { MountedMapsContext } from './use-map';\nimport Mapbox from '../mapbox/mapbox';\nimport createRef from '../mapbox/create-ref';\nimport useIsomorphicLayoutEffect from '../utils/use-isomorphic-layout-effect';\nimport setGlobals from '../utils/set-globals';\nexport const MapContext = React.createContext(null);\nexport default function Map(props, ref, defaultLib) {\n const mountedMapsContext = useContext(MountedMapsContext);\n const [mapInstance, setMapInstance] = useState(null);\n const containerRef = useRef();\n const { current: contextValue } = useRef({ mapLib: null, map: null });\n useEffect(() => {\n const mapLib = props.mapLib;\n let isMounted = true;\n let mapbox;\n Promise.resolve(mapLib || defaultLib)\n .then((module) => {\n if (!isMounted) {\n return;\n }\n if (!module) {\n throw new Error('Invalid mapLib');\n }\n const mapboxgl = 'Map' in module ? module : module.default;\n if (!mapboxgl.Map) {\n throw new Error('Invalid mapLib');\n }\n // workerUrl & workerClass may change the result of supported()\n // https://github.com/visgl/react-map-gl/discussions/2027\n setGlobals(mapboxgl, props);\n if (!mapboxgl.supported || mapboxgl.supported(props)) {\n if (props.reuseMaps) {\n mapbox = Mapbox.reuse(props, containerRef.current);\n }\n if (!mapbox) {\n mapbox = new Mapbox(mapboxgl.Map, props, containerRef.current);\n }\n contextValue.map = createRef(mapbox);\n contextValue.mapLib = mapboxgl;\n setMapInstance(mapbox);\n mountedMapsContext === null || mountedMapsContext === void 0 ? void 0 : mountedMapsContext.onMapMount(contextValue.map, props.id);\n }\n else {\n throw new Error('Map is not supported by this browser');\n }\n })\n .catch(error => {\n const { onError } = props;\n if (onError) {\n onError({\n type: 'error',\n target: null,\n originalEvent: null,\n error\n });\n }\n else {\n console.error(error); // eslint-disable-line\n }\n });\n return () => {\n isMounted = false;\n if (mapbox) {\n mountedMapsContext === null || mountedMapsContext === void 0 ? void 0 : mountedMapsContext.onMapUnmount(props.id);\n if (props.reuseMaps) {\n mapbox.recycle();\n }\n else {\n mapbox.destroy();\n }\n }\n };\n }, []);\n useIsomorphicLayoutEffect(() => {\n if (mapInstance) {\n mapInstance.setProps(props);\n }\n });\n useImperativeHandle(ref, () => contextValue.map, [mapInstance]);\n const style = useMemo(() => ({\n position: 'relative',\n width: '100%',\n height: '100%',\n ...props.style\n }), [props.style]);\n const CHILD_CONTAINER_STYLE = {\n height: '100%'\n };\n return (React.createElement(\"div\", { id: props.id, ref: containerRef, style: style }, mapInstance && (React.createElement(MapContext.Provider, { value: contextValue },\n React.createElement(\"div\", { \"mapboxgl-children\": \"\", style: CHILD_CONTAINER_STYLE }, props.children)))));\n}\n//# sourceMappingURL=map.js.map"],"names":["MapContext","React","Map","props","ref","defaultLib","mountedMapsContext","useContext","MountedMapsContext","mapInstance","setMapInstance","useState","containerRef","useRef","contextValue","useEffect","mapLib","isMounted","mapbox","module","mapboxgl","setGlobals","Mapbox","createRef","error","onError","useIsomorphicLayoutEffect","useImperativeHandle","style","useMemo","CHILD_CONTAINER_STYLE"],"mappings":"yjBAOaA,EAAaC,EAAM,cAAc,IAAI,EAC1B,SAAAC,EAAIC,EAAOC,EAAKC,EAAY,CAC1C,MAAAC,EAAqBC,aAAWC,EAAAA,kBAAkB,EAClD,CAACC,EAAaC,CAAc,EAAIC,WAAS,IAAI,EAC7CC,EAAeC,EAAAA,SACf,CAAE,QAASC,CAAA,EAAiBD,EAAA,OAAO,CAAE,OAAQ,KAAM,IAAK,IAAA,CAAM,EACpEE,EAAAA,UAAU,IAAM,CACZ,MAAMC,EAASb,EAAM,OACrB,IAAIc,EAAY,GACZC,EACJ,eAAQ,QAAQF,GAAUX,CAAU,EAC/B,KAAMc,GAAW,CAClB,GAAI,CAACF,EACD,OAEJ,GAAI,CAACE,EACK,MAAA,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,CAAgB,EAAAnB,GAAgBR,EAAM,cAAcD,EAAW,SAAU,CAAE,MAAOc,CAAa,EACjKb,EAAM,cAAc,MAAO,CAAE,oBAAqB,GAAI,MAAO6B,CAAA,EAAyB3B,EAAM,QAAQ,CAAA,CAAG,CAC/G","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs70.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/popup.js"],"sourcesContent":["import { createPortal } from 'react-dom';\nimport { useImperativeHandle, useEffect, useMemo, useRef, useContext, forwardRef, memo } from 'react';\nimport { applyReactStyle } from '../utils/apply-react-style';\nimport { MapContext } from './map';\nimport { deepEqual } from '../utils/deep-equal';\n// Adapted from https://github.com/mapbox/mapbox-gl-js/blob/v1.13.0/src/ui/popup.js\nfunction getClassList(className) {\n return new Set(className ? className.trim().split(/\\s+/) : []);\n}\n/* eslint-disable complexity,max-statements */\nfunction Popup(props, ref) {\n const { map, mapLib } = useContext(MapContext);\n const container = useMemo(() => {\n return document.createElement('div');\n }, []);\n const thisRef = useRef({ props });\n thisRef.current.props = props;\n const popup = useMemo(() => {\n const options = { ...props };\n const pp = new mapLib.Popup(options);\n pp.setLngLat([props.longitude, props.latitude]);\n pp.once('open', e => {\n var _a, _b;\n (_b = (_a = thisRef.current.props).onOpen) === null || _b === void 0 ? void 0 : _b.call(_a, e);\n });\n return pp;\n }, []);\n useEffect(() => {\n const onClose = e => {\n var _a, _b;\n (_b = (_a = thisRef.current.props).onClose) === null || _b === void 0 ? void 0 : _b.call(_a, e);\n };\n popup.on('close', onClose);\n popup.setDOMContent(container).addTo(map.getMap());\n return () => {\n // https://github.com/visgl/react-map-gl/issues/1825\n // onClose should not be fired if the popup is removed by unmounting\n // When using React strict mode, the component is mounted twice.\n // Firing the onClose callback here would be a false signal to remove the component.\n popup.off('close', onClose);\n if (popup.isOpen()) {\n popup.remove();\n }\n };\n }, []);\n useEffect(() => {\n applyReactStyle(popup.getElement(), props.style);\n }, [props.style]);\n useImperativeHandle(ref, () => popup, []);\n if (popup.isOpen()) {\n if (popup.getLngLat().lng !== props.longitude || popup.getLngLat().lat !== props.latitude) {\n popup.setLngLat([props.longitude, props.latitude]);\n }\n if (props.offset && !deepEqual(popup.options.offset, props.offset)) {\n popup.setOffset(props.offset);\n }\n if (popup.options.anchor !== props.anchor || popup.options.maxWidth !== props.maxWidth) {\n popup.options.anchor = props.anchor;\n popup.setMaxWidth(props.maxWidth);\n }\n if (popup.options.className !== props.className) {\n const prevClassList = getClassList(popup.options.className);\n const nextClassList = getClassList(props.className);\n for (const c of prevClassList) {\n if (!nextClassList.has(c)) {\n popup.removeClassName(c);\n }\n }\n for (const c of nextClassList) {\n if (!prevClassList.has(c)) {\n popup.addClassName(c);\n }\n }\n popup.options.className = props.className;\n }\n }\n return createPortal(props.children, container);\n}\nexport default memo(forwardRef(Popup));\n//# sourceMappingURL=popup.js.map"],"names":["getClassList","className","Popup","props","ref","map","mapLib","useContext","MapContext","container","useMemo","thisRef","useRef","popup","options","pp","e","_a","_b","useEffect","onClose","applyReactStyle","useImperativeHandle","deepEqual","prevClassList","nextClassList","c","createPortal","memo","forwardRef"],"mappings":"yJAMA,SAASA,EAAaC,EAAW,CACtB,OAAA,IAAI,IAAIA,EAAYA,EAAU,OAAO,MAAM,KAAK,EAAI,CAAA,CAAE,CACjE,CAEA,SAASC,EAAMC,EAAOC,EAAK,CACvB,KAAM,CAAEC,IAAAA,EAAK,OAAAC,CAAO,EAAIC,aAAWC,EAAU,UAAA,EACvCC,EAAYC,EAAAA,QAAQ,IACf,SAAS,cAAc,KAAK,EACpC,CAAE,CAAA,EACCC,EAAUC,EAAAA,OAAO,CAAE,MAAAT,CAAO,CAAA,EAChCQ,EAAQ,QAAQ,MAAQR,EAClB,MAAAU,EAAQH,EAAAA,QAAQ,IAAM,CAClB,MAAAI,EAAU,CAAE,GAAGX,GACfY,EAAK,IAAIT,EAAO,MAAMQ,CAAO,EACnC,OAAAC,EAAG,UAAU,CAACZ,EAAM,UAAWA,EA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ACpDY,EAAgBzB,EAAaG,EAAM,SAAS,EAClD,UAAWuB,KAAKF,EACPC,EAAc,IAAIC,CAAC,GACpBb,EAAM,gBAAgBa,CAAC,EAG/B,UAAWA,KAAKD,EACPD,EAAc,IAAIE,CAAC,GACpBb,EAAM,aAAaa,CAAC,EAGtBb,EAAA,QAAQ,UAAYV,EAAM,SACpC,CAEG,OAAAwB,eAAaxB,EAAM,SAAUM,CAAS,CACjD,CACemB,EAAAA,KAAKC,EAAAA,WAAW3B,CAAK,CAAC","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const o=require("react"),y=require("react-dom"),k=require("./index.cjs188.js"),D=require("./index.cjs70.js"),P=require("./index.cjs189.js");function q(n){const g=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const c in n)if(c!=="default"){const s=Object.getOwnPropertyDescriptor(n,c);Object.defineProperty(g,c,s.get?s:{enumerable:!0,get:()=>n[c]})}}return g.default=n,Object.freeze(g)}const O=q(o);function A(n,g){const{map:c,mapLib:s}=o.useContext(D.MapContext),u=o.useRef({props:n});u.current.props=n;const t=o.useMemo(()=>{let _=!1;O.Children.forEach(n.children,r=>{r&&(_=!0)});const h={...n,element:_?document.createElement("div"):null},i=new s.Marker(h);return i.setLngLat([n.longitude,n.latitude]),i.getElement().addEventListener("click",r=>{var a,e;(e=(a=u.current.props).onClick)===null||e===void 0||e.call(a,{type:"click",target:i,originalEvent:r})}),i.on("dragstart",r=>{var a,e;const l=r;l.lngLat=t.getLngLat(),(e=(a=u.current.props).onDragStart)===null||e===void 0||e.call(a,l)}),i.on("drag",r=>{var a,e;const l=r;l.lngLat=t.getLngLat(),(e=(a=u.current.props).onDrag)===null||e===void 0||e.call(a,l)}),i.on("dragend",r=>{var a,e;const l=r;l.lngLat=t.getLngLat(),(e=(a=u.current.props).onDragEnd)===null||e===void 0||e.call(a,l)}),i},[]);o.useEffect(()=>(t.addTo(c.getMap()),()=>{t.remove()}),[]);const{longitude:f,latitude:m,offset:d,style:p,draggable:v=!1,popup:L=null,rotation:b=0,rotationAlignment:E="auto",pitchAlignment:R="auto"}=n;return o.useEffect(()=>{k.applyReactStyle(t.getElement(),p)},[p]),o.useImperativeHandle(g,()=>t,[]),(t.getLngLat().lng!==f||t.getLngLat().lat!==m)&&t.setLngLat([f,m]),d&&!P.arePointsEqual(t.getOffset(),d)&&t.setOffset(d),t.isDraggable()!==v&&t.setDraggable(v),t.getRotation()!==b&&t.setRotation(b),t.getRotationAlignment()!==E&&t.setRotationAlignment(E),t.getPitchAlignment()!==R&&t.setPitchAlignment(R),t.getPopup()!==L&&t.setPopup(L),y.createPortal(n.children,t.getElement())}o.memo(o.forwardRef(A));
1
+ "use strict";const e=require("react"),i=require("./index.cjs188.js"),r=require("./index.cjs16.js");function c(t){const n=r(({mapLib:o})=>new o.AttributionControl(t),{position:t.position});return e.useEffect(()=>{i.applyReactStyle(n._container,t.style)},[t.style]),null}e.memo(c);
2
2
  //# sourceMappingURL=index.cjs71.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs71.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/marker.js"],"sourcesContent":["/* global document */\nimport * as React from 'react';\nimport { createPortal } from 'react-dom';\nimport { useImperativeHandle, useEffect, useMemo, useRef, useContext, forwardRef, memo } from 'react';\nimport { applyReactStyle } from '../utils/apply-react-style';\nimport { MapContext } from './map';\nimport { arePointsEqual } from '../utils/deep-equal';\n/* eslint-disable complexity,max-statements */\nfunction Marker(props, ref) {\n const { map, mapLib } = useContext(MapContext);\n const thisRef = useRef({ props });\n thisRef.current.props = props;\n const marker = useMemo(() => {\n let hasChildren = false;\n React.Children.forEach(props.children, el => {\n if (el) {\n hasChildren = true;\n }\n });\n const options = {\n ...props,\n element: hasChildren ? document.createElement('div') : null\n };\n const mk = new mapLib.Marker(options);\n mk.setLngLat([props.longitude, props.latitude]);\n mk.getElement().addEventListener('click', (e) => {\n var _a, _b;\n (_b = (_a = thisRef.current.props).onClick) === null || _b === void 0 ? void 0 : _b.call(_a, {\n type: 'click',\n target: mk,\n originalEvent: e\n });\n });\n mk.on('dragstart', e => {\n var _a, _b;\n const evt = e;\n evt.lngLat = marker.getLngLat();\n (_b = (_a = thisRef.current.props).onDragStart) === null || _b === void 0 ? void 0 : _b.call(_a, evt);\n });\n mk.on('drag', e => {\n var _a, _b;\n const evt = e;\n evt.lngLat = marker.getLngLat();\n (_b = (_a = thisRef.current.props).onDrag) === null || _b === void 0 ? void 0 : _b.call(_a, evt);\n });\n mk.on('dragend', e => {\n var _a, _b;\n const evt = e;\n evt.lngLat = marker.getLngLat();\n (_b = (_a = thisRef.current.props).onDragEnd) === null || _b === void 0 ? void 0 : _b.call(_a, evt);\n });\n return mk;\n }, []);\n useEffect(() => {\n marker.addTo(map.getMap());\n return () => {\n marker.remove();\n };\n }, []);\n const { longitude, latitude, offset, style, draggable = false, popup = null, rotation = 0, rotationAlignment = 'auto', pitchAlignment = 'auto' } = props;\n useEffect(() => {\n applyReactStyle(marker.getElement(), style);\n }, [style]);\n useImperativeHandle(ref, () => marker, []);\n if (marker.getLngLat().lng !== longitude || marker.getLngLat().lat !== latitude) {\n marker.setLngLat([longitude, latitude]);\n }\n if (offset && !arePointsEqual(marker.getOffset(), offset)) {\n marker.setOffset(offset);\n }\n if (marker.isDraggable() !== draggable) {\n marker.setDraggable(draggable);\n }\n if (marker.getRotation() !== rotation) {\n marker.setRotation(rotation);\n }\n if (marker.getRotationAlignment() !== rotationAlignment) {\n marker.setRotationAlignment(rotationAlignment);\n }\n if (marker.getPitchAlignment() !== pitchAlignment) {\n marker.setPitchAlignment(pitchAlignment);\n }\n if (marker.getPopup() !== popup) {\n marker.setPopup(popup);\n }\n return createPortal(props.children, marker.getElement());\n}\nexport default memo(forwardRef(Marker));\n//# sourceMappingURL=marker.js.map"],"names":["Marker","props","ref","map","mapLib","useContext","MapContext","thisRef","useRef","marker","useMemo","hasChildren","React","el","options","mk","e","_a","_b","evt","useEffect","longitude","latitude","offset","style","draggable","popup","rotation","rotationAlignment","pitchAlignment","applyReactStyle","useImperativeHandle","arePointsEqual","createPortal","memo","forwardRef"],"mappings":"mbAQA,SAASA,EAAOC,EAAOC,EAAK,CACxB,KAAM,CAAEC,IAAAA,EAAK,OAAAC,CAAO,EAAIC,aAAWC,EAAU,UAAA,EACvCC,EAAUC,EAAAA,OAAO,CAAE,MAAAP,CAAO,CAAA,EAChCM,EAAQ,QAAQ,MAAQN,EAClB,MAAAQ,EAASC,EAAAA,QAAQ,IAAM,CACzB,IAAIC,EAAc,GAClBC,EAAM,SAAS,QAAQX,EAAM,SAAgBY,GAAA,CACrCA,IACcF,EAAA,GAClB,CACH,EACD,MAAMG,EAAU,CACZ,GAAGb,EACH,QAASU,EAAc,SAAS,cAAc,KAAK,EAAI,IAAA,EAErDI,EAAK,IAAIX,EAAO,OAAOU,CAAO,EACpC,OAAAC,EAAG,UAAU,CAACd,EAAM,UAAWA,EAAM,QAAQ,CAAC,EAC9Cc,EAAG,WAAW,EAAE,iBAAiB,QAAUC,GAAM,CAC7C,IAAIC,EAAIC,GACPA,GAAMD,EAAKV,EAAQ,QAAQ,OAAO,WAAa,MAAQW,IAAO,QAAkBA,EAAG,KAAKD,EAAI,CACzF,KAAM,QACN,OAAQF,EACR,cAAeC,CAAA,CAClB,CAAA,CACJ,EACED,EAAA,GAAG,YAAkBC,GAAA,CACpB,IAAIC,EAAIC,EACR,MAAMC,EAAMH,EACRG,EAAA,OAASV,EAAO,aACnBS,GAAMD,EAAKV,EAAQ,QAAQ,OAAO,eAAiB,MAAQW,IAAO,QAAkBA,EAAG,KAAKD,EAAIE,CAAG,CAAA,CACvG,EACEJ,EAAA,GAAG,OAAaC,GAAA,CACf,IAAIC,EAAIC,EACR,MAAMC,EAAMH,EACRG,EAAA,OAASV,EAAO,aACnBS,GAAMD,EAAKV,EAAQ,QAAQ,OAAO,UAAY,MAAQW,IAAO,QAAkBA,EAAG,KAAKD,EAAIE,CAAG,CAAA,CAClG,EACEJ,EAA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,WAAY,CAAA,CAC3D,CACeyB,EAAAA,KAAKC,EAAAA,WAAWnC,CAAM,CAAC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs71.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/attribution-control.js"],"sourcesContent":["import { useEffect, memo } from 'react';\nimport { applyReactStyle } from '../utils/apply-react-style';\nimport useControl from './use-control';\nfunction AttributionControl(props) {\n const ctrl = useControl(({ mapLib }) => new mapLib.AttributionControl(props), {\n position: props.position\n });\n useEffect(() => {\n applyReactStyle(ctrl._container, props.style);\n }, [props.style]);\n return null;\n}\nexport default memo(AttributionControl);\n//# sourceMappingURL=attribution-control.js.map"],"names":["AttributionControl","props","ctrl","useControl","mapLib","useEffect","applyReactStyle","memo"],"mappings":"mGAGA,SAASA,EAAmBC,EAAO,CACzB,MAAAC,EAAOC,EAAW,CAAC,CAAE,OAAAC,KAAa,IAAIA,EAAO,mBAAmBH,CAAK,EAAG,CAC1E,SAAUA,EAAM,QAAA,CACnB,EACDI,OAAAA,EAAAA,UAAU,IAAM,CACIC,EAAAA,gBAAAJ,EAAK,WAAYD,EAAM,KAAK,CAAA,EAC7C,CAACA,EAAM,KAAK,CAAC,EACT,IACX,CACeM,OAAKP,CAAkB","x_google_ignoreList":[0]}