@webquark/core 1.1.0-dev.2 → 1.1.0-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Leaflet.GoogleMutant-BCs2oiE0.js → Leaflet.GoogleMutant-i4bYl6qy.js} +1 -2
- package/dist/cjs/{action.props-hpMla743.js → action.props-CkEZpMY6.js} +1 -1
- package/dist/cjs/{chevron-up-B76247zT.js → chevron-up-Dysp_9UJ.js} +2 -2
- package/dist/cjs/{index-Vzfd3Ljg.js → index-B7ex88C2.js} +61 -20
- package/dist/cjs/leaflet-maplibre-gl-BJKExsns.js +1031 -0
- package/dist/{esm/leaflet-src-BeeM-7Ku.js → cjs/leaflet-src-mrRg-Srs.js} +38 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q-alert.cjs.entry.js +1 -1
- package/dist/cjs/q-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q-button_2.cjs.entry.js +2 -2
- package/dist/cjs/q-card.cjs.entry.js +1 -1
- package/dist/cjs/q-carousel.cjs.entry.js +1 -1
- package/dist/cjs/q-chip.cjs.entry.js +2 -2
- package/dist/cjs/q-conversation-bubble.cjs.entry.js +1 -1
- package/dist/cjs/q-data-table.cjs.entry.js +2 -2
- package/dist/cjs/q-dialog.cjs.entry.js +1 -1
- package/dist/cjs/q-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/q-form.cjs.entry.js +1 -1
- package/dist/cjs/q-icon.cjs.entry.js +1 -1
- package/dist/cjs/q-input_2.cjs.entry.js +2 -2
- package/dist/cjs/q-link.cjs.entry.js +2 -2
- package/dist/cjs/q-map.cjs.entry.js +184 -122
- package/dist/cjs/q-navbar.cjs.entry.js +1 -1
- package/dist/cjs/q-pagination.cjs.entry.js +1 -1
- package/dist/cjs/q-panel.cjs.entry.js +1 -1
- package/dist/cjs/q-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/q-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/q-reel.cjs.entry.js +1 -1
- package/dist/cjs/q-scrollable.cjs.entry.js +1 -1
- package/dist/cjs/q-sidepanel.cjs.entry.js +18 -15
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +1 -1
- package/dist/cjs/q-step-diagram.cjs.entry.js +1 -1
- package/dist/cjs/q-syntax-box.cjs.entry.js +4 -4
- package/dist/cjs/q-tabs.cjs.entry.js +1 -1
- package/dist/cjs/q-textarea.cjs.entry.js +1 -1
- package/dist/cjs/q-thumbnail.cjs.entry.js +1 -1
- package/dist/cjs/q-toast.cjs.entry.js +1 -1
- package/dist/cjs/q-toggle.cjs.entry.js +1 -1
- package/dist/cjs/q-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/webquark.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/inputs/input/input.css +13 -0
- package/dist/collection/components/layout/sidepanel/internals/nav-items.js +5 -2
- package/dist/collection/components/layout/sidepanel/sidepanel.css +23 -0
- package/dist/collection/components/layout/sidepanel/sidepanel.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-BnmIFx4N.js → p-7oXL29Gu.js} +1 -1
- package/dist/components/{p-DAl7U6Ms.js → p-BygmcFxM.js} +1 -1
- package/dist/components/{p-B6NJEaqd.js → p-C8fq-feq.js} +1 -1
- package/dist/components/p-CFuqfXuv.js +9 -0
- package/dist/components/{p-Dnud2v8F.js → p-CQofbR9q.js} +1 -1
- package/dist/components/p-CVtof65h.js +1 -0
- package/dist/components/{p-DcsB8P_Y.js → p-Czf3kP0S.js} +1 -1
- package/dist/components/p-DYMWBqU1.js +5 -0
- package/dist/components/{p-DH-PVHhr.js → p-DuX-9GOi.js} +1 -1
- package/dist/components/{p-B6g9Pj3f.js → p-I81wUKud.js} +1 -1
- package/dist/components/{p-CDktnDug.js → p-g9vOVxQ4.js} +2 -2
- package/dist/components/{p-C7yQ3tON.js → p-vv3X99Ji.js} +1 -1
- package/dist/components/q-alert.js +1 -1
- package/dist/components/q-avatar.js +1 -1
- package/dist/components/q-button.js +1 -1
- package/dist/components/q-card.js +1 -1
- package/dist/components/q-carousel.js +1 -1
- package/dist/components/q-chip.js +1 -1
- package/dist/components/q-conversation-bubble.js +1 -1
- package/dist/components/q-data-table.js +1 -1
- package/dist/components/q-dialog.js +1 -1
- package/dist/components/q-dropdown.js +1 -1
- package/dist/components/q-form.js +1 -1
- package/dist/components/q-icon.js +1 -1
- package/dist/components/q-input.js +1 -1
- package/dist/components/q-link.js +1 -1
- package/dist/components/q-map.js +1 -1
- package/dist/components/q-navbar.js +1 -1
- package/dist/components/q-pagination.js +1 -1
- package/dist/components/q-panel.js +1 -1
- package/dist/components/q-progress.js +1 -1
- package/dist/components/q-quantity-selector.js +1 -1
- package/dist/components/q-radio-group.js +1 -1
- package/dist/components/q-reel.js +1 -1
- package/dist/components/q-scrollable.js +1 -1
- package/dist/components/q-sidepanel.js +5 -5
- package/dist/components/q-step-diagram-item.js +1 -1
- package/dist/components/q-step-diagram.js +1 -1
- package/dist/components/q-syntax-box.js +4 -4
- package/dist/components/q-tabs.js +1 -1
- package/dist/components/q-textarea.js +1 -1
- package/dist/components/q-thumbnail.js +1 -1
- package/dist/components/q-toast.js +1 -1
- package/dist/components/q-toggle.js +1 -1
- package/dist/components/q-toolbar.js +1 -1
- package/dist/components/q-tooltip.js +1 -1
- package/dist/esm/{Leaflet.GoogleMutant-BlvymWLE.js → Leaflet.GoogleMutant-MpxOb4Jm.js} +1 -2
- package/dist/esm/{action.props-BJWXy1Ec.js → action.props-CJoxGHR7.js} +1 -1
- package/dist/esm/{chevron-up-CDktnDug.js → chevron-up-g9vOVxQ4.js} +2 -2
- package/dist/esm/{index-DweBlExe.js → index-VFWyFa-_.js} +61 -20
- package/dist/esm/leaflet-maplibre-gl-BVDAAs7w.js +1026 -0
- package/dist/{cjs/leaflet-src-B0ls4IKq.js → esm/leaflet-src-DYMWBqU1.js} +33 -8
- package/dist/esm/loader.js +2 -2
- package/dist/esm/q-alert.entry.js +1 -1
- package/dist/esm/q-avatar.entry.js +1 -1
- package/dist/esm/q-button_2.entry.js +2 -2
- package/dist/esm/q-card.entry.js +1 -1
- package/dist/esm/q-carousel.entry.js +1 -1
- package/dist/esm/q-chip.entry.js +2 -2
- package/dist/esm/q-conversation-bubble.entry.js +1 -1
- package/dist/esm/q-data-table.entry.js +2 -2
- package/dist/esm/q-dialog.entry.js +1 -1
- package/dist/esm/q-dropdown.entry.js +1 -1
- package/dist/esm/q-form.entry.js +1 -1
- package/dist/esm/q-icon.entry.js +1 -1
- package/dist/esm/q-input_2.entry.js +2 -2
- package/dist/esm/q-link.entry.js +2 -2
- package/dist/esm/q-map.entry.js +184 -122
- package/dist/esm/q-navbar.entry.js +1 -1
- package/dist/esm/q-pagination.entry.js +1 -1
- package/dist/esm/q-panel.entry.js +1 -1
- package/dist/esm/q-quantity-selector.entry.js +1 -1
- package/dist/esm/q-radio-group.entry.js +1 -1
- package/dist/esm/q-reel.entry.js +1 -1
- package/dist/esm/q-scrollable.entry.js +1 -1
- package/dist/esm/q-sidepanel.entry.js +18 -15
- package/dist/esm/q-step-diagram-item.entry.js +1 -1
- package/dist/esm/q-step-diagram.entry.js +1 -1
- package/dist/esm/q-syntax-box.entry.js +4 -4
- package/dist/esm/q-tabs.entry.js +1 -1
- package/dist/esm/q-textarea.entry.js +1 -1
- package/dist/esm/q-thumbnail.entry.js +1 -1
- package/dist/esm/q-toast.entry.js +1 -1
- package/dist/esm/q-toggle.entry.js +1 -1
- package/dist/esm/q-toolbar.entry.js +1 -1
- package/dist/esm/webquark.js +3 -3
- package/dist/loader/index.d.ts +1 -1
- package/dist/playground/build/{p-53a5c493.entry.js → p-0053ec76.entry.js} +1 -1
- package/dist/playground/build/{p-de7364cd.entry.js → p-0363c0e6.entry.js} +1 -1
- package/dist/{webquark/p-35c9fa4d.entry.js → playground/build/p-0e3dbe01.entry.js} +1 -1
- package/dist/{webquark/p-d22a876a.entry.js → playground/build/p-13329777.entry.js} +1 -1
- package/dist/playground/build/{p-2f0bbb67.entry.js → p-1c9a82b8.entry.js} +1 -1
- package/dist/{webquark/p-c64be717.entry.js → playground/build/p-2e2b3ca9.entry.js} +1 -1
- package/dist/playground/build/{p-dac913f9.entry.js → p-316a92e2.entry.js} +1 -1
- package/dist/{webquark/p-94eba9a9.entry.js → playground/build/p-38b92be6.entry.js} +1 -1
- package/dist/playground/build/{p-06813183.entry.js → p-41421759.entry.js} +1 -1
- package/dist/playground/build/{p-d142bb86.entry.js → p-42831108.entry.js} +1 -1
- package/dist/{webquark/p-7c9d705e.entry.js → playground/build/p-50ca27f7.entry.js} +1 -1
- package/dist/playground/build/{p-4f8ee3f7.entry.js → p-5c08aa94.entry.js} +1 -1
- package/dist/{webquark/p-4b38c28f.entry.js → playground/build/p-611ef3e0.entry.js} +1 -1
- package/dist/playground/build/{p-8ff218f7.entry.js → p-684292dd.entry.js} +1 -1
- package/dist/{webquark/p-bc7d7cbf.entry.js → playground/build/p-6c0bc4b9.entry.js} +3 -3
- package/dist/playground/build/{p-09d43469.entry.js → p-7081c96b.entry.js} +1 -1
- package/dist/playground/build/{p-e354a398.entry.js → p-789eb3c9.entry.js} +1 -1
- package/dist/playground/build/{p-f1ab576a.entry.js → p-8077aa3f.entry.js} +1 -1
- package/dist/playground/build/{p-7be7478a.entry.js → p-885572ee.entry.js} +1 -1
- package/dist/playground/build/p-8ada8fc6.entry.js +1 -0
- package/dist/{webquark/p-721d2479.entry.js → playground/build/p-8d0aa5a7.entry.js} +1 -1
- package/dist/{webquark/p-c4016e61.entry.js → playground/build/p-8ec7d250.entry.js} +1 -1
- package/dist/{webquark/p-256d199a.entry.js → playground/build/p-9978ae38.entry.js} +1 -1
- package/dist/playground/build/p-CFuqfXuv.js +9 -0
- package/dist/playground/build/p-DYMWBqU1.js +5 -0
- package/dist/playground/build/p-DoS2fiWw.js +1 -0
- package/dist/playground/build/p-DuX-9GOi.js +1 -0
- package/dist/playground/build/p-VFWyFa-_.js +3 -0
- package/dist/playground/build/{p-bc0a0428.entry.js → p-b5066051.entry.js} +1 -1
- package/dist/playground/build/p-b99541cd.entry.js +1 -0
- package/dist/playground/build/{p-dabaddcb.entry.js → p-ca1a1d25.entry.js} +1 -1
- package/dist/{webquark/p-a2a3135f.entry.js → playground/build/p-d837603c.entry.js} +1 -1
- package/dist/playground/build/{p-d691a1aa.entry.js → p-e0e6b68f.entry.js} +1 -1
- package/dist/playground/build/{p-a0861b0e.entry.js → p-e15e6d76.entry.js} +1 -1
- package/dist/{webquark/p-3e4d2d19.entry.js → playground/build/p-e272dd45.entry.js} +1 -1
- package/dist/playground/build/{p-31d62bd0.entry.js → p-e8003179.entry.js} +1 -1
- package/dist/playground/build/p-e974c1f8.entry.js +13 -0
- package/dist/{webquark/p-CDktnDug.js → playground/build/p-g9vOVxQ4.js} +2 -2
- package/dist/playground/build/webquark.esm.js +1 -1
- package/dist/types/components/layout/sidepanel/sidepanel.d.ts +1 -0
- package/dist/types/components/layout/sidepanel/sidepanel.types.d.ts +4 -0
- package/dist/types/stencil-public-runtime.d.ts +73 -55
- package/dist/webquark/{p-53a5c493.entry.js → p-0053ec76.entry.js} +1 -1
- package/dist/webquark/{p-de7364cd.entry.js → p-0363c0e6.entry.js} +1 -1
- package/dist/{playground/build/p-35c9fa4d.entry.js → webquark/p-0e3dbe01.entry.js} +1 -1
- package/dist/{playground/build/p-d22a876a.entry.js → webquark/p-13329777.entry.js} +1 -1
- package/dist/webquark/{p-2f0bbb67.entry.js → p-1c9a82b8.entry.js} +1 -1
- package/dist/{playground/build/p-c64be717.entry.js → webquark/p-2e2b3ca9.entry.js} +1 -1
- package/dist/webquark/{p-dac913f9.entry.js → p-316a92e2.entry.js} +1 -1
- package/dist/{playground/build/p-94eba9a9.entry.js → webquark/p-38b92be6.entry.js} +1 -1
- package/dist/webquark/{p-06813183.entry.js → p-41421759.entry.js} +1 -1
- package/dist/webquark/{p-d142bb86.entry.js → p-42831108.entry.js} +1 -1
- package/dist/{playground/build/p-7c9d705e.entry.js → webquark/p-50ca27f7.entry.js} +1 -1
- package/dist/webquark/{p-4f8ee3f7.entry.js → p-5c08aa94.entry.js} +1 -1
- package/dist/{playground/build/p-4b38c28f.entry.js → webquark/p-611ef3e0.entry.js} +1 -1
- package/dist/webquark/{p-8ff218f7.entry.js → p-684292dd.entry.js} +1 -1
- package/dist/{playground/build/p-bc7d7cbf.entry.js → webquark/p-6c0bc4b9.entry.js} +3 -3
- package/dist/webquark/{p-09d43469.entry.js → p-7081c96b.entry.js} +1 -1
- package/dist/webquark/{p-e354a398.entry.js → p-789eb3c9.entry.js} +1 -1
- package/dist/webquark/{p-f1ab576a.entry.js → p-8077aa3f.entry.js} +1 -1
- package/dist/webquark/{p-7be7478a.entry.js → p-885572ee.entry.js} +1 -1
- package/dist/webquark/p-8ada8fc6.entry.js +1 -0
- package/dist/{playground/build/p-721d2479.entry.js → webquark/p-8d0aa5a7.entry.js} +1 -1
- package/dist/{playground/build/p-c4016e61.entry.js → webquark/p-8ec7d250.entry.js} +1 -1
- package/dist/{playground/build/p-256d199a.entry.js → webquark/p-9978ae38.entry.js} +1 -1
- package/dist/webquark/p-CFuqfXuv.js +9 -0
- package/dist/webquark/p-DYMWBqU1.js +5 -0
- package/dist/webquark/p-DoS2fiWw.js +1 -0
- package/dist/webquark/p-DuX-9GOi.js +1 -0
- package/dist/webquark/p-VFWyFa-_.js +3 -0
- package/dist/webquark/{p-bc0a0428.entry.js → p-b5066051.entry.js} +1 -1
- package/dist/webquark/p-b99541cd.entry.js +1 -0
- package/dist/webquark/{p-dabaddcb.entry.js → p-ca1a1d25.entry.js} +1 -1
- package/dist/{playground/build/p-a2a3135f.entry.js → webquark/p-d837603c.entry.js} +1 -1
- package/dist/webquark/{p-d691a1aa.entry.js → p-e0e6b68f.entry.js} +1 -1
- package/dist/webquark/{p-a0861b0e.entry.js → p-e15e6d76.entry.js} +1 -1
- package/dist/{playground/build/p-3e4d2d19.entry.js → webquark/p-e272dd45.entry.js} +1 -1
- package/dist/webquark/{p-31d62bd0.entry.js → p-e8003179.entry.js} +1 -1
- package/dist/webquark/p-e974c1f8.entry.js +13 -0
- package/dist/{playground/build/p-CDktnDug.js → webquark/p-g9vOVxQ4.js} +2 -2
- package/dist/webquark/webquark.esm.js +1 -1
- package/package.json +14 -14
- package/dist/cjs/leaflet-maplibre-gl-RCEffFEM.js +0 -434
- package/dist/cjs/leaflet-src-BX4jwTf5.js +0 -33
- package/dist/components/p-2bWqVyTo.js +0 -1
- package/dist/components/p-BEBDDqVT.js +0 -1
- package/dist/components/p-BeeM-7Ku.js +0 -5
- package/dist/components/p-QHgICI4w.js +0 -1
- package/dist/esm/leaflet-maplibre-gl-Cgb-1z8Q.js +0 -432
- package/dist/esm/leaflet-src-BR13bdVA.js +0 -30
- package/dist/playground/build/p-2bWqVyTo.js +0 -1
- package/dist/playground/build/p-7c4e6512.entry.js +0 -1
- package/dist/playground/build/p-BEBDDqVT.js +0 -1
- package/dist/playground/build/p-BeeM-7Ku.js +0 -5
- package/dist/playground/build/p-DNFGt02p.js +0 -1
- package/dist/playground/build/p-DweBlExe.js +0 -2
- package/dist/playground/build/p-Dxs6LLBG.js +0 -1
- package/dist/playground/build/p-a7b90eef.entry.js +0 -13
- package/dist/playground/build/p-e298fb31.entry.js +0 -1
- package/dist/webquark/p-2bWqVyTo.js +0 -1
- package/dist/webquark/p-7c4e6512.entry.js +0 -1
- package/dist/webquark/p-BEBDDqVT.js +0 -1
- package/dist/webquark/p-BeeM-7Ku.js +0 -5
- package/dist/webquark/p-DNFGt02p.js +0 -1
- package/dist/webquark/p-DweBlExe.js +0 -2
- package/dist/webquark/p-Dxs6LLBG.js +0 -1
- package/dist/webquark/p-a7b90eef.entry.js +0 -13
- package/dist/webquark/p-e298fb31.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as r,H as i,c as s,h as e,d as o}from"./p-QHgICI4w.js";function a(t){if(!t)return{scrollTop:0,scrollHeight:0,clientHeight:0,maxScrollTop:0};const r=Math.max(0,t.scrollHeight-t.clientHeight);return{scrollTop:t.scrollTop,scrollHeight:t.scrollHeight,clientHeight:t.clientHeight,maxScrollTop:r}}function l(t){const{metrics:r,trackHeight:i,minThumbHeight:s}=t;if(r.scrollHeight<=r.clientHeight||r.maxScrollTop<=0)return{height:0,translateY:0,isScrollable:!1};const e=Math.max(s,r.clientHeight*r.clientHeight/r.scrollHeight),o=Math.max(0,i-(t.thumbHeight||e));return{height:e,translateY:o>0?r.scrollTop/r.maxScrollTop*o:0,isScrollable:!0}}const h="data-q-scrollable-target-id";let c=0;const n=r(class t extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.qScroll=s(this,"qScroll")}get el(){return this}height="100%";maxHeight="";mode="custom";target="";nativeOnMobile=!0;autoHide=!0;qScroll;isScrolling=!1;isDragging=!1;scrollValueNow=0;scrollValueMax=0;static MIN_THUMB_HEIGHT_PX=36;static KEY_SCROLL_STEP_PX=40;viewportId="q-scrollable-viewport-"+ ++c;viewportEl;contentEl;trackEl;thumbEl;resizeObserver;scrollTimeout;isUpdatingPosition=!1;dragStartY=0;dragStartScrollTop=0;nativeStyleEl;activeTargetEl;componentDidLoad(){this.applyNativeStyles(),this.setupCustomScroll()}componentDidUpdate(){"custom"===this.mode&&this.updateScrollbarSize()}disconnectedCallback(){this.removeNativeStyles(),this.resizeObserver&&this.resizeObserver.disconnect(),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.thumbEl&&(this.thumbEl.removeEventListener("pointermove",this.handlePointerMove),this.thumbEl.removeEventListener("pointerup",this.handlePointerUp),this.thumbEl.removeEventListener("pointercancel",this.handlePointerUp))}handleModeOrTargetChange(){"native"===this.mode?(this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0),this.applyNativeStyles()):(this.removeNativeStyles(),this.setupCustomScroll())}async scrollToBottom(){this.viewportEl&&this.setViewportScrollTop(this.viewportEl.scrollHeight)}async scrollToPosition(t){this.viewportEl&&this.setViewportScrollTop(t)}setViewportRef=t=>{this.viewportEl=this.syncResizeObserver(this.viewportEl,t)};setContentRef=t=>{this.contentEl=this.syncResizeObserver(this.contentEl,t)};syncResizeObserver(t,r){if(t&&this.resizeObserver)try{this.resizeObserver.unobserve(t)}catch(t){}const i=r||void 0;return"custom"===this.mode&&i&&"undefined"!=typeof ResizeObserver&&(this.ensureResizeObserver(),this.resizeObserver?.observe(i)),"custom"===this.mode&&this.updateScrollbarSize(),i}ensureResizeObserver(){this.resizeObserver||"undefined"==typeof ResizeObserver||(this.resizeObserver=new ResizeObserver((()=>{this.updateScrollbarSize()})))}setupCustomScroll(){"custom"===this.mode&&("undefined"!=typeof ResizeObserver&&(this.ensureResizeObserver(),this.viewportEl&&this.resizeObserver?.observe(this.viewportEl),this.contentEl&&this.resizeObserver?.observe(this.contentEl)),this.updateScrollbarSize())}applyNativeStyles(){if(this.removeNativeStyles(),"native"!==this.mode)return;const t=(r=this.el,(i=this.target)?r.getRootNode().querySelector(i):r.parentElement);var r,i;if(!t)return;this.activeTargetEl=t;const s=function(t){let r=t.getAttribute(h);return r||(r=`q-scroll-${Math.random().toString(36).slice(2,11)}`,t.setAttribute(h,r)),r}(t),e=document.createElement("style");e.id=`q-style-${s}`,e.textContent=function(t){return`\n [${h}="${t}"]::-webkit-scrollbar {\n width: var(--q-scrollbar-width, 6px);\n height: var(--q-scrollbar-width, 6px);\n }\n [${h}="${t}"]::-webkit-scrollbar-track {\n background: var(--q-scrollbar-track-color, transparent);\n }\n [${h}="${t}"]::-webkit-scrollbar-thumb {\n background: var(--q-scrollbar-thumb-color, var(--q-border-color, #374151));\n border-radius: var(--q-scrollbar-radius, 4px);\n }\n [${h}="${t}"]::-webkit-scrollbar-thumb:hover {\n background: var(--q-scrollbar-thumb-color-hover, var(--q-color-primary, #60a5fa));\n }\n [${h}="${t}"] {\n scrollbar-width: var(--q-scrollbar-width-thin, thin);\n scrollbar-color: var(--q-scrollbar-thumb-color, var(--q-border-color, #374151)) var(--q-scrollbar-track-color, transparent);\n }\n `}(s),t.appendChild(e),this.nativeStyleEl=e}removeNativeStyles(){var t;this.nativeStyleEl&&this.nativeStyleEl.parentNode&&this.nativeStyleEl.parentNode.removeChild(this.nativeStyleEl),this.nativeStyleEl=void 0,this.activeTargetEl&&(t=this.activeTargetEl,t?.removeAttribute(h),this.activeTargetEl=void 0)}updateScrollbarSize(){if("custom"!==this.mode||!this.viewportEl||!this.trackEl||!this.thumbEl)return;const r=l({metrics:a(this.viewportEl),trackHeight:this.trackEl.clientHeight,thumbHeight:this.thumbEl.clientHeight,minThumbHeight:t.MIN_THUMB_HEIGHT_PX});if(!r.isScrollable)return this.thumbEl.style.height="0px",this.trackEl.style.display="none",void this.updateScrollMetrics();this.trackEl.style.display="",this.thumbEl.style.height=`${r.height}px`,this.updateThumbPosition()}updateThumbPosition(){if(!this.viewportEl||!this.trackEl||!this.thumbEl)return;const r=l({metrics:a(this.viewportEl),trackHeight:this.trackEl.clientHeight,thumbHeight:this.thumbEl.clientHeight,minThumbHeight:t.MIN_THUMB_HEIGHT_PX});r.isScrollable?(this.thumbEl.style.transform=`translateY(${r.translateY}px)`,this.updateScrollMetrics()):this.updateScrollMetrics()}updateScrollMetrics(){const t=a(this.viewportEl);this.scrollValueNow=Math.round(t.scrollTop),this.scrollValueMax=Math.round(t.maxScrollTop)}handleScroll=()=>{this.viewportEl&&this.qScroll.emit({scrollTop:this.viewportEl.scrollTop,scrollHeight:this.viewportEl.scrollHeight,clientHeight:this.viewportEl.clientHeight}),this.updateScrollMetrics(),"custom"===this.mode&&(this.showScrollbarTemporarily(),this.isUpdatingPosition||(this.isUpdatingPosition=!0,requestAnimationFrame((()=>{this.updateThumbPosition(),this.isUpdatingPosition=!1}))))};showScrollbarTemporarily(){this.autoHide&&(this.isScrolling=!0,this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout((()=>{this.isScrolling=!1}),1500))}handlePointerDown=t=>{0===t.button&&this.thumbEl&&this.viewportEl&&this.trackEl&&(this.isDragging=!0,this.dragStartY=t.clientY,this.dragStartScrollTop=this.viewportEl.scrollTop,this.thumbEl.setPointerCapture(t.pointerId),this.thumbEl.addEventListener("pointermove",this.handlePointerMove),this.thumbEl.addEventListener("pointerup",this.handlePointerUp),this.thumbEl.addEventListener("pointercancel",this.handlePointerUp),t.preventDefault(),t.stopPropagation())};handlePointerMove=t=>{if(!(this.isDragging&&this.viewportEl&&this.trackEl&&this.thumbEl))return;const r=a(this.viewportEl),i=this.trackEl.clientHeight-this.thumbEl.clientHeight;if(i<=0||r.maxScrollTop<=0)return;const s=Math.max(0,Math.min(i,this.dragStartScrollTop/r.maxScrollTop*i+(t.clientY-this.dragStartY)));this.setViewportScrollTop(s/i*r.maxScrollTop),this.updateThumbPosition()};handleThumbKeyDown=r=>{if(!this.viewportEl)return;const i=a(this.viewportEl),s=function(t){const r=Math.max(t.step,t.clientHeight-t.step);switch(t.key){case"ArrowDown":case"ArrowRight":return t.scrollTop+t.step;case"ArrowUp":case"ArrowLeft":return t.scrollTop-t.step;case"PageDown":return t.scrollTop+r;case"PageUp":return t.scrollTop-r;case"Home":return 0;case"End":return t.maxScrollTop;default:return}}({key:r.key,scrollTop:i.scrollTop,clientHeight:i.clientHeight,maxScrollTop:i.maxScrollTop,step:t.KEY_SCROLL_STEP_PX});void 0!==s&&(r.preventDefault(),this.setViewportScrollTop(s),this.updateThumbPosition())};setViewportScrollTop(t){if(!this.viewportEl)return;const r=function(t,r){return Math.max(0,Math.min(r.maxScrollTop,t))}(t,a(this.viewportEl));this.viewportEl.style.scrollBehavior="auto",this.viewportEl.scrollTop=r,this.viewportEl.style.scrollBehavior="",this.updateScrollMetrics()}handlePointerUp=t=>{if(this.isDragging&&(this.isDragging=!1,this.thumbEl)){try{this.thumbEl.releasePointerCapture(t.pointerId)}catch(t){}this.thumbEl.removeEventListener("pointermove",this.handlePointerMove),this.thumbEl.removeEventListener("pointerup",this.handlePointerUp),this.thumbEl.removeEventListener("pointercancel",this.handlePointerUp)}};render(){return e(o,{key:"5055572526fcd0927cb67768bc47039bb7f9162c",class:{"is-scrolling":this.isScrolling,"is-dragging":this.isDragging},style:{height:this.height,maxHeight:this.maxHeight||void 0}},e("div",{key:"cb442332f008b569dd062837db4d8efdd2321086",class:"q-scrollable-host"},e("div",{key:"2aae475dd88acc4a4f271c803aef43d264e4a17b",id:this.viewportId,class:"q-scrollable-viewport",ref:this.setViewportRef,onScroll:this.handleScroll,tabindex:0,part:"viewport"},e("div",{key:"e04e07c2dab58c2d314712a4838dc2071a362b55",class:"q-scrollable-content",ref:this.setContentRef,part:"content"},e("slot",{key:"4ec55800b21996b44f27302e07ce9c8cdb0ee8c6"}))),"custom"===this.mode&&e("div",{key:"26fac2984849a988bf18fa9dbc97925d5c95b9b3",class:{"q-scrollbar-track":!0,"is-dragging":this.isDragging},ref:t=>this.trackEl=t,part:"track"},e("div",{key:"a029558609abde7e50d40e94c86f0e284fda8f71",class:"q-scrollbar-thumb",ref:t=>this.thumbEl=t,onPointerDown:this.handlePointerDown,onKeyDown:this.handleThumbKeyDown,role:"scrollbar","aria-controls":this.viewportId,"aria-orientation":"vertical","aria-valuemin":"0","aria-valuemax":this.scrollValueMax,"aria-valuenow":this.scrollValueNow,"aria-label":"Scroll content",tabindex:0,part:"thumb"}))))}static get watchers(){return{mode:[{handleModeOrTargetChange:0}],target:[{handleModeOrTargetChange:0}]}}static get style(){return":host{display:block;box-sizing:border-box;height:100%;min-height:0}.q-scrollable-host{position:relative;width:100%;height:100%;max-height:inherit;overflow:hidden;box-sizing:border-box}.q-scrollable-viewport{width:100%;height:100%;max-height:inherit;overflow:auto;box-sizing:border-box}:host([mode='custom']) .q-scrollable-viewport{scrollbar-width:none;-ms-overflow-style:none;padding-right:12px;}:host([mode='custom']) .q-scrollable-viewport::-webkit-scrollbar{display:none;}:host([mode='native']) .q-scrollable-viewport{scrollbar-width:var(--q-scrollbar-width-thin, thin);scrollbar-color:var(--q-scrollbar-thumb-color, var(--q-border-color, #374151)) var(--q-scrollbar-track-color, transparent)}:host([mode='native']) .q-scrollable-viewport::-webkit-scrollbar{width:var(--q-scrollbar-width, 6px);height:var(--q-scrollbar-width, 6px);display:block}:host([mode='native']) .q-scrollable-viewport::-webkit-scrollbar-track{background:var(--q-scrollbar-track-color, transparent)}:host([mode='native']) .q-scrollable-viewport::-webkit-scrollbar-thumb{background:var(--q-scrollbar-thumb-color, var(--q-border-color, #374151));border-radius:var(--q-scrollbar-radius, 4px)}:host([mode='native']) .q-scrollable-viewport::-webkit-scrollbar-thumb:hover{background:var(--q-scrollbar-thumb-color-hover, var(--q-color-primary, #60a5fa))}.q-scrollbar-track{position:absolute;top:4px;right:4px;bottom:4px;width:var(--q-scrollbar-width, 6px);background:var(--q-scrollbar-track-color, transparent);border-radius:var(--q-scrollbar-radius, 4px);z-index:10;pointer-events:auto;opacity:0;transition:opacity 250ms ease;user-select:none;-webkit-user-select:none}.q-scrollbar-thumb{position:absolute;width:100%;background:var(--q-scrollbar-thumb-color, var(--q-border-color, #374151));border-radius:var(--q-scrollbar-radius, 4px);cursor:pointer;transform:translateY(0);transition:background-color 150ms ease;user-select:none;-webkit-user-select:none}.q-scrollbar-thumb:hover,.q-scrollbar-thumb:focus-visible{background:var(--q-scrollbar-thumb-color-hover, var(--q-color-primary, #60a5fa));outline:none}.q-scrollable-host:hover .q-scrollbar-track,.q-scrollable-host.is-scrolling .q-scrollbar-track,.q-scrollbar-track.is-dragging{opacity:1}.q-scrollable-host.is-dragging{user-select:none;-webkit-user-select:none}@media (hover: none) and (pointer: coarse){:host([native-on-mobile]) .q-scrollbar-track{display:none !important}:host([native-on-mobile]) .q-scrollable-viewport{scrollbar-width:auto;-ms-overflow-style:auto}:host([native-on-mobile]) .q-scrollable-viewport::-webkit-scrollbar{display:block}}"}},[769,"q-scrollable",{height:[513],maxHeight:[513,"max-height"],mode:[513],target:[513],nativeOnMobile:[516,"native-on-mobile"],autoHide:[516,"auto-hide"],isScrolling:[32],isDragging:[32],scrollValueNow:[32],scrollValueMax:[32],scrollToBottom:[64],scrollToPosition:[64]},void 0,{mode:[{handleModeOrTargetChange:0}],target:[{handleModeOrTargetChange:0}]}]);function b(){"undefined"!=typeof customElements&&["q-scrollable"].forEach((r=>{"q-scrollable"===r&&(customElements.get(t(r))||customElements.define(t(r),n))}))}b();export{n as Q,b as d}
|
|
1
|
+
import{t,p as r,H as i,c as s,h as e,d as o}from"./p-CVtof65h.js";function a(t){if(!t)return{scrollTop:0,scrollHeight:0,clientHeight:0,maxScrollTop:0};const r=Math.max(0,t.scrollHeight-t.clientHeight);return{scrollTop:t.scrollTop,scrollHeight:t.scrollHeight,clientHeight:t.clientHeight,maxScrollTop:r}}function l(t){const{metrics:r,trackHeight:i,minThumbHeight:s}=t;if(r.scrollHeight<=r.clientHeight||r.maxScrollTop<=0)return{height:0,translateY:0,isScrollable:!1};const e=Math.max(s,r.clientHeight*r.clientHeight/r.scrollHeight),o=Math.max(0,i-(t.thumbHeight||e));return{height:e,translateY:o>0?r.scrollTop/r.maxScrollTop*o:0,isScrollable:!0}}const h="data-q-scrollable-target-id";let c=0;const n=r(class t extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.qScroll=s(this,"qScroll")}get el(){return this}height="100%";maxHeight="";mode="custom";target="";nativeOnMobile=!0;autoHide=!0;qScroll;isScrolling=!1;isDragging=!1;scrollValueNow=0;scrollValueMax=0;static MIN_THUMB_HEIGHT_PX=36;static KEY_SCROLL_STEP_PX=40;viewportId="q-scrollable-viewport-"+ ++c;viewportEl;contentEl;trackEl;thumbEl;resizeObserver;scrollTimeout;isUpdatingPosition=!1;dragStartY=0;dragStartScrollTop=0;nativeStyleEl;activeTargetEl;componentDidLoad(){this.applyNativeStyles(),this.setupCustomScroll()}componentDidUpdate(){"custom"===this.mode&&this.updateScrollbarSize()}disconnectedCallback(){this.removeNativeStyles(),this.resizeObserver&&this.resizeObserver.disconnect(),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.thumbEl&&(this.thumbEl.removeEventListener("pointermove",this.handlePointerMove),this.thumbEl.removeEventListener("pointerup",this.handlePointerUp),this.thumbEl.removeEventListener("pointercancel",this.handlePointerUp))}handleModeOrTargetChange(){"native"===this.mode?(this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0),this.applyNativeStyles()):(this.removeNativeStyles(),this.setupCustomScroll())}async scrollToBottom(){this.viewportEl&&this.setViewportScrollTop(this.viewportEl.scrollHeight)}async scrollToPosition(t){this.viewportEl&&this.setViewportScrollTop(t)}setViewportRef=t=>{this.viewportEl=this.syncResizeObserver(this.viewportEl,t)};setContentRef=t=>{this.contentEl=this.syncResizeObserver(this.contentEl,t)};syncResizeObserver(t,r){if(t&&this.resizeObserver)try{this.resizeObserver.unobserve(t)}catch(t){}const i=r||void 0;return"custom"===this.mode&&i&&"undefined"!=typeof ResizeObserver&&(this.ensureResizeObserver(),this.resizeObserver?.observe(i)),"custom"===this.mode&&this.updateScrollbarSize(),i}ensureResizeObserver(){this.resizeObserver||"undefined"==typeof ResizeObserver||(this.resizeObserver=new ResizeObserver((()=>{this.updateScrollbarSize()})))}setupCustomScroll(){"custom"===this.mode&&("undefined"!=typeof ResizeObserver&&(this.ensureResizeObserver(),this.viewportEl&&this.resizeObserver?.observe(this.viewportEl),this.contentEl&&this.resizeObserver?.observe(this.contentEl)),this.updateScrollbarSize())}applyNativeStyles(){if(this.removeNativeStyles(),"native"!==this.mode)return;const t=(r=this.el,(i=this.target)?r.getRootNode().querySelector(i):r.parentElement);var r,i;if(!t)return;this.activeTargetEl=t;const s=function(t){let r=t.getAttribute(h);return r||(r=`q-scroll-${Math.random().toString(36).slice(2,11)}`,t.setAttribute(h,r)),r}(t),e=document.createElement("style");e.id=`q-style-${s}`,e.textContent=function(t){return`\n [${h}="${t}"]::-webkit-scrollbar {\n width: var(--q-scrollbar-width, 6px);\n height: var(--q-scrollbar-width, 6px);\n }\n [${h}="${t}"]::-webkit-scrollbar-track {\n background: var(--q-scrollbar-track-color, transparent);\n }\n [${h}="${t}"]::-webkit-scrollbar-thumb {\n background: var(--q-scrollbar-thumb-color, var(--q-border-color, #374151));\n border-radius: var(--q-scrollbar-radius, 4px);\n }\n [${h}="${t}"]::-webkit-scrollbar-thumb:hover {\n background: var(--q-scrollbar-thumb-color-hover, var(--q-color-primary, #60a5fa));\n }\n [${h}="${t}"] {\n scrollbar-width: var(--q-scrollbar-width-thin, thin);\n scrollbar-color: var(--q-scrollbar-thumb-color, var(--q-border-color, #374151)) var(--q-scrollbar-track-color, transparent);\n }\n `}(s),t.appendChild(e),this.nativeStyleEl=e}removeNativeStyles(){var t;this.nativeStyleEl&&this.nativeStyleEl.parentNode&&this.nativeStyleEl.parentNode.removeChild(this.nativeStyleEl),this.nativeStyleEl=void 0,this.activeTargetEl&&(t=this.activeTargetEl,t?.removeAttribute(h),this.activeTargetEl=void 0)}updateScrollbarSize(){if("custom"!==this.mode||!this.viewportEl||!this.trackEl||!this.thumbEl)return;const r=l({metrics:a(this.viewportEl),trackHeight:this.trackEl.clientHeight,thumbHeight:this.thumbEl.clientHeight,minThumbHeight:t.MIN_THUMB_HEIGHT_PX});if(!r.isScrollable)return this.thumbEl.style.height="0px",this.trackEl.style.display="none",void this.updateScrollMetrics();this.trackEl.style.display="",this.thumbEl.style.height=`${r.height}px`,this.updateThumbPosition()}updateThumbPosition(){if(!this.viewportEl||!this.trackEl||!this.thumbEl)return;const r=l({metrics:a(this.viewportEl),trackHeight:this.trackEl.clientHeight,thumbHeight:this.thumbEl.clientHeight,minThumbHeight:t.MIN_THUMB_HEIGHT_PX});r.isScrollable?(this.thumbEl.style.transform=`translateY(${r.translateY}px)`,this.updateScrollMetrics()):this.updateScrollMetrics()}updateScrollMetrics(){const t=a(this.viewportEl);this.scrollValueNow=Math.round(t.scrollTop),this.scrollValueMax=Math.round(t.maxScrollTop)}handleScroll=()=>{this.viewportEl&&this.qScroll.emit({scrollTop:this.viewportEl.scrollTop,scrollHeight:this.viewportEl.scrollHeight,clientHeight:this.viewportEl.clientHeight}),this.updateScrollMetrics(),"custom"===this.mode&&(this.showScrollbarTemporarily(),this.isUpdatingPosition||(this.isUpdatingPosition=!0,requestAnimationFrame((()=>{this.updateThumbPosition(),this.isUpdatingPosition=!1}))))};showScrollbarTemporarily(){this.autoHide&&(this.isScrolling=!0,this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout((()=>{this.isScrolling=!1}),1500))}handlePointerDown=t=>{0===t.button&&this.thumbEl&&this.viewportEl&&this.trackEl&&(this.isDragging=!0,this.dragStartY=t.clientY,this.dragStartScrollTop=this.viewportEl.scrollTop,this.thumbEl.setPointerCapture(t.pointerId),this.thumbEl.addEventListener("pointermove",this.handlePointerMove),this.thumbEl.addEventListener("pointerup",this.handlePointerUp),this.thumbEl.addEventListener("pointercancel",this.handlePointerUp),t.preventDefault(),t.stopPropagation())};handlePointerMove=t=>{if(!(this.isDragging&&this.viewportEl&&this.trackEl&&this.thumbEl))return;const r=a(this.viewportEl),i=this.trackEl.clientHeight-this.thumbEl.clientHeight;if(i<=0||r.maxScrollTop<=0)return;const s=Math.max(0,Math.min(i,this.dragStartScrollTop/r.maxScrollTop*i+(t.clientY-this.dragStartY)));this.setViewportScrollTop(s/i*r.maxScrollTop),this.updateThumbPosition()};handleThumbKeyDown=r=>{if(!this.viewportEl)return;const i=a(this.viewportEl),s=function(t){const r=Math.max(t.step,t.clientHeight-t.step);switch(t.key){case"ArrowDown":case"ArrowRight":return t.scrollTop+t.step;case"ArrowUp":case"ArrowLeft":return t.scrollTop-t.step;case"PageDown":return t.scrollTop+r;case"PageUp":return t.scrollTop-r;case"Home":return 0;case"End":return t.maxScrollTop;default:return}}({key:r.key,scrollTop:i.scrollTop,clientHeight:i.clientHeight,maxScrollTop:i.maxScrollTop,step:t.KEY_SCROLL_STEP_PX});void 0!==s&&(r.preventDefault(),this.setViewportScrollTop(s),this.updateThumbPosition())};setViewportScrollTop(t){if(!this.viewportEl)return;const r=function(t,r){return Math.max(0,Math.min(r.maxScrollTop,t))}(t,a(this.viewportEl));this.viewportEl.style.scrollBehavior="auto",this.viewportEl.scrollTop=r,this.viewportEl.style.scrollBehavior="",this.updateScrollMetrics()}handlePointerUp=t=>{if(this.isDragging&&(this.isDragging=!1,this.thumbEl)){try{this.thumbEl.releasePointerCapture(t.pointerId)}catch(t){}this.thumbEl.removeEventListener("pointermove",this.handlePointerMove),this.thumbEl.removeEventListener("pointerup",this.handlePointerUp),this.thumbEl.removeEventListener("pointercancel",this.handlePointerUp)}};render(){return e(o,{key:"5055572526fcd0927cb67768bc47039bb7f9162c",class:{"is-scrolling":this.isScrolling,"is-dragging":this.isDragging},style:{height:this.height,maxHeight:this.maxHeight||void 0}},e("div",{key:"cb442332f008b569dd062837db4d8efdd2321086",class:"q-scrollable-host"},e("div",{key:"2aae475dd88acc4a4f271c803aef43d264e4a17b",id:this.viewportId,class:"q-scrollable-viewport",ref:this.setViewportRef,onScroll:this.handleScroll,tabindex:0,part:"viewport"},e("div",{key:"e04e07c2dab58c2d314712a4838dc2071a362b55",class:"q-scrollable-content",ref:this.setContentRef,part:"content"},e("slot",{key:"4ec55800b21996b44f27302e07ce9c8cdb0ee8c6"}))),"custom"===this.mode&&e("div",{key:"26fac2984849a988bf18fa9dbc97925d5c95b9b3",class:{"q-scrollbar-track":!0,"is-dragging":this.isDragging},ref:t=>this.trackEl=t,part:"track"},e("div",{key:"a029558609abde7e50d40e94c86f0e284fda8f71",class:"q-scrollbar-thumb",ref:t=>this.thumbEl=t,onPointerDown:this.handlePointerDown,onKeyDown:this.handleThumbKeyDown,role:"scrollbar","aria-controls":this.viewportId,"aria-orientation":"vertical","aria-valuemin":"0","aria-valuemax":this.scrollValueMax,"aria-valuenow":this.scrollValueNow,"aria-label":"Scroll content",tabindex:0,part:"thumb"}))))}static get watchers(){return{mode:[{handleModeOrTargetChange:0}],target:[{handleModeOrTargetChange:0}]}}static get style(){return":host{display:block;box-sizing:border-box;height:100%;min-height:0}.q-scrollable-host{position:relative;width:100%;height:100%;max-height:inherit;overflow:hidden;box-sizing:border-box}.q-scrollable-viewport{width:100%;height:100%;max-height:inherit;overflow:auto;box-sizing:border-box}:host([mode='custom']) .q-scrollable-viewport{scrollbar-width:none;-ms-overflow-style:none;padding-right:12px;}:host([mode='custom']) .q-scrollable-viewport::-webkit-scrollbar{display:none;}:host([mode='native']) .q-scrollable-viewport{scrollbar-width:var(--q-scrollbar-width-thin, thin);scrollbar-color:var(--q-scrollbar-thumb-color, var(--q-border-color, #374151)) var(--q-scrollbar-track-color, transparent)}:host([mode='native']) .q-scrollable-viewport::-webkit-scrollbar{width:var(--q-scrollbar-width, 6px);height:var(--q-scrollbar-width, 6px);display:block}:host([mode='native']) .q-scrollable-viewport::-webkit-scrollbar-track{background:var(--q-scrollbar-track-color, transparent)}:host([mode='native']) .q-scrollable-viewport::-webkit-scrollbar-thumb{background:var(--q-scrollbar-thumb-color, var(--q-border-color, #374151));border-radius:var(--q-scrollbar-radius, 4px)}:host([mode='native']) .q-scrollable-viewport::-webkit-scrollbar-thumb:hover{background:var(--q-scrollbar-thumb-color-hover, var(--q-color-primary, #60a5fa))}.q-scrollbar-track{position:absolute;top:4px;right:4px;bottom:4px;width:var(--q-scrollbar-width, 6px);background:var(--q-scrollbar-track-color, transparent);border-radius:var(--q-scrollbar-radius, 4px);z-index:10;pointer-events:auto;opacity:0;transition:opacity 250ms ease;user-select:none;-webkit-user-select:none}.q-scrollbar-thumb{position:absolute;width:100%;background:var(--q-scrollbar-thumb-color, var(--q-border-color, #374151));border-radius:var(--q-scrollbar-radius, 4px);cursor:pointer;transform:translateY(0);transition:background-color 150ms ease;user-select:none;-webkit-user-select:none}.q-scrollbar-thumb:hover,.q-scrollbar-thumb:focus-visible{background:var(--q-scrollbar-thumb-color-hover, var(--q-color-primary, #60a5fa));outline:none}.q-scrollable-host:hover .q-scrollbar-track,.q-scrollable-host.is-scrolling .q-scrollbar-track,.q-scrollbar-track.is-dragging{opacity:1}.q-scrollable-host.is-dragging{user-select:none;-webkit-user-select:none}@media (hover: none) and (pointer: coarse){:host([native-on-mobile]) .q-scrollbar-track{display:none !important}:host([native-on-mobile]) .q-scrollable-viewport{scrollbar-width:auto;-ms-overflow-style:auto}:host([native-on-mobile]) .q-scrollable-viewport::-webkit-scrollbar{display:block}}"}},[769,"q-scrollable",{height:[513],maxHeight:[513,"max-height"],mode:[513],target:[513],nativeOnMobile:[516,"native-on-mobile"],autoHide:[516,"auto-hide"],isScrolling:[32],isDragging:[32],scrollValueNow:[32],scrollValueMax:[32],scrollToBottom:[64],scrollToPosition:[64]},void 0,{mode:[{handleModeOrTargetChange:0}],target:[{handleModeOrTargetChange:0}]}]);function b(){"undefined"!=typeof customElements&&["q-scrollable"].forEach((r=>{"q-scrollable"===r&&(customElements.get(t(r))||customElements.define(t(r),n))}))}b();export{n as Q,b as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const r=":root{--q-color-primary:#60a5fa;--q-color-primary-hover:#93c5fd;--q-color-secondary:#9777ea;--q-color-success:#34d399;--q-color-warning:#fbbf24;--q-color-danger:#f87171;--q-bg-base:#0b0f19;--q-bg-surface-1:#111827;--q-bg-surface-2:#19243b;--q-bg-surface-3:#22304d;--q-bg-surface-4:#2c3a58;--q-bg-surface-5:#374761;--q-bg-card:var(--q-bg-surface-2);--q-bg-glass:rgba(25, 36, 59, 0.85);--q-bg-overlay:rgba(0, 0, 0, 0.85);--q-fg-base:#f9fafb;--q-fg-muted:#9ca3af;--q-border-color:#374151;--q-dialog-backdrop-bg:var(--q-bg-overlay, rgba(0, 0, 0, 0.85));--q-dialog-backdrop-solid-bg:var(--q-bg-overlay, rgba(0, 0, 0, 0.85));--q-shadow-low:0 2px 4px rgba(0, 0, 0, 0.2);--q-shadow-medium:0 8px 16px rgba(0, 0, 0, 0.3);--q-shadow-high:0 16px 32px rgba(0, 0, 0, 0.45);--q-glow-interactive:0 0 20px rgba(96, 165, 250, 0.3);--q-border-width:1px;--q-border:var(--q-border-width) solid var(--q-border-color);--q-focus-ring:2px solid var(--q-color-primary);--q-font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--q-font-size-sm:0.7rem;--q-font-size-base:0.9rem;--q-font-size-lg:1rem;--q-font-weight-normal:400;--q-font-weight-bold:600;--q-radius-sm:4px;--q-radius-md:7px;--q-radius-lg:11px;--q-padding-sm:4px;--q-padding-md:9px;--q-padding-lg:16px;--q-transition-fast:150ms ease;--q-transition-normal:250ms cubic-bezier(0.4, 0, 0.2, 1);--q-transition-slow:400ms cubic-bezier(0.4, 0, 0.2, 1);--q-z-index-overlay:1000;--q-z-index-popover:1100;--q-z-index-toast:1200;--q-hover-transform:translateY(-4px) scale(1.02);--q-btn-hover-overlay:color-mix(in srgb, var(--q-fg-base) 8%, transparent);--q-card-min-width:280px;--q-card-border:var(--q-border);--q-card-hover-transform:var(--q-hover-transform);--q-card-transition-duration:var(--q-transition-normal);--q-step-diag-line:2px solid var(--q-border-color);--q-step-diag-border:var(--q-border);--q-step-diag-icon-size:32px;--q-step-diag-item-gap:24px;--q-thumb-aspect-ratio:16 / 9;--q-thumb-border:2px solid var(--q-thumb-border-color);--q-thumb-hover-transform:var(--q-hover-transform);--q-thumb-overlay-bg:rgba(0, 0, 0, 0.4);--q-thumb-radius:var(--q-radius-md);--q-thumb-border-color:transparent;--q-thumb-glow:var(--q-glow-interactive);--q-reel-gap:12px;--q-reel-columns-desktop:repeat(auto-fill, minmax(200px, 1fr));--q-reel-columns-mobile:1fr;--q-lightbox-max-size:90vh;--q-reel-lightbox-btn-bg:rgba(0, 0, 0, 0.5);--q-reel-lightbox-btn-border:1px solid rgba(255, 255, 255, 0.2);--q-reel-lightbox-btn-color:#ffffff;--q-reel-lightbox-btn-hover-bg:rgba(255, 255, 255, 0.2);--q-avatar-size-sm:28px;--q-avatar-size-md:40px;--q-avatar-size-lg:56px;--q-avatar-bg:var(--q-bg-surface-3);--q-avatar-fg:var(--q-fg-base);--q-avatar-border:var(--q-border);--q-conversation-incoming-bg:var(--q-bg-surface-2);--q-conversation-outgoing-bg:var(--q-color-primary);--q-conversation-outgoing-fg:#ffffff;--q-conversation-system-bg:transparent;--q-conversation-system-fg:var(--q-fg-muted);--q-carousel-gap:16px;--q-carousel-padding:24px 20px;--q-carousel-arrow-bg:var(--q-bg-overlay);--q-carousel-arrow-border:var(--q-border);--q-carousel-arrow-color:#ffffff;--q-carousel-arrow-size:40px;--q-carousel-indicator-gap:8px;--q-carousel-indicator-size:6px;--q-progress-transition:var(--q-transition-normal);--q-progress-indeterminate-duration:1.4s;--q-progress-linear-height-sm:4px;--q-progress-linear-height-md:6px;--q-progress-linear-height-lg:8px;--q-progress-linear-radius:999px;--q-progress-circular-size-sm:64px;--q-progress-circular-size-md:120px;--q-progress-circular-size-lg:180px;--q-progress-circular-stroke-width-sm:6px;--q-progress-circular-stroke-width-md:8px;--q-progress-circular-stroke-width-lg:10px;--q-progress-circular-linecap:round;--q-progress-circular-font-weight:var(--q-font-weight-bold);--q-btn-radius:var(--q-radius-md);--q-btn-radius-sm:var(--q-radius-sm);--q-btn-radius-md:var(--q-radius-md);--q-btn-radius-lg:var(--q-radius-lg);--q-btn-font-size:var(--q-font-size-base);--q-btn-font-weight:var(--q-font-weight-bold);--q-btn-active-transform:scale(0.97);--q-btn-transition:all 150ms cubic-bezier(0.4, 0, 0.2, 1);--q-btn-padding-sm:6px 10px;--q-btn-padding-md:5px 8px;--q-btn-padding-lg:9px 16px;--q-btn-icon-padding-sm:4px;--q-btn-icon-padding-md:6px;--q-btn-icon-padding-lg:9px;--q-chip-radius:999px;--q-chip-border:var(--q-border);--q-chip-font-weight:var(--q-font-weight-bold);--q-chip-padding-sm:4px 9px;--q-chip-padding-md:6px 11px;--q-chip-padding-lg:8px 14px;--q-chip-height-sm:24px;--q-chip-height-md:30px;--q-chip-height-lg:36px;--q-chip-active-transform:scale(0.97);--q-field-bg:var(--q-bg-surface-2);--q-field-border:var(--q-border);--q-field-radius:var(--q-radius-md);--q-field-padding:10px 14px;--q-field-border-color-focus:var(--q-color-primary);--q-input-bg:var(--q-field-bg);--q-input-border:var(--q-field-border);--q-input-radius:var(--q-field-radius);--q-input-padding:var(--q-field-padding);--q-dropdown-bg:var(--q-field-bg);--q-dropdown-menu-bg:var(--q-bg-surface-3);--q-dropdown-border:var(--q-field-border);--q-dropdown-radius:var(--q-field-radius);--q-panel-bg:var(--q-bg-surface-1);--q-panel-border:var(--q-border);--q-sidepanel-bg:var(--q-bg-surface-1);--q-sidepanel-border:var(--q-border);--q-sidepanel-shadow:var(--q-shadow-high);--q-sidepanel-panel-width:320px;--q-sidepanel-panel-padding:var(--q-padding-lg);--q-sidepanel-panel-header-padding:var(--q-padding-lg);--q-sidepanel-panel-footer-padding:var(--q-padding-lg);--q-sidepanel-panel-section-border:var(--q-border);--q-map-height:100%;--q-map-min-height:240px;--q-map-bg:var(--q-bg-surface-1);--q-map-border:var(--q-border);--q-map-radius:var(--q-radius-lg);--q-map-marker-size:20px;--q-map-marker-size-small:16px;--q-map-marker-size-medium:var(--q-map-marker-size);--q-map-marker-size-large:24px;--q-map-marker-color:var(--q-color-primary);--q-map-marker-success:var(--q-color-success);--q-map-marker-warning:var(--q-color-warning);--q-map-marker-danger:var(--q-color-danger);--q-map-marker-muted:var(--q-fg-muted);--q-map-marker-selected-color:var(--q-fg-base);--q-map-marker-selected-shadow:var(--q-shadow-medium);--q-map-attribution-bg:var(--q-bg-base);--q-map-attribution-color:var(--q-fg-muted);--q-scrollbar-width:6px;--q-scrollbar-width-thin:thin;--q-scrollbar-track-color:transparent;--q-scrollbar-thumb-color:var(--q-border-color, #374151);--q-scrollbar-thumb-color-hover:var(--q-color-primary, #60a5fa);--q-scrollbar-radius:var(--q-radius-sm, 4px)}@media (prefers-color-scheme: light){:root{--q-color-primary:#3b82f6;--q-color-primary-hover:#2563eb;--q-color-secondary:#7c3aed;--q-color-success:#10b981;--q-color-warning:#f59e0b;--q-color-danger:#ef4444;--q-bg-base:#ffffff;--q-bg-surface-1:#f0f3f9;--q-bg-surface-2:#dee5f2;--q-bg-surface-3:#c7d1e6;--q-bg-surface-4:#aab8d5;--q-bg-surface-5:#8b9dc1;--q-bg-card:var(--q-bg-surface-2);--q-bg-glass:rgba(255, 255, 255, 0.85);--q-bg-overlay:rgba(0, 0, 0, 0.6);--q-fg-base:#1f2937;--q-fg-muted:#4b5563;--q-border-color:#e5e7eb;--q-sidepanel-bg:var(--q-bg-surface-1);--q-shadow-low:0 2px 4px rgba(0, 0, 0, 0.05);--q-shadow-medium:0 8px 16px rgba(0, 0, 0, 0.08);--q-shadow-high:0 16px 32px rgba(0, 0, 0, 0.12);--q-glow-interactive:0 0 20px rgba(59, 130, 246, 0.3)}}[data-theme='light']{--q-color-primary:#3b82f6;--q-color-primary-hover:#2563eb;--q-color-secondary:#7c3aed;--q-color-success:#10b981;--q-color-warning:#f59e0b;--q-color-danger:#ef4444;--q-bg-base:#ffffff;--q-bg-surface-1:#f0f3f9;--q-bg-surface-2:#dee5f2;--q-bg-surface-3:#c7d1e6;--q-bg-surface-4:#aab8d5;--q-bg-surface-5:#8b9dc1;--q-bg-card:var(--q-bg-surface-2);--q-bg-glass:rgba(255, 255, 255, 0.85);--q-bg-overlay:rgba(0, 0, 0, 0.6);--q-fg-base:#1f2937;--q-fg-muted:#4b5563;--q-border-color:#e5e7eb;--q-sidepanel-bg:var(--q-bg-surface-1);--q-shadow-low:0 2px 4px rgba(0, 0, 0, 0.05);--q-shadow-medium:0 8px 16px rgba(0, 0, 0, 0.08);--q-shadow-high:0 16px 32px rgba(0, 0, 0, 0.12);--q-glow-interactive:0 0 20px rgba(59, 130, 246, 0.3)}[data-theme='dark']{--q-color-primary:#60a5fa;--q-color-primary-hover:#93c5fd;--q-color-secondary:#9777ea;--q-color-success:#34d399;--q-color-warning:#fbbf24;--q-color-danger:#f87171;--q-bg-base:#0b0f19;--q-bg-surface-1:#111827;--q-bg-surface-2:#19243b;--q-bg-surface-3:#22304d;--q-bg-surface-4:#2c3a58;--q-bg-surface-5:#374761;--q-bg-card:var(--q-bg-surface-2);--q-bg-glass:rgba(25, 36, 59, 0.85);--q-bg-overlay:rgba(0, 0, 0, 0.85);--q-fg-base:#f9fafb;--q-fg-muted:#9ca3af;--q-border-color:#374151;--q-sidepanel-bg:var(--q-bg-surface-1);--q-shadow-low:0 2px 4px rgba(0, 0, 0, 0.2);--q-shadow-medium:0 8px 16px rgba(0, 0, 0, 0.3);--q-shadow-high:0 16px 32px rgba(0, 0, 0, 0.45);--q-glow-interactive:0 0 20px rgba(96, 165, 250, 0.3)}";function e(r,e,t){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;r&&r!==o;){const o=Object.getOwnPropertyDescriptor(r,e);if(o&&(!t||o.get))return o;r=Object.getPrototypeOf(r)}}var t,o=(r,t)=>{var o;Object.entries(null!=(o=t.o.t)?o:{}).map((([o,[a]])=>{if(31&a||32&a){const a=r[o],n=e(Object.getPrototypeOf(r),o,!0)||Object.getOwnPropertyDescriptor(r,o);n&&Object.defineProperty(r,o,{get(){return n.get.call(this)},set(r){n.set.call(this,r)},configurable:!0,enumerable:!0}),t.i.has(o)?r[o]=t.i.get(o):void 0!==a&&(r[o]=a)}}))},a=r=>{if(r.__stencil__getHostRef)return r.__stencil__getHostRef()},n=(r,e)=>e in r,s=(r,e)=>(0,console.error)(r,e),i=new Map,l="http://www.w3.org/1999/xlink",c=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],f="undefined"!=typeof window?window:{},d=f.HTMLElement||class{},q={l:0,q:"",jmp:r=>r(),raf:r=>requestAnimationFrame(r),ael:(r,e,t,o)=>r.addEventListener(e,t,o),rel:(r,e,t,o)=>r.removeEventListener(e,t,o),ce:(r,e)=>new CustomEvent(r,e)},u=(()=>{var r;let e=!1;try{null==(r=f.document)||r.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(r){}return e})(),b=(()=>{try{return!!f.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(r){}return!1})(),p=!!b&&(()=>!!f.document&&Object.getOwnPropertyDescriptor(f.document.adoptedStyleSheets,"length").writable)(),g=!1,m=[],v=[],h=()=>{var r;return(null==(r=f.document)?void 0:r.hidden)?$(y):q.raf(y)},x=(r,e)=>t=>{r.push(t),g||(g=!0,e&&4&q.l?$(y):h())},w=r=>{for(let e=0;e<r.length;e++)try{r[e](performance.now())}catch(r){s(r)}r.length=0},y=()=>{w(m),w(v),(g=m.length>0)&&h()},$=r=>Promise.resolve(undefined).then(r),k=x(v,!0),j=r=>{const e=new URL(r,q.q);return e.origin!==f.location.origin?e.href:e.pathname},O=r=>q.q=r;function S(e){var o;const a={mode:"open"};a.delegatesFocus=!!(16&e.l);const n=this.attachShadow(a);if(void 0===t&&(t=null!=(o=function(r){if(!b)return;const e=new CSSStyleSheet;return e.replaceSync(r),e}(r))?o:null),t)p?n.adoptedStyleSheets.push(t):n.adoptedStyleSheets=[...n.adoptedStyleSheets,t];else if(!b){const e=document.createElement("style");e.innerHTML=r,n.prepend(e)}}var z,M=new WeakMap,C=r=>"sc-"+r.u,E=r=>"object"==(r=typeof r)||"function"===r,A=(r,e,...t)=>{let o=null,a=null,n=!1,i=!1;const l=[],c=e=>{for(let t=0;t<e.length;t++)if(o=e[t],Array.isArray(o))c(o);else if(null!=o&&"boolean"!=typeof o){if(n="function"!=typeof r&&!E(o))o=String(o);else if("function"!=typeof r&&void 0===o.l){s("Invalid vNode child");continue}n&&i?l[l.length-1].p+=o:l.push(n?R(null,o):o),i=n}};if(c(t),e){e.key&&(a=e.key);{const r=e.className||e.class;r&&(e.class="object"!=typeof r?r:Object.keys(r).filter((e=>r[e])).join(" "))}}if("function"==typeof r)return r(null===e?{}:e,l,D);const f=R(r,null);return f.m=e,l.length>0&&(f.v=l),f.h=a,f},R=(r,e)=>({l:0,$:r,p:null!=e?e:null,k:null,v:null,m:null,h:null}),N={},D={forEach:(r,e)=>r.map(H).forEach(e),map:(r,e)=>r.map(H).map(e).map(L)},H=r=>({vattrs:r.m,vchildren:r.v,vkey:r.h,vname:r.j,vtag:r.$,vtext:r.p}),L=r=>{if("function"==typeof r.vtag){const e={...r.vattrs};return r.vkey&&(e.key=r.vkey),r.vname&&(e.name=r.vname),A(r.vtag,e,...r.vchildren||[])}const e=R(r.vtag,r.vtext);return e.m=r.vattrs,e.v=r.vchildren,e.h=r.vkey,e.j=r.vname,e},U=r=>{if(!r)return;const e=Object.keys(r);if(0===e.length)return;let t=!1;for(const o of e){if(t)break;for(const e of r[o])if("string"==typeof e){t=!0;break}}if(!t)return r;const o={};for(const t of e)o[t]=r[t].map((r=>"string"==typeof r?{[r]:0}:r));return o},_=(r,e,t)=>null==r||E(r)?r:4&e?(t&&"string"==typeof r||"false"!==r)&&(""===r||!!r):2&e?"string"==typeof r?parseFloat(r):"number"==typeof r?r:NaN:1&e?String(r):r,P=(r,e)=>{const t=r;return{emit:r=>W(t,e,{bubbles:!0,composed:!0,cancelable:!0,detail:r})}},W=(r,e,t)=>{const o=q.ce(e,t);return r.dispatchEvent(o),o},F=(r,e,t,o,s,i)=>{if(t===o)return;let c=n(r,e),d=e.toLowerCase();if("class"===e){const e=r.classList,a=Y(t);let n=Y(o);e.remove(...a.filter((r=>r&&!n.includes(r)))),e.add(...n.filter((r=>r&&!a.includes(r))))}else if("style"===e){for(const e in t)o&&null!=o[e]||(e.includes("-")?r.style.removeProperty(e):r.style[e]="");for(const e in o)t&&o[e]===t[e]||(e.includes("-")?r.style.setProperty(e,o[e]):r.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&ir(o,r);else if(r.__lookupSetter__(e)||"o"!==e[0]||"n"!==e[1]){if("a"===e[0]&&e.startsWith("attr:")){const t=e.slice(5);let n;{const e=a(r);if(e&&e.o&&e.o.t){const r=e.o.t[t];r&&r[1]&&(n=r[1])}}return n||(n=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==r.getAttribute(n)||r.removeAttribute(n):r.setAttribute(n,!0===o?"":o))}if("p"===e[0]&&e.startsWith("prop:")){const t=e.slice(5);try{r[t]=o}catch(r){}return}{const a=E(o);if((c||a&&null!==o)&&!s)try{if(r.tagName.includes("-"))r[e]!==o&&(r[e]=o);else{const a=null==o?"":o;"list"===e?c=!1:null!=t&&r[e]===a||("function"==typeof r.__lookupSetter__(e)?r[e]=a:r.setAttribute(e,a))}}catch(r){}let n=!1;d!==(d=d.replace(/^xlink\:?/,""))&&(e=d,n=!0),null==o||!1===o?(!1!==o||""===r.getAttribute(e)||4&i&&!V(e))&&(n?r.removeAttributeNS(l,e):r.removeAttribute(e)):(!c||4&i||s)&&!a&&1===r.nodeType&&(o=!0===o?"":o,n?r.setAttributeNS(l,e,o):r.setAttribute(e,o))}}else if(e="-"===e[2]?e.slice(3):n(f,d)?d.slice(2):d[2]+e.slice(3),t||o){const a=e.endsWith(B);e=e.replace(Z,""),t&&q.rel(r,e,t,a),o&&q.ael(r,e,o,a)}},T=new Set(["draggable","contenteditable","spellcheck"]),V=r=>T.has(r)||r.startsWith("aria-"),I=/\s/,Y=r=>("object"==typeof r&&r&&"baseVal"in r&&(r=r.baseVal),r&&"string"==typeof r?r.split(I):[]),B="Capture",Z=new RegExp(B+"$"),G=(r,e,t)=>{const o=11===e.k.nodeType&&e.k.host?e.k.host:e.k,a=r&&r.m||{},n=e.m||{};for(const r of J(Object.keys(a)))r in n||F(o,r,a[r],void 0,t,e.l);for(const r of J(Object.keys(n)))F(o,r,a[r],n[r],t,e.l)};function J(r){return r.includes("ref")?[...r.filter((r=>"ref"!==r)),"ref"]:r}var K=!1,Q=!1,X=[],rr=[],er=(r,e,t)=>{const o=e.v[t];let a,n,s=0;if(null!=o.p)a=o.k=f.document.createTextNode(o.p);else{if(Q||(Q="svg"===o.$),!f.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(a=o.k=f.document.createElementNS(Q?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.$),Q&&"foreignObject"===o.$&&(Q=!1),G(null,o,Q),o.v){const e="template"===o.$?a.content:a;for(s=0;s<o.v.length;++s)n=er(r,o,s),n&&e.appendChild(n)}"svg"===o.$?Q=!1:"foreignObject"===a.tagName&&(Q=!0)}return a["s-hn"]=z,a},tr=(r,e,t,o,a,n)=>{let s,i=r;for(i.shadowRoot&&i.tagName===z&&(i=i.shadowRoot),"template"===t.$&&(i=i.content);a<=n;++a)o[a]&&(s=er(null,t,a),s&&(o[a].k=s,lr(i,s,e)))},or=(r,e,t)=>{for(let o=e;o<=t;++o){const e=r[o];if(e){const r=e.k;sr(e),r&&r.remove()}}},ar=(r,e,t=!1)=>r.$===e.$&&(t?(t&&!r.h&&e.h&&(r.h=e.h),!0):r.h===e.h),nr=(r,e,t=!1)=>{const o=e.k=r.k,a=r.v,n=e.v,s=e.$,i=e.p;null==i?(Q="svg"===s||"foreignObject"!==s&&Q,"slot"!==s||K||r.j!==e.j&&(e.k["s-sn"]=e.j||"",(r=>{q.l|=1;const e=r.closest(z.toLowerCase());if(null!=e){const t=Array.from(e.__childNodes||e.childNodes).find((r=>r["s-cr"])),o=Array.from(r.__childNodes||r.childNodes);for(const r of t?o.reverse():o)null!=r["s-sh"]&&(lr(e,r,null!=t?t:null),r["s-sh"]=void 0)}q.l&=-2})(e.k.parentElement)),G(r,e,Q),null!==a&&null!==n?((r,e,t,o,a=!1)=>{let n,s,i=0,l=0,c=0,f=0,d=e.length-1,q=e[0],u=e[d],b=o.length-1,p=o[0],g=o[b];const m="template"===t.$?r.content:r;for(;i<=d&&l<=b;)if(null==q)q=e[++i];else if(null==u)u=e[--d];else if(null==p)p=o[++l];else if(null==g)g=o[--b];else if(ar(q,p,a))nr(q,p,a),q=e[++i],p=o[++l];else if(ar(u,g,a))nr(u,g,a),u=e[--d],g=o[--b];else if(ar(q,g,a))nr(q,g,a),lr(m,q.k,u.k.nextSibling),q=e[++i],g=o[--b];else if(ar(u,p,a))nr(u,p,a),lr(m,u.k,q.k),u=e[--d],p=o[++l];else{for(c=-1,f=i;f<=d;++f)if(e[f]&&null!==e[f].h&&e[f].h===p.h){c=f;break}c>=0?(s=e[c],s.$!==p.$?n=er(e&&e[l],t,l):(nr(s,p,a),e[c]=void 0,n=s.k),p=o[++l]):(n=er(e&&e[l],t,l),p=o[++l]),n&&lr(q.k.parentNode,n,q.k)}i>d?tr(r,null==o[b+1]?null:o[b+1].k,t,o,l,b):l>b&&or(e,i,d)})(o,a,e,n,t):null!==n?(null!==r.p&&(o.textContent=""),tr(o,null,e,n,0,n.length-1)):!t&&null!==a&&or(a,0,a.length-1),Q&&"svg"===s&&(Q=!1)):r.p!==i&&(o.data=i)},sr=r=>{r.m&&r.m.ref&&X.push((()=>r.m.ref(null))),r.v&&r.v.map(sr)},ir=(r,e)=>{rr.push((()=>r(e)))},lr=(r,e,t)=>null==r?void 0:r.insertBefore(e,t),cr=(r,e,t=!1)=>{const o=r.$hostElement$,a=r.o,n=r.O||R(null,null);var s;const i=(s=e)&&s.$===N?e:A(null,null,e);if(z=o.tagName,a.S&&(i.m=i.m||{},a.S.forEach((([r,e])=>{i.m[e]=o[r]}))),t&&i.m)for(const r of Object.keys(i.m))o.hasAttribute(r)&&!["key","ref","style","class"].includes(r)&&(i.m[r]=o[r]);i.$=null,i.l|=4,r.O=i,i.k=n.k=o.shadowRoot||o,K=!(!(1&a.l)||128&a.l),nr(n,i,t),X.forEach((r=>r())),X.length=0,rr.forEach((r=>r())),rr.length=0},fr=(r,e)=>{if(e&&!r.M&&e["s-p"]){const t=e["s-p"].push(new Promise((o=>r.M=()=>{e["s-p"].splice(t-1,1),o()})))}},dr=(r,e)=>{if(r.l|=16,4&r.l)return void(r.l|=512);fr(r,r.C);const t=()=>qr(r,e);if(!e)return k(t);queueMicrotask((()=>{t()}))},qr=(r,e)=>{const t=r.$hostElement$,o=t;if(!o)throw new Error(`Can't render component <${t.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return a=hr(o,e?"componentWillLoad":"componentWillUpdate",void 0,t),a=ur(a,(()=>hr(o,"componentWillRender",void 0,t))),ur(a,(()=>pr(r,o,e)))},ur=(r,e)=>br(r)?r.then(e).catch((r=>{console.error(r),e()})):e(),br=r=>r instanceof Promise||r&&r.then&&"function"==typeof r.then,pr=async(r,e,t)=>{var o;const a=r.$hostElement$,n=a["s-rc"];t&&(r=>{const e=r.o,t=r.$hostElement$,o=e.l,a=((r,e)=>{var t,o,a;const n=C(e),s=i.get(n);if(!f.document)return n;if(r=11===r.nodeType?r:f.document,s)if("string"==typeof s){let a,i=M.get(r=r.head||r);if(i||M.set(r,i=new Set),!i.has(n)){a=f.document.createElement("style"),a.textContent=s;const l=null!=(t=q.A)?t:function(){var r,e,t;return null!=(t=null==(e=null==(r=f.document.head)?void 0:r.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?t:void 0}();if(null!=l&&a.setAttribute("nonce",l),!(1&e.l))if("HEAD"===r.nodeName){const e=r.querySelectorAll("link[rel=preconnect]"),t=e.length>0?e[e.length-1].nextSibling:r.querySelector("style");r.insertBefore(a,(null==t?void 0:t.parentNode)===r?t:null)}else if("host"in r)if(b){const e=new(null!=(o=r.defaultView)?o:r.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(s),p?r.adoptedStyleSheets.unshift(e):r.adoptedStyleSheets=[e,...r.adoptedStyleSheets]}else{const e=r.querySelector("style");e?e.textContent=s+e.textContent:r.prepend(a)}else r.append(a);1&e.l&&r.insertBefore(a,null),4&e.l&&(a.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),i&&i.add(n)}}else{let e=M.get(r);if(e||M.set(r,e=new Set),!e.has(n)){const t=null!=(a=r.defaultView)?a:r.ownerDocument.defaultView;let o;if(s.constructor===t.CSSStyleSheet)o=s;else{o=new t.CSSStyleSheet;for(let r=0;r<s.cssRules.length;r++)o.insertRule(s.cssRules[r].cssText,r)}p?r.adoptedStyleSheets.push(o):r.adoptedStyleSheets=[...r.adoptedStyleSheets,o],e.add(n)}}return n})(t.shadowRoot?t.shadowRoot:t.getRootNode(),e);10&o&&(t["s-sc"]=a,t.classList.add(a+"-h"))})(r);gr(r,e,a,t),n&&(n.map((r=>r())),a["s-rc"]=void 0);{const e=null!=(o=a["s-p"])?o:[],t=()=>mr(r);0===e.length?t():(Promise.all(e).then(t).catch(t),r.l|=4,e.length=0)}},gr=(r,e,t,o)=>{try{e=e.render(),r.l&=-17,r.l|=2,cr(r,e,o)}catch(e){s(e,r.$hostElement$)}return null},mr=r=>{const e=r.$hostElement$,t=e,o=r.C;hr(t,"componentDidRender",void 0,e),64&r.l?hr(t,"componentDidUpdate",void 0,e):(r.l|=64,xr(e),hr(t,"componentDidLoad",void 0,e),r.R(e),o||vr()),r.M&&(r.M(),r.M=void 0),512&r.l&&$((()=>dr(r,!1))),r.l&=-517},vr=()=>{$((()=>W(f,"appload",{detail:{namespace:"webquark"}})))},hr=(r,e,t,o)=>{if(r&&r[e])try{return r[e](t)}catch(r){s(r,o)}},xr=r=>r.classList.add("hydrated"),wr=(r,e,t,o)=>{const n=a(r);if(!n)return;const i=r,l=n.i.get(e),c=n.l,f=i;t=_(t,o.t[e][0],!!(64&o.l));const d=Number.isNaN(l)&&Number.isNaN(t);if(t!==l&&!d){if(n.i.set(e,t),o.N){const r=o.N[e];r&&r.map((r=>{try{const[[o,a]]=Object.entries(r);(128&c||1&a)&&(f?f[o](t,l,e):n.D.push((()=>{n.H[o](t,l,e)})))}catch(r){s(r,i)}}))}if(2&c){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(t,l,e)&&!(16&c))return;16&c||dr(n,!1)}}},yr=(r,t,o)=>{var n,s;const i=r.prototype;64&t.l&&1&o&&c.forEach((r=>{const e=i[r];Object.defineProperty(i,r,{value(...t){var o;const n=a(this),s=this;s?"function"==typeof e&&e.call(s,...t):null==(o=null==n?void 0:n.L)||o.then((e=>{const o=e[r];"function"==typeof o&&o.call(e,...t)}))}})}));{r.watchers&&!t.N&&(t.N=U(r.watchers)),r.deserializers&&!t.U&&(t.U=r.deserializers),r.serializers&&!t._&&(t._=r.serializers);const o=Object.entries(null!=(n=t.t)?n:{});o.map((([r,[o]])=>{if(31&o||32&o){const{get:n,set:s}=e(i,r)||{};n&&(t.t[r][0]|=2048),s&&(t.t[r][0]|=4096),Object.defineProperty(i,r,{get(){return n?n.apply(this):(e=r,a(this).i.get(e));var e},configurable:!0,enumerable:!0}),Object.defineProperty(i,r,{set(e){const n=a(this);if(n){if(s)return void 0===(32&o?this[r]:n.$hostElement$[r])&&n.i.get(r)&&(e=n.i.get(r)),s.apply(this,[_(e,o,!!(64&t.l))]),void wr(this,r,e=32&o?this[r]:n.$hostElement$[r],t);wr(this,r,e,t)}}})}}));{const e=new Map;i.attributeChangedCallback=function(r,n,s){q.jmp((()=>{var l;const c=e.get(r),f=a(this);if(this.hasOwnProperty(c),i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const e=null==f?void 0:f.l;if(f&&e&&!(8&e)&&s!==n){const o=this,a=null==(l=t.N)?void 0:l[r];null==a||a.forEach((t=>{const[[a,i]]=Object.entries(t);null!=o[a]&&(128&e||1&i)&&o[a].call(o,s,n,r)}))}return}const d=o.find((([r])=>r===c)),q=d?d[1][0]:0,u=4&q;if(512&q&&8&q&&!E(this[c])&&(null==(b=this[c])||!1===b?null:!0===b?"":String(b))===s)return;var b;const p=u&&null===s&&void 0===this[c];u&&(s=null!==s&&"false"!==s);const g=Object.getOwnPropertyDescriptor(i,c);p||s==this[c]||g.get&&!g.set||(this[c]=s)}))},r.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.N)?s:{}),...o.filter((([r,e])=>31&e[0])).map((([r,o])=>{var a;const n=o[1]||r;return e.set(n,r),512&o[0]&&(null==(a=t.S)||a.push([r,n])),n}))]))}}return r},$r=async(r,e,t)=>{let o;try{if(!(32&e.l)&&(e.l|=32,e.l&=-1025,o=r.constructor,customElements.whenDefined(r.localName).then((()=>e.l|=128)),o&&o.style)){let r;"string"==typeof o.style&&(r=o.style);const e=C(t);if(!i.has(e)){const o=()=>{};((r,e,t)=>{let o=i.get(r);b&&t?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(r,o)})(e,r,!!(1&t.l)),o()}}const a=e.C,n=()=>dr(e,!0);a&&a["s-rc"]?a["s-rc"].push(n):n()}catch(t){s(t,r),e.M&&(e.M(),e.M=void 0),!e.R||1024&e.l||e.R(r)}},kr=(r,e)=>{const t={l:e[0],u:e[1]};try{t.t=e[2],t.P=e[3],t.N=U(r.N),t.U=r.U,t._=r._,t.S=[];const n=r.prototype.connectedCallback,s=r.prototype.disconnectedCallback;return Object.assign(r.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,e)=>{const t={l:0,$hostElement$:r,o:e,i:new Map,W:new Map};t.L=new Promise((r=>t.R=r)),r["s-p"]=[],r["s-rc"]=[];const a=t;r.__stencil__getHostRef=()=>a,512&e.l&&o(r,t)})(this,t)},connectedCallback(){if(!this.__hasHostListenerAttached){const r=a(this);if(!r)return;jr(this,r,t.P),this.__hasHostListenerAttached=!0}(r=>{if(!(1&q.l)){const e=a(r);if(!e)return;const t=e.o,o=()=>{};if(1&e.l)jr(r,e,t.P),(null==e?void 0:e.H)||(1024&e.l?setTimeout((()=>$r(r,e,t)),1e3):(null==e?void 0:e.L)&&e.L.then((()=>{})));else{e.l|=1;{let t=r;for(;t=t.parentNode||t.host;)if(t["s-p"]){fr(e,e.C=t);break}}t.t&&Object.entries(t.t).map((([e,[t]])=>{if(31&t&&Object.prototype.hasOwnProperty.call(r,e)){const t=r[e];delete r[e],r[e]=t}})),$r(r,e,t)}o()}})(this),n&&n.call(this)},disconnectedCallback(){(async r=>{if(!(1&q.l)){const e=a(r);(null==e?void 0:e.F)&&(e.F.map((r=>r())),e.F=void 0)}M.has(r)&&M.delete(r),r.shadowRoot&&M.has(r.shadowRoot)&&M.delete(r.shadowRoot)})(this),s&&s.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${t.u}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else S.call(this,t)}}),Object.defineProperty(r,"is",{value:t.u,configurable:!0}),yr(r,t,3)}catch(e){return s(e),r}},jr=(r,e,t)=>{t&&f.document&&t.map((([t,o,a])=>{const n=Sr(f.document,r,t),s=Or(e,a),i=zr(t);q.ael(n,o,s,i),(e.F=e.F||[]).push((()=>q.rel(n,o,s,i)))}))},Or=(r,e)=>t=>{try{r.$hostElement$[e](t)}catch(e){s(e,r.$hostElement$)}},Sr=(r,e,t)=>8&t?f:e,zr=r=>u?{passive:!!(1&r),capture:!!(2&r)}:!!(2&r),Mr=globalThis.HTMLElement||class{};function Cr(...r){return r.reduceRight(((r,e)=>e(r)),Mr)}var Er=r=>q.A=r,Ar=r=>Object.assign(q,r),Rr=new WeakMap;function Nr(r,e){let t=Rr.get(e);t||(t={l:0,o:{l:0,u:e.tagName},$hostElement$:e},Rr.set(e,t)),cr(t,r)}function Dr(r){return r}export{d as H,Cr as M,Er as a,Ar as b,P as c,N as d,j as g,A as h,kr as p,Nr as r,O as s,Dr as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as s,H as i,h as e,d as o}from"./p-
|
|
1
|
+
import{t,p as s,H as i,h as e,d as o}from"./p-CVtof65h.js";let r=0;const n=s(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}get el(){return this}content;position="top";delay=200;visible=!1;showTimer;parentEl=null;describedByAdded=!1;tooltipId="";connectedCallback(){this.parentEl=this.el.parentElement,this.parentEl&&(this.syncAriaDescribedBy(),this.parentEl.addEventListener("mouseenter",this.show),this.parentEl.addEventListener("mouseleave",this.hide),this.parentEl.addEventListener("focusin",this.show),this.parentEl.addEventListener("focusout",this.hide))}disconnectedCallback(){this.parentEl&&(this.parentEl.removeEventListener("mouseenter",this.show),this.parentEl.removeEventListener("mouseleave",this.hide),this.parentEl.removeEventListener("focusin",this.show),this.parentEl.removeEventListener("focusout",this.hide),this.removeAriaDescribedBy()),this.removeScrollListeners(),clearTimeout(this.showTimer)}updatePosition=()=>{if(!this.parentEl)return;const{left:t,top:s}=function(t,s,i){const e=s.getBoundingClientRect(),o=function(t){let s=t;for(;s;){let t=s.parentElement;if(!t&&s.parentNode){const i=s.parentNode;t=i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&i.host?i.host:i}if(!t||t.nodeType!==Node.ELEMENT_NODE){s=t;continue}const i=t,e=window.getComputedStyle(i),o=e.backdropFilter||e.webkitBackdropFilter;if(e.transform&&"none"!==e.transform||e.perspective&&"none"!==e.perspective||e.filter&&"none"!==e.filter||o&&"none"!==o||e.willChange&&(e.willChange.includes("transform")||e.willChange.includes("perspective")||e.willChange.includes("filter")||e.willChange.includes("backdrop-filter"))||e.contain&&(e.contain.includes("paint")||e.contain.includes("contain")||e.contain.includes("layout")||e.contain.includes("content")||e.contain.includes("strict")))return i;s=t}return null}(t),r=o?.getBoundingClientRect(),n=r?.left||0,a=r?.top||0;switch(i){case"bottom":return{left:e.left+e.width/2-n,top:e.bottom-a};case"left":return{left:e.left-n,top:e.top+e.height/2-a};case"right":return{left:e.right-n,top:e.top+e.height/2-a};default:return{left:e.left+e.width/2-n,top:e.top-a}}}(this.el,this.parentEl,this.position);this.el.style.left=`${t}px`,this.el.style.top=`${s}px`};show=()=>{clearTimeout(this.showTimer),this.showTimer=setTimeout((()=>{this.visible=!0,this.updatePosition(),this.addScrollListeners()}),this.delay)};hide=()=>{clearTimeout(this.showTimer),this.visible&&(this.visible=!1,this.removeScrollListeners())};handleScroll=()=>{this.hide()};syncAriaDescribedBy(){if(!this.parentEl)return;const t=function(t){const s=t.host.id||t.fallbackId;t.host.id||(t.host.id=s);const i=t.trigger.getAttribute("aria-describedby"),e=i?i.split(/\s+/).filter(Boolean):[];return e.includes(s)?{tooltipId:s,added:!1}:(t.trigger.setAttribute("aria-describedby",[...e,s].join(" ")),{tooltipId:s,added:!0})}({host:this.el,trigger:this.parentEl,fallbackId:"q-tooltip-"+ ++r});this.tooltipId=t.tooltipId,this.describedByAdded=t.added}removeAriaDescribedBy(){!function(t){if(!t.trigger||!t.added||!t.tooltipId)return;const s=t.trigger.getAttribute("aria-describedby");if(!s)return;const i=s.split(/\s+/).filter((s=>s&&s!==t.tooltipId));i.length?t.trigger.setAttribute("aria-describedby",i.join(" ")):t.trigger.removeAttribute("aria-describedby")}({trigger:this.parentEl,tooltipId:this.tooltipId,added:this.describedByAdded}),this.describedByAdded=!1}addScrollListeners(){!function(t,s){window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",s);let i=t;for(;i;)i.addEventListener("scroll",s,{passive:!0}),i=i.parentElement}(this.parentEl,this.handleScroll)}removeScrollListeners(){!function(t,s){window.removeEventListener("scroll",s),window.removeEventListener("resize",s);let i=t;for(;i;)i.removeEventListener("scroll",s),i=i.parentElement}(this.parentEl,this.handleScroll)}render(){return e(o,{key:"944cd5ae0ac5dc8a2b0d44672c2b76343edf1d03",class:{"is-visible":this.visible},"aria-hidden":this.visible?"false":"true",role:"tooltip"},e("div",{key:"7ed1387a9d4e68666af3f6609d9db919d5f08aba",class:"tooltip-bubble"},this.content||e("slot",{key:"e2ff671abf82de5e32cc377dfc51829a096c3021"})))}static get style(){return':host{position:fixed;pointer-events:none;z-index:1000;opacity:0;display:block;transition:opacity 0.15s ease-out, transform 0.15s ease-out}:host(.is-visible){opacity:1}:host([position="top"]){transform:translate(-50%, -100%) translate(0, 4px)}:host([position="top"].is-visible){transform:translate(-50%, -100%) translate(0, -8px)}:host([position="bottom"]){transform:translate(-50%, 0) translate(0, -4px)}:host([position="bottom"].is-visible){transform:translate(-50%, 0) translate(0, 8px)}:host([position="left"]){transform:translate(-100%, -50%) translate(4px, 0)}:host([position="left"].is-visible){transform:translate(-100%, -50%) translate(-8px, 0)}:host([position="right"]){transform:translate(0, -50%) translate(-4px, 0)}:host([position="right"].is-visible){transform:translate(0, -50%) translate(8px, 0)}.tooltip-bubble{background:var(--q-bg-surface-3, #1e293b);color:var(--q-fg-base);border:1px solid var(--q-border-color, rgba(255, 255, 255, 0.08));padding:6px 10px;border-radius:var(--q-radius-sm, 4px);font-family:var(--q-font-family, system-ui, -apple-system, sans-serif);font-size:var(--q-font-size-sm);font-weight:500;white-space:nowrap;box-shadow:0 4px 12px rgba(0, 0, 0, 0.25);line-height:1.2}'}},[769,"q-tooltip",{content:[1],position:[513],delay:[2],visible:[32]}]);function a(){"undefined"!=typeof customElements&&["q-tooltip"].forEach((s=>{"q-tooltip"===s&&(customElements.get(t(s))||customElements.define(t(s),n))}))}a();export{n as Q,a as d}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
function t(t,i){return i.forEach((function(i){i&&"string"!=typeof i&&!Array.isArray(i)&&Object.keys(i).forEach((function(n){if("default"!==n&&!(n in t)){var s=Object.getOwnPropertyDescriptor(i,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return i[n]}})}}))})),Object.freeze(t)}function i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n,s={exports:{}},e=(n||(n=1,function(t){function i(t){var i,n,s,e;for(n=1,s=arguments.length;n<s;n++)for(i in e=arguments[n])t[i]=e[i];return t}var n=Object.create||function(){function t(){}return function(i){return t.prototype=i,new t}}();function s(t,i){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var s=n.call(arguments,2);return function(){return t.apply(i,s.length?s.concat(n.call(arguments)):arguments)}}var e=0;function h(t){return"_leaflet_id"in t||(t._leaflet_id=++e),t._leaflet_id}function o(t,i,n){var s,e,h,o;return o=function(){s=!1,e&&(h.apply(n,e),e=!1)},h=function(){s?e=arguments:(t.apply(n,arguments),setTimeout(o,i),s=!0)},h}function r(t,i,n){var s=i[1],e=i[0],h=s-e;return t===s&&n?t:((t-e)%h+h)%h+e}function a(){return!1}function u(t,i){if(!1===i)return t;var n=Math.pow(10,void 0===i?6:i);return Math.round(t*n)/n}function c(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function f(t){return c(t).split(/\s+/)}function l(t,i){for(var s in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?n(t.options):{}),i)t.options[s]=i[s];return t.options}function d(t,i,n){var s=[];for(var e in t)s.push(encodeURIComponent(n?e.toUpperCase():e)+"="+encodeURIComponent(t[e]));return(i&&-1!==i.indexOf("?")?"&":"?")+s.join("&")}var v=/\{ *([\w_ -]+) *\}/g;function m(t,i){return t.replace(v,(function(t,n){var s=i[n];if(void 0===s)throw new Error("No value provided for variable "+t);return"function"==typeof s&&(s=s(i)),s}))}var p=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function g(t,i){for(var n=0;n<t.length;n++)if(t[n]===i)return n;return-1}var w="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function _(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var y=0;function M(t){var i=+new Date,n=Math.max(0,16-(i-y));return y=i+n,window.setTimeout(t,n)}var b=window.requestAnimationFrame||_("RequestAnimationFrame")||M,P=window.cancelAnimationFrame||_("CancelAnimationFrame")||_("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function k(t,i,n){if(!n||b!==M)return b.call(window,s(t,i));t.call(i)}function T(t){t&&P.call(window,t)}var x={__proto__:null,extend:i,create:n,bind:s,get lastId(){return e},stamp:h,throttle:o,wrapNum:r,falseFn:a,formatNum:u,trim:c,splitWords:f,setOptions:l,getParamString:d,template:m,isArray:p,indexOf:g,emptyImageUrl:w,requestFn:b,cancelFn:P,requestAnimFrame:k,cancelAnimFrame:T};function z(){}z.extend=function(t){var s=function(){l(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},e=s.__super__=this.prototype,h=n(e);for(var o in h.constructor=s,s.prototype=h,this)Object.prototype.hasOwnProperty.call(this,o)&&"prototype"!==o&&"__super__"!==o&&(s[o]=this[o]);return t.statics&&i(s,t.statics),t.includes&&(function(t){if("undefined"!=typeof L&&L&&L.Mixin){t=p(t)?t:[t];for(var i=0;i<t.length;i++)t[i]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(t.includes),i.apply(null,[h].concat(t.includes))),i(h,t),delete h.statics,delete h.includes,h.options&&(h.options=e.options?n(e.options):{},i(h.options,t.options)),h._initHooks=[],h.callInitHooks=function(){if(!this._initHooksCalled){e.callInitHooks&&e.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,i=h._initHooks.length;t<i;t++)h._initHooks[t].call(this)}},s},z.include=function(t){var n=this.prototype.options;return i(this.prototype,t),t.options&&(this.prototype.options=n,this.mergeOptions(t.options)),this},z.mergeOptions=function(t){return i(this.prototype.options,t),this},z.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,i)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var S={on:function(t,i,n){if("object"==typeof t)for(var s in t)this._on(s,t[s],i);else for(var e=0,h=(t=f(t)).length;e<h;e++)this._on(t[e],i,n);return this},off:function(t,i,n){if(arguments.length)if("object"==typeof t)for(var s in t)this._off(s,t[s],i);else{t=f(t);for(var e=1===arguments.length,h=0,o=t.length;h<o;h++)e?this._off(t[h]):this._off(t[h],i,n)}else delete this._events;return this},_on:function(t,i,n,s){if("function"==typeof i){if(!1===this._listens(t,i,n)){n===this&&(n=void 0);var e={fn:i,ctx:n};s&&(e.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e)}}else console.warn("wrong listener type: "+typeof i)},_off:function(t,i,n){var s,e,h;if(this._events&&(s=this._events[t]))if(1!==arguments.length)if("function"==typeof i){var o=this._listens(t,i,n);!1!==o&&(this._firingCount&&(s[o].fn=a,this._events[t]=s=s.slice()),s.splice(o,1))}else console.warn("wrong listener type: "+typeof i);else{if(this._firingCount)for(e=0,h=s.length;e<h;e++)s[e].fn=a;delete this._events[t]}},fire:function(t,n,s){if(!this.listens(t,s))return this;var e=i({},n,{type:t,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var h=this._events[t];if(h){this._firingCount=this._firingCount+1||1;for(var o=0,r=h.length;o<r;o++){var a=h[o],u=a.fn;a.once&&this.off(t,u,a.ctx),u.call(a.ctx||this,e)}this._firingCount--}}return s&&this._propagateEvent(e),this},listens:function(t,i,n,s){"string"!=typeof t&&console.warn('"string" type argument expected');var e=i;"function"!=typeof i&&(s=!!i,e=void 0,n=void 0);var h=this._events&&this._events[t];if(h&&h.length&&!1!==this._listens(t,e,n))return!0;if(s)for(var o in this._eventParents)if(this._eventParents[o].listens(t,i,n,s))return!0;return!1},_listens:function(t,i,n){if(!this._events)return!1;var s=this._events[t]||[];if(!i)return!!s.length;n===this&&(n=void 0);for(var e=0,h=s.length;e<h;e++)if(s[e].fn===i&&s[e].ctx===n)return e;return!1},once:function(t,i,n){if("object"==typeof t)for(var s in t)this._on(s,t[s],i,!0);else for(var e=0,h=(t=f(t)).length;e<h;e++)this._on(t[e],i,n,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[h(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[h(t)],this},_propagateEvent:function(t){for(var n in this._eventParents)this._eventParents[n].fire(t.type,i({layer:t.target,propagatedFrom:t.target},t),!0)}};S.addEventListener=S.on,S.removeEventListener=S.clearAllEventListeners=S.off,S.addOneTimeEventListener=S.once,S.fireEvent=S.fire,S.hasEventListeners=S.listens;var E=z.extend(S);function A(t,i,n){this.x=n?Math.round(t):t,this.y=n?Math.round(i):i}var C=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function O(t,i,n){return t instanceof A?t:p(t)?new A(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new A(t.x,t.y):new A(t,i,n)}function I(t,i){if(t)for(var n=i?[t,i]:t,s=0,e=n.length;s<e;s++)this.extend(n[s])}function B(t,i){return!t||t instanceof I?t:new I(t,i)}function Z(t,i){if(t)for(var n=i?[t,i]:t,s=0,e=n.length;s<e;s++)this.extend(n[s])}function D(t,i){return t instanceof Z?t:new Z(t,i)}function R(t,i,n){if(isNaN(t)||isNaN(i))throw new Error("Invalid LatLng object: ("+t+", "+i+")");this.lat=+t,this.lng=+i,void 0!==n&&(this.alt=+n)}function N(t,i,n){return t instanceof R?t:p(t)&&"object"!=typeof t[0]?3===t.length?new R(t[0],t[1],t[2]):2===t.length?new R(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new R(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===i?null:new R(t,i,n)}A.prototype={clone:function(){return new A(this.x,this.y)},add:function(t){return this.clone()._add(O(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(O(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new A(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new A(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=C(this.x),this.y=C(this.y),this},distanceTo:function(t){var i=(t=O(t)).x-this.x,n=t.y-this.y;return Math.sqrt(i*i+n*n)},equals:function(t){return(t=O(t)).x===this.x&&t.y===this.y},contains:function(t){return t=O(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+u(this.x)+", "+u(this.y)+")"}},I.prototype={extend:function(t){var i,n;if(!t)return this;if(t instanceof A||"number"==typeof t[0]||"x"in t)i=n=O(t);else if(n=(t=B(t)).max,!(i=t.min)||!n)return this;return this.min||this.max?(this.min.x=Math.min(i.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(i.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=i.clone(),this.max=n.clone()),this},getCenter:function(t){return O((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return O(this.min.x,this.max.y)},getTopRight:function(){return O(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var i,n;return(t="number"==typeof t[0]||t instanceof A?O(t):B(t))instanceof I?(i=t.min,n=t.max):i=n=t,i.x>=this.min.x&&n.x<=this.max.x&&i.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=B(t);var i=this.min,n=this.max,s=t.min,e=t.max;return e.x>=i.x&&s.x<=n.x&&e.y>=i.y&&s.y<=n.y},overlaps:function(t){t=B(t);var i=this.min,n=this.max,s=t.min,e=t.max;return e.x>i.x&&s.x<n.x&&e.y>i.y&&s.y<n.y},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var i=this.min,n=this.max,s=Math.abs(i.x-n.x)*t,e=Math.abs(i.y-n.y)*t;return B(O(i.x-s,i.y-e),O(n.x+s,n.y+e))},equals:function(t){return!!t&&(t=B(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},Z.prototype={extend:function(t){var i,n,s=this._southWest,e=this._northEast;if(t instanceof R)i=t,n=t;else{if(!(t instanceof Z))return t?this.extend(N(t)||D(t)):this;if(n=t._northEast,!(i=t._southWest)||!n)return this}return s||e?(s.lat=Math.min(i.lat,s.lat),s.lng=Math.min(i.lng,s.lng),e.lat=Math.max(n.lat,e.lat),e.lng=Math.max(n.lng,e.lng)):(this._southWest=new R(i.lat,i.lng),this._northEast=new R(n.lat,n.lng)),this},pad:function(t){var i=this._southWest,n=this._northEast,s=Math.abs(i.lat-n.lat)*t,e=Math.abs(i.lng-n.lng)*t;return new Z(new R(i.lat-s,i.lng-e),new R(n.lat+s,n.lng+e))},getCenter:function(){return new R((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new R(this.getNorth(),this.getWest())},getSouthEast:function(){return new R(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof R||"lat"in t?N(t):D(t);var i,n,s=this._southWest,e=this._northEast;return t instanceof Z?(i=t.getSouthWest(),n=t.getNorthEast()):i=n=t,i.lat>=s.lat&&n.lat<=e.lat&&i.lng>=s.lng&&n.lng<=e.lng},intersects:function(t){t=D(t);var i=this._southWest,n=this._northEast,s=t.getSouthWest(),e=t.getNorthEast();return e.lat>=i.lat&&s.lat<=n.lat&&e.lng>=i.lng&&s.lng<=n.lng},overlaps:function(t){t=D(t);var i=this._southWest,n=this._northEast,s=t.getSouthWest(),e=t.getNorthEast();return e.lat>i.lat&&s.lat<n.lat&&e.lng>i.lng&&s.lng<n.lng},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){return!!t&&(t=D(t),this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i))},isValid:function(){return!(!this._southWest||!this._northEast)}},R.prototype={equals:function(t,i){return!!t&&(t=N(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===i?1e-9:i))},toString:function(t){return"LatLng("+u(this.lat,t)+", "+u(this.lng,t)+")"},distanceTo:function(t){return H.distance(this,N(t))},wrap:function(){return H.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,n=i/Math.cos(Math.PI/180*this.lat);return D([this.lat-i,this.lng-n],[this.lat+i,this.lng+n])},clone:function(){return new R(this.lat,this.lng,this.alt)}};var j,F={latLngToPoint:function(t,i){var n=this.projection.project(t),s=this.scale(i);return this.transformation._transform(n,s)},pointToLatLng:function(t,i){var n=this.scale(i),s=this.transformation.untransform(t,n);return this.projection.unproject(s)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var i=this.projection.bounds,n=this.scale(t);return new I(this.transformation.transform(i.min,n),this.transformation.transform(i.max,n))},infinite:!1,wrapLatLng:function(t){var i=this.wrapLng?r(t.lng,this.wrapLng,!0):t.lng;return new R(this.wrapLat?r(t.lat,this.wrapLat,!0):t.lat,i,t.alt)},wrapLatLngBounds:function(t){var i=t.getCenter(),n=this.wrapLatLng(i),s=i.lat-n.lat,e=i.lng-n.lng;if(0===s&&0===e)return t;var h=t.getSouthWest(),o=t.getNorthEast();return new Z(new R(h.lat-s,h.lng-e),new R(o.lat-s,o.lng-e))}},H=i({},F,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var n=Math.PI/180,s=t.lat*n,e=i.lat*n,h=Math.sin((i.lat-t.lat)*n/2),o=Math.sin((i.lng-t.lng)*n/2),r=h*h+Math.cos(s)*Math.cos(e)*o*o,a=2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r));return this.R*a}}),U=6378137,W={R:U,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,n=this.MAX_LATITUDE,s=Math.max(Math.min(n,t.lat),-n),e=Math.sin(s*i);return new A(this.R*t.lng*i,this.R*Math.log((1+e)/(1-e))/2)},unproject:function(t){var i=180/Math.PI;return new R((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:(j=U*Math.PI,new I([-j,-j],[j,j]))};function G(t,i,n,s){if(p(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=i,this._c=n,this._d=s}function V(t,i,n,s){return new G(t,i,n,s)}G.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){return t.x=(i=i||1)*(this._a*t.x+this._b),t.y=i*(this._c*t.y+this._d),t},untransform:function(t,i){return new A((t.x/(i=i||1)-this._b)/this._a,(t.y/i-this._d)/this._c)}};var q=i({},H,{code:"EPSG:3857",projection:W,transformation:function(){var t=.5/(Math.PI*W.R);return V(t,.5,-t,.5)}()}),J=i({},q,{code:"EPSG:900913"});function K(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function X(t,i){var n,s,e,h,o,r,a="";for(n=0,e=t.length;n<e;n++){for(s=0,h=(o=t[n]).length;s<h;s++)a+=(s?"L":"M")+(r=o[s]).x+" "+r.y;a+=i?It.svg?"z":"x":""}return a||"M0 0"}var $,Q=document.documentElement.style,Y="ActiveXObject"in window,tt=Y&&!document.addEventListener,it="msLaunchUri"in navigator&&!("documentMode"in document),nt=Ot("webkit"),st=Ot("android"),et=Ot("android 2")||Ot("android 3"),ht=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ot=st&&Ot("Google")&&ht<537&&!("AudioNode"in window),rt=!!window.opera,at=!it&&Ot("chrome"),ut=Ot("gecko")&&!nt&&!rt&&!Y,ct=!at&&Ot("safari"),ft=Ot("phantom"),lt="OTransition"in Q,dt=0===navigator.platform.indexOf("Win"),vt=Y&&"transition"in Q,mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!et,pt="MozPerspective"in Q,gt=!window.L_DISABLE_3D&&(vt||mt||pt)&&!lt&&!ft,wt="undefined"!=typeof orientation||Ot("mobile"),_t=wt&&nt,yt=wt&&mt,Mt=!window.PointerEvent&&window.MSPointerEvent,bt=!(!window.PointerEvent&&!Mt),Pt="ontouchstart"in window||!!window.TouchEvent,kt=!window.L_NO_TOUCH&&(Pt||bt),Tt=wt&&rt,Lt=wt&&ut,xt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,zt=function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",a,i),window.removeEventListener("testPassiveEventSupport",a,i)}catch(t){}return t}(),St=!!document.createElement("canvas").getContext,Et=!(!document.createElementNS||!K("svg").createSVGRect),At=!!Et&&(($=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===($.firstChild&&$.firstChild.namespaceURI)),Ct=!Et&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&"object"==typeof i.adj}catch(t){return!1}}();function Ot(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var It={ie:Y,ielt9:tt,edge:it,webkit:nt,android:st,android23:et,androidStock:ot,opera:rt,chrome:at,gecko:ut,safari:ct,phantom:ft,opera12:lt,win:dt,ie3d:vt,webkit3d:mt,gecko3d:pt,any3d:gt,mobile:wt,mobileWebkit:_t,mobileWebkit3d:yt,msPointer:Mt,pointer:bt,touch:kt,touchNative:Pt,mobileOpera:Tt,mobileGecko:Lt,retina:xt,passiveEvents:zt,canvas:St,svg:Et,vml:Ct,inlineSvg:At,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Bt=It.msPointer?"MSPointerDown":"pointerdown",Zt=It.msPointer?"MSPointerMove":"pointermove",Dt=It.msPointer?"MSPointerUp":"pointerup",Rt=It.msPointer?"MSPointerCancel":"pointercancel",Nt={touchstart:Bt,touchmove:Zt,touchend:Dt,touchcancel:Rt},jt={touchstart:function(t,i){i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH&&Di(i),qt(t,i)},touchmove:qt,touchend:qt,touchcancel:qt},Ft={},Ht=!1;function Ut(t,i,n){return"touchstart"===i&&(Ht||(document.addEventListener(Bt,Wt,!0),document.addEventListener(Zt,Gt,!0),document.addEventListener(Dt,Vt,!0),document.addEventListener(Rt,Vt,!0),Ht=!0)),jt[i]?(n=jt[i].bind(this,n),t.addEventListener(Nt[i],n,!1),n):(console.warn("wrong event specified:",i),a)}function Wt(t){Ft[t.pointerId]=t}function Gt(t){Ft[t.pointerId]&&(Ft[t.pointerId]=t)}function Vt(t){delete Ft[t.pointerId]}function qt(t,i){if(i.pointerType!==(i.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in i.touches=[],Ft)i.touches.push(Ft[n]);i.changedTouches=[i],t(i)}}var Jt,Kt,Xt,$t,Qt,Yt=mi(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ti=mi(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ii="webkitTransition"===ti||"OTransition"===ti?ti+"End":"transitionend";function ni(t){return"string"==typeof t?document.getElementById(t):t}function si(t,i){var n=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!n||"auto"===n)&&document.defaultView){var s=document.defaultView.getComputedStyle(t,null);n=s?s[i]:null}return"auto"===n?null:n}function ei(t,i,n){var s=document.createElement(t);return s.className=i||"",n&&n.appendChild(s),s}function hi(t){var i=t.parentNode;i&&i.removeChild(t)}function oi(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ri(t){var i=t.parentNode;i&&i.lastChild!==t&&i.appendChild(t)}function ai(t){var i=t.parentNode;i&&i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function ui(t,i){if(void 0!==t.classList)return t.classList.contains(i);var n=di(t);return n.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(n)}function ci(t,i){if(void 0!==t.classList)for(var n=f(i),s=0,e=n.length;s<e;s++)t.classList.add(n[s]);else if(!ui(t,i)){var h=di(t);li(t,(h?h+" ":"")+i)}}function fi(t,i){void 0!==t.classList?t.classList.remove(i):li(t,c((" "+di(t)+" ").replace(" "+i+" "," ")))}function li(t,i){void 0===t.className.baseVal?t.className=i:t.className.baseVal=i}function di(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function vi(t,i){"opacity"in t.style?t.style.opacity=i:"filter"in t.style&&function(t,i){var n=!1,s="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(s)}catch(t){if(1===i)return}i=Math.round(100*i),n?(n.Enabled=100!==i,n.Opacity=i):t.style.filter+=" progid:"+s+"(opacity="+i+")"}(t,i)}function mi(t){for(var i=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in i)return t[n];return!1}function pi(t,i,n){var s=i||new A(0,0);t.style[Yt]=(It.ie3d?"translate("+s.x+"px,"+s.y+"px)":"translate3d("+s.x+"px,"+s.y+"px,0)")+(n?" scale("+n+")":"")}function gi(t,i){t._leaflet_pos=i,It.any3d?pi(t,i):(t.style.left=i.x+"px",t.style.top=i.y+"px")}function wi(t){return t._leaflet_pos||new A(0,0)}if("onselectstart"in document)Jt=function(){xi(window,"selectstart",Di)},Kt=function(){Si(window,"selectstart",Di)};else{var _i=mi(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Jt=function(){if(_i){var t=document.documentElement.style;Xt=t[_i],t[_i]="none"}},Kt=function(){_i&&(document.documentElement.style[_i]=Xt,Xt=void 0)}}function yi(){xi(window,"dragstart",Di)}function Mi(){Si(window,"dragstart",Di)}function bi(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Pi(),$t=t,Qt=t.style.outlineStyle,t.style.outlineStyle="none",xi(window,"keydown",Pi))}function Pi(){$t&&($t.style.outlineStyle=Qt,$t=void 0,Qt=void 0,Si(window,"keydown",Pi))}function ki(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function Ti(t){var i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}var Li={__proto__:null,TRANSFORM:Yt,TRANSITION:ti,TRANSITION_END:ii,get:ni,getStyle:si,create:ei,remove:hi,empty:oi,toFront:ri,toBack:ai,hasClass:ui,addClass:ci,removeClass:fi,setClass:li,getClass:di,setOpacity:vi,testProp:mi,setTransform:pi,setPosition:gi,getPosition:wi,get disableTextSelection(){return Jt},get enableTextSelection(){return Kt},disableImageDrag:yi,enableImageDrag:Mi,preventOutline:bi,restoreOutline:Pi,getSizedParentNode:ki,getScale:Ti};function xi(t,i,n,s){if(i&&"object"==typeof i)for(var e in i)Ci(t,e,i[e],n);else for(var h=0,o=(i=f(i)).length;h<o;h++)Ci(t,i[h],n,s);return this}var zi="_leaflet_events";function Si(t,i,n,s){if(1===arguments.length)Ei(t),delete t[zi];else if(i&&"object"==typeof i)for(var e in i)Oi(t,e,i[e],n);else if(i=f(i),2===arguments.length)Ei(t,(function(t){return-1!==g(i,t)}));else for(var h=0,o=i.length;h<o;h++)Oi(t,i[h],n,s);return this}function Ei(t,i){for(var n in t[zi]){var s=n.split(/\d/)[0];i&&!i(s)||Oi(t,s,null,null,n)}}var Ai={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ci(t,i,n,s){var e=i+h(n)+(s?"_"+h(s):"");if(t[zi]&&t[zi][e])return this;var o=function(i){return n.call(s||t,i||window.event)},r=o;!It.touchNative&&It.pointer&&0===i.indexOf("touch")?o=Ut(t,i,o):It.touch&&"dblclick"===i?o=function(t,i){t.addEventListener("dblclick",i);var n,s=0;function e(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var e=Ni(t);if(!e.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||e.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var h=Date.now();h-s<=200?2==++n&&i(function(t){var i,n,s={};for(n in t)s[n]=(i=t[n])&&i.bind?i.bind(t):i;return t=s,s.type="dblclick",s.detail=2,s.isTrusted=!1,s._simulated=!0,s}(t)):n=1,s=h}}}else n=t.detail}return t.addEventListener("click",e),{dblclick:i,simDblclick:e}}(t,o):"addEventListener"in t?"touchstart"===i||"touchmove"===i||"wheel"===i||"mousewheel"===i?t.addEventListener(Ai[i]||i,o,!!It.passiveEvents&&{passive:!1}):"mouseenter"===i||"mouseleave"===i?t.addEventListener(Ai[i],o=function(i){i=i||window.event,Ui(t,i)&&r(i)},!1):t.addEventListener(i,r,!1):t.attachEvent("on"+i,o),t[zi]=t[zi]||{},t[zi][e]=o}function Oi(t,i,n,s,e){e=e||i+h(n)+(s?"_"+h(s):"");var o=t[zi]&&t[zi][e];if(!o)return this;!It.touchNative&&It.pointer&&0===i.indexOf("touch")?function(t,i,n){Nt[i]?t.removeEventListener(Nt[i],n,!1):console.warn("wrong event specified:",i)}(t,i,o):It.touch&&"dblclick"===i?function(t,i){t.removeEventListener("dblclick",i.dblclick),t.removeEventListener("click",i.simDblclick)}(t,o):"removeEventListener"in t?t.removeEventListener(Ai[i]||i,o,!1):t.detachEvent("on"+i,o),t[zi][e]=null}function Ii(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Bi(t){return Ci(t,"wheel",Ii),this}function Zi(t){return xi(t,"mousedown touchstart dblclick contextmenu",Ii),t._leaflet_disable_click=!0,this}function Di(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ri(t){return Di(t),Ii(t),this}function Ni(t){if(t.composedPath)return t.composedPath();for(var i=[],n=t.target;n;)i.push(n),n=n.parentNode;return i}function ji(t,i){if(!i)return new A(t.clientX,t.clientY);var n=Ti(i),s=n.boundingClientRect;return new A((t.clientX-s.left)/n.x-i.clientLeft,(t.clientY-s.top)/n.y-i.clientTop)}var Fi=It.linux&&It.chrome?window.devicePixelRatio:It.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Hi(t){return It.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Fi:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function Ui(t,i){var n=i.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var Wi={__proto__:null,on:xi,off:Si,stopPropagation:Ii,disableScrollPropagation:Bi,disableClickPropagation:Zi,preventDefault:Di,stop:Ri,getPropagationPath:Ni,getMousePosition:ji,getWheelDelta:Hi,isExternalTarget:Ui,addListener:xi,removeListener:Si},Gi=E.extend({run:function(t,i,n,s){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(s||.5,.2),this._startPos=wi(t),this._offset=i.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=k(this._animate,this),this._step()},_step:function(t){var i=+new Date-this._startTime,n=1e3*this._duration;i<n?this._runFrame(this._easeOut(i/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,i){var n=this._startPos.add(this._offset.multiplyBy(t));i&&n._round(),gi(this._el,n),this.fire("step")},_complete:function(){T(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Vi=E.extend({options:{crs:q,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,i){i=l(this,i),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),i.maxBounds&&this.setMaxBounds(i.maxBounds),void 0!==i.zoom&&(this._zoom=this._limitZoom(i.zoom)),i.center&&void 0!==i.zoom&&this.setView(N(i.center),i.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ti&&It.any3d&&!It.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),xi(this._proxy,ii,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,n,s){return n=void 0===n?this._zoom:this._limitZoom(n),t=this._limitCenter(N(t),n,this.options.maxBounds),s=s||{},this._stop(),this._loaded&&!s.reset&&!0!==s&&(void 0!==s.animate&&(s.zoom=i({animate:s.animate},s.zoom),s.pan=i({animate:s.animate,duration:s.duration},s.pan)),this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,n,s.zoom):this._tryAnimatedPan(t,s.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,n,s.pan&&s.pan.noMoveStart),this)},setZoom:function(t,i){return this._loaded?this.setView(this.getCenter(),t,{zoom:i}):(this._zoom=t,this)},zoomIn:function(t,i){return this.setZoom(this._zoom+(t=t||(It.any3d?this.options.zoomDelta:1)),i)},zoomOut:function(t,i){return this.setZoom(this._zoom-(t=t||(It.any3d?this.options.zoomDelta:1)),i)},setZoomAround:function(t,i,n){var s=this.getZoomScale(i),e=this.getSize().divideBy(2),h=(t instanceof A?t:this.latLngToContainerPoint(t)).subtract(e).multiplyBy(1-1/s),o=this.containerPointToLatLng(e.add(h));return this.setView(o,i,{zoom:n})},_getBoundsCenterZoom:function(t,i){i=i||{},t=t.getBounds?t.getBounds():D(t);var n=O(i.paddingTopLeft||i.padding||[0,0]),s=O(i.paddingBottomRight||i.padding||[0,0]),e=this.getBoundsZoom(t,!1,n.add(s));if((e="number"==typeof i.maxZoom?Math.min(i.maxZoom,e):e)===1/0)return{center:t.getCenter(),zoom:e};var h=s.subtract(n).divideBy(2),o=this.project(t.getSouthWest(),e),r=this.project(t.getNorthEast(),e);return{center:this.unproject(o.add(r).divideBy(2).add(h),e),zoom:e}},fitBounds:function(t,i){if(!(t=D(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,i);return this.setView(n.center,n.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){if(i=i||{},!(t=O(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==i.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Gi,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),i.noMoveStart||this.fire("movestart"),!1!==i.animate){ci(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,i.duration||.25,i.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,i,n){if(!1===(n=n||{}).animate||!It.any3d)return this.setView(t,i,n);this._stop();var s=this.project(this.getCenter()),e=this.project(t),h=this.getSize(),o=this._zoom;t=N(t),i=void 0===i?o:i;var r=Math.max(h.x,h.y),a=r*this.getZoomScale(o,i),u=e.distanceTo(s)||1,c=1.42,f=2.0164;function l(t){var i=(a*a-r*r+(t?-1:1)*f*f*u*u)/(2*(t?a:r)*f*u),n=Math.sqrt(i*i+1)-i;return n<1e-9?-18:Math.log(n)}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function v(t){return(Math.exp(t)+Math.exp(-t))/2}var m=l(0);function p(t){return r*(v(m)*(d(i=m+c*t)/v(i))-d(m))/f;var i}var g=Date.now(),w=(l(1)-m)/c,_=n.duration?1e3*n.duration:1e3*w*.8;return this._moveStart(!0,n.noMoveStart),function n(){var h=(Date.now()-g)/_,a=function(t){return 1-Math.pow(1-t,1.5)}(h)*w;h<=1?(this._flyToFrame=k(n,this),this._move(this.unproject(s.add(e.subtract(s).multiplyBy(p(a)/u)),o),this.getScaleZoom(r/function(t){return r*(v(m)/v(m+c*t))}(a),o),{flyTo:!0})):this._move(t,i)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,i){var n=this._getBoundsCenterZoom(t,i);return this.flyTo(n.center,n.zoom,i)},setMaxBounds:function(t){return t=D(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var i=this.options.minZoom;return this.options.minZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var i=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var n=this.getCenter(),s=this._limitCenter(n,this._zoom,D(t));return n.equals(s)||this.panTo(s,i),this._enforcingBounds=!1,this},panInside:function(t,i){var n=O((i=i||{}).paddingTopLeft||i.padding||[0,0]),s=O(i.paddingBottomRight||i.padding||[0,0]),e=this.project(this.getCenter()),h=this.project(t),o=this.getPixelBounds(),r=B([o.min.add(n),o.max.subtract(s)]),a=r.getSize();if(!r.contains(h)){this._enforcingBounds=!0;var u=h.subtract(r.getCenter()),c=r.extend(h).getSize().subtract(a);e.x+=u.x<0?-c.x:c.x,e.y+=u.y<0?-c.y:c.y,this.panTo(this.unproject(e),i),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var e=this.getSize(),h=n.divideBy(2).round(),o=e.divideBy(2).round(),r=h.subtract(o);return r.x||r.y?(t.animate&&t.pan?this.panBy(r):(t.pan&&this._rawPanBy(r),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:e})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=s(this._handleGeolocationResponse,this),e=s(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,e,t):navigator.geolocation.getCurrentPosition(n,e,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var i=t.code,n=t.message||(1===i?"permission denied":2===i?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var i=new R(t.coords.latitude,t.coords.longitude),n=i.toBounds(2*t.coords.accuracy),s=this._locateOptions;if(s.setView){var e=this.getBoundsZoom(n);this.setView(i,s.maxZoom?Math.min(e,s.maxZoom):e)}var h={latlng:i,bounds:n,timestamp:t.timestamp};for(var o in t.coords)"number"==typeof t.coords[o]&&(h[o]=t.coords[o]);this.fire("locationfound",h)}},addHandler:function(t,i){if(!i)return this;var n=this[t]=new i(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),hi(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(T(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)hi(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){var n=ei("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),i||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new Z(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,n){t=D(t),n=O(n||[0,0]);var s=this.getZoom()||0,e=this.getMinZoom(),h=this.getMaxZoom(),o=t.getNorthWest(),r=t.getSouthEast(),a=this.getSize().subtract(n),u=B(this.project(r,s),this.project(o,s)).getSize(),c=It.any3d?this.options.zoomSnap:1,f=a.x/u.x,l=a.y/u.y,d=i?Math.max(f,l):Math.min(f,l);return s=this.getScaleZoom(d,s),c&&(s=Math.round(s/(c/100))*(c/100),s=i?Math.ceil(s/c)*c:Math.floor(s/c)*c),Math.max(e,Math.min(h,s))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new A(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){var n=this._getTopLeftPoint(t,i);return new I(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var n=this.options.crs;return i=void 0===i?this._zoom:i,n.scale(t)/n.scale(i)},getScaleZoom:function(t,i){var n=this.options.crs,s=n.zoom(t*n.scale(i=void 0===i?this._zoom:i));return isNaN(s)?1/0:s},project:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.latLngToPoint(N(t),i)},unproject:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.pointToLatLng(O(t),i)},layerPointToLatLng:function(t){var i=O(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){return this.project(N(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(N(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(D(t))},distance:function(t,i){return this.options.crs.distance(N(t),N(i))},containerPointToLayerPoint:function(t){return O(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return O(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(O(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(N(t)))},mouseEventToContainerPoint:function(t){return ji(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var i=this._container=ni(t);if(!i)throw new Error("Map container not found.");if(i._leaflet_id)throw new Error("Map container is already initialized.");xi(i,"scroll",this._onScroll,this),this._containerId=h(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&It.any3d,ci(t,"leaflet-container"+(It.touch?" leaflet-touch":"")+(It.retina?" leaflet-retina":"")+(It.ielt9?" leaflet-oldie":"")+(It.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=si(t,"position");"absolute"!==i&&"relative"!==i&&"fixed"!==i&&"sticky"!==i&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),gi(this._mapPane,new A(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ci(t.markerPane,"leaflet-zoom-hide"),ci(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i,n){gi(this._mapPane,new A(0,0));var s=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var e=this._zoom!==i;this._moveStart(e,n)._move(t,i)._moveEnd(e),this.fire("viewreset"),s&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,n,s){void 0===i&&(i=this._zoom);var e=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),s?n&&n.pinch&&this.fire("zoom",n):((e||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return T(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){gi(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[h(this._container)]=this;var i=t?Si:xi;i(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),It.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){T(this._resizeRequest),this._resizeRequest=k((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,i){for(var n,s=[],e="mouseout"===i||"mouseover"===i,o=t.target||t.srcElement,r=!1;o;){if((n=this._targets[h(o)])&&("click"===i||"preclick"===i)&&this._draggableMoved(n)){r=!0;break}if(n&&n.listens(i,!0)){if(e&&!Ui(o,t))break;if(s.push(n),e)break}if(o===this._container)break;o=o.parentNode}return s.length||r||e||!this.listens(i,!0)||(s=[this]),s},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var i=t.target||t.srcElement;if(!(!this._loaded||i._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(i))){var n=t.type;"mousedown"===n&&bi(i),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,n,s){if("click"===t.type){var e=i({},t);e.type="preclick",this._fireDOMEvent(e,e.type,s)}var h=this._findEventTargets(t,n);if(s){for(var o=[],r=0;r<s.length;r++)s[r].listens(n,!0)&&o.push(s[r]);h=o.concat(h)}if(h.length){"contextmenu"===n&&Di(t);var a=h[0],u={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var c=a.getLatLng&&(!a._radius||a._radius<=10);u.containerPoint=c?this.latLngToContainerPoint(a.getLatLng()):this.mouseEventToContainerPoint(t),u.layerPoint=this.containerPointToLayerPoint(u.containerPoint),u.latlng=c?a.getLatLng():this.layerPointToLatLng(u.layerPoint)}for(r=0;r<h.length;r++)if(h[r].fire(n,u,!0),u.originalEvent._stopped||!1===h[r].options.bubblingMouseEvents&&-1!==g(this._mouseEvents,n))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,i=this._handlers.length;t<i;t++)this._handlers[t].disable()},whenReady:function(t,i){return this._loaded?t.call(i||this,{target:this}):this.on("load",t,i),this},_getMapPanePos:function(){return wi(this._mapPane)||new A(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){return(t&&void 0!==i?this._getNewPixelOrigin(t,i):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var n=this.getSize()._divideBy(2);return this.project(t,i)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,n){var s=this._getNewPixelOrigin(n,i);return this.project(t,i)._subtract(s)},_latLngBoundsToNewLayerBounds:function(t,i,n){var s=this._getNewPixelOrigin(n,i);return B([this.project(t.getSouthWest(),i)._subtract(s),this.project(t.getNorthWest(),i)._subtract(s),this.project(t.getSouthEast(),i)._subtract(s),this.project(t.getNorthEast(),i)._subtract(s)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,n){if(!n)return t;var s=this.project(t,i),e=this.getSize().divideBy(2),h=new I(s.subtract(e),s.add(e)),o=this._getBoundsOffset(h,n,i);return Math.abs(o.x)<=1&&Math.abs(o.y)<=1?t:this.unproject(s.add(o),i)},_limitOffset:function(t,i){if(!i)return t;var n=this.getPixelBounds(),s=new I(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(s,i))},_getBoundsOffset:function(t,i,n){var s=B(this.project(i.getNorthEast(),n),this.project(i.getSouthWest(),n)),e=s.min.subtract(t.min),h=s.max.subtract(t.max);return new A(this._rebound(e.x,-h.x),this._rebound(e.y,-h.y))},_rebound:function(t,i){return t+i>0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),n=this.getMaxZoom(),s=It.any3d?this.options.zoomSnap:1;return s&&(t=Math.round(t/s)*s),Math.max(i,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){fi(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){var n=this._getCenterOffset(t)._trunc();return!(!0!==(i&&i.animate)&&!this.getSize().contains(n)||(this.panBy(n,i),0))},_createAnimProxy:function(){var t=this._proxy=ei("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var i=Yt,n=this._proxy.style[i];pi(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){hi(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),i=this.getZoom();pi(this._proxy,this.project(t,i),this.getZoomScale(i,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var s=this.getZoomScale(i),e=this._getCenterOffset(t)._divideBy(1-1/s);return!(!0!==n.animate&&!this.getSize().contains(e)||(k((function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,i,!0)}),this),0))},_animateZoom:function(t,i,n,e){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,ci(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:e}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&fi(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});var qi=z.extend({options:{position:"topright"},initialize:function(t){l(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),n=this.getPosition(),s=t._controlCorners[n];return ci(i,"leaflet-control"),-1!==n.indexOf("bottom")?s.insertBefore(i,s.firstChild):s.appendChild(i),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(hi(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Ji=function(t){return new qi(t)};Vi.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},i="leaflet-",n=this._controlContainer=ei("div",i+"control-container",this._container);function s(s,e){t[s+e]=ei("div",i+s+" "+i+e,n)}s("top","left"),s("top","right"),s("bottom","left"),s("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)hi(this._controlCorners[t]);hi(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ki=qi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,n,s){return n<s?-1:s<n?1:0}},initialize:function(t,i,n){for(var s in l(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[s],s);for(s in i)this._addLayer(i[s],s,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return qi.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,i){return this._addLayer(t,i),this._map?this._update():this},addOverlay:function(t,i){return this._addLayer(t,i,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var i=this._getLayer(h(t));return i&&this._layers.splice(this._layers.indexOf(i),1),this._map?this._update():this},expand:function(){ci(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(ci(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):fi(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return fi(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=ei("div",t),n=this.options.collapsed;i.setAttribute("aria-haspopup",!0),Zi(i),Bi(i);var s=this._section=ei("section",t+"-list");n&&(this._map.on("click",this.collapse,this),xi(i,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var e=this._layersLink=ei("a",t+"-toggle",i);e.href="#",e.title="Layers",e.setAttribute("role","button"),xi(e,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){Di(t),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=ei("div",t+"-base",s),this._separator=ei("div",t+"-separator",s),this._overlaysList=ei("div",t+"-overlays",s),i.appendChild(s)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++)if(this._layers[i]&&h(this._layers[i].layer)===t)return this._layers[i]},_addLayer:function(t,i,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:i,overlay:n}),this.options.sortLayers&&this._layers.sort(s((function(t,i){return this.options.sortFunction(t.layer,i.layer,t.name,i.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;oi(this._baseLayersList),oi(this._overlaysList),this._layerControlInputs=[];var t,i,n,s,e=0;for(n=0;n<this._layers.length;n++)this._addItem(s=this._layers[n]),i=i||s.overlay,t=t||!s.overlay,e+=s.overlay?0:1;return this.options.hideSingleBase&&(this._baseLayersList.style.display=(t=t&&e>1)?"":"none"),this._separator.style.display=i&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(h(t.target)),n=i.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,i)},_createRadioElement:function(t,i){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>",s=document.createElement("div");return s.innerHTML=n,s.firstChild},_addItem:function(t){var i,n=document.createElement("label"),s=this._map.hasLayer(t.layer);t.overlay?((i=document.createElement("input")).type="checkbox",i.className="leaflet-control-layers-selector",i.defaultChecked=s):i=this._createRadioElement("leaflet-base-layers_"+h(this),s),this._layerControlInputs.push(i),i.layerId=h(t.layer),xi(i,"click",this._onInputClick,this);var e=document.createElement("span");e.innerHTML=" "+t.name;var o=document.createElement("span");return n.appendChild(o),o.appendChild(i),o.appendChild(e),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var t,i,n=this._layerControlInputs,s=[],e=[];this._handlingClick=!0;for(var h=n.length-1;h>=0;h--)i=this._getLayer((t=n[h]).layerId).layer,t.checked?s.push(i):t.checked||e.push(i);for(h=0;h<e.length;h++)this._map.hasLayer(e[h])&&this._map.removeLayer(e[h]);for(h=0;h<s.length;h++)this._map.hasLayer(s[h])||this._map.addLayer(s[h]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,i,n=this._layerControlInputs,s=this._map.getZoom(),e=n.length-1;e>=0;e--)i=this._getLayer((t=n[e]).layerId).layer,t.disabled=void 0!==i.options.minZoom&&s<i.options.minZoom||void 0!==i.options.maxZoom&&s>i.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,xi(t,"click",Di),this.expand();var i=this;setTimeout((function(){Si(t,"click",Di),i._preventClick=!1}))}}),Xi=qi.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",n=ei("div",i+" leaflet-bar"),s=this.options;return this._zoomInButton=this._createButton(s.zoomInText,s.zoomInTitle,i+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(s.zoomOutText,s.zoomOutTitle,i+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,n,s,e){var h=ei("a",n,s);return h.innerHTML=t,h.href="#",h.title=i,h.setAttribute("role","button"),h.setAttribute("aria-label",i),Zi(h),xi(h,"click",Ri),xi(h,"click",e,this),xi(h,"click",this._refocusOnMap,this),h},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";fi(this._zoomInButton,i),fi(this._zoomOutButton,i),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(ci(this._zoomOutButton,i),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(ci(this._zoomInButton,i),this._zoomInButton.setAttribute("aria-disabled","true"))}});Vi.mergeOptions({zoomControl:!0}),Vi.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Xi,this.addControl(this.zoomControl))}));var $i=qi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",n=ei("div",i),s=this.options;return this._addScales(s,i+"-line",n),t.on(s.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,n){t.metric&&(this._mScale=ei("div",i,n)),t.imperial&&(this._iScale=ei("div",i,n))},_update:function(){var t=this._map,i=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t);this._updateScale(this._mScale,i<1e3?i+" m":i/1e3+" km",i/t)},_updateImperial:function(t){var i,n,s,e=3.2808399*t;e>5280?(n=this._getRoundNum(i=e/5280),this._updateScale(this._iScale,n+" mi",n/i)):(s=this._getRoundNum(e),this._updateScale(this._iScale,s+" ft",s/e))},_updateScale:function(t,i,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),n=t/i;return i*(n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),Qi=qi.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(It.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(t){l(this,t),this._attributions={}},onAdd:function(t){for(var i in t.attributionControl=this,this._container=ei("div","leaflet-control-attribution"),Zi(this._container),t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var i in this._attributions)this._attributions[i]&&t.push(i);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});Vi.mergeOptions({attributionControl:!0}),Vi.addInitHook((function(){this.options.attributionControl&&(new Qi).addTo(this)}));qi.Layers=Ki,qi.Zoom=Xi,qi.Scale=$i,qi.Attribution=Qi,Ji.layers=function(t,i,n){return new Ki(t,i,n)},Ji.zoom=function(t){return new Xi(t)},Ji.scale=function(t){return new $i(t)},Ji.attribution=function(t){return new Qi(t)};var Yi=z.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Yi.addTo=function(t,i){return t.addHandler(i,this),this};var tn={Events:S},nn=It.touch?"touchstart mousedown":"mousedown",sn=E.extend({options:{clickTolerance:3},initialize:function(t,i,n,s){l(this,s),this._element=t,this._dragStartTarget=i||t,this._preventOutline=n},enable:function(){this._enabled||(xi(this._dragStartTarget,nn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(sn._dragging===this&&this.finishDrag(!0),Si(this._dragStartTarget,nn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!ui(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)sn._dragging===this&&this.finishDrag();else if(!(sn._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(sn._dragging=this,this._preventOutline&&bi(this._element),yi(),Jt(),this._moving))){this.fire("down");var i=t.touches?t.touches[0]:t,n=ki(this._element);this._startPoint=new A(i.clientX,i.clientY),this._startPos=wi(this._element),this._parentScale=Ti(n);var s="mousedown"===t.type;xi(document,s?"mousemove":"touchmove",this._onMove,this),xi(document,s?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var i=t.touches&&1===t.touches.length?t.touches[0]:t,n=new A(i.clientX,i.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Di(t),this._moved||(this.fire("dragstart"),this._moved=!0,ci(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ci(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),gi(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){fi(document.body,"leaflet-dragging"),this._lastTarget&&(fi(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Si(document,"mousemove touchmove",this._onMove,this),Si(document,"mouseup touchend touchcancel",this._onUp,this),Mi(),Kt();var i=this._moved&&this._moving;this._moving=!1,sn._dragging=!1,i&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function en(t,i,n){var s,e,h,o,r,a,u,c,f,l=[1,4,2,8];for(e=0,u=t.length;e<u;e++)t[e]._code=vn(t[e],i);for(o=0;o<4;o++){for(c=l[o],s=[],e=0,h=(u=t.length)-1;e<u;h=e++)a=t[h],(r=t[e])._code&c?a._code&c||((f=dn(a,r,c,i,n))._code=vn(f,i),s.push(f)):(a._code&c&&((f=dn(a,r,c,i,n))._code=vn(f,i),s.push(f)),s.push(r));t=s}return t}function hn(t,i){var n,s,e,h,o,r,a,u;if(!t||0===t.length)throw new Error("latlngs not passed");gn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var c=N([0,0]),f=D(t);f.getNorthWest().distanceTo(f.getSouthWest())*f.getNorthEast().distanceTo(f.getNorthWest())<1700&&(c=on(t));var l=t.length,d=[];for(n=0;n<l;n++){var v=N(t[n]);d.push(i.project(N([v.lat-c.lat,v.lng-c.lng])))}for(r=a=u=0,n=0,s=l-1;n<l;s=n++)a+=((e=d[n]).x+(h=d[s]).x)*(o=e.y*h.x-h.y*e.x),u+=(e.y+h.y)*o,r+=3*o;var m=i.unproject(O(0===r?d[0]:[a/r,u/r]));return N([m.lat+c.lat,m.lng+c.lng])}function on(t){for(var i=0,n=0,s=0,e=0;e<t.length;e++){var h=N(t[e]);i+=h.lat,n+=h.lng,s++}return N([i/s,n/s])}var rn,an={__proto__:null,clipPolygon:en,polygonCenter:hn,centroid:on};function un(t,i){if(!i||!t.length)return t.slice();var n=i*i;return function(t,i){var n=t.length,s=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);s[0]=s[n-1]=1,fn(t,s,i,0,n-1);var e,h=[];for(e=0;e<n;e++)s[e]&&h.push(t[e]);return h}(t=function(t,i){for(var n=[t[0]],s=1,e=0,h=t.length;s<h;s++)mn(t[s],t[e])>i&&(n.push(t[s]),e=s);return e<h-1&&n.push(t[h-1]),n}(t,n),n)}function cn(t,i,n){return Math.sqrt(pn(t,i,n,!0))}function fn(t,i,n,s,e){var h,o,r,a=0;for(o=s+1;o<=e-1;o++)(r=pn(t[o],t[s],t[e],!0))>a&&(h=o,a=r);a>n&&(i[h]=1,fn(t,i,n,s,h),fn(t,i,n,h,e))}function ln(t,i,n,s,e){var h,o,r,a=s?rn:vn(t,n),u=vn(i,n);for(rn=u;;){if(!(a|u))return[t,i];if(a&u)return!1;r=vn(o=dn(t,i,h=a||u,n,e),n),h===a?(t=o,a=r):(i=o,u=r)}}function dn(t,i,n,s,e){var h,o,r=i.x-t.x,a=i.y-t.y,u=s.min,c=s.max;return 8&n?(h=t.x+r*(c.y-t.y)/a,o=c.y):4&n?(h=t.x+r*(u.y-t.y)/a,o=u.y):2&n?(h=c.x,o=t.y+a*(c.x-t.x)/r):1&n&&(h=u.x,o=t.y+a*(u.x-t.x)/r),new A(h,o,e)}function vn(t,i){var n=0;return t.x<i.min.x?n|=1:t.x>i.max.x&&(n|=2),t.y<i.min.y?n|=4:t.y>i.max.y&&(n|=8),n}function mn(t,i){var n=i.x-t.x,s=i.y-t.y;return n*n+s*s}function pn(t,i,n,s){var e,h=i.x,o=i.y,r=n.x-h,a=n.y-o,u=r*r+a*a;return u>0&&((e=((t.x-h)*r+(t.y-o)*a)/u)>1?(h=n.x,o=n.y):e>0&&(h+=r*e,o+=a*e)),r=t.x-h,a=t.y-o,s?r*r+a*a:new A(h,o)}function gn(t){return!p(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function wn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),gn(t)}function _n(t,i){var n,s,e,h,o,r,a,u;if(!t||0===t.length)throw new Error("latlngs not passed");gn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var c=N([0,0]),f=D(t);f.getNorthWest().distanceTo(f.getSouthWest())*f.getNorthEast().distanceTo(f.getNorthWest())<1700&&(c=on(t));var l=t.length,d=[];for(n=0;n<l;n++){var v=N(t[n]);d.push(i.project(N([v.lat-c.lat,v.lng-c.lng])))}for(n=0,s=0;n<l-1;n++)s+=d[n].distanceTo(d[n+1])/2;if(0===s)u=d[0];else for(n=0,h=0;n<l-1;n++)if((h+=e=(o=d[n]).distanceTo(r=d[n+1]))>s){u=[r.x-(a=(h-s)/e)*(r.x-o.x),r.y-a*(r.y-o.y)];break}var m=i.unproject(O(u));return N([m.lat+c.lat,m.lng+c.lng])}var yn={__proto__:null,simplify:un,pointToSegmentDistance:cn,closestPointOnSegment:function(t,i,n){return pn(t,i,n)},clipSegment:ln,_getEdgeIntersection:dn,_getBitCode:vn,_sqClosestPointOnSegment:pn,isFlat:gn,_flat:wn,polylineCenter:_n},Mn={project:function(t){return new A(t.lng,t.lat)},unproject:function(t){return new R(t.y,t.x)},bounds:new I([-180,-90],[180,90])},bn={R:6378137,R_MINOR:6356752.314245179,bounds:new I([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var i=Math.PI/180,n=this.R,s=t.lat*i,e=this.R_MINOR/n,h=Math.sqrt(1-e*e),o=h*Math.sin(s),r=Math.tan(Math.PI/4-s/2)/Math.pow((1-o)/(1+o),h/2);return s=-n*Math.log(Math.max(r,1e-10)),new A(t.lng*i*n,s)},unproject:function(t){for(var i,n=180/Math.PI,s=this.R,e=this.R_MINOR/s,h=Math.sqrt(1-e*e),o=Math.exp(-t.y/s),r=Math.PI/2-2*Math.atan(o),a=0,u=.1;a<15&&Math.abs(u)>1e-7;a++)i=h*Math.sin(r),i=Math.pow((1-i)/(1+i),h/2),r+=u=Math.PI/2-2*Math.atan(o*i)-r;return new R(r*n,t.x*n/s)}},Pn={__proto__:null,LonLat:Mn,Mercator:bn,SphericalMercator:W},kn=i({},H,{code:"EPSG:3395",projection:bn,transformation:function(){var t=.5/(Math.PI*bn.R);return V(t,.5,-t,.5)}()}),Tn=i({},H,{code:"EPSG:4326",projection:Mn,transformation:V(1/180,1,-1/180,.5)}),Ln=i({},F,{projection:Mn,transformation:V(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var n=i.lng-t.lng,s=i.lat-t.lat;return Math.sqrt(n*n+s*s)},infinite:!0});F.Earth=H,F.EPSG3395=kn,F.EPSG3857=q,F.EPSG900913=J,F.EPSG4326=Tn,F.Simple=Ln;var xn=E.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[h(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[h(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(i.hasLayer(this)){if(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents){var n=this.getEvents();i.on(n,this),this.once("remove",(function(){i.off(n,this)}),this)}this.onAdd(i),this.fire("add"),i.fire("layeradd",{layer:this})}}});Vi.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var i=h(t);return this._layers[i]||(this._layers[i]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var i=h(t);return this._layers[i]?(this._loaded&&t.onRemove(this),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return h(t)in this._layers},eachLayer:function(t,i){for(var n in this._layers)t.call(i,this._layers[n]);return this},_addLayers:function(t){for(var i=0,n=(t=t?p(t)?t:[t]:[]).length;i<n;i++)this.addLayer(t[i])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[h(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var i=h(t);this._zoomBoundLayers[i]&&(delete this._zoomBoundLayers[i],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,i=-1/0,n=this._getZoomSpan();for(var s in this._zoomBoundLayers){var e=this._zoomBoundLayers[s].options;t=void 0===e.minZoom?t:Math.min(t,e.minZoom),i=void 0===e.maxZoom?i:Math.max(i,e.maxZoom)}this._layersMaxZoom=i===-1/0?void 0:i,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var zn=xn.extend({initialize:function(t,i){var n,s;if(l(this,i),this._layers={},t)for(n=0,s=t.length;n<s;n++)this.addLayer(t[n])},addLayer:function(t){var i=this.getLayerId(t);return this._layers[i]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[i]&&this._map.removeLayer(this._layers[i]),delete this._layers[i],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i,n,s=Array.prototype.slice.call(arguments,1);for(i in this._layers)(n=this._layers[i])[t]&&n[t].apply(n,s);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var n in this._layers)t.call(i,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return h(t)}}),Sn=zn.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),zn.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),zn.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new Z;for(var i in this._layers){var n=this._layers[i];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),En=z.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){l(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var s=this._createImg(n,i&&"IMG"===i.tagName?i:null);return this._setIconStyles(s,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(s.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),s},_setIconStyles:function(t,i){var n=this.options,s=n[i+"Size"];"number"==typeof s&&(s=[s,s]);var e=O(s),h=O("shadow"===i&&n.shadowAnchor||n.iconAnchor||e&&e.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(n.className||""),h&&(t.style.marginLeft=-h.x+"px",t.style.marginTop=-h.y+"px"),e&&(t.style.width=e.x+"px",t.style.height=e.y+"px")},_createImg:function(t,i){return(i=i||document.createElement("img")).src=t,i},_getIconUrl:function(t){return It.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});var An=En.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof An.imagePath&&(An.imagePath=this._detectIconPath()),(this.options.imagePath||An.imagePath)+En.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var i=function(t,i,n){var s=i.exec(t);return s&&s[n]};return(t=i(t,/^url\((['"])?(.+)\1\)$/,2))&&i(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=ei("div","leaflet-default-icon-path",document.body),i=si(t,"background-image")||si(t,"backgroundImage");if(document.body.removeChild(t),i=this._stripUrl(i))return i;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),Cn=Yi.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new sn(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ci(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&fi(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i=this._marker,n=i._map,s=this._marker.options.autoPanSpeed,e=this._marker.options.autoPanPadding,h=wi(i._icon),o=n.getPixelBounds(),r=n.getPixelOrigin(),a=B(o.min._subtract(r).add(e),o.max._subtract(r).subtract(e));if(!a.contains(h)){var u=O((Math.max(a.max.x,h.x)-a.max.x)/(o.max.x-a.max.x)-(Math.min(a.min.x,h.x)-a.min.x)/(o.min.x-a.min.x),(Math.max(a.max.y,h.y)-a.max.y)/(o.max.y-a.max.y)-(Math.min(a.min.y,h.y)-a.min.y)/(o.min.y-a.min.y)).multiplyBy(s);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),gi(i._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=k(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(T(this._panRequest),this._panRequest=k(this._adjustPan.bind(this,t)))},_onDrag:function(t){var i=this._marker,n=i._shadow,s=wi(i._icon),e=i._map.layerPointToLatLng(s);n&&gi(n,s),i._latlng=e,t.latlng=e,t.oldLatLng=this._oldLatLng,i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){T(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),On=xn.extend({options:{icon:new An,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,i){l(this,i),this._latlng=N(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var i=this._latlng;return this._latlng=N(t),this.update(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),s=!1;n!==this._icon&&(this._icon&&this._removeIcon(),s=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),ci(n,i),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&xi(n,"focus",this._panOnFocus,this);var e=t.icon.createShadow(this._shadow),h=!1;e!==this._shadow&&(this._removeShadow(),h=!0),e&&(ci(e,i),e.alt=""),this._shadow=e,t.opacity<1&&this._updateOpacity(),s&&this.getPane().appendChild(this._icon),this._initInteraction(),e&&h&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Si(this._icon,"focus",this._panOnFocus,this),hi(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&hi(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&gi(this._icon,t),this._shadow&&gi(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){if(this.options.interactive&&(ci(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Cn)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Cn(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&vi(this._icon,t),this._shadow&&vi(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var i=this.options.icon.options,n=i.iconSize?O(i.iconSize):O(0,0),s=i.iconAnchor?O(i.iconAnchor):O(0,0);t.panInside(this._latlng,{paddingTopLeft:s,paddingBottomRight:n.subtract(s)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});var In=xn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return l(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Bn=In.extend({options:{fill:!0,radius:10},initialize:function(t,i){l(this,i),this._latlng=N(t),this._radius=this.options.radius},setLatLng:function(t){var i=this._latlng;return this._latlng=N(t),this.redraw(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var i=t&&t.radius||this._radius;return In.prototype.setStyle.call(this,t),this.setRadius(i),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,n=this._clickTolerance(),s=[t+n,i+n];this._pxBounds=new I(this._point.subtract(s),this._point.add(s))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});var Zn=Bn.extend({initialize:function(t,n,s){if("number"==typeof n&&(n=i({},s,{radius:n})),l(this,n),this._latlng=N(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new Z(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:In.prototype.setStyle,_project:function(){var t=this._latlng.lng,i=this._latlng.lat,n=this._map,s=n.options.crs;if(s.distance===H.distance){var e=Math.PI/180,h=this._mRadius/H.R/e,o=n.project([i+h,t]),r=n.project([i-h,t]),a=o.add(r).divideBy(2),u=n.unproject(a).lat,c=Math.acos((Math.cos(h*e)-Math.sin(i*e)*Math.sin(u*e))/(Math.cos(i*e)*Math.cos(u*e)))/e;(isNaN(c)||0===c)&&(c=h/Math.cos(Math.PI/180*i)),this._point=a.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:a.x-n.project([u,t-c]).x,this._radiusY=a.y-o.y}else{var f=s.unproject(s.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(f).x}this._updateBounds()}});var Dn=In.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,i){l(this,i),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var i,n,s=1/0,e=null,h=pn,o=0,r=this._parts.length;o<r;o++)for(var a=this._parts[o],u=1,c=a.length;u<c;u++){var f=h(t,i=a[u-1],n=a[u],!0);f<s&&(s=f,e=h(t,i,n))}return e&&(e.distance=Math.sqrt(s)),e},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return _n(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=N(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new Z,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return gn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],n=gn(t),s=0,e=t.length;s<e;s++)n?(i[s]=N(t[s]),this._bounds.extend(i[s])):i[s]=this._convertLatLngs(t[s]);return i},_project:function(){var t=new I;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),i=new A(t,t);this._rawPxBounds&&(this._pxBounds=new I([this._rawPxBounds.min.subtract(i),this._rawPxBounds.max.add(i)]))},_projectLatlngs:function(t,i,n){var s,e,h=t.length;if(t[0]instanceof R){for(e=[],s=0;s<h;s++)e[s]=this._map.latLngToLayerPoint(t[s]),n.extend(e[s]);i.push(e)}else for(s=0;s<h;s++)this._projectLatlngs(t[s],i,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var i,n,s,e,h,o,r,a=this._parts;for(i=0,s=0,e=this._rings.length;i<e;i++)for(n=0,h=(r=this._rings[i]).length;n<h-1;n++)(o=ln(r[n],r[n+1],t,n,!0))&&(a[s]=a[s]||[],a[s].push(o[0]),o[1]===r[n+1]&&n!==h-2||(a[s].push(o[1]),s++))}},_simplifyPoints:function(){for(var t=this._parts,i=this.options.smoothFactor,n=0,s=t.length;n<s;n++)t[n]=un(t[n],i)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var n,s,e,h,o,r,a=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,h=this._parts.length;n<h;n++)for(s=0,e=(o=(r=this._parts[n]).length)-1;s<o;e=s++)if((i||0!==s)&&cn(t,r[e],r[s])<=a)return!0;return!1}});Dn._flat=wn;var Rn=Dn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return hn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var i=Dn.prototype._convertLatLngs.call(this,t),n=i.length;return n>=2&&i[0]instanceof R&&i[0].equals(i[n-1])&&i.pop(),i},_setLatLngs:function(t){Dn.prototype._setLatLngs.call(this,t),gn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return gn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,n=new A(i,i);if(t=new I(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var s,e=0,h=this._rings.length;e<h;e++)(s=en(this._rings[e],t,!0)).length&&this._parts.push(s)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var i,n,s,e,h,o,r,a,u=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(e=0,r=this._parts.length;e<r;e++)for(h=0,o=(a=(i=this._parts[e]).length)-1;h<a;o=h++)(n=i[h]).y>t.y!=(s=i[o]).y>t.y&&t.x<(s.x-n.x)*(t.y-n.y)/(s.y-n.y)+n.x&&(u=!u);return u||Dn.prototype._containsPoint.call(this,t,!0)}});var Nn=Sn.extend({initialize:function(t,i){l(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i,n,s,e=p(t)?t:t.features;if(e){for(i=0,n=e.length;i<n;i++)((s=e[i]).geometries||s.geometry||s.features||s.coordinates)&&this.addData(s);return this}var h=this.options;if(h.filter&&!h.filter(t))return this;var o=jn(t,h);return o?(o.feature=qn(t),o.defaultOptions=o.options,this.resetStyle(o),h.onEachFeature&&h.onEachFeature(t,o),this.addLayer(o)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=i({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(i){this._setLayerStyle(i,t)}),this)},_setLayerStyle:function(t,i){t.setStyle&&("function"==typeof i&&(i=i(t.feature)),t.setStyle(i))}});function jn(t,i){var n,s,e,h,o="Feature"===t.type?t.geometry:t,r=o?o.coordinates:null,a=[],u=i&&i.pointToLayer,c=i&&i.coordsToLatLng||Hn;if(!r&&!o)return null;switch(o.type){case"Point":return Fn(u,t,n=c(r),i);case"MultiPoint":for(e=0,h=r.length;e<h;e++)n=c(r[e]),a.push(Fn(u,t,n,i));return new Sn(a);case"LineString":case"MultiLineString":return s=Un(r,"LineString"===o.type?0:1,c),new Dn(s,i);case"Polygon":case"MultiPolygon":return s=Un(r,"Polygon"===o.type?1:2,c),new Rn(s,i);case"GeometryCollection":for(e=0,h=o.geometries.length;e<h;e++){var f=jn({geometry:o.geometries[e],type:"Feature",properties:t.properties},i);f&&a.push(f)}return new Sn(a);case"FeatureCollection":for(e=0,h=o.features.length;e<h;e++){var l=jn(o.features[e],i);l&&a.push(l)}return new Sn(a);default:throw new Error("Invalid GeoJSON object.")}}function Fn(t,i,n,s){return t?t(i,n):new On(n,s&&s.markersInheritOptions&&s)}function Hn(t){return new R(t[1],t[0],t[2])}function Un(t,i,n){for(var s,e=[],h=0,o=t.length;h<o;h++)s=i?Un(t[h],i-1,n):(n||Hn)(t[h]),e.push(s);return e}function Wn(t,i){return void 0!==(t=N(t)).alt?[u(t.lng,i),u(t.lat,i),u(t.alt,i)]:[u(t.lng,i),u(t.lat,i)]}function Gn(t,i,n,s){for(var e=[],h=0,o=t.length;h<o;h++)e.push(i?Gn(t[h],gn(t[h])?0:i-1,n,s):Wn(t[h],s));return!i&&n&&e.length>0&&e.push(e[0].slice()),e}function Vn(t,n){return t.feature?i({},t.feature,{geometry:n}):qn(n)}function qn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Jn={toGeoJSON:function(t){return Vn(this,{type:"Point",coordinates:Wn(this.getLatLng(),t)})}};function Kn(t,i){return new Nn(t,i)}On.include(Jn),Zn.include(Jn),Bn.include(Jn),Dn.include({toGeoJSON:function(t){var i=!gn(this._latlngs);return Vn(this,{type:(i?"Multi":"")+"LineString",coordinates:Gn(this._latlngs,i?1:0,!1,t)})}}),Rn.include({toGeoJSON:function(t){var i=!gn(this._latlngs),n=i&&!gn(this._latlngs[0]),s=Gn(this._latlngs,n?2:i?1:0,!0,t);return i||(s=[s]),Vn(this,{type:(n?"Multi":"")+"Polygon",coordinates:s})}}),zn.include({toMultiPoint:function(t){var i=[];return this.eachLayer((function(n){i.push(n.toGeoJSON(t).geometry.coordinates)})),Vn(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(t){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===i)return this.toMultiPoint(t);var n="GeometryCollection"===i,s=[];return this.eachLayer((function(i){if(i.toGeoJSON){var e=i.toGeoJSON(t);if(n)s.push(e.geometry);else{var h=qn(e);"FeatureCollection"===h.type?s.push.apply(s,h.features):s.push(h)}}})),n?Vn(this,{geometries:s,type:"GeometryCollection"}):{type:"FeatureCollection",features:s}}});var Xn=Kn,$n=xn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,n){this._url=t,this._bounds=D(i),l(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ci(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){hi(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ri(this._image),this},bringToBack:function(){return this._map&&ai(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=D(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,i=this._image=t?this._url:ei("img");ci(i,"leaflet-image-layer"),this._zoomAnimated&&ci(i,"leaflet-zoom-animated"),this.options.className&&ci(i,this.options.className),i.onselectstart=a,i.onmousemove=a,i.onload=s(this.fire,this,"load"),i.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=i.src:(i.src=this._url,i.alt=this.options.alt)},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;pi(this._image,n,i)},_reset:function(){var t=this._image,i=new I(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=i.getSize();gi(t,i.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){vi(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&null!=this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Qn=$n.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,i=this._image=t?this._url:ei("video");if(ci(i,"leaflet-image-layer"),this._zoomAnimated&&ci(i,"leaflet-zoom-animated"),this.options.className&&ci(i,this.options.className),i.onselectstart=a,i.onmousemove=a,i.onloadeddata=s(this.fire,this,"load"),t){for(var n=i.getElementsByTagName("source"),e=[],h=0;h<n.length;h++)e.push(n[h].src);this._url=n.length>0?e:[i.src]}else{p(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")&&(i.style.objectFit="fill"),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop,i.muted=!!this.options.muted,i.playsInline=!!this.options.playsInline;for(var o=0;o<this._url.length;o++){var r=ei("source");r.src=this._url[o],i.appendChild(r)}}}});var Yn=$n.extend({_initImage:function(){var t=this._image=this._url;ci(t,"leaflet-image-layer"),this._zoomAnimated&&ci(t,"leaflet-zoom-animated"),this.options.className&&ci(t,this.options.className),t.onselectstart=a,t.onmousemove=a}});var ts=xn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,i){t&&(t instanceof R||p(t))?(this._latlng=N(t),l(this,i)):(l(this,t),this._source=i),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&vi(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&vi(this._container,1),this.bringToFront(),this.options.interactive&&(ci(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(vi(this._container,0),this._removeTimeout=setTimeout(s(hi,void 0,this._container),200)):hi(this._container),this.options.interactive&&(fi(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=N(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ri(this._container),this},bringToBack:function(){return this._map&&ai(this._container),this},_prepareOpen:function(t){var i=this._source;if(!i._map)return!1;if(i instanceof Sn){i=null;var n=this._source._layers;for(var s in n)if(n[s]._map){i=n[s];break}if(!i)return!1;this._source=i}if(!t)if(i.getCenter)t=i.getCenter();else if(i.getLatLng)t=i.getLatLng();else{if(!i.getBounds)throw new Error("Unable to get source layer LatLng.");t=i.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,i="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof i)t.innerHTML=i;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(i)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),i=O(this.options.offset),n=this._getAnchor();this._zoomAnimated?gi(this._container,t.add(n)):i=i.add(t).add(n);var s=this._containerBottom=-i.y,e=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=s+"px",this._container.style.left=e+"px"}},_getAnchor:function(){return[0,0]}});Vi.include({_initOverlay:function(t,i,n,s){var e=i;return e instanceof t||(e=new t(s).setContent(i)),n&&e.setLatLng(n),e}}),xn.include({_initOverlay:function(t,i,n,s){var e=n;return e instanceof t?(l(e,s),e._source=this):(e=i&&!s?i:new t(s,this)).setContent(n),e}});var is=ts.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,ts.prototype.openOn.call(this,t)},onAdd:function(t){ts.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof In||this._source.on("preclick",Ii))},onRemove:function(t){ts.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof In||this._source.off("preclick",Ii))},getEvents:function(){var t=ts.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",i=this._container=ei("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=ei("div",t+"-content-wrapper",i);if(this._contentNode=ei("div",t+"-content",n),Zi(i),Bi(this._contentNode),xi(i,"contextmenu",Ii),this._tipContainer=ei("div",t+"-tip-container",i),this._tip=ei("div",t+"-tip",this._tipContainer),this.options.closeButton){var s=this._closeButton=ei("a",t+"-close-button",i);s.setAttribute("role","button"),s.setAttribute("aria-label","Close popup"),s.href="#close",s.innerHTML='<span aria-hidden="true">×</span>',xi(s,"click",(function(t){Di(t),this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width="",i.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),i.width=n+1+"px",i.whiteSpace="",i.height="";var s=this.options.maxHeight,e="leaflet-popup-scrolled";s&&t.offsetHeight>s?(i.height=s+"px",ci(t,e)):fi(t,e),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();gi(this._container,i.add(n))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,i=parseInt(si(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+i,s=this._containerWidth,e=new A(this._containerLeft,-n-this._containerBottom);e._add(wi(this._container));var h=t.layerPointToContainerPoint(e),o=O(this.options.autoPanPadding),r=O(this.options.autoPanPaddingTopLeft||o),a=O(this.options.autoPanPaddingBottomRight||o),u=t.getSize(),c=0,f=0;h.x+s+a.x>u.x&&(c=h.x+s-u.x+a.x),h.x-c-r.x<0&&(c=h.x-r.x),h.y+n+a.y>u.y&&(f=h.y+n-u.y+a.y),h.y-f-r.y<0&&(f=h.y-r.y),(c||f)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([c,f]))}},_getAnchor:function(){return O(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Vi.mergeOptions({closePopupOnClick:!0}),Vi.include({openPopup:function(t,i,n){return this._initOverlay(is,t,i,n).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),xn.include({bindPopup:function(t,i){return this._popup=this._initOverlay(is,this._popup,t,i),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Sn||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Ri(t);var i=t.layer||t.target;this._popup._source!==i||i instanceof In?(this._popup._source=i,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var ns=ts.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){ts.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){ts.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=ts.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){this._contentNode=this._container=ei("div","leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide")),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+h(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,n,s=this._map,e=this._container,h=s.latLngToContainerPoint(s.getCenter()),o=s.layerPointToContainerPoint(t),r=this.options.direction,a=e.offsetWidth,u=e.offsetHeight,c=O(this.options.offset),f=this._getAnchor();"top"===r?(i=a/2,n=u):"bottom"===r?(i=a/2,n=0):"center"===r?(i=a/2,n=u/2):"right"===r?(i=0,n=u/2):"left"===r?(i=a,n=u/2):o.x<h.x?(r="right",i=0,n=u/2):(r="left",i=a+2*(c.x+f.x),n=u/2),t=t.subtract(O(i,n,!0)).add(c).add(f),fi(e,"leaflet-tooltip-right"),fi(e,"leaflet-tooltip-left"),fi(e,"leaflet-tooltip-top"),fi(e,"leaflet-tooltip-bottom"),ci(e,"leaflet-tooltip-"+r),gi(e,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&vi(this._container,t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return O(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Vi.include({openTooltip:function(t,i,n){return this._initOverlay(ns,t,i,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),xn.include({bindTooltip:function(t,i){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ns,this._tooltip,t,i),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var i=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[i](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Sn||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var i="function"==typeof t.getElement&&t.getElement();i&&(xi(i,"focus",(function(){this._tooltip._source=t,this.openTooltip()}),this),xi(i,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var i="function"==typeof t.getElement&&t.getElement();i&&i.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var i=this;this._map.once("moveend",(function(){i._openOnceFlag=!1,i._openTooltip(t)}))}else this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var i,n,s=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(i=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(i),s=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(s)}});var ss=En.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var i=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(oi(i),i.appendChild(n.html)):i.innerHTML=!1!==n.html?n.html:"",n.bgPos){var s=O(n.bgPos);i.style.backgroundPosition=-s.x+"px "+-s.y+"px"}return this._setIconStyles(i,"icon"),i},createShadow:function(){return null}});En.Default=An;var es=xn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:It.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){l(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),hi(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ri(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ai(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=o(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof A?t:new A(t,t)},_updateZIndex:function(){this._container&&null!=this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var i,n=this.getPane().children,s=-t(-1/0,1/0),e=0,h=n.length;e<h;e++)i=n[e].style.zIndex,n[e]!==this._container&&i&&(s=t(s,+i));isFinite(s)&&(this.options.zIndex=s+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!It.ielt9){vi(this._container,this.options.opacity);var t=+new Date,i=!1,n=!1;for(var s in this._tiles){var e=this._tiles[s];if(e.current&&e.loaded){var h=Math.min(1,(t-e.loaded)/200);vi(e.el,h),h<1?i=!0:(e.active?n=!0:this._onOpaqueTile(e),e.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),i&&(T(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this))}},_onOpaqueTile:a,_initContainer:function(){this._container||(this._container=ei("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,i=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=i-Math.abs(t-n),this._onUpdateLevel(n)):(hi(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var s=this._levels[t],e=this._map;return s||((s=this._levels[t]={}).el=ei("div","leaflet-tile-container leaflet-zoom-animated",this._container),s.el.style.zIndex=i,s.origin=e.project(e.unproject(e.getPixelOrigin()),t).round(),s.zoom=t,this._setZoomTransform(s,e.getCenter(),e.getZoom()),this._onCreateLevel(s)),this._level=s,s}},_onUpdateLevel:a,_onRemoveLevel:a,_onCreateLevel:a,_pruneTiles:function(){if(this._map){var t,i,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(i=this._tiles[t]).retain=i.current;for(t in this._tiles)if((i=this._tiles[t]).current&&!i.active){var s=i.coords;this._retainParent(s.x,s.y,s.z,s.z-5)||this._retainChildren(s.x,s.y,s.z,s.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var i in this._tiles)this._tiles[i].coords.z===t&&this._removeTile(i)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)hi(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,i,n,s){var e=Math.floor(t/2),h=Math.floor(i/2),o=n-1,r=new A(+e,+h);r.z=+o;var a=this._tileCoordsToKey(r),u=this._tiles[a];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),o>s&&this._retainParent(e,h,o,s))},_retainChildren:function(t,i,n,s){for(var e=2*t;e<2*t+2;e++)for(var h=2*i;h<2*i+2;h++){var o=new A(e,h);o.z=n+1;var r=this._tileCoordsToKey(o),a=this._tiles[r];a&&a.active?a.retain=!0:(a&&a.loaded&&(a.retain=!0),n+1<s&&this._retainChildren(e,h,n+1,s))}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var i=this.options;return void 0!==i.minNativeZoom&&t<i.minNativeZoom?i.minNativeZoom:void 0!==i.maxNativeZoom&&i.maxNativeZoom<t?i.maxNativeZoom:t},_setView:function(t,i,n,s){var e=Math.round(i);e=void 0!==this.options.maxZoom&&e>this.options.maxZoom||void 0!==this.options.minZoom&&e<this.options.minZoom?void 0:this._clampZoom(e),s&&!(this.options.updateWhenZooming&&e!==this._tileZoom)||(this._tileZoom=e,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==e&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,i)},_setZoomTransform:function(t,i,n){var s=this._map.getZoomScale(n,t.zoom),e=t.origin.multiplyBy(s).subtract(this._map._getNewPixelOrigin(i,n)).round();It.any3d?pi(t.el,e,s):gi(t.el,e)},_resetGrid:function(){var t=this._map,i=t.options.crs,n=this._tileSize=this.getTileSize(),s=this._tileZoom,e=this._map.getPixelWorldBounds(this._tileZoom);e&&(this._globalTileRange=this._pxBoundsToTileRange(e)),this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],s).x/n.x),Math.ceil(t.project([0,i.wrapLng[1]],s).x/n.y)],this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],s).y/n.x),Math.ceil(t.project([i.wrapLat[1],0],s).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var i=this._map,n=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),s=i.getZoomScale(n,this._tileZoom),e=i.project(t,this._tileZoom).floor(),h=i.getSize().divideBy(2*s);return new I(e.subtract(h),e.add(h))},_update:function(t){var i=this._map;if(i){var n=this._clampZoom(i.getZoom());if(void 0===t&&(t=i.getCenter()),void 0!==this._tileZoom){var s=this._getTiledPixelBounds(t),e=this._pxBoundsToTileRange(s),h=e.getCenter(),o=[],r=this.options.keepBuffer,a=new I(e.getBottomLeft().subtract([r,-r]),e.getTopRight().add([r,-r]));if(!(isFinite(e.min.x)&&isFinite(e.min.y)&&isFinite(e.max.x)&&isFinite(e.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&a.contains(new A(c.x,c.y))||(this._tiles[u].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(t,n);else{for(var f=e.min.y;f<=e.max.y;f++)for(var l=e.min.x;l<=e.max.x;l++){var d=new A(l,f);if(d.z=this._tileZoom,this._isValidTile(d)){var v=this._tiles[this._tileCoordsToKey(d)];v?v.current=!0:o.push(d)}}if(o.sort((function(t,i){return t.distanceTo(h)-i.distanceTo(h)})),0!==o.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(l=0;l<o.length;l++)this._addTile(o[l],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var n=this._globalTileRange;if(!i.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!i.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var s=this._tileCoordsToBounds(t);return D(this.options.bounds).overlaps(s)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,n=this.getTileSize(),s=t.scaleBy(n),e=s.add(n);return[i.unproject(s,t.z),i.unproject(e,t.z)]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),n=new Z(i[0],i[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),n=new A(+i[0],+i[1]);return n.z=+i[2],n},_removeTile:function(t){var i=this._tiles[t];i&&(hi(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ci(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=a,t.onmousemove=a,It.ielt9&&this.options.opacity<1&&vi(t,this.options.opacity)},_addTile:function(t,i){var n=this._getTilePos(t),e=this._tileCoordsToKey(t),h=this.createTile(this._wrapCoords(t),s(this._tileReady,this,t));this._initTile(h),this.createTile.length<2&&k(s(this._tileReady,this,t,null,h)),gi(h,n),this._tiles[e]={el:h,coords:t,current:!0},i.appendChild(h),this.fire("tileloadstart",{tile:h,coords:t})},_tileReady:function(t,i,n){i&&this.fire("tileerror",{error:i,tile:n,coords:t});var e=this._tileCoordsToKey(t);(n=this._tiles[e])&&(n.loaded=+new Date,this._map._fadeAnimated?(vi(n.el,0),T(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),i||(ci(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),It.ielt9||!this._map._fadeAnimated?k(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new A(this._wrapX?r(t.x,this._wrapX):t.x,this._wrapY?r(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new I(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});var hs=es.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,i){this._url=t,(i=l(this,i)).detectRetina&&It.retina&&i.maxZoom>0?(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom=Math.min(i.maxZoom,i.minZoom+1)):(i.zoomOffset++,i.maxZoom=Math.max(i.minZoom,i.maxZoom-1)),i.minZoom=Math.max(0,i.minZoom)):i.zoomReverse?i.minZoom=Math.min(i.maxZoom,i.minZoom):i.maxZoom=Math.max(i.minZoom,i.maxZoom),"string"==typeof i.subdomains&&(i.subdomains=i.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url===t&&void 0===i&&(i=!0),this._url=t,i||this.redraw(),this},createTile:function(t,i){var n=document.createElement("img");return xi(n,"load",s(this._tileOnLoad,this,i,n)),xi(n,"error",s(this._tileOnError,this,i,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var n={r:It.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var s=this._globalTileRange.max.y-t.y;this.options.tms&&(n.y=s),n["-y"]=s}return m(this._url,i(n,this.options))},_tileOnLoad:function(t,i){It.ielt9?setTimeout(s(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,n){var s=this.options.errorTileUrl;s&&i.getAttribute("src")!==s&&(i.src=s),t(n,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom;return this.options.zoomReverse&&(t=this.options.maxZoom-t),t+this.options.zoomOffset},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((i=this._tiles[t].el).onload=a,i.onerror=a,!i.complete)){i.src=w;var n=this._tiles[t].coords;hi(i),delete this._tiles[t],this.fire("tileabort",{tile:i,coords:n})}},_removeTile:function(t){var i=this._tiles[t];if(i)return i.el.setAttribute("src",w),es.prototype._removeTile.call(this,t)},_tileReady:function(t,i,n){if(this._map&&(!n||n.getAttribute("src")!==w))return es.prototype._tileReady.call(this,t,i,n)}});function os(t,i){return new hs(t,i)}var rs=hs.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,n){this._url=t;var s=i({},this.defaultWmsParams);for(var e in n)e in this.options||(s[e]=n[e]);var h=(n=l(this,n)).detectRetina&&It.retina?2:1,o=this.getTileSize();s.width=o.x*h,s.height=o.y*h,this.wmsParams=s},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version),this.wmsParams[this._wmsVersion>=1.3?"crs":"srs"]=this._crs.code,hs.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),n=this._crs,s=B(n.project(i[0]),n.project(i[1])),e=s.min,h=s.max,o=(this._wmsVersion>=1.3&&this._crs===Tn?[e.y,e.x,h.y,h.x]:[e.x,e.y,h.x,h.y]).join(","),r=hs.prototype.getTileUrl.call(this,t);return r+d(this.wmsParams,r,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+o},setParams:function(t,n){return i(this.wmsParams,t),n||this.redraw(),this}});hs.WMS=rs,os.wms=function(t,i){return new rs(t,i)};var as=xn.extend({options:{padding:.1},initialize:function(t){l(this,t),h(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),ci(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var n=this._map.getZoomScale(i,this._zoom),s=this._map.getSize().multiplyBy(.5+this.options.padding),e=this._map.project(this._center,i),h=s.multiplyBy(-n).add(e).subtract(this._map._getNewPixelOrigin(t,i));It.any3d?pi(this._container,h,n):gi(this._container,h)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,i=this._map.getSize(),n=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new I(n,n.add(i.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),us=as.extend({options:{tolerance:0},getEvents:function(){var t=as.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){as.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");xi(t,"mousemove",this._onMouseMove,this),xi(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),xi(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){T(this._redrawRequest),delete this._ctx,hi(this._container),Si(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){as.prototype._update.call(this);var t=this._bounds,i=this._container,n=t.getSize(),s=It.retina?2:1;gi(i,t.min),i.width=s*n.x,i.height=s*n.y,i.style.width=n.x+"px",i.style.height=n.y+"px",It.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){as.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[h(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,n=i.next,s=i.prev;n?n.prev=s:this._drawLast=s,s?s.next=n:this._drawFirst=n,delete t._order,delete this._layers[h(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var i,n,s=t.options.dashArray.split(/[, ]+/),e=[];for(n=0;n<s.length;n++){if(i=Number(s[n]),isNaN(i))return;e.push(i)}t.options._dashArray=e}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||k(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var i=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new I,this._redrawBounds.extend(t._pxBounds.min.subtract([i,i])),this._redrawBounds.extend(t._pxBounds.max.add([i,i]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var i=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,i.x,i.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,i=this._redrawBounds;if(this._ctx.save(),i){var n=i.getSize();this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var s=this._drawFirst;s;s=s.next)t=s.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,i){if(this._drawing){var n,s,e,h,o=t._parts,r=o.length,a=this._ctx;if(r){for(a.beginPath(),n=0;n<r;n++){for(s=0,e=o[n].length;s<e;s++)a[s?"lineTo":"moveTo"]((h=o[n][s]).x,h.y);i&&a.closePath()}this._fillStroke(a,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var i=t._point,n=this._ctx,s=Math.max(Math.round(t._radius),1),e=(Math.max(Math.round(t._radiusY),1)||s)/s;1!==e&&(n.save(),n.scale(1,e)),n.beginPath(),n.arc(i.x,i.y/e,s,0,2*Math.PI,!1),1!==e&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,i){var n=i.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(i.options&&i.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var i,n,s=this._map.mouseEventToLayerPoint(t),e=this._drawFirst;e;e=e.next)(i=e.layer).options.interactive&&i._containsPoint(s)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(i))&&(n=i);this._fireEvent(!!n&&[n],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var i=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,i)}},_handleMouseOut:function(t){var i=this._hoveredLayer;i&&(fi(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,i){if(!this._mouseHoverThrottled){for(var n,e,h=this._drawFirst;h;h=h.next)(n=h.layer).options.interactive&&n._containsPoint(i)&&(e=n);e!==this._hoveredLayer&&(this._handleMouseOut(t),e&&(ci(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseover"),this._hoveredLayer=e)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(s((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,i,n){this._map._fireDOMEvent(i,n||i.type,t)},_bringToFront:function(t){var i=t._order;if(i){var n=i.next,s=i.prev;n&&(n.prev=s,s?s.next=n:n&&(this._drawFirst=n),i.prev=this._drawLast,this._drawLast.next=i,i.next=null,this._drawLast=i,this._requestRedraw(t))}},_bringToBack:function(t){var i=t._order;if(i){var n=i.next,s=i.prev;s&&(s.next=n,n?n.prev=s:s&&(this._drawLast=s),i.prev=null,i.next=this._drawFirst,this._drawFirst.prev=i,this._drawFirst=i,this._requestRedraw(t))}}});function cs(t){return It.canvas?new us(t):null}var fs=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),ls={_initContainer:function(){this._container=ei("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(as.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=fs("shape");ci(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=fs("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;hi(i),t.removeInteractiveTarget(i),delete this._layers[h(t)]},_updateStyle:function(t){var i=t._stroke,n=t._fill,s=t.options,e=t._container;e.stroked=!!s.stroke,e.filled=!!s.fill,s.stroke?(i||(i=t._stroke=fs("stroke")),e.appendChild(i),i.weight=s.weight+"px",i.color=s.color,i.opacity=s.opacity,i.dashStyle=s.dashArray?p(s.dashArray)?s.dashArray.join(" "):s.dashArray.replace(/( *, *)/g," "):"",i.endcap=s.lineCap.replace("butt","flat"),i.joinstyle=s.lineJoin):i&&(e.removeChild(i),t._stroke=null),s.fill?(n||(n=t._fill=fs("fill")),e.appendChild(n),n.color=s.fillColor||s.color,n.opacity=s.fillOpacity):n&&(e.removeChild(n),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),n=Math.round(t._radius),s=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+n+","+s+" 0,23592600")},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){ri(t._container)},_bringToBack:function(t){ai(t._container)}},ds=It.vml?fs:K,vs=as.extend({_initContainer:function(){this._container=ds("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ds("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){hi(this._container),Si(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){as.prototype._update.call(this);var t=this._bounds,i=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(i)||(this._svgSize=i,n.setAttribute("width",i.x),n.setAttribute("height",i.y)),gi(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update")}},_initPath:function(t){var i=t._path=ds("path");t.options.className&&ci(i,t.options.className),t.options.interactive&&ci(i,"leaflet-interactive"),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){hi(t._path),t.removeInteractiveTarget(t._path),delete this._layers[h(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,n=t.options;i&&(n.stroke?(i.setAttribute("stroke",n.color),i.setAttribute("stroke-opacity",n.opacity),i.setAttribute("stroke-width",n.weight),i.setAttribute("stroke-linecap",n.lineCap),i.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?i.setAttribute("stroke-dasharray",n.dashArray):i.removeAttribute("stroke-dasharray"),n.dashOffset?i.setAttribute("stroke-dashoffset",n.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),n.fill?(i.setAttribute("fill",n.fillColor||n.color),i.setAttribute("fill-opacity",n.fillOpacity),i.setAttribute("fill-rule",n.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,X(t._parts,i))},_updateCircle:function(t){var i=t._point,n=Math.max(Math.round(t._radius),1),s="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",e=t._empty()?"M0 0":"M"+(i.x-n)+","+i.y+s+2*n+",0 "+s+2*-n+",0 ";this._setPath(t,e)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){ri(t._path)},_bringToBack:function(t){ai(t._path)}});function ms(t){return It.svg||It.vml?new vs(t):null}It.vml&&vs.include(ls),Vi.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return i||(i=this._renderer=this._createRenderer()),this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var i=this._paneRenderers[t];return void 0===i&&(i=this._createRenderer({pane:t}),this._paneRenderers[t]=i),i},_createRenderer:function(t){return this.options.preferCanvas&&cs(t)||ms(t)}});var ps=Rn.extend({initialize:function(t,i){Rn.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=D(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});vs.create=ds,vs.pointsToPath=X,Nn.geometryToLayer=jn,Nn.coordsToLatLng=Hn,Nn.coordsToLatLngs=Un,Nn.latLngToCoords=Wn,Nn.latLngsToCoords=Gn,Nn.getFeature=Vn,Nn.asFeature=qn,Vi.mergeOptions({boxZoom:!0});var gs=Yi.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){xi(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Si(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){hi(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Jt(),yi(),this._startPoint=this._map.mouseEventToContainerPoint(t),xi(document,{contextmenu:Ri,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ei("div","leaflet-zoom-box",this._container),ci(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=new I(this._point,this._startPoint),n=i.getSize();gi(this._box,i.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(hi(this._box),fi(this._container,"leaflet-crosshair")),Kt(),Mi(),Si(document,{contextmenu:Ri,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var i=new Z(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Vi.addInitHook("addHandler","boxZoom",gs),Vi.mergeOptions({doubleClickZoom:!0});var ws=Yi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,n=i.getZoom(),s=i.options.zoomDelta,e=t.originalEvent.shiftKey?n-s:n+s;"center"===i.options.doubleClickZoom?i.setZoom(e):i.setZoomAround(t.containerPoint,e)}});Vi.addInitHook("addHandler","doubleClickZoom",ws),Vi.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var _s=Yi.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new sn(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}ci(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){fi(this._map._container,"leaflet-grab"),fi(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=D(this._map.options.maxBounds);this._offsetLimit=B(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var i=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(i),this._prunePositions(i)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit;t.x<i.min.x&&(t.x=this._viscousLimit(t.x,i.min.x)),t.y<i.min.y&&(t.y=this._viscousLimit(t.y,i.min.y)),t.x>i.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),n=this._initialWorldOffset,s=this._draggable._newPos.x,e=(s-i+n)%t+i-n,h=(s+i+n)%t-i-n,o=Math.abs(e+n)<Math.abs(h+n)?e:h;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=o},_onDragEnd:function(t){var i=this._map,n=i.options,s=!n.inertia||t.noInertia||this._times.length<2;if(i.fire("dragend",t),s)i.fire("moveend");else{this._prunePositions(+new Date);var e=this._lastPos.subtract(this._positions[0]),h=n.easeLinearity,o=e.multiplyBy(h/((this._lastTime-this._times[0])/1e3)),r=o.distanceTo([0,0]),a=Math.min(n.inertiaMaxSpeed,r),u=o.multiplyBy(a/r),c=a/(n.inertiaDeceleration*h),f=u.multiplyBy(-c/2).round();f.x||f.y?(f=i._limitOffset(f,i.options.maxBounds),k((function(){i.panBy(f,{duration:c,easeLinearity:h,noMoveStart:!0,animate:!0})}))):i.fire("moveend")}}});Vi.addInitHook("addHandler","dragging",_s),Vi.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ys=Yi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),xi(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Si(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,i=document.documentElement,n=t.scrollTop||i.scrollTop,s=t.scrollLeft||i.scrollLeft;this._map._container.focus(),window.scrollTo(s,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var i,n,s=this._panKeys={},e=this.keyCodes;for(i=0,n=e.left.length;i<n;i++)s[e.left[i]]=[-1*t,0];for(i=0,n=e.right.length;i<n;i++)s[e.right[i]]=[t,0];for(i=0,n=e.down.length;i<n;i++)s[e.down[i]]=[0,t];for(i=0,n=e.up.length;i<n;i++)s[e.up[i]]=[0,-1*t]},_setZoomDelta:function(t){var i,n,s=this._zoomKeys={},e=this.keyCodes;for(i=0,n=e.zoomIn.length;i<n;i++)s[e.zoomIn[i]]=t;for(i=0,n=e.zoomOut.length;i<n;i++)s[e.zoomOut[i]]=-t},_addHooks:function(){xi(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Si(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var i,n=t.keyCode,s=this._map;if(n in this._panKeys){if(!s._panAnim||!s._panAnim._inProgress)if(i=this._panKeys[n],t.shiftKey&&(i=O(i).multiplyBy(3)),s.options.maxBounds&&(i=s._limitOffset(O(i),s.options.maxBounds)),s.options.worldCopyJump){var e=s.wrapLatLng(s.unproject(s.project(s.getCenter()).add(i)));s.panTo(e)}else s.panBy(i)}else if(n in this._zoomKeys)s.setZoom(s.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!s._popup||!s._popup.options.closeOnEscapeKey)return;s.closePopup()}Ri(t)}}});Vi.addInitHook("addHandler","keyboard",ys),Vi.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Ms=Yi.extend({addHooks:function(){xi(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Si(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=Hi(t),n=this._map.options.wheelDebounceTime;this._delta+=i,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var e=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),e),Ri(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var s=4*Math.log(2/(1+Math.exp(-Math.abs(this._delta/(4*this._map.options.wheelPxPerZoomLevel)))))/Math.LN2,e=n?Math.ceil(s/n)*n:s,h=t._limitZoom(i+(this._delta>0?e:-e))-i;this._delta=0,this._startTime=null,h&&("center"===t.options.scrollWheelZoom?t.setZoom(i+h):t.setZoomAround(this._lastMousePos,i+h))}});Vi.addInitHook("addHandler","scrollWheelZoom",Ms);Vi.mergeOptions({tapHold:It.touchNative&&It.safari&&It.mobile,tapTolerance:15});var bs=Yi.extend({addHooks:function(){xi(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Si(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var i=t.touches[0];this._startPos=this._newPos=new A(i.clientX,i.clientY),this._holdTimeout=setTimeout(s((function(){this._cancel(),this._isTapValid()&&(xi(document,"touchend",Di),xi(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",i))}),this),600),xi(document,"touchend touchcancel contextmenu",this._cancel,this),xi(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Si(document,"touchend",Di),Si(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Si(document,"touchend touchcancel contextmenu",this._cancel,this),Si(document,"touchmove",this._onMove,this)},_onMove:function(t){var i=t.touches[0];this._newPos=new A(i.clientX,i.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,i){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY});n._simulated=!0,i.target.dispatchEvent(n)}});Vi.addInitHook("addHandler","tapHold",bs),Vi.mergeOptions({touchZoom:It.touch,bounceAtZoomLimits:!0});var Ps=Yi.extend({addHooks:function(){ci(this._map._container,"leaflet-touch-zoom"),xi(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){fi(this._map._container,"leaflet-touch-zoom"),Si(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(t.touches&&2===t.touches.length&&!i._animatingZoom&&!this._zooming){var n=i.mouseEventToContainerPoint(t.touches[0]),s=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),"center"!==i.options.touchZoom&&(this._pinchStartLatLng=i.containerPointToLatLng(n.add(s)._divideBy(2))),this._startDist=n.distanceTo(s),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),xi(document,"touchmove",this._onTouchMove,this),xi(document,"touchend touchcancel",this._onTouchEnd,this),Di(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var i=this._map,n=i.mouseEventToContainerPoint(t.touches[0]),e=i.mouseEventToContainerPoint(t.touches[1]),h=n.distanceTo(e)/this._startDist;if(this._zoom=i.getScaleZoom(h,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&h<1||this._zoom>i.getMaxZoom()&&h>1)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.touchZoom){if(this._center=this._startLatLng,1===h)return}else{var o=n._add(e)._divideBy(2)._subtract(this._centerPoint);if(1===h&&0===o.x&&0===o.y)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(o),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),T(this._animRequest);var r=s(i._move,i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=k(r,this,!0),Di(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,T(this._animRequest),Si(document,"touchmove",this._onTouchMove,this),Si(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))):this._zooming=!1}});Vi.addInitHook("addHandler","touchZoom",Ps),Vi.BoxZoom=gs,Vi.DoubleClickZoom=ws,Vi.Drag=_s,Vi.Keyboard=ys,Vi.ScrollWheelZoom=Ms,Vi.TapHold=bs,Vi.TouchZoom=Ps,t.Bounds=I,t.Browser=It,t.CRS=F,t.Canvas=us,t.Circle=Zn,t.CircleMarker=Bn,t.Class=z,t.Control=qi,t.DivIcon=ss,t.DivOverlay=ts,t.DomEvent=Wi,t.DomUtil=Li,t.Draggable=sn,t.Evented=E,t.FeatureGroup=Sn,t.GeoJSON=Nn,t.GridLayer=es,t.Handler=Yi,t.Icon=En,t.ImageOverlay=$n,t.LatLng=R,t.LatLngBounds=Z,t.Layer=xn,t.LayerGroup=zn,t.LineUtil=yn,t.Map=Vi,t.Marker=On,t.Mixin=tn,t.Path=In,t.Point=A,t.PolyUtil=an,t.Polygon=Rn,t.Polyline=Dn,t.Popup=is,t.PosAnimation=Gi,t.Projection=Pn,t.Rectangle=ps,t.Renderer=as,t.SVG=vs,t.SVGOverlay=Yn,t.TileLayer=hs,t.Tooltip=ns,t.Transformation=G,t.Util=x,t.VideoOverlay=Qn,t.bind=s,t.bounds=B,t.canvas=cs,t.circle=function(t,i,n){return new Zn(t,i,n)},t.circleMarker=function(t,i){return new Bn(t,i)},t.control=Ji,t.divIcon=function(t){return new ss(t)},t.extend=i,t.featureGroup=function(t,i){return new Sn(t,i)},t.geoJSON=Kn,t.geoJson=Xn,t.gridLayer=function(t){return new es(t)},t.icon=function(t){return new En(t)},t.imageOverlay=function(t,i,n){return new $n(t,i,n)},t.latLng=N,t.latLngBounds=D,t.layerGroup=function(t,i){return new zn(t,i)},t.map=function(t,i){return new Vi(t,i)},t.marker=function(t,i){return new On(t,i)},t.point=O,t.polygon=function(t,i){return new Rn(t,i)},t.polyline=function(t,i){return new Dn(t,i)},t.popup=function(t,i){return new is(t,i)},t.rectangle=function(t,i){return new ps(t,i)},t.setOptions=l,t.stamp=h,t.svg=ms,t.svgOverlay=function(t,i,n){return new Yn(t,i,n)},t.tileLayer=os,t.tooltip=function(t,i){return new ns(t,i)},t.transformation=V,t.version="1.9.4",t.videoOverlay=function(t,i,n){return new Qn(t,i,n)};var ks=window.L;t.noConflict=function(){return window.L=ks,this},window.L=t}(s.exports)),s.exports),h=i(e),o=t({__proto__:null,default:h},[e]);
|
|
2
|
+
/* @preserve
|
|
3
|
+
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
4
|
+
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
5
|
+
*/export{o as L,h as a,e as l}
|