@webquark/core 1.1.0-dev.2 → 1.1.0-dev.3

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 (241) hide show
  1. package/dist/cjs/{Leaflet.GoogleMutant-BCs2oiE0.js → Leaflet.GoogleMutant-i4bYl6qy.js} +1 -2
  2. package/dist/cjs/{action.props-hpMla743.js → action.props-CkEZpMY6.js} +1 -1
  3. package/dist/cjs/{chevron-up-B76247zT.js → chevron-up-Dysp_9UJ.js} +2 -2
  4. package/dist/cjs/{index-Vzfd3Ljg.js → index-B7ex88C2.js} +61 -20
  5. package/dist/cjs/leaflet-maplibre-gl-BJKExsns.js +1031 -0
  6. package/dist/{esm/leaflet-src-BeeM-7Ku.js → cjs/leaflet-src-mrRg-Srs.js} +38 -7
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/q-alert.cjs.entry.js +1 -1
  9. package/dist/cjs/q-avatar.cjs.entry.js +1 -1
  10. package/dist/cjs/q-button_2.cjs.entry.js +2 -2
  11. package/dist/cjs/q-card.cjs.entry.js +1 -1
  12. package/dist/cjs/q-carousel.cjs.entry.js +1 -1
  13. package/dist/cjs/q-chip.cjs.entry.js +2 -2
  14. package/dist/cjs/q-conversation-bubble.cjs.entry.js +1 -1
  15. package/dist/cjs/q-data-table.cjs.entry.js +2 -2
  16. package/dist/cjs/q-dialog.cjs.entry.js +1 -1
  17. package/dist/cjs/q-dropdown.cjs.entry.js +1 -1
  18. package/dist/cjs/q-form.cjs.entry.js +1 -1
  19. package/dist/cjs/q-icon.cjs.entry.js +1 -1
  20. package/dist/cjs/q-input_2.cjs.entry.js +2 -2
  21. package/dist/cjs/q-link.cjs.entry.js +2 -2
  22. package/dist/cjs/q-map.cjs.entry.js +184 -122
  23. package/dist/cjs/q-navbar.cjs.entry.js +1 -1
  24. package/dist/cjs/q-pagination.cjs.entry.js +1 -1
  25. package/dist/cjs/q-panel.cjs.entry.js +1 -1
  26. package/dist/cjs/q-quantity-selector.cjs.entry.js +1 -1
  27. package/dist/cjs/q-radio-group.cjs.entry.js +1 -1
  28. package/dist/cjs/q-reel.cjs.entry.js +1 -1
  29. package/dist/cjs/q-scrollable.cjs.entry.js +1 -1
  30. package/dist/cjs/q-sidepanel.cjs.entry.js +18 -15
  31. package/dist/cjs/q-step-diagram-item.cjs.entry.js +1 -1
  32. package/dist/cjs/q-step-diagram.cjs.entry.js +1 -1
  33. package/dist/cjs/q-syntax-box.cjs.entry.js +4 -4
  34. package/dist/cjs/q-tabs.cjs.entry.js +1 -1
  35. package/dist/cjs/q-textarea.cjs.entry.js +1 -1
  36. package/dist/cjs/q-thumbnail.cjs.entry.js +1 -1
  37. package/dist/cjs/q-toast.cjs.entry.js +1 -1
  38. package/dist/cjs/q-toggle.cjs.entry.js +1 -1
  39. package/dist/cjs/q-toolbar.cjs.entry.js +1 -1
  40. package/dist/cjs/webquark.cjs.js +2 -2
  41. package/dist/collection/collection-manifest.json +1 -1
  42. package/dist/collection/components/inputs/input/input.css +13 -0
  43. package/dist/collection/components/layout/sidepanel/internals/nav-items.js +5 -2
  44. package/dist/collection/components/layout/sidepanel/sidepanel.css +23 -0
  45. package/dist/collection/components/layout/sidepanel/sidepanel.js +1 -0
  46. package/dist/components/index.js +1 -1
  47. package/dist/components/{p-BnmIFx4N.js → p-7oXL29Gu.js} +1 -1
  48. package/dist/components/{p-DAl7U6Ms.js → p-BygmcFxM.js} +1 -1
  49. package/dist/components/{p-B6NJEaqd.js → p-C8fq-feq.js} +1 -1
  50. package/dist/components/p-CFuqfXuv.js +9 -0
  51. package/dist/components/{p-Dnud2v8F.js → p-CQofbR9q.js} +1 -1
  52. package/dist/components/p-CVtof65h.js +1 -0
  53. package/dist/components/{p-DcsB8P_Y.js → p-Czf3kP0S.js} +1 -1
  54. package/dist/components/p-DYMWBqU1.js +5 -0
  55. package/dist/components/{p-DH-PVHhr.js → p-DuX-9GOi.js} +1 -1
  56. package/dist/components/{p-B6g9Pj3f.js → p-I81wUKud.js} +1 -1
  57. package/dist/components/{p-CDktnDug.js → p-g9vOVxQ4.js} +2 -2
  58. package/dist/components/{p-C7yQ3tON.js → p-vv3X99Ji.js} +1 -1
  59. package/dist/components/q-alert.js +1 -1
  60. package/dist/components/q-avatar.js +1 -1
  61. package/dist/components/q-button.js +1 -1
  62. package/dist/components/q-card.js +1 -1
  63. package/dist/components/q-carousel.js +1 -1
  64. package/dist/components/q-chip.js +1 -1
  65. package/dist/components/q-conversation-bubble.js +1 -1
  66. package/dist/components/q-data-table.js +1 -1
  67. package/dist/components/q-dialog.js +1 -1
  68. package/dist/components/q-dropdown.js +1 -1
  69. package/dist/components/q-form.js +1 -1
  70. package/dist/components/q-icon.js +1 -1
  71. package/dist/components/q-input.js +1 -1
  72. package/dist/components/q-link.js +1 -1
  73. package/dist/components/q-map.js +1 -1
  74. package/dist/components/q-navbar.js +1 -1
  75. package/dist/components/q-pagination.js +1 -1
  76. package/dist/components/q-panel.js +1 -1
  77. package/dist/components/q-progress.js +1 -1
  78. package/dist/components/q-quantity-selector.js +1 -1
  79. package/dist/components/q-radio-group.js +1 -1
  80. package/dist/components/q-reel.js +1 -1
  81. package/dist/components/q-scrollable.js +1 -1
  82. package/dist/components/q-sidepanel.js +5 -5
  83. package/dist/components/q-step-diagram-item.js +1 -1
  84. package/dist/components/q-step-diagram.js +1 -1
  85. package/dist/components/q-syntax-box.js +4 -4
  86. package/dist/components/q-tabs.js +1 -1
  87. package/dist/components/q-textarea.js +1 -1
  88. package/dist/components/q-thumbnail.js +1 -1
  89. package/dist/components/q-toast.js +1 -1
  90. package/dist/components/q-toggle.js +1 -1
  91. package/dist/components/q-toolbar.js +1 -1
  92. package/dist/components/q-tooltip.js +1 -1
  93. package/dist/esm/{Leaflet.GoogleMutant-BlvymWLE.js → Leaflet.GoogleMutant-MpxOb4Jm.js} +1 -2
  94. package/dist/esm/{action.props-BJWXy1Ec.js → action.props-CJoxGHR7.js} +1 -1
  95. package/dist/esm/{chevron-up-CDktnDug.js → chevron-up-g9vOVxQ4.js} +2 -2
  96. package/dist/esm/{index-DweBlExe.js → index-VFWyFa-_.js} +61 -20
  97. package/dist/esm/leaflet-maplibre-gl-BVDAAs7w.js +1026 -0
  98. package/dist/{cjs/leaflet-src-B0ls4IKq.js → esm/leaflet-src-DYMWBqU1.js} +33 -8
  99. package/dist/esm/loader.js +2 -2
  100. package/dist/esm/q-alert.entry.js +1 -1
  101. package/dist/esm/q-avatar.entry.js +1 -1
  102. package/dist/esm/q-button_2.entry.js +2 -2
  103. package/dist/esm/q-card.entry.js +1 -1
  104. package/dist/esm/q-carousel.entry.js +1 -1
  105. package/dist/esm/q-chip.entry.js +2 -2
  106. package/dist/esm/q-conversation-bubble.entry.js +1 -1
  107. package/dist/esm/q-data-table.entry.js +2 -2
  108. package/dist/esm/q-dialog.entry.js +1 -1
  109. package/dist/esm/q-dropdown.entry.js +1 -1
  110. package/dist/esm/q-form.entry.js +1 -1
  111. package/dist/esm/q-icon.entry.js +1 -1
  112. package/dist/esm/q-input_2.entry.js +2 -2
  113. package/dist/esm/q-link.entry.js +2 -2
  114. package/dist/esm/q-map.entry.js +184 -122
  115. package/dist/esm/q-navbar.entry.js +1 -1
  116. package/dist/esm/q-pagination.entry.js +1 -1
  117. package/dist/esm/q-panel.entry.js +1 -1
  118. package/dist/esm/q-quantity-selector.entry.js +1 -1
  119. package/dist/esm/q-radio-group.entry.js +1 -1
  120. package/dist/esm/q-reel.entry.js +1 -1
  121. package/dist/esm/q-scrollable.entry.js +1 -1
  122. package/dist/esm/q-sidepanel.entry.js +18 -15
  123. package/dist/esm/q-step-diagram-item.entry.js +1 -1
  124. package/dist/esm/q-step-diagram.entry.js +1 -1
  125. package/dist/esm/q-syntax-box.entry.js +4 -4
  126. package/dist/esm/q-tabs.entry.js +1 -1
  127. package/dist/esm/q-textarea.entry.js +1 -1
  128. package/dist/esm/q-thumbnail.entry.js +1 -1
  129. package/dist/esm/q-toast.entry.js +1 -1
  130. package/dist/esm/q-toggle.entry.js +1 -1
  131. package/dist/esm/q-toolbar.entry.js +1 -1
  132. package/dist/esm/webquark.js +3 -3
  133. package/dist/loader/index.d.ts +1 -1
  134. package/dist/playground/build/{p-53a5c493.entry.js → p-0053ec76.entry.js} +1 -1
  135. package/dist/playground/build/{p-de7364cd.entry.js → p-0363c0e6.entry.js} +1 -1
  136. package/dist/{webquark/p-35c9fa4d.entry.js → playground/build/p-0e3dbe01.entry.js} +1 -1
  137. package/dist/{webquark/p-d22a876a.entry.js → playground/build/p-13329777.entry.js} +1 -1
  138. package/dist/playground/build/{p-2f0bbb67.entry.js → p-1c9a82b8.entry.js} +1 -1
  139. package/dist/{webquark/p-c64be717.entry.js → playground/build/p-2e2b3ca9.entry.js} +1 -1
  140. package/dist/playground/build/{p-dac913f9.entry.js → p-316a92e2.entry.js} +1 -1
  141. package/dist/{webquark/p-94eba9a9.entry.js → playground/build/p-38b92be6.entry.js} +1 -1
  142. package/dist/playground/build/{p-06813183.entry.js → p-41421759.entry.js} +1 -1
  143. package/dist/playground/build/{p-d142bb86.entry.js → p-42831108.entry.js} +1 -1
  144. package/dist/{webquark/p-7c9d705e.entry.js → playground/build/p-50ca27f7.entry.js} +1 -1
  145. package/dist/playground/build/{p-4f8ee3f7.entry.js → p-5c08aa94.entry.js} +1 -1
  146. package/dist/{webquark/p-4b38c28f.entry.js → playground/build/p-611ef3e0.entry.js} +1 -1
  147. package/dist/playground/build/{p-8ff218f7.entry.js → p-684292dd.entry.js} +1 -1
  148. package/dist/{webquark/p-bc7d7cbf.entry.js → playground/build/p-6c0bc4b9.entry.js} +3 -3
  149. package/dist/playground/build/{p-09d43469.entry.js → p-7081c96b.entry.js} +1 -1
  150. package/dist/playground/build/{p-e354a398.entry.js → p-789eb3c9.entry.js} +1 -1
  151. package/dist/playground/build/{p-f1ab576a.entry.js → p-8077aa3f.entry.js} +1 -1
  152. package/dist/playground/build/{p-7be7478a.entry.js → p-885572ee.entry.js} +1 -1
  153. package/dist/playground/build/p-8ada8fc6.entry.js +1 -0
  154. package/dist/{webquark/p-721d2479.entry.js → playground/build/p-8d0aa5a7.entry.js} +1 -1
  155. package/dist/{webquark/p-c4016e61.entry.js → playground/build/p-8ec7d250.entry.js} +1 -1
  156. package/dist/{webquark/p-256d199a.entry.js → playground/build/p-9978ae38.entry.js} +1 -1
  157. package/dist/playground/build/p-CFuqfXuv.js +9 -0
  158. package/dist/playground/build/p-DYMWBqU1.js +5 -0
  159. package/dist/playground/build/p-DoS2fiWw.js +1 -0
  160. package/dist/playground/build/p-DuX-9GOi.js +1 -0
  161. package/dist/playground/build/p-VFWyFa-_.js +3 -0
  162. package/dist/playground/build/{p-bc0a0428.entry.js → p-b5066051.entry.js} +1 -1
  163. package/dist/playground/build/p-b99541cd.entry.js +1 -0
  164. package/dist/playground/build/{p-dabaddcb.entry.js → p-ca1a1d25.entry.js} +1 -1
  165. package/dist/{webquark/p-a2a3135f.entry.js → playground/build/p-d837603c.entry.js} +1 -1
  166. package/dist/playground/build/{p-d691a1aa.entry.js → p-e0e6b68f.entry.js} +1 -1
  167. package/dist/playground/build/{p-a0861b0e.entry.js → p-e15e6d76.entry.js} +1 -1
  168. package/dist/{webquark/p-3e4d2d19.entry.js → playground/build/p-e272dd45.entry.js} +1 -1
  169. package/dist/playground/build/{p-31d62bd0.entry.js → p-e8003179.entry.js} +1 -1
  170. package/dist/playground/build/p-e974c1f8.entry.js +13 -0
  171. package/dist/{webquark/p-CDktnDug.js → playground/build/p-g9vOVxQ4.js} +2 -2
  172. package/dist/playground/build/webquark.esm.js +1 -1
  173. package/dist/types/components/layout/sidepanel/sidepanel.d.ts +1 -0
  174. package/dist/types/components/layout/sidepanel/sidepanel.types.d.ts +4 -0
  175. package/dist/types/stencil-public-runtime.d.ts +73 -55
  176. package/dist/webquark/{p-53a5c493.entry.js → p-0053ec76.entry.js} +1 -1
  177. package/dist/webquark/{p-de7364cd.entry.js → p-0363c0e6.entry.js} +1 -1
  178. package/dist/{playground/build/p-35c9fa4d.entry.js → webquark/p-0e3dbe01.entry.js} +1 -1
  179. package/dist/{playground/build/p-d22a876a.entry.js → webquark/p-13329777.entry.js} +1 -1
  180. package/dist/webquark/{p-2f0bbb67.entry.js → p-1c9a82b8.entry.js} +1 -1
  181. package/dist/{playground/build/p-c64be717.entry.js → webquark/p-2e2b3ca9.entry.js} +1 -1
  182. package/dist/webquark/{p-dac913f9.entry.js → p-316a92e2.entry.js} +1 -1
  183. package/dist/{playground/build/p-94eba9a9.entry.js → webquark/p-38b92be6.entry.js} +1 -1
  184. package/dist/webquark/{p-06813183.entry.js → p-41421759.entry.js} +1 -1
  185. package/dist/webquark/{p-d142bb86.entry.js → p-42831108.entry.js} +1 -1
  186. package/dist/{playground/build/p-7c9d705e.entry.js → webquark/p-50ca27f7.entry.js} +1 -1
  187. package/dist/webquark/{p-4f8ee3f7.entry.js → p-5c08aa94.entry.js} +1 -1
  188. package/dist/{playground/build/p-4b38c28f.entry.js → webquark/p-611ef3e0.entry.js} +1 -1
  189. package/dist/webquark/{p-8ff218f7.entry.js → p-684292dd.entry.js} +1 -1
  190. package/dist/{playground/build/p-bc7d7cbf.entry.js → webquark/p-6c0bc4b9.entry.js} +3 -3
  191. package/dist/webquark/{p-09d43469.entry.js → p-7081c96b.entry.js} +1 -1
  192. package/dist/webquark/{p-e354a398.entry.js → p-789eb3c9.entry.js} +1 -1
  193. package/dist/webquark/{p-f1ab576a.entry.js → p-8077aa3f.entry.js} +1 -1
  194. package/dist/webquark/{p-7be7478a.entry.js → p-885572ee.entry.js} +1 -1
  195. package/dist/webquark/p-8ada8fc6.entry.js +1 -0
  196. package/dist/{playground/build/p-721d2479.entry.js → webquark/p-8d0aa5a7.entry.js} +1 -1
  197. package/dist/{playground/build/p-c4016e61.entry.js → webquark/p-8ec7d250.entry.js} +1 -1
  198. package/dist/{playground/build/p-256d199a.entry.js → webquark/p-9978ae38.entry.js} +1 -1
  199. package/dist/webquark/p-CFuqfXuv.js +9 -0
  200. package/dist/webquark/p-DYMWBqU1.js +5 -0
  201. package/dist/webquark/p-DoS2fiWw.js +1 -0
  202. package/dist/webquark/p-DuX-9GOi.js +1 -0
  203. package/dist/webquark/p-VFWyFa-_.js +3 -0
  204. package/dist/webquark/{p-bc0a0428.entry.js → p-b5066051.entry.js} +1 -1
  205. package/dist/webquark/p-b99541cd.entry.js +1 -0
  206. package/dist/webquark/{p-dabaddcb.entry.js → p-ca1a1d25.entry.js} +1 -1
  207. package/dist/{playground/build/p-a2a3135f.entry.js → webquark/p-d837603c.entry.js} +1 -1
  208. package/dist/webquark/{p-d691a1aa.entry.js → p-e0e6b68f.entry.js} +1 -1
  209. package/dist/webquark/{p-a0861b0e.entry.js → p-e15e6d76.entry.js} +1 -1
  210. package/dist/{playground/build/p-3e4d2d19.entry.js → webquark/p-e272dd45.entry.js} +1 -1
  211. package/dist/webquark/{p-31d62bd0.entry.js → p-e8003179.entry.js} +1 -1
  212. package/dist/webquark/p-e974c1f8.entry.js +13 -0
  213. package/dist/{playground/build/p-CDktnDug.js → webquark/p-g9vOVxQ4.js} +2 -2
  214. package/dist/webquark/webquark.esm.js +1 -1
  215. package/package.json +14 -14
  216. package/dist/cjs/leaflet-maplibre-gl-RCEffFEM.js +0 -434
  217. package/dist/cjs/leaflet-src-BX4jwTf5.js +0 -33
  218. package/dist/components/p-2bWqVyTo.js +0 -1
  219. package/dist/components/p-BEBDDqVT.js +0 -1
  220. package/dist/components/p-BeeM-7Ku.js +0 -5
  221. package/dist/components/p-QHgICI4w.js +0 -1
  222. package/dist/esm/leaflet-maplibre-gl-Cgb-1z8Q.js +0 -432
  223. package/dist/esm/leaflet-src-BR13bdVA.js +0 -30
  224. package/dist/playground/build/p-2bWqVyTo.js +0 -1
  225. package/dist/playground/build/p-7c4e6512.entry.js +0 -1
  226. package/dist/playground/build/p-BEBDDqVT.js +0 -1
  227. package/dist/playground/build/p-BeeM-7Ku.js +0 -5
  228. package/dist/playground/build/p-DNFGt02p.js +0 -1
  229. package/dist/playground/build/p-DweBlExe.js +0 -2
  230. package/dist/playground/build/p-Dxs6LLBG.js +0 -1
  231. package/dist/playground/build/p-a7b90eef.entry.js +0 -13
  232. package/dist/playground/build/p-e298fb31.entry.js +0 -1
  233. package/dist/webquark/p-2bWqVyTo.js +0 -1
  234. package/dist/webquark/p-7c4e6512.entry.js +0 -1
  235. package/dist/webquark/p-BEBDDqVT.js +0 -1
  236. package/dist/webquark/p-BeeM-7Ku.js +0 -5
  237. package/dist/webquark/p-DNFGt02p.js +0 -1
  238. package/dist/webquark/p-DweBlExe.js +0 -2
  239. package/dist/webquark/p-Dxs6LLBG.js +0 -1
  240. package/dist/webquark/p-a7b90eef.entry.js +0 -13
  241. package/dist/webquark/p-e298fb31.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{r as t,c as e,a as r,h as a}from"./p-DweBlExe.js";import{g as i,d as n,e as o,f as s,a as l,b as c,c as d,Q as h}from"./p-WJHaLJS_.js";class u{operations;revision=0;active;pendingAttachController;constructor(t){this.operations=t}getActiveState(){return{activeProvider:this.active?.provider,usingFallback:this.active?.usingFallback??!1}}async sync(t){const e=++this.revision;if(this.abortPendingAttach(),!this.isConfigured(t))return this.clearActiveLayer(),{kind:"empty",activeProvider:void 0,usingFallback:!1};const r=await this.createCandidate(t.requestedProvider,t,e);if("stale"===r.kind)return r;const a="ready"===r.kind?await this.commit(r.candidate,t.requestedProvider,!1,e):r;if("stale"===a.kind||"ready"===a.kind)return a;if("tiles"===t.requestedProvider||!t.tileUrl.trim())return{kind:"error",error:a.error,...this.getActiveState()};const i=await this.createCandidate("tiles",t,e);if("stale"===i.kind)return i;if("error"===i.kind)return{kind:"error",error:a.error,fallbackError:i.error,...this.getActiveState()};const n=await this.commit(i.candidate,"tiles",!0,e);return"ready"===n.kind?{...n,warning:a.error}:"error"===n.kind?{kind:"error",error:a.error,fallbackError:n.error,...this.getActiveState()}:n}destroy(){this.revision+=1,this.abortPendingAttach(),this.clearActiveLayer()}isConfigured(t){return"google"===t.requestedProvider?t.googleApiAvailable||t.googleApiKey.trim().length>0:"vector"===t.requestedProvider?t.vectorStyleUrl.trim().length>0:t.tileUrl.trim().length>0}async createCandidate(t,e,r){try{const a="google"===t?await this.operations.createGoogle(e):"vector"===t?await this.operations.createVector(e):this.operations.createTiles(e);return r!==this.revision?(this.removeLayer(a),{kind:"stale"}):{kind:"ready",candidate:a}}catch(t){return r===this.revision?{kind:"error",error:t}:{kind:"stale"}}}async commit(t,e,r,a){if(a!==this.revision)return this.removeLayer(t),{kind:"stale"};const i=new AbortController;this.pendingAttachController=i;try{await this.operations.attach(t,e,{replacing:void 0!==this.active,signal:i.signal})}catch(e){return this.clearPendingAttach(i),this.removeLayer(t),a!==this.revision||i.signal.aborted?{kind:"stale"}:{kind:"error",error:e,...this.getActiveState()}}if(this.clearPendingAttach(i),a!==this.revision)return this.removeLayer(t),{kind:"stale"};const n=this.active;return this.active={layer:t,provider:e,usingFallback:r},n?.layer!==t&&this.removeLayer(n?.layer),{kind:"ready",activeProvider:e,usingFallback:r}}clearActiveLayer(){this.removeLayer(this.active?.layer),this.active=void 0}abortPendingAttach(){this.pendingAttachController?.abort(),this.pendingAttachController=void 0}clearPendingAttach(t){this.pendingAttachController===t&&(this.pendingAttachController=void 0)}removeLayer(t){if(t)try{t.remove()}catch{}}}function m(t,e,r,a,i="full-batch"){const n=t.tileLayer(e,r),o=n._initTile.bind(n);if(n._initTile=t=>{o(t);const e=n.getTileSize();t.style.width=`${e.x+1}px`,t.style.height=`${e.y+1}px`},"progressive"===i&&function(t){const e=t.onAdd.bind(t);let r=!1;t.onAdd=a=>{const i=e(a);return function(t){if(null===t._tiles||"object"!=typeof t._tiles||Array.isArray(t._tiles))throw f()}(t),r||(function(t){const e=t._tileReady.bind(t),r=t._pruneTiles.bind(t),a=t._updateOpacity.bind(t),i=e=>{const r=t._pruneTiles;t._pruneTiles=()=>{};try{e()}finally{t._pruneTiles=r}};t._tileReady=(a,n,o)=>{const s=t._tiles[t._tileCoordsToKey(a)];if(!n)return s&&(s.progressiveLoadFailed=!1),void e(a,n,o);i((()=>e(a,n,o))),s&&(s.progressiveLoadFailed=!0,s.active=!1),r()},t._updateOpacity=()=>{i(a),(()=>{for(const e of Object.values(t._tiles))e.progressiveLoadFailed&&(e.active=!1)})(),r()}}(t),r=!0),i}}(function(t){const e=t;if("function"!=typeof e._pruneTiles||"function"!=typeof e._tileCoordsToKey||"function"!=typeof e._tileReady||"function"!=typeof e._updateOpacity||"function"!=typeof e.onAdd)throw f();return e}(n)),0===a)return n;const s=n._getTiledPixelBounds.bind(n);return n._getTiledPixelBounds=e=>{const r=s(e),i=n.getTileSize(),o=i.x*a,l=i.y*a;return new t.Bounds(r.min.subtract([o,l]),r.max.add([o,l]))},n}function f(){return new Error("Progressive raster loading is not supported by this Leaflet tile layer.")}function p(t){return"number"==typeof t&&Number.isFinite(t)&&t>=-90&&t<=90}function g(t){return"number"==typeof t&&Number.isFinite(t)&&t>=-180&&t<=180}function b(t){const{parsed:e,invalidJson:r}=function(t){if("string"!=typeof t)return{parsed:t,invalidJson:!1};if(!t.trim())return{parsed:void 0,invalidJson:!1};try{return{parsed:JSON.parse(t),invalidJson:!1}}catch{return{invalidJson:!0}}}(t);if(r)return{kind:"invalid",message:"maxBounds must be valid JSON or a bounds object."};if(void 0===e)return{kind:"clear"};if("object"!=typeof(a=e)||null===a)return{kind:"invalid",message:"maxBounds must be a bounds object."};var a;const{southLatitude:i,westLongitude:n,northLatitude:o,eastLongitude:s}=e;if(!p(i)||!p(o))return{kind:"invalid",message:"maxBounds latitude values must be finite numbers from -90 to 90."};if(!g(n)||!g(s))return{kind:"invalid",message:"maxBounds longitude values must be finite numbers from -180 to 180."};if(i>=o)return{kind:"invalid",message:"maxBounds southLatitude must be below northLatitude."};if(n>=s)return{kind:"invalid",message:"maxBounds westLongitude must be below eastLongitude; antimeridian-crossing bounds are not supported."};const l={southLatitude:i,westLongitude:n,northLatitude:o,eastLongitude:s};return{kind:"valid",bounds:l,leafletBounds:[[l.southLatitude,l.westLongitude],[l.northLatitude,l.eastLongitude]]}}function v(t){const e=Number.isFinite(t)?t:1;return Math.max(0,Math.min(1,e))}let k,w,q,y,x=0;function _(){return"undefined"!=typeof window&&"function"==typeof window.google?.maps?.Map}function M(){if(!_())throw new Error("The Maps library loaded without exposing google.maps.Map.")}const z=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],C=new Uint32Array(96);class L{static from(t){if(!t||void 0===t.byteLength||t.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");const[e,r]=new Uint8Array(t,0,2);if(219!==e)throw new Error("Data does not appear to be in a KDBush format.");const a=r>>4;if(1!==a)throw new Error(`Got v${a} data when expected v1.`);const i=z[15&r];if(!i)throw new Error("Unrecognized array type.");const[n]=new Uint16Array(t,2,1),[o]=new Uint32Array(t,4,1);return new L(o,n,i,void 0,t)}constructor(t,e=64,r=Float64Array,a=ArrayBuffer,i){if(isNaN(t)||t<0)throw new Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const n=z.indexOf(this.ArrayType),o=2*t*this.ArrayType.BYTES_PER_ELEMENT,s=t*this.IndexArrayType.BYTES_PER_ELEMENT,l=(8-s%8)%8;if(n<0)throw new Error(`Unexpected typed array class: ${r}.`);if(i)this.data=i,this.ids=new this.IndexArrayType(i,8,t),this.coords=new r(i,8+s+l,2*t),this._pos=2*t,this._finished=!0;else{const i=this.data=new a(8+o+s+l);this.ids=new this.IndexArrayType(i,8,t),this.coords=new r(i,8+s+l,2*t),this._pos=0,this._finished=!1,new Uint8Array(i,0,2).set([219,16+n]),new Uint16Array(i,2,1)[0]=e,new Uint32Array(i,4,1)[0]=t}}add(t,e){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return A(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,a){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:n,nodeSize:o}=this;C[0]=0,C[1]=i.length-1,C[2]=0;let s=3;const l=[];for(;s>0;){const c=C[--s],d=C[--s],h=C[--s];if(d-h<=o){for(let o=h;o<=d;o++){const s=n[2*o],c=n[2*o+1];s>=t&&s<=r&&c>=e&&c<=a&&l.push(i[o])}continue}const u=h+d>>1,m=n[2*u],f=n[2*u+1];m>=t&&m<=r&&f>=e&&f<=a&&l.push(i[u]),(0===c?t<=m:e<=f)&&(C[s++]=h,C[s++]=u-1,C[s++]=1-c),(0===c?r>=m:a>=f)&&(C[s++]=u+1,C[s++]=d,C[s++]=1-c)}return l}within(t,e,r){const a=[];return this.withinInto(t,e,r,a),a}withinInto(t,e,r,a){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:n,nodeSize:o}=this;C[0]=0,C[1]=i.length-1,C[2]=0;let s=3,l=0;const c=r*r;for(;s>0;){const d=C[--s],h=C[--s],u=C[--s];if(h-u<=o){for(let r=u;r<=h;r++)$(n[2*r],n[2*r+1],t,e)<=c&&(a[l++]=i[r]);continue}const m=u+h>>1,f=n[2*m],p=n[2*m+1];$(f,p,t,e)<=c&&(a[l++]=i[m]),(0===d?t-r<=f:e-r<=p)&&(C[s++]=u,C[s++]=m-1,C[s++]=1-d),(0===d?t+r>=f:e+r>=p)&&(C[s++]=m+1,C[s++]=h,C[s++]=1-d)}return l}}function A(t,e,r,a,i,n){if(i-a<=r)return;const o=a+i>>1;P(t,e,o,a,i,n),A(t,e,r,a,o-1,1-n),A(t,e,r,o+1,i,1-n)}function P(t,e,r,a,i,n){for(;i>a;){if(i-a>600){const o=i-a+1,s=r-a+1,l=Math.log(o),c=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2<0?-1:1);P(t,e,r,Math.max(a,Math.floor(r-s*c/o+d)),Math.min(i,Math.floor(r+(o-s)*c/o+d)),n)}const o=e[2*r+n];let s=a,l=i;for(E(t,e,a,r),e[2*i+n]>o&&E(t,e,a,i);s<l;){for(E(t,e,s,l),s++,l--;e[2*s+n]<o;)s++;for(;e[2*l+n]>o;)l--}e[2*a+n]===o?E(t,e,a,l):(l++,E(t,e,l,i)),l<=r&&(a=l+1),r<=l&&(i=l-1)}}function E(t,e,r,a){S(t,r,a),S(e,2*r,2*a),S(e,2*r+1,2*a+1)}function S(t,e,r){const a=t[e];t[e]=t[r],t[r]=a}function $(t,e,r,a){const i=t-r,n=e-a;return i*i+n*n}const B={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},Z=Math.fround||(N=new Float32Array(1),t=>(N[0]=+t,N[0]));var N;class I{constructor(t){this.options=Object.assign(Object.create(B),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:e,minZoom:r,maxZoom:a}=this.options;e&&console.time("total time");const i=`prepare ${t.length} points`;e&&console.time(i),this.points=t;const n=[];for(let e=0;e<t.length;e++){const r=t[e];if(!r.geometry)continue;const[a,i]=r.geometry.coordinates,o=Z(O(a)),s=Z(R(i));n.push(o,s,1/0,e,-1,1),this.options.reduce&&n.push(0)}let o=this.trees[a+1]=this._createTree(n);e&&console.timeEnd(i);for(let t=a;t>=r;t--){const r=+Date.now();o=this.trees[t]=this._createTree(this._cluster(o,t)),e&&console.log("z%d: %d clusters in %dms",t,o.numItems,+Date.now()-r)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let r=((t[0]+180)%360+360)%360-180;const a=Math.max(-90,Math.min(90,t[1]));let i=180===t[2]?180:((t[2]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,i=180;else if(r>i){const t=this.getClusters([r,a,180,n],e),o=this.getClusters([-180,a,i,n],e);return t.concat(o)}const o=this.trees[this._limitZoom(e)],s=o.range(O(r),R(n),O(i),R(a)),l=o.data,c=[];for(const t of s){const e=this.stride*t;c.push(l[e+5]>1?T(l,e,this.clusterProps):this.points[l[e+3]])}return c}getChildren(t){const e=this._getOriginId(t),r=this._getOriginZoom(t),a="No cluster with the specified id.",i=this.trees[r];if(!i)throw new Error(a);const n=i.data;if(e*this.stride>=n.length)throw new Error(a);const o=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=i.within(n[e*this.stride],n[e*this.stride+1],o),l=[];for(const e of s){const r=e*this.stride;n[r+4]===t&&l.push(n[r+5]>1?T(n,r,this.clusterProps):this.points[n[r+3]])}if(0===l.length)throw new Error(a);return l}getLeaves(t,e,r){const a=[];return this._appendLeaves(a,t,e=e||10,r=r||0,0),a}getTile(t,e,r){const a=this.trees[this._limitZoom(t)],i=Math.pow(2,t),{extent:n,radius:o}=this.options,s=o/n,l=(r-s)/i,c=(r+1+s)/i,d={features:[]};return this._addTileFeatures(a.range((e-s)/i,l,(e+1+s)/i,c),a.data,e,r,i,d),0===e&&this._addTileFeatures(a.range(1-s/i,l,1,c),a.data,i,r,i,d),e===i-1&&this._addTileFeatures(a.range(0,l,s/i,c),a.data,-1,r,i,d),d.features.length?d:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e}_appendLeaves(t,e,r,a,i){const n=this.getChildren(e);for(const e of n){const n=e.properties;if(n&&n.cluster?i+n.point_count<=a?i+=n.point_count:i=this._appendLeaves(t,n.cluster_id,r,a,i):i<a?i++:t.push(e),t.length===r)break}return i}_createTree(t){const e=new L(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<t.length;r+=this.stride)e.add(t[r],t[r+1]);return e.finish(),e.data=t,e}_addTileFeatures(t,e,r,a,i,n){for(const o of t){const t=o*this.stride,s=e[t+5]>1;let l,c,d;if(s)l=U(e,t,this.clusterProps),c=e[t],d=e[t+1];else{const r=this.points[e[t+3]];l=r.properties;const[a,i]=r.geometry.coordinates;c=O(a),d=R(i)}const h={type:1,geometry:[[Math.round(this.options.extent*(c*i-r)),Math.round(this.options.extent*(d*i-a))]],tags:l};let u;u=s||this.options.generateId?e[t+3]:this.points[e[t+3]].id,void 0!==u&&(h.id=u),n.features.push(h)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const{radius:r,extent:a,reduce:i,minPoints:n}=this.options,o=r/(a*Math.pow(2,e)),s=t.data,l=[],c=this.stride;for(let r=0;r<s.length;r+=c){if(s[r+2]<=e)continue;s[r+2]=e;const a=s[r],d=s[r+1],h=t.within(s[r],s[r+1],o),u=s[r+5];let m=u;for(const t of h){const r=t*c;s[r+2]>e&&(m+=s[r+5])}if(m>u&&m>=n){let t,n=a*u,o=d*u,f=-1;const p=(r/c<<5)+(e+1)+this.points.length;for(const a of h){const l=a*c;if(s[l+2]<=e)continue;s[l+2]=e;const d=s[l+5];n+=s[l]*d,o+=s[l+1]*d,s[l+4]=p,i&&(t||(t=this._map(s,r,!0),f=this.clusterProps.length,this.clusterProps.push(t)),i(t,this._map(s,l)))}s[r+4]=p,l.push(n/m,o/m,1/0,p,-1,m),i&&l.push(f)}else{for(let t=0;t<c;t++)l.push(s[r+t]);if(m>1)for(const t of h){const r=t*c;if(!(s[r+2]<=e)){s[r+2]=e;for(let t=0;t<c;t++)l.push(s[r+t])}}}}return l}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,r){if(t[e+5]>1){const a=this.clusterProps[t[e+6]];return r?Object.assign({},a):a}const a=this.points[t[e+3]].properties,i=this.options.map(a);return r&&i===a?Object.assign({},i):i}}function T(t,e,r){return{type:"Feature",id:t[e+3],properties:U(t,e,r),geometry:{type:"Point",coordinates:[(a=t[e],360*(a-.5)),F(t[e+1])]}};var a}function U(t,e,r){const a=t[e+5],i=a>=1e4?`${Math.round(a/1e3)}k`:a>=1e3?Math.round(a/100)/10+"k":a,n=t[e+6],o=-1===n?{}:Object.assign({},r[n]);return Object.assign(o,{cluster:!0,cluster_id:t[e+3],point_count:a,point_count_abbreviated:i})}function O(t){return t/360+.5}function R(t){const e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function F(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}const V=new Set(i),j=new Set(n),D=new Set(o),G=new Set(s),Q=new Set(l),K=new Set(c),J=new Set(d);function W(t){return"object"==typeof t&&null!==t}function H(t){return"string"==typeof t&&V.has(t)?t:"default"}function X(t,e){return"string"==typeof t&&e.has(t)?t:void 0}function Y(t){if("string"!=typeof t)return;const e=t.trim();return e.length>0?e:void 0}function tt(t){return"number"==typeof t&&Number.isFinite(t)?t:void 0}function et(t){return Y(t)??h}function rt(t){return et(t.clusterGroup)}function at(t){if(!W(t))return;const e=Y(t.label),r="number"==typeof t.value&&Number.isFinite(t.value)?t.value:Y(t.value);return e&&void 0!==r?{label:e,value:r,layout:X(t.layout,K)??"compact"}:void 0}function it(t){if(!W(t)||!function(t){return"string"==typeof t&&t.trim().length>0||"number"==typeof t&&Number.isFinite(t)}(t.id))return;if("number"!=typeof t.latitude||!Number.isFinite(t.latitude)||t.latitude<-90||t.latitude>90)return;if("number"!=typeof t.longitude||!Number.isFinite(t.longitude)||t.longitude<-180||t.longitude>180)return;const e="string"==typeof t.label&&t.label.trim().length>0?t.label:String(t.id),r=Y(t.imageUrl),a=Y(t.fallbackText),i=Y(t.icon),n=tt(t.iconSize),o=tt(t.iconOffsetX),s=tt(t.iconOffsetY),l=X(t.kind,j),c="icon"!==l||i?l:"dot",d=X(t.size,G),h=X(t.ring,D),u=function(t){if(!W(t))return;const e=Y(t.ariaLabel),r=Y(t.icon),a=Y(t.text);return e&&(r||a)?{ariaLabel:e,variant:H(t.variant),...r?{icon:r}:{},...a?{text:a}:{}}:void 0}(t.badge),m=function(t){if(!W(t))return;const e=Y(t.title);if(!e)return;const r=Y(t.subtitle),a=Y(t.meta),i=function(t){if(!Array.isArray(t))return;const e=t.map(at).filter((t=>void 0!==t)).slice(0,6);return e.length>0?e:void 0}(t.stats),n=function(t){if(!W(t))return;const e=Y(t.label);return e?{label:e,variant:H(t.variant)}:void 0}(t.status),o=X(t.placement,Q)??"auto",s=X(t.visibility,J)??"always";return{title:e,variant:H(t.variant),placement:o,visibility:s,...r?{subtitle:r}:{},...a?{meta:a}:{},...i?{stats:i}:{},...n?{status:n}:{}}}(t.callout);return{id:t.id,latitude:t.latitude,longitude:t.longitude,label:e,clusterable:!1!==t.clusterable,clusterGroup:et(t.clusterGroup),variant:H(t.variant),...r?{imageUrl:r}:{},...a?{fallbackText:a}:{},...c?{kind:c}:{},...i?{icon:i}:{},...void 0!==n?{iconSize:n}:{},...void 0!==o?{iconOffsetX:o}:{},...void 0!==s?{iconOffsetY:s}:{},...d?{size:d}:{},...h?{ring:h}:{},...!0===t.pulse?{pulse:!0}:{},...u?{badge:u}:{},...m?{callout:m}:{}}}function nt(t){return"number"==typeof t?`number:${t}`:`string:${t}`}function ot(t,e,r){return Math.max(e,Math.min(r,Math.round(t)))}function st(t,e){return`${e.radius}:${e.minPoints}:${e.maxZoom}:${t.map((t=>`${nt(t.id)}@${t.longitude},${t.latitude}`)).sort().join("|")}`}function lt(t){return"cluster"in t.properties&&!0===t.properties.cluster}function ct(t,e){const r=new I({radius:e.radius,minPoints:e.minPoints,maxZoom:e.maxZoom});return r.load(t.map((t=>({type:"Feature",geometry:{type:"Point",coordinates:[t.longitude,t.latitude]},properties:{markerKey:nt(t.id)}})))),r}class dt{clusterGroups=new Map;standaloneMarkers=new Map;load(t,e){const r=[...t].sort(((t,e)=>nt(t.id).localeCompare(nt(e.id))));this.standaloneMarkers.clear();const a=new Map;for(const t of r){const e=nt(t.id);if(!1===t.clusterable)this.standaloneMarkers.set(e,t);else{const e=rt(t),r=a.get(e)??[];r.push(t),a.set(e,r)}}const i=new Map,n=[...a].sort((([t],[e])=>t.localeCompare(e)));for(const[t,r]of n){const a=new Map(r.map((t=>[nt(t.id),t]))),n=st(r,e),o=this.clusterGroups.get(t);i.set(t,{index:o?.signature===n?o.index:ct(r,e),markers:a,signature:n})}this.clusterGroups=i}getViewportItems(t,e,r){const a=void 0===r?void 0:nt(r),i=new Map;for(const[r,n]of this.clusterGroups)for(const o of n.index.getClusters(t,Math.max(0,Math.floor(e)))){if(!lt(o)){const t=n.markers.get(o.properties.markerKey);if(t){const e=nt(t.id);i.set(e,{kind:"marker",key:e,marker:t})}continue}const t=o.properties.cluster_id,e=n.index.getLeaves(t,1/0).map((t=>t.properties.markerKey)).filter((t=>n.markers.has(t))).sort(),s=e.map((t=>n.markers.get(t)?.id)).filter((t=>void 0!==t)),l=String(t),c=`cluster:${encodeURIComponent(r)}:${l}`;i.set(c,{kind:"cluster",key:c,clusterId:l,clusterGroup:r,markerIds:s,markerKeys:e,latitude:o.geometry.coordinates[1],longitude:o.geometry.coordinates[0],count:s.length,expansionZoom:n.index.getClusterExpansionZoom(t),containsSelection:void 0!==a&&e.includes(a)})}for(const[e,r]of this.standaloneMarkers)ht(r,t)&&i.set(e,{kind:"marker",key:e,marker:r});return[...i.values()].sort(((t,e)=>t.key.localeCompare(e.key)))}clear(){this.clusterGroups.clear(),this.standaloneMarkers.clear()}}function ht(t,[e,r,a,i]){return t.longitude>=e&&t.longitude<=a&&t.latitude>=r&&t.latitude<=i}function ut(t){return t.x+t.offset.x}function mt(t){return t.y+t.offset.y}function ft(t,e){let r=2166136261;for(const a of`${t}\0${e}`)r^=a.charCodeAt(0),r=Math.imul(r,16777619);const a=(r>>>0)%360*(Math.PI/180);return{x:Math.cos(a),y:Math.sin(a)}}const pt=["kind-dot","kind-avatar","kind-icon"],gt=["ring-none","ring-solid","ring-dashed"];function bt(t,e){const r=t.createElement("q-icon");return r.className=e,r.setAttribute("size","100%"),r.setAttribute("aria-hidden","true"),r}function vt(t,e){t.hidden=!e,e?t.setAttribute("name",e):t.removeAttribute("name")}function kt(t,e,r){Number.isFinite(r)?t.style.setProperty(e,`${Object.is(r,-0)?0:r}px`):t.style.removeProperty(e)}const wt=s.map((t=>yt(t)));class qt{options;layers=new Map;markers=new Map;clusterIndex=new dt;visibleItems=new Map;pendingFocusMarkerKey;handleViewportChange=()=>this.reconcile();constructor(t){this.options=t,t.map.on("moveend zoomend",this.handleViewportChange)}sync(t){const e=function(t){const e=new Map;for(const r of function(t){if(Array.isArray(t))return t;try{const e=JSON.parse(t);return Array.isArray(e)?e:[]}catch{return[]}}(t)){const t=it(r);t&&e.set(nt(t.id),t)}return[...e.values()]}(t);this.markers.clear();for(const t of e)this.markers.set(nt(t.id),t);const r=this.options.getClusteringOptions();r.enabled?this.clusterIndex.load(e,r):this.clusterIndex.clear(),this.reconcile()}syncSelection(){this.reconcile()}getVisibilityTarget(t){const e=nt(t),r=this.markers.get(e);if(!r)return;const a=this.layers.get(e);if("marker"===a?.kind)return{latitude:r.latitude,longitude:r.longitude,rendered:{kind:a.kind,element:a.element}};for(const t of this.layers.values())if(t.markerKeys.includes(e))return{latitude:r.latitude,longitude:r.longitude,rendered:{kind:t.kind,element:t.element}};return{latitude:r.latitude,longitude:r.longitude}}destroy(){this.options.map.off("moveend zoomend",this.handleViewportChange);for(const t of[...this.layers.keys()])this.remove(t);this.visibleItems.clear(),this.markers.clear(),this.clusterIndex.clear()}reconcile(){const t=this.captureFocusIntent(),e=this.getVisibleItems();this.visibleItems=new Map(e.map((t=>[t.key,t])));for(const t of[...this.layers.keys()])this.visibleItems.has(t)||this.remove(t);for(const t of e){const e=this.layers.get(t.key);e&&e.kind!==t.kind&&this.remove(t.key);const r=this.layers.get(t.key)??this.add(t);r&&this.update(r,t)}this.syncCollisionOffsets(e);const r=t&&this.layers.get(t.renderKey)?.element===t.element;this.pendingFocusMarkerKey?this.restoreFocus(this.pendingFocusMarkerKey)&&(this.pendingFocusMarkerKey=void 0):t&&!r&&(this.restoreFocus(t.markerKey)||this.options.map.getContainer().focus())}getVisibleItems(){if(!this.options.getClusteringOptions().enabled)return[...this.markers].map((([t,e])=>({kind:"marker",key:t,marker:e})));const t=this.options.map.getBounds().pad(.2),e=Math.max(-90,t.getSouth()),r=Math.min(90,t.getNorth()),a=Math.max(-180,t.getWest()),i=Math.min(180,t.getEast());return this.clusterIndex.getViewportItems(i>a?[a,e,i,r]:[-180,e,180,r],this.options.map.getZoom(),this.options.getSelectedMarkerId())}add(t){const e=this.options.map.getContainer().ownerDocument,r="marker"===t.kind?function(t){const e=t.createElement("span");e.className="q-map-marker",e.setAttribute("part","marker");const r=t.createElement("span");r.className="q-map-marker__content",r.setAttribute("aria-hidden","true");const a=t.createElement("span");a.className="q-map-marker__center";const i=t.createElement("span");i.className="q-map-marker__fallback",i.hidden=!0;const n=t.createElement("img");n.className="q-map-marker__image",n.alt="",n.decoding="async",n.draggable=!1,n.hidden=!0,n.setAttribute("aria-hidden","true"),n.addEventListener("load",(()=>{n.dataset.source===n.getAttribute("src")&&(n.hidden=!1,a.classList.add("has-image"))})),n.addEventListener("error",(()=>{n.dataset.source===n.getAttribute("src")&&(n.hidden=!0,a.classList.remove("has-image"))}));const o=bt(t,"q-map-marker__icon");o.hidden=!0;const s=t.createElement("span");s.className="q-map-marker__badge",s.setAttribute("part","marker-badge"),s.hidden=!0;const l=bt(t,"q-map-marker__badge-icon");l.hidden=!0;const c=t.createElement("span");return c.className="q-map-marker__badge-text",c.hidden=!0,a.append(i,n,o),s.append(l,c),r.append(a,s),e.append(r),e}(e):function(t){const e=t.createElement("span");e.className="q-map-cluster",e.setAttribute("part","cluster");const r=t.createElement("span");r.className="q-map-cluster__content",r.setAttribute("aria-hidden","true");const a=t.createElement("span");return a.className="q-map-cluster__count",r.append(a),e.append(r),e}(e),a="marker"===t.kind?"q-map-marker-position":"q-map-cluster-position",i="marker"===t.kind?t.marker.label:`${t.count} map markers`,n=this.options.leaflet.marker([this.getLatitude(t),this.getLongitude(t)],{bubblingMouseEvents:!1,icon:this.options.leaflet.divIcon({className:a,html:r,iconAnchor:[0,0],iconSize:[0,0]}),keyboard:!1,riseOnHover:!0,riseOffset:1e3,title:i,zIndexOffset:this.getZIndexOffset(t)});n.addTo(this.options.map);const o=n.getElement();if(!o)return void n.remove();if(!o.contains(r))return void n.remove();const s=e=>{e.stopPropagation(),this.activate(t.key,e)},l=e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),this.activate(t.key,e))};r.addEventListener("click",s),r.addEventListener("keydown",l);const c={kind:t.kind,layer:n,element:r,markerKeys:[],click:s,keydown:l};return this.layers.set(t.key,c),c}update(t,e){if(t.layer.setLatLng([this.getLatitude(e),this.getLongitude(e)]),t.layer.setZIndexOffset(this.getZIndexOffset(e)),t.markerKeys="marker"===e.kind?[nt(e.marker.id)]:e.markerKeys,"marker"===e.kind){const a=this.isSelected(e.marker.id);return this.syncMarkerSize(t,e.marker.size),function(t,e,r){for(const e of i)t.classList.remove(`variant-${e}`);t.classList.remove(...pt,...gt),t.classList.add(`variant-${e.variant??"default"}`,`ring-${e.ring??"none"}`);const a="icon"!==e.kind||e.icon?e.kind:"dot";a&&t.classList.add(`kind-${a}`),t.classList.toggle("is-pulsing",!0===e.pulse),t.classList.toggle("is-selected",r),kt(t,"--q-map-marker-icon-size",e.iconSize),kt(t,"--q-map-marker-icon-offset-x",e.iconOffsetX),kt(t,"--q-map-marker-icon-offset-y",e.iconOffsetY);const n=t.querySelector(".q-map-marker__center"),o=n?.querySelector(".q-map-marker__fallback"),s=n?.querySelector(".q-map-marker__image"),l=n?.querySelector(".q-map-marker__icon");if(!(n&&o&&s&&l))return;const c="avatar"===a||void 0===a,d=c?e.fallbackText??"":"",h=c?e.imageUrl:void 0,u="icon"===a?e.icon:void 0;o.textContent=d,o.hidden=!d,function(t,e,r){if(!r)return e.hidden=!0,e.removeAttribute("src"),delete e.dataset.source,void t.classList.remove("has-image");e.dataset.source!==r&&(e.hidden=!0,t.classList.remove("has-image"),e.dataset.source=r,e.src=r)}(n,s,h),vt(l,u),t.classList.toggle("has-content",Boolean(d||h||u));const m=t.querySelector(".q-map-marker__badge"),f=m?.querySelector(".q-map-marker__badge-icon"),p=m?.querySelector(".q-map-marker__badge-text");if(m&&f&&p){for(const t of i)m.classList.remove(`variant-${t}`);m.hidden=!e.badge,m.classList.add(`variant-${e.badge?.variant??"default"}`),vt(f,e.badge?.icon),p.textContent=e.badge?.text??"",p.hidden=!e.badge?.text}}(t.element,e.marker,a),t.element.setAttribute("role","button"),t.element.setAttribute("tabindex","0"),t.element.setAttribute("aria-label",(r=e.marker).badge?`${r.label}. ${r.badge.ariaLabel}`:r.label),t.element.setAttribute("aria-pressed",a?"true":"false"),t.element.setAttribute("data-marker-id",e.key),t.element.setAttribute("title",e.marker.label),void this.syncCallout(t,e.marker,a)}var r;this.unbindCallout(t),function(t,e,r){const a=t.querySelector(".q-map-cluster__count");a&&(a.textContent=e>999?Math.floor(e/100)/10+"k":String(e)),t.classList.toggle("contains-selection",r)}(t.element,e.count,e.containsSelection),t.element.setAttribute("role","button"),t.element.setAttribute("tabindex","0"),t.element.setAttribute("aria-label",`${e.count} map markers${e.containsSelection?", including the selected marker":""}`),t.element.setAttribute("part",`cluster cluster-group-${e.clusterGroup.toLowerCase().replace(/[^a-z0-9_-]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")||"default"}`),t.element.setAttribute("data-cluster-id",e.clusterId),t.element.setAttribute("data-cluster-group",e.clusterGroup),t.element.setAttribute("title",`${e.count} map markers`),t.element.removeAttribute("aria-pressed")}getZIndexOffset(t){return"marker"===t.kind&&!1===t.marker.clusterable?2e3:0}syncMarkerSize(t,e){const r=t.layer.getElement();r&&(r.classList.remove(...wt),e&&r.classList.add(yt(e)))}syncCollisionOffsets(t){const e=[];for(const r of t){const t=this.layers.get(r.key);if(!t||t.kind!==r.kind)continue;const a=this.options.map.latLngToContainerPoint([this.getLatitude(r),this.getLongitude(r)]),i=t.layer.getElement(),n=i?.getBoundingClientRect(),o=Math.max(n?.width??0,n?.height??0)||("cluster"===r.kind?32:20);e.push({key:r.key,x:a.x,y:a.y,diameter:o})}const r=function(t){const e=t.filter((t=>Number.isFinite(t.x)&&Number.isFinite(t.y)&&Number.isFinite(t.diameter)&&t.diameter>0)).map((t=>({...t,collisionRadius:.75*t.diameter*.5,offset:{x:0,y:0}}))).sort(((t,e)=>t.key.localeCompare(e.key))),r=Math.max(0,...e.map((t=>t.collisionRadius)));for(let t=0;t<12;t+=1){let t=!1;const a=[...e].sort(((t,e)=>ut(t)-ut(e)||mt(t)-mt(e)||t.key.localeCompare(e.key)));for(let e=0;e<a.length;e+=1){const i=a[e];if(i)for(let n=e+1;n<a.length;n+=1){const e=a[n];if(!e)continue;if(ut(e)-ut(i)>=i.collisionRadius+r)break;const o=ut(e)-ut(i),s=mt(e)-mt(i),l=Math.hypot(o,s),c=i.collisionRadius+e.collisionRadius;if(l+.01>=c)continue;const d=l>.01?{x:o/l,y:s/l}:ft(i.key,e.key),h=.5*(c-l);i.offset.x-=d.x*h,i.offset.y-=d.y*h,e.offset.x+=d.x*h,e.offset.y+=d.y*h,t=!0}}if(!t)break}return new Map(e.map((t=>[t.key,t.offset])))}(e);for(const t of e){const e=this.layers.get(t.key);if(!e)continue;const a=r.get(t.key);!a||Math.abs(a.x)<.01&&Math.abs(a.y)<.01?(e.element.style.removeProperty("translate"),this.syncCalloutCollisionOffset(e,0,0)):(e.element.style.setProperty("translate",`${xt(a.x)}px ${xt(a.y)}px`),this.syncCalloutCollisionOffset(e,a.x,a.y))}}syncCalloutCollisionOffset(t,e,r){const a=t.layer.getTooltip();if(!a)return;const i=xt(e),n=xt(r),o=`${i}:${n}`;t.calloutCollisionOffset===o||void 0===t.calloutCollisionOffset&&0===i&&0===n||(t.calloutCollisionOffset=o,a.options.offset=this.options.leaflet.point(i,n),a.update())}syncCallout(t,e,r){const a=e.callout;if(!a||!a||"selected"===a.visibility&&!r)return void this.unbindCallout(t);const n=a.placement??"auto";t.calloutBound&&t.calloutPlacement!==n&&this.unbindCallout(t),t.calloutContent??=function(t){const e=t.createElement("div");e.className="q-map-callout__content",e.setAttribute("aria-hidden","true");const r=t.createElement("span");r.className="q-map-callout__heading";const a=t.createElement("span");a.className="q-map-callout__title";const i=t.createElement("span");i.className="q-map-callout__status",i.hidden=!0;const n=t.createElement("span");n.className="q-map-callout__subtitle",n.hidden=!0;const o=t.createElement("span");o.className="q-map-callout__meta",o.hidden=!0;const s=t.createElement("dl");return s.className="q-map-callout__stats",s.hidden=!0,r.append(a,i),e.append(r,n,o,s),e}(t.element.ownerDocument),function(t,e){const r=t.querySelector(".q-map-callout__title"),a=t.querySelector(".q-map-callout__subtitle"),n=t.querySelector(".q-map-callout__status"),o=t.querySelector(".q-map-callout__meta"),s=t.querySelector(".q-map-callout__stats");if(r&&a&&n&&o&&s){for(const e of i)t.classList.remove(`variant-${e}`);t.classList.add(`variant-${e.variant??"default"}`),r.textContent=e.title,a.textContent=e.subtitle??"",a.hidden=!e.subtitle;for(const t of i)n.classList.remove(`variant-${t}`);n.classList.add(`variant-${e.status?.variant??"default"}`),n.textContent=e.status?.label??"",n.hidden=!e.status,o.textContent=e.meta??"",o.hidden=!e.meta,function(t,e){const r=e.map((e=>{const r=t.ownerDocument.createElement("div");r.className=`q-map-callout__stat layout-${e.layout??"compact"}`;const a=t.ownerDocument.createElement("dt");a.className="q-map-callout__stat-label",a.textContent=e.label;const i=t.ownerDocument.createElement("dd");return i.className="q-map-callout__stat-value",i.textContent=String(e.value),r.append(a,i),r}));t.textContent="",t.append(...r),t.hidden=0===r.length}(s,e.stats??[])}}(t.calloutContent,a),t.calloutPlacement=n,t.calloutBound||(t.layer.bindTooltip(t.calloutContent,{className:"q-map-callout",direction:n,interactive:!1,opacity:1,permanent:!0}),t.calloutBound=!0),t.layer.setTooltipContent(t.calloutContent),t.layer.openTooltip();const o=t.layer.getTooltip()?.getElement();o?.setAttribute("part","marker-callout"),o?.setAttribute("aria-hidden","true")}unbindCallout(t){t.calloutBound&&(t.layer.unbindTooltip(),t.calloutBound=!1,t.calloutCollisionOffset=void 0)}activate(t,e){const r=this.visibleItems.get(t);r&&("marker"!==r.kind?this.activateCluster(r,e):this.options.onMarkerSelect(r.marker,e))}activateCluster(t,e){const r=Math.min(this.options.map.getMaxZoom(),Math.max(this.options.map.getZoom()+1,t.expansionZoom));if(!this.options.onClusterSelect({clusterId:t.clusterId,clusterGroup:t.clusterGroup,markerIds:t.markerIds,latitude:t.latitude,longitude:t.longitude,expansionZoom:r,originalEvent:e})){if(e instanceof KeyboardEvent){const e=this.options.getSelectedMarkerId(),r=void 0===e?void 0:nt(e);this.pendingFocusMarkerKey=r&&t.markerKeys.includes(r)?r:t.markerKeys[0]}this.options.map.setView([t.latitude,t.longitude],r,{animate:!this.options.prefersReducedMotion()})}}captureFocusIntent(){for(const[t,e]of this.layers){if(e.element.getRootNode().activeElement!==e.element)continue;const r=this.options.getSelectedMarkerId(),a=void 0===r?void 0:nt(r);return{element:e.element,renderKey:t,markerKey:a&&e.markerKeys.includes(a)?a:e.markerKeys[0]}}}restoreFocus(t){const e=this.layers.get(t);if("marker"===e?.kind)return e.element.focus(),!0;for(const e of this.layers.values())if("cluster"===e.kind&&e.markerKeys.includes(t))return e.element.focus(),!0;return!1}isSelected(t){const e=this.options.getSelectedMarkerId();return void 0!==e&&nt(e)===nt(t)}getLatitude(t){return"marker"===t.kind?t.marker.latitude:t.latitude}getLongitude(t){return"marker"===t.kind?t.marker.longitude:t.longitude}remove(t){const e=this.layers.get(t);e&&(e.element.removeEventListener("click",e.click),e.element.removeEventListener("keydown",e.keydown),this.unbindCallout(e),e.layer.remove(),this.layers.delete(t))}}function yt(t){return`size-${t}`}function xt(t){return Math.round(100*t)/100}const _t=.01;function Mt(t,e,r){const a=Lt(t),i=Lt(e);if(!a||!i)return;if(At(a)>At(i)+_t||Pt(a)>Pt(i)+_t)return;const n=r.map(Lt).filter((t=>void 0!==t)).map((t=>{return e=t,r=i,Lt({top:Math.max(e.top,r.top),right:Math.min(e.right,r.right),bottom:Math.min(e.bottom,r.bottom),left:Math.max(e.left,r.left)});var e,r})).filter((t=>void 0!==t)),o=new Set([0,i.left-a.left,i.right-a.right]),s=new Set([0,i.top-a.top,i.bottom-a.bottom]);for(const t of n)o.add(t.left-a.right),o.add(t.right-a.left),s.add(t.top-a.bottom),s.add(t.bottom-a.top);let l,c=Number.POSITIVE_INFINITY;for(const t of o)for(const e of s){const r=$t(a,t,e);if(!Bt(i,r))continue;if(n.some((t=>Zt(r,t))))continue;const o=t*t+e*e;o+_t<c&&(l={x:t,y:e},c=o)}return l}function zt(t,e,r){const a=Lt(t),i=Lt(e);return!(!a||!i||!Bt(i,a)||r.some((t=>{const e=Lt(t);return!!e&&Zt(a,e)})))}function Ct(t,e){const r=Et(t.getBoundingClientRect());if("marker"===e){const e=Math.max(function(t){if(!t.classList.contains("ring-solid")&&!t.classList.contains("ring-dashed"))return 0;const e=t.ownerDocument.defaultView;if(!e)return 7;const r=e.getComputedStyle(t,"::after"),a=[r.top,r.right,r.bottom,r.left].map((t=>Number.parseFloat(t))).filter(Number.isFinite).map((t=>Math.max(0,-t)));return Math.max(7,...a)}(t),t.classList.contains("is-selected")?3:0);let n=St(r,e);const o=t.querySelector(".q-map-marker__badge:not([hidden])");return o&&(a=n,i=Et(o.getBoundingClientRect()),n={top:Math.min(a.top,i.top),right:Math.max(a.right,i.right),bottom:Math.max(a.bottom,i.bottom),left:Math.min(a.left,i.left)}),n}var a,i;return St(r,t.classList.contains("contains-selection")?7:4)}function Lt(t){const{top:e,right:r,bottom:a,left:i}=t;if([e,r,a,i].every(Number.isFinite)&&!(r<=i||a<=e))return{top:e,right:r,bottom:a,left:i}}function At(t){return t.right-t.left}function Pt(t){return t.bottom-t.top}function Et(t){return{top:t.top,right:t.right,bottom:t.bottom,left:t.left}}function St(t,e){return{top:t.top-e,right:t.right+e,bottom:t.bottom+e,left:t.left-e}}function $t(t,e,r){return{top:t.top+r,right:t.right+e,bottom:t.bottom+r,left:t.left+e}}function Bt(t,e){return e.left>=t.left-_t&&e.top>=t.top-_t&&e.right<=t.right+_t&&e.bottom<=t.bottom+_t}function Zt(t,e){return t.left<e.right-_t&&t.right>e.left+_t&&t.top<e.bottom-_t&&t.bottom>e.top+_t}const Nt=1e4;function It(){const t=new Error("Raster tile loading was cancelled.");return t.name="AbortError",t}function Tt(t){return Number.isFinite(t)?Math.max(0,Math.min(.5,t)):.2}const Ut=["roadmap","satellite","terrain","hybrid"],Ot=class{constructor(r){t(this,r),this.qReady=e(this,"qReady"),this.qMapClick=e(this,"qMapClick"),this.qMarkerSelect=e(this,"qMarkerSelect"),this.qClusterSelect=e(this,"qClusterSelect"),this.qStatusChange=e(this,"qStatusChange"),this.qError=e(this,"qError")}get el(){return r(this)}attribution="";attributionUrl="";markers=[];clusterMarkers=!1;clusterRadius=48;clusterMinPoints=2;clusterMaxZoom;centerLatitude=0;centerLongitude=0;zoom=2;zoomControls=!0;minZoom=0;maxZoom=19;maxBounds;maxBoundsViscosity=1;selectedMarkerId;provider="tiles";tileUrl="";tilePreloadBuffer=0;rasterTileLoadingPolicy="full-batch";vectorStyleUrl="";vectorPadding=.2;googleApiKey="";googleMapType="roadmap";ariaLabel="Interactive map";qReady;qMapClick;qMarkerSelect;qClusterSelect;qStatusChange;qError;providerStatus="initializing";activeProvider;usingFallback=!1;errorMessage;leaflet;map;canvas;resizeObserver;resizeFrame;initializationToken=0;markerVisibilityToken=0;cancelMarkerVisibilityPan;layerController;markerController;lastInvalidBoundsInput;reportedRequestedProvider;baseLayerSyncQueued=!1;hasLoaded=!1;connected=!1;connectedCallback(){this.connected=!0,this.hasLoaded&&this.initializeMap()}componentDidLoad(){this.hasLoaded=!0,this.initializeMap()}disconnectedCallback(){this.connected=!1,this.initializationToken+=1,this.destroyMap()}async ensureMarkerVisible(t,e){const r=++this.markerVisibilityToken;if(this.cancelMarkerVisibilityPan?.(),!this.isMarkerVisibilityCurrent(r))return"unavailable";let a=!1;for(let i=0;i<3;i+=1){if(!this.isMarkerVisibilityCurrent(r))return"unavailable";const i=this.map,n=this.canvas,o=this.markerController;if(!i||!n||!o)return"unavailable";const s=o.getVisibilityTarget(t);if(!s)return"unavailable";const l=this.toViewportRect(n.getBoundingClientRect()),c=this.getMarkerVisibilityOcclusions(e),d=s.rendered?Ct(s.rendered.element,s.rendered.kind):this.getCoordinateRect(s.latitude,s.longitude,l);if(s.rendered&&zt(d,l,c))return a?"panned":"visible";const h=Mt(d,l,c);if(!h)return"constrained";if(Math.abs(h.x)<.01&&Math.abs(h.y)<.01){if(o.syncSelection(),!this.isMarkerVisibilityCurrent(r))return"unavailable";if(await this.waitForMarkerLayout(),!this.isMarkerVisibilityCurrent(r))return"unavailable"}else{if(!this.isMarkerVisibilityCurrent(r))return"unavailable";if(await this.panByMarkerTranslation(i,h.x,h.y,r),!this.isMarkerVisibilityCurrent(r))return"unavailable";if(a=!0,!this.isMarkerVisibilityCurrent(r))return"unavailable";if(await this.waitForMarkerLayout(),!this.isMarkerVisibilityCurrent(r))return"unavailable"}}if(!this.isMarkerVisibilityCurrent(r))return"unavailable";const i=this.map,n=this.canvas,o=this.markerController?.getVisibilityTarget(t);if(!i||!n||!o)return"unavailable";if(!o.rendered)return"constrained";const s=this.toViewportRect(n.getBoundingClientRect());return zt(Ct(o.rendered.element,o.rendered.kind),s,this.getMarkerVisibilityOcclusions(e))?a?"panned":"visible":"constrained"}handleBaseLayerChange(){this.scheduleBaseLayerSync()}handleTilePreloadBufferChange(){const t=this.getProvider(),e=this.layerController?.getActiveState().activeProvider;(function(t,e){return"tiles"===t||"tiles"===e})(t,e)&&this.scheduleBaseLayerSync()}handleVectorPaddingChange(){const t=this.getProvider(),e=this.layerController?.getActiveState().activeProvider;(function(t,e){return"vector"===t||"vector"===e})(t,e)&&this.scheduleBaseLayerSync()}scheduleBaseLayerSync(){this.map?this.baseLayerSyncQueued||(this.baseLayerSyncQueued=!0,queueMicrotask((()=>{this.baseLayerSyncQueued=!1,this.connected&&this.map&&this.syncBaseLayer()}))):this.initializeMap()}handleMarkersChange(){this.markerController?.sync(this.markers)}handleMarkerClusteringChange(){this.markerController?.sync(this.markers)}handleSelectedMarkerChange(){this.markerController?.syncSelection()}handleViewChange(){this.syncView(!0)}handleZoomLimitsChange(){if(!this.map)return;const{minimum:t,maximum:e}=this.getZoomLimits();this.map.setMinZoom(t),this.map.setMaxZoom(e),this.syncView(),this.syncBaseLayer(),this.markerController?.sync(this.markers)}handleBoundsChange(){this.syncBounds(!0)}handleZoomControlsChange(){this.map&&(this.destroyMap(),this.initializeMap())}setCanvas=t=>{this.canvas=t??void 0};handleMapClick=t=>{this.qMapClick.emit({latitude:t.latlng.lat,longitude:t.latlng.lng,originalEvent:t.originalEvent})};async initializeMap(){if(this.map||!this.canvas||!this.connected||"undefined"==typeof window)return;const t=++this.initializationToken;this.setProviderStatus("initializing",void 0,!1,!0);try{const r=this.leaflet??await import("./p-2bWqVyTo.js").then((function(t){return t.l}));if(this.leaflet=r,t!==this.initializationToken||!this.canvas||!this.connected||!this.el.isConnected)return;const{minimum:a,maximum:i}=this.getZoomLimits(),n=b(this.maxBounds),o=!this.prefersReducedMotion();if(this.map=r.map(this.canvas,{attributionControl:!1,fadeAnimation:o,inertia:!1,keyboard:!0,markerZoomAnimation:o,maxBounds:(e=n,"valid"===e.kind?e.leafletBounds:void 0),maxBoundsViscosity:v(this.maxBoundsViscosity),maxZoom:i,minZoom:a,trackResize:!1,wheelDebounceTime:o?16:40,wheelPxPerZoomLevel:o?120:60,zoomAnimation:o,zoomControl:this.zoomControls,zoomDelta:o?.5:1,zoomSnap:o?.25:1}),"invalid"===n.kind?this.reportInvalidBounds(n.message):this.lastInvalidBoundsInput=void 0,this.bindMapEvents(this.map),this.createControllers(this.map,r),this.syncView(),await this.syncBaseLayer(),t!==this.initializationToken||!this.map||!this.connected)return;this.markerController?.sync(this.markers),this.observeResize(),this.map.invalidateSize({animate:!1,pan:!1}),this.qReady.emit()}catch(e){if(t!==this.initializationToken)return;this.destroyMap(),this.errorMessage="Map failed to initialize.",this.setProviderStatus("error",void 0,!1),this.reportError("leaflet-initialization-failed",e,!1)}var e}bindMapEvents(t){t.on("click",this.handleMapClick)}unbindMapEvents(t){t.off("click",this.handleMapClick)}createControllers(t,e){this.layerController=new u({attach:async(e,r,a)=>{if("tiles"===r){const r=e;a.replacing?await function(t,e={}){const{loadingPolicy:r="full-batch",signal:a,startLoading:i,timeoutMs:n=Nt}=e;return new Promise(((e,o)=>{if(a?.aborted)return void o(It());let s,l=!1;const c=r=>{l||(l=!0,t.off("load",d),t.off("tileload",h),t.off("tileerror",u),a?.removeEventListener("abort",m),void 0!==s&&clearTimeout(s),r?o(r):e())},d=()=>"full-batch"===r?c():c(new Error("Raster tiles failed to load.")),h=()=>{"progressive"===r&&c()},u=()=>{"full-batch"===r&&c(new Error("Raster tiles failed to load."))},m=()=>c(It());if(t.on("load",d),t.on("tileload",h),t.on("tileerror",u),a?.addEventListener("abort",m,{once:!0}),s=setTimeout((()=>c(new Error("Raster tile loading timed out."))),Math.max(0,n)),i)try{i(),t.isLoading()||c()}catch(t){c(function(t){return t instanceof Error?t:new Error(String(t))}(t))}}))}(r,{loadingPolicy:this.getRasterTileLoadingPolicy(),signal:a.signal,startLoading:()=>e.addTo(t)}):e.addTo(t)}else e.addTo(t);"vector"===r&&await function(t){const e=t.getMaplibreMap;if("function"!=typeof e)return Promise.reject(new Error("QMap: the vector layer did not expose its MapLibre map."));const r=e.call(t);return r.loaded()?Promise.resolve():new Promise(((t,e)=>{const a=()=>o(t),i=t=>{o((()=>e(t.error??new Error("QMap: the vector style failed to load."))))},n=window.setTimeout((()=>{o((()=>e(new Error("QMap: the vector style timed out while loading."))))}),15e3),o=t=>{window.clearTimeout(n),r.off("load",a),r.off("error",i),t()};r.on("load",a),r.on("error",i)}))}(e)},createGoogle:async t=>(await function(t){if("undefined"==typeof window||"undefined"==typeof document)return Promise.reject(new Error("QMap: Google Maps is only available in a browser environment."));if(_())return Promise.resolve();const e=t.trim(),r=window.google?.maps?.importLibrary;return w?k&&e&&k!==e?Promise.reject(new Error("QMap: Google Maps is already loading with a different API key.")):w:r?(w=r("maps").then((()=>M())).catch((t=>{throw w=void 0,new Error("QMap: Google Maps failed to load.",{cause:t})})),w):e?(k=e,w=function(t){const e=window,r=e.google,a=r?.maps,i="__webquarkGoogleMapsReady"+ ++x,n=e,o=document.createElement("script"),s=new URLSearchParams({callback:i,key:t,loading:"async",v:"quarterly"});o.async=!0,o.defer=!0,o.src=`https://maps.googleapis.com/maps/api/js?${s.toString()}`,o.dataset.webquarkGoogleMaps="true";const l=document.querySelector("script[nonce]")?.nonce;return l&&(o.nonce=l),new Promise(((t,s)=>{const l=t=>{delete n[i],o.onerror=null,t&&(o.remove(),function(t,e,r){e?(t.google=e,r?e.maps=r:delete e.maps):delete t.google}(e,r,a))};n[i]=()=>{try{M(),l(!1),t()}catch(t){l(!0),s(t)}},o.onerror=()=>{l(!0),s(new Error("The Google Maps script could not be loaded."))},document.head.append(o)}))}(e).catch((t=>{throw k=void 0,w=void 0,new Error("QMap: Google Maps failed to load.",{cause:t})})),w):Promise.reject(new Error("QMap: A Google Maps API key is required."))}(t.googleApiKey),new(await function(t){return q||(q=async function(t){if("undefined"==typeof window)throw new Error("QMap: GoogleMutant is only available in a browser environment.");const e=globalThis,r=t.gridLayer,a=Object.prototype.hasOwnProperty,i=a.call(e,"L"),n=e.L,o=a.call(r,"googleMutant"),s=r.googleMutant;e.L=t;try{const t=await import("./p-DNFGt02p.js");if("function"!=typeof t.default)throw new Error("QMap: GoogleMutant did not expose its default constructor.");return t.default}finally{o?r.googleMutant=s:delete r.googleMutant,i?e.L=n:delete e.L}}(t).catch((t=>{throw q=void 0,t}))),q}(e))({type:t.googleMapType,minZoom:t.minZoom,maxZoom:t.maxZoom})),createTiles:t=>{const r=this.getRasterTileLoadingPolicy();return m(e,t.tileUrl,function(t,e,r,a="full-batch"){return{attribution:"",minZoom:t,maxZoom:e,..."progressive"===a?{updateWhenZooming:!0}:{},...r>0?{updateInterval:50,updateWhenIdle:!1,updateWhenZooming:!0}:{}}}(t.minZoom,t.maxZoom,t.tilePreloadBuffer,r),t.tilePreloadBuffer,r)},createVector:async t=>(await function(t){return y||(y=async function(t){if("undefined"==typeof window)throw new Error("QMap: the vector provider is only available in a browser environment.");await import("./p-BEBDDqVT.js").then((function(t){return t.l}));const e=t.maplibreGL;if("function"!=typeof e)throw new Error("QMap: MapLibre did not register its Leaflet layer factory.");return e}(t).catch((t=>{throw y=void 0,t}))),y}(e))({attributionControl:!1,fadeDuration:750,interactive:!1,maxTileCacheZoomLevels:6,maxZoom:t.maxZoom,minZoom:t.minZoom,padding:t.vectorPadding,style:t.vectorStyleUrl,updateInterval:16})}),this.markerController=new qt({map:t,leaflet:e,getSelectedMarkerId:()=>this.selectedMarkerId,getClusteringOptions:()=>function(t,e,r,a,i){const n=Number.isFinite(i)?Math.max(0,Math.floor(i)):19;return{enabled:t,radius:Number.isFinite(e)?ot(e,1,200):48,minPoints:Number.isFinite(r)?ot(r,2,1e3):2,maxZoom:Number.isFinite(a)?ot(a,0,n):Math.max(0,n-1)}}(this.clusterMarkers,this.clusterRadius,this.clusterMinPoints,this.clusterMaxZoom,t.getMaxZoom()),prefersReducedMotion:()=>this.prefersReducedMotion(),onMarkerSelect:(t,e)=>this.qMarkerSelect.emit({marker:t,originalEvent:e}),onClusterSelect:t=>this.qClusterSelect.emit(t).defaultPrevented})}async syncBaseLayer(){const t=this.layerController;if(!t)return;const e=this.getProvider(),r=t.getActiveState();this.errorMessage=void 0,this.setProviderStatus("initializing",r.activeProvider,r.usingFallback);const{minimum:a,maximum:i}=this.getZoomLimits(),n=await t.sync({requestedProvider:e,tileUrl:this.tileUrl.trim(),tilePreloadBuffer:(o=this.tilePreloadBuffer,Number.isFinite(o)?Math.min(4,Math.max(0,Math.round(o))):0),vectorStyleUrl:this.vectorStyleUrl.trim(),vectorPadding:Tt(this.vectorPadding),googleApiKey:this.googleApiKey.trim(),googleApiAvailable:!!_()||"undefined"!=typeof window&&"function"==typeof window.google?.maps?.importLibrary,googleMapType:this.getGoogleMapType(),minZoom:a,maxZoom:i});var o;if(t===this.layerController&&"stale"!==n.kind)if("empty"!==n.kind){if("ready"===n.kind)return n.warning&&this.reportError("provider-initialization-failed",n.warning,!0),void this.setProviderStatus("ready",n.activeProvider,n.usingFallback);this.reportError("provider-initialization-failed",n.error,!0),n.fallbackError&&this.reportError("fallback-initialization-failed",n.fallbackError,!0),this.errorMessage=n.activeProvider?"The requested map provider failed. The previous map remains available.":"Map imagery failed to load.",this.setProviderStatus("error",n.activeProvider,n.usingFallback)}else this.setProviderStatus("empty",void 0,!1)}getZoomLimits(){const t=Number.isFinite(this.minZoom)?this.minZoom:0,e=Number.isFinite(this.maxZoom)?this.maxZoom:19;return{minimum:t,maximum:Math.max(t,e)}}getCenter(){return[Number.isFinite(this.centerLatitude)?Math.max(-90,Math.min(90,this.centerLatitude)):0,Number.isFinite(this.centerLongitude)?Math.max(-180,Math.min(180,this.centerLongitude)):0]}getZoom(){const{minimum:t,maximum:e}=this.getZoomLimits(),r=Number.isFinite(this.zoom)?this.zoom:t;return Math.max(t,Math.min(e,r))}getProvider(){return"google"===this.provider||"vector"===this.provider?this.provider:"tiles"}getRasterTileLoadingPolicy(){return"progressive"===this.rasterTileLoadingPolicy?"progressive":"full-batch"}getGoogleMapType(){return Ut.includes(this.googleMapType)?this.googleMapType:"roadmap"}syncView(t=!1){this.map?.setView(this.getCenter(),this.getZoom(),{animate:t&&!this.prefersReducedMotion()})}getMarkerVisibilityOcclusions(t){const e=[...t],r=this.el.shadowRoot;if(!r)return e;for(const t of Array.from(r.querySelectorAll(".leaflet-control, .map-attribution"))){const r=t.ownerDocument.defaultView?.getComputedStyle(t);if("none"===r?.display||"hidden"===r?.visibility)continue;const a=t.getBoundingClientRect();a.width<=0||a.height<=0||e.push(this.toViewportRect(a))}return e}getCoordinateRect(t,e,r){const a=this.map?.latLngToContainerPoint([t,e]),i=r.left+(a?.x??0),n=r.top+(a?.y??0);return{top:n-.5,right:i+.5,bottom:n+.5,left:i-.5}}toViewportRect(t){return{top:t.top,right:t.right,bottom:t.bottom,left:t.left}}async panByMarkerTranslation(t,e,r,a){const i=!this.prefersReducedMotion();await new Promise((n=>{const o=this.el.ownerDocument.defaultView,s=Date.now();let l,c,d=!1;const h=()=>{d||(d=!0,t.off("moveend",u),void 0!==l&&o?.clearTimeout(l),void 0!==c&&o?.clearTimeout(c),this.cancelMarkerVisibilityPan===m&&(this.cancelMarkerVisibilityPan=void 0),n())},u=()=>{if(d)return;t.off("moveend",u),void 0!==l&&o?.clearTimeout(l);const e=i?Math.max(0,275-(Date.now()-s)):0;e>0&&o?c=o.setTimeout(h,e):h()},m=()=>{d||(t.stop(),h())};this.isMarkerVisibilityCurrent(a)?(this.cancelMarkerVisibilityPan=m,t.once("moveend",u),l=o?.setTimeout(u,500),t.panBy([-Rt(e),-Rt(r)],{animate:i})):h()}))}async waitForMarkerLayout(){await new Promise((t=>{const e=this.el.ownerDocument.defaultView;e&&"function"==typeof e.requestAnimationFrame?e.requestAnimationFrame((()=>t())):queueMicrotask(t)}))}isMarkerVisibilityCurrent(t){return t===this.markerVisibilityToken&&this.connected}prefersReducedMotion(){return"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}syncBounds(t){if(!this.map)return;const e=b(this.maxBounds);!function(t,e,r){t.options.maxBoundsViscosity=v(r),"invalid"!==e.kind&&t.setMaxBounds("valid"===e.kind?e.leafletBounds:void 0)}(this.map,e,this.maxBoundsViscosity),"invalid"===e.kind?t&&this.reportInvalidBounds(e.message):this.lastInvalidBoundsInput=void 0}reportInvalidBounds(t){this.lastInvalidBoundsInput!==this.maxBounds&&(this.lastInvalidBoundsInput=this.maxBounds,this.reportError("invalid-max-bounds",new Error(t),!0))}setProviderStatus(t,e,r,a=!1){const i=t!==this.providerStatus||e!==this.activeProvider||r!==this.usingFallback||this.getProvider()!==this.reportedRequestedProvider;this.providerStatus=t,this.activeProvider=e,this.usingFallback=r,this.reportedRequestedProvider=this.getProvider(),(i||a)&&this.qStatusChange.emit({status:t,requestedProvider:this.getProvider(),activeProvider:e,usingFallback:r})}reportError(t,e,r){this.qError.emit({code:t,message:e instanceof Error?e.message:String(e),requestedProvider:this.getProvider(),recoverable:r})}observeResize(){this.canvas&&"undefined"!=typeof ResizeObserver&&(this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver((()=>this.scheduleResize())),this.resizeObserver.observe(this.canvas))}scheduleResize(){void 0!==this.resizeFrame&&cancelAnimationFrame(this.resizeFrame),this.resizeFrame=requestAnimationFrame((()=>{this.resizeFrame=void 0,this.map?.invalidateSize({animate:!1,debounceMoveend:!0,pan:!1}),this.syncBounds(!1)}))}destroyMap(){this.markerVisibilityToken+=1,this.cancelMarkerVisibilityPan?.(),this.cancelMarkerVisibilityPan=void 0,this.resizeObserver?.disconnect(),this.resizeObserver=void 0,void 0!==this.resizeFrame&&(cancelAnimationFrame(this.resizeFrame),this.resizeFrame=void 0),this.markerController?.destroy(),this.markerController=void 0,this.layerController?.destroy(),this.layerController=void 0;const t=this.map;t&&(this.unbindMapEvents(t),t.remove()),this.map=void 0}renderAttribution(){if("tiles"!==this.activeProvider&&"vector"!==this.activeProvider)return null;const t=this.attribution.trim();if(!t)return null;const e=this.getAttributionUrl();return e?a("a",{class:"map-attribution",part:"attribution",href:e,target:"_blank",rel:"noopener noreferrer"},t,a("span",{class:"visually-hidden"}," (opens in a new tab)")):a("span",{class:"map-attribution",part:"attribution"},t)}getAttributionUrl(){const t=this.attributionUrl.trim();if(t)try{const e=new URL(t,this.el.ownerDocument.baseURI);return"https:"===e.protocol||"http:"===e.protocol?t:void 0}catch{return}}render(){return a("div",{key:"e8f0a6a23f0c2e874424e35b088bd3091ecb23b6",class:"map-surface",part:"surface"},a("div",{key:"fe43fc91c3c263d01cfcee5c094df092fd74c6c5",class:"map-canvas",part:"canvas",role:"region","aria-label":this.ariaLabel,"aria-busy":"initializing"===this.providerStatus?"true":void 0,ref:this.setCanvas}),a("q-icon",{key:"39e345de020fec0c182422351b406f41758bae82",class:"map-icon-registration","aria-hidden":"true"}),"empty"===this.providerStatus&&a("div",{key:"d6aa4d764750615fe1c74b800c092f12c9fb4a9b",class:"map-empty",part:"empty",role:"status"},a("slot",{key:"4935d5cf52f507765594a42678a783bb08dce870",name:"empty"},"Map provider is not configured.")),"error"===this.providerStatus&&a("div",{key:"a728fe92b6349a754701277fa60ec69c8b9d83a5",class:"map-empty map-error",part:"error",role:"alert"},a("slot",{key:"8190ca2bc3c40b43f85c3505ce9e61c46929ebfb",name:"error"},this.errorMessage??"Map imagery is unavailable.")),this.renderAttribution())}static get watchers(){return{provider:[{handleBaseLayerChange:0}],tileUrl:[{handleBaseLayerChange:0}],rasterTileLoadingPolicy:[{handleBaseLayerChange:0}],vectorStyleUrl:[{handleBaseLayerChange:0}],googleApiKey:[{handleBaseLayerChange:0}],googleMapType:[{handleBaseLayerChange:0}],tilePreloadBuffer:[{handleTilePreloadBufferChange:0}],vectorPadding:[{handleVectorPaddingChange:0}],markers:[{handleMarkersChange:0}],clusterMarkers:[{handleMarkerClusteringChange:0}],clusterRadius:[{handleMarkerClusteringChange:0}],clusterMinPoints:[{handleMarkerClusteringChange:0}],clusterMaxZoom:[{handleMarkerClusteringChange:0}],selectedMarkerId:[{handleSelectedMarkerChange:0}],centerLatitude:[{handleViewChange:0}],centerLongitude:[{handleViewChange:0}],zoom:[{handleViewChange:0}],minZoom:[{handleZoomLimitsChange:0}],maxZoom:[{handleZoomLimitsChange:0}],maxBounds:[{handleBoundsChange:0}],maxBoundsViscosity:[{handleBoundsChange:0}],zoomControls:[{handleZoomControlsChange:0}]}}};function Rt(t){return Math.sign(t)*Math.ceil(Math.abs(t))}Ot.style=":host{display:block;width:100%;height:var(--q-map-height, 100%);min-width:0;min-height:var(--q-map-min-height, 240px);box-sizing:border-box}.map-surface{position:relative;width:100%;height:100%;min-height:inherit;box-sizing:border-box;overflow:hidden;background:var(--q-map-bg, var(--q-bg-surface-1, #1f2937));border:var(--q-map-border, var(--q-border, 1px solid var(--q-border-color, #374151)));border-radius:var(--q-map-radius, var(--q-radius-lg, 11px))}.map-canvas{width:100%;height:100%;min-height:inherit;background:inherit;outline:none}.map-canvas:focus-visible{box-shadow:inset 0 0 0 2px var(--q-color-primary, #60a5fa)}.map-icon-registration{display:none}.map-empty{position:absolute;z-index:900;top:50%;left:50%;max-width:calc(100% - 32px);padding:8px 12px;transform:translate(-50%, -50%);border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-bg-base, #111827);color:var(--q-fg-muted, #9ca3af);box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.2));font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-sm, 0.8rem);line-height:1.4;text-align:center;pointer-events:none}.map-error{color:var(--q-color-danger, #ef4444)}.map-attribution{position:absolute;z-index:1000;right:0;bottom:0;max-width:calc(100% - 8px);padding:2px 6px;overflow:hidden;background:var(--q-map-attribution-bg, var(--q-bg-base, #111827));color:var(--q-map-attribution-color, var(--q-fg-muted, #9ca3af));font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-xs, 0.7rem);line-height:1.4;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}a.map-attribution:hover,a.map-attribution:focus-visible{color:var(--q-fg-base, #f9fafb);text-decoration:underline}a.map-attribution:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.visually-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-tooltip-pane{position:absolute;top:0;left:0}.leaflet-container{overflow:hidden;-webkit-tap-highlight-color:transparent;touch-action:none}.maplibregl-map{position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.maplibregl-canvas{position:absolute;top:0;left:0}.maplibregl-control-container{display:none}.leaflet-zoom-animated{transform-origin:0 0}.leaflet-tile-container.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform 250ms cubic-bezier(0, 0, 0.25, 1);will-change:transform}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{display:block;user-select:none;-webkit-user-drag:none}.leaflet-container .leaflet-tile-pane img,.leaflet-container .leaflet-tile{width:auto;max-width:none !important;max-height:none !important;padding:0}.leaflet-tile-pane{filter:var(--q-map-tile-filter, none)}.leaflet-tile{visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{position:relative;z-index:800;float:left;clear:both;pointer-events:auto}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive{pointer-events:auto}.leaflet-grab{cursor:grab}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-marker-draggable{cursor:grabbing}.leaflet-interactive{cursor:pointer}.leaflet-bar{overflow:hidden;border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-bg-base, #111827);box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.2))}.leaflet-bar a{display:block;width:30px;height:30px;border-bottom:1px solid var(--q-border-color, #374151);background:var(--q-bg-base, #111827);color:var(--q-fg-base, #f9fafb);font:700 18px/30px var(--q-font-family, sans-serif);text-align:center;text-decoration:none}.leaflet-bar a:last-child{border-bottom:0}.leaflet-bar a:hover,.leaflet-bar a:focus-visible{background:var(--q-bg-surface-2, #374151);color:var(--q-color-primary, #60a5fa)}.leaflet-bar a:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.leaflet-bar a.leaflet-disabled{color:var(--q-fg-disabled, #6b7280);cursor:default}.q-map-marker-position{--q-map-marker-rendered-size:var(--q-map-marker-size, 20px);width:var(--q-map-marker-rendered-size) !important;height:var(--q-map-marker-rendered-size) !important;margin-top:calc(var(--q-map-marker-rendered-size) * -0.5) !important;margin-left:calc(var(--q-map-marker-rendered-size) * -0.5) !important}.q-map-marker-position.size-small{--q-map-marker-rendered-size:var(--q-map-marker-size-small, 16px)}.q-map-marker-position.size-medium{--q-map-marker-rendered-size:var(--q-map-marker-size-medium, var(--q-map-marker-size, 20px))}.q-map-marker-position.size-large{--q-map-marker-rendered-size:var(--q-map-marker-size-large, 24px)}.q-map-marker{position:relative;display:grid;width:100%;height:100%;place-items:center;box-sizing:border-box;border:3px solid var(--q-bg-base, #111827);border-radius:50%;background:var(--q-map-marker-color, var(--q-color-primary, #60a5fa));box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.3));outline:none;transition:box-shadow 160ms ease}.q-map-marker.variant-success{background:var(--q-map-marker-success, var(--q-color-success, #22c55e))}.q-map-marker.variant-warning{background:var(--q-map-marker-warning, var(--q-color-warning, #f59e0b))}.q-map-marker.variant-danger{background:var(--q-map-marker-danger, var(--q-color-danger, #ef4444))}.q-map-marker.variant-muted{background:var(--q-map-marker-muted, var(--q-fg-muted, #9ca3af))}.q-map-marker.is-selected{box-shadow:0 0 0 3px var(--q-map-marker-selected-color, var(--q-fg-base, #f9fafb)), var( --q-map-marker-selected-shadow, var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3)) )}.q-map-marker:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:4px}.q-map-marker__center{display:grid;width:30%;height:30%;place-items:center;overflow:hidden;border-radius:50%;background:var(--q-bg-base, #111827);pointer-events:none}.q-map-marker.has-content{padding:var(--q-map-marker-content-gap, 2px)}.q-map-marker.has-content .q-map-marker__center{width:100%;height:100%;background:var(--q-map-marker-content-bg, var(--q-bg-base, #111827));color:var(--q-map-marker-content-color, var(--q-fg-base, #f9fafb));font:700 clamp(0.5rem, calc(var(--q-map-marker-rendered-size, var(--q-map-marker-size, 20px)) * 0.25), 0.75rem) / 1 var(--q-font-family, sans-serif)}.q-map-marker__fallback,.q-map-marker__image{grid-area:1 / 1}.q-map-marker__fallback{max-width:100%;overflow:hidden;text-overflow:clip;white-space:nowrap}.q-map-marker__image{display:block;width:100%;height:100%;border-radius:inherit;object-fit:cover}.q-map-marker__image[hidden]{display:none}.q-map-marker__content{position:relative;z-index:1;display:grid;width:100%;height:100%;place-items:center;pointer-events:none}.q-map-marker.kind-icon{border-radius:var(--q-radius-md, 8px)}.q-map-marker.kind-icon .q-map-marker__center{border-radius:calc(var(--q-radius-md, 8px) - 3px)}.q-map-marker__icon{width:var(--q-map-marker-icon-size, 58%) !important;height:var(--q-map-marker-icon-size, 58%) !important;transform:translate( var(--q-map-marker-icon-offset-x, 0), var(--q-map-marker-icon-offset-y, 0) );color:var(--q-map-marker-content-color, var(--q-fg-base, #f9fafb));pointer-events:none}.q-map-marker__icon[hidden]{display:none}.q-map-marker.ring-solid::after,.q-map-marker.ring-dashed::after{position:absolute;z-index:0;inset:-7px;box-sizing:border-box;border:2px solid var(--q-map-marker-ring-color, currentColor);border-radius:inherit;content:'';pointer-events:none}.q-map-marker.ring-dashed::after{border-style:dashed}.q-map-marker.is-pulsing::before{position:absolute;z-index:0;inset:-4px;border:2px solid var(--q-map-marker-pulse-color, var(--q-color-primary, #60a5fa));border-radius:inherit;content:'';pointer-events:none;animation:q-map-marker-pulse 1.8s ease-out infinite}@keyframes q-map-marker-pulse{0%{opacity:0.85;transform:scale(0.9)}75%,100%{opacity:0;transform:scale(1.8)}}.q-map-marker__badge{position:absolute;z-index:3;right:-7px;bottom:-6px;display:inline-flex;min-width:14px;height:14px;padding:0 3px;align-items:center;justify-content:center;gap:2px;box-sizing:border-box;border:2px solid var(--q-bg-base, #111827);border-radius:999px;background:var(--q-map-marker-color, var(--q-color-primary, #60a5fa));color:var(--q-fg-base, #f9fafb);font:700 8px/1 var(--q-font-family, sans-serif);white-space:nowrap}.q-map-marker__badge[hidden]{display:none}.q-map-marker__badge.variant-success{background:var(--q-map-marker-success, var(--q-color-success, #22c55e))}.q-map-marker__badge.variant-warning{background:var(--q-map-marker-warning, var(--q-color-warning, #f59e0b))}.q-map-marker__badge.variant-danger{background:var(--q-map-marker-danger, var(--q-color-danger, #ef4444))}.q-map-marker__badge.variant-muted{background:var(--q-map-marker-muted, var(--q-fg-muted, #9ca3af))}.q-map-marker__badge-icon{width:8px !important;height:8px !important}.q-map-marker__badge-icon[hidden],.q-map-marker__badge-text[hidden]{display:none}.q-map-cluster-position{width:var(--q-map-marker-cluster-size, 32px) !important;height:var(--q-map-marker-cluster-size, 32px) !important;margin-top:calc(var(--q-map-marker-cluster-size, 32px) * -0.5) !important;margin-left:calc(var(--q-map-marker-cluster-size, 32px) * -0.5) !important}.q-map-cluster{position:relative;display:grid;width:100%;height:100%;place-items:center;box-sizing:border-box;border:2px solid color-mix(in srgb, var(--q-color-primary, #60a5fa) 70%, white);border-radius:50%;background:color-mix(in srgb, var(--q-color-primary, #60a5fa) 24%, var(--q-bg-base, #111827));box-shadow:0 0 0 4px color-mix(in srgb, var(--q-color-primary, #60a5fa) 18%, transparent), var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3));color:var(--q-fg-base, #f9fafb);outline:none;transition:box-shadow 160ms ease}.q-map-cluster.contains-selection{box-shadow:0 0 0 3px var(--q-map-marker-selected-color, var(--q-fg-base, #f9fafb)), 0 0 0 7px color-mix(in srgb, var(--q-color-primary, #60a5fa) 28%, transparent), var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3))}.q-map-cluster:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:4px}.q-map-cluster__content{display:grid;width:100%;height:100%;place-items:center;pointer-events:none}.q-map-cluster__count{font:700 0.7rem/1 var(--q-font-family, sans-serif)}.leaflet-tooltip{position:absolute;box-sizing:border-box;white-space:nowrap;pointer-events:none;user-select:none}.q-map-callout{width:var(--q-map-marker-callout-width, var(--q-map-marker-callout-max-width, 220px));max-width:calc(100vw - 24px);padding:7px 9px;border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-map-marker-callout-bg, color-mix(in srgb, var(--q-bg-base, #111827) 94%, transparent));color:var(--q-fg-base, #f9fafb);box-shadow:var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3));font-family:var(--q-font-family, sans-serif)}.q-map-callout.leaflet-tooltip-top{margin-top:-20px}.q-map-callout.leaflet-tooltip-bottom{margin-top:20px}.q-map-callout.leaflet-tooltip-left{margin-left:-20px}.q-map-callout.leaflet-tooltip-right{margin-left:20px}.q-map-callout__content{display:grid;min-width:0;gap:2px}.q-map-callout__heading{display:flex;min-width:0;align-items:center;gap:6px}.q-map-callout__title,.q-map-callout__subtitle,.q-map-callout__meta{overflow:hidden;text-overflow:ellipsis}.q-map-callout__title{flex:1 1 auto;min-width:0;color:inherit;font-size:var(--q-font-size-sm, 0.8rem);font-weight:700}.q-map-callout__subtitle,.q-map-callout__meta{color:var(--q-fg-muted, #9ca3af);font-size:var(--q-font-size-xs, 0.7rem)}.q-map-callout__subtitle{min-width:0}.q-map-callout__status{--q-map-marker-callout-status-accent:var(--q-color-primary, #60a5fa);display:inline-flex;flex:none;max-width:var(--q-map-marker-callout-status-max-width, 45%);margin-inline-start:auto;min-height:18px;padding:2px 6px;align-items:center;overflow:hidden;box-sizing:border-box;border:1px solid color-mix(in srgb, var(--q-map-marker-callout-status-accent) 34%, transparent);border-radius:999px;background:color-mix(in srgb, var(--q-map-marker-callout-status-accent) 16%, transparent);color:var(--q-map-marker-callout-status-accent);font-size:var(--q-font-size-xs, 0.7rem);font-weight:600;line-height:1;text-overflow:ellipsis;white-space:nowrap}.q-map-callout__status.variant-success{--q-map-marker-callout-status-accent:var(--q-color-success, #34d399)}.q-map-callout__status.variant-warning{--q-map-marker-callout-status-accent:var(--q-color-warning, #fbbf24)}.q-map-callout__status.variant-danger{--q-map-marker-callout-status-accent:var(--q-color-danger, #f87171)}.q-map-callout__status.variant-muted{--q-map-marker-callout-status-accent:var(--q-fg-muted, #9ca3af)}.q-map-callout__meta{color:var(--q-map-marker-callout-meta-color, var(--q-color-primary, #60a5fa))}.q-map-callout__stats{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:6px 8px;margin:4px 0 0;padding:5px 0 0;border-top:1px solid color-mix(in srgb, var(--q-border-color, #374151) 70%, transparent)}.q-map-callout__stat{min-width:0}.q-map-callout__stat.layout-wide{grid-column:1 / -1}.q-map-callout__stat-label,.q-map-callout__stat-value{margin:0;overflow:hidden;text-overflow:ellipsis}.q-map-callout__stat-label{color:var(--q-fg-muted, #9ca3af);font-size:var(--q-font-size-2xs, 0.625rem);line-height:1.2;white-space:nowrap}.q-map-callout__stat-value{margin-top:1px;color:inherit;font-size:var(--q-font-size-xs, 0.7rem);font-weight:600;line-height:1.25;white-space:nowrap}.q-map-callout__stat.layout-wide .q-map-callout__stat-value{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal}.q-map-callout__subtitle[hidden],.q-map-callout__status[hidden],.q-map-callout__meta[hidden],.q-map-callout__stats[hidden]{display:none}@media (prefers-reduced-motion: reduce){.q-map-marker,.q-map-cluster{transition:none}.q-map-marker.is-pulsing::before{opacity:0.65;animation:none;transform:none}}";export{Ot as q_map}
@@ -1 +0,0 @@
1
- import{r as t}from"./p-BeeM-7Ku.js";function e(t,e){return e.forEach((function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach((function(n){if("default"!==n&&!(n in t)){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}))})),Object.freeze(t)}function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var r=t(),u=e({__proto__:null,default:n(r)},[r]);export{r as a,u as l}
@@ -1 +0,0 @@
1
- import{r,c as e,h as s}from"./p-DweBlExe.js";import{s as i}from"./p-Bj2RJb2E.js";import{c as t}from"./p-ByfrUWx1.js";function a(r){return r.assignedNodes({flatten:!0}).length>0}const o=class{constructor(s){r(this,s),this.qChange=e(this,"qChange"),this.qInput=e(this,"qInput"),this.qBlur=e(this,"qBlur"),this.qFocus=e(this,"qFocus"),this.qClick=e(this,"qClick"),s.$hostElement$["s-ei"]?this.internals=s.$hostElement$["s-ei"]:(this.internals=s.$hostElement$.attachInternals(),s.$hostElement$["s-ei"]=this.internals)}value="";placeholder="";label;ariaLabel=null;size="md";clearable=!1;disabled=!1;required=!1;error;errorMessage;name;type="text";min;max;step=1;internals;hasPrefix=!1;hasSuffix=!1;passwordVisible=!1;qChange;qInput;qBlur;qFocus;qClick;inputEl;initialValue="";watchValue(r){this.internals&&"function"==typeof this.internals.setFormValue&&this.internals.setFormValue(r)}componentWillLoad(){this.initialValue=this.value||"",this.internals&&"function"==typeof this.internals.setFormValue&&this.internals.setFormValue(this.value)}componentDidRender(){this.syncValidity()}formResetCallback(){this.value=this.initialValue,this.internals&&"function"==typeof this.internals.setFormValue&&this.internals.setFormValue(this.value)}async focusElement(){this.inputEl?.focus()}async clearValue(){this.handleClear()}async checkValidity(){return this.syncValidity(),"function"==typeof this.internals.checkValidity?this.internals.checkValidity():this.inputEl?.checkValidity?.()??!0}async reportValidity(){return this.syncValidity(),"function"==typeof this.internals.reportValidity?this.internals.reportValidity():this.inputEl?.reportValidity?.()??!0}handlePrefixSlotChange=r=>{this.hasPrefix=a(r.target)};handleSuffixSlotChange=r=>{this.hasSuffix=a(r.target)};syncValidity(){this.inputEl&&this.internals&&i({internals:this.internals,control:this.inputEl,disabled:this.disabled,customError:this.error||this.errorMessage})}handleInput=r=>{this.value=r.target.value,this.qInput.emit(this.value)};handleChange=r=>{this.value=r.target.value,this.qChange.emit(this.value)};resolveNumericBase(){let r=parseFloat(this.value);return isNaN(r)&&(r=null!=this.min&&this.min>0?this.min:null!=this.max&&this.max<0?this.max:0),r}clampNumericValue(r){let e=r;return null!=this.min&&(e=Math.max(this.min,e)),null!=this.max&&(e=Math.min(this.max,e)),e}stepValue(r){if(this.disabled)return;const e=null!=this.step?this.step:1,s=this.clampNumericValue(this.resolveNumericBase()+e*r);this.value=String(s),this.inputEl&&(this.inputEl.value=this.value),this.qInput.emit(this.value),this.qChange.emit(this.value)}handleIncrement=()=>{this.stepValue(1)};handleDecrement=()=>{this.stepValue(-1)};handleBlur=r=>{if("number"===this.type&&null!=this.value&&""!==this.value){const r=parseFloat(this.value);if(!isNaN(r)){let e=r;null!=this.min&&(e=Math.max(this.min,e)),null!=this.max&&(e=Math.min(this.max,e)),e!==r&&(this.value=String(e),this.inputEl&&(this.inputEl.value=this.value),this.qInput.emit(this.value),this.qChange.emit(this.value))}}this.qBlur.emit(r)};handleFocus=r=>{this.qFocus.emit(r)};handleClick=r=>{this.disabled||this.qClick.emit(r)};handleClear=()=>{this.value="",this.qInput.emit(this.value),this.qChange.emit(this.value),this.inputEl&&this.inputEl.focus()};handlePasswordToggle=r=>{if(r.preventDefault(),r.stopPropagation(),this.disabled||"password"!==this.type)return;const e=this.inputEl?.selectionStart??null,s=this.inputEl?.selectionEnd??null;this.passwordVisible=!this.passwordVisible,requestAnimationFrame((()=>{this.inputEl&&(this.inputEl.focus(),null!==e&&null!==s&&this.inputEl.setSelectionRange(e,s))}))};handleKeyDown=r=>{"number"!==this.type||this.disabled||("ArrowUp"===r.key?(r.preventDefault(),this.handleIncrement()):"ArrowDown"===r.key&&(r.preventDefault(),this.handleDecrement()))};render(){const r=!(!this.error&&!this.errorMessage),e=this.error||this.errorMessage,i=this.clearable&&!this.disabled&&this.value.length>0,t="password"===this.type&&!this.disabled,a=t&&this.passwordVisible?"text":this.type,o=this.hasSuffix||i||t,n=parseFloat(this.value),l="number"===this.type&&!isNaN(n),p=l&&null!=this.min&&n<=this.min,c=l&&null!=this.max&&n>=this.max,h=this.ariaLabel?.trim()||void 0;return s("div",{key:"08aa1cfd2e3f3c32bbc109dd0ced6d4f9ccbd5d2",class:{"input-wrapper":!0,"is-disabled":this.disabled,"has-error":r,[`size-${this.size}`]:!0}},this.label&&s("label",{key:"d6b6cd29067f2d5bcd872c4e0173c6df87cc41ae",class:"input-label",htmlFor:"q-field",part:"label"},this.label),s("div",{key:"06d4836978707b81d40dbbcbc2ca7a0547ea1031",class:"input-control",part:"control"},s("span",{key:"24b6d8d13280d030312a79f17b703aa259b00641",class:"prefix-container",style:{display:this.hasPrefix?"flex":"none"},part:"prefix"},s("slot",{key:"a82f32bc02cd210dcc10de561dd58baa25c6fd98",name:"prefix",onSlotchange:this.handlePrefixSlotChange})),s("input",{key:this.type,ref:r=>this.inputEl=r,id:"q-field",class:{"input-box":!0,"has-prefix-padding":this.hasPrefix,"has-suffix-padding":o},type:a,name:this.name,value:this.value,placeholder:this.placeholder,disabled:this.disabled,required:this.required,min:this.min,max:this.max,step:this.step,onInput:this.handleInput,onChange:this.handleChange,onBlur:this.handleBlur,onFocus:this.handleFocus,onClick:this.handleClick,onKeyDown:this.handleKeyDown,role:"number"===this.type?"spinbutton":void 0,"aria-valuenow":l?String(n):void 0,"aria-valuemin":"number"===this.type&&null!=this.min?String(this.min):void 0,"aria-valuemax":"number"===this.type&&null!=this.max?String(this.max):void 0,"aria-invalid":r?"true":"false","aria-describedby":r?"q-field-error":void 0,"aria-label":h}),"number"===this.type&&!this.disabled&&s("div",{key:"08151e8325b52cb1363090527e58e282f75c2ba5",class:"input-spinners",part:"spinners"},s("button",{key:"6210ff28366658b6de497f0ab94343859dfdcb43",class:"spinner-btn spinner-up",type:"button",onClick:this.handleIncrement,disabled:c,"aria-label":"Increase value"},s("svg",{key:"a138085cebfd388f28796127e54eaf40009b546a",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},s("path",{key:"ca8d2fc490c22b35cb87714e8091a9fb14d85357",d:"M18 15l-6-6-6 6"}))),s("button",{key:"acfd745899edc9124bdcbefcc42ee87480583982",class:"spinner-btn spinner-down",type:"button",onClick:this.handleDecrement,disabled:p,"aria-label":"Decrease value"},s("svg",{key:"da2417827c7b14538ad7437f0ce084174f46d00e",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},s("path",{key:"9a16d88f27c724581cc7d9f30aa27c2766b72429",d:"M6 9l6 6 6-6"})))),s("span",{key:"3393389368a778907b4a0de49ff5d6813912ee57",class:"suffix-container",style:{display:o?"flex":"none"},part:"suffix"},i&&s("button",{key:"c3eedebb165feb59fb7cf1d2956e55df57e9ea4b",class:"clear-btn",type:"button",onClick:this.handleClear,"aria-label":"Clear input"},s("svg",{key:"76351a3446784a5dc62060bea64b359aa1830da2",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},s("path",{key:"cb8c0fad30b1214b6689571e9905c07db158e092",d:"M18 6L6 18M6 6l12 12"}))),t&&s("button",{key:"0cbfd055abf302836fbfc7d4be8143d5e935022f",class:"password-toggle-btn",type:"button",onClick:this.handlePasswordToggle,"aria-label":this.passwordVisible?"Hide password":"Show password","aria-pressed":this.passwordVisible?"true":"false"},this.passwordVisible?s("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},s("path",{d:"M3 3l18 18"}),s("path",{d:"M10.58 10.58A2 2 0 0 0 12 14a2 2 0 0 0 1.42-.58"}),s("path",{d:"M9.88 4.24A10.2 10.2 0 0 1 12 4c7 0 10 8 10 8a18.5 18.5 0 0 1-4.08 5.19"}),s("path",{d:"M6.61 6.61A18.5 18.5 0 0 0 2 12s3 8 10 8a10.7 10.7 0 0 0 5.39-1.61"})):s("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},s("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),s("circle",{cx:"12",cy:"12",r:"3"}))),s("span",{key:"b1ca65ea1a0d63f5d521c5b7ae822d790f9e4cf7",style:{display:!i&&this.hasSuffix?"block":"none"}},s("slot",{key:"5374bbe5306e458245fbeffdcfeb487366b1ddb7",name:"suffix",onSlotchange:this.handleSuffixSlotChange})))),r&&s("span",{key:"3598e2888edc92705b862fb7197470378bbcfd2e",id:"q-field-error",class:"error-msg",part:"error-msg"},e))}static get delegatesFocus(){return!0}static get formAssociated(){return!0}static get watchers(){return{value:[{watchValue:0}]}}};o.style=':host{display:block;width:100%;box-sizing:border-box}.input-wrapper{display:flex;flex-direction:column;width:100%;box-sizing:border-box}.input-label{font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-sm, 0.7rem);font-weight:var(--q-font-weight-bold, 600);color:var(--q-fg-muted, #9ca3af);margin-bottom:6px;transition:color var(--q-transition-fast, 150ms ease)}.input-control{display:flex;align-items:stretch;position:relative;width:100%;background:var(--q-input-bg, var(--q-bg-surface-2, #374151));border:var(--q-input-border, var(--q-border, 1px solid var(--q-border-color, #4b5563)));border-radius:var(--q-input-radius, var(--q-radius-md, 8px));box-sizing:border-box;overflow:hidden;transition:border-color var(--q-transition-fast, 150ms ease), box-shadow var(--q-transition-fast, 150ms ease)}.input-box{width:100%;background:transparent;border:none;padding:var(--q-input-padding, 10px 14px);line-height:1.2;align-self:center;font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-base, 0.9rem);font-weight:var(--q-font-weight-normal, 400);color:var(--q-fg-base, #f9fafb);outline:none;box-sizing:border-box}.prefix-container,.suffix-container{display:flex;align-items:center;padding:0 12px;color:var(--q-fg-muted, #9ca3af);flex-shrink:0}.prefix-container{padding-right:0}.suffix-container{padding-left:0}.input-control:focus-within{border-color:var(--q-color-primary, #60a5fa);box-shadow:0 0 0 1px var(--q-color-primary, #60a5fa)}.input-wrapper:focus-within .input-label{color:var(--q-color-primary, #60a5fa)}.has-error .input-control{border-color:var(--q-color-danger, #ef4444) !important;box-shadow:none}.has-error.input-wrapper:focus-within .input-label,.has-error .input-label{color:var(--q-color-danger, #ef4444) !important}.error-msg{font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-sm, 0.7rem);font-weight:var(--q-font-weight-normal, 400);color:var(--q-color-danger, #ef4444);margin-top:6px}.clear-btn,.password-toggle-btn{background:transparent;border:none;cursor:pointer;padding:4px;padding-left:0;display:flex;align-items:center;justify-content:center;color:var(--q-fg-muted, #9ca3af);border-radius:50%;outline:none;transition:background var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease)}.clear-btn:hover,.password-toggle-btn:hover{background:var(--q-btn-hover-overlay, color-mix(in srgb, var(--q-fg-base, #f9fafb) 8%, transparent));color:var(--q-fg-base, #f9fafb)}.clear-btn svg,.password-toggle-btn svg{width:14px;height:14px}.is-disabled{opacity:0.6}.is-disabled .input-control{cursor:not-allowed;pointer-events:none}input.input-box[type="color"]{height:40px;padding:6px;cursor:pointer;background:transparent}input.input-box[type="color"]::-webkit-color-swatch-wrapper{padding:0}input.input-box[type="color"]::-webkit-color-swatch{border:none;border-radius:var(--q-radius-sm, 4px)}input.input-box[type="color"]::-moz-color-swatch{border:none;border-radius:var(--q-radius-sm, 4px)}.input-wrapper.size-sm .input-control{min-height:32px;height:32px}.input-wrapper.size-sm .input-label{font-size:var(--q-font-size-sm, 0.7rem)}.input-wrapper.size-sm .input-box{padding:4px 8px;font-size:var(--q-font-size-sm, 0.75rem)}.input-wrapper.size-sm .prefix-container,.input-wrapper.size-sm .suffix-container{padding:0 8px}.input-wrapper.size-sm .clear-btn svg,.input-wrapper.size-sm .password-toggle-btn svg{width:12px;height:12px}.input-wrapper.size-sm input.input-box[type="color"]{height:32px;padding:4px}.input-wrapper.size-md .input-label{font-size:var(--q-font-size-sm, 0.7rem)}.input-wrapper.size-md .input-box{padding:10px 14px;font-size:var(--q-font-size-base, 0.9rem)}.input-wrapper.size-md .prefix-container,.input-wrapper.size-md .suffix-container{padding:0 12px}.input-wrapper.size-md .clear-btn svg,.input-wrapper.size-md .password-toggle-btn svg{width:14px;height:14px}.input-wrapper.size-lg .input-label{font-size:var(--q-font-size-base, 0.9rem)}.input-wrapper.size-lg .input-box{padding:14px 18px;font-size:var(--q-font-size-lg, 1.1rem)}.input-wrapper.size-lg .prefix-container,.input-wrapper.size-lg .suffix-container{padding:0 14px}.input-wrapper.size-lg .clear-btn svg,.input-wrapper.size-lg .password-toggle-btn svg{width:16px;height:16px}.input-spinners{display:flex;flex-direction:column;border-left:1px solid var(--q-border-color, #4b5563);width:24px;margin-left:auto;box-sizing:border-box}.spinner-btn{flex:1;display:flex;align-items:center;justify-content:center;background:transparent;border:none;color:var(--q-fg-muted, #9ca3af);cursor:pointer;padding:0;margin:0;outline:none;transition:background var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease)}.spinner-btn:hover:not(:disabled){background:rgba(249, 250, 251, 0.08);color:var(--q-fg-base, #f9fafb)}.spinner-btn:disabled{opacity:0.3;cursor:not-allowed}.spinner-up{border-bottom:1px solid var(--q-border-color, #4b5563)}.spinner-btn svg{width:10px;height:10px}';const n=2*Math.PI*52,l=new Set(["sm","md","lg"]),p=class{constructor(e){r(this,e)}value=0;label;indeterminate=!1;ariaValueText=null;variant="linear";size="md";tone="primary";ariaLabel=null;render(){const r=Number.isFinite(this.value)?this.value:0,e=Math.min(Math.max(r,0),100);return"circular"==("circular"===this.variant?"circular":"linear")?this.renderCircular(e):this.renderLinear(e)}renderLinear(r){return s("div",{class:"progress-linear",style:this.customSizeStyle(),...this.progressAttributes(r,this.ariaValueText?.trim()||`${r}%`),part:"container track"},s("span",{class:{"progress-linear__fill":!0,"is-indeterminate":this.indeterminate},style:this.indeterminate?void 0:{width:`${r}%`},part:"fill"}))}renderCircular(r){const e=void 0!==this.label?this.label:`${r}%`,i=t(e,"var(--q-progress-font-size, var(--_q-progress-font-size))",5),a=this.indeterminate?.75*n:n-r/100*n;return s("div",{class:"progress-circular",style:this.customSizeStyle(),...this.progressAttributes(r,this.ariaValueText?.trim()||e),part:"container"},s("svg",{class:"progress-circular__svg",viewBox:"0 0 120 120"},s("g",{class:"progress-circular__rings"},s("circle",{class:"progress-circular__track",cx:60,cy:60,r:52,part:"track"}),s("circle",{class:"progress-circular__fill",cx:60,cy:60,r:52,"stroke-dasharray":n,"stroke-dashoffset":a,part:"fill"})),!this.indeterminate&&s("text",{class:"progress-circular__label",x:"50%",y:"50%",style:i,part:"label"},e)))}progressAttributes(r,e){return{role:"progressbar","aria-label":this.ariaLabel?.trim()||"Progress","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":this.indeterminate?void 0:r,"aria-valuetext":this.indeterminate?void 0:e}}customSizeStyle(){if("string"==typeof this.size&&l.has(this.size))return;const r="number"==typeof this.size?this.size:Number(this.size);return Number.isFinite(r)?{"--_q-progress-custom-size":`${Math.max(0,r)}px`}:void 0}};p.style=":host{display:block;width:100%;min-width:0;box-sizing:border-box;--_q-progress-linear-height:var(--q-progress-linear-height-md, 6px);--_q-progress-circular-size:var(--q-progress-circular-size-md, 120px);--_q-progress-stroke-width:var( --q-progress-circular-stroke-width-md, 8px );--_q-progress-font-size:var( --q-progress-circular-font-size-md, var(--q-font-size-lg, 1rem) );--_q-progress-track-color:var(--q-bg-surface-3, #22304d);--_q-progress-tone-color:var(--q-color-primary, #60a5fa)}:host([hidden]){display:none}:host([variant='circular']){display:inline-block;width:auto;--_q-progress-track-color:var(--q-border-color, #374151)}:host([size='sm']){--_q-progress-linear-height:var(--q-progress-linear-height-sm, 4px);--_q-progress-circular-size:var(--q-progress-circular-size-sm, 64px);--_q-progress-stroke-width:var( --q-progress-circular-stroke-width-sm, 6px );--_q-progress-font-size:var( --q-progress-circular-font-size-sm, var(--q-font-size-sm, 0.7rem) )}:host([size='lg']){--_q-progress-linear-height:var(--q-progress-linear-height-lg, 8px);--_q-progress-circular-size:var(--q-progress-circular-size-lg, 180px);--_q-progress-stroke-width:var( --q-progress-circular-stroke-width-lg, 10px );--_q-progress-font-size:var( --q-progress-circular-font-size-lg, calc(var(--q-font-size-lg, 1rem) * 1.5) )}:host([tone='neutral']){--_q-progress-tone-color:var(--q-fg-muted, #9ca3af)}:host([tone='primary']){--_q-progress-tone-color:var(--q-color-primary, #60a5fa)}:host([tone='success']){--_q-progress-tone-color:var(--q-color-success, #34d399)}:host([tone='warning']){--_q-progress-tone-color:var(--q-color-warning, #fbbf24)}:host([tone='danger']){--_q-progress-tone-color:var(--q-color-danger, #f87171)}.progress-linear{position:relative;width:100%;height:var( --q-progress-linear-height, var( --q-progress-bar-height, var(--_q-progress-custom-size, var(--_q-progress-linear-height)) ) );overflow:hidden;border-radius:var( --q-progress-linear-radius, var(--q-progress-bar-radius, 999px) );background:var( --q-progress-track-color, var(--q-progress-bar-track-color, var(--_q-progress-track-color)) )}.progress-linear__fill{display:block;height:100%;border-radius:inherit;background:var( --q-progress-fill-color, var(--q-progress-bar-fill-color, var(--_q-progress-tone-color)) );transition:width var( --q-progress-transition, var(--q-progress-bar-transition, var(--q-transition-normal, 250ms ease)) )}.progress-linear__fill.is-indeterminate{width:42%;animation:q-progress-linear-indeterminate var( --q-progress-indeterminate-duration, var(--q-progress-bar-indeterminate-duration, 1.4s) ) ease-in-out infinite}.progress-circular{width:var( --q-progress-circular-size, var( --q-progress-size, var(--_q-progress-custom-size, var(--_q-progress-circular-size)) ) );height:var( --q-progress-circular-size, var( --q-progress-size, var(--_q-progress-custom-size, var(--_q-progress-circular-size)) ) )}.progress-circular__svg{display:block;width:100%;height:100%}.progress-circular__rings{transform:rotate(-90deg);transform-origin:center}.progress-circular__track,.progress-circular__fill{fill:none;stroke-width:var( --q-progress-circular-stroke-width, var(--q-progress-stroke-width, var(--_q-progress-stroke-width)) )}.progress-circular__track{stroke:var(--q-progress-track-color, var(--_q-progress-track-color))}.progress-circular__fill{stroke:var( --q-progress-fill-color, var(--_q-progress-tone-color) );stroke-linecap:var(--q-progress-circular-linecap, round);transition:stroke-dashoffset var(--q-progress-transition, var(--q-transition-normal, 250ms ease))}.progress-circular__label{fill:var(--q-fg-base, #f9fafb);font-family:var(--q-font-family, inherit);font-size:var( --q-progress-circular-font-size, var(--q-progress-font-size, var(--_q-progress-font-size)) );font-weight:var( --q-progress-circular-font-weight, var(--q-progress-font-weight, var(--q-font-weight-bold, 600)) );text-anchor:middle;dominant-baseline:central}:host([variant='circular'][indeterminate]) .progress-circular__rings{animation:q-progress-circular-indeterminate var(--q-progress-indeterminate-duration, 1.4s) linear infinite}@keyframes q-progress-linear-indeterminate{0%{transform:translateX(-110%)}100%{transform:translateX(255%)}}@keyframes q-progress-circular-indeterminate{0%{transform:rotate(-90deg)}100%{transform:rotate(270deg)}}@media (prefers-reduced-motion: reduce){.progress-linear__fill,.progress-circular__fill{transition:none}.progress-linear__fill.is-indeterminate,:host([variant='circular'][indeterminate]) .progress-circular__rings{animation-duration:2.8s}}";export{o as q_input,p as q_progress}