From 2cd6276d36385d8ce57f154806e0738fdd3e3271 Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 2 Mar 2023 19:28:44 +0000 Subject: [PATCH 1/3] red icon if train late, green if not --- .idea/.gitignore | 5 + .idea/modules.xml | 8 + .idea/traintracker.iml | 12 ++ .idea/vcs.xml | 6 + ...{index-2cd109ed.css => index-debbf736.css} | 2 +- .../{index-e189e6d8.js => index-ed2bec8f.js} | 194 +++++++++--------- dist/index.html | 6 +- src/assets/green-train-solid.png | Bin 0 -> 3417 bytes src/assets/red-train-solid.png | Bin 0 -> 3395 bytes src/components/Map.vue | 36 +++- 10 files changed, 165 insertions(+), 104 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/modules.xml create mode 100644 .idea/traintracker.iml create mode 100644 .idea/vcs.xml rename dist/assets/{index-2cd109ed.css => index-debbf736.css} (99%) rename dist/assets/{index-e189e6d8.js => index-ed2bec8f.js} (72%) create mode 100644 src/assets/green-train-solid.png create mode 100644 src/assets/red-train-solid.png diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..b58b603 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..9e72ccf --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/traintracker.iml b/.idea/traintracker.iml new file mode 100644 index 0000000..0c8867d --- /dev/null +++ b/.idea/traintracker.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/dist/assets/index-2cd109ed.css b/dist/assets/index-debbf736.css similarity index 99% rename from dist/assets/index-2cd109ed.css rename to dist/assets/index-debbf736.css index 0583a07..9763754 100644 --- a/dist/assets/index-2cd109ed.css +++ b/dist/assets/index-debbf736.css @@ -1,4 +1,4 @@ -.overlay-content[data-v-e1bae6bd]{width:1%}.trainMapIcon[data-v-e1bae6bd]{height:32px;width:32px}.slideLeft-enter-active[data-v-e1bae6bd],.slideLeft-leave-active[data-v-e1bae6bd]{transition:opacity .5s;transition:all .8s}.slideLeft-enter-from[data-v-e1bae6bd],.slideLeft-leave-to[data-v-e1bae6bd]{opacity:0;transform:translate(-100px)}@keyframes gradient-e1bae6bd{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}#sidebar[data-v-e1bae6bd]{position:absolute;height:85%;width:20%;left:2%;top:12%;z-index:2;text-align:center;animation:gradient-e1bae6bd 15s ease infinite;background:linear-gradient(45deg,#000000,#111111,#222222,#333333,#444444,#555555);background-size:400%,400%;box-shadow:0 0 4px 2px #333}#sidebarDiv[data-v-e1bae6bd]{position:relative;height:100%;width:100%;color:#fff}#sidebarHeader[data-v-e1bae6bd]{position:relative;top:0%;height:10%;width:100%;overflow:hidden}#headerImage[data-v-e1bae6bd]{height:100%;width:auto;overflow:hidden}#xButton[data-v-e1bae6bd]{font-size:80%;font-family:Georgia;color:#fff;position:absolute;top:10px;right:10px}#xButton[data-v-e1bae6bd]:hover{color:red}#sidebarFooter[data-v-e1bae6bd]{position:relative;bottom:0%;height:10%;text-align:center;color:azure}#sidebarMain[data-v-e1bae6bd]{position:relative;height:80%;width:100%;overflow:hidden}#sidebarContent[data-v-e1bae6bd]{position:relative;size:6px;color:#fff;overflow-wrap:break-word;font-family:Georgia,Times New Roman,Times,serif}#mapDiv[data-v-e1bae6bd]{background-color:#000;position:absolute;float:right;right:0%;top:0%;width:100%;overflow:hidden;height:100%}#mapIFrame[data-v-e1bae6bd]{position:relative;height:100%;width:100%;top:0%;z-index:0}#buttonDiv[data-v-e1bae6bd]{position:absolute;float:right;right:10%;top:0%;width:10%;height:10px}#buttonElement[data-v-e1bae6bd]{position:relative;top:50%;left:50%;z-index:0}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid rgb(179,197,219);background-color:#fff6}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:rgba(0,60,136,.3);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid #eee;border-top:none;color:#eee;font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-step-marker{width:1px;height:15px;background-color:#000;float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:12px;z-index:11;color:#000;text-shadow:-2px 0 #FFFFFF,0 2px #FFFFFF,2px 0 #FFFFFF,0 -2px #FFFFFF}.ol-scale-text{position:absolute;font-size:14px;text-align:center;bottom:25px;color:#000;text-shadow:-2px 0 #FFFFFF,0 2px #FFFFFF,2px 0 #FFFFFF,0 -2px #FFFFFF}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid black}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.ol-viewport canvas{all:unset}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:#fff6;border-radius:4px;padding:2px}.ol-control:hover{background-color:#fff9}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:#fff;font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:#003c8880;border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;font-size:1.2em;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;background-color:#003c88b3}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:#003c88b3;text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:#000;text-shadow:0 0 2px #fff;font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:rgba(255,255,255,.8)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid #7b98bc;height:150px;margin:2px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:2px;left:2px;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:rgba(255,255,255,.8)}.ol-overviewmap-box{border:2px dotted rgba(0,60,136,.7)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-control i{cursor:default}.ol-control.ol-bar{left:50%;min-height:1em;min-width:1em;position:absolute;top:.5em;transform:translate(-50%);-webkit-transform:translate(-50%,0);white-space:nowrap}.ol-control.ol-toggle .ol-option-bar{display:none}.ol-control.ol-bar .ol-control{position:relative;top:auto;left:auto;right:auto;bottom:auto;display:inline-block;vertical-align:middle;background-color:transparent;padding:0;margin:0;transform:none;-webkit-transform:none}.ol-control.ol-bar .ol-bar{position:static}.ol-control.ol-bar .ol-control button{margin:2px 1px;outline:none}.ol-control.ol-bar.ol-left{left:.5em;top:50%;-webkit-transform:translate(0px,-50%);transform:translateY(-50%)}.ol-control.ol-bar.ol-left .ol-control{display:block}.ol-control.ol-bar.ol-right{left:auto;right:.5em;top:50%;-webkit-transform:translate(0px,-50%);transform:translateY(-50%)}.ol-control.ol-bar.ol-right .ol-control{display:block}.ol-control.ol-bar.ol-bottom{top:auto;bottom:.5em}.ol-control.ol-bar.ol-top.ol-left,.ol-control.ol-bar.ol-top.ol-right{top:4.5em;-webkit-transform:none;transform:none}.ol-touch .ol-control.ol-bar.ol-top.ol-left,.ol-touch .ol-control.ol-bar.ol-top.ol-right{top:5.5em}.ol-control.ol-bar.ol-bottom.ol-left,.ol-control.ol-bar.ol-bottom.ol-right{top:auto;bottom:.5em;-webkit-transform:none;transform:none}.ol-control.ol-bar.ol-group{margin:1px 1px 1px 0}.ol-control.ol-bar.ol-right .ol-group,.ol-control.ol-bar.ol-left .ol-group{margin:1px 1px 0}.ol-control.ol-bar.ol-group button{border-radius:0;margin:0 0 0 1px}.ol-control.ol-bar.ol-right.ol-group button,.ol-control.ol-bar.ol-left.ol-group button,.ol-control.ol-bar.ol-right .ol-group button,.ol-control.ol-bar.ol-left .ol-group button{margin:0 0 1px}.ol-control.ol-bar.ol-group .ol-control:first-child>button{border-radius:5px 0 0 5px}.ol-control.ol-bar.ol-group .ol-control:last-child>button{border-radius:0 5px 5px 0}.ol-control.ol-bar.ol-left.ol-group .ol-control:first-child>button,.ol-control.ol-bar.ol-right.ol-group .ol-control:first-child>button,.ol-control.ol-bar.ol-left .ol-group .ol-control:first-child>button,.ol-control.ol-bar.ol-right .ol-group .ol-control:first-child>button{border-radius:5px 5px 0 0}.ol-control.ol-bar.ol-left.ol-group .ol-control:last-child>button,.ol-control.ol-bar.ol-right.ol-group .ol-control:last-child>button,.ol-control.ol-bar.ol-left .ol-group .ol-control:last-child>button,.ol-control.ol-bar.ol-right .ol-group .ol-control:last-child>button{border-radius:0 0 5px 5px}.ol-control.ol-bar .ol-rotate{opacity:1;visibility:visible}.ol-control.ol-bar .ol-rotate button{display:block}.ol-control.ol-bar .ol-toggle.ol-active>button{background-color:#3c8800b3}.ol-control.ol-bar .ol-toggle.ol-active button:hover{background-color:#3c8800b3}.ol-control.ol-toggle button:disabled{background-color:#003c884d}.ol-control.ol-bar .ol-control.ol-option-bar{display:none;position:absolute;top:100%;left:0;margin:5px 0;border-radius:0;background-color:#fffc;-webkit-box-shadow:0 0 0 1px rgba(0,60,136,.5),1px 1px 2px rgba(0,0,0,.5);box-shadow:0 0 0 1px #003c8880,1px 1px 2px #00000080}.ol-control.ol-bar .ol-option-bar:before{content:"";border:.5em solid transparent;border-color:transparent transparent rgba(0,60,136,.5);position:absolute;bottom:100%;left:.3em}.ol-control.ol-bar .ol-option-bar .ol-control{display:table-cell}.ol-control.ol-bar .ol-control .ol-bar{display:none}.ol-control.ol-bar .ol-control.ol-active>.ol-option-bar{display:block}.ol-control.ol-bar .ol-control.ol-collapsed ul{display:none}.ol-control.ol-bar .ol-control.ol-text-button>div:hover,.ol-control.ol-bar .ol-control.ol-text-button>div{background-color:transparent;color:#003c8880;width:auto;min-width:1.375em;margin:0}.ol-control.ol-bar .ol-control.ol-text-button{font-size:.9em;border-left:1px solid rgba(0,60,136,.8);border-radius:0}.ol-control.ol-bar .ol-control.ol-text-button:first-child{border-left:0}.ol-control.ol-bar .ol-control.ol-text-button>div{padding:.11em .3em;font-weight:400;font-size:1.14em;font-family:Arial,Helvetica,sans-serif}.ol-control.ol-bar .ol-control.ol-text-button div:hover{color:#003c88}.ol-control.ol-bar.ol-bottom .ol-option-bar{top:auto;bottom:100%}.ol-control.ol-bar.ol-bottom .ol-option-bar:before{border-color:rgba(0,60,136,.5) transparent transparent;bottom:auto;top:100%}.ol-control.ol-bar.ol-left .ol-option-bar{left:100%;top:0;bottom:auto;margin:0 5px}.ol-control.ol-bar.ol-left .ol-option-bar:before{border-color:transparent rgba(0,60,136,.5) transparent transparent;bottom:auto;right:100%;left:auto;top:.3em}.ol-control.ol-bar.ol-right .ol-option-bar{right:100%;left:auto;top:0;bottom:auto;margin:0 5px}.ol-control.ol-bar.ol-right .ol-option-bar:before{border-color:transparent transparent transparent rgba(0,60,136,.5);bottom:auto;left:100%;top:.3em}.ol-control.ol-bar.ol-left .ol-option-bar .ol-option-bar,.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar{top:100%;bottom:auto;left:.3em;right:auto;margin:5px 0}.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar{right:.3em;left:auto}.ol-control.ol-bar.ol-left .ol-option-bar .ol-option-bar:before,.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar:before{border-color:transparent transparent rgba(0,60,136,.5);bottom:100%;top:auto;left:.3em;right:auto}.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar:before{right:.3em;left:auto}.ol-control-title{position:absolute;top:0;left:0;right:0}.ol-center-position{position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);background-color:#fffc;padding:.1em 1em}.ol-compassctrl{display:none;top:1em;left:auto;right:1em}.ol-compassctrl.ol-visible{display:block!important}.ol-ext-dialog{position:fixed;top:-100%;left:0;width:150%;height:100%;opacity:0;background-color:#00000080;z-index:1000;pointer-events:none!important;-webkit-transition:opacity .2s,top 0s .2s;transition:opacity .2s,top 0s .2s}.ol-ext-dialog.ol-visible{opacity:1;top:0;pointer-events:all!important;-webkit-transition:opacity .2s,top 0s;transition:opacity .2s,top 0s}.ol-viewport .ol-ext-dialog{position:absolute}.ol-ext-dialog>form>h2{margin:0 .5em .5em 0;display:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ol-ext-dialog>form.ol-title>h2{display:block}.ol-ext-dialog>form{position:absolute;top:0;left:33.33%;min-width:5em;max-width:60%;min-height:3em;max-height:100%;background-color:#fff;border:1px solid #333;-webkit-box-shadow:3px 3px 4px rgba(0,0,0,.5);box-shadow:3px 3px 4px #00000080;-webkit-transform:translate(-50%,-30%);transform:translate(-50%,-30%);-webkit-transition:top .2s,-webkit-transform .2s;transition:top .2s,-webkit-transform .2s;transition:top .2s,transform .2s;transition:top .2s,transform .2s,-webkit-transform .2s;padding:1em;-webkit-box-sizing:border-box;box-sizing:border-box;overflow-x:hidden;overflow-y:auto}.ol-ext-dialog>form.ol-closebox{padding-top:1.5em}.ol-ext-dialog>form.ol-title{padding-top:1em}.ol-ext-dialog>form.ol-button{padding-bottom:.5em}.ol-ext-dialog.ol-zoom>form{top:30%;-webkit-transform:translate(-50%,-30%) scale(0);transform:translate(-50%,-30%) scale(0)}.ol-ext-dialog.ol-visible>form{top:30%}.ol-ext-dialog.ol-zoom.ol-visible>form{-webkit-transform:translate(-50%,-30%) scale(1);transform:translate(-50%,-30%) scale(1)}.ol-ext-dialog>form .ol-content{overflow-x:hidden;overflow-y:auto}.ol-ext-dialog>form .ol-closebox{position:absolute;top:.5em;right:.5em;width:1em;height:1em;cursor:pointer;display:none}.ol-ext-dialog>form.ol-closebox .ol-closebox{display:block}.ol-ext-dialog>form .ol-closebox:before,.ol-ext-dialog>form .ol-closebox:after{content:"";position:absolute;background-color:currentColor;top:50%;left:50%;width:1em;height:.1em;border-radius:.1em;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.ol-ext-dialog>form .ol-closebox:before{-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-ext-dialog>form .ol-buttons{text-align:right;overflow-x:hidden}.ol-ext-dialog>form .ol-buttons input{margin-top:.5em;padding:.5em;background:none;border:0;font-size:1em;color:#003c88;cursor:pointer;border-radius:.25em;outline-width:0}.ol-ext-dialog>form .ol-buttons input:hover{background-color:#003c881a}.ol-ext-dialog>form .ol-buttons input[type=submit]{font-weight:700}.ol-ext-dialog .ol-progress-message{font-size:.9em;text-align:center;padding-bottom:.5em}.ol-ext-dialog .ol-progress-bar{border:1px solid #369;width:20em;height:1em;max-width:100%;padding:2px;margin:.5em auto 0;overflow:hidden}.ol-ext-dialog .ol-progress-bar>div{background:#369;height:100%;width:50%;-webkit-transition:width .3s;transition:width .3s}.ol-ext-dialog .ol-progress-bar>div.notransition{-webkit-transition:unset;transition:unset}.ol-ext-dialog.ol-fullscreen-dialog form{top:1em;-webkit-transform:none;transform:none;left:1em;bottom:1em;right:1em;max-width:calc(66.6% - 2em);text-align:center;background:transparent;-webkit-box-shadow:none;box-shadow:none;border:none;color:#fff}.ol-ext-dialog.ol-fullscreen-dialog form .ol-closebox{top:0;right:0;font-size:2em}.ol-ext-dialog.ol-fullscreen-dialog .ol-closebox:before,.ol-ext-dialog.ol-fullscreen-dialog .ol-closebox:after{border:.1em solid currentColor}.ol-ext-dialog.ol-fullscreen-dialog img,.ol-ext-dialog.ol-fullscreen-dialog video{max-width:100%}body>.ol-ext-dialog .ol-content{max-height:calc(100vh - 10em)}body>.ol-ext-dialog>form{overflow:visible}.ol-editbar .ol-button button{position:relative;display:inline-block;font-style:normal;-webkit-box-sizing:border-box;box-sizing:border-box;vertical-align:middle}.ol-editbar .ol-button button:before,.ol-editbar .ol-button button:after{content:"";border-width:0;position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:currentColor}.ol-editbar .ol-button button:focus{outline:none}.ol-editbar .ol-selection>button:before{width:.6em;height:1em;background-color:transparent;border:.5em solid currentColor;border-width:0 .25em .65em;border-color:currentColor transparent;-webkit-box-shadow:0 .6em 0 -.23em;box-shadow:0 .6em 0 -.23em;top:.35em;left:.5em;-webkit-transform:translate(-50%,-50%) rotate(-30deg);transform:translate(-50%,-50%) rotate(-30deg)}.ol-editbar .ol-selection0>button:after{width:.28em;height:.6em;background-color:transparent;border:.5em solid currentColor;border-width:0 .05em .7em;border-color:currentColor transparent;top:.5em;left:.7em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.ol-editbar .ol-delete button:after,.ol-editbar .ol-delete button:before{width:1em;height:.2em;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.ol-editbar .ol-delete button:after{-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-editbar .ol-info button:before{width:.25em;height:.6em;border-radius:.03em;top:.47em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-info button:after{width:.25em;height:.2em;border-radius:.03em;-webkit-box-shadow:-.1em .35em,-.1em .82em,.1em .82em;box-shadow:-.1em .35em,-.1em .82em,.1em .82em;top:.12em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-drawpoint button:before{width:.7em;height:.7em;border-radius:50%;border:.15em solid currentColor;background-color:transparent;top:.2em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-drawpoint button:after{width:.4em;height:.4em;border:.15em solid currentColor;border-color:currentColor transparent;border-width:.4em .2em 0;background-color:transparent;top:.8em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-drawline>button:before,.ol-editbar .ol-drawpolygon>button:before,.ol-editbar .ol-drawhole>button:before{width:.8em;height:.8em;border:.13em solid currentColor;background-color:transparent;border-width:.2em .13em .09em;top:.2em;left:.25em;-webkit-transform:rotate(10deg) perspective(1em) rotateX(40deg);transform:rotate(10deg) perspective(1em) rotateX(40deg)}.ol-editbar .ol-drawline>button:before{border-bottom:0}.ol-editbar .ol-drawline>button:after,.ol-editbar .ol-drawhole>button:after,.ol-editbar .ol-drawpolygon>button:after{width:.3em;height:.3em;top:.2em;left:.25em;-webkit-box-shadow:-.2em .55em,.6em .1em,.65em .7em;box-shadow:-.2em .55em,.6em .1em,.65em .7em}.ol-editbar .ol-drawhole>button:after{-webkit-box-shadow:-.2em .55em,.6em .1em,.65em .7em,.25em .35em;box-shadow:-.2em .55em,.6em .1em,.65em .7em,.25em .35em}.ol-editbar .ol-offset>button i,.ol-editbar .ol-transform>button i{position:absolute;width:.9em;height:.9em;overflow:hidden;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-editbar .ol-offset>button i{width:.8em;height:.8em}.ol-editbar .ol-offset>button i:before,.ol-editbar .ol-transform>button i:before,.ol-editbar .ol-transform>button i:after{content:"";height:1em;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg);-webkit-box-shadow:.5em 0 0 .1em,-.5em 0 0 .1em;box-shadow:.5em 0 0 .1em,-.5em 0 0 .1em;width:.1em;position:absolute;background-color:currentColor}.ol-editbar .ol-offset>button i:before{-webkit-box-shadow:.45em 0 0 .1em,-.45em 0 0 .1em;box-shadow:.45em 0 0 .1em,-.45em 0 0 .1em}.ol-editbar .ol-transform>button i:after{-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-editbar .ol-split>button:before{width:.3em;height:.3em;top:.81em;left:.75em;border-radius:50%;-webkit-box-shadow:.1em -.4em,-.15em -.25em;box-shadow:.1em -.4em,-.15em -.25em}.ol-editbar .ol-split>button:after{width:.8em;height:.8em;top:.15em;left:-.1em;border:.1em solid currentColor;border-width:0 .2em .2em 0;background-color:transparent;border-radius:.1em;-webkit-transform:rotate(20deg) scaleY(.6) rotate(-45deg);transform:rotate(20deg) scaleY(.6) rotate(-45deg)}.ol-editbar .ol-drawregular>button:before{width:.9em;height:.9em;top:50%;left:50%;border:.1em solid currentColor;background-color:transparent;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-editbar .ol-drawregular .ol-bar .ol-text-button>div>div>div{border:.5em solid currentColor;border-color:transparent currentColor;display:inline-block;cursor:pointer;vertical-align:text-bottom}.ol-editbar .ol-drawregular .ol-bar:before,.ol-control.ol-bar.ol-editbar .ol-drawregular .ol-bar{left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-drawregular .ol-bar .ol-text-button{min-width:6em;text-align:center}.ol-editbar .ol-drawregular .ol-bar .ol-text-button>div>div>div:first-child{border-width:.5em .5em .5em 0;margin:0 .5em 0 0}.ol-editbar .ol-drawregular .ol-bar .ol-text-button>div>div>div:last-child{border-width:.5em 0 .5em .5em;margin:0 0 0 .5em}.ol-gauge{top:.5em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-gauge>*{display:inline-block;vertical-align:middle}.ol-gauge>span{margin:0 .5em}.ol-gauge>div{display:inline-block;width:200px;border:1px solid rgba(0,60,136,.5);border-radius:3px;padding:1px}.ol-gauge button{height:.8em;margin:0;max-width:100%}.ol-control.ol-bookmark{top:.5em;left:3em}.ol-control.ol-bookmark button{position:relative}.ol-control.ol-bookmark>button:before{content:"";position:absolute;border-width:10px 5px 4px;border-style:solid;border-color:#fff;border-bottom-color:transparent;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);height:0}.ol-control.ol-bookmark>div{display:none;min-width:5em}.ol-control.ol-bookmark input{font-size:.9em;margin:.1em 0;padding:0 .5em}.ol-control.ol-bookmark ul{margin:0;padding:0;list-style:none;min-width:10em}.ol-control.ol-bookmark li{color:#003c88cc;font-size:.9em;padding:0 .2em 0 .5em;cursor:default;clear:both}.ol-control.ol-bookmark li:hover{background-color:#003c8880;color:#fff}.ol-control.ol-bookmark>div button{width:1em;height:.8em;float:right;background-color:transparent;cursor:pointer;border-radius:0}.ol-control.ol-bookmark>div button:before{content:"\2a2f";color:#936;font-size:1.2em;line-height:1em;border-radius:0;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-bookmark ul li button,.ol-bookmark input{display:none}.ol-bookmark.ol-editable ul li button,.ol-bookmark.ol-editable input{display:block}.ol-control.ol-geobt{top:auto;left:auto;right:.5em;bottom:3em}.ol-touch .ol-control.ol-geobt{bottom:3.5em}.ol-control.ol-geobt button:before{content:"";position:absolute;background:transparent;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border:.16em solid currentColor;width:.4em;height:.4em;border-radius:50%}.ol-control.ol-geobt button:after{content:"";position:absolute;width:.2em;height:.2em;background:transparent;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-box-shadow:.42em 0,-.42em 0,0 .42em,0 -.42em;box-shadow:.42em 0,-.42em 0,0 .42em,0 -.42em}.ol-control.ol-bar.ol-geobar .ol-control{display:inline-block;vertical-align:middle}.ol-control.ol-bar.ol-geobar .ol-bar{display:none}.ol-bar.ol-geobar.ol-active .ol-bar{display:inline-block}.ol-bar.ol-geobar .geolocBt button:before,.ol-bar.ol-geobar .geolocBt button:after{content:"";display:block;position:absolute;border:1px solid transparent;border-width:.3em .8em 0 .2em;border-color:#fff transparent transparent;-webkit-transform:rotate(-30deg);transform:rotate(-30deg);top:.45em;left:.15em;font-size:1.2em}.ol-bar.ol-geobar .geolocBt button:after{border-width:0 .8em .3em .2em;border-color:transparent transparent #fff;-webkit-transform:rotate(-61deg);transform:rotate(-61deg)}.ol-bar.ol-geobar .startBt button:before{content:"";display:block;position:absolute;width:1em;height:1em;background-color:#800;border-radius:50%;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-bar.ol-geobar .pauseBt button:before,.ol-bar.ol-geobar .pauseBt button:after{content:"";display:block;position:absolute;width:.25em;height:1em;background-color:#fff;top:50%;left:35%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-bar.ol-geobar .pauseBt button:after{left:65%}.ol-control.ol-bar.ol-geobar .centerBt,.ol-control.ol-bar.ol-geobar .pauseBt,.ol-bar.ol-geobar.pauseTrack .startBt,.ol-bar.ol-geobar.centerTrack .startBt,.ol-bar.ol-geobar.centerTrack.pauseTrack .pauseBt,.ol-bar.ol-geobar.centerTrack .pauseBt{display:none}.ol-bar.ol-geobar.pauseTrack .pauseBt,.ol-bar.ol-geobar.centerTrack .centerBt{display:inline-block}.ol-control.ol-globe{position:absolute;left:.5em;bottom:.5em;border-radius:50%;opacity:.7;transform:scale(.5);transform-origin:0 100%;-webkit-transform:scale(.5);-webkit-transform-origin:0 100%}.ol-control.ol-globe:hover{opacity:.9}.ol-control.ol-globe .panel{display:block;width:170px;height:170px;background-color:#fff;cursor:pointer;border-radius:50%;overflow:hidden;-webkit-box-shadow:0 0 10px 5px rgba(255,255,255,.5);box-shadow:0 0 10px 5px #ffffff80}.ol-control.ol-globe .panel .ol-viewport{border-radius:50%}.ol-control.ol-globe .ol-pointer{display:block;background-color:#fff;width:10px;height:10px;border:10px solid red;position:absolute;top:50%;left:50%;transform:translate(-15px,-40px);-webkit-transform:translate(-15px,-40px);border-radius:50%;z-index:1;transition:opacity .15s,top 0s,left 0s;-webkit-transition:opacity .15s,top 0s,left 0s}.ol-control.ol-globe .ol-pointer.hidden{opacity:0;transition:opacity .15s,top 3s,left 5s;-webkit-transition:opacity .15s,top 3s,left 5s}.ol-control.ol-globe .ol-pointer:before{border-radius:50%;-webkit-box-shadow:6px 6px 10px 5px #000;box-shadow:6px 6px 10px 5px #000;content:"";display:block;height:0;left:0;position:absolute;top:23px;width:0}.ol-control.ol-globe .ol-pointer:after{content:"";width:0;height:0;display:block;position:absolute;border-width:20px 10px 0;border-color:red transparent;border-style:solid;left:-50%;top:100%}.ol-control.ol-globe .panel:before{border-radius:50%;-webkit-box-shadow:-20px -20px 80px 2px rgba(0,0,0,.7) inset;box-shadow:-20px -20px 80px 2px #000000b3 inset;content:"";display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:1}.ol-control.ol-globe .panel:after{border-radius:50%;-webkit-box-shadow:0 0 20px 7px rgba(255,255,255,1);box-shadow:0 0 20px 7px #fff;content:"";display:block;height:0;left:23%;position:absolute;top:20%;-webkit-transform:rotate(-40deg);transform:rotate(-40deg);width:20%;z-index:1}.ol-control.ol-globe.ol-collapsed .panel{display:none}.ol-control-top.ol-globe{bottom:auto;top:5em;transform-origin:0 0;-webkit-transform-origin:0 0}.ol-control-right.ol-globe{left:auto;right:.5em;transform-origin:100% 100%;-webkit-transform-origin:100% 100%}.ol-control-right.ol-control-top.ol-globe{left:auto;right:.5em;transform-origin:100% 0;-webkit-transform-origin:100% 0}.ol-gridreference{background:#fff;border:1px solid #000;overflow:auto;max-height:100%;top:0;right:0}.ol-gridreference input{width:100%}.ol-gridreference ul{margin:0;padding:0;list-style:none}.ol-gridreference li{padding:0 .5em;cursor:pointer}.ol-gridreference ul li:hover{background-color:#ccc}.ol-gridreference li.ol-title,.ol-gridreference li.ol-title:hover{background:rgba(0,60,136,.5);color:#fff;cursor:default}.ol-gridreference ul li .ol-ref{margin-left:.5em}.ol-gridreference ul li .ol-ref:before{content:"("}.ol-gridreference ul li .ol-ref:after{content:")"}.ol-control.ol-imageline{bottom:0;left:0;right:0;padding:0;overflow:visible;-webkit-transition:.3s;transition:.3s;border-radius:0}.ol-control.ol-imageline.ol-collapsed{-webkit-transform:translateY(100%);transform:translateY(100%)}.ol-imageline>div{height:4em;position:relative;white-space:nowrap;scroll-behavior:smooth;overflow:hidden;width:100%}.ol-imageline>div.ol-move{scroll-behavior:unset}.ol-control.ol-imageline button{position:absolute;top:-1em;-webkit-transform:translateY(-100%);transform:translateY(-100%);margin:.65em;-webkit-box-shadow:0 0 0 .15em rgba(255,255,255,.4);box-shadow:0 0 0 .15em #fff6}.ol-control.ol-imageline button:before{content:"";position:absolute;-webkit-transform:translate(-50%,-50%) rotate(135deg);transform:translate(-50%,-50%) rotate(135deg);top:40%;left:50%;width:.4em;height:.4em;border:.1em solid currentColor;border-width:.15em .15em 0 0}.ol-control.ol-imageline.ol-collapsed button:before{top:60%;-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-imageline,.ol-imageline:hover{background-color:#000000bf}.ol-imageline.ol-arrow:after,.ol-imageline.ol-arrow:before{content:"";position:absolute;top:50%;left:.2em;border-color:#fff #000;border-width:1em .6em 1em 0;border-style:solid;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:1;opacity:.8;pointer-events:none;-webkit-box-shadow:-.6em 0 0 1em #fff;box-shadow:-.6em 0 0 1em #fff}.ol-imageline.ol-arrow:after{border-width:1em 0 1em .6em;left:auto;right:.2em;-webkit-box-shadow:.6em 0 0 1em #fff;box-shadow:.6em 0 0 1em #fff}.ol-imageline.ol-scroll0.ol-arrow:before{display:none}.ol-imageline.ol-scroll1.ol-arrow:after{display:none}.ol-imageline .ol-image{position:relative;height:100%;display:inline-block;cursor:pointer}.ol-imageline img{max-height:100%;border:.25em solid transparent;-webkit-box-sizing:border-box;box-sizing:border-box;opacity:0;-webkit-transition:1s;transition:1s}.ol-imageline img.ol-loaded{opacity:1}.ol-imageline .ol-image.select{background-color:#fff}.ol-imageline .ol-image span{position:absolute;width:125%;max-height:2.4em;left:50%;bottom:0;display:none;color:#fff;background-color:#00000080;font-size:.8em;overflow:hidden;white-space:normal;text-align:center;line-height:1.2em;-webkit-transform:translateX(-50%) scaleX(.8);transform:translate(-50%) scaleX(.8)}.ol-imageline .ol-image:hover span{display:block}.ol-control.ol-routing.ol-isochrone .ol-method-time,.ol-control.ol-routing.ol-isochrone .ol-method-distance,.ol-control.ol-routing.ol-isochrone>button{position:relative}.ol-control.ol-routing.ol-isochrone .ol-method-time:before,.ol-control.ol-routing.ol-isochrone>button:before{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border:.1em solid currentColor;width:.8em;height:.8em;border-radius:50%;-webkit-box-shadow:0 -.5em 0 -.35em,.4em -.35em 0 -.35em;box-shadow:0 -.5em 0 -.35em,.4em -.35em 0 -.35em;clip:unset}.ol-control.ol-routing.ol-isochrone .ol-method-time:after,.ol-control.ol-routing.ol-isochrone>button:after{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(-60deg);transform:translate(-50%,-50%) rotate(-60deg);border-radius:50%;border:.3em solid transparent;border-right-color:currentColor;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;clip:unset}.ol-control.ol-routing.ol-isochrone .ol-method-distance:before{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(-30deg);transform:translate(-50%,-50%) rotate(-30deg);width:1em;height:.5em;border:.1em solid currentColor;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-control.ol-routing.ol-isochrone .ol-method-distance:after{content:"";position:absolute;width:.1em;height:.15em;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(-30deg);transform:translate(-50%,-50%) rotate(-30deg);-webkit-box-shadow:inset 0 -.15em,0 .1em,.25em .1em,-.25em .1em;box-shadow:inset 0 -.15em,0 .1em,.25em .1em,-.25em .1em}.ol-control.ol-routing.ol-isochrone .ol-direction-direct:before,.ol-control.ol-routing.ol-isochrone .ol-direction-reverse:before{content:"";position:absolute;top:50%;left:30%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:.3em;height:.3em;border-radius:50%;border:.1em solid currentColor;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:.25em 0 0 -.05em;box-shadow:.25em 0 0 -.05em}.ol-control.ol-routing.ol-isochrone .ol-direction-direct:after,.ol-control.ol-routing.ol-isochrone .ol-direction-reverse:after{content:"";position:absolute;top:50%;left:70%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border:.4em solid transparent;border-width:.4em 0 .4em .4em;border-color:transparent currentColor}.ol-control.ol-routing.ol-isochrone .ol-direction-reverse:after{border-width:.4em .4em .4em 0}.ol-control.ol-isochrone.ol-collapsed .content{display:none}.ol-control.ol-isochrone input[type=number]{width:3em;text-align:right;margin:0 .1em}.ol-control.ol-isochrone .ol-distance input[type=number]{width:5em}.ol-isochrone .ol-time,.ol-isochrone .ol-distance{display:none}.ol-isochrone .ol-time.selected,.ol-isochrone .ol-distance.selected{display:block}.ol-control.ol-layerswitcher-popup{position:absolute;right:.5em;text-align:left;top:3em}.ol-control.ol-layerswitcher-popup .panel{clear:both;background:#fff}.ol-layerswitcher-popup .panel{list-style:none;padding:.25em;margin:0;overflow:hidden}.ol-layerswitcher-popup .panel ul{list-style:none;padding:0 0 0 20px;overflow:hidden}.ol-layerswitcher-popup.ol-collapsed .panel{display:none}.ol-layerswitcher-popup.ol-forceopen .panel{display:block}.ol-layerswitcher-popup button{background-color:#fff;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAACE1BMVEX///8A//8AgICA//8AVVVAQID///8rVVVJtttgv98nTmJ2xNgkW1ttyNsmWWZmzNZYxM4gWGgeU2JmzNNr0N1Rwc0eU2VXxdEhV2JqytQeVmMhVmNoydUfVGUgVGQfVGQfVmVqy9hqy9dWw9AfVWRpydVry9YhVmMgVGNUw9BrytchVWRexdGw294gVWQgVmUhVWPd4N6HoaZsy9cfVmQgVGRrytZsy9cgVWQgVWMgVWRsy9YfVWNsy9YgVWVty9YgVWVry9UgVWRsy9Zsy9UfVWRsy9YgVWVty9YgVWRty9Vsy9aM09sgVWRTws/AzM0gVWRtzNYgVWRuy9Zsy9cgVWRGcHxty9bb5ORbxdEgVWRty9bn6OZTws9mydRfxtLX3Nva5eRix9NFcXxOd4JPeINQeIMiVmVUws9Vws9Vw9BXw9BYxNBaxNBbxNBcxdJexdElWWgmWmhjyNRlx9IqXGtoipNpytVqytVryNNrytZsjZUuX210k5t1y9R2zNR3y9V4lp57zth9zdaAnKOGoaeK0NiNpquV09mesrag1tuitbmj1tuj19uktrqr2d2svcCu2d2xwMO63N+7x8nA3uDC3uDFz9DK4eHL4eLN4eIyYnDX5OM5Z3Tb397e4uDf4uHf5uXi5ePi5+Xj5+Xk5+Xm5+Xm6OY6aHXQ19fT4+NfhI1Ww89gx9Nhx9Nsy9ZWw9Dpj2abAAAAWnRSTlMAAQICAwQEBgcIDQ0ODhQZGiAiIyYpKywvNTs+QklPUlNUWWJjaGt0dnd+hIWFh4mNjZCSm6CpsbW2t7nDzNDT1dje5efr7PHy9PT29/j4+Pn5+vr8/f39/f6DPtKwAAABTklEQVR4Xr3QVWPbMBSAUTVFZmZmhhSXMjNvkhwqMzMzMzPDeD+xASvObKePPa+ffHVl8PlsnE0+qPpBuQjVJjno6pZpSKXYl7/bZyFaQxhf98hHDKEppwdWIW1frFnrxSOWHFfWesSEWC6R/P4zOFrix3TzDFLlXRTR8c0fEEJ1/itpo7SVO9Jdr1DVxZ0USyjZsEY5vZfiiAC0UoTGOrm9PZLuRl8X+Dq1HQtoFbJZbv61i+Poblh/97TC7n0neCcK0ETNUrz1/xPHf+DNAW9Ac6t8O8WH3Vp98f5lCaYKAOFZMLyHL4Y0fe319idMNgMMp+zWVSybUed/+/h7I4wRAG1W6XDy4XmjR9HnzvDRZXUAYDFOhC1S/Hh+fIXxen+eO+AKqbs+wAo30zDTDvDxKoJN88sjUzDFAvBzEUGFsnADoIvAJzoh2BZ8sner+Ke/vwECuQAAAABJRU5ErkJggg==);background-position:center;background-repeat:no-repeat;float:right;height:38px;width:38px}.ol-layerswitcher-popup li{color:#369;padding:.25em 1em;font-family:Trebuchet MS,Helvetica,sans-serif;cursor:pointer}.ol-layerswitcher-popup li.ol-header{display:none}.ol-layerswitcher-popup li.select,.ol-layerswitcher-popup li.ol-visible{background:rgba(0,60,136,.7);color:#fff}.ol-layerswitcher-popup li:hover{background:rgba(0,60,136,.9);color:#fff}.ol-control.ol-layerswitcher.ol-layer-shop{height:calc(100% - 4em);max-height:unset;max-width:16em;background-color:transparent;pointer-events:none!important;overflow:visible}.ol-control.ol-layerswitcher>*{pointer-events:auto}.ol-control.ol-layer-shop>button,.ol-control.ol-layer-shop .panel-container{-webkit-box-shadow:0 0 0 3px rgba(255,255,255,.5);box-shadow:0 0 0 3px #ffffff80}.ol-control.ol-layerswitcher.ol-layer-shop .panel-container{overflow-y:scroll;max-height:calc(100% - 6.5em);border:2px solid #369;border-width:2px 0;padding:0}.ol-control.ol-layer-shop .panel{padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;margin:.25em .5em}.ol-control.ol-layerswitcher.ol-layer-shop .panel-container.ol-scrolldiv{overflow:hidden}.ol-control.ol-layer-shop .ol-scroll{background-color:#0000004d;opacity:.5}.ol-layerswitcher.ol-layer-shop ul.panel li.ol-header{display:none}.ol-layerswitcher.ol-layer-shop ul.panel li{margin-right:0;padding-right:0}.ol-layerswitcher.ol-layer-shop .layerup{height:1.5em;width:1.4em;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:3px;background-color:transparent;color:#003c88}.ol-layerswitcher.ol-layer-shop .layerup:hover{background-color:#003c884d}.ol-layerswitcher.ol-layer-shop .layerup:before{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border:0;background-color:currentColor;width:1em;height:2px;-webkit-box-shadow:0 -4px,0 4px;box-shadow:0 -4px,0 4px}.ol-layerswitcher.ol-layer-shop .layerup:after{content:unset}.ol-control.ol-layer-shop .ol-title-bar{background-color:#ffffff80;font-size:.9em;height:calc(2.8em - 4px);max-width:14.6em;padding:.7em .5em;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;-webkit-transform:scaleY(1.1);transform:scaleY(1.1);-webkit-transition:width 0s,-webkit-transform .1s;transition:width 0s,-webkit-transform .1s;transition:transform .1s,width 0s;transition:transform .1s,width 0s,-webkit-transform .1s;-webkit-transform-origin:100% 0;transform-origin:100% 0}.ol-control.ol-layer-shop:hover .ol-title-bar{background-color:#ffffffb3}.ol-control.ol-layer-shop.ol-collapsed .ol-title-bar{max-width:10em;-webkit-transform:scale(.9,1.1);transform:scale(.9,1.1)}.ol-control.ol-layer-shop.ol-forceopen .ol-title-bar{max-width:14.6em;-webkit-transform:scaleY(1.1);transform:scaleY(1.1)}.ol-control.ol-layer-shop .ol-bar{position:relative;height:1.75em;clear:both;-webkit-box-shadow:0 0 0 3px rgba(255,255,255,.5);box-shadow:0 0 0 3px #ffffff80;background-color:#fff;text-align:right;z-index:10}.ol-control.ol-layer-shop.ol-collapsed .ol-scroll,.ol-control.ol-layer-shop.ol-collapsed .ol-bar{border-width:2px 0 0;display:none}.ol-control.ol-layer-shop.ol-forceopen .ol-scroll,.ol-control.ol-layer-shop.ol-forceopen .ol-bar{display:block}.ol-control.ol-layer-shop .ol-bar>*{font-size:.9em;display:inline-block;vertical-align:middle;margin-top:.25em;background-color:transparent}.ol-layer-shop .ol-bar .ol-button,.ol-touch .ol-layer-shop .ol-bar .ol-button{position:relative;top:unset;left:unset;bottom:unset;right:unset;margin:0}.ol-layer-shop .ol-bar button{background-color:#fff;color:#003c88}.ol-layer-shop .ol-bar button:hover{background-color:#003c8833}.ol-touch .ol-layerswitcher.ol-layer-shop>button{font-size:1.7em}.ol-touch .ol-layer-shop .ol-bar{height:2em}.ol-touch .ol-layer-shop .ol-control button{font-size:1.4em}.ol-touch .ol-control.ol-layer-shop .panel{max-height:calc(100% - 7em)}.ol-touch .ol-control.ol-layer-shop .panel label{height:1.8em}.ol-touch .ol-control.ol-layer-shop .panel label span{margin-left:.5em;padding-top:.25em}.ol-touch .ol-control.ol-layer-shop .panel label:before,.ol-touch .ol-control.ol-layer-shop .panel label:after{font-size:1.3em;z-index:1}.ol-control.ol-layerswitcher{position:absolute;right:.5em;text-align:left;top:3em;max-height:calc(100% - 6em);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.ol-control.ol-layerswitcher .ol-switchertopdiv,.ol-control.ol-layerswitcher .ol-switcherbottomdiv{display:block}.ol-control.ol-layerswitcher.ol-collapsed .ol-switchertopdiv,.ol-control.ol-layerswitcher.ol-collapsed .ol-switcherbottomdiv{display:none}.ol-layerswitcher.ol-forceopen.ol-collapsed .ol-switchertopdiv,.ol-layerswitcher.ol-forceopen.ol-collapsed .ol-switcherbottomdiv{display:block}.ol-control.ol-layerswitcher .ol-switchertopdiv,.ol-control.ol-layerswitcher .ol-switcherbottomdiv{position:absolute;top:0;left:0;right:0;height:45px;background:#fff;z-index:2;opacity:1;cursor:pointer;border-top:2px solid transparent;border-bottom:2px solid #369;margin:0 2px;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-control.ol-layerswitcher .ol-switcherbottomdiv{top:auto;bottom:0;height:2em;border-top:2px solid #369;border-bottom:2px solid transparent}.ol-control.ol-layerswitcher .ol-switchertopdiv:before,.ol-control.ol-layerswitcher .ol-switcherbottomdiv:before{content:"";position:absolute;left:50%;top:50%;border:10px solid transparent;width:0;height:0;transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);opacity:.8}.ol-control.ol-layerswitcher .ol-switchertopdiv:hover:before,.ol-control.ol-layerswitcher .ol-switcherbottomdiv:hover:before{opacity:1}.ol-control.ol-layerswitcher .ol-switchertopdiv:before{border-bottom-color:#369;border-top:0}.ol-control.ol-layerswitcher .ol-switcherbottomdiv:before{border-top-color:#369;border-bottom:0}.ol-control.ol-layerswitcher .panel-container{background-color:#fff;border-radius:0 0 2px 2px;clear:both;display:block;padding:.5em .5em 0}.ol-layerswitcher .panel{list-style:none;padding:0;margin:0;overflow:hidden;font-family:Tahoma,Geneva,sans-serif;font-size:.9em;-webkit-transition:top .3s;transition:top .3s;position:relative;top:0}.ol-layerswitcher .panel ul{list-style:none;padding:0 0 0 20px;overflow:hidden;clear:both}.ol-layerswitcher input[type=radio],.ol-layerswitcher input[type=checkbox]{display:none}.ol-layerswitcher .panel li{-weblit-transition:-webkit-transform .2s linear;-webkit-transition:-webkit-transform .2s linear;transition:-webkit-transform .2s linear;transition:transform .2s linear;transition:transform .2s linear,-webkit-transform .2s linear;clear:both;display:block;border:1px solid transparent;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-layerswitcher .panel li.ol-layer-select{background-color:#003c8833;margin:0 -.5em;padding:0 .5em}.ol-layerswitcher .panel li.drag{opacity:.5;transform:scale(.8);-webkit-transform:scale(.8)}.ol-dragover{background:rgba(51,102,153,.5);opacity:.8}.ol-layerswitcher .panel li.forbidden,.forbidden .ol-layerswitcher-buttons div,.forbidden .layerswitcher-opacity div{background:rgba(255,0,0,.5);color:red!important}.ol-layerswitcher.drag,.ol-layerswitcher.drag *{cursor:not-allowed!important;cursor:no-drop!important}.ol-layerswitcher.drag .panel li.dropover,.ol-layerswitcher.drag .panel li.dropover *{cursor:pointer!important;cursor:n-resize!important;cursor:ns-resize!important;cursor:-webkit-grab!important;cursor:grab!important;cursor:-webkit-grabbing!important;cursor:grabbing!important}.ol-layerswitcher .panel li.dropover{background:rgba(51,102,153,.5)}.ol-layerswitcher .panel li label{display:inline-block;height:1.4em;max-width:12em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 0 0 1.7em;position:relative}.ol-layerswitcher .panel li label span{display:inline-block;width:100%;height:100%;overflow:hidden;text-overflow:ellipsis;padding-right:.2em}.ol-layerswitcher [type=radio]+label:before,.ol-layerswitcher [type=checkbox]+label:before,.ol-layerswitcher [type=radio]:checked+label:after,.ol-layerswitcher [type=checkbox]:checked+label:after{content:"";position:absolute;left:.1em;top:.1em;width:1.2em;height:1.2em;border:2px solid #369;background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-layerswitcher [type=radio]+label:before,.ol-layerswitcher [type=radio]+label:after{border-radius:50%}.ol-layerswitcher [type=radio]:checked+label:after{background:#369 none repeat scroll 0 0;margin:.3em;width:.6em;height:.6em}.ol-layerswitcher [type=checkbox]:checked+label:after{background:transparent;border-width:0 3px 3px 0;border-style:solid;border-color:#369;width:.7em;height:1em;-webkit-transform:rotate(45deg);transform:rotate(45deg);left:.55em;top:-.05em;-webkit-box-shadow:1px 0px 1px 1px #fff;box-shadow:1px 0 1px 1px #fff}.ol-layerswitcher .panel li.ol-layer-hidden{opacity:.6}.ol-layerswitcher.ol-collapsed .panel-container{display:none}.ol-layerswitcher.ol-forceopen .panel-container{display:block}.ol-layerswitcher>button{background-color:#fff;float:right;z-index:10;position:relative;font-size:1.7em}.ol-touch .ol-layerswitcher>button{font-size:2.5em}.ol-layerswitcher>button:before,.ol-layerswitcher>button:after{content:"";position:absolute;width:.75em;height:.75em;border-radius:.15em;-webkit-transform:scaleY(.8) rotate(45deg);transform:scaleY(.8) rotate(45deg)}.ol-layerswitcher>button:before{background:#e2e4e1;top:.32em;left:.34em;-webkit-box-shadow:.1em .1em #325158;box-shadow:.1em .1em #325158}.ol-layerswitcher>button:after{top:.22em;left:.34em;background:#83bcc5;background-image:radial-gradient(circle at .85em .6em,#70b3be 0,#70b3be .65em,#83bcc5 .65em)}.ol-layerswitcher-buttons{display:block;float:right;text-align:right}.ol-layerswitcher-buttons>div{display:inline-block;position:relative;cursor:pointer;height:1em;width:1em;margin:2px;line-height:1em;text-align:center;background:#369;vertical-align:middle;color:#fff}.ol-layerswitcher .panel li>div{display:inline-block;position:relative}.ol-layerswitcher .ol-separator{display:block;width:0;height:0;padding:0;margin:0}.ol-layerswitcher .layerup{float:right;height:2.5em;background-color:#369;opacity:.5;cursor:move;cursor:ns-resize}.ol-layerswitcher .layerup:before,.ol-layerswitcher .layerup:after{border-color:#fff transparent;border-style:solid;border-width:.4em .4em 0;content:"";height:0;position:absolute;bottom:3px;left:.1em;width:0}.ol-layerswitcher .layerup:after{border-width:0 .4em .4em;top:3px;bottom:auto}.ol-layerswitcher .layerInfo{background:#369;border-radius:100%}.ol-layerswitcher .layerInfo:before{color:#fff;content:"i";display:block;font-size:.8em;font-weight:700;text-align:center;width:1.25em;position:absolute;left:0;top:0}.ol-layerswitcher .layerTrash{background:#369}.ol-layerswitcher .layerTrash:before{color:#fff;content:"\d7";font-size:1em;top:50%;left:0;right:0;text-align:center;line-height:1em;margin:-.5em 0;position:absolute}.ol-layerswitcher .layerExtent{background:#369}.ol-layerswitcher .layerExtent:before{border-right:1px solid #fff;border-bottom:1px solid #fff;content:"";display:block;position:absolute;left:6px;right:2px;top:6px;bottom:3px}.ol-layerswitcher .layerExtent:after{border-left:1px solid #fff;border-top:1px solid #fff;content:"";display:block;position:absolute;bottom:6px;left:2px;right:6px;top:3px}.ol-layerswitcher .expend-layers,.ol-layerswitcher .collapse-layers{margin:0 2px;background-color:transparent}.ol-layerswitcher .expend-layers:before,.ol-layerswitcher .collapse-layers:before{content:"";position:absolute;top:50%;left:0;margin-top:-2px;height:4px;width:100%;background:#369}.ol-layerswitcher .expend-layers:after{content:"";position:absolute;left:50%;top:0;margin-left:-2px;width:4px;height:100%;background:#369}.ol-layerswitcher .layerswitcher-opacity{position:relative;border:1px solid #369;height:3px;width:120px;margin:5px 1em 10px 7px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:3px;background:#69c;background:-webkit-gradient(linear,left top,right top,from(rgba(0,60,136,0)),to(rgba(0,60,136,.6)));background:linear-gradient(to right,rgba(0,60,136,0),rgba(0,60,136,.6));cursor:pointer;-webkit-box-shadow:1px 1px 1px rgba(0,0,0,.5);box-shadow:1px 1px 1px #00000080}.ol-layerswitcher .layerswitcher-opacity .layerswitcher-opacity-cursor,.ol-layerswitcher .layerswitcher-opacity .layerswitcher-opacity-cursor:before{position:absolute;width:20px;height:20px;top:50%;left:50%;background:rgba(0,60,136,.5);border-radius:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:1}.ol-layerswitcher .layerswitcher-opacity .layerswitcher-opacity-cursor:before{content:"";position:absolute;width:50%;height:50%}.ol-touch .ol-layerswitcher .layerswitcher-opacity .layerswitcher-opacity-cursor{width:26px;height:26px}.ol-layerswitcher .layerswitcher-opacity-label{display:none;position:absolute;right:-2.5em;bottom:5px;font-size:.8em}.ol-layerswitcher .layerswitcher-opacity-label:after{content:"%"}.ol-layerswitcher .layerswitcher-progress{display:block;margin:-4px 1em 2px 7px;width:120px}.ol-layerswitcher .layerswitcher-progress div{background-color:#369;height:2px;display:block;width:0}.ol-control.ol-layerswitcher-image{position:absolute;right:.5em;text-align:left;top:1em;transition:all .2s ease 0s;-webkit-transition:all .2s ease 0s}.ol-control.ol-layerswitcher-image.ol-collapsed{top:3em;-webkit-transition:none;transition:none}.ol-layerswitcher-image .panel{list-style:none;padding:.25em;margin:0;overflow:hidden}.ol-layerswitcher-image .panel ul{list-style:none;padding:0 0 0 20px;overflow:hidden}.ol-layerswitcher-image.ol-collapsed .panel{display:none}.ol-layerswitcher-image.ol-forceopen .panel{display:block;clear:both}.ol-layerswitcher-image button{background-color:#fff;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAACE1BMVEX///8A//8AgICA//8AVVVAQID///8rVVVJtttgv98nTmJ2xNgkW1ttyNsmWWZmzNZYxM4gWGgeU2JmzNNr0N1Rwc0eU2VXxdEhV2JqytQeVmMhVmNoydUfVGUgVGQfVGQfVmVqy9hqy9dWw9AfVWRpydVry9YhVmMgVGNUw9BrytchVWRexdGw294gVWQgVmUhVWPd4N6HoaZsy9cfVmQgVGRrytZsy9cgVWQgVWMgVWRsy9YfVWNsy9YgVWVty9YgVWVry9UgVWRsy9Zsy9UfVWRsy9YgVWVty9YgVWRty9Vsy9aM09sgVWRTws/AzM0gVWRtzNYgVWRuy9Zsy9cgVWRGcHxty9bb5ORbxdEgVWRty9bn6OZTws9mydRfxtLX3Nva5eRix9NFcXxOd4JPeINQeIMiVmVUws9Vws9Vw9BXw9BYxNBaxNBbxNBcxdJexdElWWgmWmhjyNRlx9IqXGtoipNpytVqytVryNNrytZsjZUuX210k5t1y9R2zNR3y9V4lp57zth9zdaAnKOGoaeK0NiNpquV09mesrag1tuitbmj1tuj19uktrqr2d2svcCu2d2xwMO63N+7x8nA3uDC3uDFz9DK4eHL4eLN4eIyYnDX5OM5Z3Tb397e4uDf4uHf5uXi5ePi5+Xj5+Xk5+Xm5+Xm6OY6aHXQ19fT4+NfhI1Ww89gx9Nhx9Nsy9ZWw9Dpj2abAAAAWnRSTlMAAQICAwQEBgcIDQ0ODhQZGiAiIyYpKywvNTs+QklPUlNUWWJjaGt0dnd+hIWFh4mNjZCSm6CpsbW2t7nDzNDT1dje5efr7PHy9PT29/j4+Pn5+vr8/f39/f6DPtKwAAABTklEQVR4Xr3QVWPbMBSAUTVFZmZmhhSXMjNvkhwqMzMzMzPDeD+xASvObKePPa+ffHVl8PlsnE0+qPpBuQjVJjno6pZpSKXYl7/bZyFaQxhf98hHDKEppwdWIW1frFnrxSOWHFfWesSEWC6R/P4zOFrix3TzDFLlXRTR8c0fEEJ1/itpo7SVO9Jdr1DVxZ0USyjZsEY5vZfiiAC0UoTGOrm9PZLuRl8X+Dq1HQtoFbJZbv61i+Poblh/97TC7n0neCcK0ETNUrz1/xPHf+DNAW9Ac6t8O8WH3Vp98f5lCaYKAOFZMLyHL4Y0fe319idMNgMMp+zWVSybUed/+/h7I4wRAG1W6XDy4XmjR9HnzvDRZXUAYDFOhC1S/Hh+fIXxen+eO+AKqbs+wAo30zDTDvDxKoJN88sjUzDFAvBzEUGFsnADoIvAJzoh2BZ8sner+Ke/vwECuQAAAABJRU5ErkJggg==);background-position:center;background-repeat:no-repeat;float:right;height:38px;width:38px;display:none}.ol-layerswitcher-image.ol-collapsed button{display:block;position:relative}.ol-layerswitcher-image li{border-radius:4px;border:3px solid transparent;-webkit-box-shadow:1px 1px 4px rgba(0,0,0,.5);box-shadow:1px 1px 4px #00000080;display:inline-block;width:64px;height:64px;margin:2px;position:relative;background-color:#fff;overflow:hidden;vertical-align:middle;cursor:pointer}.ol-layerswitcher-image li.ol-layer-hidden{opacity:.5;border-color:#555}.ol-layerswitcher-image li.ol-header{display:none}.ol-layerswitcher-image li img{position:absolute;max-width:100%}.ol-layerswitcher-image li.select,.ol-layerswitcher-image li.ol-visible{border:3px solid red}.ol-layerswitcher-image li p{display:none}.ol-layerswitcher-image li:hover p{background-color:#00000080;color:#fff;bottom:0;display:block;left:0;margin:0;overflow:hidden;position:absolute;right:0;text-align:center;height:1.2em;font-family:Verdana,Geneva,sans-serif;font-size:.8em}.ol-control.ol-legend{bottom:.5em;left:.5em;z-index:1;max-height:90%;max-width:90%;overflow-x:hidden;overflow-y:auto}.ol-control.ol-legend.ol-collapsed{overflow:hidden}.ol-control.ol-legend button{position:relative;display:none}.ol-control.ol-legend.ol-collapsed button{display:block}.ol-control.ol-legend.ol-uncollapsible button{display:none}.ol-control.ol-legend button.ol-closebox{display:block;position:absolute;top:0;right:0;background:none;cursor:pointer;z-index:1}.ol-control.ol-legend.ol-uncollapsible button.ol-closebox,.ol-control.ol-legend.ol-collapsed button.ol-closebox{display:none}.ol-control.ol-legend button.ol-closebox:before{content:"\d7";background:none;color:#003c8880;font-size:1.3em}.ol-control.ol-legend button.ol-closebox:hover:before{color:#003c88}.ol-control.ol-legend .ol-legendImg{display:block}.ol-control.ol-legend.ol-collapsed .ol-legendImg{display:none}.ol-control.ol-legend.ol-uncollapsible .ol-legendImg{display:block}.ol-control.ol-legend>button:first-child:before,.ol-control.ol-legend>button:first-child:after{content:"";position:absolute;top:.25em;left:.2em;width:.2em;height:.2em;background-color:currentColor;-webkit-box-shadow:0 .35em,0 .7em;box-shadow:0 .35em,0 .7em}.ol-control.ol-legend button:first-child:after{top:.27em;left:.55em;height:.15em;width:.6em}ul.ol-legend{position:absolute;top:0;left:0;width:100%;margin:0;padding:0;list-style:none}.ol-control.ol-legend.ol-collapsed ul{display:none}.ol-control.ol-legend.ol-uncollapsible ul{display:block}ul.ol-legend li.ol-title{text-align:center;font-weight:700}ul.ol-legend li.ol-title>div:first-child{width:0!important}ul.ol-legend li{overflow:hidden;padding:0;white-space:nowrap}ul.ol-legend li div{display:inline-block;vertical-align:middle}.ol-control.ol-legend .ol-legend{display:inline-block}.ol-control.ol-legend.ol-collapsed .ol-legend{display:none}.ol-control.ol-mapzone{position:absolute;right:.5em;text-align:left;top:.5em;max-height:calc(100% - 6em);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.ol-control.ol-mapzone.ol-collapsed{top:3em}.ol-control.ol-mapzone button{position:relative;float:right;margin-top:2.2em}.ol-touch .ol-control.ol-mapzone button{margin-top:1.67em}.ol-control.ol-mapzone.ol-collapsed button{margin-top:0}.ol-control.ol-mapzone button i{border:.1em solid currentColor;border-radius:50%;width:.9em;height:.9em;overflow:hidden;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-control.ol-mapzone button i:before{content:"";background-color:currentColor;width:.4em;height:.4em;position:absolute;left:.5em;top:.3em;border-radius:50%;-webkit-box-shadow:.05em .3em 0 -.051em currentColor,-.05em -.35em 0 -.1em currentColor,-.5em -.35em 0 0em currentColor,-.65em .1em 0 -.03em currentColor,-.65em -.05em 0 -.05em currentColor;box-shadow:.05em .3em 0 -.051em currentColor,-.05em -.35em 0 -.1em currentColor,-.5em -.35em 0 0 currentColor,-.65em .1em 0 -.03em currentColor,-.65em -.05em 0 -.05em currentColor}.ol-mapzone>div{position:relative;display:inline-block;width:5em;height:5em;margin:0 .2em 0 0}.ol-control.ol-mapzone.ol-collapsed>div{display:none}.ol-mapzone>div p{margin:0;position:absolute;bottom:0;color:#fff;font-weight:700;text-align:center;width:160%;overflow:hidden;font-family:Lucida Grande,Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif;-webkit-transform:scaleX(.625);transform:scaleX(.625);-webkit-transform-origin:0 0;transform-origin:0 0;cursor:default}.ol-notification{width:150%;bottom:0;border:0;background:none;margin:0;padding:0}.ol-notification>div,.ol-notification>div:hover{position:absolute;background-color:#000c;color:#fff;bottom:0;left:33.33%;max-width:calc(66% - 4em);min-width:5em;max-height:5em;min-height:1em;border-radius:4px 4px 0 0;padding:.2em .5em;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transform:translateX(-50%);transform:translate(-50%);-webkit-transition:.3s;transition:.3s;opacity:1}.ol-notification.ol-collapsed>div{bottom:-5em;opacity:0}.ol-notification a{color:#9cf;cursor:pointer}.ol-notification .ol-close,.ol-notification .ol-close:hover{padding-right:1.5em}.ol-notification .closeBox{position:absolute;top:0;right:.3em}.ol-notification .closeBox:before{content:"\d7"}.ol-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0006;padding:1em;color:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:1;opacity:0;display:none;cursor:default;overflow:hidden;-webkit-transition:all .5s;transition:all .5s;pointer-events:none}.ol-overlay.slide-up{transform:translateY(100%);-webkit-transform:translateY(100%)}.ol-overlay.slide-down{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.ol-overlay.slide-left{-webkit-transform:translateX(-100%);transform:translate(-100%)}.ol-overlay.slide-right{-webkit-transform:translateX(100%);transform:translate(100%)}.ol-overlay.zoom{top:50%;left:50%;opacity:.5;-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0)}.ol-overlay.zoomout{-webkit-transform:scale(3);transform:scale(3)}.ol-overlay.zoomrotate{top:50%;left:50%;opacity:.5;-webkit-transform:translate(-50%,-50%) scale(0) rotate(360deg);transform:translate(-50%,-50%) scale(0) rotate(360deg)}.ol-overlay.stretch{top:50%;left:50%;opacity:.5;-webkit-transform:translate(-50%,-50%) scaleX(0);transform:translate(-50%,-50%) scaleX(0)}.ol-overlay.stretchy{top:50%;left:50%;opacity:.5;-webkit-transform:translate(-50%,-50%) scaleY(0);transform:translate(-50%,-50%) scaleY(0)}.ol-overlay.wipe{opacity:1}.ol-overlay.flip{-webkit-transform:perspective(600px) rotateY(180deg);transform:perspective(600px) rotateY(180deg)}.ol-overlay.card{opacity:.5;-webkit-transform:translate(-80%,100%) rotate(-.5turn);transform:translate(-80%,100%) rotate(-.5turn)}.ol-overlay.book{-webkit-transform:perspective(600px) rotateY(-180deg) scaleX(.6);transform:perspective(600px) rotateY(-180deg) scaleX(.6);-webkit-transform-origin:10% 50%;transform-origin:10% 50%}.ol-overlay.book.visible{-webkit-transform-origin:10% 50%;transform-origin:10% 50%}.ol-overlay.ol-visible{opacity:1;top:0;left:0;right:0;bottom:0;-webkit-transform:none;transform:none;pointer-events:all}.ol-overlay .ol-closebox{position:absolute;top:1em;right:1em;width:1em;height:1em;cursor:pointer;z-index:1}.ol-overlay .ol-closebox:before{content:"\274c";display:block;text-align:center;vertical-align:middle}.ol-overlay .ol-fullscreen-image{position:absolute;top:0;left:0;bottom:0;right:0}.ol-overlay .ol-fullscreen-image img{position:absolute;max-width:100%;max-height:100%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:1em;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-overlay .ol-fullscreen-image.ol-has-title img{padding-bottom:3em}.ol-overlay .ol-fullscreen-image p{background-color:#00000080;padding:.5em;position:absolute;left:0;right:0;bottom:0;margin:0;text-align:center}.ol-control.ol-overview{position:absolute;left:.5em;text-align:left;bottom:.5em}.ol-control.ol-overview .panel{display:block;width:150px;height:150px;margin:2px;background-color:#fff;border:1px solid #369;cursor:pointer}.ol-overview:not(.ol-collapsed) button{position:absolute;bottom:2px;left:2px;z-index:2}.ol-control.ol-overview.ol-collapsed .panel{display:none}.ol-overview.ol-collapsed button:before{content:"\bb"}.ol-overview button:before{content:"\ab"}.ol-control-right.ol-overview{left:auto;right:.5em}.ol-control-right.ol-overview:not(.ol-collapsed) button{left:auto;right:2px}.ol-control-right.ol-overview.ol-collapsed button:before{content:"\ab"}.ol-control-right.ol-overview button:before{content:"\bb"}.ol-control-top.ol-overview{bottom:auto;top:5em}.ol-control-top.ol-overview:not(.ol-collapsed) button{bottom:auto;top:2px}.ol-permalink{position:absolute;top:.5em;right:2.5em}.ol-touch .ol-permalink{right:3em}.ol-permalink button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AcFBjYE1ZK03gAAAUlJREFUOMuVk71KA1EQhc/NaiP+gCRpFHwGBSFlCrFVfAsbwSJCBMv06QIGJOBziI3EYAgkjU8gIloIAasIn4WzMqx34zrN7J6de+6ZmbNSgQDSfADcATPgHbgCyvonSYv8KEzWdofegH3gwmG9Ikq67sAESFzNueHThTyiEIKAmr2OJCUhhO30Aou+5aUQU2Ik65K2JC1KegohPGfUBkmvksqShnntHEcGOs60NXHfjmKz6czZTsNqbhzW+muwY2ATWAWawCOwBgxcTfvnvCPxKx4Cy5bPgBWgauRpdL2ImNlGhp3MabETm8mh94nDk4yCNE5/KTGg7xxbyhYAG0AN2AEqURIDZ0a0Fxn+LXAPXDpzRqMk6cOedz1ubdYl1b6NHgZRJe72nuu/CdSBl+yKi/zZlTnbaeXOJIesClwDU+ATeEhtX5TkCwAWUyAsHH1QAAAAAElFTkSuQmCC);background-position:center;background-repeat:no-repeat}.ol-control.ol-print{top:.5em;left:3em}.ol-control.ol-print button:before{content:"";width:.9em;height:.35em;position:absolute;left:50%;top:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);-webkit-box-shadow:inset 0 0 0 .1em,inset .55em 0,0 .2em 0 -.1em;box-shadow:inset 0 0 0 .1em,inset .55em 0,0 .2em 0 -.1em}.ol-control.ol-print button:after{content:"";width:.7em;height:.6em;position:absolute;left:50%;top:25%;-webkit-transform:translateX(-50%);transform:translate(-50%);-webkit-box-shadow:inset 0 0 0 .15em;box-shadow:inset 0 0 0 .15em}.ol-ext-print-dialog{width:100%;height:100%}.ol-ext-print-dialog>form .ol-closebox{right:auto;left:16.5em;z-index:1;color:#999}.ol-ext-print-dialog .ol-content[data-status=printing]{opacity:.5}.ol-ext-print-dialog .ol-content .ol-error{display:none;background:#b00;color:#ff0;text-align:center;padding:1em .5em;font-weight:700;margin:0 -1em}.ol-ext-print-dialog .ol-content[data-status=error] .ol-error{display:block}.ol-ext-print-dialog>form,.ol-ext-print-dialog.ol-visible>form{-webkit-transition:none;transition:none;top:1em;left:1em;bottom:1em;right:1em;-webkit-transform:none;transform:none;max-width:100%;max-height:100%;background-color:#eee;padding:0}.ol-ext-print-dialog .ol-print-map{position:absolute;top:0;bottom:0;right:0;width:calc(100% - 18em);overflow:hidden}.ol-ext-print-dialog .ol-print-map .ol-page{position:absolute;left:50%;top:50%;background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-ext-print-dialog .ol-print-map .ol-page.margin{-webkit-box-sizing:content-box;box-sizing:content-box}.ol-ext-print-dialog .ol-map{width:100%;height:100%}.ol-ext-print-dialog .ol-print-map .ol-control{display:none!important}.ol-ext-print-dialog .ol-print-param{position:absolute;overflow-x:hidden;top:0;bottom:0;left:0;width:18em;background-color:#fff;padding:1em;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-ext-print-dialog .ol-print-param h2{display:block;color:#003c88b3;font-size:1.1em}.ol-ext-print-dialog .ol-print-param ul{padding:0;list-style:none}.ol-ext-print-dialog .ol-print-param li{position:relative;margin:.5em 0;font-size:.9em}.ol-ext-print-dialog .ol-print-param li.hidden{display:none}.ol-ext-print-dialog .ol-print-param label{width:8em;display:inline-block;vertical-align:middle}.ol-ext-print-dialog select{outline:none;vertical-align:middle}.ol-ext-print-dialog .ol-orientation{text-align:center}.ol-ext-print-dialog .ol-orientation label{position:relative;width:7em;cursor:pointer}.ol-ext-print-dialog .ol-orientation input{position:absolute;opacity:0;width:0;height:0}.ol-ext-print-dialog .ol-orientation span{position:relative;width:80%;display:block;padding:3.5em 0 .2em}.ol-ext-print-dialog .ol-orientation span:before{content:"";position:absolute;width:2em;height:2.6em;bottom:1.5em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);color:#333;background-color:currentColor;border:1px solid currentColor;border-radius:0 1em 0 0;opacity:.5;overflow:hidden;-webkit-box-shadow:inset 1.3em -1.91em #ddd;box-shadow:inset 1.3em -1.91em #ddd}.ol-ext-print-dialog .ol-orientation .landscape span:before{width:2.6em;height:2em;margin:.2em 0;-webkit-box-shadow:inset 1.91em -1.3em #ddd;box-shadow:inset 1.91em -1.3em #ddd}.ol-ext-print-dialog .ol-orientation input:checked+span{opacity:1;-webkit-box-shadow:0 0 .2em rgba(0,0,0,.5);box-shadow:0 0 .2em #00000080}.ol-ext-print-dialog .ol-ext-toggle-switch span{position:absolute;right:-2em;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ol-print-title input[type=text]{margin-top:.5em;width:calc(100% - 6em);margin-left:6em}.ol-ext-print-dialog .ol-size option:first-child{font-style:italic}.ol-ext-print-dialog .ol-saveas,.ol-ext-print-dialog .ol-savelegend{text-align:center}.ol-ext-print-dialog .ol-saveas select,.ol-ext-print-dialog .ol-savelegend select{background-color:#003c88b3;color:#fff;padding:.5em;margin:1em 0 0;font-size:1em;border:0;font-weight:700;max-width:12em}.ol-ext-print-dialog .ol-saveas select option,.ol-ext-print-dialog .ol-savelegend select option{background-color:#fff;color:#666}.ol-ext-print-dialog .ol-savelegend select{margin-top:0}.ol-ext-print-dialog .ol-ext-buttons{text-align:right;border-top:1px solid #ccc;padding:.8em .5em;margin:0 -1em}.ol-ext-print-dialog button{font-size:1em;margin:0 .2em;border:1px solid #999;background:none;padding:.3em 1em;color:#333}.ol-ext-print-dialog button[type=submit]{background-color:#003c88b3;color:#fff;font-weight:700}.ol-ext-print-dialog .ol-clipboard-copy{position:absolute;pointer-events:none;top:0;background-color:#00000080;color:#fff;padding:.5em 1em;border-radius:1em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-transition:0s;transition:0s;opacity:0}.ol-ext-print-dialog .ol-clipboard-copy.visible{-webkit-animation:1s ol-clipboard-copy;animation:1s ol-clipboard-copy}.ol-ext-print-dialog .ol-print-map .ol-control.ol-canvas-control,.ol-ext-print-dialog .ol-print-map .ol-control.ol-print-compass{display:block!important}.ol-ext-print-dialog .ol-print-map .ol-control.olext-print-compass{top:0;right:0;width:60px;height:60px;margin:20px}@-webkit-keyframes ol-clipboard-copy{0%{opacity:0;top:0}80%{opacity:1;top:-3em}to{opacity:0;top:-3em}}@keyframes ol-clipboard-copy{0%{opacity:0;top:0}80%{opacity:1;top:-3em}to{opacity:0;top:-3em}}@media print{body.ol-print-document{margin:0!important;padding:0!important}body.ol-print-document>*{display:none!important}body.ol-print-document>.ol-ext-print-dialog{display:block!important}.ol-ext-print-dialog>form,.ol-ext-print-dialog{position:unset;-webkit-box-shadow:none;box-shadow:none;background:none!important;border:0}.ol-ext-print-dialog>form>*,.ol-ext-print-dialog .ol-print-param{display:none!important;background:none}.ol-ext-print-dialog .ol-content{display:block!important;border:0;background:none}.ol-ext-print-dialog .ol-print-map{position:unset;background:none;width:auto;overflow:visible}.ol-ext-print-dialog .ol-print-map .ol-page{-webkit-transform:none!important;transform:none!important;-webkit-box-shadow:none!important;box-shadow:none!important;position:unset}}@media (max-width: 25em){.ol-ext-print-dialog .ol-print-param{width:13em}.ol-ext-print-dialog .ol-print-map{width:calc(100% - 13em)}.ol-ext-print-dialog .ol-print-param .ol-print-title input[type=text]{width:100%;margin:0}}.ol-profil{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ol-control.ol-profil{position:absolute;top:.5em;right:3em;text-align:right;overflow:hidden}.ol-profil .ol-zoom-out{position:absolute;top:10px;right:10px;width:1em;height:1em;padding:0;border:1px solid #000;border-radius:2px;cursor:pointer}.ol-profil .ol-zoom-out:before{content:"";height:2px;width:60%;background:currentColor;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-profil .ol-inner{position:relative;padding:.5em;font-size:.8em}.ol-control.ol-profil .ol-inner{display:block;background-color:#ffffffb3;margin:2.3em 2px 2px}.ol-control.ol-profil.ol-collapsed .ol-inner{display:none}.ol-profil canvas{display:block}.ol-profil button{display:block;position:absolute;right:2px;background-position:center;background-repeat:no-repeat;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAPCAYAAAALWoRrAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AgXCR4dn7j9TAAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAz0lEQVQ4y7WTMU4CURRFz0xIpLUBEhdAY2tJYW1jaWlsXYVxDWyBhWCFCYugYgnDFPMOhTMJGf3AwHiqn/uTk5v/3gfAH6b0RH7sMiIe1Ts162z+q2lVVbd1XqijLuJk0zzP1/VxCGyApLgsy+HJphGx8DeFOm6L1bn6eVQaEW+m2amTRqx+1fkqKY2Ie0+zUx/U7WGYfNMsy57PmMMN8A1MWsWeUoPyivV8PWtPOzL7D+lYHfUtBXgHGLTCJfBxodD6k9Dsm8BLE17LobQ39nJC61aLVoVsAAAAAElFTkSuQmCC)}.ol-profil.ol-collapsed button{position:static}.ol-profil .ol-profilbar,.ol-profil .ol-profilcursor{position:absolute;pointer-events:none;width:1px;display:none}.ol-profil .ol-profilcursor{width:0;height:0}.ol-profil .ol-profilcursor:before{content:"";pointer-events:none;display:block;margin:-2px;width:5px;height:5px}.ol-profil .ol-profilbar,.ol-profil .ol-profilcursor:before{background:red}.ol-profil table{text-align:center;width:100%}.ol-profil table span{display:block}.ol-profilpopup{background-color:#ffffff80;margin:.5em;padding:0 .5em;position:absolute;top:-1em;white-space:nowrap}.ol-profilpopup.ol-left{right:0}.ol-profil table td{padding:0 2px}.ol-profil table .track-info{display:table-row}.ol-profil table .point-info,.ol-profil .over table .track-info{display:none}.ol-profil .over table .point-info{display:table-row}.ol-profil p{text-align:center;margin:0}.ol-control.ol-progress-bar{position:absolute;top:0;bottom:0;left:0;right:0;padding:0;pointer-events:none!important;background-color:transparent}.ol-control.ol-progress-bar>.ol-bar{position:absolute;background-color:#003c8880;left:0;bottom:0;height:.5em;width:0;-webkit-transition:width .2s;transition:width .2s;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-progress-bar>.ol-waiting{display:none}.ol-viewport .ol-control.ol-progress-bar>.ol-waiting{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:#fff;font-size:2em;display:block;-webkit-animation:1s linear infinite ol-progress-bar-blink;animation:1s linear infinite ol-progress-bar-blink}@-webkit-keyframes ol-progress-bar-blink{0%,30%{visibility:hidden}to{visibility:visible}}@keyframes ol-progress-bar-blink{0%,30%{visibility:hidden}to{visibility:visible}}.ol-control.ol-routing{top:.5em;left:3em;max-height:90%;overflow-y:auto}.ol-touch .ol-control.ol-routing{left:3.5em}.ol-control.ol-routing.ol-searching{opacity:.5}.ol-control.ol-routing .ol-car,.ol-control.ol-routing>button{position:relative}.ol-control.ol-routing .ol-car:after,.ol-control.ol-routing>button:after{content:"";position:absolute;width:.78em;height:.6em;border-radius:40% 50% 0 0/50% 70% 0 0;-webkit-box-shadow:inset 0 0 0 .065em,-.35em .14em 0 -.09em,inset 0 -.37em,inset -.14em .005em;box-shadow:inset 0 0 0 .065em,-.35em .14em 0 -.09em,inset 0 -.37em,inset -.14em .005em;clip:rect(0 1em .5em -1em);top:.35em;left:.4em}.ol-control.ol-routing .ol-car:before,.ol-control.ol-routing>button:before{content:"";position:absolute;width:.28em;height:.28em;border-radius:50%;-webkit-box-shadow:inset 0 0 0 1em,.65em 0;box-shadow:inset 0 0 0 1em,.65em 0;top:.73em;left:.2em}.ol-control.ol-routing .ol-pedestrian:after{content:"";position:absolute;width:.3em;height:.4em;top:.25em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);-webkit-box-shadow:inset .3em 0,.1em .5em 0 -.1em,-.1em .5em 0 -.1em,.25em .1em 0 -.1em,-.25em .1em 0 -.1em;box-shadow:inset .3em 0,.1em .5em 0 -.1em,-.1em .5em 0 -.1em,.25em .1em 0 -.1em,-.25em .1em 0 -.1em;border-top:.2em solid transparent}.ol-control.ol-routing .ol-pedestrian:before{content:"";position:absolute;width:.3em;height:.3em;top:.1em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);border-radius:50%;background-color:currentColor}.ol-control.ol-routing.ol-collapsed .content,.ol-routing .ol-search.ol-collapsed ul,.ol-routing .ol-search ul .copy{display:none}.ol-routing .content .search-input>div>*{display:inline-block;vertical-align:top}.ol-routing .ol-result ul{list-style:none;display:block}.ol-routing .ol-result li{position:relative;min-height:1.65em}.ol-routing .ol-result li i{display:block;font-size:.8em;font-weight:700}.ol-routing .ol-result li:before{content:"";border:5px solid transparent;position:absolute;left:-1.75em;border-bottom-color:#369;border-width:.6em .4em .6em;-webkit-transform-origin:50% 125%;transform-origin:50% 125%;-webkit-box-shadow:0 .65em 0 -.25em #369;box-shadow:0 .65em 0 -.25em #369;top:-.8em}.ol-routing .ol-result li:after{content:"";position:absolute;width:.3em;height:.6em;left:-1.5em;background:#369;top:.6em}.ol-routing .ol-result li.R:before{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.ol-routing .ol-result li.FR:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ol-routing .ol-result li.L:before{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.ol-routing .ol-result li.FL:before{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.ol-routing .content>i{vertical-align:middle;margin:0 .3em 0 .1em;font-style:normal}.ol-routing .ol-button,.ol-routing .ol-button:focus,.ol-routing .ol-pedestrian,.ol-routing .ol-car{font-size:1.1em;position:relative;display:inline-block;width:1.4em;height:1.4em;color:#003c88;background-color:transparent;margin:0 .1em;opacity:.5;vertical-align:middle;outline:none;cursor:pointer}.ol-routing .ol-button:hover,.ol-routing .ol-button.selected,.ol-routing i.selected{opacity:1;background:transparent}.ol-control.ol-routing:hover{background-color:#ffffffd9}.search-input>div>button:before{content:"\b1"}.ol-viewport .ol-scale{left:.5em;bottom:2.5em;text-align:center;-webkit-transform:scaleX(.8);-webkit-transform-origin:0 0;transform:scaleX(.8);transform-origin:0 0}.ol-viewport .ol-scale input{background:none;border:0;width:8em;text-align:center}.ol-search{top:.5em;left:3em}.ol-touch .ol-search{left:3.5em}.ol-search button{top:2px;left:2px;float:left}.ol-control.ol-search>button:before{content:"";position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;width:.7em;height:.7em;background-color:transparent;border:.12em solid currentColor;border-radius:100%;top:.35em;left:.35em}.ol-control.ol-search>button:after{content:"";position:absolute;top:1.1em;left:.95em;width:.45em;height:.15em;background-color:currentColor;border-radius:.05em;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-shadow:-.18em 0 0 -.03em;box-shadow:-.18em 0 0 -.03em}.ol-search button.ol-revers{float:none;background-image:none;display:inline-block;vertical-align:bottom;position:relative;top:0;left:0}.ol-search.ol-revers button.ol-revers{background-color:#00883c80}.ol-control.ol-search.ol-collapsed button.ol-revers{display:none}.ol-search button.ol-revers:before{content:"";border:.1em solid currentColor;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:50%;width:.55em;height:.55em;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-search button.ol-revers:after{content:"";position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:.2em;height:.2em;background-color:transparent;-webkit-box-shadow:.35em 0 currentColor,0 .35em currentColor,-.35em 0 currentColor,0 -.35em currentColor;box-shadow:.35em 0 currentColor,0 .35em currentColor,-.35em 0 currentColor,0 -.35em currentColor}.ol-search input{display:inline-block;border:0;margin:1px 1px 1px 2px;font-size:1.14em;padding-left:.3em;height:1.375em;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all .1s;transition:all .1s}.ol-touch .ol-search input,.ol-touch .ol-search ul{font-size:1.5em}.ol-search.ol-revers>ul,.ol-control.ol-search.ol-collapsed>*{display:none}.ol-control.ol-search.ol-collapsed>button{display:block}.ol-search ul{list-style:none;padding:0;margin:0;display:block;clear:both;cursor:pointer;max-width:17em;overflow-x:hidden;z-index:1;background:#fff}.ol-search ul li{padding:.1em .5em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ol-search ul li.select,.ol-search ul li:hover{background-color:#003c8880;color:#fff}.ol-search ul li img{float:left;max-height:2em}.ol-search li.copy{background:rgba(0,0,0,.5);color:#fff}.ol-search li.copy a{color:#fff;text-decoration:none}.ol-search.searching:before{content:"";position:absolute;height:3px;left:0;top:1.6em;-webkit-animation:pulse .5s infinite alternate linear;animation:pulse .5s infinite alternate linear;background:red;z-index:2}@-webkit-keyframes pulse{0%{left:0;right:95%}50%{left:30%;right:30%}to{left:95%;right:0}}@keyframes pulse{0%{left:0;right:95%}50%{left:30%;right:30%}to{left:95%;right:0}}.ol-search.IGNF-parcelle input{width:13.5em}.ol-search.IGNF-parcelle input:-moz-read-only{background:#ccc;opacity:.8}.ol-search.IGNF-parcelle input:read-only{background:#ccc;opacity:.8}.ol-search.IGNF-parcelle.ol-collapsed-list>ul.autocomplete{display:none}.ol-search.IGNF-parcelle label{display:block;clear:both}.ol-search.IGNF-parcelle>div input,.ol-search.IGNF-parcelle>div label{width:5em;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;margin:.1em;font-size:1em}.ol-search.IGNF-parcelle ul.autocomplete-page{margin-top:.5em;width:100%;text-align:center;display:none}.ol-search.IGNF-parcelle.ol-collapsed-list ul.autocomplete-parcelle,.ol-search.IGNF-parcelle.ol-collapsed-list ul.autocomplete-page{display:block}.ol-search.IGNF-parcelle.ol-collapsed ul.autocomplete-page,.ol-search.IGNF-parcelle.ol-collapsed ul.autocomplete-parcelle,.ol-search.IGNF-parcelle ul.autocomplete-parcelle{display:none}.ol-search.IGNF-parcelle ul.autocomplete-page li{display:inline-block;color:#fff;background:rgba(0,60,136,.5);border-radius:50%;width:1.3em;height:1.3em;padding:.1em;margin:0 .1em}.ol-search.IGNF-parcelle ul.autocomplete-page li.selected{background:rgba(0,60,136,1)}.ol-searchgps input.search{display:none}.ol-control.ol-searchgps>button:first-child{background-image:none}.ol-control.ol-searchgps>button:first-child:before{content:"x/y";position:unset;display:block;-webkit-transform:scaleX(.8);transform:scaleX(.8);border:unset;border-radius:0;width:auto;height:auto}.ol-control.ol-searchgps>button:first-child:after{content:unset}.ol-control.ol-searchgps .ol-latitude,.ol-control.ol-searchgps .ol-longitude{clear:both}.ol-control.ol-searchgps .ol-latitude label,.ol-control.ol-searchgps .ol-longitude label{width:5.5em;display:inline-block;text-align:right;-webkit-transform:scaleX(.8);transform:scaleX(.8);margin:0 -.8em 0 0;-webkit-transform-origin:0 0;transform-origin:0 0}.ol-control.ol-searchgps .ol-latitude input,.ol-control.ol-searchgps .ol-longitude input{max-width:10em}.ol-control.ol-searchgps .ol-ext-toggle-switch{cursor:pointer;float:right;margin:.5em;font-size:.9em}.ol-searchgps .ol-decimal{display:inline-block;margin-right:.7em}.ol-searchgps .ol-dms,.ol-searchgps.ol-dms .ol-decimal{display:none;width:3em;text-align:right}.ol-searchgps.ol-dms .ol-dms{display:inline-block}.ol-searchgps span.ol-dms{width:.5em;text-align:left}.ol-searchgps.ol-control.ol-collapsed button.ol-geoloc{display:none}.ol-searchgps button.ol-geoloc{top:0;float:right;margin-right:3px;background-image:none;position:relative}.ol-searchgps button.ol-geoloc:before{content:"";position:absolute;left:50%;top:50%;width:.6em;height:.6em;border:.1em solid currentColor;border-radius:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-searchgps button.ol-geoloc:after{content:"";position:absolute;left:50%;top:50%;width:.2em;height:.2em;background-color:transparent;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-box-shadow:.45em 0 currentColor,-.45em 0 currentColor,0 -.45em currentColor,0 .45em currentColor,.25em 0 currentColor,-.25em 0 currentColor,0 -.25em currentColor,0 .25em currentColor;box-shadow:.45em 0 currentColor,-.45em 0 currentColor,0 -.45em currentColor,0 .45em currentColor,.25em 0 currentColor,-.25em 0 currentColor,0 -.25em currentColor,0 .25em currentColor}.ol-control.ol-select{top:.5em;left:3em}.ol-touch .ol-control.ol-select{left:3.5em}.ol-control.ol-select>button:before{content:"A";font-size:.6em;font-weight:400;position:absolute;-webkit-box-sizing:content-box;box-sizing:content-box;width:1em;height:1em;background-color:transparent;border:.2em solid currentColor;border-radius:100%;top:.5em;left:.5em;line-height:1em;text-align:center}.ol-control.ol-select>button:after{content:"";position:absolute;top:1.15em;left:1em;width:.45em;height:.15em;background-color:currentColor;border-radius:.05em;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-shadow:-.18em 0 0 -.03em;box-shadow:-.18em 0 0 -.03em}.ol-select>div button{width:auto;padding:0 .5em;float:right;font-weight:400}.ol-select .ol-delete{width:1.5em;height:1em;vertical-align:middle;display:inline-block;position:relative;cursor:pointer}.ol-select .ol-delete:before{content:"\d7";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:100%;text-align:center;font-weight:700}.ol-control.ol-select input{font-size:1em}.ol-control.ol-select select{font-size:1em;max-width:10em}.ol-control.ol-select select option.ol-default{color:#999;font-style:italic}.ol-control.ol-select>div{display:block}.ol-control.ol-select.ol-collapsed>div{display:none}.ol-control.ol-select.ol-select-check{max-width:20em}.ol-control.ol-select label.ol-ext-check{margin-right:1em}.ol-control.ol-select label.ol-ext-toggle-switch span{font-size:1.1em}.ol-select ul{list-style:none;margin:0;padding:0}.ol-control.ol-select input[type=search],.ol-control.ol-select input[type=text]{width:8em}.ol-select .ol-autocomplete{display:inline}.ol-select .ol-autocomplete ul{position:absolute;display:block;background:#fff;border:1px solid #999;min-width:10em;font-size:.85em}.ol-select .ol-autocomplete ul li{padding:0 .5em}.ol-select .ol-autocomplete ul li:hover{color:#fff;background:rgba(0,60,136,.5)}.ol-select ul.ol-hidden{display:none}.ol-select-multi li>div:hover,.ol-select-multi li>div.ol-control.ol-select{position:relative;top:unset;left:unset;background:transparent}.ol-select-multi li>div>button,.ol-select-multi li>div .ol-ok{display:none}.ol-select-multi li .ol-control.ol-select.ol-collapsed>div,.ol-select-multi li>div>div{display:block}.ol-control.ol-status{top:0;left:0;background:rgba(0,0,0,.2);color:#fff;font-size:.9em;padding:.3em 3em;border-radius:0;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none!important;display:none}.ol-control.ol-status.ol-visible{display:initial}.ol-control.ol-status.ol-bottom{top:auto;bottom:0}.ol-control.ol-status.ol-left{top:0;bottom:0;padding:.3em .5em .3em 3em;width:auto}.ol-control.ol-status.ol-right{top:0;bottom:0;left:auto;right:0;padding:.3em 3em .3em .5em;width:auto}.ol-control.ol-status.ol-center{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ol-control.ol-storymap{top:.5em;left:.5em;bottom:.5em;max-width:35%;border-radius:.5em;position:absolute;height:auto}.ol-storymap{overflow:hidden;padding:0;height:100%;position:relative}.ol-storymap>div{overflow:hidden;padding:0;height:100%;position:relative;scroll-behavior:smooth;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ol-storymap>div.ol-move{scroll-behavior:unset}.ol-control.ol-storymap .chapter{padding:.5em}.ol-storymap .chapter{cursor:pointer;opacity:.4}.ol-storymap .chapter.ol-select{cursor:default;opacity:1}.ol-storymap .ol-scroll-top,.ol-storymap .ol-scroll-next{position:relative;min-height:1.7em;color:#003c8880;text-align:center;cursor:pointer}.ol-storymap .ol-scroll-next span{padding-bottom:1.4em;display:block}.ol-storymap .ol-scroll-top span{padding-top:1.4em;display:block}.ol-storymap .ol-scroll-top:before,.ol-storymap .ol-scroll-next:before{content:"";border:.3em solid currentColor;border-radius:.3em;border-color:transparent currentColor currentColor transparent;width:.8em;height:.8em;display:block;position:absolute;left:50%;-webkit-transform:translateX(-50%) rotate(45deg);transform:translate(-50%) rotate(45deg);-webkit-animation:ol-bounce-bottom .35s linear infinite alternate;animation:ol-bounce-bottom .35s linear infinite alternate;pointer-events:none}.ol-storymap .ol-scroll-top:before{border-color:currentColor transparent transparent currentColor;-webkit-animation:ol-bounce-top .35s linear infinite alternate;animation:ol-bounce-top .35s linear infinite alternate}@-webkit-keyframes ol-bounce-top{0%{top:-.2em}to{top:.5em}}@keyframes ol-bounce-top{0%{top:-.2em}to{top:.5em}}@-webkit-keyframes ol-bounce-bottom{0%{bottom:-.2em}to{bottom:.5em}}@keyframes ol-bounce-bottom{0%{bottom:-.2em}to{bottom:.5em}}.ol-storymap img[data-title]{cursor:pointer}.ol-swipe{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-ms-touch-action:none;touch-action:none}.ol-swipe:before{content:"";position:absolute;top:-5000px;bottom:-5000px;left:50%;width:4px;background:#fff;z-index:-1;-webkit-transform:translate(-2px,0);transform:translate(-2px)}.ol-swipe.horizontal:before{left:-5000px;right:-5000px;top:50%;bottom:auto;width:auto;height:4px}.ol-swipe,.ol-swipe button{cursor:ew-resize}.ol-swipe.horizontal,.ol-swipe.horizontal button{cursor:ns-resize}.ol-swipe:after,.ol-swipe button:before,.ol-swipe button:after{content:"";position:absolute;top:25%;bottom:25%;left:50%;width:2px;background:rgba(255,255,255,.8);transform:translate(-1px);-webkit-transform:translate(-1px,0)}.ol-swipe button:after{transform:translate(5px);-webkit-transform:translateX(5px)}.ol-swipe button:before{transform:translate(-7px);-webkit-transform:translateX(-7px)}.ol-control.ol-timeline{bottom:0;left:0;right:0;-webkit-transition:.3s;transition:.3s}.ol-control.ol-timeline.ol-collapsed{-webkit-transform:translateY(100%);transform:translateY(100%)}.ol-timeline{overflow:hidden;padding:2px 0 0}.ol-timeline .ol-scroll{overflow:hidden;scroll-behavior:smooth;line-height:1em;height:6em;padding:0 50%}.ol-timeline .ol-scroll.ol-move{scroll-behavior:unset}.ol-timeline.ol-hasbutton .ol-scroll{margin-left:1.5em;padding:0 calc(50% - .75em)}.ol-timeline .ol-buttons{display:none;position:absolute;top:0;background:rgba(255,255,255,.5);width:1.5em;bottom:0;left:0;z-index:10}.ol-timeline.ol-hasbutton .ol-buttons{display:block}.ol-timeline .ol-buttons button{font-size:1em;margin:1px;position:relative}.ol-timeline .ol-buttons .ol-zoom-in:before,.ol-timeline .ol-buttons .ol-zoom-out:before{content:"+";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-timeline .ol-buttons .ol-zoom-out:before{content:"\2212"}.ol-timeline .ol-scroll>div{height:100%;position:relative}.ol-timeline .ol-scroll .ol-times{background:rgba(255,255,255,.5);height:1em;bottom:0;position:absolute;left:-1000px;right:-1000px}.ol-timeline .ol-scroll .ol-time{position:absolute;font-size:.7em;color:#999;bottom:0;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-timeline .ol-scroll .ol-time.ol-year{color:#666;z-index:1}.ol-timeline .ol-scroll .ol-time:before{content:"";position:absolute;bottom:1.2em;left:50%;height:500px;border-left:1px solid currentColor}.ol-timeline .ol-scroll .ol-features{position:absolute;top:0;bottom:1em;left:-200px;right:-1000px;margin:0 0 0 200px;overflow:hidden}.ol-timeline .ol-scroll .ol-feature{position:absolute;font-size:.7em;color:#999;top:0;background:#fff;max-width:3em;max-height:2.4em;min-height:1em;line-height:1.2em;border:1px solid #ccc;overflow:hidden;padding:0 .5em 0 0;-webkit-transition:all .3s;transition:all .3s;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-timeline.ol-zoomhover .ol-scroll .ol-feature:hover,.ol-timeline.ol-zoomhover .ol-scroll .ol-feature.ol-select{z-index:1;-webkit-transform:scale(1.2);transform:scale(1.2);background:#eee}.ol-timeline .ol-center-date{display:none;position:absolute;left:50%;height:100%;width:2px;bottom:0;z-index:2;pointer-events:none;-webkit-transform:translateX(-50%);transform:translate(-50%);background-color:red;opacity:.4}.ol-timeline.ol-hasbutton .ol-center-date{left:calc(50% + .75em)}.ol-timeline.ol-pointer .ol-center-date{display:block}.ol-timeline.ol-pointer .ol-center-date:before,.ol-timeline.ol-pointer .ol-center-date:after{content:"";border:.3em solid transparent;border-width:.3em .25em;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-timeline.ol-pointer .ol-center-date:before{border-top-color:red;top:0}.ol-timeline.ol-pointer .ol-center-date:after{border-bottom-color:red;bottom:0}.ol-timeline.ol-interval .ol-center-date{display:block;background-color:transparent;border:0 solid #000;border-width:0 10000px;-webkit-box-sizing:content-box;box-sizing:content-box;opacity:.2}.ol-control.ol-videorec{top:0;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);white-space:nowrap}.ol-control.ol-videorec button{position:relative;display:inline-block;vertical-align:middle}.ol-control.ol-videorec button:before{content:"";position:absolute;top:50%;left:50%;width:.8em;height:.8em;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:currentColor}.ol-control.ol-videorec button.ol-start:before{width:.9em;height:.9em;border-radius:50%;background-color:#c00}.ol-control.ol-videorec button.ol-pause:before{width:.2em;background-color:transparent;-webkit-box-shadow:-.2em 0,.2em 0;box-shadow:-.2em 0,.2em 0}.ol-control.ol-videorec button.ol-resume:before{border-style:solid;background:transparent;width:auto;border-width:.4em 0 .4em .6em;border-color:transparent transparent transparent currentColor;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-control.ol-videorec button.ol-stop,.ol-control.ol-videorec button.ol-pause,.ol-control.ol-videorec button.ol-resume,.ol-control.ol-videorec[data-state=rec] .ol-start,.ol-control.ol-videorec[data-state=pause] .ol-start{display:none}.ol-control.ol-videorec[data-state=rec] .ol-stop,.ol-control.ol-videorec[data-state=pause] .ol-stop,.ol-control.ol-videorec[data-state=rec] .ol-pause,.ol-control.ol-videorec[data-state=pause] .ol-resume{display:inline-block}.ol-control.ol-wmscapabilities{top:.5em;right:2.5em}.ol-touch .ol-control.ol-wmscapabilities{right:3em}.ol-control.ol-wmscapabilities.ol-hidden{display:none}.ol-control.ol-wmscapabilities button:before{content:"+";position:absolute;top:calc(50% - .35em);left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-control.ol-wmscapabilities button:after{content:"";width:.75em;height:.75em;position:absolute;background:transparent;top:calc(50% - .05em);left:50%;-webkit-transform:scaleY(.6) translate(-50%,-50%) rotate(45deg);transform:scaleY(.6) translate(-50%,-50%) rotate(45deg);-webkit-box-shadow:inset -.18em -.18em currentColor,-.4em .1em 0 -.25em currentColor,.1em -.35em 0 -.25em currentColor,.15em .15em currentColor;box-shadow:inset -.18em -.18em currentColor,-.4em .1em 0 -.25em currentColor,.1em -.35em 0 -.25em currentColor,.15em .15em currentColor;border-radius:.1em 0;border:.15em solid transparent;border-width:0 .15em .15em 0}.ol-wmscapabilities .ol-searching{opacity:.5}.ol-wmscapabilities .ol-searching .ol-url:after{content:"";width:.7em;height:.7em;background-color:currentColor;position:absolute;top:6em;border-radius:50%;display:block;left:calc(50% - .35em);-webkit-box-shadow:0 1em currentColor,0 -1em currentColor,1em 0 currentColor,-1em 0 currentColor;box-shadow:0 1em currentColor,0 -1em currentColor,1em 0 currentColor,-1em 0 currentColor;-webkit-animation:ol-wmscapabilities-rotate 2s linear infinite;animation:ol-wmscapabilities-rotate 2s linear infinite}@-webkit-keyframes ol-wmscapabilities-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes ol-wmscapabilities-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ol-wmscapabilities .ol-url input{width:calc(100% - 10em);-webkit-box-sizing:border-box;box-sizing:border-box;min-width:Min(100%,20em)}.ol-wmscapabilities .ol-url select{width:2em;height:100%;padding:1px}.ol-wmscapabilities .ol-url button{width:7.5em;margin-left:.5em}.ol-wmscapabilities .ol-result{display:none;margin-top:.5em}.ol-wmscapabilities .ol-result.ol-visible{display:block}.ol-wmscapabilities .ol-select-list{position:relative;border:1px solid #369;overflow-x:hidden;width:calc(100% - 120px);-webkit-box-sizing:border-box;box-sizing:border-box;max-height:14.5em}.ol-wmscapabilities .ol-select-list div{padding:0 .5em;cursor:pointer;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden}.ol-wmscapabilities .ol-select-list .level-1{padding-left:1em}.ol-wmscapabilities .ol-select-list .level-2{padding-left:1.5em}.ol-wmscapabilities .ol-select-list .level-3{padding-left:2em}.ol-wmscapabilities .ol-select-list .level-4{padding-left:2.5em}.ol-wmscapabilities .ol-select-list .level-5{padding-left:3em}.ol-wmscapabilities .ol-select-list .ol-info{font-style:italic}.ol-wmscapabilities .ol-select-list .ol-title{background-color:#003c881a}.ol-wmscapabilities .ol-select-list div:hover{background-color:#003c8880;color:#fff}.ol-wmscapabilities .ol-select-list div.selected{background-color:#003c88b3;color:#fff}.ol-wmscapabilities .ol-preview{width:100px;float:right;background:rgba(0,60,136,.1);color:#666;padding:0 5px 5px;text-align:center;margin-left:10px}.ol-wmscapabilities .ol-preview.tainted{width:100px;float:right;background:rgba(136,0,60,.1);color:#666;padding:0 5px 5px;text-align:center;margin-left:10px}.ol-wmscapabilities .ol-preview img{width:100%;display:block;background:#fff}.ol-wmscapabilities .ol-legend{max-width:100%;display:none}.ol-wmscapabilities .ol-legend.visible{display:block}.ol-wmscapabilities .ol-buttons{clear:both;text-align:right}.ol-wmscapabilities .ol-data p{margin:0}.ol-wmscapabilities .ol-data p.ol-title{font-weight:700;margin:1em 0 .5em}.ol-wmscapabilities .ol-error{color:#800}.ol-wmscapabilities ul.ol-wmsform{display:none;list-style:none;padding:0}.ol-wmscapabilities ul.ol-wmsform.visible{display:block}.ol-wmscapabilities .ol-wmsform label{display:inline-block;text-align:right;width:calc(40% - .5em);margin-right:.5em}.ol-wmscapabilities .ol-wmsform input{display:inline-block;width:60%;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-wmscapabilities .ol-wmsform input[type=checkbox]{width:auto}.ol-wmscapabilities .ol-wmsform button{float:right;margin:1em 0}.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] input{width:calc(60% - 2em)}.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] button{position:relative;width:2em;height:1.6em;margin:0;vertical-align:middle;color:#444}.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] button:before,.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] button:after{content:"";position:absolute;width:.25em;height:.9em;border:.1em solid currentColor;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) skewY(-15deg);transform:translate(-50%,-50%) skewY(-15deg)}.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] button:after{-webkit-transform:translateX(.4em) translate(-50%,-50%) skewY(15deg);transform:translate(.4em) translate(-50%,-50%) skewY(15deg);-webkit-box-shadow:-.8em .25em;box-shadow:-.8em .25em}.ol-ext-dialog.ol-wmscapabilities form{max-height:calc(85% - 1em);width:600px;min-height:15em;top:15%;-webkit-transform:translate(-50%,0);transform:translate(-50%)}.ol-ext-dialog.ol-wmtscapabilities [data-param=map],.ol-ext-dialog [data-param=style]{display:none}.ol-ext-dialog.ol-wmtscapabilities [data-param=style]{display:list-item}.ol-ext-dialog.ol-wmtscapabilities [data-param=proj],.ol-ext-dialog.ol-wmtscapabilities [data-param=version]{opacity:.6;pointer-events:none}.ol-ext-dialog.ol-wmscapabilities button.ol-wmsform{width:1.8em;text-align:center}.ol-ext-dialog.ol-wmscapabilities button.ol-wmsform:before{content:"+"}.ol-ext-dialog.ol-wmscapabilities .ol-form button.ol-wmsform:before{content:"-"}.ol-ext-dialog.ol-wmscapabilities .ol-form button.ol-load,.ol-ext-dialog.ol-wmscapabilities .ol-form .ol-legend{display:none}.ol-ext-dialog.ol-wmscapabilities .ol-form ul.ol-wmsform{display:block;clear:both}.ol-target-overlay .ol-target{border:1px solid transparent;-webkit-box-shadow:0 0 1px 1px #fff;box-shadow:0 0 1px 1px #fff;display:block;height:20px;width:0}.ol-target-overlay .ol-target:after,.ol-target-overlay .ol-target:before{content:"";border:1px solid #369;-webkit-box-shadow:0 0 1px 1px #fff;box-shadow:0 0 1px 1px #fff;display:block;width:20px;height:0;position:absolute;top:10px;left:-10px}.ol-target-overlay .ol-target:after{-webkit-box-shadow:none;box-shadow:none;height:20px;width:0;top:0px;left:0px}.ol-overlaycontainer .ol-touch-cursor{width:56px;height:56px;margin:6px;border-radius:50%;cursor:pointer;background:rgba(255,255,255,.4);-webkit-box-shadow:inset 0 0 0 5px #369;box-shadow:inset 0 0 0 5px #369}.ol-overlaycontainer .ol-touch-cursor:after{content:"";position:absolute;top:0;left:0;width:50%;height:50%;background:radial-gradient(circle at 100% 100%,transparent,transparent 70%,#369 70%,#369)}.ol-overlaycontainer .ol-touch-cursor .ol-button{position:absolute;color:#369;height:55%;width:55%;border-radius:50%;cursor:pointer;background:rgba(255,255,255,.4);-webkit-box-shadow:inset 0 0 0 3px currentColor;box-shadow:inset 0 0 0 3px currentColor;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0);-webkit-transition:all .5s,opacity 0s,background 0s;transition:all .5s,opacity 0s,background 0s;overflow:hidden}.ol-overlaycontainer .ol-touch-cursor.active.disable .ol-button{opacity:.8;background:rgba(51,102,153,.2)}.ol-overlaycontainer .ol-touch-cursor.active .ol-button{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-0{top:-18%;left:118%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-1{top:50%;left:140%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-2{top:120%;left:120%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-3{top:140%;left:50%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-4{top:118%;left:-18%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-5{top:50%;left:-40%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-6{top:-18%;left:-18%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-7{top:-40%;left:50%}.ol-overlaycontainer .ol-touch-cursor .ol-button:before{content:"";width:1.5em;height:1em;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);line-height:1em;text-align:center}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-add:before,.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-remove:before{content:"\2212";line-height:.95em;font-size:1.375em;font-weight:700}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-add:before{content:"+"}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-x:before{content:"\d7";font-size:1.2em;font-weight:700}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-move:before{content:"\2725";font-size:1.2em}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-check:before{content:"\2713";font-weight:700}.ol-overlaycontainer .ol-touch-cursor.nodrawing .ol-button.ol-button-x,.ol-overlaycontainer .ol-touch-cursor.nodrawing .ol-button.ol-button-remove,.ol-overlaycontainer .ol-touch-cursor.nodrawing .ol-button.ol-button-check{opacity:.8;background:rgba(51,102,153,.2)}.ol-overlaycontainer .ol-touch-cursor .ol-button>div{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-overlaycontainer .ol-touch-cursor .ol-button-type:before{content:"\21ce";font-weight:700}.mapboxgl-canvas:focus{outline:none}.ol-perspective-map{position:absolute;left:50%;top:50%;width:200%;height:200%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-perspective-map .ol-layer{z-index:-1!important}.ol-perspective-map .ol-layers{-webkit-transform:translateY(0) perspective(200px) rotateX(0deg) scaleY(1);transform:translateY(0) perspective(200px) rotateX(0) scaleY(1)}.ol-perspective-map .ol-overlaycontainer,.ol-perspective-map .ol-overlaycontainer-stopevent{width:50%!important;height:50%!important;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-overlay-container .ol-magnify{background:rgba(0,0,0,.5);border:3px solid #369;border-radius:50%;height:150px;width:150px;overflow:hidden;-webkit-box-shadow:5px 5px 5px rgba(0,0,0,.5);box-shadow:5px 5px 5px #00000080;position:relative;z-index:0}.ol-overlay-container .ol-magnify:before{border-radius:50%;-webkit-box-shadow:0 0 40px 2px rgba(0,0,0,.25) inset;box-shadow:0 0 40px 2px #00000040 inset;content:"";display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:1}.ol-overlay-container .ol-magnify:after{border-radius:50%;-webkit-box-shadow:0 0 20px 7px rgba(255,255,255,1);box-shadow:0 0 20px 7px #fff;content:"";display:block;height:0;left:23%;position:absolute;top:20%;width:20%;z-index:1;transform:rotate(-40deg);-webkit-transform:rotate(-40deg)}.ol-popup.anim{visibility:hidden}.ol-popup.anim.visible{visibility:visible}.ol-popup.anim.visible>div{visibility:visible;-webkit-transform:none;transform:none;-webkit-animation:ol-popup_bounce .4s ease 1;animation:ol-popup_bounce .4s ease 1}@-webkit-keyframes ol-popup_bounce{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.1);transform:scale(1.1)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes ol-popup_bounce{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.1);transform:scale(1.1)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}.ol-popup.anim.ol-popup-bottom.ol-popup-left>div{-webkit-transform-origin:0 100%;transform-origin:0 100%}.ol-popup.anim.ol-popup-bottom.ol-popup-right>div{-webkit-transform-origin:100% 100%;transform-origin:100% 100%}.ol-popup.anim.ol-popup-bottom.ol-popup-center>div{-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.ol-popup.anim.ol-popup-top.ol-popup-left>div{-webkit-transform-origin:0 0;transform-origin:0 0}.ol-popup.anim.ol-popup-top.ol-popup-right>div{-webkit-transform-origin:100% 0;transform-origin:100% 0}.ol-popup.anim.ol-popup-top.ol-popup-center>div{-webkit-transform-origin:50% 0;transform-origin:50% 0}.ol-popup.anim.ol-popup-middle.ol-popup-left>div{-webkit-transform-origin:0 50%;transform-origin:0 50%}.ol-popup.anim.ol-popup-middle.ol-popup-right>div{-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.ol-popup{font-size:.9em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ol-popup .ol-popup-content{overflow:hidden;cursor:default;padding:.25em .5em}.ol-popup.hasclosebox .ol-popup-content{margin-right:1.7em}.ol-popup .ol-popup-content:after{clear:both;content:"";display:block;font-size:0;height:0}.ol-popup .anchor{display:block;width:0px;height:0px;background:red;position:absolute;margin:-11px 22px;pointer-events:none}.ol-popup .anchor:after,.ol-popup .anchor:before{position:absolute}.ol-popup-right .anchor:after,.ol-popup-right .anchor:before{right:0}.ol-popup-top .anchor{top:0}.ol-popup-bottom .anchor{bottom:0}.ol-popup-right .anchor{right:0}.ol-popup-left .anchor{left:0}.ol-popup-center .anchor{left:50%;margin-left:0!important}.ol-popup-middle .anchor{top:50%;margin-top:0!important}.ol-popup-center.ol-popup-middle .anchor{display:none}.ol-popup.ol-fixed{margin:0!important;top:.5em!important;right:.5em!important;left:auto!important;bottom:auto!important;-webkit-transform:none!important;transform:none!important}.ol-popup.ol-fixed .anchor{display:none}.ol-popup.ol-fixed.anim>div{-webkit-animation:none;animation:none}.ol-popup .ol-fix{width:1em;height:.9em;background:#fff;position:relative;float:right;margin:.2em;cursor:pointer}.ol-popup .ol-fix:before{content:"";width:.8em;height:.7em;display:block;border:.1em solid #666;border-right-width:.1em;border-right-width:.3em;-webkit-box-sizing:border-box;box-sizing:border-box;margin:.1em}.ol-popup.shadow{-webkit-box-shadow:2px 2px 2px 2px rgba(0,0,0,.5);box-shadow:2px 2px 2px 2px #00000080}.ol-popup .closeBox{background-color:#003c8880;color:#fff;border:0;border-radius:2px;cursor:pointer;float:right;font-size:.9em;font-weight:700;width:1.4em;height:1.4em;margin:5px 5px 0 0;padding:0;position:relative;display:none}.ol-popup.hasclosebox .closeBox{display:block}.ol-popup .closeBox:hover{background-color:#003c88b3}.ol-popup .closeBox:after{content:"\d7";font-size:1.5em;top:50%;left:0;right:0;width:100%;text-align:center;line-height:1em;margin:-.5em 0;position:absolute}.ol-popup.modifytouch{background-color:#eee}.ol-popup.modifytouch .ol-popup-content{padding:0 .25em;font-size:.85em;white-space:nowrap}.ol-popup.modifytouch .ol-popup-content a{text-decoration:none}.ol-popup.tooltips{background-color:#ffa}.ol-popup.tooltips .ol-popup-content{padding:0 .25em;font-size:.85em;white-space:nowrap}.ol-popup.default>div{background-color:#fff;border:1px solid #69f;border-radius:5px}.ol-popup.default{margin:-11px 0;-webkit-transform:translate(0,-22px);transform:translateY(-22px)}.ol-popup-top.ol-popup.default{margin:11px 0;-webkit-transform:none;transform:none}.ol-popup-left.default{margin:-11px -22px;-webkit-transform:translate(0,-22px);transform:translateY(-22px)}.ol-popup-top.ol-popup-left.default{margin:11px -22px;-webkit-transform:none;transform:none}.ol-popup-right.default{margin:-11px 22px;-webkit-transform:translate(44px,-22px);transform:translate(44px,-22px)}.ol-popup-top.ol-popup-right.default{margin:11px 22px;-webkit-transform:translate(44px,0);transform:translate(44px)}.ol-popup-middle.default{margin:0 10px;-webkit-transform:none;transform:none}.ol-popup-middle.ol-popup-right.default{margin:0 -10px;-webkit-transform:translate(-20px,0);transform:translate(-20px)}.ol-popup.default .anchor{color:#69f}.ol-popup.default .anchor:after,.ol-popup.default .anchor:before{content:"";border-color:currentColor transparent;border-style:solid;border-width:11px;margin:0 -11px}.ol-popup.default .anchor:after{border-color:#fff transparent;border-width:11px;margin:2px -11px}.ol-popup-top.default .anchor:before,.ol-popup-top.default .anchor:after{border-top:0;top:0}.ol-popup-bottom.default .anchor:before,.ol-popup-bottom.default .anchor:after{border-bottom:0;bottom:0}.ol-popup-middle.default .anchor:before{margin:-11px -33px;border-color:transparent currentColor}.ol-popup-middle.default .anchor:after{margin:-11px -31px;border-color:transparent #fff}.ol-popup-middle.ol-popup-left.default .anchor:before,.ol-popup-middle.ol-popup-left.default .anchor:after{border-left:0}.ol-popup-middle.ol-popup-right.default .anchor:before,.ol-popup-middle.ol-popup-right.default .anchor:after{border-right:0}.ol-popup.placemark{color:#c00;margin:-.65em 0;-webkit-transform:translate(0,-1.3em);transform:translateY(-1.3em)}.ol-popup.placemark>div{position:relative;font-size:15px;background-color:#fff;border:0;-webkit-box-shadow:inset 0 0 0 .45em;box-shadow:inset 0 0 0 .45em;width:2em;height:2em;border-radius:50%;min-width:unset;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-popup.placemark .ol-popup-content{overflow:hidden;cursor:default;text-align:center;padding:.25em 0;width:1em;height:1em;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);line-height:1em}.ol-popup.placemark .anchor{margin:0}.ol-popup.placemark .anchor:before{content:"";margin:-.5em;background:transparent;width:1em;height:.5em;border-radius:50%;-webkit-box-shadow:0 1em .5em rgba(0,0,0,.5);box-shadow:0 1em .5em #00000080}.ol-popup.placemark .anchor:after{content:"";border-color:currentColor transparent;border-style:solid;border-width:1em .7em 0;margin:-.75em -.7em;bottom:0}.ol-popup.placemark.shield>div{border-radius:.2em}.ol-popup.placemark.shield .anchor:after{border-width:.8em 1em 0;margin:-.7em -1em}.ol-popup.placemark.blazon>div{border-radius:.2em}.ol-popup.placemark.pushpin{margin:-2.2em 0;-webkit-transform:translate(0,-4em);transform:translateY(-4em)}.ol-popup.placemark.pushpin>div{border-radius:0;background:transparent!important;-webkit-box-shadow:inset 2em 0 currentColor;box-shadow:inset 2em 0 currentColor;width:1.1em}.ol-popup.placemark.pushpin>div:before{content:"";width:1.3em;height:1.5em;border-style:solid;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-color:currentColor transparent;border-width:.3em .5em .5em;pointer-events:none}.ol-popup.placemark.needle{margin:-2em 0;-webkit-transform:translate(0,-4em);transform:translateY(-4em)}.ol-popup.placemark.pushpin .anchor,.ol-popup.placemark.needle .anchor{margin:-1.2em}.ol-popup.placemark.pushpin .anchor:after,.ol-popup.placemark.needle .anchor:after{border-style:solid;border-width:2em .15em 0;margin:-.55em -.2em;width:.1em}.ol-popup.placemark.pushpin .anchor:before,.ol-popup.placemark.needle .anchor:before{margin:-.75em -.5em}.ol-popup.placemark.flagv{margin:-2em 1em;-webkit-transform:translate(0,-4em);transform:translateY(-4em)}.ol-popup.placemark.flagv>div{border-radius:0;-webkit-box-shadow:none;box-shadow:none;background-color:transparent}.ol-popup.placemark.flagv>div:before{content:"";border:1em solid transparent;position:absolute;border-left:2em solid currentColor;pointer-events:none}.ol-popup.placemark.flagv .anchor{margin:-1.4em}.ol-popup.placemark.flag{margin:-2em 1em;-webkit-transform:translate(0,-4em);transform:translateY(-4em)}.ol-popup.placemark.flag>div{border-radius:0;-webkit-transform-origin:0% 150%!important;transform-origin:0% 150%!important}.ol-popup.placemark.flag .anchor{margin:-1.4em}.ol-popup.placemark.flagv .anchor:after,.ol-popup.placemark.flag .anchor:after{border-style:solid;border-width:2em .15em 0;margin:-.55em -1em;width:.1em}.ol-popup.placemark.flagv .anchor:before,.ol-popup.placemark.flag .anchor:before{margin:-.75em -1.25em}.ol-popup.placemark.flag.finish{margin:-2em 1em}.ol-popup.placemark.flag.finish>div{background-image:linear-gradient(45deg,currentColor 25%,transparent 25%,transparent 75%,currentColor 75%,currentColor),linear-gradient(45deg,currentColor 25%,transparent 25%,transparent 75%,currentColor 75%,currentColor);background-size:1em 1em;background-position:.5em 0,0 .5em;-webkit-box-shadow:inset 0 0 0 .25em;box-shadow:inset 0 0 0 .25em}.ol-popup.black .closeBox{background-color:#00000080;border-radius:5px;color:#f80}.ol-popup.black .closeBox:hover{background-color:#000000b3;color:#da2}.ol-popup.black{margin:-20px 0;-webkit-transform:translate(0,-40px);transform:translateY(-40px)}.ol-popup.black>div{background-color:#0009;border-radius:5px;color:#fff}.ol-popup-top.ol-popup.black{margin:20px 0;-webkit-transform:none;transform:none}.ol-popup-left.black{margin:-20px -22px;-webkit-transform:translate(0,-40px);transform:translateY(-40px)}.ol-popup-top.ol-popup-left.black{margin:20px -22px;-webkit-transform:none;transform:none}.ol-popup-right.black{margin:-20px 22px;-webkit-transform:translate(44px,-40px);transform:translate(44px,-40px)}.ol-popup-top.ol-popup-right.black{margin:20px 22px;-webkit-transform:translate(44px,0);transform:translate(44px)}.ol-popup-middle.black{margin:0 11px;-webkit-transform:none;transform:none}.ol-popup-left.ol-popup-middle.black{-webkit-transform:none;transform:none}.ol-popup-right.ol-popup-middle.black{margin:0 -11px;-webkit-transform:translate(-22px,0);transform:translate(-22px)}.ol-popup.black .anchor{margin:-20px 11px;color:#0009}.ol-popup.black .anchor:before{content:"";border-color:currentColor transparent;border-style:solid;border-width:20px 11px}.ol-popup-top.black .anchor:before{border-top:0;top:0}.ol-popup-bottom.black .anchor:before{border-bottom:0;bottom:0}.ol-popup-middle.black .anchor:before{margin:-20px -22px;border-color:transparent currentColor}.ol-popup-middle.ol-popup-left.black .anchor:before{border-left:0}.ol-popup-middle.ol-popup-right.black .anchor:before{border-right:0}.ol-popup-center.black .anchor:before{margin:0 -10px}.ol-popup.tips .closeBox{background-color:red;border-radius:50%;color:#fff;width:1.2em;height:1.2em}.ol-popup.tips .closeBox:hover{background-color:#f40}.ol-popup.tips{margin:-20px 0;-webkit-transform:translate(0,-40px);transform:translateY(-40px)}.ol-popup.tips>div{background-color:#cea;border:5px solid #ad7;border-radius:5px;color:#333}.ol-popup-top.ol-popup.tips{margin:20px 0;-webkit-transform:none;transform:none}.ol-popup-left.tips{margin:-20px -22px;-webkit-transform:translate(0,-40px);transform:translateY(-40px)}.ol-popup-top.ol-popup-left.tips{margin:20px -22px;-webkit-transform:none;transform:none}.ol-popup-right.tips{margin:-20px 22px;-webkit-transform:translate(44px,-40px);transform:translate(44px,-40px)}.ol-popup-top.ol-popup-right.tips{margin:20px 22px;-webkit-transform:translate(44px,0);transform:translate(44px)}.ol-popup-middle.tips{margin:0;-webkit-transform:none;transform:none}.ol-popup-left.ol-popup-middle.tips{margin:0 22px;-webkit-transform:none;transform:none}.ol-popup-right.ol-popup-middle.tips{margin:0 -22px;-webkit-transform:translate(-44px,0);transform:translate(-44px)}.ol-popup.tips .anchor{margin:-18px 22px;color:#ad7}.ol-popup.tips .anchor:before{content:"";border-color:currentColor transparent;border-style:solid;border-width:20px 11px}.ol-popup-top.tips .anchor:before{border-top:0;top:0}.ol-popup-bottom.tips .anchor:before{border-bottom:0;bottom:0}.ol-popup-center.tips .anchor:before{border-width:20px 6px;margin:0 -6px}.ol-popup-left.tips .anchor:before{border-left:0;margin-left:0}.ol-popup-right.tips .anchor:before{border-right:0;margin-right:0}.ol-popup-middle.tips .anchor:before{margin:-6px -41px;border-color:transparent currentColor;border-width:6px 20px}.ol-popup-middle.ol-popup-left.tips .anchor:before{border-left:0}.ol-popup-middle.ol-popup-right.tips .anchor:before{border-right:0}.ol-popup.warning .closeBox{background-color:red;border-radius:50%;color:#fff;font-size:.83em}.ol-popup.warning .closeBox:hover{background-color:#f40}.ol-popup.warning{background-color:#fd0;border-radius:3px;border:4px dashed #f00;color:#900;margin:-28px 10px;-webkit-transform:translate(0,-56px);transform:translateY(-56px)}.ol-popup-top.ol-popup.warning{margin:28px 10px;-webkit-transform:none;transform:none}.ol-popup-left.warning{margin:-28px -22px;-webkit-transform:translate(0,-56px);transform:translateY(-56px)}.ol-popup-top.ol-popup-left.warning{margin:28px -22px;-webkit-transform:none;transform:none}.ol-popup-right.warning{margin:-28px 22px;-webkit-transform:translate(44px,-56px);transform:translate(44px,-56px)}.ol-popup-top.ol-popup-right.warning{margin:28px 22px;-webkit-transform:translate(44px,0);transform:translate(44px)}.ol-popup-middle.warning{margin:0;-webkit-transform:none;transform:none}.ol-popup-left.ol-popup-middle.warning{margin:0 22px;-webkit-transform:none;transform:none}.ol-popup-right.ol-popup-middle.warning{margin:0 -22px;-webkit-transform:translate(-44px,0);transform:translate(-44px)}.ol-popup.warning .anchor{margin:-33px 7px}.ol-popup.warning .anchor:before{content:"";border-color:#f00 transparent;border-style:solid;border-width:30px 11px}.ol-popup-top.warning .anchor:before{border-top:0;top:0}.ol-popup-bottom.warning .anchor:before{border-bottom:0;bottom:0}.ol-popup-center.warning .anchor:before{margin:0 -21px}.ol-popup-middle.warning .anchor:before{margin:-10px -33px;border-color:transparent #f00;border-width:10px 22px}.ol-popup-middle.ol-popup-left.warning .anchor:before{border-left:0}.ol-popup-middle.ol-popup-right.warning .anchor:before{border-right:0}.ol-popup .ol-popupfeature table{width:100%}.ol-popup .ol-popupfeature table td{max-width:25em;overflow:hidden;text-overflow:ellipsis}.ol-popup .ol-popupfeature table td img{max-width:100px;max-height:100px}.ol-popup .ol-popupfeature tr:nth-child(2n+1){background-color:#eee}.ol-popup .ol-popupfeature .ol-zoombt{border:0;width:2em;height:2em;display:inline-block;color:#003c8880;position:relative;background:transparent;outline:none}.ol-popup .ol-popupfeature .ol-zoombt:before{content:"";position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;width:1em;height:1em;background-color:transparent;border:.17em solid currentColor;border-radius:100%;top:.3em;left:.3em}.ol-popup .ol-popupfeature .ol-zoombt:after{content:"";position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;top:1.35em;left:1.15em;border-width:.1em .3em;border-style:solid;border-radius:.03em;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-shadow:-.2em 0 0 -.04em;box-shadow:-.2em 0 0 -.04em}.ol-popup .ol-popupfeature .ol-count{float:right;margin:.25em 0}.ol-popup .ol-popupfeature .ol-prev,.ol-popup .ol-popupfeature .ol-next{border-style:solid;border-color:transparent rgba(0,60,136,.5);border-width:.5em 0 .5em .5em;display:inline-block;vertical-align:bottom;margin:0 .5em;cursor:pointer}.ol-popup .ol-popupfeature .ol-prev{border-width:.5em .5em .5em 0}.ol-popup.tooltips.black{background-color:transparent}.ol-popup.tooltips.black>div{-webkit-transform:scaleY(1.3);transform:scaleY(1.3);padding:.2em .5em;background-color:#00000080}.ol-popup-middle.tooltips.black .anchor:before{border-width:5px 10px;margin:-5px -21px}.ol-popup-center.ol-popup-middle,.ol-popup-top.ol-popup-left.ol-fixPopup,.ol-popup-top.ol-popup-right.ol-fixPopup,.ol-popup.ol-fixPopup{margin:0}.ol-miniscroll{position:relative}.ol-miniscroll:hover .ol-scroll{opacity:.5;-webkit-transition:opacity 1s;transition:opacity 1s}.ol-miniscroll .ol-scroll{-ms-touch-action:none;touch-action:none;position:absolute;right:0px;width:9px;height:auto;max-height:100%;opacity:0;border-radius:9px;-webkit-transition:opacity 1s .5s;transition:opacity 1s .5s;overflow:hidden;z-index:1}.ol-miniscroll .ol-scroll>div{-ms-touch-action:none;touch-action:none;position:absolute;top:0;right:0px;width:9px;height:9px;-webkit-box-shadow:inset 10px 0 currentColor;box-shadow:inset 10px 0 currentColor;border-radius:9px/12px;border:2px solid transparent;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.ol-miniscroll .ol-scroll.ol-100pc{opacity:0}.ol-viewport canvas.ol-fixedoverlay{position:absolute;top:0;left:0;width:100%;height:100%}.ol-ext-toggle-switch{cursor:pointer;position:relative}.ol-ext-toggle-switch input[type=radio],.ol-ext-toggle-switch input[type=checkbox]{display:none}.ol-ext-toggle-switch span{color:#003c8880;position:relative;cursor:pointer;background-color:#ccc;-webkit-transition:.4s,background-color 0s,border-color 0s;transition:.4s,background-color 0s,border-color 0s;width:1.6em;height:1em;display:inline-block;border-radius:1em;font-size:1.3em;vertical-align:middle;margin:-.15em .2em .15em}.ol-ext-toggle-switch span:before{position:absolute;content:"";height:1em;width:1em;left:0;top:50%;background-color:#fff;-webkit-transition:.4s;transition:.4s;border-radius:1em;display:block;-webkit-transform:translateY(-50%);transform:translateY(-50%);border:2px solid #ccc;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-ext-toggle-switch:hover span{background-color:#999}.ol-ext-toggle-switch:hover span:before{border-color:#999}.ol-ext-toggle-switch input:checked+span{background-color:currentColor}.ol-ext-toggle-switch input:checked+span:before{-webkit-transform:translate(.6em,-50%);transform:translate(.6em,-50%);border-color:currentColor}.ol-ext-check{position:relative;display:inline-block}.ol-ext-check input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.ol-ext-check span{color:#003c8880;position:relative;display:inline-block;width:1em;height:1em;margin:-.1em .5em .1em;background-color:#ccc;vertical-align:middle}.ol-ext-check:hover span{background-color:#999}.ol-ext-checkbox input:checked~span{background-color:currentColor}.ol-ext-checkbox input:checked~span:before{content:"";position:absolute;width:.5em;height:.8em;top:50%;left:50%;-webkit-transform:translateY(-.1em) translate(-50%,-50%) rotate(45deg);transform:translateY(-.1em) translate(-50%,-50%) rotate(45deg);-webkit-box-shadow:inset -.2em -.2em #fff;box-shadow:inset -.2em -.2em #fff}.ol-ext-radio span{width:1.1em;height:1.1em;border-radius:50%}.ol-ext-radio:hover input:checked~span{background-color:#ccc}.ol-ext-radio input:checked~span:before{content:"";position:absolute;width:50%;height:50%;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:50%;background-color:currentColor}.ol-collection-list{margin:0;padding:0;list-style:none}.ol-collection-list li{position:relative;padding:0 2em 0 1em}.ol-collection-list li:hover{background-color:#003c8833}.ol-collection-list li.ol-select{background-color:#003c8880;color:#fff}.ol-collection-list li .ol-order{position:absolute;-ms-touch-action:none;touch-action:none;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:2em;height:100%;cursor:n-resize}.ol-collection-list li .ol-order:before{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:18px;height:2px;background-color:currentColor;-webkit-box-shadow:0 5px,0 -5px;box-shadow:0 5px,0 -5px;border-radius:2px}.ol-ext-colorpicker.ol-popup{width:2em;height:1.5em;background-color:transparent;background-image:linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%),linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%);background-size:10px 10px;background-position:0 -1px,5px 4px}.ol-ext-colorpicker .ol-tabbar{background-color:#eee;border-bottom:1px solid #999;display:none}.ol-ext-colorpicker.ol-tab .ol-tabbar{display:block}.ol-ext-colorpicker .ol-tabbar>div{display:inline-block;background-color:#fff;padding:0 .5em;border:1px solid #999;border-radius:2px 2px 0 0;position:relative;top:1px;cursor:pointer}.ol-ext-colorpicker .ol-tabbar>div:nth-child(1){border-bottom-color:#fff}.ol-ext-colorpicker.ol-picker-tab .ol-tabbar>div:nth-child(1){border-bottom-color:#999}.ol-ext-colorpicker.ol-picker-tab .ol-tabbar>div:nth-child(2){border-bottom-color:#fff}.ol-ext-colorpicker.ol-popup.ol-tab .ol-popup{width:180px}.ol-ext-colorpicker.ol-tab .ol-palette{margin:0 10px}.ol-ext-colorpicker.ol-tab .ol-container{display:none}.ol-ext-colorpicker.ol-tab.ol-picker-tab .ol-container{display:block}.ol-ext-colorpicker.ol-tab.ol-picker-tab .ol-palette{display:none}.ol-ext-colorpicker.ol-popup .ol-popup{width:340px}.ol-ext-colorpicker.ol-popup .ol-vignet{content:"";position:absolute;width:100%;height:100%;top:0;left:0;border:0;background-color:currentColor;pointer-events:none}.ol-ext-colorpicker .ol-container{position:relative;display:inline-block;vertical-align:top}.ol-ext-colorpicker .ol-cursor{pointer-events:none}.ol-ext-colorpicker .ol-picker{position:relative;cursor:crosshair;width:150px;height:150px;border:5px solid #fff;background-color:currentColor;background-image:-webkit-gradient(linear,left top,left bottom,from(0),color-stop(#000),to(transparent)),-webkit-gradient(linear,left top,right top,from(#fff),to(transparent));background-image:linear-gradient(0,#000,transparent),linear-gradient(90deg,#fff,transparent)}.ol-ext-colorpicker .ol-picker .ol-cursor{position:absolute;left:50%;top:50%;border:1px solid rgba(0,0,0,.7);-webkit-box-shadow:0 0 0 1px rgba(255,255,255,.7);box-shadow:0 0 0 1px #ffffffb3;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:10px;height:10px;border-radius:50%}.ol-ext-colorpicker .ol-slider{position:relative;cursor:crosshair;background-color:#fff;height:10px;width:150px;margin:5px 0 10px;border:5px solid #fff;border-width:0 5px;background-image:linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%),linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%);background-size:10px 10px;background-position:0 -1px,5px 4px}.ol-ext-colorpicker .ol-slider>div{width:100%;height:100%;background-image:linear-gradient(45deg,transparent,#fff);pointer-events:none}.ol-ext-colorpicker .ol-slider .ol-cursor{position:absolute;width:4px;height:12px;border:1px solid #000;top:50%;left:0;background:transparent;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-ext-colorpicker .ol-tint{position:absolute;cursor:crosshair;width:10px;height:150px;border:5px solid #fff;border-width:5px 0;-webkit-box-sizing:border;box-sizing:border;top:0;right:5px;background-image:-webkit-gradient(linear,left top,left bottom,from(0),color-stop(#f00),color-stop(#f0f),color-stop(#00f),color-stop(#0ff),color-stop(#0f0),color-stop(#ff0),to(#f00));background-image:linear-gradient(0,#f00,#f0f,#00f,#0ff,#0f0,#ff0,#f00)}.ol-ext-colorpicker .ol-tint .ol-cursor{position:absolute;top:0;left:50%;border:1px solid #000;height:4px;width:12px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-ext-colorpicker .ol-clear{position:absolute;border:2px solid #999;right:4px;top:163px;width:10px;height:10px}.ol-ext-colorpicker .ol-clear:before,.ol-ext-colorpicker .ol-clear:after{content:"";position:absolute;width:15px;height:2px;background-color:#999;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.ol-ext-colorpicker .ol-clear:after{-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-ext-colorpicker.ol-nopacity .ol-slider,.ol-ext-colorpicker.ol-nopacity .ol-clear,.ol-ext-colorpicker.ol-nopacity .ol-alpha{display:none}.ol-ext-colorpicker .ol-rgb{position:relative;padding:5px;width:170px;display:none}.ol-ext-colorpicker .ol-rgb input{width:25%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 0 0 2px;border:1px solid #999;border-radius:2px;font-size:13px}.ol-ext-colorpicker .ol-rgb input:nth-child(1){background-color:#ff00001a}.ol-ext-colorpicker .ol-rgb input:nth-child(2){background-color:#00ff001a}.ol-ext-colorpicker .ol-rgb input:nth-child(3){background-color:#0000ff1f}.ol-ext-colorpicker button,.ol-ext-colorpicker .ol-txt-color{font-size:13px;margin:0 5px 5px;text-align:center;width:170px;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0;border:1px solid #999;border-radius:2px;display:block}.ol-ext-colorpicker button{background-color:#eee}.ol-ext-colorpicker button:hover{background-color:#e9e9e9}.ol-ext-colorpicker .ol-txt-color.ol-error{background-color:#f003}.ol-ext-colorpicker .ol-palette{padding:2px;display:inline-block;width:152px}.ol-ext-colorpicker .ol-palette>div{width:15px;height:15px;display:inline-block;background-image:linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%),linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%);background-size:10px 10px;background-position:0 0,5px 5px;margin:2px;-webkit-box-shadow:0 0 2px 0px #666;box-shadow:0 0 2px #666;border-radius:1px;cursor:pointer;position:relative}.ol-ext-colorpicker .ol-palette>div:before{content:"";position:absolute;background-color:currentColor;width:100%;height:100%}.ol-ext-colorpicker .ol-palette>div.ol-select:after{content:"";position:absolute;width:6px;height:12px;-webkit-box-shadow:1px 1px #fff,2px 2px #000;box-shadow:1px 1px #fff,2px 2px #000;top:30%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.ol-ext-colorpicker .ol-palette>div:hover{-webkit-box-shadow:0 0 2px 1px #d90;box-shadow:0 0 2px 1px #d90}.ol-ext-colorpicker .ol-palette hr{margin:0}.ol-input-popup{display:inline-block;position:relative}.ol-input-popup .ol-popup{position:absolute;-webkit-box-shadow:1px 1px 3px 1px #999;box-shadow:1px 1px 3px 1px #999;background-color:#fff;z-index:1;display:none;left:-5px;padding:0;margin:0;list-style:none;white-space:nowrap}.ol-input-popup.ol-hover:hover .ol-popup,.ol-input-popup.ol-focus .ol-popup{display:block}.ol-input-popup.ol-right .ol-popup{left:auto;right:-5px}.ol-input-popup.ol-middle .ol-popup{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ol-input-popup .ol-popup li{position:relative;padding:10px 5px}.ol-input-popup li:hover,.ol-input-popup li.ol-selected{background-color:#ccc}.ol-input-popup.ol-fixed:hover .ol-popup,.ol-input-popup.ol-fixed .ol-popup{position:relative;left:0;-webkit-box-shadow:unset;box-shadow:unset;background-color:transparent;display:inline-block;vertical-align:middle}.ol-input-popup.ol-fixed.ol-left .ol-popup{float:left}.ol-input-popup>div{position:relative;display:inline-block;vertical-align:middle;border-radius:2px;border:1px solid #999;padding:3px 20px 3px 10px}.ol-input-popup>div:before{position:absolute;content:"";right:5px;top:50%;border:5px solid transparent;border-top:5px solid #999}.ol-ext-popup-input{display:inline-block;vertical-align:top}.ol-ext-popup-input.ol-popup{position:relative;width:2em;height:1.5em;display:inline-block;border:3px solid #fff;border-right-width:1em;-webkit-box-shadow:0 0 2px 1px #666;box-shadow:0 0 2px 1px #666;border-radius:2px;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.ol-ext-popup-input.ol-popup:after{content:"";position:absolute;border:.5em solid #aaa;border-width:.5em .3em 0;border-color:#999 transparent;right:-.8em;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);pointer-events:none}.ol-ext-popup-input *{-webkit-box-sizing:content-box;box-sizing:content-box}.ol-ext-popup-input.ol-popup .ol-popup{position:absolute;top:100%;min-width:3em;min-height:3em;left:0;-webkit-box-shadow:1px 1px 3px 1px #999;box-shadow:1px 1px 3px 1px #999;display:block;background-color:#fff;display:none;z-index:1}.ol-ext-popup-input.ol-popup .ol-popup.ol-visible{display:block}.ol-ext-popup-input.ol-popup-fixed .ol-popup{position:fixed;top:auto;left:auto}.ol-input-popup.ol-size li{display:table-cell;height:100%;padding:5px;vertical-align:middle}.ol-input-popup.ol-size li>*{background-color:#369;border-radius:50%;vertical-align:middle;width:1em;height:1em}.ol-input-popup.ol-size li>.ol-option-0{position:relative;width:1em;height:1em;border:2px solid currentColor;color:#aaa;background-color:transparent;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-input-popup.ol-size li>*:before{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-input-popup.ol-size li>.ol-option-0:before{content:"";width:1em;height:2px;background-color:#aaa;-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-input-slider{display:inline-block;position:relative}.ol-input-slider .ol-popup{position:absolute;-webkit-box-shadow:1px 1px 3px 1px #999;box-shadow:1px 1px 3px 1px #999;background-color:#fff;z-index:1;display:none;left:-5px}.ol-input-slider.ol-right .ol-popup{left:auto;right:-5px}.ol-input-slider.ol-hover:hover .ol-popup,.ol-input-slider.ol-focus .ol-popup{display:block;white-space:nowrap}.ol-input-slider.ol-hover:hover .ol-popup>*,.ol-input-slider.ol-focus .ol-popup>*{display:inline-block;vertical-align:middle}.ol-input-slider.ol-hover:hover .ol-popup>.ol-before,.ol-input-slider.ol-focus .ol-popup>.ol-before{margin-left:10px}.ol-input-slider.ol-hover:hover .ol-popup>.ol-after,.ol-input-slider.ol-focus .ol-popup>.ol-after{margin-right:10px}.ol-input-slider .ol-slider{position:relative;width:100px;height:3px;border:0 solid transparent;border-width:10px 15px;-webkit-box-shadow:inset 0 0 0 1px #999;box-shadow:inset 0 0 0 1px #999;-webkit-box-sizing:content-box;box-sizing:content-box;cursor:pointer}.ol-input-slider .ol-slider>.ol-cursor{position:absolute;width:5px;height:10px;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#999;pointer-events:none}.ol-input-slider.ol-fixed:hover .ol-popup,.ol-input-slider.ol-fixed .ol-popup{position:relative;left:0;-webkit-box-shadow:unset;box-shadow:unset;background-color:transparent;display:inline-block;vertical-align:middle}.ol-input-slider.ol-fixed.ol-left .ol-popup{float:left}.ol-input-slider.ol-size .ol-slider{height:auto;-webkit-box-shadow:none;box-shadow:none}.ol-input-slider.ol-size .ol-slider .ol-back{width:0;color:#aaa;border:0 solid transparent;border-width:0 0 20px 100px;border-color:currentColor transparent;pointer-events:none}.ol-input-slider.ol-size .ol-slider>.ol-cursor{width:2px;height:calc(100% + 4px);border-width:5px 3px;border-style:solid;border-color:#f00 transparent;-o-border-image:initial;border-image:initial;background-color:transparent;-webkit-box-shadow:inset 3px 0px #f00;box-shadow:inset 3px 0 red}.ol-input-popup.ol-width li{padding:5px}.ol-input-popup.ol-width li>*{background-color:#369;width:100px;height:1em}.ol-input-popup.ol-width li>.ol-option-0{position:relative;height:1px;background-image:linear-gradient(90deg,#aaa 2px,transparent 2px);background-color:transparent;background-size:4px}/*! +.overlay-content[data-v-b528d279]{width:1%}.trainMapIcon[data-v-b528d279]{height:32px;width:32px}.slideLeft-enter-active[data-v-b528d279],.slideLeft-leave-active[data-v-b528d279]{transition:opacity .5s;transition:all .8s}.slideLeft-enter-from[data-v-b528d279],.slideLeft-leave-to[data-v-b528d279]{opacity:0;transform:translate(-100px)}@keyframes gradient-b528d279{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}#sidebar[data-v-b528d279]{position:absolute;height:85%;width:20%;left:2%;top:12%;z-index:2;text-align:center;animation:gradient-b528d279 15s ease infinite;background:linear-gradient(45deg,#000000,#111111,#222222,#333333,#444444,#555555);background-size:400%,400%;box-shadow:0 0 4px 2px #333}#sidebarDiv[data-v-b528d279]{position:relative;height:100%;width:100%;color:#fff}#sidebarHeader[data-v-b528d279]{position:relative;top:0%;height:10%;width:100%;overflow:hidden}#headerImage[data-v-b528d279]{height:100%;width:auto;overflow:hidden}#xButton[data-v-b528d279]{font-size:80%;font-family:Georgia;color:#fff;position:absolute;top:10px;right:10px}#xButton[data-v-b528d279]:hover{color:red}#sidebarFooter[data-v-b528d279]{position:relative;bottom:0%;height:10%;text-align:center;color:azure}#sidebarMain[data-v-b528d279]{position:relative;height:80%;width:100%;overflow:hidden}#sidebarContent[data-v-b528d279]{position:relative;size:6px;color:#fff;overflow-wrap:break-word;font-family:Georgia,Times New Roman,Times,serif}#mapDiv[data-v-b528d279]{background-color:#000;position:absolute;float:right;right:0%;top:0%;width:100%;overflow:hidden;height:100%}#mapIFrame[data-v-b528d279]{position:relative;height:100%;width:100%;top:0%;z-index:0}#buttonDiv[data-v-b528d279]{position:absolute;float:right;right:10%;top:0%;width:10%;height:10px}#buttonElement[data-v-b528d279]{position:relative;top:50%;left:50%;z-index:0}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid rgb(179,197,219);background-color:#fff6}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:rgba(0,60,136,.3);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid #eee;border-top:none;color:#eee;font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-step-marker{width:1px;height:15px;background-color:#000;float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:12px;z-index:11;color:#000;text-shadow:-2px 0 #FFFFFF,0 2px #FFFFFF,2px 0 #FFFFFF,0 -2px #FFFFFF}.ol-scale-text{position:absolute;font-size:14px;text-align:center;bottom:25px;color:#000;text-shadow:-2px 0 #FFFFFF,0 2px #FFFFFF,2px 0 #FFFFFF,0 -2px #FFFFFF}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid black}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.ol-viewport canvas{all:unset}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:#fff6;border-radius:4px;padding:2px}.ol-control:hover{background-color:#fff9}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:#fff;font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:#003c8880;border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;font-size:1.2em;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;background-color:#003c88b3}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:#003c88b3;text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:#000;text-shadow:0 0 2px #fff;font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:rgba(255,255,255,.8)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid #7b98bc;height:150px;margin:2px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:2px;left:2px;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:rgba(255,255,255,.8)}.ol-overviewmap-box{border:2px dotted rgba(0,60,136,.7)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-control i{cursor:default}.ol-control.ol-bar{left:50%;min-height:1em;min-width:1em;position:absolute;top:.5em;transform:translate(-50%);-webkit-transform:translate(-50%,0);white-space:nowrap}.ol-control.ol-toggle .ol-option-bar{display:none}.ol-control.ol-bar .ol-control{position:relative;top:auto;left:auto;right:auto;bottom:auto;display:inline-block;vertical-align:middle;background-color:transparent;padding:0;margin:0;transform:none;-webkit-transform:none}.ol-control.ol-bar .ol-bar{position:static}.ol-control.ol-bar .ol-control button{margin:2px 1px;outline:none}.ol-control.ol-bar.ol-left{left:.5em;top:50%;-webkit-transform:translate(0px,-50%);transform:translateY(-50%)}.ol-control.ol-bar.ol-left .ol-control{display:block}.ol-control.ol-bar.ol-right{left:auto;right:.5em;top:50%;-webkit-transform:translate(0px,-50%);transform:translateY(-50%)}.ol-control.ol-bar.ol-right .ol-control{display:block}.ol-control.ol-bar.ol-bottom{top:auto;bottom:.5em}.ol-control.ol-bar.ol-top.ol-left,.ol-control.ol-bar.ol-top.ol-right{top:4.5em;-webkit-transform:none;transform:none}.ol-touch .ol-control.ol-bar.ol-top.ol-left,.ol-touch .ol-control.ol-bar.ol-top.ol-right{top:5.5em}.ol-control.ol-bar.ol-bottom.ol-left,.ol-control.ol-bar.ol-bottom.ol-right{top:auto;bottom:.5em;-webkit-transform:none;transform:none}.ol-control.ol-bar.ol-group{margin:1px 1px 1px 0}.ol-control.ol-bar.ol-right .ol-group,.ol-control.ol-bar.ol-left .ol-group{margin:1px 1px 0}.ol-control.ol-bar.ol-group button{border-radius:0;margin:0 0 0 1px}.ol-control.ol-bar.ol-right.ol-group button,.ol-control.ol-bar.ol-left.ol-group button,.ol-control.ol-bar.ol-right .ol-group button,.ol-control.ol-bar.ol-left .ol-group button{margin:0 0 1px}.ol-control.ol-bar.ol-group .ol-control:first-child>button{border-radius:5px 0 0 5px}.ol-control.ol-bar.ol-group .ol-control:last-child>button{border-radius:0 5px 5px 0}.ol-control.ol-bar.ol-left.ol-group .ol-control:first-child>button,.ol-control.ol-bar.ol-right.ol-group .ol-control:first-child>button,.ol-control.ol-bar.ol-left .ol-group .ol-control:first-child>button,.ol-control.ol-bar.ol-right .ol-group .ol-control:first-child>button{border-radius:5px 5px 0 0}.ol-control.ol-bar.ol-left.ol-group .ol-control:last-child>button,.ol-control.ol-bar.ol-right.ol-group .ol-control:last-child>button,.ol-control.ol-bar.ol-left .ol-group .ol-control:last-child>button,.ol-control.ol-bar.ol-right .ol-group .ol-control:last-child>button{border-radius:0 0 5px 5px}.ol-control.ol-bar .ol-rotate{opacity:1;visibility:visible}.ol-control.ol-bar .ol-rotate button{display:block}.ol-control.ol-bar .ol-toggle.ol-active>button{background-color:#3c8800b3}.ol-control.ol-bar .ol-toggle.ol-active button:hover{background-color:#3c8800b3}.ol-control.ol-toggle button:disabled{background-color:#003c884d}.ol-control.ol-bar .ol-control.ol-option-bar{display:none;position:absolute;top:100%;left:0;margin:5px 0;border-radius:0;background-color:#fffc;-webkit-box-shadow:0 0 0 1px rgba(0,60,136,.5),1px 1px 2px rgba(0,0,0,.5);box-shadow:0 0 0 1px #003c8880,1px 1px 2px #00000080}.ol-control.ol-bar .ol-option-bar:before{content:"";border:.5em solid transparent;border-color:transparent transparent rgba(0,60,136,.5);position:absolute;bottom:100%;left:.3em}.ol-control.ol-bar .ol-option-bar .ol-control{display:table-cell}.ol-control.ol-bar .ol-control .ol-bar{display:none}.ol-control.ol-bar .ol-control.ol-active>.ol-option-bar{display:block}.ol-control.ol-bar .ol-control.ol-collapsed ul{display:none}.ol-control.ol-bar .ol-control.ol-text-button>div:hover,.ol-control.ol-bar .ol-control.ol-text-button>div{background-color:transparent;color:#003c8880;width:auto;min-width:1.375em;margin:0}.ol-control.ol-bar .ol-control.ol-text-button{font-size:.9em;border-left:1px solid rgba(0,60,136,.8);border-radius:0}.ol-control.ol-bar .ol-control.ol-text-button:first-child{border-left:0}.ol-control.ol-bar .ol-control.ol-text-button>div{padding:.11em .3em;font-weight:400;font-size:1.14em;font-family:Arial,Helvetica,sans-serif}.ol-control.ol-bar .ol-control.ol-text-button div:hover{color:#003c88}.ol-control.ol-bar.ol-bottom .ol-option-bar{top:auto;bottom:100%}.ol-control.ol-bar.ol-bottom .ol-option-bar:before{border-color:rgba(0,60,136,.5) transparent transparent;bottom:auto;top:100%}.ol-control.ol-bar.ol-left .ol-option-bar{left:100%;top:0;bottom:auto;margin:0 5px}.ol-control.ol-bar.ol-left .ol-option-bar:before{border-color:transparent rgba(0,60,136,.5) transparent transparent;bottom:auto;right:100%;left:auto;top:.3em}.ol-control.ol-bar.ol-right .ol-option-bar{right:100%;left:auto;top:0;bottom:auto;margin:0 5px}.ol-control.ol-bar.ol-right .ol-option-bar:before{border-color:transparent transparent transparent rgba(0,60,136,.5);bottom:auto;left:100%;top:.3em}.ol-control.ol-bar.ol-left .ol-option-bar .ol-option-bar,.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar{top:100%;bottom:auto;left:.3em;right:auto;margin:5px 0}.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar{right:.3em;left:auto}.ol-control.ol-bar.ol-left .ol-option-bar .ol-option-bar:before,.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar:before{border-color:transparent transparent rgba(0,60,136,.5);bottom:100%;top:auto;left:.3em;right:auto}.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar:before{right:.3em;left:auto}.ol-control-title{position:absolute;top:0;left:0;right:0}.ol-center-position{position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);background-color:#fffc;padding:.1em 1em}.ol-compassctrl{display:none;top:1em;left:auto;right:1em}.ol-compassctrl.ol-visible{display:block!important}.ol-ext-dialog{position:fixed;top:-100%;left:0;width:150%;height:100%;opacity:0;background-color:#00000080;z-index:1000;pointer-events:none!important;-webkit-transition:opacity .2s,top 0s .2s;transition:opacity .2s,top 0s .2s}.ol-ext-dialog.ol-visible{opacity:1;top:0;pointer-events:all!important;-webkit-transition:opacity .2s,top 0s;transition:opacity .2s,top 0s}.ol-viewport .ol-ext-dialog{position:absolute}.ol-ext-dialog>form>h2{margin:0 .5em .5em 0;display:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ol-ext-dialog>form.ol-title>h2{display:block}.ol-ext-dialog>form{position:absolute;top:0;left:33.33%;min-width:5em;max-width:60%;min-height:3em;max-height:100%;background-color:#fff;border:1px solid #333;-webkit-box-shadow:3px 3px 4px rgba(0,0,0,.5);box-shadow:3px 3px 4px #00000080;-webkit-transform:translate(-50%,-30%);transform:translate(-50%,-30%);-webkit-transition:top .2s,-webkit-transform .2s;transition:top .2s,-webkit-transform .2s;transition:top .2s,transform .2s;transition:top .2s,transform .2s,-webkit-transform .2s;padding:1em;-webkit-box-sizing:border-box;box-sizing:border-box;overflow-x:hidden;overflow-y:auto}.ol-ext-dialog>form.ol-closebox{padding-top:1.5em}.ol-ext-dialog>form.ol-title{padding-top:1em}.ol-ext-dialog>form.ol-button{padding-bottom:.5em}.ol-ext-dialog.ol-zoom>form{top:30%;-webkit-transform:translate(-50%,-30%) scale(0);transform:translate(-50%,-30%) scale(0)}.ol-ext-dialog.ol-visible>form{top:30%}.ol-ext-dialog.ol-zoom.ol-visible>form{-webkit-transform:translate(-50%,-30%) scale(1);transform:translate(-50%,-30%) scale(1)}.ol-ext-dialog>form .ol-content{overflow-x:hidden;overflow-y:auto}.ol-ext-dialog>form .ol-closebox{position:absolute;top:.5em;right:.5em;width:1em;height:1em;cursor:pointer;display:none}.ol-ext-dialog>form.ol-closebox .ol-closebox{display:block}.ol-ext-dialog>form .ol-closebox:before,.ol-ext-dialog>form .ol-closebox:after{content:"";position:absolute;background-color:currentColor;top:50%;left:50%;width:1em;height:.1em;border-radius:.1em;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.ol-ext-dialog>form .ol-closebox:before{-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-ext-dialog>form .ol-buttons{text-align:right;overflow-x:hidden}.ol-ext-dialog>form .ol-buttons input{margin-top:.5em;padding:.5em;background:none;border:0;font-size:1em;color:#003c88;cursor:pointer;border-radius:.25em;outline-width:0}.ol-ext-dialog>form .ol-buttons input:hover{background-color:#003c881a}.ol-ext-dialog>form .ol-buttons input[type=submit]{font-weight:700}.ol-ext-dialog .ol-progress-message{font-size:.9em;text-align:center;padding-bottom:.5em}.ol-ext-dialog .ol-progress-bar{border:1px solid #369;width:20em;height:1em;max-width:100%;padding:2px;margin:.5em auto 0;overflow:hidden}.ol-ext-dialog .ol-progress-bar>div{background:#369;height:100%;width:50%;-webkit-transition:width .3s;transition:width .3s}.ol-ext-dialog .ol-progress-bar>div.notransition{-webkit-transition:unset;transition:unset}.ol-ext-dialog.ol-fullscreen-dialog form{top:1em;-webkit-transform:none;transform:none;left:1em;bottom:1em;right:1em;max-width:calc(66.6% - 2em);text-align:center;background:transparent;-webkit-box-shadow:none;box-shadow:none;border:none;color:#fff}.ol-ext-dialog.ol-fullscreen-dialog form .ol-closebox{top:0;right:0;font-size:2em}.ol-ext-dialog.ol-fullscreen-dialog .ol-closebox:before,.ol-ext-dialog.ol-fullscreen-dialog .ol-closebox:after{border:.1em solid currentColor}.ol-ext-dialog.ol-fullscreen-dialog img,.ol-ext-dialog.ol-fullscreen-dialog video{max-width:100%}body>.ol-ext-dialog .ol-content{max-height:calc(100vh - 10em)}body>.ol-ext-dialog>form{overflow:visible}.ol-editbar .ol-button button{position:relative;display:inline-block;font-style:normal;-webkit-box-sizing:border-box;box-sizing:border-box;vertical-align:middle}.ol-editbar .ol-button button:before,.ol-editbar .ol-button button:after{content:"";border-width:0;position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:currentColor}.ol-editbar .ol-button button:focus{outline:none}.ol-editbar .ol-selection>button:before{width:.6em;height:1em;background-color:transparent;border:.5em solid currentColor;border-width:0 .25em .65em;border-color:currentColor transparent;-webkit-box-shadow:0 .6em 0 -.23em;box-shadow:0 .6em 0 -.23em;top:.35em;left:.5em;-webkit-transform:translate(-50%,-50%) rotate(-30deg);transform:translate(-50%,-50%) rotate(-30deg)}.ol-editbar .ol-selection0>button:after{width:.28em;height:.6em;background-color:transparent;border:.5em solid currentColor;border-width:0 .05em .7em;border-color:currentColor transparent;top:.5em;left:.7em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.ol-editbar .ol-delete button:after,.ol-editbar .ol-delete button:before{width:1em;height:.2em;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.ol-editbar .ol-delete button:after{-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-editbar .ol-info button:before{width:.25em;height:.6em;border-radius:.03em;top:.47em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-info button:after{width:.25em;height:.2em;border-radius:.03em;-webkit-box-shadow:-.1em .35em,-.1em .82em,.1em .82em;box-shadow:-.1em .35em,-.1em .82em,.1em .82em;top:.12em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-drawpoint button:before{width:.7em;height:.7em;border-radius:50%;border:.15em solid currentColor;background-color:transparent;top:.2em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-drawpoint button:after{width:.4em;height:.4em;border:.15em solid currentColor;border-color:currentColor transparent;border-width:.4em .2em 0;background-color:transparent;top:.8em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-drawline>button:before,.ol-editbar .ol-drawpolygon>button:before,.ol-editbar .ol-drawhole>button:before{width:.8em;height:.8em;border:.13em solid currentColor;background-color:transparent;border-width:.2em .13em .09em;top:.2em;left:.25em;-webkit-transform:rotate(10deg) perspective(1em) rotateX(40deg);transform:rotate(10deg) perspective(1em) rotateX(40deg)}.ol-editbar .ol-drawline>button:before{border-bottom:0}.ol-editbar .ol-drawline>button:after,.ol-editbar .ol-drawhole>button:after,.ol-editbar .ol-drawpolygon>button:after{width:.3em;height:.3em;top:.2em;left:.25em;-webkit-box-shadow:-.2em .55em,.6em .1em,.65em .7em;box-shadow:-.2em .55em,.6em .1em,.65em .7em}.ol-editbar .ol-drawhole>button:after{-webkit-box-shadow:-.2em .55em,.6em .1em,.65em .7em,.25em .35em;box-shadow:-.2em .55em,.6em .1em,.65em .7em,.25em .35em}.ol-editbar .ol-offset>button i,.ol-editbar .ol-transform>button i{position:absolute;width:.9em;height:.9em;overflow:hidden;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-editbar .ol-offset>button i{width:.8em;height:.8em}.ol-editbar .ol-offset>button i:before,.ol-editbar .ol-transform>button i:before,.ol-editbar .ol-transform>button i:after{content:"";height:1em;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg);-webkit-box-shadow:.5em 0 0 .1em,-.5em 0 0 .1em;box-shadow:.5em 0 0 .1em,-.5em 0 0 .1em;width:.1em;position:absolute;background-color:currentColor}.ol-editbar .ol-offset>button i:before{-webkit-box-shadow:.45em 0 0 .1em,-.45em 0 0 .1em;box-shadow:.45em 0 0 .1em,-.45em 0 0 .1em}.ol-editbar .ol-transform>button i:after{-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-editbar .ol-split>button:before{width:.3em;height:.3em;top:.81em;left:.75em;border-radius:50%;-webkit-box-shadow:.1em -.4em,-.15em -.25em;box-shadow:.1em -.4em,-.15em -.25em}.ol-editbar .ol-split>button:after{width:.8em;height:.8em;top:.15em;left:-.1em;border:.1em solid currentColor;border-width:0 .2em .2em 0;background-color:transparent;border-radius:.1em;-webkit-transform:rotate(20deg) scaleY(.6) rotate(-45deg);transform:rotate(20deg) scaleY(.6) rotate(-45deg)}.ol-editbar .ol-drawregular>button:before{width:.9em;height:.9em;top:50%;left:50%;border:.1em solid currentColor;background-color:transparent;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-editbar .ol-drawregular .ol-bar .ol-text-button>div>div>div{border:.5em solid currentColor;border-color:transparent currentColor;display:inline-block;cursor:pointer;vertical-align:text-bottom}.ol-editbar .ol-drawregular .ol-bar:before,.ol-control.ol-bar.ol-editbar .ol-drawregular .ol-bar{left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-drawregular .ol-bar .ol-text-button{min-width:6em;text-align:center}.ol-editbar .ol-drawregular .ol-bar .ol-text-button>div>div>div:first-child{border-width:.5em .5em .5em 0;margin:0 .5em 0 0}.ol-editbar .ol-drawregular .ol-bar .ol-text-button>div>div>div:last-child{border-width:.5em 0 .5em .5em;margin:0 0 0 .5em}.ol-gauge{top:.5em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-gauge>*{display:inline-block;vertical-align:middle}.ol-gauge>span{margin:0 .5em}.ol-gauge>div{display:inline-block;width:200px;border:1px solid rgba(0,60,136,.5);border-radius:3px;padding:1px}.ol-gauge button{height:.8em;margin:0;max-width:100%}.ol-control.ol-bookmark{top:.5em;left:3em}.ol-control.ol-bookmark button{position:relative}.ol-control.ol-bookmark>button:before{content:"";position:absolute;border-width:10px 5px 4px;border-style:solid;border-color:#fff;border-bottom-color:transparent;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);height:0}.ol-control.ol-bookmark>div{display:none;min-width:5em}.ol-control.ol-bookmark input{font-size:.9em;margin:.1em 0;padding:0 .5em}.ol-control.ol-bookmark ul{margin:0;padding:0;list-style:none;min-width:10em}.ol-control.ol-bookmark li{color:#003c88cc;font-size:.9em;padding:0 .2em 0 .5em;cursor:default;clear:both}.ol-control.ol-bookmark li:hover{background-color:#003c8880;color:#fff}.ol-control.ol-bookmark>div button{width:1em;height:.8em;float:right;background-color:transparent;cursor:pointer;border-radius:0}.ol-control.ol-bookmark>div button:before{content:"\2a2f";color:#936;font-size:1.2em;line-height:1em;border-radius:0;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-bookmark ul li button,.ol-bookmark input{display:none}.ol-bookmark.ol-editable ul li button,.ol-bookmark.ol-editable input{display:block}.ol-control.ol-geobt{top:auto;left:auto;right:.5em;bottom:3em}.ol-touch .ol-control.ol-geobt{bottom:3.5em}.ol-control.ol-geobt button:before{content:"";position:absolute;background:transparent;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border:.16em solid currentColor;width:.4em;height:.4em;border-radius:50%}.ol-control.ol-geobt button:after{content:"";position:absolute;width:.2em;height:.2em;background:transparent;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-box-shadow:.42em 0,-.42em 0,0 .42em,0 -.42em;box-shadow:.42em 0,-.42em 0,0 .42em,0 -.42em}.ol-control.ol-bar.ol-geobar .ol-control{display:inline-block;vertical-align:middle}.ol-control.ol-bar.ol-geobar .ol-bar{display:none}.ol-bar.ol-geobar.ol-active .ol-bar{display:inline-block}.ol-bar.ol-geobar .geolocBt button:before,.ol-bar.ol-geobar .geolocBt button:after{content:"";display:block;position:absolute;border:1px solid transparent;border-width:.3em .8em 0 .2em;border-color:#fff transparent transparent;-webkit-transform:rotate(-30deg);transform:rotate(-30deg);top:.45em;left:.15em;font-size:1.2em}.ol-bar.ol-geobar .geolocBt button:after{border-width:0 .8em .3em .2em;border-color:transparent transparent #fff;-webkit-transform:rotate(-61deg);transform:rotate(-61deg)}.ol-bar.ol-geobar .startBt button:before{content:"";display:block;position:absolute;width:1em;height:1em;background-color:#800;border-radius:50%;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-bar.ol-geobar .pauseBt button:before,.ol-bar.ol-geobar .pauseBt button:after{content:"";display:block;position:absolute;width:.25em;height:1em;background-color:#fff;top:50%;left:35%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-bar.ol-geobar .pauseBt button:after{left:65%}.ol-control.ol-bar.ol-geobar .centerBt,.ol-control.ol-bar.ol-geobar .pauseBt,.ol-bar.ol-geobar.pauseTrack .startBt,.ol-bar.ol-geobar.centerTrack .startBt,.ol-bar.ol-geobar.centerTrack.pauseTrack .pauseBt,.ol-bar.ol-geobar.centerTrack .pauseBt{display:none}.ol-bar.ol-geobar.pauseTrack .pauseBt,.ol-bar.ol-geobar.centerTrack .centerBt{display:inline-block}.ol-control.ol-globe{position:absolute;left:.5em;bottom:.5em;border-radius:50%;opacity:.7;transform:scale(.5);transform-origin:0 100%;-webkit-transform:scale(.5);-webkit-transform-origin:0 100%}.ol-control.ol-globe:hover{opacity:.9}.ol-control.ol-globe .panel{display:block;width:170px;height:170px;background-color:#fff;cursor:pointer;border-radius:50%;overflow:hidden;-webkit-box-shadow:0 0 10px 5px rgba(255,255,255,.5);box-shadow:0 0 10px 5px #ffffff80}.ol-control.ol-globe .panel .ol-viewport{border-radius:50%}.ol-control.ol-globe .ol-pointer{display:block;background-color:#fff;width:10px;height:10px;border:10px solid red;position:absolute;top:50%;left:50%;transform:translate(-15px,-40px);-webkit-transform:translate(-15px,-40px);border-radius:50%;z-index:1;transition:opacity .15s,top 0s,left 0s;-webkit-transition:opacity .15s,top 0s,left 0s}.ol-control.ol-globe .ol-pointer.hidden{opacity:0;transition:opacity .15s,top 3s,left 5s;-webkit-transition:opacity .15s,top 3s,left 5s}.ol-control.ol-globe .ol-pointer:before{border-radius:50%;-webkit-box-shadow:6px 6px 10px 5px #000;box-shadow:6px 6px 10px 5px #000;content:"";display:block;height:0;left:0;position:absolute;top:23px;width:0}.ol-control.ol-globe .ol-pointer:after{content:"";width:0;height:0;display:block;position:absolute;border-width:20px 10px 0;border-color:red transparent;border-style:solid;left:-50%;top:100%}.ol-control.ol-globe .panel:before{border-radius:50%;-webkit-box-shadow:-20px -20px 80px 2px rgba(0,0,0,.7) inset;box-shadow:-20px -20px 80px 2px #000000b3 inset;content:"";display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:1}.ol-control.ol-globe .panel:after{border-radius:50%;-webkit-box-shadow:0 0 20px 7px rgba(255,255,255,1);box-shadow:0 0 20px 7px #fff;content:"";display:block;height:0;left:23%;position:absolute;top:20%;-webkit-transform:rotate(-40deg);transform:rotate(-40deg);width:20%;z-index:1}.ol-control.ol-globe.ol-collapsed .panel{display:none}.ol-control-top.ol-globe{bottom:auto;top:5em;transform-origin:0 0;-webkit-transform-origin:0 0}.ol-control-right.ol-globe{left:auto;right:.5em;transform-origin:100% 100%;-webkit-transform-origin:100% 100%}.ol-control-right.ol-control-top.ol-globe{left:auto;right:.5em;transform-origin:100% 0;-webkit-transform-origin:100% 0}.ol-gridreference{background:#fff;border:1px solid #000;overflow:auto;max-height:100%;top:0;right:0}.ol-gridreference input{width:100%}.ol-gridreference ul{margin:0;padding:0;list-style:none}.ol-gridreference li{padding:0 .5em;cursor:pointer}.ol-gridreference ul li:hover{background-color:#ccc}.ol-gridreference li.ol-title,.ol-gridreference li.ol-title:hover{background:rgba(0,60,136,.5);color:#fff;cursor:default}.ol-gridreference ul li .ol-ref{margin-left:.5em}.ol-gridreference ul li .ol-ref:before{content:"("}.ol-gridreference ul li .ol-ref:after{content:")"}.ol-control.ol-imageline{bottom:0;left:0;right:0;padding:0;overflow:visible;-webkit-transition:.3s;transition:.3s;border-radius:0}.ol-control.ol-imageline.ol-collapsed{-webkit-transform:translateY(100%);transform:translateY(100%)}.ol-imageline>div{height:4em;position:relative;white-space:nowrap;scroll-behavior:smooth;overflow:hidden;width:100%}.ol-imageline>div.ol-move{scroll-behavior:unset}.ol-control.ol-imageline button{position:absolute;top:-1em;-webkit-transform:translateY(-100%);transform:translateY(-100%);margin:.65em;-webkit-box-shadow:0 0 0 .15em rgba(255,255,255,.4);box-shadow:0 0 0 .15em #fff6}.ol-control.ol-imageline button:before{content:"";position:absolute;-webkit-transform:translate(-50%,-50%) rotate(135deg);transform:translate(-50%,-50%) rotate(135deg);top:40%;left:50%;width:.4em;height:.4em;border:.1em solid currentColor;border-width:.15em .15em 0 0}.ol-control.ol-imageline.ol-collapsed button:before{top:60%;-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-imageline,.ol-imageline:hover{background-color:#000000bf}.ol-imageline.ol-arrow:after,.ol-imageline.ol-arrow:before{content:"";position:absolute;top:50%;left:.2em;border-color:#fff #000;border-width:1em .6em 1em 0;border-style:solid;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:1;opacity:.8;pointer-events:none;-webkit-box-shadow:-.6em 0 0 1em #fff;box-shadow:-.6em 0 0 1em #fff}.ol-imageline.ol-arrow:after{border-width:1em 0 1em .6em;left:auto;right:.2em;-webkit-box-shadow:.6em 0 0 1em #fff;box-shadow:.6em 0 0 1em #fff}.ol-imageline.ol-scroll0.ol-arrow:before{display:none}.ol-imageline.ol-scroll1.ol-arrow:after{display:none}.ol-imageline .ol-image{position:relative;height:100%;display:inline-block;cursor:pointer}.ol-imageline img{max-height:100%;border:.25em solid transparent;-webkit-box-sizing:border-box;box-sizing:border-box;opacity:0;-webkit-transition:1s;transition:1s}.ol-imageline img.ol-loaded{opacity:1}.ol-imageline .ol-image.select{background-color:#fff}.ol-imageline .ol-image span{position:absolute;width:125%;max-height:2.4em;left:50%;bottom:0;display:none;color:#fff;background-color:#00000080;font-size:.8em;overflow:hidden;white-space:normal;text-align:center;line-height:1.2em;-webkit-transform:translateX(-50%) scaleX(.8);transform:translate(-50%) scaleX(.8)}.ol-imageline .ol-image:hover span{display:block}.ol-control.ol-routing.ol-isochrone .ol-method-time,.ol-control.ol-routing.ol-isochrone .ol-method-distance,.ol-control.ol-routing.ol-isochrone>button{position:relative}.ol-control.ol-routing.ol-isochrone .ol-method-time:before,.ol-control.ol-routing.ol-isochrone>button:before{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border:.1em solid currentColor;width:.8em;height:.8em;border-radius:50%;-webkit-box-shadow:0 -.5em 0 -.35em,.4em -.35em 0 -.35em;box-shadow:0 -.5em 0 -.35em,.4em -.35em 0 -.35em;clip:unset}.ol-control.ol-routing.ol-isochrone .ol-method-time:after,.ol-control.ol-routing.ol-isochrone>button:after{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(-60deg);transform:translate(-50%,-50%) rotate(-60deg);border-radius:50%;border:.3em solid transparent;border-right-color:currentColor;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;clip:unset}.ol-control.ol-routing.ol-isochrone .ol-method-distance:before{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(-30deg);transform:translate(-50%,-50%) rotate(-30deg);width:1em;height:.5em;border:.1em solid currentColor;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-control.ol-routing.ol-isochrone .ol-method-distance:after{content:"";position:absolute;width:.1em;height:.15em;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(-30deg);transform:translate(-50%,-50%) rotate(-30deg);-webkit-box-shadow:inset 0 -.15em,0 .1em,.25em .1em,-.25em .1em;box-shadow:inset 0 -.15em,0 .1em,.25em .1em,-.25em .1em}.ol-control.ol-routing.ol-isochrone .ol-direction-direct:before,.ol-control.ol-routing.ol-isochrone .ol-direction-reverse:before{content:"";position:absolute;top:50%;left:30%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:.3em;height:.3em;border-radius:50%;border:.1em solid currentColor;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:.25em 0 0 -.05em;box-shadow:.25em 0 0 -.05em}.ol-control.ol-routing.ol-isochrone .ol-direction-direct:after,.ol-control.ol-routing.ol-isochrone .ol-direction-reverse:after{content:"";position:absolute;top:50%;left:70%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border:.4em solid transparent;border-width:.4em 0 .4em .4em;border-color:transparent currentColor}.ol-control.ol-routing.ol-isochrone .ol-direction-reverse:after{border-width:.4em .4em .4em 0}.ol-control.ol-isochrone.ol-collapsed .content{display:none}.ol-control.ol-isochrone input[type=number]{width:3em;text-align:right;margin:0 .1em}.ol-control.ol-isochrone .ol-distance input[type=number]{width:5em}.ol-isochrone .ol-time,.ol-isochrone .ol-distance{display:none}.ol-isochrone .ol-time.selected,.ol-isochrone .ol-distance.selected{display:block}.ol-control.ol-layerswitcher-popup{position:absolute;right:.5em;text-align:left;top:3em}.ol-control.ol-layerswitcher-popup .panel{clear:both;background:#fff}.ol-layerswitcher-popup .panel{list-style:none;padding:.25em;margin:0;overflow:hidden}.ol-layerswitcher-popup .panel ul{list-style:none;padding:0 0 0 20px;overflow:hidden}.ol-layerswitcher-popup.ol-collapsed .panel{display:none}.ol-layerswitcher-popup.ol-forceopen .panel{display:block}.ol-layerswitcher-popup button{background-color:#fff;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAACE1BMVEX///8A//8AgICA//8AVVVAQID///8rVVVJtttgv98nTmJ2xNgkW1ttyNsmWWZmzNZYxM4gWGgeU2JmzNNr0N1Rwc0eU2VXxdEhV2JqytQeVmMhVmNoydUfVGUgVGQfVGQfVmVqy9hqy9dWw9AfVWRpydVry9YhVmMgVGNUw9BrytchVWRexdGw294gVWQgVmUhVWPd4N6HoaZsy9cfVmQgVGRrytZsy9cgVWQgVWMgVWRsy9YfVWNsy9YgVWVty9YgVWVry9UgVWRsy9Zsy9UfVWRsy9YgVWVty9YgVWRty9Vsy9aM09sgVWRTws/AzM0gVWRtzNYgVWRuy9Zsy9cgVWRGcHxty9bb5ORbxdEgVWRty9bn6OZTws9mydRfxtLX3Nva5eRix9NFcXxOd4JPeINQeIMiVmVUws9Vws9Vw9BXw9BYxNBaxNBbxNBcxdJexdElWWgmWmhjyNRlx9IqXGtoipNpytVqytVryNNrytZsjZUuX210k5t1y9R2zNR3y9V4lp57zth9zdaAnKOGoaeK0NiNpquV09mesrag1tuitbmj1tuj19uktrqr2d2svcCu2d2xwMO63N+7x8nA3uDC3uDFz9DK4eHL4eLN4eIyYnDX5OM5Z3Tb397e4uDf4uHf5uXi5ePi5+Xj5+Xk5+Xm5+Xm6OY6aHXQ19fT4+NfhI1Ww89gx9Nhx9Nsy9ZWw9Dpj2abAAAAWnRSTlMAAQICAwQEBgcIDQ0ODhQZGiAiIyYpKywvNTs+QklPUlNUWWJjaGt0dnd+hIWFh4mNjZCSm6CpsbW2t7nDzNDT1dje5efr7PHy9PT29/j4+Pn5+vr8/f39/f6DPtKwAAABTklEQVR4Xr3QVWPbMBSAUTVFZmZmhhSXMjNvkhwqMzMzMzPDeD+xASvObKePPa+ffHVl8PlsnE0+qPpBuQjVJjno6pZpSKXYl7/bZyFaQxhf98hHDKEppwdWIW1frFnrxSOWHFfWesSEWC6R/P4zOFrix3TzDFLlXRTR8c0fEEJ1/itpo7SVO9Jdr1DVxZ0USyjZsEY5vZfiiAC0UoTGOrm9PZLuRl8X+Dq1HQtoFbJZbv61i+Poblh/97TC7n0neCcK0ETNUrz1/xPHf+DNAW9Ac6t8O8WH3Vp98f5lCaYKAOFZMLyHL4Y0fe319idMNgMMp+zWVSybUed/+/h7I4wRAG1W6XDy4XmjR9HnzvDRZXUAYDFOhC1S/Hh+fIXxen+eO+AKqbs+wAo30zDTDvDxKoJN88sjUzDFAvBzEUGFsnADoIvAJzoh2BZ8sner+Ke/vwECuQAAAABJRU5ErkJggg==);background-position:center;background-repeat:no-repeat;float:right;height:38px;width:38px}.ol-layerswitcher-popup li{color:#369;padding:.25em 1em;font-family:Trebuchet MS,Helvetica,sans-serif;cursor:pointer}.ol-layerswitcher-popup li.ol-header{display:none}.ol-layerswitcher-popup li.select,.ol-layerswitcher-popup li.ol-visible{background:rgba(0,60,136,.7);color:#fff}.ol-layerswitcher-popup li:hover{background:rgba(0,60,136,.9);color:#fff}.ol-control.ol-layerswitcher.ol-layer-shop{height:calc(100% - 4em);max-height:unset;max-width:16em;background-color:transparent;pointer-events:none!important;overflow:visible}.ol-control.ol-layerswitcher>*{pointer-events:auto}.ol-control.ol-layer-shop>button,.ol-control.ol-layer-shop .panel-container{-webkit-box-shadow:0 0 0 3px rgba(255,255,255,.5);box-shadow:0 0 0 3px #ffffff80}.ol-control.ol-layerswitcher.ol-layer-shop .panel-container{overflow-y:scroll;max-height:calc(100% - 6.5em);border:2px solid #369;border-width:2px 0;padding:0}.ol-control.ol-layer-shop .panel{padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;margin:.25em .5em}.ol-control.ol-layerswitcher.ol-layer-shop .panel-container.ol-scrolldiv{overflow:hidden}.ol-control.ol-layer-shop .ol-scroll{background-color:#0000004d;opacity:.5}.ol-layerswitcher.ol-layer-shop ul.panel li.ol-header{display:none}.ol-layerswitcher.ol-layer-shop ul.panel li{margin-right:0;padding-right:0}.ol-layerswitcher.ol-layer-shop .layerup{height:1.5em;width:1.4em;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:3px;background-color:transparent;color:#003c88}.ol-layerswitcher.ol-layer-shop .layerup:hover{background-color:#003c884d}.ol-layerswitcher.ol-layer-shop .layerup:before{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border:0;background-color:currentColor;width:1em;height:2px;-webkit-box-shadow:0 -4px,0 4px;box-shadow:0 -4px,0 4px}.ol-layerswitcher.ol-layer-shop .layerup:after{content:unset}.ol-control.ol-layer-shop .ol-title-bar{background-color:#ffffff80;font-size:.9em;height:calc(2.8em - 4px);max-width:14.6em;padding:.7em .5em;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;-webkit-transform:scaleY(1.1);transform:scaleY(1.1);-webkit-transition:width 0s,-webkit-transform .1s;transition:width 0s,-webkit-transform .1s;transition:transform .1s,width 0s;transition:transform .1s,width 0s,-webkit-transform .1s;-webkit-transform-origin:100% 0;transform-origin:100% 0}.ol-control.ol-layer-shop:hover .ol-title-bar{background-color:#ffffffb3}.ol-control.ol-layer-shop.ol-collapsed .ol-title-bar{max-width:10em;-webkit-transform:scale(.9,1.1);transform:scale(.9,1.1)}.ol-control.ol-layer-shop.ol-forceopen .ol-title-bar{max-width:14.6em;-webkit-transform:scaleY(1.1);transform:scaleY(1.1)}.ol-control.ol-layer-shop .ol-bar{position:relative;height:1.75em;clear:both;-webkit-box-shadow:0 0 0 3px rgba(255,255,255,.5);box-shadow:0 0 0 3px #ffffff80;background-color:#fff;text-align:right;z-index:10}.ol-control.ol-layer-shop.ol-collapsed .ol-scroll,.ol-control.ol-layer-shop.ol-collapsed .ol-bar{border-width:2px 0 0;display:none}.ol-control.ol-layer-shop.ol-forceopen .ol-scroll,.ol-control.ol-layer-shop.ol-forceopen .ol-bar{display:block}.ol-control.ol-layer-shop .ol-bar>*{font-size:.9em;display:inline-block;vertical-align:middle;margin-top:.25em;background-color:transparent}.ol-layer-shop .ol-bar .ol-button,.ol-touch .ol-layer-shop .ol-bar .ol-button{position:relative;top:unset;left:unset;bottom:unset;right:unset;margin:0}.ol-layer-shop .ol-bar button{background-color:#fff;color:#003c88}.ol-layer-shop .ol-bar button:hover{background-color:#003c8833}.ol-touch .ol-layerswitcher.ol-layer-shop>button{font-size:1.7em}.ol-touch .ol-layer-shop .ol-bar{height:2em}.ol-touch .ol-layer-shop .ol-control button{font-size:1.4em}.ol-touch .ol-control.ol-layer-shop .panel{max-height:calc(100% - 7em)}.ol-touch .ol-control.ol-layer-shop .panel label{height:1.8em}.ol-touch .ol-control.ol-layer-shop .panel label span{margin-left:.5em;padding-top:.25em}.ol-touch .ol-control.ol-layer-shop .panel label:before,.ol-touch .ol-control.ol-layer-shop .panel label:after{font-size:1.3em;z-index:1}.ol-control.ol-layerswitcher{position:absolute;right:.5em;text-align:left;top:3em;max-height:calc(100% - 6em);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.ol-control.ol-layerswitcher .ol-switchertopdiv,.ol-control.ol-layerswitcher .ol-switcherbottomdiv{display:block}.ol-control.ol-layerswitcher.ol-collapsed .ol-switchertopdiv,.ol-control.ol-layerswitcher.ol-collapsed .ol-switcherbottomdiv{display:none}.ol-layerswitcher.ol-forceopen.ol-collapsed .ol-switchertopdiv,.ol-layerswitcher.ol-forceopen.ol-collapsed .ol-switcherbottomdiv{display:block}.ol-control.ol-layerswitcher .ol-switchertopdiv,.ol-control.ol-layerswitcher .ol-switcherbottomdiv{position:absolute;top:0;left:0;right:0;height:45px;background:#fff;z-index:2;opacity:1;cursor:pointer;border-top:2px solid transparent;border-bottom:2px solid #369;margin:0 2px;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-control.ol-layerswitcher .ol-switcherbottomdiv{top:auto;bottom:0;height:2em;border-top:2px solid #369;border-bottom:2px solid transparent}.ol-control.ol-layerswitcher .ol-switchertopdiv:before,.ol-control.ol-layerswitcher .ol-switcherbottomdiv:before{content:"";position:absolute;left:50%;top:50%;border:10px solid transparent;width:0;height:0;transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);opacity:.8}.ol-control.ol-layerswitcher .ol-switchertopdiv:hover:before,.ol-control.ol-layerswitcher .ol-switcherbottomdiv:hover:before{opacity:1}.ol-control.ol-layerswitcher .ol-switchertopdiv:before{border-bottom-color:#369;border-top:0}.ol-control.ol-layerswitcher .ol-switcherbottomdiv:before{border-top-color:#369;border-bottom:0}.ol-control.ol-layerswitcher .panel-container{background-color:#fff;border-radius:0 0 2px 2px;clear:both;display:block;padding:.5em .5em 0}.ol-layerswitcher .panel{list-style:none;padding:0;margin:0;overflow:hidden;font-family:Tahoma,Geneva,sans-serif;font-size:.9em;-webkit-transition:top .3s;transition:top .3s;position:relative;top:0}.ol-layerswitcher .panel ul{list-style:none;padding:0 0 0 20px;overflow:hidden;clear:both}.ol-layerswitcher input[type=radio],.ol-layerswitcher input[type=checkbox]{display:none}.ol-layerswitcher .panel li{-weblit-transition:-webkit-transform .2s linear;-webkit-transition:-webkit-transform .2s linear;transition:-webkit-transform .2s linear;transition:transform .2s linear;transition:transform .2s linear,-webkit-transform .2s linear;clear:both;display:block;border:1px solid transparent;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-layerswitcher .panel li.ol-layer-select{background-color:#003c8833;margin:0 -.5em;padding:0 .5em}.ol-layerswitcher .panel li.drag{opacity:.5;transform:scale(.8);-webkit-transform:scale(.8)}.ol-dragover{background:rgba(51,102,153,.5);opacity:.8}.ol-layerswitcher .panel li.forbidden,.forbidden .ol-layerswitcher-buttons div,.forbidden .layerswitcher-opacity div{background:rgba(255,0,0,.5);color:red!important}.ol-layerswitcher.drag,.ol-layerswitcher.drag *{cursor:not-allowed!important;cursor:no-drop!important}.ol-layerswitcher.drag .panel li.dropover,.ol-layerswitcher.drag .panel li.dropover *{cursor:pointer!important;cursor:n-resize!important;cursor:ns-resize!important;cursor:-webkit-grab!important;cursor:grab!important;cursor:-webkit-grabbing!important;cursor:grabbing!important}.ol-layerswitcher .panel li.dropover{background:rgba(51,102,153,.5)}.ol-layerswitcher .panel li label{display:inline-block;height:1.4em;max-width:12em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 0 0 1.7em;position:relative}.ol-layerswitcher .panel li label span{display:inline-block;width:100%;height:100%;overflow:hidden;text-overflow:ellipsis;padding-right:.2em}.ol-layerswitcher [type=radio]+label:before,.ol-layerswitcher [type=checkbox]+label:before,.ol-layerswitcher [type=radio]:checked+label:after,.ol-layerswitcher [type=checkbox]:checked+label:after{content:"";position:absolute;left:.1em;top:.1em;width:1.2em;height:1.2em;border:2px solid #369;background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-layerswitcher [type=radio]+label:before,.ol-layerswitcher [type=radio]+label:after{border-radius:50%}.ol-layerswitcher [type=radio]:checked+label:after{background:#369 none repeat scroll 0 0;margin:.3em;width:.6em;height:.6em}.ol-layerswitcher [type=checkbox]:checked+label:after{background:transparent;border-width:0 3px 3px 0;border-style:solid;border-color:#369;width:.7em;height:1em;-webkit-transform:rotate(45deg);transform:rotate(45deg);left:.55em;top:-.05em;-webkit-box-shadow:1px 0px 1px 1px #fff;box-shadow:1px 0 1px 1px #fff}.ol-layerswitcher .panel li.ol-layer-hidden{opacity:.6}.ol-layerswitcher.ol-collapsed .panel-container{display:none}.ol-layerswitcher.ol-forceopen .panel-container{display:block}.ol-layerswitcher>button{background-color:#fff;float:right;z-index:10;position:relative;font-size:1.7em}.ol-touch .ol-layerswitcher>button{font-size:2.5em}.ol-layerswitcher>button:before,.ol-layerswitcher>button:after{content:"";position:absolute;width:.75em;height:.75em;border-radius:.15em;-webkit-transform:scaleY(.8) rotate(45deg);transform:scaleY(.8) rotate(45deg)}.ol-layerswitcher>button:before{background:#e2e4e1;top:.32em;left:.34em;-webkit-box-shadow:.1em .1em #325158;box-shadow:.1em .1em #325158}.ol-layerswitcher>button:after{top:.22em;left:.34em;background:#83bcc5;background-image:radial-gradient(circle at .85em .6em,#70b3be 0,#70b3be .65em,#83bcc5 .65em)}.ol-layerswitcher-buttons{display:block;float:right;text-align:right}.ol-layerswitcher-buttons>div{display:inline-block;position:relative;cursor:pointer;height:1em;width:1em;margin:2px;line-height:1em;text-align:center;background:#369;vertical-align:middle;color:#fff}.ol-layerswitcher .panel li>div{display:inline-block;position:relative}.ol-layerswitcher .ol-separator{display:block;width:0;height:0;padding:0;margin:0}.ol-layerswitcher .layerup{float:right;height:2.5em;background-color:#369;opacity:.5;cursor:move;cursor:ns-resize}.ol-layerswitcher .layerup:before,.ol-layerswitcher .layerup:after{border-color:#fff transparent;border-style:solid;border-width:.4em .4em 0;content:"";height:0;position:absolute;bottom:3px;left:.1em;width:0}.ol-layerswitcher .layerup:after{border-width:0 .4em .4em;top:3px;bottom:auto}.ol-layerswitcher .layerInfo{background:#369;border-radius:100%}.ol-layerswitcher .layerInfo:before{color:#fff;content:"i";display:block;font-size:.8em;font-weight:700;text-align:center;width:1.25em;position:absolute;left:0;top:0}.ol-layerswitcher .layerTrash{background:#369}.ol-layerswitcher .layerTrash:before{color:#fff;content:"\d7";font-size:1em;top:50%;left:0;right:0;text-align:center;line-height:1em;margin:-.5em 0;position:absolute}.ol-layerswitcher .layerExtent{background:#369}.ol-layerswitcher .layerExtent:before{border-right:1px solid #fff;border-bottom:1px solid #fff;content:"";display:block;position:absolute;left:6px;right:2px;top:6px;bottom:3px}.ol-layerswitcher .layerExtent:after{border-left:1px solid #fff;border-top:1px solid #fff;content:"";display:block;position:absolute;bottom:6px;left:2px;right:6px;top:3px}.ol-layerswitcher .expend-layers,.ol-layerswitcher .collapse-layers{margin:0 2px;background-color:transparent}.ol-layerswitcher .expend-layers:before,.ol-layerswitcher .collapse-layers:before{content:"";position:absolute;top:50%;left:0;margin-top:-2px;height:4px;width:100%;background:#369}.ol-layerswitcher .expend-layers:after{content:"";position:absolute;left:50%;top:0;margin-left:-2px;width:4px;height:100%;background:#369}.ol-layerswitcher .layerswitcher-opacity{position:relative;border:1px solid #369;height:3px;width:120px;margin:5px 1em 10px 7px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:3px;background:#69c;background:-webkit-gradient(linear,left top,right top,from(rgba(0,60,136,0)),to(rgba(0,60,136,.6)));background:linear-gradient(to right,rgba(0,60,136,0),rgba(0,60,136,.6));cursor:pointer;-webkit-box-shadow:1px 1px 1px rgba(0,0,0,.5);box-shadow:1px 1px 1px #00000080}.ol-layerswitcher .layerswitcher-opacity .layerswitcher-opacity-cursor,.ol-layerswitcher .layerswitcher-opacity .layerswitcher-opacity-cursor:before{position:absolute;width:20px;height:20px;top:50%;left:50%;background:rgba(0,60,136,.5);border-radius:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:1}.ol-layerswitcher .layerswitcher-opacity .layerswitcher-opacity-cursor:before{content:"";position:absolute;width:50%;height:50%}.ol-touch .ol-layerswitcher .layerswitcher-opacity .layerswitcher-opacity-cursor{width:26px;height:26px}.ol-layerswitcher .layerswitcher-opacity-label{display:none;position:absolute;right:-2.5em;bottom:5px;font-size:.8em}.ol-layerswitcher .layerswitcher-opacity-label:after{content:"%"}.ol-layerswitcher .layerswitcher-progress{display:block;margin:-4px 1em 2px 7px;width:120px}.ol-layerswitcher .layerswitcher-progress div{background-color:#369;height:2px;display:block;width:0}.ol-control.ol-layerswitcher-image{position:absolute;right:.5em;text-align:left;top:1em;transition:all .2s ease 0s;-webkit-transition:all .2s ease 0s}.ol-control.ol-layerswitcher-image.ol-collapsed{top:3em;-webkit-transition:none;transition:none}.ol-layerswitcher-image .panel{list-style:none;padding:.25em;margin:0;overflow:hidden}.ol-layerswitcher-image .panel ul{list-style:none;padding:0 0 0 20px;overflow:hidden}.ol-layerswitcher-image.ol-collapsed .panel{display:none}.ol-layerswitcher-image.ol-forceopen .panel{display:block;clear:both}.ol-layerswitcher-image button{background-color:#fff;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAACE1BMVEX///8A//8AgICA//8AVVVAQID///8rVVVJtttgv98nTmJ2xNgkW1ttyNsmWWZmzNZYxM4gWGgeU2JmzNNr0N1Rwc0eU2VXxdEhV2JqytQeVmMhVmNoydUfVGUgVGQfVGQfVmVqy9hqy9dWw9AfVWRpydVry9YhVmMgVGNUw9BrytchVWRexdGw294gVWQgVmUhVWPd4N6HoaZsy9cfVmQgVGRrytZsy9cgVWQgVWMgVWRsy9YfVWNsy9YgVWVty9YgVWVry9UgVWRsy9Zsy9UfVWRsy9YgVWVty9YgVWRty9Vsy9aM09sgVWRTws/AzM0gVWRtzNYgVWRuy9Zsy9cgVWRGcHxty9bb5ORbxdEgVWRty9bn6OZTws9mydRfxtLX3Nva5eRix9NFcXxOd4JPeINQeIMiVmVUws9Vws9Vw9BXw9BYxNBaxNBbxNBcxdJexdElWWgmWmhjyNRlx9IqXGtoipNpytVqytVryNNrytZsjZUuX210k5t1y9R2zNR3y9V4lp57zth9zdaAnKOGoaeK0NiNpquV09mesrag1tuitbmj1tuj19uktrqr2d2svcCu2d2xwMO63N+7x8nA3uDC3uDFz9DK4eHL4eLN4eIyYnDX5OM5Z3Tb397e4uDf4uHf5uXi5ePi5+Xj5+Xk5+Xm5+Xm6OY6aHXQ19fT4+NfhI1Ww89gx9Nhx9Nsy9ZWw9Dpj2abAAAAWnRSTlMAAQICAwQEBgcIDQ0ODhQZGiAiIyYpKywvNTs+QklPUlNUWWJjaGt0dnd+hIWFh4mNjZCSm6CpsbW2t7nDzNDT1dje5efr7PHy9PT29/j4+Pn5+vr8/f39/f6DPtKwAAABTklEQVR4Xr3QVWPbMBSAUTVFZmZmhhSXMjNvkhwqMzMzMzPDeD+xASvObKePPa+ffHVl8PlsnE0+qPpBuQjVJjno6pZpSKXYl7/bZyFaQxhf98hHDKEppwdWIW1frFnrxSOWHFfWesSEWC6R/P4zOFrix3TzDFLlXRTR8c0fEEJ1/itpo7SVO9Jdr1DVxZ0USyjZsEY5vZfiiAC0UoTGOrm9PZLuRl8X+Dq1HQtoFbJZbv61i+Poblh/97TC7n0neCcK0ETNUrz1/xPHf+DNAW9Ac6t8O8WH3Vp98f5lCaYKAOFZMLyHL4Y0fe319idMNgMMp+zWVSybUed/+/h7I4wRAG1W6XDy4XmjR9HnzvDRZXUAYDFOhC1S/Hh+fIXxen+eO+AKqbs+wAo30zDTDvDxKoJN88sjUzDFAvBzEUGFsnADoIvAJzoh2BZ8sner+Ke/vwECuQAAAABJRU5ErkJggg==);background-position:center;background-repeat:no-repeat;float:right;height:38px;width:38px;display:none}.ol-layerswitcher-image.ol-collapsed button{display:block;position:relative}.ol-layerswitcher-image li{border-radius:4px;border:3px solid transparent;-webkit-box-shadow:1px 1px 4px rgba(0,0,0,.5);box-shadow:1px 1px 4px #00000080;display:inline-block;width:64px;height:64px;margin:2px;position:relative;background-color:#fff;overflow:hidden;vertical-align:middle;cursor:pointer}.ol-layerswitcher-image li.ol-layer-hidden{opacity:.5;border-color:#555}.ol-layerswitcher-image li.ol-header{display:none}.ol-layerswitcher-image li img{position:absolute;max-width:100%}.ol-layerswitcher-image li.select,.ol-layerswitcher-image li.ol-visible{border:3px solid red}.ol-layerswitcher-image li p{display:none}.ol-layerswitcher-image li:hover p{background-color:#00000080;color:#fff;bottom:0;display:block;left:0;margin:0;overflow:hidden;position:absolute;right:0;text-align:center;height:1.2em;font-family:Verdana,Geneva,sans-serif;font-size:.8em}.ol-control.ol-legend{bottom:.5em;left:.5em;z-index:1;max-height:90%;max-width:90%;overflow-x:hidden;overflow-y:auto}.ol-control.ol-legend.ol-collapsed{overflow:hidden}.ol-control.ol-legend button{position:relative;display:none}.ol-control.ol-legend.ol-collapsed button{display:block}.ol-control.ol-legend.ol-uncollapsible button{display:none}.ol-control.ol-legend button.ol-closebox{display:block;position:absolute;top:0;right:0;background:none;cursor:pointer;z-index:1}.ol-control.ol-legend.ol-uncollapsible button.ol-closebox,.ol-control.ol-legend.ol-collapsed button.ol-closebox{display:none}.ol-control.ol-legend button.ol-closebox:before{content:"\d7";background:none;color:#003c8880;font-size:1.3em}.ol-control.ol-legend button.ol-closebox:hover:before{color:#003c88}.ol-control.ol-legend .ol-legendImg{display:block}.ol-control.ol-legend.ol-collapsed .ol-legendImg{display:none}.ol-control.ol-legend.ol-uncollapsible .ol-legendImg{display:block}.ol-control.ol-legend>button:first-child:before,.ol-control.ol-legend>button:first-child:after{content:"";position:absolute;top:.25em;left:.2em;width:.2em;height:.2em;background-color:currentColor;-webkit-box-shadow:0 .35em,0 .7em;box-shadow:0 .35em,0 .7em}.ol-control.ol-legend button:first-child:after{top:.27em;left:.55em;height:.15em;width:.6em}ul.ol-legend{position:absolute;top:0;left:0;width:100%;margin:0;padding:0;list-style:none}.ol-control.ol-legend.ol-collapsed ul{display:none}.ol-control.ol-legend.ol-uncollapsible ul{display:block}ul.ol-legend li.ol-title{text-align:center;font-weight:700}ul.ol-legend li.ol-title>div:first-child{width:0!important}ul.ol-legend li{overflow:hidden;padding:0;white-space:nowrap}ul.ol-legend li div{display:inline-block;vertical-align:middle}.ol-control.ol-legend .ol-legend{display:inline-block}.ol-control.ol-legend.ol-collapsed .ol-legend{display:none}.ol-control.ol-mapzone{position:absolute;right:.5em;text-align:left;top:.5em;max-height:calc(100% - 6em);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.ol-control.ol-mapzone.ol-collapsed{top:3em}.ol-control.ol-mapzone button{position:relative;float:right;margin-top:2.2em}.ol-touch .ol-control.ol-mapzone button{margin-top:1.67em}.ol-control.ol-mapzone.ol-collapsed button{margin-top:0}.ol-control.ol-mapzone button i{border:.1em solid currentColor;border-radius:50%;width:.9em;height:.9em;overflow:hidden;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-control.ol-mapzone button i:before{content:"";background-color:currentColor;width:.4em;height:.4em;position:absolute;left:.5em;top:.3em;border-radius:50%;-webkit-box-shadow:.05em .3em 0 -.051em currentColor,-.05em -.35em 0 -.1em currentColor,-.5em -.35em 0 0em currentColor,-.65em .1em 0 -.03em currentColor,-.65em -.05em 0 -.05em currentColor;box-shadow:.05em .3em 0 -.051em currentColor,-.05em -.35em 0 -.1em currentColor,-.5em -.35em 0 0 currentColor,-.65em .1em 0 -.03em currentColor,-.65em -.05em 0 -.05em currentColor}.ol-mapzone>div{position:relative;display:inline-block;width:5em;height:5em;margin:0 .2em 0 0}.ol-control.ol-mapzone.ol-collapsed>div{display:none}.ol-mapzone>div p{margin:0;position:absolute;bottom:0;color:#fff;font-weight:700;text-align:center;width:160%;overflow:hidden;font-family:Lucida Grande,Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif;-webkit-transform:scaleX(.625);transform:scaleX(.625);-webkit-transform-origin:0 0;transform-origin:0 0;cursor:default}.ol-notification{width:150%;bottom:0;border:0;background:none;margin:0;padding:0}.ol-notification>div,.ol-notification>div:hover{position:absolute;background-color:#000c;color:#fff;bottom:0;left:33.33%;max-width:calc(66% - 4em);min-width:5em;max-height:5em;min-height:1em;border-radius:4px 4px 0 0;padding:.2em .5em;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transform:translateX(-50%);transform:translate(-50%);-webkit-transition:.3s;transition:.3s;opacity:1}.ol-notification.ol-collapsed>div{bottom:-5em;opacity:0}.ol-notification a{color:#9cf;cursor:pointer}.ol-notification .ol-close,.ol-notification .ol-close:hover{padding-right:1.5em}.ol-notification .closeBox{position:absolute;top:0;right:.3em}.ol-notification .closeBox:before{content:"\d7"}.ol-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0006;padding:1em;color:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:1;opacity:0;display:none;cursor:default;overflow:hidden;-webkit-transition:all .5s;transition:all .5s;pointer-events:none}.ol-overlay.slide-up{transform:translateY(100%);-webkit-transform:translateY(100%)}.ol-overlay.slide-down{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.ol-overlay.slide-left{-webkit-transform:translateX(-100%);transform:translate(-100%)}.ol-overlay.slide-right{-webkit-transform:translateX(100%);transform:translate(100%)}.ol-overlay.zoom{top:50%;left:50%;opacity:.5;-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0)}.ol-overlay.zoomout{-webkit-transform:scale(3);transform:scale(3)}.ol-overlay.zoomrotate{top:50%;left:50%;opacity:.5;-webkit-transform:translate(-50%,-50%) scale(0) rotate(360deg);transform:translate(-50%,-50%) scale(0) rotate(360deg)}.ol-overlay.stretch{top:50%;left:50%;opacity:.5;-webkit-transform:translate(-50%,-50%) scaleX(0);transform:translate(-50%,-50%) scaleX(0)}.ol-overlay.stretchy{top:50%;left:50%;opacity:.5;-webkit-transform:translate(-50%,-50%) scaleY(0);transform:translate(-50%,-50%) scaleY(0)}.ol-overlay.wipe{opacity:1}.ol-overlay.flip{-webkit-transform:perspective(600px) rotateY(180deg);transform:perspective(600px) rotateY(180deg)}.ol-overlay.card{opacity:.5;-webkit-transform:translate(-80%,100%) rotate(-.5turn);transform:translate(-80%,100%) rotate(-.5turn)}.ol-overlay.book{-webkit-transform:perspective(600px) rotateY(-180deg) scaleX(.6);transform:perspective(600px) rotateY(-180deg) scaleX(.6);-webkit-transform-origin:10% 50%;transform-origin:10% 50%}.ol-overlay.book.visible{-webkit-transform-origin:10% 50%;transform-origin:10% 50%}.ol-overlay.ol-visible{opacity:1;top:0;left:0;right:0;bottom:0;-webkit-transform:none;transform:none;pointer-events:all}.ol-overlay .ol-closebox{position:absolute;top:1em;right:1em;width:1em;height:1em;cursor:pointer;z-index:1}.ol-overlay .ol-closebox:before{content:"\274c";display:block;text-align:center;vertical-align:middle}.ol-overlay .ol-fullscreen-image{position:absolute;top:0;left:0;bottom:0;right:0}.ol-overlay .ol-fullscreen-image img{position:absolute;max-width:100%;max-height:100%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:1em;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-overlay .ol-fullscreen-image.ol-has-title img{padding-bottom:3em}.ol-overlay .ol-fullscreen-image p{background-color:#00000080;padding:.5em;position:absolute;left:0;right:0;bottom:0;margin:0;text-align:center}.ol-control.ol-overview{position:absolute;left:.5em;text-align:left;bottom:.5em}.ol-control.ol-overview .panel{display:block;width:150px;height:150px;margin:2px;background-color:#fff;border:1px solid #369;cursor:pointer}.ol-overview:not(.ol-collapsed) button{position:absolute;bottom:2px;left:2px;z-index:2}.ol-control.ol-overview.ol-collapsed .panel{display:none}.ol-overview.ol-collapsed button:before{content:"\bb"}.ol-overview button:before{content:"\ab"}.ol-control-right.ol-overview{left:auto;right:.5em}.ol-control-right.ol-overview:not(.ol-collapsed) button{left:auto;right:2px}.ol-control-right.ol-overview.ol-collapsed button:before{content:"\ab"}.ol-control-right.ol-overview button:before{content:"\bb"}.ol-control-top.ol-overview{bottom:auto;top:5em}.ol-control-top.ol-overview:not(.ol-collapsed) button{bottom:auto;top:2px}.ol-permalink{position:absolute;top:.5em;right:2.5em}.ol-touch .ol-permalink{right:3em}.ol-permalink button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AcFBjYE1ZK03gAAAUlJREFUOMuVk71KA1EQhc/NaiP+gCRpFHwGBSFlCrFVfAsbwSJCBMv06QIGJOBziI3EYAgkjU8gIloIAasIn4WzMqx34zrN7J6de+6ZmbNSgQDSfADcATPgHbgCyvonSYv8KEzWdofegH3gwmG9Ikq67sAESFzNueHThTyiEIKAmr2OJCUhhO30Aou+5aUQU2Ik65K2JC1KegohPGfUBkmvksqShnntHEcGOs60NXHfjmKz6czZTsNqbhzW+muwY2ATWAWawCOwBgxcTfvnvCPxKx4Cy5bPgBWgauRpdL2ImNlGhp3MabETm8mh94nDk4yCNE5/KTGg7xxbyhYAG0AN2AEqURIDZ0a0Fxn+LXAPXDpzRqMk6cOedz1ubdYl1b6NHgZRJe72nuu/CdSBl+yKi/zZlTnbaeXOJIesClwDU+ATeEhtX5TkCwAWUyAsHH1QAAAAAElFTkSuQmCC);background-position:center;background-repeat:no-repeat}.ol-control.ol-print{top:.5em;left:3em}.ol-control.ol-print button:before{content:"";width:.9em;height:.35em;position:absolute;left:50%;top:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);-webkit-box-shadow:inset 0 0 0 .1em,inset .55em 0,0 .2em 0 -.1em;box-shadow:inset 0 0 0 .1em,inset .55em 0,0 .2em 0 -.1em}.ol-control.ol-print button:after{content:"";width:.7em;height:.6em;position:absolute;left:50%;top:25%;-webkit-transform:translateX(-50%);transform:translate(-50%);-webkit-box-shadow:inset 0 0 0 .15em;box-shadow:inset 0 0 0 .15em}.ol-ext-print-dialog{width:100%;height:100%}.ol-ext-print-dialog>form .ol-closebox{right:auto;left:16.5em;z-index:1;color:#999}.ol-ext-print-dialog .ol-content[data-status=printing]{opacity:.5}.ol-ext-print-dialog .ol-content .ol-error{display:none;background:#b00;color:#ff0;text-align:center;padding:1em .5em;font-weight:700;margin:0 -1em}.ol-ext-print-dialog .ol-content[data-status=error] .ol-error{display:block}.ol-ext-print-dialog>form,.ol-ext-print-dialog.ol-visible>form{-webkit-transition:none;transition:none;top:1em;left:1em;bottom:1em;right:1em;-webkit-transform:none;transform:none;max-width:100%;max-height:100%;background-color:#eee;padding:0}.ol-ext-print-dialog .ol-print-map{position:absolute;top:0;bottom:0;right:0;width:calc(100% - 18em);overflow:hidden}.ol-ext-print-dialog .ol-print-map .ol-page{position:absolute;left:50%;top:50%;background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-ext-print-dialog .ol-print-map .ol-page.margin{-webkit-box-sizing:content-box;box-sizing:content-box}.ol-ext-print-dialog .ol-map{width:100%;height:100%}.ol-ext-print-dialog .ol-print-map .ol-control{display:none!important}.ol-ext-print-dialog .ol-print-param{position:absolute;overflow-x:hidden;top:0;bottom:0;left:0;width:18em;background-color:#fff;padding:1em;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-ext-print-dialog .ol-print-param h2{display:block;color:#003c88b3;font-size:1.1em}.ol-ext-print-dialog .ol-print-param ul{padding:0;list-style:none}.ol-ext-print-dialog .ol-print-param li{position:relative;margin:.5em 0;font-size:.9em}.ol-ext-print-dialog .ol-print-param li.hidden{display:none}.ol-ext-print-dialog .ol-print-param label{width:8em;display:inline-block;vertical-align:middle}.ol-ext-print-dialog select{outline:none;vertical-align:middle}.ol-ext-print-dialog .ol-orientation{text-align:center}.ol-ext-print-dialog .ol-orientation label{position:relative;width:7em;cursor:pointer}.ol-ext-print-dialog .ol-orientation input{position:absolute;opacity:0;width:0;height:0}.ol-ext-print-dialog .ol-orientation span{position:relative;width:80%;display:block;padding:3.5em 0 .2em}.ol-ext-print-dialog .ol-orientation span:before{content:"";position:absolute;width:2em;height:2.6em;bottom:1.5em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);color:#333;background-color:currentColor;border:1px solid currentColor;border-radius:0 1em 0 0;opacity:.5;overflow:hidden;-webkit-box-shadow:inset 1.3em -1.91em #ddd;box-shadow:inset 1.3em -1.91em #ddd}.ol-ext-print-dialog .ol-orientation .landscape span:before{width:2.6em;height:2em;margin:.2em 0;-webkit-box-shadow:inset 1.91em -1.3em #ddd;box-shadow:inset 1.91em -1.3em #ddd}.ol-ext-print-dialog .ol-orientation input:checked+span{opacity:1;-webkit-box-shadow:0 0 .2em rgba(0,0,0,.5);box-shadow:0 0 .2em #00000080}.ol-ext-print-dialog .ol-ext-toggle-switch span{position:absolute;right:-2em;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ol-print-title input[type=text]{margin-top:.5em;width:calc(100% - 6em);margin-left:6em}.ol-ext-print-dialog .ol-size option:first-child{font-style:italic}.ol-ext-print-dialog .ol-saveas,.ol-ext-print-dialog .ol-savelegend{text-align:center}.ol-ext-print-dialog .ol-saveas select,.ol-ext-print-dialog .ol-savelegend select{background-color:#003c88b3;color:#fff;padding:.5em;margin:1em 0 0;font-size:1em;border:0;font-weight:700;max-width:12em}.ol-ext-print-dialog .ol-saveas select option,.ol-ext-print-dialog .ol-savelegend select option{background-color:#fff;color:#666}.ol-ext-print-dialog .ol-savelegend select{margin-top:0}.ol-ext-print-dialog .ol-ext-buttons{text-align:right;border-top:1px solid #ccc;padding:.8em .5em;margin:0 -1em}.ol-ext-print-dialog button{font-size:1em;margin:0 .2em;border:1px solid #999;background:none;padding:.3em 1em;color:#333}.ol-ext-print-dialog button[type=submit]{background-color:#003c88b3;color:#fff;font-weight:700}.ol-ext-print-dialog .ol-clipboard-copy{position:absolute;pointer-events:none;top:0;background-color:#00000080;color:#fff;padding:.5em 1em;border-radius:1em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-transition:0s;transition:0s;opacity:0}.ol-ext-print-dialog .ol-clipboard-copy.visible{-webkit-animation:1s ol-clipboard-copy;animation:1s ol-clipboard-copy}.ol-ext-print-dialog .ol-print-map .ol-control.ol-canvas-control,.ol-ext-print-dialog .ol-print-map .ol-control.ol-print-compass{display:block!important}.ol-ext-print-dialog .ol-print-map .ol-control.olext-print-compass{top:0;right:0;width:60px;height:60px;margin:20px}@-webkit-keyframes ol-clipboard-copy{0%{opacity:0;top:0}80%{opacity:1;top:-3em}to{opacity:0;top:-3em}}@keyframes ol-clipboard-copy{0%{opacity:0;top:0}80%{opacity:1;top:-3em}to{opacity:0;top:-3em}}@media print{body.ol-print-document{margin:0!important;padding:0!important}body.ol-print-document>*{display:none!important}body.ol-print-document>.ol-ext-print-dialog{display:block!important}.ol-ext-print-dialog>form,.ol-ext-print-dialog{position:unset;-webkit-box-shadow:none;box-shadow:none;background:none!important;border:0}.ol-ext-print-dialog>form>*,.ol-ext-print-dialog .ol-print-param{display:none!important;background:none}.ol-ext-print-dialog .ol-content{display:block!important;border:0;background:none}.ol-ext-print-dialog .ol-print-map{position:unset;background:none;width:auto;overflow:visible}.ol-ext-print-dialog .ol-print-map .ol-page{-webkit-transform:none!important;transform:none!important;-webkit-box-shadow:none!important;box-shadow:none!important;position:unset}}@media (max-width: 25em){.ol-ext-print-dialog .ol-print-param{width:13em}.ol-ext-print-dialog .ol-print-map{width:calc(100% - 13em)}.ol-ext-print-dialog .ol-print-param .ol-print-title input[type=text]{width:100%;margin:0}}.ol-profil{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ol-control.ol-profil{position:absolute;top:.5em;right:3em;text-align:right;overflow:hidden}.ol-profil .ol-zoom-out{position:absolute;top:10px;right:10px;width:1em;height:1em;padding:0;border:1px solid #000;border-radius:2px;cursor:pointer}.ol-profil .ol-zoom-out:before{content:"";height:2px;width:60%;background:currentColor;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-profil .ol-inner{position:relative;padding:.5em;font-size:.8em}.ol-control.ol-profil .ol-inner{display:block;background-color:#ffffffb3;margin:2.3em 2px 2px}.ol-control.ol-profil.ol-collapsed .ol-inner{display:none}.ol-profil canvas{display:block}.ol-profil button{display:block;position:absolute;right:2px;background-position:center;background-repeat:no-repeat;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAPCAYAAAALWoRrAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AgXCR4dn7j9TAAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAz0lEQVQ4y7WTMU4CURRFz0xIpLUBEhdAY2tJYW1jaWlsXYVxDWyBhWCFCYugYgnDFPMOhTMJGf3AwHiqn/uTk5v/3gfAH6b0RH7sMiIe1Ts162z+q2lVVbd1XqijLuJk0zzP1/VxCGyApLgsy+HJphGx8DeFOm6L1bn6eVQaEW+m2amTRqx+1fkqKY2Ie0+zUx/U7WGYfNMsy57PmMMN8A1MWsWeUoPyivV8PWtPOzL7D+lYHfUtBXgHGLTCJfBxodD6k9Dsm8BLE17LobQ39nJC61aLVoVsAAAAAElFTkSuQmCC)}.ol-profil.ol-collapsed button{position:static}.ol-profil .ol-profilbar,.ol-profil .ol-profilcursor{position:absolute;pointer-events:none;width:1px;display:none}.ol-profil .ol-profilcursor{width:0;height:0}.ol-profil .ol-profilcursor:before{content:"";pointer-events:none;display:block;margin:-2px;width:5px;height:5px}.ol-profil .ol-profilbar,.ol-profil .ol-profilcursor:before{background:red}.ol-profil table{text-align:center;width:100%}.ol-profil table span{display:block}.ol-profilpopup{background-color:#ffffff80;margin:.5em;padding:0 .5em;position:absolute;top:-1em;white-space:nowrap}.ol-profilpopup.ol-left{right:0}.ol-profil table td{padding:0 2px}.ol-profil table .track-info{display:table-row}.ol-profil table .point-info,.ol-profil .over table .track-info{display:none}.ol-profil .over table .point-info{display:table-row}.ol-profil p{text-align:center;margin:0}.ol-control.ol-progress-bar{position:absolute;top:0;bottom:0;left:0;right:0;padding:0;pointer-events:none!important;background-color:transparent}.ol-control.ol-progress-bar>.ol-bar{position:absolute;background-color:#003c8880;left:0;bottom:0;height:.5em;width:0;-webkit-transition:width .2s;transition:width .2s;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-progress-bar>.ol-waiting{display:none}.ol-viewport .ol-control.ol-progress-bar>.ol-waiting{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:#fff;font-size:2em;display:block;-webkit-animation:1s linear infinite ol-progress-bar-blink;animation:1s linear infinite ol-progress-bar-blink}@-webkit-keyframes ol-progress-bar-blink{0%,30%{visibility:hidden}to{visibility:visible}}@keyframes ol-progress-bar-blink{0%,30%{visibility:hidden}to{visibility:visible}}.ol-control.ol-routing{top:.5em;left:3em;max-height:90%;overflow-y:auto}.ol-touch .ol-control.ol-routing{left:3.5em}.ol-control.ol-routing.ol-searching{opacity:.5}.ol-control.ol-routing .ol-car,.ol-control.ol-routing>button{position:relative}.ol-control.ol-routing .ol-car:after,.ol-control.ol-routing>button:after{content:"";position:absolute;width:.78em;height:.6em;border-radius:40% 50% 0 0/50% 70% 0 0;-webkit-box-shadow:inset 0 0 0 .065em,-.35em .14em 0 -.09em,inset 0 -.37em,inset -.14em .005em;box-shadow:inset 0 0 0 .065em,-.35em .14em 0 -.09em,inset 0 -.37em,inset -.14em .005em;clip:rect(0 1em .5em -1em);top:.35em;left:.4em}.ol-control.ol-routing .ol-car:before,.ol-control.ol-routing>button:before{content:"";position:absolute;width:.28em;height:.28em;border-radius:50%;-webkit-box-shadow:inset 0 0 0 1em,.65em 0;box-shadow:inset 0 0 0 1em,.65em 0;top:.73em;left:.2em}.ol-control.ol-routing .ol-pedestrian:after{content:"";position:absolute;width:.3em;height:.4em;top:.25em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);-webkit-box-shadow:inset .3em 0,.1em .5em 0 -.1em,-.1em .5em 0 -.1em,.25em .1em 0 -.1em,-.25em .1em 0 -.1em;box-shadow:inset .3em 0,.1em .5em 0 -.1em,-.1em .5em 0 -.1em,.25em .1em 0 -.1em,-.25em .1em 0 -.1em;border-top:.2em solid transparent}.ol-control.ol-routing .ol-pedestrian:before{content:"";position:absolute;width:.3em;height:.3em;top:.1em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);border-radius:50%;background-color:currentColor}.ol-control.ol-routing.ol-collapsed .content,.ol-routing .ol-search.ol-collapsed ul,.ol-routing .ol-search ul .copy{display:none}.ol-routing .content .search-input>div>*{display:inline-block;vertical-align:top}.ol-routing .ol-result ul{list-style:none;display:block}.ol-routing .ol-result li{position:relative;min-height:1.65em}.ol-routing .ol-result li i{display:block;font-size:.8em;font-weight:700}.ol-routing .ol-result li:before{content:"";border:5px solid transparent;position:absolute;left:-1.75em;border-bottom-color:#369;border-width:.6em .4em .6em;-webkit-transform-origin:50% 125%;transform-origin:50% 125%;-webkit-box-shadow:0 .65em 0 -.25em #369;box-shadow:0 .65em 0 -.25em #369;top:-.8em}.ol-routing .ol-result li:after{content:"";position:absolute;width:.3em;height:.6em;left:-1.5em;background:#369;top:.6em}.ol-routing .ol-result li.R:before{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.ol-routing .ol-result li.FR:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ol-routing .ol-result li.L:before{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.ol-routing .ol-result li.FL:before{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.ol-routing .content>i{vertical-align:middle;margin:0 .3em 0 .1em;font-style:normal}.ol-routing .ol-button,.ol-routing .ol-button:focus,.ol-routing .ol-pedestrian,.ol-routing .ol-car{font-size:1.1em;position:relative;display:inline-block;width:1.4em;height:1.4em;color:#003c88;background-color:transparent;margin:0 .1em;opacity:.5;vertical-align:middle;outline:none;cursor:pointer}.ol-routing .ol-button:hover,.ol-routing .ol-button.selected,.ol-routing i.selected{opacity:1;background:transparent}.ol-control.ol-routing:hover{background-color:#ffffffd9}.search-input>div>button:before{content:"\b1"}.ol-viewport .ol-scale{left:.5em;bottom:2.5em;text-align:center;-webkit-transform:scaleX(.8);-webkit-transform-origin:0 0;transform:scaleX(.8);transform-origin:0 0}.ol-viewport .ol-scale input{background:none;border:0;width:8em;text-align:center}.ol-search{top:.5em;left:3em}.ol-touch .ol-search{left:3.5em}.ol-search button{top:2px;left:2px;float:left}.ol-control.ol-search>button:before{content:"";position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;width:.7em;height:.7em;background-color:transparent;border:.12em solid currentColor;border-radius:100%;top:.35em;left:.35em}.ol-control.ol-search>button:after{content:"";position:absolute;top:1.1em;left:.95em;width:.45em;height:.15em;background-color:currentColor;border-radius:.05em;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-shadow:-.18em 0 0 -.03em;box-shadow:-.18em 0 0 -.03em}.ol-search button.ol-revers{float:none;background-image:none;display:inline-block;vertical-align:bottom;position:relative;top:0;left:0}.ol-search.ol-revers button.ol-revers{background-color:#00883c80}.ol-control.ol-search.ol-collapsed button.ol-revers{display:none}.ol-search button.ol-revers:before{content:"";border:.1em solid currentColor;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:50%;width:.55em;height:.55em;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-search button.ol-revers:after{content:"";position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:.2em;height:.2em;background-color:transparent;-webkit-box-shadow:.35em 0 currentColor,0 .35em currentColor,-.35em 0 currentColor,0 -.35em currentColor;box-shadow:.35em 0 currentColor,0 .35em currentColor,-.35em 0 currentColor,0 -.35em currentColor}.ol-search input{display:inline-block;border:0;margin:1px 1px 1px 2px;font-size:1.14em;padding-left:.3em;height:1.375em;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all .1s;transition:all .1s}.ol-touch .ol-search input,.ol-touch .ol-search ul{font-size:1.5em}.ol-search.ol-revers>ul,.ol-control.ol-search.ol-collapsed>*{display:none}.ol-control.ol-search.ol-collapsed>button{display:block}.ol-search ul{list-style:none;padding:0;margin:0;display:block;clear:both;cursor:pointer;max-width:17em;overflow-x:hidden;z-index:1;background:#fff}.ol-search ul li{padding:.1em .5em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ol-search ul li.select,.ol-search ul li:hover{background-color:#003c8880;color:#fff}.ol-search ul li img{float:left;max-height:2em}.ol-search li.copy{background:rgba(0,0,0,.5);color:#fff}.ol-search li.copy a{color:#fff;text-decoration:none}.ol-search.searching:before{content:"";position:absolute;height:3px;left:0;top:1.6em;-webkit-animation:pulse .5s infinite alternate linear;animation:pulse .5s infinite alternate linear;background:red;z-index:2}@-webkit-keyframes pulse{0%{left:0;right:95%}50%{left:30%;right:30%}to{left:95%;right:0}}@keyframes pulse{0%{left:0;right:95%}50%{left:30%;right:30%}to{left:95%;right:0}}.ol-search.IGNF-parcelle input{width:13.5em}.ol-search.IGNF-parcelle input:-moz-read-only{background:#ccc;opacity:.8}.ol-search.IGNF-parcelle input:read-only{background:#ccc;opacity:.8}.ol-search.IGNF-parcelle.ol-collapsed-list>ul.autocomplete{display:none}.ol-search.IGNF-parcelle label{display:block;clear:both}.ol-search.IGNF-parcelle>div input,.ol-search.IGNF-parcelle>div label{width:5em;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;margin:.1em;font-size:1em}.ol-search.IGNF-parcelle ul.autocomplete-page{margin-top:.5em;width:100%;text-align:center;display:none}.ol-search.IGNF-parcelle.ol-collapsed-list ul.autocomplete-parcelle,.ol-search.IGNF-parcelle.ol-collapsed-list ul.autocomplete-page{display:block}.ol-search.IGNF-parcelle.ol-collapsed ul.autocomplete-page,.ol-search.IGNF-parcelle.ol-collapsed ul.autocomplete-parcelle,.ol-search.IGNF-parcelle ul.autocomplete-parcelle{display:none}.ol-search.IGNF-parcelle ul.autocomplete-page li{display:inline-block;color:#fff;background:rgba(0,60,136,.5);border-radius:50%;width:1.3em;height:1.3em;padding:.1em;margin:0 .1em}.ol-search.IGNF-parcelle ul.autocomplete-page li.selected{background:rgba(0,60,136,1)}.ol-searchgps input.search{display:none}.ol-control.ol-searchgps>button:first-child{background-image:none}.ol-control.ol-searchgps>button:first-child:before{content:"x/y";position:unset;display:block;-webkit-transform:scaleX(.8);transform:scaleX(.8);border:unset;border-radius:0;width:auto;height:auto}.ol-control.ol-searchgps>button:first-child:after{content:unset}.ol-control.ol-searchgps .ol-latitude,.ol-control.ol-searchgps .ol-longitude{clear:both}.ol-control.ol-searchgps .ol-latitude label,.ol-control.ol-searchgps .ol-longitude label{width:5.5em;display:inline-block;text-align:right;-webkit-transform:scaleX(.8);transform:scaleX(.8);margin:0 -.8em 0 0;-webkit-transform-origin:0 0;transform-origin:0 0}.ol-control.ol-searchgps .ol-latitude input,.ol-control.ol-searchgps .ol-longitude input{max-width:10em}.ol-control.ol-searchgps .ol-ext-toggle-switch{cursor:pointer;float:right;margin:.5em;font-size:.9em}.ol-searchgps .ol-decimal{display:inline-block;margin-right:.7em}.ol-searchgps .ol-dms,.ol-searchgps.ol-dms .ol-decimal{display:none;width:3em;text-align:right}.ol-searchgps.ol-dms .ol-dms{display:inline-block}.ol-searchgps span.ol-dms{width:.5em;text-align:left}.ol-searchgps.ol-control.ol-collapsed button.ol-geoloc{display:none}.ol-searchgps button.ol-geoloc{top:0;float:right;margin-right:3px;background-image:none;position:relative}.ol-searchgps button.ol-geoloc:before{content:"";position:absolute;left:50%;top:50%;width:.6em;height:.6em;border:.1em solid currentColor;border-radius:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-searchgps button.ol-geoloc:after{content:"";position:absolute;left:50%;top:50%;width:.2em;height:.2em;background-color:transparent;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-box-shadow:.45em 0 currentColor,-.45em 0 currentColor,0 -.45em currentColor,0 .45em currentColor,.25em 0 currentColor,-.25em 0 currentColor,0 -.25em currentColor,0 .25em currentColor;box-shadow:.45em 0 currentColor,-.45em 0 currentColor,0 -.45em currentColor,0 .45em currentColor,.25em 0 currentColor,-.25em 0 currentColor,0 -.25em currentColor,0 .25em currentColor}.ol-control.ol-select{top:.5em;left:3em}.ol-touch .ol-control.ol-select{left:3.5em}.ol-control.ol-select>button:before{content:"A";font-size:.6em;font-weight:400;position:absolute;-webkit-box-sizing:content-box;box-sizing:content-box;width:1em;height:1em;background-color:transparent;border:.2em solid currentColor;border-radius:100%;top:.5em;left:.5em;line-height:1em;text-align:center}.ol-control.ol-select>button:after{content:"";position:absolute;top:1.15em;left:1em;width:.45em;height:.15em;background-color:currentColor;border-radius:.05em;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-shadow:-.18em 0 0 -.03em;box-shadow:-.18em 0 0 -.03em}.ol-select>div button{width:auto;padding:0 .5em;float:right;font-weight:400}.ol-select .ol-delete{width:1.5em;height:1em;vertical-align:middle;display:inline-block;position:relative;cursor:pointer}.ol-select .ol-delete:before{content:"\d7";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:100%;text-align:center;font-weight:700}.ol-control.ol-select input{font-size:1em}.ol-control.ol-select select{font-size:1em;max-width:10em}.ol-control.ol-select select option.ol-default{color:#999;font-style:italic}.ol-control.ol-select>div{display:block}.ol-control.ol-select.ol-collapsed>div{display:none}.ol-control.ol-select.ol-select-check{max-width:20em}.ol-control.ol-select label.ol-ext-check{margin-right:1em}.ol-control.ol-select label.ol-ext-toggle-switch span{font-size:1.1em}.ol-select ul{list-style:none;margin:0;padding:0}.ol-control.ol-select input[type=search],.ol-control.ol-select input[type=text]{width:8em}.ol-select .ol-autocomplete{display:inline}.ol-select .ol-autocomplete ul{position:absolute;display:block;background:#fff;border:1px solid #999;min-width:10em;font-size:.85em}.ol-select .ol-autocomplete ul li{padding:0 .5em}.ol-select .ol-autocomplete ul li:hover{color:#fff;background:rgba(0,60,136,.5)}.ol-select ul.ol-hidden{display:none}.ol-select-multi li>div:hover,.ol-select-multi li>div.ol-control.ol-select{position:relative;top:unset;left:unset;background:transparent}.ol-select-multi li>div>button,.ol-select-multi li>div .ol-ok{display:none}.ol-select-multi li .ol-control.ol-select.ol-collapsed>div,.ol-select-multi li>div>div{display:block}.ol-control.ol-status{top:0;left:0;background:rgba(0,0,0,.2);color:#fff;font-size:.9em;padding:.3em 3em;border-radius:0;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none!important;display:none}.ol-control.ol-status.ol-visible{display:initial}.ol-control.ol-status.ol-bottom{top:auto;bottom:0}.ol-control.ol-status.ol-left{top:0;bottom:0;padding:.3em .5em .3em 3em;width:auto}.ol-control.ol-status.ol-right{top:0;bottom:0;left:auto;right:0;padding:.3em 3em .3em .5em;width:auto}.ol-control.ol-status.ol-center{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ol-control.ol-storymap{top:.5em;left:.5em;bottom:.5em;max-width:35%;border-radius:.5em;position:absolute;height:auto}.ol-storymap{overflow:hidden;padding:0;height:100%;position:relative}.ol-storymap>div{overflow:hidden;padding:0;height:100%;position:relative;scroll-behavior:smooth;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ol-storymap>div.ol-move{scroll-behavior:unset}.ol-control.ol-storymap .chapter{padding:.5em}.ol-storymap .chapter{cursor:pointer;opacity:.4}.ol-storymap .chapter.ol-select{cursor:default;opacity:1}.ol-storymap .ol-scroll-top,.ol-storymap .ol-scroll-next{position:relative;min-height:1.7em;color:#003c8880;text-align:center;cursor:pointer}.ol-storymap .ol-scroll-next span{padding-bottom:1.4em;display:block}.ol-storymap .ol-scroll-top span{padding-top:1.4em;display:block}.ol-storymap .ol-scroll-top:before,.ol-storymap .ol-scroll-next:before{content:"";border:.3em solid currentColor;border-radius:.3em;border-color:transparent currentColor currentColor transparent;width:.8em;height:.8em;display:block;position:absolute;left:50%;-webkit-transform:translateX(-50%) rotate(45deg);transform:translate(-50%) rotate(45deg);-webkit-animation:ol-bounce-bottom .35s linear infinite alternate;animation:ol-bounce-bottom .35s linear infinite alternate;pointer-events:none}.ol-storymap .ol-scroll-top:before{border-color:currentColor transparent transparent currentColor;-webkit-animation:ol-bounce-top .35s linear infinite alternate;animation:ol-bounce-top .35s linear infinite alternate}@-webkit-keyframes ol-bounce-top{0%{top:-.2em}to{top:.5em}}@keyframes ol-bounce-top{0%{top:-.2em}to{top:.5em}}@-webkit-keyframes ol-bounce-bottom{0%{bottom:-.2em}to{bottom:.5em}}@keyframes ol-bounce-bottom{0%{bottom:-.2em}to{bottom:.5em}}.ol-storymap img[data-title]{cursor:pointer}.ol-swipe{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-ms-touch-action:none;touch-action:none}.ol-swipe:before{content:"";position:absolute;top:-5000px;bottom:-5000px;left:50%;width:4px;background:#fff;z-index:-1;-webkit-transform:translate(-2px,0);transform:translate(-2px)}.ol-swipe.horizontal:before{left:-5000px;right:-5000px;top:50%;bottom:auto;width:auto;height:4px}.ol-swipe,.ol-swipe button{cursor:ew-resize}.ol-swipe.horizontal,.ol-swipe.horizontal button{cursor:ns-resize}.ol-swipe:after,.ol-swipe button:before,.ol-swipe button:after{content:"";position:absolute;top:25%;bottom:25%;left:50%;width:2px;background:rgba(255,255,255,.8);transform:translate(-1px);-webkit-transform:translate(-1px,0)}.ol-swipe button:after{transform:translate(5px);-webkit-transform:translateX(5px)}.ol-swipe button:before{transform:translate(-7px);-webkit-transform:translateX(-7px)}.ol-control.ol-timeline{bottom:0;left:0;right:0;-webkit-transition:.3s;transition:.3s}.ol-control.ol-timeline.ol-collapsed{-webkit-transform:translateY(100%);transform:translateY(100%)}.ol-timeline{overflow:hidden;padding:2px 0 0}.ol-timeline .ol-scroll{overflow:hidden;scroll-behavior:smooth;line-height:1em;height:6em;padding:0 50%}.ol-timeline .ol-scroll.ol-move{scroll-behavior:unset}.ol-timeline.ol-hasbutton .ol-scroll{margin-left:1.5em;padding:0 calc(50% - .75em)}.ol-timeline .ol-buttons{display:none;position:absolute;top:0;background:rgba(255,255,255,.5);width:1.5em;bottom:0;left:0;z-index:10}.ol-timeline.ol-hasbutton .ol-buttons{display:block}.ol-timeline .ol-buttons button{font-size:1em;margin:1px;position:relative}.ol-timeline .ol-buttons .ol-zoom-in:before,.ol-timeline .ol-buttons .ol-zoom-out:before{content:"+";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-timeline .ol-buttons .ol-zoom-out:before{content:"\2212"}.ol-timeline .ol-scroll>div{height:100%;position:relative}.ol-timeline .ol-scroll .ol-times{background:rgba(255,255,255,.5);height:1em;bottom:0;position:absolute;left:-1000px;right:-1000px}.ol-timeline .ol-scroll .ol-time{position:absolute;font-size:.7em;color:#999;bottom:0;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-timeline .ol-scroll .ol-time.ol-year{color:#666;z-index:1}.ol-timeline .ol-scroll .ol-time:before{content:"";position:absolute;bottom:1.2em;left:50%;height:500px;border-left:1px solid currentColor}.ol-timeline .ol-scroll .ol-features{position:absolute;top:0;bottom:1em;left:-200px;right:-1000px;margin:0 0 0 200px;overflow:hidden}.ol-timeline .ol-scroll .ol-feature{position:absolute;font-size:.7em;color:#999;top:0;background:#fff;max-width:3em;max-height:2.4em;min-height:1em;line-height:1.2em;border:1px solid #ccc;overflow:hidden;padding:0 .5em 0 0;-webkit-transition:all .3s;transition:all .3s;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-timeline.ol-zoomhover .ol-scroll .ol-feature:hover,.ol-timeline.ol-zoomhover .ol-scroll .ol-feature.ol-select{z-index:1;-webkit-transform:scale(1.2);transform:scale(1.2);background:#eee}.ol-timeline .ol-center-date{display:none;position:absolute;left:50%;height:100%;width:2px;bottom:0;z-index:2;pointer-events:none;-webkit-transform:translateX(-50%);transform:translate(-50%);background-color:red;opacity:.4}.ol-timeline.ol-hasbutton .ol-center-date{left:calc(50% + .75em)}.ol-timeline.ol-pointer .ol-center-date{display:block}.ol-timeline.ol-pointer .ol-center-date:before,.ol-timeline.ol-pointer .ol-center-date:after{content:"";border:.3em solid transparent;border-width:.3em .25em;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-timeline.ol-pointer .ol-center-date:before{border-top-color:red;top:0}.ol-timeline.ol-pointer .ol-center-date:after{border-bottom-color:red;bottom:0}.ol-timeline.ol-interval .ol-center-date{display:block;background-color:transparent;border:0 solid #000;border-width:0 10000px;-webkit-box-sizing:content-box;box-sizing:content-box;opacity:.2}.ol-control.ol-videorec{top:0;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);white-space:nowrap}.ol-control.ol-videorec button{position:relative;display:inline-block;vertical-align:middle}.ol-control.ol-videorec button:before{content:"";position:absolute;top:50%;left:50%;width:.8em;height:.8em;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:currentColor}.ol-control.ol-videorec button.ol-start:before{width:.9em;height:.9em;border-radius:50%;background-color:#c00}.ol-control.ol-videorec button.ol-pause:before{width:.2em;background-color:transparent;-webkit-box-shadow:-.2em 0,.2em 0;box-shadow:-.2em 0,.2em 0}.ol-control.ol-videorec button.ol-resume:before{border-style:solid;background:transparent;width:auto;border-width:.4em 0 .4em .6em;border-color:transparent transparent transparent currentColor;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-control.ol-videorec button.ol-stop,.ol-control.ol-videorec button.ol-pause,.ol-control.ol-videorec button.ol-resume,.ol-control.ol-videorec[data-state=rec] .ol-start,.ol-control.ol-videorec[data-state=pause] .ol-start{display:none}.ol-control.ol-videorec[data-state=rec] .ol-stop,.ol-control.ol-videorec[data-state=pause] .ol-stop,.ol-control.ol-videorec[data-state=rec] .ol-pause,.ol-control.ol-videorec[data-state=pause] .ol-resume{display:inline-block}.ol-control.ol-wmscapabilities{top:.5em;right:2.5em}.ol-touch .ol-control.ol-wmscapabilities{right:3em}.ol-control.ol-wmscapabilities.ol-hidden{display:none}.ol-control.ol-wmscapabilities button:before{content:"+";position:absolute;top:calc(50% - .35em);left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-control.ol-wmscapabilities button:after{content:"";width:.75em;height:.75em;position:absolute;background:transparent;top:calc(50% - .05em);left:50%;-webkit-transform:scaleY(.6) translate(-50%,-50%) rotate(45deg);transform:scaleY(.6) translate(-50%,-50%) rotate(45deg);-webkit-box-shadow:inset -.18em -.18em currentColor,-.4em .1em 0 -.25em currentColor,.1em -.35em 0 -.25em currentColor,.15em .15em currentColor;box-shadow:inset -.18em -.18em currentColor,-.4em .1em 0 -.25em currentColor,.1em -.35em 0 -.25em currentColor,.15em .15em currentColor;border-radius:.1em 0;border:.15em solid transparent;border-width:0 .15em .15em 0}.ol-wmscapabilities .ol-searching{opacity:.5}.ol-wmscapabilities .ol-searching .ol-url:after{content:"";width:.7em;height:.7em;background-color:currentColor;position:absolute;top:6em;border-radius:50%;display:block;left:calc(50% - .35em);-webkit-box-shadow:0 1em currentColor,0 -1em currentColor,1em 0 currentColor,-1em 0 currentColor;box-shadow:0 1em currentColor,0 -1em currentColor,1em 0 currentColor,-1em 0 currentColor;-webkit-animation:ol-wmscapabilities-rotate 2s linear infinite;animation:ol-wmscapabilities-rotate 2s linear infinite}@-webkit-keyframes ol-wmscapabilities-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes ol-wmscapabilities-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ol-wmscapabilities .ol-url input{width:calc(100% - 10em);-webkit-box-sizing:border-box;box-sizing:border-box;min-width:Min(100%,20em)}.ol-wmscapabilities .ol-url select{width:2em;height:100%;padding:1px}.ol-wmscapabilities .ol-url button{width:7.5em;margin-left:.5em}.ol-wmscapabilities .ol-result{display:none;margin-top:.5em}.ol-wmscapabilities .ol-result.ol-visible{display:block}.ol-wmscapabilities .ol-select-list{position:relative;border:1px solid #369;overflow-x:hidden;width:calc(100% - 120px);-webkit-box-sizing:border-box;box-sizing:border-box;max-height:14.5em}.ol-wmscapabilities .ol-select-list div{padding:0 .5em;cursor:pointer;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden}.ol-wmscapabilities .ol-select-list .level-1{padding-left:1em}.ol-wmscapabilities .ol-select-list .level-2{padding-left:1.5em}.ol-wmscapabilities .ol-select-list .level-3{padding-left:2em}.ol-wmscapabilities .ol-select-list .level-4{padding-left:2.5em}.ol-wmscapabilities .ol-select-list .level-5{padding-left:3em}.ol-wmscapabilities .ol-select-list .ol-info{font-style:italic}.ol-wmscapabilities .ol-select-list .ol-title{background-color:#003c881a}.ol-wmscapabilities .ol-select-list div:hover{background-color:#003c8880;color:#fff}.ol-wmscapabilities .ol-select-list div.selected{background-color:#003c88b3;color:#fff}.ol-wmscapabilities .ol-preview{width:100px;float:right;background:rgba(0,60,136,.1);color:#666;padding:0 5px 5px;text-align:center;margin-left:10px}.ol-wmscapabilities .ol-preview.tainted{width:100px;float:right;background:rgba(136,0,60,.1);color:#666;padding:0 5px 5px;text-align:center;margin-left:10px}.ol-wmscapabilities .ol-preview img{width:100%;display:block;background:#fff}.ol-wmscapabilities .ol-legend{max-width:100%;display:none}.ol-wmscapabilities .ol-legend.visible{display:block}.ol-wmscapabilities .ol-buttons{clear:both;text-align:right}.ol-wmscapabilities .ol-data p{margin:0}.ol-wmscapabilities .ol-data p.ol-title{font-weight:700;margin:1em 0 .5em}.ol-wmscapabilities .ol-error{color:#800}.ol-wmscapabilities ul.ol-wmsform{display:none;list-style:none;padding:0}.ol-wmscapabilities ul.ol-wmsform.visible{display:block}.ol-wmscapabilities .ol-wmsform label{display:inline-block;text-align:right;width:calc(40% - .5em);margin-right:.5em}.ol-wmscapabilities .ol-wmsform input{display:inline-block;width:60%;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-wmscapabilities .ol-wmsform input[type=checkbox]{width:auto}.ol-wmscapabilities .ol-wmsform button{float:right;margin:1em 0}.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] input{width:calc(60% - 2em)}.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] button{position:relative;width:2em;height:1.6em;margin:0;vertical-align:middle;color:#444}.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] button:before,.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] button:after{content:"";position:absolute;width:.25em;height:.9em;border:.1em solid currentColor;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) skewY(-15deg);transform:translate(-50%,-50%) skewY(-15deg)}.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] button:after{-webkit-transform:translateX(.4em) translate(-50%,-50%) skewY(15deg);transform:translate(.4em) translate(-50%,-50%) skewY(15deg);-webkit-box-shadow:-.8em .25em;box-shadow:-.8em .25em}.ol-ext-dialog.ol-wmscapabilities form{max-height:calc(85% - 1em);width:600px;min-height:15em;top:15%;-webkit-transform:translate(-50%,0);transform:translate(-50%)}.ol-ext-dialog.ol-wmtscapabilities [data-param=map],.ol-ext-dialog [data-param=style]{display:none}.ol-ext-dialog.ol-wmtscapabilities [data-param=style]{display:list-item}.ol-ext-dialog.ol-wmtscapabilities [data-param=proj],.ol-ext-dialog.ol-wmtscapabilities [data-param=version]{opacity:.6;pointer-events:none}.ol-ext-dialog.ol-wmscapabilities button.ol-wmsform{width:1.8em;text-align:center}.ol-ext-dialog.ol-wmscapabilities button.ol-wmsform:before{content:"+"}.ol-ext-dialog.ol-wmscapabilities .ol-form button.ol-wmsform:before{content:"-"}.ol-ext-dialog.ol-wmscapabilities .ol-form button.ol-load,.ol-ext-dialog.ol-wmscapabilities .ol-form .ol-legend{display:none}.ol-ext-dialog.ol-wmscapabilities .ol-form ul.ol-wmsform{display:block;clear:both}.ol-target-overlay .ol-target{border:1px solid transparent;-webkit-box-shadow:0 0 1px 1px #fff;box-shadow:0 0 1px 1px #fff;display:block;height:20px;width:0}.ol-target-overlay .ol-target:after,.ol-target-overlay .ol-target:before{content:"";border:1px solid #369;-webkit-box-shadow:0 0 1px 1px #fff;box-shadow:0 0 1px 1px #fff;display:block;width:20px;height:0;position:absolute;top:10px;left:-10px}.ol-target-overlay .ol-target:after{-webkit-box-shadow:none;box-shadow:none;height:20px;width:0;top:0px;left:0px}.ol-overlaycontainer .ol-touch-cursor{width:56px;height:56px;margin:6px;border-radius:50%;cursor:pointer;background:rgba(255,255,255,.4);-webkit-box-shadow:inset 0 0 0 5px #369;box-shadow:inset 0 0 0 5px #369}.ol-overlaycontainer .ol-touch-cursor:after{content:"";position:absolute;top:0;left:0;width:50%;height:50%;background:radial-gradient(circle at 100% 100%,transparent,transparent 70%,#369 70%,#369)}.ol-overlaycontainer .ol-touch-cursor .ol-button{position:absolute;color:#369;height:55%;width:55%;border-radius:50%;cursor:pointer;background:rgba(255,255,255,.4);-webkit-box-shadow:inset 0 0 0 3px currentColor;box-shadow:inset 0 0 0 3px currentColor;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0);-webkit-transition:all .5s,opacity 0s,background 0s;transition:all .5s,opacity 0s,background 0s;overflow:hidden}.ol-overlaycontainer .ol-touch-cursor.active.disable .ol-button{opacity:.8;background:rgba(51,102,153,.2)}.ol-overlaycontainer .ol-touch-cursor.active .ol-button{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-0{top:-18%;left:118%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-1{top:50%;left:140%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-2{top:120%;left:120%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-3{top:140%;left:50%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-4{top:118%;left:-18%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-5{top:50%;left:-40%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-6{top:-18%;left:-18%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-7{top:-40%;left:50%}.ol-overlaycontainer .ol-touch-cursor .ol-button:before{content:"";width:1.5em;height:1em;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);line-height:1em;text-align:center}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-add:before,.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-remove:before{content:"\2212";line-height:.95em;font-size:1.375em;font-weight:700}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-add:before{content:"+"}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-x:before{content:"\d7";font-size:1.2em;font-weight:700}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-move:before{content:"\2725";font-size:1.2em}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-check:before{content:"\2713";font-weight:700}.ol-overlaycontainer .ol-touch-cursor.nodrawing .ol-button.ol-button-x,.ol-overlaycontainer .ol-touch-cursor.nodrawing .ol-button.ol-button-remove,.ol-overlaycontainer .ol-touch-cursor.nodrawing .ol-button.ol-button-check{opacity:.8;background:rgba(51,102,153,.2)}.ol-overlaycontainer .ol-touch-cursor .ol-button>div{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-overlaycontainer .ol-touch-cursor .ol-button-type:before{content:"\21ce";font-weight:700}.mapboxgl-canvas:focus{outline:none}.ol-perspective-map{position:absolute;left:50%;top:50%;width:200%;height:200%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-perspective-map .ol-layer{z-index:-1!important}.ol-perspective-map .ol-layers{-webkit-transform:translateY(0) perspective(200px) rotateX(0deg) scaleY(1);transform:translateY(0) perspective(200px) rotateX(0) scaleY(1)}.ol-perspective-map .ol-overlaycontainer,.ol-perspective-map .ol-overlaycontainer-stopevent{width:50%!important;height:50%!important;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-overlay-container .ol-magnify{background:rgba(0,0,0,.5);border:3px solid #369;border-radius:50%;height:150px;width:150px;overflow:hidden;-webkit-box-shadow:5px 5px 5px rgba(0,0,0,.5);box-shadow:5px 5px 5px #00000080;position:relative;z-index:0}.ol-overlay-container .ol-magnify:before{border-radius:50%;-webkit-box-shadow:0 0 40px 2px rgba(0,0,0,.25) inset;box-shadow:0 0 40px 2px #00000040 inset;content:"";display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:1}.ol-overlay-container .ol-magnify:after{border-radius:50%;-webkit-box-shadow:0 0 20px 7px rgba(255,255,255,1);box-shadow:0 0 20px 7px #fff;content:"";display:block;height:0;left:23%;position:absolute;top:20%;width:20%;z-index:1;transform:rotate(-40deg);-webkit-transform:rotate(-40deg)}.ol-popup.anim{visibility:hidden}.ol-popup.anim.visible{visibility:visible}.ol-popup.anim.visible>div{visibility:visible;-webkit-transform:none;transform:none;-webkit-animation:ol-popup_bounce .4s ease 1;animation:ol-popup_bounce .4s ease 1}@-webkit-keyframes ol-popup_bounce{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.1);transform:scale(1.1)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes ol-popup_bounce{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.1);transform:scale(1.1)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}.ol-popup.anim.ol-popup-bottom.ol-popup-left>div{-webkit-transform-origin:0 100%;transform-origin:0 100%}.ol-popup.anim.ol-popup-bottom.ol-popup-right>div{-webkit-transform-origin:100% 100%;transform-origin:100% 100%}.ol-popup.anim.ol-popup-bottom.ol-popup-center>div{-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.ol-popup.anim.ol-popup-top.ol-popup-left>div{-webkit-transform-origin:0 0;transform-origin:0 0}.ol-popup.anim.ol-popup-top.ol-popup-right>div{-webkit-transform-origin:100% 0;transform-origin:100% 0}.ol-popup.anim.ol-popup-top.ol-popup-center>div{-webkit-transform-origin:50% 0;transform-origin:50% 0}.ol-popup.anim.ol-popup-middle.ol-popup-left>div{-webkit-transform-origin:0 50%;transform-origin:0 50%}.ol-popup.anim.ol-popup-middle.ol-popup-right>div{-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.ol-popup{font-size:.9em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ol-popup .ol-popup-content{overflow:hidden;cursor:default;padding:.25em .5em}.ol-popup.hasclosebox .ol-popup-content{margin-right:1.7em}.ol-popup .ol-popup-content:after{clear:both;content:"";display:block;font-size:0;height:0}.ol-popup .anchor{display:block;width:0px;height:0px;background:red;position:absolute;margin:-11px 22px;pointer-events:none}.ol-popup .anchor:after,.ol-popup .anchor:before{position:absolute}.ol-popup-right .anchor:after,.ol-popup-right .anchor:before{right:0}.ol-popup-top .anchor{top:0}.ol-popup-bottom .anchor{bottom:0}.ol-popup-right .anchor{right:0}.ol-popup-left .anchor{left:0}.ol-popup-center .anchor{left:50%;margin-left:0!important}.ol-popup-middle .anchor{top:50%;margin-top:0!important}.ol-popup-center.ol-popup-middle .anchor{display:none}.ol-popup.ol-fixed{margin:0!important;top:.5em!important;right:.5em!important;left:auto!important;bottom:auto!important;-webkit-transform:none!important;transform:none!important}.ol-popup.ol-fixed .anchor{display:none}.ol-popup.ol-fixed.anim>div{-webkit-animation:none;animation:none}.ol-popup .ol-fix{width:1em;height:.9em;background:#fff;position:relative;float:right;margin:.2em;cursor:pointer}.ol-popup .ol-fix:before{content:"";width:.8em;height:.7em;display:block;border:.1em solid #666;border-right-width:.1em;border-right-width:.3em;-webkit-box-sizing:border-box;box-sizing:border-box;margin:.1em}.ol-popup.shadow{-webkit-box-shadow:2px 2px 2px 2px rgba(0,0,0,.5);box-shadow:2px 2px 2px 2px #00000080}.ol-popup .closeBox{background-color:#003c8880;color:#fff;border:0;border-radius:2px;cursor:pointer;float:right;font-size:.9em;font-weight:700;width:1.4em;height:1.4em;margin:5px 5px 0 0;padding:0;position:relative;display:none}.ol-popup.hasclosebox .closeBox{display:block}.ol-popup .closeBox:hover{background-color:#003c88b3}.ol-popup .closeBox:after{content:"\d7";font-size:1.5em;top:50%;left:0;right:0;width:100%;text-align:center;line-height:1em;margin:-.5em 0;position:absolute}.ol-popup.modifytouch{background-color:#eee}.ol-popup.modifytouch .ol-popup-content{padding:0 .25em;font-size:.85em;white-space:nowrap}.ol-popup.modifytouch .ol-popup-content a{text-decoration:none}.ol-popup.tooltips{background-color:#ffa}.ol-popup.tooltips .ol-popup-content{padding:0 .25em;font-size:.85em;white-space:nowrap}.ol-popup.default>div{background-color:#fff;border:1px solid #69f;border-radius:5px}.ol-popup.default{margin:-11px 0;-webkit-transform:translate(0,-22px);transform:translateY(-22px)}.ol-popup-top.ol-popup.default{margin:11px 0;-webkit-transform:none;transform:none}.ol-popup-left.default{margin:-11px -22px;-webkit-transform:translate(0,-22px);transform:translateY(-22px)}.ol-popup-top.ol-popup-left.default{margin:11px -22px;-webkit-transform:none;transform:none}.ol-popup-right.default{margin:-11px 22px;-webkit-transform:translate(44px,-22px);transform:translate(44px,-22px)}.ol-popup-top.ol-popup-right.default{margin:11px 22px;-webkit-transform:translate(44px,0);transform:translate(44px)}.ol-popup-middle.default{margin:0 10px;-webkit-transform:none;transform:none}.ol-popup-middle.ol-popup-right.default{margin:0 -10px;-webkit-transform:translate(-20px,0);transform:translate(-20px)}.ol-popup.default .anchor{color:#69f}.ol-popup.default .anchor:after,.ol-popup.default .anchor:before{content:"";border-color:currentColor transparent;border-style:solid;border-width:11px;margin:0 -11px}.ol-popup.default .anchor:after{border-color:#fff transparent;border-width:11px;margin:2px -11px}.ol-popup-top.default .anchor:before,.ol-popup-top.default .anchor:after{border-top:0;top:0}.ol-popup-bottom.default .anchor:before,.ol-popup-bottom.default .anchor:after{border-bottom:0;bottom:0}.ol-popup-middle.default .anchor:before{margin:-11px -33px;border-color:transparent currentColor}.ol-popup-middle.default .anchor:after{margin:-11px -31px;border-color:transparent #fff}.ol-popup-middle.ol-popup-left.default .anchor:before,.ol-popup-middle.ol-popup-left.default .anchor:after{border-left:0}.ol-popup-middle.ol-popup-right.default .anchor:before,.ol-popup-middle.ol-popup-right.default .anchor:after{border-right:0}.ol-popup.placemark{color:#c00;margin:-.65em 0;-webkit-transform:translate(0,-1.3em);transform:translateY(-1.3em)}.ol-popup.placemark>div{position:relative;font-size:15px;background-color:#fff;border:0;-webkit-box-shadow:inset 0 0 0 .45em;box-shadow:inset 0 0 0 .45em;width:2em;height:2em;border-radius:50%;min-width:unset;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-popup.placemark .ol-popup-content{overflow:hidden;cursor:default;text-align:center;padding:.25em 0;width:1em;height:1em;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);line-height:1em}.ol-popup.placemark .anchor{margin:0}.ol-popup.placemark .anchor:before{content:"";margin:-.5em;background:transparent;width:1em;height:.5em;border-radius:50%;-webkit-box-shadow:0 1em .5em rgba(0,0,0,.5);box-shadow:0 1em .5em #00000080}.ol-popup.placemark .anchor:after{content:"";border-color:currentColor transparent;border-style:solid;border-width:1em .7em 0;margin:-.75em -.7em;bottom:0}.ol-popup.placemark.shield>div{border-radius:.2em}.ol-popup.placemark.shield .anchor:after{border-width:.8em 1em 0;margin:-.7em -1em}.ol-popup.placemark.blazon>div{border-radius:.2em}.ol-popup.placemark.pushpin{margin:-2.2em 0;-webkit-transform:translate(0,-4em);transform:translateY(-4em)}.ol-popup.placemark.pushpin>div{border-radius:0;background:transparent!important;-webkit-box-shadow:inset 2em 0 currentColor;box-shadow:inset 2em 0 currentColor;width:1.1em}.ol-popup.placemark.pushpin>div:before{content:"";width:1.3em;height:1.5em;border-style:solid;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-color:currentColor transparent;border-width:.3em .5em .5em;pointer-events:none}.ol-popup.placemark.needle{margin:-2em 0;-webkit-transform:translate(0,-4em);transform:translateY(-4em)}.ol-popup.placemark.pushpin .anchor,.ol-popup.placemark.needle .anchor{margin:-1.2em}.ol-popup.placemark.pushpin .anchor:after,.ol-popup.placemark.needle .anchor:after{border-style:solid;border-width:2em .15em 0;margin:-.55em -.2em;width:.1em}.ol-popup.placemark.pushpin .anchor:before,.ol-popup.placemark.needle .anchor:before{margin:-.75em -.5em}.ol-popup.placemark.flagv{margin:-2em 1em;-webkit-transform:translate(0,-4em);transform:translateY(-4em)}.ol-popup.placemark.flagv>div{border-radius:0;-webkit-box-shadow:none;box-shadow:none;background-color:transparent}.ol-popup.placemark.flagv>div:before{content:"";border:1em solid transparent;position:absolute;border-left:2em solid currentColor;pointer-events:none}.ol-popup.placemark.flagv .anchor{margin:-1.4em}.ol-popup.placemark.flag{margin:-2em 1em;-webkit-transform:translate(0,-4em);transform:translateY(-4em)}.ol-popup.placemark.flag>div{border-radius:0;-webkit-transform-origin:0% 150%!important;transform-origin:0% 150%!important}.ol-popup.placemark.flag .anchor{margin:-1.4em}.ol-popup.placemark.flagv .anchor:after,.ol-popup.placemark.flag .anchor:after{border-style:solid;border-width:2em .15em 0;margin:-.55em -1em;width:.1em}.ol-popup.placemark.flagv .anchor:before,.ol-popup.placemark.flag .anchor:before{margin:-.75em -1.25em}.ol-popup.placemark.flag.finish{margin:-2em 1em}.ol-popup.placemark.flag.finish>div{background-image:linear-gradient(45deg,currentColor 25%,transparent 25%,transparent 75%,currentColor 75%,currentColor),linear-gradient(45deg,currentColor 25%,transparent 25%,transparent 75%,currentColor 75%,currentColor);background-size:1em 1em;background-position:.5em 0,0 .5em;-webkit-box-shadow:inset 0 0 0 .25em;box-shadow:inset 0 0 0 .25em}.ol-popup.black .closeBox{background-color:#00000080;border-radius:5px;color:#f80}.ol-popup.black .closeBox:hover{background-color:#000000b3;color:#da2}.ol-popup.black{margin:-20px 0;-webkit-transform:translate(0,-40px);transform:translateY(-40px)}.ol-popup.black>div{background-color:#0009;border-radius:5px;color:#fff}.ol-popup-top.ol-popup.black{margin:20px 0;-webkit-transform:none;transform:none}.ol-popup-left.black{margin:-20px -22px;-webkit-transform:translate(0,-40px);transform:translateY(-40px)}.ol-popup-top.ol-popup-left.black{margin:20px -22px;-webkit-transform:none;transform:none}.ol-popup-right.black{margin:-20px 22px;-webkit-transform:translate(44px,-40px);transform:translate(44px,-40px)}.ol-popup-top.ol-popup-right.black{margin:20px 22px;-webkit-transform:translate(44px,0);transform:translate(44px)}.ol-popup-middle.black{margin:0 11px;-webkit-transform:none;transform:none}.ol-popup-left.ol-popup-middle.black{-webkit-transform:none;transform:none}.ol-popup-right.ol-popup-middle.black{margin:0 -11px;-webkit-transform:translate(-22px,0);transform:translate(-22px)}.ol-popup.black .anchor{margin:-20px 11px;color:#0009}.ol-popup.black .anchor:before{content:"";border-color:currentColor transparent;border-style:solid;border-width:20px 11px}.ol-popup-top.black .anchor:before{border-top:0;top:0}.ol-popup-bottom.black .anchor:before{border-bottom:0;bottom:0}.ol-popup-middle.black .anchor:before{margin:-20px -22px;border-color:transparent currentColor}.ol-popup-middle.ol-popup-left.black .anchor:before{border-left:0}.ol-popup-middle.ol-popup-right.black .anchor:before{border-right:0}.ol-popup-center.black .anchor:before{margin:0 -10px}.ol-popup.tips .closeBox{background-color:red;border-radius:50%;color:#fff;width:1.2em;height:1.2em}.ol-popup.tips .closeBox:hover{background-color:#f40}.ol-popup.tips{margin:-20px 0;-webkit-transform:translate(0,-40px);transform:translateY(-40px)}.ol-popup.tips>div{background-color:#cea;border:5px solid #ad7;border-radius:5px;color:#333}.ol-popup-top.ol-popup.tips{margin:20px 0;-webkit-transform:none;transform:none}.ol-popup-left.tips{margin:-20px -22px;-webkit-transform:translate(0,-40px);transform:translateY(-40px)}.ol-popup-top.ol-popup-left.tips{margin:20px -22px;-webkit-transform:none;transform:none}.ol-popup-right.tips{margin:-20px 22px;-webkit-transform:translate(44px,-40px);transform:translate(44px,-40px)}.ol-popup-top.ol-popup-right.tips{margin:20px 22px;-webkit-transform:translate(44px,0);transform:translate(44px)}.ol-popup-middle.tips{margin:0;-webkit-transform:none;transform:none}.ol-popup-left.ol-popup-middle.tips{margin:0 22px;-webkit-transform:none;transform:none}.ol-popup-right.ol-popup-middle.tips{margin:0 -22px;-webkit-transform:translate(-44px,0);transform:translate(-44px)}.ol-popup.tips .anchor{margin:-18px 22px;color:#ad7}.ol-popup.tips .anchor:before{content:"";border-color:currentColor transparent;border-style:solid;border-width:20px 11px}.ol-popup-top.tips .anchor:before{border-top:0;top:0}.ol-popup-bottom.tips .anchor:before{border-bottom:0;bottom:0}.ol-popup-center.tips .anchor:before{border-width:20px 6px;margin:0 -6px}.ol-popup-left.tips .anchor:before{border-left:0;margin-left:0}.ol-popup-right.tips .anchor:before{border-right:0;margin-right:0}.ol-popup-middle.tips .anchor:before{margin:-6px -41px;border-color:transparent currentColor;border-width:6px 20px}.ol-popup-middle.ol-popup-left.tips .anchor:before{border-left:0}.ol-popup-middle.ol-popup-right.tips .anchor:before{border-right:0}.ol-popup.warning .closeBox{background-color:red;border-radius:50%;color:#fff;font-size:.83em}.ol-popup.warning .closeBox:hover{background-color:#f40}.ol-popup.warning{background-color:#fd0;border-radius:3px;border:4px dashed #f00;color:#900;margin:-28px 10px;-webkit-transform:translate(0,-56px);transform:translateY(-56px)}.ol-popup-top.ol-popup.warning{margin:28px 10px;-webkit-transform:none;transform:none}.ol-popup-left.warning{margin:-28px -22px;-webkit-transform:translate(0,-56px);transform:translateY(-56px)}.ol-popup-top.ol-popup-left.warning{margin:28px -22px;-webkit-transform:none;transform:none}.ol-popup-right.warning{margin:-28px 22px;-webkit-transform:translate(44px,-56px);transform:translate(44px,-56px)}.ol-popup-top.ol-popup-right.warning{margin:28px 22px;-webkit-transform:translate(44px,0);transform:translate(44px)}.ol-popup-middle.warning{margin:0;-webkit-transform:none;transform:none}.ol-popup-left.ol-popup-middle.warning{margin:0 22px;-webkit-transform:none;transform:none}.ol-popup-right.ol-popup-middle.warning{margin:0 -22px;-webkit-transform:translate(-44px,0);transform:translate(-44px)}.ol-popup.warning .anchor{margin:-33px 7px}.ol-popup.warning .anchor:before{content:"";border-color:#f00 transparent;border-style:solid;border-width:30px 11px}.ol-popup-top.warning .anchor:before{border-top:0;top:0}.ol-popup-bottom.warning .anchor:before{border-bottom:0;bottom:0}.ol-popup-center.warning .anchor:before{margin:0 -21px}.ol-popup-middle.warning .anchor:before{margin:-10px -33px;border-color:transparent #f00;border-width:10px 22px}.ol-popup-middle.ol-popup-left.warning .anchor:before{border-left:0}.ol-popup-middle.ol-popup-right.warning .anchor:before{border-right:0}.ol-popup .ol-popupfeature table{width:100%}.ol-popup .ol-popupfeature table td{max-width:25em;overflow:hidden;text-overflow:ellipsis}.ol-popup .ol-popupfeature table td img{max-width:100px;max-height:100px}.ol-popup .ol-popupfeature tr:nth-child(2n+1){background-color:#eee}.ol-popup .ol-popupfeature .ol-zoombt{border:0;width:2em;height:2em;display:inline-block;color:#003c8880;position:relative;background:transparent;outline:none}.ol-popup .ol-popupfeature .ol-zoombt:before{content:"";position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;width:1em;height:1em;background-color:transparent;border:.17em solid currentColor;border-radius:100%;top:.3em;left:.3em}.ol-popup .ol-popupfeature .ol-zoombt:after{content:"";position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;top:1.35em;left:1.15em;border-width:.1em .3em;border-style:solid;border-radius:.03em;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-shadow:-.2em 0 0 -.04em;box-shadow:-.2em 0 0 -.04em}.ol-popup .ol-popupfeature .ol-count{float:right;margin:.25em 0}.ol-popup .ol-popupfeature .ol-prev,.ol-popup .ol-popupfeature .ol-next{border-style:solid;border-color:transparent rgba(0,60,136,.5);border-width:.5em 0 .5em .5em;display:inline-block;vertical-align:bottom;margin:0 .5em;cursor:pointer}.ol-popup .ol-popupfeature .ol-prev{border-width:.5em .5em .5em 0}.ol-popup.tooltips.black{background-color:transparent}.ol-popup.tooltips.black>div{-webkit-transform:scaleY(1.3);transform:scaleY(1.3);padding:.2em .5em;background-color:#00000080}.ol-popup-middle.tooltips.black .anchor:before{border-width:5px 10px;margin:-5px -21px}.ol-popup-center.ol-popup-middle,.ol-popup-top.ol-popup-left.ol-fixPopup,.ol-popup-top.ol-popup-right.ol-fixPopup,.ol-popup.ol-fixPopup{margin:0}.ol-miniscroll{position:relative}.ol-miniscroll:hover .ol-scroll{opacity:.5;-webkit-transition:opacity 1s;transition:opacity 1s}.ol-miniscroll .ol-scroll{-ms-touch-action:none;touch-action:none;position:absolute;right:0px;width:9px;height:auto;max-height:100%;opacity:0;border-radius:9px;-webkit-transition:opacity 1s .5s;transition:opacity 1s .5s;overflow:hidden;z-index:1}.ol-miniscroll .ol-scroll>div{-ms-touch-action:none;touch-action:none;position:absolute;top:0;right:0px;width:9px;height:9px;-webkit-box-shadow:inset 10px 0 currentColor;box-shadow:inset 10px 0 currentColor;border-radius:9px/12px;border:2px solid transparent;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.ol-miniscroll .ol-scroll.ol-100pc{opacity:0}.ol-viewport canvas.ol-fixedoverlay{position:absolute;top:0;left:0;width:100%;height:100%}.ol-ext-toggle-switch{cursor:pointer;position:relative}.ol-ext-toggle-switch input[type=radio],.ol-ext-toggle-switch input[type=checkbox]{display:none}.ol-ext-toggle-switch span{color:#003c8880;position:relative;cursor:pointer;background-color:#ccc;-webkit-transition:.4s,background-color 0s,border-color 0s;transition:.4s,background-color 0s,border-color 0s;width:1.6em;height:1em;display:inline-block;border-radius:1em;font-size:1.3em;vertical-align:middle;margin:-.15em .2em .15em}.ol-ext-toggle-switch span:before{position:absolute;content:"";height:1em;width:1em;left:0;top:50%;background-color:#fff;-webkit-transition:.4s;transition:.4s;border-radius:1em;display:block;-webkit-transform:translateY(-50%);transform:translateY(-50%);border:2px solid #ccc;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-ext-toggle-switch:hover span{background-color:#999}.ol-ext-toggle-switch:hover span:before{border-color:#999}.ol-ext-toggle-switch input:checked+span{background-color:currentColor}.ol-ext-toggle-switch input:checked+span:before{-webkit-transform:translate(.6em,-50%);transform:translate(.6em,-50%);border-color:currentColor}.ol-ext-check{position:relative;display:inline-block}.ol-ext-check input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.ol-ext-check span{color:#003c8880;position:relative;display:inline-block;width:1em;height:1em;margin:-.1em .5em .1em;background-color:#ccc;vertical-align:middle}.ol-ext-check:hover span{background-color:#999}.ol-ext-checkbox input:checked~span{background-color:currentColor}.ol-ext-checkbox input:checked~span:before{content:"";position:absolute;width:.5em;height:.8em;top:50%;left:50%;-webkit-transform:translateY(-.1em) translate(-50%,-50%) rotate(45deg);transform:translateY(-.1em) translate(-50%,-50%) rotate(45deg);-webkit-box-shadow:inset -.2em -.2em #fff;box-shadow:inset -.2em -.2em #fff}.ol-ext-radio span{width:1.1em;height:1.1em;border-radius:50%}.ol-ext-radio:hover input:checked~span{background-color:#ccc}.ol-ext-radio input:checked~span:before{content:"";position:absolute;width:50%;height:50%;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:50%;background-color:currentColor}.ol-collection-list{margin:0;padding:0;list-style:none}.ol-collection-list li{position:relative;padding:0 2em 0 1em}.ol-collection-list li:hover{background-color:#003c8833}.ol-collection-list li.ol-select{background-color:#003c8880;color:#fff}.ol-collection-list li .ol-order{position:absolute;-ms-touch-action:none;touch-action:none;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:2em;height:100%;cursor:n-resize}.ol-collection-list li .ol-order:before{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:18px;height:2px;background-color:currentColor;-webkit-box-shadow:0 5px,0 -5px;box-shadow:0 5px,0 -5px;border-radius:2px}.ol-ext-colorpicker.ol-popup{width:2em;height:1.5em;background-color:transparent;background-image:linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%),linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%);background-size:10px 10px;background-position:0 -1px,5px 4px}.ol-ext-colorpicker .ol-tabbar{background-color:#eee;border-bottom:1px solid #999;display:none}.ol-ext-colorpicker.ol-tab .ol-tabbar{display:block}.ol-ext-colorpicker .ol-tabbar>div{display:inline-block;background-color:#fff;padding:0 .5em;border:1px solid #999;border-radius:2px 2px 0 0;position:relative;top:1px;cursor:pointer}.ol-ext-colorpicker .ol-tabbar>div:nth-child(1){border-bottom-color:#fff}.ol-ext-colorpicker.ol-picker-tab .ol-tabbar>div:nth-child(1){border-bottom-color:#999}.ol-ext-colorpicker.ol-picker-tab .ol-tabbar>div:nth-child(2){border-bottom-color:#fff}.ol-ext-colorpicker.ol-popup.ol-tab .ol-popup{width:180px}.ol-ext-colorpicker.ol-tab .ol-palette{margin:0 10px}.ol-ext-colorpicker.ol-tab .ol-container{display:none}.ol-ext-colorpicker.ol-tab.ol-picker-tab .ol-container{display:block}.ol-ext-colorpicker.ol-tab.ol-picker-tab .ol-palette{display:none}.ol-ext-colorpicker.ol-popup .ol-popup{width:340px}.ol-ext-colorpicker.ol-popup .ol-vignet{content:"";position:absolute;width:100%;height:100%;top:0;left:0;border:0;background-color:currentColor;pointer-events:none}.ol-ext-colorpicker .ol-container{position:relative;display:inline-block;vertical-align:top}.ol-ext-colorpicker .ol-cursor{pointer-events:none}.ol-ext-colorpicker .ol-picker{position:relative;cursor:crosshair;width:150px;height:150px;border:5px solid #fff;background-color:currentColor;background-image:-webkit-gradient(linear,left top,left bottom,from(0),color-stop(#000),to(transparent)),-webkit-gradient(linear,left top,right top,from(#fff),to(transparent));background-image:linear-gradient(0,#000,transparent),linear-gradient(90deg,#fff,transparent)}.ol-ext-colorpicker .ol-picker .ol-cursor{position:absolute;left:50%;top:50%;border:1px solid rgba(0,0,0,.7);-webkit-box-shadow:0 0 0 1px rgba(255,255,255,.7);box-shadow:0 0 0 1px #ffffffb3;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:10px;height:10px;border-radius:50%}.ol-ext-colorpicker .ol-slider{position:relative;cursor:crosshair;background-color:#fff;height:10px;width:150px;margin:5px 0 10px;border:5px solid #fff;border-width:0 5px;background-image:linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%),linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%);background-size:10px 10px;background-position:0 -1px,5px 4px}.ol-ext-colorpicker .ol-slider>div{width:100%;height:100%;background-image:linear-gradient(45deg,transparent,#fff);pointer-events:none}.ol-ext-colorpicker .ol-slider .ol-cursor{position:absolute;width:4px;height:12px;border:1px solid #000;top:50%;left:0;background:transparent;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-ext-colorpicker .ol-tint{position:absolute;cursor:crosshair;width:10px;height:150px;border:5px solid #fff;border-width:5px 0;-webkit-box-sizing:border;box-sizing:border;top:0;right:5px;background-image:-webkit-gradient(linear,left top,left bottom,from(0),color-stop(#f00),color-stop(#f0f),color-stop(#00f),color-stop(#0ff),color-stop(#0f0),color-stop(#ff0),to(#f00));background-image:linear-gradient(0,#f00,#f0f,#00f,#0ff,#0f0,#ff0,#f00)}.ol-ext-colorpicker .ol-tint .ol-cursor{position:absolute;top:0;left:50%;border:1px solid #000;height:4px;width:12px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-ext-colorpicker .ol-clear{position:absolute;border:2px solid #999;right:4px;top:163px;width:10px;height:10px}.ol-ext-colorpicker .ol-clear:before,.ol-ext-colorpicker .ol-clear:after{content:"";position:absolute;width:15px;height:2px;background-color:#999;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.ol-ext-colorpicker .ol-clear:after{-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-ext-colorpicker.ol-nopacity .ol-slider,.ol-ext-colorpicker.ol-nopacity .ol-clear,.ol-ext-colorpicker.ol-nopacity .ol-alpha{display:none}.ol-ext-colorpicker .ol-rgb{position:relative;padding:5px;width:170px;display:none}.ol-ext-colorpicker .ol-rgb input{width:25%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 0 0 2px;border:1px solid #999;border-radius:2px;font-size:13px}.ol-ext-colorpicker .ol-rgb input:nth-child(1){background-color:#ff00001a}.ol-ext-colorpicker .ol-rgb input:nth-child(2){background-color:#00ff001a}.ol-ext-colorpicker .ol-rgb input:nth-child(3){background-color:#0000ff1f}.ol-ext-colorpicker button,.ol-ext-colorpicker .ol-txt-color{font-size:13px;margin:0 5px 5px;text-align:center;width:170px;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0;border:1px solid #999;border-radius:2px;display:block}.ol-ext-colorpicker button{background-color:#eee}.ol-ext-colorpicker button:hover{background-color:#e9e9e9}.ol-ext-colorpicker .ol-txt-color.ol-error{background-color:#f003}.ol-ext-colorpicker .ol-palette{padding:2px;display:inline-block;width:152px}.ol-ext-colorpicker .ol-palette>div{width:15px;height:15px;display:inline-block;background-image:linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%),linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%);background-size:10px 10px;background-position:0 0,5px 5px;margin:2px;-webkit-box-shadow:0 0 2px 0px #666;box-shadow:0 0 2px #666;border-radius:1px;cursor:pointer;position:relative}.ol-ext-colorpicker .ol-palette>div:before{content:"";position:absolute;background-color:currentColor;width:100%;height:100%}.ol-ext-colorpicker .ol-palette>div.ol-select:after{content:"";position:absolute;width:6px;height:12px;-webkit-box-shadow:1px 1px #fff,2px 2px #000;box-shadow:1px 1px #fff,2px 2px #000;top:30%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.ol-ext-colorpicker .ol-palette>div:hover{-webkit-box-shadow:0 0 2px 1px #d90;box-shadow:0 0 2px 1px #d90}.ol-ext-colorpicker .ol-palette hr{margin:0}.ol-input-popup{display:inline-block;position:relative}.ol-input-popup .ol-popup{position:absolute;-webkit-box-shadow:1px 1px 3px 1px #999;box-shadow:1px 1px 3px 1px #999;background-color:#fff;z-index:1;display:none;left:-5px;padding:0;margin:0;list-style:none;white-space:nowrap}.ol-input-popup.ol-hover:hover .ol-popup,.ol-input-popup.ol-focus .ol-popup{display:block}.ol-input-popup.ol-right .ol-popup{left:auto;right:-5px}.ol-input-popup.ol-middle .ol-popup{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ol-input-popup .ol-popup li{position:relative;padding:10px 5px}.ol-input-popup li:hover,.ol-input-popup li.ol-selected{background-color:#ccc}.ol-input-popup.ol-fixed:hover .ol-popup,.ol-input-popup.ol-fixed .ol-popup{position:relative;left:0;-webkit-box-shadow:unset;box-shadow:unset;background-color:transparent;display:inline-block;vertical-align:middle}.ol-input-popup.ol-fixed.ol-left .ol-popup{float:left}.ol-input-popup>div{position:relative;display:inline-block;vertical-align:middle;border-radius:2px;border:1px solid #999;padding:3px 20px 3px 10px}.ol-input-popup>div:before{position:absolute;content:"";right:5px;top:50%;border:5px solid transparent;border-top:5px solid #999}.ol-ext-popup-input{display:inline-block;vertical-align:top}.ol-ext-popup-input.ol-popup{position:relative;width:2em;height:1.5em;display:inline-block;border:3px solid #fff;border-right-width:1em;-webkit-box-shadow:0 0 2px 1px #666;box-shadow:0 0 2px 1px #666;border-radius:2px;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.ol-ext-popup-input.ol-popup:after{content:"";position:absolute;border:.5em solid #aaa;border-width:.5em .3em 0;border-color:#999 transparent;right:-.8em;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);pointer-events:none}.ol-ext-popup-input *{-webkit-box-sizing:content-box;box-sizing:content-box}.ol-ext-popup-input.ol-popup .ol-popup{position:absolute;top:100%;min-width:3em;min-height:3em;left:0;-webkit-box-shadow:1px 1px 3px 1px #999;box-shadow:1px 1px 3px 1px #999;display:block;background-color:#fff;display:none;z-index:1}.ol-ext-popup-input.ol-popup .ol-popup.ol-visible{display:block}.ol-ext-popup-input.ol-popup-fixed .ol-popup{position:fixed;top:auto;left:auto}.ol-input-popup.ol-size li{display:table-cell;height:100%;padding:5px;vertical-align:middle}.ol-input-popup.ol-size li>*{background-color:#369;border-radius:50%;vertical-align:middle;width:1em;height:1em}.ol-input-popup.ol-size li>.ol-option-0{position:relative;width:1em;height:1em;border:2px solid currentColor;color:#aaa;background-color:transparent;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-input-popup.ol-size li>*:before{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-input-popup.ol-size li>.ol-option-0:before{content:"";width:1em;height:2px;background-color:#aaa;-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-input-slider{display:inline-block;position:relative}.ol-input-slider .ol-popup{position:absolute;-webkit-box-shadow:1px 1px 3px 1px #999;box-shadow:1px 1px 3px 1px #999;background-color:#fff;z-index:1;display:none;left:-5px}.ol-input-slider.ol-right .ol-popup{left:auto;right:-5px}.ol-input-slider.ol-hover:hover .ol-popup,.ol-input-slider.ol-focus .ol-popup{display:block;white-space:nowrap}.ol-input-slider.ol-hover:hover .ol-popup>*,.ol-input-slider.ol-focus .ol-popup>*{display:inline-block;vertical-align:middle}.ol-input-slider.ol-hover:hover .ol-popup>.ol-before,.ol-input-slider.ol-focus .ol-popup>.ol-before{margin-left:10px}.ol-input-slider.ol-hover:hover .ol-popup>.ol-after,.ol-input-slider.ol-focus .ol-popup>.ol-after{margin-right:10px}.ol-input-slider .ol-slider{position:relative;width:100px;height:3px;border:0 solid transparent;border-width:10px 15px;-webkit-box-shadow:inset 0 0 0 1px #999;box-shadow:inset 0 0 0 1px #999;-webkit-box-sizing:content-box;box-sizing:content-box;cursor:pointer}.ol-input-slider .ol-slider>.ol-cursor{position:absolute;width:5px;height:10px;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#999;pointer-events:none}.ol-input-slider.ol-fixed:hover .ol-popup,.ol-input-slider.ol-fixed .ol-popup{position:relative;left:0;-webkit-box-shadow:unset;box-shadow:unset;background-color:transparent;display:inline-block;vertical-align:middle}.ol-input-slider.ol-fixed.ol-left .ol-popup{float:left}.ol-input-slider.ol-size .ol-slider{height:auto;-webkit-box-shadow:none;box-shadow:none}.ol-input-slider.ol-size .ol-slider .ol-back{width:0;color:#aaa;border:0 solid transparent;border-width:0 0 20px 100px;border-color:currentColor transparent;pointer-events:none}.ol-input-slider.ol-size .ol-slider>.ol-cursor{width:2px;height:calc(100% + 4px);border-width:5px 3px;border-style:solid;border-color:#f00 transparent;-o-border-image:initial;border-image:initial;background-color:transparent;-webkit-box-shadow:inset 3px 0px #f00;box-shadow:inset 3px 0 red}.ol-input-popup.ol-width li{padding:5px}.ol-input-popup.ol-width li>*{background-color:#369;width:100px;height:1em}.ol-input-popup.ol-width li>.ol-option-0{position:relative;height:1px;background-image:linear-gradient(90deg,#aaa 2px,transparent 2px);background-color:transparent;background-size:4px}/*! * ol-contextmenu - v4.1.0 * https://github.com/jonataswalker/ol-contextmenu * Built: Sat Aug 15 2020 10:43:26 GMT-0300 (Brasilia Standard Time) diff --git a/dist/assets/index-e189e6d8.js b/dist/assets/index-ed2bec8f.js similarity index 72% rename from dist/assets/index-e189e6d8.js rename to dist/assets/index-ed2bec8f.js index 6ca6963..f368207 100644 --- a/dist/assets/index-e189e6d8.js +++ b/dist/assets/index-ed2bec8f.js @@ -1,4 +1,4 @@ -var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function t(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=t(i);fetch(i.href,a)}})();function T1(r,e){const t=Object.create(null),n=r.split(",");for(let i=0;i!!t[i.toLowerCase()]:i=>!!t[i]}const L9="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",O9=T1(L9);function Mg(r){if(we(r)){const e={};for(let t=0;t{if(t){const n=t.split(M9);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Ng(r){let e="";if(Pn(r))e=r;else if(we(r))for(let t=0;tIu(t,e))}const tu=r=>Pn(r)?r:r==null?"":we(r)||hn(r)&&(r.toString===M2||!je(r.toString))?JSON.stringify(r,R2,2):String(r),R2=(r,e)=>e&&e.__v_isRef?R2(r,e.value):ep(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[n,i])=>(t[`${n} =>`]=i,t),{})}:wh(e)?{[`Set(${e.size})`]:[...e.values()]}:hn(e)&&!we(e)&&!N2(e)?String(e):e,nn={},tp=[],Ts=()=>{},G9=()=>!1,k9=/^on[^a-z]/,Pg=r=>k9.test(r),Wb=r=>r.startsWith("onUpdate:"),Kn=Object.assign,qb=(r,e)=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)},$9=Object.prototype.hasOwnProperty,br=(r,e)=>$9.call(r,e),we=Array.isArray,ep=r=>Ug(r)==="[object Map]",wh=r=>Ug(r)==="[object Set]",GO=r=>Ug(r)==="[object Date]",je=r=>typeof r=="function",Pn=r=>typeof r=="string",Jv=r=>typeof r=="symbol",hn=r=>r!==null&&typeof r=="object",Zb=r=>hn(r)&&je(r.then)&&je(r.catch),M2=Object.prototype.toString,Ug=r=>M2.call(r),V9=r=>Ug(r).slice(8,-1),N2=r=>Ug(r)==="[object Object]",Jb=r=>Pn(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,Iv=T1(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),x1=r=>{const e=Object.create(null);return t=>e[t]||(e[t]=r(t))},j9=/-(\w)/g,so=x1(r=>r.replace(j9,(e,t)=>t?t.toUpperCase():"")),K9=/\B([A-Z])/g,Wo=x1(r=>r.replace(K9,"-$1").toLowerCase()),Dg=x1(r=>r.charAt(0).toUpperCase()+r.slice(1)),Fv=x1(r=>r?`on${Dg(r)}`:""),_p=(r,e)=>!Object.is(r,e),rp=(r,e)=>{for(let t=0;t{Object.defineProperty(r,e,{configurable:!0,enumerable:!1,value:t})},Al=r=>{const e=parseFloat(r);return isNaN(e)?r:e};let kO;const z9=()=>kO||(kO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let xo;class tI{constructor(e=!1){this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=xo,!e&&xo&&(this.index=(xo.scopes||(xo.scopes=[])).push(this)-1)}run(e){if(this.active){const t=xo;try{return xo=this,e()}finally{xo=t}}}on(){xo=this}off(){xo=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const e=new Set(r);return e.w=0,e.n=0,e},U2=r=>(r.w&Fu)>0,D2=r=>(r.n&Fu)>0,q9=({deps:r})=>{if(r.length)for(let e=0;e{const{deps:e}=r;if(e.length){let t=0;for(let n=0;n{(u==="length"||u>=A)&&s.push(l)})}else switch(t!==void 0&&s.push(o.get(t)),e){case"add":we(r)?Jb(t)&&s.push(o.get("length")):(s.push(o.get($c)),ep(r)&&s.push(o.get(vT)));break;case"delete":we(r)||(s.push(o.get($c)),ep(r)&&s.push(o.get(vT)));break;case"set":ep(r)&&s.push(o.get($c));break}if(s.length===1)s[0]&&gT(s[0]);else{const A=[];for(const l of s)l&&A.push(...l);gT(eI(A))}}function gT(r,e){const t=we(r)?r:[...r];for(const n of t)n.computed&&VO(n);for(const n of t)n.computed||VO(n)}function VO(r,e){(r!==Es||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}const e$=T1("__proto__,__v_isRef,__isVue"),G2=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(Jv)),r$=b1(),n$=b1(!1,!0),i$=b1(!0),a$=b1(!0,!0),jO=o$();function o$(){const r={};return["includes","indexOf","lastIndexOf"].forEach(e=>{r[e]=function(...t){const n=Lr(this);for(let a=0,o=this.length;a{r[e]=function(...t){Qp();const n=Lr(this)[e].apply(this,t);return Hp(),n}}),r}function b1(r=!1,e=!1){return function(n,i,a){if(i==="__v_isReactive")return!r;if(i==="__v_isReadonly")return r;if(i==="__v_isShallow")return e;if(i==="__v_raw"&&a===(r?e?Y2:z2:e?K2:j2).get(n))return n;const o=we(n);if(!r&&o&&br(jO,i))return Reflect.get(jO,i,a);const s=Reflect.get(n,i,a);return(Jv(i)?G2.has(i):e$(i))||(r||Mo(n,"get",i),e)?s:Wi(s)?o&&Jb(i)?s:s.value:hn(s)?r?nI(s):Hg(s):s}}const s$=k2(),A$=k2(!0);function k2(r=!1){return function(t,n,i,a){let o=t[n];if(ih(o)&&Wi(o)&&!Wi(i))return!1;if(!r&&(!tg(i)&&!ih(i)&&(o=Lr(o),i=Lr(i)),!we(t)&&Wi(o)&&!Wi(i)))return o.value=i,!0;const s=we(t)&&Jb(n)?Number(n)r,I1=r=>Reflect.getPrototypeOf(r);function lm(r,e,t=!1,n=!1){r=r.__v_raw;const i=Lr(r),a=Lr(e);t||(e!==a&&Mo(i,"get",e),Mo(i,"get",a));const{has:o}=I1(i),s=n?rI:t?oI:eg;if(o.call(i,e))return s(r.get(e));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(e)}function um(r,e=!1){const t=this.__v_raw,n=Lr(t),i=Lr(r);return e||(r!==i&&Mo(n,"has",r),Mo(n,"has",i)),r===i?t.has(r):t.has(r)||t.has(i)}function cm(r,e=!1){return r=r.__v_raw,!e&&Mo(Lr(r),"iterate",$c),Reflect.get(r,"size",r)}function KO(r){r=Lr(r);const e=Lr(this);return I1(e).has.call(e,r)||(e.add(r),ll(e,"add",r,r)),this}function zO(r,e){e=Lr(e);const t=Lr(this),{has:n,get:i}=I1(t);let a=n.call(t,r);a||(r=Lr(r),a=n.call(t,r));const o=i.call(t,r);return t.set(r,e),a?_p(e,o)&&ll(t,"set",r,e):ll(t,"add",r,e),this}function YO(r){const e=Lr(this),{has:t,get:n}=I1(e);let i=t.call(e,r);i||(r=Lr(r),i=t.call(e,r)),n&&n.call(e,r);const a=e.delete(r);return i&&ll(e,"delete",r,void 0),a}function XO(){const r=Lr(this),e=r.size!==0,t=r.clear();return e&&ll(r,"clear",void 0,void 0),t}function hm(r,e){return function(n,i){const a=this,o=a.__v_raw,s=Lr(o),A=e?rI:r?oI:eg;return!r&&Mo(s,"iterate",$c),o.forEach((l,u)=>n.call(i,A(l),A(u),a))}}function fm(r,e,t){return function(...n){const i=this.__v_raw,a=Lr(i),o=ep(a),s=r==="entries"||r===Symbol.iterator&&o,A=r==="keys"&&o,l=i[r](...n),u=t?rI:e?oI:eg;return!e&&Mo(a,"iterate",A?vT:$c),{next(){const{value:c,done:h}=l.next();return h?{value:c,done:h}:{value:s?[u(c[0]),u(c[1])]:u(c),done:h}},[Symbol.iterator](){return this}}}}function $l(r){return function(...e){return r==="delete"?!1:this}}function p$(){const r={get(a){return lm(this,a)},get size(){return cm(this)},has:um,add:KO,set:zO,delete:YO,clear:XO,forEach:hm(!1,!1)},e={get(a){return lm(this,a,!1,!0)},get size(){return cm(this)},has:um,add:KO,set:zO,delete:YO,clear:XO,forEach:hm(!1,!0)},t={get(a){return lm(this,a,!0)},get size(){return cm(this,!0)},has(a){return um.call(this,a,!0)},add:$l("add"),set:$l("set"),delete:$l("delete"),clear:$l("clear"),forEach:hm(!0,!1)},n={get(a){return lm(this,a,!0,!0)},get size(){return cm(this,!0)},has(a){return um.call(this,a,!0)},add:$l("add"),set:$l("set"),delete:$l("delete"),clear:$l("clear"),forEach:hm(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{r[a]=fm(a,!1,!1),t[a]=fm(a,!0,!1),e[a]=fm(a,!1,!0),n[a]=fm(a,!0,!0)}),[r,t,e,n]}const[d$,v$,g$,y$]=p$();function F1(r,e){const t=e?r?y$:g$:r?v$:d$;return(n,i,a)=>i==="__v_isReactive"?!r:i==="__v_isReadonly"?r:i==="__v_raw"?n:Reflect.get(br(t,i)&&i in n?t:n,i,a)}const m$={get:F1(!1,!1)},_$={get:F1(!1,!0)},w$={get:F1(!0,!1)},E$={get:F1(!0,!0)},j2=new WeakMap,K2=new WeakMap,z2=new WeakMap,Y2=new WeakMap;function C$(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function B$(r){return r.__v_skip||!Object.isExtensible(r)?0:C$(V9(r))}function Hg(r){return ih(r)?r:L1(r,!1,$2,m$,j2)}function X2(r){return L1(r,!1,h$,_$,K2)}function nI(r){return L1(r,!0,V2,w$,z2)}function T$(r){return L1(r,!0,f$,E$,Y2)}function L1(r,e,t,n,i){if(!hn(r)||r.__v_raw&&!(e&&r.__v_isReactive))return r;const a=i.get(r);if(a)return a;const o=B$(r);if(o===0)return r;const s=new Proxy(r,o===2?n:t);return i.set(r,s),s}function Vc(r){return ih(r)?Vc(r.__v_raw):!!(r&&r.__v_isReactive)}function ih(r){return!!(r&&r.__v_isReadonly)}function tg(r){return!!(r&&r.__v_isShallow)}function iI(r){return Vc(r)||ih(r)}function Lr(r){const e=r&&r.__v_raw;return e?Lr(e):r}function aI(r){return a_(r,"__v_skip",!0),r}const eg=r=>hn(r)?Hg(r):r,oI=r=>hn(r)?nI(r):r;function sI(r){mu&&Es&&(r=Lr(r),H2(r.dep||(r.dep=eI())))}function O1(r,e){r=Lr(r),r.dep&&gT(r.dep)}function Wi(r){return!!(r&&r.__v_isRef===!0)}function Gn(r){return W2(r,!1)}function S$(r){return W2(r,!0)}function W2(r,e){return Wi(r)?r:new x$(r,e)}class x${constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Lr(e),this._value=t?e:eg(e)}get value(){return sI(this),this._value}set value(e){const t=this.__v_isShallow||tg(e)||ih(e);e=t?e:Lr(e),_p(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:eg(e),O1(this))}}function b$(r){O1(r)}function q2(r){return Wi(r)?r.value:r}const I$={get:(r,e,t)=>q2(Reflect.get(r,e,t)),set:(r,e,t,n)=>{const i=r[e];return Wi(i)&&!Wi(t)?(i.value=t,!0):Reflect.set(r,e,t,n)}};function AI(r){return Vc(r)?r:new Proxy(r,I$)}class F${constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e(()=>sI(this),()=>O1(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function L$(r){return new F$(r)}function Lu(r){const e=we(r)?new Array(r.length):{};for(const t in r)e[t]=Z2(r,t);return e}class O${constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}}function Z2(r,e,t){const n=r[e];return Wi(n)?n:new O$(r,e,t)}var J2;class R${constructor(e,t,n,i){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[J2]=!1,this._dirty=!0,this.effect=new Qg(e,()=>{this._dirty||(this._dirty=!0,O1(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=Lr(this);return sI(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}J2="__v_isReadonly";function M$(r,e,t=!1){let n,i;const a=je(r);return a?(n=r,i=Ts):(n=r.get,i=r.set),new R$(n,i,a||!i,t)}function N$(r,...e){}function JA(r,e,t,n){let i;try{i=n?r(...n):r()}catch(a){Eh(a,e,t)}return i}function Ro(r,e,t,n){if(je(r)){const a=JA(r,e,t,n);return a&&Zb(a)&&a.catch(o=>{Eh(o,e,t)}),a}const i=[];for(let a=0;a>>1;ng(Ea[n])zs&&Ea.splice(e,1)}function cI(r){we(r)?np.push(...r):(!jA||!jA.includes(r,r.allowRecurse?Fc+1:Fc))&&np.push(r),eD()}function WO(r,e=rg?zs+1:0){for(;eng(t)-ng(n)),Fc=0;Fcr.id==null?1/0:r.id,Q$=(r,e)=>{const t=ng(r)-ng(e);if(t===0){if(r.pre&&!e.pre)return-1;if(e.pre&&!r.pre)return 1}return t};function rD(r){yT=!1,rg=!0,Ea.sort(Q$);const e=Ts;try{for(zs=0;zsFf.emit(i,...a)),pm=[]):typeof window<"u"&&window.HTMLElement&&!(!((n=(t=window.navigator)===null||t===void 0?void 0:t.userAgent)===null||n===void 0)&&n.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{nD(a,e)}),setTimeout(()=>{Ff||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,pm=[])},3e3)):pm=[]}function H$(r,e,...t){if(r.isUnmounted)return;const n=r.vnode.props||nn;let i=t;const a=e.startsWith("update:"),o=a&&e.slice(7);if(o&&o in n){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:c,trim:h}=n[u]||nn;h&&(i=t.map(f=>Pn(f)?f.trim():f)),c&&(i=t.map(Al))}let s,A=n[s=Fv(e)]||n[s=Fv(so(e))];!A&&a&&(A=n[s=Fv(Wo(e))]),A&&Ro(A,r,6,i);const l=n[s+"Once"];if(l){if(!r.emitted)r.emitted={};else if(r.emitted[s])return;r.emitted[s]=!0,Ro(l,r,6,i)}}function iD(r,e,t=!1){const n=e.emitsCache,i=n.get(r);if(i!==void 0)return i;const a=r.emits;let o={},s=!1;if(!je(r)){const A=l=>{const u=iD(l,e,!0);u&&(s=!0,Kn(o,u))};!t&&e.mixins.length&&e.mixins.forEach(A),r.extends&&A(r.extends),r.mixins&&r.mixins.forEach(A)}return!a&&!s?(hn(r)&&n.set(r,null),null):(we(a)?a.forEach(A=>o[A]=null):Kn(o,a),hn(r)&&n.set(r,o),o)}function M1(r,e){return!r||!Pg(e)?!1:(e=e.slice(2).replace(/Once$/,""),br(r,e[0].toLowerCase()+e.slice(1))||br(r,Wo(e))||br(r,e))}let ia=null,N1=null;function ig(r){const e=ia;return ia=r,N1=r&&r.type.__scopeId||null,e}function aD(r){N1=r}function oD(){N1=null}const G$=r=>Nc;function Nc(r,e=ia,t){if(!e||r._n)return r;const n=(...i)=>{n._d&&TT(-1);const a=ig(e);let o;try{o=r(...i)}finally{ig(a),n._d&&TT(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function L0(r){const{type:e,vnode:t,proxy:n,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:A,emit:l,render:u,renderCache:c,data:h,setupState:f,ctx:p,inheritAttrs:v}=r;let m,g;const _=ig(r);try{if(t.shapeFlag&4){const B=i||n;m=bo(u.call(B,B,c,a,f,h,p)),g=A}else{const B=e;m=bo(B.length>1?B(a,{attrs:A,slots:s,emit:l}):B(a,null)),g=e.props?A:$$(A)}}catch(B){Rv.length=0,Eh(B,r,1),m=Wr(Ba)}let E=m;if(g&&v!==!1){const B=Object.keys(g),{shapeFlag:L}=E;B.length&&L&7&&(o&&B.some(Wb)&&(g=V$(g,o)),E=sA(E,g))}return t.dirs&&(E=sA(E),E.dirs=E.dirs?E.dirs.concat(t.dirs):t.dirs),t.transition&&(E.transition=t.transition),m=E,ig(_),m}function k$(r){let e;for(let t=0;t{let e;for(const t in r)(t==="class"||t==="style"||Pg(t))&&((e||(e={}))[t]=r[t]);return e},V$=(r,e)=>{const t={};for(const n in r)(!Wb(n)||!(n.slice(9)in e))&&(t[n]=r[n]);return t};function j$(r,e,t){const{props:n,children:i,component:a}=r,{props:o,children:s,patchFlag:A}=e,l=a.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&A>=0){if(A&1024)return!0;if(A&16)return n?qO(n,o,l):!!o;if(A&8){const u=e.dynamicProps;for(let c=0;cr.__isSuspense,K$={name:"Suspense",__isSuspense:!0,process(r,e,t,n,i,a,o,s,A,l){r==null?Y$(e,t,n,i,a,o,s,A,l):X$(r,e,t,n,i,o,s,A,l)},hydrate:W$,create:fI,normalize:q$},z$=K$;function ag(r,e){const t=r.props&&r.props[e];je(t)&&t()}function Y$(r,e,t,n,i,a,o,s,A){const{p:l,o:{createElement:u}}=A,c=u("div"),h=r.suspense=fI(r,i,n,e,c,t,a,o,s,A);l(null,h.pendingBranch=r.ssContent,c,null,n,h,a,o),h.deps>0?(ag(r,"onPending"),ag(r,"onFallback"),l(null,r.ssFallback,e,t,n,null,a,o),ip(h,r.ssFallback)):h.resolve()}function X$(r,e,t,n,i,a,o,s,{p:A,um:l,o:{createElement:u}}){const c=e.suspense=r.suspense;c.vnode=e,e.el=r.el;const h=e.ssContent,f=e.ssFallback,{activeBranch:p,pendingBranch:v,isInFallback:m,isHydrating:g}=c;if(v)c.pendingBranch=h,Ys(h,v)?(A(v,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():m&&(A(p,f,t,n,i,null,a,o,s),ip(c,f))):(c.pendingId++,g?(c.isHydrating=!1,c.activeBranch=v):l(v,i,c),c.deps=0,c.effects.length=0,c.hiddenContainer=u("div"),m?(A(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():(A(p,f,t,n,i,null,a,o,s),ip(c,f))):p&&Ys(h,p)?(A(p,h,t,n,i,c,a,o,s),c.resolve(!0)):(A(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0&&c.resolve()));else if(p&&Ys(h,p))A(p,h,t,n,i,c,a,o,s),ip(c,h);else if(ag(e,"onPending"),c.pendingBranch=h,c.pendingId++,A(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0)c.resolve();else{const{timeout:_,pendingId:E}=c;_>0?setTimeout(()=>{c.pendingId===E&&c.fallback(f)},_):_===0&&c.fallback(f)}}function fI(r,e,t,n,i,a,o,s,A,l,u=!1){const{p:c,m:h,um:f,n:p,o:{parentNode:v,remove:m}}=l,g=Al(r.props&&r.props.timeout),_={vnode:r,parent:e,parentComponent:t,isSVG:o,container:n,hiddenContainer:i,anchor:a,deps:0,pendingId:0,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(E=!1){const{vnode:B,activeBranch:L,pendingBranch:O,pendingId:b,effects:T,parentComponent:I,container:M}=_;if(_.isHydrating)_.isHydrating=!1;else if(!E){const N=L&&O.transition&&O.transition.mode==="out-in";N&&(L.transition.afterLeave=()=>{b===_.pendingId&&h(O,M,P,0)});let{anchor:P}=_;L&&(P=p(L),f(L,I,_,!0)),N||h(O,M,P,0)}ip(_,O),_.pendingBranch=null,_.isInFallback=!1;let x=_.parent,S=!1;for(;x;){if(x.pendingBranch){x.effects.push(...T),S=!0;break}x=x.parent}S||cI(T),_.effects=[],ag(B,"onResolve")},fallback(E){if(!_.pendingBranch)return;const{vnode:B,activeBranch:L,parentComponent:O,container:b,isSVG:T}=_;ag(B,"onFallback");const I=p(L),M=()=>{_.isInFallback&&(c(null,E,b,I,O,null,T,s,A),ip(_,E))},x=E.transition&&E.transition.mode==="out-in";x&&(L.transition.afterLeave=M),_.isInFallback=!0,f(L,O,null,!0),x||M()},move(E,B,L){_.activeBranch&&h(_.activeBranch,E,B,L),_.container=E},next(){return _.activeBranch&&p(_.activeBranch)},registerDep(E,B){const L=!!_.pendingBranch;L&&_.deps++;const O=E.vnode.el;E.asyncDep.catch(b=>{Eh(b,E,0)}).then(b=>{if(E.isUnmounted||_.isUnmounted||_.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:T}=E;ST(E,b,!1),O&&(T.el=O);const I=!O&&E.subTree.el;B(E,T,v(O||E.subTree.el),O?null:p(E.subTree),_,o,A),I&&m(I),hI(E,T.el),L&&--_.deps===0&&_.resolve()})},unmount(E,B){_.isUnmounted=!0,_.activeBranch&&f(_.activeBranch,t,E,B),_.pendingBranch&&f(_.pendingBranch,t,E,B)}};return _}function W$(r,e,t,n,i,a,o,s,A){const l=e.suspense=fI(e,n,t,r.parentNode,document.createElement("div"),null,i,a,o,s,!0),u=A(r,l.pendingBranch=e.ssContent,t,l,a,o);return l.deps===0&&l.resolve(),u}function q$(r){const{shapeFlag:e,children:t}=r,n=e&32;r.ssContent=ZO(n?t.default:t),r.ssFallback=n?ZO(t.fallback):Wr(Ba)}function ZO(r){let e;if(je(r)){const t=sh&&r._c;t&&(r._d=!1,cn()),r=r(),t&&(r._d=!0,e=oo,PD())}return we(r)&&(r=k$(r)),r=bo(r),e&&!r.dynamicChildren&&(r.dynamicChildren=e.filter(t=>t!==r)),r}function AD(r,e){e&&e.pendingBranch?we(r)?e.effects.push(...r):e.effects.push(r):cI(r)}function ip(r,e){r.activeBranch=e;const{vnode:t,parentComponent:n}=r,i=t.el=e.el;n&&n.subTree===t&&(n.vnode.el=i,hI(n,i))}function Mr(r,e){if(Ni){let t=Ni.provides;const n=Ni.parent&&Ni.parent.provides;n===t&&(t=Ni.provides=Object.create(n)),t[r]=e}}function Ce(r,e,t=!1){const n=Ni||ia;if(n){const i=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(i&&r in i)return i[r];if(arguments.length>1)return t&&je(e)?e.call(n.proxy):e}}function lD(r,e){return Gg(r,null,e)}function uD(r,e){return Gg(r,null,{flush:"post"})}function Z$(r,e){return Gg(r,null,{flush:"sync"})}const dm={};function he(r,e,t){return Gg(r,e,t)}function Gg(r,e,{immediate:t,deep:n,flush:i,onTrack:a,onTrigger:o}=nn){const s=Ni;let A,l=!1,u=!1;if(Wi(r)?(A=()=>r.value,l=tg(r)):Vc(r)?(A=()=>r,n=!0):we(r)?(u=!0,l=r.some(E=>Vc(E)||tg(E)),A=()=>r.map(E=>{if(Wi(E))return E.value;if(Vc(E))return Pc(E);if(je(E))return JA(E,s,2)})):je(r)?e?A=()=>JA(r,s,2):A=()=>{if(!(s&&s.isUnmounted))return c&&c(),Ro(r,s,3,[h])}:A=Ts,e&&n){const E=A;A=()=>Pc(E())}let c,h=E=>{c=g.onStop=()=>{JA(E,s,4)}},f;if(Ep)if(h=Ts,e?t&&Ro(e,s,3,[A(),u?[]:void 0,h]):A(),i==="sync"){const E=XD();f=E.__watcherHandles||(E.__watcherHandles=[])}else return Ts;let p=u?new Array(r.length).fill(dm):dm;const v=()=>{if(g.active)if(e){const E=g.run();(n||l||(u?E.some((B,L)=>_p(B,p[L])):_p(E,p)))&&(c&&c(),Ro(e,s,3,[E,p===dm?void 0:u&&p[0]===dm?[]:p,h]),p=E)}else g.run()};v.allowRecurse=!!e;let m;i==="sync"?m=v:i==="post"?m=()=>ea(v,s&&s.suspense):(v.pre=!0,s&&(v.id=s.uid),m=()=>R1(v));const g=new Qg(A,m);e?t?v():p=g.run():i==="post"?ea(g.run.bind(g),s&&s.suspense):g.run();const _=()=>{g.stop(),s&&s.scope&&qb(s.scope.effects,g)};return f&&f.push(_),_}function J$(r,e,t){const n=this.proxy,i=Pn(r)?r.includes(".")?cD(n,r):()=>n[r]:r.bind(n,n);let a;je(e)?a=e:(a=e.handler,t=e);const o=Ni;Ru(this);const s=Gg(i,a.bind(n),t);return o?Ru(o):_u(),s}function cD(r,e){const t=e.split(".");return()=>{let n=r;for(let i=0;i{Pc(t,e)});else if(N2(r))for(const t in r)Pc(r[t],e);return r}function pI(){const r={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ze(()=>{r.isMounted=!0}),Q1(()=>{r.isUnmounting=!0}),r}const Vo=[Function,Array],tV={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Vo,onEnter:Vo,onAfterEnter:Vo,onEnterCancelled:Vo,onBeforeLeave:Vo,onLeave:Vo,onAfterLeave:Vo,onLeaveCancelled:Vo,onBeforeAppear:Vo,onAppear:Vo,onAfterAppear:Vo,onAppearCancelled:Vo},setup(r,{slots:e}){const t=Yu(),n=pI();let i;return()=>{const a=e.default&&P1(e.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const v of a)if(v.type!==Ba){o=v;break}}const s=Lr(r),{mode:A}=s;if(n.isLeaving)return ZE(o);const l=JO(o);if(!l)return ZE(o);const u=wp(l,s,n,t);ah(l,u);const c=t.subTree,h=c&&JO(c);let f=!1;const{getTransitionKey:p}=l.type;if(p){const v=p();i===void 0?i=v:v!==i&&(i=v,f=!0)}if(h&&h.type!==Ba&&(!Ys(l,h)||f)){const v=wp(h,s,n,t);if(ah(h,v),A==="out-in")return n.isLeaving=!0,v.afterLeave=()=>{n.isLeaving=!1,t.update.active!==!1&&t.update()},ZE(o);A==="in-out"&&l.type!==Ba&&(v.delayLeave=(m,g,_)=>{const E=hD(n,h);E[String(h.key)]=h,m._leaveCb=()=>{g(),m._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=_})}return o}}},dI=tV;function hD(r,e){const{leavingVNodes:t}=r;let n=t.get(e.type);return n||(n=Object.create(null),t.set(e.type,n)),n}function wp(r,e,t,n){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:A,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:c,onLeave:h,onAfterLeave:f,onLeaveCancelled:p,onBeforeAppear:v,onAppear:m,onAfterAppear:g,onAppearCancelled:_}=e,E=String(r.key),B=hD(t,r),L=(T,I)=>{T&&Ro(T,n,9,I)},O=(T,I)=>{const M=I[1];L(T,I),we(T)?T.every(x=>x.length<=1)&&M():T.length<=1&&M()},b={mode:a,persisted:o,beforeEnter(T){let I=s;if(!t.isMounted)if(i)I=v||s;else return;T._leaveCb&&T._leaveCb(!0);const M=B[E];M&&Ys(r,M)&&M.el._leaveCb&&M.el._leaveCb(),L(I,[T])},enter(T){let I=A,M=l,x=u;if(!t.isMounted)if(i)I=m||A,M=g||l,x=_||u;else return;let S=!1;const N=T._enterCb=P=>{S||(S=!0,P?L(x,[T]):L(M,[T]),b.delayedLeave&&b.delayedLeave(),T._enterCb=void 0)};I?O(I,[T,N]):N()},leave(T,I){const M=String(r.key);if(T._enterCb&&T._enterCb(!0),t.isUnmounting)return I();L(c,[T]);let x=!1;const S=T._leaveCb=N=>{x||(x=!0,I(),N?L(p,[T]):L(f,[T]),T._leaveCb=void 0,B[M]===r&&delete B[M])};B[M]=r,h?O(h,[T,S]):S()},clone(T){return wp(T,e,t,n)}};return b}function ZE(r){if(kg(r))return r=sA(r),r.children=null,r}function JO(r){return kg(r)?r.children?r.children[0]:void 0:r}function ah(r,e){r.shapeFlag&6&&r.component?ah(r.component.subTree,e):r.shapeFlag&128?(r.ssContent.transition=e.clone(r.ssContent),r.ssFallback.transition=e.clone(r.ssFallback)):r.transition=e}function P1(r,e=!1,t){let n=[],i=0;for(let a=0;a1)for(let a=0;a!!r.type.__asyncLoader;function eV(r){je(r)&&(r={loader:r});const{loader:e,loadingComponent:t,errorComponent:n,delay:i=200,timeout:a,suspensible:o=!0,onError:s}=r;let A=null,l,u=0;const c=()=>(u++,A=null,h()),h=()=>{let f;return A||(f=A=e().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),s)return new Promise((v,m)=>{s(p,()=>v(c()),()=>m(p),u+1)});throw p}).then(p=>f!==A&&A?A:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),l=p,p)))};return vI({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return l},setup(){const f=Ni;if(l)return()=>JE(l,f);const p=_=>{A=null,Eh(_,f,13,!n)};if(o&&f.suspense||Ep)return h().then(_=>()=>JE(_,f)).catch(_=>(p(_),()=>n?Wr(n,{error:_}):null));const v=Gn(!1),m=Gn(),g=Gn(!!i);return i&&setTimeout(()=>{g.value=!1},i),a!=null&&setTimeout(()=>{if(!v.value&&!m.value){const _=new Error(`Async component timed out after ${a}ms.`);p(_),m.value=_}},a),h().then(()=>{v.value=!0,f.parent&&kg(f.parent.vnode)&&R1(f.parent.update)}).catch(_=>{p(_),m.value=_}),()=>{if(v.value&&l)return JE(l,f);if(m.value&&n)return Wr(n,{error:m.value});if(t&&!g.value)return Wr(t)}}})}function JE(r,e){const{ref:t,props:n,children:i,ce:a}=e.vnode,o=Wr(r,n,i);return o.ref=t,o.ce=a,delete e.vnode.ce,o}const kg=r=>r.type.__isKeepAlive,rV={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(r,{slots:e}){const t=Yu(),n=t.ctx;if(!n.renderer)return()=>{const _=e.default&&e.default();return _&&_.length===1?_[0]:_};const i=new Map,a=new Set;let o=null;const s=t.suspense,{renderer:{p:A,m:l,um:u,o:{createElement:c}}}=n,h=c("div");n.activate=(_,E,B,L,O)=>{const b=_.component;l(_,E,B,0,s),A(b.vnode,_,E,B,b,s,L,_.slotScopeIds,O),ea(()=>{b.isDeactivated=!1,b.a&&rp(b.a);const T=_.props&&_.props.onVnodeMounted;T&&ro(T,b.parent,_)},s)},n.deactivate=_=>{const E=_.component;l(_,h,null,1,s),ea(()=>{E.da&&rp(E.da);const B=_.props&&_.props.onVnodeUnmounted;B&&ro(B,E.parent,_),E.isDeactivated=!0},s)};function f(_){tC(_),u(_,t,s,!0)}function p(_){i.forEach((E,B)=>{const L=bT(E.type);L&&(!_||!_(L))&&v(B)})}function v(_){const E=i.get(_);!o||E.type!==o.type?f(E):o&&tC(o),i.delete(_),a.delete(_)}he(()=>[r.include,r.exclude],([_,E])=>{_&&p(B=>uv(_,B)),E&&p(B=>!uv(E,B))},{flush:"post",deep:!0});let m=null;const g=()=>{m!=null&&i.set(m,eC(t.subTree))};return Ze(g),D1(g),Q1(()=>{i.forEach(_=>{const{subTree:E,suspense:B}=t,L=eC(E);if(_.type===L.type){tC(L);const O=L.component.da;O&&ea(O,B);return}f(_)})}),()=>{if(m=null,!e.default)return null;const _=e.default(),E=_[0];if(_.length>1)return o=null,_;if(!Ou(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return o=null,E;let B=eC(E);const L=B.type,O=bT(jc(B)?B.type.__asyncResolved||{}:L),{include:b,exclude:T,max:I}=r;if(b&&(!O||!uv(b,O))||T&&O&&uv(T,O))return o=B,E;const M=B.key==null?L:B.key,x=i.get(M);return B.el&&(B=sA(B),E.shapeFlag&128&&(E.ssContent=B)),m=M,x?(B.el=x.el,B.component=x.component,B.transition&&ah(B,B.transition),B.shapeFlag|=512,a.delete(M),a.add(M)):(a.add(M),I&&a.size>parseInt(I,10)&&v(a.values().next().value)),B.shapeFlag|=256,o=B,sD(E.type)?E:B}}},nV=rV;function uv(r,e){return we(r)?r.some(t=>uv(t,e)):Pn(r)?r.split(",").includes(e):r.test?r.test(e):!1}function fD(r,e){dD(r,"a",e)}function pD(r,e){dD(r,"da",e)}function dD(r,e,t=Ni){const n=r.__wdc||(r.__wdc=()=>{let i=t;for(;i;){if(i.isDeactivated)return;i=i.parent}return r()});if(U1(e,n,t),t){let i=t.parent;for(;i&&i.parent;)kg(i.parent.vnode)&&iV(n,e,t,i),i=i.parent}}function iV(r,e,t,n){const i=U1(e,r,n,!0);ir(()=>{qb(n[e],i)},t)}function tC(r){r.shapeFlag&=-257,r.shapeFlag&=-513}function eC(r){return r.shapeFlag&128?r.ssContent:r}function U1(r,e,t=Ni,n=!1){if(t){const i=t[r]||(t[r]=[]),a=e.__weh||(e.__weh=(...o)=>{if(t.isUnmounted)return;Qp(),Ru(t);const s=Ro(e,t,r,o);return _u(),Hp(),s});return n?i.unshift(a):i.push(a),a}}const gl=r=>(e,t=Ni)=>(!Ep||r==="sp")&&U1(r,(...n)=>e(...n),t),vD=gl("bm"),Ze=gl("m"),gD=gl("bu"),D1=gl("u"),Q1=gl("bum"),ir=gl("um"),yD=gl("sp"),mD=gl("rtg"),_D=gl("rtc");function wD(r,e=Ni){U1("ec",r,e)}function aV(r,e){const t=ia;if(t===null)return r;const n=G1(t)||t.proxy,i=r.dirs||(r.dirs=[]);for(let a=0;ae(o,s,void 0,a&&a[s]));else{const o=Object.keys(r);i=new Array(o.length);for(let s=0,A=o.length;s{const a=n.fn(...i);return a&&(a.key=n.key),a}:n.fn)}return r}function mr(r,e,t={},n,i){if(ia.isCE||ia.parent&&jc(ia.parent)&&ia.parent.isCE)return e!=="default"&&(t.name=e),Wr("slot",t,n&&n());let a=r[e];a&&a._c&&(a._d=!1),cn();const o=a&&BD(a(t)),s=$g(Ri,{key:t.key||o&&o.key||`_${e}`},o||(n?n():[]),o&&r._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function BD(r){return r.some(e=>Ou(e)?!(e.type===Ba||e.type===Ri&&!BD(e.children)):!0)?r:null}function uV(r,e){const t={};for(const n in r)t[e&&/[A-Z]/.test(n)?`on:${n}`:Fv(n)]=r[n];return t}const mT=r=>r?kD(r)?G1(r)||r.proxy:mT(r.parent):null,Lv=Kn(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>mT(r.parent),$root:r=>mT(r.root),$emit:r=>r.emit,$options:r=>mI(r),$forceUpdate:r=>r.f||(r.f=()=>R1(r.update)),$nextTick:r=>r.n||(r.n=uI.bind(r.proxy)),$watch:r=>J$.bind(r)}),rC=(r,e)=>r!==nn&&!r.__isScriptSetup&&br(r,e),_T={get({_:r},e){const{ctx:t,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:A}=r;let l;if(e[0]!=="$"){const f=o[e];if(f!==void 0)switch(f){case 1:return n[e];case 2:return i[e];case 4:return t[e];case 3:return a[e]}else{if(rC(n,e))return o[e]=1,n[e];if(i!==nn&&br(i,e))return o[e]=2,i[e];if((l=r.propsOptions[0])&&br(l,e))return o[e]=3,a[e];if(t!==nn&&br(t,e))return o[e]=4,t[e];wT&&(o[e]=0)}}const u=Lv[e];let c,h;if(u)return e==="$attrs"&&Mo(r,"get",e),u(r);if((c=s.__cssModules)&&(c=c[e]))return c;if(t!==nn&&br(t,e))return o[e]=4,t[e];if(h=A.config.globalProperties,br(h,e))return h[e]},set({_:r},e,t){const{data:n,setupState:i,ctx:a}=r;return rC(i,e)?(i[e]=t,!0):n!==nn&&br(n,e)?(n[e]=t,!0):br(r.props,e)||e[0]==="$"&&e.slice(1)in r?!1:(a[e]=t,!0)},has({_:{data:r,setupState:e,accessCache:t,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!t[o]||r!==nn&&br(r,o)||rC(e,o)||(s=a[0])&&br(s,o)||br(n,o)||br(Lv,o)||br(i.config.globalProperties,o)},defineProperty(r,e,t){return t.get!=null?r._.accessCache[e]=0:br(t,"value")&&this.set(r,e,t.value,null),Reflect.defineProperty(r,e,t)}},cV=Kn({},_T,{get(r,e){if(e!==Symbol.unscopables)return _T.get(r,e,r)},has(r,e){return e[0]!=="_"&&!O9(e)}});let wT=!0;function hV(r){const e=mI(r),t=r.proxy,n=r.ctx;wT=!1,e.beforeCreate&&eR(e.beforeCreate,r,"bc");const{data:i,computed:a,methods:o,watch:s,provide:A,inject:l,created:u,beforeMount:c,mounted:h,beforeUpdate:f,updated:p,activated:v,deactivated:m,beforeDestroy:g,beforeUnmount:_,destroyed:E,unmounted:B,render:L,renderTracked:O,renderTriggered:b,errorCaptured:T,serverPrefetch:I,expose:M,inheritAttrs:x,components:S,directives:N,filters:P}=e;if(l&&fV(l,n,null,r.appContext.config.unwrapInjectedRef),o)for(const tt in o){const J=o[tt];je(J)&&(n[tt]=J.bind(t))}if(i){const tt=i.call(t,t);hn(tt)&&(r.data=Hg(tt))}if(wT=!0,a)for(const tt in a){const J=a[tt],nt=je(J)?J.bind(t,t):je(J.get)?J.get.bind(t,t):Ts,it=!je(J)&&je(J.set)?J.set.bind(t):Ts,_t=hr({get:nt,set:it});Object.defineProperty(n,tt,{enumerable:!0,configurable:!0,get:()=>_t.value,set:R=>_t.value=R})}if(s)for(const tt in s)TD(s[tt],n,t,tt);if(A){const tt=je(A)?A.call(t):A;Reflect.ownKeys(tt).forEach(J=>{Mr(J,tt[J])})}u&&eR(u,r,"c");function z(tt,J){we(J)?J.forEach(nt=>tt(nt.bind(t))):J&&tt(J.bind(t))}if(z(vD,c),z(Ze,h),z(gD,f),z(D1,p),z(fD,v),z(pD,m),z(wD,T),z(_D,O),z(mD,b),z(Q1,_),z(ir,B),z(yD,I),we(M))if(M.length){const tt=r.exposed||(r.exposed={});M.forEach(J=>{Object.defineProperty(tt,J,{get:()=>t[J],set:nt=>t[J]=nt})})}else r.exposed||(r.exposed={});L&&r.render===Ts&&(r.render=L),x!=null&&(r.inheritAttrs=x),S&&(r.components=S),N&&(r.directives=N)}function fV(r,e,t=Ts,n=!1){we(r)&&(r=ET(r));for(const i in r){const a=r[i];let o;hn(a)?"default"in a?o=Ce(a.from||i,a.default,!0):o=Ce(a.from||i):o=Ce(a),Wi(o)&&n?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):e[i]=o}}function eR(r,e,t){Ro(we(r)?r.map(n=>n.bind(e.proxy)):r.bind(e.proxy),e,t)}function TD(r,e,t,n){const i=n.includes(".")?cD(t,n):()=>t[n];if(Pn(r)){const a=e[r];je(a)&&he(i,a)}else if(je(r))he(i,r.bind(t));else if(hn(r))if(we(r))r.forEach(a=>TD(a,e,t,n));else{const a=je(r.handler)?r.handler.bind(t):e[r.handler];je(a)&&he(i,a,r)}}function mI(r){const e=r.type,{mixins:t,extends:n}=e,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=r.appContext,s=a.get(e);let A;return s?A=s:!i.length&&!t&&!n?A=e:(A={},i.length&&i.forEach(l=>s_(A,l,o,!0)),s_(A,e,o)),hn(e)&&a.set(e,A),A}function s_(r,e,t,n=!1){const{mixins:i,extends:a}=e;a&&s_(r,a,t,!0),i&&i.forEach(o=>s_(r,o,t,!0));for(const o in e)if(!(n&&o==="expose")){const s=pV[o]||t&&t[o];r[o]=s?s(r[o],e[o]):e[o]}return r}const pV={data:rR,props:Tc,emits:Tc,methods:Tc,computed:Tc,beforeCreate:Ra,created:Ra,beforeMount:Ra,mounted:Ra,beforeUpdate:Ra,updated:Ra,beforeDestroy:Ra,beforeUnmount:Ra,destroyed:Ra,unmounted:Ra,activated:Ra,deactivated:Ra,errorCaptured:Ra,serverPrefetch:Ra,components:Tc,directives:Tc,watch:vV,provide:rR,inject:dV};function rR(r,e){return e?r?function(){return Kn(je(r)?r.call(this,this):r,je(e)?e.call(this,this):e)}:e:r}function dV(r,e){return Tc(ET(r),ET(e))}function ET(r){if(we(r)){const e={};for(let t=0;t0)&&!(o&16)){if(o&8){const u=r.vnode.dynamicProps;for(let c=0;c{A=!0;const[h,f]=xD(c,e,!0);Kn(o,h),f&&s.push(...f)};!t&&e.mixins.length&&e.mixins.forEach(u),r.extends&&u(r.extends),r.mixins&&r.mixins.forEach(u)}if(!a&&!A)return hn(r)&&n.set(r,tp),tp;if(we(a))for(let u=0;u-1,f[1]=v<0||p-1||br(f,"default"))&&s.push(c)}}}const l=[o,s];return hn(r)&&n.set(r,l),l}function nR(r){return r[0]!=="$"}function iR(r){const e=r&&r.toString().match(/^\s*function (\w+)/);return e?e[1]:r===null?"null":""}function aR(r,e){return iR(r)===iR(e)}function oR(r,e){return we(e)?e.findIndex(t=>aR(t,r)):je(e)&&aR(e,r)?0:-1}const bD=r=>r[0]==="_"||r==="$stable",_I=r=>we(r)?r.map(bo):[bo(r)],mV=(r,e,t)=>{if(e._n)return e;const n=Nc((...i)=>_I(e(...i)),t);return n._c=!1,n},ID=(r,e,t)=>{const n=r._ctx;for(const i in r){if(bD(i))continue;const a=r[i];if(je(a))e[i]=mV(i,a,n);else if(a!=null){const o=_I(a);e[i]=()=>o}}},FD=(r,e)=>{const t=_I(e);r.slots.default=()=>t},_V=(r,e)=>{if(r.vnode.shapeFlag&32){const t=e._;t?(r.slots=Lr(e),a_(e,"_",t)):ID(e,r.slots={})}else r.slots={},e&&FD(r,e);a_(r.slots,H1,1)},wV=(r,e,t)=>{const{vnode:n,slots:i}=r;let a=!0,o=nn;if(n.shapeFlag&32){const s=e._;s?t&&s===1?a=!1:(Kn(i,e),!t&&s===1&&delete i._):(a=!e.$stable,ID(e,i)),o=e}else e&&(FD(r,e),o={default:1});if(a)for(const s in i)!bD(s)&&!(s in o)&&delete i[s]};function LD(){return{app:null,config:{isNativeTag:G9,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let EV=0;function CV(r,e){return function(n,i=null){je(n)||(n=Object.assign({},n)),i!=null&&!hn(i)&&(i=null);const a=LD(),o=new Set;let s=!1;const A=a.app={_uid:EV++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:qD,get config(){return a.config},set config(l){},use(l,...u){return o.has(l)||(l&&je(l.install)?(o.add(l),l.install(A,...u)):je(l)&&(o.add(l),l(A,...u))),A},mixin(l){return a.mixins.includes(l)||a.mixins.push(l),A},component(l,u){return u?(a.components[l]=u,A):a.components[l]},directive(l,u){return u?(a.directives[l]=u,A):a.directives[l]},mount(l,u,c){if(!s){const h=Wr(n,i);return h.appContext=a,u&&e?e(h,l):r(h,l,c),s=!0,A._container=l,l.__vue_app__=A,G1(h.component)||h.component.proxy}},unmount(){s&&(r(null,A._container),delete A._container.__vue_app__)},provide(l,u){return a.provides[l]=u,A}};return A}}function A_(r,e,t,n,i=!1){if(we(r)){r.forEach((h,f)=>A_(h,e&&(we(e)?e[f]:e),t,n,i));return}if(jc(n)&&!i)return;const a=n.shapeFlag&4?G1(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:A}=r,l=e&&e.r,u=s.refs===nn?s.refs={}:s.refs,c=s.setupState;if(l!=null&&l!==A&&(Pn(l)?(u[l]=null,br(c,l)&&(c[l]=null)):Wi(l)&&(l.value=null)),je(A))JA(A,s,12,[o,u]);else{const h=Pn(A),f=Wi(A);if(h||f){const p=()=>{if(r.f){const v=h?br(c,A)?c[A]:u[A]:A.value;i?we(v)&&qb(v,a):we(v)?v.includes(a)||v.push(a):h?(u[A]=[a],br(c,A)&&(c[A]=u[A])):(A.value=[a],r.k&&(u[r.k]=A.value))}else h?(u[A]=o,br(c,A)&&(c[A]=o)):f&&(A.value=o,r.k&&(u[r.k]=o))};o?(p.id=-1,ea(p,t)):p()}}}let Vl=!1;const vm=r=>/svg/.test(r.namespaceURI)&&r.tagName!=="foreignObject",gm=r=>r.nodeType===8;function BV(r){const{mt:e,p:t,o:{patchProp:n,createText:i,nextSibling:a,parentNode:o,remove:s,insert:A,createComment:l}}=r,u=(g,_)=>{if(!_.hasChildNodes()){t(null,g,_),o_(),_._vnode=g;return}Vl=!1,c(_.firstChild,g,null,null,null),o_(),_._vnode=g,Vl&&console.error("Hydration completed but contains mismatches.")},c=(g,_,E,B,L,O=!1)=>{const b=gm(g)&&g.data==="[",T=()=>v(g,_,E,B,L,b),{type:I,ref:M,shapeFlag:x,patchFlag:S}=_;let N=g.nodeType;_.el=g,S===-2&&(O=!1,_.dynamicChildren=null);let P=null;switch(I){case oh:N!==3?_.children===""?(A(_.el=i(""),o(g),g),P=g):P=T():(g.data!==_.children&&(Vl=!0,g.data=_.children),P=a(g));break;case Ba:N!==8||b?P=T():P=a(g);break;case Kc:if(b&&(g=a(g),N=g.nodeType),N===1||N===3){P=g;const X=!_.children.length;for(let z=0;z<_.staticCount;z++)X&&(_.children+=P.nodeType===1?P.outerHTML:P.data),z===_.staticCount-1&&(_.anchor=P),P=a(P);return b?a(P):P}else T();break;case Ri:b?P=p(g,_,E,B,L,O):P=T();break;default:if(x&1)N!==1||_.type.toLowerCase()!==g.tagName.toLowerCase()?P=T():P=h(g,_,E,B,L,O);else if(x&6){_.slotScopeIds=L;const X=o(g);if(e(_,X,null,E,B,vm(X),O),P=b?m(g):a(g),P&&gm(P)&&P.data==="teleport end"&&(P=a(P)),jc(_)){let z;b?(z=Wr(Ri),z.anchor=P?P.previousSibling:X.lastChild):z=g.nodeType===3?EI(""):Wr("div"),z.el=g,_.component.subTree=z}}else x&64?N!==8?P=T():P=_.type.hydrate(g,_,E,B,L,O,r,f):x&128&&(P=_.type.hydrate(g,_,E,B,vm(o(g)),L,O,r,c))}return M!=null&&A_(M,null,B,_),P},h=(g,_,E,B,L,O)=>{O=O||!!_.dynamicChildren;const{type:b,props:T,patchFlag:I,shapeFlag:M,dirs:x}=_,S=b==="input"&&x||b==="option";if(S||I!==-1){if(x&&js(_,null,E,"created"),T)if(S||!O||I&48)for(const P in T)(S&&P.endsWith("value")||Pg(P)&&!Iv(P))&&n(g,P,null,T[P],!1,void 0,E);else T.onClick&&n(g,"onClick",null,T.onClick,!1,void 0,E);let N;if((N=T&&T.onVnodeBeforeMount)&&ro(N,E,_),x&&js(_,null,E,"beforeMount"),((N=T&&T.onVnodeMounted)||x)&&AD(()=>{N&&ro(N,E,_),x&&js(_,null,E,"mounted")},B),M&16&&!(T&&(T.innerHTML||T.textContent))){let P=f(g.firstChild,_,g,E,B,L,O);for(;P;){Vl=!0;const X=P;P=P.nextSibling,s(X)}}else M&8&&g.textContent!==_.children&&(Vl=!0,g.textContent=_.children)}return g.nextSibling},f=(g,_,E,B,L,O,b)=>{b=b||!!_.dynamicChildren;const T=_.children,I=T.length;for(let M=0;M{const{slotScopeIds:b}=_;b&&(L=L?L.concat(b):b);const T=o(g),I=f(a(g),_,T,E,B,L,O);return I&&gm(I)&&I.data==="]"?a(_.anchor=I):(Vl=!0,A(_.anchor=l("]"),T,I),I)},v=(g,_,E,B,L,O)=>{if(Vl=!0,_.el=null,O){const I=m(g);for(;;){const M=a(g);if(M&&M!==I)s(M);else break}}const b=a(g),T=o(g);return s(g),t(null,_,T,b,E,B,vm(T),L),b},m=g=>{let _=0;for(;g;)if(g=a(g),g&&gm(g)&&(g.data==="["&&_++,g.data==="]")){if(_===0)return a(g);_--}return g};return[u,c]}const ea=AD;function OD(r){return MD(r)}function RD(r){return MD(r,BV)}function MD(r,e){const t=z9();t.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:A,setText:l,setElementText:u,parentNode:c,nextSibling:h,setScopeId:f=Ts,insertStaticContent:p}=r,v=(j,Z,ut,rt=null,G=null,xt=null,bt=!1,dt=null,Et=!!Z.dynamicChildren)=>{if(j===Z)return;j&&!Ys(j,Z)&&(rt=vt(j),R(j,G,xt,!0),j=null),Z.patchFlag===-2&&(Et=!1,Z.dynamicChildren=null);const{type:yt,ref:St,shapeFlag:Ft}=Z;switch(yt){case oh:m(j,Z,ut,rt);break;case Ba:g(j,Z,ut,rt);break;case Kc:j==null&&_(Z,ut,rt,bt);break;case Ri:S(j,Z,ut,rt,G,xt,bt,dt,Et);break;default:Ft&1?L(j,Z,ut,rt,G,xt,bt,dt,Et):Ft&6?N(j,Z,ut,rt,G,xt,bt,dt,Et):(Ft&64||Ft&128)&&yt.process(j,Z,ut,rt,G,xt,bt,dt,Et,W)}St!=null&&G&&A_(St,j&&j.ref,xt,Z||j,!Z)},m=(j,Z,ut,rt)=>{if(j==null)n(Z.el=s(Z.children),ut,rt);else{const G=Z.el=j.el;Z.children!==j.children&&l(G,Z.children)}},g=(j,Z,ut,rt)=>{j==null?n(Z.el=A(Z.children||""),ut,rt):Z.el=j.el},_=(j,Z,ut,rt)=>{[j.el,j.anchor]=p(j.children,Z,ut,rt,j.el,j.anchor)},E=({el:j,anchor:Z},ut,rt)=>{let G;for(;j&&j!==Z;)G=h(j),n(j,ut,rt),j=G;n(Z,ut,rt)},B=({el:j,anchor:Z})=>{let ut;for(;j&&j!==Z;)ut=h(j),i(j),j=ut;i(Z)},L=(j,Z,ut,rt,G,xt,bt,dt,Et)=>{bt=bt||Z.type==="svg",j==null?O(Z,ut,rt,G,xt,bt,dt,Et):I(j,Z,G,xt,bt,dt,Et)},O=(j,Z,ut,rt,G,xt,bt,dt)=>{let Et,yt;const{type:St,props:Ft,shapeFlag:Mt,transition:Vt,dirs:Yt}=j;if(Et=j.el=o(j.type,xt,Ft&&Ft.is,Ft),Mt&8?u(Et,j.children):Mt&16&&T(j.children,Et,null,rt,G,xt&&St!=="foreignObject",bt,dt),Yt&&js(j,null,rt,"created"),Ft){for(const ee in Ft)ee!=="value"&&!Iv(ee)&&a(Et,ee,null,Ft[ee],xt,j.children,rt,G,at);"value"in Ft&&a(Et,"value",null,Ft.value),(yt=Ft.onVnodeBeforeMount)&&ro(yt,rt,j)}b(Et,j,j.scopeId,bt,rt),Yt&&js(j,null,rt,"beforeMount");const ie=(!G||G&&!G.pendingBranch)&&Vt&&!Vt.persisted;ie&&Vt.beforeEnter(Et),n(Et,Z,ut),((yt=Ft&&Ft.onVnodeMounted)||ie||Yt)&&ea(()=>{yt&&ro(yt,rt,j),ie&&Vt.enter(Et),Yt&&js(j,null,rt,"mounted")},G)},b=(j,Z,ut,rt,G)=>{if(ut&&f(j,ut),rt)for(let xt=0;xt{for(let yt=Et;yt{const dt=Z.el=j.el;let{patchFlag:Et,dynamicChildren:yt,dirs:St}=Z;Et|=j.patchFlag&16;const Ft=j.props||nn,Mt=Z.props||nn;let Vt;ut&&hc(ut,!1),(Vt=Mt.onVnodeBeforeUpdate)&&ro(Vt,ut,Z,j),St&&js(Z,j,ut,"beforeUpdate"),ut&&hc(ut,!0);const Yt=G&&Z.type!=="foreignObject";if(yt?M(j.dynamicChildren,yt,dt,ut,rt,Yt,xt):bt||J(j,Z,dt,null,ut,rt,Yt,xt,!1),Et>0){if(Et&16)x(dt,Z,Ft,Mt,ut,rt,G);else if(Et&2&&Ft.class!==Mt.class&&a(dt,"class",null,Mt.class,G),Et&4&&a(dt,"style",Ft.style,Mt.style,G),Et&8){const ie=Z.dynamicProps;for(let ee=0;ee{Vt&&ro(Vt,ut,Z,j),St&&js(Z,j,ut,"updated")},rt)},M=(j,Z,ut,rt,G,xt,bt)=>{for(let dt=0;dt{if(ut!==rt){if(ut!==nn)for(const dt in ut)!Iv(dt)&&!(dt in rt)&&a(j,dt,ut[dt],null,bt,Z.children,G,xt,at);for(const dt in rt){if(Iv(dt))continue;const Et=rt[dt],yt=ut[dt];Et!==yt&&dt!=="value"&&a(j,dt,yt,Et,bt,Z.children,G,xt,at)}"value"in rt&&a(j,"value",ut.value,rt.value)}},S=(j,Z,ut,rt,G,xt,bt,dt,Et)=>{const yt=Z.el=j?j.el:s(""),St=Z.anchor=j?j.anchor:s("");let{patchFlag:Ft,dynamicChildren:Mt,slotScopeIds:Vt}=Z;Vt&&(dt=dt?dt.concat(Vt):Vt),j==null?(n(yt,ut,rt),n(St,ut,rt),T(Z.children,ut,St,G,xt,bt,dt,Et)):Ft>0&&Ft&64&&Mt&&j.dynamicChildren?(M(j.dynamicChildren,Mt,ut,G,xt,bt,dt),(Z.key!=null||G&&Z===G.subTree)&&wI(j,Z,!0)):J(j,Z,ut,St,G,xt,bt,dt,Et)},N=(j,Z,ut,rt,G,xt,bt,dt,Et)=>{Z.slotScopeIds=dt,j==null?Z.shapeFlag&512?G.ctx.activate(Z,ut,rt,bt,Et):P(Z,ut,rt,G,xt,bt,Et):X(j,Z,Et)},P=(j,Z,ut,rt,G,xt,bt)=>{const dt=j.component=GD(j,rt,G);if(kg(j)&&(dt.ctx.renderer=W),$D(dt),dt.asyncDep){if(G&&G.registerDep(dt,z),!j.el){const Et=dt.subTree=Wr(Ba);g(null,Et,Z,ut)}return}z(dt,j,Z,ut,G,xt,bt)},X=(j,Z,ut)=>{const rt=Z.component=j.component;if(j$(j,Z,ut))if(rt.asyncDep&&!rt.asyncResolved){tt(rt,Z,ut);return}else rt.next=Z,D$(rt.update),rt.update();else Z.el=j.el,rt.vnode=Z},z=(j,Z,ut,rt,G,xt,bt)=>{const dt=()=>{if(j.isMounted){let{next:St,bu:Ft,u:Mt,parent:Vt,vnode:Yt}=j,ie=St,ee;hc(j,!1),St?(St.el=Yt.el,tt(j,St,bt)):St=Yt,Ft&&rp(Ft),(ee=St.props&&St.props.onVnodeBeforeUpdate)&&ro(ee,Vt,St,Yt),hc(j,!0);const Xt=L0(j),oe=j.subTree;j.subTree=Xt,v(oe,Xt,c(oe.el),vt(oe),j,G,xt),St.el=Xt.el,ie===null&&hI(j,Xt.el),Mt&&ea(Mt,G),(ee=St.props&&St.props.onVnodeUpdated)&&ea(()=>ro(ee,Vt,St,Yt),G)}else{let St;const{el:Ft,props:Mt}=Z,{bm:Vt,m:Yt,parent:ie}=j,ee=jc(Z);if(hc(j,!1),Vt&&rp(Vt),!ee&&(St=Mt&&Mt.onVnodeBeforeMount)&&ro(St,ie,Z),hc(j,!0),Ft&&Ot){const Xt=()=>{j.subTree=L0(j),Ot(Ft,j.subTree,j,G,null)};ee?Z.type.__asyncLoader().then(()=>!j.isUnmounted&&Xt()):Xt()}else{const Xt=j.subTree=L0(j);v(null,Xt,ut,rt,j,G,xt),Z.el=Xt.el}if(Yt&&ea(Yt,G),!ee&&(St=Mt&&Mt.onVnodeMounted)){const Xt=Z;ea(()=>ro(St,ie,Xt),G)}(Z.shapeFlag&256||ie&&jc(ie.vnode)&&ie.vnode.shapeFlag&256)&&j.a&&ea(j.a,G),j.isMounted=!0,Z=ut=rt=null}},Et=j.effect=new Qg(dt,()=>R1(yt),j.scope),yt=j.update=()=>Et.run();yt.id=j.uid,hc(j,!0),yt()},tt=(j,Z,ut)=>{Z.component=j;const rt=j.vnode.props;j.vnode=Z,j.next=null,yV(j,Z.props,rt,ut),wV(j,Z.children,ut),Qp(),WO(),Hp()},J=(j,Z,ut,rt,G,xt,bt,dt,Et=!1)=>{const yt=j&&j.children,St=j?j.shapeFlag:0,Ft=Z.children,{patchFlag:Mt,shapeFlag:Vt}=Z;if(Mt>0){if(Mt&128){it(yt,Ft,ut,rt,G,xt,bt,dt,Et);return}else if(Mt&256){nt(yt,Ft,ut,rt,G,xt,bt,dt,Et);return}}Vt&8?(St&16&&at(yt,G,xt),Ft!==yt&&u(ut,Ft)):St&16?Vt&16?it(yt,Ft,ut,rt,G,xt,bt,dt,Et):at(yt,G,xt,!0):(St&8&&u(ut,""),Vt&16&&T(Ft,ut,rt,G,xt,bt,dt,Et))},nt=(j,Z,ut,rt,G,xt,bt,dt,Et)=>{j=j||tp,Z=Z||tp;const yt=j.length,St=Z.length,Ft=Math.min(yt,St);let Mt;for(Mt=0;MtSt?at(j,G,xt,!0,!1,Ft):T(Z,ut,rt,G,xt,bt,dt,Et,Ft)},it=(j,Z,ut,rt,G,xt,bt,dt,Et)=>{let yt=0;const St=Z.length;let Ft=j.length-1,Mt=St-1;for(;yt<=Ft&&yt<=Mt;){const Vt=j[yt],Yt=Z[yt]=Et?au(Z[yt]):bo(Z[yt]);if(Ys(Vt,Yt))v(Vt,Yt,ut,null,G,xt,bt,dt,Et);else break;yt++}for(;yt<=Ft&&yt<=Mt;){const Vt=j[Ft],Yt=Z[Mt]=Et?au(Z[Mt]):bo(Z[Mt]);if(Ys(Vt,Yt))v(Vt,Yt,ut,null,G,xt,bt,dt,Et);else break;Ft--,Mt--}if(yt>Ft){if(yt<=Mt){const Vt=Mt+1,Yt=VtMt)for(;yt<=Ft;)R(j[yt],G,xt,!0),yt++;else{const Vt=yt,Yt=yt,ie=new Map;for(yt=Yt;yt<=Mt;yt++){const Ie=Z[yt]=Et?au(Z[yt]):bo(Z[yt]);Ie.key!=null&&ie.set(Ie.key,yt)}let ee,Xt=0;const oe=Mt-Yt+1;let Kt=!1,Xe=0;const Re=new Array(oe);for(yt=0;yt=oe){R(Ie,G,xt,!0);continue}let xe;if(Ie.key!=null)xe=ie.get(Ie.key);else for(ee=Yt;ee<=Mt;ee++)if(Re[ee-Yt]===0&&Ys(Ie,Z[ee])){xe=ee;break}xe===void 0?R(Ie,G,xt,!0):(Re[xe-Yt]=yt+1,xe>=Xe?Xe=xe:Kt=!0,v(Ie,Z[xe],ut,null,G,xt,bt,dt,Et),Xt++)}const pr=Kt?TV(Re):tp;for(ee=pr.length-1,yt=oe-1;yt>=0;yt--){const Ie=Yt+yt,xe=Z[Ie],on=Ie+1{const{el:xt,type:bt,transition:dt,children:Et,shapeFlag:yt}=j;if(yt&6){_t(j.component.subTree,Z,ut,rt);return}if(yt&128){j.suspense.move(Z,ut,rt);return}if(yt&64){bt.move(j,Z,ut,W);return}if(bt===Ri){n(xt,Z,ut);for(let Ft=0;Ftdt.enter(xt),G);else{const{leave:Ft,delayLeave:Mt,afterLeave:Vt}=dt,Yt=()=>n(xt,Z,ut),ie=()=>{Ft(xt,()=>{Yt(),Vt&&Vt()})};Mt?Mt(xt,Yt,ie):ie()}else n(xt,Z,ut)},R=(j,Z,ut,rt=!1,G=!1)=>{const{type:xt,props:bt,ref:dt,children:Et,dynamicChildren:yt,shapeFlag:St,patchFlag:Ft,dirs:Mt}=j;if(dt!=null&&A_(dt,null,ut,j,!0),St&256){Z.ctx.deactivate(j);return}const Vt=St&1&&Mt,Yt=!jc(j);let ie;if(Yt&&(ie=bt&&bt.onVnodeBeforeUnmount)&&ro(ie,Z,j),St&6)q(j.component,ut,rt);else{if(St&128){j.suspense.unmount(ut,rt);return}Vt&&js(j,null,Z,"beforeUnmount"),St&64?j.type.remove(j,Z,ut,G,W,rt):yt&&(xt!==Ri||Ft>0&&Ft&64)?at(yt,Z,ut,!1,!0):(xt===Ri&&Ft&384||!G&&St&16)&&at(Et,Z,ut),rt&&$(j)}(Yt&&(ie=bt&&bt.onVnodeUnmounted)||Vt)&&ea(()=>{ie&&ro(ie,Z,j),Vt&&js(j,null,Z,"unmounted")},ut)},$=j=>{const{type:Z,el:ut,anchor:rt,transition:G}=j;if(Z===Ri){K(ut,rt);return}if(Z===Kc){B(j);return}const xt=()=>{i(ut),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(j.shapeFlag&1&&G&&!G.persisted){const{leave:bt,delayLeave:dt}=G,Et=()=>bt(ut,xt);dt?dt(j.el,xt,Et):Et()}else xt()},K=(j,Z)=>{let ut;for(;j!==Z;)ut=h(j),i(j),j=ut;i(Z)},q=(j,Z,ut)=>{const{bum:rt,scope:G,update:xt,subTree:bt,um:dt}=j;rt&&rp(rt),G.stop(),xt&&(xt.active=!1,R(bt,j,Z,ut)),dt&&ea(dt,Z),ea(()=>{j.isUnmounted=!0},Z),Z&&Z.pendingBranch&&!Z.isUnmounted&&j.asyncDep&&!j.asyncResolved&&j.suspenseId===Z.pendingId&&(Z.deps--,Z.deps===0&&Z.resolve())},at=(j,Z,ut,rt=!1,G=!1,xt=0)=>{for(let bt=xt;btj.shapeFlag&6?vt(j.component.subTree):j.shapeFlag&128?j.suspense.next():h(j.anchor||j.el),wt=(j,Z,ut)=>{j==null?Z._vnode&&R(Z._vnode,null,null,!0):v(Z._vnode||null,j,Z,null,null,null,ut),WO(),o_(),Z._vnode=j},W={p:v,um:R,m:_t,r:$,mt:P,mc:T,pc:J,pbc:M,n:vt,o:r};let It,Ot;return e&&([It,Ot]=e(W)),{render:wt,hydrate:It,createApp:CV(wt,It)}}function hc({effect:r,update:e},t){r.allowRecurse=e.allowRecurse=t}function wI(r,e,t=!1){const n=r.children,i=e.children;if(we(n)&&we(i))for(let a=0;a>1,r[t[s]]0&&(e[n]=t[a-1]),t[a]=n)}}for(a=t.length,o=t[a-1];a-- >0;)t[a]=o,o=e[o];return t}const SV=r=>r.__isTeleport,Ov=r=>r&&(r.disabled||r.disabled===""),sR=r=>typeof SVGElement<"u"&&r instanceof SVGElement,BT=(r,e)=>{const t=r&&r.to;return Pn(t)?e?e(t):null:t},xV={__isTeleport:!0,process(r,e,t,n,i,a,o,s,A,l){const{mc:u,pc:c,pbc:h,o:{insert:f,querySelector:p,createText:v,createComment:m}}=l,g=Ov(e.props);let{shapeFlag:_,children:E,dynamicChildren:B}=e;if(r==null){const L=e.el=v(""),O=e.anchor=v("");f(L,t,n),f(O,t,n);const b=e.target=BT(e.props,p),T=e.targetAnchor=v("");b&&(f(T,b),o=o||sR(b));const I=(M,x)=>{_&16&&u(E,M,x,i,a,o,s,A)};g?I(t,O):b&&I(b,T)}else{e.el=r.el;const L=e.anchor=r.anchor,O=e.target=r.target,b=e.targetAnchor=r.targetAnchor,T=Ov(r.props),I=T?t:O,M=T?L:b;if(o=o||sR(O),B?(h(r.dynamicChildren,B,I,i,a,o,s),wI(r,e,!0)):A||c(r,e,I,M,i,a,o,s,!1),g)T||ym(e,t,L,l,1);else if((e.props&&e.props.to)!==(r.props&&r.props.to)){const x=e.target=BT(e.props,p);x&&ym(e,x,null,l,0)}else T&&ym(e,O,b,l,1)}ND(e)},remove(r,e,t,n,{um:i,o:{remove:a}},o){const{shapeFlag:s,children:A,anchor:l,targetAnchor:u,target:c,props:h}=r;if(c&&a(u),(o||!Ov(h))&&(a(l),s&16))for(let f=0;f0?oo||tp:null,PD(),sh>0&&oo&&oo.push(r),r}function Vn(r,e,t,n,i,a){return UD(Ki(r,e,t,n,i,a,!0))}function $g(r,e,t,n,i){return UD(Wr(r,e,t,n,i,!0))}function Ou(r){return r?r.__v_isVNode===!0:!1}function Ys(r,e){return r.type===e.type&&r.key===e.key}function FV(r){}const H1="__vInternal",DD=({key:r})=>r??null,O0=({ref:r,ref_key:e,ref_for:t})=>r!=null?Pn(r)||Wi(r)||je(r)?{i:ia,r,k:e,f:!!t}:r:null;function Ki(r,e=null,t=null,n=0,i=null,a=r===Ri?0:1,o=!1,s=!1){const A={__v_isVNode:!0,__v_skip:!0,type:r,props:e,key:e&&DD(e),ref:e&&O0(e),scopeId:N1,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ia};return s?(CI(A,t),a&128&&r.normalize(A)):t&&(A.shapeFlag|=Pn(t)?8:16),sh>0&&!o&&oo&&(A.patchFlag>0||a&6)&&A.patchFlag!==32&&oo.push(A),A}const Wr=LV;function LV(r,e=null,t=null,n=0,i=null,a=!1){if((!r||r===ED)&&(r=Ba),Ou(r)){const s=sA(r,e,!0);return t&&CI(s,t),sh>0&&!a&&oo&&(s.shapeFlag&6?oo[oo.indexOf(r)]=s:oo.push(s)),s.patchFlag|=-2,s}if(QV(r)&&(r=r.__vccOpts),e){e=QD(e);let{class:s,style:A}=e;s&&!Pn(s)&&(e.class=Ng(s)),hn(A)&&(iI(A)&&!we(A)&&(A=Kn({},A)),e.style=Mg(A))}const o=Pn(r)?1:sD(r)?128:SV(r)?64:hn(r)?4:je(r)?2:0;return Ki(r,e,t,n,i,o,a,!0)}function QD(r){return r?iI(r)||H1 in r?Kn({},r):r:null}function sA(r,e,t=!1){const{props:n,ref:i,patchFlag:a,children:o}=r,s=e?HD(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:r.type,props:s,key:s&&DD(s),ref:e&&e.ref?t&&i?we(i)?i.concat(O0(e)):[i,O0(e)]:O0(e):i,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:o,target:r.target,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:e&&r.type!==Ri?a===-1?16:a|16:a,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:r.transition,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&sA(r.ssContent),ssFallback:r.ssFallback&&sA(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx}}function EI(r=" ",e=0){return Wr(oh,null,r,e)}function OV(r,e){const t=Wr(Kc,null,r);return t.staticCount=e,t}function dr(r="",e=!1){return e?(cn(),$g(Ba,null,r)):Wr(Ba,null,r)}function bo(r){return r==null||typeof r=="boolean"?Wr(Ba):we(r)?Wr(Ri,null,r.slice()):typeof r=="object"?au(r):Wr(oh,null,String(r))}function au(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:sA(r)}function CI(r,e){let t=0;const{shapeFlag:n}=r;if(e==null)e=null;else if(we(e))t=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),CI(r,i()),i._c&&(i._d=!0));return}else{t=32;const i=e._;!i&&!(H1 in e)?e._ctx=ia:i===3&&ia&&(ia.slots._===1?e._=1:(e._=2,r.patchFlag|=1024))}else je(e)?(e={default:e,_ctx:ia},t=32):(e=String(e),n&64?(t=16,e=[EI(e)]):t=8);r.children=e,r.shapeFlag|=t}function HD(...r){const e={};for(let t=0;tNi||ia,Ru=r=>{Ni=r,r.scope.on()},_u=()=>{Ni&&Ni.scope.off(),Ni=null};function kD(r){return r.vnode.shapeFlag&4}let Ep=!1;function $D(r,e=!1){Ep=e;const{props:t,children:n}=r.vnode,i=kD(r);gV(r,t,i,e),_V(r,n);const a=i?NV(r,e):void 0;return Ep=!1,a}function NV(r,e){const t=r.type;r.accessCache=Object.create(null),r.proxy=aI(new Proxy(r.ctx,_T));const{setup:n}=t;if(n){const i=r.setupContext=n.length>1?jD(r):null;Ru(r),Qp();const a=JA(n,r,0,[r.props,i]);if(Hp(),_u(),Zb(a)){if(a.then(_u,_u),e)return a.then(o=>{ST(r,o,e)}).catch(o=>{Eh(o,r,0)});r.asyncDep=a}else ST(r,a,e)}else VD(r,e)}function ST(r,e,t){je(e)?r.type.__ssrInlineRender?r.ssrRender=e:r.render=e:hn(e)&&(r.setupState=AI(e)),VD(r,t)}let l_,xT;function PV(r){l_=r,xT=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,cV))}}const UV=()=>!l_;function VD(r,e,t){const n=r.type;if(!r.render){if(!e&&l_&&!n.render){const i=n.template||mI(r).template;if(i){const{isCustomElement:a,compilerOptions:o}=r.appContext.config,{delimiters:s,compilerOptions:A}=n,l=Kn(Kn({isCustomElement:a,delimiters:s},o),A);n.render=l_(i,l)}}r.render=n.render||Ts,xT&&xT(r)}Ru(r),Qp(),hV(r),Hp(),_u()}function DV(r){return new Proxy(r.attrs,{get(e,t){return Mo(r,"get","$attrs"),e[t]}})}function jD(r){const e=n=>{r.exposed=n||{}};let t;return{get attrs(){return t||(t=DV(r))},slots:r.slots,emit:r.emit,expose:e}}function G1(r){if(r.exposed)return r.exposeProxy||(r.exposeProxy=new Proxy(AI(aI(r.exposed)),{get(e,t){if(t in e)return e[t];if(t in Lv)return Lv[t](r)},has(e,t){return t in e||t in Lv}}))}function bT(r,e=!0){return je(r)?r.displayName||r.name:r.name||e&&r.__name}function QV(r){return je(r)&&"__vccOpts"in r}const hr=(r,e)=>M$(r,e,Ep);function HV(){return null}function GV(){return null}function kV(r){}function $V(r,e){return null}function VV(){return KD().slots}function jV(){return KD().attrs}function KD(){const r=Yu();return r.setupContext||(r.setupContext=jD(r))}function KV(r,e){const t=we(r)?r.reduce((n,i)=>(n[i]={},n),{}):r;for(const n in e){const i=t[n];i?we(i)||je(i)?t[n]={type:i,default:e[n]}:i.default=e[n]:i===null&&(t[n]={default:e[n]})}return t}function zV(r,e){const t={};for(const n in r)e.includes(n)||Object.defineProperty(t,n,{enumerable:!0,get:()=>r[n]});return t}function YV(r){const e=Yu();let t=r();return _u(),Zb(t)&&(t=t.catch(n=>{throw Ru(e),n})),[t,()=>Ru(e)]}function zD(r,e,t){const n=arguments.length;return n===2?hn(e)&&!we(e)?Ou(e)?Wr(r,null,[e]):Wr(r,e):Wr(r,null,e):(n>3?t=Array.prototype.slice.call(arguments,2):n===3&&Ou(t)&&(t=[t]),Wr(r,e,t))}const YD=Symbol(""),XD=()=>Ce(YD);function XV(){}function WV(r,e,t,n){const i=t[n];if(i&&WD(i,r))return i;const a=e();return a.memo=r.slice(),t[n]=a}function WD(r,e){const t=r.memo;if(t.length!=e.length)return!1;for(let n=0;n0&&oo&&oo.push(r),!0}const qD="3.2.45",qV={createComponentInstance:GD,setupComponent:$D,renderComponentRoot:L0,setCurrentRenderingInstance:ig,isVNode:Ou,normalizeVNode:bo},ZV=qV,JV=null,tj=null,ej="http://www.w3.org/2000/svg",Lc=typeof document<"u"?document:null,AR=Lc&&Lc.createElement("template"),rj={insert:(r,e,t)=>{e.insertBefore(r,t||null)},remove:r=>{const e=r.parentNode;e&&e.removeChild(r)},createElement:(r,e,t,n)=>{const i=e?Lc.createElementNS(ej,r):Lc.createElement(r,t?{is:t}:void 0);return r==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:r=>Lc.createTextNode(r),createComment:r=>Lc.createComment(r),setText:(r,e)=>{r.nodeValue=e},setElementText:(r,e)=>{r.textContent=e},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Lc.querySelector(r),setScopeId(r,e){r.setAttribute(e,"")},insertStaticContent(r,e,t,n,i,a){const o=t?t.previousSibling:e.lastChild;if(i&&(i===a||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),t),!(i===a||!(i=i.nextSibling)););else{AR.innerHTML=n?`${r}`:r;const s=AR.content;if(n){const A=s.firstChild;for(;A.firstChild;)s.appendChild(A.firstChild);s.removeChild(A)}e.insertBefore(s,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}};function nj(r,e,t){const n=r._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?r.removeAttribute("class"):t?r.setAttribute("class",e):r.className=e}function ij(r,e,t){const n=r.style,i=Pn(t);if(t&&!i){for(const a in t)IT(n,a,t[a]);if(e&&!Pn(e))for(const a in e)t[a]==null&&IT(n,a,"")}else{const a=n.display;i?e!==t&&(n.cssText=t):e&&r.removeAttribute("style"),"_vod"in r&&(n.display=a)}}const lR=/\s*!important$/;function IT(r,e,t){if(we(t))t.forEach(n=>IT(r,e,n));else if(t==null&&(t=""),e.startsWith("--"))r.setProperty(e,t);else{const n=aj(r,e);lR.test(t)?r.setProperty(Wo(n),t.replace(lR,""),"important"):r[n]=t}}const uR=["Webkit","Moz","ms"],nC={};function aj(r,e){const t=nC[e];if(t)return t;let n=so(e);if(n!=="filter"&&n in r)return nC[e]=n;n=Dg(n);for(let i=0;iiC||(cj.then(()=>iC=0),iC=Date.now());function fj(r,e){const t=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=t.attached)return;Ro(pj(n,t.value),e,5,[n])};return t.value=r,t.attached=hj(),t}function pj(r,e){if(we(e)){const t=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{t.call(r),r._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const fR=/^on[a-z]/,dj=(r,e,t,n,i=!1,a,o,s,A)=>{e==="class"?nj(r,n,i):e==="style"?ij(r,t,n):Pg(e)?Wb(e)||lj(r,e,t,n,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):vj(r,e,n,i))?sj(r,e,n,a,o,s,A):(e==="true-value"?r._trueValue=n:e==="false-value"&&(r._falseValue=n),oj(r,e,n,i))};function vj(r,e,t,n){return n?!!(e==="innerHTML"||e==="textContent"||e in r&&fR.test(e)&&je(t)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&r.tagName==="INPUT"||e==="type"&&r.tagName==="TEXTAREA"||fR.test(e)&&Pn(t)?!1:e in r}function ZD(r,e){const t=vI(r);class n extends k1{constructor(a){super(t,a,e)}}return n.def=t,n}const gj=r=>ZD(r,f6),yj=typeof HTMLElement<"u"?HTMLElement:class{};class k1 extends yj{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,uI(()=>{this._connected||(OT(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let n=0;n{for(const i of n)this._setAttr(i.attributeName)}).observe(this,{attributes:!0});const e=(n,i=!1)=>{const{props:a,styles:o}=n;let s;if(a&&!we(a))for(const A in a){const l=a[A];(l===Number||l&&l.type===Number)&&(A in this._props&&(this._props[A]=Al(this._props[A])),(s||(s=Object.create(null)))[so(A)]=!0)}this._numberProps=s,i&&this._resolveProps(n),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then(n=>e(n,!0)):e(this._def)}_resolveProps(e){const{props:t}=e,n=we(t)?t:Object.keys(t||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of n.map(so))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a)}})}_setAttr(e){let t=this.getAttribute(e);const n=so(e);this._numberProps&&this._numberProps[n]&&(t=Al(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,i=!0){t!==this._props[e]&&(this._props[e]=t,i&&this._instance&&this._update(),n&&(t===!0?this.setAttribute(Wo(e),""):typeof t=="string"||typeof t=="number"?this.setAttribute(Wo(e),t+""):t||this.removeAttribute(Wo(e))))}_update(){OT(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Wr(this._def,Kn({},this._props));return this._instance||(e.ce=t=>{this._instance=t,t.isCE=!0;const n=(a,o)=>{this.dispatchEvent(new CustomEvent(a,{detail:o}))};t.emit=(a,...o)=>{n(a,o),Wo(a)!==a&&n(Wo(a),o)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof k1){t.parent=i._instance,t.provides=i._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(t=>{const n=document.createElement("style");n.textContent=t,this.shadowRoot.appendChild(n)})}}function mj(r="$style"){{const e=Yu();if(!e)return nn;const t=e.type.__cssModules;if(!t)return nn;const n=t[r];return n||nn}}function _j(r){const e=Yu();if(!e)return;const t=e.ut=(i=r(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(a=>LT(a,i))},n=()=>{const i=r(e.proxy);FT(e.subTree,i),t(i)};uD(n),Ze(()=>{const i=new MutationObserver(n);i.observe(e.subTree.el.parentNode,{childList:!0}),ir(()=>i.disconnect())})}function FT(r,e){if(r.shapeFlag&128){const t=r.suspense;r=t.activeBranch,t.pendingBranch&&!t.isHydrating&&t.effects.push(()=>{FT(t.activeBranch,e)})}for(;r.component;)r=r.component.subTree;if(r.shapeFlag&1&&r.el)LT(r.el,e);else if(r.type===Ri)r.children.forEach(t=>FT(t,e));else if(r.type===Kc){let{el:t,anchor:n}=r;for(;t&&(LT(t,e),t!==n);)t=t.nextSibling}}function LT(r,e){if(r.nodeType===1){const t=r.style;for(const n in e)t.setProperty(`--${n}`,e[n])}}const jl="transition",Qd="animation",$1=(r,{slots:e})=>zD(dI,t6(r),e);$1.displayName="Transition";const JD={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},wj=$1.props=Kn({},dI.props,JD),fc=(r,e=[])=>{we(r)?r.forEach(t=>t(...e)):r&&r(...e)},pR=r=>r?we(r)?r.some(e=>e.length>1):r.length>1:!1;function t6(r){const e={};for(const S in r)S in JD||(e[S]=r[S]);if(r.css===!1)return e;const{name:t="v",type:n,duration:i,enterFromClass:a=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:s=`${t}-enter-to`,appearFromClass:A=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:c=`${t}-leave-from`,leaveActiveClass:h=`${t}-leave-active`,leaveToClass:f=`${t}-leave-to`}=r,p=Ej(i),v=p&&p[0],m=p&&p[1],{onBeforeEnter:g,onEnter:_,onEnterCancelled:E,onLeave:B,onLeaveCancelled:L,onBeforeAppear:O=g,onAppear:b=_,onAppearCancelled:T=E}=e,I=(S,N,P)=>{eu(S,N?u:s),eu(S,N?l:o),P&&P()},M=(S,N)=>{S._isLeaving=!1,eu(S,c),eu(S,f),eu(S,h),N&&N()},x=S=>(N,P)=>{const X=S?b:_,z=()=>I(N,S,P);fc(X,[N,z]),dR(()=>{eu(N,S?A:a),$A(N,S?u:s),pR(X)||vR(N,n,v,z)})};return Kn(e,{onBeforeEnter(S){fc(g,[S]),$A(S,a),$A(S,o)},onBeforeAppear(S){fc(O,[S]),$A(S,A),$A(S,l)},onEnter:x(!1),onAppear:x(!0),onLeave(S,N){S._isLeaving=!0;const P=()=>M(S,N);$A(S,c),r6(),$A(S,h),dR(()=>{S._isLeaving&&(eu(S,c),$A(S,f),pR(B)||vR(S,n,m,P))}),fc(B,[S,P])},onEnterCancelled(S){I(S,!1),fc(E,[S])},onAppearCancelled(S){I(S,!0),fc(T,[S])},onLeaveCancelled(S){M(S),fc(L,[S])}})}function Ej(r){if(r==null)return null;if(hn(r))return[aC(r.enter),aC(r.leave)];{const e=aC(r);return[e,e]}}function aC(r){return Al(r)}function $A(r,e){e.split(/\s+/).forEach(t=>t&&r.classList.add(t)),(r._vtc||(r._vtc=new Set)).add(e)}function eu(r,e){e.split(/\s+/).forEach(n=>n&&r.classList.remove(n));const{_vtc:t}=r;t&&(t.delete(e),t.size||(r._vtc=void 0))}function dR(r){requestAnimationFrame(()=>{requestAnimationFrame(r)})}let Cj=0;function vR(r,e,t,n){const i=r._endId=++Cj,a=()=>{i===r._endId&&n()};if(t)return setTimeout(a,t);const{type:o,timeout:s,propCount:A}=e6(r,e);if(!o)return n();const l=o+"end";let u=0;const c=()=>{r.removeEventListener(l,h),a()},h=f=>{f.target===r&&++u>=A&&c()};setTimeout(()=>{u(t[p]||"").split(", "),i=n(`${jl}Delay`),a=n(`${jl}Duration`),o=gR(i,a),s=n(`${Qd}Delay`),A=n(`${Qd}Duration`),l=gR(s,A);let u=null,c=0,h=0;e===jl?o>0&&(u=jl,c=o,h=a.length):e===Qd?l>0&&(u=Qd,c=l,h=A.length):(c=Math.max(o,l),u=c>0?o>l?jl:Qd:null,h=u?u===jl?a.length:A.length:0);const f=u===jl&&/\b(transform|all)(,|$)/.test(n(`${jl}Property`).toString());return{type:u,timeout:c,propCount:h,hasTransform:f}}function gR(r,e){for(;r.lengthyR(t)+yR(r[n])))}function yR(r){return Number(r.slice(0,-1).replace(",","."))*1e3}function r6(){return document.body.offsetHeight}const n6=new WeakMap,i6=new WeakMap,Bj={name:"TransitionGroup",props:Kn({},wj,{tag:String,moveClass:String}),setup(r,{slots:e}){const t=Yu(),n=pI();let i,a;return D1(()=>{if(!i.length)return;const o=r.moveClass||`${r.name||"v"}-move`;if(!Ij(i[0].el,t.vnode.el,o))return;i.forEach(Sj),i.forEach(xj);const s=i.filter(bj);r6(),s.forEach(A=>{const l=A.el,u=l.style;$A(l,o),u.transform=u.webkitTransform=u.transitionDuration="";const c=l._moveCb=h=>{h&&h.target!==l||(!h||/transform$/.test(h.propertyName))&&(l.removeEventListener("transitionend",c),l._moveCb=null,eu(l,o))};l.addEventListener("transitionend",c)})}),()=>{const o=Lr(r),s=t6(o);let A=o.tag||Ri;i=a,a=e.default?P1(e.default()):[];for(let l=0;l{o.split(/\s+/).forEach(s=>s&&n.classList.remove(s))}),t.split(/\s+/).forEach(o=>o&&n.classList.add(o)),n.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(n);const{hasTransform:a}=e6(n);return i.removeChild(n),a}const Mu=r=>{const e=r.props["onUpdate:modelValue"]||!1;return we(e)?t=>rp(e,t):e};function Fj(r){r.target.composing=!0}function mR(r){const e=r.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const u_={created(r,{modifiers:{lazy:e,trim:t,number:n}},i){r._assign=Mu(i);const a=n||i.props&&i.props.type==="number";WA(r,e?"change":"input",o=>{if(o.target.composing)return;let s=r.value;t&&(s=s.trim()),a&&(s=Al(s)),r._assign(s)}),t&&WA(r,"change",()=>{r.value=r.value.trim()}),e||(WA(r,"compositionstart",Fj),WA(r,"compositionend",mR),WA(r,"change",mR))},mounted(r,{value:e}){r.value=e??""},beforeUpdate(r,{value:e,modifiers:{lazy:t,trim:n,number:i}},a){if(r._assign=Mu(a),r.composing||document.activeElement===r&&r.type!=="range"&&(t||n&&r.value.trim()===e||(i||r.type==="number")&&Al(r.value)===e))return;const o=e??"";r.value!==o&&(r.value=o)}},BI={deep:!0,created(r,e,t){r._assign=Mu(t),WA(r,"change",()=>{const n=r._modelValue,i=Cp(r),a=r.checked,o=r._assign;if(we(n)){const s=S1(n,i),A=s!==-1;if(a&&!A)o(n.concat(i));else if(!a&&A){const l=[...n];l.splice(s,1),o(l)}}else if(wh(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(o6(r,a))})},mounted:_R,beforeUpdate(r,e,t){r._assign=Mu(t),_R(r,e,t)}};function _R(r,{value:e,oldValue:t},n){r._modelValue=e,we(e)?r.checked=S1(e,n.props.value)>-1:wh(e)?r.checked=e.has(n.props.value):e!==t&&(r.checked=Iu(e,o6(r,!0)))}const TI={created(r,{value:e},t){r.checked=Iu(e,t.props.value),r._assign=Mu(t),WA(r,"change",()=>{r._assign(Cp(r))})},beforeUpdate(r,{value:e,oldValue:t},n){r._assign=Mu(n),e!==t&&(r.checked=Iu(e,n.props.value))}},a6={deep:!0,created(r,{value:e,modifiers:{number:t}},n){const i=wh(e);WA(r,"change",()=>{const a=Array.prototype.filter.call(r.options,o=>o.selected).map(o=>t?Al(Cp(o)):Cp(o));r._assign(r.multiple?i?new Set(a):a:a[0])}),r._assign=Mu(n)},mounted(r,{value:e}){wR(r,e)},beforeUpdate(r,e,t){r._assign=Mu(t)},updated(r,{value:e}){wR(r,e)}};function wR(r,e){const t=r.multiple;if(!(t&&!we(e)&&!wh(e))){for(let n=0,i=r.options.length;n-1:a.selected=e.has(o);else if(Iu(Cp(a),e)){r.selectedIndex!==n&&(r.selectedIndex=n);return}}!t&&r.selectedIndex!==-1&&(r.selectedIndex=-1)}}function Cp(r){return"_value"in r?r._value:r.value}function o6(r,e){const t=e?"_trueValue":"_falseValue";return t in r?r[t]:e}const s6={created(r,e,t){mm(r,e,t,null,"created")},mounted(r,e,t){mm(r,e,t,null,"mounted")},beforeUpdate(r,e,t,n){mm(r,e,t,n,"beforeUpdate")},updated(r,e,t,n){mm(r,e,t,n,"updated")}};function A6(r,e){switch(r){case"SELECT":return a6;case"TEXTAREA":return u_;default:switch(e){case"checkbox":return BI;case"radio":return TI;default:return u_}}}function mm(r,e,t,n,i){const o=A6(r.tagName,t.props&&t.props.type)[i];o&&o(r,e,t,n)}function Lj(){u_.getSSRProps=({value:r})=>({value:r}),TI.getSSRProps=({value:r},e)=>{if(e.props&&Iu(e.props.value,r))return{checked:!0}},BI.getSSRProps=({value:r},e)=>{if(we(r)){if(e.props&&S1(r,e.props.value)>-1)return{checked:!0}}else if(wh(r)){if(e.props&&r.has(e.props.value))return{checked:!0}}else if(r)return{checked:!0}},s6.getSSRProps=(r,e)=>{if(typeof e.type!="string")return;const t=A6(e.type.toUpperCase(),e.props&&e.props.type);if(t.getSSRProps)return t.getSSRProps(r,e)}}const Oj=["ctrl","shift","alt","meta"],Rj={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,e)=>Oj.some(t=>r[`${t}Key`]&&!e.includes(t))},Mj=(r,e)=>(t,...n)=>{for(let i=0;it=>{if(!("key"in t))return;const n=Wo(t.key);if(e.some(i=>i===n||Nj[i]===n))return r(t)},l6={beforeMount(r,{value:e},{transition:t}){r._vod=r.style.display==="none"?"":r.style.display,t&&e?t.beforeEnter(r):Hd(r,e)},mounted(r,{value:e},{transition:t}){t&&e&&t.enter(r)},updated(r,{value:e,oldValue:t},{transition:n}){!e!=!t&&(n?e?(n.beforeEnter(r),Hd(r,!0),n.enter(r)):n.leave(r,()=>{Hd(r,!1)}):Hd(r,e))},beforeUnmount(r,{value:e}){Hd(r,e)}};function Hd(r,e){r.style.display=e?r._vod:"none"}function Uj(){l6.getSSRProps=({value:r})=>{if(!r)return{style:{display:"none"}}}}const u6=Kn({patchProp:dj},rj);let Mv,ER=!1;function c6(){return Mv||(Mv=OD(u6))}function h6(){return Mv=ER?Mv:RD(u6),ER=!0,Mv}const OT=(...r)=>{c6().render(...r)},f6=(...r)=>{h6().hydrate(...r)},p6=(...r)=>{const e=c6().createApp(...r),{mount:t}=e;return e.mount=n=>{const i=d6(n);if(!i)return;const a=e._component;!je(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const o=t(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e},Dj=(...r)=>{const e=h6().createApp(...r),{mount:t}=e;return e.mount=n=>{const i=d6(n);if(i)return t(i,!0,i instanceof SVGElement)},e};function d6(r){return Pn(r)?document.querySelector(r):r}let CR=!1;const Qj=()=>{CR||(CR=!0,Lj(),Uj())},Hj=()=>{},Gj=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:dI,Comment:Ba,EffectScope:tI,Fragment:Ri,KeepAlive:nV,ReactiveEffect:Qg,Static:Kc,Suspense:z$,Teleport:IV,Text:oh,Transition:$1,TransitionGroup:Tj,VueElement:k1,callWithAsyncErrorHandling:Ro,callWithErrorHandling:JA,camelize:so,capitalize:Dg,cloneVNode:sA,compatUtils:tj,compile:Hj,computed:hr,createApp:p6,createBlock:$g,createCommentVNode:dr,createElementBlock:Vn,createElementVNode:Ki,createHydrationRenderer:RD,createPropsRestProxy:zV,createRenderer:OD,createSSRApp:Dj,createSlots:lV,createStaticVNode:OV,createTextVNode:EI,createVNode:Wr,customRef:L$,defineAsyncComponent:eV,defineComponent:vI,defineCustomElement:ZD,defineEmits:GV,defineExpose:kV,defineProps:HV,defineSSRCustomElement:gj,get devtools(){return Ff},effect:J9,effectScope:Y9,getCurrentInstance:Yu,getCurrentScope:X9,getTransitionRawChildren:P1,guardReactiveProps:QD,h:zD,handleError:Eh,hydrate:f6,initCustomFormatter:XV,initDirectivesForSSR:Qj,inject:Ce,isMemoSame:WD,isProxy:iI,isReactive:Vc,isReadonly:ih,isRef:Wi,isRuntimeOnly:UV,isShallow:tg,isVNode:Ou,markRaw:aI,mergeDefaults:KV,mergeProps:HD,nextTick:uI,normalizeClass:Ng,normalizeProps:U9,normalizeStyle:Mg,onActivated:fD,onBeforeMount:vD,onBeforeUnmount:Q1,onBeforeUpdate:gD,onDeactivated:pD,onErrorCaptured:wD,onMounted:Ze,onRenderTracked:_D,onRenderTriggered:mD,onScopeDispose:W9,onServerPrefetch:yD,onUnmounted:ir,onUpdated:D1,openBlock:cn,popScopeId:oD,provide:Mr,proxyRefs:AI,pushScopeId:aD,queuePostFlushCb:cI,reactive:Hg,readonly:nI,ref:Gn,registerRuntimeCompiler:PV,render:OT,renderList:CD,renderSlot:mr,resolveComponent:Lf,resolveDirective:AV,resolveDynamicComponent:sV,resolveFilter:JV,resolveTransitionHooks:wp,setBlockTracking:TT,setDevtoolsHook:nD,setTransitionHooks:ah,shallowReactive:X2,shallowReadonly:T$,shallowRef:S$,ssrContextKey:YD,ssrUtils:ZV,stop:t$,toDisplayString:tu,toHandlerKey:Fv,toHandlers:uV,toRaw:Lr,toRef:Z2,toRefs:Lu,transformVNodeArgs:FV,triggerRef:b$,unref:q2,useAttrs:jV,useCssModule:mj,useCssVars:_j,useSSRContext:XD,useSlots:VV,useTransitionState:pI,vModelCheckbox:BI,vModelDynamic:s6,vModelRadio:TI,vModelSelect:a6,vModelText:u_,vShow:l6,version:qD,warn:N$,watch:he,watchEffect:lD,watchPostEffect:uD,watchSyncEffect:Z$,withAsyncContext:YV,withCtx:Nc,withDefaults:$V,withDirectives:aV,withKeys:Pj,withMemo:WV,withModifiers:Mj,withScopeId:G$},Symbol.toStringTag,{value:"Module"})),kj={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};let $j=class{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent!==void 0?e.extent:null,this.worldExtent_=e.worldExtent!==void 0?e.worldExtent:null,this.axisOrientation_=e.axisOrientation!==void 0?e.axisOrientation:"enu",this.global_=e.global!==void 0?e.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||kj[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}};const v6=$j,Vg=6378137,kf=Math.PI*Vg,Vj=[-kf,-kf,kf,kf],jj=[-180,-85,180,85],_m=Vg*Math.log(Math.tan(Math.PI/2));let uf=class extends v6{constructor(e){super({code:e,units:"m",extent:Vj,global:!0,worldExtent:jj,getPointResolution:function(t,n){return t/Math.cosh(n[1]/Vg)}})}};const BR=[new uf("EPSG:3857"),new uf("EPSG:102100"),new uf("EPSG:102113"),new uf("EPSG:900913"),new uf("http://www.opengis.net/def/crs/EPSG/0/3857"),new uf("http://www.opengis.net/gml/srs/epsg.xml#3857")];function Kj(r,e,t){const n=r.length;t=t>1?t:2,e===void 0&&(t>2?e=r.slice():e=new Array(n));for(let i=0;i_m?a=_m:a<-_m&&(a=-_m),e[i+1]=a}return e}function zj(r,e,t){const n=r.length;t=t>1?t:2,e===void 0&&(t>2?e=r.slice():e=new Array(n));for(let i=0;i()=>(e||r((e={exports:{}}).exports,e),e.exports);var aRt=F9(Ci=>{(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function t(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=t(i);fetch(i.href,a)}})();function T1(r,e){const t=Object.create(null),n=r.split(",");for(let i=0;i!!t[i.toLowerCase()]:i=>!!t[i]}const L9="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",O9=T1(L9);function Mg(r){if(we(r)){const e={};for(let t=0;t{if(t){const n=t.split(M9);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Ng(r){let e="";if(Dn(r))e=r;else if(we(r))for(let t=0;tIu(t,e))}const Ki=r=>Dn(r)?r:r==null?"":we(r)||hn(r)&&(r.toString===N2||!je(r.toString))?JSON.stringify(r,M2,2):String(r),M2=(r,e)=>e&&e.__v_isRef?M2(r,e.value):ep(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[n,i])=>(t[`${n} =>`]=i,t),{})}:wh(e)?{[`Set(${e.size})`]:[...e.values()]}:hn(e)&&!we(e)&&!P2(e)?String(e):e,an={},tp=[],bs=()=>{},G9=()=>!1,k9=/^on[^a-z]/,Pg=r=>k9.test(r),Wx=r=>r.startsWith("onUpdate:"),zn=Object.assign,qx=(r,e)=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)},$9=Object.prototype.hasOwnProperty,xr=(r,e)=>$9.call(r,e),we=Array.isArray,ep=r=>Ug(r)==="[object Map]",wh=r=>Ug(r)==="[object Set]",kO=r=>Ug(r)==="[object Date]",je=r=>typeof r=="function",Dn=r=>typeof r=="string",Jv=r=>typeof r=="symbol",hn=r=>r!==null&&typeof r=="object",Zx=r=>hn(r)&&je(r.then)&&je(r.catch),N2=Object.prototype.toString,Ug=r=>N2.call(r),V9=r=>Ug(r).slice(8,-1),P2=r=>Ug(r)==="[object Object]",Jx=r=>Dn(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,Iv=T1(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),S1=r=>{const e=Object.create(null);return t=>e[t]||(e[t]=r(t))},j9=/-(\w)/g,Ao=S1(r=>r.replace(j9,(e,t)=>t?t.toUpperCase():"")),K9=/\B([A-Z])/g,qo=S1(r=>r.replace(K9,"-$1").toLowerCase()),Dg=S1(r=>r.charAt(0).toUpperCase()+r.slice(1)),Fv=S1(r=>r?`on${Dg(r)}`:""),_p=(r,e)=>!Object.is(r,e),rp=(r,e)=>{for(let t=0;t{Object.defineProperty(r,e,{configurable:!0,enumerable:!1,value:t})},ll=r=>{const e=parseFloat(r);return isNaN(e)?r:e};let $O;const z9=()=>$O||($O=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let xo;class tI{constructor(e=!1){this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=xo,!e&&xo&&(this.index=(xo.scopes||(xo.scopes=[])).push(this)-1)}run(e){if(this.active){const t=xo;try{return xo=this,e()}finally{xo=t}}}on(){xo=this}off(){xo=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const e=new Set(r);return e.w=0,e.n=0,e},D2=r=>(r.w&Fu)>0,Q2=r=>(r.n&Fu)>0,q9=({deps:r})=>{if(r.length)for(let e=0;e{const{deps:e}=r;if(e.length){let t=0;for(let n=0;n{(u==="length"||u>=A)&&s.push(l)})}else switch(t!==void 0&&s.push(o.get(t)),e){case"add":we(r)?Jx(t)&&s.push(o.get("length")):(s.push(o.get($c)),ep(r)&&s.push(o.get(vT)));break;case"delete":we(r)||(s.push(o.get($c)),ep(r)&&s.push(o.get(vT)));break;case"set":ep(r)&&s.push(o.get($c));break}if(s.length===1)s[0]&&gT(s[0]);else{const A=[];for(const l of s)l&&A.push(...l);gT(eI(A))}}function gT(r,e){const t=we(r)?r:[...r];for(const n of t)n.computed&&jO(n);for(const n of t)n.computed||jO(n)}function jO(r,e){(r!==Cs||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}const e$=T1("__proto__,__v_isRef,__isVue"),k2=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(Jv)),r$=x1(),n$=x1(!1,!0),i$=x1(!0),a$=x1(!0,!0),KO=o$();function o$(){const r={};return["includes","indexOf","lastIndexOf"].forEach(e=>{r[e]=function(...t){const n=Lr(this);for(let a=0,o=this.length;a{r[e]=function(...t){Qp();const n=Lr(this)[e].apply(this,t);return Hp(),n}}),r}function x1(r=!1,e=!1){return function(n,i,a){if(i==="__v_isReactive")return!r;if(i==="__v_isReadonly")return r;if(i==="__v_isShallow")return e;if(i==="__v_raw"&&a===(r?e?X2:Y2:e?z2:K2).get(n))return n;const o=we(n);if(!r&&o&&xr(KO,i))return Reflect.get(KO,i,a);const s=Reflect.get(n,i,a);return(Jv(i)?k2.has(i):e$(i))||(r||No(n,"get",i),e)?s:qi(s)?o&&Jx(i)?s:s.value:hn(s)?r?nI(s):Hg(s):s}}const s$=$2(),A$=$2(!0);function $2(r=!1){return function(t,n,i,a){let o=t[n];if(ih(o)&&qi(o)&&!qi(i))return!1;if(!r&&(!tg(i)&&!ih(i)&&(o=Lr(o),i=Lr(i)),!we(t)&&qi(o)&&!qi(i)))return o.value=i,!0;const s=we(t)&&Jx(n)?Number(n)r,I1=r=>Reflect.getPrototypeOf(r);function lm(r,e,t=!1,n=!1){r=r.__v_raw;const i=Lr(r),a=Lr(e);t||(e!==a&&No(i,"get",e),No(i,"get",a));const{has:o}=I1(i),s=n?rI:t?oI:eg;if(o.call(i,e))return s(r.get(e));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(e)}function um(r,e=!1){const t=this.__v_raw,n=Lr(t),i=Lr(r);return e||(r!==i&&No(n,"has",r),No(n,"has",i)),r===i?t.has(r):t.has(r)||t.has(i)}function cm(r,e=!1){return r=r.__v_raw,!e&&No(Lr(r),"iterate",$c),Reflect.get(r,"size",r)}function zO(r){r=Lr(r);const e=Lr(this);return I1(e).has.call(e,r)||(e.add(r),ul(e,"add",r,r)),this}function YO(r,e){e=Lr(e);const t=Lr(this),{has:n,get:i}=I1(t);let a=n.call(t,r);a||(r=Lr(r),a=n.call(t,r));const o=i.call(t,r);return t.set(r,e),a?_p(e,o)&&ul(t,"set",r,e):ul(t,"add",r,e),this}function XO(r){const e=Lr(this),{has:t,get:n}=I1(e);let i=t.call(e,r);i||(r=Lr(r),i=t.call(e,r)),n&&n.call(e,r);const a=e.delete(r);return i&&ul(e,"delete",r,void 0),a}function WO(){const r=Lr(this),e=r.size!==0,t=r.clear();return e&&ul(r,"clear",void 0,void 0),t}function hm(r,e){return function(n,i){const a=this,o=a.__v_raw,s=Lr(o),A=e?rI:r?oI:eg;return!r&&No(s,"iterate",$c),o.forEach((l,u)=>n.call(i,A(l),A(u),a))}}function fm(r,e,t){return function(...n){const i=this.__v_raw,a=Lr(i),o=ep(a),s=r==="entries"||r===Symbol.iterator&&o,A=r==="keys"&&o,l=i[r](...n),u=t?rI:e?oI:eg;return!e&&No(a,"iterate",A?vT:$c),{next(){const{value:c,done:h}=l.next();return h?{value:c,done:h}:{value:s?[u(c[0]),u(c[1])]:u(c),done:h}},[Symbol.iterator](){return this}}}}function Vl(r){return function(...e){return r==="delete"?!1:this}}function p$(){const r={get(a){return lm(this,a)},get size(){return cm(this)},has:um,add:zO,set:YO,delete:XO,clear:WO,forEach:hm(!1,!1)},e={get(a){return lm(this,a,!1,!0)},get size(){return cm(this)},has:um,add:zO,set:YO,delete:XO,clear:WO,forEach:hm(!1,!0)},t={get(a){return lm(this,a,!0)},get size(){return cm(this,!0)},has(a){return um.call(this,a,!0)},add:Vl("add"),set:Vl("set"),delete:Vl("delete"),clear:Vl("clear"),forEach:hm(!0,!1)},n={get(a){return lm(this,a,!0,!0)},get size(){return cm(this,!0)},has(a){return um.call(this,a,!0)},add:Vl("add"),set:Vl("set"),delete:Vl("delete"),clear:Vl("clear"),forEach:hm(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{r[a]=fm(a,!1,!1),t[a]=fm(a,!0,!1),e[a]=fm(a,!1,!0),n[a]=fm(a,!0,!0)}),[r,t,e,n]}const[d$,v$,g$,y$]=p$();function F1(r,e){const t=e?r?y$:g$:r?v$:d$;return(n,i,a)=>i==="__v_isReactive"?!r:i==="__v_isReadonly"?r:i==="__v_raw"?n:Reflect.get(xr(t,i)&&i in n?t:n,i,a)}const m$={get:F1(!1,!1)},_$={get:F1(!1,!0)},w$={get:F1(!0,!1)},E$={get:F1(!0,!0)},K2=new WeakMap,z2=new WeakMap,Y2=new WeakMap,X2=new WeakMap;function C$(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function B$(r){return r.__v_skip||!Object.isExtensible(r)?0:C$(V9(r))}function Hg(r){return ih(r)?r:L1(r,!1,V2,m$,K2)}function W2(r){return L1(r,!1,h$,_$,z2)}function nI(r){return L1(r,!0,j2,w$,Y2)}function T$(r){return L1(r,!0,f$,E$,X2)}function L1(r,e,t,n,i){if(!hn(r)||r.__v_raw&&!(e&&r.__v_isReactive))return r;const a=i.get(r);if(a)return a;const o=B$(r);if(o===0)return r;const s=new Proxy(r,o===2?n:t);return i.set(r,s),s}function Vc(r){return ih(r)?Vc(r.__v_raw):!!(r&&r.__v_isReactive)}function ih(r){return!!(r&&r.__v_isReadonly)}function tg(r){return!!(r&&r.__v_isShallow)}function iI(r){return Vc(r)||ih(r)}function Lr(r){const e=r&&r.__v_raw;return e?Lr(e):r}function aI(r){return a_(r,"__v_skip",!0),r}const eg=r=>hn(r)?Hg(r):r,oI=r=>hn(r)?nI(r):r;function sI(r){mu&&Cs&&(r=Lr(r),G2(r.dep||(r.dep=eI())))}function O1(r,e){r=Lr(r),r.dep&&gT(r.dep)}function qi(r){return!!(r&&r.__v_isRef===!0)}function $n(r){return q2(r,!1)}function b$(r){return q2(r,!0)}function q2(r,e){return qi(r)?r:new S$(r,e)}class S${constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Lr(e),this._value=t?e:eg(e)}get value(){return sI(this),this._value}set value(e){const t=this.__v_isShallow||tg(e)||ih(e);e=t?e:Lr(e),_p(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:eg(e),O1(this))}}function x$(r){O1(r)}function Z2(r){return qi(r)?r.value:r}const I$={get:(r,e,t)=>Z2(Reflect.get(r,e,t)),set:(r,e,t,n)=>{const i=r[e];return qi(i)&&!qi(t)?(i.value=t,!0):Reflect.set(r,e,t,n)}};function AI(r){return Vc(r)?r:new Proxy(r,I$)}class F${constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e(()=>sI(this),()=>O1(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function L$(r){return new F$(r)}function Lu(r){const e=we(r)?new Array(r.length):{};for(const t in r)e[t]=J2(r,t);return e}class O${constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}}function J2(r,e,t){const n=r[e];return qi(n)?n:new O$(r,e,t)}var tD;class R${constructor(e,t,n,i){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[tD]=!1,this._dirty=!0,this.effect=new Qg(e,()=>{this._dirty||(this._dirty=!0,O1(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=Lr(this);return sI(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}tD="__v_isReadonly";function M$(r,e,t=!1){let n,i;const a=je(r);return a?(n=r,i=bs):(n=r.get,i=r.set),new R$(n,i,a||!i,t)}function N$(r,...e){}function tl(r,e,t,n){let i;try{i=n?r(...n):r()}catch(a){Eh(a,e,t)}return i}function Mo(r,e,t,n){if(je(r)){const a=tl(r,e,t,n);return a&&Zx(a)&&a.catch(o=>{Eh(o,e,t)}),a}const i=[];for(let a=0;a>>1;ng(Ca[n])Ys&&Ca.splice(e,1)}function cI(r){we(r)?np.push(...r):(!KA||!KA.includes(r,r.allowRecurse?Fc+1:Fc))&&np.push(r),rD()}function qO(r,e=rg?Ys+1:0){for(;eng(t)-ng(n)),Fc=0;Fcr.id==null?1/0:r.id,Q$=(r,e)=>{const t=ng(r)-ng(e);if(t===0){if(r.pre&&!e.pre)return-1;if(e.pre&&!r.pre)return 1}return t};function nD(r){yT=!1,rg=!0,Ca.sort(Q$);const e=bs;try{for(Ys=0;YsFf.emit(i,...a)),pm=[]):typeof window<"u"&&window.HTMLElement&&!(!((n=(t=window.navigator)===null||t===void 0?void 0:t.userAgent)===null||n===void 0)&&n.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{iD(a,e)}),setTimeout(()=>{Ff||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,pm=[])},3e3)):pm=[]}function H$(r,e,...t){if(r.isUnmounted)return;const n=r.vnode.props||an;let i=t;const a=e.startsWith("update:"),o=a&&e.slice(7);if(o&&o in n){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:c,trim:h}=n[u]||an;h&&(i=t.map(f=>Dn(f)?f.trim():f)),c&&(i=t.map(ll))}let s,A=n[s=Fv(e)]||n[s=Fv(Ao(e))];!A&&a&&(A=n[s=Fv(qo(e))]),A&&Mo(A,r,6,i);const l=n[s+"Once"];if(l){if(!r.emitted)r.emitted={};else if(r.emitted[s])return;r.emitted[s]=!0,Mo(l,r,6,i)}}function aD(r,e,t=!1){const n=e.emitsCache,i=n.get(r);if(i!==void 0)return i;const a=r.emits;let o={},s=!1;if(!je(r)){const A=l=>{const u=aD(l,e,!0);u&&(s=!0,zn(o,u))};!t&&e.mixins.length&&e.mixins.forEach(A),r.extends&&A(r.extends),r.mixins&&r.mixins.forEach(A)}return!a&&!s?(hn(r)&&n.set(r,null),null):(we(a)?a.forEach(A=>o[A]=null):zn(o,a),hn(r)&&n.set(r,o),o)}function M1(r,e){return!r||!Pg(e)?!1:(e=e.slice(2).replace(/Once$/,""),xr(r,e[0].toLowerCase()+e.slice(1))||xr(r,qo(e))||xr(r,e))}let aa=null,N1=null;function ig(r){const e=aa;return aa=r,N1=r&&r.type.__scopeId||null,e}function oD(r){N1=r}function sD(){N1=null}const G$=r=>Nc;function Nc(r,e=aa,t){if(!e||r._n)return r;const n=(...i)=>{n._d&&TT(-1);const a=ig(e);let o;try{o=r(...i)}finally{ig(a),n._d&&TT(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function L0(r){const{type:e,vnode:t,proxy:n,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:A,emit:l,render:u,renderCache:c,data:h,setupState:f,ctx:p,inheritAttrs:v}=r;let m,g;const _=ig(r);try{if(t.shapeFlag&4){const B=i||n;m=Io(u.call(B,B,c,a,f,h,p)),g=A}else{const B=e;m=Io(B.length>1?B(a,{attrs:A,slots:s,emit:l}):B(a,null)),g=e.props?A:$$(A)}}catch(B){Rv.length=0,Eh(B,r,1),m=Wr(Ta)}let E=m;if(g&&v!==!1){const B=Object.keys(g),{shapeFlag:L}=E;B.length&&L&7&&(o&&B.some(Wx)&&(g=V$(g,o)),E=AA(E,g))}return t.dirs&&(E=AA(E),E.dirs=E.dirs?E.dirs.concat(t.dirs):t.dirs),t.transition&&(E.transition=t.transition),m=E,ig(_),m}function k$(r){let e;for(let t=0;t{let e;for(const t in r)(t==="class"||t==="style"||Pg(t))&&((e||(e={}))[t]=r[t]);return e},V$=(r,e)=>{const t={};for(const n in r)(!Wx(n)||!(n.slice(9)in e))&&(t[n]=r[n]);return t};function j$(r,e,t){const{props:n,children:i,component:a}=r,{props:o,children:s,patchFlag:A}=e,l=a.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&A>=0){if(A&1024)return!0;if(A&16)return n?ZO(n,o,l):!!o;if(A&8){const u=e.dynamicProps;for(let c=0;cr.__isSuspense,K$={name:"Suspense",__isSuspense:!0,process(r,e,t,n,i,a,o,s,A,l){r==null?Y$(e,t,n,i,a,o,s,A,l):X$(r,e,t,n,i,o,s,A,l)},hydrate:W$,create:fI,normalize:q$},z$=K$;function ag(r,e){const t=r.props&&r.props[e];je(t)&&t()}function Y$(r,e,t,n,i,a,o,s,A){const{p:l,o:{createElement:u}}=A,c=u("div"),h=r.suspense=fI(r,i,n,e,c,t,a,o,s,A);l(null,h.pendingBranch=r.ssContent,c,null,n,h,a,o),h.deps>0?(ag(r,"onPending"),ag(r,"onFallback"),l(null,r.ssFallback,e,t,n,null,a,o),ip(h,r.ssFallback)):h.resolve()}function X$(r,e,t,n,i,a,o,s,{p:A,um:l,o:{createElement:u}}){const c=e.suspense=r.suspense;c.vnode=e,e.el=r.el;const h=e.ssContent,f=e.ssFallback,{activeBranch:p,pendingBranch:v,isInFallback:m,isHydrating:g}=c;if(v)c.pendingBranch=h,Xs(h,v)?(A(v,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():m&&(A(p,f,t,n,i,null,a,o,s),ip(c,f))):(c.pendingId++,g?(c.isHydrating=!1,c.activeBranch=v):l(v,i,c),c.deps=0,c.effects.length=0,c.hiddenContainer=u("div"),m?(A(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():(A(p,f,t,n,i,null,a,o,s),ip(c,f))):p&&Xs(h,p)?(A(p,h,t,n,i,c,a,o,s),c.resolve(!0)):(A(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0&&c.resolve()));else if(p&&Xs(h,p))A(p,h,t,n,i,c,a,o,s),ip(c,h);else if(ag(e,"onPending"),c.pendingBranch=h,c.pendingId++,A(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0)c.resolve();else{const{timeout:_,pendingId:E}=c;_>0?setTimeout(()=>{c.pendingId===E&&c.fallback(f)},_):_===0&&c.fallback(f)}}function fI(r,e,t,n,i,a,o,s,A,l,u=!1){const{p:c,m:h,um:f,n:p,o:{parentNode:v,remove:m}}=l,g=ll(r.props&&r.props.timeout),_={vnode:r,parent:e,parentComponent:t,isSVG:o,container:n,hiddenContainer:i,anchor:a,deps:0,pendingId:0,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(E=!1){const{vnode:B,activeBranch:L,pendingBranch:O,pendingId:x,effects:T,parentComponent:I,container:M}=_;if(_.isHydrating)_.isHydrating=!1;else if(!E){const N=L&&O.transition&&O.transition.mode==="out-in";N&&(L.transition.afterLeave=()=>{x===_.pendingId&&h(O,M,P,0)});let{anchor:P}=_;L&&(P=p(L),f(L,I,_,!0)),N||h(O,M,P,0)}ip(_,O),_.pendingBranch=null,_.isInFallback=!1;let S=_.parent,b=!1;for(;S;){if(S.pendingBranch){S.effects.push(...T),b=!0;break}S=S.parent}b||cI(T),_.effects=[],ag(B,"onResolve")},fallback(E){if(!_.pendingBranch)return;const{vnode:B,activeBranch:L,parentComponent:O,container:x,isSVG:T}=_;ag(B,"onFallback");const I=p(L),M=()=>{_.isInFallback&&(c(null,E,x,I,O,null,T,s,A),ip(_,E))},S=E.transition&&E.transition.mode==="out-in";S&&(L.transition.afterLeave=M),_.isInFallback=!0,f(L,O,null,!0),S||M()},move(E,B,L){_.activeBranch&&h(_.activeBranch,E,B,L),_.container=E},next(){return _.activeBranch&&p(_.activeBranch)},registerDep(E,B){const L=!!_.pendingBranch;L&&_.deps++;const O=E.vnode.el;E.asyncDep.catch(x=>{Eh(x,E,0)}).then(x=>{if(E.isUnmounted||_.isUnmounted||_.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:T}=E;bT(E,x,!1),O&&(T.el=O);const I=!O&&E.subTree.el;B(E,T,v(O||E.subTree.el),O?null:p(E.subTree),_,o,A),I&&m(I),hI(E,T.el),L&&--_.deps===0&&_.resolve()})},unmount(E,B){_.isUnmounted=!0,_.activeBranch&&f(_.activeBranch,t,E,B),_.pendingBranch&&f(_.pendingBranch,t,E,B)}};return _}function W$(r,e,t,n,i,a,o,s,A){const l=e.suspense=fI(e,n,t,r.parentNode,document.createElement("div"),null,i,a,o,s,!0),u=A(r,l.pendingBranch=e.ssContent,t,l,a,o);return l.deps===0&&l.resolve(),u}function q$(r){const{shapeFlag:e,children:t}=r,n=e&32;r.ssContent=JO(n?t.default:t),r.ssFallback=n?JO(t.fallback):Wr(Ta)}function JO(r){let e;if(je(r)){const t=sh&&r._c;t&&(r._d=!1,tn()),r=r(),t&&(r._d=!0,e=so,UD())}return we(r)&&(r=k$(r)),r=Io(r),e&&!r.dynamicChildren&&(r.dynamicChildren=e.filter(t=>t!==r)),r}function lD(r,e){e&&e.pendingBranch?we(r)?e.effects.push(...r):e.effects.push(r):cI(r)}function ip(r,e){r.activeBranch=e;const{vnode:t,parentComponent:n}=r,i=t.el=e.el;n&&n.subTree===t&&(n.vnode.el=i,hI(n,i))}function Mr(r,e){if(Pi){let t=Pi.provides;const n=Pi.parent&&Pi.parent.provides;n===t&&(t=Pi.provides=Object.create(n)),t[r]=e}}function Ce(r,e,t=!1){const n=Pi||aa;if(n){const i=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(i&&r in i)return i[r];if(arguments.length>1)return t&&je(e)?e.call(n.proxy):e}}function uD(r,e){return Gg(r,null,e)}function cD(r,e){return Gg(r,null,{flush:"post"})}function Z$(r,e){return Gg(r,null,{flush:"sync"})}const dm={};function he(r,e,t){return Gg(r,e,t)}function Gg(r,e,{immediate:t,deep:n,flush:i,onTrack:a,onTrigger:o}=an){const s=Pi;let A,l=!1,u=!1;if(qi(r)?(A=()=>r.value,l=tg(r)):Vc(r)?(A=()=>r,n=!0):we(r)?(u=!0,l=r.some(E=>Vc(E)||tg(E)),A=()=>r.map(E=>{if(qi(E))return E.value;if(Vc(E))return Pc(E);if(je(E))return tl(E,s,2)})):je(r)?e?A=()=>tl(r,s,2):A=()=>{if(!(s&&s.isUnmounted))return c&&c(),Mo(r,s,3,[h])}:A=bs,e&&n){const E=A;A=()=>Pc(E())}let c,h=E=>{c=g.onStop=()=>{tl(E,s,4)}},f;if(Ep)if(h=bs,e?t&&Mo(e,s,3,[A(),u?[]:void 0,h]):A(),i==="sync"){const E=WD();f=E.__watcherHandles||(E.__watcherHandles=[])}else return bs;let p=u?new Array(r.length).fill(dm):dm;const v=()=>{if(g.active)if(e){const E=g.run();(n||l||(u?E.some((B,L)=>_p(B,p[L])):_p(E,p)))&&(c&&c(),Mo(e,s,3,[E,p===dm?void 0:u&&p[0]===dm?[]:p,h]),p=E)}else g.run()};v.allowRecurse=!!e;let m;i==="sync"?m=v:i==="post"?m=()=>ra(v,s&&s.suspense):(v.pre=!0,s&&(v.id=s.uid),m=()=>R1(v));const g=new Qg(A,m);e?t?v():p=g.run():i==="post"?ra(g.run.bind(g),s&&s.suspense):g.run();const _=()=>{g.stop(),s&&s.scope&&qx(s.scope.effects,g)};return f&&f.push(_),_}function J$(r,e,t){const n=this.proxy,i=Dn(r)?r.includes(".")?hD(n,r):()=>n[r]:r.bind(n,n);let a;je(e)?a=e:(a=e.handler,t=e);const o=Pi;Ru(this);const s=Gg(i,a.bind(n),t);return o?Ru(o):_u(),s}function hD(r,e){const t=e.split(".");return()=>{let n=r;for(let i=0;i{Pc(t,e)});else if(P2(r))for(const t in r)Pc(r[t],e);return r}function pI(){const r={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ze(()=>{r.isMounted=!0}),Q1(()=>{r.isUnmounting=!0}),r}const jo=[Function,Array],tV={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:jo,onEnter:jo,onAfterEnter:jo,onEnterCancelled:jo,onBeforeLeave:jo,onLeave:jo,onAfterLeave:jo,onLeaveCancelled:jo,onBeforeAppear:jo,onAppear:jo,onAfterAppear:jo,onAppearCancelled:jo},setup(r,{slots:e}){const t=Yu(),n=pI();let i;return()=>{const a=e.default&&P1(e.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const v of a)if(v.type!==Ta){o=v;break}}const s=Lr(r),{mode:A}=s;if(n.isLeaving)return ZE(o);const l=tR(o);if(!l)return ZE(o);const u=wp(l,s,n,t);ah(l,u);const c=t.subTree,h=c&&tR(c);let f=!1;const{getTransitionKey:p}=l.type;if(p){const v=p();i===void 0?i=v:v!==i&&(i=v,f=!0)}if(h&&h.type!==Ta&&(!Xs(l,h)||f)){const v=wp(h,s,n,t);if(ah(h,v),A==="out-in")return n.isLeaving=!0,v.afterLeave=()=>{n.isLeaving=!1,t.update.active!==!1&&t.update()},ZE(o);A==="in-out"&&l.type!==Ta&&(v.delayLeave=(m,g,_)=>{const E=fD(n,h);E[String(h.key)]=h,m._leaveCb=()=>{g(),m._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=_})}return o}}},dI=tV;function fD(r,e){const{leavingVNodes:t}=r;let n=t.get(e.type);return n||(n=Object.create(null),t.set(e.type,n)),n}function wp(r,e,t,n){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:A,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:c,onLeave:h,onAfterLeave:f,onLeaveCancelled:p,onBeforeAppear:v,onAppear:m,onAfterAppear:g,onAppearCancelled:_}=e,E=String(r.key),B=fD(t,r),L=(T,I)=>{T&&Mo(T,n,9,I)},O=(T,I)=>{const M=I[1];L(T,I),we(T)?T.every(S=>S.length<=1)&&M():T.length<=1&&M()},x={mode:a,persisted:o,beforeEnter(T){let I=s;if(!t.isMounted)if(i)I=v||s;else return;T._leaveCb&&T._leaveCb(!0);const M=B[E];M&&Xs(r,M)&&M.el._leaveCb&&M.el._leaveCb(),L(I,[T])},enter(T){let I=A,M=l,S=u;if(!t.isMounted)if(i)I=m||A,M=g||l,S=_||u;else return;let b=!1;const N=T._enterCb=P=>{b||(b=!0,P?L(S,[T]):L(M,[T]),x.delayedLeave&&x.delayedLeave(),T._enterCb=void 0)};I?O(I,[T,N]):N()},leave(T,I){const M=String(r.key);if(T._enterCb&&T._enterCb(!0),t.isUnmounting)return I();L(c,[T]);let S=!1;const b=T._leaveCb=N=>{S||(S=!0,I(),N?L(p,[T]):L(f,[T]),T._leaveCb=void 0,B[M]===r&&delete B[M])};B[M]=r,h?O(h,[T,b]):b()},clone(T){return wp(T,e,t,n)}};return x}function ZE(r){if(kg(r))return r=AA(r),r.children=null,r}function tR(r){return kg(r)?r.children?r.children[0]:void 0:r}function ah(r,e){r.shapeFlag&6&&r.component?ah(r.component.subTree,e):r.shapeFlag&128?(r.ssContent.transition=e.clone(r.ssContent),r.ssFallback.transition=e.clone(r.ssFallback)):r.transition=e}function P1(r,e=!1,t){let n=[],i=0;for(let a=0;a1)for(let a=0;a!!r.type.__asyncLoader;function eV(r){je(r)&&(r={loader:r});const{loader:e,loadingComponent:t,errorComponent:n,delay:i=200,timeout:a,suspensible:o=!0,onError:s}=r;let A=null,l,u=0;const c=()=>(u++,A=null,h()),h=()=>{let f;return A||(f=A=e().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),s)return new Promise((v,m)=>{s(p,()=>v(c()),()=>m(p),u+1)});throw p}).then(p=>f!==A&&A?A:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),l=p,p)))};return vI({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return l},setup(){const f=Pi;if(l)return()=>JE(l,f);const p=_=>{A=null,Eh(_,f,13,!n)};if(o&&f.suspense||Ep)return h().then(_=>()=>JE(_,f)).catch(_=>(p(_),()=>n?Wr(n,{error:_}):null));const v=$n(!1),m=$n(),g=$n(!!i);return i&&setTimeout(()=>{g.value=!1},i),a!=null&&setTimeout(()=>{if(!v.value&&!m.value){const _=new Error(`Async component timed out after ${a}ms.`);p(_),m.value=_}},a),h().then(()=>{v.value=!0,f.parent&&kg(f.parent.vnode)&&R1(f.parent.update)}).catch(_=>{p(_),m.value=_}),()=>{if(v.value&&l)return JE(l,f);if(m.value&&n)return Wr(n,{error:m.value});if(t&&!g.value)return Wr(t)}}})}function JE(r,e){const{ref:t,props:n,children:i,ce:a}=e.vnode,o=Wr(r,n,i);return o.ref=t,o.ce=a,delete e.vnode.ce,o}const kg=r=>r.type.__isKeepAlive,rV={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(r,{slots:e}){const t=Yu(),n=t.ctx;if(!n.renderer)return()=>{const _=e.default&&e.default();return _&&_.length===1?_[0]:_};const i=new Map,a=new Set;let o=null;const s=t.suspense,{renderer:{p:A,m:l,um:u,o:{createElement:c}}}=n,h=c("div");n.activate=(_,E,B,L,O)=>{const x=_.component;l(_,E,B,0,s),A(x.vnode,_,E,B,x,s,L,_.slotScopeIds,O),ra(()=>{x.isDeactivated=!1,x.a&&rp(x.a);const T=_.props&&_.props.onVnodeMounted;T&&no(T,x.parent,_)},s)},n.deactivate=_=>{const E=_.component;l(_,h,null,1,s),ra(()=>{E.da&&rp(E.da);const B=_.props&&_.props.onVnodeUnmounted;B&&no(B,E.parent,_),E.isDeactivated=!0},s)};function f(_){tC(_),u(_,t,s,!0)}function p(_){i.forEach((E,B)=>{const L=xT(E.type);L&&(!_||!_(L))&&v(B)})}function v(_){const E=i.get(_);!o||E.type!==o.type?f(E):o&&tC(o),i.delete(_),a.delete(_)}he(()=>[r.include,r.exclude],([_,E])=>{_&&p(B=>uv(_,B)),E&&p(B=>!uv(E,B))},{flush:"post",deep:!0});let m=null;const g=()=>{m!=null&&i.set(m,eC(t.subTree))};return Ze(g),D1(g),Q1(()=>{i.forEach(_=>{const{subTree:E,suspense:B}=t,L=eC(E);if(_.type===L.type){tC(L);const O=L.component.da;O&&ra(O,B);return}f(_)})}),()=>{if(m=null,!e.default)return null;const _=e.default(),E=_[0];if(_.length>1)return o=null,_;if(!Ou(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return o=null,E;let B=eC(E);const L=B.type,O=xT(jc(B)?B.type.__asyncResolved||{}:L),{include:x,exclude:T,max:I}=r;if(x&&(!O||!uv(x,O))||T&&O&&uv(T,O))return o=B,E;const M=B.key==null?L:B.key,S=i.get(M);return B.el&&(B=AA(B),E.shapeFlag&128&&(E.ssContent=B)),m=M,S?(B.el=S.el,B.component=S.component,B.transition&&ah(B,B.transition),B.shapeFlag|=512,a.delete(M),a.add(M)):(a.add(M),I&&a.size>parseInt(I,10)&&v(a.values().next().value)),B.shapeFlag|=256,o=B,AD(E.type)?E:B}}},nV=rV;function uv(r,e){return we(r)?r.some(t=>uv(t,e)):Dn(r)?r.split(",").includes(e):r.test?r.test(e):!1}function pD(r,e){vD(r,"a",e)}function dD(r,e){vD(r,"da",e)}function vD(r,e,t=Pi){const n=r.__wdc||(r.__wdc=()=>{let i=t;for(;i;){if(i.isDeactivated)return;i=i.parent}return r()});if(U1(e,n,t),t){let i=t.parent;for(;i&&i.parent;)kg(i.parent.vnode)&&iV(n,e,t,i),i=i.parent}}function iV(r,e,t,n){const i=U1(e,r,n,!0);ir(()=>{qx(n[e],i)},t)}function tC(r){r.shapeFlag&=-257,r.shapeFlag&=-513}function eC(r){return r.shapeFlag&128?r.ssContent:r}function U1(r,e,t=Pi,n=!1){if(t){const i=t[r]||(t[r]=[]),a=e.__weh||(e.__weh=(...o)=>{if(t.isUnmounted)return;Qp(),Ru(t);const s=Mo(e,t,r,o);return _u(),Hp(),s});return n?i.unshift(a):i.push(a),a}}const yl=r=>(e,t=Pi)=>(!Ep||r==="sp")&&U1(r,(...n)=>e(...n),t),gD=yl("bm"),Ze=yl("m"),yD=yl("bu"),D1=yl("u"),Q1=yl("bum"),ir=yl("um"),mD=yl("sp"),_D=yl("rtg"),wD=yl("rtc");function ED(r,e=Pi){U1("ec",r,e)}function aV(r,e){const t=aa;if(t===null)return r;const n=G1(t)||t.proxy,i=r.dirs||(r.dirs=[]);for(let a=0;ae(o,s,void 0,a&&a[s]));else{const o=Object.keys(r);i=new Array(o.length);for(let s=0,A=o.length;s{const a=n.fn(...i);return a&&(a.key=n.key),a}:n.fn)}return r}function mr(r,e,t={},n,i){if(aa.isCE||aa.parent&&jc(aa.parent)&&aa.parent.isCE)return e!=="default"&&(t.name=e),Wr("slot",t,n&&n());let a=r[e];a&&a._c&&(a._d=!1),tn();const o=a&&TD(a(t)),s=$g(Mi,{key:t.key||o&&o.key||`_${e}`},o||(n?n():[]),o&&r._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function TD(r){return r.some(e=>Ou(e)?!(e.type===Ta||e.type===Mi&&!TD(e.children)):!0)?r:null}function uV(r,e){const t={};for(const n in r)t[e&&/[A-Z]/.test(n)?`on:${n}`:Fv(n)]=r[n];return t}const mT=r=>r?$D(r)?G1(r)||r.proxy:mT(r.parent):null,Lv=zn(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>mT(r.parent),$root:r=>mT(r.root),$emit:r=>r.emit,$options:r=>mI(r),$forceUpdate:r=>r.f||(r.f=()=>R1(r.update)),$nextTick:r=>r.n||(r.n=uI.bind(r.proxy)),$watch:r=>J$.bind(r)}),rC=(r,e)=>r!==an&&!r.__isScriptSetup&&xr(r,e),_T={get({_:r},e){const{ctx:t,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:A}=r;let l;if(e[0]!=="$"){const f=o[e];if(f!==void 0)switch(f){case 1:return n[e];case 2:return i[e];case 4:return t[e];case 3:return a[e]}else{if(rC(n,e))return o[e]=1,n[e];if(i!==an&&xr(i,e))return o[e]=2,i[e];if((l=r.propsOptions[0])&&xr(l,e))return o[e]=3,a[e];if(t!==an&&xr(t,e))return o[e]=4,t[e];wT&&(o[e]=0)}}const u=Lv[e];let c,h;if(u)return e==="$attrs"&&No(r,"get",e),u(r);if((c=s.__cssModules)&&(c=c[e]))return c;if(t!==an&&xr(t,e))return o[e]=4,t[e];if(h=A.config.globalProperties,xr(h,e))return h[e]},set({_:r},e,t){const{data:n,setupState:i,ctx:a}=r;return rC(i,e)?(i[e]=t,!0):n!==an&&xr(n,e)?(n[e]=t,!0):xr(r.props,e)||e[0]==="$"&&e.slice(1)in r?!1:(a[e]=t,!0)},has({_:{data:r,setupState:e,accessCache:t,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!t[o]||r!==an&&xr(r,o)||rC(e,o)||(s=a[0])&&xr(s,o)||xr(n,o)||xr(Lv,o)||xr(i.config.globalProperties,o)},defineProperty(r,e,t){return t.get!=null?r._.accessCache[e]=0:xr(t,"value")&&this.set(r,e,t.value,null),Reflect.defineProperty(r,e,t)}},cV=zn({},_T,{get(r,e){if(e!==Symbol.unscopables)return _T.get(r,e,r)},has(r,e){return e[0]!=="_"&&!O9(e)}});let wT=!0;function hV(r){const e=mI(r),t=r.proxy,n=r.ctx;wT=!1,e.beforeCreate&&rR(e.beforeCreate,r,"bc");const{data:i,computed:a,methods:o,watch:s,provide:A,inject:l,created:u,beforeMount:c,mounted:h,beforeUpdate:f,updated:p,activated:v,deactivated:m,beforeDestroy:g,beforeUnmount:_,destroyed:E,unmounted:B,render:L,renderTracked:O,renderTriggered:x,errorCaptured:T,serverPrefetch:I,expose:M,inheritAttrs:S,components:b,directives:N,filters:P}=e;if(l&&fV(l,n,null,r.appContext.config.unwrapInjectedRef),o)for(const tt in o){const J=o[tt];je(J)&&(n[tt]=J.bind(t))}if(i){const tt=i.call(t,t);hn(tt)&&(r.data=Hg(tt))}if(wT=!0,a)for(const tt in a){const J=a[tt],nt=je(J)?J.bind(t,t):je(J.get)?J.get.bind(t,t):bs,it=!je(J)&&je(J.set)?J.set.bind(t):bs,_t=fr({get:nt,set:it});Object.defineProperty(n,tt,{enumerable:!0,configurable:!0,get:()=>_t.value,set:R=>_t.value=R})}if(s)for(const tt in s)bD(s[tt],n,t,tt);if(A){const tt=je(A)?A.call(t):A;Reflect.ownKeys(tt).forEach(J=>{Mr(J,tt[J])})}u&&rR(u,r,"c");function z(tt,J){we(J)?J.forEach(nt=>tt(nt.bind(t))):J&&tt(J.bind(t))}if(z(gD,c),z(Ze,h),z(yD,f),z(D1,p),z(pD,v),z(dD,m),z(ED,T),z(wD,O),z(_D,x),z(Q1,_),z(ir,B),z(mD,I),we(M))if(M.length){const tt=r.exposed||(r.exposed={});M.forEach(J=>{Object.defineProperty(tt,J,{get:()=>t[J],set:nt=>t[J]=nt})})}else r.exposed||(r.exposed={});L&&r.render===bs&&(r.render=L),S!=null&&(r.inheritAttrs=S),b&&(r.components=b),N&&(r.directives=N)}function fV(r,e,t=bs,n=!1){we(r)&&(r=ET(r));for(const i in r){const a=r[i];let o;hn(a)?"default"in a?o=Ce(a.from||i,a.default,!0):o=Ce(a.from||i):o=Ce(a),qi(o)&&n?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):e[i]=o}}function rR(r,e,t){Mo(we(r)?r.map(n=>n.bind(e.proxy)):r.bind(e.proxy),e,t)}function bD(r,e,t,n){const i=n.includes(".")?hD(t,n):()=>t[n];if(Dn(r)){const a=e[r];je(a)&&he(i,a)}else if(je(r))he(i,r.bind(t));else if(hn(r))if(we(r))r.forEach(a=>bD(a,e,t,n));else{const a=je(r.handler)?r.handler.bind(t):e[r.handler];je(a)&&he(i,a,r)}}function mI(r){const e=r.type,{mixins:t,extends:n}=e,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=r.appContext,s=a.get(e);let A;return s?A=s:!i.length&&!t&&!n?A=e:(A={},i.length&&i.forEach(l=>s_(A,l,o,!0)),s_(A,e,o)),hn(e)&&a.set(e,A),A}function s_(r,e,t,n=!1){const{mixins:i,extends:a}=e;a&&s_(r,a,t,!0),i&&i.forEach(o=>s_(r,o,t,!0));for(const o in e)if(!(n&&o==="expose")){const s=pV[o]||t&&t[o];r[o]=s?s(r[o],e[o]):e[o]}return r}const pV={data:nR,props:Tc,emits:Tc,methods:Tc,computed:Tc,beforeCreate:Ma,created:Ma,beforeMount:Ma,mounted:Ma,beforeUpdate:Ma,updated:Ma,beforeDestroy:Ma,beforeUnmount:Ma,destroyed:Ma,unmounted:Ma,activated:Ma,deactivated:Ma,errorCaptured:Ma,serverPrefetch:Ma,components:Tc,directives:Tc,watch:vV,provide:nR,inject:dV};function nR(r,e){return e?r?function(){return zn(je(r)?r.call(this,this):r,je(e)?e.call(this,this):e)}:e:r}function dV(r,e){return Tc(ET(r),ET(e))}function ET(r){if(we(r)){const e={};for(let t=0;t0)&&!(o&16)){if(o&8){const u=r.vnode.dynamicProps;for(let c=0;c{A=!0;const[h,f]=xD(c,e,!0);zn(o,h),f&&s.push(...f)};!t&&e.mixins.length&&e.mixins.forEach(u),r.extends&&u(r.extends),r.mixins&&r.mixins.forEach(u)}if(!a&&!A)return hn(r)&&n.set(r,tp),tp;if(we(a))for(let u=0;u-1,f[1]=v<0||p-1||xr(f,"default"))&&s.push(c)}}}const l=[o,s];return hn(r)&&n.set(r,l),l}function iR(r){return r[0]!=="$"}function aR(r){const e=r&&r.toString().match(/^\s*function (\w+)/);return e?e[1]:r===null?"null":""}function oR(r,e){return aR(r)===aR(e)}function sR(r,e){return we(e)?e.findIndex(t=>oR(t,r)):je(e)&&oR(e,r)?0:-1}const ID=r=>r[0]==="_"||r==="$stable",_I=r=>we(r)?r.map(Io):[Io(r)],mV=(r,e,t)=>{if(e._n)return e;const n=Nc((...i)=>_I(e(...i)),t);return n._c=!1,n},FD=(r,e,t)=>{const n=r._ctx;for(const i in r){if(ID(i))continue;const a=r[i];if(je(a))e[i]=mV(i,a,n);else if(a!=null){const o=_I(a);e[i]=()=>o}}},LD=(r,e)=>{const t=_I(e);r.slots.default=()=>t},_V=(r,e)=>{if(r.vnode.shapeFlag&32){const t=e._;t?(r.slots=Lr(e),a_(e,"_",t)):FD(e,r.slots={})}else r.slots={},e&&LD(r,e);a_(r.slots,H1,1)},wV=(r,e,t)=>{const{vnode:n,slots:i}=r;let a=!0,o=an;if(n.shapeFlag&32){const s=e._;s?t&&s===1?a=!1:(zn(i,e),!t&&s===1&&delete i._):(a=!e.$stable,FD(e,i)),o=e}else e&&(LD(r,e),o={default:1});if(a)for(const s in i)!ID(s)&&!(s in o)&&delete i[s]};function OD(){return{app:null,config:{isNativeTag:G9,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let EV=0;function CV(r,e){return function(n,i=null){je(n)||(n=Object.assign({},n)),i!=null&&!hn(i)&&(i=null);const a=OD(),o=new Set;let s=!1;const A=a.app={_uid:EV++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:ZD,get config(){return a.config},set config(l){},use(l,...u){return o.has(l)||(l&&je(l.install)?(o.add(l),l.install(A,...u)):je(l)&&(o.add(l),l(A,...u))),A},mixin(l){return a.mixins.includes(l)||a.mixins.push(l),A},component(l,u){return u?(a.components[l]=u,A):a.components[l]},directive(l,u){return u?(a.directives[l]=u,A):a.directives[l]},mount(l,u,c){if(!s){const h=Wr(n,i);return h.appContext=a,u&&e?e(h,l):r(h,l,c),s=!0,A._container=l,l.__vue_app__=A,G1(h.component)||h.component.proxy}},unmount(){s&&(r(null,A._container),delete A._container.__vue_app__)},provide(l,u){return a.provides[l]=u,A}};return A}}function A_(r,e,t,n,i=!1){if(we(r)){r.forEach((h,f)=>A_(h,e&&(we(e)?e[f]:e),t,n,i));return}if(jc(n)&&!i)return;const a=n.shapeFlag&4?G1(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:A}=r,l=e&&e.r,u=s.refs===an?s.refs={}:s.refs,c=s.setupState;if(l!=null&&l!==A&&(Dn(l)?(u[l]=null,xr(c,l)&&(c[l]=null)):qi(l)&&(l.value=null)),je(A))tl(A,s,12,[o,u]);else{const h=Dn(A),f=qi(A);if(h||f){const p=()=>{if(r.f){const v=h?xr(c,A)?c[A]:u[A]:A.value;i?we(v)&&qx(v,a):we(v)?v.includes(a)||v.push(a):h?(u[A]=[a],xr(c,A)&&(c[A]=u[A])):(A.value=[a],r.k&&(u[r.k]=A.value))}else h?(u[A]=o,xr(c,A)&&(c[A]=o)):f&&(A.value=o,r.k&&(u[r.k]=o))};o?(p.id=-1,ra(p,t)):p()}}}let jl=!1;const vm=r=>/svg/.test(r.namespaceURI)&&r.tagName!=="foreignObject",gm=r=>r.nodeType===8;function BV(r){const{mt:e,p:t,o:{patchProp:n,createText:i,nextSibling:a,parentNode:o,remove:s,insert:A,createComment:l}}=r,u=(g,_)=>{if(!_.hasChildNodes()){t(null,g,_),o_(),_._vnode=g;return}jl=!1,c(_.firstChild,g,null,null,null),o_(),_._vnode=g,jl&&console.error("Hydration completed but contains mismatches.")},c=(g,_,E,B,L,O=!1)=>{const x=gm(g)&&g.data==="[",T=()=>v(g,_,E,B,L,x),{type:I,ref:M,shapeFlag:S,patchFlag:b}=_;let N=g.nodeType;_.el=g,b===-2&&(O=!1,_.dynamicChildren=null);let P=null;switch(I){case oh:N!==3?_.children===""?(A(_.el=i(""),o(g),g),P=g):P=T():(g.data!==_.children&&(jl=!0,g.data=_.children),P=a(g));break;case Ta:N!==8||x?P=T():P=a(g);break;case Kc:if(x&&(g=a(g),N=g.nodeType),N===1||N===3){P=g;const X=!_.children.length;for(let z=0;z<_.staticCount;z++)X&&(_.children+=P.nodeType===1?P.outerHTML:P.data),z===_.staticCount-1&&(_.anchor=P),P=a(P);return x?a(P):P}else T();break;case Mi:x?P=p(g,_,E,B,L,O):P=T();break;default:if(S&1)N!==1||_.type.toLowerCase()!==g.tagName.toLowerCase()?P=T():P=h(g,_,E,B,L,O);else if(S&6){_.slotScopeIds=L;const X=o(g);if(e(_,X,null,E,B,vm(X),O),P=x?m(g):a(g),P&&gm(P)&&P.data==="teleport end"&&(P=a(P)),jc(_)){let z;x?(z=Wr(Mi),z.anchor=P?P.previousSibling:X.lastChild):z=g.nodeType===3?EI(""):Wr("div"),z.el=g,_.component.subTree=z}}else S&64?N!==8?P=T():P=_.type.hydrate(g,_,E,B,L,O,r,f):S&128&&(P=_.type.hydrate(g,_,E,B,vm(o(g)),L,O,r,c))}return M!=null&&A_(M,null,B,_),P},h=(g,_,E,B,L,O)=>{O=O||!!_.dynamicChildren;const{type:x,props:T,patchFlag:I,shapeFlag:M,dirs:S}=_,b=x==="input"&&S||x==="option";if(b||I!==-1){if(S&&Ks(_,null,E,"created"),T)if(b||!O||I&48)for(const P in T)(b&&P.endsWith("value")||Pg(P)&&!Iv(P))&&n(g,P,null,T[P],!1,void 0,E);else T.onClick&&n(g,"onClick",null,T.onClick,!1,void 0,E);let N;if((N=T&&T.onVnodeBeforeMount)&&no(N,E,_),S&&Ks(_,null,E,"beforeMount"),((N=T&&T.onVnodeMounted)||S)&&lD(()=>{N&&no(N,E,_),S&&Ks(_,null,E,"mounted")},B),M&16&&!(T&&(T.innerHTML||T.textContent))){let P=f(g.firstChild,_,g,E,B,L,O);for(;P;){jl=!0;const X=P;P=P.nextSibling,s(X)}}else M&8&&g.textContent!==_.children&&(jl=!0,g.textContent=_.children)}return g.nextSibling},f=(g,_,E,B,L,O,x)=>{x=x||!!_.dynamicChildren;const T=_.children,I=T.length;for(let M=0;M{const{slotScopeIds:x}=_;x&&(L=L?L.concat(x):x);const T=o(g),I=f(a(g),_,T,E,B,L,O);return I&&gm(I)&&I.data==="]"?a(_.anchor=I):(jl=!0,A(_.anchor=l("]"),T,I),I)},v=(g,_,E,B,L,O)=>{if(jl=!0,_.el=null,O){const I=m(g);for(;;){const M=a(g);if(M&&M!==I)s(M);else break}}const x=a(g),T=o(g);return s(g),t(null,_,T,x,E,B,vm(T),L),x},m=g=>{let _=0;for(;g;)if(g=a(g),g&&gm(g)&&(g.data==="["&&_++,g.data==="]")){if(_===0)return a(g);_--}return g};return[u,c]}const ra=lD;function RD(r){return ND(r)}function MD(r){return ND(r,BV)}function ND(r,e){const t=z9();t.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:A,setText:l,setElementText:u,parentNode:c,nextSibling:h,setScopeId:f=bs,insertStaticContent:p}=r,v=(j,Z,ut,rt=null,G=null,St=null,xt=!1,dt=null,Et=!!Z.dynamicChildren)=>{if(j===Z)return;j&&!Xs(j,Z)&&(rt=vt(j),R(j,G,St,!0),j=null),Z.patchFlag===-2&&(Et=!1,Z.dynamicChildren=null);const{type:yt,ref:bt,shapeFlag:Ft}=Z;switch(yt){case oh:m(j,Z,ut,rt);break;case Ta:g(j,Z,ut,rt);break;case Kc:j==null&&_(Z,ut,rt,xt);break;case Mi:b(j,Z,ut,rt,G,St,xt,dt,Et);break;default:Ft&1?L(j,Z,ut,rt,G,St,xt,dt,Et):Ft&6?N(j,Z,ut,rt,G,St,xt,dt,Et):(Ft&64||Ft&128)&&yt.process(j,Z,ut,rt,G,St,xt,dt,Et,W)}bt!=null&&G&&A_(bt,j&&j.ref,St,Z||j,!Z)},m=(j,Z,ut,rt)=>{if(j==null)n(Z.el=s(Z.children),ut,rt);else{const G=Z.el=j.el;Z.children!==j.children&&l(G,Z.children)}},g=(j,Z,ut,rt)=>{j==null?n(Z.el=A(Z.children||""),ut,rt):Z.el=j.el},_=(j,Z,ut,rt)=>{[j.el,j.anchor]=p(j.children,Z,ut,rt,j.el,j.anchor)},E=({el:j,anchor:Z},ut,rt)=>{let G;for(;j&&j!==Z;)G=h(j),n(j,ut,rt),j=G;n(Z,ut,rt)},B=({el:j,anchor:Z})=>{let ut;for(;j&&j!==Z;)ut=h(j),i(j),j=ut;i(Z)},L=(j,Z,ut,rt,G,St,xt,dt,Et)=>{xt=xt||Z.type==="svg",j==null?O(Z,ut,rt,G,St,xt,dt,Et):I(j,Z,G,St,xt,dt,Et)},O=(j,Z,ut,rt,G,St,xt,dt)=>{let Et,yt;const{type:bt,props:Ft,shapeFlag:Mt,transition:Vt,dirs:Yt}=j;if(Et=j.el=o(j.type,St,Ft&&Ft.is,Ft),Mt&8?u(Et,j.children):Mt&16&&T(j.children,Et,null,rt,G,St&&bt!=="foreignObject",xt,dt),Yt&&Ks(j,null,rt,"created"),Ft){for(const ee in Ft)ee!=="value"&&!Iv(ee)&&a(Et,ee,null,Ft[ee],St,j.children,rt,G,at);"value"in Ft&&a(Et,"value",null,Ft.value),(yt=Ft.onVnodeBeforeMount)&&no(yt,rt,j)}x(Et,j,j.scopeId,xt,rt),Yt&&Ks(j,null,rt,"beforeMount");const ie=(!G||G&&!G.pendingBranch)&&Vt&&!Vt.persisted;ie&&Vt.beforeEnter(Et),n(Et,Z,ut),((yt=Ft&&Ft.onVnodeMounted)||ie||Yt)&&ra(()=>{yt&&no(yt,rt,j),ie&&Vt.enter(Et),Yt&&Ks(j,null,rt,"mounted")},G)},x=(j,Z,ut,rt,G)=>{if(ut&&f(j,ut),rt)for(let St=0;St{for(let yt=Et;yt{const dt=Z.el=j.el;let{patchFlag:Et,dynamicChildren:yt,dirs:bt}=Z;Et|=j.patchFlag&16;const Ft=j.props||an,Mt=Z.props||an;let Vt;ut&&hc(ut,!1),(Vt=Mt.onVnodeBeforeUpdate)&&no(Vt,ut,Z,j),bt&&Ks(Z,j,ut,"beforeUpdate"),ut&&hc(ut,!0);const Yt=G&&Z.type!=="foreignObject";if(yt?M(j.dynamicChildren,yt,dt,ut,rt,Yt,St):xt||J(j,Z,dt,null,ut,rt,Yt,St,!1),Et>0){if(Et&16)S(dt,Z,Ft,Mt,ut,rt,G);else if(Et&2&&Ft.class!==Mt.class&&a(dt,"class",null,Mt.class,G),Et&4&&a(dt,"style",Ft.style,Mt.style,G),Et&8){const ie=Z.dynamicProps;for(let ee=0;ee{Vt&&no(Vt,ut,Z,j),bt&&Ks(Z,j,ut,"updated")},rt)},M=(j,Z,ut,rt,G,St,xt)=>{for(let dt=0;dt{if(ut!==rt){if(ut!==an)for(const dt in ut)!Iv(dt)&&!(dt in rt)&&a(j,dt,ut[dt],null,xt,Z.children,G,St,at);for(const dt in rt){if(Iv(dt))continue;const Et=rt[dt],yt=ut[dt];Et!==yt&&dt!=="value"&&a(j,dt,yt,Et,xt,Z.children,G,St,at)}"value"in rt&&a(j,"value",ut.value,rt.value)}},b=(j,Z,ut,rt,G,St,xt,dt,Et)=>{const yt=Z.el=j?j.el:s(""),bt=Z.anchor=j?j.anchor:s("");let{patchFlag:Ft,dynamicChildren:Mt,slotScopeIds:Vt}=Z;Vt&&(dt=dt?dt.concat(Vt):Vt),j==null?(n(yt,ut,rt),n(bt,ut,rt),T(Z.children,ut,bt,G,St,xt,dt,Et)):Ft>0&&Ft&64&&Mt&&j.dynamicChildren?(M(j.dynamicChildren,Mt,ut,G,St,xt,dt),(Z.key!=null||G&&Z===G.subTree)&&wI(j,Z,!0)):J(j,Z,ut,bt,G,St,xt,dt,Et)},N=(j,Z,ut,rt,G,St,xt,dt,Et)=>{Z.slotScopeIds=dt,j==null?Z.shapeFlag&512?G.ctx.activate(Z,ut,rt,xt,Et):P(Z,ut,rt,G,St,xt,Et):X(j,Z,Et)},P=(j,Z,ut,rt,G,St,xt)=>{const dt=j.component=kD(j,rt,G);if(kg(j)&&(dt.ctx.renderer=W),VD(dt),dt.asyncDep){if(G&&G.registerDep(dt,z),!j.el){const Et=dt.subTree=Wr(Ta);g(null,Et,Z,ut)}return}z(dt,j,Z,ut,G,St,xt)},X=(j,Z,ut)=>{const rt=Z.component=j.component;if(j$(j,Z,ut))if(rt.asyncDep&&!rt.asyncResolved){tt(rt,Z,ut);return}else rt.next=Z,D$(rt.update),rt.update();else Z.el=j.el,rt.vnode=Z},z=(j,Z,ut,rt,G,St,xt)=>{const dt=()=>{if(j.isMounted){let{next:bt,bu:Ft,u:Mt,parent:Vt,vnode:Yt}=j,ie=bt,ee;hc(j,!1),bt?(bt.el=Yt.el,tt(j,bt,xt)):bt=Yt,Ft&&rp(Ft),(ee=bt.props&&bt.props.onVnodeBeforeUpdate)&&no(ee,Vt,bt,Yt),hc(j,!0);const Xt=L0(j),oe=j.subTree;j.subTree=Xt,v(oe,Xt,c(oe.el),vt(oe),j,G,St),bt.el=Xt.el,ie===null&&hI(j,Xt.el),Mt&&ra(Mt,G),(ee=bt.props&&bt.props.onVnodeUpdated)&&ra(()=>no(ee,Vt,bt,Yt),G)}else{let bt;const{el:Ft,props:Mt}=Z,{bm:Vt,m:Yt,parent:ie}=j,ee=jc(Z);if(hc(j,!1),Vt&&rp(Vt),!ee&&(bt=Mt&&Mt.onVnodeBeforeMount)&&no(bt,ie,Z),hc(j,!0),Ft&&Ot){const Xt=()=>{j.subTree=L0(j),Ot(Ft,j.subTree,j,G,null)};ee?Z.type.__asyncLoader().then(()=>!j.isUnmounted&&Xt()):Xt()}else{const Xt=j.subTree=L0(j);v(null,Xt,ut,rt,j,G,St),Z.el=Xt.el}if(Yt&&ra(Yt,G),!ee&&(bt=Mt&&Mt.onVnodeMounted)){const Xt=Z;ra(()=>no(bt,ie,Xt),G)}(Z.shapeFlag&256||ie&&jc(ie.vnode)&&ie.vnode.shapeFlag&256)&&j.a&&ra(j.a,G),j.isMounted=!0,Z=ut=rt=null}},Et=j.effect=new Qg(dt,()=>R1(yt),j.scope),yt=j.update=()=>Et.run();yt.id=j.uid,hc(j,!0),yt()},tt=(j,Z,ut)=>{Z.component=j;const rt=j.vnode.props;j.vnode=Z,j.next=null,yV(j,Z.props,rt,ut),wV(j,Z.children,ut),Qp(),qO(),Hp()},J=(j,Z,ut,rt,G,St,xt,dt,Et=!1)=>{const yt=j&&j.children,bt=j?j.shapeFlag:0,Ft=Z.children,{patchFlag:Mt,shapeFlag:Vt}=Z;if(Mt>0){if(Mt&128){it(yt,Ft,ut,rt,G,St,xt,dt,Et);return}else if(Mt&256){nt(yt,Ft,ut,rt,G,St,xt,dt,Et);return}}Vt&8?(bt&16&&at(yt,G,St),Ft!==yt&&u(ut,Ft)):bt&16?Vt&16?it(yt,Ft,ut,rt,G,St,xt,dt,Et):at(yt,G,St,!0):(bt&8&&u(ut,""),Vt&16&&T(Ft,ut,rt,G,St,xt,dt,Et))},nt=(j,Z,ut,rt,G,St,xt,dt,Et)=>{j=j||tp,Z=Z||tp;const yt=j.length,bt=Z.length,Ft=Math.min(yt,bt);let Mt;for(Mt=0;Mtbt?at(j,G,St,!0,!1,Ft):T(Z,ut,rt,G,St,xt,dt,Et,Ft)},it=(j,Z,ut,rt,G,St,xt,dt,Et)=>{let yt=0;const bt=Z.length;let Ft=j.length-1,Mt=bt-1;for(;yt<=Ft&&yt<=Mt;){const Vt=j[yt],Yt=Z[yt]=Et?au(Z[yt]):Io(Z[yt]);if(Xs(Vt,Yt))v(Vt,Yt,ut,null,G,St,xt,dt,Et);else break;yt++}for(;yt<=Ft&&yt<=Mt;){const Vt=j[Ft],Yt=Z[Mt]=Et?au(Z[Mt]):Io(Z[Mt]);if(Xs(Vt,Yt))v(Vt,Yt,ut,null,G,St,xt,dt,Et);else break;Ft--,Mt--}if(yt>Ft){if(yt<=Mt){const Vt=Mt+1,Yt=VtMt)for(;yt<=Ft;)R(j[yt],G,St,!0),yt++;else{const Vt=yt,Yt=yt,ie=new Map;for(yt=Yt;yt<=Mt;yt++){const Ie=Z[yt]=Et?au(Z[yt]):Io(Z[yt]);Ie.key!=null&&ie.set(Ie.key,yt)}let ee,Xt=0;const oe=Mt-Yt+1;let Kt=!1,Xe=0;const Re=new Array(oe);for(yt=0;yt=oe){R(Ie,G,St,!0);continue}let Se;if(Ie.key!=null)Se=ie.get(Ie.key);else for(ee=Yt;ee<=Mt;ee++)if(Re[ee-Yt]===0&&Xs(Ie,Z[ee])){Se=ee;break}Se===void 0?R(Ie,G,St,!0):(Re[Se-Yt]=yt+1,Se>=Xe?Xe=Se:Kt=!0,v(Ie,Z[Se],ut,null,G,St,xt,dt,Et),Xt++)}const dr=Kt?TV(Re):tp;for(ee=dr.length-1,yt=oe-1;yt>=0;yt--){const Ie=Yt+yt,Se=Z[Ie],sn=Ie+1{const{el:St,type:xt,transition:dt,children:Et,shapeFlag:yt}=j;if(yt&6){_t(j.component.subTree,Z,ut,rt);return}if(yt&128){j.suspense.move(Z,ut,rt);return}if(yt&64){xt.move(j,Z,ut,W);return}if(xt===Mi){n(St,Z,ut);for(let Ft=0;Ftdt.enter(St),G);else{const{leave:Ft,delayLeave:Mt,afterLeave:Vt}=dt,Yt=()=>n(St,Z,ut),ie=()=>{Ft(St,()=>{Yt(),Vt&&Vt()})};Mt?Mt(St,Yt,ie):ie()}else n(St,Z,ut)},R=(j,Z,ut,rt=!1,G=!1)=>{const{type:St,props:xt,ref:dt,children:Et,dynamicChildren:yt,shapeFlag:bt,patchFlag:Ft,dirs:Mt}=j;if(dt!=null&&A_(dt,null,ut,j,!0),bt&256){Z.ctx.deactivate(j);return}const Vt=bt&1&&Mt,Yt=!jc(j);let ie;if(Yt&&(ie=xt&&xt.onVnodeBeforeUnmount)&&no(ie,Z,j),bt&6)q(j.component,ut,rt);else{if(bt&128){j.suspense.unmount(ut,rt);return}Vt&&Ks(j,null,Z,"beforeUnmount"),bt&64?j.type.remove(j,Z,ut,G,W,rt):yt&&(St!==Mi||Ft>0&&Ft&64)?at(yt,Z,ut,!1,!0):(St===Mi&&Ft&384||!G&&bt&16)&&at(Et,Z,ut),rt&&$(j)}(Yt&&(ie=xt&&xt.onVnodeUnmounted)||Vt)&&ra(()=>{ie&&no(ie,Z,j),Vt&&Ks(j,null,Z,"unmounted")},ut)},$=j=>{const{type:Z,el:ut,anchor:rt,transition:G}=j;if(Z===Mi){K(ut,rt);return}if(Z===Kc){B(j);return}const St=()=>{i(ut),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(j.shapeFlag&1&&G&&!G.persisted){const{leave:xt,delayLeave:dt}=G,Et=()=>xt(ut,St);dt?dt(j.el,St,Et):Et()}else St()},K=(j,Z)=>{let ut;for(;j!==Z;)ut=h(j),i(j),j=ut;i(Z)},q=(j,Z,ut)=>{const{bum:rt,scope:G,update:St,subTree:xt,um:dt}=j;rt&&rp(rt),G.stop(),St&&(St.active=!1,R(xt,j,Z,ut)),dt&&ra(dt,Z),ra(()=>{j.isUnmounted=!0},Z),Z&&Z.pendingBranch&&!Z.isUnmounted&&j.asyncDep&&!j.asyncResolved&&j.suspenseId===Z.pendingId&&(Z.deps--,Z.deps===0&&Z.resolve())},at=(j,Z,ut,rt=!1,G=!1,St=0)=>{for(let xt=St;xtj.shapeFlag&6?vt(j.component.subTree):j.shapeFlag&128?j.suspense.next():h(j.anchor||j.el),wt=(j,Z,ut)=>{j==null?Z._vnode&&R(Z._vnode,null,null,!0):v(Z._vnode||null,j,Z,null,null,null,ut),qO(),o_(),Z._vnode=j},W={p:v,um:R,m:_t,r:$,mt:P,mc:T,pc:J,pbc:M,n:vt,o:r};let It,Ot;return e&&([It,Ot]=e(W)),{render:wt,hydrate:It,createApp:CV(wt,It)}}function hc({effect:r,update:e},t){r.allowRecurse=e.allowRecurse=t}function wI(r,e,t=!1){const n=r.children,i=e.children;if(we(n)&&we(i))for(let a=0;a>1,r[t[s]]0&&(e[n]=t[a-1]),t[a]=n)}}for(a=t.length,o=t[a-1];a-- >0;)t[a]=o,o=e[o];return t}const bV=r=>r.__isTeleport,Ov=r=>r&&(r.disabled||r.disabled===""),AR=r=>typeof SVGElement<"u"&&r instanceof SVGElement,BT=(r,e)=>{const t=r&&r.to;return Dn(t)?e?e(t):null:t},SV={__isTeleport:!0,process(r,e,t,n,i,a,o,s,A,l){const{mc:u,pc:c,pbc:h,o:{insert:f,querySelector:p,createText:v,createComment:m}}=l,g=Ov(e.props);let{shapeFlag:_,children:E,dynamicChildren:B}=e;if(r==null){const L=e.el=v(""),O=e.anchor=v("");f(L,t,n),f(O,t,n);const x=e.target=BT(e.props,p),T=e.targetAnchor=v("");x&&(f(T,x),o=o||AR(x));const I=(M,S)=>{_&16&&u(E,M,S,i,a,o,s,A)};g?I(t,O):x&&I(x,T)}else{e.el=r.el;const L=e.anchor=r.anchor,O=e.target=r.target,x=e.targetAnchor=r.targetAnchor,T=Ov(r.props),I=T?t:O,M=T?L:x;if(o=o||AR(O),B?(h(r.dynamicChildren,B,I,i,a,o,s),wI(r,e,!0)):A||c(r,e,I,M,i,a,o,s,!1),g)T||ym(e,t,L,l,1);else if((e.props&&e.props.to)!==(r.props&&r.props.to)){const S=e.target=BT(e.props,p);S&&ym(e,S,null,l,0)}else T&&ym(e,O,x,l,1)}PD(e)},remove(r,e,t,n,{um:i,o:{remove:a}},o){const{shapeFlag:s,children:A,anchor:l,targetAnchor:u,target:c,props:h}=r;if(c&&a(u),(o||!Ov(h))&&(a(l),s&16))for(let f=0;f0?so||tp:null,UD(),sh>0&&so&&so.push(r),r}function Ln(r,e,t,n,i,a){return DD(Mn(r,e,t,n,i,a,!0))}function $g(r,e,t,n,i){return DD(Wr(r,e,t,n,i,!0))}function Ou(r){return r?r.__v_isVNode===!0:!1}function Xs(r,e){return r.type===e.type&&r.key===e.key}function FV(r){}const H1="__vInternal",QD=({key:r})=>r??null,O0=({ref:r,ref_key:e,ref_for:t})=>r!=null?Dn(r)||qi(r)||je(r)?{i:aa,r,k:e,f:!!t}:r:null;function Mn(r,e=null,t=null,n=0,i=null,a=r===Mi?0:1,o=!1,s=!1){const A={__v_isVNode:!0,__v_skip:!0,type:r,props:e,key:e&&QD(e),ref:e&&O0(e),scopeId:N1,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:aa};return s?(CI(A,t),a&128&&r.normalize(A)):t&&(A.shapeFlag|=Dn(t)?8:16),sh>0&&!o&&so&&(A.patchFlag>0||a&6)&&A.patchFlag!==32&&so.push(A),A}const Wr=LV;function LV(r,e=null,t=null,n=0,i=null,a=!1){if((!r||r===CD)&&(r=Ta),Ou(r)){const s=AA(r,e,!0);return t&&CI(s,t),sh>0&&!a&&so&&(s.shapeFlag&6?so[so.indexOf(r)]=s:so.push(s)),s.patchFlag|=-2,s}if(QV(r)&&(r=r.__vccOpts),e){e=HD(e);let{class:s,style:A}=e;s&&!Dn(s)&&(e.class=Ng(s)),hn(A)&&(iI(A)&&!we(A)&&(A=zn({},A)),e.style=Mg(A))}const o=Dn(r)?1:AD(r)?128:bV(r)?64:hn(r)?4:je(r)?2:0;return Mn(r,e,t,n,i,o,a,!0)}function HD(r){return r?iI(r)||H1 in r?zn({},r):r:null}function AA(r,e,t=!1){const{props:n,ref:i,patchFlag:a,children:o}=r,s=e?GD(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:r.type,props:s,key:s&&QD(s),ref:e&&e.ref?t&&i?we(i)?i.concat(O0(e)):[i,O0(e)]:O0(e):i,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:o,target:r.target,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:e&&r.type!==Mi?a===-1?16:a|16:a,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:r.transition,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&AA(r.ssContent),ssFallback:r.ssFallback&&AA(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx}}function EI(r=" ",e=0){return Wr(oh,null,r,e)}function OV(r,e){const t=Wr(Kc,null,r);return t.staticCount=e,t}function ur(r="",e=!1){return e?(tn(),$g(Ta,null,r)):Wr(Ta,null,r)}function Io(r){return r==null||typeof r=="boolean"?Wr(Ta):we(r)?Wr(Mi,null,r.slice()):typeof r=="object"?au(r):Wr(oh,null,String(r))}function au(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:AA(r)}function CI(r,e){let t=0;const{shapeFlag:n}=r;if(e==null)e=null;else if(we(e))t=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),CI(r,i()),i._c&&(i._d=!0));return}else{t=32;const i=e._;!i&&!(H1 in e)?e._ctx=aa:i===3&&aa&&(aa.slots._===1?e._=1:(e._=2,r.patchFlag|=1024))}else je(e)?(e={default:e,_ctx:aa},t=32):(e=String(e),n&64?(t=16,e=[EI(e)]):t=8);r.children=e,r.shapeFlag|=t}function GD(...r){const e={};for(let t=0;tPi||aa,Ru=r=>{Pi=r,r.scope.on()},_u=()=>{Pi&&Pi.scope.off(),Pi=null};function $D(r){return r.vnode.shapeFlag&4}let Ep=!1;function VD(r,e=!1){Ep=e;const{props:t,children:n}=r.vnode,i=$D(r);gV(r,t,i,e),_V(r,n);const a=i?NV(r,e):void 0;return Ep=!1,a}function NV(r,e){const t=r.type;r.accessCache=Object.create(null),r.proxy=aI(new Proxy(r.ctx,_T));const{setup:n}=t;if(n){const i=r.setupContext=n.length>1?KD(r):null;Ru(r),Qp();const a=tl(n,r,0,[r.props,i]);if(Hp(),_u(),Zx(a)){if(a.then(_u,_u),e)return a.then(o=>{bT(r,o,e)}).catch(o=>{Eh(o,r,0)});r.asyncDep=a}else bT(r,a,e)}else jD(r,e)}function bT(r,e,t){je(e)?r.type.__ssrInlineRender?r.ssrRender=e:r.render=e:hn(e)&&(r.setupState=AI(e)),jD(r,t)}let l_,ST;function PV(r){l_=r,ST=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,cV))}}const UV=()=>!l_;function jD(r,e,t){const n=r.type;if(!r.render){if(!e&&l_&&!n.render){const i=n.template||mI(r).template;if(i){const{isCustomElement:a,compilerOptions:o}=r.appContext.config,{delimiters:s,compilerOptions:A}=n,l=zn(zn({isCustomElement:a,delimiters:s},o),A);n.render=l_(i,l)}}r.render=n.render||bs,ST&&ST(r)}Ru(r),Qp(),hV(r),Hp(),_u()}function DV(r){return new Proxy(r.attrs,{get(e,t){return No(r,"get","$attrs"),e[t]}})}function KD(r){const e=n=>{r.exposed=n||{}};let t;return{get attrs(){return t||(t=DV(r))},slots:r.slots,emit:r.emit,expose:e}}function G1(r){if(r.exposed)return r.exposeProxy||(r.exposeProxy=new Proxy(AI(aI(r.exposed)),{get(e,t){if(t in e)return e[t];if(t in Lv)return Lv[t](r)},has(e,t){return t in e||t in Lv}}))}function xT(r,e=!0){return je(r)?r.displayName||r.name:r.name||e&&r.__name}function QV(r){return je(r)&&"__vccOpts"in r}const fr=(r,e)=>M$(r,e,Ep);function HV(){return null}function GV(){return null}function kV(r){}function $V(r,e){return null}function VV(){return zD().slots}function jV(){return zD().attrs}function zD(){const r=Yu();return r.setupContext||(r.setupContext=KD(r))}function KV(r,e){const t=we(r)?r.reduce((n,i)=>(n[i]={},n),{}):r;for(const n in e){const i=t[n];i?we(i)||je(i)?t[n]={type:i,default:e[n]}:i.default=e[n]:i===null&&(t[n]={default:e[n]})}return t}function zV(r,e){const t={};for(const n in r)e.includes(n)||Object.defineProperty(t,n,{enumerable:!0,get:()=>r[n]});return t}function YV(r){const e=Yu();let t=r();return _u(),Zx(t)&&(t=t.catch(n=>{throw Ru(e),n})),[t,()=>Ru(e)]}function YD(r,e,t){const n=arguments.length;return n===2?hn(e)&&!we(e)?Ou(e)?Wr(r,null,[e]):Wr(r,e):Wr(r,null,e):(n>3?t=Array.prototype.slice.call(arguments,2):n===3&&Ou(t)&&(t=[t]),Wr(r,e,t))}const XD=Symbol(""),WD=()=>Ce(XD);function XV(){}function WV(r,e,t,n){const i=t[n];if(i&&qD(i,r))return i;const a=e();return a.memo=r.slice(),t[n]=a}function qD(r,e){const t=r.memo;if(t.length!=e.length)return!1;for(let n=0;n0&&so&&so.push(r),!0}const ZD="3.2.45",qV={createComponentInstance:kD,setupComponent:VD,renderComponentRoot:L0,setCurrentRenderingInstance:ig,isVNode:Ou,normalizeVNode:Io},ZV=qV,JV=null,tj=null,ej="http://www.w3.org/2000/svg",Lc=typeof document<"u"?document:null,lR=Lc&&Lc.createElement("template"),rj={insert:(r,e,t)=>{e.insertBefore(r,t||null)},remove:r=>{const e=r.parentNode;e&&e.removeChild(r)},createElement:(r,e,t,n)=>{const i=e?Lc.createElementNS(ej,r):Lc.createElement(r,t?{is:t}:void 0);return r==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:r=>Lc.createTextNode(r),createComment:r=>Lc.createComment(r),setText:(r,e)=>{r.nodeValue=e},setElementText:(r,e)=>{r.textContent=e},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Lc.querySelector(r),setScopeId(r,e){r.setAttribute(e,"")},insertStaticContent(r,e,t,n,i,a){const o=t?t.previousSibling:e.lastChild;if(i&&(i===a||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),t),!(i===a||!(i=i.nextSibling)););else{lR.innerHTML=n?`${r}`:r;const s=lR.content;if(n){const A=s.firstChild;for(;A.firstChild;)s.appendChild(A.firstChild);s.removeChild(A)}e.insertBefore(s,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}};function nj(r,e,t){const n=r._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?r.removeAttribute("class"):t?r.setAttribute("class",e):r.className=e}function ij(r,e,t){const n=r.style,i=Dn(t);if(t&&!i){for(const a in t)IT(n,a,t[a]);if(e&&!Dn(e))for(const a in e)t[a]==null&&IT(n,a,"")}else{const a=n.display;i?e!==t&&(n.cssText=t):e&&r.removeAttribute("style"),"_vod"in r&&(n.display=a)}}const uR=/\s*!important$/;function IT(r,e,t){if(we(t))t.forEach(n=>IT(r,e,n));else if(t==null&&(t=""),e.startsWith("--"))r.setProperty(e,t);else{const n=aj(r,e);uR.test(t)?r.setProperty(qo(n),t.replace(uR,""),"important"):r[n]=t}}const cR=["Webkit","Moz","ms"],nC={};function aj(r,e){const t=nC[e];if(t)return t;let n=Ao(e);if(n!=="filter"&&n in r)return nC[e]=n;n=Dg(n);for(let i=0;iiC||(cj.then(()=>iC=0),iC=Date.now());function fj(r,e){const t=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=t.attached)return;Mo(pj(n,t.value),e,5,[n])};return t.value=r,t.attached=hj(),t}function pj(r,e){if(we(e)){const t=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{t.call(r),r._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const pR=/^on[a-z]/,dj=(r,e,t,n,i=!1,a,o,s,A)=>{e==="class"?nj(r,n,i):e==="style"?ij(r,t,n):Pg(e)?Wx(e)||lj(r,e,t,n,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):vj(r,e,n,i))?sj(r,e,n,a,o,s,A):(e==="true-value"?r._trueValue=n:e==="false-value"&&(r._falseValue=n),oj(r,e,n,i))};function vj(r,e,t,n){return n?!!(e==="innerHTML"||e==="textContent"||e in r&&pR.test(e)&&je(t)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&r.tagName==="INPUT"||e==="type"&&r.tagName==="TEXTAREA"||pR.test(e)&&Dn(t)?!1:e in r}function JD(r,e){const t=vI(r);class n extends k1{constructor(a){super(t,a,e)}}return n.def=t,n}const gj=r=>JD(r,p6),yj=typeof HTMLElement<"u"?HTMLElement:class{};class k1 extends yj{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,uI(()=>{this._connected||(OT(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let n=0;n{for(const i of n)this._setAttr(i.attributeName)}).observe(this,{attributes:!0});const e=(n,i=!1)=>{const{props:a,styles:o}=n;let s;if(a&&!we(a))for(const A in a){const l=a[A];(l===Number||l&&l.type===Number)&&(A in this._props&&(this._props[A]=ll(this._props[A])),(s||(s=Object.create(null)))[Ao(A)]=!0)}this._numberProps=s,i&&this._resolveProps(n),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then(n=>e(n,!0)):e(this._def)}_resolveProps(e){const{props:t}=e,n=we(t)?t:Object.keys(t||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of n.map(Ao))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a)}})}_setAttr(e){let t=this.getAttribute(e);const n=Ao(e);this._numberProps&&this._numberProps[n]&&(t=ll(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,i=!0){t!==this._props[e]&&(this._props[e]=t,i&&this._instance&&this._update(),n&&(t===!0?this.setAttribute(qo(e),""):typeof t=="string"||typeof t=="number"?this.setAttribute(qo(e),t+""):t||this.removeAttribute(qo(e))))}_update(){OT(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Wr(this._def,zn({},this._props));return this._instance||(e.ce=t=>{this._instance=t,t.isCE=!0;const n=(a,o)=>{this.dispatchEvent(new CustomEvent(a,{detail:o}))};t.emit=(a,...o)=>{n(a,o),qo(a)!==a&&n(qo(a),o)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof k1){t.parent=i._instance,t.provides=i._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(t=>{const n=document.createElement("style");n.textContent=t,this.shadowRoot.appendChild(n)})}}function mj(r="$style"){{const e=Yu();if(!e)return an;const t=e.type.__cssModules;if(!t)return an;const n=t[r];return n||an}}function _j(r){const e=Yu();if(!e)return;const t=e.ut=(i=r(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(a=>LT(a,i))},n=()=>{const i=r(e.proxy);FT(e.subTree,i),t(i)};cD(n),Ze(()=>{const i=new MutationObserver(n);i.observe(e.subTree.el.parentNode,{childList:!0}),ir(()=>i.disconnect())})}function FT(r,e){if(r.shapeFlag&128){const t=r.suspense;r=t.activeBranch,t.pendingBranch&&!t.isHydrating&&t.effects.push(()=>{FT(t.activeBranch,e)})}for(;r.component;)r=r.component.subTree;if(r.shapeFlag&1&&r.el)LT(r.el,e);else if(r.type===Mi)r.children.forEach(t=>FT(t,e));else if(r.type===Kc){let{el:t,anchor:n}=r;for(;t&&(LT(t,e),t!==n);)t=t.nextSibling}}function LT(r,e){if(r.nodeType===1){const t=r.style;for(const n in e)t.setProperty(`--${n}`,e[n])}}const Kl="transition",Qd="animation",$1=(r,{slots:e})=>YD(dI,e6(r),e);$1.displayName="Transition";const t6={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},wj=$1.props=zn({},dI.props,t6),fc=(r,e=[])=>{we(r)?r.forEach(t=>t(...e)):r&&r(...e)},dR=r=>r?we(r)?r.some(e=>e.length>1):r.length>1:!1;function e6(r){const e={};for(const b in r)b in t6||(e[b]=r[b]);if(r.css===!1)return e;const{name:t="v",type:n,duration:i,enterFromClass:a=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:s=`${t}-enter-to`,appearFromClass:A=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:c=`${t}-leave-from`,leaveActiveClass:h=`${t}-leave-active`,leaveToClass:f=`${t}-leave-to`}=r,p=Ej(i),v=p&&p[0],m=p&&p[1],{onBeforeEnter:g,onEnter:_,onEnterCancelled:E,onLeave:B,onLeaveCancelled:L,onBeforeAppear:O=g,onAppear:x=_,onAppearCancelled:T=E}=e,I=(b,N,P)=>{eu(b,N?u:s),eu(b,N?l:o),P&&P()},M=(b,N)=>{b._isLeaving=!1,eu(b,c),eu(b,f),eu(b,h),N&&N()},S=b=>(N,P)=>{const X=b?x:_,z=()=>I(N,b,P);fc(X,[N,z]),vR(()=>{eu(N,b?A:a),VA(N,b?u:s),dR(X)||gR(N,n,v,z)})};return zn(e,{onBeforeEnter(b){fc(g,[b]),VA(b,a),VA(b,o)},onBeforeAppear(b){fc(O,[b]),VA(b,A),VA(b,l)},onEnter:S(!1),onAppear:S(!0),onLeave(b,N){b._isLeaving=!0;const P=()=>M(b,N);VA(b,c),n6(),VA(b,h),vR(()=>{b._isLeaving&&(eu(b,c),VA(b,f),dR(B)||gR(b,n,m,P))}),fc(B,[b,P])},onEnterCancelled(b){I(b,!1),fc(E,[b])},onAppearCancelled(b){I(b,!0),fc(T,[b])},onLeaveCancelled(b){M(b),fc(L,[b])}})}function Ej(r){if(r==null)return null;if(hn(r))return[aC(r.enter),aC(r.leave)];{const e=aC(r);return[e,e]}}function aC(r){return ll(r)}function VA(r,e){e.split(/\s+/).forEach(t=>t&&r.classList.add(t)),(r._vtc||(r._vtc=new Set)).add(e)}function eu(r,e){e.split(/\s+/).forEach(n=>n&&r.classList.remove(n));const{_vtc:t}=r;t&&(t.delete(e),t.size||(r._vtc=void 0))}function vR(r){requestAnimationFrame(()=>{requestAnimationFrame(r)})}let Cj=0;function gR(r,e,t,n){const i=r._endId=++Cj,a=()=>{i===r._endId&&n()};if(t)return setTimeout(a,t);const{type:o,timeout:s,propCount:A}=r6(r,e);if(!o)return n();const l=o+"end";let u=0;const c=()=>{r.removeEventListener(l,h),a()},h=f=>{f.target===r&&++u>=A&&c()};setTimeout(()=>{u(t[p]||"").split(", "),i=n(`${Kl}Delay`),a=n(`${Kl}Duration`),o=yR(i,a),s=n(`${Qd}Delay`),A=n(`${Qd}Duration`),l=yR(s,A);let u=null,c=0,h=0;e===Kl?o>0&&(u=Kl,c=o,h=a.length):e===Qd?l>0&&(u=Qd,c=l,h=A.length):(c=Math.max(o,l),u=c>0?o>l?Kl:Qd:null,h=u?u===Kl?a.length:A.length:0);const f=u===Kl&&/\b(transform|all)(,|$)/.test(n(`${Kl}Property`).toString());return{type:u,timeout:c,propCount:h,hasTransform:f}}function yR(r,e){for(;r.lengthmR(t)+mR(r[n])))}function mR(r){return Number(r.slice(0,-1).replace(",","."))*1e3}function n6(){return document.body.offsetHeight}const i6=new WeakMap,a6=new WeakMap,Bj={name:"TransitionGroup",props:zn({},wj,{tag:String,moveClass:String}),setup(r,{slots:e}){const t=Yu(),n=pI();let i,a;return D1(()=>{if(!i.length)return;const o=r.moveClass||`${r.name||"v"}-move`;if(!Ij(i[0].el,t.vnode.el,o))return;i.forEach(bj),i.forEach(Sj);const s=i.filter(xj);n6(),s.forEach(A=>{const l=A.el,u=l.style;VA(l,o),u.transform=u.webkitTransform=u.transitionDuration="";const c=l._moveCb=h=>{h&&h.target!==l||(!h||/transform$/.test(h.propertyName))&&(l.removeEventListener("transitionend",c),l._moveCb=null,eu(l,o))};l.addEventListener("transitionend",c)})}),()=>{const o=Lr(r),s=e6(o);let A=o.tag||Mi;i=a,a=e.default?P1(e.default()):[];for(let l=0;l{o.split(/\s+/).forEach(s=>s&&n.classList.remove(s))}),t.split(/\s+/).forEach(o=>o&&n.classList.add(o)),n.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(n);const{hasTransform:a}=r6(n);return i.removeChild(n),a}const Mu=r=>{const e=r.props["onUpdate:modelValue"]||!1;return we(e)?t=>rp(e,t):e};function Fj(r){r.target.composing=!0}function _R(r){const e=r.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const u_={created(r,{modifiers:{lazy:e,trim:t,number:n}},i){r._assign=Mu(i);const a=n||i.props&&i.props.type==="number";qA(r,e?"change":"input",o=>{if(o.target.composing)return;let s=r.value;t&&(s=s.trim()),a&&(s=ll(s)),r._assign(s)}),t&&qA(r,"change",()=>{r.value=r.value.trim()}),e||(qA(r,"compositionstart",Fj),qA(r,"compositionend",_R),qA(r,"change",_R))},mounted(r,{value:e}){r.value=e??""},beforeUpdate(r,{value:e,modifiers:{lazy:t,trim:n,number:i}},a){if(r._assign=Mu(a),r.composing||document.activeElement===r&&r.type!=="range"&&(t||n&&r.value.trim()===e||(i||r.type==="number")&&ll(r.value)===e))return;const o=e??"";r.value!==o&&(r.value=o)}},BI={deep:!0,created(r,e,t){r._assign=Mu(t),qA(r,"change",()=>{const n=r._modelValue,i=Cp(r),a=r.checked,o=r._assign;if(we(n)){const s=b1(n,i),A=s!==-1;if(a&&!A)o(n.concat(i));else if(!a&&A){const l=[...n];l.splice(s,1),o(l)}}else if(wh(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(s6(r,a))})},mounted:wR,beforeUpdate(r,e,t){r._assign=Mu(t),wR(r,e,t)}};function wR(r,{value:e,oldValue:t},n){r._modelValue=e,we(e)?r.checked=b1(e,n.props.value)>-1:wh(e)?r.checked=e.has(n.props.value):e!==t&&(r.checked=Iu(e,s6(r,!0)))}const TI={created(r,{value:e},t){r.checked=Iu(e,t.props.value),r._assign=Mu(t),qA(r,"change",()=>{r._assign(Cp(r))})},beforeUpdate(r,{value:e,oldValue:t},n){r._assign=Mu(n),e!==t&&(r.checked=Iu(e,n.props.value))}},o6={deep:!0,created(r,{value:e,modifiers:{number:t}},n){const i=wh(e);qA(r,"change",()=>{const a=Array.prototype.filter.call(r.options,o=>o.selected).map(o=>t?ll(Cp(o)):Cp(o));r._assign(r.multiple?i?new Set(a):a:a[0])}),r._assign=Mu(n)},mounted(r,{value:e}){ER(r,e)},beforeUpdate(r,e,t){r._assign=Mu(t)},updated(r,{value:e}){ER(r,e)}};function ER(r,e){const t=r.multiple;if(!(t&&!we(e)&&!wh(e))){for(let n=0,i=r.options.length;n-1:a.selected=e.has(o);else if(Iu(Cp(a),e)){r.selectedIndex!==n&&(r.selectedIndex=n);return}}!t&&r.selectedIndex!==-1&&(r.selectedIndex=-1)}}function Cp(r){return"_value"in r?r._value:r.value}function s6(r,e){const t=e?"_trueValue":"_falseValue";return t in r?r[t]:e}const A6={created(r,e,t){mm(r,e,t,null,"created")},mounted(r,e,t){mm(r,e,t,null,"mounted")},beforeUpdate(r,e,t,n){mm(r,e,t,n,"beforeUpdate")},updated(r,e,t,n){mm(r,e,t,n,"updated")}};function l6(r,e){switch(r){case"SELECT":return o6;case"TEXTAREA":return u_;default:switch(e){case"checkbox":return BI;case"radio":return TI;default:return u_}}}function mm(r,e,t,n,i){const o=l6(r.tagName,t.props&&t.props.type)[i];o&&o(r,e,t,n)}function Lj(){u_.getSSRProps=({value:r})=>({value:r}),TI.getSSRProps=({value:r},e)=>{if(e.props&&Iu(e.props.value,r))return{checked:!0}},BI.getSSRProps=({value:r},e)=>{if(we(r)){if(e.props&&b1(r,e.props.value)>-1)return{checked:!0}}else if(wh(r)){if(e.props&&r.has(e.props.value))return{checked:!0}}else if(r)return{checked:!0}},A6.getSSRProps=(r,e)=>{if(typeof e.type!="string")return;const t=l6(e.type.toUpperCase(),e.props&&e.props.type);if(t.getSSRProps)return t.getSSRProps(r,e)}}const Oj=["ctrl","shift","alt","meta"],Rj={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,e)=>Oj.some(t=>r[`${t}Key`]&&!e.includes(t))},Mj=(r,e)=>(t,...n)=>{for(let i=0;it=>{if(!("key"in t))return;const n=qo(t.key);if(e.some(i=>i===n||Nj[i]===n))return r(t)},u6={beforeMount(r,{value:e},{transition:t}){r._vod=r.style.display==="none"?"":r.style.display,t&&e?t.beforeEnter(r):Hd(r,e)},mounted(r,{value:e},{transition:t}){t&&e&&t.enter(r)},updated(r,{value:e,oldValue:t},{transition:n}){!e!=!t&&(n?e?(n.beforeEnter(r),Hd(r,!0),n.enter(r)):n.leave(r,()=>{Hd(r,!1)}):Hd(r,e))},beforeUnmount(r,{value:e}){Hd(r,e)}};function Hd(r,e){r.style.display=e?r._vod:"none"}function Uj(){u6.getSSRProps=({value:r})=>{if(!r)return{style:{display:"none"}}}}const c6=zn({patchProp:dj},rj);let Mv,CR=!1;function h6(){return Mv||(Mv=RD(c6))}function f6(){return Mv=CR?Mv:MD(c6),CR=!0,Mv}const OT=(...r)=>{h6().render(...r)},p6=(...r)=>{f6().hydrate(...r)},d6=(...r)=>{const e=h6().createApp(...r),{mount:t}=e;return e.mount=n=>{const i=v6(n);if(!i)return;const a=e._component;!je(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const o=t(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e},Dj=(...r)=>{const e=f6().createApp(...r),{mount:t}=e;return e.mount=n=>{const i=v6(n);if(i)return t(i,!0,i instanceof SVGElement)},e};function v6(r){return Dn(r)?document.querySelector(r):r}let BR=!1;const Qj=()=>{BR||(BR=!0,Lj(),Uj())},Hj=()=>{},Gj=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:dI,Comment:Ta,EffectScope:tI,Fragment:Mi,KeepAlive:nV,ReactiveEffect:Qg,Static:Kc,Suspense:z$,Teleport:IV,Text:oh,Transition:$1,TransitionGroup:Tj,VueElement:k1,callWithAsyncErrorHandling:Mo,callWithErrorHandling:tl,camelize:Ao,capitalize:Dg,cloneVNode:AA,compatUtils:tj,compile:Hj,computed:fr,createApp:d6,createBlock:$g,createCommentVNode:ur,createElementBlock:Ln,createElementVNode:Mn,createHydrationRenderer:MD,createPropsRestProxy:zV,createRenderer:RD,createSSRApp:Dj,createSlots:lV,createStaticVNode:OV,createTextVNode:EI,createVNode:Wr,customRef:L$,defineAsyncComponent:eV,defineComponent:vI,defineCustomElement:JD,defineEmits:GV,defineExpose:kV,defineProps:HV,defineSSRCustomElement:gj,get devtools(){return Ff},effect:J9,effectScope:Y9,getCurrentInstance:Yu,getCurrentScope:X9,getTransitionRawChildren:P1,guardReactiveProps:HD,h:YD,handleError:Eh,hydrate:p6,initCustomFormatter:XV,initDirectivesForSSR:Qj,inject:Ce,isMemoSame:qD,isProxy:iI,isReactive:Vc,isReadonly:ih,isRef:qi,isRuntimeOnly:UV,isShallow:tg,isVNode:Ou,markRaw:aI,mergeDefaults:KV,mergeProps:GD,nextTick:uI,normalizeClass:Ng,normalizeProps:U9,normalizeStyle:Mg,onActivated:pD,onBeforeMount:gD,onBeforeUnmount:Q1,onBeforeUpdate:yD,onDeactivated:dD,onErrorCaptured:ED,onMounted:Ze,onRenderTracked:wD,onRenderTriggered:_D,onScopeDispose:W9,onServerPrefetch:mD,onUnmounted:ir,onUpdated:D1,openBlock:tn,popScopeId:sD,provide:Mr,proxyRefs:AI,pushScopeId:oD,queuePostFlushCb:cI,reactive:Hg,readonly:nI,ref:$n,registerRuntimeCompiler:PV,render:OT,renderList:BD,renderSlot:mr,resolveComponent:Lf,resolveDirective:AV,resolveDynamicComponent:sV,resolveFilter:JV,resolveTransitionHooks:wp,setBlockTracking:TT,setDevtoolsHook:iD,setTransitionHooks:ah,shallowReactive:W2,shallowReadonly:T$,shallowRef:b$,ssrContextKey:XD,ssrUtils:ZV,stop:t$,toDisplayString:Ki,toHandlerKey:Fv,toHandlers:uV,toRaw:Lr,toRef:J2,toRefs:Lu,transformVNodeArgs:FV,triggerRef:x$,unref:Z2,useAttrs:jV,useCssModule:mj,useCssVars:_j,useSSRContext:WD,useSlots:VV,useTransitionState:pI,vModelCheckbox:BI,vModelDynamic:A6,vModelRadio:TI,vModelSelect:o6,vModelText:u_,vShow:u6,version:ZD,warn:N$,watch:he,watchEffect:uD,watchPostEffect:cD,watchSyncEffect:Z$,withAsyncContext:YV,withCtx:Nc,withDefaults:$V,withDirectives:aV,withKeys:Pj,withMemo:WV,withModifiers:Mj,withScopeId:G$},Symbol.toStringTag,{value:"Module"})),kj={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};let $j=class{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent!==void 0?e.extent:null,this.worldExtent_=e.worldExtent!==void 0?e.worldExtent:null,this.axisOrientation_=e.axisOrientation!==void 0?e.axisOrientation:"enu",this.global_=e.global!==void 0?e.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||kj[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}};const g6=$j,Vg=6378137,kf=Math.PI*Vg,Vj=[-kf,-kf,kf,kf],jj=[-180,-85,180,85],_m=Vg*Math.log(Math.tan(Math.PI/2));let uf=class extends g6{constructor(e){super({code:e,units:"m",extent:Vj,global:!0,worldExtent:jj,getPointResolution:function(t,n){return t/Math.cosh(n[1]/Vg)}})}};const TR=[new uf("EPSG:3857"),new uf("EPSG:102100"),new uf("EPSG:102113"),new uf("EPSG:900913"),new uf("http://www.opengis.net/def/crs/EPSG/0/3857"),new uf("http://www.opengis.net/gml/srs/epsg.xml#3857")];function Kj(r,e,t){const n=r.length;t=t>1?t:2,e===void 0&&(t>2?e=r.slice():e=new Array(n));for(let i=0;i_m?a=_m:a<-_m&&(a=-_m),e[i+1]=a}return e}function zj(r,e,t){const n=r.length;t=t>1?t:2,e===void 0&&(t>2?e=r.slice():e=new Array(n));for(let i=0;i()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const y6=function(r){const e=[];let t=0;for(let n=0;n>6|192,e[t++]=i&63|128):(i&64512)===55296&&n+1>18|240,e[t++]=i>>12&63|128,e[t++]=i>>6&63|128,e[t++]=i&63|128):(e[t++]=i>>12|224,e[t++]=i>>6&63|128,e[t++]=i&63|128)}return e},sK=function(r){const e=[];let t=0,n=0;for(;t191&&i<224){const a=r[t++];e[n++]=String.fromCharCode((i&31)<<6|a&63)}else if(i>239&&i<365){const a=r[t++],o=r[t++],s=r[t++],A=((i&7)<<18|(a&63)<<12|(o&63)<<6|s&63)-65536;e[n++]=String.fromCharCode(55296+(A>>10)),e[n++]=String.fromCharCode(56320+(A&1023))}else{const a=r[t++],o=r[t++];e[n++]=String.fromCharCode((i&15)<<12|(a&63)<<6|o&63)}}return e.join("")},m6={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(r,e){if(!Array.isArray(r))throw Error("encodeByteArray takes an array as a parameter");this.init_();const t=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let i=0;i>2,c=(a&3)<<4|s>>4;let h=(s&15)<<2|l>>6,f=l&63;A||(f=64,o||(h=64)),n.push(t[u],t[c],t[h],t[f])}return n.join("")},encodeString(r,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(r):this.encodeByteArray(y6(r),e)},decodeString(r,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(r):sK(this.decodeStringToByteArray(r,e))},decodeStringToByteArray(r,e){this.init_();const t=e?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let i=0;i>4;if(n.push(h),l!==64){const f=s<<4&240|l>>2;if(n.push(f),c!==64){const p=l<<6&192|c;n.push(p)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let r=0;r=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(r)]=r,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(r)]=r)}}},AK=function(r){const e=y6(r);return m6.encodeByteArray(e,!0)},_6=function(r){return AK(r).replace(/\./g,"")},lK=function(r){try{return m6.decodeString(r,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/** + */const m6=function(r){const e=[];let t=0;for(let n=0;n>6|192,e[t++]=i&63|128):(i&64512)===55296&&n+1>18|240,e[t++]=i>>12&63|128,e[t++]=i>>6&63|128,e[t++]=i&63|128):(e[t++]=i>>12|224,e[t++]=i>>6&63|128,e[t++]=i&63|128)}return e},sK=function(r){const e=[];let t=0,n=0;for(;t191&&i<224){const a=r[t++];e[n++]=String.fromCharCode((i&31)<<6|a&63)}else if(i>239&&i<365){const a=r[t++],o=r[t++],s=r[t++],A=((i&7)<<18|(a&63)<<12|(o&63)<<6|s&63)-65536;e[n++]=String.fromCharCode(55296+(A>>10)),e[n++]=String.fromCharCode(56320+(A&1023))}else{const a=r[t++],o=r[t++];e[n++]=String.fromCharCode((i&15)<<12|(a&63)<<6|o&63)}}return e.join("")},_6={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(r,e){if(!Array.isArray(r))throw Error("encodeByteArray takes an array as a parameter");this.init_();const t=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let i=0;i>2,c=(a&3)<<4|s>>4;let h=(s&15)<<2|l>>6,f=l&63;A||(f=64,o||(h=64)),n.push(t[u],t[c],t[h],t[f])}return n.join("")},encodeString(r,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(r):this.encodeByteArray(m6(r),e)},decodeString(r,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(r):sK(this.decodeStringToByteArray(r,e))},decodeStringToByteArray(r,e){this.init_();const t=e?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let i=0;i>4;if(n.push(h),l!==64){const f=s<<4&240|l>>2;if(n.push(f),c!==64){const p=l<<6&192|c;n.push(p)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let r=0;r=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(r)]=r,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(r)]=r)}}},AK=function(r){const e=m6(r);return _6.encodeByteArray(e,!0)},w6=function(r){return AK(r).replace(/\./g,"")},lK=function(r){try{return _6.decodeString(r,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/** * @license * Copyright 2022 Google LLC * @@ -58,7 +58,7 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const cK=()=>uK().__FIREBASE_DEFAULTS__,hK=()=>{if(typeof process>"u"||typeof process.env>"u")return;const r={}.__FIREBASE_DEFAULTS__;if(r)return JSON.parse(r)},fK=()=>{if(typeof document>"u")return;let r;try{r=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=r&&lK(r[1]);return e&&JSON.parse(e)},w6=()=>{try{return cK()||hK()||fK()}catch(r){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${r}`);return}},pK=r=>{var e,t;return(t=(e=w6())===null||e===void 0?void 0:e.emulatorHosts)===null||t===void 0?void 0:t[r]},dK=r=>{const e=pK(r);if(!e)return;const t=e.lastIndexOf(":");if(t<=0||t+1===e.length)throw new Error(`Invalid host ${e} with no separate hostname and port!`);const n=parseInt(e.substring(t+1),10);return e[0]==="["?[e.substring(1,t-1),n]:[e.substring(0,t),n]},vK=()=>{var r;return(r=w6())===null||r===void 0?void 0:r.config};/** + */const cK=()=>uK().__FIREBASE_DEFAULTS__,hK=()=>{if(typeof process>"u"||typeof process.env>"u")return;const r={}.__FIREBASE_DEFAULTS__;if(r)return JSON.parse(r)},fK=()=>{if(typeof document>"u")return;let r;try{r=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=r&&lK(r[1]);return e&&JSON.parse(e)},E6=()=>{try{return cK()||hK()||fK()}catch(r){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${r}`);return}},pK=r=>{var e,t;return(t=(e=E6())===null||e===void 0?void 0:e.emulatorHosts)===null||t===void 0?void 0:t[r]},dK=r=>{const e=pK(r);if(!e)return;const t=e.lastIndexOf(":");if(t<=0||t+1===e.length)throw new Error(`Invalid host ${e} with no separate hostname and port!`);const n=parseInt(e.substring(t+1),10);return e[0]==="["?[e.substring(1,t-1),n]:[e.substring(0,t),n]},vK=()=>{var r;return(r=E6())===null||r===void 0?void 0:r.config};/** * @license * Copyright 2017 Google LLC * @@ -88,7 +88,7 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const _K="FirebaseError";class Gp extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name=_K,Object.setPrototypeOf(this,Gp.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,E6.prototype.create)}}class E6{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},i=`${this.service}/${e}`,a=this.errors[e],o=a?wK(a,n):"Error",s=`${this.serviceName}: ${o} (${i}).`;return new Gp(i,s,n)}}function wK(r,e){return r.replace(EK,(t,n)=>{const i=e[n];return i!=null?String(i):`<${n}?>`})}const EK=/\{\$([^}]+)}/g;function MT(r,e){if(r===e)return!0;const t=Object.keys(r),n=Object.keys(e);for(const i of t){if(!n.includes(i))return!1;const a=r[i],o=e[i];if(FR(a)&&FR(o)){if(!MT(a,o))return!1}else if(a!==o)return!1}for(const i of n)if(!t.includes(i))return!1;return!0}function FR(r){return r!==null&&typeof r=="object"}/** + */const _K="FirebaseError";class Gp extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name=_K,Object.setPrototypeOf(this,Gp.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,C6.prototype.create)}}class C6{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},i=`${this.service}/${e}`,a=this.errors[e],o=a?wK(a,n):"Error",s=`${this.serviceName}: ${o} (${i}).`;return new Gp(i,s,n)}}function wK(r,e){return r.replace(EK,(t,n)=>{const i=e[n];return i!=null?String(i):`<${n}?>`})}const EK=/\{\$([^}]+)}/g;function MT(r,e){if(r===e)return!0;const t=Object.keys(r),n=Object.keys(e);for(const i of t){if(!n.includes(i))return!1;const a=r[i],o=e[i];if(LR(a)&&LR(o)){if(!MT(a,o))return!1}else if(a!==o)return!1}for(const i of n)if(!t.includes(i))return!1;return!0}function LR(r){return r!==null&&typeof r=="object"}/** * @license * Copyright 2021 Google LLC * @@ -103,7 +103,7 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function SI(r){return r&&r._delegate?r._delegate:r}class og{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/** + */function bI(r){return r&&r._delegate?r._delegate:r}class og{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/** * @license * Copyright 2019 Google LLC * @@ -118,7 +118,7 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Sc="[DEFAULT]";/** + */const bc="[DEFAULT]";/** * @license * Copyright 2019 Google LLC * @@ -133,7 +133,7 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class CK{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const n=new gK;if(this.instancesDeferred.set(t,n),this.isInitialized(t)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:t});i&&n.resolve(i)}catch{}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),i=(t=e==null?void 0:e.optional)!==null&&t!==void 0?t:!1;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(a){if(i)return null;throw a}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(TK(e))try{this.getOrInitializeService({instanceIdentifier:Sc})}catch{}for(const[t,n]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(t);try{const a=this.getOrInitializeService({instanceIdentifier:i});n.resolve(a)}catch{}}}}clearInstance(e=Sc){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(t=>"INTERNAL"in t).map(t=>t.INTERNAL.delete()),...e.filter(t=>"_delete"in t).map(t=>t._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=Sc){return this.instances.has(e)}getOptions(e=Sc){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[a,o]of this.instancesDeferred.entries()){const s=this.normalizeInstanceIdentifier(a);n===s&&o.resolve(i)}return i}onInit(e,t){var n;const i=this.normalizeInstanceIdentifier(t),a=(n=this.onInitCallbacks.get(i))!==null&&n!==void 0?n:new Set;a.add(e),this.onInitCallbacks.set(i,a);const o=this.instances.get(i);return o&&e(o,i),()=>{a.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const i of n)try{i(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:BK(e),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch{}return n||null}normalizeInstanceIdentifier(e=Sc){return this.component?this.component.multipleInstances?e:Sc:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function BK(r){return r===Sc?void 0:r}function TK(r){return r.instantiationMode==="EAGER"}/** + */class CK{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const n=new gK;if(this.instancesDeferred.set(t,n),this.isInitialized(t)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:t});i&&n.resolve(i)}catch{}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),i=(t=e==null?void 0:e.optional)!==null&&t!==void 0?t:!1;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(a){if(i)return null;throw a}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(TK(e))try{this.getOrInitializeService({instanceIdentifier:bc})}catch{}for(const[t,n]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(t);try{const a=this.getOrInitializeService({instanceIdentifier:i});n.resolve(a)}catch{}}}}clearInstance(e=bc){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(t=>"INTERNAL"in t).map(t=>t.INTERNAL.delete()),...e.filter(t=>"_delete"in t).map(t=>t._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=bc){return this.instances.has(e)}getOptions(e=bc){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[a,o]of this.instancesDeferred.entries()){const s=this.normalizeInstanceIdentifier(a);n===s&&o.resolve(i)}return i}onInit(e,t){var n;const i=this.normalizeInstanceIdentifier(t),a=(n=this.onInitCallbacks.get(i))!==null&&n!==void 0?n:new Set;a.add(e),this.onInitCallbacks.set(i,a);const o=this.instances.get(i);return o&&e(o,i),()=>{a.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const i of n)try{i(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:BK(e),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch{}return n||null}normalizeInstanceIdentifier(e=bc){return this.component?this.component.multipleInstances?e:bc:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function BK(r){return r===bc?void 0:r}function TK(r){return r.instantiationMode==="EAGER"}/** * @license * Copyright 2019 Google LLC * @@ -148,7 +148,7 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class SK{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new CK(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}/** + */class bK{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new CK(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}/** * @license * Copyright 2017 Google LLC * @@ -163,7 +163,7 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */var Bn;(function(r){r[r.DEBUG=0]="DEBUG",r[r.VERBOSE=1]="VERBOSE",r[r.INFO=2]="INFO",r[r.WARN=3]="WARN",r[r.ERROR=4]="ERROR",r[r.SILENT=5]="SILENT"})(Bn||(Bn={}));const xK={debug:Bn.DEBUG,verbose:Bn.VERBOSE,info:Bn.INFO,warn:Bn.WARN,error:Bn.ERROR,silent:Bn.SILENT},bK=Bn.INFO,IK={[Bn.DEBUG]:"log",[Bn.VERBOSE]:"log",[Bn.INFO]:"info",[Bn.WARN]:"warn",[Bn.ERROR]:"error"},FK=(r,e,...t)=>{if(ee.some(t=>r instanceof t);let LR,OR;function RK(){return LR||(LR=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function MK(){return OR||(OR=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const C6=new WeakMap,NT=new WeakMap,B6=new WeakMap,oC=new WeakMap,xI=new WeakMap;function NK(r){const e=new Promise((t,n)=>{const i=()=>{r.removeEventListener("success",a),r.removeEventListener("error",o)},a=()=>{t(wu(r.result)),i()},o=()=>{n(r.error),i()};r.addEventListener("success",a),r.addEventListener("error",o)});return e.then(t=>{t instanceof IDBCursor&&C6.set(t,r)}).catch(()=>{}),xI.set(e,r),e}function PK(r){if(NT.has(r))return;const e=new Promise((t,n)=>{const i=()=>{r.removeEventListener("complete",a),r.removeEventListener("error",o),r.removeEventListener("abort",o)},a=()=>{t(),i()},o=()=>{n(r.error||new DOMException("AbortError","AbortError")),i()};r.addEventListener("complete",a),r.addEventListener("error",o),r.addEventListener("abort",o)});NT.set(r,e)}let PT={get(r,e,t){if(r instanceof IDBTransaction){if(e==="done")return NT.get(r);if(e==="objectStoreNames")return r.objectStoreNames||B6.get(r);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return wu(r[e])},set(r,e,t){return r[e]=t,!0},has(r,e){return r instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in r}};function UK(r){PT=r(PT)}function DK(r){return r===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=r.call(sC(this),e,...t);return B6.set(n,e.sort?e.sort():[e]),wu(n)}:MK().includes(r)?function(...e){return r.apply(sC(this),e),wu(C6.get(this))}:function(...e){return wu(r.apply(sC(this),e))}}function QK(r){return typeof r=="function"?DK(r):(r instanceof IDBTransaction&&PK(r),OK(r,RK())?new Proxy(r,PT):r)}function wu(r){if(r instanceof IDBRequest)return NK(r);if(oC.has(r))return oC.get(r);const e=QK(r);return e!==r&&(oC.set(r,e),xI.set(e,r)),e}const sC=r=>xI.get(r);function HK(r,e,{blocked:t,upgrade:n,blocking:i,terminated:a}={}){const o=indexedDB.open(r,e),s=wu(o);return n&&o.addEventListener("upgradeneeded",A=>{n(wu(o.result),A.oldVersion,A.newVersion,wu(o.transaction))}),t&&o.addEventListener("blocked",()=>t()),s.then(A=>{a&&A.addEventListener("close",()=>a()),i&&A.addEventListener("versionchange",()=>i())}).catch(()=>{}),s}const GK=["get","getKey","getAll","getAllKeys","count"],kK=["put","add","delete","clear"],AC=new Map;function RR(r,e){if(!(r instanceof IDBDatabase&&!(e in r)&&typeof e=="string"))return;if(AC.get(e))return AC.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,i=kK.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(i||GK.includes(t)))return;const a=async function(o,...s){const A=this.transaction(o,i?"readwrite":"readonly");let l=A.store;return n&&(l=l.index(s.shift())),(await Promise.all([l[t](...s),i&&A.done]))[0]};return AC.set(e,a),a}UK(r=>({...r,get:(e,t,n)=>RR(e,t)||r.get(e,t,n),has:(e,t)=>!!RR(e,t)||r.has(e,t)}));/** + */var Bn;(function(r){r[r.DEBUG=0]="DEBUG",r[r.VERBOSE=1]="VERBOSE",r[r.INFO=2]="INFO",r[r.WARN=3]="WARN",r[r.ERROR=4]="ERROR",r[r.SILENT=5]="SILENT"})(Bn||(Bn={}));const SK={debug:Bn.DEBUG,verbose:Bn.VERBOSE,info:Bn.INFO,warn:Bn.WARN,error:Bn.ERROR,silent:Bn.SILENT},xK=Bn.INFO,IK={[Bn.DEBUG]:"log",[Bn.VERBOSE]:"log",[Bn.INFO]:"info",[Bn.WARN]:"warn",[Bn.ERROR]:"error"},FK=(r,e,...t)=>{if(ee.some(t=>r instanceof t);let OR,RR;function RK(){return OR||(OR=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function MK(){return RR||(RR=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const B6=new WeakMap,NT=new WeakMap,T6=new WeakMap,oC=new WeakMap,SI=new WeakMap;function NK(r){const e=new Promise((t,n)=>{const i=()=>{r.removeEventListener("success",a),r.removeEventListener("error",o)},a=()=>{t(wu(r.result)),i()},o=()=>{n(r.error),i()};r.addEventListener("success",a),r.addEventListener("error",o)});return e.then(t=>{t instanceof IDBCursor&&B6.set(t,r)}).catch(()=>{}),SI.set(e,r),e}function PK(r){if(NT.has(r))return;const e=new Promise((t,n)=>{const i=()=>{r.removeEventListener("complete",a),r.removeEventListener("error",o),r.removeEventListener("abort",o)},a=()=>{t(),i()},o=()=>{n(r.error||new DOMException("AbortError","AbortError")),i()};r.addEventListener("complete",a),r.addEventListener("error",o),r.addEventListener("abort",o)});NT.set(r,e)}let PT={get(r,e,t){if(r instanceof IDBTransaction){if(e==="done")return NT.get(r);if(e==="objectStoreNames")return r.objectStoreNames||T6.get(r);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return wu(r[e])},set(r,e,t){return r[e]=t,!0},has(r,e){return r instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in r}};function UK(r){PT=r(PT)}function DK(r){return r===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=r.call(sC(this),e,...t);return T6.set(n,e.sort?e.sort():[e]),wu(n)}:MK().includes(r)?function(...e){return r.apply(sC(this),e),wu(B6.get(this))}:function(...e){return wu(r.apply(sC(this),e))}}function QK(r){return typeof r=="function"?DK(r):(r instanceof IDBTransaction&&PK(r),OK(r,RK())?new Proxy(r,PT):r)}function wu(r){if(r instanceof IDBRequest)return NK(r);if(oC.has(r))return oC.get(r);const e=QK(r);return e!==r&&(oC.set(r,e),SI.set(e,r)),e}const sC=r=>SI.get(r);function HK(r,e,{blocked:t,upgrade:n,blocking:i,terminated:a}={}){const o=indexedDB.open(r,e),s=wu(o);return n&&o.addEventListener("upgradeneeded",A=>{n(wu(o.result),A.oldVersion,A.newVersion,wu(o.transaction))}),t&&o.addEventListener("blocked",()=>t()),s.then(A=>{a&&A.addEventListener("close",()=>a()),i&&A.addEventListener("versionchange",()=>i())}).catch(()=>{}),s}const GK=["get","getKey","getAll","getAllKeys","count"],kK=["put","add","delete","clear"],AC=new Map;function MR(r,e){if(!(r instanceof IDBDatabase&&!(e in r)&&typeof e=="string"))return;if(AC.get(e))return AC.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,i=kK.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(i||GK.includes(t)))return;const a=async function(o,...s){const A=this.transaction(o,i?"readwrite":"readonly");let l=A.store;return n&&(l=l.index(s.shift())),(await Promise.all([l[t](...s),i&&A.done]))[0]};return AC.set(e,a),a}UK(r=>({...r,get:(e,t,n)=>MR(e,t)||r.get(e,t,n),has:(e,t)=>!!MR(e,t)||r.has(e,t)}));/** * @license * Copyright 2019 Google LLC * @@ -178,7 +178,7 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class $K{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(t=>{if(VK(t)){const n=t.getImmediate();return`${n.library}/${n.version}`}else return null}).filter(t=>t).join(" ")}}function VK(r){const e=r.getComponent();return(e==null?void 0:e.type)==="VERSION"}const UT="@firebase/app",MR="0.9.3";/** + */class $K{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(t=>{if(VK(t)){const n=t.getImmediate();return`${n.library}/${n.version}`}else return null}).filter(t=>t).join(" ")}}function VK(r){const e=r.getComponent();return(e==null?void 0:e.type)==="VERSION"}const UT="@firebase/app",NR="0.9.3";/** * @license * Copyright 2019 Google LLC * @@ -238,7 +238,7 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const yz={["no-app"]:"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",["bad-app-name"]:"Illegal App name: '{$appName}",["duplicate-app"]:"Firebase App named '{$appName}' already exists with different options or config",["app-deleted"]:"Firebase App named '{$appName}' already deleted",["no-options"]:"Need to provide options, when not being deployed to hosting via source.",["invalid-app-argument"]:"firebase.{$appName}() takes either no argument or a Firebase App instance.",["invalid-log-argument"]:"First argument to `onLog` must be null or a function.",["idb-open"]:"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.",["idb-get"]:"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",["idb-set"]:"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",["idb-delete"]:"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},Eu=new E6("app","Firebase",yz);/** + */const yz={["no-app"]:"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",["bad-app-name"]:"Illegal App name: '{$appName}",["duplicate-app"]:"Firebase App named '{$appName}' already exists with different options or config",["app-deleted"]:"Firebase App named '{$appName}' already deleted",["no-options"]:"Need to provide options, when not being deployed to hosting via source.",["invalid-app-argument"]:"firebase.{$appName}() takes either no argument or a Firebase App instance.",["invalid-log-argument"]:"First argument to `onLog` must be null or a function.",["idb-open"]:"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.",["idb-get"]:"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",["idb-set"]:"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",["idb-delete"]:"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},Eu=new C6("app","Firebase",yz);/** * @license * Copyright 2019 Google LLC * @@ -253,7 +253,7 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class mz{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new og("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw Eu.create("app-deleted",{appName:this._name})}}function T6(r,e={}){let t=r;typeof e!="object"&&(e={name:e});const n=Object.assign({name:DT,automaticDataCollectionEnabled:!1},e),i=n.name;if(typeof i!="string"||!i)throw Eu.create("bad-app-name",{appName:String(i)});if(t||(t=vK()),!t)throw Eu.create("no-options");const a=h_.get(i);if(a){if(MT(t,a.options)&&MT(n,a.config))return a;throw Eu.create("duplicate-app",{appName:i})}const o=new SK(i);for(const A of QT.values())o.addComponent(A);const s=new mz(t,n,o);return h_.set(i,s),s}function _z(r=DT){const e=h_.get(r);if(!e&&r===DT)return T6();if(!e)throw Eu.create("no-app",{appName:r});return e}function op(r,e,t){var n;let i=(n=dz[r])!==null&&n!==void 0?n:r;t&&(i+=`-${t}`);const a=i.match(/\s|\//),o=e.match(/\s|\//);if(a||o){const s=[`Unable to register library "${i}" with version "${e}":`];a&&s.push(`library name "${i}" contains illegal characters (whitespace or "/")`),a&&o&&s.push("and"),o&&s.push(`version name "${e}" contains illegal characters (whitespace or "/")`),Ah.warn(s.join(" "));return}f_(new og(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}/** + */class mz{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new og("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw Eu.create("app-deleted",{appName:this._name})}}function b6(r,e={}){let t=r;typeof e!="object"&&(e={name:e});const n=Object.assign({name:DT,automaticDataCollectionEnabled:!1},e),i=n.name;if(typeof i!="string"||!i)throw Eu.create("bad-app-name",{appName:String(i)});if(t||(t=vK()),!t)throw Eu.create("no-options");const a=h_.get(i);if(a){if(MT(t,a.options)&&MT(n,a.config))return a;throw Eu.create("duplicate-app",{appName:i})}const o=new bK(i);for(const A of QT.values())o.addComponent(A);const s=new mz(t,n,o);return h_.set(i,s),s}function _z(r=DT){const e=h_.get(r);if(!e&&r===DT)return b6();if(!e)throw Eu.create("no-app",{appName:r});return e}function op(r,e,t){var n;let i=(n=dz[r])!==null&&n!==void 0?n:r;t&&(i+=`-${t}`);const a=i.match(/\s|\//),o=e.match(/\s|\//);if(a||o){const s=[`Unable to register library "${i}" with version "${e}":`];a&&s.push(`library name "${i}" contains illegal characters (whitespace or "/")`),a&&o&&s.push("and"),o&&s.push(`version name "${e}" contains illegal characters (whitespace or "/")`),Ah.warn(s.join(" "));return}f_(new og(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}/** * @license * Copyright 2021 Google LLC * @@ -268,7 +268,7 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const wz="firebase-heartbeat-database",Ez=1,sg="firebase-heartbeat-store";let lC=null;function S6(){return lC||(lC=HK(wz,Ez,{upgrade:(r,e)=>{switch(e){case 0:r.createObjectStore(sg)}}}).catch(r=>{throw Eu.create("idb-open",{originalErrorMessage:r.message})})),lC}async function Cz(r){try{return(await S6()).transaction(sg).objectStore(sg).get(x6(r))}catch(e){if(e instanceof Gp)Ah.warn(e.message);else{const t=Eu.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});Ah.warn(t.message)}}}async function NR(r,e){try{const n=(await S6()).transaction(sg,"readwrite");return await n.objectStore(sg).put(e,x6(r)),n.done}catch(t){if(t instanceof Gp)Ah.warn(t.message);else{const n=Eu.create("idb-set",{originalErrorMessage:t==null?void 0:t.message});Ah.warn(n.message)}}}function x6(r){return`${r.name}!${r.options.appId}`}/** + */const wz="firebase-heartbeat-database",Ez=1,sg="firebase-heartbeat-store";let lC=null;function S6(){return lC||(lC=HK(wz,Ez,{upgrade:(r,e)=>{switch(e){case 0:r.createObjectStore(sg)}}}).catch(r=>{throw Eu.create("idb-open",{originalErrorMessage:r.message})})),lC}async function Cz(r){try{return(await S6()).transaction(sg).objectStore(sg).get(x6(r))}catch(e){if(e instanceof Gp)Ah.warn(e.message);else{const t=Eu.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});Ah.warn(t.message)}}}async function PR(r,e){try{const n=(await S6()).transaction(sg,"readwrite");return await n.objectStore(sg).put(e,x6(r)),n.done}catch(t){if(t instanceof Gp)Ah.warn(t.message);else{const n=Eu.create("idb-set",{originalErrorMessage:t==null?void 0:t.message});Ah.warn(n.message)}}}function x6(r){return`${r.name}!${r.options.appId}`}/** * @license * Copyright 2021 Google LLC * @@ -283,7 +283,7 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Bz=1024,Tz=30*24*60*60*1e3;class Sz{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new bz(t),this._heartbeatsCachePromise=this._storage.read().then(n=>(this._heartbeatsCache=n,n))}async triggerHeartbeat(){const t=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),n=PR();if(this._heartbeatsCache===null&&(this._heartbeatsCache=await this._heartbeatsCachePromise),!(this._heartbeatsCache.lastSentHeartbeatDate===n||this._heartbeatsCache.heartbeats.some(i=>i.date===n)))return this._heartbeatsCache.heartbeats.push({date:n,agent:t}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(i=>{const a=new Date(i.date).valueOf();return Date.now()-a<=Tz}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache===null||this._heartbeatsCache.heartbeats.length===0)return"";const e=PR(),{heartbeatsToSend:t,unsentEntries:n}=xz(this._heartbeatsCache.heartbeats),i=_6(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}}function PR(){return new Date().toISOString().substring(0,10)}function xz(r,e=Bz){const t=[];let n=r.slice();for(const i of r){const a=t.find(o=>o.agent===i.agent);if(a){if(a.dates.push(i.date),UR(t)>e){a.dates.pop();break}}else if(t.push({agent:i.agent,dates:[i.date]}),UR(t)>e){t.pop();break}n=n.slice(1)}return{heartbeatsToSend:t,unsentEntries:n}}class bz{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return yK()?mK().then(()=>!0).catch(()=>!1):!1}async read(){return await this._canUseIndexedDBPromise?await Cz(this.app)||{heartbeats:[]}:{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const i=await this.read();return NR(this.app,{lastSentHeartbeatDate:(t=e.lastSentHeartbeatDate)!==null&&t!==void 0?t:i.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var t;if(await this._canUseIndexedDBPromise){const i=await this.read();return NR(this.app,{lastSentHeartbeatDate:(t=e.lastSentHeartbeatDate)!==null&&t!==void 0?t:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...e.heartbeats]})}else return}}function UR(r){return _6(JSON.stringify({version:2,heartbeats:r})).length}/** + */const Bz=1024,Tz=30*24*60*60*1e3;class bz{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new xz(t),this._heartbeatsCachePromise=this._storage.read().then(n=>(this._heartbeatsCache=n,n))}async triggerHeartbeat(){const t=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),n=UR();if(this._heartbeatsCache===null&&(this._heartbeatsCache=await this._heartbeatsCachePromise),!(this._heartbeatsCache.lastSentHeartbeatDate===n||this._heartbeatsCache.heartbeats.some(i=>i.date===n)))return this._heartbeatsCache.heartbeats.push({date:n,agent:t}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(i=>{const a=new Date(i.date).valueOf();return Date.now()-a<=Tz}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache===null||this._heartbeatsCache.heartbeats.length===0)return"";const e=UR(),{heartbeatsToSend:t,unsentEntries:n}=Sz(this._heartbeatsCache.heartbeats),i=w6(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}}function UR(){return new Date().toISOString().substring(0,10)}function Sz(r,e=Bz){const t=[];let n=r.slice();for(const i of r){const a=t.find(o=>o.agent===i.agent);if(a){if(a.dates.push(i.date),DR(t)>e){a.dates.pop();break}}else if(t.push({agent:i.agent,dates:[i.date]}),DR(t)>e){t.pop();break}n=n.slice(1)}return{heartbeatsToSend:t,unsentEntries:n}}class xz{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return yK()?mK().then(()=>!0).catch(()=>!1):!1}async read(){return await this._canUseIndexedDBPromise?await Cz(this.app)||{heartbeats:[]}:{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const i=await this.read();return PR(this.app,{lastSentHeartbeatDate:(t=e.lastSentHeartbeatDate)!==null&&t!==void 0?t:i.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var t;if(await this._canUseIndexedDBPromise){const i=await this.read();return PR(this.app,{lastSentHeartbeatDate:(t=e.lastSentHeartbeatDate)!==null&&t!==void 0?t:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...e.heartbeats]})}else return}}function DR(r){return w6(JSON.stringify({version:2,heartbeats:r})).length}/** * @license * Copyright 2019 Google LLC * @@ -298,7 +298,7 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function Iz(r){f_(new og("platform-logger",e=>new $K(e),"PRIVATE")),f_(new og("heartbeat",e=>new Sz(e),"PRIVATE")),op(UT,MR,r),op(UT,MR,"esm2017"),op("fire-js","")}Iz("");var Fz="firebase",Lz="9.17.1";/** + */function Iz(r){f_(new og("platform-logger",e=>new $K(e),"PRIVATE")),f_(new og("heartbeat",e=>new bz(e),"PRIVATE")),op(UT,NR,r),op(UT,NR,"esm2017"),op("fire-js","")}Iz("");var Fz="firebase",Lz="9.17.1";/** * @license * Copyright 2020 Google LLC * @@ -313,7 +313,7 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */op(Fz,Lz,"app");const Oz={apiKey:"AIzaSyDYf5k6SzoddEey4tUkUCiA-MPBA-653ww",authDomain:"irishrailtracker.firebaseapp.com",projectId:"irishrailtracker",storageBucket:"irishrailtracker.appspot.com",messagingSenderId:"753565032771",appId:"1:753565032771:web:092121cc9d3e254084cff6"},DR=T6(Oz);/** + */op(Fz,Lz,"app");const Oz={apiKey:"AIzaSyBsP9SNH1FuRBpbhcvo9flXbAQWydpctd4",authDomain:"irishrailtracker.firebaseapp.com",projectId:"irishrailtracker",storageBucket:"irishrailtracker.appspot.com",messagingSenderId:"753565032771",appId:"1:753565032771:web:092121cc9d3e254084cff6"},QR=b6(Oz);/** * @license * Copyright 2017 Google LLC * @@ -328,7 +328,7 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Rz="type.googleapis.com/google.protobuf.Int64Value",Mz="type.googleapis.com/google.protobuf.UInt64Value";function b6(r,e){const t={};for(const n in r)r.hasOwnProperty(n)&&(t[n]=e(r[n]));return t}function HT(r){if(r==null)return null;if(r instanceof Number&&(r=r.valueOf()),typeof r=="number"&&isFinite(r)||r===!0||r===!1||Object.prototype.toString.call(r)==="[object String]")return r;if(r instanceof Date)return r.toISOString();if(Array.isArray(r))return r.map(e=>HT(e));if(typeof r=="function"||typeof r=="object")return b6(r,e=>HT(e));throw new Error("Data cannot be encoded in JSON: "+r)}function p_(r){if(r==null)return r;if(r["@type"])switch(r["@type"]){case Rz:case Mz:{const e=Number(r.value);if(isNaN(e))throw new Error("Data cannot be decoded from JSON: "+r);return e}default:throw new Error("Data cannot be decoded from JSON: "+r)}return Array.isArray(r)?r.map(e=>p_(e)):typeof r=="function"||typeof r=="object"?b6(r,e=>p_(e)):r}/** + */const Rz="type.googleapis.com/google.protobuf.Int64Value",Mz="type.googleapis.com/google.protobuf.UInt64Value";function I6(r,e){const t={};for(const n in r)r.hasOwnProperty(n)&&(t[n]=e(r[n]));return t}function HT(r){if(r==null)return null;if(r instanceof Number&&(r=r.valueOf()),typeof r=="number"&&isFinite(r)||r===!0||r===!1||Object.prototype.toString.call(r)==="[object String]")return r;if(r instanceof Date)return r.toISOString();if(Array.isArray(r))return r.map(e=>HT(e));if(typeof r=="function"||typeof r=="object")return I6(r,e=>HT(e));throw new Error("Data cannot be encoded in JSON: "+r)}function p_(r){if(r==null)return r;if(r["@type"])switch(r["@type"]){case Rz:case Mz:{const e=Number(r.value);if(isNaN(e))throw new Error("Data cannot be decoded from JSON: "+r);return e}default:throw new Error("Data cannot be decoded from JSON: "+r)}return Array.isArray(r)?r.map(e=>p_(e)):typeof r=="function"||typeof r=="object"?I6(r,e=>p_(e)):r}/** * @license * Copyright 2020 Google LLC * @@ -343,7 +343,7 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const bI="functions";/** + */const xI="functions";/** * @license * Copyright 2017 Google LLC * @@ -358,7 +358,7 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const QR={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class sp extends Gp{constructor(e,t,n){super(`${bI}/${e}`,t||""),this.details=n}}function Nz(r){if(r>=200&&r<300)return"ok";switch(r){case 0:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 500:return"internal";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}function Pz(r,e){let t=Nz(r),n=t,i;try{const a=e&&e.error;if(a){const o=a.status;if(typeof o=="string"){if(!QR[o])return new sp("internal","internal");t=QR[o],n=o}const s=a.message;typeof s=="string"&&(n=s),i=a.details,i!==void 0&&(i=p_(i))}}catch{}return t==="ok"?null:new sp(t,n,i)}/** + */const HR={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class sp extends Gp{constructor(e,t,n){super(`${xI}/${e}`,t||""),this.details=n}}function Nz(r){if(r>=200&&r<300)return"ok";switch(r){case 0:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 500:return"internal";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}function Pz(r,e){let t=Nz(r),n=t,i;try{const a=e&&e.error;if(a){const o=a.status;if(typeof o=="string"){if(!HR[o])return new sp("internal","internal");t=HR[o],n=o}const s=a.message;typeof s=="string"&&(n=s),i=a.details,i!==void 0&&(i=p_(i))}}catch{}return t==="ok"?null:new sp(t,n,i)}/** * @license * Copyright 2017 Google LLC * @@ -388,7 +388,7 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const GT="us-central1";function Dz(r){let e=null;return{promise:new Promise((t,n)=>{e=setTimeout(()=>{n(new sp("deadline-exceeded","deadline-exceeded"))},r)}),cancel:()=>{e&&clearTimeout(e)}}}class Qz{constructor(e,t,n,i,a=GT,o){this.app=e,this.fetchImpl=o,this.emulatorOrigin=null,this.contextProvider=new Uz(t,n,i),this.cancelAllRequests=new Promise(s=>{this.deleteService=()=>Promise.resolve(s())});try{const s=new URL(a);this.customDomain=s.origin,this.region=GT}catch{this.customDomain=null,this.region=a}}_delete(){return this.deleteService()}_url(e){const t=this.app.options.projectId;return this.emulatorOrigin!==null?`${this.emulatorOrigin}/${t}/${this.region}/${e}`:this.customDomain!==null?`${this.customDomain}/${e}`:`https://${this.region}-${t}.cloudfunctions.net/${e}`}}function Hz(r,e,t){r.emulatorOrigin=`http://${e}:${t}`}function Gz(r,e,t){return n=>$z(r,e,n,t||{})}async function kz(r,e,t,n){t["Content-Type"]="application/json";let i;try{i=await n(r,{method:"POST",body:JSON.stringify(e),headers:t})}catch{return{status:0,json:null}}let a=null;try{a=await i.json()}catch{}return{status:i.status,json:a}}function $z(r,e,t,n){const i=r._url(e);return Vz(r,i,t,n)}async function Vz(r,e,t,n){t=HT(t);const i={data:t},a={},o=await r.contextProvider.getContext();o.authToken&&(a.Authorization="Bearer "+o.authToken),o.messagingToken&&(a["Firebase-Instance-ID-Token"]=o.messagingToken),o.appCheckToken!==null&&(a["X-Firebase-AppCheck"]=o.appCheckToken);const s=n.timeout||7e4,A=Dz(s),l=await Promise.race([kz(e,i,a,r.fetchImpl),A.promise,r.cancelAllRequests]);if(A.cancel(),!l)throw new sp("cancelled","Firebase Functions instance was deleted.");const u=Pz(l.status,l.json);if(u)throw u;if(!l.json)throw new sp("internal","Response is not valid JSON object.");let c=l.json.data;if(typeof c>"u"&&(c=l.json.result),typeof c>"u")throw new sp("internal","Response is missing data field.");return{data:p_(c)}}const HR="@firebase/functions",GR="0.9.3";/** + */const GT="us-central1";function Dz(r){let e=null;return{promise:new Promise((t,n)=>{e=setTimeout(()=>{n(new sp("deadline-exceeded","deadline-exceeded"))},r)}),cancel:()=>{e&&clearTimeout(e)}}}class Qz{constructor(e,t,n,i,a=GT,o){this.app=e,this.fetchImpl=o,this.emulatorOrigin=null,this.contextProvider=new Uz(t,n,i),this.cancelAllRequests=new Promise(s=>{this.deleteService=()=>Promise.resolve(s())});try{const s=new URL(a);this.customDomain=s.origin,this.region=GT}catch{this.customDomain=null,this.region=a}}_delete(){return this.deleteService()}_url(e){const t=this.app.options.projectId;return this.emulatorOrigin!==null?`${this.emulatorOrigin}/${t}/${this.region}/${e}`:this.customDomain!==null?`${this.customDomain}/${e}`:`https://${this.region}-${t}.cloudfunctions.net/${e}`}}function Hz(r,e,t){r.emulatorOrigin=`http://${e}:${t}`}function Gz(r,e,t){return n=>$z(r,e,n,t||{})}async function kz(r,e,t,n){t["Content-Type"]="application/json";let i;try{i=await n(r,{method:"POST",body:JSON.stringify(e),headers:t})}catch{return{status:0,json:null}}let a=null;try{a=await i.json()}catch{}return{status:i.status,json:a}}function $z(r,e,t,n){const i=r._url(e);return Vz(r,i,t,n)}async function Vz(r,e,t,n){t=HT(t);const i={data:t},a={},o=await r.contextProvider.getContext();o.authToken&&(a.Authorization="Bearer "+o.authToken),o.messagingToken&&(a["Firebase-Instance-ID-Token"]=o.messagingToken),o.appCheckToken!==null&&(a["X-Firebase-AppCheck"]=o.appCheckToken);const s=n.timeout||7e4,A=Dz(s),l=await Promise.race([kz(e,i,a,r.fetchImpl),A.promise,r.cancelAllRequests]);if(A.cancel(),!l)throw new sp("cancelled","Firebase Functions instance was deleted.");const u=Pz(l.status,l.json);if(u)throw u;if(!l.json)throw new sp("internal","Response is not valid JSON object.");let c=l.json.data;if(typeof c>"u"&&(c=l.json.result),typeof c>"u")throw new sp("internal","Response is missing data field.");return{data:p_(c)}}const GR="@firebase/functions",kR="0.9.3";/** * @license * Copyright 2019 Google LLC * @@ -403,7 +403,7 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const jz="auth-internal",Kz="app-check-internal",zz="messaging-internal";function Yz(r,e){const t=(n,{instanceIdentifier:i})=>{const a=n.getProvider("app").getImmediate(),o=n.getProvider(jz),s=n.getProvider(zz),A=n.getProvider(Kz);return new Qz(a,o,s,A,i,r)};f_(new og(bI,t,"PUBLIC").setMultipleInstances(!0)),op(HR,GR,e),op(HR,GR,"esm2017")}/** + */const jz="auth-internal",Kz="app-check-internal",zz="messaging-internal";function Yz(r,e){const t=(n,{instanceIdentifier:i})=>{const a=n.getProvider("app").getImmediate(),o=n.getProvider(jz),s=n.getProvider(zz),A=n.getProvider(Kz);return new Qz(a,o,s,A,i,r)};f_(new og(xI,t,"PUBLIC").setMultipleInstances(!0)),op(GR,kR,e),op(GR,kR,"esm2017")}/** * @license * Copyright 2020 Google LLC * @@ -418,17 +418,17 @@ var F9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function kR(r=_z(),e=GT){const n=gz(SI(r),bI).getImmediate({identifier:e}),i=dK("functions");return i&&kT(n,...i),n}function kT(r,e,t){Hz(SI(r),e,t)}function $R(r,e,t){return Gz(SI(r),e,t)}Yz(fetch.bind(self));const I6="/assets/train-solid-e7249eb7.svg",Xz=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t},Wz={name:"MapsOverlay",data(){const r=Gn(IR([-7.5029786,53.4494762])),e=Gn("EPSG:3857"),t=Gn(7),n=Gn(0),i=Gn(10),a=Gn(1),o=Gn("black"),s=Gn("red");return{center:r,projection:e,zoom:t,rotation:n,radius:i,strokeWidth:a,strokeColor:o,fillColor:s,coordinates:[],dbLiveTrainData:[],allDataMap:{},selectedDataMap:{},display:!1}},created(){console.log("jere"),this.getLiveTrainData()},methods:{getLiveTrainData(){const r=kR(DR);window.location.hostname==="127.0.0.1"&&kT(r,"localhost",5001);const e=$R(r,"getLiveTrainData");let t=this.$loading.show({loader:"dots",container:this.$refs.container,canCancel:!1});e().then(n=>{try{this.dbLiveTrainData=n.data;for(var i=0;i{console.log("Test")})}}},F6=r=>(aD("data-v-e1bae6bd"),r=r(),oD(),r),qz={key:0,id:"sidebarDiv"},Zz={id:"sidebarHeader"},Jz=F6(()=>Ki("img",{id:"headerImage",src:I6,alt:"Train Icon"},null,-1)),tY={id:"sidebarDiv"},eY=["onClick"],rY=F6(()=>Ki("img",{src:I6,class:"trainMapIcon",alt:"Train Icon"},null,-1)),nY=[rY];function iY(r,e,t,n,i,a){const o=Lf("ol-view"),s=Lf("ol-source-osm"),A=Lf("ol-tile-layer"),l=Lf("ol-overlay"),u=Lf("ol-map");return cn(),Vn(Ri,null,[Ki("button",{onClick:e[0]||(e[0]=(...c)=>a.getLiveTrainData&&a.getLiveTrainData(...c))},"Fetch Data"),Ki("button",{onClick:e[1]||(e[1]=(...c)=>a.postLiveTrainData&&a.postLiveTrainData(...c))},"Populate Database"),Wr($1,{id:"sidebar",name:"slideLeft"},{default:Nc(()=>[this.display?(cn(),Vn("div",qz,[Ki("div",Zz,[Jz,Ki("div",{onClick:e[2]||(e[2]=c=>this.display=!1),id:"xButton"},"X")]),Ki("div",tY,[Ki("h2",null,"Train Code: "+tu(i.selectedDataMap.TrainCode),1),Ki("p",null,"Date: "+tu(i.selectedDataMap.TrainDate),1),Ki("p",null,"Status: "+tu(i.selectedDataMap.TrainStatus),1),Ki("p",null,"Longitude: "+tu(i.selectedDataMap.TrainLongitude),1),Ki("p",null,"Latitude: "+tu(i.selectedDataMap.TrainLatitude),1),Ki("p",null,"Direction: "+tu(i.selectedDataMap.Direction),1),Ki("p",null,"Public Message: "+tu(i.selectedDataMap.PublicMessage),1)])])):dr("",!0)]),_:1}),Wr(u,{loadTilesWhileAnimating:!0,loadTilesWhileInteracting:!0,style:{height:"1000px"}},{default:Nc(()=>[Wr(o,{ref:"view",center:i.center,rotation:i.rotation,zoom:i.zoom,projection:i.projection},null,8,["center","rotation","zoom","projection"]),Wr(A,null,{default:Nc(()=>[Wr(s)]),_:1}),(cn(!0),Vn(Ri,null,CD(i.coordinates,(c,h)=>(cn(),$g(l,{position:c,positioning:i.center-i.center,offset:[-16,-16]},{default:Nc(()=>[Ki("div",{class:"overlay-content",onClick:f=>a.getSelectedTrain(h)},nY,8,eY)]),_:2},1032,["position","positioning"]))),256))]),_:1})],64)}const aY=Xz(Wz,[["render",iY],["__scopeId","data-v-e1bae6bd"]]),oY={__name:"App",setup(r){return(e,t)=>(cn(),$g(aY))}};var sY=Object.defineProperty,AY=Object.defineProperties,lY=Object.getOwnPropertyDescriptors,VR=Object.getOwnPropertySymbols,uY=Object.prototype.hasOwnProperty,cY=Object.prototype.propertyIsEnumerable,jR=(r,e,t)=>e in r?sY(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Un=(r,e)=>{for(var t in e||(e={}))uY.call(e,t)&&jR(r,t,e[t]);if(VR)for(var t of VR(e))cY.call(e,t)&&jR(r,t,e[t]);return r},Os=(r,e)=>AY(r,lY(e)),hY=function(){function r(){this.disposed=!1}return r.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},r.prototype.disposeInternal=function(){},r}(),V1=hY;function fY(r,e,t){for(var n,i,a=t||Nu,o=0,s=r.length,A=!1;o>1),i=+a(r[n],e),i<0?o=n+1:(s=n,A=!i);return A?o:~o}function Nu(r,e){return r>e?1:r=0}function j1(r,e,t){var n=r.length;if(r[0]<=e)return 0;if(e<=r[n-1])return n-1;var i=void 0;if(t>0){for(i=1;i0?i-1:i:r[i-1]-e0||t&&o===0)})}function iA(){return!0}function Ch(){return!1}function lh(){}function vY(r){var e=!1,t,n,i;return function(){var a=Array.prototype.slice.call(arguments);return(!e||this!==i||!yl(a,n))&&(e=!0,i=this,n=a,t=r.apply(this,arguments)),t}}function Be(){return function(){throw new Error("Unimplemented abstract method.")}()}var gY=0;function pe(r){return r.ol_uid||(r.ol_uid=String(++gY))}var L6="6.14.1",Pu=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"",yY=Pu.indexOf("firefox")!==-1,mY=Pu.indexOf("safari")!==-1&&Pu.indexOf("chrom")==-1,_Y=mY&&!!(Pu.indexOf("version/15.4")>=0||Pu.match(/cpu (os|iphone os) 15_4 like mac os x/)),wY=Pu.indexOf("webkit")!==-1&&Pu.indexOf("edge")==-1,O6=Pu.indexOf("macintosh")!==-1,uh=typeof devicePixelRatio<"u"?devicePixelRatio:1,K1=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,EY=typeof Image<"u"&&Image.prototype.decode,R6=function(){var r=!1;try{var e=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch{}return r}(),CY=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),BY=function(r){CY(e,r);function e(t){var n=this,i="v"+L6.split("-")[0],a="Assertion failed. See https://openlayers.org/en/"+i+"/doc/errors/#"+t+" for details.";return n=r.call(this,a)||this,n.code=t,n.name="AssertionError",n.message=a,n}return e}(Error),M6=BY;function _e(r,e){if(!r)throw new M6(e)}var II=new Array(6);function oi(){return[1,0,0,1,0,0]}function Nv(r){return jg(r,1,0,0,1,0,0)}function kp(r,e){var t=r[0],n=r[1],i=r[2],a=r[3],o=r[4],s=r[5],A=e[0],l=e[1],u=e[2],c=e[3],h=e[4],f=e[5];return r[0]=t*A+i*l,r[1]=n*A+a*l,r[2]=t*u+i*c,r[3]=n*u+a*c,r[4]=t*h+i*f+o,r[5]=n*h+a*f+s,r}function jg(r,e,t,n,i,a,o){return r[0]=e,r[1]=t,r[2]=n,r[3]=i,r[4]=a,r[5]=o,r}function TY(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function un(r,e){var t=e[0],n=e[1];return e[0]=r[0]*t+r[2]*n+r[4],e[1]=r[1]*t+r[3]*n+r[5],e}function SY(r,e){var t=Math.cos(e),n=Math.sin(e);return kp(r,jg(II,t,n,-n,t,0,0))}function Pv(r,e,t){return kp(r,jg(II,e,0,0,t,0,0))}function xY(r,e,t){return jg(r,e,0,0,t,0,0)}function bY(r,e,t){return kp(r,jg(II,1,0,0,1,e,t))}function $a(r,e,t,n,i,a,o,s){var A=Math.sin(a),l=Math.cos(a);return r[0]=n*l,r[1]=i*A,r[2]=-n*A,r[3]=i*l,r[4]=o*n*l-s*n*A+e,r[5]=o*i*A+s*i*l+t,r}function Kg(r,e){var t=IY(e);_e(t!==0,32);var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],A=e[5];return r[0]=o/t,r[1]=-i/t,r[2]=-a/t,r[3]=n/t,r[4]=(a*A-o*s)/t,r[5]=-(n*A-i*s)/t,r}function IY(r){return r[0]*r[3]-r[1]*r[2]}var KR;function FI(r){var e="matrix("+r.join(", ")+")";if(K1)return e;var t=KR||(KR=document.createElement("div"));return t.style.transform=e,t.style.transform}var cv={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},zi={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function Yi(r){for(var e=_i(),t=0,n=r.length;ti&&(A=A|zi.RIGHT),sa&&(A=A|zi.ABOVE),A===zi.UNKNOWN&&(A=zi.INTERSECTING),A}function _i(){return[1/0,1/0,-1/0,-1/0]}function uo(r,e,t,n,i){return i?(i[0]=r,i[1]=e,i[2]=t,i[3]=n,i):[r,e,t,n]}function Wu(r){return uo(1/0,1/0,-1/0,-1/0,r)}function zc(r,e){var t=r[0],n=r[1];return uo(t,n,t,n,e)}function LY(r,e){var t=Wu(e);return OI(t,r)}function Y1(r,e,t,n,i){var a=Wu(i);return RI(a,r,e,t,n)}function OY(r,e){var t=Wu(e);return N6(t,r)}function AA(r,e){return r[0]==e[0]&&r[2]==e[2]&&r[1]==e[1]&&r[3]==e[3]}function RY(r,e,t){return Math.abs(r[0]-e[0])r[2]&&(r[2]=e[2]),e[1]r[3]&&(r[3]=e[3]),r}function Yc(r,e){e[0]r[2]&&(r[2]=e[0]),e[1]r[3]&&(r[3]=e[1])}function OI(r,e){for(var t=0,n=e.length;te[0]?n[0]=r[0]:n[0]=e[0],r[1]>e[1]?n[1]=r[1]:n[1]=e[1],r[2]=e[0]&&r[1]<=e[3]&&r[3]>=e[1]}function Vp(r){return r[2]=o&&v<=A),!n&&a&zi.RIGHT&&!(i&zi.RIGHT)&&(m=f-(h-A)*p,n=m>=s&&m<=l),!n&&a&zi.BELOW&&!(i&zi.BELOW)&&(v=h-(f-s)/p,n=v>=o&&v<=A),!n&&a&zi.LEFT&&!(i&zi.LEFT)&&(m=f-(h-o)*p,n=m>=s&&m<=l)}return n}function MI(r,e,t,n){var i=[];if(n>1)for(var a=r[2]-r[0],o=r[3]-r[1],s=0;s=t[2])){var i=Fr(t),a=Math.floor((n[0]-t[0])/i),o=a*i;r[0]-=o,r[2]-=o}return r}var DY=Object.freeze(Object.defineProperty({__proto__:null,boundingExtent:Yi,buffer:Va,clone:LI,closestSquaredDistanceXY:Xu,containsCoordinate:xs,containsExtent:Fo,containsXY:z1,coordinateRelationship:d_,createEmpty:_i,createOrUpdate:uo,createOrUpdateEmpty:Wu,createOrUpdateFromCoordinate:zc,createOrUpdateFromCoordinates:LY,createOrUpdateFromFlatCoordinates:Y1,createOrUpdateFromRings:OY,equals:AA,approximatelyEquals:RY,extend:Uu,extendCoordinate:Yc,extendCoordinates:OI,extendFlatCoordinates:RI,extendRings:N6,extendXY:P6,forEachCorner:X1,getArea:Ag,getBottomLeft:zg,getBottomRight:$p,getCenter:Sa,getCorner:U6,getEnlargedArea:MY,getForViewAndSize:Xc,getHeight:Ai,getIntersectionArea:NY,getIntersection:Jo,getMargin:PY,getSize:UY,getTopLeft:Rs,getTopRight:Yg,getWidth:Fr,intersects:Mn,isEmpty:Vp,returnOrUpdate:D6,scaleFromCenter:Q6,intersectsSegment:H6,applyTransform:MI,wrapX:G6},Symbol.toStringTag,{value:"Module"}));function xn(r,e,t){return Math.min(Math.max(r,e),t)}var QY=function(){var r;return"cosh"in Math?r=Math.cosh:r=function(e){var t=Math.exp(e);return(t+1/t)/2},r}(),k6=function(){var r;return"log2"in Math?r=Math.log2:r=function(e){return Math.log(e)*Math.LOG2E},r}();function HY(r,e,t,n,i,a){var o=i-t,s=a-n;if(o!==0||s!==0){var A=((r-t)*o+(e-n)*s)/(o*o+s*s);A>1?(t=i,n=a):A>0&&(t+=o*A,n+=s*A)}return Wc(r,e,t,n)}function Wc(r,e,t,n){var i=t-r,a=n-e;return i*i+a*a}function GY(r){for(var e=r.length,t=0;ti&&(i=o,n=a)}if(i===0)return null;var s=r[n];r[n]=r[t],r[t]=s;for(var A=t+1;A=0;h--){c[h]=r[h][e]/r[h][h];for(var f=h-1;f>=0;f--)r[f][e]-=r[f][h]*c[h]}return c}function zR(r){return r*180/Math.PI}function Cu(r){return r*Math.PI/180}function Bu(r,e){var t=r%e;return t*e<0?t+e:t}function YA(r,e,t){return r+t*(e-r)}function NI(r,e){var t=Math.pow(10,e);return Math.round(r*t)/t}function YR(r,e){return Math.round(NI(r,e))}function $f(r,e){return Math.floor(NI(r,e))}function lu(r,e){return Math.ceil(NI(r,e))}var $6=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,V6=/^([a-z]*)$|^hsla?\(.*\)$/i;function tl(r){return typeof r=="string"?r:z6(r)}function j6(r){var e=document.createElement("div");if(e.style.color=r,e.style.color!==""){document.body.appendChild(e);var t=getComputedStyle(e).color;return document.body.removeChild(e),t}else return""}var K6=function(){var r=1024,e={},t=0;return function(n){var i;if(e.hasOwnProperty(n))i=e[n];else{if(t>=r){var a=0;for(var o in e)a++&3||(delete e[o],--t)}i=kY(n),e[n]=i,++t}return i}}();function Du(r){return Array.isArray(r)?r:K6(r)}function kY(r){var e,t,n,i,a;if(V6.exec(r)&&(r=j6(r)),$6.exec(r)){var o=r.length-1,s=void 0;o<=4?s=1:s=2;var A=o===4||o===8;e=parseInt(r.substr(1+0*s,s),16),t=parseInt(r.substr(1+1*s,s),16),n=parseInt(r.substr(1+2*s,s),16),A?i=parseInt(r.substr(1+3*s,s),16):i=255,s==1&&(e=(e<<4)+e,t=(t<<4)+t,n=(n<<4)+n,A&&(i=(i<<4)+i)),a=[e,t,n,i/255]}else r.indexOf("rgba(")==0?(a=r.slice(5,-1).split(",").map(Number),XR(a)):r.indexOf("rgb(")==0?(a=r.slice(4,-1).split(",").map(Number),a.push(1),XR(a)):_e(!1,14);return a}function XR(r){return r[0]=xn(r[0]+.5|0,0,255),r[1]=xn(r[1]+.5|0,0,255),r[2]=xn(r[2]+.5|0,0,255),r[3]=xn(r[3],0,1),r}function z6(r){var e=r[0];e!=(e|0)&&(e=e+.5|0);var t=r[1];t!=(t|0)&&(t=t+.5|0);var n=r[2];n!=(n|0)&&(n=n+.5|0);var i=r[3]===void 0?1:Math.round(r[3]*100)/100;return"rgba("+e+","+t+","+n+","+i+")"}function $Y(r){return V6.test(r)&&(r=j6(r)),$6.test(r)||r.indexOf("rgba(")===0||r.indexOf("rgb(")===0}var VY=function(){function r(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return r.prototype.clear=function(){this.cache_={},this.cacheSize_=0},r.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},r.prototype.expire=function(){if(this.canExpireCache()){var e=0;for(var t in this.cache_){var n=this.cache_[t];!(e++&3)&&!n.hasListener()&&(delete this.cache_[t],--this.cacheSize_)}}},r.prototype.get=function(e,t,n){var i=WR(e,t,n);return i in this.cache_?this.cache_[i]:null},r.prototype.set=function(e,t,n,i){var a=WR(e,t,n);this.cache_[a]=i,++this.cacheSize_},r.prototype.setSize=function(e){this.maxCacheSize_=e,this.expire()},r}();function WR(r,e,t){var n=t?tl(t):"null";return e+":"+r+":"+n}var v_=new VY,jY=function(){function r(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}return r.prototype.preventDefault=function(){this.defaultPrevented=!0},r.prototype.stopPropagation=function(){this.propagationStopped=!0},r}();function KY(r){r.stopPropagation()}var fo=jY,ch={PROPERTYCHANGE:"propertychange"},de=typeof Object.assign=="function"?Object.assign:function(r,e){if(r==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(r),n=1,i=arguments.length;n0:!1},e.prototype.removeEventListener=function(t,n){var i=this.listeners_&&this.listeners_[t];if(i){var a=i.indexOf(n);a!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[a]=lh,++this.pendingRemovals_[t]):(i.splice(a,1),i.length===0&&delete this.listeners_[t]))}},e}(V1),Th=YY,ye={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};function Pe(r,e,t,n,i){if(n&&n!==r&&(t=t.bind(n)),i){var a=t;t=function(){r.removeEventListener(e,t),a.apply(this,arguments)}}var o={target:r,type:e,listener:t};return r.addEventListener(e,t),o}function lg(r,e,t,n){return Pe(r,e,t,n,!0)}function Rr(r){r&&r.target&&(r.target.removeEventListener(r.type,r.listener),Bh(r))}var XY=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Xg=function(r){XY(e,r);function e(){var t=r.call(this)||this;return t.on=t.onInternal,t.once=t.onceInternal,t.un=t.unInternal,t.revision_=0,t}return e.prototype.changed=function(){++this.revision_,this.dispatchEvent(ye.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.onInternal=function(t,n){if(Array.isArray(t)){for(var i=t.length,a=new Array(i),o=0;o=r.maxResolution)return!1;var n=e.zoom;return n>r.minZoom&&n<=r.maxZoom}var Sh=tX;function Gd(r,e,t){var n=t!==void 0?r.toFixed(t):""+r,i=n.indexOf(".");return i=i===-1?n.length:i,i>e?n:new Array(1+e-i).join("0")+n}function X6(r,e){for(var t=(""+r).split("."),n=(""+e).split("."),i=0;io)return 1;if(o>a)return-1}return 0}function W6(r,e){return r[0]+=+e[0],r[1]+=+e[1],r}function eX(r,e){var t=e.getRadius(),n=e.getCenter(),i=n[0],a=n[1],o=r[0],s=r[1],A=o-i,l=s-a;A===0&&l===0&&(A=1);var u=Math.sqrt(A*A+l*l),c=i+t*A/u,h=a+t*l/u;return[c,h]}function DI(r,e){var t=r[0],n=r[1],i=e[0],a=e[1],o=i[0],s=i[1],A=a[0],l=a[1],u=A-o,c=l-s,h=u===0&&c===0?0:(u*(t-o)+c*(n-s))/(u*u+c*c||0),f,p;return h<=0?(f=o,p=s):h>=1?(f=A,p=l):(f=o+h*u,p=s+h*c),[f,p]}function _s(r,e){for(var t=!0,n=r.length-1;n>=0;--n)if(r[n]!=e[n]){t=!1;break}return t}function QI(r,e){var t=Math.cos(e),n=Math.sin(e),i=r[0]*t-r[1]*n,a=r[1]*t+r[0]*n;return r[0]=i,r[1]=a,r}function q6(r,e){return r[0]*=e,r[1]*=e,r}function el(r,e){var t=r[0]-e[0],n=r[1]-e[1];return t*t+n*n}function ZR(r,e){return Math.sqrt(el(r,e))}function rX(r,e){return el(r,DI(r,e))}function HI(r,e){if(e.canWrapX()){var t=Fr(e.getExtent()),n=Z6(r,e,t);n&&(r[0]-=n*t)}return r}function Z6(r,e,t){var n=e.getExtent(),i=0;if(e.canWrapX()&&(r[0]n[2])){var a=t||Fr(n);i=Math.floor((r[0]-n[0])/a)}return i}var nX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),iX=function(r){nX(e,r);function e(t){var n=r.call(this)||this;return n.map_=t,n}return e.prototype.dispatchRenderEvent=function(t,n){Be()},e.prototype.calculateMatrices2D=function(t){var n=t.viewState,i=t.coordinateToPixelTransform,a=t.pixelToCoordinateTransform;$a(i,t.size[0]/2,t.size[1]/2,1/n.resolution,-1/n.resolution,-n.rotation,-n.center[0],-n.center[1]),Kg(a,i)},e.prototype.forEachFeatureAtCoordinate=function(t,n,i,a,o,s,A,l){var u,c=n.viewState;function h(X,z,tt,J){return o.call(s,z,X?tt:null,J)}var f=c.projection,p=HI(t.slice(),f),v=[[0,0]];if(f.canWrapX()&&a){var m=f.getExtent(),g=Fr(m);v.push([-g,0],[g,0])}for(var _=n.layerStatesArray,E=_.length,B=[],L=[],O=0;O=0;--b){var T=_[b],I=T.layer;if(I.hasRenderer()&&g_(T,c)&&A.call(l,I)){var M=I.getRenderer(),x=I.getSource();if(M&&x){var S=x.getWrapX()?p:t,N=h.bind(null,T.managed);L[0]=S[0]+v[O][0],L[1]=S[1]+v[O][1],u=M.forEachFeatureAtCoordinate(L,n,i,N,B)}if(u)return u}}if(B.length!==0){var P=1/B.length;return B.forEach(function(X,z){return X.distanceSq+=z*P}),B.sort(function(X,z){return X.distanceSq-z.distanceSq}),B.some(function(X){return u=X.callback(X.feature,X.layer,X.geometry)}),u}},e.prototype.forEachLayerAtPixel=function(t,n,i,a,o){return Be()},e.prototype.hasFeatureAtCoordinate=function(t,n,i,a,o,s){var A=this.forEachFeatureAtCoordinate(t,n,i,a,iA,this,o,s);return A!==void 0},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){Be()},e.prototype.scheduleExpireIconCache=function(t){v_.canExpireCache()&&t.postRenderFunctions.push(aX)},e}(V1);function aX(r,e){v_.expire()}var oX=iX,sX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),AX=function(r){sX(e,r);function e(t,n,i,a){var o=r.call(this,t)||this;return o.inversePixelTransform=n,o.frameState=i,o.context=a,o}return e}(fo),Uv=AX,wm="ol-hidden",lX="ol-selectable",lA="ol-unselectable",JR="ol-unsupported",xh="ol-control",y_="ol-collapsed",uX=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))",`?\\s*([-,\\"\\'\\sa-z]+?)\\s*$`].join(""),"i"),tM=["style","variant","weight","size","lineHeight","family"],J6=function(r){var e=r.match(uX);if(!e)return null;for(var t={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},n=0,i=tM.length;n{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t},Wz={name:"MapsOverlay",data(){const r=$n(FR([-7.5029786,53.4494762])),e=$n("EPSG:3857"),t=$n(7),n=$n(0),i=$n(10),a=$n(1),o=$n("black"),s=$n("red");return{center:r,projection:e,zoom:t,rotation:n,radius:i,strokeWidth:a,strokeColor:o,fillColor:s,coordinates:[],dbLiveTrainData:[],allDataMap:{},selectedDataMap:{},display:!1,numTrains:0,numRunningTrains:0,numLateRunningTrains:0,latestTrain:{},earliestTrain:{},percentageEarly:0,percentageLate:0,latestTime:0,earliestTime:0}},created(){window.location.hostname==="127.0.0.1"||window.location.hostname==="localhost"?this.postLiveTrainData():this.getLiveTrainData()},methods:{getLiveTrainData(){const r=$R(QR);let e=window.location.hostname;(e==="127.0.0.1"||e==="localhost")&&kT(r,e,5001);const t=VR(r,"getLiveTrainData");let n=this.$loading.show({loader:"dots",container:this.$refs.container,canCancel:!1});t().then(i=>{try{this.dbLiveTrainData=i.data,console.log(this.dbLiveTrainData),this.numRunningTrains=0,this.numTrains=0,this.numLateRunningTrains=0;for(var a=null,o=0,s=null,A=0,l=0;lo&&(a=this.dbLiveTrainData[l],o=f)}else{s||(s=this.dbLiveTrainData[l]);let h=u.indexOf(" ",c+1),f=parseInt(u.substring(c+1,h));f{this.getLiveTrainData()})}}},II=r=>(oD("data-v-b528d279"),r=r(),sD(),r),qz=II(()=>Mn("h2",null,"Insights:",-1)),Zz={key:0},Jz={key:1},tY={key:0,id:"sidebarDiv"},eY={id:"sidebarHeader"},rY=II(()=>Mn("img",{id:"headerImage",src:F6,alt:"Train Icon"},null,-1)),nY={id:"sidebarDiv"},iY=["onClick"],aY=II(()=>Mn("img",{src:F6,class:"trainMapIcon",alt:"Train Icon"},null,-1)),oY=[aY];function sY(r,e,t,n,i,a){const o=Lf("ol-view"),s=Lf("ol-source-osm"),A=Lf("ol-tile-layer"),l=Lf("ol-overlay"),u=Lf("ol-map");return tn(),Ln(Mi,null,[qz,Mn("p",null,"Total number of trains: "+Ki(this.numTrains),1),Mn("p",null,"Number of actively running trains: "+Ki(this.numRunningTrains),1),Mn("p",null,"Percentage late: "+Ki(this.percentageLate)+"%",1),Mn("p",null,"Percentage early or ontime: "+Ki(this.percentageEarly)+"%",1),this.latestTrain.TrainCode?(tn(),Ln("p",Zz,"Latest train: "+Ki(this.latestTrain.TrainCode[0])+", "+Ki(this.latestTrain.Direction[0])+", "+Ki(this.latestTime)+" mins late",1)):ur("",!0),this.earliestTrain.TrainCode?(tn(),Ln("p",Jz,"Earliest train: "+Ki(this.earliestTrain.TrainCode[0])+", "+Ki(this.earliestTrain.Direction[0])+", "+Ki(this.earliestTime*-1)+" mins early",1)):ur("",!0),Mn("button",{onClick:e[0]||(e[0]=(...c)=>a.getLiveTrainData&&a.getLiveTrainData(...c))},"Fetch Data"),Mn("button",{onClick:e[1]||(e[1]=(...c)=>a.postLiveTrainData&&a.postLiveTrainData(...c))},"Populate Database"),Wr($1,{id:"sidebar",name:"slideLeft"},{default:Nc(()=>[this.display?(tn(),Ln("div",tY,[Mn("div",eY,[rY,Mn("div",{onClick:e[2]||(e[2]=c=>this.display=!1),id:"xButton"},"X")]),Mn("div",nY,[Mn("h2",null,"Train Code: "+Ki(i.selectedDataMap.TrainCode),1),Mn("p",null,"Date: "+Ki(i.selectedDataMap.TrainDate),1),Mn("p",null,"Status: "+Ki(i.selectedDataMap.TrainStatus),1),Mn("p",null,"Longitude: "+Ki(i.selectedDataMap.TrainLongitude),1),Mn("p",null,"Latitude: "+Ki(i.selectedDataMap.TrainLatitude),1),Mn("p",null,"Direction: "+Ki(i.selectedDataMap.Direction),1),Mn("p",null,"Public Message: "+Ki(i.selectedDataMap.PublicMessage),1)])])):ur("",!0)]),_:1}),Wr(u,{loadTilesWhileAnimating:!0,loadTilesWhileInteracting:!0,style:{height:"100vh",width:"100vw"}},{default:Nc(()=>[Wr(o,{ref:"view",center:i.center,rotation:i.rotation,zoom:i.zoom,projection:i.projection},null,8,["center","rotation","zoom","projection"]),Wr(A,null,{default:Nc(()=>[Wr(s)]),_:1}),(tn(!0),Ln(Mi,null,BD(i.coordinates,(c,h)=>(tn(),$g(l,{position:c,positioning:i.center-i.center,offset:[-16,-16]},{default:Nc(()=>[Mn("div",{class:"overlay-content",onClick:f=>a.getSelectedTrain(h)},oY,8,iY)]),_:2},1032,["position","positioning"]))),256))]),_:1})],64)}const AY=Xz(Wz,[["render",sY],["__scopeId","data-v-b528d279"]]),lY={__name:"App",setup(r){return(e,t)=>(tn(),$g(AY))}};var uY=Object.defineProperty,cY=Object.defineProperties,hY=Object.getOwnPropertyDescriptors,jR=Object.getOwnPropertySymbols,fY=Object.prototype.hasOwnProperty,pY=Object.prototype.propertyIsEnumerable,KR=(r,e,t)=>e in r?uY(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Qn=(r,e)=>{for(var t in e||(e={}))fY.call(e,t)&&KR(r,t,e[t]);if(jR)for(var t of jR(e))pY.call(e,t)&&KR(r,t,e[t]);return r},Rs=(r,e)=>cY(r,hY(e)),dY=function(){function r(){this.disposed=!1}return r.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},r.prototype.disposeInternal=function(){},r}(),V1=dY;function vY(r,e,t){for(var n,i,a=t||Nu,o=0,s=r.length,A=!1;o>1),i=+a(r[n],e),i<0?o=n+1:(s=n,A=!i);return A?o:~o}function Nu(r,e){return r>e?1:r=0}function j1(r,e,t){var n=r.length;if(r[0]<=e)return 0;if(e<=r[n-1])return n-1;var i=void 0;if(t>0){for(i=1;i0?i-1:i:r[i-1]-e0||t&&o===0)})}function aA(){return!0}function Ch(){return!1}function lh(){}function mY(r){var e=!1,t,n,i;return function(){var a=Array.prototype.slice.call(arguments);return(!e||this!==i||!ml(a,n))&&(e=!0,i=this,n=a,t=r.apply(this,arguments)),t}}function Be(){return function(){throw new Error("Unimplemented abstract method.")}()}var _Y=0;function pe(r){return r.ol_uid||(r.ol_uid=String(++_Y))}var L6="6.14.1",Pu=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"",wY=Pu.indexOf("firefox")!==-1,EY=Pu.indexOf("safari")!==-1&&Pu.indexOf("chrom")==-1,CY=EY&&!!(Pu.indexOf("version/15.4")>=0||Pu.match(/cpu (os|iphone os) 15_4 like mac os x/)),BY=Pu.indexOf("webkit")!==-1&&Pu.indexOf("edge")==-1,O6=Pu.indexOf("macintosh")!==-1,uh=typeof devicePixelRatio<"u"?devicePixelRatio:1,K1=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,TY=typeof Image<"u"&&Image.prototype.decode,R6=function(){var r=!1;try{var e=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch{}return r}(),bY=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),SY=function(r){bY(e,r);function e(t){var n=this,i="v"+L6.split("-")[0],a="Assertion failed. See https://openlayers.org/en/"+i+"/doc/errors/#"+t+" for details.";return n=r.call(this,a)||this,n.code=t,n.name="AssertionError",n.message=a,n}return e}(Error),M6=SY;function _e(r,e){if(!r)throw new M6(e)}var FI=new Array(6);function si(){return[1,0,0,1,0,0]}function Nv(r){return jg(r,1,0,0,1,0,0)}function kp(r,e){var t=r[0],n=r[1],i=r[2],a=r[3],o=r[4],s=r[5],A=e[0],l=e[1],u=e[2],c=e[3],h=e[4],f=e[5];return r[0]=t*A+i*l,r[1]=n*A+a*l,r[2]=t*u+i*c,r[3]=n*u+a*c,r[4]=t*h+i*f+o,r[5]=n*h+a*f+s,r}function jg(r,e,t,n,i,a,o){return r[0]=e,r[1]=t,r[2]=n,r[3]=i,r[4]=a,r[5]=o,r}function xY(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function cn(r,e){var t=e[0],n=e[1];return e[0]=r[0]*t+r[2]*n+r[4],e[1]=r[1]*t+r[3]*n+r[5],e}function IY(r,e){var t=Math.cos(e),n=Math.sin(e);return kp(r,jg(FI,t,n,-n,t,0,0))}function Pv(r,e,t){return kp(r,jg(FI,e,0,0,t,0,0))}function FY(r,e,t){return jg(r,e,0,0,t,0,0)}function LY(r,e,t){return kp(r,jg(FI,1,0,0,1,e,t))}function Va(r,e,t,n,i,a,o,s){var A=Math.sin(a),l=Math.cos(a);return r[0]=n*l,r[1]=i*A,r[2]=-n*A,r[3]=i*l,r[4]=o*n*l-s*n*A+e,r[5]=o*i*A+s*i*l+t,r}function Kg(r,e){var t=OY(e);_e(t!==0,32);var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],A=e[5];return r[0]=o/t,r[1]=-i/t,r[2]=-a/t,r[3]=n/t,r[4]=(a*A-o*s)/t,r[5]=-(n*A-i*s)/t,r}function OY(r){return r[0]*r[3]-r[1]*r[2]}var zR;function LI(r){var e="matrix("+r.join(", ")+")";if(K1)return e;var t=zR||(zR=document.createElement("div"));return t.style.transform=e,t.style.transform}var cv={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},Yi={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function Xi(r){for(var e=wi(),t=0,n=r.length;ti&&(A=A|Yi.RIGHT),sa&&(A=A|Yi.ABOVE),A===Yi.UNKNOWN&&(A=Yi.INTERSECTING),A}function wi(){return[1/0,1/0,-1/0,-1/0]}function co(r,e,t,n,i){return i?(i[0]=r,i[1]=e,i[2]=t,i[3]=n,i):[r,e,t,n]}function Wu(r){return co(1/0,1/0,-1/0,-1/0,r)}function zc(r,e){var t=r[0],n=r[1];return co(t,n,t,n,e)}function MY(r,e){var t=Wu(e);return RI(t,r)}function Y1(r,e,t,n,i){var a=Wu(i);return MI(a,r,e,t,n)}function NY(r,e){var t=Wu(e);return N6(t,r)}function lA(r,e){return r[0]==e[0]&&r[2]==e[2]&&r[1]==e[1]&&r[3]==e[3]}function PY(r,e,t){return Math.abs(r[0]-e[0])r[2]&&(r[2]=e[2]),e[1]r[3]&&(r[3]=e[3]),r}function Yc(r,e){e[0]r[2]&&(r[2]=e[0]),e[1]r[3]&&(r[3]=e[1])}function RI(r,e){for(var t=0,n=e.length;te[0]?n[0]=r[0]:n[0]=e[0],r[1]>e[1]?n[1]=r[1]:n[1]=e[1],r[2]=e[0]&&r[1]<=e[3]&&r[3]>=e[1]}function Vp(r){return r[2]=o&&v<=A),!n&&a&Yi.RIGHT&&!(i&Yi.RIGHT)&&(m=f-(h-A)*p,n=m>=s&&m<=l),!n&&a&Yi.BELOW&&!(i&Yi.BELOW)&&(v=h-(f-s)/p,n=v>=o&&v<=A),!n&&a&Yi.LEFT&&!(i&Yi.LEFT)&&(m=f-(h-o)*p,n=m>=s&&m<=l)}return n}function NI(r,e,t,n){var i=[];if(n>1)for(var a=r[2]-r[0],o=r[3]-r[1],s=0;s=t[2])){var i=Fr(t),a=Math.floor((n[0]-t[0])/i),o=a*i;r[0]-=o,r[2]-=o}return r}var GY=Object.freeze(Object.defineProperty({__proto__:null,boundingExtent:Xi,buffer:ja,clone:OI,closestSquaredDistanceXY:Xu,containsCoordinate:xs,containsExtent:Lo,containsXY:z1,coordinateRelationship:d_,createEmpty:wi,createOrUpdate:co,createOrUpdateEmpty:Wu,createOrUpdateFromCoordinate:zc,createOrUpdateFromCoordinates:MY,createOrUpdateFromFlatCoordinates:Y1,createOrUpdateFromRings:NY,equals:lA,approximatelyEquals:PY,extend:Uu,extendCoordinate:Yc,extendCoordinates:RI,extendFlatCoordinates:MI,extendRings:N6,extendXY:P6,forEachCorner:X1,getArea:Ag,getBottomLeft:zg,getBottomRight:$p,getCenter:Sa,getCorner:U6,getEnlargedArea:UY,getForViewAndSize:Xc,getHeight:li,getIntersectionArea:DY,getIntersection:ts,getMargin:QY,getSize:HY,getTopLeft:Ms,getTopRight:Yg,getWidth:Fr,intersects:Pn,isEmpty:Vp,returnOrUpdate:D6,scaleFromCenter:Q6,intersectsSegment:H6,applyTransform:NI,wrapX:G6},Symbol.toStringTag,{value:"Module"}));function Sn(r,e,t){return Math.min(Math.max(r,e),t)}var kY=function(){var r;return"cosh"in Math?r=Math.cosh:r=function(e){var t=Math.exp(e);return(t+1/t)/2},r}(),k6=function(){var r;return"log2"in Math?r=Math.log2:r=function(e){return Math.log(e)*Math.LOG2E},r}();function $Y(r,e,t,n,i,a){var o=i-t,s=a-n;if(o!==0||s!==0){var A=((r-t)*o+(e-n)*s)/(o*o+s*s);A>1?(t=i,n=a):A>0&&(t+=o*A,n+=s*A)}return Wc(r,e,t,n)}function Wc(r,e,t,n){var i=t-r,a=n-e;return i*i+a*a}function VY(r){for(var e=r.length,t=0;ti&&(i=o,n=a)}if(i===0)return null;var s=r[n];r[n]=r[t],r[t]=s;for(var A=t+1;A=0;h--){c[h]=r[h][e]/r[h][h];for(var f=h-1;f>=0;f--)r[f][e]-=r[f][h]*c[h]}return c}function YR(r){return r*180/Math.PI}function Cu(r){return r*Math.PI/180}function Bu(r,e){var t=r%e;return t*e<0?t+e:t}function XA(r,e,t){return r+t*(e-r)}function PI(r,e){var t=Math.pow(10,e);return Math.round(r*t)/t}function XR(r,e){return Math.round(PI(r,e))}function $f(r,e){return Math.floor(PI(r,e))}function lu(r,e){return Math.ceil(PI(r,e))}var $6=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,V6=/^([a-z]*)$|^hsla?\(.*\)$/i;function el(r){return typeof r=="string"?r:z6(r)}function j6(r){var e=document.createElement("div");if(e.style.color=r,e.style.color!==""){document.body.appendChild(e);var t=getComputedStyle(e).color;return document.body.removeChild(e),t}else return""}var K6=function(){var r=1024,e={},t=0;return function(n){var i;if(e.hasOwnProperty(n))i=e[n];else{if(t>=r){var a=0;for(var o in e)a++&3||(delete e[o],--t)}i=jY(n),e[n]=i,++t}return i}}();function Du(r){return Array.isArray(r)?r:K6(r)}function jY(r){var e,t,n,i,a;if(V6.exec(r)&&(r=j6(r)),$6.exec(r)){var o=r.length-1,s=void 0;o<=4?s=1:s=2;var A=o===4||o===8;e=parseInt(r.substr(1+0*s,s),16),t=parseInt(r.substr(1+1*s,s),16),n=parseInt(r.substr(1+2*s,s),16),A?i=parseInt(r.substr(1+3*s,s),16):i=255,s==1&&(e=(e<<4)+e,t=(t<<4)+t,n=(n<<4)+n,A&&(i=(i<<4)+i)),a=[e,t,n,i/255]}else r.indexOf("rgba(")==0?(a=r.slice(5,-1).split(",").map(Number),WR(a)):r.indexOf("rgb(")==0?(a=r.slice(4,-1).split(",").map(Number),a.push(1),WR(a)):_e(!1,14);return a}function WR(r){return r[0]=Sn(r[0]+.5|0,0,255),r[1]=Sn(r[1]+.5|0,0,255),r[2]=Sn(r[2]+.5|0,0,255),r[3]=Sn(r[3],0,1),r}function z6(r){var e=r[0];e!=(e|0)&&(e=e+.5|0);var t=r[1];t!=(t|0)&&(t=t+.5|0);var n=r[2];n!=(n|0)&&(n=n+.5|0);var i=r[3]===void 0?1:Math.round(r[3]*100)/100;return"rgba("+e+","+t+","+n+","+i+")"}function KY(r){return V6.test(r)&&(r=j6(r)),$6.test(r)||r.indexOf("rgba(")===0||r.indexOf("rgb(")===0}var zY=function(){function r(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return r.prototype.clear=function(){this.cache_={},this.cacheSize_=0},r.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},r.prototype.expire=function(){if(this.canExpireCache()){var e=0;for(var t in this.cache_){var n=this.cache_[t];!(e++&3)&&!n.hasListener()&&(delete this.cache_[t],--this.cacheSize_)}}},r.prototype.get=function(e,t,n){var i=qR(e,t,n);return i in this.cache_?this.cache_[i]:null},r.prototype.set=function(e,t,n,i){var a=qR(e,t,n);this.cache_[a]=i,++this.cacheSize_},r.prototype.setSize=function(e){this.maxCacheSize_=e,this.expire()},r}();function qR(r,e,t){var n=t?el(t):"null";return e+":"+r+":"+n}var v_=new zY,YY=function(){function r(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}return r.prototype.preventDefault=function(){this.defaultPrevented=!0},r.prototype.stopPropagation=function(){this.propagationStopped=!0},r}();function XY(r){r.stopPropagation()}var po=YY,ch={PROPERTYCHANGE:"propertychange"},de=typeof Object.assign=="function"?Object.assign:function(r,e){if(r==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(r),n=1,i=arguments.length;n0:!1},e.prototype.removeEventListener=function(t,n){var i=this.listeners_&&this.listeners_[t];if(i){var a=i.indexOf(n);a!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[a]=lh,++this.pendingRemovals_[t]):(i.splice(a,1),i.length===0&&delete this.listeners_[t]))}},e}(V1),Th=qY,ye={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};function Pe(r,e,t,n,i){if(n&&n!==r&&(t=t.bind(n)),i){var a=t;t=function(){r.removeEventListener(e,t),a.apply(this,arguments)}}var o={target:r,type:e,listener:t};return r.addEventListener(e,t),o}function lg(r,e,t,n){return Pe(r,e,t,n,!0)}function Rr(r){r&&r.target&&(r.target.removeEventListener(r.type,r.listener),Bh(r))}var ZY=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Xg=function(r){ZY(e,r);function e(){var t=r.call(this)||this;return t.on=t.onInternal,t.once=t.onceInternal,t.un=t.unInternal,t.revision_=0,t}return e.prototype.changed=function(){++this.revision_,this.dispatchEvent(ye.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.onInternal=function(t,n){if(Array.isArray(t)){for(var i=t.length,a=new Array(i),o=0;o=r.maxResolution)return!1;var n=e.zoom;return n>r.minZoom&&n<=r.maxZoom}var bh=nX;function Gd(r,e,t){var n=t!==void 0?r.toFixed(t):""+r,i=n.indexOf(".");return i=i===-1?n.length:i,i>e?n:new Array(1+e-i).join("0")+n}function X6(r,e){for(var t=(""+r).split("."),n=(""+e).split("."),i=0;io)return 1;if(o>a)return-1}return 0}function W6(r,e){return r[0]+=+e[0],r[1]+=+e[1],r}function iX(r,e){var t=e.getRadius(),n=e.getCenter(),i=n[0],a=n[1],o=r[0],s=r[1],A=o-i,l=s-a;A===0&&l===0&&(A=1);var u=Math.sqrt(A*A+l*l),c=i+t*A/u,h=a+t*l/u;return[c,h]}function QI(r,e){var t=r[0],n=r[1],i=e[0],a=e[1],o=i[0],s=i[1],A=a[0],l=a[1],u=A-o,c=l-s,h=u===0&&c===0?0:(u*(t-o)+c*(n-s))/(u*u+c*c||0),f,p;return h<=0?(f=o,p=s):h>=1?(f=A,p=l):(f=o+h*u,p=s+h*c),[f,p]}function ws(r,e){for(var t=!0,n=r.length-1;n>=0;--n)if(r[n]!=e[n]){t=!1;break}return t}function HI(r,e){var t=Math.cos(e),n=Math.sin(e),i=r[0]*t-r[1]*n,a=r[1]*t+r[0]*n;return r[0]=i,r[1]=a,r}function q6(r,e){return r[0]*=e,r[1]*=e,r}function rl(r,e){var t=r[0]-e[0],n=r[1]-e[1];return t*t+n*n}function JR(r,e){return Math.sqrt(rl(r,e))}function aX(r,e){return rl(r,QI(r,e))}function GI(r,e){if(e.canWrapX()){var t=Fr(e.getExtent()),n=Z6(r,e,t);n&&(r[0]-=n*t)}return r}function Z6(r,e,t){var n=e.getExtent(),i=0;if(e.canWrapX()&&(r[0]n[2])){var a=t||Fr(n);i=Math.floor((r[0]-n[0])/a)}return i}var oX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),sX=function(r){oX(e,r);function e(t){var n=r.call(this)||this;return n.map_=t,n}return e.prototype.dispatchRenderEvent=function(t,n){Be()},e.prototype.calculateMatrices2D=function(t){var n=t.viewState,i=t.coordinateToPixelTransform,a=t.pixelToCoordinateTransform;Va(i,t.size[0]/2,t.size[1]/2,1/n.resolution,-1/n.resolution,-n.rotation,-n.center[0],-n.center[1]),Kg(a,i)},e.prototype.forEachFeatureAtCoordinate=function(t,n,i,a,o,s,A,l){var u,c=n.viewState;function h(X,z,tt,J){return o.call(s,z,X?tt:null,J)}var f=c.projection,p=GI(t.slice(),f),v=[[0,0]];if(f.canWrapX()&&a){var m=f.getExtent(),g=Fr(m);v.push([-g,0],[g,0])}for(var _=n.layerStatesArray,E=_.length,B=[],L=[],O=0;O=0;--x){var T=_[x],I=T.layer;if(I.hasRenderer()&&g_(T,c)&&A.call(l,I)){var M=I.getRenderer(),S=I.getSource();if(M&&S){var b=S.getWrapX()?p:t,N=h.bind(null,T.managed);L[0]=b[0]+v[O][0],L[1]=b[1]+v[O][1],u=M.forEachFeatureAtCoordinate(L,n,i,N,B)}if(u)return u}}if(B.length!==0){var P=1/B.length;return B.forEach(function(X,z){return X.distanceSq+=z*P}),B.sort(function(X,z){return X.distanceSq-z.distanceSq}),B.some(function(X){return u=X.callback(X.feature,X.layer,X.geometry)}),u}},e.prototype.forEachLayerAtPixel=function(t,n,i,a,o){return Be()},e.prototype.hasFeatureAtCoordinate=function(t,n,i,a,o,s){var A=this.forEachFeatureAtCoordinate(t,n,i,a,aA,this,o,s);return A!==void 0},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){Be()},e.prototype.scheduleExpireIconCache=function(t){v_.canExpireCache()&&t.postRenderFunctions.push(AX)},e}(V1);function AX(r,e){v_.expire()}var lX=sX,uX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),cX=function(r){uX(e,r);function e(t,n,i,a){var o=r.call(this,t)||this;return o.inversePixelTransform=n,o.frameState=i,o.context=a,o}return e}(po),Uv=cX,wm="ol-hidden",hX="ol-selectable",uA="ol-unselectable",tM="ol-unsupported",Sh="ol-control",y_="ol-collapsed",fX=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))",`?\\s*([-,\\"\\'\\sa-z]+?)\\s*$`].join(""),"i"),eM=["style","variant","weight","size","lineHeight","family"],J6=function(r){var e=r.match(fX);if(!e)return null;for(var t={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},n=0,i=eM.length;n=0;--s)a[s].renderDeclutter(t);fX(this.element_,this.children_),this.dispatchRenderEvent(ao.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)},e.prototype.forEachLayerAtPixel=function(t,n,i,a,o){for(var s=n.viewState,A=n.layerStatesArray,l=A.length,u=l-1;u>=0;--u){var c=A[u],h=c.layer;if(h.hasRenderer()&&g_(c,s)&&o(h)){var f=h.getRenderer(),p=f.getDataAtPixel(t,n,i);if(p){var v=a(h,p);if(v)return v}}}},e}(oX),iQ=wX,kn={ADD:"add",REMOVE:"remove"},aQ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),rM={LENGTH:"length"},Em=function(r){aQ(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.element=n,a.index=i,a}return e}(fo),EX=function(r){aQ(e,r);function e(t,n){var i=r.call(this)||this;i.on,i.once,i.un;var a=n||{};if(i.unique_=!!a.unique,i.array_=t||[],i.unique_)for(var o=0,s=i.array_.length;o0;)this.pop()},e.prototype.extend=function(t){for(var n=0,i=t.length;nthis.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Rr(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(ye.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Rr(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(Rr),this.dragListenerKeys_.length=0,this.element_=null,r.prototype.disposeInternal.call(this)},e}(Th),FX=IX,Ks={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},Jn={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},C_=1/0,LX=function(){function r(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return r.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Bh(this.queuedElements_)},r.prototype.dequeue=function(){var e=this.elements_,t=this.priorities_,n=e[0];e.length==1?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));var i=this.keyFunction_(n);return delete this.queuedElements_[i],n},r.prototype.enqueue=function(e){_e(!(this.keyFunction_(e)in this.queuedElements_),31);var t=this.priorityFunction_(e);return t!=C_?(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1},r.prototype.getCount=function(){return this.elements_.length},r.prototype.getLeftChildIndex_=function(e){return e*2+1},r.prototype.getRightChildIndex_=function(e){return e*2+2},r.prototype.getParentIndex_=function(e){return e-1>>1},r.prototype.heapify_=function(){var e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)},r.prototype.isEmpty=function(){return this.elements_.length===0},r.prototype.isKeyQueued=function(e){return e in this.queuedElements_},r.prototype.isQueued=function(e){return this.isKeyQueued(this.keyFunction_(e))},r.prototype.siftUp_=function(e){for(var t=this.elements_,n=this.priorities_,i=t.length,a=t[e],o=n[e],s=e;e>1;){var A=this.getLeftChildIndex_(e),l=this.getRightChildIndex_(e),u=le;){var s=this.getParentIndex_(t);if(i[s]>o)n[t]=n[s],i[t]=i[s],t=s;else break}n[t]=a,i[t]=o},r.prototype.reprioritize=function(){var e=this.priorityFunction_,t=this.elements_,n=this.priorities_,i=0,a=t.length,o,s,A;for(s=0;s0;)o=this.dequeue()[0],s=o.getKey(),a=o.getState(),a===ge.IDLE&&!(s in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[s]=!0,++this.tilesLoading_,++i,o.load())},e}(OX),NX=MX;function PX(r,e,t,n,i){if(!r||!(t in r.wantedTiles)||!r.wantedTiles[t][e.getKey()])return C_;var a=r.viewState.center,o=n[0]-a[0],s=n[1]-a[1];return 65536*Math.log(i)+Math.sqrt(o*o+s*s)/i}var st={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"},jp={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},bs={};bs[jp.RADIANS]=6370997/(2*Math.PI);bs[jp.DEGREES]=2*Math.PI*6370997/360;bs[jp.FEET]=.3048;bs[jp.METERS]=1;bs[jp.USFEET]=1200/3937;var Qa=jp,gn={ANIMATING:0,INTERACTING:1},So={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},UX=42,GI=256,DX=function(){function r(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent!==void 0?e.extent:null,this.worldExtent_=e.worldExtent!==void 0?e.worldExtent:null,this.axisOrientation_=e.axisOrientation!==void 0?e.axisOrientation:"enu",this.global_=e.global!==void 0?e.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}return r.prototype.canWrapX=function(){return this.canWrapX_},r.prototype.getCode=function(){return this.code_},r.prototype.getExtent=function(){return this.extent_},r.prototype.getUnits=function(){return this.units_},r.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||bs[this.units_]},r.prototype.getWorldExtent=function(){return this.worldExtent_},r.prototype.getAxisOrientation=function(){return this.axisOrientation_},r.prototype.isGlobal=function(){return this.global_},r.prototype.setGlobal=function(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)},r.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},r.prototype.setDefaultTileGrid=function(e){this.defaultTileGrid_=e},r.prototype.setExtent=function(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)},r.prototype.setWorldExtent=function(e){this.worldExtent_=e},r.prototype.setGetPointResolution=function(e){this.getPointResolutionFunc_=e},r.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},r}(),ml=DX,QX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),qg=6378137,Vf=Math.PI*qg,HX=[-Vf,-Vf,Vf,Vf],GX=[-180,-85,180,85],Cm=qg*Math.log(Math.tan(Math.PI/2)),cf=function(r){QX(e,r);function e(t){return r.call(this,{code:t,units:Qa.METERS,extent:HX,global:!0,worldExtent:GX,getPointResolution:function(n,i){return n/QY(i[1]/qg)}})||this}return e}(ml),nM=[new cf("EPSG:3857"),new cf("EPSG:102100"),new cf("EPSG:102113"),new cf("EPSG:900913"),new cf("http://www.opengis.net/def/crs/EPSG/0/3857"),new cf("http://www.opengis.net/gml/srs/epsg.xml#3857")];function kX(r,e,t){var n=r.length,i=t>1?t:2,a=e;a===void 0&&(i>2?a=r.slice():a=new Array(n));for(var o=0;oCm?s=Cm:s<-Cm&&(s=-Cm),a[o+1]=s}return a}function $X(r,e,t){var n=r.length,i=t>1?t:2,a=e;a===void 0&&(i>2?a=r.slice():a=new Array(n));for(var o=0;o=2;--l)o[s+l]=e[s+l]}return o}}function JX(r,e,t,n){var i=Oe(r),a=Oe(e);Sp(i,a,oM(t)),Sp(a,i,oM(n))}function Ws(r,e){if(r===e)return!0;var t=r.getUnits()===e.getUnits();if(r.getCode()===e.getCode())return t;var n=fh(r,e);return n===kI&&t}function fh(r,e){var t=r.getCode(),n=e.getCode(),i=sQ(t,n);return i||(i=W1),i}function vg(r,e){var t=Oe(r),n=Oe(e);return fh(t,n)}function Qu(r,e,t){var n=vg(e,t);return n(r,void 0,r.length)}function S_(r,e,t,n){var i=vg(e,t);return MI(r,i,void 0,n)}var tW=null;function ph(){return tW}function xp(r,e){return r}function Tn(r,e){return KT&&!_s(r,[0,0])&&r[0]>=-180&&r[0]<=180&&r[1]>=-90&&r[1]<=90&&(KT=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),r}function q1(r,e){return r}function Lo(r,e){return r}function eW(r,e){return r}function sM(r,e,t){return function(n){var i=n[0],a=n[1],o,s;if(r.canWrapX()){var A=r.getExtent(),l=Fr(A);s=Z6(n,r,l),s&&(i=i-s*l),i=xn(i,A[0],A[2]),a=xn(a,A[1],A[3]),o=t([i,a])}else o=t(n);return s&&e.canWrapX()&&(o[0]+=s*Fr(e.getExtent())),o}}function rW(){zT(nM),zT(aM),ZX(aM,nM,kX,$X)}rW();function AM(r,e,t){return function(n,i,a,o,s){if(n){if(!i&&!e)return n;var A=e?0:a[0]*i,l=e?0:a[1]*i,u=s?s[0]:0,c=s?s[1]:0,h=r[0]+A/2+u,f=r[2]-A/2+u,p=r[1]+l/2+c,v=r[3]-l/2+c;h>f&&(h=(f+h)/2,f=h),p>v&&(p=(v+p)/2,v=p);var m=xn(n[0],h,f),g=xn(n[1],p,v);if(o&&t&&i){var _=30*i;m+=-_*Math.log(1+Math.max(0,h-n[0])/_)+_*Math.log(1+Math.max(0,n[0]-f)/_),g+=-_*Math.log(1+Math.max(0,p-n[1])/_)+_*Math.log(1+Math.max(0,n[1]-v)/_)}return[m,g]}}}function nW(r){return r}function VI(r,e,t,n){var i=Fr(e)/t[0],a=Ai(e)/t[1];return n?Math.min(r,Math.max(i,a)):Math.min(r,Math.min(i,a))}function jI(r,e,t){var n=Math.min(r,e),i=50;return n*=Math.log(1+i*Math.max(0,r/e-1))/i+1,t&&(n=Math.max(n,t),n/=Math.log(1+i*Math.max(0,t/r-1))/i+1),xn(n,t/2,e*2)}function iW(r,e,t,n){return function(i,a,o,s){if(i!==void 0){var A=r[0],l=r[r.length-1],u=t?VI(A,t,o,n):A;if(s){var c=e!==void 0?e:!0;return c?jI(i,u,l):xn(i,l,u)}var h=Math.min(u,i),f=Math.floor(j1(r,h,a));return r[f]>u&&f1)c=t;else if(h>0){for(var f=0;fi&&(i=l),a=s,o=A}return i}function qI(r,e,t,n,i){for(var a=0,o=t.length;a0;){for(var c=l.pop(),h=l.pop(),f=0,p=r[h],v=r[h+1],m=r[c],g=r[c+1],_=h+n;_f&&(u=_,f=L)}f>i&&(A[(u-e)/n]=1,h+n0&&v>f)&&(p<0&&m0&&m>p)){l=c,u=h;continue}a[o++]=l,a[o++]=u,s=l,A=u,l=c,u=h}}return a[o++]=l,a[o++]=u,o}function hQ(r,e,t,n,i,a,o,s){for(var A=0,l=t.length;Aa&&(l-s)*(a-A)-(i-s)*(u-A)>0&&o++:u<=a&&(l-s)*(a-A)-(i-s)*(u-A)<0&&o--,s=l,A=u}return o!==0}function rF(r,e,t,n,i,a){if(t.length===0||!Dc(r,e,t[0],n,i,a))return!1;for(var o=1,s=t.length;oB&&(l=(u+c)/2,rF(r,e,t,n,l,p)&&(E=l,B=L)),u=c}return isNaN(E)&&(E=i[a]),o?(o.push(E,p,B),o):[E,p,B]}function dQ(r,e,t,n,i){for(var a=[],o=0,s=t.length;o=i[0]&&a[2]<=i[2]||a[1]>=i[1]&&a[3]<=i[3]?!0:vQ(r,e,t,n,function(o,s){return H6(i,o,s)}):!1}function FW(r,e,t,n,i){for(var a=0,o=t.length;a0}function yQ(r,e,t,n,i){for(var a=i!==void 0?i:!1,o=0,s=t.length;o1&&typeof arguments[n-1]=="function"&&(i=arguments[n-1],--n);for(var a=0;a0},e.prototype.getInteracting=function(){return this.hints_[gn.INTERACTING]>0},e.prototype.cancelAnimations=function(){this.setHint(gn.ANIMATING,-this.hints_[gn.ANIMATING]);for(var t,n=0,i=this.animations_.length;n=0;--i){for(var a=this.animations_[i],o=!0,s=0,A=a.length;s0?u/l.duration:1;c>=1?(l.complete=!0,c=1):o=!1;var h=l.easing(c);if(l.sourceCenter){var f=l.sourceCenter[0],p=l.sourceCenter[1],v=l.targetCenter[0],m=l.targetCenter[1];this.nextCenter_=l.targetCenter;var g=f+h*(v-f),_=p+h*(m-p);this.targetCenter_=[g,_]}if(l.sourceResolution&&l.targetResolution){var E=h===1?l.targetResolution:l.sourceResolution+h*(l.targetResolution-l.sourceResolution);if(l.anchor){var B=this.getViewportSize_(this.getRotation()),L=this.constraints_.resolution(E,0,B,!0);this.targetCenter_=this.calculateCenterZoom(L,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=E,this.applyTargetState_(!0)}if(l.sourceRotation!==void 0&&l.targetRotation!==void 0){var O=h===1?Bu(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+h*(l.targetRotation-l.sourceRotation);if(l.anchor){var b=this.constraints_.rotation(O,!0);this.targetCenter_=this.calculateCenterRotate(b,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=O}if(this.applyTargetState_(!0),n=!0,!l.complete)break}}if(o){this.animations_[i]=null,this.setHint(gn.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var T=a[0].callback;T&&Bm(T,!0)}}this.animations_=this.animations_.filter(Boolean),n&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},e.prototype.calculateCenterRotate=function(t,n){var i,a=this.getCenterInternal();return a!==void 0&&(i=[a[0]-n[0],a[1]-n[1]],QI(i,t-this.getRotation()),W6(i,n)),i},e.prototype.calculateCenterZoom=function(t,n){var i,a=this.getCenterInternal(),o=this.getResolution();if(a!==void 0&&o!==void 0){var s=n[0]-t*(n[0]-a[0])/o,A=n[1]-t*(n[1]-a[1])/o;i=[s,A]}return i},e.prototype.getViewportSize_=function(t){var n=this.viewportSize_;if(t){var i=n[0],a=n[1];return[Math.abs(i*Math.cos(t))+Math.abs(a*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(a*Math.cos(t))]}else return n},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t&&xp(t,this.getProjection())},e.prototype.getCenterInternal=function(){return this.get(So.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},e.prototype.getHints=function(t){return t!==void 0?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var n=this.calculateExtentInternal(t);return q1(n,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var n=t||this.getViewportSizeMinusPadding_(),i=this.getCenterInternal();_e(i,1);var a=this.getResolution();_e(a!==void 0,2);var o=this.getRotation();return _e(o!==void 0,3),Xc(i,a,o,n)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(So.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,n){return this.getResolutionForExtentInternal(Lo(t,this.getProjection()),n)},e.prototype.getResolutionForExtentInternal=function(t,n){var i=n||this.getViewportSizeMinusPadding_(),a=Fr(t)/i[0],o=Ai(t)/i[1];return Math.max(a,o)},e.prototype.getResolutionForValueFunction=function(t){var n=t||2,i=this.getConstrainedResolution(this.maxResolution_),a=this.minResolution_,o=Math.log(i/a)/Math.log(n);return function(s){var A=i/Math.pow(n,s*o);return A}},e.prototype.getRotation=function(){return this.get(So.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var n=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),a=this.minResolution_,o=Math.log(i/a)/n;return function(s){var A=Math.log(i/s)/n/o;return A}},e.prototype.getViewportSizeMinusPadding_=function(t){var n=this.getViewportSize_(t),i=this.padding_;return i&&(n=[n[0]-i[1]-i[3],n[1]-i[0]-i[2]]),n},e.prototype.getState=function(){var t=this.getProjection(),n=this.getResolution(),i=this.getRotation(),a=this.getCenterInternal(),o=this.padding_;if(o){var s=this.getViewportSizeMinusPadding_();a=hC(a,this.getViewportSize_(),[s[0]/2+o[3],s[1]/2+o[0]],n,i)}return{center:a.slice(0),projection:t!==void 0?t:null,resolution:n,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,n=this.getResolution();return n!==void 0&&(t=this.getZoomForResolution(n)),t},e.prototype.getZoomForResolution=function(t){var n=this.minZoom_||0,i,a;if(this.resolutions_){var o=j1(this.resolutions_,t,1);n=o,i=this.resolutions_[o],o==this.resolutions_.length-1?a=2:a=i/this.resolutions_[o+1]}else i=this.maxResolution_,a=this.zoomFactor_;return n+Math.log(i/t)/Math.log(a)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var n=xn(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[n]/this.resolutions_[n+1];return this.resolutions_[n]/Math.pow(i,xn(t-n,0,1))}else return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,n){var i;if(_e(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function",24),Array.isArray(t)){_e(!Vp(t),25);var a=Lo(t,this.getProjection());i=Hu(a)}else if(t.getType()===st.CIRCLE){var a=Lo(t.getExtent(),this.getProjection());i=Hu(a),i.rotate(this.getRotation(),Sa(a))}else{var o=ph();o?i=t.clone().transform(o,this.getProjection()):i=t}this.fitInternal(i,n)},e.prototype.rotatedExtentForGeometry=function(t){for(var n=this.getRotation(),i=Math.cos(n),a=Math.sin(-n),o=t.getFlatCoordinates(),s=t.getStride(),A=1/0,l=1/0,u=-1/0,c=-1/0,h=0,f=o.length;h0&&r[1]>0}function _Q(r,e,t){return t===void 0&&(t=[0,0]),t[0]=r[0]*e+.5|0,t[1]=r[1]*e+.5|0,t}function Pi(r,e){return Array.isArray(r)?r:(e===void 0?e=[r,r]:(e[0]=r,e[1]=r),e)}var jW=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();function wQ(r){if(r instanceof Sh){r.setMapInternal(null);return}r instanceof Wg&&r.getLayers().forEach(wQ)}function EQ(r,e){if(r instanceof Sh){r.setMapInternal(e);return}if(r instanceof Wg)for(var t=r.getLayers().getArray(),n=0,i=t.length;n=0;l--){var u=A[l];if(!(u.getMap()!==this||!u.getActive()||!this.getTargetElement())){var c=u.handleEvent(t);if(!c||t.propagationStopped)break}}}},e.prototype.handlePostRender=function(){var t=this.frameState_,n=this.tileQueue_;if(!n.isEmpty()){var i=this.maxTilesLoading_,a=i;if(t){var o=t.viewHints;if(o[gn.ANIMATING]||o[gn.INTERACTING]){var s=Date.now()-t.time>8;i=s?0:8,a=s?0:2}}n.getTilesLoading()0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!yl(n,this.renderedAttributions_)){eQ(this.ulElement_);for(var a=0,o=n.length;a0&&i%(2*Math.PI)!==0?n.animate({rotation:0,duration:this.duration_,easing:ts}):n.setRotation(0))}},e.prototype.render=function(t){var n=t.frameState;if(n){var i=n.viewState.rotation;if(i!=this.rotation_){var a="rotate("+i+"rad)";if(this.autoHide_){var o=this.element.classList.contains(wm);!o&&i===0?this.element.classList.add(wm):o&&i!==0&&this.element.classList.remove(wm)}this.label_.style.transform=a}this.rotation_=i}},e}(_r),TQ=tq,eq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),rq=function(r){eq(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),target:i.target})||this;var a=i.className!==void 0?i.className:"ol-zoom",o=i.delta!==void 0?i.delta:1,s=i.zoomInClassName!==void 0?i.zoomInClassName:a+"-in",A=i.zoomOutClassName!==void 0?i.zoomOutClassName:a+"-out",l=i.zoomInLabel!==void 0?i.zoomInLabel:"+",u=i.zoomOutLabel!==void 0?i.zoomOutLabel:"–",c=i.zoomInTipLabel!==void 0?i.zoomInTipLabel:"Zoom in",h=i.zoomOutTipLabel!==void 0?i.zoomOutTipLabel:"Zoom out",f=document.createElement("button");f.className=s,f.setAttribute("type","button"),f.title=c,f.appendChild(typeof l=="string"?document.createTextNode(l):l),f.addEventListener(ye.CLICK,n.handleClick_.bind(n,o),!1);var p=document.createElement("button");p.className=A,p.setAttribute("type","button"),p.title=h,p.appendChild(typeof u=="string"?document.createTextNode(u):u),p.addEventListener(ye.CLICK,n.handleClick_.bind(n,-o),!1);var v=a+" "+lA+" "+xh,m=n.element;return m.className=v,m.appendChild(f),m.appendChild(p),n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleClick_=function(t,n){n.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var n=this.getMap(),i=n.getView();if(i){var a=i.getZoom();if(a!==void 0){var o=i.getConstrainedZoom(a+t);this.duration_>0?(i.getAnimating()&&i.cancelAnimations(),i.animate({zoom:o,duration:this.duration_,easing:ts})):i.setZoom(o)}}},e}(_r),SQ=rq,nq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),vM=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],gM={ENTERFULLSCREEN:"enterfullscreen",LEAVEFULLSCREEN:"leavefullscreen"},iq=function(r){nq(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),target:i.target})||this,n.on,n.once,n.un,n.keys_=i.keys!==void 0?i.keys:!1,n.source_=i.source,n.isInFullscreen_=!1,n.boundHandleMapTargetChange_=n.handleMapTargetChange_.bind(n),n.cssClassName_=i.className!==void 0?i.className:"ol-full-screen",n.documentListeners_=[],n.activeClassName_=i.activeClassName!==void 0?i.activeClassName.split(" "):[n.cssClassName_+"-true"],n.inactiveClassName_=i.inactiveClassName!==void 0?i.inactiveClassName.split(" "):[n.cssClassName_+"-false"];var a=i.label!==void 0?i.label:"⤢";n.labelNode_=typeof a=="string"?document.createTextNode(a):a;var o=i.labelActive!==void 0?i.labelActive:"×";n.labelActiveNode_=typeof o=="string"?document.createTextNode(o):o;var s=i.tipLabel?i.tipLabel:"Toggle full-screen";return n.button_=document.createElement("button"),n.button_.title=s,n.button_.setAttribute("type","button"),n.button_.appendChild(n.labelNode_),n.button_.addEventListener(ye.CLICK,n.handleClick_.bind(n),!1),n.setClassName_(n.button_,n.isInFullscreen_),n.element.className="".concat(n.cssClassName_," ").concat(lA," ").concat(xh),n.element.appendChild(n.button_),n}return e.prototype.handleClick_=function(t){t.preventDefault(),this.handleFullScreen_()},e.prototype.handleFullScreen_=function(){var t=this.getMap();if(t){var n=t.getOwnerDocument();if(yM(n))if(mM(n))oq(n);else{var i=void 0;this.source_?i=typeof this.source_=="string"?n.getElementById(this.source_):this.source_:i=t.getTargetElement(),this.keys_?aq(i):xQ(i)}}},e.prototype.handleFullScreenChange_=function(){var t=this.getMap();if(t){var n=this.isInFullscreen_;this.isInFullscreen_=mM(t.getOwnerDocument()),n!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?(Bp(this.labelActiveNode_,this.labelNode_),this.dispatchEvent(gM.ENTERFULLSCREEN)):(Bp(this.labelNode_,this.labelActiveNode_),this.dispatchEvent(gM.LEAVEFULLSCREEN)),t.updateSize())}},e.prototype.setClassName_=function(t,n){var i,a,o,s;n?((i=t.classList).remove.apply(i,this.inactiveClassName_),(a=t.classList).add.apply(a,this.activeClassName_)):((o=t.classList).remove.apply(o,this.activeClassName_),(s=t.classList).add.apply(s,this.inactiveClassName_))},e.prototype.setMap=function(t){var n=this.getMap();n&&n.removeChangeListener(Jn.TARGET,this.boundHandleMapTargetChange_),r.prototype.setMap.call(this,t),this.handleMapTargetChange_(),t&&t.addChangeListener(Jn.TARGET,this.boundHandleMapTargetChange_)},e.prototype.handleMapTargetChange_=function(){for(var t=this.documentListeners_,n=0,i=t.length;np*pC||f>v*pC?this.resetExtent_():Fo(l,o)||this.recenter_()}}},e.prototype.resetExtent_=function(){var t=this.getMap(),n=this.ovmap_,i=t.getSize(),a=t.getView(),o=a.calculateExtentInternal(i),s=n.getView(),A=Math.log(pC/Tm)/Math.LN2,l=1/(Math.pow(2,A/2)*Tm);Q6(o,l),s.fitInternal(Hu(o))},e.prototype.recenter_=function(){var t=this.getMap(),n=this.ovmap_,i=t.getView(),a=n.getView();a.setCenterInternal(i.getCenterInternal())},e.prototype.updateBox_=function(){var t=this.getMap(),n=this.ovmap_;if(!(!t.isRendered()||!n.isRendered())){var i=t.getSize(),a=t.getView(),o=n.getView(),s=this.rotateWithView_?0:-a.getRotation(),A=this.boxOverlay_,l=this.boxOverlay_.getElement(),u=a.getCenterInternal(),c=a.getResolution(),h=o.getResolution(),f=i[0]*c/h,p=i[1]*c/h;if(A.setPosition(u),l){l.style.width=f+"px",l.style.height=p+"px";var v="rotate("+s+"rad)";l.style.transform=v}}},e.prototype.updateBoxAfterOvmapIsRendered_=function(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=lg(this.ovmap_,Ks.POSTRENDER,function(t){delete this.ovmapPostrenderKey_,this.updateBox_()},this))},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},e.prototype.handleToggle_=function(){this.element.classList.toggle(y_),this.collapsed_?Bp(this.collapseLabel_,this.label_):Bp(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;var t=this.ovmap_;if(!this.collapsed_){if(t.isRendered()){this.viewExtent_=void 0,t.render();return}t.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){!this.collapsible_||this.collapsed_===t||this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.setRotateWithView=function(t){this.rotateWithView_!==t&&(this.rotateWithView_=t,this.getMap().getView().getRotation()!==0&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))},e.prototype.getOverviewMap=function(){return this.ovmap_},e.prototype.render=function(t){this.validateExtent_(),this.updateBox_()},e}(_r),dq=pq,vq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),dC="units",vc={DEGREES:"degrees",IMPERIAL:"imperial",NAUTICAL:"nautical",METRIC:"metric",US:"us"},gq=[1,2,5],vC=25.4/.28,yq=function(r){vq(e,r);function e(t){var n=this,i=t||{},a=i.className!==void 0?i.className:i.bar?"ol-scale-bar":"ol-scale-line";return n=r.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this,n.on,n.once,n.un,n.innerElement_=document.createElement("div"),n.innerElement_.className=a+"-inner",n.element.className=a+" "+lA,n.element.appendChild(n.innerElement_),n.viewState_=null,n.minWidth_=i.minWidth!==void 0?i.minWidth:64,n.renderedVisible_=!1,n.renderedWidth_=void 0,n.renderedHTML_="",n.addChangeListener(dC,n.handleUnitsChanged_),n.setUnits(i.units||vc.METRIC),n.scaleBar_=i.bar||!1,n.scaleBarSteps_=i.steps||4,n.scaleBarText_=i.text||!1,n.dpi_=i.dpi||void 0,n}return e.prototype.getUnits=function(){return this.get(dC)},e.prototype.handleUnitsChanged_=function(){this.updateElement_()},e.prototype.setUnits=function(t){this.set(dC,t)},e.prototype.setDpi=function(t){this.dpi_=t},e.prototype.updateElement_=function(){var t=this.viewState_;if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}var n=t.center,i=t.projection,a=this.getUnits(),o=a==vc.DEGREES?Qa.DEGREES:Qa.METERS,s=T_(i,t.resolution,n,o),A=this.minWidth_*(this.dpi_||vC)/vC,l=A*s,u="";if(a==vc.DEGREES){var c=bs[Qa.DEGREES];l*=c,l=A)break;++h}var g;this.scaleBar_?g=this.createScaleBar(p,f,u):g=f.toFixed(v<0?-v:0)+" "+u,this.renderedHTML_!=g&&(this.innerElement_.innerHTML=g,this.renderedHTML_=g),this.renderedWidth_!=p&&(this.innerElement_.style.width=p+"px",this.renderedWidth_=p),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)},e.prototype.createScaleBar=function(t,n,i){for(var a="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),o=[],s=t/this.scaleBarSteps_,A="#ffffff",l=0;l
'+this.createMarker("relative",l)+(l%2===0||this.scaleBarSteps_===2?this.createStepText(l,t,!1,n,i):"")+""),l===this.scaleBarSteps_-1&&o.push(this.createStepText(l+1,t,!0,n,i)),A==="#ffffff"?A="#000000":A="#ffffff";var u;this.scaleBarText_?u='
'+a+"
":u="";var c='
'+u+o.join("")+"
";return c},e.prototype.createMarker=function(t,n){var i=t==="absolute"?3:-10;return'
'},e.prototype.createStepText=function(t,n,i,a,o){var s=t===0?0:Math.round(a/this.scaleBarSteps_*t*100)/100,A=s+(t===0?"":" "+o),l=t===0?-3:n/this.scaleBarSteps_*-1,u=t===0?0:n/this.scaleBarSteps_*2;return'
'+A+"
"},e.prototype.getScaleForResolution=function(){var t=T_(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,Qa.METERS),n=this.dpi_||vC,i=1e3/25.4;return parseFloat(t.toString())*i*n},e.prototype.render=function(t){var n=t.frameState;n?this.viewState_=n.viewState:this.viewState_=null,this.updateElement_()},e}(_r),mq=yq,_q=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),kd={VERTICAL:0,HORIZONTAL:1},wq=function(r){_q(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),render:i.render})||this,n.dragListenerKeys_=[],n.currentResolution_=void 0,n.direction_=kd.VERTICAL,n.dragging_,n.heightLimit_=0,n.widthLimit_=0,n.startX_,n.startY_,n.thumbSize_=null,n.sliderInitialized_=!1,n.duration_=i.duration!==void 0?i.duration:200;var a=i.className!==void 0?i.className:"ol-zoomslider",o=document.createElement("button");o.setAttribute("type","button"),o.className=a+"-thumb "+lA;var s=n.element;return s.className=a+" "+lA+" "+xh,s.appendChild(o),s.addEventListener(Xs.POINTERDOWN,n.handleDraggerStart_.bind(n),!1),s.addEventListener(Xs.POINTERMOVE,n.handleDraggerDrag_.bind(n),!1),s.addEventListener(Xs.POINTERUP,n.handleDraggerEnd_.bind(n),!1),s.addEventListener(ye.CLICK,n.handleContainerClick_.bind(n),!1),o.addEventListener(ye.CLICK,KY,!1),n}return e.prototype.setMap=function(t){r.prototype.setMap.call(this,t),t&&t.render()},e.prototype.initSlider_=function(){var t=this.element,n=t.offsetWidth,i=t.offsetHeight;if(n===0&&i===0)return this.sliderInitialized_=!1;var a=getComputedStyle(t);n-=parseFloat(a.paddingRight)+parseFloat(a.paddingLeft),i-=parseFloat(a.paddingTop)+parseFloat(a.paddingBottom);var o=t.firstElementChild,s=getComputedStyle(o),A=o.offsetWidth+parseFloat(s.marginRight)+parseFloat(s.marginLeft),l=o.offsetHeight+parseFloat(s.marginTop)+parseFloat(s.marginBottom);return this.thumbSize_=[A,l],n>i?(this.direction_=kd.HORIZONTAL,this.widthLimit_=n-A):(this.direction_=kd.VERTICAL,this.heightLimit_=i-l),this.sliderInitialized_=!0},e.prototype.handleContainerClick_=function(t){var n=this.getMap().getView(),i=this.getRelativePosition_(t.offsetX-this.thumbSize_[0]/2,t.offsetY-this.thumbSize_[1]/2),a=this.getResolutionForPosition_(i),o=n.getConstrainedZoom(n.getZoomForResolution(a));n.animateInternal({zoom:o,duration:this.duration_,easing:ts})},e.prototype.handleDraggerStart_=function(t){if(!this.dragging_&&t.target===this.element.firstElementChild){var n=this.element.firstElementChild;if(this.getMap().getView().beginInteraction(),this.startX_=t.clientX-parseFloat(n.style.left),this.startY_=t.clientY-parseFloat(n.style.top),this.dragging_=!0,this.dragListenerKeys_.length===0){var i=this.handleDraggerDrag_,a=this.handleDraggerEnd_,o=this.getMap().getOwnerDocument();this.dragListenerKeys_.push(Pe(o,Xs.POINTERMOVE,i,this),Pe(o,Xs.POINTERUP,a,this))}}},e.prototype.handleDraggerDrag_=function(t){if(this.dragging_){var n=t.clientX-this.startX_,i=t.clientY-this.startY_,a=this.getRelativePosition_(n,i);this.currentResolution_=this.getResolutionForPosition_(a),this.getMap().getView().setResolution(this.currentResolution_)}},e.prototype.handleDraggerEnd_=function(t){if(this.dragging_){var n=this.getMap().getView();n.endInteraction(),this.dragging_=!1,this.startX_=void 0,this.startY_=void 0,this.dragListenerKeys_.forEach(Rr),this.dragListenerKeys_.length=0}},e.prototype.setThumbPosition_=function(t){var n=this.getPositionForResolution_(t),i=this.element.firstElementChild;this.direction_==kd.HORIZONTAL?i.style.left=this.widthLimit_*n+"px":i.style.top=this.heightLimit_*n+"px"},e.prototype.getRelativePosition_=function(t,n){var i;return this.direction_===kd.HORIZONTAL?i=t/this.widthLimit_:i=n/this.heightLimit_,xn(i,0,1)},e.prototype.getResolutionForPosition_=function(t){var n=this.getMap().getView().getResolutionForValueFunction();return n(1-t)},e.prototype.getPositionForResolution_=function(t){var n=this.getMap().getView().getValueForResolutionFunction();return xn(1-n(t),0,1)},e.prototype.render=function(t){if(t.frameState&&!(!this.sliderInitialized_&&!this.initSlider_())){var n=t.frameState.viewState.resolution;this.currentResolution_=n,this.setThumbPosition_(n)}},e}(_r),Eq=wq,Cq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Bq=function(r){Cq(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),target:i.target})||this,n.extent=i.extent?i.extent:null;var a=i.className!==void 0?i.className:"ol-zoom-extent",o=i.label!==void 0?i.label:"E",s=i.tipLabel!==void 0?i.tipLabel:"Fit to extent",A=document.createElement("button");A.setAttribute("type","button"),A.title=s,A.appendChild(typeof o=="string"?document.createTextNode(o):o),A.addEventListener(ye.CLICK,n.handleClick_.bind(n),!1);var l=a+" "+lA+" "+xh,u=n.element;return u.className=l,u.appendChild(A),n}return e.prototype.handleClick_=function(t){t.preventDefault(),this.handleZoomToExtent()},e.prototype.handleZoomToExtent=function(){var t=this.getMap(),n=t.getView(),i=this.extent?this.extent:n.getProjection().getExtent();n.fitInternal(Hu(i))},e}(_r),Tq=Bq;function Sq(r){var e=r||{},t=new si,n=e.zoom!==void 0?e.zoom:!0;n&&t.push(new SQ(e.zoomOptions));var i=e.rotate!==void 0?e.rotate:!0;i&&t.push(new TQ(e.rotateOptions));var a=e.attribution!==void 0?e.attribution:!0;return a&&t.push(new BQ(e.attributionOptions)),t}var qT={ACTIVE:"active"},xq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),bq=function(r){xq(e,r);function e(t){var n=r.call(this)||this;return n.on,n.once,n.un,t&&t.handleEvent&&(n.handleEvent=t.handleEvent),n.map_=null,n.setActive(!0),n}return e.prototype.getActive=function(){return this.get(qT.ACTIVE)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(qT.ACTIVE,t)},e.prototype.setMap=function(t){this.map_=t},e}(li);function Iq(r,e,t){var n=r.getCenterInternal();if(n){var i=[n[0]+e[0],n[1]+e[1]];r.animateInternal({duration:t!==void 0?t:250,easing:YI,center:r.getConstrainedCenter(i)})}}function iF(r,e,t,n){var i=r.getZoom();if(i!==void 0){var a=r.getConstrainedZoom(i+e),o=r.getResolutionForZoom(a);r.getAnimating()&&r.cancelAnimations(),r.animate({resolution:o,anchor:t,duration:n!==void 0?n:250,easing:ts})}}var Kp=bq,Fq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Lq=function(r){Fq(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.delta_=i.delta?i.delta:1,n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleEvent=function(t){var n=!1;if(t.type==ar.DBLCLICK){var i=t.originalEvent,a=t.map,o=t.coordinate,s=i.shiftKey?-this.delta_:this.delta_,A=a.getView();iF(A,s,o,this.duration_),i.preventDefault(),n=!0}return!n},e}(Kp),Oq=Lq,Rq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Mq=function(r){Rq(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,i)||this,i.handleDownEvent&&(n.handleDownEvent=i.handleDownEvent),i.handleDragEvent&&(n.handleDragEvent=i.handleDragEvent),i.handleMoveEvent&&(n.handleMoveEvent=i.handleMoveEvent),i.handleUpEvent&&(n.handleUpEvent=i.handleUpEvent),i.stopDown&&(n.stopDown=i.stopDown),n.handlingDownUpSequence=!1,n.trackedPointers_={},n.targetPointers=[],n}return e.prototype.getPointerCount=function(){return this.targetPointers.length},e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;var n=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==ar.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==ar.POINTERUP){var i=this.handleUpEvent(t);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(t.type==ar.POINTERDOWN){var a=this.handleDownEvent(t);this.handlingDownUpSequence=a,n=this.stopDown(a)}else t.type==ar.POINTERMOVE&&this.handleMoveEvent(t);return!n},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){if(Nq(t)){var n=t.originalEvent,i=n.pointerId.toString();t.type==ar.POINTERUP?delete this.trackedPointers_[i]:t.type==ar.POINTERDOWN?this.trackedPointers_[i]=n:i in this.trackedPointers_&&(this.trackedPointers_[i]=n),this.targetPointers=PI(this.trackedPointers_)}},e}(Kp);function aF(r){for(var e=r.length,t=0,n=0,i=0;i0&&this.condition_(t)){var n=t.map,i=n.getView();return this.lastCentroid=null,i.getAnimating()&&i.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}else return!1},e}(Po),jq=Vq,Kq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),zq=function(r){Kq(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,{stopDown:Ch})||this,n.condition_=i.condition?i.condition:LQ,n.lastAngle_=void 0,n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleDragEvent=function(t){if(qc(t)){var n=t.map,i=n.getView();if(i.getConstraints().rotation!==KI){var a=n.getSize(),o=t.pixel,s=Math.atan2(a[1]/2-o[1],o[0]-a[0]/2);if(this.lastAngle_!==void 0){var A=s-this.lastAngle_;i.adjustRotationInternal(-A)}this.lastAngle_=s}}},e.prototype.handleUpEvent=function(t){if(!qc(t))return!0;var n=t.map,i=n.getView();return i.endInteraction(this.duration_),!1},e.prototype.handleDownEvent=function(t){if(!qc(t))return!1;if(sF(t)&&this.condition_(t)){var n=t.map;return n.getView().beginInteraction(),this.lastAngle_=void 0,!0}else return!1},e}(Po),Yq=zq,Xq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Wq=function(r){Xq(e,r);function e(t){var n=r.call(this)||this;return n.geometry_=null,n.element_=document.createElement("div"),n.element_.style.position="absolute",n.element_.style.pointerEvents="auto",n.element_.className="ol-box "+t,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,n=this.endPixel_,i="px",a=this.element_.style;a.left=Math.min(t[0],n[0])+i,a.top=Math.min(t[1],n[1])+i,a.width=Math.abs(n[0]-t[0])+i,a.height=Math.abs(n[1]-t[1])+i},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var n=this.element_.style;n.left="inherit",n.top="inherit",n.width="inherit",n.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,n){this.startPixel_=t,this.endPixel_=n,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,n=this.endPixel_,i=[t,[t[0],n[1]],n,[n[0],t[1]]],a=i.map(this.map_.getCoordinateFromPixelInternal,this.map_);a[4]=a[0].slice(),this.geometry_?this.geometry_.setCoordinates([a]):this.geometry_=new bn([a])},e.prototype.getGeometry=function(){return this.geometry_},e}(V1),qq=Wq,RQ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Sm={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},gC=function(r){RQ(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.coordinate=n,a.mapBrowserEvent=i,a}return e}(fo),Zq=function(r){RQ(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un;var i=t||{};return n.box_=new qq(i.className||"ol-dragbox"),n.minArea_=i.minArea!==void 0?i.minArea:64,i.onBoxEnd&&(n.onBoxEnd=i.onBoxEnd),n.startPixel_=null,n.condition_=i.condition?i.condition:sF,n.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:n.defaultBoxEndCondition,n}return e.prototype.defaultBoxEndCondition=function(t,n,i){var a=i[0]-n[0],o=i[1]-n[1];return a*a+o*o>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new gC(Sm.BOXDRAG,t.coordinate,t))},e.prototype.handleUpEvent=function(t){this.box_.setMap(null);var n=this.boxEndCondition_(t,this.startPixel_,t.pixel);return n&&this.onBoxEnd(t),this.dispatchEvent(new gC(n?Sm.BOXEND:Sm.BOXCANCEL,t.coordinate,t)),!1},e.prototype.handleDownEvent=function(t){return this.condition_(t)?(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new gC(Sm.BOXSTART,t.coordinate,t)),!0):!1},e.prototype.onBoxEnd=function(t){},e}(Po),Jq=Zq,t3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),e3=function(r){t3(e,r);function e(t){var n=this,i=t||{},a=i.condition?i.condition:Jg;return n=r.call(this,{condition:a,className:i.className||"ol-dragzoom",minArea:i.minArea})||this,n.duration_=i.duration!==void 0?i.duration:200,n.out_=i.out!==void 0?i.out:!1,n}return e.prototype.onBoxEnd=function(t){var n=this.getMap(),i=n.getView(),a=this.getGeometry();if(this.out_){var o=i.rotatedExtentForGeometry(a),s=i.getResolutionForExtentInternal(o),A=i.getResolution()/s;a=a.clone(),a.scale(A*A)}i.fitInternal(a,{duration:this.duration_,easing:ts})},e}(Jq),r3=e3,gc={LEFT:37,UP:38,RIGHT:39,DOWN:40},n3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),i3=function(r){n3(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.defaultCondition_=function(a){return iw(a)&&AF(a)},n.condition_=i.condition!==void 0?i.condition:n.defaultCondition_,n.duration_=i.duration!==void 0?i.duration:100,n.pixelDelta_=i.pixelDelta!==void 0?i.pixelDelta:128,n}return e.prototype.handleEvent=function(t){var n=!1;if(t.type==ye.KEYDOWN){var i=t.originalEvent,a=i.keyCode;if(this.condition_(t)&&(a==gc.DOWN||a==gc.LEFT||a==gc.RIGHT||a==gc.UP)){var o=t.map,s=o.getView(),A=s.getResolution()*this.pixelDelta_,l=0,u=0;a==gc.DOWN?u=-A:a==gc.LEFT?l=-A:a==gc.RIGHT?l=A:u=A;var c=[l,u];QI(c,s.getRotation()),Iq(s,c,this.duration_),i.preventDefault(),n=!0}}return!n},e}(Kp),a3=i3,o3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),s3=function(r){o3(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.condition_=i.condition?i.condition:AF,n.delta_=i.delta?i.delta:1,n.duration_=i.duration!==void 0?i.duration:100,n}return e.prototype.handleEvent=function(t){var n=!1;if(t.type==ye.KEYDOWN||t.type==ye.KEYPRESS){var i=t.originalEvent,a=i.charCode;if(this.condition_(t)&&(a=="+".charCodeAt(0)||a=="-".charCodeAt(0))){var o=t.map,s=a=="+".charCodeAt(0)?this.delta_:-this.delta_,A=o.getView();iF(A,s,void 0,this.duration_),i.preventDefault(),n=!0}}return!n},e}(Kp),A3=s3,l3=function(){function r(e,t,n){this.decay_=e,this.minVelocity_=t,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return r.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},r.prototype.update=function(e,t){this.points_.push(e,t,Date.now())},r.prototype.end=function(){if(this.points_.length<6)return!1;var e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]0&&this.points_[n+2]>e;)n-=3;var i=this.points_[t+2]-this.points_[n+2];if(i<1e3/60)return!1;var a=this.points_[t]-this.points_[n],o=this.points_[t+1]-this.points_[n+1];return this.angle_=Math.atan2(o,a),this.initialVelocity_=Math.sqrt(a*a+o*o)/i,this.initialVelocity_>this.minVelocity_},r.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},r.prototype.getAngle=function(){return this.angle_},r}(),u3=l3,c3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),yC={TRACKPAD:"trackpad",WHEEL:"wheel"},h3=function(r){c3(e,r);function e(t){var n=this,i=t||{};n=r.call(this,i)||this,n.totalDelta_=0,n.lastDelta_=0,n.maxDelta_=i.maxDelta!==void 0?i.maxDelta:1,n.duration_=i.duration!==void 0?i.duration:250,n.timeout_=i.timeout!==void 0?i.timeout:80,n.useAnchor_=i.useAnchor!==void 0?i.useAnchor:!0,n.constrainResolution_=i.constrainResolution!==void 0?i.constrainResolution:!1;var a=i.condition?i.condition:rw;return n.condition_=i.onFocusOnly?b_(oF,a):a,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.deltaPerZoom_=300,n}return e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap().getView();t.endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var n=t.type;if(n!==ye.WHEEL)return!0;var i=t.map,a=t.originalEvent;a.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate);var o;if(t.type==ye.WHEEL&&(o=a.deltaY,yY&&a.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(o/=uh),a.deltaMode===WheelEvent.DOM_DELTA_LINE&&(o*=40)),o===0)return!1;this.lastDelta_=o;var s=Date.now();this.startTime_===void 0&&(this.startTime_=s),(!this.mode_||s-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(o)<4?yC.TRACKPAD:yC.WHEEL);var A=i.getView();if(this.mode_===yC.TRACKPAD&&!(A.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(A.getAnimating()&&A.cancelAnimations(),A.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),A.adjustZoom(-o/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=s,!1;this.totalDelta_+=o;var l=Math.max(this.timeout_-(s-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),l),!1},e.prototype.handleWheelZoom_=function(t){var n=t.getView();n.getAnimating()&&n.cancelAnimations();var i=-xn(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(n.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),iF(n,i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(Kp),f3=h3,p3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),d3=function(r){p3(e,r);function e(t){var n=this,i=t||{},a=i;return a.stopDown||(a.stopDown=Ch),n=r.call(this,a)||this,n.anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=i.threshold!==void 0?i.threshold:.3,n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleDragEvent=function(t){var n=0,i=this.targetPointers[0],a=this.targetPointers[1],o=Math.atan2(a.clientY-i.clientY,a.clientX-i.clientX);if(this.lastAngle_!==void 0){var s=o-this.lastAngle_;this.rotationDelta_+=s,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),n=s}this.lastAngle_=o;var A=t.map,l=A.getView();if(l.getConstraints().rotation!==KI){var u=A.getViewport().getBoundingClientRect(),c=aF(this.targetPointers);c[0]-=u.left,c[1]-=u.top,this.anchor_=A.getCoordinateFromPixelInternal(c),this.rotating_&&(A.render(),l.adjustRotationInternal(n,this.anchor_))}},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var n=t.map,i=n.getView();return i.endInteraction(this.duration_),!1}else return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var n=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||n.getView().beginInteraction(),!0}else return!1},e}(Po),v3=d3,g3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),y3=function(r){g3(e,r);function e(t){var n=this,i=t||{},a=i;return a.stopDown||(a.stopDown=Ch),n=r.call(this,a)||this,n.anchor_=null,n.duration_=i.duration!==void 0?i.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return e.prototype.handleDragEvent=function(t){var n=1,i=this.targetPointers[0],a=this.targetPointers[1],o=i.clientX-a.clientX,s=i.clientY-a.clientY,A=Math.sqrt(o*o+s*s);this.lastDistance_!==void 0&&(n=this.lastDistance_/A),this.lastDistance_=A;var l=t.map,u=l.getView();n!=1&&(this.lastScaleDelta_=n);var c=l.getViewport().getBoundingClientRect(),h=aF(this.targetPointers);h[0]-=c.left,h[1]-=c.top,this.anchor_=l.getCoordinateFromPixelInternal(h),l.render(),u.adjustResolutionInternal(n,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var n=t.map,i=n.getView(),a=this.lastScaleDelta_>1?1:-1;return i.endInteraction(this.duration_,a),!1}else return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var n=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||n.getView().beginInteraction(),!0}else return!1},e}(Po),m3=y3,Cs={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"},_3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),w3=function(r){_3(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,i)||this,n.condition_=i.condition?i.condition:Jg,n.lastAngle_=void 0,n.lastMagnitude_=void 0,n.lastScaleDelta_=0,n.duration_=i.duration!==void 0?i.duration:400,n}return e.prototype.handleDragEvent=function(t){if(qc(t)){var n=t.map,i=n.getSize(),a=t.pixel,o=a[0]-i[0]/2,s=i[1]/2-a[1],A=Math.atan2(s,o),l=Math.sqrt(o*o+s*s),u=n.getView();if(this.lastAngle_!==void 0){var c=this.lastAngle_-A;u.adjustRotationInternal(c)}this.lastAngle_=A,this.lastMagnitude_!==void 0&&u.adjustResolutionInternal(this.lastMagnitude_/l),this.lastMagnitude_!==void 0&&(this.lastScaleDelta_=this.lastMagnitude_/l),this.lastMagnitude_=l}},e.prototype.handleUpEvent=function(t){if(!qc(t))return!0;var n=t.map,i=n.getView(),a=this.lastScaleDelta_>1?1:-1;return i.endInteraction(this.duration_,a),this.lastScaleDelta_=0,!1},e.prototype.handleDownEvent=function(t){return qc(t)&&this.condition_(t)?(t.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0,!0):!1},e}(Po),E3=w3,C3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),MQ=function(r){C3(e,r);function e(t,n,i){var a=r.call(this)||this;if(i!==void 0&&n===void 0)a.setFlatCoordinates(i,t);else{var o=n||0;a.setCenterAndRadius(t,o,i)}return a}return e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,n,i,a){var o=this.flatCoordinates,s=t-o[0],A=n-o[1],l=s*s+A*A;if(l=i[0]||t[1]<=i[1]&&t[3]>=i[1]?!0:X1(t,this.intersectsCoordinate.bind(this))}return!1},e.prototype.setCenter=function(t){var n=this.stride,i=this.flatCoordinates[n]-this.flatCoordinates[0],a=t.slice();a[n]=a[0]+i;for(var o=1;o1?o:2,B=a||new Array(E),p=0;p>1;it;){if(n-t>600){var a=n-t+1,o=e-t+1,s=Math.log(a),A=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*A*(a-A)/a)*(o-a/2<0?-1:1),u=Math.max(t,Math.floor(e-o*A/a+l)),c=Math.min(n,Math.floor(e+(a-o)*A/a+l));UQ(r,e,u,c,i)}var h=r[e],f=t,p=n;for($d(r,t,e),i(r[n],h)>0&&$d(r,t,n);f0;)p--}i(r[t],h)===0?$d(r,t,p):(p++,$d(r,p,n)),p<=e&&(t=p+1),e<=p&&(n=p-1)}}function $d(r,e,t){var n=r[e];r[e]=r[t],r[t]=n}function U3(r,e){return re?1:0}class DQ{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(e){let t=this.data;const n=[];if(!bm(e,t))return n;const i=this.toBBox,a=[];for(;t;){for(let o=0;o=0&&a[t].children.length>this._maxEntries;)this._split(a,t),t--;this._adjustParentBBoxes(i,a,t)}_split(e,t){const n=e[t],i=n.children.length,a=this._minEntries;this._chooseSplitAxis(n,a,i);const o=this._chooseSplitIndex(n,a,i),s=Mf(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,hf(n,this.toBBox),hf(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)}_splitRoot(e,t){this.data=Mf([e,t]),this.data.height=e.height+1,this.data.leaf=!1,hf(this.data,this.toBBox)}_chooseSplitIndex(e,t,n){let i,a=1/0,o=1/0;for(let s=t;s<=n-t;s++){const A=hv(e,0,s,this.toBBox),l=hv(e,s,n,this.toBBox),u=k3(A,l),c=mC(A)+mC(l);u=t;l--){const u=e.children[l];fv(s,e.leaf?a(u):u),A+=xm(s)}return A}_adjustParentBBoxes(e,t,n){for(let i=n;i>=0;i--)fv(t[i],e)}_condense(e){for(let t=e.length-1,n;t>=0;t--)e[t].children.length===0?t>0?(n=e[t-1].children,n.splice(n.indexOf(e[t]),1)):this.clear():hf(e[t],this.toBBox)}}function D3(r,e,t){if(!t)return e.indexOf(r);for(let n=0;n=r.minX&&e.maxY>=r.minY}function Mf(r){return{children:r,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function wM(r,e,t,n,i){const a=[e,t];for(;a.length;){if(t=a.pop(),e=a.pop(),t-e<=n)continue;const o=e+Math.ceil((t-e)/n/2)*n;P3(r,o,e,t,i),a.push(e,o,o,t)}}var $e={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4},$3=function(){function r(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=Pi(e.scale),this.displacement_=e.displacement}return r.prototype.clone=function(){var e=this.getScale();return new r({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()})},r.prototype.getOpacity=function(){return this.opacity_},r.prototype.getRotateWithView=function(){return this.rotateWithView_},r.prototype.getRotation=function(){return this.rotation_},r.prototype.getScale=function(){return this.scale_},r.prototype.getScaleArray=function(){return this.scaleArray_},r.prototype.getDisplacement=function(){return this.displacement_},r.prototype.getAnchor=function(){return Be()},r.prototype.getImage=function(e){return Be()},r.prototype.getHitDetectionImage=function(){return Be()},r.prototype.getPixelRatio=function(e){return 1},r.prototype.getImageState=function(){return Be()},r.prototype.getImageSize=function(){return Be()},r.prototype.getOrigin=function(){return Be()},r.prototype.getSize=function(){return Be()},r.prototype.setDisplacement=function(e){this.displacement_=e},r.prototype.setOpacity=function(e){this.opacity_=e},r.prototype.setRotateWithView=function(e){this.rotateWithView_=e},r.prototype.setRotation=function(e){this.rotation_=e},r.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=Pi(e)},r.prototype.listenImageChange=function(e){Be()},r.prototype.load=function(){Be()},r.prototype.unlistenImageChange=function(e){Be()},r}(),QQ=$3;function Js(r){return Array.isArray(r)?z6(r):r}var V3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),j3=function(r){V3(e,r);function e(t){var n=this,i=t.rotateWithView!==void 0?t.rotateWithView:!1;return n=r.call(this,{opacity:1,rotateWithView:i,rotation:t.rotation!==void 0?t.rotation:0,scale:t.scale!==void 0?t.scale:1,displacement:t.displacement!==void 0?t.displacement:[0,0]})||this,n.canvas_=void 0,n.hitDetectionCanvas_=null,n.fill_=t.fill!==void 0?t.fill:null,n.origin_=[0,0],n.points_=t.points,n.radius_=t.radius!==void 0?t.radius:t.radius1,n.radius2_=t.radius2,n.angle_=t.angle!==void 0?t.angle:0,n.stroke_=t.stroke!==void 0?t.stroke:null,n.size_=null,n.renderOptions_=null,n.render(),n}return e.prototype.clone=function(){var t=this.getScale(),n=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice()});return n.setOpacity(this.getOpacity()),n},e.prototype.getAnchor=function(){var t=this.size_;if(!t)return null;var n=this.getDisplacement();return[t[0]/2-n[0],t[1]/2+n[1]]},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},e.prototype.getImage=function(t){var n=this.canvas_[t];if(!n){var i=this.renderOptions_,a=ja(i.size*t,i.size*t);this.draw_(i,a,t),n=a.canvas,this.canvas_[t]=n}return n},e.prototype.getPixelRatio=function(t){return t},e.prototype.getImageSize=function(){return this.size_},e.prototype.getImageState=function(){return $e.LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.calculateLineJoinSize_=function(t,n,i){if(n===0||this.points_===1/0||t!=="bevel"&&t!=="miter")return n;var a=this.radius_,o=this.radius2_===void 0?a:this.radius2_;if(aA&&(this.instructions.push([Qe.CUSTOM,A,u,t,i,qA]),this.hitDetectionInstructions.push([Qe.CUSTOM,A,u,t,a||i,qA]));break;case st.POINT:l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),u=this.coordinates.length,this.instructions.push([Qe.CUSTOM,A,u,t,i]),this.hitDetectionInstructions.push([Qe.CUSTOM,A,u,t,a||i]);break}this.endGeometry(n)},e.prototype.beginGeometry=function(t,n){this.beginGeometryInstruction1_=[Qe.BEGIN_GEOMETRY,n,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[Qe.BEGIN_GEOMETRY,n,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t=this.hitDetectionInstructions;t.reverse();var n,i=t.length,a,o,s=-1;for(n=0;nthis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0},e.prototype.createFill=function(t){var n=t.fillStyle,i=[Qe.SET_FILL_STYLE,n];return typeof n!="string"&&i.push(!0),i},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[Qe.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,n){var i=t.fillStyle;(typeof i!="string"||t.currentFillStyle!=i)&&(i!==void 0&&this.instructions.push(n.call(this,t)),t.currentFillStyle=i)},e.prototype.updateStrokeStyle=function(t,n){var i=t.strokeStyle,a=t.lineCap,o=t.lineDash,s=t.lineDashOffset,A=t.lineJoin,l=t.lineWidth,u=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=a||o!=t.currentLineDash&&!yl(t.currentLineDash,o)||t.currentLineDashOffset!=s||t.currentLineJoin!=A||t.currentLineWidth!=l||t.currentMiterLimit!=u)&&(i!==void 0&&n.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=a,t.currentLineDash=o,t.currentLineDashOffset=s,t.currentLineJoin=A,t.currentLineWidth=l,t.currentMiterLimit=u)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var n=[Qe.END_GEOMETRY,t];this.instructions.push(n),this.hitDetectionInstructions.push(n)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=LI(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Va(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(HQ),ry=rZ,nZ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),iZ=function(r){nZ(e,r);function e(t,n,i,a){var o=r.call(this,t,n,i,a)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterImageWithText_=void 0,o}return e.prototype.drawPoint=function(t,n){if(this.image_){this.beginGeometry(t,n);var i=t.getFlatCoordinates(),a=t.getStride(),o=this.coordinates.length,s=this.appendFlatPointCoordinates(i,a);this.instructions.push([Qe.DRAW_IMAGE,o,s,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([Qe.DRAW_IMAGE,o,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(n)}},e.prototype.drawMultiPoint=function(t,n){if(this.image_){this.beginGeometry(t,n);var i=t.getFlatCoordinates(),a=t.getStride(),o=this.coordinates.length,s=this.appendFlatPointCoordinates(i,a);this.instructions.push([Qe.DRAW_IMAGE,o,s,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([Qe.DRAW_IMAGE,o,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(n)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,r.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,n){var i=t.getAnchor(),a=t.getSize(),o=t.getHitDetectionImage(),s=t.getImage(this.pixelRatio),A=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=o,this.image_=s,this.height_=a[1],this.opacity_=t.getOpacity(),this.originX_=A[0]*this.imagePixelRatio_,this.originY_=A[1]*this.imagePixelRatio_,this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=a[0],this.declutterImageWithText_=n},e}(ry),aZ=iZ,oZ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),sZ=function(r){oZ(e,r);function e(t,n,i,a){return r.call(this,t,n,i,a)||this}return e.prototype.drawFlatCoordinates_=function(t,n,i,a){var o=this.coordinates.length,s=this.appendFlatLineCoordinates(t,n,i,a,!1,!1),A=[Qe.MOVE_TO_LINE_TO,o,s];return this.instructions.push(A),this.hitDetectionInstructions.push(A),i},e.prototype.drawLineString=function(t,n){var i=this.state,a=i.strokeStyle,o=i.lineWidth;if(!(a===void 0||o===void 0)){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,n),this.hitDetectionInstructions.push([Qe.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,ug,cg],Qc);var s=t.getFlatCoordinates(),A=t.getStride();this.drawFlatCoordinates_(s,0,s.length,A),this.hitDetectionInstructions.push(uu),this.endGeometry(n)}},e.prototype.drawMultiLineString=function(t,n){var i=this.state,a=i.strokeStyle,o=i.lineWidth;if(!(a===void 0||o===void 0)){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,n),this.hitDetectionInstructions.push([Qe.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],Qc);for(var s=t.getEnds(),A=t.getFlatCoordinates(),l=t.getStride(),u=0,c=0,h=s.length;cr&&(A>s&&(s=A,a=l,o=c),A=0,l=c-i)),h=f,m=_,g=E),p=B,v=L}return A+=f,A>s?[l,c]:[a,o]}var hZ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),F_={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},fZ=function(r){hZ(e,r);function e(t,n,i,a){var o=r.call(this,t,n,i,a)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return e.prototype.finish=function(){var t=r.prototype.finish.call(this);return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t},e.prototype.drawText=function(t,n){var i=this.textFillState_,a=this.textStrokeState_,o=this.textState_;if(!(this.text_===""||!o||!i&&!a)){var s=this.coordinates,A=s.length,l=t.getType(),u=null,c=t.getStride();if(o.placement===GQ.LINE&&(l==st.LINE_STRING||l==st.MULTI_LINE_STRING||l==st.POLYGON||l==st.MULTI_POLYGON)){if(!Mn(this.getBufferedMaxExtent(),t.getExtent()))return;var h=void 0;if(u=t.getFlatCoordinates(),l==st.LINE_STRING)h=[u.length];else if(l==st.MULTI_LINE_STRING)h=t.getEnds();else if(l==st.POLYGON)h=t.getEnds().slice(0,1);else if(l==st.MULTI_POLYGON){var f=t.getEndss();h=[];for(var p=0,v=f.length;pS[2]}else x=B>I;var N=Math.PI,P=[],X=O+n===e;e=O,m=0,g=b,h=r[e],f=r[e+1];var z;if(X){_(),z=Math.atan2(f-v,h-p),x&&(z+=z>0?-N:N);var tt=(I+B)/2,J=(M+L)/2;return P[0]=[tt,J,(T-a)/2,z,i],P}for(var nt=0,it=i.length;nt0?-N:N),z!==void 0){var R=_t-z;if(R+=R>N?-2*N:R<-N?2*N:0,Math.abs(R)>o)return null}z=_t;for(var $=nt,K=0;nt0&&r.push(` -`,""),r.push(e,""),r}var TZ=function(){function r(e,t,n,i){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=oi(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={}}return r.prototype.createLabel=function(e,t,n,i){var a=e+t+n+i;if(this.labels_[a])return this.labels_[a];var o=i?this.strokeStates[i]:null,s=n?this.fillStates[n]:null,A=this.textStates[t],l=this.pixelRatio,u=[A.scale[0]*l,A.scale[1]*l],c=Array.isArray(e),h=xM(c?e[0]:e,A.textAlign||pg),f=i&&o.lineWidth?o.lineWidth:0,p=c?e:e.split(` -`).reduce(BZ,[]),v=gX(A,p),m=v.width,g=v.height,_=v.widths,E=v.heights,B=v.lineWidths,L=m+f,O=[],b=(L+2)*u[0],T=(g+f)*u[1],I={width:b<0?Math.floor(b):Math.ceil(b),height:T<0?Math.floor(T):Math.ceil(T),contextInstructions:O};if((u[0]!=1||u[1]!=1)&&O.push("scale",u),i){O.push("strokeStyle",o.strokeStyle),O.push("lineWidth",f),O.push("lineCap",o.lineCap),O.push("lineJoin",o.lineJoin),O.push("miterLimit",o.miterLimit);var M=K1?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;M.prototype.setLineDash&&(O.push("setLineDash",[o.lineDash]),O.push("lineDashOffset",o.lineDashOffset))}n&&O.push("fillStyle",s.fillStyle),O.push("textBaseline","middle"),O.push("textAlign","center");for(var x=.5-h,S=h*L+x*f,N=[],P=[],X=0,z=0,tt=0,J=0,nt,it=0,_t=p.length;it<_t;it+=2){var R=p[it];if(R===` -`){z+=X,X=0,S=h*L+x*f,++J;continue}var $=p[it+1]||A.font;$!==nt&&(i&&N.push("font",$),n&&P.push("font",$),nt=$),X=Math.max(X,E[tt]);var K=[R,S+x*_[tt]+h*(_[tt]-B[J]),.5*(f+X)+z];S+=_[tt],i&&N.push("strokeText",K),n&&P.push("fillText",K),++tt}return Array.prototype.push.apply(O,N),Array.prototype.push.apply(O,P),this.labels_[a]=I,I},r.prototype.replayTextBackground_=function(e,t,n,i,a,o,s){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,n),e.lineTo.apply(e,i),e.lineTo.apply(e,a),e.lineTo.apply(e,t),o&&(this.alignFill_=o[2],this.fill_(e)),s&&(this.setStrokeStyle_(e,s),e.stroke())},r.prototype.calculateImageOrLabelDimensions_=function(e,t,n,i,a,o,s,A,l,u,c,h,f,p,v,m){s*=h[0],A*=h[1];var g=n-s,_=i-A,E=a+l>e?e-l:a,B=o+u>t?t-u:o,L=p[3]+E*h[0]+p[1],O=p[0]+B*h[1]+p[2],b=g-p[3],T=_-p[0];(v||c!==0)&&(Kl[0]=b,zl[0]=b,Kl[1]=T,RA[1]=T,RA[0]=b+L,MA[0]=RA[0],MA[1]=T+O,zl[1]=MA[1]);var I;return c!==0?(I=$a(oi(),n,i,1,1,c,-n,-i),un(I,Kl),un(I,RA),un(I,MA),un(I,zl),uo(Math.min(Kl[0],RA[0],MA[0],zl[0]),Math.min(Kl[1],RA[1],MA[1],zl[1]),Math.max(Kl[0],RA[0],MA[0],zl[0]),Math.max(Kl[1],RA[1],MA[1],zl[1]),ff)):uo(Math.min(b,b+L),Math.min(T,T+O),Math.max(b,b+L),Math.max(T,T+O),ff),f&&(g=Math.round(g),_=Math.round(_)),{drawImageX:g,drawImageY:_,drawImageW:E,drawImageH:B,originX:l,originY:u,declutterBox:{minX:ff[0],minY:ff[1],maxX:ff[2],maxY:ff[3],value:m},canvasTransform:I,scale:h}},r.prototype.replayImageOrLabel_=function(e,t,n,i,a,o,s){var A=!!(o||s),l=i.declutterBox,u=e.canvas,c=s?s[2]*i.scale[0]/2:0,h=l.minX-c<=u.width/t&&l.maxX+c>=0&&l.minY-c<=u.height/t&&l.maxY+c>=0;return h&&(A&&this.replayTextBackground_(e,Kl,RA,MA,zl,o,s),yX(e,i.canvasTransform,a,n,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0},r.prototype.fill_=function(e){if(this.alignFill_){var t=un(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;e.save(),e.translate(t[0]%n,t[1]%n),e.rotate(this.viewRotation_)}e.fill(),this.alignFill_&&e.restore()},r.prototype.setStrokeStyle_=function(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.setLineDash&&(e.lineDashOffset=t[7],e.setLineDash(t[6]))},r.prototype.drawLabelWithPointPlacement_=function(e,t,n,i){var a=this.textStates[t],o=this.createLabel(e,t,i,n),s=this.strokeStates[n],A=this.pixelRatio,l=xM(Array.isArray(e)?e[0]:e,a.textAlign||pg),u=F_[a.textBaseline||w_],c=s&&s.lineWidth?s.lineWidth:0,h=o.width/A-2*a.scale[0],f=l*h+2*(.5-l)*c,p=u*o.height/A+2*(.5-u)*c;return{label:o,anchorX:f,anchorY:p}},r.prototype.execute_=function(e,t,n,i,a,o,s,A){var l;this.pixelCoordinates_&&yl(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=Tu(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),TY(this.renderedTransform_,n));for(var u=0,c=i.length,h=0,f,p,v,m,g,_,E,B,L,O,b,T,I=0,M=0,x=null,S=null,N=this.coordinateCache_,P=this.viewRotation_,X=Math.round(Math.atan2(-n[1],n[0])*1e12)/1e12,z={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:P},tt=this.instructions!=i||this.overlaps?0:200,J,nt,it,_t;utt&&(this.fill_(e),I=0),M>tt&&(e.stroke(),M=0),!I&&!M&&(e.beginPath(),m=NaN,g=NaN),++u;break;case Qe.CIRCLE:h=R[1];var K=l[h],q=l[h+1],at=l[h+2],vt=l[h+3],wt=at-K,W=vt-q,It=Math.sqrt(wt*wt+W*W);e.moveTo(K+It,q),e.arc(K,q,It,0,2*Math.PI,!0),++u;break;case Qe.CLOSE_PATH:e.closePath(),++u;break;case Qe.CUSTOM:h=R[1],f=R[2];var Ot=R[3],j=R[4],Z=R.length==6?R[5]:void 0;z.geometry=Ot,z.feature=J,u in N||(N[u]=[]);var ut=N[u];Z?Z(l,h,f,2,ut):(ut[0]=l[h],ut[1]=l[h+1],ut.length=2),j(ut,z),++u;break;case Qe.DRAW_IMAGE:h=R[1],f=R[2],B=R[3],p=R[4],v=R[5];var rt=R[6],G=R[7],xt=R[8],bt=R[9],dt=R[10],Et=R[11],yt=R[12],St=R[13],Ft=R[14];if(!B&&R.length>=19){L=R[18],O=R[19],b=R[20],T=R[21];var Mt=this.drawLabelWithPointPlacement_(L,O,b,T);B=Mt.label,R[3]=B;var Vt=R[22];p=(Mt.anchorX-Vt)*this.pixelRatio,R[4]=p;var Yt=R[23];v=(Mt.anchorY-Yt)*this.pixelRatio,R[5]=v,rt=B.height,R[6]=rt,St=B.width,R[13]=St}var ie=void 0;R.length>24&&(ie=R[24]);var ee=void 0,Xt=void 0,oe=void 0;R.length>16?(ee=R[15],Xt=R[16],oe=R[17]):(ee=Uc,Xt=!1,oe=!1),dt&&X?Et+=P:!dt&&!X&&(Et-=P);for(var Kt=0;h0){if(!o||f!==Ar.IMAGE&&f!==Ar.TEXT||o.indexOf(O)!==-1){var x=(h[I]-3)/4,S=i-x%s,N=i-(x/s|0),P=a(O,b,S*S+N*N);if(P)return P}u.clearRect(0,0,s,s);break}}var v=Object.keys(this.executorsByZIndex_).map(Number);v.sort(Nu);var m,g,_,E,B;for(m=v.length-1;m>=0;--m){var L=v[m].toString();for(_=this.executorsByZIndex_[L],g=EC.length-1;g>=0;--g)if(f=EC[g],E=_[f],E!==void 0&&(B=E.executeHitDetection(u,A,n,p,c),B))return B}},r.prototype.getClipCoords=function(e){var t=this.maxExtent_;if(!t)return null;var n=t[0],i=t[1],a=t[2],o=t[3],s=[n,i,n,o,a,o,a,i];return Tu(s,0,8,2,e,s),s},r.prototype.isEmpty=function(){return hh(this.executorsByZIndex_)},r.prototype.execute=function(e,t,n,i,a,o,s){var A=Object.keys(this.executorsByZIndex_).map(Number);A.sort(Nu),this.maxExtent_&&(e.save(),this.clip(e,n));var l=o||EC,u,c,h,f,p,v;for(s&&A.reverse(),u=0,c=A.length;ut)break;var s=n[o];s||(s=[],n[o]=s),s.push(((r+i)*e+(r+a))*4+3),i>0&&s.push(((r-i)*e+(r+a))*4+3),a>0&&(s.push(((r+i)*e+(r-a))*4+3),i>0&&s.push(((r-i)*e+(r-a))*4+3))}for(var A=[],i=0,l=n.length;i0,6);var c=i.src!==void 0?$e.IDLE:$e.LOADED;return n.color_=i.color!==void 0?Du(i.color):null,n.iconImage_=UZ(l,u,n.imgSize_!==void 0?n.imgSize_:null,n.crossOrigin_,c,n.color_),n.offset_=i.offset!==void 0?i.offset:[0,0],n.offsetOrigin_=i.offsetOrigin!==void 0?i.offsetOrigin:Li.TOP_LEFT,n.origin_=null,n.size_=i.size!==void 0?i.size:null,n}return e.prototype.clone=function(){var t=this.getScale();return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(t)?t.slice():t,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc()})},e.prototype.getAnchor=function(){var t=this.normalizedAnchor_;if(!t){t=this.anchor_;var n=this.getSize();if(this.anchorXUnits_==Ua.FRACTION||this.anchorYUnits_==Ua.FRACTION){if(!n)return null;t=this.anchor_.slice(),this.anchorXUnits_==Ua.FRACTION&&(t[0]*=n[0]),this.anchorYUnits_==Ua.FRACTION&&(t[1]*=n[1])}if(this.anchorOrigin_!=Li.TOP_LEFT){if(!n)return null;t===this.anchor_&&(t=this.anchor_.slice()),(this.anchorOrigin_==Li.TOP_RIGHT||this.anchorOrigin_==Li.BOTTOM_RIGHT)&&(t[0]=-t[0]+n[0]),(this.anchorOrigin_==Li.BOTTOM_LEFT||this.anchorOrigin_==Li.BOTTOM_RIGHT)&&(t[1]=-t[1]+n[1])}this.normalizedAnchor_=t}var i=this.getDisplacement();return[t[0]-i[0],t[1]+i[1]]},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=Li.TOP_LEFT){var n=this.getSize(),i=this.iconImage_.getSize();if(!n||!i)return null;t=t.slice(),(this.offsetOrigin_==Li.TOP_RIGHT||this.offsetOrigin_==Li.BOTTOM_RIGHT)&&(t[0]=i[0]-n[0]-t[0]),(this.offsetOrigin_==Li.BOTTOM_LEFT||this.offsetOrigin_==Li.BOTTOM_RIGHT)&&(t[1]=i[1]-n[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(ye.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(ye.CHANGE,t)},e}(QQ),ny=QZ,HZ="#333",GZ=function(){function r(e){var t=e||{};this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=Pi(t.scale!==void 0?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.textBaseline_=t.textBaseline,this.fill_=t.fill!==void 0?t.fill:new Aa({color:HZ}),this.maxAngle_=t.maxAngle!==void 0?t.maxAngle:Math.PI/4,this.placement_=t.placement!==void 0?t.placement:GQ.POINT,this.overflow_=!!t.overflow,this.stroke_=t.stroke!==void 0?t.stroke:null,this.offsetX_=t.offsetX!==void 0?t.offsetX:0,this.offsetY_=t.offsetY!==void 0?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=t.padding===void 0?null:t.padding}return r.prototype.clone=function(){var e=this.getScale();return new r({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})},r.prototype.getOverflow=function(){return this.overflow_},r.prototype.getFont=function(){return this.font_},r.prototype.getMaxAngle=function(){return this.maxAngle_},r.prototype.getPlacement=function(){return this.placement_},r.prototype.getOffsetX=function(){return this.offsetX_},r.prototype.getOffsetY=function(){return this.offsetY_},r.prototype.getFill=function(){return this.fill_},r.prototype.getRotateWithView=function(){return this.rotateWithView_},r.prototype.getRotation=function(){return this.rotation_},r.prototype.getScale=function(){return this.scale_},r.prototype.getScaleArray=function(){return this.scaleArray_},r.prototype.getStroke=function(){return this.stroke_},r.prototype.getText=function(){return this.text_},r.prototype.getTextAlign=function(){return this.textAlign_},r.prototype.getTextBaseline=function(){return this.textBaseline_},r.prototype.getBackgroundFill=function(){return this.backgroundFill_},r.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},r.prototype.getPadding=function(){return this.padding_},r.prototype.setOverflow=function(e){this.overflow_=e},r.prototype.setFont=function(e){this.font_=e},r.prototype.setMaxAngle=function(e){this.maxAngle_=e},r.prototype.setOffsetX=function(e){this.offsetX_=e},r.prototype.setOffsetY=function(e){this.offsetY_=e},r.prototype.setPlacement=function(e){this.placement_=e},r.prototype.setRotateWithView=function(e){this.rotateWithView_=e},r.prototype.setFill=function(e){this.fill_=e},r.prototype.setRotation=function(e){this.rotation_=e},r.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=Pi(e!==void 0?e:1)},r.prototype.setStroke=function(e){this.stroke_=e},r.prototype.setText=function(e){this.text_=e},r.prototype.setTextAlign=function(e){this.textAlign_=e},r.prototype.setTextBaseline=function(e){this.textBaseline_=e},r.prototype.setBackgroundFill=function(e){this.backgroundFill_=e},r.prototype.setBackgroundStroke=function(e){this.backgroundStroke_=e},r.prototype.setPadding=function(e){this.padding_=e},r}(),bh=GZ,Io=.5;function jQ(r,e,t,n,i,a,o){var s=r[0]*Io,A=r[1]*Io,l=ja(s,A);l.imageSmoothingEnabled=!1;for(var u=l.canvas,c=new fF(l,Io,i,null,o),h=t.length,f=Math.floor((256*256*256-1)/h),p={},v=1;v<=h;++v){var m=t[v-1],g=m.getStyleFunction()||n;if(n){var _=g(m,a);if(_){Array.isArray(_)||(_=[_]);for(var E=v*f,B="#"+("000000"+E.toString(16)).slice(-6),L=0,O=_.length;Lv[2];)++_,E=g*_,c.push(this.getRenderTransform(a,o,s,Io,h,f,E).slice()),m-=g}this.hitDetectionImageData_=jQ(i,c,this.renderedFeatures_,u.getStyleFunction(),l,o,s)}n(KQ(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,n,i,a,o){var s=this;if(this.replayGroup_){var A=n.viewState.resolution,l=n.viewState.rotation,u=this.getLayer(),c={},h=function(v,m,g){var _=pe(v),E=c[_];if(E){if(E!==!0&&gL[0]&&T[2]>L[2]&&B.push([T[0]-O,T[1],T[2]-O,T[3]])}if(!this.dirty_&&this.renderedResolution_==h&&this.renderedRevision_==p&&this.renderedRenderOrder_==m&&Fo(this.wrappedRenderedExtent_,_))return yl(this.renderedExtent_,E)||(this.hitDetectionImageData_=null,this.renderedExtent_=E),this.renderedCenter_=g,this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var I=new L_(tS(h,f),_,h,f),M;this.getLayer().getDeclutter()&&(M=new L_(tS(h,f),_,h,f));for(var x,S,N,S=0,N=B.length;S=200&&s.status<300){var l=e.getType(),u=void 0;l==Cs.JSON||l==Cs.TEXT?u=s.responseText:l==Cs.XML?(u=s.responseXML,u||(u=new DOMParser().parseFromString(s.responseText,"application/xml"))):l==Cs.ARRAY_BUFFER&&(u=s.response),u?a(e.readFeatures(u,{extent:t,featureProjection:i}),e.readProjection(u)):o()}else o()},s.onerror=o,s.send()}function IM(r,e){return function(t,n,i,a,o){var s=this;cJ(r,e,t,n,i,function(A,l){s.addFeatures(A),a!==void 0&&a(A)},o||lh)}}var qQ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Yl=function(r){qQ(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.feature=n,a.features=i,a}return e}(fo),hJ=function(r){qQ(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{attributions:i.attributions,interpolate:!0,projection:void 0,state:Da.READY,wrapX:i.wrapX!==void 0?i.wrapX:!0})||this,n.on,n.once,n.un,n.loader_=lh,n.format_=i.format,n.overlaps_=i.overlaps===void 0?!0:i.overlaps,n.url_=i.url,i.loader!==void 0?n.loader_=i.loader:n.url_!==void 0&&(_e(n.format_,7),n.loader_=IM(n.url_,n.format_)),n.strategy_=i.strategy!==void 0?i.strategy:WQ;var a=i.useSpatialIndex!==void 0?i.useSpatialIndex:!0;n.featuresRtree_=a?new M_:null,n.loadedExtentsRtree_=new M_,n.loadingExtentsCount_=0,n.nullGeometryFeatures_={},n.idIndex_={},n.uidIndex_={},n.featureChangeKeys_={},n.featuresCollection_=null;var o,s;return Array.isArray(i.features)?s=i.features:i.features&&(o=i.features,s=o.getArray()),!a&&o===void 0&&(o=new si(s)),s!==void 0&&n.addFeaturesInternal(s),o!==void 0&&n.bindFeaturesCollection_(o),n}return e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var n=pe(t);if(!this.addToIndex_(n,t)){this.featuresCollection_&&this.featuresCollection_.remove(t);return}this.setupChangeEvents_(n,t);var i=t.getGeometry();if(i){var a=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(a,t)}else this.nullGeometryFeatures_[n]=t;this.dispatchEvent(new Yl(Oi.ADDFEATURE,t))},e.prototype.setupChangeEvents_=function(t,n){this.featureChangeKeys_[t]=[Pe(n,ye.CHANGE,this.handleFeatureChange_,this),Pe(n,ch.PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,n){var i=!0,a=n.getId();return a!==void 0&&(a.toString()in this.idIndex_?i=!1:this.idIndex_[a.toString()]=n),i&&(_e(!(t in this.uidIndex_),30),this.uidIndex_[t]=n),i},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var n=[],i=[],a=[],o=0,s=t.length;o0},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),r.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var n=this.loadedExtentsRtree_,i;n.forEachInExtent(t,function(a){if(AA(a.extent,t))return i=a,!0}),i&&n.remove(i)},e.prototype.removeFeature=function(t){if(t){var n=pe(t);n in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[n]:this.featuresRtree_&&this.featuresRtree_.remove(t);var i=this.removeFeatureInternal(t);i&&this.changed()}},e.prototype.removeFeatureInternal=function(t){var n=pe(t),i=this.featureChangeKeys_[n];if(i){i.forEach(Rr),delete this.featureChangeKeys_[n];var a=t.getId();return a!==void 0&&delete this.idIndex_[a.toString()],delete this.uidIndex_[n],this.dispatchEvent(new Yl(Oi.REMOVEFEATURE,t)),t}},e.prototype.removeFromIdIndex_=function(t){var n=!1;for(var i in this.idIndex_)if(this.idIndex_[i]===t){delete this.idIndex_[i],n=!0;break}return n},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){_e(this.format_,7),this.url_=t,this.setLoader(IM(t,this.format_))},e}(ow),_l=hJ,ZQ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),xr={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon",CIRCLE:"Circle"},Fm={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"},Lm=function(r){ZQ(e,r);function e(t,n){var i=r.call(this,t)||this;return i.feature=n,i}return e}(fo),fJ=function(r){ZQ(e,r);function e(t){var n=this,i=t;i.stopDown||(i.stopDown=Ch),n=r.call(this,i)||this,n.on,n.once,n.un,n.shouldHandle_=!1,n.downPx_=null,n.downTimeout_,n.lastDragTime_,n.pointerType_,n.freehand_=!1,n.source_=t.source?t.source:null,n.features_=t.features?t.features:null,n.snapTolerance_=t.snapTolerance?t.snapTolerance:12,n.type_=t.type,n.mode_=dJ(n.type_),n.stopClick_=!!t.stopClick,n.minPoints_=t.minPoints?t.minPoints:n.mode_===xr.POLYGON?3:2,n.maxPoints_=n.mode_===xr.CIRCLE?2:t.maxPoints?t.maxPoints:1/0,n.finishCondition_=t.finishCondition?t.finishCondition:iA;var a=t.geometryFunction;if(!a){var o=n.mode_;if(o===xr.CIRCLE)a=function(A,l,u){var c=l||new uF([NaN,NaN]),h=Tn(A[0]),f=el(h,Tn(A[A.length-1]));return c.setCenterAndRadius(h,Math.sqrt(f)),c};else{var s;o===xr.POINT?s=fr:o===xr.LINE_STRING?s=Hr:o===xr.POLYGON&&(s=bn),a=function(A,l,u){return l?o===xr.POLYGON?A[0].length?l.setCoordinates([A[0].concat([A[0][0]])]):l.setCoordinates([]):l.setCoordinates(A):l=new s(A),l}}}return n.geometryFunction_=a,n.dragVertexDelay_=t.dragVertexDelay!==void 0?t.dragVertexDelay:500,n.finishCoordinate_=null,n.sketchFeature_=null,n.sketchPoint_=null,n.sketchCoords_=null,n.sketchLine_=null,n.sketchLineCoords_=null,n.squaredClickTolerance_=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,n.overlay_=new hA({source:new _l({useSpatialIndex:!1,wrapX:t.wrapX?t.wrapX:!1}),style:t.style?t.style:pJ(),updateWhileInteracting:!0}),n.geometryName_=t.geometryName,n.condition_=t.condition?t.condition:iw,n.freehandCondition_,t.freehand?n.freehandCondition_=rw:n.freehandCondition_=t.freehandCondition?t.freehandCondition:Jg,n.addChangeListener(qT.ACTIVE,n.updateState_),n}return e.prototype.setMap=function(t){r.prototype.setMap.call(this,t),this.updateState_()},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleEvent=function(t){t.originalEvent.type===ye.CONTEXTMENU&&t.originalEvent.preventDefault(),this.freehand_=this.mode_!==xr.POINT&&this.freehandCondition_(t);var n=t.type===ar.POINTERMOVE,i=!0;if(!this.freehand_&&this.lastDragTime_&&t.type===ar.POINTERDRAG){var a=Date.now();a-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,n=!0):this.lastDragTime_=void 0,this.shouldHandle_&&this.downTimeout_!==void 0&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&t.type===ar.POINTERDRAG&&this.sketchFeature_!==null?(this.addToDrawing_(t.coordinate),i=!1):this.freehand_&&t.type===ar.POINTERDOWN?i=!1:n&&this.getPointerCount()<2?(i=t.type===ar.POINTERMOVE,i&&this.freehand_?(this.handlePointerMove_(t),this.shouldHandle_&&t.originalEvent.preventDefault()):(t.originalEvent.pointerType==="mouse"||t.type===ar.POINTERDRAG&&this.downTimeout_===void 0)&&this.handlePointerMove_(t)):t.type===ar.DBLCLICK&&(i=!1),r.prototype.handleEvent.call(this,t)&&i},e.prototype.handleDownEvent=function(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t.coordinate),!0):this.condition_(t)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new KA(ar.POINTERMOVE,t.map,t.originalEvent,!1,t.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=t.pixel,!0):(this.lastDragTime_=void 0,!1)},e.prototype.handleUpEvent=function(t){var n=!0;if(this.getPointerCount()===0)if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(t),this.shouldHandle_){var i=!this.finishCoordinate_;i&&this.startDrawing_(t.coordinate),!i&&this.freehand_?this.finishDrawing():!this.freehand_&&(!i||this.mode_===xr.POINT)&&(this.atFinish_(t.pixel)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t.coordinate)),n=!1}else this.freehand_&&this.abortDrawing();return!n&&this.stopClick_&&t.preventDefault(),n},e.prototype.handlePointerMove_=function(t){if(this.pointerType_=t.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var n=this.downPx_,i=t.pixel,a=n[0]-i[0],o=n[1]-i[1],s=a*a+o*o;if(this.shouldHandle_=this.freehand_?s>this.squaredClickTolerance_:s<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(t.coordinate):this.createOrUpdateSketchPoint_(t.coordinate.slice())},e.prototype.atFinish_=function(t){var n=!1;if(this.sketchFeature_){var i=!1,a=[this.finishCoordinate_],o=this.mode_;if(o===xr.POINT)n=!0;else if(o===xr.CIRCLE)n=this.sketchCoords_.length===2;else if(o===xr.LINE_STRING)i=this.sketchCoords_.length>this.minPoints_;else if(o===xr.POLYGON){var s=this.sketchCoords_;i=s[0].length>this.minPoints_,a=[s[0][0],s[0][s[0].length-2]]}if(i)for(var A=this.getMap(),l=0,u=a.length;l=this.maxPoints_&&(this.freehand_?o.pop():a=!0),o.push(t.slice()),this.geometryFunction_(o,n,i)):s===xr.POLYGON&&(o=this.sketchCoords_[0],o.length>=this.maxPoints_&&(this.freehand_?o.pop():a=!0),o.push(t.slice()),a&&(this.finishCoordinate_=o[0]),this.geometryFunction_(this.sketchCoords_,n,i)),this.createOrUpdateSketchPoint_(t.slice()),this.updateSketchFeatures_(),a&&this.finishDrawing()},e.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),i,a=this.mode_;if(a===xr.LINE_STRING||a===xr.CIRCLE){if(i=this.sketchCoords_,i.splice(-2,1),i.length>=2){this.finishCoordinate_=i[i.length-2].slice();var o=this.finishCoordinate_.slice();i[i.length-1]=o,this.createOrUpdateSketchPoint_(o)}this.geometryFunction_(i,t,n),t.getType()===st.POLYGON&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(a===xr.POLYGON){i=this.sketchCoords_[0],i.splice(-2,1);var s=this.sketchLine_.getGeometry();if(i.length>=2){var o=i[i.length-2].slice();i[i.length-1]=o,this.createOrUpdateSketchPoint_(o)}s.setCoordinates(i),this.geometryFunction_(this.sketchCoords_,t,n)}i.length===1&&this.abortDrawing(),this.updateSketchFeatures_()}},e.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(t){var n=this.sketchCoords_,i=t.getGeometry(),a=this.getMap().getView().getProjection();this.mode_===xr.LINE_STRING?(n.pop(),this.geometryFunction_(n,i,a)):this.mode_===xr.POLYGON&&(n[0].pop(),this.geometryFunction_(n,i,a),n=i.getCoordinates()),this.type_===st.MULTI_POINT?t.setGeometry(new es([n])):this.type_===st.MULTI_LINE_STRING?t.setGeometry(new xa([n])):this.type_===st.MULTI_POLYGON&&t.setGeometry(new ba([n])),this.dispatchEvent(new Lm(Fm.DRAWEND,t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t)}},e.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var t=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),t},e.prototype.abortDrawing=function(){var t=this.abortDrawing_();t&&this.dispatchEvent(new Lm(Fm.DRAWABORT,t))},e.prototype.appendCoordinates=function(t){var n=this.mode_,i=!this.sketchFeature_;i&&this.startDrawing_(t[0]);var a;if(n===xr.LINE_STRING||n===xr.CIRCLE)a=this.sketchCoords_;else if(n===xr.POLYGON)a=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[];else return;i&&a.shift(),a.pop();for(var o=0;o=0;--a){for(var o=i[a],s=this.dragSegments_.length-1;s>=0;--s)this.dragSegments_[s][0]===o&&this.dragSegments_.splice(s,1);n.remove(o)}},e.prototype.setActive=function(t){this.vertexFeature_&&!t&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),r.prototype.setActive.call(this,t)},e.prototype.setMap=function(t){this.overlay_.setMap(t),r.prototype.setMap.call(this,t)},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleSourceAdd_=function(t){t.feature&&this.features_.push(t.feature)},e.prototype.handleSourceRemove_=function(t){t.feature&&this.features_.remove(t.feature)},e.prototype.handleFeatureAdd_=function(t){this.addFeature_(t.element)},e.prototype.handleFeatureChange_=function(t){if(!this.changingFeature_){var n=t.target;this.removeFeature_(n),this.addFeature_(n)}},e.prototype.handleFeatureRemove_=function(t){var n=t.element;this.removeFeature_(n)},e.prototype.writePointGeometry_=function(t,n){var i=n.getCoordinates(),a={feature:t,geometry:n,segment:[i,i]};this.rBush_.insert(n.getExtent(),a)},e.prototype.writeMultiPointGeometry_=function(t,n){for(var i=n.getCoordinates(),a=0,o=i.length;a=0;--_)this.insertVertex_(o[_],s)}return!!this.vertexFeature_},e.prototype.handleUpEvent=function(t){for(var n=this.dragSegments_.length-1;n>=0;--n){var i=this.dragSegments_[n][0],a=i.geometry;if(a.getType()===st.CIRCLE){var o=a.getCenter(),s=i.featureSegments[0],A=i.featureSegments[1];s.segment[0]=o,s.segment[1]=o,A.segment[0]=o,A.segment[1]=o,this.rBush_.update(zc(o),s);var l=a,u=ph();if(u){var c=t.map.getView().getProjection();l=l.clone().transform(u,c),l=mQ(l).transform(c,u)}this.rBush_.update(l.getExtent(),A)}else this.rBush_.update(Yi(i.segment),i)}return this.featuresBeingModified_&&(this.dispatchEvent(new TC(BC.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null),!1},e.prototype.handlePointerMove_=function(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.pixel,t.map,t.coordinate)},e.prototype.handlePointerAtPixel_=function(t,n,i){var a=this,o=i||n.getCoordinateFromPixel(t),s=n.getView().getProjection(),A=function(P,X){return OM(o,P,s)-OM(o,X,s)},l,u;if(this.hitDetection_){var c=typeof this.hitDetection_=="object"?function(P){return P===a.hitDetection_}:void 0;n.forEachFeatureAtPixel(t,function(P,X,z){if(z=z||P.getGeometry(),z.getType()===st.POINT&&yi(a.features_.getArray(),P)){u=z;var tt=z.getFlatCoordinates().slice(0,2);l=[{feature:P,geometry:z,segment:[tt,tt]}]}return!0},{layerFilter:c})}if(!l){var h=Lo(zc(o,LM)),f=n.getView().getResolution()*this.pixelTolerance_,p=q1(Va(h,f,LM));l=this.rBush_.getInExtent(p)}if(l&&l.length>0){var v=l.sort(A)[0],m=v.segment,g=RM(o,v,s),_=n.getPixelFromCoordinate(g),E=ZR(t,_);if(u||E<=this.pixelTolerance_){var B={};if(B[pe(m)]=!0,this.snapToPointer_||(this.delta_[0]=g[0]-o[0],this.delta_[1]=g[1]-o[1]),v.geometry.getType()===st.CIRCLE&&v.index===Dv)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(g,[v.feature],[v.geometry]);else{var L=n.getPixelFromCoordinate(m[0]),O=n.getPixelFromCoordinate(m[1]),b=el(_,L),T=el(_,O);E=Math.sqrt(Math.min(b,T)),this.snappedToVertex_=E<=this.pixelTolerance_,this.snappedToVertex_&&(g=b>T?m[1]:m[0]),this.createOrUpdateVertexFeature_(g,[v.feature],[v.geometry]);var I={};I[pe(v.geometry)]=!0;for(var M=1,x=l.length;M=0;--l)s=t[l],p=s[0],v=pe(p.feature),p.depth&&(v+="-"+p.depth.join("-")),v in n||(n[v]={}),s[1]===0?(n[v].right=p,n[v].index=p.index):s[1]==1&&(n[v].left=p,n[v].index=p.index+1);for(v in n){switch(f=n[v].right,c=n[v].left,u=n[v].index,h=u-1,c!==void 0?p=c:p=f,h<0&&(h=0),A=p.geometry,o=A.getCoordinates(),a=o,i=!1,A.getType()){case st.MULTI_LINE_STRING:o[p.depth[0]].length>2&&(o[p.depth[0]].splice(u,1),i=!0);break;case st.LINE_STRING:o.length>2&&(o.splice(u,1),i=!0);break;case st.MULTI_POLYGON:a=a[p.depth[1]];case st.POLYGON:a=a[p.depth[0]],a.length>4&&(u==a.length-1&&(u=0),a.splice(u,1),i=!0,u===0&&(a.pop(),a.push(a[0]),h=a.length-1));break}if(i){this.setGeometryCoordinates_(A,o);var m=[];if(c!==void 0&&(this.rBush_.remove(c),m.push(c.segment[0])),f!==void 0&&(this.rBush_.remove(f),m.push(f.segment[1])),c!==void 0&&f!==void 0){var g={depth:p.depth,feature:p.feature,geometry:p.geometry,index:h,segment:m};this.rBush_.insert(Yi(g.segment),g)}this.updateSegmentIndices_(A,u,p.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.length=0}}return i},e.prototype.setGeometryCoordinates_=function(t,n){this.changingFeature_=!0,t.setCoordinates(n),this.changingFeature_=!1},e.prototype.updateSegmentIndices_=function(t,n,i,a){this.rBush_.forEachInExtent(t.getExtent(),function(o){o.geometry===t&&(i===void 0||o.depth===void 0||yl(o.depth,i))&&o.index>n&&(o.index+=a)})},e}(Po);function gJ(r,e){return r.index-e.index}function OM(r,e,t){var n=e.geometry;if(n.getType()===st.CIRCLE){var i=n;if(e.index===Dv){var a=ph();a&&(i=i.clone().transform(a,t));var o=el(i.getCenter(),Tn(r)),s=Math.sqrt(o)-i.getRadius();return s*s}}var A=Tn(r);return lp[0]=Tn(e.segment[0]),lp[1]=Tn(e.segment[1]),rX(A,lp)}function RM(r,e,t){var n=e.geometry;if(n.getType()===st.CIRCLE&&e.index===Dv){var i=n,a=ph();return a&&(i=i.clone().transform(a,t)),xp(i.getClosestPoint(Tn(r)))}var o=Tn(r);return lp[0]=Tn(e.segment[0]),lp[1]=Tn(e.segment[1]),xp(DI(o,lp))}function yJ(){var r=cF();return function(e,t){return r[st.POINT]}}var vF=vJ,t4=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),mJ={SELECT:"select"},_J=function(r){t4(e,r);function e(t,n,i,a){var o=r.call(this,t)||this;return o.selected=n,o.deselected=i,o.mapBrowserEvent=a,o}return e}(fo),Om={},wJ=function(r){t4(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un;var i=t||{};n.boundAddFeature_=n.addFeature_.bind(n),n.boundRemoveFeature_=n.removeFeature_.bind(n),n.condition_=i.condition?i.condition:nw,n.addCondition_=i.addCondition?i.addCondition:ZT,n.removeCondition_=i.removeCondition?i.removeCondition:ZT,n.toggleCondition_=i.toggleCondition?i.toggleCondition:Jg,n.multi_=i.multi?i.multi:!1,n.filter_=i.filter?i.filter:iA,n.hitTolerance_=i.hitTolerance?i.hitTolerance:0,n.style_=i.style!==void 0?i.style:EJ(),n.features_=i.features||new si;var a;if(i.layers)if(typeof i.layers=="function")a=i.layers;else{var o=i.layers;a=function(s){return yi(o,s)}}else a=iA;return n.layerFilter_=a,n.featureLayerAssociation_={},n}return e.prototype.addFeatureLayerAssociation_=function(t,n){this.featureLayerAssociation_[pe(t)]=n},e.prototype.getFeatures=function(){return this.features_},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.getLayer=function(t){return this.featureLayerAssociation_[pe(t)]},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(t){var n=this.getMap();n&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),r.prototype.setMap.call(this,t),t?(this.features_.addEventListener(kn.ADD,this.boundAddFeature_),this.features_.addEventListener(kn.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(kn.ADD,this.boundAddFeature_),this.features_.removeEventListener(kn.REMOVE,this.boundRemoveFeature_))},e.prototype.addFeature_=function(t){var n=t.element;if(this.style_&&this.applySelectedStyle_(n),!this.getLayer(n)){var i=this.getMap().getAllLayers().find(function(a){if(a instanceof hA&&a.getSource()&&a.getSource().hasFeature(n))return a});i&&this.addFeatureLayerAssociation_(n,i)}},e.prototype.removeFeature_=function(t){var n=t.element;this.style_&&this.restorePreviousStyle_(n)},e.prototype.getStyle=function(){return this.style_},e.prototype.applySelectedStyle_=function(t){var n=pe(t);n in Om||(Om[n]=t.getStyle()),t.setStyle(this.style_)},e.prototype.restorePreviousStyle_=function(t){for(var n=this.getMap().getInteractions().getArray(),i=n.length-1;i>=0;--i){var a=n[i];if(a!==this&&a instanceof e&&a.getStyle()&&a.getFeatures().getArray().lastIndexOf(t)!==-1){t.setStyle(a.getStyle());return}}var o=pe(t);t.setStyle(Om[o]),delete Om[o]},e.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[pe(t)]},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var n=this.addCondition_(t),i=this.removeCondition_(t),a=this.toggleCondition_(t),o=!n&&!i&&!a,s=t.map,A=this.getFeatures(),l=[],u=[];if(o){Bh(this.featureLayerAssociation_),s.forEachFeatureAtPixel(t.pixel,function(v,m){if(this.filter_(v,m))return this.addFeatureLayerAssociation_(v,m),u.push(v),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var c=A.getLength()-1;c>=0;--c){var h=A.item(c),f=u.indexOf(h);f>-1?u.splice(f,1):(A.remove(h),l.push(h))}u.length!==0&&A.extend(u)}else{s.forEachFeatureAtPixel(t.pixel,function(v,m){if(this.filter_(v,m))return(n||a)&&!yi(A.getArray(),v)?(this.addFeatureLayerAssociation_(v,m),u.push(v)):(i||a)&&yi(A.getArray(),v)&&(l.push(v),this.removeFeatureLayerAssociation_(v)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var p=l.length-1;p>=0;--p)A.remove(l[p]);A.extend(u)}return(u.length>0||l.length>0)&&this.dispatchEvent(new _J(mJ.SELECT,u,l,t)),!0},e}(Kp);function EJ(){var r=cF();return Qr(r[st.POLYGON],r[st.LINE_STRING]),Qr(r[st.GEOMETRY_COLLECTION],r[st.LINE_STRING]),function(e){return e.getGeometry()?r[e.getGeometry().getType()]:null}}var sw=wJ,CJ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();function MM(r){if(r.feature)return r.feature;if(r.element)return r.element}var SC=[],BJ=function(r){CJ(e,r);function e(t){var n=this,i=t||{},a=i;return a.handleDownEvent||(a.handleDownEvent=iA),a.stopDown||(a.stopDown=Ch),n=r.call(this,a)||this,n.source_=i.source?i.source:null,n.vertex_=i.vertex!==void 0?i.vertex:!0,n.edge_=i.edge!==void 0?i.edge:!0,n.features_=i.features?i.features:null,n.featuresListenerKeys_=[],n.featureChangeListenerKeys_={},n.indexedFeaturesExtents_={},n.pendingFeatures_={},n.pixelTolerance_=i.pixelTolerance!==void 0?i.pixelTolerance:10,n.rBush_=new M_,n.GEOMETRY_SEGMENTERS_={Point:n.segmentPointGemetry_.bind(n),LineString:n.segmentLineStringGemetry_.bind(n),LinearRing:n.segmentLineStringGemetry_.bind(n),Polygon:n.segmentPolygonGemetry_.bind(n),MultiPoint:n.segmentMultiPointGemetry_.bind(n),MultiLineString:n.segmentMultiLineStringGemetry_.bind(n),MultiPolygon:n.segmentMultiPolygonGemetry_.bind(n),GeometryCollection:n.segmentGeometryCollectionGemetry_.bind(n),Circle:n.segmentCircleGemetry_.bind(n)},n}return e.prototype.addFeature=function(t,n){var i=n!==void 0?n:!0,a=pe(t),o=t.getGeometry();if(o){var s=this.GEOMETRY_SEGMENTERS_[o.getType()];if(s){this.indexedFeaturesExtents_[a]=o.getExtent(_i());var A=[];if(s(A,o),A.length===1)this.rBush_.insert(Yi(A[0]),{feature:t,segment:A[0]});else if(A.length>1){var l=A.map(function(c){return Yi(c)}),u=A.map(function(c){return{feature:t,segment:c}});this.rBush_.load(l,u)}}}i&&(this.featureChangeListenerKeys_[a]=Pe(t,ye.CHANGE,this.handleFeatureChange_,this))},e.prototype.forEachFeatureAdd_=function(t){this.addFeature(t)},e.prototype.forEachFeatureRemove_=function(t){this.removeFeature(t)},e.prototype.getFeatures_=function(){var t;return this.features_?t=this.features_:this.source_&&(t=this.source_.getFeatures()),t},e.prototype.handleEvent=function(t){var n=this.snapTo(t.pixel,t.coordinate,t.map);return n&&(t.coordinate=n.vertex.slice(0,2),t.pixel=n.vertexPixel),r.prototype.handleEvent.call(this,t)},e.prototype.handleFeatureAdd_=function(t){var n=MM(t);this.addFeature(n)},e.prototype.handleFeatureRemove_=function(t){var n=MM(t);this.removeFeature(n)},e.prototype.handleFeatureChange_=function(t){var n=t.target;if(this.handlingDownUpSequence){var i=pe(n);i in this.pendingFeatures_||(this.pendingFeatures_[i]=n)}else this.updateFeature_(n)},e.prototype.handleUpEvent=function(t){var n=PI(this.pendingFeatures_);return n.length&&(n.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1},e.prototype.removeFeature=function(t,n){var i=n!==void 0?n:!0,a=pe(t),o=this.indexedFeaturesExtents_[a];if(o){var s=this.rBush_,A=[];s.forEachInExtent(o,function(u){t===u.feature&&A.push(u)});for(var l=A.length-1;l>=0;--l)s.remove(A[l])}i&&(Rr(this.featureChangeListenerKeys_[a]),delete this.featureChangeListenerKeys_[a])},e.prototype.setMap=function(t){var n=this.getMap(),i=this.featuresListenerKeys_,a=this.getFeatures_();n&&(i.forEach(Rr),i.length=0,a.forEach(this.forEachFeatureRemove_.bind(this))),r.prototype.setMap.call(this,t),t&&(this.features_?i.push(Pe(this.features_,kn.ADD,this.handleFeatureAdd_,this),Pe(this.features_,kn.REMOVE,this.handleFeatureRemove_,this)):this.source_&&i.push(Pe(this.source_,Oi.ADDFEATURE,this.handleFeatureAdd_,this),Pe(this.source_,Oi.REMOVEFEATURE,this.handleFeatureRemove_,this)),a.forEach(this.forEachFeatureAdd_.bind(this)))},e.prototype.snapTo=function(t,n,i){var a=i.getCoordinateFromPixel([t[0]-this.pixelTolerance_,t[1]+this.pixelTolerance_]),o=i.getCoordinateFromPixel([t[0]+this.pixelTolerance_,t[1]-this.pixelTolerance_]),s=Yi([a,o]),A=this.rBush_.getInExtent(s),l=A.length;if(l===0)return null;var u=i.getView().getProjection(),c=Tn(n),h,f=1/0,p=this.pixelTolerance_*this.pixelTolerance_,v=function(){if(h){var M=i.getPixelFromCoordinate(h),x=el(t,M);if(x<=p)return{vertex:h,vertexPixel:[Math.round(M[0]),Math.round(M[1])]}}return null};if(this.vertex_){for(var m=0;m{t[i]=t[i].value});const n=Hg(Un({},t));return he(r,()=>{t=Lu(r),Object.keys(t).forEach(i=>{n[i]!=t[i].value&&!e.includes(i)&&(n[i]=t[i].value)})}),{properties:n}}var le=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t};const IJ={name:"ol-map",setup(r,{emit:e}){const{properties:t}=vr(r),n=Gn(null);let i=new Aw(t);he(t,()=>{i.setProperties(t)}),Ze(()=>{i.setTarget(n.value)}),ir(()=>{i.setTarget(null),i=null}),Mr("map",i);const a=()=>i.focus(),o=(h,f,p={})=>i.forEachFeatureAtPixel(h,f,p),s=(h,f,p)=>i.forEachLayerAtPixel(h,f,p),A=h=>i.getCoordinateFromPixel(h),l=()=>i.refresh(),u=()=>i.render(),c=()=>i.updateSize();return i.on("click",h=>e("click",h)),i.on("dblclick",h=>e("dblclick",h)),i.on("singleclick",h=>e("singleclick",h)),i.on("pointerdrag",h=>e("pointerdrag",h)),i.on("pointermove",h=>e("pointermove",h)),i.on("movestart",h=>e("movestart",h)),i.on("moveend",h=>e("moveend",h)),i.on("postrender",h=>e("postrender",h)),i.on("precompose",h=>e("precompose",h)),i.on("postcompose",h=>e("postcompose",h)),{map:i,mapRef:n,focus:a,forEachFeatureAtPixel:o,forEachLayerAtPixel:s,getCoordinateFromPixel:A,refresh:l,render:u,updateSize:c}},props:{loadTilesWhileAnimating:{type:Boolean,default:!1},loadTilesWhileInteracting:{type:Boolean,default:!1},moveTolerance:{type:Number,default:1},pixelRatio:{type:Number,default:1},controls:{type:Array,default:()=>[]}}};function FJ(r,e,t,n,i,a){return cn(),Vn("div",{ref:o=>n.mapRef=o},[mr(r.$slots,"default")],512)}var eS=le(IJ,[["render",FJ]]);function LJ(r,e){const t=Ce("map"),{properties:n}=vr(r),i=()=>Os(Un({},n),{projection:typeof n.projection=="string"?n.projection:new ml(Un({},n.projection))});let a=new qs(i());Ze(()=>{t.setView(a)}),a.on("change:center",()=>{e("centerChanged",L()),e("zoomChanged",it())}),a.on("change:resolution",()=>e("resolutionChanged",P())),a.on("change:rotation",()=>e("rotationChanged",nt())),he(n,()=>{let W=i();a.setProperties(W),a.applyOptions_(W)});const o=W=>a.adjustCenter(W),s=(W,It)=>a.adjustResolution(W,It),A=(W,It)=>a.adjustRotation(W,It),l=(W,It)=>a.adjustZoom(W,It),u=W=>a.animate(W),c=()=>a.beginInteraction(),h=W=>a.calculateExtent(W),f=()=>a.cancelAnimations(),p=(W,It,Ot)=>a.centerOn(W,It,Ot),v=()=>a.changed(),m=W=>a.dispatchEvent(W),g=(W,It,Ot)=>a.endInteraction(W,It,Ot),_=(W,It)=>a.fit(W,It),E=W=>a.get(W),B=()=>a.getAnimating(),L=()=>a.getCenter(),O=()=>a.getInteracting(),b=()=>a.getKeys(),T=()=>a.getMaxResolution(),I=()=>a.getMaxZoom(),M=()=>a.getMinResolution(),x=()=>a.getMinZoom(),S=()=>a.getProjection(),N=()=>a.getProperties(),P=()=>a.getResolution(),X=(W,It)=>a.getResolutionForExtent(W,It),z=W=>a.getResolutionForZoom(W),tt=()=>a.getResolutions(),J=()=>a.getRevision(),nt=()=>a.getRotation(),it=()=>a.getZoom();return{view:a,adjustCenter:o,adjustResolution:s,adjustRotation:A,adjustZoom:l,animate:u,beginInteraction:c,calculateExtent:h,cancelAnimations:f,centerOn:p,changed:v,dispatchEvent:m,endInteraction:g,fit:_,get:E,getAnimating:B,getCenter:L,getInteracting:O,getKeys:b,getMaxResolution:T,getMaxZoom:I,getMinResolution:M,getMinZoom:x,getProjection:S,getProperties:N,getResolution:P,getResolutionForExtent:X,getResolutionForZoom:z,getResolutions:tt,getRevision:J,getRotation:nt,getZoom:it,getZoomForResolution:W=>a.getZoomForResolution(W),setCenter:W=>a.setCenter(W),setConstrainResolution:W=>a.setConstrainResolution(W),setMaxZoom:W=>a.setMaxZoom(W),setMinZoom:W=>a.setMinZoom(W),setResolution:W=>a.setResolution(W),setRotation:W=>a.setRotation(W),setZoom:W=>a.setZoom(W)}}const OJ={name:"ol-view",setup(r,{emit:e}){const t=LJ(r,e);return Un({},t)},props:{center:{type:Array,default:()=>[0,0]},constrainRotation:{type:Boolean,default:!0},enableRotation:{type:Boolean,default:!0},extent:{type:Array},constrainOnlyCenter:{type:Boolean,default:!1},smoothExtentConstraint:{type:Boolean,default:!0},maxResolution:{type:Number},minResolution:{type:Number},maxZoom:{type:Number,default:28},minZoom:{type:Number,default:0},multiWorld:{type:Boolean,default:!1},constrainResolution:{type:Boolean,default:!1},smoothResolutionConstraint:{type:Boolean,default:!0},showFullExtent:{type:Boolean,default:!1},projection:{type:[String,Object],default:"EPSG:3857"},resolution:{type:Number},resolutions:{type:Array},rotation:{type:Number},zoom:{type:Number,default:0},zoomFactor:{type:Number,default:2},padding:{type:Array,default:()=>[0,0,0,0]}}};function RJ(r,e,t,n,i,a){return dr("",!0)}var rS=le(OJ,[["render",RJ]]);const MJ={name:"ol-feature",setup(r){const e=Ce("vectorSource"),t=Ce("vectorLayer"),n=Ce("animation",null),{properties:i}=vr(r);let a=hr(()=>new or(Un({},i.properties)));return he(a,(o,s)=>{e.value.removeFeature(s),e.value.addFeature(o),e.value.changed()}),he(e,(o,s)=>{s.removeFeature(a.value),o.addFeature(a.value),o.changed()}),Ze(()=>{e.value.addFeature(a.value),n!=null&&t.value.animateFeature(a.value,n.value)}),ir(()=>{e.value.removeFeature(a.value)}),Mr("feature",a),Mr("stylable",a),{feature:a}},props:{properties:{type:[Z1,Object,Array]}}};function NJ(r,e,t,n,i,a){return mr(r.$slots,"default")}var nS=le(MJ,[["render",NJ]]);function PJ(r,e){const t=Ce("map"),n=Gn(null),{properties:i}=vr(r);let a=hr(()=>new bQ(i));Ze(()=>{t.addOverlay(a.value)}),ir(()=>{t.removeOverlay(a.value)}),he(a,(v,m)=>{t.removeOverlay(m),t.addOverlay(v)}),lD(()=>{c(n.value)},{flush:"post"}),a.value.on("change:element",()=>e("elementChanged",o())),a.value.on("change:offset",()=>e("offsetChanged",s())),a.value.on("change:position",()=>e("positionChanged",A())),a.value.on("change:positioning",()=>e("positioningChanged",l()));const o=()=>a.value.getElement(),s=()=>a.value.getOffset(),A=()=>a.value.getPosition(),l=()=>a.value.getPositioning(),u=v=>a.value.panIntoView(v),c=v=>a.value.setElement(v);return{overlay:a,htmlContent:n,getOffset:s,getPosition:A,getPositioning:l,panIntoView:u,setElement:c,setOffset:v=>a.value.setOffset(v),setPosition:v=>a.value.setPosition(v),setPositioning:v=>a.value.setPositioning(v)}}const UJ={name:"ol-overlay",setup(r,{emit:e}){const t=new PJ(r,e);return Un({},t)},props:{position:{type:Array},offset:{type:Array},positioning:{type:String},stopEvent:{type:Boolean,default:!0},insertFirst:{type:Boolean,default:!0},autoPan:{type:Boolean,default:!1},autoPanMargin:{type:Number,default:20},autoPanAnimation:{type:Object,default:void 0}}},DJ={ref:"htmlContent"};function QJ(r,e,t,n,i,a){return cn(),Vn("div",DJ,[mr(r.$slots,"default",{position:t.position})],512)}var iS=le(UJ,[["render",QJ]]),e4=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),On={ACCURACY:"accuracy",ACCURACY_GEOMETRY:"accuracyGeometry",ALTITUDE:"altitude",ALTITUDE_ACCURACY:"altitudeAccuracy",HEADING:"heading",POSITION:"position",PROJECTION:"projection",SPEED:"speed",TRACKING:"tracking",TRACKING_OPTIONS:"trackingOptions"},HJ=function(r){e4(e,r);function e(t){var n=r.call(this,ye.ERROR)||this;return n.code=t.code,n.message=t.message,n}return e}(fo),GJ=function(r){e4(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un;var i=t||{};return n.position_=null,n.transform_=W1,n.watchId_=void 0,n.addChangeListener(On.PROJECTION,n.handleProjectionChanged_),n.addChangeListener(On.TRACKING,n.handleTrackingChanged_),i.projection!==void 0&&n.setProjection(i.projection),i.trackingOptions!==void 0&&n.setTrackingOptions(i.trackingOptions),n.setTracking(i.tracking!==void 0?i.tracking:!1),n}return e.prototype.disposeInternal=function(){this.setTracking(!1),r.prototype.disposeInternal.call(this)},e.prototype.handleProjectionChanged_=function(){var t=this.getProjection();t&&(this.transform_=fh(Oe("EPSG:4326"),t),this.position_&&this.set(On.POSITION,this.transform_(this.position_)))},e.prototype.handleTrackingChanged_=function(){if("geolocation"in navigator){var t=this.getTracking();t&&this.watchId_===void 0?this.watchId_=navigator.geolocation.watchPosition(this.positionChange_.bind(this),this.positionError_.bind(this),this.getTrackingOptions()):!t&&this.watchId_!==void 0&&(navigator.geolocation.clearWatch(this.watchId_),this.watchId_=void 0)}},e.prototype.positionChange_=function(t){var n=t.coords;this.set(On.ACCURACY,n.accuracy),this.set(On.ALTITUDE,n.altitude===null?void 0:n.altitude),this.set(On.ALTITUDE_ACCURACY,n.altitudeAccuracy===null?void 0:n.altitudeAccuracy),this.set(On.HEADING,n.heading===null?void 0:Cu(n.heading)),this.position_?(this.position_[0]=n.longitude,this.position_[1]=n.latitude):this.position_=[n.longitude,n.latitude];var i=this.transform_(this.position_);this.set(On.POSITION,i),this.set(On.SPEED,n.speed===null?void 0:n.speed);var a=UW(this.position_,n.accuracy);a.applyTransform(this.transform_),this.set(On.ACCURACY_GEOMETRY,a),this.changed()},e.prototype.positionError_=function(t){this.dispatchEvent(new HJ(t))},e.prototype.getAccuracy=function(){return this.get(On.ACCURACY)},e.prototype.getAccuracyGeometry=function(){return this.get(On.ACCURACY_GEOMETRY)||null},e.prototype.getAltitude=function(){return this.get(On.ALTITUDE)},e.prototype.getAltitudeAccuracy=function(){return this.get(On.ALTITUDE_ACCURACY)},e.prototype.getHeading=function(){return this.get(On.HEADING)},e.prototype.getPosition=function(){return this.get(On.POSITION)},e.prototype.getProjection=function(){return this.get(On.PROJECTION)},e.prototype.getSpeed=function(){return this.get(On.SPEED)},e.prototype.getTracking=function(){return this.get(On.TRACKING)},e.prototype.getTrackingOptions=function(){return this.get(On.TRACKING_OPTIONS)},e.prototype.setProjection=function(t){this.set(On.PROJECTION,Oe(t))},e.prototype.setTracking=function(t){this.set(On.TRACKING,t)},e.prototype.setTrackingOptions=function(t){this.set(On.TRACKING_OPTIONS,t)},e}(li),kJ=GJ;const $J={name:"ol-geolocation",emits:["positionChanged","speedChanged","headingChanged","altitudeChanged","altitudeAccuracyChanged","accuracyGeometryChanged"],setup(r,{emit:e}){const{properties:t}=vr(r);let n=hr(()=>{let h=new kJ(t);return h.on("change",c),h});const i=Gn([]),a=Gn(0),o=Gn(0),s=Gn(0),A=Gn(0),l=Gn(0),u=Gn({});he(i,()=>{e("positionChanged",i.value)}),he(A,()=>{e("speedChanged",A.value)}),he(l,()=>{e("headingChanged",l.value)}),he(o,()=>{e("altitudeChanged",o.value)}),he(s,()=>{e("altitudeAccuracyChanged",s.value)}),he(u,()=>{e("accuracyGeometryChanged",u.value)});const c=()=>{i.value=n.value.getPosition(),A.value=n.value.getSpeed(),l.value=n.value.getHeading(),a.value=n.value.getAccuracy(),o.value=n.value.getAltitude(),s.value=n.value.getAltitudeAccuracy(),u.value=n.value.getAccuracyGeometry()};return he(n,(h,f)=>{f.un("change",c),h.on("change",c)}),{geoLoc:n,position:i,accuracy:a,altitude:o,altitudeAccuracy:s,speed:A,heading:l,accuracyGeometry:u}},props:{projection:{type:[String,Object],default:"EPSG:3857"},tracking:{type:Boolean,default:!0},trackingOptions:{type:Object,default:()=>({enableHighAccuracy:!0})}}};function VJ(r,e,t,n,i,a){return mr(r.$slots,"default",{position:n.position,speed:n.speed,heading:n.heading,accuracy:n.accuracy,altitude:n.altitude,altitudeAccuracy:n.altitudeAccuracy,accuracyGeometry:n.accuracyGeometry})}var aS=le($J,[["render",VJ]]);function jJ(r){r("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),r("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),r("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),r.WGS84=r["EPSG:4326"],r["EPSG:3785"]=r["EPSG:3857"],r.GOOGLE=r["EPSG:3857"],r["EPSG:900913"]=r["EPSG:3857"],r["EPSG:102113"]=r["EPSG:3857"]}var dh=1,vh=2,M0=3,KJ=4,oS=5,NM=6378137,zJ=6356752314e-3,PM=.0066943799901413165,Qv=484813681109536e-20,zt=Math.PI/2,YJ=.16666666666666666,XJ=.04722222222222222,WJ=.022156084656084655,ne=1e-10,ra=.017453292519943295,tA=57.29577951308232,zr=Math.PI/4,yg=Math.PI*2,ei=3.14159265359,po={};po.greenwich=0;po.lisbon=-9.131906111111;po.paris=2.337229166667;po.bogota=-74.080916666667;po.madrid=-3.687938888889;po.rome=12.452333333333;po.bern=7.439583333333;po.jakarta=106.807719444444;po.ferro=-17.666666666667;po.brussels=4.367975;po.stockholm=18.058277777778;po.athens=23.7163375;po.oslo=10.722916666667;var qJ={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}},UM=/[\s_\-\/\(\)]/g;function Gu(r,e){if(r[e])return r[e];for(var t=Object.keys(r),n=e.toLowerCase().replace(UM,""),i=-1,a,o;++i=this.text.length)return;r=this.text[this.place++]}switch(this.state){case mg:return this.neutral(r);case r4:return this.keyword(r);case N_:return this.quoted(r);case i4:return this.afterquote(r);case n4:return this.number(r);case gF:return}};wl.prototype.afterquote=function(r){if(r==='"'){this.word+='"',this.state=N_;return}if(lw.test(r)){this.word=this.word.trim(),this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in afterquote yet, index '+this.place)};wl.prototype.afterItem=function(r){if(r===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=mg;return}if(r==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=mg,this.currentObject=this.stack.pop(),this.currentObject||(this.state=gF);return}};wl.prototype.number=function(r){if(a4.test(r)){this.word+=r;return}if(lw.test(r)){this.word=parseFloat(this.word),this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in number yet, index '+this.place)};wl.prototype.quoted=function(r){if(r==='"'){this.state=i4;return}this.word+=r};wl.prototype.keyword=function(r){if(ttt.test(r)){this.word+=r;return}if(r==="["){var e=[];e.push(this.word),this.level++,this.root===null?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,this.state=mg;return}if(lw.test(r)){this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in keyword yet, index '+this.place)};wl.prototype.neutral=function(r){if(JJ.test(r)){this.word=r,this.state=r4;return}if(r==='"'){this.word="",this.state=N_;return}if(a4.test(r)){this.word=r,this.state=n4;return}if(lw.test(r)){this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in neutral yet, index '+this.place)};wl.prototype.output=function(){for(;this.place0?90:-90),r.lat_ts=r.lat1)}function o4(r){var e=ett(r),t=e.shift(),n=e.shift();e.unshift(["name",n]),e.unshift(["type",t]);var i={};return Kf(e,i),itt(i),i}function Na(r){var e=this;if(arguments.length===2){var t=arguments[1];typeof t=="string"?t.charAt(0)==="+"?Na[r]=sS(arguments[1]):Na[r]=o4(arguments[1]):Na[r]=t}else if(arguments.length===1){if(Array.isArray(r))return r.map(function(n){Array.isArray(n)?Na.apply(e,n):Na(n)});if(typeof r=="string"){if(r in Na)return Na[r]}else"EPSG"in r?Na["EPSG:"+r.EPSG]=r:"ESRI"in r?Na["ESRI:"+r.ESRI]=r:"IAU2000"in r?Na["IAU2000:"+r.IAU2000]=r:console.log(r);return}}jJ(Na);function att(r){return typeof r=="string"}function ott(r){return r in Na}var stt=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function Att(r){return stt.some(function(e){return r.indexOf(e)>-1})}var ltt=["3857","900913","3785","102113"];function utt(r){var e=Gu(r,"authority");if(e){var t=Gu(e,"epsg");return t&<t.indexOf(t)>-1}}function ctt(r){var e=Gu(r,"extension");if(e)return Gu(e,"proj4")}function htt(r){return r[0]==="+"}function ftt(r){if(att(r)){if(ott(r))return Na[r];if(Att(r)){var e=o4(r);if(utt(e))return Na["EPSG:3857"];var t=ctt(e);return t?sS(t):e}if(htt(r))return sS(r)}else return r}function QM(r,e){r=r||{};var t,n;if(!e)return r;for(n in e)t=e[n],t!==void 0&&(r[n]=t);return r}function uA(r,e,t){var n=r*e;return t/Math.sqrt(1-n*n)}function iy(r){return r<0?-1:1}function fe(r){return Math.abs(r)<=ei?r:r-iy(r)*yg}function Ss(r,e,t){var n=r*t,i=.5*r;return n=Math.pow((1-n)/(1+n),i),Math.tan(.5*(zt-e))/n}function _g(r,e){for(var t=.5*r,n,i,a=zt-2*Math.atan(e),o=0;o<=15;o++)if(n=r*Math.sin(a),i=zt-2*Math.atan(e*Math.pow((1-n)/(1+n),t))-a,a+=i,Math.abs(i)<=1e-10)return a;return-9999}function ptt(){var r=this.b/this.a;this.es=1-r*r,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=uA(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function dtt(r){var e=r.x,t=r.y;if(t*tA>90&&t*tA<-90&&e*tA>180&&e*tA<-180)return null;var n,i;if(Math.abs(Math.abs(t)-zt)<=ne)return null;if(this.sphere)n=this.x0+this.a*this.k0*fe(e-this.long0),i=this.y0+this.a*this.k0*Math.log(Math.tan(zr+.5*t));else{var a=Math.sin(t),o=Ss(this.e,t,a);n=this.x0+this.a*this.k0*fe(e-this.long0),i=this.y0-this.a*this.k0*Math.log(o)}return r.x=n,r.y=i,r}function vtt(r){var e=r.x-this.x0,t=r.y-this.y0,n,i;if(this.sphere)i=zt-2*Math.atan(Math.exp(-t/(this.a*this.k0)));else{var a=Math.exp(-t/(this.a*this.k0));if(i=_g(this.e,a),i===-9999)return null}return n=fe(this.long0+e/(this.a*this.k0)),r.x=n,r.y=i,r}var gtt=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],ytt={init:ptt,forward:dtt,inverse:vtt,names:gtt};function mtt(){}function HM(r){return r}var _tt=["longlat","identity"],wtt={init:mtt,forward:HM,inverse:HM,names:_tt},Ett=[ytt,wtt],N0={},P_=[];function s4(r,e){var t=P_.length;return r.names?(P_[t]=r,r.names.forEach(function(n){N0[n.toLowerCase()]=t}),this):(console.log(e),!0)}function Ctt(r){if(!r)return!1;var e=r.toLowerCase();if(typeof N0[e]<"u"&&P_[N0[e]])return P_[N0[e]]}function Btt(){Ett.forEach(s4)}var Ttt={start:Btt,add:s4,get:Ctt},Ye={};Ye.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};Ye.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};Ye.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};Ye.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};Ye.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"};Ye.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};Ye.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};Ye.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"};Ye.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};Ye.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"};Ye.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};Ye.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"};Ye.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};Ye.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"};Ye.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."};Ye.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"};Ye.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};Ye.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};Ye.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"};Ye.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"};Ye.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"};Ye.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"};Ye.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"};Ye.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"};Ye.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};Ye.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};Ye.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};Ye.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};Ye.hough={a:6378270,rf:297,ellipseName:"Hough"};Ye.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};Ye.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};Ye.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};Ye.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};Ye.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"};Ye.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};Ye.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};Ye.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"};Ye.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"};Ye.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"};Ye.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};Ye.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var Stt=Ye.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};Ye.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function xtt(r,e,t,n){var i=r*r,a=e*e,o=(i-a)/i,s=0;n?(r*=1-o*(YJ+o*(XJ+o*WJ)),i=r*r,o=0):s=Math.sqrt(o);var A=(i-a)/a;return{es:o,e:s,ep2:A}}function btt(r,e,t,n,i){if(!r){var a=Gu(Ye,n);a||(a=Stt),r=a.a,e=a.b,t=a.rf}return t&&!e&&(e=(1-1/t)*r),(t===0||Math.abs(r-e)3&&(s.datum_params[3]!==0||s.datum_params[4]!==0||s.datum_params[5]!==0||s.datum_params[6]!==0)&&(s.datum_type=vh,s.datum_params[3]*=Qv,s.datum_params[4]*=Qv,s.datum_params[5]*=Qv,s.datum_params[6]=s.datum_params[6]/1e6+1)),o&&(s.datum_type=M0,s.grids=o),s.a=t,s.b=n,s.es=i,s.ep2=a,s}var A4={};function Ftt(r,e){var t=new DataView(e),n=Rtt(t),i=Mtt(t,n);i.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var a=Ntt(t,i,n),o={header:i,subgrids:a};return A4[r]=o,o}function Ltt(r){if(r===void 0)return null;var e=r.split(",");return e.map(Ott)}function Ott(r){if(r.length===0)return null;var e=r[0]==="@";return e&&(r=r.slice(1)),r==="null"?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:r,mandatory:!e,grid:A4[r]||null,isNull:!1}}function zf(r){return r/3600*Math.PI/180}function Rtt(r){var e=r.getInt32(8,!1);return e===11?!1:(e=r.getInt32(8,!0),e!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function Mtt(r,e){return{nFields:r.getInt32(8,e),nSubgridFields:r.getInt32(24,e),nSubgrids:r.getInt32(40,e),shiftType:AS(r,56,56+8).trim(),fromSemiMajorAxis:r.getFloat64(120,e),fromSemiMinorAxis:r.getFloat64(136,e),toSemiMajorAxis:r.getFloat64(152,e),toSemiMinorAxis:r.getFloat64(168,e)}}function AS(r,e,t){return String.fromCharCode.apply(null,new Uint8Array(r.buffer.slice(e,t)))}function Ntt(r,e,t){for(var n=176,i=[],a=0;a5e-11?!1:r.datum_type===dh?r.datum_params[0]===e.datum_params[0]&&r.datum_params[1]===e.datum_params[1]&&r.datum_params[2]===e.datum_params[2]:r.datum_type===vh?r.datum_params[0]===e.datum_params[0]&&r.datum_params[1]===e.datum_params[1]&&r.datum_params[2]===e.datum_params[2]&&r.datum_params[3]===e.datum_params[3]&&r.datum_params[4]===e.datum_params[4]&&r.datum_params[5]===e.datum_params[5]&&r.datum_params[6]===e.datum_params[6]:!0}function l4(r,e,t){var n=r.x,i=r.y,a=r.z?r.z:0,o,s,A,l;if(i<-zt&&i>-1.001*zt)i=-zt;else if(i>zt&&i<1.001*zt)i=zt;else{if(i<-zt)return{x:-1/0,y:-1/0,z:r.z};if(i>zt)return{x:1/0,y:1/0,z:r.z}}return n>Math.PI&&(n-=2*Math.PI),s=Math.sin(i),l=Math.cos(i),A=s*s,o=t/Math.sqrt(1-e*A),{x:(o+a)*l*Math.cos(n),y:(o+a)*l*Math.sin(n),z:(o*(1-e)+a)*s}}function u4(r,e,t,n){var i=1e-12,a=i*i,o=30,s,A,l,u,c,h,f,p,v,m,g,_,E,B=r.x,L=r.y,O=r.z?r.z:0,b,T,I;if(s=Math.sqrt(B*B+L*L),A=Math.sqrt(B*B+L*L+O*O),s/ta&&En.y||u>n.x||fs&&Math.abs(A.y)>s);if(o<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=fe(a.x+t.ll[0]),n.y=a.y+t.ll[1]}else isNaN(a.x)||(n.x=r.x+a.x,n.y=r.y+a.y);return n}function kM(r,e){var t={x:r.x/e.del[0],y:r.y/e.del[1]},n={x:Math.floor(t.x),y:Math.floor(t.y)},i={x:t.x-1*n.x,y:t.y-1*n.y},a={x:Number.NaN,y:Number.NaN},o;if(n.x<0||n.x>=e.lim[0]||n.y<0||n.y>=e.lim[1])return a;o=n.y*e.lim[0]+n.x;var s={x:e.cvs[o][0],y:e.cvs[o][1]};o++;var A={x:e.cvs[o][0],y:e.cvs[o][1]};o+=e.lim[0];var l={x:e.cvs[o][0],y:e.cvs[o][1]};o--;var u={x:e.cvs[o][0],y:e.cvs[o][1]},c=i.x*i.y,h=i.x*(1-i.y),f=(1-i.x)*(1-i.y),p=(1-i.x)*i.y;return a.x=f*s.x+h*A.x+p*u.x+c*l.x,a.y=f*s.y+h*A.y+p*u.y+c*l.y,a}function $M(r,e,t){var n=t.x,i=t.y,a=t.z||0,o,s,A,l={};for(A=0;A<3;A++)if(!(e&&A===2&&t.z===void 0))switch(A===0?(o=n,"ew".indexOf(r.axis[A])!==-1?s="x":s="y"):A===1?(o=i,"ns".indexOf(r.axis[A])!==-1?s="y":s="x"):(o=a,s="z"),r.axis[A]){case"e":l[s]=o;break;case"w":l[s]=-o;break;case"n":l[s]=o;break;case"s":l[s]=-o;break;case"u":t[s]!==void 0&&(l.z=o);break;case"d":t[s]!==void 0&&(l.z=-o);break;default:return null}return l}function c4(r){var e={x:r[0],y:r[1]};return r.length>2&&(e.z=r[2]),r.length>3&&(e.m=r[3]),e}function Vtt(r){VM(r.x),VM(r.y)}function VM(r){if(typeof Number.isFinite=="function"){if(Number.isFinite(r))return;throw new TypeError("coordinates must be finite numbers")}if(typeof r!="number"||r!==r||!isFinite(r))throw new TypeError("coordinates must be finite numbers")}function jtt(r,e){return(r.datum.datum_type===dh||r.datum.datum_type===vh)&&e.datumCode!=="WGS84"||(e.datum.datum_type===dh||e.datum.datum_type===vh)&&r.datumCode!=="WGS84"}function U_(r,e,t,n){var i;if(Array.isArray(t)&&(t=c4(t)),Vtt(t),r.datum&&e.datum&&jtt(r,e)&&(i=new aA("WGS84"),t=U_(r,i,t,n),r=i),n&&r.axis!=="enu"&&(t=$M(r,!1,t)),r.projName==="longlat")t={x:t.x*ra,y:t.y*ra,z:t.z||0};else if(r.to_meter&&(t={x:t.x*r.to_meter,y:t.y*r.to_meter,z:t.z||0}),t=r.inverse(t),!t)return;if(r.from_greenwich&&(t.x+=r.from_greenwich),t=ktt(r.datum,e.datum,t),!!t)return e.from_greenwich&&(t={x:t.x-e.from_greenwich,y:t.y,z:t.z||0}),e.projName==="longlat"?t={x:t.x*tA,y:t.y*tA,z:t.z||0}:(t=e.forward(t),e.to_meter&&(t={x:t.x/e.to_meter,y:t.y/e.to_meter,z:t.z||0})),n&&e.axis!=="enu"?$M(e,!0,t):t}var jM=aA("WGS84");function xC(r,e,t,n){var i,a,o;return Array.isArray(t)?(i=U_(r,e,t,n)||{x:NaN,y:NaN},t.length>2?typeof r.name<"u"&&r.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"?typeof i.z=="number"?[i.x,i.y,i.z].concat(t.splice(3)):[i.x,i.y,t[2]].concat(t.splice(3)):[i.x,i.y].concat(t.splice(2)):[i.x,i.y]):(a=U_(r,e,t,n),o=Object.keys(t),o.length===2||o.forEach(function(s){if(typeof r.name<"u"&&r.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"){if(s==="x"||s==="y"||s==="z")return}else if(s==="x"||s==="y")return;a[s]=t[s]}),a)}function KM(r){return r instanceof aA?r:r.oProj?r.oProj:aA(r)}function co(r,e,t){r=KM(r);var n=!1,i;return typeof e>"u"?(e=r,r=jM,n=!0):(typeof e.x<"u"||Array.isArray(e))&&(t=e,e=r,r=jM,n=!0),e=KM(e),t?xC(r,e,t):(i={forward:function(a,o){return xC(r,e,a,o)},inverse:function(a,o){return xC(e,r,a,o)}},n&&(i.oProj=e),i)}var zM=6,h4="AJSAJS",f4="AFAFAF",Yf=65,eo=73,Ko=79,dv=86,vv=90,Ktt={forward:p4,inverse:ztt,toPoint:d4};function p4(r,e){return e=e||5,Wtt(Ytt({lat:r[1],lon:r[0]}),e)}function ztt(r){var e=yF(g4(r.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]}function d4(r){var e=yF(g4(r.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function bC(r){return r*(Math.PI/180)}function YM(r){return 180*(r/Math.PI)}function Ytt(r){var e=r.lat,t=r.lon,n=6378137,i=.00669438,a=.9996,o,s,A,l,u,c,h,f=bC(e),p=bC(t),v,m;m=Math.floor((t+180)/6)+1,t===180&&(m=60),e>=56&&e<64&&t>=3&&t<12&&(m=32),e>=72&&e<84&&(t>=0&&t<9?m=31:t>=9&&t<21?m=33:t>=21&&t<33?m=35:t>=33&&t<42&&(m=37)),o=(m-1)*6-180+3,v=bC(o),s=i/(1-i),A=n/Math.sqrt(1-i*Math.sin(f)*Math.sin(f)),l=Math.tan(f)*Math.tan(f),u=s*Math.cos(f)*Math.cos(f),c=Math.cos(f)*(p-v),h=n*((1-i/4-3*i*i/64-5*i*i*i/256)*f-(3*i/8+3*i*i/32+45*i*i*i/1024)*Math.sin(2*f)+(15*i*i/256+45*i*i*i/1024)*Math.sin(4*f)-35*i*i*i/3072*Math.sin(6*f));var g=a*A*(c+(1-l+u)*c*c*c/6+(5-18*l+l*l+72*u-58*s)*c*c*c*c*c/120)+5e5,_=a*(h+A*Math.tan(f)*(c*c/2+(5-l+9*u+4*u*u)*c*c*c*c/24+(61-58*l+l*l+600*u-330*s)*c*c*c*c*c*c/720));return e<0&&(_+=1e7),{northing:Math.round(_),easting:Math.round(g),zoneNumber:m,zoneLetter:Xtt(e)}}function yF(r){var e=r.northing,t=r.easting,n=r.zoneLetter,i=r.zoneNumber;if(i<0||i>60)return null;var a=.9996,o=6378137,s=.00669438,A,l=(1-Math.sqrt(1-s))/(1+Math.sqrt(1-s)),u,c,h,f,p,v,m,g,_,E=t-5e5,B=e;n<"N"&&(B-=1e7),m=(i-1)*6-180+3,A=s/(1-s),v=B/a,g=v/(o*(1-s/4-3*s*s/64-5*s*s*s/256)),_=g+(3*l/2-27*l*l*l/32)*Math.sin(2*g)+(21*l*l/16-55*l*l*l*l/32)*Math.sin(4*g)+151*l*l*l/96*Math.sin(6*g),u=o/Math.sqrt(1-s*Math.sin(_)*Math.sin(_)),c=Math.tan(_)*Math.tan(_),h=A*Math.cos(_)*Math.cos(_),f=o*(1-s)/Math.pow(1-s*Math.sin(_)*Math.sin(_),1.5),p=E/(u*a);var L=_-u*Math.tan(_)/f*(p*p/2-(5+3*c+10*h-4*h*h-9*A)*p*p*p*p/24+(61+90*c+298*h+45*c*c-252*A-3*h*h)*p*p*p*p*p*p/720);L=YM(L);var O=(p-(1+2*c+h)*p*p*p/6+(5-2*h+28*c-3*h*h+8*A+24*c*c)*p*p*p*p*p/120)/Math.cos(_);O=m+YM(O);var b;if(r.accuracy){var T=yF({northing:r.northing+r.accuracy,easting:r.easting+r.accuracy,zoneLetter:r.zoneLetter,zoneNumber:r.zoneNumber});b={top:T.lat,right:T.lon,bottom:L,left:O}}else b={lat:L,lon:O};return b}function Xtt(r){var e="Z";return 84>=r&&r>=72?e="X":72>r&&r>=64?e="W":64>r&&r>=56?e="V":56>r&&r>=48?e="U":48>r&&r>=40?e="T":40>r&&r>=32?e="S":32>r&&r>=24?e="R":24>r&&r>=16?e="Q":16>r&&r>=8?e="P":8>r&&r>=0?e="N":0>r&&r>=-8?e="M":-8>r&&r>=-16?e="L":-16>r&&r>=-24?e="K":-24>r&&r>=-32?e="J":-32>r&&r>=-40?e="H":-40>r&&r>=-48?e="G":-48>r&&r>=-56?e="F":-56>r&&r>=-64?e="E":-64>r&&r>=-72?e="D":-72>r&&r>=-80&&(e="C"),e}function Wtt(r,e){var t="00000"+r.easting,n="00000"+r.northing;return r.zoneNumber+r.zoneLetter+qtt(r.easting,r.northing,r.zoneNumber)+t.substr(t.length-5,e)+n.substr(n.length-5,e)}function qtt(r,e,t){var n=v4(t),i=Math.floor(r/1e5),a=Math.floor(e/1e5)%20;return Ztt(i,a,n)}function v4(r){var e=r%zM;return e===0&&(e=zM),e}function Ztt(r,e,t){var n=t-1,i=h4.charCodeAt(n),a=f4.charCodeAt(n),o=i+r-1,s=a+e,A=!1;o>vv&&(o=o-vv+Yf-1,A=!0),(o===eo||ieo||(o>eo||iKo||(o>Ko||ivv&&(o=o-vv+Yf-1),s>dv?(s=s-dv+Yf-1,A=!0):A=!1,(s===eo||aeo||(s>eo||aKo||(s>Ko||adv&&(s=s-dv+Yf-1);var l=String.fromCharCode(o)+String.fromCharCode(s);return l}function g4(r){if(r&&r.length===0)throw"MGRSPoint coverting from nothing";for(var e=r.length,t=null,n="",i,a=0;!/[A-Z]/.test(i=r.charAt(a));){if(a>=2)throw"MGRSPoint bad conversion from: "+r;n+=i,a++}var o=parseInt(n,10);if(a===0||a+3>e)throw"MGRSPoint bad conversion from: "+r;var s=r.charAt(a++);if(s<="A"||s==="B"||s==="Y"||s>="Z"||s==="I"||s==="O")throw"MGRSPoint zone letter "+s+" not handled: "+r;t=r.substring(a,a+=2);for(var A=v4(o),l=Jtt(t.charAt(0),A),u=tet(t.charAt(1),A);u=0;--s)a[s].renderDeclutter(t);vX(this.element_,this.children_),this.dispatchRenderEvent(oo.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)},e.prototype.forEachLayerAtPixel=function(t,n,i,a,o){for(var s=n.viewState,A=n.layerStatesArray,l=A.length,u=l-1;u>=0;--u){var c=A[u],h=c.layer;if(h.hasRenderer()&&g_(c,s)&&o(h)){var f=h.getRenderer(),p=f.getDataAtPixel(t,n,i);if(p){var v=a(h,p);if(v)return v}}}},e}(lX),iQ=BX,Vn={ADD:"add",REMOVE:"remove"},aQ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),nM={LENGTH:"length"},Em=function(r){aQ(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.element=n,a.index=i,a}return e}(po),TX=function(r){aQ(e,r);function e(t,n){var i=r.call(this)||this;i.on,i.once,i.un;var a=n||{};if(i.unique_=!!a.unique,i.array_=t||[],i.unique_)for(var o=0,s=i.array_.length;o0;)this.pop()},e.prototype.extend=function(t){for(var n=0,i=t.length;nthis.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Rr(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(ye.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Rr(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(Rr),this.dragListenerKeys_.length=0,this.element_=null,r.prototype.disposeInternal.call(this)},e}(Th),RX=OX,zs={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},ti={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},C_=1/0,MX=function(){function r(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return r.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Bh(this.queuedElements_)},r.prototype.dequeue=function(){var e=this.elements_,t=this.priorities_,n=e[0];e.length==1?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));var i=this.keyFunction_(n);return delete this.queuedElements_[i],n},r.prototype.enqueue=function(e){_e(!(this.keyFunction_(e)in this.queuedElements_),31);var t=this.priorityFunction_(e);return t!=C_?(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1},r.prototype.getCount=function(){return this.elements_.length},r.prototype.getLeftChildIndex_=function(e){return e*2+1},r.prototype.getRightChildIndex_=function(e){return e*2+2},r.prototype.getParentIndex_=function(e){return e-1>>1},r.prototype.heapify_=function(){var e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)},r.prototype.isEmpty=function(){return this.elements_.length===0},r.prototype.isKeyQueued=function(e){return e in this.queuedElements_},r.prototype.isQueued=function(e){return this.isKeyQueued(this.keyFunction_(e))},r.prototype.siftUp_=function(e){for(var t=this.elements_,n=this.priorities_,i=t.length,a=t[e],o=n[e],s=e;e>1;){var A=this.getLeftChildIndex_(e),l=this.getRightChildIndex_(e),u=le;){var s=this.getParentIndex_(t);if(i[s]>o)n[t]=n[s],i[t]=i[s],t=s;else break}n[t]=a,i[t]=o},r.prototype.reprioritize=function(){var e=this.priorityFunction_,t=this.elements_,n=this.priorities_,i=0,a=t.length,o,s,A;for(s=0;s0;)o=this.dequeue()[0],s=o.getKey(),a=o.getState(),a===ge.IDLE&&!(s in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[s]=!0,++this.tilesLoading_,++i,o.load())},e}(NX),DX=UX;function QX(r,e,t,n,i){if(!r||!(t in r.wantedTiles)||!r.wantedTiles[t][e.getKey()])return C_;var a=r.viewState.center,o=n[0]-a[0],s=n[1]-a[1];return 65536*Math.log(i)+Math.sqrt(o*o+s*s)/i}var st={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"},jp={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},Is={};Is[jp.RADIANS]=6370997/(2*Math.PI);Is[jp.DEGREES]=2*Math.PI*6370997/360;Is[jp.FEET]=.3048;Is[jp.METERS]=1;Is[jp.USFEET]=1200/3937;var Ha=jp,gn={ANIMATING:0,INTERACTING:1},So={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},HX=42,kI=256,GX=function(){function r(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent!==void 0?e.extent:null,this.worldExtent_=e.worldExtent!==void 0?e.worldExtent:null,this.axisOrientation_=e.axisOrientation!==void 0?e.axisOrientation:"enu",this.global_=e.global!==void 0?e.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}return r.prototype.canWrapX=function(){return this.canWrapX_},r.prototype.getCode=function(){return this.code_},r.prototype.getExtent=function(){return this.extent_},r.prototype.getUnits=function(){return this.units_},r.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||Is[this.units_]},r.prototype.getWorldExtent=function(){return this.worldExtent_},r.prototype.getAxisOrientation=function(){return this.axisOrientation_},r.prototype.isGlobal=function(){return this.global_},r.prototype.setGlobal=function(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)},r.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},r.prototype.setDefaultTileGrid=function(e){this.defaultTileGrid_=e},r.prototype.setExtent=function(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)},r.prototype.setWorldExtent=function(e){this.worldExtent_=e},r.prototype.setGetPointResolution=function(e){this.getPointResolutionFunc_=e},r.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},r}(),_l=GX,kX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),qg=6378137,Vf=Math.PI*qg,$X=[-Vf,-Vf,Vf,Vf],VX=[-180,-85,180,85],Cm=qg*Math.log(Math.tan(Math.PI/2)),cf=function(r){kX(e,r);function e(t){return r.call(this,{code:t,units:Ha.METERS,extent:$X,global:!0,worldExtent:VX,getPointResolution:function(n,i){return n/kY(i[1]/qg)}})||this}return e}(_l),iM=[new cf("EPSG:3857"),new cf("EPSG:102100"),new cf("EPSG:102113"),new cf("EPSG:900913"),new cf("http://www.opengis.net/def/crs/EPSG/0/3857"),new cf("http://www.opengis.net/gml/srs/epsg.xml#3857")];function jX(r,e,t){var n=r.length,i=t>1?t:2,a=e;a===void 0&&(i>2?a=r.slice():a=new Array(n));for(var o=0;oCm?s=Cm:s<-Cm&&(s=-Cm),a[o+1]=s}return a}function KX(r,e,t){var n=r.length,i=t>1?t:2,a=e;a===void 0&&(i>2?a=r.slice():a=new Array(n));for(var o=0;o=2;--l)o[s+l]=e[s+l]}return o}}function rW(r,e,t,n){var i=Oe(r),a=Oe(e);bp(i,a,sM(t)),bp(a,i,sM(n))}function qs(r,e){if(r===e)return!0;var t=r.getUnits()===e.getUnits();if(r.getCode()===e.getCode())return t;var n=fh(r,e);return n===$I&&t}function fh(r,e){var t=r.getCode(),n=e.getCode(),i=sQ(t,n);return i||(i=W1),i}function vg(r,e){var t=Oe(r),n=Oe(e);return fh(t,n)}function Qu(r,e,t){var n=vg(e,t);return n(r,void 0,r.length)}function b_(r,e,t,n){var i=vg(e,t);return NI(r,i,void 0,n)}var nW=null;function ph(){return nW}function Sp(r,e){return r}function Tn(r,e){return KT&&!ws(r,[0,0])&&r[0]>=-180&&r[0]<=180&&r[1]>=-90&&r[1]<=90&&(KT=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),r}function q1(r,e){return r}function Oo(r,e){return r}function iW(r,e){return r}function AM(r,e,t){return function(n){var i=n[0],a=n[1],o,s;if(r.canWrapX()){var A=r.getExtent(),l=Fr(A);s=Z6(n,r,l),s&&(i=i-s*l),i=Sn(i,A[0],A[2]),a=Sn(a,A[1],A[3]),o=t([i,a])}else o=t(n);return s&&e.canWrapX()&&(o[0]+=s*Fr(e.getExtent())),o}}function aW(){zT(iM),zT(oM),eW(oM,iM,jX,KX)}aW();function lM(r,e,t){return function(n,i,a,o,s){if(n){if(!i&&!e)return n;var A=e?0:a[0]*i,l=e?0:a[1]*i,u=s?s[0]:0,c=s?s[1]:0,h=r[0]+A/2+u,f=r[2]-A/2+u,p=r[1]+l/2+c,v=r[3]-l/2+c;h>f&&(h=(f+h)/2,f=h),p>v&&(p=(v+p)/2,v=p);var m=Sn(n[0],h,f),g=Sn(n[1],p,v);if(o&&t&&i){var _=30*i;m+=-_*Math.log(1+Math.max(0,h-n[0])/_)+_*Math.log(1+Math.max(0,n[0]-f)/_),g+=-_*Math.log(1+Math.max(0,p-n[1])/_)+_*Math.log(1+Math.max(0,n[1]-v)/_)}return[m,g]}}}function oW(r){return r}function jI(r,e,t,n){var i=Fr(e)/t[0],a=li(e)/t[1];return n?Math.min(r,Math.max(i,a)):Math.min(r,Math.min(i,a))}function KI(r,e,t){var n=Math.min(r,e),i=50;return n*=Math.log(1+i*Math.max(0,r/e-1))/i+1,t&&(n=Math.max(n,t),n/=Math.log(1+i*Math.max(0,t/r-1))/i+1),Sn(n,t/2,e*2)}function sW(r,e,t,n){return function(i,a,o,s){if(i!==void 0){var A=r[0],l=r[r.length-1],u=t?jI(A,t,o,n):A;if(s){var c=e!==void 0?e:!0;return c?KI(i,u,l):Sn(i,l,u)}var h=Math.min(u,i),f=Math.floor(j1(r,h,a));return r[f]>u&&f1)c=t;else if(h>0){for(var f=0;fi&&(i=l),a=s,o=A}return i}function ZI(r,e,t,n,i){for(var a=0,o=t.length;a0;){for(var c=l.pop(),h=l.pop(),f=0,p=r[h],v=r[h+1],m=r[c],g=r[c+1],_=h+n;_f&&(u=_,f=L)}f>i&&(A[(u-e)/n]=1,h+n0&&v>f)&&(p<0&&m0&&m>p)){l=c,u=h;continue}a[o++]=l,a[o++]=u,s=l,A=u,l=c,u=h}}return a[o++]=l,a[o++]=u,o}function hQ(r,e,t,n,i,a,o,s){for(var A=0,l=t.length;Aa&&(l-s)*(a-A)-(i-s)*(u-A)>0&&o++:u<=a&&(l-s)*(a-A)-(i-s)*(u-A)<0&&o--,s=l,A=u}return o!==0}function nF(r,e,t,n,i,a){if(t.length===0||!Dc(r,e,t[0],n,i,a))return!1;for(var o=1,s=t.length;oB&&(l=(u+c)/2,nF(r,e,t,n,l,p)&&(E=l,B=L)),u=c}return isNaN(E)&&(E=i[a]),o?(o.push(E,p,B),o):[E,p,B]}function dQ(r,e,t,n,i){for(var a=[],o=0,s=t.length;o=i[0]&&a[2]<=i[2]||a[1]>=i[1]&&a[3]<=i[3]?!0:vQ(r,e,t,n,function(o,s){return H6(i,o,s)}):!1}function RW(r,e,t,n,i){for(var a=0,o=t.length;a0}function yQ(r,e,t,n,i){for(var a=i!==void 0?i:!1,o=0,s=t.length;o1&&typeof arguments[n-1]=="function"&&(i=arguments[n-1],--n);for(var a=0;a0},e.prototype.getInteracting=function(){return this.hints_[gn.INTERACTING]>0},e.prototype.cancelAnimations=function(){this.setHint(gn.ANIMATING,-this.hints_[gn.ANIMATING]);for(var t,n=0,i=this.animations_.length;n=0;--i){for(var a=this.animations_[i],o=!0,s=0,A=a.length;s0?u/l.duration:1;c>=1?(l.complete=!0,c=1):o=!1;var h=l.easing(c);if(l.sourceCenter){var f=l.sourceCenter[0],p=l.sourceCenter[1],v=l.targetCenter[0],m=l.targetCenter[1];this.nextCenter_=l.targetCenter;var g=f+h*(v-f),_=p+h*(m-p);this.targetCenter_=[g,_]}if(l.sourceResolution&&l.targetResolution){var E=h===1?l.targetResolution:l.sourceResolution+h*(l.targetResolution-l.sourceResolution);if(l.anchor){var B=this.getViewportSize_(this.getRotation()),L=this.constraints_.resolution(E,0,B,!0);this.targetCenter_=this.calculateCenterZoom(L,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=E,this.applyTargetState_(!0)}if(l.sourceRotation!==void 0&&l.targetRotation!==void 0){var O=h===1?Bu(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+h*(l.targetRotation-l.sourceRotation);if(l.anchor){var x=this.constraints_.rotation(O,!0);this.targetCenter_=this.calculateCenterRotate(x,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=O}if(this.applyTargetState_(!0),n=!0,!l.complete)break}}if(o){this.animations_[i]=null,this.setHint(gn.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var T=a[0].callback;T&&Bm(T,!0)}}this.animations_=this.animations_.filter(Boolean),n&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},e.prototype.calculateCenterRotate=function(t,n){var i,a=this.getCenterInternal();return a!==void 0&&(i=[a[0]-n[0],a[1]-n[1]],HI(i,t-this.getRotation()),W6(i,n)),i},e.prototype.calculateCenterZoom=function(t,n){var i,a=this.getCenterInternal(),o=this.getResolution();if(a!==void 0&&o!==void 0){var s=n[0]-t*(n[0]-a[0])/o,A=n[1]-t*(n[1]-a[1])/o;i=[s,A]}return i},e.prototype.getViewportSize_=function(t){var n=this.viewportSize_;if(t){var i=n[0],a=n[1];return[Math.abs(i*Math.cos(t))+Math.abs(a*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(a*Math.cos(t))]}else return n},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t&&Sp(t,this.getProjection())},e.prototype.getCenterInternal=function(){return this.get(So.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},e.prototype.getHints=function(t){return t!==void 0?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var n=this.calculateExtentInternal(t);return q1(n,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var n=t||this.getViewportSizeMinusPadding_(),i=this.getCenterInternal();_e(i,1);var a=this.getResolution();_e(a!==void 0,2);var o=this.getRotation();return _e(o!==void 0,3),Xc(i,a,o,n)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(So.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,n){return this.getResolutionForExtentInternal(Oo(t,this.getProjection()),n)},e.prototype.getResolutionForExtentInternal=function(t,n){var i=n||this.getViewportSizeMinusPadding_(),a=Fr(t)/i[0],o=li(t)/i[1];return Math.max(a,o)},e.prototype.getResolutionForValueFunction=function(t){var n=t||2,i=this.getConstrainedResolution(this.maxResolution_),a=this.minResolution_,o=Math.log(i/a)/Math.log(n);return function(s){var A=i/Math.pow(n,s*o);return A}},e.prototype.getRotation=function(){return this.get(So.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var n=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),a=this.minResolution_,o=Math.log(i/a)/n;return function(s){var A=Math.log(i/s)/n/o;return A}},e.prototype.getViewportSizeMinusPadding_=function(t){var n=this.getViewportSize_(t),i=this.padding_;return i&&(n=[n[0]-i[1]-i[3],n[1]-i[0]-i[2]]),n},e.prototype.getState=function(){var t=this.getProjection(),n=this.getResolution(),i=this.getRotation(),a=this.getCenterInternal(),o=this.padding_;if(o){var s=this.getViewportSizeMinusPadding_();a=hC(a,this.getViewportSize_(),[s[0]/2+o[3],s[1]/2+o[0]],n,i)}return{center:a.slice(0),projection:t!==void 0?t:null,resolution:n,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,n=this.getResolution();return n!==void 0&&(t=this.getZoomForResolution(n)),t},e.prototype.getZoomForResolution=function(t){var n=this.minZoom_||0,i,a;if(this.resolutions_){var o=j1(this.resolutions_,t,1);n=o,i=this.resolutions_[o],o==this.resolutions_.length-1?a=2:a=i/this.resolutions_[o+1]}else i=this.maxResolution_,a=this.zoomFactor_;return n+Math.log(i/t)/Math.log(a)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var n=Sn(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[n]/this.resolutions_[n+1];return this.resolutions_[n]/Math.pow(i,Sn(t-n,0,1))}else return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,n){var i;if(_e(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function",24),Array.isArray(t)){_e(!Vp(t),25);var a=Oo(t,this.getProjection());i=Hu(a)}else if(t.getType()===st.CIRCLE){var a=Oo(t.getExtent(),this.getProjection());i=Hu(a),i.rotate(this.getRotation(),Sa(a))}else{var o=ph();o?i=t.clone().transform(o,this.getProjection()):i=t}this.fitInternal(i,n)},e.prototype.rotatedExtentForGeometry=function(t){for(var n=this.getRotation(),i=Math.cos(n),a=Math.sin(-n),o=t.getFlatCoordinates(),s=t.getStride(),A=1/0,l=1/0,u=-1/0,c=-1/0,h=0,f=o.length;h0&&r[1]>0}function _Q(r,e,t){return t===void 0&&(t=[0,0]),t[0]=r[0]*e+.5|0,t[1]=r[1]*e+.5|0,t}function Ui(r,e){return Array.isArray(r)?r:(e===void 0?e=[r,r]:(e[0]=r,e[1]=r),e)}var YW=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();function wQ(r){if(r instanceof bh){r.setMapInternal(null);return}r instanceof Wg&&r.getLayers().forEach(wQ)}function EQ(r,e){if(r instanceof bh){r.setMapInternal(e);return}if(r instanceof Wg)for(var t=r.getLayers().getArray(),n=0,i=t.length;n=0;l--){var u=A[l];if(!(u.getMap()!==this||!u.getActive()||!this.getTargetElement())){var c=u.handleEvent(t);if(!c||t.propagationStopped)break}}}},e.prototype.handlePostRender=function(){var t=this.frameState_,n=this.tileQueue_;if(!n.isEmpty()){var i=this.maxTilesLoading_,a=i;if(t){var o=t.viewHints;if(o[gn.ANIMATING]||o[gn.INTERACTING]){var s=Date.now()-t.time>8;i=s?0:8,a=s?0:2}}n.getTilesLoading()0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!ml(n,this.renderedAttributions_)){eQ(this.ulElement_);for(var a=0,o=n.length;a0&&i%(2*Math.PI)!==0?n.animate({rotation:0,duration:this.duration_,easing:es}):n.setRotation(0))}},e.prototype.render=function(t){var n=t.frameState;if(n){var i=n.viewState.rotation;if(i!=this.rotation_){var a="rotate("+i+"rad)";if(this.autoHide_){var o=this.element.classList.contains(wm);!o&&i===0?this.element.classList.add(wm):o&&i!==0&&this.element.classList.remove(wm)}this.label_.style.transform=a}this.rotation_=i}},e}(_r),TQ=nq,iq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),aq=function(r){iq(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),target:i.target})||this;var a=i.className!==void 0?i.className:"ol-zoom",o=i.delta!==void 0?i.delta:1,s=i.zoomInClassName!==void 0?i.zoomInClassName:a+"-in",A=i.zoomOutClassName!==void 0?i.zoomOutClassName:a+"-out",l=i.zoomInLabel!==void 0?i.zoomInLabel:"+",u=i.zoomOutLabel!==void 0?i.zoomOutLabel:"–",c=i.zoomInTipLabel!==void 0?i.zoomInTipLabel:"Zoom in",h=i.zoomOutTipLabel!==void 0?i.zoomOutTipLabel:"Zoom out",f=document.createElement("button");f.className=s,f.setAttribute("type","button"),f.title=c,f.appendChild(typeof l=="string"?document.createTextNode(l):l),f.addEventListener(ye.CLICK,n.handleClick_.bind(n,o),!1);var p=document.createElement("button");p.className=A,p.setAttribute("type","button"),p.title=h,p.appendChild(typeof u=="string"?document.createTextNode(u):u),p.addEventListener(ye.CLICK,n.handleClick_.bind(n,-o),!1);var v=a+" "+uA+" "+Sh,m=n.element;return m.className=v,m.appendChild(f),m.appendChild(p),n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleClick_=function(t,n){n.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var n=this.getMap(),i=n.getView();if(i){var a=i.getZoom();if(a!==void 0){var o=i.getConstrainedZoom(a+t);this.duration_>0?(i.getAnimating()&&i.cancelAnimations(),i.animate({zoom:o,duration:this.duration_,easing:es})):i.setZoom(o)}}},e}(_r),bQ=aq,oq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),gM=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],yM={ENTERFULLSCREEN:"enterfullscreen",LEAVEFULLSCREEN:"leavefullscreen"},sq=function(r){oq(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),target:i.target})||this,n.on,n.once,n.un,n.keys_=i.keys!==void 0?i.keys:!1,n.source_=i.source,n.isInFullscreen_=!1,n.boundHandleMapTargetChange_=n.handleMapTargetChange_.bind(n),n.cssClassName_=i.className!==void 0?i.className:"ol-full-screen",n.documentListeners_=[],n.activeClassName_=i.activeClassName!==void 0?i.activeClassName.split(" "):[n.cssClassName_+"-true"],n.inactiveClassName_=i.inactiveClassName!==void 0?i.inactiveClassName.split(" "):[n.cssClassName_+"-false"];var a=i.label!==void 0?i.label:"⤢";n.labelNode_=typeof a=="string"?document.createTextNode(a):a;var o=i.labelActive!==void 0?i.labelActive:"×";n.labelActiveNode_=typeof o=="string"?document.createTextNode(o):o;var s=i.tipLabel?i.tipLabel:"Toggle full-screen";return n.button_=document.createElement("button"),n.button_.title=s,n.button_.setAttribute("type","button"),n.button_.appendChild(n.labelNode_),n.button_.addEventListener(ye.CLICK,n.handleClick_.bind(n),!1),n.setClassName_(n.button_,n.isInFullscreen_),n.element.className="".concat(n.cssClassName_," ").concat(uA," ").concat(Sh),n.element.appendChild(n.button_),n}return e.prototype.handleClick_=function(t){t.preventDefault(),this.handleFullScreen_()},e.prototype.handleFullScreen_=function(){var t=this.getMap();if(t){var n=t.getOwnerDocument();if(mM(n))if(_M(n))lq(n);else{var i=void 0;this.source_?i=typeof this.source_=="string"?n.getElementById(this.source_):this.source_:i=t.getTargetElement(),this.keys_?Aq(i):SQ(i)}}},e.prototype.handleFullScreenChange_=function(){var t=this.getMap();if(t){var n=this.isInFullscreen_;this.isInFullscreen_=_M(t.getOwnerDocument()),n!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?(Bp(this.labelActiveNode_,this.labelNode_),this.dispatchEvent(yM.ENTERFULLSCREEN)):(Bp(this.labelNode_,this.labelActiveNode_),this.dispatchEvent(yM.LEAVEFULLSCREEN)),t.updateSize())}},e.prototype.setClassName_=function(t,n){var i,a,o,s;n?((i=t.classList).remove.apply(i,this.inactiveClassName_),(a=t.classList).add.apply(a,this.activeClassName_)):((o=t.classList).remove.apply(o,this.activeClassName_),(s=t.classList).add.apply(s,this.inactiveClassName_))},e.prototype.setMap=function(t){var n=this.getMap();n&&n.removeChangeListener(ti.TARGET,this.boundHandleMapTargetChange_),r.prototype.setMap.call(this,t),this.handleMapTargetChange_(),t&&t.addChangeListener(ti.TARGET,this.boundHandleMapTargetChange_)},e.prototype.handleMapTargetChange_=function(){for(var t=this.documentListeners_,n=0,i=t.length;np*pC||f>v*pC?this.resetExtent_():Lo(l,o)||this.recenter_()}}},e.prototype.resetExtent_=function(){var t=this.getMap(),n=this.ovmap_,i=t.getSize(),a=t.getView(),o=a.calculateExtentInternal(i),s=n.getView(),A=Math.log(pC/Tm)/Math.LN2,l=1/(Math.pow(2,A/2)*Tm);Q6(o,l),s.fitInternal(Hu(o))},e.prototype.recenter_=function(){var t=this.getMap(),n=this.ovmap_,i=t.getView(),a=n.getView();a.setCenterInternal(i.getCenterInternal())},e.prototype.updateBox_=function(){var t=this.getMap(),n=this.ovmap_;if(!(!t.isRendered()||!n.isRendered())){var i=t.getSize(),a=t.getView(),o=n.getView(),s=this.rotateWithView_?0:-a.getRotation(),A=this.boxOverlay_,l=this.boxOverlay_.getElement(),u=a.getCenterInternal(),c=a.getResolution(),h=o.getResolution(),f=i[0]*c/h,p=i[1]*c/h;if(A.setPosition(u),l){l.style.width=f+"px",l.style.height=p+"px";var v="rotate("+s+"rad)";l.style.transform=v}}},e.prototype.updateBoxAfterOvmapIsRendered_=function(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=lg(this.ovmap_,zs.POSTRENDER,function(t){delete this.ovmapPostrenderKey_,this.updateBox_()},this))},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},e.prototype.handleToggle_=function(){this.element.classList.toggle(y_),this.collapsed_?Bp(this.collapseLabel_,this.label_):Bp(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;var t=this.ovmap_;if(!this.collapsed_){if(t.isRendered()){this.viewExtent_=void 0,t.render();return}t.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){!this.collapsible_||this.collapsed_===t||this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.setRotateWithView=function(t){this.rotateWithView_!==t&&(this.rotateWithView_=t,this.getMap().getView().getRotation()!==0&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))},e.prototype.getOverviewMap=function(){return this.ovmap_},e.prototype.render=function(t){this.validateExtent_(),this.updateBox_()},e}(_r),yq=gq,mq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),dC="units",vc={DEGREES:"degrees",IMPERIAL:"imperial",NAUTICAL:"nautical",METRIC:"metric",US:"us"},_q=[1,2,5],vC=25.4/.28,wq=function(r){mq(e,r);function e(t){var n=this,i=t||{},a=i.className!==void 0?i.className:i.bar?"ol-scale-bar":"ol-scale-line";return n=r.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this,n.on,n.once,n.un,n.innerElement_=document.createElement("div"),n.innerElement_.className=a+"-inner",n.element.className=a+" "+uA,n.element.appendChild(n.innerElement_),n.viewState_=null,n.minWidth_=i.minWidth!==void 0?i.minWidth:64,n.renderedVisible_=!1,n.renderedWidth_=void 0,n.renderedHTML_="",n.addChangeListener(dC,n.handleUnitsChanged_),n.setUnits(i.units||vc.METRIC),n.scaleBar_=i.bar||!1,n.scaleBarSteps_=i.steps||4,n.scaleBarText_=i.text||!1,n.dpi_=i.dpi||void 0,n}return e.prototype.getUnits=function(){return this.get(dC)},e.prototype.handleUnitsChanged_=function(){this.updateElement_()},e.prototype.setUnits=function(t){this.set(dC,t)},e.prototype.setDpi=function(t){this.dpi_=t},e.prototype.updateElement_=function(){var t=this.viewState_;if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}var n=t.center,i=t.projection,a=this.getUnits(),o=a==vc.DEGREES?Ha.DEGREES:Ha.METERS,s=T_(i,t.resolution,n,o),A=this.minWidth_*(this.dpi_||vC)/vC,l=A*s,u="";if(a==vc.DEGREES){var c=Is[Ha.DEGREES];l*=c,l=A)break;++h}var g;this.scaleBar_?g=this.createScaleBar(p,f,u):g=f.toFixed(v<0?-v:0)+" "+u,this.renderedHTML_!=g&&(this.innerElement_.innerHTML=g,this.renderedHTML_=g),this.renderedWidth_!=p&&(this.innerElement_.style.width=p+"px",this.renderedWidth_=p),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)},e.prototype.createScaleBar=function(t,n,i){for(var a="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),o=[],s=t/this.scaleBarSteps_,A="#ffffff",l=0;l
'+this.createMarker("relative",l)+(l%2===0||this.scaleBarSteps_===2?this.createStepText(l,t,!1,n,i):"")+""),l===this.scaleBarSteps_-1&&o.push(this.createStepText(l+1,t,!0,n,i)),A==="#ffffff"?A="#000000":A="#ffffff";var u;this.scaleBarText_?u='
'+a+"
":u="";var c='
'+u+o.join("")+"
";return c},e.prototype.createMarker=function(t,n){var i=t==="absolute"?3:-10;return'
'},e.prototype.createStepText=function(t,n,i,a,o){var s=t===0?0:Math.round(a/this.scaleBarSteps_*t*100)/100,A=s+(t===0?"":" "+o),l=t===0?-3:n/this.scaleBarSteps_*-1,u=t===0?0:n/this.scaleBarSteps_*2;return'
'+A+"
"},e.prototype.getScaleForResolution=function(){var t=T_(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,Ha.METERS),n=this.dpi_||vC,i=1e3/25.4;return parseFloat(t.toString())*i*n},e.prototype.render=function(t){var n=t.frameState;n?this.viewState_=n.viewState:this.viewState_=null,this.updateElement_()},e}(_r),Eq=wq,Cq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),kd={VERTICAL:0,HORIZONTAL:1},Bq=function(r){Cq(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),render:i.render})||this,n.dragListenerKeys_=[],n.currentResolution_=void 0,n.direction_=kd.VERTICAL,n.dragging_,n.heightLimit_=0,n.widthLimit_=0,n.startX_,n.startY_,n.thumbSize_=null,n.sliderInitialized_=!1,n.duration_=i.duration!==void 0?i.duration:200;var a=i.className!==void 0?i.className:"ol-zoomslider",o=document.createElement("button");o.setAttribute("type","button"),o.className=a+"-thumb "+uA;var s=n.element;return s.className=a+" "+uA+" "+Sh,s.appendChild(o),s.addEventListener(Ws.POINTERDOWN,n.handleDraggerStart_.bind(n),!1),s.addEventListener(Ws.POINTERMOVE,n.handleDraggerDrag_.bind(n),!1),s.addEventListener(Ws.POINTERUP,n.handleDraggerEnd_.bind(n),!1),s.addEventListener(ye.CLICK,n.handleContainerClick_.bind(n),!1),o.addEventListener(ye.CLICK,XY,!1),n}return e.prototype.setMap=function(t){r.prototype.setMap.call(this,t),t&&t.render()},e.prototype.initSlider_=function(){var t=this.element,n=t.offsetWidth,i=t.offsetHeight;if(n===0&&i===0)return this.sliderInitialized_=!1;var a=getComputedStyle(t);n-=parseFloat(a.paddingRight)+parseFloat(a.paddingLeft),i-=parseFloat(a.paddingTop)+parseFloat(a.paddingBottom);var o=t.firstElementChild,s=getComputedStyle(o),A=o.offsetWidth+parseFloat(s.marginRight)+parseFloat(s.marginLeft),l=o.offsetHeight+parseFloat(s.marginTop)+parseFloat(s.marginBottom);return this.thumbSize_=[A,l],n>i?(this.direction_=kd.HORIZONTAL,this.widthLimit_=n-A):(this.direction_=kd.VERTICAL,this.heightLimit_=i-l),this.sliderInitialized_=!0},e.prototype.handleContainerClick_=function(t){var n=this.getMap().getView(),i=this.getRelativePosition_(t.offsetX-this.thumbSize_[0]/2,t.offsetY-this.thumbSize_[1]/2),a=this.getResolutionForPosition_(i),o=n.getConstrainedZoom(n.getZoomForResolution(a));n.animateInternal({zoom:o,duration:this.duration_,easing:es})},e.prototype.handleDraggerStart_=function(t){if(!this.dragging_&&t.target===this.element.firstElementChild){var n=this.element.firstElementChild;if(this.getMap().getView().beginInteraction(),this.startX_=t.clientX-parseFloat(n.style.left),this.startY_=t.clientY-parseFloat(n.style.top),this.dragging_=!0,this.dragListenerKeys_.length===0){var i=this.handleDraggerDrag_,a=this.handleDraggerEnd_,o=this.getMap().getOwnerDocument();this.dragListenerKeys_.push(Pe(o,Ws.POINTERMOVE,i,this),Pe(o,Ws.POINTERUP,a,this))}}},e.prototype.handleDraggerDrag_=function(t){if(this.dragging_){var n=t.clientX-this.startX_,i=t.clientY-this.startY_,a=this.getRelativePosition_(n,i);this.currentResolution_=this.getResolutionForPosition_(a),this.getMap().getView().setResolution(this.currentResolution_)}},e.prototype.handleDraggerEnd_=function(t){if(this.dragging_){var n=this.getMap().getView();n.endInteraction(),this.dragging_=!1,this.startX_=void 0,this.startY_=void 0,this.dragListenerKeys_.forEach(Rr),this.dragListenerKeys_.length=0}},e.prototype.setThumbPosition_=function(t){var n=this.getPositionForResolution_(t),i=this.element.firstElementChild;this.direction_==kd.HORIZONTAL?i.style.left=this.widthLimit_*n+"px":i.style.top=this.heightLimit_*n+"px"},e.prototype.getRelativePosition_=function(t,n){var i;return this.direction_===kd.HORIZONTAL?i=t/this.widthLimit_:i=n/this.heightLimit_,Sn(i,0,1)},e.prototype.getResolutionForPosition_=function(t){var n=this.getMap().getView().getResolutionForValueFunction();return n(1-t)},e.prototype.getPositionForResolution_=function(t){var n=this.getMap().getView().getValueForResolutionFunction();return Sn(1-n(t),0,1)},e.prototype.render=function(t){if(t.frameState&&!(!this.sliderInitialized_&&!this.initSlider_())){var n=t.frameState.viewState.resolution;this.currentResolution_=n,this.setThumbPosition_(n)}},e}(_r),Tq=Bq,bq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Sq=function(r){bq(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),target:i.target})||this,n.extent=i.extent?i.extent:null;var a=i.className!==void 0?i.className:"ol-zoom-extent",o=i.label!==void 0?i.label:"E",s=i.tipLabel!==void 0?i.tipLabel:"Fit to extent",A=document.createElement("button");A.setAttribute("type","button"),A.title=s,A.appendChild(typeof o=="string"?document.createTextNode(o):o),A.addEventListener(ye.CLICK,n.handleClick_.bind(n),!1);var l=a+" "+uA+" "+Sh,u=n.element;return u.className=l,u.appendChild(A),n}return e.prototype.handleClick_=function(t){t.preventDefault(),this.handleZoomToExtent()},e.prototype.handleZoomToExtent=function(){var t=this.getMap(),n=t.getView(),i=this.extent?this.extent:n.getProjection().getExtent();n.fitInternal(Hu(i))},e}(_r),xq=Sq;function Iq(r){var e=r||{},t=new Ai,n=e.zoom!==void 0?e.zoom:!0;n&&t.push(new bQ(e.zoomOptions));var i=e.rotate!==void 0?e.rotate:!0;i&&t.push(new TQ(e.rotateOptions));var a=e.attribution!==void 0?e.attribution:!0;return a&&t.push(new BQ(e.attributionOptions)),t}var qT={ACTIVE:"active"},Fq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Lq=function(r){Fq(e,r);function e(t){var n=r.call(this)||this;return n.on,n.once,n.un,t&&t.handleEvent&&(n.handleEvent=t.handleEvent),n.map_=null,n.setActive(!0),n}return e.prototype.getActive=function(){return this.get(qT.ACTIVE)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(qT.ACTIVE,t)},e.prototype.setMap=function(t){this.map_=t},e}(ui);function Oq(r,e,t){var n=r.getCenterInternal();if(n){var i=[n[0]+e[0],n[1]+e[1]];r.animateInternal({duration:t!==void 0?t:250,easing:XI,center:r.getConstrainedCenter(i)})}}function aF(r,e,t,n){var i=r.getZoom();if(i!==void 0){var a=r.getConstrainedZoom(i+e),o=r.getResolutionForZoom(a);r.getAnimating()&&r.cancelAnimations(),r.animate({resolution:o,anchor:t,duration:n!==void 0?n:250,easing:es})}}var Kp=Lq,Rq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Mq=function(r){Rq(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.delta_=i.delta?i.delta:1,n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleEvent=function(t){var n=!1;if(t.type==ar.DBLCLICK){var i=t.originalEvent,a=t.map,o=t.coordinate,s=i.shiftKey?-this.delta_:this.delta_,A=a.getView();aF(A,s,o,this.duration_),i.preventDefault(),n=!0}return!n},e}(Kp),Nq=Mq,Pq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Uq=function(r){Pq(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,i)||this,i.handleDownEvent&&(n.handleDownEvent=i.handleDownEvent),i.handleDragEvent&&(n.handleDragEvent=i.handleDragEvent),i.handleMoveEvent&&(n.handleMoveEvent=i.handleMoveEvent),i.handleUpEvent&&(n.handleUpEvent=i.handleUpEvent),i.stopDown&&(n.stopDown=i.stopDown),n.handlingDownUpSequence=!1,n.trackedPointers_={},n.targetPointers=[],n}return e.prototype.getPointerCount=function(){return this.targetPointers.length},e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;var n=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==ar.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==ar.POINTERUP){var i=this.handleUpEvent(t);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(t.type==ar.POINTERDOWN){var a=this.handleDownEvent(t);this.handlingDownUpSequence=a,n=this.stopDown(a)}else t.type==ar.POINTERMOVE&&this.handleMoveEvent(t);return!n},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){if(Dq(t)){var n=t.originalEvent,i=n.pointerId.toString();t.type==ar.POINTERUP?delete this.trackedPointers_[i]:t.type==ar.POINTERDOWN?this.trackedPointers_[i]=n:i in this.trackedPointers_&&(this.trackedPointers_[i]=n),this.targetPointers=UI(this.trackedPointers_)}},e}(Kp);function oF(r){for(var e=r.length,t=0,n=0,i=0;i0&&this.condition_(t)){var n=t.map,i=n.getView();return this.lastCentroid=null,i.getAnimating()&&i.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}else return!1},e}(Uo),Yq=zq,Xq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Wq=function(r){Xq(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,{stopDown:Ch})||this,n.condition_=i.condition?i.condition:LQ,n.lastAngle_=void 0,n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleDragEvent=function(t){if(qc(t)){var n=t.map,i=n.getView();if(i.getConstraints().rotation!==zI){var a=n.getSize(),o=t.pixel,s=Math.atan2(a[1]/2-o[1],o[0]-a[0]/2);if(this.lastAngle_!==void 0){var A=s-this.lastAngle_;i.adjustRotationInternal(-A)}this.lastAngle_=s}}},e.prototype.handleUpEvent=function(t){if(!qc(t))return!0;var n=t.map,i=n.getView();return i.endInteraction(this.duration_),!1},e.prototype.handleDownEvent=function(t){if(!qc(t))return!1;if(AF(t)&&this.condition_(t)){var n=t.map;return n.getView().beginInteraction(),this.lastAngle_=void 0,!0}else return!1},e}(Uo),qq=Wq,Zq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Jq=function(r){Zq(e,r);function e(t){var n=r.call(this)||this;return n.geometry_=null,n.element_=document.createElement("div"),n.element_.style.position="absolute",n.element_.style.pointerEvents="auto",n.element_.className="ol-box "+t,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,n=this.endPixel_,i="px",a=this.element_.style;a.left=Math.min(t[0],n[0])+i,a.top=Math.min(t[1],n[1])+i,a.width=Math.abs(n[0]-t[0])+i,a.height=Math.abs(n[1]-t[1])+i},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var n=this.element_.style;n.left="inherit",n.top="inherit",n.width="inherit",n.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,n){this.startPixel_=t,this.endPixel_=n,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,n=this.endPixel_,i=[t,[t[0],n[1]],n,[n[0],t[1]]],a=i.map(this.map_.getCoordinateFromPixelInternal,this.map_);a[4]=a[0].slice(),this.geometry_?this.geometry_.setCoordinates([a]):this.geometry_=new xn([a])},e.prototype.getGeometry=function(){return this.geometry_},e}(V1),t3=Jq,RQ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),bm={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},gC=function(r){RQ(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.coordinate=n,a.mapBrowserEvent=i,a}return e}(po),e3=function(r){RQ(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un;var i=t||{};return n.box_=new t3(i.className||"ol-dragbox"),n.minArea_=i.minArea!==void 0?i.minArea:64,i.onBoxEnd&&(n.onBoxEnd=i.onBoxEnd),n.startPixel_=null,n.condition_=i.condition?i.condition:AF,n.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:n.defaultBoxEndCondition,n}return e.prototype.defaultBoxEndCondition=function(t,n,i){var a=i[0]-n[0],o=i[1]-n[1];return a*a+o*o>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new gC(bm.BOXDRAG,t.coordinate,t))},e.prototype.handleUpEvent=function(t){this.box_.setMap(null);var n=this.boxEndCondition_(t,this.startPixel_,t.pixel);return n&&this.onBoxEnd(t),this.dispatchEvent(new gC(n?bm.BOXEND:bm.BOXCANCEL,t.coordinate,t)),!1},e.prototype.handleDownEvent=function(t){return this.condition_(t)?(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new gC(bm.BOXSTART,t.coordinate,t)),!0):!1},e.prototype.onBoxEnd=function(t){},e}(Uo),r3=e3,n3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),i3=function(r){n3(e,r);function e(t){var n=this,i=t||{},a=i.condition?i.condition:Jg;return n=r.call(this,{condition:a,className:i.className||"ol-dragzoom",minArea:i.minArea})||this,n.duration_=i.duration!==void 0?i.duration:200,n.out_=i.out!==void 0?i.out:!1,n}return e.prototype.onBoxEnd=function(t){var n=this.getMap(),i=n.getView(),a=this.getGeometry();if(this.out_){var o=i.rotatedExtentForGeometry(a),s=i.getResolutionForExtentInternal(o),A=i.getResolution()/s;a=a.clone(),a.scale(A*A)}i.fitInternal(a,{duration:this.duration_,easing:es})},e}(r3),a3=i3,gc={LEFT:37,UP:38,RIGHT:39,DOWN:40},o3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),s3=function(r){o3(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.defaultCondition_=function(a){return iw(a)&&lF(a)},n.condition_=i.condition!==void 0?i.condition:n.defaultCondition_,n.duration_=i.duration!==void 0?i.duration:100,n.pixelDelta_=i.pixelDelta!==void 0?i.pixelDelta:128,n}return e.prototype.handleEvent=function(t){var n=!1;if(t.type==ye.KEYDOWN){var i=t.originalEvent,a=i.keyCode;if(this.condition_(t)&&(a==gc.DOWN||a==gc.LEFT||a==gc.RIGHT||a==gc.UP)){var o=t.map,s=o.getView(),A=s.getResolution()*this.pixelDelta_,l=0,u=0;a==gc.DOWN?u=-A:a==gc.LEFT?l=-A:a==gc.RIGHT?l=A:u=A;var c=[l,u];HI(c,s.getRotation()),Oq(s,c,this.duration_),i.preventDefault(),n=!0}}return!n},e}(Kp),A3=s3,l3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),u3=function(r){l3(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.condition_=i.condition?i.condition:lF,n.delta_=i.delta?i.delta:1,n.duration_=i.duration!==void 0?i.duration:100,n}return e.prototype.handleEvent=function(t){var n=!1;if(t.type==ye.KEYDOWN||t.type==ye.KEYPRESS){var i=t.originalEvent,a=i.charCode;if(this.condition_(t)&&(a=="+".charCodeAt(0)||a=="-".charCodeAt(0))){var o=t.map,s=a=="+".charCodeAt(0)?this.delta_:-this.delta_,A=o.getView();aF(A,s,void 0,this.duration_),i.preventDefault(),n=!0}}return!n},e}(Kp),c3=u3,h3=function(){function r(e,t,n){this.decay_=e,this.minVelocity_=t,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return r.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},r.prototype.update=function(e,t){this.points_.push(e,t,Date.now())},r.prototype.end=function(){if(this.points_.length<6)return!1;var e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]0&&this.points_[n+2]>e;)n-=3;var i=this.points_[t+2]-this.points_[n+2];if(i<1e3/60)return!1;var a=this.points_[t]-this.points_[n],o=this.points_[t+1]-this.points_[n+1];return this.angle_=Math.atan2(o,a),this.initialVelocity_=Math.sqrt(a*a+o*o)/i,this.initialVelocity_>this.minVelocity_},r.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},r.prototype.getAngle=function(){return this.angle_},r}(),f3=h3,p3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),yC={TRACKPAD:"trackpad",WHEEL:"wheel"},d3=function(r){p3(e,r);function e(t){var n=this,i=t||{};n=r.call(this,i)||this,n.totalDelta_=0,n.lastDelta_=0,n.maxDelta_=i.maxDelta!==void 0?i.maxDelta:1,n.duration_=i.duration!==void 0?i.duration:250,n.timeout_=i.timeout!==void 0?i.timeout:80,n.useAnchor_=i.useAnchor!==void 0?i.useAnchor:!0,n.constrainResolution_=i.constrainResolution!==void 0?i.constrainResolution:!1;var a=i.condition?i.condition:rw;return n.condition_=i.onFocusOnly?x_(sF,a):a,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.deltaPerZoom_=300,n}return e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap().getView();t.endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var n=t.type;if(n!==ye.WHEEL)return!0;var i=t.map,a=t.originalEvent;a.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate);var o;if(t.type==ye.WHEEL&&(o=a.deltaY,wY&&a.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(o/=uh),a.deltaMode===WheelEvent.DOM_DELTA_LINE&&(o*=40)),o===0)return!1;this.lastDelta_=o;var s=Date.now();this.startTime_===void 0&&(this.startTime_=s),(!this.mode_||s-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(o)<4?yC.TRACKPAD:yC.WHEEL);var A=i.getView();if(this.mode_===yC.TRACKPAD&&!(A.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(A.getAnimating()&&A.cancelAnimations(),A.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),A.adjustZoom(-o/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=s,!1;this.totalDelta_+=o;var l=Math.max(this.timeout_-(s-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),l),!1},e.prototype.handleWheelZoom_=function(t){var n=t.getView();n.getAnimating()&&n.cancelAnimations();var i=-Sn(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(n.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),aF(n,i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(Kp),v3=d3,g3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),y3=function(r){g3(e,r);function e(t){var n=this,i=t||{},a=i;return a.stopDown||(a.stopDown=Ch),n=r.call(this,a)||this,n.anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=i.threshold!==void 0?i.threshold:.3,n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleDragEvent=function(t){var n=0,i=this.targetPointers[0],a=this.targetPointers[1],o=Math.atan2(a.clientY-i.clientY,a.clientX-i.clientX);if(this.lastAngle_!==void 0){var s=o-this.lastAngle_;this.rotationDelta_+=s,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),n=s}this.lastAngle_=o;var A=t.map,l=A.getView();if(l.getConstraints().rotation!==zI){var u=A.getViewport().getBoundingClientRect(),c=oF(this.targetPointers);c[0]-=u.left,c[1]-=u.top,this.anchor_=A.getCoordinateFromPixelInternal(c),this.rotating_&&(A.render(),l.adjustRotationInternal(n,this.anchor_))}},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var n=t.map,i=n.getView();return i.endInteraction(this.duration_),!1}else return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var n=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||n.getView().beginInteraction(),!0}else return!1},e}(Uo),m3=y3,_3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),w3=function(r){_3(e,r);function e(t){var n=this,i=t||{},a=i;return a.stopDown||(a.stopDown=Ch),n=r.call(this,a)||this,n.anchor_=null,n.duration_=i.duration!==void 0?i.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return e.prototype.handleDragEvent=function(t){var n=1,i=this.targetPointers[0],a=this.targetPointers[1],o=i.clientX-a.clientX,s=i.clientY-a.clientY,A=Math.sqrt(o*o+s*s);this.lastDistance_!==void 0&&(n=this.lastDistance_/A),this.lastDistance_=A;var l=t.map,u=l.getView();n!=1&&(this.lastScaleDelta_=n);var c=l.getViewport().getBoundingClientRect(),h=oF(this.targetPointers);h[0]-=c.left,h[1]-=c.top,this.anchor_=l.getCoordinateFromPixelInternal(h),l.render(),u.adjustResolutionInternal(n,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var n=t.map,i=n.getView(),a=this.lastScaleDelta_>1?1:-1;return i.endInteraction(this.duration_,a),!1}else return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var n=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||n.getView().beginInteraction(),!0}else return!1},e}(Uo),E3=w3,Bs={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"},C3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),B3=function(r){C3(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,i)||this,n.condition_=i.condition?i.condition:Jg,n.lastAngle_=void 0,n.lastMagnitude_=void 0,n.lastScaleDelta_=0,n.duration_=i.duration!==void 0?i.duration:400,n}return e.prototype.handleDragEvent=function(t){if(qc(t)){var n=t.map,i=n.getSize(),a=t.pixel,o=a[0]-i[0]/2,s=i[1]/2-a[1],A=Math.atan2(s,o),l=Math.sqrt(o*o+s*s),u=n.getView();if(this.lastAngle_!==void 0){var c=this.lastAngle_-A;u.adjustRotationInternal(c)}this.lastAngle_=A,this.lastMagnitude_!==void 0&&u.adjustResolutionInternal(this.lastMagnitude_/l),this.lastMagnitude_!==void 0&&(this.lastScaleDelta_=this.lastMagnitude_/l),this.lastMagnitude_=l}},e.prototype.handleUpEvent=function(t){if(!qc(t))return!0;var n=t.map,i=n.getView(),a=this.lastScaleDelta_>1?1:-1;return i.endInteraction(this.duration_,a),this.lastScaleDelta_=0,!1},e.prototype.handleDownEvent=function(t){return qc(t)&&this.condition_(t)?(t.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0,!0):!1},e}(Uo),T3=B3,b3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),MQ=function(r){b3(e,r);function e(t,n,i){var a=r.call(this)||this;if(i!==void 0&&n===void 0)a.setFlatCoordinates(i,t);else{var o=n||0;a.setCenterAndRadius(t,o,i)}return a}return e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,n,i,a){var o=this.flatCoordinates,s=t-o[0],A=n-o[1],l=s*s+A*A;if(l=i[0]||t[1]<=i[1]&&t[3]>=i[1]?!0:X1(t,this.intersectsCoordinate.bind(this))}return!1},e.prototype.setCenter=function(t){var n=this.stride,i=this.flatCoordinates[n]-this.flatCoordinates[0],a=t.slice();a[n]=a[0]+i;for(var o=1;o1?o:2,B=a||new Array(E),p=0;p>1;it;){if(n-t>600){var a=n-t+1,o=e-t+1,s=Math.log(a),A=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*A*(a-A)/a)*(o-a/2<0?-1:1),u=Math.max(t,Math.floor(e-o*A/a+l)),c=Math.min(n,Math.floor(e+(a-o)*A/a+l));UQ(r,e,u,c,i)}var h=r[e],f=t,p=n;for($d(r,t,e),i(r[n],h)>0&&$d(r,t,n);f0;)p--}i(r[t],h)===0?$d(r,t,p):(p++,$d(r,p,n)),p<=e&&(t=p+1),e<=p&&(n=p-1)}}function $d(r,e,t){var n=r[e];r[e]=r[t],r[t]=n}function H3(r,e){return re?1:0}class DQ{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(e){let t=this.data;const n=[];if(!xm(e,t))return n;const i=this.toBBox,a=[];for(;t;){for(let o=0;o=0&&a[t].children.length>this._maxEntries;)this._split(a,t),t--;this._adjustParentBBoxes(i,a,t)}_split(e,t){const n=e[t],i=n.children.length,a=this._minEntries;this._chooseSplitAxis(n,a,i);const o=this._chooseSplitIndex(n,a,i),s=Mf(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,hf(n,this.toBBox),hf(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)}_splitRoot(e,t){this.data=Mf([e,t]),this.data.height=e.height+1,this.data.leaf=!1,hf(this.data,this.toBBox)}_chooseSplitIndex(e,t,n){let i,a=1/0,o=1/0;for(let s=t;s<=n-t;s++){const A=hv(e,0,s,this.toBBox),l=hv(e,s,n,this.toBBox),u=j3(A,l),c=mC(A)+mC(l);u=t;l--){const u=e.children[l];fv(s,e.leaf?a(u):u),A+=Sm(s)}return A}_adjustParentBBoxes(e,t,n){for(let i=n;i>=0;i--)fv(t[i],e)}_condense(e){for(let t=e.length-1,n;t>=0;t--)e[t].children.length===0?t>0?(n=e[t-1].children,n.splice(n.indexOf(e[t]),1)):this.clear():hf(e[t],this.toBBox)}}function G3(r,e,t){if(!t)return e.indexOf(r);for(let n=0;n=r.minX&&e.maxY>=r.minY}function Mf(r){return{children:r,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function EM(r,e,t,n,i){const a=[e,t];for(;a.length;){if(t=a.pop(),e=a.pop(),t-e<=n)continue;const o=e+Math.ceil((t-e)/n/2)*n;Q3(r,o,e,t,i),a.push(e,o,o,t)}}var $e={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4},K3=function(){function r(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=Ui(e.scale),this.displacement_=e.displacement}return r.prototype.clone=function(){var e=this.getScale();return new r({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()})},r.prototype.getOpacity=function(){return this.opacity_},r.prototype.getRotateWithView=function(){return this.rotateWithView_},r.prototype.getRotation=function(){return this.rotation_},r.prototype.getScale=function(){return this.scale_},r.prototype.getScaleArray=function(){return this.scaleArray_},r.prototype.getDisplacement=function(){return this.displacement_},r.prototype.getAnchor=function(){return Be()},r.prototype.getImage=function(e){return Be()},r.prototype.getHitDetectionImage=function(){return Be()},r.prototype.getPixelRatio=function(e){return 1},r.prototype.getImageState=function(){return Be()},r.prototype.getImageSize=function(){return Be()},r.prototype.getOrigin=function(){return Be()},r.prototype.getSize=function(){return Be()},r.prototype.setDisplacement=function(e){this.displacement_=e},r.prototype.setOpacity=function(e){this.opacity_=e},r.prototype.setRotateWithView=function(e){this.rotateWithView_=e},r.prototype.setRotation=function(e){this.rotation_=e},r.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=Ui(e)},r.prototype.listenImageChange=function(e){Be()},r.prototype.load=function(){Be()},r.prototype.unlistenImageChange=function(e){Be()},r}(),QQ=K3;function tA(r){return Array.isArray(r)?z6(r):r}var z3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Y3=function(r){z3(e,r);function e(t){var n=this,i=t.rotateWithView!==void 0?t.rotateWithView:!1;return n=r.call(this,{opacity:1,rotateWithView:i,rotation:t.rotation!==void 0?t.rotation:0,scale:t.scale!==void 0?t.scale:1,displacement:t.displacement!==void 0?t.displacement:[0,0]})||this,n.canvas_=void 0,n.hitDetectionCanvas_=null,n.fill_=t.fill!==void 0?t.fill:null,n.origin_=[0,0],n.points_=t.points,n.radius_=t.radius!==void 0?t.radius:t.radius1,n.radius2_=t.radius2,n.angle_=t.angle!==void 0?t.angle:0,n.stroke_=t.stroke!==void 0?t.stroke:null,n.size_=null,n.renderOptions_=null,n.render(),n}return e.prototype.clone=function(){var t=this.getScale(),n=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice()});return n.setOpacity(this.getOpacity()),n},e.prototype.getAnchor=function(){var t=this.size_;if(!t)return null;var n=this.getDisplacement();return[t[0]/2-n[0],t[1]/2+n[1]]},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},e.prototype.getImage=function(t){var n=this.canvas_[t];if(!n){var i=this.renderOptions_,a=Ka(i.size*t,i.size*t);this.draw_(i,a,t),n=a.canvas,this.canvas_[t]=n}return n},e.prototype.getPixelRatio=function(t){return t},e.prototype.getImageSize=function(){return this.size_},e.prototype.getImageState=function(){return $e.LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.calculateLineJoinSize_=function(t,n,i){if(n===0||this.points_===1/0||t!=="bevel"&&t!=="miter")return n;var a=this.radius_,o=this.radius2_===void 0?a:this.radius2_;if(aA&&(this.instructions.push([Qe.CUSTOM,A,u,t,i,ZA]),this.hitDetectionInstructions.push([Qe.CUSTOM,A,u,t,a||i,ZA]));break;case st.POINT:l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),u=this.coordinates.length,this.instructions.push([Qe.CUSTOM,A,u,t,i]),this.hitDetectionInstructions.push([Qe.CUSTOM,A,u,t,a||i]);break}this.endGeometry(n)},e.prototype.beginGeometry=function(t,n){this.beginGeometryInstruction1_=[Qe.BEGIN_GEOMETRY,n,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[Qe.BEGIN_GEOMETRY,n,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t=this.hitDetectionInstructions;t.reverse();var n,i=t.length,a,o,s=-1;for(n=0;nthis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0},e.prototype.createFill=function(t){var n=t.fillStyle,i=[Qe.SET_FILL_STYLE,n];return typeof n!="string"&&i.push(!0),i},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[Qe.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,n){var i=t.fillStyle;(typeof i!="string"||t.currentFillStyle!=i)&&(i!==void 0&&this.instructions.push(n.call(this,t)),t.currentFillStyle=i)},e.prototype.updateStrokeStyle=function(t,n){var i=t.strokeStyle,a=t.lineCap,o=t.lineDash,s=t.lineDashOffset,A=t.lineJoin,l=t.lineWidth,u=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=a||o!=t.currentLineDash&&!ml(t.currentLineDash,o)||t.currentLineDashOffset!=s||t.currentLineJoin!=A||t.currentLineWidth!=l||t.currentMiterLimit!=u)&&(i!==void 0&&n.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=a,t.currentLineDash=o,t.currentLineDashOffset=s,t.currentLineJoin=A,t.currentLineWidth=l,t.currentMiterLimit=u)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var n=[Qe.END_GEOMETRY,t];this.instructions.push(n),this.hitDetectionInstructions.push(n)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=OI(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;ja(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(HQ),ry=aZ,oZ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),sZ=function(r){oZ(e,r);function e(t,n,i,a){var o=r.call(this,t,n,i,a)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterImageWithText_=void 0,o}return e.prototype.drawPoint=function(t,n){if(this.image_){this.beginGeometry(t,n);var i=t.getFlatCoordinates(),a=t.getStride(),o=this.coordinates.length,s=this.appendFlatPointCoordinates(i,a);this.instructions.push([Qe.DRAW_IMAGE,o,s,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([Qe.DRAW_IMAGE,o,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(n)}},e.prototype.drawMultiPoint=function(t,n){if(this.image_){this.beginGeometry(t,n);var i=t.getFlatCoordinates(),a=t.getStride(),o=this.coordinates.length,s=this.appendFlatPointCoordinates(i,a);this.instructions.push([Qe.DRAW_IMAGE,o,s,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([Qe.DRAW_IMAGE,o,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(n)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,r.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,n){var i=t.getAnchor(),a=t.getSize(),o=t.getHitDetectionImage(),s=t.getImage(this.pixelRatio),A=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=o,this.image_=s,this.height_=a[1],this.opacity_=t.getOpacity(),this.originX_=A[0]*this.imagePixelRatio_,this.originY_=A[1]*this.imagePixelRatio_,this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=a[0],this.declutterImageWithText_=n},e}(ry),AZ=sZ,lZ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),uZ=function(r){lZ(e,r);function e(t,n,i,a){return r.call(this,t,n,i,a)||this}return e.prototype.drawFlatCoordinates_=function(t,n,i,a){var o=this.coordinates.length,s=this.appendFlatLineCoordinates(t,n,i,a,!1,!1),A=[Qe.MOVE_TO_LINE_TO,o,s];return this.instructions.push(A),this.hitDetectionInstructions.push(A),i},e.prototype.drawLineString=function(t,n){var i=this.state,a=i.strokeStyle,o=i.lineWidth;if(!(a===void 0||o===void 0)){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,n),this.hitDetectionInstructions.push([Qe.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,ug,cg],Qc);var s=t.getFlatCoordinates(),A=t.getStride();this.drawFlatCoordinates_(s,0,s.length,A),this.hitDetectionInstructions.push(uu),this.endGeometry(n)}},e.prototype.drawMultiLineString=function(t,n){var i=this.state,a=i.strokeStyle,o=i.lineWidth;if(!(a===void 0||o===void 0)){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,n),this.hitDetectionInstructions.push([Qe.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],Qc);for(var s=t.getEnds(),A=t.getFlatCoordinates(),l=t.getStride(),u=0,c=0,h=s.length;cr&&(A>s&&(s=A,a=l,o=c),A=0,l=c-i)),h=f,m=_,g=E),p=B,v=L}return A+=f,A>s?[l,c]:[a,o]}var dZ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),F_={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},vZ=function(r){dZ(e,r);function e(t,n,i,a){var o=r.call(this,t,n,i,a)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return e.prototype.finish=function(){var t=r.prototype.finish.call(this);return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t},e.prototype.drawText=function(t,n){var i=this.textFillState_,a=this.textStrokeState_,o=this.textState_;if(!(this.text_===""||!o||!i&&!a)){var s=this.coordinates,A=s.length,l=t.getType(),u=null,c=t.getStride();if(o.placement===GQ.LINE&&(l==st.LINE_STRING||l==st.MULTI_LINE_STRING||l==st.POLYGON||l==st.MULTI_POLYGON)){if(!Pn(this.getBufferedMaxExtent(),t.getExtent()))return;var h=void 0;if(u=t.getFlatCoordinates(),l==st.LINE_STRING)h=[u.length];else if(l==st.MULTI_LINE_STRING)h=t.getEnds();else if(l==st.POLYGON)h=t.getEnds().slice(0,1);else if(l==st.MULTI_POLYGON){var f=t.getEndss();h=[];for(var p=0,v=f.length;pb[2]}else S=B>I;var N=Math.PI,P=[],X=O+n===e;e=O,m=0,g=x,h=r[e],f=r[e+1];var z;if(X){_(),z=Math.atan2(f-v,h-p),S&&(z+=z>0?-N:N);var tt=(I+B)/2,J=(M+L)/2;return P[0]=[tt,J,(T-a)/2,z,i],P}for(var nt=0,it=i.length;nt0?-N:N),z!==void 0){var R=_t-z;if(R+=R>N?-2*N:R<-N?2*N:0,Math.abs(R)>o)return null}z=_t;for(var $=nt,K=0;nt0&&r.push(` +`,""),r.push(e,""),r}var xZ=function(){function r(e,t,n,i){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=si(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={}}return r.prototype.createLabel=function(e,t,n,i){var a=e+t+n+i;if(this.labels_[a])return this.labels_[a];var o=i?this.strokeStates[i]:null,s=n?this.fillStates[n]:null,A=this.textStates[t],l=this.pixelRatio,u=[A.scale[0]*l,A.scale[1]*l],c=Array.isArray(e),h=xM(c?e[0]:e,A.textAlign||pg),f=i&&o.lineWidth?o.lineWidth:0,p=c?e:e.split(` +`).reduce(SZ,[]),v=_X(A,p),m=v.width,g=v.height,_=v.widths,E=v.heights,B=v.lineWidths,L=m+f,O=[],x=(L+2)*u[0],T=(g+f)*u[1],I={width:x<0?Math.floor(x):Math.ceil(x),height:T<0?Math.floor(T):Math.ceil(T),contextInstructions:O};if((u[0]!=1||u[1]!=1)&&O.push("scale",u),i){O.push("strokeStyle",o.strokeStyle),O.push("lineWidth",f),O.push("lineCap",o.lineCap),O.push("lineJoin",o.lineJoin),O.push("miterLimit",o.miterLimit);var M=K1?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;M.prototype.setLineDash&&(O.push("setLineDash",[o.lineDash]),O.push("lineDashOffset",o.lineDashOffset))}n&&O.push("fillStyle",s.fillStyle),O.push("textBaseline","middle"),O.push("textAlign","center");for(var S=.5-h,b=h*L+S*f,N=[],P=[],X=0,z=0,tt=0,J=0,nt,it=0,_t=p.length;it<_t;it+=2){var R=p[it];if(R===` +`){z+=X,X=0,b=h*L+S*f,++J;continue}var $=p[it+1]||A.font;$!==nt&&(i&&N.push("font",$),n&&P.push("font",$),nt=$),X=Math.max(X,E[tt]);var K=[R,b+S*_[tt]+h*(_[tt]-B[J]),.5*(f+X)+z];b+=_[tt],i&&N.push("strokeText",K),n&&P.push("fillText",K),++tt}return Array.prototype.push.apply(O,N),Array.prototype.push.apply(O,P),this.labels_[a]=I,I},r.prototype.replayTextBackground_=function(e,t,n,i,a,o,s){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,n),e.lineTo.apply(e,i),e.lineTo.apply(e,a),e.lineTo.apply(e,t),o&&(this.alignFill_=o[2],this.fill_(e)),s&&(this.setStrokeStyle_(e,s),e.stroke())},r.prototype.calculateImageOrLabelDimensions_=function(e,t,n,i,a,o,s,A,l,u,c,h,f,p,v,m){s*=h[0],A*=h[1];var g=n-s,_=i-A,E=a+l>e?e-l:a,B=o+u>t?t-u:o,L=p[3]+E*h[0]+p[1],O=p[0]+B*h[1]+p[2],x=g-p[3],T=_-p[0];(v||c!==0)&&(zl[0]=x,Yl[0]=x,zl[1]=T,MA[1]=T,MA[0]=x+L,NA[0]=MA[0],NA[1]=T+O,Yl[1]=NA[1]);var I;return c!==0?(I=Va(si(),n,i,1,1,c,-n,-i),cn(I,zl),cn(I,MA),cn(I,NA),cn(I,Yl),co(Math.min(zl[0],MA[0],NA[0],Yl[0]),Math.min(zl[1],MA[1],NA[1],Yl[1]),Math.max(zl[0],MA[0],NA[0],Yl[0]),Math.max(zl[1],MA[1],NA[1],Yl[1]),ff)):co(Math.min(x,x+L),Math.min(T,T+O),Math.max(x,x+L),Math.max(T,T+O),ff),f&&(g=Math.round(g),_=Math.round(_)),{drawImageX:g,drawImageY:_,drawImageW:E,drawImageH:B,originX:l,originY:u,declutterBox:{minX:ff[0],minY:ff[1],maxX:ff[2],maxY:ff[3],value:m},canvasTransform:I,scale:h}},r.prototype.replayImageOrLabel_=function(e,t,n,i,a,o,s){var A=!!(o||s),l=i.declutterBox,u=e.canvas,c=s?s[2]*i.scale[0]/2:0,h=l.minX-c<=u.width/t&&l.maxX+c>=0&&l.minY-c<=u.height/t&&l.maxY+c>=0;return h&&(A&&this.replayTextBackground_(e,zl,MA,NA,Yl,o,s),wX(e,i.canvasTransform,a,n,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0},r.prototype.fill_=function(e){if(this.alignFill_){var t=cn(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;e.save(),e.translate(t[0]%n,t[1]%n),e.rotate(this.viewRotation_)}e.fill(),this.alignFill_&&e.restore()},r.prototype.setStrokeStyle_=function(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.setLineDash&&(e.lineDashOffset=t[7],e.setLineDash(t[6]))},r.prototype.drawLabelWithPointPlacement_=function(e,t,n,i){var a=this.textStates[t],o=this.createLabel(e,t,i,n),s=this.strokeStates[n],A=this.pixelRatio,l=xM(Array.isArray(e)?e[0]:e,a.textAlign||pg),u=F_[a.textBaseline||w_],c=s&&s.lineWidth?s.lineWidth:0,h=o.width/A-2*a.scale[0],f=l*h+2*(.5-l)*c,p=u*o.height/A+2*(.5-u)*c;return{label:o,anchorX:f,anchorY:p}},r.prototype.execute_=function(e,t,n,i,a,o,s,A){var l;this.pixelCoordinates_&&ml(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=Tu(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),xY(this.renderedTransform_,n));for(var u=0,c=i.length,h=0,f,p,v,m,g,_,E,B,L,O,x,T,I=0,M=0,S=null,b=null,N=this.coordinateCache_,P=this.viewRotation_,X=Math.round(Math.atan2(-n[1],n[0])*1e12)/1e12,z={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:P},tt=this.instructions!=i||this.overlaps?0:200,J,nt,it,_t;utt&&(this.fill_(e),I=0),M>tt&&(e.stroke(),M=0),!I&&!M&&(e.beginPath(),m=NaN,g=NaN),++u;break;case Qe.CIRCLE:h=R[1];var K=l[h],q=l[h+1],at=l[h+2],vt=l[h+3],wt=at-K,W=vt-q,It=Math.sqrt(wt*wt+W*W);e.moveTo(K+It,q),e.arc(K,q,It,0,2*Math.PI,!0),++u;break;case Qe.CLOSE_PATH:e.closePath(),++u;break;case Qe.CUSTOM:h=R[1],f=R[2];var Ot=R[3],j=R[4],Z=R.length==6?R[5]:void 0;z.geometry=Ot,z.feature=J,u in N||(N[u]=[]);var ut=N[u];Z?Z(l,h,f,2,ut):(ut[0]=l[h],ut[1]=l[h+1],ut.length=2),j(ut,z),++u;break;case Qe.DRAW_IMAGE:h=R[1],f=R[2],B=R[3],p=R[4],v=R[5];var rt=R[6],G=R[7],St=R[8],xt=R[9],dt=R[10],Et=R[11],yt=R[12],bt=R[13],Ft=R[14];if(!B&&R.length>=19){L=R[18],O=R[19],x=R[20],T=R[21];var Mt=this.drawLabelWithPointPlacement_(L,O,x,T);B=Mt.label,R[3]=B;var Vt=R[22];p=(Mt.anchorX-Vt)*this.pixelRatio,R[4]=p;var Yt=R[23];v=(Mt.anchorY-Yt)*this.pixelRatio,R[5]=v,rt=B.height,R[6]=rt,bt=B.width,R[13]=bt}var ie=void 0;R.length>24&&(ie=R[24]);var ee=void 0,Xt=void 0,oe=void 0;R.length>16?(ee=R[15],Xt=R[16],oe=R[17]):(ee=Uc,Xt=!1,oe=!1),dt&&X?Et+=P:!dt&&!X&&(Et-=P);for(var Kt=0;h0){if(!o||f!==Ar.IMAGE&&f!==Ar.TEXT||o.indexOf(O)!==-1){var S=(h[I]-3)/4,b=i-S%s,N=i-(S/s|0),P=a(O,x,b*b+N*N);if(P)return P}u.clearRect(0,0,s,s);break}}var v=Object.keys(this.executorsByZIndex_).map(Number);v.sort(Nu);var m,g,_,E,B;for(m=v.length-1;m>=0;--m){var L=v[m].toString();for(_=this.executorsByZIndex_[L],g=EC.length-1;g>=0;--g)if(f=EC[g],E=_[f],E!==void 0&&(B=E.executeHitDetection(u,A,n,p,c),B))return B}},r.prototype.getClipCoords=function(e){var t=this.maxExtent_;if(!t)return null;var n=t[0],i=t[1],a=t[2],o=t[3],s=[n,i,n,o,a,o,a,i];return Tu(s,0,8,2,e,s),s},r.prototype.isEmpty=function(){return hh(this.executorsByZIndex_)},r.prototype.execute=function(e,t,n,i,a,o,s){var A=Object.keys(this.executorsByZIndex_).map(Number);A.sort(Nu),this.maxExtent_&&(e.save(),this.clip(e,n));var l=o||EC,u,c,h,f,p,v;for(s&&A.reverse(),u=0,c=A.length;ut)break;var s=n[o];s||(s=[],n[o]=s),s.push(((r+i)*e+(r+a))*4+3),i>0&&s.push(((r-i)*e+(r+a))*4+3),a>0&&(s.push(((r+i)*e+(r-a))*4+3),i>0&&s.push(((r-i)*e+(r-a))*4+3))}for(var A=[],i=0,l=n.length;i0,6);var c=i.src!==void 0?$e.IDLE:$e.LOADED;return n.color_=i.color!==void 0?Du(i.color):null,n.iconImage_=HZ(l,u,n.imgSize_!==void 0?n.imgSize_:null,n.crossOrigin_,c,n.color_),n.offset_=i.offset!==void 0?i.offset:[0,0],n.offsetOrigin_=i.offsetOrigin!==void 0?i.offsetOrigin:Oi.TOP_LEFT,n.origin_=null,n.size_=i.size!==void 0?i.size:null,n}return e.prototype.clone=function(){var t=this.getScale();return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(t)?t.slice():t,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc()})},e.prototype.getAnchor=function(){var t=this.normalizedAnchor_;if(!t){t=this.anchor_;var n=this.getSize();if(this.anchorXUnits_==Da.FRACTION||this.anchorYUnits_==Da.FRACTION){if(!n)return null;t=this.anchor_.slice(),this.anchorXUnits_==Da.FRACTION&&(t[0]*=n[0]),this.anchorYUnits_==Da.FRACTION&&(t[1]*=n[1])}if(this.anchorOrigin_!=Oi.TOP_LEFT){if(!n)return null;t===this.anchor_&&(t=this.anchor_.slice()),(this.anchorOrigin_==Oi.TOP_RIGHT||this.anchorOrigin_==Oi.BOTTOM_RIGHT)&&(t[0]=-t[0]+n[0]),(this.anchorOrigin_==Oi.BOTTOM_LEFT||this.anchorOrigin_==Oi.BOTTOM_RIGHT)&&(t[1]=-t[1]+n[1])}this.normalizedAnchor_=t}var i=this.getDisplacement();return[t[0]-i[0],t[1]+i[1]]},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=Oi.TOP_LEFT){var n=this.getSize(),i=this.iconImage_.getSize();if(!n||!i)return null;t=t.slice(),(this.offsetOrigin_==Oi.TOP_RIGHT||this.offsetOrigin_==Oi.BOTTOM_RIGHT)&&(t[0]=i[0]-n[0]-t[0]),(this.offsetOrigin_==Oi.BOTTOM_LEFT||this.offsetOrigin_==Oi.BOTTOM_RIGHT)&&(t[1]=i[1]-n[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(ye.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(ye.CHANGE,t)},e}(QQ),ny=kZ,$Z="#333",VZ=function(){function r(e){var t=e||{};this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=Ui(t.scale!==void 0?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.textBaseline_=t.textBaseline,this.fill_=t.fill!==void 0?t.fill:new la({color:$Z}),this.maxAngle_=t.maxAngle!==void 0?t.maxAngle:Math.PI/4,this.placement_=t.placement!==void 0?t.placement:GQ.POINT,this.overflow_=!!t.overflow,this.stroke_=t.stroke!==void 0?t.stroke:null,this.offsetX_=t.offsetX!==void 0?t.offsetX:0,this.offsetY_=t.offsetY!==void 0?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=t.padding===void 0?null:t.padding}return r.prototype.clone=function(){var e=this.getScale();return new r({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})},r.prototype.getOverflow=function(){return this.overflow_},r.prototype.getFont=function(){return this.font_},r.prototype.getMaxAngle=function(){return this.maxAngle_},r.prototype.getPlacement=function(){return this.placement_},r.prototype.getOffsetX=function(){return this.offsetX_},r.prototype.getOffsetY=function(){return this.offsetY_},r.prototype.getFill=function(){return this.fill_},r.prototype.getRotateWithView=function(){return this.rotateWithView_},r.prototype.getRotation=function(){return this.rotation_},r.prototype.getScale=function(){return this.scale_},r.prototype.getScaleArray=function(){return this.scaleArray_},r.prototype.getStroke=function(){return this.stroke_},r.prototype.getText=function(){return this.text_},r.prototype.getTextAlign=function(){return this.textAlign_},r.prototype.getTextBaseline=function(){return this.textBaseline_},r.prototype.getBackgroundFill=function(){return this.backgroundFill_},r.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},r.prototype.getPadding=function(){return this.padding_},r.prototype.setOverflow=function(e){this.overflow_=e},r.prototype.setFont=function(e){this.font_=e},r.prototype.setMaxAngle=function(e){this.maxAngle_=e},r.prototype.setOffsetX=function(e){this.offsetX_=e},r.prototype.setOffsetY=function(e){this.offsetY_=e},r.prototype.setPlacement=function(e){this.placement_=e},r.prototype.setRotateWithView=function(e){this.rotateWithView_=e},r.prototype.setFill=function(e){this.fill_=e},r.prototype.setRotation=function(e){this.rotation_=e},r.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=Ui(e!==void 0?e:1)},r.prototype.setStroke=function(e){this.stroke_=e},r.prototype.setText=function(e){this.text_=e},r.prototype.setTextAlign=function(e){this.textAlign_=e},r.prototype.setTextBaseline=function(e){this.textBaseline_=e},r.prototype.setBackgroundFill=function(e){this.backgroundFill_=e},r.prototype.setBackgroundStroke=function(e){this.backgroundStroke_=e},r.prototype.setPadding=function(e){this.padding_=e},r}(),xh=VZ,Fo=.5;function jQ(r,e,t,n,i,a,o){var s=r[0]*Fo,A=r[1]*Fo,l=Ka(s,A);l.imageSmoothingEnabled=!1;for(var u=l.canvas,c=new pF(l,Fo,i,null,o),h=t.length,f=Math.floor((256*256*256-1)/h),p={},v=1;v<=h;++v){var m=t[v-1],g=m.getStyleFunction()||n;if(n){var _=g(m,a);if(_){Array.isArray(_)||(_=[_]);for(var E=v*f,B="#"+("000000"+E.toString(16)).slice(-6),L=0,O=_.length;Lv[2];)++_,E=g*_,c.push(this.getRenderTransform(a,o,s,Fo,h,f,E).slice()),m-=g}this.hitDetectionImageData_=jQ(i,c,this.renderedFeatures_,u.getStyleFunction(),l,o,s)}n(KQ(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,n,i,a,o){var s=this;if(this.replayGroup_){var A=n.viewState.resolution,l=n.viewState.rotation,u=this.getLayer(),c={},h=function(v,m,g){var _=pe(v),E=c[_];if(E){if(E!==!0&&gL[0]&&T[2]>L[2]&&B.push([T[0]-O,T[1],T[2]-O,T[3]])}if(!this.dirty_&&this.renderedResolution_==h&&this.renderedRevision_==p&&this.renderedRenderOrder_==m&&Lo(this.wrappedRenderedExtent_,_))return ml(this.renderedExtent_,E)||(this.hitDetectionImageData_=null,this.renderedExtent_=E),this.renderedCenter_=g,this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var I=new L_(tb(h,f),_,h,f),M;this.getLayer().getDeclutter()&&(M=new L_(tb(h,f),_,h,f));for(var S,b,N,b=0,N=B.length;b=200&&s.status<300){var l=e.getType(),u=void 0;l==Bs.JSON||l==Bs.TEXT?u=s.responseText:l==Bs.XML?(u=s.responseXML,u||(u=new DOMParser().parseFromString(s.responseText,"application/xml"))):l==Bs.ARRAY_BUFFER&&(u=s.response),u?a(e.readFeatures(u,{extent:t,featureProjection:i}),e.readProjection(u)):o()}else o()},s.onerror=o,s.send()}function FM(r,e){return function(t,n,i,a,o){var s=this;pJ(r,e,t,n,i,function(A,l){s.addFeatures(A),a!==void 0&&a(A)},o||lh)}}var qQ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Xl=function(r){qQ(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.feature=n,a.features=i,a}return e}(po),dJ=function(r){qQ(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{attributions:i.attributions,interpolate:!0,projection:void 0,state:Qa.READY,wrapX:i.wrapX!==void 0?i.wrapX:!0})||this,n.on,n.once,n.un,n.loader_=lh,n.format_=i.format,n.overlaps_=i.overlaps===void 0?!0:i.overlaps,n.url_=i.url,i.loader!==void 0?n.loader_=i.loader:n.url_!==void 0&&(_e(n.format_,7),n.loader_=FM(n.url_,n.format_)),n.strategy_=i.strategy!==void 0?i.strategy:WQ;var a=i.useSpatialIndex!==void 0?i.useSpatialIndex:!0;n.featuresRtree_=a?new M_:null,n.loadedExtentsRtree_=new M_,n.loadingExtentsCount_=0,n.nullGeometryFeatures_={},n.idIndex_={},n.uidIndex_={},n.featureChangeKeys_={},n.featuresCollection_=null;var o,s;return Array.isArray(i.features)?s=i.features:i.features&&(o=i.features,s=o.getArray()),!a&&o===void 0&&(o=new Ai(s)),s!==void 0&&n.addFeaturesInternal(s),o!==void 0&&n.bindFeaturesCollection_(o),n}return e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var n=pe(t);if(!this.addToIndex_(n,t)){this.featuresCollection_&&this.featuresCollection_.remove(t);return}this.setupChangeEvents_(n,t);var i=t.getGeometry();if(i){var a=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(a,t)}else this.nullGeometryFeatures_[n]=t;this.dispatchEvent(new Xl(Ri.ADDFEATURE,t))},e.prototype.setupChangeEvents_=function(t,n){this.featureChangeKeys_[t]=[Pe(n,ye.CHANGE,this.handleFeatureChange_,this),Pe(n,ch.PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,n){var i=!0,a=n.getId();return a!==void 0&&(a.toString()in this.idIndex_?i=!1:this.idIndex_[a.toString()]=n),i&&(_e(!(t in this.uidIndex_),30),this.uidIndex_[t]=n),i},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var n=[],i=[],a=[],o=0,s=t.length;o0},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),r.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var n=this.loadedExtentsRtree_,i;n.forEachInExtent(t,function(a){if(lA(a.extent,t))return i=a,!0}),i&&n.remove(i)},e.prototype.removeFeature=function(t){if(t){var n=pe(t);n in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[n]:this.featuresRtree_&&this.featuresRtree_.remove(t);var i=this.removeFeatureInternal(t);i&&this.changed()}},e.prototype.removeFeatureInternal=function(t){var n=pe(t),i=this.featureChangeKeys_[n];if(i){i.forEach(Rr),delete this.featureChangeKeys_[n];var a=t.getId();return a!==void 0&&delete this.idIndex_[a.toString()],delete this.uidIndex_[n],this.dispatchEvent(new Xl(Ri.REMOVEFEATURE,t)),t}},e.prototype.removeFromIdIndex_=function(t){var n=!1;for(var i in this.idIndex_)if(this.idIndex_[i]===t){delete this.idIndex_[i],n=!0;break}return n},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){_e(this.format_,7),this.url_=t,this.setLoader(FM(t,this.format_))},e}(ow),wl=dJ,ZQ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Sr={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon",CIRCLE:"Circle"},Fm={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"},Lm=function(r){ZQ(e,r);function e(t,n){var i=r.call(this,t)||this;return i.feature=n,i}return e}(po),vJ=function(r){ZQ(e,r);function e(t){var n=this,i=t;i.stopDown||(i.stopDown=Ch),n=r.call(this,i)||this,n.on,n.once,n.un,n.shouldHandle_=!1,n.downPx_=null,n.downTimeout_,n.lastDragTime_,n.pointerType_,n.freehand_=!1,n.source_=t.source?t.source:null,n.features_=t.features?t.features:null,n.snapTolerance_=t.snapTolerance?t.snapTolerance:12,n.type_=t.type,n.mode_=yJ(n.type_),n.stopClick_=!!t.stopClick,n.minPoints_=t.minPoints?t.minPoints:n.mode_===Sr.POLYGON?3:2,n.maxPoints_=n.mode_===Sr.CIRCLE?2:t.maxPoints?t.maxPoints:1/0,n.finishCondition_=t.finishCondition?t.finishCondition:aA;var a=t.geometryFunction;if(!a){var o=n.mode_;if(o===Sr.CIRCLE)a=function(A,l,u){var c=l||new cF([NaN,NaN]),h=Tn(A[0]),f=rl(h,Tn(A[A.length-1]));return c.setCenterAndRadius(h,Math.sqrt(f)),c};else{var s;o===Sr.POINT?s=pr:o===Sr.LINE_STRING?s=Hr:o===Sr.POLYGON&&(s=xn),a=function(A,l,u){return l?o===Sr.POLYGON?A[0].length?l.setCoordinates([A[0].concat([A[0][0]])]):l.setCoordinates([]):l.setCoordinates(A):l=new s(A),l}}}return n.geometryFunction_=a,n.dragVertexDelay_=t.dragVertexDelay!==void 0?t.dragVertexDelay:500,n.finishCoordinate_=null,n.sketchFeature_=null,n.sketchPoint_=null,n.sketchCoords_=null,n.sketchLine_=null,n.sketchLineCoords_=null,n.squaredClickTolerance_=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,n.overlay_=new fA({source:new wl({useSpatialIndex:!1,wrapX:t.wrapX?t.wrapX:!1}),style:t.style?t.style:gJ(),updateWhileInteracting:!0}),n.geometryName_=t.geometryName,n.condition_=t.condition?t.condition:iw,n.freehandCondition_,t.freehand?n.freehandCondition_=rw:n.freehandCondition_=t.freehandCondition?t.freehandCondition:Jg,n.addChangeListener(qT.ACTIVE,n.updateState_),n}return e.prototype.setMap=function(t){r.prototype.setMap.call(this,t),this.updateState_()},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleEvent=function(t){t.originalEvent.type===ye.CONTEXTMENU&&t.originalEvent.preventDefault(),this.freehand_=this.mode_!==Sr.POINT&&this.freehandCondition_(t);var n=t.type===ar.POINTERMOVE,i=!0;if(!this.freehand_&&this.lastDragTime_&&t.type===ar.POINTERDRAG){var a=Date.now();a-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,n=!0):this.lastDragTime_=void 0,this.shouldHandle_&&this.downTimeout_!==void 0&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&t.type===ar.POINTERDRAG&&this.sketchFeature_!==null?(this.addToDrawing_(t.coordinate),i=!1):this.freehand_&&t.type===ar.POINTERDOWN?i=!1:n&&this.getPointerCount()<2?(i=t.type===ar.POINTERMOVE,i&&this.freehand_?(this.handlePointerMove_(t),this.shouldHandle_&&t.originalEvent.preventDefault()):(t.originalEvent.pointerType==="mouse"||t.type===ar.POINTERDRAG&&this.downTimeout_===void 0)&&this.handlePointerMove_(t)):t.type===ar.DBLCLICK&&(i=!1),r.prototype.handleEvent.call(this,t)&&i},e.prototype.handleDownEvent=function(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t.coordinate),!0):this.condition_(t)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new zA(ar.POINTERMOVE,t.map,t.originalEvent,!1,t.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=t.pixel,!0):(this.lastDragTime_=void 0,!1)},e.prototype.handleUpEvent=function(t){var n=!0;if(this.getPointerCount()===0)if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(t),this.shouldHandle_){var i=!this.finishCoordinate_;i&&this.startDrawing_(t.coordinate),!i&&this.freehand_?this.finishDrawing():!this.freehand_&&(!i||this.mode_===Sr.POINT)&&(this.atFinish_(t.pixel)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t.coordinate)),n=!1}else this.freehand_&&this.abortDrawing();return!n&&this.stopClick_&&t.preventDefault(),n},e.prototype.handlePointerMove_=function(t){if(this.pointerType_=t.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var n=this.downPx_,i=t.pixel,a=n[0]-i[0],o=n[1]-i[1],s=a*a+o*o;if(this.shouldHandle_=this.freehand_?s>this.squaredClickTolerance_:s<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(t.coordinate):this.createOrUpdateSketchPoint_(t.coordinate.slice())},e.prototype.atFinish_=function(t){var n=!1;if(this.sketchFeature_){var i=!1,a=[this.finishCoordinate_],o=this.mode_;if(o===Sr.POINT)n=!0;else if(o===Sr.CIRCLE)n=this.sketchCoords_.length===2;else if(o===Sr.LINE_STRING)i=this.sketchCoords_.length>this.minPoints_;else if(o===Sr.POLYGON){var s=this.sketchCoords_;i=s[0].length>this.minPoints_,a=[s[0][0],s[0][s[0].length-2]]}if(i)for(var A=this.getMap(),l=0,u=a.length;l=this.maxPoints_&&(this.freehand_?o.pop():a=!0),o.push(t.slice()),this.geometryFunction_(o,n,i)):s===Sr.POLYGON&&(o=this.sketchCoords_[0],o.length>=this.maxPoints_&&(this.freehand_?o.pop():a=!0),o.push(t.slice()),a&&(this.finishCoordinate_=o[0]),this.geometryFunction_(this.sketchCoords_,n,i)),this.createOrUpdateSketchPoint_(t.slice()),this.updateSketchFeatures_(),a&&this.finishDrawing()},e.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),i,a=this.mode_;if(a===Sr.LINE_STRING||a===Sr.CIRCLE){if(i=this.sketchCoords_,i.splice(-2,1),i.length>=2){this.finishCoordinate_=i[i.length-2].slice();var o=this.finishCoordinate_.slice();i[i.length-1]=o,this.createOrUpdateSketchPoint_(o)}this.geometryFunction_(i,t,n),t.getType()===st.POLYGON&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(a===Sr.POLYGON){i=this.sketchCoords_[0],i.splice(-2,1);var s=this.sketchLine_.getGeometry();if(i.length>=2){var o=i[i.length-2].slice();i[i.length-1]=o,this.createOrUpdateSketchPoint_(o)}s.setCoordinates(i),this.geometryFunction_(this.sketchCoords_,t,n)}i.length===1&&this.abortDrawing(),this.updateSketchFeatures_()}},e.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(t){var n=this.sketchCoords_,i=t.getGeometry(),a=this.getMap().getView().getProjection();this.mode_===Sr.LINE_STRING?(n.pop(),this.geometryFunction_(n,i,a)):this.mode_===Sr.POLYGON&&(n[0].pop(),this.geometryFunction_(n,i,a),n=i.getCoordinates()),this.type_===st.MULTI_POINT?t.setGeometry(new rs([n])):this.type_===st.MULTI_LINE_STRING?t.setGeometry(new xa([n])):this.type_===st.MULTI_POLYGON&&t.setGeometry(new Ia([n])),this.dispatchEvent(new Lm(Fm.DRAWEND,t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t)}},e.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var t=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),t},e.prototype.abortDrawing=function(){var t=this.abortDrawing_();t&&this.dispatchEvent(new Lm(Fm.DRAWABORT,t))},e.prototype.appendCoordinates=function(t){var n=this.mode_,i=!this.sketchFeature_;i&&this.startDrawing_(t[0]);var a;if(n===Sr.LINE_STRING||n===Sr.CIRCLE)a=this.sketchCoords_;else if(n===Sr.POLYGON)a=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[];else return;i&&a.shift(),a.pop();for(var o=0;o=0;--a){for(var o=i[a],s=this.dragSegments_.length-1;s>=0;--s)this.dragSegments_[s][0]===o&&this.dragSegments_.splice(s,1);n.remove(o)}},e.prototype.setActive=function(t){this.vertexFeature_&&!t&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),r.prototype.setActive.call(this,t)},e.prototype.setMap=function(t){this.overlay_.setMap(t),r.prototype.setMap.call(this,t)},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleSourceAdd_=function(t){t.feature&&this.features_.push(t.feature)},e.prototype.handleSourceRemove_=function(t){t.feature&&this.features_.remove(t.feature)},e.prototype.handleFeatureAdd_=function(t){this.addFeature_(t.element)},e.prototype.handleFeatureChange_=function(t){if(!this.changingFeature_){var n=t.target;this.removeFeature_(n),this.addFeature_(n)}},e.prototype.handleFeatureRemove_=function(t){var n=t.element;this.removeFeature_(n)},e.prototype.writePointGeometry_=function(t,n){var i=n.getCoordinates(),a={feature:t,geometry:n,segment:[i,i]};this.rBush_.insert(n.getExtent(),a)},e.prototype.writeMultiPointGeometry_=function(t,n){for(var i=n.getCoordinates(),a=0,o=i.length;a=0;--_)this.insertVertex_(o[_],s)}return!!this.vertexFeature_},e.prototype.handleUpEvent=function(t){for(var n=this.dragSegments_.length-1;n>=0;--n){var i=this.dragSegments_[n][0],a=i.geometry;if(a.getType()===st.CIRCLE){var o=a.getCenter(),s=i.featureSegments[0],A=i.featureSegments[1];s.segment[0]=o,s.segment[1]=o,A.segment[0]=o,A.segment[1]=o,this.rBush_.update(zc(o),s);var l=a,u=ph();if(u){var c=t.map.getView().getProjection();l=l.clone().transform(u,c),l=mQ(l).transform(c,u)}this.rBush_.update(l.getExtent(),A)}else this.rBush_.update(Xi(i.segment),i)}return this.featuresBeingModified_&&(this.dispatchEvent(new TC(BC.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null),!1},e.prototype.handlePointerMove_=function(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.pixel,t.map,t.coordinate)},e.prototype.handlePointerAtPixel_=function(t,n,i){var a=this,o=i||n.getCoordinateFromPixel(t),s=n.getView().getProjection(),A=function(P,X){return RM(o,P,s)-RM(o,X,s)},l,u;if(this.hitDetection_){var c=typeof this.hitDetection_=="object"?function(P){return P===a.hitDetection_}:void 0;n.forEachFeatureAtPixel(t,function(P,X,z){if(z=z||P.getGeometry(),z.getType()===st.POINT&&mi(a.features_.getArray(),P)){u=z;var tt=z.getFlatCoordinates().slice(0,2);l=[{feature:P,geometry:z,segment:[tt,tt]}]}return!0},{layerFilter:c})}if(!l){var h=Oo(zc(o,OM)),f=n.getView().getResolution()*this.pixelTolerance_,p=q1(ja(h,f,OM));l=this.rBush_.getInExtent(p)}if(l&&l.length>0){var v=l.sort(A)[0],m=v.segment,g=MM(o,v,s),_=n.getPixelFromCoordinate(g),E=JR(t,_);if(u||E<=this.pixelTolerance_){var B={};if(B[pe(m)]=!0,this.snapToPointer_||(this.delta_[0]=g[0]-o[0],this.delta_[1]=g[1]-o[1]),v.geometry.getType()===st.CIRCLE&&v.index===Dv)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(g,[v.feature],[v.geometry]);else{var L=n.getPixelFromCoordinate(m[0]),O=n.getPixelFromCoordinate(m[1]),x=rl(_,L),T=rl(_,O);E=Math.sqrt(Math.min(x,T)),this.snappedToVertex_=E<=this.pixelTolerance_,this.snappedToVertex_&&(g=x>T?m[1]:m[0]),this.createOrUpdateVertexFeature_(g,[v.feature],[v.geometry]);var I={};I[pe(v.geometry)]=!0;for(var M=1,S=l.length;M=0;--l)s=t[l],p=s[0],v=pe(p.feature),p.depth&&(v+="-"+p.depth.join("-")),v in n||(n[v]={}),s[1]===0?(n[v].right=p,n[v].index=p.index):s[1]==1&&(n[v].left=p,n[v].index=p.index+1);for(v in n){switch(f=n[v].right,c=n[v].left,u=n[v].index,h=u-1,c!==void 0?p=c:p=f,h<0&&(h=0),A=p.geometry,o=A.getCoordinates(),a=o,i=!1,A.getType()){case st.MULTI_LINE_STRING:o[p.depth[0]].length>2&&(o[p.depth[0]].splice(u,1),i=!0);break;case st.LINE_STRING:o.length>2&&(o.splice(u,1),i=!0);break;case st.MULTI_POLYGON:a=a[p.depth[1]];case st.POLYGON:a=a[p.depth[0]],a.length>4&&(u==a.length-1&&(u=0),a.splice(u,1),i=!0,u===0&&(a.pop(),a.push(a[0]),h=a.length-1));break}if(i){this.setGeometryCoordinates_(A,o);var m=[];if(c!==void 0&&(this.rBush_.remove(c),m.push(c.segment[0])),f!==void 0&&(this.rBush_.remove(f),m.push(f.segment[1])),c!==void 0&&f!==void 0){var g={depth:p.depth,feature:p.feature,geometry:p.geometry,index:h,segment:m};this.rBush_.insert(Xi(g.segment),g)}this.updateSegmentIndices_(A,u,p.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.length=0}}return i},e.prototype.setGeometryCoordinates_=function(t,n){this.changingFeature_=!0,t.setCoordinates(n),this.changingFeature_=!1},e.prototype.updateSegmentIndices_=function(t,n,i,a){this.rBush_.forEachInExtent(t.getExtent(),function(o){o.geometry===t&&(i===void 0||o.depth===void 0||ml(o.depth,i))&&o.index>n&&(o.index+=a)})},e}(Uo);function _J(r,e){return r.index-e.index}function RM(r,e,t){var n=e.geometry;if(n.getType()===st.CIRCLE){var i=n;if(e.index===Dv){var a=ph();a&&(i=i.clone().transform(a,t));var o=rl(i.getCenter(),Tn(r)),s=Math.sqrt(o)-i.getRadius();return s*s}}var A=Tn(r);return lp[0]=Tn(e.segment[0]),lp[1]=Tn(e.segment[1]),aX(A,lp)}function MM(r,e,t){var n=e.geometry;if(n.getType()===st.CIRCLE&&e.index===Dv){var i=n,a=ph();return a&&(i=i.clone().transform(a,t)),Sp(i.getClosestPoint(Tn(r)))}var o=Tn(r);return lp[0]=Tn(e.segment[0]),lp[1]=Tn(e.segment[1]),Sp(QI(o,lp))}function wJ(){var r=hF();return function(e,t){return r[st.POINT]}}var gF=mJ,t4=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),EJ={SELECT:"select"},CJ=function(r){t4(e,r);function e(t,n,i,a){var o=r.call(this,t)||this;return o.selected=n,o.deselected=i,o.mapBrowserEvent=a,o}return e}(po),Om={},BJ=function(r){t4(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un;var i=t||{};n.boundAddFeature_=n.addFeature_.bind(n),n.boundRemoveFeature_=n.removeFeature_.bind(n),n.condition_=i.condition?i.condition:nw,n.addCondition_=i.addCondition?i.addCondition:ZT,n.removeCondition_=i.removeCondition?i.removeCondition:ZT,n.toggleCondition_=i.toggleCondition?i.toggleCondition:Jg,n.multi_=i.multi?i.multi:!1,n.filter_=i.filter?i.filter:aA,n.hitTolerance_=i.hitTolerance?i.hitTolerance:0,n.style_=i.style!==void 0?i.style:TJ(),n.features_=i.features||new Ai;var a;if(i.layers)if(typeof i.layers=="function")a=i.layers;else{var o=i.layers;a=function(s){return mi(o,s)}}else a=aA;return n.layerFilter_=a,n.featureLayerAssociation_={},n}return e.prototype.addFeatureLayerAssociation_=function(t,n){this.featureLayerAssociation_[pe(t)]=n},e.prototype.getFeatures=function(){return this.features_},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.getLayer=function(t){return this.featureLayerAssociation_[pe(t)]},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(t){var n=this.getMap();n&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),r.prototype.setMap.call(this,t),t?(this.features_.addEventListener(Vn.ADD,this.boundAddFeature_),this.features_.addEventListener(Vn.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(Vn.ADD,this.boundAddFeature_),this.features_.removeEventListener(Vn.REMOVE,this.boundRemoveFeature_))},e.prototype.addFeature_=function(t){var n=t.element;if(this.style_&&this.applySelectedStyle_(n),!this.getLayer(n)){var i=this.getMap().getAllLayers().find(function(a){if(a instanceof fA&&a.getSource()&&a.getSource().hasFeature(n))return a});i&&this.addFeatureLayerAssociation_(n,i)}},e.prototype.removeFeature_=function(t){var n=t.element;this.style_&&this.restorePreviousStyle_(n)},e.prototype.getStyle=function(){return this.style_},e.prototype.applySelectedStyle_=function(t){var n=pe(t);n in Om||(Om[n]=t.getStyle()),t.setStyle(this.style_)},e.prototype.restorePreviousStyle_=function(t){for(var n=this.getMap().getInteractions().getArray(),i=n.length-1;i>=0;--i){var a=n[i];if(a!==this&&a instanceof e&&a.getStyle()&&a.getFeatures().getArray().lastIndexOf(t)!==-1){t.setStyle(a.getStyle());return}}var o=pe(t);t.setStyle(Om[o]),delete Om[o]},e.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[pe(t)]},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var n=this.addCondition_(t),i=this.removeCondition_(t),a=this.toggleCondition_(t),o=!n&&!i&&!a,s=t.map,A=this.getFeatures(),l=[],u=[];if(o){Bh(this.featureLayerAssociation_),s.forEachFeatureAtPixel(t.pixel,function(v,m){if(this.filter_(v,m))return this.addFeatureLayerAssociation_(v,m),u.push(v),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var c=A.getLength()-1;c>=0;--c){var h=A.item(c),f=u.indexOf(h);f>-1?u.splice(f,1):(A.remove(h),l.push(h))}u.length!==0&&A.extend(u)}else{s.forEachFeatureAtPixel(t.pixel,function(v,m){if(this.filter_(v,m))return(n||a)&&!mi(A.getArray(),v)?(this.addFeatureLayerAssociation_(v,m),u.push(v)):(i||a)&&mi(A.getArray(),v)&&(l.push(v),this.removeFeatureLayerAssociation_(v)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var p=l.length-1;p>=0;--p)A.remove(l[p]);A.extend(u)}return(u.length>0||l.length>0)&&this.dispatchEvent(new CJ(EJ.SELECT,u,l,t)),!0},e}(Kp);function TJ(){var r=hF();return Qr(r[st.POLYGON],r[st.LINE_STRING]),Qr(r[st.GEOMETRY_COLLECTION],r[st.LINE_STRING]),function(e){return e.getGeometry()?r[e.getGeometry().getType()]:null}}var sw=BJ,bJ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();function NM(r){if(r.feature)return r.feature;if(r.element)return r.element}var bC=[],SJ=function(r){bJ(e,r);function e(t){var n=this,i=t||{},a=i;return a.handleDownEvent||(a.handleDownEvent=aA),a.stopDown||(a.stopDown=Ch),n=r.call(this,a)||this,n.source_=i.source?i.source:null,n.vertex_=i.vertex!==void 0?i.vertex:!0,n.edge_=i.edge!==void 0?i.edge:!0,n.features_=i.features?i.features:null,n.featuresListenerKeys_=[],n.featureChangeListenerKeys_={},n.indexedFeaturesExtents_={},n.pendingFeatures_={},n.pixelTolerance_=i.pixelTolerance!==void 0?i.pixelTolerance:10,n.rBush_=new M_,n.GEOMETRY_SEGMENTERS_={Point:n.segmentPointGemetry_.bind(n),LineString:n.segmentLineStringGemetry_.bind(n),LinearRing:n.segmentLineStringGemetry_.bind(n),Polygon:n.segmentPolygonGemetry_.bind(n),MultiPoint:n.segmentMultiPointGemetry_.bind(n),MultiLineString:n.segmentMultiLineStringGemetry_.bind(n),MultiPolygon:n.segmentMultiPolygonGemetry_.bind(n),GeometryCollection:n.segmentGeometryCollectionGemetry_.bind(n),Circle:n.segmentCircleGemetry_.bind(n)},n}return e.prototype.addFeature=function(t,n){var i=n!==void 0?n:!0,a=pe(t),o=t.getGeometry();if(o){var s=this.GEOMETRY_SEGMENTERS_[o.getType()];if(s){this.indexedFeaturesExtents_[a]=o.getExtent(wi());var A=[];if(s(A,o),A.length===1)this.rBush_.insert(Xi(A[0]),{feature:t,segment:A[0]});else if(A.length>1){var l=A.map(function(c){return Xi(c)}),u=A.map(function(c){return{feature:t,segment:c}});this.rBush_.load(l,u)}}}i&&(this.featureChangeListenerKeys_[a]=Pe(t,ye.CHANGE,this.handleFeatureChange_,this))},e.prototype.forEachFeatureAdd_=function(t){this.addFeature(t)},e.prototype.forEachFeatureRemove_=function(t){this.removeFeature(t)},e.prototype.getFeatures_=function(){var t;return this.features_?t=this.features_:this.source_&&(t=this.source_.getFeatures()),t},e.prototype.handleEvent=function(t){var n=this.snapTo(t.pixel,t.coordinate,t.map);return n&&(t.coordinate=n.vertex.slice(0,2),t.pixel=n.vertexPixel),r.prototype.handleEvent.call(this,t)},e.prototype.handleFeatureAdd_=function(t){var n=NM(t);this.addFeature(n)},e.prototype.handleFeatureRemove_=function(t){var n=NM(t);this.removeFeature(n)},e.prototype.handleFeatureChange_=function(t){var n=t.target;if(this.handlingDownUpSequence){var i=pe(n);i in this.pendingFeatures_||(this.pendingFeatures_[i]=n)}else this.updateFeature_(n)},e.prototype.handleUpEvent=function(t){var n=UI(this.pendingFeatures_);return n.length&&(n.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1},e.prototype.removeFeature=function(t,n){var i=n!==void 0?n:!0,a=pe(t),o=this.indexedFeaturesExtents_[a];if(o){var s=this.rBush_,A=[];s.forEachInExtent(o,function(u){t===u.feature&&A.push(u)});for(var l=A.length-1;l>=0;--l)s.remove(A[l])}i&&(Rr(this.featureChangeListenerKeys_[a]),delete this.featureChangeListenerKeys_[a])},e.prototype.setMap=function(t){var n=this.getMap(),i=this.featuresListenerKeys_,a=this.getFeatures_();n&&(i.forEach(Rr),i.length=0,a.forEach(this.forEachFeatureRemove_.bind(this))),r.prototype.setMap.call(this,t),t&&(this.features_?i.push(Pe(this.features_,Vn.ADD,this.handleFeatureAdd_,this),Pe(this.features_,Vn.REMOVE,this.handleFeatureRemove_,this)):this.source_&&i.push(Pe(this.source_,Ri.ADDFEATURE,this.handleFeatureAdd_,this),Pe(this.source_,Ri.REMOVEFEATURE,this.handleFeatureRemove_,this)),a.forEach(this.forEachFeatureAdd_.bind(this)))},e.prototype.snapTo=function(t,n,i){var a=i.getCoordinateFromPixel([t[0]-this.pixelTolerance_,t[1]+this.pixelTolerance_]),o=i.getCoordinateFromPixel([t[0]+this.pixelTolerance_,t[1]-this.pixelTolerance_]),s=Xi([a,o]),A=this.rBush_.getInExtent(s),l=A.length;if(l===0)return null;var u=i.getView().getProjection(),c=Tn(n),h,f=1/0,p=this.pixelTolerance_*this.pixelTolerance_,v=function(){if(h){var M=i.getPixelFromCoordinate(h),S=rl(t,M);if(S<=p)return{vertex:h,vertexPixel:[Math.round(M[0]),Math.round(M[1])]}}return null};if(this.vertex_){for(var m=0;m{t[i]=t[i].value});const n=Hg(Qn({},t));return he(r,()=>{t=Lu(r),Object.keys(t).forEach(i=>{n[i]!=t[i].value&&!e.includes(i)&&(n[i]=t[i].value)})}),{properties:n}}var le=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t};const OJ={name:"ol-map",setup(r,{emit:e}){const{properties:t}=vr(r),n=$n(null);let i=new Aw(t);he(t,()=>{i.setProperties(t)}),Ze(()=>{i.setTarget(n.value)}),ir(()=>{i.setTarget(null),i=null}),Mr("map",i);const a=()=>i.focus(),o=(h,f,p={})=>i.forEachFeatureAtPixel(h,f,p),s=(h,f,p)=>i.forEachLayerAtPixel(h,f,p),A=h=>i.getCoordinateFromPixel(h),l=()=>i.refresh(),u=()=>i.render(),c=()=>i.updateSize();return i.on("click",h=>e("click",h)),i.on("dblclick",h=>e("dblclick",h)),i.on("singleclick",h=>e("singleclick",h)),i.on("pointerdrag",h=>e("pointerdrag",h)),i.on("pointermove",h=>e("pointermove",h)),i.on("movestart",h=>e("movestart",h)),i.on("moveend",h=>e("moveend",h)),i.on("postrender",h=>e("postrender",h)),i.on("precompose",h=>e("precompose",h)),i.on("postcompose",h=>e("postcompose",h)),{map:i,mapRef:n,focus:a,forEachFeatureAtPixel:o,forEachLayerAtPixel:s,getCoordinateFromPixel:A,refresh:l,render:u,updateSize:c}},props:{loadTilesWhileAnimating:{type:Boolean,default:!1},loadTilesWhileInteracting:{type:Boolean,default:!1},moveTolerance:{type:Number,default:1},pixelRatio:{type:Number,default:1},controls:{type:Array,default:()=>[]}}};function RJ(r,e,t,n,i,a){return tn(),Ln("div",{ref:o=>n.mapRef=o},[mr(r.$slots,"default")],512)}var eb=le(OJ,[["render",RJ]]);function MJ(r,e){const t=Ce("map"),{properties:n}=vr(r),i=()=>Rs(Qn({},n),{projection:typeof n.projection=="string"?n.projection:new _l(Qn({},n.projection))});let a=new Zs(i());Ze(()=>{t.setView(a)}),a.on("change:center",()=>{e("centerChanged",L()),e("zoomChanged",it())}),a.on("change:resolution",()=>e("resolutionChanged",P())),a.on("change:rotation",()=>e("rotationChanged",nt())),he(n,()=>{let W=i();a.setProperties(W),a.applyOptions_(W)});const o=W=>a.adjustCenter(W),s=(W,It)=>a.adjustResolution(W,It),A=(W,It)=>a.adjustRotation(W,It),l=(W,It)=>a.adjustZoom(W,It),u=W=>a.animate(W),c=()=>a.beginInteraction(),h=W=>a.calculateExtent(W),f=()=>a.cancelAnimations(),p=(W,It,Ot)=>a.centerOn(W,It,Ot),v=()=>a.changed(),m=W=>a.dispatchEvent(W),g=(W,It,Ot)=>a.endInteraction(W,It,Ot),_=(W,It)=>a.fit(W,It),E=W=>a.get(W),B=()=>a.getAnimating(),L=()=>a.getCenter(),O=()=>a.getInteracting(),x=()=>a.getKeys(),T=()=>a.getMaxResolution(),I=()=>a.getMaxZoom(),M=()=>a.getMinResolution(),S=()=>a.getMinZoom(),b=()=>a.getProjection(),N=()=>a.getProperties(),P=()=>a.getResolution(),X=(W,It)=>a.getResolutionForExtent(W,It),z=W=>a.getResolutionForZoom(W),tt=()=>a.getResolutions(),J=()=>a.getRevision(),nt=()=>a.getRotation(),it=()=>a.getZoom();return{view:a,adjustCenter:o,adjustResolution:s,adjustRotation:A,adjustZoom:l,animate:u,beginInteraction:c,calculateExtent:h,cancelAnimations:f,centerOn:p,changed:v,dispatchEvent:m,endInteraction:g,fit:_,get:E,getAnimating:B,getCenter:L,getInteracting:O,getKeys:x,getMaxResolution:T,getMaxZoom:I,getMinResolution:M,getMinZoom:S,getProjection:b,getProperties:N,getResolution:P,getResolutionForExtent:X,getResolutionForZoom:z,getResolutions:tt,getRevision:J,getRotation:nt,getZoom:it,getZoomForResolution:W=>a.getZoomForResolution(W),setCenter:W=>a.setCenter(W),setConstrainResolution:W=>a.setConstrainResolution(W),setMaxZoom:W=>a.setMaxZoom(W),setMinZoom:W=>a.setMinZoom(W),setResolution:W=>a.setResolution(W),setRotation:W=>a.setRotation(W),setZoom:W=>a.setZoom(W)}}const NJ={name:"ol-view",setup(r,{emit:e}){const t=MJ(r,e);return Qn({},t)},props:{center:{type:Array,default:()=>[0,0]},constrainRotation:{type:Boolean,default:!0},enableRotation:{type:Boolean,default:!0},extent:{type:Array},constrainOnlyCenter:{type:Boolean,default:!1},smoothExtentConstraint:{type:Boolean,default:!0},maxResolution:{type:Number},minResolution:{type:Number},maxZoom:{type:Number,default:28},minZoom:{type:Number,default:0},multiWorld:{type:Boolean,default:!1},constrainResolution:{type:Boolean,default:!1},smoothResolutionConstraint:{type:Boolean,default:!0},showFullExtent:{type:Boolean,default:!1},projection:{type:[String,Object],default:"EPSG:3857"},resolution:{type:Number},resolutions:{type:Array},rotation:{type:Number},zoom:{type:Number,default:0},zoomFactor:{type:Number,default:2},padding:{type:Array,default:()=>[0,0,0,0]}}};function PJ(r,e,t,n,i,a){return ur("",!0)}var rb=le(NJ,[["render",PJ]]);const UJ={name:"ol-feature",setup(r){const e=Ce("vectorSource"),t=Ce("vectorLayer"),n=Ce("animation",null),{properties:i}=vr(r);let a=fr(()=>new or(Qn({},i.properties)));return he(a,(o,s)=>{e.value.removeFeature(s),e.value.addFeature(o),e.value.changed()}),he(e,(o,s)=>{s.removeFeature(a.value),o.addFeature(a.value),o.changed()}),Ze(()=>{e.value.addFeature(a.value),n!=null&&t.value.animateFeature(a.value,n.value)}),ir(()=>{e.value.removeFeature(a.value)}),Mr("feature",a),Mr("stylable",a),{feature:a}},props:{properties:{type:[Z1,Object,Array]}}};function DJ(r,e,t,n,i,a){return mr(r.$slots,"default")}var nb=le(UJ,[["render",DJ]]);function QJ(r,e){const t=Ce("map"),n=$n(null),{properties:i}=vr(r);let a=fr(()=>new xQ(i));Ze(()=>{t.addOverlay(a.value)}),ir(()=>{t.removeOverlay(a.value)}),he(a,(v,m)=>{t.removeOverlay(m),t.addOverlay(v)}),uD(()=>{c(n.value)},{flush:"post"}),a.value.on("change:element",()=>e("elementChanged",o())),a.value.on("change:offset",()=>e("offsetChanged",s())),a.value.on("change:position",()=>e("positionChanged",A())),a.value.on("change:positioning",()=>e("positioningChanged",l()));const o=()=>a.value.getElement(),s=()=>a.value.getOffset(),A=()=>a.value.getPosition(),l=()=>a.value.getPositioning(),u=v=>a.value.panIntoView(v),c=v=>a.value.setElement(v);return{overlay:a,htmlContent:n,getOffset:s,getPosition:A,getPositioning:l,panIntoView:u,setElement:c,setOffset:v=>a.value.setOffset(v),setPosition:v=>a.value.setPosition(v),setPositioning:v=>a.value.setPositioning(v)}}const HJ={name:"ol-overlay",setup(r,{emit:e}){const t=new QJ(r,e);return Qn({},t)},props:{position:{type:Array},offset:{type:Array},positioning:{type:String},stopEvent:{type:Boolean,default:!0},insertFirst:{type:Boolean,default:!0},autoPan:{type:Boolean,default:!1},autoPanMargin:{type:Number,default:20},autoPanAnimation:{type:Object,default:void 0}}},GJ={ref:"htmlContent"};function kJ(r,e,t,n,i,a){return tn(),Ln("div",GJ,[mr(r.$slots,"default",{position:t.position})],512)}var ib=le(HJ,[["render",kJ]]),e4=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Rn={ACCURACY:"accuracy",ACCURACY_GEOMETRY:"accuracyGeometry",ALTITUDE:"altitude",ALTITUDE_ACCURACY:"altitudeAccuracy",HEADING:"heading",POSITION:"position",PROJECTION:"projection",SPEED:"speed",TRACKING:"tracking",TRACKING_OPTIONS:"trackingOptions"},$J=function(r){e4(e,r);function e(t){var n=r.call(this,ye.ERROR)||this;return n.code=t.code,n.message=t.message,n}return e}(po),VJ=function(r){e4(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un;var i=t||{};return n.position_=null,n.transform_=W1,n.watchId_=void 0,n.addChangeListener(Rn.PROJECTION,n.handleProjectionChanged_),n.addChangeListener(Rn.TRACKING,n.handleTrackingChanged_),i.projection!==void 0&&n.setProjection(i.projection),i.trackingOptions!==void 0&&n.setTrackingOptions(i.trackingOptions),n.setTracking(i.tracking!==void 0?i.tracking:!1),n}return e.prototype.disposeInternal=function(){this.setTracking(!1),r.prototype.disposeInternal.call(this)},e.prototype.handleProjectionChanged_=function(){var t=this.getProjection();t&&(this.transform_=fh(Oe("EPSG:4326"),t),this.position_&&this.set(Rn.POSITION,this.transform_(this.position_)))},e.prototype.handleTrackingChanged_=function(){if("geolocation"in navigator){var t=this.getTracking();t&&this.watchId_===void 0?this.watchId_=navigator.geolocation.watchPosition(this.positionChange_.bind(this),this.positionError_.bind(this),this.getTrackingOptions()):!t&&this.watchId_!==void 0&&(navigator.geolocation.clearWatch(this.watchId_),this.watchId_=void 0)}},e.prototype.positionChange_=function(t){var n=t.coords;this.set(Rn.ACCURACY,n.accuracy),this.set(Rn.ALTITUDE,n.altitude===null?void 0:n.altitude),this.set(Rn.ALTITUDE_ACCURACY,n.altitudeAccuracy===null?void 0:n.altitudeAccuracy),this.set(Rn.HEADING,n.heading===null?void 0:Cu(n.heading)),this.position_?(this.position_[0]=n.longitude,this.position_[1]=n.latitude):this.position_=[n.longitude,n.latitude];var i=this.transform_(this.position_);this.set(Rn.POSITION,i),this.set(Rn.SPEED,n.speed===null?void 0:n.speed);var a=HW(this.position_,n.accuracy);a.applyTransform(this.transform_),this.set(Rn.ACCURACY_GEOMETRY,a),this.changed()},e.prototype.positionError_=function(t){this.dispatchEvent(new $J(t))},e.prototype.getAccuracy=function(){return this.get(Rn.ACCURACY)},e.prototype.getAccuracyGeometry=function(){return this.get(Rn.ACCURACY_GEOMETRY)||null},e.prototype.getAltitude=function(){return this.get(Rn.ALTITUDE)},e.prototype.getAltitudeAccuracy=function(){return this.get(Rn.ALTITUDE_ACCURACY)},e.prototype.getHeading=function(){return this.get(Rn.HEADING)},e.prototype.getPosition=function(){return this.get(Rn.POSITION)},e.prototype.getProjection=function(){return this.get(Rn.PROJECTION)},e.prototype.getSpeed=function(){return this.get(Rn.SPEED)},e.prototype.getTracking=function(){return this.get(Rn.TRACKING)},e.prototype.getTrackingOptions=function(){return this.get(Rn.TRACKING_OPTIONS)},e.prototype.setProjection=function(t){this.set(Rn.PROJECTION,Oe(t))},e.prototype.setTracking=function(t){this.set(Rn.TRACKING,t)},e.prototype.setTrackingOptions=function(t){this.set(Rn.TRACKING_OPTIONS,t)},e}(ui),jJ=VJ;const KJ={name:"ol-geolocation",emits:["positionChanged","speedChanged","headingChanged","altitudeChanged","altitudeAccuracyChanged","accuracyGeometryChanged"],setup(r,{emit:e}){const{properties:t}=vr(r);let n=fr(()=>{let h=new jJ(t);return h.on("change",c),h});const i=$n([]),a=$n(0),o=$n(0),s=$n(0),A=$n(0),l=$n(0),u=$n({});he(i,()=>{e("positionChanged",i.value)}),he(A,()=>{e("speedChanged",A.value)}),he(l,()=>{e("headingChanged",l.value)}),he(o,()=>{e("altitudeChanged",o.value)}),he(s,()=>{e("altitudeAccuracyChanged",s.value)}),he(u,()=>{e("accuracyGeometryChanged",u.value)});const c=()=>{i.value=n.value.getPosition(),A.value=n.value.getSpeed(),l.value=n.value.getHeading(),a.value=n.value.getAccuracy(),o.value=n.value.getAltitude(),s.value=n.value.getAltitudeAccuracy(),u.value=n.value.getAccuracyGeometry()};return he(n,(h,f)=>{f.un("change",c),h.on("change",c)}),{geoLoc:n,position:i,accuracy:a,altitude:o,altitudeAccuracy:s,speed:A,heading:l,accuracyGeometry:u}},props:{projection:{type:[String,Object],default:"EPSG:3857"},tracking:{type:Boolean,default:!0},trackingOptions:{type:Object,default:()=>({enableHighAccuracy:!0})}}};function zJ(r,e,t,n,i,a){return mr(r.$slots,"default",{position:n.position,speed:n.speed,heading:n.heading,accuracy:n.accuracy,altitude:n.altitude,altitudeAccuracy:n.altitudeAccuracy,accuracyGeometry:n.accuracyGeometry})}var ab=le(KJ,[["render",zJ]]);function YJ(r){r("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),r("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),r("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),r.WGS84=r["EPSG:4326"],r["EPSG:3785"]=r["EPSG:3857"],r.GOOGLE=r["EPSG:3857"],r["EPSG:900913"]=r["EPSG:3857"],r["EPSG:102113"]=r["EPSG:3857"]}var dh=1,vh=2,M0=3,XJ=4,ob=5,PM=6378137,WJ=6356752314e-3,UM=.0066943799901413165,Qv=484813681109536e-20,zt=Math.PI/2,qJ=.16666666666666666,ZJ=.04722222222222222,JJ=.022156084656084655,ne=1e-10,na=.017453292519943295,eA=57.29577951308232,zr=Math.PI/4,yg=Math.PI*2,ri=3.14159265359,vo={};vo.greenwich=0;vo.lisbon=-9.131906111111;vo.paris=2.337229166667;vo.bogota=-74.080916666667;vo.madrid=-3.687938888889;vo.rome=12.452333333333;vo.bern=7.439583333333;vo.jakarta=106.807719444444;vo.ferro=-17.666666666667;vo.brussels=4.367975;vo.stockholm=18.058277777778;vo.athens=23.7163375;vo.oslo=10.722916666667;var ttt={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}},DM=/[\s_\-\/\(\)]/g;function Gu(r,e){if(r[e])return r[e];for(var t=Object.keys(r),n=e.toLowerCase().replace(DM,""),i=-1,a,o;++i=this.text.length)return;r=this.text[this.place++]}switch(this.state){case mg:return this.neutral(r);case r4:return this.keyword(r);case N_:return this.quoted(r);case i4:return this.afterquote(r);case n4:return this.number(r);case yF:return}};El.prototype.afterquote=function(r){if(r==='"'){this.word+='"',this.state=N_;return}if(lw.test(r)){this.word=this.word.trim(),this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in afterquote yet, index '+this.place)};El.prototype.afterItem=function(r){if(r===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=mg;return}if(r==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=mg,this.currentObject=this.stack.pop(),this.currentObject||(this.state=yF);return}};El.prototype.number=function(r){if(a4.test(r)){this.word+=r;return}if(lw.test(r)){this.word=parseFloat(this.word),this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in number yet, index '+this.place)};El.prototype.quoted=function(r){if(r==='"'){this.state=i4;return}this.word+=r};El.prototype.keyword=function(r){if(ntt.test(r)){this.word+=r;return}if(r==="["){var e=[];e.push(this.word),this.level++,this.root===null?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,this.state=mg;return}if(lw.test(r)){this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in keyword yet, index '+this.place)};El.prototype.neutral=function(r){if(rtt.test(r)){this.word=r,this.state=r4;return}if(r==='"'){this.word="",this.state=N_;return}if(a4.test(r)){this.word=r,this.state=n4;return}if(lw.test(r)){this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in neutral yet, index '+this.place)};El.prototype.output=function(){for(;this.place0?90:-90),r.lat_ts=r.lat1)}function o4(r){var e=itt(r),t=e.shift(),n=e.shift();e.unshift(["name",n]),e.unshift(["type",t]);var i={};return Kf(e,i),stt(i),i}function Pa(r){var e=this;if(arguments.length===2){var t=arguments[1];typeof t=="string"?t.charAt(0)==="+"?Pa[r]=sb(arguments[1]):Pa[r]=o4(arguments[1]):Pa[r]=t}else if(arguments.length===1){if(Array.isArray(r))return r.map(function(n){Array.isArray(n)?Pa.apply(e,n):Pa(n)});if(typeof r=="string"){if(r in Pa)return Pa[r]}else"EPSG"in r?Pa["EPSG:"+r.EPSG]=r:"ESRI"in r?Pa["ESRI:"+r.ESRI]=r:"IAU2000"in r?Pa["IAU2000:"+r.IAU2000]=r:console.log(r);return}}YJ(Pa);function Att(r){return typeof r=="string"}function ltt(r){return r in Pa}var utt=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function ctt(r){return utt.some(function(e){return r.indexOf(e)>-1})}var htt=["3857","900913","3785","102113"];function ftt(r){var e=Gu(r,"authority");if(e){var t=Gu(e,"epsg");return t&&htt.indexOf(t)>-1}}function ptt(r){var e=Gu(r,"extension");if(e)return Gu(e,"proj4")}function dtt(r){return r[0]==="+"}function vtt(r){if(Att(r)){if(ltt(r))return Pa[r];if(ctt(r)){var e=o4(r);if(ftt(e))return Pa["EPSG:3857"];var t=ptt(e);return t?sb(t):e}if(dtt(r))return sb(r)}else return r}function HM(r,e){r=r||{};var t,n;if(!e)return r;for(n in e)t=e[n],t!==void 0&&(r[n]=t);return r}function cA(r,e,t){var n=r*e;return t/Math.sqrt(1-n*n)}function iy(r){return r<0?-1:1}function fe(r){return Math.abs(r)<=ri?r:r-iy(r)*yg}function Ss(r,e,t){var n=r*t,i=.5*r;return n=Math.pow((1-n)/(1+n),i),Math.tan(.5*(zt-e))/n}function _g(r,e){for(var t=.5*r,n,i,a=zt-2*Math.atan(e),o=0;o<=15;o++)if(n=r*Math.sin(a),i=zt-2*Math.atan(e*Math.pow((1-n)/(1+n),t))-a,a+=i,Math.abs(i)<=1e-10)return a;return-9999}function gtt(){var r=this.b/this.a;this.es=1-r*r,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=cA(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function ytt(r){var e=r.x,t=r.y;if(t*eA>90&&t*eA<-90&&e*eA>180&&e*eA<-180)return null;var n,i;if(Math.abs(Math.abs(t)-zt)<=ne)return null;if(this.sphere)n=this.x0+this.a*this.k0*fe(e-this.long0),i=this.y0+this.a*this.k0*Math.log(Math.tan(zr+.5*t));else{var a=Math.sin(t),o=Ss(this.e,t,a);n=this.x0+this.a*this.k0*fe(e-this.long0),i=this.y0-this.a*this.k0*Math.log(o)}return r.x=n,r.y=i,r}function mtt(r){var e=r.x-this.x0,t=r.y-this.y0,n,i;if(this.sphere)i=zt-2*Math.atan(Math.exp(-t/(this.a*this.k0)));else{var a=Math.exp(-t/(this.a*this.k0));if(i=_g(this.e,a),i===-9999)return null}return n=fe(this.long0+e/(this.a*this.k0)),r.x=n,r.y=i,r}var _tt=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],wtt={init:gtt,forward:ytt,inverse:mtt,names:_tt};function Ett(){}function GM(r){return r}var Ctt=["longlat","identity"],Btt={init:Ett,forward:GM,inverse:GM,names:Ctt},Ttt=[wtt,Btt],N0={},P_=[];function s4(r,e){var t=P_.length;return r.names?(P_[t]=r,r.names.forEach(function(n){N0[n.toLowerCase()]=t}),this):(console.log(e),!0)}function btt(r){if(!r)return!1;var e=r.toLowerCase();if(typeof N0[e]<"u"&&P_[N0[e]])return P_[N0[e]]}function Stt(){Ttt.forEach(s4)}var xtt={start:Stt,add:s4,get:btt},Ye={};Ye.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};Ye.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};Ye.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};Ye.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};Ye.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"};Ye.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};Ye.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};Ye.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"};Ye.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};Ye.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"};Ye.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};Ye.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"};Ye.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};Ye.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"};Ye.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."};Ye.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"};Ye.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};Ye.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};Ye.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"};Ye.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"};Ye.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"};Ye.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"};Ye.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"};Ye.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"};Ye.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};Ye.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};Ye.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};Ye.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};Ye.hough={a:6378270,rf:297,ellipseName:"Hough"};Ye.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};Ye.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};Ye.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};Ye.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};Ye.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"};Ye.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};Ye.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};Ye.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"};Ye.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"};Ye.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"};Ye.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};Ye.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var Itt=Ye.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};Ye.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function Ftt(r,e,t,n){var i=r*r,a=e*e,o=(i-a)/i,s=0;n?(r*=1-o*(qJ+o*(ZJ+o*JJ)),i=r*r,o=0):s=Math.sqrt(o);var A=(i-a)/a;return{es:o,e:s,ep2:A}}function Ltt(r,e,t,n,i){if(!r){var a=Gu(Ye,n);a||(a=Itt),r=a.a,e=a.b,t=a.rf}return t&&!e&&(e=(1-1/t)*r),(t===0||Math.abs(r-e)3&&(s.datum_params[3]!==0||s.datum_params[4]!==0||s.datum_params[5]!==0||s.datum_params[6]!==0)&&(s.datum_type=vh,s.datum_params[3]*=Qv,s.datum_params[4]*=Qv,s.datum_params[5]*=Qv,s.datum_params[6]=s.datum_params[6]/1e6+1)),o&&(s.datum_type=M0,s.grids=o),s.a=t,s.b=n,s.es=i,s.ep2=a,s}var A4={};function Rtt(r,e){var t=new DataView(e),n=Ptt(t),i=Utt(t,n);i.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var a=Dtt(t,i,n),o={header:i,subgrids:a};return A4[r]=o,o}function Mtt(r){if(r===void 0)return null;var e=r.split(",");return e.map(Ntt)}function Ntt(r){if(r.length===0)return null;var e=r[0]==="@";return e&&(r=r.slice(1)),r==="null"?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:r,mandatory:!e,grid:A4[r]||null,isNull:!1}}function zf(r){return r/3600*Math.PI/180}function Ptt(r){var e=r.getInt32(8,!1);return e===11?!1:(e=r.getInt32(8,!0),e!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function Utt(r,e){return{nFields:r.getInt32(8,e),nSubgridFields:r.getInt32(24,e),nSubgrids:r.getInt32(40,e),shiftType:Ab(r,56,56+8).trim(),fromSemiMajorAxis:r.getFloat64(120,e),fromSemiMinorAxis:r.getFloat64(136,e),toSemiMajorAxis:r.getFloat64(152,e),toSemiMinorAxis:r.getFloat64(168,e)}}function Ab(r,e,t){return String.fromCharCode.apply(null,new Uint8Array(r.buffer.slice(e,t)))}function Dtt(r,e,t){for(var n=176,i=[],a=0;a5e-11?!1:r.datum_type===dh?r.datum_params[0]===e.datum_params[0]&&r.datum_params[1]===e.datum_params[1]&&r.datum_params[2]===e.datum_params[2]:r.datum_type===vh?r.datum_params[0]===e.datum_params[0]&&r.datum_params[1]===e.datum_params[1]&&r.datum_params[2]===e.datum_params[2]&&r.datum_params[3]===e.datum_params[3]&&r.datum_params[4]===e.datum_params[4]&&r.datum_params[5]===e.datum_params[5]&&r.datum_params[6]===e.datum_params[6]:!0}function l4(r,e,t){var n=r.x,i=r.y,a=r.z?r.z:0,o,s,A,l;if(i<-zt&&i>-1.001*zt)i=-zt;else if(i>zt&&i<1.001*zt)i=zt;else{if(i<-zt)return{x:-1/0,y:-1/0,z:r.z};if(i>zt)return{x:1/0,y:1/0,z:r.z}}return n>Math.PI&&(n-=2*Math.PI),s=Math.sin(i),l=Math.cos(i),A=s*s,o=t/Math.sqrt(1-e*A),{x:(o+a)*l*Math.cos(n),y:(o+a)*l*Math.sin(n),z:(o*(1-e)+a)*s}}function u4(r,e,t,n){var i=1e-12,a=i*i,o=30,s,A,l,u,c,h,f,p,v,m,g,_,E,B=r.x,L=r.y,O=r.z?r.z:0,x,T,I;if(s=Math.sqrt(B*B+L*L),A=Math.sqrt(B*B+L*L+O*O),s/ta&&En.y||u>n.x||fs&&Math.abs(A.y)>s);if(o<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=fe(a.x+t.ll[0]),n.y=a.y+t.ll[1]}else isNaN(a.x)||(n.x=r.x+a.x,n.y=r.y+a.y);return n}function $M(r,e){var t={x:r.x/e.del[0],y:r.y/e.del[1]},n={x:Math.floor(t.x),y:Math.floor(t.y)},i={x:t.x-1*n.x,y:t.y-1*n.y},a={x:Number.NaN,y:Number.NaN},o;if(n.x<0||n.x>=e.lim[0]||n.y<0||n.y>=e.lim[1])return a;o=n.y*e.lim[0]+n.x;var s={x:e.cvs[o][0],y:e.cvs[o][1]};o++;var A={x:e.cvs[o][0],y:e.cvs[o][1]};o+=e.lim[0];var l={x:e.cvs[o][0],y:e.cvs[o][1]};o--;var u={x:e.cvs[o][0],y:e.cvs[o][1]},c=i.x*i.y,h=i.x*(1-i.y),f=(1-i.x)*(1-i.y),p=(1-i.x)*i.y;return a.x=f*s.x+h*A.x+p*u.x+c*l.x,a.y=f*s.y+h*A.y+p*u.y+c*l.y,a}function VM(r,e,t){var n=t.x,i=t.y,a=t.z||0,o,s,A,l={};for(A=0;A<3;A++)if(!(e&&A===2&&t.z===void 0))switch(A===0?(o=n,"ew".indexOf(r.axis[A])!==-1?s="x":s="y"):A===1?(o=i,"ns".indexOf(r.axis[A])!==-1?s="y":s="x"):(o=a,s="z"),r.axis[A]){case"e":l[s]=o;break;case"w":l[s]=-o;break;case"n":l[s]=o;break;case"s":l[s]=-o;break;case"u":t[s]!==void 0&&(l.z=o);break;case"d":t[s]!==void 0&&(l.z=-o);break;default:return null}return l}function c4(r){var e={x:r[0],y:r[1]};return r.length>2&&(e.z=r[2]),r.length>3&&(e.m=r[3]),e}function ztt(r){jM(r.x),jM(r.y)}function jM(r){if(typeof Number.isFinite=="function"){if(Number.isFinite(r))return;throw new TypeError("coordinates must be finite numbers")}if(typeof r!="number"||r!==r||!isFinite(r))throw new TypeError("coordinates must be finite numbers")}function Ytt(r,e){return(r.datum.datum_type===dh||r.datum.datum_type===vh)&&e.datumCode!=="WGS84"||(e.datum.datum_type===dh||e.datum.datum_type===vh)&&r.datumCode!=="WGS84"}function U_(r,e,t,n){var i;if(Array.isArray(t)&&(t=c4(t)),ztt(t),r.datum&&e.datum&&Ytt(r,e)&&(i=new oA("WGS84"),t=U_(r,i,t,n),r=i),n&&r.axis!=="enu"&&(t=VM(r,!1,t)),r.projName==="longlat")t={x:t.x*na,y:t.y*na,z:t.z||0};else if(r.to_meter&&(t={x:t.x*r.to_meter,y:t.y*r.to_meter,z:t.z||0}),t=r.inverse(t),!t)return;if(r.from_greenwich&&(t.x+=r.from_greenwich),t=jtt(r.datum,e.datum,t),!!t)return e.from_greenwich&&(t={x:t.x-e.from_greenwich,y:t.y,z:t.z||0}),e.projName==="longlat"?t={x:t.x*eA,y:t.y*eA,z:t.z||0}:(t=e.forward(t),e.to_meter&&(t={x:t.x/e.to_meter,y:t.y/e.to_meter,z:t.z||0})),n&&e.axis!=="enu"?VM(e,!0,t):t}var KM=oA("WGS84");function SC(r,e,t,n){var i,a,o;return Array.isArray(t)?(i=U_(r,e,t,n)||{x:NaN,y:NaN},t.length>2?typeof r.name<"u"&&r.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"?typeof i.z=="number"?[i.x,i.y,i.z].concat(t.splice(3)):[i.x,i.y,t[2]].concat(t.splice(3)):[i.x,i.y].concat(t.splice(2)):[i.x,i.y]):(a=U_(r,e,t,n),o=Object.keys(t),o.length===2||o.forEach(function(s){if(typeof r.name<"u"&&r.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"){if(s==="x"||s==="y"||s==="z")return}else if(s==="x"||s==="y")return;a[s]=t[s]}),a)}function zM(r){return r instanceof oA?r:r.oProj?r.oProj:oA(r)}function ho(r,e,t){r=zM(r);var n=!1,i;return typeof e>"u"?(e=r,r=KM,n=!0):(typeof e.x<"u"||Array.isArray(e))&&(t=e,e=r,r=KM,n=!0),e=zM(e),t?SC(r,e,t):(i={forward:function(a,o){return SC(r,e,a,o)},inverse:function(a,o){return SC(e,r,a,o)}},n&&(i.oProj=e),i)}var YM=6,h4="AJSAJS",f4="AFAFAF",Yf=65,ro=73,zo=79,dv=86,vv=90,Xtt={forward:p4,inverse:Wtt,toPoint:d4};function p4(r,e){return e=e||5,Jtt(qtt({lat:r[1],lon:r[0]}),e)}function Wtt(r){var e=mF(g4(r.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]}function d4(r){var e=mF(g4(r.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function xC(r){return r*(Math.PI/180)}function XM(r){return 180*(r/Math.PI)}function qtt(r){var e=r.lat,t=r.lon,n=6378137,i=.00669438,a=.9996,o,s,A,l,u,c,h,f=xC(e),p=xC(t),v,m;m=Math.floor((t+180)/6)+1,t===180&&(m=60),e>=56&&e<64&&t>=3&&t<12&&(m=32),e>=72&&e<84&&(t>=0&&t<9?m=31:t>=9&&t<21?m=33:t>=21&&t<33?m=35:t>=33&&t<42&&(m=37)),o=(m-1)*6-180+3,v=xC(o),s=i/(1-i),A=n/Math.sqrt(1-i*Math.sin(f)*Math.sin(f)),l=Math.tan(f)*Math.tan(f),u=s*Math.cos(f)*Math.cos(f),c=Math.cos(f)*(p-v),h=n*((1-i/4-3*i*i/64-5*i*i*i/256)*f-(3*i/8+3*i*i/32+45*i*i*i/1024)*Math.sin(2*f)+(15*i*i/256+45*i*i*i/1024)*Math.sin(4*f)-35*i*i*i/3072*Math.sin(6*f));var g=a*A*(c+(1-l+u)*c*c*c/6+(5-18*l+l*l+72*u-58*s)*c*c*c*c*c/120)+5e5,_=a*(h+A*Math.tan(f)*(c*c/2+(5-l+9*u+4*u*u)*c*c*c*c/24+(61-58*l+l*l+600*u-330*s)*c*c*c*c*c*c/720));return e<0&&(_+=1e7),{northing:Math.round(_),easting:Math.round(g),zoneNumber:m,zoneLetter:Ztt(e)}}function mF(r){var e=r.northing,t=r.easting,n=r.zoneLetter,i=r.zoneNumber;if(i<0||i>60)return null;var a=.9996,o=6378137,s=.00669438,A,l=(1-Math.sqrt(1-s))/(1+Math.sqrt(1-s)),u,c,h,f,p,v,m,g,_,E=t-5e5,B=e;n<"N"&&(B-=1e7),m=(i-1)*6-180+3,A=s/(1-s),v=B/a,g=v/(o*(1-s/4-3*s*s/64-5*s*s*s/256)),_=g+(3*l/2-27*l*l*l/32)*Math.sin(2*g)+(21*l*l/16-55*l*l*l*l/32)*Math.sin(4*g)+151*l*l*l/96*Math.sin(6*g),u=o/Math.sqrt(1-s*Math.sin(_)*Math.sin(_)),c=Math.tan(_)*Math.tan(_),h=A*Math.cos(_)*Math.cos(_),f=o*(1-s)/Math.pow(1-s*Math.sin(_)*Math.sin(_),1.5),p=E/(u*a);var L=_-u*Math.tan(_)/f*(p*p/2-(5+3*c+10*h-4*h*h-9*A)*p*p*p*p/24+(61+90*c+298*h+45*c*c-252*A-3*h*h)*p*p*p*p*p*p/720);L=XM(L);var O=(p-(1+2*c+h)*p*p*p/6+(5-2*h+28*c-3*h*h+8*A+24*c*c)*p*p*p*p*p/120)/Math.cos(_);O=m+XM(O);var x;if(r.accuracy){var T=mF({northing:r.northing+r.accuracy,easting:r.easting+r.accuracy,zoneLetter:r.zoneLetter,zoneNumber:r.zoneNumber});x={top:T.lat,right:T.lon,bottom:L,left:O}}else x={lat:L,lon:O};return x}function Ztt(r){var e="Z";return 84>=r&&r>=72?e="X":72>r&&r>=64?e="W":64>r&&r>=56?e="V":56>r&&r>=48?e="U":48>r&&r>=40?e="T":40>r&&r>=32?e="S":32>r&&r>=24?e="R":24>r&&r>=16?e="Q":16>r&&r>=8?e="P":8>r&&r>=0?e="N":0>r&&r>=-8?e="M":-8>r&&r>=-16?e="L":-16>r&&r>=-24?e="K":-24>r&&r>=-32?e="J":-32>r&&r>=-40?e="H":-40>r&&r>=-48?e="G":-48>r&&r>=-56?e="F":-56>r&&r>=-64?e="E":-64>r&&r>=-72?e="D":-72>r&&r>=-80&&(e="C"),e}function Jtt(r,e){var t="00000"+r.easting,n="00000"+r.northing;return r.zoneNumber+r.zoneLetter+tet(r.easting,r.northing,r.zoneNumber)+t.substr(t.length-5,e)+n.substr(n.length-5,e)}function tet(r,e,t){var n=v4(t),i=Math.floor(r/1e5),a=Math.floor(e/1e5)%20;return eet(i,a,n)}function v4(r){var e=r%YM;return e===0&&(e=YM),e}function eet(r,e,t){var n=t-1,i=h4.charCodeAt(n),a=f4.charCodeAt(n),o=i+r-1,s=a+e,A=!1;o>vv&&(o=o-vv+Yf-1,A=!0),(o===ro||iro||(o>ro||izo||(o>zo||ivv&&(o=o-vv+Yf-1),s>dv?(s=s-dv+Yf-1,A=!0):A=!1,(s===ro||aro||(s>ro||azo||(s>zo||adv&&(s=s-dv+Yf-1);var l=String.fromCharCode(o)+String.fromCharCode(s);return l}function g4(r){if(r&&r.length===0)throw"MGRSPoint coverting from nothing";for(var e=r.length,t=null,n="",i,a=0;!/[A-Z]/.test(i=r.charAt(a));){if(a>=2)throw"MGRSPoint bad conversion from: "+r;n+=i,a++}var o=parseInt(n,10);if(a===0||a+3>e)throw"MGRSPoint bad conversion from: "+r;var s=r.charAt(a++);if(s<="A"||s==="B"||s==="Y"||s>="Z"||s==="I"||s==="O")throw"MGRSPoint zone letter "+s+" not handled: "+r;t=r.substring(a,a+=2);for(var A=v4(o),l=ret(t.charAt(0),A),u=net(t.charAt(1),A);u0&&(v=1e5/Math.pow(10,h),m=r.substring(a,a+h),f=parseFloat(m)*v,g=r.substring(a+h),p=parseFloat(g)*v),_=f+l,E=p+u,{easting:_,northing:E,zoneLetter:s,zoneNumber:o,accuracy:v}}function Jtt(r,e){for(var t=h4.charCodeAt(e-1),n=1e5,i=!1;t!==r.charCodeAt(0);){if(t++,t===eo&&t++,t===Ko&&t++,t>vv){if(i)throw"Bad character: "+r;t=Yf,i=!0}n+=1e5}return n}function tet(r,e){if(r>"V")throw"MGRSPoint given invalid Northing "+r;for(var t=f4.charCodeAt(e-1),n=0,i=!1;t!==r.charCodeAt(0);){if(t++,t===eo&&t++,t===Ko&&t++,t>dv){if(i)throw"Bad character: "+r;t=Yf,i=!0}n+=1e5}return n}function eet(r){var e;switch(r){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+r}function Ip(r,e,t){if(!(this instanceof Ip))return new Ip(r,e,t);if(Array.isArray(r))this.x=r[0],this.y=r[1],this.z=r[2]||0;else if(typeof r=="object")this.x=r.x,this.y=r.y,this.z=r.z||0;else if(typeof r=="string"&&typeof e>"u"){var n=r.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=r,this.y=e,this.z=t||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Ip.fromMGRS=function(r){return new Ip(d4(r))};Ip.prototype.toMGRS=function(r){return p4([this.x,this.y],r)};var ret=1,net=.25,XM=.046875,WM=.01953125,qM=.01068115234375,iet=.75,aet=.46875,oet=.013020833333333334,set=.007120768229166667,Aet=.3645833333333333,uet=.005696614583333333,cet=.3076171875;function y4(r){var e=[];e[0]=ret-r*(net+r*(XM+r*(WM+r*qM))),e[1]=r*(iet-r*(XM+r*(WM+r*qM)));var t=r*r;return e[2]=t*(aet-r*(oet+r*set)),t*=r,e[3]=t*(Aet-r*uet),e[4]=t*r*cet,e}function uw(r,e,t,n){return t*=e,e*=e,n[0]*r-t*(n[1]+e*(n[2]+e*(n[3]+e*n[4])))}var het=20;function m4(r,e,t){for(var n=1/(1-e),i=r,a=het;a;--a){var o=Math.sin(i),s=1-e*o*o;if(s=(uw(i,o,Math.cos(i),t)-r)*(s*Math.sqrt(s))*n,i-=s,Math.abs(s)ne?Math.tan(t):0,v=Math.pow(p,2),m=Math.pow(v,2);i=1-this.es*Math.pow(s,2),u=u/Math.sqrt(i);var g=uw(t,s,A,this.en);a=this.a*(this.k0*u*(1+c/6*(1-v+h+c/20*(5-18*v+m+14*h-58*v*h+c/42*(61+179*m-m*v-479*v)))))+this.x0,o=this.a*(this.k0*(g-this.ml0+s*n*u/2*(1+c/12*(5-v+9*h+4*f+c/30*(61+m-58*v+270*h-330*v*h+c/56*(1385+543*m-m*v-3111*v))))))+this.y0}else{var l=A*Math.sin(n);if(Math.abs(Math.abs(l)-1)=1){if(l-1>ne)return 93;o=0}else o=Math.acos(o);t<0&&(o=-o),o=this.a*this.k0*(o-this.lat0)+this.y0}return r.x=a,r.y=o,r}function det(r){var e,t,n,i,a=(r.x-this.x0)*(1/this.a),o=(r.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+o/this.k0,t=m4(e,this.es,this.en),Math.abs(t)ne?Math.tan(t):0,p=this.ep2*Math.pow(h,2),v=Math.pow(p,2),m=Math.pow(f,2),g=Math.pow(m,2);e=1-this.es*Math.pow(c,2);var _=a*Math.sqrt(e)/this.k0,E=Math.pow(_,2);e=e*f,n=t-e*E/(1-this.es)*.5*(1-E/12*(5+3*m-9*p*m+p-4*v-E/30*(61+90*m-252*p*m+45*g+46*p-E/56*(1385+3633*m+4095*g+1574*g*m)))),i=fe(this.long0+_*(1-E/6*(1+2*m+p-E/20*(5+28*m+24*g+8*p*m+6*p-E/42*(61+662*m+1320*g+720*g*m))))/h)}else n=zt*iy(o),i=0;else{var s=Math.exp(a/this.k0),A=.5*(s-1/s),l=this.lat0+o/this.k0,u=Math.cos(l);e=Math.sqrt((1-Math.pow(u,2))/(1+Math.pow(A,2))),n=Math.asin(e),o<0&&(n=-n),A===0&&u===0?i=0:i=fe(Math.atan2(A,u)+this.long0)}return r.x=i,r.y=n,r}var vet=["Fast_Transverse_Mercator","Fast Transverse Mercator"],P0={init:fet,forward:pet,inverse:det,names:vet};function _4(r){var e=Math.exp(r);return e=(e-1/e)/2,e}function cw(r,e){r=Math.abs(r),e=Math.abs(e);var t=Math.max(r,e),n=Math.min(r,e)/(t||1);return t*Math.sqrt(1+Math.pow(n,2))}function get(r){var e=1+r,t=e-1;return t===0?r:r*Math.log(e)/t}function yet(r){var e=Math.abs(r);return e=get(e*(1+e/(cw(1,e)+1))),r<0?-e:e}function mF(r,e){for(var t=2*Math.cos(2*e),n=r.length-1,i=r[n],a=0,o;--n>=0;)o=-a+t*i+r[n],a=i,i=o;return e+o*Math.sin(2*e)}function met(r,e){for(var t=2*Math.cos(e),n=r.length-1,i=r[n],a=0,o;--n>=0;)o=-a+t*i+r[n],a=i,i=o;return Math.sin(e)*o}function _et(r){var e=Math.exp(r);return e=(e+1/e)/2,e}function w4(r,e,t){for(var n=Math.sin(e),i=Math.cos(e),a=_4(t),o=_et(t),s=2*i*o,A=-2*n*a,l=r.length-1,u=r[l],c=0,h=0,f=0,p,v;--l>=0;)p=h,v=c,h=u,c=f,u=-p+s*h-A*c+r[l],f=-v+A*h+s*c;return s=n*o,A=i*a,[s*u-A*f,s*f+A*u]}function wet(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(P0.init.apply(this),this.forward=P0.forward,this.inverse=P0.inverse),this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var r=this.es/(1+Math.sqrt(1-this.es)),e=r/(2-r),t=e;this.cgb[0]=e*(2+e*(-2/3+e*(-2+e*(116/45+e*(26/45+e*(-2854/675)))))),this.cbg[0]=e*(-2+e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))),t=t*e,this.cgb[1]=t*(7/3+e*(-8/5+e*(-227/45+e*(2704/315+e*(2323/945))))),this.cbg[1]=t*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),t=t*e,this.cgb[2]=t*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=t*(-26/15+e*(34/21+e*(8/5+e*(-12686/2835)))),t=t*e,this.cgb[3]=t*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=t*(1237/630+e*(-12/5+e*(-24832/14175))),t=t*e,this.cgb[4]=t*(4174/315+e*(-144838/6237)),this.cbg[4]=t*(-734/315+e*(109598/31185)),t=t*e,this.cgb[5]=t*(601676/22275),this.cbg[5]=t*(444337/155925),t=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+t*(1/4+t*(1/64+t/256))),this.utg[0]=e*(-.5+e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=t*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=t*(13/48+e*(-3/5+e*(557/1440+e*(281/630+e*(-1983433/1935360))))),t=t*e,this.utg[2]=t*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=t*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),t=t*e,this.utg[3]=t*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=t*(49561/161280+e*(-179/168+e*(6601661/7257600))),t=t*e,this.utg[4]=t*(-4583/161280+e*(108847/3991680)),this.gtu[4]=t*(34729/80640+e*(-3418889/1995840)),t=t*e,this.utg[5]=t*(-20648693/638668800),this.gtu[5]=t*(212378941/319334400);var n=mF(this.cbg,this.lat0);this.Zb=-this.Qn*(n+met(this.gtu,2*n))}function Eet(r){var e=fe(r.x-this.long0),t=r.y;t=mF(this.cbg,t);var n=Math.sin(t),i=Math.cos(t),a=Math.sin(e),o=Math.cos(e);t=Math.atan2(n,o*i),e=Math.atan2(a*i,cw(n,i*o)),e=yet(Math.tan(e));var s=w4(this.gtu,2*t,2*e);t=t+s[0],e=e+s[1];var A,l;return Math.abs(e)<=2.623395162778?(A=this.a*(this.Qn*e)+this.x0,l=this.a*(this.Qn*t+this.Zb)+this.y0):(A=1/0,l=1/0),r.x=A,r.y=l,r}function Cet(r){var e=(r.x-this.x0)*(1/this.a),t=(r.y-this.y0)*(1/this.a);t=(t-this.Zb)/this.Qn,e=e/this.Qn;var n,i;if(Math.abs(e)<=2.623395162778){var a=w4(this.utg,2*t,2*e);t=t+a[0],e=e+a[1],e=Math.atan(_4(e));var o=Math.sin(t),s=Math.cos(t),A=Math.sin(e),l=Math.cos(e);t=Math.atan2(o*l,cw(A,l*s)),e=Math.atan2(A,l*s),n=fe(e+this.long0),i=mF(this.cgb,t)}else n=1/0,i=1/0;return r.x=n,r.y=i,r}var Bet=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"],U0={init:wet,forward:Eet,inverse:Cet,names:Bet};function Tet(r,e){if(r===void 0){if(r=Math.floor((fe(e)+Math.PI)*30/Math.PI)+1,r<0)return 0;if(r>60)return 60}return r}var xet="etmerc";function bet(){var r=Tet(this.zone,this.long0);if(r===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(r)-183)*ra,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,U0.init.apply(this),this.forward=U0.forward,this.inverse=U0.inverse}var Iet=["Universal Transverse Mercator System","utm"],Fet={init:bet,names:Iet,dependsOn:xet};function _F(r,e){return Math.pow((1-r)/(1+r),e)}var Let=20;function Oet(){var r=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*r*r),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(r/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+zr)/(Math.pow(Math.tan(.5*this.lat0+zr),this.C)*_F(this.e*r,this.ratexp))}function Ret(r){var e=r.x,t=r.y;return r.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*t+zr),this.C)*_F(this.e*Math.sin(t),this.ratexp))-zt,r.x=this.C*e,r}function Met(r){for(var e=1e-14,t=r.x/this.C,n=r.y,i=Math.pow(Math.tan(.5*n+zr)/this.K,1/this.C),a=Let;a>0&&(n=2*Math.atan(i*_F(this.e*Math.sin(r.y),-.5*this.e))-zt,!(Math.abs(n-r.y)0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=ne&&(this.k0=.5*this.cons*uA(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/Ss(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=uA(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-zt,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function $et(r){var e=r.x,t=r.y,n=Math.sin(t),i=Math.cos(t),a,o,s,A,l,u,c=fe(e-this.long0);return Math.abs(Math.abs(e-this.long0)-Math.PI)<=ne&&Math.abs(t+this.lat0)<=ne?(r.x=NaN,r.y=NaN,r):this.sphere?(a=2*this.k0/(1+this.sinlat0*n+this.coslat0*i*Math.cos(c)),r.x=this.a*a*i*Math.sin(c)+this.x0,r.y=this.a*a*(this.coslat0*n-this.sinlat0*i*Math.cos(c))+this.y0,r):(o=2*Math.atan(this.ssfn_(t,n,this.e))-zt,A=Math.cos(o),s=Math.sin(o),Math.abs(this.coslat0)<=ne?(l=Ss(this.e,t*this.con,this.con*n),u=2*this.a*this.k0*l/this.cons,r.x=this.x0+u*Math.sin(e-this.long0),r.y=this.y0-this.con*u*Math.cos(e-this.long0),r):(Math.abs(this.sinlat0)0?e=fe(this.long0+Math.atan2(r.x,-1*r.y)):e=fe(this.long0+Math.atan2(r.x,r.y)):e=fe(this.long0+Math.atan2(r.x*Math.sin(s),o*this.coslat0*Math.cos(s)-r.y*this.sinlat0*Math.sin(s))),r.x=e,r.y=t,r)}else if(Math.abs(this.coslat0)<=ne){if(o<=ne)return t=this.lat0,e=this.long0,r.x=e,r.y=t,r;r.x*=this.con,r.y*=this.con,n=o*this.cons/(2*this.a*this.k0),t=this.con*_g(this.e,n),e=this.con*fe(this.con*this.long0+Math.atan2(r.x,-1*r.y))}else i=2*Math.atan(o*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,o<=ne?a=this.X0:(a=Math.asin(Math.cos(i)*this.sinX0+r.y*Math.sin(i)*this.cosX0/o),e=fe(this.long0+Math.atan2(r.x*Math.sin(i),o*this.cosX0*Math.cos(i)-r.y*this.sinX0*Math.sin(i)))),t=-1*_g(this.e,Math.tan(.5*(zt+a)));return r.x=e,r.y=t,r}var jet=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],Ket={init:ket,forward:$et,inverse:Vet,names:jet,ssfn_:Get};function zet(){var r=this.lat0;this.lambda0=this.long0;var e=Math.sin(r),t=this.a,n=this.rf,i=1/n,a=2*i-Math.pow(i,2),o=this.e=Math.sqrt(a);this.R=this.k0*t*Math.sqrt(1-a)/(1-a*Math.pow(e,2)),this.alpha=Math.sqrt(1+a/(1-a)*Math.pow(Math.cos(r),4)),this.b0=Math.asin(e/this.alpha);var s=Math.log(Math.tan(Math.PI/4+this.b0/2)),A=Math.log(Math.tan(Math.PI/4+r/2)),l=Math.log((1+o*e)/(1-o*e));this.K=s-this.alpha*A+this.alpha*o/2*l}function Yet(r){var e=Math.log(Math.tan(Math.PI/4-r.y/2)),t=this.e/2*Math.log((1+this.e*Math.sin(r.y))/(1-this.e*Math.sin(r.y))),n=-this.alpha*(e+t)+this.K,i=2*(Math.atan(Math.exp(n))-Math.PI/4),a=this.alpha*(r.x-this.lambda0),o=Math.atan(Math.sin(a)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(a))),s=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(a));return r.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,r.x=this.R*o+this.x0,r}function Xet(r){for(var e=r.x-this.x0,t=r.y-this.y0,n=e/this.R,i=2*(Math.atan(Math.exp(t/this.R))-Math.PI/4),a=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(n)),o=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(i))),s=this.lambda0+o/this.alpha,A=0,l=a,u=-1e3,c=0;Math.abs(l-u)>1e-7;){if(++c>20)return;A=1/this.alpha*(Math.log(Math.tan(Math.PI/4+a/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),u=l,l=2*Math.atan(Math.exp(A))-Math.PI/2}return r.x=s,r.y=l,r}var Wet=["somerc"],qet={init:zet,forward:Yet,inverse:Xet,names:Wet},Nf=1e-7;function Zet(r){var e=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],t=typeof r.PROJECTION=="object"?Object.keys(r.PROJECTION)[0]:r.PROJECTION;return"no_uoff"in r||"no_off"in r||e.indexOf(t)!==-1}function Jet(){var r,e,t,n,i,a,o,s,A,l,u=0,c,h=0,f=0,p=0,v=0,m=0,g=0;this.no_off=Zet(this),this.no_rot="no_rot"in this;var _=!1;"alpha"in this&&(_=!0);var E=!1;if("rectified_grid_angle"in this&&(E=!0),_&&(g=this.alpha),E&&(u=this.rectified_grid_angle*ra),_||E)h=this.longc;else if(f=this.long1,v=this.lat1,p=this.long2,m=this.lat2,Math.abs(v-m)<=Nf||(r=Math.abs(v))<=Nf||Math.abs(r-zt)<=Nf||Math.abs(Math.abs(this.lat0)-zt)<=Nf||Math.abs(Math.abs(m)-zt)<=Nf)throw new Error;var B=1-this.es;e=Math.sqrt(B),Math.abs(this.lat0)>ne?(s=Math.sin(this.lat0),t=Math.cos(this.lat0),r=1-this.es*s*s,this.B=t*t,this.B=Math.sqrt(1+this.es*this.B*this.B/B),this.A=this.B*this.k0*e/r,n=this.B*e/(t*Math.sqrt(r)),i=n*n-1,i<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=n,this.E*=Math.pow(Ss(this.e,this.lat0,s),this.B)):(this.B=1/e,this.A=this.k0,this.E=n=i=1),_||E?(_?(c=Math.asin(Math.sin(g)/n),E||(u=g)):(c=u,g=Math.asin(n*Math.sin(c))),this.lam0=h-Math.asin(.5*(i-1/i)*Math.tan(c))/this.B):(a=Math.pow(Ss(this.e,v,Math.sin(v)),this.B),o=Math.pow(Ss(this.e,m,Math.sin(m)),this.B),i=this.E/a,A=(o-a)/(o+a),l=this.E*this.E,l=(l-o*a)/(l+o*a),r=f-p,r<-Math.pi?p-=yg:r>Math.pi&&(p+=yg),this.lam0=fe(.5*(f+p)-Math.atan(l*Math.tan(.5*this.B*(f-p))/A)/this.B),c=Math.atan(2*Math.sin(this.B*fe(f-this.lam0))/(i-1/i)),u=g=Math.asin(n*Math.sin(c))),this.singam=Math.sin(c),this.cosgam=Math.cos(c),this.sinrot=Math.sin(u),this.cosrot=Math.cos(u),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A*this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(g))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*c,this.v_pole_n=this.ArB*Math.log(Math.tan(zr-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(zr+i))}function trt(r){var e={},t,n,i,a,o,s,A,l;if(r.x=r.x-this.lam0,Math.abs(Math.abs(r.y)-zt)>ne){if(o=this.E/Math.pow(Ss(this.e,r.y,Math.sin(r.y)),this.B),s=1/o,t=.5*(o-s),n=.5*(o+s),a=Math.sin(this.B*r.x),i=(t*this.singam-a*this.cosgam)/n,Math.abs(Math.abs(i)-1)0?this.v_pole_n:this.v_pole_s,A=this.ArB*r.y;return this.no_rot?(e.x=A,e.y=l):(A-=this.u_0,e.x=l*this.cosrot+A*this.sinrot,e.y=A*this.cosrot-l*this.sinrot),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function ert(r){var e,t,n,i,a,o,s,A={};if(r.x=(r.x-this.x0)*(1/this.a),r.y=(r.y-this.y0)*(1/this.a),this.no_rot?(t=r.y,e=r.x):(t=r.x*this.cosrot-r.y*this.sinrot,e=r.y*this.cosrot+r.x*this.sinrot+this.u_0),n=Math.exp(-this.BrA*t),i=.5*(n-1/n),a=.5*(n+1/n),o=Math.sin(this.BrA*e),s=(o*this.cosgam+i*this.singam)/a,Math.abs(Math.abs(s)-1)ne?this.ns=Math.log(n/s)/Math.log(i/A):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=n/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(l,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function art(r){var e=r.x,t=r.y;Math.abs(2*Math.abs(t)-Math.PI)<=ne&&(t=iy(t)*(zt-2*ne));var n=Math.abs(Math.abs(t)-zt),i,a;if(n>ne)i=Ss(this.e,t,Math.sin(t)),a=this.a*this.f0*Math.pow(i,this.ns);else{if(n=t*this.ns,n<=0)return null;a=0}var o=this.ns*fe(e-this.long0);return r.x=this.k0*(a*Math.sin(o))+this.x0,r.y=this.k0*(this.rh-a*Math.cos(o))+this.y0,r}function ort(r){var e,t,n,i,a,o=(r.x-this.x0)/this.k0,s=this.rh-(r.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(o*o+s*s),t=1):(e=-Math.sqrt(o*o+s*s),t=-1);var A=0;if(e!==0&&(A=Math.atan2(t*o,t*s)),e!==0||this.ns>0){if(t=1/this.ns,n=Math.pow(e/(this.a*this.f0),t),i=_g(this.e,n),i===-9999)return null}else i=-zt;return a=fe(A/this.ns+this.long0),r.x=a,r.y=i,r}var srt=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc"],Art={init:irt,forward:art,inverse:ort,names:srt};function lrt(){this.a=6377397155e-3,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.7417649320975901-.308341501185665),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function urt(r){var e,t,n,i,a,o,s,A=r.x,l=r.y,u=fe(A-this.long0);return e=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),t=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/e)-this.s45),n=-u*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(t)+Math.sin(this.ad)*Math.cos(t)*Math.cos(n)),a=Math.asin(Math.cos(t)*Math.sin(n)/Math.cos(i)),o=this.n*a,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),r.y=s*Math.cos(o)/1,r.x=s*Math.sin(o)/1,this.czech||(r.y*=-1,r.x*=-1),r}function crt(r){var e,t,n,i,a,o,s,A,l=r.x;r.x=r.y,r.y=l,this.czech||(r.y*=-1,r.x*=-1),o=Math.sqrt(r.x*r.x+r.y*r.y),a=Math.atan2(r.y,r.x),i=a/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),t=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(e)),r.x=this.long0-t/this.alfa,s=e,A=0;var u=0;do r.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-r.y)<1e-10&&(A=1),s=r.y,u+=1;while(A===0&&u<15);return u>=15?null:r}var hrt=["Krovak","krovak"],frt={init:lrt,forward:urt,inverse:crt,names:hrt};function Ha(r,e,t,n,i){return r*i-e*Math.sin(2*i)+t*Math.sin(4*i)-n*Math.sin(6*i)}function ay(r){return 1-.25*r*(1+r/16*(3+1.25*r))}function oy(r){return .375*r*(1+.25*r*(1+.46875*r))}function sy(r){return .05859375*r*r*(1+.75*r)}function Ay(r){return r*r*r*(35/3072)}function Fp(r,e,t){var n=e*t;return r/Math.sqrt(1-n*n)}function zp(r){return Math.abs(r)1e-7?(t=r*e,(1-r*r)*(e/(1-t*t)-.5/r*Math.log((1-t)/(1+t)))):2*e}var mrt=1,_rt=2,wrt=3,Ert=4;function Crt(){var r=Math.abs(this.lat0);if(Math.abs(r-zt)0){var e;switch(this.qp=Su(this.e,1),this.mmf=.5/(1-this.es),this.apa=Ort(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=Su(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function Brt(r){var e,t,n,i,a,o,s,A,l,u,c=r.x,h=r.y;if(c=fe(c-this.long0),this.sphere){if(a=Math.sin(h),u=Math.cos(h),n=Math.cos(c),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(t=this.mode===this.EQUIT?1+u*n:1+this.sinph0*a+this.cosph0*u*n,t<=ne)return null;t=Math.sqrt(2/t),e=t*u*Math.sin(c),t*=this.mode===this.EQUIT?a:this.cosph0*a-this.sinph0*u*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(h+this.lat0)=0?(e=(l=Math.sqrt(o))*i,t=n*(this.mode===this.S_POLE?l:-l)):e=t=0;break}}return r.x=this.a*e+this.x0,r.y=this.a*t+this.y0,r}function Trt(r){r.x-=this.x0,r.y-=this.y0;var e=r.x/this.a,t=r.y/this.a,n,i,a,o,s,A,l;if(this.sphere){var u=0,c,h=0;if(c=Math.sqrt(e*e+t*t),i=c*.5,i>1)return null;switch(i=2*Math.asin(i),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(h=Math.sin(i),u=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(c)<=ne?0:Math.asin(t*h/c),e*=h,t=u*c;break;case this.OBLIQ:i=Math.abs(c)<=ne?this.lat0:Math.asin(u*this.sinph0+t*h*this.cosph0/c),e*=h*this.cosph0,t=(u-Math.sin(i)*this.sinph0)*c;break;case this.N_POLE:t=-t,i=zt-i;break;case this.S_POLE:i-=zt;break}n=t===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(e,t)}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(e/=this.dd,t*=this.dd,A=Math.sqrt(e*e+t*t),A1&&(r=r>1?1:-1),Math.asin(r)}function Prt(){Math.abs(this.lat1+this.lat2)ne?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function Urt(r){var e=r.x,t=r.y;this.sin_phi=Math.sin(t),this.cos_phi=Math.cos(t);var n=Su(this.e3,this.sin_phi,this.cos_phi),i=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,a=this.ns0*fe(e-this.long0),o=i*Math.sin(a)+this.x0,s=this.rh-i*Math.cos(a)+this.y0;return r.x=o,r.y=s,r}function Drt(r){var e,t,n,i,a,o;return r.x-=this.x0,r.y=this.rh-r.y+this.y0,this.ns0>=0?(e=Math.sqrt(r.x*r.x+r.y*r.y),n=1):(e=-Math.sqrt(r.x*r.x+r.y*r.y),n=-1),i=0,e!==0&&(i=Math.atan2(n*r.x,n*r.y)),n=e*this.ns0/this.a,this.sphere?o=Math.asin((this.c-n*n)/(2*this.ns0)):(t=(this.c-n*n)/this.ns0,o=this.phi1z(this.e3,t)),a=fe(i/this.ns0+this.long0),r.x=a,r.y=o,r}function Qrt(r,e){var t,n,i,a,o,s=ku(.5*e);if(r0||Math.abs(o)<=ne?(s=this.x0+this.a*a*t*Math.sin(n)/o,A=this.y0+this.a*a*(this.cos_p14*e-this.sin_p14*t*i)/o):(s=this.x0+this.infinity_dist*t*Math.sin(n),A=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*t*i)),r.x=s,r.y=A,r}function Vrt(r){var e,t,n,i,a,o;return r.x=(r.x-this.x0)/this.a,r.y=(r.y-this.y0)/this.a,r.x/=this.k0,r.y/=this.k0,(e=Math.sqrt(r.x*r.x+r.y*r.y))?(i=Math.atan2(e,this.rc),t=Math.sin(i),n=Math.cos(i),o=ku(n*this.sin_p14+r.y*t*this.cos_p14/e),a=Math.atan2(r.x*t,e*this.cos_p14*n-r.y*this.sin_p14*t),a=fe(this.long0+a)):(o=this.phic0,a=0),r.x=a,r.y=o,r}var jrt=["gnom"],Krt={init:krt,forward:$rt,inverse:Vrt,names:jrt};function zrt(r,e){var t=1-(1-r*r)/(2*r)*Math.log((1-r)/(1+r));if(Math.abs(Math.abs(e)-t)<1e-6)return e<0?-1*zt:zt;for(var n=Math.asin(.5*e),i,a,o,s,A=0;A<30;A++)if(a=Math.sin(n),o=Math.cos(n),s=r*a,i=Math.pow(1-s*s,2)/(2*o)*(e/(1-r*r)-a/(1-s*s)+.5/r*Math.log((1-s)/(1+s))),n+=i,Math.abs(i)<=1e-10)return n;return NaN}function Yrt(){this.sphere||(this.k0=uA(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function Xrt(r){var e=r.x,t=r.y,n,i,a=fe(e-this.long0);if(this.sphere)n=this.x0+this.a*a*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(t)/Math.cos(this.lat_ts);else{var o=Su(this.e,Math.sin(t));n=this.x0+this.a*this.k0*a,i=this.y0+this.a*o*.5/this.k0}return r.x=n,r.y=i,r}function Wrt(r){r.x-=this.x0,r.y-=this.y0;var e,t;return this.sphere?(e=fe(this.long0+r.x/this.a/Math.cos(this.lat_ts)),t=Math.asin(r.y/this.a*Math.cos(this.lat_ts))):(t=zrt(this.e,2*r.y*this.k0/this.a),e=fe(this.long0+r.x/(this.a*this.k0))),r.x=e,r.y=t,r}var qrt=["cea"],Zrt={init:Yrt,forward:Xrt,inverse:Wrt,names:qrt};function Jrt(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function tnt(r){var e=r.x,t=r.y,n=fe(e-this.long0),i=zp(t-this.lat0);return r.x=this.x0+this.a*n*this.rc,r.y=this.y0+this.a*i,r}function ent(r){var e=r.x,t=r.y;return r.x=fe(this.long0+(e-this.x0)/(this.a*this.rc)),r.y=zp(this.lat0+(t-this.y0)/this.a),r}var rnt=["Equirectangular","Equidistant_Cylindrical","eqc"],nnt={init:Jrt,forward:tnt,inverse:ent,names:rnt},ZM=20;function int(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ay(this.es),this.e1=oy(this.es),this.e2=sy(this.es),this.e3=Ay(this.es),this.ml0=this.a*Ha(this.e0,this.e1,this.e2,this.e3,this.lat0)}function ant(r){var e=r.x,t=r.y,n,i,a,o=fe(e-this.long0);if(a=o*Math.sin(t),this.sphere)Math.abs(t)<=ne?(n=this.a*o,i=-1*this.a*this.lat0):(n=this.a*Math.sin(a)/Math.tan(t),i=this.a*(zp(t-this.lat0)+(1-Math.cos(a))/Math.tan(t)));else if(Math.abs(t)<=ne)n=this.a*o,i=-1*this.ml0;else{var s=Fp(this.a,this.e,Math.sin(t))/Math.tan(t);n=s*Math.sin(a),i=this.a*Ha(this.e0,this.e1,this.e2,this.e3,t)-this.ml0+s*(1-Math.cos(a))}return r.x=n+this.x0,r.y=i+this.y0,r}function ont(r){var e,t,n,i,a,o,s,A,l;if(n=r.x-this.x0,i=r.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=ne)e=fe(n/this.a+this.long0),t=0;else{o=this.lat0+i/this.a,s=n*n/this.a/this.a+o*o,A=o;var u;for(a=ZM;a;--a)if(u=Math.tan(A),l=-1*(o*(A*u+1)-A-.5*(A*A+s)*u)/((A-o)/u-1),A+=l,Math.abs(l)<=ne){t=A;break}e=fe(this.long0+Math.asin(n*Math.tan(A)/this.a)/Math.sin(t))}else if(Math.abs(i+this.ml0)<=ne)t=0,e=fe(this.long0+n/this.a);else{o=(this.ml0+i)/this.a,s=n*n/this.a/this.a+o*o,A=o;var c,h,f,p,v;for(a=ZM;a;--a)if(v=this.e*Math.sin(A),c=Math.sqrt(1-v*v)*Math.tan(A),h=this.a*Ha(this.e0,this.e1,this.e2,this.e3,A),f=this.e0-2*this.e1*Math.cos(2*A)+4*this.e2*Math.cos(4*A)-6*this.e3*Math.cos(6*A),p=h/this.a,l=(o*(c*p+1)-p-.5*c*(p*p+s))/(this.es*Math.sin(2*A)*(p*p+s-2*o*p)/(4*c)+(o-p)*(c*f-2/Math.sin(2*A))-f),A-=l,Math.abs(l)<=ne){t=A;break}c=Math.sqrt(1-this.es*Math.pow(Math.sin(t),2))*Math.tan(t),e=fe(this.long0+Math.asin(n*c/this.a)/Math.sin(t))}return r.x=e,r.y=t,r}var snt=["Polyconic","poly"],Ant={init:int,forward:ant,inverse:ont,names:snt};function lnt(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function unt(r){var e,t=r.x,n=r.y,i=n-this.lat0,a=t-this.long0,o=i/Qv*1e-5,s=a,A=1,l=0;for(e=1;e<=10;e++)A=A*o,l=l+this.A[e]*A;var u=l,c=s,h=1,f=0,p,v,m=0,g=0;for(e=1;e<=6;e++)p=h*u-f*c,v=f*u+h*c,h=p,f=v,m=m+this.B_re[e]*h-this.B_im[e]*f,g=g+this.B_im[e]*h+this.B_re[e]*f;return r.x=g*this.a+this.x0,r.y=m*this.a+this.y0,r}function cnt(r){var e,t=r.x,n=r.y,i=t-this.x0,a=n-this.y0,o=a/this.a,s=i/this.a,A=1,l=0,u,c,h=0,f=0;for(e=1;e<=6;e++)u=A*o-l*s,c=l*o+A*s,A=u,l=c,h=h+this.C_re[e]*A-this.C_im[e]*l,f=f+this.C_im[e]*A+this.C_re[e]*l;for(var p=0;p.999999999999&&(t=.999999999999),e=Math.asin(t);var n=fe(this.long0+r.x/(.900316316158*this.a*Math.cos(e)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),t=(2*e+Math.sin(2*e))/Math.PI,Math.abs(t)>1&&(t=1);var i=Math.asin(t);return r.x=n,r.y=i,r}var bnt=["Mollweide","moll"],Int={init:Tnt,forward:Snt,inverse:xnt,names:bnt};function Fnt(){Math.abs(this.lat1+this.lat2)=0?(t=Math.sqrt(r.x*r.x+r.y*r.y),e=1):(t=-Math.sqrt(r.x*r.x+r.y*r.y),e=-1);var a=0;if(t!==0&&(a=Math.atan2(e*r.x,e*r.y)),this.sphere)return i=fe(this.long0+a/this.ns),n=zp(this.g-t/this.a),r.x=i,r.y=n,r;var o=this.g-t/this.a;return n=D_(o,this.e0,this.e1,this.e2,this.e3),i=fe(this.long0+a/this.ns),r.x=i,r.y=n,r}var Rnt=["Equidistant_Conic","eqdc"],Mnt={init:Fnt,forward:Lnt,inverse:Ont,names:Rnt};function Nnt(){this.R=this.a}function Pnt(r){var e=r.x,t=r.y,n=fe(e-this.long0),i,a;Math.abs(t)<=ne&&(i=this.x0+this.R*n,a=this.y0);var o=ku(2*Math.abs(t/Math.PI));(Math.abs(n)<=ne||Math.abs(Math.abs(t)-zt)<=ne)&&(i=this.x0,t>=0?a=this.y0+Math.PI*this.R*Math.tan(.5*o):a=this.y0+Math.PI*this.R*-Math.tan(.5*o));var s=.5*Math.abs(Math.PI/n-n/Math.PI),A=s*s,l=Math.sin(o),u=Math.cos(o),c=u/(l+u-1),h=c*c,f=c*(2/l-1),p=f*f,v=Math.PI*this.R*(s*(c-p)+Math.sqrt(A*(c-p)*(c-p)-(p+A)*(h-p)))/(p+A);n<0&&(v=-v),i=this.x0+v;var m=A+c;return v=Math.PI*this.R*(f*m-s*Math.sqrt((p+A)*(A+1)-m*m))/(p+A),t>=0?a=this.y0+v:a=this.y0-v,r.x=i,r.y=a,r}function Unt(r){var e,t,n,i,a,o,s,A,l,u,c,h,f;return r.x-=this.x0,r.y-=this.y0,c=Math.PI*this.R,n=r.x/c,i=r.y/c,a=n*n+i*i,o=-Math.abs(i)*(1+a),s=o-2*i*i+n*n,A=-2*o+1+2*i*i+a*a,f=i*i/A+(2*s*s*s/A/A/A-9*o*s/A/A)/27,l=(o-s*s/3/A)/A,u=2*Math.sqrt(-l/3),c=3*f/l/u,Math.abs(c)>1&&(c>=0?c=1:c=-1),h=Math.acos(c)/3,r.y>=0?t=(-u*Math.cos(h+Math.PI/3)-s/3/A)*Math.PI:t=-(-u*Math.cos(h+Math.PI/3)-s/3/A)*Math.PI,Math.abs(n)2*zt*this.a?void 0:(t=e/this.a,n=Math.sin(t),i=Math.cos(t),a=this.long0,Math.abs(e)<=ne?o=this.lat0:(o=ku(i*this.sin_p12+r.y*n*this.cos_p12/e),s=Math.abs(this.lat0)-zt,Math.abs(s)<=ne?this.lat0>=0?a=fe(this.long0+Math.atan2(r.x,-r.y)):a=fe(this.long0-Math.atan2(-r.x,r.y)):a=fe(this.long0+Math.atan2(r.x*n,e*this.cos_p12*i-r.y*this.sin_p12*n))),r.x=a,r.y=o,r)):(A=ay(this.es),l=oy(this.es),u=sy(this.es),c=Ay(this.es),Math.abs(this.sin_p12-1)<=ne?(h=this.a*Ha(A,l,u,c,zt),e=Math.sqrt(r.x*r.x+r.y*r.y),f=h-e,o=D_(f/this.a,A,l,u,c),a=fe(this.long0+Math.atan2(r.x,-1*r.y)),r.x=a,r.y=o,r):Math.abs(this.sin_p12+1)<=ne?(h=this.a*Ha(A,l,u,c,zt),e=Math.sqrt(r.x*r.x+r.y*r.y),f=e-h,o=D_(f/this.a,A,l,u,c),a=fe(this.long0+Math.atan2(r.x,r.y)),r.x=a,r.y=o,r):(e=Math.sqrt(r.x*r.x+r.y*r.y),m=Math.atan2(r.x,r.y),p=Fp(this.a,this.e,this.sin_p12),g=Math.cos(m),_=this.e*this.cos_p12*g,E=-_*_/(1-this.es),B=3*this.es*(1-E)*this.sin_p12*this.cos_p12*g/(1-this.es),L=e/p,O=L-E*(1+E)*Math.pow(L,3)/6-B*(1+3*E)*Math.pow(L,4)/24,b=1-E*O*O/2-L*O*O*O/6,v=Math.asin(this.sin_p12*Math.cos(O)+this.cos_p12*Math.sin(O)*g),a=fe(this.long0+Math.asin(Math.sin(m)*Math.sin(O)/Math.cos(v))),T=Math.sin(v),o=Math.atan2((T-this.es*b*this.sin_p12)*Math.tan(v),T*(1-this.es)),r.x=a,r.y=o,r))}var $nt=["Azimuthal_Equidistant","aeqd"],Vnt={init:Hnt,forward:Gnt,inverse:knt,names:$nt};function jnt(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function Knt(r){var e,t,n,i,a,o,s,A,l=r.x,u=r.y;return n=fe(l-this.long0),e=Math.sin(u),t=Math.cos(u),i=Math.cos(n),o=this.sin_p14*e+this.cos_p14*t*i,a=1,(o>0||Math.abs(o)<=ne)&&(s=this.a*a*t*Math.sin(n),A=this.y0+this.a*a*(this.cos_p14*e-this.sin_p14*t*i)),r.x=s,r.y=A,r}function znt(r){var e,t,n,i,a,o,s;return r.x-=this.x0,r.y-=this.y0,e=Math.sqrt(r.x*r.x+r.y*r.y),t=ku(e/this.a),n=Math.sin(t),i=Math.cos(t),o=this.long0,Math.abs(e)<=ne?(s=this.lat0,r.x=o,r.y=s,r):(s=ku(i*this.sin_p14+r.y*n*this.cos_p14/e),a=Math.abs(this.lat0)-zt,Math.abs(a)<=ne?(this.lat0>=0?o=fe(this.long0+Math.atan2(r.x,-r.y)):o=fe(this.long0-Math.atan2(-r.x,r.y)),r.x=o,r.y=s,r):(o=fe(this.long0+Math.atan2(r.x*n,e*this.cos_p14*i-r.y*this.sin_p14*n)),r.x=o,r.y=s,r))}var Ynt=["ortho"],Xnt={init:jnt,forward:Knt,inverse:znt,names:Ynt},Rn={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},Yr={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function Wnt(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=zt-zr/2?this.face=Rn.TOP:this.lat0<=-(zt-zr/2)?this.face=Rn.BOTTOM:Math.abs(this.long0)<=zr?this.face=Rn.FRONT:Math.abs(this.long0)<=zt+zr?this.face=this.long0>0?Rn.RIGHT:Rn.LEFT:this.face=Rn.BACK,this.es!==0&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function qnt(r){var e={x:0,y:0},t,n,i,a,o,s,A={value:0};if(r.x-=this.long0,this.es!==0?t=Math.atan(this.one_minus_f_squared*Math.tan(r.y)):t=r.y,n=r.x,this.face===Rn.TOP)a=zt-t,n>=zr&&n<=zt+zr?(A.value=Yr.AREA_0,i=n-zt):n>zt+zr||n<=-(zt+zr)?(A.value=Yr.AREA_1,i=n>0?n-ei:n+ei):n>-(zt+zr)&&n<=-zr?(A.value=Yr.AREA_2,i=n+zt):(A.value=Yr.AREA_3,i=n);else if(this.face===Rn.BOTTOM)a=zt+t,n>=zr&&n<=zt+zr?(A.value=Yr.AREA_0,i=-n+zt):n=-zr?(A.value=Yr.AREA_1,i=-n):n<-zr&&n>=-(zt+zr)?(A.value=Yr.AREA_2,i=-n-zt):(A.value=Yr.AREA_3,i=n>0?-n+ei:-n-ei);else{var l,u,c,h,f,p,v;this.face===Rn.RIGHT?n=up(n,+zt):this.face===Rn.BACK?n=up(n,+ei):this.face===Rn.LEFT&&(n=up(n,-zt)),h=Math.sin(t),f=Math.cos(t),p=Math.sin(n),v=Math.cos(n),l=f*v,u=f*p,c=h,this.face===Rn.FRONT?(a=Math.acos(l),i=Mm(a,c,u,A)):this.face===Rn.RIGHT?(a=Math.acos(u),i=Mm(a,c,-l,A)):this.face===Rn.BACK?(a=Math.acos(-l),i=Mm(a,c,-u,A)):this.face===Rn.LEFT?(a=Math.acos(-u),i=Mm(a,c,l,A)):(a=i=0,A.value=Yr.AREA_0)}return s=Math.atan(12/ei*(i+Math.acos(Math.sin(i)*Math.cos(zr))-zt)),o=Math.sqrt((1-Math.cos(a))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(i))))),A.value===Yr.AREA_1?s+=zt:A.value===Yr.AREA_2?s+=ei:A.value===Yr.AREA_3&&(s+=1.5*ei),e.x=o*Math.cos(s),e.y=o*Math.sin(s),e.x=e.x*this.a+this.x0,e.y=e.y*this.a+this.y0,r.x=e.x,r.y=e.y,r}function Znt(r){var e={lam:0,phi:0},t,n,i,a,o,s,A,l,u,c={value:0};if(r.x=(r.x-this.x0)/this.a,r.y=(r.y-this.y0)/this.a,n=Math.atan(Math.sqrt(r.x*r.x+r.y*r.y)),t=Math.atan2(r.y,r.x),r.x>=0&&r.x>=Math.abs(r.y)?c.value=Yr.AREA_0:r.y>=0&&r.y>=Math.abs(r.x)?(c.value=Yr.AREA_1,t-=zt):r.x<0&&-r.x>=Math.abs(r.y)?(c.value=Yr.AREA_2,t=t<0?t+ei:t-ei):(c.value=Yr.AREA_3,t+=zt),u=ei/12*Math.tan(t),o=Math.sin(u)/(Math.cos(u)-1/Math.sqrt(2)),s=Math.atan(o),i=Math.cos(t),a=Math.tan(n),A=1-i*i*a*a*(1-Math.cos(Math.atan(1/Math.cos(s)))),A<-1?A=-1:A>1&&(A=1),this.face===Rn.TOP)l=Math.acos(A),e.phi=zt-l,c.value===Yr.AREA_0?e.lam=s+zt:c.value===Yr.AREA_1?e.lam=s<0?s+ei:s-ei:c.value===Yr.AREA_2?e.lam=s-zt:e.lam=s;else if(this.face===Rn.BOTTOM)l=Math.acos(A),e.phi=l-zt,c.value===Yr.AREA_0?e.lam=-s+zt:c.value===Yr.AREA_1?e.lam=-s:c.value===Yr.AREA_2?e.lam=-s-zt:e.lam=s<0?-s-ei:-s+ei;else{var h,f,p;h=A,u=h*h,u>=1?p=0:p=Math.sqrt(1-u)*Math.sin(s),u+=p*p,u>=1?f=0:f=Math.sqrt(1-u),c.value===Yr.AREA_1?(u=f,f=-p,p=u):c.value===Yr.AREA_2?(f=-f,p=-p):c.value===Yr.AREA_3&&(u=f,f=p,p=-u),this.face===Rn.RIGHT?(u=h,h=-f,f=u):this.face===Rn.BACK?(h=-h,f=-f):this.face===Rn.LEFT&&(u=h,h=f,f=-u),e.phi=Math.acos(-p)-zt,e.lam=Math.atan2(f,h),this.face===Rn.RIGHT?e.lam=up(e.lam,-zt):this.face===Rn.BACK?e.lam=up(e.lam,-ei):this.face===Rn.LEFT&&(e.lam=up(e.lam,+zt))}if(this.es!==0){var v,m,g;v=e.phi<0?1:0,m=Math.tan(e.phi),g=this.b/Math.sqrt(m*m+this.one_minus_f_squared),e.phi=Math.atan(Math.sqrt(this.a*this.a-g*g)/(this.one_minus_f*g)),v&&(e.phi=-e.phi)}return e.lam+=this.long0,r.x=e.lam,r.y=e.phi,r}function Mm(r,e,t,n){var i;return rzr&&i<=zt+zr?(n.value=Yr.AREA_1,i-=zt):i>zt+zr||i<=-(zt+zr)?(n.value=Yr.AREA_2,i=i>=0?i-ei:i+ei):(n.value=Yr.AREA_3,i+=zt)),i}function up(r,e){var t=r+e;return t<-ei?t+=yg:t>+ei&&(t-=yg),t}var Jnt=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"],tit={init:Wnt,forward:qnt,inverse:Znt,names:Jnt},lS=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],gv=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],E4=.8487,C4=1.3523,B4=tA/5,eit=1/B4,Xf=18,Q_=function(r,e){return r[0]+e*(r[1]+e*(r[2]+e*r[3]))},rit=function(r,e){return r[1]+e*(2*r[2]+e*3*r[3])};function nit(r,e,t,n){for(var i=e;n;--n){var a=r(i);if(i-=a,Math.abs(a)=Xf&&(n=Xf-1),t=tA*(t-eit*n);var i={x:Q_(lS[n],t)*e,y:Q_(gv[n],t)};return r.y<0&&(i.y=-i.y),i.x=i.x*this.a*E4+this.x0,i.y=i.y*this.a*C4+this.y0,i}function oit(r){var e={x:(r.x-this.x0)/(this.a*E4),y:Math.abs(r.y-this.y0)/(this.a*C4)};if(e.y>=1)e.x/=lS[Xf][0],e.y=r.y<0?-zt:zt;else{var t=Math.floor(e.y*Xf);for(t<0?t=0:t>=Xf&&(t=Xf-1);;)if(gv[t][0]>e.y)--t;else if(gv[t+1][0]<=e.y)++t;else break;var n=gv[t],i=5*(e.y-n[0])/(gv[t+1][0]-n[0]);i=nit(function(a){return(Q_(n,a)-e.y)/rit(n,a)},i,ne,100),e.x/=Q_(lS[t],i),e.y=(5*t+i)*ra,r.y<0&&(e.y=-e.y)}return e.x=fe(e.x+this.long0),e}var sit=["Robinson","robin"],Ait={init:iit,forward:ait,inverse:oit,names:sit};function lit(){this.name="geocent"}function uit(r){var e=l4(r,this.es,this.a);return e}function cit(r){var e=u4(r,this.es,this.a,this.b);return e}var hit=["Geocentric","geocentric","geocent","Geocent"],fit={init:lit,forward:uit,inverse:cit,names:hit},ma={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},jd={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function pit(){if(Object.keys(jd).forEach(function(t){if(typeof this[t]>"u")this[t]=jd[t].def;else{if(jd[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);jd[t].num&&(this[t]=parseFloat(this[t]))}jd[t].degrees&&(this[t]=this[t]*ra)}.bind(this)),Math.abs(Math.abs(this.lat0)-zt)1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var r=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(r),this.sw=Math.sin(r)}function dit(r){r.x-=this.long0;var e=Math.sin(r.y),t=Math.cos(r.y),n=Math.cos(r.x),i,a;switch(this.mode){case ma.OBLIQ:a=this.sinph0*e+this.cosph0*t*n;break;case ma.EQUIT:a=t*n;break;case ma.S_POLE:a=-e;break;case ma.N_POLE:a=e;break}switch(a=this.pn1/(this.p-a),i=a*t*Math.sin(r.x),this.mode){case ma.OBLIQ:a*=this.cosph0*e-this.sinph0*t*n;break;case ma.EQUIT:a*=e;break;case ma.N_POLE:a*=-(t*n);break;case ma.S_POLE:a*=t*n;break}var o,s;return o=a*this.cg+i*this.sg,s=1/(o*this.sw*this.h1+this.cw),i=(i*this.cg-a*this.sg)*this.cw*s,a=o*s,r.x=i*this.a,r.y=a*this.a,r}function vit(r){r.x/=this.a,r.y/=this.a;var e={x:r.x,y:r.y},t,n,i;i=1/(this.pn1-r.y*this.sw),t=this.pn1*r.x*i,n=this.pn1*r.y*this.cw*i,r.x=t*this.cg+n*this.sg,r.y=n*this.cg-t*this.sg;var a=cw(r.x,r.y);if(Math.abs(a)t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){Be()},e.prototype.getAlpha=function(t,n){if(!this.transition_)return 1;var i=this.transitionStarts_[t];if(!i)i=n,this.transitionStarts_[t]=i;else if(i===-1)return 1;var a=n-i+1e3/60;return a>=this.transition_?1:zI(a/this.transition_)},e.prototype.inTransition=function(t){return this.transition_?this.transitionStarts_[t]!==-1:!1},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(Th),EF=xit,bit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Iit=function(r){bit(e,r);function e(t,n,i,a,o,s){var A=r.call(this,t,n,s)||this;return A.crossOrigin_=a,A.src_=i,A.key=i,A.image_=new Image,a!==null&&(A.image_.crossOrigin=a),A.unlisten_=null,A.tileLoadFunction_=o,A}return e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=ge.LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){this.state=ge.ERROR,this.unlistenImage_(),this.image_=Fit(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=ge.LOADED:this.state=ge.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==ge.ERROR&&(this.state=ge.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==ge.IDLE&&(this.state=ge.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=pF(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(EF);function Fit(){var r=ja(1,1);return r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1),r.canvas}var G_=Iit,S4=.5,Lit=10,JM=.25,Oit=function(){function r(e,t,n,i,a,o){this.sourceProj_=e,this.targetProj_=t;var s={},A=vg(this.targetProj_,this.sourceProj_);this.transformInv_=function(E){var B=E[0]+"/"+E[1];return s[B]||(s[B]=A(E)),s[B]},this.maxSourceExtent_=i,this.errorThresholdSquared_=a*a,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&Fr(i)==Fr(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Fr(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Fr(this.targetProj_.getExtent()):null;var l=Rs(n),u=Yg(n),c=$p(n),h=zg(n),f=this.transformInv_(l),p=this.transformInv_(u),v=this.transformInv_(c),m=this.transformInv_(h),g=Lit+(o?Math.max(0,Math.ceil(k6(Ag(n)/(o*o*256*256)))):0);if(this.addQuad_(l,u,c,h,f,p,v,m,g),this.wrapsXInSource_){var _=1/0;this.triangles_.forEach(function(E,B,L){_=Math.min(_,E.source[0][0],E.source[1][0],E.source[2][0])}),this.triangles_.forEach(function(E){if(Math.max(E.source[0][0],E.source[1][0],E.source[2][0])-_>this.sourceWorldWidth_/2){var B=[[E.source[0][0],E.source[0][1]],[E.source[1][0],E.source[1][1]],[E.source[2][0],E.source[2][1]]];B[0][0]-_>this.sourceWorldWidth_/2&&(B[0][0]-=this.sourceWorldWidth_),B[1][0]-_>this.sourceWorldWidth_/2&&(B[1][0]-=this.sourceWorldWidth_),B[2][0]-_>this.sourceWorldWidth_/2&&(B[2][0]-=this.sourceWorldWidth_);var L=Math.min(B[0][0],B[1][0],B[2][0]),O=Math.max(B[0][0],B[1][0],B[2][0]);O-L.5&&c<1,p=!1;if(l>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var v=Yi([e,t,n,i]),m=Fr(v)/this.targetWorldWidth_;p=m>JM||p}!f&&this.sourceProj_.isGlobal()&&c&&(p=c>JM||p)}if(!(!p&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!Mn(u,this.maxSourceExtent_))){var g=0;if(!p&&(!isFinite(a[0])||!isFinite(a[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(s[0])||!isFinite(s[1])||!isFinite(A[0])||!isFinite(A[1]))){if(l>0)p=!0;else if(g=(!isFinite(a[0])||!isFinite(a[1])?8:0)+(!isFinite(o[0])||!isFinite(o[1])?4:0)+(!isFinite(s[0])||!isFinite(s[1])?2:0)+(!isFinite(A[0])||!isFinite(A[1])?1:0),g!=1&&g!=2&&g!=4&&g!=8)return}if(l>0){if(!p){var _=[(e[0]+n[0])/2,(e[1]+n[1])/2],E=this.transformInv_(_),B=void 0;if(f){var L=(Bu(a[0],h)+Bu(s[0],h))/2;B=L-Bu(E[0],h)}else B=(a[0]+s[0])/2-E[0];var O=(a[1]+s[1])/2-E[1],b=B*B+O*O;p=b>this.errorThresholdSquared_}if(p){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){var T=[(t[0]+n[0])/2,(t[1]+n[1])/2],I=this.transformInv_(T),M=[(i[0]+e[0])/2,(i[1]+e[1])/2],x=this.transformInv_(M);this.addQuad_(e,t,T,M,a,o,I,x,l-1),this.addQuad_(M,T,n,i,x,I,s,A,l-1)}else{var S=[(e[0]+t[0])/2,(e[1]+t[1])/2],N=this.transformInv_(S),P=[(n[0]+i[0])/2,(n[1]+i[1])/2],X=this.transformInv_(P);this.addQuad_(e,S,P,i,a,N,X,A,l-1),this.addQuad_(S,t,n,P,N,o,s,X,l-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}g&11||this.addTriangle_(e,n,i,a,s,A),g&14||this.addTriangle_(e,n,t,a,s,o),g&&(g&13||this.addTriangle_(t,i,e,o,A,a),g&7||this.addTriangle_(t,i,n,o,A,s))}},r.prototype.calculateSourceExtent=function(){var e=_i();return this.triangles_.forEach(function(t,n,i){var a=t.source;Yc(e,a[0]),Yc(e,a[1]),Yc(e,a[2])}),e},r.prototype.getTriangles=function(){return this.triangles_},r}(),x4=Oit,Lp={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},b4={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0},IC;function tN(r,e,t,n,i){r.beginPath(),r.moveTo(0,0),r.lineTo(e,t),r.lineTo(n,i),r.closePath(),r.save(),r.clip(),r.fillRect(0,0,Math.max(e,n)+1,Math.max(t,i)),r.restore()}function FC(r,e){return Math.abs(r[e*4]-210)>2||Math.abs(r[e*4+3]-.75*255)>2}function Rit(){if(IC===void 0){var r=document.createElement("canvas").getContext("2d");r.globalCompositeOperation="lighter",r.fillStyle="rgba(210, 0, 0, 0.75)",tN(r,4,5,4,0),tN(r,4,5,0,5);var e=r.getImageData(0,0,3,3).data;IC=FC(e,0)||FC(e,4)||FC(e,8)}return IC}function wg(r,e,t,n){var i=Qu(t,e,r),a=T_(e,n,t),o=e.getMetersPerUnit();o!==void 0&&(a*=o);var s=r.getMetersPerUnit();s!==void 0&&(a/=s);var A=r.getExtent();if(!A||xs(A,i)){var l=T_(r,a,i)/a;isFinite(l)&&l>0&&(a/=l)}return a}function Mit(r,e,t,n){var i=Sa(t),a=wg(r,e,i,n);return(!isFinite(a)||a<=0)&&X1(t,function(o){return a=wg(r,e,o,n),isFinite(a)&&a>0}),a}function I4(r,e,t,n,i,a,o,s,A,l,u,c){var h=ja(Math.round(t*r),Math.round(t*e));if(c||de(h,Lp),A.length===0)return h.canvas;h.scale(t,t);function f(B){return Math.round(B*t)/t}h.globalCompositeOperation="lighter";var p=_i();A.forEach(function(B,L,O){Uu(p,B.extent)});var v=Fr(p),m=Ai(p),g=ja(Math.round(t*v/n),Math.round(t*m/n));c||de(g,Lp);var _=t/n;A.forEach(function(B,L,O){var b=B.extent[0]-p[0],T=-(B.extent[3]-p[3]),I=Fr(B.extent),M=Ai(B.extent);B.image.width>0&&B.image.height>0&&g.drawImage(B.image,l,l,B.image.width-2*l,B.image.height-2*l,b*_,T*_,I*_,M*_)});var E=Rs(o);return s.getTriangles().forEach(function(B,L,O){var b=B.source,T=B.target,I=b[0][0],M=b[0][1],x=b[1][0],S=b[1][1],N=b[2][0],P=b[2][1],X=f((T[0][0]-E[0])/a),z=f(-(T[0][1]-E[1])/a),tt=f((T[1][0]-E[0])/a),J=f(-(T[1][1]-E[1])/a),nt=f((T[2][0]-E[0])/a),it=f(-(T[2][1]-E[1])/a),_t=I,R=M;I=0,M=0,x-=_t,S-=R,N-=_t,P-=R;var $=[[x,S,0,0,tt-X],[N,P,0,0,nt-X],[0,0,x,S,J-z],[0,0,N,P,it-z]],K=GY($);if(K){if(h.save(),h.beginPath(),Rit()||!c){h.moveTo(tt,J);for(var q=4,at=X-tt,vt=z-J,wt=0;wtthis.maxX&&(this.maxX=e.maxX),e.minYthis.maxY&&(this.maxY=e.maxY)},r.prototype.getHeight=function(){return this.maxY-this.minY+1},r.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},r.prototype.getWidth=function(){return this.maxX-this.minX+1},r.prototype.intersects=function(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY},r}();function pf(r,e,t,n,i){return i!==void 0?(i.minX=r,i.maxX=e,i.minY=t,i.maxY=n,i):new F4(r,e,t,n)}var BF=F4,Uit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Dit=function(r){Uit(e,r);function e(t){var n=r.call(this,t)||this;return n.extentChanged=!0,n.renderedExtent_=null,n.renderedPixelRatio,n.renderedProjection=null,n.renderedRevision,n.renderedTiles=[],n.newTiles_=!1,n.tmpExtent=_i(),n.tmpTileRange_=new BF(0,0,0,0),n}return e.prototype.isDrawableTile=function(t){var n=this.getLayer(),i=t.getState(),a=n.getUseInterimTilesOnError();return i==ge.LOADED||i==ge.EMPTY||i==ge.ERROR&&!a},e.prototype.getTile=function(t,n,i,a){var o=a.pixelRatio,s=a.viewState.projection,A=this.getLayer(),l=A.getSource(),u=l.getTile(t,n,i,o,s);return u.getState()==ge.ERROR&&(A.getUseInterimTilesOnError()?A.getPreload()>0&&(this.newTiles_=!0):u.setState(ge.LOADED)),this.isDrawableTile(u)||(u=u.getInterimTile()),u},e.prototype.getData=function(t){var n=this.frameState;if(!n)return null;var i=this.getLayer(),a=un(n.pixelToCoordinateTransform,t.slice()),o=i.getExtent();if(o&&!xs(o,a))return null;for(var s=n.pixelRatio,A=n.viewState.projection,l=n.viewState,u=i.getRenderSource(),c=u.getTileGridForProjection(l.projection),h=u.getTilePixelRatio(n.pixelRatio),f=c.getZForResolution(l.resolution);f>=c.getMinZoom();--f){var p=c.getTileCoordForCoordAndZ(a,f),v=u.getTile(f,p[1],p[2],s,A);if(!(v instanceof G_||v instanceof CF))return null;if(v.getState()===ge.LOADED){var m=c.getOrigin(f),g=Pi(c.getTileSize(f)),_=c.getResolution(f),E=Math.floor(h*((a[0]-m[0])/_-p[1]*g[0])),B=Math.floor(h*((m[1]-a[1])/_-p[2]*g[1]));return this.getImageData(v.getImage(),E,B)}}return null},e.prototype.loadedTileCallback=function(t,n,i){return this.isDrawableTile(i)?r.prototype.loadedTileCallback.call(this,t,n,i):!1},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,n){var i=t.layerStatesArray[t.layerIndex],a=t.viewState,o=a.projection,s=a.resolution,A=a.center,l=a.rotation,u=t.pixelRatio,c=this.getLayer(),h=c.getSource(),f=h.getRevision(),p=h.getTileGridForProjection(o),v=p.getZForResolution(s,h.zDirection),m=p.getResolution(v),g=t.extent,_=i.extent&&Lo(i.extent);_&&(g=Jo(g,Lo(i.extent)));var E=h.getTilePixelRatio(u),B=Math.round(t.size[0]*E),L=Math.round(t.size[1]*E);if(l){var O=Math.round(Math.sqrt(B*B+L*L));B=O,L=O}var b=m*B/2/E,T=m*L/2/E,I=[A[0]-b,A[1]-T,A[0]+b,A[1]+T],M=p.getTileRangeForExtentAndZ(g,v),x={};x[v]={};var S=this.createLoadedTileFinder(h,o,x),N=this.tmpExtent,P=this.tmpTileRange_;this.newTiles_=!1;for(var X=M.minX;X<=M.maxX;++X)for(var z=M.minY;z<=M.maxY;++z){var tt=this.getTile(v,X,z,t);if(this.isDrawableTile(tt)){var J=pe(this);if(tt.getState()==ge.LOADED){x[v][tt.tileCoord.toString()]=tt;var nt=tt.inTransition(J);!this.newTiles_&&(nt||this.renderedTiles.indexOf(tt)===-1)&&(this.newTiles_=!0)}if(tt.getAlpha(J,t.time)===1)continue}var it=p.getTileCoordChildTileRange(tt.tileCoord,P,N),_t=!1;it&&(_t=S(v+1,it)),_t||p.forEachTileCoordParentTileRange(tt.tileCoord,S,P,N)}var R=m/s;$a(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/E,1/E,l,-B/2,-L/2);var $=FI(this.pixelTransform);this.useContainer(n,$,i.opacity,this.getBackground(t));var K=this.context,q=K.canvas;Kg(this.inversePixelTransform,this.pixelTransform),$a(this.tempTransform,B/2,L/2,R,R,0,-B/2,-L/2),q.width!=B||q.height!=L?(q.width=B,q.height=L):this.containerReused||K.clearRect(0,0,B,L),_&&this.clipUnrotated(K,t,_),h.getInterpolate()||de(K,Lp),this.preRender(K,t),this.renderedTiles.length=0;var at=Object.keys(x).map(Number);at.sort(Nu);var vt,wt,W;i.opacity===1&&(!this.containerReused||h.getOpaque(t.viewState.projection))?at=at.reverse():(vt=[],wt=[]);for(var It=at.length-1;It>=0;--It){var Ot=at[It],j=h.getTilePixelSize(Ot,u,o),Z=p.getResolution(Ot),ut=Z/m,rt=j[0]*ut*R,G=j[1]*ut*R,xt=p.getTileCoordForCoordAndZ(Rs(I),Ot),bt=p.getTileCoordExtent(xt),dt=un(this.tempTransform,[E*(bt[0]-I[0])/m,E*(I[3]-bt[3])/m]),Et=E*h.getGutterForProjection(o),yt=x[Ot];for(var St in yt){var tt=yt[St],Ft=tt.tileCoord,Mt=xt[1]-Ft[1],Vt=Math.round(dt[0]-(Mt-1)*rt),Yt=xt[2]-Ft[2],ie=Math.round(dt[1]-(Yt-1)*G),X=Math.round(dt[0]-Mt*rt),z=Math.round(dt[1]-Yt*G),ee=Vt-X,Xt=ie-z,oe=v===Ot,nt=oe&&tt.getAlpha(pe(this),t.time)!==1,Kt=!1;if(!nt)if(vt){W=[X,z,X+ee,z,X+ee,z+Xt,X,z+Xt];for(var Xe=0,Re=vt.length;Xe{}}}};function kit(r,e,t,n,i,a){return cn(),Vn("div")}var Ih=le(Git,[["render",kit]]);const $it={extends:Ih,name:"ol-tile-layer",setup(r){const e=Ce("map"),t=Ce("overviewMap",null),{properties:n}=vr(r),i=hr(()=>new TF(n)),a=()=>{t!=null?(t.value.getOverviewMap().addLayer(i.value),t.value.changed()):e.addLayer(i.value)},o=()=>{t!=null?(t.value.getOverviewMap().removeLayer(i.value),t.value.changed()):e.removeLayer(i.value)};return t!=null&&he(t,()=>{o(),a()}),Ze(()=>{a()}),ir(()=>{o()}),Mr("tileLayer",i),{tileLayer:i}},props:{preload:{type:Number,default:1}}};function Vit(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var cS=le($it,[["render",Vit]]),jit=function(){function r(e){this.highWaterMark=e!==void 0?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return r.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},r.prototype.expireCache=function(e){for(;this.canExpireCache();)this.pop()},r.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},r.prototype.containsKey=function(e){return this.entries_.hasOwnProperty(e)},r.prototype.forEach=function(e){for(var t=this.oldest_;t;)e(t.value_,t.key_,this),t=t.newer},r.prototype.get=function(e,t){var n=this.entries_[e];return _e(n!==void 0,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_},r.prototype.remove=function(e){var t=this.entries_[e];return _e(t!==void 0,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_},r.prototype.getCount=function(){return this.count_},r.prototype.getKeys=function(){var e=new Array(this.count_),t=0,n;for(n=this.newest_;n;n=n.older)e[t++]=n.key_;return e},r.prototype.getValues=function(){var e=new Array(this.count_),t=0,n;for(n=this.newest_;n;n=n.older)e[t++]=n.value_;return e},r.prototype.peekLast=function(){return this.oldest_.value_},r.prototype.peekLastKey=function(){return this.oldest_.key_},r.prototype.peekFirstKey=function(){return this.newest_.key_},r.prototype.pop=function(){var e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_},r.prototype.replace=function(e,t){this.get(e),this.entries_[e].value_=t},r.prototype.set=function(e,t){_e(!(e in this.entries_),16);var n={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_},r.prototype.setSize=function(e){this.highWaterMark=e},r}(),O4=jit,Kit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),zit=function(r){Kit(e,r);function e(t){var n=this,i=ge.IDLE;return n=r.call(this,t.tileCoord,i,{transition:t.transition,interpolate:t.interpolate})||this,n.loader_=t.loader,n.data_=null,n.error_=null,n}return e.prototype.getData=function(){return this.data_},e.prototype.getError=function(){return this.error_},e.prototype.load=function(){this.state=ge.LOADING,this.changed();var t=this;this.loader_().then(function(n){t.data_=n,t.state=ge.LOADED,t.changed()}).catch(function(n){t.error_=n,t.state=ge.ERROR,t.changed()})},e}(EF),Yit=zit,Eg=34962,hw=34963,Xit=35040,SF=35044,D0=35048,Wit=5121,qit=5123,Zit=5125,R4=5126,eN=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function M4(r,e){for(var t=de({preserveDrawingBuffer:!0,antialias:!_Y},e),n=eN.length,i=0;i0&&(v=1e5/Math.pow(10,h),m=r.substring(a,a+h),f=parseFloat(m)*v,g=r.substring(a+h),p=parseFloat(g)*v),_=f+l,E=p+u,{easting:_,northing:E,zoneLetter:s,zoneNumber:o,accuracy:v}}function ret(r,e){for(var t=h4.charCodeAt(e-1),n=1e5,i=!1;t!==r.charCodeAt(0);){if(t++,t===ro&&t++,t===zo&&t++,t>vv){if(i)throw"Bad character: "+r;t=Yf,i=!0}n+=1e5}return n}function net(r,e){if(r>"V")throw"MGRSPoint given invalid Northing "+r;for(var t=f4.charCodeAt(e-1),n=0,i=!1;t!==r.charCodeAt(0);){if(t++,t===ro&&t++,t===zo&&t++,t>dv){if(i)throw"Bad character: "+r;t=Yf,i=!0}n+=1e5}return n}function iet(r){var e;switch(r){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+r}function Ip(r,e,t){if(!(this instanceof Ip))return new Ip(r,e,t);if(Array.isArray(r))this.x=r[0],this.y=r[1],this.z=r[2]||0;else if(typeof r=="object")this.x=r.x,this.y=r.y,this.z=r.z||0;else if(typeof r=="string"&&typeof e>"u"){var n=r.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=r,this.y=e,this.z=t||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Ip.fromMGRS=function(r){return new Ip(d4(r))};Ip.prototype.toMGRS=function(r){return p4([this.x,this.y],r)};var aet=1,oet=.25,WM=.046875,qM=.01953125,ZM=.01068115234375,set=.75,Aet=.46875,uet=.013020833333333334,cet=.007120768229166667,het=.3645833333333333,fet=.005696614583333333,pet=.3076171875;function y4(r){var e=[];e[0]=aet-r*(oet+r*(WM+r*(qM+r*ZM))),e[1]=r*(set-r*(WM+r*(qM+r*ZM)));var t=r*r;return e[2]=t*(Aet-r*(uet+r*cet)),t*=r,e[3]=t*(het-r*fet),e[4]=t*r*pet,e}function uw(r,e,t,n){return t*=e,e*=e,n[0]*r-t*(n[1]+e*(n[2]+e*(n[3]+e*n[4])))}var det=20;function m4(r,e,t){for(var n=1/(1-e),i=r,a=det;a;--a){var o=Math.sin(i),s=1-e*o*o;if(s=(uw(i,o,Math.cos(i),t)-r)*(s*Math.sqrt(s))*n,i-=s,Math.abs(s)ne?Math.tan(t):0,v=Math.pow(p,2),m=Math.pow(v,2);i=1-this.es*Math.pow(s,2),u=u/Math.sqrt(i);var g=uw(t,s,A,this.en);a=this.a*(this.k0*u*(1+c/6*(1-v+h+c/20*(5-18*v+m+14*h-58*v*h+c/42*(61+179*m-m*v-479*v)))))+this.x0,o=this.a*(this.k0*(g-this.ml0+s*n*u/2*(1+c/12*(5-v+9*h+4*f+c/30*(61+m-58*v+270*h-330*v*h+c/56*(1385+543*m-m*v-3111*v))))))+this.y0}else{var l=A*Math.sin(n);if(Math.abs(Math.abs(l)-1)=1){if(l-1>ne)return 93;o=0}else o=Math.acos(o);t<0&&(o=-o),o=this.a*this.k0*(o-this.lat0)+this.y0}return r.x=a,r.y=o,r}function yet(r){var e,t,n,i,a=(r.x-this.x0)*(1/this.a),o=(r.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+o/this.k0,t=m4(e,this.es,this.en),Math.abs(t)ne?Math.tan(t):0,p=this.ep2*Math.pow(h,2),v=Math.pow(p,2),m=Math.pow(f,2),g=Math.pow(m,2);e=1-this.es*Math.pow(c,2);var _=a*Math.sqrt(e)/this.k0,E=Math.pow(_,2);e=e*f,n=t-e*E/(1-this.es)*.5*(1-E/12*(5+3*m-9*p*m+p-4*v-E/30*(61+90*m-252*p*m+45*g+46*p-E/56*(1385+3633*m+4095*g+1574*g*m)))),i=fe(this.long0+_*(1-E/6*(1+2*m+p-E/20*(5+28*m+24*g+8*p*m+6*p-E/42*(61+662*m+1320*g+720*g*m))))/h)}else n=zt*iy(o),i=0;else{var s=Math.exp(a/this.k0),A=.5*(s-1/s),l=this.lat0+o/this.k0,u=Math.cos(l);e=Math.sqrt((1-Math.pow(u,2))/(1+Math.pow(A,2))),n=Math.asin(e),o<0&&(n=-n),A===0&&u===0?i=0:i=fe(Math.atan2(A,u)+this.long0)}return r.x=i,r.y=n,r}var met=["Fast_Transverse_Mercator","Fast Transverse Mercator"],P0={init:vet,forward:get,inverse:yet,names:met};function _4(r){var e=Math.exp(r);return e=(e-1/e)/2,e}function cw(r,e){r=Math.abs(r),e=Math.abs(e);var t=Math.max(r,e),n=Math.min(r,e)/(t||1);return t*Math.sqrt(1+Math.pow(n,2))}function _et(r){var e=1+r,t=e-1;return t===0?r:r*Math.log(e)/t}function wet(r){var e=Math.abs(r);return e=_et(e*(1+e/(cw(1,e)+1))),r<0?-e:e}function _F(r,e){for(var t=2*Math.cos(2*e),n=r.length-1,i=r[n],a=0,o;--n>=0;)o=-a+t*i+r[n],a=i,i=o;return e+o*Math.sin(2*e)}function Eet(r,e){for(var t=2*Math.cos(e),n=r.length-1,i=r[n],a=0,o;--n>=0;)o=-a+t*i+r[n],a=i,i=o;return Math.sin(e)*o}function Cet(r){var e=Math.exp(r);return e=(e+1/e)/2,e}function w4(r,e,t){for(var n=Math.sin(e),i=Math.cos(e),a=_4(t),o=Cet(t),s=2*i*o,A=-2*n*a,l=r.length-1,u=r[l],c=0,h=0,f=0,p,v;--l>=0;)p=h,v=c,h=u,c=f,u=-p+s*h-A*c+r[l],f=-v+A*h+s*c;return s=n*o,A=i*a,[s*u-A*f,s*f+A*u]}function Bet(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(P0.init.apply(this),this.forward=P0.forward,this.inverse=P0.inverse),this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var r=this.es/(1+Math.sqrt(1-this.es)),e=r/(2-r),t=e;this.cgb[0]=e*(2+e*(-2/3+e*(-2+e*(116/45+e*(26/45+e*(-2854/675)))))),this.cbg[0]=e*(-2+e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))),t=t*e,this.cgb[1]=t*(7/3+e*(-8/5+e*(-227/45+e*(2704/315+e*(2323/945))))),this.cbg[1]=t*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),t=t*e,this.cgb[2]=t*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=t*(-26/15+e*(34/21+e*(8/5+e*(-12686/2835)))),t=t*e,this.cgb[3]=t*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=t*(1237/630+e*(-12/5+e*(-24832/14175))),t=t*e,this.cgb[4]=t*(4174/315+e*(-144838/6237)),this.cbg[4]=t*(-734/315+e*(109598/31185)),t=t*e,this.cgb[5]=t*(601676/22275),this.cbg[5]=t*(444337/155925),t=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+t*(1/4+t*(1/64+t/256))),this.utg[0]=e*(-.5+e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=t*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=t*(13/48+e*(-3/5+e*(557/1440+e*(281/630+e*(-1983433/1935360))))),t=t*e,this.utg[2]=t*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=t*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),t=t*e,this.utg[3]=t*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=t*(49561/161280+e*(-179/168+e*(6601661/7257600))),t=t*e,this.utg[4]=t*(-4583/161280+e*(108847/3991680)),this.gtu[4]=t*(34729/80640+e*(-3418889/1995840)),t=t*e,this.utg[5]=t*(-20648693/638668800),this.gtu[5]=t*(212378941/319334400);var n=_F(this.cbg,this.lat0);this.Zb=-this.Qn*(n+Eet(this.gtu,2*n))}function Tet(r){var e=fe(r.x-this.long0),t=r.y;t=_F(this.cbg,t);var n=Math.sin(t),i=Math.cos(t),a=Math.sin(e),o=Math.cos(e);t=Math.atan2(n,o*i),e=Math.atan2(a*i,cw(n,i*o)),e=wet(Math.tan(e));var s=w4(this.gtu,2*t,2*e);t=t+s[0],e=e+s[1];var A,l;return Math.abs(e)<=2.623395162778?(A=this.a*(this.Qn*e)+this.x0,l=this.a*(this.Qn*t+this.Zb)+this.y0):(A=1/0,l=1/0),r.x=A,r.y=l,r}function bet(r){var e=(r.x-this.x0)*(1/this.a),t=(r.y-this.y0)*(1/this.a);t=(t-this.Zb)/this.Qn,e=e/this.Qn;var n,i;if(Math.abs(e)<=2.623395162778){var a=w4(this.utg,2*t,2*e);t=t+a[0],e=e+a[1],e=Math.atan(_4(e));var o=Math.sin(t),s=Math.cos(t),A=Math.sin(e),l=Math.cos(e);t=Math.atan2(o*l,cw(A,l*s)),e=Math.atan2(A,l*s),n=fe(e+this.long0),i=_F(this.cgb,t)}else n=1/0,i=1/0;return r.x=n,r.y=i,r}var xet=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"],U0={init:Bet,forward:Tet,inverse:bet,names:xet};function Iet(r,e){if(r===void 0){if(r=Math.floor((fe(e)+Math.PI)*30/Math.PI)+1,r<0)return 0;if(r>60)return 60}return r}var Fet="etmerc";function Let(){var r=Iet(this.zone,this.long0);if(r===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(r)-183)*na,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,U0.init.apply(this),this.forward=U0.forward,this.inverse=U0.inverse}var Oet=["Universal Transverse Mercator System","utm"],Ret={init:Let,names:Oet,dependsOn:Fet};function wF(r,e){return Math.pow((1-r)/(1+r),e)}var Met=20;function Net(){var r=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*r*r),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(r/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+zr)/(Math.pow(Math.tan(.5*this.lat0+zr),this.C)*wF(this.e*r,this.ratexp))}function Pet(r){var e=r.x,t=r.y;return r.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*t+zr),this.C)*wF(this.e*Math.sin(t),this.ratexp))-zt,r.x=this.C*e,r}function Uet(r){for(var e=1e-14,t=r.x/this.C,n=r.y,i=Math.pow(Math.tan(.5*n+zr)/this.K,1/this.C),a=Met;a>0&&(n=2*Math.atan(i*wF(this.e*Math.sin(r.y),-.5*this.e))-zt,!(Math.abs(n-r.y)0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=ne&&(this.k0=.5*this.cons*cA(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/Ss(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=cA(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-zt,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function Ket(r){var e=r.x,t=r.y,n=Math.sin(t),i=Math.cos(t),a,o,s,A,l,u,c=fe(e-this.long0);return Math.abs(Math.abs(e-this.long0)-Math.PI)<=ne&&Math.abs(t+this.lat0)<=ne?(r.x=NaN,r.y=NaN,r):this.sphere?(a=2*this.k0/(1+this.sinlat0*n+this.coslat0*i*Math.cos(c)),r.x=this.a*a*i*Math.sin(c)+this.x0,r.y=this.a*a*(this.coslat0*n-this.sinlat0*i*Math.cos(c))+this.y0,r):(o=2*Math.atan(this.ssfn_(t,n,this.e))-zt,A=Math.cos(o),s=Math.sin(o),Math.abs(this.coslat0)<=ne?(l=Ss(this.e,t*this.con,this.con*n),u=2*this.a*this.k0*l/this.cons,r.x=this.x0+u*Math.sin(e-this.long0),r.y=this.y0-this.con*u*Math.cos(e-this.long0),r):(Math.abs(this.sinlat0)0?e=fe(this.long0+Math.atan2(r.x,-1*r.y)):e=fe(this.long0+Math.atan2(r.x,r.y)):e=fe(this.long0+Math.atan2(r.x*Math.sin(s),o*this.coslat0*Math.cos(s)-r.y*this.sinlat0*Math.sin(s))),r.x=e,r.y=t,r)}else if(Math.abs(this.coslat0)<=ne){if(o<=ne)return t=this.lat0,e=this.long0,r.x=e,r.y=t,r;r.x*=this.con,r.y*=this.con,n=o*this.cons/(2*this.a*this.k0),t=this.con*_g(this.e,n),e=this.con*fe(this.con*this.long0+Math.atan2(r.x,-1*r.y))}else i=2*Math.atan(o*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,o<=ne?a=this.X0:(a=Math.asin(Math.cos(i)*this.sinX0+r.y*Math.sin(i)*this.cosX0/o),e=fe(this.long0+Math.atan2(r.x*Math.sin(i),o*this.cosX0*Math.cos(i)-r.y*this.sinX0*Math.sin(i)))),t=-1*_g(this.e,Math.tan(.5*(zt+a)));return r.x=e,r.y=t,r}var Yet=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],Xet={init:jet,forward:Ket,inverse:zet,names:Yet,ssfn_:Vet};function Wet(){var r=this.lat0;this.lambda0=this.long0;var e=Math.sin(r),t=this.a,n=this.rf,i=1/n,a=2*i-Math.pow(i,2),o=this.e=Math.sqrt(a);this.R=this.k0*t*Math.sqrt(1-a)/(1-a*Math.pow(e,2)),this.alpha=Math.sqrt(1+a/(1-a)*Math.pow(Math.cos(r),4)),this.b0=Math.asin(e/this.alpha);var s=Math.log(Math.tan(Math.PI/4+this.b0/2)),A=Math.log(Math.tan(Math.PI/4+r/2)),l=Math.log((1+o*e)/(1-o*e));this.K=s-this.alpha*A+this.alpha*o/2*l}function qet(r){var e=Math.log(Math.tan(Math.PI/4-r.y/2)),t=this.e/2*Math.log((1+this.e*Math.sin(r.y))/(1-this.e*Math.sin(r.y))),n=-this.alpha*(e+t)+this.K,i=2*(Math.atan(Math.exp(n))-Math.PI/4),a=this.alpha*(r.x-this.lambda0),o=Math.atan(Math.sin(a)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(a))),s=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(a));return r.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,r.x=this.R*o+this.x0,r}function Zet(r){for(var e=r.x-this.x0,t=r.y-this.y0,n=e/this.R,i=2*(Math.atan(Math.exp(t/this.R))-Math.PI/4),a=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(n)),o=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(i))),s=this.lambda0+o/this.alpha,A=0,l=a,u=-1e3,c=0;Math.abs(l-u)>1e-7;){if(++c>20)return;A=1/this.alpha*(Math.log(Math.tan(Math.PI/4+a/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),u=l,l=2*Math.atan(Math.exp(A))-Math.PI/2}return r.x=s,r.y=l,r}var Jet=["somerc"],trt={init:Wet,forward:qet,inverse:Zet,names:Jet},Nf=1e-7;function ert(r){var e=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],t=typeof r.PROJECTION=="object"?Object.keys(r.PROJECTION)[0]:r.PROJECTION;return"no_uoff"in r||"no_off"in r||e.indexOf(t)!==-1}function rrt(){var r,e,t,n,i,a,o,s,A,l,u=0,c,h=0,f=0,p=0,v=0,m=0,g=0;this.no_off=ert(this),this.no_rot="no_rot"in this;var _=!1;"alpha"in this&&(_=!0);var E=!1;if("rectified_grid_angle"in this&&(E=!0),_&&(g=this.alpha),E&&(u=this.rectified_grid_angle*na),_||E)h=this.longc;else if(f=this.long1,v=this.lat1,p=this.long2,m=this.lat2,Math.abs(v-m)<=Nf||(r=Math.abs(v))<=Nf||Math.abs(r-zt)<=Nf||Math.abs(Math.abs(this.lat0)-zt)<=Nf||Math.abs(Math.abs(m)-zt)<=Nf)throw new Error;var B=1-this.es;e=Math.sqrt(B),Math.abs(this.lat0)>ne?(s=Math.sin(this.lat0),t=Math.cos(this.lat0),r=1-this.es*s*s,this.B=t*t,this.B=Math.sqrt(1+this.es*this.B*this.B/B),this.A=this.B*this.k0*e/r,n=this.B*e/(t*Math.sqrt(r)),i=n*n-1,i<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=n,this.E*=Math.pow(Ss(this.e,this.lat0,s),this.B)):(this.B=1/e,this.A=this.k0,this.E=n=i=1),_||E?(_?(c=Math.asin(Math.sin(g)/n),E||(u=g)):(c=u,g=Math.asin(n*Math.sin(c))),this.lam0=h-Math.asin(.5*(i-1/i)*Math.tan(c))/this.B):(a=Math.pow(Ss(this.e,v,Math.sin(v)),this.B),o=Math.pow(Ss(this.e,m,Math.sin(m)),this.B),i=this.E/a,A=(o-a)/(o+a),l=this.E*this.E,l=(l-o*a)/(l+o*a),r=f-p,r<-Math.pi?p-=yg:r>Math.pi&&(p+=yg),this.lam0=fe(.5*(f+p)-Math.atan(l*Math.tan(.5*this.B*(f-p))/A)/this.B),c=Math.atan(2*Math.sin(this.B*fe(f-this.lam0))/(i-1/i)),u=g=Math.asin(n*Math.sin(c))),this.singam=Math.sin(c),this.cosgam=Math.cos(c),this.sinrot=Math.sin(u),this.cosrot=Math.cos(u),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A*this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(g))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*c,this.v_pole_n=this.ArB*Math.log(Math.tan(zr-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(zr+i))}function nrt(r){var e={},t,n,i,a,o,s,A,l;if(r.x=r.x-this.lam0,Math.abs(Math.abs(r.y)-zt)>ne){if(o=this.E/Math.pow(Ss(this.e,r.y,Math.sin(r.y)),this.B),s=1/o,t=.5*(o-s),n=.5*(o+s),a=Math.sin(this.B*r.x),i=(t*this.singam-a*this.cosgam)/n,Math.abs(Math.abs(i)-1)0?this.v_pole_n:this.v_pole_s,A=this.ArB*r.y;return this.no_rot?(e.x=A,e.y=l):(A-=this.u_0,e.x=l*this.cosrot+A*this.sinrot,e.y=A*this.cosrot-l*this.sinrot),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function irt(r){var e,t,n,i,a,o,s,A={};if(r.x=(r.x-this.x0)*(1/this.a),r.y=(r.y-this.y0)*(1/this.a),this.no_rot?(t=r.y,e=r.x):(t=r.x*this.cosrot-r.y*this.sinrot,e=r.y*this.cosrot+r.x*this.sinrot+this.u_0),n=Math.exp(-this.BrA*t),i=.5*(n-1/n),a=.5*(n+1/n),o=Math.sin(this.BrA*e),s=(o*this.cosgam+i*this.singam)/a,Math.abs(Math.abs(s)-1)ne?this.ns=Math.log(n/s)/Math.log(i/A):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=n/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(l,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function Art(r){var e=r.x,t=r.y;Math.abs(2*Math.abs(t)-Math.PI)<=ne&&(t=iy(t)*(zt-2*ne));var n=Math.abs(Math.abs(t)-zt),i,a;if(n>ne)i=Ss(this.e,t,Math.sin(t)),a=this.a*this.f0*Math.pow(i,this.ns);else{if(n=t*this.ns,n<=0)return null;a=0}var o=this.ns*fe(e-this.long0);return r.x=this.k0*(a*Math.sin(o))+this.x0,r.y=this.k0*(this.rh-a*Math.cos(o))+this.y0,r}function lrt(r){var e,t,n,i,a,o=(r.x-this.x0)/this.k0,s=this.rh-(r.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(o*o+s*s),t=1):(e=-Math.sqrt(o*o+s*s),t=-1);var A=0;if(e!==0&&(A=Math.atan2(t*o,t*s)),e!==0||this.ns>0){if(t=1/this.ns,n=Math.pow(e/(this.a*this.f0),t),i=_g(this.e,n),i===-9999)return null}else i=-zt;return a=fe(A/this.ns+this.long0),r.x=a,r.y=i,r}var urt=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc"],crt={init:srt,forward:Art,inverse:lrt,names:urt};function hrt(){this.a=6377397155e-3,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.7417649320975901-.308341501185665),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function frt(r){var e,t,n,i,a,o,s,A=r.x,l=r.y,u=fe(A-this.long0);return e=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),t=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/e)-this.s45),n=-u*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(t)+Math.sin(this.ad)*Math.cos(t)*Math.cos(n)),a=Math.asin(Math.cos(t)*Math.sin(n)/Math.cos(i)),o=this.n*a,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),r.y=s*Math.cos(o)/1,r.x=s*Math.sin(o)/1,this.czech||(r.y*=-1,r.x*=-1),r}function prt(r){var e,t,n,i,a,o,s,A,l=r.x;r.x=r.y,r.y=l,this.czech||(r.y*=-1,r.x*=-1),o=Math.sqrt(r.x*r.x+r.y*r.y),a=Math.atan2(r.y,r.x),i=a/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),t=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(e)),r.x=this.long0-t/this.alfa,s=e,A=0;var u=0;do r.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-r.y)<1e-10&&(A=1),s=r.y,u+=1;while(A===0&&u<15);return u>=15?null:r}var drt=["Krovak","krovak"],vrt={init:hrt,forward:frt,inverse:prt,names:drt};function Ga(r,e,t,n,i){return r*i-e*Math.sin(2*i)+t*Math.sin(4*i)-n*Math.sin(6*i)}function ay(r){return 1-.25*r*(1+r/16*(3+1.25*r))}function oy(r){return .375*r*(1+.25*r*(1+.46875*r))}function sy(r){return .05859375*r*r*(1+.75*r)}function Ay(r){return r*r*r*(35/3072)}function Fp(r,e,t){var n=e*t;return r/Math.sqrt(1-n*n)}function zp(r){return Math.abs(r)1e-7?(t=r*e,(1-r*r)*(e/(1-t*t)-.5/r*Math.log((1-t)/(1+t)))):2*e}var Ert=1,Crt=2,Brt=3,Trt=4;function brt(){var r=Math.abs(this.lat0);if(Math.abs(r-zt)0){var e;switch(this.qp=bu(this.e,1),this.mmf=.5/(1-this.es),this.apa=Nrt(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=bu(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function Srt(r){var e,t,n,i,a,o,s,A,l,u,c=r.x,h=r.y;if(c=fe(c-this.long0),this.sphere){if(a=Math.sin(h),u=Math.cos(h),n=Math.cos(c),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(t=this.mode===this.EQUIT?1+u*n:1+this.sinph0*a+this.cosph0*u*n,t<=ne)return null;t=Math.sqrt(2/t),e=t*u*Math.sin(c),t*=this.mode===this.EQUIT?a:this.cosph0*a-this.sinph0*u*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(h+this.lat0)=0?(e=(l=Math.sqrt(o))*i,t=n*(this.mode===this.S_POLE?l:-l)):e=t=0;break}}return r.x=this.a*e+this.x0,r.y=this.a*t+this.y0,r}function xrt(r){r.x-=this.x0,r.y-=this.y0;var e=r.x/this.a,t=r.y/this.a,n,i,a,o,s,A,l;if(this.sphere){var u=0,c,h=0;if(c=Math.sqrt(e*e+t*t),i=c*.5,i>1)return null;switch(i=2*Math.asin(i),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(h=Math.sin(i),u=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(c)<=ne?0:Math.asin(t*h/c),e*=h,t=u*c;break;case this.OBLIQ:i=Math.abs(c)<=ne?this.lat0:Math.asin(u*this.sinph0+t*h*this.cosph0/c),e*=h*this.cosph0,t=(u-Math.sin(i)*this.sinph0)*c;break;case this.N_POLE:t=-t,i=zt-i;break;case this.S_POLE:i-=zt;break}n=t===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(e,t)}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(e/=this.dd,t*=this.dd,A=Math.sqrt(e*e+t*t),A1&&(r=r>1?1:-1),Math.asin(r)}function Qrt(){Math.abs(this.lat1+this.lat2)ne?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function Hrt(r){var e=r.x,t=r.y;this.sin_phi=Math.sin(t),this.cos_phi=Math.cos(t);var n=bu(this.e3,this.sin_phi,this.cos_phi),i=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,a=this.ns0*fe(e-this.long0),o=i*Math.sin(a)+this.x0,s=this.rh-i*Math.cos(a)+this.y0;return r.x=o,r.y=s,r}function Grt(r){var e,t,n,i,a,o;return r.x-=this.x0,r.y=this.rh-r.y+this.y0,this.ns0>=0?(e=Math.sqrt(r.x*r.x+r.y*r.y),n=1):(e=-Math.sqrt(r.x*r.x+r.y*r.y),n=-1),i=0,e!==0&&(i=Math.atan2(n*r.x,n*r.y)),n=e*this.ns0/this.a,this.sphere?o=Math.asin((this.c-n*n)/(2*this.ns0)):(t=(this.c-n*n)/this.ns0,o=this.phi1z(this.e3,t)),a=fe(i/this.ns0+this.long0),r.x=a,r.y=o,r}function krt(r,e){var t,n,i,a,o,s=ku(.5*e);if(r0||Math.abs(o)<=ne?(s=this.x0+this.a*a*t*Math.sin(n)/o,A=this.y0+this.a*a*(this.cos_p14*e-this.sin_p14*t*i)/o):(s=this.x0+this.infinity_dist*t*Math.sin(n),A=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*t*i)),r.x=s,r.y=A,r}function zrt(r){var e,t,n,i,a,o;return r.x=(r.x-this.x0)/this.a,r.y=(r.y-this.y0)/this.a,r.x/=this.k0,r.y/=this.k0,(e=Math.sqrt(r.x*r.x+r.y*r.y))?(i=Math.atan2(e,this.rc),t=Math.sin(i),n=Math.cos(i),o=ku(n*this.sin_p14+r.y*t*this.cos_p14/e),a=Math.atan2(r.x*t,e*this.cos_p14*n-r.y*this.sin_p14*t),a=fe(this.long0+a)):(o=this.phic0,a=0),r.x=a,r.y=o,r}var Yrt=["gnom"],Xrt={init:jrt,forward:Krt,inverse:zrt,names:Yrt};function Wrt(r,e){var t=1-(1-r*r)/(2*r)*Math.log((1-r)/(1+r));if(Math.abs(Math.abs(e)-t)<1e-6)return e<0?-1*zt:zt;for(var n=Math.asin(.5*e),i,a,o,s,A=0;A<30;A++)if(a=Math.sin(n),o=Math.cos(n),s=r*a,i=Math.pow(1-s*s,2)/(2*o)*(e/(1-r*r)-a/(1-s*s)+.5/r*Math.log((1-s)/(1+s))),n+=i,Math.abs(i)<=1e-10)return n;return NaN}function qrt(){this.sphere||(this.k0=cA(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function Zrt(r){var e=r.x,t=r.y,n,i,a=fe(e-this.long0);if(this.sphere)n=this.x0+this.a*a*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(t)/Math.cos(this.lat_ts);else{var o=bu(this.e,Math.sin(t));n=this.x0+this.a*this.k0*a,i=this.y0+this.a*o*.5/this.k0}return r.x=n,r.y=i,r}function Jrt(r){r.x-=this.x0,r.y-=this.y0;var e,t;return this.sphere?(e=fe(this.long0+r.x/this.a/Math.cos(this.lat_ts)),t=Math.asin(r.y/this.a*Math.cos(this.lat_ts))):(t=Wrt(this.e,2*r.y*this.k0/this.a),e=fe(this.long0+r.x/(this.a*this.k0))),r.x=e,r.y=t,r}var tnt=["cea"],ent={init:qrt,forward:Zrt,inverse:Jrt,names:tnt};function rnt(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function nnt(r){var e=r.x,t=r.y,n=fe(e-this.long0),i=zp(t-this.lat0);return r.x=this.x0+this.a*n*this.rc,r.y=this.y0+this.a*i,r}function int(r){var e=r.x,t=r.y;return r.x=fe(this.long0+(e-this.x0)/(this.a*this.rc)),r.y=zp(this.lat0+(t-this.y0)/this.a),r}var ant=["Equirectangular","Equidistant_Cylindrical","eqc"],ont={init:rnt,forward:nnt,inverse:int,names:ant},JM=20;function snt(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ay(this.es),this.e1=oy(this.es),this.e2=sy(this.es),this.e3=Ay(this.es),this.ml0=this.a*Ga(this.e0,this.e1,this.e2,this.e3,this.lat0)}function Ant(r){var e=r.x,t=r.y,n,i,a,o=fe(e-this.long0);if(a=o*Math.sin(t),this.sphere)Math.abs(t)<=ne?(n=this.a*o,i=-1*this.a*this.lat0):(n=this.a*Math.sin(a)/Math.tan(t),i=this.a*(zp(t-this.lat0)+(1-Math.cos(a))/Math.tan(t)));else if(Math.abs(t)<=ne)n=this.a*o,i=-1*this.ml0;else{var s=Fp(this.a,this.e,Math.sin(t))/Math.tan(t);n=s*Math.sin(a),i=this.a*Ga(this.e0,this.e1,this.e2,this.e3,t)-this.ml0+s*(1-Math.cos(a))}return r.x=n+this.x0,r.y=i+this.y0,r}function lnt(r){var e,t,n,i,a,o,s,A,l;if(n=r.x-this.x0,i=r.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=ne)e=fe(n/this.a+this.long0),t=0;else{o=this.lat0+i/this.a,s=n*n/this.a/this.a+o*o,A=o;var u;for(a=JM;a;--a)if(u=Math.tan(A),l=-1*(o*(A*u+1)-A-.5*(A*A+s)*u)/((A-o)/u-1),A+=l,Math.abs(l)<=ne){t=A;break}e=fe(this.long0+Math.asin(n*Math.tan(A)/this.a)/Math.sin(t))}else if(Math.abs(i+this.ml0)<=ne)t=0,e=fe(this.long0+n/this.a);else{o=(this.ml0+i)/this.a,s=n*n/this.a/this.a+o*o,A=o;var c,h,f,p,v;for(a=JM;a;--a)if(v=this.e*Math.sin(A),c=Math.sqrt(1-v*v)*Math.tan(A),h=this.a*Ga(this.e0,this.e1,this.e2,this.e3,A),f=this.e0-2*this.e1*Math.cos(2*A)+4*this.e2*Math.cos(4*A)-6*this.e3*Math.cos(6*A),p=h/this.a,l=(o*(c*p+1)-p-.5*c*(p*p+s))/(this.es*Math.sin(2*A)*(p*p+s-2*o*p)/(4*c)+(o-p)*(c*f-2/Math.sin(2*A))-f),A-=l,Math.abs(l)<=ne){t=A;break}c=Math.sqrt(1-this.es*Math.pow(Math.sin(t),2))*Math.tan(t),e=fe(this.long0+Math.asin(n*c/this.a)/Math.sin(t))}return r.x=e,r.y=t,r}var unt=["Polyconic","poly"],cnt={init:snt,forward:Ant,inverse:lnt,names:unt};function hnt(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function fnt(r){var e,t=r.x,n=r.y,i=n-this.lat0,a=t-this.long0,o=i/Qv*1e-5,s=a,A=1,l=0;for(e=1;e<=10;e++)A=A*o,l=l+this.A[e]*A;var u=l,c=s,h=1,f=0,p,v,m=0,g=0;for(e=1;e<=6;e++)p=h*u-f*c,v=f*u+h*c,h=p,f=v,m=m+this.B_re[e]*h-this.B_im[e]*f,g=g+this.B_im[e]*h+this.B_re[e]*f;return r.x=g*this.a+this.x0,r.y=m*this.a+this.y0,r}function pnt(r){var e,t=r.x,n=r.y,i=t-this.x0,a=n-this.y0,o=a/this.a,s=i/this.a,A=1,l=0,u,c,h=0,f=0;for(e=1;e<=6;e++)u=A*o-l*s,c=l*o+A*s,A=u,l=c,h=h+this.C_re[e]*A-this.C_im[e]*l,f=f+this.C_im[e]*A+this.C_re[e]*l;for(var p=0;p.999999999999&&(t=.999999999999),e=Math.asin(t);var n=fe(this.long0+r.x/(.900316316158*this.a*Math.cos(e)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),t=(2*e+Math.sin(2*e))/Math.PI,Math.abs(t)>1&&(t=1);var i=Math.asin(t);return r.x=n,r.y=i,r}var Lnt=["Mollweide","moll"],Ont={init:xnt,forward:Int,inverse:Fnt,names:Lnt};function Rnt(){Math.abs(this.lat1+this.lat2)=0?(t=Math.sqrt(r.x*r.x+r.y*r.y),e=1):(t=-Math.sqrt(r.x*r.x+r.y*r.y),e=-1);var a=0;if(t!==0&&(a=Math.atan2(e*r.x,e*r.y)),this.sphere)return i=fe(this.long0+a/this.ns),n=zp(this.g-t/this.a),r.x=i,r.y=n,r;var o=this.g-t/this.a;return n=D_(o,this.e0,this.e1,this.e2,this.e3),i=fe(this.long0+a/this.ns),r.x=i,r.y=n,r}var Pnt=["Equidistant_Conic","eqdc"],Unt={init:Rnt,forward:Mnt,inverse:Nnt,names:Pnt};function Dnt(){this.R=this.a}function Qnt(r){var e=r.x,t=r.y,n=fe(e-this.long0),i,a;Math.abs(t)<=ne&&(i=this.x0+this.R*n,a=this.y0);var o=ku(2*Math.abs(t/Math.PI));(Math.abs(n)<=ne||Math.abs(Math.abs(t)-zt)<=ne)&&(i=this.x0,t>=0?a=this.y0+Math.PI*this.R*Math.tan(.5*o):a=this.y0+Math.PI*this.R*-Math.tan(.5*o));var s=.5*Math.abs(Math.PI/n-n/Math.PI),A=s*s,l=Math.sin(o),u=Math.cos(o),c=u/(l+u-1),h=c*c,f=c*(2/l-1),p=f*f,v=Math.PI*this.R*(s*(c-p)+Math.sqrt(A*(c-p)*(c-p)-(p+A)*(h-p)))/(p+A);n<0&&(v=-v),i=this.x0+v;var m=A+c;return v=Math.PI*this.R*(f*m-s*Math.sqrt((p+A)*(A+1)-m*m))/(p+A),t>=0?a=this.y0+v:a=this.y0-v,r.x=i,r.y=a,r}function Hnt(r){var e,t,n,i,a,o,s,A,l,u,c,h,f;return r.x-=this.x0,r.y-=this.y0,c=Math.PI*this.R,n=r.x/c,i=r.y/c,a=n*n+i*i,o=-Math.abs(i)*(1+a),s=o-2*i*i+n*n,A=-2*o+1+2*i*i+a*a,f=i*i/A+(2*s*s*s/A/A/A-9*o*s/A/A)/27,l=(o-s*s/3/A)/A,u=2*Math.sqrt(-l/3),c=3*f/l/u,Math.abs(c)>1&&(c>=0?c=1:c=-1),h=Math.acos(c)/3,r.y>=0?t=(-u*Math.cos(h+Math.PI/3)-s/3/A)*Math.PI:t=-(-u*Math.cos(h+Math.PI/3)-s/3/A)*Math.PI,Math.abs(n)2*zt*this.a?void 0:(t=e/this.a,n=Math.sin(t),i=Math.cos(t),a=this.long0,Math.abs(e)<=ne?o=this.lat0:(o=ku(i*this.sin_p12+r.y*n*this.cos_p12/e),s=Math.abs(this.lat0)-zt,Math.abs(s)<=ne?this.lat0>=0?a=fe(this.long0+Math.atan2(r.x,-r.y)):a=fe(this.long0-Math.atan2(-r.x,r.y)):a=fe(this.long0+Math.atan2(r.x*n,e*this.cos_p12*i-r.y*this.sin_p12*n))),r.x=a,r.y=o,r)):(A=ay(this.es),l=oy(this.es),u=sy(this.es),c=Ay(this.es),Math.abs(this.sin_p12-1)<=ne?(h=this.a*Ga(A,l,u,c,zt),e=Math.sqrt(r.x*r.x+r.y*r.y),f=h-e,o=D_(f/this.a,A,l,u,c),a=fe(this.long0+Math.atan2(r.x,-1*r.y)),r.x=a,r.y=o,r):Math.abs(this.sin_p12+1)<=ne?(h=this.a*Ga(A,l,u,c,zt),e=Math.sqrt(r.x*r.x+r.y*r.y),f=e-h,o=D_(f/this.a,A,l,u,c),a=fe(this.long0+Math.atan2(r.x,r.y)),r.x=a,r.y=o,r):(e=Math.sqrt(r.x*r.x+r.y*r.y),m=Math.atan2(r.x,r.y),p=Fp(this.a,this.e,this.sin_p12),g=Math.cos(m),_=this.e*this.cos_p12*g,E=-_*_/(1-this.es),B=3*this.es*(1-E)*this.sin_p12*this.cos_p12*g/(1-this.es),L=e/p,O=L-E*(1+E)*Math.pow(L,3)/6-B*(1+3*E)*Math.pow(L,4)/24,x=1-E*O*O/2-L*O*O*O/6,v=Math.asin(this.sin_p12*Math.cos(O)+this.cos_p12*Math.sin(O)*g),a=fe(this.long0+Math.asin(Math.sin(m)*Math.sin(O)/Math.cos(v))),T=Math.sin(v),o=Math.atan2((T-this.es*x*this.sin_p12)*Math.tan(v),T*(1-this.es)),r.x=a,r.y=o,r))}var Knt=["Azimuthal_Equidistant","aeqd"],znt={init:$nt,forward:Vnt,inverse:jnt,names:Knt};function Ynt(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function Xnt(r){var e,t,n,i,a,o,s,A,l=r.x,u=r.y;return n=fe(l-this.long0),e=Math.sin(u),t=Math.cos(u),i=Math.cos(n),o=this.sin_p14*e+this.cos_p14*t*i,a=1,(o>0||Math.abs(o)<=ne)&&(s=this.a*a*t*Math.sin(n),A=this.y0+this.a*a*(this.cos_p14*e-this.sin_p14*t*i)),r.x=s,r.y=A,r}function Wnt(r){var e,t,n,i,a,o,s;return r.x-=this.x0,r.y-=this.y0,e=Math.sqrt(r.x*r.x+r.y*r.y),t=ku(e/this.a),n=Math.sin(t),i=Math.cos(t),o=this.long0,Math.abs(e)<=ne?(s=this.lat0,r.x=o,r.y=s,r):(s=ku(i*this.sin_p14+r.y*n*this.cos_p14/e),a=Math.abs(this.lat0)-zt,Math.abs(a)<=ne?(this.lat0>=0?o=fe(this.long0+Math.atan2(r.x,-r.y)):o=fe(this.long0-Math.atan2(-r.x,r.y)),r.x=o,r.y=s,r):(o=fe(this.long0+Math.atan2(r.x*n,e*this.cos_p14*i-r.y*this.sin_p14*n)),r.x=o,r.y=s,r))}var qnt=["ortho"],Znt={init:Ynt,forward:Xnt,inverse:Wnt,names:qnt},Nn={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},Yr={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function Jnt(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=zt-zr/2?this.face=Nn.TOP:this.lat0<=-(zt-zr/2)?this.face=Nn.BOTTOM:Math.abs(this.long0)<=zr?this.face=Nn.FRONT:Math.abs(this.long0)<=zt+zr?this.face=this.long0>0?Nn.RIGHT:Nn.LEFT:this.face=Nn.BACK,this.es!==0&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function tit(r){var e={x:0,y:0},t,n,i,a,o,s,A={value:0};if(r.x-=this.long0,this.es!==0?t=Math.atan(this.one_minus_f_squared*Math.tan(r.y)):t=r.y,n=r.x,this.face===Nn.TOP)a=zt-t,n>=zr&&n<=zt+zr?(A.value=Yr.AREA_0,i=n-zt):n>zt+zr||n<=-(zt+zr)?(A.value=Yr.AREA_1,i=n>0?n-ri:n+ri):n>-(zt+zr)&&n<=-zr?(A.value=Yr.AREA_2,i=n+zt):(A.value=Yr.AREA_3,i=n);else if(this.face===Nn.BOTTOM)a=zt+t,n>=zr&&n<=zt+zr?(A.value=Yr.AREA_0,i=-n+zt):n=-zr?(A.value=Yr.AREA_1,i=-n):n<-zr&&n>=-(zt+zr)?(A.value=Yr.AREA_2,i=-n-zt):(A.value=Yr.AREA_3,i=n>0?-n+ri:-n-ri);else{var l,u,c,h,f,p,v;this.face===Nn.RIGHT?n=up(n,+zt):this.face===Nn.BACK?n=up(n,+ri):this.face===Nn.LEFT&&(n=up(n,-zt)),h=Math.sin(t),f=Math.cos(t),p=Math.sin(n),v=Math.cos(n),l=f*v,u=f*p,c=h,this.face===Nn.FRONT?(a=Math.acos(l),i=Mm(a,c,u,A)):this.face===Nn.RIGHT?(a=Math.acos(u),i=Mm(a,c,-l,A)):this.face===Nn.BACK?(a=Math.acos(-l),i=Mm(a,c,-u,A)):this.face===Nn.LEFT?(a=Math.acos(-u),i=Mm(a,c,l,A)):(a=i=0,A.value=Yr.AREA_0)}return s=Math.atan(12/ri*(i+Math.acos(Math.sin(i)*Math.cos(zr))-zt)),o=Math.sqrt((1-Math.cos(a))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(i))))),A.value===Yr.AREA_1?s+=zt:A.value===Yr.AREA_2?s+=ri:A.value===Yr.AREA_3&&(s+=1.5*ri),e.x=o*Math.cos(s),e.y=o*Math.sin(s),e.x=e.x*this.a+this.x0,e.y=e.y*this.a+this.y0,r.x=e.x,r.y=e.y,r}function eit(r){var e={lam:0,phi:0},t,n,i,a,o,s,A,l,u,c={value:0};if(r.x=(r.x-this.x0)/this.a,r.y=(r.y-this.y0)/this.a,n=Math.atan(Math.sqrt(r.x*r.x+r.y*r.y)),t=Math.atan2(r.y,r.x),r.x>=0&&r.x>=Math.abs(r.y)?c.value=Yr.AREA_0:r.y>=0&&r.y>=Math.abs(r.x)?(c.value=Yr.AREA_1,t-=zt):r.x<0&&-r.x>=Math.abs(r.y)?(c.value=Yr.AREA_2,t=t<0?t+ri:t-ri):(c.value=Yr.AREA_3,t+=zt),u=ri/12*Math.tan(t),o=Math.sin(u)/(Math.cos(u)-1/Math.sqrt(2)),s=Math.atan(o),i=Math.cos(t),a=Math.tan(n),A=1-i*i*a*a*(1-Math.cos(Math.atan(1/Math.cos(s)))),A<-1?A=-1:A>1&&(A=1),this.face===Nn.TOP)l=Math.acos(A),e.phi=zt-l,c.value===Yr.AREA_0?e.lam=s+zt:c.value===Yr.AREA_1?e.lam=s<0?s+ri:s-ri:c.value===Yr.AREA_2?e.lam=s-zt:e.lam=s;else if(this.face===Nn.BOTTOM)l=Math.acos(A),e.phi=l-zt,c.value===Yr.AREA_0?e.lam=-s+zt:c.value===Yr.AREA_1?e.lam=-s:c.value===Yr.AREA_2?e.lam=-s-zt:e.lam=s<0?-s-ri:-s+ri;else{var h,f,p;h=A,u=h*h,u>=1?p=0:p=Math.sqrt(1-u)*Math.sin(s),u+=p*p,u>=1?f=0:f=Math.sqrt(1-u),c.value===Yr.AREA_1?(u=f,f=-p,p=u):c.value===Yr.AREA_2?(f=-f,p=-p):c.value===Yr.AREA_3&&(u=f,f=p,p=-u),this.face===Nn.RIGHT?(u=h,h=-f,f=u):this.face===Nn.BACK?(h=-h,f=-f):this.face===Nn.LEFT&&(u=h,h=f,f=-u),e.phi=Math.acos(-p)-zt,e.lam=Math.atan2(f,h),this.face===Nn.RIGHT?e.lam=up(e.lam,-zt):this.face===Nn.BACK?e.lam=up(e.lam,-ri):this.face===Nn.LEFT&&(e.lam=up(e.lam,+zt))}if(this.es!==0){var v,m,g;v=e.phi<0?1:0,m=Math.tan(e.phi),g=this.b/Math.sqrt(m*m+this.one_minus_f_squared),e.phi=Math.atan(Math.sqrt(this.a*this.a-g*g)/(this.one_minus_f*g)),v&&(e.phi=-e.phi)}return e.lam+=this.long0,r.x=e.lam,r.y=e.phi,r}function Mm(r,e,t,n){var i;return rzr&&i<=zt+zr?(n.value=Yr.AREA_1,i-=zt):i>zt+zr||i<=-(zt+zr)?(n.value=Yr.AREA_2,i=i>=0?i-ri:i+ri):(n.value=Yr.AREA_3,i+=zt)),i}function up(r,e){var t=r+e;return t<-ri?t+=yg:t>+ri&&(t-=yg),t}var rit=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"],nit={init:Jnt,forward:tit,inverse:eit,names:rit},lb=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],gv=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],E4=.8487,C4=1.3523,B4=eA/5,iit=1/B4,Xf=18,Q_=function(r,e){return r[0]+e*(r[1]+e*(r[2]+e*r[3]))},ait=function(r,e){return r[1]+e*(2*r[2]+e*3*r[3])};function oit(r,e,t,n){for(var i=e;n;--n){var a=r(i);if(i-=a,Math.abs(a)=Xf&&(n=Xf-1),t=eA*(t-iit*n);var i={x:Q_(lb[n],t)*e,y:Q_(gv[n],t)};return r.y<0&&(i.y=-i.y),i.x=i.x*this.a*E4+this.x0,i.y=i.y*this.a*C4+this.y0,i}function lit(r){var e={x:(r.x-this.x0)/(this.a*E4),y:Math.abs(r.y-this.y0)/(this.a*C4)};if(e.y>=1)e.x/=lb[Xf][0],e.y=r.y<0?-zt:zt;else{var t=Math.floor(e.y*Xf);for(t<0?t=0:t>=Xf&&(t=Xf-1);;)if(gv[t][0]>e.y)--t;else if(gv[t+1][0]<=e.y)++t;else break;var n=gv[t],i=5*(e.y-n[0])/(gv[t+1][0]-n[0]);i=oit(function(a){return(Q_(n,a)-e.y)/ait(n,a)},i,ne,100),e.x/=Q_(lb[t],i),e.y=(5*t+i)*na,r.y<0&&(e.y=-e.y)}return e.x=fe(e.x+this.long0),e}var uit=["Robinson","robin"],cit={init:sit,forward:Ait,inverse:lit,names:uit};function hit(){this.name="geocent"}function fit(r){var e=l4(r,this.es,this.a);return e}function pit(r){var e=u4(r,this.es,this.a,this.b);return e}var dit=["Geocentric","geocentric","geocent","Geocent"],vit={init:hit,forward:fit,inverse:pit,names:dit},_a={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},jd={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function git(){if(Object.keys(jd).forEach(function(t){if(typeof this[t]>"u")this[t]=jd[t].def;else{if(jd[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);jd[t].num&&(this[t]=parseFloat(this[t]))}jd[t].degrees&&(this[t]=this[t]*na)}.bind(this)),Math.abs(Math.abs(this.lat0)-zt)1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var r=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(r),this.sw=Math.sin(r)}function yit(r){r.x-=this.long0;var e=Math.sin(r.y),t=Math.cos(r.y),n=Math.cos(r.x),i,a;switch(this.mode){case _a.OBLIQ:a=this.sinph0*e+this.cosph0*t*n;break;case _a.EQUIT:a=t*n;break;case _a.S_POLE:a=-e;break;case _a.N_POLE:a=e;break}switch(a=this.pn1/(this.p-a),i=a*t*Math.sin(r.x),this.mode){case _a.OBLIQ:a*=this.cosph0*e-this.sinph0*t*n;break;case _a.EQUIT:a*=e;break;case _a.N_POLE:a*=-(t*n);break;case _a.S_POLE:a*=t*n;break}var o,s;return o=a*this.cg+i*this.sg,s=1/(o*this.sw*this.h1+this.cw),i=(i*this.cg-a*this.sg)*this.cw*s,a=o*s,r.x=i*this.a,r.y=a*this.a,r}function mit(r){r.x/=this.a,r.y/=this.a;var e={x:r.x,y:r.y},t,n,i;i=1/(this.pn1-r.y*this.sw),t=this.pn1*r.x*i,n=this.pn1*r.y*this.cw*i,r.x=t*this.cg+n*this.sg,r.y=n*this.cg-t*this.sg;var a=cw(r.x,r.y);if(Math.abs(a)t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){Be()},e.prototype.getAlpha=function(t,n){if(!this.transition_)return 1;var i=this.transitionStarts_[t];if(!i)i=n,this.transitionStarts_[t]=i;else if(i===-1)return 1;var a=n-i+1e3/60;return a>=this.transition_?1:YI(a/this.transition_)},e.prototype.inTransition=function(t){return this.transition_?this.transitionStarts_[t]!==-1:!1},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(Th),CF=Fit,Lit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Oit=function(r){Lit(e,r);function e(t,n,i,a,o,s){var A=r.call(this,t,n,s)||this;return A.crossOrigin_=a,A.src_=i,A.key=i,A.image_=new Image,a!==null&&(A.image_.crossOrigin=a),A.unlisten_=null,A.tileLoadFunction_=o,A}return e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=ge.LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){this.state=ge.ERROR,this.unlistenImage_(),this.image_=Rit(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=ge.LOADED:this.state=ge.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==ge.ERROR&&(this.state=ge.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==ge.IDLE&&(this.state=ge.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=dF(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(CF);function Rit(){var r=Ka(1,1);return r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1),r.canvas}var G_=Oit,b4=.5,Mit=10,tN=.25,Nit=function(){function r(e,t,n,i,a,o){this.sourceProj_=e,this.targetProj_=t;var s={},A=vg(this.targetProj_,this.sourceProj_);this.transformInv_=function(E){var B=E[0]+"/"+E[1];return s[B]||(s[B]=A(E)),s[B]},this.maxSourceExtent_=i,this.errorThresholdSquared_=a*a,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&Fr(i)==Fr(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Fr(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Fr(this.targetProj_.getExtent()):null;var l=Ms(n),u=Yg(n),c=$p(n),h=zg(n),f=this.transformInv_(l),p=this.transformInv_(u),v=this.transformInv_(c),m=this.transformInv_(h),g=Mit+(o?Math.max(0,Math.ceil(k6(Ag(n)/(o*o*256*256)))):0);if(this.addQuad_(l,u,c,h,f,p,v,m,g),this.wrapsXInSource_){var _=1/0;this.triangles_.forEach(function(E,B,L){_=Math.min(_,E.source[0][0],E.source[1][0],E.source[2][0])}),this.triangles_.forEach(function(E){if(Math.max(E.source[0][0],E.source[1][0],E.source[2][0])-_>this.sourceWorldWidth_/2){var B=[[E.source[0][0],E.source[0][1]],[E.source[1][0],E.source[1][1]],[E.source[2][0],E.source[2][1]]];B[0][0]-_>this.sourceWorldWidth_/2&&(B[0][0]-=this.sourceWorldWidth_),B[1][0]-_>this.sourceWorldWidth_/2&&(B[1][0]-=this.sourceWorldWidth_),B[2][0]-_>this.sourceWorldWidth_/2&&(B[2][0]-=this.sourceWorldWidth_);var L=Math.min(B[0][0],B[1][0],B[2][0]),O=Math.max(B[0][0],B[1][0],B[2][0]);O-L.5&&c<1,p=!1;if(l>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var v=Xi([e,t,n,i]),m=Fr(v)/this.targetWorldWidth_;p=m>tN||p}!f&&this.sourceProj_.isGlobal()&&c&&(p=c>tN||p)}if(!(!p&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!Pn(u,this.maxSourceExtent_))){var g=0;if(!p&&(!isFinite(a[0])||!isFinite(a[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(s[0])||!isFinite(s[1])||!isFinite(A[0])||!isFinite(A[1]))){if(l>0)p=!0;else if(g=(!isFinite(a[0])||!isFinite(a[1])?8:0)+(!isFinite(o[0])||!isFinite(o[1])?4:0)+(!isFinite(s[0])||!isFinite(s[1])?2:0)+(!isFinite(A[0])||!isFinite(A[1])?1:0),g!=1&&g!=2&&g!=4&&g!=8)return}if(l>0){if(!p){var _=[(e[0]+n[0])/2,(e[1]+n[1])/2],E=this.transformInv_(_),B=void 0;if(f){var L=(Bu(a[0],h)+Bu(s[0],h))/2;B=L-Bu(E[0],h)}else B=(a[0]+s[0])/2-E[0];var O=(a[1]+s[1])/2-E[1],x=B*B+O*O;p=x>this.errorThresholdSquared_}if(p){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){var T=[(t[0]+n[0])/2,(t[1]+n[1])/2],I=this.transformInv_(T),M=[(i[0]+e[0])/2,(i[1]+e[1])/2],S=this.transformInv_(M);this.addQuad_(e,t,T,M,a,o,I,S,l-1),this.addQuad_(M,T,n,i,S,I,s,A,l-1)}else{var b=[(e[0]+t[0])/2,(e[1]+t[1])/2],N=this.transformInv_(b),P=[(n[0]+i[0])/2,(n[1]+i[1])/2],X=this.transformInv_(P);this.addQuad_(e,b,P,i,a,N,X,A,l-1),this.addQuad_(b,t,n,P,N,o,s,X,l-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}g&11||this.addTriangle_(e,n,i,a,s,A),g&14||this.addTriangle_(e,n,t,a,s,o),g&&(g&13||this.addTriangle_(t,i,e,o,A,a),g&7||this.addTriangle_(t,i,n,o,A,s))}},r.prototype.calculateSourceExtent=function(){var e=wi();return this.triangles_.forEach(function(t,n,i){var a=t.source;Yc(e,a[0]),Yc(e,a[1]),Yc(e,a[2])}),e},r.prototype.getTriangles=function(){return this.triangles_},r}(),S4=Nit,Lp={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},x4={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0},IC;function eN(r,e,t,n,i){r.beginPath(),r.moveTo(0,0),r.lineTo(e,t),r.lineTo(n,i),r.closePath(),r.save(),r.clip(),r.fillRect(0,0,Math.max(e,n)+1,Math.max(t,i)),r.restore()}function FC(r,e){return Math.abs(r[e*4]-210)>2||Math.abs(r[e*4+3]-.75*255)>2}function Pit(){if(IC===void 0){var r=document.createElement("canvas").getContext("2d");r.globalCompositeOperation="lighter",r.fillStyle="rgba(210, 0, 0, 0.75)",eN(r,4,5,4,0),eN(r,4,5,0,5);var e=r.getImageData(0,0,3,3).data;IC=FC(e,0)||FC(e,4)||FC(e,8)}return IC}function wg(r,e,t,n){var i=Qu(t,e,r),a=T_(e,n,t),o=e.getMetersPerUnit();o!==void 0&&(a*=o);var s=r.getMetersPerUnit();s!==void 0&&(a/=s);var A=r.getExtent();if(!A||xs(A,i)){var l=T_(r,a,i)/a;isFinite(l)&&l>0&&(a/=l)}return a}function Uit(r,e,t,n){var i=Sa(t),a=wg(r,e,i,n);return(!isFinite(a)||a<=0)&&X1(t,function(o){return a=wg(r,e,o,n),isFinite(a)&&a>0}),a}function I4(r,e,t,n,i,a,o,s,A,l,u,c){var h=Ka(Math.round(t*r),Math.round(t*e));if(c||de(h,Lp),A.length===0)return h.canvas;h.scale(t,t);function f(B){return Math.round(B*t)/t}h.globalCompositeOperation="lighter";var p=wi();A.forEach(function(B,L,O){Uu(p,B.extent)});var v=Fr(p),m=li(p),g=Ka(Math.round(t*v/n),Math.round(t*m/n));c||de(g,Lp);var _=t/n;A.forEach(function(B,L,O){var x=B.extent[0]-p[0],T=-(B.extent[3]-p[3]),I=Fr(B.extent),M=li(B.extent);B.image.width>0&&B.image.height>0&&g.drawImage(B.image,l,l,B.image.width-2*l,B.image.height-2*l,x*_,T*_,I*_,M*_)});var E=Ms(o);return s.getTriangles().forEach(function(B,L,O){var x=B.source,T=B.target,I=x[0][0],M=x[0][1],S=x[1][0],b=x[1][1],N=x[2][0],P=x[2][1],X=f((T[0][0]-E[0])/a),z=f(-(T[0][1]-E[1])/a),tt=f((T[1][0]-E[0])/a),J=f(-(T[1][1]-E[1])/a),nt=f((T[2][0]-E[0])/a),it=f(-(T[2][1]-E[1])/a),_t=I,R=M;I=0,M=0,S-=_t,b-=R,N-=_t,P-=R;var $=[[S,b,0,0,tt-X],[N,P,0,0,nt-X],[0,0,S,b,J-z],[0,0,N,P,it-z]],K=VY($);if(K){if(h.save(),h.beginPath(),Pit()||!c){h.moveTo(tt,J);for(var q=4,at=X-tt,vt=z-J,wt=0;wtthis.maxX&&(this.maxX=e.maxX),e.minYthis.maxY&&(this.maxY=e.maxY)},r.prototype.getHeight=function(){return this.maxY-this.minY+1},r.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},r.prototype.getWidth=function(){return this.maxX-this.minX+1},r.prototype.intersects=function(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY},r}();function pf(r,e,t,n,i){return i!==void 0?(i.minX=r,i.maxX=e,i.minY=t,i.maxY=n,i):new F4(r,e,t,n)}var TF=F4,Hit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Git=function(r){Hit(e,r);function e(t){var n=r.call(this,t)||this;return n.extentChanged=!0,n.renderedExtent_=null,n.renderedPixelRatio,n.renderedProjection=null,n.renderedRevision,n.renderedTiles=[],n.newTiles_=!1,n.tmpExtent=wi(),n.tmpTileRange_=new TF(0,0,0,0),n}return e.prototype.isDrawableTile=function(t){var n=this.getLayer(),i=t.getState(),a=n.getUseInterimTilesOnError();return i==ge.LOADED||i==ge.EMPTY||i==ge.ERROR&&!a},e.prototype.getTile=function(t,n,i,a){var o=a.pixelRatio,s=a.viewState.projection,A=this.getLayer(),l=A.getSource(),u=l.getTile(t,n,i,o,s);return u.getState()==ge.ERROR&&(A.getUseInterimTilesOnError()?A.getPreload()>0&&(this.newTiles_=!0):u.setState(ge.LOADED)),this.isDrawableTile(u)||(u=u.getInterimTile()),u},e.prototype.getData=function(t){var n=this.frameState;if(!n)return null;var i=this.getLayer(),a=cn(n.pixelToCoordinateTransform,t.slice()),o=i.getExtent();if(o&&!xs(o,a))return null;for(var s=n.pixelRatio,A=n.viewState.projection,l=n.viewState,u=i.getRenderSource(),c=u.getTileGridForProjection(l.projection),h=u.getTilePixelRatio(n.pixelRatio),f=c.getZForResolution(l.resolution);f>=c.getMinZoom();--f){var p=c.getTileCoordForCoordAndZ(a,f),v=u.getTile(f,p[1],p[2],s,A);if(!(v instanceof G_||v instanceof BF))return null;if(v.getState()===ge.LOADED){var m=c.getOrigin(f),g=Ui(c.getTileSize(f)),_=c.getResolution(f),E=Math.floor(h*((a[0]-m[0])/_-p[1]*g[0])),B=Math.floor(h*((m[1]-a[1])/_-p[2]*g[1]));return this.getImageData(v.getImage(),E,B)}}return null},e.prototype.loadedTileCallback=function(t,n,i){return this.isDrawableTile(i)?r.prototype.loadedTileCallback.call(this,t,n,i):!1},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,n){var i=t.layerStatesArray[t.layerIndex],a=t.viewState,o=a.projection,s=a.resolution,A=a.center,l=a.rotation,u=t.pixelRatio,c=this.getLayer(),h=c.getSource(),f=h.getRevision(),p=h.getTileGridForProjection(o),v=p.getZForResolution(s,h.zDirection),m=p.getResolution(v),g=t.extent,_=i.extent&&Oo(i.extent);_&&(g=ts(g,Oo(i.extent)));var E=h.getTilePixelRatio(u),B=Math.round(t.size[0]*E),L=Math.round(t.size[1]*E);if(l){var O=Math.round(Math.sqrt(B*B+L*L));B=O,L=O}var x=m*B/2/E,T=m*L/2/E,I=[A[0]-x,A[1]-T,A[0]+x,A[1]+T],M=p.getTileRangeForExtentAndZ(g,v),S={};S[v]={};var b=this.createLoadedTileFinder(h,o,S),N=this.tmpExtent,P=this.tmpTileRange_;this.newTiles_=!1;for(var X=M.minX;X<=M.maxX;++X)for(var z=M.minY;z<=M.maxY;++z){var tt=this.getTile(v,X,z,t);if(this.isDrawableTile(tt)){var J=pe(this);if(tt.getState()==ge.LOADED){S[v][tt.tileCoord.toString()]=tt;var nt=tt.inTransition(J);!this.newTiles_&&(nt||this.renderedTiles.indexOf(tt)===-1)&&(this.newTiles_=!0)}if(tt.getAlpha(J,t.time)===1)continue}var it=p.getTileCoordChildTileRange(tt.tileCoord,P,N),_t=!1;it&&(_t=b(v+1,it)),_t||p.forEachTileCoordParentTileRange(tt.tileCoord,b,P,N)}var R=m/s;Va(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/E,1/E,l,-B/2,-L/2);var $=LI(this.pixelTransform);this.useContainer(n,$,i.opacity,this.getBackground(t));var K=this.context,q=K.canvas;Kg(this.inversePixelTransform,this.pixelTransform),Va(this.tempTransform,B/2,L/2,R,R,0,-B/2,-L/2),q.width!=B||q.height!=L?(q.width=B,q.height=L):this.containerReused||K.clearRect(0,0,B,L),_&&this.clipUnrotated(K,t,_),h.getInterpolate()||de(K,Lp),this.preRender(K,t),this.renderedTiles.length=0;var at=Object.keys(S).map(Number);at.sort(Nu);var vt,wt,W;i.opacity===1&&(!this.containerReused||h.getOpaque(t.viewState.projection))?at=at.reverse():(vt=[],wt=[]);for(var It=at.length-1;It>=0;--It){var Ot=at[It],j=h.getTilePixelSize(Ot,u,o),Z=p.getResolution(Ot),ut=Z/m,rt=j[0]*ut*R,G=j[1]*ut*R,St=p.getTileCoordForCoordAndZ(Ms(I),Ot),xt=p.getTileCoordExtent(St),dt=cn(this.tempTransform,[E*(xt[0]-I[0])/m,E*(I[3]-xt[3])/m]),Et=E*h.getGutterForProjection(o),yt=S[Ot];for(var bt in yt){var tt=yt[bt],Ft=tt.tileCoord,Mt=St[1]-Ft[1],Vt=Math.round(dt[0]-(Mt-1)*rt),Yt=St[2]-Ft[2],ie=Math.round(dt[1]-(Yt-1)*G),X=Math.round(dt[0]-Mt*rt),z=Math.round(dt[1]-Yt*G),ee=Vt-X,Xt=ie-z,oe=v===Ot,nt=oe&&tt.getAlpha(pe(this),t.time)!==1,Kt=!1;if(!nt)if(vt){W=[X,z,X+ee,z,X+ee,z+Xt,X,z+Xt];for(var Xe=0,Re=vt.length;Xe{}}}};function jit(r,e,t,n,i,a){return tn(),Ln("div")}var Ih=le(Vit,[["render",jit]]);const Kit={extends:Ih,name:"ol-tile-layer",setup(r){const e=Ce("map"),t=Ce("overviewMap",null),{properties:n}=vr(r),i=fr(()=>new bF(n)),a=()=>{t!=null?(t.value.getOverviewMap().addLayer(i.value),t.value.changed()):e.addLayer(i.value)},o=()=>{t!=null?(t.value.getOverviewMap().removeLayer(i.value),t.value.changed()):e.removeLayer(i.value)};return t!=null&&he(t,()=>{o(),a()}),Ze(()=>{a()}),ir(()=>{o()}),Mr("tileLayer",i),{tileLayer:i}},props:{preload:{type:Number,default:1}}};function zit(r,e,t,n,i,a){return tn(),Ln("div",null,[mr(r.$slots,"default")])}var cb=le(Kit,[["render",zit]]),Yit=function(){function r(e){this.highWaterMark=e!==void 0?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return r.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},r.prototype.expireCache=function(e){for(;this.canExpireCache();)this.pop()},r.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},r.prototype.containsKey=function(e){return this.entries_.hasOwnProperty(e)},r.prototype.forEach=function(e){for(var t=this.oldest_;t;)e(t.value_,t.key_,this),t=t.newer},r.prototype.get=function(e,t){var n=this.entries_[e];return _e(n!==void 0,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_},r.prototype.remove=function(e){var t=this.entries_[e];return _e(t!==void 0,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_},r.prototype.getCount=function(){return this.count_},r.prototype.getKeys=function(){var e=new Array(this.count_),t=0,n;for(n=this.newest_;n;n=n.older)e[t++]=n.key_;return e},r.prototype.getValues=function(){var e=new Array(this.count_),t=0,n;for(n=this.newest_;n;n=n.older)e[t++]=n.value_;return e},r.prototype.peekLast=function(){return this.oldest_.value_},r.prototype.peekLastKey=function(){return this.oldest_.key_},r.prototype.peekFirstKey=function(){return this.newest_.key_},r.prototype.pop=function(){var e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_},r.prototype.replace=function(e,t){this.get(e),this.entries_[e].value_=t},r.prototype.set=function(e,t){_e(!(e in this.entries_),16);var n={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_},r.prototype.setSize=function(e){this.highWaterMark=e},r}(),O4=Yit,Xit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Wit=function(r){Xit(e,r);function e(t){var n=this,i=ge.IDLE;return n=r.call(this,t.tileCoord,i,{transition:t.transition,interpolate:t.interpolate})||this,n.loader_=t.loader,n.data_=null,n.error_=null,n}return e.prototype.getData=function(){return this.data_},e.prototype.getError=function(){return this.error_},e.prototype.load=function(){this.state=ge.LOADING,this.changed();var t=this;this.loader_().then(function(n){t.data_=n,t.state=ge.LOADED,t.changed()}).catch(function(n){t.error_=n,t.state=ge.ERROR,t.changed()})},e}(CF),qit=Wit,Eg=34962,hw=34963,Zit=35040,SF=35044,D0=35048,Jit=5121,tat=5123,eat=5125,R4=5126,rN=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function M4(r,e){for(var t=de({preserveDrawingBuffer:!0,antialias:!CY},e),n=rN.length,i=0;i0&&(v=1e5/Math.pow(10,h) v_screenCoord = v_texCoord * u_screenSize; gl_Position = vec4(a_position, 0.0, 1.0); } -`,sat=` +`,uat=` precision mediump float; uniform sampler2D u_image; @@ -453,7 +453,7 @@ northing meters`+r;var h=c/2,f=0,p=0,v,m,g,_,E;return h>0&&(v=1e5/Math.pow(10,h) void main() { gl_FragColor = texture2D(u_image, v_texCoord) * u_opacity; } -`,Aat=function(){function r(e){this.gl_=e.webGlContext;var t=this.gl_;this.scaleRatio_=e.scaleRatio||1,this.renderTargetTexture_=t.createTexture(),this.renderTargetTextureSize_=null,this.frameBuffer_=t.createFramebuffer();var n=t.createShader(t.VERTEX_SHADER);t.shaderSource(n,e.vertexShader||oat),t.compileShader(n);var i=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(i,e.fragmentShader||sat),t.compileShader(i),this.renderTargetProgram_=t.createProgram(),t.attachShader(this.renderTargetProgram_,n),t.attachShader(this.renderTargetProgram_,i),t.linkProgram(this.renderTargetProgram_),this.renderTargetVerticesBuffer_=t.createBuffer();var a=[-1,-1,1,-1,-1,1,1,-1,1,1,-1,1];t.bindBuffer(t.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),t.bufferData(t.ARRAY_BUFFER,new Float32Array(a),t.STATIC_DRAW),this.renderTargetAttribLocation_=t.getAttribLocation(this.renderTargetProgram_,"a_position"),this.renderTargetUniformLocation_=t.getUniformLocation(this.renderTargetProgram_,"u_screenSize"),this.renderTargetOpacityLocation_=t.getUniformLocation(this.renderTargetProgram_,"u_opacity"),this.renderTargetTextureLocation_=t.getUniformLocation(this.renderTargetProgram_,"u_image"),this.uniforms_=[],e.uniforms&&Object.keys(e.uniforms).forEach(function(o){this.uniforms_.push({value:e.uniforms[o],location:t.getUniformLocation(this.renderTargetProgram_,o)})}.bind(this))}return r.prototype.getGL=function(){return this.gl_},r.prototype.init=function(e){var t=this.getGL(),n=[t.drawingBufferWidth*this.scaleRatio_,t.drawingBufferHeight*this.scaleRatio_];if(t.bindFramebuffer(t.FRAMEBUFFER,this.getFrameBuffer()),t.viewport(0,0,n[0],n[1]),!this.renderTargetTextureSize_||this.renderTargetTextureSize_[0]!==n[0]||this.renderTargetTextureSize_[1]!==n[1]){this.renderTargetTextureSize_=n;var i=0,a=t.RGBA,o=0,s=t.RGBA,A=t.UNSIGNED_BYTE,l=null;t.bindTexture(t.TEXTURE_2D,this.renderTargetTexture_),t.texImage2D(t.TEXTURE_2D,i,a,n[0],n[1],o,s,A,l),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.renderTargetTexture_,0)}},r.prototype.apply=function(e,t,n,i){var a=this.getGL(),o=e.size;if(a.bindFramebuffer(a.FRAMEBUFFER,t?t.getFrameBuffer():null),a.activeTexture(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,this.renderTargetTexture_),!t){var s=pe(a.canvas);if(!e.renderTargets[s]){var A=a.getContextAttributes();A&&A.preserveDrawingBuffer&&(a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT)),e.renderTargets[s]=!0}}a.enable(a.BLEND),a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA),a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight),a.bindBuffer(a.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),a.useProgram(this.renderTargetProgram_),a.enableVertexAttribArray(this.renderTargetAttribLocation_),a.vertexAttribPointer(this.renderTargetAttribLocation_,2,a.FLOAT,!1,0,0),a.uniform2f(this.renderTargetUniformLocation_,o[0],o[1]),a.uniform1i(this.renderTargetTextureLocation_,0);var l=e.layerStatesArray[e.layerIndex].opacity;a.uniform1f(this.renderTargetOpacityLocation_,l),this.applyUniforms(e),n&&n(a,e),a.drawArrays(a.TRIANGLES,0,6),i&&i(a,e)},r.prototype.getFrameBuffer=function(){return this.frameBuffer_},r.prototype.applyUniforms=function(e){var t=this.getGL(),n,i=1;this.uniforms_.forEach(function(a){if(n=typeof a.value=="function"?a.value(e):a.value,n instanceof HTMLCanvasElement||n instanceof ImageData)a.texture||(a.texture=t.createTexture()),t.activeTexture(t["TEXTURE".concat(i)]),t.bindTexture(t.TEXTURE_2D,a.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),n instanceof ImageData?t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,n.width,n.height,0,t.UNSIGNED_BYTE,new Uint8Array(n.data)):t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,n),t.uniform1i(a.location,i++);else if(Array.isArray(n))switch(n.length){case 2:t.uniform2f(a.location,n[0],n[1]);return;case 3:t.uniform3f(a.location,n[0],n[1],n[2]);return;case 4:t.uniform4f(a.location,n[0],n[1],n[2],n[3]);return;default:return}else typeof n=="number"&&t.uniform1f(a.location,n)})},r}(),nN=Aat;function P4(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function Q0(r,e){return r[0]=e[0],r[1]=e[1],r[4]=e[2],r[5]=e[3],r[12]=e[4],r[13]=e[5],r}var lat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Pf={PROJECTION_MATRIX:"u_projectionMatrix",OFFSET_SCALE_MATRIX:"u_offsetScaleMatrix",OFFSET_ROTATION_MATRIX:"u_offsetRotateMatrix",TIME:"u_time",ZOOM:"u_zoom",RESOLUTION:"u_resolution"},Yo={UNSIGNED_BYTE:Wit,UNSIGNED_SHORT:qit,UNSIGNED_INT:Zit,FLOAT:R4},k_={};function iN(r){return"shared/"+r}var aN=0;function uat(){var r="unique/"+aN;return aN+=1,r}function cat(r){var e=k_[r];if(!e){var t=document.createElement("canvas");t.style.position="absolute",t.style.left="0",e={users:0,canvas:t},k_[r]=e}return e.users+=1,e.canvas}function hat(r){var e=k_[r];if(e&&(e.users-=1,!(e.users>0))){var t=e.canvas,n=M4(t),i=n.getExtension("WEBGL_lose_context");i&&i.loseContext(),delete k_[r]}}var fat=function(r){lat(e,r);function e(t){var n=r.call(this)||this,i=t||{};n.boundHandleWebGLContextLost_=n.handleWebGLContextLost.bind(n),n.boundHandleWebGLContextRestored_=n.handleWebGLContextRestored.bind(n),n.canvasCacheKey_=i.canvasCacheKey?iN(i.canvasCacheKey):uat(),n.canvas_=cat(n.canvasCacheKey_),n.gl_=M4(n.canvas_),n.bufferCache_={},n.extensionCache_={},n.currentProgram_=null,n.canvas_.addEventListener(Nm.LOST,n.boundHandleWebGLContextLost_),n.canvas_.addEventListener(Nm.RESTORED,n.boundHandleWebGLContextRestored_),n.offsetRotateMatrix_=oi(),n.offsetScaleMatrix_=oi(),n.tmpMat4_=P4(),n.uniformLocations_={},n.attribLocations_={},n.uniforms_=[],i.uniforms&&n.setUniforms(i.uniforms);var a=n.getGL();return n.postProcessPasses_=i.postProcesses?i.postProcesses.map(function(o){return new nN({webGlContext:a,scaleRatio:o.scaleRatio,vertexShader:o.vertexShader,fragmentShader:o.fragmentShader,uniforms:o.uniforms})}):[new nN({webGlContext:a})],n.shaderCompileErrors_=null,n.startTime_=Date.now(),n}return e.prototype.setUniforms=function(t){this.uniforms_=[];for(var n in t)this.uniforms_.push({name:n,value:t[n]});this.uniformLocations_={}},e.prototype.canvasCacheKeyMatches=function(t){return this.canvasCacheKey_===iN(t)},e.prototype.getExtension=function(t){if(t in this.extensionCache_)return this.extensionCache_[t];var n=this.gl_.getExtension(t);return this.extensionCache_[t]=n,n},e.prototype.bindBuffer=function(t){var n=this.getGL(),i=pe(t),a=this.bufferCache_[i];if(!a){var o=n.createBuffer();a={buffer:t,webGlBuffer:o},this.bufferCache_[i]=a}n.bindBuffer(t.getType(),a.webGlBuffer)},e.prototype.flushBufferData=function(t){var n=this.getGL();this.bindBuffer(t),n.bufferData(t.getType(),t.getArray(),t.getUsage())},e.prototype.deleteBuffer=function(t){var n=this.getGL(),i=pe(t),a=this.bufferCache_[i];a&&!n.isContextLost()&&n.deleteBuffer(a.webGlBuffer),delete this.bufferCache_[i]},e.prototype.disposeInternal=function(){this.canvas_.removeEventListener(Nm.LOST,this.boundHandleWebGLContextLost_),this.canvas_.removeEventListener(Nm.RESTORED,this.boundHandleWebGLContextRestored_),hat(this.canvasCacheKey_),delete this.gl_,delete this.canvas_},e.prototype.prepareDraw=function(t,n){var i=this.getGL(),a=this.getCanvas(),o=t.size,s=t.pixelRatio;a.width=o[0]*s,a.height=o[1]*s,a.style.width=o[0]+"px",a.style.height=o[1]+"px",i.useProgram(this.currentProgram_);for(var A=this.postProcessPasses_.length-1;A>=0;A--)this.postProcessPasses_[A].init(t);i.bindTexture(i.TEXTURE_2D,null),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.enable(i.BLEND),i.blendFunc(i.ONE,n?i.ZERO:i.ONE_MINUS_SRC_ALPHA),i.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.prepareDrawToRenderTarget=function(t,n,i){var a=this.getGL(),o=n.getSize();a.bindFramebuffer(a.FRAMEBUFFER,n.getFramebuffer()),a.viewport(0,0,o[0],o[1]),a.bindTexture(a.TEXTURE_2D,n.getTexture()),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.enable(a.BLEND),a.blendFunc(a.ONE,i?a.ZERO:a.ONE_MINUS_SRC_ALPHA),a.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.drawElements=function(t,n){var i=this.getGL();this.getExtension("OES_element_index_uint");var a=i.UNSIGNED_INT,o=4,s=n-t,A=t*o;i.drawElements(i.TRIANGLES,s,a,A)},e.prototype.finalizeDraw=function(t,n,i){for(var a=0,o=this.postProcessPasses_.length;at||t>e.getMaxZoom())return!1;var a=e.getFullTileRange(t);return a?a.containsXY(n,i):!0}var wat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),qe={TILE_TEXTURE_ARRAY:"u_tileTextures",TILE_TRANSFORM:"u_tileTransform",TRANSITION_ALPHA:"u_transitionAlpha",DEPTH:"u_depth",TEXTURE_PIXEL_WIDTH:"u_texturePixelWidth",TEXTURE_PIXEL_HEIGHT:"u_texturePixelHeight",TEXTURE_RESOLUTION:"u_textureResolution",TEXTURE_ORIGIN_X:"u_textureOriginX",TEXTURE_ORIGIN_Y:"u_textureOriginY",RENDER_EXTENT:"u_renderExtent",RESOLUTION:"u_resolution",ZOOM:"u_zoom"},H0={TEXTURE_COORD:"a_textureCoord"},Eat=[{name:H0.TEXTURE_COORD,size:2,type:Yo.FLOAT}],Cat={};function Bat(r){return 2*(1-1/(r+1))-1}function oN(r,e,t){t in r||(r[t]=[]),r[t].push(e)}function RC(r,e){var t=r.layerStatesArray[r.layerIndex];t.extent&&(e=Jo(e,Lo(t.extent,r.viewState.projection)));var n=t.layer.getRenderSource();if(!n.getWrapX()){var i=n.getTileGridForProjection(r.viewState.projection).getExtent();i&&(e=Jo(e,i))}return e}function MC(r,e){return"".concat(r.getKey(),",").concat(Bg(e))}var Tat=function(r){wat(e,r);function e(t,n){var i=r.call(this,t,{uniforms:n.uniforms})||this;i.renderComplete=!1,i.tileTransform_=oi(),i.tempMat4_=P4(),i.tempTileRange_=new BF(0,0,0,0),i.tempTileCoord_=Cg(0,0,0),i.tempSize_=[0,0],i.program_,i.vertexShader_=n.vertexShader,i.fragmentShader_=n.fragmentShader,i.indices_=new Hv(hw,SF),i.indices_.fromArray([0,1,3,1,2,3]);var a=n.cacheSize!==void 0?n.cacheSize:512;return i.tileTextureCache_=new O4(a),i.paletteTextures_=n.paletteTextures||[],i.frameState_=null,i}return e.prototype.reset=function(t){r.prototype.reset.call(this,{uniforms:t.uniforms}),this.vertexShader_=t.vertexShader,this.fragmentShader_=t.fragmentShader,this.paletteTextures_=t.paletteTextures||[],this.helper&&(this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_))},e.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.helper.flushBufferData(this.indices_)},e.prototype.isDrawableTile_=function(t){var n=this.getLayer(),i=t.getState(),a=n.getUseInterimTilesOnError();return i==ge.LOADED||i==ge.EMPTY||i==ge.ERROR&&!a},e.prototype.prepareFrameInternal=function(t){var n=this.getLayer(),i=n.getRenderSource();return!i||Vp(RC(t,t.extent))?!1:i.getState()===Da.READY},e.prototype.enqueueTiles=function(t,n,i,a){var o=t.viewState,s=this.getLayer(),A=s.getRenderSource(),l=A.getTileGridForProjection(o.projection),u=A.getTilePixelRatio(t.pixelRatio),c=A.getGutterForProjection(o.projection),h=pe(A);h in t.wantedTiles||(t.wantedTiles[h]={});for(var f=t.wantedTiles[h],p=this.tileTextureCache_,v=Math.max(i-s.getPreload(),l.getMinZoom(),s.getMinZoom()),m=i;m>=v;--m)for(var g=l.getTileRangeForExtentAndZ(n,m,this.tempTileRange_),_=l.getResolution(m),E=g.minX;E<=g.maxX;++E)for(var B=g.minY;B<=g.maxY;++B){var L=Cg(m,E,B,this.tempTileCoord_),O=MC(A,L),b=void 0,T=void 0;if(p.containsKey(O)&&(b=p.get(O),T=b.tile),!b||b.tile.key!==A.getKey())if(T=A.getTile(m,E,B,t.pixelRatio,o.projection),!b)b=new aat({tile:T,grid:l,helper:this.helper,tilePixelRatio:u,gutter:c}),p.set(O,b);else if(this.isDrawableTile_(T))b.setTile(T);else{var I=T.getInterimTile();b.setTile(I)}oN(a,b,m);var M=T.getKey();f[M]=!0,T.getState()===ge.IDLE&&(t.tileQueue.isKeyQueued(M)||t.tileQueue.enqueue([T,h,l.getTileCoordCenter(L),_]))}},e.prototype.renderFrame=function(t){this.frameState_=t,this.renderComplete=!0;var n=this.helper.getGL();this.preRender(n,t);var i=t.viewState,a=this.getLayer(),o=a.getRenderSource(),s=o.getTileGridForProjection(i.projection),A=RC(t,t.extent),l=s.getZForResolution(i.resolution,o.zDirection),u={};if(t.nextExtent){var c=s.getZForResolution(i.nextResolution,o.zDirection),h=RC(t,t.nextExtent);this.enqueueTiles(t,h,c,u)}this.enqueueTiles(t,A,l,u);for(var f={},p=pe(this),v=t.time,m=!1,g=u[l],_=0,E=g.length;_=M;--x){var S=this.findAltTiles_(s,O,x,u);if(S)break}}this.helper.useProgram(this.program_),this.helper.prepareDraw(t,!m);for(var N=Object.keys(u).map(Number).sort(Nu),P=i.center[0],X=i.center[1],z=0,tt=N.length;z=u.getMinZoom();--f){var p=u.getTileCoordForCoordAndZ(o,f),v=MC(l,p);if(h.containsKey(v)){var m=h.get(v);if(m.loaded){var g=u.getOrigin(f),_=Pi(u.getTileSize(f)),E=u.getResolution(f),B=(o[0]-g[0])/E-p[1]*_[0],L=(g[1]-o[1])/E-p[2]*_[1];return m.getPixelData(B,L)}}}return null},e.prototype.findAltTiles_=function(t,n,i,a){var o=t.getTileRangeForTileCoordAndZ(n,i,this.tempTileRange_);if(!o)return!1;for(var s=!0,A=this.tileTextureCache_,l=this.getLayer().getRenderSource(),u=o.minX;u<=o.maxX;++u)for(var c=o.minY;c<=o.maxY;++c){var h=MC(l,[i,u,c]),f=!1;if(A.containsKey(h)){var p=A.get(h);p.loaded&&(oN(a,p,i),f=!0)}f||(s=!1)}return s},e.prototype.removeHelper=function(){if(this.helper){var t=this.tileTextureCache_;t.forEach(function(n){return n.dispose()}),t.clear()}r.prototype.removeHelper.call(this)},e.prototype.disposeInternal=function(){var t=this.helper;if(t){var n=t.getGL();n.deleteProgram(this.program_),delete this.program_,t.deleteBuffer(this.indices_)}r.prototype.disposeInternal.call(this),delete this.indices_,delete this.tileTextureCache_,delete this.frameState_},e}(D4),Sat=Tat,xat=function(){function r(e,t){this.name=e,this.data=t,this.texture_=null}return r.prototype.getTexture=function(e){if(!this.texture_){var t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,this.data.length/4,1,0,e.RGBA,e.UNSIGNED_BYTE,this.data),this.texture_=t}return this.texture_},r}(),bat=xat,Jt={NUMBER:1,STRING:2,COLOR:4,BOOLEAN:8,NUMBER_ARRAY:16,ANY:31,NONE:0},nr={};function cA(r){if(typeof r=="number")return Jt.NUMBER;if(typeof r=="boolean")return Jt.BOOLEAN;if(typeof r=="string")return $Y(r)?Jt.COLOR|Jt.STRING:Jt.STRING;if(!Array.isArray(r))throw new Error("Unhandled value type: ".concat(JSON.stringify(r)));var e=r,t=e.every(function(i){return typeof i=="number"});if(t)return e.length===3||e.length===4?Jt.COLOR|Jt.NUMBER_ARRAY:Jt.NUMBER_ARRAY;if(typeof e[0]!="string")throw new Error("Expected an expression operator but received: ".concat(JSON.stringify(e)));var n=nr[e[0]];if(n===void 0)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(e)));return n.getReturnType(e.slice(1))}function Iat(r){return k6(r)%1===0}function pw(r){var e=r.toString();return e.indexOf(".")===-1?e+".0":e}function H4(r){if(r.length<2||r.length>4)throw new Error("`formatArray` can only output `vec2`, `vec3` or `vec4` arrays.");return"vec".concat(r.length,"(").concat(r.map(pw).join(", "),")")}function Fat(r){var e=Du(r).slice();return e.length<4&&e.push(1),H4(e.map(function(t,n){return n<3?t/255:t}))}function $_(r,e){return r.stringLiteralsMap[e]===void 0&&(r.stringLiteralsMap[e]=Object.keys(r.stringLiteralsMap).length),r.stringLiteralsMap[e]}function Lat(r,e){return pw($_(r,e))}function Ae(r,e,t){if(Array.isArray(e)&&typeof e[0]=="string"){var n=nr[e[0]];if(n===void 0)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(e)));return n.toGlsl(r,e.slice(1),t)}var i=cA(e);if((i&Jt.NUMBER)>0)return pw(e);if((i&Jt.BOOLEAN)>0)return e.toString();if((i&Jt.STRING)>0&&(t===void 0||t==Jt.STRING))return Lat(r,e.toString());if((i&Jt.COLOR)>0&&(t===void 0||t==Jt.COLOR))return Fat(e);if((i&Jt.NUMBER_ARRAY)>0)return H4(e);throw new Error("Unexpected expression ".concat(e," (expected type ").concat(t,")"))}function G4(r){if(!(cA(r)&Jt.NUMBER))throw new Error("A numeric value was expected, got ".concat(JSON.stringify(r)," instead"))}function ui(r){for(var e=0;ee)throw new Error("At most ".concat(e," arguments were expected, got ").concat(r.length," instead"))}function $4(r){if(r.length%2!==0)throw new Error("An even amount of arguments was expected, got ".concat(r," instead"))}function Oat(r){if(r.length%2===0)throw new Error("An odd amount of arguments was expected, got ".concat(r," instead"))}function bF(r,e){if(!Iat(e))throw new Error("Could not infer only one type from the following expression: ".concat(JSON.stringify(r)))}nr.get={getReturnType:function(r){return Jt.ANY},toGlsl:function(r,e){_n(e,1),k4(e[0]);var t=e[0].toString();r.attributes.indexOf(t)===-1&&r.attributes.push(t);var n=r.inFragmentShader?"v_":"a_";return n+t}};function IF(r){return"u_var_"+r}nr.var={getReturnType:function(r){return Jt.ANY},toGlsl:function(r,e){_n(e,1),k4(e[0]);var t=e[0].toString();return r.variables.indexOf(t)===-1&&r.variables.push(t),IF(t)}};var V4="u_paletteTextures";nr.palette={getReturnType:function(r){return Jt.COLOR},toGlsl:function(r,e){_n(e,2),G4(e[0]);var t=Ae(r,e[0]),n=e[1];if(!Array.isArray(n))throw new Error("The second argument of palette must be an array");for(var i=n.length,a=new Uint8Array(i*4),o=0;o0))){var t=e.canvas,n=M4(t),i=n.getExtension("WEBGL_lose_context");i&&i.loseContext(),delete k_[r]}}var vat=function(r){hat(e,r);function e(t){var n=r.call(this)||this,i=t||{};n.boundHandleWebGLContextLost_=n.handleWebGLContextLost.bind(n),n.boundHandleWebGLContextRestored_=n.handleWebGLContextRestored.bind(n),n.canvasCacheKey_=i.canvasCacheKey?aN(i.canvasCacheKey):fat(),n.canvas_=pat(n.canvasCacheKey_),n.gl_=M4(n.canvas_),n.bufferCache_={},n.extensionCache_={},n.currentProgram_=null,n.canvas_.addEventListener(Nm.LOST,n.boundHandleWebGLContextLost_),n.canvas_.addEventListener(Nm.RESTORED,n.boundHandleWebGLContextRestored_),n.offsetRotateMatrix_=si(),n.offsetScaleMatrix_=si(),n.tmpMat4_=P4(),n.uniformLocations_={},n.attribLocations_={},n.uniforms_=[],i.uniforms&&n.setUniforms(i.uniforms);var a=n.getGL();return n.postProcessPasses_=i.postProcesses?i.postProcesses.map(function(o){return new iN({webGlContext:a,scaleRatio:o.scaleRatio,vertexShader:o.vertexShader,fragmentShader:o.fragmentShader,uniforms:o.uniforms})}):[new iN({webGlContext:a})],n.shaderCompileErrors_=null,n.startTime_=Date.now(),n}return e.prototype.setUniforms=function(t){this.uniforms_=[];for(var n in t)this.uniforms_.push({name:n,value:t[n]});this.uniformLocations_={}},e.prototype.canvasCacheKeyMatches=function(t){return this.canvasCacheKey_===aN(t)},e.prototype.getExtension=function(t){if(t in this.extensionCache_)return this.extensionCache_[t];var n=this.gl_.getExtension(t);return this.extensionCache_[t]=n,n},e.prototype.bindBuffer=function(t){var n=this.getGL(),i=pe(t),a=this.bufferCache_[i];if(!a){var o=n.createBuffer();a={buffer:t,webGlBuffer:o},this.bufferCache_[i]=a}n.bindBuffer(t.getType(),a.webGlBuffer)},e.prototype.flushBufferData=function(t){var n=this.getGL();this.bindBuffer(t),n.bufferData(t.getType(),t.getArray(),t.getUsage())},e.prototype.deleteBuffer=function(t){var n=this.getGL(),i=pe(t),a=this.bufferCache_[i];a&&!n.isContextLost()&&n.deleteBuffer(a.webGlBuffer),delete this.bufferCache_[i]},e.prototype.disposeInternal=function(){this.canvas_.removeEventListener(Nm.LOST,this.boundHandleWebGLContextLost_),this.canvas_.removeEventListener(Nm.RESTORED,this.boundHandleWebGLContextRestored_),dat(this.canvasCacheKey_),delete this.gl_,delete this.canvas_},e.prototype.prepareDraw=function(t,n){var i=this.getGL(),a=this.getCanvas(),o=t.size,s=t.pixelRatio;a.width=o[0]*s,a.height=o[1]*s,a.style.width=o[0]+"px",a.style.height=o[1]+"px",i.useProgram(this.currentProgram_);for(var A=this.postProcessPasses_.length-1;A>=0;A--)this.postProcessPasses_[A].init(t);i.bindTexture(i.TEXTURE_2D,null),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.enable(i.BLEND),i.blendFunc(i.ONE,n?i.ZERO:i.ONE_MINUS_SRC_ALPHA),i.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.prepareDrawToRenderTarget=function(t,n,i){var a=this.getGL(),o=n.getSize();a.bindFramebuffer(a.FRAMEBUFFER,n.getFramebuffer()),a.viewport(0,0,o[0],o[1]),a.bindTexture(a.TEXTURE_2D,n.getTexture()),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.enable(a.BLEND),a.blendFunc(a.ONE,i?a.ZERO:a.ONE_MINUS_SRC_ALPHA),a.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.drawElements=function(t,n){var i=this.getGL();this.getExtension("OES_element_index_uint");var a=i.UNSIGNED_INT,o=4,s=n-t,A=t*o;i.drawElements(i.TRIANGLES,s,a,A)},e.prototype.finalizeDraw=function(t,n,i){for(var a=0,o=this.postProcessPasses_.length;at||t>e.getMaxZoom())return!1;var a=e.getFullTileRange(t);return a?a.containsXY(n,i):!0}var Bat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),qe={TILE_TEXTURE_ARRAY:"u_tileTextures",TILE_TRANSFORM:"u_tileTransform",TRANSITION_ALPHA:"u_transitionAlpha",DEPTH:"u_depth",TEXTURE_PIXEL_WIDTH:"u_texturePixelWidth",TEXTURE_PIXEL_HEIGHT:"u_texturePixelHeight",TEXTURE_RESOLUTION:"u_textureResolution",TEXTURE_ORIGIN_X:"u_textureOriginX",TEXTURE_ORIGIN_Y:"u_textureOriginY",RENDER_EXTENT:"u_renderExtent",RESOLUTION:"u_resolution",ZOOM:"u_zoom"},H0={TEXTURE_COORD:"a_textureCoord"},Tat=[{name:H0.TEXTURE_COORD,size:2,type:Xo.FLOAT}],bat={};function Sat(r){return 2*(1-1/(r+1))-1}function sN(r,e,t){t in r||(r[t]=[]),r[t].push(e)}function RC(r,e){var t=r.layerStatesArray[r.layerIndex];t.extent&&(e=ts(e,Oo(t.extent,r.viewState.projection)));var n=t.layer.getRenderSource();if(!n.getWrapX()){var i=n.getTileGridForProjection(r.viewState.projection).getExtent();i&&(e=ts(e,i))}return e}function MC(r,e){return"".concat(r.getKey(),",").concat(Bg(e))}var xat=function(r){Bat(e,r);function e(t,n){var i=r.call(this,t,{uniforms:n.uniforms})||this;i.renderComplete=!1,i.tileTransform_=si(),i.tempMat4_=P4(),i.tempTileRange_=new TF(0,0,0,0),i.tempTileCoord_=Cg(0,0,0),i.tempSize_=[0,0],i.program_,i.vertexShader_=n.vertexShader,i.fragmentShader_=n.fragmentShader,i.indices_=new Hv(hw,SF),i.indices_.fromArray([0,1,3,1,2,3]);var a=n.cacheSize!==void 0?n.cacheSize:512;return i.tileTextureCache_=new O4(a),i.paletteTextures_=n.paletteTextures||[],i.frameState_=null,i}return e.prototype.reset=function(t){r.prototype.reset.call(this,{uniforms:t.uniforms}),this.vertexShader_=t.vertexShader,this.fragmentShader_=t.fragmentShader,this.paletteTextures_=t.paletteTextures||[],this.helper&&(this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_))},e.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.helper.flushBufferData(this.indices_)},e.prototype.isDrawableTile_=function(t){var n=this.getLayer(),i=t.getState(),a=n.getUseInterimTilesOnError();return i==ge.LOADED||i==ge.EMPTY||i==ge.ERROR&&!a},e.prototype.prepareFrameInternal=function(t){var n=this.getLayer(),i=n.getRenderSource();return!i||Vp(RC(t,t.extent))?!1:i.getState()===Qa.READY},e.prototype.enqueueTiles=function(t,n,i,a){var o=t.viewState,s=this.getLayer(),A=s.getRenderSource(),l=A.getTileGridForProjection(o.projection),u=A.getTilePixelRatio(t.pixelRatio),c=A.getGutterForProjection(o.projection),h=pe(A);h in t.wantedTiles||(t.wantedTiles[h]={});for(var f=t.wantedTiles[h],p=this.tileTextureCache_,v=Math.max(i-s.getPreload(),l.getMinZoom(),s.getMinZoom()),m=i;m>=v;--m)for(var g=l.getTileRangeForExtentAndZ(n,m,this.tempTileRange_),_=l.getResolution(m),E=g.minX;E<=g.maxX;++E)for(var B=g.minY;B<=g.maxY;++B){var L=Cg(m,E,B,this.tempTileCoord_),O=MC(A,L),x=void 0,T=void 0;if(p.containsKey(O)&&(x=p.get(O),T=x.tile),!x||x.tile.key!==A.getKey())if(T=A.getTile(m,E,B,t.pixelRatio,o.projection),!x)x=new Aat({tile:T,grid:l,helper:this.helper,tilePixelRatio:u,gutter:c}),p.set(O,x);else if(this.isDrawableTile_(T))x.setTile(T);else{var I=T.getInterimTile();x.setTile(I)}sN(a,x,m);var M=T.getKey();f[M]=!0,T.getState()===ge.IDLE&&(t.tileQueue.isKeyQueued(M)||t.tileQueue.enqueue([T,h,l.getTileCoordCenter(L),_]))}},e.prototype.renderFrame=function(t){this.frameState_=t,this.renderComplete=!0;var n=this.helper.getGL();this.preRender(n,t);var i=t.viewState,a=this.getLayer(),o=a.getRenderSource(),s=o.getTileGridForProjection(i.projection),A=RC(t,t.extent),l=s.getZForResolution(i.resolution,o.zDirection),u={};if(t.nextExtent){var c=s.getZForResolution(i.nextResolution,o.zDirection),h=RC(t,t.nextExtent);this.enqueueTiles(t,h,c,u)}this.enqueueTiles(t,A,l,u);for(var f={},p=pe(this),v=t.time,m=!1,g=u[l],_=0,E=g.length;_=M;--S){var b=this.findAltTiles_(s,O,S,u);if(b)break}}this.helper.useProgram(this.program_),this.helper.prepareDraw(t,!m);for(var N=Object.keys(u).map(Number).sort(Nu),P=i.center[0],X=i.center[1],z=0,tt=N.length;z=u.getMinZoom();--f){var p=u.getTileCoordForCoordAndZ(o,f),v=MC(l,p);if(h.containsKey(v)){var m=h.get(v);if(m.loaded){var g=u.getOrigin(f),_=Ui(u.getTileSize(f)),E=u.getResolution(f),B=(o[0]-g[0])/E-p[1]*_[0],L=(g[1]-o[1])/E-p[2]*_[1];return m.getPixelData(B,L)}}}return null},e.prototype.findAltTiles_=function(t,n,i,a){var o=t.getTileRangeForTileCoordAndZ(n,i,this.tempTileRange_);if(!o)return!1;for(var s=!0,A=this.tileTextureCache_,l=this.getLayer().getRenderSource(),u=o.minX;u<=o.maxX;++u)for(var c=o.minY;c<=o.maxY;++c){var h=MC(l,[i,u,c]),f=!1;if(A.containsKey(h)){var p=A.get(h);p.loaded&&(sN(a,p,i),f=!0)}f||(s=!1)}return s},e.prototype.removeHelper=function(){if(this.helper){var t=this.tileTextureCache_;t.forEach(function(n){return n.dispose()}),t.clear()}r.prototype.removeHelper.call(this)},e.prototype.disposeInternal=function(){var t=this.helper;if(t){var n=t.getGL();n.deleteProgram(this.program_),delete this.program_,t.deleteBuffer(this.indices_)}r.prototype.disposeInternal.call(this),delete this.indices_,delete this.tileTextureCache_,delete this.frameState_},e}(D4),Iat=xat,Fat=function(){function r(e,t){this.name=e,this.data=t,this.texture_=null}return r.prototype.getTexture=function(e){if(!this.texture_){var t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,this.data.length/4,1,0,e.RGBA,e.UNSIGNED_BYTE,this.data),this.texture_=t}return this.texture_},r}(),Lat=Fat,Jt={NUMBER:1,STRING:2,COLOR:4,BOOLEAN:8,NUMBER_ARRAY:16,ANY:31,NONE:0},nr={};function hA(r){if(typeof r=="number")return Jt.NUMBER;if(typeof r=="boolean")return Jt.BOOLEAN;if(typeof r=="string")return KY(r)?Jt.COLOR|Jt.STRING:Jt.STRING;if(!Array.isArray(r))throw new Error("Unhandled value type: ".concat(JSON.stringify(r)));var e=r,t=e.every(function(i){return typeof i=="number"});if(t)return e.length===3||e.length===4?Jt.COLOR|Jt.NUMBER_ARRAY:Jt.NUMBER_ARRAY;if(typeof e[0]!="string")throw new Error("Expected an expression operator but received: ".concat(JSON.stringify(e)));var n=nr[e[0]];if(n===void 0)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(e)));return n.getReturnType(e.slice(1))}function Oat(r){return k6(r)%1===0}function pw(r){var e=r.toString();return e.indexOf(".")===-1?e+".0":e}function H4(r){if(r.length<2||r.length>4)throw new Error("`formatArray` can only output `vec2`, `vec3` or `vec4` arrays.");return"vec".concat(r.length,"(").concat(r.map(pw).join(", "),")")}function Rat(r){var e=Du(r).slice();return e.length<4&&e.push(1),H4(e.map(function(t,n){return n<3?t/255:t}))}function $_(r,e){return r.stringLiteralsMap[e]===void 0&&(r.stringLiteralsMap[e]=Object.keys(r.stringLiteralsMap).length),r.stringLiteralsMap[e]}function Mat(r,e){return pw($_(r,e))}function Ae(r,e,t){if(Array.isArray(e)&&typeof e[0]=="string"){var n=nr[e[0]];if(n===void 0)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(e)));return n.toGlsl(r,e.slice(1),t)}var i=hA(e);if((i&Jt.NUMBER)>0)return pw(e);if((i&Jt.BOOLEAN)>0)return e.toString();if((i&Jt.STRING)>0&&(t===void 0||t==Jt.STRING))return Mat(r,e.toString());if((i&Jt.COLOR)>0&&(t===void 0||t==Jt.COLOR))return Rat(e);if((i&Jt.NUMBER_ARRAY)>0)return H4(e);throw new Error("Unexpected expression ".concat(e," (expected type ").concat(t,")"))}function G4(r){if(!(hA(r)&Jt.NUMBER))throw new Error("A numeric value was expected, got ".concat(JSON.stringify(r)," instead"))}function ci(r){for(var e=0;ee)throw new Error("At most ".concat(e," arguments were expected, got ").concat(r.length," instead"))}function $4(r){if(r.length%2!==0)throw new Error("An even amount of arguments was expected, got ".concat(r," instead"))}function Nat(r){if(r.length%2===0)throw new Error("An odd amount of arguments was expected, got ".concat(r," instead"))}function IF(r,e){if(!Oat(e))throw new Error("Could not infer only one type from the following expression: ".concat(JSON.stringify(r)))}nr.get={getReturnType:function(r){return Jt.ANY},toGlsl:function(r,e){_n(e,1),k4(e[0]);var t=e[0].toString();r.attributes.indexOf(t)===-1&&r.attributes.push(t);var n=r.inFragmentShader?"v_":"a_";return n+t}};function FF(r){return"u_var_"+r}nr.var={getReturnType:function(r){return Jt.ANY},toGlsl:function(r,e){_n(e,1),k4(e[0]);var t=e[0].toString();return r.variables.indexOf(t)===-1&&r.variables.push(t),FF(t)}};var V4="u_paletteTextures";nr.palette={getReturnType:function(r){return Jt.COLOR},toGlsl:function(r,e){_n(e,2),G4(e[0]);var t=Ae(r,e[0]),n=e[1];if(!Array.isArray(n))throw new Error("The second argument of palette must be an array");for(var i=n.length,a=new Uint8Array(i*4),o=0;o0&&(v=1e5/Math.pow(10,h) float dy = yOffset / `).concat(qe.TEXTURE_PIXEL_HEIGHT,`; `).concat(n,` } - `)}var l=Ae(r,t),u=Ae(r,e[1]||0),c=Ae(r,e[2]||0);return"".concat(NC,"(").concat(l,", ").concat(u,", ").concat(c,")")}};nr.time={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,0),"u_time"}};nr.zoom={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,0),"u_zoom"}};nr.resolution={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,0),"u_resolution"}};nr["*"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," * ").concat(Ae(r,e[1]),")")}};nr["/"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," / ").concat(Ae(r,e[1]),")")}};nr["+"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," + ").concat(Ae(r,e[1]),")")}};nr["-"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," - ").concat(Ae(r,e[1]),")")}};nr.clamp={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){_n(e,3),ui(e);var t=Ae(r,e[1]),n=Ae(r,e[2]);return"clamp(".concat(Ae(r,e[0]),", ").concat(t,", ").concat(n,")")}};nr["%"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ui(e),"mod(".concat(Ae(r,e[0]),", ").concat(Ae(r,e[1]),")")}};nr["^"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ui(e),"pow(".concat(Ae(r,e[0]),", ").concat(Ae(r,e[1]),")")}};nr.abs={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ui(e),"abs(".concat(Ae(r,e[0]),")")}};nr.floor={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ui(e),"floor(".concat(Ae(r,e[0]),")")}};nr.round={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ui(e),"floor(".concat(Ae(r,e[0])," + 0.5)")}};nr.ceil={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ui(e),"ceil(".concat(Ae(r,e[0]),")")}};nr.sin={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ui(e),"sin(".concat(Ae(r,e[0]),")")}};nr.cos={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ui(e),"cos(".concat(Ae(r,e[0]),")")}};nr.atan={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return qu(e,1),dw(e,2),ui(e),e.length===2?"atan(".concat(Ae(r,e[0]),", ").concat(Ae(r,e[1]),")"):"atan(".concat(Ae(r,e[0]),")")}};nr[">"]={getReturnType:function(r){return Jt.BOOLEAN},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," > ").concat(Ae(r,e[1]),")")}};nr[">="]={getReturnType:function(r){return Jt.BOOLEAN},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," >= ").concat(Ae(r,e[1]),")")}};nr["<"]={getReturnType:function(r){return Jt.BOOLEAN},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," < ").concat(Ae(r,e[1]),")")}};nr["<="]={getReturnType:function(r){return Jt.BOOLEAN},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," <= ").concat(Ae(r,e[1]),")")}};function j4(r){return{getReturnType:function(e){return Jt.BOOLEAN},toGlsl:function(e,t){_n(t,2);for(var n=Jt.ANY,i=0;i= ").concat(t," && ").concat(i," <= ").concat(n,")")}};nr.array={getReturnType:function(r){return Jt.NUMBER_ARRAY},toGlsl:function(r,e){qu(e,2),dw(e,4),ui(e);var t=e.map(function(n){return Ae(r,n,Jt.NUMBER)});return"vec".concat(e.length,"(").concat(t.join(", "),")")}};nr.color={getReturnType:function(r){return Jt.COLOR},toGlsl:function(r,e){qu(e,3),dw(e,4),ui(e);var t=e;e.length===3&&t.push(1);var n=e.map(function(i,a){return Ae(r,i,Jt.NUMBER)+(a<3?" / 255.0":"")});return"vec".concat(e.length,"(").concat(n.join(", "),")")}};nr.interpolate={getReturnType:function(r){for(var e=Jt.COLOR|Jt.NUMBER,t=3;t=1;A-=2){var l=Ae(r,e[A]),u=Ae(r,e[A+1],i);s="(".concat(a," == ").concat(l," ? ").concat(u," : ").concat(s||o,")")}return s}};nr.case={getReturnType:function(r){for(var e=Jt.ANY,t=1;t=0;a-=2){var A=Ae(r,e[a]),l=Ae(r,e[a+1],i);s="(".concat(A," ? ").concat(l," : ").concat(s||o,")")}return s}};var Rat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();function sN(r,e){var t=` + `)}var l=Ae(r,t),u=Ae(r,e[1]||0),c=Ae(r,e[2]||0);return"".concat(NC,"(").concat(l,", ").concat(u,", ").concat(c,")")}};nr.time={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,0),"u_time"}};nr.zoom={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,0),"u_zoom"}};nr.resolution={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,0),"u_resolution"}};nr["*"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ci(e),"(".concat(Ae(r,e[0])," * ").concat(Ae(r,e[1]),")")}};nr["/"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ci(e),"(".concat(Ae(r,e[0])," / ").concat(Ae(r,e[1]),")")}};nr["+"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ci(e),"(".concat(Ae(r,e[0])," + ").concat(Ae(r,e[1]),")")}};nr["-"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ci(e),"(".concat(Ae(r,e[0])," - ").concat(Ae(r,e[1]),")")}};nr.clamp={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){_n(e,3),ci(e);var t=Ae(r,e[1]),n=Ae(r,e[2]);return"clamp(".concat(Ae(r,e[0]),", ").concat(t,", ").concat(n,")")}};nr["%"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ci(e),"mod(".concat(Ae(r,e[0]),", ").concat(Ae(r,e[1]),")")}};nr["^"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ci(e),"pow(".concat(Ae(r,e[0]),", ").concat(Ae(r,e[1]),")")}};nr.abs={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ci(e),"abs(".concat(Ae(r,e[0]),")")}};nr.floor={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ci(e),"floor(".concat(Ae(r,e[0]),")")}};nr.round={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ci(e),"floor(".concat(Ae(r,e[0])," + 0.5)")}};nr.ceil={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ci(e),"ceil(".concat(Ae(r,e[0]),")")}};nr.sin={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ci(e),"sin(".concat(Ae(r,e[0]),")")}};nr.cos={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ci(e),"cos(".concat(Ae(r,e[0]),")")}};nr.atan={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return qu(e,1),dw(e,2),ci(e),e.length===2?"atan(".concat(Ae(r,e[0]),", ").concat(Ae(r,e[1]),")"):"atan(".concat(Ae(r,e[0]),")")}};nr[">"]={getReturnType:function(r){return Jt.BOOLEAN},toGlsl:function(r,e){return _n(e,2),ci(e),"(".concat(Ae(r,e[0])," > ").concat(Ae(r,e[1]),")")}};nr[">="]={getReturnType:function(r){return Jt.BOOLEAN},toGlsl:function(r,e){return _n(e,2),ci(e),"(".concat(Ae(r,e[0])," >= ").concat(Ae(r,e[1]),")")}};nr["<"]={getReturnType:function(r){return Jt.BOOLEAN},toGlsl:function(r,e){return _n(e,2),ci(e),"(".concat(Ae(r,e[0])," < ").concat(Ae(r,e[1]),")")}};nr["<="]={getReturnType:function(r){return Jt.BOOLEAN},toGlsl:function(r,e){return _n(e,2),ci(e),"(".concat(Ae(r,e[0])," <= ").concat(Ae(r,e[1]),")")}};function j4(r){return{getReturnType:function(e){return Jt.BOOLEAN},toGlsl:function(e,t){_n(t,2);for(var n=Jt.ANY,i=0;i= ").concat(t," && ").concat(i," <= ").concat(n,")")}};nr.array={getReturnType:function(r){return Jt.NUMBER_ARRAY},toGlsl:function(r,e){qu(e,2),dw(e,4),ci(e);var t=e.map(function(n){return Ae(r,n,Jt.NUMBER)});return"vec".concat(e.length,"(").concat(t.join(", "),")")}};nr.color={getReturnType:function(r){return Jt.COLOR},toGlsl:function(r,e){qu(e,3),dw(e,4),ci(e);var t=e;e.length===3&&t.push(1);var n=e.map(function(i,a){return Ae(r,i,Jt.NUMBER)+(a<3?" / 255.0":"")});return"vec".concat(e.length,"(").concat(n.join(", "),")")}};nr.interpolate={getReturnType:function(r){for(var e=Jt.COLOR|Jt.NUMBER,t=3;t=1;A-=2){var l=Ae(r,e[A]),u=Ae(r,e[A+1],i);s="(".concat(a," == ").concat(l," ? ").concat(u," : ").concat(s||o,")")}return s}};nr.case={getReturnType:function(r){for(var e=Jt.ANY,t=1;t=0;a-=2){var A=Ae(r,e[a]),l=Ae(r,e[a+1],i);s="(".concat(A," ? ").concat(l," : ").concat(s||o,")")}return s}};var Pat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();function AN(r,e){var t=` attribute vec2 `.concat(H0.TEXTURE_COORD,`; uniform mat4 `).concat(qe.TILE_TRANSFORM,`; uniform float `).concat(qe.TEXTURE_PIXEL_WIDTH,`; @@ -495,7 +495,7 @@ northing meters`+r;var h=c/2,f=0,p=0,v,m,g,_,E;return h>0&&(v=1e5/Math.pow(10,h) sb, sb, sb + saturation ); color.rgb = clamp(saturationMatrix * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0)); - `))}if(r.gamma!==void 0){var l=Ae(n,r.gamma,Jt.NUMBER);i.push("color.rgb = pow(color.rgb, vec3(1.0 / ".concat(l,"));"))}if(r.brightness!==void 0){var u=Ae(n,r.brightness,Jt.NUMBER);i.push("color.rgb = clamp(color.rgb + ".concat(u,", vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}var c={},h=n.variables.length;if(h>1&&!r.variables)throw new Error("Missing variables in style (expected ".concat(n.variables,")"));for(var f=function(E){var B=n.variables[E];if(!(B in r.variables))throw new Error("Missing '".concat(B,"' in style variables"));var L=IF(B);c[L]=function(){var O=r.variables[B];return typeof O=="string"&&(O=$_(n,O)),O!==void 0?O:-9999999}},p=0;p1&&!r.variables)throw new Error("Missing variables in style (expected ".concat(n.variables,")"));for(var f=function(E){var B=n.variables[E];if(!(B in r.variables))throw new Error("Missing '".concat(B,"' in style variables"));var L=FF(B);c[L]=function(){var O=r.variables[B];return typeof O=="string"&&(O=$_(n,O)),O!==void 0?O:-9999999}},p=0;p0&&(v=1e5/Math.pow(10,h) gl_FragColor = color; gl_FragColor.rgb *= gl_FragColor.a; gl_FragColor *= `).concat(qe.TRANSITION_ALPHA,`; - }`);return{vertexShader:t,fragmentShader:_,uniforms:c,paletteTextures:n.paletteTextures}}var z4=function(r){Rat(e,r);function e(t){var n=this,i=t?de({},t):{},a=i.style||{};delete i.style;var o=i.cacheSize;return delete i.cacheSize,n=r.call(this,i)||this,n.sources_=i.sources,n.renderedSource_=null,n.renderedResolution_=NaN,n.style_=a,n.cacheSize_=o,n.styleVariables_=n.style_.variables||{},n.addChangeListener(Dr.SOURCE,n.handleSourceUpdate_),n}return e.prototype.getSources=function(t,n){var i=this.getSource();return this.sources_?typeof this.sources_=="function"?this.sources_(t,n):this.sources_:i?[i]:[]},e.prototype.getRenderSource=function(){return this.renderedSource_||this.getSource()},e.prototype.getSourceState=function(){var t=this.getRenderSource();return t?t.getState():Da.UNDEFINED},e.prototype.handleSourceUpdate_=function(){this.getSource()&&this.setStyle(this.style_)},e.prototype.getSourceBandCount_=function(){var t=this.getSource();return t&&"bandCount"in t?t.bandCount:4},e.prototype.createRenderer=function(){var t=sN(this.style_,this.getSourceBandCount_());return new Sat(this,{vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms,cacheSize:this.cacheSize_,paletteTextures:t.paletteTextures})},e.prototype.renderSources=function(t,n){for(var i=this.getRenderer(),a,o=0,s=n.length;o.5*a.resolution){var h=this.getSources(t.extent,this.renderedResolution_).filter(function(f){return!o.includes(f)});if(h.length>0)return this.renderSources(t,h)}return c},e.prototype.setStyle=function(t){this.styleVariables_=t.variables||{},this.style_=t;var n=sN(this.style_,this.getSourceBandCount_()),i=this.getRenderer();i.reset({vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,uniforms:n.uniforms,paletteTextures:n.paletteTextures}),this.changed()},e.prototype.updateStyleVariables=function(t){de(this.styleVariables_,t),this.changed()},e}(T4);z4.prototype.dispose;var Mat=z4;const Nat={extends:Ih,name:"ol-webgl-tile-layer",setup(r){const e=Ce("map"),t=Ce("overviewMap",null),{properties:n}=vr(r),i=hr(()=>new Mat(n)),a=()=>{t!=null?(t.value.getOverviewMap().addLayer(i.value),t.value.changed()):e.addLayer(i.value)},o=()=>{t!=null?(t.value.getOverviewMap().removeLayer(i.value),t.value.changed()):e.removeLayer(i.value)};return t!=null&&he(t,()=>{o(),a()}),Ze(()=>{a()}),ir(()=>{o()}),Mr("tileLayer",i),{tileLayer:i}},props:{preload:{type:Number,default:1}}};function Pat(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var hS=le(Nat,[["render",Pat]]),Uat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Dat=function(r){Uat(e,r);function e(t){var n=t||{};return r.call(this,n)||this}return e}(Sh),Qat=Dat,Hat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Gat=function(r){Hat(e,r);function e(t){var n=r.call(this,t)||this;return n.image_=null,n}return e.prototype.getImage=function(){return this.image_?this.image_.getImage():null},e.prototype.prepareFrame=function(t){var n=t.layerStatesArray[t.layerIndex],i=t.pixelRatio,a=t.viewState,o=a.resolution,s=this.getLayer().getSource(),A=t.viewHints,l=t.extent;if(n.extent!==void 0&&(l=Jo(l,Lo(n.extent,a.projection))),!A[gn.ANIMATING]&&!A[gn.INTERACTING]&&!Vp(l))if(s){var u=a.projection,c=s.getImage(l,o,i,u);c&&(this.loadImage(c)?this.image_=c:c.getState()===$e.EMPTY&&(this.image_=null))}else this.image_=null;return!!this.image_},e.prototype.getData=function(t){var n=this.frameState;if(!n)return null;var i=this.getLayer(),a=un(n.pixelToCoordinateTransform,t.slice()),o=i.getExtent();if(o&&!xs(o,a))return null;var s=this.image_.getExtent(),A=this.image_.getImage(),l=Fr(s),u=Math.floor(A.width*((a[0]-s[0])/l));if(u<0||u>=A.width)return null;var c=Ai(s),h=Math.floor(A.height*((s[3]-a[1])/c));return h<0||h>=A.height?null:this.getImageData(A,u,h)},e.prototype.renderFrame=function(t,n){var i=this.image_,a=i.getExtent(),o=i.getResolution(),s=i.getPixelRatio(),A=t.layerStatesArray[t.layerIndex],l=t.pixelRatio,u=t.viewState,c=u.center,h=u.resolution,f=t.size,p=l*o/(h*s),v=Math.round(f[0]*l),m=Math.round(f[1]*l),g=u.rotation;if(g){var _=Math.round(Math.sqrt(v*v+m*m));v=_,m=_}$a(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/l,1/l,g,-v/2,-m/2),Kg(this.inversePixelTransform,this.pixelTransform);var E=FI(this.pixelTransform);this.useContainer(n,E,A.opacity,this.getBackground(t));var B=this.context,L=B.canvas;L.width!=v||L.height!=m?(L.width=v,L.height=m):this.containerReused||B.clearRect(0,0,v,m);var O=!1,b=!0;if(A.extent){var T=Lo(A.extent,u.projection);b=Mn(T,t.extent),O=b&&!Fo(T,t.extent),O&&this.clipUnrotated(B,t,T)}var I=i.getImage(),M=$a(this.tempTransform,v/2,m/2,p,p,0,s*(a[0]-c[0])/o,s*(c[1]-a[3])/o);this.renderedResolution=o*l/s;var x=I.width*M[0],S=I.height*M[3];if(this.getLayer().getSource().getInterpolate()||de(B,Lp),this.preRender(B,t),b&&x>=.5&&S>=.5){var N=M[4],P=M[5],X=A.opacity,z=void 0;X!==1&&(z=B.globalAlpha,B.globalAlpha=X),B.drawImage(I,0,0,+I.width,+I.height,Math.round(N),Math.round(P),Math.round(x),Math.round(S)),X!==1&&(B.globalAlpha=z)}return this.postRender(B,t),O&&B.restore(),de(B,b4),E!==L.style.transform&&(L.style.transform=E),this.container},e}(hF),kat=Gat,$at=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Vat=function(r){$at(e,r);function e(t){return r.call(this,t)||this}return e.prototype.createRenderer=function(){return new kat(this)},e.prototype.getData=function(t){return r.prototype.getData.call(this,t)},e}(Qat),Y4=Vat;const jat={extends:Ih,name:"ol-image-layer",setup(r){const e=Ce("map"),{properties:t}=vr(r),n=new Y4(t);return he(t,()=>{n.setProperties(t)}),Ze(()=>{e.addLayer(n)}),ir(()=>{e.removeLayer(n)}),Mr("imageLayer",n),{imageLayer:n}}};function Kat(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var fS=le(jat,[["render",Kat]]);const zat={extends:Ih,name:"ol-vector-layer",setup(r){const e=Ce("map"),{properties:t}=vr(r),n=hr(()=>new hA(t));return he(t,()=>{n.value.setProperties(t)}),Ze(()=>{e.addLayer(n.value)}),ir(()=>{e.removeLayer(n.value)}),Mr("vectorLayer",n),Mr("stylable",n),{vectorLayer:n}},props:{renderBuffer:{type:Number,default:100},updateWhileAnimating:{type:Boolean,default:!1},style:{type:Function},updateWhileInteracting:{type:Boolean,default:!1}}};function Yat(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var pS=le(zat,[["render",Yat]]),Xat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Wat=function(r){Xat(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.expireCache=function(t){for(;this.canExpireCache();){var n=this.peekLast();if(n.getKey()in t)break;this.pop().release()}},e.prototype.pruneExceptNewestZ=function(){if(this.getCount()!==0){var t=this.peekFirstKey(),n=mat(t),i=n[0];this.forEach(function(a){a.tileCoord[0]!==i&&(this.remove(Bg(a.tileCoord)),a.release())}.bind(this))}},e}(O4),X4=Wat,PC={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"},qat=[0,0,0],Xl=5,Zat=function(){function r(e){this.minZoom=e.minZoom!==void 0?e.minZoom:0,this.resolutions_=e.resolutions,_e(dY(this.resolutions_,function(o,s){return s-o},!0),17);var t;if(!e.origins){for(var n=0,i=this.resolutions_.length-1;n=this.minZoom;){if(this.zoomFactor_===2?(o=Math.floor(o/2),s=Math.floor(s/2),a=pf(o,o,s,s,n)):a=this.getTileRangeForExtentAndZ(A,l,n),t(l,a))return!0;--l}return!1},r.prototype.getExtent=function(){return this.extent_},r.prototype.getMaxZoom=function(){return this.maxZoom},r.prototype.getMinZoom=function(){return this.minZoom},r.prototype.getOrigin=function(e){return this.origin_?this.origin_:this.origins_[e]},r.prototype.getResolution=function(e){return this.resolutions_[e]},r.prototype.getResolutions=function(){return this.resolutions_},r.prototype.getTileCoordChildTileRange=function(e,t,n){if(e[0]this.maxZoom||t0?n:Math.max(o/s[0],a/s[1]),l=i+1,u=new Array(l),c=0;ci.highWaterMark&&(i.highWaterMark=t)},e.prototype.useTile=function(t,n,i,a){},e}(ow),not=function(r){J4(e,r);function e(t,n){var i=r.call(this,t)||this;return i.tile=n,i}return e}(fo),t8=rot;function iot(r,e){var t=/\{z\}/g,n=/\{x\}/g,i=/\{y\}/g,a=/\{-y\}/g;return function(o,s,A){if(o)return r.replace(t,o[0].toString()).replace(n,o[1].toString()).replace(i,o[2].toString()).replace(a,function(){var l=o[0],u=e.getFullTileRange(l);_e(u,55);var c=u.getHeight()-o[2]-1;return c.toString()})}}function aot(r,e){for(var t=r.length,n=new Array(t),i=0;i>=1;return t.join("")}var dot='Terms of Use',vot=function(r){fot(e,r);function e(t){var n=this,i=t.hidpi!==void 0?t.hidpi:!1,a=t.imageSmoothing!==void 0?t.imageSmoothing:!0;t.interpolate!==void 0&&(a=t.interpolate),n=r.call(this,{cacheSize:t.cacheSize,crossOrigin:"anonymous",interpolate:a,opaque:!0,projection:Oe("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:Da.LOADING,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:i?2:1,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,zDirection:t.zDirection})||this,n.hidpi_=i,n.culture_=t.culture!==void 0?t.culture:"en-us",n.maxZoom_=t.maxZoom!==void 0?t.maxZoom:-1,n.apiKey_=t.key,n.imagerySet_=t.imagerySet;var o="https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+n.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+n.apiKey_+"&c="+n.culture_;return hot(o,n.handleImageryMetadataResponse.bind(n),void 0,"jsonp"),n}return e.prototype.getApiKey=function(){return this.apiKey_},e.prototype.getImagerySet=function(){return this.imagerySet_},e.prototype.handleImageryMetadataResponse=function(t){if(t.statusCode!=200||t.statusDescription!="OK"||t.authenticationResultCode!="ValidCredentials"||t.resourceSets.length!=1||t.resourceSets[0].resources.length!=1){this.setState(Da.ERROR);return}var n=t.resourceSets[0].resources[0],i=this.maxZoom_==-1?n.zoomMax:this.maxZoom_,a=this.getProjection(),o=vw(a),s=this.hidpi_?2:1,A=n.imageWidth==n.imageHeight?n.imageWidth/s:[n.imageWidth/s,n.imageHeight/s],l=q4({extent:o,minZoom:n.zoomMin,maxZoom:i,tileSize:A});this.tileGrid=l;var u=this.culture_,c=this.hidpi_;if(this.tileUrlFunction=V_(n.imageUrlSubdomains.map(function(f){var p=[0,0,0],v=n.imageUrl.replace("{subdomain}",f).replace("{culture}",u);return function(m,g,_){if(m){Cg(m[0],m[1],m[2],p);var E=v;return c&&(E+="&dpi=d1&device=mobile"),E.replace("{quadkey}",pot(p))}else return}})),n.imageryProviders){var h=fh(Oe("EPSG:4326"),this.getProjection());this.setAttributions(function(f){var p=[],v=f.viewState,m=this.getTileGrid(),g=m.getZForResolution(v.resolution,this.zDirection),_=m.getTileCoordForCoordAndZ(v.center,g),E=_[0];return n.imageryProviders.map(function(B){for(var L=!1,O=B.coverageAreas,b=0,T=O.length;b=I.zoomMin&&E<=I.zoomMax){var M=I.bbox,x=[M[1],M[0],M[3],M[2]],S=MI(x,h);if(Mn(S,f.extent)){L=!0;break}}}L&&p.push(B.attribution)}),p.push(dot),p}.bind(this))}this.setState(Da.READY)},e}(gw),got=vot,yot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),mot=function(r){yot(e,r);function e(t){var n=t||{},i=n.imageSmoothing!==void 0?n.imageSmoothing:!0;n.interpolate!==void 0&&(i=n.interpolate);var a=n.projection!==void 0?n.projection:"EPSG:3857",o=n.tileGrid!==void 0?n.tileGrid:q4({extent:vw(a),maxResolution:n.maxResolution,maxZoom:n.maxZoom,minZoom:n.minZoom,tileSize:n.tileSize});return r.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:i,opaque:n.opaque,projection:a,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:o,tileLoadFunction:n.tileLoadFunction,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:n.tileUrlFunction,url:n.url,urls:n.urls,wrapX:n.wrapX!==void 0?n.wrapX:!0,transition:n.transition,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this}return e}(gw),n8=mot,_ot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),wot=function(r){_ot(e,r);function e(t){var n=r.call(this,{attributions:t.attributions,wrapX:t.wrapX})||this;return n.resolution=void 0,n.distance=t.distance!==void 0?t.distance:20,n.minDistance=t.minDistance||0,n.interpolationRatio=0,n.features=[],n.geometryFunction=t.geometryFunction||function(i){var a=i.getGeometry();return _e(a.getType()==st.POINT,10),a},n.createCustomCluster_=t.createCluster,n.source=null,n.boundRefresh_=n.refresh.bind(n),n.updateDistance(n.distance,n.minDistance),n.setSource(t.source||null),n}return e.prototype.clear=function(t){this.features.length=0,r.prototype.clear.call(this,t)},e.prototype.getDistance=function(){return this.distance},e.prototype.getSource=function(){return this.source},e.prototype.loadFeatures=function(t,n,i){this.source.loadFeatures(t,n,i),n!==this.resolution&&(this.resolution=n,this.refresh())},e.prototype.setDistance=function(t){this.updateDistance(t,this.minDistance)},e.prototype.setMinDistance=function(t){this.updateDistance(this.distance,t)},e.prototype.getMinDistance=function(){return this.minDistance},e.prototype.setSource=function(t){this.source&&this.source.removeEventListener(ye.CHANGE,this.boundRefresh_),this.source=t,t&&t.addEventListener(ye.CHANGE,this.boundRefresh_),this.refresh()},e.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features)},e.prototype.updateDistance=function(t,n){var i=t===0?0:Math.min(n,t)/t,a=t!==this.distance||this.interpolationRatio!==i;this.distance=t,this.minDistance=n,this.interpolationRatio=i,a&&this.refresh()},e.prototype.cluster=function(){if(!(this.resolution===void 0||!this.source))for(var t=_i(),n=this.distance*this.resolution,i=this.source.getFeatures(),a={},o=0,s=i.length;o=0;--a){var o=this.geometryFunction(t[a]);o?W6(i,o.getCoordinates()):t.splice(a,1)}q6(i,1/t.length);var s=Sa(n),A=this.interpolationRatio,l=new fr([i[0]*(1-A)+s[0]*A,i[1]*(1-A)+s[1]*A]);return this.createCustomCluster_?this.createCustomCluster_(l,t):new or({geometry:l,features:t})},e}(_l),i8=wot,Zs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Eot(r){if(r.__esModule)return r;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(t){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}),e}var wa=globalThis&&globalThis.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,i=e.length,a;n1,n=t&&r.imageInfo.profile[1].supports?r.imageInfo.profile[1].supports:[],i=t&&r.imageInfo.profile[1].formats?r.imageInfo.profile[1].formats:[],a=t&&r.imageInfo.profile[1].qualities?r.imageInfo.profile[1].qualities:[];return{url:r.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),sizes:r.imageInfo.sizes===void 0?void 0:r.imageInfo.sizes.map(function(o){return[o.width,o.height]}),tileSize:r.imageInfo.tiles===void 0?void 0:[r.imageInfo.tiles.map(function(o){return o.width})[0],r.imageInfo.tiles.map(function(o){return o.height===void 0?o.width:o.height})[0]],resolutions:r.imageInfo.tiles===void 0?void 0:r.imageInfo.tiles.map(function(o){return o.scaleFactors})[0],supports:wa(wa([],e.supports,!0),n,!0),formats:wa(wa([],e.formats,!0),i,!0),qualities:wa(wa([],e.qualities,!0),a,!0)}}function xot(r){var e=r.getComplianceLevelSupportedFeatures(),t=r.imageInfo.extraFormats===void 0?e.formats:wa(wa([],e.formats,!0),r.imageInfo.extraFormats,!0),n=r.imageInfo.preferredFormats!==void 0&&Array.isArray(r.imageInfo.preferredFormats)&&r.imageInfo.preferredFormats.length>0?r.imageInfo.preferredFormats.filter(function(i){return yi(["jpg","png","gif"],i)}).reduce(function(i,a){return i===void 0&&yi(t,a)?a:i},void 0):void 0;return{url:r.imageInfo.id,sizes:r.imageInfo.sizes===void 0?void 0:r.imageInfo.sizes.map(function(i){return[i.width,i.height]}),tileSize:r.imageInfo.tiles===void 0?void 0:[r.imageInfo.tiles.map(function(i){return i.width})[0],r.imageInfo.tiles.map(function(i){return i.height})[0]],resolutions:r.imageInfo.tiles===void 0?void 0:r.imageInfo.tiles.map(function(i){return i.scaleFactors})[0],supports:r.imageInfo.extraFeatures===void 0?e.supports:wa(wa([],e.supports,!0),r.imageInfo.extraFeatures,!0),formats:t,qualities:r.imageInfo.extraQualities===void 0?e.qualities:wa(wa([],e.qualities,!0),r.imageInfo.extraQualities,!0),preferredFormat:n}}var yw={};yw[Pa.VERSION1]=Tot;yw[Pa.VERSION2]=Sot;yw[Pa.VERSION3]=xot;var bot=function(){function r(e){this.setImageInfo(e)}return r.prototype.setImageInfo=function(e){typeof e=="string"?this.imageInfo=JSON.parse(e):this.imageInfo=e},r.prototype.getImageApiVersion=function(){if(this.imageInfo!==void 0){var e=this.imageInfo["@context"]||"ol-no-context";typeof e=="string"&&(e=[e]);for(var t=0;t0&&typeof this.imageInfo.profile[0]=="string"&&AN.test(this.imageInfo.profile[0]))return this.imageInfo.profile[0];break}},r.prototype.getComplianceLevelFromProfile=function(e){var t=this.getComplianceLevelEntryFromProfile(e);if(t!==void 0){var n=t.match(/level[0-2](?:\.json)?$/g);return Array.isArray(n)?n[0].replace(".json",""):void 0}},r.prototype.getComplianceLevelSupportedFeatures=function(){if(this.imageInfo!==void 0){var e=this.getImageApiVersion(),t=this.getComplianceLevelFromProfile(e);return t===void 0?gh.none.none:gh[e][t]}},r.prototype.getTileSourceOptions=function(e){var t=e||{},n=this.getImageApiVersion();if(n!==void 0){var i=n===void 0?void 0:yw[n](this);if(i!==void 0)return{url:i.url,version:n,size:[this.imageInfo.width,this.imageInfo.height],sizes:i.sizes,format:t.format!==void 0&&yi(i.formats,t.format)?t.format:i.preferredFormat!==void 0?i.preferredFormat:"jpg",supports:i.supports,quality:t.quality&&yi(i.qualities,t.quality)?t.quality:yi(i.qualities,"native")?"native":"default",resolutions:Array.isArray(i.resolutions)?i.resolutions.sort(function(a,o){return o-a}):void 0,tileSize:i.tileSize}}},r}(),Iot=bot,Fot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Lot=function(r){Fot(e,r);function e(t,n,i,a,o,s,A){var l=this,u=t.getExtent(),c=n.getExtent(),h=c?Jo(i,c):i,f=Sa(h),p=wg(t,n,f,a),v=S4,m=new x4(t,n,h,u,p*v,a),g=m.calculateSourceExtent(),_=s(g,p,o),E=_?$e.IDLE:$e.EMPTY,B=_?_.getPixelRatio():1;return l=r.call(this,i,a,B,E)||this,l.targetProj_=n,l.maxSourceExtent_=u,l.triangulation_=m,l.targetResolution_=a,l.targetExtent_=i,l.sourceImage_=_,l.sourcePixelRatio_=B,l.interpolate_=A,l.canvas_=null,l.sourceListenerKey_=null,l}return e.prototype.disposeInternal=function(){this.state==$e.LOADING&&this.unlistenSource_(),r.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.getProjection=function(){return this.targetProj_},e.prototype.reproject_=function(){var t=this.sourceImage_.getState();if(t==$e.LOADED){var n=Fr(this.targetExtent_)/this.targetResolution_,i=Ai(this.targetExtent_)/this.targetResolution_;this.canvas_=I4(n,i,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_)}this.state=t,this.changed()},e.prototype.load=function(){if(this.state==$e.IDLE){this.state=$e.LOADING,this.changed();var t=this.sourceImage_.getState();t==$e.LOADED||t==$e.ERROR?this.reproject_():(this.sourceListenerKey_=Pe(this.sourceImage_,ye.CHANGE,function(n){var i=this.sourceImage_.getState();(i==$e.LOADED||i==$e.ERROR)&&(this.unlistenSource_(),this.reproject_())},this),this.sourceImage_.load())}},e.prototype.unlistenSource_=function(){Rr(this.sourceListenerKey_),this.sourceListenerKey_=null},e}($Q),Oot=Lot,a8=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),UC={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"},Rot=function(r){a8(e,r);function e(t,n){var i=r.call(this,t)||this;return i.image=n,i}return e}(fo),Mot=function(r){a8(e,r);function e(t){var n=this,i=t.imageSmoothing!==void 0?t.imageSmoothing:!0;return t.interpolate!==void 0&&(i=t.interpolate),n=r.call(this,{attributions:t.attributions,projection:t.projection,state:t.state,interpolate:i})||this,n.on,n.once,n.un,n.resolutions_=t.resolutions!==void 0?t.resolutions:null,n.reprojectedImage_=null,n.reprojectedRevision_=0,n}return e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.findNearestResolution=function(t){if(this.resolutions_){var n=j1(this.resolutions_,t,0);t=this.resolutions_[n]}return t},e.prototype.getImage=function(t,n,i,a){var o=this.getProjection();if(!o||!a||Ws(o,a))return o&&(a=o),this.getImageInternal(t,n,i,a);if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&Ws(this.reprojectedImage_.getProjection(),a)&&this.reprojectedImage_.getResolution()==n&&AA(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new Oot(o,a,t,n,i,function(s,A,l){return this.getImageInternal(s,A,l,o)}.bind(this),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_},e.prototype.getImageInternal=function(t,n,i,a){return Be()},e.prototype.handleImageChange=function(t){var n=t.target,i;switch(n.getState()){case $e.LOADING:this.loading=!0,i=UC.IMAGELOADSTART;break;case $e.LOADED:this.loading=!1,i=UC.IMAGELOADEND;break;case $e.ERROR:this.loading=!1,i=UC.IMAGELOADERROR;break;default:return}this.hasListener(i)&&this.dispatchEvent(new Rot(i,n))},e}(ow);function o8(r,e){r.getImage().src=e}var s8=Mot;function Op(r,e){var t=[];Object.keys(e).forEach(function(i){e[i]!==null&&e[i]!==void 0&&t.push(i+"="+encodeURIComponent(e[i]))});var n=t.join("&");return r=r.replace(/[?&]$/,""),r=r.indexOf("?")===-1?r+"?":r+"&",r+n}var Not=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Pot=function(r){Not(e,r);function e(t){var n=this,i=t.crossOrigin!==void 0?t.crossOrigin:null,a=t.imageLoadFunction!==void 0?t.imageLoadFunction:o8,o=t.imageSmoothing!==void 0?t.imageSmoothing:!0;return t.interpolate!==void 0&&(o=t.interpolate),n=r.call(this,{attributions:t.attributions,interpolate:o,projection:Oe(t.projection)})||this,n.url_=t.url,n.imageExtent_=t.imageExtent,n.image_=new VQ(n.imageExtent_,void 0,1,n.url_,i,a),n.imageSize_=t.imageSize?t.imageSize:null,n.image_.addEventListener(ye.CHANGE,n.handleImageChange.bind(n)),n}return e.prototype.getImageExtent=function(){return this.imageExtent_},e.prototype.getImageInternal=function(t,n,i,a){return Mn(t,this.image_.getExtent())?this.image_:null},e.prototype.getUrl=function(){return this.url_},e.prototype.handleImageChange=function(t){if(this.image_.getState()==$e.LOADED){var n=this.image_.getExtent(),i=this.image_.getImage(),a=void 0,o=void 0;this.imageSize_?(a=this.imageSize_[0],o=this.imageSize_[1]):(a=i.width,o=i.height);var s=Fr(n),A=Ai(n),l=s/a,u=A/o,c=a,h=o;if(l>u?c=Math.round(s/u):h=Math.round(A/l),c!==a||h!==o){var f=ja(c,h);this.getInterpolate()||de(f,Lp);var p=f.canvas;f.drawImage(i,0,0,a,o,0,0,p.width,p.height),this.image_.setImage(p)}}r.prototype.handleImageChange.call(this,t)},e}(s8),Uot=Pot,hu="1.3.0",fu={CARMENTA_SERVER:"carmentaserver",GEOSERVER:"geoserver",MAPSERVER:"mapserver",QGIS:"qgis"},Dot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Wl=4,lN=[101,101],Qot=function(r){Dot(e,r);function e(t){var n=this,i=t||{},a=i.imageSmoothing!==void 0?i.imageSmoothing:!0;return i.interpolate!==void 0&&(a=i.interpolate),n=r.call(this,{attributions:i.attributions,interpolate:a,projection:i.projection,resolutions:i.resolutions})||this,n.crossOrigin_=i.crossOrigin!==void 0?i.crossOrigin:null,n.url_=i.url,n.imageLoadFunction_=i.imageLoadFunction!==void 0?i.imageLoadFunction:o8,n.params_=i.params||{},n.v13_=!0,n.updateV13_(),n.serverType_=i.serverType,n.hidpi_=i.hidpi!==void 0?i.hidpi:!0,n.image_=null,n.imageSize_=[0,0],n.renderedRevision_=0,n.ratio_=i.ratio!==void 0?i.ratio:1.5,n}return e.prototype.getFeatureInfoUrl=function(t,n,i,a){if(this.url_!==void 0){var o=Oe(i),s=this.getProjection();s&&s!==o&&(n=wg(s,o,t,n),t=Qu(t,o,s));var A=Xc(t,n,0,lN),l={SERVICE:"WMS",VERSION:hu,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};de(l,this.params_,a);var u=$f((t[0]-A[0])/n,Wl),c=$f((A[3]-t[1])/n,Wl);return l[this.v13_?"I":"X"]=u,l[this.v13_?"J":"Y"]=c,this.getRequestUrl_(A,lN,1,s||o,l)}},e.prototype.getLegendUrl=function(t,n){if(this.url_!==void 0){var i={SERVICE:"WMS",VERSION:hu,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(n===void 0||n.LAYER===void 0){var a=this.params_.LAYERS,o=!Array.isArray(a)||a.length===1;if(!o)return;i.LAYER=a}if(t!==void 0){var s=this.getProjection()?this.getProjection().getMetersPerUnit():1,A=28e-5;i.SCALE=t*s/A}return de(i,n),Op(this.url_,i)}},e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,n,i,a){if(this.url_===void 0)return null;n=this.findNearestResolution(n),i!=1&&(!this.hidpi_||this.serverType_===void 0)&&(i=1);var o=n/i,s=Sa(t),A=lu(Fr(t)/o,Wl),l=lu(Ai(t)/o,Wl),u=Xc(s,o,0,[A,l]),c=lu(this.ratio_*Fr(t)/o,Wl),h=lu(this.ratio_*Ai(t)/o,Wl),f=Xc(s,o,0,[c,h]),p=this.image_;if(p&&this.renderedRevision_==this.getRevision()&&p.getResolution()==n&&p.getPixelRatio()==i&&Fo(p.getExtent(),u))return p;var v={SERVICE:"WMS",VERSION:hu,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};de(v,this.params_),this.imageSize_[0]=YR(Fr(f)/o,Wl),this.imageSize_[1]=YR(Ai(f)/o,Wl);var m=this.getRequestUrl_(f,this.imageSize_,i,a,v);return this.image_=new VQ(f,n,i,m,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(ye.CHANGE,this.handleImageChange.bind(this)),this.image_},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.getRequestUrl_=function(t,n,i,a,o){if(_e(this.url_!==void 0,9),o[this.v13_?"CRS":"SRS"]=a.getCode(),"STYLES"in this.params_||(o.STYLES=""),i!=1)switch(this.serverType_){case fu.GEOSERVER:var s=90*i+.5|0;"FORMAT_OPTIONS"in o?o.FORMAT_OPTIONS+=";dpi:"+s:o.FORMAT_OPTIONS="dpi:"+s;break;case fu.MAPSERVER:o.MAP_RESOLUTION=90*i;break;case fu.CARMENTA_SERVER:case fu.QGIS:o.DPI=90*i;break;default:_e(!1,8);break}o.WIDTH=n[0],o.HEIGHT=n[1];var A=a.getAxisOrientation(),l;return this.v13_&&A.substr(0,2)=="ne"?l=[t[1],t[0],t[3],t[2]]:l=t,o.BBOX=l.join(","),Op(this.url_,o)},e.prototype.getUrl=function(){return this.url_},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e.prototype.setUrl=function(t){t!=this.url_&&(this.url_=t,this.image_=null,this.changed())},e.prototype.updateParams=function(t){de(this.params_,t),this.updateV13_(),this.image_=null,this.changed()},e.prototype.updateV13_=function(){var t=this.params_.VERSION||hu;this.v13_=X6(t,"1.3")>=0},e}(s8),Hot=Qot,Got=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),kot='© OpenStreetMap contributors.',$ot=function(r){Got(e,r);function e(t){var n=t||{},i=n.imageSmoothing!==void 0?n.imageSmoothing:!0;n.interpolate!==void 0&&(i=n.interpolate);var a;n.attributions!==void 0?a=n.attributions:a=[kot];var o=n.crossOrigin!==void 0?n.crossOrigin:"anonymous",s=n.url!==void 0?n.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";return r.call(this,{attributions:a,attributionsCollapsible:!1,cacheSize:n.cacheSize,crossOrigin:o,interpolate:i,maxZoom:n.maxZoom!==void 0?n.maxZoom:19,opaque:n.opaque!==void 0?n.opaque:!0,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileLoadFunction:n.tileLoadFunction,transition:n.transition,url:s,wrapX:n.wrapX,zDirection:n.zDirection})||this}return e}(n8),Vot=$ot,jot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Kot=function(r){jot(e,r);function e(t){var n=this,i=t||{},a=i.imageSmoothing!==void 0?i.imageSmoothing:!0;i.interpolate!==void 0&&(a=i.interpolate);var o=i.params||{},s="TRANSPARENT"in o?o.TRANSPARENT:!0;return n=r.call(this,{attributions:i.attributions,attributionsCollapsible:i.attributionsCollapsible,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,interpolate:a,opaque:!s,projection:i.projection,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileClass:i.tileClass,tileGrid:i.tileGrid,tileLoadFunction:i.tileLoadFunction,url:i.url,urls:i.urls,wrapX:i.wrapX!==void 0?i.wrapX:!0,transition:i.transition,zDirection:i.zDirection})||this,n.gutter_=i.gutter!==void 0?i.gutter:0,n.params_=o,n.v13_=!0,n.serverType_=i.serverType,n.hidpi_=i.hidpi!==void 0?i.hidpi:!0,n.tmpExtent_=_i(),n.updateV13_(),n.setKey(n.getKeyForParams_()),n}return e.prototype.getFeatureInfoUrl=function(t,n,i,a){var o=Oe(i),s=this.getProjection(),A=this.getTileGrid();A||(A=this.getTileGridForProjection(o));var l=A.getZForResolution(n,this.zDirection),u=A.getTileCoordForCoordAndZ(t,l);if(!(A.getResolutions().length<=u[0])){var c=A.getResolution(u[0]),h=A.getTileCoordExtent(u,this.tmpExtent_),f=Pi(A.getTileSize(u[0]),this.tmpSize),p=this.gutter_;p!==0&&(f=pM(f,p,this.tmpSize),h=Va(h,c*p,h)),s&&s!==o&&(c=wg(s,o,t,c),h=S_(h,o,s),t=Qu(t,o,s));var v={SERVICE:"WMS",VERSION:hu,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};de(v,this.params_,a);var m=Math.floor((t[0]-h[0])/c),g=Math.floor((h[3]-t[1])/c);return v[this.v13_?"I":"X"]=m,v[this.v13_?"J":"Y"]=g,this.getRequestUrl_(u,f,h,1,s||o,v)}},e.prototype.getLegendUrl=function(t,n){if(this.urls[0]!==void 0){var i={SERVICE:"WMS",VERSION:hu,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(n===void 0||n.LAYER===void 0){var a=this.params_.LAYERS,o=!Array.isArray(a)||a.length===1;if(!o)return;i.LAYER=a}if(t!==void 0){var s=this.getProjection()?this.getProjection().getMetersPerUnit():1,A=28e-5;i.SCALE=t*s/A}return de(i,n),Op(this.urls[0],i)}},e.prototype.getGutter=function(){return this.gutter_},e.prototype.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,n,i,a,o,s){var A=this.urls;if(A){if(s.WIDTH=n[0],s.HEIGHT=n[1],s[this.v13_?"CRS":"SRS"]=o.getCode(),"STYLES"in this.params_||(s.STYLES=""),a!=1)switch(this.serverType_){case fu.GEOSERVER:var l=90*a+.5|0;"FORMAT_OPTIONS"in s?s.FORMAT_OPTIONS+=";dpi:"+l:s.FORMAT_OPTIONS="dpi:"+l;break;case fu.MAPSERVER:s.MAP_RESOLUTION=90*a;break;case fu.CARMENTA_SERVER:case fu.QGIS:s.DPI=90*a;break;default:_e(!1,52);break}var u=o.getAxisOrientation(),c=i;if(this.v13_&&u.substr(0,2)=="ne"){var h=void 0;h=i[0],c[0]=i[1],c[1]=h,h=i[2],c[2]=i[3],c[3]=h}s.BBOX=c.join(",");var f;if(A.length==1)f=A[0];else{var p=Bu(Q4(t),A.length);f=A[p]}return Op(f,s)}},e.prototype.getTilePixelRatio=function(t){return!this.hidpi_||this.serverType_===void 0?1:t},e.prototype.getKeyForParams_=function(){var t=0,n=[];for(var i in this.params_)n[t++]=i+"-"+this.params_[i];return n.join("/")},e.prototype.updateParams=function(t){de(this.params_,t),this.updateV13_(),this.setKey(this.getKeyForParams_())},e.prototype.updateV13_=function(){var t=this.params_.VERSION||hu;this.v13_=X6(t,"1.3")>=0},e.prototype.tileUrlFunction=function(t,n,i){var a=this.getTileGrid();if(a||(a=this.getTileGridForProjection(i)),!(a.getResolutions().length<=t[0])){n!=1&&(!this.hidpi_||this.serverType_===void 0)&&(n=1);var o=a.getResolution(t[0]),s=a.getTileCoordExtent(t,this.tmpExtent_),A=Pi(a.getTileSize(t[0]),this.tmpSize),l=this.gutter_;l!==0&&(A=pM(A,l,this.tmpSize),s=Va(s,o*l,s)),n!=1&&(A=_Q(A,n,this.tmpSize));var u={SERVICE:"WMS",VERSION:hu,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return de(u,this.params_),this.getRequestUrl_(t,A,s,n,i,u)}},e}(gw),zot=Kot,Pm={KVP:"KVP",REST:"REST"},Yot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Xot=function(r){Yot(e,r);function e(t){var n=r.call(this,{extent:t.extent,origin:t.origin,origins:t.origins,resolutions:t.resolutions,tileSize:t.tileSize,tileSizes:t.tileSizes,sizes:t.sizes})||this;return n.matrixIds_=t.matrixIds,n}return e.prototype.getMatrixId=function(t){return this.matrixIds_[t]},e.prototype.getMatrixIds=function(){return this.matrixIds_},e}(FF),dS=Xot,Wot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),qot=function(r){Wot(e,r);function e(t){var n=this,i=t.imageSmoothing!==void 0?t.imageSmoothing:!0;t.interpolate!==void 0&&(i=t.interpolate);var a=t.requestEncoding!==void 0?t.requestEncoding:Pm.KVP,o=t.tileGrid,s=t.urls;return s===void 0&&t.url!==void 0&&(s=e8(t.url)),n=r.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:i,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:o,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,urls:s,wrapX:t.wrapX!==void 0?t.wrapX:!1,transition:t.transition,zDirection:t.zDirection})||this,n.version_=t.version!==void 0?t.version:"1.0.0",n.format_=t.format!==void 0?t.format:"image/jpeg",n.dimensions_=t.dimensions!==void 0?t.dimensions:{},n.layer_=t.layer,n.matrixSet_=t.matrixSet,n.style_=t.style,n.requestEncoding_=a,n.setKey(n.getKeyForDimensions_()),s&&s.length>0&&(n.tileUrlFunction=V_(s.map(n.createFromWMTSTemplate.bind(n)))),n}return e.prototype.setUrls=function(t){this.urls=t;var n=t.join(` -`);this.setTileUrlFunction(V_(t.map(this.createFromWMTSTemplate.bind(this))),n)},e.prototype.getDimensions=function(){return this.dimensions_},e.prototype.getFormat=function(){return this.format_},e.prototype.getLayer=function(){return this.layer_},e.prototype.getMatrixSet=function(){return this.matrixSet_},e.prototype.getRequestEncoding=function(){return this.requestEncoding_},e.prototype.getStyle=function(){return this.style_},e.prototype.getVersion=function(){return this.version_},e.prototype.getKeyForDimensions_=function(){var t=0,n=[];for(var i in this.dimensions_)n[t++]=i+"-"+this.dimensions_[i];return n.join("/")},e.prototype.updateDimensions=function(t){de(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())},e.prototype.createFromWMTSTemplate=function(t){var n=this.requestEncoding_,i={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};n==Pm.KVP&&de(i,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t=n==Pm.KVP?Op(t,i):t.replace(/\{(\w+?)\}/g,function(s,A){return A.toLowerCase()in i?i[A.toLowerCase()]:s});var a=this.tileGrid,o=this.dimensions_;return function(s,A,l){if(s){var u={TileMatrix:a.getMatrixId(s[0]),TileCol:s[1],TileRow:s[2]};de(u,o);var c=t;return n==Pm.KVP?c=Op(c,u):c=c.replace(/\{(\w+?)\}/g,function(h,f){return u[f]}),c}else return}},e}(gw),A8=qot;window.ol&&!ol.ext&&(ol.ext={});var Cr=function(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r};window.ol&&(ol.inherits||(ol.inherits=Cr));window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);window.Element&&!Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});function mw(r){const e=r.frameState,t=kp(r.inversePixelTransform.slice(),e.coordinateToPixelTransform);return new fF(r.context,e.pixelRatio,e.extent,t,e.viewState.rotation)}window.ol&&(ol.util?ol.util.VERSION||(ol.util.VERSION=ol.VERSION||"6.1.0"):ol.util={VERSION:ol.VERSION||"5.3.0"});var G0=L6.split(".");G0=parseInt(G0[0])*100+parseInt(G0[1]);var vS=function(r,e){var t=r.frameState.pixelRatio;if(G0>605&&t!==1&&e.getImage()instanceof ny){e=e.clone();var n=e.getImage();n.setScale(n.getScale()*t);var i=n.getAnchor();if(n.setDisplacement){var a=n.getDisplacement();a&&(a[0]-=i[0]/t,a[1]+=i[1]/t,n.setAnchor([0,0]))}else i&&(i[0]/=t,i[1]/=t)}return e},Fh=function(r){var e=r||{};hA.call(this,e),this.oldcluster=new _l,this.clusters=[],this.animation={start:!1},this.set("animationDuration",typeof e.animationDuration=="number"?e.animationDuration:700),this.set("animationMethod",e.animationMethod||ts),this.getSource().on("change",this.saveCluster.bind(this)),this.on(["precompose","prerender"],this.animate.bind(this)),this.on(["postcompose","postrender"],this.postanimate.bind(this))};Cr(Fh,hA);Fh.prototype.saveCluster=function(){if(this.oldcluster){if(this.oldcluster.clear(),!this.get("animationDuration"))return;var r=this.getSource().getFeatures();r.length&&r[0].get("features")&&(this.oldcluster.addFeatures(this.clusters),this.clusters=r.slice(0),this.sourceChanged=!0)}};Fh.prototype.getClusterForFeature=function(r,e){for(var t=0,n;n=e[t];t++){var i=n.get("features");if(i&&i.length){for(var a=0,o;o=i[a];a++)if(r===o)return n}}return!1};Fh.prototype.stopAnimation=function(){this.animation.start=!1,this.animation.cA=[],this.animation.cB=[]};Fh.prototype.animate=function(r){var e=this.get("animationDuration");if(e){var t=r.frameState.viewState.resolution,n,i,a=this.animation,o=r.frameState.time;if(a.resolution!=t&&this.sourceChanged){var s=r.frameState.extent;for(a.resolution1e3){this.stopAnimation();return}o=a.start=new Date().getTime()}if(a.start){var u=r.vectorContext||mw(r),c=(o-a.start)/e;c>1&&(this.stopAnimation(),c=1),c=this.get("animationMethod")(c);var h=this.getStyle(),f=typeof h=="function"?h:h.length?function(){return h}:function(){return[h]};for(r.context.save(),r.context.globalAlpha=this.getOpacity(),n=0,l;l=a.clusters[n];n++){var p=l.f.getGeometry().getCoordinates(),v=p[0]-l.pt[0],m=p[1]-l.pt[1];a.revers?(p[0]=l.pt[0]+c*v,p[1]=l.pt[1]+c*m):(p[0]=p[0]-c*v,p[1]=p[1]-c*m);var g=f(l.f,t,!0);if(g.length||(g=[g]),l.f.get("features").length===1&&!v&&!m)A=l.f.get("features")[0];else{var _=new fr(p);A=new or(_)}for(var E=0,B;B=g[E];E++)if(B.getText()&&/\n/.test(B.getText().getText())){var L=B.getText().getOffsetX(),O=B.getText().getOffsetY(),b=B.getText().getRotation()||0,T=Number((B.getText().getFont()||"10px").match(/\d+/))*1.2,I=B.getText().getText().split(` -`),M,x=I.length-1,S=B.clone();I.forEach(function(N,P){switch(P==1&&(S.setImage(),S.setFill(),S.setStroke()),B.getText().getTextBaseline()){case"alphabetic":case"ideographic":case"bottom":{M=x;break}case"hanging":case"top":{M=0;break}default:{M=x/2;break}}S.getText().setOffsetX(L-Math.sin(b)*T*(P-M)),S.getText().setOffsetY(O+Math.cos(b)*T*(P-M)),S.getText().setText(N),u.drawFeature(A,vS(r,S))})}else u.drawFeature(A,vS(r,B))}r.context.restore(),r.frameState.animate=!0,r.context.save(),r.context.beginPath(),r.context.rect(0,0,0,0),r.context.clip(),this.clip_=!0}}};Fh.prototype.postanimate=function(r){this.clip_&&(r.context.restore(),this.clip_=!1)};const Zot={extends:Ih,name:"ol-animated-clusterlayer",setup(r){const e=Ce("map"),{properties:t}=vr(r),n=hr(()=>new Fh(Os(Un({},t),{source:new i8({distance:t.distance,geometryFunction:o=>o.getGeometry()})}))),i=hr(()=>n.value.getSource());return he(t,()=>{n.value.setProperties(t),n.value.changed()}),Ze(()=>{e.addLayer(n.value),n.value.changed(),e.changed()}),ir(()=>{e.removeLayer(n.value)}),Mr("vectorLayer",i),Mr("stylable",n),{vectorLayer:n,map:e}},props:{animationDuration:{type:Number,default:700},distance:{type:Number,default:20},animationMethod:{type:Function,default:ts},updateWhileAnimating:{type:Boolean,default:!1},updateWhileInteracting:{type:Boolean,default:!1}}};function Jot(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var gS=le(Zot,[["render",Jot]]),Gs=new Uint8Array(4),tst=function(){function r(e,t){this.helper_=e;var n=e.getGL();this.texture_=n.createTexture(),this.framebuffer_=n.createFramebuffer(),this.size_=t||[1,1],this.data_=new Uint8Array(0),this.dataCacheDirty_=!0,this.updateSize_()}return r.prototype.setSize=function(e){yl(e,this.size_)||(this.size_[0]=e[0],this.size_[1]=e[1],this.updateSize_())},r.prototype.getSize=function(){return this.size_},r.prototype.clearCachedData=function(){this.dataCacheDirty_=!0},r.prototype.readAll=function(){if(this.dataCacheDirty_){var e=this.size_,t=this.helper_.getGL();t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer_),t.readPixels(0,0,e[0],e[1],t.RGBA,t.UNSIGNED_BYTE,this.data_),this.dataCacheDirty_=!1}return this.data_},r.prototype.readPixel=function(e,t){if(e<0||t<0||e>this.size_[0]||t>=this.size_[1])return Gs[0]=0,Gs[1]=0,Gs[2]=0,Gs[3]=0,Gs;this.readAll();var n=Math.floor(e)+(this.size_[1]-Math.floor(t)-1)*this.size_[0];return Gs[0]=this.data_[n*4],Gs[1]=this.data_[n*4+1],Gs[2]=this.data_[n*4+2],Gs[3]=this.data_[n*4+3],Gs},r.prototype.getTexture=function(){return this.texture_},r.prototype.getFramebuffer=function(){return this.framebuffer_},r.prototype.updateSize_=function(){var e=this.size_,t=this.helper_.getGL();this.texture_=this.helper_.createTexture(e,null,this.texture_),t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer_),t.viewport(0,0,e[0],e[1]),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.texture_,0),this.data_=new Uint8Array(e[0]*e[1]*4)},r}(),est=tst;function rst(){var r='var e="function"==typeof Object.assign?Object.assign:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,o=arguments.length;r"u"?"data:application/javascript;base64,"+Buffer.from(r,"binary").toString("base64"):URL.createObjectURL(new Blob([r],{type:"application/javascript"})))}var nst=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ist=function(r){nst(e,r);function e(t,n){var i=this,a=n.uniforms||{},o=oi();a[Pf.PROJECTION_MATRIX]=o,i=r.call(this,t,{uniforms:a,postProcesses:n.postProcesses})||this,i.ready=!1,i.sourceRevision_=-1,i.verticesBuffer_=new Hv(Eg,D0),i.hitVerticesBuffer_=new Hv(Eg,D0),i.indicesBuffer_=new Hv(hw,D0),i.vertexShader_=n.vertexShader,i.fragmentShader_=n.fragmentShader,i.program_,i.hitDetectionEnabled_=!!(n.hitFragmentShader&&n.hitVertexShader),i.hitVertexShader_=n.hitVertexShader,i.hitFragmentShader_=n.hitFragmentShader,i.hitProgram_;var s=n.attributes?n.attributes.map(function(l){return{name:"a_"+l.name,size:1,type:Yo.FLOAT}}):[];i.attributes=[{name:"a_position",size:2,type:Yo.FLOAT},{name:"a_index",size:1,type:Yo.FLOAT}].concat(s),i.hitDetectionAttributes=[{name:"a_position",size:2,type:Yo.FLOAT},{name:"a_index",size:1,type:Yo.FLOAT},{name:"a_hitColor",size:4,type:Yo.FLOAT},{name:"a_featureUid",size:1,type:Yo.FLOAT}].concat(s),i.customAttributes=n.attributes?n.attributes:[],i.previousExtent_=_i(),i.currentTransform_=o,i.renderTransform_=oi(),i.invertRenderTransform_=oi(),i.renderInstructions_=new Float32Array(0),i.hitRenderInstructions_=new Float32Array(0),i.hitRenderTarget_,i.generateBuffersRun_=0,i.worker_=rst(),i.worker_.addEventListener("message",function(l){var u=l.data;if(u.type===OC.GENERATE_BUFFERS){var c=u.projectionTransform;u.hitDetection?(this.hitVerticesBuffer_.fromArrayBuffer(u.vertexBuffer),this.helper.flushBufferData(this.hitVerticesBuffer_)):(this.verticesBuffer_.fromArrayBuffer(u.vertexBuffer),this.helper.flushBufferData(this.verticesBuffer_)),this.indicesBuffer_.fromArrayBuffer(u.indexBuffer),this.helper.flushBufferData(this.indicesBuffer_),this.renderTransform_=c,Kg(this.invertRenderTransform_,this.renderTransform_),u.hitDetection?this.hitRenderInstructions_=new Float32Array(l.data.renderInstructions):(this.renderInstructions_=new Float32Array(l.data.renderInstructions),u.generateBuffersRun===this.generateBuffersRun_&&(this.ready=!0)),this.getLayer().changed()}}.bind(i)),i.featureCache_={},i.featureCount_=0;var A=i.getLayer().getSource();return i.sourceListenKeys_=[Pe(A,Oi.ADDFEATURE,i.handleSourceFeatureAdded_,i),Pe(A,Oi.CHANGEFEATURE,i.handleSourceFeatureChanged_,i),Pe(A,Oi.REMOVEFEATURE,i.handleSourceFeatureDelete_,i),Pe(A,Oi.CLEAR,i.handleSourceFeatureClear_,i)],A.forEachFeature(function(l){this.featureCache_[pe(l)]={feature:l,properties:l.getProperties(),geometry:l.getGeometry()},this.featureCount_++}.bind(i)),i}return e.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.hitDetectionEnabled_&&(this.hitProgram_=this.helper.getProgram(this.hitFragmentShader_,this.hitVertexShader_),this.hitRenderTarget_=new est(this.helper))},e.prototype.handleSourceFeatureAdded_=function(t){var n=t.feature;this.featureCache_[pe(n)]={feature:n,properties:n.getProperties(),geometry:n.getGeometry()},this.featureCount_++},e.prototype.handleSourceFeatureChanged_=function(t){var n=t.feature;this.featureCache_[pe(n)]={feature:n,properties:n.getProperties(),geometry:n.getGeometry()}},e.prototype.handleSourceFeatureDelete_=function(t){var n=t.feature;delete this.featureCache_[pe(n)],this.featureCount_--},e.prototype.handleSourceFeatureClear_=function(){this.featureCache_={},this.featureCount_=0},e.prototype.renderFrame=function(t){var n=this.helper.getGL();this.preRender(n,t);var i=this.indicesBuffer_.getSize();this.helper.drawElements(0,i),this.helper.finalizeDraw(t,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);var a=this.helper.getCanvas();return this.hitDetectionEnabled_&&(this.renderHitDetection(t),this.hitRenderTarget_.clearCachedData()),this.postRender(n,t),a},e.prototype.prepareFrameInternal=function(t){var n=this.getLayer(),i=n.getSource(),a=t.viewState,o=!t.viewHints[gn.ANIMATING]&&!t.viewHints[gn.INTERACTING],s=!AA(this.previousExtent_,t.extent),A=this.sourceRevision_.5*a.resolution){var h=this.getSources(t.extent,this.renderedResolution_).filter(function(f){return!o.includes(f)});if(h.length>0)return this.renderSources(t,h)}return c},e.prototype.setStyle=function(t){this.styleVariables_=t.variables||{},this.style_=t;var n=AN(this.style_,this.getSourceBandCount_()),i=this.getRenderer();i.reset({vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,uniforms:n.uniforms,paletteTextures:n.paletteTextures}),this.changed()},e.prototype.updateStyleVariables=function(t){de(this.styleVariables_,t),this.changed()},e}(T4);z4.prototype.dispose;var Uat=z4;const Dat={extends:Ih,name:"ol-webgl-tile-layer",setup(r){const e=Ce("map"),t=Ce("overviewMap",null),{properties:n}=vr(r),i=fr(()=>new Uat(n)),a=()=>{t!=null?(t.value.getOverviewMap().addLayer(i.value),t.value.changed()):e.addLayer(i.value)},o=()=>{t!=null?(t.value.getOverviewMap().removeLayer(i.value),t.value.changed()):e.removeLayer(i.value)};return t!=null&&he(t,()=>{o(),a()}),Ze(()=>{a()}),ir(()=>{o()}),Mr("tileLayer",i),{tileLayer:i}},props:{preload:{type:Number,default:1}}};function Qat(r,e,t,n,i,a){return tn(),Ln("div",null,[mr(r.$slots,"default")])}var hb=le(Dat,[["render",Qat]]),Hat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Gat=function(r){Hat(e,r);function e(t){var n=t||{};return r.call(this,n)||this}return e}(bh),kat=Gat,$at=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Vat=function(r){$at(e,r);function e(t){var n=r.call(this,t)||this;return n.image_=null,n}return e.prototype.getImage=function(){return this.image_?this.image_.getImage():null},e.prototype.prepareFrame=function(t){var n=t.layerStatesArray[t.layerIndex],i=t.pixelRatio,a=t.viewState,o=a.resolution,s=this.getLayer().getSource(),A=t.viewHints,l=t.extent;if(n.extent!==void 0&&(l=ts(l,Oo(n.extent,a.projection))),!A[gn.ANIMATING]&&!A[gn.INTERACTING]&&!Vp(l))if(s){var u=a.projection,c=s.getImage(l,o,i,u);c&&(this.loadImage(c)?this.image_=c:c.getState()===$e.EMPTY&&(this.image_=null))}else this.image_=null;return!!this.image_},e.prototype.getData=function(t){var n=this.frameState;if(!n)return null;var i=this.getLayer(),a=cn(n.pixelToCoordinateTransform,t.slice()),o=i.getExtent();if(o&&!xs(o,a))return null;var s=this.image_.getExtent(),A=this.image_.getImage(),l=Fr(s),u=Math.floor(A.width*((a[0]-s[0])/l));if(u<0||u>=A.width)return null;var c=li(s),h=Math.floor(A.height*((s[3]-a[1])/c));return h<0||h>=A.height?null:this.getImageData(A,u,h)},e.prototype.renderFrame=function(t,n){var i=this.image_,a=i.getExtent(),o=i.getResolution(),s=i.getPixelRatio(),A=t.layerStatesArray[t.layerIndex],l=t.pixelRatio,u=t.viewState,c=u.center,h=u.resolution,f=t.size,p=l*o/(h*s),v=Math.round(f[0]*l),m=Math.round(f[1]*l),g=u.rotation;if(g){var _=Math.round(Math.sqrt(v*v+m*m));v=_,m=_}Va(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/l,1/l,g,-v/2,-m/2),Kg(this.inversePixelTransform,this.pixelTransform);var E=LI(this.pixelTransform);this.useContainer(n,E,A.opacity,this.getBackground(t));var B=this.context,L=B.canvas;L.width!=v||L.height!=m?(L.width=v,L.height=m):this.containerReused||B.clearRect(0,0,v,m);var O=!1,x=!0;if(A.extent){var T=Oo(A.extent,u.projection);x=Pn(T,t.extent),O=x&&!Lo(T,t.extent),O&&this.clipUnrotated(B,t,T)}var I=i.getImage(),M=Va(this.tempTransform,v/2,m/2,p,p,0,s*(a[0]-c[0])/o,s*(c[1]-a[3])/o);this.renderedResolution=o*l/s;var S=I.width*M[0],b=I.height*M[3];if(this.getLayer().getSource().getInterpolate()||de(B,Lp),this.preRender(B,t),x&&S>=.5&&b>=.5){var N=M[4],P=M[5],X=A.opacity,z=void 0;X!==1&&(z=B.globalAlpha,B.globalAlpha=X),B.drawImage(I,0,0,+I.width,+I.height,Math.round(N),Math.round(P),Math.round(S),Math.round(b)),X!==1&&(B.globalAlpha=z)}return this.postRender(B,t),O&&B.restore(),de(B,x4),E!==L.style.transform&&(L.style.transform=E),this.container},e}(fF),jat=Vat,Kat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),zat=function(r){Kat(e,r);function e(t){return r.call(this,t)||this}return e.prototype.createRenderer=function(){return new jat(this)},e.prototype.getData=function(t){return r.prototype.getData.call(this,t)},e}(kat),Y4=zat;const Yat={extends:Ih,name:"ol-image-layer",setup(r){const e=Ce("map"),{properties:t}=vr(r),n=new Y4(t);return he(t,()=>{n.setProperties(t)}),Ze(()=>{e.addLayer(n)}),ir(()=>{e.removeLayer(n)}),Mr("imageLayer",n),{imageLayer:n}}};function Xat(r,e,t,n,i,a){return tn(),Ln("div",null,[mr(r.$slots,"default")])}var fb=le(Yat,[["render",Xat]]);const Wat={extends:Ih,name:"ol-vector-layer",setup(r){const e=Ce("map"),{properties:t}=vr(r),n=fr(()=>new fA(t));return he(t,()=>{n.value.setProperties(t)}),Ze(()=>{e.addLayer(n.value)}),ir(()=>{e.removeLayer(n.value)}),Mr("vectorLayer",n),Mr("stylable",n),{vectorLayer:n}},props:{renderBuffer:{type:Number,default:100},updateWhileAnimating:{type:Boolean,default:!1},style:{type:Function},updateWhileInteracting:{type:Boolean,default:!1}}};function qat(r,e,t,n,i,a){return tn(),Ln("div",null,[mr(r.$slots,"default")])}var pb=le(Wat,[["render",qat]]),Zat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Jat=function(r){Zat(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.expireCache=function(t){for(;this.canExpireCache();){var n=this.peekLast();if(n.getKey()in t)break;this.pop().release()}},e.prototype.pruneExceptNewestZ=function(){if(this.getCount()!==0){var t=this.peekFirstKey(),n=Eat(t),i=n[0];this.forEach(function(a){a.tileCoord[0]!==i&&(this.remove(Bg(a.tileCoord)),a.release())}.bind(this))}},e}(O4),X4=Jat,PC={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"},tot=[0,0,0],Wl=5,eot=function(){function r(e){this.minZoom=e.minZoom!==void 0?e.minZoom:0,this.resolutions_=e.resolutions,_e(yY(this.resolutions_,function(o,s){return s-o},!0),17);var t;if(!e.origins){for(var n=0,i=this.resolutions_.length-1;n=this.minZoom;){if(this.zoomFactor_===2?(o=Math.floor(o/2),s=Math.floor(s/2),a=pf(o,o,s,s,n)):a=this.getTileRangeForExtentAndZ(A,l,n),t(l,a))return!0;--l}return!1},r.prototype.getExtent=function(){return this.extent_},r.prototype.getMaxZoom=function(){return this.maxZoom},r.prototype.getMinZoom=function(){return this.minZoom},r.prototype.getOrigin=function(e){return this.origin_?this.origin_:this.origins_[e]},r.prototype.getResolution=function(e){return this.resolutions_[e]},r.prototype.getResolutions=function(){return this.resolutions_},r.prototype.getTileCoordChildTileRange=function(e,t,n){if(e[0]this.maxZoom||t0?n:Math.max(o/s[0],a/s[1]),l=i+1,u=new Array(l),c=0;ci.highWaterMark&&(i.highWaterMark=t)},e.prototype.useTile=function(t,n,i,a){},e}(ow),oot=function(r){J4(e,r);function e(t,n){var i=r.call(this,t)||this;return i.tile=n,i}return e}(po),t8=aot;function sot(r,e){var t=/\{z\}/g,n=/\{x\}/g,i=/\{y\}/g,a=/\{-y\}/g;return function(o,s,A){if(o)return r.replace(t,o[0].toString()).replace(n,o[1].toString()).replace(i,o[2].toString()).replace(a,function(){var l=o[0],u=e.getFullTileRange(l);_e(u,55);var c=u.getHeight()-o[2]-1;return c.toString()})}}function Aot(r,e){for(var t=r.length,n=new Array(t),i=0;i>=1;return t.join("")}var yot='Terms of Use',mot=function(r){vot(e,r);function e(t){var n=this,i=t.hidpi!==void 0?t.hidpi:!1,a=t.imageSmoothing!==void 0?t.imageSmoothing:!0;t.interpolate!==void 0&&(a=t.interpolate),n=r.call(this,{cacheSize:t.cacheSize,crossOrigin:"anonymous",interpolate:a,opaque:!0,projection:Oe("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:Qa.LOADING,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:i?2:1,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,zDirection:t.zDirection})||this,n.hidpi_=i,n.culture_=t.culture!==void 0?t.culture:"en-us",n.maxZoom_=t.maxZoom!==void 0?t.maxZoom:-1,n.apiKey_=t.key,n.imagerySet_=t.imagerySet;var o="https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+n.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+n.apiKey_+"&c="+n.culture_;return dot(o,n.handleImageryMetadataResponse.bind(n),void 0,"jsonp"),n}return e.prototype.getApiKey=function(){return this.apiKey_},e.prototype.getImagerySet=function(){return this.imagerySet_},e.prototype.handleImageryMetadataResponse=function(t){if(t.statusCode!=200||t.statusDescription!="OK"||t.authenticationResultCode!="ValidCredentials"||t.resourceSets.length!=1||t.resourceSets[0].resources.length!=1){this.setState(Qa.ERROR);return}var n=t.resourceSets[0].resources[0],i=this.maxZoom_==-1?n.zoomMax:this.maxZoom_,a=this.getProjection(),o=vw(a),s=this.hidpi_?2:1,A=n.imageWidth==n.imageHeight?n.imageWidth/s:[n.imageWidth/s,n.imageHeight/s],l=q4({extent:o,minZoom:n.zoomMin,maxZoom:i,tileSize:A});this.tileGrid=l;var u=this.culture_,c=this.hidpi_;if(this.tileUrlFunction=V_(n.imageUrlSubdomains.map(function(f){var p=[0,0,0],v=n.imageUrl.replace("{subdomain}",f).replace("{culture}",u);return function(m,g,_){if(m){Cg(m[0],m[1],m[2],p);var E=v;return c&&(E+="&dpi=d1&device=mobile"),E.replace("{quadkey}",got(p))}else return}})),n.imageryProviders){var h=fh(Oe("EPSG:4326"),this.getProjection());this.setAttributions(function(f){var p=[],v=f.viewState,m=this.getTileGrid(),g=m.getZForResolution(v.resolution,this.zDirection),_=m.getTileCoordForCoordAndZ(v.center,g),E=_[0];return n.imageryProviders.map(function(B){for(var L=!1,O=B.coverageAreas,x=0,T=O.length;x=I.zoomMin&&E<=I.zoomMax){var M=I.bbox,S=[M[1],M[0],M[3],M[2]],b=NI(S,h);if(Pn(b,f.extent)){L=!0;break}}}L&&p.push(B.attribution)}),p.push(yot),p}.bind(this))}this.setState(Qa.READY)},e}(gw),_ot=mot,wot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Eot=function(r){wot(e,r);function e(t){var n=t||{},i=n.imageSmoothing!==void 0?n.imageSmoothing:!0;n.interpolate!==void 0&&(i=n.interpolate);var a=n.projection!==void 0?n.projection:"EPSG:3857",o=n.tileGrid!==void 0?n.tileGrid:q4({extent:vw(a),maxResolution:n.maxResolution,maxZoom:n.maxZoom,minZoom:n.minZoom,tileSize:n.tileSize});return r.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:i,opaque:n.opaque,projection:a,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:o,tileLoadFunction:n.tileLoadFunction,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:n.tileUrlFunction,url:n.url,urls:n.urls,wrapX:n.wrapX!==void 0?n.wrapX:!0,transition:n.transition,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this}return e}(gw),n8=Eot,Cot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Bot=function(r){Cot(e,r);function e(t){var n=r.call(this,{attributions:t.attributions,wrapX:t.wrapX})||this;return n.resolution=void 0,n.distance=t.distance!==void 0?t.distance:20,n.minDistance=t.minDistance||0,n.interpolationRatio=0,n.features=[],n.geometryFunction=t.geometryFunction||function(i){var a=i.getGeometry();return _e(a.getType()==st.POINT,10),a},n.createCustomCluster_=t.createCluster,n.source=null,n.boundRefresh_=n.refresh.bind(n),n.updateDistance(n.distance,n.minDistance),n.setSource(t.source||null),n}return e.prototype.clear=function(t){this.features.length=0,r.prototype.clear.call(this,t)},e.prototype.getDistance=function(){return this.distance},e.prototype.getSource=function(){return this.source},e.prototype.loadFeatures=function(t,n,i){this.source.loadFeatures(t,n,i),n!==this.resolution&&(this.resolution=n,this.refresh())},e.prototype.setDistance=function(t){this.updateDistance(t,this.minDistance)},e.prototype.setMinDistance=function(t){this.updateDistance(this.distance,t)},e.prototype.getMinDistance=function(){return this.minDistance},e.prototype.setSource=function(t){this.source&&this.source.removeEventListener(ye.CHANGE,this.boundRefresh_),this.source=t,t&&t.addEventListener(ye.CHANGE,this.boundRefresh_),this.refresh()},e.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features)},e.prototype.updateDistance=function(t,n){var i=t===0?0:Math.min(n,t)/t,a=t!==this.distance||this.interpolationRatio!==i;this.distance=t,this.minDistance=n,this.interpolationRatio=i,a&&this.refresh()},e.prototype.cluster=function(){if(!(this.resolution===void 0||!this.source))for(var t=wi(),n=this.distance*this.resolution,i=this.source.getFeatures(),a={},o=0,s=i.length;o=0;--a){var o=this.geometryFunction(t[a]);o?W6(i,o.getCoordinates()):t.splice(a,1)}q6(i,1/t.length);var s=Sa(n),A=this.interpolationRatio,l=new pr([i[0]*(1-A)+s[0]*A,i[1]*(1-A)+s[1]*A]);return this.createCustomCluster_?this.createCustomCluster_(l,t):new or({geometry:l,features:t})},e}(wl),i8=Bot,Js=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tot(r){if(r.__esModule)return r;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(t){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}),e}var Ea=globalThis&&globalThis.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,i=e.length,a;n1,n=t&&r.imageInfo.profile[1].supports?r.imageInfo.profile[1].supports:[],i=t&&r.imageInfo.profile[1].formats?r.imageInfo.profile[1].formats:[],a=t&&r.imageInfo.profile[1].qualities?r.imageInfo.profile[1].qualities:[];return{url:r.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),sizes:r.imageInfo.sizes===void 0?void 0:r.imageInfo.sizes.map(function(o){return[o.width,o.height]}),tileSize:r.imageInfo.tiles===void 0?void 0:[r.imageInfo.tiles.map(function(o){return o.width})[0],r.imageInfo.tiles.map(function(o){return o.height===void 0?o.width:o.height})[0]],resolutions:r.imageInfo.tiles===void 0?void 0:r.imageInfo.tiles.map(function(o){return o.scaleFactors})[0],supports:Ea(Ea([],e.supports,!0),n,!0),formats:Ea(Ea([],e.formats,!0),i,!0),qualities:Ea(Ea([],e.qualities,!0),a,!0)}}function Fot(r){var e=r.getComplianceLevelSupportedFeatures(),t=r.imageInfo.extraFormats===void 0?e.formats:Ea(Ea([],e.formats,!0),r.imageInfo.extraFormats,!0),n=r.imageInfo.preferredFormats!==void 0&&Array.isArray(r.imageInfo.preferredFormats)&&r.imageInfo.preferredFormats.length>0?r.imageInfo.preferredFormats.filter(function(i){return mi(["jpg","png","gif"],i)}).reduce(function(i,a){return i===void 0&&mi(t,a)?a:i},void 0):void 0;return{url:r.imageInfo.id,sizes:r.imageInfo.sizes===void 0?void 0:r.imageInfo.sizes.map(function(i){return[i.width,i.height]}),tileSize:r.imageInfo.tiles===void 0?void 0:[r.imageInfo.tiles.map(function(i){return i.width})[0],r.imageInfo.tiles.map(function(i){return i.height})[0]],resolutions:r.imageInfo.tiles===void 0?void 0:r.imageInfo.tiles.map(function(i){return i.scaleFactors})[0],supports:r.imageInfo.extraFeatures===void 0?e.supports:Ea(Ea([],e.supports,!0),r.imageInfo.extraFeatures,!0),formats:t,qualities:r.imageInfo.extraQualities===void 0?e.qualities:Ea(Ea([],e.qualities,!0),r.imageInfo.extraQualities,!0),preferredFormat:n}}var yw={};yw[Ua.VERSION1]=xot;yw[Ua.VERSION2]=Iot;yw[Ua.VERSION3]=Fot;var Lot=function(){function r(e){this.setImageInfo(e)}return r.prototype.setImageInfo=function(e){typeof e=="string"?this.imageInfo=JSON.parse(e):this.imageInfo=e},r.prototype.getImageApiVersion=function(){if(this.imageInfo!==void 0){var e=this.imageInfo["@context"]||"ol-no-context";typeof e=="string"&&(e=[e]);for(var t=0;t0&&typeof this.imageInfo.profile[0]=="string"&&lN.test(this.imageInfo.profile[0]))return this.imageInfo.profile[0];break}},r.prototype.getComplianceLevelFromProfile=function(e){var t=this.getComplianceLevelEntryFromProfile(e);if(t!==void 0){var n=t.match(/level[0-2](?:\.json)?$/g);return Array.isArray(n)?n[0].replace(".json",""):void 0}},r.prototype.getComplianceLevelSupportedFeatures=function(){if(this.imageInfo!==void 0){var e=this.getImageApiVersion(),t=this.getComplianceLevelFromProfile(e);return t===void 0?gh.none.none:gh[e][t]}},r.prototype.getTileSourceOptions=function(e){var t=e||{},n=this.getImageApiVersion();if(n!==void 0){var i=n===void 0?void 0:yw[n](this);if(i!==void 0)return{url:i.url,version:n,size:[this.imageInfo.width,this.imageInfo.height],sizes:i.sizes,format:t.format!==void 0&&mi(i.formats,t.format)?t.format:i.preferredFormat!==void 0?i.preferredFormat:"jpg",supports:i.supports,quality:t.quality&&mi(i.qualities,t.quality)?t.quality:mi(i.qualities,"native")?"native":"default",resolutions:Array.isArray(i.resolutions)?i.resolutions.sort(function(a,o){return o-a}):void 0,tileSize:i.tileSize}}},r}(),Oot=Lot,Rot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Mot=function(r){Rot(e,r);function e(t,n,i,a,o,s,A){var l=this,u=t.getExtent(),c=n.getExtent(),h=c?ts(i,c):i,f=Sa(h),p=wg(t,n,f,a),v=b4,m=new S4(t,n,h,u,p*v,a),g=m.calculateSourceExtent(),_=s(g,p,o),E=_?$e.IDLE:$e.EMPTY,B=_?_.getPixelRatio():1;return l=r.call(this,i,a,B,E)||this,l.targetProj_=n,l.maxSourceExtent_=u,l.triangulation_=m,l.targetResolution_=a,l.targetExtent_=i,l.sourceImage_=_,l.sourcePixelRatio_=B,l.interpolate_=A,l.canvas_=null,l.sourceListenerKey_=null,l}return e.prototype.disposeInternal=function(){this.state==$e.LOADING&&this.unlistenSource_(),r.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.getProjection=function(){return this.targetProj_},e.prototype.reproject_=function(){var t=this.sourceImage_.getState();if(t==$e.LOADED){var n=Fr(this.targetExtent_)/this.targetResolution_,i=li(this.targetExtent_)/this.targetResolution_;this.canvas_=I4(n,i,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_)}this.state=t,this.changed()},e.prototype.load=function(){if(this.state==$e.IDLE){this.state=$e.LOADING,this.changed();var t=this.sourceImage_.getState();t==$e.LOADED||t==$e.ERROR?this.reproject_():(this.sourceListenerKey_=Pe(this.sourceImage_,ye.CHANGE,function(n){var i=this.sourceImage_.getState();(i==$e.LOADED||i==$e.ERROR)&&(this.unlistenSource_(),this.reproject_())},this),this.sourceImage_.load())}},e.prototype.unlistenSource_=function(){Rr(this.sourceListenerKey_),this.sourceListenerKey_=null},e}($Q),Not=Mot,a8=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),UC={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"},Pot=function(r){a8(e,r);function e(t,n){var i=r.call(this,t)||this;return i.image=n,i}return e}(po),Uot=function(r){a8(e,r);function e(t){var n=this,i=t.imageSmoothing!==void 0?t.imageSmoothing:!0;return t.interpolate!==void 0&&(i=t.interpolate),n=r.call(this,{attributions:t.attributions,projection:t.projection,state:t.state,interpolate:i})||this,n.on,n.once,n.un,n.resolutions_=t.resolutions!==void 0?t.resolutions:null,n.reprojectedImage_=null,n.reprojectedRevision_=0,n}return e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.findNearestResolution=function(t){if(this.resolutions_){var n=j1(this.resolutions_,t,0);t=this.resolutions_[n]}return t},e.prototype.getImage=function(t,n,i,a){var o=this.getProjection();if(!o||!a||qs(o,a))return o&&(a=o),this.getImageInternal(t,n,i,a);if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&qs(this.reprojectedImage_.getProjection(),a)&&this.reprojectedImage_.getResolution()==n&&lA(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new Not(o,a,t,n,i,function(s,A,l){return this.getImageInternal(s,A,l,o)}.bind(this),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_},e.prototype.getImageInternal=function(t,n,i,a){return Be()},e.prototype.handleImageChange=function(t){var n=t.target,i;switch(n.getState()){case $e.LOADING:this.loading=!0,i=UC.IMAGELOADSTART;break;case $e.LOADED:this.loading=!1,i=UC.IMAGELOADEND;break;case $e.ERROR:this.loading=!1,i=UC.IMAGELOADERROR;break;default:return}this.hasListener(i)&&this.dispatchEvent(new Pot(i,n))},e}(ow);function o8(r,e){r.getImage().src=e}var s8=Uot;function Op(r,e){var t=[];Object.keys(e).forEach(function(i){e[i]!==null&&e[i]!==void 0&&t.push(i+"="+encodeURIComponent(e[i]))});var n=t.join("&");return r=r.replace(/[?&]$/,""),r=r.indexOf("?")===-1?r+"?":r+"&",r+n}var Dot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Qot=function(r){Dot(e,r);function e(t){var n=this,i=t.crossOrigin!==void 0?t.crossOrigin:null,a=t.imageLoadFunction!==void 0?t.imageLoadFunction:o8,o=t.imageSmoothing!==void 0?t.imageSmoothing:!0;return t.interpolate!==void 0&&(o=t.interpolate),n=r.call(this,{attributions:t.attributions,interpolate:o,projection:Oe(t.projection)})||this,n.url_=t.url,n.imageExtent_=t.imageExtent,n.image_=new VQ(n.imageExtent_,void 0,1,n.url_,i,a),n.imageSize_=t.imageSize?t.imageSize:null,n.image_.addEventListener(ye.CHANGE,n.handleImageChange.bind(n)),n}return e.prototype.getImageExtent=function(){return this.imageExtent_},e.prototype.getImageInternal=function(t,n,i,a){return Pn(t,this.image_.getExtent())?this.image_:null},e.prototype.getUrl=function(){return this.url_},e.prototype.handleImageChange=function(t){if(this.image_.getState()==$e.LOADED){var n=this.image_.getExtent(),i=this.image_.getImage(),a=void 0,o=void 0;this.imageSize_?(a=this.imageSize_[0],o=this.imageSize_[1]):(a=i.width,o=i.height);var s=Fr(n),A=li(n),l=s/a,u=A/o,c=a,h=o;if(l>u?c=Math.round(s/u):h=Math.round(A/l),c!==a||h!==o){var f=Ka(c,h);this.getInterpolate()||de(f,Lp);var p=f.canvas;f.drawImage(i,0,0,a,o,0,0,p.width,p.height),this.image_.setImage(p)}}r.prototype.handleImageChange.call(this,t)},e}(s8),Hot=Qot,hu="1.3.0",fu={CARMENTA_SERVER:"carmentaserver",GEOSERVER:"geoserver",MAPSERVER:"mapserver",QGIS:"qgis"},Got=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ql=4,uN=[101,101],kot=function(r){Got(e,r);function e(t){var n=this,i=t||{},a=i.imageSmoothing!==void 0?i.imageSmoothing:!0;return i.interpolate!==void 0&&(a=i.interpolate),n=r.call(this,{attributions:i.attributions,interpolate:a,projection:i.projection,resolutions:i.resolutions})||this,n.crossOrigin_=i.crossOrigin!==void 0?i.crossOrigin:null,n.url_=i.url,n.imageLoadFunction_=i.imageLoadFunction!==void 0?i.imageLoadFunction:o8,n.params_=i.params||{},n.v13_=!0,n.updateV13_(),n.serverType_=i.serverType,n.hidpi_=i.hidpi!==void 0?i.hidpi:!0,n.image_=null,n.imageSize_=[0,0],n.renderedRevision_=0,n.ratio_=i.ratio!==void 0?i.ratio:1.5,n}return e.prototype.getFeatureInfoUrl=function(t,n,i,a){if(this.url_!==void 0){var o=Oe(i),s=this.getProjection();s&&s!==o&&(n=wg(s,o,t,n),t=Qu(t,o,s));var A=Xc(t,n,0,uN),l={SERVICE:"WMS",VERSION:hu,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};de(l,this.params_,a);var u=$f((t[0]-A[0])/n,ql),c=$f((A[3]-t[1])/n,ql);return l[this.v13_?"I":"X"]=u,l[this.v13_?"J":"Y"]=c,this.getRequestUrl_(A,uN,1,s||o,l)}},e.prototype.getLegendUrl=function(t,n){if(this.url_!==void 0){var i={SERVICE:"WMS",VERSION:hu,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(n===void 0||n.LAYER===void 0){var a=this.params_.LAYERS,o=!Array.isArray(a)||a.length===1;if(!o)return;i.LAYER=a}if(t!==void 0){var s=this.getProjection()?this.getProjection().getMetersPerUnit():1,A=28e-5;i.SCALE=t*s/A}return de(i,n),Op(this.url_,i)}},e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,n,i,a){if(this.url_===void 0)return null;n=this.findNearestResolution(n),i!=1&&(!this.hidpi_||this.serverType_===void 0)&&(i=1);var o=n/i,s=Sa(t),A=lu(Fr(t)/o,ql),l=lu(li(t)/o,ql),u=Xc(s,o,0,[A,l]),c=lu(this.ratio_*Fr(t)/o,ql),h=lu(this.ratio_*li(t)/o,ql),f=Xc(s,o,0,[c,h]),p=this.image_;if(p&&this.renderedRevision_==this.getRevision()&&p.getResolution()==n&&p.getPixelRatio()==i&&Lo(p.getExtent(),u))return p;var v={SERVICE:"WMS",VERSION:hu,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};de(v,this.params_),this.imageSize_[0]=XR(Fr(f)/o,ql),this.imageSize_[1]=XR(li(f)/o,ql);var m=this.getRequestUrl_(f,this.imageSize_,i,a,v);return this.image_=new VQ(f,n,i,m,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(ye.CHANGE,this.handleImageChange.bind(this)),this.image_},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.getRequestUrl_=function(t,n,i,a,o){if(_e(this.url_!==void 0,9),o[this.v13_?"CRS":"SRS"]=a.getCode(),"STYLES"in this.params_||(o.STYLES=""),i!=1)switch(this.serverType_){case fu.GEOSERVER:var s=90*i+.5|0;"FORMAT_OPTIONS"in o?o.FORMAT_OPTIONS+=";dpi:"+s:o.FORMAT_OPTIONS="dpi:"+s;break;case fu.MAPSERVER:o.MAP_RESOLUTION=90*i;break;case fu.CARMENTA_SERVER:case fu.QGIS:o.DPI=90*i;break;default:_e(!1,8);break}o.WIDTH=n[0],o.HEIGHT=n[1];var A=a.getAxisOrientation(),l;return this.v13_&&A.substr(0,2)=="ne"?l=[t[1],t[0],t[3],t[2]]:l=t,o.BBOX=l.join(","),Op(this.url_,o)},e.prototype.getUrl=function(){return this.url_},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e.prototype.setUrl=function(t){t!=this.url_&&(this.url_=t,this.image_=null,this.changed())},e.prototype.updateParams=function(t){de(this.params_,t),this.updateV13_(),this.image_=null,this.changed()},e.prototype.updateV13_=function(){var t=this.params_.VERSION||hu;this.v13_=X6(t,"1.3")>=0},e}(s8),$ot=kot,Vot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),jot='© OpenStreetMap contributors.',Kot=function(r){Vot(e,r);function e(t){var n=t||{},i=n.imageSmoothing!==void 0?n.imageSmoothing:!0;n.interpolate!==void 0&&(i=n.interpolate);var a;n.attributions!==void 0?a=n.attributions:a=[jot];var o=n.crossOrigin!==void 0?n.crossOrigin:"anonymous",s=n.url!==void 0?n.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";return r.call(this,{attributions:a,attributionsCollapsible:!1,cacheSize:n.cacheSize,crossOrigin:o,interpolate:i,maxZoom:n.maxZoom!==void 0?n.maxZoom:19,opaque:n.opaque!==void 0?n.opaque:!0,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileLoadFunction:n.tileLoadFunction,transition:n.transition,url:s,wrapX:n.wrapX,zDirection:n.zDirection})||this}return e}(n8),zot=Kot,Yot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Xot=function(r){Yot(e,r);function e(t){var n=this,i=t||{},a=i.imageSmoothing!==void 0?i.imageSmoothing:!0;i.interpolate!==void 0&&(a=i.interpolate);var o=i.params||{},s="TRANSPARENT"in o?o.TRANSPARENT:!0;return n=r.call(this,{attributions:i.attributions,attributionsCollapsible:i.attributionsCollapsible,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,interpolate:a,opaque:!s,projection:i.projection,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileClass:i.tileClass,tileGrid:i.tileGrid,tileLoadFunction:i.tileLoadFunction,url:i.url,urls:i.urls,wrapX:i.wrapX!==void 0?i.wrapX:!0,transition:i.transition,zDirection:i.zDirection})||this,n.gutter_=i.gutter!==void 0?i.gutter:0,n.params_=o,n.v13_=!0,n.serverType_=i.serverType,n.hidpi_=i.hidpi!==void 0?i.hidpi:!0,n.tmpExtent_=wi(),n.updateV13_(),n.setKey(n.getKeyForParams_()),n}return e.prototype.getFeatureInfoUrl=function(t,n,i,a){var o=Oe(i),s=this.getProjection(),A=this.getTileGrid();A||(A=this.getTileGridForProjection(o));var l=A.getZForResolution(n,this.zDirection),u=A.getTileCoordForCoordAndZ(t,l);if(!(A.getResolutions().length<=u[0])){var c=A.getResolution(u[0]),h=A.getTileCoordExtent(u,this.tmpExtent_),f=Ui(A.getTileSize(u[0]),this.tmpSize),p=this.gutter_;p!==0&&(f=dM(f,p,this.tmpSize),h=ja(h,c*p,h)),s&&s!==o&&(c=wg(s,o,t,c),h=b_(h,o,s),t=Qu(t,o,s));var v={SERVICE:"WMS",VERSION:hu,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};de(v,this.params_,a);var m=Math.floor((t[0]-h[0])/c),g=Math.floor((h[3]-t[1])/c);return v[this.v13_?"I":"X"]=m,v[this.v13_?"J":"Y"]=g,this.getRequestUrl_(u,f,h,1,s||o,v)}},e.prototype.getLegendUrl=function(t,n){if(this.urls[0]!==void 0){var i={SERVICE:"WMS",VERSION:hu,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(n===void 0||n.LAYER===void 0){var a=this.params_.LAYERS,o=!Array.isArray(a)||a.length===1;if(!o)return;i.LAYER=a}if(t!==void 0){var s=this.getProjection()?this.getProjection().getMetersPerUnit():1,A=28e-5;i.SCALE=t*s/A}return de(i,n),Op(this.urls[0],i)}},e.prototype.getGutter=function(){return this.gutter_},e.prototype.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,n,i,a,o,s){var A=this.urls;if(A){if(s.WIDTH=n[0],s.HEIGHT=n[1],s[this.v13_?"CRS":"SRS"]=o.getCode(),"STYLES"in this.params_||(s.STYLES=""),a!=1)switch(this.serverType_){case fu.GEOSERVER:var l=90*a+.5|0;"FORMAT_OPTIONS"in s?s.FORMAT_OPTIONS+=";dpi:"+l:s.FORMAT_OPTIONS="dpi:"+l;break;case fu.MAPSERVER:s.MAP_RESOLUTION=90*a;break;case fu.CARMENTA_SERVER:case fu.QGIS:s.DPI=90*a;break;default:_e(!1,52);break}var u=o.getAxisOrientation(),c=i;if(this.v13_&&u.substr(0,2)=="ne"){var h=void 0;h=i[0],c[0]=i[1],c[1]=h,h=i[2],c[2]=i[3],c[3]=h}s.BBOX=c.join(",");var f;if(A.length==1)f=A[0];else{var p=Bu(Q4(t),A.length);f=A[p]}return Op(f,s)}},e.prototype.getTilePixelRatio=function(t){return!this.hidpi_||this.serverType_===void 0?1:t},e.prototype.getKeyForParams_=function(){var t=0,n=[];for(var i in this.params_)n[t++]=i+"-"+this.params_[i];return n.join("/")},e.prototype.updateParams=function(t){de(this.params_,t),this.updateV13_(),this.setKey(this.getKeyForParams_())},e.prototype.updateV13_=function(){var t=this.params_.VERSION||hu;this.v13_=X6(t,"1.3")>=0},e.prototype.tileUrlFunction=function(t,n,i){var a=this.getTileGrid();if(a||(a=this.getTileGridForProjection(i)),!(a.getResolutions().length<=t[0])){n!=1&&(!this.hidpi_||this.serverType_===void 0)&&(n=1);var o=a.getResolution(t[0]),s=a.getTileCoordExtent(t,this.tmpExtent_),A=Ui(a.getTileSize(t[0]),this.tmpSize),l=this.gutter_;l!==0&&(A=dM(A,l,this.tmpSize),s=ja(s,o*l,s)),n!=1&&(A=_Q(A,n,this.tmpSize));var u={SERVICE:"WMS",VERSION:hu,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return de(u,this.params_),this.getRequestUrl_(t,A,s,n,i,u)}},e}(gw),Wot=Xot,Pm={KVP:"KVP",REST:"REST"},qot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Zot=function(r){qot(e,r);function e(t){var n=r.call(this,{extent:t.extent,origin:t.origin,origins:t.origins,resolutions:t.resolutions,tileSize:t.tileSize,tileSizes:t.tileSizes,sizes:t.sizes})||this;return n.matrixIds_=t.matrixIds,n}return e.prototype.getMatrixId=function(t){return this.matrixIds_[t]},e.prototype.getMatrixIds=function(){return this.matrixIds_},e}(LF),db=Zot,Jot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),tst=function(r){Jot(e,r);function e(t){var n=this,i=t.imageSmoothing!==void 0?t.imageSmoothing:!0;t.interpolate!==void 0&&(i=t.interpolate);var a=t.requestEncoding!==void 0?t.requestEncoding:Pm.KVP,o=t.tileGrid,s=t.urls;return s===void 0&&t.url!==void 0&&(s=e8(t.url)),n=r.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:i,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:o,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,urls:s,wrapX:t.wrapX!==void 0?t.wrapX:!1,transition:t.transition,zDirection:t.zDirection})||this,n.version_=t.version!==void 0?t.version:"1.0.0",n.format_=t.format!==void 0?t.format:"image/jpeg",n.dimensions_=t.dimensions!==void 0?t.dimensions:{},n.layer_=t.layer,n.matrixSet_=t.matrixSet,n.style_=t.style,n.requestEncoding_=a,n.setKey(n.getKeyForDimensions_()),s&&s.length>0&&(n.tileUrlFunction=V_(s.map(n.createFromWMTSTemplate.bind(n)))),n}return e.prototype.setUrls=function(t){this.urls=t;var n=t.join(` +`);this.setTileUrlFunction(V_(t.map(this.createFromWMTSTemplate.bind(this))),n)},e.prototype.getDimensions=function(){return this.dimensions_},e.prototype.getFormat=function(){return this.format_},e.prototype.getLayer=function(){return this.layer_},e.prototype.getMatrixSet=function(){return this.matrixSet_},e.prototype.getRequestEncoding=function(){return this.requestEncoding_},e.prototype.getStyle=function(){return this.style_},e.prototype.getVersion=function(){return this.version_},e.prototype.getKeyForDimensions_=function(){var t=0,n=[];for(var i in this.dimensions_)n[t++]=i+"-"+this.dimensions_[i];return n.join("/")},e.prototype.updateDimensions=function(t){de(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())},e.prototype.createFromWMTSTemplate=function(t){var n=this.requestEncoding_,i={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};n==Pm.KVP&&de(i,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t=n==Pm.KVP?Op(t,i):t.replace(/\{(\w+?)\}/g,function(s,A){return A.toLowerCase()in i?i[A.toLowerCase()]:s});var a=this.tileGrid,o=this.dimensions_;return function(s,A,l){if(s){var u={TileMatrix:a.getMatrixId(s[0]),TileCol:s[1],TileRow:s[2]};de(u,o);var c=t;return n==Pm.KVP?c=Op(c,u):c=c.replace(/\{(\w+?)\}/g,function(h,f){return u[f]}),c}else return}},e}(gw),A8=tst;window.ol&&!ol.ext&&(ol.ext={});var Cr=function(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r};window.ol&&(ol.inherits||(ol.inherits=Cr));window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);window.Element&&!Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});function mw(r){const e=r.frameState,t=kp(r.inversePixelTransform.slice(),e.coordinateToPixelTransform);return new pF(r.context,e.pixelRatio,e.extent,t,e.viewState.rotation)}window.ol&&(ol.util?ol.util.VERSION||(ol.util.VERSION=ol.VERSION||"6.1.0"):ol.util={VERSION:ol.VERSION||"5.3.0"});var G0=L6.split(".");G0=parseInt(G0[0])*100+parseInt(G0[1]);var vb=function(r,e){var t=r.frameState.pixelRatio;if(G0>605&&t!==1&&e.getImage()instanceof ny){e=e.clone();var n=e.getImage();n.setScale(n.getScale()*t);var i=n.getAnchor();if(n.setDisplacement){var a=n.getDisplacement();a&&(a[0]-=i[0]/t,a[1]+=i[1]/t,n.setAnchor([0,0]))}else i&&(i[0]/=t,i[1]/=t)}return e},Fh=function(r){var e=r||{};fA.call(this,e),this.oldcluster=new wl,this.clusters=[],this.animation={start:!1},this.set("animationDuration",typeof e.animationDuration=="number"?e.animationDuration:700),this.set("animationMethod",e.animationMethod||es),this.getSource().on("change",this.saveCluster.bind(this)),this.on(["precompose","prerender"],this.animate.bind(this)),this.on(["postcompose","postrender"],this.postanimate.bind(this))};Cr(Fh,fA);Fh.prototype.saveCluster=function(){if(this.oldcluster){if(this.oldcluster.clear(),!this.get("animationDuration"))return;var r=this.getSource().getFeatures();r.length&&r[0].get("features")&&(this.oldcluster.addFeatures(this.clusters),this.clusters=r.slice(0),this.sourceChanged=!0)}};Fh.prototype.getClusterForFeature=function(r,e){for(var t=0,n;n=e[t];t++){var i=n.get("features");if(i&&i.length){for(var a=0,o;o=i[a];a++)if(r===o)return n}}return!1};Fh.prototype.stopAnimation=function(){this.animation.start=!1,this.animation.cA=[],this.animation.cB=[]};Fh.prototype.animate=function(r){var e=this.get("animationDuration");if(e){var t=r.frameState.viewState.resolution,n,i,a=this.animation,o=r.frameState.time;if(a.resolution!=t&&this.sourceChanged){var s=r.frameState.extent;for(a.resolution1e3){this.stopAnimation();return}o=a.start=new Date().getTime()}if(a.start){var u=r.vectorContext||mw(r),c=(o-a.start)/e;c>1&&(this.stopAnimation(),c=1),c=this.get("animationMethod")(c);var h=this.getStyle(),f=typeof h=="function"?h:h.length?function(){return h}:function(){return[h]};for(r.context.save(),r.context.globalAlpha=this.getOpacity(),n=0,l;l=a.clusters[n];n++){var p=l.f.getGeometry().getCoordinates(),v=p[0]-l.pt[0],m=p[1]-l.pt[1];a.revers?(p[0]=l.pt[0]+c*v,p[1]=l.pt[1]+c*m):(p[0]=p[0]-c*v,p[1]=p[1]-c*m);var g=f(l.f,t,!0);if(g.length||(g=[g]),l.f.get("features").length===1&&!v&&!m)A=l.f.get("features")[0];else{var _=new pr(p);A=new or(_)}for(var E=0,B;B=g[E];E++)if(B.getText()&&/\n/.test(B.getText().getText())){var L=B.getText().getOffsetX(),O=B.getText().getOffsetY(),x=B.getText().getRotation()||0,T=Number((B.getText().getFont()||"10px").match(/\d+/))*1.2,I=B.getText().getText().split(` +`),M,S=I.length-1,b=B.clone();I.forEach(function(N,P){switch(P==1&&(b.setImage(),b.setFill(),b.setStroke()),B.getText().getTextBaseline()){case"alphabetic":case"ideographic":case"bottom":{M=S;break}case"hanging":case"top":{M=0;break}default:{M=S/2;break}}b.getText().setOffsetX(L-Math.sin(x)*T*(P-M)),b.getText().setOffsetY(O+Math.cos(x)*T*(P-M)),b.getText().setText(N),u.drawFeature(A,vb(r,b))})}else u.drawFeature(A,vb(r,B))}r.context.restore(),r.frameState.animate=!0,r.context.save(),r.context.beginPath(),r.context.rect(0,0,0,0),r.context.clip(),this.clip_=!0}}};Fh.prototype.postanimate=function(r){this.clip_&&(r.context.restore(),this.clip_=!1)};const est={extends:Ih,name:"ol-animated-clusterlayer",setup(r){const e=Ce("map"),{properties:t}=vr(r),n=fr(()=>new Fh(Rs(Qn({},t),{source:new i8({distance:t.distance,geometryFunction:o=>o.getGeometry()})}))),i=fr(()=>n.value.getSource());return he(t,()=>{n.value.setProperties(t),n.value.changed()}),Ze(()=>{e.addLayer(n.value),n.value.changed(),e.changed()}),ir(()=>{e.removeLayer(n.value)}),Mr("vectorLayer",i),Mr("stylable",n),{vectorLayer:n,map:e}},props:{animationDuration:{type:Number,default:700},distance:{type:Number,default:20},animationMethod:{type:Function,default:es},updateWhileAnimating:{type:Boolean,default:!1},updateWhileInteracting:{type:Boolean,default:!1}}};function rst(r,e,t,n,i,a){return tn(),Ln("div",null,[mr(r.$slots,"default")])}var gb=le(est,[["render",rst]]),ks=new Uint8Array(4),nst=function(){function r(e,t){this.helper_=e;var n=e.getGL();this.texture_=n.createTexture(),this.framebuffer_=n.createFramebuffer(),this.size_=t||[1,1],this.data_=new Uint8Array(0),this.dataCacheDirty_=!0,this.updateSize_()}return r.prototype.setSize=function(e){ml(e,this.size_)||(this.size_[0]=e[0],this.size_[1]=e[1],this.updateSize_())},r.prototype.getSize=function(){return this.size_},r.prototype.clearCachedData=function(){this.dataCacheDirty_=!0},r.prototype.readAll=function(){if(this.dataCacheDirty_){var e=this.size_,t=this.helper_.getGL();t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer_),t.readPixels(0,0,e[0],e[1],t.RGBA,t.UNSIGNED_BYTE,this.data_),this.dataCacheDirty_=!1}return this.data_},r.prototype.readPixel=function(e,t){if(e<0||t<0||e>this.size_[0]||t>=this.size_[1])return ks[0]=0,ks[1]=0,ks[2]=0,ks[3]=0,ks;this.readAll();var n=Math.floor(e)+(this.size_[1]-Math.floor(t)-1)*this.size_[0];return ks[0]=this.data_[n*4],ks[1]=this.data_[n*4+1],ks[2]=this.data_[n*4+2],ks[3]=this.data_[n*4+3],ks},r.prototype.getTexture=function(){return this.texture_},r.prototype.getFramebuffer=function(){return this.framebuffer_},r.prototype.updateSize_=function(){var e=this.size_,t=this.helper_.getGL();this.texture_=this.helper_.createTexture(e,null,this.texture_),t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer_),t.viewport(0,0,e[0],e[1]),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.texture_,0),this.data_=new Uint8Array(e[0]*e[1]*4)},r}(),ist=nst;function ast(){var r='var e="function"==typeof Object.assign?Object.assign:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,o=arguments.length;r"u"?"data:application/javascript;base64,"+Buffer.from(r,"binary").toString("base64"):URL.createObjectURL(new Blob([r],{type:"application/javascript"})))}var ost=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),sst=function(r){ost(e,r);function e(t,n){var i=this,a=n.uniforms||{},o=si();a[Pf.PROJECTION_MATRIX]=o,i=r.call(this,t,{uniforms:a,postProcesses:n.postProcesses})||this,i.ready=!1,i.sourceRevision_=-1,i.verticesBuffer_=new Hv(Eg,D0),i.hitVerticesBuffer_=new Hv(Eg,D0),i.indicesBuffer_=new Hv(hw,D0),i.vertexShader_=n.vertexShader,i.fragmentShader_=n.fragmentShader,i.program_,i.hitDetectionEnabled_=!!(n.hitFragmentShader&&n.hitVertexShader),i.hitVertexShader_=n.hitVertexShader,i.hitFragmentShader_=n.hitFragmentShader,i.hitProgram_;var s=n.attributes?n.attributes.map(function(l){return{name:"a_"+l.name,size:1,type:Xo.FLOAT}}):[];i.attributes=[{name:"a_position",size:2,type:Xo.FLOAT},{name:"a_index",size:1,type:Xo.FLOAT}].concat(s),i.hitDetectionAttributes=[{name:"a_position",size:2,type:Xo.FLOAT},{name:"a_index",size:1,type:Xo.FLOAT},{name:"a_hitColor",size:4,type:Xo.FLOAT},{name:"a_featureUid",size:1,type:Xo.FLOAT}].concat(s),i.customAttributes=n.attributes?n.attributes:[],i.previousExtent_=wi(),i.currentTransform_=o,i.renderTransform_=si(),i.invertRenderTransform_=si(),i.renderInstructions_=new Float32Array(0),i.hitRenderInstructions_=new Float32Array(0),i.hitRenderTarget_,i.generateBuffersRun_=0,i.worker_=ast(),i.worker_.addEventListener("message",function(l){var u=l.data;if(u.type===OC.GENERATE_BUFFERS){var c=u.projectionTransform;u.hitDetection?(this.hitVerticesBuffer_.fromArrayBuffer(u.vertexBuffer),this.helper.flushBufferData(this.hitVerticesBuffer_)):(this.verticesBuffer_.fromArrayBuffer(u.vertexBuffer),this.helper.flushBufferData(this.verticesBuffer_)),this.indicesBuffer_.fromArrayBuffer(u.indexBuffer),this.helper.flushBufferData(this.indicesBuffer_),this.renderTransform_=c,Kg(this.invertRenderTransform_,this.renderTransform_),u.hitDetection?this.hitRenderInstructions_=new Float32Array(l.data.renderInstructions):(this.renderInstructions_=new Float32Array(l.data.renderInstructions),u.generateBuffersRun===this.generateBuffersRun_&&(this.ready=!0)),this.getLayer().changed()}}.bind(i)),i.featureCache_={},i.featureCount_=0;var A=i.getLayer().getSource();return i.sourceListenKeys_=[Pe(A,Ri.ADDFEATURE,i.handleSourceFeatureAdded_,i),Pe(A,Ri.CHANGEFEATURE,i.handleSourceFeatureChanged_,i),Pe(A,Ri.REMOVEFEATURE,i.handleSourceFeatureDelete_,i),Pe(A,Ri.CLEAR,i.handleSourceFeatureClear_,i)],A.forEachFeature(function(l){this.featureCache_[pe(l)]={feature:l,properties:l.getProperties(),geometry:l.getGeometry()},this.featureCount_++}.bind(i)),i}return e.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.hitDetectionEnabled_&&(this.hitProgram_=this.helper.getProgram(this.hitFragmentShader_,this.hitVertexShader_),this.hitRenderTarget_=new ist(this.helper))},e.prototype.handleSourceFeatureAdded_=function(t){var n=t.feature;this.featureCache_[pe(n)]={feature:n,properties:n.getProperties(),geometry:n.getGeometry()},this.featureCount_++},e.prototype.handleSourceFeatureChanged_=function(t){var n=t.feature;this.featureCache_[pe(n)]={feature:n,properties:n.getProperties(),geometry:n.getGeometry()}},e.prototype.handleSourceFeatureDelete_=function(t){var n=t.feature;delete this.featureCache_[pe(n)],this.featureCount_--},e.prototype.handleSourceFeatureClear_=function(){this.featureCache_={},this.featureCount_=0},e.prototype.renderFrame=function(t){var n=this.helper.getGL();this.preRender(n,t);var i=this.indicesBuffer_.getSize();this.helper.drawElements(0,i),this.helper.finalizeDraw(t,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);var a=this.helper.getCanvas();return this.hitDetectionEnabled_&&(this.renderHitDetection(t),this.hitRenderTarget_.clearCachedData()),this.postRender(n,t),a},e.prototype.prepareFrameInternal=function(t){var n=this.getLayer(),i=n.getSource(),a=t.viewState,o=!t.viewHints[gn.ANIMATING]&&!t.viewHints[gn.INTERACTING],s=!lA(this.previousExtent_,t.extent),A=this.sourceRevision_new lst(t));return he(t,()=>{n.value.setProperties(t)}),Ze(()=>{e.addLayer(n.value)}),ir(()=>{e.removeLayer(n.value)}),Mr("webglPointsLayer",n),{webglPointsLayer:n}},props:{disableHitDetection:{type:Boolean,default:!1},style:{type:Object,default:()=>({symbol:{symbolType:"circle",size:8,color:"#33AAFF",opacity:.9}})}}};function cst(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var yS=le(ust,[["render",cst]]),hst=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ps={BLUR:"blur",GRADIENT:"gradient",RADIUS:"radius"},fst=["#00f","#0ff","#0f0","#ff0","#f00"],pst=function(r){hst(e,r);function e(t){var n=this,i=t||{},a=de({},i);delete a.gradient,delete a.radius,delete a.blur,delete a.weight,n=r.call(this,a)||this,n.gradient_=null,n.addChangeListener(ps.GRADIENT,n.handleGradientChanged_),n.setGradient(i.gradient?i.gradient:fst),n.setBlur(i.blur!==void 0?i.blur:15),n.setRadius(i.radius!==void 0?i.radius:8);var o=i.weight?i.weight:"weight";return typeof o=="string"?n.weightFunction_=function(s){return s.get(o)}:n.weightFunction_=o,n.setRenderOrder(null),n}return e.prototype.getBlur=function(){return this.get(ps.BLUR)},e.prototype.getGradient=function(){return this.get(ps.GRADIENT)},e.prototype.getRadius=function(){return this.get(ps.RADIUS)},e.prototype.handleGradientChanged_=function(){this.gradient_=dst(this.getGradient())},e.prototype.setBlur=function(t){this.set(ps.BLUR,t)},e.prototype.setGradient=function(t){this.set(ps.GRADIENT,t)},e.prototype.setRadius=function(t){this.set(ps.RADIUS,t)},e.prototype.createRenderer=function(){return new l8(this,{className:this.getClassName(),attributes:[{name:"weight",callback:function(t){var n=this.weightFunction_(t);return n!==void 0?xn(n,0,1):1}.bind(this)}],vertexShader:` +}`)},r}();function lst(r){var e=r.symbol,t=e.size!==void 0?e.size:1,n=e.color||"white",i=e.textureCoord||[0,0,1,1],a=e.offset||[0,0],o=e.opacity!==void 0?e.opacity:1,s=e.rotation!==void 0?e.rotation:0,A={inFragmentShader:!1,variables:[],attributes:[],stringLiteralsMap:{},functions:{}},l=Ae(A,t,Jt.NUMBER_ARRAY|Jt.NUMBER),u=Ae(A,a,Jt.NUMBER_ARRAY),c=Ae(A,i,Jt.NUMBER_ARRAY),h=Ae(A,s,Jt.NUMBER),f={inFragmentShader:!0,variables:A.variables,attributes:[],stringLiteralsMap:A.stringLiteralsMap,functions:{}},p=Ae(f,n,Jt.COLOR),v=Ae(f,o,Jt.NUMBER),m="1.0",g="vec2(".concat(Ae(f,t,Jt.NUMBER_ARRAY|Jt.NUMBER),").x");switch(e.symbolType){case"square":break;case"image":break;case"circle":m="(1.0-smoothstep(1.-4./".concat(g,",1.,dot(v_quadCoord-.5,v_quadCoord-.5)*4.))");break;case"triangle":var _="(v_quadCoord*2.-1.)",E="(atan(".concat(_,".x,").concat(_,".y))");m="(1.0-smoothstep(.5-3./".concat(g,",.5,cos(floor(.5+").concat(E,"/2.094395102)*2.094395102-").concat(E,")*length(").concat(_,")))");break;default:throw new Error("Unexpected symbol type: "+e.symbolType)}var B=new Ast().setSizeExpression("vec2(".concat(l,")")).setRotationExpression(h).setSymbolOffsetExpression(u).setTextureCoordinateExpression(c).setSymbolRotateWithView(!!e.rotateWithView).setColorExpression("vec4(".concat(p,".rgb, ").concat(p,".a * ").concat(v," * ").concat(m,")"));if(r.filter){var L=Ae(f,r.filter,Jt.BOOLEAN);B.setFragmentDiscardExpression("!".concat(L))}var O={};if(f.variables.forEach(function(T){var I=FF(T);B.addUniform("float ".concat(I)),O[I]=function(){if(!r.variables||r.variables[T]===void 0)throw new Error("The following variable is missing from the style: ".concat(T));var M=r.variables[T];return typeof M=="string"&&(M=$_(A,M)),M!==void 0?M:-9999999}}),e.symbolType==="image"&&e.src){var x=new Image;x.crossOrigin=e.crossOrigin===void 0?"anonymous":e.crossOrigin,x.src=e.src,B.addUniform("sampler2D u_texture").setColorExpression(B.getColorExpression()+" * texture2D(u_texture, v_texCoord)"),O.u_texture=x}return f.attributes.forEach(function(T){A.attributes.indexOf(T)===-1&&A.attributes.push(T),B.addVarying("v_".concat(T),"float","a_".concat(T))}),A.attributes.forEach(function(T){B.addAttribute("float a_".concat(T))}),{builder:B,attributes:A.attributes.map(function(T){return{name:T,callback:function(I,M){var S=M[T];return typeof S=="string"&&(S=$_(A,S)),S!==void 0?S:-9999999}}}),uniforms:O}}var ust=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),cst=function(r){ust(e,r);function e(t){var n=this,i=de({},t);return n=r.call(this,i)||this,n.parseResult_=lst(t.style),n.styleVariables_=t.style.variables||{},n.hitDetectionDisabled_=!!t.disableHitDetection,n}return e.prototype.createRenderer=function(){return new l8(this,{vertexShader:this.parseResult_.builder.getSymbolVertexShader(),fragmentShader:this.parseResult_.builder.getSymbolFragmentShader(),hitVertexShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolVertexShader(!0),hitFragmentShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolFragmentShader(!0),uniforms:this.parseResult_.uniforms,attributes:this.parseResult_.attributes})},e.prototype.updateStyleVariables=function(t){de(this.styleVariables_,t),this.changed()},e}(bh),hst=cst;const fst={extends:Ih,name:"ol-webglpoints-layer",setup(r){const e=Ce("map"),{properties:t}=vr(r),n=fr(()=>new hst(t));return he(t,()=>{n.value.setProperties(t)}),Ze(()=>{e.addLayer(n.value)}),ir(()=>{e.removeLayer(n.value)}),Mr("webglPointsLayer",n),{webglPointsLayer:n}},props:{disableHitDetection:{type:Boolean,default:!1},style:{type:Object,default:()=>({symbol:{symbolType:"circle",size:8,color:"#33AAFF",opacity:.9}})}}};function pst(r,e,t,n,i,a){return tn(),Ln("div",null,[mr(r.$slots,"default")])}var yb=le(fst,[["render",pst]]),dst=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ds={BLUR:"blur",GRADIENT:"gradient",RADIUS:"radius"},vst=["#00f","#0ff","#0f0","#ff0","#f00"],gst=function(r){dst(e,r);function e(t){var n=this,i=t||{},a=de({},i);delete a.gradient,delete a.radius,delete a.blur,delete a.weight,n=r.call(this,a)||this,n.gradient_=null,n.addChangeListener(ds.GRADIENT,n.handleGradientChanged_),n.setGradient(i.gradient?i.gradient:vst),n.setBlur(i.blur!==void 0?i.blur:15),n.setRadius(i.radius!==void 0?i.radius:8);var o=i.weight?i.weight:"weight";return typeof o=="string"?n.weightFunction_=function(s){return s.get(o)}:n.weightFunction_=o,n.setRenderOrder(null),n}return e.prototype.getBlur=function(){return this.get(ds.BLUR)},e.prototype.getGradient=function(){return this.get(ds.GRADIENT)},e.prototype.getRadius=function(){return this.get(ds.RADIUS)},e.prototype.handleGradientChanged_=function(){this.gradient_=yst(this.getGradient())},e.prototype.setBlur=function(t){this.set(ds.BLUR,t)},e.prototype.setGradient=function(t){this.set(ds.GRADIENT,t)},e.prototype.setRadius=function(t){this.set(ds.RADIUS,t)},e.prototype.createRenderer=function(){return new l8(this,{className:this.getClassName(),attributes:[{name:"weight",callback:function(t){var n=this.weightFunction_(t);return n!==void 0?Sn(n,0,1):1}.bind(this)}],vertexShader:` precision mediump float; uniform mat4 u_projectionMatrix; uniform mat4 u_offsetScaleMatrix; @@ -683,7 +683,7 @@ void main(void) { } gl_FragColor = v_hitColor; - }`,uniforms:{u_size:function(){return(this.get(ps.RADIUS)+this.get(ps.BLUR))*2}.bind(this),u_blurSlope:function(){return this.get(ps.RADIUS)/Math.max(1,this.get(ps.BLUR))}.bind(this)},postProcesses:[{fragmentShader:` + }`,uniforms:{u_size:function(){return(this.get(ds.RADIUS)+this.get(ds.BLUR))*2}.bind(this),u_blurSlope:function(){return this.get(ds.RADIUS)/Math.max(1,this.get(ds.BLUR))}.bind(this)},postProcesses:[{fragmentShader:` precision mediump float; uniform sampler2D u_image; @@ -697,13 +697,13 @@ void main(void) { gl_FragColor.a = color.a * u_opacity; gl_FragColor.rgb = texture2D(u_gradientTexture, vec2(0.5, color.a)).rgb; gl_FragColor.rgb *= gl_FragColor.a; - }`,uniforms:{u_gradientTexture:function(){return this.gradient_}.bind(this),u_opacity:function(){return this.getOpacity()}.bind(this)}}]})},e.prototype.renderDeclutter=function(){},e}(aw);function dst(r){for(var e=1,t=256,n=ja(e,t),i=n.createLinearGradient(0,0,e,t),a=1/(r.length-1),o=0,s=r.length;onew u8(t));return he(t,()=>{n.value.setProperties(t)}),Ze(()=>{e.addLayer(n.value)}),ir(()=>{e.removeLayer(n.value)}),Mr("heatmapLayer",n),Mr("stylable",n),{heatmapLayer:n}},props:{weight:{type:Function},extent:{type:Array},blur:{type:Number},radius:{type:Number}}};function gst(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var mS=le(vst,[["render",gst]]);function j_(r){j_.installed||(j_.installed=!0,r.component(cS.name,cS),r.component(hS.name,hS),r.component(fS.name,fS),r.component(pS.name,pS),r.component(gS.name,gS),r.component(yS.name,yS),r.component(mS.name,mS))}var yst=Object.freeze(Object.defineProperty({__proto__:null,default:j_,install:j_,TileLayer:cS,WebGLTileLayer:hS,ImageLayer:fS,VectorLayer:pS,AnimatedClusterLayer:gS,WebglPointsLayer:yS,HeatmapLayer:mS},Symbol.toStringTag,{value:"Module"}));const mst={name:"ol-source-xyz",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r);let n=hr(()=>new n8(t));return he(n,()=>{e.value.setSource(n.value)}),he(e,()=>{e.value.setSource(n.value)}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{attributions:{type:[String,Array]},url:{type:String},cacheSize:{type:Number,default:2048},crossOrigin:{type:String},maxZoom:{type:Number,default:28},minZoom:{type:Number,default:0},opaque:{type:Boolean},projection:{type:String,default:"EPSG:3857"},reprojectionErrorThreshold:{type:Number,default:.5},tileSize:{type:Array,default:()=>[256,256]},tilePixelRatio:{type:Number,default:1},tileKey:{type:String},transition:{type:Number},tileGrid:{type:Object}}};function _st(r,e,t,n,i,a){return dr("",!0)}var _S=le(mst,[["render",_st]]);const wst={name:"ol-source-osm",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r);let n=hr(()=>new Vot(t));return he(n,()=>{e.value.setSource(n.value)}),he(e,()=>{e.value.setSource(n.value)}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{attributions:{type:String},cacheSize:{type:Number,default:2048},crossOrigin:{type:String,default:"anonymous"},imageSmoothing:{type:Boolean,default:!0},minZoom:{type:Number,default:0},maxZoom:{type:Number,default:19},opaque:{type:Boolean,default:!0},reprojectionErrorThreshold:{type:Number,default:.5},transition:{type:Number,default:250},url:{type:String,default:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"},wrapX:{type:Boolean,default:!0}}};function Est(r,e,t,n,i,a){return dr("",!0)}var wS=le(wst,[["render",Est]]);const Cst={name:"ol-source-image-static",setup(r){const e=Ce("imageLayer"),{properties:t}=vr(r),n=()=>new Uot(Os(Un({},t),{projection:typeof t.projection=="string"?t.projection:new ml(Un({},t.projection))}));let i=n();return he(t,()=>{e.setSource(null),i=n(),e.setSource(i)}),Ze(()=>{e.setSource(i)}),ir(()=>{e.setSource(null)}),{layer:e,source:i}},props:{attributions:{type:String},crossOrigin:{type:String},imageExtent:{type:Array},projection:{type:[String,Object]},imageSmoothing:{type:Boolean,default:!0},imageSize:{type:Array},url:{type:String}}};function Bst(r,e,t,n,i,a){return dr("",!0)}var ES=le(Cst,[["render",Bst]]);const Tst={name:"ol-source-wmts",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r),n=hr(()=>Oe(t.projection).getExtent()),i=hr(()=>Rs(n.value)),a=hr(()=>Fr(n.value)/256),o=hr(()=>{const A=new Array(t.tileZoomLevel),l=new Array(t.tileZoomLevel);for(var u=0;unew A8(Os(Un({},t),{projection:typeof t.projection=="string"?t.projection:new ml(Un({},t.projection)),tileGrid:o.value})));return he(s,()=>{e.value.setSource(s.value)}),he(e,()=>{e.value.setSource(s.value)}),Ze(()=>{e.value.setSource(s.value)}),ir(()=>{e.value.setSource(null)}),{tileLayer:e,source:s}},props:{tileZoomLevel:{type:Number,default:30},attributions:{type:String},cacheSize:{type:Number},crossOrigin:{type:String},imageSmoothing:{type:Boolean,default:!0},projection:{type:[String,Object],default:"EPSG:3857"},reprojectionErrorThreshold:{type:Number,default:.5},tilePixelRatio:{type:Number,default:1},format:{type:String,default:"image/jpeg"},version:{type:String,default:"1.0.0"},matrixSet:{type:String},dimensions:{type:Object},requestEncoding:{type:String,default:"KVP"},url:{type:String},urls:{type:Array},wrapX:{type:Boolean,default:!1},transition:{type:Number},layer:{type:String},style:{type:String}}};function Sst(r,e,t,n,i,a){return dr("",!0)}var CS=le(Tst,[["render",Sst]]);const xst={name:"ol-source-vector",setup(r){const e=Ce("vectorLayer")||Ce("heatmapLayer"),{properties:t}=vr(r);let n=hr(()=>new _l(t));const i=()=>{e.value.setSource(null),e.value.setSource(n.value),e.value.changed()};return he(t,()=>{i()}),he(e,()=>{i()}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),Mr("vectorSource",n),{layer:e,source:n}},props:{attributions:{type:[String,Array]},features:{type:Array,default:()=>[]},format:{type:Object},loader:{type:Function},overlaps:{type:Boolean,default:!0},projection:{type:String,default:"EPSG:3857"},strategy:{type:Function},url:{type:[String,Function]},useSpatialIndex:{type:Boolean,default:!0},wrapX:{type:Boolean,default:!0}}};function bst(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var BS=le(xst,[["render",bst]]);const Ist={name:"ol-source-cluster",setup(r){const e=Ce("vectorLayer"),{properties:t}=vr(r);let n=hr(()=>new i8(t));const i=()=>{e.value.setSource(null),e.value.setSource(n.value),e.value.changed()};return he(t,()=>{i()}),he(e,()=>{i()}),Ze(()=>{e.value.setSource(n.value),e.value.changed()}),ir(()=>{e.value.setSource(null)}),Mr("vectorLayer",n),{layer:e,source:n}},props:{attributions:{type:[String,Array]},distance:{type:Number,default:20},geometryFunction:{type:Function,default:r=>r.getGeometry()},wrapX:{type:Boolean,default:!0}}};function Fst(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var TS=le(Ist,[["render",Fst]]);const Lst={name:"ol-source-bingmaps",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r);let n=hr(()=>new got(Os(Un({},t),{key:t.apiKey})));return he(n,()=>{e.value.setSource(n.value)}),he(e,()=>{e.value.setSource(n.value)}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{cacheSize:{type:Number},hidpi:{type:Boolean,default:!1},culture:{type:String,default:"en-us"},apiKey:{type:String},imagerySet:{type:String},imageSmoothing:{type:Boolean,default:!0},maxZoom:{type:Number,default:21},reprojectionErrorThreshold:{type:Number,default:.5},tileLoadFunction:{type:Function,default:(r,e)=>r.getImage().src=e},wrapX:{type:Boolean,default:!0},transition:{type:Number}}};function Ost(r,e,t,n,i,a){return dr("",!0)}var SS=le(Lst,[["render",Ost]]);class zA extends A8{constructor(e){zA.layerLabelMap={vec:"cva",ter:"cta",img:"cia"},zA.layerZoomMap={vec:18,ter:14,img:18};let t=e||{};t.layerType=t.layerType||"vec",t.layerType=t.isLabel?zA.layerLabelMap[t.layerType]:t.layerType,t.matrixSet=t.projection==="EPSG:4326"||t.projection==="EPSG:4490"?"c":"w",!t.url&&!t.urls&&(t.url="https://t{0-7}.tianditu.gov.cn/{layer}_{proj}/wmts?"),t.tk&&(t.url=`${t.url}tk=${t.tk}`),t.url=t.url.replace("{layer}",t.layerType).replace("{proj}",t.matrixSet);let n=t.tileGrid||zA.getTileGrid(t.projection||"EPSG:3857"),i=t.crossOrigin!==void 0?t.crossOrigin:"anonymous",a={version:t.version||"1.0.0",format:t.format||"tiles",dimensions:t.dimensions||{},layer:t.layerType,matrixSet:t.matrixSet,tileGrid:n,style:t.style||"default",cacheSize:t.cacheSize,crossOrigin:i,opaque:t.opaque===void 0?!0:t.opaque,maxZoom:zA.layerZoomMap[t.layerType],reprojectionErrorThreshold:t.reprojectionErrorThreshold,url:t.url,urls:t.urls,projection:t.projection||"EPSG:3857",wrapX:t.wrapX};t.tileProxy&&(a.tileLoadFunction=s),super(a),t.tileProxy&&(this.tileProxy=t.tileProxy);let o=this;function s(A,l){A.getImage().src=o.tileProxy+encodeURIComponent(l)}}static getTileGrid(e){return e==="EPSG:4326"||e==="EPSG:4490"?zA.default4326TileGrid():zA.default3857TileGrid()}static default4326TileGrid(){let e=[],t=[];for(let i=1;i<19;i++)e.push(.703125*2/Math.pow(2,i)),t.push(i);return new dS({extent:[-180,-90,180,90],resolutions:e,origin:[-180,90],matrixIds:t,minZoom:1})}static default3857TileGrid(){let e=[],t=[];for(let i=1;i<19;i++)e.push(78271.51696402031*2/Math.pow(2,i)),t.push(i);return new dS({extent:[-200375083427892e-7,-200375083427892e-7,200375083427892e-7,200375083427892e-7],resolutions:e,matrixIds:t,origin:[-200375083427892e-7,200375083427892e-7],minZoom:1})}}const Rst={name:"ol-source-tianditu",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r);let n=hr(()=>new zA(t));return he(n,()=>{e.value.setSource(n.value)}),he(e,()=>{e.value.setSource(n.value)}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{layerType:{type:String,default:"img"},tk:{type:String},isLabel:{type:Boolean,default:!1},cacheSize:{type:Number},crossOrigin:{type:String},projection:{Type:String,default:"EPSG:3857"},hidpi:{type:Boolean,default:!1},requestEncoding:{type:String,default:"KVP"},format:{type:String},version:{type:String,default:"1.0.0"},culture:{type:String,default:"en-us"},matrixSet:{type:String},dimensions:{type:Object,default:()=>{}},imageSmoothing:{type:Boolean,default:!0},maxZoom:{type:Number,default:21},reprojectionErrorThreshold:{type:Number},tileLoadFunction:{type:Function,default:(r,e)=>r.getImage().src=e},wrapX:{type:Boolean,default:!0},transition:{type:Number}}};function Mst(r,e,t,n,i,a){return dr("",!0)}var xS=le(Rst,[["render",Mst]]);const Nst={name:"ol-source-image-wms",setup(r){const e=Ce("imageLayer"),{properties:t}=vr(r),n=()=>new Hot(Os(Un({},t),{params:{LAYERS:r.layers,STYLES:r.styles,TIME:r.time},projection:typeof t.projection=="string"?t.projection:new ml(Un({},t.projection))}));let i=n();return he(t,()=>{e.setSource(null),i=n(),e.setSource(i)}),Ze(()=>{e.setSource(i)}),ir(()=>{e.setSource(null)}),{layer:e,source:i}},props:{attributions:{type:String},crossOrigin:{type:String},imageExtent:{type:Array},projection:{type:[String,Object],default:"EPSG:3857"},reprojectionErrorThreshold:{type:Number,default:.5},format:{type:String,default:"image/png"},version:{type:String,default:"1.3.0"},matrixSet:{type:String},serverType:{type:String,default:"mapserver"},imageSmoothing:{type:Boolean,default:!0},layers:{type:[String,Array],required:!0},styles:{type:[String,Array],default:""},time:{type:String},ratio:{type:Number,default:1},imageSize:{type:Array},url:{type:String},params:{type:Object},imageLoadFunction:{type:Function}}};function Pst(r,e,t,n,i,a){return dr("",!0)}var bS=le(Nst,[["render",Pst]]);const Ust={name:"ol-source-webglpoints",setup(r){const e=Ce("webglPointsLayer"),{properties:t}=vr(r);let n=hr(()=>new _l(t));const i=()=>{e.value.setSource(null),e.value.setSource(n.value),e.value.changed()};return he(t,()=>{i()}),he(e,()=>{i()}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),Mr("vectorSource",n),{layer:e,source:n}},props:{attributions:{type:[String,Array]},features:{type:Array,default:()=>[]},format:{type:Object},loader:{type:Function},overlaps:{type:Boolean,default:!0},projection:{type:String,default:"EPSG:3857"},strategy:{type:Function},url:{type:[String,Function]},useSpatialIndex:{type:Boolean,default:!0},wrapX:{type:Boolean,default:!0}}};function Dst(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var IS=le(Ust,[["render",Dst]]);function K_(r){K_.installed||(K_.installed=!0,r.component(_S.name,_S),r.component(wS.name,wS),r.component(ES.name,ES),r.component(CS.name,CS),r.component(BS.name,BS),r.component(TS.name,TS),r.component(SS.name,SS),r.component(xS.name,xS),r.component(bS.name,bS),r.component(IS.name,IS))}var Qst=Object.freeze(Object.defineProperty({__proto__:null,default:K_,install:K_,SourceXYZ:_S,SourceOSM:wS,SourceImageStatic:ES,SourceWMTS:CS,SourceVector:BS,SourceCluster:TS,SourceTianDiTu:xS,SourceImageWMS:bS,SourceWebglPoints:IS,SourceBingMaps:SS},Symbol.toStringTag,{value:"Module"}));function Di(r,e,t){const n=Ce("map"),i=Ce("controlBar",null),a=i!=null?i.value:n,{properties:o}=vr(e);let s=hr(()=>new r(Un({},o)));return s.value.set("order",t.attrs.order==null?0:t.attrs.order),he(s,(A,l)=>{a.removeControl&&(a.removeControl(l),a.addControl(A),n.changed())}),Ze(()=>{if(a.addControl(s.value),a.controls_!=null){let A=[...a.controls_];A.sort((l,u)=>l.get("order")-u.get("order")),a.controls_=[],A.forEach(l=>{a.addControl(l)}),a.changed()}n.changed()}),ir(()=>{if(a.removeControl)a.removeControl(s.value);else{let A=a.controls_.findIndex(l=>l==s.value);a.controls_.splice(A,1),s.value.dispose()}n.changed()}),{map:n,control:s}}const Hst={name:"ol-fullscreen-control",setup(r,e){const{control:t}=Di(sq,r,e);return{control:t}},props:{className:{type:String,default:"ol-full-screen"},label:{type:String,default:"⤢"},labelActive:{type:String,default:"×"},activeClassName:{type:String,default:"ol-full-screen-true"},inactiveClassName:{type:String,default:"ol-full-screen-false"},tipLabel:{type:String,default:"Toggle full-screen"},keys:{type:Boolean,default:!1},target:{type:Object,default:void 0},source:{type:Object,default:void 0}}};function Gst(r,e,t,n,i,a){return dr("",!0)}var FS=le(Hst,[["render",Gst]]);const kst={name:"ol-mouseposition-control",setup(r,e){const{control:t}=Di(uq,r,e);return{control:t}},props:{className:{type:String,default:"ol-mouse-position"},coordinateFormat:{type:[String,Function]},projection:{type:String},render:{type:Function},target:{type:HTMLElement},undefinedHTML:{type:String,default:" "}}};function $st(r,e,t,n,i,a){return dr("",!0)}var LS=le(kst,[["render",$st]]);const Vst={name:"ol-attribution-control",setup(r,e){const{control:t}=Di(BQ,r,e);return{control:t}},props:{className:{type:String,default:"ol-attribution"},target:{type:HTMLElement},collapsible:{type:Boolean},collapsed:{type:Boolean,default:!0},tipLabel:{type:String,default:"Attributions"},label:{type:String,default:"i"},expandClassName:{type:String,default:"ol-attribution-expand"},collapseLabel:{type:String,default:"»"},collapseClassName:{type:String,default:"ol-attribution-collapse"},render:{type:Function}}};function jst(r,e,t,n,i,a){return dr("",!0)}var OS=le(Vst,[["render",jst]]);const Kst={name:"ol-overviewmap-control",setup(r,e){const t=Ce("map"),{control:n}=Di(dq,r,e);return Ze(()=>{n.value.setMap(t)}),ir(()=>{n.value.setMap(null)}),Mr("overviewMap",n),{control:n}},props:{className:{type:String,default:"ol-overviewmap"},collapsed:{type:Boolean,default:!0},collapseLabel:{type:String,default:"«"},collapsible:{type:Boolean,default:!0},label:{type:String,default:"»"},render:{type:Function},rotateWithView:{type:Boolean,default:!1},target:{type:HTMLElement},tipLabel:{type:String,default:"Overview map"}}};function zst(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var RS=le(Kst,[["render",zst]]);const Yst={name:"ol-scaleline-control",setup(r,e){const{control:t}=Di(mq,r,e);return{control:t}},props:{className:{type:String,default:"ol-scale-line"},minWidth:{type:Number,default:64},render:{type:Function},target:{type:HTMLElement},units:{type:String,default:"metric"},bar:{type:Boolean,default:!1},steps:{type:Number,default:4},text:{type:Boolean,default:!1},dpi:{type:Number,default:void 0}}};function Xst(r,e,t,n,i,a){return dr("",!0)}var MS=le(Yst,[["render",Xst]]);const Wst={name:"ol-zoom-control",setup(r,e){const{control:t}=Di(SQ,r,e);return{control:t}},props:{duration:{type:Number,default:250},className:{type:String,default:"ol-zoom"},zoomInClassName:{type:String,default:"ol-zoom-in"},zoomOutClassName:{type:String,default:"ol-zoom-out"},zoomInLabel:{type:String,default:"+"},zoomOutLabel:{type:String,default:"-"},zoomInTipLabel:{type:String,default:"Zoom in"},zoomOutTipLabel:{type:String,default:"Zoom Out"},delta:{type:Number,default:1},target:{type:HTMLElement}}};function qst(r,e,t,n,i,a){return dr("",!0)}var NS=le(Wst,[["render",qst]]);const Zst={name:"ol-zoomslider-control",setup(r,e){const{control:t}=Di(Eq,r,e);return{control:t}},props:{duration:{type:Number,default:200},className:{type:String,default:"ol-zoomslider"},render:{type:Function}}};function Jst(r,e,t,n,i,a){return dr("",!0)}var PS=le(Zst,[["render",Jst]]);const tAt={name:"ol-zoomtoextent-control",setup(r,e){const{control:t}=Di(Tq,r,e);return{control:t}},props:{className:{type:String,default:"ol-zoom-extent"},target:{type:HTMLElement},label:{type:String,default:"E"},tipLabel:{type:String,default:"Fit to extent"},extent:{type:Array}}};function eAt(r,e,t,n,i,a){return dr("",!0)}var US=le(tAt,[["render",eAt]]);const rAt={name:"ol-rotate-control",setup(r,e){const{control:t}=Di(TQ,r,e);return{control:t}},props:{className:{type:String,default:"ol-rotate"},label:{type:String,default:"⇧"},tipLabel:{type:String,default:"Reset rotation"},compassClassName:{type:String,default:"ol-compass"},duration:{type:Number,default:250},autoHide:{type:Boolean,default:!1},render:{type:Function},resetNorth:{type:Function},target:{type:HTMLElement}}};function nAt(r,e,t,n,i,a){return dr("",!0)}var uN=le(rAt,[["render",nAt]]),c8={exports:{}},iAt=Eot(WW);/*! + }`,uniforms:{u_gradientTexture:function(){return this.gradient_}.bind(this),u_opacity:function(){return this.getOpacity()}.bind(this)}}]})},e.prototype.renderDeclutter=function(){},e}(aw);function yst(r){for(var e=1,t=256,n=Ka(e,t),i=n.createLinearGradient(0,0,e,t),a=1/(r.length-1),o=0,s=r.length;onew u8(t));return he(t,()=>{n.value.setProperties(t)}),Ze(()=>{e.addLayer(n.value)}),ir(()=>{e.removeLayer(n.value)}),Mr("heatmapLayer",n),Mr("stylable",n),{heatmapLayer:n}},props:{weight:{type:Function},extent:{type:Array},blur:{type:Number},radius:{type:Number}}};function _st(r,e,t,n,i,a){return tn(),Ln("div",null,[mr(r.$slots,"default")])}var mb=le(mst,[["render",_st]]);function j_(r){j_.installed||(j_.installed=!0,r.component(cb.name,cb),r.component(hb.name,hb),r.component(fb.name,fb),r.component(pb.name,pb),r.component(gb.name,gb),r.component(yb.name,yb),r.component(mb.name,mb))}var wst=Object.freeze(Object.defineProperty({__proto__:null,default:j_,install:j_,TileLayer:cb,WebGLTileLayer:hb,ImageLayer:fb,VectorLayer:pb,AnimatedClusterLayer:gb,WebglPointsLayer:yb,HeatmapLayer:mb},Symbol.toStringTag,{value:"Module"}));const Est={name:"ol-source-xyz",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r);let n=fr(()=>new n8(t));return he(n,()=>{e.value.setSource(n.value)}),he(e,()=>{e.value.setSource(n.value)}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{attributions:{type:[String,Array]},url:{type:String},cacheSize:{type:Number,default:2048},crossOrigin:{type:String},maxZoom:{type:Number,default:28},minZoom:{type:Number,default:0},opaque:{type:Boolean},projection:{type:String,default:"EPSG:3857"},reprojectionErrorThreshold:{type:Number,default:.5},tileSize:{type:Array,default:()=>[256,256]},tilePixelRatio:{type:Number,default:1},tileKey:{type:String},transition:{type:Number},tileGrid:{type:Object}}};function Cst(r,e,t,n,i,a){return ur("",!0)}var _b=le(Est,[["render",Cst]]);const Bst={name:"ol-source-osm",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r);let n=fr(()=>new zot(t));return he(n,()=>{e.value.setSource(n.value)}),he(e,()=>{e.value.setSource(n.value)}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{attributions:{type:String},cacheSize:{type:Number,default:2048},crossOrigin:{type:String,default:"anonymous"},imageSmoothing:{type:Boolean,default:!0},minZoom:{type:Number,default:0},maxZoom:{type:Number,default:19},opaque:{type:Boolean,default:!0},reprojectionErrorThreshold:{type:Number,default:.5},transition:{type:Number,default:250},url:{type:String,default:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"},wrapX:{type:Boolean,default:!0}}};function Tst(r,e,t,n,i,a){return ur("",!0)}var wb=le(Bst,[["render",Tst]]);const bst={name:"ol-source-image-static",setup(r){const e=Ce("imageLayer"),{properties:t}=vr(r),n=()=>new Hot(Rs(Qn({},t),{projection:typeof t.projection=="string"?t.projection:new _l(Qn({},t.projection))}));let i=n();return he(t,()=>{e.setSource(null),i=n(),e.setSource(i)}),Ze(()=>{e.setSource(i)}),ir(()=>{e.setSource(null)}),{layer:e,source:i}},props:{attributions:{type:String},crossOrigin:{type:String},imageExtent:{type:Array},projection:{type:[String,Object]},imageSmoothing:{type:Boolean,default:!0},imageSize:{type:Array},url:{type:String}}};function Sst(r,e,t,n,i,a){return ur("",!0)}var Eb=le(bst,[["render",Sst]]);const xst={name:"ol-source-wmts",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r),n=fr(()=>Oe(t.projection).getExtent()),i=fr(()=>Ms(n.value)),a=fr(()=>Fr(n.value)/256),o=fr(()=>{const A=new Array(t.tileZoomLevel),l=new Array(t.tileZoomLevel);for(var u=0;unew A8(Rs(Qn({},t),{projection:typeof t.projection=="string"?t.projection:new _l(Qn({},t.projection)),tileGrid:o.value})));return he(s,()=>{e.value.setSource(s.value)}),he(e,()=>{e.value.setSource(s.value)}),Ze(()=>{e.value.setSource(s.value)}),ir(()=>{e.value.setSource(null)}),{tileLayer:e,source:s}},props:{tileZoomLevel:{type:Number,default:30},attributions:{type:String},cacheSize:{type:Number},crossOrigin:{type:String},imageSmoothing:{type:Boolean,default:!0},projection:{type:[String,Object],default:"EPSG:3857"},reprojectionErrorThreshold:{type:Number,default:.5},tilePixelRatio:{type:Number,default:1},format:{type:String,default:"image/jpeg"},version:{type:String,default:"1.0.0"},matrixSet:{type:String},dimensions:{type:Object},requestEncoding:{type:String,default:"KVP"},url:{type:String},urls:{type:Array},wrapX:{type:Boolean,default:!1},transition:{type:Number},layer:{type:String},style:{type:String}}};function Ist(r,e,t,n,i,a){return ur("",!0)}var Cb=le(xst,[["render",Ist]]);const Fst={name:"ol-source-vector",setup(r){const e=Ce("vectorLayer")||Ce("heatmapLayer"),{properties:t}=vr(r);let n=fr(()=>new wl(t));const i=()=>{e.value.setSource(null),e.value.setSource(n.value),e.value.changed()};return he(t,()=>{i()}),he(e,()=>{i()}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),Mr("vectorSource",n),{layer:e,source:n}},props:{attributions:{type:[String,Array]},features:{type:Array,default:()=>[]},format:{type:Object},loader:{type:Function},overlaps:{type:Boolean,default:!0},projection:{type:String,default:"EPSG:3857"},strategy:{type:Function},url:{type:[String,Function]},useSpatialIndex:{type:Boolean,default:!0},wrapX:{type:Boolean,default:!0}}};function Lst(r,e,t,n,i,a){return tn(),Ln("div",null,[mr(r.$slots,"default")])}var Bb=le(Fst,[["render",Lst]]);const Ost={name:"ol-source-cluster",setup(r){const e=Ce("vectorLayer"),{properties:t}=vr(r);let n=fr(()=>new i8(t));const i=()=>{e.value.setSource(null),e.value.setSource(n.value),e.value.changed()};return he(t,()=>{i()}),he(e,()=>{i()}),Ze(()=>{e.value.setSource(n.value),e.value.changed()}),ir(()=>{e.value.setSource(null)}),Mr("vectorLayer",n),{layer:e,source:n}},props:{attributions:{type:[String,Array]},distance:{type:Number,default:20},geometryFunction:{type:Function,default:r=>r.getGeometry()},wrapX:{type:Boolean,default:!0}}};function Rst(r,e,t,n,i,a){return tn(),Ln("div",null,[mr(r.$slots,"default")])}var Tb=le(Ost,[["render",Rst]]);const Mst={name:"ol-source-bingmaps",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r);let n=fr(()=>new _ot(Rs(Qn({},t),{key:t.apiKey})));return he(n,()=>{e.value.setSource(n.value)}),he(e,()=>{e.value.setSource(n.value)}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{cacheSize:{type:Number},hidpi:{type:Boolean,default:!1},culture:{type:String,default:"en-us"},apiKey:{type:String},imagerySet:{type:String},imageSmoothing:{type:Boolean,default:!0},maxZoom:{type:Number,default:21},reprojectionErrorThreshold:{type:Number,default:.5},tileLoadFunction:{type:Function,default:(r,e)=>r.getImage().src=e},wrapX:{type:Boolean,default:!0},transition:{type:Number}}};function Nst(r,e,t,n,i,a){return ur("",!0)}var bb=le(Mst,[["render",Nst]]);class YA extends A8{constructor(e){YA.layerLabelMap={vec:"cva",ter:"cta",img:"cia"},YA.layerZoomMap={vec:18,ter:14,img:18};let t=e||{};t.layerType=t.layerType||"vec",t.layerType=t.isLabel?YA.layerLabelMap[t.layerType]:t.layerType,t.matrixSet=t.projection==="EPSG:4326"||t.projection==="EPSG:4490"?"c":"w",!t.url&&!t.urls&&(t.url="https://t{0-7}.tianditu.gov.cn/{layer}_{proj}/wmts?"),t.tk&&(t.url=`${t.url}tk=${t.tk}`),t.url=t.url.replace("{layer}",t.layerType).replace("{proj}",t.matrixSet);let n=t.tileGrid||YA.getTileGrid(t.projection||"EPSG:3857"),i=t.crossOrigin!==void 0?t.crossOrigin:"anonymous",a={version:t.version||"1.0.0",format:t.format||"tiles",dimensions:t.dimensions||{},layer:t.layerType,matrixSet:t.matrixSet,tileGrid:n,style:t.style||"default",cacheSize:t.cacheSize,crossOrigin:i,opaque:t.opaque===void 0?!0:t.opaque,maxZoom:YA.layerZoomMap[t.layerType],reprojectionErrorThreshold:t.reprojectionErrorThreshold,url:t.url,urls:t.urls,projection:t.projection||"EPSG:3857",wrapX:t.wrapX};t.tileProxy&&(a.tileLoadFunction=s),super(a),t.tileProxy&&(this.tileProxy=t.tileProxy);let o=this;function s(A,l){A.getImage().src=o.tileProxy+encodeURIComponent(l)}}static getTileGrid(e){return e==="EPSG:4326"||e==="EPSG:4490"?YA.default4326TileGrid():YA.default3857TileGrid()}static default4326TileGrid(){let e=[],t=[];for(let i=1;i<19;i++)e.push(.703125*2/Math.pow(2,i)),t.push(i);return new db({extent:[-180,-90,180,90],resolutions:e,origin:[-180,90],matrixIds:t,minZoom:1})}static default3857TileGrid(){let e=[],t=[];for(let i=1;i<19;i++)e.push(78271.51696402031*2/Math.pow(2,i)),t.push(i);return new db({extent:[-200375083427892e-7,-200375083427892e-7,200375083427892e-7,200375083427892e-7],resolutions:e,matrixIds:t,origin:[-200375083427892e-7,200375083427892e-7],minZoom:1})}}const Pst={name:"ol-source-tianditu",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r);let n=fr(()=>new YA(t));return he(n,()=>{e.value.setSource(n.value)}),he(e,()=>{e.value.setSource(n.value)}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{layerType:{type:String,default:"img"},tk:{type:String},isLabel:{type:Boolean,default:!1},cacheSize:{type:Number},crossOrigin:{type:String},projection:{Type:String,default:"EPSG:3857"},hidpi:{type:Boolean,default:!1},requestEncoding:{type:String,default:"KVP"},format:{type:String},version:{type:String,default:"1.0.0"},culture:{type:String,default:"en-us"},matrixSet:{type:String},dimensions:{type:Object,default:()=>{}},imageSmoothing:{type:Boolean,default:!0},maxZoom:{type:Number,default:21},reprojectionErrorThreshold:{type:Number},tileLoadFunction:{type:Function,default:(r,e)=>r.getImage().src=e},wrapX:{type:Boolean,default:!0},transition:{type:Number}}};function Ust(r,e,t,n,i,a){return ur("",!0)}var Sb=le(Pst,[["render",Ust]]);const Dst={name:"ol-source-image-wms",setup(r){const e=Ce("imageLayer"),{properties:t}=vr(r),n=()=>new $ot(Rs(Qn({},t),{params:{LAYERS:r.layers,STYLES:r.styles,TIME:r.time},projection:typeof t.projection=="string"?t.projection:new _l(Qn({},t.projection))}));let i=n();return he(t,()=>{e.setSource(null),i=n(),e.setSource(i)}),Ze(()=>{e.setSource(i)}),ir(()=>{e.setSource(null)}),{layer:e,source:i}},props:{attributions:{type:String},crossOrigin:{type:String},imageExtent:{type:Array},projection:{type:[String,Object],default:"EPSG:3857"},reprojectionErrorThreshold:{type:Number,default:.5},format:{type:String,default:"image/png"},version:{type:String,default:"1.3.0"},matrixSet:{type:String},serverType:{type:String,default:"mapserver"},imageSmoothing:{type:Boolean,default:!0},layers:{type:[String,Array],required:!0},styles:{type:[String,Array],default:""},time:{type:String},ratio:{type:Number,default:1},imageSize:{type:Array},url:{type:String},params:{type:Object},imageLoadFunction:{type:Function}}};function Qst(r,e,t,n,i,a){return ur("",!0)}var xb=le(Dst,[["render",Qst]]);const Hst={name:"ol-source-webglpoints",setup(r){const e=Ce("webglPointsLayer"),{properties:t}=vr(r);let n=fr(()=>new wl(t));const i=()=>{e.value.setSource(null),e.value.setSource(n.value),e.value.changed()};return he(t,()=>{i()}),he(e,()=>{i()}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),Mr("vectorSource",n),{layer:e,source:n}},props:{attributions:{type:[String,Array]},features:{type:Array,default:()=>[]},format:{type:Object},loader:{type:Function},overlaps:{type:Boolean,default:!0},projection:{type:String,default:"EPSG:3857"},strategy:{type:Function},url:{type:[String,Function]},useSpatialIndex:{type:Boolean,default:!0},wrapX:{type:Boolean,default:!0}}};function Gst(r,e,t,n,i,a){return tn(),Ln("div",null,[mr(r.$slots,"default")])}var Ib=le(Hst,[["render",Gst]]);function K_(r){K_.installed||(K_.installed=!0,r.component(_b.name,_b),r.component(wb.name,wb),r.component(Eb.name,Eb),r.component(Cb.name,Cb),r.component(Bb.name,Bb),r.component(Tb.name,Tb),r.component(bb.name,bb),r.component(Sb.name,Sb),r.component(xb.name,xb),r.component(Ib.name,Ib))}var kst=Object.freeze(Object.defineProperty({__proto__:null,default:K_,install:K_,SourceXYZ:_b,SourceOSM:wb,SourceImageStatic:Eb,SourceWMTS:Cb,SourceVector:Bb,SourceCluster:Tb,SourceTianDiTu:Sb,SourceImageWMS:xb,SourceWebglPoints:Ib,SourceBingMaps:bb},Symbol.toStringTag,{value:"Module"}));function Qi(r,e,t){const n=Ce("map"),i=Ce("controlBar",null),a=i!=null?i.value:n,{properties:o}=vr(e);let s=fr(()=>new r(Qn({},o)));return s.value.set("order",t.attrs.order==null?0:t.attrs.order),he(s,(A,l)=>{a.removeControl&&(a.removeControl(l),a.addControl(A),n.changed())}),Ze(()=>{if(a.addControl(s.value),a.controls_!=null){let A=[...a.controls_];A.sort((l,u)=>l.get("order")-u.get("order")),a.controls_=[],A.forEach(l=>{a.addControl(l)}),a.changed()}n.changed()}),ir(()=>{if(a.removeControl)a.removeControl(s.value);else{let A=a.controls_.findIndex(l=>l==s.value);a.controls_.splice(A,1),s.value.dispose()}n.changed()}),{map:n,control:s}}const $st={name:"ol-fullscreen-control",setup(r,e){const{control:t}=Qi(uq,r,e);return{control:t}},props:{className:{type:String,default:"ol-full-screen"},label:{type:String,default:"⤢"},labelActive:{type:String,default:"×"},activeClassName:{type:String,default:"ol-full-screen-true"},inactiveClassName:{type:String,default:"ol-full-screen-false"},tipLabel:{type:String,default:"Toggle full-screen"},keys:{type:Boolean,default:!1},target:{type:Object,default:void 0},source:{type:Object,default:void 0}}};function Vst(r,e,t,n,i,a){return ur("",!0)}var Fb=le($st,[["render",Vst]]);const jst={name:"ol-mouseposition-control",setup(r,e){const{control:t}=Qi(fq,r,e);return{control:t}},props:{className:{type:String,default:"ol-mouse-position"},coordinateFormat:{type:[String,Function]},projection:{type:String},render:{type:Function},target:{type:HTMLElement},undefinedHTML:{type:String,default:" "}}};function Kst(r,e,t,n,i,a){return ur("",!0)}var Lb=le(jst,[["render",Kst]]);const zst={name:"ol-attribution-control",setup(r,e){const{control:t}=Qi(BQ,r,e);return{control:t}},props:{className:{type:String,default:"ol-attribution"},target:{type:HTMLElement},collapsible:{type:Boolean},collapsed:{type:Boolean,default:!0},tipLabel:{type:String,default:"Attributions"},label:{type:String,default:"i"},expandClassName:{type:String,default:"ol-attribution-expand"},collapseLabel:{type:String,default:"»"},collapseClassName:{type:String,default:"ol-attribution-collapse"},render:{type:Function}}};function Yst(r,e,t,n,i,a){return ur("",!0)}var Ob=le(zst,[["render",Yst]]);const Xst={name:"ol-overviewmap-control",setup(r,e){const t=Ce("map"),{control:n}=Qi(yq,r,e);return Ze(()=>{n.value.setMap(t)}),ir(()=>{n.value.setMap(null)}),Mr("overviewMap",n),{control:n}},props:{className:{type:String,default:"ol-overviewmap"},collapsed:{type:Boolean,default:!0},collapseLabel:{type:String,default:"«"},collapsible:{type:Boolean,default:!0},label:{type:String,default:"»"},render:{type:Function},rotateWithView:{type:Boolean,default:!1},target:{type:HTMLElement},tipLabel:{type:String,default:"Overview map"}}};function Wst(r,e,t,n,i,a){return tn(),Ln("div",null,[mr(r.$slots,"default")])}var Rb=le(Xst,[["render",Wst]]);const qst={name:"ol-scaleline-control",setup(r,e){const{control:t}=Qi(Eq,r,e);return{control:t}},props:{className:{type:String,default:"ol-scale-line"},minWidth:{type:Number,default:64},render:{type:Function},target:{type:HTMLElement},units:{type:String,default:"metric"},bar:{type:Boolean,default:!1},steps:{type:Number,default:4},text:{type:Boolean,default:!1},dpi:{type:Number,default:void 0}}};function Zst(r,e,t,n,i,a){return ur("",!0)}var Mb=le(qst,[["render",Zst]]);const Jst={name:"ol-zoom-control",setup(r,e){const{control:t}=Qi(bQ,r,e);return{control:t}},props:{duration:{type:Number,default:250},className:{type:String,default:"ol-zoom"},zoomInClassName:{type:String,default:"ol-zoom-in"},zoomOutClassName:{type:String,default:"ol-zoom-out"},zoomInLabel:{type:String,default:"+"},zoomOutLabel:{type:String,default:"-"},zoomInTipLabel:{type:String,default:"Zoom in"},zoomOutTipLabel:{type:String,default:"Zoom Out"},delta:{type:Number,default:1},target:{type:HTMLElement}}};function tAt(r,e,t,n,i,a){return ur("",!0)}var Nb=le(Jst,[["render",tAt]]);const eAt={name:"ol-zoomslider-control",setup(r,e){const{control:t}=Qi(Tq,r,e);return{control:t}},props:{duration:{type:Number,default:200},className:{type:String,default:"ol-zoomslider"},render:{type:Function}}};function rAt(r,e,t,n,i,a){return ur("",!0)}var Pb=le(eAt,[["render",rAt]]);const nAt={name:"ol-zoomtoextent-control",setup(r,e){const{control:t}=Qi(xq,r,e);return{control:t}},props:{className:{type:String,default:"ol-zoom-extent"},target:{type:HTMLElement},label:{type:String,default:"E"},tipLabel:{type:String,default:"Fit to extent"},extent:{type:Array}}};function iAt(r,e,t,n,i,a){return ur("",!0)}var Ub=le(nAt,[["render",iAt]]);const aAt={name:"ol-rotate-control",setup(r,e){const{control:t}=Qi(TQ,r,e);return{control:t}},props:{className:{type:String,default:"ol-rotate"},label:{type:String,default:"⇧"},tipLabel:{type:String,default:"Reset rotation"},compassClassName:{type:String,default:"ol-compass"},duration:{type:Number,default:250},autoHide:{type:Boolean,default:!1},render:{type:Function},resetNorth:{type:Function},target:{type:HTMLElement}}};function oAt(r,e,t,n,i,a){return ur("",!0)}var cN=le(aAt,[["render",oAt]]),c8={exports:{}},sAt=Tot(JW);/*! * ol-contextmenu - v4.1.0 * https://github.com/jonataswalker/ol-contextmenu * Built: Sat Aug 15 2020 10:43:26 GMT-0300 (Brasilia Standard Time) - */(function(r,e){(function(t,n){r.exports=n(iAt)})(Zs,function(t){function n(I){return I&&typeof I=="object"&&"default"in I?I:{default:I}}var i=n(t),a="ol-ctx-menu",o={namespace:a,container:a+"-container",separator:a+"-separator",submenu:a+"-submenu",hidden:a+"-hidden",icon:a+"-icon",zoomIn:a+"-zoom-in",zoomOut:a+"-zoom-out",unselectable:"ol-unselectable"},s=o,A="beforeopen",l="open",u="close",c="contextmenu",h={width:150,scrollAt:4,eventType:c,defaultItems:!0},f=[{text:"Zoom In",classname:o.zoomIn+" "+o.icon,callback:function(I,M){var x=M.getView();x.animate({zoom:+x.getZoom()+1,duration:700,center:I.coordinate})}},{text:"Zoom Out",classname:o.zoomOut+" "+o.icon,callback:function(I,M){var x=M.getView();x.animate({zoom:+x.getZoom()-1,duration:700,center:I.coordinate})}}];function p(I,M){if(M===void 0&&(M="Assertion failed"),!I)throw typeof Error<"u"?new Error(M):M}function v(I){return/^\d+$/.test(I)}function m(I,M){return I.classList?I.classList.contains(M):B(M).test(I.className)}function g(I,M,x){M===void 0&&(M=window.document);var S=Array.prototype.slice,N=[];if(/^(#?[\w-]+|\.[\w-.]+)$/.test(I))switch(I[0]){case"#":N=[_(I.substr(1))];break;case".":N=S.call(M.getElementsByClassName(I.substr(1).replace(/\./g," ")));break;default:N=S.call(M.getElementsByTagName(I))}else N=S.call(M.querySelectorAll(I));return x?N:N[0]}function _(I){return I=I[0]==="#"?I.substr(1,I.length):I,document.getElementById(I)}function E(I){var M=document.createDocumentFragment(),x=document.createElement("div");for(x.innerHTML=I;x.firstChild;)M.appendChild(x.firstChild);return M}function B(I){return new RegExp("(^|\\s+) "+I+" (\\s+|$)")}function L(I,M,x){I.classList?I.classList.add(M):I.className=(I.className+" "+M).trim(),x&&v(x)&&window.setTimeout(function(){return O(I,M)},x)}function O(I,M,x){I.classList?I.classList.remove(M):I.className=I.className.replace(B(M)," ").trim(),x&&v(x)&&window.setTimeout(function(){return L(I,M)},x)}var b=function(I){return this.Base=I,this.map=void 0,this.viewport=void 0,this.coordinateClicked=void 0,this.pixelClicked=void 0,this.lineHeight=0,this.items={},this.opened=!1,this.submenu={left:I.options.width-15+"px",lastLeft:""},this.eventHandler=this.handleEvent.bind(this),this.eventMapMoveHandler=this.handleMapMoveEvent.bind(this),this};b.prototype.init=function(I){this.map=I,this.viewport=I.getViewport(),this.setListeners(),this.Base.Html.createMenu(),this.lineHeight=this.getItemsLength()>0?this.Base.container.offsetHeight/this.getItemsLength():this.Base.Html.cloneAndGetLineHeight()},b.prototype.getItemsLength=function(){var I=this,M=0;return Object.keys(this.items).forEach(function(x){I.items[x].submenu||I.items[x].separator||M++}),M},b.prototype.getPixelClicked=function(){return this.pixelClicked},b.prototype.getCoordinateClicked=function(){return this.coordinateClicked},b.prototype.positionContainer=function(I){var M=this,x=this.Base.container,S=this.map.getSize(),N=S[1]-I[1],P=S[0]-I[0],X=x.offsetWidth,z=Math.round(this.lineHeight*this.getItemsLength()),tt=g("li."+s.submenu+">div",x,!0);P>=X?(x.style.right="auto",x.style.left=I[0]+5+"px"):(x.style.left="auto",x.style.right="15px"),N>=z?(x.style.bottom="auto",x.style.top=I[1]-10+"px"):(x.style.top="auto",x.style.bottom=0),function J(nt,it,_t){if(Array.isArray(nt))nt.forEach(function(K){return J(K,it,_t)});else for(var R=Array.isArray(it)?it:it.split(/\s+/),$=R.length;$--;)m(nt,R[$])&&O(nt,R[$],_t)}(x,s.hidden),tt.length&&(this.submenu.lastLeft=P<2*X?"-"+X+"px":this.submenu.left,tt.forEach(function(J){var nt,it,_t,R={w:window.innerWidth||document.documentElement.clientWidth,h:window.innerHeight||document.documentElement.clientHeight},$=(it=(nt=J).getBoundingClientRect(),_t=document.documentElement,{left:it.left+window.pageXOffset-_t.clientLeft,top:it.top+window.pageYOffset-_t.clientTop,width:nt.offsetWidth,height:nt.offsetHeight}),K=$.height,q=N-K;q<0&&(q=K-(R.h-$.top),J.style.top="-"+q+"px"),J.style.left=M.submenu.lastLeft}))},b.prototype.openMenu=function(I,M){this.Base.dispatchEvent({type:l,pixel:I,coordinate:M}),this.opened=!0,this.positionContainer(I)},b.prototype.closeMenu=function(){this.opened=!1,function I(M,x,S){if(Array.isArray(M))M.forEach(function(X){return I(X,x)});else for(var N=Array.isArray(x)?x:x.split(/\s+/),P=N.length;P--;)m(M,N[P])||L(M,N[P],S)}(this.Base.container,s.hidden),this.Base.dispatchEvent({type:u})},b.prototype.setListeners=function(){this.viewport.addEventListener(this.Base.options.eventType,this.eventHandler,!1),this.map.on("movestart",this.eventMapMoveHandler)},b.prototype.removeListeners=function(){this.viewport.removeEventListener(this.Base.options.eventType,this.eventHandler,!1),this.map.un("movestart",this.eventMapMoveHandler)},b.prototype.handleEvent=function(I){var M=this;this.coordinateClicked=this.map.getEventCoordinate(I),this.pixelClicked=this.map.getEventPixel(I),this.Base.dispatchEvent({type:A,pixel:this.pixelClicked,coordinate:this.coordinateClicked}),this.Base.disabled||(this.Base.options.eventType===c&&(I.stopPropagation(),I.preventDefault()),this.openMenu(this.pixelClicked,this.coordinateClicked),I.target.addEventListener("pointerdown",{handleEvent:function(x){M.opened&&(M.closeMenu(),x.stopPropagation(),I.target.removeEventListener(x.type,this,!1))}},!1))},b.prototype.handleMapMoveEvent=function(I){this.closeMenu()},b.prototype.setItemListener=function(I,M){var x,S=this;I&&typeof this.items[M].callback=="function"&&(x=this.items[M].callback,I.addEventListener("click",function(N){N.preventDefault();var P={coordinate:S.getCoordinateClicked(),data:S.items[M].data||null};S.closeMenu(),x(P,S.map)},!1))};var T=function(I){return this.Base=I,this.Base.container=this.container=this.createContainer(!0),this};return T.prototype.createContainer=function(I){var M=document.createElement("div"),x=document.createElement("ul"),S=[s.container,s.unselectable];return I&&S.push(s.hidden),M.className=S.join(" "),M.style.width=parseInt(this.Base.options.width,10)+"px",M.appendChild(x),M},T.prototype.createMenu=function(){var I=[];if("items"in this.Base.options?I=this.Base.options.defaultItems?this.Base.options.items.concat(f):this.Base.options.items:this.Base.options.defaultItems&&(I=f),I.length===0)return!1;I.forEach(this.addMenuEntry,this)},T.prototype.addMenuEntry=function(I){var M,x=this;if(I.items&&Array.isArray(I.items)){I.classname=I.classname||"",M=s.submenu,~I.classname.indexOf(M)||(I.classname=I.classname.length?" "+s.submenu:s.submenu);var S=this.generateHtmlAndPublish(this.container,I),N=this.createContainer();N.style.left=this.Base.Internal.submenu.lastLeft||this.Base.Internal.submenu.left,S.appendChild(N),I.items.forEach(function(P){x.generateHtmlAndPublish(N,P,!0)})}else this.generateHtmlAndPublish(this.container,I)},T.prototype.generateHtmlAndPublish=function(I,M,x){var S,N,P="_"+Math.random().toString(36).substr(2,9),X=!1;return typeof M=="string"&&M.trim()==="-"?(S=E('

  • '),N=[].slice.call(S.childNodes,0)[0],I.firstChild.appendChild(S),X=!0):(M.classname=M.classname||"",S=E(""+M.text+""),N=document.createElement("li"),M.icon&&(M.classname===""?M.classname=s.icon:M.classname.indexOf(s.icon)===-1&&(M.classname+=" "+s.icon),N.setAttribute("style","background-image:url("+M.icon+")")),N.id=P,N.className=M.classname,N.appendChild(S),I.firstChild.appendChild(N)),this.Base.Internal.items[P]={id:P,submenu:x||0,separator:X,callback:M.callback,data:M.data||null},this.Base.Internal.setItemListener(N,P),N},T.prototype.removeMenuEntry=function(I){var M=g("#"+I,this.container.firstChild);M&&this.container.firstChild.removeChild(M),delete this.Base.Internal.items[I]},T.prototype.cloneAndGetLineHeight=function(){var I=this.container.cloneNode(),M=E("Foo"),x=E("Foo"),S=document.createElement("li"),N=document.createElement("li");S.appendChild(M),N.appendChild(x),I.appendChild(S),I.appendChild(N),this.container.parentNode.appendChild(I);var P=I.offsetHeight/2;return this.container.parentNode.removeChild(I),P},function(I){function M(x){x===void 0&&(x={}),p(typeof x=="object","@param `opt_options` should be object type!"),this.options=function(S,N){var P={};for(var X in S)P[X]=S[X];for(var z in N)P[z]=N[z];return P}(h,x),this.disabled=!1,this.Internal=new b(this),this.Html=new T(this),I.call(this,{element:this.container})}return I&&(M.__proto__=I),M.prototype=Object.create(I&&I.prototype),M.prototype.constructor=M,M.prototype.clear=function(){Object.keys(this.Internal.items).forEach(this.Html.removeMenuEntry,this.Html)},M.prototype.close=function(){this.Internal.closeMenu()},M.prototype.enable=function(){this.disabled=!1},M.prototype.disable=function(){this.disabled=!0},M.prototype.getDefaultItems=function(){return f},M.prototype.countItems=function(){return Object.keys(this.Internal.items).length},M.prototype.extend=function(x){p(Array.isArray(x),"@param `arr` should be an Array."),x.forEach(this.push,this)},M.prototype.isOpen=function(){return this.Internal.opened},M.prototype.updatePosition=function(x){p(Array.isArray(x),"@param `pixel` should be an Array."),this.isOpen()&&this.Internal.positionContainer(x)},M.prototype.pop=function(){var x=Object.keys(this.Internal.items);this.Html.removeMenuEntry(x[x.length-1])},M.prototype.push=function(x){p(x!=null,"@param `item` must be informed."),this.Html.addMenuEntry(x)},M.prototype.shift=function(){this.Html.removeMenuEntry(Object.keys(this.Internal.items)[0])},M.prototype.setMap=function(x){I.prototype.setMap.call(this,x),x?this.Internal.init(x,this):this.Internal.removeListeners()},M}(i.default)})})(c8);var aAt=c8.exports;const oAt={name:"ol-context-menu",setup(r,e){const{control:t}=Di(aAt,r,e);return{control:t}},props:{eventType:{type:String,default:"contextmenu"},defaultItems:{type:Boolean,default:!0},width:{type:Number,default:150},items:{type:Array,default:()=>[]}}};function sAt(r,e,t,n,i,a){return dr("",!0)}var DS=le(oAt,[["render",sAt]]),vo=function(r){r=r||{};var e=document.createElement("button"),t=document.createElement("div");t.className=(r.className||"ol-swipe")+" ol-unselectable ol-control",t.appendChild(e),t.addEventListener("mousedown",this.move.bind(this)),t.addEventListener("touchstart",this.move.bind(this)),_r.call(this,{element:t}),this.precomposeRight_=this.precomposeRight.bind(this),this.precomposeLeft_=this.precomposeLeft.bind(this),this.postcompose_=this.postcompose.bind(this),this.layers=[],r.layers&&this.addLayer(r.layers,!1),r.rightLayers&&this.addLayer(r.rightLayers,!0),this.on("propertychange",function(n){if(this.getMap())try{this.getMap().renderSync()}catch{}this.get("orientation")==="horizontal"?(this.element.style.top=this.get("position")*100+"%",this.element.style.left=""):(this.get("orientation")!=="vertical"&&this.set("orientation","vertical"),this.element.style.left=this.get("position")*100+"%",this.element.style.top=""),n.key==="orientation"&&(this.element.classList.remove("horizontal","vertical"),this.element.classList.add(this.get("orientation"))),this.isMoving||this.layers.forEach(function(i){i.layer.getImageRatio&&i.layer.changed()})}.bind(this)),this.set("position",r.position||.5),this.set("orientation",r.orientation||"vertical")};Cr(vo,_r);vo.prototype.setMap=function(r){var e,t;if(this.getMap()){for(e=0;e=0&&this.getMap()&&(this.layers[t].right?r[e].un(["precompose","prerender"],this.precomposeRight_):r[e].un(["precompose","prerender"],this.precomposeLeft_),r[e].un(["postcompose","postrender"],this.postcompose_),this.layers.splice(t,1))}if(this.getMap())try{this.getMap().renderSync()}catch{}};vo.prototype.getRectangle=function(){var r;return this.get("orientation")==="vertical"?(r=this.getMap().getSize(),[0,0,r[0]*this.get("position"),r[1]]):(r=this.getMap().getSize(),[0,0,r[0],r[1]*this.get("position")])};vo.prototype.move=function(r){var e=this,t;switch(this._movefn||(this._movefn=this.move.bind(this)),r.type){case"touchcancel":case"touchend":case"mouseup":{e.isMoving=!1,["mouseup","mousemove","touchend","touchcancel","touchmove"].forEach(function(s){document.removeEventListener(s,e._movefn)}),this.layers.forEach(function(s){s.layer.getImageRatio&&s.layer.changed()});break}case"mousedown":case"touchstart":e.isMoving=!0,["mouseup","mousemove","touchend","touchcancel","touchmove"].forEach(function(s){document.addEventListener(s,e._movefn)});case"mousemove":case"touchmove":{if(e.isMoving)if(e.get("orientation")==="vertical"){var n=r.pageX||r.touches&&r.touches.length&&r.touches[0].pageX||r.changedTouches&&r.changedTouches.length&&r.changedTouches[0].pageX;if(!n)break;n-=e.getMap().getTargetElement().getBoundingClientRect().left+window.pageXOffset-document.documentElement.clientLeft,t=e.getMap().getSize()[0];var i=t-Math.min(Math.max(0,t-n),t);t=i/t,e.set("position",t),e.dispatchEvent({type:"moving",size:[i,e.getMap().getSize()[1]],position:[t,0]})}else{var a=r.pageY||r.touches&&r.touches.length&&r.touches[0].pageY||r.changedTouches&&r.changedTouches.length&&r.changedTouches[0].pageY;if(!a)break;a-=e.getMap().getTargetElement().getBoundingClientRect().top+window.pageYOffset-document.documentElement.clientTop,t=e.getMap().getSize()[1];var o=t-Math.min(Math.max(0,t-a),t);t=o/t,e.set("position",t),e.dispatchEvent({type:"moving",size:[e.getMap().getSize()[0],o],position:[0,t]})}break}}};vo.prototype._transformPt=function(r,e){var t=r.inversePixelTransform,n=e[0],i=e[1];return e[0]=t[0]*n+t[2]*i+t[4],e[1]=t[1]*n+t[3]*i+t[5],e};vo.prototype._drawRect=function(r,e){var t=r.inversePixelTransform;if(t){var n=[[e[0][0],e[0][1]],[e[0][0],e[1][1]],[e[1][0],e[1][1]],[e[1][0],e[0][1]],[e[0][0],e[0][1]]];if(r.context.save(),r.target.getImageRatio){var i=-Math.atan2(r.frameState.pixelToCoordinateTransform[1],r.frameState.pixelToCoordinateTransform[0]);r.context.translate(r.frameState.size[0]/2,r.frameState.size[1]/2),r.context.rotate(i),r.context.translate(-r.frameState.size[0]/2,-r.frameState.size[1]/2)}n.forEach(function(o,s){o=[o[0]*t[0]-o[1]*t[1]+t[4],-o[0]*t[2]+o[1]*t[3]+t[5]],s?r.context.lineTo(o[0],o[1]):r.context.moveTo(o[0],o[1])}),r.context.restore()}else{var a=r.frameState.pixelRatio;r.context.rect(e[0][0]*a,e[0][1]*a,e[1][0]*a,e[1][1]*a)}};vo.prototype.precomposeLeft=function(r){var e=r.context;if(e instanceof WebGLRenderingContext){if(r.type==="prerender"){e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),e.enable(e.SCISSOR_TEST);var t=this.getMap().getSize(),n=this._transformPt(r,[0,t[1]]),i=this._transformPt(r,[t[0],0]),a=i[0]-n[0],o=i[1]-n[1];this.get("orientation")==="vertical"?a=Math.round(a*this.get("position")):(o=Math.round(o*this.get("position")),n[1]+=t[1]-o),e.scissor(n[0],n[1],a,o)}}else{var s=r.frameState.size;e.save(),e.beginPath();var A=[[0,0],[s[0],s[1]]];this.get("orientation")==="vertical"?A[1]=[s[0]*.5+this.getMap().getSize()[0]*(this.get("position")-.5),s[1]]:A[1]=[s[0],s[1]*.5+this.getMap().getSize()[1]*(this.get("position")-.5)],this._drawRect(r,A),e.clip()}};vo.prototype.precomposeRight=function(r){var e=r.context;if(e instanceof WebGLRenderingContext){if(r.type==="prerender"){e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),e.enable(e.SCISSOR_TEST);var t=this.getMap().getSize(),n=this._transformPt(r,[0,t[1]]),i=this._transformPt(r,[t[0],0]),a=i[0]-n[0],o=i[1]-n[1];this.get("orientation")==="vertical"?(a=Math.round(a*(1-this.get("position"))),n[0]+=t[0]-a):o=Math.round(o*(1-this.get("position"))),e.scissor(n[0],n[1],a,o)}}else{var s=r.frameState.size;e.save(),e.beginPath();var A=[[0,0],[s[0],s[1]]];this.get("orientation")==="vertical"?A[0]=[s[0]*.5+this.getMap().getSize()[0]*(this.get("position")-.5),0]:A[0]=[0,s[1]*.5+this.getMap().getSize()[1]*(this.get("position")-.5)],this._drawRect(r,A),e.clip()}};vo.prototype.postcompose=function(r){if(r.context instanceof WebGLRenderingContext){if(r.type==="postrender"){var e=r.context;e.disable(e.SCISSOR_TEST)}}else r.target.getClassName&&r.target.getClassName()!=="ol-layer"&&r.target.get("declutter")?setTimeout(function(){r.context.restore()},0):r.context.restore()};const AAt={name:"ol-swipe-control",setup(r,e){const{control:t}=Di(vo,r,e),{layerList:n}=Lu(r);return n.value.forEach((i,a)=>{t.value.addLayer(i,a==1)}),{control:t}},props:{layerList:{type:Array},className:{type:String,default:"ol-swipe"},position:{type:Number,default:.5},orientation:{type:String,default:"vertical"}}};function lAt(r,e,t,n,i,a){return dr("",!0)}var QS=le(AAt,[["render",lAt]]),Uo=function(r){r||(r={});var e=document.createElement("div");if(e.classList.add("ol-unselectable","ol-control","ol-bar"),r.className){var t=r.className.split(" ").filter(function(i){return i.length>0});e.classList.add.apply(e.classList,t)}if(r.group&&e.classList.add("ol-group"),_r.call(this,{element:e,target:r.target}),this.set("toggleOne",r.toggleOne),this.set("autoDeactivate",r.autoDeactivate),this.controls_=[],r.controls instanceof Array)for(var n=0;nT-.5?_.classList.add("ol-100pc"):_.classList.remove("ol-100pc")}},v=function(b){b.target.classList.contains("ol-noscroll")||(l=!1,t=b[s],a=new Date,r.classList.add("ol-move"),b.preventDefault(),window.addEventListener("pointermove",m),ct.addListener(window,["pointerup","pointercancel"],L))},m=function(b){if(l=!0,t!==!1){var T=(c?-1/u:1)*(t-b[s]);r[A]+=T,i=new Date,i-a&&(n=(n+T/(i-a))/2),t=b[s],a=i,T&&o(!0)}},g=function(b){var T=b>0?Math.min(100,b/2):Math.max(-100,b/2);b-=T,r[A]+=T,-1100||c?n=0:a>0&&(n=((n||0)+(t-b[s])/a)/2),g(e.animate===!1?0:n*200),t=!1,n=0,a=0,r.classList.contains("ol-move")?r.classList.remove("ol-hasClick"):(r.classList.add("ol-hasClick"),setTimeout(function(){r.classList.remove("ol-hasClick")},500)),c=!1,window.removeEventListener("pointermove",m),ct.removeListener(window,["pointerup","pointercancel"],L)},O=function(b){var T=Math.max(-1,Math.min(1,b.wheelDelta||-b.detail));return r.classList.add("ol-move"),r[A]-=T*30,r.classList.remove("ol-move"),!1};return e.mousewheel&&ct.addListener(r,["mousewheel","DOMMouseScroll","onmousewheel"],O),{refresh:f}};ct.dispatchEvent=function(r,e){var t;try{t=new CustomEvent(r)}catch{t=document.createEvent("CustomEvent"),t.initCustomEvent(r,!0,!0,{})}e.dispatchEvent(t)};var El=function(r){r=r||{};var e=document.createElement("div");e.className=(r.className||"")+" ol-button ol-unselectable ol-control";var t=this,n=this.button_=document.createElement(/ol-text-button/.test(r.className)?"div":"button");n.type="button",r.title&&(n.title=r.title),r.name&&(n.name=r.name),r.html instanceof Element?n.appendChild(r.html):n.innerHTML=r.html||"";var i=function(a){a&&a.preventDefault&&(a.preventDefault(),a.stopPropagation()),r.handleClick&&r.handleClick.call(t,a)};n.addEventListener("click",i),e.appendChild(n),!r.title&&n.firstElementChild&&(n.title=n.firstElementChild.title),_r.call(this,{element:e,target:r.target}),r.title&&this.set("title",r.title),r.title&&this.set("title",r.title),r.name&&this.set("name",r.name)};Cr(El,_r);El.prototype.setVisible=function(r){r?ct.show(this.element):ct.hide(this.element)};El.prototype.setTitle=function(r){this.button_.setAttribute("title",r)};El.prototype.setHtml=function(r){ct.setHTML(this.button_,r)};El.prototype.getButtonElement=function(){return this.button_};var rs=function(r){r=r||{};var e=this;this.interaction_=r.interaction,this.interaction_&&(this.interaction_.setActive(r.active),this.interaction_.on("change:active",function(){e.setActive(e.interaction_.getActive())})),r.toggleFn&&(r.onToggle=r.toggleFn),r.handleClick=function(){e.toggle(),r.onToggle&&r.onToggle.call(e,e.getActive())},r.className=(r.className||"")+" ol-toggle",El.call(this,r),this.set("title",r.title),this.set("autoActivate",r.autoActivate),r.bar&&this.setSubBar(r.bar),this.setActive(r.active),this.setDisable(r.disable)};Cr(rs,El);rs.prototype.setMap=function(r){!r&&this.getMap()&&(this.interaction_&&this.getMap().removeInteraction(this.interaction_),this.subbar_&&this.getMap().removeControl(this.subbar_)),El.prototype.setMap.call(this,r),r&&(this.interaction_&&r.addInteraction(this.interaction_),this.subbar_&&r.addControl(this.subbar_))};rs.prototype.getSubBar=function(){return this.subbar_};rs.prototype.setSubBar=function(r){var e=this.getMap();e&&this.subbar_&&e.removeControl(this.subbar_),this.subbar_=r,r&&(this.subbar_.setTarget(this.element),this.subbar_.element.classList.add("ol-option-bar"),e&&e.addControl(this.subbar_))};rs.prototype.getDisable=function(){var r=this.element.querySelector("button");return r&&r.disabled};rs.prototype.setDisable=function(r){this.getDisable()!=r&&(this.element.querySelector("button").disabled=r,r&&this.getActive()&&this.setActive(!1),this.dispatchEvent({type:"change:disable",key:"disable",oldValue:!r,disable:r}))};rs.prototype.getActive=function(){return this.element.classList.contains("ol-active")};rs.prototype.toggle=function(){this.getActive()?this.setActive(!1):this.setActive(!0)};rs.prototype.setActive=function(r){this.interaction_&&this.interaction_.setActive(r),this.subbar_&&this.subbar_.setActive(r),this.getActive()!==r&&(r?this.element.classList.add("ol-active"):this.element.classList.remove("ol-active"),this.dispatchEvent({type:"change:active",key:"active",oldValue:!r,active:r}))};rs.prototype.setInteraction=function(r){this.interaction_=r};rs.prototype.getInteraction=function(){return this.interaction_};const hAt={name:"ol-control-toggle",setup(r,e){const{control:t}=Di(rs,r,e);return{control:t}},props:{html:{type:String},interaction:{type:Object},className:{type:String},title:{type:String},onToggle:{type:Function}}};function fAt(r,e,t,n,i,a){return dr("",!0)}var GS=le(hAt,[["render",fAt]]);const pAt={name:"ol-control-button",setup(r,e){const{control:t}=Di(El,r,e);return{control:t}},props:{html:{type:String},name:{type:String},className:{type:String},title:{type:String},handleClick:{type:Function}}};function dAt(r,e,t,n,i,a){return dr("",!0)}var kS=le(pAt,[["render",dAt]]),Ia=function(r){r=r||{},r.fullscreen&&(r.target=document.body);var e=ct.create("DIV",{className:((r.className||"")+(r.zoom?" ol-zoom":"")+" ol-ext-dialog").trim(),click:function(i){this.get("hideOnBack")&&i.target===e&&this.close(),this.get("hideOnClick")&&this.close()}.bind(this)}),t=ct.create("FORM",{on:{submit:this._onButton("submit")},parent:e});ct.create("H2",{parent:t}),ct.create("DIV",{className:"ol-closebox",click:this._onButton("cancel"),parent:t}),ct.create("DIV",{className:"ol-content",parent:t}),this._progress=ct.create("DIV",{style:{display:"none"},parent:t});var n=ct.create("DIV",{className:"ol-progress-bar",parent:this._progress});this._progressbar=ct.create("DIV",{parent:n}),this._progressMessage=ct.create("DIV",{className:"ol-progress-message",parent:this._progress}),ct.create("DIV",{className:"ol-buttons",parent:t}),_r.call(this,{element:e,target:r.target}),this.set("closeBox",r.closeBox!==!1),this.set("zoom",!!r.zoom),this.set("hideOnClick",!!r.hideOnClick),this.set("hideOnBack",!!r.hideOnBack),this.set("className",e.className),this.set("closeOnSubmit",r.closeOnSubmit),this.set("buttons",r.buttons),this.setContent(r)};Cr(Ia,_r);Ia.prototype.show=function(r){r&&((r instanceof Element||typeof r=="string")&&(r={content:r}),this.setContent(r)),this.element.classList.add("ol-visible");var e=this.element.querySelector('input[type="text"],input[type="search"],input[type="number"]');if(e&&e.focus(),this.dispatchEvent({type:"show"}),r){if(r.autoclose){var t=setTimeout(function(){this.hide()}.bind(this),r.autoclose);this.once("hide",function(){clearTimeout(t)})}if(r.hideOnBack){var n=this.get("hideOnBack");this.set("hideOnBack",!0),this.once("hide",function(){this.set("hideOnBack",n)}.bind(this))}}};Ia.prototype.open=function(){this.show()};Ia.prototype.setContentMessage=function(r){if(r!==void 0){var e=this.getContentElement();r instanceof Element&&ct.setHTML(e,""),ct.setHTML(e,r||"")}};Ia.prototype.setTitle=function(r){var e=this.element.querySelector("form");e.querySelector("h2").innerText=r||"",r?e.classList.add("ol-title"):e.classList.remove("ol-title")};Ia.prototype.setContent=function(r){if(r){this.element.className=this.get("className"),typeof r=="string"&&(r={content:r}),r=r||{},this.setProgress(!1),r.max&&this.setProgress(0,r.max),r.progress!==void 0&&this.setProgress(r.progress),this.get("zoom")?this.element.classList.add("ol-zoom"):this.element.classList.remove("ol-zoom"),r.className&&r.className.split(" ").forEach(function(a){this.element.classList.add(a)}.bind(this));var e=this.element.querySelector("form");r.content!==void 0&&(r.content instanceof Element&&ct.setHTML(e.querySelector(".ol-content"),""),ct.setHTML(e.querySelector(".ol-content"),r.content||"")),this.setTitle(r.title),r.closeBox||this.get("closeBox")&&r.closeBox!==!1?e.classList.add("ol-closebox"):e.classList.remove("ol-closebox");var t=this.element.querySelector(".ol-buttons");t.innerHTML="";var n=r.buttons||this.get("buttons");if(n){e.classList.add("ol-button");for(var i in n)ct.create("INPUT",{type:i==="submit"?"submit":"button",value:n[i],click:this._onButton(i,r.onButton),parent:t})}else e.classList.remove("ol-button")}};Ia.prototype.getContentElement=function(){return this.element.querySelector("form .ol-content")};Ia.prototype.setProgress=function(r,e,t){if(r===!1){ct.setStyle(this._progress,{display:"none"});return}if(e>0?this.set("max",Number(e)):e=this.get("max"),!e)ct.setStyle(this._progress,{display:"none"});else{var n=Math.round(r/e*100);ct.setStyle(this._progress,{display:""}),this._progressbar.className=n?"":"notransition",ct.setStyle(this._progressbar,{width:n+"%"})}this._progressMessage.innerHTML="",ct.setHTML(this._progressMessage,t||"")};Ia.prototype._onButton=function(r,e){var t=function(n){n.preventDefault(),(r!=="submit"||this.get("closeOnSubmit")!==!1)&&this.hide();var i=this.getInputs();this.dispatchEvent({type:"button",button:r,inputs:i}),typeof e=="function"&&e(r,i)}.bind(this);return t};Ia.prototype.getInputs=function(){var r={};return["input","textarea","select"].forEach(function(e){this.element.querySelectorAll("form "+e).forEach(function(t){t.className&&t.className.split(" ").forEach(function(n){r[n]=t})})}.bind(this)),r};Ia.prototype.hide=function(){this.element.classList.remove("ol-visible"),this.dispatchEvent({type:"hide"})};Ia.prototype.close=Ia.prototype.hide;Ia.prototype.isOpen=function(){return this.element.classList.contains("ol-visible")};var vAt=function(r){if(!r)return null;var e=r.getViewport().getElementsByClassName("ol-fixedoverlay")[0];return e||(r.getViewport().querySelector(".ol-layers")?(e=document.createElement("canvas"),e.className="ol-fixedoverlay",r.getViewport().querySelector(".ol-layers").after(e),r.on("precompose",function(t){e.width=r.getSize()[0]*t.frameState.pixelRatio,e.height=r.getSize()[1]*t.frameState.pixelRatio})):e=r.getViewport().querySelector("canvas")),e},Qi=function(r){r||(r={}),this.setStyle(r.style),_r.call(this,r)};Cr(Qi,_r);Qi.prototype.setMap=function(r){this.getCanvas(r);var e=this.getMap();if(this._listener&&(No(this._listener),this._listener=null),_r.prototype.setMap.call(this,r),e)try{e.renderSync()}catch{}r&&(this._listener=r.on("postcompose",this._draw.bind(this)))};Qi.prototype.getCanvas=function(r){return vAt(r)};Qi.prototype.getContext=function(r){var e=r.context;if(!e&&this.getMap()){var t=this.getMap().getViewport().getElementsByClassName("ol-fixedoverlay")[0];e=t?t.getContext("2d"):null}return e};Qi.prototype.setStyle=function(r){this._style=r||new oa({})};Qi.prototype.getStyle=function(){return this._style};Qi.prototype.getStroke=function(){var r=this._style.getStroke();return r||this._style.setStroke(new Ui({color:"#000",width:1.25})),this._style.getStroke()};Qi.prototype.getFill=function(){var r=this._style.getFill();return r||this._style.setFill(new Aa({color:"#fff"})),this._style.getFill()};Qi.prototype.getTextStroke=function(){var r=this._style.getText();return r||(r=new bh({})),r.getStroke()||r.setStroke(new Ui({color:"#fff",width:3})),r.getStroke()};Qi.prototype.getTextFill=function(){var r=this._style.getText();return r||(r=new bh({})),r.getFill()||r.setFill(new Aa({color:"#fff"})),r.getFill()};Qi.prototype.getTextFont=function(){var r=this._style.getText();return r||(r=new bh({})),r.getFont()||r.setFont("12px sans-serif"),r.getFont()};Qi.prototype._draw=function(){console.warn("[CanvasBase] draw function not implemented.")};function gAt(r,e){var t=r.canvas,n=e||{},i=n.pixelRatio||uh,a=n.size;a&&(t.width=a[0]*i,t.height=a[1]*i,t.style.width=a[0]+"px",t.style.height=a[1]+"px");var o=[0,0,t.width,t.height],s=Pv(oi(),i,i);return new fF(r,i,o,s,0)}var Rp=function(r){r=r||{},li.call(this,r),r.feature&&this.set("feature",r.feature.clone())};Cr(Rp,li);Rp.prototype.setTitle=function(r){this.set("title",r||""),this.changed()};Rp.prototype.getElement=function(r,e){var t=ct.create("LI",{className:this.get("className"),click:function(n){e(!1),n.stopPropagation()},style:{height:r[1]+"px"},"aria-label":this.get("title")});return ct.create("DIV",{click:function(n){e(!0),n.stopPropagation()},style:{width:r[0]+"px",height:r[1]+"px"},parent:t}),t};window.ol&&!ol.legend&&(ol.legend={});var la=function(r){r=r||{},li.call(this),this._items=new si;var e=[],t;this._items.on("add",function(n){e.push({item:n.element,on:n.element.on("change",function(){this.refresh()}.bind(this))}),t&&(clearTimeout(t),t=null),t=setTimeout(function(){this.refresh()}.bind(this),0)}.bind(this)),this._items.on("remove",function(n){for(var i=0;i"u"&&(r.margin=10);var n=r.size||[40,25];r.onload=r.onload||function(){setTimeout(function(){la.getLegendImage(r,e,t)},100)};var i=n[0]+2*r.margin,a=r.lineHeight||n[1]+2*r.margin,o=uh;e||(t=0,e=document.createElement("canvas"),e.width=i*o,e.height=a*o);var s=e.getContext("2d");s.save();var A=gAt(s,{pixelRatio:o}),l=r.typeGeom,u,c=r.feature;!c&&l&&(/Point/.test(l)?c=new or(new fr([0,0])):/LineString/.test(l)?c=new or(new Hr([0,0])):c=new or(new bn([[0,0]])),r.properties&&c.setProperties(r.properties)),c?(u=c.getStyle(),typeof u=="function"&&(u=u(c)),u||(u=typeof r.style=="function"?r.style(c):r.style||[]),l=c.getGeometry().getType()):u=[],u instanceof Array||(u=[u]);var h=i/2,f=a/2,p=n[0]/2,v=n[1]/2,m,g;if(l==="Point"){var _=null;for(m=0;g=u[m];m++){var E=g.getImage();if(E){var B=E.getImage();if(B&&B.complete&&!B.naturalWidth&&(typeof r.onload=="function"&&B.addEventListener("load",function(){setTimeout(function(){r.onload()},100)}),E.load()),E.getAnchor){var L=E.getAnchor();if(L){var O=E.getSize(),b=L[0]-O[0],T=L[1]-O[1];_?Uu(_,[b,T,b+O[0],T+O[1]]):_=[b,T,b+O[0],T+O[1]]}}}}_&&(h=h+(_[2]+_[0])/2,f=f+(_[3]+_[1])/2)}for(f+=t*a||0,m=0;g=u[m];m++)switch(A.setStyle(g),l){case fr:case"Point":case"MultiPoint":A.drawGeometry(new fr([h,f]));break;case Hr:case"LineString":case"MultiLineString":s.save(),s.rect(r.margin*o,0,n[0]*o,e.height),s.clip(),A.drawGeometry(new Hr([[h-p,f],[h+p,f]])),s.restore();break;case bn:case"Polygon":case"MultiPolygon":A.drawGeometry(new bn([[[h-p,f-v],[h+p,f-v],[h+p,f+v],[h-p,f+v],[h-p,f-v]]]));break}return s.restore(),e};var Ms=function(r){r=r||{};var e=document.createElement("div");if(r.target)e.className=r.className||"ol-legend";else{e.className=(r.className||"ol-legend")+" ol-unselectable ol-control"+(r.collapsible===!1?" ol-uncollapsible":" ol-collapsed");var t=document.createElement("button");t.setAttribute("type","button"),t.addEventListener("click",function(){this.toggle()}.bind(this)),e.appendChild(t),t=document.createElement("button"),t.setAttribute("type","button"),t.className="ol-closebox",t.addEventListener("click",function(){this.toggle()}.bind(this)),e.appendChild(t)}Qi.call(this,{element:e,target:r.target}),this._legend=r.legend,this._legend.getCanvas().className="ol-legendImg",e.appendChild(this._legend.getCanvas()),e.appendChild(this._legend.getListElement()),r.collapsible!==!1&&r.collapsed===!1&&this.show(),this._legend.on("select",function(n){this.dispatchEvent(n)}.bind(this)),this._legend.on("refresh",function(){if(this._onCanvas&&this.getMap())try{this.getMap().renderSync()}catch{}}.bind(this))};Cr(Ms,Qi);Ms.prototype.getLegend=function(){return this._legend};Ms.prototype.setCanvas=function(r){if(this._onCanvas=r,this.element.style.visibility=r?"hidden":"visible",this.getMap())try{this.getMap().renderSync()}catch{}};Ms.prototype.onCanvas=function(){return!!this._onCanvas};Ms.prototype._draw=function(r){if(this._onCanvas&&!this.element.classList.contains("ol-collapsed")){var e=this._legend.getCanvas(),t=this.getContext(r),n=t.canvas.height-e.height;t.save(),t.rect(0,n,e.width,e.height);var i="#fff";this._legend.getTextStyle().getBackgroundFill()&&(i=tl(this._legend.getTextStyle().getBackgroundFill().getColor())),t.fillStyle=t.strokeStyle=i,t.lineWidth=10,t.lineJoin="round",t.stroke(),t.clearRect(0,n,e.width,e.height),t.fill(),t.drawImage(e,0,n),t.restore()}};Ms.prototype.show=function(){if(this.element.classList.contains("ol-collapsed")&&(this.element.classList.remove("ol-collapsed"),this.dispatchEvent({type:"change:collapse",collapsed:!1}),this.getMap()))try{this.getMap().renderSync()}catch{}};Ms.prototype.hide=function(){if(!this.element.classList.contains("ol-collapsed")&&(this.element.classList.add("ol-collapsed"),this.dispatchEvent({type:"change:collapse",collapsed:!0}),this.getMap()))try{this.getMap().renderSync()}catch{}};Ms.prototype.collapse=function(r){r===!1?this.show():this.hide()};Ms.prototype.isCollapsed=function(){return this.element.classList.contains("ol-collapsed")};Ms.prototype.toggle=function(){if(this.element.classList.toggle("ol-collapsed"),this.dispatchEvent({type:"change:collapse",collapsed:this.element.classList.contains("ol-collapsed")}),this.getMap())try{this.getMap().renderSync()}catch{}};var Zu=function(r){r||(r={});var e=ct.create("DIV",{className:r.className||"ol-print"});r.target||(e.classList.add("ol-unselectable","ol-control"),ct.create("BUTTON",{type:"button",title:r.title||"Print",click:function(){this.print()}.bind(this),parent:e})),_r.call(this,{element:e,target:r.target}),this.set("immediate",r.immediate),this.set("imageType",r.imageType||"image/jpeg"),this.set("quality",r.quality||.8),this.set("orientation",r.orientation)};Cr(Zu,_r);Zu.prototype.toClipboard=function(r,e){try{r.canvas.toBlob(function(t){try{navigator.clipboard.write([new window.ClipboardItem(Object.defineProperty({},t.type,{value:t,enumerable:!0}))]),typeof e=="function"&&e(!0)}catch{typeof e=="function"&&e(!1)}})}catch{typeof e=="function"&&e(!1)}};Zu.prototype.copyMap=function(r,e){this.once("print",function(t){this.toClipboard(t,e)}.bind(this)),this.print(r)};Zu.prototype._getCanvas=function(r,e,t){var n;if(r.context)t=r.context.canvas;else{if(t)n=t.getContext("2d");else{t=document.createElement("canvas");var i=this.getMap().getSize();t.width=i[0],t.height=i[1],n=t.getContext("2d"),/jp.*g$/.test(e)&&(n.fillStyle=this.get("bgColor")||"white",n.fillRect(0,0,t.width,t.height))}this.getMap().getViewport().querySelectorAll(".ol-layers canvas, canvas.ol-fixedoverlay").forEach(function(a){if(a.width){if(n.save(),a.parentNode.style.opacity==="0")return;n.globalAlpha=parseFloat(a.parentNode.style.opacity)||1,ct.getStyle(a.parentNode,"mix-blend-mode")==="multiply"&&(n.globalCompositeOperation="multiply");var o=ct.getStyle(a,"transform")||ct.getStyle(a,"-webkit-transform");/^matrix/.test(o)?(o=o.replace(/^matrix\(|\)$/g,"").split(","),o.forEach(function(s,A){o[A]=parseFloat(s)}),n.transform(o[0],o[1],o[2],o[3],o[4],o[5]),n.drawImage(a,0,0)):n.drawImage(a,0,0,ct.getStyle(a,"width"),ct.getStyle(a,"height")),n.restore()}}.bind(this))}return t};Zu.prototype.fastPrint=function(r,e){r=r||{},this._ol6?requestAnimationFrame(function(){e(this._getCanvas({},r.imageType,r.canvas))}.bind(this)):(this.getMap().once("postcompose",function(t){t.context||(this._ol6=!0),e(this._getCanvas(t,r.imageType,r.canvas))}.bind(this)),this.getMap().render())};Zu.prototype.print=function(r){r=r||{};var e=r.imageType||this.get("imageType"),t=r.quality||this.get("quality");if(this.getMap()){if(r.immediate!=="silent"&&this.dispatchEvent(Object.assign({type:"printing"},r)),!r.immediate){setTimeout(function(){r=Object.assign({},r),r.immediate="silent",this.print(r)}.bind(this),200);return}this.getMap().once(this.get("immediate")?"postcompose":"rendercomplete",function(n){var i=this._getCanvas(n,e),a=r.size||[210,297],o=r.format||"a4",s,A,l,u=r.orient||this.get("orientation"),c=typeof r.margin=="number"?r.margin:10;if(i){u!=="landscape"&&u!=="portrait"&&(u=i.width>i.height?"landscape":"portrait"),u==="landscape"&&(a=[a[1],a[0]]);var h=Math.min((a[0]-2*c)/i.width,(a[1]-2*c)/i.height);s=h*i.width,A=h*i.height,l=[(a[0]-s)/2,(a[1]-A)/2]}var f;try{f=i?i.toDataURL(e,t):null}catch{this.dispatchEvent({type:"error",canvas:i});return}var p=Object.assign({type:"print",print:{format:o,orientation:u,unit:"mm",size:a,position:l,imageWidth:s,imageHeight:A},image:f,imageType:e,quality:t,canvas:i},r);this.dispatchEvent(p)}.bind(this)),this.getMap().render()}};var Ju=function(r){r||(r={});var e=ct.create("DIV",{className:(r.className||"")+" ol-control-title ol-unselectable",style:{display:"block",visibility:"hidden"}});Qi.call(this,{element:e,style:r.style}),this.setTitle(r.title||""),this.setVisible(r.visible),this.element.style.font=this.getTextFont()};Cr(Ju,Qi);Ju.prototype.setStyle=function(r){Qi.prototype.setStyle.call(this,r),this.element&&(this.element.style.font=this.getTextFont()),this.getMap()&&this.getMap().render()};Ju.prototype.setTitle=function(r){if(this.element.textContent=r,this.set("title",r),this.getMap())try{this.getMap().renderSync()}catch{}};Ju.prototype.getTitle=function(){return this.get("title")};Ju.prototype.setVisible=function(r){if(this.element.style.display=r?"block":"none",this.getMap())try{this.getMap().renderSync()}catch{}};Ju.prototype.getVisible=function(){return this.element.style.display!=="none"};Ju.prototype._draw=function(r){if(this.getVisible()){var e=this.getContext(r);if(e){var t=r.frameState.pixelRatio;e.save(),e.scale(t,t);var n=this.element.getBoundingClientRect(),i=this.getMap().getViewport().getBoundingClientRect(),a=this.getMap().getSize()[0]/i.width;e.translate(Math.round((n.left-i.left)*a),Math.round((n.top-i.top)*a));var o=this.element.clientHeight,s=this.element.clientWidth,A=s/2;e.beginPath(),e.fillStyle=tl(this.getFill().getColor()),e.rect(0,0,s,o),e.fill(),e.closePath(),e.beginPath(),e.fillStyle=tl(this.getTextFill().getColor()),e.strokeStyle=tl(this.getTextStroke().getColor()),e.lineWidth=this.getTextStroke().getWidth(),e.textAlign="center",e.textBaseline="middle",e.font=this.getTextFont(),e.lineWidth&&e.strokeText(this.getTitle(),A,o/2),e.fillText(this.getTitle(),A,o/2),e.closePath(),e.restore()}}};var $S=function(r,e){var t=r.getView(),n=t.getProjection(),i=t.getCenter(),a=r.getPixelFromCoordinate(i);a[1]+=1;var o=r.getCoordinateFromPixel(a),s=B_(Qu(i,n,"EPSG:4326"),Qu(o,n,"EPSG:4326"));return s*=(e||96)/.0254,s},yAt=function(r,e,t){if(r&&e){var n=e;if(typeof e=="string"&&(n=e.split("/")[1],n||(n=e),n=n.replace(/[^\d]/g,""),n=parseInt(n)),!n)return;var i=r.getView(),a=i.getProjection(),o=i.getCenter(),s=r.getPixelFromCoordinate(o);s[1]+=1;var A=r.getCoordinateFromPixel(s),l=B_(Qu(o,a,"EPSG:4326"),Qu(A,a,"EPSG:4326"));return l*=(t||96)/.0254,i.setResolution(i.getResolution()*n/l),n}},ul=function(r){r||(r={});var e=document.createElement("div");e.className="ol-control ol-compassctrl ol-unselectable ol-hidden"+(r.className?" "+r.className:""),e.style.position="absolute",e.style.visibility="hidden";var t=r.style instanceof Ui?new oa({stroke:r.style}):r.style;r.style||(t=new oa({stroke:new Ui({width:0})})),Qi.call(this,{element:e,style:t}),this.set("rotateVithView",r.rotateWithView!==!1),this.setVisible(r.visible!==!1),this.setImage(r.image||r.src)};Cr(ul,Qi);ul.prototype.setImage=function(r){if(r instanceof Image)this.img_=r,this.img_.onload=function(){if(this.getMap())try{this.getMap().renderSync()}catch{}}.bind(this);else if(typeof r=="string")switch(r){case"compact":{this.img_=this.compactCompass_(this.element.clientWidth,this.getStroke().getColor());break}case"default":{this.img_=this.defaultCompass_(this.element.clientWidth,this.getStroke().getColor());break}default:{this.img_=new Image,this.img_.onload=function(){if(this.getMap())try{this.getMap().renderSync()}catch{}}.bind(this),this.img_.src=r;break}}else this.img_=this.defaultCompass_(this.element.clientWidth,this.getStroke().getColor())};ul.prototype.compactCompass_=function(r,e){var t=document.createElement("canvas"),n=t.getContext("2d");r=t.width=t.height=r||150;var i=r/2;return n.translate(i,i),n.fillStyle=e||"#963",n.lineWidth=5,n.lineJoin=n.lineCap="round",n.font="bold "+i*.4+"px sans-serif",n.textBaseline="bottom",n.textAlign="center",n.strokeStyle="#fff",n.globalAlpha=.75,n.strokeText("N",0,-i/2),n.globalAlpha=1,n.fillText("N",0,-i/2),n.beginPath(),n.moveTo(0,i/4),n.lineTo(i/3,i/2),n.lineTo(0,-i/2),n.lineTo(-i/3,i/2),n.lineTo(0,i/4),n.lineWidth=12,n.fillStyle="#fff",n.globalAlpha=.75,n.fill(),n.stroke(),n.globalAlpha=1,n.fillStyle=n.strokeStyle=e||"#963",n.lineWidth=5,n.beginPath(),n.moveTo(0,i/4),n.lineTo(0,-i/2),n.lineTo(i/3,i/2),n.lineTo(0,i/4),n.fill(),n.stroke(),n.beginPath(),n.moveTo(0,i/4),n.lineTo(0,-i/2),n.lineTo(-i/3,i/2),n.lineTo(0,i/4),n.stroke(),t};ul.prototype.defaultCompass_=function(r,e){var t=document.createElement("canvas"),n=t.getContext("2d");r=t.width=t.height=r||150;var i=r/2,a=.22*i;function o(A,l){n.fillStyle=e||"#963",n.beginPath(),n.moveTo(0,0),n.lineTo(A,0),n.lineTo(l,l),n.moveTo(0,0),n.lineTo(-A,0),n.lineTo(-l,-l),n.moveTo(0,0),n.lineTo(0,A),n.lineTo(-l,l),n.moveTo(0,0),n.lineTo(0,-A),n.lineTo(l,-l),n.moveTo(0,0),n.fill(),n.stroke()}function s(A,l){n.globalCompositeOperation="destination-out",n.fillStyle="#fff",n.beginPath(),n.moveTo(0,0),n.lineTo(A,0),n.lineTo(l,-l),n.moveTo(0,0),n.lineTo(-A,0),n.lineTo(-l,l),n.moveTo(0,0),n.lineTo(0,A),n.lineTo(l,l),n.moveTo(0,0),n.lineTo(0,-A),n.lineTo(-l,-l),n.moveTo(0,0),n.fill(),n.globalCompositeOperation="source-over",n.beginPath(),n.moveTo(0,0),n.lineTo(A,0),n.lineTo(l,-l),n.moveTo(0,0),n.lineTo(-A,0),n.lineTo(-l,l),n.moveTo(0,0),n.lineTo(0,A),n.lineTo(l,l),n.moveTo(0,0),n.lineTo(0,-A),n.lineTo(-l,-l),n.moveTo(0,0),n.stroke()}return n.translate(i,i),n.strokeStyle=e||"#963",n.lineWidth=1.5,n.beginPath(),n.arc(0,0,r*.41,0,2*Math.PI),n.arc(0,0,r*.44,0,2*Math.PI),n.stroke(),n.rotate(Math.PI/4),o(i*.9,a*.8),s(i*.9,a*.8),n.rotate(-Math.PI/4),o(i,a),s(i,a),t};ul.prototype.getVisible=function(){return ct.getStyle(this.element,"display")==="block"};ul.prototype.setVisible=function(r){r?this.element.classList.add("ol-visible"):this.element.classList.remove("ol-visible"),this.getMap()&&this.getMap().render()};ul.prototype._draw=function(r){var e=this.getContext(r);if(!(!e||!this.getVisible())){var t=e.canvas,n,i=[];for(n=0;n<8;n++)i[n]=[Math.cos(Math.PI*n/8),Math.sin(Math.PI*n/8)];var a=r.frameState.pixelRatio;e.save(),e.scale(a,a);var o=this.element.clientWidth,s=this.element.clientHeight,A={left:this.element.offsetLeft,top:this.element.offsetTop},l=this.img_,u=r.frameState.viewState.rotation;if(e.beginPath(),e.translate(A.left+o/2,A.top+s/2),this.get("rotateVithView")&&e.rotate(u),this.getStroke().getWidth()){e.beginPath(),e.strokeStyle=this.getStroke().getColor(),e.lineWidth=this.getStroke().getWidth();var c=Math.max(t.width,t.height);for(n=0;n<8;n++)e.moveTo(-i[n][0]*c,-i[n][1]*c),e.lineTo(i[n][0]*c,i[n][1]*c);e.stroke()}l.width&&e.drawImage(l,-o/2,-s/2,o,s),e.closePath(),e.restore()}};var In=function(r){r||(r={}),this._lang=r.lang||"en";var e=ct.create("DIV",{className:(r.className||"ol-print")+" ol-unselectable ol-control"});ct.create("BUTTON",{type:"button",title:r.title||"Print",click:function(){this.print()}.bind(this),parent:e}),_r.call(this,{element:e}),r.openWindow&&this.on("print",function(S){S.canvas&&window.open().document.write('')}),r.target=ct.create("DIV");var t=this._printCtrl=new Zu(r);t.on(["print","error","printing"],function(S){i.setAttribute("data-status",S.type),S.clipboard||this.dispatchEvent(S)}.bind(this)),this._compass=new ul({src:r.northImage||"compact",visible:!1,className:"olext-print-compass",style:new Ui({color:"#333",width:0})});var n=this._printDialog=new Ia({target:document.body,closeBox:!0,className:"ol-ext-print-dialog"}),i=n.getContentElement();this._input={};var a=ct.create("DIV",{className:"ol-print-param",parent:i});this._pages=[ct.create("DIV",{className:"ol-page"})];var o=ct.create("DIV",{className:"ol-map",parent:this._pages[0]});ct.create("DIV",{html:this._pages[0],className:"ol-print-map",parent:i}),ct.create("H2",{html:this.i18n("title"),parent:a});var s=ct.create("UL",{parent:a}),A=ct.create("LI",{className:"ol-orientation",parent:s});this._input.orientation={list:A};var l=ct.create("LABEL",{className:"portrait",parent:A});this._input.orientation.portrait=ct.create("INPUT",{type:"radio",name:"ol-print-orientation",value:"portrait",checked:!0,on:{change:function(S){this.setOrientation(S.target.value)}.bind(this)},parent:l}),ct.create("SPAN",{html:this.i18n("portrait"),parent:l}),l=ct.create("LABEL",{className:"landscape",parent:A}),this._input.orientation.landscape=ct.create("INPUT",{type:"radio",name:"ol-print-orientation",value:"landscape",on:{change:function(S){this.setOrientation(S.target.value)}.bind(this)},parent:l}),ct.create("SPAN",{html:this.i18n("landscape"),parent:l});var u;A=ct.create("LI",{html:ct.create("LABEL",{html:this.i18n("size")}),className:"ol-size",parent:s});var c=this._input.size=ct.create("SELECT",{on:{change:function(){this.setSize(c.value||I)}.bind(this)},parent:A});for(u in this.paperSize)ct.create("OPTION",{html:u+(this.paperSize[u]?" - "+this.paperSize[u][0]+"x"+this.paperSize[u][1]+" mm":this.i18n("custom")),value:u,parent:c});A=ct.create("LI",{html:ct.create("LABEL",{html:this.i18n("margin")}),className:"ol-margin",parent:s});var h=this._input.margin=ct.create("SELECT",{on:{change:function(){this.setMargin(h.value)}.bind(this)},parent:A});for(u in this.marginSize)ct.create("OPTION",{html:this.i18n(u)+" - "+this.marginSize[u]+" mm",value:this.marginSize[u],parent:h});A=ct.create("LI",{html:ct.create("LABEL",{html:this.i18n("scale")}),className:"ol-scale",parent:s});var f=this._input.scale=ct.create("SELECT",{on:{change:function(){this.setScale(parseInt(f.value))}.bind(this)},parent:A});Object.keys(this.scales).forEach(function(S){ct.create("OPTION",{html:this.scales[S],value:S,parent:f})}.bind(this)),A=ct.create("LI",{className:"ol-legend",parent:s});var p=ct.createSwitch({html:this.i18n("legend"),checked:!1,on:{change:function(){x.legend.control.setCanvas(p.checked)}.bind(this)},parent:A});A=ct.create("LI",{className:"ol-print-north",parent:s});var v=this._input.north=ct.createSwitch({html:this.i18n("north"),checked:"checked",on:{change:function(){v.checked?this._compass.element.classList.add("ol-print-compass"):this._compass.element.classList.remove("ol-print-compass"),this.getMap().render()}.bind(this)},parent:A});A=ct.create("LI",{className:"ol-print-title",parent:s});var m=ct.createSwitch({html:this.i18n("mapTitle"),checked:!1,on:{change:function(S){x.title.control.setVisible(S.target.checked)}.bind(this)},parent:A}),g=ct.create("INPUT",{type:"text",placeholder:this.i18n("mapTitle"),on:{keydown:function(S){S.keyCode===13&&S.preventDefault()},keyup:function(){x.title.control.setTitle(g.value)},change:function(){x.title.control.setTitle(g.value)}.bind(this)},parent:A}),_=ct.create("DIV",{className:"ol-user-param",parent:a});A=ct.create("LI",{className:"ol-saveas",parent:s});var E=ct.create("DIV",{html:this.i18n("copied"),className:"ol-clipboard-copy",parent:A}),B=ct.create("SELECT",{on:{change:function(){if(this.formats[B.value].clipboard)t.copyMap(this.formats[B.value],function(P){P&&(E.classList.add("visible"),setTimeout(function(){E.classList.remove("visible")},1e3))});else{var S=typeof this.getSize()=="string"?this.getSize():null,N=Object.assign({format:S,size:S?this.paperSize[S]:null,orient:this.getOrientation(),margin:this.getMargin()},this.formats[B.value]);t.print(N)}B.value=""}.bind(this)},parent:A});ct.create("OPTION",{html:this.i18n("saveas"),style:{display:"none"},value:"",parent:B}),this.formats.forEach(function(S,N){if(S.pdf){if(r.pdf===!1)return}else if(S.clipboard){if(r.copy===!1)return}else if(r.save===!1)return;ct.create("OPTION",{html:this.i18n(S.title),value:N,parent:B})}.bind(this)),A=ct.create("LI",{className:"ol-savelegend",parent:s});var L=ct.create("DIV",{html:this.i18n("copied"),className:"ol-clipboard-copy",parent:A}),O=ct.create("SELECT",{on:{change:function(){var S=x.legend.control.getLegend().getCanvas(),N=document.createElement("CANVAS");N.width=S.width,N.height=S.height;var P=N.getContext("2d");if(P.fillStyle="#fff",P.fillRect(0,0,N.width,N.height),P.drawImage(S,0,0),this.formats[O.value].clipboard)N.toBlob(function(_t){try{navigator.clipboard.write([new window.ClipboardItem(Object.defineProperty({},_t.type,{value:_t,enumerable:!0}))]),L.classList.add("visible"),setTimeout(function(){L.classList.remove("visible")},1e3)}catch{}},"image/png");else{var X;try{X=N.toDataURL(this.formats[O.value].imageType,this.formats[O.value].quality);var z=typeof this.getSize()=="string"?this.getSize():"A4",tt=N.width/96*25.4,J=N.height/96*25.4,nt=this.paperSize[z];this.getOrientation()==="landscape"&&(nt=[nt[1],nt[0]]);var it=[(nt[0]-tt)/2,(nt[1]-J)/2];this.dispatchEvent({type:"print",print:{legend:!0,format:z,orientation:this.getOrientation(),unit:"mm",size:this.paperSize[z],position:it,imageWidth:tt,imageHeight:J},image:X,imageType:this.formats[O.value].imageType,pdf:this.formats[O.value].pdf,quality:this.formats[O.value].quality,canvas:N})}catch{}}O.value=""}.bind(this)},parent:A});ct.create("OPTION",{html:this.i18n("saveLegend"),style:{display:"none"},value:"",parent:O}),this.formats.forEach(function(S,N){ct.create("OPTION",{html:this.i18n(S.title),value:N,parent:O})}.bind(this));var b=ct.create("DIV",{className:"ol-ext-buttons",parent:a});ct.create("BUTTON",{html:this.i18n("printBt"),type:"submit",click:function(S){S.preventDefault(),window.print()},parent:b}),ct.create("BUTTON",{html:this.i18n("cancel"),type:"button",click:function(){n.hide()},parent:b}),ct.create("DIV",{html:this.i18n("errorMsg"),className:"ol-error",parent:a});var T,I,M,x={};n.on("show",function(){this.dispatchEvent({type:"show",userElement:_,dialog:this._printDialog,page:this.getPage()});var S=this.getMap();S&&(document.body.classList.add("ol-print-document"),T=S.getTargetElement(),I=S.getSize(),typeof this.getSize()=="string"?this.setSize(this.getSize()):this.setSize(I),S.setTarget(o),M&&No(M),M=S.on("moveend",function(){this.setScale($S(S))}.bind(this)),this.setScale($S(S)),x={},this.getMap().getControls().forEach(function(N){N instanceof Ms&&(x.legend={control:N}),N instanceof Ju&&(x.title={control:N}),N instanceof ul&&(x.compass?N.element.classList.remove("ol-print-compass"):(this._input.north.checked?N.element.classList.add("ol-print-compass"):N.element.classList.remove("ol-print-compass"),this._compass=N,x.compass={control:N}))}.bind(this)),x.title?(m.checked=x.title.isVisible=x.title.control.getVisible(),g.value=x.title.control.getTitle(),m.parentNode.parentNode.classList.remove("hidden")):m.parentNode.parentNode.classList.add("hidden"),x.legend?(x.legend.ison=x.legend.control.onCanvas(),x.legend.collapsed=x.legend.control.isCollapsed(),x.legend.control.collapse(!1),O.parentNode.classList.remove("hidden"),p.parentNode.parentNode.classList.remove("hidden"),p.checked=!x.legend.collapsed,x.legend.control.setCanvas(!x.legend.collapsed)):(O.parentNode.classList.add("hidden"),p.parentNode.parentNode.classList.add("hidden")))}.bind(this)),n.on("hide",function(){document.body.classList.remove("ol-print-document"),T&&(this.getMap().setTarget(T),T=null,M&&No(M),x.title&&x.title.control.setVisible(x.title.isVisible),x.legend&&(x.legend.control.setCanvas(x.legend.ison),x.legend.control.collapse(x.legend.collapsed)),this.dispatchEvent({type:"hide"}))}.bind(this)),window.addEventListener("resize",function(){this.setSize()}.bind(this)),r.saveAs&&this.on("print",function(S){S.pdf||S.canvas.toBlob(function(N){var P=(S.print.legend?"legend.":"map.")+S.imageType.replace("image/","");r.saveAs(N,P)},S.imageType,S.quality)}),r.jsPDF&&this.on("print",function(S){if(S.pdf){var N=new r.jsPDF({orientation:S.print.orientation,unit:S.print.unit,format:S.print.size});N.addImage(S.image,"JPEG",S.print.position[0],S.print.position[0],S.print.imageWidth,S.print.imageHeight),N.save(S.print.legend?"legend.pdf":"map.pdf")}})};Cr(In,_r);In.prototype.isOpen=function(){return this._printDialog.isOpen()};In.addLang=function(r,e){In.prototype._labels[r]=e};In.prototype.i18n=function(r){var e=this._labels.en[r]||"bad param";return this._labels[this._lang]&&this._labels[this._lang][r]&&(e=this._labels[this._lang][r]),e};In.prototype._labels={en:{title:"Print",orientation:"Orientation",portrait:"Portrait",landscape:"Landscape",size:"Page size",custom:"screen size",margin:"Margin",scale:"Scale",legend:"Legend",north:"North arrow",mapTitle:"Map title",saveas:"Save as...",saveLegend:"Save legend...",copied:"✔ Copied to clipboard",errorMsg:"Can't save map canvas...",printBt:"Print...",clipboardFormat:"copy to clipboard...",jpegFormat:"save as jpeg",pngFormat:"save as png",pdfFormat:"save as pdf",none:"none",small:"small",large:"large",cancel:"cancel"},fr:{title:"Imprimer",orientation:"Orientation",portrait:"Portrait",landscape:"Paysage",size:"Taille du papier",custom:"taille écran",margin:"Marges",scale:"Echelle",legend:"Légende",north:"Flèche du nord",mapTitle:"Titre de la carte",saveas:"Enregistrer sous...",saveLegend:"Enregistrer la légende...",copied:"✔ Carte copiée",errorMsg:"Impossible d'enregistrer la carte",printBt:"Imprimer",clipboardFormat:"copier dans le presse-papier...",jpegFormat:"enregistrer un jpeg",pngFormat:"enregistrer un png",pdfFormat:"enregistrer un pdf",none:"aucune",small:"petites",large:"larges",cancel:"annuler"},de:{title:"Drucken",orientation:"Ausrichtung",portrait:"Hochformat",landscape:"Querformat",size:"Papierformat",custom:"Bildschirmgröße",margin:"Rand",scale:"Maßstab",legend:"Legende",north:"Nordpfeil",mapTitle:"Kartentitel",saveas:"Speichern als...",saveLegend:"Legende speichern...",copied:"✔ In die Zwischenablage kopiert",errorMsg:"Kann Karte nicht speichern...",printBt:"Drucken...",clipboardFormat:"in die Zwischenablage kopieren...",jpegFormat:"speichern als jpeg",pngFormat:"speichern als png",pdfFormat:"speichern als pdf",none:"kein",small:"klein",large:"groß",cancel:"abbrechen"},zh:{title:"打印",orientation:"方向",portrait:"纵向",landscape:"横向",size:"页面大小",custom:"屏幕大小",margin:"外边距",scale:"尺度",legend:"图例",north:"指北针",mapTitle:"地图名字",saveas:"保存为...",saveLegend:"保存图例为...",copied:"✔ 已复制到剪贴板",errorMsg:"无法保存地图...",printBt:"打印...",cancel:"取消"}};In.prototype.paperSize={"":null,A0:[841,1189],A1:[594,841],A2:[420,594],A3:[297,420],A4:[210,297],"US Letter":[215.9,279.4],A5:[148,210],B4:[257,364],B5:[182,257]};In.prototype.marginSize={none:0,small:5,large:10};In.prototype.formats=[{title:"clipboardFormat",imageType:"image/png",clipboard:!0},{title:"jpegFormat",imageType:"image/jpeg",quality:.8},{title:"pngFormat",imageType:"image/png",quality:.8},{title:"pdfFormat",imageType:"image/jpeg",pdf:!0}];In.prototype.scales={" 5000":"1/5.000"," 10000":"1/10.000"," 25000":"1/25.000"," 50000":"1/50.000"," 100000":"1/100.000"," 250000":"1/250.000"," 1000000":"1/1.000.000"};In.prototype.getOrientation=function(){return this._orientation||"portrait"};In.prototype.setOrientation=function(r){this._orientation=r==="landscape"?"landscape":"portrait",this._input.orientation[this._orientation].checked=!0,this.setSize()};In.prototype.getMargin=function(){return this._margin||0};In.prototype.setMargin=function(r){this._margin=r,this._input.margin.value=r,this.setSize()};In.prototype.getSize=function(){return this._size};In.prototype.setSize=function(r){if(this._printDialog.getContentElement().setAttribute("data-status",""),r?this._size=r:r=this._size,!!r){if(typeof r=="string"){for(var e in this.paperSize)e&&new RegExp(e,"i").test(r)&&(r=e);this.paperSize[r]||(r=this._size="A4"),this._input.size.value=r,r=[Math.trunc(this.paperSize[r][0]*96/25.4),Math.trunc(this.paperSize[r][1]*96/25.4)],this.getOrientation()==="landscape"&&(r=[r[1],r[0]]),this.getPage().classList.remove("margin")}else this._input.size.value="",this.getPage().classList.add("margin");var t=this.getPage(),n=t.parentNode.getBoundingClientRect(),i=(n.width-40)/r[0],a=(n.height-40)/r[1],o=Math.min(i,a,1);t.style.width=r[0]+"px",t.style.height=r[1]+"px",t.style["-webkit-transform"]=t.style.transform="translate(-50%,-50%) scale("+o+")";var s=Math.round(5/o);t.style["-webkit-box-shadow"]=t.style["box-shadow"]=s+"px "+s+"px "+s+"px rgba(0,0,0,.6)",t.style.padding=this.getMargin()*96/25.4+"px",this.getMap()&&this.getMap().updateSize(),this.dispatchEvent({type:"dialog:refresh"})}};In.prototype.getContentElement=function(){return this._printDialog.getContentElement()};In.prototype.getUserElement=function(){return this._printDialog.getContentElement().querySelector(".ol-user-param")};In.prototype.getPage=function(){return this._pages[0]};In.prototype.setMap=function(r){this.getMap()&&(this.getMap().removeControl(this._compass),this.getMap().removeControl(this._printCtrl),this.getMap().removeControl(this._printDialog)),_r.prototype.setMap.call(this,r),this.getMap()&&(this.getMap().addControl(this._compass),this.getMap().addControl(this._printCtrl),this.getMap().addControl(this._printDialog))};In.prototype.setScale=function(r){yAt(this.getMap(),r),this._input.scale.value=" "+Math.round(r/100)*100};In.prototype.getScale=function(){return $S(this.getMap())};In.prototype.print=function(r){r=r||{},r.size&&this.setSize(r.size),r.scale&&this.setScale(r.scale),r.orientation&&this.setOrientation(r.orientation),r.margin&&this.setMargin(r.margin),this._printDialog.show()};In.prototype.getrintControl=function(){return this._printCtrl};var LF={exports:{}};(function(r,e){(function(t,n){n()})(Zs,function(){function t(l,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function n(l,u,c){var h=new XMLHttpRequest;h.open("GET",l),h.responseType="blob",h.onload=function(){A(h.response,u,c)},h.onerror=function(){console.error("could not download file")},h.send()}function i(l){var u=new XMLHttpRequest;u.open("HEAD",l,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function a(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(u)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Zs=="object"&&Zs.global===Zs?Zs:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),A=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,u,c){var h=o.URL||o.webkitURL,f=document.createElement("a");u=u||l.name||"download",f.download=u,f.rel="noopener",typeof l=="string"?(f.href=l,f.origin===location.origin?a(f):i(f.href)?n(l,u,c):a(f,f.target="_blank")):(f.href=h.createObjectURL(l),setTimeout(function(){h.revokeObjectURL(f.href)},4e4),setTimeout(function(){a(f)},0))}:"msSaveOrOpenBlob"in navigator?function(l,u,c){if(u=u||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(t(l,c),u);else if(i(l))n(l,u,c);else{var h=document.createElement("a");h.href=l,h.target="_blank",setTimeout(function(){a(h)})}}:function(l,u,c,h){if(h=h||open("","_blank"),h&&(h.document.title=h.document.body.innerText="downloading..."),typeof l=="string")return n(l,u,c);var f=l.type==="application/octet-stream",p=/constructor/i.test(o.HTMLElement)||o.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||f&&p||s)&&typeof FileReader<"u"){var m=new FileReader;m.onloadend=function(){var E=m.result;E=v?E:E.replace(/^data:[^;]*;/,"data:attachment/file;"),h?h.location.href=E:location=E,h=null},m.readAsDataURL(l)}else{var g=o.URL||o.webkitURL,_=g.createObjectURL(l);h?h.location=_:location.href=_,h=null,setTimeout(function(){g.revokeObjectURL(_)},4e4)}});o.saveAs=A.saveAs=A,r.exports=A})})(LF);function tn(r){return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tn(r)}var Ga=Uint8Array,ka=Uint16Array,Tg=Uint32Array,_w=new Ga([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ww=new Ga([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),VS=new Ga([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),p8=function(r,e){for(var t=new ka(31),n=0;n<31;++n)t[n]=e+=1<>>1|(Sn&21845)<<1;ql=(ql&52428)>>>2|(ql&13107)<<2,ql=(ql&61680)>>>4|(ql&3855)<<4,KS[Sn]=((ql&65280)>>>8|(ql&255)<<8)>>>1}var oA=function(r,e,t){for(var n=r.length,i=0,a=new ka(e);i>>A]=l}else for(s=new ka(n),i=0;i>>15-r[i];return s},$u=new Ga(288);for(var Sn=0;Sn<144;++Sn)$u[Sn]=8;for(var Sn=144;Sn<256;++Sn)$u[Sn]=9;for(var Sn=256;Sn<280;++Sn)$u[Sn]=7;for(var Sn=280;Sn<288;++Sn)$u[Sn]=8;var Sg=new Ga(32);for(var Sn=0;Sn<32;++Sn)Sg[Sn]=5;var _At=oA($u,9,0),wAt=oA($u,9,1),EAt=oA(Sg,5,0),CAt=oA(Sg,5,1),DC=function(r){for(var e=r[0],t=1;te&&(e=r[t]);return e},ds=function(r,e,t){var n=e/8>>0;return(r[n]|r[n+1]<<8)>>>(e&7)&t},QC=function(r,e){var t=e/8>>0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>>(e&7)},OF=function(r){return(r/8>>0)+(r&7&&1)},y8=function(r,e,t){(e==null||e<0)&&(e=0),(t==null||t>r.length)&&(t=r.length);var n=new(r instanceof ka?ka:r instanceof Tg?Tg:Ga)(t-e);return n.set(r.subarray(e,t)),n},BAt=function(r,e,t){var n=r.length,i=!e||t,a=!t||t.i;t||(t={}),e||(e=new Ga(n*3));var o=function(at){var vt=e.length;if(at>vt){var wt=new Ga(Math.max(vt*2,at));wt.set(e),e=wt}},s=t.f||0,A=t.p||0,l=t.b||0,u=t.l,c=t.d,h=t.m,f=t.n,p=n*8;do{if(!u){t.f=s=ds(r,A,1);var v=ds(r,A+1,3);if(A+=3,v)if(v==1)u=wAt,c=CAt,h=9,f=5;else if(v==2){var E=ds(r,A,31)+257,B=ds(r,A+10,15)+4,L=E+ds(r,A+5,31)+1;A+=14;for(var O=new Ga(L),b=new Ga(19),T=0;Tp)break;for(var x=oA(b,I,1),T=0;T>>4;if(m<16)O[T++]=m;else{var N=0,P=0;for(m==16?(P=3+ds(r,A,3),A+=2,N=O[T-1]):m==17?(P=3+ds(r,A,7),A+=3):m==18&&(P=11+ds(r,A,127),A+=7);P--;)O[T++]=N}}var X=O.subarray(0,E),z=O.subarray(E);h=DC(X),f=DC(z),u=oA(X,h,1),c=oA(z,f,1)}else throw"invalid block type";else{var m=OF(A)+4,g=r[m-4]|r[m-3]<<8,_=m+g;if(_>n){if(a)throw"unexpected EOF";break}i&&o(l+g),e.set(r.subarray(m,_),l),t.b=l+=g,t.p=A=_*8;continue}if(A>p)throw"unexpected EOF"}i&&o(l+131072);for(var tt=(1<>>4;if(A+=N&15,A>p)throw"unexpected EOF";if(!N)throw"invalid length/literal";if(it<256)e[l++]=it;else if(it==256){u=null;break}else{var _t=it-254;if(it>264){var T=it-257,R=_w[T];_t=ds(r,A,(1<>>4;if(!$)throw"invalid distance";A+=$&15;var z=mAt[K];if(K>3){var R=ww[K];z+=QC(r,A)&(1<p)throw"unexpected EOF";i&&o(l+131072);for(var q=l+_t;l>0;r[n]|=t,r[n+1]|=t>>>8},Kd=function(r,e,t){t<<=e&7;var n=e/8>>0;r[n]|=t,r[n+1]|=t>>>8,r[n+2]|=t>>>16},HC=function(r,e){for(var t=[],n=0;nh&&(h=a[n].s);var f=new ka(h+1),p=zS(t[u-1],f,0);if(p>e){var n=0,v=0,m=p-e,g=1<e)v+=g-(1<>>=m;v>0;){var E=a[n].s;f[E]=0&&v;--n){var B=a[n].s;f[B]==e&&(--f[B],++v)}p=e}return[new Ga(f),p]},zS=function(r,e,t){return r.s==-1?Math.max(zS(r.l,e,t+1),zS(r.r,e,t+1)):e[r.s]=t},hN=function(r){for(var e=r.length;e&&!r[--e];);for(var t=new ka(++e),n=0,i=r[0],a=1,o=function(A){t[n++]=A},s=1;s<=e;++s)if(r[s]==i&&s!=e)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=r[s]}return[t.subarray(0,n),e]},zd=function(r,e){for(var t=0,n=0;n>>8,r[i+2]=r[i]^255,r[i+3]=r[i+1]^255;for(var a=0;a4&&!M[VS[S-1]];--S);var N=l+5<<3,P=zd(i,$u)+zd(a,Sg)+o,X=zd(i,h)+zd(a,v)+o+14+3*S+zd(b,M)+(2*b[16]+3*b[17]+7*b[18]);if(N<=P&&N<=X)return k0(e,u,r.subarray(A,A+l));var z,tt,J,nt;if(PA(e,u,1+(X15&&(PA(e,u,$[T]>>>5&127),u+=$[T]>>>12)}}else z=_At,tt=$u,J=EAt,nt=Sg;for(var T=0;T255){var K=n[T]>>>18&31;Kd(e,u,z[K+257]),u+=tt[K+257],K>7&&(PA(e,u,n[T]>>>23&31),u+=_w[K]);var q=n[T]&31;Kd(e,u,J[q]),u+=nt[q],q>3&&(Kd(e,u,n[T]>>>5&8191),u+=ww[q])}else Kd(e,u,z[n[T]]),u+=tt[n[T]];return Kd(e,u,z[256]),u+tt[256]},TAt=new Tg([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),SAt=new Ga(0),xAt=function(r,e,t,n,i,a){var o=r.length,s=new Ga(n+o+5*(1+Math.floor(o/7e3))+i),A=s.subarray(n,s.length-i),l=0;if(!e||o<8)for(var u=0;u<=o;u+=65535){var c=u+65535;c>>13,p=h&8191,v=(1<7e3||M>24576)&&z>423){l=fN(r,A,0,L,O,b,I,M,S,u-S,l),M=T=I=0,S=u;for(var tt=0;tt<286;++tt)O[tt]=0;for(var tt=0;tt<30;++tt)b[tt]=0}var J=2,nt=0,it=p,_t=P-X&32767;if(z>2&&N==B(u-_t))for(var R=Math.min(f,z)-1,$=Math.min(32767,u),K=Math.min(258,z);_t<=$&&--it&&P!=X;){if(r[u+J]==r[u+J-_t]){for(var q=0;qJ){if(J=q,nt=_t,q>R)break;for(var at=Math.min(_t,q-2),vt=0,tt=0;ttvt&&(vt=It,X=wt)}}}P=X,X=m[P],_t+=P-X+32768&32767}if(nt){L[M++]=268435456|jS[J]<<18|cN[nt];var Ot=jS[J]&31,j=cN[nt]&31;I+=_w[Ot]+ww[j],++O[257+Ot],++b[j],x=u+J,++T}else L[M++]=r[u],++O[r[u]]}}l=fN(r,A,a,L,O,b,I,M,S,u-S,l),a||(l=k0(A,l,SAt))}return y8(s,0,n+OF(l)+i)},bAt=function(){var r=1,e=0;return{p:function(t){for(var n=r,i=e,a=t.length,o=0;o!=a;){for(var s=Math.min(o+5552,a);o>>8<<16|(e&255)<<8|e>>>8)+((r&255)<<23)*2}}},IAt=function(r,e,t,n,i){return xAt(r,e.level==null?6:e.level,e.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):12+e.mem,t,n,!i)},FAt=function(r,e,t){for(;t;++e)r[e]=t,t>>>=8},LAt=function(r,e){var t=e.level,n=t==0?0:t<6?1:t==9?3:2;r[0]=120,r[1]=n<<6|(n?32-2*n:1)},OAt=function(r){if((r[0]&15)!=8||r[0]>>>4>7||(r[0]<<8|r[1])%31)throw"invalid zlib data";if(r[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function YS(r,e){e===void 0&&(e={});var t=bAt();t.p(r);var n=IAt(r,e,2,4);return LAt(n,e),FAt(n,n.length-4,t.d()),n}function RAt(r,e){return BAt((OAt(r),r.subarray(2,-4)),e)}/** @license + */(function(r,e){(function(t,n){r.exports=n(sAt)})(Js,function(t){function n(I){return I&&typeof I=="object"&&"default"in I?I:{default:I}}var i=n(t),a="ol-ctx-menu",o={namespace:a,container:a+"-container",separator:a+"-separator",submenu:a+"-submenu",hidden:a+"-hidden",icon:a+"-icon",zoomIn:a+"-zoom-in",zoomOut:a+"-zoom-out",unselectable:"ol-unselectable"},s=o,A="beforeopen",l="open",u="close",c="contextmenu",h={width:150,scrollAt:4,eventType:c,defaultItems:!0},f=[{text:"Zoom In",classname:o.zoomIn+" "+o.icon,callback:function(I,M){var S=M.getView();S.animate({zoom:+S.getZoom()+1,duration:700,center:I.coordinate})}},{text:"Zoom Out",classname:o.zoomOut+" "+o.icon,callback:function(I,M){var S=M.getView();S.animate({zoom:+S.getZoom()-1,duration:700,center:I.coordinate})}}];function p(I,M){if(M===void 0&&(M="Assertion failed"),!I)throw typeof Error<"u"?new Error(M):M}function v(I){return/^\d+$/.test(I)}function m(I,M){return I.classList?I.classList.contains(M):B(M).test(I.className)}function g(I,M,S){M===void 0&&(M=window.document);var b=Array.prototype.slice,N=[];if(/^(#?[\w-]+|\.[\w-.]+)$/.test(I))switch(I[0]){case"#":N=[_(I.substr(1))];break;case".":N=b.call(M.getElementsByClassName(I.substr(1).replace(/\./g," ")));break;default:N=b.call(M.getElementsByTagName(I))}else N=b.call(M.querySelectorAll(I));return S?N:N[0]}function _(I){return I=I[0]==="#"?I.substr(1,I.length):I,document.getElementById(I)}function E(I){var M=document.createDocumentFragment(),S=document.createElement("div");for(S.innerHTML=I;S.firstChild;)M.appendChild(S.firstChild);return M}function B(I){return new RegExp("(^|\\s+) "+I+" (\\s+|$)")}function L(I,M,S){I.classList?I.classList.add(M):I.className=(I.className+" "+M).trim(),S&&v(S)&&window.setTimeout(function(){return O(I,M)},S)}function O(I,M,S){I.classList?I.classList.remove(M):I.className=I.className.replace(B(M)," ").trim(),S&&v(S)&&window.setTimeout(function(){return L(I,M)},S)}var x=function(I){return this.Base=I,this.map=void 0,this.viewport=void 0,this.coordinateClicked=void 0,this.pixelClicked=void 0,this.lineHeight=0,this.items={},this.opened=!1,this.submenu={left:I.options.width-15+"px",lastLeft:""},this.eventHandler=this.handleEvent.bind(this),this.eventMapMoveHandler=this.handleMapMoveEvent.bind(this),this};x.prototype.init=function(I){this.map=I,this.viewport=I.getViewport(),this.setListeners(),this.Base.Html.createMenu(),this.lineHeight=this.getItemsLength()>0?this.Base.container.offsetHeight/this.getItemsLength():this.Base.Html.cloneAndGetLineHeight()},x.prototype.getItemsLength=function(){var I=this,M=0;return Object.keys(this.items).forEach(function(S){I.items[S].submenu||I.items[S].separator||M++}),M},x.prototype.getPixelClicked=function(){return this.pixelClicked},x.prototype.getCoordinateClicked=function(){return this.coordinateClicked},x.prototype.positionContainer=function(I){var M=this,S=this.Base.container,b=this.map.getSize(),N=b[1]-I[1],P=b[0]-I[0],X=S.offsetWidth,z=Math.round(this.lineHeight*this.getItemsLength()),tt=g("li."+s.submenu+">div",S,!0);P>=X?(S.style.right="auto",S.style.left=I[0]+5+"px"):(S.style.left="auto",S.style.right="15px"),N>=z?(S.style.bottom="auto",S.style.top=I[1]-10+"px"):(S.style.top="auto",S.style.bottom=0),function J(nt,it,_t){if(Array.isArray(nt))nt.forEach(function(K){return J(K,it,_t)});else for(var R=Array.isArray(it)?it:it.split(/\s+/),$=R.length;$--;)m(nt,R[$])&&O(nt,R[$],_t)}(S,s.hidden),tt.length&&(this.submenu.lastLeft=P<2*X?"-"+X+"px":this.submenu.left,tt.forEach(function(J){var nt,it,_t,R={w:window.innerWidth||document.documentElement.clientWidth,h:window.innerHeight||document.documentElement.clientHeight},$=(it=(nt=J).getBoundingClientRect(),_t=document.documentElement,{left:it.left+window.pageXOffset-_t.clientLeft,top:it.top+window.pageYOffset-_t.clientTop,width:nt.offsetWidth,height:nt.offsetHeight}),K=$.height,q=N-K;q<0&&(q=K-(R.h-$.top),J.style.top="-"+q+"px"),J.style.left=M.submenu.lastLeft}))},x.prototype.openMenu=function(I,M){this.Base.dispatchEvent({type:l,pixel:I,coordinate:M}),this.opened=!0,this.positionContainer(I)},x.prototype.closeMenu=function(){this.opened=!1,function I(M,S,b){if(Array.isArray(M))M.forEach(function(X){return I(X,S)});else for(var N=Array.isArray(S)?S:S.split(/\s+/),P=N.length;P--;)m(M,N[P])||L(M,N[P],b)}(this.Base.container,s.hidden),this.Base.dispatchEvent({type:u})},x.prototype.setListeners=function(){this.viewport.addEventListener(this.Base.options.eventType,this.eventHandler,!1),this.map.on("movestart",this.eventMapMoveHandler)},x.prototype.removeListeners=function(){this.viewport.removeEventListener(this.Base.options.eventType,this.eventHandler,!1),this.map.un("movestart",this.eventMapMoveHandler)},x.prototype.handleEvent=function(I){var M=this;this.coordinateClicked=this.map.getEventCoordinate(I),this.pixelClicked=this.map.getEventPixel(I),this.Base.dispatchEvent({type:A,pixel:this.pixelClicked,coordinate:this.coordinateClicked}),this.Base.disabled||(this.Base.options.eventType===c&&(I.stopPropagation(),I.preventDefault()),this.openMenu(this.pixelClicked,this.coordinateClicked),I.target.addEventListener("pointerdown",{handleEvent:function(S){M.opened&&(M.closeMenu(),S.stopPropagation(),I.target.removeEventListener(S.type,this,!1))}},!1))},x.prototype.handleMapMoveEvent=function(I){this.closeMenu()},x.prototype.setItemListener=function(I,M){var S,b=this;I&&typeof this.items[M].callback=="function"&&(S=this.items[M].callback,I.addEventListener("click",function(N){N.preventDefault();var P={coordinate:b.getCoordinateClicked(),data:b.items[M].data||null};b.closeMenu(),S(P,b.map)},!1))};var T=function(I){return this.Base=I,this.Base.container=this.container=this.createContainer(!0),this};return T.prototype.createContainer=function(I){var M=document.createElement("div"),S=document.createElement("ul"),b=[s.container,s.unselectable];return I&&b.push(s.hidden),M.className=b.join(" "),M.style.width=parseInt(this.Base.options.width,10)+"px",M.appendChild(S),M},T.prototype.createMenu=function(){var I=[];if("items"in this.Base.options?I=this.Base.options.defaultItems?this.Base.options.items.concat(f):this.Base.options.items:this.Base.options.defaultItems&&(I=f),I.length===0)return!1;I.forEach(this.addMenuEntry,this)},T.prototype.addMenuEntry=function(I){var M,S=this;if(I.items&&Array.isArray(I.items)){I.classname=I.classname||"",M=s.submenu,~I.classname.indexOf(M)||(I.classname=I.classname.length?" "+s.submenu:s.submenu);var b=this.generateHtmlAndPublish(this.container,I),N=this.createContainer();N.style.left=this.Base.Internal.submenu.lastLeft||this.Base.Internal.submenu.left,b.appendChild(N),I.items.forEach(function(P){S.generateHtmlAndPublish(N,P,!0)})}else this.generateHtmlAndPublish(this.container,I)},T.prototype.generateHtmlAndPublish=function(I,M,S){var b,N,P="_"+Math.random().toString(36).substr(2,9),X=!1;return typeof M=="string"&&M.trim()==="-"?(b=E('

  • '),N=[].slice.call(b.childNodes,0)[0],I.firstChild.appendChild(b),X=!0):(M.classname=M.classname||"",b=E(""+M.text+""),N=document.createElement("li"),M.icon&&(M.classname===""?M.classname=s.icon:M.classname.indexOf(s.icon)===-1&&(M.classname+=" "+s.icon),N.setAttribute("style","background-image:url("+M.icon+")")),N.id=P,N.className=M.classname,N.appendChild(b),I.firstChild.appendChild(N)),this.Base.Internal.items[P]={id:P,submenu:S||0,separator:X,callback:M.callback,data:M.data||null},this.Base.Internal.setItemListener(N,P),N},T.prototype.removeMenuEntry=function(I){var M=g("#"+I,this.container.firstChild);M&&this.container.firstChild.removeChild(M),delete this.Base.Internal.items[I]},T.prototype.cloneAndGetLineHeight=function(){var I=this.container.cloneNode(),M=E("Foo"),S=E("Foo"),b=document.createElement("li"),N=document.createElement("li");b.appendChild(M),N.appendChild(S),I.appendChild(b),I.appendChild(N),this.container.parentNode.appendChild(I);var P=I.offsetHeight/2;return this.container.parentNode.removeChild(I),P},function(I){function M(S){S===void 0&&(S={}),p(typeof S=="object","@param `opt_options` should be object type!"),this.options=function(b,N){var P={};for(var X in b)P[X]=b[X];for(var z in N)P[z]=N[z];return P}(h,S),this.disabled=!1,this.Internal=new x(this),this.Html=new T(this),I.call(this,{element:this.container})}return I&&(M.__proto__=I),M.prototype=Object.create(I&&I.prototype),M.prototype.constructor=M,M.prototype.clear=function(){Object.keys(this.Internal.items).forEach(this.Html.removeMenuEntry,this.Html)},M.prototype.close=function(){this.Internal.closeMenu()},M.prototype.enable=function(){this.disabled=!1},M.prototype.disable=function(){this.disabled=!0},M.prototype.getDefaultItems=function(){return f},M.prototype.countItems=function(){return Object.keys(this.Internal.items).length},M.prototype.extend=function(S){p(Array.isArray(S),"@param `arr` should be an Array."),S.forEach(this.push,this)},M.prototype.isOpen=function(){return this.Internal.opened},M.prototype.updatePosition=function(S){p(Array.isArray(S),"@param `pixel` should be an Array."),this.isOpen()&&this.Internal.positionContainer(S)},M.prototype.pop=function(){var S=Object.keys(this.Internal.items);this.Html.removeMenuEntry(S[S.length-1])},M.prototype.push=function(S){p(S!=null,"@param `item` must be informed."),this.Html.addMenuEntry(S)},M.prototype.shift=function(){this.Html.removeMenuEntry(Object.keys(this.Internal.items)[0])},M.prototype.setMap=function(S){I.prototype.setMap.call(this,S),S?this.Internal.init(S,this):this.Internal.removeListeners()},M}(i.default)})})(c8);var AAt=c8.exports;const lAt={name:"ol-context-menu",setup(r,e){const{control:t}=Qi(AAt,r,e);return{control:t}},props:{eventType:{type:String,default:"contextmenu"},defaultItems:{type:Boolean,default:!0},width:{type:Number,default:150},items:{type:Array,default:()=>[]}}};function uAt(r,e,t,n,i,a){return ur("",!0)}var Db=le(lAt,[["render",uAt]]),go=function(r){r=r||{};var e=document.createElement("button"),t=document.createElement("div");t.className=(r.className||"ol-swipe")+" ol-unselectable ol-control",t.appendChild(e),t.addEventListener("mousedown",this.move.bind(this)),t.addEventListener("touchstart",this.move.bind(this)),_r.call(this,{element:t}),this.precomposeRight_=this.precomposeRight.bind(this),this.precomposeLeft_=this.precomposeLeft.bind(this),this.postcompose_=this.postcompose.bind(this),this.layers=[],r.layers&&this.addLayer(r.layers,!1),r.rightLayers&&this.addLayer(r.rightLayers,!0),this.on("propertychange",function(n){if(this.getMap())try{this.getMap().renderSync()}catch{}this.get("orientation")==="horizontal"?(this.element.style.top=this.get("position")*100+"%",this.element.style.left=""):(this.get("orientation")!=="vertical"&&this.set("orientation","vertical"),this.element.style.left=this.get("position")*100+"%",this.element.style.top=""),n.key==="orientation"&&(this.element.classList.remove("horizontal","vertical"),this.element.classList.add(this.get("orientation"))),this.isMoving||this.layers.forEach(function(i){i.layer.getImageRatio&&i.layer.changed()})}.bind(this)),this.set("position",r.position||.5),this.set("orientation",r.orientation||"vertical")};Cr(go,_r);go.prototype.setMap=function(r){var e,t;if(this.getMap()){for(e=0;e=0&&this.getMap()&&(this.layers[t].right?r[e].un(["precompose","prerender"],this.precomposeRight_):r[e].un(["precompose","prerender"],this.precomposeLeft_),r[e].un(["postcompose","postrender"],this.postcompose_),this.layers.splice(t,1))}if(this.getMap())try{this.getMap().renderSync()}catch{}};go.prototype.getRectangle=function(){var r;return this.get("orientation")==="vertical"?(r=this.getMap().getSize(),[0,0,r[0]*this.get("position"),r[1]]):(r=this.getMap().getSize(),[0,0,r[0],r[1]*this.get("position")])};go.prototype.move=function(r){var e=this,t;switch(this._movefn||(this._movefn=this.move.bind(this)),r.type){case"touchcancel":case"touchend":case"mouseup":{e.isMoving=!1,["mouseup","mousemove","touchend","touchcancel","touchmove"].forEach(function(s){document.removeEventListener(s,e._movefn)}),this.layers.forEach(function(s){s.layer.getImageRatio&&s.layer.changed()});break}case"mousedown":case"touchstart":e.isMoving=!0,["mouseup","mousemove","touchend","touchcancel","touchmove"].forEach(function(s){document.addEventListener(s,e._movefn)});case"mousemove":case"touchmove":{if(e.isMoving)if(e.get("orientation")==="vertical"){var n=r.pageX||r.touches&&r.touches.length&&r.touches[0].pageX||r.changedTouches&&r.changedTouches.length&&r.changedTouches[0].pageX;if(!n)break;n-=e.getMap().getTargetElement().getBoundingClientRect().left+window.pageXOffset-document.documentElement.clientLeft,t=e.getMap().getSize()[0];var i=t-Math.min(Math.max(0,t-n),t);t=i/t,e.set("position",t),e.dispatchEvent({type:"moving",size:[i,e.getMap().getSize()[1]],position:[t,0]})}else{var a=r.pageY||r.touches&&r.touches.length&&r.touches[0].pageY||r.changedTouches&&r.changedTouches.length&&r.changedTouches[0].pageY;if(!a)break;a-=e.getMap().getTargetElement().getBoundingClientRect().top+window.pageYOffset-document.documentElement.clientTop,t=e.getMap().getSize()[1];var o=t-Math.min(Math.max(0,t-a),t);t=o/t,e.set("position",t),e.dispatchEvent({type:"moving",size:[e.getMap().getSize()[0],o],position:[0,t]})}break}}};go.prototype._transformPt=function(r,e){var t=r.inversePixelTransform,n=e[0],i=e[1];return e[0]=t[0]*n+t[2]*i+t[4],e[1]=t[1]*n+t[3]*i+t[5],e};go.prototype._drawRect=function(r,e){var t=r.inversePixelTransform;if(t){var n=[[e[0][0],e[0][1]],[e[0][0],e[1][1]],[e[1][0],e[1][1]],[e[1][0],e[0][1]],[e[0][0],e[0][1]]];if(r.context.save(),r.target.getImageRatio){var i=-Math.atan2(r.frameState.pixelToCoordinateTransform[1],r.frameState.pixelToCoordinateTransform[0]);r.context.translate(r.frameState.size[0]/2,r.frameState.size[1]/2),r.context.rotate(i),r.context.translate(-r.frameState.size[0]/2,-r.frameState.size[1]/2)}n.forEach(function(o,s){o=[o[0]*t[0]-o[1]*t[1]+t[4],-o[0]*t[2]+o[1]*t[3]+t[5]],s?r.context.lineTo(o[0],o[1]):r.context.moveTo(o[0],o[1])}),r.context.restore()}else{var a=r.frameState.pixelRatio;r.context.rect(e[0][0]*a,e[0][1]*a,e[1][0]*a,e[1][1]*a)}};go.prototype.precomposeLeft=function(r){var e=r.context;if(e instanceof WebGLRenderingContext){if(r.type==="prerender"){e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),e.enable(e.SCISSOR_TEST);var t=this.getMap().getSize(),n=this._transformPt(r,[0,t[1]]),i=this._transformPt(r,[t[0],0]),a=i[0]-n[0],o=i[1]-n[1];this.get("orientation")==="vertical"?a=Math.round(a*this.get("position")):(o=Math.round(o*this.get("position")),n[1]+=t[1]-o),e.scissor(n[0],n[1],a,o)}}else{var s=r.frameState.size;e.save(),e.beginPath();var A=[[0,0],[s[0],s[1]]];this.get("orientation")==="vertical"?A[1]=[s[0]*.5+this.getMap().getSize()[0]*(this.get("position")-.5),s[1]]:A[1]=[s[0],s[1]*.5+this.getMap().getSize()[1]*(this.get("position")-.5)],this._drawRect(r,A),e.clip()}};go.prototype.precomposeRight=function(r){var e=r.context;if(e instanceof WebGLRenderingContext){if(r.type==="prerender"){e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),e.enable(e.SCISSOR_TEST);var t=this.getMap().getSize(),n=this._transformPt(r,[0,t[1]]),i=this._transformPt(r,[t[0],0]),a=i[0]-n[0],o=i[1]-n[1];this.get("orientation")==="vertical"?(a=Math.round(a*(1-this.get("position"))),n[0]+=t[0]-a):o=Math.round(o*(1-this.get("position"))),e.scissor(n[0],n[1],a,o)}}else{var s=r.frameState.size;e.save(),e.beginPath();var A=[[0,0],[s[0],s[1]]];this.get("orientation")==="vertical"?A[0]=[s[0]*.5+this.getMap().getSize()[0]*(this.get("position")-.5),0]:A[0]=[0,s[1]*.5+this.getMap().getSize()[1]*(this.get("position")-.5)],this._drawRect(r,A),e.clip()}};go.prototype.postcompose=function(r){if(r.context instanceof WebGLRenderingContext){if(r.type==="postrender"){var e=r.context;e.disable(e.SCISSOR_TEST)}}else r.target.getClassName&&r.target.getClassName()!=="ol-layer"&&r.target.get("declutter")?setTimeout(function(){r.context.restore()},0):r.context.restore()};const cAt={name:"ol-swipe-control",setup(r,e){const{control:t}=Qi(go,r,e),{layerList:n}=Lu(r);return n.value.forEach((i,a)=>{t.value.addLayer(i,a==1)}),{control:t}},props:{layerList:{type:Array},className:{type:String,default:"ol-swipe"},position:{type:Number,default:.5},orientation:{type:String,default:"vertical"}}};function hAt(r,e,t,n,i,a){return ur("",!0)}var Qb=le(cAt,[["render",hAt]]),Do=function(r){r||(r={});var e=document.createElement("div");if(e.classList.add("ol-unselectable","ol-control","ol-bar"),r.className){var t=r.className.split(" ").filter(function(i){return i.length>0});e.classList.add.apply(e.classList,t)}if(r.group&&e.classList.add("ol-group"),_r.call(this,{element:e,target:r.target}),this.set("toggleOne",r.toggleOne),this.set("autoDeactivate",r.autoDeactivate),this.controls_=[],r.controls instanceof Array)for(var n=0;nT-.5?_.classList.add("ol-100pc"):_.classList.remove("ol-100pc")}},v=function(x){x.target.classList.contains("ol-noscroll")||(l=!1,t=x[s],a=new Date,r.classList.add("ol-move"),x.preventDefault(),window.addEventListener("pointermove",m),ct.addListener(window,["pointerup","pointercancel"],L))},m=function(x){if(l=!0,t!==!1){var T=(c?-1/u:1)*(t-x[s]);r[A]+=T,i=new Date,i-a&&(n=(n+T/(i-a))/2),t=x[s],a=i,T&&o(!0)}},g=function(x){var T=x>0?Math.min(100,x/2):Math.max(-100,x/2);x-=T,r[A]+=T,-1100||c?n=0:a>0&&(n=((n||0)+(t-x[s])/a)/2),g(e.animate===!1?0:n*200),t=!1,n=0,a=0,r.classList.contains("ol-move")?r.classList.remove("ol-hasClick"):(r.classList.add("ol-hasClick"),setTimeout(function(){r.classList.remove("ol-hasClick")},500)),c=!1,window.removeEventListener("pointermove",m),ct.removeListener(window,["pointerup","pointercancel"],L)},O=function(x){var T=Math.max(-1,Math.min(1,x.wheelDelta||-x.detail));return r.classList.add("ol-move"),r[A]-=T*30,r.classList.remove("ol-move"),!1};return e.mousewheel&&ct.addListener(r,["mousewheel","DOMMouseScroll","onmousewheel"],O),{refresh:f}};ct.dispatchEvent=function(r,e){var t;try{t=new CustomEvent(r)}catch{t=document.createEvent("CustomEvent"),t.initCustomEvent(r,!0,!0,{})}e.dispatchEvent(t)};var Cl=function(r){r=r||{};var e=document.createElement("div");e.className=(r.className||"")+" ol-button ol-unselectable ol-control";var t=this,n=this.button_=document.createElement(/ol-text-button/.test(r.className)?"div":"button");n.type="button",r.title&&(n.title=r.title),r.name&&(n.name=r.name),r.html instanceof Element?n.appendChild(r.html):n.innerHTML=r.html||"";var i=function(a){a&&a.preventDefault&&(a.preventDefault(),a.stopPropagation()),r.handleClick&&r.handleClick.call(t,a)};n.addEventListener("click",i),e.appendChild(n),!r.title&&n.firstElementChild&&(n.title=n.firstElementChild.title),_r.call(this,{element:e,target:r.target}),r.title&&this.set("title",r.title),r.title&&this.set("title",r.title),r.name&&this.set("name",r.name)};Cr(Cl,_r);Cl.prototype.setVisible=function(r){r?ct.show(this.element):ct.hide(this.element)};Cl.prototype.setTitle=function(r){this.button_.setAttribute("title",r)};Cl.prototype.setHtml=function(r){ct.setHTML(this.button_,r)};Cl.prototype.getButtonElement=function(){return this.button_};var ns=function(r){r=r||{};var e=this;this.interaction_=r.interaction,this.interaction_&&(this.interaction_.setActive(r.active),this.interaction_.on("change:active",function(){e.setActive(e.interaction_.getActive())})),r.toggleFn&&(r.onToggle=r.toggleFn),r.handleClick=function(){e.toggle(),r.onToggle&&r.onToggle.call(e,e.getActive())},r.className=(r.className||"")+" ol-toggle",Cl.call(this,r),this.set("title",r.title),this.set("autoActivate",r.autoActivate),r.bar&&this.setSubBar(r.bar),this.setActive(r.active),this.setDisable(r.disable)};Cr(ns,Cl);ns.prototype.setMap=function(r){!r&&this.getMap()&&(this.interaction_&&this.getMap().removeInteraction(this.interaction_),this.subbar_&&this.getMap().removeControl(this.subbar_)),Cl.prototype.setMap.call(this,r),r&&(this.interaction_&&r.addInteraction(this.interaction_),this.subbar_&&r.addControl(this.subbar_))};ns.prototype.getSubBar=function(){return this.subbar_};ns.prototype.setSubBar=function(r){var e=this.getMap();e&&this.subbar_&&e.removeControl(this.subbar_),this.subbar_=r,r&&(this.subbar_.setTarget(this.element),this.subbar_.element.classList.add("ol-option-bar"),e&&e.addControl(this.subbar_))};ns.prototype.getDisable=function(){var r=this.element.querySelector("button");return r&&r.disabled};ns.prototype.setDisable=function(r){this.getDisable()!=r&&(this.element.querySelector("button").disabled=r,r&&this.getActive()&&this.setActive(!1),this.dispatchEvent({type:"change:disable",key:"disable",oldValue:!r,disable:r}))};ns.prototype.getActive=function(){return this.element.classList.contains("ol-active")};ns.prototype.toggle=function(){this.getActive()?this.setActive(!1):this.setActive(!0)};ns.prototype.setActive=function(r){this.interaction_&&this.interaction_.setActive(r),this.subbar_&&this.subbar_.setActive(r),this.getActive()!==r&&(r?this.element.classList.add("ol-active"):this.element.classList.remove("ol-active"),this.dispatchEvent({type:"change:active",key:"active",oldValue:!r,active:r}))};ns.prototype.setInteraction=function(r){this.interaction_=r};ns.prototype.getInteraction=function(){return this.interaction_};const dAt={name:"ol-control-toggle",setup(r,e){const{control:t}=Qi(ns,r,e);return{control:t}},props:{html:{type:String},interaction:{type:Object},className:{type:String},title:{type:String},onToggle:{type:Function}}};function vAt(r,e,t,n,i,a){return ur("",!0)}var Gb=le(dAt,[["render",vAt]]);const gAt={name:"ol-control-button",setup(r,e){const{control:t}=Qi(Cl,r,e);return{control:t}},props:{html:{type:String},name:{type:String},className:{type:String},title:{type:String},handleClick:{type:Function}}};function yAt(r,e,t,n,i,a){return ur("",!0)}var kb=le(gAt,[["render",yAt]]),Fa=function(r){r=r||{},r.fullscreen&&(r.target=document.body);var e=ct.create("DIV",{className:((r.className||"")+(r.zoom?" ol-zoom":"")+" ol-ext-dialog").trim(),click:function(i){this.get("hideOnBack")&&i.target===e&&this.close(),this.get("hideOnClick")&&this.close()}.bind(this)}),t=ct.create("FORM",{on:{submit:this._onButton("submit")},parent:e});ct.create("H2",{parent:t}),ct.create("DIV",{className:"ol-closebox",click:this._onButton("cancel"),parent:t}),ct.create("DIV",{className:"ol-content",parent:t}),this._progress=ct.create("DIV",{style:{display:"none"},parent:t});var n=ct.create("DIV",{className:"ol-progress-bar",parent:this._progress});this._progressbar=ct.create("DIV",{parent:n}),this._progressMessage=ct.create("DIV",{className:"ol-progress-message",parent:this._progress}),ct.create("DIV",{className:"ol-buttons",parent:t}),_r.call(this,{element:e,target:r.target}),this.set("closeBox",r.closeBox!==!1),this.set("zoom",!!r.zoom),this.set("hideOnClick",!!r.hideOnClick),this.set("hideOnBack",!!r.hideOnBack),this.set("className",e.className),this.set("closeOnSubmit",r.closeOnSubmit),this.set("buttons",r.buttons),this.setContent(r)};Cr(Fa,_r);Fa.prototype.show=function(r){r&&((r instanceof Element||typeof r=="string")&&(r={content:r}),this.setContent(r)),this.element.classList.add("ol-visible");var e=this.element.querySelector('input[type="text"],input[type="search"],input[type="number"]');if(e&&e.focus(),this.dispatchEvent({type:"show"}),r){if(r.autoclose){var t=setTimeout(function(){this.hide()}.bind(this),r.autoclose);this.once("hide",function(){clearTimeout(t)})}if(r.hideOnBack){var n=this.get("hideOnBack");this.set("hideOnBack",!0),this.once("hide",function(){this.set("hideOnBack",n)}.bind(this))}}};Fa.prototype.open=function(){this.show()};Fa.prototype.setContentMessage=function(r){if(r!==void 0){var e=this.getContentElement();r instanceof Element&&ct.setHTML(e,""),ct.setHTML(e,r||"")}};Fa.prototype.setTitle=function(r){var e=this.element.querySelector("form");e.querySelector("h2").innerText=r||"",r?e.classList.add("ol-title"):e.classList.remove("ol-title")};Fa.prototype.setContent=function(r){if(r){this.element.className=this.get("className"),typeof r=="string"&&(r={content:r}),r=r||{},this.setProgress(!1),r.max&&this.setProgress(0,r.max),r.progress!==void 0&&this.setProgress(r.progress),this.get("zoom")?this.element.classList.add("ol-zoom"):this.element.classList.remove("ol-zoom"),r.className&&r.className.split(" ").forEach(function(a){this.element.classList.add(a)}.bind(this));var e=this.element.querySelector("form");r.content!==void 0&&(r.content instanceof Element&&ct.setHTML(e.querySelector(".ol-content"),""),ct.setHTML(e.querySelector(".ol-content"),r.content||"")),this.setTitle(r.title),r.closeBox||this.get("closeBox")&&r.closeBox!==!1?e.classList.add("ol-closebox"):e.classList.remove("ol-closebox");var t=this.element.querySelector(".ol-buttons");t.innerHTML="";var n=r.buttons||this.get("buttons");if(n){e.classList.add("ol-button");for(var i in n)ct.create("INPUT",{type:i==="submit"?"submit":"button",value:n[i],click:this._onButton(i,r.onButton),parent:t})}else e.classList.remove("ol-button")}};Fa.prototype.getContentElement=function(){return this.element.querySelector("form .ol-content")};Fa.prototype.setProgress=function(r,e,t){if(r===!1){ct.setStyle(this._progress,{display:"none"});return}if(e>0?this.set("max",Number(e)):e=this.get("max"),!e)ct.setStyle(this._progress,{display:"none"});else{var n=Math.round(r/e*100);ct.setStyle(this._progress,{display:""}),this._progressbar.className=n?"":"notransition",ct.setStyle(this._progressbar,{width:n+"%"})}this._progressMessage.innerHTML="",ct.setHTML(this._progressMessage,t||"")};Fa.prototype._onButton=function(r,e){var t=function(n){n.preventDefault(),(r!=="submit"||this.get("closeOnSubmit")!==!1)&&this.hide();var i=this.getInputs();this.dispatchEvent({type:"button",button:r,inputs:i}),typeof e=="function"&&e(r,i)}.bind(this);return t};Fa.prototype.getInputs=function(){var r={};return["input","textarea","select"].forEach(function(e){this.element.querySelectorAll("form "+e).forEach(function(t){t.className&&t.className.split(" ").forEach(function(n){r[n]=t})})}.bind(this)),r};Fa.prototype.hide=function(){this.element.classList.remove("ol-visible"),this.dispatchEvent({type:"hide"})};Fa.prototype.close=Fa.prototype.hide;Fa.prototype.isOpen=function(){return this.element.classList.contains("ol-visible")};var mAt=function(r){if(!r)return null;var e=r.getViewport().getElementsByClassName("ol-fixedoverlay")[0];return e||(r.getViewport().querySelector(".ol-layers")?(e=document.createElement("canvas"),e.className="ol-fixedoverlay",r.getViewport().querySelector(".ol-layers").after(e),r.on("precompose",function(t){e.width=r.getSize()[0]*t.frameState.pixelRatio,e.height=r.getSize()[1]*t.frameState.pixelRatio})):e=r.getViewport().querySelector("canvas")),e},Hi=function(r){r||(r={}),this.setStyle(r.style),_r.call(this,r)};Cr(Hi,_r);Hi.prototype.setMap=function(r){this.getCanvas(r);var e=this.getMap();if(this._listener&&(Po(this._listener),this._listener=null),_r.prototype.setMap.call(this,r),e)try{e.renderSync()}catch{}r&&(this._listener=r.on("postcompose",this._draw.bind(this)))};Hi.prototype.getCanvas=function(r){return mAt(r)};Hi.prototype.getContext=function(r){var e=r.context;if(!e&&this.getMap()){var t=this.getMap().getViewport().getElementsByClassName("ol-fixedoverlay")[0];e=t?t.getContext("2d"):null}return e};Hi.prototype.setStyle=function(r){this._style=r||new sa({})};Hi.prototype.getStyle=function(){return this._style};Hi.prototype.getStroke=function(){var r=this._style.getStroke();return r||this._style.setStroke(new Di({color:"#000",width:1.25})),this._style.getStroke()};Hi.prototype.getFill=function(){var r=this._style.getFill();return r||this._style.setFill(new la({color:"#fff"})),this._style.getFill()};Hi.prototype.getTextStroke=function(){var r=this._style.getText();return r||(r=new xh({})),r.getStroke()||r.setStroke(new Di({color:"#fff",width:3})),r.getStroke()};Hi.prototype.getTextFill=function(){var r=this._style.getText();return r||(r=new xh({})),r.getFill()||r.setFill(new la({color:"#fff"})),r.getFill()};Hi.prototype.getTextFont=function(){var r=this._style.getText();return r||(r=new xh({})),r.getFont()||r.setFont("12px sans-serif"),r.getFont()};Hi.prototype._draw=function(){console.warn("[CanvasBase] draw function not implemented.")};function _At(r,e){var t=r.canvas,n=e||{},i=n.pixelRatio||uh,a=n.size;a&&(t.width=a[0]*i,t.height=a[1]*i,t.style.width=a[0]+"px",t.style.height=a[1]+"px");var o=[0,0,t.width,t.height],s=Pv(si(),i,i);return new pF(r,i,o,s,0)}var Rp=function(r){r=r||{},ui.call(this,r),r.feature&&this.set("feature",r.feature.clone())};Cr(Rp,ui);Rp.prototype.setTitle=function(r){this.set("title",r||""),this.changed()};Rp.prototype.getElement=function(r,e){var t=ct.create("LI",{className:this.get("className"),click:function(n){e(!1),n.stopPropagation()},style:{height:r[1]+"px"},"aria-label":this.get("title")});return ct.create("DIV",{click:function(n){e(!0),n.stopPropagation()},style:{width:r[0]+"px",height:r[1]+"px"},parent:t}),t};window.ol&&!ol.legend&&(ol.legend={});var ua=function(r){r=r||{},ui.call(this),this._items=new Ai;var e=[],t;this._items.on("add",function(n){e.push({item:n.element,on:n.element.on("change",function(){this.refresh()}.bind(this))}),t&&(clearTimeout(t),t=null),t=setTimeout(function(){this.refresh()}.bind(this),0)}.bind(this)),this._items.on("remove",function(n){for(var i=0;i"u"&&(r.margin=10);var n=r.size||[40,25];r.onload=r.onload||function(){setTimeout(function(){ua.getLegendImage(r,e,t)},100)};var i=n[0]+2*r.margin,a=r.lineHeight||n[1]+2*r.margin,o=uh;e||(t=0,e=document.createElement("canvas"),e.width=i*o,e.height=a*o);var s=e.getContext("2d");s.save();var A=_At(s,{pixelRatio:o}),l=r.typeGeom,u,c=r.feature;!c&&l&&(/Point/.test(l)?c=new or(new pr([0,0])):/LineString/.test(l)?c=new or(new Hr([0,0])):c=new or(new xn([[0,0]])),r.properties&&c.setProperties(r.properties)),c?(u=c.getStyle(),typeof u=="function"&&(u=u(c)),u||(u=typeof r.style=="function"?r.style(c):r.style||[]),l=c.getGeometry().getType()):u=[],u instanceof Array||(u=[u]);var h=i/2,f=a/2,p=n[0]/2,v=n[1]/2,m,g;if(l==="Point"){var _=null;for(m=0;g=u[m];m++){var E=g.getImage();if(E){var B=E.getImage();if(B&&B.complete&&!B.naturalWidth&&(typeof r.onload=="function"&&B.addEventListener("load",function(){setTimeout(function(){r.onload()},100)}),E.load()),E.getAnchor){var L=E.getAnchor();if(L){var O=E.getSize(),x=L[0]-O[0],T=L[1]-O[1];_?Uu(_,[x,T,x+O[0],T+O[1]]):_=[x,T,x+O[0],T+O[1]]}}}}_&&(h=h+(_[2]+_[0])/2,f=f+(_[3]+_[1])/2)}for(f+=t*a||0,m=0;g=u[m];m++)switch(A.setStyle(g),l){case pr:case"Point":case"MultiPoint":A.drawGeometry(new pr([h,f]));break;case Hr:case"LineString":case"MultiLineString":s.save(),s.rect(r.margin*o,0,n[0]*o,e.height),s.clip(),A.drawGeometry(new Hr([[h-p,f],[h+p,f]])),s.restore();break;case xn:case"Polygon":case"MultiPolygon":A.drawGeometry(new xn([[[h-p,f-v],[h+p,f-v],[h+p,f+v],[h-p,f+v],[h-p,f-v]]]));break}return s.restore(),e};var Ns=function(r){r=r||{};var e=document.createElement("div");if(r.target)e.className=r.className||"ol-legend";else{e.className=(r.className||"ol-legend")+" ol-unselectable ol-control"+(r.collapsible===!1?" ol-uncollapsible":" ol-collapsed");var t=document.createElement("button");t.setAttribute("type","button"),t.addEventListener("click",function(){this.toggle()}.bind(this)),e.appendChild(t),t=document.createElement("button"),t.setAttribute("type","button"),t.className="ol-closebox",t.addEventListener("click",function(){this.toggle()}.bind(this)),e.appendChild(t)}Hi.call(this,{element:e,target:r.target}),this._legend=r.legend,this._legend.getCanvas().className="ol-legendImg",e.appendChild(this._legend.getCanvas()),e.appendChild(this._legend.getListElement()),r.collapsible!==!1&&r.collapsed===!1&&this.show(),this._legend.on("select",function(n){this.dispatchEvent(n)}.bind(this)),this._legend.on("refresh",function(){if(this._onCanvas&&this.getMap())try{this.getMap().renderSync()}catch{}}.bind(this))};Cr(Ns,Hi);Ns.prototype.getLegend=function(){return this._legend};Ns.prototype.setCanvas=function(r){if(this._onCanvas=r,this.element.style.visibility=r?"hidden":"visible",this.getMap())try{this.getMap().renderSync()}catch{}};Ns.prototype.onCanvas=function(){return!!this._onCanvas};Ns.prototype._draw=function(r){if(this._onCanvas&&!this.element.classList.contains("ol-collapsed")){var e=this._legend.getCanvas(),t=this.getContext(r),n=t.canvas.height-e.height;t.save(),t.rect(0,n,e.width,e.height);var i="#fff";this._legend.getTextStyle().getBackgroundFill()&&(i=el(this._legend.getTextStyle().getBackgroundFill().getColor())),t.fillStyle=t.strokeStyle=i,t.lineWidth=10,t.lineJoin="round",t.stroke(),t.clearRect(0,n,e.width,e.height),t.fill(),t.drawImage(e,0,n),t.restore()}};Ns.prototype.show=function(){if(this.element.classList.contains("ol-collapsed")&&(this.element.classList.remove("ol-collapsed"),this.dispatchEvent({type:"change:collapse",collapsed:!1}),this.getMap()))try{this.getMap().renderSync()}catch{}};Ns.prototype.hide=function(){if(!this.element.classList.contains("ol-collapsed")&&(this.element.classList.add("ol-collapsed"),this.dispatchEvent({type:"change:collapse",collapsed:!0}),this.getMap()))try{this.getMap().renderSync()}catch{}};Ns.prototype.collapse=function(r){r===!1?this.show():this.hide()};Ns.prototype.isCollapsed=function(){return this.element.classList.contains("ol-collapsed")};Ns.prototype.toggle=function(){if(this.element.classList.toggle("ol-collapsed"),this.dispatchEvent({type:"change:collapse",collapsed:this.element.classList.contains("ol-collapsed")}),this.getMap())try{this.getMap().renderSync()}catch{}};var Zu=function(r){r||(r={});var e=ct.create("DIV",{className:r.className||"ol-print"});r.target||(e.classList.add("ol-unselectable","ol-control"),ct.create("BUTTON",{type:"button",title:r.title||"Print",click:function(){this.print()}.bind(this),parent:e})),_r.call(this,{element:e,target:r.target}),this.set("immediate",r.immediate),this.set("imageType",r.imageType||"image/jpeg"),this.set("quality",r.quality||.8),this.set("orientation",r.orientation)};Cr(Zu,_r);Zu.prototype.toClipboard=function(r,e){try{r.canvas.toBlob(function(t){try{navigator.clipboard.write([new window.ClipboardItem(Object.defineProperty({},t.type,{value:t,enumerable:!0}))]),typeof e=="function"&&e(!0)}catch{typeof e=="function"&&e(!1)}})}catch{typeof e=="function"&&e(!1)}};Zu.prototype.copyMap=function(r,e){this.once("print",function(t){this.toClipboard(t,e)}.bind(this)),this.print(r)};Zu.prototype._getCanvas=function(r,e,t){var n;if(r.context)t=r.context.canvas;else{if(t)n=t.getContext("2d");else{t=document.createElement("canvas");var i=this.getMap().getSize();t.width=i[0],t.height=i[1],n=t.getContext("2d"),/jp.*g$/.test(e)&&(n.fillStyle=this.get("bgColor")||"white",n.fillRect(0,0,t.width,t.height))}this.getMap().getViewport().querySelectorAll(".ol-layers canvas, canvas.ol-fixedoverlay").forEach(function(a){if(a.width){if(n.save(),a.parentNode.style.opacity==="0")return;n.globalAlpha=parseFloat(a.parentNode.style.opacity)||1,ct.getStyle(a.parentNode,"mix-blend-mode")==="multiply"&&(n.globalCompositeOperation="multiply");var o=ct.getStyle(a,"transform")||ct.getStyle(a,"-webkit-transform");/^matrix/.test(o)?(o=o.replace(/^matrix\(|\)$/g,"").split(","),o.forEach(function(s,A){o[A]=parseFloat(s)}),n.transform(o[0],o[1],o[2],o[3],o[4],o[5]),n.drawImage(a,0,0)):n.drawImage(a,0,0,ct.getStyle(a,"width"),ct.getStyle(a,"height")),n.restore()}}.bind(this))}return t};Zu.prototype.fastPrint=function(r,e){r=r||{},this._ol6?requestAnimationFrame(function(){e(this._getCanvas({},r.imageType,r.canvas))}.bind(this)):(this.getMap().once("postcompose",function(t){t.context||(this._ol6=!0),e(this._getCanvas(t,r.imageType,r.canvas))}.bind(this)),this.getMap().render())};Zu.prototype.print=function(r){r=r||{};var e=r.imageType||this.get("imageType"),t=r.quality||this.get("quality");if(this.getMap()){if(r.immediate!=="silent"&&this.dispatchEvent(Object.assign({type:"printing"},r)),!r.immediate){setTimeout(function(){r=Object.assign({},r),r.immediate="silent",this.print(r)}.bind(this),200);return}this.getMap().once(this.get("immediate")?"postcompose":"rendercomplete",function(n){var i=this._getCanvas(n,e),a=r.size||[210,297],o=r.format||"a4",s,A,l,u=r.orient||this.get("orientation"),c=typeof r.margin=="number"?r.margin:10;if(i){u!=="landscape"&&u!=="portrait"&&(u=i.width>i.height?"landscape":"portrait"),u==="landscape"&&(a=[a[1],a[0]]);var h=Math.min((a[0]-2*c)/i.width,(a[1]-2*c)/i.height);s=h*i.width,A=h*i.height,l=[(a[0]-s)/2,(a[1]-A)/2]}var f;try{f=i?i.toDataURL(e,t):null}catch{this.dispatchEvent({type:"error",canvas:i});return}var p=Object.assign({type:"print",print:{format:o,orientation:u,unit:"mm",size:a,position:l,imageWidth:s,imageHeight:A},image:f,imageType:e,quality:t,canvas:i},r);this.dispatchEvent(p)}.bind(this)),this.getMap().render()}};var Ju=function(r){r||(r={});var e=ct.create("DIV",{className:(r.className||"")+" ol-control-title ol-unselectable",style:{display:"block",visibility:"hidden"}});Hi.call(this,{element:e,style:r.style}),this.setTitle(r.title||""),this.setVisible(r.visible),this.element.style.font=this.getTextFont()};Cr(Ju,Hi);Ju.prototype.setStyle=function(r){Hi.prototype.setStyle.call(this,r),this.element&&(this.element.style.font=this.getTextFont()),this.getMap()&&this.getMap().render()};Ju.prototype.setTitle=function(r){if(this.element.textContent=r,this.set("title",r),this.getMap())try{this.getMap().renderSync()}catch{}};Ju.prototype.getTitle=function(){return this.get("title")};Ju.prototype.setVisible=function(r){if(this.element.style.display=r?"block":"none",this.getMap())try{this.getMap().renderSync()}catch{}};Ju.prototype.getVisible=function(){return this.element.style.display!=="none"};Ju.prototype._draw=function(r){if(this.getVisible()){var e=this.getContext(r);if(e){var t=r.frameState.pixelRatio;e.save(),e.scale(t,t);var n=this.element.getBoundingClientRect(),i=this.getMap().getViewport().getBoundingClientRect(),a=this.getMap().getSize()[0]/i.width;e.translate(Math.round((n.left-i.left)*a),Math.round((n.top-i.top)*a));var o=this.element.clientHeight,s=this.element.clientWidth,A=s/2;e.beginPath(),e.fillStyle=el(this.getFill().getColor()),e.rect(0,0,s,o),e.fill(),e.closePath(),e.beginPath(),e.fillStyle=el(this.getTextFill().getColor()),e.strokeStyle=el(this.getTextStroke().getColor()),e.lineWidth=this.getTextStroke().getWidth(),e.textAlign="center",e.textBaseline="middle",e.font=this.getTextFont(),e.lineWidth&&e.strokeText(this.getTitle(),A,o/2),e.fillText(this.getTitle(),A,o/2),e.closePath(),e.restore()}}};var $b=function(r,e){var t=r.getView(),n=t.getProjection(),i=t.getCenter(),a=r.getPixelFromCoordinate(i);a[1]+=1;var o=r.getCoordinateFromPixel(a),s=B_(Qu(i,n,"EPSG:4326"),Qu(o,n,"EPSG:4326"));return s*=(e||96)/.0254,s},wAt=function(r,e,t){if(r&&e){var n=e;if(typeof e=="string"&&(n=e.split("/")[1],n||(n=e),n=n.replace(/[^\d]/g,""),n=parseInt(n)),!n)return;var i=r.getView(),a=i.getProjection(),o=i.getCenter(),s=r.getPixelFromCoordinate(o);s[1]+=1;var A=r.getCoordinateFromPixel(s),l=B_(Qu(o,a,"EPSG:4326"),Qu(A,a,"EPSG:4326"));return l*=(t||96)/.0254,i.setResolution(i.getResolution()*n/l),n}},cl=function(r){r||(r={});var e=document.createElement("div");e.className="ol-control ol-compassctrl ol-unselectable ol-hidden"+(r.className?" "+r.className:""),e.style.position="absolute",e.style.visibility="hidden";var t=r.style instanceof Di?new sa({stroke:r.style}):r.style;r.style||(t=new sa({stroke:new Di({width:0})})),Hi.call(this,{element:e,style:t}),this.set("rotateVithView",r.rotateWithView!==!1),this.setVisible(r.visible!==!1),this.setImage(r.image||r.src)};Cr(cl,Hi);cl.prototype.setImage=function(r){if(r instanceof Image)this.img_=r,this.img_.onload=function(){if(this.getMap())try{this.getMap().renderSync()}catch{}}.bind(this);else if(typeof r=="string")switch(r){case"compact":{this.img_=this.compactCompass_(this.element.clientWidth,this.getStroke().getColor());break}case"default":{this.img_=this.defaultCompass_(this.element.clientWidth,this.getStroke().getColor());break}default:{this.img_=new Image,this.img_.onload=function(){if(this.getMap())try{this.getMap().renderSync()}catch{}}.bind(this),this.img_.src=r;break}}else this.img_=this.defaultCompass_(this.element.clientWidth,this.getStroke().getColor())};cl.prototype.compactCompass_=function(r,e){var t=document.createElement("canvas"),n=t.getContext("2d");r=t.width=t.height=r||150;var i=r/2;return n.translate(i,i),n.fillStyle=e||"#963",n.lineWidth=5,n.lineJoin=n.lineCap="round",n.font="bold "+i*.4+"px sans-serif",n.textBaseline="bottom",n.textAlign="center",n.strokeStyle="#fff",n.globalAlpha=.75,n.strokeText("N",0,-i/2),n.globalAlpha=1,n.fillText("N",0,-i/2),n.beginPath(),n.moveTo(0,i/4),n.lineTo(i/3,i/2),n.lineTo(0,-i/2),n.lineTo(-i/3,i/2),n.lineTo(0,i/4),n.lineWidth=12,n.fillStyle="#fff",n.globalAlpha=.75,n.fill(),n.stroke(),n.globalAlpha=1,n.fillStyle=n.strokeStyle=e||"#963",n.lineWidth=5,n.beginPath(),n.moveTo(0,i/4),n.lineTo(0,-i/2),n.lineTo(i/3,i/2),n.lineTo(0,i/4),n.fill(),n.stroke(),n.beginPath(),n.moveTo(0,i/4),n.lineTo(0,-i/2),n.lineTo(-i/3,i/2),n.lineTo(0,i/4),n.stroke(),t};cl.prototype.defaultCompass_=function(r,e){var t=document.createElement("canvas"),n=t.getContext("2d");r=t.width=t.height=r||150;var i=r/2,a=.22*i;function o(A,l){n.fillStyle=e||"#963",n.beginPath(),n.moveTo(0,0),n.lineTo(A,0),n.lineTo(l,l),n.moveTo(0,0),n.lineTo(-A,0),n.lineTo(-l,-l),n.moveTo(0,0),n.lineTo(0,A),n.lineTo(-l,l),n.moveTo(0,0),n.lineTo(0,-A),n.lineTo(l,-l),n.moveTo(0,0),n.fill(),n.stroke()}function s(A,l){n.globalCompositeOperation="destination-out",n.fillStyle="#fff",n.beginPath(),n.moveTo(0,0),n.lineTo(A,0),n.lineTo(l,-l),n.moveTo(0,0),n.lineTo(-A,0),n.lineTo(-l,l),n.moveTo(0,0),n.lineTo(0,A),n.lineTo(l,l),n.moveTo(0,0),n.lineTo(0,-A),n.lineTo(-l,-l),n.moveTo(0,0),n.fill(),n.globalCompositeOperation="source-over",n.beginPath(),n.moveTo(0,0),n.lineTo(A,0),n.lineTo(l,-l),n.moveTo(0,0),n.lineTo(-A,0),n.lineTo(-l,l),n.moveTo(0,0),n.lineTo(0,A),n.lineTo(l,l),n.moveTo(0,0),n.lineTo(0,-A),n.lineTo(-l,-l),n.moveTo(0,0),n.stroke()}return n.translate(i,i),n.strokeStyle=e||"#963",n.lineWidth=1.5,n.beginPath(),n.arc(0,0,r*.41,0,2*Math.PI),n.arc(0,0,r*.44,0,2*Math.PI),n.stroke(),n.rotate(Math.PI/4),o(i*.9,a*.8),s(i*.9,a*.8),n.rotate(-Math.PI/4),o(i,a),s(i,a),t};cl.prototype.getVisible=function(){return ct.getStyle(this.element,"display")==="block"};cl.prototype.setVisible=function(r){r?this.element.classList.add("ol-visible"):this.element.classList.remove("ol-visible"),this.getMap()&&this.getMap().render()};cl.prototype._draw=function(r){var e=this.getContext(r);if(!(!e||!this.getVisible())){var t=e.canvas,n,i=[];for(n=0;n<8;n++)i[n]=[Math.cos(Math.PI*n/8),Math.sin(Math.PI*n/8)];var a=r.frameState.pixelRatio;e.save(),e.scale(a,a);var o=this.element.clientWidth,s=this.element.clientHeight,A={left:this.element.offsetLeft,top:this.element.offsetTop},l=this.img_,u=r.frameState.viewState.rotation;if(e.beginPath(),e.translate(A.left+o/2,A.top+s/2),this.get("rotateVithView")&&e.rotate(u),this.getStroke().getWidth()){e.beginPath(),e.strokeStyle=this.getStroke().getColor(),e.lineWidth=this.getStroke().getWidth();var c=Math.max(t.width,t.height);for(n=0;n<8;n++)e.moveTo(-i[n][0]*c,-i[n][1]*c),e.lineTo(i[n][0]*c,i[n][1]*c);e.stroke()}l.width&&e.drawImage(l,-o/2,-s/2,o,s),e.closePath(),e.restore()}};var In=function(r){r||(r={}),this._lang=r.lang||"en";var e=ct.create("DIV",{className:(r.className||"ol-print")+" ol-unselectable ol-control"});ct.create("BUTTON",{type:"button",title:r.title||"Print",click:function(){this.print()}.bind(this),parent:e}),_r.call(this,{element:e}),r.openWindow&&this.on("print",function(b){b.canvas&&window.open().document.write('')}),r.target=ct.create("DIV");var t=this._printCtrl=new Zu(r);t.on(["print","error","printing"],function(b){i.setAttribute("data-status",b.type),b.clipboard||this.dispatchEvent(b)}.bind(this)),this._compass=new cl({src:r.northImage||"compact",visible:!1,className:"olext-print-compass",style:new Di({color:"#333",width:0})});var n=this._printDialog=new Fa({target:document.body,closeBox:!0,className:"ol-ext-print-dialog"}),i=n.getContentElement();this._input={};var a=ct.create("DIV",{className:"ol-print-param",parent:i});this._pages=[ct.create("DIV",{className:"ol-page"})];var o=ct.create("DIV",{className:"ol-map",parent:this._pages[0]});ct.create("DIV",{html:this._pages[0],className:"ol-print-map",parent:i}),ct.create("H2",{html:this.i18n("title"),parent:a});var s=ct.create("UL",{parent:a}),A=ct.create("LI",{className:"ol-orientation",parent:s});this._input.orientation={list:A};var l=ct.create("LABEL",{className:"portrait",parent:A});this._input.orientation.portrait=ct.create("INPUT",{type:"radio",name:"ol-print-orientation",value:"portrait",checked:!0,on:{change:function(b){this.setOrientation(b.target.value)}.bind(this)},parent:l}),ct.create("SPAN",{html:this.i18n("portrait"),parent:l}),l=ct.create("LABEL",{className:"landscape",parent:A}),this._input.orientation.landscape=ct.create("INPUT",{type:"radio",name:"ol-print-orientation",value:"landscape",on:{change:function(b){this.setOrientation(b.target.value)}.bind(this)},parent:l}),ct.create("SPAN",{html:this.i18n("landscape"),parent:l});var u;A=ct.create("LI",{html:ct.create("LABEL",{html:this.i18n("size")}),className:"ol-size",parent:s});var c=this._input.size=ct.create("SELECT",{on:{change:function(){this.setSize(c.value||I)}.bind(this)},parent:A});for(u in this.paperSize)ct.create("OPTION",{html:u+(this.paperSize[u]?" - "+this.paperSize[u][0]+"x"+this.paperSize[u][1]+" mm":this.i18n("custom")),value:u,parent:c});A=ct.create("LI",{html:ct.create("LABEL",{html:this.i18n("margin")}),className:"ol-margin",parent:s});var h=this._input.margin=ct.create("SELECT",{on:{change:function(){this.setMargin(h.value)}.bind(this)},parent:A});for(u in this.marginSize)ct.create("OPTION",{html:this.i18n(u)+" - "+this.marginSize[u]+" mm",value:this.marginSize[u],parent:h});A=ct.create("LI",{html:ct.create("LABEL",{html:this.i18n("scale")}),className:"ol-scale",parent:s});var f=this._input.scale=ct.create("SELECT",{on:{change:function(){this.setScale(parseInt(f.value))}.bind(this)},parent:A});Object.keys(this.scales).forEach(function(b){ct.create("OPTION",{html:this.scales[b],value:b,parent:f})}.bind(this)),A=ct.create("LI",{className:"ol-legend",parent:s});var p=ct.createSwitch({html:this.i18n("legend"),checked:!1,on:{change:function(){S.legend.control.setCanvas(p.checked)}.bind(this)},parent:A});A=ct.create("LI",{className:"ol-print-north",parent:s});var v=this._input.north=ct.createSwitch({html:this.i18n("north"),checked:"checked",on:{change:function(){v.checked?this._compass.element.classList.add("ol-print-compass"):this._compass.element.classList.remove("ol-print-compass"),this.getMap().render()}.bind(this)},parent:A});A=ct.create("LI",{className:"ol-print-title",parent:s});var m=ct.createSwitch({html:this.i18n("mapTitle"),checked:!1,on:{change:function(b){S.title.control.setVisible(b.target.checked)}.bind(this)},parent:A}),g=ct.create("INPUT",{type:"text",placeholder:this.i18n("mapTitle"),on:{keydown:function(b){b.keyCode===13&&b.preventDefault()},keyup:function(){S.title.control.setTitle(g.value)},change:function(){S.title.control.setTitle(g.value)}.bind(this)},parent:A}),_=ct.create("DIV",{className:"ol-user-param",parent:a});A=ct.create("LI",{className:"ol-saveas",parent:s});var E=ct.create("DIV",{html:this.i18n("copied"),className:"ol-clipboard-copy",parent:A}),B=ct.create("SELECT",{on:{change:function(){if(this.formats[B.value].clipboard)t.copyMap(this.formats[B.value],function(P){P&&(E.classList.add("visible"),setTimeout(function(){E.classList.remove("visible")},1e3))});else{var b=typeof this.getSize()=="string"?this.getSize():null,N=Object.assign({format:b,size:b?this.paperSize[b]:null,orient:this.getOrientation(),margin:this.getMargin()},this.formats[B.value]);t.print(N)}B.value=""}.bind(this)},parent:A});ct.create("OPTION",{html:this.i18n("saveas"),style:{display:"none"},value:"",parent:B}),this.formats.forEach(function(b,N){if(b.pdf){if(r.pdf===!1)return}else if(b.clipboard){if(r.copy===!1)return}else if(r.save===!1)return;ct.create("OPTION",{html:this.i18n(b.title),value:N,parent:B})}.bind(this)),A=ct.create("LI",{className:"ol-savelegend",parent:s});var L=ct.create("DIV",{html:this.i18n("copied"),className:"ol-clipboard-copy",parent:A}),O=ct.create("SELECT",{on:{change:function(){var b=S.legend.control.getLegend().getCanvas(),N=document.createElement("CANVAS");N.width=b.width,N.height=b.height;var P=N.getContext("2d");if(P.fillStyle="#fff",P.fillRect(0,0,N.width,N.height),P.drawImage(b,0,0),this.formats[O.value].clipboard)N.toBlob(function(_t){try{navigator.clipboard.write([new window.ClipboardItem(Object.defineProperty({},_t.type,{value:_t,enumerable:!0}))]),L.classList.add("visible"),setTimeout(function(){L.classList.remove("visible")},1e3)}catch{}},"image/png");else{var X;try{X=N.toDataURL(this.formats[O.value].imageType,this.formats[O.value].quality);var z=typeof this.getSize()=="string"?this.getSize():"A4",tt=N.width/96*25.4,J=N.height/96*25.4,nt=this.paperSize[z];this.getOrientation()==="landscape"&&(nt=[nt[1],nt[0]]);var it=[(nt[0]-tt)/2,(nt[1]-J)/2];this.dispatchEvent({type:"print",print:{legend:!0,format:z,orientation:this.getOrientation(),unit:"mm",size:this.paperSize[z],position:it,imageWidth:tt,imageHeight:J},image:X,imageType:this.formats[O.value].imageType,pdf:this.formats[O.value].pdf,quality:this.formats[O.value].quality,canvas:N})}catch{}}O.value=""}.bind(this)},parent:A});ct.create("OPTION",{html:this.i18n("saveLegend"),style:{display:"none"},value:"",parent:O}),this.formats.forEach(function(b,N){ct.create("OPTION",{html:this.i18n(b.title),value:N,parent:O})}.bind(this));var x=ct.create("DIV",{className:"ol-ext-buttons",parent:a});ct.create("BUTTON",{html:this.i18n("printBt"),type:"submit",click:function(b){b.preventDefault(),window.print()},parent:x}),ct.create("BUTTON",{html:this.i18n("cancel"),type:"button",click:function(){n.hide()},parent:x}),ct.create("DIV",{html:this.i18n("errorMsg"),className:"ol-error",parent:a});var T,I,M,S={};n.on("show",function(){this.dispatchEvent({type:"show",userElement:_,dialog:this._printDialog,page:this.getPage()});var b=this.getMap();b&&(document.body.classList.add("ol-print-document"),T=b.getTargetElement(),I=b.getSize(),typeof this.getSize()=="string"?this.setSize(this.getSize()):this.setSize(I),b.setTarget(o),M&&Po(M),M=b.on("moveend",function(){this.setScale($b(b))}.bind(this)),this.setScale($b(b)),S={},this.getMap().getControls().forEach(function(N){N instanceof Ns&&(S.legend={control:N}),N instanceof Ju&&(S.title={control:N}),N instanceof cl&&(S.compass?N.element.classList.remove("ol-print-compass"):(this._input.north.checked?N.element.classList.add("ol-print-compass"):N.element.classList.remove("ol-print-compass"),this._compass=N,S.compass={control:N}))}.bind(this)),S.title?(m.checked=S.title.isVisible=S.title.control.getVisible(),g.value=S.title.control.getTitle(),m.parentNode.parentNode.classList.remove("hidden")):m.parentNode.parentNode.classList.add("hidden"),S.legend?(S.legend.ison=S.legend.control.onCanvas(),S.legend.collapsed=S.legend.control.isCollapsed(),S.legend.control.collapse(!1),O.parentNode.classList.remove("hidden"),p.parentNode.parentNode.classList.remove("hidden"),p.checked=!S.legend.collapsed,S.legend.control.setCanvas(!S.legend.collapsed)):(O.parentNode.classList.add("hidden"),p.parentNode.parentNode.classList.add("hidden")))}.bind(this)),n.on("hide",function(){document.body.classList.remove("ol-print-document"),T&&(this.getMap().setTarget(T),T=null,M&&Po(M),S.title&&S.title.control.setVisible(S.title.isVisible),S.legend&&(S.legend.control.setCanvas(S.legend.ison),S.legend.control.collapse(S.legend.collapsed)),this.dispatchEvent({type:"hide"}))}.bind(this)),window.addEventListener("resize",function(){this.setSize()}.bind(this)),r.saveAs&&this.on("print",function(b){b.pdf||b.canvas.toBlob(function(N){var P=(b.print.legend?"legend.":"map.")+b.imageType.replace("image/","");r.saveAs(N,P)},b.imageType,b.quality)}),r.jsPDF&&this.on("print",function(b){if(b.pdf){var N=new r.jsPDF({orientation:b.print.orientation,unit:b.print.unit,format:b.print.size});N.addImage(b.image,"JPEG",b.print.position[0],b.print.position[0],b.print.imageWidth,b.print.imageHeight),N.save(b.print.legend?"legend.pdf":"map.pdf")}})};Cr(In,_r);In.prototype.isOpen=function(){return this._printDialog.isOpen()};In.addLang=function(r,e){In.prototype._labels[r]=e};In.prototype.i18n=function(r){var e=this._labels.en[r]||"bad param";return this._labels[this._lang]&&this._labels[this._lang][r]&&(e=this._labels[this._lang][r]),e};In.prototype._labels={en:{title:"Print",orientation:"Orientation",portrait:"Portrait",landscape:"Landscape",size:"Page size",custom:"screen size",margin:"Margin",scale:"Scale",legend:"Legend",north:"North arrow",mapTitle:"Map title",saveas:"Save as...",saveLegend:"Save legend...",copied:"✔ Copied to clipboard",errorMsg:"Can't save map canvas...",printBt:"Print...",clipboardFormat:"copy to clipboard...",jpegFormat:"save as jpeg",pngFormat:"save as png",pdfFormat:"save as pdf",none:"none",small:"small",large:"large",cancel:"cancel"},fr:{title:"Imprimer",orientation:"Orientation",portrait:"Portrait",landscape:"Paysage",size:"Taille du papier",custom:"taille écran",margin:"Marges",scale:"Echelle",legend:"Légende",north:"Flèche du nord",mapTitle:"Titre de la carte",saveas:"Enregistrer sous...",saveLegend:"Enregistrer la légende...",copied:"✔ Carte copiée",errorMsg:"Impossible d'enregistrer la carte",printBt:"Imprimer",clipboardFormat:"copier dans le presse-papier...",jpegFormat:"enregistrer un jpeg",pngFormat:"enregistrer un png",pdfFormat:"enregistrer un pdf",none:"aucune",small:"petites",large:"larges",cancel:"annuler"},de:{title:"Drucken",orientation:"Ausrichtung",portrait:"Hochformat",landscape:"Querformat",size:"Papierformat",custom:"Bildschirmgröße",margin:"Rand",scale:"Maßstab",legend:"Legende",north:"Nordpfeil",mapTitle:"Kartentitel",saveas:"Speichern als...",saveLegend:"Legende speichern...",copied:"✔ In die Zwischenablage kopiert",errorMsg:"Kann Karte nicht speichern...",printBt:"Drucken...",clipboardFormat:"in die Zwischenablage kopieren...",jpegFormat:"speichern als jpeg",pngFormat:"speichern als png",pdfFormat:"speichern als pdf",none:"kein",small:"klein",large:"groß",cancel:"abbrechen"},zh:{title:"打印",orientation:"方向",portrait:"纵向",landscape:"横向",size:"页面大小",custom:"屏幕大小",margin:"外边距",scale:"尺度",legend:"图例",north:"指北针",mapTitle:"地图名字",saveas:"保存为...",saveLegend:"保存图例为...",copied:"✔ 已复制到剪贴板",errorMsg:"无法保存地图...",printBt:"打印...",cancel:"取消"}};In.prototype.paperSize={"":null,A0:[841,1189],A1:[594,841],A2:[420,594],A3:[297,420],A4:[210,297],"US Letter":[215.9,279.4],A5:[148,210],B4:[257,364],B5:[182,257]};In.prototype.marginSize={none:0,small:5,large:10};In.prototype.formats=[{title:"clipboardFormat",imageType:"image/png",clipboard:!0},{title:"jpegFormat",imageType:"image/jpeg",quality:.8},{title:"pngFormat",imageType:"image/png",quality:.8},{title:"pdfFormat",imageType:"image/jpeg",pdf:!0}];In.prototype.scales={" 5000":"1/5.000"," 10000":"1/10.000"," 25000":"1/25.000"," 50000":"1/50.000"," 100000":"1/100.000"," 250000":"1/250.000"," 1000000":"1/1.000.000"};In.prototype.getOrientation=function(){return this._orientation||"portrait"};In.prototype.setOrientation=function(r){this._orientation=r==="landscape"?"landscape":"portrait",this._input.orientation[this._orientation].checked=!0,this.setSize()};In.prototype.getMargin=function(){return this._margin||0};In.prototype.setMargin=function(r){this._margin=r,this._input.margin.value=r,this.setSize()};In.prototype.getSize=function(){return this._size};In.prototype.setSize=function(r){if(this._printDialog.getContentElement().setAttribute("data-status",""),r?this._size=r:r=this._size,!!r){if(typeof r=="string"){for(var e in this.paperSize)e&&new RegExp(e,"i").test(r)&&(r=e);this.paperSize[r]||(r=this._size="A4"),this._input.size.value=r,r=[Math.trunc(this.paperSize[r][0]*96/25.4),Math.trunc(this.paperSize[r][1]*96/25.4)],this.getOrientation()==="landscape"&&(r=[r[1],r[0]]),this.getPage().classList.remove("margin")}else this._input.size.value="",this.getPage().classList.add("margin");var t=this.getPage(),n=t.parentNode.getBoundingClientRect(),i=(n.width-40)/r[0],a=(n.height-40)/r[1],o=Math.min(i,a,1);t.style.width=r[0]+"px",t.style.height=r[1]+"px",t.style["-webkit-transform"]=t.style.transform="translate(-50%,-50%) scale("+o+")";var s=Math.round(5/o);t.style["-webkit-box-shadow"]=t.style["box-shadow"]=s+"px "+s+"px "+s+"px rgba(0,0,0,.6)",t.style.padding=this.getMargin()*96/25.4+"px",this.getMap()&&this.getMap().updateSize(),this.dispatchEvent({type:"dialog:refresh"})}};In.prototype.getContentElement=function(){return this._printDialog.getContentElement()};In.prototype.getUserElement=function(){return this._printDialog.getContentElement().querySelector(".ol-user-param")};In.prototype.getPage=function(){return this._pages[0]};In.prototype.setMap=function(r){this.getMap()&&(this.getMap().removeControl(this._compass),this.getMap().removeControl(this._printCtrl),this.getMap().removeControl(this._printDialog)),_r.prototype.setMap.call(this,r),this.getMap()&&(this.getMap().addControl(this._compass),this.getMap().addControl(this._printCtrl),this.getMap().addControl(this._printDialog))};In.prototype.setScale=function(r){wAt(this.getMap(),r),this._input.scale.value=" "+Math.round(r/100)*100};In.prototype.getScale=function(){return $b(this.getMap())};In.prototype.print=function(r){r=r||{},r.size&&this.setSize(r.size),r.scale&&this.setScale(r.scale),r.orientation&&this.setOrientation(r.orientation),r.margin&&this.setMargin(r.margin),this._printDialog.show()};In.prototype.getrintControl=function(){return this._printCtrl};var OF={exports:{}};(function(r,e){(function(t,n){n()})(Js,function(){function t(l,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function n(l,u,c){var h=new XMLHttpRequest;h.open("GET",l),h.responseType="blob",h.onload=function(){A(h.response,u,c)},h.onerror=function(){console.error("could not download file")},h.send()}function i(l){var u=new XMLHttpRequest;u.open("HEAD",l,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function a(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(u)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Js=="object"&&Js.global===Js?Js:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),A=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,u,c){var h=o.URL||o.webkitURL,f=document.createElement("a");u=u||l.name||"download",f.download=u,f.rel="noopener",typeof l=="string"?(f.href=l,f.origin===location.origin?a(f):i(f.href)?n(l,u,c):a(f,f.target="_blank")):(f.href=h.createObjectURL(l),setTimeout(function(){h.revokeObjectURL(f.href)},4e4),setTimeout(function(){a(f)},0))}:"msSaveOrOpenBlob"in navigator?function(l,u,c){if(u=u||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(t(l,c),u);else if(i(l))n(l,u,c);else{var h=document.createElement("a");h.href=l,h.target="_blank",setTimeout(function(){a(h)})}}:function(l,u,c,h){if(h=h||open("","_blank"),h&&(h.document.title=h.document.body.innerText="downloading..."),typeof l=="string")return n(l,u,c);var f=l.type==="application/octet-stream",p=/constructor/i.test(o.HTMLElement)||o.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||f&&p||s)&&typeof FileReader<"u"){var m=new FileReader;m.onloadend=function(){var E=m.result;E=v?E:E.replace(/^data:[^;]*;/,"data:attachment/file;"),h?h.location.href=E:location=E,h=null},m.readAsDataURL(l)}else{var g=o.URL||o.webkitURL,_=g.createObjectURL(l);h?h.location=_:location.href=_,h=null,setTimeout(function(){g.revokeObjectURL(_)},4e4)}});o.saveAs=A.saveAs=A,r.exports=A})})(OF);function en(r){return en=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},en(r)}var ka=Uint8Array,$a=Uint16Array,Tg=Uint32Array,_w=new ka([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ww=new ka([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Vb=new ka([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),p8=function(r,e){for(var t=new $a(31),n=0;n<31;++n)t[n]=e+=1<>>1|(bn&21845)<<1;Zl=(Zl&52428)>>>2|(Zl&13107)<<2,Zl=(Zl&61680)>>>4|(Zl&3855)<<4,Kb[bn]=((Zl&65280)>>>8|(Zl&255)<<8)>>>1}var sA=function(r,e,t){for(var n=r.length,i=0,a=new $a(e);i>>A]=l}else for(s=new $a(n),i=0;i>>15-r[i];return s},$u=new ka(288);for(var bn=0;bn<144;++bn)$u[bn]=8;for(var bn=144;bn<256;++bn)$u[bn]=9;for(var bn=256;bn<280;++bn)$u[bn]=7;for(var bn=280;bn<288;++bn)$u[bn]=8;var bg=new ka(32);for(var bn=0;bn<32;++bn)bg[bn]=5;var CAt=sA($u,9,0),BAt=sA($u,9,1),TAt=sA(bg,5,0),bAt=sA(bg,5,1),DC=function(r){for(var e=r[0],t=1;te&&(e=r[t]);return e},vs=function(r,e,t){var n=e/8>>0;return(r[n]|r[n+1]<<8)>>>(e&7)&t},QC=function(r,e){var t=e/8>>0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>>(e&7)},RF=function(r){return(r/8>>0)+(r&7&&1)},y8=function(r,e,t){(e==null||e<0)&&(e=0),(t==null||t>r.length)&&(t=r.length);var n=new(r instanceof $a?$a:r instanceof Tg?Tg:ka)(t-e);return n.set(r.subarray(e,t)),n},SAt=function(r,e,t){var n=r.length,i=!e||t,a=!t||t.i;t||(t={}),e||(e=new ka(n*3));var o=function(at){var vt=e.length;if(at>vt){var wt=new ka(Math.max(vt*2,at));wt.set(e),e=wt}},s=t.f||0,A=t.p||0,l=t.b||0,u=t.l,c=t.d,h=t.m,f=t.n,p=n*8;do{if(!u){t.f=s=vs(r,A,1);var v=vs(r,A+1,3);if(A+=3,v)if(v==1)u=BAt,c=bAt,h=9,f=5;else if(v==2){var E=vs(r,A,31)+257,B=vs(r,A+10,15)+4,L=E+vs(r,A+5,31)+1;A+=14;for(var O=new ka(L),x=new ka(19),T=0;Tp)break;for(var S=sA(x,I,1),T=0;T>>4;if(m<16)O[T++]=m;else{var N=0,P=0;for(m==16?(P=3+vs(r,A,3),A+=2,N=O[T-1]):m==17?(P=3+vs(r,A,7),A+=3):m==18&&(P=11+vs(r,A,127),A+=7);P--;)O[T++]=N}}var X=O.subarray(0,E),z=O.subarray(E);h=DC(X),f=DC(z),u=sA(X,h,1),c=sA(z,f,1)}else throw"invalid block type";else{var m=RF(A)+4,g=r[m-4]|r[m-3]<<8,_=m+g;if(_>n){if(a)throw"unexpected EOF";break}i&&o(l+g),e.set(r.subarray(m,_),l),t.b=l+=g,t.p=A=_*8;continue}if(A>p)throw"unexpected EOF"}i&&o(l+131072);for(var tt=(1<>>4;if(A+=N&15,A>p)throw"unexpected EOF";if(!N)throw"invalid length/literal";if(it<256)e[l++]=it;else if(it==256){u=null;break}else{var _t=it-254;if(it>264){var T=it-257,R=_w[T];_t=vs(r,A,(1<>>4;if(!$)throw"invalid distance";A+=$&15;var z=EAt[K];if(K>3){var R=ww[K];z+=QC(r,A)&(1<p)throw"unexpected EOF";i&&o(l+131072);for(var q=l+_t;l>0;r[n]|=t,r[n+1]|=t>>>8},Kd=function(r,e,t){t<<=e&7;var n=e/8>>0;r[n]|=t,r[n+1]|=t>>>8,r[n+2]|=t>>>16},HC=function(r,e){for(var t=[],n=0;nh&&(h=a[n].s);var f=new $a(h+1),p=zb(t[u-1],f,0);if(p>e){var n=0,v=0,m=p-e,g=1<e)v+=g-(1<>>=m;v>0;){var E=a[n].s;f[E]=0&&v;--n){var B=a[n].s;f[B]==e&&(--f[B],++v)}p=e}return[new ka(f),p]},zb=function(r,e,t){return r.s==-1?Math.max(zb(r.l,e,t+1),zb(r.r,e,t+1)):e[r.s]=t},fN=function(r){for(var e=r.length;e&&!r[--e];);for(var t=new $a(++e),n=0,i=r[0],a=1,o=function(A){t[n++]=A},s=1;s<=e;++s)if(r[s]==i&&s!=e)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=r[s]}return[t.subarray(0,n),e]},zd=function(r,e){for(var t=0,n=0;n>>8,r[i+2]=r[i]^255,r[i+3]=r[i+1]^255;for(var a=0;a4&&!M[Vb[b-1]];--b);var N=l+5<<3,P=zd(i,$u)+zd(a,bg)+o,X=zd(i,h)+zd(a,v)+o+14+3*b+zd(x,M)+(2*x[16]+3*x[17]+7*x[18]);if(N<=P&&N<=X)return k0(e,u,r.subarray(A,A+l));var z,tt,J,nt;if(UA(e,u,1+(X15&&(UA(e,u,$[T]>>>5&127),u+=$[T]>>>12)}}else z=CAt,tt=$u,J=TAt,nt=bg;for(var T=0;T255){var K=n[T]>>>18&31;Kd(e,u,z[K+257]),u+=tt[K+257],K>7&&(UA(e,u,n[T]>>>23&31),u+=_w[K]);var q=n[T]&31;Kd(e,u,J[q]),u+=nt[q],q>3&&(Kd(e,u,n[T]>>>5&8191),u+=ww[q])}else Kd(e,u,z[n[T]]),u+=tt[n[T]];return Kd(e,u,z[256]),u+tt[256]},xAt=new Tg([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),IAt=new ka(0),FAt=function(r,e,t,n,i,a){var o=r.length,s=new ka(n+o+5*(1+Math.floor(o/7e3))+i),A=s.subarray(n,s.length-i),l=0;if(!e||o<8)for(var u=0;u<=o;u+=65535){var c=u+65535;c>>13,p=h&8191,v=(1<7e3||M>24576)&&z>423){l=pN(r,A,0,L,O,x,I,M,b,u-b,l),M=T=I=0,b=u;for(var tt=0;tt<286;++tt)O[tt]=0;for(var tt=0;tt<30;++tt)x[tt]=0}var J=2,nt=0,it=p,_t=P-X&32767;if(z>2&&N==B(u-_t))for(var R=Math.min(f,z)-1,$=Math.min(32767,u),K=Math.min(258,z);_t<=$&&--it&&P!=X;){if(r[u+J]==r[u+J-_t]){for(var q=0;qJ){if(J=q,nt=_t,q>R)break;for(var at=Math.min(_t,q-2),vt=0,tt=0;ttvt&&(vt=It,X=wt)}}}P=X,X=m[P],_t+=P-X+32768&32767}if(nt){L[M++]=268435456|jb[J]<<18|hN[nt];var Ot=jb[J]&31,j=hN[nt]&31;I+=_w[Ot]+ww[j],++O[257+Ot],++x[j],S=u+J,++T}else L[M++]=r[u],++O[r[u]]}}l=pN(r,A,a,L,O,x,I,M,b,u-b,l),a||(l=k0(A,l,IAt))}return y8(s,0,n+RF(l)+i)},LAt=function(){var r=1,e=0;return{p:function(t){for(var n=r,i=e,a=t.length,o=0;o!=a;){for(var s=Math.min(o+5552,a);o>>8<<16|(e&255)<<8|e>>>8)+((r&255)<<23)*2}}},OAt=function(r,e,t,n,i){return FAt(r,e.level==null?6:e.level,e.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):12+e.mem,t,n,!i)},RAt=function(r,e,t){for(;t;++e)r[e]=t,t>>>=8},MAt=function(r,e){var t=e.level,n=t==0?0:t<6?1:t==9?3:2;r[0]=120,r[1]=n<<6|(n?32-2*n:1)},NAt=function(r){if((r[0]&15)!=8||r[0]>>>4>7||(r[0]<<8|r[1])%31)throw"invalid zlib data";if(r[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function Yb(r,e){e===void 0&&(e={});var t=LAt();t.p(r);var n=OAt(r,e,2,4);return MAt(n,e),RAt(n,n.length-4,t.d()),n}function PAt(r,e){return SAt((NAt(r),r.subarray(2,-4)),e)}/** @license * * jsPDF - PDF Document creation from JavaScript * Version 2.5.0 Built on 2021-12-21T09:44:51.866Z @@ -751,7 +751,7 @@ void main(void) { * Contributor(s): * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango, * kim3er, mfo, alnorth, Flamenco - */var He=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function GC(){He.console&&typeof He.console.log=="function"&&He.console.log.apply(He.console,arguments)}var ln={log:GC,warn:function(r){He.console&&(typeof He.console.warn=="function"?He.console.warn.apply(He.console,arguments):GC.call(null,arguments))},error:function(r){He.console&&(typeof He.console.error=="function"?He.console.error.apply(He.console,arguments):GC(r))}};function kC(r,e,t){var n=new XMLHttpRequest;n.open("GET",r),n.responseType="blob",n.onload=function(){bc(n.response,e,t)},n.onerror=function(){ln.error("could not download file")},n.send()}function pN(r){var e=new XMLHttpRequest;e.open("HEAD",r,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Um(r){try{r.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(e)}}var Gv,XS,bc=He.saveAs||((typeof window>"u"?"undefined":tn(window))!=="object"||window!==He?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,e,t){var n=He.URL||He.webkitURL,i=document.createElement("a");e=e||r.name||"download",i.download=e,i.rel="noopener",typeof r=="string"?(i.href=r,i.origin!==location.origin?pN(i.href)?kC(r,e,t):Um(i,i.target="_blank"):Um(i)):(i.href=n.createObjectURL(r),setTimeout(function(){n.revokeObjectURL(i.href)},4e4),setTimeout(function(){Um(i)},0))}:"msSaveOrOpenBlob"in navigator?function(r,e,t){if(e=e||r.name||"download",typeof r=="string")if(pN(r))kC(r,e,t);else{var n=document.createElement("a");n.href=r,n.target="_blank",setTimeout(function(){Um(n)})}else navigator.msSaveOrOpenBlob(function(i,a){return a===void 0?a={autoBom:!1}:tn(a)!=="object"&&(ln.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob([String.fromCharCode(65279),i],{type:i.type}):i}(r,t),e)}:function(r,e,t,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof r=="string")return kC(r,e,t);var i=r.type==="application/octet-stream",a=/constructor/i.test(He.HTMLElement)||He.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a)&&(typeof FileReader>"u"?"undefined":tn(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var u=s.result;u=o?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=u:location=u,n=null},s.readAsDataURL(r)}else{var A=He.URL||He.webkitURL,l=A.createObjectURL(r);n?n.location=l:location.href=l,n=null,setTimeout(function(){A.revokeObjectURL(l)},4e4)}});/** + */var He=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function GC(){He.console&&typeof He.console.log=="function"&&He.console.log.apply(He.console,arguments)}var un={log:GC,warn:function(r){He.console&&(typeof He.console.warn=="function"?He.console.warn.apply(He.console,arguments):GC.call(null,arguments))},error:function(r){He.console&&(typeof He.console.error=="function"?He.console.error.apply(He.console,arguments):GC(r))}};function kC(r,e,t){var n=new XMLHttpRequest;n.open("GET",r),n.responseType="blob",n.onload=function(){xc(n.response,e,t)},n.onerror=function(){un.error("could not download file")},n.send()}function dN(r){var e=new XMLHttpRequest;e.open("HEAD",r,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Um(r){try{r.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(e)}}var Gv,Xb,xc=He.saveAs||((typeof window>"u"?"undefined":en(window))!=="object"||window!==He?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,e,t){var n=He.URL||He.webkitURL,i=document.createElement("a");e=e||r.name||"download",i.download=e,i.rel="noopener",typeof r=="string"?(i.href=r,i.origin!==location.origin?dN(i.href)?kC(r,e,t):Um(i,i.target="_blank"):Um(i)):(i.href=n.createObjectURL(r),setTimeout(function(){n.revokeObjectURL(i.href)},4e4),setTimeout(function(){Um(i)},0))}:"msSaveOrOpenBlob"in navigator?function(r,e,t){if(e=e||r.name||"download",typeof r=="string")if(dN(r))kC(r,e,t);else{var n=document.createElement("a");n.href=r,n.target="_blank",setTimeout(function(){Um(n)})}else navigator.msSaveOrOpenBlob(function(i,a){return a===void 0?a={autoBom:!1}:en(a)!=="object"&&(un.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob([String.fromCharCode(65279),i],{type:i.type}):i}(r,t),e)}:function(r,e,t,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof r=="string")return kC(r,e,t);var i=r.type==="application/octet-stream",a=/constructor/i.test(He.HTMLElement)||He.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a)&&(typeof FileReader>"u"?"undefined":en(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var u=s.result;u=o?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=u:location=u,n=null},s.readAsDataURL(r)}else{var A=He.URL||He.webkitURL,l=A.createObjectURL(r);n?n.location=l:location.href=l,n=null,setTimeout(function(){A.revokeObjectURL(l)},4e4)}});/** * A class to parse color values * @author Stoyan Stefanov * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} @@ -764,14 +764,14 @@ void main(void) { * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js * * Modified by: Owen Leong - */function $C(r,e){var t=r[0],n=r[1],i=r[2],a=r[3];t=pa(t,n,i,a,e[0],7,-680876936),a=pa(a,t,n,i,e[1],12,-389564586),i=pa(i,a,t,n,e[2],17,606105819),n=pa(n,i,a,t,e[3],22,-1044525330),t=pa(t,n,i,a,e[4],7,-176418897),a=pa(a,t,n,i,e[5],12,1200080426),i=pa(i,a,t,n,e[6],17,-1473231341),n=pa(n,i,a,t,e[7],22,-45705983),t=pa(t,n,i,a,e[8],7,1770035416),a=pa(a,t,n,i,e[9],12,-1958414417),i=pa(i,a,t,n,e[10],17,-42063),n=pa(n,i,a,t,e[11],22,-1990404162),t=pa(t,n,i,a,e[12],7,1804603682),a=pa(a,t,n,i,e[13],12,-40341101),i=pa(i,a,t,n,e[14],17,-1502002290),t=da(t,n=pa(n,i,a,t,e[15],22,1236535329),i,a,e[1],5,-165796510),a=da(a,t,n,i,e[6],9,-1069501632),i=da(i,a,t,n,e[11],14,643717713),n=da(n,i,a,t,e[0],20,-373897302),t=da(t,n,i,a,e[5],5,-701558691),a=da(a,t,n,i,e[10],9,38016083),i=da(i,a,t,n,e[15],14,-660478335),n=da(n,i,a,t,e[4],20,-405537848),t=da(t,n,i,a,e[9],5,568446438),a=da(a,t,n,i,e[14],9,-1019803690),i=da(i,a,t,n,e[3],14,-187363961),n=da(n,i,a,t,e[8],20,1163531501),t=da(t,n,i,a,e[13],5,-1444681467),a=da(a,t,n,i,e[2],9,-51403784),i=da(i,a,t,n,e[7],14,1735328473),t=va(t,n=da(n,i,a,t,e[12],20,-1926607734),i,a,e[5],4,-378558),a=va(a,t,n,i,e[8],11,-2022574463),i=va(i,a,t,n,e[11],16,1839030562),n=va(n,i,a,t,e[14],23,-35309556),t=va(t,n,i,a,e[1],4,-1530992060),a=va(a,t,n,i,e[4],11,1272893353),i=va(i,a,t,n,e[7],16,-155497632),n=va(n,i,a,t,e[10],23,-1094730640),t=va(t,n,i,a,e[13],4,681279174),a=va(a,t,n,i,e[0],11,-358537222),i=va(i,a,t,n,e[3],16,-722521979),n=va(n,i,a,t,e[6],23,76029189),t=va(t,n,i,a,e[9],4,-640364487),a=va(a,t,n,i,e[12],11,-421815835),i=va(i,a,t,n,e[15],16,530742520),t=ga(t,n=va(n,i,a,t,e[2],23,-995338651),i,a,e[0],6,-198630844),a=ga(a,t,n,i,e[7],10,1126891415),i=ga(i,a,t,n,e[14],15,-1416354905),n=ga(n,i,a,t,e[5],21,-57434055),t=ga(t,n,i,a,e[12],6,1700485571),a=ga(a,t,n,i,e[3],10,-1894986606),i=ga(i,a,t,n,e[10],15,-1051523),n=ga(n,i,a,t,e[1],21,-2054922799),t=ga(t,n,i,a,e[8],6,1873313359),a=ga(a,t,n,i,e[15],10,-30611744),i=ga(i,a,t,n,e[6],15,-1560198380),n=ga(n,i,a,t,e[13],21,1309151649),t=ga(t,n,i,a,e[4],6,-145523070),a=ga(a,t,n,i,e[11],10,-1120210379),i=ga(i,a,t,n,e[2],15,718787259),n=ga(n,i,a,t,e[9],21,-343485551),r[0]=pu(t,r[0]),r[1]=pu(n,r[1]),r[2]=pu(i,r[2]),r[3]=pu(a,r[3])}function Ew(r,e,t,n,i,a){return e=pu(pu(e,r),pu(n,a)),pu(e<>>32-i,t)}function pa(r,e,t,n,i,a,o){return Ew(e&t|~e&n,r,e,i,a,o)}function da(r,e,t,n,i,a,o){return Ew(e&n|t&~n,r,e,i,a,o)}function va(r,e,t,n,i,a,o){return Ew(e^t^n,r,e,i,a,o)}function ga(r,e,t,n,i,a,o){return Ew(t^(e|~n),r,e,i,a,o)}function _8(r){var e,t=r.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=r.length;e+=64)$C(n,MAt(r.substring(e-64,e)));r=r.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=r.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for($C(n,i),e=0;e<16;e++)i[e]=0;return i[14]=8*t,$C(n,i),n}function MAt(r){var e,t=[];for(e=0;e<64;e+=4)t[e>>2]=r.charCodeAt(e)+(r.charCodeAt(e+1)<<8)+(r.charCodeAt(e+2)<<16)+(r.charCodeAt(e+3)<<24);return t}Gv=He.atob.bind(He),XS=He.btoa.bind(He);var dN="0123456789abcdef".split("");function NAt(r){for(var e="",t=0;t<4;t++)e+=dN[r>>8*t+4&15]+dN[r>>8*t&15];return e}function PAt(r){return String.fromCharCode((255&r)>>0,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function WS(r){return _8(r).map(PAt).join("")}var UAt=function(r){for(var e=0;e>16)+(e>>16)+(t>>16)<<16|65535&t}return r+e&4294967295}/** + */function $C(r,e){var t=r[0],n=r[1],i=r[2],a=r[3];t=da(t,n,i,a,e[0],7,-680876936),a=da(a,t,n,i,e[1],12,-389564586),i=da(i,a,t,n,e[2],17,606105819),n=da(n,i,a,t,e[3],22,-1044525330),t=da(t,n,i,a,e[4],7,-176418897),a=da(a,t,n,i,e[5],12,1200080426),i=da(i,a,t,n,e[6],17,-1473231341),n=da(n,i,a,t,e[7],22,-45705983),t=da(t,n,i,a,e[8],7,1770035416),a=da(a,t,n,i,e[9],12,-1958414417),i=da(i,a,t,n,e[10],17,-42063),n=da(n,i,a,t,e[11],22,-1990404162),t=da(t,n,i,a,e[12],7,1804603682),a=da(a,t,n,i,e[13],12,-40341101),i=da(i,a,t,n,e[14],17,-1502002290),t=va(t,n=da(n,i,a,t,e[15],22,1236535329),i,a,e[1],5,-165796510),a=va(a,t,n,i,e[6],9,-1069501632),i=va(i,a,t,n,e[11],14,643717713),n=va(n,i,a,t,e[0],20,-373897302),t=va(t,n,i,a,e[5],5,-701558691),a=va(a,t,n,i,e[10],9,38016083),i=va(i,a,t,n,e[15],14,-660478335),n=va(n,i,a,t,e[4],20,-405537848),t=va(t,n,i,a,e[9],5,568446438),a=va(a,t,n,i,e[14],9,-1019803690),i=va(i,a,t,n,e[3],14,-187363961),n=va(n,i,a,t,e[8],20,1163531501),t=va(t,n,i,a,e[13],5,-1444681467),a=va(a,t,n,i,e[2],9,-51403784),i=va(i,a,t,n,e[7],14,1735328473),t=ga(t,n=va(n,i,a,t,e[12],20,-1926607734),i,a,e[5],4,-378558),a=ga(a,t,n,i,e[8],11,-2022574463),i=ga(i,a,t,n,e[11],16,1839030562),n=ga(n,i,a,t,e[14],23,-35309556),t=ga(t,n,i,a,e[1],4,-1530992060),a=ga(a,t,n,i,e[4],11,1272893353),i=ga(i,a,t,n,e[7],16,-155497632),n=ga(n,i,a,t,e[10],23,-1094730640),t=ga(t,n,i,a,e[13],4,681279174),a=ga(a,t,n,i,e[0],11,-358537222),i=ga(i,a,t,n,e[3],16,-722521979),n=ga(n,i,a,t,e[6],23,76029189),t=ga(t,n,i,a,e[9],4,-640364487),a=ga(a,t,n,i,e[12],11,-421815835),i=ga(i,a,t,n,e[15],16,530742520),t=ya(t,n=ga(n,i,a,t,e[2],23,-995338651),i,a,e[0],6,-198630844),a=ya(a,t,n,i,e[7],10,1126891415),i=ya(i,a,t,n,e[14],15,-1416354905),n=ya(n,i,a,t,e[5],21,-57434055),t=ya(t,n,i,a,e[12],6,1700485571),a=ya(a,t,n,i,e[3],10,-1894986606),i=ya(i,a,t,n,e[10],15,-1051523),n=ya(n,i,a,t,e[1],21,-2054922799),t=ya(t,n,i,a,e[8],6,1873313359),a=ya(a,t,n,i,e[15],10,-30611744),i=ya(i,a,t,n,e[6],15,-1560198380),n=ya(n,i,a,t,e[13],21,1309151649),t=ya(t,n,i,a,e[4],6,-145523070),a=ya(a,t,n,i,e[11],10,-1120210379),i=ya(i,a,t,n,e[2],15,718787259),n=ya(n,i,a,t,e[9],21,-343485551),r[0]=pu(t,r[0]),r[1]=pu(n,r[1]),r[2]=pu(i,r[2]),r[3]=pu(a,r[3])}function Ew(r,e,t,n,i,a){return e=pu(pu(e,r),pu(n,a)),pu(e<>>32-i,t)}function da(r,e,t,n,i,a,o){return Ew(e&t|~e&n,r,e,i,a,o)}function va(r,e,t,n,i,a,o){return Ew(e&n|t&~n,r,e,i,a,o)}function ga(r,e,t,n,i,a,o){return Ew(e^t^n,r,e,i,a,o)}function ya(r,e,t,n,i,a,o){return Ew(t^(e|~n),r,e,i,a,o)}function _8(r){var e,t=r.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=r.length;e+=64)$C(n,UAt(r.substring(e-64,e)));r=r.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=r.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for($C(n,i),e=0;e<16;e++)i[e]=0;return i[14]=8*t,$C(n,i),n}function UAt(r){var e,t=[];for(e=0;e<64;e+=4)t[e>>2]=r.charCodeAt(e)+(r.charCodeAt(e+1)<<8)+(r.charCodeAt(e+2)<<16)+(r.charCodeAt(e+3)<<24);return t}Gv=He.atob.bind(He),Xb=He.btoa.bind(He);var vN="0123456789abcdef".split("");function DAt(r){for(var e="",t=0;t<4;t++)e+=vN[r>>8*t+4&15]+vN[r>>8*t&15];return e}function QAt(r){return String.fromCharCode((255&r)>>0,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function Wb(r){return _8(r).map(QAt).join("")}var HAt=function(r){for(var e=0;e>16)+(e>>16)+(t>>16)<<16|65535&t}return r+e&4294967295}/** * @license * FPDF is released under a permissive license: there is no usage restriction. * You may embed it freely in your application (commercial or not), with or * without modifications. * * Reference: http://www.fpdf.org/en/script/script37.php - */function qS(r,e){var t,n,i,a;if(r!==t){for(var o=(i=r,a=1+(256/r.length>>0),new Array(a+1).join(i)),s=[],A=0;A<256;A++)s[A]=A;var l=0;for(A=0;A<256;A++){var u=s[A];l=(l+u+o.charCodeAt(A))%256,s[A]=s[l],s[l]=u}t=r,n=s}else s=n;var c=e.length,h=0,f=0,p="";for(A=0;A>0),new Array(a+1).join(i)),s=[],A=0;A<256;A++)s[A]=A;var l=0;for(A=0;A<256;A++){var u=s[A];l=(l+u+o.charCodeAt(A))%256,s[A]=s[l],s[l]=u}t=r,n=s}else s=n;var c=e.length,h=0,f=0,p="";for(A=0;A€/\f©þdSiz";var a=(e+this.padding).substr(0,32),o=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=WS(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=qS(this.encryptionKey,this.padding)}function Df(r){if(/[^\u0000-\u00ff]/.test(r))throw new Error("Invalid PDF Name Object: "+r+", Only accept ASCII characters.");for(var e="",t=r.length,n=0;n126?e+="#"+("0"+i.toString(16)).slice(-2):e+=r[n]}return e}function gN(r){if(tn(r)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,i){if(i=i||!1,typeof t!="string"||typeof n!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var a=Math.random().toString(35);return e[t][a]=[n,!!i],a},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],Object.keys(e[n]).length===0&&delete e[n],!0;return!1},this.publish=function(t){if(e.hasOwnProperty(t)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var a in e[t]){var o=e[t][a];try{o[0].apply(r,n)}catch(s){He.console&&ln.error("jsPDF PubSub Error",s.message,s)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function z_(r){if(!(this instanceof z_))return new z_(r);var e="opacity,stroke-opacity".split(",");for(var t in r)r.hasOwnProperty(t)&&e.indexOf(t)>=0&&(this[t]=r[t]);this.id="",this.objectNumber=-1}function w8(r,e){this.gState=r,this.matrix=e,this.id="",this.objectNumber=-1}function Oc(r,e,t,n,i){if(!(this instanceof Oc))return new Oc(r,e,t,n,i);this.type=r==="axial"?2:3,this.coords=e,this.colors=t,w8.call(this,n,i)}function Wf(r,e,t,n,i){if(!(this instanceof Wf))return new Wf(r,e,t,n,i);this.boundingBox=r,this.xStep=e,this.yStep=t,this.stream="",this.cloneIndex=0,w8.call(this,n,i)}function Ue(r){var e,t=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],i=arguments[2],a=arguments[3],o=[],s=1,A=16,l="S",u=null;tn(r=r||{})==="object"&&(t=r.orientation,n=r.unit||n,i=r.format||i,a=r.compress||r.compressPdf||a,(u=r.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),s=typeof r.userUnit=="number"?Math.abs(r.userUnit):1,r.precision!==void 0&&(e=r.precision),r.floatPrecision!==void 0&&(A=r.floatPrecision),l=r.defaultPathOperation||"S"),o=r.filters||(a===!0?["FlateEncode"]:o),n=n||"mm",t=(""+(t||"P")).toLowerCase();var c=r.putOnlyUsedFonts||!1,h={},f={internal:{},__private__:{}};f.__private__.PubSub=gN;var p="1.3",v=f.__private__.getPdfVersion=function(){return p};f.__private__.setPdfVersion=function(w){p=w};var m={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};f.__private__.getPageFormats=function(){return m};var g=f.__private__.getPageFormat=function(w){return m[w]};i=i||"a4";var _={COMPAT:"compat",ADVANCED:"advanced"},E=_.COMPAT;function B(){this.saveGraphicsState(),G(new be(Kt,0,0,-Kt,0,Fl()*Kt).toString()+" cm"),this.setFontSize(this.getFontSize()/Kt),l="n",E=_.ADVANCED}function L(){this.restoreGraphicsState(),l="S",E=_.COMPAT}var O=f.__private__.combineFontStyleAndFontWeight=function(w,D){if(w=="bold"&&D=="normal"||w=="bold"&&D==400||w=="normal"&&D=="italic"||w=="bold"&&D=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return D&&(w=D==400||D==="normal"?w==="italic"?"italic":"normal":D!=700&&D!=="bold"||w!=="normal"?(D==700?"bold":D)+""+w:"bold"),w};f.advancedAPI=function(w){var D=E===_.COMPAT;return D&&B.call(this),typeof w!="function"||(w(this),D&&L.call(this)),this},f.compatAPI=function(w){var D=E===_.ADVANCED;return D&&L.call(this),typeof w!="function"||(w(this),D&&B.call(this)),this},f.isAdvancedAPI=function(){return E===_.ADVANCED};var b,T=function(w){if(E!==_.ADVANCED)throw new Error(w+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},I=f.roundToPrecision=f.__private__.roundToPrecision=function(w,D){var et=e||D;if(isNaN(w)||isNaN(et))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return w.toFixed(et).replace(/0+$/,"")};b=f.hpf=f.__private__.hpf=typeof A=="number"?function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return I(w,A)}:A==="smart"?function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return I(w,w>-1&&w<1?16:5)}:function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return I(w,16)};var M=f.f2=f.__private__.f2=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.f2");return I(w,2)},x=f.__private__.f3=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.f3");return I(w,3)},S=f.scale=f.__private__.scale=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.scale");return E===_.COMPAT?w*Kt:E===_.ADVANCED?w:void 0},N=function(w){return E===_.COMPAT?Fl()-w:E===_.ADVANCED?w:void 0},P=function(w){return S(N(w))};f.__private__.setPrecision=f.setPrecision=function(w){typeof parseInt(w,10)=="number"&&(e=parseInt(w,10))};var X,z="00000000000000000000000000000000",tt=f.__private__.getFileId=function(){return z},J=f.__private__.setFileId=function(w){return z=w!==void 0&&/^[a-fA-F0-9]{32}$/.test(w)?w.toUpperCase():z.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),u!==null&&(ca=new Uf(u.userPermissions,u.userPassword,u.ownerPassword,z)),z};f.setFileId=function(w){return J(w),this},f.getFileId=function(){return tt()};var nt=f.__private__.convertDateToPDFDate=function(w){var D=w.getTimezoneOffset(),et=D<0?"+":"-",lt=Math.floor(Math.abs(D/60)),Ct=Math.abs(D%60),Rt=[et,K(lt),"'",K(Ct),"'"].join("");return["D:",w.getFullYear(),K(w.getMonth()+1),K(w.getDate()),K(w.getHours()),K(w.getMinutes()),K(w.getSeconds()),Rt].join("")},it=f.__private__.convertPDFDateToDate=function(w){var D=parseInt(w.substr(2,4),10),et=parseInt(w.substr(6,2),10)-1,lt=parseInt(w.substr(8,2),10),Ct=parseInt(w.substr(10,2),10),Rt=parseInt(w.substr(12,2),10),jt=parseInt(w.substr(14,2),10);return new Date(D,et,lt,Ct,Rt,jt,0)},_t=f.__private__.setCreationDate=function(w){var D;if(w===void 0&&(w=new Date),w instanceof Date)D=nt(w);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(w))throw new Error("Invalid argument passed to jsPDF.setCreationDate");D=w}return X=D},R=f.__private__.getCreationDate=function(w){var D=X;return w==="jsDate"&&(D=it(X)),D};f.setCreationDate=function(w){return _t(w),this},f.getCreationDate=function(w){return R(w)};var $,K=f.__private__.padd2=function(w){return("0"+parseInt(w)).slice(-2)},q=f.__private__.padd2Hex=function(w){return("00"+(w=w.toString())).substr(w.length)},at=0,vt=[],wt=[],W=0,It=[],Ot=[],j=!1,Z=wt,ut=function(){at=0,W=0,wt=[],vt=[],It=[],se=qr(),ht=qr()};f.__private__.setCustomOutputDestination=function(w){j=!0,Z=w};var rt=function(w){j||(Z=w)};f.__private__.resetCustomOutputDestination=function(){j=!1,Z=wt};var G=f.__private__.out=function(w){return w=w.toString(),W+=w.length+1,Z.push(w),Z},xt=f.__private__.write=function(w){return G(arguments.length===1?w.toString():Array.prototype.join.call(arguments," "))},bt=f.__private__.getArrayBuffer=function(w){for(var D=w.length,et=new ArrayBuffer(D),lt=new Uint8Array(et);D--;)lt[D]=w.charCodeAt(D);return et},dt=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];f.__private__.getStandardFonts=function(){return dt};var Et=r.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(w){return Et=E===_.ADVANCED?w/Kt:w,this};var yt,St=f.__private__.getFontSize=f.getFontSize=function(){return E===_.COMPAT?Et:Et*Kt},Ft=r.R2L||!1;f.__private__.setR2L=f.setR2L=function(w){return Ft=w,this},f.__private__.getR2L=f.getR2L=function(){return Ft};var Mt,Vt=f.__private__.setZoomMode=function(w){var D=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^\d*\.?\d*%$/.test(w))yt=w;else if(isNaN(w)){if(D.indexOf(w)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+w+'" is not recognized.');yt=w}else yt=parseInt(w,10)};f.__private__.getZoomMode=function(){return yt};var Yt,ie=f.__private__.setPageMode=function(w){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(w)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+w+'" is not recognized.');Mt=w};f.__private__.getPageMode=function(){return Mt};var ee=f.__private__.setLayoutMode=function(w){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(w)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+w+'" is not recognized.');Yt=w};f.__private__.getLayoutMode=function(){return Yt},f.__private__.setDisplayMode=f.setDisplayMode=function(w,D,et){return Vt(w),ee(D),ie(et),this};var Xt={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(w){if(Object.keys(Xt).indexOf(w)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Xt[w]},f.__private__.getDocumentProperties=function(){return Xt},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(w){for(var D in Xt)Xt.hasOwnProperty(D)&&w[D]&&(Xt[D]=w[D]);return this},f.__private__.setDocumentProperty=function(w,D){if(Object.keys(Xt).indexOf(w)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Xt[w]=D};var oe,Kt,Xe,Re,pr,Ie={},xe={},on=[],sr={},Ti={},Br={},ci={},$r=null,Vr=0,Me=[],wr=new gN(f),Yn=r.hotfixes||[],fn={},Si={},xi=[],be=function w(D,et,lt,Ct,Rt,jt){if(!(this instanceof w))return new w(D,et,lt,Ct,Rt,jt);isNaN(D)&&(D=1),isNaN(et)&&(et=0),isNaN(lt)&&(lt=0),isNaN(Ct)&&(Ct=1),isNaN(Rt)&&(Rt=0),isNaN(jt)&&(jt=0),this._matrix=[D,et,lt,Ct,Rt,jt]};Object.defineProperty(be.prototype,"sx",{get:function(){return this._matrix[0]},set:function(w){this._matrix[0]=w}}),Object.defineProperty(be.prototype,"shy",{get:function(){return this._matrix[1]},set:function(w){this._matrix[1]=w}}),Object.defineProperty(be.prototype,"shx",{get:function(){return this._matrix[2]},set:function(w){this._matrix[2]=w}}),Object.defineProperty(be.prototype,"sy",{get:function(){return this._matrix[3]},set:function(w){this._matrix[3]=w}}),Object.defineProperty(be.prototype,"tx",{get:function(){return this._matrix[4]},set:function(w){this._matrix[4]=w}}),Object.defineProperty(be.prototype,"ty",{get:function(){return this._matrix[5]},set:function(w){this._matrix[5]=w}}),Object.defineProperty(be.prototype,"a",{get:function(){return this._matrix[0]},set:function(w){this._matrix[0]=w}}),Object.defineProperty(be.prototype,"b",{get:function(){return this._matrix[1]},set:function(w){this._matrix[1]=w}}),Object.defineProperty(be.prototype,"c",{get:function(){return this._matrix[2]},set:function(w){this._matrix[2]=w}}),Object.defineProperty(be.prototype,"d",{get:function(){return this._matrix[3]},set:function(w){this._matrix[3]=w}}),Object.defineProperty(be.prototype,"e",{get:function(){return this._matrix[4]},set:function(w){this._matrix[4]=w}}),Object.defineProperty(be.prototype,"f",{get:function(){return this._matrix[5]},set:function(w){this._matrix[5]=w}}),Object.defineProperty(be.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(be.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(be.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(be.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),be.prototype.join=function(w){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(b).join(w)},be.prototype.multiply=function(w){var D=w.sx*this.sx+w.shy*this.shx,et=w.sx*this.shy+w.shy*this.sy,lt=w.shx*this.sx+w.sy*this.shx,Ct=w.shx*this.shy+w.sy*this.sy,Rt=w.tx*this.sx+w.ty*this.shx+this.tx,jt=w.tx*this.shy+w.ty*this.sy+this.ty;return new be(D,et,lt,Ct,Rt,jt)},be.prototype.decompose=function(){var w=this.sx,D=this.shy,et=this.shx,lt=this.sy,Ct=this.tx,Rt=this.ty,jt=Math.sqrt(w*w+D*D),re=(w/=jt)*et+(D/=jt)*lt;et-=w*re,lt-=D*re;var Fe=Math.sqrt(et*et+lt*lt);return re/=Fe,w*(lt/=Fe)>16&255,lt=Fe>>8&255,Ct=255&Fe}if(lt===void 0||Rt===void 0&&et===lt&<===Ct)if(typeof et=="string")D=et+" "+jt[0];else switch(w.precision){case 2:D=M(et/255)+" "+jt[0];break;case 3:default:D=x(et/255)+" "+jt[0]}else if(Rt===void 0||tn(Rt)==="object"){if(Rt&&!isNaN(Rt.a)&&Rt.a===0)return D=["1.","1.","1.",jt[1]].join(" ");if(typeof et=="string")D=[et,lt,Ct,jt[1]].join(" ");else switch(w.precision){case 2:D=[M(et/255),M(lt/255),M(Ct/255),jt[1]].join(" ");break;default:case 3:D=[x(et/255),x(lt/255),x(Ct/255),jt[1]].join(" ")}}else if(typeof et=="string")D=[et,lt,Ct,Rt,jt[2]].join(" ");else switch(w.precision){case 2:D=[M(et),M(lt),M(Ct),M(Rt),jt[2]].join(" ");break;case 3:default:D=[x(et),x(lt),x(Ct),x(Rt),jt[2]].join(" ")}return D},er=f.__private__.getFilters=function(){return o},Or=f.__private__.putStream=function(w){var D=(w=w||{}).data||"",et=w.filters||er(),lt=w.alreadyAppliedFilters||[],Ct=w.addLength1||!1,Rt=D.length,jt=w.objectId,re=function(ha){return ha};if(u!==null&&jt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(re=ca.encryptor(jt,0));var Fe={};et===!0&&(et=["FlateEncode"]);var ur=w.additionalKeyValues||[],Ke=(Fe=Ue.API.processDataByFilters!==void 0?Ue.API.processDataByFilters(D,et):{data:D,reverseChain:[]}).reverseChain+(Array.isArray(lt)?lt.join(" "):lt.toString());if(Fe.data.length!==0&&(ur.push({key:"Length",value:Fe.data.length}),Ct===!0&&ur.push({key:"Length1",value:Rt})),Ke.length!=0)if(Ke.split("/").length-1==1)ur.push({key:"Filter",value:Ke});else{ur.push({key:"Filter",value:"["+Ke+"]"});for(var Tr=0;Tr>"),Fe.data.length!==0&&(G("stream"),G(re(Fe.data)),G("endstream"))},sn=f.__private__.putPage=function(w){var D=w.number,et=w.data,lt=w.objId,Ct=w.contentsObjId;En(lt,!0),G("<>"),G("endobj");var Rt=et.join(` + */var gN={print:4,modify:8,copy:16,"annot-forms":32};function Uf(r,e,t,n){this.v=1,this.r=2;var i=192;r.forEach(function(s){if(gN.perm!==void 0)throw new Error("Invalid permission: "+s);i+=gN[s]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var a=(e+this.padding).substr(0,32),o=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=Wb(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=qb(this.encryptionKey,this.padding)}function Df(r){if(/[^\u0000-\u00ff]/.test(r))throw new Error("Invalid PDF Name Object: "+r+", Only accept ASCII characters.");for(var e="",t=r.length,n=0;n126?e+="#"+("0"+i.toString(16)).slice(-2):e+=r[n]}return e}function yN(r){if(en(r)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,i){if(i=i||!1,typeof t!="string"||typeof n!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var a=Math.random().toString(35);return e[t][a]=[n,!!i],a},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],Object.keys(e[n]).length===0&&delete e[n],!0;return!1},this.publish=function(t){if(e.hasOwnProperty(t)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var a in e[t]){var o=e[t][a];try{o[0].apply(r,n)}catch(s){He.console&&un.error("jsPDF PubSub Error",s.message,s)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function z_(r){if(!(this instanceof z_))return new z_(r);var e="opacity,stroke-opacity".split(",");for(var t in r)r.hasOwnProperty(t)&&e.indexOf(t)>=0&&(this[t]=r[t]);this.id="",this.objectNumber=-1}function w8(r,e){this.gState=r,this.matrix=e,this.id="",this.objectNumber=-1}function Oc(r,e,t,n,i){if(!(this instanceof Oc))return new Oc(r,e,t,n,i);this.type=r==="axial"?2:3,this.coords=e,this.colors=t,w8.call(this,n,i)}function Wf(r,e,t,n,i){if(!(this instanceof Wf))return new Wf(r,e,t,n,i);this.boundingBox=r,this.xStep=e,this.yStep=t,this.stream="",this.cloneIndex=0,w8.call(this,n,i)}function Ue(r){var e,t=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],i=arguments[2],a=arguments[3],o=[],s=1,A=16,l="S",u=null;en(r=r||{})==="object"&&(t=r.orientation,n=r.unit||n,i=r.format||i,a=r.compress||r.compressPdf||a,(u=r.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),s=typeof r.userUnit=="number"?Math.abs(r.userUnit):1,r.precision!==void 0&&(e=r.precision),r.floatPrecision!==void 0&&(A=r.floatPrecision),l=r.defaultPathOperation||"S"),o=r.filters||(a===!0?["FlateEncode"]:o),n=n||"mm",t=(""+(t||"P")).toLowerCase();var c=r.putOnlyUsedFonts||!1,h={},f={internal:{},__private__:{}};f.__private__.PubSub=yN;var p="1.3",v=f.__private__.getPdfVersion=function(){return p};f.__private__.setPdfVersion=function(w){p=w};var m={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};f.__private__.getPageFormats=function(){return m};var g=f.__private__.getPageFormat=function(w){return m[w]};i=i||"a4";var _={COMPAT:"compat",ADVANCED:"advanced"},E=_.COMPAT;function B(){this.saveGraphicsState(),G(new xe(Kt,0,0,-Kt,0,Ll()*Kt).toString()+" cm"),this.setFontSize(this.getFontSize()/Kt),l="n",E=_.ADVANCED}function L(){this.restoreGraphicsState(),l="S",E=_.COMPAT}var O=f.__private__.combineFontStyleAndFontWeight=function(w,D){if(w=="bold"&&D=="normal"||w=="bold"&&D==400||w=="normal"&&D=="italic"||w=="bold"&&D=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return D&&(w=D==400||D==="normal"?w==="italic"?"italic":"normal":D!=700&&D!=="bold"||w!=="normal"?(D==700?"bold":D)+""+w:"bold"),w};f.advancedAPI=function(w){var D=E===_.COMPAT;return D&&B.call(this),typeof w!="function"||(w(this),D&&L.call(this)),this},f.compatAPI=function(w){var D=E===_.ADVANCED;return D&&L.call(this),typeof w!="function"||(w(this),D&&B.call(this)),this},f.isAdvancedAPI=function(){return E===_.ADVANCED};var x,T=function(w){if(E!==_.ADVANCED)throw new Error(w+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},I=f.roundToPrecision=f.__private__.roundToPrecision=function(w,D){var et=e||D;if(isNaN(w)||isNaN(et))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return w.toFixed(et).replace(/0+$/,"")};x=f.hpf=f.__private__.hpf=typeof A=="number"?function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return I(w,A)}:A==="smart"?function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return I(w,w>-1&&w<1?16:5)}:function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return I(w,16)};var M=f.f2=f.__private__.f2=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.f2");return I(w,2)},S=f.__private__.f3=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.f3");return I(w,3)},b=f.scale=f.__private__.scale=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.scale");return E===_.COMPAT?w*Kt:E===_.ADVANCED?w:void 0},N=function(w){return E===_.COMPAT?Ll()-w:E===_.ADVANCED?w:void 0},P=function(w){return b(N(w))};f.__private__.setPrecision=f.setPrecision=function(w){typeof parseInt(w,10)=="number"&&(e=parseInt(w,10))};var X,z="00000000000000000000000000000000",tt=f.__private__.getFileId=function(){return z},J=f.__private__.setFileId=function(w){return z=w!==void 0&&/^[a-fA-F0-9]{32}$/.test(w)?w.toUpperCase():z.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),u!==null&&(ha=new Uf(u.userPermissions,u.userPassword,u.ownerPassword,z)),z};f.setFileId=function(w){return J(w),this},f.getFileId=function(){return tt()};var nt=f.__private__.convertDateToPDFDate=function(w){var D=w.getTimezoneOffset(),et=D<0?"+":"-",lt=Math.floor(Math.abs(D/60)),Ct=Math.abs(D%60),Rt=[et,K(lt),"'",K(Ct),"'"].join("");return["D:",w.getFullYear(),K(w.getMonth()+1),K(w.getDate()),K(w.getHours()),K(w.getMinutes()),K(w.getSeconds()),Rt].join("")},it=f.__private__.convertPDFDateToDate=function(w){var D=parseInt(w.substr(2,4),10),et=parseInt(w.substr(6,2),10)-1,lt=parseInt(w.substr(8,2),10),Ct=parseInt(w.substr(10,2),10),Rt=parseInt(w.substr(12,2),10),jt=parseInt(w.substr(14,2),10);return new Date(D,et,lt,Ct,Rt,jt,0)},_t=f.__private__.setCreationDate=function(w){var D;if(w===void 0&&(w=new Date),w instanceof Date)D=nt(w);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(w))throw new Error("Invalid argument passed to jsPDF.setCreationDate");D=w}return X=D},R=f.__private__.getCreationDate=function(w){var D=X;return w==="jsDate"&&(D=it(X)),D};f.setCreationDate=function(w){return _t(w),this},f.getCreationDate=function(w){return R(w)};var $,K=f.__private__.padd2=function(w){return("0"+parseInt(w)).slice(-2)},q=f.__private__.padd2Hex=function(w){return("00"+(w=w.toString())).substr(w.length)},at=0,vt=[],wt=[],W=0,It=[],Ot=[],j=!1,Z=wt,ut=function(){at=0,W=0,wt=[],vt=[],It=[],se=qr(),ht=qr()};f.__private__.setCustomOutputDestination=function(w){j=!0,Z=w};var rt=function(w){j||(Z=w)};f.__private__.resetCustomOutputDestination=function(){j=!1,Z=wt};var G=f.__private__.out=function(w){return w=w.toString(),W+=w.length+1,Z.push(w),Z},St=f.__private__.write=function(w){return G(arguments.length===1?w.toString():Array.prototype.join.call(arguments," "))},xt=f.__private__.getArrayBuffer=function(w){for(var D=w.length,et=new ArrayBuffer(D),lt=new Uint8Array(et);D--;)lt[D]=w.charCodeAt(D);return et},dt=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];f.__private__.getStandardFonts=function(){return dt};var Et=r.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(w){return Et=E===_.ADVANCED?w/Kt:w,this};var yt,bt=f.__private__.getFontSize=f.getFontSize=function(){return E===_.COMPAT?Et:Et*Kt},Ft=r.R2L||!1;f.__private__.setR2L=f.setR2L=function(w){return Ft=w,this},f.__private__.getR2L=f.getR2L=function(){return Ft};var Mt,Vt=f.__private__.setZoomMode=function(w){var D=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^\d*\.?\d*%$/.test(w))yt=w;else if(isNaN(w)){if(D.indexOf(w)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+w+'" is not recognized.');yt=w}else yt=parseInt(w,10)};f.__private__.getZoomMode=function(){return yt};var Yt,ie=f.__private__.setPageMode=function(w){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(w)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+w+'" is not recognized.');Mt=w};f.__private__.getPageMode=function(){return Mt};var ee=f.__private__.setLayoutMode=function(w){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(w)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+w+'" is not recognized.');Yt=w};f.__private__.getLayoutMode=function(){return Yt},f.__private__.setDisplayMode=f.setDisplayMode=function(w,D,et){return Vt(w),ee(D),ie(et),this};var Xt={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(w){if(Object.keys(Xt).indexOf(w)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Xt[w]},f.__private__.getDocumentProperties=function(){return Xt},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(w){for(var D in Xt)Xt.hasOwnProperty(D)&&w[D]&&(Xt[D]=w[D]);return this},f.__private__.setDocumentProperty=function(w,D){if(Object.keys(Xt).indexOf(w)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Xt[w]=D};var oe,Kt,Xe,Re,dr,Ie={},Se={},sn=[],sr={},bi={},Br={},hi={},$r=null,Vr=0,Me=[],wr=new yN(f),Xn=r.hotfixes||[],fn={},Si={},xi=[],xe=function w(D,et,lt,Ct,Rt,jt){if(!(this instanceof w))return new w(D,et,lt,Ct,Rt,jt);isNaN(D)&&(D=1),isNaN(et)&&(et=0),isNaN(lt)&&(lt=0),isNaN(Ct)&&(Ct=1),isNaN(Rt)&&(Rt=0),isNaN(jt)&&(jt=0),this._matrix=[D,et,lt,Ct,Rt,jt]};Object.defineProperty(xe.prototype,"sx",{get:function(){return this._matrix[0]},set:function(w){this._matrix[0]=w}}),Object.defineProperty(xe.prototype,"shy",{get:function(){return this._matrix[1]},set:function(w){this._matrix[1]=w}}),Object.defineProperty(xe.prototype,"shx",{get:function(){return this._matrix[2]},set:function(w){this._matrix[2]=w}}),Object.defineProperty(xe.prototype,"sy",{get:function(){return this._matrix[3]},set:function(w){this._matrix[3]=w}}),Object.defineProperty(xe.prototype,"tx",{get:function(){return this._matrix[4]},set:function(w){this._matrix[4]=w}}),Object.defineProperty(xe.prototype,"ty",{get:function(){return this._matrix[5]},set:function(w){this._matrix[5]=w}}),Object.defineProperty(xe.prototype,"a",{get:function(){return this._matrix[0]},set:function(w){this._matrix[0]=w}}),Object.defineProperty(xe.prototype,"b",{get:function(){return this._matrix[1]},set:function(w){this._matrix[1]=w}}),Object.defineProperty(xe.prototype,"c",{get:function(){return this._matrix[2]},set:function(w){this._matrix[2]=w}}),Object.defineProperty(xe.prototype,"d",{get:function(){return this._matrix[3]},set:function(w){this._matrix[3]=w}}),Object.defineProperty(xe.prototype,"e",{get:function(){return this._matrix[4]},set:function(w){this._matrix[4]=w}}),Object.defineProperty(xe.prototype,"f",{get:function(){return this._matrix[5]},set:function(w){this._matrix[5]=w}}),Object.defineProperty(xe.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(xe.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(xe.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(xe.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),xe.prototype.join=function(w){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(x).join(w)},xe.prototype.multiply=function(w){var D=w.sx*this.sx+w.shy*this.shx,et=w.sx*this.shy+w.shy*this.sy,lt=w.shx*this.sx+w.sy*this.shx,Ct=w.shx*this.shy+w.sy*this.sy,Rt=w.tx*this.sx+w.ty*this.shx+this.tx,jt=w.tx*this.shy+w.ty*this.sy+this.ty;return new xe(D,et,lt,Ct,Rt,jt)},xe.prototype.decompose=function(){var w=this.sx,D=this.shy,et=this.shx,lt=this.sy,Ct=this.tx,Rt=this.ty,jt=Math.sqrt(w*w+D*D),re=(w/=jt)*et+(D/=jt)*lt;et-=w*re,lt-=D*re;var Fe=Math.sqrt(et*et+lt*lt);return re/=Fe,w*(lt/=Fe)>16&255,lt=Fe>>8&255,Ct=255&Fe}if(lt===void 0||Rt===void 0&&et===lt&<===Ct)if(typeof et=="string")D=et+" "+jt[0];else switch(w.precision){case 2:D=M(et/255)+" "+jt[0];break;case 3:default:D=S(et/255)+" "+jt[0]}else if(Rt===void 0||en(Rt)==="object"){if(Rt&&!isNaN(Rt.a)&&Rt.a===0)return D=["1.","1.","1.",jt[1]].join(" ");if(typeof et=="string")D=[et,lt,Ct,jt[1]].join(" ");else switch(w.precision){case 2:D=[M(et/255),M(lt/255),M(Ct/255),jt[1]].join(" ");break;default:case 3:D=[S(et/255),S(lt/255),S(Ct/255),jt[1]].join(" ")}}else if(typeof et=="string")D=[et,lt,Ct,Rt,jt[2]].join(" ");else switch(w.precision){case 2:D=[M(et),M(lt),M(Ct),M(Rt),jt[2]].join(" ");break;case 3:default:D=[S(et),S(lt),S(Ct),S(Rt),jt[2]].join(" ")}return D},er=f.__private__.getFilters=function(){return o},Or=f.__private__.putStream=function(w){var D=(w=w||{}).data||"",et=w.filters||er(),lt=w.alreadyAppliedFilters||[],Ct=w.addLength1||!1,Rt=D.length,jt=w.objectId,re=function(fa){return fa};if(u!==null&&jt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(re=ha.encryptor(jt,0));var Fe={};et===!0&&(et=["FlateEncode"]);var cr=w.additionalKeyValues||[],Ke=(Fe=Ue.API.processDataByFilters!==void 0?Ue.API.processDataByFilters(D,et):{data:D,reverseChain:[]}).reverseChain+(Array.isArray(lt)?lt.join(" "):lt.toString());if(Fe.data.length!==0&&(cr.push({key:"Length",value:Fe.data.length}),Ct===!0&&cr.push({key:"Length1",value:Rt})),Ke.length!=0)if(Ke.split("/").length-1==1)cr.push({key:"Filter",value:Ke});else{cr.push({key:"Filter",value:"["+Ke+"]"});for(var Tr=0;Tr>"),Fe.data.length!==0&&(G("stream"),G(re(Fe.data)),G("endstream"))},An=f.__private__.putPage=function(w){var D=w.number,et=w.data,lt=w.objId,Ct=w.contentsObjId;En(lt,!0),G("<>"),G("endobj");var Rt=et.join(` `);return E===_.ADVANCED&&(Rt+=` -Q`),En(Ct,!0),Or({data:Rt,filters:er(),objectId:Ct}),G("endobj"),lt},Cn=f.__private__.putPages=function(){var w,D,et=[];for(w=1;w<=Vr;w++)Me[w].objId=qr(),Me[w].contentsObjId=qr();for(w=1;w<=Vr;w++)et.push(sn({number:w,data:Ot[w],objId:Me[w].objId,contentsObjId:Me[w].contentsObjId,mediaBox:Me[w].mediaBox,cropBox:Me[w].cropBox,bleedBox:Me[w].bleedBox,trimBox:Me[w].trimBox,artBox:Me[w].artBox,userUnit:Me[w].userUnit,rootDictionaryObjId:se,resourceDictionaryObjId:ht}));En(se,!0),G("<>"),G("endobj"),wr.publish("postPutPages")},is=function(w){wr.publish("putFont",{font:w,out:G,newObject:en,putStream:Or}),w.isAlreadyPutted!==!0&&(w.objectNumber=en(),G("<<"),G("/Type /Font"),G("/BaseFont /"+Df(w.postScriptName)),G("/Subtype /Type1"),typeof w.encoding=="string"&&G("/Encoding /"+w.encoding),G("/FirstChar 32"),G("/LastChar 255"),G(">>"),G("endobj"))},Ii=function(){for(var w in Ie)Ie.hasOwnProperty(w)&&(c===!1||c===!0&&h.hasOwnProperty(w))&&is(Ie[w])},EA=function(w){w.objectNumber=en();var D=[];D.push({key:"Type",value:"/XObject"}),D.push({key:"Subtype",value:"/Form"}),D.push({key:"BBox",value:"["+[b(w.x),b(w.y),b(w.x+w.width),b(w.y+w.height)].join(" ")+"]"}),D.push({key:"Matrix",value:"["+w.matrix.toString()+"]"});var et=w.pages[1].join(` -`);Or({data:et,additionalKeyValues:D,objectId:w.objectNumber}),G("endobj")},Sl=function(){for(var w in fn)fn.hasOwnProperty(w)&&EA(fn[w])},ld=function(w,D){var et,lt=[],Ct=1/(D-1);for(et=0;et<1;et+=Ct)lt.push(et);if(lt.push(1),w[0].offset!=0){var Rt={offset:0,color:w[0].color};w.unshift(Rt)}if(w[w.length-1].offset!=1){var jt={offset:1,color:w[w.length-1].color};w.push(jt)}for(var re="",Fe=0,ur=0;urw[Fe+1].offset;)Fe++;var Ke=w[Fe].offset,Tr=(et-Ke)/(w[Fe+1].offset-Ke),Ji=w[Fe].color,Wn=w[Fe+1].color;re+=q(Math.round((1-Tr)*Ji[0]+Tr*Wn[0]).toString(16))+q(Math.round((1-Tr)*Ji[1]+Tr*Wn[1]).toString(16))+q(Math.round((1-Tr)*Ji[2]+Tr*Wn[2]).toString(16))}return re.trim()},AE=function(w,D){D||(D=21);var et=en(),lt=ld(w.colors,D),Ct=[];Ct.push({key:"FunctionType",value:"0"}),Ct.push({key:"Domain",value:"[0.0 1.0]"}),Ct.push({key:"Size",value:"["+D+"]"}),Ct.push({key:"BitsPerSample",value:"8"}),Ct.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ct.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Or({data:lt,additionalKeyValues:Ct,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:et}),G("endobj"),w.objectNumber=en(),G("<< /ShadingType "+w.type),G("/ColorSpace /DeviceRGB");var Rt="/Coords ["+b(parseFloat(w.coords[0]))+" "+b(parseFloat(w.coords[1]))+" ";w.type===2?Rt+=b(parseFloat(w.coords[2]))+" "+b(parseFloat(w.coords[3])):Rt+=b(parseFloat(w.coords[2]))+" "+b(parseFloat(w.coords[3]))+" "+b(parseFloat(w.coords[4]))+" "+b(parseFloat(w.coords[5])),G(Rt+="]"),w.matrix&&G("/Matrix ["+w.matrix.toString()+"]"),G("/Function "+et+" 0 R"),G("/Extend [true true]"),G(">>"),G("endobj")},lE=function(w,D){var et=qr(),lt=en();D.push({resourcesOid:et,objectOid:lt}),w.objectNumber=lt;var Ct=[];Ct.push({key:"Type",value:"/Pattern"}),Ct.push({key:"PatternType",value:"1"}),Ct.push({key:"PaintType",value:"1"}),Ct.push({key:"TilingType",value:"1"}),Ct.push({key:"BBox",value:"["+w.boundingBox.map(b).join(" ")+"]"}),Ct.push({key:"XStep",value:b(w.xStep)}),Ct.push({key:"YStep",value:b(w.yStep)}),Ct.push({key:"Resources",value:et+" 0 R"}),w.matrix&&Ct.push({key:"Matrix",value:"["+w.matrix.toString()+"]"}),Or({data:w.stream,additionalKeyValues:Ct,objectId:w.objectNumber}),G("endobj")},Hh=function(w){var D;for(D in sr)sr.hasOwnProperty(D)&&(sr[D]instanceof Oc?AE(sr[D]):sr[D]instanceof Wf&&lE(sr[D],w))},Cy=function(w){for(var D in w.objectNumber=en(),G("<<"),w)switch(D){case"opacity":G("/ca "+M(w[D]));break;case"stroke-opacity":G("/CA "+M(w[D]))}G(">>"),G("endobj")},uE=function(){var w;for(w in Br)Br.hasOwnProperty(w)&&Cy(Br[w])},ud=function(){for(var w in G("/XObject <<"),fn)fn.hasOwnProperty(w)&&fn[w].objectNumber>=0&&G("/"+w+" "+fn[w].objectNumber+" 0 R");wr.publish("putXobjectDict"),G(">>")},cE=function(){ca.oid=en(),G("<<"),G("/Filter /Standard"),G("/V "+ca.v),G("/R "+ca.r),G("/U <"+ca.toHexString(ca.U)+">"),G("/O <"+ca.toHexString(ca.O)+">"),G("/P "+ca.P),G(">>"),G("endobj")},By=function(){for(var w in G("/Font <<"),Ie)Ie.hasOwnProperty(w)&&(c===!1||c===!0&&h.hasOwnProperty(w))&&G("/"+w+" "+Ie[w].objectNumber+" 0 R");G(">>")},hE=function(){if(Object.keys(sr).length>0){for(var w in G("/Shading <<"),sr)sr.hasOwnProperty(w)&&sr[w]instanceof Oc&&sr[w].objectNumber>=0&&G("/"+w+" "+sr[w].objectNumber+" 0 R");wr.publish("putShadingPatternDict"),G(">>")}},Gh=function(w){if(Object.keys(sr).length>0){for(var D in G("/Pattern <<"),sr)sr.hasOwnProperty(D)&&sr[D]instanceof f.TilingPattern&&sr[D].objectNumber>=0&&sr[D].objectNumber>")}},fE=function(){if(Object.keys(Br).length>0){var w;for(w in G("/ExtGState <<"),Br)Br.hasOwnProperty(w)&&Br[w].objectNumber>=0&&G("/"+w+" "+Br[w].objectNumber+" 0 R");wr.publish("putGStateDict"),G(">>")}},Xn=function(w){En(w.resourcesOid,!0),G("<<"),G("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),By(),hE(),Gh(w.objectOid),fE(),ud(),G(">>"),G("endobj")},Ty=function(){var w=[];Ii(),uE(),Sl(),Hh(w),wr.publish("putResources"),w.forEach(Xn),Xn({resourcesOid:ht,objectOid:Number.MAX_SAFE_INTEGER}),wr.publish("postPutResources")},Sy=function(){wr.publish("putAdditionalObjects");for(var w=0;w>8&&(Fe=!0);w=re.join("")}for(et=w.length;Fe===void 0&&et!==0;)w.charCodeAt(et-1)>>8&&(Fe=!0),et--;if(!Fe)return w;for(re=D.noBOM?[]:[254,255],et=0,lt=w.length;et>8)>>8)throw new Error("Character at position "+et+" of string '"+w+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");re.push(Ke),re.push(ur-(Ke<<8))}return String.fromCharCode.apply(void 0,re)},Ya=f.__private__.pdfEscape=f.pdfEscape=function(w,D){return kh(w,D).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},hd=f.__private__.beginPage=function(w){Ot[++Vr]=[],Me[Vr]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(w[0]),topRightY:Number(w[1])}},Iy(Vr),rt(Ot[$])},by=function(w,D){var et,lt,Ct;switch(t=D||t,typeof w=="string"&&(et=g(w.toLowerCase()),Array.isArray(et)&&(lt=et[0],Ct=et[1])),Array.isArray(w)&&(lt=w[0]*Kt,Ct=w[1]*Kt),isNaN(lt)&&(lt=i[0],Ct=i[1]),(lt>14400||Ct>14400)&&(ln.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),lt=Math.min(14400,lt),Ct=Math.min(14400,Ct)),i=[lt,Ct],t.substr(0,1)){case"l":Ct>lt&&(i=[Ct,lt]);break;case"p":lt>Ct&&(i=[Ct,lt])}hd(i),Ny(vd),G(os),yd!==0&&G(yd+" J"),md!==0&&G(md+" j"),wr.publish("addPage",{pageNumber:Vr})},dE=function(w){w>0&&w<=Vr&&(Ot.splice(w,1),Me.splice(w,1),Vr--,$>Vr&&($=Vr),this.setPage($))},Iy=function(w){w>0&&w<=Vr&&($=w)},vE=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return Ot.length-1},Fy=function(w,D,et){var lt,Ct=void 0;return et=et||{},w=w!==void 0?w:Ie[oe].fontName,D=D!==void 0?D:Ie[oe].fontStyle,lt=w.toLowerCase(),xe[lt]!==void 0&&xe[lt][D]!==void 0?Ct=xe[lt][D]:xe[w]!==void 0&&xe[w][D]!==void 0?Ct=xe[w][D]:et.disableWarning===!1&&ln.warn("Unable to look up font label for font '"+w+"', '"+D+"'. Refer to getFontList() for available fonts."),Ct||et.noFallback||(Ct=xe.times[D])==null&&(Ct=xe.times.normal),Ct},gE=f.__private__.putInfo=function(){var w=en(),D=function(lt){return lt};for(var et in u!==null&&(D=ca.encryptor(w,0)),G("<<"),G("/Producer ("+Ya(D("jsPDF "+Ue.version))+")"),Xt)Xt.hasOwnProperty(et)&&Xt[et]&&G("/"+et.substr(0,1).toUpperCase()+et.substr(1)+" ("+Ya(D(Xt[et]))+")");G("/CreationDate ("+Ya(D(X))+")"),G(">>"),G("endobj")},fd=f.__private__.putCatalog=function(w){var D=(w=w||{}).rootDictionaryObjId||se;switch(en(),G("<<"),G("/Type /Catalog"),G("/Pages "+D+" 0 R"),yt||(yt="fullwidth"),yt){case"fullwidth":G("/OpenAction [3 0 R /FitH null]");break;case"fullheight":G("/OpenAction [3 0 R /FitV null]");break;case"fullpage":G("/OpenAction [3 0 R /Fit]");break;case"original":G("/OpenAction [3 0 R /XYZ null null 1]");break;default:var et=""+yt;et.substr(et.length-1)==="%"&&(yt=parseInt(yt)/100),typeof yt=="number"&&G("/OpenAction [3 0 R /XYZ null null "+M(yt)+"]")}switch(Yt||(Yt="continuous"),Yt){case"continuous":G("/PageLayout /OneColumn");break;case"single":G("/PageLayout /SinglePage");break;case"two":case"twoleft":G("/PageLayout /TwoColumnLeft");break;case"tworight":G("/PageLayout /TwoColumnRight")}Mt&&G("/PageMode /"+Mt),wr.publish("putCatalog"),G(">>"),G("endobj")},yE=f.__private__.putTrailer=function(){G("trailer"),G("<<"),G("/Size "+(at+1)),G("/Root "+at+" 0 R"),G("/Info "+(at-1)+" 0 R"),u!==null&&G("/Encrypt "+ca.oid+" 0 R"),G("/ID [ <"+z+"> <"+z+"> ]"),G(">>")},mE=f.__private__.putHeader=function(){G("%PDF-"+p),G("%ºß¬à")},_E=f.__private__.putXRef=function(){var w="0000000000";G("xref"),G("0 "+(at+1)),G("0000000000 65535 f ");for(var D=1;D<=at;D++)typeof vt[D]=="function"?G((w+vt[D]()).slice(-10)+" 00000 n "):vt[D]!==void 0?G((w+vt[D]).slice(-10)+" 00000 n "):G("0000000000 00000 n ")},CA=f.__private__.buildDocument=function(){ut(),rt(wt),wr.publish("buildDocument"),mE(),Cn(),Sy(),Ty(),u!==null&&cE(),gE(),fd();var w=W;return _E(),yE(),G("startxref"),G(""+w),G("%%EOF"),rt(Ot[$]),wt.join(` -`)},$h=f.__private__.getBlob=function(w){return new Blob([bt(w)],{type:"application/pdf"})},Vh=f.output=f.__private__.output=as(function(w,D){switch(typeof(D=D||{})=="string"?D={filename:D}:D.filename=D.filename||"generated.pdf",w){case void 0:return CA();case"save":f.save(D.filename);break;case"arraybuffer":return bt(CA());case"blob":return $h(CA());case"bloburi":case"bloburl":if(He.URL!==void 0&&typeof He.URL.createObjectURL=="function")return He.URL&&He.URL.createObjectURL($h(CA()))||void 0;ln.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var et="",lt=CA();try{et=XS(lt)}catch{et=XS(unescape(encodeURIComponent(lt)))}return"data:application/pdf;filename="+D.filename+";base64,"+et;case"pdfobjectnewwindow":if(Object.prototype.toString.call(He)==="[object Window]"){var Ct=' - + +
    diff --git a/src/assets/green-train-solid.png b/src/assets/green-train-solid.png new file mode 100644 index 0000000000000000000000000000000000000000..f1c8a5433f66553238582ea0e1530e0b99281cc4 GIT binary patch literal 3417 zcmbVO30PBC7QXLgB?H%s57ne&G$|Ha`NtZ|NZ~-?mPFq zd+%=1;)Ui6dj*cWjOYowi-Ijdx{;dBoSn&2x_|QL8O#I+I&) zq0*vK#xWrJU-Tz>oM%mVxm{EYc2zs}_XYIbLxO5`zMsvcZoK-@Nvl-v{V}%cHI{NB zD_k5NSK{p&7G~H}^*6F1gZ&_C;^D;f+D+FbIPS8?yW!&Qxr+EXALTyfr@E1UhDl=%u7yf{cd?{ zjcax+_f(a~ma=Z1)yhUI7llY9G~3Xw_~FcciIebos^etw<3rzkTKpM#!5+#oRiJdd zD|%6w-rXM0})*QU|B=Q$cuj`{rC3f@B(Jylf z9+#Z#MGn2M>Dupf^b2=N0^>LTfvg3c2Po9dIm+2pm%I6k9SPrU2Wt=ui<}$ihN|Z^ zYIW`9>}KER&yg=aNz-iFc;g2+EmX;(g&|!i#wTFjs_y1TIUz{p;O3sdsc%3nB{hkMZo^)=WJNj>mcq<$hne z^xJbG65>i`V(sKJ@4~*bCqMtt?o73R<&q_cU;TKdyRu$7qoM_==MwZ890kfv2Qn^E zLF441+zcS$67@8W{10v>2zrJ7&dmbOFVORdjR05{GE@TyJvJINO~J{>Q7&XoW#fY+ zOj`}|9SQmZipT)uJWoPTfY@b1r z>JWX#v$u9Tf&k$_ac9UF=y_MBo}}t&c#-AZVK!R;GCuCwTzAfZv}_^&^*135b#JEO z{&}?cbVfu>HYiM?tQc=)TZRs9Hx{rv->u~$mjJVAlImNR>1ih%P+ zXHGqa)GE#8$>2ef_@DGqx(yMUy!_@cP16(E_5Eay0pSIccaRzQi9?$njgrJA?kyBL z!E70(;osTzpkxiDXOzTwz}SkQUFg)K1&tvjx56uWnka&>;HK>Y^ApJ*;yJ$>;fq4PUGpca{$u7{LYtxz%=O z`RkN2Tu&OQK#s165%^+0+ApadBGz)Z9Gs0T5z69WmJMUQV%dfZ(! zd%mv$0Vp81L@of*G9&MWE!M>Ai85CLa9%gkKywbFUIGyOjSRz!;POR&Gkdc~zEEK} zcw-}D;Lq8>Lt};$LHiDr4qi7u`sDPf=brv2VhW#cP3xU+%*xO~OTxjF_OF7_b9aoK zmdFo`QX?Wwy+wb23q`9MroKK_*uLWUhpsu9yzT_Wsj#7@%|B&|ZJJ|9;*7iM*<{e;3`K zaDHEwyn_7;!Sm|!k znrw$n_q_W(aRpOm&?dVU0sgMo)uC$v_yE@1e^{Av8Q-HF)F&W{QMk} zSUNc>`>`kxU||4JTpSHxIOd|f+)Mq})TV_TMMA45q6yGwT*!Ak&%Mg0Qp6#hKaTf zR`)hy69`satBL|bj3^mQw8t&Us^w!xXd*Jw=rxCMrgO63_8$la3(Qp*N?*Gb67eyK zQLbmdg*%b4uX^BE2tyN9M2C|3MoA`=1cCbn7AiWbSepcPVz{A#WL$384lgAPCt^TI zgAzHENT6g8N{G8XW~!-Z1-ovNB4QyotZ}j>=8uG6i1w8`#^S|&!!lE8o4O<=x_!WY zCCel3yKpmAV3SJnrLF|ni&)$^T_I%nmWo?-M}U1O$t>==4l;Zd;%7P~u*XS?X}-B} zB4Do6Hh4(vC@q?4ema-9rNI11U_+8*4yA>d#?x`*mI3n;ZT;tx6_gfy8dv8Lw*r{& z3#{+m$5%IjSc2COw-T6JP-z#EN?;7Jn0GU76)c)OhnCn zjBezx$fetTya=k6L)@DC9Nh?5pdFDCAY-uBAZE8y(4L(m^|@tYSGtPbQD7m>?cfk= zQoQ`yEv0ghalW=)9NBIQNza0E%VOi@w3dQiAywVbr(mks?M#+b;b6tay($ekF_J@# zloqCYmiSb=TPiYCk?+|4u5?i}s8#7{(n1GoNIMB>>)MPow=D6)_IZ%z3~2$!OtIla2kCzNem8^#XF8Fw5aZv#RmUIN-0s{)oq5rhGPLZymDt*CiKkVVTXC~+xF5`+MXScRg3 zM$4oA&?hQZRH6h(s?|_}eN`|m#L!~IEvS_s+nb5nTHimd$>H8}zjMBGZqAvxm*VKf z3r&q2jQ{|qkrAv<0e~a`zyP5Uh|T-rRRmD5J}fLcGAxXdxiKSYeQF{A%spT1nIF-P zIm_Z=!uOPjTv*N@EwlTNpk(gN53P@c9|V-lt$$gGbp`~0*tFz3Sy_ap%{4a|FJTHn9 zl~g%l0S^_^Q{dh4uILd9Djw;h&Lp^V;&8;%WJ7 zncpU~b=)vLEL{{7y+l?~~64B@d?E`?k{7AAWI;S9-s) z?g8{wfJC*|?ckXi2J4MR0=0Py`t}*n(s_q`8=3}!7Q5m;n<~VRnHjGOPHY$zH#c8u z%J1|U9fi(RZAFF*g%-bPAqz~BU(uy+_7aF;W<+c@(ZO5f9~8dVXAnIGSY99Eq-Pdn9SkgX8jEz0kh2WzFvpO7n3)IM z?d|lG^Pt2PNAwhXhgP?iV>-xd9{;OJzM3vEu@FDAvkC@D#j3=Xa>5Wp^&AP8n&Un0 z+!vmVJRrAkjcGYg7(S;i8EqpNa*M#!+Tfa$b?~BW4 zz;t0k@3vHm^?VL5mxYd6VRtCDTjL5&-QWMhEKG<0#BJ!yZ%8A`+>J~bNk-LlZmD|@ zVEak@sPOw9|D~87>M$?Jx zUjkyE8T)~{4fOgzQ~*7zvBaCw8o>*vP*Ce%Z{{R=Tn;kU4A3+PK(Rgth)AB z39_P#x4;N^Th4=g7klkOZt}4$p97>^-Z5^Ohp5AKS=j8aMh7qKVszN zE+EFWxhwQt=6s!%L@eEMH@{p8vI>dioz0ammkC*QFO`_Ab9#k%HVU3t)OgcgRdHQR z(1GlmuT6yYL3?Lywf|c$+S_mB|G%RoGECkLnFDVIlM%suUk5w*w5$5h#MwbdvtRD1 zds*hoU3Ra`tV9^x^I3&@N;jw4g;-v#ad^2*skS+B^n$j4tsAhGny*^k2&s8jdeBHP zr09=AF|8`Vm>9JI6taFTx!sGrP0ELx!a4#5exV^*A!x8JC!4CBZ_=DDXruS_05^uU znjY*M2Ak8@-AhwMwU6&V2es8f7QtM3C%CiQEjH1~ItaytMn|-**$3SCO|+C0la3kU zpawroV=X!!&)ljg0&S6N2W?obf*<`tDRjy6)1zGhlO`}80VCMp3SEG!06rC|Ibe!{ zi6-ba40UfBZG>QS5r86oF>`%7n+Zy3Cwl;->M>Q=B9e6FVZzl(Gz-P|J?zxq4z>t( z?Rm2Pb}*(g5=lC7I~c&_XT~o%V-{4-Z@T3p#NG3A=H(xV2qnrsr4whHw+MKZ5I2ob zIdOSnba;emjaR5|&BEOg$;U&-pI9)#1-FM+2!A7G+%PC%fEm)q`^dTRO2f5I0A1ZR z=%301@{8j&j%1RXx|;XM`8yrklAO=!*tX#2q! zNQTFMC$9pIQ3AuHjuV83PdR5mUJV>s0wk&P0pa0;SB1z$z%fuz6f2!+B;t8zRz=Ed zfuoP0ut%C|B!av-RZHc^fa6TTj#$|V!sDaps#y66;5b!K(Bs?O)2K8-X^3}fp@Blh z$@IFO6bnpEXf*G%Is=7>kyn-0I18sqaok}}Kb+!aLaW-;=z-JPFns@~M!T;Mwc6o4EmMSOYgpRHj3PQUis|CRkg^T|{7QC9d2U@$@VxXQ|9w zJgc|zJh&)Q(|heRqSgR*)DR_OSJMX`xJRvyH|NShD?7|?>6k>>|FGCtWX#M{nLeS( zh;UZHTH7t9WVm8i?p|>u5w1&W&Qd6?2}0BuM!mF@fKHRpY8wLjn1o^pXpi2@x2-4` zwnMzO6;l-ePV)M_GsD@{%|5W3*Oc1PB&TWGK+;EF61A748Zl@lUSGq)R#-mRo4+Dq zM<+DETjo)I3$t zI}eI#u|G-=)pS@%jxBQAj^{1`2_6L+sQ2=gF-l3rk>Yv9;ZFhai40%NIvL90{}20` Bk6r)( literal 0 HcmV?d00001 diff --git a/src/components/Map.vue b/src/components/Map.vue index 09dc85e..17aa0ec 100644 --- a/src/components/Map.vue +++ b/src/components/Map.vue @@ -39,9 +39,10 @@