@corva/ui 3.67.0-9 → 3.68.0-0

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 (103) hide show
  1. package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/Map.css.js +1 -1
  2. package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/Map.js +1 -1
  3. package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/Map.js.map +1 -1
  4. package/cjs-bundle/components/BICOffsetPickerDialog/effects/index.js +1 -1
  5. package/cjs-bundle/components/BICOffsetPickerDialog/effects/index.js.map +1 -1
  6. package/cjs-bundle/components/OffsetWellMap/OffsetWellMap.js +1 -1
  7. package/cjs-bundle/components/OffsetWellMap/OffsetWellMap.js.map +1 -1
  8. package/cjs-bundle/components/OffsetWellMap/OffsetWellMap.module.css.js +1 -1
  9. package/cjs-bundle/components/OffsetWellMap/WellTooltip.module.css.js +1 -1
  10. package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.css.js +1 -1
  11. package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
  12. package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.js.map +1 -1
  13. package/cjs-bundle/components/OffsetWellPickerV2/effects/index.js +1 -1
  14. package/cjs-bundle/components/OffsetWellPickerV2/effects/index.js.map +1 -1
  15. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.css.js +1 -1
  16. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
  17. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js.map +1 -1
  18. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js +1 -1
  19. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js.map +1 -1
  20. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.js +1 -1
  21. package/cjs-bundle/components/OffsetWellPickerV5/components/MapPreloader/MapPreloader.js +1 -1
  22. package/cjs-bundle/components/PinnableFilters/effects/index.js +1 -1
  23. package/cjs-bundle/components/PinnableFilters/effects/index.js.map +1 -1
  24. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetFilters/useOptions.js +1 -1
  25. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js +1 -1
  26. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.js +1 -1
  27. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/hooks/usePadsByRadius.js +1 -1
  28. package/cjs-bundle/config/index.js +1 -1
  29. package/cjs-bundle/config/mapbox/index.js +1 -1
  30. package/cjs-bundle/config/mapbox/index.js.map +1 -1
  31. package/cjs-bundle/config/mapboxGl/index.js +2 -0
  32. package/cjs-bundle/config/mapboxGl/index.js.map +1 -0
  33. package/cjs-bundle/config/mapboxLabelPolicy/index.js +2 -0
  34. package/cjs-bundle/config/mapboxLabelPolicy/index.js.map +1 -0
  35. package/cjs-bundle/styles/mapbox.global.css.js +1 -1
  36. package/components/BICOffsetPickerDialog/components/Map/Map.css.js +1 -1
  37. package/components/BICOffsetPickerDialog/components/Map/Map.d.ts.map +1 -1
  38. package/components/BICOffsetPickerDialog/components/Map/Map.js +1 -1
  39. package/components/BICOffsetPickerDialog/components/Map/Map.js.map +1 -1
  40. package/components/BICOffsetPickerDialog/effects/index.js +1 -1
  41. package/components/BICOffsetPickerDialog/effects/index.js.map +1 -1
  42. package/components/OffsetWellMap/OffsetWellMap.d.ts.map +1 -1
  43. package/components/OffsetWellMap/OffsetWellMap.js +1 -1
  44. package/components/OffsetWellMap/OffsetWellMap.js.map +1 -1
  45. package/components/OffsetWellMap/OffsetWellMap.module.css.js +1 -1
  46. package/components/OffsetWellMap/WellTooltip.module.css.js +1 -1
  47. package/components/OffsetWellPickerV2/components/Map/Map.css.js +1 -1
  48. package/components/OffsetWellPickerV2/components/Map/Map.d.ts.map +1 -1
  49. package/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
  50. package/components/OffsetWellPickerV2/components/Map/Map.js.map +1 -1
  51. package/components/OffsetWellPickerV2/effects/index.js +1 -1
  52. package/components/OffsetWellPickerV2/effects/index.js.map +1 -1
  53. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.css.js +1 -1
  54. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.d.ts.map +1 -1
  55. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
  56. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js.map +1 -1
  57. package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js +1 -1
  58. package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js.map +1 -1
  59. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.d.ts.map +1 -1
  60. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.js +1 -1
  61. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapTooltipState.d.ts +1 -1
  62. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useOffsetWellMapState.d.ts +1 -1
  63. package/components/OffsetWellPickerV5/components/MapPreloader/MapPreloader.d.ts.map +1 -1
  64. package/components/OffsetWellPickerV5/components/MapPreloader/MapPreloader.js +1 -1
  65. package/components/PinnableFilters/effects/index.js +1 -1
  66. package/components/PinnableFilters/effects/index.js.map +1 -1
  67. package/componentsV2/CompletionsOffsetWellPicker/AssetFilters/AssetFilters.d.ts +1 -1
  68. package/componentsV2/CompletionsOffsetWellPicker/AssetFilters/AssetFilters.d.ts.map +1 -1
  69. package/componentsV2/CompletionsOffsetWellPicker/AssetFilters/useOptions.d.ts +1 -1
  70. package/componentsV2/CompletionsOffsetWellPicker/AssetFilters/useOptions.d.ts.map +1 -1
  71. package/componentsV2/CompletionsOffsetWellPicker/AssetFilters/useOptions.js +1 -1
  72. package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js +1 -1
  73. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.js +1 -1
  74. package/componentsV2/CompletionsOffsetWellPicker/hooks/__tests__/usePadsByRadius.test.d.ts +2 -0
  75. package/componentsV2/CompletionsOffsetWellPicker/hooks/__tests__/usePadsByRadius.test.d.ts.map +1 -0
  76. package/componentsV2/CompletionsOffsetWellPicker/hooks/usePadsByRadius.d.ts +1 -1
  77. package/componentsV2/CompletionsOffsetWellPicker/hooks/usePadsByRadius.d.ts.map +1 -1
  78. package/componentsV2/CompletionsOffsetWellPicker/hooks/usePadsByRadius.js +1 -1
  79. package/componentsV2/CompletionsOffsetWellPicker/types.d.ts +1 -1
  80. package/componentsV2/CompletionsOffsetWellPicker/types.d.ts.map +1 -1
  81. package/config/index.d.ts +2 -1
  82. package/config/index.d.ts.map +1 -1
  83. package/config/index.js +1 -1
  84. package/config/mapbox/index.d.ts.map +1 -1
  85. package/config/mapbox/index.js +1 -1
  86. package/config/mapbox/index.js.map +1 -1
  87. package/config/mapboxGl/index.d.ts +3 -0
  88. package/config/mapboxGl/index.d.ts.map +1 -0
  89. package/config/mapboxGl/index.js +2 -0
  90. package/config/mapboxGl/index.js.map +1 -0
  91. package/config/mapboxLabelPolicy/__tests__/index.test.d.ts +2 -0
  92. package/config/mapboxLabelPolicy/__tests__/index.test.d.ts.map +1 -0
  93. package/config/mapboxLabelPolicy/index.d.ts +5 -0
  94. package/config/mapboxLabelPolicy/index.d.ts.map +1 -0
  95. package/config/mapboxLabelPolicy/index.js +2 -0
  96. package/config/mapboxLabelPolicy/index.js.map +1 -0
  97. package/index.d.ts +1 -0
  98. package/index.d.ts.map +1 -1
  99. package/mcp-server/server.mjs +1 -1
  100. package/package.json +1 -2
  101. package/styles/mapbox.global.css +8 -1
  102. package/styles/mapbox.global.css.js +1 -1
  103. package/tsconfig.tsbuildinfo +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),s=require("@babel/runtime/helpers/slicedToArray"),o=require("react/jsx-runtime"),i=require("react"),c=require("classnames"),n=require("@tanstack/react-query"),r=require("../Modal/Modal.js"),t=require("../OffsetWellsButton/OffsetWellsButton.js"),u=require("../Button/Button.js"),l=require("./ModalTitle/ModalTitle.js"),a=require("./AssetFilters/AssetFilters.js"),d=require("./PadsTable/PadsTable.js"),j=require("./hooks/usePads.js"),m=require("./Map/Map.js"),q=require("./types.js"),I=require("./useModalHandlers.js"),p=require("./constants.js"),f=require("./hooks/usePadsByRadius.js"),b=require("./CompletionsOffsetWellPicker.scss.js");require("@babel/runtime/helpers/objectWithoutProperties"),require("@icon-park/react/es/all"),require("../../icons/IconParkProvider.js"),require("../../icons/customIcons/icons/AddMessage.js"),require("../../icons/customIcons/icons/Attention.js"),require("../../icons/customIcons/icons/Collapse.js"),require("../../icons/customIcons/icons/Dashboard.js"),require("../../icons/customIcons/icons/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.js"),require("../../icons/customIcons/icons/FolderClosedFilled.js"),require("../../icons/customIcons/icons/FolderOpened.js"),require("../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../icons/customIcons/icons/LessOrEqual.js"),require("../../icons/customIcons/icons/Search.js"),require("../../icons/customIcons/icons/SearchOne.js"),require("../../icons/customIcons/icons/Wellhub.js"),require("../../icons/customIcons/icons/MultiRuler.js"),require("../../icons/customIcons/icons/Checkbox.js"),require("../../icons/customIcons/icons/CheckboxChecked.js"),require("../../icons/customIcons/icons/CheckboxIndeterminate.js"),require("../../icons/customIcons/icons/Radio.js"),require("../../icons/customIcons/icons/RadioChecked.js"),require("../../icons/customIcons/icons/SimulFrac.js"),require("../../icons/customIcons/icons/ZipperFrac.js"),require("../../icons/customIcons/icons/CautionFilled.js"),require("../../icons/customIcons/icons/MoreApp.js"),require("../../icons/customIcons/icons/Pad.js"),require("../../icons/customIcons/icons/DrilloutUnit.js"),require("../../icons/customIcons/icons/FracFleet.js");var O=require("../../icons/customIcons/icons/Global.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../icons/customIcons/icons/Program.js"),require("../../icons/customIcons/icons/Rig.js"),require("../../icons/customIcons/icons/Well.js"),require("../../icons/customIcons/icons/Gap.js"),require("../../icons/customIcons/icons/Pin.js"),require("../../icons/customIcons/icons/CloseOneFilled.js"),require("../../icons/customIcons/icons/AttentionFilled.js"),require("../../icons/customIcons/icons/CheckOneFilled.js"),require("../../icons/customIcons/icons/Archive.js"),require("../../icons/customIcons/icons/ArchiveCancel.js"),require("../../icons/customIcons/icons/Unarchive.js"),require("../../icons/customIcons/icons/Archived.js"),require("../../icons/customIcons/icons/InterventionUnit.js"),require("../../icons/customIcons/icons/CloudDelete.js"),require("../../icons/customIcons/icons/Lasso.js"),require("../../icons/customIcons/icons/Radius.js"),require("../../icons/customIcons/icons/ErrorOps.js"),require("../../icons/customIcons/icons/DataTypeOps.js"),require("../../icons/customIcons/icons/FalsePositiveOps.js"),require("../../icons/customIcons/icons/CalibrationOps.js"),require("../../icons/customIcons/icons/CriticalOps.js"),require("../../icons/customIcons/icons/Company.js"),require("../../icons/customIcons/icons/ArchiveOne.js"),require("../../icons/customIcons/icons/ParseBotFusion.js"),require("../../icons/customIcons/icons/Connect.js"),require("../../icons/customIcons/icons/PuzzleOne.js"),require("../../icons/customIcons/icons/Feed.js"),require("../../icons/customIcons/icons/Prompt.js"),require("../../icons/customIcons/icons/Companies.js"),require("../../icons/customIcons/icons/ClipboardAi.js"),require("../../icons/customIcons/icons/Key.js"),require("../../icons/customIcons/icons/AtSignCrossed.js"),require("../../icons/customIcons/icons/MappingManual.js"),require("../../icons/customIcons/icons/Mapping.js"),require("../../icons/customIcons/icons/Metrics.js"),require("../../icons/customIcons/icons/Drops.js"),require("../../icons/customIcons/icons/ClipboardSearch.js"),require("../../icons/customIcons/icons/Template.js"),require("../../icons/customIcons/icons/ClipboardMetrics.js"),require("../../icons/customIcons/icons/ClipboardBuilder.js"),require("../../icons/customIcons/icons/UnitConversion.js"),require("../../icons/customIcons/icons/NPT.js"),require("../../icons/customIcons/icons/GuidedFrac.js");var C=h(e),M=h(s),P=h(c);function y(e,s){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable}))),o.push.apply(o,i)}return o}function S(e){for(var s=1;s<arguments.length;s++){var o=null!=arguments[s]?arguments[s]:{};s%2?y(Object(o),!0).forEach((function(s){C.default(e,s,o[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):y(Object(o)).forEach((function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(o,s))}))}return e}var g=i.memo((function(e){var s=e.selectedPadId,c=e.selectedOffsetWellIds,n=e.onOffsetWellsSelect,h=e.companyId,C=e.maxRadiusInMiles,y=e.well,g=e.wells,v=e.isGlobalSelector,x=e.testId,F=e.buttonLabel,W=i.useState(!0),k=M.default(W,2),A=k[0],w=k[1],B=i.useState(!0),D=M.default(B,2),R=D[0],T=D[1],L=i.useState((function(){return S(S({},p.BASE_FILTERS),{},{radiusMiles:C})})),E=M.default(L,2),G=E[0],z=E[1],H=i.useState((function(){return S(S({},G),{},{padStatus:q.PadStatus.All})})),N=M.default(H,1)[0],U=R?G:N,V=j.usePads({companyId:h,padStatus:U.padStatus,well:y,wells:g,selectedOffsetWellIds:c}),_=V.pads,Q=V.isBackgroundDataLoading,K=V.isSelectedPadsLoading,Z=f.usePadsByRadius({pads:_,selectedPadId:s,radiusMiles:U.radiusMiles}),J=I.useModalHandlers({pads:Z,selectedOffsetWellIds:c,onOffsetWellsSelect:n}),X=J.isModalOpen,Y=J.handleOpenModal,$=J.handleCloseModal,ee=J.handleSaveSelectedWellIds,se=J.handleCancelButtonClick,oe=J.handleResetSelection,ie=J.localSelectedOffsetWellIds,ce=J.setLocalSelectedOffsetWellIds,ne=i.useMemo((function(){return Z?Z.filter((function(e){return e.id.toString()!==s.toString()})).flatMap((function(e){return e.wells.map((function(e){return e.id}))})):[]}),[Z,s]),re=i.useMemo((function(){return Z?Z.filter((function(e){return e.wells.some((function(e){return ie.includes(e.id)}))})):[]}),[Z,ie]);return o.jsxs(o.Fragment,{children:[o.jsx(t.OffsetWellsButton,{wells:c.length,"data-testid":x,icon:v?o.jsx(O.Global,{size:20,className:b.buttonIcon}):void 0,onClick:Y,label:F}),o.jsx(r.Modal,{open:X,size:"fullscreen",onClose:$,primaryActionText:"Select Wells (".concat(ie.length,")"),primaryActionHandler:ee,secondaryActionText:"Cancel",secondaryActionHandler:se,actions:[o.jsx(u.Button,{type:"secondaryDestructive",onClick:oe,children:"Reset"},"clear-filters")],title:o.jsx(l,{total:Z.length?Z.length-1:0,selected:re.length,isMapVisible:A,isFiltersVisible:R,toggleMapVisibility:function(){return w((function(e){return!e}))},toggleFiltersVisibility:function(){return T((function(e){return!e}))},onModalClose:$,isBackgroundDataLoading:Q}),children:o.jsxs("div",{className:b.modalContent,children:[A&&o.jsx(m,{wells:g,well:y,pads:Z,selectedOffsetWellsIds:ie,onOffsetWellIdsSelect:ce,radiusMiles:U.radiusMiles,setFilters:z,maxRadiusInMiles:C}),o.jsxs("div",{className:P.default(b.tableContainer,A?b.tableContainerWithMap:b.tableContainerWithoutMap),children:[R&&o.jsx(a,{pads:Z,selectedPadId:s,filters:U,setFilters:z}),o.jsx(d,{allWellIds:ne,pads:Z,selectedPadId:s,selectedOffsetWellIds:ie,onOffsetWellIdsSelect:ce,filters:U,isSelectedPadsLoading:K})]})]})})]})}));exports.CompletionsOffsetWellPicker=function(e){var s=i.useMemo((function(){return new n.QueryClient}),[]);return o.jsx(n.QueryClientProvider,{client:s,children:o.jsx(g,S({},e))})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),s=require("@babel/runtime/helpers/slicedToArray"),o=require("react/jsx-runtime"),i=require("react"),c=require("classnames"),n=require("@tanstack/react-query"),r=require("../Modal/Modal.js"),t=require("../OffsetWellsButton/OffsetWellsButton.js"),u=require("../Button/Button.js"),l=require("./ModalTitle/ModalTitle.js"),a=require("./AssetFilters/AssetFilters.js"),d=require("./PadsTable/PadsTable.js"),j=require("./hooks/usePads.js"),m=require("./Map/Map.js"),q=require("./types.js"),I=require("./useModalHandlers.js"),p=require("./constants.js"),f=require("./hooks/usePadsByRadius.js"),b=require("./CompletionsOffsetWellPicker.scss.js");require("@babel/runtime/helpers/objectWithoutProperties"),require("@icon-park/react/es/all"),require("../../icons/IconParkProvider.js"),require("../../icons/customIcons/icons/AddMessage.js"),require("../../icons/customIcons/icons/Attention.js"),require("../../icons/customIcons/icons/Collapse.js"),require("../../icons/customIcons/icons/Dashboard.js"),require("../../icons/customIcons/icons/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.js"),require("../../icons/customIcons/icons/FolderClosedFilled.js"),require("../../icons/customIcons/icons/FolderOpened.js"),require("../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../icons/customIcons/icons/LessOrEqual.js"),require("../../icons/customIcons/icons/Search.js"),require("../../icons/customIcons/icons/SearchOne.js"),require("../../icons/customIcons/icons/Wellhub.js"),require("../../icons/customIcons/icons/MultiRuler.js"),require("../../icons/customIcons/icons/Checkbox.js"),require("../../icons/customIcons/icons/CheckboxChecked.js"),require("../../icons/customIcons/icons/CheckboxIndeterminate.js"),require("../../icons/customIcons/icons/Radio.js"),require("../../icons/customIcons/icons/RadioChecked.js"),require("../../icons/customIcons/icons/SimulFrac.js"),require("../../icons/customIcons/icons/ZipperFrac.js"),require("../../icons/customIcons/icons/CautionFilled.js"),require("../../icons/customIcons/icons/MoreApp.js"),require("../../icons/customIcons/icons/Pad.js"),require("../../icons/customIcons/icons/DrilloutUnit.js"),require("../../icons/customIcons/icons/FracFleet.js");var O=require("../../icons/customIcons/icons/Global.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../icons/customIcons/icons/Program.js"),require("../../icons/customIcons/icons/Rig.js"),require("../../icons/customIcons/icons/Well.js"),require("../../icons/customIcons/icons/Gap.js"),require("../../icons/customIcons/icons/Pin.js"),require("../../icons/customIcons/icons/CloseOneFilled.js"),require("../../icons/customIcons/icons/AttentionFilled.js"),require("../../icons/customIcons/icons/CheckOneFilled.js"),require("../../icons/customIcons/icons/Archive.js"),require("../../icons/customIcons/icons/ArchiveCancel.js"),require("../../icons/customIcons/icons/Unarchive.js"),require("../../icons/customIcons/icons/Archived.js"),require("../../icons/customIcons/icons/InterventionUnit.js"),require("../../icons/customIcons/icons/CloudDelete.js"),require("../../icons/customIcons/icons/Lasso.js"),require("../../icons/customIcons/icons/Radius.js"),require("../../icons/customIcons/icons/ErrorOps.js"),require("../../icons/customIcons/icons/DataTypeOps.js"),require("../../icons/customIcons/icons/FalsePositiveOps.js"),require("../../icons/customIcons/icons/CalibrationOps.js"),require("../../icons/customIcons/icons/CriticalOps.js"),require("../../icons/customIcons/icons/Company.js"),require("../../icons/customIcons/icons/ArchiveOne.js"),require("../../icons/customIcons/icons/ParseBotFusion.js"),require("../../icons/customIcons/icons/Connect.js"),require("../../icons/customIcons/icons/PuzzleOne.js"),require("../../icons/customIcons/icons/Feed.js"),require("../../icons/customIcons/icons/Prompt.js"),require("../../icons/customIcons/icons/Companies.js"),require("../../icons/customIcons/icons/ClipboardAi.js"),require("../../icons/customIcons/icons/Key.js"),require("../../icons/customIcons/icons/AtSignCrossed.js"),require("../../icons/customIcons/icons/MappingManual.js"),require("../../icons/customIcons/icons/Mapping.js"),require("../../icons/customIcons/icons/Metrics.js"),require("../../icons/customIcons/icons/Drops.js"),require("../../icons/customIcons/icons/ClipboardSearch.js"),require("../../icons/customIcons/icons/Template.js"),require("../../icons/customIcons/icons/ClipboardMetrics.js"),require("../../icons/customIcons/icons/ClipboardBuilder.js"),require("../../icons/customIcons/icons/UnitConversion.js"),require("../../icons/customIcons/icons/NPT.js"),require("../../icons/customIcons/icons/GuidedFrac.js");var C=h(e),M=h(s),P=h(c);function y(e,s){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable}))),o.push.apply(o,i)}return o}function S(e){for(var s=1;s<arguments.length;s++){var o=null!=arguments[s]?arguments[s]:{};s%2?y(Object(o),!0).forEach((function(s){C.default(e,s,o[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):y(Object(o)).forEach((function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(o,s))}))}return e}var g=i.memo((function(e){var s=e.selectedPadId,c=e.selectedOffsetWellIds,n=e.onOffsetWellsSelect,h=e.companyId,C=e.maxRadiusInMiles,y=e.well,g=e.wells,v=e.isGlobalSelector,x=e.testId,F=e.buttonLabel,W=i.useState(!0),k=M.default(W,2),A=k[0],w=k[1],B=i.useState(!0),D=M.default(B,2),R=D[0],T=D[1],L=i.useState((function(){return S(S({},p.BASE_FILTERS),{},{radiusMiles:C})})),E=M.default(L,2),G=E[0],z=E[1],H=i.useState((function(){return S(S({},G),{},{padStatus:q.PadStatus.All})})),N=M.default(H,1)[0],U=R?G:N,V=j.usePads({companyId:h,padStatus:U.padStatus,well:y,wells:g,selectedOffsetWellIds:c}),_=V.pads,Q=V.isBackgroundDataLoading,K=V.isSelectedPadsLoading,Z=f.usePadsByRadius({pads:_,selectedPadId:s,radiusMiles:U.radiusMiles}),J=I.useModalHandlers({pads:Z,selectedOffsetWellIds:c,onOffsetWellsSelect:n}),X=J.isModalOpen,Y=J.handleOpenModal,$=J.handleCloseModal,ee=J.handleSaveSelectedWellIds,se=J.handleCancelButtonClick,oe=J.handleResetSelection,ie=J.localSelectedOffsetWellIds,ce=J.setLocalSelectedOffsetWellIds,ne=i.useMemo((function(){return Z?Z.filter((function(e){return e.id.toString()!==(null==s?void 0:s.toString())})).flatMap((function(e){return e.wells.map((function(e){return e.id}))})):[]}),[Z,s]),re=i.useMemo((function(){return Z?Z.filter((function(e){return e.wells.some((function(e){return ie.includes(e.id)}))})):[]}),[Z,ie]);return o.jsxs(o.Fragment,{children:[o.jsx(t.OffsetWellsButton,{wells:c.length,"data-testid":x,icon:v?o.jsx(O.Global,{size:20,className:b.buttonIcon}):void 0,onClick:Y,label:F}),o.jsx(r.Modal,{open:X,size:"fullscreen",onClose:$,primaryActionText:"Select Wells (".concat(ie.length,")"),primaryActionHandler:ee,secondaryActionText:"Cancel",secondaryActionHandler:se,actions:[o.jsx(u.Button,{type:"secondaryDestructive",onClick:oe,children:"Reset"},"clear-filters")],title:o.jsx(l,{total:Z.length?Z.length-1:0,selected:re.length,isMapVisible:A,isFiltersVisible:R,toggleMapVisibility:function(){return w((function(e){return!e}))},toggleFiltersVisibility:function(){return T((function(e){return!e}))},onModalClose:$,isBackgroundDataLoading:Q}),children:o.jsxs("div",{className:b.modalContent,children:[A&&o.jsx(m,{wells:g,well:y,pads:Z,selectedOffsetWellsIds:ie,onOffsetWellIdsSelect:ce,radiusMiles:U.radiusMiles,setFilters:z,maxRadiusInMiles:C}),o.jsxs("div",{className:P.default(b.tableContainer,A?b.tableContainerWithMap:b.tableContainerWithoutMap),children:[R&&o.jsx(a,{pads:Z,selectedPadId:s,filters:U,setFilters:z}),o.jsx(d,{allWellIds:ne,pads:Z,selectedPadId:s,selectedOffsetWellIds:ie,onOffsetWellIdsSelect:ce,filters:U,isSelectedPadsLoading:K})]})]})})]})}));exports.CompletionsOffsetWellPicker=function(e){var s=i.useMemo((function(){return new n.QueryClient}),[]);return o.jsx(n.QueryClientProvider,{client:s,children:o.jsx(g,S({},e))})};
2
2
  //# sourceMappingURL=CompletionsOffsetWellPicker.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/slicedToArray"),r=require("react/jsx-runtime"),l=require("react"),n=require("../../Button/Button.js"),s=require("@material-ui/core"),a=require("../../../components/Table/TableCell/TableCell.js"),i=require("../../LoaderLogo/LoaderLogo.js"),o=require("../constants.js"),d=require("./PadTableRow.js"),u=require("./helpers/useFilteredData.js"),c=require("./PadsTableBody.scss.js");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var h=f(e),b=f(t),m=l.memo((function(e){var t,f=e.pads,m=e.selectedPadId,j=e.searchText,g=e.sortBy,x=e.sortDirection,T=e.selectedOffsetWellIds,S=e.filters,p=e.isSelectedPadsLoading,q=e.handleSelectPad,M=e.handleSelectWellId,v=l.useState(50),y=b.default(v,2),P=y[0],B=y[1],L=l.useCallback((function(){B((function(e){return e+50}))}),[]),C=l.useMemo((function(){return f.filter((function(e){return e.id.toString()!==m.toString()}))}),[f,m]),I=l.useMemo((function(){return f.find((function(e){return e.id.toString()===m.toString()}))}),[f,m]),D=l.useMemo((function(){return!!(j||S.selectedFormations.length||S.selectedFracFleets.length||S.tvdMin||S.tvdMax!==o.MAX_TVD||S.radiusMiles)}),[j,S]),F=u.useFilteredData({data:C,searchText:j,sortBy:g,sortDirection:x,selectedWellIds:T,filters:S,mainItem:I});l.useEffect((function(){B(50)}),[j,S]);var W=l.useMemo((function(){return F.slice(0,P)}),[F,P]);return!I||p?r.jsx(i.LoaderLogo,{}):r.jsxs(s.TableBody,{children:[null===(t=[I].concat(h.default(W)))||void 0===t?void 0:t.map((function(e){return r.jsx(d,{isMainPad:e.id.toString()===m.toString(),data:e,isExpanded:D,searchText:j,handleSelectPad:q,selectedOffsetWellIds:T,handleSelectWellId:M},e.id)})),F.length>50&&P<F.length&&r.jsx(s.TableRow,{children:r.jsx(a.TableCell,{colSpan:4,className:c.loadMoreCell,children:r.jsx(n.Button,{onClick:L,children:"Load More"})})})]})}));exports.PadsTableBody=m;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/slicedToArray"),r=require("react/jsx-runtime"),l=require("react"),n=require("../../Button/Button.js"),i=require("@material-ui/core"),o=require("../../../components/Table/TableCell/TableCell.js"),s=require("../../LoaderLogo/LoaderLogo.js"),a=require("../constants.js"),d=require("./PadTableRow.js"),u=require("./helpers/useFilteredData.js"),c=require("./PadsTableBody.scss.js");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var h=f(e),b=f(t),m=l.memo((function(e){var t,f=e.pads,m=e.selectedPadId,j=e.searchText,g=e.sortBy,x=e.sortDirection,T=e.selectedOffsetWellIds,S=e.filters,p=e.isSelectedPadsLoading,q=e.handleSelectPad,v=e.handleSelectWellId,M=l.useState(50),y=b.default(M,2),P=y[0],B=y[1],L=l.useCallback((function(){B((function(e){return e+50}))}),[]),C=l.useMemo((function(){return f.filter((function(e){return e.id.toString()!==(null==m?void 0:m.toString())}))}),[f,m]),I=l.useMemo((function(){return f.find((function(e){return e.id.toString()===(null==m?void 0:m.toString())}))}),[f,m]),D=l.useMemo((function(){return!!(j||S.selectedFormations.length||S.selectedFracFleets.length||S.tvdMin||S.tvdMax!==a.MAX_TVD||S.radiusMiles)}),[j,S]),F=u.useFilteredData({data:C,searchText:j,sortBy:g,sortDirection:x,selectedWellIds:T,filters:S,mainItem:I});l.useEffect((function(){B(50)}),[j,S]);var W=l.useMemo((function(){return F.slice(0,P)}),[F,P]);return!I||p?r.jsx(s.LoaderLogo,{}):r.jsxs(i.TableBody,{children:[null===(t=[I].concat(h.default(W)))||void 0===t?void 0:t.map((function(e){return r.jsx(d,{isMainPad:e.id.toString()===(null==m?void 0:m.toString()),data:e,isExpanded:D,searchText:j,handleSelectPad:q,selectedOffsetWellIds:T,handleSelectWellId:v},e.id)})),F.length>50&&P<F.length&&r.jsx(i.TableRow,{children:r.jsx(o.TableCell,{colSpan:4,className:c.loadMoreCell,children:r.jsx(n.Button,{onClick:L,children:"Load More"})})})]})}));exports.PadsTableBody=m;
2
2
  //# sourceMappingURL=PadsTableBody.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("@babel/runtime/helpers/slicedToArray"),e=require("react");function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=r(t),a=function(t){return t*Math.PI/180};exports.usePadsByRadius=function(t){var r=t.radiusMiles,u=t.pads,i=t.selectedPadId,o=e.useMemo((function(){return u.find((function(t){return t.id.toString()===i.toString()}))}),[u,i]);return e.useMemo((function(){return u.filter((function(t){var e;if(!r||null==o||!o.wells.length)return!0;var u=n.default(o.wells[0].topHole.coordinates,2),i=u[0],s=u[1],l=(null===(e=t.wells[0])||void 0===e?void 0:e.topHole.coordinates)||[],d=n.default(l,2),c=d[0],f=d[1];if(!(c&&f&&i&&s))return!0;var M=a(c-i),h=a(f-s),v=Math.sin(M/2)*Math.sin(M/2)+Math.cos(a(i))*Math.cos(a(c))*Math.sin(h/2)*Math.sin(h/2);return 3958.8*(2*Math.atan2(Math.sqrt(v),Math.sqrt(1-v)))<=r}))}),[u,r,o])};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("@babel/runtime/helpers/slicedToArray"),e=require("react");function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=r(t),u=function(t){return t*Math.PI/180};exports.usePadsByRadius=function(t){var r=t.radiusMiles,a=t.pads,i=t.selectedPadId,o=e.useMemo((function(){return a.find((function(t){return t.id.toString()===(null==i?void 0:i.toString())}))}),[a,i]);return e.useMemo((function(){return a.filter((function(t){var e;if(!r||null==o||!o.wells.length)return!0;var a=n.default(o.wells[0].topHole.coordinates,2),i=a[0],s=a[1],l=(null===(e=t.wells[0])||void 0===e?void 0:e.topHole.coordinates)||[],d=n.default(l,2),c=d[0],f=d[1];if(!(c&&f&&i&&s))return!0;var M=u(c-i),h=u(f-s),v=Math.sin(M/2)*Math.sin(M/2)+Math.cos(u(i))*Math.cos(u(c))*Math.sin(h/2)*Math.sin(h/2);return 3958.8*(2*Math.atan2(Math.sqrt(v),Math.sqrt(1-v)))<=r}))}),[a,r,o])};
2
2
  //# sourceMappingURL=usePadsByRadius.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./theme/index.js"),i=require("./highcharts/highcharts.js"),r=require("./mapbox/index.js"),t=require("./initGlobalDependencies.js");exports.theme=e,exports.initHighcharts=i.initHighcharts,exports.MAP_BOX_ACCESS_TOKEN=r.MAP_BOX_ACCESS_TOKEN,exports.initGlobalDependencies=t.initGlobalDependencies;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./theme/index.js"),i=require("./highcharts/highcharts.js"),r=require("./mapbox/index.js"),t=require("./mapboxLabelPolicy/index.js"),s=require("./initGlobalDependencies.js");exports.theme=e,exports.initHighcharts=i.initHighcharts,exports.MAP_BOX_ACCESS_TOKEN=r.MAP_BOX_ACCESS_TOKEN,exports.initMapbox=t.initMapbox,exports.initGlobalDependencies=s.initGlobalDependencies;
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t="pk.eyJ1IjoiY29ydmEtYWkiLCJhIjoiY2tzeXg1Ym84Mm53NjJvbnZvZ3JxajVwayJ9.3B6ubssBj1UCqN5o25X6pw";e(require("mapbox.js")).default.mapbox.accessToken=t,exports.MAP_BOX_ACCESS_TOKEN=t;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.MAP_BOX_ACCESS_TOKEN="pk.eyJ1IjoiY29ydmEtYWkiLCJhIjoiY2tzeXg1Ym84Mm53NjJvbnZvZ3JxajVwayJ9.3B6ubssBj1UCqN5o25X6pw";
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/config/mapbox/index.js"],"sourcesContent":["import L from 'mapbox.js';\n\n// NOTE: Access token from Jim Wang\nexport const MAP_BOX_ACCESS_TOKEN =\n 'pk.eyJ1IjoiY29ydmEtYWkiLCJhIjoiY2tzeXg1Ym84Mm53NjJvbnZvZ3JxajVwayJ9.3B6ubssBj1UCqN5o25X6pw';\nL.mapbox.accessToken = MAP_BOX_ACCESS_TOKEN;\n"],"names":["MAP_BOX_ACCESS_TOKEN","L","mapbox","accessToken"],"mappings":"gJAGaA,EACX,qHACFC,QAAEC,OAAOC,YAAcH"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/config/mapbox/index.js"],"sourcesContent":["// NOTE: Access token from Jim Wang\nexport const MAP_BOX_ACCESS_TOKEN =\n 'pk.eyJ1IjoiY29ydmEtYWkiLCJhIjoiY2tzeXg1Ym84Mm53NjJvbnZvZ3JxajVwayJ9.3B6ubssBj1UCqN5o25X6pw';\n"],"names":[],"mappings":"iGAEE"}
@@ -0,0 +1,2 @@
1
+ "use strict";var e=require("mapbox-gl"),a=require("../mapbox/index.js"),t=require("../mapboxLabelPolicy/index.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=u(e);t.initMapbox(o.default),o.default.accessToken||(o.default.accessToken=a.MAP_BOX_ACCESS_TOKEN),module.exports=o.default;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/config/mapboxGl/index.js"],"sourcesContent":["// The mapbox-gl runtime used by @corva/ui components, with the Corva label\n// policy applied and the access token set. Use this module (or pass it as\n// @vis.gl/react-mapbox `mapLib`) instead of importing 'mapbox-gl' directly.\nimport mapboxgl from 'mapbox-gl';\n\nimport { MAP_BOX_ACCESS_TOKEN } from '../mapbox';\nimport { initMapbox } from '../mapboxLabelPolicy';\n\ninitMapbox(mapboxgl);\n\nif (!mapboxgl.accessToken) {\n mapboxgl.accessToken = MAP_BOX_ACCESS_TOKEN;\n}\n\nexport default mapboxgl;\n"],"names":["initMapbox","mapboxgl","accessToken","MAP_BOX_ACCESS_TOKEN"],"mappings":"sMAQAA,EAAUA,WAACC,EAAQ,SAEdA,EAAAA,QAASC,cACZD,EAAQ,QAACC,YAAcC"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/createClass"),t=require("@babel/runtime/helpers/classCallCheck"),r=require("@babel/runtime/helpers/assertThisInitialized"),n=require("@babel/runtime/helpers/inherits"),l=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),o=require("@babel/runtime/helpers/toArray"),u=require("@babel/runtime/helpers/slicedToArray"),i=require("@babel/runtime/helpers/toConsumableArray");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=c(e),f=c(t),p=c(r),d=c(n),y=c(l),v=c(a),h=c(o),b=c(u),m=c(i);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v.default(e);if(t){var l=v.default(this).constructor;r=Reflect.construct(n,arguments,l)}else r=n.apply(this,arguments);return y.default(this,r)}}var x=Symbol.for("corva.mapboxLabelPolicy.patched"),M=["place_label","natural_label","country_label"],A=["any",["all",["==",["coalesce",["get","iso_3166_1"],""],"FK"],["match",["coalesce",["get","class"],""],["country","disputed_country"],!0,!1]],["==",["coalesce",["get","name_en"],""],"Falkland Islands"],["==",["coalesce",["get","name_en"],""],"Falkland Islands (Islas Malvinas)"]],_=function(e){return["case",A,"Islas Malvinas",e]},q=function(e){return Array.isArray(e)&&"zoom"===e[0]};function P(e){if("string"!=typeof e||!/\{[^}]+\}/.test(e))return e;var t=e.split(/(\{[^}]+\})/).filter(Boolean).map((function(e){var t=/^\{([^}]+)\}$/.exec(e);return t?["to-string",["coalesce",["get",t[1]],""]]:e}));return 1===t.length?t[0]:["concat"].concat(m.default(t))}function S(e){if("string"==typeof e)return _(P(e));if(Array.isArray(e)){var t=b.default(e,1)[0];return"step"===t&&q(e[1])?e.map((function(e,t){var r;return(2===t||t>=4&&t%2==0)&&null!==(r=S(e))&&void 0!==r?r:e})):"interpolate"===t&&q(e[2])?e.map((function(e,t){var r;return t>=4&&t%2==0&&null!==(r=S(e))&&void 0!==r?r:e})):_(e)}if(Array.isArray(null==e?void 0:e.stops)&&e.stops.length&&!("property"in e)){var r,n=h.default(e.stops),l=n[0],a=n.slice(1),o=["step",["zoom"],null!==(r=S(l[1]))&&void 0!==r?r:l[1]];return a.forEach((function(e){var t,r=b.default(e,2),n=r[0],l=r[1];return o.push(n,null!==(t=S(l))&&void 0!==t?t:l)})),o}return null}var w=function(e){return JSON.stringify(e).includes('"'.concat("Islas Malvinas",'"'))},F=new Set;function I(e,t){var r,n=(null==e?void 0:e.name)||(null==e||null===(r=e.metadata)||void 0===r?void 0:r.name)||"unknown-style";F.has(n)||(F.add(n),"function"==typeof t.onUnsupportedStyle?t.onUnsupportedStyle({style:n,reason:"no-supported-label-layers"}):console.warn('[corva] Mapbox style "'.concat(n,"\" has labels the Malvinas policy can't edit; left unchanged.")))}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var r,n=((null===(r=e.getStyle())||void 0===r?void 0:r.layers)||[]).filter((function(e){return"symbol"===e.type})),l=n.filter((function(e){return M.includes(e["source-layer"])}));if(!l.length)return void(n.length&&I(e.getStyle(),t));l.forEach((function(t){try{var r=e.getLayoutProperty(t.id,"text-field");if(null==r||w(r))return;var n=S(r);null!=n&&e.setLayoutProperty(t.id,"text-field",n)}catch(e){console.warn('[corva] Malvinas policy failed for layer "'.concat(t.id,'":'),e)}}))}catch(e){console.warn("[corva] Malvinas policy failed; labels left unchanged:",e)}}function k(e){var t;return"function"==typeof(null==e?void 0:e.Map)?e:"function"==typeof(null==e||null===(t=e.default)||void 0===t?void 0:t.Map)?e.default:null}exports.applyFalklandLabelPolicy=R,exports.buildWrappedTextField=S,exports.initMapbox=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var r=k(e);if(!r||r.Map[x])return e;var n=function(e){d.default(n,e);var r=g(n);function n(){var e;f.default(this,n);for(var l=arguments.length,a=new Array(l),o=0;o<l;o++)a[o]=arguments[o];e=r.call.apply(r,[this].concat(a));try{e.on("style.load",(function(){return R(p.default(e),t)}))}catch(e){}return e}return s.default(n)}(r.Map);n[x]=!0,r.Map=n}catch(e){}return e},exports.normalizeTextField=P;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/config/mapboxLabelPolicy/index.js"],"sourcesContent":["// Rewrites the \"Falkland Islands\" map label to \"Islas Malvinas\" on every Corva map.\n\nconst MALVINAS_LABEL = 'Islas Malvinas';\nconst PATCHED_MARKER = Symbol.for('corva.mapboxLabelPolicy.patched');\nconst TARGET_SOURCE_LAYERS = ['place_label', 'natural_label', 'country_label'];\n\n// ISO \"FK\" alone also matches Stanley and East/West Falkland, so require country\n// class or the exact island-group name. coalesce keeps == typed on older tilesets.\nconst FALKLAND_MATCH = [\n 'any',\n [\n 'all',\n ['==', ['coalesce', ['get', 'iso_3166_1'], ''], 'FK'],\n ['match', ['coalesce', ['get', 'class'], ''], ['country', 'disputed_country'], true, false],\n ],\n ['==', ['coalesce', ['get', 'name_en'], ''], 'Falkland Islands'],\n ['==', ['coalesce', ['get', 'name_en'], ''], 'Falkland Islands (Islas Malvinas)'],\n];\n\nconst wrapInCase = expression => ['case', FALKLAND_MATCH, MALVINAS_LABEL, expression];\nconst isZoomExpression = value => Array.isArray(value) && value[0] === 'zoom';\n\nexport function normalizeTextField(value) {\n if (typeof value !== 'string' || !/\\{[^}]+\\}/.test(value)) return value;\n\n const parts = value\n .split(/(\\{[^}]+\\})/)\n .filter(Boolean)\n .map(part => {\n const token = /^\\{([^}]+)\\}$/.exec(part);\n return token ? ['to-string', ['coalesce', ['get', token[1]], '']] : part;\n });\n\n return parts.length === 1 ? parts[0] : ['concat', ...parts];\n}\n\n// GL rejects a `case` nested under a top-level zoom step/interpolate, so those keep\n// their shape and each output branch is wrapped; legacy {stops:[...]} objects aren't\n// expressions and become a step curve. Returns null if unwrappable.\nexport function buildWrappedTextField(textField) {\n if (typeof textField === 'string') return wrapInCase(normalizeTextField(textField));\n\n if (Array.isArray(textField)) {\n const [operator] = textField;\n if (operator === 'step' && isZoomExpression(textField[1])) {\n return textField.map((p, i) =>\n i === 2 || (i >= 4 && i % 2 === 0) ? buildWrappedTextField(p) ?? p : p\n );\n }\n if (operator === 'interpolate' && isZoomExpression(textField[2])) {\n return textField.map((p, i) => (i >= 4 && i % 2 === 0 ? buildWrappedTextField(p) ?? p : p));\n }\n return wrapInCase(textField);\n }\n\n if (Array.isArray(textField?.stops) && textField.stops.length && !('property' in textField)) {\n const [first, ...rest] = textField.stops;\n const step = ['step', ['zoom'], buildWrappedTextField(first[1]) ?? first[1]];\n rest.forEach(([stop, out]) => step.push(stop, buildWrappedTextField(out) ?? out));\n return step;\n }\n\n return null;\n}\n\nconst isWrapped = textField => JSON.stringify(textField).includes(`\"${MALVINAS_LABEL}\"`);\n\nconst warnedStyles = new Set();\nfunction reportUnsupportedStyle(style, options) {\n const key = style?.name || style?.metadata?.name || 'unknown-style';\n if (warnedStyles.has(key)) return;\n warnedStyles.add(key);\n\n if (typeof options.onUnsupportedStyle === 'function') {\n options.onUnsupportedStyle({ style: key, reason: 'no-supported-label-layers' });\n } else {\n // eslint-disable-next-line no-console\n console.warn(\n `[corva] Mapbox style \"${key}\" has labels the Malvinas policy can't edit; left unchanged.`\n );\n }\n}\n\n// Fails open — a policy error never blocks map rendering.\nexport function applyFalklandLabelPolicy(map, options = {}) {\n try {\n const symbolLayers = (map.getStyle()?.layers || []).filter(l => l.type === 'symbol');\n const targets = symbolLayers.filter(l => TARGET_SOURCE_LAYERS.includes(l['source-layer']));\n\n if (!targets.length) {\n if (symbolLayers.length) reportUnsupportedStyle(map.getStyle(), options);\n return;\n }\n\n targets.forEach(layer => {\n try {\n const textField = map.getLayoutProperty(layer.id, 'text-field');\n if (textField == null || isWrapped(textField)) return;\n const wrapped = buildWrappedTextField(textField);\n if (wrapped != null) map.setLayoutProperty(layer.id, 'text-field', wrapped);\n } catch (e) {\n // eslint-disable-next-line no-console\n console.warn(`[corva] Malvinas policy failed for layer \"${layer.id}\":`, e);\n }\n });\n } catch (e) {\n // eslint-disable-next-line no-console\n console.warn('[corva] Malvinas policy failed; labels left unchanged:', e);\n }\n}\n\nfunction resolveMapboxNamespace(mapboxGl) {\n if (typeof mapboxGl?.Map === 'function') return mapboxGl;\n if (typeof mapboxGl?.default?.Map === 'function') return mapboxGl.default;\n return null;\n}\n\n// Patches a mapbox-gl runtime so every Map applies the policy on each style.load.\nexport function initMapbox(mapboxGl, options = {}) {\n try {\n const ns = resolveMapboxNamespace(mapboxGl);\n if (!ns || ns.Map[PATCHED_MARKER]) return mapboxGl;\n\n class CorvaLabelPolicyMap extends ns.Map {\n constructor(...args) {\n super(...args);\n try {\n this.on('style.load', () => applyFalklandLabelPolicy(this, options));\n } catch (e) {\n /* fail open */\n }\n }\n }\n CorvaLabelPolicyMap[PATCHED_MARKER] = true;\n ns.Map = CorvaLabelPolicyMap;\n } catch (e) {\n /* fail open */\n }\n\n return mapboxGl;\n}\n"],"names":["PATCHED_MARKER","Symbol","for","TARGET_SOURCE_LAYERS","FALKLAND_MATCH","wrapInCase","expression","isZoomExpression","value","Array","isArray","normalizeTextField","test","parts","split","filter","Boolean","map","part","token","exec","length","concat","_toConsumableArray","buildWrappedTextField","textField","operator","_slicedToArray","p","i","_buildWrappedTextFiel","_buildWrappedTextFiel2","stops","_buildWrappedTextFiel3","first","_textField$stops","rest","slice","step","forEach","_ref","_buildWrappedTextFiel4","_ref2","stop","out","push","isWrapped","JSON","stringify","includes","MALVINAS_LABEL","warnedStyles","Set","reportUnsupportedStyle","style","options","_style$metadata","key","name","metadata","has","add","onUnsupportedStyle","reason","console","warn","applyFalklandLabelPolicy","arguments","undefined","_map$getStyle","symbolLayers","getStyle","layers","l","type","targets","layer","getLayoutProperty","id","wrapped","setLayoutProperty","e","resolveMapboxNamespace","mapboxGl","_mapboxGl$default","Map","default","ns","CorvaLabelPolicyMap","_ns$Map","_inherits","_super","_createSuper","_this","_classCallCheck","this","_len","args","_key","call","apply","on","_createClass"],"mappings":"imCAEA,IACMA,EAAiBC,OAAOC,IAAI,mCAC5BC,EAAuB,CAAC,cAAe,gBAAiB,iBAIxDC,EAAiB,CACrB,MACA,CACE,MACA,CAAC,KAAM,CAAC,WAAY,CAAC,MAAO,cAAe,IAAK,MAChD,CAAC,QAAS,CAAC,WAAY,CAAC,MAAO,SAAU,IAAK,CAAC,UAAW,qBAAqB,GAAM,IAEvF,CAAC,KAAM,CAAC,WAAY,CAAC,MAAO,WAAY,IAAK,oBAC7C,CAAC,KAAM,CAAC,WAAY,CAAC,MAAO,WAAY,IAAK,sCAGzCC,EAAa,SAAAC,GAAU,MAAI,CAAC,OAAQF,EAjBnB,iBAiBmDE,EAAW,EAC/EC,EAAmB,SAAAC,GAAK,OAAIC,MAAMC,QAAQF,IAAuB,SAAbA,EAAM,EAAa,EAEtE,SAASG,EAAmBH,GACjC,GAAqB,iBAAVA,IAAuB,YAAYI,KAAKJ,GAAQ,OAAOA,EAElE,IAAMK,EAAQL,EACXM,MAAM,eACNC,OAAOC,SACPC,KAAI,SAAAC,GACH,IAAMC,EAAQ,gBAAgBC,KAAKF,GACnC,OAAOC,EAAQ,CAAC,YAAa,CAAC,WAAY,CAAC,MAAOA,EAAM,IAAK,KAAOD,CACtE,IAEF,OAAwB,IAAjBL,EAAMQ,OAAeR,EAAM,GAAE,CAAI,UAAQS,OAAAC,UAAKV,GACvD,CAKO,SAASW,EAAsBC,GACpC,GAAyB,iBAAdA,EAAwB,OAAOpB,EAAWM,EAAmBc,IAExE,GAAIhB,MAAMC,QAAQe,GAAY,CAC5B,IAAOC,EAAPC,EAAAA,QAAmBF,EAAS,GAAb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KL,EAAuBC,GAClC,IAAKI,GAAMA,EAAGF,IAAIrF,GAAiB,OAAOmF,EAAS,IAE7CK,EAAmB,SAAAC,GAAAC,UAAAF,EAAAC,GAAA,IAAAE,EAAAC,EAAAJ,GACvB,SAAqBA,IAAA,IAAAK,EAAAC,UAAAC,KAAAP,GAAA,IAAA,IAAAQ,EAAA7B,UAAA9C,OAAN4E,EAAI,IAAAxF,MAAAuF,GAAAE,EAAA,EAAAA,EAAAF,EAAAE,IAAJD,EAAIC,GAAA/B,UAAA+B,GACjBL,EAAAF,EAAAQ,KAAAC,MAAAT,EAAA,CAAAI,MAAAzE,OAAS2E,IACT,IACEJ,EAAKQ,GAAG,cAAc,WAAA,OAAMnC,EAA+BX,EAAAA,QAAAA,GAAAA,KAE3D,CADA,MAAO0B,GACP,CACD,OAAAY,CACH,CAAC,OAAAS,EAAAA,QAAAd,GARsB,CAASD,EAAGF,KAUrCG,EAAoBxF,IAAkB,EACtCuF,EAAGF,IAAMG,CAET,CADA,MAAOP,GACP,CAGF,OAAOE,CACT"}
@@ -1,2 +1,2 @@
1
- "use strict";require('./../ext-esm/style-inject/dist/style-inject.es.js')(".leaflet-container{background:#fff;color:#404040;color:rgba(0,0,0,.75);font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;-ms-touch-action:none}.leaflet-container *,.leaflet-container :after,.leaflet-container :before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.leaflet-container h1,.leaflet-container h2,.leaflet-container h3,.leaflet-container h4,.leaflet-container h5,.leaflet-container h6,.leaflet-container p{font-size:15px;line-height:20px;margin:0 0 10px}.leaflet-container .marker-description img{margin-bottom:10px}.leaflet-container a{color:#3887be;font-weight:400;text-decoration:none}.leaflet-container a:hover,.leaflet-container.dark a{color:#63b6e5}.leaflet-container.dark a:hover{color:#8fcaec}.leaflet-container .mapbox-button,.leaflet-container.dark .mapbox-button{background-color:#3887be;color:#fff;display:inline-block;font-size:12px;height:40px;line-height:40px;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.leaflet-container .mapbox-button:hover,.leaflet-container.dark .mapbox-button:hover{background-color:#3bb2d0;color:#fff}.leaflet-image-layer,.leaflet-layer,.leaflet-map-pane canvas,.leaflet-map-pane svg,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane,.leaflet-tile,.leaflet-tile-container,.leaflet-zoom-box{left:0;position:absolute;top:0}.leaflet-container{overflow:hidden}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile{-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{height:1600px;-webkit-transform-origin:0 0;width:1600px}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-overlay-pane svg,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer{max-width:none!important}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-drag{-ms-touch-action:none;touch-action:none}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{height:0;width:0;z-index:800}.leaflet-map-pane canvas{z-index:1}.leaflet-map-pane svg,.leaflet-tile-pane{z-index:2}.leaflet-overlay-pane{z-index:4}.leaflet-shadow-pane{z-index:5}.leaflet-marker-pane{z-index:6}.leaflet-tooltip-pane{z-index:7}.leaflet-popup-pane{z-index:8}.leaflet-control{pointer-events:visiblePainted;pointer-events:auto;position:relative;z-index:800}.leaflet-bottom,.leaflet-top{pointer-events:none;position:absolute;z-index:1000}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{clear:both;float:left}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-tile{will-change:opacity}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;-o-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);-o-transition:-o-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1);will-change:transform}.leaflet-pan-anim .leaflet-tile,.leaflet-zoom-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-control,.leaflet-popup-pane{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing}.leaflet-image-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-image-layer.leaflet-interactive,.leaflet-marker-icon.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{outline:0}.leaflet-zoom-box{background:#fff;border:2px dotted #202020;opacity:.5}.leaflet-bar,.leaflet-control-layers{background-color:#fff;border:1px solid rgba(0,0,0,.4);border-radius:3px;box-shadow:none}.leaflet-bar a,.leaflet-bar a:hover{border-bottom:1px solid rgba(0,0,0,.1);color:#404040;color:rgba(0,0,0,.75)}.leaflet-bar a:last-child{border-bottom:none}.leaflet-bar a:active,.leaflet-bar a:hover{background-color:#f8f8f8;cursor:pointer}.leaflet-bar a:hover:first-child{border-radius:3px 3px 0 0}.leaflet-bar a:hover:last-child{border-radius:0 0 3px 3px}.leaflet-bar a:hover:only-of-type{border-radius:3px}.leaflet-bar .leaflet-disabled{cursor:default;opacity:.75}.leaflet-control-zoom-in,.leaflet-control-zoom-out{content:\"\";display:block;text-indent:-999em}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{background:#fff;color:#404040;color:rgba(0,0,0,.75);padding:6px 10px 6px 6px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block}.leaflet-control-layers-separator{border-top:1px solid rgba(0,0,0,.1);height:0;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background-color:hsla(0,0%,100%,.5);box-shadow:none;margin:0}.leaflet-container .leaflet-control-attribution a,.leaflet-container .map-info-container a{color:#404040}.leaflet-control-attribution a:hover,.map-info-container a:hover{color:inherit;text-decoration:underline}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-container .mapbox-improve-map{font-weight:700}.leaflet-control-scale-line{background-color:hsla(0,0%,100%,.5);border:1px solid rgba(0,0,0,.4);border-top:none;overflow:hidden;padding:2px 5px 1px;white-space:nowrap}.leaflet-control-scale-line:last-child{border-bottom:none;border-top:2px solid rgba(0,0,0,.1);margin-top:-2px}.leaflet-container .leaflet-control-attribution.leaflet-compact-attribution{background:#fff;border-radius:3px 13px 13px 3px;margin:10px;padding:3px 31px 3px 3px;visibility:hidden}.leaflet-control-attribution.leaflet-compact-attribution:hover{visibility:visible}.leaflet-control-attribution.leaflet-compact-attribution:after{background-color:#fff;background-color:hsla(0,0%,100%,.5);background-position:0 -78px;border-radius:50%;bottom:0;content:\"\";cursor:pointer;display:inline-block;height:26px;position:absolute;vertical-align:middle;visibility:visible;width:26px;z-index:1}.leaflet-control-attribution.leaflet-compact-attribution:hover:after{background-color:#fff}.leaflet-right .leaflet-control-attribution.leaflet-compact-attribution:after{right:0}.leaflet-left .leaflet-control-attribution.leaflet-compact-attribution:after{left:0}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-layers{background-clip:padding-box;border:2px solid rgba(0,0,0,.2)}.leaflet-popup{pointer-events:none;position:absolute;text-align:center}.leaflet-popup-content-wrapper{padding:1px;pointer-events:all;text-align:left}.leaflet-popup-content{line-height:inherit;margin:0;padding:10px 10px 15px}.leaflet-popup-close-button+.leaflet-popup-content-wrapper .leaflet-popup-content{padding-top:15px}.leaflet-popup-tip-container{height:20px;margin:0 auto;position:relative;width:20px}.leaflet-popup-tip{border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #fff;box-shadow:none;height:0;margin:0;width:0}.leaflet-popup-close-button{pointer-events:all;position:absolute;right:0;text-indent:-999em;top:0}.leaflet-popup-close-button:hover{background-color:#f8f8f8}.leaflet-popup-scrolled{border-bottom:1px solid #ddd;border-top:1px solid #ddd;overflow:auto}.leaflet-div-icon{background:#fff;border:1px solid rgba(0,0,0,.4)}.leaflet-editing-icon{border-radius:3px}.leaflet-tooltip{background-color:#fff;border:1px solid #fff;border-radius:3px;padding:5px;pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.leaflet-tooltip.leaflet-clickable{cursor:pointer;pointer-events:auto}.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before,.leaflet-tooltip-top:before{background:0 0;border:5px solid transparent;content:\"\";pointer-events:none;position:absolute}.leaflet-tooltip-bottom{margin-top:5px}.leaflet-tooltip-top{margin-top:-5px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-5px}.leaflet-tooltip-top:before{border-top-color:#fff;bottom:0;margin-bottom:-10px}.leaflet-tooltip-bottom:before{border-bottom-color:#fff;margin-left:-5px;margin-top:-15px;top:0}.leaflet-tooltip-left{margin-left:-5px}.leaflet-tooltip-right{margin-left:5px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{margin-top:-5px;top:50%}.leaflet-tooltip-left:before{border-left-color:#fff;margin-right:-10px;right:0}.leaflet-tooltip-right:before{border-right-color:#fff;left:0;margin-left:-10px}.leaflet-bar a,.leaflet-control-layers-toggle,.leaflet-popup-close-button,.map-tooltip.closable .close,.mapbox-button-icon:before,.mapbox-icon{background-repeat:no-repeat;content:\"\";display:inline-block;height:26px;vertical-align:middle;width:26px}.leaflet-bar a{display:block}.leaflet-container.dark .map-tooltip .close,.leaflet-control-attribution:after,.leaflet-control-layers-toggle,.leaflet-control-zoom-in,.leaflet-control-zoom-out,.leaflet-popup-close-button,.map-tooltip .close,.mapbox-icon{background-image:url(images/icons-000000@2x.png);background-image:linear-gradient(transparent,transparent),url(images/icons.svg);background-repeat:no-repeat;background-size:26px 260px;opacity:.75}.leaflet-container.dark .leaflet-control-attribution:after,.leaflet-container.dark .leaflet-control-layers-toggle,.leaflet-container.dark .leaflet-control-zoom-in,.leaflet-container.dark .leaflet-control-zoom-out,.leaflet-container.dark .mapbox-icon,.mapbox-button-icon:before{background-image:url(images/icons-ffffff@2x.png);background-image:linear-gradient(transparent,transparent),url(images/icons-ffffff.svg);background-size:26px 260px;opacity:1}.leaflet-bar .leaflet-control-zoom-in{background-position:0 0}.leaflet-bar .leaflet-control-zoom-out{background-position:0 -26px}.leaflet-popup-close-button,.map-tooltip.closable .close{background-position:-3px -55px;border-radius:0 3px 0 0;height:20px;width:20px}.mapbox-icon-info{background-position:0 -78px}.leaflet-control-layers-toggle{background-position:0 -104px}.mapbox-icon.mapbox-icon-share,.mapbox-icon.mapbox-icon-share:before{background-position:0 -130px}.mapbox-icon.mapbox-icon-geocoder,.mapbox-icon.mapbox-icon-geocoder:before{background-position:0 -156px}.mapbox-icon-facebook,.mapbox-icon-facebook:before{background-position:0 -182px}.mapbox-icon-twitter,.mapbox-icon-twitter:before{background-position:0 -208px}.mapbox-icon-pinterest,.mapbox-icon-pinterest:before{background-position:0 -234px}.leaflet-popup-content-wrapper,.map-legends,.map-tooltip{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1)}.map-legends,.map-tooltip{max-width:300px}.map-legends .map-legend{padding:10px}.map-tooltip{max-height:400px;min-width:180px;opacity:1;overflow:auto;padding:10px;-webkit-transition:opacity .15s;-moz-transition:opacity .15s;-o-transition:opacity .15s;transition:opacity .15s;z-index:999999}.map-tooltip .close{display:none;overflow:hidden;text-indent:-999em}.map-tooltip.closable .close{border-radius:3px;position:absolute;right:0;top:0}.map-tooltip.closable .close:active{background-color:#f8f8f8}.leaflet-control-interaction{position:absolute;right:10px;top:10px;width:300px}.leaflet-popup-content .marker-title{font-weight:700}.leaflet-control .mapbox-button{background-color:#fff;border:1px solid rgba(0,0,0,.1);border-radius:3px;padding:5px 10px}.mapbox-modal>div{height:100%;left:0;overflow-y:auto;position:absolute;top:0;width:100%;z-index:-1}.mapbox-modal.active>div{transition:all .2s,z-index 0 0;z-index:99999}.mapbox-modal .mapbox-modal-mask{background:rgba(0,0,0,.5);opacity:0}.mapbox-modal.active .mapbox-modal-mask{opacity:1}.mapbox-modal .mapbox-modal-content{-webkit-transform:translateY(-100%);-moz-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%)}.mapbox-modal.active .mapbox-modal-content{-webkit-transform:translateY(0);-moz-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}.mapbox-modal-body{background:#fff;margin:20px 0 20px 25%;padding:20px;position:relative;width:50%;z-index:1000}.mapbox-share-buttons{margin:0 0 20px}.mapbox-share-buttons a{border-left:1px solid #fff;border-radius:0;text-align:center;width:33.3333%}.mapbox-share-buttons a:last-child{border-radius:0 3px 3px 0}.mapbox-share-buttons a:first-child{border:none;border-radius:3px 0 0 3px}.mapbox-modal input{border:1px solid rgba(0,0,0,.1);color:rgba(0,0,0,.5);height:40px;padding:10px;width:100%}.mapbox-modal label{display:block;margin-top:5px}.leaflet-control-mapbox-geocoder{position:relative}.leaflet-control-mapbox-geocoder.searching{opacity:.75}.leaflet-control-mapbox-geocoder .leaflet-control-mapbox-geocoder-wrap{background:#fff;border:1px solid rgba(0,0,0,.4);border-radius:0 3px 3px 0;height:28px;left:26px;opacity:0;overflow:hidden;position:absolute;top:-1px;-webkit-transition:opacity .1s;-moz-transition:opacity .1s;-o-transition:opacity .1s;transition:opacity .1s;width:0}.leaflet-control-mapbox-geocoder.active .leaflet-control-mapbox-geocoder-wrap{opacity:1;width:180px}.leaflet-bar .leaflet-control-mapbox-geocoder-toggle,.leaflet-bar .leaflet-control-mapbox-geocoder-toggle:hover{border-bottom:none}.leaflet-control-mapbox-geocoder-toggle{border-radius:3px}.leaflet-control-mapbox-geocoder.active,.leaflet-control-mapbox-geocoder.active .leaflet-control-mapbox-geocoder-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.leaflet-control-mapbox-geocoder .leaflet-control-mapbox-geocoder-form input{background:0 0;border:0;height:26px;outline:0;padding:0 0 0 10px;width:180px}.leaflet-control-mapbox-geocoder-results{border-radius:0 0 3px 3px;left:26px;position:absolute;top:25px;width:180px}.leaflet-control-mapbox-geocoder.active .leaflet-control-mapbox-geocoder-results{background:#fff;border:1px solid rgba(0,0,0,.4)}.leaflet-control-mapbox-geocoder-results a,.leaflet-control-mapbox-geocoder-results span{display:block;font-size:12px;line-height:26px;overflow:hidden;padding:0 10px;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%}.leaflet-container.dark .leaflet-control .leaflet-control-mapbox-geocoder-results a:hover,.leaflet-control-mapbox-geocoder-results a:hover{background:#f8f8f8;opacity:1}.leaflet-right .leaflet-control-mapbox-geocoder-results,.leaflet-right .leaflet-control-mapbox-geocoder-wrap{left:auto;right:26px}.leaflet-right .leaflet-control-mapbox-geocoder-wrap{border-radius:3px 0 0 3px}.leaflet-right .leaflet-control-mapbox-geocoder.active,.leaflet-right .leaflet-control-mapbox-geocoder.active .leaflet-control-mapbox-geocoder-toggle{border-radius:0 3px 3px 0}.leaflet-bottom .leaflet-control-mapbox-geocoder-results{border-radius:3px 3px 0 0;bottom:25px;top:auto}.mapbox-logo.mapbox-logo-true{margin:0 0 5px 5px}.mapbox-logo-true:before{content:\"\";display:inline-block;height:21px;vertical-align:middle;width:85px}.mapbox-logo.mapbox-logo-true{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84.49 21' style='enable-background:new 0 0 84.49 21' xml:space='preserve'%3E%3Cpath class='st0' style='opacity:.9;fill:%23fff;enable-background:new' d='M83.25 14.26c0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.39-1.44 2.39a.34.34 0 0 1-.3.17h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.68-2.39-3.64a.213.213 0 0 1-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.36 1.4-2.35a.34.34 0 0 1 .3-.17H83c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.63 2.43 3.67c0 .05.01.09.01.13zM66.24 9.59c-.39-1.88-1.96-3.28-3.84-3.28-1.03 0-2.03.42-2.73 1.18V3.51c0-.13-.1-.23-.23-.23h-1.4c-.13 0-.23.11-.23.23v10.72c0 .13.1.23.23.23h1.4c.13 0 .23-.11.23-.23v-.73c.71.75 1.7 1.18 2.73 1.18 1.88 0 3.45-1.41 3.84-3.29.13-.6.13-1.21 0-1.8zM62.08 13c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51S63.41 13 62.08 13zM71.67 6.32a4.24 4.24 0 0 0-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 0 0 4.17 3.3c2.35 0 4.26-1.87 4.26-4.19s-1.9-4.17-4.27-4.17zm-.02 6.69c-1.33 0-2.42-1.12-2.42-2.51s1.08-2.52 2.42-2.52c1.33 0 2.42 1.12 2.42 2.51s-1.08 2.51-2.42 2.52z'/%3E%3Cpath class='st1' style='opacity:.35;enable-background:new' d='M62.08 7.98c-1.32 0-2.39 1.11-2.41 2.48v.06c.01 1.38 1.08 2.48 2.41 2.48s2.42-1.12 2.42-2.51-1.09-2.51-2.42-2.51zm0 3.78c-.63 0-1.14-.56-1.17-1.25v-.04c.01-.69.54-1.25 1.17-1.25.63 0 1.17.57 1.17 1.27-.01.71-.52 1.27-1.17 1.27zM71.65 7.98c-1.33 0-2.42 1.12-2.42 2.51S70.32 13 71.65 13s2.42-1.12 2.42-2.51-1.08-2.51-2.42-2.51zm0 3.78c-.64 0-1.17-.57-1.17-1.27 0-.7.53-1.26 1.17-1.26s1.17.57 1.17 1.27c0 .71-.53 1.26-1.17 1.26z'/%3E%3Cpath class='st0' style='opacity:.9;fill:%23fff;enable-background:new' d='M45.74 6.53h-1.4c-.13 0-.23.11-.23.23v.73c-.71-.75-1.7-1.18-2.73-1.18-2.17 0-3.94 1.87-3.94 4.19s1.77 4.19 3.94 4.19c1.04 0 2.03-.43 2.73-1.19v.73c0 .13.1.23.23.23h1.4c.13 0 .23-.11.23-.23V6.74c0-.12-.09-.22-.22-.22 0 .01 0 .01-.01.01zm-1.62 4C44.11 11.9 43.03 13 41.71 13s-2.42-1.12-2.42-2.51 1.08-2.52 2.4-2.52c1.33 0 2.39 1.11 2.41 2.48l.02.08z'/%3E%3Cpath class='st1' style='opacity:.35;enable-background:new' d='M41.71 7.98c-1.33 0-2.42 1.12-2.42 2.51S40.37 13 41.71 13s2.39-1.11 2.41-2.48v-.06c-.02-1.37-1.09-2.48-2.41-2.48zm-1.16 2.51c0-.7.52-1.27 1.17-1.27.64 0 1.14.56 1.17 1.25v.04c-.01.68-.53 1.24-1.17 1.24-.64 0-1.17-.56-1.17-1.26z'/%3E%3Cpath class='st0' style='opacity:.9;fill:%23fff;enable-background:new' d='M52.41 6.32c-1.03 0-2.03.42-2.73 1.18v-.75c0-.13-.1-.23-.23-.23h-1.4c-.13 0-.23.11-.23.23v10.72c0 .13.1.23.23.23h1.4c.13 0 .23-.1.23-.23V13.5c.71.75 1.7 1.18 2.74 1.18 2.17 0 3.94-1.87 3.94-4.19s-1.78-4.17-3.95-4.17zm-.33 6.69c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51S53.4 13 52.08 13.01z'/%3E%3Cpath class='st1' style='opacity:.35;enable-background:new' d='M52.08 7.98c-1.32 0-2.39 1.11-2.42 2.48v.06c.03 1.38 1.1 2.48 2.42 2.48s2.41-1.12 2.41-2.51-1.09-2.51-2.41-2.51zm0 3.78c-.63 0-1.14-.56-1.17-1.25v-.04c.01-.69.54-1.25 1.17-1.25.63 0 1.17.58 1.17 1.27s-.53 1.27-1.17 1.27z'/%3E%3Cpath class='st0' style='opacity:.9;fill:%23fff;enable-background:new' d='M36.08 14.24c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23V9.68c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.66c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23V9.68c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.48c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.11-.23-.23V6.74c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.66c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.17z'/%3E%3Cpath class='st1' style='opacity:.35;enable-background:new' d='m84.34 13.59-.07-.13-1.96-2.99 1.94-2.95c.44-.67.26-1.56-.41-2.02-.02 0-.03 0-.04-.01-.23-.15-.5-.22-.78-.22h-1.61c-.56 0-1.08.29-1.37.78l-.32.55-.34-.56c-.29-.48-.81-.77-1.38-.77h-1.6c-.6 0-1.13.37-1.35.92a5.59 5.59 0 0 0-7.26.45c-.35.34-.65.72-.89 1.14-.9-1.62-2.58-2.72-4.5-2.72-.5 0-1.01.07-1.48.23V3.51c0-.82-.66-1.48-1.47-1.48h-1.4c-.81 0-1.47.66-1.47 1.47v3.75a5.12 5.12 0 0 0-4.17-2.19c-.74 0-1.46.16-2.12.47-.24-.17-.54-.26-.84-.26h-1.4c-.45 0-.87.21-1.15.56a1.498 1.498 0 0 0-1.16-.55h-1.39c-.3 0-.6.09-.84.26-.67-.3-1.39-.46-2.12-.46-1.83 0-3.43 1-4.37 2.5-.2-.46-.48-.89-.83-1.25-.8-.81-1.89-1.25-3.02-1.25h-.01c-.89.01-1.75.33-2.46.88-.74-.57-1.64-.88-2.57-.88h-.03c-.29 0-.58.03-.86.11-.28.06-.56.16-.82.28-.21-.12-.45-.18-.7-.18h-1.4c-.82 0-1.47.66-1.47 1.47v7.5c0 .82.66 1.47 1.47 1.47h1.4c.82 0 1.48-.66 1.48-1.48V9.79c.03-.36.23-.59.36-.59.18 0 .38.18.38.47v4.57c0 .82.66 1.47 1.47 1.47h1.41c.82 0 1.47-.66 1.47-1.47l-.01-4.57c.06-.32.25-.47.35-.47.18 0 .38.18.38.47v4.57c0 .82.66 1.47 1.47 1.47h1.41c.82 0 1.47-.66 1.47-1.47v-.38a5.068 5.068 0 0 0 4.06 2.06c.74 0 1.46-.16 2.12-.47.24.17.54.26.84.26h1.39c.3 0 .6-.09.84-.26v2.01c0 .82.66 1.47 1.47 1.47h1.4c.82 0 1.47-.66 1.47-1.47v-1.77c.48.15.99.23 1.49.22 1.7 0 3.22-.87 4.17-2.2v.52c0 .82.66 1.47 1.47 1.47h1.4c.3 0 .6-.09.84-.26.66.31 1.39.47 2.12.47 1.92 0 3.6-1.1 4.49-2.73 1.54 2.65 4.95 3.53 7.58 1.98.18-.11.36-.22.53-.36.22.55.76.91 1.35.9H78c.56 0 1.08-.29 1.37-.78l.37-.61.37.61c.29.48.81.78 1.38.78h1.6c.81 0 1.46-.66 1.45-1.46-.05-.22-.1-.44-.2-.65zm-48.48.88h-1.41c-.13 0-.23-.11-.23-.23V9.68c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.66c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23V9.68c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.48c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.11-.23-.23V6.74a.23.23 0 0 1 .23-.22h1.4c.13 0 .22.11.23.22v.66c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.01 5.16c.02.13-.09.23-.21.24zm10.11-.23c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.11-.23-.23v-.74c-.7.76-1.69 1.18-2.72 1.18-2.17 0-3.94-1.87-3.94-4.19s1.77-4.19 3.94-4.19c1.03 0 2.02.43 2.73 1.18v-.74c0-.13.1-.23.23-.23h1.4c.12-.01.22.08.23.21V14.25h-.01v-.01zm6.44.43c-1.03 0-2.02-.43-2.73-1.18v3.97c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V6.75c0-.13.1-.22.23-.22h1.4c.13 0 .23.11.23.23v.73a3.73 3.73 0 0 1 2.73-1.18c2.17 0 3.94 1.86 3.94 4.18s-1.77 4.18-3.94 4.18zm13.83-3.28c-.39 1.87-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.73c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.11-.23-.23V3.51c0-.13.1-.23.23-.23h1.4c.13 0 .23.11.23.23v3.97a3.72 3.72 0 0 1 2.73-1.17c1.88 0 3.45 1.4 3.84 3.28.13.6.13 1.21 0 1.8zm5.43 3.29c-2 .01-3.73-1.35-4.17-3.3-.13-.59-.13-1.19 0-1.77a4.243 4.243 0 0 1 4.17-3.3c2.36 0 4.26 1.87 4.26 4.19s-1.9 4.18-4.26 4.18zm11.37-.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.39-1.44 2.39a.34.34 0 0 1-.3.17h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.68-2.39-3.64a.213.213 0 0 1-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.36 1.41-2.36a.34.34 0 0 1 .3-.17h1.61c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.38 3.64 2.43 3.67c.02.03.03.07.03.12-.03.13-.12.22-.24.22z'/%3E%3Cpath class='st0' style='opacity:.9;fill:%23fff;enable-background:new' d='M10.5 1.24c-5.11 0-9.25 4.15-9.25 9.25s4.15 9.25 9.25 9.25 9.25-4.15 9.25-9.25c0-5.11-4.14-9.25-9.25-9.25zm4.39 11.53c-1.93 1.93-4.78 2.31-6.7 2.31-.7 0-1.41-.05-2.1-.16 0 0-1.02-5.64 2.14-8.81a4.4 4.4 0 0 1 3.13-1.28c1.27 0 2.49.51 3.39 1.42 1.84 1.84 1.89 4.75.14 6.52z'/%3E%3Cpath class='st1' style='opacity:.35;enable-background:new' d='M10.5-.01C4.7-.01 0 4.7 0 10.49s4.7 10.5 10.5 10.5S21 16.29 21 10.49C20.99 4.7 16.3-.01 10.5-.01zm0 19.75c-5.11 0-9.25-4.15-9.25-9.25s4.14-9.26 9.25-9.26 9.25 4.15 9.25 9.25c0 5.13-4.14 9.26-9.25 9.26z'/%3E%3Cpath class='st1' style='opacity:.35;enable-background:new' d='M14.74 6.25c-1.84-1.84-4.76-1.9-6.51-.15-3.16 3.17-2.14 8.81-2.14 8.81s5.64 1.02 8.81-2.14c1.74-1.77 1.69-4.68-.16-6.52zm-2.27 4.09-.91 1.87-.9-1.87-1.86-.91 1.86-.9.9-1.87.91 1.87 1.86.9-1.86.91z'/%3E%3Cpath class='st0' style='opacity:.9;fill:%23fff;enable-background:new' d='m14.33 9.43-1.86.91-.91 1.87-.9-1.87-1.86-.91 1.86-.9.9-1.87.91 1.87z'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-size:85px 21px}.leaflet-container.dark .leaflet-bar{background-color:#404040;border-color:#202020;border-color:rgba(0,0,0,.75)}.leaflet-container.dark .leaflet-bar a{border-color:rgba(0,0,0,.5);color:#404040}.leaflet-container.dark .leaflet-bar a:active,.leaflet-container.dark .leaflet-bar a:hover{background-color:#505050}.leaflet-container.dark .leaflet-control-attribution,.leaflet-container.dark .leaflet-control-attribution:after,.leaflet-container.dark .map-info-container,.leaflet-container.dark .mapbox-info-toggle{background-color:rgba(0,0,0,.5);color:#f8f8f8}.leaflet-container.dark .leaflet-control-attribution a,.leaflet-container.dark .leaflet-control-attribution a:hover,.leaflet-container.dark .map-info-container a,.leaflet-container.dark .map-info-container a:hover{color:#fff}.leaflet-container.dark .leaflet-control-attribution:hover:after{background-color:#000}.leaflet-container.dark .leaflet-control-layers-list span{color:#f8f8f8}.leaflet-container.dark .leaflet-control-layers-separator{border-top-color:hsla(0,0%,100%,.1)}.leaflet-container.dark .leaflet-bar a.leaflet-disabled,.leaflet-container.dark .leaflet-control .mapbox-button.disabled{background-color:#252525;color:#404040}.leaflet-container.dark .leaflet-control-mapbox-geocoder>div{border-color:#202020;border-color:rgba(0,0,0,.75)}.leaflet-container.dark .leaflet-control .leaflet-control-mapbox-geocoder-results a{border-color:#ddd #202020;border-color:rgba(0,0,0,.1) rgba(0,0,0,.75)}.leaflet-container.dark .leaflet-control .leaflet-control-mapbox-geocoder-results span{border-color:#202020;border-color:rgba(0,0,0,.75)}@media only screen and (max-width:800px){.mapbox-modal-body{margin-left:8.3333%;width:83.3333%}}@media only screen and (max-width:640px){.mapbox-modal-body{height:100%;margin:0;width:100%}}@media print{.mapbox-improve-map{display:none}}.leaflet-vml-shape{height:1px;width:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-container img.leaflet-tile{max-width:none!important}.leaflet-container img.leaflet-marker-icon{max-width:none}.leaflet-container img.leaflet-image-layer{max-width:15000px!important}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-oldie .mapbox-modal .mapbox-modal-content{display:none}.leaflet-oldie .mapbox-modal.active .mapbox-modal-content{display:block}.leaflet-oldie .leaflet-container.dark .map-tooltip .close,.leaflet-oldie .leaflet-control-layers-toggle,.leaflet-oldie .leaflet-control-zoom-in,.leaflet-oldie .leaflet-control-zoom-out,.leaflet-oldie .leaflet-popup-close-button,.leaflet-oldie .map-tooltip .close,.leaflet-oldie .mapbox-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAEECAYAAAA24SSRAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAXnSURBVHic7ZxfiFVFGMB/33pRUQsKto002DY3McJ6yBYkESQxpYTypaB66KEXYRWLYOlhr9RTRGWRUkk9RyEU+Y9ClECJVTKlPybWBilqkYuWrqBOD/NdPV7PmTPn3NPtat/AcO6ZP9/vfN/Mmfl2Zs6Kc452hK62UAxkIANdEURkVERGC9crOjKIiANwzkmRep1lOjWXa2ijaU7jaGWgKsL110a1EnV+LQMqbLqyobO6t4EMZCADGchABrqmQUlPNSWOVgaqIpi7ZSADGchABjKQga49kIjURaQem14apGE4KVR/D0fXds5FRaAOOL1e+h1dP7ZgE6wQxDnXvs7QWaZLE1wUVmRNdY1zrp6wRF0kfqHYnHwDGchABjJQIETNRyIyFVgBzAPm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/g5pZACpsMPEf6UexTwCN5MvI6w2zgaeBt4HQK5BsC57ubY+jPll/wHzn1Ayc07QD+u6MR4GPn3LlA/SuCOZAGMpCBDFRhiF50EpFl+PP49wOzgIPAHmCLc+6zXAERE18P+b7DRqAnJCfvfF0P/mTgLZr0l97vB27CL3HO0rwTwBzn3PHCGiU0uQisA6bhzT0T/T4ZeAr4s6FZmal8WcI0LwETgdfwHzY1XKz3teyjibLLioLWa8UDeG/oZbxD+QHwdULwg1r+K71fXxQ0ohXfAgS/Mvyh5i1MgNZp2qt6P5ImL/QezdbrSeAG4EbVJJkH8LteJ+p1FikhBPpNr3Odc6fUNHdo2oJEucbX8Y2zDQeLgr7T62IReRb4AX9mGGC6Xo8Bu0VkOvCQpu1JlRZoo6Vc/WL2ad4C4A28CWvAR5TtdU0dwqH/ewHvHi8HbgUexh+euDRCFH6PVOh0/FKzw3um4M8zpA1DxwkMQzFjXR9+d/9N1WI8BZI71kU56Aq8HXgC+Ak/5o3gX+rUNmmO5nsbqP2gfwCyvJzPNoKXiAAAAABJRU5ErkJggg==)}.leaflet-oldie .leaflet-container.dark .leaflet-control-layers-toggle,.leaflet-oldie .leaflet-container.dark .leaflet-control-zoom-in,.leaflet-oldie .leaflet-container.dark .leaflet-control-zoom-out,.leaflet-oldie .leaflet-container.dark .mapbox-icon,.leaflet-oldie .mapbox-button-icon:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAEECAYAAAA24SSRAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAXYSURBVHic7ZxfiFVFHMc/a4uKWtDDtqJGZprYgwX5ByTdkkLbSgghCiKih14EBYtg6aEr9RRREKRUUs9hGEVtChKaYMkq2VqWmnUX2tKiNDNZY/Xbw/wue7x7zsw559626zY/GM6df7/P+c3MPfO7M3NumyTGQiaMCSWCIiiC6qVqoZC0lXgy1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brRE81giIogiKohUAdzQB1APdk5C3Ends6CXwLbAReBm7J1OZxINdKGpb0VEpeb4pT+aWkx8os0SxJKHlf0iOSOiXNkHQpBbRT0oQyoA5JH6YoPJ6SJknPeHR5+6gTWJ2SPjej/BceXV7QV8AHvsoJucTlvt5o8ZkraZa1fUheD+gJfo9+Bq4JlPkNt4Xgl9CdSJos6UlJF1IsOSvp/hw6vL8mFgCLgCXA44w+730IeIiM89314gP9ACzHHXD9xdIO49476gO2MfJjLCjRgYygCIqgCGqiFFl0WoM7j78ImA8cBQ7gzuaHp/wck1anpO2BqXy7lSu9I9YJ9APXWfycxfuBa4HbzDpwc9ZC4FQZi2qWXJK0WdI0ue3SuRp5P/lRSb8nLCvsQK5JNM2zkiZKeknSkKVdlPSmlX0gUXZNUdAWq3hY7tzj83K++FuS9icU32Hl91p8S1FQn1V8VVKb3Mrw25a3MgHabGkvWrwvTZ/ve7TArqeBq3H+3f66PIBf7VrzkuaTIj7Qj3ZdDJwF9jLy5wJdiXK1t+NrZxuOFgV9bddVwBPAN8ARS5tp15PAZxa/29IOpGrz9FG3Rsscy+uS9IqkBXLD/Z1GRl1yQEjuHANy7vFaSdMlrZa0K1Gm1PcISTMlDZiSbZa2I8VSSTolz2Mo9PQeBO7CvTE1iDtRc2dKuffwPX4CfVQfrpf0sKRjks5Zs27J6pP6EH3vCBp70D8db2VXFPfIagAAAABJRU5ErkJggg==)}.leaflet-oldie .mapbox-logo-true{background-image:none}");
1
+ "use strict";require('./../ext-esm/style-inject/dist/style-inject.es.js')(".mapboxgl-map{-webkit-tap-highlight-color:rgb(0 0 0/0);font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative}.mapboxgl-canvas{left:0;position:absolute;top:0}.mapboxgl-map:-webkit-full-screen{height:100%;width:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:none}.mapboxgl-ctrl-bottom,.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-left,.mapboxgl-ctrl-right,.mapboxgl-ctrl-top,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.mapboxgl-ctrl-top-left{left:0;top:0}.mapboxgl-ctrl-top{left:50%;top:0;transform:translateX(-50%)}.mapboxgl-ctrl-top-right{right:0;top:0}.mapboxgl-ctrl-right{right:0;top:50%;transform:translateY(-50%)}.mapboxgl-ctrl-bottom-right{bottom:0;right:0}.mapboxgl-ctrl-bottom{bottom:0;left:50%;transform:translateX(-50%)}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-left{left:0;top:50%;transform:translateY(-50%)}.mapboxgl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{float:left;margin:10px 0 0 10px}.mapboxgl-ctrl-top .mapboxgl-ctrl{float:left;margin:10px 0}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{float:right;margin:10px 10px 0 0}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl,.mapboxgl-ctrl-right .mapboxgl-ctrl{float:right;margin:0 10px 10px 0}.mapboxgl-ctrl-bottom .mapboxgl-ctrl{float:left;margin:10px 0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl,.mapboxgl-ctrl-left .mapboxgl-ctrl{float:left;margin:0 0 10px 10px}.mapboxgl-ctrl-group{background:#fff;border-radius:4px}.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{background-color:initial;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;overflow:hidden;padding:0;width:29px}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:initial}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl-group button:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:only-child{border-radius:inherit}.mapboxgl-ctrl button:not(:disabled):hover{background-color:#0000000d}.mapboxgl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E\")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E\")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E\")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E\")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8h-8z'/%3E%3Cpath d='m10.5 16 4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E\")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8h-8z'/%3E%3Cpath d='m10.5 16 4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8h-8z'/%3E%3Cpath d='m10.5 16 4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E\")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-buildings-toggle .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M3.333 11.667a1.667 1.667 0 1 0 3.334 0v-5h5a1.667 1.667 0 1 0 0-3.334H3.333v8.334ZM26.667 11.667a1.667 1.667 0 1 1-3.334 0v-5h-5a1.667 1.667 0 1 1 0-3.334h8.334v8.334ZM13.334 25c0 .92-.747 1.667-1.667 1.667H3.333v-8.334a1.667 1.667 0 1 1 3.334 0v5h5c.92 0 1.667.746 1.667 1.667ZM18.334 26.667a1.667 1.667 0 1 1 0-3.334h5v-5a1.667 1.667 0 1 1 3.333 0v8.334h-8.334Z' fill='currentColor'/%3E%3C/svg%3E\");background-size:26px 26px}.mapboxgl-ctrl button.mapboxgl-ctrl-buildings-toggle.mapboxgl-ctrl-level-button-selected .mapboxgl-ctrl-icon{filter:invert(1) brightness(1)}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='m14 5 1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='m14 5 1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='m14 5 1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E\")}}@keyframes mapboxgl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 0 1 3.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 0 0-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 0 0 4.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 0 1-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 0 1 .3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 0 1-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg opacity='.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg opacity='.9' fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E\");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:initial;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 0 1 3.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 0 0-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 0 0 4.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 0 1-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 0 1 .3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 0 1-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 0 1 3.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 0 0-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 0 0 4.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 0 1-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 0 1 .3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 0 1-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/svg%3E\")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{background-color:#fff;border-radius:12px;box-sizing:initial;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{background-color:#ffffff80;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:#0000000d}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{right:0;top:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{left:0;top:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}.mapboxgl-ctrl-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\")}}.mapboxgl-ctrl-attrib a{color:#000000bf;text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:#ffffffbf;border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px;white-space:nowrap}.mapboxgl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{flex-direction:column-reverse}.mapboxgl-popup-anchor-left{flex-direction:row}.mapboxgl-popup-anchor-right{flex-direction:row-reverse}.mapboxgl-popup-tip{border:10px solid #0000;height:0;width:0;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.mapboxgl-popup-close-button{background-color:initial;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.mapboxgl-popup-close-button:hover{background-color:#0000000d}.mapboxgl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:10px 10px 15px;pointer-events:auto;position:relative}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{left:0;opacity:1;position:absolute;top:0;transition:opacity .2s;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.mapboxgl-user-location-dot:before{animation:mapboxgl-user-location-dot-pulse 2s infinite;content:\"\";position:absolute}.mapboxgl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px #00000059;box-sizing:border-box;content:\"\";height:19px;left:-2px;position:absolute;top:-2px;width:19px}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading{height:0;width:0}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after,.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-bottom:7.5px solid #4aa1eb;content:\"\";position:absolute}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-left:7.5px solid #0000;transform:translateY(-28px) skewY(-20deg)}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after{border-right:7.5px solid #0000;transform:translate(7.5px,-28px) skewY(20deg)}@keyframes mapboxgl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}@media print{.mapbox-improve-map{display:none}}.mapboxgl-scroll-zoom-blocker,.mapboxgl-touch-pan-blocker{align-items:center;background:#000000b3;color:#fff;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;text-align:center;top:0;transition:opacity .75s ease-in-out;transition-delay:1s;width:100%}.mapboxgl-scroll-zoom-blocker-show,.mapboxgl-touch-pan-blocker-show{opacity:1;transition:opacity .1s ease-in-out}.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page,.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-ctrl-separator{background-color:#e0e0e0;height:1px}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button{color:#333;font-size:18px;font-weight:700;height:50px;width:50px}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button:hover{background-color:#f5f5f5}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button-selected{background-color:#4a5568;color:#fff}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button-selected:hover{background-color:#2d3748}.mapboxgl-ctrl-logo{display:none!important}");
2
2
  //# sourceMappingURL=mapbox.global.css.js.map
