efficient-shell 10.20.0 → 10.22.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 (258) hide show
  1. package/README.md +3 -0
  2. package/dist/{Browser-3BZPV4OH.js → Browser-XQ5GO3LJ.js} +15 -15
  3. package/dist/Calculator-X62IAKQY.js +29 -0
  4. package/dist/{CurrencyConverter-42IHLJVV.js → CurrencyConverter-PSOBQ6K2.js} +6 -6
  5. package/dist/{Documents-N2OS46II.js → Documents-7GOEAIJ6.js} +7 -7
  6. package/dist/{Files-6MMOX77N.js → Files-MMVUWO5F.js} +23 -23
  7. package/dist/Notepad-FAQBAF36.js +24 -0
  8. package/dist/PomodoroTimer-ZLS6XCTN.js +91 -0
  9. package/dist/{Preview-YJPVKRQU.js → Preview-DEK7WTAU.js} +38 -38
  10. package/dist/Sidebar-JF2KEJT2.js +44 -0
  11. package/dist/{Spreadsheet-3P3BL6CS.js → Spreadsheet-6C7Q6OQA.js} +13 -13
  12. package/dist/Stock-XHMTFEOL.js +16 -0
  13. package/dist/{Weather-4QPYOENN.js → Weather-X5WAHYQ3.js} +19 -19
  14. package/dist/{WorldClock-3ZVRBLEW.js → WorldClock-ARU7PMVZ.js} +6 -6
  15. package/dist/ai/index.d.ts +10 -1
  16. package/dist/ai/index.js +91 -91
  17. package/dist/apps/index.js +1 -1
  18. package/dist/bin/media-host-check.js +1 -1
  19. package/dist/bin/ui-check.js +1 -1
  20. package/dist/charts/BoxPlotChart.js +1 -1
  21. package/dist/charts/CandlestickChart.js +1 -1
  22. package/dist/charts/ChartTooltip.js +1 -1
  23. package/dist/charts/ChordChart.js +1 -1
  24. package/dist/charts/ColumnChart.js +1 -1
  25. package/dist/charts/FunnelChart.js +1 -1
  26. package/dist/charts/HeatmapChart.js +1 -1
  27. package/dist/charts/HistogramChart.js +1 -1
  28. package/dist/charts/PieChart.js +1 -1
  29. package/dist/charts/RadarChart.js +1 -1
  30. package/dist/charts/RadialBarChart.js +1 -1
  31. package/dist/charts/RangeChart.js +1 -1
  32. package/dist/charts/SankeyChart.js +1 -1
  33. package/dist/charts/ScatterChart.js +1 -1
  34. package/dist/charts/SpecChart.js +1 -1
  35. package/dist/charts/SunburstChart.js +1 -1
  36. package/dist/charts/TimeSeriesChart.js +1 -1
  37. package/dist/charts/TreemapChart.js +1 -1
  38. package/dist/charts/WaterfallChart.js +1 -1
  39. package/dist/chunk-22LRMKLV.js +6 -0
  40. package/dist/{chunk-O47HKK6E.js → chunk-3PO4D32J.js} +1 -1
  41. package/dist/{chunk-5TDQPZDB.js → chunk-4BPIGS2D.js} +5 -5
  42. package/dist/chunk-4DO47TT5.js +1 -0
  43. package/dist/{chunk-5QGBVTGS.js → chunk-4UHAQMOT.js} +2 -2
  44. package/dist/{chunk-Z5A4EY2R.js → chunk-53DO72B2.js} +1 -1
  45. package/dist/{chunk-6JSXIEH2.js → chunk-5532S4RN.js} +3 -3
  46. package/dist/{chunk-Y62TTKSY.js → chunk-5DIBDRB6.js} +3 -3
  47. package/dist/{chunk-ZWMODDVE.js → chunk-5JCHYQYI.js} +2 -2
  48. package/dist/chunk-5R4X7MFQ.js +1 -0
  49. package/dist/chunk-5XKCOKYJ.js +1 -0
  50. package/dist/{chunk-ZQKA2XKH.js → chunk-6CICYVCK.js} +8 -8
  51. package/dist/{chunk-XK42AQOJ.js → chunk-6XYGA252.js} +6 -6
  52. package/dist/{chunk-3UXXA2CS.js → chunk-7SMDYBQX.js} +8 -8
  53. package/dist/{chunk-OORL6BIG.js → chunk-7XNDWW3Y.js} +1 -1
  54. package/dist/{chunk-WYFMSL4Q.js → chunk-A46WK67X.js} +8 -8
  55. package/dist/{chunk-LAO5ZHQ6.js → chunk-AFBBNGVO.js} +9 -9
  56. package/dist/{chunk-G4GVLK44.js → chunk-AGPPZHAH.js} +1 -1
  57. package/dist/{chunk-VQCSHJEF.js → chunk-AKBGUMLI.js} +5 -5
  58. package/dist/{chunk-N67QX3WW.js → chunk-ARSOETMP.js} +2 -2
  59. package/dist/chunk-BB6A5MGA.js +1 -0
  60. package/dist/{chunk-NFB7PARJ.js → chunk-BJRJODRZ.js} +1 -1
  61. package/dist/{chunk-OP5DOO3K.js → chunk-BWTK3NUD.js} +3 -3
  62. package/dist/{chunk-RVRDDTEG.js → chunk-C2ZUYCIM.js} +1 -1
  63. package/dist/{chunk-YILGAEW3.js → chunk-C4CAPG3D.js} +1 -1
  64. package/dist/{chunk-W3OWPBQL.js → chunk-CGP2QCIA.js} +2 -2
  65. package/dist/{chunk-DGZAQXTW.js → chunk-CIXGYZCF.js} +4 -4
  66. package/dist/{chunk-N6CS2FO2.js → chunk-CIYMGVZC.js} +1 -1
  67. package/dist/{chunk-DCRLJMQ6.js → chunk-D6ZXMKW2.js} +1 -1
  68. package/dist/{chunk-4UKGVLFP.js → chunk-DLOJSJWL.js} +1 -1
  69. package/dist/{chunk-O6JJIR4H.js → chunk-DOWE3ZQR.js} +1 -1
  70. package/dist/{chunk-JNQKBN5M.js → chunk-E5H5OU3A.js} +5 -5
  71. package/dist/{chunk-UYRMW5MO.js → chunk-EE56C2JH.js} +5 -5
  72. package/dist/{chunk-43L5K2IX.js → chunk-ET4726WV.js} +1 -1
  73. package/dist/{chunk-3PR5YMWZ.js → chunk-F3ZH6UCW.js} +1 -1
  74. package/dist/chunk-F7U5MVNH.js +2 -0
  75. package/dist/{chunk-AYDW63LV.js → chunk-FHYETY4V.js} +1 -1
  76. package/dist/chunk-FX4KK5GE.js +3 -0
  77. package/dist/{chunk-2VGQS6CW.js → chunk-GCC2OZDG.js} +1 -1
  78. package/dist/chunk-GCMCXRIN.js +19 -0
  79. package/dist/{chunk-22RQC4EW.js → chunk-GCP3LGRG.js} +13 -13
  80. package/dist/{chunk-5SIOCKCK.js → chunk-GEDS6QO7.js} +2 -2
  81. package/dist/{chunk-RXCGE2AY.js → chunk-GGRD2JLB.js} +1 -1
  82. package/dist/{chunk-7VBXIIEC.js → chunk-GIK62TW6.js} +3 -3
  83. package/dist/{chunk-MVZRZTQP.js → chunk-GLE4F5FT.js} +1 -1
  84. package/dist/{chunk-XLCZHPCQ.js → chunk-H2C5SZKO.js} +1 -1
  85. package/dist/chunk-H43BVPNN.js +7 -0
  86. package/dist/{chunk-PW52RXPI.js → chunk-HC2AM2DT.js} +1 -1
  87. package/dist/{chunk-RUGQO7YF.js → chunk-HWKAFISI.js} +7 -7
  88. package/dist/chunk-IWOVB4WI.js +9 -0
  89. package/dist/{chunk-TKJBZIHT.js → chunk-KABWJIY4.js} +1 -1
  90. package/dist/{chunk-XLWMM53L.js → chunk-KGVNRLWT.js} +2 -2
  91. package/dist/{chunk-4WEFGKJL.js → chunk-KLAKLVKE.js} +12 -12
  92. package/dist/{chunk-S74LKSUB.js → chunk-L67WTASI.js} +1 -1
  93. package/dist/chunk-LIULEXWE.js +14 -0
  94. package/dist/chunk-LJHVEISA.js +8 -0
  95. package/dist/chunk-LQVW3SW4.js +6 -0
  96. package/dist/{chunk-GEP4FROW.js → chunk-MW3FT4WI.js} +3 -3
  97. package/dist/{chunk-TXDA7TTP.js → chunk-N2RIQ2OU.js} +1 -1
  98. package/dist/chunk-NGRTW6Y7.js +2 -0
  99. package/dist/{chunk-FS6EOU4G.js → chunk-NPGFCIHB.js} +1 -1
  100. package/dist/{chunk-3NW5LD7D.js → chunk-NS2HY4NL.js} +3 -3
  101. package/dist/{chunk-A42MKJA3.js → chunk-NTVOQHRS.js} +1 -1
  102. package/dist/{chunk-3ELLBQPS.js → chunk-NWUAATIX.js} +1 -1
  103. package/dist/{chunk-GMOEYB4X.js → chunk-O64PY7ZJ.js} +11 -11
  104. package/dist/{chunk-DHIQ46C5.js → chunk-OAVU46YG.js} +1 -1
  105. package/dist/{chunk-RBBIAIPH.js → chunk-OBNA7GF5.js} +8 -8
  106. package/dist/{chunk-FOFZI62F.js → chunk-P22NWAFW.js} +1 -1
  107. package/dist/{chunk-VDUXPMOQ.js → chunk-P3LKCOB4.js} +1 -1
  108. package/dist/chunk-PBFFKRQF.js +12 -0
  109. package/dist/{chunk-QHPVAXHR.js → chunk-PJBZ5B54.js} +3 -3
  110. package/dist/{chunk-VN4KSRZ5.js → chunk-PWUPLXSS.js} +1 -1
  111. package/dist/chunk-Q5WPHBDB.js +9 -0
  112. package/dist/{chunk-FKRPQDFX.js → chunk-QA3EAJ5H.js} +17 -17
  113. package/dist/{chunk-C6Y7B73Q.js → chunk-QDJQ43N4.js} +1 -1
  114. package/dist/{chunk-77MOYIQW.js → chunk-QFJIMX4A.js} +10 -10
  115. package/dist/chunk-QIMFBARF.js +8 -0
  116. package/dist/{chunk-FACWYKL6.js → chunk-QZMGWRZ4.js} +6 -6
  117. package/dist/{chunk-XCHAU2UN.js → chunk-RAMJFT3D.js} +6 -6
  118. package/dist/chunk-RRGMXY46.js +29 -0
  119. package/dist/{chunk-YSDPFDAG.js → chunk-RXO2LNIB.js} +1 -1
  120. package/dist/{chunk-EPY34L26.js → chunk-SAGI7AWC.js} +1 -1
  121. package/dist/chunk-SETRKP7W.js +11 -0
  122. package/dist/{chunk-LYHJHUQH.js → chunk-SRYX6AQ6.js} +1 -1
  123. package/dist/{chunk-GISDIVFK.js → chunk-TBQLPMW5.js} +1 -1
  124. package/dist/chunk-TLJWBRLI.js +8 -0
  125. package/dist/{chunk-PN5FQVMB.js → chunk-URQWWOHM.js} +5 -5
  126. package/dist/{chunk-NVD4AI5Y.js → chunk-UXPKCDEF.js} +1 -1
  127. package/dist/{chunk-4HBSQGRI.js → chunk-VKP2WRJJ.js} +1 -1
  128. package/dist/{chunk-VWIYC2NB.js → chunk-VQIG5N6D.js} +9 -9
  129. package/dist/{chunk-MNNZGO2E.js → chunk-VXQQQDJ3.js} +1 -1
  130. package/dist/chunk-WBJ6KNUF.js +1 -0
  131. package/dist/{chunk-UDKTAG57.js → chunk-WE3HINW3.js} +1 -1
  132. package/dist/chunk-WEPQU5W6.js +22 -0
  133. package/dist/{chunk-YJXS7BR5.js → chunk-WHISJI5L.js} +1 -1
  134. package/dist/{chunk-34URULVW.js → chunk-WJ6ZJVAX.js} +1 -1
  135. package/dist/{chunk-VIQ6OME2.js → chunk-WSMRVWWK.js} +10 -10
  136. package/dist/{chunk-JYIH2EBG.js → chunk-WUMPTKOG.js} +1 -1
  137. package/dist/{chunk-PUF75SMJ.js → chunk-WVCX2Y3S.js} +1 -1
  138. package/dist/{chunk-QRYSL6QU.js → chunk-XAPHUSOR.js} +16 -16
  139. package/dist/{chunk-HV47GP2C.js → chunk-XDCHB6JA.js} +1 -1
  140. package/dist/{chunk-5WYRAJ5F.js → chunk-YICFH5KO.js} +1 -1
  141. package/dist/{chunk-2YSGXZOL.js → chunk-ZT45XXIB.js} +29 -29
  142. package/dist/data/DataTable.js +1 -1
  143. package/dist/data/ListLoadError.js +1 -1
  144. package/dist/format/index.d.ts +2 -1
  145. package/dist/format/index.js +1 -1
  146. package/dist/forms/AlignmentGrid.js +1 -1
  147. package/dist/forms/BorderInput.js +1 -1
  148. package/dist/forms/BrandAssetEditor.js +1 -1
  149. package/dist/forms/Button.js +1 -1
  150. package/dist/forms/ColorPicker.js +1 -1
  151. package/dist/forms/ComposerAttachments.js +1 -1
  152. package/dist/forms/CornersInput.js +1 -1
  153. package/dist/forms/DateRangePicker.js +1 -1
  154. package/dist/forms/DisplayChips.js +1 -1
  155. package/dist/forms/FilePicker.js +1 -1
  156. package/dist/forms/IconButton.js +1 -1
  157. package/dist/forms/IconPicker.js +1 -1
  158. package/dist/forms/InputNumber.js +1 -1
  159. package/dist/forms/LinkPicker.js +1 -1
  160. package/dist/forms/MediaLibrary.js +1 -1
  161. package/dist/forms/MediaUploadField.js +1 -1
  162. package/dist/forms/MediaUploadGrid.js +1 -1
  163. package/dist/forms/MediaUsedInList.js +1 -1
  164. package/dist/forms/NumericKeypad.js +1 -1
  165. package/dist/forms/PictureTiles.js +1 -1
  166. package/dist/forms/PositionInput.js +1 -1
  167. package/dist/forms/Segmented.js +1 -1
  168. package/dist/forms/Select.js +1 -1
  169. package/dist/forms/SidesInput.js +1 -1
  170. package/dist/forms/Slider.js +1 -1
  171. package/dist/forms/Snippet.js +1 -1
  172. package/dist/forms/SplitButton.js +1 -1
  173. package/dist/forms/TagInput.js +1 -1
  174. package/dist/forms/TextToolbar.js +1 -1
  175. package/dist/forms/WidthsBar.js +1 -1
  176. package/dist/hooks/useRootIsDark.d.ts +22 -0
  177. package/dist/hooks/useRootIsDark.js +2 -0
  178. package/dist/hooks/useTheme.d.ts +1 -1
  179. package/dist/icons/efficient-glyphs.js +1 -1
  180. package/dist/icons/efficient-looks.js +1 -1
  181. package/dist/icons/efficient.js +1 -1
  182. package/dist/icons/looks/map.js +1 -1
  183. package/dist/icons/payment.js +1 -1
  184. package/dist/icons/sets.js +1 -1
  185. package/dist/index.d.ts +5 -3
  186. package/dist/index.js +86 -86
  187. package/dist/map/index.js +20 -20
  188. package/dist/page-tabs/index.js +5 -5
  189. package/dist/shell/AppUpdateBanner.js +1 -1
  190. package/dist/shell/ColoredBadge.js +1 -1
  191. package/dist/shell/ContextMenu.js +1 -1
  192. package/dist/shell/DropdownMenu.js +1 -1
  193. package/dist/shell/EditableGrid.js +1 -1
  194. package/dist/shell/FloatingBar.js +1 -1
  195. package/dist/shell/GlobalSearch.js +1 -1
  196. package/dist/shell/HelpCenter.js +1 -1
  197. package/dist/shell/IconRail.js +1 -1
  198. package/dist/shell/ImageLightbox.js +1 -1
  199. package/dist/shell/ItemCount.js +1 -1
  200. package/dist/shell/LanguageSelect.js +1 -1
  201. package/dist/shell/Markdown.js +1 -1
  202. package/dist/shell/PopupMenu.js +1 -1
  203. package/dist/shell/ResizeHandle.js +1 -1
  204. package/dist/shell/SearchableSelect.js +1 -1
  205. package/dist/shell/SettingReset.js +1 -1
  206. package/dist/shell/SidebarLayout.js +1 -1
  207. package/dist/shell/SidebarNav.js +1 -1
  208. package/dist/shell/SortableList.js +1 -1
  209. package/dist/shell/StatusBadge.js +1 -1
  210. package/dist/shell/Tabs.js +1 -1
  211. package/dist/shell/Tooltip.js +1 -1
  212. package/dist/shell/TopNav.js +1 -1
  213. package/dist/shell/TransferProgress.js +1 -1
  214. package/dist/shell/Tree.js +1 -1
  215. package/dist/telemetry/index.js +1 -1
  216. package/dist/templates/AuthScreen.js +1 -1
  217. package/dist/templates/ChatTemplate.js +1 -1
  218. package/dist/templates/CheckoutTemplate.js +1 -1
  219. package/dist/templates/DashboardTemplate.js +1 -1
  220. package/dist/templates/DataTablePage.js +1 -1
  221. package/dist/templates/EmailTemplate.js +1 -1
  222. package/dist/templates/ErrorBoundary.d.ts +1 -1
  223. package/dist/templates/ErrorBoundary.js +1 -1
  224. package/dist/templates/FormLayoutPage.js +1 -1
  225. package/dist/templates/GalleryTemplate.js +1 -1
  226. package/dist/ui/index.d.ts +2 -0
  227. package/dist/ui/index.js +1 -1
  228. package/dist/utils/glass.js +1 -1
  229. package/dist/utils/rootTheme.d.ts +39 -0
  230. package/dist/utils/rootTheme.js +1 -0
  231. package/dist/version.js +1 -1
  232. package/package.json +1 -1
  233. package/dist/Calculator-6NJNSIRN.js +0 -29
  234. package/dist/Notepad-QSF2MA3I.js +0 -24
  235. package/dist/PomodoroTimer-PD7POYX5.js +0 -91
  236. package/dist/Sidebar-2HHICMZZ.js +0 -44
  237. package/dist/Stock-IABQRSXZ.js +0 -16
  238. package/dist/chunk-2H6YNMBE.js +0 -14
  239. package/dist/chunk-5HO53ZE7.js +0 -29
  240. package/dist/chunk-5TQLUPZD.js +0 -6
  241. package/dist/chunk-67MQ5S32.js +0 -8
  242. package/dist/chunk-6XBWM453.js +0 -6
  243. package/dist/chunk-BTFBXZS2.js +0 -1
  244. package/dist/chunk-DESWIPOZ.js +0 -3
  245. package/dist/chunk-DYNJ2H6R.js +0 -8
  246. package/dist/chunk-EJUNGVK2.js +0 -22
  247. package/dist/chunk-F27JJHNJ.js +0 -1
  248. package/dist/chunk-FTF6JKD5.js +0 -9
  249. package/dist/chunk-I33SVQ7P.js +0 -8
  250. package/dist/chunk-I4VIEGCX.js +0 -2
  251. package/dist/chunk-JIGFR7Z3.js +0 -11
  252. package/dist/chunk-MJGK6QTO.js +0 -7
  253. package/dist/chunk-QDKAA3HR.js +0 -2
  254. package/dist/chunk-RMUSRDWV.js +0 -1
  255. package/dist/chunk-SLU45G5J.js +0 -19
  256. package/dist/chunk-TLMFVEMC.js +0 -9
  257. package/dist/chunk-XYBI57KO.js +0 -12
  258. /package/dist/{chunk-NOKZ54GD.js → chunk-CSA6CGXS.js} +0 -0
