ablok-components 0.3.28 → 0.3.29

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.
@@ -0,0 +1,1871 @@
1
+ import { defineComponent as O, ref as p, inject as S, onMounted as j, markRaw as P, nextTick as g, h as U, reactive as mt, provide as M, computed as te, onBeforeUnmount as X, watch as Ze, onUnmounted as de, render as vt } from "vue";
2
+ const ue = (e, o) => {
3
+ for (const t of Object.keys(o))
4
+ e.on(t, o[t]);
5
+ }, ce = (e) => {
6
+ for (const o of Object.keys(e)) {
7
+ const t = e[o];
8
+ t && G(t.cancel) && t.cancel();
9
+ }
10
+ }, We = (e) => !e || typeof e.charAt != "function" ? e : e.charAt(0).toUpperCase() + e.slice(1), G = (e) => typeof e == "function", h = (e, o, t) => {
11
+ for (const r in t) {
12
+ const n = "set" + We(r);
13
+ e[n] ? Ze(
14
+ () => t[r],
15
+ (l, s) => {
16
+ e[n](l, s);
17
+ }
18
+ ) : o[n] && Ze(
19
+ () => t[r],
20
+ (l) => {
21
+ o[n](l);
22
+ }
23
+ );
24
+ }
25
+ }, b = (e, o, t = {}) => {
26
+ const r = { ...t };
27
+ for (const n in e) {
28
+ const l = o[n], s = e[n];
29
+ l && (l && l.custom === !0 || s !== void 0 && (r[n] = s));
30
+ }
31
+ return r;
32
+ }, C = (e) => {
33
+ const o = {}, t = {};
34
+ for (const r in e)
35
+ if (r.startsWith("on") && !r.startsWith("onUpdate") && r !== "onReady") {
36
+ const n = r.slice(2).toLocaleLowerCase();
37
+ o[n] = e[r];
38
+ } else
39
+ t[r] = e[r];
40
+ return { listeners: o, attrs: t };
41
+ }, Je = async (e) => {
42
+ const o = await Promise.all([
43
+ import("./marker-icon-2x-DVSLMKfE.mjs"),
44
+ import("./marker-icon-DbhCZIpd.mjs"),
45
+ import("./marker-shadow-ZZvxUwqf.mjs")
46
+ ]);
47
+ delete e.Default.prototype._getIconUrl, e.Default.mergeOptions({
48
+ iconRetinaUrl: o[0].default,
49
+ iconUrl: o[1].default,
50
+ shadowUrl: o[2].default
51
+ });
52
+ }, V = (e) => {
53
+ const o = p(
54
+ (...r) => console.warn(`Method ${e} has been invoked without being replaced`)
55
+ ), t = (...r) => o.value(...r);
56
+ return t.wrapped = o, M(e, t), t;
57
+ }, K = (e, o) => e.wrapped.value = o, f = typeof self == "object" && self.self === self && self || typeof global == "object" && global.global === global && global || globalThis, m = (e) => {
58
+ const o = S(e);
59
+ if (o === void 0)
60
+ throw new Error(
61
+ `Attempt to inject ${e.description} before it was provided.`
62
+ );
63
+ return o;
64
+ }, Jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
65
+ __proto__: null,
66
+ WINDOW_OR_GLOBAL: f,
67
+ assertInject: m,
68
+ bindEventHandlers: ue,
69
+ cancelDebounces: ce,
70
+ capitalizeFirstLetter: We,
71
+ isFunction: G,
72
+ propsBinder: h,
73
+ propsToLeafletOptions: b,
74
+ provideLeafletWrapper: V,
75
+ remapEvents: C,
76
+ resetWebpackIcon: Je,
77
+ updateLeafletWrapper: K
78
+ }, Symbol.toStringTag, { value: "Module" })), L = /* @__PURE__ */ Symbol(
79
+ "useGlobalLeaflet"
80
+ ), B = /* @__PURE__ */ Symbol("addLayer"), Y = /* @__PURE__ */ Symbol("removeLayer"), Z = /* @__PURE__ */ Symbol(
81
+ "registerControl"
82
+ ), ye = /* @__PURE__ */ Symbol(
83
+ "registerLayerControl"
84
+ ), me = /* @__PURE__ */ Symbol(
85
+ "canSetParentHtml"
86
+ ), ve = /* @__PURE__ */ Symbol("setParentHtml"), fe = /* @__PURE__ */ Symbol("setIcon"), be = /* @__PURE__ */ Symbol("bindPopup"), ge = /* @__PURE__ */ Symbol("bindTooltip"), he = /* @__PURE__ */ Symbol("unbindPopup"), Le = /* @__PURE__ */ Symbol("unbindTooltip"), qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
87
+ __proto__: null,
88
+ AddLayerInjection: B,
89
+ BindPopupInjection: be,
90
+ BindTooltipInjection: ge,
91
+ CanSetParentHtmlInjection: me,
92
+ RegisterControlInjection: Z,
93
+ RegisterLayerControlInjection: ye,
94
+ RemoveLayerInjection: Y,
95
+ SetIconInjection: fe,
96
+ SetParentHtmlInjection: ve,
97
+ UnbindPopupInjection: he,
98
+ UnbindTooltipInjection: Le,
99
+ UseGlobalLeafletInjection: L
100
+ }, Symbol.toStringTag, { value: "Module" })), E = {
101
+ options: {
102
+ type: Object,
103
+ default: () => ({}),
104
+ custom: !0
105
+ }
106
+ }, W = (e) => ({ options: e.options, methods: {} }), ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
107
+ __proto__: null,
108
+ componentProps: E,
109
+ setupComponent: W
110
+ }, Symbol.toStringTag, { value: "Module" })), x = {
111
+ ...E,
112
+ pane: {
113
+ type: String
114
+ },
115
+ attribution: {
116
+ type: String
117
+ },
118
+ name: {
119
+ type: String,
120
+ custom: !0
121
+ },
122
+ layerType: {
123
+ type: String,
124
+ custom: !0
125
+ },
126
+ visible: {
127
+ type: Boolean,
128
+ custom: !0,
129
+ default: !0
130
+ }
131
+ }, J = (e, o, t) => {
132
+ const r = m(B), n = m(Y), { options: l, methods: s } = W(e), a = b(
133
+ e,
134
+ x,
135
+ l
136
+ ), i = () => r({ leafletObject: o.value }), u = () => n({ leafletObject: o.value }), d = {
137
+ ...s,
138
+ setAttribution(y) {
139
+ u(), o.value.options.attribution = y, e.visible && i();
140
+ },
141
+ setName() {
142
+ u(), e.visible && i();
143
+ },
144
+ setLayerType() {
145
+ u(), e.visible && i();
146
+ },
147
+ setVisible(y) {
148
+ o.value && (y ? i() : u());
149
+ },
150
+ bindPopup(y) {
151
+ if (!o.value || !G(o.value.bindPopup)) {
152
+ console.warn(
153
+ "Attempt to bind popup before bindPopup method available on layer."
154
+ );
155
+ return;
156
+ }
157
+ o.value.bindPopup(y);
158
+ },
159
+ bindTooltip(y) {
160
+ if (!o.value || !G(o.value.bindTooltip)) {
161
+ console.warn(
162
+ "Attempt to bind tooltip before bindTooltip method available on layer."
163
+ );
164
+ return;
165
+ }
166
+ o.value.bindTooltip(y);
167
+ },
168
+ unbindTooltip() {
169
+ o.value && (G(o.value.closeTooltip) && o.value.closeTooltip(), G(o.value.unbindTooltip) && o.value.unbindTooltip());
170
+ },
171
+ unbindPopup() {
172
+ o.value && (G(o.value.closePopup) && o.value.closePopup(), G(o.value.unbindPopup) && o.value.unbindPopup());
173
+ },
174
+ updateVisibleProp(y) {
175
+ t.emit("update:visible", y);
176
+ }
177
+ };
178
+ return M(be, d.bindPopup), M(ge, d.bindTooltip), M(he, d.unbindPopup), M(Le, d.unbindTooltip), de(() => {
179
+ d.unbindPopup(), d.unbindTooltip(), u();
180
+ }), { options: a, methods: d };
181
+ }, R = (e, o) => {
182
+ if (e && o.default)
183
+ return U("div", { style: { display: "none" } }, o.default());
184
+ }, bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
185
+ __proto__: null,
186
+ layerProps: x,
187
+ render: R,
188
+ setupLayer: J
189
+ }, Symbol.toStringTag, { value: "Module" })), Oe = {
190
+ ...x,
191
+ interactive: {
192
+ type: Boolean,
193
+ default: void 0
194
+ },
195
+ bubblingMouseEvents: {
196
+ type: Boolean,
197
+ default: void 0
198
+ }
199
+ }, qe = (e, o, t) => {
200
+ const { options: r, methods: n } = J(
201
+ e,
202
+ o,
203
+ t
204
+ );
205
+ return { options: b(
206
+ e,
207
+ Oe,
208
+ r
209
+ ), methods: n };
210
+ }, gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
211
+ __proto__: null,
212
+ interactiveLayerProps: Oe,
213
+ setupInteractiveLayer: qe
214
+ }, Symbol.toStringTag, { value: "Module" })), oe = {
215
+ ...Oe,
216
+ stroke: {
217
+ type: Boolean,
218
+ default: void 0
219
+ },
220
+ color: {
221
+ type: String
222
+ },
223
+ weight: {
224
+ type: Number
225
+ },
226
+ opacity: {
227
+ type: Number
228
+ },
229
+ lineCap: {
230
+ type: String
231
+ },
232
+ lineJoin: {
233
+ type: String
234
+ },
235
+ dashArray: {
236
+ type: String
237
+ },
238
+ dashOffset: {
239
+ type: String
240
+ },
241
+ fill: {
242
+ type: Boolean,
243
+ default: void 0
244
+ },
245
+ fillColor: {
246
+ type: String
247
+ },
248
+ fillOpacity: {
249
+ type: Number
250
+ },
251
+ fillRule: {
252
+ type: String
253
+ },
254
+ className: {
255
+ type: String
256
+ }
257
+ }, Se = (e, o, t) => {
258
+ const { options: r, methods: n } = qe(e, o, t), l = b(
259
+ e,
260
+ oe,
261
+ r
262
+ ), s = m(Y), a = {
263
+ ...n,
264
+ setStroke(i) {
265
+ o.value.setStyle({ stroke: i });
266
+ },
267
+ setColor(i) {
268
+ o.value.setStyle({ color: i });
269
+ },
270
+ setWeight(i) {
271
+ o.value.setStyle({ weight: i });
272
+ },
273
+ setOpacity(i) {
274
+ o.value.setStyle({ opacity: i });
275
+ },
276
+ setLineCap(i) {
277
+ o.value.setStyle({ lineCap: i });
278
+ },
279
+ setLineJoin(i) {
280
+ o.value.setStyle({ lineJoin: i });
281
+ },
282
+ setDashArray(i) {
283
+ o.value.setStyle({ dashArray: i });
284
+ },
285
+ setDashOffset(i) {
286
+ o.value.setStyle({ dashOffset: i });
287
+ },
288
+ setFill(i) {
289
+ o.value.setStyle({ fill: i });
290
+ },
291
+ setFillColor(i) {
292
+ o.value.setStyle({ fillColor: i });
293
+ },
294
+ setFillOpacity(i) {
295
+ o.value.setStyle({ fillOpacity: i });
296
+ },
297
+ setFillRule(i) {
298
+ o.value.setStyle({ fillRule: i });
299
+ },
300
+ setClassName(i) {
301
+ o.value.setStyle({ className: i });
302
+ }
303
+ };
304
+ return X(() => {
305
+ s({ leafletObject: o.value });
306
+ }), { options: l, methods: a };
307
+ }, ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
308
+ __proto__: null,
309
+ pathProps: oe,
310
+ setupPath: Se
311
+ }, Symbol.toStringTag, { value: "Module" })), re = {
312
+ ...oe,
313
+ /**
314
+ * Radius of the marker in pixels.
315
+ */
316
+ radius: {
317
+ type: Number
318
+ },
319
+ latLng: {
320
+ type: [Object, Array],
321
+ required: !0,
322
+ custom: !0
323
+ }
324
+ }, je = (e, o, t) => {
325
+ const { options: r, methods: n } = Se(
326
+ e,
327
+ o,
328
+ t
329
+ ), l = b(
330
+ e,
331
+ re,
332
+ r
333
+ ), s = {
334
+ ...n,
335
+ setRadius(a) {
336
+ o.value.setRadius(a);
337
+ },
338
+ setLatLng(a) {
339
+ o.value.setLatLng(a);
340
+ }
341
+ };
342
+ return { options: l, methods: s };
343
+ }, Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
344
+ __proto__: null,
345
+ circleMarkerProps: re,
346
+ setupCircleMarker: je
347
+ }, Symbol.toStringTag, { value: "Module" })), _e = {
348
+ ...re,
349
+ /**
350
+ * Radius of the circle in meters.
351
+ */
352
+ radius: {
353
+ type: Number
354
+ }
355
+ }, He = (e, o, t) => {
356
+ const { options: r, methods: n } = je(e, o, t), l = b(
357
+ e,
358
+ _e,
359
+ r
360
+ ), s = {
361
+ ...n
362
+ };
363
+ return { options: l, methods: s };
364
+ }, Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
365
+ __proto__: null,
366
+ circleProps: _e,
367
+ setupCircle: He
368
+ }, Symbol.toStringTag, { value: "Module" })), Ht = O({
369
+ name: "LCircle",
370
+ props: _e,
371
+ setup(e, o) {
372
+ const t = p(), r = p(!1), n = S(L), l = m(B), { options: s, methods: a } = He(e, t, o);
373
+ return j(async () => {
374
+ const { circle: i } = n ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs");
375
+ t.value = P(i(e.latLng, s));
376
+ const { listeners: u } = C(o.attrs);
377
+ t.value.on(u), h(a, t.value, e), l({
378
+ ...e,
379
+ ...a,
380
+ leafletObject: t.value
381
+ }), r.value = !0, g(() => o.emit("ready", t.value));
382
+ }), { ready: r, leafletObject: t };
383
+ },
384
+ render() {
385
+ return R(this.ready, this.$slots);
386
+ }
387
+ }), Vt = O({
388
+ name: "LCircleMarker",
389
+ props: re,
390
+ setup(e, o) {
391
+ const t = p(), r = p(!1), n = S(L), l = m(B), { options: s, methods: a } = je(
392
+ e,
393
+ t,
394
+ o
395
+ );
396
+ return j(async () => {
397
+ const { circleMarker: i } = n ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs");
398
+ t.value = P(
399
+ i(e.latLng, s)
400
+ );
401
+ const { listeners: u } = C(o.attrs);
402
+ t.value.on(u), h(a, t.value, e), l({
403
+ ...e,
404
+ ...a,
405
+ leafletObject: t.value
406
+ }), r.value = !0, g(() => o.emit("ready", t.value));
407
+ }), { ready: r, leafletObject: t };
408
+ },
409
+ render() {
410
+ return R(this.ready, this.$slots);
411
+ }
412
+ }), $ = {
413
+ ...E,
414
+ position: {
415
+ type: String
416
+ }
417
+ }, q = (e, o) => {
418
+ const { options: t, methods: r } = W(e), n = b(
419
+ e,
420
+ $,
421
+ t
422
+ ), l = {
423
+ ...r,
424
+ setPosition(s) {
425
+ o.value && o.value.setPosition(s);
426
+ }
427
+ };
428
+ return de(() => {
429
+ o.value && o.value.remove();
430
+ }), { options: n, methods: l };
431
+ }, Ve = (e) => e.default ? U("div", { ref: "root" }, e.default()) : null, St = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
432
+ __proto__: null,
433
+ controlProps: $,
434
+ renderLControl: Ve,
435
+ setupControl: q
436
+ }, Symbol.toStringTag, { value: "Module" })), Kt = O({
437
+ name: "LControl",
438
+ props: {
439
+ ...$,
440
+ disableClickPropagation: {
441
+ type: Boolean,
442
+ custom: !0,
443
+ default: !0
444
+ },
445
+ disableScrollPropagation: {
446
+ type: Boolean,
447
+ custom: !0,
448
+ default: !1
449
+ }
450
+ },
451
+ setup(e, o) {
452
+ const t = p(), r = p(), n = S(L), l = m(Z), { options: s, methods: a } = q(e, t);
453
+ return j(async () => {
454
+ const { Control: i, DomEvent: u } = n ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs"), d = i.extend({
455
+ onAdd() {
456
+ return r.value;
457
+ }
458
+ });
459
+ t.value = P(new d(s)), h(a, t.value, e), l({ leafletObject: t.value }), e.disableClickPropagation && r.value && u.disableClickPropagation(r.value), e.disableScrollPropagation && r.value && u.disableScrollPropagation(r.value), g(() => o.emit("ready", t.value));
460
+ }), { root: r, leafletObject: t };
461
+ },
462
+ render() {
463
+ return Ve(this.$slots);
464
+ }
465
+ }), Pe = {
466
+ ...$,
467
+ prefix: {
468
+ type: String
469
+ }
470
+ }, Ke = (e, o) => {
471
+ const { options: t, methods: r } = q(
472
+ e,
473
+ o
474
+ ), n = b(
475
+ e,
476
+ Pe,
477
+ t
478
+ ), l = {
479
+ ...r,
480
+ setPrefix(s) {
481
+ o.value.setPrefix(s);
482
+ }
483
+ };
484
+ return { options: n, methods: l };
485
+ }, jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
486
+ __proto__: null,
487
+ controlAttributionProps: Pe,
488
+ setupControlAttribution: Ke
489
+ }, Symbol.toStringTag, { value: "Module" })), Qt = O({
490
+ name: "LControlAttribution",
491
+ props: Pe,
492
+ setup(e, o) {
493
+ const t = p(), r = S(L), n = m(Z), { options: l, methods: s } = Ke(e, t);
494
+ return j(async () => {
495
+ const { control: a } = r ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs");
496
+ t.value = P(
497
+ a.attribution(l)
498
+ ), h(s, t.value, e), n({ leafletObject: t.value }), g(() => o.emit("ready", t.value));
499
+ }), { leafletObject: t };
500
+ },
501
+ render() {
502
+ return null;
503
+ }
504
+ }), Te = {
505
+ ...$,
506
+ collapsed: {
507
+ type: Boolean,
508
+ default: void 0
509
+ },
510
+ autoZIndex: {
511
+ type: Boolean,
512
+ default: void 0
513
+ },
514
+ hideSingleBase: {
515
+ type: Boolean,
516
+ default: void 0
517
+ },
518
+ sortLayers: {
519
+ type: Boolean,
520
+ default: void 0
521
+ },
522
+ sortFunction: {
523
+ type: Function
524
+ }
525
+ }, Qe = (e, o) => {
526
+ const { options: t } = q(e, o);
527
+ return { options: b(
528
+ e,
529
+ Te,
530
+ t
531
+ ), methods: {
532
+ addLayer(r) {
533
+ r.layerType === "base" ? o.value.addBaseLayer(r.leafletObject, r.name) : r.layerType === "overlay" && o.value.addOverlay(r.leafletObject, r.name);
534
+ },
535
+ removeLayer(r) {
536
+ o.value.removeLayer(r.leafletObject);
537
+ }
538
+ } };
539
+ }, _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
540
+ __proto__: null,
541
+ controlLayersProps: Te,
542
+ setupControlLayers: Qe
543
+ }, Symbol.toStringTag, { value: "Module" })), Xt = O({
544
+ name: "LControlLayers",
545
+ props: Te,
546
+ setup(e, o) {
547
+ const t = p(), r = S(L), n = m(ye), { options: l, methods: s } = Qe(e, t);
548
+ return j(async () => {
549
+ const { control: a } = r ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs");
550
+ t.value = P(
551
+ a.layers(void 0, void 0, l)
552
+ ), h(s, t.value, e), n({
553
+ ...e,
554
+ ...s,
555
+ leafletObject: t.value
556
+ }), g(() => o.emit("ready", t.value));
557
+ }), { leafletObject: t };
558
+ },
559
+ render() {
560
+ return null;
561
+ }
562
+ }), Ce = {
563
+ ...$,
564
+ maxWidth: {
565
+ type: Number
566
+ },
567
+ metric: {
568
+ type: Boolean,
569
+ default: void 0
570
+ },
571
+ imperial: {
572
+ type: Boolean,
573
+ default: void 0
574
+ },
575
+ updateWhenIdle: {
576
+ type: Boolean,
577
+ default: void 0
578
+ }
579
+ }, Xe = (e, o) => {
580
+ const { options: t, methods: r } = q(
581
+ e,
582
+ o
583
+ );
584
+ return { options: b(
585
+ e,
586
+ Ce,
587
+ t
588
+ ), methods: r };
589
+ }, Pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
590
+ __proto__: null,
591
+ controlScaleProps: Ce,
592
+ setupControlScale: Xe
593
+ }, Symbol.toStringTag, { value: "Module" })), Yt = O({
594
+ name: "LControlScale",
595
+ props: Ce,
596
+ setup(e, o) {
597
+ const t = p(), r = S(L), n = m(Z), { options: l, methods: s } = Xe(e, t);
598
+ return j(async () => {
599
+ const { control: a } = r ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs");
600
+ t.value = P(a.scale(l)), h(s, t.value, e), n({ leafletObject: t.value }), g(() => o.emit("ready", t.value));
601
+ }), { leafletObject: t };
602
+ },
603
+ render() {
604
+ return null;
605
+ }
606
+ }), Be = {
607
+ ...$,
608
+ zoomInText: {
609
+ type: String
610
+ },
611
+ zoomInTitle: {
612
+ type: String
613
+ },
614
+ zoomOutText: {
615
+ type: String
616
+ },
617
+ zoomOutTitle: {
618
+ type: String
619
+ }
620
+ }, Ye = (e, o) => {
621
+ const { options: t, methods: r } = q(
622
+ e,
623
+ o
624
+ );
625
+ return { options: b(
626
+ e,
627
+ Be,
628
+ t
629
+ ), methods: r };
630
+ }, Tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
631
+ __proto__: null,
632
+ controlZoomProps: Be,
633
+ setupControlZoom: Ye
634
+ }, Symbol.toStringTag, { value: "Module" })), eo = O({
635
+ name: "LControlZoom",
636
+ props: Be,
637
+ setup(e, o) {
638
+ const t = p(), r = S(L), n = m(Z), { options: l, methods: s } = Ye(e, t);
639
+ return j(async () => {
640
+ const { control: a } = r ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs");
641
+ t.value = P(a.zoom(l)), h(s, t.value, e), n({ leafletObject: t.value }), g(() => o.emit("ready", t.value));
642
+ }), { leafletObject: t };
643
+ },
644
+ render() {
645
+ return null;
646
+ }
647
+ }), ee = {
648
+ ...x
649
+ }, le = (e, o, t) => {
650
+ const { options: r, methods: n } = J(
651
+ e,
652
+ o,
653
+ t
654
+ ), l = b(
655
+ e,
656
+ ee,
657
+ r
658
+ ), s = {
659
+ ...n,
660
+ addLayer(a) {
661
+ o.value.addLayer(a.leafletObject);
662
+ },
663
+ removeLayer(a) {
664
+ o.value.removeLayer(a.leafletObject);
665
+ }
666
+ };
667
+ return M(B, s.addLayer), M(Y, s.removeLayer), { options: l, methods: s };
668
+ }, Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
669
+ __proto__: null,
670
+ layerGroupProps: ee,
671
+ setupLayerGroup: le
672
+ }, Symbol.toStringTag, { value: "Module" })), we = {
673
+ ...ee
674
+ }, et = (e, o, t) => {
675
+ const { options: r, methods: n } = le(
676
+ e,
677
+ o,
678
+ t
679
+ ), l = b(
680
+ e,
681
+ we,
682
+ r
683
+ ), s = {
684
+ ...n
685
+ };
686
+ return { options: l, methods: s };
687
+ }, Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
688
+ __proto__: null,
689
+ featureGroupProps: we,
690
+ setupFeatureGroup: et
691
+ }, Symbol.toStringTag, { value: "Module" })), to = O({
692
+ props: we,
693
+ setup(e, o) {
694
+ const t = p(), r = p(!1), n = S(L), l = m(B), { methods: s, options: a } = et(
695
+ e,
696
+ t,
697
+ o
698
+ );
699
+ return j(async () => {
700
+ const { featureGroup: i } = n ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs");
701
+ t.value = P(
702
+ i(void 0, a)
703
+ );
704
+ const { listeners: u } = C(o.attrs);
705
+ t.value.on(u), h(s, t.value, e), l({
706
+ ...e,
707
+ ...s,
708
+ leafletObject: t.value
709
+ }), r.value = !0, g(() => o.emit("ready", t.value));
710
+ }), { ready: r, leafletObject: t };
711
+ },
712
+ render() {
713
+ return R(this.ready, this.$slots);
714
+ }
715
+ }), Ae = {
716
+ ...ee,
717
+ geojson: {
718
+ type: [Object, Array],
719
+ custom: !0
720
+ },
721
+ optionsStyle: {
722
+ type: Function,
723
+ custom: !0
724
+ }
725
+ }, tt = (e, o, t) => {
726
+ const { options: r, methods: n } = le(
727
+ e,
728
+ o,
729
+ t
730
+ ), l = b(
731
+ e,
732
+ Ae,
733
+ r
734
+ );
735
+ Object.prototype.hasOwnProperty.call(e, "optionsStyle") && (l.style = e.optionsStyle);
736
+ const s = {
737
+ ...n,
738
+ setGeojson(a) {
739
+ o.value.clearLayers(), o.value.addData(a);
740
+ },
741
+ setOptionsStyle(a) {
742
+ o.value.setStyle(a);
743
+ },
744
+ getGeoJSONData() {
745
+ return o.value.toGeoJSON();
746
+ },
747
+ getBounds() {
748
+ return o.value.getBounds();
749
+ }
750
+ };
751
+ return { options: l, methods: s };
752
+ }, wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
753
+ __proto__: null,
754
+ geoJSONProps: Ae,
755
+ setupGeoJSON: tt
756
+ }, Symbol.toStringTag, { value: "Module" })), oo = O({
757
+ props: Ae,
758
+ setup(e, o) {
759
+ const t = p(), r = p(!1), n = S(L), l = m(B), { methods: s, options: a } = tt(e, t, o);
760
+ return j(async () => {
761
+ const { geoJSON: i } = n ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs");
762
+ t.value = P(i(e.geojson, a));
763
+ const { listeners: u } = C(o.attrs);
764
+ t.value.on(u), h(s, t.value, e), l({
765
+ ...e,
766
+ ...s,
767
+ leafletObject: t.value
768
+ }), r.value = !0, g(() => o.emit("ready", t.value));
769
+ }), { ready: r, leafletObject: t };
770
+ },
771
+ render() {
772
+ return R(this.ready, this.$slots);
773
+ }
774
+ }), ne = {
775
+ ...x,
776
+ opacity: {
777
+ type: Number
778
+ },
779
+ zIndex: {
780
+ type: Number
781
+ },
782
+ tileSize: {
783
+ type: [Number, Array, Object]
784
+ },
785
+ noWrap: {
786
+ type: Boolean,
787
+ default: void 0
788
+ },
789
+ minZoom: {
790
+ type: Number
791
+ },
792
+ maxZoom: {
793
+ type: Number
794
+ },
795
+ className: {
796
+ type: String
797
+ }
798
+ }, Ie = (e, o, t) => {
799
+ const { options: r, methods: n } = J(
800
+ e,
801
+ o,
802
+ t
803
+ ), l = b(
804
+ e,
805
+ ne,
806
+ r
807
+ ), s = {
808
+ ...n,
809
+ setTileComponent() {
810
+ var a;
811
+ (a = o.value) == null || a.redraw();
812
+ }
813
+ };
814
+ return de(() => {
815
+ o.value.off();
816
+ }), { options: l, methods: s };
817
+ }, ot = (e, o, t, r) => e.extend({
818
+ initialize(n) {
819
+ this.tileComponents = {}, this.on("tileunload", this._unloadTile), t.setOptions(this, n);
820
+ },
821
+ createTile(n) {
822
+ const l = this._tileCoordsToKey(n);
823
+ this.tileComponents[l] = o.create("div");
824
+ const s = U({ setup: r, props: ["coords"] }, { coords: n });
825
+ return vt(s, this.tileComponents[l]), this.tileComponents[l];
826
+ },
827
+ _unloadTile(n) {
828
+ const l = this._tileCoordsToKey(n.coords);
829
+ this.tileComponents[l] && (this.tileComponents[l].innerHTML = "", this.tileComponents[l] = void 0);
830
+ }
831
+ }), At = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
832
+ __proto__: null,
833
+ CreateVueGridLayer: ot,
834
+ gridLayerProps: ne,
835
+ setupGridLayer: Ie
836
+ }, Symbol.toStringTag, { value: "Module" })), ro = O({
837
+ props: {
838
+ ...ne,
839
+ childRender: {
840
+ type: Function,
841
+ required: !0
842
+ }
843
+ },
844
+ setup(e, o) {
845
+ const t = p(), r = p(null), n = p(!1), l = S(L), s = m(B), { options: a, methods: i } = Ie(e, t, o);
846
+ return j(async () => {
847
+ const { GridLayer: u, DomUtil: d, Util: y } = l ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs"), A = ot(
848
+ u,
849
+ d,
850
+ y,
851
+ e.childRender
852
+ );
853
+ t.value = P(new A(a));
854
+ const { listeners: v } = C(o.attrs);
855
+ t.value.on(v), h(i, t.value, e), s({
856
+ ...e,
857
+ ...i,
858
+ leafletObject: t.value
859
+ }), n.value = !0, g(() => o.emit("ready", t.value));
860
+ }), { root: r, ready: n, leafletObject: t };
861
+ },
862
+ render() {
863
+ return this.ready ? U("div", { style: { display: "none" }, ref: "root" }) : null;
864
+ }
865
+ }), pe = {
866
+ iconUrl: {
867
+ type: String
868
+ },
869
+ iconRetinaUrl: {
870
+ type: String
871
+ },
872
+ iconSize: {
873
+ type: [Object, Array]
874
+ },
875
+ iconAnchor: {
876
+ type: [Object, Array]
877
+ },
878
+ popupAnchor: {
879
+ type: [Object, Array]
880
+ },
881
+ tooltipAnchor: {
882
+ type: [Object, Array]
883
+ },
884
+ shadowUrl: {
885
+ type: String
886
+ },
887
+ shadowRetinaUrl: {
888
+ type: String
889
+ },
890
+ shadowSize: {
891
+ type: [Object, Array]
892
+ },
893
+ shadowAnchor: {
894
+ type: [Object, Array]
895
+ },
896
+ bgPos: {
897
+ type: [Object, Array]
898
+ },
899
+ className: {
900
+ type: String
901
+ }
902
+ }, It = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
903
+ __proto__: null,
904
+ iconProps: pe
905
+ }, Symbol.toStringTag, { value: "Module" })), lo = O({
906
+ name: "LIcon",
907
+ props: {
908
+ ...pe,
909
+ ...E
910
+ },
911
+ setup(e, o) {
912
+ const t = p(), r = S(L), n = m(me), l = m(ve), s = m(fe);
913
+ let a, i, u, d, y;
914
+ const A = (N, T, w) => {
915
+ const I = N && N.innerHTML;
916
+ if (!T) {
917
+ w && y && n() && l(I);
918
+ return;
919
+ }
920
+ const { listeners: D } = C(o.attrs);
921
+ y && i(y, D);
922
+ const { options: ie } = W(e), k = b(
923
+ e,
924
+ pe,
925
+ ie
926
+ );
927
+ I && (k.html = I), y = k.html ? u(k) : d(k), a(y, D), s(y);
928
+ }, v = () => {
929
+ g(() => A(t.value, !0, !1));
930
+ }, z = () => {
931
+ g(() => A(t.value, !1, !0));
932
+ }, F = {
933
+ setIconUrl: v,
934
+ setIconRetinaUrl: v,
935
+ setIconSize: v,
936
+ setIconAnchor: v,
937
+ setPopupAnchor: v,
938
+ setTooltipAnchor: v,
939
+ setShadowUrl: v,
940
+ setShadowRetinaUrl: v,
941
+ setShadowAnchor: v,
942
+ setBgPos: v,
943
+ setClassName: v,
944
+ setHtml: v
945
+ };
946
+ return j(async () => {
947
+ const {
948
+ DomEvent: N,
949
+ divIcon: T,
950
+ icon: w
951
+ } = r ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs");
952
+ a = N.on, i = N.off, u = T, d = w, h(F, {}, e), new MutationObserver(z).observe(t.value, {
953
+ attributes: !0,
954
+ childList: !0,
955
+ characterData: !0,
956
+ subtree: !0
957
+ }), v();
958
+ }), { root: t };
959
+ },
960
+ render() {
961
+ const e = this.$slots.default ? this.$slots.default() : void 0;
962
+ return U("div", { ref: "root" }, e);
963
+ }
964
+ }), Me = {
965
+ ...x,
966
+ opacity: {
967
+ type: Number
968
+ },
969
+ alt: {
970
+ type: String
971
+ },
972
+ interactive: {
973
+ type: Boolean,
974
+ default: void 0
975
+ },
976
+ crossOrigin: {
977
+ type: Boolean,
978
+ default: void 0
979
+ },
980
+ errorOverlayUrl: {
981
+ type: String
982
+ },
983
+ zIndex: {
984
+ type: Number
985
+ },
986
+ className: {
987
+ type: String
988
+ },
989
+ url: {
990
+ type: String,
991
+ required: !0,
992
+ custom: !0
993
+ },
994
+ bounds: {
995
+ type: [Array, Object],
996
+ required: !0,
997
+ custom: !0
998
+ }
999
+ }, rt = (e, o, t) => {
1000
+ const { options: r, methods: n } = J(
1001
+ e,
1002
+ o,
1003
+ t
1004
+ ), l = b(
1005
+ e,
1006
+ Me,
1007
+ r
1008
+ ), s = {
1009
+ ...n,
1010
+ /**
1011
+ * Sets the opacity of the overlay.
1012
+ * @param {number} opacity
1013
+ */
1014
+ setOpacity(a) {
1015
+ return o.value.setOpacity(a);
1016
+ },
1017
+ /**
1018
+ * Changes the URL of the image.
1019
+ * @param {string} url
1020
+ */
1021
+ setUrl(a) {
1022
+ return o.value.setUrl(a);
1023
+ },
1024
+ /**
1025
+ * Update the bounds that this ImageOverlay covers
1026
+ * @param {LatLngBounds | Array<Array<number>>} bounds
1027
+ */
1028
+ setBounds(a) {
1029
+ return o.value.setBounds(a);
1030
+ },
1031
+ /**
1032
+ * Get the bounds that this ImageOverlay covers
1033
+ * @returns {LatLngBounds}
1034
+ */
1035
+ getBounds() {
1036
+ return o.value.getBounds();
1037
+ },
1038
+ /**
1039
+ * Returns the instance of HTMLImageElement used by this overlay.
1040
+ * @returns {HTMLElement}
1041
+ */
1042
+ getElement() {
1043
+ return o.value.getElement();
1044
+ },
1045
+ /**
1046
+ * Brings the layer to the top of all overlays.
1047
+ */
1048
+ bringToFront() {
1049
+ return o.value.bringToFront();
1050
+ },
1051
+ /**
1052
+ * Brings the layer to the bottom of all overlays.
1053
+ */
1054
+ bringToBack() {
1055
+ return o.value.bringToBack();
1056
+ },
1057
+ /**
1058
+ * Changes the zIndex of the image overlay.
1059
+ * @param {number} zIndex
1060
+ */
1061
+ setZIndex(a) {
1062
+ return o.value.setZIndex(a);
1063
+ }
1064
+ };
1065
+ return { options: l, methods: s };
1066
+ }, Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1067
+ __proto__: null,
1068
+ imageOverlayProps: Me,
1069
+ setupImageOverlay: rt
1070
+ }, Symbol.toStringTag, { value: "Module" })), no = O({
1071
+ name: "LImageOverlay",
1072
+ props: Me,
1073
+ setup(e, o) {
1074
+ const t = p(), r = p(!1), n = S(L), l = m(B), { options: s, methods: a } = rt(
1075
+ e,
1076
+ t,
1077
+ o
1078
+ );
1079
+ return j(async () => {
1080
+ const { imageOverlay: i } = n ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs");
1081
+ t.value = P(
1082
+ i(e.url, e.bounds, s)
1083
+ );
1084
+ const { listeners: u } = C(o.attrs);
1085
+ t.value.on(u), h(a, t.value, e), l({
1086
+ ...e,
1087
+ ...a,
1088
+ leafletObject: t.value
1089
+ }), r.value = !0, g(() => o.emit("ready", t.value));
1090
+ }), { ready: r, leafletObject: t };
1091
+ },
1092
+ render() {
1093
+ return R(this.ready, this.$slots);
1094
+ }
1095
+ }), ao = O({
1096
+ props: ee,
1097
+ setup(e, o) {
1098
+ const t = p(), r = p(!1), n = S(L), l = m(B), { methods: s } = le(e, t, o);
1099
+ return j(async () => {
1100
+ const { layerGroup: a } = n ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs");
1101
+ t.value = P(
1102
+ a(void 0, e.options)
1103
+ );
1104
+ const { listeners: i } = C(o.attrs);
1105
+ t.value.on(i), h(s, t.value, e), l({
1106
+ ...e,
1107
+ ...s,
1108
+ leafletObject: t.value
1109
+ }), r.value = !0, g(() => o.emit("ready", t.value));
1110
+ }), { ready: r, leafletObject: t };
1111
+ },
1112
+ render() {
1113
+ return R(this.ready, this.$slots);
1114
+ }
1115
+ });
1116
+ function lt(e, o, t) {
1117
+ var r, n, l;
1118
+ o === void 0 && (o = 50), t === void 0 && (t = {});
1119
+ var s = (r = t.isImmediate) != null && r, a = (n = t.callback) != null && n, i = t.maxWait, u = Date.now(), d = [];
1120
+ function y() {
1121
+ if (i !== void 0) {
1122
+ var v = Date.now() - u;
1123
+ if (v + o >= i)
1124
+ return i - v;
1125
+ }
1126
+ return o;
1127
+ }
1128
+ var A = function() {
1129
+ var v = [].slice.call(arguments), z = this;
1130
+ return new Promise(function(F, N) {
1131
+ var T = s && l === void 0;
1132
+ if (l !== void 0 && clearTimeout(l), l = setTimeout(function() {
1133
+ if (l = void 0, u = Date.now(), !s) {
1134
+ var I = e.apply(z, v);
1135
+ a && a(I), d.forEach(function(D) {
1136
+ return (0, D.resolve)(I);
1137
+ }), d = [];
1138
+ }
1139
+ }, y()), T) {
1140
+ var w = e.apply(z, v);
1141
+ return a && a(w), F(w);
1142
+ }
1143
+ d.push({ resolve: F, reject: N });
1144
+ });
1145
+ };
1146
+ return A.cancel = function(v) {
1147
+ l !== void 0 && clearTimeout(l), d.forEach(function(z) {
1148
+ return (0, z.reject)(v);
1149
+ }), d = [];
1150
+ }, A;
1151
+ }
1152
+ const Ee = {
1153
+ ...E,
1154
+ /**
1155
+ * The center of the map, supports .sync modifier
1156
+ */
1157
+ center: {
1158
+ type: [Object, Array]
1159
+ },
1160
+ /**
1161
+ * The bounds of the map, supports .sync modifier
1162
+ */
1163
+ bounds: {
1164
+ type: [Array, Object]
1165
+ },
1166
+ /**
1167
+ * The max bounds of the map
1168
+ */
1169
+ maxBounds: {
1170
+ type: [Array, Object]
1171
+ },
1172
+ /**
1173
+ * The zoom of the map, supports .sync modifier
1174
+ */
1175
+ zoom: {
1176
+ type: Number
1177
+ },
1178
+ /**
1179
+ * The minZoom of the map
1180
+ */
1181
+ minZoom: {
1182
+ type: Number
1183
+ },
1184
+ /**
1185
+ * The maxZoom of the map
1186
+ */
1187
+ maxZoom: {
1188
+ type: Number
1189
+ },
1190
+ /**
1191
+ * The paddingBottomRight of the map
1192
+ */
1193
+ paddingBottomRight: {
1194
+ type: [Object, Array]
1195
+ },
1196
+ /**
1197
+ * The paddingTopLeft of the map
1198
+ */
1199
+ paddingTopLeft: {
1200
+ type: Object
1201
+ },
1202
+ /**
1203
+ * The padding of the map
1204
+ */
1205
+ padding: {
1206
+ type: Object
1207
+ },
1208
+ /**
1209
+ * The worldCopyJump option for the map
1210
+ */
1211
+ worldCopyJump: {
1212
+ type: Boolean,
1213
+ default: void 0
1214
+ },
1215
+ /**
1216
+ * The CRS to use for the map. Can be an object that defines a coordinate reference
1217
+ * system for projecting geographical points into screen coordinates and back
1218
+ * (see https://leafletjs.com/reference-1.7.1.html#crs-l-crs-base), or a string
1219
+ * name identifying one of Leaflet's defined CRSs, such as "EPSG4326".
1220
+ */
1221
+ crs: {
1222
+ type: [String, Object]
1223
+ },
1224
+ maxBoundsViscosity: {
1225
+ type: Number
1226
+ },
1227
+ inertia: {
1228
+ type: Boolean,
1229
+ default: void 0
1230
+ },
1231
+ inertiaDeceleration: {
1232
+ type: Number
1233
+ },
1234
+ inertiaMaxSpeed: {
1235
+ type: Number
1236
+ },
1237
+ easeLinearity: {
1238
+ type: Number
1239
+ },
1240
+ zoomAnimation: {
1241
+ type: Boolean,
1242
+ default: void 0
1243
+ },
1244
+ zoomAnimationThreshold: {
1245
+ type: Number
1246
+ },
1247
+ fadeAnimation: {
1248
+ type: Boolean,
1249
+ default: void 0
1250
+ },
1251
+ markerZoomAnimation: {
1252
+ type: Boolean,
1253
+ default: void 0
1254
+ },
1255
+ noBlockingAnimations: {
1256
+ type: Boolean,
1257
+ default: void 0
1258
+ },
1259
+ useGlobalLeaflet: {
1260
+ type: Boolean,
1261
+ default: !0,
1262
+ custom: !0
1263
+ }
1264
+ }, so = O({
1265
+ inheritAttrs: !1,
1266
+ emits: ["ready", "update:zoom", "update:center", "update:bounds"],
1267
+ props: Ee,
1268
+ setup(e, o) {
1269
+ const t = p(), r = mt({
1270
+ ready: !1,
1271
+ layersToAdd: [],
1272
+ layersInControl: []
1273
+ }), { options: n } = W(e), l = b(
1274
+ e,
1275
+ Ee,
1276
+ n
1277
+ ), { listeners: s, attrs: a } = C(o.attrs), i = V(B), u = V(Y), d = V(Z), y = V(
1278
+ ye
1279
+ );
1280
+ M(L, e.useGlobalLeaflet);
1281
+ const A = te(() => {
1282
+ const T = {};
1283
+ return e.noBlockingAnimations && (T.animate = !1), T;
1284
+ }), v = te(() => {
1285
+ const T = A.value;
1286
+ return e.padding && (T.padding = e.padding), e.paddingTopLeft && (T.paddingTopLeft = e.paddingTopLeft), e.paddingBottomRight && (T.paddingBottomRight = e.paddingBottomRight), T;
1287
+ }), z = {
1288
+ moveend: lt((T) => {
1289
+ r.leafletRef && (o.emit("update:zoom", r.leafletRef.getZoom()), o.emit("update:center", r.leafletRef.getCenter()), o.emit("update:bounds", r.leafletRef.getBounds()));
1290
+ }),
1291
+ overlayadd(T) {
1292
+ const w = r.layersInControl.find((I) => I.name === T.name);
1293
+ w && w.updateVisibleProp(!0);
1294
+ },
1295
+ overlayremove(T) {
1296
+ const w = r.layersInControl.find((I) => I.name === T.name);
1297
+ w && w.updateVisibleProp(!1);
1298
+ }
1299
+ };
1300
+ j(async () => {
1301
+ e.useGlobalLeaflet && (f.L = f.L || await import("./leaflet-src-BsKP-mme.mjs").then((c) => c.l));
1302
+ const { map: T, CRS: w, Icon: I, latLngBounds: D, latLng: ie, stamp: k } = e.useGlobalLeaflet ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs");
1303
+ try {
1304
+ l.beforeMapMount && await l.beforeMapMount();
1305
+ } catch (c) {
1306
+ console.error(
1307
+ `The following error occurred running the provided beforeMapMount hook ${c.message}`
1308
+ );
1309
+ }
1310
+ await Je(I);
1311
+ const yt = typeof l.crs == "string" ? w[l.crs] : l.crs;
1312
+ l.crs = yt || w.EPSG3857;
1313
+ const H = {
1314
+ addLayer(c) {
1315
+ c.layerType !== void 0 && (r.layerControl === void 0 ? r.layersToAdd.push(c) : r.layersInControl.find(
1316
+ (_) => k(_.leafletObject) === k(c.leafletObject)
1317
+ ) || (r.layerControl.addLayer(c), r.layersInControl.push(c))), c.visible !== !1 && r.leafletRef.addLayer(c.leafletObject);
1318
+ },
1319
+ removeLayer(c) {
1320
+ c.layerType !== void 0 && (r.layerControl === void 0 ? r.layersToAdd = r.layersToAdd.filter(
1321
+ (_) => _.name !== c.name
1322
+ ) : (r.layerControl.removeLayer(c.leafletObject), r.layersInControl = r.layersInControl.filter(
1323
+ (_) => k(_.leafletObject) !== k(c.leafletObject)
1324
+ ))), r.leafletRef.removeLayer(c.leafletObject);
1325
+ },
1326
+ registerLayerControl(c) {
1327
+ r.layerControl = c, r.layersToAdd.forEach((_) => {
1328
+ r.layerControl.addLayer(_);
1329
+ }), r.layersToAdd = [], d(c);
1330
+ },
1331
+ registerControl(c) {
1332
+ r.leafletRef.addControl(c.leafletObject);
1333
+ },
1334
+ setZoom(c) {
1335
+ const _ = r.leafletRef.getZoom();
1336
+ c !== _ && r.leafletRef.setZoom(c, A.value);
1337
+ },
1338
+ setCrs(c) {
1339
+ const _ = r.leafletRef.getBounds();
1340
+ r.leafletRef.options.crs = c, r.leafletRef.fitBounds(_, {
1341
+ animate: !1,
1342
+ padding: [0, 0]
1343
+ });
1344
+ },
1345
+ fitBounds(c) {
1346
+ r.leafletRef.fitBounds(c, v.value);
1347
+ },
1348
+ setBounds(c) {
1349
+ if (!c)
1350
+ return;
1351
+ const _ = D(c);
1352
+ _.isValid() && !(r.lastSetBounds || r.leafletRef.getBounds()).equals(_, 0) && (r.lastSetBounds = _, r.leafletRef.fitBounds(_));
1353
+ },
1354
+ setCenter(c) {
1355
+ if (c == null)
1356
+ return;
1357
+ const _ = ie(c), De = r.lastSetCenter || r.leafletRef.getCenter();
1358
+ (De.lat !== _.lat || De.lng !== _.lng) && (r.lastSetCenter = _, r.leafletRef.panTo(_, A.value));
1359
+ }
1360
+ };
1361
+ K(i, H.addLayer), K(u, H.removeLayer), K(d, H.registerControl), K(y, H.registerLayerControl), r.leafletRef = P(T(t.value, l)), h(H, r.leafletRef, e), ue(r.leafletRef, z), ue(r.leafletRef, s), r.ready = !0, g(() => o.emit("ready", r.leafletRef));
1362
+ }), X(() => {
1363
+ ce(z), r.leafletRef && (r.leafletRef.off(), r.leafletRef.remove());
1364
+ });
1365
+ const F = te(() => r.leafletRef), N = te(() => r.ready);
1366
+ return { root: t, ready: N, leafletObject: F, attrs: a };
1367
+ },
1368
+ render({ attrs: e }) {
1369
+ return e.style || (e.style = {}), e.style.width || (e.style.width = "100%"), e.style.height || (e.style.height = "100%"), U(
1370
+ "div",
1371
+ {
1372
+ ...e,
1373
+ ref: "root"
1374
+ },
1375
+ this.ready && this.$slots.default ? this.$slots.default() : {}
1376
+ );
1377
+ }
1378
+ }), Rt = ["Symbol(Comment)", "Symbol(Text)"], zt = ["LTooltip", "LPopup"], Re = {
1379
+ ...x,
1380
+ draggable: {
1381
+ type: Boolean,
1382
+ default: void 0
1383
+ },
1384
+ icon: {
1385
+ type: [Object]
1386
+ },
1387
+ zIndexOffset: {
1388
+ type: Number
1389
+ },
1390
+ latLng: {
1391
+ type: [Object, Array],
1392
+ custom: !0,
1393
+ required: !0
1394
+ }
1395
+ }, nt = (e, o, t) => {
1396
+ const { options: r, methods: n } = J(
1397
+ e,
1398
+ o,
1399
+ t
1400
+ ), l = b(
1401
+ e,
1402
+ Re,
1403
+ r
1404
+ ), s = {
1405
+ ...n,
1406
+ setDraggable(a) {
1407
+ o.value.dragging && (a ? o.value.dragging.enable() : o.value.dragging.disable());
1408
+ },
1409
+ latLngSync(a) {
1410
+ t.emit("update:latLng", a.latlng), t.emit("update:lat-lng", a.latlng);
1411
+ },
1412
+ setLatLng(a) {
1413
+ if (a != null && o.value) {
1414
+ const i = o.value.getLatLng();
1415
+ (!i || !i.equals(a)) && o.value.setLatLng(a);
1416
+ }
1417
+ }
1418
+ };
1419
+ return { options: l, methods: s };
1420
+ }, at = (e, o) => {
1421
+ const t = o.slots.default && o.slots.default();
1422
+ return t && t.length && t.some(Nt);
1423
+ };
1424
+ function Nt(e) {
1425
+ return !(Rt.includes(e.type.toString()) || zt.includes(e.type.name));
1426
+ }
1427
+ const kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1428
+ __proto__: null,
1429
+ markerProps: Re,
1430
+ setupMarker: nt,
1431
+ shouldBlankIcon: at
1432
+ }, Symbol.toStringTag, { value: "Module" })), io = O({
1433
+ name: "LMarker",
1434
+ props: Re,
1435
+ setup(e, o) {
1436
+ const t = p(), r = p(!1), n = S(L), l = m(B);
1437
+ M(
1438
+ me,
1439
+ () => {
1440
+ var u;
1441
+ return !!((u = t.value) != null && u.getElement());
1442
+ }
1443
+ ), M(ve, (u) => {
1444
+ var d, y;
1445
+ const A = G((d = t.value) == null ? void 0 : d.getElement) && ((y = t.value) == null ? void 0 : y.getElement());
1446
+ A && (A.innerHTML = u);
1447
+ }), M(
1448
+ fe,
1449
+ (u) => {
1450
+ var d;
1451
+ return ((d = t.value) == null ? void 0 : d.setIcon) && t.value.setIcon(u);
1452
+ }
1453
+ );
1454
+ const { options: s, methods: a } = nt(e, t, o), i = {
1455
+ moveHandler: lt(a.latLngSync)
1456
+ };
1457
+ return j(async () => {
1458
+ const { marker: u, divIcon: d } = n ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs");
1459
+ at(s, o) && (s.icon = d({ className: "" })), t.value = P(u(e.latLng, s));
1460
+ const { listeners: y } = C(o.attrs);
1461
+ t.value.on(y), t.value.on("move", i.moveHandler), h(a, t.value, e), l({
1462
+ ...e,
1463
+ ...a,
1464
+ leafletObject: t.value
1465
+ }), r.value = !0, g(() => o.emit("ready", t.value));
1466
+ }), X(() => ce(i)), { ready: r, leafletObject: t };
1467
+ },
1468
+ render() {
1469
+ return R(this.ready, this.$slots);
1470
+ }
1471
+ }), ae = {
1472
+ ...oe,
1473
+ smoothFactor: {
1474
+ type: Number
1475
+ },
1476
+ noClip: {
1477
+ type: Boolean,
1478
+ default: void 0
1479
+ },
1480
+ latLngs: {
1481
+ type: Array,
1482
+ required: !0,
1483
+ custom: !0
1484
+ }
1485
+ }, ze = (e, o, t) => {
1486
+ const { options: r, methods: n } = Se(
1487
+ e,
1488
+ o,
1489
+ t
1490
+ ), l = b(
1491
+ e,
1492
+ ae,
1493
+ r
1494
+ ), s = {
1495
+ ...n,
1496
+ setSmoothFactor(a) {
1497
+ o.value.setStyle({ smoothFactor: a });
1498
+ },
1499
+ setNoClip(a) {
1500
+ o.value.setStyle({ noClip: a });
1501
+ },
1502
+ addLatLng(a) {
1503
+ o.value.addLatLng(a);
1504
+ }
1505
+ };
1506
+ return { options: l, methods: s };
1507
+ }, Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1508
+ __proto__: null,
1509
+ polylineProps: ae,
1510
+ setupPolyline: ze
1511
+ }, Symbol.toStringTag, { value: "Module" })), Q = {
1512
+ ...ae
1513
+ }, Ne = (e, o, t) => {
1514
+ const { options: r, methods: n } = ze(
1515
+ e,
1516
+ o,
1517
+ t
1518
+ ), l = b(
1519
+ e,
1520
+ Q,
1521
+ r
1522
+ ), s = {
1523
+ ...n,
1524
+ toGeoJSON(a) {
1525
+ return o.value.toGeoJSON(a);
1526
+ }
1527
+ };
1528
+ return { options: l, methods: s };
1529
+ }, Ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1530
+ __proto__: null,
1531
+ polygonProps: Q,
1532
+ setupPolygon: Ne
1533
+ }, Symbol.toStringTag, { value: "Module" })), uo = O({
1534
+ name: "LPolygon",
1535
+ props: Q,
1536
+ setup(e, o) {
1537
+ const t = p(), r = p(!1), n = S(L), l = m(B), { options: s, methods: a } = Ne(e, t, o);
1538
+ return j(async () => {
1539
+ const { polygon: i } = n ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs");
1540
+ t.value = P(i(e.latLngs, s));
1541
+ const { listeners: u } = C(o.attrs);
1542
+ t.value.on(u), h(a, t.value, e), l({
1543
+ ...e,
1544
+ ...a,
1545
+ leafletObject: t.value
1546
+ }), r.value = !0, g(() => o.emit("ready", t.value));
1547
+ }), { ready: r, leafletObject: t };
1548
+ },
1549
+ render() {
1550
+ return R(this.ready, this.$slots);
1551
+ }
1552
+ }), po = O({
1553
+ name: "LPolyline",
1554
+ props: ae,
1555
+ setup(e, o) {
1556
+ const t = p(), r = p(!1), n = S(L), l = m(B), { options: s, methods: a } = ze(e, t, o);
1557
+ return j(async () => {
1558
+ const { polyline: i } = n ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs");
1559
+ t.value = P(
1560
+ i(e.latLngs, s)
1561
+ );
1562
+ const { listeners: u } = C(o.attrs);
1563
+ t.value.on(u), h(a, t.value, e), l({
1564
+ ...e,
1565
+ ...a,
1566
+ leafletObject: t.value
1567
+ }), r.value = !0, g(() => o.emit("ready", t.value));
1568
+ }), { ready: r, leafletObject: t };
1569
+ },
1570
+ render() {
1571
+ return R(this.ready, this.$slots);
1572
+ }
1573
+ }), ke = {
1574
+ ...E,
1575
+ content: {
1576
+ type: String,
1577
+ default: null
1578
+ }
1579
+ }, Ge = (e, o) => {
1580
+ const { options: t, methods: r } = W(e), n = {
1581
+ ...r,
1582
+ setContent(l) {
1583
+ o.value && l !== null && l !== void 0 && o.value.setContent(l);
1584
+ }
1585
+ };
1586
+ return { options: t, methods: n };
1587
+ }, Ue = (e) => e.default ? U("div", { ref: "root" }, e.default()) : null, xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1588
+ __proto__: null,
1589
+ popperProps: ke,
1590
+ render: Ue,
1591
+ setupPopper: Ge
1592
+ }, Symbol.toStringTag, { value: "Module" })), st = {
1593
+ ...ke,
1594
+ latLng: {
1595
+ type: [Object, Array],
1596
+ default: () => []
1597
+ }
1598
+ }, it = (e, o) => {
1599
+ const { options: t, methods: r } = Ge(e, o);
1600
+ return { options: t, methods: r };
1601
+ }, $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1602
+ __proto__: null,
1603
+ popupProps: st,
1604
+ setupPopup: it
1605
+ }, Symbol.toStringTag, { value: "Module" })), co = O({
1606
+ name: "LPopup",
1607
+ props: st,
1608
+ setup(e, o) {
1609
+ const t = p(), r = p(null), n = S(L), l = m(be), s = m(he), { options: a, methods: i } = it(e, t);
1610
+ return j(async () => {
1611
+ const { popup: u } = n ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs");
1612
+ t.value = P(u(a)), e.latLng !== void 0 && t.value.setLatLng(e.latLng), h(i, t.value, e);
1613
+ const { listeners: d } = C(o.attrs);
1614
+ t.value.on(d), t.value.setContent(e.content || r.value || ""), l(t.value), g(() => o.emit("ready", t.value));
1615
+ }), X(() => {
1616
+ s();
1617
+ }), { root: r, leafletObject: t };
1618
+ },
1619
+ render() {
1620
+ return Ue(this.$slots);
1621
+ }
1622
+ }), xe = {
1623
+ ...Q,
1624
+ latLngs: {
1625
+ ...Q.latLngs,
1626
+ required: !1
1627
+ },
1628
+ bounds: {
1629
+ type: Object,
1630
+ custom: !0
1631
+ }
1632
+ }, ut = (e, o, t) => {
1633
+ const { options: r, methods: n } = Ne(
1634
+ e,
1635
+ o,
1636
+ t
1637
+ ), l = b(
1638
+ e,
1639
+ xe,
1640
+ r
1641
+ ), s = {
1642
+ ...n,
1643
+ setBounds(a) {
1644
+ o.value.setBounds(a);
1645
+ },
1646
+ setLatLngs(a) {
1647
+ o.value.setBounds(a);
1648
+ }
1649
+ };
1650
+ return { options: l, methods: s };
1651
+ }, Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1652
+ __proto__: null,
1653
+ rectangleProps: xe,
1654
+ setupRectangle: ut
1655
+ }, Symbol.toStringTag, { value: "Module" })), yo = O({
1656
+ name: "LRectangle",
1657
+ props: xe,
1658
+ setup(e, o) {
1659
+ const t = p(), r = p(!1), n = S(L), l = m(B), { options: s, methods: a } = ut(e, t, o);
1660
+ return j(async () => {
1661
+ const { rectangle: i, latLngBounds: u } = n ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs"), d = e.bounds ? u(e.bounds) : u(e.latLngs || []);
1662
+ t.value = P(i(d, s));
1663
+ const { listeners: y } = C(o.attrs);
1664
+ t.value.on(y), h(a, t.value, e), l({
1665
+ ...e,
1666
+ ...a,
1667
+ leafletObject: t.value
1668
+ }), r.value = !0, g(() => o.emit("ready", t.value));
1669
+ }), { ready: r, leafletObject: t };
1670
+ },
1671
+ render() {
1672
+ return R(this.ready, this.$slots);
1673
+ }
1674
+ }), se = {
1675
+ ...ne,
1676
+ tms: {
1677
+ type: Boolean,
1678
+ default: void 0
1679
+ },
1680
+ subdomains: {
1681
+ type: [String, Array],
1682
+ validator: (e) => typeof e == "string" ? !0 : Array.isArray(e) ? e.every((o) => typeof o == "string") : !1
1683
+ },
1684
+ detectRetina: {
1685
+ type: Boolean,
1686
+ default: void 0
1687
+ },
1688
+ url: {
1689
+ type: String,
1690
+ required: !0,
1691
+ custom: !0
1692
+ }
1693
+ }, $e = (e, o, t) => {
1694
+ const { options: r, methods: n } = Ie(e, o, t), l = b(
1695
+ e,
1696
+ se,
1697
+ r
1698
+ ), s = {
1699
+ ...n
1700
+ };
1701
+ return { options: l, methods: s };
1702
+ }, Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1703
+ __proto__: null,
1704
+ setupTileLayer: $e,
1705
+ tileLayerProps: se
1706
+ }, Symbol.toStringTag, { value: "Module" })), mo = O({
1707
+ props: se,
1708
+ setup(e, o) {
1709
+ const t = p(), r = S(L), n = m(B), { options: l, methods: s } = $e(e, t, o);
1710
+ return j(async () => {
1711
+ const { tileLayer: a } = r ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs");
1712
+ t.value = P(a(e.url, l));
1713
+ const { listeners: i } = C(o.attrs);
1714
+ t.value.on(i), h(s, t.value, e), n({
1715
+ ...e,
1716
+ ...s,
1717
+ leafletObject: t.value
1718
+ }), g(() => o.emit("ready", t.value));
1719
+ }), { leafletObject: t };
1720
+ },
1721
+ render() {
1722
+ return null;
1723
+ }
1724
+ }), pt = {
1725
+ ...ke
1726
+ }, dt = (e, o) => {
1727
+ const { options: t, methods: r } = Ge(e, o), n = m(Le);
1728
+ return X(() => {
1729
+ n();
1730
+ }), { options: t, methods: r };
1731
+ }, Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1732
+ __proto__: null,
1733
+ setupTooltip: dt,
1734
+ tooltipProps: pt
1735
+ }, Symbol.toStringTag, { value: "Module" })), vo = O({
1736
+ name: "LTooltip",
1737
+ props: pt,
1738
+ setup(e, o) {
1739
+ const t = p(), r = p(null), n = S(L), l = m(ge), { options: s, methods: a } = dt(e, t);
1740
+ return j(async () => {
1741
+ const { tooltip: i } = n ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs");
1742
+ t.value = P(i(s)), h(a, t.value, e);
1743
+ const { listeners: u } = C(o.attrs);
1744
+ t.value.on(u), t.value.setContent(e.content || r.value || ""), l(t.value), g(() => o.emit("ready", t.value));
1745
+ }), { root: r, leafletObject: t };
1746
+ },
1747
+ render() {
1748
+ return Ue(this.$slots);
1749
+ }
1750
+ }), Fe = {
1751
+ ...se,
1752
+ layers: {
1753
+ type: String,
1754
+ required: !0
1755
+ },
1756
+ styles: {
1757
+ type: String
1758
+ },
1759
+ format: {
1760
+ type: String
1761
+ },
1762
+ transparent: {
1763
+ type: Boolean,
1764
+ default: void 0
1765
+ },
1766
+ version: {
1767
+ type: String
1768
+ },
1769
+ crs: {
1770
+ type: Object
1771
+ },
1772
+ uppercase: {
1773
+ type: Boolean,
1774
+ default: void 0
1775
+ }
1776
+ }, ct = (e, o, t) => {
1777
+ const { options: r, methods: n } = $e(e, o, t);
1778
+ return {
1779
+ options: b(
1780
+ e,
1781
+ Fe,
1782
+ r
1783
+ ),
1784
+ methods: {
1785
+ ...n
1786
+ }
1787
+ };
1788
+ }, Et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1789
+ __proto__: null,
1790
+ setupWMSTileLayer: ct,
1791
+ wmsTileLayerProps: Fe
1792
+ }, Symbol.toStringTag, { value: "Module" })), fo = O({
1793
+ props: Fe,
1794
+ setup(e, o) {
1795
+ const t = p(), r = S(L), n = m(B), { options: l, methods: s } = ct(
1796
+ e,
1797
+ t,
1798
+ o
1799
+ );
1800
+ return j(async () => {
1801
+ const { tileLayer: a } = r ? f.L : await import("./leaflet-src.esm-BSRIxBxW.mjs");
1802
+ t.value = P(
1803
+ a.wms(e.url, l)
1804
+ );
1805
+ const { listeners: i } = C(o.attrs);
1806
+ t.value.on(i), h(s, t.value, e), n({
1807
+ ...e,
1808
+ ...s,
1809
+ leafletObject: t.value
1810
+ }), g(() => o.emit("ready", t.value));
1811
+ }), { leafletObject: t };
1812
+ },
1813
+ render() {
1814
+ return null;
1815
+ }
1816
+ }), bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1817
+ __proto__: null,
1818
+ Circle: Ot,
1819
+ CircleMarker: Lt,
1820
+ Component: ft,
1821
+ Control: St,
1822
+ ControlAttribution: jt,
1823
+ ControlLayers: _t,
1824
+ ControlScale: Pt,
1825
+ ControlZoom: Tt,
1826
+ FeatureGroup: Bt,
1827
+ GeoJSON: wt,
1828
+ GridLayer: At,
1829
+ Icon: It,
1830
+ ImageOverlay: Mt,
1831
+ InteractiveLayer: gt,
1832
+ Layer: bt,
1833
+ LayerGroup: Ct,
1834
+ Marker: kt,
1835
+ Path: ht,
1836
+ Polygon: Ut,
1837
+ Polyline: Gt,
1838
+ Popper: xt,
1839
+ Popup: $t,
1840
+ Rectangle: Ft,
1841
+ TileLayer: Dt,
1842
+ Tooltip: Zt,
1843
+ WmsTileLayer: Et
1844
+ }, Symbol.toStringTag, { value: "Module" }));
1845
+ export {
1846
+ bo as Functions,
1847
+ qt as InjectionKeys,
1848
+ Ht as LCircle,
1849
+ Vt as LCircleMarker,
1850
+ Kt as LControl,
1851
+ Qt as LControlAttribution,
1852
+ Xt as LControlLayers,
1853
+ Yt as LControlScale,
1854
+ eo as LControlZoom,
1855
+ to as LFeatureGroup,
1856
+ oo as LGeoJson,
1857
+ ro as LGridLayer,
1858
+ lo as LIcon,
1859
+ no as LImageOverlay,
1860
+ ao as LLayerGroup,
1861
+ so as LMap,
1862
+ io as LMarker,
1863
+ uo as LPolygon,
1864
+ po as LPolyline,
1865
+ co as LPopup,
1866
+ yo as LRectangle,
1867
+ mo as LTileLayer,
1868
+ vo as LTooltip,
1869
+ fo as LWmsTileLayer,
1870
+ Jt as Utilities
1871
+ };