@@ -1,2 +1,2 @@
1
- import a from'./../../../../ext-esm/style-inject/dist/style-inject.es.js';var e={map:"Map_map__Ya53V",mapMain:"Map_mapMain__K9p4a",mapFooter:"Map_mapFooter__ueyMi",mapFooterItem:"Map_mapFooterItem__y9wgh",mapFooterItemSquare:"Map_mapFooterItemSquare__hqWmQ",mapFooterItemLabel:"Map_mapFooterItemLabel__MLQYo"};a(".Map_map__Ya53V{width:100%}.Map_mapMain__K9p4a{background-color:#414141;border-radius:4px;flex:100;height:176px;width:100%}.Map_mapFooter__ueyMi{display:flex;flex:1;flex-wrap:wrap;padding-bottom:5px;padding-top:5px}.Map_mapFooterItem__y9wgh{align-items:center;display:flex;margin-right:10px;white-space:nowrap}.Map_mapFooterItemSquare__hqWmQ{border-radius:50%;height:8px;margin-right:5px;width:8px}.Map_mapFooterItemLabel__MLQYo{color:#ccc;font-size:11px}.Map_map__Ya53V .leaflet-popup-content-wrapper{background-color:#414141;border-radius:4px;box-shadow:0 5px 5px rgba(0,0,0,.2),0 3px 14px rgba(0,0,0,.12),0 8px 10px rgba(0,0,0,.14)}.Map_map__Ya53V .leaflet-popup-content{border-radius:4px;padding:4px}.Map_map__Ya53V .leaflet-popup-close-button,.Map_map__Ya53V .leaflet-popup-tip{display:none}.Map_map__Ya53V .leaflet-control-zoom{background:none;border:none;box-shadow:none}.Map_map__Ya53V .leaflet-control-zoom a{background-image:none;background:#272727;color:#bdbdbd}.Map_map__Ya53V .leaflet-control-zoom a,.Map_map__Ya53V .leaflet-control-zoom a:hover{align-items:center;border-radius:4px;content:unset;display:flex;font-size:22px;height:32px;justify-content:center;margin-top:4px;opacity:1;text-align:center;text-indent:unset;width:32px}.Map_map__Ya53V .leaflet-control-zoom a:hover{background:#303030;background-image:none;color:#fff}.Map_map__Ya53V .leaflet-touch .leaflet-bar,.Map_map__Ya53V .leaflet-touch .leaflet-control-layers{background-clip:padding-box;border:0 solid transparent}");export{e as default};
1
+ import a from'./../../../../ext-esm/style-inject/dist/style-inject.es.js';var p={map:"Map_map__Ya53V",mapMain:"Map_mapMain__K9p4a",mapFooter:"Map_mapFooter__ueyMi",mapFooterItem:"Map_mapFooterItem__y9wgh",mapFooterItemSquare:"Map_mapFooterItemSquare__hqWmQ",mapFooterItemLabel:"Map_mapFooterItemLabel__MLQYo"};a(".Map_map__Ya53V{width:100%}.Map_mapMain__K9p4a{background-color:#414141;border-radius:4px;flex:100;height:176px;width:100%}.Map_mapFooter__ueyMi{display:flex;flex:1;flex-wrap:wrap;padding-bottom:5px;padding-top:5px}.Map_mapFooterItem__y9wgh{align-items:center;display:flex;margin-right:10px;white-space:nowrap}.Map_mapFooterItemSquare__hqWmQ{border-radius:50%;height:8px;margin-right:5px;width:8px}.Map_mapFooterItemLabel__MLQYo{color:#ccc;font-size:11px}.Map_map__Ya53V .mapboxgl-popup-content{background-color:#414141;border-radius:4px;box-shadow:0 5px 5px rgba(0,0,0,.2),0 3px 14px rgba(0,0,0,.12),0 8px 10px rgba(0,0,0,.14);padding:4px}.Map_map__Ya53V .mapboxgl-popup-tip{display:none}.Map_map__Ya53V .mapboxgl-ctrl-group{background:none;border:none;box-shadow:none}.Map_map__Ya53V .mapboxgl-ctrl-group button{background:#272727;border:none;border-radius:4px;height:32px;margin-top:4px;width:32px}.Map_map__Ya53V .mapboxgl-ctrl-group button .mapboxgl-ctrl-icon{filter:invert(.8)}.Map_map__Ya53V .mapboxgl-ctrl-group button:hover{background:#303030}.Map_map__Ya53V .mapboxgl-ctrl-group button:hover .mapboxgl-ctrl-icon{filter:invert(1)}");export{p as default};
2
2
  //# sourceMappingURL=Map.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["../../../../../src/components/BICOffsetPickerDialog/components/Map/Map.js"],"names":[],"mappings":";;AAkCA;;;;;;;;gBA0KC;;;;;;;;;;;;;;;;;;;;;;;;;sBA1MqB,YAAY;AAclC,gDAAyC,CAAC,CAAC;AAC3C,wCAAiC,CAAC,CAAC"}