package/dist/map/index.js CHANGED
@@ -1,21 +1,21 @@
1
1
  "use client";
2
- import{Button_default as e}from"../chunk-I4VIEGCX.js";import"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";import{Icon as t}from"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import{SpinnerRing as n}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import{rootIsDark as r,ROOT_THEME_ATTRIBUTES as o}from"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import{useShellStrings as a}from"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";import{useRef as l,useState as s,useEffect as i,useCallback as c,useMemo as u,useSyncExternalStore as d}from"react";import{createPortal as p}from"react-dom";import{jsxs as m,jsx as h,Fragment as g}from"react/jsx-runtime";import{useQuery as f}from"@tanstack/react-query";var b="maplibregl-compact-show";function y(e){if(!e)return()=>{};const t=()=>!!e.classList.contains(b)&&(e.classList.remove(b),!0);if(t())return()=>{};const n=new MutationObserver(()=>{t()&&n.disconnect()});return n.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()}var x="https://tiles.openfreemap.org",k={connect:[x]},v={light:`${x}/styles/positron`,dark:`${x}/styles/dark`},w=20,N=12,M=480,C={center:[0,0],left:[w,0],right:[-20,0],top:[0,w],"top-left":[0,w],"top-right":[0,w],bottom:[0,-20],"bottom-left":[0,-20],"bottom-right":[0,-20]},L=(e,t=12)=>Math.max(0,Math.floor(e-t-N-w-10-16));function j(e,t,n,r=12){const o=e.y-w-r,a=n.height-e.y-w-N,l=t.height<=o||t.height>a&&o>=a,s=l?Math.max(0,t.height-o):-Math.max(0,t.height-a);let i="",c=0;return e.x-t.width/2<N?(i="-left",c=Math.max(0,N-e.x)):e.x+t.width/2>n.width-N&&(i="-right",c=-Math.max(0,e.x-(n.width-N))),{anchor:`${l?"bottom":"top"}${i}`,move:{x:c,y:s}}}var $="maplibre-gl-worker.mjs",E=e=>`/maplibre-gl/${e}/${$}`,S=null;function B(){return S??=Promise.all([import("maplibre-gl"),import("maplibre-gl/dist/maplibre-gl.css")]).then(([e])=>(e.setWorkerUrl(E(e.getVersion())),e)).catch(e=>{throw S=null,e}),S}var z=null;var A=24,R=28,T=29;function W(e){const t=[...e].sort((e,t)=>e-t),n=[];for(let e=0;e<t.length;){let r=e;for(;r+1<t.length&&t[r+1]===t[r]+1;)r++;n.push(r===e?String(t[e]):`${t[e]}–${t[r]}`),e=r+1}return n.join(", ")}function O(e){const t=Math.max(R,12+8*e.length);return t+t%2}var F=(e,t,n,r)=>({left:e-n/2,top:t-r/2,right:e+n/2,bottom:t+r/2});function K(e,t){return e.left<t.right+1&&t.left<e.right+1&&e.top<t.bottom+1&&t.top<e.bottom+1}var q=e=>F(e.x,e.y,e.width,e.height);function H(e){for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++)if(K(q(e[t]),q(e[n])))return[e[t],e[n]];return null}function _(e,t=[]){const n=[],r=e=>t.some(t=>K(t,e));let o=e.filter(e=>null!==e.stop).sort((e,t)=>e.stop-t.stop).map(e=>({keys:[e.key],stops:[e.stop],x:e.x,y:e.y,width:R,height:R,under:0}));for(let e=H(o);e;e=H(o)){const[t,n]=e;t.keys.push(...n.keys),t.stops.push(...n.stops),t.stops.sort((e,t)=>e-t),t.width=O(W(t.stops)),o=o.filter(e=>e!==n)}o=o.filter(e=>!r(q(e))||(n.push(...e.keys),!1));const a=[];for(const t of e){if(null!==t.stop)continue;const e=F(t.x,t.y,A,A),l=o.find(t=>K(q(t),e));if(l||r(e)){n.push(t.key),l&&l.under++;continue}const s=a.find(t=>K(q(t),e));s?s.keys.push(t.key):a.push({keys:[t.key],stops:[],x:t.x,y:t.y,width:A,height:A,under:0})}return{groups:[...o,...a],hidden:n}}function P(e,t,n){let r=-1/0;for(const o of t){const t=Math.max(Math.abs(o.x-e.x),Math.abs(o.y-e.y));r=Math.max(r,0===t?1/0:n+Math.log2(29/t))}return r}function I(e){const t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:o}),()=>t.disconnect()}var D=r;var J=(...e)=>e.filter(Boolean).join(" "),U=/^(?:\d+|[xytrblse](?:-\d+)?|solid|dashed|dotted|double|hidden|none)$/;function Z(e){return e.split(/\s+/).some(e=>{const t=e.search(/[[(]/),n=t<0?e:e.slice(0,t),r=e.slice(n.lastIndexOf(":")+1);return r.startsWith("border-")&&!U.test(r.slice(7))})}var G="ring-2 ring-gray-900 ring-offset-2",V={portal:{frame:e=>J("relative min-h-72 overflow-hidden rounded-lg border border-line bg-gray-100",e&&"[&_canvas]:cursor-crosshair"),fill:"absolute inset-0",box:"h-full w-full",failed:"absolute inset-0 grid place-items-center p-6 text-center text-sm text-ink-faint",cardInline:"absolute bottom-3 left-3 right-3 z-10 max-h-[calc(100%-1.5rem)] max-w-md overflow-y-auto overscroll-contain",cardFloating:"w-[26rem] overflow-y-auto overscroll-contain",ring:"pointer-events-none rounded-full border-2 border-gray-900 bg-gray-900/15 shadow-[0_0_0_2px_var(--color-white,#fff)]",pinButton:(e,t)=>J("relative grid place-items-center rounded-full cursor-pointer",t&&(null!=e.stop?"h-7 w-7":"h-6 w-6")),pinMark:(e,t,n,r)=>{const o=t&&!r&&null==e.stop&&!e.dot;return J("grid place-items-center rounded-full border-2 font-semibold leading-none shadow-sm transition-transform motion-reduce:transition-none",!Z(e.tone)&&"border-white",e.tone,e.dot?"h-4 w-4 opacity-80":null!=e.stop?"h-7 w-7 text-xs ring-2 ring-gray-900":o?"h-8 w-8 text-xs [&_svg]:h-4 [&_svg]:w-4":"h-6 w-6 text-2xs [&_svg]:h-3.5 [&_svg]:w-3.5",t&&(o?"ring-2 ring-gray-900 ring-offset-1":G),e.approximate&&"border-dashed opacity-80",e.faded&&!t&&"opacity-40",n&&"scale-125 opacity-100")},mark:e=>J("grid place-items-center border-2 px-0.5 text-xs font-semibold leading-none shadow-sm",e.stop?"h-7 min-w-7":"h-6 min-w-6",!Z(e.tone??"")&&"border-white",e.tone??"bg-gray-900 text-on-accent"),groupButton:"grid place-items-center rounded-full cursor-pointer",groupDisc:(e,t,n)=>J("grid place-items-center rounded-full border-2 border-gray-700 bg-surface font-semibold leading-none text-ink-strongest shadow-sm",e?"h-7 w-full px-1 text-xs ring-2 ring-gray-900":t?"h-5 w-5 text-3xs":"h-6 w-6 text-2xs",n&&G),badge:e=>J("absolute -right-2 -top-2 grid h-4 min-w-4 place-items-center rounded-full px-0.5 text-3xs font-semibold leading-none shadow",e??"bg-surface text-ink-strongest"),iconHost:"contents"},site:{frame:e=>J("rosh-map-frame",e&&"rosh-map-frame--picking"),fill:"rosh-map-fill",box:"rosh-map-box",failed:"rosh-map-failed",cardInline:"rosh-map-card-inline",cardFloating:"rosh-map-card-floating",ring:"rosh-map-ring",pinButton:(e,t)=>J("rosh-map-target",t&&(null!=e.stop?"rosh-map-target--stop":"rosh-map-target--sized")),pinMark:(e,t,n,r)=>J("rosh-map-pin",e.dot?"rosh-map-pin--dot":null!=e.stop?"rosh-map-pin--stop":null,t&&!r&&null==e.stop&&!e.dot&&"rosh-map-pin--grown",t&&"rosh-map-pin--chosen",e.approximate&&"rosh-map-pin--approximate",e.faded&&!t&&"rosh-map-pin--faded",n&&"rosh-map-pin--pointed"),mark:e=>J("rosh-map-mark",e.stop&&"rosh-map-mark--stop"),groupButton:"rosh-map-target",groupDisc:(e,t,n)=>J("rosh-map-group",e?"rosh-map-group--stops":t?"rosh-map-group--dots":null,n&&"rosh-map-group--chosen"),badge:()=>"rosh-map-badge",iconHost:"rosh-map-icon",sheet:function(){return z??=import("efficient-shell/map-site.css").catch(e=>{throw z=null,e}),z}}},Q="routes",X=["routes-road","routes-estimate"];function Y(e){const t=document.createElement("span");t.style.display="none",t.style.color=e,document.body.appendChild(t);const n=getComputedStyle(t).color||"#2563eb";return t.remove(),ee(n)}function ee(e){const t=document.createElement("canvas").getContext("2d");if(!t)return"#2563eb";t.fillStyle="#2563eb",t.fillStyle=e,t.fillRect(0,0,1,1);const[n,r,o]=t.getImageData(0,0,1,1).data;return`rgb(${n}, ${r}, ${o})`}var te={center:[30,20],zoom:1};var ne="http://www.w3.org/2000/svg",re=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,oe=(...e)=>e.filter(Boolean).join(" ");function ae(e){const t=document.createElementNS(ne,"svg");t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none"),t.setAttribute("stroke","currentColor"),t.setAttribute("stroke-width","2"),t.setAttribute("aria-hidden","true");for(const n of e){const e=document.createElementNS(ne,"path");e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("d",n),t.appendChild(e)}return t}function le(e,t){for(const[n,r]of Object.entries(t??{}))e.dataset[n]=r}function se({pins:t,selectedKey:n,focus:r,onSelect:o,ariaLabel:u,className:g="",children:f,routes:b,fitTo:x,attribution:k,marks:w,groupCrowded:N=!1,noun:M,highlightKey:$=null,picking:E=!1,onPick:S,card:z,cardMinMapWidth:T=480,fullScreen:O,initialView:F=te,cooperativeGestures:K=!1,look:q="portal",theme:H}){const J=a().map,U=l(null),Z=l(null),G=l(null),ne=l(null),se=l([]),ue=l(/* @__PURE__ */new Map),de=l(/* @__PURE__ */new Map),pe=l(/* @__PURE__ */new Map),me=l(null),he=l(/* @__PURE__ */new Map),ge=l(""),[fe,be]=s(!1),[ye,xe]=s(!1),ke=d(I,D,()=>!1),ve=H??(ke?"dark":"light"),we=V[q],Ne=l({onSelect:o,onPick:S,picking:E,pins:t,selectedKey:n,highlightKey:$,groupCrowded:N,strings:J,noun:M,looks:we});i(()=>{Ne.current={onSelect:o,onPick:S,picking:E,pins:t,selectedKey:n,highlightKey:$,groupCrowded:N,strings:J,noun:M,looks:we}}),i(()=>{we.sheet?.().catch(e=>console.warn("[map] could not load the look's stylesheet",e))},[we]);const Me=c(()=>{const e=G.current,{pins:t,selectedKey:n}=Ne.current,r=n?t.find(e=>e.key===n):void 0;e&&r&&!e.getBounds().contains([r.lng,r.lat])&&e.easeTo({center:[r.lng,r.lat],duration:re()?0:400})},[]),Ce=l(!1),Le=c((e,t)=>{const n=G.current,r=ne.current;if(!n||!r)return;const o=n.getZoom();if(o>=17.5){const t=e.indexOf(Ne.current.selectedKey??"");return void Ne.current.onSelect(e[(t+1)%e.length])}const a=e.map(e=>ue.current.get(e).pin),l=new r.LngLatBounds([a[0].lng,a[0].lat],[a[0].lng,a[0].lat]);for(const e of a)l.extend([e.lng,e.lat]);const s=a.map(e=>n.project([e.lng,e.lat])),i=Math.max(...s.map((e,t)=>P(e,s.filter((e,n)=>n!==t),o))),{clientWidth:c,clientHeight:u}=n.getContainer(),d=n.cameraForBounds(l,{padding:Math.min(64,c/4,u/4)})?.zoom??18,p=document.activeElement===t;Ce.current=!0,n.once("moveend",()=>{if(Ce.current=!1,!p)return;const e=a[0].key,t=ue.current.get(e)?.button,n=t&&"none"!==t.style.display?t:[...de.current.values()].find(t=>t.keys.includes(e))?.button;n?.focus({preventScroll:!0})}),n.easeTo({center:l.getCenter(),zoom:Math.min(18,Math.max(o+1,Math.min(d,i))),duration:re()?0:600})},[]),je=c(()=>{const e=G.current,t=ne.current;if(!e||!t||!U.current||Ce.current&&e.isMoving())return;const{selectedKey:n,highlightKey:r,groupCrowded:o,strings:a,noun:l,looks:s}=Ne.current;for(const[e,t]of ue.current){const a=s.pinMark(t.pin,e===n,e===r,o);t.mark.className!==a&&(t.mark.className=a);const l=e===n?"1":"";t.button.style.zIndex!==l&&(t.button.style.zIndex=l)}let i=null;if(o){const r=e.getContainer().getBoundingClientRect(),o=[...U.current.querySelectorAll("a[href], button, input, select, textarea, summary, [role='button'], [tabindex]:not([tabindex='-1'])")].filter(e=>!e.closest("[data-pin], [data-pin-group], .maplibregl-canvas")).map(e=>{const t=e.getBoundingClientRect(),n=e.closest("[data-map-card]")?.getBoundingClientRect()??t;return{left:Math.max(t.left,n.left)-r.left,top:Math.max(t.top,n.top)-r.top,right:Math.min(t.right,n.right)-r.left,bottom:Math.min(t.bottom,n.bottom)-r.top}}).filter(e=>e.right>e.left&&e.bottom>e.top);i=_([...ue.current.values()].map(({pin:t})=>{const n=e.project([t.lng,t.lat]);return{key:t.key,x:n.x,y:n.y,stop:t.stop??null}}),o);const c=e=>(l??a.places)(e),u=e.getZoom()<17.5?a.spread:a.cycle,d=(e,t)=>{const n=t?"":"none";e.style.display!==n&&(e.style.display=n)},p=/* @__PURE__ */new Map;for(const r of i.groups){const o=r.under>0?a.closeBy(r.under,c(r.under)):null,l=1===r.keys.length?ue.current.get(r.keys[0]):null;if(l){d(l.button,!0),l.button.setAttribute("aria-label",o?`${l.name}; ${o}`:l.name),l.button.title=o?`${l.title}\n${o}`:l.title;continue}for(const e of r.keys)d(ue.current.get(e).button,!1);const i=r.keys.join(" ");let m=de.current.get(i);if(!m){const n=document.createElement("button");n.type="button",n.dataset.pinGroup="",n.className=s.groupButton,n.append(document.createElement("span"));const o=ue.current.get(r.keys[0]).pin,a={button:n,keys:r.keys,marker:new t.Marker({element:n,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)};n.addEventListener("click",e=>{e.stopPropagation(),Le(a.keys,n)}),m=a}m.keys=r.keys;const h=r.keys.map(e=>ue.current.get(e)),g=r.stops.length>0?W(r.stops):String(h.length),f=r.stops.length>0?a.stops(g):a.group(h.length,c(h.length));m.button.style.width=`${r.width}px`,m.button.style.height=`${r.height}px`,m.button.setAttribute("aria-label",`${f}: ${h.map(e=>e.pin.label).join("; ")}. ${u}${o?`; ${o}`:""}.`),m.button.title=[`${f}:`,...h.map(e=>e.title),...o?[o]:[],u].join("\n");const b=m.button.firstElementChild;b.textContent=g;const y=s.groupDisc(r.stops.length>0,h.every(e=>e.pin.dot),null!=n&&r.keys.includes(n));b.className!==y&&(b.className=y),p.set(i,m)}for(const e of i.hidden)d(ue.current.get(e).button,!1);for(const[e,t]of de.current)p.has(e)||t.marker.remove();de.current=p}if(me.current){const e=r&&i?i.groups.find(e=>e.keys.includes(r)&&e.keys.length>1):void 0,t=r?ue.current.get(r):void 0,n=r?pe.current.get(r):void 0,o=e?{at:ue.current.get(e.keys[0]).pin,width:e.width,height:e.height}:t?{at:t.pin,width:t.button.offsetWidth||(null!=t.pin.stop?R:A),height:t.button.offsetHeight||(null!=t.pin.stop?R:A)}:n?{at:n.mark,width:n.element.offsetWidth||R,height:n.element.offsetHeight||R}:null,a=me.current.getElement();a.style.display=o?"":"none",o&&(me.current.setLngLat([o.at.lng,o.at.lat]),a.style.width=`${o.width+22}px`,a.style.height=`${o.height+22}px`)}},[Le]);i(()=>{if(je(),!U.current)return;const e=new ResizeObserver(()=>je());e.observe(U.current);for(const t of U.current.children)t.contains(Z.current)||e.observe(t);return()=>e.disconnect()}),i(()=>{let e=!1,t=null,n=null,r=()=>{};return(async()=>{try{const o=await B();if(e||!Z.current)return;ne.current=o,t=new o.Map({container:Z.current,style:v[ve],center:F.center,zoom:F.zoom,attributionControl:k?{compact:!0,customAttribution:k}:{compact:!0},dragRotate:!1,pitchWithRotate:!1,touchPitch:!1,maxPitch:0,cooperativeGestures:"coarse"===K?window.matchMedia("(pointer: coarse)").matches:K}),t.touchZoomRotate.disableRotation(),t.keyboard.disableRotation(),t.addControl(new o.NavigationControl({showCompass:!1}),"top-right");const a=document.createElement("div");a.dataset.pinRing="",a.setAttribute("aria-hidden","true"),a.className=Ne.current.looks.ring,a.style.display="none",me.current=new o.Marker({element:a,anchor:"center"}).setLngLat(F.center).addTo(t),t.on("click",e=>{Ne.current.picking&&Ne.current.onPick?.({lat:e.lngLat.lat,lng:e.lngLat.lng})}),t.on("move",je),t.on("moveend",je),t.on("resize",je),t.on("error",e=>console.warn("[map]",e.error?.message)),r=y(Z.current.querySelector(".maplibregl-ctrl-attrib"));const l=t;n=new ResizeObserver(()=>{l.resize(),Me()}),n.observe(Z.current),G.current=t,be(!0)}catch(t){console.error("[map] could not start",t),e||xe(!0)}})(),()=>{e=!0,n?.disconnect(),r(),se.current.forEach(e=>e.remove()),se.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),me.current?.remove(),me.current=null,t?.remove(),G.current=null}},[]);const $e=l(ve);i(()=>{fe&&G.current&&$e.current!==ve&&($e.current=ve,G.current.setStyle(v[ve]))},[fe,ve]),i(()=>{const e=G.current,n=ne.current;if(!fe||!e||!n)return;se.current.forEach(e=>e.remove()),se.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),ue.current.clear(),pe.current.clear();for(const e of he.current.keys())t.some(t=>t.key===e)||he.current.delete(e);const r=Ne.current.strings;for(const o of t){const t=document.createElement("button");t.type="button",t.dataset.pin=o.key,t.className=we.pinButton(o,N);const a=o.approximate?r.approximate(o.label):o.label,l=o.title??(o.approximate?r.approximateTitle(o.label):o.label);t.setAttribute("aria-label",a),t.title=l;const s=document.createElement("span");if(le(s,o.data),o.dot);else if(null!=o.iconNode){const e=he.current.get(o.key);e&&s.append(e)}else o.icon?.length?s.append(ae(o.icon)):s.textContent=null!=o.stop?String(o.stop):o.glyph;if(t.append(s),o.badge){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.className=we.badge(o.badgeTone),e.textContent=o.badge,t.appendChild(e)}t.addEventListener("click",e=>{e.stopPropagation(),Ne.current.onSelect(o.key)}),se.current.push(new n.Marker({element:t,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)),ue.current.set(o.key,{pin:o,button:t,mark:s,name:a,title:l})}for(const t of w??[]){const r=document.createElement("div");r.dataset.mapMark=t.key,le(r,t.data),r.className=we.mark(t),r.textContent=t.text,r.title=t.title??t.label,r.setAttribute("role","img"),r.setAttribute("aria-label",t.label),se.current.push(new n.Marker({element:r,anchor:"center"}).setLngLat([t.lng,t.lat]).addTo(e)),pe.current.set(t.key,{mark:t,element:r})}je()},[fe,t,w,N,je,q]),i(()=>{fe&&je()},[fe,n,$,je]),i(()=>{if(!fe||!n)return;const e=requestAnimationFrame(Me);return()=>cancelAnimationFrame(e)},[fe,n,Me]),i(()=>{const e=G.current,n=ne.current,r=x?[...t,...w??[]].filter(e=>x.includes(e.key)):t;if(!fe||!e||!n||0===r.length)return;const o=r.map(e=>`${e.key}@${e.lat},${e.lng}`).sort().join("|");if(ge.current===o)return;const a=""===ge.current;if(ge.current=o,1===r.length)return void e.jumpTo({center:[r[0].lng,r[0].lat],zoom:13});const l=new n.LngLatBounds([r[0].lng,r[0].lat],[r[0].lng,r[0].lat]);for(const e of r)l.extend([e.lng,e.lat]);e.fitBounds(l,{padding:48,maxZoom:14,animate:!a})},[fe,t,w,x]),i(()=>{const e=G.current;if(!fe||!e)return;const t=(b??[]).filter(e=>e.coordinates.length>=2),n=[...new Set(t.flatMap(e=>e.attribution?[e.attribution]:[]))].join(" · "),r=()=>{const r=function(){const e=document.createElement("span");e.className="text-blue-600",e.style.display="none",document.body.appendChild(e);const t=getComputedStyle(e).color||"#2563eb";return e.remove(),ee(t)}(),o={type:"FeatureCollection",features:t.map(e=>({type:"Feature",properties:{key:e.key,estimate:e.estimate,faded:!!e.faded,color:e.color?Y(e.color):r},geometry:{type:"LineString",coordinates:e.coordinates}}))},a=["case",["get","faded"],.25,.85],l=["get","color"],s=e.getSource(Q);if(s&&(s.attribution||"")!==n){for(const t of X)e.getLayer(t)&&e.removeLayer(t);e.removeSource(Q)}const i=e.getSource(Q);i?i.setData(o):e.addSource(Q,{type:"geojson",data:o,...n?{attribution:n}:{}}),e.getLayer("routes-road")||e.addLayer({id:"routes-road",type:"line",source:Q,filter:["!",["get","estimate"]],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":4,"line-opacity":a}}),e.getLayer("routes-estimate")||e.addLayer({id:"routes-estimate",type:"line",source:Q,filter:["get","estimate"],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":3,"line-dasharray":[1.5,1.5],"line-opacity":a}})},o=()=>{try{r()}catch(e){console.debug("[map] routes wait for the style",e)}};return o(),e.on("style.load",o),e.once("idle",o),()=>{e.off("style.load",o),e.off("idle",o)}},[fe,b,ve]),i(()=>{const e=G.current;if(!fe||!e||!r)return;const n=t.find(e=>e.key===r.key);if(!n)return;const o=e.getZoom(),a=N?P(e.project([n.lng,n.lat]),t.filter(e=>e.key!==n.key).map(t=>e.project([t.lng,t.lat])),o):-1/0,l={center:[n.lng,n.lat],zoom:Math.min(18,Math.max(o,13,a))};re()?e.jumpTo(l):e.flyTo({...l,duration:600})},[fe,r?.n]);const[Ee,Se]=s(!1);i(()=>{const e=U.current;if(!e)return;const t=()=>Se(e.clientWidth<T);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[T]);const Be=n?t.find(e=>e.key===n)??null:null,ze=Be?.key??null,Ae=Be?.lng??0,Re=Be?.lat??0,Te=fe&&!Ee&&null!=z&&!!Be,[We,Oe]=s(null);i(()=>{const e=G.current,t=ne.current;if(!(Te&&e&&t&&ze))return;const n=document.createElement("div");n.dataset.mapCard="",n.className=Ne.current.looks.cardFloating;const r=new t.Popup({anchor:"bottom",offset:C,className:"rosh-map-card",maxWidth:"none",closeButton:!1,closeOnClick:!1,closeOnMove:!1,focusAfterOpen:!1}).setLngLat([Ae,Re]).setDOMContent(n).addTo(e),o=r.getElement(),a=o.querySelector(".maplibregl-popup-content");a&&Object.assign(a.style,{padding:"0",background:"transparent",borderRadius:"0",boxShadow:"none"});const l=o.querySelector(".maplibregl-popup-tip"),s=Ne.current.looks===V.site?"var(--rosh-map-pin, #111)":"var(--color-gray-600, #4b5563)";l&&Object.assign(l.style,{borderTopColor:s,borderBottomColor:s}),Oe(n);let i=!1,c=!1;const u=(t=!0)=>{if(c)return;if(e.isMoving())return void(i||(i=!0,e.once("moveend",()=>{i=!1,u()})));const{clientWidth:o,clientHeight:a}=e.getContainer(),l=function(e,t){const n=e.getBoundingClientRect().top,r=[...e.querySelectorAll(".maplibregl-ctrl-top-left > *, .maplibregl-ctrl-top-right > *"),...t?.querySelectorAll(":scope > [data-map-control]")??[]];let o=0;for(const e of r){const t=e.getBoundingClientRect();t.height>0&&(o=Math.max(o,t.bottom-n))}return o}(e.getContainer(),U.current)+8,s=`${L(a,l)}px`;n.style.maxHeight!==s&&(n.style.maxHeight=s);const d=r.getElement(),p=r.getLngLat(),{anchor:m,move:h}=j(e.project(p),{width:d.offsetWidth,height:d.offsetHeight},{width:o,height:a},l);r.options.anchor!==m&&(r.options.anchor=m,r.setLngLat(p)),!t||0===h.x&&0===h.y||e.panBy([-h.x,-h.y],{duration:re()?0:250}),je()},d=new ResizeObserver(()=>u());d.observe(n);const p=()=>u(),m=()=>{i||u(!1)};e.on("resize",p),e.on("moveend",m);let h=!1;const g=ue.current,f=e=>{h=n.contains(e.target)};return document.addEventListener("focusin",f),()=>{if(c=!0,d.disconnect(),e.off("resize",p),e.off("moveend",m),document.removeEventListener("focusin",f),r.remove(),Oe(null),h&&(!document.activeElement||document.activeElement===document.body)){const e=g.get(ze)?.button;e&&"none"!==e.style.display&&e.focus({preventScroll:!0})}}},[Te,ze,Ae,Re,je]);const Fe=O?.active??!1,Ke=l(O?.onChange);i(()=>{Ke.current=O?.onChange}),i(()=>{if(!O)return;const e=document.documentElement;Fe&&!document.fullscreenElement&&e.requestFullscreen&&e.requestFullscreen().catch(()=>{}),!Fe&&document.fullscreenElement&&document.exitFullscreen().catch(()=>{})},[Fe]);const qe=!!O;return i(()=>{if(!qe)return;const e=()=>{document.fullscreenElement||Ke.current?.(!1)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[qe]),/* @__PURE__ */m("div",{ref:U,className:oe(we.frame(E),g),children:[
3
- /* @__PURE__ */h("div",{className:we.fill,children:/* @__PURE__ */h("div",{ref:Z,className:we.box,role:"region","aria-label":u})}),ye&&/* @__PURE__ */h("p",{className:we.failed,children:J.failed}),O&&/* @__PURE__ */h(e,{"data-map-control":"",variant:"secondary",size:"sm",className:"absolute left-3 top-3 z-10",onClick:()=>O.onChange(!O.active),leftIcon:/* @__PURE__ */h(ce,{leave:O.active}),children:O.active?J.leaveFullScreen:J.fullScreen}),f,null!=z&&!Te&&/* @__PURE__ */h("div",{"data-map-card":"",className:we.cardInline,children:z}),Te&&We?p(z,We):null,fe&&/* @__PURE__ */h(ie,{pins:t,hosts:he.current,hostClass:we.iconHost})]})}function ie({pins:e,hosts:t,hostClass:n}){/* @__PURE__ */
4
- return h(g,{children:e.map(e=>{if(null==e.iconNode||e.dot)return null;let r=t.get(e.key);return r||(r=document.createElement("span"),r.className=n,t.set(e.key,r)),p(e.iconNode,r,e.key)})})}function ce({leave:e}){/* @__PURE__ */
5
- return h(t,e?{name:"collapse","aria-hidden":"true",className:"h-4 w-4",strokeWidth:2}:{name:"expand","aria-hidden":"true",className:"h-4 w-4",strokeWidth:2})}function ue(){const[e,t]=s(null);return{highlightKey:e,pointAt:c(e=>{const n=()=>t(e),r=()=>t(t=>t===e?null:t);return{onMouseEnter:n,onMouseLeave:r,onFocus:n,onBlur:r}},[])}}var de=3e3,pe=e=>!!e?.pending&&3e3,me=e=>`${e.kind}:${e.id}`,he=e=>("located"===e.placement||"approximate"===e.placement)&&null!=e.lat&&null!=e.lng;function ge(e){switch(e){case"located":return null;case"approximate":return"Approximate: only the suburb or postcode matched";case"pending":return"Locating";case"not_found":return"Not on the map: address not found";case"failed":return"Not on the map: the map service could not be reached";case"no_address":return"Not on the map: no city or postcode"}}var fe={importer:{label:"Importer",tone:"bg-sky-600 text-white"},dealer:{label:"Dealer",tone:"bg-purple-600 text-white"},retail:{label:"Retail",tone:"bg-green-600 text-white"},supplier:{label:"Supplier",tone:"bg-sky-600 text-white"},delivery_location:{label:"Delivery location",tone:"bg-amber-600 text-white"},warehouse:{label:"Warehouse",tone:"bg-amber-600 text-white"}},be=["importer","dealer","retail","supplier","delivery_location","warehouse"];function ye(e){return"supplier"===e.kind?"supplier":"customer"===e.kind?e.category||"importer":e.kind}var xe=(e,t=fe)=>t[e]?.tone??"bg-gray-700 text-white",ke=(e,t=fe)=>t[e]?.label??e,ve=(e,t)=>xe(ye(e),t);function we(e,t,n=fe){return null!=t?String(t):(n[ye(e)]?.label??"").charAt(0).toUpperCase()}var Ne=["delivery_location","warehouse"];function Me(e,t=Ne){const n=/* @__PURE__ */new Map;let r=0;for(const o of e)t.includes(o.kind)&&n.set(me(o),++r);return n}function Ce(e){const t={onMap:0,approximate:0,pending:0,off:0};for(const n of e)he(n)?(t.onMap+=1,"approximate"===n.placement&&(t.approximate+=1)):"pending"===n.placement?t.pending+=1:t.off+=1;return t}function Le(e){const t=[`${e.onMap} on the map`];return e.approximate&&t.push(`${e.approximate} approximate`),e.pending&&t.push(`${e.pending} locating`),e.off&&t.push(`${e.off} not on the map`),t.join(" · ")}function je(e){const t=[...new Set(e.filter(he).map(ye))];return[...be.filter(e=>t.includes(e)),...t.filter(e=>!be.includes(e))]}function $e(e,t){return e.filter(e=>!he(e)&&"pending"!==e.placement).map(e=>{const n=t?.get(me(e)),r=ge(e.placement)?.replace(/^Not on the map: /,"")??"";return{key:me(e),text:`${null!=n?`${n}. `:""}${e.label}: ${r}`}})}function Ee({categories:e,palette:t=fe,floating:n=!0}){return e.length<2?null:/* @__PURE__ */h("div",{className:(n?"absolute left-3 top-3 z-10 ":"")+"flex flex-wrap gap-x-3 gap-y-1 rounded-lg border border-line bg-surface px-3 py-2 text-xs text-gray-600 shadow-sm",children:e.map(e=>/* @__PURE__ */m("span",{className:"inline-flex items-center gap-2",children:[
6
- /* @__PURE__ */h("span",{"aria-hidden":!0,className:`h-2.5 w-2.5 rounded-full ${xe(e,t)}`}),ke(e,t)]},e))})}function Se({point:n,number:r,onOpen:o,onClose:l,palette:s=fe}){const i=ge(n.placement),c=ye(n),u=a().map;/* @__PURE__ */
7
- return m("section",{"aria-label":u.chosen(n.label),className:"absolute bottom-3 left-3 right-3 z-10 max-w-md space-y-2 rounded-lg border border-line bg-surface p-3 shadow-(--elevation-panel)",children:[
8
- /* @__PURE__ */m("div",{className:"flex items-start justify-between gap-2",children:[
9
- /* @__PURE__ */m("div",{className:"min-w-0",children:[
10
- /* @__PURE__ */m("h3",{className:"text-sm font-semibold text-gray-900 [overflow-wrap:anywhere]",children:[null!=r&&/* @__PURE__ */m("span",{className:"mr-1 text-gray-400",children:[r,"."]}),n.label,n.code&&/* @__PURE__ */h("span",{className:"ml-2 text-xs font-normal text-ink-faintest",children:n.code})]}),
11
- /* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:s[c]?ke(c,s):n.category})]}),
12
- /* @__PURE__ */h("button",{type:"button",onClick:l,"aria-label":u.closeCard,className:"rounded p-0.5 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */h(t,{name:"close","aria-hidden":!0,className:"h-4 w-4",strokeWidth:2})})]}),
13
- /* @__PURE__ */h("p",{className:"text-sm text-gray-700 [overflow-wrap:anywhere]",children:n.address||"—"}),i&&/* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:i}),n.matched&&"approximate"===n.placement&&/* @__PURE__ */m("p",{className:"text-xs text-gray-400 [overflow-wrap:anywhere]",children:["Placed at: ",n.matched]}),o&&/* @__PURE__ */h("div",{className:"flex justify-end",children:/* @__PURE__ */h(e,{variant:"secondary",size:"sm",onClick:o,children:u.openRecord})})]})}function Be(e,t,{staleTime:n}={}){return f({queryKey:e,queryFn:t,staleTime:n,refetchInterval:e=>pe(e.state.data)})}function ze({queryKey:e,queryFn:t,refreshSignal:r,onOpen:o,ariaLabel:a,title:c="Locations",palette:d=fe,numbers:p,className:g="",mapClassName:f="min-h-[240px] flex-1"}){const{data:b,isError:y,refetch:x}=Be(e,t,{staleTime:0}),k=l(!1);i(()=>{k.current?x():k.current=!0},[r]);const[v,w]=s(null),N=u(()=>b?.points??[],[b]),M=u(()=>p??Me(N),[p,N]),C=u(()=>N.filter(he).map(e=>({key:me(e),label:e.label,lat:e.lat,lng:e.lng,glyph:we(e,M.get(me(e))??null,d),tone:ve(e,d),approximate:"approximate"===e.placement})),[N,M,d]),L=u(()=>$e(N,M),[N,M]),j=u(()=>je(N),[N]),$=b?.pending??0,E=N.find(e=>me(e)===v)??null,S=E&&o?o(E):null;/* @__PURE__ */
14
- return m("section",{"aria-label":c,className:`flex min-w-0 flex-col ${g}`,children:[
15
- /* @__PURE__ */m("div",{className:"flex min-h-[30px] items-center justify-between mb-2",children:[
16
- /* @__PURE__ */h("h3",{className:"text-sm font-semibold text-gray-900",children:c}),b&&/* @__PURE__ */h("span",{className:"text-xs text-gray-500",children:Le(Ce(N))})]}),
17
- /* @__PURE__ */m(se,{pins:C,selectedKey:v,focus:null,onSelect:w,ariaLabel:a,className:f,children:[
18
- /* @__PURE__ */m("div",{className:"absolute left-3 top-3 z-10 flex max-w-[70%] flex-col items-start gap-2",children:[
19
- /* @__PURE__ */h(Ee,{categories:j,palette:d,floating:!1}),y&&/* @__PURE__ */m("div",{className:"flex items-center gap-2 rounded-lg border border-line bg-surface px-3 min-h-8 py-1 text-xs text-gray-600 shadow-sm",children:["Couldn’t load the locations.",
20
- /* @__PURE__ */h("button",{type:"button",onClick:()=>{x()},className:"font-medium text-blue-600 hover:text-blue-800 hover:underline",children:"Try again"})]}),!y&&($>0||L.length>0)&&/* @__PURE__ */m("div",{className:"max-w-full space-y-0.5 rounded-lg border border-line bg-surface px-3 py-2 text-xs shadow-sm","aria-live":"polite",children:[$>0&&/* @__PURE__ */m("p",{className:"flex items-center gap-2 text-ink-faint",children:[
21
- /* @__PURE__ */h(n,{}),"Locating ",$," address",1===$?"":"es"]}),L.slice(0,3).map(e=>/* @__PURE__ */h("p",{className:"truncate text-amber-700",title:e.text,children:e.text},e.key)),L.length>3&&/* @__PURE__ */m("p",{className:"text-gray-500",children:["+",L.length-3," more not on the map"]})]})]}),E&&/* @__PURE__ */h(Se,{point:E,number:M.get(me(E))??null,onOpen:S,onClose:()=>w(null),palette:d})]})]})}export{M as CARD_MIN_MAP_WIDTH,b as COMPACT_SHOW,se as EntityMap,ze as LocationsMap,$ as MAPLIBRE_WORKER_FILE,T as MAP_APART_PX,fe as MAP_CATEGORIES,k as MAP_CSP_SOURCES,V as MAP_LOOKS,R as MAP_STOP_PX,v as MAP_STYLE_URLS,A as MAP_TARGET_PX,x as MAP_TILE_ORIGIN,Ee as MapLegend,de as PENDING_POLL_MS,Ne as SECONDARY_KINDS,Se as SelectedCard,L as cardMaxHeight,ke as categoryLabel,xe as categoryTone,y as foldAttributionOnce,he as isOnMap,_ as layoutPins,je as legendCategories,B as loadMapLibre,Me as locationNumbers,E as mapLibreWorkerUrl,pe as mapPointsRefetchInterval,$e as offMapNotes,ye as pinCategory,we as pinGlyph,ve as pinTone,j as placeCard,ge as placementNote,me as pointKey,W as stopsLabel,Ce as summarize,Le as summaryText,ue as useMapHighlight,Be as useMapPoints,P as zoomApart};
2
+ import{useRootIsDark as e}from"../chunk-5XKCOKYJ.js";import{Button_default as t}from"../chunk-NGRTW6Y7.js";import"../chunk-UQYNPYF4.js";import"../chunk-WJ6ZJVAX.js";import{Icon as n}from"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import{SpinnerRing as r}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import{useShellStrings as o}from"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";import{useRef as a,useState as l,useEffect as s,useCallback as i,useMemo as c}from"react";import{createPortal as u}from"react-dom";import{jsxs as d,jsx as p,Fragment as m}from"react/jsx-runtime";import{useQuery as h}from"@tanstack/react-query";var g="maplibregl-compact-show";function f(e){if(!e)return()=>{};const t=()=>!!e.classList.contains(g)&&(e.classList.remove(g),!0);if(t())return()=>{};const n=new MutationObserver(()=>{t()&&n.disconnect()});return n.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()}var b="https://tiles.openfreemap.org",y={connect:[b]},x={light:`${b}/styles/positron`,dark:`${b}/styles/dark`},k=20,v=12,w=480,N={center:[0,0],left:[k,0],right:[-20,0],top:[0,k],"top-left":[0,k],"top-right":[0,k],bottom:[0,-20],"bottom-left":[0,-20],"bottom-right":[0,-20]},M=(e,t=12)=>Math.max(0,Math.floor(e-t-v-k-10-16));function C(e,t,n,r=12){const o=e.y-k-r,a=n.height-e.y-k-v,l=t.height<=o||t.height>a&&o>=a,s=l?Math.max(0,t.height-o):-Math.max(0,t.height-a);let i="",c=0;return e.x-t.width/2<v?(i="-left",c=Math.max(0,v-e.x)):e.x+t.width/2>n.width-v&&(i="-right",c=-Math.max(0,e.x-(n.width-v))),{anchor:`${l?"bottom":"top"}${i}`,move:{x:c,y:s}}}var L="maplibre-gl-worker.mjs",j=e=>`/maplibre-gl/${e}/${L}`,$=null;function E(){return $??=Promise.all([import("maplibre-gl"),import("maplibre-gl/dist/maplibre-gl.css")]).then(([e])=>(e.setWorkerUrl(j(e.getVersion())),e)).catch(e=>{throw $=null,e}),$}var S=null;var B=24,A=28,z=29;function R(e){const t=[...e].sort((e,t)=>e-t),n=[];for(let e=0;e<t.length;){let r=e;for(;r+1<t.length&&t[r+1]===t[r]+1;)r++;n.push(r===e?String(t[e]):`${t[e]}–${t[r]}`),e=r+1}return n.join(", ")}function T(e){const t=Math.max(A,12+8*e.length);return t+t%2}var W=(e,t,n,r)=>({left:e-n/2,top:t-r/2,right:e+n/2,bottom:t+r/2});function O(e,t){return e.left<t.right+1&&t.left<e.right+1&&e.top<t.bottom+1&&t.top<e.bottom+1}var K=e=>W(e.x,e.y,e.width,e.height);function F(e){for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++)if(O(K(e[t]),K(e[n])))return[e[t],e[n]];return null}function q(e,t=[]){const n=[],r=e=>t.some(t=>O(t,e));let o=e.filter(e=>null!==e.stop).sort((e,t)=>e.stop-t.stop).map(e=>({keys:[e.key],stops:[e.stop],x:e.x,y:e.y,width:A,height:A,under:0}));for(let e=F(o);e;e=F(o)){const[t,n]=e;t.keys.push(...n.keys),t.stops.push(...n.stops),t.stops.sort((e,t)=>e-t),t.width=T(R(t.stops)),o=o.filter(e=>e!==n)}o=o.filter(e=>!r(K(e))||(n.push(...e.keys),!1));const a=[];for(const t of e){if(null!==t.stop)continue;const e=W(t.x,t.y,B,B),l=o.find(t=>O(K(t),e));if(l||r(e)){n.push(t.key),l&&l.under++;continue}const s=a.find(t=>O(K(t),e));s?s.keys.push(t.key):a.push({keys:[t.key],stops:[],x:t.x,y:t.y,width:B,height:B,under:0})}return{groups:[...o,...a],hidden:n}}function _(e,t,n){let r=-1/0;for(const o of t){const t=Math.max(Math.abs(o.x-e.x),Math.abs(o.y-e.y));r=Math.max(r,0===t?1/0:n+Math.log2(29/t))}return r}var H=(...e)=>e.filter(Boolean).join(" "),P=/^(?:\d+|[xytrblse](?:-\d+)?|solid|dashed|dotted|double|hidden|none)$/;function D(e){return e.split(/\s+/).some(e=>{const t=e.search(/[[(]/),n=t<0?e:e.slice(0,t),r=e.slice(n.lastIndexOf(":")+1);return r.startsWith("border-")&&!P.test(r.slice(7))})}var I="ring-2 ring-gray-900 ring-offset-2",J={portal:{frame:e=>H("relative min-h-72 overflow-hidden rounded-lg border border-line bg-gray-100",e&&"[&_canvas]:cursor-crosshair"),fill:"absolute inset-0",box:"h-full w-full",failed:"absolute inset-0 grid place-items-center p-6 text-center text-sm text-ink-faint",cardInline:"absolute bottom-3 left-3 right-3 z-10 max-h-[calc(100%-1.5rem)] max-w-md overflow-y-auto overscroll-contain",cardFloating:"w-[26rem] overflow-y-auto overscroll-contain",ring:"pointer-events-none rounded-full border-2 border-gray-900 bg-gray-900/15 shadow-[0_0_0_2px_var(--color-white,#fff)]",pinButton:(e,t)=>H("relative grid place-items-center rounded-full cursor-pointer",t&&(null!=e.stop?"h-7 w-7":"h-6 w-6")),pinMark:(e,t,n,r)=>{const o=t&&!r&&null==e.stop&&!e.dot;return H("grid place-items-center rounded-full border-2 font-semibold leading-none shadow-sm transition-transform motion-reduce:transition-none",!D(e.tone)&&"border-white",e.tone,e.dot?"h-4 w-4 opacity-80":null!=e.stop?"h-7 w-7 text-xs ring-2 ring-gray-900":o?"h-8 w-8 text-xs [&_svg]:h-4 [&_svg]:w-4":"h-6 w-6 text-2xs [&_svg]:h-3.5 [&_svg]:w-3.5",t&&(o?"ring-2 ring-gray-900 ring-offset-1":I),e.approximate&&"border-dashed opacity-80",e.faded&&!t&&"opacity-40",n&&"scale-125 opacity-100")},mark:e=>H("grid place-items-center border-2 px-0.5 text-xs font-semibold leading-none shadow-sm",e.stop?"h-7 min-w-7":"h-6 min-w-6",!D(e.tone??"")&&"border-white",e.tone??"bg-gray-900 text-on-accent"),groupButton:"grid place-items-center rounded-full cursor-pointer",groupDisc:(e,t,n)=>H("grid place-items-center rounded-full border-2 border-gray-700 bg-surface font-semibold leading-none text-ink-strongest shadow-sm",e?"h-7 w-full px-1 text-xs ring-2 ring-gray-900":t?"h-5 w-5 text-3xs":"h-6 w-6 text-2xs",n&&I),badge:e=>H("absolute -right-2 -top-2 grid h-4 min-w-4 place-items-center rounded-full px-0.5 text-3xs font-semibold leading-none shadow",e??"bg-surface text-ink-strongest"),iconHost:"contents"},site:{frame:e=>H("rosh-map-frame",e&&"rosh-map-frame--picking"),fill:"rosh-map-fill",box:"rosh-map-box",failed:"rosh-map-failed",cardInline:"rosh-map-card-inline",cardFloating:"rosh-map-card-floating",ring:"rosh-map-ring",pinButton:(e,t)=>H("rosh-map-target",t&&(null!=e.stop?"rosh-map-target--stop":"rosh-map-target--sized")),pinMark:(e,t,n,r)=>H("rosh-map-pin",e.dot?"rosh-map-pin--dot":null!=e.stop?"rosh-map-pin--stop":null,t&&!r&&null==e.stop&&!e.dot&&"rosh-map-pin--grown",t&&"rosh-map-pin--chosen",e.approximate&&"rosh-map-pin--approximate",e.faded&&!t&&"rosh-map-pin--faded",n&&"rosh-map-pin--pointed"),mark:e=>H("rosh-map-mark",e.stop&&"rosh-map-mark--stop"),groupButton:"rosh-map-target",groupDisc:(e,t,n)=>H("rosh-map-group",e?"rosh-map-group--stops":t?"rosh-map-group--dots":null,n&&"rosh-map-group--chosen"),badge:()=>"rosh-map-badge",iconHost:"rosh-map-icon",sheet:function(){return S??=import("efficient-shell/map-site.css").catch(e=>{throw S=null,e}),S}}},Z="routes",G=["routes-road","routes-estimate"];function U(e){const t=document.createElement("span");t.style.display="none",t.style.color=e,document.body.appendChild(t);const n=getComputedStyle(t).color||"#2563eb";return t.remove(),Q(n)}function Q(e){const t=document.createElement("canvas").getContext("2d");if(!t)return"#2563eb";t.fillStyle="#2563eb",t.fillStyle=e,t.fillRect(0,0,1,1);const[n,r,o]=t.getImageData(0,0,1,1).data;return`rgb(${n}, ${r}, ${o})`}var V={center:[30,20],zoom:1};var X="http://www.w3.org/2000/svg",Y=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,ee=(...e)=>e.filter(Boolean).join(" ");function te(e){const t=document.createElementNS(X,"svg");t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none"),t.setAttribute("stroke","currentColor"),t.setAttribute("stroke-width","2"),t.setAttribute("aria-hidden","true");for(const n of e){const e=document.createElementNS(X,"path");e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("d",n),t.appendChild(e)}return t}function ne(e,t){for(const[n,r]of Object.entries(t??{}))e.dataset[n]=r}function re({pins:n,selectedKey:r,focus:c,onSelect:m,ariaLabel:h,className:g="",children:b,routes:y,fitTo:k,attribution:v,marks:w,groupCrowded:L=!1,noun:j,highlightKey:$=null,picking:S=!1,onPick:z,card:T,cardMinMapWidth:W=480,fullScreen:O,initialView:K=V,cooperativeGestures:F=!1,look:H="portal",theme:P}){const D=o().map,I=a(null),X=a(null),re=a(null),le=a(null),se=a([]),ie=a(/* @__PURE__ */new Map),ce=a(/* @__PURE__ */new Map),ue=a(/* @__PURE__ */new Map),de=a(null),pe=a(/* @__PURE__ */new Map),me=a(""),[he,ge]=l(!1),[fe,be]=l(!1),ye=e(),xe=P??(ye?"dark":"light"),ke=J[H],ve=a({onSelect:m,onPick:z,picking:S,pins:n,selectedKey:r,highlightKey:$,groupCrowded:L,strings:D,noun:j,looks:ke});s(()=>{ve.current={onSelect:m,onPick:z,picking:S,pins:n,selectedKey:r,highlightKey:$,groupCrowded:L,strings:D,noun:j,looks:ke}}),s(()=>{ke.sheet?.().catch(e=>console.warn("[map] could not load the look's stylesheet",e))},[ke]);const we=i(()=>{const e=re.current,{pins:t,selectedKey:n}=ve.current,r=n?t.find(e=>e.key===n):void 0;e&&r&&!e.getBounds().contains([r.lng,r.lat])&&e.easeTo({center:[r.lng,r.lat],duration:Y()?0:400})},[]),Ne=a(!1),Me=i((e,t)=>{const n=re.current,r=le.current;if(!n||!r)return;const o=n.getZoom();if(o>=17.5){const t=e.indexOf(ve.current.selectedKey??"");return void ve.current.onSelect(e[(t+1)%e.length])}const a=e.map(e=>ie.current.get(e).pin),l=new r.LngLatBounds([a[0].lng,a[0].lat],[a[0].lng,a[0].lat]);for(const e of a)l.extend([e.lng,e.lat]);const s=a.map(e=>n.project([e.lng,e.lat])),i=Math.max(...s.map((e,t)=>_(e,s.filter((e,n)=>n!==t),o))),{clientWidth:c,clientHeight:u}=n.getContainer(),d=n.cameraForBounds(l,{padding:Math.min(64,c/4,u/4)})?.zoom??18,p=document.activeElement===t;Ne.current=!0,n.once("moveend",()=>{if(Ne.current=!1,!p)return;const e=a[0].key,t=ie.current.get(e)?.button,n=t&&"none"!==t.style.display?t:[...ce.current.values()].find(t=>t.keys.includes(e))?.button;n?.focus({preventScroll:!0})}),n.easeTo({center:l.getCenter(),zoom:Math.min(18,Math.max(o+1,Math.min(d,i))),duration:Y()?0:600})},[]),Ce=i(()=>{const e=re.current,t=le.current;if(!e||!t||!I.current||Ne.current&&e.isMoving())return;const{selectedKey:n,highlightKey:r,groupCrowded:o,strings:a,noun:l,looks:s}=ve.current;for(const[e,t]of ie.current){const a=s.pinMark(t.pin,e===n,e===r,o);t.mark.className!==a&&(t.mark.className=a);const l=e===n?"1":"";t.button.style.zIndex!==l&&(t.button.style.zIndex=l)}let i=null;if(o){const r=e.getContainer().getBoundingClientRect(),o=[...I.current.querySelectorAll("a[href], button, input, select, textarea, summary, [role='button'], [tabindex]:not([tabindex='-1'])")].filter(e=>!e.closest("[data-pin], [data-pin-group], .maplibregl-canvas")).map(e=>{const t=e.getBoundingClientRect(),n=e.closest("[data-map-card]")?.getBoundingClientRect()??t;return{left:Math.max(t.left,n.left)-r.left,top:Math.max(t.top,n.top)-r.top,right:Math.min(t.right,n.right)-r.left,bottom:Math.min(t.bottom,n.bottom)-r.top}}).filter(e=>e.right>e.left&&e.bottom>e.top);i=q([...ie.current.values()].map(({pin:t})=>{const n=e.project([t.lng,t.lat]);return{key:t.key,x:n.x,y:n.y,stop:t.stop??null}}),o);const c=e=>(l??a.places)(e),u=e.getZoom()<17.5?a.spread:a.cycle,d=(e,t)=>{const n=t?"":"none";e.style.display!==n&&(e.style.display=n)},p=/* @__PURE__ */new Map;for(const r of i.groups){const o=r.under>0?a.closeBy(r.under,c(r.under)):null,l=1===r.keys.length?ie.current.get(r.keys[0]):null;if(l){d(l.button,!0),l.button.setAttribute("aria-label",o?`${l.name}; ${o}`:l.name),l.button.title=o?`${l.title}\n${o}`:l.title;continue}for(const e of r.keys)d(ie.current.get(e).button,!1);const i=r.keys.join(" ");let m=ce.current.get(i);if(!m){const n=document.createElement("button");n.type="button",n.dataset.pinGroup="",n.className=s.groupButton,n.append(document.createElement("span"));const o=ie.current.get(r.keys[0]).pin,a={button:n,keys:r.keys,marker:new t.Marker({element:n,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)};n.addEventListener("click",e=>{e.stopPropagation(),Me(a.keys,n)}),m=a}m.keys=r.keys;const h=r.keys.map(e=>ie.current.get(e)),g=r.stops.length>0?R(r.stops):String(h.length),f=r.stops.length>0?a.stops(g):a.group(h.length,c(h.length));m.button.style.width=`${r.width}px`,m.button.style.height=`${r.height}px`,m.button.setAttribute("aria-label",`${f}: ${h.map(e=>e.pin.label).join("; ")}. ${u}${o?`; ${o}`:""}.`),m.button.title=[`${f}:`,...h.map(e=>e.title),...o?[o]:[],u].join("\n");const b=m.button.firstElementChild;b.textContent=g;const y=s.groupDisc(r.stops.length>0,h.every(e=>e.pin.dot),null!=n&&r.keys.includes(n));b.className!==y&&(b.className=y),p.set(i,m)}for(const e of i.hidden)d(ie.current.get(e).button,!1);for(const[e,t]of ce.current)p.has(e)||t.marker.remove();ce.current=p}if(de.current){const e=r&&i?i.groups.find(e=>e.keys.includes(r)&&e.keys.length>1):void 0,t=r?ie.current.get(r):void 0,n=r?ue.current.get(r):void 0,o=e?{at:ie.current.get(e.keys[0]).pin,width:e.width,height:e.height}:t?{at:t.pin,width:t.button.offsetWidth||(null!=t.pin.stop?A:B),height:t.button.offsetHeight||(null!=t.pin.stop?A:B)}:n?{at:n.mark,width:n.element.offsetWidth||A,height:n.element.offsetHeight||A}:null,a=de.current.getElement();a.style.display=o?"":"none",o&&(de.current.setLngLat([o.at.lng,o.at.lat]),a.style.width=`${o.width+22}px`,a.style.height=`${o.height+22}px`)}},[Me]);s(()=>{if(Ce(),!I.current)return;const e=new ResizeObserver(()=>Ce());e.observe(I.current);for(const t of I.current.children)t.contains(X.current)||e.observe(t);return()=>e.disconnect()}),s(()=>{let e=!1,t=null,n=null,r=()=>{};return(async()=>{try{const o=await E();if(e||!X.current)return;le.current=o,t=new o.Map({container:X.current,style:x[xe],center:K.center,zoom:K.zoom,attributionControl:v?{compact:!0,customAttribution:v}:{compact:!0},dragRotate:!1,pitchWithRotate:!1,touchPitch:!1,maxPitch:0,cooperativeGestures:"coarse"===F?window.matchMedia("(pointer: coarse)").matches:F}),t.touchZoomRotate.disableRotation(),t.keyboard.disableRotation(),t.addControl(new o.NavigationControl({showCompass:!1}),"top-right");const a=document.createElement("div");a.dataset.pinRing="",a.setAttribute("aria-hidden","true"),a.className=ve.current.looks.ring,a.style.display="none",de.current=new o.Marker({element:a,anchor:"center"}).setLngLat(K.center).addTo(t),t.on("click",e=>{ve.current.picking&&ve.current.onPick?.({lat:e.lngLat.lat,lng:e.lngLat.lng})}),t.on("move",Ce),t.on("moveend",Ce),t.on("resize",Ce),t.on("error",e=>console.warn("[map]",e.error?.message)),r=f(X.current.querySelector(".maplibregl-ctrl-attrib"));const l=t;n=new ResizeObserver(()=>{l.resize(),we()}),n.observe(X.current),re.current=t,ge(!0)}catch(t){console.error("[map] could not start",t),e||be(!0)}})(),()=>{e=!0,n?.disconnect(),r(),se.current.forEach(e=>e.remove()),se.current=[],ce.current.forEach(e=>e.marker.remove()),ce.current.clear(),de.current?.remove(),de.current=null,t?.remove(),re.current=null}},[]);const Le=a(xe);s(()=>{he&&re.current&&Le.current!==xe&&(Le.current=xe,re.current.setStyle(x[xe]))},[he,xe]),s(()=>{const e=re.current,t=le.current;if(!he||!e||!t)return;se.current.forEach(e=>e.remove()),se.current=[],ce.current.forEach(e=>e.marker.remove()),ce.current.clear(),ie.current.clear(),ue.current.clear();for(const e of pe.current.keys())n.some(t=>t.key===e)||pe.current.delete(e);const r=ve.current.strings;for(const o of n){const n=document.createElement("button");n.type="button",n.dataset.pin=o.key,n.className=ke.pinButton(o,L);const a=o.approximate?r.approximate(o.label):o.label,l=o.title??(o.approximate?r.approximateTitle(o.label):o.label);n.setAttribute("aria-label",a),n.title=l;const s=document.createElement("span");if(ne(s,o.data),o.dot);else if(null!=o.iconNode){const e=pe.current.get(o.key);e&&s.append(e)}else o.icon?.length?s.append(te(o.icon)):s.textContent=null!=o.stop?String(o.stop):o.glyph;if(n.append(s),o.badge){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.className=ke.badge(o.badgeTone),e.textContent=o.badge,n.appendChild(e)}n.addEventListener("click",e=>{e.stopPropagation(),ve.current.onSelect(o.key)}),se.current.push(new t.Marker({element:n,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)),ie.current.set(o.key,{pin:o,button:n,mark:s,name:a,title:l})}for(const n of w??[]){const r=document.createElement("div");r.dataset.mapMark=n.key,ne(r,n.data),r.className=ke.mark(n),r.textContent=n.text,r.title=n.title??n.label,r.setAttribute("role","img"),r.setAttribute("aria-label",n.label),se.current.push(new t.Marker({element:r,anchor:"center"}).setLngLat([n.lng,n.lat]).addTo(e)),ue.current.set(n.key,{mark:n,element:r})}Ce()},[he,n,w,L,Ce,H]),s(()=>{he&&Ce()},[he,r,$,Ce]),s(()=>{if(!he||!r)return;const e=requestAnimationFrame(we);return()=>cancelAnimationFrame(e)},[he,r,we]),s(()=>{const e=re.current,t=le.current,r=k?[...n,...w??[]].filter(e=>k.includes(e.key)):n;if(!he||!e||!t||0===r.length)return;const o=r.map(e=>`${e.key}@${e.lat},${e.lng}`).sort().join("|");if(me.current===o)return;const a=""===me.current;if(me.current=o,1===r.length)return void e.jumpTo({center:[r[0].lng,r[0].lat],zoom:13});const l=new t.LngLatBounds([r[0].lng,r[0].lat],[r[0].lng,r[0].lat]);for(const e of r)l.extend([e.lng,e.lat]);e.fitBounds(l,{padding:48,maxZoom:14,animate:!a})},[he,n,w,k]),s(()=>{const e=re.current;if(!he||!e)return;const t=(y??[]).filter(e=>e.coordinates.length>=2),n=[...new Set(t.flatMap(e=>e.attribution?[e.attribution]:[]))].join(" · "),r=()=>{const r=function(){const e=document.createElement("span");e.className="text-blue-600",e.style.display="none",document.body.appendChild(e);const t=getComputedStyle(e).color||"#2563eb";return e.remove(),Q(t)}(),o={type:"FeatureCollection",features:t.map(e=>({type:"Feature",properties:{key:e.key,estimate:e.estimate,faded:!!e.faded,color:e.color?U(e.color):r},geometry:{type:"LineString",coordinates:e.coordinates}}))},a=["case",["get","faded"],.25,.85],l=["get","color"],s=e.getSource(Z);if(s&&(s.attribution||"")!==n){for(const t of G)e.getLayer(t)&&e.removeLayer(t);e.removeSource(Z)}const i=e.getSource(Z);i?i.setData(o):e.addSource(Z,{type:"geojson",data:o,...n?{attribution:n}:{}}),e.getLayer("routes-road")||e.addLayer({id:"routes-road",type:"line",source:Z,filter:["!",["get","estimate"]],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":4,"line-opacity":a}}),e.getLayer("routes-estimate")||e.addLayer({id:"routes-estimate",type:"line",source:Z,filter:["get","estimate"],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":3,"line-dasharray":[1.5,1.5],"line-opacity":a}})},o=()=>{try{r()}catch(e){console.debug("[map] routes wait for the style",e)}};return o(),e.on("style.load",o),e.once("idle",o),()=>{e.off("style.load",o),e.off("idle",o)}},[he,y,xe]),s(()=>{const e=re.current;if(!he||!e||!c)return;const t=n.find(e=>e.key===c.key);if(!t)return;const r=e.getZoom(),o=L?_(e.project([t.lng,t.lat]),n.filter(e=>e.key!==t.key).map(t=>e.project([t.lng,t.lat])),r):-1/0,a={center:[t.lng,t.lat],zoom:Math.min(18,Math.max(r,13,o))};Y()?e.jumpTo(a):e.flyTo({...a,duration:600})},[he,c?.n]);const[je,$e]=l(!1);s(()=>{const e=I.current;if(!e)return;const t=()=>$e(e.clientWidth<W);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[W]);const Ee=r?n.find(e=>e.key===r)??null:null,Se=Ee?.key??null,Be=Ee?.lng??0,Ae=Ee?.lat??0,ze=he&&!je&&null!=T&&!!Ee,[Re,Te]=l(null);s(()=>{const e=re.current,t=le.current;if(!(ze&&e&&t&&Se))return;const n=document.createElement("div");n.dataset.mapCard="",n.className=ve.current.looks.cardFloating;const r=new t.Popup({anchor:"bottom",offset:N,className:"rosh-map-card",maxWidth:"none",closeButton:!1,closeOnClick:!1,closeOnMove:!1,focusAfterOpen:!1}).setLngLat([Be,Ae]).setDOMContent(n).addTo(e),o=r.getElement(),a=o.querySelector(".maplibregl-popup-content");a&&Object.assign(a.style,{padding:"0",background:"transparent",borderRadius:"0",boxShadow:"none"});const l=o.querySelector(".maplibregl-popup-tip"),s=ve.current.looks===J.site?"var(--rosh-map-pin, #111)":"var(--color-gray-600, #4b5563)";l&&Object.assign(l.style,{borderTopColor:s,borderBottomColor:s}),Te(n);let i=!1,c=!1;const u=(t=!0)=>{if(c)return;if(e.isMoving())return void(i||(i=!0,e.once("moveend",()=>{i=!1,u()})));const{clientWidth:o,clientHeight:a}=e.getContainer(),l=function(e,t){const n=e.getBoundingClientRect().top,r=[...e.querySelectorAll(".maplibregl-ctrl-top-left > *, .maplibregl-ctrl-top-right > *"),...t?.querySelectorAll(":scope > [data-map-control]")??[]];let o=0;for(const e of r){const t=e.getBoundingClientRect();t.height>0&&(o=Math.max(o,t.bottom-n))}return o}(e.getContainer(),I.current)+8,s=`${M(a,l)}px`;n.style.maxHeight!==s&&(n.style.maxHeight=s);const d=r.getElement(),p=r.getLngLat(),{anchor:m,move:h}=C(e.project(p),{width:d.offsetWidth,height:d.offsetHeight},{width:o,height:a},l);r.options.anchor!==m&&(r.options.anchor=m,r.setLngLat(p)),!t||0===h.x&&0===h.y||e.panBy([-h.x,-h.y],{duration:Y()?0:250}),Ce()},d=new ResizeObserver(()=>u());d.observe(n);const p=()=>u(),m=()=>{i||u(!1)};e.on("resize",p),e.on("moveend",m);let h=!1;const g=ie.current,f=e=>{h=n.contains(e.target)};return document.addEventListener("focusin",f),()=>{if(c=!0,d.disconnect(),e.off("resize",p),e.off("moveend",m),document.removeEventListener("focusin",f),r.remove(),Te(null),h&&(!document.activeElement||document.activeElement===document.body)){const e=g.get(Se)?.button;e&&"none"!==e.style.display&&e.focus({preventScroll:!0})}}},[ze,Se,Be,Ae,Ce]);const We=O?.active??!1,Oe=a(O?.onChange);s(()=>{Oe.current=O?.onChange}),s(()=>{if(!O)return;const e=document.documentElement;We&&!document.fullscreenElement&&e.requestFullscreen&&e.requestFullscreen().catch(()=>{}),!We&&document.fullscreenElement&&document.exitFullscreen().catch(()=>{})},[We]);const Ke=!!O;return s(()=>{if(!Ke)return;const e=()=>{document.fullscreenElement||Oe.current?.(!1)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[Ke]),/* @__PURE__ */d("div",{ref:I,className:ee(ke.frame(S),g),children:[
3
+ /* @__PURE__ */p("div",{className:ke.fill,children:/* @__PURE__ */p("div",{ref:X,className:ke.box,role:"region","aria-label":h})}),fe&&/* @__PURE__ */p("p",{className:ke.failed,children:D.failed}),O&&/* @__PURE__ */p(t,{"data-map-control":"",variant:"secondary",size:"sm",className:"absolute left-3 top-3 z-10",onClick:()=>O.onChange(!O.active),leftIcon:/* @__PURE__ */p(ae,{leave:O.active}),children:O.active?D.leaveFullScreen:D.fullScreen}),b,null!=T&&!ze&&/* @__PURE__ */p("div",{"data-map-card":"",className:ke.cardInline,children:T}),ze&&Re?u(T,Re):null,he&&/* @__PURE__ */p(oe,{pins:n,hosts:pe.current,hostClass:ke.iconHost})]})}function oe({pins:e,hosts:t,hostClass:n}){/* @__PURE__ */
4
+ return p(m,{children:e.map(e=>{if(null==e.iconNode||e.dot)return null;let r=t.get(e.key);return r||(r=document.createElement("span"),r.className=n,t.set(e.key,r)),u(e.iconNode,r,e.key)})})}function ae({leave:e}){/* @__PURE__ */
5
+ return p(n,e?{name:"collapse","aria-hidden":"true",className:"h-4 w-4",strokeWidth:2}:{name:"expand","aria-hidden":"true",className:"h-4 w-4",strokeWidth:2})}function le(){const[e,t]=l(null);return{highlightKey:e,pointAt:i(e=>{const n=()=>t(e),r=()=>t(t=>t===e?null:t);return{onMouseEnter:n,onMouseLeave:r,onFocus:n,onBlur:r}},[])}}var se=3e3,ie=e=>!!e?.pending&&3e3,ce=e=>`${e.kind}:${e.id}`,ue=e=>("located"===e.placement||"approximate"===e.placement)&&null!=e.lat&&null!=e.lng;function de(e){switch(e){case"located":return null;case"approximate":return"Approximate: only the suburb or postcode matched";case"pending":return"Locating";case"not_found":return"Not on the map: address not found";case"failed":return"Not on the map: the map service could not be reached";case"no_address":return"Not on the map: no city or postcode"}}var pe={importer:{label:"Importer",tone:"bg-sky-600 text-white"},dealer:{label:"Dealer",tone:"bg-purple-600 text-white"},retail:{label:"Retail",tone:"bg-green-600 text-white"},supplier:{label:"Supplier",tone:"bg-sky-600 text-white"},delivery_location:{label:"Delivery location",tone:"bg-amber-600 text-white"},warehouse:{label:"Warehouse",tone:"bg-amber-600 text-white"}},me=["importer","dealer","retail","supplier","delivery_location","warehouse"];function he(e){return"supplier"===e.kind?"supplier":"customer"===e.kind?e.category||"importer":e.kind}var ge=(e,t=pe)=>t[e]?.tone??"bg-gray-700 text-white",fe=(e,t=pe)=>t[e]?.label??e,be=(e,t)=>ge(he(e),t);function ye(e,t,n=pe){return null!=t?String(t):(n[he(e)]?.label??"").charAt(0).toUpperCase()}var xe=["delivery_location","warehouse"];function ke(e,t=xe){const n=/* @__PURE__ */new Map;let r=0;for(const o of e)t.includes(o.kind)&&n.set(ce(o),++r);return n}function ve(e){const t={onMap:0,approximate:0,pending:0,off:0};for(const n of e)ue(n)?(t.onMap+=1,"approximate"===n.placement&&(t.approximate+=1)):"pending"===n.placement?t.pending+=1:t.off+=1;return t}function we(e){const t=[`${e.onMap} on the map`];return e.approximate&&t.push(`${e.approximate} approximate`),e.pending&&t.push(`${e.pending} locating`),e.off&&t.push(`${e.off} not on the map`),t.join(" · ")}function Ne(e){const t=[...new Set(e.filter(ue).map(he))];return[...me.filter(e=>t.includes(e)),...t.filter(e=>!me.includes(e))]}function Me(e,t){return e.filter(e=>!ue(e)&&"pending"!==e.placement).map(e=>{const n=t?.get(ce(e)),r=de(e.placement)?.replace(/^Not on the map: /,"")??"";return{key:ce(e),text:`${null!=n?`${n}. `:""}${e.label}: ${r}`}})}function Ce({categories:e,palette:t=pe,floating:n=!0}){return e.length<2?null:/* @__PURE__ */p("div",{className:(n?"absolute left-3 top-3 z-10 ":"")+"flex flex-wrap gap-x-3 gap-y-1 rounded-lg border border-line bg-surface px-3 py-2 text-xs text-gray-600 shadow-sm",children:e.map(e=>/* @__PURE__ */d("span",{className:"inline-flex items-center gap-2",children:[
6
+ /* @__PURE__ */p("span",{"aria-hidden":!0,className:`h-2.5 w-2.5 rounded-full ${ge(e,t)}`}),fe(e,t)]},e))})}function Le({point:e,number:r,onOpen:a,onClose:l,palette:s=pe}){const i=de(e.placement),c=he(e),u=o().map;/* @__PURE__ */
7
+ return d("section",{"aria-label":u.chosen(e.label),className:"absolute bottom-3 left-3 right-3 z-10 max-w-md space-y-2 rounded-lg border border-line bg-surface p-3 shadow-(--elevation-panel)",children:[
8
+ /* @__PURE__ */d("div",{className:"flex items-start justify-between gap-2",children:[
9
+ /* @__PURE__ */d("div",{className:"min-w-0",children:[
10
+ /* @__PURE__ */d("h3",{className:"text-sm font-semibold text-gray-900 [overflow-wrap:anywhere]",children:[null!=r&&/* @__PURE__ */d("span",{className:"mr-1 text-gray-400",children:[r,"."]}),e.label,e.code&&/* @__PURE__ */p("span",{className:"ml-2 text-xs font-normal text-ink-faintest",children:e.code})]}),
11
+ /* @__PURE__ */p("p",{className:"text-xs text-gray-500",children:s[c]?fe(c,s):e.category})]}),
12
+ /* @__PURE__ */p("button",{type:"button",onClick:l,"aria-label":u.closeCard,className:"rounded p-0.5 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */p(n,{name:"close","aria-hidden":!0,className:"h-4 w-4",strokeWidth:2})})]}),
13
+ /* @__PURE__ */p("p",{className:"text-sm text-gray-700 [overflow-wrap:anywhere]",children:e.address||"—"}),i&&/* @__PURE__ */p("p",{className:"text-xs text-gray-500",children:i}),e.matched&&"approximate"===e.placement&&/* @__PURE__ */d("p",{className:"text-xs text-gray-400 [overflow-wrap:anywhere]",children:["Placed at: ",e.matched]}),a&&/* @__PURE__ */p("div",{className:"flex justify-end",children:/* @__PURE__ */p(t,{variant:"secondary",size:"sm",onClick:a,children:u.openRecord})})]})}function je(e,t,{staleTime:n}={}){return h({queryKey:e,queryFn:t,staleTime:n,refetchInterval:e=>ie(e.state.data)})}function $e({queryKey:e,queryFn:t,refreshSignal:n,onOpen:o,ariaLabel:i,title:u="Locations",palette:m=pe,numbers:h,className:g="",mapClassName:f="min-h-[240px] flex-1"}){const{data:b,isError:y,refetch:x}=je(e,t,{staleTime:0}),k=a(!1);s(()=>{k.current?x():k.current=!0},[n]);const[v,w]=l(null),N=c(()=>b?.points??[],[b]),M=c(()=>h??ke(N),[h,N]),C=c(()=>N.filter(ue).map(e=>({key:ce(e),label:e.label,lat:e.lat,lng:e.lng,glyph:ye(e,M.get(ce(e))??null,m),tone:be(e,m),approximate:"approximate"===e.placement})),[N,M,m]),L=c(()=>Me(N,M),[N,M]),j=c(()=>Ne(N),[N]),$=b?.pending??0,E=N.find(e=>ce(e)===v)??null,S=E&&o?o(E):null;/* @__PURE__ */
14
+ return d("section",{"aria-label":u,className:`flex min-w-0 flex-col ${g}`,children:[
15
+ /* @__PURE__ */d("div",{className:"flex min-h-[30px] items-center justify-between mb-2",children:[
16
+ /* @__PURE__ */p("h3",{className:"text-sm font-semibold text-gray-900",children:u}),b&&/* @__PURE__ */p("span",{className:"text-xs text-gray-500",children:we(ve(N))})]}),
17
+ /* @__PURE__ */d(re,{pins:C,selectedKey:v,focus:null,onSelect:w,ariaLabel:i,className:f,children:[
18
+ /* @__PURE__ */d("div",{className:"absolute left-3 top-3 z-10 flex max-w-[70%] flex-col items-start gap-2",children:[
19
+ /* @__PURE__ */p(Ce,{categories:j,palette:m,floating:!1}),y&&/* @__PURE__ */d("div",{className:"flex items-center gap-2 rounded-lg border border-line bg-surface px-3 min-h-8 py-1 text-xs text-gray-600 shadow-sm",children:["Couldn’t load the locations.",
20
+ /* @__PURE__ */p("button",{type:"button",onClick:()=>{x()},className:"font-medium text-blue-600 hover:text-blue-800 hover:underline",children:"Try again"})]}),!y&&($>0||L.length>0)&&/* @__PURE__ */d("div",{className:"max-w-full space-y-0.5 rounded-lg border border-line bg-surface px-3 py-2 text-xs shadow-sm","aria-live":"polite",children:[$>0&&/* @__PURE__ */d("p",{className:"flex items-center gap-2 text-ink-faint",children:[
21
+ /* @__PURE__ */p(r,{}),"Locating ",$," address",1===$?"":"es"]}),L.slice(0,3).map(e=>/* @__PURE__ */p("p",{className:"truncate text-amber-700",title:e.text,children:e.text},e.key)),L.length>3&&/* @__PURE__ */d("p",{className:"text-gray-500",children:["+",L.length-3," more not on the map"]})]})]}),E&&/* @__PURE__ */p(Le,{point:E,number:M.get(ce(E))??null,onOpen:S,onClose:()=>w(null),palette:m})]})]})}export{w as CARD_MIN_MAP_WIDTH,g as COMPACT_SHOW,re as EntityMap,$e as LocationsMap,L as MAPLIBRE_WORKER_FILE,z as MAP_APART_PX,pe as MAP_CATEGORIES,y as MAP_CSP_SOURCES,J as MAP_LOOKS,A as MAP_STOP_PX,x as MAP_STYLE_URLS,B as MAP_TARGET_PX,b as MAP_TILE_ORIGIN,Ce as MapLegend,se as PENDING_POLL_MS,xe as SECONDARY_KINDS,Le as SelectedCard,M as cardMaxHeight,fe as categoryLabel,ge as categoryTone,f as foldAttributionOnce,ue as isOnMap,q as layoutPins,Ne as legendCategories,E as loadMapLibre,ke as locationNumbers,j as mapLibreWorkerUrl,ie as mapPointsRefetchInterval,Me as offMapNotes,he as pinCategory,ye as pinGlyph,be as pinTone,C as placeCard,de as placementNote,ce as pointKey,R as stopsLabel,ve as summarize,we as summaryText,le as useMapHighlight,je as useMapPoints,_ as zoomApart};
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import{TabStrip as e}from"../chunk-FKRPQDFX.js";import{useShellLanguage as t}from"../chunk-7TZV6G2F.js";import"../chunk-2E2SUEEE.js";import{confirm as n}from"../chunk-PLK2WHZG.js";import"../chunk-7INZ7O3A.js";import"../chunk-FOFZI62F.js";import"../chunk-3DVNXNTF.js";import"../chunk-ECJKIPWU.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";import"../chunk-CDAJKLGL.js";import"../chunk-4WEFGKJL.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-UQYNPYF4.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import{useBrowserLayoutEffect as r}from"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import{useShellStrings as i}from"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";import*as c from"react";import{createContext as s,memo as l,useRef as a,useEffect as o,useMemo as u,useId as y,useCallback as d,useReducer as p,useState as f,useContext as k}from"react";import{useLocation as m,useNavigate as h}from"react-router-dom";import{jsx as b,Fragment as v,jsxs as g}from"react/jsx-runtime";var F=s(null),j=s(null),K=12;var N=(e,t)=>e.filter(e=>e!==t);function T(e,t){return[...t.map(t=>e.find(e=>e.key===t)).filter(e=>Boolean(e)),...e.filter(e=>!t.includes(e.key))]}function A(e,t,n=12){const r=e.clock+1;let i;i=e.tabs.find(e=>e.key===t.key)?e.tabs.map(e=>e.key===t.key?{...e,path:t.path,title:"page"===e.titleFrom?e.title:t.title||e.title,lastActive:r}:e):[...e.tabs,{key:t.key,path:t.path,title:t.title,titleFrom:"route",pinned:!1,lastActive:r}];let c={...e,tabs:i,activeKey:t.key,mounted:(s=e.mounted,l=t.key,s.includes(l)?s:[...s,l]),clock:r};var s,l;return c.closing&&c.closing!==t.key?c=J(c,c.closing):c.closing===t.key&&(c={...c,closing:null}),function(e,t){let n=e;for(;n.tabs.length>t;){const e=n.tabs.filter(e=>!e.pinned&&e.key!==n.activeKey&&!n.dirty.includes(e.key)&&e.key!==n.closing).sort((e,t)=>e.lastActive-t.lastActive);if(0===e.length)break;n=J(n,e[0].key)}return n}(c,n)}function I(e){let t={...e,activeKey:null};return t.closing&&(t=J(t,t.closing)),t}function J(e,t){return{...e,tabs:e.tabs.filter(e=>e.key!==t),mounted:N(e.mounted,t),dirty:N(e.dirty,t),activeKey:e.activeKey===t?null:e.activeKey,closing:e.closing===t?null:e.closing}}function L(e,t){switch(t.type){case"visit":return A(e,t.entry,t.maxTabs);case"transient":return I(e);case"close":{let n=e;for(const e of t.keys)n=J(n,e);return t.closing?function(e,t){return{...e,closing:t}}(n,t.closing):n}case"title":return function(e,t,n){const r=e.tabs.find(e=>e.key===t);return!r||!n||r.title===n&&"page"===r.titleFrom?e:{...e,tabs:e.tabs.map(e=>e.key===t?{...e,title:n,titleFrom:"page"}:e)}}(e,t.key,t.title);case"dirty":return function(e,t,n){return n===e.dirty.includes(t)?e:{...e,dirty:n?[...e.dirty,t]:N(e.dirty,t)}}(e,t.key,t.dirty)}}var M=e=>`${e.pathname}${e.search}`;function w(e){const t=e.indexOf("#"),n=t>=0?e.slice(t):"",r=t>=0?e.slice(0,t):e,i=r.indexOf("?");return{pathname:i>=0?r.slice(0,i):r,search:i>=0?r.slice(i):"",hash:n}}function C({children:e,resolve:c,pinned:s=[],storageKey:l,maxTabs:k=12,enabled:v=!0,confirmDiscard:g}){const j=m(),K=h(),N=i().pageTabs,J=y(),C=a(c);C.current=c;const D=d(e=>{const t=C.current(e);return t?{key:t.key??e.pathname,path:M(e),title:t.title}:null},[]),{language:E}=t(),[O,x]=p(L,void 0,()=>{const e=function(e,t,n){if(!e)return[];let r;try{r=JSON.parse(e)}catch{return[]}const i=r;if(!i||1!==i.v||!Array.isArray(i.tabs))return[];const c=Boolean(n&&"string"==typeof i.lang&&i.lang!==n),s=[];for(const e of i.tabs){if(!e||"string"!=typeof e.path||!e.path.startsWith("/")||e.path.startsWith("//"))continue;const n=e.path.indexOf("#"),r=n>=0?e.path.slice(0,n):e.path,i=t(r);if(!i||s.some(e=>e.key===i.key))continue;const l=!c&&"page"===e.titleFrom&&"string"==typeof e.title&&e.title;s.push({key:i.key,path:r,title:l||i.title,titleFrom:l?"page":"route",pinned:!1,lastActive:0})}return s}(function(e){if(!e)return null;try{return localStorage.getItem(e)}catch{return null}}(l),e=>D(w(e)),E);let t=function(e,t){const n=t.map(e=>e.key);let r=e.tabs.map(e=>({...e,pinned:n.includes(e.key)}));for(const e of t)r.some(t=>t.key===e.key)||(r=[...r,{key:e.key,path:e.path,title:e.title,titleFrom:"route",pinned:!0,lastActive:0}]);return{...e,tabs:T(r,n)}}({tabs:[],activeKey:null,mounted:[],dirty:[],closing:null,clock:0,tabs:e},s.map(e=>D(w(e))).filter(e=>Boolean(e)));const n=v?D(j):null;return t=n?A(t,n,k):I(t),t}),B=a(O);B.current=O;const P=a(/* @__PURE__ */new Map),Q=v?D(j):null,S=Q?.key??null;r(()=>{if(!v)return;const e=D(j);e?(P.current.set(e.key,j),x({type:"visit",entry:e,maxTabs:k})):x({type:"transient"})},[j,v,k,D]),o(()=>{const e=new Set(O.tabs.map(e=>e.key));for(const t of P.current.keys())e.has(t)||P.current.delete(t)},[O.tabs]);const W=u(()=>function(e,t){const n={v:1,...t?{lang:t}:{},tabs:e.tabs.filter(t=>t.key!==e.closing).map(({key:e,path:t,title:n,titleFrom:r})=>({key:e,path:t,title:n,titleFrom:r}))};return JSON.stringify(n)}(O,E),[O,E]);o(()=>{if(l)try{localStorage.setItem(l,W)}catch{}},[W,l]);const G=O.dirty.length>0;o(()=>{if(!G)return;const e=e=>{e.preventDefault(),e.returnValue=""};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[G]);const U=a(/* @__PURE__ */new Map),R=d((e,t)=>{let n=U.current.get(e);return void 0===n&&(n=U.current.size,U.current.set(e,n)),`${J}-page-${t}-${n}`},[J]),$=d(e=>g?g(e):n({title:N.discardTitle,message:1===e.length?N.discardOne:N.discardCount?.(e.length)??`${e.length} ${N.discardMany}`,confirmLabel:N.discardConfirm,cancelLabel:N.keepEditing,variant:"warning"}),[g,N]),H=d(()=>{const e=B.current;return e.tabs.find(e=>e.pinned)?.path??"/"},[]),X=d((e,t,n)=>{const r=B.current,i=r.activeKey;if(!i||!e.includes(i))return void x({type:"close",keys:e,closing:null});let c=t;if(!c){const t={...r,tabs:r.tabs.filter(t=>t.key===i||!e.includes(t.key))},s=n?r.tabs.find(t=>t.key===n&&!e.includes(t.key)):void 0;c=(s??function(e,t){const n=e.tabs.filter(n=>n.key!==e.closing||n.key===t),r=n.findIndex(e=>e.key===t);return r<0?null:n[r+1]??n[r-1]??null}(t,i))?.path??H()}x({type:"close",keys:e.filter(e=>e!==i),closing:i}),K(c)},[K,H]),Z=d(async(e,t={})=>{const n=B.current.tabs.find(t=>t.key===e);return!n||n.pinned?(t.to&&K(t.to),!1):!(!t.force&&B.current.dirty.includes(e)&&!await $([n]))&&(!!B.current.tabs.some(t=>t.key===e)&&(X([e],t.to),!0))},[$,X,K]),V=d(async(e,t)=>{let n=function(e,t,n){const r=e.tabs.filter(e=>!e.pinned);if("all"===t)return r.map(e=>e.key);if("others"===t)return r.filter(e=>e.key!==n).map(e=>e.key);const i=e.tabs.findIndex(e=>e.key===n);return i<0?[]:e.tabs.slice(i+1).filter(e=>!e.pinned).map(e=>e.key)}(B.current,e,t);const r=B.current.tabs.filter(e=>n.includes(e.key)&&B.current.dirty.includes(e.key));r.length&&!await $(r)&&(n=n.filter(e=>!r.some(t=>t.key===e)));const i=new Set(B.current.tabs.map(e=>e.key));n=n.filter(e=>i.has(e)),n.length&&X(n,void 0,"all"===e?null:t)},[$,X]),Y=d(e=>{const t=B.current.tabs.find(t=>t.key===e);t&&e!==B.current.activeKey&&K(t.path)},[K]),z=d((e,t)=>x({type:"title",key:e,title:t}),[]),q=d((e,t)=>x({type:"dirty",key:e,dirty:t}),[]),[_,ee]=f({}),te=d((e,t)=>{ee(n=>{if((n[e]??null)===t)return n;const r={...n};return t?r[e]=t:delete r[e],r})},[]),ne=d(e=>D(e)?.key??null,[D]),re=d(e=>P.current.get(e),[]),ie=u(()=>v?O.tabs.filter(e=>e.key!==O.closing):[],[v,O.tabs,O.closing]),ce=u(()=>({enabled:v,state:O,currentKey:S,resolve:c,keyFor:ne,locationFor:re,idFor:R,activate:Y,close:Z,closeMany:V,setTitle:z,setDirty:q,copies:_,setCopy:te,visibleTabs:ie}),[v,O,S,c,ne,re,R,Y,Z,V,z,q,_,te,ie]);/* @__PURE__ */
3
- return b(F.Provider,{value:ce,children:e})}var D=c.Activity,E=Boolean(D);function O({active:e,children:t}){return D?/* @__PURE__ */b(D,{mode:e?"visible":"hidden",children:t}):/* @__PURE__ */b(v,{children:t})}var x=l(function({tabKey:e,active:t,location:n,render:i,className:c,panelId:s,tabId:l}){const y=a(null),d=a(t),p=a(/* @__PURE__ */new Map);r(()=>{const e=d.current;if(d.current=t,t&&!e)for(const[e,[t,n]]of p.current)e.isConnected?(e.scrollTop=t,e.scrollLeft=n):p.current.delete(e)},[t]),o(()=>{const e=y.current;if(!e)return;const t=e=>{if(!d.current)return;const t=e.target;t&&"number"==typeof t.scrollTop&&p.current.set(t,[t.scrollTop,t.scrollLeft])};return e.addEventListener("scroll",t,!0),()=>e.removeEventListener("scroll",t,!0)},[]);const f=u(()=>({key:e,activeRef:d}),[e]);/* @__PURE__ */
4
- return b("div",{ref:y,role:s?"tabpanel":void 0,id:s,"aria-labelledby":l,hidden:!t,style:t?void 0:{display:"none"},className:c,"data-page-tab":e,children:/* @__PURE__ */b(j.Provider,{value:f,children:/* @__PURE__ */b(O,{active:t,children:i(n)})})})},(e,t)=>e.active===t.active&&e.location===t.location&&e.className===t.className&&e.panelId===t.panelId&&e.tabId===t.tabId&&(!t.active||e.render===t.render)),B="\0transient";function P({children:e,frameClassName:t}){const n=k(F),r=m();if(!n||!n.enabled)/* @__PURE__ */
5
- return b("div",{className:t,children:e(r)},B);const{state:i,currentKey:c,locationFor:s,idFor:l}=n,a=i.tabs.filter(e=>i.mounted.includes(e.key)).map(e=>e.key);return c&&!a.includes(c)&&a.push(c),/* @__PURE__ */g(v,{children:[a.map(n=>{const i=n===c,a=i?r:s(n);return a?/* @__PURE__ */b(x,{tabKey:n,active:i,location:a,render:e,className:t,panelId:l(n,"panel"),tabId:l(n,"tab")},n):null}),!c&&/* @__PURE__ */b(x,{tabKey:B,active:!0,location:r,render:e,className:t},B)]})}function Q({className:t,activeClassName:n,end:r}){const c=k(F),s=i().pageTabs;if(!c||!c.enabled)return null;const{visibleTabs:l,state:a,idFor:o,activate:u,close:y,closeMany:d,resolve:p}=c;/* @__PURE__ */
6
- return b(e,{tabs:l.map(e=>({key:e.key,title:e.title,pinned:e.pinned,dirty:a.dirty.includes(e.key),copy:c.copies[e.key],icon:p(w(e.path))?.icon})),activeKey:c.currentKey??null,idFor:o,panelMounted:e=>a.mounted.includes(e),onActivate:u,onClose:e=>{y(e)},onCloseMany:(e,t)=>{d(e,t)},label:s.label,className:t,activeClassName:n,end:r})}var S={enabled:!1,tabs:[],activeKey:null,activate:()=>{},close:async()=>!1,closeOthers:async()=>{},closeRight:async()=>{},closeAll:async()=>{}};function W(){const e=k(F);return e&&e.enabled?{enabled:!0,tabs:e.visibleTabs,activeKey:e.currentKey,activate:e.activate,close:e.close,closeOthers:t=>e.closeMany("others",t),closeRight:t=>e.closeMany("right",t),closeAll:()=>e.closeMany("all",null)}:S}function G(){const e=k(F),t=k(j),n=h();return{key:e?.enabled&&t?t.key:null,close:d(async(r={})=>e?.enabled&&t&&e.state.tabs.some(e=>e.key===t.key)?e.close(t.key,r):(r.to&&n(r.to),!1),[e,t,n])}}function U(e){const t=k(F),n=k(j),r=t?.enabled?t.setTitle:void 0,i=n?.key;o(()=>{r&&i&&e&&r(i,e)},[r,i,e])}function R(e){const t=k(F),n=k(j),r=t?.enabled?t.setCopy:void 0,i=n?.key;o(()=>{if(r&&i)return r(i,e||null),()=>r(i,null)},[r,i,e])}function $(e){const t=k(F),n=k(j),r=t?.enabled?t.setDirty:void 0;o(()=>{if(r&&n)return r(n.key,e),()=>{n.activeRef.current&&r(n.key,!1)}},[r,n,e])}export{K as DEFAULT_MAX_TABS,E as PAGE_TABS_PAUSE_HIDDEN,Q as PageTabBar,P as PageTabsOutlet,C as PageTabsProvider,w as parseTabPath,G as usePageTab,R as usePageTabCopy,$ as usePageTabDirty,U as usePageTabTitle,W as usePageTabs};
2
+ import{TabStrip as e}from"../chunk-QA3EAJ5H.js";import{useShellLanguage as t}from"../chunk-7TZV6G2F.js";import"../chunk-2E2SUEEE.js";import{confirm as n}from"../chunk-PLK2WHZG.js";import"../chunk-7INZ7O3A.js";import"../chunk-P22NWAFW.js";import"../chunk-3DVNXNTF.js";import"../chunk-ECJKIPWU.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";import"../chunk-CDAJKLGL.js";import"../chunk-KLAKLVKE.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-UQYNPYF4.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import{useBrowserLayoutEffect as r}from"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import{useShellStrings as i}from"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";import*as c from"react";import{createContext as s,memo as l,useRef as a,useEffect as o,useMemo as u,useId as y,useCallback as d,useReducer as p,useState as f,useContext as k}from"react";import{useLocation as m,useNavigate as h}from"react-router-dom";import{jsx as b,Fragment as v,jsxs as g}from"react/jsx-runtime";var j=s(null),K=s(null),F=12;var A=(e,t)=>e.filter(e=>e!==t);function N(e,t){return[...t.map(t=>e.find(e=>e.key===t)).filter(e=>Boolean(e)),...e.filter(e=>!t.includes(e.key))]}function T(e,t,n=12){const r=e.clock+1;let i;i=e.tabs.find(e=>e.key===t.key)?e.tabs.map(e=>e.key===t.key?{...e,path:t.path,title:"page"===e.titleFrom?e.title:t.title||e.title,lastActive:r}:e):[...e.tabs,{key:t.key,path:t.path,title:t.title,titleFrom:"route",pinned:!1,lastActive:r}];let c={...e,tabs:i,activeKey:t.key,mounted:(s=e.mounted,l=t.key,s.includes(l)?s:[...s,l]),clock:r};var s,l;return c.closing&&c.closing!==t.key?c=M(c,c.closing):c.closing===t.key&&(c={...c,closing:null}),function(e,t){let n=e;for(;n.tabs.length>t;){const e=n.tabs.filter(e=>!e.pinned&&e.key!==n.activeKey&&!n.dirty.includes(e.key)&&e.key!==n.closing).sort((e,t)=>e.lastActive-t.lastActive);if(0===e.length)break;n=M(n,e[0].key)}return n}(c,n)}function L(e){let t={...e,activeKey:null};return t.closing&&(t=M(t,t.closing)),t}function M(e,t){return{...e,tabs:e.tabs.filter(e=>e.key!==t),mounted:A(e.mounted,t),dirty:A(e.dirty,t),activeKey:e.activeKey===t?null:e.activeKey,closing:e.closing===t?null:e.closing}}function I(e,t){switch(t.type){case"visit":return T(e,t.entry,t.maxTabs);case"transient":return L(e);case"close":{let n=e;for(const e of t.keys)n=M(n,e);return t.closing?function(e,t){return{...e,closing:t}}(n,t.closing):n}case"title":return function(e,t,n){const r=e.tabs.find(e=>e.key===t);return!r||!n||r.title===n&&"page"===r.titleFrom?e:{...e,tabs:e.tabs.map(e=>e.key===t?{...e,title:n,titleFrom:"page"}:e)}}(e,t.key,t.title);case"dirty":return function(e,t,n){return n===e.dirty.includes(t)?e:{...e,dirty:n?[...e.dirty,t]:A(e.dirty,t)}}(e,t.key,t.dirty)}}var w=e=>`${e.pathname}${e.search}`;function C(e){const t=e.indexOf("#"),n=t>=0?e.slice(t):"",r=t>=0?e.slice(0,t):e,i=r.indexOf("?");return{pathname:i>=0?r.slice(0,i):r,search:i>=0?r.slice(i):"",hash:n}}function E({children:e,resolve:c,pinned:s=[],storageKey:l,maxTabs:k=12,enabled:v=!0,confirmDiscard:g}){const K=m(),F=h(),A=i().pageTabs,M=y(),E=a(c);E.current=c;const D=d(e=>{const t=E.current(e);return t?{key:t.key??e.pathname,path:w(e),title:t.title}:null},[]),{language:B}=t(),[J,O]=p(I,void 0,()=>{const e=function(e,t,n){if(!e)return[];let r;try{r=JSON.parse(e)}catch{return[]}const i=r;if(!i||1!==i.v||!Array.isArray(i.tabs))return[];const c=Boolean(n&&"string"==typeof i.lang&&i.lang!==n),s=[];for(const e of i.tabs){if(!e||"string"!=typeof e.path||!e.path.startsWith("/")||e.path.startsWith("//"))continue;const n=e.path.indexOf("#"),r=n>=0?e.path.slice(0,n):e.path,i=t(r);if(!i||s.some(e=>e.key===i.key))continue;const l=!c&&"page"===e.titleFrom&&"string"==typeof e.title&&e.title;s.push({key:i.key,path:r,title:l||i.title,titleFrom:l?"page":"route",pinned:!1,lastActive:0})}return s}(function(e){if(!e)return null;try{return localStorage.getItem(e)}catch{return null}}(l),e=>D(C(e)),B);let t=function(e,t){const n=t.map(e=>e.key);let r=e.tabs.map(e=>({...e,pinned:n.includes(e.key)}));for(const e of t)r.some(t=>t.key===e.key)||(r=[...r,{key:e.key,path:e.path,title:e.title,titleFrom:"route",pinned:!0,lastActive:0}]);return{...e,tabs:N(r,n)}}({tabs:[],activeKey:null,mounted:[],dirty:[],closing:null,clock:0,tabs:e},s.map(e=>D(C(e))).filter(e=>Boolean(e)));const n=v?D(K):null;return t=n?T(t,n,k):L(t),t}),Q=a(J);Q.current=J;const x=a(/* @__PURE__ */new Map),P=v?D(K):null,S=P?.key??null;r(()=>{if(!v)return;const e=D(K);e?(x.current.set(e.key,K),O({type:"visit",entry:e,maxTabs:k})):O({type:"transient"})},[K,v,k,D]),o(()=>{const e=new Set(J.tabs.map(e=>e.key));for(const t of x.current.keys())e.has(t)||x.current.delete(t)},[J.tabs]);const W=u(()=>function(e,t){const n={v:1,...t?{lang:t}:{},tabs:e.tabs.filter(t=>t.key!==e.closing).map(({key:e,path:t,title:n,titleFrom:r})=>({key:e,path:t,title:n,titleFrom:r}))};return JSON.stringify(n)}(J,B),[J,B]);o(()=>{if(l)try{localStorage.setItem(l,W)}catch{}},[W,l]);const G=J.dirty.length>0;o(()=>{if(!G)return;const e=e=>{e.preventDefault(),e.returnValue=""};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[G]);const U=a(/* @__PURE__ */new Map),R=d((e,t)=>{let n=U.current.get(e);return void 0===n&&(n=U.current.size,U.current.set(e,n)),`${M}-page-${t}-${n}`},[M]),V=d(e=>g?g(e):n({title:A.discardTitle,message:1===e.length?A.discardOne:A.discardCount?.(e.length)??`${e.length} ${A.discardMany}`,confirmLabel:A.discardConfirm,cancelLabel:A.keepEditing,variant:"warning"}),[g,A]),$=d(()=>{const e=Q.current;return e.tabs.find(e=>e.pinned)?.path??"/"},[]),H=d((e,t,n)=>{const r=Q.current,i=r.activeKey;if(!i||!e.includes(i))return void O({type:"close",keys:e,closing:null});let c=t;if(!c){const t={...r,tabs:r.tabs.filter(t=>t.key===i||!e.includes(t.key))},s=n?r.tabs.find(t=>t.key===n&&!e.includes(t.key)):void 0;c=(s??function(e,t){const n=e.tabs.filter(n=>n.key!==e.closing||n.key===t),r=n.findIndex(e=>e.key===t);return r<0?null:n[r+1]??n[r-1]??null}(t,i))?.path??$()}O({type:"close",keys:e.filter(e=>e!==i),closing:i}),F(c)},[F,$]),X=d(async(e,t={})=>{const n=Q.current.tabs.find(t=>t.key===e);return!n||n.pinned?(t.to&&F(t.to),!1):!(!t.force&&Q.current.dirty.includes(e)&&!await V([n]))&&(!!Q.current.tabs.some(t=>t.key===e)&&(H([e],t.to),!0))},[V,H,F]),Z=d(async(e,t)=>{let n=function(e,t,n){const r=e.tabs.filter(e=>!e.pinned);if("all"===t)return r.map(e=>e.key);if("others"===t)return r.filter(e=>e.key!==n).map(e=>e.key);const i=e.tabs.findIndex(e=>e.key===n);return i<0?[]:e.tabs.slice(i+1).filter(e=>!e.pinned).map(e=>e.key)}(Q.current,e,t);const r=Q.current.tabs.filter(e=>n.includes(e.key)&&Q.current.dirty.includes(e.key));r.length&&!await V(r)&&(n=n.filter(e=>!r.some(t=>t.key===e)));const i=new Set(Q.current.tabs.map(e=>e.key));n=n.filter(e=>i.has(e)),n.length&&H(n,void 0,"all"===e?null:t)},[V,H]),Y=d(e=>{const t=Q.current.tabs.find(t=>t.key===e);t&&e!==Q.current.activeKey&&F(t.path)},[F]),z=d((e,t)=>O({type:"title",key:e,title:t}),[]),q=d((e,t)=>O({type:"dirty",key:e,dirty:t}),[]),[_,ee]=f({}),te=d((e,t)=>{ee(n=>{if((n[e]??null)===t)return n;const r={...n};return t?r[e]=t:delete r[e],r})},[]),ne=d(e=>D(e)?.key??null,[D]),re=d(e=>x.current.get(e),[]),ie=u(()=>v?J.tabs.filter(e=>e.key!==J.closing):[],[v,J.tabs,J.closing]),ce=u(()=>({enabled:v,state:J,currentKey:S,resolve:c,keyFor:ne,locationFor:re,idFor:R,activate:Y,close:X,closeMany:Z,setTitle:z,setDirty:q,copies:_,setCopy:te,visibleTabs:ie}),[v,J,S,c,ne,re,R,Y,X,Z,z,q,_,te,ie]);/* @__PURE__ */
3
+ return b(j.Provider,{value:ce,children:e})}var D=c.Activity,B=Boolean(D);function J({active:e,children:t}){return D?/* @__PURE__ */b(D,{mode:e?"visible":"hidden",children:t}):/* @__PURE__ */b(v,{children:t})}var O=l(function({tabKey:e,active:t,location:n,render:i,className:c,panelId:s,tabId:l}){const y=a(null),d=a(t),p=a(/* @__PURE__ */new Map);r(()=>{const e=d.current;if(d.current=t,t&&!e)for(const[e,[t,n]]of p.current)e.isConnected?(e.scrollTop=t,e.scrollLeft=n):p.current.delete(e)},[t]),o(()=>{const e=y.current;if(!e)return;const t=e=>{if(!d.current)return;const t=e.target;t&&"number"==typeof t.scrollTop&&p.current.set(t,[t.scrollTop,t.scrollLeft])};return e.addEventListener("scroll",t,!0),()=>e.removeEventListener("scroll",t,!0)},[]);const f=u(()=>({key:e,activeRef:d}),[e]);/* @__PURE__ */
4
+ return b("div",{ref:y,role:s?"tabpanel":void 0,id:s,"aria-labelledby":l,hidden:!t,style:t?void 0:{display:"none"},className:c,"data-page-tab":e,children:/* @__PURE__ */b(K.Provider,{value:f,children:/* @__PURE__ */b(J,{active:t,children:i(n)})})})},(e,t)=>e.active===t.active&&e.location===t.location&&e.className===t.className&&e.panelId===t.panelId&&e.tabId===t.tabId&&(!t.active||e.render===t.render)),Q="\0transient";function x({children:e,frameClassName:t}){const n=k(j),r=m();if(!n||!n.enabled)/* @__PURE__ */
5
+ return b("div",{className:t,children:e(r)},Q);const{state:i,currentKey:c,locationFor:s,idFor:l}=n,a=i.tabs.filter(e=>i.mounted.includes(e.key)).map(e=>e.key);return c&&!a.includes(c)&&a.push(c),/* @__PURE__ */g(v,{children:[a.map(n=>{const i=n===c,a=i?r:s(n);return a?/* @__PURE__ */b(O,{tabKey:n,active:i,location:a,render:e,className:t,panelId:l(n,"panel"),tabId:l(n,"tab")},n):null}),!c&&/* @__PURE__ */b(O,{tabKey:Q,active:!0,location:r,render:e,className:t},Q)]})}function P({className:t,activeClassName:n,end:r}){const c=k(j),s=i().pageTabs;if(!c||!c.enabled)return null;const{visibleTabs:l,state:a,idFor:o,activate:u,close:y,closeMany:d,resolve:p}=c;/* @__PURE__ */
6
+ return b(e,{tabs:l.map(e=>({key:e.key,title:e.title,pinned:e.pinned,dirty:a.dirty.includes(e.key),copy:c.copies[e.key],icon:p(C(e.path))?.icon})),activeKey:c.currentKey??null,idFor:o,panelMounted:e=>a.mounted.includes(e),onActivate:u,onClose:e=>{y(e)},onCloseMany:(e,t)=>{d(e,t)},label:s.label,className:t,activeClassName:n,end:r})}var S={enabled:!1,tabs:[],activeKey:null,activate:()=>{},close:async()=>!1,closeOthers:async()=>{},closeRight:async()=>{},closeAll:async()=>{}};function W(){const e=k(j);return e&&e.enabled?{enabled:!0,tabs:e.visibleTabs,activeKey:e.currentKey,activate:e.activate,close:e.close,closeOthers:t=>e.closeMany("others",t),closeRight:t=>e.closeMany("right",t),closeAll:()=>e.closeMany("all",null)}:S}function G(){const e=k(j),t=k(K),n=h();return{key:e?.enabled&&t?t.key:null,close:d(async(r={})=>e?.enabled&&t&&e.state.tabs.some(e=>e.key===t.key)?e.close(t.key,r):(r.to&&n(r.to),!1),[e,t,n])}}function U(e){const t=k(j),n=k(K),r=t?.enabled?t.setTitle:void 0,i=n?.key;o(()=>{r&&i&&e&&r(i,e)},[r,i,e])}function R(e){const t=k(j),n=k(K),r=t?.enabled?t.setCopy:void 0,i=n?.key;o(()=>{if(r&&i)return r(i,e||null),()=>r(i,null)},[r,i,e])}function V(e){const t=k(j),n=k(K),r=t?.enabled?t.setDirty:void 0;o(()=>{if(r&&n)return r(n.key,e),()=>{n.activeRef.current&&r(n.key,!1)}},[r,n,e])}export{F as DEFAULT_MAX_TABS,B as PAGE_TABS_PAUSE_HIDDEN,P as PageTabBar,x as PageTabsOutlet,E as PageTabsProvider,C as parseTabPath,G as usePageTab,R as usePageTabCopy,V as usePageTabDirty,U as usePageTabTitle,W as usePageTabs};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{APP_UPDATE_POLL_MS,AppUpdateBanner as default,useAppUpdate}from"../chunk-YSDPFDAG.js";import"../chunk-ZGOHRLXG.js";import"../chunk-I4VIEGCX.js";import"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{APP_UPDATE_POLL_MS,AppUpdateBanner as default,useAppUpdate}from"../chunk-RXO2LNIB.js";import"../chunk-ZGOHRLXG.js";import"../chunk-NGRTW6Y7.js";import"../chunk-UQYNPYF4.js";import"../chunk-WJ6ZJVAX.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ColoredBadge as default}from"../chunk-EPY34L26.js";import"../chunk-TXDA7TTP.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-MVZRZTQP.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{ColoredBadge as default}from"../chunk-SAGI7AWC.js";import"../chunk-N2RIQ2OU.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-GLE4F5FT.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ContextMenu,useContextMenu}from"../chunk-W3OWPBQL.js";import"../chunk-4UKGVLFP.js";import"../chunk-4WEFGKJL.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";
2
+ export{ContextMenu,useContextMenu}from"../chunk-CGP2QCIA.js";import"../chunk-DLOJSJWL.js";import"../chunk-KLAKLVKE.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{DropdownMenu as default}from"../chunk-PN5FQVMB.js";import"../chunk-4UKGVLFP.js";import"../chunk-CDAJKLGL.js";import"../chunk-4WEFGKJL.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";
2
+ export{DropdownMenu as default}from"../chunk-URQWWOHM.js";import"../chunk-DLOJSJWL.js";import"../chunk-CDAJKLGL.js";import"../chunk-KLAKLVKE.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{EditableGrid as default,withSpareRow}from"../chunk-RBBIAIPH.js";import"../chunk-G6DKCCWH.js";import"../chunk-MVZRZTQP.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{EditableGrid as default,withSpareRow}from"../chunk-OBNA7GF5.js";import"../chunk-G6DKCCWH.js";import"../chunk-GLE4F5FT.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{FloatingBar as default}from"../chunk-N67QX3WW.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";
2
+ export{FloatingBar as default}from"../chunk-ARSOETMP.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{GlobalSearch as default,openGlobalSearch}from"../chunk-5TDQPZDB.js";import"../chunk-WGRS6QBT.js";import"../chunk-5A7MWTXX.js";import"../chunk-7QSDPSXP.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{GlobalSearch as default,openGlobalSearch}from"../chunk-4BPIGS2D.js";import"../chunk-WGRS6QBT.js";import"../chunk-5A7MWTXX.js";import"../chunk-7QSDPSXP.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{HelpCenter as default}from"../chunk-WYFMSL4Q.js";import"../chunk-3PR5YMWZ.js";import"../chunk-UJUTS6LJ.js";import"../chunk-PJPK2ADX.js";import"../chunk-AYZY3YNC.js";import"../chunk-I4VIEGCX.js";import"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{HelpCenter as default}from"../chunk-A46WK67X.js";import"../chunk-F3ZH6UCW.js";import"../chunk-UJUTS6LJ.js";import"../chunk-PJPK2ADX.js";import"../chunk-AYZY3YNC.js";import"../chunk-NGRTW6Y7.js";import"../chunk-UQYNPYF4.js";import"../chunk-WJ6ZJVAX.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{IconRail,IconRailButton}from"../chunk-5WYRAJ5F.js";import"../chunk-FQEALPZJ.js";import"../chunk-CLTRQ7AQ.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{IconRail,IconRailButton}from"../chunk-YICFH5KO.js";import"../chunk-FQEALPZJ.js";import"../chunk-CLTRQ7AQ.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ImageLightbox as default,lightboxKind}from"../chunk-VIQ6OME2.js";import"../chunk-CGUMJZUB.js";import"../chunk-Z5A4EY2R.js";import"../chunk-DHIQ46C5.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";import"../chunk-CDAJKLGL.js";import"../chunk-TXDA7TTP.js";import"../chunk-I4VIEGCX.js";import"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-MVZRZTQP.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{ImageLightbox as default,lightboxKind}from"../chunk-WSMRVWWK.js";import"../chunk-CGUMJZUB.js";import"../chunk-53DO72B2.js";import"../chunk-OAVU46YG.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";import"../chunk-CDAJKLGL.js";import"../chunk-N2RIQ2OU.js";import"../chunk-NGRTW6Y7.js";import"../chunk-UQYNPYF4.js";import"../chunk-WJ6ZJVAX.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-GLE4F5FT.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{ItemCount as default}from"../chunk-FOFZI62F.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
1
+ export{ItemCount as default}from"../chunk-P22NWAFW.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-YILGAEW3.js";import"../chunk-7TZV6G2F.js";import"../chunk-T23TIJ4P.js";import"../chunk-VQCKMT5F.js";import"../chunk-64ACCUNN.js";import"../chunk-32VV2J22.js";import"../chunk-NI5FXWK5.js";import"../chunk-SLU45G5J.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";import"../chunk-2NMW66P5.js";import"../chunk-6KBDNYRW.js";import"../chunk-CGZBDI6C.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-URHGHXDN.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-C4CAPG3D.js";import"../chunk-7TZV6G2F.js";import"../chunk-T23TIJ4P.js";import"../chunk-VQCKMT5F.js";import"../chunk-64ACCUNN.js";import"../chunk-32VV2J22.js";import"../chunk-NI5FXWK5.js";import"../chunk-GCMCXRIN.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";import"../chunk-2NMW66P5.js";import"../chunk-6KBDNYRW.js";import"../chunk-CGZBDI6C.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-URHGHXDN.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{Markdown as default,plainCell,tableToCsv}from"../chunk-3PR5YMWZ.js";import"../chunk-UJUTS6LJ.js";import"../chunk-PJPK2ADX.js";import"../chunk-I4VIEGCX.js";import"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{Markdown as default,plainCell,tableToCsv}from"../chunk-F3ZH6UCW.js";import"../chunk-UJUTS6LJ.js";import"../chunk-PJPK2ADX.js";import"../chunk-NGRTW6Y7.js";import"../chunk-UQYNPYF4.js";import"../chunk-WJ6ZJVAX.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{MenuCheckMark,MenuIcon,MenuSemanticsContext,PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu,itemLook,menuTextRowStyle}from"../chunk-4WEFGKJL.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";
2
+ export{MenuCheckMark,MenuIcon,MenuSemanticsContext,PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu,itemLook,menuTextRowStyle}from"../chunk-KLAKLVKE.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ResizeHandle as default,readStoredWidth,resizedWidth}from"../chunk-5QGBVTGS.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{ResizeHandle as default,readStoredWidth,resizedWidth}from"../chunk-4UHAQMOT.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SearchableSelect as default,fitChoice}from"../chunk-XYBI57KO.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";import"../chunk-AYZY3YNC.js";import"../chunk-I4VIEGCX.js";import"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{SearchableSelect as default,fitChoice}from"../chunk-PBFFKRQF.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";import"../chunk-AYZY3YNC.js";import"../chunk-NGRTW6Y7.js";import"../chunk-UQYNPYF4.js";import"../chunk-WJ6ZJVAX.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SettingReset as default}from"../chunk-7VBXIIEC.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{SettingReset as default}from"../chunk-GIK62TW6.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SidebarLayout as default}from"../chunk-XCHAU2UN.js";import"../chunk-QWK6DRSN.js";import"../chunk-5QGBVTGS.js";import"../chunk-UGTRSRIW.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{SidebarLayout as default}from"../chunk-RAMJFT3D.js";import"../chunk-QWK6DRSN.js";import"../chunk-4UHAQMOT.js";import"../chunk-UGTRSRIW.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-Y62TTKSY.js";import"../chunk-QWK6DRSN.js";import"../chunk-TZFNWAED.js";import"../chunk-FOFZI62F.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-5DIBDRB6.js";import"../chunk-QWK6DRSN.js";import"../chunk-TZFNWAED.js";import"../chunk-P22NWAFW.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ListRow,SortableList}from"../chunk-FACWYKL6.js";import"../chunk-LYHJHUQH.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{ListRow,SortableList}from"../chunk-QZMGWRZ4.js";import"../chunk-SRYX6AQ6.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadgeProvider,StatusBadge as default,groupColors,useStatusLabel}from"../chunk-TXDA7TTP.js";import"../chunk-MVZRZTQP.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";
2
+ export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadgeProvider,StatusBadge as default,groupColors,useStatusLabel}from"../chunk-N2RIQ2OU.js";import"../chunk-GLE4F5FT.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{Tabs as default,tabButtonId,tabPanelId}from"../chunk-3NW5LD7D.js";import"../chunk-FQEALPZJ.js";import"../chunk-JDQGHQ2C.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";
2
+ export{Tabs as default,tabButtonId,tabPanelId}from"../chunk-NS2HY4NL.js";import"../chunk-FQEALPZJ.js";import"../chunk-JDQGHQ2C.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{Tooltip as default,useInsideTooltip}from"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";
2
+ export{Tooltip as default,useInsideTooltip}from"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{TopNav as default}from"../chunk-2VGQS6CW.js";import"../chunk-PN5FQVMB.js";import"../chunk-4UKGVLFP.js";import"../chunk-CDAJKLGL.js";import"../chunk-4WEFGKJL.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";
2
+ export{TopNav as default}from"../chunk-GCC2OZDG.js";import"../chunk-URQWWOHM.js";import"../chunk-DLOJSJWL.js";import"../chunk-CDAJKLGL.js";import"../chunk-KLAKLVKE.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{TransferProgress as default}from"../chunk-DHIQ46C5.js";import"../chunk-TXDA7TTP.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-MVZRZTQP.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{TransferProgress as default}from"../chunk-OAVU46YG.js";import"../chunk-N2RIQ2OU.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-GLE4F5FT.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-RUGQO7YF.js";import"../chunk-LYHJHUQH.js";import"../chunk-FOFZI62F.js";import"../chunk-TXDA7TTP.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-MVZRZTQP.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-HWKAFISI.js";import"../chunk-SRYX6AQ6.js";import"../chunk-P22NWAFW.js";import"../chunk-N2RIQ2OU.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-GLE4F5FT.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{startClientTelemetry}from"../chunk-XLCZHPCQ.js";import"../chunk-KNUR2UEG.js";import"../chunk-RMUSRDWV.js";
1
+ export{startClientTelemetry}from"../chunk-H2C5SZKO.js";import"../chunk-KNUR2UEG.js";import"../chunk-4DO47TT5.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{AuthScreen as default}from"../chunk-HV47GP2C.js";import"../chunk-P3RXXWXN.js";import"../chunk-6KBDNYRW.js";import"../chunk-CGZBDI6C.js";import"../chunk-MAMWQCJ6.js";import"../chunk-AYZY3YNC.js";import"../chunk-I4VIEGCX.js";import"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{AuthScreen as default}from"../chunk-XDCHB6JA.js";import"../chunk-P3RXXWXN.js";import"../chunk-6KBDNYRW.js";import"../chunk-CGZBDI6C.js";import"../chunk-MAMWQCJ6.js";import"../chunk-AYZY3YNC.js";import"../chunk-NGRTW6Y7.js";import"../chunk-UQYNPYF4.js";import"../chunk-WJ6ZJVAX.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ChatTemplate as default}from"../chunk-RXCGE2AY.js";import"../chunk-XCHAU2UN.js";import"../chunk-QWK6DRSN.js";import"../chunk-5QGBVTGS.js";import"../chunk-AFYLVV74.js";import"../chunk-MAMWQCJ6.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-I4VIEGCX.js";import"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{ChatTemplate as default}from"../chunk-GGRD2JLB.js";import"../chunk-RAMJFT3D.js";import"../chunk-QWK6DRSN.js";import"../chunk-4UHAQMOT.js";import"../chunk-AFYLVV74.js";import"../chunk-MAMWQCJ6.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-NGRTW6Y7.js";import"../chunk-UQYNPYF4.js";import"../chunk-WJ6ZJVAX.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{CheckoutTemplate as default}from"../chunk-YJXS7BR5.js";import"../chunk-P3RXXWXN.js";import"../chunk-SLU45G5J.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";import"../chunk-2NMW66P5.js";import"../chunk-6KBDNYRW.js";import"../chunk-CGZBDI6C.js";import"../chunk-ZGOHRLXG.js";import"../chunk-MAMWQCJ6.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-URHGHXDN.js";import"../chunk-I4VIEGCX.js";import"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{CheckoutTemplate as default}from"../chunk-WHISJI5L.js";import"../chunk-P3RXXWXN.js";import"../chunk-GCMCXRIN.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";import"../chunk-2NMW66P5.js";import"../chunk-6KBDNYRW.js";import"../chunk-CGZBDI6C.js";import"../chunk-ZGOHRLXG.js";import"../chunk-MAMWQCJ6.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-URHGHXDN.js";import"../chunk-NGRTW6Y7.js";import"../chunk-UQYNPYF4.js";import"../chunk-WJ6ZJVAX.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{DashboardTemplate as default}from"../chunk-S74LKSUB.js";import"../chunk-AFYLVV74.js";import"../chunk-P3RXXWXN.js";import"../chunk-CKCDGSTC.js";import"../chunk-VWIYC2NB.js";import"../chunk-VFC6QUEN.js";import"../chunk-UYRMW5MO.js";import"../chunk-465RRWBY.js";import"../chunk-3IUPYCW3.js";import"../chunk-CNYAHYE6.js";import"../chunk-TXDA7TTP.js";import"../chunk-I4VIEGCX.js";import"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-MVZRZTQP.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-G4GVLK44.js";import"../chunk-F27JJHNJ.js";import"../chunk-QO5E33DH.js";import"../chunk-C764JODK.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
1
+ export{DashboardTemplate as default}from"../chunk-L67WTASI.js";import"../chunk-AFYLVV74.js";import"../chunk-P3RXXWXN.js";import"../chunk-CKCDGSTC.js";import"../chunk-VQIG5N6D.js";import"../chunk-VFC6QUEN.js";import"../chunk-EE56C2JH.js";import"../chunk-465RRWBY.js";import"../chunk-3IUPYCW3.js";import"../chunk-CNYAHYE6.js";import"../chunk-N2RIQ2OU.js";import"../chunk-NGRTW6Y7.js";import"../chunk-UQYNPYF4.js";import"../chunk-WJ6ZJVAX.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-GLE4F5FT.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-AGPPZHAH.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-QO5E33DH.js";import"../chunk-C764JODK.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{DataTablePage as default}from"../chunk-RVRDDTEG.js";import"../chunk-P3RXXWXN.js";import"../chunk-SLU45G5J.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";import"../chunk-2NMW66P5.js";import"../chunk-LXL2UCUR.js";import"../chunk-MAMWQCJ6.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-URHGHXDN.js";import"../chunk-TXDA7TTP.js";import"../chunk-I4VIEGCX.js";import"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-MVZRZTQP.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{DataTablePage as default}from"../chunk-C2ZUYCIM.js";import"../chunk-P3RXXWXN.js";import"../chunk-GCMCXRIN.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";import"../chunk-2NMW66P5.js";import"../chunk-LXL2UCUR.js";import"../chunk-MAMWQCJ6.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-URHGHXDN.js";import"../chunk-N2RIQ2OU.js";import"../chunk-NGRTW6Y7.js";import"../chunk-UQYNPYF4.js";import"../chunk-WJ6ZJVAX.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-GLE4F5FT.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{EmailTemplate as default}from"../chunk-MNNZGO2E.js";import"../chunk-XCHAU2UN.js";import"../chunk-QWK6DRSN.js";import"../chunk-5QGBVTGS.js";import"../chunk-AFYLVV74.js";import"../chunk-FOFZI62F.js";import"../chunk-UGTRSRIW.js";import"../chunk-I4VIEGCX.js";import"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{EmailTemplate as default}from"../chunk-VXQQQDJ3.js";import"../chunk-RAMJFT3D.js";import"../chunk-QWK6DRSN.js";import"../chunk-4UHAQMOT.js";import"../chunk-AFYLVV74.js";import"../chunk-P22NWAFW.js";import"../chunk-UGTRSRIW.js";import"../chunk-NGRTW6Y7.js";import"../chunk-UQYNPYF4.js";import"../chunk-WJ6ZJVAX.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-22LRMKLV.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -44,7 +44,7 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, State> {
44
44
  componentDidCatch(error: Error, info: ErrorInfo): void;
45
45
  componentDidUpdate(prev: ErrorBoundaryProps): void;
46
46
  reset: () => void;
47
- render(): string | number | boolean | Iterable<ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
47
+ render(): string | number | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | null | undefined;
48
48
  }
49
49
 
50
50
  export { type ErrorBoundaryProps, ErrorBoundary as default };