tg-map-vue3 3.1.0 → 3.1.2

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.
package/dist/tg-map.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('.baidu-info-box-container{transform:translateY(-11px);font-size:13px;font-weight:300;width:100vw}.baidu-info-box-container__border{position:absolute;padding:12px;background-color:#fff;box-shadow:0 2px 7px 1px #0000004d;border-radius:8px;transform:translate(-50%,-100%)}.baidu-info-box-container__inner{overflow:auto}.baidu-info-box-container__close{position:absolute;right:-6px;top:-6px;width:14px;height:14px;margin:8px;opacity:.6;cursor:pointer}.baidu-info-box-container__close:hover{opacity:1}.baidu-info-box-container:after{position:absolute;background-color:#fff;content:"";width:15px;height:15px;left:0px;top:0px;box-shadow:-2px 2px 2px #b2b2b266;transform:translate(-50%,-50%) rotate(-45deg)}.tg-map{height:100vh;position:relative}.tg-map__map{width:100%;height:100%}.tg-map-widget{position:absolute}.tg-map>.tg-custom-control{display:none}.element-overlay{position:absolute}.tg-map .tg-element-overlay{display:none}.tg-map__map .tg-element-overlay{display:block}.tg-map .tg-info-box{display:none}.tg-map__map .tg-info-box{display:block}.tg-map .tg-label{display:none}.tg-map__map .tg-label{display:block}')),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
2
  var Vt = Object.defineProperty;