1
+ {"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["../../../../../src/components/BICOffsetPickerDialog/components/Map/Map.js"],"names":[],"mappings":";;AAoDA;;;;;;;;gBA6NC;;;;;;;;;;;;;;;;;;;;;;;;;sBA/QqB,YAAY;AAalC,gDAAyC,CAAC,CAAC;AAC3C,wCAAiC,CAAC,CAAC"}
@@ -1,2 +1,2 @@
1
- import{memo as r,useRef as e,useMemo as t,useEffect as n,createElement as o}from"react";import l from"react-dom";import u from"prop-types";import c from"mapbox.js";import{get as i}from"lodash";import{usePrevious as a}from"../../effects/index.js";import s from"./Map.css.js";import{mapbox as f}from"../../../../utils/index.js";import{jsx as m}from"react/jsx-runtime";var d=f.isValidCoordinates,p=[29.749907,-95.358421];function v(r){var u=r.subjectWell,f=r.wells,v=r.offsetWells,h=r.radius,b=r.subjectWellMarkerSize,k=r.wellMarkerSize,y=r.coordsDataPath,g=e(null),j=e(null),x=e(null),C=e(null),M=a(f),W=t((function(){return u&&i(u,y)}),[u,y]);n((function(){g.current=c.mapbox.map(g.current,null,{attributionControl:!1,scrollWheelZoom:!1,zoomControl:!1}).setView(p,1),c.control.zoom({position:"bottomright"}).addTo(g.current),c.mapbox.styleLayer("mapbox://styles/mapbox/dark-v9").addTo(g.current);var r=g.current;return function(){r.off("layerremove"),r.remove(),g.current=null,j.current=null,x.current=null}}),[]),n((function(){g.current&&(j.current&&g.current.removeLayer(j.current),W?(j.current=c.circle(W,1609.34*h,{stroke:!1,fill:!0,fillOpacity:.2,fillColor:"#03BCD4",className:"circle_500"}),j.current.addTo(g.current)):j.current=null)}),[h,W]);return n((function(){if(g.current){g.current.closePopup(),x.current&&x.current.removeFrom(g.current);var r=v.map((function(r){return r.id})),e=[];f.forEach((function(t){var n=i(t,y);if(n&&d(n)){var a=u&&u.id===t.id,s=r.includes(t.id),f=a?b:k,p=a||s?1:.3,v=c.circleMarker(n,{radius:f,stroke:!1,fill:!0,fillOpacity:p,fillColor:"#FFC107",className:"circle_500"});v.addEventListener("mouseover",(function(){var r=document.createElement("div"),u=o((function(r){var e=r.well;return m("div",{style:{color:"#fff",background:"##414141"},children:m("span",{style:{fontSize:"11px",lineHeight:"16px"},children:i(e,"name")})})}),{well:t});l.render(u,r),c.popup().setLatLng(n).setContent(r).openOn(g.current),function(r,e,t){C.current=c.circleMarker(e,{radius:3*t,stroke:!1,fill:!0,fillOpacity:.2,fillColor:"#FFC107",className:"circle_highlight"}),C.current.addEventListener("mouseout",(function(){x.current.removeFrom(g.current),x.current=c.featureGroup(r),x.current.addTo(g.current),g.current.closePopup()}));var n=r.concat(C.current);x.current=c.featureGroup(n),x.current.addTo(g.current)}(e,n,f)})),e.push(v)}})),e.length&&(x.current=c.featureGroup(e),x.current.addTo(g.current)),setTimeout((function(){j.current&&j.current.bringToBack(),g.current&&x.current&&f!==M&&g.current.fitBounds(x.current.getBounds())}),500)}}),[u,f,v]),m("div",{className:s.map,children:m("div",{className:s.mapMain,ref:g})})}v.propTypes={subjectWell:u.shape({id:u.number,formation:u.string}),wells:u.arrayOf(u.shape({})).isRequired,offsetWells:u.arrayOf(u.shape({})),radius:u.number.isRequired,subjectWellMarkerSize:u.number,wellMarkerSize:u.number,coordsDataPath:u.string},v.defaultProps={subjectWell:null,subjectWellMarkerSize:8,wellMarkerSize:5,coordsDataPath:"settings.top_hole.coordinates",offsetWells:null};var h=r(v);export{h as default};
1
+ import e from"@babel/runtime/helpers/slicedToArray";import{memo as r,useRef as t,useState as o,useMemo as n,useEffect as a,createElement as l}from"react";import i from"react-dom";import u from"prop-types";import{get as c}from"lodash";import s from"./Map.css.js";import{mapbox as d}from"../../../../utils/index.js";import"../../../../config/mapboxGl/index.js";import"mapbox-gl/dist/mapbox-gl.css";import{jsx as p}from"react/jsx-runtime";import f from"mapbox-gl";var m=d.isValidCoordinates,y=[29.749907,-95.358421],v="wells-highlight",g={type:"FeatureCollection",features:[]},h=function(r){var t=e(r,2),o=t[0];return[t[1],o]};function w(r){var u=r.subjectWell,d=r.wells,w=r.offsetWells,b=r.radius,S=r.subjectWellMarkerSize,M=r.wellMarkerSize,x=r.coordsDataPath,j=t(null),C=t(null),D=t(null),F=t(null),P=t(),W=o(!1),k=e(W,2),z=k[0],L=k[1],B=n((function(){return u&&c(u,x)}),[u,x]);a((function(){C.current=new f.Map({container:j.current,style:"mapbox://styles/mapbox/dark-v9",center:h(y),zoom:1,attributionControl:!1,scrollZoom:!1}),C.current.addControl(new f.NavigationControl({showCompass:!1}),"bottom-right"),C.current.on("load",(function(){C.current.addSource("radius-circle",{type:"geojson",data:g}),C.current.addLayer({id:"radius-circle",type:"fill",source:"radius-circle",paint:{"fill-color":"#03BCD4","fill-opacity":.2}}),C.current.addSource("wells",{type:"geojson",data:g}),C.current.addLayer({id:"wells",type:"circle",source:"wells",paint:{"circle-radius":["get","radius"],"circle-color":"#FFC107","circle-opacity":["get","opacity"]}}),C.current.addSource(v,{type:"geojson",data:g}),C.current.addLayer({id:v,type:"circle",source:v,paint:{"circle-radius":["get","radius"],"circle-color":"#FFC107","circle-opacity":.2}}),L(!0)}));var e=C.current;return function(){e.remove(),C.current=null,D.current=null}}),[]),a((function(){if(C.current&&z)if(B){var r=function(r,t){for(var o=e(r,2),n=o[0],a=o[1],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:64,i=[],u=t/(111320*Math.cos(n*Math.PI/180)),c=t/110574,s=0;s<=l;s+=1){var d=s/l*(2*Math.PI);i.push([a+u*Math.cos(d),n+c*Math.sin(d)])}return i}(B,1609.34*b);C.current.getSource("radius-circle").setData({type:"Feature",geometry:{type:"Polygon",coordinates:[r]}})}else C.current.getSource("radius-circle").setData(g)}),[b,B,z]);return a((function(){var e;if(C.current&&z){var r=P.current;P.current=d,null===(e=F.current)||void 0===e||e.remove(),C.current.getSource(v).setData(g);var t=w.map((function(e){return e.id})),o=[],n={},a=new f.LngLatBounds;d.forEach((function(e){var r=c(e,x);if(r&&m(r)){var l=u&&u.id===e.id,i=t.includes(e.id),s=l?S:M,d=l||i?1:.3;n[e.id]=e,a.extend(h(r)),o.push({type:"Feature",geometry:{type:"Point",coordinates:h(r)},properties:{wellId:e.id,radius:s,opacity:d}})}})),C.current.getSource("wells").setData({type:"FeatureCollection",features:o}),D.current=o.length?a:null;var s=C.current,y=null,b=function(e){s.getCanvas().style.cursor="pointer";var r=n[e.features[0].properties.wellId];if(r&&r.id!==y){y=r.id;var t=c(r,x),o=document.createElement("div"),a=l((function(e){var r=e.well;return p("div",{style:{color:"#fff",background:"##414141"},children:p("span",{style:{fontSize:"11px",lineHeight:"16px"},children:c(r,"name")})})}),{well:r});i.render(a,o),F.current||(F.current=new f.Popup({closeButton:!1,maxWidth:"none"})),F.current.setLngLat(h(t)).setDOMContent(o).addTo(s),function(e,r){C.current.getSource(v).setData({type:"Feature",geometry:{type:"Point",coordinates:h(e)},properties:{radius:3*r}})}(t,e.features[0].properties.radius)}},j=function(){var e;y=null,s.getCanvas().style.cursor="",s.getSource(v).setData(g),null===(e=F.current)||void 0===e||e.remove()},W=function(e){null!=e&&e.point&&s.queryRenderedFeatures(e.point,{layers:[v]}).length||j()};return s.on("mousemove","wells",b),s.on("mouseleave","wells",W),s.on("mouseleave",v,j),setTimeout((function(){C.current&&D.current&&d!==r&&C.current.fitBounds(D.current)}),500),function(){s.off("mousemove","wells",b),s.off("mouseleave","wells",W),s.off("mouseleave",v,j)}}}),[u,d,w,z]),p("div",{className:s.map,children:p("div",{className:s.mapMain,ref:j})})}w.propTypes={subjectWell:u.shape({id:u.number,formation:u.string}),wells:u.arrayOf(u.shape({})).isRequired,offsetWells:u.arrayOf(u.shape({})),radius:u.number.isRequired,subjectWellMarkerSize:u.number,wellMarkerSize:u.number,coordsDataPath:u.string},w.defaultProps={subjectWell:null,subjectWellMarkerSize:8,wellMarkerSize:5,coordsDataPath:"settings.top_hole.coordinates",offsetWells:null};var b=r(w);export{b as default};
2
2
  //# sourceMappingURL=Map.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Map.js","sources":["../../../../../src/components/BICOffsetPickerDialog/components/Map/Map.js"],"sourcesContent":["import { createElement, memo, useRef, useEffect, useMemo } from 'react';\nimport ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport L from 'mapbox.js';\nimport { get } from 'lodash';\n\nimport { usePrevious } from '../../effects';\n\nimport styles from './Map.css';\n\nimport { mapbox } from '~/utils';\n\nconst { isValidCoordinates } = mapbox;\n\nconst RADIUS_CIRCLE_COLOR = '#03BCD4';\nconst METERS_IN_MILE = 1609.34;\nconst DEFAULT_SUBJECT_WELL_MARKER_SIZE = 8;\nconst DEFAULT_WELL_MARKER_SIZE = 5;\nconst OFFSET_WELL_COLOR = '#FFC107';\n\nconst DEFAULT_COORDS = [29.749907, -95.358421]; // TX coordinates\n\nconst toolTip =\n () =>\n // eslint-disable-next-line react/prop-types\n ({ well }) => {\n return (\n <div style={{ color: '#fff', background: '##414141' }}>\n <span style={{ fontSize: '11px', lineHeight: '16px' }}>{get(well, 'name')}</span>\n </div>\n );\n };\n\n// eslint-disable-next-line no-unused-vars\nfunction WellsMap({\n subjectWell,\n wells,\n offsetWells,\n radius,\n subjectWellMarkerSize,\n wellMarkerSize,\n coordsDataPath,\n}) {\n const mapContainerRef = useRef(null);\n const radiusCircleRef = useRef(null);\n const markersGroupRef = useRef(null);\n const highlightMarkerRef = useRef(null);\n\n const prevWells = usePrevious(wells);\n\n const subjectWellCoords = useMemo(() => {\n return subjectWell && get(subjectWell, coordsDataPath);\n }, [subjectWell, coordsDataPath]);\n\n // NOTE: Initialize map\n useEffect(() => {\n mapContainerRef.current = L.mapbox\n .map(mapContainerRef.current, null, {\n attributionControl: false,\n scrollWheelZoom: false,\n zoomControl: false,\n })\n .setView(DEFAULT_COORDS, 1);\n\n L.control\n .zoom({\n position: 'bottomright',\n })\n .addTo(mapContainerRef.current);\n L.mapbox.styleLayer('mapbox://styles/mapbox/dark-v9').addTo(mapContainerRef.current);\n\n // NOTE: React nulls the DOM ref before deferred effect cleanup runs, so keep the map in a local\n const map = mapContainerRef.current;\n return () => {\n // NOTE: mapbox.js defers _updateMapFeedbackLink on layerremove; after remove() it crashes on the deleted control container\n map.off('layerremove');\n map.remove();\n mapContainerRef.current = null;\n radiusCircleRef.current = null;\n markersGroupRef.current = null;\n };\n }, []);\n\n // NOTE: Radius circle\n useEffect(() => {\n if (!mapContainerRef.current) {\n return;\n }\n\n // NOTE: Clean up\n if (radiusCircleRef.current) {\n mapContainerRef.current.removeLayer(radiusCircleRef.current);\n }\n\n if (!subjectWellCoords) {\n radiusCircleRef.current = null;\n return;\n }\n\n radiusCircleRef.current = L.circle(subjectWellCoords, radius * METERS_IN_MILE, {\n stroke: false,\n fill: true,\n fillOpacity: 0.2,\n fillColor: RADIUS_CIRCLE_COLOR,\n className: 'circle_500',\n });\n\n radiusCircleRef.current.addTo(mapContainerRef.current);\n }, [radius, subjectWellCoords]);\n\n const handleMouseOver = (markers, coords, r) => {\n highlightMarkerRef.current = L.circleMarker(coords, {\n radius: r * 3,\n stroke: false,\n fill: true,\n fillOpacity: 0.2,\n fillColor: OFFSET_WELL_COLOR,\n className: 'circle_highlight',\n });\n\n highlightMarkerRef.current.addEventListener('mouseout', () => {\n markersGroupRef.current.removeFrom(mapContainerRef.current);\n markersGroupRef.current = L.featureGroup(markers);\n markersGroupRef.current.addTo(mapContainerRef.current);\n\n mapContainerRef.current.closePopup();\n });\n\n const newMarkers = markers.concat(highlightMarkerRef.current);\n markersGroupRef.current = L.featureGroup(newMarkers);\n markersGroupRef.current.addTo(mapContainerRef.current);\n };\n\n // NOTE: Well markers\n useEffect(() => {\n if (!mapContainerRef.current) {\n return;\n }\n\n mapContainerRef.current.closePopup();\n\n // NOTE: Clean up\n if (markersGroupRef.current) {\n markersGroupRef.current.removeFrom(mapContainerRef.current);\n }\n\n const offsetWellIds = offsetWells.map(well => well.id);\n\n const markers = [];\n wells.forEach(well => {\n const coords = get(well, coordsDataPath);\n\n if (coords && isValidCoordinates(coords)) {\n const isWellSubject = subjectWell && subjectWell.id === well.id;\n const isWellOffset = offsetWellIds.includes(well.id);\n const r = isWellSubject ? subjectWellMarkerSize : wellMarkerSize;\n const color = OFFSET_WELL_COLOR;\n const opacity = isWellSubject || isWellOffset ? 1 : 0.3;\n\n const newMarker = L.circleMarker(coords, {\n radius: r,\n stroke: false,\n fill: true,\n fillOpacity: opacity,\n fillColor: color,\n className: 'circle_500',\n });\n\n newMarker.addEventListener('mouseover', () => {\n // Tooltip\n const tooltipContainer = document.createElement('div');\n const tootipContent = createElement(toolTip(), { well });\n ReactDOM.render(tootipContent, tooltipContainer);\n L.popup().setLatLng(coords).setContent(tooltipContainer).openOn(mapContainerRef.current);\n\n // Highlight\n handleMouseOver(markers, coords, r);\n });\n\n markers.push(newMarker);\n }\n });\n\n if (markers.length) {\n markersGroupRef.current = L.featureGroup(markers);\n markersGroupRef.current.addTo(mapContainerRef.current);\n }\n\n setTimeout(() => {\n if (radiusCircleRef.current) {\n radiusCircleRef.current.bringToBack();\n }\n\n if (mapContainerRef.current && markersGroupRef.current && wells !== prevWells) {\n mapContainerRef.current.fitBounds(markersGroupRef.current.getBounds());\n }\n }, 500);\n }, [subjectWell, wells, offsetWells]);\n\n return (\n <div className={styles.map}>\n <div className={styles.mapMain} ref={mapContainerRef} />\n </div>\n );\n}\n\nWellsMap.propTypes = {\n subjectWell: PropTypes.shape({\n id: PropTypes.number,\n formation: PropTypes.string,\n }),\n wells: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n offsetWells: PropTypes.arrayOf(PropTypes.shape({})),\n radius: PropTypes.number.isRequired,\n subjectWellMarkerSize: PropTypes.number,\n wellMarkerSize: PropTypes.number,\n coordsDataPath: PropTypes.string,\n};\n\nWellsMap.defaultProps = {\n subjectWell: null,\n subjectWellMarkerSize: DEFAULT_SUBJECT_WELL_MARKER_SIZE,\n wellMarkerSize: DEFAULT_WELL_MARKER_SIZE,\n coordsDataPath: 'settings.top_hole.coordinates',\n offsetWells: null,\n};\n\nexport default memo(WellsMap);\n"],"names":["isValidCoordinates","mapbox","DEFAULT_COORDS","WellsMap","_ref2","subjectWell","wells","offsetWells","radius","subjectWellMarkerSize","wellMarkerSize","coordsDataPath","mapContainerRef","useRef","radiusCircleRef","markersGroupRef","highlightMarkerRef","prevWells","usePrevious","subjectWellCoords","useMemo","get","useEffect","current","L","map","attributionControl","scrollWheelZoom","zoomControl","setView","control","zoom","position","addTo","styleLayer","off","remove","removeLayer","circle","stroke","fill","fillOpacity","fillColor","className","closePopup","removeFrom","offsetWellIds","well","id","markers","forEach","coords","isWellSubject","isWellOffset","includes","r","opacity","newMarker","circleMarker","addEventListener","tooltipContainer","document","createElement","tootipContent","_ref","_jsx","style","color","background","children","fontSize","lineHeight","ReactDOM","render","popup","setLatLng","setContent","openOn","featureGroup","newMarkers","concat","handleMouseOver","push","length","setTimeout","bringToBack","fitBounds","getBounds","styles","mapMain","ref","propTypes","PropTypes","shape","number","formation","string","arrayOf","isRequired","defaultProps","memo"],"mappings":"8WAYA,IAAQA,EAAuBC,EAAvBD,mBAQFE,EAAiB,CAAC,WAAY,WAcpC,SAASC,EAQNC,GAAA,IAPDC,IAAAA,YACAC,IAAAA,MACAC,IAAAA,YACAC,IAAAA,OACAC,IAAAA,sBACAC,IAAAA,eACAC,IAAAA,eAEMC,EAAkBC,EAAO,MACzBC,E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EAAQI,EACnC,IAEAN,EAAQiC,KAAKzB,EACf,CACF,IAEIR,EAAQkC,SACVpE,EAAgBQ,QAAUC,EAAEsD,aAAa7B,GACzClC,EAAgBQ,QAAQU,MAAMrB,EAAgBW,UAGhD6D,YAAW,WACLtE,EAAgBS,SAClBT,EAAgBS,QAAQ8D,cAGtBzE,EAAgBW,SAAWR,EAAgBQ,SAAWjB,IAAUW,GAClEL,EAAgBW,QAAQ+D,UAAUvE,EAAgBQ,QAAQgE,YAE7D,GAAE,IA3DH,CA4DD,GAAE,CAAClF,EAAaC,EAAOC,IAGtB0D,EAAA,MAAA,CAAKtB,UAAW6C,EAAO/D,IAAI4C,SACzBJ,EAAA,MAAA,CAAKtB,UAAW6C,EAAOC,QAASC,IAAK9E,KAG3C,CAEAT,EAASwF,UAAY,CACnBtF,YAAauF,EAAUC,MAAM,CAC3B7C,GAAI4C,EAAUE,OACdC,UAAWH,EAAUI,SAEvB1F,MAAOsF,EAAUK,QAAQL,EAAUC,MAAM,CAAA,IAAKK,WAC9C3F,YAAaqF,EAAUK,QAAQL,EAAUC,MAAM,CAAE,IACjDrF,OAAQoF,EAAUE,OAAOI,WACzBzF,sBAAuBmF,EAAUE,OACjCpF,eAAgBkF,EAAUE,OAC1BnF,eAAgBiF,EAAUI,QAG5B7F,EAASgG,aAAe,CACtB9F,YAAa,KACbI,sBA7MuC,EA8MvCC,eA7M+B,EA8M/BC,eAAgB,gCAChBJ,YAAa,MAGf,IAAe6F,EAAAA,EAAKjG"}
1
+ {"version":3,"file":"Map.js","sources":["../../../../../src/components/BICOffsetPickerDialog/components/Map/Map.js"],"sourcesContent":["import { createElement, memo, useRef, useEffect, useMemo, useState } from 'react';\nimport ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport { get } from 'lodash';\n\nimport styles from './Map.css';\n\nimport { mapbox } from '~/utils';\nimport mapboxgl from '~/config/mapboxGl';\nimport 'mapbox-gl/dist/mapbox-gl.css';\n\nconst { isValidCoordinates } = mapbox;\n\nconst RADIUS_CIRCLE_COLOR = '#03BCD4';\nconst METERS_IN_MILE = 1609.34;\nconst DEFAULT_SUBJECT_WELL_MARKER_SIZE = 8;\nconst DEFAULT_WELL_MARKER_SIZE = 5;\nconst OFFSET_WELL_COLOR = '#FFC107';\n\nconst DEFAULT_COORDS = [29.749907, -95.358421]; // TX coordinates\n\nconst RADIUS_CIRCLE_ID = 'radius-circle';\nconst WELLS_ID = 'wells';\nconst HIGHLIGHT_ID = 'wells-highlight';\nconst EMPTY_FEATURE_COLLECTION = { type: 'FeatureCollection', features: [] };\n\nconst toLngLat = ([lat, lng]) => [lng, lat];\n\n// NOTE: mapbox-gl has no geographic-radius circle primitive, so approximate it with a polygon\nconst makeCirclePolygon = ([lat, lng], radiusMeters, points = 64) => {\n const ring = [];\n const distanceX = radiusMeters / (111320 * Math.cos((lat * Math.PI) / 180));\n const distanceY = radiusMeters / 110574;\n for (let i = 0; i <= points; i += 1) {\n const theta = (i / points) * (2 * Math.PI);\n ring.push([lng + distanceX * Math.cos(theta), lat + distanceY * Math.sin(theta)]);\n }\n return ring;\n};\n\nconst toolTip =\n () =>\n // eslint-disable-next-line react/prop-types\n ({ well }) => {\n return (\n <div style={{ color: '#fff', background: '##414141' }}>\n <span style={{ fontSize: '11px', lineHeight: '16px' }}>{get(well, 'name')}</span>\n </div>\n );\n };\n\n// eslint-disable-next-line no-unused-vars\nfunction WellsMap({\n subjectWell,\n wells,\n offsetWells,\n radius,\n subjectWellMarkerSize,\n wellMarkerSize,\n coordsDataPath,\n}) {\n const mapContainerRef = useRef(null);\n const mapRef = useRef(null);\n const markersBoundsRef = useRef(null);\n const popupRef = useRef(null);\n const prevWellsRef = useRef();\n const [isMapReady, setIsMapReady] = useState(false);\n\n const subjectWellCoords = useMemo(() => {\n return subjectWell && get(subjectWell, coordsDataPath);\n }, [subjectWell, coordsDataPath]);\n\n // NOTE: Initialize map\n useEffect(() => {\n mapRef.current = new mapboxgl.Map({\n container: mapContainerRef.current,\n style: 'mapbox://styles/mapbox/dark-v9',\n center: toLngLat(DEFAULT_COORDS),\n zoom: 1,\n attributionControl: false,\n scrollZoom: false,\n });\n\n mapRef.current.addControl(\n new mapboxgl.NavigationControl({ showCompass: false }),\n 'bottom-right'\n );\n\n // NOTE: Sources/layers can only be added once the style has loaded.\n // The radius circle layer is added first so well markers render above it (was bringToBack),\n // and the hover highlight layer last so it renders on top of the markers\n mapRef.current.on('load', () => {\n mapRef.current.addSource(RADIUS_CIRCLE_ID, {\n type: 'geojson',\n data: EMPTY_FEATURE_COLLECTION,\n });\n mapRef.current.addLayer({\n id: RADIUS_CIRCLE_ID,\n type: 'fill',\n source: RADIUS_CIRCLE_ID,\n paint: {\n 'fill-color': RADIUS_CIRCLE_COLOR,\n 'fill-opacity': 0.2,\n },\n });\n\n mapRef.current.addSource(WELLS_ID, { type: 'geojson', data: EMPTY_FEATURE_COLLECTION });\n mapRef.current.addLayer({\n id: WELLS_ID,\n type: 'circle',\n source: WELLS_ID,\n paint: {\n 'circle-radius': ['get', 'radius'],\n 'circle-color': OFFSET_WELL_COLOR,\n 'circle-opacity': ['get', 'opacity'],\n },\n });\n\n mapRef.current.addSource(HIGHLIGHT_ID, { type: 'geojson', data: EMPTY_FEATURE_COLLECTION });\n mapRef.current.addLayer({\n id: HIGHLIGHT_ID,\n type: 'circle',\n source: HIGHLIGHT_ID,\n paint: {\n 'circle-radius': ['get', 'radius'],\n 'circle-color': OFFSET_WELL_COLOR,\n 'circle-opacity': 0.2,\n },\n });\n\n setIsMapReady(true);\n });\n\n const map = mapRef.current;\n return () => {\n map.remove();\n mapRef.current = null;\n markersBoundsRef.current = null;\n };\n }, []);\n\n // NOTE: Radius circle\n useEffect(() => {\n if (!mapRef.current || !isMapReady) {\n return;\n }\n\n if (!subjectWellCoords) {\n mapRef.current.getSource(RADIUS_CIRCLE_ID).setData(EMPTY_FEATURE_COLLECTION);\n return;\n }\n\n const ring = makeCirclePolygon(subjectWellCoords, radius * METERS_IN_MILE);\n mapRef.current.getSource(RADIUS_CIRCLE_ID).setData({\n type: 'Feature',\n geometry: { type: 'Polygon', coordinates: [ring] },\n });\n }, [radius, subjectWellCoords, isMapReady]);\n\n const handleMouseOver = (coords, r) => {\n // Highlight the hovered well with a bigger translucent circle\n mapRef.current.getSource(HIGHLIGHT_ID).setData({\n type: 'Feature',\n geometry: { type: 'Point', coordinates: toLngLat(coords) },\n properties: { radius: r * 3 },\n });\n };\n\n // NOTE: Well markers\n useEffect(() => {\n if (!mapRef.current || !isMapReady) {\n return undefined;\n }\n\n const prevWells = prevWellsRef.current;\n prevWellsRef.current = wells;\n\n popupRef.current?.remove();\n mapRef.current.getSource(HIGHLIGHT_ID).setData(EMPTY_FEATURE_COLLECTION);\n\n const offsetWellIds = offsetWells.map(well => well.id);\n\n const features = [];\n const wellsById = {};\n const bounds = new mapboxgl.LngLatBounds();\n wells.forEach(well => {\n const coords = get(well, coordsDataPath);\n\n if (coords && isValidCoordinates(coords)) {\n const isWellSubject = subjectWell && subjectWell.id === well.id;\n const isWellOffset = offsetWellIds.includes(well.id);\n const r = isWellSubject ? subjectWellMarkerSize : wellMarkerSize;\n const opacity = isWellSubject || isWellOffset ? 1 : 0.3;\n\n wellsById[well.id] = well;\n bounds.extend(toLngLat(coords));\n features.push({\n type: 'Feature',\n geometry: { type: 'Point', coordinates: toLngLat(coords) },\n properties: { wellId: well.id, radius: r, opacity },\n });\n }\n });\n\n mapRef.current.getSource(WELLS_ID).setData({ type: 'FeatureCollection', features });\n markersBoundsRef.current = features.length ? bounds : null;\n\n const map = mapRef.current;\n let hoveredWellId = null;\n\n const handleMouseMove = e => {\n map.getCanvas().style.cursor = 'pointer';\n\n const well = wellsById[e.features[0].properties.wellId];\n if (!well || well.id === hoveredWellId) {\n return;\n }\n hoveredWellId = well.id;\n\n const coords = get(well, coordsDataPath);\n\n // Tooltip\n const tooltipContainer = document.createElement('div');\n const tootipContent = createElement(toolTip(), { well });\n ReactDOM.render(tootipContent, tooltipContainer);\n if (!popupRef.current) {\n popupRef.current = new mapboxgl.Popup({ closeButton: false, maxWidth: 'none' });\n }\n popupRef.current.setLngLat(toLngLat(coords)).setDOMContent(tooltipContainer).addTo(map);\n\n // Highlight\n handleMouseOver(coords, e.features[0].properties.radius);\n };\n\n // NOTE: was the mouseout handler of the Leaflet highlight marker\n const handleHighlightMouseLeave = () => {\n hoveredWellId = null;\n map.getCanvas().style.cursor = '';\n map.getSource(HIGHLIGHT_ID).setData(EMPTY_FEATURE_COLLECTION);\n popupRef.current?.remove();\n };\n\n // NOTE: If the pointer exits before the highlight renders under it, the highlight\n // layer never emits mouseleave — clear here unless the cursor is inside the highlight\n const handleWellsMouseLeave = e => {\n if (e?.point && map.queryRenderedFeatures(e.point, { layers: [HIGHLIGHT_ID] }).length) {\n return;\n }\n handleHighlightMouseLeave();\n };\n\n map.on('mousemove', WELLS_ID, handleMouseMove);\n map.on('mouseleave', WELLS_ID, handleWellsMouseLeave);\n map.on('mouseleave', HIGHLIGHT_ID, handleHighlightMouseLeave);\n\n setTimeout(() => {\n if (mapRef.current && markersBoundsRef.current && wells !== prevWells) {\n mapRef.current.fitBounds(markersBoundsRef.current);\n }\n }, 500);\n\n return () => {\n map.off('mousemove', WELLS_ID, handleMouseMove);\n map.off('mouseleave', WELLS_ID, handleWellsMouseLeave);\n map.off('mouseleave', HIGHLIGHT_ID, handleHighlightMouseLeave);\n };\n }, [subjectWell, wells, offsetWells, isMapReady]);\n\n return (\n <div className={styles.map}>\n <div className={styles.mapMain} ref={mapContainerRef} />\n </div>\n );\n}\n\nWellsMap.propTypes = {\n subjectWell: PropTypes.shape({\n id: PropTypes.number,\n formation: PropTypes.string,\n }),\n wells: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n offsetWells: PropTypes.arrayOf(PropTypes.shape({})),\n radius: PropTypes.number.isRequired,\n subjectWellMarkerSize: PropTypes.number,\n wellMarkerSize: PropTypes.number,\n coordsDataPath: PropTypes.string,\n};\n\nWellsMap.defaultProps = {\n subjectWell: null,\n subjectWellMarkerSize: DEFAULT_SUBJECT_WELL_MARKER_SIZE,\n wellMarkerSize: DEFAULT_WELL_MARKER_SIZE,\n coordsDataPath: 'settings.top_hole.coordinates',\n offsetWells: null,\n};\n\nexport default memo(WellsMap);\n"],"names":["isValidCoordinates","mapbox","DEFAULT_COORDS","HIGHLIGHT_ID","EMPTY_FEATURE_COLLECTION","type","features","toLngLat","_ref","_ref2","_slicedToArray","lat","WellsMap","_ref6","subjectWell","wells","offsetWells","radius","subjectWellMarkerSize","wellMarkerSize","coordsDataPath","mapContainerRef","useRef","mapRef","markersBoundsRef","popupRef","prevWellsRef","useState","_useState2","_useState","isMapReady","setIsMapReady","subjectWellCoords","useMemo","get","useEffect","current","mapboxgl","Map","container","style","center","zoom","attributionControl","scrollZoom","addControl","NavigationControl","showCompass","on","addSource","data","addLayer","id","source","paint","map","remove","ring","_ref3","radiusMeters","_ref4","lng","points","distanceX","Math","cos","PI","distanceY","i","theta","push","sin","makeCirclePolygon","getSource","setData","geometry","coordinates","_popupRef$current","prevWells","offsetWellIds","well","wellsById","bounds","LngLatBounds","forEach","coords","isWellSubject","isWellOffset","includes","r","opacity","extend","properties","wellId","length","hoveredWellId","handleMouseMove","e","getCanvas","cursor","tooltipContainer","document","createElement","tootipContent","_ref5","_jsx","color","background","children","fontSize","lineHeight","ReactDOM","render","Popup","closeButton","maxWidth","setLngLat","setDOMContent","addTo","handleMouseOver","handleHighlightMouseLeave","_popupRef$current2","handleWellsMouseLeave","point","queryRenderedFeatures","layers","setTimeout","fitBounds","off","className","styles","mapMain","ref","propTypes","PropTypes","shape","number","formation","string","arrayOf","isRequired","defaultProps","memo"],"mappings":"6cAWA,IAAQA,EAAuBC,EAAvBD,mBAQFE,EAAiB,CAAC,WAAY,WAI9BC,EAAe,kBACfC,EAA2B,CAAEC,KAAM,oBAAqBC,SAAU,IAElEC,EAAW,SAAHC,GAAA,IAAAC,EAAAC,EAAAF,EAAA,GAAKG,EAAGF,EAAA,GAAK,M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,IAGnC2E,EAAA,MAAA,CAAKwB,UAAWC,EAAO3E,IAAIqD,SACzBH,EAAA,MAAA,CAAKwB,UAAWC,EAAOC,QAASC,IAAK/G,KAG3C,CAEAT,EAASyH,UAAY,CACnBvH,YAAawH,EAAUC,MAAM,CAC3BnF,GAAIkF,EAAUE,OACdC,UAAWH,EAAUI,SAEvB3H,MAAOuH,EAAUK,QAAQL,EAAUC,MAAM,CAAA,IAAKK,WAC9C5H,YAAasH,EAAUK,QAAQL,EAAUC,MAAM,CAAE,IACjDtH,OAAQqH,EAAUE,OAAOI,WACzB1H,sBAAuBoH,EAAUE,OACjCrH,eAAgBmH,EAAUE,OAC1BpH,eAAgBkH,EAAUI,QAG5B9H,EAASiI,aAAe,CACtB/H,YAAa,KACbI,sBAnRuC,EAoRvCC,eAnR+B,EAoR/BC,eAAgB,gCAChBJ,YAAa,MAGf,IAAe8H,EAAAA,EAAKlI"}
@@ -1,2 +1,2 @@
1
- import r from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/slicedToArray";import e from"@babel/runtime/regenerator";import{useRef as n,useEffect as a,useState as u}from"react";import{isEmpty as o}from"lodash";import{fetchBicWellSections as i,fetchWells as s}from"../utils/apiCalls.js";function c(r){var t=n();return a((function(){t.current=r})),t.current}function l(o,i){var c=n(!0),l=u(null),p=t(l,2),f=p[0],m=p[1];return a((function(){function t(){return(t=r(e.mark((function r(){var t;return e.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,s(o);case 2:t=r.sent,m(t);case 4:case"end":return r.stop()}}),r)})))).apply(this,arguments)}i&&c.current&&(m(null),function(){t.apply(this,arguments)}(),c.current=!1)}),[o,i]),f}var p=function(n,s){var c=u([]),l=t(c,2),p=l[0],f=l[1];return a((function(){var a,u=(a=r(e.mark((function r(){var a,u,s,c,l;return e.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!n){r.next=7;break}return r.next=4,Promise.all([i(n)]);case 4:r.t0=r.sent,r.next=8;break;case 7:r.t0=[];case 8:u=r.t0,s=t(u,1),a=s[0],c=!o(a)&&JSON.parse(a[0].data.filters)||void 0,l=!o(a)&&a[0].data.result&&JSON.parse(a[0].data.result)||void 0,f({filters:c,result:l}),r.next=19;break;case 16:r.prev=16,r.t1=r.catch(0),f(null);case 19:case"end":return r.stop()}}),r,null,[[0,16]])}))),function(){return a.apply(this,arguments)});s&&u()}),[n,s]),p};export{p as useFetchBicWellsData,c as usePrevious,l as useWells};
1
+ import r from"@babel/runtime/helpers/asyncToGenerator";import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/regenerator";import{useRef as n,useState as a,useEffect as o}from"react";import{isEmpty as s}from"lodash";import{fetchBicWellSections as i,fetchWells as u}from"../utils/apiCalls.js";function c(s,i){var c=n(!0),l=a(null),p=e(l,2),f=p[0],m=p[1];return o((function(){function e(){return(e=r(t.mark((function r(){var e;return t.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,u(s);case 2:e=r.sent,m(e);case 4:case"end":return r.stop()}}),r)})))).apply(this,arguments)}i&&c.current&&(m(null),function(){e.apply(this,arguments)}(),c.current=!1)}),[s,i]),f}var l=function(n,u){var c=a([]),l=e(c,2),p=l[0],f=l[1];return o((function(){var a,o=(a=r(t.mark((function r(){var a,o,u,c,l;return t.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!n){r.next=7;break}return r.next=4,Promise.all([i(n)]);case 4:r.t0=r.sent,r.next=8;break;case 7:r.t0=[];case 8:o=r.t0,u=e(o,1),a=u[0],c=!s(a)&&JSON.parse(a[0].data.filters)||void 0,l=!s(a)&&a[0].data.result&&JSON.parse(a[0].data.result)||void 0,f({filters:c,result:l}),r.next=19;break;case 16:r.prev=16,r.t1=r.catch(0),f(null);case 19:case"end":return r.stop()}}),r,null,[[0,16]])}))),function(){return a.apply(this,arguments)});u&&o()}),[n,u]),p};export{l as useFetchBicWellsData,c as useWells};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/BICOffsetPickerDialog/effects/index.js"],"sourcesContent":["import { useEffect, useState, useRef } from 'react';\nimport { isEmpty } from 'lodash';\n\nimport { fetchWells, fetchBicWellSections } from '../utils/apiCalls';\n\nexport function usePrevious(value) {\n const ref = useRef();\n useEffect(() => {\n ref.current = value;\n });\n return ref.current;\n}\n\nexport function useWells(companyId, open) {\n const initialLoadingRef = useRef(true);\n const [wells, setWells] = useState(null);\n\n useEffect(() => {\n async function handleFetchWells() {\n const data = await fetchWells(companyId);\n setWells(data);\n }\n\n if (open && initialLoadingRef.current) {\n setWells(null);\n handleFetchWells();\n initialLoadingRef.current = false;\n }\n }, [companyId, open]);\n\n return wells;\n}\n\nexport const useFetchBicWellsData = (assetId, isOpen) => {\n const [bicData, setBicData] = useState([]);\n\n useEffect(() => {\n const handleOffsetWellBicData = async () => {\n let data;\n try {\n [data] = assetId ? await Promise.all([fetchBicWellSections(assetId)]) : [];\n const filters = (!isEmpty(data) && JSON.parse(data[0].data.filters)) || undefined;\n const result =\n (!isEmpty(data) && data[0].data.result && JSON.parse(data[0].data.result)) || undefined;\n setBicData({\n filters,\n result,\n });\n } catch (e) {\n setBicData(null);\n }\n };\n\n if (isOpen) {\n handleOffsetWellBicData();\n }\n }, [assetId, isOpen]);\n\n return bicData;\n};\n"],"names":["usePrevious","value","ref","useRef","useEffect","current","useWells","companyId","open","initialLoadingRef","useState","_useState2","_slicedToArray","_useState","wells","setWells","_handleFetchWells","_asyncToGenerator","_regeneratorRuntime","mark","_callee","data","wrap","_context","prev","next","fetchWells","sent","stop","apply","this","arguments","handleFetchWells","useFetchBicWellsData","assetId","isOpen","_useState4","_useState3","bicData","setBicData","_ref","handleOffsetWellBicData","_callee2","_ref2","_ref3","filters","result","_context2","Promise","all","fetchBicWellSections","t0","isEmpty","JSON","parse","undefined","t1"],"mappings":"8TAKO,SAASA,EAAYC,GAC1B,IAAMC,EAAMC,IAIZ,OAHAC,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AAa,EAAAI,GAAAJ,EAAApB,KAAAoB,EAAAtB,KAAA,EAAA,MAAA,KAAA,EAAAsB,EAAAI,GAAG,GAAE,KAAA,EAAAR,EAAAI,EAAAI,GAAAP,EAAAhC,EAAA+B,EAAA,GAAzEtB,EAAIuB,EAAA,GACCC,GAAYO,EAAQ/B,IAASgC,KAAKC,MAAMjC,EAAK,GAAGA,KAAKwB,eAAaU,EAClET,GACFM,EAAQ/B,IAASA,EAAK,GAAGA,KAAKyB,QAAUO,KAAKC,MAAMjC,EAAK,GAAGA,KAAKyB,cAAYS,EAChFhB,EAAW,CACTM,QAAAA,EACAC,OAAAA,IACCC,EAAAtB,KAAA,GAAA,MAAA,KAAA,GAAAsB,EAAAvB,KAAA,GAAAuB,EAAAS,GAAAT,EAAA,MAAA,GAEHR,EAAW,MAAM,KAAA,GAAA,IAAA,MAAA,OAAAQ,EAAAnB,OAAA,GAAAc,EAAA,KAAA,CAAA,CAAA,EAAA,KAEpB,KAAA,WAd4B,OAAAF,EAAAX,MAAAC,KAAAC,UAAA,GAgBzBI,GACFM,GAEJ,GAAG,CAACP,EAASC,IAENG,CACT"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/BICOffsetPickerDialog/effects/index.js"],"sourcesContent":["import { useEffect, useState, useRef } from 'react';\nimport { isEmpty } from 'lodash';\n\nimport { fetchWells, fetchBicWellSections } from '../utils/apiCalls';\n\nexport function usePrevious(value) {\n const ref = useRef();\n useEffect(() => {\n ref.current = value;\n });\n return ref.current;\n}\n\nexport function useWells(companyId, open) {\n const initialLoadingRef = useRef(true);\n const [wells, setWells] = useState(null);\n\n useEffect(() => {\n async function handleFetchWells() {\n const data = await fetchWells(companyId);\n setWells(data);\n }\n\n if (open && initialLoadingRef.current) {\n setWells(null);\n handleFetchWells();\n initialLoadingRef.current = false;\n }\n }, [companyId, open]);\n\n return wells;\n}\n\nexport const useFetchBicWellsData = (assetId, isOpen) => {\n const [bicData, setBicData] = useState([]);\n\n useEffect(() => {\n const handleOffsetWellBicData = async () => {\n let data;\n try {\n [data] = assetId ? await Promise.all([fetchBicWellSections(assetId)]) : [];\n const filters = (!isEmpty(data) && JSON.parse(data[0].data.filters)) || undefined;\n const result =\n (!isEmpty(data) && data[0].data.result && JSON.parse(data[0].data.result)) || undefined;\n setBicData({\n filters,\n result,\n });\n } catch (e) {\n setBicData(null);\n }\n };\n\n if (isOpen) {\n handleOffsetWellBicData();\n }\n }, [assetId, isOpen]);\n\n return bicData;\n};\n"],"names":["useWells","companyId","open","initialLoadingRef","useRef","useState","_useState2","_slicedToArray","_useState","wells","setWells","useEffect","_handleFetchWells","_asyncToGenerator","_regeneratorRuntime","mark","_callee","data","wrap","_context","prev","next","fetchWells","sent","stop","apply","this","arguments","current","handleFetchWells","useFetchBicWellsData","assetId","isOpen","_useState4","_useState3","bicData","setBicData","_ref","handleOffsetWellBicData","_callee2","_ref2","_ref3","filters","result","_context2","Promise","all","fetchBicWellSections","t0","isEmpty","JSON","parse","undefined","t1"],"mappings":"8TAaO,SAASA,EAASC,EAAWC,GAClC,IAAMC,EAAoBC,GAAO,GACPC,EAAAA,EAAS,MAAKC,EAAAC,EAAAC,EAAA,GAAjCC,EAAKH,EAAA,GAAEI,EAAQJ,EAAA,GAetB,OAbAK,GAAU,WACuB,SAAAC,IAG9B,OAH8BA,EAA/BC,EAAAC,EAAAC,MAAA,SAAAC,IAAA,IAAAC,EAAA,OAAAH,EAAAI,MAAA,SAAAC,GAAA,OAAA,OAAAA,EAAAC,KAAAD,EAAAE,MAAA,KAAA,EAAA,OAAAF,EAAAE,KAAA,EACqBC,EAAWrB,GAAU,KAAA,EAAlCgB,EAAIE,EAAAI,KACVb,EAASO,GAAM,KAAA,EAAA,IAAA,MAAA,OAAAE,EAAAK,OAAA,GAAAR,EAChB,MAAAS,MAAAC,KAAAC,UAAA,CAEGzB,GAAQC,EAAkByB,UAC5BlB,EAAS,MAPG,WACiBE,EAAAa,MAAAC,KAAAC,UAAA,CAO7BE,GACA1B,EAA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ACFM,GAEJ,GAAG,CAACP,EAASC,IAENG,CACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"OffsetWellMap.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellMap/OffsetWellMap.js"],"names":[],"mappings":";AAiCA,0EAA0E;AAC1E,6BADW,KAAK,CAAC,EAAE,CAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,CAkcpE"}
1
+ {"version":3,"file":"OffsetWellMap.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellMap/OffsetWellMap.js"],"names":[],"mappings":";AAkEA,0EAA0E;AAC1E,6BADW,KAAK,CAAC,EAAE,CAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,CA+bpE"}