@revolugo/elements 6.8.2-beta.3 → 6.8.2-beta.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/dist/css/revolugo.bdaterangepicker.D1e8WHUE.css +1 -0
- package/dist/css/revolugo.bhoteloffersfilterbar.C1Hvm7FH.css +1 -0
- package/dist/css/revolugo.bimagecarousel.DFlgQMzq.css +1 -0
- package/dist/css/{revolugo.btag.g-q3eChG.css → revolugo.btag.CYbY5J61.css} +1 -1
- package/dist/css/revolugo.cancellationpoliciesbadge.CzUQOfdk.css +1 -0
- package/dist/css/{revolugo.hoteldescriptionview.CqUUU1fv.css → revolugo.hoteldescriptionview.BQ3adGPS.css} +1 -1
- package/dist/css/revolugo.hoteloffersview.CL1wiz4I.css +1 -0
- package/dist/css/{revolugo.hotelroomofferlist.DI_s2G5c.css → revolugo.hotelroomofferlist.CCKyS5V3.css} +1 -1
- package/dist/css/revolugo.index.DK7d_h6O.css +1 -0
- package/dist/css/revolugo.langpickerbtn.DTsRMVL8.css +1 -0
- package/dist/css/revolugo.vbadge.C45eZpxy.css +1 -0
- package/dist/css/revolugo.vbtn.DpMO1Ky2.css +1 -0
- package/dist/css/revolugo.vcard.TERzfknI.css +1 -0
- package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +1 -0
- package/dist/css/revolugo.vicon.eIkh7vVK.css +1 -0
- package/dist/css/revolugo.vlist.-Y4qkukF.css +1 -0
- package/dist/css/{revolugo.vtooltip.O8QDYs1J.css → revolugo.vslidegroup.ECiLCEE9.css} +1 -1
- package/dist/css/{revolugo.vsnackbar.Cj7AcupY.css → revolugo.vsnackbar.CCfuo3ao.css} +1 -1
- package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +1 -0
- package/dist/css/{revolugo.webcomponentwrapper.DRCKFwuk.css → revolugo.webcomponentwrapper.BNxGrktU.css} +2 -2
- package/dist/index.es.min.js +1954 -2161
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +6 -6
- package/dist/index.min.js.map +1 -1
- package/dist/revolugo._baseiteratee.Bxmf2YBQ.min.js +247 -0
- package/dist/{revolugo.banktransferdetails.B2ekby51.min.js → revolugo.banktransferdetails.SE8NErTw.min.js} +9 -9
- package/dist/revolugo.bdaterangepicker.Bs2pH95_.min.js +8328 -0
- package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DIWYLLE_.min.js +145 -0
- package/dist/revolugo.bhoteloffersfilterbar.gHx-XQIq.min.js +4724 -0
- package/dist/{revolugo.bhotelroomsdetails.B_oUGHlu.min.js → revolugo.bhotelroomsdetails.ByB7GIQB.min.js} +87 -90
- package/dist/{revolugo.bhotelsearchbar.CZZ7nrV4.min.js → revolugo.bhotelsearchbar.D4nP_Yeh.min.js} +119 -122
- package/dist/{revolugo.bimagecarousel.B0c13uQA.min.js → revolugo.bimagecarousel.DhA7fKr_.min.js} +178 -188
- package/dist/{revolugo.bookingdetailssidebar.Bs3FC4cg.min.js → revolugo.bookingdetailssidebar.Dd56Wy_U.min.js} +207 -221
- package/dist/{revolugo.bookingdetailssidebar.BGsPcF2v.min.js → revolugo.bookingdetailssidebar.lwfVw3hd.min.js} +4 -4
- package/dist/{revolugo.bookingmanager.CrXALVnI.min.js → revolugo.bookingmanager.CalvEAgz.min.js} +400 -419
- package/dist/{revolugo.bpricesummaryskeleton.8052AuK3.min.js → revolugo.bpricesummaryskeleton.C-X2i-r7.min.js} +4 -4
- package/dist/{revolugo.bstarrating.vue_vue_type_script_setup_true_lang.DxGtfGu-.min.js → revolugo.bstarrating.vue_vue_type_script_setup_true_lang.7yIt37GG.min.js} +148 -157
- package/dist/revolugo.btag.D9PcRagV.min.js +375 -0
- package/dist/revolugo.cancellationpoliciesbadge.BMTMxB84.min.js +198 -0
- package/dist/revolugo.cancellationpoliciesbadge.BS3sdT0j.min.js +28 -0
- package/dist/revolugo.cancellationpolicieslist.BlIDNloM.min.js +25 -0
- package/dist/{revolugo.cancellationpolicieslist.CurBz21i.min.js → revolugo.cancellationpolicieslist.CSKJ_RQf.min.js} +70 -98
- package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +21 -0
- package/dist/revolugo.case-transformers.wj5dY-62.min.js +123 -0
- package/dist/{revolugo.creditcardform.D35ZslX6.min.js → revolugo.creditcardform.58FDmjkc.min.js} +4 -4
- package/dist/{revolugo.creditcardform.Zgq-wqLH.min.js → revolugo.creditcardform.DjHXUGaT.min.js} +53 -66
- package/dist/{revolugo.creditcardpayment.BpY-gafO.min.js → revolugo.creditcardpayment.CXIZBeLQ.min.js} +4 -4
- package/dist/{revolugo.creditcardpayment.B3gGpWtL.min.js → revolugo.creditcardpayment.eNRvC7VG.min.js} +152 -160
- package/dist/{revolugo.currencypicker.BgqkzwCT.min.js → revolugo.currencypicker.mpJHETlw.min.js} +8 -8
- package/dist/{revolugo.currencypickerbtn.0iqvXHCJ.min.js → revolugo.currencypickerbtn.BT4gJYck.min.js} +42 -45
- package/dist/{revolugo.currencypickerbtn.CL_hu26M.min.js → revolugo.currencypickerbtn.DcaNmmTa.min.js} +4 -4
- package/dist/{revolugo.defaultsdeep.CCR2LAoW.min.js → revolugo.defaultsdeep.B15U6I23.min.js} +32 -32
- package/dist/{revolugo.dialog-attach.t7JTHXax.min.js → revolugo.dialog-attach.Kn52rX5V.min.js} +5 -6
- package/dist/revolugo.dialog-transition.K64Up6o5.min.js +111 -0
- package/dist/{revolugo.fastbookingflow.D5i5QakB.min.js → revolugo.fastbookingflow.DSWy6Ys3.min.js} +4 -4
- package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +70 -0
- package/dist/{revolugo.fullbookingflow.B3R9Mi6f.min.js → revolugo.fullbookingflow.BLumv8em.min.js} +122 -128
- package/dist/revolugo.hotel-offer-request.08Q8GaoF.min.js +98 -0
- package/dist/{revolugo.hoteldescriptionview.mr1BBzFi.min.js → revolugo.hoteldescriptionview.BCrpDoH8.min.js} +595 -645
- package/dist/{revolugo.hoteldescriptionview.0om5ATP0.min.js → revolugo.hoteldescriptionview.BOhmeT2B.min.js} +4 -4
- package/dist/{revolugo.hotelofferitemlayout.CpMoPSRH.min.js → revolugo.hotelofferitemlayout.iXqLrvQm.min.js} +8 -8
- package/dist/{revolugo.hotelofferlist.DRdkrfqu.min.js → revolugo.hotelofferlist.0NPXq55P.min.js} +1566 -1703
- package/dist/{revolugo.hotelofferlist.Bb-RsXSl.min.js → revolugo.hotelofferlist.DjUTqa2K.min.js} +4 -4
- package/dist/{revolugo.hotelofferrequestcreator.f8olJbDW.min.js → revolugo.hotelofferrequestcreator.BURjSAMm.min.js} +16 -15
- package/dist/revolugo.hoteloffersearchmenu.Dgq9VEmx.min.js +47 -0
- package/dist/{revolugo.hoteloffersmap.BjjBIhE9.min.js → revolugo.hoteloffersmap.BnqHPNt1.min.js} +570 -582
- package/dist/{revolugo.hoteloffersmap.BleGDfiI.min.js → revolugo.hoteloffersmap.CeDXd2FY.min.js} +4 -4
- package/dist/{revolugo.hoteloffersview.DyWUZJ-a.min.js → revolugo.hoteloffersview.Bih_7gfI.min.js} +121 -124
- package/dist/{revolugo.hoteloffersview.M1WJegEH.min.js → revolugo.hoteloffersview.D_H5aGBv.min.js} +4 -4
- package/dist/{revolugo.hotelroomofferlist.7bwYQgtE.min.js → revolugo.hotelroomofferlist.CXald_sS.min.js} +4 -4
- package/dist/{revolugo.hotelroomofferlist.Dr11epuR.min.js → revolugo.hotelroomofferlist.O0tRAgZS.min.js} +742 -799
- package/dist/{revolugo.hotelroomofferrequestcreator.props.DUhujwnh.min.js → revolugo.hotelroomofferrequestcreator.props.CVwr05si.min.js} +6 -6
- package/dist/{revolugo.hotelroomoffersbookingflow.CKjKX7Kc.min.js → revolugo.hotelroomoffersbookingflow.DGKPam4L.min.js} +332 -357
- package/dist/{revolugo.hotelroomoffersearchmenu.CT-i5FLW.min.js → revolugo.hotelroomoffersearchmenu.DfCU58yl.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersearchmenu.9fzTS1um.min.js → revolugo.hotelroomoffersearchmenu.ElcYfITq.min.js} +34 -36
- package/dist/{revolugo.hotelroomoffersview.D2XUHzuN.min.js → revolugo.hotelroomoffersview.BDUFPxQD.min.js} +68 -71
- package/dist/{revolugo.hotelroomoffersview.iTt3yxQK.min.js → revolugo.hotelroomoffersview.YYq7-L5h.min.js} +4 -4
- package/dist/revolugo.index.bIefP9Di.min.js +1232 -0
- package/dist/{revolugo.index.wc.CNPB8R3P.min.js → revolugo.index.wc.CVg-U7Gx.min.js} +11067 -11546
- package/dist/revolugo.langpicker.Ccsg-lEF.min.js +96 -0
- package/dist/revolugo.langpickerbtn.CM2mTy7Y.min.js +29 -0
- package/dist/revolugo.langpickerbtn.DyJ4Olno.min.js +125 -0
- package/dist/revolugo.min.js +1 -1
- package/dist/revolugo.pathify.BlrRHScz.min.js +58 -0
- package/dist/{revolugo.prebookform.CDoJAivN.min.js → revolugo.prebookform.B8gqQx-H.min.js} +4 -4
- package/dist/{revolugo.prebookform.DhCYUQX2.min.js → revolugo.prebookform.fhOF5rTL.min.js} +98 -102
- package/dist/{revolugo.roominglisteditor.Dgtcs_-O.min.js → revolugo.roominglisteditor.CB2ZVVIX.min.js} +98 -104
- package/dist/{revolugo.roominglisteditor.DvUmxfal.min.js → revolugo.roominglisteditor.LxMxvTG6.min.js} +4 -4
- package/dist/{revolugo.rounded.Dulx85qq.min.js → revolugo.rounded.CdTdATPg.min.js} +2 -2
- package/dist/{revolugo.ssrboot.CTe1vadS.min.js → revolugo.ssrboot.D-F25G2D.min.js} +4 -4
- package/dist/{revolugo.storybooktoolbar.D182Uwjq.min.js → revolugo.storybooktoolbar.BDi7kzis.min.js} +144 -144
- package/dist/{revolugo.termsandconditions.BSpX2Wim.min.js → revolugo.termsandconditions.DZ84e8oM.min.js} +52 -55
- package/dist/{revolugo.termsandconditions.DvldqW3w.min.js → revolugo.termsandconditions.ILptE4WJ.min.js} +4 -4
- package/dist/revolugo.use-breakpoint-service.DPvOP-XF.min.js +39 -0
- package/dist/revolugo.use-html-element.Dfl5QKN-.min.js +11 -0
- package/dist/revolugo.vautocomplete.DBPq0WdQ.min.js +445 -0
- package/dist/revolugo.vbadge.CU5xYZyW.min.js +112 -0
- package/dist/revolugo.vbtn.X3RP4Z34.min.js +398 -0
- package/dist/revolugo.vcard.DfYEYCIx.min.js +313 -0
- package/dist/revolugo.vcheckboxbtn.DLdpGWrK.min.js +478 -0
- package/dist/revolugo.vdialog.A3glfkAC.min.js +133 -0
- package/dist/{revolugo.vdivider.Cq5RMY7t.min.js → revolugo.vdivider.C8Jprud4.min.js} +3 -3
- package/dist/revolugo.vexpansionpanels.xliCx-5-.min.js +262 -0
- package/dist/revolugo.vform.BYdqOlKN.min.js +46 -0
- package/dist/revolugo.vicon.DGbfBJIw.min.js +105 -0
- package/dist/revolugo.vinput.Bh9hEdMF.min.js +463 -0
- package/dist/revolugo.vlabel.Dx1aNiVc.min.js +48 -0
- package/dist/revolugo.vlist.BMwn1ihP.min.js +1299 -0
- package/dist/revolugo.vmenu.ByEEPO9y.min.js +145 -0
- package/dist/revolugo.vselect.Dzd6zNRa.min.js +660 -0
- package/dist/{revolugo.vsheet.AqixfoVv.min.js → revolugo.vsheet.C7bJI8gr.min.js} +10 -10
- package/dist/{revolugo.vskeletonloader.BUxAIEgD.min.js → revolugo.vskeletonloader.DcVdfRoT.min.js} +57 -58
- package/dist/revolugo.vslidegroup.DrV2UvdN.min.js +325 -0
- package/dist/revolugo.vsnackbar.C_2qY4Nh.min.js +198 -0
- package/dist/revolugo.vspacer.CP17be9N.min.js +7 -0
- package/dist/{revolugo.vtextarea.ByrL6SoY.min.js → revolugo.vtextarea.CPnC6tk4.min.js} +361 -371
- package/dist/revolugo.vtextfield.CnjNadCm.min.js +501 -0
- package/dist/revolugo.vtoolbar.CpgasmNE.min.js +180 -0
- package/dist/revolugo.vtooltip.F6cVVKxe.min.js +89 -0
- package/dist/revolugo.vwindowitem.BZMm5BTu.min.js +317 -0
- package/dist/revolugo.watch-list.Bnuh1CzH.min.js +16 -0
- package/dist/{revolugo.webcomponentwrapper.Ci87Oown.min.js → revolugo.webcomponentwrapper.DY-mO-0c.min.js} +775 -821
- package/package.json +1 -1
- package/dist/css/revolugo.bdaterangepicker.BLYZnPjh.css +0 -1
- package/dist/css/revolugo.bhoteloffersfilterbar.1tLwDxXe.css +0 -1
- package/dist/css/revolugo.bimagecarousel.BvgD1yrr.css +0 -1
- package/dist/css/revolugo.cancellationpoliciesbadge.CwgZ0PpX.css +0 -1
- package/dist/css/revolugo.hoteloffersview.oDGeJCwG.css +0 -1
- package/dist/css/revolugo.index.DQ3Yd6SO.css +0 -1
- package/dist/css/revolugo.langpickerbtn.D2iA6mCb.css +0 -1
- package/dist/css/revolugo.position.7fn84IQ5.css +0 -1
- package/dist/css/revolugo.vbadge.BQrRJ9S0.css +0 -1
- package/dist/css/revolugo.vbtn.BU0YQ6en.css +0 -1
- package/dist/css/revolugo.vcard.B8jNYFn_.css +0 -1
- package/dist/css/revolugo.vcheckboxbtn.BQ05xI0T.css +0 -1
- package/dist/css/revolugo.vlist.BkGS0yqt.css +0 -1
- package/dist/revolugo.bdaterangepicker.CTD21Xkh.min.js +0 -8435
- package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DFgVEyLr.min.js +0 -61
- package/dist/revolugo.bhoteloffersfilterbar.C677v5nL.min.js +0 -4689
- package/dist/revolugo.btag.BWSoB2pK.min.js +0 -387
- package/dist/revolugo.cancellationpoliciesbadge.B19weMQp.min.js +0 -225
- package/dist/revolugo.cancellationpoliciesbadge.CvnUmIqX.min.js +0 -24
- package/dist/revolugo.cancellationpolicieslist.BsjkpRRW.min.js +0 -24
- package/dist/revolugo.case-transformers.Oo4YCZeL.min.js +0 -123
- package/dist/revolugo.dialog-transition.Cot8jmLN.min.js +0 -114
- package/dist/revolugo.forwardrefs.-bfQnFea.min.js +0 -71
- package/dist/revolugo.hoteloffersearchmenu.CLH7PdDD.min.js +0 -46
- package/dist/revolugo.index.CDltx0TU.min.js +0 -1037
- package/dist/revolugo.index.D5-DO18f.min.js +0 -13
- package/dist/revolugo.langpicker.Df8h8dCw.min.js +0 -107
- package/dist/revolugo.langpickerbtn.CIKlUC4J.min.js +0 -178
- package/dist/revolugo.langpickerbtn.CMIJmkLf.min.js +0 -24
- package/dist/revolugo.position.BFDPs3FP.min.js +0 -322
- package/dist/revolugo.use-breakpoint-service.CEx6DRka.min.js +0 -106
- package/dist/revolugo.vautocomplete.DNxDeH8S.min.js +0 -466
- package/dist/revolugo.vbadge.DqpIeIfj.min.js +0 -118
- package/dist/revolugo.vbtn.DsvUpshD.min.js +0 -417
- package/dist/revolugo.vcard.D1VwO30r.min.js +0 -329
- package/dist/revolugo.vcheckboxbtn.BnbOlneq.min.js +0 -491
- package/dist/revolugo.vdialog.rsw4VlQE.min.js +0 -139
- package/dist/revolugo.vexpansionpanels.Cy-T-RLA.min.js +0 -276
- package/dist/revolugo.vform.CO-9AfdO.min.js +0 -50
- package/dist/revolugo.vinput.DEbpex7C.min.js +0 -477
- package/dist/revolugo.vlabel.CBGmCU1C.min.js +0 -51
- package/dist/revolugo.vlist.BzvP4Aad.min.js +0 -1348
- package/dist/revolugo.vmenu.CIfiL0Ib.min.js +0 -152
- package/dist/revolugo.vselect.CDieig82.min.js +0 -688
- package/dist/revolugo.vsnackbar.D5nwTNfd.min.js +0 -202
- package/dist/revolugo.vspacer.Dv72HR_2.min.js +0 -7
- package/dist/revolugo.vtextfield.Br_yyf1t.min.js +0 -509
- package/dist/revolugo.vtoolbar.VPqzB-yU.min.js +0 -188
- package/dist/revolugo.vtooltip.CI_oDjbQ.min.js +0 -395
- package/dist/revolugo.vwindowitem.IF1zLcjR.min.js +0 -329
- package/dist/revolugo.watch-list.BD0XoO1O.min.js +0 -16
package/dist/{revolugo.hoteloffersmap.BjjBIhE9.min.js → revolugo.hoteloffersmap.BnqHPNt1.min.js}
RENAMED
@@ -1,18 +1,17 @@
|
|
1
|
-
import {
|
2
|
-
import { h as Br, H as Ir } from "./revolugo.hotelofferrequestcreator.
|
3
|
-
import { H as Zr, a as Ji, D as Rr, p as Nr,
|
4
|
-
import { _ as en, B as
|
5
|
-
import { _ as
|
6
|
-
import { V as Yt } from "./revolugo.
|
7
|
-
import {
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import {
|
11
|
-
import {
|
12
|
-
import { V as
|
13
|
-
import { V as
|
14
|
-
import {
|
15
|
-
import { a as Xi } from "./revolugo.vbtn.DsvUpshD.min.js";
|
1
|
+
import { ae as xr, d as Pt, af as se, D as st, T as Ft, ag as Xt, R as Et, ah as Vt, U as ui, ai as Tr, aj as Ht, G as ri, M as vo, ak as $i, al as Mr, u as tn, i as ut, e as oe, g as gt, a as U, w as A, f as Lt, y as Qi, t as At, r as lt, B as ve, o as Z, c as et, b as Or, L as Sr, E as ji, am as Cr, ad as kr, A as zr, F as _e, I as Ar, J as Er, z as Gi, j as yo, x as Ki } from "./revolugo.index.wc.CVg-U7Gx.min.js";
|
2
|
+
import { h as Br, H as Ir } from "./revolugo.hotelofferrequestcreator.BURjSAMm.min.js";
|
3
|
+
import { H as Zr, a as Ji, D as Rr, p as Nr, c as Dr, B as Hr, d as Fr, u as Vr } from "./revolugo.bhoteloffersfilterbar.gHx-XQIq.min.js";
|
4
|
+
import { _ as en, B as Wr, c as Ur } from "./revolugo.webcomponentwrapper.DY-mO-0c.min.js";
|
5
|
+
import { _ as qr } from "./revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DIWYLLE_.min.js";
|
6
|
+
import { V as Yt } from "./revolugo.vicon.DGbfBJIw.min.js";
|
7
|
+
import { p as Yi } from "./revolugo.bstarrating.vue_vue_type_script_setup_true_lang.7yIt37GG.min.js";
|
8
|
+
import { w as jr } from "./revolugo.watch-list.Bnuh1CzH.min.js";
|
9
|
+
import { u as Gr } from "./revolugo.hotelroomofferrequestcreator.props.CVwr05si.min.js";
|
10
|
+
import { p as Kr, g as ge } from "./revolugo.pathify.BlrRHScz.min.js";
|
11
|
+
import { V as Jr } from "./revolugo.vskeletonloader.DcVdfRoT.min.js";
|
12
|
+
import { V as Yr } from "./revolugo.index.bIefP9Di.min.js";
|
13
|
+
import { V as ai } from "./revolugo.vtooltip.F6cVVKxe.min.js";
|
14
|
+
import { a as Xi } from "./revolugo.vbtn.X3RP4Z34.min.js";
|
16
15
|
function Pr(r) {
|
17
16
|
try {
|
18
17
|
if (typeof document < "u") {
|
@@ -20,13 +19,13 @@ function Pr(r) {
|
|
20
19
|
sheets: [],
|
21
20
|
components: []
|
22
21
|
};
|
23
|
-
const l = import.meta.url,
|
24
|
-
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(
|
22
|
+
const l = import.meta.url, h = l.slice(0, l.lastIndexOf("/") + 1) + r;
|
23
|
+
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(h);
|
25
24
|
for (const d of REVOLUGO_ELEMENTS_STYLES.components)
|
26
|
-
d(
|
25
|
+
d(h);
|
27
26
|
if (r.indexOf("fonts") >= 0) {
|
28
27
|
const d = document.createElement("link");
|
29
|
-
d.rel = "stylesheet", linK.href =
|
28
|
+
d.rel = "stylesheet", linK.href = h, document.head.appendChild(d);
|
30
29
|
}
|
31
30
|
}
|
32
31
|
} catch (l) {
|
@@ -34,8 +33,8 @@ function Pr(r) {
|
|
34
33
|
}
|
35
34
|
}
|
36
35
|
function Xr(r, l) {
|
37
|
-
for (var
|
38
|
-
const d = l[
|
36
|
+
for (var h = 0; h < l.length; h++) {
|
37
|
+
const d = l[h];
|
39
38
|
if (typeof d != "string" && !Array.isArray(d)) {
|
40
39
|
for (const p in d)
|
41
40
|
if (p !== "default" && !(p in r)) {
|
@@ -92,17 +91,17 @@ const Mo = {
|
|
92
91
|
type: [String, Object]
|
93
92
|
}
|
94
93
|
};
|
95
|
-
var
|
94
|
+
var Ze = { exports: {} };
|
96
95
|
/* @preserve
|
97
96
|
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
98
97
|
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
99
98
|
*/
|
100
|
-
var $r =
|
99
|
+
var $r = Ze.exports, wo;
|
101
100
|
function ta() {
|
102
101
|
return wo || (wo = 1, function(r, l) {
|
103
|
-
(function(
|
102
|
+
(function(h, d) {
|
104
103
|
d(l);
|
105
|
-
})($r, function(
|
104
|
+
})($r, function(h) {
|
106
105
|
var d = "1.9.4";
|
107
106
|
function p(t) {
|
108
107
|
var e, i, n, o;
|
@@ -134,11 +133,11 @@ function ta() {
|
|
134
133
|
return "_leaflet_id" in t || (t._leaflet_id = ++T), t._leaflet_id;
|
135
134
|
}
|
136
135
|
function E(t, e, i) {
|
137
|
-
var n, o, s,
|
138
|
-
return
|
136
|
+
var n, o, s, a;
|
137
|
+
return a = function() {
|
139
138
|
n = !1, o && (s.apply(i, o), o = !1);
|
140
139
|
}, s = function() {
|
141
|
-
n ? o = arguments : (t.apply(i, arguments), setTimeout(
|
140
|
+
n ? o = arguments : (t.apply(i, arguments), setTimeout(a, e), n = !0);
|
142
141
|
}, s;
|
143
142
|
}
|
144
143
|
function x(t, e, i) {
|
@@ -190,19 +189,19 @@ function ta() {
|
|
190
189
|
return i;
|
191
190
|
return -1;
|
192
191
|
}
|
193
|
-
var
|
194
|
-
function
|
192
|
+
var rt = "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";
|
193
|
+
function at(t) {
|
195
194
|
return window["webkit" + t] || window["moz" + t] || window["ms" + t];
|
196
195
|
}
|
197
|
-
var
|
196
|
+
var He = 0;
|
198
197
|
function qt(t) {
|
199
|
-
var e = +/* @__PURE__ */ new Date(), i = Math.max(0, 16 - (e -
|
200
|
-
return
|
198
|
+
var e = +/* @__PURE__ */ new Date(), i = Math.max(0, 16 - (e - He));
|
199
|
+
return He = e + i, window.setTimeout(t, i);
|
201
200
|
}
|
202
|
-
var z = window.requestAnimationFrame ||
|
201
|
+
var z = window.requestAnimationFrame || at("RequestAnimationFrame") || qt, j = window.cancelAnimationFrame || at("CancelAnimationFrame") || at("CancelRequestAnimationFrame") || function(t) {
|
203
202
|
window.clearTimeout(t);
|
204
203
|
};
|
205
|
-
function
|
204
|
+
function nt(t, e, i) {
|
206
205
|
if (i && z === qt)
|
207
206
|
t.call(e);
|
208
207
|
else
|
@@ -231,10 +230,10 @@ function ta() {
|
|
231
230
|
template: X,
|
232
231
|
isArray: V,
|
233
232
|
indexOf: w,
|
234
|
-
emptyImageUrl:
|
233
|
+
emptyImageUrl: rt,
|
235
234
|
requestFn: z,
|
236
235
|
cancelFn: j,
|
237
|
-
requestAnimFrame:
|
236
|
+
requestAnimFrame: nt,
|
238
237
|
cancelAnimFrame: vt
|
239
238
|
};
|
240
239
|
function Bt() {
|
@@ -249,7 +248,7 @@ function ta() {
|
|
249
248
|
return t.statics && p(e, t.statics), t.includes && (Qo(t.includes), p.apply(null, [n].concat(t.includes))), p(n, t), delete n.statics, delete n.includes, n.options && (n.options = i.options ? m(i.options) : {}, p(n.options, t.options)), n._initHooks = [], n.callInitHooks = function() {
|
250
249
|
if (!this._initHooksCalled) {
|
251
250
|
i.callInitHooks && i.callInitHooks.call(this), this._initHooksCalled = !0;
|
252
|
-
for (var s = 0,
|
251
|
+
for (var s = 0, a = n._initHooks.length; s < a; s++)
|
253
252
|
n._initHooks[s].call(this);
|
254
253
|
}
|
255
254
|
}, e;
|
@@ -309,7 +308,7 @@ function ta() {
|
|
309
308
|
this._off(n, t[n], e);
|
310
309
|
else {
|
311
310
|
t = G(t);
|
312
|
-
for (var o = arguments.length === 1, s = 0,
|
311
|
+
for (var o = arguments.length === 1, s = 0, a = t.length; s < a; s++)
|
313
312
|
o ? this._off(t[s]) : this._off(t[s], e, i);
|
314
313
|
}
|
315
314
|
return this;
|
@@ -340,10 +339,10 @@ function ta() {
|
|
340
339
|
console.warn("wrong listener type: " + typeof e);
|
341
340
|
return;
|
342
341
|
}
|
343
|
-
var
|
344
|
-
if (
|
345
|
-
var u = n[
|
346
|
-
this._firingCount && (u.fn = b, this._events[t] = n = n.slice()), n.splice(
|
342
|
+
var a = this._listens(t, e, i);
|
343
|
+
if (a !== !1) {
|
344
|
+
var u = n[a];
|
345
|
+
this._firingCount && (u.fn = b, this._events[t] = n = n.slice()), n.splice(a, 1);
|
347
346
|
}
|
348
347
|
}
|
349
348
|
},
|
@@ -363,7 +362,7 @@ function ta() {
|
|
363
362
|
var o = this._events[t];
|
364
363
|
if (o) {
|
365
364
|
this._firingCount = this._firingCount + 1 || 1;
|
366
|
-
for (var s = 0,
|
365
|
+
for (var s = 0, a = o.length; s < a; s++) {
|
367
366
|
var u = o[s], c = u.fn;
|
368
367
|
u.once && this.off(t, c, u.ctx), c.call(u.ctx || this, n);
|
369
368
|
}
|
@@ -384,8 +383,8 @@ function ta() {
|
|
384
383
|
if (s && s.length && this._listens(t, o, i) !== !1)
|
385
384
|
return !0;
|
386
385
|
if (n) {
|
387
|
-
for (var
|
388
|
-
if (this._eventParents[
|
386
|
+
for (var a in this._eventParents)
|
387
|
+
if (this._eventParents[a].listens(t, e, i, n))
|
389
388
|
return !0;
|
390
389
|
}
|
391
390
|
return !1;
|
@@ -435,7 +434,7 @@ function ta() {
|
|
435
434
|
}
|
436
435
|
};
|
437
436
|
_t.addEventListener = _t.on, _t.removeEventListener = _t.clearAllEventListeners = _t.off, _t.addOneTimeEventListener = _t.once, _t.fireEvent = _t.fire, _t.hasEventListeners = _t.listens;
|
438
|
-
var
|
437
|
+
var be = Bt.extend(_t);
|
439
438
|
function O(t, e, i) {
|
440
439
|
this.x = i ? Math.round(t) : t, this.y = i ? Math.round(e) : e;
|
441
440
|
}
|
@@ -621,16 +620,16 @@ function ta() {
|
|
621
620
|
// intersect if they have at least one point in common.
|
622
621
|
intersects: function(t) {
|
623
622
|
t = dt(t);
|
624
|
-
var e = this.min, i = this.max, n = t.min, o = t.max, s = o.x >= e.x && n.x <= i.x,
|
625
|
-
return s &&
|
623
|
+
var e = this.min, i = this.max, n = t.min, o = t.max, s = o.x >= e.x && n.x <= i.x, a = o.y >= e.y && n.y <= i.y;
|
624
|
+
return s && a;
|
626
625
|
},
|
627
626
|
// @method overlaps(otherBounds: Bounds): Boolean
|
628
627
|
// Returns `true` if the rectangle overlaps the given bounds. Two bounds
|
629
628
|
// overlap if their intersection is an area.
|
630
629
|
overlaps: function(t) {
|
631
630
|
t = dt(t);
|
632
|
-
var e = this.min, i = this.max, n = t.min, o = t.max, s = o.x > e.x && n.x < i.x,
|
633
|
-
return s &&
|
631
|
+
var e = this.min, i = this.max, n = t.min, o = t.max, s = o.x > e.x && n.x < i.x, a = o.y > e.y && n.y < i.y;
|
632
|
+
return s && a;
|
634
633
|
},
|
635
634
|
// @method isValid(): Boolean
|
636
635
|
// Returns `true` if the bounds are properly initialized.
|
@@ -752,15 +751,15 @@ function ta() {
|
|
752
751
|
// Returns `true` if the rectangle intersects the given bounds. Two bounds intersect if they have at least one point in common.
|
753
752
|
intersects: function(t) {
|
754
753
|
t = Q(t);
|
755
|
-
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), o = t.getNorthEast(), s = o.lat >= e.lat && n.lat <= i.lat,
|
756
|
-
return s &&
|
754
|
+
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), o = t.getNorthEast(), s = o.lat >= e.lat && n.lat <= i.lat, a = o.lng >= e.lng && n.lng <= i.lng;
|
755
|
+
return s && a;
|
757
756
|
},
|
758
757
|
// @method overlaps(otherBounds: LatLngBounds): Boolean
|
759
758
|
// Returns `true` if the rectangle overlaps the given bounds. Two bounds overlap if their intersection is an area.
|
760
759
|
overlaps: function(t) {
|
761
760
|
t = Q(t);
|
762
|
-
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), o = t.getNorthEast(), s = o.lat > e.lat && n.lat < i.lat,
|
763
|
-
return s &&
|
761
|
+
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), o = t.getNorthEast(), s = o.lat > e.lat && n.lat < i.lat, a = o.lng > e.lng && n.lng < i.lng;
|
762
|
+
return s && a;
|
764
763
|
},
|
765
764
|
// @method toBBoxString(): String
|
766
765
|
// 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.
|
@@ -909,7 +908,7 @@ function ta() {
|
|
909
908
|
var e = t.getCenter(), i = this.wrapLatLng(e), n = e.lat - i.lat, o = e.lng - i.lng;
|
910
909
|
if (n === 0 && o === 0)
|
911
910
|
return t;
|
912
|
-
var s = t.getSouthWest(),
|
911
|
+
var s = t.getSouthWest(), a = t.getNorthEast(), u = new F(s.lat - n, s.lng - o), c = new F(a.lat - n, a.lng - o);
|
913
912
|
return new ft(u, c);
|
914
913
|
}
|
915
914
|
}, jt = p({}, It, {
|
@@ -920,7 +919,7 @@ function ta() {
|
|
920
919
|
R: 6371e3,
|
921
920
|
// distance between two geographical points using spherical law of cosines approximation
|
922
921
|
distance: function(t, e) {
|
923
|
-
var i = Math.PI / 180, n = t.lat * i, o = e.lat * i, s = Math.sin((e.lat - t.lat) * i / 2),
|
922
|
+
var i = Math.PI / 180, n = t.lat * i, o = e.lat * i, s = Math.sin((e.lat - t.lat) * i / 2), a = Math.sin((e.lng - t.lng) * i / 2), u = s * s + Math.cos(n) * Math.cos(o) * a * a, c = 2 * Math.atan2(Math.sqrt(u), Math.sqrt(1 - u));
|
924
923
|
return this.R * c;
|
925
924
|
}
|
926
925
|
}), an = 6378137, di = {
|
@@ -973,7 +972,7 @@ function ta() {
|
|
973
972
|
);
|
974
973
|
}
|
975
974
|
};
|
976
|
-
function
|
975
|
+
function Le(t, e, i, n) {
|
977
976
|
return new fi(t, e, i, n);
|
978
977
|
}
|
979
978
|
var pi = p({}, jt, {
|
@@ -981,7 +980,7 @@ function ta() {
|
|
981
980
|
projection: di,
|
982
981
|
transformation: function() {
|
983
982
|
var t = 0.5 / (Math.PI * di.R);
|
984
|
-
return
|
983
|
+
return Le(t, 0.5, -t, 0.5);
|
985
984
|
}()
|
986
985
|
}), $o = p({}, pi, {
|
987
986
|
code: "EPSG:900913"
|
@@ -990,15 +989,15 @@ function ta() {
|
|
990
989
|
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
991
990
|
}
|
992
991
|
function ln(t, e) {
|
993
|
-
var i = "", n, o, s,
|
992
|
+
var i = "", n, o, s, a, u, c;
|
994
993
|
for (n = 0, s = t.length; n < s; n++) {
|
995
|
-
for (u = t[n], o = 0,
|
994
|
+
for (u = t[n], o = 0, a = u.length; o < a; o++)
|
996
995
|
c = u[o], i += (o ? "L" : "M") + c.x + " " + c.y;
|
997
996
|
i += e ? y.svg ? "z" : "x" : "";
|
998
997
|
}
|
999
998
|
return i || "M0 0";
|
1000
999
|
}
|
1001
|
-
var mi = document.documentElement.style, Fe = "ActiveXObject" in window, ts = Fe && !document.addEventListener, un = "msLaunchUri" in navigator && !("documentMode" in document), _i = St("webkit"), cn = St("android"), dn = St("android 2") || St("android 3"), es = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), is = cn && St("Google") && es < 537 && !("AudioNode" in window), gi = !!window.opera, fn = !un && St("chrome"), pn = St("gecko") && !_i && !gi && !Fe, ns = !fn && St("safari"), mn = St("phantom"), _n = "OTransition" in mi, os = navigator.platform.indexOf("Win") === 0, gn = Fe && "transition" in mi, vi = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !dn, vn = "MozPerspective" in mi, ss = !window.L_DISABLE_3D && (gn || vi || vn) && !_n && !mn,
|
1000
|
+
var mi = document.documentElement.style, Fe = "ActiveXObject" in window, ts = Fe && !document.addEventListener, un = "msLaunchUri" in navigator && !("documentMode" in document), _i = St("webkit"), cn = St("android"), dn = St("android 2") || St("android 3"), es = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), is = cn && St("Google") && es < 537 && !("AudioNode" in window), gi = !!window.opera, fn = !un && St("chrome"), pn = St("gecko") && !_i && !gi && !Fe, ns = !fn && St("safari"), mn = St("phantom"), _n = "OTransition" in mi, os = navigator.platform.indexOf("Win") === 0, gn = Fe && "transition" in mi, vi = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !dn, vn = "MozPerspective" in mi, ss = !window.L_DISABLE_3D && (gn || vi || vn) && !_n && !mn, Pe = typeof orientation < "u" || St("mobile"), rs = Pe && _i, as = Pe && vi, yn = !window.PointerEvent && window.MSPointerEvent, wn = !!(window.PointerEvent || yn), bn = "ontouchstart" in window || !!window.TouchEvent, hs = !window.L_NO_TOUCH && (bn || wn), ls = Pe && gi, us = Pe && pn, cs = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, ds = function() {
|
1002
1001
|
var t = !1;
|
1003
1002
|
try {
|
1004
1003
|
var e = Object.defineProperty({}, "passive", {
|
@@ -1047,7 +1046,7 @@ function ta() {
|
|
1047
1046
|
webkit3d: vi,
|
1048
1047
|
gecko3d: vn,
|
1049
1048
|
any3d: ss,
|
1050
|
-
mobile:
|
1049
|
+
mobile: Pe,
|
1051
1050
|
mobileWebkit: rs,
|
1052
1051
|
mobileWebkit3d: as,
|
1053
1052
|
msPointer: yn,
|
@@ -1074,7 +1073,7 @@ function ta() {
|
|
1074
1073
|
touchmove: Ve,
|
1075
1074
|
touchend: Ve,
|
1076
1075
|
touchcancel: Ve
|
1077
|
-
},
|
1076
|
+
}, ae = {}, On = !1;
|
1078
1077
|
function vs(t, e, i) {
|
1079
1078
|
return e === "touchstart" && Ls(), Mn[e] ? (i = Mn[e].bind(this, i), t.addEventListener(wi[e], i, !1), i) : (console.warn("wrong event specified:", e), b);
|
1080
1079
|
}
|
@@ -1086,13 +1085,13 @@ function ta() {
|
|
1086
1085
|
t.removeEventListener(wi[e], i, !1);
|
1087
1086
|
}
|
1088
1087
|
function ws(t) {
|
1089
|
-
|
1088
|
+
ae[t.pointerId] = t;
|
1090
1089
|
}
|
1091
1090
|
function bs(t) {
|
1092
|
-
|
1091
|
+
ae[t.pointerId] && (ae[t.pointerId] = t);
|
1093
1092
|
}
|
1094
1093
|
function Sn(t) {
|
1095
|
-
delete
|
1094
|
+
delete ae[t.pointerId];
|
1096
1095
|
}
|
1097
1096
|
function Ls() {
|
1098
1097
|
On || (document.addEventListener(Ln, ws, !0), document.addEventListener(Pn, bs, !0), document.addEventListener(xn, Sn, !0), document.addEventListener(Tn, Sn, !0), On = !0);
|
@@ -1100,13 +1099,13 @@ function ta() {
|
|
1100
1099
|
function Ve(t, e) {
|
1101
1100
|
if (e.pointerType !== (e.MSPOINTER_TYPE_MOUSE || "mouse")) {
|
1102
1101
|
e.touches = [];
|
1103
|
-
for (var i in
|
1104
|
-
e.touches.push(
|
1102
|
+
for (var i in ae)
|
1103
|
+
e.touches.push(ae[i]);
|
1105
1104
|
e.changedTouches = [e], t(e);
|
1106
1105
|
}
|
1107
1106
|
}
|
1108
1107
|
function Ps(t, e) {
|
1109
|
-
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH &&
|
1108
|
+
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && ot(e), Ve(t, e);
|
1110
1109
|
}
|
1111
1110
|
function xs(t) {
|
1112
1111
|
var e = {}, i, n;
|
@@ -1124,10 +1123,10 @@ function ta() {
|
|
1124
1123
|
return;
|
1125
1124
|
}
|
1126
1125
|
if (!(s.pointerType === "mouse" || s.sourceCapabilities && !s.sourceCapabilities.firesTouchEvents)) {
|
1127
|
-
var
|
1128
|
-
if (!(
|
1126
|
+
var a = En(s);
|
1127
|
+
if (!(a.some(function(c) {
|
1129
1128
|
return c instanceof HTMLLabelElement && c.attributes.for;
|
1130
|
-
}) && !
|
1129
|
+
}) && !a.some(function(c) {
|
1131
1130
|
return c instanceof HTMLInputElement || c instanceof HTMLSelectElement;
|
1132
1131
|
}))) {
|
1133
1132
|
var u = Date.now();
|
@@ -1145,13 +1144,13 @@ function ta() {
|
|
1145
1144
|
}
|
1146
1145
|
var bi = qe(
|
1147
1146
|
["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]
|
1148
|
-
),
|
1147
|
+
), xe = qe(
|
1149
1148
|
["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]
|
1150
|
-
), Cn =
|
1149
|
+
), Cn = xe === "webkitTransition" || xe === "OTransition" ? xe + "End" : "transitionend";
|
1151
1150
|
function kn(t) {
|
1152
1151
|
return typeof t == "string" ? document.getElementById(t) : t;
|
1153
1152
|
}
|
1154
|
-
function
|
1153
|
+
function Te(t, e) {
|
1155
1154
|
var i = t.style[e] || t.currentStyle && t.currentStyle[e];
|
1156
1155
|
if ((!i || i === "auto") && document.defaultView) {
|
1157
1156
|
var n = document.defaultView.getComputedStyle(t, null);
|
@@ -1171,11 +1170,11 @@ function ta() {
|
|
1171
1170
|
for (; t.firstChild; )
|
1172
1171
|
t.removeChild(t.firstChild);
|
1173
1172
|
}
|
1174
|
-
function
|
1173
|
+
function he(t) {
|
1175
1174
|
var e = t.parentNode;
|
1176
1175
|
e && e.lastChild !== t && e.appendChild(t);
|
1177
1176
|
}
|
1178
|
-
function
|
1177
|
+
function le(t) {
|
1179
1178
|
var e = t.parentNode;
|
1180
1179
|
e && e.firstChild !== t && e.insertBefore(t, e.firstChild);
|
1181
1180
|
}
|
@@ -1222,41 +1221,41 @@ function ta() {
|
|
1222
1221
|
return t[i];
|
1223
1222
|
return !1;
|
1224
1223
|
}
|
1225
|
-
function
|
1224
|
+
function $t(t, e, i) {
|
1226
1225
|
var n = e || new O(0, 0);
|
1227
1226
|
t.style[bi] = (y.ie3d ? "translate(" + n.x + "px," + n.y + "px)" : "translate3d(" + n.x + "px," + n.y + "px,0)") + (i ? " scale(" + i + ")" : "");
|
1228
1227
|
}
|
1229
1228
|
function $(t, e) {
|
1230
|
-
t._leaflet_pos = e, y.any3d ?
|
1229
|
+
t._leaflet_pos = e, y.any3d ? $t(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px");
|
1231
1230
|
}
|
1232
|
-
function
|
1231
|
+
function te(t) {
|
1233
1232
|
return t._leaflet_pos || new O(0, 0);
|
1234
1233
|
}
|
1235
|
-
var
|
1234
|
+
var Me, Oe, xi;
|
1236
1235
|
if ("onselectstart" in document)
|
1237
|
-
|
1238
|
-
S(window, "selectstart",
|
1239
|
-
},
|
1240
|
-
W(window, "selectstart",
|
1236
|
+
Me = function() {
|
1237
|
+
S(window, "selectstart", ot);
|
1238
|
+
}, Oe = function() {
|
1239
|
+
W(window, "selectstart", ot);
|
1241
1240
|
};
|
1242
1241
|
else {
|
1243
|
-
var
|
1242
|
+
var Se = qe(
|
1244
1243
|
["userSelect", "WebkitUserSelect", "OUserSelect", "MozUserSelect", "msUserSelect"]
|
1245
1244
|
);
|
1246
|
-
|
1247
|
-
if (
|
1245
|
+
Me = function() {
|
1246
|
+
if (Se) {
|
1248
1247
|
var t = document.documentElement.style;
|
1249
|
-
xi = t[
|
1248
|
+
xi = t[Se], t[Se] = "none";
|
1250
1249
|
}
|
1251
|
-
},
|
1252
|
-
|
1250
|
+
}, Oe = function() {
|
1251
|
+
Se && (document.documentElement.style[Se] = xi, xi = void 0);
|
1253
1252
|
};
|
1254
1253
|
}
|
1255
1254
|
function Ti() {
|
1256
|
-
S(window, "dragstart",
|
1255
|
+
S(window, "dragstart", ot);
|
1257
1256
|
}
|
1258
1257
|
function Mi() {
|
1259
|
-
W(window, "dragstart",
|
1258
|
+
W(window, "dragstart", ot);
|
1260
1259
|
}
|
1261
1260
|
var je, Oi;
|
1262
1261
|
function Si(t) {
|
@@ -1284,15 +1283,15 @@ function ta() {
|
|
1284
1283
|
var Cs = {
|
1285
1284
|
__proto__: null,
|
1286
1285
|
TRANSFORM: bi,
|
1287
|
-
TRANSITION:
|
1286
|
+
TRANSITION: xe,
|
1288
1287
|
TRANSITION_END: Cn,
|
1289
1288
|
get: kn,
|
1290
|
-
getStyle:
|
1289
|
+
getStyle: Te,
|
1291
1290
|
create: D,
|
1292
1291
|
remove: J,
|
1293
1292
|
empty: We,
|
1294
|
-
toFront:
|
1295
|
-
toBack:
|
1293
|
+
toFront: he,
|
1294
|
+
toBack: le,
|
1296
1295
|
hasClass: Li,
|
1297
1296
|
addClass: C,
|
1298
1297
|
removeClass: Y,
|
@@ -1300,14 +1299,14 @@ function ta() {
|
|
1300
1299
|
getClass: Ue,
|
1301
1300
|
setOpacity: yt,
|
1302
1301
|
testProp: qe,
|
1303
|
-
setTransform:
|
1302
|
+
setTransform: $t,
|
1304
1303
|
setPosition: $,
|
1305
|
-
getPosition:
|
1304
|
+
getPosition: te,
|
1306
1305
|
get disableTextSelection() {
|
1307
|
-
return
|
1306
|
+
return Me;
|
1308
1307
|
},
|
1309
1308
|
get enableTextSelection() {
|
1310
|
-
return
|
1309
|
+
return Oe;
|
1311
1310
|
},
|
1312
1311
|
disableImageDrag: Ti,
|
1313
1312
|
enableImageDrag: Mi,
|
@@ -1322,7 +1321,7 @@ function ta() {
|
|
1322
1321
|
zi(t, o, e[o], i);
|
1323
1322
|
else {
|
1324
1323
|
e = G(e);
|
1325
|
-
for (var s = 0,
|
1324
|
+
for (var s = 0, a = e.length; s < a; s++)
|
1326
1325
|
zi(t, e[s], i, n);
|
1327
1326
|
}
|
1328
1327
|
return this;
|
@@ -1339,7 +1338,7 @@ function ta() {
|
|
1339
1338
|
return w(e, u) !== -1;
|
1340
1339
|
});
|
1341
1340
|
else
|
1342
|
-
for (var s = 0,
|
1341
|
+
for (var s = 0, a = e.length; s < a; s++)
|
1343
1342
|
Ai(t, e[s], i, n);
|
1344
1343
|
return this;
|
1345
1344
|
}
|
@@ -1360,10 +1359,10 @@ function ta() {
|
|
1360
1359
|
return this;
|
1361
1360
|
var s = function(u) {
|
1362
1361
|
return i.call(n || t, u || window.event);
|
1363
|
-
},
|
1362
|
+
}, a = s;
|
1364
1363
|
!y.touchNative && y.pointer && e.indexOf("touch") === 0 ? s = vs(t, e, s) : y.touch && e === "dblclick" ? s = Ms(t, s) : "addEventListener" in t ? e === "touchstart" || e === "touchmove" || e === "wheel" || e === "mousewheel" ? t.addEventListener(ki[e] || e, s, y.passiveEvents ? { passive: !1 } : !1) : e === "mouseenter" || e === "mouseleave" ? (s = function(u) {
|
1365
|
-
u = u || window.event, Bi(t, u) &&
|
1366
|
-
}, t.addEventListener(ki[e], s, !1)) : t.addEventListener(e,
|
1364
|
+
u = u || window.event, Bi(t, u) && a(u);
|
1365
|
+
}, t.addEventListener(ki[e], s, !1)) : t.addEventListener(e, a, !1) : t.attachEvent("on" + e, s), t[Ct] = t[Ct] || {}, t[Ct][o] = s;
|
1367
1366
|
}
|
1368
1367
|
function Ai(t, e, i, n, o) {
|
1369
1368
|
o = o || e + v(i) + (n ? "_" + v(n) : "");
|
@@ -1372,20 +1371,20 @@ function ta() {
|
|
1372
1371
|
return this;
|
1373
1372
|
!y.touchNative && y.pointer && e.indexOf("touch") === 0 ? ys(t, e, s) : y.touch && e === "dblclick" ? Os(t, s) : "removeEventListener" in t ? t.removeEventListener(ki[e] || e, s, !1) : t.detachEvent("on" + e, s), t[Ct][o] = null;
|
1374
1373
|
}
|
1375
|
-
function
|
1374
|
+
function ee(t) {
|
1376
1375
|
return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t.cancelBubble = !0, this;
|
1377
1376
|
}
|
1378
1377
|
function Ei(t) {
|
1379
|
-
return zi(t, "wheel",
|
1378
|
+
return zi(t, "wheel", ee), this;
|
1380
1379
|
}
|
1381
|
-
function
|
1382
|
-
return S(t, "mousedown touchstart dblclick contextmenu",
|
1380
|
+
function Ce(t) {
|
1381
|
+
return S(t, "mousedown touchstart dblclick contextmenu", ee), t._leaflet_disable_click = !0, this;
|
1383
1382
|
}
|
1384
|
-
function
|
1383
|
+
function ot(t) {
|
1385
1384
|
return t.preventDefault ? t.preventDefault() : t.returnValue = !1, this;
|
1386
1385
|
}
|
1387
|
-
function
|
1388
|
-
return
|
1386
|
+
function ie(t) {
|
1387
|
+
return ot(t), ee(t), this;
|
1389
1388
|
}
|
1390
1389
|
function En(t) {
|
1391
1390
|
if (t.composedPath)
|
@@ -1449,25 +1448,25 @@ function ta() {
|
|
1449
1448
|
__proto__: null,
|
1450
1449
|
on: S,
|
1451
1450
|
off: W,
|
1452
|
-
stopPropagation:
|
1451
|
+
stopPropagation: ee,
|
1453
1452
|
disableScrollPropagation: Ei,
|
1454
|
-
disableClickPropagation:
|
1455
|
-
preventDefault:
|
1456
|
-
stop:
|
1453
|
+
disableClickPropagation: Ce,
|
1454
|
+
preventDefault: ot,
|
1455
|
+
stop: ie,
|
1457
1456
|
getPropagationPath: En,
|
1458
1457
|
getMousePosition: Bn,
|
1459
1458
|
getWheelDelta: In,
|
1460
1459
|
isExternalTarget: Bi,
|
1461
1460
|
addListener: S,
|
1462
1461
|
removeListener: W
|
1463
|
-
}, Zn =
|
1462
|
+
}, Zn = be.extend({
|
1464
1463
|
// @method run(el: HTMLElement, newPos: Point, duration?: Number, easeLinearity?: Number)
|
1465
1464
|
// Run an animation of a given element to a new position, optionally setting
|
1466
1465
|
// duration in seconds (`0.25` by default) and easing linearity factor (3rd
|
1467
1466
|
// argument of the [cubic bezier curve](https://cubic-bezier.com/#0,0,.5,1),
|
1468
1467
|
// `0.5` by default).
|
1469
1468
|
run: function(t, e, i, n) {
|
1470
|
-
this.stop(), this._el = t, this._inProgress = !0, this._duration = i || 0.25, this._easeOutPower = 1 / Math.max(n || 0.5, 0.2), this._startPos =
|
1469
|
+
this.stop(), this._el = t, this._inProgress = !0, this._duration = i || 0.25, this._easeOutPower = 1 / Math.max(n || 0.5, 0.2), this._startPos = te(t), this._offset = e.subtract(this._startPos), this._startTime = +/* @__PURE__ */ new Date(), this.fire("start"), this._animate();
|
1471
1470
|
},
|
1472
1471
|
// @method stop()
|
1473
1472
|
// Stops the animation (if currently running).
|
@@ -1475,7 +1474,7 @@ function ta() {
|
|
1475
1474
|
this._inProgress && (this._step(!0), this._complete());
|
1476
1475
|
},
|
1477
1476
|
_animate: function() {
|
1478
|
-
this._animId =
|
1477
|
+
this._animId = nt(this._animate, this), this._step();
|
1479
1478
|
},
|
1480
1479
|
_step: function(t) {
|
1481
1480
|
var e = +/* @__PURE__ */ new Date() - this._startTime, i = this._duration * 1e3;
|
@@ -1491,7 +1490,7 @@ function ta() {
|
|
1491
1490
|
_easeOut: function(t) {
|
1492
1491
|
return 1 - Math.pow(1 - t, this._easeOutPower);
|
1493
1492
|
}
|
1494
|
-
}), I =
|
1493
|
+
}), I = be.extend({
|
1495
1494
|
options: {
|
1496
1495
|
// @section Map State Options
|
1497
1496
|
// @option crs: CRS = L.CRS.EPSG3857
|
@@ -1569,7 +1568,7 @@ function ta() {
|
|
1569
1568
|
trackResize: !0
|
1570
1569
|
},
|
1571
1570
|
initialize: function(t, e) {
|
1572
|
-
e = N(this, e), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = g(this._onResize, this), this._initEvents(), e.maxBounds && this.setMaxBounds(e.maxBounds), e.zoom !== void 0 && (this._zoom = this._limitZoom(e.zoom)), e.center && e.zoom !== void 0 && this.setView(B(e.center), e.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated =
|
1571
|
+
e = N(this, e), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = g(this._onResize, this), this._initEvents(), e.maxBounds && this.setMaxBounds(e.maxBounds), e.zoom !== void 0 && (this._zoom = this._limitZoom(e.zoom)), e.center && e.zoom !== void 0 && this.setView(B(e.center), e.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = xe && y.any3d && !y.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), S(this._proxy, Cn, this._catchTransitionEnd, this)), this._addLayers(this.options.layers);
|
1573
1572
|
},
|
1574
1573
|
// @section Methods for modifying map state
|
1575
1574
|
// @method setView(center: LatLng, zoom: Number, options?: Zoom/pan options): this
|
@@ -1606,7 +1605,7 @@ function ta() {
|
|
1606
1605
|
// @method setZoomAround(offset: Point, zoom: Number, options: Zoom options): this
|
1607
1606
|
// Zooms the map while keeping a specified pixel on the map (relative to the top-left corner) stationary.
|
1608
1607
|
setZoomAround: function(t, e, i) {
|
1609
|
-
var n = this.getZoomScale(e), o = this.getSize().divideBy(2), s = t instanceof O ? t : this.latLngToContainerPoint(t),
|
1608
|
+
var n = this.getZoomScale(e), o = this.getSize().divideBy(2), s = t instanceof O ? t : this.latLngToContainerPoint(t), a = s.subtract(o).multiplyBy(1 - 1 / n), u = this.containerPointToLatLng(o.add(a));
|
1610
1609
|
return this.setView(u, e, { zoom: i });
|
1611
1610
|
},
|
1612
1611
|
_getBoundsCenterZoom: function(t, e) {
|
@@ -1617,7 +1616,7 @@ function ta() {
|
|
1617
1616
|
center: t.getCenter(),
|
1618
1617
|
zoom: o
|
1619
1618
|
};
|
1620
|
-
var s = n.subtract(i).divideBy(2),
|
1619
|
+
var s = n.subtract(i).divideBy(2), a = this.project(t.getSouthWest(), o), u = this.project(t.getNorthEast(), o), c = this.unproject(a.add(u).divideBy(2).add(s), o);
|
1621
1620
|
return {
|
1622
1621
|
center: c,
|
1623
1622
|
zoom: o
|
@@ -1668,9 +1667,9 @@ function ta() {
|
|
1668
1667
|
if (i = i || {}, i.animate === !1 || !y.any3d)
|
1669
1668
|
return this.setView(t, e, i);
|
1670
1669
|
this._stop();
|
1671
|
-
var n = this.project(this.getCenter()), o = this.project(t), s = this.getSize(),
|
1672
|
-
t = B(t), e = e === void 0 ?
|
1673
|
-
var u = Math.max(s.x, s.y), c = u * this.getZoomScale(
|
1670
|
+
var n = this.project(this.getCenter()), o = this.project(t), s = this.getSize(), a = this._zoom;
|
1671
|
+
t = B(t), e = e === void 0 ? a : e;
|
1672
|
+
var u = Math.max(s.x, s.y), c = u * this.getZoomScale(a, e), f = o.distanceTo(n) || 1, _ = 1.42, P = _ * _;
|
1674
1673
|
function k(tt) {
|
1675
1674
|
var si = tt ? -1 : 1, yr = tt ? c : u, wr = c * c - u * u + si * P * P * f * f, br = 2 * yr * P * f, qi = wr / br, go = Math.sqrt(qi * qi + 1) - qi, Lr = go < 1e-9 ? -18 : Math.log(go);
|
1676
1675
|
return Lr;
|
@@ -1678,18 +1677,18 @@ function ta() {
|
|
1678
1677
|
function ht(tt) {
|
1679
1678
|
return (Math.exp(tt) - Math.exp(-tt)) / 2;
|
1680
1679
|
}
|
1681
|
-
function
|
1680
|
+
function it(tt) {
|
1682
1681
|
return (Math.exp(tt) + Math.exp(-tt)) / 2;
|
1683
1682
|
}
|
1684
1683
|
function bt(tt) {
|
1685
|
-
return ht(tt) /
|
1684
|
+
return ht(tt) / it(tt);
|
1686
1685
|
}
|
1687
1686
|
var pt = k(0);
|
1688
|
-
function
|
1689
|
-
return u * (
|
1687
|
+
function me(tt) {
|
1688
|
+
return u * (it(pt) / it(pt + _ * tt));
|
1690
1689
|
}
|
1691
1690
|
function mr(tt) {
|
1692
|
-
return u * (
|
1691
|
+
return u * (it(pt) * bt(pt + _ * tt) - ht(pt)) / P;
|
1693
1692
|
}
|
1694
1693
|
function _r(tt) {
|
1695
1694
|
return 1 - Math.pow(1 - tt, 1.5);
|
@@ -1697,9 +1696,9 @@ function ta() {
|
|
1697
1696
|
var gr = Date.now(), mo = (k(1) - pt) / _, vr = i.duration ? 1e3 * i.duration : 1e3 * mo * 0.8;
|
1698
1697
|
function _o() {
|
1699
1698
|
var tt = (Date.now() - gr) / vr, si = _r(tt) * mo;
|
1700
|
-
tt <= 1 ? (this._flyToFrame =
|
1701
|
-
this.unproject(n.add(o.subtract(n).multiplyBy(mr(si) / f)),
|
1702
|
-
this.getScaleZoom(u /
|
1699
|
+
tt <= 1 ? (this._flyToFrame = nt(_o, this), this._move(
|
1700
|
+
this.unproject(n.add(o.subtract(n).multiplyBy(mr(si) / f)), a),
|
1701
|
+
this.getScaleZoom(u / me(si), a),
|
1703
1702
|
{ flyTo: !0 }
|
1704
1703
|
)) : this._move(t, e)._moveEnd(!0);
|
1705
1704
|
}
|
@@ -1743,7 +1742,7 @@ function ta() {
|
|
1743
1742
|
// the map will not be panned.
|
1744
1743
|
panInside: function(t, e) {
|
1745
1744
|
e = e || {};
|
1746
|
-
var i = M(e.paddingTopLeft || e.padding || [0, 0]), n = M(e.paddingBottomRight || e.padding || [0, 0]), o = this.project(this.getCenter()), s = this.project(t),
|
1745
|
+
var i = M(e.paddingTopLeft || e.padding || [0, 0]), n = M(e.paddingBottomRight || e.padding || [0, 0]), o = this.project(this.getCenter()), s = this.project(t), a = this.getPixelBounds(), u = dt([a.min.add(i), a.max.subtract(n)]), c = u.getSize();
|
1747
1746
|
if (!u.contains(s)) {
|
1748
1747
|
this._enforcingBounds = !0;
|
1749
1748
|
var f = s.subtract(u.getCenter()), _ = u.extend(s).getSize().subtract(c);
|
@@ -1829,8 +1828,8 @@ function ta() {
|
|
1829
1828
|
if (this._container._leaflet_id) {
|
1830
1829
|
var e = t.coords.latitude, i = t.coords.longitude, n = new F(e, i), o = n.toBounds(t.coords.accuracy * 2), s = this._locateOptions;
|
1831
1830
|
if (s.setView) {
|
1832
|
-
var
|
1833
|
-
this.setView(n, s.maxZoom ? Math.min(
|
1831
|
+
var a = this.getBoundsZoom(o);
|
1832
|
+
this.setView(n, s.maxZoom ? Math.min(a, s.maxZoom) : a);
|
1834
1833
|
}
|
1835
1834
|
var u = {
|
1836
1835
|
latlng: n,
|
@@ -1913,7 +1912,7 @@ function ta() {
|
|
1913
1912
|
// the given bounds in its entirety.
|
1914
1913
|
getBoundsZoom: function(t, e, i) {
|
1915
1914
|
t = Q(t), i = M(i || [0, 0]);
|
1916
|
-
var n = this.getZoom() || 0, o = this.getMinZoom(), s = this.getMaxZoom(),
|
1915
|
+
var n = this.getZoom() || 0, o = this.getMinZoom(), s = this.getMaxZoom(), a = t.getNorthWest(), u = t.getSouthEast(), c = this.getSize().subtract(i), f = dt(this.project(u, n), this.project(a, n)).getSize(), _ = y.any3d ? this.options.zoomSnap : 1, P = c.x / f.x, k = c.y / f.y, ht = e ? Math.max(P, k) : Math.min(P, k);
|
1917
1916
|
return n = this.getScaleZoom(ht, n), _ && (n = Math.round(n / (_ / 100)) * (_ / 100), n = e ? Math.ceil(n / _) * _ : Math.floor(n / _) * _), Math.max(o, Math.min(s, n));
|
1918
1917
|
},
|
1919
1918
|
// @method getSize(): Point
|
@@ -2087,7 +2086,7 @@ function ta() {
|
|
2087
2086
|
_initLayout: function() {
|
2088
2087
|
var t = this._container;
|
2089
2088
|
this._fadeAnimated = this.options.fadeAnimation && y.any3d, C(t, "leaflet-container" + (y.touch ? " leaflet-touch" : "") + (y.retina ? " leaflet-retina" : "") + (y.ielt9 ? " leaflet-oldie" : "") + (y.safari ? " leaflet-safari" : "") + (this._fadeAnimated ? " leaflet-fade-anim" : ""));
|
2090
|
-
var e =
|
2089
|
+
var e = Te(t, "position");
|
2091
2090
|
e !== "absolute" && e !== "relative" && e !== "fixed" && e !== "sticky" && (t.style.position = "relative"), this._initPanes(), this._initControlPos && this._initControlPos();
|
2092
2091
|
},
|
2093
2092
|
_initPanes: function() {
|
@@ -2138,7 +2137,7 @@ function ta() {
|
|
2138
2137
|
e(this._container, "click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup", this._handleDOMEvent, this), this.options.trackResize && e(window, "resize", this._onResize, this), y.any3d && this.options.transform3DLimit && (t ? this.off : this.on).call(this, "moveend", this._onMoveEnd);
|
2139
2138
|
},
|
2140
2139
|
_onResize: function() {
|
2141
|
-
vt(this._resizeRequest), this._resizeRequest =
|
2140
|
+
vt(this._resizeRequest), this._resizeRequest = nt(
|
2142
2141
|
function() {
|
2143
2142
|
this.invalidateSize({ debounceMoveend: !0 });
|
2144
2143
|
},
|
@@ -2153,16 +2152,16 @@ function ta() {
|
|
2153
2152
|
Math.max(Math.abs(t.x), Math.abs(t.y)) >= this.options.transform3DLimit && this._resetView(this.getCenter(), this.getZoom());
|
2154
2153
|
},
|
2155
2154
|
_findEventTargets: function(t, e) {
|
2156
|
-
for (var i = [], n, o = e === "mouseout" || e === "mouseover", s = t.target || t.srcElement,
|
2155
|
+
for (var i = [], n, o = e === "mouseout" || e === "mouseover", s = t.target || t.srcElement, a = !1; s; ) {
|
2157
2156
|
if (n = this._targets[v(s)], n && (e === "click" || e === "preclick") && this._draggableMoved(n)) {
|
2158
|
-
|
2157
|
+
a = !0;
|
2159
2158
|
break;
|
2160
2159
|
}
|
2161
2160
|
if (n && n.listens(e, !0) && (o && !Bi(s, t) || (i.push(n), o)) || s === this._container)
|
2162
2161
|
break;
|
2163
2162
|
s = s.parentNode;
|
2164
2163
|
}
|
2165
|
-
return !i.length && !
|
2164
|
+
return !i.length && !a && !o && this.listens(e, !0) && (i = [this]), i;
|
2166
2165
|
},
|
2167
2166
|
_isClickDisabled: function(t) {
|
2168
2167
|
for (; t && t !== this._container; ) {
|
@@ -2186,12 +2185,12 @@ function ta() {
|
|
2186
2185
|
}
|
2187
2186
|
var o = this._findEventTargets(t, e);
|
2188
2187
|
if (i) {
|
2189
|
-
for (var s = [],
|
2190
|
-
i[
|
2188
|
+
for (var s = [], a = 0; a < i.length; a++)
|
2189
|
+
i[a].listens(e, !0) && s.push(i[a]);
|
2191
2190
|
o = s.concat(o);
|
2192
2191
|
}
|
2193
2192
|
if (o.length) {
|
2194
|
-
e === "contextmenu" &&
|
2193
|
+
e === "contextmenu" && ot(t);
|
2195
2194
|
var u = o[0], c = {
|
2196
2195
|
originalEvent: t
|
2197
2196
|
};
|
@@ -2199,8 +2198,8 @@ function ta() {
|
|
2199
2198
|
var f = u.getLatLng && (!u._radius || u._radius <= 10);
|
2200
2199
|
c.containerPoint = f ? this.latLngToContainerPoint(u.getLatLng()) : this.mouseEventToContainerPoint(t), c.layerPoint = this.containerPointToLayerPoint(c.containerPoint), c.latlng = f ? u.getLatLng() : this.layerPointToLatLng(c.layerPoint);
|
2201
2200
|
}
|
2202
|
-
for (
|
2203
|
-
if (o[
|
2201
|
+
for (a = 0; a < o.length; a++)
|
2202
|
+
if (o[a].fire(e, c, !0), c.originalEvent._stopped || o[a].options.bubblingMouseEvents === !1 && w(this._mouseEvents, e) !== -1)
|
2204
2203
|
return;
|
2205
2204
|
}
|
2206
2205
|
},
|
@@ -2221,7 +2220,7 @@ function ta() {
|
|
2221
2220
|
},
|
2222
2221
|
// private methods for getting map state
|
2223
2222
|
_getMapPanePos: function() {
|
2224
|
-
return
|
2223
|
+
return te(this._mapPane) || new O(0, 0);
|
2225
2224
|
},
|
2226
2225
|
_moved: function() {
|
2227
2226
|
var t = this._getMapPanePos();
|
@@ -2260,8 +2259,8 @@ function ta() {
|
|
2260
2259
|
_limitCenter: function(t, e, i) {
|
2261
2260
|
if (!i)
|
2262
2261
|
return t;
|
2263
|
-
var n = this.project(t, e), o = this.getSize().divideBy(2), s = new K(n.subtract(o), n.add(o)),
|
2264
|
-
return Math.abs(
|
2262
|
+
var n = this.project(t, e), o = this.getSize().divideBy(2), s = new K(n.subtract(o), n.add(o)), a = this._getBoundsOffset(s, i, e);
|
2263
|
+
return Math.abs(a.x) <= 1 && Math.abs(a.y) <= 1 ? t : this.unproject(n.add(a), e);
|
2265
2264
|
},
|
2266
2265
|
// adjust offset for view to get inside bounds
|
2267
2266
|
_limitOffset: function(t, e) {
|
@@ -2275,8 +2274,8 @@ function ta() {
|
|
2275
2274
|
var n = dt(
|
2276
2275
|
this.project(e.getNorthEast(), i),
|
2277
2276
|
this.project(e.getSouthWest(), i)
|
2278
|
-
), o = n.min.subtract(t.min), s = n.max.subtract(t.max),
|
2279
|
-
return new O(
|
2277
|
+
), o = n.min.subtract(t.min), s = n.max.subtract(t.max), a = this._rebound(o.x, -s.x), u = this._rebound(o.y, -s.y);
|
2278
|
+
return new O(a, u);
|
2280
2279
|
},
|
2281
2280
|
_rebound: function(t, e) {
|
2282
2281
|
return t + e > 0 ? Math.round(t - e) / 2 : Math.max(0, Math.ceil(t)) - Math.max(0, Math.floor(e));
|
@@ -2299,7 +2298,7 @@ function ta() {
|
|
2299
2298
|
var t = this._proxy = D("div", "leaflet-proxy leaflet-zoom-animated");
|
2300
2299
|
this._panes.mapPane.appendChild(t), this.on("zoomanim", function(e) {
|
2301
2300
|
var i = bi, n = this._proxy.style[i];
|
2302
|
-
|
2301
|
+
$t(this._proxy, this.project(e.center, e.zoom), this.getZoomScale(e.zoom, 1)), n === this._proxy.style[i] && this._animatingZoom && this._onZoomTransitionEnd();
|
2303
2302
|
}, this), this.on("load moveend", this._animMoveEnd, this), this._on("unload", this._destroyAnimProxy, this);
|
2304
2303
|
},
|
2305
2304
|
_destroyAnimProxy: function() {
|
@@ -2307,7 +2306,7 @@ function ta() {
|
|
2307
2306
|
},
|
2308
2307
|
_animMoveEnd: function() {
|
2309
2308
|
var t = this.getCenter(), e = this.getZoom();
|
2310
|
-
|
2309
|
+
$t(this._proxy, this.project(t, e), this.getZoomScale(e, 1));
|
2311
2310
|
},
|
2312
2311
|
_catchTransitionEnd: function(t) {
|
2313
2312
|
this._animatingZoom && t.propertyName.indexOf("transform") >= 0 && this._onZoomTransitionEnd();
|
@@ -2321,7 +2320,7 @@ function ta() {
|
|
2321
2320
|
if (i = i || {}, !this._zoomAnimated || i.animate === !1 || this._nothingToAnimate() || Math.abs(e - this._zoom) > this.options.zoomAnimationThreshold)
|
2322
2321
|
return !1;
|
2323
2322
|
var n = this.getZoomScale(e), o = this._getCenterOffset(t)._divideBy(1 - 1 / n);
|
2324
|
-
return i.animate !== !0 && !this.getSize().contains(o) ? !1 : (
|
2323
|
+
return i.animate !== !0 && !this.getSize().contains(o) ? !1 : (nt(function() {
|
2325
2324
|
this._moveStart(!0, i.noMoveStart || !1)._animateZoom(t, e, !0);
|
2326
2325
|
}, this), !0);
|
2327
2326
|
},
|
@@ -2386,7 +2385,7 @@ function ta() {
|
|
2386
2385
|
_refocusOnMap: function(t) {
|
2387
2386
|
this._map && t && t.screenX > 0 && t.screenY > 0 && this._map.getContainer().focus();
|
2388
2387
|
}
|
2389
|
-
}),
|
2388
|
+
}), ke = function(t) {
|
2390
2389
|
return new xt(t);
|
2391
2390
|
};
|
2392
2391
|
I.include({
|
@@ -2403,8 +2402,8 @@ function ta() {
|
|
2403
2402
|
_initControlPos: function() {
|
2404
2403
|
var t = this._controlCorners = {}, e = "leaflet-", i = this._controlContainer = D("div", e + "control-container", this._container);
|
2405
2404
|
function n(o, s) {
|
2406
|
-
var
|
2407
|
-
t[o + s] = D("div",
|
2405
|
+
var a = e + o + " " + e + s;
|
2406
|
+
t[o + s] = D("div", a, i);
|
2408
2407
|
}
|
2409
2408
|
n("top", "left"), n("top", "right"), n("bottom", "left"), n("bottom", "right");
|
2410
2409
|
},
|
@@ -2494,7 +2493,7 @@ function ta() {
|
|
2494
2493
|
},
|
2495
2494
|
_initLayout: function() {
|
2496
2495
|
var t = "leaflet-control-layers", e = this._container = D("div", t), i = this.options.collapsed;
|
2497
|
-
e.setAttribute("aria-haspopup", !0),
|
2496
|
+
e.setAttribute("aria-haspopup", !0), Ce(e), Ei(e);
|
2498
2497
|
var n = this._section = D("section", t + "-list");
|
2499
2498
|
i && (this._map.on("click", this.collapse, this), S(e, {
|
2500
2499
|
mouseenter: this._expandSafely,
|
@@ -2507,7 +2506,7 @@ function ta() {
|
|
2507
2506
|
},
|
2508
2507
|
// Certain screen readers intercept the key event and instead send a click event
|
2509
2508
|
click: function(s) {
|
2510
|
-
|
2509
|
+
ot(s), this._expandSafely();
|
2511
2510
|
}
|
2512
2511
|
}, this), i || this.expand(), this._baseLayersList = D("div", t + "-base", n), this._separator = D("div", t + "-separator", n), this._overlaysList = D("div", t + "-overlays", n), e.appendChild(n);
|
2513
2512
|
},
|
@@ -2551,8 +2550,8 @@ function ta() {
|
|
2551
2550
|
o.innerHTML = " " + t.name;
|
2552
2551
|
var s = document.createElement("span");
|
2553
2552
|
e.appendChild(s), s.appendChild(n), s.appendChild(o);
|
2554
|
-
var
|
2555
|
-
return
|
2553
|
+
var a = t.overlay ? this._overlaysList : this._baseLayersList;
|
2554
|
+
return a.appendChild(e), this._checkDisabledLayers(), e;
|
2556
2555
|
},
|
2557
2556
|
_onInputClick: function() {
|
2558
2557
|
if (!this._preventClick) {
|
@@ -2576,10 +2575,10 @@ function ta() {
|
|
2576
2575
|
},
|
2577
2576
|
_expandSafely: function() {
|
2578
2577
|
var t = this._section;
|
2579
|
-
this._preventClick = !0, S(t, "click",
|
2578
|
+
this._preventClick = !0, S(t, "click", ot), this.expand();
|
2580
2579
|
var e = this;
|
2581
2580
|
setTimeout(function() {
|
2582
|
-
W(t, "click",
|
2581
|
+
W(t, "click", ot), e._preventClick = !1;
|
2583
2582
|
});
|
2584
2583
|
}
|
2585
2584
|
}), Es = function(t, e, i) {
|
@@ -2635,7 +2634,7 @@ function ta() {
|
|
2635
2634
|
},
|
2636
2635
|
_createButton: function(t, e, i, n, o) {
|
2637
2636
|
var s = D("a", i, n);
|
2638
|
-
return s.innerHTML = t, s.href = "#", s.title = e, s.setAttribute("role", "button"), s.setAttribute("aria-label", e),
|
2637
|
+
return s.innerHTML = t, s.href = "#", s.title = e, s.setAttribute("role", "button"), s.setAttribute("aria-label", e), Ce(s), S(s, "click", ie), S(s, "click", o, this), S(s, "click", this._refocusOnMap, this), s;
|
2639
2638
|
},
|
2640
2639
|
_updateDisabled: function() {
|
2641
2640
|
var t = this._map, e = "leaflet-disabled";
|
@@ -2716,7 +2715,7 @@ function ta() {
|
|
2716
2715
|
N(this, t), this._attributions = {};
|
2717
2716
|
},
|
2718
2717
|
onAdd: function(t) {
|
2719
|
-
t.attributionControl = this, this._container = D("div", "leaflet-control-attribution"),
|
2718
|
+
t.attributionControl = this, this._container = D("div", "leaflet-control-attribution"), Ce(this._container);
|
2720
2719
|
for (var e in t._layers)
|
2721
2720
|
t._layers[e].getAttribution && this.addAttribution(t._layers[e].getAttribution());
|
2722
2721
|
return this._update(), t.on("layeradd", this._addAttribution, this), this._container;
|
@@ -2762,7 +2761,7 @@ function ta() {
|
|
2762
2761
|
var Rs = function(t) {
|
2763
2762
|
return new Zi(t);
|
2764
2763
|
};
|
2765
|
-
xt.Layers = Rn, xt.Zoom = Ii, xt.Scale = Nn, xt.Attribution = Zi,
|
2764
|
+
xt.Layers = Rn, xt.Zoom = Ii, xt.Scale = Nn, xt.Attribution = Zi, ke.layers = Es, ke.zoom = Bs, ke.scale = Is, ke.attribution = Rs;
|
2766
2765
|
var kt = Bt.extend({
|
2767
2766
|
initialize: function(t) {
|
2768
2767
|
this._map = t;
|
@@ -2792,7 +2791,7 @@ function ta() {
|
|
2792
2791
|
kt.addTo = function(t, e) {
|
2793
2792
|
return t.addHandler(e, this), this;
|
2794
2793
|
};
|
2795
|
-
var Ns = { Events: _t }, Dn = y.touch ? "touchstart mousedown" : "mousedown", Gt =
|
2794
|
+
var Ns = { Events: _t }, Dn = y.touch ? "touchstart mousedown" : "mousedown", Gt = be.extend({
|
2796
2795
|
options: {
|
2797
2796
|
// @section
|
2798
2797
|
// @aka Draggable options
|
@@ -2822,10 +2821,10 @@ function ta() {
|
|
2822
2821
|
Gt._dragging === this && this.finishDrag();
|
2823
2822
|
return;
|
2824
2823
|
}
|
2825
|
-
if (!(Gt._dragging || t.shiftKey || t.which !== 1 && t.button !== 1 && !t.touches) && (Gt._dragging = this, this._preventOutline && Si(this._element), Ti(),
|
2824
|
+
if (!(Gt._dragging || t.shiftKey || t.which !== 1 && t.button !== 1 && !t.touches) && (Gt._dragging = this, this._preventOutline && Si(this._element), Ti(), Me(), !this._moving)) {
|
2826
2825
|
this.fire("down");
|
2827
2826
|
var e = t.touches ? t.touches[0] : t, i = zn(this._element);
|
2828
|
-
this._startPoint = new O(e.clientX, e.clientY), this._startPos =
|
2827
|
+
this._startPoint = new O(e.clientX, e.clientY), this._startPos = te(this._element), this._parentScale = Ci(i);
|
2829
2828
|
var n = t.type === "mousedown";
|
2830
2829
|
S(document, n ? "mousemove" : "touchmove", this._onMove, this), S(document, n ? "mouseup" : "touchend touchcancel", this._onUp, this);
|
2831
2830
|
}
|
@@ -2838,7 +2837,7 @@ function ta() {
|
|
2838
2837
|
return;
|
2839
2838
|
}
|
2840
2839
|
var e = t.touches && t.touches.length === 1 ? t.touches[0] : t, i = new O(e.clientX, e.clientY)._subtract(this._startPoint);
|
2841
|
-
!i.x && !i.y || Math.abs(i.x) + Math.abs(i.y) < this.options.clickTolerance || (i.x /= this._parentScale.x, i.y /= this._parentScale.y,
|
2840
|
+
!i.x && !i.y || Math.abs(i.x) + Math.abs(i.y) < this.options.clickTolerance || (i.x /= this._parentScale.x, i.y /= this._parentScale.y, ot(t), this._moved || (this.fire("dragstart"), this._moved = !0, C(document.body, "leaflet-dragging"), this._lastTarget = t.target || t.srcElement, window.SVGElementInstance && this._lastTarget instanceof window.SVGElementInstance && (this._lastTarget = this._lastTarget.correspondingUseElement), C(this._lastTarget, "leaflet-drag-target")), this._newPos = this._startPos.add(i), this._moving = !0, this._lastEvent = t, this._updatePosition());
|
2842
2841
|
}
|
2843
2842
|
},
|
2844
2843
|
_updatePosition: function() {
|
@@ -2849,7 +2848,7 @@ function ta() {
|
|
2849
2848
|
this._enabled && this.finishDrag();
|
2850
2849
|
},
|
2851
2850
|
finishDrag: function(t) {
|
2852
|
-
Y(document.body, "leaflet-dragging"), this._lastTarget && (Y(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), W(document, "mousemove touchmove", this._onMove, this), W(document, "mouseup touchend touchcancel", this._onUp, this), Mi(),
|
2851
|
+
Y(document.body, "leaflet-dragging"), this._lastTarget && (Y(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), W(document, "mousemove touchmove", this._onMove, this), W(document, "mouseup touchend touchcancel", this._onUp, this), Mi(), Oe();
|
2853
2852
|
var e = this._moved && this._moving;
|
2854
2853
|
this._moving = !1, Gt._dragging = !1, e && this.fire("dragend", {
|
2855
2854
|
noInertia: t,
|
@@ -2858,33 +2857,33 @@ function ta() {
|
|
2858
2857
|
}
|
2859
2858
|
});
|
2860
2859
|
function Hn(t, e, i) {
|
2861
|
-
var n, o = [1, 4, 2, 8], s,
|
2860
|
+
var n, o = [1, 4, 2, 8], s, a, u, c, f, _, P, k;
|
2862
2861
|
for (s = 0, _ = t.length; s < _; s++)
|
2863
|
-
t[s]._code =
|
2862
|
+
t[s]._code = ne(t[s], e);
|
2864
2863
|
for (u = 0; u < 4; u++) {
|
2865
|
-
for (P = o[u], n = [], s = 0, _ = t.length,
|
2866
|
-
c = t[s], f = t[
|
2864
|
+
for (P = o[u], n = [], s = 0, _ = t.length, a = _ - 1; s < _; a = s++)
|
2865
|
+
c = t[s], f = t[a], c._code & P ? f._code & P || (k = Ke(f, c, P, e, i), k._code = ne(k, e), n.push(k)) : (f._code & P && (k = Ke(f, c, P, e, i), k._code = ne(k, e), n.push(k)), n.push(c));
|
2867
2866
|
t = n;
|
2868
2867
|
}
|
2869
2868
|
return t;
|
2870
2869
|
}
|
2871
2870
|
function Fn(t, e) {
|
2872
|
-
var i, n, o, s,
|
2871
|
+
var i, n, o, s, a, u, c, f, _;
|
2873
2872
|
if (!t || t.length === 0)
|
2874
2873
|
throw new Error("latlngs not passed");
|
2875
2874
|
wt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
2876
2875
|
var P = B([0, 0]), k = Q(t), ht = k.getNorthWest().distanceTo(k.getSouthWest()) * k.getNorthEast().distanceTo(k.getNorthWest());
|
2877
2876
|
ht < 1700 && (P = Ri(t));
|
2878
|
-
var
|
2879
|
-
for (i = 0; i <
|
2877
|
+
var it = t.length, bt = [];
|
2878
|
+
for (i = 0; i < it; i++) {
|
2880
2879
|
var pt = B(t[i]);
|
2881
2880
|
bt.push(e.project(B([pt.lat - P.lat, pt.lng - P.lng])));
|
2882
2881
|
}
|
2883
|
-
for (u = c = f = 0, i = 0, n =
|
2884
|
-
o = bt[i], s = bt[n],
|
2882
|
+
for (u = c = f = 0, i = 0, n = it - 1; i < it; n = i++)
|
2883
|
+
o = bt[i], s = bt[n], a = o.y * s.x - s.y * o.x, c += (o.x + s.x) * a, f += (o.y + s.y) * a, u += a * 3;
|
2885
2884
|
u === 0 ? _ = bt[0] : _ = [c / u, f / u];
|
2886
|
-
var
|
2887
|
-
return B([
|
2885
|
+
var me = e.unproject(M(_));
|
2886
|
+
return B([me.lat + P.lat, me.lng + P.lng]);
|
2888
2887
|
}
|
2889
2888
|
function Ri(t) {
|
2890
2889
|
for (var e = 0, i = 0, n = 0, o = 0; o < t.length; o++) {
|
@@ -2906,24 +2905,24 @@ function ta() {
|
|
2906
2905
|
return t = Vs(t, i), t = Fs(t, i), t;
|
2907
2906
|
}
|
2908
2907
|
function Wn(t, e, i) {
|
2909
|
-
return Math.sqrt(
|
2908
|
+
return Math.sqrt(ze(t, e, i, !0));
|
2910
2909
|
}
|
2911
2910
|
function Hs(t, e, i) {
|
2912
|
-
return
|
2911
|
+
return ze(t, e, i);
|
2913
2912
|
}
|
2914
2913
|
function Fs(t, e) {
|
2915
2914
|
var i = t.length, n = typeof Uint8Array < "u" ? Uint8Array : Array, o = new n(i);
|
2916
2915
|
o[0] = o[i - 1] = 1, Ni(t, o, e, 0, i - 1);
|
2917
|
-
var s,
|
2916
|
+
var s, a = [];
|
2918
2917
|
for (s = 0; s < i; s++)
|
2919
|
-
o[s] &&
|
2920
|
-
return
|
2918
|
+
o[s] && a.push(t[s]);
|
2919
|
+
return a;
|
2921
2920
|
}
|
2922
2921
|
function Ni(t, e, i, n, o) {
|
2923
|
-
var s = 0,
|
2922
|
+
var s = 0, a, u, c;
|
2924
2923
|
for (u = n + 1; u <= o - 1; u++)
|
2925
|
-
c =
|
2926
|
-
s > i && (e[
|
2924
|
+
c = ze(t[u], t[n], t[o], !0), c > s && (a = u, s = c);
|
2925
|
+
s > i && (e[a] = 1, Ni(t, e, i, n, a), Ni(t, e, i, a, o));
|
2927
2926
|
}
|
2928
2927
|
function Vs(t, e) {
|
2929
2928
|
for (var i = [t[0]], n = 1, o = 0, s = t.length; n < s; n++)
|
@@ -2932,20 +2931,20 @@ function ta() {
|
|
2932
2931
|
}
|
2933
2932
|
var Un;
|
2934
2933
|
function qn(t, e, i, n, o) {
|
2935
|
-
var s = n ? Un :
|
2936
|
-
for (Un =
|
2937
|
-
if (!(s |
|
2934
|
+
var s = n ? Un : ne(t, i), a = ne(e, i), u, c, f;
|
2935
|
+
for (Un = a; ; ) {
|
2936
|
+
if (!(s | a))
|
2938
2937
|
return [t, e];
|
2939
|
-
if (s &
|
2938
|
+
if (s & a)
|
2940
2939
|
return !1;
|
2941
|
-
u = s ||
|
2940
|
+
u = s || a, c = Ke(t, e, u, i, o), f = ne(c, i), u === s ? (t = c, s = f) : (e = c, a = f);
|
2942
2941
|
}
|
2943
2942
|
}
|
2944
2943
|
function Ke(t, e, i, n, o) {
|
2945
|
-
var s = e.x - t.x,
|
2946
|
-
return i & 8 ? (f = t.x + s * (c.y - t.y) /
|
2944
|
+
var s = e.x - t.x, a = e.y - t.y, u = n.min, c = n.max, f, _;
|
2945
|
+
return i & 8 ? (f = t.x + s * (c.y - t.y) / a, _ = c.y) : i & 4 ? (f = t.x + s * (u.y - t.y) / a, _ = u.y) : i & 2 ? (f = c.x, _ = t.y + a * (c.x - t.x) / s) : i & 1 && (f = u.x, _ = t.y + a * (u.x - t.x) / s), new O(f, _, o);
|
2947
2946
|
}
|
2948
|
-
function
|
2947
|
+
function ne(t, e) {
|
2949
2948
|
var i = 0;
|
2950
2949
|
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;
|
2951
2950
|
}
|
@@ -2953,9 +2952,9 @@ function ta() {
|
|
2953
2952
|
var i = e.x - t.x, n = e.y - t.y;
|
2954
2953
|
return i * i + n * n;
|
2955
2954
|
}
|
2956
|
-
function
|
2957
|
-
var o = e.x, s = e.y,
|
2958
|
-
return c > 0 && (f = ((t.x - o) *
|
2955
|
+
function ze(t, e, i, n) {
|
2956
|
+
var o = e.x, s = e.y, a = i.x - o, u = i.y - s, c = a * a + u * u, f;
|
2957
|
+
return c > 0 && (f = ((t.x - o) * a + (t.y - s) * u) / c, f > 1 ? (o = i.x, s = i.y) : f > 0 && (o += a * f, s += u * f)), a = t.x - o, u = t.y - s, n ? a * a + u * u : new O(o, s);
|
2959
2958
|
}
|
2960
2959
|
function wt(t) {
|
2961
2960
|
return !V(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] < "u";
|
@@ -2964,27 +2963,27 @@ function ta() {
|
|
2964
2963
|
return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), wt(t);
|
2965
2964
|
}
|
2966
2965
|
function Gn(t, e) {
|
2967
|
-
var i, n, o, s,
|
2966
|
+
var i, n, o, s, a, u, c, f;
|
2968
2967
|
if (!t || t.length === 0)
|
2969
2968
|
throw new Error("latlngs not passed");
|
2970
2969
|
wt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
2971
2970
|
var _ = B([0, 0]), P = Q(t), k = P.getNorthWest().distanceTo(P.getSouthWest()) * P.getNorthEast().distanceTo(P.getNorthWest());
|
2972
2971
|
k < 1700 && (_ = Ri(t));
|
2973
|
-
var ht = t.length,
|
2972
|
+
var ht = t.length, it = [];
|
2974
2973
|
for (i = 0; i < ht; i++) {
|
2975
2974
|
var bt = B(t[i]);
|
2976
|
-
|
2975
|
+
it.push(e.project(B([bt.lat - _.lat, bt.lng - _.lng])));
|
2977
2976
|
}
|
2978
2977
|
for (i = 0, n = 0; i < ht - 1; i++)
|
2979
|
-
n +=
|
2978
|
+
n += it[i].distanceTo(it[i + 1]) / 2;
|
2980
2979
|
if (n === 0)
|
2981
|
-
f =
|
2980
|
+
f = it[0];
|
2982
2981
|
else
|
2983
2982
|
for (i = 0, s = 0; i < ht - 1; i++)
|
2984
|
-
if (
|
2983
|
+
if (a = it[i], u = it[i + 1], o = a.distanceTo(u), s += o, s > n) {
|
2985
2984
|
c = (s - n) / o, f = [
|
2986
|
-
u.x - c * (u.x -
|
2987
|
-
u.y - c * (u.y -
|
2985
|
+
u.x - c * (u.x - a.x),
|
2986
|
+
u.y - c * (u.y - a.y)
|
2988
2987
|
];
|
2989
2988
|
break;
|
2990
2989
|
}
|
@@ -2998,8 +2997,8 @@ function ta() {
|
|
2998
2997
|
closestPointOnSegment: Hs,
|
2999
2998
|
clipSegment: qn,
|
3000
2999
|
_getEdgeIntersection: Ke,
|
3001
|
-
_getBitCode:
|
3002
|
-
_sqClosestPointOnSegment:
|
3000
|
+
_getBitCode: ne,
|
3001
|
+
_sqClosestPointOnSegment: ze,
|
3003
3002
|
isFlat: wt,
|
3004
3003
|
_flat: jn,
|
3005
3004
|
polylineCenter: Gn
|
@@ -3016,13 +3015,13 @@ function ta() {
|
|
3016
3015
|
R_MINOR: 6356752314245179e-9,
|
3017
3016
|
bounds: new K([-2003750834279e-5, -1549657073972e-5], [2003750834279e-5, 1876465623138e-5]),
|
3018
3017
|
project: function(t) {
|
3019
|
-
var e = Math.PI / 180, i = this.R, n = t.lat * e, o = this.R_MINOR / i, s = Math.sqrt(1 - o * o),
|
3018
|
+
var e = Math.PI / 180, i = this.R, n = t.lat * e, o = this.R_MINOR / i, s = Math.sqrt(1 - o * o), a = s * Math.sin(n), u = Math.tan(Math.PI / 4 - n / 2) / Math.pow((1 - a) / (1 + a), s / 2);
|
3020
3019
|
return n = -i * Math.log(Math.max(u, 1e-10)), new O(t.lng * e * i, n);
|
3021
3020
|
},
|
3022
3021
|
unproject: function(t) {
|
3023
|
-
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),
|
3024
|
-
f = o * Math.sin(
|
3025
|
-
return new F(
|
3022
|
+
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), a = Math.PI / 2 - 2 * Math.atan(s), u = 0, c = 0.1, f; u < 15 && Math.abs(c) > 1e-7; u++)
|
3023
|
+
f = o * Math.sin(a), f = Math.pow((1 - f) / (1 + f), o / 2), c = Math.PI / 2 - 2 * Math.atan(s * f) - a, a += c;
|
3024
|
+
return new F(a * e, t.x * e / i);
|
3026
3025
|
}
|
3027
3026
|
}, qs = {
|
3028
3027
|
__proto__: null,
|
@@ -3034,15 +3033,15 @@ function ta() {
|
|
3034
3033
|
projection: Hi,
|
3035
3034
|
transformation: function() {
|
3036
3035
|
var t = 0.5 / (Math.PI * Hi.R);
|
3037
|
-
return
|
3036
|
+
return Le(t, 0.5, -t, 0.5);
|
3038
3037
|
}()
|
3039
3038
|
}), Kn = p({}, jt, {
|
3040
3039
|
code: "EPSG:4326",
|
3041
3040
|
projection: Di,
|
3042
|
-
transformation:
|
3041
|
+
transformation: Le(1 / 180, 1, -1 / 180, 0.5)
|
3043
3042
|
}), Gs = p({}, It, {
|
3044
3043
|
projection: Di,
|
3045
|
-
transformation:
|
3044
|
+
transformation: Le(1, 0, -1, 0),
|
3046
3045
|
scale: function(t) {
|
3047
3046
|
return Math.pow(2, t);
|
3048
3047
|
},
|
@@ -3056,7 +3055,7 @@ function ta() {
|
|
3056
3055
|
infinite: !0
|
3057
3056
|
});
|
3058
3057
|
It.Earth = jt, It.EPSG3395 = js, It.EPSG3857 = pi, It.EPSG900913 = $o, It.EPSG4326 = Kn, It.Simple = Gs;
|
3059
|
-
var Tt =
|
3058
|
+
var Tt = be.extend({
|
3060
3059
|
// Classes extending `L.Layer` will inherit the following options:
|
3061
3060
|
options: {
|
3062
3061
|
// @option pane: String = 'overlayPane'
|
@@ -3173,7 +3172,7 @@ function ta() {
|
|
3173
3172
|
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);
|
3174
3173
|
}
|
3175
3174
|
});
|
3176
|
-
var
|
3175
|
+
var ue = Tt.extend({
|
3177
3176
|
initialize: function(t, e) {
|
3178
3177
|
N(this, e), this._layers = {};
|
3179
3178
|
var i, n;
|
@@ -3260,13 +3259,13 @@ function ta() {
|
|
3260
3259
|
return v(t);
|
3261
3260
|
}
|
3262
3261
|
}), Ks = function(t, e) {
|
3263
|
-
return new
|
3264
|
-
}, Zt =
|
3262
|
+
return new ue(t, e);
|
3263
|
+
}, Zt = ue.extend({
|
3265
3264
|
addLayer: function(t) {
|
3266
|
-
return this.hasLayer(t) ? this : (t.addEventParent(this),
|
3265
|
+
return this.hasLayer(t) ? this : (t.addEventParent(this), ue.prototype.addLayer.call(this, t), this.fire("layeradd", { layer: t }));
|
3267
3266
|
},
|
3268
3267
|
removeLayer: function(t) {
|
3269
|
-
return this.hasLayer(t) ? (t in this._layers && (t = this._layers[t]), t.removeEventParent(this),
|
3268
|
+
return this.hasLayer(t) ? (t in this._layers && (t = this._layers[t]), t.removeEventParent(this), ue.prototype.removeLayer.call(this, t), this.fire("layerremove", { layer: t })) : this;
|
3270
3269
|
},
|
3271
3270
|
// @method setStyle(style: Path options): this
|
3272
3271
|
// Sets the given path options to each layer of the group that has a `setStyle` method.
|
@@ -3295,7 +3294,7 @@ function ta() {
|
|
3295
3294
|
}
|
3296
3295
|
}), Js = function(t, e) {
|
3297
3296
|
return new Zt(t, e);
|
3298
|
-
},
|
3297
|
+
}, ce = Bt.extend({
|
3299
3298
|
/* @section
|
3300
3299
|
* @aka Icon options
|
3301
3300
|
*
|
@@ -3382,9 +3381,9 @@ function ta() {
|
|
3382
3381
|
}
|
3383
3382
|
});
|
3384
3383
|
function Ys(t) {
|
3385
|
-
return new
|
3384
|
+
return new ce(t);
|
3386
3385
|
}
|
3387
|
-
var
|
3386
|
+
var Ae = ce.extend({
|
3388
3387
|
options: {
|
3389
3388
|
iconUrl: "marker-icon.png",
|
3390
3389
|
iconRetinaUrl: "marker-icon-2x.png",
|
@@ -3396,7 +3395,7 @@ function ta() {
|
|
3396
3395
|
shadowSize: [41, 41]
|
3397
3396
|
},
|
3398
3397
|
_getIconUrl: function(t) {
|
3399
|
-
return typeof
|
3398
|
+
return typeof Ae.imagePath != "string" && (Ae.imagePath = this._detectIconPath()), (this.options.imagePath || Ae.imagePath) + ce.prototype._getIconUrl.call(this, t);
|
3400
3399
|
},
|
3401
3400
|
_stripUrl: function(t) {
|
3402
3401
|
var e = function(i, n, o) {
|
@@ -3406,7 +3405,7 @@ function ta() {
|
|
3406
3405
|
return t = e(t, /^url\((['"])?(.+)\1\)$/, 2), t && e(t, /^(.*)marker-icon\.png$/, 1);
|
3407
3406
|
},
|
3408
3407
|
_detectIconPath: function() {
|
3409
|
-
var t = D("div", "leaflet-default-icon-path", document.body), e =
|
3408
|
+
var t = D("div", "leaflet-default-icon-path", document.body), e = Te(t, "background-image") || Te(t, "backgroundImage");
|
3410
3409
|
if (document.body.removeChild(t), e = this._stripUrl(e), e)
|
3411
3410
|
return e;
|
3412
3411
|
var i = document.querySelector('link[href$="leaflet.css"]');
|
@@ -3437,26 +3436,26 @@ function ta() {
|
|
3437
3436
|
return this._draggable && this._draggable._moved;
|
3438
3437
|
},
|
3439
3438
|
_adjustPan: function(t) {
|
3440
|
-
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, o = this._marker.options.autoPanPadding, s =
|
3441
|
-
|
3442
|
-
|
3439
|
+
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, o = this._marker.options.autoPanPadding, s = te(e._icon), a = i.getPixelBounds(), u = i.getPixelOrigin(), c = dt(
|
3440
|
+
a.min._subtract(u).add(o),
|
3441
|
+
a.max._subtract(u).subtract(o)
|
3443
3442
|
);
|
3444
3443
|
if (!c.contains(s)) {
|
3445
3444
|
var f = M(
|
3446
|
-
(Math.max(c.max.x, s.x) - c.max.x) / (
|
3447
|
-
(Math.max(c.max.y, s.y) - c.max.y) / (
|
3445
|
+
(Math.max(c.max.x, s.x) - c.max.x) / (a.max.x - c.max.x) - (Math.min(c.min.x, s.x) - c.min.x) / (a.min.x - c.min.x),
|
3446
|
+
(Math.max(c.max.y, s.y) - c.max.y) / (a.max.y - c.max.y) - (Math.min(c.min.y, s.y) - c.min.y) / (a.min.y - c.min.y)
|
3448
3447
|
).multiplyBy(n);
|
3449
|
-
i.panBy(f, { animate: !1 }), this._draggable._newPos._add(f), this._draggable._startPos._add(f), $(e._icon, this._draggable._newPos), this._onDrag(t), this._panRequest =
|
3448
|
+
i.panBy(f, { animate: !1 }), this._draggable._newPos._add(f), this._draggable._startPos._add(f), $(e._icon, this._draggable._newPos), this._onDrag(t), this._panRequest = nt(this._adjustPan.bind(this, t));
|
3450
3449
|
}
|
3451
3450
|
},
|
3452
3451
|
_onDragStart: function() {
|
3453
3452
|
this._oldLatLng = this._marker.getLatLng(), this._marker.closePopup && this._marker.closePopup(), this._marker.fire("movestart").fire("dragstart");
|
3454
3453
|
},
|
3455
3454
|
_onPreDrag: function(t) {
|
3456
|
-
this._marker.options.autoPan && (vt(this._panRequest), this._panRequest =
|
3455
|
+
this._marker.options.autoPan && (vt(this._panRequest), this._panRequest = nt(this._adjustPan.bind(this, t)));
|
3457
3456
|
},
|
3458
3457
|
_onDrag: function(t) {
|
3459
|
-
var e = this._marker, i = e._shadow, n =
|
3458
|
+
var e = this._marker, i = e._shadow, n = te(e._icon), o = e._map.layerPointToLatLng(n);
|
3460
3459
|
i && $(i, n), e._latlng = o, t.latlng = o, t.oldLatLng = this._oldLatLng, e.fire("move", t).fire("drag", t);
|
3461
3460
|
},
|
3462
3461
|
_onDragEnd: function(t) {
|
@@ -3470,7 +3469,7 @@ function ta() {
|
|
3470
3469
|
// Icon instance to use for rendering the marker.
|
3471
3470
|
// See [Icon documentation](#L.Icon) for details on how to customize the marker icon.
|
3472
3471
|
// If not specified, a common instance of `L.Icon.Default` is used.
|
3473
|
-
icon: new
|
3472
|
+
icon: new Ae(),
|
3474
3473
|
// Option inherited from "Interactive layer" abstract class
|
3475
3474
|
interactive: !0,
|
3476
3475
|
// @option keyboard: Boolean = true
|
@@ -3826,8 +3825,8 @@ function ta() {
|
|
3826
3825
|
_project: function() {
|
3827
3826
|
var t = this._latlng.lng, e = this._latlng.lat, i = this._map, n = i.options.crs;
|
3828
3827
|
if (n.distance === jt.distance) {
|
3829
|
-
var o = Math.PI / 180, s = this._mRadius / jt.R / o,
|
3830
|
-
(isNaN(_) || _ === 0) && (_ = s / Math.cos(Math.PI / 180 * e)), this._point = c.subtract(i.getPixelOrigin()), this._radius = isNaN(_) ? 0 : c.x - i.project([f, t - _]).x, this._radiusY = c.y -
|
3828
|
+
var o = Math.PI / 180, s = this._mRadius / jt.R / o, a = i.project([e + s, t]), u = i.project([e - s, t]), c = a.add(u).divideBy(2), f = i.unproject(c).lat, _ = Math.acos((Math.cos(s * o) - Math.sin(e * o) * Math.sin(f * o)) / (Math.cos(e * o) * Math.cos(f * o))) / o;
|
3829
|
+
(isNaN(_) || _ === 0) && (_ = s / Math.cos(Math.PI / 180 * e)), this._point = c.subtract(i.getPixelOrigin()), this._radius = isNaN(_) ? 0 : c.x - i.project([f, t - _]).x, this._radiusY = c.y - a.y;
|
3831
3830
|
} else {
|
3832
3831
|
var P = n.unproject(n.project(this._latlng).subtract([this._mRadius, 0]));
|
3833
3832
|
this._point = i.latLngToLayerPoint(this._latlng), this._radius = this._point.x - i.latLngToLayerPoint(P).x;
|
@@ -3871,8 +3870,8 @@ function ta() {
|
|
3871
3870
|
// @method closestLayerPoint(p: Point): Point
|
3872
3871
|
// Returns the point closest to `p` on the Polyline.
|
3873
3872
|
closestLayerPoint: function(t) {
|
3874
|
-
for (var e = 1 / 0, i = null, n =
|
3875
|
-
for (var c = this._parts[
|
3873
|
+
for (var e = 1 / 0, i = null, n = ze, o, s, a = 0, u = this._parts.length; a < u; a++)
|
3874
|
+
for (var c = this._parts[a], f = 1, _ = c.length; f < _; f++) {
|
3876
3875
|
o = c[f - 1], s = c[f];
|
3877
3876
|
var P = n(t, o, s, !0);
|
3878
3877
|
P < e && (e = P, i = n(t, o, s));
|
@@ -3923,11 +3922,11 @@ function ta() {
|
|
3923
3922
|
},
|
3924
3923
|
// recursively turns latlngs into a set of rings with projected coordinates
|
3925
3924
|
_projectLatlngs: function(t, e, i) {
|
3926
|
-
var n = t[0] instanceof F, o = t.length, s,
|
3925
|
+
var n = t[0] instanceof F, o = t.length, s, a;
|
3927
3926
|
if (n) {
|
3928
|
-
for (
|
3929
|
-
|
3930
|
-
e.push(
|
3927
|
+
for (a = [], s = 0; s < o; s++)
|
3928
|
+
a[s] = this._map.latLngToLayerPoint(t[s]), i.extend(a[s]);
|
3929
|
+
e.push(a);
|
3931
3930
|
} else
|
3932
3931
|
for (s = 0; s < o; s++)
|
3933
3932
|
this._projectLatlngs(t[s], e, i);
|
@@ -3940,10 +3939,10 @@ function ta() {
|
|
3940
3939
|
this._parts = this._rings;
|
3941
3940
|
return;
|
3942
3941
|
}
|
3943
|
-
var e = this._parts, i, n, o, s,
|
3942
|
+
var e = this._parts, i, n, o, s, a, u, c;
|
3944
3943
|
for (i = 0, o = 0, s = this._rings.length; i < s; i++)
|
3945
|
-
for (c = this._rings[i], n = 0,
|
3946
|
-
u = qn(c[n], c[n + 1], t, n, !0), u && (e[o] = e[o] || [], e[o].push(u[0]), (u[1] !== c[n + 1] || n ===
|
3944
|
+
for (c = this._rings[i], n = 0, a = c.length; n < a - 1; n++)
|
3945
|
+
u = qn(c[n], c[n + 1], t, n, !0), u && (e[o] = e[o] || [], e[o].push(u[0]), (u[1] !== c[n + 1] || n === a - 2) && (e[o].push(u[1]), o++));
|
3947
3946
|
}
|
3948
3947
|
},
|
3949
3948
|
// simplify each clipped part of the polyline for performance
|
@@ -3959,11 +3958,11 @@ function ta() {
|
|
3959
3958
|
},
|
3960
3959
|
// Needed by the `Canvas` renderer for interactivity
|
3961
3960
|
_containsPoint: function(t, e) {
|
3962
|
-
var i, n, o, s,
|
3961
|
+
var i, n, o, s, a, u, c = this._clickTolerance();
|
3963
3962
|
if (!this._pxBounds || !this._pxBounds.contains(t))
|
3964
3963
|
return !1;
|
3965
3964
|
for (i = 0, s = this._parts.length; i < s; i++)
|
3966
|
-
for (u = this._parts[i], n = 0,
|
3965
|
+
for (u = this._parts[i], n = 0, a = u.length, o = a - 1; n < a; o = n++)
|
3967
3966
|
if (!(!e && n === 0) && Wn(t, u[o], u[n]) <= c)
|
3968
3967
|
return !0;
|
3969
3968
|
return !1;
|
@@ -3973,7 +3972,7 @@ function ta() {
|
|
3973
3972
|
return new Rt(t, e);
|
3974
3973
|
}
|
3975
3974
|
Rt._flat = jn;
|
3976
|
-
var
|
3975
|
+
var de = Rt.extend({
|
3977
3976
|
options: {
|
3978
3977
|
fill: !0
|
3979
3978
|
},
|
@@ -4013,17 +4012,17 @@ function ta() {
|
|
4013
4012
|
},
|
4014
4013
|
// Needed by the `Canvas` renderer for interactivity
|
4015
4014
|
_containsPoint: function(t) {
|
4016
|
-
var e = !1, i, n, o, s,
|
4015
|
+
var e = !1, i, n, o, s, a, u, c, f;
|
4017
4016
|
if (!this._pxBounds || !this._pxBounds.contains(t))
|
4018
4017
|
return !1;
|
4019
4018
|
for (s = 0, c = this._parts.length; s < c; s++)
|
4020
|
-
for (i = this._parts[s],
|
4021
|
-
n = i[
|
4019
|
+
for (i = this._parts[s], a = 0, f = i.length, u = f - 1; a < f; u = a++)
|
4020
|
+
n = i[a], o = i[u], 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);
|
4022
4021
|
return e || Rt.prototype._containsPoint.call(this, t, !0);
|
4023
4022
|
}
|
4024
4023
|
});
|
4025
4024
|
function er(t, e) {
|
4026
|
-
return new
|
4025
|
+
return new de(t, e);
|
4027
4026
|
}
|
4028
4027
|
var Nt = Zt.extend({
|
4029
4028
|
/* @section
|
@@ -4090,8 +4089,8 @@ function ta() {
|
|
4090
4089
|
var s = this.options;
|
4091
4090
|
if (s.filter && !s.filter(t))
|
4092
4091
|
return this;
|
4093
|
-
var
|
4094
|
-
return
|
4092
|
+
var a = Xe(t, s);
|
4093
|
+
return a ? (a.feature = ti(t), a.defaultOptions = a.options, this.resetStyle(a), s.onEachFeature && s.onEachFeature(t, a), this.addLayer(a)) : this;
|
4095
4094
|
},
|
4096
4095
|
// @method resetStyle( <Path> layer? ): this
|
4097
4096
|
// Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.
|
@@ -4111,22 +4110,22 @@ function ta() {
|
|
4111
4110
|
}
|
4112
4111
|
});
|
4113
4112
|
function Xe(t, e) {
|
4114
|
-
var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, o = [], s = e && e.pointToLayer,
|
4113
|
+
var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, o = [], s = e && e.pointToLayer, a = e && e.coordsToLatLng || Vi, u, c, f, _;
|
4115
4114
|
if (!n && !i)
|
4116
4115
|
return null;
|
4117
4116
|
switch (i.type) {
|
4118
4117
|
case "Point":
|
4119
|
-
return u =
|
4118
|
+
return u = a(n), Yn(s, t, u, e);
|
4120
4119
|
case "MultiPoint":
|
4121
4120
|
for (f = 0, _ = n.length; f < _; f++)
|
4122
|
-
u =
|
4121
|
+
u = a(n[f]), o.push(Yn(s, t, u, e));
|
4123
4122
|
return new Zt(o);
|
4124
4123
|
case "LineString":
|
4125
4124
|
case "MultiLineString":
|
4126
|
-
return c = Qe(n, i.type === "LineString" ? 0 : 1,
|
4125
|
+
return c = Qe(n, i.type === "LineString" ? 0 : 1, a), new Rt(c, e);
|
4127
4126
|
case "Polygon":
|
4128
4127
|
case "MultiPolygon":
|
4129
|
-
return c = Qe(n, i.type === "Polygon" ? 1 : 2,
|
4128
|
+
return c = Qe(n, i.type === "Polygon" ? 1 : 2, a), new de(c, e);
|
4130
4129
|
case "GeometryCollection":
|
4131
4130
|
for (f = 0, _ = i.geometries.length; f < _; f++) {
|
4132
4131
|
var P = Xe({
|
@@ -4154,19 +4153,19 @@ function ta() {
|
|
4154
4153
|
return new F(t[1], t[0], t[2]);
|
4155
4154
|
}
|
4156
4155
|
function Qe(t, e, i) {
|
4157
|
-
for (var n = [], o = 0, s = t.length,
|
4158
|
-
|
4156
|
+
for (var n = [], o = 0, s = t.length, a; o < s; o++)
|
4157
|
+
a = e ? Qe(t[o], e - 1, i) : (i || Vi)(t[o]), n.push(a);
|
4159
4158
|
return n;
|
4160
4159
|
}
|
4161
4160
|
function Wi(t, e) {
|
4162
4161
|
return t = B(t), t.alt !== void 0 ? [H(t.lng, e), H(t.lat, e), H(t.alt, e)] : [H(t.lng, e), H(t.lat, e)];
|
4163
4162
|
}
|
4164
4163
|
function $e(t, e, i, n) {
|
4165
|
-
for (var o = [], s = 0,
|
4164
|
+
for (var o = [], s = 0, a = t.length; s < a; s++)
|
4166
4165
|
o.push(e ? $e(t[s], wt(t[s]) ? 0 : e - 1, i, n) : Wi(t[s], n));
|
4167
4166
|
return !e && i && o.length > 0 && o.push(o[0].slice()), o;
|
4168
4167
|
}
|
4169
|
-
function
|
4168
|
+
function fe(t, e) {
|
4170
4169
|
return t.feature ? p({}, t.feature, { geometry: e }) : ti(e);
|
4171
4170
|
}
|
4172
4171
|
function ti(t) {
|
@@ -4178,7 +4177,7 @@ function ta() {
|
|
4178
4177
|
}
|
4179
4178
|
var Ui = {
|
4180
4179
|
toGeoJSON: function(t) {
|
4181
|
-
return
|
4180
|
+
return fe(this, {
|
4182
4181
|
type: "Point",
|
4183
4182
|
coordinates: Wi(this.getLatLng(), t)
|
4184
4183
|
});
|
@@ -4187,25 +4186,25 @@ function ta() {
|
|
4187
4186
|
Je.include(Ui), Fi.include(Ui), Ye.include(Ui), Rt.include({
|
4188
4187
|
toGeoJSON: function(t) {
|
4189
4188
|
var e = !wt(this._latlngs), i = $e(this._latlngs, e ? 1 : 0, !1, t);
|
4190
|
-
return
|
4189
|
+
return fe(this, {
|
4191
4190
|
type: (e ? "Multi" : "") + "LineString",
|
4192
4191
|
coordinates: i
|
4193
4192
|
});
|
4194
4193
|
}
|
4195
|
-
}),
|
4194
|
+
}), de.include({
|
4196
4195
|
toGeoJSON: function(t) {
|
4197
4196
|
var e = !wt(this._latlngs), i = e && !wt(this._latlngs[0]), n = $e(this._latlngs, i ? 2 : e ? 1 : 0, !0, t);
|
4198
|
-
return e || (n = [n]),
|
4197
|
+
return e || (n = [n]), fe(this, {
|
4199
4198
|
type: (i ? "Multi" : "") + "Polygon",
|
4200
4199
|
coordinates: n
|
4201
4200
|
});
|
4202
4201
|
}
|
4203
|
-
}),
|
4202
|
+
}), ue.include({
|
4204
4203
|
toMultiPoint: function(t) {
|
4205
4204
|
var e = [];
|
4206
4205
|
return this.eachLayer(function(i) {
|
4207
4206
|
e.push(i.toGeoJSON(t).geometry.coordinates);
|
4208
|
-
}),
|
4207
|
+
}), fe(this, {
|
4209
4208
|
type: "MultiPoint",
|
4210
4209
|
coordinates: e
|
4211
4210
|
});
|
@@ -4224,11 +4223,11 @@ function ta() {
|
|
4224
4223
|
if (i)
|
4225
4224
|
n.push(s.geometry);
|
4226
4225
|
else {
|
4227
|
-
var
|
4228
|
-
|
4226
|
+
var a = ti(s);
|
4227
|
+
a.type === "FeatureCollection" ? n.push.apply(n, a.features) : n.push(a);
|
4229
4228
|
}
|
4230
4229
|
}
|
4231
|
-
}), i ?
|
4230
|
+
}), i ? fe(this, {
|
4232
4231
|
geometries: n,
|
4233
4232
|
type: "GeometryCollection"
|
4234
4233
|
}) : {
|
@@ -4288,12 +4287,12 @@ function ta() {
|
|
4288
4287
|
// @method bringToFront(): this
|
4289
4288
|
// Brings the layer to the top of all overlays.
|
4290
4289
|
bringToFront: function() {
|
4291
|
-
return this._map &&
|
4290
|
+
return this._map && he(this._image), this;
|
4292
4291
|
},
|
4293
4292
|
// @method bringToBack(): this
|
4294
4293
|
// Brings the layer to the bottom of all overlays.
|
4295
4294
|
bringToBack: function() {
|
4296
|
-
return this._map &&
|
4295
|
+
return this._map && le(this._image), this;
|
4297
4296
|
},
|
4298
4297
|
// @method setUrl(url: String): this
|
4299
4298
|
// Changes the URL of the image.
|
@@ -4338,7 +4337,7 @@ function ta() {
|
|
4338
4337
|
},
|
4339
4338
|
_animateZoom: function(t) {
|
4340
4339
|
var e = this._map.getZoomScale(t.zoom), i = this._map._latLngBoundsToNewLayerBounds(this._bounds, t.zoom, t.center).min;
|
4341
|
-
|
4340
|
+
$t(this._image, i, e);
|
4342
4341
|
},
|
4343
4342
|
_reset: function() {
|
4344
4343
|
var t = this._image, e = new K(
|
@@ -4397,8 +4396,8 @@ function ta() {
|
|
4397
4396
|
}
|
4398
4397
|
V(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;
|
4399
4398
|
for (var s = 0; s < this._url.length; s++) {
|
4400
|
-
var
|
4401
|
-
|
4399
|
+
var a = D("source");
|
4400
|
+
a.src = this._url[s], e.appendChild(a);
|
4402
4401
|
}
|
4403
4402
|
}
|
4404
4403
|
// @method getElement(): HTMLVideoElement
|
@@ -4517,12 +4516,12 @@ function ta() {
|
|
4517
4516
|
// @method bringToFront: this
|
4518
4517
|
// Brings this overlay in front of other overlays (in the same map pane).
|
4519
4518
|
bringToFront: function() {
|
4520
|
-
return this._map &&
|
4519
|
+
return this._map && he(this._container), this;
|
4521
4520
|
},
|
4522
4521
|
// @method bringToBack: this
|
4523
4522
|
// Brings this overlay to the back of other overlays (in the same map pane).
|
4524
4523
|
bringToBack: function() {
|
4525
|
-
return this._map &&
|
4524
|
+
return this._map && le(this._container), this;
|
4526
4525
|
},
|
4527
4526
|
// prepare bound overlay to open: update latlng pos / content source (for FeatureGroup)
|
4528
4527
|
_prepareOpen: function(t) {
|
@@ -4655,10 +4654,10 @@ function ta() {
|
|
4655
4654
|
return t = arguments.length ? t : this._source._map, !t.hasLayer(this) && t._popup && t._popup.options.autoClose && t.removeLayer(t._popup), t._popup = this, zt.prototype.openOn.call(this, t);
|
4656
4655
|
},
|
4657
4656
|
onAdd: function(t) {
|
4658
|
-
zt.prototype.onAdd.call(this, t), t.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof Kt || this._source.on("preclick",
|
4657
|
+
zt.prototype.onAdd.call(this, t), t.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof Kt || this._source.on("preclick", ee));
|
4659
4658
|
},
|
4660
4659
|
onRemove: function(t) {
|
4661
|
-
zt.prototype.onRemove.call(this, t), t.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof Kt || this._source.off("preclick",
|
4660
|
+
zt.prototype.onRemove.call(this, t), t.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof Kt || this._source.off("preclick", ee));
|
4662
4661
|
},
|
4663
4662
|
getEvents: function() {
|
4664
4663
|
var t = zt.prototype.getEvents.call(this);
|
@@ -4669,10 +4668,10 @@ function ta() {
|
|
4669
4668
|
"div",
|
4670
4669
|
t + " " + (this.options.className || "") + " leaflet-zoom-animated"
|
4671
4670
|
), i = this._wrapper = D("div", t + "-content-wrapper", e);
|
4672
|
-
if (this._contentNode = D("div", t + "-content", i),
|
4671
|
+
if (this._contentNode = D("div", t + "-content", i), Ce(e), Ei(this._contentNode), S(e, "contextmenu", ee), this._tipContainer = D("div", t + "-tip-container", e), this._tip = D("div", t + "-tip", this._tipContainer), this.options.closeButton) {
|
4673
4672
|
var n = this._closeButton = D("a", t + "-close-button", e);
|
4674
4673
|
n.setAttribute("role", "button"), n.setAttribute("aria-label", "Close popup"), n.href = "#close", n.innerHTML = '<span aria-hidden="true">×</span>', S(n, "click", function(o) {
|
4675
|
-
|
4674
|
+
ot(o), this.close();
|
4676
4675
|
}, this);
|
4677
4676
|
}
|
4678
4677
|
},
|
@@ -4694,9 +4693,9 @@ function ta() {
|
|
4694
4693
|
this._autopanning = !1;
|
4695
4694
|
return;
|
4696
4695
|
}
|
4697
|
-
var t = this._map, e = parseInt(
|
4698
|
-
o._add(
|
4699
|
-
var s = t.layerPointToContainerPoint(o),
|
4696
|
+
var t = this._map, e = parseInt(Te(this._container, "marginBottom"), 10) || 0, i = this._container.offsetHeight + e, n = this._containerWidth, o = new O(this._containerLeft, -i - this._containerBottom);
|
4697
|
+
o._add(te(this._container));
|
4698
|
+
var s = t.layerPointToContainerPoint(o), a = M(this.options.autoPanPadding), u = M(this.options.autoPanPaddingTopLeft || a), c = M(this.options.autoPanPaddingBottomRight || a), f = t.getSize(), _ = 0, P = 0;
|
4700
4699
|
s.x + n + c.x > f.x && (_ = s.x + n - f.x + c.x), s.x - _ - u.x < 0 && (_ = s.x - u.x), s.y + i + c.y > f.y && (P = s.y + i - f.y + c.y), s.y - P - u.y < 0 && (P = s.y - u.y), (_ || P) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([_, P]));
|
4701
4700
|
}
|
4702
4701
|
},
|
@@ -4777,7 +4776,7 @@ function ta() {
|
|
4777
4776
|
},
|
4778
4777
|
_openPopup: function(t) {
|
4779
4778
|
if (!(!this._popup || !this._map)) {
|
4780
|
-
|
4779
|
+
ie(t);
|
4781
4780
|
var e = t.layer || t.target;
|
4782
4781
|
if (this._popup._source === e && !(e instanceof Kt)) {
|
4783
4782
|
this._map.hasLayer(this._popup) ? this.closePopup() : this.openPopup(t.latlng);
|
@@ -4838,8 +4837,8 @@ function ta() {
|
|
4838
4837
|
_adjustPan: function() {
|
4839
4838
|
},
|
4840
4839
|
_setPosition: function(t) {
|
4841
|
-
var e, i, n = this._map, o = this._container, s = n.latLngToContainerPoint(n.getCenter()),
|
4842
|
-
u === "top" ? (e = c / 2, i = f) : u === "bottom" ? (e = c / 2, i = 0) : u === "center" ? (e = c / 2, i = f / 2) : u === "right" ? (e = 0, i = f / 2) : u === "left" ? (e = c, i = f / 2) :
|
4840
|
+
var e, i, n = this._map, o = this._container, s = n.latLngToContainerPoint(n.getCenter()), a = n.layerPointToContainerPoint(t), u = this.options.direction, c = o.offsetWidth, f = o.offsetHeight, _ = M(this.options.offset), P = this._getAnchor();
|
4841
|
+
u === "top" ? (e = c / 2, i = f) : u === "bottom" ? (e = c / 2, i = 0) : u === "center" ? (e = c / 2, i = f / 2) : u === "right" ? (e = 0, i = f / 2) : u === "left" ? (e = c, i = f / 2) : a.x < s.x ? (u = "right", e = 0, i = f / 2) : (u = "left", e = c + (_.x + P.x) * 2, i = f / 2), t = t.subtract(M(e, i, !0)).add(_).add(P), Y(o, "leaflet-tooltip-right"), Y(o, "leaflet-tooltip-left"), Y(o, "leaflet-tooltip-top"), Y(o, "leaflet-tooltip-bottom"), C(o, "leaflet-tooltip-" + u), $(o, t);
|
4843
4842
|
},
|
4844
4843
|
_updatePosition: function() {
|
4845
4844
|
var t = this._map.latLngToLayerPoint(this._latlng);
|
@@ -4956,7 +4955,7 @@ function ta() {
|
|
4956
4955
|
this._tooltip.options.sticky && t.originalEvent && (i = this._map.mouseEventToContainerPoint(t.originalEvent), n = this._map.containerPointToLayerPoint(i), e = this._map.layerPointToLatLng(n)), this._tooltip.setLatLng(e);
|
4957
4956
|
}
|
4958
4957
|
});
|
4959
|
-
var to =
|
4958
|
+
var to = ce.extend({
|
4960
4959
|
options: {
|
4961
4960
|
// @section
|
4962
4961
|
// @aka DivIcon options
|
@@ -4988,8 +4987,8 @@ function ta() {
|
|
4988
4987
|
function hr(t) {
|
4989
4988
|
return new to(t);
|
4990
4989
|
}
|
4991
|
-
|
4992
|
-
var
|
4990
|
+
ce.Default = Ae;
|
4991
|
+
var Ee = Tt.extend({
|
4993
4992
|
// @section
|
4994
4993
|
// @aka GridLayer options
|
4995
4994
|
options: {
|
@@ -5065,12 +5064,12 @@ function ta() {
|
|
5065
5064
|
// @method bringToFront: this
|
5066
5065
|
// Brings the tile layer to the top of all tile layers.
|
5067
5066
|
bringToFront: function() {
|
5068
|
-
return this._map && (
|
5067
|
+
return this._map && (he(this._container), this._setAutoZIndex(Math.max)), this;
|
5069
5068
|
},
|
5070
5069
|
// @method bringToBack: this
|
5071
5070
|
// Brings the tile layer to the bottom of all tile layers.
|
5072
5071
|
bringToBack: function() {
|
5073
|
-
return this._map && (
|
5072
|
+
return this._map && (le(this._container), this._setAutoZIndex(Math.min)), this;
|
5074
5073
|
},
|
5075
5074
|
// @method getContainer: HTMLElement
|
5076
5075
|
// Returns the HTML element that contains the tiles for this layer.
|
@@ -5146,7 +5145,7 @@ function ta() {
|
|
5146
5145
|
yt(o.el, s), s < 1 ? e = !0 : (o.active ? i = !0 : this._onOpaqueTile(o), o.active = !0);
|
5147
5146
|
}
|
5148
5147
|
}
|
5149
|
-
i && !this._noPrune && this._pruneTiles(), e && (vt(this._fadeFrame), this._fadeFrame =
|
5148
|
+
i && !this._noPrune && this._pruneTiles(), e && (vt(this._fadeFrame), this._fadeFrame = nt(this._updateOpacity, this));
|
5150
5149
|
}
|
5151
5150
|
},
|
5152
5151
|
_onOpaqueTile: b,
|
@@ -5197,17 +5196,17 @@ function ta() {
|
|
5197
5196
|
this._removeAllTiles(), this._tileZoom = void 0;
|
5198
5197
|
},
|
5199
5198
|
_retainParent: function(t, e, i, n) {
|
5200
|
-
var o = Math.floor(t / 2), s = Math.floor(e / 2),
|
5201
|
-
u.z = +
|
5199
|
+
var o = Math.floor(t / 2), s = Math.floor(e / 2), a = i - 1, u = new O(+o, +s);
|
5200
|
+
u.z = +a;
|
5202
5201
|
var c = this._tileCoordsToKey(u), f = this._tiles[c];
|
5203
|
-
return f && f.active ? (f.retain = !0, !0) : (f && f.loaded && (f.retain = !0),
|
5202
|
+
return f && f.active ? (f.retain = !0, !0) : (f && f.loaded && (f.retain = !0), a > n ? this._retainParent(o, s, a, n) : !1);
|
5204
5203
|
},
|
5205
5204
|
_retainChildren: function(t, e, i, n) {
|
5206
5205
|
for (var o = 2 * t; o < 2 * t + 2; o++)
|
5207
5206
|
for (var s = 2 * e; s < 2 * e + 2; s++) {
|
5208
|
-
var
|
5209
|
-
|
5210
|
-
var u = this._tileCoordsToKey(
|
5207
|
+
var a = new O(o, s);
|
5208
|
+
a.z = i + 1;
|
5209
|
+
var u = this._tileCoordsToKey(a), c = this._tiles[u];
|
5211
5210
|
if (c && c.active) {
|
5212
5211
|
c.retain = !0;
|
5213
5212
|
continue;
|
@@ -5238,7 +5237,7 @@ function ta() {
|
|
5238
5237
|
},
|
5239
5238
|
_setZoomTransform: function(t, e, i) {
|
5240
5239
|
var n = this._map.getZoomScale(i, t.zoom), o = t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e, i)).round();
|
5241
|
-
y.any3d ?
|
5240
|
+
y.any3d ? $t(t.el, o, n) : $(t.el, o);
|
5242
5241
|
},
|
5243
5242
|
_resetGrid: function() {
|
5244
5243
|
var t = this._map, e = t.options.crs, i = this._tileSize = this.getTileSize(), n = this._tileZoom, o = this._map.getPixelWorldBounds(this._tileZoom);
|
@@ -5263,7 +5262,7 @@ function ta() {
|
|
5263
5262
|
if (e) {
|
5264
5263
|
var i = this._clampZoom(e.getZoom());
|
5265
5264
|
if (t === void 0 && (t = e.getCenter()), this._tileZoom !== void 0) {
|
5266
|
-
var n = this._getTiledPixelBounds(t), o = this._pxBoundsToTileRange(n), s = o.getCenter(),
|
5265
|
+
var n = this._getTiledPixelBounds(t), o = this._pxBoundsToTileRange(n), s = o.getCenter(), a = [], u = this.options.keepBuffer, c = new K(
|
5267
5266
|
o.getBottomLeft().subtract([u, -u]),
|
5268
5267
|
o.getTopRight().add([u, -u])
|
5269
5268
|
);
|
@@ -5281,17 +5280,17 @@ function ta() {
|
|
5281
5280
|
for (var k = o.min.x; k <= o.max.x; k++) {
|
5282
5281
|
var ht = new O(k, P);
|
5283
5282
|
if (ht.z = this._tileZoom, !!this._isValidTile(ht)) {
|
5284
|
-
var
|
5285
|
-
|
5283
|
+
var it = this._tiles[this._tileCoordsToKey(ht)];
|
5284
|
+
it ? it.current = !0 : a.push(ht);
|
5286
5285
|
}
|
5287
5286
|
}
|
5288
|
-
if (
|
5289
|
-
return pt.distanceTo(s) -
|
5290
|
-
}),
|
5287
|
+
if (a.sort(function(pt, me) {
|
5288
|
+
return pt.distanceTo(s) - me.distanceTo(s);
|
5289
|
+
}), a.length !== 0) {
|
5291
5290
|
this._loading || (this._loading = !0, this.fire("loading"));
|
5292
5291
|
var bt = document.createDocumentFragment();
|
5293
|
-
for (k = 0; k <
|
5294
|
-
this._addTile(
|
5292
|
+
for (k = 0; k < a.length; k++)
|
5293
|
+
this._addTile(a[k], bt);
|
5295
5294
|
this._level.el.appendChild(bt);
|
5296
5295
|
}
|
5297
5296
|
}
|
@@ -5313,8 +5312,8 @@ function ta() {
|
|
5313
5312
|
return this._tileCoordsToBounds(this._keyToTileCoords(t));
|
5314
5313
|
},
|
5315
5314
|
_tileCoordsToNwSe: function(t) {
|
5316
|
-
var e = this._map, i = this.getTileSize(), n = t.scaleBy(i), o = n.add(i), s = e.unproject(n, t.z),
|
5317
|
-
return [s,
|
5315
|
+
var e = this._map, i = this.getTileSize(), n = t.scaleBy(i), o = n.add(i), s = e.unproject(n, t.z), a = e.unproject(o, t.z);
|
5316
|
+
return [s, a];
|
5318
5317
|
},
|
5319
5318
|
// converts tile coordinates to its geographical bounds
|
5320
5319
|
_tileCoordsToBounds: function(t) {
|
@@ -5344,7 +5343,7 @@ function ta() {
|
|
5344
5343
|
},
|
5345
5344
|
_addTile: function(t, e) {
|
5346
5345
|
var i = this._getTilePos(t), n = this._tileCoordsToKey(t), o = this.createTile(this._wrapCoords(t), g(this._tileReady, this, t));
|
5347
|
-
this._initTile(o), this.createTile.length < 2 &&
|
5346
|
+
this._initTile(o), this.createTile.length < 2 && nt(g(this._tileReady, this, t, null, o)), $(o, i), this._tiles[n] = {
|
5348
5347
|
el: o,
|
5349
5348
|
coords: t,
|
5350
5349
|
current: !0
|
@@ -5360,10 +5359,10 @@ function ta() {
|
|
5360
5359
|
coords: t
|
5361
5360
|
});
|
5362
5361
|
var n = this._tileCoordsToKey(t);
|
5363
|
-
i = this._tiles[n], i && (i.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (yt(i.el, 0), vt(this._fadeFrame), this._fadeFrame =
|
5362
|
+
i = this._tiles[n], i && (i.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (yt(i.el, 0), vt(this._fadeFrame), this._fadeFrame = nt(this._updateOpacity, this)) : (i.active = !0, this._pruneTiles()), e || (C(i.el, "leaflet-tile-loaded"), this.fire("tileload", {
|
5364
5363
|
tile: i.el,
|
5365
5364
|
coords: t
|
5366
|
-
})), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), y.ielt9 || !this._map._fadeAnimated ?
|
5365
|
+
})), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), y.ielt9 || !this._map._fadeAnimated ? nt(this._pruneTiles, this) : setTimeout(g(this._pruneTiles, this), 250)));
|
5367
5366
|
},
|
5368
5367
|
_getTilePos: function(t) {
|
5369
5368
|
return t.scaleBy(this.getTileSize()).subtract(this._level.origin);
|
@@ -5390,9 +5389,9 @@ function ta() {
|
|
5390
5389
|
}
|
5391
5390
|
});
|
5392
5391
|
function lr(t) {
|
5393
|
-
return new
|
5392
|
+
return new Ee(t);
|
5394
5393
|
}
|
5395
|
-
var
|
5394
|
+
var pe = Ee.extend({
|
5396
5395
|
// @section
|
5397
5396
|
// @aka TileLayer options
|
5398
5397
|
options: {
|
@@ -5494,7 +5493,7 @@ function ta() {
|
|
5494
5493
|
var t, e;
|
5495
5494
|
for (t in this._tiles)
|
5496
5495
|
if (this._tiles[t].coords.z !== this._tileZoom && (e = this._tiles[t].el, e.onload = b, e.onerror = b, !e.complete)) {
|
5497
|
-
e.src =
|
5496
|
+
e.src = rt;
|
5498
5497
|
var i = this._tiles[t].coords;
|
5499
5498
|
J(e), delete this._tiles[t], this.fire("tileabort", {
|
5500
5499
|
tile: e,
|
@@ -5505,17 +5504,17 @@ function ta() {
|
|
5505
5504
|
_removeTile: function(t) {
|
5506
5505
|
var e = this._tiles[t];
|
5507
5506
|
if (e)
|
5508
|
-
return e.el.setAttribute("src",
|
5507
|
+
return e.el.setAttribute("src", rt), Ee.prototype._removeTile.call(this, t);
|
5509
5508
|
},
|
5510
5509
|
_tileReady: function(t, e, i) {
|
5511
|
-
if (!(!this._map || i && i.getAttribute("src") ===
|
5512
|
-
return
|
5510
|
+
if (!(!this._map || i && i.getAttribute("src") === rt))
|
5511
|
+
return Ee.prototype._tileReady.call(this, t, e, i);
|
5513
5512
|
}
|
5514
5513
|
});
|
5515
5514
|
function eo(t, e) {
|
5516
|
-
return new
|
5515
|
+
return new pe(t, e);
|
5517
5516
|
}
|
5518
|
-
var io =
|
5517
|
+
var io = pe.extend({
|
5519
5518
|
// @section
|
5520
5519
|
// @aka TileLayer.WMS options
|
5521
5520
|
// If any custom options not documented here are used, they will be sent to the
|
@@ -5561,11 +5560,11 @@ function ta() {
|
|
5561
5560
|
onAdd: function(t) {
|
5562
5561
|
this._crs = this.options.crs || t.options.crs, this._wmsVersion = parseFloat(this.wmsParams.version);
|
5563
5562
|
var e = this._wmsVersion >= 1.3 ? "crs" : "srs";
|
5564
|
-
this.wmsParams[e] = this._crs.code,
|
5563
|
+
this.wmsParams[e] = this._crs.code, pe.prototype.onAdd.call(this, t);
|
5565
5564
|
},
|
5566
5565
|
getTileUrl: function(t) {
|
5567
|
-
var e = this._tileCoordsToNwSe(t), i = this._crs, n = dt(i.project(e[0]), i.project(e[1])), o = n.min, s = n.max,
|
5568
|
-
return u + ct(this.wmsParams, u, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") +
|
5566
|
+
var e = this._tileCoordsToNwSe(t), i = this._crs, n = dt(i.project(e[0]), i.project(e[1])), o = n.min, s = n.max, a = (this._wmsVersion >= 1.3 && this._crs === Kn ? [o.y, o.x, s.y, s.x] : [o.x, o.y, s.x, s.y]).join(","), u = pe.prototype.getTileUrl.call(this, t);
|
5567
|
+
return u + ct(this.wmsParams, u, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + a;
|
5569
5568
|
},
|
5570
5569
|
// @method setParams(params: Object, noRedraw?: Boolean): this
|
5571
5570
|
// Merges an object with the new parameters and re-requests tiles on the current screen (unless `noRedraw` was set to true).
|
@@ -5576,7 +5575,7 @@ function ta() {
|
|
5576
5575
|
function ur(t, e) {
|
5577
5576
|
return new io(t, e);
|
5578
5577
|
}
|
5579
|
-
|
5578
|
+
pe.WMS = io, eo.wms = ur;
|
5580
5579
|
var Dt = Tt.extend({
|
5581
5580
|
// @section
|
5582
5581
|
// @aka Renderer options
|
@@ -5612,7 +5611,7 @@ function ta() {
|
|
5612
5611
|
},
|
5613
5612
|
_updateTransform: function(t, e) {
|
5614
5613
|
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));
|
5615
|
-
y.any3d ?
|
5614
|
+
y.any3d ? $t(this._container, s, i) : $(this._container, s);
|
5616
5615
|
},
|
5617
5616
|
_reset: function() {
|
5618
5617
|
this._update(), this._updateTransform(this._center, this._zoom);
|
@@ -5710,7 +5709,7 @@ function ta() {
|
|
5710
5709
|
t.options._dashArray = t.options.dashArray;
|
5711
5710
|
},
|
5712
5711
|
_requestRedraw: function(t) {
|
5713
|
-
this._map && (this._extendRedrawBounds(t), this._redrawRequest = this._redrawRequest ||
|
5712
|
+
this._map && (this._extendRedrawBounds(t), this._redrawRequest = this._redrawRequest || nt(this._redraw, this));
|
5714
5713
|
},
|
5715
5714
|
_extendRedrawBounds: function(t) {
|
5716
5715
|
if (t._pxBounds) {
|
@@ -5742,11 +5741,11 @@ function ta() {
|
|
5742
5741
|
},
|
5743
5742
|
_updatePoly: function(t, e) {
|
5744
5743
|
if (this._drawing) {
|
5745
|
-
var i, n, o, s,
|
5744
|
+
var i, n, o, s, a = t._parts, u = a.length, c = this._ctx;
|
5746
5745
|
if (u) {
|
5747
5746
|
for (c.beginPath(), i = 0; i < u; i++) {
|
5748
|
-
for (n = 0, o =
|
5749
|
-
s =
|
5747
|
+
for (n = 0, o = a[i].length; n < o; n++)
|
5748
|
+
s = a[i][n], c[n ? "lineTo" : "moveTo"](s.x, s.y);
|
5750
5749
|
e && c.closePath();
|
5751
5750
|
}
|
5752
5751
|
this._fillStroke(c, t);
|
@@ -5818,7 +5817,7 @@ function ta() {
|
|
5818
5817
|
function oo(t) {
|
5819
5818
|
return y.canvas ? new no(t) : null;
|
5820
5819
|
}
|
5821
|
-
var
|
5820
|
+
var Be = function() {
|
5822
5821
|
try {
|
5823
5822
|
return document.namespaces.add("lvml", "urn:schemas-microsoft-com:vml"), function(t) {
|
5824
5823
|
return document.createElement("<lvml:" + t + ' class="lvml">');
|
@@ -5836,8 +5835,8 @@ function ta() {
|
|
5836
5835
|
this._map._animatingZoom || (Dt.prototype._update.call(this), this.fire("update"));
|
5837
5836
|
},
|
5838
5837
|
_initPath: function(t) {
|
5839
|
-
var e = t._container =
|
5840
|
-
C(e, "leaflet-vml-shape " + (this.options.className || "")), e.coordsize = "1 1", t._path =
|
5838
|
+
var e = t._container = Be("shape");
|
5839
|
+
C(e, "leaflet-vml-shape " + (this.options.className || "")), e.coordsize = "1 1", t._path = Be("path"), e.appendChild(t._path), this._updateStyle(t), this._layers[v(t)] = t;
|
5841
5840
|
},
|
5842
5841
|
_addPath: function(t) {
|
5843
5842
|
var e = t._container;
|
@@ -5849,7 +5848,7 @@ function ta() {
|
|
5849
5848
|
},
|
5850
5849
|
_updateStyle: function(t) {
|
5851
5850
|
var e = t._stroke, i = t._fill, n = t.options, o = t._container;
|
5852
|
-
o.stroked = !!n.stroke, o.filled = !!n.fill, n.stroke ? (e || (e = t._stroke =
|
5851
|
+
o.stroked = !!n.stroke, o.filled = !!n.fill, n.stroke ? (e || (e = t._stroke = Be("stroke")), o.appendChild(e), e.weight = n.weight + "px", e.color = n.color, e.opacity = n.opacity, n.dashArray ? e.dashStyle = V(n.dashArray) ? n.dashArray.join(" ") : n.dashArray.replace(/( *, *)/g, " ") : e.dashStyle = "", e.endcap = n.lineCap.replace("butt", "flat"), e.joinstyle = n.lineJoin) : e && (o.removeChild(e), t._stroke = null), n.fill ? (i || (i = t._fill = Be("fill")), o.appendChild(i), i.color = n.fillColor || n.color, i.opacity = n.fillOpacity) : i && (o.removeChild(i), t._fill = null);
|
5853
5852
|
},
|
5854
5853
|
_updateCircle: function(t) {
|
5855
5854
|
var e = t._point.round(), i = Math.round(t._radius), n = Math.round(t._radiusY || i);
|
@@ -5859,12 +5858,12 @@ function ta() {
|
|
5859
5858
|
t._path.v = e;
|
5860
5859
|
},
|
5861
5860
|
_bringToFront: function(t) {
|
5862
|
-
|
5861
|
+
he(t._container);
|
5863
5862
|
},
|
5864
5863
|
_bringToBack: function(t) {
|
5865
|
-
|
5864
|
+
le(t._container);
|
5866
5865
|
}
|
5867
|
-
}, oi = y.vml ?
|
5866
|
+
}, oi = y.vml ? Be : hn, Ie = Dt.extend({
|
5868
5867
|
_initContainer: function() {
|
5869
5868
|
this._container = oi("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = oi("g"), this._container.appendChild(this._rootGroup);
|
5870
5869
|
},
|
@@ -5908,15 +5907,15 @@ function ta() {
|
|
5908
5907
|
},
|
5909
5908
|
// SVG does not have the concept of zIndex so we resort to changing the DOM order of elements
|
5910
5909
|
_bringToFront: function(t) {
|
5911
|
-
|
5910
|
+
he(t._path);
|
5912
5911
|
},
|
5913
5912
|
_bringToBack: function(t) {
|
5914
|
-
|
5913
|
+
le(t._path);
|
5915
5914
|
}
|
5916
5915
|
});
|
5917
|
-
y.vml &&
|
5916
|
+
y.vml && Ie.include(cr);
|
5918
5917
|
function so(t) {
|
5919
|
-
return y.svg || y.vml ? new
|
5918
|
+
return y.svg || y.vml ? new Ie(t) : null;
|
5920
5919
|
}
|
5921
5920
|
I.include({
|
5922
5921
|
// @namespace Map; @method getRenderer(layer: Path): Renderer
|
@@ -5937,9 +5936,9 @@ function ta() {
|
|
5937
5936
|
return this.options.preferCanvas && oo(t) || so(t);
|
5938
5937
|
}
|
5939
5938
|
});
|
5940
|
-
var ro =
|
5939
|
+
var ro = de.extend({
|
5941
5940
|
initialize: function(t, e) {
|
5942
|
-
|
5941
|
+
de.prototype.initialize.call(this, this._boundsToLatLngs(t), e);
|
5943
5942
|
},
|
5944
5943
|
// @method setBounds(latLngBounds: LatLngBounds): this
|
5945
5944
|
// Redraws the rectangle with the passed bounds.
|
@@ -5958,7 +5957,7 @@ function ta() {
|
|
5958
5957
|
function dr(t, e) {
|
5959
5958
|
return new ro(t, e);
|
5960
5959
|
}
|
5961
|
-
|
5960
|
+
Ie.create = oi, Ie.pointsToPath = ln, Nt.geometryToLayer = Xe, Nt.coordsToLatLng = Vi, Nt.coordsToLatLngs = Qe, Nt.latLngToCoords = Wi, Nt.latLngsToCoords = $e, Nt.getFeature = fe, Nt.asFeature = ti, I.mergeOptions({
|
5962
5961
|
// @option boxZoom: Boolean = true
|
5963
5962
|
// Whether the map can be zoomed to a rectangular area specified by
|
5964
5963
|
// dragging the mouse while pressing the shift key.
|
@@ -5989,8 +5988,8 @@ function ta() {
|
|
5989
5988
|
_onMouseDown: function(t) {
|
5990
5989
|
if (!t.shiftKey || t.which !== 1 && t.button !== 1)
|
5991
5990
|
return !1;
|
5992
|
-
this._clearDeferredResetState(), this._resetState(),
|
5993
|
-
contextmenu:
|
5991
|
+
this._clearDeferredResetState(), this._resetState(), Me(), Ti(), this._startPoint = this._map.mouseEventToContainerPoint(t), S(document, {
|
5992
|
+
contextmenu: ie,
|
5994
5993
|
mousemove: this._onMouseMove,
|
5995
5994
|
mouseup: this._onMouseUp,
|
5996
5995
|
keydown: this._onKeyDown
|
@@ -6002,8 +6001,8 @@ function ta() {
|
|
6002
6001
|
$(this._box, e.min), this._box.style.width = i.x + "px", this._box.style.height = i.y + "px";
|
6003
6002
|
},
|
6004
6003
|
_finish: function() {
|
6005
|
-
this._moved && (J(this._box), Y(this._container, "leaflet-crosshair")),
|
6006
|
-
contextmenu:
|
6004
|
+
this._moved && (J(this._box), Y(this._container, "leaflet-crosshair")), Oe(), Mi(), W(document, {
|
6005
|
+
contextmenu: ie,
|
6007
6006
|
mousemove: this._onMouseMove,
|
6008
6007
|
mouseup: this._onMouseUp,
|
6009
6008
|
keydown: this._onKeyDown
|
@@ -6136,8 +6135,8 @@ function ta() {
|
|
6136
6135
|
}
|
6137
6136
|
},
|
6138
6137
|
_onPreDragWrap: function() {
|
6139
|
-
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,
|
6140
|
-
this._draggable._absPos = this._draggable._newPos.clone(), this._draggable._newPos.x =
|
6138
|
+
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, a = Math.abs(o + i) < Math.abs(s + i) ? o : s;
|
6139
|
+
this._draggable._absPos = this._draggable._newPos.clone(), this._draggable._newPos.x = a;
|
6141
6140
|
},
|
6142
6141
|
_onDragEnd: function(t) {
|
6143
6142
|
var e = this._map, i = e.options, n = !i.inertia || t.noInertia || this._times.length < 2;
|
@@ -6145,11 +6144,11 @@ function ta() {
|
|
6145
6144
|
e.fire("moveend");
|
6146
6145
|
else {
|
6147
6146
|
this._prunePositions(+/* @__PURE__ */ new Date());
|
6148
|
-
var o = this._lastPos.subtract(this._positions[0]), s = (this._lastTime - this._times[0]) / 1e3,
|
6149
|
-
!k.x && !k.y ? e.fire("moveend") : (k = e._limitOffset(k, e.options.maxBounds),
|
6147
|
+
var o = this._lastPos.subtract(this._positions[0]), s = (this._lastTime - this._times[0]) / 1e3, a = i.easeLinearity, u = o.multiplyBy(a / s), c = u.distanceTo([0, 0]), f = Math.min(i.inertiaMaxSpeed, c), _ = u.multiplyBy(f / c), P = f / (i.inertiaDeceleration * a), k = _.multiplyBy(-P / 2).round();
|
6148
|
+
!k.x && !k.y ? e.fire("moveend") : (k = e._limitOffset(k, e.options.maxBounds), nt(function() {
|
6150
6149
|
e.panBy(k, {
|
6151
6150
|
duration: P,
|
6152
|
-
easeLinearity:
|
6151
|
+
easeLinearity: a,
|
6153
6152
|
noMoveStart: !0,
|
6154
6153
|
animate: !0
|
6155
6154
|
});
|
@@ -6251,7 +6250,7 @@ function ta() {
|
|
6251
6250
|
i.closePopup();
|
6252
6251
|
else
|
6253
6252
|
return;
|
6254
|
-
|
6253
|
+
ie(t);
|
6255
6254
|
}
|
6256
6255
|
}
|
6257
6256
|
});
|
@@ -6282,13 +6281,13 @@ function ta() {
|
|
6282
6281
|
var e = In(t), i = this._map.options.wheelDebounceTime;
|
6283
6282
|
this._delta += e, this._lastMousePos = this._map.mouseEventToContainerPoint(t), this._startTime || (this._startTime = +/* @__PURE__ */ new Date());
|
6284
6283
|
var n = Math.max(i - (+/* @__PURE__ */ new Date() - this._startTime), 0);
|
6285
|
-
clearTimeout(this._timer), this._timer = setTimeout(g(this._performZoom, this), n),
|
6284
|
+
clearTimeout(this._timer), this._timer = setTimeout(g(this._performZoom, this), n), ie(t);
|
6286
6285
|
},
|
6287
6286
|
_performZoom: function() {
|
6288
6287
|
var t = this._map, e = t.getZoom(), i = this._map.options.zoomSnap || 0;
|
6289
6288
|
t._stop();
|
6290
|
-
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,
|
6291
|
-
this._delta = 0, this._startTime = null,
|
6289
|
+
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, a = t._limitZoom(e + (this._delta > 0 ? s : -s)) - e;
|
6290
|
+
this._delta = 0, this._startTime = null, a && (t.options.scrollWheelZoom === "center" ? t.setZoom(e + a) : t.setZoomAround(this._lastMousePos, e + a));
|
6292
6291
|
}
|
6293
6292
|
});
|
6294
6293
|
I.addInitHook("addHandler", "scrollWheelZoom", co);
|
@@ -6314,12 +6313,12 @@ function ta() {
|
|
6314
6313
|
if (clearTimeout(this._holdTimeout), t.touches.length === 1) {
|
6315
6314
|
var e = t.touches[0];
|
6316
6315
|
this._startPos = this._newPos = new O(e.clientX, e.clientY), this._holdTimeout = setTimeout(g(function() {
|
6317
|
-
this._cancel(), this._isTapValid() && (S(document, "touchend",
|
6316
|
+
this._cancel(), this._isTapValid() && (S(document, "touchend", ot), S(document, "touchend touchcancel", this._cancelClickPrevent), this._simulateEvent("contextmenu", e));
|
6318
6317
|
}, this), fr), S(document, "touchend touchcancel contextmenu", this._cancel, this), S(document, "touchmove", this._onMove, this);
|
6319
6318
|
}
|
6320
6319
|
},
|
6321
6320
|
_cancelClickPrevent: function t() {
|
6322
|
-
W(document, "touchend",
|
6321
|
+
W(document, "touchend", ot), W(document, "touchend touchcancel", t);
|
6323
6322
|
},
|
6324
6323
|
_cancel: function() {
|
6325
6324
|
clearTimeout(this._holdTimeout), W(document, "touchend touchcancel contextmenu", this._cancel, this), W(document, "touchmove", this._onMove, this);
|
@@ -6371,7 +6370,7 @@ function ta() {
|
|
6371
6370
|
var e = this._map;
|
6372
6371
|
if (!(!t.touches || t.touches.length !== 2 || e._animatingZoom || this._zooming)) {
|
6373
6372
|
var i = e.mouseEventToContainerPoint(t.touches[0]), n = e.mouseEventToContainerPoint(t.touches[1]);
|
6374
|
-
this._centerPoint = e.getSize()._divideBy(2), this._startLatLng = e.containerPointToLatLng(this._centerPoint), e.options.touchZoom !== "center" && (this._pinchStartLatLng = e.containerPointToLatLng(i.add(n)._divideBy(2))), this._startDist = i.distanceTo(n), this._startZoom = e.getZoom(), this._moved = !1, this._zooming = !0, e._stop(), S(document, "touchmove", this._onTouchMove, this), S(document, "touchend touchcancel", this._onTouchEnd, this),
|
6373
|
+
this._centerPoint = e.getSize()._divideBy(2), this._startLatLng = e.containerPointToLatLng(this._centerPoint), e.options.touchZoom !== "center" && (this._pinchStartLatLng = e.containerPointToLatLng(i.add(n)._divideBy(2))), this._startDist = i.distanceTo(n), this._startZoom = e.getZoom(), this._moved = !1, this._zooming = !0, e._stop(), S(document, "touchmove", this._onTouchMove, this), S(document, "touchend touchcancel", this._onTouchEnd, this), ot(t);
|
6375
6374
|
}
|
6376
6375
|
},
|
6377
6376
|
_onTouchMove: function(t) {
|
@@ -6387,8 +6386,8 @@ function ta() {
|
|
6387
6386
|
this._center = e.unproject(e.project(this._pinchStartLatLng, this._zoom).subtract(s), this._zoom);
|
6388
6387
|
}
|
6389
6388
|
this._moved || (e._moveStart(!0, !1), this._moved = !0), vt(this._animRequest);
|
6390
|
-
var
|
6391
|
-
this._animRequest =
|
6389
|
+
var a = g(e._move, e, this._center, this._zoom, { pinch: !0, round: !1 }, void 0);
|
6390
|
+
this._animRequest = nt(a, this, !0), ot(t);
|
6392
6391
|
}
|
6393
6392
|
},
|
6394
6393
|
_onTouchEnd: function() {
|
@@ -6399,13 +6398,13 @@ function ta() {
|
|
6399
6398
|
this._zooming = !1, vt(this._animRequest), W(document, "touchmove", this._onTouchMove, this), W(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));
|
6400
6399
|
}
|
6401
6400
|
});
|
6402
|
-
I.addInitHook("addHandler", "touchZoom", po), I.BoxZoom = ao, I.DoubleClickZoom = ho, I.Drag = lo, I.Keyboard = uo, I.ScrollWheelZoom = co, I.TapHold = fo, I.TouchZoom = po,
|
6401
|
+
I.addInitHook("addHandler", "touchZoom", po), I.BoxZoom = ao, I.DoubleClickZoom = ho, I.Drag = lo, I.Keyboard = uo, I.ScrollWheelZoom = co, I.TapHold = fo, I.TouchZoom = po, h.Bounds = K, h.Browser = y, h.CRS = It, h.Canvas = no, h.Circle = Fi, h.CircleMarker = Ye, h.Class = Bt, h.Control = xt, h.DivIcon = to, h.DivOverlay = zt, h.DomEvent = zs, h.DomUtil = Cs, h.Draggable = Gt, h.Evented = be, h.FeatureGroup = Zt, h.GeoJSON = Nt, h.GridLayer = Ee, h.Handler = kt, h.Icon = ce, h.ImageOverlay = ei, h.LatLng = F, h.LatLngBounds = ft, h.Layer = Tt, h.LayerGroup = ue, h.LineUtil = Us, h.Map = I, h.Marker = Je, h.Mixin = Ns, h.Path = Kt, h.Point = O, h.PolyUtil = Ds, h.Polygon = de, h.Polyline = Rt, h.Popup = ii, h.PosAnimation = Zn, h.Projection = qs, h.Rectangle = ro, h.Renderer = Dt, h.SVG = Ie, h.SVGOverlay = $n, h.TileLayer = pe, h.Tooltip = ni, h.Transformation = fi, h.Util = Xo, h.VideoOverlay = Qn, h.bind = g, h.bounds = dt, h.canvas = oo, h.circle = $s, h.circleMarker = Qs, h.control = ke, h.divIcon = hr, h.extend = p, h.featureGroup = Js, h.geoJSON = Xn, h.geoJson = ir, h.gridLayer = lr, h.icon = Ys, h.imageOverlay = nr, h.latLng = B, h.latLngBounds = Q, h.layerGroup = Ks, h.map = As, h.marker = Xs, h.point = M, h.polygon = er, h.polyline = tr, h.popup = rr, h.rectangle = dr, h.setOptions = N, h.stamp = v, h.svg = so, h.svgOverlay = sr, h.tileLayer = eo, h.tooltip = ar, h.transformation = Le, h.version = d, h.videoOverlay = or;
|
6403
6402
|
var pr = window.L;
|
6404
|
-
|
6403
|
+
h.noConflict = function() {
|
6405
6404
|
return window.L = pr, this;
|
6406
|
-
}, window.L =
|
6405
|
+
}, window.L = h;
|
6407
6406
|
});
|
6408
|
-
}(
|
6407
|
+
}(Ze, Ze.exports)), Ze.exports;
|
6409
6408
|
}
|
6410
6409
|
var ci = ta();
|
6411
6410
|
const Mt = /* @__PURE__ */ xr(ci), ea = /* @__PURE__ */ Xr({
|
@@ -6421,44 +6420,44 @@ const Mt = /* @__PURE__ */ xr(ci), ea = /* @__PURE__ */ Xr({
|
|
6421
6420
|
__proto__: null,
|
6422
6421
|
default: Co
|
6423
6422
|
}, Symbol.toStringTag, { value: "Module" })), bo = (r, l) => {
|
6424
|
-
for (const
|
6425
|
-
r.on(
|
6423
|
+
for (const h of Object.keys(l))
|
6424
|
+
r.on(h, l[h]);
|
6426
6425
|
}, ko = (r) => {
|
6427
6426
|
for (const l of Object.keys(r)) {
|
6428
|
-
const
|
6429
|
-
|
6427
|
+
const h = r[l];
|
6428
|
+
h && Jt(h.cancel) && h.cancel();
|
6430
6429
|
}
|
6431
|
-
}, sa = (r) => !r || typeof r.charAt != "function" ? r : r.charAt(0).toUpperCase() + r.slice(1), Jt = (r) => typeof r == "function", Wt = (r, l,
|
6432
|
-
for (const d in
|
6430
|
+
}, sa = (r) => !r || typeof r.charAt != "function" ? r : r.charAt(0).toUpperCase() + r.slice(1), Jt = (r) => typeof r == "function", Wt = (r, l, h) => {
|
6431
|
+
for (const d in h) {
|
6433
6432
|
const p = "set" + sa(d);
|
6434
6433
|
r[p] ? vo(
|
6435
|
-
() =>
|
6434
|
+
() => h[d],
|
6436
6435
|
(m, g) => {
|
6437
6436
|
r[p](m, g);
|
6438
6437
|
}
|
6439
6438
|
) : l[p] && vo(
|
6440
|
-
() =>
|
6439
|
+
() => h[d],
|
6441
6440
|
(m) => {
|
6442
6441
|
l[p](m);
|
6443
6442
|
}
|
6444
6443
|
);
|
6445
6444
|
}
|
6446
|
-
}, Qt = (r, l,
|
6447
|
-
const d = { ...
|
6445
|
+
}, Qt = (r, l, h = {}) => {
|
6446
|
+
const d = { ...h };
|
6448
6447
|
for (const p in r) {
|
6449
6448
|
const m = l[p], g = r[p];
|
6450
6449
|
m && (m && m.custom === !0 || g !== void 0 && (d[p] = g));
|
6451
6450
|
}
|
6452
6451
|
return d;
|
6453
|
-
},
|
6454
|
-
const l = {},
|
6452
|
+
}, re = (r) => {
|
6453
|
+
const l = {}, h = {};
|
6455
6454
|
for (const d in r)
|
6456
6455
|
if (d.startsWith("on") && !d.startsWith("onUpdate") && d !== "onReady") {
|
6457
6456
|
const p = d.slice(2).toLocaleLowerCase();
|
6458
6457
|
l[p] = r[d];
|
6459
6458
|
} else
|
6460
|
-
|
6461
|
-
return { listeners: l, attrs:
|
6459
|
+
h[d] = r[d];
|
6460
|
+
return { listeners: l, attrs: h };
|
6462
6461
|
}, ra = async (r) => {
|
6463
6462
|
const l = await Promise.all([
|
6464
6463
|
Promise.resolve().then(() => ia),
|
@@ -6471,10 +6470,10 @@ const Mt = /* @__PURE__ */ xr(ci), ea = /* @__PURE__ */ Xr({
|
|
6471
6470
|
shadowUrl: l[2].default
|
6472
6471
|
});
|
6473
6472
|
}, hi = (r) => {
|
6474
|
-
const l =
|
6473
|
+
const l = st(
|
6475
6474
|
(...d) => console.warn(`Method ${r} has been invoked without being replaced`)
|
6476
|
-
),
|
6477
|
-
return
|
6475
|
+
), h = (...d) => l.value(...d);
|
6476
|
+
return h.wrapped = l, Ht(r, h), h;
|
6478
6477
|
}, li = (r, l) => r.wrapped.value = l, Ot = typeof self == "object" && self.self === self && self || typeof global == "object" && global.global === global && global || globalThis, mt = (r) => {
|
6479
6478
|
const l = Vt(r);
|
6480
6479
|
if (l === void 0)
|
@@ -6484,20 +6483,20 @@ const Mt = /* @__PURE__ */ xr(ci), ea = /* @__PURE__ */ Xr({
|
|
6484
6483
|
return l;
|
6485
6484
|
}, Ut = Symbol(
|
6486
6485
|
"useGlobalLeaflet"
|
6487
|
-
),
|
6486
|
+
), Re = Symbol("addLayer"), zo = Symbol("removeLayer"), nn = Symbol(
|
6488
6487
|
"registerControl"
|
6489
6488
|
), aa = Symbol(
|
6490
6489
|
"registerLayerControl"
|
6491
6490
|
), Ao = Symbol(
|
6492
6491
|
"canSetParentHtml"
|
6493
|
-
), Eo = Symbol("setParentHtml"), Bo = Symbol("setIcon"), Io = Symbol("bindPopup"), Zo = Symbol("bindTooltip"), Ro = Symbol("unbindPopup"), No = Symbol("unbindTooltip"),
|
6492
|
+
), Eo = Symbol("setParentHtml"), Bo = Symbol("setIcon"), Io = Symbol("bindPopup"), Zo = Symbol("bindTooltip"), Ro = Symbol("unbindPopup"), No = Symbol("unbindTooltip"), Ne = {
|
6494
6493
|
options: {
|
6495
6494
|
type: Object,
|
6496
6495
|
default: () => ({}),
|
6497
6496
|
custom: !0
|
6498
6497
|
}
|
6499
|
-
},
|
6500
|
-
...
|
6498
|
+
}, De = (r) => ({ options: r.options, methods: {} }), ye = {
|
6499
|
+
...Ne,
|
6501
6500
|
pane: {
|
6502
6501
|
type: String
|
6503
6502
|
},
|
@@ -6517,10 +6516,10 @@ const Mt = /* @__PURE__ */ xr(ci), ea = /* @__PURE__ */ Xr({
|
|
6517
6516
|
custom: !0,
|
6518
6517
|
default: !0
|
6519
6518
|
}
|
6520
|
-
}, Do = (r, l,
|
6521
|
-
const d = mt(
|
6519
|
+
}, Do = (r, l, h) => {
|
6520
|
+
const d = mt(Re), p = mt(zo), { options: m, methods: g } = De(r), T = Qt(
|
6522
6521
|
r,
|
6523
|
-
|
6522
|
+
ye,
|
6524
6523
|
m
|
6525
6524
|
), v = () => d({ leafletObject: l.value }), E = () => p({ leafletObject: l.value }), x = {
|
6526
6525
|
...g,
|
@@ -6561,7 +6560,7 @@ const Mt = /* @__PURE__ */ xr(ci), ea = /* @__PURE__ */ Xr({
|
|
6561
6560
|
l.value && (Jt(l.value.closePopup) && l.value.closePopup(), Jt(l.value.unbindPopup) && l.value.unbindPopup());
|
6562
6561
|
},
|
6563
6562
|
updateVisibleProp(b) {
|
6564
|
-
|
6563
|
+
h.emit("update:visible", b);
|
6565
6564
|
}
|
6566
6565
|
};
|
6567
6566
|
return Ht(Io, x.bindPopup), Ht(Zo, x.bindTooltip), Ht(Ro, x.unbindPopup), Ht(No, x.unbindTooltip), $i(() => {
|
@@ -6569,9 +6568,9 @@ const Mt = /* @__PURE__ */ xr(ci), ea = /* @__PURE__ */ Xr({
|
|
6569
6568
|
}), { options: T, methods: x };
|
6570
6569
|
}, ha = (r, l) => {
|
6571
6570
|
if (r && l.default)
|
6572
|
-
return
|
6571
|
+
return se("div", { style: { display: "none" } }, l.default());
|
6573
6572
|
}, la = {
|
6574
|
-
...
|
6573
|
+
...ye,
|
6575
6574
|
interactive: {
|
6576
6575
|
type: Boolean,
|
6577
6576
|
default: void 0
|
@@ -6640,16 +6639,16 @@ const Mt = /* @__PURE__ */ xr(ci), ea = /* @__PURE__ */ Xr({
|
|
6640
6639
|
({
|
6641
6640
|
...ua
|
6642
6641
|
});
|
6643
|
-
const
|
6644
|
-
...
|
6642
|
+
const we = {
|
6643
|
+
...Ne,
|
6645
6644
|
position: {
|
6646
6645
|
type: String
|
6647
6646
|
}
|
6648
6647
|
}, Fo = (r, l) => {
|
6649
|
-
const { options:
|
6648
|
+
const { options: h, methods: d } = De(r), p = Qt(
|
6650
6649
|
r,
|
6651
|
-
|
6652
|
-
|
6650
|
+
we,
|
6651
|
+
h
|
6653
6652
|
), m = {
|
6654
6653
|
...d,
|
6655
6654
|
setPosition(g) {
|
@@ -6659,10 +6658,10 @@ const be = {
|
|
6659
6658
|
return $i(() => {
|
6660
6659
|
l.value && l.value.remove();
|
6661
6660
|
}), { options: p, methods: m };
|
6662
|
-
}, ca = (r) => r.default ?
|
6661
|
+
}, ca = (r) => r.default ? se("div", { ref: "root" }, r.default()) : null, da = Pt({
|
6663
6662
|
name: "LControl",
|
6664
6663
|
props: {
|
6665
|
-
...
|
6664
|
+
...we,
|
6666
6665
|
disableClickPropagation: {
|
6667
6666
|
type: Boolean,
|
6668
6667
|
custom: !0,
|
@@ -6675,31 +6674,31 @@ const be = {
|
|
6675
6674
|
}
|
6676
6675
|
},
|
6677
6676
|
setup(r, l) {
|
6678
|
-
const
|
6677
|
+
const h = st(), d = st(), p = Vt(Ut), m = mt(nn), { options: g, methods: T } = Fo(r, h);
|
6679
6678
|
return Ft(async () => {
|
6680
6679
|
const { Control: v, DomEvent: E } = p ? Ot.L : await import("./revolugo.leaflet-src.esm.DBQWLG1M.min.js"), x = v.extend({
|
6681
6680
|
onAdd() {
|
6682
6681
|
return d.value;
|
6683
6682
|
}
|
6684
6683
|
});
|
6685
|
-
|
6686
|
-
}), { root: d, leafletObject:
|
6684
|
+
h.value = Xt(new x(g)), Wt(T, h.value, r), m({ leafletObject: h.value }), r.disableClickPropagation && d.value && E.disableClickPropagation(d.value), r.disableScrollPropagation && d.value && E.disableScrollPropagation(d.value), Et(() => l.emit("ready", h.value));
|
6685
|
+
}), { root: d, leafletObject: h };
|
6687
6686
|
},
|
6688
6687
|
render() {
|
6689
6688
|
return ca(this.$slots);
|
6690
6689
|
}
|
6691
6690
|
});
|
6692
6691
|
({
|
6693
|
-
...
|
6692
|
+
...we
|
6694
6693
|
});
|
6695
6694
|
({
|
6696
|
-
...
|
6695
|
+
...we
|
6697
6696
|
});
|
6698
6697
|
({
|
6699
|
-
...
|
6698
|
+
...we
|
6700
6699
|
});
|
6701
6700
|
const Vo = {
|
6702
|
-
...
|
6701
|
+
...we,
|
6703
6702
|
zoomInText: {
|
6704
6703
|
type: String
|
6705
6704
|
},
|
@@ -6713,30 +6712,30 @@ const Vo = {
|
|
6713
6712
|
type: String
|
6714
6713
|
}
|
6715
6714
|
}, fa = (r, l) => {
|
6716
|
-
const { options:
|
6715
|
+
const { options: h, methods: d } = Fo(
|
6717
6716
|
r,
|
6718
6717
|
l
|
6719
6718
|
);
|
6720
6719
|
return { options: Qt(
|
6721
6720
|
r,
|
6722
6721
|
Vo,
|
6723
|
-
|
6722
|
+
h
|
6724
6723
|
), methods: d };
|
6725
6724
|
}, pa = Pt({
|
6726
6725
|
name: "LControlZoom",
|
6727
6726
|
props: Vo,
|
6728
6727
|
setup(r, l) {
|
6729
|
-
const
|
6728
|
+
const h = st(), d = Vt(Ut), p = mt(nn), { options: m, methods: g } = fa(r, h);
|
6730
6729
|
return Ft(async () => {
|
6731
6730
|
const { control: T } = d ? Ot.L : await import("./revolugo.leaflet-src.esm.DBQWLG1M.min.js");
|
6732
|
-
|
6733
|
-
}), { leafletObject:
|
6731
|
+
h.value = Xt(T.zoom(m)), Wt(g, h.value, r), p({ leafletObject: h.value }), Et(() => l.emit("ready", h.value));
|
6732
|
+
}), { leafletObject: h };
|
6734
6733
|
},
|
6735
6734
|
render() {
|
6736
6735
|
return null;
|
6737
6736
|
}
|
6738
6737
|
}), Wo = {
|
6739
|
-
...
|
6738
|
+
...ye
|
6740
6739
|
};
|
6741
6740
|
({
|
6742
6741
|
...Wo
|
@@ -6745,7 +6744,7 @@ const Vo = {
|
|
6745
6744
|
...Wo
|
6746
6745
|
});
|
6747
6746
|
const on = {
|
6748
|
-
...
|
6747
|
+
...ye,
|
6749
6748
|
opacity: {
|
6750
6749
|
type: Number
|
6751
6750
|
},
|
@@ -6768,11 +6767,11 @@ const on = {
|
|
6768
6767
|
className: {
|
6769
6768
|
type: String
|
6770
6769
|
}
|
6771
|
-
}, Uo = (r, l,
|
6770
|
+
}, Uo = (r, l, h) => {
|
6772
6771
|
const { options: d, methods: p } = Do(
|
6773
6772
|
r,
|
6774
6773
|
l,
|
6775
|
-
|
6774
|
+
h
|
6776
6775
|
), m = Qt(
|
6777
6776
|
r,
|
6778
6777
|
on,
|
@@ -6787,14 +6786,14 @@ const on = {
|
|
6787
6786
|
return $i(() => {
|
6788
6787
|
l.value.off();
|
6789
6788
|
}), { options: m, methods: g };
|
6790
|
-
}, ma = (r, l,
|
6789
|
+
}, ma = (r, l, h, d) => r.extend({
|
6791
6790
|
initialize(p) {
|
6792
|
-
this.tileComponents = {}, this.on("tileunload", this._unloadTile),
|
6791
|
+
this.tileComponents = {}, this.on("tileunload", this._unloadTile), h.setOptions(this, p);
|
6793
6792
|
},
|
6794
6793
|
createTile(p) {
|
6795
6794
|
const m = this._tileCoordsToKey(p);
|
6796
6795
|
this.tileComponents[m] = l.create("div");
|
6797
|
-
const g =
|
6796
|
+
const g = se({ setup: d, props: ["coords"] }, { coords: p });
|
6798
6797
|
return Mr(g, this.tileComponents[m]), this.tileComponents[m];
|
6799
6798
|
},
|
6800
6799
|
_unloadTile(p) {
|
@@ -6811,7 +6810,7 @@ Pt({
|
|
6811
6810
|
}
|
6812
6811
|
},
|
6813
6812
|
setup(r, l) {
|
6814
|
-
const
|
6813
|
+
const h = st(), d = st(null), p = st(!1), m = Vt(Ut), g = mt(Re), { options: T, methods: v } = Uo(r, h, l);
|
6815
6814
|
return Ft(async () => {
|
6816
6815
|
const { GridLayer: E, DomUtil: x, Util: b } = m ? Ot.L : await import("./revolugo.leaflet-src.esm.DBQWLG1M.min.js"), H = ma(
|
6817
6816
|
E,
|
@@ -6819,17 +6818,17 @@ Pt({
|
|
6819
6818
|
b,
|
6820
6819
|
r.childRender
|
6821
6820
|
);
|
6822
|
-
|
6823
|
-
const { listeners: R } =
|
6824
|
-
|
6821
|
+
h.value = Xt(new H(T));
|
6822
|
+
const { listeners: R } = re(l.attrs);
|
6823
|
+
h.value.on(R), Wt(v, h.value, r), g({
|
6825
6824
|
...r,
|
6826
6825
|
...v,
|
6827
|
-
leafletObject:
|
6828
|
-
}), p.value = !0, Et(() => l.emit("ready",
|
6829
|
-
}), { root: d, ready: p, leafletObject:
|
6826
|
+
leafletObject: h.value
|
6827
|
+
}), p.value = !0, Et(() => l.emit("ready", h.value));
|
6828
|
+
}), { root: d, ready: p, leafletObject: h };
|
6830
6829
|
},
|
6831
6830
|
render() {
|
6832
|
-
return this.ready ?
|
6831
|
+
return this.ready ? se("div", { style: { display: "none" }, ref: "root" }) : null;
|
6833
6832
|
}
|
6834
6833
|
});
|
6835
6834
|
const Lo = {
|
@@ -6873,10 +6872,10 @@ const Lo = {
|
|
6873
6872
|
name: "LIcon",
|
6874
6873
|
props: {
|
6875
6874
|
...Lo,
|
6876
|
-
...
|
6875
|
+
...Ne
|
6877
6876
|
},
|
6878
6877
|
setup(r, l) {
|
6879
|
-
const
|
6878
|
+
const h = st(), d = Vt(Ut), p = mt(Ao), m = mt(Eo), g = mt(Bo);
|
6880
6879
|
let T, v, E, x, b;
|
6881
6880
|
const H = (ct, q, X) => {
|
6882
6881
|
const V = ct && ct.innerHTML;
|
@@ -6884,18 +6883,18 @@ const Lo = {
|
|
6884
6883
|
X && b && p() && m(V);
|
6885
6884
|
return;
|
6886
6885
|
}
|
6887
|
-
const { listeners: w } =
|
6886
|
+
const { listeners: w } = re(l.attrs);
|
6888
6887
|
b && v(b, w);
|
6889
|
-
const { options:
|
6888
|
+
const { options: rt } = De(r), at = Qt(
|
6890
6889
|
r,
|
6891
6890
|
Lo,
|
6892
|
-
|
6891
|
+
rt
|
6893
6892
|
);
|
6894
|
-
V && (
|
6893
|
+
V && (at.html = V), b = at.html ? E(at) : x(at), T(b, w), g(b);
|
6895
6894
|
}, R = () => {
|
6896
|
-
Et(() => H(
|
6895
|
+
Et(() => H(h.value, !0, !1));
|
6897
6896
|
}, G = () => {
|
6898
|
-
Et(() => H(
|
6897
|
+
Et(() => H(h.value, !1, !0));
|
6899
6898
|
}, N = {
|
6900
6899
|
setIconUrl: R,
|
6901
6900
|
setIconRetinaUrl: R,
|
@@ -6916,26 +6915,26 @@ const Lo = {
|
|
6916
6915
|
divIcon: q,
|
6917
6916
|
icon: X
|
6918
6917
|
} = d ? Ot.L : await import("./revolugo.leaflet-src.esm.DBQWLG1M.min.js");
|
6919
|
-
T = ct.on, v = ct.off, E = q, x = X, Wt(N, {}, r), new MutationObserver(G).observe(
|
6918
|
+
T = ct.on, v = ct.off, E = q, x = X, Wt(N, {}, r), new MutationObserver(G).observe(h.value, {
|
6920
6919
|
attributes: !0,
|
6921
6920
|
childList: !0,
|
6922
6921
|
characterData: !0,
|
6923
6922
|
subtree: !0
|
6924
6923
|
}), R();
|
6925
|
-
}), { root:
|
6924
|
+
}), { root: h };
|
6926
6925
|
},
|
6927
6926
|
render() {
|
6928
6927
|
const r = this.$slots.default ? this.$slots.default() : void 0;
|
6929
|
-
return
|
6928
|
+
return se("div", { ref: "root" }, r);
|
6930
6929
|
}
|
6931
6930
|
});
|
6932
6931
|
({
|
6933
|
-
...
|
6932
|
+
...ye
|
6934
6933
|
});
|
6935
|
-
function qo(r, l,
|
6934
|
+
function qo(r, l, h) {
|
6936
6935
|
var d, p, m;
|
6937
|
-
l === void 0 && (l = 50),
|
6938
|
-
var g = (d =
|
6936
|
+
l === void 0 && (l = 50), h === void 0 && (h = {});
|
6937
|
+
var g = (d = h.isImmediate) != null && d, T = (p = h.callback) != null && p, v = h.maxWait, E = Date.now(), x = [];
|
6939
6938
|
function b() {
|
6940
6939
|
if (v !== void 0) {
|
6941
6940
|
var R = Date.now() - E;
|
@@ -6969,7 +6968,7 @@ function qo(r, l, a) {
|
|
6969
6968
|
}, H;
|
6970
6969
|
}
|
6971
6970
|
const Po = {
|
6972
|
-
...
|
6971
|
+
...Ne,
|
6973
6972
|
/**
|
6974
6973
|
* The center of the map, supports .sync modifier
|
6975
6974
|
*/
|
@@ -7085,15 +7084,15 @@ const Po = {
|
|
7085
7084
|
emits: ["ready", "update:zoom", "update:center", "update:bounds"],
|
7086
7085
|
props: Po,
|
7087
7086
|
setup(r, l) {
|
7088
|
-
const
|
7087
|
+
const h = st(), d = Tr({
|
7089
7088
|
ready: !1,
|
7090
7089
|
layersToAdd: [],
|
7091
7090
|
layersInControl: []
|
7092
|
-
}), { options: p } =
|
7091
|
+
}), { options: p } = De(r), m = Qt(
|
7093
7092
|
r,
|
7094
7093
|
Po,
|
7095
7094
|
p
|
7096
|
-
), { listeners: g, attrs: T } =
|
7095
|
+
), { listeners: g, attrs: T } = re(l.attrs), v = hi(Re), E = hi(zo), x = hi(nn), b = hi(
|
7097
7096
|
aa
|
7098
7097
|
);
|
7099
7098
|
Ht(Ut, r.useGlobalLeaflet);
|
@@ -7118,7 +7117,7 @@ const Po = {
|
|
7118
7117
|
};
|
7119
7118
|
Ft(async () => {
|
7120
7119
|
r.useGlobalLeaflet && (Ot.L = Ot.L || await Promise.resolve().then(() => ea));
|
7121
|
-
const { map: q, CRS: X, Icon: V, latLngBounds: w, latLng:
|
7120
|
+
const { map: q, CRS: X, Icon: V, latLngBounds: w, latLng: rt, stamp: at } = r.useGlobalLeaflet ? Ot.L : await import("./revolugo.leaflet-src.esm.DBQWLG1M.min.js");
|
7122
7121
|
try {
|
7123
7122
|
m.beforeMapMount && await m.beforeMapMount();
|
7124
7123
|
} catch (z) {
|
@@ -7127,19 +7126,19 @@ const Po = {
|
|
7127
7126
|
);
|
7128
7127
|
}
|
7129
7128
|
await ra(V);
|
7130
|
-
const
|
7131
|
-
m.crs =
|
7129
|
+
const He = typeof m.crs == "string" ? X[m.crs] : m.crs;
|
7130
|
+
m.crs = He || X.EPSG3857;
|
7132
7131
|
const qt = {
|
7133
7132
|
addLayer(z) {
|
7134
7133
|
z.layerType !== void 0 && (d.layerControl === void 0 ? d.layersToAdd.push(z) : d.layersInControl.find(
|
7135
|
-
(j) =>
|
7134
|
+
(j) => at(j.leafletObject) === at(z.leafletObject)
|
7136
7135
|
) || (d.layerControl.addLayer(z), d.layersInControl.push(z))), z.visible !== !1 && d.leafletRef.addLayer(z.leafletObject);
|
7137
7136
|
},
|
7138
7137
|
removeLayer(z) {
|
7139
7138
|
z.layerType !== void 0 && (d.layerControl === void 0 ? d.layersToAdd = d.layersToAdd.filter(
|
7140
7139
|
(j) => j.name !== z.name
|
7141
7140
|
) : (d.layerControl.removeLayer(z.leafletObject), d.layersInControl = d.layersInControl.filter(
|
7142
|
-
(j) =>
|
7141
|
+
(j) => at(j.leafletObject) !== at(z.leafletObject)
|
7143
7142
|
))), d.leafletRef.removeLayer(z.leafletObject);
|
7144
7143
|
},
|
7145
7144
|
registerLayerControl(z) {
|
@@ -7173,19 +7172,19 @@ const Po = {
|
|
7173
7172
|
setCenter(z) {
|
7174
7173
|
if (z == null)
|
7175
7174
|
return;
|
7176
|
-
const j =
|
7177
|
-
(
|
7175
|
+
const j = rt(z), nt = d.lastSetCenter || d.leafletRef.getCenter();
|
7176
|
+
(nt.lat !== j.lat || nt.lng !== j.lng) && (d.lastSetCenter = j, d.leafletRef.panTo(j, H.value));
|
7178
7177
|
}
|
7179
7178
|
};
|
7180
|
-
li(v, qt.addLayer), li(E, qt.removeLayer), li(x, qt.registerControl), li(b, qt.registerLayerControl), d.leafletRef = Xt(q(
|
7179
|
+
li(v, qt.addLayer), li(E, qt.removeLayer), li(x, qt.registerControl), li(b, qt.registerLayerControl), d.leafletRef = Xt(q(h.value, m)), Wt(qt, d.leafletRef, r), bo(d.leafletRef, G), bo(d.leafletRef, g), d.ready = !0, Et(() => l.emit("ready", d.leafletRef));
|
7181
7180
|
}), ui(() => {
|
7182
7181
|
ko(G), d.leafletRef && (d.leafletRef.off(), d.leafletRef.remove());
|
7183
7182
|
});
|
7184
7183
|
const N = ri(() => d.leafletRef), ct = ri(() => d.ready);
|
7185
|
-
return { root:
|
7184
|
+
return { root: h, ready: ct, leafletObject: N, attrs: T };
|
7186
7185
|
},
|
7187
7186
|
render({ attrs: r }) {
|
7188
|
-
return r.style || (r.style = {}), r.style.width || (r.style.width = "100%"), r.style.height || (r.style.height = "100%"),
|
7187
|
+
return r.style || (r.style = {}), r.style.width || (r.style.width = "100%"), r.style.height || (r.style.height = "100%"), se(
|
7189
7188
|
"div",
|
7190
7189
|
{
|
7191
7190
|
...r,
|
@@ -7195,7 +7194,7 @@ const Po = {
|
|
7195
7194
|
);
|
7196
7195
|
}
|
7197
7196
|
}), va = ["Symbol(Comment)", "Symbol(Text)"], ya = ["LTooltip", "LPopup"], jo = {
|
7198
|
-
...
|
7197
|
+
...ye,
|
7199
7198
|
draggable: {
|
7200
7199
|
type: Boolean,
|
7201
7200
|
default: void 0
|
@@ -7211,11 +7210,11 @@ const Po = {
|
|
7211
7210
|
custom: !0,
|
7212
7211
|
required: !0
|
7213
7212
|
}
|
7214
|
-
}, wa = (r, l,
|
7213
|
+
}, wa = (r, l, h) => {
|
7215
7214
|
const { options: d, methods: p } = Do(
|
7216
7215
|
r,
|
7217
7216
|
l,
|
7218
|
-
|
7217
|
+
h
|
7219
7218
|
), m = Qt(
|
7220
7219
|
r,
|
7221
7220
|
jo,
|
@@ -7226,7 +7225,7 @@ const Po = {
|
|
7226
7225
|
l.value.dragging && (T ? l.value.dragging.enable() : l.value.dragging.disable());
|
7227
7226
|
},
|
7228
7227
|
latLngSync(T) {
|
7229
|
-
|
7228
|
+
h.emit("update:latLng", T.latlng), h.emit("update:lat-lng", T.latlng);
|
7230
7229
|
},
|
7231
7230
|
setLatLng(T) {
|
7232
7231
|
if (T != null && l.value) {
|
@@ -7237,8 +7236,8 @@ const Po = {
|
|
7237
7236
|
};
|
7238
7237
|
return { options: m, methods: g };
|
7239
7238
|
}, ba = (r, l) => {
|
7240
|
-
const
|
7241
|
-
return
|
7239
|
+
const h = l.slots.default && l.slots.default();
|
7240
|
+
return h && h.length && h.some(La);
|
7242
7241
|
};
|
7243
7242
|
function La(r) {
|
7244
7243
|
return !(va.includes(r.type.toString()) || ya.includes(r.type.name));
|
@@ -7247,37 +7246,37 @@ const Pa = Pt({
|
|
7247
7246
|
name: "LMarker",
|
7248
7247
|
props: jo,
|
7249
7248
|
setup(r, l) {
|
7250
|
-
const
|
7249
|
+
const h = st(), d = st(!1), p = Vt(Ut), m = mt(Re);
|
7251
7250
|
Ht(
|
7252
7251
|
Ao,
|
7253
7252
|
() => {
|
7254
7253
|
var E;
|
7255
|
-
return !!((E =
|
7254
|
+
return !!((E = h.value) != null && E.getElement());
|
7256
7255
|
}
|
7257
7256
|
), Ht(Eo, (E) => {
|
7258
7257
|
var x, b;
|
7259
|
-
const H = Jt((x =
|
7258
|
+
const H = Jt((x = h.value) == null ? void 0 : x.getElement) && ((b = h.value) == null ? void 0 : b.getElement());
|
7260
7259
|
H && (H.innerHTML = E);
|
7261
7260
|
}), Ht(
|
7262
7261
|
Bo,
|
7263
7262
|
(E) => {
|
7264
7263
|
var x;
|
7265
|
-
return ((x =
|
7264
|
+
return ((x = h.value) == null ? void 0 : x.setIcon) && h.value.setIcon(E);
|
7266
7265
|
}
|
7267
7266
|
);
|
7268
|
-
const { options: g, methods: T } = wa(r,
|
7267
|
+
const { options: g, methods: T } = wa(r, h, l), v = {
|
7269
7268
|
moveHandler: qo(T.latLngSync)
|
7270
7269
|
};
|
7271
7270
|
return Ft(async () => {
|
7272
7271
|
const { marker: E, divIcon: x } = p ? Ot.L : await import("./revolugo.leaflet-src.esm.DBQWLG1M.min.js");
|
7273
|
-
ba(g, l) && (g.icon = x({ className: "" })),
|
7274
|
-
const { listeners: b } =
|
7275
|
-
|
7272
|
+
ba(g, l) && (g.icon = x({ className: "" })), h.value = Xt(E(r.latLng, g));
|
7273
|
+
const { listeners: b } = re(l.attrs);
|
7274
|
+
h.value.on(b), h.value.on("move", v.moveHandler), Wt(T, h.value, r), m({
|
7276
7275
|
...r,
|
7277
7276
|
...T,
|
7278
|
-
leafletObject:
|
7279
|
-
}), d.value = !0, Et(() => l.emit("ready",
|
7280
|
-
}), ui(() => ko(v)), { ready: d, leafletObject:
|
7277
|
+
leafletObject: h.value
|
7278
|
+
}), d.value = !0, Et(() => l.emit("ready", h.value));
|
7279
|
+
}), ui(() => ko(v)), { ready: d, leafletObject: h };
|
7281
7280
|
},
|
7282
7281
|
render() {
|
7283
7282
|
return ha(this.ready, this.$slots);
|
@@ -7299,41 +7298,41 @@ const Pa = Pt({
|
|
7299
7298
|
}, xo = {
|
7300
7299
|
...xa
|
7301
7300
|
}, Go = {
|
7302
|
-
...
|
7301
|
+
...Ne,
|
7303
7302
|
content: {
|
7304
7303
|
type: String,
|
7305
7304
|
default: null
|
7306
7305
|
}
|
7307
7306
|
}, Ko = (r, l) => {
|
7308
|
-
const { options:
|
7307
|
+
const { options: h, methods: d } = De(r), p = {
|
7309
7308
|
...d,
|
7310
7309
|
setContent(m) {
|
7311
7310
|
l.value && m !== null && m !== void 0 && l.value.setContent(m);
|
7312
7311
|
}
|
7313
7312
|
};
|
7314
|
-
return { options:
|
7315
|
-
}, Jo = (r) => r.default ?
|
7313
|
+
return { options: h, methods: p };
|
7314
|
+
}, Jo = (r) => r.default ? se("div", { ref: "root" }, r.default()) : null, Ta = {
|
7316
7315
|
...Go,
|
7317
7316
|
latLng: {
|
7318
7317
|
type: [Object, Array],
|
7319
7318
|
default: () => []
|
7320
7319
|
}
|
7321
7320
|
}, Ma = (r, l) => {
|
7322
|
-
const { options:
|
7323
|
-
return { options:
|
7321
|
+
const { options: h, methods: d } = Ko(r, l);
|
7322
|
+
return { options: h, methods: d };
|
7324
7323
|
}, Oa = Pt({
|
7325
7324
|
name: "LPopup",
|
7326
7325
|
props: Ta,
|
7327
7326
|
setup(r, l) {
|
7328
|
-
const
|
7327
|
+
const h = st(), d = st(null), p = Vt(Ut), m = mt(Io), g = mt(Ro), { options: T, methods: v } = Ma(r, h);
|
7329
7328
|
return Ft(async () => {
|
7330
7329
|
const { popup: E } = p ? Ot.L : await import("./revolugo.leaflet-src.esm.DBQWLG1M.min.js");
|
7331
|
-
|
7332
|
-
const { listeners: x } =
|
7333
|
-
|
7330
|
+
h.value = Xt(E(T)), r.latLng !== void 0 && h.value.setLatLng(r.latLng), Wt(v, h.value, r);
|
7331
|
+
const { listeners: x } = re(l.attrs);
|
7332
|
+
h.value.on(x), h.value.setContent(r.content || d.value || ""), m(h.value), Et(() => l.emit("ready", h.value));
|
7334
7333
|
}), ui(() => {
|
7335
7334
|
g();
|
7336
|
-
}), { root: d, leafletObject:
|
7335
|
+
}), { root: d, leafletObject: h };
|
7337
7336
|
},
|
7338
7337
|
render() {
|
7339
7338
|
return Jo(this.$slots);
|
@@ -7364,8 +7363,8 @@ const sn = {
|
|
7364
7363
|
required: !0,
|
7365
7364
|
custom: !0
|
7366
7365
|
}
|
7367
|
-
}, Sa = (r, l,
|
7368
|
-
const { options: d, methods: p } = Uo(r, l,
|
7366
|
+
}, Sa = (r, l, h) => {
|
7367
|
+
const { options: d, methods: p } = Uo(r, l, h), m = Qt(
|
7369
7368
|
r,
|
7370
7369
|
sn,
|
7371
7370
|
d
|
@@ -7376,17 +7375,17 @@ const sn = {
|
|
7376
7375
|
}, Ca = Pt({
|
7377
7376
|
props: sn,
|
7378
7377
|
setup(r, l) {
|
7379
|
-
const
|
7378
|
+
const h = st(), d = Vt(Ut), p = mt(Re), { options: m, methods: g } = Sa(r, h, l);
|
7380
7379
|
return Ft(async () => {
|
7381
7380
|
const { tileLayer: T } = d ? Ot.L : await import("./revolugo.leaflet-src.esm.DBQWLG1M.min.js");
|
7382
|
-
|
7383
|
-
const { listeners: v } =
|
7384
|
-
|
7381
|
+
h.value = Xt(T(r.url, m));
|
7382
|
+
const { listeners: v } = re(l.attrs);
|
7383
|
+
h.value.on(v), Wt(g, h.value, r), p({
|
7385
7384
|
...r,
|
7386
7385
|
...g,
|
7387
|
-
leafletObject:
|
7388
|
-
}), Et(() => l.emit("ready",
|
7389
|
-
}), { leafletObject:
|
7386
|
+
leafletObject: h.value
|
7387
|
+
}), Et(() => l.emit("ready", h.value));
|
7388
|
+
}), { leafletObject: h };
|
7390
7389
|
},
|
7391
7390
|
render() {
|
7392
7391
|
return null;
|
@@ -7394,21 +7393,21 @@ const sn = {
|
|
7394
7393
|
}), ka = {
|
7395
7394
|
...Go
|
7396
7395
|
}, za = (r, l) => {
|
7397
|
-
const { options:
|
7396
|
+
const { options: h, methods: d } = Ko(r, l), p = mt(No);
|
7398
7397
|
return ui(() => {
|
7399
7398
|
p();
|
7400
|
-
}), { options:
|
7399
|
+
}), { options: h, methods: d };
|
7401
7400
|
}, Aa = Pt({
|
7402
7401
|
name: "LTooltip",
|
7403
7402
|
props: ka,
|
7404
7403
|
setup(r, l) {
|
7405
|
-
const
|
7404
|
+
const h = st(), d = st(null), p = Vt(Ut), m = mt(Zo), { options: g, methods: T } = za(r, h);
|
7406
7405
|
return Ft(async () => {
|
7407
7406
|
const { tooltip: v } = p ? Ot.L : await import("./revolugo.leaflet-src.esm.DBQWLG1M.min.js");
|
7408
|
-
|
7409
|
-
const { listeners: E } =
|
7410
|
-
|
7411
|
-
}), { root: d, leafletObject:
|
7407
|
+
h.value = Xt(v(g)), Wt(T, h.value, r);
|
7408
|
+
const { listeners: E } = re(l.attrs);
|
7409
|
+
h.value.on(E), h.value.setContent(r.content || d.value || ""), m(h.value), Et(() => l.emit("ready", h.value));
|
7410
|
+
}), { root: d, leafletObject: h };
|
7412
7411
|
},
|
7413
7412
|
render() {
|
7414
7413
|
return Jo(this.$slots);
|
@@ -7493,7 +7492,7 @@ const Ea = {
|
|
7493
7492
|
type: Object
|
7494
7493
|
}
|
7495
7494
|
}, Ba = Pt({
|
7496
|
-
components: { BFormattedAmount:
|
7495
|
+
components: { BFormattedAmount: qr },
|
7497
7496
|
data() {
|
7498
7497
|
return {
|
7499
7498
|
bounceIn: !0
|
@@ -7519,14 +7518,14 @@ const Ea = {
|
|
7519
7518
|
key: 2,
|
7520
7519
|
class: "hotel-marker-badge partner"
|
7521
7520
|
};
|
7522
|
-
function Ra(r, l,
|
7521
|
+
function Ra(r, l, h, d, p, m) {
|
7523
7522
|
const g = lt("BFormattedAmount");
|
7524
7523
|
return Z(), ut("div", null, [
|
7525
|
-
|
7524
|
+
oe("div", {
|
7526
7525
|
class: Qi(["hotel-marker", {
|
7527
7526
|
focus: r.focus
|
7528
7527
|
}]),
|
7529
|
-
style:
|
7528
|
+
style: ve({
|
7530
7529
|
animationDuration: `${Math.random() * (1.5 - 0.2 + 1) + 0.2}s`
|
7531
7530
|
})
|
7532
7531
|
}, [
|
@@ -7570,7 +7569,7 @@ function Ra(r, l, a, d, p, m) {
|
|
7570
7569
|
amount: r.price,
|
7571
7570
|
"round-mode": "round"
|
7572
7571
|
}, null, 8, ["amount"]),
|
7573
|
-
l[2] || (l[2] =
|
7572
|
+
l[2] || (l[2] = oe("div", { class: "arrow" }, null, -1))
|
7574
7573
|
], 6)
|
7575
7574
|
]);
|
7576
7575
|
}
|
@@ -7604,17 +7603,17 @@ const Na = /* @__PURE__ */ en(Ba, [["render", Ra], ["__scopeId", "data-v-3b53a21
|
|
7604
7603
|
};
|
7605
7604
|
}
|
7606
7605
|
});
|
7607
|
-
function Fa(r, l,
|
7606
|
+
function Fa(r, l, h, d, p, m) {
|
7608
7607
|
return Z(), ut("div", {
|
7609
7608
|
class: "b-map-marker position-relative",
|
7610
|
-
style:
|
7609
|
+
style: ve({
|
7611
7610
|
width: r.size + "px",
|
7612
7611
|
height: r.size * Math.sqrt(2) + "px"
|
7613
7612
|
})
|
7614
7613
|
}, [
|
7615
|
-
|
7614
|
+
oe("div", {
|
7616
7615
|
class: "b-map-marker__pin",
|
7617
|
-
style:
|
7616
|
+
style: ve({
|
7618
7617
|
width: r.size + "px",
|
7619
7618
|
height: r.size + "px",
|
7620
7619
|
bottom: `calc(${r.size * ((1 - Math.sqrt(2)) / 2)}px + 5px)`
|
@@ -7622,7 +7621,7 @@ function Fa(r, l, a, d, p, m) {
|
|
7622
7621
|
}, [
|
7623
7622
|
r.imgUrl ? (Z(), ut("div", {
|
7624
7623
|
key: 0,
|
7625
|
-
style:
|
7624
|
+
style: ve({
|
7626
7625
|
height: `${r.size * (1 / Math.sqrt(2) - 0.1)}px`,
|
7627
7626
|
width: `${r.size * (1 / Math.sqrt(2) - 0.1)}px`,
|
7628
7627
|
backgroundImage: `url(${r.imgUrl})`
|
@@ -7638,7 +7637,7 @@ function Fa(r, l, a, d, p, m) {
|
|
7638
7637
|
_: 1
|
7639
7638
|
}, 8, ["color", "size"])) : gt("", !0)
|
7640
7639
|
], 4),
|
7641
|
-
|
7640
|
+
oe("div", {
|
7642
7641
|
class: Qi(r.pulse ? "b-map-marker__pulse" : null)
|
7643
7642
|
}, null, 2)
|
7644
7643
|
], 4);
|
@@ -7652,8 +7651,8 @@ ci.Icon.Default.mergeOptions({
|
|
7652
7651
|
});
|
7653
7652
|
const Yo = Pt({
|
7654
7653
|
components: {
|
7655
|
-
BBreakpointObserver:
|
7656
|
-
BErrorOverlay:
|
7654
|
+
BBreakpointObserver: Ur,
|
7655
|
+
BErrorOverlay: Wr,
|
7657
7656
|
BHotelOfferMarker: Na,
|
7658
7657
|
BHotelOffersFilterBar: Fr,
|
7659
7658
|
BMapMarker: Va,
|
@@ -7670,10 +7669,9 @@ const Yo = Pt({
|
|
7670
7669
|
},
|
7671
7670
|
computed: {
|
7672
7671
|
actualVenue() {
|
7673
|
-
var l, a;
|
7674
7672
|
const r = {
|
7675
|
-
latitude:
|
7676
|
-
longitude:
|
7673
|
+
latitude: this.parsedVenue?.latitude || this.hotelOfferRequest.latitude,
|
7674
|
+
longitude: this.parsedVenue?.longitude || this.hotelOfferRequest.longitude
|
7677
7675
|
};
|
7678
7676
|
return {
|
7679
7677
|
...this.parsedVenue,
|
@@ -7686,13 +7684,13 @@ const Yo = Pt({
|
|
7686
7684
|
...Sr(
|
7687
7685
|
kr,
|
7688
7686
|
Gr,
|
7689
|
-
|
7687
|
+
Vr
|
7690
7688
|
),
|
7691
7689
|
center() {
|
7692
7690
|
return this.hotelOfferRequest.longitude && this.hotelOfferRequest.latitude ? [this.hotelOfferRequest.latitude, this.hotelOfferRequest.longitude] : void 0;
|
7693
7691
|
},
|
7694
|
-
filters:
|
7695
|
-
hasErrorHotelOffers:
|
7692
|
+
filters: ge("hotelOffers/filters"),
|
7693
|
+
hasErrorHotelOffers: ge("hotelOffers/hasError"),
|
7696
7694
|
hereTileUrl() {
|
7697
7695
|
const r = "lite.day", l = this.showTransit ? "features=public_transit:all_systems&ppi=400" : "";
|
7698
7696
|
return `https://maps.hereapi.com/v3/base/mc/{z}/{x}/{y}/png8?style=${r}&${l}&apiKey={apiKey}`;
|
@@ -7703,13 +7701,13 @@ const Yo = Pt({
|
|
7703
7701
|
hotelOfferRequestMarker() {
|
7704
7702
|
return this.hotelOfferRequest.latitude && this.hotelOfferRequest.longitude ? [this.hotelOfferRequest.latitude, this.hotelOfferRequest.longitude] : void 0;
|
7705
7703
|
},
|
7706
|
-
hotelOffers:
|
7707
|
-
hotelOffersCurrency:
|
7704
|
+
hotelOffers: ge("hotelOffers/hotelOffers"),
|
7705
|
+
hotelOffersCurrency: ge("hotelOffers/hotelOffersCurrency"),
|
7708
7706
|
isMapVisible() {
|
7709
7707
|
return this.isBookingApiClientDefined && !this.showSkeleton && !this.showErrorMessage;
|
7710
7708
|
},
|
7711
|
-
isPollingHotelOffers:
|
7712
|
-
nightCount:
|
7709
|
+
isPollingHotelOffers: ge("hotelOffers/isPolling"),
|
7710
|
+
nightCount: ge("hotelOfferRequest/nightCount"),
|
7713
7711
|
showErrorMessage() {
|
7714
7712
|
return this.hotelOfferRequest.hasError || this.hasErrorHotelOffers;
|
7715
7713
|
},
|
@@ -7733,7 +7731,7 @@ const Yo = Pt({
|
|
7733
7731
|
return {
|
7734
7732
|
currentCenter: this.center,
|
7735
7733
|
displayMap: !0,
|
7736
|
-
hereApiKey:
|
7734
|
+
hereApiKey: Cr,
|
7737
7735
|
hereSubdomains: "1234",
|
7738
7736
|
isLocationInputVisible: !0,
|
7739
7737
|
isMapMouseDown: !1,
|
@@ -7746,29 +7744,26 @@ const Yo = Pt({
|
|
7746
7744
|
};
|
7747
7745
|
},
|
7748
7746
|
destroyed() {
|
7749
|
-
|
7750
|
-
(r = this.observer) == null || r.disconnect();
|
7747
|
+
this.observer?.disconnect();
|
7751
7748
|
},
|
7752
7749
|
methods: {
|
7753
7750
|
centerOnVenue() {
|
7754
|
-
|
7755
|
-
(r = this.actualVenue) != null && r.latitude && ((l = this.actualVenue) != null && l.longitude) && (this.isMapMoveDirty = !1, this.centerTo([(a = this.actualVenue) == null ? void 0 : a.latitude, (d = this.actualVenue) == null ? void 0 : d.longitude]), this.updateHotelOfferRequestLocation(
|
7751
|
+
this.actualVenue?.latitude && this.actualVenue?.longitude && (this.isMapMoveDirty = !1, this.centerTo([this.actualVenue?.latitude, this.actualVenue?.longitude]), this.updateHotelOfferRequestLocation(
|
7756
7752
|
this.actualVenue.latitude,
|
7757
7753
|
this.actualVenue.longitude
|
7758
7754
|
));
|
7759
7755
|
},
|
7760
|
-
centerTo(r, l = 0.5,
|
7761
|
-
|
7762
|
-
(d = this.map) == null || d.flyTo([r[0], r[1]], a, {
|
7756
|
+
centerTo(r, l = 0.5, h = 15) {
|
7757
|
+
this.map?.flyTo([r[0], r[1]], h, {
|
7763
7758
|
duration: l
|
7764
7759
|
});
|
7765
7760
|
},
|
7766
7761
|
fitBounds() {
|
7767
7762
|
if (!this.hotelOffers || this.hotelOffers.length === 0 || this.isMapMoveDirty)
|
7768
7763
|
return;
|
7769
|
-
const r = this.hotelOffers.map((
|
7770
|
-
|
7771
|
-
|
7764
|
+
const r = this.hotelOffers.map((h) => [
|
7765
|
+
h.latitude,
|
7766
|
+
h.longitude
|
7772
7767
|
]).concat([
|
7773
7768
|
[
|
7774
7769
|
this.hotelOfferRequestInternal.latitude,
|
@@ -7780,8 +7775,8 @@ const Yo = Pt({
|
|
7780
7775
|
l.fitBounds(r, {
|
7781
7776
|
padding: [3, 3]
|
7782
7777
|
});
|
7783
|
-
} catch (
|
7784
|
-
console.error(
|
7778
|
+
} catch (h) {
|
7779
|
+
console.error(h);
|
7785
7780
|
}
|
7786
7781
|
},
|
7787
7782
|
getHotelRoomOffer(r) {
|
@@ -7800,12 +7795,10 @@ const Yo = Pt({
|
|
7800
7795
|
this.isMapMouseDown && (this.isMapMoveDirty = !0);
|
7801
7796
|
},
|
7802
7797
|
onMapReady() {
|
7803
|
-
var l, a;
|
7804
7798
|
const r = this.$refs.map.$el;
|
7805
|
-
this.map =
|
7806
|
-
|
7807
|
-
|
7808
|
-
}), this.observer.observe(r), (a = this.map) == null || a.invalidateSize();
|
7799
|
+
this.map = this.$refs.map?.leafletObject, this.observer = new ResizeObserver(() => {
|
7800
|
+
this.map?.invalidateSize();
|
7801
|
+
}), this.observer.observe(r), this.map?.invalidateSize();
|
7809
7802
|
},
|
7810
7803
|
openPopup(r) {
|
7811
7804
|
r.openPopup();
|
@@ -7859,8 +7852,7 @@ const Yo = Pt({
|
|
7859
7852
|
hereTileUrl: {
|
7860
7853
|
handler() {
|
7861
7854
|
this.$nextTick(() => {
|
7862
|
-
|
7863
|
-
(r = this.map) == null || r.zoomIn(0.01), (l = this.map) == null || l.zoomOut(0.01);
|
7855
|
+
this.map?.zoomIn(0.01), this.map?.zoomOut(0.01);
|
7864
7856
|
});
|
7865
7857
|
}
|
7866
7858
|
},
|
@@ -7881,8 +7873,7 @@ const Yo = Pt({
|
|
7881
7873
|
searchInputLocation: {
|
7882
7874
|
deep: !0,
|
7883
7875
|
handler() {
|
7884
|
-
|
7885
|
-
(r = this.searchInputLocation) != null && r.latitude && ((l = this.searchInputLocation) != null && l.longitude) && this.updateHotelOfferRequestLocation(
|
7876
|
+
this.searchInputLocation?.latitude && this.searchInputLocation?.longitude && this.updateHotelOfferRequestLocation(
|
7886
7877
|
this.searchInputLocation.latitude,
|
7887
7878
|
this.searchInputLocation.longitude
|
7888
7879
|
);
|
@@ -7983,13 +7974,13 @@ function To(r) {
|
|
7983
7974
|
});
|
7984
7975
|
}
|
7985
7976
|
const Wa = { class: "hotel-offers-map" }, Ua = { key: 0 }, qa = { key: 1 };
|
7986
|
-
function ja(r, l,
|
7977
|
+
function ja(r, l, h, d, p, m) {
|
7987
7978
|
const g = lt("BErrorOverlay"), T = lt("LTileLayer"), v = lt("LControlZoom"), E = lt("BSearchLocationInput"), x = lt("LControl"), b = lt("LTooltip"), H = lt("BMapMarker"), R = lt("LIcon"), G = lt("LMarker"), N = lt("HotelOfferItem"), ct = lt("LPopup"), q = lt("BHotelOfferMarker"), X = lt("LMap"), V = lt("BBreakpointObserver");
|
7988
7979
|
return Z(), ut("div", Wa, [
|
7989
|
-
r.isBookingApiClientDefined ? (Z(), ut(
|
7980
|
+
r.isBookingApiClientDefined ? (Z(), ut(_e, { key: 1 }, [
|
7990
7981
|
r.showErrorMessage ? (Z(), et(g, {
|
7991
7982
|
key: 0,
|
7992
|
-
style:
|
7983
|
+
style: ve({ height: r.parsedHeight })
|
7993
7984
|
}, {
|
7994
7985
|
title: A(() => [
|
7995
7986
|
Lt(At(r.t("HotelOffersMap.error.title")), 1)
|
@@ -8003,7 +7994,7 @@ function ja(r, l, a, d, p, m) {
|
|
8003
7994
|
height: r.parsedHeight,
|
8004
7995
|
tile: "",
|
8005
7996
|
type: "image"
|
8006
|
-
}, null, 8, ["height"])) : (Z(), ut(
|
7997
|
+
}, null, 8, ["height"])) : (Z(), ut(_e, { key: 2 }, [
|
8007
7998
|
r.loadingBarEnabled && r.isPollingHotelOffers ? (Z(), et(Yr, {
|
8008
7999
|
key: 0,
|
8009
8000
|
color: "primary",
|
@@ -8011,8 +8002,8 @@ function ja(r, l, a, d, p, m) {
|
|
8011
8002
|
})) : gt("", !0),
|
8012
8003
|
U(V, null, {
|
8013
8004
|
default: A(() => [
|
8014
|
-
|
8015
|
-
style:
|
8005
|
+
oe("div", {
|
8006
|
+
style: ve([{ "min-height": "500px" }, {
|
8016
8007
|
height: r.parsedHeight,
|
8017
8008
|
maxHeight: r.maxHeight
|
8018
8009
|
}])
|
@@ -8086,7 +8077,7 @@ function ja(r, l, a, d, p, m) {
|
|
8086
8077
|
size: "small",
|
8087
8078
|
style: { width: "30px" }
|
8088
8079
|
}, w, {
|
8089
|
-
onClick: l[1] || (l[1] = (
|
8080
|
+
onClick: l[1] || (l[1] = (rt) => r.showTransit = !r.showTransit)
|
8090
8081
|
}), {
|
8091
8082
|
default: A(() => [
|
8092
8083
|
r.showTransit ? (Z(), et(Yt, {
|
@@ -8151,7 +8142,7 @@ function ja(r, l, a, d, p, m) {
|
|
8151
8142
|
}, 1040, ["onClick"])
|
8152
8143
|
]),
|
8153
8144
|
default: A(() => [
|
8154
|
-
|
8145
|
+
oe("span", null, At(r.t("HotelOffersMap.centerOnVenue")), 1)
|
8155
8146
|
]),
|
8156
8147
|
_: 1
|
8157
8148
|
}, 8, ["attach"])
|
@@ -8177,13 +8168,10 @@ function ja(r, l, a, d, p, m) {
|
|
8177
8168
|
size: "small",
|
8178
8169
|
style: { width: "30px" }
|
8179
8170
|
}, w, {
|
8180
|
-
onClick: l[2] || (l[2] = (
|
8181
|
-
|
8182
|
-
|
8183
|
-
|
8184
|
-
($t = r.currentCenter) == null ? void 0 : $t.lng
|
8185
|
-
);
|
8186
|
-
})
|
8171
|
+
onClick: l[2] || (l[2] = (rt) => r.updateHotelOfferRequestLocation(
|
8172
|
+
r.currentCenter?.lat,
|
8173
|
+
r.currentCenter?.lng
|
8174
|
+
))
|
8187
8175
|
}), {
|
8188
8176
|
default: A(() => [
|
8189
8177
|
U(Yt, { color: "white" }, {
|
@@ -8198,7 +8186,7 @@ function ja(r, l, a, d, p, m) {
|
|
8198
8186
|
}, 1040)
|
8199
8187
|
]),
|
8200
8188
|
default: A(() => [
|
8201
|
-
|
8189
|
+
oe("span", null, At(r.t("HotelOffersMap.searchThisArea")), 1)
|
8202
8190
|
]),
|
8203
8191
|
_: 1
|
8204
8192
|
}, 8, ["attach"])) : gt("", !0)
|
@@ -8274,14 +8262,14 @@ function ja(r, l, a, d, p, m) {
|
|
8274
8262
|
key: 2,
|
8275
8263
|
"lat-lng": r.hotelOfferRequestMarker
|
8276
8264
|
}, null, 8, ["lat-lng"])) : gt("", !0),
|
8277
|
-
(Z(!0), ut(
|
8265
|
+
(Z(!0), ut(_e, null, Ki(r.parsedMarkers, (w) => (Z(), et(G, {
|
8278
8266
|
key: w.latitude + w.longitude + "shadow",
|
8279
8267
|
"lat-lng": [w.latitude, w.longitude]
|
8280
8268
|
}, null, 8, ["lat-lng"]))), 128)),
|
8281
|
-
(Z(!0), ut(
|
8269
|
+
(Z(!0), ut(_e, null, Ki(r.parsedMarkers, (w) => (Z(), et(G, {
|
8282
8270
|
key: w.latitude + w.longitude,
|
8283
8271
|
"lat-lng": [w.latitude, w.longitude],
|
8284
|
-
onClick: (
|
8272
|
+
onClick: (rt) => r.updateHotelOfferRequestLocation(
|
8285
8273
|
w.latitude,
|
8286
8274
|
w.longitude
|
8287
8275
|
)
|
@@ -8318,13 +8306,13 @@ function ja(r, l, a, d, p, m) {
|
|
8318
8306
|
]),
|
8319
8307
|
_: 2
|
8320
8308
|
}, 1032, ["lat-lng", "onClick"]))), 128)),
|
8321
|
-
(Z(!0), ut(
|
8309
|
+
(Z(!0), ut(_e, null, Ki(r.hotelOffers, (w) => (Z(), et(G, {
|
8322
8310
|
key: w.id,
|
8323
8311
|
"lat-lng": [w.latitude, w.longitude],
|
8324
8312
|
options: {
|
8325
8313
|
riseOnHover: !0
|
8326
8314
|
},
|
8327
|
-
onClick: (
|
8315
|
+
onClick: (rt) => r.onHotelOfferMarkerClick(w)
|
8328
8316
|
}, {
|
8329
8317
|
default: A(() => [
|
8330
8318
|
U(ct, {
|
@@ -8335,7 +8323,7 @@ function ja(r, l, a, d, p, m) {
|
|
8335
8323
|
hasTip: !1
|
8336
8324
|
},
|
8337
8325
|
"z-index": 2e7,
|
8338
|
-
onRemove: l[4] || (l[4] = (
|
8326
|
+
onRemove: l[4] || (l[4] = (rt) => r.isLocationInputVisible = !0)
|
8339
8327
|
}, {
|
8340
8328
|
default: A(() => [
|
8341
8329
|
U(N, {
|
@@ -8359,7 +8347,7 @@ function ja(r, l, a, d, p, m) {
|
|
8359
8347
|
key: 0,
|
8360
8348
|
focus: r.hoveredHotel === w.id,
|
8361
8349
|
price: r.getHotelRoomOffer(w).price / r.getHotelRoomOffer(w).hotelRooms.reduce(
|
8362
|
-
(
|
8350
|
+
(rt, at) => rt + at.count,
|
8363
8351
|
0
|
8364
8352
|
) / r.nightCount
|
8365
8353
|
}, null, 8, ["focus", "price"])) : gt("", !0)
|
@@ -8377,15 +8365,15 @@ function ja(r, l, a, d, p, m) {
|
|
8377
8365
|
_: 3
|
8378
8366
|
})
|
8379
8367
|
], 64))
|
8380
|
-
], 64)) : (Z(), ut(
|
8368
|
+
], 64)) : (Z(), ut(_e, { key: 0 }, [], 64))
|
8381
8369
|
]);
|
8382
8370
|
}
|
8383
8371
|
typeof To == "function" && To(Yo);
|
8384
|
-
const
|
8372
|
+
const ah = /* @__PURE__ */ en(Yo, [["render", ja], ["__scopeId", "data-v-bffe45fb"]]);
|
8385
8373
|
Pr("css/revolugo.hoteloffersmap.2oSkomDb.css");
|
8386
8374
|
export {
|
8387
8375
|
Mo as H,
|
8388
|
-
|
8376
|
+
ah as a,
|
8389
8377
|
Qr as h
|
8390
8378
|
};
|
8391
|
-
//# sourceMappingURL=revolugo.hoteloffersmap.
|
8379
|
+
//# sourceMappingURL=revolugo.hoteloffersmap.BnqHPNt1.min.js.map
|