adminizer 5.1.0-build.29 → 5.2.0-build.31
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/assets/{abnfDiagram-VCTEODGH-CpSXY7qH.js → abnfDiagram-VCTEODGH-BtJg_wq8.js} +1 -1
- package/assets/{add-DQWffo5j.js → add-CcMmw50d.js} +1 -1
- package/assets/{add-group-OdAd30ej.js → add-group-BI7Il1o9.js} +1 -1
- package/assets/{add-user-C6cqZSzp.js → add-user-CbTznIir.js} +1 -1
- package/assets/ai-assistant/agent.es.js +22295 -15655
- package/assets/app-Cg7dXJfk.js +138 -0
- package/assets/app-DM8KzeFz.css +1 -0
- package/assets/{arc-6oG0N2EU.js → arc-BH-jID2f.js} +1 -1
- package/assets/{architectureDiagram-5GKGNRK7-BO5E3Osk.js → architectureDiagram-5GKGNRK7-BmFO29Ca.js} +1 -1
- package/assets/{blockDiagram-I7D4REHJ-DpKAEeRQ.js → blockDiagram-I7D4REHJ-kmdi7zCh.js} +6 -6
- package/assets/{c4Diagram-7LVT6UL2-K4ilHoqv.js → c4Diagram-7LVT6UL2-BqfDgZbz.js} +1 -1
- package/assets/{catalog-BaSowP5U.js → catalog-BefPw8hG.js} +3 -3
- package/assets/channel-X5bzKz26.js +1 -0
- package/assets/{chunk-2Q5K7J3B-CFvbnPgN.js → chunk-2Q5K7J3B-5iRxjfuJ.js} +1 -1
- package/assets/{chunk-5VM5RSS4-Cxb3_K7a.js → chunk-5VM5RSS4-BhQiByv7.js} +1 -1
- package/assets/{chunk-F27PBJKO-Bp-e-RqW.js → chunk-F27PBJKO-IjJk4n9A.js} +1 -1
- package/assets/{chunk-IMKFNOWR-D03Bbv3p.js → chunk-IMKFNOWR-ymA9WbHJ.js} +1 -1
- package/assets/{chunk-JWPE2WC7-BQzIFXbt.js → chunk-JWPE2WC7-Dyix1HHX.js} +1 -1
- package/assets/{chunk-POPQ4Y6H-DGPhwQEk.js → chunk-POPQ4Y6H-IQ0zsMJS.js} +1 -1
- package/assets/{chunk-SVP7TREG-CFG2uzdK.js → chunk-SVP7TREG-CXCxziXD.js} +1 -1
- package/assets/{chunk-TICWLB2K-BRoATx6O.js → chunk-TICWLB2K-BcvDM7WB.js} +1 -1
- package/assets/{chunk-XXDRQBXY-MTSPV1jX.js → chunk-XXDRQBXY-c2W5S_dd.js} +1 -1
- package/assets/classDiagram-ZZMXUADV-EpRQ1LwP.js +1 -0
- package/assets/classDiagram-v2-VYDZK3BY-EpRQ1LwP.js +1 -0
- package/assets/controls/ckeditor.es.js +14708 -14424
- package/assets/controls/handsontable.es.js +13874 -13260
- package/assets/controls/jsoneditor.es.js +12752 -12627
- package/assets/controls/leaflet.es.js +741 -729
- package/assets/controls/toast-ui.es.js +16608 -16344
- package/assets/{cose-bilkent-JH36ORCC-Cd04LiHO.js → cose-bilkent-JH36ORCC-B5pmdKpq.js} +1 -1
- package/assets/{cynefin-OW5HDTMX-Cvk-t4EK.js → cynefin-OW5HDTMX-HzbUuFkc.js} +1 -1
- package/assets/{cynefinDiagram-5FMLGOSQ-CHBsEINZ.js → cynefinDiagram-5FMLGOSQ-DUOm6HTV.js} +1 -1
- package/assets/cytoscape.esm-BDkkwuE4.js +321 -0
- package/assets/{dagre-GXQ25YYZ-Dq-0d5Tl.js → dagre-GXQ25YYZ-Cq_xhTkE.js} +1 -1
- package/assets/{dashboard-BZo6F7y9.js → dashboard-D_XSE-mA.js} +1 -1
- package/assets/{diagram-S7CK7UJ4-BKDTPndI.js → diagram-S7CK7UJ4-BB0h2Ycq.js} +1 -1
- package/assets/{diagram-UQ7AKVKN-DZYq9mm9.js → diagram-UQ7AKVKN-UmvM898J.js} +1 -1
- package/assets/{diagram-VSXAHHWV-CVOsZwCq.js → diagram-VSXAHHWV-C3pfgVZR.js} +1 -1
- package/assets/{diagram-VX7I27RA-BCBXgENw.js → diagram-VX7I27RA-S-iQHosH.js} +1 -1
- package/assets/{diagram-Z3DM3KII-ByNHDStX.js → diagram-Z3DM3KII-wkmwXnCL.js} +1 -1
- package/assets/{docs-CDmOUM3P.js → docs-DmiXIQku.js} +1 -1
- package/assets/{ebnfDiagram-PWID7BFC-WrVgmCqC.js → ebnfDiagram-PWID7BFC-TXvp9u_g.js} +1 -1
- package/assets/{erDiagram-RLTQ6QDP-1QXTF1US.js → erDiagram-RLTQ6QDP-D3kVz7Nb.js} +1 -1
- package/assets/{flowDiagram-HODETNUW-DWcydZT-.js → flowDiagram-HODETNUW-7gxPRGUj.js} +1 -1
- package/assets/{ganttDiagram-EL5Y4UJY-BDrQ3uCR.js → ganttDiagram-EL5Y4UJY-CPN-jcnj.js} +1 -1
- package/assets/{gitGraphDiagram-WWUBYQGX-oD2bpMWh.js → gitGraphDiagram-WWUBYQGX-Br1ZEaO6.js} +1 -1
- package/assets/{history-CTbCqtJA.js → history-Bu1mzK4I.js} +1 -1
- package/assets/{infoDiagram-27XIBGKW-C8opSvmW.js → infoDiagram-27XIBGKW-zYs7bQjE.js} +1 -1
- package/assets/{init-user-DDmp5FmX.js → init-user-fQwp0v90.js} +1 -1
- package/assets/{ishikawaDiagram-5VMMS53U-CqOCcw38.js → ishikawaDiagram-5VMMS53U-BjXTvzge.js} +1 -1
- package/assets/{journeyDiagram-3NMN7TZE-B1OlZWx5.js → journeyDiagram-3NMN7TZE-CBfsgbN2.js} +1 -1
- package/assets/{kanban-definition-UXKFOSKX-DIEdmOZD.js → kanban-definition-UXKFOSKX-CrzhTXng.js} +1 -1
- package/assets/{layout-Cznoi1Xi.js → layout-BUEOcJh3.js} +1 -1
- package/assets/{linear-DbhwLrTs.js → linear-Djausokh.js} +1 -1
- package/assets/{list-X8LYs75t.js → list-ACmum9cV.js} +2 -2
- package/assets/{login-D0flIAhA.js → login-BQuIs2j8.js} +1 -1
- package/assets/manifest.json +281 -281
- package/assets/media-manager-CU4vMw1V.js +7 -0
- package/assets/mermaid.core-Dojzw60O.js +310 -0
- package/assets/{mindmap-definition-YA3MSWOX-G8OJl_uT.js → mindmap-definition-YA3MSWOX-s62CDc7B.js} +1 -1
- package/assets/{module-D347sEFr.js → module-Cb67xTGv.js} +1 -1
- package/assets/{notification-C7usJcF-.js → notification-BTTSwP6c.js} +1 -1
- package/assets/{pegDiagram-XKGWAZYB-CqOymfUM.js → pegDiagram-XKGWAZYB-C61Y70Sx.js} +1 -1
- package/assets/{pieDiagram-E7YTZNPT-C_nbNUey.js → pieDiagram-E7YTZNPT-p2kr4IMf.js} +1 -1
- package/assets/{quadrantDiagram-AXDQQJYC-RDCWL_jp.js → quadrantDiagram-AXDQQJYC-Bt0TmDnC.js} +1 -1
- package/assets/{railroadDiagram-O6MQD6OU-Bi_j7Fb_.js → railroadDiagram-O6MQD6OU-3OLC0D_j.js} +1 -1
- package/assets/{register-DhdaEsna.js → register-BIVlQHtg.js} +1 -1
- package/assets/{requirementDiagram-BXWQKSXE-Cg6IzoFA.js → requirementDiagram-BXWQKSXE-DX_wfhH_.js} +1 -1
- package/assets/{ru-DMAUOdKr.js → ru-CQbDDiCI.js} +1 -1
- package/assets/{sankeyDiagram-P5KCCOFB-BNN3S4hm.js → sankeyDiagram-P5KCCOFB-C5owbfFt.js} +1 -1
- package/assets/{sequenceDiagram-WJ2MYXX4-C9UEgNLg.js → sequenceDiagram-WJ2MYXX4-C9LP6Bzy.js} +1 -1
- package/assets/{sizeCapture-INFHLROL-DH9gM8J8.js → sizeCapture-INFHLROL-B7ZoWp62.js} +1 -1
- package/assets/{stateDiagram-D77RDMKH-CzuNaJnp.js → stateDiagram-D77RDMKH-uWI0NoaS.js} +1 -1
- package/assets/stateDiagram-v2-MP3YSRHH-B_Bjdct-.js +1 -0
- package/assets/{swimlanes-42K2YHIH-DlfHkCIp.js → swimlanes-42K2YHIH-B665ttwU.js} +1 -1
- package/assets/swimlanesDiagram-VR7AAH4N-BDCBtik2.js +8 -0
- package/assets/{timeline-definition-24CTP7MA-B45WKY9z.js → timeline-definition-24CTP7MA-BI5S9uY1.js} +1 -1
- package/assets/{use-appearance-DPeAg6kc.js → use-appearance-CETqIse6.js} +1 -1
- package/assets/{user-filters-list-B-txVF_a.js → user-filters-list-CyxWxLux.js} +1 -1
- package/assets/{vennDiagram-4TSXK5OY-BARlq8EX.js → vennDiagram-4TSXK5OY-Ba9orEWx.js} +1 -1
- package/assets/{wardleyDiagram-VM6X3IG4-DSGKYXrr.js → wardleyDiagram-VM6X3IG4-DTWvvomz.js} +1 -1
- package/assets/{welcome-Cdhwf3y4.js → welcome-CaSypMCF.js} +1 -1
- package/assets/with-app-layout-BNrVlaFw.js +34 -0
- package/assets/{xychartDiagram-S5SC5T6Z-DPA8cj4H.js → xychartDiagram-S5SC5T6Z-d9Kf7FbS.js} +1 -1
- package/controllers/initUser.js +1 -1
- package/helpers/inertiaAddHelper.js +10 -1
- package/helpers/inertiaMenuHelper.d.ts +3 -2
- package/helpers/inertiaMenuHelper.js +9 -4
- package/helpers/navigationAccessHelper.d.ts +5 -0
- package/helpers/navigationAccessHelper.js +13 -0
- package/helpers/publicUserHelper.d.ts +10 -0
- package/helpers/publicUserHelper.js +15 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/interfaces/adminpanelConfig.d.ts +7 -0
- package/lib/Adminizer.d.ts +2 -0
- package/lib/Adminizer.js +3 -0
- package/lib/admin-links/AdminLinkHandler.js +5 -1
- package/lib/app-manager/AdminizerApp.d.ts +34 -0
- package/lib/app-manager/AppManager.js +35 -0
- package/lib/app-manager/ContextHandler.d.ts +240 -0
- package/lib/app-manager/ContextHandler.js +446 -0
- package/lib/app-manager/ControllerHandler.d.ts +2 -0
- package/lib/app-manager/ControllerHandler.js +7 -0
- package/package.json +3 -2
- package/system/bindInertia.js +36 -10
- package/assets/app-DMN-4aCp.js +0 -138
- package/assets/app-TCCHARSx.css +0 -1
- package/assets/channel-Dh5UPZKs.js +0 -1
- package/assets/classDiagram-ZZMXUADV-a_pfQoRf.js +0 -1
- package/assets/classDiagram-v2-VYDZK3BY-a_pfQoRf.js +0 -1
- package/assets/cytoscape.esm-BB4DxJjf.js +0 -321
- package/assets/media-manager-cyrZjDu3.js +0 -6
- package/assets/mermaid.core-DtG9mjld.js +0 -310
- package/assets/stateDiagram-v2-MP3YSRHH-Cm0oV4uL.js +0 -1
- package/assets/swimlanesDiagram-VR7AAH4N-Cc5GTkO2.js +0 -8
- package/assets/with-app-layout-CcoboJFc.js +0 -31
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import { j as O } from "./chunks/jsx-runtime-jIxVPx5o.js";
|
|
2
|
-
import { g as
|
|
3
|
-
const
|
|
4
|
-
function To(
|
|
5
|
-
const a =
|
|
6
|
-
|
|
7
|
-
l !== a.current &&
|
|
2
|
+
import { g as Ss } from "./chunks/_commonjsHelpers-C6fGbg64.js";
|
|
3
|
+
const zs = window.React.useEffect, Ms = window.React.useRef;
|
|
4
|
+
function To(r, l) {
|
|
5
|
+
const a = Ms(l);
|
|
6
|
+
zs(function() {
|
|
7
|
+
l !== a.current && r.attributionControl != null && (a.current != null && r.attributionControl.removeAttribution(a.current), l != null && r.attributionControl.addAttribution(l)), a.current = l;
|
|
8
8
|
}, [
|
|
9
|
-
|
|
9
|
+
r,
|
|
10
10
|
l
|
|
11
11
|
]);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
function
|
|
13
|
+
const Es = window.React.createContext, Os = window.React.use, As = 1;
|
|
14
|
+
function Is(r) {
|
|
15
15
|
return Object.freeze({
|
|
16
|
-
__version:
|
|
17
|
-
map:
|
|
16
|
+
__version: As,
|
|
17
|
+
map: r
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
function oi(
|
|
20
|
+
function oi(r, l) {
|
|
21
21
|
return Object.freeze({
|
|
22
|
-
...
|
|
22
|
+
...r,
|
|
23
23
|
...l
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const Gi = Es(null);
|
|
27
27
|
function ri() {
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
28
|
+
const r = Os(Gi);
|
|
29
|
+
if (r == null)
|
|
30
30
|
throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");
|
|
31
|
-
return
|
|
31
|
+
return r;
|
|
32
32
|
}
|
|
33
|
-
const
|
|
34
|
-
function Co(
|
|
33
|
+
const Rs = window.React, Vi = window.React.forwardRef, Zs = window.React.useEffect, Ui = window.React.useImperativeHandle, Bs = window.React.useState, Ns = window.ReactDOM.createPortal;
|
|
34
|
+
function Co(r) {
|
|
35
35
|
function l(a, h) {
|
|
36
|
-
const { instance: u, context: p } =
|
|
37
|
-
|
|
36
|
+
const { instance: u, context: p } = r(a).current;
|
|
37
|
+
Ui(h, () => u);
|
|
38
38
|
const { children: m } = a;
|
|
39
|
-
return m == null ? null : /* @__PURE__ */
|
|
39
|
+
return m == null ? null : /* @__PURE__ */ Rs.createElement(Gi, {
|
|
40
40
|
value: p
|
|
41
41
|
}, m);
|
|
42
42
|
}
|
|
43
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ Vi(l);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Ds(r) {
|
|
46
46
|
function l(a, h) {
|
|
47
|
-
const [u, p] =
|
|
48
|
-
|
|
47
|
+
const [u, p] = Bs(!1), { instance: m } = r(a, p).current;
|
|
48
|
+
Ui(h, () => m), Zs(function() {
|
|
49
49
|
u && m.update();
|
|
50
50
|
}, [
|
|
51
51
|
m,
|
|
@@ -53,49 +53,49 @@ function Bs(s) {
|
|
|
53
53
|
a.children
|
|
54
54
|
]);
|
|
55
55
|
const b = m._contentNode;
|
|
56
|
-
return b ? /* @__PURE__ */
|
|
56
|
+
return b ? /* @__PURE__ */ Ns(a.children, b) : null;
|
|
57
57
|
}
|
|
58
|
-
return /* @__PURE__ */
|
|
58
|
+
return /* @__PURE__ */ Vi(l);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Fs(r) {
|
|
61
61
|
function l(a, h) {
|
|
62
|
-
const { instance: u } =
|
|
63
|
-
return
|
|
62
|
+
const { instance: u } = r(a).current;
|
|
63
|
+
return Ui(h, () => u), null;
|
|
64
64
|
}
|
|
65
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ Vi(l);
|
|
66
66
|
}
|
|
67
|
-
const
|
|
68
|
-
function
|
|
69
|
-
const a =
|
|
70
|
-
|
|
71
|
-
return l != null &&
|
|
72
|
-
a.current != null &&
|
|
67
|
+
const Ws = window.React.useEffect, Hs = window.React.useRef;
|
|
68
|
+
function $i(r, l) {
|
|
69
|
+
const a = Hs(void 0);
|
|
70
|
+
Ws(function() {
|
|
71
|
+
return l != null && r.instance.on(l), a.current = l, function() {
|
|
72
|
+
a.current != null && r.instance.off(a.current), a.current = null;
|
|
73
73
|
};
|
|
74
74
|
}, [
|
|
75
|
-
|
|
75
|
+
r,
|
|
76
76
|
l
|
|
77
77
|
]);
|
|
78
78
|
}
|
|
79
|
-
function si(
|
|
80
|
-
const a =
|
|
79
|
+
function si(r, l) {
|
|
80
|
+
const a = r.pane ?? l.pane;
|
|
81
81
|
return a ? {
|
|
82
|
-
...
|
|
82
|
+
...r,
|
|
83
83
|
pane: a
|
|
84
|
-
} :
|
|
84
|
+
} : r;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function js(r, l) {
|
|
87
87
|
return function(h, u) {
|
|
88
|
-
const p = ri(), m =
|
|
89
|
-
return To(p.map, h.attribution),
|
|
88
|
+
const p = ri(), m = r(si(h, p), p);
|
|
89
|
+
return To(p.map, h.attribution), $i(m.current, h.eventHandlers), l(m.current, p, h, u), m;
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
var Ee = { exports: {} };
|
|
93
|
-
var
|
|
94
|
-
function
|
|
95
|
-
return ho || (ho = 1, (function(
|
|
93
|
+
var Gs = Ee.exports, ho;
|
|
94
|
+
function Vs() {
|
|
95
|
+
return ho || (ho = 1, (function(r, l) {
|
|
96
96
|
(function(a, h) {
|
|
97
97
|
h(l);
|
|
98
|
-
})(
|
|
98
|
+
})(Gs, (function(a) {
|
|
99
99
|
var h = "1.9.4";
|
|
100
100
|
function u(t) {
|
|
101
101
|
var e, i, n, o;
|
|
@@ -127,16 +127,16 @@ function js() {
|
|
|
127
127
|
return "_leaflet_id" in t || (t._leaflet_id = ++b), t._leaflet_id;
|
|
128
128
|
}
|
|
129
129
|
function g(t, e, i) {
|
|
130
|
-
var n, o,
|
|
130
|
+
var n, o, s, c;
|
|
131
131
|
return c = function() {
|
|
132
|
-
n = !1, o && (
|
|
133
|
-
},
|
|
132
|
+
n = !1, o && (s.apply(i, o), o = !1);
|
|
133
|
+
}, s = function() {
|
|
134
134
|
n ? o = arguments : (t.apply(i, arguments), setTimeout(c, e), n = !0);
|
|
135
|
-
},
|
|
135
|
+
}, s;
|
|
136
136
|
}
|
|
137
137
|
function R(t, e, i) {
|
|
138
|
-
var n = e[1], o = e[0],
|
|
139
|
-
return t === n && i ? t : ((t - o) %
|
|
138
|
+
var n = e[1], o = e[0], s = n - o;
|
|
139
|
+
return t === n && i ? t : ((t - o) % s + s) % s + o;
|
|
140
140
|
}
|
|
141
141
|
function T() {
|
|
142
142
|
return !1;
|
|
@@ -242,8 +242,8 @@ function js() {
|
|
|
242
242
|
return t.statics && u(e, t.statics), t.includes && (Ft(t.includes), u.apply(null, [n].concat(t.includes))), u(n, t), delete n.statics, delete n.includes, n.options && (n.options = i.options ? p(i.options) : {}, u(n.options, t.options)), n._initHooks = [], n.callInitHooks = function() {
|
|
243
243
|
if (!this._initHooksCalled) {
|
|
244
244
|
i.callInitHooks && i.callInitHooks.call(this), this._initHooksCalled = !0;
|
|
245
|
-
for (var
|
|
246
|
-
n._initHooks[
|
|
245
|
+
for (var s = 0, c = n._initHooks.length; s < c; s++)
|
|
246
|
+
n._initHooks[s].call(this);
|
|
247
247
|
}
|
|
248
248
|
}, e;
|
|
249
249
|
}, vt.include = function(t) {
|
|
@@ -278,7 +278,7 @@ function js() {
|
|
|
278
278
|
this._on(n, t[n], e);
|
|
279
279
|
else {
|
|
280
280
|
t = G(t);
|
|
281
|
-
for (var o = 0,
|
|
281
|
+
for (var o = 0, s = t.length; o < s; o++)
|
|
282
282
|
this._on(t[o], e, i);
|
|
283
283
|
}
|
|
284
284
|
return this;
|
|
@@ -302,8 +302,8 @@ function js() {
|
|
|
302
302
|
this._off(n, t[n], e);
|
|
303
303
|
else {
|
|
304
304
|
t = G(t);
|
|
305
|
-
for (var o = arguments.length === 1,
|
|
306
|
-
o ? this._off(t[
|
|
305
|
+
for (var o = arguments.length === 1, s = 0, c = t.length; s < c; s++)
|
|
306
|
+
o ? this._off(t[s]) : this._off(t[s], e, i);
|
|
307
307
|
}
|
|
308
308
|
return this;
|
|
309
309
|
},
|
|
@@ -320,11 +320,11 @@ function js() {
|
|
|
320
320
|
}
|
|
321
321
|
},
|
|
322
322
|
_off: function(t, e, i) {
|
|
323
|
-
var n, o,
|
|
323
|
+
var n, o, s;
|
|
324
324
|
if (this._events && (n = this._events[t], !!n)) {
|
|
325
325
|
if (arguments.length === 1) {
|
|
326
326
|
if (this._firingCount)
|
|
327
|
-
for (o = 0,
|
|
327
|
+
for (o = 0, s = n.length; o < s; o++)
|
|
328
328
|
n[o].fn = T;
|
|
329
329
|
delete this._events[t];
|
|
330
330
|
return;
|
|
@@ -356,8 +356,8 @@ function js() {
|
|
|
356
356
|
var o = this._events[t];
|
|
357
357
|
if (o) {
|
|
358
358
|
this._firingCount = this._firingCount + 1 || 1;
|
|
359
|
-
for (var
|
|
360
|
-
var d = o[
|
|
359
|
+
for (var s = 0, c = o.length; s < c; s++) {
|
|
360
|
+
var d = o[s], f = d.fn;
|
|
361
361
|
d.once && this.off(t, f, d.ctx), f.call(d.ctx || this, n);
|
|
362
362
|
}
|
|
363
363
|
this._firingCount--;
|
|
@@ -373,8 +373,8 @@ function js() {
|
|
|
373
373
|
typeof t != "string" && console.warn('"string" type argument expected');
|
|
374
374
|
var o = e;
|
|
375
375
|
typeof e != "function" && (n = !!e, o = void 0, i = void 0);
|
|
376
|
-
var
|
|
377
|
-
if (
|
|
376
|
+
var s = this._events && this._events[t];
|
|
377
|
+
if (s && s.length && this._listens(t, o, i) !== !1)
|
|
378
378
|
return !0;
|
|
379
379
|
if (n) {
|
|
380
380
|
for (var c in this._eventParents)
|
|
@@ -391,7 +391,7 @@ function js() {
|
|
|
391
391
|
if (!e)
|
|
392
392
|
return !!n.length;
|
|
393
393
|
i === this && (i = void 0);
|
|
394
|
-
for (var o = 0,
|
|
394
|
+
for (var o = 0, s = n.length; o < s; o++)
|
|
395
395
|
if (n[o].fn === e && n[o].ctx === i)
|
|
396
396
|
return o;
|
|
397
397
|
return !1;
|
|
@@ -404,7 +404,7 @@ function js() {
|
|
|
404
404
|
this._on(n, t[n], e, !0);
|
|
405
405
|
else {
|
|
406
406
|
t = G(t);
|
|
407
|
-
for (var o = 0,
|
|
407
|
+
for (var o = 0, s = t.length; o < s; o++)
|
|
408
408
|
this._on(t[o], e, i, !0);
|
|
409
409
|
}
|
|
410
410
|
return this;
|
|
@@ -614,16 +614,16 @@ function js() {
|
|
|
614
614
|
// intersect if they have at least one point in common.
|
|
615
615
|
intersects: function(t) {
|
|
616
616
|
t = ct(t);
|
|
617
|
-
var e = this.min, i = this.max, n = t.min, o = t.max,
|
|
618
|
-
return
|
|
617
|
+
var e = this.min, i = this.max, n = t.min, o = t.max, s = o.x >= e.x && n.x <= i.x, c = o.y >= e.y && n.y <= i.y;
|
|
618
|
+
return s && c;
|
|
619
619
|
},
|
|
620
620
|
// @method overlaps(otherBounds: Bounds): Boolean
|
|
621
621
|
// Returns `true` if the rectangle overlaps the given bounds. Two bounds
|
|
622
622
|
// overlap if their intersection is an area.
|
|
623
623
|
overlaps: function(t) {
|
|
624
624
|
t = ct(t);
|
|
625
|
-
var e = this.min, i = this.max, n = t.min, o = t.max,
|
|
626
|
-
return
|
|
625
|
+
var e = this.min, i = this.max, n = t.min, o = t.max, s = o.x > e.x && n.x < i.x, c = o.y > e.y && n.y < i.y;
|
|
626
|
+
return s && c;
|
|
627
627
|
},
|
|
628
628
|
// @method isValid(): Boolean
|
|
629
629
|
// Returns `true` if the bounds are properly initialized.
|
|
@@ -745,15 +745,15 @@ function js() {
|
|
|
745
745
|
// Returns `true` if the rectangle intersects the given bounds. Two bounds intersect if they have at least one point in common.
|
|
746
746
|
intersects: function(t) {
|
|
747
747
|
t = J(t);
|
|
748
|
-
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), o = t.getNorthEast(),
|
|
749
|
-
return
|
|
748
|
+
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), o = t.getNorthEast(), s = o.lat >= e.lat && n.lat <= i.lat, c = o.lng >= e.lng && n.lng <= i.lng;
|
|
749
|
+
return s && c;
|
|
750
750
|
},
|
|
751
751
|
// @method overlaps(otherBounds: LatLngBounds): Boolean
|
|
752
752
|
// Returns `true` if the rectangle overlaps the given bounds. Two bounds overlap if their intersection is an area.
|
|
753
753
|
overlaps: function(t) {
|
|
754
754
|
t = J(t);
|
|
755
|
-
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), o = t.getNorthEast(),
|
|
756
|
-
return
|
|
755
|
+
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), o = t.getNorthEast(), s = o.lat > e.lat && n.lat < i.lat, c = o.lng > e.lng && n.lng < i.lng;
|
|
756
|
+
return s && c;
|
|
757
757
|
},
|
|
758
758
|
// @method toBBoxString(): String
|
|
759
759
|
// Returns a string with bounding box coordinates in a 'southwest_lng,southwest_lat,northeast_lng,northeast_lat' format. Useful for sending requests to web services that return geo data.
|
|
@@ -800,12 +800,12 @@ function js() {
|
|
|
800
800
|
// @method distanceTo(otherLatLng: LatLng): Number
|
|
801
801
|
// Returns the distance (in meters) to the given `LatLng` calculated using the [Spherical Law of Cosines](https://en.wikipedia.org/wiki/Spherical_law_of_cosines).
|
|
802
802
|
distanceTo: function(t) {
|
|
803
|
-
return
|
|
803
|
+
return kt.distance(this, M(t));
|
|
804
804
|
},
|
|
805
805
|
// @method wrap(): LatLng
|
|
806
806
|
// Returns a new `LatLng` object with the longitude wrapped so it's always between -180 and +180 degrees.
|
|
807
807
|
wrap: function() {
|
|
808
|
-
return
|
|
808
|
+
return kt.wrapLatLng(this);
|
|
809
809
|
},
|
|
810
810
|
// @method toBounds(sizeInMeters: Number): LatLngBounds
|
|
811
811
|
// Returns a new `LatLngBounds` object in which each boundary is `sizeInMeters/2` meters apart from the `LatLng`.
|
|
@@ -902,10 +902,10 @@ function js() {
|
|
|
902
902
|
var e = t.getCenter(), i = this.wrapLatLng(e), n = e.lat - i.lat, o = e.lng - i.lng;
|
|
903
903
|
if (n === 0 && o === 0)
|
|
904
904
|
return t;
|
|
905
|
-
var
|
|
905
|
+
var s = t.getSouthWest(), c = t.getNorthEast(), d = new I(s.lat - n, s.lng - o), f = new I(c.lat - n, c.lng - o);
|
|
906
906
|
return new ut(d, f);
|
|
907
907
|
}
|
|
908
|
-
},
|
|
908
|
+
}, kt = u({}, _t, {
|
|
909
909
|
wrapLng: [-180, 180],
|
|
910
910
|
// Mean Earth Radius, as recommended for use by
|
|
911
911
|
// the International Union of Geodesy and Geophysics,
|
|
@@ -913,7 +913,7 @@ function js() {
|
|
|
913
913
|
R: 6371e3,
|
|
914
914
|
// distance between two geographical points using spherical law of cosines approximation
|
|
915
915
|
distance: function(t, e) {
|
|
916
|
-
var i = Math.PI / 180, n = t.lat * i, o = e.lat * i,
|
|
916
|
+
var i = Math.PI / 180, n = t.lat * i, o = e.lat * i, s = Math.sin((e.lat - t.lat) * i / 2), c = Math.sin((e.lng - t.lng) * i / 2), d = s * s + Math.cos(n) * Math.cos(o) * c * c, f = 2 * Math.atan2(Math.sqrt(d), Math.sqrt(1 - d));
|
|
917
917
|
return this.R * f;
|
|
918
918
|
}
|
|
919
919
|
}), et = 6378137, oe = {
|
|
@@ -969,7 +969,7 @@ function js() {
|
|
|
969
969
|
function zt(t, e, i, n) {
|
|
970
970
|
return new Wt(t, e, i, n);
|
|
971
971
|
}
|
|
972
|
-
var qt = u({},
|
|
972
|
+
var qt = u({}, kt, {
|
|
973
973
|
code: "EPSG:3857",
|
|
974
974
|
projection: oe,
|
|
975
975
|
transformation: (function() {
|
|
@@ -983,15 +983,15 @@ function js() {
|
|
|
983
983
|
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
|
984
984
|
}
|
|
985
985
|
function tn(t, e) {
|
|
986
|
-
var i = "", n, o,
|
|
987
|
-
for (n = 0,
|
|
986
|
+
var i = "", n, o, s, c, d, f;
|
|
987
|
+
for (n = 0, s = t.length; n < s; n++) {
|
|
988
988
|
for (d = t[n], o = 0, c = d.length; o < c; o++)
|
|
989
989
|
f = d[o], i += (o ? "L" : "M") + f.x + " " + f.y;
|
|
990
990
|
i += e ? z.svg ? "z" : "x" : "";
|
|
991
991
|
}
|
|
992
992
|
return i || "M0 0";
|
|
993
993
|
}
|
|
994
|
-
var li = document.documentElement.style, Ie = "ActiveXObject" in window,
|
|
994
|
+
var li = document.documentElement.style, Ie = "ActiveXObject" in window, rr = Ie && !document.addEventListener, en = "msLaunchUri" in navigator && !("documentMode" in document), hi = Mt("webkit"), nn = Mt("android"), on = Mt("android 2") || Mt("android 3"), sr = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), ar = nn && Mt("Google") && sr < 537 && !("AudioNode" in window), ci = !!window.opera, rn = !en && Mt("chrome"), sn = Mt("gecko") && !hi && !ci && !Ie, lr = !rn && Mt("safari"), an = Mt("phantom"), ln = "OTransition" in li, hr = navigator.platform.indexOf("Win") === 0, hn = Ie && "transition" in li, ui = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !on, cn = "MozPerspective" in li, cr = !window.L_DISABLE_3D && (hn || ui || cn) && !ln && !an, _e = typeof orientation < "u" || Mt("mobile"), ur = _e && hi, dr = _e && ui, un = !window.PointerEvent && window.MSPointerEvent, dn = !!(window.PointerEvent || un), fn = "ontouchstart" in window || !!window.TouchEvent, fr = !window.L_NO_TOUCH && (fn || dn), mr = _e && ci, pr = _e && sn, _r = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, gr = (function() {
|
|
995
995
|
var t = !1;
|
|
996
996
|
try {
|
|
997
997
|
var e = Object.defineProperty({}, "passive", {
|
|
@@ -1003,12 +1003,12 @@ function js() {
|
|
|
1003
1003
|
} catch {
|
|
1004
1004
|
}
|
|
1005
1005
|
return t;
|
|
1006
|
-
})(),
|
|
1006
|
+
})(), vr = (function() {
|
|
1007
1007
|
return !!document.createElement("canvas").getContext;
|
|
1008
|
-
})(), di = !!(document.createElementNS && Qi("svg").createSVGRect),
|
|
1008
|
+
})(), di = !!(document.createElementNS && Qi("svg").createSVGRect), yr = !!di && (function() {
|
|
1009
1009
|
var t = document.createElement("div");
|
|
1010
1010
|
return t.innerHTML = "<svg/>", (t.firstChild && t.firstChild.namespaceURI) === "http://www.w3.org/2000/svg";
|
|
1011
|
-
})(),
|
|
1011
|
+
})(), br = !di && (function() {
|
|
1012
1012
|
try {
|
|
1013
1013
|
var t = document.createElement("div");
|
|
1014
1014
|
t.innerHTML = '<v:shape adj="1"/>';
|
|
@@ -1017,78 +1017,78 @@ function js() {
|
|
|
1017
1017
|
} catch {
|
|
1018
1018
|
return !1;
|
|
1019
1019
|
}
|
|
1020
|
-
})(),
|
|
1020
|
+
})(), wr = navigator.platform.indexOf("Mac") === 0, xr = navigator.platform.indexOf("Linux") === 0;
|
|
1021
1021
|
function Mt(t) {
|
|
1022
1022
|
return navigator.userAgent.toLowerCase().indexOf(t) >= 0;
|
|
1023
1023
|
}
|
|
1024
1024
|
var z = {
|
|
1025
1025
|
ie: Ie,
|
|
1026
|
-
ielt9:
|
|
1026
|
+
ielt9: rr,
|
|
1027
1027
|
edge: en,
|
|
1028
1028
|
webkit: hi,
|
|
1029
1029
|
android: nn,
|
|
1030
1030
|
android23: on,
|
|
1031
|
-
androidStock:
|
|
1031
|
+
androidStock: ar,
|
|
1032
1032
|
opera: ci,
|
|
1033
1033
|
chrome: rn,
|
|
1034
1034
|
gecko: sn,
|
|
1035
|
-
safari:
|
|
1035
|
+
safari: lr,
|
|
1036
1036
|
phantom: an,
|
|
1037
1037
|
opera12: ln,
|
|
1038
|
-
win:
|
|
1038
|
+
win: hr,
|
|
1039
1039
|
ie3d: hn,
|
|
1040
1040
|
webkit3d: ui,
|
|
1041
1041
|
gecko3d: cn,
|
|
1042
|
-
any3d:
|
|
1042
|
+
any3d: cr,
|
|
1043
1043
|
mobile: _e,
|
|
1044
|
-
mobileWebkit:
|
|
1045
|
-
mobileWebkit3d:
|
|
1044
|
+
mobileWebkit: ur,
|
|
1045
|
+
mobileWebkit3d: dr,
|
|
1046
1046
|
msPointer: un,
|
|
1047
1047
|
pointer: dn,
|
|
1048
|
-
touch:
|
|
1048
|
+
touch: fr,
|
|
1049
1049
|
touchNative: fn,
|
|
1050
|
-
mobileOpera:
|
|
1051
|
-
mobileGecko:
|
|
1052
|
-
retina:
|
|
1053
|
-
passiveEvents:
|
|
1054
|
-
canvas:
|
|
1050
|
+
mobileOpera: mr,
|
|
1051
|
+
mobileGecko: pr,
|
|
1052
|
+
retina: _r,
|
|
1053
|
+
passiveEvents: gr,
|
|
1054
|
+
canvas: vr,
|
|
1055
1055
|
svg: di,
|
|
1056
|
-
vml:
|
|
1057
|
-
inlineSvg:
|
|
1058
|
-
mac:
|
|
1059
|
-
linux:
|
|
1056
|
+
vml: br,
|
|
1057
|
+
inlineSvg: yr,
|
|
1058
|
+
mac: wr,
|
|
1059
|
+
linux: xr
|
|
1060
1060
|
}, mn = z.msPointer ? "MSPointerDown" : "pointerdown", pn = z.msPointer ? "MSPointerMove" : "pointermove", _n = z.msPointer ? "MSPointerUp" : "pointerup", gn = z.msPointer ? "MSPointerCancel" : "pointercancel", fi = {
|
|
1061
1061
|
touchstart: mn,
|
|
1062
1062
|
touchmove: pn,
|
|
1063
1063
|
touchend: _n,
|
|
1064
1064
|
touchcancel: gn
|
|
1065
1065
|
}, vn = {
|
|
1066
|
-
touchstart:
|
|
1066
|
+
touchstart: Sr,
|
|
1067
1067
|
touchmove: Re,
|
|
1068
1068
|
touchend: Re,
|
|
1069
1069
|
touchcancel: Re
|
|
1070
1070
|
}, se = {}, yn = !1;
|
|
1071
|
-
function
|
|
1072
|
-
return e === "touchstart" &&
|
|
1071
|
+
function Pr(t, e, i) {
|
|
1072
|
+
return e === "touchstart" && Cr(), vn[e] ? (i = vn[e].bind(this, i), t.addEventListener(fi[e], i, !1), i) : (console.warn("wrong event specified:", e), T);
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1074
|
+
function Lr(t, e, i) {
|
|
1075
1075
|
if (!fi[e]) {
|
|
1076
1076
|
console.warn("wrong event specified:", e);
|
|
1077
1077
|
return;
|
|
1078
1078
|
}
|
|
1079
1079
|
t.removeEventListener(fi[e], i, !1);
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function kr(t) {
|
|
1082
1082
|
se[t.pointerId] = t;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function Tr(t) {
|
|
1085
1085
|
se[t.pointerId] && (se[t.pointerId] = t);
|
|
1086
1086
|
}
|
|
1087
1087
|
function bn(t) {
|
|
1088
1088
|
delete se[t.pointerId];
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1091
|
-
yn || (document.addEventListener(mn,
|
|
1090
|
+
function Cr() {
|
|
1091
|
+
yn || (document.addEventListener(mn, kr, !0), document.addEventListener(pn, Tr, !0), document.addEventListener(_n, bn, !0), document.addEventListener(gn, bn, !0), yn = !0);
|
|
1092
1092
|
}
|
|
1093
1093
|
function Re(t, e) {
|
|
1094
1094
|
if (e.pointerType !== (e.MSPOINTER_TYPE_MOUSE || "mouse")) {
|
|
@@ -1098,33 +1098,33 @@ function js() {
|
|
|
1098
1098
|
e.changedTouches = [e], t(e);
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1101
|
+
function Sr(t, e) {
|
|
1102
1102
|
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && dt(e), Re(t, e);
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function zr(t) {
|
|
1105
1105
|
var e = {}, i, n;
|
|
1106
1106
|
for (n in t)
|
|
1107
1107
|
i = t[n], e[n] = i && i.bind ? i.bind(t) : i;
|
|
1108
1108
|
return t = e, e.type = "dblclick", e.detail = 2, e.isTrusted = !1, e._simulated = !0, e;
|
|
1109
1109
|
}
|
|
1110
|
-
var
|
|
1111
|
-
function
|
|
1110
|
+
var Mr = 200;
|
|
1111
|
+
function Er(t, e) {
|
|
1112
1112
|
t.addEventListener("dblclick", e);
|
|
1113
1113
|
var i = 0, n;
|
|
1114
|
-
function o(
|
|
1115
|
-
if (
|
|
1116
|
-
n =
|
|
1114
|
+
function o(s) {
|
|
1115
|
+
if (s.detail !== 1) {
|
|
1116
|
+
n = s.detail;
|
|
1117
1117
|
return;
|
|
1118
1118
|
}
|
|
1119
|
-
if (!(
|
|
1120
|
-
var c = kn(
|
|
1119
|
+
if (!(s.pointerType === "mouse" || s.sourceCapabilities && !s.sourceCapabilities.firesTouchEvents)) {
|
|
1120
|
+
var c = kn(s);
|
|
1121
1121
|
if (!(c.some(function(f) {
|
|
1122
1122
|
return f instanceof HTMLLabelElement && f.attributes.for;
|
|
1123
1123
|
}) && !c.some(function(f) {
|
|
1124
1124
|
return f instanceof HTMLInputElement || f instanceof HTMLSelectElement;
|
|
1125
1125
|
}))) {
|
|
1126
1126
|
var d = Date.now();
|
|
1127
|
-
d - i <=
|
|
1127
|
+
d - i <= Mr ? (n++, n === 2 && e(zr(s))) : n = 1, i = d;
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
@@ -1133,7 +1133,7 @@ function js() {
|
|
|
1133
1133
|
simDblclick: o
|
|
1134
1134
|
};
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function Or(t, e) {
|
|
1137
1137
|
t.removeEventListener("dblclick", e.dblclick), t.removeEventListener("click", e.simDblclick);
|
|
1138
1138
|
}
|
|
1139
1139
|
var mi = Ne(
|
|
@@ -1183,8 +1183,8 @@ function js() {
|
|
|
1183
1183
|
for (var i = G(e), n = 0, o = i.length; n < o; n++)
|
|
1184
1184
|
t.classList.add(i[n]);
|
|
1185
1185
|
else if (!pi(t, e)) {
|
|
1186
|
-
var
|
|
1187
|
-
_i(t, (
|
|
1186
|
+
var s = Be(t);
|
|
1187
|
+
_i(t, (s ? s + " " : "") + e);
|
|
1188
1188
|
}
|
|
1189
1189
|
}
|
|
1190
1190
|
function it(t, e) {
|
|
@@ -1196,10 +1196,10 @@ function js() {
|
|
|
1196
1196
|
function Be(t) {
|
|
1197
1197
|
return t.correspondingElement && (t = t.correspondingElement), t.className.baseVal === void 0 ? t.className : t.className.baseVal;
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1200
|
-
"opacity" in t.style ? t.style.opacity = e : "filter" in t.style &&
|
|
1199
|
+
function wt(t, e) {
|
|
1200
|
+
"opacity" in t.style ? t.style.opacity = e : "filter" in t.style && Ar(t, e);
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function Ar(t, e) {
|
|
1203
1203
|
var i = !1, n = "DXImageTransform.Microsoft.Alpha";
|
|
1204
1204
|
try {
|
|
1205
1205
|
i = t.filters.item(n);
|
|
@@ -1274,7 +1274,7 @@ function js() {
|
|
|
1274
1274
|
boundingClientRect: e
|
|
1275
1275
|
};
|
|
1276
1276
|
}
|
|
1277
|
-
var
|
|
1277
|
+
var Ir = {
|
|
1278
1278
|
__proto__: null,
|
|
1279
1279
|
TRANSFORM: mi,
|
|
1280
1280
|
TRANSITION: ge,
|
|
@@ -1291,7 +1291,7 @@ function js() {
|
|
|
1291
1291
|
removeClass: it,
|
|
1292
1292
|
setClass: _i,
|
|
1293
1293
|
getClass: Be,
|
|
1294
|
-
setOpacity:
|
|
1294
|
+
setOpacity: wt,
|
|
1295
1295
|
testProp: Ne,
|
|
1296
1296
|
setTransform: Kt,
|
|
1297
1297
|
setPosition: ot,
|
|
@@ -1315,8 +1315,8 @@ function js() {
|
|
|
1315
1315
|
Li(t, o, e[o], i);
|
|
1316
1316
|
else {
|
|
1317
1317
|
e = G(e);
|
|
1318
|
-
for (var
|
|
1319
|
-
Li(t, e[
|
|
1318
|
+
for (var s = 0, c = e.length; s < c; s++)
|
|
1319
|
+
Li(t, e[s], i, n);
|
|
1320
1320
|
}
|
|
1321
1321
|
return this;
|
|
1322
1322
|
}
|
|
@@ -1332,8 +1332,8 @@ function js() {
|
|
|
1332
1332
|
return lt(e, d) !== -1;
|
|
1333
1333
|
});
|
|
1334
1334
|
else
|
|
1335
|
-
for (var
|
|
1336
|
-
ki(t, e[
|
|
1335
|
+
for (var s = 0, c = e.length; s < c; s++)
|
|
1336
|
+
ki(t, e[s], i, n);
|
|
1337
1337
|
return this;
|
|
1338
1338
|
}
|
|
1339
1339
|
function Ln(t, e) {
|
|
@@ -1351,19 +1351,19 @@ function js() {
|
|
|
1351
1351
|
var o = e + v(i) + (n ? "_" + v(n) : "");
|
|
1352
1352
|
if (t[Et] && t[Et][o])
|
|
1353
1353
|
return this;
|
|
1354
|
-
var
|
|
1354
|
+
var s = function(d) {
|
|
1355
1355
|
return i.call(n || t, d || window.event);
|
|
1356
|
-
}, c =
|
|
1357
|
-
!z.touchNative && z.pointer && e.indexOf("touch") === 0 ?
|
|
1356
|
+
}, c = s;
|
|
1357
|
+
!z.touchNative && z.pointer && e.indexOf("touch") === 0 ? s = Pr(t, e, s) : z.touch && e === "dblclick" ? s = Er(t, s) : "addEventListener" in t ? e === "touchstart" || e === "touchmove" || e === "wheel" || e === "mousewheel" ? t.addEventListener(Pi[e] || e, s, z.passiveEvents ? { passive: !1 } : !1) : e === "mouseenter" || e === "mouseleave" ? (s = function(d) {
|
|
1358
1358
|
d = d || window.event, Ci(t, d) && c(d);
|
|
1359
|
-
}, t.addEventListener(Pi[e],
|
|
1359
|
+
}, t.addEventListener(Pi[e], s, !1)) : t.addEventListener(e, c, !1) : t.attachEvent("on" + e, s), t[Et] = t[Et] || {}, t[Et][o] = s;
|
|
1360
1360
|
}
|
|
1361
1361
|
function ki(t, e, i, n, o) {
|
|
1362
1362
|
o = o || e + v(i) + (n ? "_" + v(n) : "");
|
|
1363
|
-
var
|
|
1364
|
-
if (!
|
|
1363
|
+
var s = t[Et] && t[Et][o];
|
|
1364
|
+
if (!s)
|
|
1365
1365
|
return this;
|
|
1366
|
-
!z.touchNative && z.pointer && e.indexOf("touch") === 0 ?
|
|
1366
|
+
!z.touchNative && z.pointer && e.indexOf("touch") === 0 ? Lr(t, e, s) : z.touch && e === "dblclick" ? Or(t, s) : "removeEventListener" in t ? t.removeEventListener(Pi[e] || e, s, !1) : t.detachEvent("on" + e, s), t[Et][o] = null;
|
|
1367
1367
|
}
|
|
1368
1368
|
function Xt(t) {
|
|
1369
1369
|
return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t.cancelBubble = !0, this;
|
|
@@ -1398,11 +1398,11 @@ function js() {
|
|
|
1398
1398
|
(t.clientY - n.top) / i.y - e.clientTop
|
|
1399
1399
|
);
|
|
1400
1400
|
}
|
|
1401
|
-
var
|
|
1401
|
+
var Rr = z.linux && z.chrome ? window.devicePixelRatio : z.mac ? window.devicePixelRatio * 3 : window.devicePixelRatio > 0 ? 2 * window.devicePixelRatio : 1;
|
|
1402
1402
|
function Cn(t) {
|
|
1403
1403
|
return z.edge ? t.wheelDeltaY / 2 : (
|
|
1404
1404
|
// Don't trust window-geometry-based delta
|
|
1405
|
-
t.deltaY && t.deltaMode === 0 ? -t.deltaY /
|
|
1405
|
+
t.deltaY && t.deltaMode === 0 ? -t.deltaY / Rr : (
|
|
1406
1406
|
// Pixels
|
|
1407
1407
|
t.deltaY && t.deltaMode === 1 ? -t.deltaY * 20 : (
|
|
1408
1408
|
// Lines
|
|
@@ -1438,7 +1438,7 @@ function js() {
|
|
|
1438
1438
|
}
|
|
1439
1439
|
return i !== t;
|
|
1440
1440
|
}
|
|
1441
|
-
var
|
|
1441
|
+
var Zr = {
|
|
1442
1442
|
__proto__: null,
|
|
1443
1443
|
on: B,
|
|
1444
1444
|
off: q,
|
|
@@ -1599,7 +1599,7 @@ function js() {
|
|
|
1599
1599
|
// @method setZoomAround(offset: Point, zoom: Number, options: Zoom options): this
|
|
1600
1600
|
// Zooms the map while keeping a specified pixel on the map (relative to the top-left corner) stationary.
|
|
1601
1601
|
setZoomAround: function(t, e, i) {
|
|
1602
|
-
var n = this.getZoomScale(e), o = this.getSize().divideBy(2),
|
|
1602
|
+
var n = this.getZoomScale(e), o = this.getSize().divideBy(2), s = t instanceof A ? t : this.latLngToContainerPoint(t), c = s.subtract(o).multiplyBy(1 - 1 / n), d = this.containerPointToLatLng(o.add(c));
|
|
1603
1603
|
return this.setView(d, e, { zoom: i });
|
|
1604
1604
|
},
|
|
1605
1605
|
_getBoundsCenterZoom: function(t, e) {
|
|
@@ -1610,7 +1610,7 @@ function js() {
|
|
|
1610
1610
|
center: t.getCenter(),
|
|
1611
1611
|
zoom: o
|
|
1612
1612
|
};
|
|
1613
|
-
var
|
|
1613
|
+
var s = n.subtract(i).divideBy(2), c = this.project(t.getSouthWest(), o), d = this.project(t.getNorthEast(), o), f = this.unproject(c.add(d).divideBy(2).add(s), o);
|
|
1614
1614
|
return {
|
|
1615
1615
|
center: f,
|
|
1616
1616
|
zoom: o
|
|
@@ -1661,12 +1661,12 @@ function js() {
|
|
|
1661
1661
|
if (i = i || {}, i.animate === !1 || !z.any3d)
|
|
1662
1662
|
return this.setView(t, e, i);
|
|
1663
1663
|
this._stop();
|
|
1664
|
-
var n = this.project(this.getCenter()), o = this.project(t),
|
|
1664
|
+
var n = this.project(this.getCenter()), o = this.project(t), s = this.getSize(), c = this._zoom;
|
|
1665
1665
|
t = M(t), e = e === void 0 ? c : e;
|
|
1666
|
-
var d = Math.max(
|
|
1666
|
+
var d = Math.max(s.x, s.y), f = d * this.getZoomScale(c, e), _ = o.distanceTo(n) || 1, x = 1.42, E = x * x;
|
|
1667
1667
|
function H(rt) {
|
|
1668
|
-
var Je = rt ? -1 : 1,
|
|
1669
|
-
return
|
|
1668
|
+
var Je = rt ? -1 : 1, Ls = rt ? f : d, ks = f * f - d * d + Je * E * E * _ * _, Ts = 2 * Ls * E * _, Ni = ks / Ts, lo = Math.sqrt(Ni * Ni + 1) - Ni, Cs = lo < 1e-9 ? -18 : Math.log(lo);
|
|
1669
|
+
return Cs;
|
|
1670
1670
|
}
|
|
1671
1671
|
function pt(rt) {
|
|
1672
1672
|
return (Math.exp(rt) - Math.exp(-rt)) / 2;
|
|
@@ -1674,24 +1674,24 @@ function js() {
|
|
|
1674
1674
|
function at(rt) {
|
|
1675
1675
|
return (Math.exp(rt) + Math.exp(-rt)) / 2;
|
|
1676
1676
|
}
|
|
1677
|
-
function
|
|
1677
|
+
function Pt(rt) {
|
|
1678
1678
|
return pt(rt) / at(rt);
|
|
1679
1679
|
}
|
|
1680
1680
|
var gt = H(0);
|
|
1681
1681
|
function me(rt) {
|
|
1682
1682
|
return d * (at(gt) / at(gt + x * rt));
|
|
1683
1683
|
}
|
|
1684
|
-
function
|
|
1685
|
-
return d * (at(gt) *
|
|
1684
|
+
function bs(rt) {
|
|
1685
|
+
return d * (at(gt) * Pt(gt + x * rt) - pt(gt)) / E;
|
|
1686
1686
|
}
|
|
1687
|
-
function
|
|
1687
|
+
function ws(rt) {
|
|
1688
1688
|
return 1 - Math.pow(1 - rt, 1.5);
|
|
1689
1689
|
}
|
|
1690
|
-
var
|
|
1690
|
+
var xs = Date.now(), so = (H(1) - gt) / x, Ps = i.duration ? 1e3 * i.duration : 1e3 * so * 0.8;
|
|
1691
1691
|
function ao() {
|
|
1692
|
-
var rt = (Date.now() -
|
|
1692
|
+
var rt = (Date.now() - xs) / Ps, Je = ws(rt) * so;
|
|
1693
1693
|
rt <= 1 ? (this._flyToFrame = tt(ao, this), this._move(
|
|
1694
|
-
this.unproject(n.add(o.subtract(n).multiplyBy(
|
|
1694
|
+
this.unproject(n.add(o.subtract(n).multiplyBy(bs(Je) / _)), c),
|
|
1695
1695
|
this.getScaleZoom(d / me(Je), c),
|
|
1696
1696
|
{ flyTo: !0 }
|
|
1697
1697
|
)) : this._move(t, e)._moveEnd(!0);
|
|
@@ -1736,10 +1736,10 @@ function js() {
|
|
|
1736
1736
|
// the map will not be panned.
|
|
1737
1737
|
panInside: function(t, e) {
|
|
1738
1738
|
e = e || {};
|
|
1739
|
-
var i = y(e.paddingTopLeft || e.padding || [0, 0]), n = y(e.paddingBottomRight || e.padding || [0, 0]), o = this.project(this.getCenter()),
|
|
1740
|
-
if (!d.contains(
|
|
1739
|
+
var i = y(e.paddingTopLeft || e.padding || [0, 0]), n = y(e.paddingBottomRight || e.padding || [0, 0]), o = this.project(this.getCenter()), s = this.project(t), c = this.getPixelBounds(), d = ct([c.min.add(i), c.max.subtract(n)]), f = d.getSize();
|
|
1740
|
+
if (!d.contains(s)) {
|
|
1741
1741
|
this._enforcingBounds = !0;
|
|
1742
|
-
var _ =
|
|
1742
|
+
var _ = s.subtract(d.getCenter()), x = d.extend(s).getSize().subtract(f);
|
|
1743
1743
|
o.x += _.x < 0 ? -x.x : x.x, o.y += _.y < 0 ? -x.y : x.y, this.panTo(this.unproject(o), e), this._enforcingBounds = !1;
|
|
1744
1744
|
}
|
|
1745
1745
|
return this;
|
|
@@ -1765,8 +1765,8 @@ function js() {
|
|
|
1765
1765
|
}, t === !0 ? { animate: !0 } : t);
|
|
1766
1766
|
var e = this.getSize();
|
|
1767
1767
|
this._sizeChanged = !0, this._lastCenter = null;
|
|
1768
|
-
var i = this.getSize(), n = e.divideBy(2).round(), o = i.divideBy(2).round(),
|
|
1769
|
-
return !
|
|
1768
|
+
var i = this.getSize(), n = e.divideBy(2).round(), o = i.divideBy(2).round(), s = n.subtract(o);
|
|
1769
|
+
return !s.x && !s.y ? this : (t.animate && t.pan ? this.panBy(s) : (t.pan && this._rawPanBy(s), this.fire("move"), t.debounceMoveend ? (clearTimeout(this._sizeTimer), this._sizeTimer = setTimeout(m(this.fire, this, "moveend"), 200)) : this.fire("moveend")), this.fire("resize", {
|
|
1770
1770
|
oldSize: e,
|
|
1771
1771
|
newSize: i
|
|
1772
1772
|
}));
|
|
@@ -1820,10 +1820,10 @@ function js() {
|
|
|
1820
1820
|
},
|
|
1821
1821
|
_handleGeolocationResponse: function(t) {
|
|
1822
1822
|
if (this._container._leaflet_id) {
|
|
1823
|
-
var e = t.coords.latitude, i = t.coords.longitude, n = new I(e, i), o = n.toBounds(t.coords.accuracy * 2),
|
|
1824
|
-
if (
|
|
1823
|
+
var e = t.coords.latitude, i = t.coords.longitude, n = new I(e, i), o = n.toBounds(t.coords.accuracy * 2), s = this._locateOptions;
|
|
1824
|
+
if (s.setView) {
|
|
1825
1825
|
var c = this.getBoundsZoom(o);
|
|
1826
|
-
this.setView(n,
|
|
1826
|
+
this.setView(n, s.maxZoom ? Math.min(c, s.maxZoom) : c);
|
|
1827
1827
|
}
|
|
1828
1828
|
var d = {
|
|
1829
1829
|
latlng: n,
|
|
@@ -1906,8 +1906,8 @@ function js() {
|
|
|
1906
1906
|
// the given bounds in its entirety.
|
|
1907
1907
|
getBoundsZoom: function(t, e, i) {
|
|
1908
1908
|
t = J(t), i = y(i || [0, 0]);
|
|
1909
|
-
var n = this.getZoom() || 0, o = this.getMinZoom(),
|
|
1910
|
-
return n = this.getScaleZoom(pt, n), x && (n = Math.round(n / (x / 100)) * (x / 100), n = e ? Math.ceil(n / x) * x : Math.floor(n / x) * x), Math.max(o, Math.min(
|
|
1909
|
+
var n = this.getZoom() || 0, o = this.getMinZoom(), s = this.getMaxZoom(), c = t.getNorthWest(), d = t.getSouthEast(), f = this.getSize().subtract(i), _ = ct(this.project(d, n), this.project(c, n)).getSize(), x = z.any3d ? this.options.zoomSnap : 1, E = f.x / _.x, H = f.y / _.y, pt = e ? Math.max(E, H) : Math.min(E, H);
|
|
1910
|
+
return n = this.getScaleZoom(pt, n), x && (n = Math.round(n / (x / 100)) * (x / 100), n = e ? Math.ceil(n / x) * x : Math.floor(n / x) * x), Math.max(o, Math.min(s, n));
|
|
1911
1911
|
},
|
|
1912
1912
|
// @method getSize(): Point
|
|
1913
1913
|
// Returns the current size of the map container (in pixels).
|
|
@@ -2146,14 +2146,14 @@ function js() {
|
|
|
2146
2146
|
Math.max(Math.abs(t.x), Math.abs(t.y)) >= this.options.transform3DLimit && this._resetView(this.getCenter(), this.getZoom());
|
|
2147
2147
|
},
|
|
2148
2148
|
_findEventTargets: function(t, e) {
|
|
2149
|
-
for (var i = [], n, o = e === "mouseout" || e === "mouseover",
|
|
2150
|
-
if (n = this._targets[v(
|
|
2149
|
+
for (var i = [], n, o = e === "mouseout" || e === "mouseover", s = t.target || t.srcElement, c = !1; s; ) {
|
|
2150
|
+
if (n = this._targets[v(s)], n && (e === "click" || e === "preclick") && this._draggableMoved(n)) {
|
|
2151
2151
|
c = !0;
|
|
2152
2152
|
break;
|
|
2153
2153
|
}
|
|
2154
|
-
if (n && n.listens(e, !0) && (o && !Ci(
|
|
2154
|
+
if (n && n.listens(e, !0) && (o && !Ci(s, t) || (i.push(n), o)) || s === this._container)
|
|
2155
2155
|
break;
|
|
2156
|
-
|
|
2156
|
+
s = s.parentNode;
|
|
2157
2157
|
}
|
|
2158
2158
|
return !i.length && !c && !o && this.listens(e, !0) && (i = [this]), i;
|
|
2159
2159
|
},
|
|
@@ -2179,9 +2179,9 @@ function js() {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
var o = this._findEventTargets(t, e);
|
|
2181
2181
|
if (i) {
|
|
2182
|
-
for (var
|
|
2183
|
-
i[c].listens(e, !0) &&
|
|
2184
|
-
o =
|
|
2182
|
+
for (var s = [], c = 0; c < i.length; c++)
|
|
2183
|
+
i[c].listens(e, !0) && s.push(i[c]);
|
|
2184
|
+
o = s.concat(o);
|
|
2185
2185
|
}
|
|
2186
2186
|
if (o.length) {
|
|
2187
2187
|
e === "contextmenu" && dt(t);
|
|
@@ -2253,7 +2253,7 @@ function js() {
|
|
|
2253
2253
|
_limitCenter: function(t, e, i) {
|
|
2254
2254
|
if (!i)
|
|
2255
2255
|
return t;
|
|
2256
|
-
var n = this.project(t, e), o = this.getSize().divideBy(2),
|
|
2256
|
+
var n = this.project(t, e), o = this.getSize().divideBy(2), s = new $(n.subtract(o), n.add(o)), c = this._getBoundsOffset(s, i, e);
|
|
2257
2257
|
return Math.abs(c.x) <= 1 && Math.abs(c.y) <= 1 ? t : this.unproject(n.add(c), e);
|
|
2258
2258
|
},
|
|
2259
2259
|
// adjust offset for view to get inside bounds
|
|
@@ -2268,7 +2268,7 @@ function js() {
|
|
|
2268
2268
|
var n = ct(
|
|
2269
2269
|
this.project(e.getNorthEast(), i),
|
|
2270
2270
|
this.project(e.getSouthWest(), i)
|
|
2271
|
-
), o = n.min.subtract(t.min),
|
|
2271
|
+
), o = n.min.subtract(t.min), s = n.max.subtract(t.max), c = this._rebound(o.x, -s.x), d = this._rebound(o.y, -s.y);
|
|
2272
2272
|
return new A(c, d);
|
|
2273
2273
|
},
|
|
2274
2274
|
_rebound: function(t, e) {
|
|
@@ -2329,10 +2329,10 @@ function js() {
|
|
|
2329
2329
|
this._animatingZoom && (this._mapPane && it(this._mapPane, "leaflet-zoom-anim"), this._animatingZoom = !1, this._move(this._animateToCenter, this._animateToZoom, void 0, !0), this._tempFireZoomEvent && this.fire("zoom"), delete this._tempFireZoomEvent, this.fire("move"), this._moveEnd(!0));
|
|
2330
2330
|
}
|
|
2331
2331
|
});
|
|
2332
|
-
function
|
|
2332
|
+
function Br(t, e) {
|
|
2333
2333
|
return new j(t, e);
|
|
2334
2334
|
}
|
|
2335
|
-
var
|
|
2335
|
+
var Tt = vt.extend({
|
|
2336
2336
|
// @section
|
|
2337
2337
|
// @aka Control Options
|
|
2338
2338
|
options: {
|
|
@@ -2380,7 +2380,7 @@ function js() {
|
|
|
2380
2380
|
this._map && t && t.screenX > 0 && t.screenY > 0 && this._map.getContainer().focus();
|
|
2381
2381
|
}
|
|
2382
2382
|
}), Pe = function(t) {
|
|
2383
|
-
return new
|
|
2383
|
+
return new Tt(t);
|
|
2384
2384
|
};
|
|
2385
2385
|
j.include({
|
|
2386
2386
|
// @method addControl(control: Control): this
|
|
@@ -2395,9 +2395,9 @@ function js() {
|
|
|
2395
2395
|
},
|
|
2396
2396
|
_initControlPos: function() {
|
|
2397
2397
|
var t = this._controlCorners = {}, e = "leaflet-", i = this._controlContainer = V("div", e + "control-container", this._container);
|
|
2398
|
-
function n(o,
|
|
2399
|
-
var c = e + o + " " + e +
|
|
2400
|
-
t[o +
|
|
2398
|
+
function n(o, s) {
|
|
2399
|
+
var c = e + o + " " + e + s;
|
|
2400
|
+
t[o + s] = V("div", c, i);
|
|
2401
2401
|
}
|
|
2402
2402
|
n("top", "left"), n("top", "right"), n("bottom", "left"), n("bottom", "right");
|
|
2403
2403
|
},
|
|
@@ -2407,7 +2407,7 @@ function js() {
|
|
|
2407
2407
|
Q(this._controlContainer), delete this._controlCorners, delete this._controlContainer;
|
|
2408
2408
|
}
|
|
2409
2409
|
});
|
|
2410
|
-
var zn =
|
|
2410
|
+
var zn = Tt.extend({
|
|
2411
2411
|
// @section
|
|
2412
2412
|
// @aka Control.Layers options
|
|
2413
2413
|
options: {
|
|
@@ -2449,7 +2449,7 @@ function js() {
|
|
|
2449
2449
|
return this._container;
|
|
2450
2450
|
},
|
|
2451
2451
|
addTo: function(t) {
|
|
2452
|
-
return
|
|
2452
|
+
return Tt.prototype.addTo.call(this, t), this._expandIfNotCollapsed();
|
|
2453
2453
|
},
|
|
2454
2454
|
onRemove: function() {
|
|
2455
2455
|
this._map.off("zoomend", this._checkDisabledLayers, this);
|
|
@@ -2495,12 +2495,12 @@ function js() {
|
|
|
2495
2495
|
}, this));
|
|
2496
2496
|
var o = this._layersLink = V("a", t + "-toggle", e);
|
|
2497
2497
|
o.href = "#", o.title = "Layers", o.setAttribute("role", "button"), B(o, {
|
|
2498
|
-
keydown: function(
|
|
2499
|
-
|
|
2498
|
+
keydown: function(s) {
|
|
2499
|
+
s.keyCode === 13 && this._expandSafely();
|
|
2500
2500
|
},
|
|
2501
2501
|
// Certain screen readers intercept the key event and instead send a click event
|
|
2502
|
-
click: function(
|
|
2503
|
-
dt(
|
|
2502
|
+
click: function(s) {
|
|
2503
|
+
dt(s), this._expandSafely();
|
|
2504
2504
|
}
|
|
2505
2505
|
}, this), i || this.expand(), this._baseLayersList = V("div", t + "-base", n), this._separator = V("div", t + "-separator", n), this._overlaysList = V("div", t + "-overlays", n), e.appendChild(n);
|
|
2506
2506
|
},
|
|
@@ -2542,8 +2542,8 @@ function js() {
|
|
|
2542
2542
|
t.overlay ? (n = document.createElement("input"), n.type = "checkbox", n.className = "leaflet-control-layers-selector", n.defaultChecked = i) : n = this._createRadioElement("leaflet-base-layers_" + v(this), i), this._layerControlInputs.push(n), n.layerId = v(t.layer), B(n, "click", this._onInputClick, this);
|
|
2543
2543
|
var o = document.createElement("span");
|
|
2544
2544
|
o.innerHTML = " " + t.name;
|
|
2545
|
-
var
|
|
2546
|
-
e.appendChild(
|
|
2545
|
+
var s = document.createElement("span");
|
|
2546
|
+
e.appendChild(s), s.appendChild(n), s.appendChild(o);
|
|
2547
2547
|
var c = t.overlay ? this._overlaysList : this._baseLayersList;
|
|
2548
2548
|
return c.appendChild(e), this._checkDisabledLayers(), e;
|
|
2549
2549
|
},
|
|
@@ -2551,12 +2551,12 @@ function js() {
|
|
|
2551
2551
|
if (!this._preventClick) {
|
|
2552
2552
|
var t = this._layerControlInputs, e, i, n = [], o = [];
|
|
2553
2553
|
this._handlingClick = !0;
|
|
2554
|
-
for (var
|
|
2555
|
-
e = t[
|
|
2556
|
-
for (
|
|
2557
|
-
this._map.hasLayer(o[
|
|
2558
|
-
for (
|
|
2559
|
-
this._map.hasLayer(n[
|
|
2554
|
+
for (var s = t.length - 1; s >= 0; s--)
|
|
2555
|
+
e = t[s], i = this._getLayer(e.layerId).layer, e.checked ? n.push(i) : e.checked || o.push(i);
|
|
2556
|
+
for (s = 0; s < o.length; s++)
|
|
2557
|
+
this._map.hasLayer(o[s]) && this._map.removeLayer(o[s]);
|
|
2558
|
+
for (s = 0; s < n.length; s++)
|
|
2559
|
+
this._map.hasLayer(n[s]) || this._map.addLayer(n[s]);
|
|
2560
2560
|
this._handlingClick = !1, this._refocusOnMap();
|
|
2561
2561
|
}
|
|
2562
2562
|
},
|
|
@@ -2575,9 +2575,9 @@ function js() {
|
|
|
2575
2575
|
q(t, "click", dt), e._preventClick = !1;
|
|
2576
2576
|
});
|
|
2577
2577
|
}
|
|
2578
|
-
}),
|
|
2578
|
+
}), Nr = function(t, e, i) {
|
|
2579
2579
|
return new zn(t, e, i);
|
|
2580
|
-
}, Si =
|
|
2580
|
+
}, Si = Tt.extend({
|
|
2581
2581
|
// @section
|
|
2582
2582
|
// @aka Control.Zoom options
|
|
2583
2583
|
options: {
|
|
@@ -2627,8 +2627,8 @@ function js() {
|
|
|
2627
2627
|
!this._disabled && this._map._zoom > this._map.getMinZoom() && this._map.zoomOut(this._map.options.zoomDelta * (t.shiftKey ? 3 : 1));
|
|
2628
2628
|
},
|
|
2629
2629
|
_createButton: function(t, e, i, n, o) {
|
|
2630
|
-
var
|
|
2631
|
-
return
|
|
2630
|
+
var s = V("a", i, n);
|
|
2631
|
+
return s.innerHTML = t, s.href = "#", s.title = e, s.setAttribute("role", "button"), s.setAttribute("aria-label", e), xe(s), B(s, "click", Jt), B(s, "click", o, this), B(s, "click", this._refocusOnMap, this), s;
|
|
2632
2632
|
},
|
|
2633
2633
|
_updateDisabled: function() {
|
|
2634
2634
|
var t = this._map, e = "leaflet-disabled";
|
|
@@ -2640,9 +2640,9 @@ function js() {
|
|
|
2640
2640
|
}), j.addInitHook(function() {
|
|
2641
2641
|
this.options.zoomControl && (this.zoomControl = new Si(), this.addControl(this.zoomControl));
|
|
2642
2642
|
});
|
|
2643
|
-
var
|
|
2643
|
+
var Dr = function(t) {
|
|
2644
2644
|
return new Si(t);
|
|
2645
|
-
}, Mn =
|
|
2645
|
+
}, Mn = Tt.extend({
|
|
2646
2646
|
// @section
|
|
2647
2647
|
// @aka Control.Scale options
|
|
2648
2648
|
options: {
|
|
@@ -2694,16 +2694,16 @@ function js() {
|
|
|
2694
2694
|
var e = Math.pow(10, (Math.floor(t) + "").length - 1), i = t / e;
|
|
2695
2695
|
return i = i >= 10 ? 10 : i >= 5 ? 5 : i >= 3 ? 3 : i >= 2 ? 2 : 1, e * i;
|
|
2696
2696
|
}
|
|
2697
|
-
}),
|
|
2697
|
+
}), Fr = function(t) {
|
|
2698
2698
|
return new Mn(t);
|
|
2699
|
-
},
|
|
2699
|
+
}, Wr = '<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>', zi = Tt.extend({
|
|
2700
2700
|
// @section
|
|
2701
2701
|
// @aka Control.Attribution options
|
|
2702
2702
|
options: {
|
|
2703
2703
|
position: "bottomright",
|
|
2704
2704
|
// @option prefix: String|false = 'Leaflet'
|
|
2705
2705
|
// The HTML text shown before the attributions. Pass `false` to disable.
|
|
2706
|
-
prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (z.inlineSvg ?
|
|
2706
|
+
prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (z.inlineSvg ? Wr + " " : "") + "Leaflet</a>"
|
|
2707
2707
|
},
|
|
2708
2708
|
initialize: function(t) {
|
|
2709
2709
|
S(this, t), this._attributions = {};
|
|
@@ -2752,10 +2752,10 @@ function js() {
|
|
|
2752
2752
|
}), j.addInitHook(function() {
|
|
2753
2753
|
this.options.attributionControl && new zi().addTo(this);
|
|
2754
2754
|
});
|
|
2755
|
-
var
|
|
2755
|
+
var Hr = function(t) {
|
|
2756
2756
|
return new zi(t);
|
|
2757
2757
|
};
|
|
2758
|
-
|
|
2758
|
+
Tt.Layers = zn, Tt.Zoom = Si, Tt.Scale = Mn, Tt.Attribution = zi, Pe.layers = Nr, Pe.zoom = Dr, Pe.scale = Fr, Pe.attribution = Hr;
|
|
2759
2759
|
var Ot = vt.extend({
|
|
2760
2760
|
initialize: function(t) {
|
|
2761
2761
|
this._map = t;
|
|
@@ -2785,7 +2785,7 @@ function js() {
|
|
|
2785
2785
|
Ot.addTo = function(t, e) {
|
|
2786
2786
|
return t.addHandler(e, this), this;
|
|
2787
2787
|
};
|
|
2788
|
-
var
|
|
2788
|
+
var jr = { Events: K }, En = z.touch ? "touchstart mousedown" : "mousedown", Ht = yt.extend({
|
|
2789
2789
|
options: {
|
|
2790
2790
|
// @section
|
|
2791
2791
|
// @aka Draggable options
|
|
@@ -2851,42 +2851,42 @@ function js() {
|
|
|
2851
2851
|
}
|
|
2852
2852
|
});
|
|
2853
2853
|
function On(t, e, i) {
|
|
2854
|
-
var n, o = [1, 4, 2, 8],
|
|
2855
|
-
for (
|
|
2856
|
-
t[
|
|
2854
|
+
var n, o = [1, 4, 2, 8], s, c, d, f, _, x, E, H;
|
|
2855
|
+
for (s = 0, x = t.length; s < x; s++)
|
|
2856
|
+
t[s]._code = Qt(t[s], e);
|
|
2857
2857
|
for (d = 0; d < 4; d++) {
|
|
2858
|
-
for (E = o[d], n = [],
|
|
2859
|
-
f = t[
|
|
2858
|
+
for (E = o[d], n = [], s = 0, x = t.length, c = x - 1; s < x; c = s++)
|
|
2859
|
+
f = t[s], _ = t[c], f._code & E ? _._code & E || (H = We(_, f, E, e, i), H._code = Qt(H, e), n.push(H)) : (_._code & E && (H = We(_, f, E, e, i), H._code = Qt(H, e), n.push(H)), n.push(f));
|
|
2860
2860
|
t = n;
|
|
2861
2861
|
}
|
|
2862
2862
|
return t;
|
|
2863
2863
|
}
|
|
2864
2864
|
function An(t, e) {
|
|
2865
|
-
var i, n, o,
|
|
2865
|
+
var i, n, o, s, c, d, f, _, x;
|
|
2866
2866
|
if (!t || t.length === 0)
|
|
2867
2867
|
throw new Error("latlngs not passed");
|
|
2868
|
-
|
|
2868
|
+
xt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
2869
2869
|
var E = M([0, 0]), H = J(t), pt = H.getNorthWest().distanceTo(H.getSouthWest()) * H.getNorthEast().distanceTo(H.getNorthWest());
|
|
2870
2870
|
pt < 1700 && (E = Mi(t));
|
|
2871
|
-
var at = t.length,
|
|
2871
|
+
var at = t.length, Pt = [];
|
|
2872
2872
|
for (i = 0; i < at; i++) {
|
|
2873
2873
|
var gt = M(t[i]);
|
|
2874
|
-
|
|
2874
|
+
Pt.push(e.project(M([gt.lat - E.lat, gt.lng - E.lng])));
|
|
2875
2875
|
}
|
|
2876
2876
|
for (d = f = _ = 0, i = 0, n = at - 1; i < at; n = i++)
|
|
2877
|
-
o =
|
|
2878
|
-
d === 0 ? x =
|
|
2877
|
+
o = Pt[i], s = Pt[n], c = o.y * s.x - s.y * o.x, f += (o.x + s.x) * c, _ += (o.y + s.y) * c, d += c * 3;
|
|
2878
|
+
d === 0 ? x = Pt[0] : x = [f / d, _ / d];
|
|
2879
2879
|
var me = e.unproject(y(x));
|
|
2880
2880
|
return M([me.lat + E.lat, me.lng + E.lng]);
|
|
2881
2881
|
}
|
|
2882
2882
|
function Mi(t) {
|
|
2883
2883
|
for (var e = 0, i = 0, n = 0, o = 0; o < t.length; o++) {
|
|
2884
|
-
var
|
|
2885
|
-
e +=
|
|
2884
|
+
var s = M(t[o]);
|
|
2885
|
+
e += s.lat, i += s.lng, n++;
|
|
2886
2886
|
}
|
|
2887
2887
|
return M([e / n, i / n]);
|
|
2888
2888
|
}
|
|
2889
|
-
var
|
|
2889
|
+
var Gr = {
|
|
2890
2890
|
__proto__: null,
|
|
2891
2891
|
clipPolygon: On,
|
|
2892
2892
|
polygonCenter: An,
|
|
@@ -2896,86 +2896,86 @@ function js() {
|
|
|
2896
2896
|
if (!e || !t.length)
|
|
2897
2897
|
return t.slice();
|
|
2898
2898
|
var i = e * e;
|
|
2899
|
-
return t =
|
|
2899
|
+
return t = $r(t, i), t = Ur(t, i), t;
|
|
2900
2900
|
}
|
|
2901
2901
|
function Rn(t, e, i) {
|
|
2902
2902
|
return Math.sqrt(Le(t, e, i, !0));
|
|
2903
2903
|
}
|
|
2904
|
-
function
|
|
2904
|
+
function Vr(t, e, i) {
|
|
2905
2905
|
return Le(t, e, i);
|
|
2906
2906
|
}
|
|
2907
|
-
function
|
|
2907
|
+
function Ur(t, e) {
|
|
2908
2908
|
var i = t.length, n = typeof Uint8Array < "u" ? Uint8Array : Array, o = new n(i);
|
|
2909
2909
|
o[0] = o[i - 1] = 1, Ei(t, o, e, 0, i - 1);
|
|
2910
|
-
var
|
|
2911
|
-
for (
|
|
2912
|
-
o[
|
|
2910
|
+
var s, c = [];
|
|
2911
|
+
for (s = 0; s < i; s++)
|
|
2912
|
+
o[s] && c.push(t[s]);
|
|
2913
2913
|
return c;
|
|
2914
2914
|
}
|
|
2915
2915
|
function Ei(t, e, i, n, o) {
|
|
2916
|
-
var
|
|
2916
|
+
var s = 0, c, d, f;
|
|
2917
2917
|
for (d = n + 1; d <= o - 1; d++)
|
|
2918
|
-
f = Le(t[d], t[n], t[o], !0), f >
|
|
2919
|
-
|
|
2918
|
+
f = Le(t[d], t[n], t[o], !0), f > s && (c = d, s = f);
|
|
2919
|
+
s > i && (e[c] = 1, Ei(t, e, i, n, c), Ei(t, e, i, c, o));
|
|
2920
2920
|
}
|
|
2921
|
-
function
|
|
2922
|
-
for (var i = [t[0]], n = 1, o = 0,
|
|
2923
|
-
|
|
2924
|
-
return o <
|
|
2921
|
+
function $r(t, e) {
|
|
2922
|
+
for (var i = [t[0]], n = 1, o = 0, s = t.length; n < s; n++)
|
|
2923
|
+
qr(t[n], t[o]) > e && (i.push(t[n]), o = n);
|
|
2924
|
+
return o < s - 1 && i.push(t[s - 1]), i;
|
|
2925
2925
|
}
|
|
2926
2926
|
var Zn;
|
|
2927
2927
|
function Bn(t, e, i, n, o) {
|
|
2928
|
-
var
|
|
2928
|
+
var s = n ? Zn : Qt(t, i), c = Qt(e, i), d, f, _;
|
|
2929
2929
|
for (Zn = c; ; ) {
|
|
2930
|
-
if (!(
|
|
2930
|
+
if (!(s | c))
|
|
2931
2931
|
return [t, e];
|
|
2932
|
-
if (
|
|
2932
|
+
if (s & c)
|
|
2933
2933
|
return !1;
|
|
2934
|
-
d =
|
|
2934
|
+
d = s || c, f = We(t, e, d, i, o), _ = Qt(f, i), d === s ? (t = f, s = _) : (e = f, c = _);
|
|
2935
2935
|
}
|
|
2936
2936
|
}
|
|
2937
2937
|
function We(t, e, i, n, o) {
|
|
2938
|
-
var
|
|
2939
|
-
return i & 8 ? (_ = t.x +
|
|
2938
|
+
var s = e.x - t.x, c = e.y - t.y, d = n.min, f = n.max, _, x;
|
|
2939
|
+
return i & 8 ? (_ = t.x + s * (f.y - t.y) / c, x = f.y) : i & 4 ? (_ = t.x + s * (d.y - t.y) / c, x = d.y) : i & 2 ? (_ = f.x, x = t.y + c * (f.x - t.x) / s) : i & 1 && (_ = d.x, x = t.y + c * (d.x - t.x) / s), new A(_, x, o);
|
|
2940
2940
|
}
|
|
2941
2941
|
function Qt(t, e) {
|
|
2942
2942
|
var i = 0;
|
|
2943
2943
|
return t.x < e.min.x ? i |= 1 : t.x > e.max.x && (i |= 2), t.y < e.min.y ? i |= 4 : t.y > e.max.y && (i |= 8), i;
|
|
2944
2944
|
}
|
|
2945
|
-
function
|
|
2945
|
+
function qr(t, e) {
|
|
2946
2946
|
var i = e.x - t.x, n = e.y - t.y;
|
|
2947
2947
|
return i * i + n * n;
|
|
2948
2948
|
}
|
|
2949
2949
|
function Le(t, e, i, n) {
|
|
2950
|
-
var o = e.x,
|
|
2951
|
-
return f > 0 && (_ = ((t.x - o) * c + (t.y -
|
|
2950
|
+
var o = e.x, s = e.y, c = i.x - o, d = i.y - s, f = c * c + d * d, _;
|
|
2951
|
+
return f > 0 && (_ = ((t.x - o) * c + (t.y - s) * d) / f, _ > 1 ? (o = i.x, s = i.y) : _ > 0 && (o += c * _, s += d * _)), c = t.x - o, d = t.y - s, n ? c * c + d * d : new A(o, s);
|
|
2952
2952
|
}
|
|
2953
|
-
function
|
|
2953
|
+
function xt(t) {
|
|
2954
2954
|
return !U(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] < "u";
|
|
2955
2955
|
}
|
|
2956
2956
|
function Nn(t) {
|
|
2957
|
-
return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),
|
|
2957
|
+
return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), xt(t);
|
|
2958
2958
|
}
|
|
2959
2959
|
function Dn(t, e) {
|
|
2960
|
-
var i, n, o,
|
|
2960
|
+
var i, n, o, s, c, d, f, _;
|
|
2961
2961
|
if (!t || t.length === 0)
|
|
2962
2962
|
throw new Error("latlngs not passed");
|
|
2963
|
-
|
|
2963
|
+
xt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
2964
2964
|
var x = M([0, 0]), E = J(t), H = E.getNorthWest().distanceTo(E.getSouthWest()) * E.getNorthEast().distanceTo(E.getNorthWest());
|
|
2965
2965
|
H < 1700 && (x = Mi(t));
|
|
2966
2966
|
var pt = t.length, at = [];
|
|
2967
2967
|
for (i = 0; i < pt; i++) {
|
|
2968
|
-
var
|
|
2969
|
-
at.push(e.project(M([
|
|
2968
|
+
var Pt = M(t[i]);
|
|
2969
|
+
at.push(e.project(M([Pt.lat - x.lat, Pt.lng - x.lng])));
|
|
2970
2970
|
}
|
|
2971
2971
|
for (i = 0, n = 0; i < pt - 1; i++)
|
|
2972
2972
|
n += at[i].distanceTo(at[i + 1]) / 2;
|
|
2973
2973
|
if (n === 0)
|
|
2974
2974
|
_ = at[0];
|
|
2975
2975
|
else
|
|
2976
|
-
for (i = 0,
|
|
2977
|
-
if (c = at[i], d = at[i + 1], o = c.distanceTo(d),
|
|
2978
|
-
f = (
|
|
2976
|
+
for (i = 0, s = 0; i < pt - 1; i++)
|
|
2977
|
+
if (c = at[i], d = at[i + 1], o = c.distanceTo(d), s += o, s > n) {
|
|
2978
|
+
f = (s - n) / o, _ = [
|
|
2979
2979
|
d.x - f * (d.x - c.x),
|
|
2980
2980
|
d.y - f * (d.y - c.y)
|
|
2981
2981
|
];
|
|
@@ -2984,16 +2984,16 @@ function js() {
|
|
|
2984
2984
|
var gt = e.unproject(y(_));
|
|
2985
2985
|
return M([gt.lat + x.lat, gt.lng + x.lng]);
|
|
2986
2986
|
}
|
|
2987
|
-
var
|
|
2987
|
+
var Kr = {
|
|
2988
2988
|
__proto__: null,
|
|
2989
2989
|
simplify: In,
|
|
2990
2990
|
pointToSegmentDistance: Rn,
|
|
2991
|
-
closestPointOnSegment:
|
|
2991
|
+
closestPointOnSegment: Vr,
|
|
2992
2992
|
clipSegment: Bn,
|
|
2993
2993
|
_getEdgeIntersection: We,
|
|
2994
2994
|
_getBitCode: Qt,
|
|
2995
2995
|
_sqClosestPointOnSegment: Le,
|
|
2996
|
-
isFlat:
|
|
2996
|
+
isFlat: xt,
|
|
2997
2997
|
_flat: Nn,
|
|
2998
2998
|
polylineCenter: Dn
|
|
2999
2999
|
}, Oi = {
|
|
@@ -3009,31 +3009,31 @@ function js() {
|
|
|
3009
3009
|
R_MINOR: 6356752314245179e-9,
|
|
3010
3010
|
bounds: new $([-2003750834279e-5, -1549657073972e-5], [2003750834279e-5, 1876465623138e-5]),
|
|
3011
3011
|
project: function(t) {
|
|
3012
|
-
var e = Math.PI / 180, i = this.R, n = t.lat * e, o = this.R_MINOR / i,
|
|
3012
|
+
var e = Math.PI / 180, i = this.R, n = t.lat * e, o = this.R_MINOR / i, s = Math.sqrt(1 - o * o), c = s * Math.sin(n), d = Math.tan(Math.PI / 4 - n / 2) / Math.pow((1 - c) / (1 + c), s / 2);
|
|
3013
3013
|
return n = -i * Math.log(Math.max(d, 1e-10)), new A(t.lng * e * i, n);
|
|
3014
3014
|
},
|
|
3015
3015
|
unproject: function(t) {
|
|
3016
|
-
for (var e = 180 / Math.PI, i = this.R, n = this.R_MINOR / i, o = Math.sqrt(1 - n * n),
|
|
3017
|
-
_ = o * Math.sin(c), _ = Math.pow((1 - _) / (1 + _), o / 2), f = Math.PI / 2 - 2 * Math.atan(
|
|
3016
|
+
for (var e = 180 / Math.PI, i = this.R, n = this.R_MINOR / i, o = Math.sqrt(1 - n * n), s = Math.exp(-t.y / i), c = Math.PI / 2 - 2 * Math.atan(s), d = 0, f = 0.1, _; d < 15 && Math.abs(f) > 1e-7; d++)
|
|
3017
|
+
_ = o * Math.sin(c), _ = Math.pow((1 - _) / (1 + _), o / 2), f = Math.PI / 2 - 2 * Math.atan(s * _) - c, c += f;
|
|
3018
3018
|
return new I(c * e, t.x * e / i);
|
|
3019
3019
|
}
|
|
3020
|
-
},
|
|
3020
|
+
}, Yr = {
|
|
3021
3021
|
__proto__: null,
|
|
3022
3022
|
LonLat: Oi,
|
|
3023
3023
|
Mercator: Ai,
|
|
3024
3024
|
SphericalMercator: oe
|
|
3025
|
-
},
|
|
3025
|
+
}, Xr = u({}, kt, {
|
|
3026
3026
|
code: "EPSG:3395",
|
|
3027
3027
|
projection: Ai,
|
|
3028
3028
|
transformation: (function() {
|
|
3029
3029
|
var t = 0.5 / (Math.PI * Ai.R);
|
|
3030
3030
|
return zt(t, 0.5, -t, 0.5);
|
|
3031
3031
|
})()
|
|
3032
|
-
}), Fn = u({},
|
|
3032
|
+
}), Fn = u({}, kt, {
|
|
3033
3033
|
code: "EPSG:4326",
|
|
3034
3034
|
projection: Oi,
|
|
3035
3035
|
transformation: zt(1 / 180, 1, -1 / 180, 0.5)
|
|
3036
|
-
}),
|
|
3036
|
+
}), Jr = u({}, _t, {
|
|
3037
3037
|
projection: Oi,
|
|
3038
3038
|
transformation: zt(1, 0, -1, 0),
|
|
3039
3039
|
scale: function(t) {
|
|
@@ -3048,8 +3048,8 @@ function js() {
|
|
|
3048
3048
|
},
|
|
3049
3049
|
infinite: !0
|
|
3050
3050
|
});
|
|
3051
|
-
_t.Earth =
|
|
3052
|
-
var
|
|
3051
|
+
_t.Earth = kt, _t.EPSG3395 = Xr, _t.EPSG3857 = qt, _t.EPSG900913 = re, _t.EPSG4326 = Fn, _t.Simple = Jr;
|
|
3052
|
+
var Ct = yt.extend({
|
|
3053
3053
|
// Classes extending `L.Layer` will inherit the following options:
|
|
3054
3054
|
options: {
|
|
3055
3055
|
// @option pane: String = 'overlayPane'
|
|
@@ -3166,7 +3166,7 @@ function js() {
|
|
|
3166
3166
|
this._layersMaxZoom = e === -1 / 0 ? void 0 : e, this._layersMinZoom = t === 1 / 0 ? void 0 : t, i !== this._getZoomSpan() && this.fire("zoomlevelschange"), this.options.maxZoom === void 0 && this._layersMaxZoom && this.getZoom() > this._layersMaxZoom && this.setZoom(this._layersMaxZoom), this.options.minZoom === void 0 && this._layersMinZoom && this.getZoom() < this._layersMinZoom && this.setZoom(this._layersMinZoom);
|
|
3167
3167
|
}
|
|
3168
3168
|
});
|
|
3169
|
-
var he =
|
|
3169
|
+
var he = Ct.extend({
|
|
3170
3170
|
initialize: function(t, e) {
|
|
3171
3171
|
S(this, e), this._layers = {};
|
|
3172
3172
|
var i, n;
|
|
@@ -3252,7 +3252,7 @@ function js() {
|
|
|
3252
3252
|
getLayerId: function(t) {
|
|
3253
3253
|
return v(t);
|
|
3254
3254
|
}
|
|
3255
|
-
}),
|
|
3255
|
+
}), Qr = function(t, e) {
|
|
3256
3256
|
return new he(t, e);
|
|
3257
3257
|
}, Rt = he.extend({
|
|
3258
3258
|
addLayer: function(t) {
|
|
@@ -3286,7 +3286,7 @@ function js() {
|
|
|
3286
3286
|
}
|
|
3287
3287
|
return t;
|
|
3288
3288
|
}
|
|
3289
|
-
}),
|
|
3289
|
+
}), ts = function(t, e) {
|
|
3290
3290
|
return new Rt(t, e);
|
|
3291
3291
|
}, ce = vt.extend({
|
|
3292
3292
|
/* @section
|
|
@@ -3364,8 +3364,8 @@ function js() {
|
|
|
3364
3364
|
_setIconStyles: function(t, e) {
|
|
3365
3365
|
var i = this.options, n = i[e + "Size"];
|
|
3366
3366
|
typeof n == "number" && (n = [n, n]);
|
|
3367
|
-
var o = y(n),
|
|
3368
|
-
t.className = "leaflet-marker-" + e + " " + (i.className || ""),
|
|
3367
|
+
var o = y(n), s = y(e === "shadow" && i.shadowAnchor || i.iconAnchor || o && o.divideBy(2, !0));
|
|
3368
|
+
t.className = "leaflet-marker-" + e + " " + (i.className || ""), s && (t.style.marginLeft = -s.x + "px", t.style.marginTop = -s.y + "px"), o && (t.style.width = o.x + "px", t.style.height = o.y + "px");
|
|
3369
3369
|
},
|
|
3370
3370
|
_createImg: function(t, e) {
|
|
3371
3371
|
return e = e || document.createElement("img"), e.src = t, e;
|
|
@@ -3374,7 +3374,7 @@ function js() {
|
|
|
3374
3374
|
return z.retina && this.options[t + "RetinaUrl"] || this.options[t + "Url"];
|
|
3375
3375
|
}
|
|
3376
3376
|
});
|
|
3377
|
-
function
|
|
3377
|
+
function es(t) {
|
|
3378
3378
|
return new ce(t);
|
|
3379
3379
|
}
|
|
3380
3380
|
var ke = ce.extend({
|
|
@@ -3393,8 +3393,8 @@ function js() {
|
|
|
3393
3393
|
},
|
|
3394
3394
|
_stripUrl: function(t) {
|
|
3395
3395
|
var e = function(i, n, o) {
|
|
3396
|
-
var
|
|
3397
|
-
return
|
|
3396
|
+
var s = n.exec(i);
|
|
3397
|
+
return s && s[o];
|
|
3398
3398
|
};
|
|
3399
3399
|
return t = e(t, /^url\((['"])?(.+)\1\)$/, 2), t && e(t, /^(.*)marker-icon\.png$/, 1);
|
|
3400
3400
|
},
|
|
@@ -3430,14 +3430,14 @@ function js() {
|
|
|
3430
3430
|
return this._draggable && this._draggable._moved;
|
|
3431
3431
|
},
|
|
3432
3432
|
_adjustPan: function(t) {
|
|
3433
|
-
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, o = this._marker.options.autoPanPadding,
|
|
3433
|
+
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, o = this._marker.options.autoPanPadding, s = Yt(e._icon), c = i.getPixelBounds(), d = i.getPixelOrigin(), f = ct(
|
|
3434
3434
|
c.min._subtract(d).add(o),
|
|
3435
3435
|
c.max._subtract(d).subtract(o)
|
|
3436
3436
|
);
|
|
3437
|
-
if (!f.contains(
|
|
3437
|
+
if (!f.contains(s)) {
|
|
3438
3438
|
var _ = y(
|
|
3439
|
-
(Math.max(f.max.x,
|
|
3440
|
-
(Math.max(f.max.y,
|
|
3439
|
+
(Math.max(f.max.x, s.x) - f.max.x) / (c.max.x - f.max.x) - (Math.min(f.min.x, s.x) - f.min.x) / (c.min.x - f.min.x),
|
|
3440
|
+
(Math.max(f.max.y, s.y) - f.max.y) / (c.max.y - f.max.y) - (Math.min(f.min.y, s.y) - f.min.y) / (c.min.y - f.min.y)
|
|
3441
3441
|
).multiplyBy(n);
|
|
3442
3442
|
i.panBy(_, { animate: !1 }), this._draggable._newPos._add(_), this._draggable._startPos._add(_), ot(e._icon, this._draggable._newPos), this._onDrag(t), this._panRequest = tt(this._adjustPan.bind(this, t));
|
|
3443
3443
|
}
|
|
@@ -3455,7 +3455,7 @@ function js() {
|
|
|
3455
3455
|
_onDragEnd: function(t) {
|
|
3456
3456
|
ht(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", t);
|
|
3457
3457
|
}
|
|
3458
|
-
}), He =
|
|
3458
|
+
}), He = Ct.extend({
|
|
3459
3459
|
// @section
|
|
3460
3460
|
// @aka Marker options
|
|
3461
3461
|
options: {
|
|
@@ -3580,8 +3580,8 @@ function js() {
|
|
|
3580
3580
|
mouseover: this._bringToFront,
|
|
3581
3581
|
mouseout: this._resetZIndex
|
|
3582
3582
|
}), this.options.autoPanOnFocus && B(i, "focus", this._panOnFocus, this);
|
|
3583
|
-
var o = t.icon.createShadow(this._shadow),
|
|
3584
|
-
o !== this._shadow && (this._removeShadow(),
|
|
3583
|
+
var o = t.icon.createShadow(this._shadow), s = !1;
|
|
3584
|
+
o !== this._shadow && (this._removeShadow(), s = !0), o && (N(o, e), o.alt = ""), this._shadow = o, t.opacity < 1 && this._updateOpacity(), n && this.getPane().appendChild(this._icon), this._initInteraction(), o && s && this.getPane(t.shadowPane).appendChild(this._shadow);
|
|
3585
3585
|
},
|
|
3586
3586
|
_removeIcon: function() {
|
|
3587
3587
|
this.options.riseOnHover && this.off({
|
|
@@ -3615,7 +3615,7 @@ function js() {
|
|
|
3615
3615
|
},
|
|
3616
3616
|
_updateOpacity: function() {
|
|
3617
3617
|
var t = this.options.opacity;
|
|
3618
|
-
this._icon &&
|
|
3618
|
+
this._icon && wt(this._icon, t), this._shadow && wt(this._shadow, t);
|
|
3619
3619
|
},
|
|
3620
3620
|
_bringToFront: function() {
|
|
3621
3621
|
this._updateZIndex(this.options.riseOffset);
|
|
@@ -3640,10 +3640,10 @@ function js() {
|
|
|
3640
3640
|
return this.options.icon.options.tooltipAnchor;
|
|
3641
3641
|
}
|
|
3642
3642
|
});
|
|
3643
|
-
function
|
|
3643
|
+
function is(t, e) {
|
|
3644
3644
|
return new He(t, e);
|
|
3645
3645
|
}
|
|
3646
|
-
var jt =
|
|
3646
|
+
var jt = Ct.extend({
|
|
3647
3647
|
// @section
|
|
3648
3648
|
// @aka Path options
|
|
3649
3649
|
options: {
|
|
@@ -3787,7 +3787,7 @@ function js() {
|
|
|
3787
3787
|
return t.distanceTo(this._point) <= this._radius + this._clickTolerance();
|
|
3788
3788
|
}
|
|
3789
3789
|
});
|
|
3790
|
-
function
|
|
3790
|
+
function ns(t, e) {
|
|
3791
3791
|
return new je(t, e);
|
|
3792
3792
|
}
|
|
3793
3793
|
var Ii = je.extend({
|
|
@@ -3818,9 +3818,9 @@ function js() {
|
|
|
3818
3818
|
setStyle: jt.prototype.setStyle,
|
|
3819
3819
|
_project: function() {
|
|
3820
3820
|
var t = this._latlng.lng, e = this._latlng.lat, i = this._map, n = i.options.crs;
|
|
3821
|
-
if (n.distance ===
|
|
3822
|
-
var o = Math.PI / 180,
|
|
3823
|
-
(isNaN(x) || x === 0) && (x =
|
|
3821
|
+
if (n.distance === kt.distance) {
|
|
3822
|
+
var o = Math.PI / 180, s = this._mRadius / kt.R / o, c = i.project([e + s, t]), d = i.project([e - s, t]), f = c.add(d).divideBy(2), _ = i.unproject(f).lat, x = Math.acos((Math.cos(s * o) - Math.sin(e * o) * Math.sin(_ * o)) / (Math.cos(e * o) * Math.cos(_ * o))) / o;
|
|
3823
|
+
(isNaN(x) || x === 0) && (x = s / Math.cos(Math.PI / 180 * e)), this._point = f.subtract(i.getPixelOrigin()), this._radius = isNaN(x) ? 0 : f.x - i.project([_, t - x]).x, this._radiusY = f.y - c.y;
|
|
3824
3824
|
} else {
|
|
3825
3825
|
var E = n.unproject(n.project(this._latlng).subtract([this._mRadius, 0]));
|
|
3826
3826
|
this._point = i.latLngToLayerPoint(this._latlng), this._radius = this._point.x - i.latLngToLayerPoint(E).x;
|
|
@@ -3828,7 +3828,7 @@ function js() {
|
|
|
3828
3828
|
this._updateBounds();
|
|
3829
3829
|
}
|
|
3830
3830
|
});
|
|
3831
|
-
function
|
|
3831
|
+
function os(t, e, i) {
|
|
3832
3832
|
return new Ii(t, e, i);
|
|
3833
3833
|
}
|
|
3834
3834
|
var Zt = jt.extend({
|
|
@@ -3864,11 +3864,11 @@ function js() {
|
|
|
3864
3864
|
// @method closestLayerPoint(p: Point): Point
|
|
3865
3865
|
// Returns the point closest to `p` on the Polyline.
|
|
3866
3866
|
closestLayerPoint: function(t) {
|
|
3867
|
-
for (var e = 1 / 0, i = null, n = Le, o,
|
|
3867
|
+
for (var e = 1 / 0, i = null, n = Le, o, s, c = 0, d = this._parts.length; c < d; c++)
|
|
3868
3868
|
for (var f = this._parts[c], _ = 1, x = f.length; _ < x; _++) {
|
|
3869
|
-
o = f[_ - 1],
|
|
3870
|
-
var E = n(t, o,
|
|
3871
|
-
E < e && (e = E, i = n(t, o,
|
|
3869
|
+
o = f[_ - 1], s = f[_];
|
|
3870
|
+
var E = n(t, o, s, !0);
|
|
3871
|
+
E < e && (e = E, i = n(t, o, s));
|
|
3872
3872
|
}
|
|
3873
3873
|
return i && (i.distance = Math.sqrt(e)), i;
|
|
3874
3874
|
},
|
|
@@ -3895,11 +3895,11 @@ function js() {
|
|
|
3895
3895
|
this._bounds = new ut(), this._latlngs = this._convertLatLngs(t);
|
|
3896
3896
|
},
|
|
3897
3897
|
_defaultShape: function() {
|
|
3898
|
-
return
|
|
3898
|
+
return xt(this._latlngs) ? this._latlngs : this._latlngs[0];
|
|
3899
3899
|
},
|
|
3900
3900
|
// recursively convert latlngs input into actual LatLng instances; calculate bounds along the way
|
|
3901
3901
|
_convertLatLngs: function(t) {
|
|
3902
|
-
for (var e = [], i =
|
|
3902
|
+
for (var e = [], i = xt(t), n = 0, o = t.length; n < o; n++)
|
|
3903
3903
|
i ? (e[n] = M(t[n]), this._bounds.extend(e[n])) : e[n] = this._convertLatLngs(t[n]);
|
|
3904
3904
|
return e;
|
|
3905
3905
|
},
|
|
@@ -3916,14 +3916,14 @@ function js() {
|
|
|
3916
3916
|
},
|
|
3917
3917
|
// recursively turns latlngs into a set of rings with projected coordinates
|
|
3918
3918
|
_projectLatlngs: function(t, e, i) {
|
|
3919
|
-
var n = t[0] instanceof I, o = t.length,
|
|
3919
|
+
var n = t[0] instanceof I, o = t.length, s, c;
|
|
3920
3920
|
if (n) {
|
|
3921
|
-
for (c = [],
|
|
3922
|
-
c[
|
|
3921
|
+
for (c = [], s = 0; s < o; s++)
|
|
3922
|
+
c[s] = this._map.latLngToLayerPoint(t[s]), i.extend(c[s]);
|
|
3923
3923
|
e.push(c);
|
|
3924
3924
|
} else
|
|
3925
|
-
for (
|
|
3926
|
-
this._projectLatlngs(t[
|
|
3925
|
+
for (s = 0; s < o; s++)
|
|
3926
|
+
this._projectLatlngs(t[s], e, i);
|
|
3927
3927
|
},
|
|
3928
3928
|
// clip polyline by renderer bounds so that we have less to render for performance
|
|
3929
3929
|
_clipPoints: function() {
|
|
@@ -3933,8 +3933,8 @@ function js() {
|
|
|
3933
3933
|
this._parts = this._rings;
|
|
3934
3934
|
return;
|
|
3935
3935
|
}
|
|
3936
|
-
var e = this._parts, i, n, o,
|
|
3937
|
-
for (i = 0, o = 0,
|
|
3936
|
+
var e = this._parts, i, n, o, s, c, d, f;
|
|
3937
|
+
for (i = 0, o = 0, s = this._rings.length; i < s; i++)
|
|
3938
3938
|
for (f = this._rings[i], n = 0, c = f.length; n < c - 1; n++)
|
|
3939
3939
|
d = Bn(f[n], f[n + 1], t, n, !0), d && (e[o] = e[o] || [], e[o].push(d[0]), (d[1] !== f[n + 1] || n === c - 2) && (e[o].push(d[1]), o++));
|
|
3940
3940
|
}
|
|
@@ -3952,17 +3952,17 @@ function js() {
|
|
|
3952
3952
|
},
|
|
3953
3953
|
// Needed by the `Canvas` renderer for interactivity
|
|
3954
3954
|
_containsPoint: function(t, e) {
|
|
3955
|
-
var i, n, o,
|
|
3955
|
+
var i, n, o, s, c, d, f = this._clickTolerance();
|
|
3956
3956
|
if (!this._pxBounds || !this._pxBounds.contains(t))
|
|
3957
3957
|
return !1;
|
|
3958
|
-
for (i = 0,
|
|
3958
|
+
for (i = 0, s = this._parts.length; i < s; i++)
|
|
3959
3959
|
for (d = this._parts[i], n = 0, c = d.length, o = c - 1; n < c; o = n++)
|
|
3960
3960
|
if (!(!e && n === 0) && Rn(t, d[o], d[n]) <= f)
|
|
3961
3961
|
return !0;
|
|
3962
3962
|
return !1;
|
|
3963
3963
|
}
|
|
3964
3964
|
});
|
|
3965
|
-
function
|
|
3965
|
+
function rs(t, e) {
|
|
3966
3966
|
return new Zt(t, e);
|
|
3967
3967
|
}
|
|
3968
3968
|
Zt._flat = Nn;
|
|
@@ -3985,10 +3985,10 @@ function js() {
|
|
|
3985
3985
|
return i >= 2 && e[0] instanceof I && e[0].equals(e[i - 1]) && e.pop(), e;
|
|
3986
3986
|
},
|
|
3987
3987
|
_setLatLngs: function(t) {
|
|
3988
|
-
Zt.prototype._setLatLngs.call(this, t),
|
|
3988
|
+
Zt.prototype._setLatLngs.call(this, t), xt(this._latlngs) && (this._latlngs = [this._latlngs]);
|
|
3989
3989
|
},
|
|
3990
3990
|
_defaultShape: function() {
|
|
3991
|
-
return
|
|
3991
|
+
return xt(this._latlngs[0]) ? this._latlngs[0] : this._latlngs[0][0];
|
|
3992
3992
|
},
|
|
3993
3993
|
_clipPoints: function() {
|
|
3994
3994
|
var t = this._renderer._bounds, e = this.options.weight, i = new A(e, e);
|
|
@@ -3997,8 +3997,8 @@ function js() {
|
|
|
3997
3997
|
this._parts = this._rings;
|
|
3998
3998
|
return;
|
|
3999
3999
|
}
|
|
4000
|
-
for (var n = 0, o = this._rings.length,
|
|
4001
|
-
|
|
4000
|
+
for (var n = 0, o = this._rings.length, s; n < o; n++)
|
|
4001
|
+
s = On(this._rings[n], t, !0), s.length && this._parts.push(s);
|
|
4002
4002
|
}
|
|
4003
4003
|
},
|
|
4004
4004
|
_updatePath: function() {
|
|
@@ -4006,16 +4006,16 @@ function js() {
|
|
|
4006
4006
|
},
|
|
4007
4007
|
// Needed by the `Canvas` renderer for interactivity
|
|
4008
4008
|
_containsPoint: function(t) {
|
|
4009
|
-
var e = !1, i, n, o,
|
|
4009
|
+
var e = !1, i, n, o, s, c, d, f, _;
|
|
4010
4010
|
if (!this._pxBounds || !this._pxBounds.contains(t))
|
|
4011
4011
|
return !1;
|
|
4012
|
-
for (
|
|
4013
|
-
for (i = this._parts[
|
|
4012
|
+
for (s = 0, f = this._parts.length; s < f; s++)
|
|
4013
|
+
for (i = this._parts[s], c = 0, _ = i.length, d = _ - 1; c < _; d = c++)
|
|
4014
4014
|
n = i[c], o = i[d], n.y > t.y != o.y > t.y && t.x < (o.x - n.x) * (t.y - n.y) / (o.y - n.y) + n.x && (e = !e);
|
|
4015
4015
|
return e || Zt.prototype._containsPoint.call(this, t, !0);
|
|
4016
4016
|
}
|
|
4017
4017
|
});
|
|
4018
|
-
function
|
|
4018
|
+
function ss(t, e) {
|
|
4019
4019
|
return new ue(t, e);
|
|
4020
4020
|
}
|
|
4021
4021
|
var Bt = Rt.extend({
|
|
@@ -4080,11 +4080,11 @@ function js() {
|
|
|
4080
4080
|
o = e[i], (o.geometries || o.geometry || o.features || o.coordinates) && this.addData(o);
|
|
4081
4081
|
return this;
|
|
4082
4082
|
}
|
|
4083
|
-
var
|
|
4084
|
-
if (
|
|
4083
|
+
var s = this.options;
|
|
4084
|
+
if (s.filter && !s.filter(t))
|
|
4085
4085
|
return this;
|
|
4086
|
-
var c = Ge(t,
|
|
4087
|
-
return c ? (c.feature = $e(t), c.defaultOptions = c.options, this.resetStyle(c),
|
|
4086
|
+
var c = Ge(t, s);
|
|
4087
|
+
return c ? (c.feature = $e(t), c.defaultOptions = c.options, this.resetStyle(c), s.onEachFeature && s.onEachFeature(t, c), this.addLayer(c)) : this;
|
|
4088
4088
|
},
|
|
4089
4089
|
// @method resetStyle( <Path> layer? ): this
|
|
4090
4090
|
// Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.
|
|
@@ -4104,15 +4104,15 @@ function js() {
|
|
|
4104
4104
|
}
|
|
4105
4105
|
});
|
|
4106
4106
|
function Ge(t, e) {
|
|
4107
|
-
var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, o = [],
|
|
4107
|
+
var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, o = [], s = e && e.pointToLayer, c = e && e.coordsToLatLng || Ri, d, f, _, x;
|
|
4108
4108
|
if (!n && !i)
|
|
4109
4109
|
return null;
|
|
4110
4110
|
switch (i.type) {
|
|
4111
4111
|
case "Point":
|
|
4112
|
-
return d = c(n), Hn(
|
|
4112
|
+
return d = c(n), Hn(s, t, d, e);
|
|
4113
4113
|
case "MultiPoint":
|
|
4114
4114
|
for (_ = 0, x = n.length; _ < x; _++)
|
|
4115
|
-
d = c(n[_]), o.push(Hn(
|
|
4115
|
+
d = c(n[_]), o.push(Hn(s, t, d, e));
|
|
4116
4116
|
return new Rt(o);
|
|
4117
4117
|
case "LineString":
|
|
4118
4118
|
case "MultiLineString":
|
|
@@ -4147,7 +4147,7 @@ function js() {
|
|
|
4147
4147
|
return new I(t[1], t[0], t[2]);
|
|
4148
4148
|
}
|
|
4149
4149
|
function Ve(t, e, i) {
|
|
4150
|
-
for (var n = [], o = 0,
|
|
4150
|
+
for (var n = [], o = 0, s = t.length, c; o < s; o++)
|
|
4151
4151
|
c = e ? Ve(t[o], e - 1, i) : (i || Ri)(t[o]), n.push(c);
|
|
4152
4152
|
return n;
|
|
4153
4153
|
}
|
|
@@ -4155,8 +4155,8 @@ function js() {
|
|
|
4155
4155
|
return t = M(t), t.alt !== void 0 ? [D(t.lng, e), D(t.lat, e), D(t.alt, e)] : [D(t.lng, e), D(t.lat, e)];
|
|
4156
4156
|
}
|
|
4157
4157
|
function Ue(t, e, i, n) {
|
|
4158
|
-
for (var o = [],
|
|
4159
|
-
o.push(e ? Ue(t[
|
|
4158
|
+
for (var o = [], s = 0, c = t.length; s < c; s++)
|
|
4159
|
+
o.push(e ? Ue(t[s], xt(t[s]) ? 0 : e - 1, i, n) : Zi(t[s], n));
|
|
4160
4160
|
return !e && i && o.length > 0 && o.push(o[0].slice()), o;
|
|
4161
4161
|
}
|
|
4162
4162
|
function de(t, e) {
|
|
@@ -4179,7 +4179,7 @@ function js() {
|
|
|
4179
4179
|
};
|
|
4180
4180
|
He.include(Bi), Ii.include(Bi), je.include(Bi), Zt.include({
|
|
4181
4181
|
toGeoJSON: function(t) {
|
|
4182
|
-
var e = !
|
|
4182
|
+
var e = !xt(this._latlngs), i = Ue(this._latlngs, e ? 1 : 0, !1, t);
|
|
4183
4183
|
return de(this, {
|
|
4184
4184
|
type: (e ? "Multi" : "") + "LineString",
|
|
4185
4185
|
coordinates: i
|
|
@@ -4187,7 +4187,7 @@ function js() {
|
|
|
4187
4187
|
}
|
|
4188
4188
|
}), ue.include({
|
|
4189
4189
|
toGeoJSON: function(t) {
|
|
4190
|
-
var e = !
|
|
4190
|
+
var e = !xt(this._latlngs), i = e && !xt(this._latlngs[0]), n = Ue(this._latlngs, i ? 2 : e ? 1 : 0, !0, t);
|
|
4191
4191
|
return e || (n = [n]), de(this, {
|
|
4192
4192
|
type: (i ? "Multi" : "") + "Polygon",
|
|
4193
4193
|
coordinates: n
|
|
@@ -4213,11 +4213,11 @@ function js() {
|
|
|
4213
4213
|
var i = e === "GeometryCollection", n = [];
|
|
4214
4214
|
return this.eachLayer(function(o) {
|
|
4215
4215
|
if (o.toGeoJSON) {
|
|
4216
|
-
var
|
|
4216
|
+
var s = o.toGeoJSON(t);
|
|
4217
4217
|
if (i)
|
|
4218
|
-
n.push(
|
|
4218
|
+
n.push(s.geometry);
|
|
4219
4219
|
else {
|
|
4220
|
-
var c = $e(
|
|
4220
|
+
var c = $e(s);
|
|
4221
4221
|
c.type === "FeatureCollection" ? n.push.apply(n, c.features) : n.push(c);
|
|
4222
4222
|
}
|
|
4223
4223
|
}
|
|
@@ -4233,7 +4233,7 @@ function js() {
|
|
|
4233
4233
|
function jn(t, e) {
|
|
4234
4234
|
return new Bt(t, e);
|
|
4235
4235
|
}
|
|
4236
|
-
var
|
|
4236
|
+
var as = jn, qe = Ct.extend({
|
|
4237
4237
|
// @section
|
|
4238
4238
|
// @aka ImageOverlay options
|
|
4239
4239
|
options: {
|
|
@@ -4341,7 +4341,7 @@ function js() {
|
|
|
4341
4341
|
ot(t, e.min), t.style.width = i.x + "px", t.style.height = i.y + "px";
|
|
4342
4342
|
},
|
|
4343
4343
|
_updateOpacity: function() {
|
|
4344
|
-
|
|
4344
|
+
wt(this._image, this.options.opacity);
|
|
4345
4345
|
},
|
|
4346
4346
|
_updateZIndex: function() {
|
|
4347
4347
|
this._image && this.options.zIndex !== void 0 && this.options.zIndex !== null && (this._image.style.zIndex = this.options.zIndex);
|
|
@@ -4356,7 +4356,7 @@ function js() {
|
|
|
4356
4356
|
getCenter: function() {
|
|
4357
4357
|
return this._bounds.getCenter();
|
|
4358
4358
|
}
|
|
4359
|
-
}),
|
|
4359
|
+
}), ls = function(t, e, i) {
|
|
4360
4360
|
return new qe(t, e, i);
|
|
4361
4361
|
}, Gn = qe.extend({
|
|
4362
4362
|
// @section
|
|
@@ -4389,16 +4389,16 @@ function js() {
|
|
|
4389
4389
|
return;
|
|
4390
4390
|
}
|
|
4391
4391
|
U(this._url) || (this._url = [this._url]), !this.options.keepAspectRatio && Object.prototype.hasOwnProperty.call(e.style, "objectFit") && (e.style.objectFit = "fill"), e.autoplay = !!this.options.autoplay, e.loop = !!this.options.loop, e.muted = !!this.options.muted, e.playsInline = !!this.options.playsInline;
|
|
4392
|
-
for (var
|
|
4392
|
+
for (var s = 0; s < this._url.length; s++) {
|
|
4393
4393
|
var c = V("source");
|
|
4394
|
-
c.src = this._url[
|
|
4394
|
+
c.src = this._url[s], e.appendChild(c);
|
|
4395
4395
|
}
|
|
4396
4396
|
}
|
|
4397
4397
|
// @method getElement(): HTMLVideoElement
|
|
4398
4398
|
// Returns the instance of [`HTMLVideoElement`](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)
|
|
4399
4399
|
// used by this overlay.
|
|
4400
4400
|
});
|
|
4401
|
-
function
|
|
4401
|
+
function hs(t, e, i) {
|
|
4402
4402
|
return new Gn(t, e, i);
|
|
4403
4403
|
}
|
|
4404
4404
|
var Vn = qe.extend({
|
|
@@ -4410,10 +4410,10 @@ function js() {
|
|
|
4410
4410
|
// Returns the instance of [`SVGElement`](https://developer.mozilla.org/docs/Web/API/SVGElement)
|
|
4411
4411
|
// used by this overlay.
|
|
4412
4412
|
});
|
|
4413
|
-
function
|
|
4413
|
+
function cs(t, e, i) {
|
|
4414
4414
|
return new Vn(t, e, i);
|
|
4415
4415
|
}
|
|
4416
|
-
var At =
|
|
4416
|
+
var At = Ct.extend({
|
|
4417
4417
|
// @section
|
|
4418
4418
|
// @aka DivOverlay options
|
|
4419
4419
|
options: {
|
|
@@ -4458,10 +4458,10 @@ function js() {
|
|
|
4458
4458
|
return this._map ? this.close() : (arguments.length ? this._source = t : t = this._source, this._prepareOpen(), this.openOn(t._map)), this;
|
|
4459
4459
|
},
|
|
4460
4460
|
onAdd: function(t) {
|
|
4461
|
-
this._zoomAnimated = t._zoomAnimated, this._container || this._initLayout(), t._fadeAnimated &&
|
|
4461
|
+
this._zoomAnimated = t._zoomAnimated, this._container || this._initLayout(), t._fadeAnimated && wt(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), t._fadeAnimated && wt(this._container, 1), this.bringToFront(), this.options.interactive && (N(this._container, "leaflet-interactive"), this.addInteractiveTarget(this._container));
|
|
4462
4462
|
},
|
|
4463
4463
|
onRemove: function(t) {
|
|
4464
|
-
t._fadeAnimated ? (
|
|
4464
|
+
t._fadeAnimated ? (wt(this._container, 0), this._removeTimeout = setTimeout(m(Q, void 0, this._container), 200)) : Q(this._container), this.options.interactive && (it(this._container, "leaflet-interactive"), this.removeInteractiveTarget(this._container));
|
|
4465
4465
|
},
|
|
4466
4466
|
// @namespace DivOverlay
|
|
4467
4467
|
// @method getLatLng: LatLng
|
|
@@ -4575,7 +4575,7 @@ function js() {
|
|
|
4575
4575
|
var o = e;
|
|
4576
4576
|
return o instanceof t || (o = new t(n).setContent(e)), i && o.setLatLng(i), o;
|
|
4577
4577
|
}
|
|
4578
|
-
}),
|
|
4578
|
+
}), Ct.include({
|
|
4579
4579
|
_initOverlay: function(t, e, i, n) {
|
|
4580
4580
|
var o = i;
|
|
4581
4581
|
return o instanceof t ? (S(o, n), o._source = this) : (o = e && !n ? e : new t(n, this), o.setContent(i)), o;
|
|
@@ -4674,8 +4674,8 @@ function js() {
|
|
|
4674
4674
|
e.width = "", e.whiteSpace = "nowrap";
|
|
4675
4675
|
var i = t.offsetWidth;
|
|
4676
4676
|
i = Math.min(i, this.options.maxWidth), i = Math.max(i, this.options.minWidth), e.width = i + 1 + "px", e.whiteSpace = "", e.height = "";
|
|
4677
|
-
var n = t.offsetHeight, o = this.options.maxHeight,
|
|
4678
|
-
o && n > o ? (e.height = o + "px", N(t,
|
|
4677
|
+
var n = t.offsetHeight, o = this.options.maxHeight, s = "leaflet-popup-scrolled";
|
|
4678
|
+
o && n > o ? (e.height = o + "px", N(t, s)) : it(t, s), this._containerWidth = this._container.offsetWidth;
|
|
4679
4679
|
},
|
|
4680
4680
|
_animateZoom: function(t) {
|
|
4681
4681
|
var e = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center), i = this._getAnchor();
|
|
@@ -4689,14 +4689,14 @@ function js() {
|
|
|
4689
4689
|
}
|
|
4690
4690
|
var t = this._map, e = parseInt(ve(this._container, "marginBottom"), 10) || 0, i = this._container.offsetHeight + e, n = this._containerWidth, o = new A(this._containerLeft, -i - this._containerBottom);
|
|
4691
4691
|
o._add(Yt(this._container));
|
|
4692
|
-
var
|
|
4693
|
-
|
|
4692
|
+
var s = t.layerPointToContainerPoint(o), c = y(this.options.autoPanPadding), d = y(this.options.autoPanPaddingTopLeft || c), f = y(this.options.autoPanPaddingBottomRight || c), _ = t.getSize(), x = 0, E = 0;
|
|
4693
|
+
s.x + n + f.x > _.x && (x = s.x + n - _.x + f.x), s.x - x - d.x < 0 && (x = s.x - d.x), s.y + i + f.y > _.y && (E = s.y + i - _.y + f.y), s.y - E - d.y < 0 && (E = s.y - d.y), (x || E) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([x, E]));
|
|
4694
4694
|
}
|
|
4695
4695
|
},
|
|
4696
4696
|
_getAnchor: function() {
|
|
4697
4697
|
return y(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0]);
|
|
4698
4698
|
}
|
|
4699
|
-
}),
|
|
4699
|
+
}), us = function(t, e) {
|
|
4700
4700
|
return new Ke(t, e);
|
|
4701
4701
|
};
|
|
4702
4702
|
j.mergeOptions({
|
|
@@ -4715,7 +4715,7 @@ function js() {
|
|
|
4715
4715
|
closePopup: function(t) {
|
|
4716
4716
|
return t = arguments.length ? t : this._popup, t && t.close(), this;
|
|
4717
4717
|
}
|
|
4718
|
-
}),
|
|
4718
|
+
}), Ct.include({
|
|
4719
4719
|
// @method bindPopup(content: String|HTMLElement|Function|Popup, options?: Popup options): this
|
|
4720
4720
|
// Binds a popup to the layer with the passed `content` and sets up the
|
|
4721
4721
|
// necessary event listeners. If a `Function` is passed it will receive
|
|
@@ -4831,15 +4831,15 @@ function js() {
|
|
|
4831
4831
|
_adjustPan: function() {
|
|
4832
4832
|
},
|
|
4833
4833
|
_setPosition: function(t) {
|
|
4834
|
-
var e, i, n = this._map, o = this._container,
|
|
4835
|
-
d === "top" ? (e = f / 2, i = _) : d === "bottom" ? (e = f / 2, i = 0) : d === "center" ? (e = f / 2, i = _ / 2) : d === "right" ? (e = 0, i = _ / 2) : d === "left" ? (e = f, i = _ / 2) : c.x <
|
|
4834
|
+
var e, i, n = this._map, o = this._container, s = n.latLngToContainerPoint(n.getCenter()), c = n.layerPointToContainerPoint(t), d = this.options.direction, f = o.offsetWidth, _ = o.offsetHeight, x = y(this.options.offset), E = this._getAnchor();
|
|
4835
|
+
d === "top" ? (e = f / 2, i = _) : d === "bottom" ? (e = f / 2, i = 0) : d === "center" ? (e = f / 2, i = _ / 2) : d === "right" ? (e = 0, i = _ / 2) : d === "left" ? (e = f, i = _ / 2) : c.x < s.x ? (d = "right", e = 0, i = _ / 2) : (d = "left", e = f + (x.x + E.x) * 2, i = _ / 2), t = t.subtract(y(e, i, !0)).add(x).add(E), it(o, "leaflet-tooltip-right"), it(o, "leaflet-tooltip-left"), it(o, "leaflet-tooltip-top"), it(o, "leaflet-tooltip-bottom"), N(o, "leaflet-tooltip-" + d), ot(o, t);
|
|
4836
4836
|
},
|
|
4837
4837
|
_updatePosition: function() {
|
|
4838
4838
|
var t = this._map.latLngToLayerPoint(this._latlng);
|
|
4839
4839
|
this._setPosition(t);
|
|
4840
4840
|
},
|
|
4841
4841
|
setOpacity: function(t) {
|
|
4842
|
-
this.options.opacity = t, this._container &&
|
|
4842
|
+
this.options.opacity = t, this._container && wt(this._container, t);
|
|
4843
4843
|
},
|
|
4844
4844
|
_animateZoom: function(t) {
|
|
4845
4845
|
var e = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center);
|
|
@@ -4848,7 +4848,7 @@ function js() {
|
|
|
4848
4848
|
_getAnchor: function() {
|
|
4849
4849
|
return y(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0]);
|
|
4850
4850
|
}
|
|
4851
|
-
}),
|
|
4851
|
+
}), ds = function(t, e) {
|
|
4852
4852
|
return new Ye(t, e);
|
|
4853
4853
|
};
|
|
4854
4854
|
j.include({
|
|
@@ -4865,7 +4865,7 @@ function js() {
|
|
|
4865
4865
|
closeTooltip: function(t) {
|
|
4866
4866
|
return t.close(), this;
|
|
4867
4867
|
}
|
|
4868
|
-
}),
|
|
4868
|
+
}), Ct.include({
|
|
4869
4869
|
// @method bindTooltip(content: String|HTMLElement|Function|Tooltip, options?: Tooltip options): this
|
|
4870
4870
|
// Binds a tooltip to the layer with the passed `content` and sets up the
|
|
4871
4871
|
// necessary event listeners. If a `Function` is passed it will receive
|
|
@@ -4978,11 +4978,11 @@ function js() {
|
|
|
4978
4978
|
return null;
|
|
4979
4979
|
}
|
|
4980
4980
|
});
|
|
4981
|
-
function
|
|
4981
|
+
function fs(t) {
|
|
4982
4982
|
return new Un(t);
|
|
4983
4983
|
}
|
|
4984
4984
|
ce.Default = ke;
|
|
4985
|
-
var Te =
|
|
4985
|
+
var Te = Ct.extend({
|
|
4986
4986
|
// @section
|
|
4987
4987
|
// @aka GridLayer options
|
|
4988
4988
|
options: {
|
|
@@ -5124,19 +5124,19 @@ function js() {
|
|
|
5124
5124
|
this._container && this.options.zIndex !== void 0 && this.options.zIndex !== null && (this._container.style.zIndex = this.options.zIndex);
|
|
5125
5125
|
},
|
|
5126
5126
|
_setAutoZIndex: function(t) {
|
|
5127
|
-
for (var e = this.getPane().children, i = -t(-1 / 0, 1 / 0), n = 0, o = e.length,
|
|
5128
|
-
|
|
5127
|
+
for (var e = this.getPane().children, i = -t(-1 / 0, 1 / 0), n = 0, o = e.length, s; n < o; n++)
|
|
5128
|
+
s = e[n].style.zIndex, e[n] !== this._container && s && (i = t(i, +s));
|
|
5129
5129
|
isFinite(i) && (this.options.zIndex = i + t(-1, 1), this._updateZIndex());
|
|
5130
5130
|
},
|
|
5131
5131
|
_updateOpacity: function() {
|
|
5132
5132
|
if (this._map && !z.ielt9) {
|
|
5133
|
-
|
|
5133
|
+
wt(this._container, this.options.opacity);
|
|
5134
5134
|
var t = +/* @__PURE__ */ new Date(), e = !1, i = !1;
|
|
5135
5135
|
for (var n in this._tiles) {
|
|
5136
5136
|
var o = this._tiles[n];
|
|
5137
5137
|
if (!(!o.current || !o.loaded)) {
|
|
5138
|
-
var
|
|
5139
|
-
|
|
5138
|
+
var s = Math.min(1, (t - o.loaded) / 200);
|
|
5139
|
+
wt(o.el, s), s < 1 ? e = !0 : (o.active ? i = !0 : this._onOpaqueTile(o), o.active = !0);
|
|
5140
5140
|
}
|
|
5141
5141
|
}
|
|
5142
5142
|
i && !this._noPrune && this._pruneTiles(), e && (ht(this._fadeFrame), this._fadeFrame = tt(this._updateOpacity, this));
|
|
@@ -5190,22 +5190,22 @@ function js() {
|
|
|
5190
5190
|
this._removeAllTiles(), this._tileZoom = void 0;
|
|
5191
5191
|
},
|
|
5192
5192
|
_retainParent: function(t, e, i, n) {
|
|
5193
|
-
var o = Math.floor(t / 2),
|
|
5193
|
+
var o = Math.floor(t / 2), s = Math.floor(e / 2), c = i - 1, d = new A(+o, +s);
|
|
5194
5194
|
d.z = +c;
|
|
5195
5195
|
var f = this._tileCoordsToKey(d), _ = this._tiles[f];
|
|
5196
|
-
return _ && _.active ? (_.retain = !0, !0) : (_ && _.loaded && (_.retain = !0), c > n ? this._retainParent(o,
|
|
5196
|
+
return _ && _.active ? (_.retain = !0, !0) : (_ && _.loaded && (_.retain = !0), c > n ? this._retainParent(o, s, c, n) : !1);
|
|
5197
5197
|
},
|
|
5198
5198
|
_retainChildren: function(t, e, i, n) {
|
|
5199
5199
|
for (var o = 2 * t; o < 2 * t + 2; o++)
|
|
5200
|
-
for (var
|
|
5201
|
-
var c = new A(o,
|
|
5200
|
+
for (var s = 2 * e; s < 2 * e + 2; s++) {
|
|
5201
|
+
var c = new A(o, s);
|
|
5202
5202
|
c.z = i + 1;
|
|
5203
5203
|
var d = this._tileCoordsToKey(c), f = this._tiles[d];
|
|
5204
5204
|
if (f && f.active) {
|
|
5205
5205
|
f.retain = !0;
|
|
5206
5206
|
continue;
|
|
5207
5207
|
} else f && f.loaded && (f.retain = !0);
|
|
5208
|
-
i + 1 < n && this._retainChildren(o,
|
|
5208
|
+
i + 1 < n && this._retainChildren(o, s, i + 1, n);
|
|
5209
5209
|
}
|
|
5210
5210
|
},
|
|
5211
5211
|
_resetView: function(t) {
|
|
@@ -5222,8 +5222,8 @@ function js() {
|
|
|
5222
5222
|
_setView: function(t, e, i, n) {
|
|
5223
5223
|
var o = Math.round(e);
|
|
5224
5224
|
this.options.maxZoom !== void 0 && o > this.options.maxZoom || this.options.minZoom !== void 0 && o < this.options.minZoom ? o = void 0 : o = this._clampZoom(o);
|
|
5225
|
-
var
|
|
5226
|
-
(!n ||
|
|
5225
|
+
var s = this.options.updateWhenZooming && o !== this._tileZoom;
|
|
5226
|
+
(!n || s) && (this._tileZoom = o, this._abortLoading && this._abortLoading(), this._updateLevels(), this._resetGrid(), o !== void 0 && this._update(t), i || this._pruneTiles(), this._noPrune = !!i), this._setZoomTransforms(t, e);
|
|
5227
5227
|
},
|
|
5228
5228
|
_setZoomTransforms: function(t, e) {
|
|
5229
5229
|
for (var i in this._levels)
|
|
@@ -5247,8 +5247,8 @@ function js() {
|
|
|
5247
5247
|
!this._map || this._map._animatingZoom || this._update();
|
|
5248
5248
|
},
|
|
5249
5249
|
_getTiledPixelBounds: function(t) {
|
|
5250
|
-
var e = this._map, i = e._animatingZoom ? Math.max(e._animateToZoom, e.getZoom()) : e.getZoom(), n = e.getZoomScale(i, this._tileZoom), o = e.project(t, this._tileZoom).floor(),
|
|
5251
|
-
return new $(o.subtract(
|
|
5250
|
+
var e = this._map, i = e._animatingZoom ? Math.max(e._animateToZoom, e.getZoom()) : e.getZoom(), n = e.getZoomScale(i, this._tileZoom), o = e.project(t, this._tileZoom).floor(), s = e.getSize().divideBy(n * 2);
|
|
5251
|
+
return new $(o.subtract(s), o.add(s));
|
|
5252
5252
|
},
|
|
5253
5253
|
// Private method to load tiles in the grid's active zoom level according to map bounds
|
|
5254
5254
|
_update: function(t) {
|
|
@@ -5256,7 +5256,7 @@ function js() {
|
|
|
5256
5256
|
if (e) {
|
|
5257
5257
|
var i = this._clampZoom(e.getZoom());
|
|
5258
5258
|
if (t === void 0 && (t = e.getCenter()), this._tileZoom !== void 0) {
|
|
5259
|
-
var n = this._getTiledPixelBounds(t), o = this._pxBoundsToTileRange(n),
|
|
5259
|
+
var n = this._getTiledPixelBounds(t), o = this._pxBoundsToTileRange(n), s = o.getCenter(), c = [], d = this.options.keepBuffer, f = new $(
|
|
5260
5260
|
o.getBottomLeft().subtract([d, -d]),
|
|
5261
5261
|
o.getTopRight().add([d, -d])
|
|
5262
5262
|
);
|
|
@@ -5279,13 +5279,13 @@ function js() {
|
|
|
5279
5279
|
}
|
|
5280
5280
|
}
|
|
5281
5281
|
if (c.sort(function(gt, me) {
|
|
5282
|
-
return gt.distanceTo(
|
|
5282
|
+
return gt.distanceTo(s) - me.distanceTo(s);
|
|
5283
5283
|
}), c.length !== 0) {
|
|
5284
5284
|
this._loading || (this._loading = !0, this.fire("loading"));
|
|
5285
|
-
var
|
|
5285
|
+
var Pt = document.createDocumentFragment();
|
|
5286
5286
|
for (H = 0; H < c.length; H++)
|
|
5287
|
-
this._addTile(c[H],
|
|
5288
|
-
this._level.el.appendChild(
|
|
5287
|
+
this._addTile(c[H], Pt);
|
|
5288
|
+
this._level.el.appendChild(Pt);
|
|
5289
5289
|
}
|
|
5290
5290
|
}
|
|
5291
5291
|
}
|
|
@@ -5306,8 +5306,8 @@ function js() {
|
|
|
5306
5306
|
return this._tileCoordsToBounds(this._keyToTileCoords(t));
|
|
5307
5307
|
},
|
|
5308
5308
|
_tileCoordsToNwSe: function(t) {
|
|
5309
|
-
var e = this._map, i = this.getTileSize(), n = t.scaleBy(i), o = n.add(i),
|
|
5310
|
-
return [
|
|
5309
|
+
var e = this._map, i = this.getTileSize(), n = t.scaleBy(i), o = n.add(i), s = e.unproject(n, t.z), c = e.unproject(o, t.z);
|
|
5310
|
+
return [s, c];
|
|
5311
5311
|
},
|
|
5312
5312
|
// converts tile coordinates to its geographical bounds
|
|
5313
5313
|
_tileCoordsToBounds: function(t) {
|
|
@@ -5333,7 +5333,7 @@ function js() {
|
|
|
5333
5333
|
_initTile: function(t) {
|
|
5334
5334
|
N(t, "leaflet-tile");
|
|
5335
5335
|
var e = this.getTileSize();
|
|
5336
|
-
t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = T, t.onmousemove = T, z.ielt9 && this.options.opacity < 1 &&
|
|
5336
|
+
t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = T, t.onmousemove = T, z.ielt9 && this.options.opacity < 1 && wt(t, this.options.opacity);
|
|
5337
5337
|
},
|
|
5338
5338
|
_addTile: function(t, e) {
|
|
5339
5339
|
var i = this._getTilePos(t), n = this._tileCoordsToKey(t), o = this.createTile(this._wrapCoords(t), m(this._tileReady, this, t));
|
|
@@ -5353,7 +5353,7 @@ function js() {
|
|
|
5353
5353
|
coords: t
|
|
5354
5354
|
});
|
|
5355
5355
|
var n = this._tileCoordsToKey(t);
|
|
5356
|
-
i = this._tiles[n], i && (i.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (
|
|
5356
|
+
i = this._tiles[n], i && (i.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (wt(i.el, 0), ht(this._fadeFrame), this._fadeFrame = tt(this._updateOpacity, this)) : (i.active = !0, this._pruneTiles()), e || (N(i.el, "leaflet-tile-loaded"), this.fire("tileload", {
|
|
5357
5357
|
tile: i.el,
|
|
5358
5358
|
coords: t
|
|
5359
5359
|
})), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), z.ielt9 || !this._map._fadeAnimated ? tt(this._pruneTiles, this) : setTimeout(m(this._pruneTiles, this), 250)));
|
|
@@ -5382,7 +5382,7 @@ function js() {
|
|
|
5382
5382
|
return !0;
|
|
5383
5383
|
}
|
|
5384
5384
|
});
|
|
5385
|
-
function
|
|
5385
|
+
function ms(t) {
|
|
5386
5386
|
return new Te(t);
|
|
5387
5387
|
}
|
|
5388
5388
|
var fe = Te.extend({
|
|
@@ -5548,8 +5548,8 @@ function js() {
|
|
|
5548
5548
|
for (var n in e)
|
|
5549
5549
|
n in this.options || (i[n] = e[n]);
|
|
5550
5550
|
e = S(this, e);
|
|
5551
|
-
var o = e.detectRetina && z.retina ? 2 : 1,
|
|
5552
|
-
i.width =
|
|
5551
|
+
var o = e.detectRetina && z.retina ? 2 : 1, s = this.getTileSize();
|
|
5552
|
+
i.width = s.x * o, i.height = s.y * o, this.wmsParams = i;
|
|
5553
5553
|
},
|
|
5554
5554
|
onAdd: function(t) {
|
|
5555
5555
|
this._crs = this.options.crs || t.options.crs, this._wmsVersion = parseFloat(this.wmsParams.version);
|
|
@@ -5557,7 +5557,7 @@ function js() {
|
|
|
5557
5557
|
this.wmsParams[e] = this._crs.code, fe.prototype.onAdd.call(this, t);
|
|
5558
5558
|
},
|
|
5559
5559
|
getTileUrl: function(t) {
|
|
5560
|
-
var e = this._tileCoordsToNwSe(t), i = this._crs, n = ct(i.project(e[0]), i.project(e[1])), o = n.min,
|
|
5560
|
+
var e = this._tileCoordsToNwSe(t), i = this._crs, n = ct(i.project(e[0]), i.project(e[1])), o = n.min, s = n.max, c = (this._wmsVersion >= 1.3 && this._crs === Fn ? [o.y, o.x, s.y, s.x] : [o.x, o.y, s.x, s.y]).join(","), d = fe.prototype.getTileUrl.call(this, t);
|
|
5561
5561
|
return d + Y(this.wmsParams, d, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + c;
|
|
5562
5562
|
},
|
|
5563
5563
|
// @method setParams(params: Object, noRedraw?: Boolean): this
|
|
@@ -5566,11 +5566,11 @@ function js() {
|
|
|
5566
5566
|
return u(this.wmsParams, t), e || this.redraw(), this;
|
|
5567
5567
|
}
|
|
5568
5568
|
});
|
|
5569
|
-
function
|
|
5569
|
+
function ps(t, e) {
|
|
5570
5570
|
return new qn(t, e);
|
|
5571
5571
|
}
|
|
5572
|
-
fe.WMS = qn, $n.wms =
|
|
5573
|
-
var Nt =
|
|
5572
|
+
fe.WMS = qn, $n.wms = ps;
|
|
5573
|
+
var Nt = Ct.extend({
|
|
5574
5574
|
// @section
|
|
5575
5575
|
// @aka Renderer options
|
|
5576
5576
|
options: {
|
|
@@ -5604,8 +5604,8 @@ function js() {
|
|
|
5604
5604
|
this._updateTransform(this._map.getCenter(), this._map.getZoom());
|
|
5605
5605
|
},
|
|
5606
5606
|
_updateTransform: function(t, e) {
|
|
5607
|
-
var i = this._map.getZoomScale(e, this._zoom), n = this._map.getSize().multiplyBy(0.5 + this.options.padding), o = this._map.project(this._center, e),
|
|
5608
|
-
z.any3d ? Kt(this._container,
|
|
5607
|
+
var i = this._map.getZoomScale(e, this._zoom), n = this._map.getSize().multiplyBy(0.5 + this.options.padding), o = this._map.project(this._center, e), s = n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t, e));
|
|
5608
|
+
z.any3d ? Kt(this._container, s, i) : ot(this._container, s);
|
|
5609
5609
|
},
|
|
5610
5610
|
_reset: function() {
|
|
5611
5611
|
this._update(), this._updateTransform(this._center, this._zoom);
|
|
@@ -5735,11 +5735,11 @@ function js() {
|
|
|
5735
5735
|
},
|
|
5736
5736
|
_updatePoly: function(t, e) {
|
|
5737
5737
|
if (this._drawing) {
|
|
5738
|
-
var i, n, o,
|
|
5738
|
+
var i, n, o, s, c = t._parts, d = c.length, f = this._ctx;
|
|
5739
5739
|
if (d) {
|
|
5740
5740
|
for (f.beginPath(), i = 0; i < d; i++) {
|
|
5741
5741
|
for (n = 0, o = c[i].length; n < o; n++)
|
|
5742
|
-
|
|
5742
|
+
s = c[i][n], f[n ? "lineTo" : "moveTo"](s.x, s.y);
|
|
5743
5743
|
e && f.closePath();
|
|
5744
5744
|
}
|
|
5745
5745
|
this._fillStroke(f, t);
|
|
@@ -5821,7 +5821,7 @@ function js() {
|
|
|
5821
5821
|
return function(t) {
|
|
5822
5822
|
return document.createElement("<" + t + ' xmlns="urn:schemas-microsoft.com:vml" class="lvml">');
|
|
5823
5823
|
};
|
|
5824
|
-
})(),
|
|
5824
|
+
})(), _s = {
|
|
5825
5825
|
_initContainer: function() {
|
|
5826
5826
|
this._container = V("div", "leaflet-vml-container");
|
|
5827
5827
|
},
|
|
@@ -5893,8 +5893,8 @@ function js() {
|
|
|
5893
5893
|
this._setPath(t, tn(t._parts, e));
|
|
5894
5894
|
},
|
|
5895
5895
|
_updateCircle: function(t) {
|
|
5896
|
-
var e = t._point, i = Math.max(Math.round(t._radius), 1), n = Math.max(Math.round(t._radiusY), 1) || i, o = "a" + i + "," + n + " 0 1,0 ",
|
|
5897
|
-
this._setPath(t,
|
|
5896
|
+
var e = t._point, i = Math.max(Math.round(t._radius), 1), n = Math.max(Math.round(t._radiusY), 1) || i, o = "a" + i + "," + n + " 0 1,0 ", s = t._empty() ? "M0 0" : "M" + (e.x - i) + "," + e.y + o + i * 2 + ",0 " + o + -i * 2 + ",0 ";
|
|
5897
|
+
this._setPath(t, s);
|
|
5898
5898
|
},
|
|
5899
5899
|
_setPath: function(t, e) {
|
|
5900
5900
|
t._path.setAttribute("d", e);
|
|
@@ -5907,7 +5907,7 @@ function js() {
|
|
|
5907
5907
|
le(t._path);
|
|
5908
5908
|
}
|
|
5909
5909
|
});
|
|
5910
|
-
z.vml && Se.include(
|
|
5910
|
+
z.vml && Se.include(_s);
|
|
5911
5911
|
function Xn(t) {
|
|
5912
5912
|
return z.svg || z.vml ? new Se(t) : null;
|
|
5913
5913
|
}
|
|
@@ -5948,7 +5948,7 @@ function js() {
|
|
|
5948
5948
|
];
|
|
5949
5949
|
}
|
|
5950
5950
|
});
|
|
5951
|
-
function
|
|
5951
|
+
function gs(t, e) {
|
|
5952
5952
|
return new Jn(t, e);
|
|
5953
5953
|
}
|
|
5954
5954
|
Se.create = Xe, Se.pointsToPath = tn, Bt.geometryToLayer = Ge, Bt.coordsToLatLng = Ri, Bt.coordsToLatLngs = Ve, Bt.latLngToCoords = Zi, Bt.latLngsToCoords = Ue, Bt.getFeature = de, Bt.asFeature = $e, j.mergeOptions({
|
|
@@ -6129,7 +6129,7 @@ function js() {
|
|
|
6129
6129
|
}
|
|
6130
6130
|
},
|
|
6131
6131
|
_onPreDragWrap: function() {
|
|
6132
|
-
var t = this._worldWidth, e = Math.round(t / 2), i = this._initialWorldOffset, n = this._draggable._newPos.x, o = (n - e + i) % t + e - i,
|
|
6132
|
+
var t = this._worldWidth, e = Math.round(t / 2), i = this._initialWorldOffset, n = this._draggable._newPos.x, o = (n - e + i) % t + e - i, s = (n + e + i) % t - e - i, c = Math.abs(o + i) < Math.abs(s + i) ? o : s;
|
|
6133
6133
|
this._draggable._absPos = this._draggable._newPos.clone(), this._draggable._newPos.x = c;
|
|
6134
6134
|
},
|
|
6135
6135
|
_onDragEnd: function(t) {
|
|
@@ -6138,7 +6138,7 @@ function js() {
|
|
|
6138
6138
|
e.fire("moveend");
|
|
6139
6139
|
else {
|
|
6140
6140
|
this._prunePositions(+/* @__PURE__ */ new Date());
|
|
6141
|
-
var o = this._lastPos.subtract(this._positions[0]),
|
|
6141
|
+
var o = this._lastPos.subtract(this._positions[0]), s = (this._lastTime - this._times[0]) / 1e3, c = i.easeLinearity, d = o.multiplyBy(c / s), f = d.distanceTo([0, 0]), _ = Math.min(i.inertiaMaxSpeed, f), x = d.multiplyBy(_ / f), E = _ / (i.inertiaDeceleration * c), H = x.multiplyBy(-E / 2).round();
|
|
6142
6142
|
!H.x && !H.y ? e.fire("moveend") : (H = e._limitOffset(H, e.options.maxBounds), tt(function() {
|
|
6143
6143
|
e.panBy(H, {
|
|
6144
6144
|
duration: E,
|
|
@@ -6280,12 +6280,12 @@ function js() {
|
|
|
6280
6280
|
_performZoom: function() {
|
|
6281
6281
|
var t = this._map, e = t.getZoom(), i = this._map.options.zoomSnap || 0;
|
|
6282
6282
|
t._stop();
|
|
6283
|
-
var n = this._delta / (this._map.options.wheelPxPerZoomLevel * 4), o = 4 * Math.log(2 / (1 + Math.exp(-Math.abs(n)))) / Math.LN2,
|
|
6283
|
+
var n = this._delta / (this._map.options.wheelPxPerZoomLevel * 4), o = 4 * Math.log(2 / (1 + Math.exp(-Math.abs(n)))) / Math.LN2, s = i ? Math.ceil(o / i) * i : o, c = t._limitZoom(e + (this._delta > 0 ? s : -s)) - e;
|
|
6284
6284
|
this._delta = 0, this._startTime = null, c && (t.options.scrollWheelZoom === "center" ? t.setZoom(e + c) : t.setZoomAround(this._lastMousePos, e + c));
|
|
6285
6285
|
}
|
|
6286
6286
|
});
|
|
6287
6287
|
j.addInitHook("addHandler", "scrollWheelZoom", no);
|
|
6288
|
-
var
|
|
6288
|
+
var vs = 600;
|
|
6289
6289
|
j.mergeOptions({
|
|
6290
6290
|
// @section Touch interaction options
|
|
6291
6291
|
// @option tapHold: Boolean
|
|
@@ -6308,7 +6308,7 @@ function js() {
|
|
|
6308
6308
|
var e = t.touches[0];
|
|
6309
6309
|
this._startPos = this._newPos = new A(e.clientX, e.clientY), this._holdTimeout = setTimeout(m(function() {
|
|
6310
6310
|
this._cancel(), this._isTapValid() && (B(document, "touchend", dt), B(document, "touchend touchcancel", this._cancelClickPrevent), this._simulateEvent("contextmenu", e));
|
|
6311
|
-
}, this),
|
|
6311
|
+
}, this), vs), B(document, "touchend touchcancel contextmenu", this._cancel, this), B(document, "touchmove", this._onMove, this);
|
|
6312
6312
|
}
|
|
6313
6313
|
},
|
|
6314
6314
|
_cancelClickPrevent: function t() {
|
|
@@ -6374,10 +6374,10 @@ function js() {
|
|
|
6374
6374
|
if (this._center = this._startLatLng, o === 1)
|
|
6375
6375
|
return;
|
|
6376
6376
|
} else {
|
|
6377
|
-
var
|
|
6378
|
-
if (o === 1 &&
|
|
6377
|
+
var s = i._add(n)._divideBy(2)._subtract(this._centerPoint);
|
|
6378
|
+
if (o === 1 && s.x === 0 && s.y === 0)
|
|
6379
6379
|
return;
|
|
6380
|
-
this._center = e.unproject(e.project(this._pinchStartLatLng, this._zoom).subtract(
|
|
6380
|
+
this._center = e.unproject(e.project(this._pinchStartLatLng, this._zoom).subtract(s), this._zoom);
|
|
6381
6381
|
}
|
|
6382
6382
|
this._moved || (e._moveStart(!0, !1), this._moved = !0), ht(this._animRequest);
|
|
6383
6383
|
var c = m(e._move, e, this._center, this._zoom, { pinch: !0, round: !1 }, void 0);
|
|
@@ -6392,32 +6392,32 @@ function js() {
|
|
|
6392
6392
|
this._zooming = !1, ht(this._animRequest), q(document, "touchmove", this._onTouchMove, this), q(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom));
|
|
6393
6393
|
}
|
|
6394
6394
|
});
|
|
6395
|
-
j.addInitHook("addHandler", "touchZoom", ro), j.BoxZoom = Qn, j.DoubleClickZoom = to, j.Drag = eo, j.Keyboard = io, j.ScrollWheelZoom = no, j.TapHold = oo, j.TouchZoom = ro, a.Bounds = $, a.Browser = z, a.CRS = _t, a.Canvas = Kn, a.Circle = Ii, a.CircleMarker = je, a.Class = vt, a.Control =
|
|
6396
|
-
var
|
|
6395
|
+
j.addInitHook("addHandler", "touchZoom", ro), j.BoxZoom = Qn, j.DoubleClickZoom = to, j.Drag = eo, j.Keyboard = io, j.ScrollWheelZoom = no, j.TapHold = oo, j.TouchZoom = ro, a.Bounds = $, a.Browser = z, a.CRS = _t, a.Canvas = Kn, a.Circle = Ii, a.CircleMarker = je, a.Class = vt, a.Control = Tt, a.DivIcon = Un, a.DivOverlay = At, a.DomEvent = Zr, a.DomUtil = Ir, a.Draggable = Ht, a.Evented = yt, a.FeatureGroup = Rt, a.GeoJSON = Bt, a.GridLayer = Te, a.Handler = Ot, a.Icon = ce, a.ImageOverlay = qe, a.LatLng = I, a.LatLngBounds = ut, a.Layer = Ct, a.LayerGroup = he, a.LineUtil = Kr, a.Map = j, a.Marker = He, a.Mixin = jr, a.Path = jt, a.Point = A, a.PolyUtil = Gr, a.Polygon = ue, a.Polyline = Zt, a.Popup = Ke, a.PosAnimation = Sn, a.Projection = Yr, a.Rectangle = Jn, a.Renderer = Nt, a.SVG = Se, a.SVGOverlay = Vn, a.TileLayer = fe, a.Tooltip = Ye, a.Transformation = Wt, a.Util = Ae, a.VideoOverlay = Gn, a.bind = m, a.bounds = ct, a.canvas = Yn, a.circle = os, a.circleMarker = ns, a.control = Pe, a.divIcon = fs, a.extend = u, a.featureGroup = ts, a.geoJSON = jn, a.geoJson = as, a.gridLayer = ms, a.icon = es, a.imageOverlay = ls, a.latLng = M, a.latLngBounds = J, a.layerGroup = Qr, a.map = Br, a.marker = is, a.point = y, a.polygon = ss, a.polyline = rs, a.popup = us, a.rectangle = gs, a.setOptions = S, a.stamp = v, a.svg = Xn, a.svgOverlay = cs, a.tileLayer = $n, a.tooltip = ds, a.transformation = zt, a.version = h, a.videoOverlay = hs;
|
|
6396
|
+
var ys = window.L;
|
|
6397
6397
|
a.noConflict = function() {
|
|
6398
|
-
return window.L =
|
|
6398
|
+
return window.L = ys, this;
|
|
6399
6399
|
}, window.L = a;
|
|
6400
6400
|
}));
|
|
6401
6401
|
})(Ee, Ee.exports)), Ee.exports;
|
|
6402
6402
|
}
|
|
6403
|
-
var Vt =
|
|
6404
|
-
const So = /* @__PURE__ */
|
|
6405
|
-
function pe(
|
|
6403
|
+
var Vt = Vs();
|
|
6404
|
+
const So = /* @__PURE__ */ Ss(Vt), Us = window.React.useEffect, Di = window.React.useRef;
|
|
6405
|
+
function pe(r, l, a) {
|
|
6406
6406
|
return Object.freeze({
|
|
6407
|
-
instance:
|
|
6407
|
+
instance: r,
|
|
6408
6408
|
context: l,
|
|
6409
6409
|
container: a
|
|
6410
6410
|
});
|
|
6411
6411
|
}
|
|
6412
|
-
function ai(
|
|
6412
|
+
function ai(r, l) {
|
|
6413
6413
|
return l == null ? function(h, u) {
|
|
6414
6414
|
const p = Di(void 0);
|
|
6415
|
-
return p.current || (p.current =
|
|
6415
|
+
return p.current || (p.current = r(h, u)), p;
|
|
6416
6416
|
} : function(h, u) {
|
|
6417
6417
|
const p = Di(void 0);
|
|
6418
|
-
p.current || (p.current =
|
|
6418
|
+
p.current || (p.current = r(h, u));
|
|
6419
6419
|
const m = Di(h), { instance: b } = p.current;
|
|
6420
|
-
return
|
|
6420
|
+
return Us(function() {
|
|
6421
6421
|
m.current !== h && (l(b, h, m.current), m.current = h);
|
|
6422
6422
|
}, [
|
|
6423
6423
|
b,
|
|
@@ -6426,88 +6426,88 @@ function ai(s, l) {
|
|
|
6426
6426
|
]), p;
|
|
6427
6427
|
};
|
|
6428
6428
|
}
|
|
6429
|
-
const
|
|
6430
|
-
function zo(
|
|
6431
|
-
|
|
6432
|
-
return (l.layerContainer ?? l.map).addLayer(
|
|
6433
|
-
l.layerContainer?.removeLayer(
|
|
6429
|
+
const $s = window.React.useEffect;
|
|
6430
|
+
function zo(r, l) {
|
|
6431
|
+
$s(function() {
|
|
6432
|
+
return (l.layerContainer ?? l.map).addLayer(r.instance), function() {
|
|
6433
|
+
l.layerContainer?.removeLayer(r.instance), l.map.removeLayer(r.instance);
|
|
6434
6434
|
};
|
|
6435
6435
|
}, [
|
|
6436
6436
|
l,
|
|
6437
|
-
|
|
6437
|
+
r
|
|
6438
6438
|
]);
|
|
6439
6439
|
}
|
|
6440
|
-
function Mo(
|
|
6440
|
+
function Mo(r) {
|
|
6441
6441
|
return function(a) {
|
|
6442
|
-
const h = ri(), u =
|
|
6443
|
-
return To(h.map, a.attribution),
|
|
6442
|
+
const h = ri(), u = r(si(a, h), h);
|
|
6443
|
+
return To(h.map, a.attribution), $i(u.current, a.eventHandlers), zo(u.current, h), u;
|
|
6444
6444
|
};
|
|
6445
6445
|
}
|
|
6446
|
-
const
|
|
6447
|
-
function
|
|
6448
|
-
const a =
|
|
6449
|
-
|
|
6446
|
+
const qs = window.React.useEffect, Ks = window.React.useRef;
|
|
6447
|
+
function Ys(r, l) {
|
|
6448
|
+
const a = Ks(void 0);
|
|
6449
|
+
qs(function() {
|
|
6450
6450
|
if (l.pathOptions !== a.current) {
|
|
6451
6451
|
const u = l.pathOptions ?? {};
|
|
6452
|
-
|
|
6452
|
+
r.instance.setStyle(u), a.current = u;
|
|
6453
6453
|
}
|
|
6454
6454
|
}, [
|
|
6455
|
-
|
|
6455
|
+
r,
|
|
6456
6456
|
l
|
|
6457
6457
|
]);
|
|
6458
6458
|
}
|
|
6459
|
-
function
|
|
6459
|
+
function Xs(r) {
|
|
6460
6460
|
return function(a) {
|
|
6461
|
-
const h = ri(), u =
|
|
6462
|
-
return
|
|
6461
|
+
const h = ri(), u = r(si(a, h), h);
|
|
6462
|
+
return $i(u.current, a.eventHandlers), zo(u.current, h), Ys(u.current, a), u;
|
|
6463
6463
|
};
|
|
6464
6464
|
}
|
|
6465
|
-
function
|
|
6466
|
-
const a = ai(
|
|
6465
|
+
function Js(r, l) {
|
|
6466
|
+
const a = ai(r, l), h = Mo(a);
|
|
6467
6467
|
return Co(h);
|
|
6468
6468
|
}
|
|
6469
|
-
function
|
|
6470
|
-
const a = ai(
|
|
6471
|
-
return
|
|
6469
|
+
function Qs(r, l) {
|
|
6470
|
+
const a = ai(r), h = js(a, l);
|
|
6471
|
+
return Ds(h);
|
|
6472
6472
|
}
|
|
6473
|
-
function
|
|
6474
|
-
const a = ai(
|
|
6473
|
+
function qi(r, l) {
|
|
6474
|
+
const a = ai(r, l), h = Xs(a);
|
|
6475
6475
|
return Co(h);
|
|
6476
6476
|
}
|
|
6477
|
-
function
|
|
6478
|
-
const a = ai(
|
|
6479
|
-
return
|
|
6477
|
+
function ta(r, l) {
|
|
6478
|
+
const a = ai(r, l), h = Mo(a);
|
|
6479
|
+
return Fs(h);
|
|
6480
6480
|
}
|
|
6481
|
-
function
|
|
6481
|
+
function ea(r, l, a) {
|
|
6482
6482
|
const { opacity: h, zIndex: u } = l;
|
|
6483
|
-
h != null && h !== a.opacity &&
|
|
6483
|
+
h != null && h !== a.opacity && r.setOpacity(h), u != null && u !== a.zIndex && r.setZIndex(u);
|
|
6484
6484
|
}
|
|
6485
6485
|
window.React.useEffect;
|
|
6486
|
-
function
|
|
6486
|
+
function ia() {
|
|
6487
6487
|
return ri().map;
|
|
6488
6488
|
}
|
|
6489
|
-
const co = window.React,
|
|
6490
|
-
function
|
|
6489
|
+
const co = window.React, na = window.React.forwardRef, oa = window.React.useCallback, ra = window.React.useEffect, sa = window.React.useImperativeHandle, aa = window.React.useRef, uo = window.React.useState;
|
|
6490
|
+
function la({ bounds: r, boundsOptions: l, center: a, children: h, className: u, id: p, placeholder: m, style: b, whenReady: v, zoom: g, ...R }, T) {
|
|
6491
6491
|
const [D] = uo({
|
|
6492
6492
|
className: u,
|
|
6493
6493
|
id: p,
|
|
6494
6494
|
style: b
|
|
6495
|
-
}), [Z, G] = uo(null), S =
|
|
6496
|
-
|
|
6495
|
+
}), [Z, G] = uo(null), S = aa(void 0);
|
|
6496
|
+
sa(T, () => Z?.map ?? null, [
|
|
6497
6497
|
Z
|
|
6498
6498
|
]);
|
|
6499
|
-
const Y =
|
|
6499
|
+
const Y = oa((X) => {
|
|
6500
6500
|
if (X !== null && !S.current) {
|
|
6501
6501
|
const U = new Vt.Map(X, R);
|
|
6502
|
-
S.current = U, a != null && g != null ? U.setView(a, g) :
|
|
6502
|
+
S.current = U, a != null && g != null ? U.setView(a, g) : r != null && U.fitBounds(r, l), v != null && U.whenReady(v), G(Is(U));
|
|
6503
6503
|
}
|
|
6504
6504
|
}, []);
|
|
6505
|
-
|
|
6505
|
+
ra(() => () => {
|
|
6506
6506
|
Z?.map.remove();
|
|
6507
6507
|
}, [
|
|
6508
6508
|
Z
|
|
6509
6509
|
]);
|
|
6510
|
-
const ft = Z ? /* @__PURE__ */ co.createElement(
|
|
6510
|
+
const ft = Z ? /* @__PURE__ */ co.createElement(Gi, {
|
|
6511
6511
|
value: Z
|
|
6512
6512
|
}, h) : m ?? null;
|
|
6513
6513
|
return /* @__PURE__ */ co.createElement("div", {
|
|
@@ -6515,32 +6515,32 @@ function sa({ bounds: s, boundsOptions: l, center: a, children: h, className: u,
|
|
|
6515
6515
|
ref: Y
|
|
6516
6516
|
}, ft);
|
|
6517
6517
|
}
|
|
6518
|
-
const
|
|
6518
|
+
const ha = /* @__PURE__ */ na(la), ca = Js(function({ position: l, ...a }, h) {
|
|
6519
6519
|
const u = new Vt.Marker(l, a);
|
|
6520
6520
|
return pe(u, oi(h, {
|
|
6521
6521
|
overlayContainer: u
|
|
6522
6522
|
}));
|
|
6523
6523
|
}, function(l, a, h) {
|
|
6524
6524
|
a.position !== h.position && l.setLatLng(a.position), a.icon != null && a.icon !== h.icon && l.setIcon(a.icon), a.zIndexOffset != null && a.zIndexOffset !== h.zIndexOffset && l.setZIndexOffset(a.zIndexOffset), a.opacity != null && a.opacity !== h.opacity && l.setOpacity(a.opacity), l.dragging != null && a.draggable !== h.draggable && (a.draggable === !0 ? l.dragging.enable() : l.dragging.disable());
|
|
6525
|
-
}),
|
|
6525
|
+
}), ua = qi(function({ positions: l, ...a }, h) {
|
|
6526
6526
|
const u = new Vt.Polygon(l, a);
|
|
6527
6527
|
return pe(u, oi(h, {
|
|
6528
6528
|
overlayContainer: u
|
|
6529
6529
|
}));
|
|
6530
6530
|
}, function(l, a, h) {
|
|
6531
6531
|
a.positions !== h.positions && l.setLatLngs(a.positions);
|
|
6532
|
-
}), fo =
|
|
6532
|
+
}), fo = qi(function({ positions: l, ...a }, h) {
|
|
6533
6533
|
const u = new Vt.Polyline(l, a);
|
|
6534
6534
|
return pe(u, oi(h, {
|
|
6535
6535
|
overlayContainer: u
|
|
6536
6536
|
}));
|
|
6537
6537
|
}, function(l, a, h) {
|
|
6538
6538
|
a.positions !== h.positions && l.setLatLngs(a.positions);
|
|
6539
|
-
}),
|
|
6539
|
+
}), da = window.React.useEffect, Fi = Qs(function(l, a) {
|
|
6540
6540
|
const h = new Vt.Popup(l, a.overlayContainer);
|
|
6541
6541
|
return pe(h, a);
|
|
6542
6542
|
}, function(l, a, { position: h }, u) {
|
|
6543
|
-
|
|
6543
|
+
da(function() {
|
|
6544
6544
|
const { instance: m } = l;
|
|
6545
6545
|
function b(g) {
|
|
6546
6546
|
g.popup === m && (m.update(), u(!0));
|
|
@@ -6563,33 +6563,33 @@ const aa = /* @__PURE__ */ ea(sa), la = Ys(function({ position: l, ...a }, h) {
|
|
|
6563
6563
|
u,
|
|
6564
6564
|
h
|
|
6565
6565
|
]);
|
|
6566
|
-
}), mo =
|
|
6566
|
+
}), mo = qi(function({ bounds: l, ...a }, h) {
|
|
6567
6567
|
const u = new Vt.Rectangle(l, a);
|
|
6568
6568
|
return pe(u, oi(h, {
|
|
6569
6569
|
overlayContainer: u
|
|
6570
6570
|
}));
|
|
6571
6571
|
}, function(l, a, h) {
|
|
6572
6572
|
a.bounds !== h.bounds && l.setBounds(a.bounds);
|
|
6573
|
-
}),
|
|
6573
|
+
}), fa = ta(function({ url: l, ...a }, h) {
|
|
6574
6574
|
const u = new Vt.TileLayer(l, si(a, h));
|
|
6575
6575
|
return pe(u, h);
|
|
6576
6576
|
}, function(l, a, h) {
|
|
6577
|
-
|
|
6577
|
+
ea(l, a, h);
|
|
6578
6578
|
const { url: u } = a;
|
|
6579
6579
|
u != null && u !== h.url && l.setUrl(u);
|
|
6580
6580
|
});
|
|
6581
|
-
var
|
|
6582
|
-
const
|
|
6583
|
-
function Hi(
|
|
6584
|
-
if (typeof
|
|
6585
|
-
return
|
|
6586
|
-
|
|
6581
|
+
var ma = Object.defineProperty, Ki = (r, l) => ma(r, "name", { value: l, configurable: !0 });
|
|
6582
|
+
const pa = window.React;
|
|
6583
|
+
function Hi(r, l) {
|
|
6584
|
+
if (typeof r == "function")
|
|
6585
|
+
return r(l);
|
|
6586
|
+
r != null && (r.current = l);
|
|
6587
6587
|
}
|
|
6588
|
-
|
|
6589
|
-
function Eo(...
|
|
6588
|
+
Ki(Hi, "setRef");
|
|
6589
|
+
function Eo(...r) {
|
|
6590
6590
|
return (l) => {
|
|
6591
6591
|
let a = !1;
|
|
6592
|
-
const h =
|
|
6592
|
+
const h = r.map((u) => {
|
|
6593
6593
|
const p = Hi(u, l);
|
|
6594
6594
|
return !a && typeof p == "function" && (a = !0), p;
|
|
6595
6595
|
});
|
|
@@ -6597,113 +6597,125 @@ function Eo(...s) {
|
|
|
6597
6597
|
return () => {
|
|
6598
6598
|
for (let u = 0; u < h.length; u++) {
|
|
6599
6599
|
const p = h[u];
|
|
6600
|
-
typeof p == "function" ? p() : Hi(
|
|
6600
|
+
typeof p == "function" ? p() : Hi(r[u], null);
|
|
6601
6601
|
}
|
|
6602
6602
|
};
|
|
6603
6603
|
};
|
|
6604
6604
|
}
|
|
6605
|
-
|
|
6606
|
-
function Oo(...
|
|
6607
|
-
return
|
|
6605
|
+
Ki(Eo, "composeRefs");
|
|
6606
|
+
function Oo(...r) {
|
|
6607
|
+
return pa.useCallback(Eo(...r), r);
|
|
6608
6608
|
}
|
|
6609
|
-
|
|
6610
|
-
var
|
|
6611
|
-
const
|
|
6609
|
+
Ki(Oo, "useComposedRefs");
|
|
6610
|
+
var _a = Object.defineProperty, bt = (r, l) => _a(r, "name", { value: l, configurable: !0 });
|
|
6611
|
+
const Lt = window.React;
|
|
6612
6612
|
// @__NO_SIDE_EFFECTS__
|
|
6613
|
-
function Ao(
|
|
6614
|
-
const l =
|
|
6613
|
+
function Ao(r) {
|
|
6614
|
+
const l = Lt.forwardRef((a, h) => {
|
|
6615
6615
|
let { children: u, ...p } = a, m = null, b = !1;
|
|
6616
6616
|
const v = [];
|
|
6617
|
-
|
|
6617
|
+
u = Do(u), Lt.Children.forEach(u, (D) => {
|
|
6618
6618
|
if (Bo(D)) {
|
|
6619
6619
|
b = !0;
|
|
6620
6620
|
const Z = D;
|
|
6621
6621
|
let G = "child" in Z.props ? Z.props.child : Z.props.children;
|
|
6622
|
-
|
|
6622
|
+
for (; Yi(G) && typeof ii == "function"; )
|
|
6623
|
+
G = ii(G._payload);
|
|
6624
|
+
m = ya(Z, G), v.push(m?.props?.children);
|
|
6623
6625
|
} else
|
|
6624
6626
|
v.push(D);
|
|
6625
|
-
}), m ? m =
|
|
6627
|
+
}), m ? m = Lt.cloneElement(m, void 0, v) : (
|
|
6626
6628
|
// A `Slottable` was found but it didn't resolve to a single element (e.g.
|
|
6627
6629
|
// it wrapped multiple elements, text, or a render-prop `child` that
|
|
6628
6630
|
// wasn't an element). Don't fall back to treating the `Slottable` wrapper
|
|
6629
6631
|
// itself as the slot target — throw a descriptive error below instead.
|
|
6630
|
-
!b &&
|
|
6632
|
+
!b && Lt.Children.count(u) === 1 && Lt.isValidElement(u) && (m = u)
|
|
6631
6633
|
);
|
|
6632
6634
|
const g = m ? Zo(m) : void 0, R = Oo(h, g);
|
|
6633
6635
|
if (!m) {
|
|
6634
6636
|
if (u || u === 0)
|
|
6635
6637
|
throw new Error(
|
|
6636
|
-
b ?
|
|
6638
|
+
b ? xa(r) : wa(r)
|
|
6637
6639
|
);
|
|
6638
6640
|
return u;
|
|
6639
6641
|
}
|
|
6640
6642
|
const T = Ro(p, m.props ?? {});
|
|
6641
|
-
return m.type !==
|
|
6643
|
+
return m.type !== Lt.Fragment && (T.ref = h ? R : g), Lt.cloneElement(m, T);
|
|
6642
6644
|
});
|
|
6643
|
-
return l.displayName = `${
|
|
6645
|
+
return l.displayName = `${r}.Slot`, l;
|
|
6644
6646
|
}
|
|
6645
|
-
|
|
6646
|
-
var
|
|
6647
|
+
bt(Ao, "createSlot");
|
|
6648
|
+
var ga = /* @__PURE__ */ Ao("Slot"), Io = /* @__PURE__ */ Symbol.for("radix.slottable");
|
|
6647
6649
|
// @__NO_SIDE_EFFECTS__
|
|
6648
|
-
function
|
|
6649
|
-
const l = /* @__PURE__ */
|
|
6650
|
-
return l.displayName = `${
|
|
6650
|
+
function va(r) {
|
|
6651
|
+
const l = /* @__PURE__ */ bt((a) => "child" in a ? a.children(a.child) : a.children, "Slottable");
|
|
6652
|
+
return l.displayName = `${r}.Slottable`, l.__radixId = Io, l;
|
|
6651
6653
|
}
|
|
6652
|
-
|
|
6653
|
-
var
|
|
6654
|
-
|
|
6655
|
-
const a = s.props.child;
|
|
6656
|
-
return Pt.isValidElement(a) ? Pt.cloneElement(a, void 0, s.props.children(a.props.children)) : null;
|
|
6657
|
-
}
|
|
6658
|
-
return Pt.isValidElement(l) ? l : null;
|
|
6659
|
-
}, "getSlottableElementFromSlottable");
|
|
6660
|
-
function Ro(s, l) {
|
|
6654
|
+
bt(va, "createSlottable");
|
|
6655
|
+
var ya = /* @__PURE__ */ bt((r, l) => "child" in r.props ? Lt.isValidElement(l) ? Lt.cloneElement(l, void 0, r.props.children(l.props.children)) : null : Lt.isValidElement(l) ? l : null, "getSlottableElementFromSlottable");
|
|
6656
|
+
function Ro(r, l) {
|
|
6661
6657
|
const a = { ...l };
|
|
6662
6658
|
for (const h in l) {
|
|
6663
|
-
const u =
|
|
6659
|
+
const u = r[h], p = l[h];
|
|
6664
6660
|
/^on[A-Z]/.test(h) ? u && p ? a[h] = (...b) => {
|
|
6665
6661
|
const v = p(...b);
|
|
6666
6662
|
return u(...b), v;
|
|
6667
|
-
} : u && (a[h] = u) : h === "style" ? a[h] = { ...u, ...p } : h === "className"
|
|
6663
|
+
} : u && (a[h] = u) : h === "style" ? a[h] = { ...u, ...p } : h === "className" ? a[h] = [u, p].filter(Boolean).join(" ") : h === "aria-describedby" && (a[h] = Fo(p, u));
|
|
6668
6664
|
}
|
|
6669
|
-
return { ...
|
|
6665
|
+
return { ...r, ...a };
|
|
6670
6666
|
}
|
|
6671
|
-
|
|
6672
|
-
function Zo(
|
|
6673
|
-
let l = Object.getOwnPropertyDescriptor(
|
|
6674
|
-
return a ?
|
|
6667
|
+
bt(Ro, "mergeProps");
|
|
6668
|
+
function Zo(r) {
|
|
6669
|
+
let l = Object.getOwnPropertyDescriptor(r.props, "ref")?.get, a = l && "isReactWarning" in l && l.isReactWarning;
|
|
6670
|
+
return a ? r.ref : (l = Object.getOwnPropertyDescriptor(r, "ref")?.get, a = l && "isReactWarning" in l && l.isReactWarning, a ? r.props.ref : r.props.ref || r.ref);
|
|
6675
6671
|
}
|
|
6676
|
-
|
|
6677
|
-
function Bo(
|
|
6678
|
-
return
|
|
6672
|
+
bt(Zo, "getElementRef");
|
|
6673
|
+
function Bo(r) {
|
|
6674
|
+
return Lt.isValidElement(r) && typeof r.type == "function" && "__radixId" in r.type && r.type.__radixId === Io;
|
|
6679
6675
|
}
|
|
6680
|
-
|
|
6681
|
-
var
|
|
6682
|
-
function
|
|
6683
|
-
return
|
|
6676
|
+
bt(Bo, "isSlottable");
|
|
6677
|
+
var ba = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
6678
|
+
function Yi(r) {
|
|
6679
|
+
return r != null && typeof r == "object" && "$$typeof" in r && r.$$typeof === ba && "_payload" in r && No(r._payload);
|
|
6680
|
+
}
|
|
6681
|
+
bt(Yi, "isLazyComponent");
|
|
6682
|
+
function No(r) {
|
|
6683
|
+
return typeof r == "object" && r !== null && "then" in r;
|
|
6684
|
+
}
|
|
6685
|
+
bt(No, "isPromiseLike");
|
|
6686
|
+
function Do(r) {
|
|
6687
|
+
let l = r;
|
|
6688
|
+
for (; Yi(l) && typeof ii == "function"; )
|
|
6689
|
+
l = ii(l._payload);
|
|
6690
|
+
return l;
|
|
6684
6691
|
}
|
|
6685
|
-
|
|
6686
|
-
function
|
|
6687
|
-
|
|
6692
|
+
bt(Do, "useUnwrappedLazy");
|
|
6693
|
+
function Fo(...r) {
|
|
6694
|
+
const l = /* @__PURE__ */ new Set();
|
|
6695
|
+
for (const a of r)
|
|
6696
|
+
if (typeof a == "string")
|
|
6697
|
+
for (const h of String(a).trim().split(/\s+/))
|
|
6698
|
+
h && l.add(h);
|
|
6699
|
+
return l.size > 0 ? Array.from(l).join(" ") : void 0;
|
|
6688
6700
|
}
|
|
6689
|
-
|
|
6690
|
-
var
|
|
6691
|
-
function
|
|
6701
|
+
bt(Fo, "concatAriaDescribedby");
|
|
6702
|
+
var wa = /* @__PURE__ */ bt((r) => `${r} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, "createSlotError"), xa = /* @__PURE__ */ bt((r) => `${r} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, "createSlottableError"), ii = Lt[" use ".trim().toString()];
|
|
6703
|
+
function Wo(r) {
|
|
6692
6704
|
var l, a, h = "";
|
|
6693
|
-
if (typeof
|
|
6694
|
-
else if (typeof
|
|
6695
|
-
var u =
|
|
6696
|
-
for (l = 0; l < u; l++)
|
|
6697
|
-
} else for (a in
|
|
6705
|
+
if (typeof r == "string" || typeof r == "number") h += r;
|
|
6706
|
+
else if (typeof r == "object") if (Array.isArray(r)) {
|
|
6707
|
+
var u = r.length;
|
|
6708
|
+
for (l = 0; l < u; l++) r[l] && (a = Wo(r[l])) && (h && (h += " "), h += a);
|
|
6709
|
+
} else for (a in r) r[a] && (h && (h += " "), h += a);
|
|
6698
6710
|
return h;
|
|
6699
6711
|
}
|
|
6700
|
-
function
|
|
6701
|
-
for (var
|
|
6712
|
+
function Ho() {
|
|
6713
|
+
for (var r, l, a = 0, h = "", u = arguments.length; a < u; a++) (r = arguments[a]) && (l = Wo(r)) && (h && (h += " "), h += l);
|
|
6702
6714
|
return h;
|
|
6703
6715
|
}
|
|
6704
|
-
const po = (
|
|
6716
|
+
const po = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, _o = Ho, Pa = (r, l) => (a) => {
|
|
6705
6717
|
var h;
|
|
6706
|
-
if (l?.variants == null) return _o(
|
|
6718
|
+
if (l?.variants == null) return _o(r, a?.class, a?.className);
|
|
6707
6719
|
const { variants: u, defaultVariants: p } = l, m = Object.keys(u).map((g) => {
|
|
6708
6720
|
const R = a?.[g], T = p?.[g];
|
|
6709
6721
|
if (R === null) return null;
|
|
@@ -6729,116 +6741,116 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
6729
6741
|
D
|
|
6730
6742
|
] : g;
|
|
6731
6743
|
}, []);
|
|
6732
|
-
return _o(
|
|
6733
|
-
},
|
|
6734
|
-
const a = new Array(
|
|
6735
|
-
for (let h = 0; h <
|
|
6736
|
-
a[h] =
|
|
6744
|
+
return _o(r, m, v, a?.class, a?.className);
|
|
6745
|
+
}, La = (r, l) => {
|
|
6746
|
+
const a = new Array(r.length + l.length);
|
|
6747
|
+
for (let h = 0; h < r.length; h++)
|
|
6748
|
+
a[h] = r[h];
|
|
6737
6749
|
for (let h = 0; h < l.length; h++)
|
|
6738
|
-
a[
|
|
6750
|
+
a[r.length + h] = l[h];
|
|
6739
6751
|
return a;
|
|
6740
|
-
},
|
|
6741
|
-
classGroupId:
|
|
6752
|
+
}, ka = (r, l) => ({
|
|
6753
|
+
classGroupId: r,
|
|
6742
6754
|
validator: l
|
|
6743
|
-
}),
|
|
6744
|
-
nextPart:
|
|
6755
|
+
}), jo = (r = /* @__PURE__ */ new Map(), l = null, a) => ({
|
|
6756
|
+
nextPart: r,
|
|
6745
6757
|
validators: l,
|
|
6746
6758
|
classGroupId: a
|
|
6747
|
-
}), ni = "-", go = [],
|
|
6748
|
-
const l =
|
|
6759
|
+
}), ni = "-", go = [], Ta = "arbitrary..", Ca = (r) => {
|
|
6760
|
+
const l = za(r), {
|
|
6749
6761
|
conflictingClassGroups: a,
|
|
6750
6762
|
conflictingClassGroupModifiers: h
|
|
6751
|
-
} =
|
|
6763
|
+
} = r;
|
|
6752
6764
|
return {
|
|
6753
6765
|
getClassGroupId: (m) => {
|
|
6754
6766
|
if (m.startsWith("[") && m.endsWith("]"))
|
|
6755
|
-
return
|
|
6767
|
+
return Sa(m);
|
|
6756
6768
|
const b = m.split(ni), v = b[0] === "" && b.length > 1 ? 1 : 0;
|
|
6757
|
-
return
|
|
6769
|
+
return Go(b, v, l);
|
|
6758
6770
|
},
|
|
6759
6771
|
getConflictingClassGroupIds: (m, b) => {
|
|
6760
6772
|
if (b) {
|
|
6761
6773
|
const v = h[m], g = a[m];
|
|
6762
|
-
return v ? g ?
|
|
6774
|
+
return v ? g ? La(g, v) : v : g || go;
|
|
6763
6775
|
}
|
|
6764
6776
|
return a[m] || go;
|
|
6765
6777
|
}
|
|
6766
6778
|
};
|
|
6767
|
-
},
|
|
6768
|
-
if (
|
|
6779
|
+
}, Go = (r, l, a) => {
|
|
6780
|
+
if (r.length - l === 0)
|
|
6769
6781
|
return a.classGroupId;
|
|
6770
|
-
const u =
|
|
6782
|
+
const u = r[l], p = a.nextPart.get(u);
|
|
6771
6783
|
if (p) {
|
|
6772
|
-
const g =
|
|
6784
|
+
const g = Go(r, l + 1, p);
|
|
6773
6785
|
if (g) return g;
|
|
6774
6786
|
}
|
|
6775
6787
|
const m = a.validators;
|
|
6776
6788
|
if (m === null)
|
|
6777
6789
|
return;
|
|
6778
|
-
const b = l === 0 ?
|
|
6790
|
+
const b = l === 0 ? r.join(ni) : r.slice(l).join(ni), v = m.length;
|
|
6779
6791
|
for (let g = 0; g < v; g++) {
|
|
6780
6792
|
const R = m[g];
|
|
6781
6793
|
if (R.validator(b))
|
|
6782
6794
|
return R.classGroupId;
|
|
6783
6795
|
}
|
|
6784
|
-
},
|
|
6785
|
-
const l =
|
|
6786
|
-
return h ?
|
|
6787
|
-
})(),
|
|
6796
|
+
}, Sa = (r) => r.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
6797
|
+
const l = r.slice(1, -1), a = l.indexOf(":"), h = l.slice(0, a);
|
|
6798
|
+
return h ? Ta + h : void 0;
|
|
6799
|
+
})(), za = (r) => {
|
|
6788
6800
|
const {
|
|
6789
6801
|
theme: l,
|
|
6790
6802
|
classGroups: a
|
|
6791
|
-
} =
|
|
6792
|
-
return
|
|
6793
|
-
},
|
|
6794
|
-
const a =
|
|
6795
|
-
for (const h in
|
|
6796
|
-
const u =
|
|
6803
|
+
} = r;
|
|
6804
|
+
return Ma(a, l);
|
|
6805
|
+
}, Ma = (r, l) => {
|
|
6806
|
+
const a = jo();
|
|
6807
|
+
for (const h in r) {
|
|
6808
|
+
const u = r[h];
|
|
6797
6809
|
Xi(u, a, h, l);
|
|
6798
6810
|
}
|
|
6799
6811
|
return a;
|
|
6800
|
-
}, Xi = (
|
|
6801
|
-
const u =
|
|
6812
|
+
}, Xi = (r, l, a, h) => {
|
|
6813
|
+
const u = r.length;
|
|
6802
6814
|
for (let p = 0; p < u; p++) {
|
|
6803
|
-
const m =
|
|
6804
|
-
|
|
6815
|
+
const m = r[p];
|
|
6816
|
+
Ea(m, l, a, h);
|
|
6805
6817
|
}
|
|
6806
|
-
},
|
|
6807
|
-
if (typeof
|
|
6808
|
-
|
|
6818
|
+
}, Ea = (r, l, a, h) => {
|
|
6819
|
+
if (typeof r == "string") {
|
|
6820
|
+
Oa(r, l, a);
|
|
6809
6821
|
return;
|
|
6810
6822
|
}
|
|
6811
|
-
if (typeof
|
|
6812
|
-
|
|
6823
|
+
if (typeof r == "function") {
|
|
6824
|
+
Aa(r, l, a, h);
|
|
6813
6825
|
return;
|
|
6814
6826
|
}
|
|
6815
|
-
|
|
6816
|
-
},
|
|
6817
|
-
const h =
|
|
6827
|
+
Ia(r, l, a, h);
|
|
6828
|
+
}, Oa = (r, l, a) => {
|
|
6829
|
+
const h = r === "" ? l : Vo(l, r);
|
|
6818
6830
|
h.classGroupId = a;
|
|
6819
|
-
},
|
|
6820
|
-
if (
|
|
6821
|
-
Xi(
|
|
6831
|
+
}, Aa = (r, l, a, h) => {
|
|
6832
|
+
if (Ra(r)) {
|
|
6833
|
+
Xi(r(h), l, a, h);
|
|
6822
6834
|
return;
|
|
6823
6835
|
}
|
|
6824
|
-
l.validators === null && (l.validators = []), l.validators.push(
|
|
6825
|
-
},
|
|
6826
|
-
const u = Object.entries(
|
|
6836
|
+
l.validators === null && (l.validators = []), l.validators.push(ka(a, r));
|
|
6837
|
+
}, Ia = (r, l, a, h) => {
|
|
6838
|
+
const u = Object.entries(r), p = u.length;
|
|
6827
6839
|
for (let m = 0; m < p; m++) {
|
|
6828
6840
|
const [b, v] = u[m];
|
|
6829
|
-
Xi(v,
|
|
6841
|
+
Xi(v, Vo(l, b), a, h);
|
|
6830
6842
|
}
|
|
6831
|
-
},
|
|
6832
|
-
let a =
|
|
6843
|
+
}, Vo = (r, l) => {
|
|
6844
|
+
let a = r;
|
|
6833
6845
|
const h = l.split(ni), u = h.length;
|
|
6834
6846
|
for (let p = 0; p < u; p++) {
|
|
6835
6847
|
const m = h[p];
|
|
6836
6848
|
let b = a.nextPart.get(m);
|
|
6837
|
-
b || (b =
|
|
6849
|
+
b || (b = jo(), a.nextPart.set(m, b)), a = b;
|
|
6838
6850
|
}
|
|
6839
6851
|
return a;
|
|
6840
|
-
},
|
|
6841
|
-
if (
|
|
6852
|
+
}, Ra = (r) => "isThemeGetter" in r && r.isThemeGetter === !0, Za = (r) => {
|
|
6853
|
+
if (r < 1)
|
|
6842
6854
|
return {
|
|
6843
6855
|
get: () => {
|
|
6844
6856
|
},
|
|
@@ -6847,7 +6859,7 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
6847
6859
|
};
|
|
6848
6860
|
let l = 0, a = /* @__PURE__ */ Object.create(null), h = /* @__PURE__ */ Object.create(null);
|
|
6849
6861
|
const u = (p, m) => {
|
|
6850
|
-
a[p] = m, l++, l >
|
|
6862
|
+
a[p] = m, l++, l > r && (l = 0, h = a, a = /* @__PURE__ */ Object.create(null));
|
|
6851
6863
|
};
|
|
6852
6864
|
return {
|
|
6853
6865
|
get(p) {
|
|
@@ -6861,17 +6873,17 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
6861
6873
|
p in a ? a[p] = m : u(p, m);
|
|
6862
6874
|
}
|
|
6863
6875
|
};
|
|
6864
|
-
},
|
|
6865
|
-
modifiers:
|
|
6876
|
+
}, ji = "!", vo = ":", Ba = [], yo = (r, l, a, h, u) => ({
|
|
6877
|
+
modifiers: r,
|
|
6866
6878
|
hasImportantModifier: l,
|
|
6867
6879
|
baseClassName: a,
|
|
6868
6880
|
maybePostfixModifierPosition: h,
|
|
6869
6881
|
isExternal: u
|
|
6870
|
-
}),
|
|
6882
|
+
}), Na = (r) => {
|
|
6871
6883
|
const {
|
|
6872
6884
|
prefix: l,
|
|
6873
6885
|
experimentalParseClassName: a
|
|
6874
|
-
} =
|
|
6886
|
+
} = r;
|
|
6875
6887
|
let h = (u) => {
|
|
6876
6888
|
const p = [];
|
|
6877
6889
|
let m = 0, b = 0, v = 0, g;
|
|
@@ -6892,19 +6904,19 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
6892
6904
|
}
|
|
6893
6905
|
const T = p.length === 0 ? u : u.slice(v);
|
|
6894
6906
|
let D = T, Z = !1;
|
|
6895
|
-
T.endsWith(
|
|
6907
|
+
T.endsWith(ji) ? (D = T.slice(0, -1), Z = !0) : (
|
|
6896
6908
|
/**
|
|
6897
6909
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
6898
6910
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
6899
6911
|
*/
|
|
6900
|
-
T.startsWith(
|
|
6912
|
+
T.startsWith(ji) && (D = T.slice(1), Z = !0)
|
|
6901
6913
|
);
|
|
6902
6914
|
const G = g && g > v ? g - v : void 0;
|
|
6903
6915
|
return yo(p, Z, D, G);
|
|
6904
6916
|
};
|
|
6905
6917
|
if (l) {
|
|
6906
6918
|
const u = l + vo, p = h;
|
|
6907
|
-
h = (m) => m.startsWith(u) ? p(m.slice(u.length)) : yo(
|
|
6919
|
+
h = (m) => m.startsWith(u) ? p(m.slice(u.length)) : yo(Ba, !1, m, void 0, !0);
|
|
6908
6920
|
}
|
|
6909
6921
|
if (a) {
|
|
6910
6922
|
const u = h;
|
|
@@ -6914,9 +6926,9 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
6914
6926
|
});
|
|
6915
6927
|
}
|
|
6916
6928
|
return h;
|
|
6917
|
-
},
|
|
6929
|
+
}, Da = (r) => {
|
|
6918
6930
|
const l = /* @__PURE__ */ new Map();
|
|
6919
|
-
return
|
|
6931
|
+
return r.orderSensitiveModifiers.forEach((a, h) => {
|
|
6920
6932
|
l.set(a, 1e6 + h);
|
|
6921
6933
|
}), (a) => {
|
|
6922
6934
|
const h = [];
|
|
@@ -6927,26 +6939,26 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
6927
6939
|
}
|
|
6928
6940
|
return u.length > 0 && (u.sort(), h.push(...u)), h;
|
|
6929
6941
|
};
|
|
6930
|
-
},
|
|
6931
|
-
cache:
|
|
6932
|
-
parseClassName:
|
|
6933
|
-
sortModifiers:
|
|
6934
|
-
postfixLookupClassGroupIds:
|
|
6935
|
-
...
|
|
6936
|
-
}),
|
|
6937
|
-
const l = /* @__PURE__ */ Object.create(null), a =
|
|
6942
|
+
}, Fa = (r) => ({
|
|
6943
|
+
cache: Za(r.cacheSize),
|
|
6944
|
+
parseClassName: Na(r),
|
|
6945
|
+
sortModifiers: Da(r),
|
|
6946
|
+
postfixLookupClassGroupIds: Wa(r),
|
|
6947
|
+
...Ca(r)
|
|
6948
|
+
}), Wa = (r) => {
|
|
6949
|
+
const l = /* @__PURE__ */ Object.create(null), a = r.postfixLookupClassGroups;
|
|
6938
6950
|
if (a)
|
|
6939
6951
|
for (let h = 0; h < a.length; h++)
|
|
6940
6952
|
l[a[h]] = !0;
|
|
6941
6953
|
return l;
|
|
6942
|
-
},
|
|
6954
|
+
}, Ha = /\s+/, ja = (r, l) => {
|
|
6943
6955
|
const {
|
|
6944
6956
|
parseClassName: a,
|
|
6945
6957
|
getClassGroupId: h,
|
|
6946
6958
|
getConflictingClassGroupIds: u,
|
|
6947
6959
|
sortModifiers: p,
|
|
6948
6960
|
postfixLookupClassGroupIds: m
|
|
6949
|
-
} = l, b = [], v =
|
|
6961
|
+
} = l, b = [], v = r.trim().split(Ha);
|
|
6950
6962
|
let g = "";
|
|
6951
6963
|
for (let R = v.length - 1; R >= 0; R -= 1) {
|
|
6952
6964
|
const T = v[R], {
|
|
@@ -6979,7 +6991,7 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
6979
6991
|
}
|
|
6980
6992
|
ft = !1;
|
|
6981
6993
|
}
|
|
6982
|
-
const U = Z.length === 0 ? "" : Z.length === 1 ? Z[0] : p(Z).join(":"), lt = G ? U +
|
|
6994
|
+
const U = Z.length === 0 ? "" : Z.length === 1 ? Z[0] : p(Z).join(":"), lt = G ? U + ji : U, mt = lt + X;
|
|
6983
6995
|
if (b.indexOf(mt) > -1)
|
|
6984
6996
|
continue;
|
|
6985
6997
|
b.push(mt);
|
|
@@ -6991,47 +7003,47 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
6991
7003
|
g = T + (g.length > 0 ? " " + g : g);
|
|
6992
7004
|
}
|
|
6993
7005
|
return g;
|
|
6994
|
-
},
|
|
7006
|
+
}, Ga = (...r) => {
|
|
6995
7007
|
let l = 0, a, h, u = "";
|
|
6996
|
-
for (; l <
|
|
6997
|
-
(a =
|
|
7008
|
+
for (; l < r.length; )
|
|
7009
|
+
(a = r[l++]) && (h = Uo(a)) && (u && (u += " "), u += h);
|
|
6998
7010
|
return u;
|
|
6999
|
-
},
|
|
7000
|
-
if (typeof
|
|
7001
|
-
return
|
|
7011
|
+
}, Uo = (r) => {
|
|
7012
|
+
if (typeof r == "string")
|
|
7013
|
+
return r;
|
|
7002
7014
|
let l, a = "";
|
|
7003
|
-
for (let h = 0; h <
|
|
7004
|
-
|
|
7015
|
+
for (let h = 0; h < r.length; h++)
|
|
7016
|
+
r[h] && (l = Uo(r[h])) && (a && (a += " "), a += l);
|
|
7005
7017
|
return a;
|
|
7006
|
-
},
|
|
7018
|
+
}, Va = (r, ...l) => {
|
|
7007
7019
|
let a, h, u, p;
|
|
7008
7020
|
const m = (v) => {
|
|
7009
|
-
const g = l.reduce((R, T) => T(R),
|
|
7010
|
-
return a =
|
|
7021
|
+
const g = l.reduce((R, T) => T(R), r());
|
|
7022
|
+
return a = Fa(g), h = a.cache.get, u = a.cache.set, p = b, b(v);
|
|
7011
7023
|
}, b = (v) => {
|
|
7012
7024
|
const g = h(v);
|
|
7013
7025
|
if (g)
|
|
7014
7026
|
return g;
|
|
7015
|
-
const R =
|
|
7027
|
+
const R = ja(v, a);
|
|
7016
7028
|
return u(v, R), R;
|
|
7017
7029
|
};
|
|
7018
|
-
return p = m, (...v) => p(
|
|
7019
|
-
},
|
|
7020
|
-
const l = (a) => a[
|
|
7021
|
-
return l.isThemeGetter = !0, l.themeKey =
|
|
7022
|
-
},
|
|
7030
|
+
return p = m, (...v) => p(Ga(...v));
|
|
7031
|
+
}, Ua = [], st = (r) => {
|
|
7032
|
+
const l = (a) => a[r] || Ua;
|
|
7033
|
+
return l.isThemeGetter = !0, l.themeKey = r, l;
|
|
7034
|
+
}, $o = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, qo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, $a = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, qa = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ka = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ya = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Xa = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ja = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Gt = (r) => $a.test(r), F = (r) => !!r && !Number.isNaN(Number(r)), It = (r) => !!r && Number.isInteger(Number(r)), Wi = (r) => r.endsWith("%") && F(r.slice(0, -1)), Dt = (r) => qa.test(r), Ko = () => !0, Qa = (r) => (
|
|
7023
7035
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
7024
7036
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
7025
7037
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
7026
|
-
|
|
7027
|
-
), Ji = () => !1,
|
|
7028
|
-
const h =
|
|
7038
|
+
Ka.test(r) && !Ya.test(r)
|
|
7039
|
+
), Ji = () => !1, tl = (r) => Xa.test(r), el = (r) => Ja.test(r), il = (r) => !P(r) && !k(r), nl = (r) => r.startsWith("@container") && (r[10] === "/" && r[11] !== void 0 || r[11] === "s" && r[16] !== void 0 && r.startsWith("-size/", 10) || r[11] === "n" && r[18] !== void 0 && r.startsWith("-normal/", 10)), ol = (r) => Ut(r, Jo, Ji), P = (r) => $o.test(r), te = (r) => Ut(r, Qo, Qa), bo = (r) => Ut(r, dl, F), rl = (r) => Ut(r, er, Ko), sl = (r) => Ut(r, tr, Ji), wo = (r) => Ut(r, Yo, Ji), al = (r) => Ut(r, Xo, el), Qe = (r) => Ut(r, ir, tl), k = (r) => qo.test(r), ze = (r) => ie(r, Qo), ll = (r) => ie(r, tr), xo = (r) => ie(r, Yo), hl = (r) => ie(r, Jo), cl = (r) => ie(r, Xo), ti = (r) => ie(r, ir, !0), ul = (r) => ie(r, er, !0), Ut = (r, l, a) => {
|
|
7040
|
+
const h = $o.exec(r);
|
|
7029
7041
|
return h ? h[1] ? l(h[1]) : a(h[2]) : !1;
|
|
7030
|
-
}, ie = (
|
|
7031
|
-
const h =
|
|
7042
|
+
}, ie = (r, l, a = !1) => {
|
|
7043
|
+
const h = qo.exec(r);
|
|
7032
7044
|
return h ? h[1] ? l(h[1]) : a : !1;
|
|
7033
|
-
},
|
|
7034
|
-
const
|
|
7045
|
+
}, Yo = (r) => r === "position" || r === "percentage", Xo = (r) => r === "image" || r === "url", Jo = (r) => r === "length" || r === "size" || r === "bg-size", Qo = (r) => r === "length", dl = (r) => r === "number", tr = (r) => r === "family-name", er = (r) => r === "number" || r === "weight", ir = (r) => r === "shadow", fl = () => {
|
|
7046
|
+
const r = st("color"), l = st("font"), a = st("text"), h = st("font-weight"), u = st("tracking"), p = st("leading"), m = st("breakpoint"), b = st("container"), v = st("spacing"), g = st("radius"), R = st("shadow"), T = st("inset-shadow"), D = st("text-shadow"), Z = st("drop-shadow"), G = st("blur"), S = st("perspective"), Y = st("aspect"), ft = st("ease"), X = st("animate"), U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], lt = () => [
|
|
7035
7047
|
"center",
|
|
7036
7048
|
"top",
|
|
7037
7049
|
"bottom",
|
|
@@ -7051,11 +7063,11 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
7051
7063
|
"left-bottom"
|
|
7052
7064
|
], mt = () => [...lt(), k, P], C = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", "contain", "none"], w = () => [k, P, v], nt = () => [Gt, "full", "auto", ...w()], $t = () => [It, "none", "subgrid", k, P], tt = () => ["auto", {
|
|
7053
7065
|
span: ["full", It, k, P]
|
|
7054
|
-
}, It, k, P], ht = () => [It, "auto", k, P], Ae = () => ["auto", "min", "max", "fr", k, P], vt = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Ft = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], K = () => ["auto", ...w()], yt = () => [Gt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...w()], A = () => [b, Gt, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...w()], ne = () => [Gt, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...w()], y = () => [
|
|
7066
|
+
}, It, k, P], ht = () => [It, "auto", k, P], Ae = () => ["auto", "min", "max", "fr", k, P], vt = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Ft = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], K = () => ["auto", ...w()], yt = () => [Gt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...w()], A = () => [b, Gt, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...w()], ne = () => [Gt, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...w()], y = () => [r, k, P], $ = () => [...lt(), xo, wo, {
|
|
7055
7067
|
position: [k, P]
|
|
7056
7068
|
}], ct = () => ["no-repeat", {
|
|
7057
7069
|
repeat: ["", "x", "y", "space", "round"]
|
|
7058
|
-
}], ut = () => ["auto", "cover", "contain",
|
|
7070
|
+
}], ut = () => ["auto", "cover", "contain", hl, ol, {
|
|
7059
7071
|
size: [k, P]
|
|
7060
7072
|
}], J = () => [Wi, ze, te], I = () => [
|
|
7061
7073
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -7065,7 +7077,7 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
7065
7077
|
g,
|
|
7066
7078
|
k,
|
|
7067
7079
|
P
|
|
7068
|
-
], M = () => ["", F, ze, te], _t = () => ["solid", "dashed", "dotted", "double"],
|
|
7080
|
+
], M = () => ["", F, ze, te], _t = () => ["solid", "dashed", "dotted", "double"], kt = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], et = () => [F, Wi, xo, wo], oe = () => [
|
|
7069
7081
|
// Deprecated since Tailwind CSS v4.0.0
|
|
7070
7082
|
"",
|
|
7071
7083
|
"none",
|
|
@@ -7080,11 +7092,11 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
7080
7092
|
aspect: ["video"],
|
|
7081
7093
|
blur: [Dt],
|
|
7082
7094
|
breakpoint: [Dt],
|
|
7083
|
-
color: [
|
|
7095
|
+
color: [Ko],
|
|
7084
7096
|
container: [Dt],
|
|
7085
7097
|
"drop-shadow": [Dt],
|
|
7086
7098
|
ease: ["in", "out", "in-out"],
|
|
7087
|
-
font: [
|
|
7099
|
+
font: [il],
|
|
7088
7100
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
7089
7101
|
"inset-shadow": [Dt],
|
|
7090
7102
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -7124,7 +7136,7 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
7124
7136
|
* Container Name
|
|
7125
7137
|
* @see https://tailwindcss.com/docs/responsive-design#named-containers
|
|
7126
7138
|
*/
|
|
7127
|
-
"container-named": [
|
|
7139
|
+
"container-named": [nl],
|
|
7128
7140
|
/**
|
|
7129
7141
|
* Columns
|
|
7130
7142
|
* @see https://tailwindcss.com/docs/columns
|
|
@@ -7890,7 +7902,7 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
7890
7902
|
* @see https://tailwindcss.com/docs/font-weight
|
|
7891
7903
|
*/
|
|
7892
7904
|
"font-weight": [{
|
|
7893
|
-
font: [h,
|
|
7905
|
+
font: [h, ul, rl]
|
|
7894
7906
|
}],
|
|
7895
7907
|
/**
|
|
7896
7908
|
* Font Stretch
|
|
@@ -7904,7 +7916,7 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
7904
7916
|
* @see https://tailwindcss.com/docs/font-family
|
|
7905
7917
|
*/
|
|
7906
7918
|
"font-family": [{
|
|
7907
|
-
font: [
|
|
7919
|
+
font: [ll, sl, l]
|
|
7908
7920
|
}],
|
|
7909
7921
|
/**
|
|
7910
7922
|
* Font Feature Settings
|
|
@@ -8174,7 +8186,7 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
8174
8186
|
}, It, k, P],
|
|
8175
8187
|
radial: ["", k, P],
|
|
8176
8188
|
conic: ["", It, k, P]
|
|
8177
|
-
},
|
|
8189
|
+
}, cl, al]
|
|
8178
8190
|
}],
|
|
8179
8191
|
/**
|
|
8180
8192
|
* Background Color
|
|
@@ -8575,8 +8587,8 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
8575
8587
|
"inner",
|
|
8576
8588
|
"none",
|
|
8577
8589
|
R,
|
|
8578
|
-
|
|
8579
|
-
|
|
8590
|
+
ti,
|
|
8591
|
+
Qe
|
|
8580
8592
|
]
|
|
8581
8593
|
}],
|
|
8582
8594
|
/**
|
|
@@ -8591,7 +8603,7 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
8591
8603
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
8592
8604
|
*/
|
|
8593
8605
|
"inset-shadow": [{
|
|
8594
|
-
"inset-shadow": ["none", T,
|
|
8606
|
+
"inset-shadow": ["none", T, ti, Qe]
|
|
8595
8607
|
}],
|
|
8596
8608
|
/**
|
|
8597
8609
|
* Inset Box Shadow Color
|
|
@@ -8658,7 +8670,7 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
8658
8670
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
8659
8671
|
*/
|
|
8660
8672
|
"text-shadow": [{
|
|
8661
|
-
"text-shadow": ["none", D,
|
|
8673
|
+
"text-shadow": ["none", D, ti, Qe]
|
|
8662
8674
|
}],
|
|
8663
8675
|
/**
|
|
8664
8676
|
* Text Shadow Color
|
|
@@ -8679,14 +8691,14 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
8679
8691
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
8680
8692
|
*/
|
|
8681
8693
|
"mix-blend": [{
|
|
8682
|
-
"mix-blend": [...
|
|
8694
|
+
"mix-blend": [...kt(), "plus-darker", "plus-lighter"]
|
|
8683
8695
|
}],
|
|
8684
8696
|
/**
|
|
8685
8697
|
* Background Blend Mode
|
|
8686
8698
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
8687
8699
|
*/
|
|
8688
8700
|
"bg-blend": [{
|
|
8689
|
-
"bg-blend":
|
|
8701
|
+
"bg-blend": kt()
|
|
8690
8702
|
}],
|
|
8691
8703
|
/**
|
|
8692
8704
|
* Mask Clip
|
|
@@ -8931,8 +8943,8 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
8931
8943
|
"",
|
|
8932
8944
|
"none",
|
|
8933
8945
|
Z,
|
|
8934
|
-
|
|
8935
|
-
|
|
8946
|
+
ti,
|
|
8947
|
+
Qe
|
|
8936
8948
|
]
|
|
8937
8949
|
}],
|
|
8938
8950
|
/**
|
|
@@ -9718,11 +9730,11 @@ const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, w
|
|
|
9718
9730
|
postfixLookupClassGroups: ["container-type"],
|
|
9719
9731
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
9720
9732
|
};
|
|
9721
|
-
},
|
|
9722
|
-
function
|
|
9723
|
-
return
|
|
9733
|
+
}, ml = /* @__PURE__ */ Va(fl);
|
|
9734
|
+
function pl(...r) {
|
|
9735
|
+
return ml(Ho(r));
|
|
9724
9736
|
}
|
|
9725
|
-
const
|
|
9737
|
+
const _l = Pa(
|
|
9726
9738
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer",
|
|
9727
9739
|
{
|
|
9728
9740
|
variants: {
|
|
@@ -9750,30 +9762,30 @@ const ml = wa(
|
|
|
9750
9762
|
}
|
|
9751
9763
|
);
|
|
9752
9764
|
function Me({
|
|
9753
|
-
className:
|
|
9765
|
+
className: r,
|
|
9754
9766
|
variant: l,
|
|
9755
9767
|
size: a,
|
|
9756
9768
|
asChild: h = !1,
|
|
9757
9769
|
...u
|
|
9758
9770
|
}) {
|
|
9759
|
-
const p = h ?
|
|
9771
|
+
const p = h ? ga : "button";
|
|
9760
9772
|
return /* @__PURE__ */ O.jsx(
|
|
9761
9773
|
p,
|
|
9762
9774
|
{
|
|
9763
9775
|
"data-slot": "button",
|
|
9764
|
-
className:
|
|
9776
|
+
className: pl(_l({ variant: l, size: a, className: r })),
|
|
9765
9777
|
...u
|
|
9766
9778
|
}
|
|
9767
9779
|
);
|
|
9768
9780
|
}
|
|
9769
|
-
const
|
|
9781
|
+
const gl = (r) => r.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), vl = (r) => r.replace(
|
|
9770
9782
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
9771
9783
|
(l, a, h) => h ? h.toUpperCase() : a.toLowerCase()
|
|
9772
|
-
), Po = (
|
|
9773
|
-
const l =
|
|
9784
|
+
), Po = (r) => {
|
|
9785
|
+
const l = vl(r);
|
|
9774
9786
|
return l.charAt(0).toUpperCase() + l.slice(1);
|
|
9775
|
-
},
|
|
9776
|
-
var
|
|
9787
|
+
}, nr = (...r) => r.filter((l, a, h) => !!l && l.trim() !== "" && h.indexOf(l) === a).join(" ").trim();
|
|
9788
|
+
var yl = {
|
|
9777
9789
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9778
9790
|
width: 24,
|
|
9779
9791
|
height: 24,
|
|
@@ -9784,9 +9796,9 @@ var gl = {
|
|
|
9784
9796
|
strokeLinecap: "round",
|
|
9785
9797
|
strokeLinejoin: "round"
|
|
9786
9798
|
};
|
|
9787
|
-
const
|
|
9799
|
+
const bl = window.React.forwardRef, Lo = window.React.createElement, wl = bl(
|
|
9788
9800
|
({
|
|
9789
|
-
color:
|
|
9801
|
+
color: r = "currentColor",
|
|
9790
9802
|
size: l = 24,
|
|
9791
9803
|
strokeWidth: a = 2,
|
|
9792
9804
|
absoluteStrokeWidth: h,
|
|
@@ -9798,12 +9810,12 @@ const vl = window.React.forwardRef, Lo = window.React.createElement, yl = vl(
|
|
|
9798
9810
|
"svg",
|
|
9799
9811
|
{
|
|
9800
9812
|
ref: v,
|
|
9801
|
-
...
|
|
9813
|
+
...yl,
|
|
9802
9814
|
width: l,
|
|
9803
9815
|
height: l,
|
|
9804
|
-
stroke:
|
|
9816
|
+
stroke: r,
|
|
9805
9817
|
strokeWidth: h ? Number(a) * 24 / Number(l) : a,
|
|
9806
|
-
className:
|
|
9818
|
+
className: nr("lucide", u),
|
|
9807
9819
|
...b
|
|
9808
9820
|
},
|
|
9809
9821
|
[
|
|
@@ -9812,23 +9824,23 @@ const vl = window.React.forwardRef, Lo = window.React.createElement, yl = vl(
|
|
|
9812
9824
|
]
|
|
9813
9825
|
)
|
|
9814
9826
|
);
|
|
9815
|
-
const
|
|
9816
|
-
const a =
|
|
9817
|
-
({ className: h, ...u }, p) => wl
|
|
9827
|
+
const xl = window.React.forwardRef, Pl = window.React.createElement, Oe = (r, l) => {
|
|
9828
|
+
const a = xl(
|
|
9829
|
+
({ className: h, ...u }, p) => Pl(wl, {
|
|
9818
9830
|
ref: p,
|
|
9819
9831
|
iconNode: l,
|
|
9820
|
-
className:
|
|
9821
|
-
`lucide-${
|
|
9822
|
-
`lucide-${
|
|
9832
|
+
className: nr(
|
|
9833
|
+
`lucide-${gl(Po(r))}`,
|
|
9834
|
+
`lucide-${r}`,
|
|
9823
9835
|
h
|
|
9824
9836
|
),
|
|
9825
9837
|
...u
|
|
9826
9838
|
})
|
|
9827
9839
|
);
|
|
9828
|
-
return a.displayName = Po(
|
|
9840
|
+
return a.displayName = Po(r), a;
|
|
9829
9841
|
};
|
|
9830
|
-
const
|
|
9831
|
-
const
|
|
9842
|
+
const Ll = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], kl = Oe("check", Ll);
|
|
9843
|
+
const Tl = [
|
|
9832
9844
|
[
|
|
9833
9845
|
"path",
|
|
9834
9846
|
{
|
|
@@ -9836,8 +9848,8 @@ const Ll = [
|
|
|
9836
9848
|
key: "yt0hxn"
|
|
9837
9849
|
}
|
|
9838
9850
|
]
|
|
9839
|
-
],
|
|
9840
|
-
const
|
|
9851
|
+
], Cl = Oe("hexagon", Tl);
|
|
9852
|
+
const Sl = [
|
|
9841
9853
|
[
|
|
9842
9854
|
"path",
|
|
9843
9855
|
{
|
|
@@ -9846,17 +9858,17 @@ const Tl = [
|
|
|
9846
9858
|
}
|
|
9847
9859
|
],
|
|
9848
9860
|
["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
|
|
9849
|
-
],
|
|
9850
|
-
const Sl = [
|
|
9851
|
-
["rect", { width: "20", height: "12", x: "2", y: "6", rx: "2", key: "9lu3g6" }]
|
|
9852
|
-
], zl = Oe("rectangle-horizontal", Sl);
|
|
9861
|
+
], zl = Oe("map-pin", Sl);
|
|
9853
9862
|
const Ml = [
|
|
9863
|
+
["rect", { width: "20", height: "12", x: "2", y: "6", rx: "2", key: "9lu3g6" }]
|
|
9864
|
+
], El = Oe("rectangle-horizontal", Ml);
|
|
9865
|
+
const Ol = [
|
|
9854
9866
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
9855
9867
|
["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
|
|
9856
9868
|
["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
|
|
9857
9869
|
["line", { x1: "10", x2: "10", y1: "11", y2: "17", key: "1uufr5" }],
|
|
9858
9870
|
["line", { x1: "14", x2: "14", y1: "11", y2: "17", key: "xtxkd" }]
|
|
9859
|
-
],
|
|
9871
|
+
], Al = Oe("trash-2", Ol), Il = window.React, ee = window.React.useState, ei = window.React.useEffect, St = window.React.useCallback;
|
|
9860
9872
|
delete So.Icon.Default.prototype._getIconUrl;
|
|
9861
9873
|
So.Icon.Default.mergeOptions({
|
|
9862
9874
|
iconRetinaUrl: "https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon-2x.png",
|
|
@@ -9869,8 +9881,8 @@ const ko = {
|
|
|
9869
9881
|
opacity: 1,
|
|
9870
9882
|
fillOpacity: 0.7,
|
|
9871
9883
|
dashArray: "0"
|
|
9872
|
-
},
|
|
9873
|
-
position:
|
|
9884
|
+
}, Rl = ({
|
|
9885
|
+
position: r,
|
|
9874
9886
|
onAddMarker: l,
|
|
9875
9887
|
onAddPolygon: a,
|
|
9876
9888
|
onAddRectangle: h,
|
|
@@ -9884,7 +9896,7 @@ const ko = {
|
|
|
9884
9896
|
"top-right": "leaflet-top leaflet-right",
|
|
9885
9897
|
"bottom-left": "leaflet-bottom leaflet-left",
|
|
9886
9898
|
"bottom-right": "leaflet-bottom leaflet-right"
|
|
9887
|
-
}[
|
|
9899
|
+
}[r];
|
|
9888
9900
|
return /* @__PURE__ */ O.jsx("div", { className: `${v} leaflet-control-container`, children: /* @__PURE__ */ O.jsxs("div", { className: "leaflet-control leaflet-bar flex flex-col bg-sidebar [&>button]:border-b", children: [
|
|
9889
9901
|
/* @__PURE__ */ O.jsx(
|
|
9890
9902
|
Me,
|
|
@@ -9897,7 +9909,7 @@ const ko = {
|
|
|
9897
9909
|
},
|
|
9898
9910
|
title: "Add marker",
|
|
9899
9911
|
disabled: b,
|
|
9900
|
-
children: /* @__PURE__ */ O.jsx(
|
|
9912
|
+
children: /* @__PURE__ */ O.jsx(zl, {})
|
|
9901
9913
|
}
|
|
9902
9914
|
),
|
|
9903
9915
|
/* @__PURE__ */ O.jsx(
|
|
@@ -9911,7 +9923,7 @@ const ko = {
|
|
|
9911
9923
|
},
|
|
9912
9924
|
title: "Add polygon",
|
|
9913
9925
|
disabled: b && m !== "polygon",
|
|
9914
|
-
children: /* @__PURE__ */ O.jsx(
|
|
9926
|
+
children: /* @__PURE__ */ O.jsx(Cl, {})
|
|
9915
9927
|
}
|
|
9916
9928
|
),
|
|
9917
9929
|
/* @__PURE__ */ O.jsx(
|
|
@@ -9925,7 +9937,7 @@ const ko = {
|
|
|
9925
9937
|
},
|
|
9926
9938
|
title: "Add rectangle",
|
|
9927
9939
|
disabled: b,
|
|
9928
|
-
children: /* @__PURE__ */ O.jsx(
|
|
9940
|
+
children: /* @__PURE__ */ O.jsx(El, {})
|
|
9929
9941
|
}
|
|
9930
9942
|
),
|
|
9931
9943
|
m === "polygon" && b && /* @__PURE__ */ O.jsx(
|
|
@@ -9938,7 +9950,7 @@ const ko = {
|
|
|
9938
9950
|
variant: "ghost",
|
|
9939
9951
|
size: "sm",
|
|
9940
9952
|
title: "Finish drawing",
|
|
9941
|
-
children: /* @__PURE__ */ O.jsx(
|
|
9953
|
+
children: /* @__PURE__ */ O.jsx(kl, {})
|
|
9942
9954
|
}
|
|
9943
9955
|
),
|
|
9944
9956
|
/* @__PURE__ */ O.jsx(
|
|
@@ -9952,12 +9964,12 @@ const ko = {
|
|
|
9952
9964
|
size: "sm",
|
|
9953
9965
|
title: "Clear map",
|
|
9954
9966
|
disabled: b,
|
|
9955
|
-
children: /* @__PURE__ */ O.jsx(
|
|
9967
|
+
children: /* @__PURE__ */ O.jsx(Al, {})
|
|
9956
9968
|
}
|
|
9957
9969
|
)
|
|
9958
9970
|
] }) });
|
|
9959
|
-
},
|
|
9960
|
-
features:
|
|
9971
|
+
}, Zl = ({
|
|
9972
|
+
features: r,
|
|
9961
9973
|
mode: l,
|
|
9962
9974
|
drawingMode: a,
|
|
9963
9975
|
setDrawingMode: h,
|
|
@@ -9966,14 +9978,14 @@ const ko = {
|
|
|
9966
9978
|
onFinishDrawing: m,
|
|
9967
9979
|
allowMarkerMovement: b = !0
|
|
9968
9980
|
}) => {
|
|
9969
|
-
const v =
|
|
9981
|
+
const v = ia(), [g, R] = ee([]), [T, D] = ee(null), [Z, G] = ee(null), S = St((C, W) => {
|
|
9970
9982
|
if (!b) return;
|
|
9971
|
-
const nt = C.target.getLatLng(), $t =
|
|
9983
|
+
const nt = C.target.getLatLng(), $t = r.map((tt) => tt.id === W ? {
|
|
9972
9984
|
...tt,
|
|
9973
9985
|
position: [nt.lat, nt.lng]
|
|
9974
9986
|
} : tt);
|
|
9975
9987
|
u($t);
|
|
9976
|
-
}, [
|
|
9988
|
+
}, [r, u, b]), Y = St(() => {
|
|
9977
9989
|
if (g.length < 3) {
|
|
9978
9990
|
R([]), h("none"), p(!1);
|
|
9979
9991
|
return;
|
|
@@ -9981,55 +9993,55 @@ const ko = {
|
|
|
9981
9993
|
const C = {
|
|
9982
9994
|
id: Date.now(),
|
|
9983
9995
|
polygon: [[...g, g[0]]],
|
|
9984
|
-
popupContent: `Полигон ${
|
|
9996
|
+
popupContent: `Полигон ${r.length + 1}`,
|
|
9985
9997
|
color: `#${Math.floor(Math.random() * 16777215).toString(16)}`
|
|
9986
9998
|
};
|
|
9987
|
-
u([...
|
|
9999
|
+
u([...r, C]), R([]), h("none"), p(!1), v.doubleClickZoom.enable();
|
|
9988
10000
|
}, [
|
|
9989
10001
|
g,
|
|
9990
|
-
|
|
10002
|
+
r,
|
|
9991
10003
|
u,
|
|
9992
10004
|
h,
|
|
9993
10005
|
v,
|
|
9994
10006
|
p
|
|
9995
10007
|
]);
|
|
9996
|
-
|
|
10008
|
+
ei(() => {
|
|
9997
10009
|
m > 0 && a === "polygon" && g.length >= 3 && Y();
|
|
9998
10010
|
}, [m]);
|
|
9999
|
-
const ft =
|
|
10011
|
+
const ft = St(
|
|
10000
10012
|
(C) => {
|
|
10001
10013
|
if (a !== "marker") return;
|
|
10002
10014
|
const W = {
|
|
10003
10015
|
id: Date.now(),
|
|
10004
10016
|
position: [C.lat, C.lng],
|
|
10005
|
-
popupContent: `Маркер ${
|
|
10017
|
+
popupContent: `Маркер ${r.length + 1}`,
|
|
10006
10018
|
draggable: b
|
|
10007
10019
|
};
|
|
10008
|
-
u([...
|
|
10020
|
+
u([...r, W]);
|
|
10009
10021
|
},
|
|
10010
|
-
[
|
|
10011
|
-
), X =
|
|
10022
|
+
[r, u, a, b]
|
|
10023
|
+
), X = St(
|
|
10012
10024
|
(C) => {
|
|
10013
10025
|
if (a !== "polygon") return;
|
|
10014
10026
|
const W = [C.lat, C.lng], w = [...g, W];
|
|
10015
10027
|
R(w), p(!0), v.doubleClickZoom.disable();
|
|
10016
10028
|
},
|
|
10017
10029
|
[g, a, v, p]
|
|
10018
|
-
), U =
|
|
10030
|
+
), U = St(
|
|
10019
10031
|
(C) => {
|
|
10020
10032
|
if (a !== "rectangle") return;
|
|
10021
10033
|
const W = [C.lat, C.lng];
|
|
10022
10034
|
D(W), G(W), p(!0);
|
|
10023
10035
|
},
|
|
10024
10036
|
[a, p]
|
|
10025
|
-
), lt =
|
|
10037
|
+
), lt = St(
|
|
10026
10038
|
(C) => {
|
|
10027
10039
|
if (!T || a !== "rectangle") return;
|
|
10028
10040
|
const W = [C.lat, C.lng];
|
|
10029
10041
|
G(W);
|
|
10030
10042
|
},
|
|
10031
10043
|
[T, a]
|
|
10032
|
-
), mt =
|
|
10044
|
+
), mt = St(() => {
|
|
10033
10045
|
if (!T || !Z) {
|
|
10034
10046
|
D(null), G(null), h("none"), p(!1);
|
|
10035
10047
|
return;
|
|
@@ -10037,19 +10049,19 @@ const ko = {
|
|
|
10037
10049
|
const C = {
|
|
10038
10050
|
id: Date.now(),
|
|
10039
10051
|
rectangle: [T, Z],
|
|
10040
|
-
popupContent: `Прямоугольник ${
|
|
10052
|
+
popupContent: `Прямоугольник ${r.length + 1}`,
|
|
10041
10053
|
color: `#${Math.floor(Math.random() * 16777215).toString(16)}`
|
|
10042
10054
|
};
|
|
10043
|
-
u([...
|
|
10055
|
+
u([...r, C]), D(null), G(null), h("none"), p(!1);
|
|
10044
10056
|
}, [
|
|
10045
10057
|
T,
|
|
10046
10058
|
Z,
|
|
10047
|
-
|
|
10059
|
+
r,
|
|
10048
10060
|
u,
|
|
10049
10061
|
h,
|
|
10050
10062
|
p
|
|
10051
10063
|
]);
|
|
10052
|
-
return
|
|
10064
|
+
return ei(() => {
|
|
10053
10065
|
const C = (w) => {
|
|
10054
10066
|
a === "marker" ? ft(w.latlng) : a === "polygon" ? X(w.latlng) : a === "rectangle" && (T ? mt() : U(w.latlng));
|
|
10055
10067
|
}, W = (w) => {
|
|
@@ -10067,7 +10079,7 @@ const ko = {
|
|
|
10067
10079
|
lt,
|
|
10068
10080
|
mt,
|
|
10069
10081
|
T
|
|
10070
|
-
]),
|
|
10082
|
+
]), ei(() => {
|
|
10071
10083
|
const C = (W) => {
|
|
10072
10084
|
W.key === "Escape" && (g.length > 0 || T) && (R([]), D(null), G(null), h("none"), p(!1), v.doubleClickZoom.enable());
|
|
10073
10085
|
};
|
|
@@ -10081,9 +10093,9 @@ const ko = {
|
|
|
10081
10093
|
p,
|
|
10082
10094
|
v
|
|
10083
10095
|
]), /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
|
|
10084
|
-
|
|
10096
|
+
r.map((C) => /* @__PURE__ */ O.jsxs(Il.Fragment, { children: [
|
|
10085
10097
|
(l === "marker" || l === "all") && C.position && /* @__PURE__ */ O.jsx(
|
|
10086
|
-
|
|
10098
|
+
ca,
|
|
10087
10099
|
{
|
|
10088
10100
|
position: C.position,
|
|
10089
10101
|
draggable: C.draggable !== !1 && b,
|
|
@@ -10105,7 +10117,7 @@ const ko = {
|
|
|
10105
10117
|
}
|
|
10106
10118
|
),
|
|
10107
10119
|
(l === "polygon" || l === "all") && C.polygon && /* @__PURE__ */ O.jsx(
|
|
10108
|
-
|
|
10120
|
+
ua,
|
|
10109
10121
|
{
|
|
10110
10122
|
positions: C.polygon,
|
|
10111
10123
|
pathOptions: { color: C.color || "blue" },
|
|
@@ -10168,8 +10180,8 @@ const ko = {
|
|
|
10168
10180
|
}
|
|
10169
10181
|
)
|
|
10170
10182
|
] });
|
|
10171
|
-
},
|
|
10172
|
-
mode:
|
|
10183
|
+
}, or = ({
|
|
10184
|
+
mode: r = "all",
|
|
10173
10185
|
initialFeatures: l = [],
|
|
10174
10186
|
center: a = [45.7, 60.1],
|
|
10175
10187
|
zoom: h = 3,
|
|
@@ -10181,26 +10193,26 @@ const ko = {
|
|
|
10181
10193
|
disabled: g,
|
|
10182
10194
|
allowMarkerMovement: R = !0
|
|
10183
10195
|
}) => {
|
|
10184
|
-
const [T, D] = ee(l), [Z, G] = ee("none"), [S, Y] = ee(!1), [ft, X] = ee(0), U =
|
|
10196
|
+
const [T, D] = ee(l), [Z, G] = ee("none"), [S, Y] = ee(!1), [ft, X] = ee(0), U = St(
|
|
10185
10197
|
(W) => {
|
|
10186
10198
|
D(W), m && m(W);
|
|
10187
10199
|
},
|
|
10188
10200
|
[m]
|
|
10189
|
-
), lt =
|
|
10201
|
+
), lt = St(
|
|
10190
10202
|
(W) => {
|
|
10191
10203
|
S || G((w) => w === W ? "none" : W);
|
|
10192
10204
|
},
|
|
10193
10205
|
[S]
|
|
10194
|
-
), mt =
|
|
10206
|
+
), mt = St(() => {
|
|
10195
10207
|
Z === "polygon" && S && X((W) => W + 1);
|
|
10196
|
-
}, [Z, S]), C =
|
|
10208
|
+
}, [Z, S]), C = St(() => {
|
|
10197
10209
|
S || (U([]), G("none"));
|
|
10198
10210
|
}, [U, S]);
|
|
10199
|
-
return
|
|
10211
|
+
return ei(() => {
|
|
10200
10212
|
JSON.stringify(l) !== JSON.stringify(T) && D(l);
|
|
10201
10213
|
}, [l]), /* @__PURE__ */ O.jsxs("div", { className: `${b} ${g ? "pointer-events-none opacity-50" : ""}`, style: { position: "relative", ...v }, children: [
|
|
10202
10214
|
/* @__PURE__ */ O.jsxs(
|
|
10203
|
-
|
|
10215
|
+
ha,
|
|
10204
10216
|
{
|
|
10205
10217
|
center: a,
|
|
10206
10218
|
zoom: h,
|
|
@@ -10208,17 +10220,17 @@ const ko = {
|
|
|
10208
10220
|
doubleClickZoom: !0,
|
|
10209
10221
|
children: [
|
|
10210
10222
|
/* @__PURE__ */ O.jsx(
|
|
10211
|
-
|
|
10223
|
+
fa,
|
|
10212
10224
|
{
|
|
10213
10225
|
url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
10214
10226
|
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
|
10215
10227
|
}
|
|
10216
10228
|
),
|
|
10217
10229
|
/* @__PURE__ */ O.jsx(
|
|
10218
|
-
|
|
10230
|
+
Zl,
|
|
10219
10231
|
{
|
|
10220
10232
|
features: T,
|
|
10221
|
-
mode:
|
|
10233
|
+
mode: r,
|
|
10222
10234
|
drawingMode: Z,
|
|
10223
10235
|
setDrawingMode: G,
|
|
10224
10236
|
onFeaturesChange: U,
|
|
@@ -10231,7 +10243,7 @@ const ko = {
|
|
|
10231
10243
|
}
|
|
10232
10244
|
),
|
|
10233
10245
|
u && /* @__PURE__ */ O.jsx(
|
|
10234
|
-
|
|
10246
|
+
Rl,
|
|
10235
10247
|
{
|
|
10236
10248
|
position: p,
|
|
10237
10249
|
onAddMarker: () => lt("marker"),
|
|
@@ -10298,24 +10310,24 @@ const ko = {
|
|
|
10298
10310
|
}
|
|
10299
10311
|
)
|
|
10300
10312
|
] });
|
|
10301
|
-
},
|
|
10302
|
-
function
|
|
10303
|
-
initialValue:
|
|
10313
|
+
}, Dl = or;
|
|
10314
|
+
function Fl({
|
|
10315
|
+
initialValue: r,
|
|
10304
10316
|
options: l,
|
|
10305
10317
|
onChange: a,
|
|
10306
10318
|
disabled: h
|
|
10307
10319
|
}) {
|
|
10308
10320
|
return /* @__PURE__ */ O.jsx(
|
|
10309
|
-
|
|
10321
|
+
or,
|
|
10310
10322
|
{
|
|
10311
10323
|
...l,
|
|
10312
|
-
initialFeatures:
|
|
10324
|
+
initialFeatures: r ?? [],
|
|
10313
10325
|
onFeaturesChange: a,
|
|
10314
10326
|
disabled: h
|
|
10315
10327
|
}
|
|
10316
10328
|
);
|
|
10317
10329
|
}
|
|
10318
10330
|
export {
|
|
10319
|
-
|
|
10320
|
-
|
|
10331
|
+
Dl as Component,
|
|
10332
|
+
Fl as default
|
|
10321
10333
|
};
|