3
- var Ht = (i, e, t) => e in i ? Vt(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
4
- var h = (i, e, t) => (Ht(i, typeof e != "symbol" ? e + "" : e, t), t);
5
- import { createCommentVNode as Ie, computed as bt, defineComponent as C, openBlock as Z, createElementBlock as G, mergeProps as ie, createElementVNode as Ft, renderSlot as A, normalizeClass as De, normalizeStyle as Ut, withDirectives as Yt, vShow as Kt } from "vue";
3
+ var Wt = (i, e, t) => e in i ? Vt(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
4
+ var h = (i, e, t) => (Wt(i, typeof e != "symbol" ? e + "" : e, t), t);
5
+ import { createCommentVNode as Ie, computed as Tt, defineComponent as C, markRaw as Ht, openBlock as Z, createElementBlock as G, mergeProps as ie, createElementVNode as Ft, renderSlot as A, normalizeClass as De, normalizeStyle as Ut, withDirectives as Yt, vShow as Kt, getCurrentInstance as gt } from "vue";
6
6
  function F(i, e, t) {
7
7
  Object.keys(i).forEach((r) => {
8
8
  r.startsWith("update:") || t != null && t.includes(r) || e.addEventListener(r, i[r]);
@@ -15,24 +15,24 @@ function Xt() {
15
15
  function ye(i, e) {
16
16
  return e.__id__ || (e.__id__ = Xt()), `${i}::${e.__id__}`;
17
17
  }
18
- var Tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, W = {}, Jt = {
18
+ var Ot = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, V = {}, Jt = {
19
19
  get exports() {
20
- return W;
20
+ return V;
21
21
  },
22
22
  set exports(i) {
23
- W = i;
23
+ V = i;
24
24
  }
25
25
  };
26
26
  (function(i) {
27
27
  (function(e, t) {
28
28
  i.exports ? i.exports = t() : e.coordtransform = t();
29
- })(Tt, function() {
29
+ })(Ot, function() {
30
30
  var e = 52.35987755982988, t = 3.141592653589793, r = 6378245, s = 0.006693421622965943;
31
- function n(p, f, v, O) {
32
- this.west = Math.min(p, v), this.north = Math.max(f, O), this.east = Math.max(p, v), this.south = Math.min(f, O);
31
+ function n(u, f, v, O) {
32
+ this.west = Math.min(u, v), this.north = Math.max(f, O), this.east = Math.max(u, v), this.south = Math.min(f, O);
33
33
  }
34
- n.prototype.contain = function(p, f) {
35
- return this.west <= p && this.east >= p && this.north >= f && this.south <= f;
34
+ n.prototype.contain = function(u, f) {
35
+ return this.west <= u && this.east >= u && this.north >= f && this.south <= f;
36
36
  };
37
37
  var a = [
38
38
  new n(79.4462, 49.2204, 96.33, 42.8899),
@@ -41,7 +41,7 @@ var Tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
41
41
  new n(82.9684, 29.5297, 97.0352, 26.7186),
42
42
  new n(97.0253, 29.5297, 124.367395, 20.414096),
43
43
  new n(107.975793, 20.414096, 111.744104, 17.871542)
44
- ], g = [
44
+ ], d = [
45
45
  new n(119.921265, 25.398623, 122.497559, 21.785006),
46
46
  new n(101.8652, 22.284, 106.665, 20.0988),
47
47
  new n(106.4525, 21.5422, 108.051, 20.4878),
@@ -50,97 +50,97 @@ var Tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
50
50
  new n(131.2662, 44.8922, 137.0227, 42.5692),
51
51
  new n(73.1246, 35.398637, 77.948114, 29.5297)
52
52
  ];
53
- function o(p, f) {
53
+ function o(u, f) {
54
54
  for (var v = 0; v < a.length; v++)
55
- if (a[v].contain(p, f)) {
56
- for (var O = 0; O < g.length; O++)
57
- if (g[O].contain(p, f))
55
+ if (a[v].contain(u, f)) {
56
+ for (var O = 0; O < d.length; O++)
57
+ if (d[O].contain(u, f))
58
58
  return !1;
59
59
  return !0;
60
60
  }
61
61
  return !1;
62
62
  }
63
- function l(p, f) {
64
- var v = p - 65e-4, O = f - 6e-3, Y = Math.sqrt(v * v + O * O) - 2e-5 * Math.sin(O * e), B = Math.atan2(O, v) - 3e-6 * Math.cos(v * e), ue = Y * Math.cos(B), xe = Y * Math.sin(B);
63
+ function l(u, f) {
64
+ var v = u - 65e-4, O = f - 6e-3, Y = Math.sqrt(v * v + O * O) - 2e-5 * Math.sin(O * e), B = Math.atan2(O, v) - 3e-6 * Math.cos(v * e), ue = Y * Math.cos(B), xe = Y * Math.sin(B);
65
65
  return [ue, xe];
66
66
  }
67
- function c(p, f) {
68
- var v = Math.sqrt(p * p + f * f) + 2e-5 * Math.sin(f * e), O = Math.atan2(f, p) + 3e-6 * Math.cos(p * e), Y = v * Math.cos(O) + 65e-4, B = v * Math.sin(O) + 6e-3;
67
+ function c(u, f) {
68
+ var v = Math.sqrt(u * u + f * f) + 2e-5 * Math.sin(f * e), O = Math.atan2(f, u) + 3e-6 * Math.cos(u * e), Y = v * Math.cos(O) + 65e-4, B = v * Math.sin(O) + 6e-3;
69
69
  return [Y, B];
70
70
  }
71
- function u(p, f) {
72
- return o(p, f) ? b(p, f) : [p, f];
71
+ function g(u, f) {
72
+ return o(u, f) ? b(u, f) : [u, f];
73
73
  }
74
- function d(p, f) {
75
- if (!o(p, f))
76
- return [p, f];
77
- var v = b(p, f);
78
- return [p * 2 - v[0], f * 2 - v[1]];
74
+ function p(u, f) {
75
+ if (!o(u, f))
76
+ return [u, f];
77
+ var v = b(u, f);
78
+ return [u * 2 - v[0], f * 2 - v[1]];
79
79
  }
80
- function b(p, f) {
81
- var v = M(p - 105, f - 35), O = T(p - 105, f - 35), Y = f / 180 * t, B = Math.sin(Y);
80
+ function b(u, f) {
81
+ var v = M(u - 105, f - 35), O = T(u - 105, f - 35), Y = f / 180 * t, B = Math.sin(Y);
82
82
  B = 1 - s * B * B;
83
83
  var ue = Math.sqrt(B);
84
84
  v = v * 180 / (r * (1 - s) / (B * ue) * t), O = O * 180 / (r / ue * Math.cos(Y) * t);
85
- var xe = f + v, Wt = p + O;
86
- return [Wt, xe];
85
+ var xe = f + v, jt = u + O;
86
+ return [jt, xe];
87
87
  }
88
- function M(p, f) {
89
- var v = -100 + 2 * p + 3 * f + 0.2 * f * f + 0.1 * p * f + 0.2 * Math.sqrt(Math.abs(p));
90
- return v += (20 * Math.sin(6 * p * t) + 20 * Math.sin(2 * p * t)) * 2 / 3, v += (20 * Math.sin(f * t) + 40 * Math.sin(f / 3 * t)) * 2 / 3, v += (160 * Math.sin(f / 12 * t) + 320 * Math.sin(f * t / 30)) * 2 / 3, v;
88
+ function M(u, f) {
89
+ var v = -100 + 2 * u + 3 * f + 0.2 * f * f + 0.1 * u * f + 0.2 * Math.sqrt(Math.abs(u));
90
+ return v += (20 * Math.sin(6 * u * t) + 20 * Math.sin(2 * u * t)) * 2 / 3, v += (20 * Math.sin(f * t) + 40 * Math.sin(f / 3 * t)) * 2 / 3, v += (160 * Math.sin(f / 12 * t) + 320 * Math.sin(f * t / 30)) * 2 / 3, v;
91
91
  }
92
- function T(p, f) {
93
- var v = 300 + p + 2 * f + 0.1 * p * p + 0.1 * p * f + 0.1 * Math.sqrt(Math.abs(p));
94
- return v += (20 * Math.sin(6 * p * t) + 20 * Math.sin(2 * p * t)) * 2 / 3, v += (20 * Math.sin(p * t) + 40 * Math.sin(p / 3 * t)) * 2 / 3, v += (150 * Math.sin(p / 12 * t) + 300 * Math.sin(p / 30 * t)) * 2 / 3, v;
92
+ function T(u, f) {
93
+ var v = 300 + u + 2 * f + 0.1 * u * u + 0.1 * u * f + 0.1 * Math.sqrt(Math.abs(u));
94
+ return v += (20 * Math.sin(6 * u * t) + 20 * Math.sin(2 * u * t)) * 2 / 3, v += (20 * Math.sin(u * t) + 40 * Math.sin(u / 3 * t)) * 2 / 3, v += (150 * Math.sin(u / 12 * t) + 300 * Math.sin(u / 30 * t)) * 2 / 3, v;
95
95
  }
96
96
  return {
97
97
  // 向前兼容
98
98
  bd09togcj02: l,
99
99
  gcj02tobd09: c,
100
- wgs84togcj02: u,
101
- gcj02towgs84: d,
100
+ wgs84togcj02: g,
101
+ gcj02towgs84: p,
102
102
  // 小驼峰命名风格
103
103
  bd09ToGcj02: l,
104
104
  gcj02ToBd09: c,
105
- wgs84ToGcj02: u,
106
- gcj02ToWgs84: d,
107
- bd09ToWgs84: function(p, f) {
108
- if (!o(p, f))
109
- return [p, f];
110
- var v = l(p, f);
111
- return d(v[0], v[1]);
105
+ wgs84ToGcj02: g,
106
+ gcj02ToWgs84: p,
107
+ bd09ToWgs84: function(u, f) {
108
+ if (!o(u, f))
109
+ return [u, f];
110
+ var v = l(u, f);
111
+ return p(v[0], v[1]);
112
112
  },
113
- wgs84ToBd09: function(p, f) {
114
- if (!o(p, f))
115
- return [p, f];
116
- var v = u(p, f);
113
+ wgs84ToBd09: function(u, f) {
114
+ if (!o(u, f))
115
+ return [u, f];
116
+ var v = g(u, f);
117
117
  return c(v[0], v[1]);
118
118
  }
119
119
  };
120
120
  });
121
121
  })(Jt);
122
- function x(i) {
122
+ function P(i) {
123
123
  throw new Error(i);
124
124
  }
125
125
  function Qt(i) {
126
126
  throw new Error(`Unsupported: ${i}`);
127
127
  }
128
- function wi(i) {
128
+ function mi(i) {
129
129
  throw new Error(`todo: ${i}`);
130
130
  }
131
- function xi(i) {
131
+ function fi(i) {
132
132
  return i;
133
133
  }
134
134
  function ve(...i) {
135
135
  }
136
- function Ei(i) {
136
+ function yi(i) {
137
137
  return i != null;
138
138
  }
139
139
  function ae(i, e) {
140
140
  if (!i)
141
141
  throw new Error(`AssertionError: ${e}`);
142
142
  }
143
- function ut(i) {
143
+ function mt(i) {
144
144
  throw new Error(`Unexpected object: ${i}`);
145
145
  }
146
146
  var q = /* @__PURE__ */ ((i) => (i.wgs84 = "wgs84", i.gcj02 = "gcj02", i.bd09 = "bd09", i))(q || {});
@@ -197,11 +197,11 @@ const Ee = "wgs84", S = class {
197
197
  convert(e) {
198
198
  switch (this.coord) {
199
199
  case "bd09":
200
- return e === "gcj02" ? W.bd09ToGcj02(this.lng, this.lat) : W.bd09ToWgs84(this.lng, this.lat);
200
+ return e === "gcj02" ? V.bd09ToGcj02(this.lng, this.lat) : V.bd09ToWgs84(this.lng, this.lat);
201
201
  case "gcj02":
202
- return e === "wgs84" ? W.gcj02ToWgs84(this.lng, this.lat) : W.gcj02ToBd09(this.lng, this.lat);
202
+ return e === "wgs84" ? V.gcj02ToWgs84(this.lng, this.lat) : V.gcj02ToBd09(this.lng, this.lat);
203
203
  case "wgs84":
204
- return e === "bd09" ? W.wgs84ToBd09(this.lng, this.lat) : W.wgs84ToGcj02(this.lng, this.lat);
204
+ return e === "bd09" ? V.wgs84ToBd09(this.lng, this.lat) : V.wgs84ToGcj02(this.lng, this.lat);
205
205
  }
206
206
  throw new Error(`不支持的坐标转换: ${this.coord}=>${e}`);
207
207
  }
@@ -236,7 +236,7 @@ const K = class {
236
236
  return t.build();
237
237
  }
238
238
  static from(...e) {
239
- return this.fromArray(e) ?? x("positions中没有点");
239
+ return this.fromArray(e) ?? P("positions中没有点");
240
240
  }
241
241
  static fromGoogle(e, t) {
242
242
  return new K(
@@ -280,8 +280,8 @@ const K = class {
280
280
  return [this.sw.toBaidu(e), this.ne.toBaidu(e)];
281
281
  }
282
282
  };
283
- let V = K;
284
- h(V, "EMPTY", new K(y.ZERO, y.ZERO));
283
+ let W = K;
284
+ h(W, "EMPTY", new K(y.ZERO, y.ZERO));
285
285
  ((i) => {
286
286
  class e {
287
287
  constructor(r) {
@@ -309,7 +309,7 @@ h(V, "EMPTY", new K(y.ZERO, y.ZERO));
309
309
  }
310
310
  }
311
311
  i.Builder = e;
312
- })(V || (V = {}));
312
+ })(W || (W = {}));
313
313
  var er = function(e) {
314
314
  return tr(e) && !rr(e);
315
315
  };
@@ -346,10 +346,10 @@ function hr(i) {
346
346
  return Object.propertyIsEnumerable.call(i, e);
347
347
  }) : [];
348
348
  }
349
- function gt(i) {
349
+ function ft(i) {
350
350
  return Object.keys(i).concat(hr(i));
351
351
  }
352
- function Ot(i, e) {
352
+ function Ct(i, e) {
353
353
  try {
354
354
  return e in i;
355
355
  } catch {
@@ -357,14 +357,14 @@ function Ot(i, e) {
357
357
  }
358
358
  }
359
359
  function cr(i, e) {
360
- return Ot(i, e) && !(Object.hasOwnProperty.call(i, e) && Object.propertyIsEnumerable.call(i, e));
360
+ return Ct(i, e) && !(Object.hasOwnProperty.call(i, e) && Object.propertyIsEnumerable.call(i, e));
361
361
  }
362
362
  function dr(i, e, t) {
363
363
  var r = {};
364
- return t.isMergeableObject(i) && gt(i).forEach(function(s) {
364
+ return t.isMergeableObject(i) && ft(i).forEach(function(s) {
365
365
  r[s] = le(i[s], t);
366
- }), gt(e).forEach(function(s) {
367
- cr(i, s) || (Ot(i, s) && t.isMergeableObject(e[s]) ? r[s] = lr(s, t)(i[s], e[s], t) : r[s] = le(e[s], t));
366
+ }), ft(e).forEach(function(s) {
367
+ cr(i, s) || (Ct(i, s) && t.isMergeableObject(e[s]) ? r[s] = lr(s, t)(i[s], e[s], t) : r[s] = le(e[s], t));
368
368
  }), r;
369
369
  }
370
370
  function ee(i, e, t) {
@@ -379,7 +379,7 @@ ee.all = function(e, t) {
379
379
  return ee(r, s, t);
380
380
  }, {});
381
381
  };
382
- var pr = ee, Ct = pr;
382
+ var pr = ee, wt = pr;
383
383
  const _e = ["3.0"], ur = {
384
384
  baidu: {
385
385
  version: "3.0",
@@ -400,22 +400,22 @@ const _e = ["3.0"], ur = {
400
400
  language: ""
401
401
  }
402
402
  };
403
- let wt;
404
- function xt() {
405
- return wt || x("请先安装: Vue<PartialTgMapConfig>.use(TgMap, {})");
403
+ let xt;
404
+ function Et() {
405
+ return xt || P("请先安装: Vue<PartialTgMapConfig>.use(TgMap, {})");
406
406
  }
407
407
  function gr(i) {
408
- i != null && (wt = Ct(ur, i));
408
+ i != null && (xt = wt(ur, i));
409
409
  }
410
- function ki() {
410
+ function vi() {
411
411
  }
412
412
  function Le(i) {
413
413
  return i;
414
414
  }
415
- function Pi(i, e) {
415
+ function _i(i, e) {
416
416
  return i instanceof e;
417
417
  }
418
- function Ii(i, e) {
418
+ function Mi(i, e) {
419
419
  if (i instanceof e)
420
420
  return i;
421
421
  }
@@ -423,7 +423,7 @@ function pe(i, e) {
423
423
  if ((i == null ? void 0 : i.$options.name) === e.name)
424
424
  return i;
425
425
  }
426
- function Li(i) {
426
+ function bi(i) {
427
427
  return i;
428
428
  }
429
429
  class Ze {
@@ -487,29 +487,29 @@ function mr(i) {
487
487
  * Copyright (c) 2014-2017, Jon Schlinkert.
488
488
  * Released under the MIT License.
489
489
  */
490
- function mt(i) {
490
+ function yt(i) {
491
491
  return mr(i) === !0 && Object.prototype.toString.call(i) === "[object Object]";
492
492
  }
493
- function Et(i) {
493
+ function kt(i) {
494
494
  var e, t;
495
- return !(mt(i) === !1 || (e = i.constructor, typeof e != "function") || (t = e.prototype, mt(t) === !1) || t.hasOwnProperty("isPrototypeOf") === !1);
495
+ return !(yt(i) === !1 || (e = i.constructor, typeof e != "function") || (t = e.prototype, yt(t) === !1) || t.hasOwnProperty("isPrototypeOf") === !1);
496
496
  }
497
497
  var he;
498
498
  ((i) => {
499
499
  function e(n, a) {
500
- return n.reduce((g, o) => (g[a(o)] = o, g), {});
500
+ return n.reduce((d, o) => (d[a(o)] = o, d), {});
501
501
  }
502
502
  i.fromArray = e;
503
503
  function t(n) {
504
- return n.reduce((a, g) => (a[g[0]] = g[1], a), {});
504
+ return n.reduce((a, d) => (a[d[0]] = d[1], a), {});
505
505
  }
506
506
  i.fromEntries = t;
507
507
  function r(n) {
508
- return JSON.stringify(n, (a, g) => typeof g == "object" && Object.getPrototypeOf(g) !== Object.prototype ? g.toString !== Object.prototype.toString ? g.toString() : `[object ${Object.getPrototypeOf(g).constructor.name}]` : g);
508
+ return JSON.stringify(n, (a, d) => typeof d == "object" && Object.getPrototypeOf(d) !== Object.prototype ? d.toString !== Object.prototype.toString ? d.toString() : `[object ${Object.getPrototypeOf(d).constructor.name}]` : d);
509
509
  }
510
510
  i.toJsonSafely = r;
511
511
  function s(n) {
512
- Et(n) && Object.keys(n).forEach((a) => {
512
+ kt(n) && Object.keys(n).forEach((a) => {
513
513
  n[a] === void 0 ? delete n[a] : s(n[a]);
514
514
  });
515
515
  }
@@ -522,8 +522,8 @@ var R = /* @__PURE__ */ ((i) => (i.auto = "auto", i.none = "none", i.greedy = "g
522
522
  function e(t) {
523
523
  he.deleteUndefinedPropertyOnPlainObjectDeeply(t);
524
524
  const r = { center: y.ZERO, zoom: 5 };
525
- return Ct(r, t || {}, {
526
- isMergeableObject: Et
525
+ return wt(r, t || {}, {
526
+ isMergeableObject: kt
527
527
  });
528
528
  }
529
529
  i.create = e;
@@ -539,7 +539,7 @@ var Se = {}, yr = {
539
539
  (function(i, e) {
540
540
  (function(t, r) {
541
541
  i.exports = r();
542
- })(Tt, function() {
542
+ })(Ot, function() {
543
543
  var t, r = t = r || { version: "1.3.8" }, s = {};
544
544
  r.guid = "$BAIDU$", s[r.guid] = s[r.guid] || {}, r.dom = r.dom || {}, r.dom.g = function(o) {
545
545
  return typeof o == "string" || o instanceof String ? document.getElementById(o) : o && o.nodeName && (o.nodeType == 1 || o.nodeType == 9) ? o : null;
@@ -551,10 +551,10 @@ var Se = {}, yr = {
551
551
  return r.lang.isString(o) ? document.getElementById(o) : o;
552
552
  }, r._g = r.dom._g, r.browser = r.browser || {}, /msie (\d+\.\d)/i.test(navigator.userAgent) && (r.browser.ie = r.ie = document.documentMode || +RegExp.$1), r.dom.getComputedStyle = function(o, l) {
553
553
  o = r.dom._g(o);
554
- var c = r.dom.getDocument(o), u;
555
- return c.defaultView && c.defaultView.getComputedStyle && (u = c.defaultView.getComputedStyle(o, null), u) ? u[l] || u.getPropertyValue(l) : "";
554
+ var c = r.dom.getDocument(o), g;
555
+ return c.defaultView && c.defaultView.getComputedStyle && (g = c.defaultView.getComputedStyle(o, null), g) ? g[l] || g.getPropertyValue(l) : "";
556
556
  }, r.dom._styleFixer = r.dom._styleFixer || {}, r.dom._styleFilter = r.dom._styleFilter || [], r.dom._styleFilter.filter = function(o, l, c) {
557
- for (var u = 0, d = r.dom._styleFilter, b; b = d[u]; u++)
557
+ for (var g = 0, p = r.dom._styleFilter, b; b = p[g]; g++)
558
558
  (b = b[c]) && (l = b(o, l));
559
559
  return l;
560
560
  }, r.string = r.string || {}, r.string.toCamelCase = function(o) {
@@ -564,42 +564,42 @@ var Se = {}, yr = {
564
564
  }, r.dom.getStyle = function(o, l) {
565
565
  var c = r.dom;
566
566
  o = c.g(o), l = r.string.toCamelCase(l);
567
- var u = o.style[l] || (o.currentStyle ? o.currentStyle[l] : "") || c.getComputedStyle(o, l);
568
- if (!u) {
569
- var d = c._styleFixer[l];
570
- d && (u = d.get ? d.get(o) : r.dom.getStyle(o, d));
567
+ var g = o.style[l] || (o.currentStyle ? o.currentStyle[l] : "") || c.getComputedStyle(o, l);
568
+ if (!g) {
569
+ var p = c._styleFixer[l];
570
+ p && (g = p.get ? p.get(o) : r.dom.getStyle(o, p));
571
571
  }
572
- return (d = c._styleFilter) && (u = d.filter(l, u, "get")), u;
572
+ return (p = c._styleFilter) && (g = p.filter(l, g, "get")), g;
573
573
  }, r.getStyle = r.dom.getStyle, /opera\/(\d+\.\d)/i.test(navigator.userAgent) && (r.browser.opera = +RegExp.$1), r.browser.isWebkit = /webkit/i.test(navigator.userAgent), r.browser.isGecko = /gecko/i.test(navigator.userAgent) && !/like gecko/i.test(navigator.userAgent), r.browser.isStrict = document.compatMode == "CSS1Compat", r.dom.getPosition = function(o) {
574
574
  o = r.dom.g(o);
575
- var l = r.dom.getDocument(o), c = r.browser, u = r.dom.getStyle;
576
- c.isGecko > 0 && l.getBoxObjectFor && u(o, "position") == "absolute" && (o.style.top === "" || o.style.left);
577
- var d = { left: 0, top: 0 }, b = c.ie && !c.isStrict ? l.body : l.documentElement, M, T;
575
+ var l = r.dom.getDocument(o), c = r.browser, g = r.dom.getStyle;
576
+ c.isGecko > 0 && l.getBoxObjectFor && g(o, "position") == "absolute" && (o.style.top === "" || o.style.left);
577
+ var p = { left: 0, top: 0 }, b = c.ie && !c.isStrict ? l.body : l.documentElement, M, T;
578
578
  if (o == b)
579
- return d;
579
+ return p;
580
580
  if (o.getBoundingClientRect) {
581
- T = o.getBoundingClientRect(), d.left = Math.floor(T.left) + Math.max(l.documentElement.scrollLeft, l.body.scrollLeft), d.top = Math.floor(T.top) + Math.max(l.documentElement.scrollTop, l.body.scrollTop), d.left -= l.documentElement.clientLeft, d.top -= l.documentElement.clientTop;
582
- var p = l.body, f = parseInt(u(p, "borderLeftWidth")), v = parseInt(u(p, "borderTopWidth"));
583
- c.ie && !c.isStrict && (d.left -= isNaN(f) ? 2 : f, d.top -= isNaN(v) ? 2 : v);
581
+ T = o.getBoundingClientRect(), p.left = Math.floor(T.left) + Math.max(l.documentElement.scrollLeft, l.body.scrollLeft), p.top = Math.floor(T.top) + Math.max(l.documentElement.scrollTop, l.body.scrollTop), p.left -= l.documentElement.clientLeft, p.top -= l.documentElement.clientTop;
582
+ var u = l.body, f = parseInt(g(u, "borderLeftWidth")), v = parseInt(g(u, "borderTopWidth"));
583
+ c.ie && !c.isStrict && (p.left -= isNaN(f) ? 2 : f, p.top -= isNaN(v) ? 2 : v);
584
584
  } else {
585
585
  M = o;
586
586
  do {
587
- if (d.left += M.offsetLeft, d.top += M.offsetTop, c.isWebkit > 0 && u(M, "position") == "fixed") {
588
- d.left += l.body.scrollLeft, d.top += l.body.scrollTop;
587
+ if (p.left += M.offsetLeft, p.top += M.offsetTop, c.isWebkit > 0 && g(M, "position") == "fixed") {
588
+ p.left += l.body.scrollLeft, p.top += l.body.scrollTop;
589
589
  break;
590
590
  }
591
591
  M = M.offsetParent;
592
592
  } while (M && M != o);
593
- for ((c.opera > 0 || c.isWebkit > 0 && u(o, "position") == "absolute") && (d.top -= l.body.offsetTop), M = o.offsetParent; M && M != l.body; )
594
- d.left -= M.scrollLeft, (!c.opera || M.tagName != "TR") && (d.top -= M.scrollTop), M = M.offsetParent;
593
+ for ((c.opera > 0 || c.isWebkit > 0 && g(o, "position") == "absolute") && (p.top -= l.body.offsetTop), M = o.offsetParent; M && M != l.body; )
594
+ p.left -= M.scrollLeft, (!c.opera || M.tagName != "TR") && (p.top -= M.scrollTop), M = M.offsetParent;
595
595
  }
596
- return d;
596
+ return p;
597
597
  }, r.event = r.event || {}, r.event._listeners = r.event._listeners || [], r.event.on = function(o, l, c) {
598
598
  l = l.replace(/^on/i, ""), o = r.dom._g(o);
599
- var u = function(p) {
600
- c.call(o, p);
601
- }, d = r.event._listeners, b = r.event._eventFilter, M, T = l;
602
- return l = l.toLowerCase(), b && b[l] && (M = b[l](o, l, u), T = M.type, u = M.listener), o.addEventListener ? o.addEventListener(T, u, !1) : o.attachEvent && o.attachEvent("on" + T, u), d[d.length] = [o, l, c, u, T], o;
599
+ var g = function(u) {
600
+ c.call(o, u);
601
+ }, p = r.event._listeners, b = r.event._eventFilter, M, T = l;
602
+ return l = l.toLowerCase(), b && b[l] && (M = b[l](o, l, g), T = M.type, g = M.listener), o.addEventListener ? o.addEventListener(T, g, !1) : o.attachEvent && o.attachEvent("on" + T, g), p[p.length] = [o, l, c, g, T], o;
603
603
  }, r.on = r.event.on, function() {
604
604
  var o = s[r.guid];
605
605
  r.lang.guid = function() {
@@ -621,13 +621,13 @@ var Se = {}, yr = {
621
621
  }, r.lang.Class.prototype.addEventListener = function(o, l, c) {
622
622
  if (r.lang.isFunction(l)) {
623
623
  !this.__listeners && (this.__listeners = {});
624
- var u = this.__listeners, d;
624
+ var g = this.__listeners, p;
625
625
  if (typeof c == "string" && c) {
626
626
  if (/[^\w\-]/.test(c))
627
627
  throw "nonstandard key:" + c;
628
- l.hashCode = c, d = c;
628
+ l.hashCode = c, p = c;
629
629
  }
630
- o.indexOf("on") != 0 && (o = "on" + o), typeof u[o] != "object" && (u[o] = {}), d = d || r.lang.guid(), l.hashCode = d, u[o][d] = l;
630
+ o.indexOf("on") != 0 && (o = "on" + o), typeof g[o] != "object" && (g[o] = {}), p = p || r.lang.guid(), l.hashCode = p, g[o][p] = l;
631
631
  }
632
632
  }, r.lang.Class.prototype.removeEventListener = function(o, l) {
633
633
  if (!(typeof l < "u" && (r.lang.isFunction(l) && !(l = l.hashCode) || !r.lang.isString(l)))) {
@@ -637,100 +637,100 @@ var Se = {}, yr = {
637
637
  if (typeof l < "u")
638
638
  c[o][l] && delete c[o][l];
639
639
  else
640
- for (var u in c[o])
641
- delete c[o][u];
640
+ for (var g in c[o])
641
+ delete c[o][g];
642
642
  }
643
643
  }, r.lang.Class.prototype.dispatchEvent = function(o, l) {
644
644
  r.lang.isString(o) && (o = new r.lang.Event(o)), !this.__listeners && (this.__listeners = {}), l = l || {};
645
645
  for (var c in l)
646
646
  o[c] = l[c];
647
- var c, u = this.__listeners, d = o.type;
648
- if (o.target = o.target || this, o.currentTarget = this, d.indexOf("on") != 0 && (d = "on" + d), r.lang.isFunction(this[d]) && this[d].apply(this, arguments), typeof u[d] == "object")
649
- for (c in u[d])
650
- u[d][c].apply(this, arguments);
647
+ var c, g = this.__listeners, p = o.type;
648
+ if (o.target = o.target || this, o.currentTarget = this, p.indexOf("on") != 0 && (p = "on" + p), r.lang.isFunction(this[p]) && this[p].apply(this, arguments), typeof g[p] == "object")
649
+ for (c in g[p])
650
+ g[p][c].apply(this, arguments);
651
651
  return o.returnValue;
652
652
  }, r.lang.inherits = function(o, l, c) {
653
- var u, d, b = o.prototype, M = new Function();
654
- M.prototype = l.prototype, d = o.prototype = new M();
655
- for (u in b)
656
- d[u] = b[u];
657
- o.prototype.constructor = o, o.superClass = l.prototype, typeof c == "string" && (d._className = c);
653
+ var g, p, b = o.prototype, M = new Function();
654
+ M.prototype = l.prototype, p = o.prototype = new M();
655
+ for (g in b)
656
+ p[g] = b[g];
657
+ o.prototype.constructor = o, o.superClass = l.prototype, typeof c == "string" && (p._className = c);
658
658
  }, r.inherits = r.lang.inherits;
659
- var n = "http://api.map.baidu.com/library/TextIconOverlay/1.2/src/images/m", a = "png", g = function(o, l, c) {
659
+ var n = "http://api.map.baidu.com/library/TextIconOverlay/1.2/src/images/m", a = "png", d = function(o, l, c) {
660
660
  try {
661
661
  BMap;
662
662
  } catch {
663
663
  throw Error("Baidu Map JS API is not ready yet!");
664
664
  }
665
- t.lang.inherits(g, BMap.Overlay, "TextIconOverlay"), this._position = o, this._text = l, this._options = c || {}, this._styles = this._options.styles || [], this._zIndex = this._options.zIndex, !this._styles.length && this._setupDefaultStyles();
665
+ t.lang.inherits(d, BMap.Overlay, "TextIconOverlay"), this._position = o, this._text = l, this._options = c || {}, this._styles = this._options.styles || [], this._zIndex = this._options.zIndex, !this._styles.length && this._setupDefaultStyles();
666
666
  };
667
- return g.prototype._setupDefaultStyles = function() {
667
+ return d.prototype._setupDefaultStyles = function() {
668
668
  for (var o = [53, 56, 66, 78, 90], l = 0, c; c = o[l]; l++)
669
669
  this._styles.push({
670
670
  url: n + l + "." + a,
671
671
  size: new BMap.Size(c, c)
672
672
  });
673
- }, g.prototype.initialize = function(o) {
673
+ }, d.prototype.initialize = function(o) {
674
674
  return this._map = o, this._domElement = document.createElement("div"), this._updateCss(), this._updateText(), this._updatePosition(), this._bind(), this._map.getPanes().markerMouseTarget.appendChild(this._domElement), this._domElement;
675
- }, g.prototype.draw = function() {
675
+ }, d.prototype.draw = function() {
676
676
  this._map && this._updatePosition();
677
- }, g.prototype.getText = function() {
677
+ }, d.prototype.getText = function() {
678
678
  return this._text;
679
- }, g.prototype.setText = function(o) {
679
+ }, d.prototype.setText = function(o) {
680
680
  o && (!this._text || this._text.toString() != o.toString()) && (this._text = o, this._updateText(), this._updateCss(), this._updatePosition());
681
- }, g.prototype.getPosition = function() {
681
+ }, d.prototype.getPosition = function() {
682
682
  return this._position;
683
- }, g.prototype.setPosition = function(o) {
683
+ }, d.prototype.setPosition = function(o) {
684
684
  o && (!this._position || !this._position.equals(o)) && (this._position = o, this._updatePosition());
685
- }, g.prototype.getStyleByText = function(o, l) {
686
- var c = parseInt(o), u = parseInt(c / 10);
687
- return u = Math.max(0, u), u = Math.min(u, l.length - 1), l[u];
688
- }, g.prototype._updateCss = function() {
685
+ }, d.prototype.getStyleByText = function(o, l) {
686
+ var c = parseInt(o), g = parseInt(c / 10);
687
+ return g = Math.max(0, g), g = Math.min(g, l.length - 1), l[g];
688
+ }, d.prototype._updateCss = function() {
689
689
  if (this._domElement) {
690
690
  var o = this.getStyleByText(this._text, this._styles);
691
691
  this._domElement.style.cssText = this._buildCssText(o);
692
692
  }
693
- }, g.prototype._updateText = function() {
693
+ }, d.prototype._updateText = function() {
694
694
  this._domElement && (this._domElement.innerHTML = this._text);
695
- }, g.prototype._updatePosition = function() {
695
+ }, d.prototype._updatePosition = function() {
696
696
  if (this._domElement && this._position) {
697
697
  var o = this._domElement.style, l = this._map.pointToOverlayPixel(this._position);
698
698
  l.x -= Math.ceil(parseInt(o.width) / 2), l.y -= Math.ceil(parseInt(o.height) / 2), o.left = l.x + "px", o.top = l.y + "px";
699
699
  }
700
- }, g.prototype._buildCssText = function(o) {
701
- var l = o.url, c = o.size, u = o.anchor, d = o.offset, b = o.textColor || "black", M = o.textSize || 10, T = [];
700
+ }, d.prototype._buildCssText = function(o) {
701
+ var l = o.url, c = o.size, g = o.anchor, p = o.offset, b = o.textColor || "black", M = o.textSize || 10, T = [];
702
702
  if (this._zIndex && T.push("z-index:" + this._zIndex + ";"), t.browser.ie < 7)
703
703
  T.push('filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="' + l + '");');
704
704
  else {
705
705
  T.push("background-image:url(" + l + ");");
706
- var p = "0 0";
707
- d instanceof BMap.Size && (p = d.width + "px " + d.height + "px"), T.push("background-position:" + p + ";");
706
+ var u = "0 0";
707
+ p instanceof BMap.Size && (u = p.width + "px " + p.height + "px"), T.push("background-position:" + u + ";");
708
708
  }
709
- return c instanceof BMap.Size && (u instanceof BMap.Size ? (u.height > 0 && u.height < c.height && T.push("height:" + (c.height - u.height) + "px; padding-top:" + u.height + "px;"), u.width > 0 && u.width < c.width && T.push("width:" + (c.width - u.width) + "px; padding-left:" + u.width + "px;")) : (T.push("height:" + c.height + "px; line-height:" + c.height + "px;"), T.push("width:" + c.width + "px; text-align:center;"))), T.push("cursor:pointer; color:" + b + "; position:absolute; font-size:" + M + "px; font-family:Arial,sans-serif; font-weight:bold"), T.join("");
710
- }, g.prototype._bind = function() {
709
+ return c instanceof BMap.Size && (g instanceof BMap.Size ? (g.height > 0 && g.height < c.height && T.push("height:" + (c.height - g.height) + "px; padding-top:" + g.height + "px;"), g.width > 0 && g.width < c.width && T.push("width:" + (c.width - g.width) + "px; padding-left:" + g.width + "px;")) : (T.push("height:" + c.height + "px; line-height:" + c.height + "px;"), T.push("width:" + c.width + "px; text-align:center;"))), T.push("cursor:pointer; color:" + b + "; position:absolute; font-size:" + M + "px; font-family:Arial,sans-serif; font-weight:bold"), T.join("");
710
+ }, d.prototype._bind = function() {
711
711
  if (!this._domElement)
712
712
  return;
713
713
  var o = this, l = this._map, c = t.lang.Event;
714
- function u(d, b) {
715
- var M = d.srcElement || d.target, T = d.clientX || d.pageX, p = d.clientY || d.pageY;
716
- if (d && b && T && p && M) {
714
+ function g(p, b) {
715
+ var M = p.srcElement || p.target, T = p.clientX || p.pageX, u = p.clientY || p.pageY;
716
+ if (p && b && T && u && M) {
717
717
  var f = t.dom.getPosition(l.getContainer());
718
- b.pixel = new BMap.Pixel(T - f.left, p - f.top), b.point = l.pixelToPoint(b.pixel);
718
+ b.pixel = new BMap.Pixel(T - f.left, u - f.top), b.point = l.pixelToPoint(b.pixel);
719
719
  }
720
720
  return b;
721
721
  }
722
- t.event.on(this._domElement, "mouseover", function(d) {
723
- o.dispatchEvent(u(d, new c("onmouseover")));
724
- }), t.event.on(this._domElement, "mouseout", function(d) {
725
- o.dispatchEvent(u(d, new c("onmouseout")));
726
- }), t.event.on(this._domElement, "click", function(d) {
727
- o.dispatchEvent(u(d, new c("onclick")));
722
+ t.event.on(this._domElement, "mouseover", function(p) {
723
+ o.dispatchEvent(g(p, new c("onmouseover")));
724
+ }), t.event.on(this._domElement, "mouseout", function(p) {
725
+ o.dispatchEvent(g(p, new c("onmouseout")));
726
+ }), t.event.on(this._domElement, "click", function(p) {
727
+ o.dispatchEvent(g(p, new c("onclick")));
728
728
  });
729
- }, g;
729
+ }, d;
730
730
  });
731
731
  })(yr);
732
- const ft = Se;
733
- var kt = function(i, e, t) {
732
+ const vt = Se;
733
+ var Pt = function(i, e, t) {
734
734
  e = vr(e);
735
735
  var r = i.pointToPixel(e.getNorthEast()), s = i.pointToPixel(e.getSouthWest());
736
736
  r.x += t, r.y -= t, s.x -= t, s.y += t;
@@ -741,11 +741,11 @@ var kt = function(i, e, t) {
741
741
  return new BMap.Bounds(new BMap.Point(t, s), new BMap.Point(e, r));
742
742
  }, ge = function(i, e, t) {
743
743
  return e && (i = Math.max(i, e)), t && (i = Math.min(i, t)), i;
744
- }, Pt = function(i) {
744
+ }, It = function(i) {
745
745
  return Object.prototype.toString.call(i) === "[object Array]";
746
- }, It = function(i, e) {
746
+ }, Lt = function(i, e) {
747
747
  var t = -1;
748
- if (Pt(e)) {
748
+ if (It(e)) {
749
749
  if (e.indexOf)
750
750
  t = e.indexOf(i);
751
751
  else
@@ -773,7 +773,7 @@ var kt = function(i, e, t) {
773
773
  r._redraw();
774
774
  });
775
775
  var s = t.markers;
776
- Pt(s) && this.addMarkers(s);
776
+ It(s) && this.addMarkers(s);
777
777
  }
778
778
  };
779
779
  _.prototype.addMarkers = function(i) {
@@ -784,7 +784,7 @@ _.prototype.addMarkers = function(i) {
784
784
  }
785
785
  };
786
786
  _.prototype._pushMarkerTo = function(i) {
787
- var e = It(i, this._markers);
787
+ var e = Lt(i, this._markers);
788
788
  e === -1 && (i.isInCluster = !1, this._markers.push(i));
789
789
  };
790
790
  _.prototype.addMarker = function(i) {
@@ -793,7 +793,7 @@ _.prototype.addMarker = function(i) {
793
793
  _.prototype._createClusters = function() {
794
794
  var i = this._map.getBounds();
795
795
  if (i.getCenter()) {
796
- for (var e = kt(this._map, i, this._gridSize), t = 0, r; r = this._markers[t]; t++)
796
+ for (var e = Pt(this._map, i, this._gridSize), t = 0, r; r = this._markers[t]; t++)
797
797
  !r.isInCluster && e.containsPoint(r.getPosition()) && this._addToClosestCluster(r);
798
798
  for (var s = this._markers.length, t = 0; t < s; t++)
799
799
  this._clusters[t] && this._clusters[t].render();
@@ -833,7 +833,7 @@ _.prototype._removeMarkersFromMap = function() {
833
833
  }
834
834
  };
835
835
  _.prototype._removeMarker = function(i) {
836
- var e = It(i, this._markers);
836
+ var e = Lt(i, this._markers);
837
837
  return e === -1 ? !1 : (this._map.removeOverlay(i), this._markers.splice(e, 1), !0);
838
838
  };
839
839
  _.prototype.removeMarker = function(i) {
@@ -909,7 +909,7 @@ _.prototype.setStylesIndexCalculator = function(i) {
909
909
  };
910
910
  function L(i) {
911
911
  var e = this;
912
- this._markerClusterer = i, this._map = i.getMap(), this._minClusterSize = i.getMinClusterSize(), this._isAverageCenter = i.isAverageCenter(), this._center = null, this._markers = [], this._gridBounds = null, this._isReal = !1, this._clusterMarker = new ft(this._center, this._markers.length, {
912
+ this._markerClusterer = i, this._map = i.getMap(), this._minClusterSize = i.getMinClusterSize(), this._isAverageCenter = i.isAverageCenter(), this._center = null, this._markers = [], this._gridBounds = null, this._isReal = !1, this._clusterMarker = new vt(this._center, this._markers.length, {
913
913
  styles: this._markerClusterer.getStyles(),
914
914
  zIndex: i._zIndex
915
915
  }), this._clusterMarker.getStyleByText = function(t, r) {
@@ -917,7 +917,7 @@ function L(i) {
917
917
  var s = e._markerClusterer._stylesIndexCalculator(e._markers, r.length);
918
918
  return r[s];
919
919
  }
920
- return ft.prototype.getStyleByText.call(this, t, r);
920
+ return vt.prototype.getStyleByText.call(this, t, r);
921
921
  }, this._clusterMarker.addEventListener && this._clusterMarker.addEventListener("click", function(t) {
922
922
  e._map.setViewport(e.getBounds());
923
923
  });
@@ -957,7 +957,7 @@ L.prototype.isReal = function(i) {
957
957
  };
958
958
  L.prototype.updateGridBounds = function() {
959
959
  var i = new BMap.Bounds(this._center, this._center);
960
- this._gridBounds = kt(this._map, i, this._markerClusterer.getGridSize());
960
+ this._gridBounds = Pt(this._map, i, this._markerClusterer.getGridSize());
961
961
  };
962
962
  L.prototype.updateClusterMarker = function() {
963
963
  if (this._map.getZoom() > this._markerClusterer.getMaxZoom()) {
@@ -987,18 +987,18 @@ L.prototype.getBounds = function() {
987
987
  L.prototype.getCenter = function() {
988
988
  return this._center;
989
989
  };
990
- let _r = class Lt {
990
+ let _r = class Bt {
991
991
  constructor(e, t, r) {
992
- this.extend(Lt, google.maps.OverlayView), this.map_ = e, this.MARKER_CLUSTER_IMAGE_PATH_ = "../images/m", this.MARKER_CLUSTER_IMAGE_EXTENSION_ = "png", this.markers_ = [], this.clusters_ = [], this.sizes = [53, 56, 66, 78, 90], this.styles_ = [], this.ready_ = !1;
992
+ this.extend(Bt, google.maps.OverlayView), this.map_ = e, this.MARKER_CLUSTER_IMAGE_PATH_ = "../images/m", this.MARKER_CLUSTER_IMAGE_EXTENSION_ = "png", this.markers_ = [], this.clusters_ = [], this.sizes = [53, 56, 66, 78, 90], this.styles_ = [], this.ready_ = !1;
993
993
  var s = r || {};
994
994
  this.zIndex_ = s.zIndex || google.maps.Marker.MAX_ZINDEX + 1, this.gridSize_ = s.gridSize || 60, this.minClusterSize_ = s.minimumClusterSize || 2, this.maxZoom_ = s.maxZoom || null, this.styles_ = s.styles || [], this.imagePath_ = s.imagePath || this.MARKER_CLUSTER_IMAGE_PATH_, this.imageExtension_ = s.imageExtension || this.MARKER_CLUSTER_IMAGE_EXTENSION_, this.zoomOnClick_ = !0, s.zoomOnClick != null && (this.zoomOnClick_ = s.zoomOnClick), this.averageCenter_ = !1, s.averageCenter != null && (this.averageCenter_ = s.averageCenter), this.setupStyles_(), this.setMap(e), this.prevZoom_ = this.map_.getZoom();
995
995
  var n = this;
996
996
  google.maps.event.addListener(this.map_, "zoom_changed", function() {
997
- var a = n.map_.getZoom(), g = n.map_.minZoom || 0, o = Math.min(
997
+ var a = n.map_.getZoom(), d = n.map_.minZoom || 0, o = Math.min(
998
998
  n.map_.maxZoom || 100,
999
999
  n.map_.mapTypes[n.map_.getMapTypeId()].maxZoom
1000
1000
  );
1001
- a = Math.min(Math.max(a, g), o), n.prevZoom_ != a && (n.prevZoom_ = a, n.resetViewport());
1001
+ a = Math.min(Math.max(a, d), o), n.prevZoom_ != a && (n.prevZoom_ = a, n.resetViewport());
1002
1002
  }), google.maps.event.addListener(this.map_, "idle", function() {
1003
1003
  n.redraw();
1004
1004
  }), t && (t.length || Object.keys(t).length) && this.addMarkers(t, !1);
@@ -1241,8 +1241,8 @@ let _r = class Lt {
1241
1241
  */
1242
1242
  removeMarkers(e, t) {
1243
1243
  for (var r = e === this.getMarkers() ? e.slice() : e, s = !1, n = 0, a; a = r[n]; n++) {
1244
- var g = this.removeMarker_(a);
1245
- s = s || g;
1244
+ var d = this.removeMarker_(a);
1245
+ s = s || d;
1246
1246
  }
1247
1247
  if (!t && s)
1248
1248
  return this.resetViewport(), this.redraw(), !0;
@@ -1329,8 +1329,8 @@ let _r = class Lt {
1329
1329
  n.x += this.gridSize_, n.y -= this.gridSize_;
1330
1330
  var a = t.fromLatLngToDivPixel(s);
1331
1331
  a.x -= this.gridSize_, a.y += this.gridSize_;
1332
- var g = t.fromDivPixelToLatLng(n), o = t.fromDivPixelToLatLng(a);
1333
- return e.extend(g), e.extend(o), e;
1332
+ var d = t.fromDivPixelToLatLng(n), o = t.fromDivPixelToLatLng(a);
1333
+ return e.extend(d), e.extend(o), e;
1334
1334
  }
1335
1335
  /**
1336
1336
  * Determins if a marker is contained in a bounds.
@@ -1388,7 +1388,7 @@ let _r = class Lt {
1388
1388
  distanceBetweenPoints_(e, t) {
1389
1389
  if (!e || !t)
1390
1390
  return 0;
1391
- var r = 6371, s = (t.lat() - e.lat()) * Math.PI / 180, n = (t.lng() - e.lng()) * Math.PI / 180, a = Math.sin(s / 2) * Math.sin(s / 2) + Math.cos(e.lat() * Math.PI / 180) * Math.cos(t.lat() * Math.PI / 180) * Math.sin(n / 2) * Math.sin(n / 2), g = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a)), o = r * g;
1391
+ var r = 6371, s = (t.lat() - e.lat()) * Math.PI / 180, n = (t.lng() - e.lng()) * Math.PI / 180, a = Math.sin(s / 2) * Math.sin(s / 2) + Math.cos(e.lat() * Math.PI / 180) * Math.cos(t.lat() * Math.PI / 180) * Math.sin(n / 2) * Math.sin(n / 2), d = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a)), o = r * d;
1392
1392
  return o;
1393
1393
  }
1394
1394
  /**
@@ -1401,8 +1401,8 @@ let _r = class Lt {
1401
1401
  for (var t = 4e4, r = null, s = 0, n; n = this.clusters_[s]; s++) {
1402
1402
  var a = n.getCenter();
1403
1403
  if (a) {
1404
- var g = this.distanceBetweenPoints_(a, e.getPosition());
1405
- g < t && (t = g, r = n);
1404
+ var d = this.distanceBetweenPoints_(a, e.getPosition());
1405
+ d < t && (t = d, r = n);
1406
1406
  }
1407
1407
  }
1408
1408
  if (r && r.isMarkerInClusterBounds(e))
@@ -1721,7 +1721,7 @@ var Me;
1721
1721
  }
1722
1722
  i.toGoogle = t;
1723
1723
  })(Me || (Me = {}));
1724
- class Bt {
1724
+ class St {
1725
1725
  constructor(e) {
1726
1726
  h(this, "inner");
1727
1727
  this.map = e;
@@ -1747,7 +1747,7 @@ class Bt {
1747
1747
  return this.inner.removeMarkers(e.map((t) => t.innerOverlay));
1748
1748
  }
1749
1749
  }
1750
- class br extends Bt {
1750
+ class br extends St {
1751
1751
  constructor(e, t) {
1752
1752
  var s;
1753
1753
  super(e), this.inner = new _(e.innerMap, {
@@ -1767,7 +1767,7 @@ class br extends Bt {
1767
1767
  this.inner._redraw();
1768
1768
  }
1769
1769
  }
1770
- class Tr extends Bt {
1770
+ class Tr extends St {
1771
1771
  constructor(e, t) {
1772
1772
  var s, n;
1773
1773
  super(e), this.inner = new _r(
@@ -1784,10 +1784,10 @@ class Tr extends Bt {
1784
1784
  }
1785
1785
  );
1786
1786
  const r = t.stylesIndexCalculator;
1787
- r && this.inner.setCalculator((a, g) => ({
1787
+ r && this.inner.setCalculator((a, d) => ({
1788
1788
  text: a.length,
1789
1789
  // google内部, 取index时, 会`-1`...故我们这里`+1`, 抵消掉它
1790
- index: r(a.length, g) + 1
1790
+ index: r(a.length, d) + 1
1791
1791
  }));
1792
1792
  }
1793
1793
  recreate() {
@@ -1826,7 +1826,7 @@ var Te;
1826
1826
  }
1827
1827
  i.remove = t;
1828
1828
  })(Te || (Te = {}));
1829
- class St {
1829
+ class $t {
1830
1830
  constructor(e, t) {
1831
1831
  h(this, "eventMap", /* @__PURE__ */ new Map());
1832
1832
  h(this, "target", void 0);
@@ -1836,14 +1836,14 @@ class St {
1836
1836
  return this.target = e, this;
1837
1837
  }
1838
1838
  }
1839
- const pt = class extends St {
1839
+ const ut = class extends $t {
1840
1840
  addEventListener(e, t) {
1841
1841
  const r = ye(e, t);
1842
1842
  if (this.eventMap.get(r)) {
1843
1843
  console.warn("listener已经添加过了", r, t);
1844
1844
  return;
1845
1845
  }
1846
- const s = this.inner.addListener(pt.EVENT_TYPE_MAP[e] || e, (n) => {
1846
+ const s = this.inner.addListener(ut.EVENT_TYPE_MAP[e] || e, (n) => {
1847
1847
  const a = {
1848
1848
  type: e,
1849
1849
  target: this.target,
@@ -1858,7 +1858,7 @@ const pt = class extends St {
1858
1858
  s ? (s.remove(), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, t);
1859
1859
  }
1860
1860
  };
1861
- let X = pt;
1861
+ let X = ut;
1862
1862
  // 事件类型映射: tg => google
1863
1863
  h(X, "EVENT_TYPE_MAP", {
1864
1864
  "center-changed": "center_changed",
@@ -1871,7 +1871,7 @@ h(X, "EVENT_TYPE_MAP", {
1871
1871
  "map-mouseup": "mouseup",
1872
1872
  "map-dblclick": "dblclick"
1873
1873
  });
1874
- const Oe = class extends St {
1874
+ const Ce = class extends $t {
1875
1875
  addEventListener(e, t) {
1876
1876
  const r = ye(e, t);
1877
1877
  if (this.eventMap.get(r)) {
@@ -1886,14 +1886,14 @@ const Oe = class extends St {
1886
1886
  };
1887
1887
  n.point && (a.position = y.fromBaidu(n.point, this.coordTypeSupplier.coordType)), t.call(this.target, a);
1888
1888
  };
1889
- this.inner.addEventListener(Oe.EVENT_TYPE_MAP[e] || e, s), this.eventMap.set(r, s);
1889
+ this.inner.addEventListener(Ce.EVENT_TYPE_MAP[e] || e, s), this.eventMap.set(r, s);
1890
1890
  }
1891
1891
  removeEventListener(e, t) {
1892
1892
  const r = ye(e, t), s = this.eventMap.get(r);
1893
- s ? (this.inner.removeEventListener(Oe.EVENT_TYPE_MAP[e] || e, s), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, t);
1893
+ s ? (this.inner.removeEventListener(Ce.EVENT_TYPE_MAP[e] || e, s), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, t);
1894
1894
  }
1895
1895
  };
1896
- let Q = Oe;
1896
+ let Q = Ce;
1897
1897
  // cSpell:words clickclose
1898
1898
  // 事件类型映射, tg => baidu
1899
1899
  h(Q, "EVENT_TYPE_MAP", {
@@ -1923,7 +1923,7 @@ class Or {
1923
1923
  t && t.forEach((r) => r.call(e.target, e));
1924
1924
  }
1925
1925
  }
1926
- class $t {
1926
+ class At {
1927
1927
  constructor(e, t, r, s) {
1928
1928
  h(this, "addEventListener");
1929
1929
  h(this, "removeEventListener");
@@ -1933,7 +1933,7 @@ class $t {
1933
1933
  this.map.removeOverlay(this);
1934
1934
  }
1935
1935
  }
1936
- class je extends $t {
1936
+ class je extends At {
1937
1937
  constructor(e, t, r) {
1938
1938
  super(e, t, r, new X(e, r));
1939
1939
  }
@@ -1944,7 +1944,7 @@ class je extends $t {
1944
1944
  this.innerOverlay.setVisible(e);
1945
1945
  }
1946
1946
  }
1947
- class Ce extends $t {
1947
+ class we extends At {
1948
1948
  constructor(e, t, r) {
1949
1949
  super(e, t, r, new Q(e, r));
1950
1950
  }
@@ -1963,7 +1963,7 @@ class Ce extends $t {
1963
1963
  return e !== void 0 && (e || this.setVisible(!1)), this;
1964
1964
  }
1965
1965
  }
1966
- class We extends Ce {
1966
+ class Ve extends we {
1967
1967
  constructor(e, t, r, s) {
1968
1968
  super(e, t, r), this.state = s;
1969
1969
  }
@@ -1989,7 +1989,7 @@ class We extends Ce {
1989
1989
  this.innerOverlay.setFillOpacity(e);
1990
1990
  }
1991
1991
  }
1992
- class Ve extends je {
1992
+ class We extends je {
1993
1993
  isEditable() {
1994
1994
  return this.innerOverlay.getEditable();
1995
1995
  }
@@ -2012,7 +2012,7 @@ class Ve extends je {
2012
2012
  this.innerOverlay.setOptions({ fillOpacity: e });
2013
2013
  }
2014
2014
  }
2015
- class He extends We {
2015
+ class He extends Ve {
2016
2016
  static create(e) {
2017
2017
  const t = this.coordType, r = new BMap.Polyline(e.path.map((s) => s.toBaidu(t)), {
2018
2018
  enableClicking: e.clickable,
@@ -2030,7 +2030,7 @@ class He extends We {
2030
2030
  this.coordType = this.map.coordType, this.innerOverlay.setPath(e.map((t) => t.toBaidu(this.coordType)));
2031
2031
  }
2032
2032
  }
2033
- class Fe extends Ve {
2033
+ class Fe extends We {
2034
2034
  static create(e) {
2035
2035
  const t = this.coordType, r = new google.maps.Polyline({
2036
2036
  path: e.path.map((s) => s.toGoogle(t)),
@@ -2053,7 +2053,7 @@ class Fe extends Ve {
2053
2053
  this.coordType = this.map.coordType, this.innerOverlay.setPath(e.map((t) => t.toGoogle(this.coordType)));
2054
2054
  }
2055
2055
  }
2056
- class Ue extends We {
2056
+ class Ue extends Ve {
2057
2057
  static create(e) {
2058
2058
  const t = this.coordType;
2059
2059
  e.paths.length > 1 && console.warn("baidu不支持多path, 只会显示paths[0]");
@@ -2075,7 +2075,7 @@ class Ue extends We {
2075
2075
  e.length > 1 && console.warn("baidu不支持多path, 只会显示paths[0]"), this.coordType = this.map.coordType, this.innerOverlay.setPath((e[0] || []).map((t) => t.toBaidu(this.coordType)));
2076
2076
  }
2077
2077
  }
2078
- class Ye extends Ve {
2078
+ class Ye extends We {
2079
2079
  static create(e) {
2080
2080
  const t = this.coordType, r = new google.maps.Polygon({
2081
2081
  paths: e.paths.map((s) => s.map((n) => n.toGoogle(t))),
@@ -2103,7 +2103,7 @@ class Ye extends Ve {
2103
2103
  this.coordType = this.map.coordType, this.innerOverlay.setPaths(e.map((t) => t.map((r) => r.toGoogle(this.coordType))));
2104
2104
  }
2105
2105
  }
2106
- class Ke extends We {
2106
+ class Ke extends Ve {
2107
2107
  static create(e) {
2108
2108
  const t = this.coordType, r = new BMap.Circle(e.center.toBaidu(t), e.radius, {
2109
2109
  enableClicking: e.clickable,
@@ -2129,7 +2129,7 @@ class Ke extends We {
2129
2129
  return this.innerOverlay.getRadius();
2130
2130
  }
2131
2131
  }
2132
- class qe extends Ve {
2132
+ class qe extends We {
2133
2133
  static create(e) {
2134
2134
  const t = this.coordType, r = new google.maps.Circle({
2135
2135
  center: e.center.toGoogle(t),
@@ -2158,7 +2158,7 @@ class qe extends Ve {
2158
2158
  return this.innerOverlay.getRadius();
2159
2159
  }
2160
2160
  }
2161
- class yt {
2161
+ class _t {
2162
2162
  /**
2163
2163
  * `keys`和`values`数组中可以有相同的值, 若存在相同值, 则index越小的优先级越高
2164
2164
  */
@@ -2170,10 +2170,10 @@ class yt {
2170
2170
  this.keyToValue.set(e[r], t[r]), this.valueToKey.set(t[r], e[r]);
2171
2171
  }
2172
2172
  toKey(e) {
2173
- return this.valueToKey.get(e) ?? x();
2173
+ return this.valueToKey.get(e) ?? P();
2174
2174
  }
2175
2175
  toValue(e) {
2176
- return this.keyToValue.get(e) ?? x();
2176
+ return this.keyToValue.get(e) ?? P();
2177
2177
  }
2178
2178
  }
2179
2179
  class Cr {
@@ -2202,10 +2202,10 @@ class Cr {
2202
2202
  return this.getValueMap(e).get(t);
2203
2203
  }
2204
2204
  get(e, t) {
2205
- return this.getOrNull(e, t) ?? x(`key(${t})不存在与valueMap(${this.getValueMap(e)})中`);
2205
+ return this.getOrNull(e, t) ?? P(`key(${t})不存在与valueMap(${this.getValueMap(e)})中`);
2206
2206
  }
2207
2207
  }
2208
- class vt {
2208
+ class Mt {
2209
2209
  constructor(e) {
2210
2210
  h(this, "value");
2211
2211
  this.creator = e;
@@ -2214,7 +2214,7 @@ class vt {
2214
2214
  return this.value === void 0 && (this.value = this.creator()), this.value;
2215
2215
  }
2216
2216
  }
2217
- var E = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-center", i.TOP_RIGHT = "top-right", i.BOTTOM_LEFT = "bottom-left", i.BOTTOM_CENTER = "bottom-center", i.BOTTOM_RIGHT = "bottom-right", i.LEFT_TOP = "left-top", i.LEFT_CENTER = "left-center", i.LEFT_BOTTOM = "left-bottom", i.RIGHT_TOP = "right-top", i.RIGHT_CENTER = "right-center", i.RIGHT_BOTTOM = "right-bottom", i))(E || {}), I;
2217
+ var x = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-center", i.TOP_RIGHT = "top-right", i.BOTTOM_LEFT = "bottom-left", i.BOTTOM_CENTER = "bottom-center", i.BOTTOM_RIGHT = "bottom-right", i.LEFT_TOP = "left-top", i.LEFT_CENTER = "left-center", i.LEFT_BOTTOM = "left-bottom", i.RIGHT_TOP = "right-top", i.RIGHT_CENTER = "right-center", i.RIGHT_BOTTOM = "right-bottom", i))(x || {}), I;
2218
2218
  ((i) => {
2219
2219
  let e, t;
2220
2220
  const r = [
@@ -2233,7 +2233,7 @@ var E = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
2233
2233
  /* RIGHT_BOTTOM */
2234
2234
  ];
2235
2235
  function s() {
2236
- return e || (e = new yt(r, [
2236
+ return e || (e = new _t(r, [
2237
2237
  /* | @tg/map |名字相同| baidu | */
2238
2238
  /* TOP_LEFT = */
2239
2239
  BMAP_ANCHOR_TOP_LEFT,
@@ -2263,7 +2263,7 @@ var E = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
2263
2263
  }
2264
2264
  i.getBaidu = s;
2265
2265
  function n() {
2266
- return t || (t = new yt(r, [
2266
+ return t || (t = new _t(r, [
2267
2267
  google.maps.ControlPosition.TOP_LEFT,
2268
2268
  google.maps.ControlPosition.TOP_CENTER,
2269
2269
  google.maps.ControlPosition.TOP_RIGHT,
@@ -2287,9 +2287,9 @@ class wr {
2287
2287
  this.position = e;
2288
2288
  }
2289
2289
  }
2290
- class At {
2290
+ class zt {
2291
2291
  }
2292
- class Xe extends At {
2292
+ class Xe extends zt {
2293
2293
  constructor(e, t) {
2294
2294
  super(), this.inner = e, this.position = t;
2295
2295
  }
@@ -2312,7 +2312,7 @@ class Xe extends At {
2312
2312
  e.innerMap.removeControl(this.inner);
2313
2313
  }
2314
2314
  }
2315
- class Je extends At {
2315
+ class Je extends zt {
2316
2316
  constructor(t, r) {
2317
2317
  super();
2318
2318
  h(this, "visible", !1);
@@ -2349,8 +2349,8 @@ class Je extends At {
2349
2349
  });
2350
2350
  }
2351
2351
  }
2352
- var zt = /* @__PURE__ */ ((i) => (i.normal = "normal", i.satellite = "satellite", i.hybrid = "hybrid", i))(zt || {});
2353
- class k {
2352
+ var Nt = /* @__PURE__ */ ((i) => (i.normal = "normal", i.satellite = "satellite", i.hybrid = "hybrid", i))(Nt || {});
2353
+ class E {
2354
2354
  constructor(e, t, r, s) {
2355
2355
  this.id = e, this.baidu = t, this.google = r, this.googleCoordType = s;
2356
2356
  }
@@ -2376,8 +2376,8 @@ class k {
2376
2376
  }
2377
2377
  class xr {
2378
2378
  constructor() {
2379
- h(this, "baiduCache", new vt(() => new BMap.TrafficLayer()));
2380
- h(this, "googleCache", new vt(() => new google.maps.TrafficLayer()));
2379
+ h(this, "baiduCache", new Mt(() => new BMap.TrafficLayer()));
2380
+ h(this, "googleCache", new Mt(() => new google.maps.TrafficLayer()));
2381
2381
  }
2382
2382
  asBaiduLayer() {
2383
2383
  return this.baiduCache.get();
@@ -2386,21 +2386,21 @@ class xr {
2386
2386
  return this.googleCache.get();
2387
2387
  }
2388
2388
  }
2389
- var P;
2389
+ var k;
2390
2390
  ((i) => {
2391
- i.NORMAL = new k("normal", () => BMAP_NORMAL_MAP, () => google.maps.MapTypeId.ROADMAP, q.gcj02), i.SATELLITE = new k("satellite", () => BMAP_SATELLITE_MAP, () => google.maps.MapTypeId.SATELLITE, q.wgs84), i.HYBRID = new k("hybrid", () => BMAP_HYBRID_MAP, () => google.maps.MapTypeId.HYBRID, q.gcj02), i.TERRAIN = new k("terrain", () => (
2391
+ i.NORMAL = new E("normal", () => BMAP_NORMAL_MAP, () => google.maps.MapTypeId.ROADMAP, q.gcj02), i.SATELLITE = new E("satellite", () => BMAP_SATELLITE_MAP, () => google.maps.MapTypeId.SATELLITE, q.wgs84), i.HYBRID = new E("hybrid", () => BMAP_HYBRID_MAP, () => google.maps.MapTypeId.HYBRID, q.gcj02), i.TERRAIN = new E("terrain", () => (
2392
2392
  /* 三维 */
2393
2393
  BMAP_PERSPECTIVE_MAP
2394
2394
  ), () => (
2395
2395
  /* 地形 */
2396
2396
  google.maps.MapTypeId.TERRAIN
2397
2397
  ), q.wgs84), i.BUILD_IN_MAP_TYPES = new Cr([i.NORMAL, i.SATELLITE, i.HYBRID, i.TERRAIN]);
2398
- })(P || (P = {}));
2399
- var Nt = /* @__PURE__ */ ((i) => (i.DEFAULT = "default", i.HORIZONTAL = "horizontal", i.DROPDOWN = "dropdown", i))(Nt || {});
2400
- const Rt = [P.NORMAL, P.SATELLITE, P.HYBRID];
2398
+ })(k || (k = {}));
2399
+ var Rt = /* @__PURE__ */ ((i) => (i.DEFAULT = "default", i.HORIZONTAL = "horizontal", i.DROPDOWN = "dropdown", i))(Rt || {});
2400
+ const Dt = [k.NORMAL, k.SATELLITE, k.HYBRID];
2401
2401
  class Qe extends Xe {
2402
2402
  static create(e) {
2403
- const t = e.mapTypes ?? Rt, r = {
2403
+ const t = e.mapTypes ?? Dt, r = {
2404
2404
  default: BMAP_MAPTYPE_CONTROL_HORIZONTAL,
2405
2405
  horizontal: BMAP_MAPTYPE_CONTROL_HORIZONTAL,
2406
2406
  dropdown: BMAP_MAPTYPE_CONTROL_DROPDOWN
@@ -2412,7 +2412,7 @@ class Qe extends Xe {
2412
2412
  }
2413
2413
  }
2414
2414
  const J = class extends Je {
2415
- constructor(e = "default", t = E.TOP_LEFT, r = Rt) {
2415
+ constructor(e = "default", t = x.TOP_LEFT, r = Dt) {
2416
2416
  super("mapType", t), this.type = e, this.mapTypes = r, J.type2google || (J.type2google = {
2417
2417
  default: google.maps.MapTypeControlStyle.DEFAULT,
2418
2418
  horizontal: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
@@ -2424,11 +2424,11 @@ const J = class extends Je {
2424
2424
  }
2425
2425
  onCreateOptions() {
2426
2426
  const e = super.onCreateOptions();
2427
- return e.style = J.type2google[this.type], e.mapTypeIds = this.mapTypes.map((t) => t instanceof k ? t.getGoogleMapTypeId() : t.id), e;
2427
+ return e.style = J.type2google[this.type], e.mapTypeIds = this.mapTypes.map((t) => t instanceof E ? t.getGoogleMapTypeId() : t.id), e;
2428
2428
  }
2429
2429
  addTo(e) {
2430
2430
  super.addTo(e), this.mapTypes.forEach((t) => {
2431
- t instanceof k || e.innerMap.mapTypes.set(t.id, t.asGoogleMapType());
2431
+ t instanceof E || e.innerMap.mapTypes.set(t.id, t.asGoogleMapType());
2432
2432
  });
2433
2433
  }
2434
2434
  };
@@ -2448,7 +2448,7 @@ class tt extends Je {
2448
2448
  static create(e) {
2449
2449
  return new tt(e.position);
2450
2450
  }
2451
- constructor(e = E.RIGHT_BOTTOM) {
2451
+ constructor(e = x.RIGHT_BOTTOM) {
2452
2452
  super("zoom", e);
2453
2453
  }
2454
2454
  }
@@ -2464,7 +2464,7 @@ class it extends Je {
2464
2464
  static create(e) {
2465
2465
  return new it(e.position);
2466
2466
  }
2467
- constructor(e = E.BOTTOM_RIGHT) {
2467
+ constructor(e = x.BOTTOM_RIGHT) {
2468
2468
  super("scale", e);
2469
2469
  }
2470
2470
  }
@@ -2498,7 +2498,7 @@ var te;
2498
2498
  }
2499
2499
  i.toBaidu = t;
2500
2500
  })(te || (te = {}));
2501
- class ce extends Ce {
2501
+ class ce extends we {
2502
2502
  constructor(e, t, r, s) {
2503
2503
  super(e, t, r), this.state = s;
2504
2504
  }
@@ -2513,8 +2513,8 @@ class ce extends Ce {
2513
2513
  draggingCursor: e.cursor
2514
2514
  }, n = new BMap.Marker(e.position.toBaidu(t), s);
2515
2515
  e.zIndex !== void 0 && n.setZIndex(e.zIndex);
2516
- const a = e.clickable === void 0 ? !0 : e.clickable, g = !!e.draggable;
2517
- return new ce(n, t, this, { clickable: a, draggable: g, zIndex: e.zIndex }).visibleOptionInternal(e.visible);
2516
+ const a = e.clickable === void 0 ? !0 : e.clickable, d = !!e.draggable;
2517
+ return new ce(n, t, this, { clickable: a, draggable: d, zIndex: e.zIndex }).visibleOptionInternal(e.visible);
2518
2518
  }
2519
2519
  getPosition() {
2520
2520
  return y.fromBaidu(this.innerOverlay.getPosition(), this.coordType);
@@ -2818,7 +2818,7 @@ var re;
2818
2818
  }
2819
2819
  i.toElement = t;
2820
2820
  })(re || (re = {}));
2821
- class lt extends Ce {
2821
+ class lt extends we {
2822
2822
  constructor(t, r, s, n) {
2823
2823
  super(t, r, s);
2824
2824
  h(this, "icon");
@@ -2912,7 +2912,7 @@ class ht extends je {
2912
2912
  this.innerOverlay.setOffset(e);
2913
2913
  }
2914
2914
  }
2915
- function Dt() {
2915
+ function Zt() {
2916
2916
  BMap.OverlayV3 || (BMap.OverlayV3 = BMap.Overlay);
2917
2917
  }
2918
2918
  let Pe;
@@ -2920,10 +2920,10 @@ function Pr(i, e, t, r, s, n) {
2920
2920
  return Pe || (Pe = Ir()), new Pe(i, e, t, r, s, n);
2921
2921
  }
2922
2922
  function Ir() {
2923
- Dt();
2923
+ Zt();
2924
2924
  const i = new BMap.Point(0, 0);
2925
2925
  return class extends BMap.OverlayV3 {
2926
- constructor(r, s = i, n = de.ZERO, a, g = 654, o = "") {
2926
+ constructor(r, s = i, n = de.ZERO, a, d = 654, o = "") {
2927
2927
  super();
2928
2928
  // 类表达式不能有私有成员, 故改成public
2929
2929
  h(this, "container");
@@ -2937,7 +2937,7 @@ function Ir() {
2937
2937
  const c = document.createElement("img");
2938
2938
  c.className = l + "__close", c.src = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23000000%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%0A%3C%2Fsvg%3E%0A", c.addEventListener("click", () => {
2939
2939
  this.close(), this.dispatchEvent({ type: "onclickclose" });
2940
- }), this.inner.appendChild(r), this.border.appendChild(this.inner), this.border.appendChild(c), this.container.appendChild(this.border), a && this.setZIndex(a), this.setMaxWidth(g), this.onMarkerPositionChanged = this.onMarkerPositionChanged.bind(this);
2940
+ }), this.inner.appendChild(r), this.border.appendChild(this.inner), this.border.appendChild(c), this.container.appendChild(this.border), a && this.setZIndex(a), this.setMaxWidth(d), this.onMarkerPositionChanged = this.onMarkerPositionChanged.bind(this);
2941
2941
  }
2942
2942
  /** @override */
2943
2943
  initialize(r) {
@@ -2988,7 +2988,7 @@ function Ir() {
2988
2988
  }
2989
2989
  };
2990
2990
  }
2991
- class ct extends Ce {
2991
+ class ct extends we {
2992
2992
  constructor(e, t, r) {
2993
2993
  super(e, t, r), this.baiduMap = r;
2994
2994
  }
@@ -3037,8 +3037,8 @@ class dt extends nt {
3037
3037
  maxWidth: e.maxWidth
3038
3038
  }), s = e.borderClass;
3039
3039
  return s && r.addListener("domready", () => {
3040
- var g;
3041
- const a = (g = e.content.parentElement) == null ? void 0 : g.parentElement;
3040
+ var d;
3041
+ const a = (d = e.content.parentElement) == null ? void 0 : d.parentElement;
3042
3042
  a && a.className.includes("gm-style-iw-c") && !a.className.includes(s) && (a.className += ` ${s}`);
3043
3043
  }), new dt(r, t, this);
3044
3044
  }
@@ -3085,13 +3085,13 @@ class Lr extends Ze {
3085
3085
  h(this, "createMapTypeControl", Qe.create);
3086
3086
  h(this, "createZoomControl", et.create);
3087
3087
  h(this, "createScaleControl", rt.create);
3088
- this.buildInMapTypeId2BIMT = P.BUILD_IN_MAP_TYPES.getValueMap(k.prototype.getId), this.baiduMapType2BIMT = P.BUILD_IN_MAP_TYPES.getValueMap(k.prototype.asBaiduMapType), this.map = new BMap.Map(t, {
3088
+ this.buildInMapTypeId2BIMT = k.BUILD_IN_MAP_TYPES.getValueMap(E.prototype.getId), this.baiduMapType2BIMT = k.BUILD_IN_MAP_TYPES.getValueMap(E.prototype.asBaiduMapType), this.map = new BMap.Map(t, {
3089
3089
  minZoom: r.minZoom,
3090
3090
  maxZoom: r.maxZoom,
3091
3091
  mapType: r.buildInMapTypeId && ((s = this.buildInMapTypeId2BIMT.get(r.buildInMapTypeId)) == null ? void 0 : s.asBaiduMapType()),
3092
3092
  enableMapClick: !1
3093
3093
  // 关闭底图点击功能
3094
- }), this.map.centerAndZoom(r.center.toBaidu(this.coordType), r.zoom), this.setGestureHandling(r.gestureHandling), r.infoWindowMode === "multi" && console.warn("baidu不支持多个InfoWindow, 可能会出现未知问题"), r.mapStyle && this.map.setMapStyle2(r.mapStyle.toBaidu()), this.setEventTargetDelegate(new Q(this.map, this)), this.map.addEventListener("addoverlay", (n) => {
3094
+ }), this.map.centerAndZoom(r.center.toBaidu(this.coordType), r.zoom), this.setGestureHandling(r.gestureHandling), r.infoWindowMode === "multi" && console.warn("baidu不支持多个InfoWindow, 可能会出现未知问题"), r.mapStyle && this.map.setMapStyleV2(r.mapStyle.toBaidu()), this.setEventTargetDelegate(new Q(this.map, this)), this.map.addEventListener("addoverlay", (n) => {
3095
3095
  const a = n.target.__info_box__;
3096
3096
  a && (console.debug("add:info-box", a), this.map.addOverlay(a));
3097
3097
  }), this.map.addEventListener("removeoverlay", (n) => {
@@ -3160,19 +3160,19 @@ class Lr extends Ze {
3160
3160
  this.map.setMaxZoom(t);
3161
3161
  }
3162
3162
  setMapStyle(t) {
3163
- this.map.setMapStyle2(t.toBaidu());
3163
+ this.map.setMapStyleV2(t.toBaidu());
3164
3164
  }
3165
3165
  setBuildInMapTypeId(t) {
3166
3166
  var s;
3167
3167
  const r = (s = this.buildInMapTypeId2BIMT.get(t)) == null ? void 0 : s.asBaiduMapType();
3168
- this.map.setMapType(r ?? x("理论上来说不可能为空"));
3168
+ this.map.setMapType(r ?? P("理论上来说不可能为空"));
3169
3169
  }
3170
3170
  setMapType(t) {
3171
3171
  this.map.setMapType(t.asBaiduMapType());
3172
3172
  }
3173
3173
  getMapType() {
3174
3174
  const t = this.map.getMapType(), r = this.baiduMapType2BIMT.get(t);
3175
- return r || (t.__baidu_map_type__ ?? x("实现asBaiduMapType()时, 忘了给实例设置__baidu_map_type__?"));
3175
+ return r || (t.__baidu_map_type__ ?? P("实现asBaiduMapType()时, 忘了给实例设置__baidu_map_type__?"));
3176
3176
  }
3177
3177
  addLayer(t) {
3178
3178
  this.map.addTileLayer(t.asBaiduLayer());
@@ -3193,7 +3193,7 @@ class Lr extends Ze {
3193
3193
  });
3194
3194
  }
3195
3195
  getBounds() {
3196
- return V.fromBaidu(this.map.getBounds(), this.coordType);
3196
+ return W.fromBaidu(this.map.getBounds(), this.coordType);
3197
3197
  }
3198
3198
  addElementOverlay(t) {
3199
3199
  this.map.addOverlay(t.asBaidu());
@@ -3247,10 +3247,10 @@ class Br extends Ze {
3247
3247
  h(this, "createMapTypeControl", fe.create);
3248
3248
  h(this, "createZoomControl", tt.create);
3249
3249
  h(this, "createScaleControl", it.create);
3250
- this.mapOptions = r, this.buildInMapTypeId2BIMT = P.BUILD_IN_MAP_TYPES.getValueMap(k.prototype.getId), this.googleMapTypeId2BIMT = P.BUILD_IN_MAP_TYPES.getValueMap(k.prototype.getGoogleMapTypeId);
3250
+ this.mapOptions = r, this.buildInMapTypeId2BIMT = k.BUILD_IN_MAP_TYPES.getValueMap(E.prototype.getId), this.googleMapTypeId2BIMT = k.BUILD_IN_MAP_TYPES.getValueMap(E.prototype.getGoogleMapTypeId);
3251
3251
  const s = r.buildInMapTypeId && this.buildInMapTypeId2BIMT.get(r.buildInMapTypeId);
3252
3252
  this.map = new google.maps.Map(t, {
3253
- center: r.center.toGoogle((s ?? P.NORMAL).getGoogleCoordType()),
3253
+ center: r.center.toGoogle((s ?? k.NORMAL).getGoogleCoordType()),
3254
3254
  zoom: r.zoom,
3255
3255
  disableDefaultUI: !0,
3256
3256
  streetViewControl: !0,
@@ -3279,15 +3279,15 @@ class Br extends Ze {
3279
3279
  const r = this.innerMap.getProjection(), s = this.innerMap.getBounds();
3280
3280
  if (r == null || s == null)
3281
3281
  return y.ZERO;
3282
- const n = r.fromLatLngToPoint(s.getSouthWest()), a = r.fromLatLngToPoint(s.getNorthEast()), g = Math.pow(2, this.innerMap.getZoom()), o = new google.maps.Point(t.x / g + n.x, t.y / g + a.y);
3282
+ const n = r.fromLatLngToPoint(s.getSouthWest()), a = r.fromLatLngToPoint(s.getNorthEast()), d = Math.pow(2, this.innerMap.getZoom()), o = new google.maps.Point(t.x / d + n.x, t.y / d + a.y);
3283
3283
  return y.fromGoogle(r.fromPointToLatLng(o), this.coordType);
3284
3284
  }
3285
3285
  fromLatLngToContainerPoint(t) {
3286
3286
  const r = this.innerMap.getProjection(), s = this.innerMap.getBounds();
3287
3287
  if (r == null || s == null)
3288
3288
  return de.ZERO;
3289
- const n = r.fromLatLngToPoint(s.getSouthWest()), a = r.fromLatLngToPoint(s.getNorthEast()), g = Math.pow(2, this.innerMap.getZoom()), o = r.fromLatLngToPoint(t.toGoogle(this.coordType));
3290
- return { x: (o.x - n.x) * g, y: (o.y - a.y) * g };
3289
+ const n = r.fromLatLngToPoint(s.getSouthWest()), a = r.fromLatLngToPoint(s.getNorthEast()), d = Math.pow(2, this.innerMap.getZoom()), o = r.fromLatLngToPoint(t.toGoogle(this.coordType));
3290
+ return { x: (o.x - n.x) * d, y: (o.y - a.y) * d };
3291
3291
  }
3292
3292
  setDraggable(t) {
3293
3293
  this.innerMap.setOptions({ draggable: t });
@@ -3313,14 +3313,14 @@ class Br extends Ze {
3313
3313
  setBuildInMapTypeId(t) {
3314
3314
  var s;
3315
3315
  const r = (s = this.buildInMapTypeId2BIMT.get(t)) == null ? void 0 : s.getGoogleMapTypeId();
3316
- this.map.setMapTypeId(r ?? x("理论上来说不可能为空"));
3316
+ this.map.setMapTypeId(r ?? P("理论上来说不可能为空"));
3317
3317
  }
3318
3318
  setMapType(t) {
3319
- t instanceof k ? this.map.setMapTypeId(t.getGoogleMapTypeId()) : (this.map.mapTypes.set(t.id, t.asGoogleMapType()), this.map.setMapTypeId(t.id));
3319
+ t instanceof E ? this.map.setMapTypeId(t.getGoogleMapTypeId()) : (this.map.mapTypes.set(t.id, t.asGoogleMapType()), this.map.setMapTypeId(t.id));
3320
3320
  }
3321
3321
  getMapType() {
3322
3322
  const t = this.map.getMapTypeId(), r = this.googleMapTypeId2BIMT.get(t);
3323
- return r || (this.map.mapTypes.get(t).__google_map_type__ ?? x(`实现${t}的asGoogleMapType()时, 忘了给实例设置__google_map_type__?`));
3323
+ return r || (this.map.mapTypes.get(t).__google_map_type__ ?? P(`实现${t}的asGoogleMapType()时, 忘了给实例设置__google_map_type__?`));
3324
3324
  }
3325
3325
  addOverlayMapType(t) {
3326
3326
  this.map.overlayMapTypes.push(t.asGoogleMapType());
@@ -3345,7 +3345,7 @@ class Br extends Ze {
3345
3345
  }
3346
3346
  getBounds() {
3347
3347
  const t = this.map.getBounds();
3348
- return t ? V.fromGoogle(t, this.coordType) : V.EMPTY;
3348
+ return t ? W.fromGoogle(t, this.coordType) : W.EMPTY;
3349
3349
  }
3350
3350
  addElementOverlay(t) {
3351
3351
  t.asGoogle().setMap(this.map);
@@ -3379,8 +3379,8 @@ class Sr extends Ze {
3379
3379
  h(this, "map");
3380
3380
  h(this, "defaultLayers");
3381
3381
  this.mapOptions = r;
3382
- const s = xt().here;
3383
- _e.includes(s.version) || x(`不支持${s.version}, HereMap当前只支持如下版本: ${_e}`);
3382
+ const s = Et().here;
3383
+ _e.includes(s.version) || P(`不支持${s.version}, HereMap当前只支持如下版本: ${_e}`);
3384
3384
  const n = new H.service.Platform({
3385
3385
  app_id: s.key.split(",")[0],
3386
3386
  app_code: s.key.split(",")[1]
@@ -3528,11 +3528,11 @@ function $r(i, e) {
3528
3528
  const t = window, r = Ar(i);
3529
3529
  if (t[r])
3530
3530
  return Promise.resolve();
3531
- switch (i !== $.here && !e.key && x(`请先配置${i}地图的key`), i) {
3531
+ switch (i !== $.here && !e.key && P(`请先配置${i}地图的key`), i) {
3532
3532
  case $.google:
3533
- return _t(`https://maps.googleapis.com/maps/api/js?key=${e.key}&language=${e.language}`);
3533
+ return bt(`https://maps.googleapis.com/maps/api/js?key=${e.key}&language=${e.language}`);
3534
3534
  case $.baidu:
3535
- return _t(`https://api.map.baidu.com/api?v=${e.version}&ak=${e.key}`);
3535
+ return bt(`https://api.map.baidu.com/api?v=${e.version}&ak=${e.key}`);
3536
3536
  case $.here:
3537
3537
  return ne(se("core", e.version)).then(() => Promise.all([
3538
3538
  // 其他大多数模块都可以同时载入
@@ -3557,7 +3557,7 @@ function Ar(i) {
3557
3557
  }
3558
3558
  }
3559
3559
  let zr = 0;
3560
- function _t(i, e = "callback") {
3560
+ function bt(i, e = "callback") {
3561
3561
  return new Promise((t, r) => {
3562
3562
  const s = `__callback${zr++}`;
3563
3563
  window[s] = t;
@@ -3571,6 +3571,31 @@ function ne(i) {
3571
3571
  r.src = i, r.onload = e, r.onerror = t, document.body.appendChild(r);
3572
3572
  });
3573
3573
  }
3574
+ var Oe;
3575
+ ((i) => {
3576
+ function e(s, n) {
3577
+ if (s !== void 0)
3578
+ return Object.values(n).includes(s) ? s : void 0;
3579
+ }
3580
+ i.toEnumOrNull = e;
3581
+ function t(s) {
3582
+ return s.split(`
3583
+ `).map((n) => n.trim()).join(`
3584
+ `);
3585
+ }
3586
+ i.trimIndent = t;
3587
+ function r(s) {
3588
+ return s.replace(/([^A-Z]?)([A-Z])/g, (n, a, d) => a ? `${a}-${d.toLowerCase()}` : d.toLowerCase());
3589
+ }
3590
+ i.pascal2kebab = r;
3591
+ })(Oe || (Oe = {}));
3592
+ const Nr = {
3593
+ /** @see https://nodejs.org/docs/v10.3.0/api/path.html#path_path_basename_path_ext */
3594
+ basename(i, e) {
3595
+ const t = i.endsWith("/") ? i.slice(0, -1) : i, r = t.lastIndexOf("/"), s = r >= 0 ? t.substring(r + 1) : t;
3596
+ return e && s.endsWith(e) ? s.slice(0, -e.length) : s;
3597
+ }
3598
+ };
3574
3599
  function D(i, e) {
3575
3600
  return {
3576
3601
  type: String,
@@ -3578,7 +3603,7 @@ function D(i, e) {
3578
3603
  validator: (t) => Object.values(i).includes(t)
3579
3604
  };
3580
3605
  }
3581
- function Nr(i, e) {
3606
+ function Rr(i, e) {
3582
3607
  return {
3583
3608
  type: String,
3584
3609
  default: e,
@@ -3597,7 +3622,7 @@ function m(i, e) {
3597
3622
  default: e
3598
3623
  };
3599
3624
  }
3600
- function $i(i) {
3625
+ function Ci(i) {
3601
3626
  const e = {};
3602
3627
  return Object.entries(i).forEach(([t, r]) => {
3603
3628
  const s = `__${t}`;
@@ -3620,17 +3645,17 @@ const oe = {
3620
3645
  get: ve,
3621
3646
  set: ve
3622
3647
  };
3623
- function Rr(i) {
3648
+ function Dr(i) {
3624
3649
  return Object.keys(i).forEach((e) => {
3625
3650
  const t = i[e];
3626
3651
  let r = !1;
3627
3652
  typeof t == "function" ? (oe.get = t, oe.set = ve, r = !0) : typeof t == "object" && typeof t.get == "function" && (oe.get = t.get, oe.set = t.set, r = !0), r && (i[e] = Object.defineProperty(i, e, oe));
3628
3653
  }), i;
3629
3654
  }
3630
- function Ai(i) {
3631
- return Rr(i);
3655
+ function wi(i) {
3656
+ return Dr(i);
3632
3657
  }
3633
- function Dr() {
3658
+ function Zr() {
3634
3659
  return Ie();
3635
3660
  }
3636
3661
  function me(i, e) {
@@ -3639,12 +3664,12 @@ function me(i, e) {
3639
3664
  for (const r of t)
3640
3665
  r.call(i);
3641
3666
  }
3642
- function zi(i, e) {
3667
+ function xi(i, e) {
3643
3668
  for (const t of i)
3644
3669
  if (t.$options.name === e.name)
3645
3670
  return t;
3646
3671
  }
3647
- function Ni(i, e) {
3672
+ function Ei(i, e) {
3648
3673
  if (!i.default)
3649
3674
  return;
3650
3675
  const t = i.default();
@@ -3652,12 +3677,12 @@ function Ni(i, e) {
3652
3677
  if ((r == null ? void 0 : r.type).name === e.name)
3653
3678
  return r;
3654
3679
  }
3655
- function Zr(i, e) {
3680
+ function Gr(i, e) {
3656
3681
  const t = {}, r = {}, s = {};
3657
3682
  return Object.keys(i).forEach((n) => {
3658
- n.startsWith("on") ? t[n.substring(2).toLowerCase()] = i[n] : r[n] = i[n];
3683
+ n.startsWith("on") ? t[Oe.pascal2kebab(n.substring(2))] = i[n] : r[n] = i[n];
3659
3684
  }), e && Object.keys(e).forEach((n) => {
3660
- n.startsWith("on") && (s[n.substring(2).toLocaleLowerCase()] = e[n]);
3685
+ n.startsWith("on") && (s[Oe.pascal2kebab(n.substring(2))] = e[n]);
3661
3686
  }), {
3662
3687
  /** class/style/未声明的属性 等 */
3663
3688
  binds: r,
@@ -3668,12 +3693,12 @@ function Zr(i, e) {
3668
3693
  };
3669
3694
  }
3670
3695
  function U(i, e) {
3671
- return bt(() => Zr(i, e));
3696
+ return Tt(() => Gr(i, e));
3672
3697
  }
3673
3698
  function N() {
3674
3699
  return Function;
3675
3700
  }
3676
- const Ri = {
3701
+ const ki = {
3677
3702
  /**
3678
3703
  * @event 一般来说传{@link Tg.Event}对象, 但传其他对象也不会报错
3679
3704
  */
@@ -3684,8 +3709,8 @@ const Ri = {
3684
3709
  eventLogLess(i) {
3685
3710
  ((i && i.type) !== this.$_prev_type || Date.now() - (this.$_prev_time ?? 0) > 1e3) && this.eventLog(i);
3686
3711
  }
3687
- }, Zt = "$map", ze = "onCreate", Ne = "onDestroy", w = C({
3688
- inject: [Zt],
3712
+ }, Gt = "$map", ze = "onCreate", Ne = "onDestroy", w = C({
3713
+ inject: [Gt],
3689
3714
  mounted() {
3690
3715
  me(this, ze);
3691
3716
  },
@@ -3698,13 +3723,13 @@ const Ri = {
3698
3723
  }
3699
3724
  },
3700
3725
  render() {
3701
- return Dr();
3726
+ return Zr();
3702
3727
  }
3703
- }), Gr = C({
3728
+ }), jr = C({
3704
3729
  name: "tg-map",
3705
3730
  provide() {
3706
3731
  return {
3707
- [Zt]: bt(() => this.map)
3732
+ [Gt]: Tt(() => this.map)
3708
3733
  };
3709
3734
  },
3710
3735
  inheritAttrs: !1,
@@ -3737,12 +3762,12 @@ const Ri = {
3737
3762
  */
3738
3763
  lastCenter: m(y),
3739
3764
  zoom: z(Number),
3740
- infoWindowMode: Nr(fr),
3765
+ infoWindowMode: Rr(fr),
3741
3766
  gestureHandling: D(R),
3742
3767
  minZoom: m(Number),
3743
3768
  maxZoom: m(Number),
3744
3769
  mapStyle: m(Object),
3745
- mapTypeId: D(zt),
3770
+ mapTypeId: D(Nt),
3746
3771
  /** 地图类型对象, 优先级比mapTypeId高 */
3747
3772
  mapType: m(Object),
3748
3773
  onLoad: N(),
@@ -3803,13 +3828,13 @@ const Ri = {
3803
3828
  },
3804
3829
  mapType(i) {
3805
3830
  var e;
3806
- (e = this.map) == null || e.setMapType(i ?? P.NORMAL);
3831
+ (e = this.map) == null || e.setMapType(i ?? k.NORMAL);
3807
3832
  }
3808
3833
  },
3809
- async created() {
3834
+ async mounted() {
3810
3835
  const i = this.type;
3811
3836
  try {
3812
- await $r(i, xt()[i]);
3837
+ await $r(i, Et()[i]);
3813
3838
  } catch (s) {
3814
3839
  this.$emit("error", s);
3815
3840
  return;
@@ -3818,7 +3843,7 @@ const Ri = {
3818
3843
  console.warn(`tg-map(type=${i})已销毁, 不需要继续执行`);
3819
3844
  return;
3820
3845
  }
3821
- const e = this.map = Ae.createMap(
3846
+ const e = Ae.createMap(
3822
3847
  i,
3823
3848
  this.$refs.map,
3824
3849
  /* options: */
@@ -3833,7 +3858,7 @@ const Ri = {
3833
3858
  buildInMapTypeId: this.mapTypeId
3834
3859
  }
3835
3860
  );
3836
- if (this.mapType && e.setMapType(this.mapType), "ready" in this.attrs.listeners && console.error("地图载入完成的事件已经从ready改为了load, 请手动修改"), F(
3861
+ if (this.map = Ht(e), this.mapType && e.setMapType(this.mapType), "ready" in this.attrs.listeners && console.error("地图载入完成的事件已经从ready改为了load, 请手动修改"), F(
3837
3862
  this.attrs.listeners,
3838
3863
  e,
3839
3864
  /* excludes: */
@@ -3865,20 +3890,20 @@ const j = (i, e) => {
3865
3890
  for (const [r, s] of e)
3866
3891
  t[r] = s;
3867
3892
  return t;
3868
- }, jr = {
3893
+ }, Vr = {
3869
3894
  ref: "map",
3870
3895
  class: "tg-map__map"
3871
3896
  };
3872
3897
  function Wr(i, e, t, r, s, n) {
3873
3898
  return Z(), G("div", ie({ class: "tg-map" }, i.attrs.binds), [
3874
- Ft("div", jr, null, 512),
3899
+ Ft("div", Vr, null, 512),
3875
3900
  Ie("", !0),
3876
3901
  i.map ? A(i.$slots, "default", { key: 1 }) : Ie("", !0),
3877
3902
  A(i.$slots, "overlay")
3878
3903
  ], 16);
3879
3904
  }
3880
- const Gt = /* @__PURE__ */ j(Gr, [["render", Wr]]);
3881
- function Vr(i) {
3905
+ const Hr = /* @__PURE__ */ j(jr, [["render", Wr]]);
3906
+ function Fr(i) {
3882
3907
  if (i == null)
3883
3908
  return;
3884
3909
  let e;
@@ -3889,7 +3914,7 @@ function Vr(i) {
3889
3914
  e = i;
3890
3915
  return `${e}px`;
3891
3916
  }
3892
- const Hr = C({
3917
+ const Ur = C({
3893
3918
  name: "tg-map-widget",
3894
3919
  props: {
3895
3920
  left: {
@@ -3915,10 +3940,10 @@ const Hr = C({
3915
3940
  }
3916
3941
  },
3917
3942
  methods: {
3918
- dimen: Vr
3943
+ dimen: Fr
3919
3944
  }
3920
3945
  });
3921
- function Fr(i, e, t, r, s, n) {
3946
+ function Yr(i, e, t, r, s, n) {
3922
3947
  return Z(), G("div", {
3923
3948
  class: De(i.$options.name),
3924
3949
  style: Ut({ left: i.dimen(i.left), top: i.dimen(i.topValue), right: i.dimen(i.right), bottom: i.dimen(i.bottom) })
@@ -3926,11 +3951,11 @@ function Fr(i, e, t, r, s, n) {
3926
3951
  A(i.$slots, "default")
3927
3952
  ], 6);
3928
3953
  }
3929
- const Ur = /* @__PURE__ */ j(Hr, [["render", Fr]]), Yr = C({
3954
+ const Pi = /* @__PURE__ */ j(Ur, [["render", Yr]]), Kr = C({
3930
3955
  name: "tg-custom-control",
3931
3956
  mixins: [w],
3932
3957
  props: {
3933
- position: D(E, E.RIGHT_BOTTOM)
3958
+ position: D(x, x.RIGHT_BOTTOM)
3934
3959
  },
3935
3960
  setup() {
3936
3961
  return {
@@ -3943,7 +3968,7 @@ const Ur = /* @__PURE__ */ j(Hr, [["render", Fr]]), Yr = C({
3943
3968
  }
3944
3969
  },
3945
3970
  onCreate() {
3946
- pe(this.$parent, Gt) || console.warn("请将tg-custom-control放到tg-map中");
3971
+ pe(this.$parent, Hr) || console.warn("请将tg-custom-control放到tg-map中");
3947
3972
  const { $el: i } = this, e = class extends wr {
3948
3973
  onCreateElement() {
3949
3974
  return i;
@@ -3955,19 +3980,19 @@ const Ur = /* @__PURE__ */ j(Hr, [["render", Fr]]), Yr = C({
3955
3980
  this.$map.removeCustomControl(this.control);
3956
3981
  }
3957
3982
  });
3958
- function Kr(i, e, t, r, s, n) {
3983
+ function qr(i, e, t, r, s, n) {
3959
3984
  return Z(), G("div", {
3960
3985
  class: De(i.$options.name)
3961
3986
  }, [
3962
3987
  A(i.$slots, "default")
3963
3988
  ], 2);
3964
3989
  }
3965
- const qr = /* @__PURE__ */ j(Yr, [["render", Kr]]), Xr = C({
3990
+ const Ii = /* @__PURE__ */ j(Kr, [["render", qr]]), Li = C({
3966
3991
  name: "tg-map-type-control",
3967
3992
  mixins: [w],
3968
3993
  props: {
3969
- position: D(E, E.TOP_LEFT),
3970
- type: D(Nt),
3994
+ position: D(x, x.TOP_LEFT),
3995
+ type: D(Rt),
3971
3996
  mapTypes: m(Array)
3972
3997
  },
3973
3998
  setup() {
@@ -3995,11 +4020,11 @@ const qr = /* @__PURE__ */ j(Yr, [["render", Kr]]), Xr = C({
3995
4020
  onDestroy() {
3996
4021
  this.$map.removeControl(this.control);
3997
4022
  }
3998
- }), Jr = C({
4023
+ }), Bi = C({
3999
4024
  name: "tg-scale-control",
4000
4025
  mixins: [w],
4001
4026
  props: {
4002
- position: D(E, E.BOTTOM_RIGHT)
4027
+ position: D(x, x.BOTTOM_RIGHT)
4003
4028
  },
4004
4029
  setup() {
4005
4030
  return {
@@ -4017,11 +4042,11 @@ const qr = /* @__PURE__ */ j(Yr, [["render", Kr]]), Xr = C({
4017
4042
  onDestroy() {
4018
4043
  this.$map.removeControl(this.control);
4019
4044
  }
4020
- }), Qr = C({
4045
+ }), Si = C({
4021
4046
  name: "tg-zoom-control",
4022
4047
  mixins: [w],
4023
4048
  props: {
4024
- position: D(E, E.RIGHT_BOTTOM)
4049
+ position: D(x, x.RIGHT_BOTTOM)
4025
4050
  },
4026
4051
  setup() {
4027
4052
  return {
@@ -4039,7 +4064,7 @@ const qr = /* @__PURE__ */ j(Yr, [["render", Kr]]), Xr = C({
4039
4064
  onDestroy() {
4040
4065
  this.$map.removeControl(this.control);
4041
4066
  }
4042
- }), ei = C({
4067
+ }), Xr = C({
4043
4068
  name: "tg-marker-clusterer",
4044
4069
  mixins: [w],
4045
4070
  // markers从this.$children中读取, 故需要省略(Omit)
@@ -4103,19 +4128,19 @@ const qr = /* @__PURE__ */ j(Yr, [["render", Kr]]), Xr = C({
4103
4128
  }
4104
4129
  }
4105
4130
  });
4106
- function ti(i, e, t, r, s, n) {
4131
+ function Jr(i, e, t, r, s, n) {
4107
4132
  return Z(), G("div", {
4108
4133
  class: De(i.$options.name)
4109
4134
  }, [
4110
4135
  A(i.$slots, "default")
4111
4136
  ], 2);
4112
4137
  }
4113
- const jt = /* @__PURE__ */ j(ei, [["render", ti]]), ri = C({
4138
+ const Qr = /* @__PURE__ */ j(Xr, [["render", Jr]]), $i = C({
4114
4139
  name: "tg-traffic-layer",
4115
4140
  mixins: [w],
4116
- props: {
4117
- // 请直接使用v-if来控制它的显隐
4118
- },
4141
+ // 请直接使用v-if来控制它的显隐
4142
+ // 没有属性时, 写`{}`类型推断会有问题, 故注释掉
4143
+ // props: {} satisfies Props<{}>,
4119
4144
  setup() {
4120
4145
  return {
4121
4146
  layer: void 0
@@ -4128,7 +4153,7 @@ const jt = /* @__PURE__ */ j(ei, [["render", ti]]), ri = C({
4128
4153
  onDestroy() {
4129
4154
  this.$map.removeLayer(this.layer);
4130
4155
  }
4131
- }), ii = C({
4156
+ }), Ai = C({
4132
4157
  name: "tg-circle",
4133
4158
  mixins: [w],
4134
4159
  inheritAttrs: !1,
@@ -4190,7 +4215,7 @@ const jt = /* @__PURE__ */ j(ei, [["render", ti]]), ri = C({
4190
4215
  }
4191
4216
  });
4192
4217
  var Re = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overlayMouseTarget = "overlayMouseTarget", i.float = "float", i))(Re || {});
4193
- class si {
4218
+ class ei {
4194
4219
  constructor(e, t) {
4195
4220
  h(this, "baidu");
4196
4221
  h(this, "google");
@@ -4211,26 +4236,26 @@ class si {
4211
4236
  asBaidu() {
4212
4237
  if (!this.baidu) {
4213
4238
  const e = this;
4214
- Dt();
4239
+ Zt();
4215
4240
  class t extends BMap.OverlayV3 {
4216
4241
  initialize(n) {
4217
- const a = e.create(), g = n.getPanes();
4242
+ const a = e.create(), d = n.getPanes();
4218
4243
  let o;
4219
4244
  switch (e.mapPane) {
4220
4245
  case "float":
4221
- o = g.floatPane;
4246
+ o = d.floatPane;
4222
4247
  break;
4223
4248
  case "overlayMouseTarget":
4224
- o = g.markerMouseTarget;
4249
+ o = d.markerMouseTarget;
4225
4250
  break;
4226
4251
  case "overlay":
4227
- o = g.markerPane;
4252
+ o = d.markerPane;
4228
4253
  break;
4229
4254
  case "map":
4230
- o = g.mapPane;
4255
+ o = d.mapPane;
4231
4256
  break;
4232
4257
  default:
4233
- ut(e.mapPane);
4258
+ mt(e.mapPane);
4234
4259
  break;
4235
4260
  }
4236
4261
  return o == null || o.appendChild(a), a;
@@ -4273,7 +4298,7 @@ class si {
4273
4298
  a = n.mapPane;
4274
4299
  break;
4275
4300
  default:
4276
- ut(e.mapPane);
4301
+ mt(e.mapPane);
4277
4302
  break;
4278
4303
  }
4279
4304
  a.appendChild(s);
@@ -4298,7 +4323,7 @@ class si {
4298
4323
  return this.google;
4299
4324
  }
4300
4325
  }
4301
- class ni extends si {
4326
+ class ti extends ei {
4302
4327
  constructor(e, t, r, s) {
4303
4328
  super(e, t), this.content = r, this.position = s;
4304
4329
  }
@@ -4313,7 +4338,7 @@ class ni extends si {
4313
4338
  this.position = e, this.draw();
4314
4339
  }
4315
4340
  }
4316
- const oi = C({
4341
+ const ri = C({
4317
4342
  name: "tg-element-overlay",
4318
4343
  mixins: [w],
4319
4344
  props: {
@@ -4339,20 +4364,20 @@ const oi = C({
4339
4364
  }
4340
4365
  },
4341
4366
  onCreate() {
4342
- this.overlay = new ni(this.$map, this, this.content(), this.position), this.$map.addElementOverlay(this.overlay);
4367
+ this.overlay = new ti(this.$map, this, this.content(), this.position), this.$map.addElementOverlay(this.overlay);
4343
4368
  },
4344
4369
  onDestroy() {
4345
4370
  this.$map.removeElementOverlay(this.overlay);
4346
4371
  }
4347
4372
  });
4348
- function ai(i, e, t, r, s, n) {
4373
+ function ii(i, e, t, r, s, n) {
4349
4374
  return Z(), G("div", ie({
4350
4375
  class: i.$options.name
4351
4376
  }, i.$attrs), [
4352
4377
  A(i.$slots, "default")
4353
4378
  ], 16);
4354
4379
  }
4355
- const li = /* @__PURE__ */ j(oi, [["render", ai]]), hi = C({
4380
+ const zi = /* @__PURE__ */ j(ri, [["render", ii]]), si = C({
4356
4381
  name: "tg-marker",
4357
4382
  mixins: [w],
4358
4383
  inheritAttrs: !1,
@@ -4412,7 +4437,7 @@ const li = /* @__PURE__ */ j(oi, [["render", ai]]), hi = C({
4412
4437
  },
4413
4438
  methods: {
4414
4439
  $clusterer() {
4415
- return pe(this.$parent, jt);
4440
+ return pe(this.$parent, Qr);
4416
4441
  },
4417
4442
  onAddLabel(i) {
4418
4443
  this.label = i, this.marker && this.marker.setLabel(i.overlay);
@@ -4431,14 +4456,14 @@ const li = /* @__PURE__ */ j(oi, [["render", ai]]), hi = C({
4431
4456
  }
4432
4457
  }
4433
4458
  });
4434
- function ci(i, e, t, r, s, n) {
4459
+ function ni(i, e, t, r, s, n) {
4435
4460
  return Z(), G("div", ie({
4436
4461
  class: i.$options.name
4437
4462
  }, i.attrs.binds), [
4438
4463
  A(i.$slots, "default")
4439
4464
  ], 16);
4440
4465
  }
4441
- const we = /* @__PURE__ */ j(hi, [["render", ci]]), di = C({
4466
+ const pt = /* @__PURE__ */ j(si, [["render", ni]]), oi = C({
4442
4467
  name: "tg-info-box",
4443
4468
  mixins: [w],
4444
4469
  inheritAttrs: !1,
@@ -4501,7 +4526,7 @@ const we = /* @__PURE__ */ j(hi, [["render", ci]]), di = C({
4501
4526
  return this.$el;
4502
4527
  },
4503
4528
  $marker() {
4504
- return pe(this.$parent, we);
4529
+ return pe(this.$parent, pt);
4505
4530
  },
4506
4531
  open(i) {
4507
4532
  this.overlay.open(i);
@@ -4511,14 +4536,14 @@ const we = /* @__PURE__ */ j(hi, [["render", ci]]), di = C({
4511
4536
  }
4512
4537
  }
4513
4538
  });
4514
- function pi(i, e, t, r, s, n) {
4539
+ function ai(i, e, t, r, s, n) {
4515
4540
  return Z(), G("div", ie({
4516
4541
  class: i.$options.name
4517
4542
  }, i.attrs.binds), [
4518
4543
  A(i.$slots, "default")
4519
4544
  ], 16);
4520
4545
  }
4521
- const ui = /* @__PURE__ */ j(di, [["render", pi]]), gi = C({
4546
+ const Ni = /* @__PURE__ */ j(oi, [["render", ai]]), li = C({
4522
4547
  name: "tg-info-window",
4523
4548
  mixins: [w],
4524
4549
  inheritAttrs: !1,
@@ -4557,7 +4582,7 @@ const ui = /* @__PURE__ */ j(di, [["render", pi]]), gi = C({
4557
4582
  return this.$el;
4558
4583
  },
4559
4584
  $marker() {
4560
- return pe(this.$parent, we);
4585
+ return pe(this.$parent, pt);
4561
4586
  },
4562
4587
  getOptions() {
4563
4588
  return {
@@ -4580,7 +4605,7 @@ const ui = /* @__PURE__ */ j(di, [["render", pi]]), gi = C({
4580
4605
  this.$marker() ? this.$marker().onRemoveInfo(this) : this.overlay.close();
4581
4606
  }
4582
4607
  });
4583
- function mi(i, e, t, r, s, n) {
4608
+ function hi(i, e, t, r, s, n) {
4584
4609
  return Yt((Z(), G("div", ie({
4585
4610
  class: i.$options.name
4586
4611
  }, i.attrs.binds), [
@@ -4589,7 +4614,7 @@ function mi(i, e, t, r, s, n) {
4589
4614
  [Kt, i.show]
4590
4615
  ]);
4591
4616
  }
4592
- const fi = /* @__PURE__ */ j(gi, [["render", mi]]), yi = C({
4617
+ const Ri = /* @__PURE__ */ j(li, [["render", hi]]), ci = C({
4593
4618
  name: "tg-label",
4594
4619
  mixins: [w],
4595
4620
  inheritAttrs: !1,
@@ -4627,7 +4652,7 @@ const fi = /* @__PURE__ */ j(gi, [["render", mi]]), yi = C({
4627
4652
  return (i = this.$marker()) == null ? void 0 : i.marker;
4628
4653
  },
4629
4654
  $marker() {
4630
- return pe(this.$parent, we);
4655
+ return pe(this.$parent, pt);
4631
4656
  },
4632
4657
  getOptions() {
4633
4658
  return {
@@ -4645,14 +4670,14 @@ const fi = /* @__PURE__ */ j(gi, [["render", mi]]), yi = C({
4645
4670
  this.$marker() ? this.$marker().onRemoveLabel(this) : this.$map.removeOverlay(this.overlay);
4646
4671
  }
4647
4672
  });
4648
- function vi(i, e, t, r, s, n) {
4673
+ function di(i, e, t, r, s, n) {
4649
4674
  return Z(), G("div", ie({
4650
4675
  class: i.$options.name
4651
4676
  }, i.attrs.binds), [
4652
4677
  A(i.$slots, "default")
4653
4678
  ], 16);
4654
4679
  }
4655
- const _i = /* @__PURE__ */ j(yi, [["render", vi]]), Mi = C({
4680
+ const Di = /* @__PURE__ */ j(ci, [["render", di]]), Zi = C({
4656
4681
  name: "tg-polygon",
4657
4682
  mixins: [w],
4658
4683
  inheritAttrs: !1,
@@ -4711,7 +4736,7 @@ const _i = /* @__PURE__ */ j(yi, [["render", vi]]), Mi = C({
4711
4736
  onDestroy() {
4712
4737
  this.$map.removeOverlay(this.polygon);
4713
4738
  }
4714
- }), bi = C({
4739
+ }), Gi = C({
4715
4740
  name: "tg-polyline",
4716
4741
  mixins: [w],
4717
4742
  inheritAttrs: !1,
@@ -4762,13 +4787,19 @@ const _i = /* @__PURE__ */ j(yi, [["render", vi]]), Mi = C({
4762
4787
  onDestroy() {
4763
4788
  this.$map.removeOverlay(this.polyline);
4764
4789
  }
4765
- }), Ti = ["beforeUpdate", "updated"], Di = {
4790
+ }), pi = ["beforeUpdate", "updated"], ji = {
4766
4791
  install(i, e = {}) {
4767
4792
  if (e.enable !== !1) {
4768
4793
  const t = C({
4769
4794
  beforeCreate() {
4770
- const r = this.$options.name || this.$options._componentTag || "", n = (e.nameRegex || /^[A-Z]/).test(r) ? (a) => {
4771
- e.hookNames ? e.hookNames.includes(a) && console.debug("[lifecycle]", r, a) : Ti.includes(a) || console.debug("[lifecycle]", r, a);
4795
+ var a, d;
4796
+ let r = this.$options.name || ((a = gt()) == null ? void 0 : a.type.__name) || "";
4797
+ if (!r) {
4798
+ const o = (d = gt()) == null ? void 0 : d.type.__file;
4799
+ o && (r = Nr.basename(o, ".vue"));
4800
+ }
4801
+ const n = (e.nameRegex || /^[A-Z]/).test(r) ? (o) => {
4802
+ e.hookNames ? e.hookNames.includes(o) && console.debug("[lifecycle]", r, o) : pi.includes(o) || console.debug("[lifecycle]", r, o);
4772
4803
  } : ve;
4773
4804
  n("beforeCreate"), this.__life_impl = n;
4774
4805
  },
@@ -4808,35 +4839,15 @@ const _i = /* @__PURE__ */ j(yi, [["render", vi]]), Mi = C({
4808
4839
  i.mixin(t);
4809
4840
  }
4810
4841
  }
4811
- };
4812
- var Mt;
4813
- ((i) => {
4814
- function e(r, s) {
4815
- if (r !== void 0)
4816
- return Object.values(s).includes(r) ? r : void 0;
4817
- }
4818
- i.toEnumOrNull = e;
4819
- function t(r) {
4820
- return r.split(`
4821
- `).map((s) => s.trim()).join(`
4822
- `);
4823
- }
4824
- i.trimIndent = t;
4825
- })(Mt || (Mt = {}));
4826
- const Zi = {
4842
+ }, Vi = {
4827
4843
  install(i, e) {
4828
4844
  gr(e);
4829
- const t = /* @__PURE__ */ Object.assign({ "./TgMap.vue": Gt, "./TgMapWidget.vue": Ur, "./controls/TgCustomControl.vue": qr, "./controls/TgMapTypeControl.vue": Xr, "./controls/TgScaleControl.vue": Jr, "./controls/TgZoomControl.vue": Qr, "./extra/TgMarkerClusterer.vue": jt, "./layers/TgTrafficLayer.vue": ri, "./overlays/TgCircle.vue": ii, "./overlays/TgElementOverlay.vue": li, "./overlays/TgInfoBox.vue": ui, "./overlays/TgInfoWindow.vue": fi, "./overlays/TgLabel.vue": _i, "./overlays/TgMarker.vue": we, "./overlays/TgPolygon.vue": Mi, "./overlays/TgPolyline.vue": bi });
4830
- Object.keys(t).forEach((s) => {
4831
- const n = t[s];
4832
- i.component(n.name ?? x(`Tg开头的组件必须设置name: ${s}`), n);
4833
- });
4834
- const r = i.config.optionMergeStrategies;
4835
- r[ze] = r[Ne] = (s, n) => s ? [...new Set([].concat(s, n))] : n;
4845
+ const t = i.config.optionMergeStrategies;
4846
+ t[ze] = t[Ne] = (r, s) => r ? [...new Set([].concat(r, s))] : s;
4836
4847
  }
4837
4848
  };
4838
4849
  export {
4839
- At as AbstractControl,
4850
+ zt as AbstractControl,
4840
4851
  Ze as AbstractMap,
4841
4852
  be as Arrays,
4842
4853
  Ke as BaiduCircle,
@@ -4846,13 +4857,13 @@ export {
4846
4857
  Qe as BaiduMapTypeControl,
4847
4858
  ce as BaiduMarker,
4848
4859
  br as BaiduMarkerClusterer,
4849
- Ce as BaiduOverlay,
4860
+ we as BaiduOverlay,
4850
4861
  Ue as BaiduPolygon,
4851
4862
  He as BaiduPolyline,
4852
4863
  rt as BaiduScaleControl,
4853
4864
  et as BaiduZoomControl,
4854
- vt as CachedValue,
4855
- E as ControlPosition,
4865
+ Mt as CachedValue,
4866
+ x as ControlPosition,
4856
4867
  I as ControlPositionConverter,
4857
4868
  q as CoordType,
4858
4869
  wr as CustomControl,
@@ -4871,68 +4882,69 @@ export {
4871
4882
  tt as GoogleZoomControl,
4872
4883
  te as Icon,
4873
4884
  nt as InfoWindow,
4874
- yt as KeyValue,
4885
+ _t as KeyValue,
4875
4886
  y as LatLng,
4876
- V as LatLngBounds,
4877
- Di as LifecycleLogPlugin,
4887
+ W as LatLngBounds,
4888
+ ji as LifecycleLogPlugin,
4878
4889
  ze as MIXIN_HOOK_CREATE,
4879
4890
  Ne as MIXIN_HOOK_DESTROY,
4880
- Zt as MIXIN_MAP_NAME,
4891
+ Gt as MIXIN_MAP_NAME,
4881
4892
  Te as MVCArrays,
4882
4893
  w as MapMixin,
4883
- Nt as MapTypeControlType,
4884
- Bt as MarkerClusterer,
4894
+ Rt as MapTypeControlType,
4895
+ St as MarkerClusterer,
4885
4896
  he as Objects,
4886
- $t as Overlay,
4897
+ At as Overlay,
4887
4898
  de as Point,
4888
- Mt as Strings,
4889
- ii as TgCircle,
4890
- qr as TgCustomControl,
4891
- li as TgElementOverlay,
4892
- ui as TgInfoBox,
4893
- fi as TgInfoWindow,
4894
- _i as TgLabel,
4895
- Gt as TgMap,
4899
+ Oe as Strings,
4900
+ Ai as TgCircle,
4901
+ Ii as TgCustomControl,
4902
+ zi as TgElementOverlay,
4903
+ Ni as TgInfoBox,
4904
+ Ri as TgInfoWindow,
4905
+ Di as TgLabel,
4906
+ Hr as TgMap,
4896
4907
  Ae as TgMapFactory,
4897
4908
  $ as TgMapType,
4898
- Xr as TgMapTypeControl,
4899
- Ur as TgMapWidget,
4900
- we as TgMarker,
4901
- jt as TgMarkerClusterer,
4902
- Mi as TgPolygon,
4903
- bi as TgPolyline,
4904
- Jr as TgScaleControl,
4905
- ri as TgTrafficLayer,
4906
- Qr as TgZoomControl,
4909
+ Li as TgMapTypeControl,
4910
+ Pi as TgMapWidget,
4911
+ pt as TgMarker,
4912
+ Qr as TgMarkerClusterer,
4913
+ Zi as TgPolygon,
4914
+ Gi as TgPolyline,
4915
+ Bi as TgScaleControl,
4916
+ $i as TgTrafficLayer,
4917
+ Si as TgZoomControl,
4907
4918
  me as callHook,
4908
- $i as computedSaveOnThis,
4909
- Dr as createEmptyVNode,
4910
- Rr as createPropertyObject,
4911
- Ai as createPropertyObjectTyped,
4912
- xi as debug,
4913
- Zi as default,
4914
- Ri as eventLogMethods,
4919
+ Ci as computedSaveOnThis,
4920
+ Zr as createEmptyVNode,
4921
+ Dr as createPropertyObject,
4922
+ wi as createPropertyObjectTyped,
4923
+ fi as debug,
4924
+ Vi as default,
4925
+ ki as eventLogMethods,
4915
4926
  N as eventProp,
4916
- Ni as extractVNodeFromSlotsByComponent,
4917
- zi as findByComponentType,
4918
- xt as getTgMapConfig,
4919
- Ei as isDef,
4920
- Pi as isInstanceOf,
4921
- ki as lateinit,
4927
+ Ei as extractVNodeFromSlotsByComponent,
4928
+ xi as findByComponentType,
4929
+ Et as getTgMapConfig,
4930
+ yi as isDef,
4931
+ _i as isInstanceOf,
4932
+ vi as lateinit,
4922
4933
  ve as noop,
4923
4934
  m as optionalProp,
4935
+ Nr as path,
4924
4936
  z as requiredProp,
4925
- Ii as safeAs,
4937
+ Mi as safeAs,
4926
4938
  pe as safeAsComponent,
4927
4939
  gr as setTgMapConfig,
4928
- Zr as splitAttrs,
4940
+ Gr as splitAttrs,
4929
4941
  D as stringEnumProp,
4930
- Nr as stringUnionPropFromValues,
4931
- x as throwError,
4942
+ Rr as stringUnionPropFromValues,
4943
+ P as throwError,
4932
4944
  Qt as throwUnsupported,
4933
- wi as todo,
4945
+ mi as todo,
4934
4946
  Le as typed,
4935
- Li as unwrapStringEnumValue,
4947
+ bi as unwrapStringEnumValue,
4936
4948
  U as useSplittedAttrs
4937
4949
  };
4938
4950
  //# sourceMappingURL=tg-map.js.map