diff --git a/dist/assets/index-166065d3.css b/dist/assets/index-166065d3.css new file mode 100644 index 0000000..c468d6b --- /dev/null +++ b/dist/assets/index-166065d3.css @@ -0,0 +1,5 @@ +.overlay-content[data-v-37987b9c]{width:1%}.trainMapIcon[data-v-37987b9c]{height:5.5vh;width:3.5vw}.slideLeft-enter-active[data-v-37987b9c],.slideLeft-leave-active[data-v-37987b9c]{transition:opacity .5s;transition:all .8s}.slideLeft-enter-from[data-v-37987b9c],.slideLeft-leave-to[data-v-37987b9c]{opacity:0;transform:translate(-100px)}@keyframes gradient-37987b9c{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}#sidebar[data-v-37987b9c]{position:absolute;height:85%;width:20%;left:2%;top:12%;z-index:2;text-align:center;animation:gradient-37987b9c 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-37987b9c]{position:relative;height:100%;width:100%;color:#fff}#sidebarHeader[data-v-37987b9c]{position:relative;top:0%;height:10%;width:100%;overflow:hidden}#headerImage[data-v-37987b9c]{height:100%;width:auto;overflow:hidden}#xButton[data-v-37987b9c]{font-size:80%;font-family:Georgia;color:#fff;position:absolute;top:10px;right:10px}#xButton[data-v-37987b9c]:hover{color:red}#sidebarFooter[data-v-37987b9c]{position:relative;bottom:0%;height:10%;text-align:center;color:azure}#sidebarMain[data-v-37987b9c]{position:relative;height:80%;width:100%;overflow:hidden}#sidebarContent[data-v-37987b9c]{position:relative;size:6px;color:#fff;overflow-wrap:break-word;font-family:Georgia,Times New Roman,Times,serif}#mapDiv[data-v-37987b9c]{background-color:#000;position:absolute;float:right;right:0%;top:0%;width:100%;overflow:hidden;height:100%}#mapIFrame[data-v-37987b9c]{position:relative;height:100%;width:100%;top:0%;z-index:0}#buttonDiv[data-v-37987b9c]{position:absolute;float:right;right:10%;top:0%;width:10%;height:10px}#buttonElement[data-v-37987b9c]{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) +*/.ol-ctx-menu-container{position:absolute;padding:8px;background:#fff;color:#222;font-size:13px;border-radius:5px;box-shadow:#0003 3px 3px 5px;box-sizing:border-box}.ol-ctx-menu-container div,.ol-ctx-menu-container span,.ol-ctx-menu-container a,.ol-ctx-menu-container img,.ol-ctx-menu-container ul,.ol-ctx-menu-container li{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline}.ol-ctx-menu-container a img{border:none}.ol-ctx-menu-container *,.ol-ctx-menu-container *:before,.ol-ctx-menu-container *:after{box-sizing:inherit}.ol-ctx-menu-container.ol-ctx-menu-hidden{opacity:0;visibility:hidden;transition:visibility 0s linear .3s,opacity .3s}.ol-ctx-menu-container ul{list-style:none}.ol-ctx-menu-container li{position:relative;line-height:20px;padding:2px 5px}.ol-ctx-menu-container li:not(.ol-ctx-menu-separator):hover{cursor:pointer;background-color:#333;color:#eee}.ol-ctx-menu-container li.ol-ctx-menu-submenu .ol-ctx-menu-container{border:1px solid #eee;padding:8px;top:0;opacity:0;visibility:hidden;transition:visibility 0s linear .3s,opacity .3s}.ol-ctx-menu-container li.ol-ctx-menu-submenu:hover .ol-ctx-menu-container{opacity:1;visibility:visible;transition-delay:0s}.ol-ctx-menu-container li.ol-ctx-menu-submenu:after{position:absolute;top:7px;right:10px;content:"";display:inline-block;width:.6em;height:.6em;border-right:.3em solid #222;border-top:.3em solid #222;transform:rotate(45deg)}.ol-ctx-menu-container li.ol-ctx-menu-submenu:hover:after{border-color:#eee}.ol-ctx-menu-container li.ol-ctx-menu-separator{padding:0}.ol-ctx-menu-container li.ol-ctx-menu-separator hr{border:0;height:1px;background-image:linear-gradient(to left,rgba(0,0,0,0),rgba(0,0,0,.75),rgba(0,0,0,0))}.ol-ctx-menu-icon{text-indent:20px;background-size:20px auto;background-repeat:no-repeat;background-position:left center}.ol-ctx-menu-zoom-in{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABaUlEQVQ4T72U7VHCQBCGn90GtAMuNGCswFiBWIFQgWMFxg6wArECsQKhArEBiB1Qwa1zgQn5IAYcxv13k71n3919L8KJQ07M47+BzgG9TRfZ/JBuWhS6BJFHRJICYrZGZIz3z5Ct2+B7gG6I6kt+wewdkQVwjtkAkR5mC8yu26A1oItR/cTsOweQBdgutD8G7jGm2PJ2n8oqUKIpIjd4HxTM8gvaT/F+AlmWnyWaIXKF95eNguFzTYFhNsdWu9kFgFlaFMANUH3D8wDLoLgSTSD2il8NCe2ZXQBxWDGwxmyUzzOMBZ7wy7Qb2K0wQfXjMOBuhlFpZtNty5sFaTQBuTusZdymeqs1SpYKcO9HkE3KbTd9WFijMHJQ5hBNEAYNq5Qd0dhyke0GiE4QzjqfW23mHT8Hl4DG4Lce3FPE7AtbBSdsbNqpoJLgYkRnNeUV+xwJDHTnUEkxHGbhBXUs5TjJjew/KPy94g+NRaIVRYmMXwAAAABJRU5ErkJggg==)}.ol-ctx-menu-container li:hover.ol-ctx-menu-zoom-in{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABc0lEQVQ4T71U21ECQRDsJgGdvQDECMQIxAjECMQILCPwzAAjECIQI0AiEDPQAPaWCBhrcKHuCUcV5f7dY3v6tUscefHIePhfwBBCF8CZqRCReRs1tQxDCH1VfQLQz4EsSY4AvIjIsgm8AhhCGKrqa9zwrqoLAKckB5HtguR1E2gBMITQU9VPAD8GICIGtl3e+xHJBwBT59xtHcsCYJZlUwA3kcGHbfDep51OZywi3/acZZm9vyJ5WR5o38uACmDunNt6ZwAkUxFZDwghDFT1jeSjiJinhVUBVNVJkiTDKO8CQA+AsbNQ7s1Ps0VVn5MkSfcCtmBoDZi1Bdx4eJ7zbBolrwPy3o9J3rWSHPs3A1BbjVKlYBaIyDgvu9LDXDU2RTZmXVW1oKyLxRD+OrkOrJLy5mVM0iaftDhuhVbsvBzMglzKUNW6IV/OOWtCM8MmVvEkmbwt83LaB19fdgOtVquUZJeknaDdobTwbOcvBzPcN/AXH1DFFWP7u9oAAAAASUVORK5CYII=)}.ol-ctx-menu-zoom-out{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABU0lEQVQ4T72U7VECMRRFz3sNaAdkacC1AtcKxApcKnCsQOwAK3CtQKxAqEBsANYOqCDPyTIC+8WCw5jfybn33dxEOPGSE/P4b6BzQG89RT47ZJoWhy5B5BGRZAMxWyEyxvtnyFdt8AagS1F9KQ6YvSMyB84xGyDSw2yO2XUbtAJ0MaqfmH0XAPIA2y7tj4F7jAm2uG1yWQZKNEHkBu+Dg2njWBJNEbnC+8uaIFRuWfuG2QxbbrOrUd0A1Tc8D7AIjkur7DAAsVf8MiWMZ3ZR2m02LPIMscATfjHqBnY7TFD9OAy4zTCCPG/MUKMM5O6wkXFr9dZq7FQqqHk/hDzbFa73cFONTZFDdRyiCcKg5rrSiLaXkiI6RjjrfG6VzDs+B5eAxuDXeYpmNRGzL2wZ/wof+du4GNFpBVqqz5HA4MM5VEYYDrOs+1I6Q9u/4Q8O9wN/AGgWjBVqQjjgAAAAAElFTkSuQmCC)}.ol-ctx-menu-container li:hover.ol-ctx-menu-zoom-out{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABYklEQVQ4T72U4VHCQBCF36tA91KAWIFYgViBWIFYgWMFYgdYgVCBWAFSgdiBFpAsFWSdxcDkQoBkhnF/ZjbfvX377ogjF4/Mw/8CVbUD4MynEJF5k2lqFapqz8yeAPRKkCXJEYAXEVnugm8BVXVgZq/FD+9mtgBwSrJfqF2QvN4FjYCq2jWzTwA/DhARh20qTdMRyQcA0xDCbZ3KCJhl2RTATaHgo+6HLMv8+xXJy+qB3l8FGoB5CKHsXcRV1b6ZvZF8FBH3NKotoJlNkiQZFONdlLtJ3rufbouZPSdJMjwIbKDQEzBrClx7eC4i33Uepmk6JnnXaOQifzMAtdGoRApugYiMI1uqKkrRWAfZo9MxM1+UZzFewl8mN4nYdVM83L7BkwbXLUrF3sfBLQDQBbDy08x8vOohXyEE71lVq9emuEk+3gZa3XYroCvwFyjP8yHJDsnxwaU08GxvS2uFhw78BbzWrxXgMbsHAAAAAElFTkSuQmCC)}.ol-zoomslider{top:7.5em;left:.5em;height:240px;border:2px solid rgba(0,60,136,.5)}.ol-overviewmap{left:3.5em;bottom:2.5em}.ol-mouse-position{top:0;left:50%;transform:translate(-50%);width:70%;position:absolute;text-align:center}.ol-rotate{top:.5em;right:2.5em;transition:opacity .25s linear,visibility 0s linear}.ol-layerswitcher-image li.ol-layer-hidden{opacity:1!important}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:block;opacity:0}.ol-collapsed,.ol-collapsed:hover{background-color:#fff0}.ol-control.ol-mapzone{top:12.5em!important}.ol-control.ol-mapzone button{margin-top:0!important}.ol-layerswitcher-image button{background-color:transparent!important}.ol-mapzone>div p{background-color:#000!important}.vl-shown{overflow:hidden}.vl-overlay{bottom:0;left:0;position:absolute;right:0;top:0;align-items:center;display:none;justify-content:center;overflow:hidden;z-index:9999}.vl-overlay.vl-active{display:flex}.vl-overlay.vl-full-page{z-index:9999;position:fixed}.vl-overlay .vl-background{bottom:0;left:0;position:absolute;right:0;top:0;background:#fff;opacity:.5}.vl-overlay .vl-icon,.vl-parent{position:relative} diff --git a/dist/assets/index-41469311.js b/dist/assets/index-41469311.js new file mode 100644 index 0000000..eaba223 --- /dev/null +++ b/dist/assets/index-41469311.js @@ -0,0 +1,569 @@ +var j9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var HOt=j9(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 L1(r,e){const t=Object.create(null),n=r.split(",");for(let i=0;i!!t[i.toLowerCase()]:i=>!!t[i]}const V9="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",K9=L1(V9);function Pg(r){if(Ee(r)){const e={};for(let t=0;t{if(t){const n=t.split(X9);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Ug(r){let e="";if(Un(r))e=r;else if(Ee(r))for(let t=0;tRu(t,e))}const ou=r=>Un(r)?r:r==null?"":Ee(r)||pn(r)&&(r.toString===H2||!Ke(r.toString))?JSON.stringify(r,Q2,2):String(r),Q2=(r,e)=>e&&e.__v_isRef?Q2(r,e.value):ip(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[n,i])=>(t[`${n} =>`]=i,t),{})}:Bh(e)?{[`Set(${e.size})`]:[...e.values()]}:pn(e)&&!Ee(e)&&!G2(e)?String(e):e,on={},np=[],Ss=()=>{},e$=()=>!1,r$=/^on[^a-z]/,Dg=r=>r$.test(r),eF=r=>r.startsWith("onUpdate:"),zn=Object.assign,rF=(r,e)=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)},n$=Object.prototype.hasOwnProperty,Fr=(r,e)=>n$.call(r,e),Ee=Array.isArray,ip=r=>Qg(r)==="[object Map]",Bh=r=>Qg(r)==="[object Set]",WO=r=>Qg(r)==="[object Date]",Ke=r=>typeof r=="function",Un=r=>typeof r=="string",rg=r=>typeof r=="symbol",pn=r=>r!==null&&typeof r=="object",nF=r=>pn(r)&&Ke(r.then)&&Ke(r.catch),H2=Object.prototype.toString,Qg=r=>H2.call(r),i$=r=>Qg(r).slice(8,-1),G2=r=>Qg(r)==="[object Object]",iF=r=>Un(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,Ov=L1(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),R1=r=>{const e=Object.create(null);return t=>e[t]||(e[t]=r(t))},a$=/-(\w)/g,lo=R1(r=>r.replace(a$,(e,t)=>t?t.toUpperCase():"")),o$=/\B([A-Z])/g,Zo=R1(r=>r.replace(o$,"-$1").toLowerCase()),Hg=R1(r=>r.charAt(0).toUpperCase()+r.slice(1)),Rv=R1(r=>r?`on${Hg(r)}`:""),wp=(r,e)=>!Object.is(r,e),ap=(r,e)=>{for(let t=0;t{Object.defineProperty(r,e,{configurable:!0,enumerable:!1,value:t})},hl=r=>{const e=parseFloat(r);return isNaN(e)?r:e};let qO;const s$=()=>qO||(qO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Fo;class aF{constructor(e=!1){this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Fo,!e&&Fo&&(this.index=(Fo.scopes||(Fo.scopes=[])).push(this)-1)}run(e){if(this.active){const t=Fo;try{return Fo=this,e()}finally{Fo=t}}}on(){Fo=this}off(){Fo=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},$2=r=>(r.w&Mu)>0,j2=r=>(r.n&Mu)>0,c$=({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":Ee(r)?iF(t)&&s.push(o.get("length")):(s.push(o.get(zc)),ip(r)&&s.push(o.get(xT)));break;case"delete":Ee(r)||(s.push(o.get(zc)),ip(r)&&s.push(o.get(xT)));break;case"set":ip(r)&&s.push(o.get(zc));break}if(s.length===1)s[0]&&ST(s[0]);else{const A=[];for(const l of s)l&&A.push(...l);ST(oF(A))}}function ST(r,e){const t=Ee(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!==Bs||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}const d$=L1("__proto__,__v_isRef,__isVue"),z2=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(rg)),v$=M1(),g$=M1(!1,!0),y$=M1(!0),m$=M1(!0,!0),tR=_$();function _$(){const r={};return["includes","indexOf","lastIndexOf"].forEach(e=>{r[e]=function(...t){const n=Rr(this);for(let a=0,o=this.length;a{r[e]=function(...t){Gp();const n=Rr(this)[e].apply(this,t);return kp(),n}}),r}function M1(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?tD:J2:e?Z2:q2).get(n))return n;const o=Ee(n);if(!r&&o&&Fr(tR,i))return Reflect.get(tR,i,a);const s=Reflect.get(n,i,a);return(rg(i)?z2.has(i):d$(i))||(r||Po(n,"get",i),e)?s:Zi(s)?o&&iF(i)?s:s.value:pn(s)?r?AF(s):kg(s):s}}const w$=X2(),E$=X2(!0);function X2(r=!1){return function(t,n,i,a){let o=t[n];if(Ah(o)&&Zi(o)&&!Zi(i))return!1;if(!r&&(!ng(i)&&!Ah(i)&&(o=Rr(o),i=Rr(i)),!Ee(t)&&Zi(o)&&!Zi(i)))return o.value=i,!0;const s=Ee(t)&&iF(n)?Number(n)r,N1=r=>Reflect.getPrototypeOf(r);function fm(r,e,t=!1,n=!1){r=r.__v_raw;const i=Rr(r),a=Rr(e);t||(e!==a&&Po(i,"get",e),Po(i,"get",a));const{has:o}=N1(i),s=n?sF:t?cF:ig;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 pm(r,e=!1){const t=this.__v_raw,n=Rr(t),i=Rr(r);return e||(r!==i&&Po(n,"has",r),Po(n,"has",i)),r===i?t.has(r):t.has(r)||t.has(i)}function dm(r,e=!1){return r=r.__v_raw,!e&&Po(Rr(r),"iterate",zc),Reflect.get(r,"size",r)}function eR(r){r=Rr(r);const e=Rr(this);return N1(e).has.call(e,r)||(e.add(r),fl(e,"add",r,r)),this}function rR(r,e){e=Rr(e);const t=Rr(this),{has:n,get:i}=N1(t);let a=n.call(t,r);a||(r=Rr(r),a=n.call(t,r));const o=i.call(t,r);return t.set(r,e),a?wp(e,o)&&fl(t,"set",r,e):fl(t,"add",r,e),this}function nR(r){const e=Rr(this),{has:t,get:n}=N1(e);let i=t.call(e,r);i||(r=Rr(r),i=t.call(e,r)),n&&n.call(e,r);const a=e.delete(r);return i&&fl(e,"delete",r,void 0),a}function iR(){const r=Rr(this),e=r.size!==0,t=r.clear();return e&&fl(r,"clear",void 0,void 0),t}function vm(r,e){return function(n,i){const a=this,o=a.__v_raw,s=Rr(o),A=e?sF:r?cF:ig;return!r&&Po(s,"iterate",zc),o.forEach((l,u)=>n.call(i,A(l),A(u),a))}}function gm(r,e,t){return function(...n){const i=this.__v_raw,a=Rr(i),o=ip(a),s=r==="entries"||r===Symbol.iterator&&o,A=r==="keys"&&o,l=i[r](...n),u=t?sF:e?cF:ig;return!e&&Po(a,"iterate",A?xT:zc),{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 Xl(r){return function(...e){return r==="delete"?!1:this}}function b$(){const r={get(a){return fm(this,a)},get size(){return dm(this)},has:pm,add:eR,set:rR,delete:nR,clear:iR,forEach:vm(!1,!1)},e={get(a){return fm(this,a,!1,!0)},get size(){return dm(this)},has:pm,add:eR,set:rR,delete:nR,clear:iR,forEach:vm(!1,!0)},t={get(a){return fm(this,a,!0)},get size(){return dm(this,!0)},has(a){return pm.call(this,a,!0)},add:Xl("add"),set:Xl("set"),delete:Xl("delete"),clear:Xl("clear"),forEach:vm(!0,!1)},n={get(a){return fm(this,a,!0,!0)},get size(){return dm(this,!0)},has(a){return pm.call(this,a,!0)},add:Xl("add"),set:Xl("set"),delete:Xl("delete"),clear:Xl("clear"),forEach:vm(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{r[a]=gm(a,!1,!1),t[a]=gm(a,!0,!1),e[a]=gm(a,!1,!0),n[a]=gm(a,!0,!0)}),[r,t,e,n]}const[F$,I$,L$,O$]=b$();function P1(r,e){const t=e?r?O$:L$:r?I$:F$;return(n,i,a)=>i==="__v_isReactive"?!r:i==="__v_isReadonly"?r:i==="__v_raw"?n:Reflect.get(Fr(t,i)&&i in n?t:n,i,a)}const R$={get:P1(!1,!1)},M$={get:P1(!1,!0)},N$={get:P1(!0,!1)},P$={get:P1(!0,!0)},q2=new WeakMap,Z2=new WeakMap,J2=new WeakMap,tD=new WeakMap;function U$(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function D$(r){return r.__v_skip||!Object.isExtensible(r)?0:U$(i$(r))}function kg(r){return Ah(r)?r:U1(r,!1,Y2,R$,q2)}function eD(r){return U1(r,!1,x$,M$,Z2)}function AF(r){return U1(r,!0,W2,N$,J2)}function Q$(r){return U1(r,!0,S$,P$,tD)}function U1(r,e,t,n,i){if(!pn(r)||r.__v_raw&&!(e&&r.__v_isReactive))return r;const a=i.get(r);if(a)return a;const o=D$(r);if(o===0)return r;const s=new Proxy(r,o===2?n:t);return i.set(r,s),s}function Xc(r){return Ah(r)?Xc(r.__v_raw):!!(r&&r.__v_isReactive)}function Ah(r){return!!(r&&r.__v_isReadonly)}function ng(r){return!!(r&&r.__v_isShallow)}function lF(r){return Xc(r)||Ah(r)}function Rr(r){const e=r&&r.__v_raw;return e?Rr(e):r}function uF(r){return f_(r,"__v_skip",!0),r}const ig=r=>pn(r)?kg(r):r,cF=r=>pn(r)?AF(r):r;function hF(r){Tu&&Bs&&(r=Rr(r),K2(r.dep||(r.dep=oF())))}function D1(r,e){r=Rr(r),r.dep&&ST(r.dep)}function Zi(r){return!!(r&&r.__v_isRef===!0)}function kn(r){return rD(r,!1)}function H$(r){return rD(r,!0)}function rD(r,e){return Zi(r)?r:new G$(r,e)}class G${constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Rr(e),this._value=t?e:ig(e)}get value(){return hF(this),this._value}set value(e){const t=this.__v_isShallow||ng(e)||Ah(e);e=t?e:Rr(e),wp(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:ig(e),D1(this))}}function k$(r){D1(r)}function nD(r){return Zi(r)?r.value:r}const $$={get:(r,e,t)=>nD(Reflect.get(r,e,t)),set:(r,e,t,n)=>{const i=r[e];return Zi(i)&&!Zi(t)?(i.value=t,!0):Reflect.set(r,e,t,n)}};function fF(r){return Xc(r)?r:new Proxy(r,$$)}class j${constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e(()=>hF(this),()=>D1(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function V$(r){return new j$(r)}function Nu(r){const e=Ee(r)?new Array(r.length):{};for(const t in r)e[t]=iD(r,t);return e}class K${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 iD(r,e,t){const n=r[e];return Zi(n)?n:new K$(r,e,t)}var aD;class z${constructor(e,t,n,i){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[aD]=!1,this._dirty=!0,this.effect=new Gg(e,()=>{this._dirty||(this._dirty=!0,D1(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=Rr(this);return hF(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}aD="__v_isReadonly";function X$(r,e,t=!1){let n,i;const a=Ke(r);return a?(n=r,i=Ss):(n=r.get,i=r.set),new z$(n,i,a||!i,t)}function Y$(r,...e){}function rl(r,e,t,n){let i;try{i=n?r(...n):r()}catch(a){Th(a,e,t)}return i}function No(r,e,t,n){if(Ke(r)){const a=rl(r,e,t,n);return a&&nF(a)&&a.catch(o=>{Th(o,e,t)}),a}const i=[];for(let a=0;a>>1;og(Ba[n])Ys&&Ba.splice(e,1)}function vF(r){Ee(r)?op.push(...r):(!XA||!XA.includes(r,r.allowRecurse?Mc+1:Mc))&&op.push(r),sD()}function aR(r,e=ag?Ys+1:0){for(;eog(t)-og(n)),Mc=0;Mcr.id==null?1/0:r.id,J$=(r,e)=>{const t=og(r)-og(e);if(t===0){if(r.pre&&!e.pre)return-1;if(e.pre&&!r.pre)return 1}return t};function AD(r){bT=!1,ag=!0,Ba.sort(J$);const e=Ss;try{for(Ys=0;YsRf.emit(i,...a)),ym=[]):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=>{lD(a,e)}),setTimeout(()=>{Rf||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ym=[])},3e3)):ym=[]}function tj(r,e,...t){if(r.isUnmounted)return;const n=r.vnode.props||on;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]||on;h&&(i=t.map(f=>Un(f)?f.trim():f)),c&&(i=t.map(hl))}let s,A=n[s=Rv(e)]||n[s=Rv(lo(e))];!A&&a&&(A=n[s=Rv(Zo(e))]),A&&No(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,No(l,r,6,i)}}function uD(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(!Ke(r)){const A=l=>{const u=uD(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?(pn(r)&&n.set(r,null),null):(Ee(a)?a.forEach(A=>o[A]=null):zn(o,a),pn(r)&&n.set(r,o),o)}function H1(r,e){return!r||!Dg(e)?!1:(e=e.slice(2).replace(/Once$/,""),Fr(r,e[0].toLowerCase()+e.slice(1))||Fr(r,Zo(e))||Fr(r,e))}let oa=null,G1=null;function sg(r){const e=oa;return oa=r,G1=r&&r.type.__scopeId||null,e}function cD(r){G1=r}function hD(){G1=null}const ej=r=>Qc;function Qc(r,e=oa,t){if(!e||r._n)return r;const n=(...i)=>{n._d&&NT(-1);const a=sg(e);let o;try{o=r(...i)}finally{sg(a),n._d&&NT(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function N0(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 _=sg(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:nj(A)}}catch(B){Pv.length=0,Th(B,r,1),m=Zr(xa)}let E=m;if(g&&v!==!1){const B=Object.keys(g),{shapeFlag:L}=E;B.length&&L&7&&(o&&B.some(eF)&&(g=ij(g,o)),E=uA(E,g))}return t.dirs&&(E=uA(E),E.dirs=E.dirs?E.dirs.concat(t.dirs):t.dirs),t.transition&&(E.transition=t.transition),m=E,sg(_),m}function rj(r){let e;for(let t=0;t{let e;for(const t in r)(t==="class"||t==="style"||Dg(t))&&((e||(e={}))[t]=r[t]);return e},ij=(r,e)=>{const t={};for(const n in r)(!eF(n)||!(n.slice(9)in e))&&(t[n]=r[n]);return t};function aj(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?oR(n,o,l):!!o;if(A&8){const u=e.dynamicProps;for(let c=0;cr.__isSuspense,oj={name:"Suspense",__isSuspense:!0,process(r,e,t,n,i,a,o,s,A,l){r==null?Aj(e,t,n,i,a,o,s,A,l):lj(r,e,t,n,i,o,s,A,l)},hydrate:uj,create:yF,normalize:cj},sj=oj;function Ag(r,e){const t=r.props&&r.props[e];Ke(t)&&t()}function Aj(r,e,t,n,i,a,o,s,A){const{p:l,o:{createElement:u}}=A,c=u("div"),h=r.suspense=yF(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),sp(h,r.ssFallback)):h.resolve()}function lj(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,Ws(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),sp(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),sp(c,f))):p&&Ws(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&&Ws(h,p))A(p,h,t,n,i,c,a,o,s),sp(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 yF(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=hl(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:F,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,F,_,!0)),N||h(O,M,P,0)}sp(_,O),_.pendingBranch=null,_.isInFallback=!1;let S=_.parent,x=!1;for(;S;){if(S.pendingBranch){S.effects.push(...T),x=!0;break}S=S.parent}x||vF(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 F=p(L),M=()=>{_.isInFallback&&(c(null,E,b,F,O,null,T,s,A),sp(_,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(b=>{Th(b,E,0)}).then(b=>{if(E.isUnmounted||_.isUnmounted||_.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:T}=E;PT(E,b,!1),O&&(T.el=O);const F=!O&&E.subTree.el;B(E,T,v(O||E.subTree.el),O?null:p(E.subTree),_,o,A),F&&m(F),gF(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 uj(r,e,t,n,i,a,o,s,A){const l=e.suspense=yF(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 cj(r){const{shapeFlag:e,children:t}=r,n=e&32;r.ssContent=sR(n?t.default:t),r.ssFallback=n?sR(t.fallback):Zr(xa)}function sR(r){let e;if(Ke(r)){const t=ch&&r._c;t&&(r._d=!1,fn()),r=r(),t&&(r._d=!0,e=Ao,kD())}return Ee(r)&&(r=rj(r)),r=Io(r),e&&!r.dynamicChildren&&(r.dynamicChildren=e.filter(t=>t!==r)),r}function pD(r,e){e&&e.pendingBranch?Ee(r)?e.effects.push(...r):e.effects.push(r):vF(r)}function sp(r,e){r.activeBranch=e;const{vnode:t,parentComponent:n}=r,i=t.el=e.el;n&&n.subTree===t&&(n.vnode.el=i,gF(n,i))}function Pr(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 Be(r,e,t=!1){const n=Pi||oa;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&&Ke(e)?e.call(n.proxy):e}}function dD(r,e){return $g(r,null,e)}function vD(r,e){return $g(r,null,{flush:"post"})}function hj(r,e){return $g(r,null,{flush:"sync"})}const mm={};function fe(r,e,t){return $g(r,e,t)}function $g(r,e,{immediate:t,deep:n,flush:i,onTrack:a,onTrigger:o}=on){const s=Pi;let A,l=!1,u=!1;if(Zi(r)?(A=()=>r.value,l=ng(r)):Xc(r)?(A=()=>r,n=!0):Ee(r)?(u=!0,l=r.some(E=>Xc(E)||ng(E)),A=()=>r.map(E=>{if(Zi(E))return E.value;if(Xc(E))return Hc(E);if(Ke(E))return rl(E,s,2)})):Ke(r)?e?A=()=>rl(r,s,2):A=()=>{if(!(s&&s.isUnmounted))return c&&c(),No(r,s,3,[h])}:A=Ss,e&&n){const E=A;A=()=>Hc(E())}let c,h=E=>{c=g.onStop=()=>{rl(E,s,4)}},f;if(Cp)if(h=Ss,e?t&&No(e,s,3,[A(),u?[]:void 0,h]):A(),i==="sync"){const E=eQ();f=E.__watcherHandles||(E.__watcherHandles=[])}else return Ss;let p=u?new Array(r.length).fill(mm):mm;const v=()=>{if(g.active)if(e){const E=g.run();(n||l||(u?E.some((B,L)=>wp(B,p[L])):wp(E,p)))&&(c&&c(),No(e,s,3,[E,p===mm?void 0:u&&p[0]===mm?[]:p,h]),p=E)}else g.run()};v.allowRecurse=!!e;let m;i==="sync"?m=v:i==="post"?m=()=>na(v,s&&s.suspense):(v.pre=!0,s&&(v.id=s.uid),m=()=>Q1(v));const g=new Gg(A,m);e?t?v():p=g.run():i==="post"?na(g.run.bind(g),s&&s.suspense):g.run();const _=()=>{g.stop(),s&&s.scope&&rF(s.scope.effects,g)};return f&&f.push(_),_}function fj(r,e,t){const n=this.proxy,i=Un(r)?r.includes(".")?gD(n,r):()=>n[r]:r.bind(n,n);let a;Ke(e)?a=e:(a=e.handler,t=e);const o=Pi;Uu(this);const s=$g(i,a.bind(n),t);return o?Uu(o):xu(),s}function gD(r,e){const t=e.split(".");return()=>{let n=r;for(let i=0;i{Hc(t,e)});else if(G2(r))for(const t in r)Hc(r[t],e);return r}function mF(){const r={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Je(()=>{r.isMounted=!0}),V1(()=>{r.isUnmounting=!0}),r}const Ko=[Function,Array],pj={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ko,onEnter:Ko,onAfterEnter:Ko,onEnterCancelled:Ko,onBeforeLeave:Ko,onLeave:Ko,onAfterLeave:Ko,onLeaveCancelled:Ko,onBeforeAppear:Ko,onAppear:Ko,onAfterAppear:Ko,onAppearCancelled:Ko},setup(r,{slots:e}){const t=Ju(),n=mF();let i;return()=>{const a=e.default&&k1(e.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const v of a)if(v.type!==xa){o=v;break}}const s=Rr(r),{mode:A}=s;if(n.isLeaving)return AC(o);const l=AR(o);if(!l)return AC(o);const u=Ep(l,s,n,t);lh(l,u);const c=t.subTree,h=c&&AR(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!==xa&&(!Ws(l,h)||f)){const v=Ep(h,s,n,t);if(lh(h,v),A==="out-in")return n.isLeaving=!0,v.afterLeave=()=>{n.isLeaving=!1,t.update.active!==!1&&t.update()},AC(o);A==="in-out"&&l.type!==xa&&(v.delayLeave=(m,g,_)=>{const E=yD(n,h);E[String(h.key)]=h,m._leaveCb=()=>{g(),m._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=_})}return o}}},_F=pj;function yD(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 Ep(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=yD(t,r),L=(T,F)=>{T&&No(T,n,9,F)},O=(T,F)=>{const M=F[1];L(T,F),Ee(T)?T.every(S=>S.length<=1)&&M():T.length<=1&&M()},b={mode:a,persisted:o,beforeEnter(T){let F=s;if(!t.isMounted)if(i)F=v||s;else return;T._leaveCb&&T._leaveCb(!0);const M=B[E];M&&Ws(r,M)&&M.el._leaveCb&&M.el._leaveCb(),L(F,[T])},enter(T){let F=A,M=l,S=u;if(!t.isMounted)if(i)F=m||A,M=g||l,S=_||u;else return;let x=!1;const N=T._enterCb=P=>{x||(x=!0,P?L(S,[T]):L(M,[T]),b.delayedLeave&&b.delayedLeave(),T._enterCb=void 0)};F?O(F,[T,N]):N()},leave(T,F){const M=String(r.key);if(T._enterCb&&T._enterCb(!0),t.isUnmounting)return F();L(c,[T]);let S=!1;const x=T._leaveCb=N=>{S||(S=!0,F(),N?L(p,[T]):L(f,[T]),T._leaveCb=void 0,B[M]===r&&delete B[M])};B[M]=r,h?O(h,[T,x]):x()},clone(T){return Ep(T,e,t,n)}};return b}function AC(r){if(jg(r))return r=uA(r),r.children=null,r}function AR(r){return jg(r)?r.children?r.children[0]:void 0:r}function lh(r,e){r.shapeFlag&6&&r.component?lh(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 k1(r,e=!1,t){let n=[],i=0;for(let a=0;a1)for(let a=0;a!!r.type.__asyncLoader;function dj(r){Ke(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 wF({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return l},setup(){const f=Pi;if(l)return()=>lC(l,f);const p=_=>{A=null,Th(_,f,13,!n)};if(o&&f.suspense||Cp)return h().then(_=>()=>lC(_,f)).catch(_=>(p(_),()=>n?Zr(n,{error:_}):null));const v=kn(!1),m=kn(),g=kn(!!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&&jg(f.parent.vnode)&&Q1(f.parent.update)}).catch(_=>{p(_),m.value=_}),()=>{if(v.value&&l)return lC(l,f);if(m.value&&n)return Zr(n,{error:m.value});if(t&&!g.value)return Zr(t)}}})}function lC(r,e){const{ref:t,props:n,children:i,ce:a}=e.vnode,o=Zr(r,n,i);return o.ref=t,o.ce=a,delete e.vnode.ce,o}const jg=r=>r.type.__isKeepAlive,vj={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(r,{slots:e}){const t=Ju(),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),na(()=>{b.isDeactivated=!1,b.a&&ap(b.a);const T=_.props&&_.props.onVnodeMounted;T&&io(T,b.parent,_)},s)},n.deactivate=_=>{const E=_.component;l(_,h,null,1,s),na(()=>{E.da&&ap(E.da);const B=_.props&&_.props.onVnodeUnmounted;B&&io(B,E.parent,_),E.isDeactivated=!0},s)};function f(_){uC(_),u(_,t,s,!0)}function p(_){i.forEach((E,B)=>{const L=DT(E.type);L&&(!_||!_(L))&&v(B)})}function v(_){const E=i.get(_);!o||E.type!==o.type?f(E):o&&uC(o),i.delete(_),a.delete(_)}fe(()=>[r.include,r.exclude],([_,E])=>{_&&p(B=>fv(_,B)),E&&p(B=>!fv(E,B))},{flush:"post",deep:!0});let m=null;const g=()=>{m!=null&&i.set(m,cC(t.subTree))};return Je(g),j1(g),V1(()=>{i.forEach(_=>{const{subTree:E,suspense:B}=t,L=cC(E);if(_.type===L.type){uC(L);const O=L.component.da;O&&na(O,B);return}f(_)})}),()=>{if(m=null,!e.default)return null;const _=e.default(),E=_[0];if(_.length>1)return o=null,_;if(!Pu(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return o=null,E;let B=cC(E);const L=B.type,O=DT(Yc(B)?B.type.__asyncResolved||{}:L),{include:b,exclude:T,max:F}=r;if(b&&(!O||!fv(b,O))||T&&O&&fv(T,O))return o=B,E;const M=B.key==null?L:B.key,S=i.get(M);return B.el&&(B=uA(B),E.shapeFlag&128&&(E.ssContent=B)),m=M,S?(B.el=S.el,B.component=S.component,B.transition&&lh(B,B.transition),B.shapeFlag|=512,a.delete(M),a.add(M)):(a.add(M),F&&a.size>parseInt(F,10)&&v(a.values().next().value)),B.shapeFlag|=256,o=B,fD(E.type)?E:B}}},gj=vj;function fv(r,e){return Ee(r)?r.some(t=>fv(t,e)):Un(r)?r.split(",").includes(e):r.test?r.test(e):!1}function mD(r,e){wD(r,"a",e)}function _D(r,e){wD(r,"da",e)}function wD(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($1(e,n,t),t){let i=t.parent;for(;i&&i.parent;)jg(i.parent.vnode)&&yj(n,e,t,i),i=i.parent}}function yj(r,e,t,n){const i=$1(e,r,n,!0);ar(()=>{rF(n[e],i)},t)}function uC(r){r.shapeFlag&=-257,r.shapeFlag&=-513}function cC(r){return r.shapeFlag&128?r.ssContent:r}function $1(r,e,t=Pi,n=!1){if(t){const i=t[r]||(t[r]=[]),a=e.__weh||(e.__weh=(...o)=>{if(t.isUnmounted)return;Gp(),Uu(t);const s=No(e,t,r,o);return xu(),kp(),s});return n?i.unshift(a):i.push(a),a}}const wl=r=>(e,t=Pi)=>(!Cp||r==="sp")&&$1(r,(...n)=>e(...n),t),ED=wl("bm"),Je=wl("m"),CD=wl("bu"),j1=wl("u"),V1=wl("bum"),ar=wl("um"),BD=wl("sp"),TD=wl("rtg"),xD=wl("rtc");function SD(r,e=Pi){$1("ec",r,e)}function mj(r,e){const t=oa;if(t===null)return r;const n=z1(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 _r(r,e,t={},n,i){if(oa.isCE||oa.parent&&Yc(oa.parent)&&oa.parent.isCE)return e!=="default"&&(t.name=e),Zr("slot",t,n&&n());let a=r[e];a&&a._c&&(a._d=!1),fn();const o=a&&ID(a(t)),s=Vg(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 ID(r){return r.some(e=>Pu(e)?!(e.type===xa||e.type===Mi&&!ID(e.children)):!0)?r:null}function Bj(r,e){const t={};for(const n in r)t[e&&/[A-Z]/.test(n)?`on:${n}`:Rv(n)]=r[n];return t}const FT=r=>r?XD(r)?z1(r)||r.proxy:FT(r.parent):null,Mv=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=>FT(r.parent),$root:r=>FT(r.root),$emit:r=>r.emit,$options:r=>BF(r),$forceUpdate:r=>r.f||(r.f=()=>Q1(r.update)),$nextTick:r=>r.n||(r.n=dF.bind(r.proxy)),$watch:r=>fj.bind(r)}),hC=(r,e)=>r!==on&&!r.__isScriptSetup&&Fr(r,e),IT={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(hC(n,e))return o[e]=1,n[e];if(i!==on&&Fr(i,e))return o[e]=2,i[e];if((l=r.propsOptions[0])&&Fr(l,e))return o[e]=3,a[e];if(t!==on&&Fr(t,e))return o[e]=4,t[e];LT&&(o[e]=0)}}const u=Mv[e];let c,h;if(u)return e==="$attrs"&&Po(r,"get",e),u(r);if((c=s.__cssModules)&&(c=c[e]))return c;if(t!==on&&Fr(t,e))return o[e]=4,t[e];if(h=A.config.globalProperties,Fr(h,e))return h[e]},set({_:r},e,t){const{data:n,setupState:i,ctx:a}=r;return hC(i,e)?(i[e]=t,!0):n!==on&&Fr(n,e)?(n[e]=t,!0):Fr(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!==on&&Fr(r,o)||hC(e,o)||(s=a[0])&&Fr(s,o)||Fr(n,o)||Fr(Mv,o)||Fr(i.config.globalProperties,o)},defineProperty(r,e,t){return t.get!=null?r._.accessCache[e]=0:Fr(t,"value")&&this.set(r,e,t.value,null),Reflect.defineProperty(r,e,t)}},Tj=zn({},IT,{get(r,e){if(e!==Symbol.unscopables)return IT.get(r,e,r)},has(r,e){return e[0]!=="_"&&!K9(e)}});let LT=!0;function xj(r){const e=BF(r),t=r.proxy,n=r.ctx;LT=!1,e.beforeCreate&&uR(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:F,expose:M,inheritAttrs:S,components:x,directives:N,filters:P}=e;if(l&&Sj(l,n,null,r.appContext.config.unwrapInjectedRef),o)for(const tt in o){const J=o[tt];Ke(J)&&(n[tt]=J.bind(t))}if(i){const tt=i.call(t,t);pn(tt)&&(r.data=kg(tt))}if(LT=!0,a)for(const tt in a){const J=a[tt],nt=Ke(J)?J.bind(t,t):Ke(J.get)?J.get.bind(t,t):Ss,it=!Ke(J)&&Ke(J.set)?J.set.bind(t):Ss,_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)LD(s[tt],n,t,tt);if(A){const tt=Ke(A)?A.call(t):A;Reflect.ownKeys(tt).forEach(J=>{Pr(J,tt[J])})}u&&uR(u,r,"c");function z(tt,J){Ee(J)?J.forEach(nt=>tt(nt.bind(t))):J&&tt(J.bind(t))}if(z(ED,c),z(Je,h),z(CD,f),z(j1,p),z(mD,v),z(_D,m),z(SD,T),z(xD,O),z(TD,b),z(V1,_),z(ar,B),z(BD,F),Ee(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===Ss&&(r.render=L),S!=null&&(r.inheritAttrs=S),x&&(r.components=x),N&&(r.directives=N)}function Sj(r,e,t=Ss,n=!1){Ee(r)&&(r=OT(r));for(const i in r){const a=r[i];let o;pn(a)?"default"in a?o=Be(a.from||i,a.default,!0):o=Be(a.from||i):o=Be(a),Zi(o)&&n?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):e[i]=o}}function uR(r,e,t){No(Ee(r)?r.map(n=>n.bind(e.proxy)):r.bind(e.proxy),e,t)}function LD(r,e,t,n){const i=n.includes(".")?gD(t,n):()=>t[n];if(Un(r)){const a=e[r];Ke(a)&&fe(i,a)}else if(Ke(r))fe(i,r.bind(t));else if(pn(r))if(Ee(r))r.forEach(a=>LD(a,e,t,n));else{const a=Ke(r.handler)?r.handler.bind(t):e[r.handler];Ke(a)&&fe(i,a,r)}}function BF(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=>d_(A,l,o,!0)),d_(A,e,o)),pn(e)&&a.set(e,A),A}function d_(r,e,t,n=!1){const{mixins:i,extends:a}=e;a&&d_(r,a,t,!0),i&&i.forEach(o=>d_(r,o,t,!0));for(const o in e)if(!(n&&o==="expose")){const s=bj[o]||t&&t[o];r[o]=s?s(r[o],e[o]):e[o]}return r}const bj={data:cR,props:Ic,emits:Ic,methods:Ic,computed:Ic,beforeCreate:Na,created:Na,beforeMount:Na,mounted:Na,beforeUpdate:Na,updated:Na,beforeDestroy:Na,beforeUnmount:Na,destroyed:Na,unmounted:Na,activated:Na,deactivated:Na,errorCaptured:Na,serverPrefetch:Na,components:Ic,directives:Ic,watch:Ij,provide:cR,inject:Fj};function cR(r,e){return e?r?function(){return zn(Ke(r)?r.call(this,this):r,Ke(e)?e.call(this,this):e)}:e:r}function Fj(r,e){return Ic(OT(r),OT(e))}function OT(r){if(Ee(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]=RD(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 pn(r)&&n.set(r,np),np;if(Ee(a))for(let u=0;u-1,f[1]=v<0||p-1||Fr(f,"default"))&&s.push(c)}}}const l=[o,s];return pn(r)&&n.set(r,l),l}function hR(r){return r[0]!=="$"}function fR(r){const e=r&&r.toString().match(/^\s*function (\w+)/);return e?e[1]:r===null?"null":""}function pR(r,e){return fR(r)===fR(e)}function dR(r,e){return Ee(e)?e.findIndex(t=>pR(t,r)):Ke(e)&&pR(e,r)?0:-1}const MD=r=>r[0]==="_"||r==="$stable",TF=r=>Ee(r)?r.map(Io):[Io(r)],Rj=(r,e,t)=>{if(e._n)return e;const n=Qc((...i)=>TF(e(...i)),t);return n._c=!1,n},ND=(r,e,t)=>{const n=r._ctx;for(const i in r){if(MD(i))continue;const a=r[i];if(Ke(a))e[i]=Rj(i,a,n);else if(a!=null){const o=TF(a);e[i]=()=>o}}},PD=(r,e)=>{const t=TF(e);r.slots.default=()=>t},Mj=(r,e)=>{if(r.vnode.shapeFlag&32){const t=e._;t?(r.slots=Rr(e),f_(e,"_",t)):ND(e,r.slots={})}else r.slots={},e&&PD(r,e);f_(r.slots,K1,1)},Nj=(r,e,t)=>{const{vnode:n,slots:i}=r;let a=!0,o=on;if(n.shapeFlag&32){const s=e._;s?t&&s===1?a=!1:(zn(i,e),!t&&s===1&&delete i._):(a=!e.$stable,ND(e,i)),o=e}else e&&(PD(r,e),o={default:1});if(a)for(const s in i)!MD(s)&&!(s in o)&&delete i[s]};function UD(){return{app:null,config:{isNativeTag:e$,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 Pj=0;function Uj(r,e){return function(n,i=null){Ke(n)||(n=Object.assign({},n)),i!=null&&!pn(i)&&(i=null);const a=UD(),o=new Set;let s=!1;const A=a.app={_uid:Pj++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:nQ,get config(){return a.config},set config(l){},use(l,...u){return o.has(l)||(l&&Ke(l.install)?(o.add(l),l.install(A,...u)):Ke(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=Zr(n,i);return h.appContext=a,u&&e?e(h,l):r(h,l,c),s=!0,A._container=l,l.__vue_app__=A,z1(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 v_(r,e,t,n,i=!1){if(Ee(r)){r.forEach((h,f)=>v_(h,e&&(Ee(e)?e[f]:e),t,n,i));return}if(Yc(n)&&!i)return;const a=n.shapeFlag&4?z1(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:A}=r,l=e&&e.r,u=s.refs===on?s.refs={}:s.refs,c=s.setupState;if(l!=null&&l!==A&&(Un(l)?(u[l]=null,Fr(c,l)&&(c[l]=null)):Zi(l)&&(l.value=null)),Ke(A))rl(A,s,12,[o,u]);else{const h=Un(A),f=Zi(A);if(h||f){const p=()=>{if(r.f){const v=h?Fr(c,A)?c[A]:u[A]:A.value;i?Ee(v)&&rF(v,a):Ee(v)?v.includes(a)||v.push(a):h?(u[A]=[a],Fr(c,A)&&(c[A]=u[A])):(A.value=[a],r.k&&(u[r.k]=A.value))}else h?(u[A]=o,Fr(c,A)&&(c[A]=o)):f&&(A.value=o,r.k&&(u[r.k]=o))};o?(p.id=-1,na(p,t)):p()}}}let Yl=!1;const _m=r=>/svg/.test(r.namespaceURI)&&r.tagName!=="foreignObject",wm=r=>r.nodeType===8;function Dj(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,_),p_(),_._vnode=g;return}Yl=!1,c(_.firstChild,g,null,null,null),p_(),_._vnode=g,Yl&&console.error("Hydration completed but contains mismatches.")},c=(g,_,E,B,L,O=!1)=>{const b=wm(g)&&g.data==="[",T=()=>v(g,_,E,B,L,b),{type:F,ref:M,shapeFlag:S,patchFlag:x}=_;let N=g.nodeType;_.el=g,x===-2&&(O=!1,_.dynamicChildren=null);let P=null;switch(F){case uh:N!==3?_.children===""?(A(_.el=i(""),o(g),g),P=g):P=T():(g.data!==_.children&&(Yl=!0,g.data=_.children),P=a(g));break;case xa:N!==8||b?P=T():P=a(g);break;case Wc:if(b&&(g=a(g),N=g.nodeType),N===1||N===3){P=g;const Y=!_.children.length;for(let z=0;z<_.staticCount;z++)Y&&(_.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 Mi:b?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 Y=o(g);if(e(_,Y,null,E,B,_m(Y),O),P=b?m(g):a(g),P&&wm(P)&&P.data==="teleport end"&&(P=a(P)),Yc(_)){let z;b?(z=Zr(Mi),z.anchor=P?P.previousSibling:Y.lastChild):z=g.nodeType===3?SF(""):Zr("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,_m(o(g)),L,O,r,c))}return M!=null&&v_(M,null,B,_),P},h=(g,_,E,B,L,O)=>{O=O||!!_.dynamicChildren;const{type:b,props:T,patchFlag:F,shapeFlag:M,dirs:S}=_,x=b==="input"&&S||b==="option";if(x||F!==-1){if(S&&zs(_,null,E,"created"),T)if(x||!O||F&48)for(const P in T)(x&&P.endsWith("value")||Dg(P)&&!Ov(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)&&io(N,E,_),S&&zs(_,null,E,"beforeMount"),((N=T&&T.onVnodeMounted)||S)&&pD(()=>{N&&io(N,E,_),S&&zs(_,null,E,"mounted")},B),M&16&&!(T&&(T.innerHTML||T.textContent))){let P=f(g.firstChild,_,g,E,B,L,O);for(;P;){Yl=!0;const Y=P;P=P.nextSibling,s(Y)}}else M&8&&g.textContent!==_.children&&(Yl=!0,g.textContent=_.children)}return g.nextSibling},f=(g,_,E,B,L,O,b)=>{b=b||!!_.dynamicChildren;const T=_.children,F=T.length;for(let M=0;M{const{slotScopeIds:b}=_;b&&(L=L?L.concat(b):b);const T=o(g),F=f(a(g),_,T,E,B,L,O);return F&&wm(F)&&F.data==="]"?a(_.anchor=F):(Yl=!0,A(_.anchor=l("]"),T,F),F)},v=(g,_,E,B,L,O)=>{if(Yl=!0,_.el=null,O){const F=m(g);for(;;){const M=a(g);if(M&&M!==F)s(M);else break}}const b=a(g),T=o(g);return s(g),t(null,_,T,b,E,B,_m(T),L),b},m=g=>{let _=0;for(;g;)if(g=a(g),g&&wm(g)&&(g.data==="["&&_++,g.data==="]")){if(_===0)return a(g);_--}return g};return[u,c]}const na=pD;function DD(r){return HD(r)}function QD(r){return HD(r,Dj)}function HD(r,e){const t=s$();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=Ss,insertStaticContent:p}=r,v=(V,Z,ut,rt=null,G=null,St=null,bt=!1,dt=null,Et=!!Z.dynamicChildren)=>{if(V===Z)return;V&&!Ws(V,Z)&&(rt=vt(V),R(V,G,St,!0),V=null),Z.patchFlag===-2&&(Et=!1,Z.dynamicChildren=null);const{type:yt,ref:xt,shapeFlag:It}=Z;switch(yt){case uh:m(V,Z,ut,rt);break;case xa:g(V,Z,ut,rt);break;case Wc:V==null&&_(Z,ut,rt,bt);break;case Mi:x(V,Z,ut,rt,G,St,bt,dt,Et);break;default:It&1?L(V,Z,ut,rt,G,St,bt,dt,Et):It&6?N(V,Z,ut,rt,G,St,bt,dt,Et):(It&64||It&128)&&yt.process(V,Z,ut,rt,G,St,bt,dt,Et,W)}xt!=null&&G&&v_(xt,V&&V.ref,St,Z||V,!Z)},m=(V,Z,ut,rt)=>{if(V==null)n(Z.el=s(Z.children),ut,rt);else{const G=Z.el=V.el;Z.children!==V.children&&l(G,Z.children)}},g=(V,Z,ut,rt)=>{V==null?n(Z.el=A(Z.children||""),ut,rt):Z.el=V.el},_=(V,Z,ut,rt)=>{[V.el,V.anchor]=p(V.children,Z,ut,rt,V.el,V.anchor)},E=({el:V,anchor:Z},ut,rt)=>{let G;for(;V&&V!==Z;)G=h(V),n(V,ut,rt),V=G;n(Z,ut,rt)},B=({el:V,anchor:Z})=>{let ut;for(;V&&V!==Z;)ut=h(V),i(V),V=ut;i(Z)},L=(V,Z,ut,rt,G,St,bt,dt,Et)=>{bt=bt||Z.type==="svg",V==null?O(Z,ut,rt,G,St,bt,dt,Et):F(V,Z,G,St,bt,dt,Et)},O=(V,Z,ut,rt,G,St,bt,dt)=>{let Et,yt;const{type:xt,props:It,shapeFlag:Mt,transition:Vt,dirs:Yt}=V;if(Et=V.el=o(V.type,St,It&&It.is,It),Mt&8?u(Et,V.children):Mt&16&&T(V.children,Et,null,rt,G,St&&xt!=="foreignObject",bt,dt),Yt&&zs(V,null,rt,"created"),It){for(const re in It)re!=="value"&&!Ov(re)&&a(Et,re,null,It[re],St,V.children,rt,G,at);"value"in It&&a(Et,"value",null,It.value),(yt=It.onVnodeBeforeMount)&&io(yt,rt,V)}b(Et,V,V.scopeId,bt,rt),Yt&&zs(V,null,rt,"beforeMount");const ae=(!G||G&&!G.pendingBranch)&&Vt&&!Vt.persisted;ae&&Vt.beforeEnter(Et),n(Et,Z,ut),((yt=It&&It.onVnodeMounted)||ae||Yt)&&na(()=>{yt&&io(yt,rt,V),ae&&Vt.enter(Et),Yt&&zs(V,null,rt,"mounted")},G)},b=(V,Z,ut,rt,G)=>{if(ut&&f(V,ut),rt)for(let St=0;St{for(let yt=Et;yt{const dt=Z.el=V.el;let{patchFlag:Et,dynamicChildren:yt,dirs:xt}=Z;Et|=V.patchFlag&16;const It=V.props||on,Mt=Z.props||on;let Vt;ut&&gc(ut,!1),(Vt=Mt.onVnodeBeforeUpdate)&&io(Vt,ut,Z,V),xt&&zs(Z,V,ut,"beforeUpdate"),ut&&gc(ut,!0);const Yt=G&&Z.type!=="foreignObject";if(yt?M(V.dynamicChildren,yt,dt,ut,rt,Yt,St):bt||J(V,Z,dt,null,ut,rt,Yt,St,!1),Et>0){if(Et&16)S(dt,Z,It,Mt,ut,rt,G);else if(Et&2&&It.class!==Mt.class&&a(dt,"class",null,Mt.class,G),Et&4&&a(dt,"style",It.style,Mt.style,G),Et&8){const ae=Z.dynamicProps;for(let re=0;re{Vt&&io(Vt,ut,Z,V),xt&&zs(Z,V,ut,"updated")},rt)},M=(V,Z,ut,rt,G,St,bt)=>{for(let dt=0;dt{if(ut!==rt){if(ut!==on)for(const dt in ut)!Ov(dt)&&!(dt in rt)&&a(V,dt,ut[dt],null,bt,Z.children,G,St,at);for(const dt in rt){if(Ov(dt))continue;const Et=rt[dt],yt=ut[dt];Et!==yt&&dt!=="value"&&a(V,dt,yt,Et,bt,Z.children,G,St,at)}"value"in rt&&a(V,"value",ut.value,rt.value)}},x=(V,Z,ut,rt,G,St,bt,dt,Et)=>{const yt=Z.el=V?V.el:s(""),xt=Z.anchor=V?V.anchor:s("");let{patchFlag:It,dynamicChildren:Mt,slotScopeIds:Vt}=Z;Vt&&(dt=dt?dt.concat(Vt):Vt),V==null?(n(yt,ut,rt),n(xt,ut,rt),T(Z.children,ut,xt,G,St,bt,dt,Et)):It>0&&It&64&&Mt&&V.dynamicChildren?(M(V.dynamicChildren,Mt,ut,G,St,bt,dt),(Z.key!=null||G&&Z===G.subTree)&&xF(V,Z,!0)):J(V,Z,ut,xt,G,St,bt,dt,Et)},N=(V,Z,ut,rt,G,St,bt,dt,Et)=>{Z.slotScopeIds=dt,V==null?Z.shapeFlag&512?G.ctx.activate(Z,ut,rt,bt,Et):P(Z,ut,rt,G,St,bt,Et):Y(V,Z,Et)},P=(V,Z,ut,rt,G,St,bt)=>{const dt=V.component=zD(V,rt,G);if(jg(V)&&(dt.ctx.renderer=W),YD(dt),dt.asyncDep){if(G&&G.registerDep(dt,z),!V.el){const Et=dt.subTree=Zr(xa);g(null,Et,Z,ut)}return}z(dt,V,Z,ut,G,St,bt)},Y=(V,Z,ut)=>{const rt=Z.component=V.component;if(aj(V,Z,ut))if(rt.asyncDep&&!rt.asyncResolved){tt(rt,Z,ut);return}else rt.next=Z,Z$(rt.update),rt.update();else Z.el=V.el,rt.vnode=Z},z=(V,Z,ut,rt,G,St,bt)=>{const dt=()=>{if(V.isMounted){let{next:xt,bu:It,u:Mt,parent:Vt,vnode:Yt}=V,ae=xt,re;gc(V,!1),xt?(xt.el=Yt.el,tt(V,xt,bt)):xt=Yt,It&&ap(It),(re=xt.props&&xt.props.onVnodeBeforeUpdate)&&io(re,Vt,xt,Yt),gc(V,!0);const Wt=N0(V),se=V.subTree;V.subTree=Wt,v(se,Wt,c(se.el),vt(se),V,G,St),xt.el=Wt.el,ae===null&&gF(V,Wt.el),Mt&&na(Mt,G),(re=xt.props&&xt.props.onVnodeUpdated)&&na(()=>io(re,Vt,xt,Yt),G)}else{let xt;const{el:It,props:Mt}=Z,{bm:Vt,m:Yt,parent:ae}=V,re=Yc(Z);if(gc(V,!1),Vt&&ap(Vt),!re&&(xt=Mt&&Mt.onVnodeBeforeMount)&&io(xt,ae,Z),gc(V,!0),It&&Ot){const Wt=()=>{V.subTree=N0(V),Ot(It,V.subTree,V,G,null)};re?Z.type.__asyncLoader().then(()=>!V.isUnmounted&&Wt()):Wt()}else{const Wt=V.subTree=N0(V);v(null,Wt,ut,rt,V,G,St),Z.el=Wt.el}if(Yt&&na(Yt,G),!re&&(xt=Mt&&Mt.onVnodeMounted)){const Wt=Z;na(()=>io(xt,ae,Wt),G)}(Z.shapeFlag&256||ae&&Yc(ae.vnode)&&ae.vnode.shapeFlag&256)&&V.a&&na(V.a,G),V.isMounted=!0,Z=ut=rt=null}},Et=V.effect=new Gg(dt,()=>Q1(yt),V.scope),yt=V.update=()=>Et.run();yt.id=V.uid,gc(V,!0),yt()},tt=(V,Z,ut)=>{Z.component=V;const rt=V.vnode.props;V.vnode=Z,V.next=null,Oj(V,Z.props,rt,ut),Nj(V,Z.children,ut),Gp(),aR(),kp()},J=(V,Z,ut,rt,G,St,bt,dt,Et=!1)=>{const yt=V&&V.children,xt=V?V.shapeFlag:0,It=Z.children,{patchFlag:Mt,shapeFlag:Vt}=Z;if(Mt>0){if(Mt&128){it(yt,It,ut,rt,G,St,bt,dt,Et);return}else if(Mt&256){nt(yt,It,ut,rt,G,St,bt,dt,Et);return}}Vt&8?(xt&16&&at(yt,G,St),It!==yt&&u(ut,It)):xt&16?Vt&16?it(yt,It,ut,rt,G,St,bt,dt,Et):at(yt,G,St,!0):(xt&8&&u(ut,""),Vt&16&&T(It,ut,rt,G,St,bt,dt,Et))},nt=(V,Z,ut,rt,G,St,bt,dt,Et)=>{V=V||np,Z=Z||np;const yt=V.length,xt=Z.length,It=Math.min(yt,xt);let Mt;for(Mt=0;Mtxt?at(V,G,St,!0,!1,It):T(Z,ut,rt,G,St,bt,dt,Et,It)},it=(V,Z,ut,rt,G,St,bt,dt,Et)=>{let yt=0;const xt=Z.length;let It=V.length-1,Mt=xt-1;for(;yt<=It&&yt<=Mt;){const Vt=V[yt],Yt=Z[yt]=Et?cu(Z[yt]):Io(Z[yt]);if(Ws(Vt,Yt))v(Vt,Yt,ut,null,G,St,bt,dt,Et);else break;yt++}for(;yt<=It&&yt<=Mt;){const Vt=V[It],Yt=Z[Mt]=Et?cu(Z[Mt]):Io(Z[Mt]);if(Ws(Vt,Yt))v(Vt,Yt,ut,null,G,St,bt,dt,Et);else break;It--,Mt--}if(yt>It){if(yt<=Mt){const Vt=Mt+1,Yt=VtMt)for(;yt<=It;)R(V[yt],G,St,!0),yt++;else{const Vt=yt,Yt=yt,ae=new Map;for(yt=Yt;yt<=Mt;yt++){const Ie=Z[yt]=Et?cu(Z[yt]):Io(Z[yt]);Ie.key!=null&&ae.set(Ie.key,yt)}let re,Wt=0;const se=Mt-Yt+1;let zt=!1,We=0;const Me=new Array(se);for(yt=0;yt=se){R(Ie,G,St,!0);continue}let be;if(Ie.key!=null)be=ae.get(Ie.key);else for(re=Yt;re<=Mt;re++)if(Me[re-Yt]===0&&Ws(Ie,Z[re])){be=re;break}be===void 0?R(Ie,G,St,!0):(Me[be-Yt]=yt+1,be>=We?We=be:zt=!0,v(Ie,Z[be],ut,null,G,St,bt,dt,Et),Wt++)}const dr=zt?Qj(Me):np;for(re=dr.length-1,yt=se-1;yt>=0;yt--){const Ie=Yt+yt,be=Z[Ie],An=Ie+1{const{el:St,type:bt,transition:dt,children:Et,shapeFlag:yt}=V;if(yt&6){_t(V.component.subTree,Z,ut,rt);return}if(yt&128){V.suspense.move(Z,ut,rt);return}if(yt&64){bt.move(V,Z,ut,W);return}if(bt===Mi){n(St,Z,ut);for(let It=0;Itdt.enter(St),G);else{const{leave:It,delayLeave:Mt,afterLeave:Vt}=dt,Yt=()=>n(St,Z,ut),ae=()=>{It(St,()=>{Yt(),Vt&&Vt()})};Mt?Mt(St,Yt,ae):ae()}else n(St,Z,ut)},R=(V,Z,ut,rt=!1,G=!1)=>{const{type:St,props:bt,ref:dt,children:Et,dynamicChildren:yt,shapeFlag:xt,patchFlag:It,dirs:Mt}=V;if(dt!=null&&v_(dt,null,ut,V,!0),xt&256){Z.ctx.deactivate(V);return}const Vt=xt&1&&Mt,Yt=!Yc(V);let ae;if(Yt&&(ae=bt&&bt.onVnodeBeforeUnmount)&&io(ae,Z,V),xt&6)q(V.component,ut,rt);else{if(xt&128){V.suspense.unmount(ut,rt);return}Vt&&zs(V,null,Z,"beforeUnmount"),xt&64?V.type.remove(V,Z,ut,G,W,rt):yt&&(St!==Mi||It>0&&It&64)?at(yt,Z,ut,!1,!0):(St===Mi&&It&384||!G&&xt&16)&&at(Et,Z,ut),rt&&$(V)}(Yt&&(ae=bt&&bt.onVnodeUnmounted)||Vt)&&na(()=>{ae&&io(ae,Z,V),Vt&&zs(V,null,Z,"unmounted")},ut)},$=V=>{const{type:Z,el:ut,anchor:rt,transition:G}=V;if(Z===Mi){K(ut,rt);return}if(Z===Wc){B(V);return}const St=()=>{i(ut),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(V.shapeFlag&1&&G&&!G.persisted){const{leave:bt,delayLeave:dt}=G,Et=()=>bt(ut,St);dt?dt(V.el,St,Et):Et()}else St()},K=(V,Z)=>{let ut;for(;V!==Z;)ut=h(V),i(V),V=ut;i(Z)},q=(V,Z,ut)=>{const{bum:rt,scope:G,update:St,subTree:bt,um:dt}=V;rt&&ap(rt),G.stop(),St&&(St.active=!1,R(bt,V,Z,ut)),dt&&na(dt,Z),na(()=>{V.isUnmounted=!0},Z),Z&&Z.pendingBranch&&!Z.isUnmounted&&V.asyncDep&&!V.asyncResolved&&V.suspenseId===Z.pendingId&&(Z.deps--,Z.deps===0&&Z.resolve())},at=(V,Z,ut,rt=!1,G=!1,St=0)=>{for(let bt=St;btV.shapeFlag&6?vt(V.component.subTree):V.shapeFlag&128?V.suspense.next():h(V.anchor||V.el),wt=(V,Z,ut)=>{V==null?Z._vnode&&R(Z._vnode,null,null,!0):v(Z._vnode||null,V,Z,null,null,null,ut),aR(),p_(),Z._vnode=V},W={p:v,um:R,m:_t,r:$,mt:P,mc:T,pc:J,pbc:M,n:vt,o:r};let Ft,Ot;return e&&([Ft,Ot]=e(W)),{render:wt,hydrate:Ft,createApp:Uj(wt,Ft)}}function gc({effect:r,update:e},t){r.allowRecurse=e.allowRecurse=t}function xF(r,e,t=!1){const n=r.children,i=e.children;if(Ee(n)&&Ee(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 Hj=r=>r.__isTeleport,Nv=r=>r&&(r.disabled||r.disabled===""),vR=r=>typeof SVGElement<"u"&&r instanceof SVGElement,MT=(r,e)=>{const t=r&&r.to;return Un(t)?e?e(t):null:t},Gj={__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=Nv(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=MT(e.props,p),T=e.targetAnchor=v("");b&&(f(T,b),o=o||vR(b));const F=(M,S)=>{_&16&&u(E,M,S,i,a,o,s,A)};g?F(t,O):b&&F(b,T)}else{e.el=r.el;const L=e.anchor=r.anchor,O=e.target=r.target,b=e.targetAnchor=r.targetAnchor,T=Nv(r.props),F=T?t:O,M=T?L:b;if(o=o||vR(O),B?(h(r.dynamicChildren,B,F,i,a,o,s),xF(r,e,!0)):A||c(r,e,F,M,i,a,o,s,!1),g)T||Em(e,t,L,l,1);else if((e.props&&e.props.to)!==(r.props&&r.props.to)){const S=e.target=MT(e.props,p);S&&Em(e,S,null,l,0)}else T&&Em(e,O,b,l,1)}GD(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||!Nv(h))&&(a(l),s&16))for(let f=0;f0?Ao||np:null,kD(),ch>0&&Ao&&Ao.push(r),r}function Vn(r,e,t,n,i,a){return $D(Xi(r,e,t,n,i,a,!0))}function Vg(r,e,t,n,i){return $D(Zr(r,e,t,n,i,!0))}function Pu(r){return r?r.__v_isVNode===!0:!1}function Ws(r,e){return r.type===e.type&&r.key===e.key}function jj(r){}const K1="__vInternal",jD=({key:r})=>r??null,P0=({ref:r,ref_key:e,ref_for:t})=>r!=null?Un(r)||Zi(r)||Ke(r)?{i:oa,r,k:e,f:!!t}:r:null;function Xi(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&&jD(e),ref:e&&P0(e),scopeId:G1,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:oa};return s?(bF(A,t),a&128&&r.normalize(A)):t&&(A.shapeFlag|=Un(t)?8:16),ch>0&&!o&&Ao&&(A.patchFlag>0||a&6)&&A.patchFlag!==32&&Ao.push(A),A}const Zr=Vj;function Vj(r,e=null,t=null,n=0,i=null,a=!1){if((!r||r===bD)&&(r=xa),Pu(r)){const s=uA(r,e,!0);return t&&bF(s,t),ch>0&&!a&&Ao&&(s.shapeFlag&6?Ao[Ao.indexOf(r)]=s:Ao.push(s)),s.patchFlag|=-2,s}if(Jj(r)&&(r=r.__vccOpts),e){e=VD(e);let{class:s,style:A}=e;s&&!Un(s)&&(e.class=Ug(s)),pn(A)&&(lF(A)&&!Ee(A)&&(A=zn({},A)),e.style=Pg(A))}const o=Un(r)?1:fD(r)?128:Hj(r)?64:pn(r)?4:Ke(r)?2:0;return Xi(r,e,t,n,i,o,a,!0)}function VD(r){return r?lF(r)||K1 in r?zn({},r):r:null}function uA(r,e,t=!1){const{props:n,ref:i,patchFlag:a,children:o}=r,s=e?KD(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:r.type,props:s,key:s&&jD(s),ref:e&&e.ref?t&&i?Ee(i)?i.concat(P0(e)):[i,P0(e)]:P0(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&&uA(r.ssContent),ssFallback:r.ssFallback&&uA(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx}}function SF(r=" ",e=0){return Zr(uh,null,r,e)}function Kj(r,e){const t=Zr(Wc,null,r);return t.staticCount=e,t}function vr(r="",e=!1){return e?(fn(),Vg(xa,null,r)):Zr(xa,null,r)}function Io(r){return r==null||typeof r=="boolean"?Zr(xa):Ee(r)?Zr(Mi,null,r.slice()):typeof r=="object"?cu(r):Zr(uh,null,String(r))}function cu(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:uA(r)}function bF(r,e){let t=0;const{shapeFlag:n}=r;if(e==null)e=null;else if(Ee(e))t=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),bF(r,i()),i._c&&(i._d=!0));return}else{t=32;const i=e._;!i&&!(K1 in e)?e._ctx=oa:i===3&&oa&&(oa.slots._===1?e._=1:(e._=2,r.patchFlag|=1024))}else Ke(e)?(e={default:e,_ctx:oa},t=32):(e=String(e),n&64?(t=16,e=[SF(e)]):t=8);r.children=e,r.shapeFlag|=t}function KD(...r){const e={};for(let t=0;tPi||oa,Uu=r=>{Pi=r,r.scope.on()},xu=()=>{Pi&&Pi.scope.off(),Pi=null};function XD(r){return r.vnode.shapeFlag&4}let Cp=!1;function YD(r,e=!1){Cp=e;const{props:t,children:n}=r.vnode,i=XD(r);Lj(r,t,i,e),Mj(r,n);const a=i?Yj(r,e):void 0;return Cp=!1,a}function Yj(r,e){const t=r.type;r.accessCache=Object.create(null),r.proxy=uF(new Proxy(r.ctx,IT));const{setup:n}=t;if(n){const i=r.setupContext=n.length>1?qD(r):null;Uu(r),Gp();const a=rl(n,r,0,[r.props,i]);if(kp(),xu(),nF(a)){if(a.then(xu,xu),e)return a.then(o=>{PT(r,o,e)}).catch(o=>{Th(o,r,0)});r.asyncDep=a}else PT(r,a,e)}else WD(r,e)}function PT(r,e,t){Ke(e)?r.type.__ssrInlineRender?r.ssrRender=e:r.render=e:pn(e)&&(r.setupState=fF(e)),WD(r,t)}let g_,UT;function Wj(r){g_=r,UT=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Tj))}}const qj=()=>!g_;function WD(r,e,t){const n=r.type;if(!r.render){if(!e&&g_&&!n.render){const i=n.template||BF(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=g_(i,l)}}r.render=n.render||Ss,UT&&UT(r)}Uu(r),Gp(),xj(r),kp(),xu()}function Zj(r){return new Proxy(r.attrs,{get(e,t){return Po(r,"get","$attrs"),e[t]}})}function qD(r){const e=n=>{r.exposed=n||{}};let t;return{get attrs(){return t||(t=Zj(r))},slots:r.slots,emit:r.emit,expose:e}}function z1(r){if(r.exposed)return r.exposeProxy||(r.exposeProxy=new Proxy(fF(uF(r.exposed)),{get(e,t){if(t in e)return e[t];if(t in Mv)return Mv[t](r)},has(e,t){return t in e||t in Mv}}))}function DT(r,e=!0){return Ke(r)?r.displayName||r.name:r.name||e&&r.__name}function Jj(r){return Ke(r)&&"__vccOpts"in r}const fr=(r,e)=>X$(r,e,Cp);function tV(){return null}function eV(){return null}function rV(r){}function nV(r,e){return null}function iV(){return ZD().slots}function aV(){return ZD().attrs}function ZD(){const r=Ju();return r.setupContext||(r.setupContext=qD(r))}function oV(r,e){const t=Ee(r)?r.reduce((n,i)=>(n[i]={},n),{}):r;for(const n in e){const i=t[n];i?Ee(i)||Ke(i)?t[n]={type:i,default:e[n]}:i.default=e[n]:i===null&&(t[n]={default:e[n]})}return t}function sV(r,e){const t={};for(const n in r)e.includes(n)||Object.defineProperty(t,n,{enumerable:!0,get:()=>r[n]});return t}function AV(r){const e=Ju();let t=r();return xu(),nF(t)&&(t=t.catch(n=>{throw Uu(e),n})),[t,()=>Uu(e)]}function JD(r,e,t){const n=arguments.length;return n===2?pn(e)&&!Ee(e)?Pu(e)?Zr(r,null,[e]):Zr(r,e):Zr(r,null,e):(n>3?t=Array.prototype.slice.call(arguments,2):n===3&&Pu(t)&&(t=[t]),Zr(r,e,t))}const tQ=Symbol(""),eQ=()=>Be(tQ);function lV(){}function uV(r,e,t,n){const i=t[n];if(i&&rQ(i,r))return i;const a=e();return a.memo=r.slice(),t[n]=a}function rQ(r,e){const t=r.memo;if(t.length!=e.length)return!1;for(let n=0;n0&&Ao&&Ao.push(r),!0}const nQ="3.2.45",cV={createComponentInstance:zD,setupComponent:YD,renderComponentRoot:N0,setCurrentRenderingInstance:sg,isVNode:Pu,normalizeVNode:Io},hV=cV,fV=null,pV=null,dV="http://www.w3.org/2000/svg",Nc=typeof document<"u"?document:null,gR=Nc&&Nc.createElement("template"),vV={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?Nc.createElementNS(dV,r):Nc.createElement(r,t?{is:t}:void 0);return r==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:r=>Nc.createTextNode(r),createComment:r=>Nc.createComment(r),setText:(r,e)=>{r.nodeValue=e},setElementText:(r,e)=>{r.textContent=e},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Nc.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{gR.innerHTML=n?`${r}`:r;const s=gR.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 gV(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 yV(r,e,t){const n=r.style,i=Un(t);if(t&&!i){for(const a in t)QT(n,a,t[a]);if(e&&!Un(e))for(const a in e)t[a]==null&&QT(n,a,"")}else{const a=n.display;i?e!==t&&(n.cssText=t):e&&r.removeAttribute("style"),"_vod"in r&&(n.display=a)}}const yR=/\s*!important$/;function QT(r,e,t){if(Ee(t))t.forEach(n=>QT(r,e,n));else if(t==null&&(t=""),e.startsWith("--"))r.setProperty(e,t);else{const n=mV(r,e);yR.test(t)?r.setProperty(Zo(n),t.replace(yR,""),"important"):r[n]=t}}const mR=["Webkit","Moz","ms"],fC={};function mV(r,e){const t=fC[e];if(t)return t;let n=lo(e);if(n!=="filter"&&n in r)return fC[e]=n;n=Hg(n);for(let i=0;ipC||(TV.then(()=>pC=0),pC=Date.now());function SV(r,e){const t=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=t.attached)return;No(bV(n,t.value),e,5,[n])};return t.value=r,t.attached=xV(),t}function bV(r,e){if(Ee(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 ER=/^on[a-z]/,FV=(r,e,t,n,i=!1,a,o,s,A)=>{e==="class"?gV(r,n,i):e==="style"?yV(r,t,n):Dg(e)?eF(e)||CV(r,e,t,n,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):IV(r,e,n,i))?wV(r,e,n,a,o,s,A):(e==="true-value"?r._trueValue=n:e==="false-value"&&(r._falseValue=n),_V(r,e,n,i))};function IV(r,e,t,n){return n?!!(e==="innerHTML"||e==="textContent"||e in r&&ER.test(e)&&Ke(t)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&r.tagName==="INPUT"||e==="type"&&r.tagName==="TEXTAREA"||ER.test(e)&&Un(t)?!1:e in r}function iQ(r,e){const t=wF(r);class n extends X1{constructor(a){super(t,a,e)}}return n.def=t,n}const LV=r=>iQ(r,mQ),OV=typeof HTMLElement<"u"?HTMLElement:class{};class X1 extends OV{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,dF(()=>{this._connected||(kT(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&&!Ee(a))for(const A in a){const l=a[A];(l===Number||l&&l.type===Number)&&(A in this._props&&(this._props[A]=hl(this._props[A])),(s||(s=Object.create(null)))[lo(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=Ee(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(lo))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a)}})}_setAttr(e){let t=this.getAttribute(e);const n=lo(e);this._numberProps&&this._numberProps[n]&&(t=hl(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(Zo(e),""):typeof t=="string"||typeof t=="number"?this.setAttribute(Zo(e),t+""):t||this.removeAttribute(Zo(e))))}_update(){kT(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Zr(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),Zo(a)!==a&&n(Zo(a),o)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof X1){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 RV(r="$style"){{const e=Ju();if(!e)return on;const t=e.type.__cssModules;if(!t)return on;const n=t[r];return n||on}}function MV(r){const e=Ju();if(!e)return;const t=e.ut=(i=r(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(a=>GT(a,i))},n=()=>{const i=r(e.proxy);HT(e.subTree,i),t(i)};vD(n),Je(()=>{const i=new MutationObserver(n);i.observe(e.subTree.el.parentNode,{childList:!0}),ar(()=>i.disconnect())})}function HT(r,e){if(r.shapeFlag&128){const t=r.suspense;r=t.activeBranch,t.pendingBranch&&!t.isHydrating&&t.effects.push(()=>{HT(t.activeBranch,e)})}for(;r.component;)r=r.component.subTree;if(r.shapeFlag&1&&r.el)GT(r.el,e);else if(r.type===Mi)r.children.forEach(t=>HT(t,e));else if(r.type===Wc){let{el:t,anchor:n}=r;for(;t&&(GT(t,e),t!==n);)t=t.nextSibling}}function GT(r,e){if(r.nodeType===1){const t=r.style;for(const n in e)t.setProperty(`--${n}`,e[n])}}const Wl="transition",Gd="animation",Y1=(r,{slots:e})=>JD(_F,oQ(r),e);Y1.displayName="Transition";const aQ={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},NV=Y1.props=zn({},_F.props,aQ),yc=(r,e=[])=>{Ee(r)?r.forEach(t=>t(...e)):r&&r(...e)},CR=r=>r?Ee(r)?r.some(e=>e.length>1):r.length>1:!1;function oQ(r){const e={};for(const x in r)x in aQ||(e[x]=r[x]);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=PV(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,F=(x,N,P)=>{su(x,N?u:s),su(x,N?l:o),P&&P()},M=(x,N)=>{x._isLeaving=!1,su(x,c),su(x,f),su(x,h),N&&N()},S=x=>(N,P)=>{const Y=x?b:_,z=()=>F(N,x,P);yc(Y,[N,z]),BR(()=>{su(N,x?A:a),KA(N,x?u:s),CR(Y)||TR(N,n,v,z)})};return zn(e,{onBeforeEnter(x){yc(g,[x]),KA(x,a),KA(x,o)},onBeforeAppear(x){yc(O,[x]),KA(x,A),KA(x,l)},onEnter:S(!1),onAppear:S(!0),onLeave(x,N){x._isLeaving=!0;const P=()=>M(x,N);KA(x,c),AQ(),KA(x,h),BR(()=>{x._isLeaving&&(su(x,c),KA(x,f),CR(B)||TR(x,n,m,P))}),yc(B,[x,P])},onEnterCancelled(x){F(x,!1),yc(E,[x])},onAppearCancelled(x){F(x,!0),yc(T,[x])},onLeaveCancelled(x){M(x),yc(L,[x])}})}function PV(r){if(r==null)return null;if(pn(r))return[dC(r.enter),dC(r.leave)];{const e=dC(r);return[e,e]}}function dC(r){return hl(r)}function KA(r,e){e.split(/\s+/).forEach(t=>t&&r.classList.add(t)),(r._vtc||(r._vtc=new Set)).add(e)}function su(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 BR(r){requestAnimationFrame(()=>{requestAnimationFrame(r)})}let UV=0;function TR(r,e,t,n){const i=r._endId=++UV,a=()=>{i===r._endId&&n()};if(t)return setTimeout(a,t);const{type:o,timeout:s,propCount:A}=sQ(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(`${Wl}Delay`),a=n(`${Wl}Duration`),o=xR(i,a),s=n(`${Gd}Delay`),A=n(`${Gd}Duration`),l=xR(s,A);let u=null,c=0,h=0;e===Wl?o>0&&(u=Wl,c=o,h=a.length):e===Gd?l>0&&(u=Gd,c=l,h=A.length):(c=Math.max(o,l),u=c>0?o>l?Wl:Gd:null,h=u?u===Wl?a.length:A.length:0);const f=u===Wl&&/\b(transform|all)(,|$)/.test(n(`${Wl}Property`).toString());return{type:u,timeout:c,propCount:h,hasTransform:f}}function xR(r,e){for(;r.lengthSR(t)+SR(r[n])))}function SR(r){return Number(r.slice(0,-1).replace(",","."))*1e3}function AQ(){return document.body.offsetHeight}const lQ=new WeakMap,uQ=new WeakMap,DV={name:"TransitionGroup",props:zn({},NV,{tag:String,moveClass:String}),setup(r,{slots:e}){const t=Ju(),n=mF();let i,a;return j1(()=>{if(!i.length)return;const o=r.moveClass||`${r.name||"v"}-move`;if(!$V(i[0].el,t.vnode.el,o))return;i.forEach(HV),i.forEach(GV);const s=i.filter(kV);AQ(),s.forEach(A=>{const l=A.el,u=l.style;KA(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,su(l,o))};l.addEventListener("transitionend",c)})}),()=>{const o=Rr(r),s=oQ(o);let A=o.tag||Mi;i=a,a=e.default?k1(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}=sQ(n);return i.removeChild(n),a}const Du=r=>{const e=r.props["onUpdate:modelValue"]||!1;return Ee(e)?t=>ap(e,t):e};function jV(r){r.target.composing=!0}function bR(r){const e=r.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const y_={created(r,{modifiers:{lazy:e,trim:t,number:n}},i){r._assign=Du(i);const a=n||i.props&&i.props.type==="number";JA(r,e?"change":"input",o=>{if(o.target.composing)return;let s=r.value;t&&(s=s.trim()),a&&(s=hl(s)),r._assign(s)}),t&&JA(r,"change",()=>{r.value=r.value.trim()}),e||(JA(r,"compositionstart",jV),JA(r,"compositionend",bR),JA(r,"change",bR))},mounted(r,{value:e}){r.value=e??""},beforeUpdate(r,{value:e,modifiers:{lazy:t,trim:n,number:i}},a){if(r._assign=Du(a),r.composing||document.activeElement===r&&r.type!=="range"&&(t||n&&r.value.trim()===e||(i||r.type==="number")&&hl(r.value)===e))return;const o=e??"";r.value!==o&&(r.value=o)}},FF={deep:!0,created(r,e,t){r._assign=Du(t),JA(r,"change",()=>{const n=r._modelValue,i=Bp(r),a=r.checked,o=r._assign;if(Ee(n)){const s=O1(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(Bh(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(hQ(r,a))})},mounted:FR,beforeUpdate(r,e,t){r._assign=Du(t),FR(r,e,t)}};function FR(r,{value:e,oldValue:t},n){r._modelValue=e,Ee(e)?r.checked=O1(e,n.props.value)>-1:Bh(e)?r.checked=e.has(n.props.value):e!==t&&(r.checked=Ru(e,hQ(r,!0)))}const IF={created(r,{value:e},t){r.checked=Ru(e,t.props.value),r._assign=Du(t),JA(r,"change",()=>{r._assign(Bp(r))})},beforeUpdate(r,{value:e,oldValue:t},n){r._assign=Du(n),e!==t&&(r.checked=Ru(e,n.props.value))}},cQ={deep:!0,created(r,{value:e,modifiers:{number:t}},n){const i=Bh(e);JA(r,"change",()=>{const a=Array.prototype.filter.call(r.options,o=>o.selected).map(o=>t?hl(Bp(o)):Bp(o));r._assign(r.multiple?i?new Set(a):a:a[0])}),r._assign=Du(n)},mounted(r,{value:e}){IR(r,e)},beforeUpdate(r,e,t){r._assign=Du(t)},updated(r,{value:e}){IR(r,e)}};function IR(r,e){const t=r.multiple;if(!(t&&!Ee(e)&&!Bh(e))){for(let n=0,i=r.options.length;n-1:a.selected=e.has(o);else if(Ru(Bp(a),e)){r.selectedIndex!==n&&(r.selectedIndex=n);return}}!t&&r.selectedIndex!==-1&&(r.selectedIndex=-1)}}function Bp(r){return"_value"in r?r._value:r.value}function hQ(r,e){const t=e?"_trueValue":"_falseValue";return t in r?r[t]:e}const fQ={created(r,e,t){Cm(r,e,t,null,"created")},mounted(r,e,t){Cm(r,e,t,null,"mounted")},beforeUpdate(r,e,t,n){Cm(r,e,t,n,"beforeUpdate")},updated(r,e,t,n){Cm(r,e,t,n,"updated")}};function pQ(r,e){switch(r){case"SELECT":return cQ;case"TEXTAREA":return y_;default:switch(e){case"checkbox":return FF;case"radio":return IF;default:return y_}}}function Cm(r,e,t,n,i){const o=pQ(r.tagName,t.props&&t.props.type)[i];o&&o(r,e,t,n)}function VV(){y_.getSSRProps=({value:r})=>({value:r}),IF.getSSRProps=({value:r},e)=>{if(e.props&&Ru(e.props.value,r))return{checked:!0}},FF.getSSRProps=({value:r},e)=>{if(Ee(r)){if(e.props&&O1(r,e.props.value)>-1)return{checked:!0}}else if(Bh(r)){if(e.props&&r.has(e.props.value))return{checked:!0}}else if(r)return{checked:!0}},fQ.getSSRProps=(r,e)=>{if(typeof e.type!="string")return;const t=pQ(e.type.toUpperCase(),e.props&&e.props.type);if(t.getSSRProps)return t.getSSRProps(r,e)}}const KV=["ctrl","shift","alt","meta"],zV={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)=>KV.some(t=>r[`${t}Key`]&&!e.includes(t))},XV=(r,e)=>(t,...n)=>{for(let i=0;it=>{if(!("key"in t))return;const n=Zo(t.key);if(e.some(i=>i===n||YV[i]===n))return r(t)},dQ={beforeMount(r,{value:e},{transition:t}){r._vod=r.style.display==="none"?"":r.style.display,t&&e?t.beforeEnter(r):kd(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),kd(r,!0),n.enter(r)):n.leave(r,()=>{kd(r,!1)}):kd(r,e))},beforeUnmount(r,{value:e}){kd(r,e)}};function kd(r,e){r.style.display=e?r._vod:"none"}function qV(){dQ.getSSRProps=({value:r})=>{if(!r)return{style:{display:"none"}}}}const vQ=zn({patchProp:FV},vV);let Uv,LR=!1;function gQ(){return Uv||(Uv=DD(vQ))}function yQ(){return Uv=LR?Uv:QD(vQ),LR=!0,Uv}const kT=(...r)=>{gQ().render(...r)},mQ=(...r)=>{yQ().hydrate(...r)},_Q=(...r)=>{const e=gQ().createApp(...r),{mount:t}=e;return e.mount=n=>{const i=wQ(n);if(!i)return;const a=e._component;!Ke(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},ZV=(...r)=>{const e=yQ().createApp(...r),{mount:t}=e;return e.mount=n=>{const i=wQ(n);if(i)return t(i,!0,i instanceof SVGElement)},e};function wQ(r){return Un(r)?document.querySelector(r):r}let OR=!1;const JV=()=>{OR||(OR=!0,VV(),qV())},tK=()=>{},eK=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:_F,Comment:xa,EffectScope:aF,Fragment:Mi,KeepAlive:gj,ReactiveEffect:Gg,Static:Wc,Suspense:sj,Teleport:$j,Text:uh,Transition:Y1,TransitionGroup:QV,VueElement:X1,callWithAsyncErrorHandling:No,callWithErrorHandling:rl,camelize:lo,capitalize:Hg,cloneVNode:uA,compatUtils:pV,compile:tK,computed:fr,createApp:_Q,createBlock:Vg,createCommentVNode:vr,createElementBlock:Vn,createElementVNode:Xi,createHydrationRenderer:QD,createPropsRestProxy:sV,createRenderer:DD,createSSRApp:ZV,createSlots:Cj,createStaticVNode:Kj,createTextVNode:SF,createVNode:Zr,customRef:V$,defineAsyncComponent:dj,defineComponent:wF,defineCustomElement:iQ,defineEmits:eV,defineExpose:rV,defineProps:tV,defineSSRCustomElement:LV,get devtools(){return Rf},effect:f$,effectScope:A$,getCurrentInstance:Ju,getCurrentScope:l$,getTransitionRawChildren:k1,guardReactiveProps:VD,h:JD,handleError:Th,hydrate:mQ,initCustomFormatter:lV,initDirectivesForSSR:JV,inject:Be,isMemoSame:rQ,isProxy:lF,isReactive:Xc,isReadonly:Ah,isRef:Zi,isRuntimeOnly:qj,isShallow:ng,isVNode:Pu,markRaw:uF,mergeDefaults:oV,mergeProps:KD,nextTick:dF,normalizeClass:Ug,normalizeProps:q9,normalizeStyle:Pg,onActivated:mD,onBeforeMount:ED,onBeforeUnmount:V1,onBeforeUpdate:CD,onDeactivated:_D,onErrorCaptured:SD,onMounted:Je,onRenderTracked:xD,onRenderTriggered:TD,onScopeDispose:u$,onServerPrefetch:BD,onUnmounted:ar,onUpdated:j1,openBlock:fn,popScopeId:hD,provide:Pr,proxyRefs:fF,pushScopeId:cD,queuePostFlushCb:vF,reactive:kg,readonly:AF,ref:kn,registerRuntimeCompiler:Wj,render:kT,renderList:FD,renderSlot:_r,resolveComponent:Mf,resolveDirective:Ej,resolveDynamicComponent:wj,resolveFilter:fV,resolveTransitionHooks:Ep,setBlockTracking:NT,setDevtoolsHook:lD,setTransitionHooks:lh,shallowReactive:eD,shallowReadonly:Q$,shallowRef:H$,ssrContextKey:tQ,ssrUtils:hV,stop:p$,toDisplayString:ou,toHandlerKey:Rv,toHandlers:Bj,toRaw:Rr,toRef:iD,toRefs:Nu,transformVNodeArgs:jj,triggerRef:k$,unref:nD,useAttrs:aV,useCssModule:RV,useCssVars:MV,useSSRContext:eQ,useSlots:iV,useTransitionState:mF,vModelCheckbox:FF,vModelDynamic:fQ,vModelRadio:IF,vModelSelect:cQ,vModelText:y_,vShow:dQ,version:nQ,warn:Y$,watch:fe,watchEffect:dD,watchPostEffect:vD,watchSyncEffect:hj,withAsyncContext:AV,withCtx:Qc,withDefaults:nV,withDirectives:mj,withKeys:WV,withMemo:uV,withModifiers:XV,withScopeId:ej},Symbol.toStringTag,{value:"Module"})),rK={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};let nK=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_||rK[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 EQ=nK,Kg=6378137,Vf=Math.PI*Kg,iK=[-Vf,-Vf,Vf,Vf],aK=[-180,-85,180,85],Bm=Kg*Math.log(Math.tan(Math.PI/2));let ff=class extends EQ{constructor(e){super({code:e,units:"m",extent:iK,global:!0,worldExtent:aK,getPointResolution:function(t,n){return t/Math.cosh(n[1]/Kg)}})}};const RR=[new ff("EPSG:3857"),new ff("EPSG:102100"),new ff("EPSG:102113"),new ff("EPSG:900913"),new ff("http://www.opengis.net/def/crs/EPSG/0/3857"),new ff("http://www.opengis.net/gml/srs/epsg.xml#3857")];function oK(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;iBm?a=Bm:a<-Bm&&(a=-Bm),e[i+1]=a}return e}function sK(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;ie=>{const t=TQ.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),El=r=>(r=r.toLowerCase(),e=>OF(e)===r),W1=r=>e=>typeof e===r,{isArray:$p}=Array,lg=W1("undefined");function wK(r){return r!==null&&!lg(r)&&r.constructor!==null&&!lg(r.constructor)&&Qu(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const xQ=El("ArrayBuffer");function EK(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&xQ(r.buffer),e}const CK=W1("string"),Qu=W1("function"),SQ=W1("number"),RF=r=>r!==null&&typeof r=="object",BK=r=>r===!0||r===!1,U0=r=>{if(OF(r)!=="object")return!1;const e=LF(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},TK=El("Date"),xK=El("File"),SK=El("Blob"),bK=El("FileList"),FK=r=>RF(r)&&Qu(r.pipe),IK=r=>{const e="[object FormData]";return r&&(typeof FormData=="function"&&r instanceof FormData||TQ.call(r)===e||Qu(r.toString)&&r.toString()===e)},LK=El("URLSearchParams"),OK=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zg(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,i;if(typeof r!="object"&&(r=[r]),$p(r))for(n=0,i=r.length;n0;)if(i=t[n],e===i.toLowerCase())return i;return null}const FQ=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),IQ=r=>!lg(r)&&r!==FQ;function jT(){const{caseless:r}=IQ(this)&&this||{},e={},t=(n,i)=>{const a=r&&bQ(e,i)||i;U0(e[a])&&U0(n)?e[a]=jT(e[a],n):U0(n)?e[a]=jT({},n):$p(n)?e[a]=n.slice():e[a]=n};for(let n=0,i=arguments.length;n(zg(e,(i,a)=>{t&&Qu(i)?r[a]=BQ(i,t):r[a]=i},{allOwnKeys:n}),r),MK=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),NK=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},PK=(r,e,t,n)=>{let i,a,o;const s={};if(e=e||{},r==null)return e;do{for(i=Object.getOwnPropertyNames(r),a=i.length;a-- >0;)o=i[a],(!n||n(o,r,e))&&!s[o]&&(e[o]=r[o],s[o]=!0);r=t!==!1&&LF(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},UK=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;const n=r.indexOf(e,t);return n!==-1&&n===t},DK=r=>{if(!r)return null;if($p(r))return r;let e=r.length;if(!SQ(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},QK=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&LF(Uint8Array)),HK=(r,e)=>{const n=(r&&r[Symbol.iterator]).call(r);let i;for(;(i=n.next())&&!i.done;){const a=i.value;e.call(r,a[0],a[1])}},GK=(r,e)=>{let t;const n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},kK=El("HTMLFormElement"),$K=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,i){return n.toUpperCase()+i}),QR=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),jK=El("RegExp"),LQ=(r,e)=>{const t=Object.getOwnPropertyDescriptors(r),n={};zg(t,(i,a)=>{e(i,a,r)!==!1&&(n[a]=i)}),Object.defineProperties(r,n)},VK=r=>{LQ(r,(e,t)=>{if(Qu(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=r[t];if(Qu(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},KK=(r,e)=>{const t={},n=i=>{i.forEach(a=>{t[a]=!0})};return $p(r)?n(r):n(String(r).split(e)),t},zK=()=>{},XK=(r,e)=>(r=+r,Number.isFinite(r)?r:e),vC="abcdefghijklmnopqrstuvwxyz",HR="0123456789",OQ={DIGIT:HR,ALPHA:vC,ALPHA_DIGIT:vC+vC.toUpperCase()+HR},YK=(r=16,e=OQ.ALPHA_DIGIT)=>{let t="";const{length:n}=e;for(;r--;)t+=e[Math.random()*n|0];return t};function WK(r){return!!(r&&Qu(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}const qK=r=>{const e=new Array(10),t=(n,i)=>{if(RF(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;const a=$p(n)?[]:{};return zg(n,(o,s)=>{const A=t(o,i+1);!lg(A)&&(a[s]=A)}),e[i]=void 0,a}}return n};return t(r,0)},Ut={isArray:$p,isArrayBuffer:xQ,isBuffer:wK,isFormData:IK,isArrayBufferView:EK,isString:CK,isNumber:SQ,isBoolean:BK,isObject:RF,isPlainObject:U0,isUndefined:lg,isDate:TK,isFile:xK,isBlob:SK,isRegExp:jK,isFunction:Qu,isStream:FK,isURLSearchParams:LK,isTypedArray:QK,isFileList:bK,forEach:zg,merge:jT,extend:RK,trim:OK,stripBOM:MK,inherits:NK,toFlatObject:PK,kindOf:OF,kindOfTest:El,endsWith:UK,toArray:DK,forEachEntry:HK,matchAll:GK,isHTMLForm:kK,hasOwnProperty:QR,hasOwnProp:QR,reduceDescriptors:LQ,freezeMethods:VK,toObjectSet:KK,toCamelCase:$K,noop:zK,toFiniteNumber:XK,findKey:bQ,global:FQ,isContextDefined:IQ,ALPHABET:OQ,generateString:YK,isSpecCompliantForm:WK,toJSONObject:qK};function Ir(r,e,t,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),i&&(this.response=i)}Ut.inherits(Ir,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ut.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const RQ=Ir.prototype,MQ={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{MQ[r]={value:r}});Object.defineProperties(Ir,MQ);Object.defineProperty(RQ,"isAxiosError",{value:!0});Ir.from=(r,e,t,n,i,a)=>{const o=Object.create(RQ);return Ut.toFlatObject(r,o,function(A){return A!==Error.prototype},s=>s!=="isAxiosError"),Ir.call(o,r.message,e,t,n,i),o.cause=r,o.name=r.name,a&&Object.assign(o,a),o};const ZK=null;function VT(r){return Ut.isPlainObject(r)||Ut.isArray(r)}function NQ(r){return Ut.endsWith(r,"[]")?r.slice(0,-2):r}function GR(r,e,t){return r?r.concat(e).map(function(i,a){return i=NQ(i),!t&&a?"["+i+"]":i}).join(t?".":""):e}function JK(r){return Ut.isArray(r)&&!r.some(VT)}const tz=Ut.toFlatObject(Ut,{},null,function(e){return/^is[A-Z]/.test(e)});function q1(r,e,t){if(!Ut.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,t=Ut.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,m){return!Ut.isUndefined(m[v])});const n=t.metaTokens,i=t.visitor||u,a=t.dots,o=t.indexes,A=(t.Blob||typeof Blob<"u"&&Blob)&&Ut.isSpecCompliantForm(e);if(!Ut.isFunction(i))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(Ut.isDate(p))return p.toISOString();if(!A&&Ut.isBlob(p))throw new Ir("Blob is not supported. Use a Buffer instead.");return Ut.isArrayBuffer(p)||Ut.isTypedArray(p)?A&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,v,m){let g=p;if(p&&!m&&typeof p=="object"){if(Ut.endsWith(v,"{}"))v=n?v:v.slice(0,-2),p=JSON.stringify(p);else if(Ut.isArray(p)&&JK(p)||(Ut.isFileList(p)||Ut.endsWith(v,"[]"))&&(g=Ut.toArray(p)))return v=NQ(v),g.forEach(function(E,B){!(Ut.isUndefined(E)||E===null)&&e.append(o===!0?GR([v],B,a):o===null?v:v+"[]",l(E))}),!1}return VT(p)?!0:(e.append(GR(m,v,a),l(p)),!1)}const c=[],h=Object.assign(tz,{defaultVisitor:u,convertValue:l,isVisitable:VT});function f(p,v){if(!Ut.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));c.push(p),Ut.forEach(p,function(g,_){(!(Ut.isUndefined(g)||g===null)&&i.call(e,g,Ut.isString(_)?_.trim():_,v,h))===!0&&f(g,v?v.concat(_):[_])}),c.pop()}}if(!Ut.isObject(r))throw new TypeError("data must be an object");return f(r),e}function kR(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function MF(r,e){this._pairs=[],r&&q1(r,this,e)}const PQ=MF.prototype;PQ.append=function(e,t){this._pairs.push([e,t])};PQ.toString=function(e){const t=e?function(n){return e.call(this,n,kR)}:kR;return this._pairs.map(function(i){return t(i[0])+"="+t(i[1])},"").join("&")};function ez(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function UQ(r,e,t){if(!e)return r;const n=t&&t.encode||ez,i=t&&t.serialize;let a;if(i?a=i(e,t):a=Ut.isURLSearchParams(e)?e.toString():new MF(e,t).toString(n),a){const o=r.indexOf("#");o!==-1&&(r=r.slice(0,o)),r+=(r.indexOf("?")===-1?"?":"&")+a}return r}class rz{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ut.forEach(this.handlers,function(n){n!==null&&e(n)})}}const $R=rz,DQ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},nz=typeof URLSearchParams<"u"?URLSearchParams:MF,iz=FormData,az=(()=>{let r;return typeof navigator<"u"&&((r=navigator.product)==="ReactNative"||r==="NativeScript"||r==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),oz=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),eA={isBrowser:!0,classes:{URLSearchParams:nz,FormData:iz,Blob},isStandardBrowserEnv:az,isStandardBrowserWebWorkerEnv:oz,protocols:["http","https","file","blob","url","data"]};function sz(r,e){return q1(r,new eA.classes.URLSearchParams,Object.assign({visitor:function(t,n,i,a){return eA.isNode&&Ut.isBuffer(t)?(this.append(n,t.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function Az(r){return Ut.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function lz(r){const e={},t=Object.keys(r);let n;const i=t.length;let a;for(n=0;n=t.length;return o=!o&&Ut.isArray(i)?i.length:o,A?(Ut.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):((!i[o]||!Ut.isObject(i[o]))&&(i[o]=[]),e(t,n,i[o],a)&&Ut.isArray(i[o])&&(i[o]=lz(i[o])),!s)}if(Ut.isFormData(r)&&Ut.isFunction(r.entries)){const t={};return Ut.forEachEntry(r,(n,i)=>{e(Az(n),i,t,0)}),t}return null}const uz={"Content-Type":void 0};function cz(r,e,t){if(Ut.isString(r))try{return(e||JSON.parse)(r),Ut.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}const Z1={transitional:DQ,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,a=Ut.isObject(e);if(a&&Ut.isHTMLForm(e)&&(e=new FormData(e)),Ut.isFormData(e))return i&&i?JSON.stringify(QQ(e)):e;if(Ut.isArrayBuffer(e)||Ut.isBuffer(e)||Ut.isStream(e)||Ut.isFile(e)||Ut.isBlob(e))return e;if(Ut.isArrayBufferView(e))return e.buffer;if(Ut.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return sz(e,this.formSerializer).toString();if((s=Ut.isFileList(e))||n.indexOf("multipart/form-data")>-1){const A=this.env&&this.env.FormData;return q1(s?{"files[]":e}:e,A&&new A,this.formSerializer)}}return a||i?(t.setContentType("application/json",!1),cz(e)):e}],transformResponse:[function(e){const t=this.transitional||Z1.transitional,n=t&&t.forcedJSONParsing,i=this.responseType==="json";if(e&&Ut.isString(e)&&(n&&!this.responseType||i)){const o=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(s){if(o)throw s.name==="SyntaxError"?Ir.from(s,Ir.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:eA.classes.FormData,Blob:eA.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ut.forEach(["delete","get","head"],function(e){Z1.headers[e]={}});Ut.forEach(["post","put","patch"],function(e){Z1.headers[e]=Ut.merge(uz)});const NF=Z1,hz=Ut.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),fz=r=>{const e={};let t,n,i;return r&&r.split(` +`).forEach(function(o){i=o.indexOf(":"),t=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!t||e[t]&&hz[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e},jR=Symbol("internals");function $d(r){return r&&String(r).trim().toLowerCase()}function D0(r){return r===!1||r==null?r:Ut.isArray(r)?r.map(D0):String(r)}function pz(r){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}function dz(r){return/^[-_a-zA-Z]+$/.test(r.trim())}function gC(r,e,t,n){if(Ut.isFunction(n))return n.call(this,e,t);if(Ut.isString(e)){if(Ut.isString(n))return e.indexOf(n)!==-1;if(Ut.isRegExp(n))return n.test(e)}}function vz(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function gz(r,e){const t=Ut.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:function(i,a,o){return this[n].call(this,e,i,a,o)},configurable:!0})})}class J1{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function a(s,A,l){const u=$d(A);if(!u)throw new Error("header name must be a non-empty string");const c=Ut.findKey(i,u);(!c||i[c]===void 0||l===!0||l===void 0&&i[c]!==!1)&&(i[c||A]=D0(s))}const o=(s,A)=>Ut.forEach(s,(l,u)=>a(l,u,A));return Ut.isPlainObject(e)||e instanceof this.constructor?o(e,t):Ut.isString(e)&&(e=e.trim())&&!dz(e)?o(fz(e),t):e!=null&&a(t,e,n),this}get(e,t){if(e=$d(e),e){const n=Ut.findKey(this,e);if(n){const i=this[n];if(!t)return i;if(t===!0)return pz(i);if(Ut.isFunction(t))return t.call(this,i,n);if(Ut.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=$d(e),e){const n=Ut.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||gC(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let i=!1;function a(o){if(o=$d(o),o){const s=Ut.findKey(n,o);s&&(!t||gC(n,n[s],s,t))&&(delete n[s],i=!0)}}return Ut.isArray(e)?e.forEach(a):a(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const a=t[n];(!e||gC(this,this[a],a,e))&&(delete this[a],i=!0)}return i}normalize(e){const t=this,n={};return Ut.forEach(this,(i,a)=>{const o=Ut.findKey(n,a);if(o){t[o]=D0(i),delete t[a];return}const s=e?vz(a):String(a).trim();s!==a&&delete t[a],t[s]=D0(i),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ut.forEach(this,(n,i)=>{n!=null&&n!==!1&&(t[i]=e&&Ut.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[jR]=this[jR]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=$d(o);n[s]||(gz(i,o),n[s]=!0)}return Ut.isArray(e)?e.forEach(a):a(e),this}}J1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ut.freezeMethods(J1.prototype);Ut.freezeMethods(J1);const nl=J1;function yC(r,e){const t=this||NF,n=e||t,i=nl.from(n.headers);let a=n.data;return Ut.forEach(r,function(s){a=s.call(t,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function HQ(r){return!!(r&&r.__CANCEL__)}function Xg(r,e,t){Ir.call(this,r??"canceled",Ir.ERR_CANCELED,e,t),this.name="CanceledError"}Ut.inherits(Xg,Ir,{__CANCEL__:!0});function yz(r,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new Ir("Request failed with status code "+t.status,[Ir.ERR_BAD_REQUEST,Ir.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const mz=eA.isStandardBrowserEnv?function(){return{write:function(t,n,i,a,o,s){const A=[];A.push(t+"="+encodeURIComponent(n)),Ut.isNumber(i)&&A.push("expires="+new Date(i).toGMTString()),Ut.isString(a)&&A.push("path="+a),Ut.isString(o)&&A.push("domain="+o),s===!0&&A.push("secure"),document.cookie=A.join("; ")},read:function(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function _z(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function wz(r,e){return e?r.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):r}function GQ(r,e){return r&&!_z(e)?wz(r,e):e}const Ez=eA.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function i(a){let o=a;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(o){const s=Ut.isString(o)?i(o):o;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function Cz(r){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function Bz(r,e){r=r||10;const t=new Array(r),n=new Array(r);let i=0,a=0,o;return e=e!==void 0?e:1e3,function(A){const l=Date.now(),u=n[a];o||(o=l),t[i]=A,n[i]=l;let c=a,h=0;for(;c!==i;)h+=t[c++],c=c%r;if(i=(i+1)%r,i===a&&(a=(a+1)%r),l-o{const a=i.loaded,o=i.lengthComputable?i.total:void 0,s=a-t,A=n(s),l=a<=o;t=a;const u={loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:A||void 0,estimated:A&&o&&l?(o-a)/A:void 0,event:i};u[e?"download":"upload"]=!0,r(u)}}const Tz=typeof XMLHttpRequest<"u",xz=Tz&&function(r){return new Promise(function(t,n){let i=r.data;const a=nl.from(r.headers).normalize(),o=r.responseType;let s;function A(){r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}Ut.isFormData(i)&&(eA.isStandardBrowserEnv||eA.isStandardBrowserWebWorkerEnv)&&a.setContentType(!1);let l=new XMLHttpRequest;if(r.auth){const f=r.auth.username||"",p=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";a.set("Authorization","Basic "+btoa(f+":"+p))}const u=GQ(r.baseURL,r.url);l.open(r.method.toUpperCase(),UQ(u,r.params,r.paramsSerializer),!0),l.timeout=r.timeout;function c(){if(!l)return;const f=nl.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:f,config:r,request:l};yz(function(g){t(g),A()},function(g){n(g),A()},v),l=null}if("onloadend"in l?l.onloadend=c:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(c)},l.onabort=function(){l&&(n(new Ir("Request aborted",Ir.ECONNABORTED,r,l)),l=null)},l.onerror=function(){n(new Ir("Network Error",Ir.ERR_NETWORK,r,l)),l=null},l.ontimeout=function(){let p=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const v=r.transitional||DQ;r.timeoutErrorMessage&&(p=r.timeoutErrorMessage),n(new Ir(p,v.clarifyTimeoutError?Ir.ETIMEDOUT:Ir.ECONNABORTED,r,l)),l=null},eA.isStandardBrowserEnv){const f=(r.withCredentials||Ez(u))&&r.xsrfCookieName&&mz.read(r.xsrfCookieName);f&&a.set(r.xsrfHeaderName,f)}i===void 0&&a.setContentType(null),"setRequestHeader"in l&&Ut.forEach(a.toJSON(),function(p,v){l.setRequestHeader(v,p)}),Ut.isUndefined(r.withCredentials)||(l.withCredentials=!!r.withCredentials),o&&o!=="json"&&(l.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&l.addEventListener("progress",VR(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",VR(r.onUploadProgress)),(r.cancelToken||r.signal)&&(s=f=>{l&&(n(!f||f.type?new Xg(null,r,l):f),l.abort(),l=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const h=Cz(u);if(h&&eA.protocols.indexOf(h)===-1){n(new Ir("Unsupported protocol "+h+":",Ir.ERR_BAD_REQUEST,r));return}l.send(i||null)})},Q0={http:ZK,xhr:xz};Ut.forEach(Q0,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});const Sz={getAdapter:r=>{r=Ut.isArray(r)?r:[r];const{length:e}=r;let t,n;for(let i=0;ir instanceof nl?r.toJSON():r;function Tp(r,e){e=e||{};const t={};function n(l,u,c){return Ut.isPlainObject(l)&&Ut.isPlainObject(u)?Ut.merge.call({caseless:c},l,u):Ut.isPlainObject(u)?Ut.merge({},u):Ut.isArray(u)?u.slice():u}function i(l,u,c){if(Ut.isUndefined(u)){if(!Ut.isUndefined(l))return n(void 0,l,c)}else return n(l,u,c)}function a(l,u){if(!Ut.isUndefined(u))return n(void 0,u)}function o(l,u){if(Ut.isUndefined(u)){if(!Ut.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function s(l,u,c){if(c in e)return n(l,u);if(c in r)return n(void 0,l)}const A={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(l,u)=>i(zR(l),zR(u),!0)};return Ut.forEach(Object.keys(r).concat(Object.keys(e)),function(u){const c=A[u]||i,h=c(r[u],e[u],u);Ut.isUndefined(h)&&c!==s||(t[u]=h)}),t}const kQ="1.3.1",PF={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{PF[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});const XR={};PF.transitional=function(e,t,n){function i(a,o){return"[Axios v"+kQ+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(e===!1)throw new Ir(i(o," has been removed"+(t?" in "+t:"")),Ir.ERR_DEPRECATED);return t&&!XR[o]&&(XR[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(a,o,s):!0}};function bz(r,e,t){if(typeof r!="object")throw new Ir("options must be an object",Ir.ERR_BAD_OPTION_VALUE);const n=Object.keys(r);let i=n.length;for(;i-- >0;){const a=n[i],o=e[a];if(o){const s=r[a],A=s===void 0||o(s,a,r);if(A!==!0)throw new Ir("option "+a+" must be "+A,Ir.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Ir("Unknown option "+a,Ir.ERR_BAD_OPTION)}}const KT={assertOptions:bz,validators:PF},ql=KT.validators;class __{constructor(e){this.defaults=e,this.interceptors={request:new $R,response:new $R}}request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Tp(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:a}=t;n!==void 0&&KT.assertOptions(n,{silentJSONParsing:ql.transitional(ql.boolean),forcedJSONParsing:ql.transitional(ql.boolean),clarifyTimeoutError:ql.transitional(ql.boolean)},!1),i!==void 0&&KT.assertOptions(i,{encode:ql.function,serialize:ql.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o;o=a&&Ut.merge(a.common,a[t.method]),o&&Ut.forEach(["delete","get","head","post","put","patch","common"],p=>{delete a[p]}),t.headers=nl.concat(o,a);const s=[];let A=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(t)===!1||(A=A&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const l=[];this.interceptors.response.forEach(function(v){l.push(v.fulfilled,v.rejected)});let u,c=0,h;if(!A){const p=[KR.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,l),h=p.length,u=Promise.resolve(t);c{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},e(function(a,o,s){n.reason||(n.reason=new Xg(a,o,s),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new UF(function(i){e=i}),cancel:e}}}const Fz=UF;function Iz(r){return function(t){return r.apply(null,t)}}function Lz(r){return Ut.isObject(r)&&r.isAxiosError===!0}const zT={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(zT).forEach(([r,e])=>{zT[e]=r});const Oz=zT;function $Q(r){const e=new H0(r),t=BQ(H0.prototype.request,e);return Ut.extend(t,H0.prototype,e,{allOwnKeys:!0}),Ut.extend(t,e,null,{allOwnKeys:!0}),t.create=function(i){return $Q(Tp(r,i))},t}const Qi=$Q(NF);Qi.Axios=H0;Qi.CanceledError=Xg;Qi.CancelToken=Fz;Qi.isCancel=HQ;Qi.VERSION=kQ;Qi.toFormData=q1;Qi.AxiosError=Ir;Qi.Cancel=Qi.CanceledError;Qi.all=function(e){return Promise.all(e)};Qi.spread=Iz;Qi.isAxiosError=Lz;Qi.mergeConfig=Tp;Qi.AxiosHeaders=nl;Qi.formToJSON=r=>QQ(Ut.isHTMLForm(r)?new FormData(r):r);Qi.HttpStatusCode=Oz;Qi.default=Qi;const YR=Qi,Rz=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t},Mz={name:"MapsOverlay",data(){const r=kn(DR([-7.5029786,53.4494762])),e=kn("EPSG:3857"),t=kn(7),n=kn(0),i=kn(10),a=kn(1),o=kn("black"),s=kn("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(){this.getLiveTrainData()},methods:{getLiveTrainData(){let r=this.$loading.show({loader:"dots",container:this.$refs.container,canCancel:!1});YR.get("https://us-central1-concept-d5be1.cloudfunctions.net/getLiveTrainData").then(e=>{r.hide(),this.dbLiveTrainData=e.data;for(var t=0;t{console.log(e)})},getSelectedTrain(r){this.display=!0,this.selectedDataMap.TrainCode=this.allDataMap[r].TrainCode[0],this.selectedDataMap.TrainDate=this.allDataMap[r].TrainDate[0],this.selectedDataMap.TrainStatus=this.allDataMap[r].TrainStatus[0],this.selectedDataMap.TrainLongitude=this.allDataMap[r].TrainLongitude[0],this.selectedDataMap.TrainLatitude=this.allDataMap[r].TrainLatitude[0],this.selectedDataMap.Direction=this.allDataMap[r].Direction[0],this.selectedDataMap.PublicMessage=this.allDataMap[r].PublicMessage[0]},postLiveTrainData(){YR.get("https://us-central1-concept-d5be1.cloudfunctions.net/postLiveTrainData").then(r=>{console.log(r.data)}).catch(r=>{console.log(r)})}}},jQ=r=>(cD("data-v-37987b9c"),r=r(),hD(),r),Nz={key:0,id:"sidebarDiv"},Pz={id:"sidebarHeader"},Uz=jQ(()=>Xi("img",{id:"headerImage",src:"https://cdn.discordapp.com/attachments/1017419092447207436/1063092138029625394/pixil-frame-0.png"},null,-1)),Dz={id:"sidebarDiv"},Qz=["onClick"],Hz=jQ(()=>Xi("img",{src:"https://cdn.discordapp.com/attachments/1017419092447207436/1063092138029625394/pixil-frame-0.png",class:"trainMapIcon"},null,-1)),Gz=[Hz];function kz(r,e,t,n,i,a){const o=Mf("ol-view"),s=Mf("ol-source-osm"),A=Mf("ol-tile-layer"),l=Mf("ol-overlay"),u=Mf("ol-map");return fn(),Vn(Mi,null,[Xi("button",{onClick:e[0]||(e[0]=(...c)=>a.getLiveTrainData&&a.getLiveTrainData(...c))},"Fetch Data"),Xi("button",{onClick:e[1]||(e[1]=(...c)=>a.postLiveTrainData&&a.postLiveTrainData(...c))},"Populate Database"),Zr(Y1,{id:"sidebar",name:"slideLeft"},{default:Qc(()=>[this.display?(fn(),Vn("div",Nz,[Xi("div",Pz,[Uz,Xi("div",{onClick:e[2]||(e[2]=c=>this.display=!1),id:"xButton"},"X")]),Xi("div",Dz,[Xi("h2",null,"Train Code: "+ou(i.selectedDataMap.TrainCode),1),Xi("p",null,"Date: "+ou(i.selectedDataMap.TrainDate),1),Xi("p",null,"Status: "+ou(i.selectedDataMap.TrainStatus),1),Xi("p",null,"Longitude: "+ou(i.selectedDataMap.TrainLongitude),1),Xi("p",null,"Latitude: "+ou(i.selectedDataMap.TrainLatitude),1),Xi("p",null,"Direction: "+ou(i.selectedDataMap.Direction),1),Xi("p",null,"Public Message: "+ou(i.selectedDataMap.PublicMessage),1)])])):vr("",!0)]),_:1}),Zr(u,{loadTilesWhileAnimating:!0,loadTilesWhileInteracting:!0,style:{height:"1000px"}},{default:Qc(()=>[Zr(o,{ref:"view",center:i.center,rotation:i.rotation,zoom:i.zoom,projection:i.projection},null,8,["center","rotation","zoom","projection"]),Zr(A,null,{default:Qc(()=>[Zr(s)]),_:1}),(fn(!0),Vn(Mi,null,FD(i.coordinates,(c,h)=>(fn(),Vg(l,{position:c},{default:Qc(()=>[Xi("div",{class:"overlay-content",onClick:f=>a.getSelectedTrain(h)},Gz,8,Qz)]),_:2},1032,["position"]))),256))]),_:1})],64)}const $z=Rz(Mz,[["render",kz],["__scopeId","data-v-37987b9c"]]),jz={__name:"App",setup(r){return(e,t)=>(fn(),Vg($z))}};var Vz=Object.defineProperty,Kz=Object.defineProperties,zz=Object.getOwnPropertyDescriptors,WR=Object.getOwnPropertySymbols,Xz=Object.prototype.hasOwnProperty,Yz=Object.prototype.propertyIsEnumerable,qR=(r,e,t)=>e in r?Vz(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Dn=(r,e)=>{for(var t in e||(e={}))Xz.call(e,t)&&qR(r,t,e[t]);if(WR)for(var t of WR(e))Yz.call(e,t)&&qR(r,t,e[t]);return r},Ms=(r,e)=>Kz(r,zz(e)),Wz=function(){function r(){this.disposed=!1}return r.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},r.prototype.disposeInternal=function(){},r}(),tw=Wz;function qz(r,e,t){for(var n,i,a=t||Hu,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 Hu(r,e){return r>e?1:r=0}function ew(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 sA(){return!0}function xh(){return!1}function hh(){}function tX(r){var e=!1,t,n,i;return function(){var a=Array.prototype.slice.call(arguments);return(!e||this!==i||!Cl(a,n))&&(e=!0,i=this,n=a,t=r.apply(this,arguments)),t}}function Te(){return function(){throw new Error("Unimplemented abstract method.")}()}var eX=0;function de(r){return r.ol_uid||(r.ol_uid=String(++eX))}var VQ="6.14.1",Gu=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"",rX=Gu.indexOf("firefox")!==-1,nX=Gu.indexOf("safari")!==-1&&Gu.indexOf("chrom")==-1,iX=nX&&!!(Gu.indexOf("version/15.4")>=0||Gu.match(/cpu (os|iphone os) 15_4 like mac os x/)),aX=Gu.indexOf("webkit")!==-1&&Gu.indexOf("edge")==-1,KQ=Gu.indexOf("macintosh")!==-1,fh=typeof devicePixelRatio<"u"?devicePixelRatio:1,rw=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,oX=typeof Image<"u"&&Image.prototype.decode,zQ=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}(),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){var n=this,i="v"+VQ.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),XQ=AX;function we(r,e){if(!r)throw new XQ(e)}var DF=new Array(6);function si(){return[1,0,0,1,0,0]}function Dv(r){return Yg(r,1,0,0,1,0,0)}function jp(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 Yg(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 lX(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 hn(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 uX(r,e){var t=Math.cos(e),n=Math.sin(e);return jp(r,Yg(DF,t,n,-n,t,0,0))}function Qv(r,e,t){return jp(r,Yg(DF,e,0,0,t,0,0))}function cX(r,e,t){return Yg(r,e,0,0,t,0,0)}function hX(r,e,t){return jp(r,Yg(DF,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 Wg(r,e){var t=fX(e);we(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 fX(r){return r[0]*r[3]-r[1]*r[2]}var ZR;function QF(r){var e="matrix("+r.join(", ")+")";if(rw)return e;var t=ZR||(ZR=document.createElement("div"));return t.style.transform=e,t.style.transform}var pv={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 Wi(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 ho(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 ec(r){return ho(1/0,1/0,-1/0,-1/0,r)}function qc(r,e){var t=r[0],n=r[1];return ho(t,n,t,n,e)}function dX(r,e){var t=ec(e);return GF(t,r)}function iw(r,e,t,n,i){var a=ec(i);return kF(a,r,e,t,n)}function vX(r,e){var t=ec(e);return YQ(t,r)}function cA(r,e){return r[0]==e[0]&&r[2]==e[2]&&r[1]==e[1]&&r[3]==e[3]}function gX(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 Zc(r,e){e[0]r[2]&&(r[2]=e[0]),e[1]r[3]&&(r[3]=e[1])}function GF(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 Kp(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 $F(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=Or(t),a=Math.floor((n[0]-t[0])/i),o=a*i;r[0]-=o,r[2]-=o}return r}var EX=Object.freeze(Object.defineProperty({__proto__:null,boundingExtent:Wi,buffer:Ka,clone:HF,closestSquaredDistanceXY:tc,containsCoordinate:Fs,containsExtent:Oo,containsXY:nw,coordinateRelationship:w_,createEmpty:wi,createOrUpdate:ho,createOrUpdateEmpty:ec,createOrUpdateFromCoordinate:qc,createOrUpdateFromCoordinates:dX,createOrUpdateFromFlatCoordinates:iw,createOrUpdateFromRings:vX,equals:cA,approximatelyEquals:gX,extend:ku,extendCoordinate:Zc,extendCoordinates:GF,extendFlatCoordinates:kF,extendRings:YQ,extendXY:WQ,forEachCorner:aw,getArea:ug,getBottomLeft:qg,getBottomRight:Vp,getCenter:ba,getCorner:qQ,getEnlargedArea:yX,getForViewAndSize:Jc,getHeight:li,getIntersectionArea:mX,getIntersection:es,getMargin:_X,getSize:wX,getTopLeft:Ns,getTopRight:Zg,getWidth:Or,intersects:Nn,isEmpty:Kp,returnOrUpdate:ZQ,scaleFromCenter:JQ,intersectsSegment:t6,applyTransform:$F,wrapX:e6},Symbol.toStringTag,{value:"Module"}));function bn(r,e,t){return Math.min(Math.max(r,e),t)}var CX=function(){var r;return"cosh"in Math?r=Math.cosh:r=function(e){var t=Math.exp(e);return(t+1/t)/2},r}(),r6=function(){var r;return"log2"in Math?r=Math.log2:r=function(e){return Math.log(e)*Math.LOG2E},r}();function BX(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 th(r,e,t,n)}function th(r,e,t,n){var i=t-r,a=n-e;return i*i+a*a}function TX(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 JR(r){return r*180/Math.PI}function Su(r){return r*Math.PI/180}function bu(r,e){var t=r%e;return t*e<0?t+e:t}function qA(r,e,t){return r+t*(e-r)}function jF(r,e){var t=Math.pow(10,e);return Math.round(r*t)/t}function tM(r,e){return Math.round(jF(r,e))}function Kf(r,e){return Math.floor(jF(r,e))}function du(r,e){return Math.ceil(jF(r,e))}var n6=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,i6=/^([a-z]*)$|^hsla?\(.*\)$/i;function il(r){return typeof r=="string"?r:s6(r)}function a6(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 o6=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=xX(n),e[n]=i,++t}return i}}();function $u(r){return Array.isArray(r)?r:o6(r)}function xX(r){var e,t,n,i,a;if(i6.exec(r)&&(r=a6(r)),n6.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),eM(a)):r.indexOf("rgb(")==0?(a=r.slice(4,-1).split(",").map(Number),a.push(1),eM(a)):we(!1,14);return a}function eM(r){return r[0]=bn(r[0]+.5|0,0,255),r[1]=bn(r[1]+.5|0,0,255),r[2]=bn(r[2]+.5|0,0,255),r[3]=bn(r[3],0,1),r}function s6(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 SX(r){return i6.test(r)&&(r=a6(r)),n6.test(r)||r.indexOf("rgba(")===0||r.indexOf("rgb(")===0}var bX=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=rM(e,t,n);return i in this.cache_?this.cache_[i]:null},r.prototype.set=function(e,t,n,i){var a=rM(e,t,n);this.cache_[a]=i,++this.cacheSize_},r.prototype.setSize=function(e){this.maxCacheSize_=e,this.expire()},r}();function rM(r,e,t){var n=t?il(t):"null";return e+":"+r+":"+n}var E_=new bX,FX=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 IX(r){r.stopPropagation()}var vo=FX,ph={PROPERTYCHANGE:"propertychange"},ve=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]=hh,++this.pendingRemovals_[t]):(i.splice(a,1),i.length===0&&delete this.listeners_[t]))}},e}(tw),bh=OX,me={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 Ue(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 cg(r,e,t,n){return Ue(r,e,t,n,!0)}function Nr(r){r&&r.target&&(r.target.removeEventListener(r.type,r.listener),Sh(r))}var RX=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)}}(),Jg=function(r){RX(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(me.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 Fh=DX;function jd(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 l6(r,e){for(var t=(""+r).split("."),n=(""+e).split("."),i=0;io)return 1;if(o>a)return-1}return 0}function u6(r,e){return r[0]+=+e[0],r[1]+=+e[1],r}function QX(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 zF(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 Es(r,e){for(var t=!0,n=r.length-1;n>=0;--n)if(r[n]!=e[n]){t=!1;break}return t}function XF(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 c6(r,e){return r[0]*=e,r[1]*=e,r}function al(r,e){var t=r[0]-e[0],n=r[1]-e[1];return t*t+n*n}function iM(r,e){return Math.sqrt(al(r,e))}function HX(r,e){return al(r,zF(r,e))}function YF(r,e){if(e.canWrapX()){var t=Or(e.getExtent()),n=h6(r,e,t);n&&(r[0]-=n*t)}return r}function h6(r,e,t){var n=e.getExtent(),i=0;if(e.canWrapX()&&(r[0]n[2])){var a=t||Or(n);i=Math.floor((r[0]-n[0])/a)}return i}var GX=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)}}(),kX=function(r){GX(e,r);function e(t){var n=r.call(this)||this;return n.map_=t,n}return e.prototype.dispatchRenderEvent=function(t,n){Te()},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]),Wg(a,i)},e.prototype.forEachFeatureAtCoordinate=function(t,n,i,a,o,s,A,l){var u,c=n.viewState;function h(Y,z,tt,J){return o.call(s,z,Y?tt:null,J)}var f=c.projection,p=YF(t.slice(),f),v=[[0,0]];if(f.canWrapX()&&a){var m=f.getExtent(),g=Or(m);v.push([-g,0],[g,0])}for(var _=n.layerStatesArray,E=_.length,B=[],L=[],O=0;O=0;--b){var T=_[b],F=T.layer;if(F.hasRenderer()&&C_(T,c)&&A.call(l,F)){var M=F.getRenderer(),S=F.getSource();if(M&&S){var x=S.getWrapX()?p:t,N=h.bind(null,T.managed);L[0]=x[0]+v[O][0],L[1]=x[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(Y,z){return Y.distanceSq+=z*P}),B.sort(function(Y,z){return Y.distanceSq-z.distanceSq}),B.some(function(Y){return u=Y.callback(Y.feature,Y.layer,Y.geometry)}),u}},e.prototype.forEachLayerAtPixel=function(t,n,i,a,o){return Te()},e.prototype.hasFeatureAtCoordinate=function(t,n,i,a,o,s){var A=this.forEachFeatureAtCoordinate(t,n,i,a,sA,this,o,s);return A!==void 0},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){Te()},e.prototype.scheduleExpireIconCache=function(t){E_.canExpireCache()&&t.postRenderFunctions.push($X)},e}(tw);function $X(r,e){E_.expire()}var jX=kX,VX=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)}}(),KX=function(r){VX(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}(vo),Hv=KX,Tm="ol-hidden",zX="ol-selectable",hA="ol-unselectable",aM="ol-unsupported",Ih="ol-control",B_="ol-collapsed",XX=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"),oM=["style","variant","weight","size","lineHeight","family"],f6=function(r){var e=r.match(XX);if(!e)return null;for(var t={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},n=0,i=oM.length;n=0;--s)a[s].renderDeclutter(t);qX(this.element_,this.children_),this.dispatchRenderEvent(so.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()&&C_(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}(jX),y6=aY,$n={ADD:"add",REMOVE:"remove"},m6=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)}}(),AM={LENGTH:"length"},xm=function(r){m6(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.element=n,a.index=i,a}return e}(vo),oY=function(r){m6(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_&&(Nr(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(me.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Nr(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(Nr),this.dragListenerKeys_.length=0,this.element_=null,r.prototype.disposeInternal.call(this)},e}(bh),pY=fY,Xs={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},ti={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},F_=1/0,dY=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,Sh(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){we(!(this.keyFunction_(e)in this.queuedElements_),31);var t=this.priorityFunction_(e);return t!=F_?(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===ye.IDLE&&!(s in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[s]=!0,++this.tilesLoading_,++i,o.load())},e}(vY),mY=yY;function _Y(r,e,t,n,i){if(!r||!(t in r.wantedTiles)||!r.wantedTiles[t][e.getKey()])return F_;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"},zp={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},Is={};Is[zp.RADIANS]=6370997/(2*Math.PI);Is[zp.DEGREES]=2*Math.PI*6370997/360;Is[zp.FEET]=.3048;Is[zp.METERS]=1;Is[zp.USFEET]=1200/3937;var Ga=zp,mn={ANIMATING:0,INTERACTING:1},bo={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},wY=42,WF=256,EY=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}(),Bl=EY,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)}}(),ey=6378137,zf=Math.PI*ey,BY=[-zf,-zf,zf,zf],TY=[-180,-85,180,85],Sm=ey*Math.log(Math.tan(Math.PI/2)),pf=function(r){CY(e,r);function e(t){return r.call(this,{code:t,units:Ga.METERS,extent:BY,global:!0,worldExtent:TY,getPointResolution:function(n,i){return n/CX(i[1]/ey)}})||this}return e}(Bl),lM=[new pf("EPSG:3857"),new pf("EPSG:102100"),new pf("EPSG:102113"),new pf("EPSG:900913"),new pf("http://www.opengis.net/def/crs/EPSG/0/3857"),new pf("http://www.opengis.net/gml/srs/epsg.xml#3857")];function xY(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;oSm?s=Sm:s<-Sm&&(s=-Sm),a[o+1]=s}return a}function SY(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 UY(r,e,t,n){var i=Re(r),a=Re(e);bp(i,a,hM(t)),bp(a,i,hM(n))}function Zs(r,e){if(r===e)return!0;var t=r.getUnits()===e.getUnits();if(r.getCode()===e.getCode())return t;var n=vh(r,e);return n===qF&&t}function vh(r,e){var t=r.getCode(),n=e.getCode(),i=w6(t,n);return i||(i=ow),i}function yg(r,e){var t=Re(r),n=Re(e);return vh(t,n)}function ju(r,e,t){var n=yg(e,t);return n(r,void 0,r.length)}function O_(r,e,t,n){var i=yg(e,t);return $F(r,i,void 0,n)}var DY=null;function gh(){return DY}function Fp(r,e){return r}function xn(r,e){return qT&&!Es(r,[0,0])&&r[0]>=-180&&r[0]<=180&&r[1]>=-90&&r[1]<=90&&(qT=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),r}function sw(r,e){return r}function Ro(r,e){return r}function QY(r,e){return r}function fM(r,e,t){return function(n){var i=n[0],a=n[1],o,s;if(r.canWrapX()){var A=r.getExtent(),l=Or(A);s=h6(n,r,l),s&&(i=i-s*l),i=bn(i,A[0],A[2]),a=bn(a,A[1],A[3]),o=t([i,a])}else o=t(n);return s&&e.canWrapX()&&(o[0]+=s*Or(e.getExtent())),o}}function HY(){ZT(lM),ZT(cM),PY(cM,lM,xY,SY)}HY();function pM(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=bn(n[0],h,f),g=bn(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 GY(r){return r}function JF(r,e,t,n){var i=Or(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 tI(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),bn(n,t/2,e*2)}function kY(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?JF(A,t,o,n):A;if(s){var c=e!==void 0?e:!0;return c?tI(i,u,l):bn(i,l,u)}var h=Math.min(u,i),f=Math.floor(ew(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 oI(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 x6(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 cI(r,e,t,n,i,a){if(t.length===0||!kc(r,e,t[0],n,i,a))return!1;for(var o=1,s=t.length;oB&&(l=(u+c)/2,cI(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 F6(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:I6(r,e,t,n,function(o,s){return t6(i,o,s)}):!1}function pW(r,e,t,n,i){for(var a=0,o=t.length;a0}function O6(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_[mn.INTERACTING]>0},e.prototype.cancelAnimations=function(){this.setHint(mn.ANIMATING,-this.hints_[mn.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(mn.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]],XF(i,t-this.getRotation()),u6(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&&Fp(t,this.getProjection())},e.prototype.getCenterInternal=function(){return this.get(bo.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 sw(n,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var n=t||this.getViewportSizeMinusPadding_(),i=this.getCenterInternal();we(i,1);var a=this.getResolution();we(a!==void 0,2);var o=this.getRotation();return we(o!==void 0,3),Jc(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(bo.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,n){return this.getResolutionForExtentInternal(Ro(t,this.getProjection()),n)},e.prototype.getResolutionForExtentInternal=function(t,n){var i=n||this.getViewportSizeMinusPadding_(),a=Or(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(bo.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=EC(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=ew(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=bn(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[n]/this.resolutions_[n+1];return this.resolutions_[n]/Math.pow(i,bn(t-n,0,1))}else return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,n){var i;if(we(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function",24),Array.isArray(t)){we(!Kp(t),25);var a=Ro(t,this.getProjection());i=Vu(a)}else if(t.getType()===st.CIRCLE){var a=Ro(t.getExtent(),this.getProjection());i=Vu(a),i.rotate(this.getRotation(),ba(a))}else{var o=gh();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 M6(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 FW=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 N6(r){if(r instanceof Fh){r.setMapInternal(null);return}r instanceof ty&&r.getLayers().forEach(N6)}function P6(r,e){if(r instanceof Fh){r.setMapInternal(e);return}if(r instanceof ty)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[mn.ANIMATING]||o[mn.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),!Cl(n,this.renderedAttributions_)){d6(this.ulElement_);for(var a=0,o=n.length;a0&&i%(2*Math.PI)!==0?n.animate({rotation:0,duration:this.duration_,easing:rs}):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(Tm);!o&&i===0?this.element.classList.add(Tm):o&&i!==0&&this.element.classList.remove(Tm)}this.label_.style.transform=a}this.rotation_=i}},e}(wr),Q6=DW,QW=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)}}(),HW=function(r){QW(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(me.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(me.CLICK,n.handleClick_.bind(n,-o),!1);var v=a+" "+hA+" "+Ih,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:rs})):i.setZoom(o)}}},e}(wr),H6=HW,GW=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)}}(),EM=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],CM={ENTERFULLSCREEN:"enterfullscreen",LEAVEFULLSCREEN:"leavefullscreen"},kW=function(r){GW(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(me.CLICK,n.handleClick_.bind(n),!1),n.setClassName_(n.button_,n.isInFullscreen_),n.element.className="".concat(n.cssClassName_," ").concat(hA," ").concat(Ih),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(BM(n))if(TM(n))jW(n);else{var i=void 0;this.source_?i=typeof this.source_=="string"?n.getElementById(this.source_):this.source_:i=t.getTargetElement(),this.keys_?$W(i):G6(i)}}},e.prototype.handleFullScreenChange_=function(){var t=this.getMap();if(t){var n=this.isInFullscreen_;this.isInFullscreen_=TM(t.getOwnerDocument()),n!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?(xp(this.labelActiveNode_,this.labelNode_),this.dispatchEvent(CM.ENTERFULLSCREEN)):(xp(this.labelNode_,this.labelActiveNode_),this.dispatchEvent(CM.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*BC||f>v*BC?this.resetExtent_():Oo(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(BC/Fm)/Math.LN2,l=1/(Math.pow(2,A/2)*Fm);JQ(o,l),s.fitInternal(Vu(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_=cg(this.ovmap_,Xs.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(B_),this.collapsed_?xp(this.collapseLabel_,this.label_):xp(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}(wr),JW=ZW,tq=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)}}(),TC="units",wc={DEGREES:"degrees",IMPERIAL:"imperial",NAUTICAL:"nautical",METRIC:"metric",US:"us"},eq=[1,2,5],xC=25.4/.28,rq=function(r){tq(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+" "+hA,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(TC,n.handleUnitsChanged_),n.setUnits(i.units||wc.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(TC)},e.prototype.handleUnitsChanged_=function(){this.updateElement_()},e.prototype.setUnits=function(t){this.set(TC,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==wc.DEGREES?Ga.DEGREES:Ga.METERS,s=L_(i,t.resolution,n,o),A=this.minWidth_*(this.dpi_||xC)/xC,l=A*s,u="";if(a==wc.DEGREES){var c=Is[Ga.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=L_(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,Ga.METERS),n=this.dpi_||xC,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}(wr),nq=rq,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)}}(),Vd={VERTICAL:0,HORIZONTAL:1},aq=function(r){iq(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_=Vd.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 "+hA;var s=n.element;return s.className=a+" "+hA+" "+Ih,s.appendChild(o),s.addEventListener(qs.POINTERDOWN,n.handleDraggerStart_.bind(n),!1),s.addEventListener(qs.POINTERMOVE,n.handleDraggerDrag_.bind(n),!1),s.addEventListener(qs.POINTERUP,n.handleDraggerEnd_.bind(n),!1),s.addEventListener(me.CLICK,n.handleContainerClick_.bind(n),!1),o.addEventListener(me.CLICK,IX,!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_=Vd.HORIZONTAL,this.widthLimit_=n-A):(this.direction_=Vd.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:rs})},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(Ue(o,qs.POINTERMOVE,i,this),Ue(o,qs.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(Nr),this.dragListenerKeys_.length=0}},e.prototype.setThumbPosition_=function(t){var n=this.getPositionForResolution_(t),i=this.element.firstElementChild;this.direction_==Vd.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_===Vd.HORIZONTAL?i=t/this.widthLimit_:i=n/this.heightLimit_,bn(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 bn(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}(wr),oq=aq,sq=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){sq(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(me.CLICK,n.handleClick_.bind(n),!1);var l=a+" "+hA+" "+Ih,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(Vu(i))},e}(wr),lq=Aq;function uq(r){var e=r||{},t=new Ai,n=e.zoom!==void 0?e.zoom:!0;n&&t.push(new H6(e.zoomOptions));var i=e.rotate!==void 0?e.rotate:!0;i&&t.push(new Q6(e.rotateOptions));var a=e.attribution!==void 0?e.attribution:!0;return a&&t.push(new D6(e.attributionOptions)),t}var rx={ACTIVE:"active"},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)}}(),hq=function(r){cq(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(rx.ACTIVE)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(rx.ACTIVE,t)},e.prototype.setMap=function(t){this.map_=t},e}(ui);function fq(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:nI,center:r.getConstrainedCenter(i)})}}function fI(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:rs})}}var Xp=hq,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)}}(),dq=function(r){pq(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==or.DBLCLICK){var i=t.originalEvent,a=t.map,o=t.coordinate,s=i.shiftKey?-this.delta_:this.delta_,A=a.getView();fI(A,s,o,this.duration_),i.preventDefault(),n=!0}return!n},e}(Xp),vq=dq,gq=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)}}(),yq=function(r){gq(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==or.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==or.POINTERUP){var i=this.handleUpEvent(t);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(t.type==or.POINTERDOWN){var a=this.handleDownEvent(t);this.handlingDownUpSequence=a,n=this.stopDown(a)}else t.type==or.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(mq(t)){var n=t.originalEvent,i=n.pointerId.toString();t.type==or.POINTERUP?delete this.trackedPointers_[i]:t.type==or.POINTERDOWN?this.trackedPointers_[i]=n:i in this.trackedPointers_&&(this.trackedPointers_[i]=n),this.targetPointers=VF(this.trackedPointers_)}},e}(Xp);function pI(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}(Do),Fq=bq,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)}}(),Lq=function(r){Iq(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,{stopDown:xh})||this,n.condition_=i.condition?i.condition:V6,n.lastAngle_=void 0,n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleDragEvent=function(t){if(eh(t)){var n=t.map,i=n.getView();if(i.getConstraints().rotation!==eI){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(!eh(t))return!0;var n=t.map,i=n.getView();return i.endInteraction(this.duration_),!1},e.prototype.handleDownEvent=function(t){if(!eh(t))return!1;if(vI(t)&&this.condition_(t)){var n=t.map;return n.getView().beginInteraction(),this.lastAngle_=void 0,!0}else return!1},e}(Do),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=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 Fn([a])},e.prototype.getGeometry=function(){return this.geometry_},e}(tw),Nq=Mq,z6=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)}}(),Im={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},SC=function(r){z6(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.coordinate=n,a.mapBrowserEvent=i,a}return e}(vo),Pq=function(r){z6(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un;var i=t||{};return n.box_=new Nq(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:vI,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 SC(Im.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 SC(n?Im.BOXEND:Im.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 SC(Im.BOXSTART,t.coordinate,t)),!0):!1},e.prototype.onBoxEnd=function(t){},e}(Do),Uq=Pq,Dq=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)}}(),Qq=function(r){Dq(e,r);function e(t){var n=this,i=t||{},a=i.condition?i.condition:ny;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:rs})},e}(Uq),Hq=Qq,Ec={LEFT:37,UP:38,RIGHT:39,DOWN:40},Gq=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)}}(),kq=function(r){Gq(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.defaultCondition_=function(a){return pw(a)&&gI(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==me.KEYDOWN){var i=t.originalEvent,a=i.keyCode;if(this.condition_(t)&&(a==Ec.DOWN||a==Ec.LEFT||a==Ec.RIGHT||a==Ec.UP)){var o=t.map,s=o.getView(),A=s.getResolution()*this.pixelDelta_,l=0,u=0;a==Ec.DOWN?u=-A:a==Ec.LEFT?l=-A:a==Ec.RIGHT?l=A:u=A;var c=[l,u];XF(c,s.getRotation()),fq(s,c,this.duration_),i.preventDefault(),n=!0}}return!n},e}(Xp),$q=kq,jq=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)}}(),Vq=function(r){jq(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.condition_=i.condition?i.condition:gI,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==me.KEYDOWN||t.type==me.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();fI(A,s,void 0,this.duration_),i.preventDefault(),n=!0}}return!n},e}(Xp),Kq=Vq,zq=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}(),Xq=zq,Yq=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)}}(),bC={TRACKPAD:"trackpad",WHEEL:"wheel"},Wq=function(r){Yq(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:hw;return n.condition_=i.onFocusOnly?M_(dI,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!==me.WHEEL)return!0;var i=t.map,a=t.originalEvent;a.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate);var o;if(t.type==me.WHEEL&&(o=a.deltaY,rX&&a.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(o/=fh),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?bC.TRACKPAD:bC.WHEEL);var A=i.getView();if(this.mode_===bC.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=-bn(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(n.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),fI(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}(Xp),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=this,i=t||{},a=i;return a.stopDown||(a.stopDown=xh),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!==eI){var u=A.getViewport().getBoundingClientRect(),c=pI(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}(Do),t3=Jq,e3=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)}}(),r3=function(r){e3(e,r);function e(t){var n=this,i=t||{},a=i;return a.stopDown||(a.stopDown=xh),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=pI(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}(Do),n3=r3,Ts={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"},i3=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)}}(),a3=function(r){i3(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,i)||this,n.condition_=i.condition?i.condition:ny,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(eh(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(!eh(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 eh(t)&&this.condition_(t)?(t.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0,!0):!1},e}(Do),o3=a3,s3=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)}}(),X6=function(r){s3(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:aw(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));q6(r,e,u,c,i)}var h=r[e],f=t,p=n;for(Kd(r,t,e),i(r[n],h)>0&&Kd(r,t,n);f0;)p--}i(r[t],h)===0?Kd(r,t,p):(p++,Kd(r,p,n)),p<=e&&(t=p+1),e<=p&&(n=p-1)}}function Kd(r,e,t){var n=r[e];r[e]=r[t],r[t]=n}function w3(r,e){return re?1:0}class Z6{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(!Om(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=Uf(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,df(n,this.toBBox),df(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)}_splitRoot(e,t){this.data=Uf([e,t]),this.data.height=e.height+1,this.data.leaf=!1,df(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=dv(e,0,s,this.toBBox),l=dv(e,s,n,this.toBBox),u=x3(A,l),c=FC(A)+FC(l);u=t;l--){const u=e.children[l];vv(s,e.leaf?a(u):u),A+=Lm(s)}return A}_adjustParentBBoxes(e,t,n){for(let i=n;i>=0;i--)vv(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():df(e[t],this.toBBox)}}function E3(r,e,t){if(!t)return e.indexOf(r);for(let n=0;n=r.minX&&e.maxY>=r.minY}function Uf(r){return{children:r,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function SM(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;_3(r,o,e,t,i),a.push(e,o,o,t)}}var je={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4},S3=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 Te()},r.prototype.getImage=function(e){return Te()},r.prototype.getHitDetectionImage=function(){return Te()},r.prototype.getPixelRatio=function(e){return 1},r.prototype.getImageState=function(){return Te()},r.prototype.getImageSize=function(){return Te()},r.prototype.getOrigin=function(){return Te()},r.prototype.getSize=function(){return Te()},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){Te()},r.prototype.load=function(){Te()},r.prototype.unlistenImageChange=function(e){Te()},r}(),J6=S3;function rA(r){return Array.isArray(r)?s6(r):r}var 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)}}(),F3=function(r){b3(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=za(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 je.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([He.CUSTOM,A,u,t,i,tl]),this.hitDetectionInstructions.push([He.CUSTOM,A,u,t,a||i,tl]));break;case st.POINT:l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),u=this.coordinates.length,this.instructions.push([He.CUSTOM,A,u,t,i]),this.hitDetectionInstructions.push([He.CUSTOM,A,u,t,a||i]);break}this.endGeometry(n)},e.prototype.beginGeometry=function(t,n){this.beginGeometryInstruction1_=[He.BEGIN_GEOMETRY,n,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[He.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=[He.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[He.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&&!Cl(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=[He.END_GEOMETRY,t];this.instructions.push(n),this.hitDetectionInstructions.push(n)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=HF(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Ka(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(t4),oy=H3,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)}}(),k3=function(r){G3(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([He.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([He.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([He.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([He.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}(oy),$3=k3,j3=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)}}(),V3=function(r){j3(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=[He.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([He.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,hg,fg],$c);var s=t.getFlatCoordinates(),A=t.getStride();this.drawFlatCoordinates_(s,0,s.length,A),this.hitDetectionInstructions.push(vu),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([He.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],$c);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 W3=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)}}(),P_={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},q3=function(r){W3(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===e4.LINE&&(l==st.LINE_STRING||l==st.MULTI_LINE_STRING||l==st.POLYGON||l==st.MULTI_POLYGON)){if(!Nn(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;px[2]}else S=B>F;var N=Math.PI,P=[],Y=O+n===e;e=O,m=0,g=b,h=r[e],f=r[e+1];var z;if(Y){_(),z=Math.atan2(f-v,h-p),S&&(z+=z>0?-N:N);var tt=(F+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 lZ=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=RM(c?e[0]:e,A.textAlign||vg),f=i&&o.lineWidth?o.lineWidth:0,p=c?e:e.split(` +`).reduce(AZ,[]),v=eY(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],F={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=rw?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,x=h*L+S*f,N=[],P=[],Y=0,z=0,tt=0,J=0,nt,it=0,_t=p.length;it<_t;it+=2){var R=p[it];if(R===` +`){z+=Y,Y=0,x=h*L+S*f,++J;continue}var $=p[it+1]||A.font;$!==nt&&(i&&N.push("font",$),n&&P.push("font",$),nt=$),Y=Math.max(Y,E[tt]);var K=[R,x+S*_[tt]+h*(_[tt]-B[J]),.5*(f+Y)+z];x+=_[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]=F,F},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)&&(Zl[0]=b,Jl[0]=b,Zl[1]=T,PA[1]=T,PA[0]=b+L,UA[0]=PA[0],UA[1]=T+O,Jl[1]=UA[1]);var F;return c!==0?(F=Va(si(),n,i,1,1,c,-n,-i),hn(F,Zl),hn(F,PA),hn(F,UA),hn(F,Jl),ho(Math.min(Zl[0],PA[0],UA[0],Jl[0]),Math.min(Zl[1],PA[1],UA[1],Jl[1]),Math.max(Zl[0],PA[0],UA[0],Jl[0]),Math.max(Zl[1],PA[1],UA[1],Jl[1]),vf)):ho(Math.min(b,b+L),Math.min(T,T+O),Math.max(b,b+L),Math.max(T,T+O),vf),f&&(g=Math.round(g),_=Math.round(_)),{drawImageX:g,drawImageY:_,drawImageW:E,drawImageH:B,originX:l,originY:u,declutterBox:{minX:vf[0],minY:vf[1],maxX:vf[2],maxY:vf[3],value:m},canvasTransform:F,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,PA,UA,Jl,o,s),rY(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=hn(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=RM(Array.isArray(e)?e[0]:e,a.textAlign||vg),u=P_[a.textBaseline||S_],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_&&Cl(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=Fu(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),lX(this.renderedTransform_,n));for(var u=0,c=i.length,h=0,f,p,v,m,g,_,E,B,L,O,b,T,F=0,M=0,S=null,x=null,N=this.coordinateCache_,P=this.viewRotation_,Y=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),F=0),M>tt&&(e.stroke(),M=0),!F&&!M&&(e.beginPath(),m=NaN,g=NaN),++u;break;case He.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,Ft=Math.sqrt(wt*wt+W*W);e.moveTo(K+Ft,q),e.arc(K,q,Ft,0,2*Math.PI,!0),++u;break;case He.CLOSE_PATH:e.closePath(),++u;break;case He.CUSTOM:h=R[1],f=R[2];var Ot=R[3],V=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),V(ut,z),++u;break;case He.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],bt=R[9],dt=R[10],Et=R[11],yt=R[12],xt=R[13],It=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,xt=B.width,R[13]=xt}var ae=void 0;R.length>24&&(ae=R[24]);var re=void 0,Wt=void 0,se=void 0;R.length>16?(re=R[15],Wt=R[16],se=R[17]):(re=Gc,Wt=!1,se=!1),dt&&Y?Et+=P:!dt&&!Y&&(Et-=P);for(var zt=0;h0){if(!o||f!==lr.IMAGE&&f!==lr.TEXT||o.indexOf(O)!==-1){var S=(h[F]-3)/4,x=i-S%s,N=i-(S/s|0),P=a(O,b,x*x+N*N);if(P)return P}u.clearRect(0,0,s,s);break}}var v=Object.keys(this.executorsByZIndex_).map(Number);v.sort(Hu);var m,g,_,E,B;for(m=v.length-1;m>=0;--m){var L=v[m].toString();for(_=this.executorsByZIndex_[L],g=OC.length-1;g>=0;--g)if(f=OC[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 Fu(s,0,8,2,e,s),s},r.prototype.isEmpty=function(){return dh(this.executorsByZIndex_)},r.prototype.execute=function(e,t,n,i,a,o,s){var A=Object.keys(this.executorsByZIndex_).map(Number);A.sort(Hu),this.maxExtent_&&(e.save(),this.clip(e,n));var l=o||OC,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?je.IDLE:je.LOADED;return n.color_=i.color!==void 0?$u(i.color):null,n.iconImage_=wZ(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_==Qa.FRACTION||this.anchorYUnits_==Qa.FRACTION){if(!n)return null;t=this.anchor_.slice(),this.anchorXUnits_==Qa.FRACTION&&(t[0]*=n[0]),this.anchorYUnits_==Qa.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(me.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(me.CHANGE,t)},e}(J6),sy=CZ,BZ="#333",TZ=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 ua({color:BZ}),this.maxAngle_=t.maxAngle!==void 0?t.maxAngle:Math.PI/4,this.placement_=t.placement!==void 0?t.placement:e4.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}(),Lh=TZ,Lo=.5;function a4(r,e,t,n,i,a,o){var s=r[0]*Lo,A=r[1]*Lo,l=za(s,A);l.imageSmoothingEnabled=!1;for(var u=l.canvas,c=new EI(l,Lo,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,Lo,h,f,E).slice()),m-=g}this.hitDetectionImageData_=a4(i,c,this.renderedFeatures_,u.getStyleFunction(),l,o,s)}n(o4(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 _=de(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&&Oo(this.wrappedRenderedExtent_,_))return Cl(this.renderedExtent_,E)||(this.hitDetectionImageData_=null,this.renderedExtent_=E),this.renderedCenter_=g,this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var F=new U_(ax(h,f),_,h,f),M;this.getLayer().getDeclutter()&&(M=new U_(ax(h,f),_,h,f));for(var S,x,N,x=0,N=B.length;x=200&&s.status<300){var l=e.getType(),u=void 0;l==Ts.JSON||l==Ts.TEXT?u=s.responseText:l==Ts.XML?(u=s.responseXML,u||(u=new DOMParser().parseFromString(s.responseText,"application/xml"))):l==Ts.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 NM(r,e){return function(t,n,i,a,o){var s=this;YZ(r,e,t,n,i,function(A,l){s.addFeatures(A),a!==void 0&&a(A)},o||hh)}}var c4=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)}}(),tu=function(r){c4(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.feature=n,a.features=i,a}return e}(vo),WZ=function(r){c4(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{attributions:i.attributions,interpolate:!0,projection:void 0,state:Ha.READY,wrapX:i.wrapX!==void 0?i.wrapX:!0})||this,n.on,n.once,n.un,n.loader_=hh,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&&(we(n.format_,7),n.loader_=NM(n.url_,n.format_)),n.strategy_=i.strategy!==void 0?i.strategy:u4;var a=i.useSpatialIndex!==void 0?i.useSpatialIndex:!0;n.featuresRtree_=a?new H_:null,n.loadedExtentsRtree_=new H_,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=de(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 tu(Ri.ADDFEATURE,t))},e.prototype.setupChangeEvents_=function(t,n){this.featureChangeKeys_[t]=[Ue(n,me.CHANGE,this.handleFeatureChange_,this),Ue(n,ph.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&&(we(!(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(cA(a.extent,t))return i=a,!0}),i&&n.remove(i)},e.prototype.removeFeature=function(t){if(t){var n=de(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=de(t),i=this.featureChangeKeys_[n];if(i){i.forEach(Nr),delete this.featureChangeKeys_[n];var a=t.getId();return a!==void 0&&delete this.idIndex_[a.toString()],delete this.uidIndex_[n],this.dispatchEvent(new tu(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){we(this.format_,7),this.url_=t,this.setLoader(NM(t,this.format_))},e}(vw),Tl=WZ,h4=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)}}(),br={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon",CIRCLE:"Circle"},Mm={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"},Nm=function(r){h4(e,r);function e(t,n){var i=r.call(this,t)||this;return i.feature=n,i}return e}(vo),qZ=function(r){h4(e,r);function e(t){var n=this,i=t;i.stopDown||(i.stopDown=xh),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_=JZ(n.type_),n.stopClick_=!!t.stopClick,n.minPoints_=t.minPoints?t.minPoints:n.mode_===br.POLYGON?3:2,n.maxPoints_=n.mode_===br.CIRCLE?2:t.maxPoints?t.maxPoints:1/0,n.finishCondition_=t.finishCondition?t.finishCondition:sA;var a=t.geometryFunction;if(!a){var o=n.mode_;if(o===br.CIRCLE)a=function(A,l,u){var c=l||new mI([NaN,NaN]),h=xn(A[0]),f=al(h,xn(A[A.length-1]));return c.setCenterAndRadius(h,Math.sqrt(f)),c};else{var s;o===br.POINT?s=pr:o===br.LINE_STRING?s=kr:o===br.POLYGON&&(s=Fn),a=function(A,l,u){return l?o===br.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 dA({source:new Tl({useSpatialIndex:!1,wrapX:t.wrapX?t.wrapX:!1}),style:t.style?t.style:ZZ(),updateWhileInteracting:!0}),n.geometryName_=t.geometryName,n.condition_=t.condition?t.condition:pw,n.freehandCondition_,t.freehand?n.freehandCondition_=hw:n.freehandCondition_=t.freehandCondition?t.freehandCondition:ny,n.addChangeListener(rx.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===me.CONTEXTMENU&&t.originalEvent.preventDefault(),this.freehand_=this.mode_!==br.POINT&&this.freehandCondition_(t);var n=t.type===or.POINTERMOVE,i=!0;if(!this.freehand_&&this.lastDragTime_&&t.type===or.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===or.POINTERDRAG&&this.sketchFeature_!==null?(this.addToDrawing_(t.coordinate),i=!1):this.freehand_&&t.type===or.POINTERDOWN?i=!1:n&&this.getPointerCount()<2?(i=t.type===or.POINTERMOVE,i&&this.freehand_?(this.handlePointerMove_(t),this.shouldHandle_&&t.originalEvent.preventDefault()):(t.originalEvent.pointerType==="mouse"||t.type===or.POINTERDRAG&&this.downTimeout_===void 0)&&this.handlePointerMove_(t)):t.type===or.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 YA(or.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_===br.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===br.POINT)n=!0;else if(o===br.CIRCLE)n=this.sketchCoords_.length===2;else if(o===br.LINE_STRING)i=this.sketchCoords_.length>this.minPoints_;else if(o===br.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===br.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===br.LINE_STRING||a===br.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===br.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_===br.LINE_STRING?(n.pop(),this.geometryFunction_(n,i,a)):this.mode_===br.POLYGON&&(n[0].pop(),this.geometryFunction_(n,i,a),n=i.getCoordinates()),this.type_===st.MULTI_POINT?t.setGeometry(new ns([n])):this.type_===st.MULTI_LINE_STRING?t.setGeometry(new Fa([n])):this.type_===st.MULTI_POLYGON&&t.setGeometry(new Ia([n])),this.dispatchEvent(new Nm(Mm.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 Nm(Mm.DRAWABORT,t))},e.prototype.appendCoordinates=function(t){var n=this.mode_,i=!this.sketchFeature_;i&&this.startDrawing_(t[0]);var a;if(n===br.LINE_STRING||n===br.CIRCLE)a=this.sketchCoords_;else if(n===br.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(qc(o),s);var l=a,u=gh();if(u){var c=t.map.getView().getProjection();l=l.clone().transform(u,c),l=R6(l).transform(c,u)}this.rBush_.update(l.getExtent(),A)}else this.rBush_.update(Wi(i.segment),i)}return this.featuresBeingModified_&&(this.dispatchEvent(new NC(MC.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,Y){return DM(o,P,s)-DM(o,Y,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,Y,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=Ro(qc(o,UM)),f=n.getView().getResolution()*this.pixelTolerance_,p=sw(Ka(h,f,UM));l=this.rBush_.getInExtent(p)}if(l&&l.length>0){var v=l.sort(A)[0],m=v.segment,g=QM(o,v,s),_=n.getPixelFromCoordinate(g),E=iM(t,_);if(u||E<=this.pixelTolerance_){var B={};if(B[de(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===Gv)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(g,[v.feature],[v.geometry]);else{var L=n.getPixelFromCoordinate(m[0]),O=n.getPixelFromCoordinate(m[1]),b=al(_,L),T=al(_,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 F={};F[de(v.geometry)]=!0;for(var M=1,S=l.length;M=0;--l)s=t[l],p=s[0],v=de(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(Wi(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||Cl(o.depth,i))&&o.index>n&&(o.index+=a)})},e}(Do);function eJ(r,e){return r.index-e.index}function DM(r,e,t){var n=e.geometry;if(n.getType()===st.CIRCLE){var i=n;if(e.index===Gv){var a=gh();a&&(i=i.clone().transform(a,t));var o=al(i.getCenter(),xn(r)),s=Math.sqrt(o)-i.getRadius();return s*s}}var A=xn(r);return up[0]=xn(e.segment[0]),up[1]=xn(e.segment[1]),HX(A,up)}function QM(r,e,t){var n=e.geometry;if(n.getType()===st.CIRCLE&&e.index===Gv){var i=n,a=gh();return a&&(i=i.clone().transform(a,t)),Fp(i.getClosestPoint(xn(r)))}var o=xn(r);return up[0]=xn(e.segment[0]),up[1]=xn(e.segment[1]),Fp(zF(o,up))}function rJ(){var r=_I();return function(e,t){return r[st.POINT]}}var TI=tJ,p4=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)}}(),nJ={SELECT:"select"},iJ=function(r){p4(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}(vo),Pm={},aJ=function(r){p4(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:fw,n.addCondition_=i.addCondition?i.addCondition:nx,n.removeCondition_=i.removeCondition?i.removeCondition:nx,n.toggleCondition_=i.toggleCondition?i.toggleCondition:ny,n.multi_=i.multi?i.multi:!1,n.filter_=i.filter?i.filter:sA,n.hitTolerance_=i.hitTolerance?i.hitTolerance:0,n.style_=i.style!==void 0?i.style:oJ(),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=sA;return n.layerFilter_=a,n.featureLayerAssociation_={},n}return e.prototype.addFeatureLayerAssociation_=function(t,n){this.featureLayerAssociation_[de(t)]=n},e.prototype.getFeatures=function(){return this.features_},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.getLayer=function(t){return this.featureLayerAssociation_[de(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($n.ADD,this.boundAddFeature_),this.features_.addEventListener($n.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener($n.ADD,this.boundAddFeature_),this.features_.removeEventListener($n.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 dA&&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=de(t);n in Pm||(Pm[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=de(t);t.setStyle(Pm[o]),delete Pm[o]},e.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[de(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){Sh(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 iJ(nJ.SELECT,u,l,t)),!0},e}(Xp);function oJ(){var r=_I();return Gr(r[st.POLYGON],r[st.LINE_STRING]),Gr(r[st.GEOMETRY_COLLECTION],r[st.LINE_STRING]),function(e){return e.getGeometry()?r[e.getGeometry().getType()]:null}}var gw=aJ,sJ=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 HM(r){if(r.feature)return r.feature;if(r.element)return r.element}var PC=[],AJ=function(r){sJ(e,r);function e(t){var n=this,i=t||{},a=i;return a.handleDownEvent||(a.handleDownEvent=sA),a.stopDown||(a.stopDown=xh),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 H_,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=de(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(Wi(A[0]),{feature:t,segment:A[0]});else if(A.length>1){var l=A.map(function(c){return Wi(c)}),u=A.map(function(c){return{feature:t,segment:c}});this.rBush_.load(l,u)}}}i&&(this.featureChangeListenerKeys_[a]=Ue(t,me.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=HM(t);this.addFeature(n)},e.prototype.handleFeatureRemove_=function(t){var n=HM(t);this.removeFeature(n)},e.prototype.handleFeatureChange_=function(t){var n=t.target;if(this.handlingDownUpSequence){var i=de(n);i in this.pendingFeatures_||(this.pendingFeatures_[i]=n)}else this.updateFeature_(n)},e.prototype.handleUpEvent=function(t){var n=VF(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=de(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&&(Nr(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(Nr),i.length=0,a.forEach(this.forEachFeatureRemove_.bind(this))),r.prototype.setMap.call(this,t),t&&(this.features_?i.push(Ue(this.features_,$n.ADD,this.handleFeatureAdd_,this),Ue(this.features_,$n.REMOVE,this.handleFeatureRemove_,this)):this.source_&&i.push(Ue(this.source_,Ri.ADDFEATURE,this.handleFeatureAdd_,this),Ue(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=Wi([a,o]),A=this.rBush_.getInExtent(s),l=A.length;if(l===0)return null;var u=i.getView().getProjection(),c=xn(n),h,f=1/0,p=this.pixelTolerance_*this.pixelTolerance_,v=function(){if(h){var M=i.getPixelFromCoordinate(h),S=al(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=kg(Dn({},t));return fe(r,()=>{t=Nu(r),Object.keys(t).forEach(i=>{n[i]!=t[i].value&&!e.includes(i)&&(n[i]=t[i].value)})}),{properties:n}}var ue=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t};const fJ={name:"ol-map",setup(r,{emit:e}){const{properties:t}=gr(r),n=kn(null);let i=new yw(t);fe(t,()=>{i.setProperties(t)}),Je(()=>{i.setTarget(n.value)}),ar(()=>{i.setTarget(null),i=null}),Pr("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 pJ(r,e,t,n,i,a){return fn(),Vn("div",{ref:o=>n.mapRef=o},[_r(r.$slots,"default")],512)}var ox=ue(fJ,[["render",pJ]]);function dJ(r,e){const t=Be("map"),{properties:n}=gr(r),i=()=>Ms(Dn({},n),{projection:typeof n.projection=="string"?n.projection:new Bl(Dn({},n.projection))});let a=new Js(i());Je(()=>{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())),fe(n,()=>{let W=i();a.setProperties(W),a.applyOptions_(W)});const o=W=>a.adjustCenter(W),s=(W,Ft)=>a.adjustResolution(W,Ft),A=(W,Ft)=>a.adjustRotation(W,Ft),l=(W,Ft)=>a.adjustZoom(W,Ft),u=W=>a.animate(W),c=()=>a.beginInteraction(),h=W=>a.calculateExtent(W),f=()=>a.cancelAnimations(),p=(W,Ft,Ot)=>a.centerOn(W,Ft,Ot),v=()=>a.changed(),m=W=>a.dispatchEvent(W),g=(W,Ft,Ot)=>a.endInteraction(W,Ft,Ot),_=(W,Ft)=>a.fit(W,Ft),E=W=>a.get(W),B=()=>a.getAnimating(),L=()=>a.getCenter(),O=()=>a.getInteracting(),b=()=>a.getKeys(),T=()=>a.getMaxResolution(),F=()=>a.getMaxZoom(),M=()=>a.getMinResolution(),S=()=>a.getMinZoom(),x=()=>a.getProjection(),N=()=>a.getProperties(),P=()=>a.getResolution(),Y=(W,Ft)=>a.getResolutionForExtent(W,Ft),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:F,getMinResolution:M,getMinZoom:S,getProjection:x,getProperties:N,getResolution:P,getResolutionForExtent:Y,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 vJ={name:"ol-view",setup(r,{emit:e}){const t=dJ(r,e);return Dn({},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 gJ(r,e,t,n,i,a){return vr("",!0)}var sx=ue(vJ,[["render",gJ]]);const yJ={name:"ol-feature",setup(r){const e=Be("vectorSource"),t=Be("vectorLayer"),n=Be("animation",null),{properties:i}=gr(r);let a=fr(()=>new sr(Dn({},i.properties)));return fe(a,(o,s)=>{e.value.removeFeature(s),e.value.addFeature(o),e.value.changed()}),fe(e,(o,s)=>{s.removeFeature(a.value),o.addFeature(a.value),o.changed()}),Je(()=>{e.value.addFeature(a.value),n!=null&&t.value.animateFeature(a.value,n.value)}),ar(()=>{e.value.removeFeature(a.value)}),Pr("feature",a),Pr("stylable",a),{feature:a}},props:{properties:{type:[Aw,Object,Array]}}};function mJ(r,e,t,n,i,a){return _r(r.$slots,"default")}var Ax=ue(yJ,[["render",mJ]]);function _J(r,e){const t=Be("map"),n=kn(null),{properties:i}=gr(r);let a=fr(()=>new k6(i));Je(()=>{t.addOverlay(a.value)}),ar(()=>{t.removeOverlay(a.value)}),fe(a,(v,m)=>{t.removeOverlay(m),t.addOverlay(v)}),dD(()=>{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 wJ={name:"ol-overlay",setup(r,{emit:e}){const t=new _J(r,e);return Dn({},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}}},EJ={ref:"htmlContent"};function CJ(r,e,t,n,i,a){return fn(),Vn("div",EJ,[_r(r.$slots,"default",{position:t.position})],512)}var lx=ue(wJ,[["render",CJ]]),d4=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"},BJ=function(r){d4(e,r);function e(t){var n=r.call(this,me.ERROR)||this;return n.code=t.code,n.message=t.message,n}return e}(vo),TJ=function(r){d4(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_=ow,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_=vh(Re("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:Su(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=wW(this.position_,n.accuracy);a.applyTransform(this.transform_),this.set(Rn.ACCURACY_GEOMETRY,a),this.changed()},e.prototype.positionError_=function(t){this.dispatchEvent(new BJ(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,Re(t))},e.prototype.setTracking=function(t){this.set(Rn.TRACKING,t)},e.prototype.setTrackingOptions=function(t){this.set(Rn.TRACKING_OPTIONS,t)},e}(ui),xJ=TJ;const SJ={name:"ol-geolocation",emits:["positionChanged","speedChanged","headingChanged","altitudeChanged","altitudeAccuracyChanged","accuracyGeometryChanged"],setup(r,{emit:e}){const{properties:t}=gr(r);let n=fr(()=>{let h=new xJ(t);return h.on("change",c),h});const i=kn([]),a=kn(0),o=kn(0),s=kn(0),A=kn(0),l=kn(0),u=kn({});fe(i,()=>{e("positionChanged",i.value)}),fe(A,()=>{e("speedChanged",A.value)}),fe(l,()=>{e("headingChanged",l.value)}),fe(o,()=>{e("altitudeChanged",o.value)}),fe(s,()=>{e("altitudeAccuracyChanged",s.value)}),fe(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 fe(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 bJ(r,e,t,n,i,a){return _r(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 ux=ue(SJ,[["render",bJ]]);function FJ(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 yh=1,mh=2,k0=3,IJ=4,cx=5,GM=6378137,LJ=6356752314e-3,kM=.0066943799901413165,kv=484813681109536e-20,Xt=Math.PI/2,OJ=.16666666666666666,RJ=.04722222222222222,MJ=.022156084656084655,ie=1e-10,ia=.017453292519943295,nA=57.29577951308232,Yr=Math.PI/4,_g=Math.PI*2,ri=3.14159265359,go={};go.greenwich=0;go.lisbon=-9.131906111111;go.paris=2.337229166667;go.bogota=-74.080916666667;go.madrid=-3.687938888889;go.rome=12.452333333333;go.bern=7.439583333333;go.jakarta=106.807719444444;go.ferro=-17.666666666667;go.brussels=4.367975;go.stockholm=18.058277777778;go.athens=23.7163375;go.oslo=10.722916666667;var NJ={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}},$M=/[\s_\-\/\(\)]/g;function Ku(r,e){if(r[e])return r[e];for(var t=Object.keys(r),n=e.toLowerCase().replace($M,""),i=-1,a,o;++i=this.text.length)return;r=this.text[this.place++]}switch(this.state){case wg:return this.neutral(r);case v4:return this.keyword(r);case G_:return this.quoted(r);case y4:return this.afterquote(r);case g4:return this.number(r);case xI:return}};xl.prototype.afterquote=function(r){if(r==='"'){this.word+='"',this.state=G_;return}if(mw.test(r)){this.word=this.word.trim(),this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in afterquote yet, index '+this.place)};xl.prototype.afterItem=function(r){if(r===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=wg;return}if(r==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=wg,this.currentObject=this.stack.pop(),this.currentObject||(this.state=xI);return}};xl.prototype.number=function(r){if(m4.test(r)){this.word+=r;return}if(mw.test(r)){this.word=parseFloat(this.word),this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in number yet, index '+this.place)};xl.prototype.quoted=function(r){if(r==='"'){this.state=y4;return}this.word+=r};xl.prototype.keyword=function(r){if(DJ.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=wg;return}if(mw.test(r)){this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in keyword yet, index '+this.place)};xl.prototype.neutral=function(r){if(UJ.test(r)){this.word=r,this.state=v4;return}if(r==='"'){this.word="",this.state=G_;return}if(m4.test(r)){this.word=r,this.state=g4;return}if(mw.test(r)){this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in neutral yet, index '+this.place)};xl.prototype.output=function(){for(;this.place0?90:-90),r.lat_ts=r.lat1)}function _4(r){var e=QJ(r),t=e.shift(),n=e.shift();e.unshift(["name",n]),e.unshift(["type",t]);var i={};return Yf(e,i),kJ(i),i}function Ua(r){var e=this;if(arguments.length===2){var t=arguments[1];typeof t=="string"?t.charAt(0)==="+"?Ua[r]=hx(arguments[1]):Ua[r]=_4(arguments[1]):Ua[r]=t}else if(arguments.length===1){if(Array.isArray(r))return r.map(function(n){Array.isArray(n)?Ua.apply(e,n):Ua(n)});if(typeof r=="string"){if(r in Ua)return Ua[r]}else"EPSG"in r?Ua["EPSG:"+r.EPSG]=r:"ESRI"in r?Ua["ESRI:"+r.ESRI]=r:"IAU2000"in r?Ua["IAU2000:"+r.IAU2000]=r:console.log(r);return}}FJ(Ua);function $J(r){return typeof r=="string"}function jJ(r){return r in Ua}var VJ=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function KJ(r){return VJ.some(function(e){return r.indexOf(e)>-1})}var zJ=["3857","900913","3785","102113"];function XJ(r){var e=Ku(r,"authority");if(e){var t=Ku(e,"epsg");return t&&zJ.indexOf(t)>-1}}function YJ(r){var e=Ku(r,"extension");if(e)return Ku(e,"proj4")}function WJ(r){return r[0]==="+"}function qJ(r){if($J(r)){if(jJ(r))return Ua[r];if(KJ(r)){var e=_4(r);if(XJ(e))return Ua["EPSG:3857"];var t=YJ(e);return t?hx(t):e}if(WJ(r))return hx(r)}else return r}function VM(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 fA(r,e,t){var n=r*e;return t/Math.sqrt(1-n*n)}function Ay(r){return r<0?-1:1}function pe(r){return Math.abs(r)<=ri?r:r-Ay(r)*_g}function bs(r,e,t){var n=r*t,i=.5*r;return n=Math.pow((1-n)/(1+n),i),Math.tan(.5*(Xt-e))/n}function Eg(r,e){for(var t=.5*r,n,i,a=Xt-2*Math.atan(e),o=0;o<=15;o++)if(n=r*Math.sin(a),i=Xt-2*Math.atan(e*Math.pow((1-n)/(1+n),t))-a,a+=i,Math.abs(i)<=1e-10)return a;return-9999}function ZJ(){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=fA(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function JJ(r){var e=r.x,t=r.y;if(t*nA>90&&t*nA<-90&&e*nA>180&&e*nA<-180)return null;var n,i;if(Math.abs(Math.abs(t)-Xt)<=ie)return null;if(this.sphere)n=this.x0+this.a*this.k0*pe(e-this.long0),i=this.y0+this.a*this.k0*Math.log(Math.tan(Yr+.5*t));else{var a=Math.sin(t),o=bs(this.e,t,a);n=this.x0+this.a*this.k0*pe(e-this.long0),i=this.y0-this.a*this.k0*Math.log(o)}return r.x=n,r.y=i,r}function ttt(r){var e=r.x-this.x0,t=r.y-this.y0,n,i;if(this.sphere)i=Xt-2*Math.atan(Math.exp(-t/(this.a*this.k0)));else{var a=Math.exp(-t/(this.a*this.k0));if(i=Eg(this.e,a),i===-9999)return null}return n=pe(this.long0+e/(this.a*this.k0)),r.x=n,r.y=i,r}var ett=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],rtt={init:ZJ,forward:JJ,inverse:ttt,names:ett};function ntt(){}function KM(r){return r}var itt=["longlat","identity"],att={init:ntt,forward:KM,inverse:KM,names:itt},ott=[rtt,att],$0={},k_=[];function w4(r,e){var t=k_.length;return r.names?(k_[t]=r,r.names.forEach(function(n){$0[n.toLowerCase()]=t}),this):(console.log(e),!0)}function stt(r){if(!r)return!1;var e=r.toLowerCase();if(typeof $0[e]<"u"&&k_[$0[e]])return k_[$0[e]]}function Att(){ott.forEach(w4)}var ltt={start:Att,add:w4,get:stt},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 utt=Ye.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};Ye.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function ctt(r,e,t,n){var i=r*r,a=e*e,o=(i-a)/i,s=0;n?(r*=1-o*(OJ+o*(RJ+o*MJ)),i=r*r,o=0):s=Math.sqrt(o);var A=(i-a)/a;return{es:o,e:s,ep2:A}}function htt(r,e,t,n,i){if(!r){var a=Ku(Ye,n);a||(a=utt),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=mh,s.datum_params[3]*=kv,s.datum_params[4]*=kv,s.datum_params[5]*=kv,s.datum_params[6]=s.datum_params[6]/1e6+1)),o&&(s.datum_type=k0,s.grids=o),s.a=t,s.b=n,s.es=i,s.ep2=a,s}var E4={};function ptt(r,e){var t=new DataView(e),n=gtt(t),i=ytt(t,n);i.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var a=mtt(t,i,n),o={header:i,subgrids:a};return E4[r]=o,o}function dtt(r){if(r===void 0)return null;var e=r.split(",");return e.map(vtt)}function vtt(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:E4[r]||null,isNull:!1}}function Wf(r){return r/3600*Math.PI/180}function gtt(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 ytt(r,e){return{nFields:r.getInt32(8,e),nSubgridFields:r.getInt32(24,e),nSubgrids:r.getInt32(40,e),shiftType:fx(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 fx(r,e,t){return String.fromCharCode.apply(null,new Uint8Array(r.buffer.slice(e,t)))}function mtt(r,e,t){for(var n=176,i=[],a=0;a5e-11?!1:r.datum_type===yh?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===mh?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 C4(r,e,t){var n=r.x,i=r.y,a=r.z?r.z:0,o,s,A,l;if(i<-Xt&&i>-1.001*Xt)i=-Xt;else if(i>Xt&&i<1.001*Xt)i=Xt;else{if(i<-Xt)return{x:-1/0,y:-1/0,z:r.z};if(i>Xt)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 B4(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,F;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=pe(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 XM(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 YM(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 T4(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 btt(r){WM(r.x),WM(r.y)}function WM(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 Ftt(r,e){return(r.datum.datum_type===yh||r.datum.datum_type===mh)&&e.datumCode!=="WGS84"||(e.datum.datum_type===yh||e.datum.datum_type===mh)&&r.datumCode!=="WGS84"}function $_(r,e,t,n){var i;if(Array.isArray(t)&&(t=T4(t)),btt(t),r.datum&&e.datum&&Ftt(r,e)&&(i=new AA("WGS84"),t=$_(r,i,t,n),r=i),n&&r.axis!=="enu"&&(t=YM(r,!1,t)),r.projName==="longlat")t={x:t.x*ia,y:t.y*ia,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=xtt(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*nA,y:t.y*nA,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"?YM(e,!0,t):t}var qM=AA("WGS84");function UC(r,e,t,n){var i,a,o;return Array.isArray(t)?(i=$_(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=$_(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 AA?r:r.oProj?r.oProj:AA(r)}function fo(r,e,t){r=ZM(r);var n=!1,i;return typeof e>"u"?(e=r,r=qM,n=!0):(typeof e.x<"u"||Array.isArray(e))&&(t=e,e=r,r=qM,n=!0),e=ZM(e),t?UC(r,e,t):(i={forward:function(a,o){return UC(r,e,a,o)},inverse:function(a,o){return UC(e,r,a,o)}},n&&(i.oProj=e),i)}var JM=6,x4="AJSAJS",S4="AFAFAF",qf=65,no=73,Xo=79,yv=86,mv=90,Itt={forward:b4,inverse:Ltt,toPoint:F4};function b4(r,e){return e=e||5,Mtt(Ott({lat:r[1],lon:r[0]}),e)}function Ltt(r){var e=SI(L4(r.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]}function F4(r){var e=SI(L4(r.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function DC(r){return r*(Math.PI/180)}function tN(r){return 180*(r/Math.PI)}function Ott(r){var e=r.lat,t=r.lon,n=6378137,i=.00669438,a=.9996,o,s,A,l,u,c,h,f=DC(e),p=DC(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=DC(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:Rtt(e)}}function SI(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=tN(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+tN(O);var b;if(r.accuracy){var T=SI({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 Rtt(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 Mtt(r,e){var t="00000"+r.easting,n="00000"+r.northing;return r.zoneNumber+r.zoneLetter+Ntt(r.easting,r.northing,r.zoneNumber)+t.substr(t.length-5,e)+n.substr(n.length-5,e)}function Ntt(r,e,t){var n=I4(t),i=Math.floor(r/1e5),a=Math.floor(e/1e5)%20;return Ptt(i,a,n)}function I4(r){var e=r%JM;return e===0&&(e=JM),e}function Ptt(r,e,t){var n=t-1,i=x4.charCodeAt(n),a=S4.charCodeAt(n),o=i+r-1,s=a+e,A=!1;o>mv&&(o=o-mv+qf-1,A=!0),(o===no||ino||(o>no||iXo||(o>Xo||imv&&(o=o-mv+qf-1),s>yv?(s=s-yv+qf-1,A=!0):A=!1,(s===no||ano||(s>no||aXo||(s>Xo||ayv&&(s=s-yv+qf-1);var l=String.fromCharCode(o)+String.fromCharCode(s);return l}function L4(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=I4(o),l=Utt(t.charAt(0),A),u=Dtt(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 Utt(r,e){for(var t=x4.charCodeAt(e-1),n=1e5,i=!1;t!==r.charCodeAt(0);){if(t++,t===no&&t++,t===Xo&&t++,t>mv){if(i)throw"Bad character: "+r;t=qf,i=!0}n+=1e5}return n}function Dtt(r,e){if(r>"V")throw"MGRSPoint given invalid Northing "+r;for(var t=S4.charCodeAt(e-1),n=0,i=!1;t!==r.charCodeAt(0);){if(t++,t===no&&t++,t===Xo&&t++,t>yv){if(i)throw"Bad character: "+r;t=qf,i=!0}n+=1e5}return n}function Qtt(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 Lp(r,e,t){if(!(this instanceof Lp))return new Lp(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")}Lp.fromMGRS=function(r){return new Lp(F4(r))};Lp.prototype.toMGRS=function(r){return b4([this.x,this.y],r)};var Htt=1,Gtt=.25,eN=.046875,rN=.01953125,nN=.01068115234375,ktt=.75,$tt=.46875,jtt=.013020833333333334,Vtt=.007120768229166667,Ktt=.3645833333333333,ztt=.005696614583333333,Xtt=.3076171875;function O4(r){var e=[];e[0]=Htt-r*(Gtt+r*(eN+r*(rN+r*nN))),e[1]=r*(ktt-r*(eN+r*(rN+r*nN)));var t=r*r;return e[2]=t*($tt-r*(jtt+r*Vtt)),t*=r,e[3]=t*(Ktt-r*ztt),e[4]=t*r*Xtt,e}function _w(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 Ytt=20;function R4(r,e,t){for(var n=1/(1-e),i=r,a=Ytt;a;--a){var o=Math.sin(i),s=1-e*o*o;if(s=(_w(i,o,Math.cos(i),t)-r)*(s*Math.sqrt(s))*n,i-=s,Math.abs(s)ie?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=_w(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>ie)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 Ztt(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=R4(e,this.es,this.en),Math.abs(t)ie?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=pe(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=Xt*Ay(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=pe(Math.atan2(A,u)+this.long0)}return r.x=i,r.y=n,r}var Jtt=["Fast_Transverse_Mercator","Fast Transverse Mercator"],j0={init:Wtt,forward:qtt,inverse:Ztt,names:Jtt};function M4(r){var e=Math.exp(r);return e=(e-1/e)/2,e}function ww(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 tet(r){var e=1+r,t=e-1;return t===0?r:r*Math.log(e)/t}function eet(r){var e=Math.abs(r);return e=tet(e*(1+e/(ww(1,e)+1))),r<0?-e:e}function bI(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 ret(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 net(r){var e=Math.exp(r);return e=(e+1/e)/2,e}function N4(r,e,t){for(var n=Math.sin(e),i=Math.cos(e),a=M4(t),o=net(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 iet(){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&&(j0.init.apply(this),this.forward=j0.forward,this.inverse=j0.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=bI(this.cbg,this.lat0);this.Zb=-this.Qn*(n+ret(this.gtu,2*n))}function aet(r){var e=pe(r.x-this.long0),t=r.y;t=bI(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,ww(n,i*o)),e=eet(Math.tan(e));var s=N4(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 oet(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=N4(this.utg,2*t,2*e);t=t+a[0],e=e+a[1],e=Math.atan(M4(e));var o=Math.sin(t),s=Math.cos(t),A=Math.sin(e),l=Math.cos(e);t=Math.atan2(o*l,ww(A,l*s)),e=Math.atan2(A,l*s),n=pe(e+this.long0),i=bI(this.cgb,t)}else n=1/0,i=1/0;return r.x=n,r.y=i,r}var set=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"],V0={init:iet,forward:aet,inverse:oet,names:set};function Aet(r,e){if(r===void 0){if(r=Math.floor((pe(e)+Math.PI)*30/Math.PI)+1,r<0)return 0;if(r>60)return 60}return r}var uet="etmerc";function cet(){var r=Aet(this.zone,this.long0);if(r===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(r)-183)*ia,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,V0.init.apply(this),this.forward=V0.forward,this.inverse=V0.inverse}var het=["Universal Transverse Mercator System","utm"],fet={init:cet,names:het,dependsOn:uet};function FI(r,e){return Math.pow((1-r)/(1+r),e)}var pet=20;function det(){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+Yr)/(Math.pow(Math.tan(.5*this.lat0+Yr),this.C)*FI(this.e*r,this.ratexp))}function vet(r){var e=r.x,t=r.y;return r.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*t+Yr),this.C)*FI(this.e*Math.sin(t),this.ratexp))-Xt,r.x=this.C*e,r}function get(r){for(var e=1e-14,t=r.x/this.C,n=r.y,i=Math.pow(Math.tan(.5*n+Yr)/this.K,1/this.C),a=pet;a>0&&(n=2*Math.atan(i*FI(this.e*Math.sin(r.y),-.5*this.e))-Xt,!(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)<=ie&&(this.k0=.5*this.cons*fA(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/bs(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=fA(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-Xt,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function xet(r){var e=r.x,t=r.y,n=Math.sin(t),i=Math.cos(t),a,o,s,A,l,u,c=pe(e-this.long0);return Math.abs(Math.abs(e-this.long0)-Math.PI)<=ie&&Math.abs(t+this.lat0)<=ie?(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))-Xt,A=Math.cos(o),s=Math.sin(o),Math.abs(this.coslat0)<=ie?(l=bs(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=pe(this.long0+Math.atan2(r.x,-1*r.y)):e=pe(this.long0+Math.atan2(r.x,r.y)):e=pe(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)<=ie){if(o<=ie)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*Eg(this.e,n),e=this.con*pe(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<=ie?a=this.X0:(a=Math.asin(Math.cos(i)*this.sinX0+r.y*Math.sin(i)*this.cosX0/o),e=pe(this.long0+Math.atan2(r.x*Math.sin(i),o*this.cosX0*Math.cos(i)-r.y*this.sinX0*Math.sin(i)))),t=-1*Eg(this.e,Math.tan(.5*(Xt+a)));return r.x=e,r.y=t,r}var Fet=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],Iet={init:Tet,forward:xet,inverse:bet,names:Fet,ssfn_:Bet};function Let(){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 Oet(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 Ret(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 Met=["somerc"],Net={init:Let,forward:Oet,inverse:Ret,names:Met},Df=1e-7;function Pet(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 Uet(){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=Pet(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*ia),_||E)h=this.longc;else if(f=this.long1,v=this.lat1,p=this.long2,m=this.lat2,Math.abs(v-m)<=Df||(r=Math.abs(v))<=Df||Math.abs(r-Xt)<=Df||Math.abs(Math.abs(this.lat0)-Xt)<=Df||Math.abs(Math.abs(m)-Xt)<=Df)throw new Error;var B=1-this.es;e=Math.sqrt(B),Math.abs(this.lat0)>ie?(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(bs(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(bs(this.e,v,Math.sin(v)),this.B),o=Math.pow(bs(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-=_g:r>Math.pi&&(p+=_g),this.lam0=pe(.5*(f+p)-Math.atan(l*Math.tan(.5*this.B*(f-p))/A)/this.B),c=Math.atan(2*Math.sin(this.B*pe(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(Yr-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(Yr+i))}function Det(r){var e={},t,n,i,a,o,s,A,l;if(r.x=r.x-this.lam0,Math.abs(Math.abs(r.y)-Xt)>ie){if(o=this.E/Math.pow(bs(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 Qet(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)ie?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 $et(r){var e=r.x,t=r.y;Math.abs(2*Math.abs(t)-Math.PI)<=ie&&(t=Ay(t)*(Xt-2*ie));var n=Math.abs(Math.abs(t)-Xt),i,a;if(n>ie)i=bs(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*pe(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 jet(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=Eg(this.e,n),i===-9999)return null}else i=-Xt;return a=pe(A/this.ns+this.long0),r.x=a,r.y=i,r}var Vet=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc"],Ket={init:ket,forward:$et,inverse:jet,names:Vet};function zet(){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 Xet(r){var e,t,n,i,a,o,s,A=r.x,l=r.y,u=pe(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 Yet(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 Wet=["Krovak","krovak"],qet={init:zet,forward:Xet,inverse:Yet,names:Wet};function ka(r,e,t,n,i){return r*i-e*Math.sin(2*i)+t*Math.sin(4*i)-n*Math.sin(6*i)}function ly(r){return 1-.25*r*(1+r/16*(3+1.25*r))}function uy(r){return .375*r*(1+.25*r*(1+.46875*r))}function cy(r){return .05859375*r*r*(1+.75*r)}function hy(r){return r*r*r*(35/3072)}function Op(r,e,t){var n=e*t;return r/Math.sqrt(1-n*n)}function Yp(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 nrt=1,irt=2,art=3,ort=4;function srt(){var r=Math.abs(this.lat0);if(Math.abs(r-Xt)0){var e;switch(this.qp=Iu(this.e,1),this.mmf=.5/(1-this.es),this.apa=vrt(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=Iu(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 Art(r){var e,t,n,i,a,o,s,A,l,u,c=r.x,h=r.y;if(c=pe(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<=ie)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 lrt(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)<=ie?0:Math.asin(t*h/c),e*=h,t=u*c;break;case this.OBLIQ:i=Math.abs(c)<=ie?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=Xt-i;break;case this.S_POLE:i-=Xt;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 _rt(){Math.abs(this.lat1+this.lat2)ie?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 wrt(r){var e=r.x,t=r.y;this.sin_phi=Math.sin(t),this.cos_phi=Math.cos(t);var n=Iu(this.e3,this.sin_phi,this.cos_phi),i=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,a=this.ns0*pe(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 Ert(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=pe(i/this.ns0+this.long0),r.x=a,r.y=o,r}function Crt(r,e){var t,n,i,a,o,s=zu(.5*e);if(r0||Math.abs(o)<=ie?(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 brt(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=zu(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=pe(this.long0+a)):(o=this.phic0,a=0),r.x=a,r.y=o,r}var Frt=["gnom"],Irt={init:xrt,forward:Srt,inverse:brt,names:Frt};function Lrt(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*Xt:Xt;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 Ort(){this.sphere||(this.k0=fA(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function Rrt(r){var e=r.x,t=r.y,n,i,a=pe(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=Iu(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 Mrt(r){r.x-=this.x0,r.y-=this.y0;var e,t;return this.sphere?(e=pe(this.long0+r.x/this.a/Math.cos(this.lat_ts)),t=Math.asin(r.y/this.a*Math.cos(this.lat_ts))):(t=Lrt(this.e,2*r.y*this.k0/this.a),e=pe(this.long0+r.x/(this.a*this.k0))),r.x=e,r.y=t,r}var Nrt=["cea"],Prt={init:Ort,forward:Rrt,inverse:Mrt,names:Nrt};function Urt(){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 Drt(r){var e=r.x,t=r.y,n=pe(e-this.long0),i=Yp(t-this.lat0);return r.x=this.x0+this.a*n*this.rc,r.y=this.y0+this.a*i,r}function Qrt(r){var e=r.x,t=r.y;return r.x=pe(this.long0+(e-this.x0)/(this.a*this.rc)),r.y=Yp(this.lat0+(t-this.y0)/this.a),r}var Hrt=["Equirectangular","Equidistant_Cylindrical","eqc"],Grt={init:Urt,forward:Drt,inverse:Qrt,names:Hrt},iN=20;function krt(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ly(this.es),this.e1=uy(this.es),this.e2=cy(this.es),this.e3=hy(this.es),this.ml0=this.a*ka(this.e0,this.e1,this.e2,this.e3,this.lat0)}function $rt(r){var e=r.x,t=r.y,n,i,a,o=pe(e-this.long0);if(a=o*Math.sin(t),this.sphere)Math.abs(t)<=ie?(n=this.a*o,i=-1*this.a*this.lat0):(n=this.a*Math.sin(a)/Math.tan(t),i=this.a*(Yp(t-this.lat0)+(1-Math.cos(a))/Math.tan(t)));else if(Math.abs(t)<=ie)n=this.a*o,i=-1*this.ml0;else{var s=Op(this.a,this.e,Math.sin(t))/Math.tan(t);n=s*Math.sin(a),i=this.a*ka(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 jrt(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)<=ie)e=pe(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=iN;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)<=ie){t=A;break}e=pe(this.long0+Math.asin(n*Math.tan(A)/this.a)/Math.sin(t))}else if(Math.abs(i+this.ml0)<=ie)t=0,e=pe(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=iN;a;--a)if(v=this.e*Math.sin(A),c=Math.sqrt(1-v*v)*Math.tan(A),h=this.a*ka(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)<=ie){t=A;break}c=Math.sqrt(1-this.es*Math.pow(Math.sin(t),2))*Math.tan(t),e=pe(this.long0+Math.asin(n*c/this.a)/Math.sin(t))}return r.x=e,r.y=t,r}var Vrt=["Polyconic","poly"],Krt={init:krt,forward:$rt,inverse:jrt,names:Vrt};function zrt(){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 Xrt(r){var e,t=r.x,n=r.y,i=n-this.lat0,a=t-this.long0,o=i/kv*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 Yrt(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=pe(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 hnt=["Mollweide","moll"],fnt={init:lnt,forward:unt,inverse:cnt,names:hnt};function pnt(){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=pe(this.long0+a/this.ns),n=Yp(this.g-t/this.a),r.x=i,r.y=n,r;var o=this.g-t/this.a;return n=j_(o,this.e0,this.e1,this.e2,this.e3),i=pe(this.long0+a/this.ns),r.x=i,r.y=n,r}var gnt=["Equidistant_Conic","eqdc"],ynt={init:pnt,forward:dnt,inverse:vnt,names:gnt};function mnt(){this.R=this.a}function _nt(r){var e=r.x,t=r.y,n=pe(e-this.long0),i,a;Math.abs(t)<=ie&&(i=this.x0+this.R*n,a=this.y0);var o=zu(2*Math.abs(t/Math.PI));(Math.abs(n)<=ie||Math.abs(Math.abs(t)-Xt)<=ie)&&(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 wnt(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*Xt*this.a?void 0:(t=e/this.a,n=Math.sin(t),i=Math.cos(t),a=this.long0,Math.abs(e)<=ie?o=this.lat0:(o=zu(i*this.sin_p12+r.y*n*this.cos_p12/e),s=Math.abs(this.lat0)-Xt,Math.abs(s)<=ie?this.lat0>=0?a=pe(this.long0+Math.atan2(r.x,-r.y)):a=pe(this.long0-Math.atan2(-r.x,r.y)):a=pe(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=ly(this.es),l=uy(this.es),u=cy(this.es),c=hy(this.es),Math.abs(this.sin_p12-1)<=ie?(h=this.a*ka(A,l,u,c,Xt),e=Math.sqrt(r.x*r.x+r.y*r.y),f=h-e,o=j_(f/this.a,A,l,u,c),a=pe(this.long0+Math.atan2(r.x,-1*r.y)),r.x=a,r.y=o,r):Math.abs(this.sin_p12+1)<=ie?(h=this.a*ka(A,l,u,c,Xt),e=Math.sqrt(r.x*r.x+r.y*r.y),f=e-h,o=j_(f/this.a,A,l,u,c),a=pe(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=Op(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=pe(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 Snt=["Azimuthal_Equidistant","aeqd"],bnt={init:Bnt,forward:Tnt,inverse:xnt,names:Snt};function Fnt(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function Int(r){var e,t,n,i,a,o,s,A,l=r.x,u=r.y;return n=pe(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)<=ie)&&(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 Lnt(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=zu(e/this.a),n=Math.sin(t),i=Math.cos(t),o=this.long0,Math.abs(e)<=ie?(s=this.lat0,r.x=o,r.y=s,r):(s=zu(i*this.sin_p14+r.y*n*this.cos_p14/e),a=Math.abs(this.lat0)-Xt,Math.abs(a)<=ie?(this.lat0>=0?o=pe(this.long0+Math.atan2(r.x,-r.y)):o=pe(this.long0-Math.atan2(-r.x,r.y)),r.x=o,r.y=s,r):(o=pe(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 Ont=["ortho"],Rnt={init:Fnt,forward:Int,inverse:Lnt,names:Ont},Mn={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},Wr={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function Mnt(){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>=Xt-Yr/2?this.face=Mn.TOP:this.lat0<=-(Xt-Yr/2)?this.face=Mn.BOTTOM:Math.abs(this.long0)<=Yr?this.face=Mn.FRONT:Math.abs(this.long0)<=Xt+Yr?this.face=this.long0>0?Mn.RIGHT:Mn.LEFT:this.face=Mn.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 Nnt(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===Mn.TOP)a=Xt-t,n>=Yr&&n<=Xt+Yr?(A.value=Wr.AREA_0,i=n-Xt):n>Xt+Yr||n<=-(Xt+Yr)?(A.value=Wr.AREA_1,i=n>0?n-ri:n+ri):n>-(Xt+Yr)&&n<=-Yr?(A.value=Wr.AREA_2,i=n+Xt):(A.value=Wr.AREA_3,i=n);else if(this.face===Mn.BOTTOM)a=Xt+t,n>=Yr&&n<=Xt+Yr?(A.value=Wr.AREA_0,i=-n+Xt):n=-Yr?(A.value=Wr.AREA_1,i=-n):n<-Yr&&n>=-(Xt+Yr)?(A.value=Wr.AREA_2,i=-n-Xt):(A.value=Wr.AREA_3,i=n>0?-n+ri:-n-ri);else{var l,u,c,h,f,p,v;this.face===Mn.RIGHT?n=cp(n,+Xt):this.face===Mn.BACK?n=cp(n,+ri):this.face===Mn.LEFT&&(n=cp(n,-Xt)),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===Mn.FRONT?(a=Math.acos(l),i=Dm(a,c,u,A)):this.face===Mn.RIGHT?(a=Math.acos(u),i=Dm(a,c,-l,A)):this.face===Mn.BACK?(a=Math.acos(-l),i=Dm(a,c,-u,A)):this.face===Mn.LEFT?(a=Math.acos(-u),i=Dm(a,c,l,A)):(a=i=0,A.value=Wr.AREA_0)}return s=Math.atan(12/ri*(i+Math.acos(Math.sin(i)*Math.cos(Yr))-Xt)),o=Math.sqrt((1-Math.cos(a))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(i))))),A.value===Wr.AREA_1?s+=Xt:A.value===Wr.AREA_2?s+=ri:A.value===Wr.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 Pnt(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=Wr.AREA_0:r.y>=0&&r.y>=Math.abs(r.x)?(c.value=Wr.AREA_1,t-=Xt):r.x<0&&-r.x>=Math.abs(r.y)?(c.value=Wr.AREA_2,t=t<0?t+ri:t-ri):(c.value=Wr.AREA_3,t+=Xt),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===Mn.TOP)l=Math.acos(A),e.phi=Xt-l,c.value===Wr.AREA_0?e.lam=s+Xt:c.value===Wr.AREA_1?e.lam=s<0?s+ri:s-ri:c.value===Wr.AREA_2?e.lam=s-Xt:e.lam=s;else if(this.face===Mn.BOTTOM)l=Math.acos(A),e.phi=l-Xt,c.value===Wr.AREA_0?e.lam=-s+Xt:c.value===Wr.AREA_1?e.lam=-s:c.value===Wr.AREA_2?e.lam=-s-Xt: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===Wr.AREA_1?(u=f,f=-p,p=u):c.value===Wr.AREA_2?(f=-f,p=-p):c.value===Wr.AREA_3&&(u=f,f=p,p=-u),this.face===Mn.RIGHT?(u=h,h=-f,f=u):this.face===Mn.BACK?(h=-h,f=-f):this.face===Mn.LEFT&&(u=h,h=f,f=-u),e.phi=Math.acos(-p)-Xt,e.lam=Math.atan2(f,h),this.face===Mn.RIGHT?e.lam=cp(e.lam,-Xt):this.face===Mn.BACK?e.lam=cp(e.lam,-ri):this.face===Mn.LEFT&&(e.lam=cp(e.lam,+Xt))}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 Dm(r,e,t,n){var i;return rYr&&i<=Xt+Yr?(n.value=Wr.AREA_1,i-=Xt):i>Xt+Yr||i<=-(Xt+Yr)?(n.value=Wr.AREA_2,i=i>=0?i-ri:i+ri):(n.value=Wr.AREA_3,i+=Xt)),i}function cp(r,e){var t=r+e;return t<-ri?t+=_g:t>+ri&&(t-=_g),t}var Unt=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"],Dnt={init:Mnt,forward:Nnt,inverse:Pnt,names:Unt},px=[[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]],_v=[[-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]],P4=.8487,U4=1.3523,D4=nA/5,Qnt=1/D4,Zf=18,V_=function(r,e){return r[0]+e*(r[1]+e*(r[2]+e*r[3]))},Hnt=function(r,e){return r[1]+e*(2*r[2]+e*3*r[3])};function Gnt(r,e,t,n){for(var i=e;n;--n){var a=r(i);if(i-=a,Math.abs(a)=Zf&&(n=Zf-1),t=nA*(t-Qnt*n);var i={x:V_(px[n],t)*e,y:V_(_v[n],t)};return r.y<0&&(i.y=-i.y),i.x=i.x*this.a*P4+this.x0,i.y=i.y*this.a*U4+this.y0,i}function jnt(r){var e={x:(r.x-this.x0)/(this.a*P4),y:Math.abs(r.y-this.y0)/(this.a*U4)};if(e.y>=1)e.x/=px[Zf][0],e.y=r.y<0?-Xt:Xt;else{var t=Math.floor(e.y*Zf);for(t<0?t=0:t>=Zf&&(t=Zf-1);;)if(_v[t][0]>e.y)--t;else if(_v[t+1][0]<=e.y)++t;else break;var n=_v[t],i=5*(e.y-n[0])/(_v[t+1][0]-n[0]);i=Gnt(function(a){return(V_(n,a)-e.y)/Hnt(n,a)},i,ie,100),e.x/=V_(px[t],i),e.y=(5*t+i)*ia,r.y<0&&(e.y=-e.y)}return e.x=pe(e.x+this.long0),e}var Vnt=["Robinson","robin"],Knt={init:knt,forward:$nt,inverse:jnt,names:Vnt};function znt(){this.name="geocent"}function Xnt(r){var e=C4(r,this.es,this.a);return e}function Ynt(r){var e=B4(r,this.es,this.a,this.b);return e}var Wnt=["Geocentric","geocentric","geocent","Geocent"],qnt={init:znt,forward:Xnt,inverse:Ynt,names:Wnt},wa={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},Xd={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 Znt(){if(Object.keys(Xd).forEach(function(t){if(typeof this[t]>"u")this[t]=Xd[t].def;else{if(Xd[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);Xd[t].num&&(this[t]=parseFloat(this[t]))}Xd[t].degrees&&(this[t]=this[t]*ia)}.bind(this)),Math.abs(Math.abs(this.lat0)-Xt)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 Jnt(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 wa.OBLIQ:a=this.sinph0*e+this.cosph0*t*n;break;case wa.EQUIT:a=t*n;break;case wa.S_POLE:a=-e;break;case wa.N_POLE:a=e;break}switch(a=this.pn1/(this.p-a),i=a*t*Math.sin(r.x),this.mode){case wa.OBLIQ:a*=this.cosph0*e-this.sinph0*t*n;break;case wa.EQUIT:a*=e;break;case wa.N_POLE:a*=-(t*n);break;case wa.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 tit(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=ww(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(){Te()},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:rI(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}(bh),LI=cit,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)}}(),fit=function(r){hit(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=ye.LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){this.state=ye.ERROR,this.unlistenImage_(),this.image_=pit(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=ye.LOADED:this.state=ye.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==ye.ERROR&&(this.state=ye.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==ye.IDLE&&(this.state=ye.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=CI(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(LI);function pit(){var r=za(1,1);return r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1),r.canvas}var z_=fit,H4=.5,dit=10,aN=.25,vit=function(){function r(e,t,n,i,a,o){this.sourceProj_=e,this.targetProj_=t;var s={},A=yg(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()&&Or(i)==Or(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Or(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Or(this.targetProj_.getExtent()):null;var l=Ns(n),u=Zg(n),c=Vp(n),h=qg(n),f=this.transformInv_(l),p=this.transformInv_(u),v=this.transformInv_(c),m=this.transformInv_(h),g=dit+(o?Math.max(0,Math.ceil(r6(ug(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=Wi([e,t,n,i]),m=Or(v)/this.targetWorldWidth_;p=m>aN||p}!f&&this.sourceProj_.isGlobal()&&c&&(p=c>aN||p)}if(!(!p&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!Nn(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],F=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,F,S,l-1),this.addQuad_(M,T,n,i,S,F,s,A,l-1)}else{var x=[(e[0]+t[0])/2,(e[1]+t[1])/2],N=this.transformInv_(x),P=[(n[0]+i[0])/2,(n[1]+i[1])/2],Y=this.transformInv_(P);this.addQuad_(e,x,P,i,a,N,Y,A,l-1),this.addQuad_(x,t,n,P,N,o,s,Y,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;Zc(e,a[0]),Zc(e,a[1]),Zc(e,a[2])}),e},r.prototype.getTriangles=function(){return this.triangles_},r}(),G4=vit,Rp={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},k4={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0},QC;function oN(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 HC(r,e){return Math.abs(r[e*4]-210)>2||Math.abs(r[e*4+3]-.75*255)>2}function git(){if(QC===void 0){var r=document.createElement("canvas").getContext("2d");r.globalCompositeOperation="lighter",r.fillStyle="rgba(210, 0, 0, 0.75)",oN(r,4,5,4,0),oN(r,4,5,0,5);var e=r.getImageData(0,0,3,3).data;QC=HC(e,0)||HC(e,4)||HC(e,8)}return QC}function Cg(r,e,t,n){var i=ju(t,e,r),a=L_(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||Fs(A,i)){var l=L_(r,a,i)/a;isFinite(l)&&l>0&&(a/=l)}return a}function yit(r,e,t,n){var i=ba(t),a=Cg(r,e,i,n);return(!isFinite(a)||a<=0)&&aw(t,function(o){return a=Cg(r,e,o,n),isFinite(a)&&a>0}),a}function $4(r,e,t,n,i,a,o,s,A,l,u,c){var h=za(Math.round(t*r),Math.round(t*e));if(c||ve(h,Rp),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){ku(p,B.extent)});var v=Or(p),m=li(p),g=za(Math.round(t*v/n),Math.round(t*m/n));c||ve(g,Rp);var _=t/n;A.forEach(function(B,L,O){var b=B.extent[0]-p[0],T=-(B.extent[3]-p[3]),F=Or(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,b*_,T*_,F*_,M*_)});var E=Ns(o);return s.getTriangles().forEach(function(B,L,O){var b=B.source,T=B.target,F=b[0][0],M=b[0][1],S=b[1][0],x=b[1][1],N=b[2][0],P=b[2][1],Y=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=F,R=M;F=0,M=0,S-=_t,x-=R,N-=_t,P-=R;var $=[[S,x,0,0,tt-Y],[N,P,0,0,nt-Y],[0,0,S,x,J-z],[0,0,N,P,it-z]],K=TX($);if(K){if(h.save(),h.beginPath(),git()||!c){h.moveTo(tt,J);for(var q=4,at=Y-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 gf(r,e,t,n,i){return i!==void 0?(i.minX=r,i.maxX=e,i.minY=t,i.maxY=n,i):new j4(r,e,t,n)}var RI=j4,wit=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)}}(),Eit=function(r){wit(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 RI(0,0,0,0),n}return e.prototype.isDrawableTile=function(t){var n=this.getLayer(),i=t.getState(),a=n.getUseInterimTilesOnError();return i==ye.LOADED||i==ye.EMPTY||i==ye.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()==ye.ERROR&&(A.getUseInterimTilesOnError()?A.getPreload()>0&&(this.newTiles_=!0):u.setState(ye.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=hn(n.pixelToCoordinateTransform,t.slice()),o=i.getExtent();if(o&&!Fs(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 z_||v instanceof OI))return null;if(v.getState()===ye.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&&Ro(i.extent);_&&(g=es(g,Ro(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,F=[A[0]-b,A[1]-T,A[0]+b,A[1]+T],M=p.getTileRangeForExtentAndZ(g,v),S={};S[v]={};var x=this.createLoadedTileFinder(h,o,S),N=this.tmpExtent,P=this.tmpTileRange_;this.newTiles_=!1;for(var Y=M.minX;Y<=M.maxX;++Y)for(var z=M.minY;z<=M.maxY;++z){var tt=this.getTile(v,Y,z,t);if(this.isDrawableTile(tt)){var J=de(this);if(tt.getState()==ye.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=x(v+1,it)),_t||p.forEachTileCoordParentTileRange(tt.tileCoord,x,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 $=QF(this.pixelTransform);this.useContainer(n,$,i.opacity,this.getBackground(t));var K=this.context,q=K.canvas;Wg(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()||ve(K,Rp),this.preRender(K,t),this.renderedTiles.length=0;var at=Object.keys(S).map(Number);at.sort(Hu);var vt,wt,W;i.opacity===1&&(!this.containerReused||h.getOpaque(t.viewState.projection))?at=at.reverse():(vt=[],wt=[]);for(var Ft=at.length-1;Ft>=0;--Ft){var Ot=at[Ft],V=h.getTilePixelSize(Ot,u,o),Z=p.getResolution(Ot),ut=Z/m,rt=V[0]*ut*R,G=V[1]*ut*R,St=p.getTileCoordForCoordAndZ(Ns(F),Ot),bt=p.getTileCoordExtent(St),dt=hn(this.tempTransform,[E*(bt[0]-F[0])/m,E*(F[3]-bt[3])/m]),Et=E*h.getGutterForProjection(o),yt=S[Ot];for(var xt in yt){var tt=yt[xt],It=tt.tileCoord,Mt=St[1]-It[1],Vt=Math.round(dt[0]-(Mt-1)*rt),Yt=St[2]-It[2],ae=Math.round(dt[1]-(Yt-1)*G),Y=Math.round(dt[0]-Mt*rt),z=Math.round(dt[1]-Yt*G),re=Vt-Y,Wt=ae-z,se=v===Ot,nt=se&&tt.getAlpha(de(this),t.time)!==1,zt=!1;if(!nt)if(vt){W=[Y,z,Y+re,z,Y+re,z+Wt,Y,z+Wt];for(var We=0,Me=vt.length;We{}}}};function xit(r,e,t,n,i,a){return fn(),Vn("div")}var Oh=ue(Tit,[["render",xit]]);const Sit={extends:Oh,name:"ol-tile-layer",setup(r){const e=Be("map"),t=Be("overviewMap",null),{properties:n}=gr(r),i=fr(()=>new MI(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&&fe(t,()=>{o(),a()}),Je(()=>{a()}),ar(()=>{o()}),Pr("tileLayer",i),{tileLayer:i}},props:{preload:{type:Number,default:1}}};function bit(r,e,t,n,i,a){return fn(),Vn("div",null,[_r(r.$slots,"default")])}var vx=ue(Sit,[["render",bit]]),Fit=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 we(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 we(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){we(!(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}(),K4=Fit,Iit=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)}}(),Lit=function(r){Iit(e,r);function e(t){var n=this,i=ye.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=ye.LOADING,this.changed();var t=this;this.loader_().then(function(n){t.data_=n,t.state=ye.LOADED,t.changed()}).catch(function(n){t.error_=n,t.state=ye.ERROR,t.changed()})},e}(LI),Oit=Lit,Bg=34962,Ew=34963,Rit=35040,NI=35044,K0=35048,Mit=5121,Nit=5123,Pit=5125,z4=5126,sN=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function X4(r,e){for(var t=ve({preserveDrawingBuffer:!0,antialias:!iX},e),n=sN.length,i=0;i0))){var t=e.canvas,n=X4(t),i=n.getExtension("WEBGL_lose_context");i&&i.loseContext(),delete X_[r]}}var qit=function(r){zit(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?uN(i.canvasCacheKey):Xit(),n.canvas_=Yit(n.canvasCacheKey_),n.gl_=X4(n.canvas_),n.bufferCache_={},n.extensionCache_={},n.currentProgram_=null,n.canvas_.addEventListener(Qm.LOST,n.boundHandleWebGLContextLost_),n.canvas_.addEventListener(Qm.RESTORED,n.boundHandleWebGLContextRestored_),n.offsetRotateMatrix_=si(),n.offsetScaleMatrix_=si(),n.tmpMat4_=W4(),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 lN({webGlContext:a,scaleRatio:o.scaleRatio,vertexShader:o.vertexShader,fragmentShader:o.fragmentShader,uniforms:o.uniforms})}):[new lN({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_===uN(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=de(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=de(t),a=this.bufferCache_[i];a&&!n.isContextLost()&&n.deleteBuffer(a.webGlBuffer),delete this.bufferCache_[i]},e.prototype.disposeInternal=function(){this.canvas_.removeEventListener(Qm.LOST,this.boundHandleWebGLContextLost_),this.canvas_.removeEventListener(Qm.RESTORED,this.boundHandleWebGLContextRestored_),Wit(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 aat=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)}}(),Ze={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"},X0={TEXTURE_COORD:"a_textureCoord"},oat=[{name:X0.TEXTURE_COORD,size:2,type:Wo.FLOAT}],sat={};function Aat(r){return 2*(1-1/(r+1))-1}function hN(r,e,t){t in r||(r[t]=[]),r[t].push(e)}function $C(r,e){var t=r.layerStatesArray[r.layerIndex];t.extent&&(e=es(e,Ro(t.extent,r.viewState.projection)));var n=t.layer.getRenderSource();if(!n.getWrapX()){var i=n.getTileGridForProjection(r.viewState.projection).getExtent();i&&(e=es(e,i))}return e}function jC(r,e){return"".concat(r.getKey(),",").concat(xg(e))}var lat=function(r){aat(e,r);function e(t,n){var i=r.call(this,t,{uniforms:n.uniforms})||this;i.renderComplete=!1,i.tileTransform_=si(),i.tempMat4_=W4(),i.tempTileRange_=new RI(0,0,0,0),i.tempTileCoord_=Tg(0,0,0),i.tempSize_=[0,0],i.program_,i.vertexShader_=n.vertexShader,i.fragmentShader_=n.fragmentShader,i.indices_=new $v(Ew,NI),i.indices_.fromArray([0,1,3,1,2,3]);var a=n.cacheSize!==void 0?n.cacheSize:512;return i.tileTextureCache_=new K4(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==ye.LOADED||i==ye.EMPTY||i==ye.ERROR&&!a},e.prototype.prepareFrameInternal=function(t){var n=this.getLayer(),i=n.getRenderSource();return!i||Kp($C(t,t.extent))?!1:i.getState()===Ha.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=de(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=Tg(m,E,B,this.tempTileCoord_),O=jC(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 $it({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 F=T.getInterimTile();b.setTile(F)}hN(a,b,m);var M=T.getKey();f[M]=!0,T.getState()===ye.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=$C(t,t.extent),l=s.getZForResolution(i.resolution,o.zDirection),u={};if(t.nextExtent){var c=s.getZForResolution(i.nextResolution,o.zDirection),h=$C(t,t.nextExtent);this.enqueueTiles(t,h,c,u)}this.enqueueTiles(t,A,l,u);for(var f={},p=de(this),v=t.time,m=!1,g=u[l],_=0,E=g.length;_=M;--S){var x=this.findAltTiles_(s,O,S,u);if(x)break}}this.helper.useProgram(this.program_),this.helper.prepareDraw(t,!m);for(var N=Object.keys(u).map(Number).sort(Hu),P=i.center[0],Y=i.center[1],z=0,tt=N.length;z=u.getMinZoom();--f){var p=u.getTileCoordForCoordAndZ(o,f),v=jC(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=jC(l,[i,u,c]),f=!1;if(A.containsKey(h)){var p=A.get(h);p.loaded&&(hN(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}(Z4),uat=lat,cat=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}(),hat=cat,te={NUMBER:1,STRING:2,COLOR:4,BOOLEAN:8,NUMBER_ARRAY:16,ANY:31,NONE:0},ir={};function pA(r){if(typeof r=="number")return te.NUMBER;if(typeof r=="boolean")return te.BOOLEAN;if(typeof r=="string")return SX(r)?te.COLOR|te.STRING:te.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?te.COLOR|te.NUMBER_ARRAY:te.NUMBER_ARRAY;if(typeof e[0]!="string")throw new Error("Expected an expression operator but received: ".concat(JSON.stringify(e)));var n=ir[e[0]];if(n===void 0)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(e)));return n.getReturnType(e.slice(1))}function fat(r){return r6(r)%1===0}function Bw(r){var e=r.toString();return e.indexOf(".")===-1?e+".0":e}function t8(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(Bw).join(", "),")")}function pat(r){var e=$u(r).slice();return e.length<4&&e.push(1),t8(e.map(function(t,n){return n<3?t/255:t}))}function Y_(r,e){return r.stringLiteralsMap[e]===void 0&&(r.stringLiteralsMap[e]=Object.keys(r.stringLiteralsMap).length),r.stringLiteralsMap[e]}function dat(r,e){return Bw(Y_(r,e))}function le(r,e,t){if(Array.isArray(e)&&typeof e[0]=="string"){var n=ir[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=pA(e);if((i&te.NUMBER)>0)return Bw(e);if((i&te.BOOLEAN)>0)return e.toString();if((i&te.STRING)>0&&(t===void 0||t==te.STRING))return dat(r,e.toString());if((i&te.COLOR)>0&&(t===void 0||t==te.COLOR))return pat(e);if((i&te.NUMBER_ARRAY)>0)return t8(e);throw new Error("Unexpected expression ".concat(e," (expected type ").concat(t,")"))}function e8(r){if(!(pA(r)&te.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 n8(r){if(r.length%2!==0)throw new Error("An even amount of arguments was expected, got ".concat(r," instead"))}function vat(r){if(r.length%2===0)throw new Error("An odd amount of arguments was expected, got ".concat(r," instead"))}function UI(r,e){if(!fat(e))throw new Error("Could not infer only one type from the following expression: ".concat(JSON.stringify(r)))}ir.get={getReturnType:function(r){return te.ANY},toGlsl:function(r,e){En(e,1),r8(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 DI(r){return"u_var_"+r}ir.var={getReturnType:function(r){return te.ANY},toGlsl:function(r,e){En(e,1),r8(e[0]);var t=e[0].toString();return r.variables.indexOf(t)===-1&&r.variables.push(t),DI(t)}};var i8="u_paletteTextures";ir.palette={getReturnType:function(r){return te.COLOR},toGlsl:function(r,e){En(e,2),e8(e[0]);var t=le(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;o"]={getReturnType:function(r){return te.BOOLEAN},toGlsl:function(r,e){return En(e,2),ci(e),"(".concat(le(r,e[0])," > ").concat(le(r,e[1]),")")}};ir[">="]={getReturnType:function(r){return te.BOOLEAN},toGlsl:function(r,e){return En(e,2),ci(e),"(".concat(le(r,e[0])," >= ").concat(le(r,e[1]),")")}};ir["<"]={getReturnType:function(r){return te.BOOLEAN},toGlsl:function(r,e){return En(e,2),ci(e),"(".concat(le(r,e[0])," < ").concat(le(r,e[1]),")")}};ir["<="]={getReturnType:function(r){return te.BOOLEAN},toGlsl:function(r,e){return En(e,2),ci(e),"(".concat(le(r,e[0])," <= ").concat(le(r,e[1]),")")}};function a8(r){return{getReturnType:function(e){return te.BOOLEAN},toGlsl:function(e,t){En(t,2);for(var n=te.ANY,i=0;i= ").concat(t," && ").concat(i," <= ").concat(n,")")}};ir.array={getReturnType:function(r){return te.NUMBER_ARRAY},toGlsl:function(r,e){rc(e,2),Tw(e,4),ci(e);var t=e.map(function(n){return le(r,n,te.NUMBER)});return"vec".concat(e.length,"(").concat(t.join(", "),")")}};ir.color={getReturnType:function(r){return te.COLOR},toGlsl:function(r,e){rc(e,3),Tw(e,4),ci(e);var t=e;e.length===3&&t.push(1);var n=e.map(function(i,a){return le(r,i,te.NUMBER)+(a<3?" / 255.0":"")});return"vec".concat(e.length,"(").concat(n.join(", "),")")}};ir.interpolate={getReturnType:function(r){for(var e=te.COLOR|te.NUMBER,t=3;t=1;A-=2){var l=le(r,e[A]),u=le(r,e[A+1],i);s="(".concat(a," == ").concat(l," ? ").concat(u," : ").concat(s||o,")")}return s}};ir.case={getReturnType:function(r){for(var e=te.ANY,t=1;t=0;a-=2){var A=le(r,e[a]),l=le(r,e[a+1],i);s="(".concat(A," ? ").concat(l," : ").concat(s||o,")")}return s}};var gat=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 fN(r,e){var t=` + attribute vec2 `.concat(X0.TEXTURE_COORD,`; + uniform mat4 `).concat(Ze.TILE_TRANSFORM,`; + uniform float `).concat(Ze.TEXTURE_PIXEL_WIDTH,`; + uniform float `).concat(Ze.TEXTURE_PIXEL_HEIGHT,`; + uniform float `).concat(Ze.TEXTURE_RESOLUTION,`; + uniform float `).concat(Ze.TEXTURE_ORIGIN_X,`; + uniform float `).concat(Ze.TEXTURE_ORIGIN_Y,`; + uniform float `).concat(Ze.DEPTH,`; + + varying vec2 v_textureCoord; + varying vec2 v_mapCoord; + + void main() { + v_textureCoord = `).concat(X0.TEXTURE_COORD,`; + v_mapCoord = vec2( + `).concat(Ze.TEXTURE_ORIGIN_X," + ").concat(Ze.TEXTURE_RESOLUTION," * ").concat(Ze.TEXTURE_PIXEL_WIDTH,` * v_textureCoord[0], + `).concat(Ze.TEXTURE_ORIGIN_Y," - ").concat(Ze.TEXTURE_RESOLUTION," * ").concat(Ze.TEXTURE_PIXEL_HEIGHT,` * v_textureCoord[1] + ); + gl_Position = `).concat(Ze.TILE_TRANSFORM," * vec4(").concat(X0.TEXTURE_COORD,", ").concat(Ze.DEPTH,`, 1.0); + } + `),n={inFragmentShader:!0,variables:[],attributes:[],stringLiteralsMap:{},functions:{},bandCount:e},i=[];if(r.color!==void 0){var a=le(n,r.color,te.COLOR);i.push("color = ".concat(a,";"))}if(r.contrast!==void 0){var o=le(n,r.contrast,te.NUMBER);i.push("color.rgb = clamp((".concat(o," + 1.0) * color.rgb - (").concat(o," / 2.0), vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}if(r.exposure!==void 0){var s=le(n,r.exposure,te.NUMBER);i.push("color.rgb = clamp((".concat(s," + 1.0) * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}if(r.saturation!==void 0){var A=le(n,r.saturation,te.NUMBER);i.push(` + float saturation = `.concat(A,` + 1.0; + float sr = (1.0 - saturation) * 0.2126; + float sg = (1.0 - saturation) * 0.7152; + float sb = (1.0 - saturation) * 0.0722; + mat3 saturationMatrix = mat3( + sr + saturation, sr, sr, + sg, sg + saturation, sg, + 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=le(n,r.gamma,te.NUMBER);i.push("color.rgb = pow(color.rgb, vec3(1.0 / ".concat(l,"));"))}if(r.brightness!==void 0){var u=le(n,r.brightness,te.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=DI(B);c[L]=function(){var O=r.variables[B];return typeof O=="string"&&(O=Y_(n,O)),O!==void 0?O:-9999999}},p=0;p `).concat(Ze.RENDER_EXTENT,`[2] || + v_mapCoord[1] > `).concat(Ze.RENDER_EXTENT,`[3] + ) { + discard; + } + + vec4 color = texture2D(`).concat(Ze.TILE_TEXTURE_ARRAY,`[0], v_textureCoord); + + `).concat(i.join(` +`),` + + if (color.a == 0.0) { + discard; + } + + gl_FragColor = color; + gl_FragColor.rgb *= gl_FragColor.a; + gl_FragColor *= `).concat(Ze.TRANSITION_ALPHA,`; + }`);return{vertexShader:t,fragmentShader:_,uniforms:c,paletteTextures:n.paletteTextures}}var s8=function(r){gat(e,r);function e(t){var n=this,i=t?ve({},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(Hr.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():Ha.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=fN(this.style_,this.getSourceBandCount_());return new uat(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=fN(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){ve(this.styleVariables_,t),this.changed()},e}(Q4);s8.prototype.dispose;var yat=s8;const mat={extends:Oh,name:"ol-webgl-tile-layer",setup(r){const e=Be("map"),t=Be("overviewMap",null),{properties:n}=gr(r),i=fr(()=>new yat(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&&fe(t,()=>{o(),a()}),Je(()=>{a()}),ar(()=>{o()}),Pr("tileLayer",i),{tileLayer:i}},props:{preload:{type:Number,default:1}}};function _at(r,e,t,n,i,a){return fn(),Vn("div",null,[_r(r.$slots,"default")])}var gx=ue(mat,[["render",_at]]),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)}}(),Eat=function(r){wat(e,r);function e(t){var n=t||{};return r.call(this,n)||this}return e}(Fh),Cat=Eat,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)}}(),Tat=function(r){Bat(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=es(l,Ro(n.extent,a.projection))),!A[mn.ANIMATING]&&!A[mn.INTERACTING]&&!Kp(l))if(s){var u=a.projection,c=s.getImage(l,o,i,u);c&&(this.loadImage(c)?this.image_=c:c.getState()===je.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=hn(n.pixelToCoordinateTransform,t.slice()),o=i.getExtent();if(o&&!Fs(o,a))return null;var s=this.image_.getExtent(),A=this.image_.getImage(),l=Or(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),Wg(this.inversePixelTransform,this.pixelTransform);var E=QF(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=Ro(A.extent,u.projection);b=Nn(T,t.extent),O=b&&!Oo(T,t.extent),O&&this.clipUnrotated(B,t,T)}var F=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=F.width*M[0],x=F.height*M[3];if(this.getLayer().getSource().getInterpolate()||ve(B,Rp),this.preRender(B,t),b&&S>=.5&&x>=.5){var N=M[4],P=M[5],Y=A.opacity,z=void 0;Y!==1&&(z=B.globalAlpha,B.globalAlpha=Y),B.drawImage(F,0,0,+F.width,+F.height,Math.round(N),Math.round(P),Math.round(S),Math.round(x)),Y!==1&&(B.globalAlpha=z)}return this.postRender(B,t),O&&B.restore(),ve(B,k4),E!==L.style.transform&&(L.style.transform=E),this.container},e}(wI),xat=Tat,Sat=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)}}(),bat=function(r){Sat(e,r);function e(t){return r.call(this,t)||this}return e.prototype.createRenderer=function(){return new xat(this)},e.prototype.getData=function(t){return r.prototype.getData.call(this,t)},e}(Cat),A8=bat;const Fat={extends:Oh,name:"ol-image-layer",setup(r){const e=Be("map"),{properties:t}=gr(r),n=new A8(t);return fe(t,()=>{n.setProperties(t)}),Je(()=>{e.addLayer(n)}),ar(()=>{e.removeLayer(n)}),Pr("imageLayer",n),{imageLayer:n}}};function Iat(r,e,t,n,i,a){return fn(),Vn("div",null,[_r(r.$slots,"default")])}var yx=ue(Fat,[["render",Iat]]);const Lat={extends:Oh,name:"ol-vector-layer",setup(r){const e=Be("map"),{properties:t}=gr(r),n=fr(()=>new dA(t));return fe(t,()=>{n.value.setProperties(t)}),Je(()=>{e.addLayer(n.value)}),ar(()=>{e.removeLayer(n.value)}),Pr("vectorLayer",n),Pr("stylable",n),{vectorLayer:n}},props:{renderBuffer:{type:Number,default:100},updateWhileAnimating:{type:Boolean,default:!1},style:{type:Function},updateWhileInteracting:{type:Boolean,default:!1}}};function Oat(r,e,t,n,i,a){return fn(),Vn("div",null,[_r(r.$slots,"default")])}var mx=ue(Lat,[["render",Oat]]),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)}}(),Mat=function(r){Rat(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=nat(t),i=n[0];this.forEach(function(a){a.tileCoord[0]!==i&&(this.remove(xg(a.tileCoord)),a.release())}.bind(this))}},e}(K4),l8=Mat,KC={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"},Nat=[0,0,0],eu=5,Pat=function(){function r(e){this.minZoom=e.minZoom!==void 0?e.minZoom:0,this.resolutions_=e.resolutions,we(Jz(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=gf(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}(vw),Gat=function(r){f8(e,r);function e(t,n){var i=r.call(this,t)||this;return i.tile=n,i}return e}(vo),p8=Hat;function kat(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);we(u,55);var c=u.getHeight()-o[2]-1;return c.toString()})}}function $at(r,e){for(var t=r.length,n=new Array(t),i=0;i>=1;return t.join("")}var Jat='Terms of Use',tot=function(r){qat(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:Re("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:Ha.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 Wat(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(Ha.ERROR);return}var n=t.resourceSets[0].resources[0],i=this.maxZoom_==-1?n.zoomMax:this.maxZoom_,a=this.getProjection(),o=xw(a),s=this.hidpi_?2:1,A=n.imageWidth==n.imageHeight?n.imageWidth/s:[n.imageWidth/s,n.imageHeight/s],l=c8({extent:o,minZoom:n.zoomMin,maxZoom:i,tileSize:A});this.tileGrid=l;var u=this.culture_,c=this.hidpi_;if(this.tileUrlFunction=W_(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){Tg(m[0],m[1],m[2],p);var E=v;return c&&(E+="&dpi=d1&device=mobile"),E.replace("{quadkey}",Zat(p))}else return}})),n.imageryProviders){var h=vh(Re("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=F.zoomMin&&E<=F.zoomMax){var M=F.bbox,S=[M[1],M[0],M[3],M[2]],x=$F(S,h);if(Nn(x,f.extent)){L=!0;break}}}L&&p.push(B.attribution)}),p.push(Jat),p}.bind(this))}this.setState(Ha.READY)},e}(Sw),eot=tot,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)}}(),not=function(r){rot(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:c8({extent:xw(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}(Sw),g8=not,iot=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)}}(),aot=function(r){iot(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 we(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(me.CHANGE,this.boundRefresh_),this.source=t,t&&t.addEventListener(me.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?u6(i,o.getCoordinates()):t.splice(a,1)}c6(i,1/t.length);var s=ba(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 sr({geometry:l,features:t})},e}(Tl),y8=aot,tA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oot(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 Ca=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:Ca(Ca([],e.supports,!0),n,!0),formats:Ca(Ca([],e.formats,!0),i,!0),qualities:Ca(Ca([],e.qualities,!0),a,!0)}}function cot(r){var e=r.getComplianceLevelSupportedFeatures(),t=r.imageInfo.extraFormats===void 0?e.formats:Ca(Ca([],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:Ca(Ca([],e.supports,!0),r.imageInfo.extraFeatures,!0),formats:t,qualities:r.imageInfo.extraQualities===void 0?e.qualities:Ca(Ca([],e.qualities,!0),r.imageInfo.extraQualities,!0),preferredFormat:n}}var bw={};bw[Da.VERSION1]=lot;bw[Da.VERSION2]=uot;bw[Da.VERSION3]=cot;var hot=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"&&pN.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?_h.none.none:_h[e][t]}},r.prototype.getTileSourceOptions=function(e){var t=e||{},n=this.getImageApiVersion();if(n!==void 0){var i=n===void 0?void 0:bw[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}(),fot=hot,pot=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)}}(),dot=function(r){pot(e,r);function e(t,n,i,a,o,s,A){var l=this,u=t.getExtent(),c=n.getExtent(),h=c?es(i,c):i,f=ba(h),p=Cg(t,n,f,a),v=H4,m=new G4(t,n,h,u,p*v,a),g=m.calculateSourceExtent(),_=s(g,p,o),E=_?je.IDLE:je.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==je.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==je.LOADED){var n=Or(this.targetExtent_)/this.targetResolution_,i=li(this.targetExtent_)/this.targetResolution_;this.canvas_=$4(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==je.IDLE){this.state=je.LOADING,this.changed();var t=this.sourceImage_.getState();t==je.LOADED||t==je.ERROR?this.reproject_():(this.sourceListenerKey_=Ue(this.sourceImage_,me.CHANGE,function(n){var i=this.sourceImage_.getState();(i==je.LOADED||i==je.ERROR)&&(this.unlistenSource_(),this.reproject_())},this),this.sourceImage_.load())}},e.prototype.unlistenSource_=function(){Nr(this.sourceListenerKey_),this.sourceListenerKey_=null},e}(n4),vot=dot,m8=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)}}(),zC={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"},got=function(r){m8(e,r);function e(t,n){var i=r.call(this,t)||this;return i.image=n,i}return e}(vo),yot=function(r){m8(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=ew(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||Zs(o,a))return o&&(a=o),this.getImageInternal(t,n,i,a);if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&Zs(this.reprojectedImage_.getProjection(),a)&&this.reprojectedImage_.getResolution()==n&&cA(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new vot(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 Te()},e.prototype.handleImageChange=function(t){var n=t.target,i;switch(n.getState()){case je.LOADING:this.loading=!0,i=zC.IMAGELOADSTART;break;case je.LOADED:this.loading=!1,i=zC.IMAGELOADEND;break;case je.ERROR:this.loading=!1,i=zC.IMAGELOADERROR;break;default:return}this.hasListener(i)&&this.dispatchEvent(new got(i,n))},e}(vw);function _8(r,e){r.getImage().src=e}var w8=yot;function Mp(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 mot=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)}}(),_ot=function(r){mot(e,r);function e(t){var n=this,i=t.crossOrigin!==void 0?t.crossOrigin:null,a=t.imageLoadFunction!==void 0?t.imageLoadFunction:_8,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:Re(t.projection)})||this,n.url_=t.url,n.imageExtent_=t.imageExtent,n.image_=new i4(n.imageExtent_,void 0,1,n.url_,i,a),n.imageSize_=t.imageSize?t.imageSize:null,n.image_.addEventListener(me.CHANGE,n.handleImageChange.bind(n)),n}return e.prototype.getImageExtent=function(){return this.imageExtent_},e.prototype.getImageInternal=function(t,n,i,a){return Nn(t,this.image_.getExtent())?this.image_:null},e.prototype.getUrl=function(){return this.url_},e.prototype.handleImageChange=function(t){if(this.image_.getState()==je.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=Or(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=za(c,h);this.getInterpolate()||ve(f,Rp);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}(w8),wot=_ot,yu="1.3.0",mu={CARMENTA_SERVER:"carmentaserver",GEOSERVER:"geoserver",MAPSERVER:"mapserver",QGIS:"qgis"},Eot=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)}}(),ru=4,dN=[101,101],Cot=function(r){Eot(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:_8,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=Re(i),s=this.getProjection();s&&s!==o&&(n=Cg(s,o,t,n),t=ju(t,o,s));var A=Jc(t,n,0,dN),l={SERVICE:"WMS",VERSION:yu,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};ve(l,this.params_,a);var u=Kf((t[0]-A[0])/n,ru),c=Kf((A[3]-t[1])/n,ru);return l[this.v13_?"I":"X"]=u,l[this.v13_?"J":"Y"]=c,this.getRequestUrl_(A,dN,1,s||o,l)}},e.prototype.getLegendUrl=function(t,n){if(this.url_!==void 0){var i={SERVICE:"WMS",VERSION:yu,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 ve(i,n),Mp(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=ba(t),A=du(Or(t)/o,ru),l=du(li(t)/o,ru),u=Jc(s,o,0,[A,l]),c=du(this.ratio_*Or(t)/o,ru),h=du(this.ratio_*li(t)/o,ru),f=Jc(s,o,0,[c,h]),p=this.image_;if(p&&this.renderedRevision_==this.getRevision()&&p.getResolution()==n&&p.getPixelRatio()==i&&Oo(p.getExtent(),u))return p;var v={SERVICE:"WMS",VERSION:yu,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};ve(v,this.params_),this.imageSize_[0]=tM(Or(f)/o,ru),this.imageSize_[1]=tM(li(f)/o,ru);var m=this.getRequestUrl_(f,this.imageSize_,i,a,v);return this.image_=new i4(f,n,i,m,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(me.CHANGE,this.handleImageChange.bind(this)),this.image_},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.getRequestUrl_=function(t,n,i,a,o){if(we(this.url_!==void 0,9),o[this.v13_?"CRS":"SRS"]=a.getCode(),"STYLES"in this.params_||(o.STYLES=""),i!=1)switch(this.serverType_){case mu.GEOSERVER:var s=90*i+.5|0;"FORMAT_OPTIONS"in o?o.FORMAT_OPTIONS+=";dpi:"+s:o.FORMAT_OPTIONS="dpi:"+s;break;case mu.MAPSERVER:o.MAP_RESOLUTION=90*i;break;case mu.CARMENTA_SERVER:case mu.QGIS:o.DPI=90*i;break;default:we(!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(","),Mp(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){ve(this.params_,t),this.updateV13_(),this.image_=null,this.changed()},e.prototype.updateV13_=function(){var t=this.params_.VERSION||yu;this.v13_=l6(t,"1.3")>=0},e}(w8),Bot=Cot,Tot=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='© OpenStreetMap contributors.',Sot=function(r){Tot(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=[xot];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}(g8),bot=Sot,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)}}(),Iot=function(r){Fot(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=Re(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=_M(f,p,this.tmpSize),h=Ka(h,c*p,h)),s&&s!==o&&(c=Cg(s,o,t,c),h=O_(h,o,s),t=ju(t,o,s));var v={SERVICE:"WMS",VERSION:yu,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};ve(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:yu,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 ve(i,n),Mp(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 mu.GEOSERVER:var l=90*a+.5|0;"FORMAT_OPTIONS"in s?s.FORMAT_OPTIONS+=";dpi:"+l:s.FORMAT_OPTIONS="dpi:"+l;break;case mu.MAPSERVER:s.MAP_RESOLUTION=90*a;break;case mu.CARMENTA_SERVER:case mu.QGIS:s.DPI=90*a;break;default:we(!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(J4(t),A.length);f=A[p]}return Mp(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){ve(this.params_,t),this.updateV13_(),this.setKey(this.getKeyForParams_())},e.prototype.updateV13_=function(){var t=this.params_.VERSION||yu;this.v13_=l6(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=_M(A,l,this.tmpSize),s=Ka(s,o*l,s)),n!=1&&(A=M6(A,n,this.tmpSize));var u={SERVICE:"WMS",VERSION:yu,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return ve(u,this.params_),this.getRequestUrl_(t,A,s,n,i,u)}},e}(Sw),Lot=Iot,Hm={KVP:"KVP",REST:"REST"},Oot=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)}}(),Rot=function(r){Oot(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}(QI),_x=Rot,Mot=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)}}(),Not=function(r){Mot(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:Hm.KVP,o=t.tileGrid,s=t.urls;return s===void 0&&t.url!==void 0&&(s=d8(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=W_(s.map(n.createFromWMTSTemplate.bind(n)))),n}return e.prototype.setUrls=function(t){this.urls=t;var n=t.join(` +`);this.setTileUrlFunction(W_(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){ve(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==Hm.KVP&&ve(i,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t=n==Hm.KVP?Mp(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]};ve(u,o);var c=t;return n==Hm.KVP?c=Mp(c,u):c=c.replace(/\{(\w+?)\}/g,function(h,f){return u[f]}),c}else return}},e}(Sw),E8=Not;window.ol&&!ol.ext&&(ol.ext={});var Br=function(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r};window.ol&&(ol.inherits||(ol.inherits=Br));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 Fw(r){const e=r.frameState,t=jp(r.inversePixelTransform.slice(),e.coordinateToPixelTransform);return new EI(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 Y0=VQ.split(".");Y0=parseInt(Y0[0])*100+parseInt(Y0[1]);var wx=function(r,e){var t=r.frameState.pixelRatio;if(Y0>605&&t!==1&&e.getImage()instanceof sy){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},Rh=function(r){var e=r||{};dA.call(this,e),this.oldcluster=new Tl,this.clusters=[],this.animation={start:!1},this.set("animationDuration",typeof e.animationDuration=="number"?e.animationDuration:700),this.set("animationMethod",e.animationMethod||rs),this.getSource().on("change",this.saveCluster.bind(this)),this.on(["precompose","prerender"],this.animate.bind(this)),this.on(["postcompose","postrender"],this.postanimate.bind(this))};Br(Rh,dA);Rh.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)}};Rh.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};Rh.prototype.stopAnimation=function(){this.animation.start=!1,this.animation.cA=[],this.animation.cB=[]};Rh.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||Fw(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 sr(_)}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,F=B.getText().getText().split(` +`),M,S=F.length-1,x=B.clone();F.forEach(function(N,P){switch(P==1&&(x.setImage(),x.setFill(),x.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}}x.getText().setOffsetX(L-Math.sin(b)*T*(P-M)),x.getText().setOffsetY(O+Math.cos(b)*T*(P-M)),x.getText().setText(N),u.drawFeature(A,wx(r,x))})}else u.drawFeature(A,wx(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}}};Rh.prototype.postanimate=function(r){this.clip_&&(r.context.restore(),this.clip_=!1)};const Pot={extends:Oh,name:"ol-animated-clusterlayer",setup(r){const e=Be("map"),{properties:t}=gr(r),n=fr(()=>new Rh(Ms(Dn({},t),{source:new y8({distance:t.distance,geometryFunction:o=>o.getGeometry()})}))),i=fr(()=>n.value.getSource());return fe(t,()=>{n.value.setProperties(t),n.value.changed()}),Je(()=>{e.addLayer(n.value),n.value.changed(),e.changed()}),ar(()=>{e.removeLayer(n.value)}),Pr("vectorLayer",i),Pr("stylable",n),{vectorLayer:n,map:e}},props:{animationDuration:{type:Number,default:700},distance:{type:Number,default:20},animationMethod:{type:Function,default:rs},updateWhileAnimating:{type:Boolean,default:!1},updateWhileInteracting:{type:Boolean,default:!1}}};function Uot(r,e,t,n,i,a){return fn(),Vn("div",null,[_r(r.$slots,"default")])}var Ex=ue(Pot,[["render",Uot]]),$s=new Uint8Array(4),Dot=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){Cl(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 $s[0]=0,$s[1]=0,$s[2]=0,$s[3]=0,$s;this.readAll();var n=Math.floor(e)+(this.size_[1]-Math.floor(t)-1)*this.size_[0];return $s[0]=this.data_[n*4],$s[1]=this.data_[n*4+1],$s[2]=this.data_[n*4+2],$s[3]=this.data_[n*4+3],$s},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}(),Qot=Dot;function Hot(){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 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=function(r){Got(e,r);function e(t,n){var i=this,a=n.uniforms||{},o=si();a[Qf.PROJECTION_MATRIX]=o,i=r.call(this,t,{uniforms:a,postProcesses:n.postProcesses})||this,i.ready=!1,i.sourceRevision_=-1,i.verticesBuffer_=new $v(Bg,K0),i.hitVerticesBuffer_=new $v(Bg,K0),i.indicesBuffer_=new $v(Ew,K0),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:Wo.FLOAT}}):[];i.attributes=[{name:"a_position",size:2,type:Wo.FLOAT},{name:"a_index",size:1,type:Wo.FLOAT}].concat(s),i.hitDetectionAttributes=[{name:"a_position",size:2,type:Wo.FLOAT},{name:"a_index",size:1,type:Wo.FLOAT},{name:"a_hitColor",size:4,type:Wo.FLOAT},{name:"a_featureUid",size:1,type:Wo.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_=Hot(),i.worker_.addEventListener("message",function(l){var u=l.data;if(u.type===kC.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,Wg(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_=[Ue(A,Ri.ADDFEATURE,i.handleSourceFeatureAdded_,i),Ue(A,Ri.CHANGEFEATURE,i.handleSourceFeatureChanged_,i),Ue(A,Ri.REMOVEFEATURE,i.handleSourceFeatureDelete_,i),Ue(A,Ri.CLEAR,i.handleSourceFeatureClear_,i)],A.forEachFeature(function(l){this.featureCache_[de(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 Qot(this.helper))},e.prototype.handleSourceFeatureAdded_=function(t){var n=t.feature;this.featureCache_[de(n)]={feature:n,properties:n.getProperties(),geometry:n.getGeometry()},this.featureCount_++},e.prototype.handleSourceFeatureChanged_=function(t){var n=t.feature;this.featureCache_[de(n)]={feature:n,properties:n.getProperties(),geometry:n.getGeometry()}},e.prototype.handleSourceFeatureDelete_=function(t){var n=t.feature;delete this.featureCache_[de(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[mn.ANIMATING]&&!t.viewHints[mn.INTERACTING],s=!cA(this.previousExtent_,t.extent),A=this.sourceRevision_new zot(t));return fe(t,()=>{n.value.setProperties(t)}),Je(()=>{e.addLayer(n.value)}),ar(()=>{e.removeLayer(n.value)}),Pr("webglPointsLayer",n),{webglPointsLayer:n}},props:{disableHitDetection:{type:Boolean,default:!1},style:{type:Object,default:()=>({symbol:{symbolType:"circle",size:8,color:"#33AAFF",opacity:.9}})}}};function Yot(r,e,t,n,i,a){return fn(),Vn("div",null,[_r(r.$slots,"default")])}var Cx=ue(Xot,[["render",Yot]]),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)}}(),vs={BLUR:"blur",GRADIENT:"gradient",RADIUS:"radius"},qot=["#00f","#0ff","#0f0","#ff0","#f00"],Zot=function(r){Wot(e,r);function e(t){var n=this,i=t||{},a=ve({},i);delete a.gradient,delete a.radius,delete a.blur,delete a.weight,n=r.call(this,a)||this,n.gradient_=null,n.addChangeListener(vs.GRADIENT,n.handleGradientChanged_),n.setGradient(i.gradient?i.gradient:qot),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(vs.BLUR)},e.prototype.getGradient=function(){return this.get(vs.GRADIENT)},e.prototype.getRadius=function(){return this.get(vs.RADIUS)},e.prototype.handleGradientChanged_=function(){this.gradient_=Jot(this.getGradient())},e.prototype.setBlur=function(t){this.set(vs.BLUR,t)},e.prototype.setGradient=function(t){this.set(vs.GRADIENT,t)},e.prototype.setRadius=function(t){this.set(vs.RADIUS,t)},e.prototype.createRenderer=function(){return new C8(this,{className:this.getClassName(),attributes:[{name:"weight",callback:function(t){var n=this.weightFunction_(t);return n!==void 0?bn(n,0,1):1}.bind(this)}],vertexShader:` + precision mediump float; + uniform mat4 u_projectionMatrix; + uniform mat4 u_offsetScaleMatrix; + uniform float u_size; + attribute vec2 a_position; + attribute float a_index; + attribute float a_weight; + + varying vec2 v_texCoord; + varying float v_weight; + + void main(void) { + mat4 offsetMatrix = u_offsetScaleMatrix; + float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0; + float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0; + vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0); + gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets; + float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0; + float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0; + v_texCoord = vec2(u, v); + v_weight = a_weight; + }`,fragmentShader:` + precision mediump float; + uniform float u_blurSlope; + + varying vec2 v_texCoord; + varying float v_weight; + + void main(void) { + vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0); + float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y; + float value = (1.0 - sqrt(sqRadius)) * u_blurSlope; + float alpha = smoothstep(0.0, 1.0, value) * v_weight; + gl_FragColor = vec4(alpha, alpha, alpha, alpha); + }`,hitVertexShader:` + precision mediump float; + uniform mat4 u_projectionMatrix; + uniform mat4 u_offsetScaleMatrix; + uniform float u_size; + attribute vec2 a_position; + attribute float a_index; + attribute float a_weight; + attribute vec4 a_hitColor; + + varying vec2 v_texCoord; + varying float v_weight; + varying vec4 v_hitColor; + + void main(void) { + mat4 offsetMatrix = u_offsetScaleMatrix; + float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0; + float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0; + vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0); + gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets; + float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0; + float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0; + v_texCoord = vec2(u, v); + v_hitColor = a_hitColor; + v_weight = a_weight; + }`,hitFragmentShader:` + precision mediump float; + uniform float u_blurSlope; + + varying vec2 v_texCoord; + varying float v_weight; + varying vec4 v_hitColor; + + void main(void) { + vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0); + float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y; + float value = (1.0 - sqrt(sqRadius)) * u_blurSlope; + float alpha = smoothstep(0.0, 1.0, value) * v_weight; + if (alpha < 0.05) { + discard; + } + + gl_FragColor = v_hitColor; + }`,uniforms:{u_size:function(){return(this.get(vs.RADIUS)+this.get(vs.BLUR))*2}.bind(this),u_blurSlope:function(){return this.get(vs.RADIUS)/Math.max(1,this.get(vs.BLUR))}.bind(this)},postProcesses:[{fragmentShader:` + precision mediump float; + + uniform sampler2D u_image; + uniform sampler2D u_gradientTexture; + uniform float u_opacity; + + varying vec2 v_texCoord; + + void main() { + vec4 color = texture2D(u_image, v_texCoord); + 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}(dw);function Jot(r){for(var e=1,t=256,n=za(e,t),i=n.createLinearGradient(0,0,e,t),a=1/(r.length-1),o=0,s=r.length;onew B8(t));return fe(t,()=>{n.value.setProperties(t)}),Je(()=>{e.addLayer(n.value)}),ar(()=>{e.removeLayer(n.value)}),Pr("heatmapLayer",n),Pr("stylable",n),{heatmapLayer:n}},props:{weight:{type:Function},extent:{type:Array},blur:{type:Number},radius:{type:Number}}};function est(r,e,t,n,i,a){return fn(),Vn("div",null,[_r(r.$slots,"default")])}var Bx=ue(tst,[["render",est]]);function q_(r){q_.installed||(q_.installed=!0,r.component(vx.name,vx),r.component(gx.name,gx),r.component(yx.name,yx),r.component(mx.name,mx),r.component(Ex.name,Ex),r.component(Cx.name,Cx),r.component(Bx.name,Bx))}var rst=Object.freeze(Object.defineProperty({__proto__:null,default:q_,install:q_,TileLayer:vx,WebGLTileLayer:gx,ImageLayer:yx,VectorLayer:mx,AnimatedClusterLayer:Ex,WebglPointsLayer:Cx,HeatmapLayer:Bx},Symbol.toStringTag,{value:"Module"}));const nst={name:"ol-source-xyz",setup(r){const e=Be("tileLayer"),{properties:t}=gr(r);let n=fr(()=>new g8(t));return fe(n,()=>{e.value.setSource(n.value)}),fe(e,()=>{e.value.setSource(n.value)}),Je(()=>{e.value.setSource(n.value)}),ar(()=>{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 ist(r,e,t,n,i,a){return vr("",!0)}var Tx=ue(nst,[["render",ist]]);const ast={name:"ol-source-osm",setup(r){const e=Be("tileLayer"),{properties:t}=gr(r);let n=fr(()=>new bot(t));return fe(n,()=>{e.value.setSource(n.value)}),fe(e,()=>{e.value.setSource(n.value)}),Je(()=>{e.value.setSource(n.value)}),ar(()=>{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 ost(r,e,t,n,i,a){return vr("",!0)}var xx=ue(ast,[["render",ost]]);const sst={name:"ol-source-image-static",setup(r){const e=Be("imageLayer"),{properties:t}=gr(r),n=()=>new wot(Ms(Dn({},t),{projection:typeof t.projection=="string"?t.projection:new Bl(Dn({},t.projection))}));let i=n();return fe(t,()=>{e.setSource(null),i=n(),e.setSource(i)}),Je(()=>{e.setSource(i)}),ar(()=>{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 Ast(r,e,t,n,i,a){return vr("",!0)}var Sx=ue(sst,[["render",Ast]]);const lst={name:"ol-source-wmts",setup(r){const e=Be("tileLayer"),{properties:t}=gr(r),n=fr(()=>Re(t.projection).getExtent()),i=fr(()=>Ns(n.value)),a=fr(()=>Or(n.value)/256),o=fr(()=>{const A=new Array(t.tileZoomLevel),l=new Array(t.tileZoomLevel);for(var u=0;unew E8(Ms(Dn({},t),{projection:typeof t.projection=="string"?t.projection:new Bl(Dn({},t.projection)),tileGrid:o.value})));return fe(s,()=>{e.value.setSource(s.value)}),fe(e,()=>{e.value.setSource(s.value)}),Je(()=>{e.value.setSource(s.value)}),ar(()=>{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 ust(r,e,t,n,i,a){return vr("",!0)}var bx=ue(lst,[["render",ust]]);const cst={name:"ol-source-vector",setup(r){const e=Be("vectorLayer")||Be("heatmapLayer"),{properties:t}=gr(r);let n=fr(()=>new Tl(t));const i=()=>{e.value.setSource(null),e.value.setSource(n.value),e.value.changed()};return fe(t,()=>{i()}),fe(e,()=>{i()}),Je(()=>{e.value.setSource(n.value)}),ar(()=>{e.value.setSource(null)}),Pr("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 hst(r,e,t,n,i,a){return fn(),Vn("div",null,[_r(r.$slots,"default")])}var Fx=ue(cst,[["render",hst]]);const fst={name:"ol-source-cluster",setup(r){const e=Be("vectorLayer"),{properties:t}=gr(r);let n=fr(()=>new y8(t));const i=()=>{e.value.setSource(null),e.value.setSource(n.value),e.value.changed()};return fe(t,()=>{i()}),fe(e,()=>{i()}),Je(()=>{e.value.setSource(n.value),e.value.changed()}),ar(()=>{e.value.setSource(null)}),Pr("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 pst(r,e,t,n,i,a){return fn(),Vn("div",null,[_r(r.$slots,"default")])}var Ix=ue(fst,[["render",pst]]);const dst={name:"ol-source-bingmaps",setup(r){const e=Be("tileLayer"),{properties:t}=gr(r);let n=fr(()=>new eot(Ms(Dn({},t),{key:t.apiKey})));return fe(n,()=>{e.value.setSource(n.value)}),fe(e,()=>{e.value.setSource(n.value)}),Je(()=>{e.value.setSource(n.value)}),ar(()=>{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 vst(r,e,t,n,i,a){return vr("",!0)}var Lx=ue(dst,[["render",vst]]);class WA extends E8{constructor(e){WA.layerLabelMap={vec:"cva",ter:"cta",img:"cia"},WA.layerZoomMap={vec:18,ter:14,img:18};let t=e||{};t.layerType=t.layerType||"vec",t.layerType=t.isLabel?WA.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||WA.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:WA.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"?WA.default4326TileGrid():WA.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 _x({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 _x({extent:[-200375083427892e-7,-200375083427892e-7,200375083427892e-7,200375083427892e-7],resolutions:e,matrixIds:t,origin:[-200375083427892e-7,200375083427892e-7],minZoom:1})}}const gst={name:"ol-source-tianditu",setup(r){const e=Be("tileLayer"),{properties:t}=gr(r);let n=fr(()=>new WA(t));return fe(n,()=>{e.value.setSource(n.value)}),fe(e,()=>{e.value.setSource(n.value)}),Je(()=>{e.value.setSource(n.value)}),ar(()=>{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 yst(r,e,t,n,i,a){return vr("",!0)}var Ox=ue(gst,[["render",yst]]);const mst={name:"ol-source-image-wms",setup(r){const e=Be("imageLayer"),{properties:t}=gr(r),n=()=>new Bot(Ms(Dn({},t),{params:{LAYERS:r.layers,STYLES:r.styles,TIME:r.time},projection:typeof t.projection=="string"?t.projection:new Bl(Dn({},t.projection))}));let i=n();return fe(t,()=>{e.setSource(null),i=n(),e.setSource(i)}),Je(()=>{e.setSource(i)}),ar(()=>{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 _st(r,e,t,n,i,a){return vr("",!0)}var Rx=ue(mst,[["render",_st]]);const wst={name:"ol-source-webglpoints",setup(r){const e=Be("webglPointsLayer"),{properties:t}=gr(r);let n=fr(()=>new Tl(t));const i=()=>{e.value.setSource(null),e.value.setSource(n.value),e.value.changed()};return fe(t,()=>{i()}),fe(e,()=>{i()}),Je(()=>{e.value.setSource(n.value)}),ar(()=>{e.value.setSource(null)}),Pr("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 Est(r,e,t,n,i,a){return fn(),Vn("div",null,[_r(r.$slots,"default")])}var Mx=ue(wst,[["render",Est]]);function Z_(r){Z_.installed||(Z_.installed=!0,r.component(Tx.name,Tx),r.component(xx.name,xx),r.component(Sx.name,Sx),r.component(bx.name,bx),r.component(Fx.name,Fx),r.component(Ix.name,Ix),r.component(Lx.name,Lx),r.component(Ox.name,Ox),r.component(Rx.name,Rx),r.component(Mx.name,Mx))}var Cst=Object.freeze(Object.defineProperty({__proto__:null,default:Z_,install:Z_,SourceXYZ:Tx,SourceOSM:xx,SourceImageStatic:Sx,SourceWMTS:bx,SourceVector:Fx,SourceCluster:Ix,SourceTianDiTu:Ox,SourceImageWMS:Rx,SourceWebglPoints:Mx,SourceBingMaps:Lx},Symbol.toStringTag,{value:"Module"}));function Hi(r,e,t){const n=Be("map"),i=Be("controlBar",null),a=i!=null?i.value:n,{properties:o}=gr(e);let s=fr(()=>new r(Dn({},o)));return s.value.set("order",t.attrs.order==null?0:t.attrs.order),fe(s,(A,l)=>{a.removeControl&&(a.removeControl(l),a.addControl(A),n.changed())}),Je(()=>{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()}),ar(()=>{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 Bst={name:"ol-fullscreen-control",setup(r,e){const{control:t}=Hi(VW,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 Tst(r,e,t,n,i,a){return vr("",!0)}var Nx=ue(Bst,[["render",Tst]]);const xst={name:"ol-mouseposition-control",setup(r,e){const{control:t}=Hi(XW,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 Sst(r,e,t,n,i,a){return vr("",!0)}var Px=ue(xst,[["render",Sst]]);const bst={name:"ol-attribution-control",setup(r,e){const{control:t}=Hi(D6,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 Fst(r,e,t,n,i,a){return vr("",!0)}var Ux=ue(bst,[["render",Fst]]);const Ist={name:"ol-overviewmap-control",setup(r,e){const t=Be("map"),{control:n}=Hi(JW,r,e);return Je(()=>{n.value.setMap(t)}),ar(()=>{n.value.setMap(null)}),Pr("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 Lst(r,e,t,n,i,a){return fn(),Vn("div",null,[_r(r.$slots,"default")])}var Dx=ue(Ist,[["render",Lst]]);const Ost={name:"ol-scaleline-control",setup(r,e){const{control:t}=Hi(nq,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 Rst(r,e,t,n,i,a){return vr("",!0)}var Qx=ue(Ost,[["render",Rst]]);const Mst={name:"ol-zoom-control",setup(r,e){const{control:t}=Hi(H6,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 Nst(r,e,t,n,i,a){return vr("",!0)}var Hx=ue(Mst,[["render",Nst]]);const Pst={name:"ol-zoomslider-control",setup(r,e){const{control:t}=Hi(oq,r,e);return{control:t}},props:{duration:{type:Number,default:200},className:{type:String,default:"ol-zoomslider"},render:{type:Function}}};function Ust(r,e,t,n,i,a){return vr("",!0)}var Gx=ue(Pst,[["render",Ust]]);const Dst={name:"ol-zoomtoextent-control",setup(r,e){const{control:t}=Hi(lq,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 Qst(r,e,t,n,i,a){return vr("",!0)}var kx=ue(Dst,[["render",Qst]]);const Hst={name:"ol-rotate-control",setup(r,e){const{control:t}=Hi(Q6,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 Gst(r,e,t,n,i,a){return vr("",!0)}var vN=ue(Hst,[["render",Gst]]),T8={exports:{}},kst=oot(MW);/*! + * 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(kst)})(tA,function(t){function n(F){return F&&typeof F=="object"&&"default"in F?F:{default:F}}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(F,M){var S=M.getView();S.animate({zoom:+S.getZoom()+1,duration:700,center:F.coordinate})}},{text:"Zoom Out",classname:o.zoomOut+" "+o.icon,callback:function(F,M){var S=M.getView();S.animate({zoom:+S.getZoom()-1,duration:700,center:F.coordinate})}}];function p(F,M){if(M===void 0&&(M="Assertion failed"),!F)throw typeof Error<"u"?new Error(M):M}function v(F){return/^\d+$/.test(F)}function m(F,M){return F.classList?F.classList.contains(M):B(M).test(F.className)}function g(F,M,S){M===void 0&&(M=window.document);var x=Array.prototype.slice,N=[];if(/^(#?[\w-]+|\.[\w-.]+)$/.test(F))switch(F[0]){case"#":N=[_(F.substr(1))];break;case".":N=x.call(M.getElementsByClassName(F.substr(1).replace(/\./g," ")));break;default:N=x.call(M.getElementsByTagName(F))}else N=x.call(M.querySelectorAll(F));return S?N:N[0]}function _(F){return F=F[0]==="#"?F.substr(1,F.length):F,document.getElementById(F)}function E(F){var M=document.createDocumentFragment(),S=document.createElement("div");for(S.innerHTML=F;S.firstChild;)M.appendChild(S.firstChild);return M}function B(F){return new RegExp("(^|\\s+) "+F+" (\\s+|$)")}function L(F,M,S){F.classList?F.classList.add(M):F.className=(F.className+" "+M).trim(),S&&v(S)&&window.setTimeout(function(){return O(F,M)},S)}function O(F,M,S){F.classList?F.classList.remove(M):F.className=F.className.replace(B(M)," ").trim(),S&&v(S)&&window.setTimeout(function(){return L(F,M)},S)}var b=function(F){return this.Base=F,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:F.options.width-15+"px",lastLeft:""},this.eventHandler=this.handleEvent.bind(this),this.eventMapMoveHandler=this.handleMapMoveEvent.bind(this),this};b.prototype.init=function(F){this.map=F,this.viewport=F.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 F=this,M=0;return Object.keys(this.items).forEach(function(S){F.items[S].submenu||F.items[S].separator||M++}),M},b.prototype.getPixelClicked=function(){return this.pixelClicked},b.prototype.getCoordinateClicked=function(){return this.coordinateClicked},b.prototype.positionContainer=function(F){var M=this,S=this.Base.container,x=this.map.getSize(),N=x[1]-F[1],P=x[0]-F[0],Y=S.offsetWidth,z=Math.round(this.lineHeight*this.getItemsLength()),tt=g("li."+s.submenu+">div",S,!0);P>=Y?(S.style.right="auto",S.style.left=F[0]+5+"px"):(S.style.left="auto",S.style.right="15px"),N>=z?(S.style.bottom="auto",S.style.top=F[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*Y?"-"+Y+"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(F,M){this.Base.dispatchEvent({type:l,pixel:F,coordinate:M}),this.opened=!0,this.positionContainer(F)},b.prototype.closeMenu=function(){this.opened=!1,function F(M,S,x){if(Array.isArray(M))M.forEach(function(Y){return F(Y,S)});else for(var N=Array.isArray(S)?S:S.split(/\s+/),P=N.length;P--;)m(M,N[P])||L(M,N[P],x)}(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(F){var M=this;this.coordinateClicked=this.map.getEventCoordinate(F),this.pixelClicked=this.map.getEventPixel(F),this.Base.dispatchEvent({type:A,pixel:this.pixelClicked,coordinate:this.coordinateClicked}),this.Base.disabled||(this.Base.options.eventType===c&&(F.stopPropagation(),F.preventDefault()),this.openMenu(this.pixelClicked,this.coordinateClicked),F.target.addEventListener("pointerdown",{handleEvent:function(S){M.opened&&(M.closeMenu(),S.stopPropagation(),F.target.removeEventListener(S.type,this,!1))}},!1))},b.prototype.handleMapMoveEvent=function(F){this.closeMenu()},b.prototype.setItemListener=function(F,M){var S,x=this;F&&typeof this.items[M].callback=="function"&&(S=this.items[M].callback,F.addEventListener("click",function(N){N.preventDefault();var P={coordinate:x.getCoordinateClicked(),data:x.items[M].data||null};x.closeMenu(),S(P,x.map)},!1))};var T=function(F){return this.Base=F,this.Base.container=this.container=this.createContainer(!0),this};return T.prototype.createContainer=function(F){var M=document.createElement("div"),S=document.createElement("ul"),x=[s.container,s.unselectable];return F&&x.push(s.hidden),M.className=x.join(" "),M.style.width=parseInt(this.Base.options.width,10)+"px",M.appendChild(S),M},T.prototype.createMenu=function(){var F=[];if("items"in this.Base.options?F=this.Base.options.defaultItems?this.Base.options.items.concat(f):this.Base.options.items:this.Base.options.defaultItems&&(F=f),F.length===0)return!1;F.forEach(this.addMenuEntry,this)},T.prototype.addMenuEntry=function(F){var M,S=this;if(F.items&&Array.isArray(F.items)){F.classname=F.classname||"",M=s.submenu,~F.classname.indexOf(M)||(F.classname=F.classname.length?" "+s.submenu:s.submenu);var x=this.generateHtmlAndPublish(this.container,F),N=this.createContainer();N.style.left=this.Base.Internal.submenu.lastLeft||this.Base.Internal.submenu.left,x.appendChild(N),F.items.forEach(function(P){S.generateHtmlAndPublish(N,P,!0)})}else this.generateHtmlAndPublish(this.container,F)},T.prototype.generateHtmlAndPublish=function(F,M,S){var x,N,P="_"+Math.random().toString(36).substr(2,9),Y=!1;return typeof M=="string"&&M.trim()==="-"?(x=E('

  • '),N=[].slice.call(x.childNodes,0)[0],F.firstChild.appendChild(x),Y=!0):(M.classname=M.classname||"",x=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(x),F.firstChild.appendChild(N)),this.Base.Internal.items[P]={id:P,submenu:S||0,separator:Y,callback:M.callback,data:M.data||null},this.Base.Internal.setItemListener(N,P),N},T.prototype.removeMenuEntry=function(F){var M=g("#"+F,this.container.firstChild);M&&this.container.firstChild.removeChild(M),delete this.Base.Internal.items[F]},T.prototype.cloneAndGetLineHeight=function(){var F=this.container.cloneNode(),M=E("Foo"),S=E("Foo"),x=document.createElement("li"),N=document.createElement("li");x.appendChild(M),N.appendChild(S),F.appendChild(x),F.appendChild(N),this.container.parentNode.appendChild(F);var P=F.offsetHeight/2;return this.container.parentNode.removeChild(F),P},function(F){function M(S){S===void 0&&(S={}),p(typeof S=="object","@param `opt_options` should be object type!"),this.options=function(x,N){var P={};for(var Y in x)P[Y]=x[Y];for(var z in N)P[z]=N[z];return P}(h,S),this.disabled=!1,this.Internal=new b(this),this.Html=new T(this),F.call(this,{element:this.container})}return F&&(M.__proto__=F),M.prototype=Object.create(F&&F.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){F.prototype.setMap.call(this,S),S?this.Internal.init(S,this):this.Internal.removeListeners()},M}(i.default)})})(T8);var $st=T8.exports;const jst={name:"ol-context-menu",setup(r,e){const{control:t}=Hi($st,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 Vst(r,e,t,n,i,a){return vr("",!0)}var $x=ue(jst,[["render",Vst]]),yo=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)),wr.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")};Br(yo,wr);yo.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{}};yo.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")])};yo.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}}};yo.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};yo.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)}};yo.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()}};yo.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()}};yo.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 Kst={name:"ol-swipe-control",setup(r,e){const{control:t}=Hi(yo,r,e),{layerList:n}=Nu(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 zst(r,e,t,n,i,a){return vr("",!0)}var jx=ue(Kst,[["render",zst]]),Qo=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"),wr.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 Sl=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),wr.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)};Br(Sl,wr);Sl.prototype.setVisible=function(r){r?ct.show(this.element):ct.hide(this.element)};Sl.prototype.setTitle=function(r){this.button_.setAttribute("title",r)};Sl.prototype.setHtml=function(r){ct.setHTML(this.button_,r)};Sl.prototype.getButtonElement=function(){return this.button_};var is=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",Sl.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)};Br(is,Sl);is.prototype.setMap=function(r){!r&&this.getMap()&&(this.interaction_&&this.getMap().removeInteraction(this.interaction_),this.subbar_&&this.getMap().removeControl(this.subbar_)),Sl.prototype.setMap.call(this,r),r&&(this.interaction_&&r.addInteraction(this.interaction_),this.subbar_&&r.addControl(this.subbar_))};is.prototype.getSubBar=function(){return this.subbar_};is.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_))};is.prototype.getDisable=function(){var r=this.element.querySelector("button");return r&&r.disabled};is.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}))};is.prototype.getActive=function(){return this.element.classList.contains("ol-active")};is.prototype.toggle=function(){this.getActive()?this.setActive(!1):this.setActive(!0)};is.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}))};is.prototype.setInteraction=function(r){this.interaction_=r};is.prototype.getInteraction=function(){return this.interaction_};const Wst={name:"ol-control-toggle",setup(r,e){const{control:t}=Hi(is,r,e);return{control:t}},props:{html:{type:String},interaction:{type:Object},className:{type:String},title:{type:String},onToggle:{type:Function}}};function qst(r,e,t,n,i,a){return vr("",!0)}var Kx=ue(Wst,[["render",qst]]);const Zst={name:"ol-control-button",setup(r,e){const{control:t}=Hi(Sl,r,e);return{control:t}},props:{html:{type:String},name:{type:String},className:{type:String},title:{type:String},handleClick:{type:Function}}};function Jst(r,e,t,n,i,a){return vr("",!0)}var zx=ue(Zst,[["render",Jst]]),La=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}),wr.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)};Br(La,wr);La.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))}}};La.prototype.open=function(){this.show()};La.prototype.setContentMessage=function(r){if(r!==void 0){var e=this.getContentElement();r instanceof Element&&ct.setHTML(e,""),ct.setHTML(e,r||"")}};La.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")};La.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")}};La.prototype.getContentElement=function(){return this.element.querySelector("form .ol-content")};La.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||"")};La.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};La.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};La.prototype.hide=function(){this.element.classList.remove("ol-visible"),this.dispatchEvent({type:"hide"})};La.prototype.close=La.prototype.hide;La.prototype.isOpen=function(){return this.element.classList.contains("ol-visible")};var tAt=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},Gi=function(r){r||(r={}),this.setStyle(r.style),wr.call(this,r)};Br(Gi,wr);Gi.prototype.setMap=function(r){this.getCanvas(r);var e=this.getMap();if(this._listener&&(Uo(this._listener),this._listener=null),wr.prototype.setMap.call(this,r),e)try{e.renderSync()}catch{}r&&(this._listener=r.on("postcompose",this._draw.bind(this)))};Gi.prototype.getCanvas=function(r){return tAt(r)};Gi.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};Gi.prototype.setStyle=function(r){this._style=r||new Aa({})};Gi.prototype.getStyle=function(){return this._style};Gi.prototype.getStroke=function(){var r=this._style.getStroke();return r||this._style.setStroke(new Di({color:"#000",width:1.25})),this._style.getStroke()};Gi.prototype.getFill=function(){var r=this._style.getFill();return r||this._style.setFill(new ua({color:"#fff"})),this._style.getFill()};Gi.prototype.getTextStroke=function(){var r=this._style.getText();return r||(r=new Lh({})),r.getStroke()||r.setStroke(new Di({color:"#fff",width:3})),r.getStroke()};Gi.prototype.getTextFill=function(){var r=this._style.getText();return r||(r=new Lh({})),r.getFill()||r.setFill(new ua({color:"#fff"})),r.getFill()};Gi.prototype.getTextFont=function(){var r=this._style.getText();return r||(r=new Lh({})),r.getFont()||r.setFont("12px sans-serif"),r.getFont()};Gi.prototype._draw=function(){console.warn("[CanvasBase] draw function not implemented.")};function eAt(r,e){var t=r.canvas,n=e||{},i=n.pixelRatio||fh,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=Qv(si(),i,i);return new EI(r,i,o,s,0)}var Np=function(r){r=r||{},ui.call(this,r),r.feature&&this.set("feature",r.feature.clone())};Br(Np,ui);Np.prototype.setTitle=function(r){this.set("title",r||""),this.changed()};Np.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 ca=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(){ca.getLegendImage(r,e,t)},100)};var i=n[0]+2*r.margin,a=r.lineHeight||n[1]+2*r.margin,o=fh;e||(t=0,e=document.createElement("canvas"),e.width=i*o,e.height=a*o);var s=e.getContext("2d");s.save();var A=eAt(s,{pixelRatio:o}),l=r.typeGeom,u,c=r.feature;!c&&l&&(/Point/.test(l)?c=new sr(new pr([0,0])):/LineString/.test(l)?c=new sr(new kr([0,0])):c=new sr(new Fn([[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];_?ku(_,[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 pr:case"Point":case"MultiPoint":A.drawGeometry(new pr([h,f]));break;case kr:case"LineString":case"MultiLineString":s.save(),s.rect(r.margin*o,0,n[0]*o,e.height),s.clip(),A.drawGeometry(new kr([[h-p,f],[h+p,f]])),s.restore();break;case Fn:case"Polygon":case"MultiPolygon":A.drawGeometry(new Fn([[[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 Ps=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)}Gi.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))};Br(Ps,Gi);Ps.prototype.getLegend=function(){return this._legend};Ps.prototype.setCanvas=function(r){if(this._onCanvas=r,this.element.style.visibility=r?"hidden":"visible",this.getMap())try{this.getMap().renderSync()}catch{}};Ps.prototype.onCanvas=function(){return!!this._onCanvas};Ps.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=il(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()}};Ps.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{}};Ps.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{}};Ps.prototype.collapse=function(r){r===!1?this.show():this.hide()};Ps.prototype.isCollapsed=function(){return this.element.classList.contains("ol-collapsed")};Ps.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 nc=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})),wr.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)};Br(nc,wr);nc.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)}};nc.prototype.copyMap=function(r,e){this.once("print",function(t){this.toClipboard(t,e)}.bind(this)),this.print(r)};nc.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};nc.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())};nc.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 ic=function(r){r||(r={});var e=ct.create("DIV",{className:(r.className||"")+" ol-control-title ol-unselectable",style:{display:"block",visibility:"hidden"}});Gi.call(this,{element:e,style:r.style}),this.setTitle(r.title||""),this.setVisible(r.visible),this.element.style.font=this.getTextFont()};Br(ic,Gi);ic.prototype.setStyle=function(r){Gi.prototype.setStyle.call(this,r),this.element&&(this.element.style.font=this.getTextFont()),this.getMap()&&this.getMap().render()};ic.prototype.setTitle=function(r){if(this.element.textContent=r,this.set("title",r),this.getMap())try{this.getMap().renderSync()}catch{}};ic.prototype.getTitle=function(){return this.get("title")};ic.prototype.setVisible=function(r){if(this.element.style.display=r?"block":"none",this.getMap())try{this.getMap().renderSync()}catch{}};ic.prototype.getVisible=function(){return this.element.style.display!=="none"};ic.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=il(this.getFill().getColor()),e.rect(0,0,s,o),e.fill(),e.closePath(),e.beginPath(),e.fillStyle=il(this.getTextFill().getColor()),e.strokeStyle=il(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 Xx=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=I_(ju(i,n,"EPSG:4326"),ju(o,n,"EPSG:4326"));return s*=(e||96)/.0254,s},rAt=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=I_(ju(o,a,"EPSG:4326"),ju(A,a,"EPSG:4326"));return l*=(t||96)/.0254,i.setResolution(i.getResolution()*n/l),n}},pl=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 Aa({stroke:r.style}):r.style;r.style||(t=new Aa({stroke:new Di({width:0})})),Gi.call(this,{element:e,style:t}),this.set("rotateVithView",r.rotateWithView!==!1),this.setVisible(r.visible!==!1),this.setImage(r.image||r.src)};Br(pl,Gi);pl.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())};pl.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};pl.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};pl.prototype.getVisible=function(){return ct.getStyle(this.element,"display")==="block"};pl.prototype.setVisible=function(r){r?this.element.classList.add("ol-visible"):this.element.classList.remove("ol-visible"),this.getMap()&&this.getMap().render()};pl.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}),wr.call(this,{element:e}),r.openWindow&&this.on("print",function(x){x.canvas&&window.open().document.write('')}),r.target=ct.create("DIV");var t=this._printCtrl=new nc(r);t.on(["print","error","printing"],function(x){i.setAttribute("data-status",x.type),x.clipboard||this.dispatchEvent(x)}.bind(this)),this._compass=new pl({src:r.northImage||"compact",visible:!1,className:"olext-print-compass",style:new Di({color:"#333",width:0})});var n=this._printDialog=new La({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(x){this.setOrientation(x.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(x){this.setOrientation(x.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||F)}.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(x){ct.create("OPTION",{html:this.scales[x],value:x,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(x){S.title.control.setVisible(x.target.checked)}.bind(this)},parent:A}),g=ct.create("INPUT",{type:"text",placeholder:this.i18n("mapTitle"),on:{keydown:function(x){x.keyCode===13&&x.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 x=typeof this.getSize()=="string"?this.getSize():null,N=Object.assign({format:x,size:x?this.paperSize[x]: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(x,N){if(x.pdf){if(r.pdf===!1)return}else if(x.clipboard){if(r.copy===!1)return}else if(r.save===!1)return;ct.create("OPTION",{html:this.i18n(x.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 x=S.legend.control.getLegend().getCanvas(),N=document.createElement("CANVAS");N.width=x.width,N.height=x.height;var P=N.getContext("2d");if(P.fillStyle="#fff",P.fillRect(0,0,N.width,N.height),P.drawImage(x,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 Y;try{Y=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:Y,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(x,N){ct.create("OPTION",{html:this.i18n(x.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(x){x.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,F,M,S={};n.on("show",function(){this.dispatchEvent({type:"show",userElement:_,dialog:this._printDialog,page:this.getPage()});var x=this.getMap();x&&(document.body.classList.add("ol-print-document"),T=x.getTargetElement(),F=x.getSize(),typeof this.getSize()=="string"?this.setSize(this.getSize()):this.setSize(F),x.setTarget(o),M&&Uo(M),M=x.on("moveend",function(){this.setScale(Xx(x))}.bind(this)),this.setScale(Xx(x)),S={},this.getMap().getControls().forEach(function(N){N instanceof Ps&&(S.legend={control:N}),N instanceof ic&&(S.title={control:N}),N instanceof pl&&(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&&Uo(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(x){x.pdf||x.canvas.toBlob(function(N){var P=(x.print.legend?"legend.":"map.")+x.imageType.replace("image/","");r.saveAs(N,P)},x.imageType,x.quality)}),r.jsPDF&&this.on("print",function(x){if(x.pdf){var N=new r.jsPDF({orientation:x.print.orientation,unit:x.print.unit,format:x.print.size});N.addImage(x.image,"JPEG",x.print.position[0],x.print.position[0],x.print.imageWidth,x.print.imageHeight),N.save(x.print.legend?"legend.pdf":"map.pdf")}})};Br(In,wr);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)),wr.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){rAt(this.getMap(),r),this._input.scale.value=" "+Math.round(r/100)*100};In.prototype.getScale=function(){return Xx(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 HI={exports:{}};(function(r,e){(function(t,n){n()})(tA,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 tA=="object"&&tA.global===tA?tA: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})})(HI);function rn(r){return rn=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},rn(r)}var $a=Uint8Array,ja=Uint16Array,Sg=Uint32Array,Iw=new $a([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]),Lw=new $a([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]),Yx=new $a([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),b8=function(r,e){for(var t=new ja(31),n=0;n<31;++n)t[n]=e+=1<>>1|(Sn&21845)<<1;nu=(nu&52428)>>>2|(nu&13107)<<2,nu=(nu&61680)>>>4|(nu&3855)<<4,qx[Sn]=((nu&65280)>>>8|(nu&255)<<8)>>>1}var lA=function(r,e,t){for(var n=r.length,i=0,a=new ja(e);i>>A]=l}else for(s=new ja(n),i=0;i>>15-r[i];return s},Xu=new $a(288);for(var Sn=0;Sn<144;++Sn)Xu[Sn]=8;for(var Sn=144;Sn<256;++Sn)Xu[Sn]=9;for(var Sn=256;Sn<280;++Sn)Xu[Sn]=7;for(var Sn=280;Sn<288;++Sn)Xu[Sn]=8;var bg=new $a(32);for(var Sn=0;Sn<32;++Sn)bg[Sn]=5;var iAt=lA(Xu,9,0),aAt=lA(Xu,9,1),oAt=lA(bg,5,0),sAt=lA(bg,5,1),XC=function(r){for(var e=r[0],t=1;te&&(e=r[t]);return e},gs=function(r,e,t){var n=e/8>>0;return(r[n]|r[n+1]<<8)>>>(e&7)&t},YC=function(r,e){var t=e/8>>0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>>(e&7)},GI=function(r){return(r/8>>0)+(r&7&&1)},O8=function(r,e,t){(e==null||e<0)&&(e=0),(t==null||t>r.length)&&(t=r.length);var n=new(r instanceof ja?ja:r instanceof Sg?Sg:$a)(t-e);return n.set(r.subarray(e,t)),n},AAt=function(r,e,t){var n=r.length,i=!e||t,a=!t||t.i;t||(t={}),e||(e=new $a(n*3));var o=function(at){var vt=e.length;if(at>vt){var wt=new $a(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=gs(r,A,1);var v=gs(r,A+1,3);if(A+=3,v)if(v==1)u=aAt,c=sAt,h=9,f=5;else if(v==2){var E=gs(r,A,31)+257,B=gs(r,A+10,15)+4,L=E+gs(r,A+5,31)+1;A+=14;for(var O=new $a(L),b=new $a(19),T=0;Tp)break;for(var S=lA(b,F,1),T=0;T>>4;if(m<16)O[T++]=m;else{var N=0,P=0;for(m==16?(P=3+gs(r,A,3),A+=2,N=O[T-1]):m==17?(P=3+gs(r,A,7),A+=3):m==18&&(P=11+gs(r,A,127),A+=7);P--;)O[T++]=N}}var Y=O.subarray(0,E),z=O.subarray(E);h=XC(Y),f=XC(z),u=lA(Y,h,1),c=lA(z,f,1)}else throw"invalid block type";else{var m=GI(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=Iw[T];_t=gs(r,A,(1<>>4;if(!$)throw"invalid distance";A+=$&15;var z=nAt[K];if(K>3){var R=Lw[K];z+=YC(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},Yd=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},WC=function(r,e){for(var t=[],n=0;nh&&(h=a[n].s);var f=new ja(h+1),p=Zx(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 $a(f),p]},Zx=function(r,e,t){return r.s==-1?Math.max(Zx(r.l,e,t+1),Zx(r.r,e,t+1)):e[r.s]=t},yN=function(r){for(var e=r.length;e&&!r[--e];);for(var t=new ja(++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]},Wd=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[Yx[x-1]];--x);var N=l+5<<3,P=Wd(i,Xu)+Wd(a,bg)+o,Y=Wd(i,h)+Wd(a,v)+o+14+3*x+Wd(b,M)+(2*b[16]+3*b[17]+7*b[18]);if(N<=P&&N<=Y)return W0(e,u,r.subarray(A,A+l));var z,tt,J,nt;if(QA(e,u,1+(Y15&&(QA(e,u,$[T]>>>5&127),u+=$[T]>>>12)}}else z=iAt,tt=Xu,J=oAt,nt=bg;for(var T=0;T255){var K=n[T]>>>18&31;Yd(e,u,z[K+257]),u+=tt[K+257],K>7&&(QA(e,u,n[T]>>>23&31),u+=Iw[K]);var q=n[T]&31;Yd(e,u,J[q]),u+=nt[q],q>3&&(Yd(e,u,n[T]>>>5&8191),u+=Lw[q])}else Yd(e,u,z[n[T]]),u+=tt[n[T]];return Yd(e,u,z[256]),u+tt[256]},lAt=new Sg([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),uAt=new $a(0),cAt=function(r,e,t,n,i,a){var o=r.length,s=new $a(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=mN(r,A,0,L,O,b,F,M,x,u-x,l),M=T=F=0,x=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-Y&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!=Y;){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=Ft,Y=wt)}}}P=Y,Y=m[P],_t+=P-Y+32768&32767}if(nt){L[M++]=268435456|Wx[J]<<18|gN[nt];var Ot=Wx[J]&31,V=gN[nt]&31;F+=Iw[Ot]+Lw[V],++O[257+Ot],++b[V],S=u+J,++T}else L[M++]=r[u],++O[r[u]]}}l=mN(r,A,a,L,O,b,F,M,x,u-x,l),a||(l=W0(A,l,uAt))}return O8(s,0,n+GI(l)+i)},hAt=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}}},fAt=function(r,e,t,n,i){return cAt(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)},pAt=function(r,e,t){for(;t;++e)r[e]=t,t>>>=8},dAt=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)},vAt=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 Jx(r,e){e===void 0&&(e={});var t=hAt();t.p(r);var n=fAt(r,e,2,4);return dAt(n,e),pAt(n,n.length-4,t.d()),n}function gAt(r,e){return AAt((vAt(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 + * CommitID 00000000 + * + * Copyright (c) 2010-2021 James Hall , https://github.com/MrRio/jsPDF + * 2015-2021 yWorks GmbH, http://www.yworks.com + * 2015-2021 Lukas Holländer , https://github.com/HackbrettXXX + * 2016-2018 Aras Abbasi + * 2010 Aaron Spike, https://github.com/acspike + * 2012 Willow Systems Corporation, https://github.com/willowsystems + * 2012 Pablo Hess, https://github.com/pablohess + * 2012 Florian Jenett, https://github.com/fjenett + * 2013 Warren Weckesser, https://github.com/warrenweckesser + * 2013 Youssef Beddad, https://github.com/lifof + * 2013 Lee Driscoll, https://github.com/lsdriscoll + * 2013 Stefan Slonevskiy, https://github.com/stefslon + * 2013 Jeremy Morel, https://github.com/jmorel + * 2013 Christoph Hartmann, https://github.com/chris-rock + * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria + * 2014 James Makes, https://github.com/dollaruw + * 2014 Diego Casorran, https://github.com/diegocr + * 2014 Steven Spungin, https://github.com/Flamenco + * 2014 Kenneth Glassey, https://github.com/Gavvers + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Contributor(s): + * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango, + * kim3er, mfo, alnorth, Flamenco + */var Ge=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function qC(){Ge.console&&typeof Ge.console.log=="function"&&Ge.console.log.apply(Ge.console,arguments)}var cn={log:qC,warn:function(r){Ge.console&&(typeof Ge.console.warn=="function"?Ge.console.warn.apply(Ge.console,arguments):qC.call(null,arguments))},error:function(r){Ge.console&&(typeof Ge.console.error=="function"?Ge.console.error.apply(Ge.console,arguments):qC(r))}};function ZC(r,e,t){var n=new XMLHttpRequest;n.open("GET",r),n.responseType="blob",n.onload=function(){Oc(n.response,e,t)},n.onerror=function(){cn.error("could not download file")},n.send()}function _N(r){var e=new XMLHttpRequest;e.open("HEAD",r,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Gm(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 jv,tS,Oc=Ge.saveAs||((typeof window>"u"?"undefined":rn(window))!=="object"||window!==Ge?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,e,t){var n=Ge.URL||Ge.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?_N(i.href)?ZC(r,e,t):Gm(i,i.target="_blank"):Gm(i)):(i.href=n.createObjectURL(r),setTimeout(function(){n.revokeObjectURL(i.href)},4e4),setTimeout(function(){Gm(i)},0))}:"msSaveOrOpenBlob"in navigator?function(r,e,t){if(e=e||r.name||"download",typeof r=="string")if(_N(r))ZC(r,e,t);else{var n=document.createElement("a");n.href=r,n.target="_blank",setTimeout(function(){Gm(n)})}else navigator.msSaveOrOpenBlob(function(i,a){return a===void 0?a={autoBom:!1}:rn(a)!=="object"&&(cn.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 ZC(r,e,t);var i=r.type==="application/octet-stream",a=/constructor/i.test(Ge.HTMLElement)||Ge.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a)&&(typeof FileReader>"u"?"undefined":rn(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=Ge.URL||Ge.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/} + * @license Use it if you like it + */function R8(r){var e;r=r||"",this.ok=!1,r.charAt(0)=="#"&&(r=r.substr(1,6)),r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[r=(r=r.replace(/ /g,"")).toLowerCase()]||r;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],n=0;n255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),A=this.g.toString(16),l=this.b.toString(16);return s.length==1&&(s="0"+s),A.length==1&&(A="0"+A),l.length==1&&(l="0"+l),"#"+s+A+l}}/** + * @license + * Joseph Myers does not specify a particular license for his work. + * + * Author: Joseph Myers + * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js + * + * Modified by: Owen Leong + */function JC(r,e){var t=r[0],n=r[1],i=r[2],a=r[3];t=va(t,n,i,a,e[0],7,-680876936),a=va(a,t,n,i,e[1],12,-389564586),i=va(i,a,t,n,e[2],17,606105819),n=va(n,i,a,t,e[3],22,-1044525330),t=va(t,n,i,a,e[4],7,-176418897),a=va(a,t,n,i,e[5],12,1200080426),i=va(i,a,t,n,e[6],17,-1473231341),n=va(n,i,a,t,e[7],22,-45705983),t=va(t,n,i,a,e[8],7,1770035416),a=va(a,t,n,i,e[9],12,-1958414417),i=va(i,a,t,n,e[10],17,-42063),n=va(n,i,a,t,e[11],22,-1990404162),t=va(t,n,i,a,e[12],7,1804603682),a=va(a,t,n,i,e[13],12,-40341101),i=va(i,a,t,n,e[14],17,-1502002290),t=ga(t,n=va(n,i,a,t,e[15],22,1236535329),i,a,e[1],5,-165796510),a=ga(a,t,n,i,e[6],9,-1069501632),i=ga(i,a,t,n,e[11],14,643717713),n=ga(n,i,a,t,e[0],20,-373897302),t=ga(t,n,i,a,e[5],5,-701558691),a=ga(a,t,n,i,e[10],9,38016083),i=ga(i,a,t,n,e[15],14,-660478335),n=ga(n,i,a,t,e[4],20,-405537848),t=ga(t,n,i,a,e[9],5,568446438),a=ga(a,t,n,i,e[14],9,-1019803690),i=ga(i,a,t,n,e[3],14,-187363961),n=ga(n,i,a,t,e[8],20,1163531501),t=ga(t,n,i,a,e[13],5,-1444681467),a=ga(a,t,n,i,e[2],9,-51403784),i=ga(i,a,t,n,e[7],14,1735328473),t=ya(t,n=ga(n,i,a,t,e[12],20,-1926607734),i,a,e[5],4,-378558),a=ya(a,t,n,i,e[8],11,-2022574463),i=ya(i,a,t,n,e[11],16,1839030562),n=ya(n,i,a,t,e[14],23,-35309556),t=ya(t,n,i,a,e[1],4,-1530992060),a=ya(a,t,n,i,e[4],11,1272893353),i=ya(i,a,t,n,e[7],16,-155497632),n=ya(n,i,a,t,e[10],23,-1094730640),t=ya(t,n,i,a,e[13],4,681279174),a=ya(a,t,n,i,e[0],11,-358537222),i=ya(i,a,t,n,e[3],16,-722521979),n=ya(n,i,a,t,e[6],23,76029189),t=ya(t,n,i,a,e[9],4,-640364487),a=ya(a,t,n,i,e[12],11,-421815835),i=ya(i,a,t,n,e[15],16,530742520),t=ma(t,n=ya(n,i,a,t,e[2],23,-995338651),i,a,e[0],6,-198630844),a=ma(a,t,n,i,e[7],10,1126891415),i=ma(i,a,t,n,e[14],15,-1416354905),n=ma(n,i,a,t,e[5],21,-57434055),t=ma(t,n,i,a,e[12],6,1700485571),a=ma(a,t,n,i,e[3],10,-1894986606),i=ma(i,a,t,n,e[10],15,-1051523),n=ma(n,i,a,t,e[1],21,-2054922799),t=ma(t,n,i,a,e[8],6,1873313359),a=ma(a,t,n,i,e[15],10,-30611744),i=ma(i,a,t,n,e[6],15,-1560198380),n=ma(n,i,a,t,e[13],21,1309151649),t=ma(t,n,i,a,e[4],6,-145523070),a=ma(a,t,n,i,e[11],10,-1120210379),i=ma(i,a,t,n,e[2],15,718787259),n=ma(n,i,a,t,e[9],21,-343485551),r[0]=_u(t,r[0]),r[1]=_u(n,r[1]),r[2]=_u(i,r[2]),r[3]=_u(a,r[3])}function Ow(r,e,t,n,i,a){return e=_u(_u(e,r),_u(n,a)),_u(e<>>32-i,t)}function va(r,e,t,n,i,a,o){return Ow(e&t|~e&n,r,e,i,a,o)}function ga(r,e,t,n,i,a,o){return Ow(e&n|t&~n,r,e,i,a,o)}function ya(r,e,t,n,i,a,o){return Ow(e^t^n,r,e,i,a,o)}function ma(r,e,t,n,i,a,o){return Ow(t^(e|~n),r,e,i,a,o)}function M8(r){var e,t=r.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=r.length;e+=64)JC(n,yAt(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(JC(n,i),e=0;e<16;e++)i[e]=0;return i[14]=8*t,JC(n,i),n}function yAt(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}jv=Ge.atob.bind(Ge),tS=Ge.btoa.bind(Ge);var wN="0123456789abcdef".split("");function mAt(r){for(var e="",t=0;t<4;t++)e+=wN[r>>8*t+4&15]+wN[r>>8*t&15];return e}function _At(r){return String.fromCharCode((255&r)>>0,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function eS(r){return M8(r).map(_At).join("")}var wAt=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 rS(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€/\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=eS(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=rS(this.encryptionKey,this.padding)}function Gf(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 CN(r){if(rn(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){Ge.console&&cn.error("jsPDF PubSub Error",s.message,s)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function J_(r){if(!(this instanceof J_))return new J_(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 N8(r,e){this.gState=r,this.matrix=e,this.id="",this.objectNumber=-1}function Pc(r,e,t,n,i){if(!(this instanceof Pc))return new Pc(r,e,t,n,i);this.type=r==="axial"?2:3,this.coords=e,this.colors=t,N8.call(this,n,i)}function Jf(r,e,t,n,i){if(!(this instanceof Jf))return new Jf(r,e,t,n,i);this.boundingBox=r,this.xStep=e,this.yStep=t,this.stream="",this.cloneIndex=0,N8.call(this,n,i)}function De(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;rn(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=CN;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 Fe(zt,0,0,-zt,0,Nl()*zt).toString()+" cm"),this.setFontSize(this.getFontSize()/zt),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.")},F=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 F(w,A)}:A==="smart"?function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return F(w,w>-1&&w<1?16:5)}:function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return F(w,16)};var M=f.f2=f.__private__.f2=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.f2");return F(w,2)},S=f.__private__.f3=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.f3");return F(w,3)},x=f.scale=f.__private__.scale=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.scale");return E===_.COMPAT?w*zt:E===_.ADVANCED?w:void 0},N=function(w){return E===_.COMPAT?Nl()-w:E===_.ADVANCED?w:void 0},P=function(w){return x(N(w))};f.__private__.setPrecision=f.setPrecision=function(w){typeof parseInt(w,10)=="number"&&(e=parseInt(w,10))};var Y,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&&(fa=new Hf(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),Kt=parseInt(w.substr(14,2),10);return new Date(D,et,lt,Ct,Rt,Kt,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 Y=D},R=f.__private__.getCreationDate=function(w){var D=Y;return w==="jsDate"&&(D=it(Y)),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,Ft=[],Ot=[],V=!1,Z=wt,ut=function(){at=0,W=0,wt=[],vt=[],Ft=[],Ae=Jr(),ht=Jr()};f.__private__.setCustomOutputDestination=function(w){V=!0,Z=w};var rt=function(w){V||(Z=w)};f.__private__.resetCustomOutputDestination=function(){V=!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," "))},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/zt:w,this};var yt,xt=f.__private__.getFontSize=f.getFontSize=function(){return E===_.COMPAT?Et:Et*zt},It=r.R2L||!1;f.__private__.setR2L=f.setR2L=function(w){return It=w,this},f.__private__.getR2L=f.getR2L=function(){return It};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,ae=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 re=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),re(D),ae(et),this};var Wt={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(w){if(Object.keys(Wt).indexOf(w)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Wt[w]},f.__private__.getDocumentProperties=function(){return Wt},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(w){for(var D in Wt)Wt.hasOwnProperty(D)&&w[D]&&(Wt[D]=w[D]);return this},f.__private__.setDocumentProperty=function(w,D){if(Object.keys(Wt).indexOf(w)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Wt[w]=D};var se,zt,We,Me,dr,Ie={},be={},An=[],Ar={},xi={},Tr={},hi={},Vr=null,Kr=0,Ne=[],Er=new CN(f),Yn=r.hotfixes||[],dn={},Si={},bi=[],Fe=function w(D,et,lt,Ct,Rt,Kt){if(!(this instanceof w))return new w(D,et,lt,Ct,Rt,Kt);isNaN(D)&&(D=1),isNaN(et)&&(et=0),isNaN(lt)&&(lt=0),isNaN(Ct)&&(Ct=1),isNaN(Rt)&&(Rt=0),isNaN(Kt)&&(Kt=0),this._matrix=[D,et,lt,Ct,Rt,Kt]};Object.defineProperty(Fe.prototype,"sx",{get:function(){return this._matrix[0]},set:function(w){this._matrix[0]=w}}),Object.defineProperty(Fe.prototype,"shy",{get:function(){return this._matrix[1]},set:function(w){this._matrix[1]=w}}),Object.defineProperty(Fe.prototype,"shx",{get:function(){return this._matrix[2]},set:function(w){this._matrix[2]=w}}),Object.defineProperty(Fe.prototype,"sy",{get:function(){return this._matrix[3]},set:function(w){this._matrix[3]=w}}),Object.defineProperty(Fe.prototype,"tx",{get:function(){return this._matrix[4]},set:function(w){this._matrix[4]=w}}),Object.defineProperty(Fe.prototype,"ty",{get:function(){return this._matrix[5]},set:function(w){this._matrix[5]=w}}),Object.defineProperty(Fe.prototype,"a",{get:function(){return this._matrix[0]},set:function(w){this._matrix[0]=w}}),Object.defineProperty(Fe.prototype,"b",{get:function(){return this._matrix[1]},set:function(w){this._matrix[1]=w}}),Object.defineProperty(Fe.prototype,"c",{get:function(){return this._matrix[2]},set:function(w){this._matrix[2]=w}}),Object.defineProperty(Fe.prototype,"d",{get:function(){return this._matrix[3]},set:function(w){this._matrix[3]=w}}),Object.defineProperty(Fe.prototype,"e",{get:function(){return this._matrix[4]},set:function(w){this._matrix[4]=w}}),Object.defineProperty(Fe.prototype,"f",{get:function(){return this._matrix[5]},set:function(w){this._matrix[5]=w}}),Object.defineProperty(Fe.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Fe.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Fe.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Fe.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Fe.prototype.join=function(w){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(b).join(w)},Fe.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,Kt=w.tx*this.shy+w.ty*this.sy+this.ty;return new Fe(D,et,lt,Ct,Rt,Kt)},Fe.prototype.decompose=function(){var w=this.sx,D=this.shy,et=this.shx,lt=this.sy,Ct=this.tx,Rt=this.ty,Kt=Math.sqrt(w*w+D*D),ne=(w/=Kt)*et+(D/=Kt)*lt;et-=w*ne,lt-=D*ne;var Le=Math.sqrt(et*et+lt*lt);return ne/=Le,w*(lt/=Le)>16&255,lt=Le>>8&255,Ct=255&Le}if(lt===void 0||Rt===void 0&&et===lt&<===Ct)if(typeof et=="string")D=et+" "+Kt[0];else switch(w.precision){case 2:D=M(et/255)+" "+Kt[0];break;case 3:default:D=S(et/255)+" "+Kt[0]}else if(Rt===void 0||rn(Rt)==="object"){if(Rt&&!isNaN(Rt.a)&&Rt.a===0)return D=["1.","1.","1.",Kt[1]].join(" ");if(typeof et=="string")D=[et,lt,Ct,Kt[1]].join(" ");else switch(w.precision){case 2:D=[M(et/255),M(lt/255),M(Ct/255),Kt[1]].join(" ");break;default:case 3:D=[S(et/255),S(lt/255),S(Ct/255),Kt[1]].join(" ")}}else if(typeof et=="string")D=[et,lt,Ct,Rt,Kt[2]].join(" ");else switch(w.precision){case 2:D=[M(et),M(lt),M(Ct),M(Rt),Kt[2]].join(" ");break;case 3:default:D=[S(et),S(lt),S(Ct),S(Rt),Kt[2]].join(" ")}return D},rr=f.__private__.getFilters=function(){return o},Mr=f.__private__.putStream=function(w){var D=(w=w||{}).data||"",et=w.filters||rr(),lt=w.alreadyAppliedFilters||[],Ct=w.addLength1||!1,Rt=D.length,Kt=w.objectId,ne=function(pa){return pa};if(u!==null&&Kt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(ne=fa.encryptor(Kt,0));var Le={};et===!0&&(et=["FlateEncode"]);var cr=w.additionalKeyValues||[],ze=(Le=De.API.processDataByFilters!==void 0?De.API.processDataByFilters(D,et):{data:D,reverseChain:[]}).reverseChain+(Array.isArray(lt)?lt.join(" "):lt.toString());if(Le.data.length!==0&&(cr.push({key:"Length",value:Le.data.length}),Ct===!0&&cr.push({key:"Length1",value:Rt})),ze.length!=0)if(ze.split("/").length-1==1)cr.push({key:"Filter",value:ze});else{cr.push({key:"Filter",value:"["+ze+"]"});for(var xr=0;xr>"),Le.data.length!==0&&(G("stream"),G(ne(Le.data)),G("endstream"))},ln=f.__private__.putPage=function(w){var D=w.number,et=w.data,lt=w.objId,Ct=w.contentsObjId;Bn(lt,!0),G("<>"),G("endobj");var Rt=et.join(` +`);return E===_.ADVANCED&&(Rt+=` +Q`),Bn(Ct,!0),Mr({data:Rt,filters:rr(),objectId:Ct}),G("endobj"),lt},Tn=f.__private__.putPages=function(){var w,D,et=[];for(w=1;w<=Kr;w++)Ne[w].objId=Jr(),Ne[w].contentsObjId=Jr();for(w=1;w<=Kr;w++)et.push(ln({number:w,data:Ot[w],objId:Ne[w].objId,contentsObjId:Ne[w].contentsObjId,mediaBox:Ne[w].mediaBox,cropBox:Ne[w].cropBox,bleedBox:Ne[w].bleedBox,trimBox:Ne[w].trimBox,artBox:Ne[w].artBox,userUnit:Ne[w].userUnit,rootDictionaryObjId:Ae,resourceDictionaryObjId:ht}));Bn(Ae,!0),G("<>"),G("endobj"),Er.publish("postPutPages")},os=function(w){Er.publish("putFont",{font:w,out:G,newObject:nn,putStream:Mr}),w.isAlreadyPutted!==!0&&(w.objectNumber=nn(),G("<<"),G("/Type /Font"),G("/BaseFont /"+Gf(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))&&os(Ie[w])},TA=function(w){w.objectNumber=nn();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(` +`);Mr({data:et,additionalKeyValues:D,objectId:w.objectNumber}),G("endobj")},Ll=function(){for(var w in dn)dn.hasOwnProperty(w)&&TA(dn[w])},cd=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 Kt={offset:1,color:w[w.length-1].color};w.push(Kt)}for(var ne="",Le=0,cr=0;crw[Le+1].offset;)Le++;var ze=w[Le].offset,xr=(et-ze)/(w[Le+1].offset-ze),ea=w[Le].color,qn=w[Le+1].color;ne+=q(Math.round((1-xr)*ea[0]+xr*qn[0]).toString(16))+q(Math.round((1-xr)*ea[1]+xr*qn[1]).toString(16))+q(Math.round((1-xr)*ea[2]+xr*qn[2]).toString(16))}return ne.trim()},yE=function(w,D){D||(D=21);var et=nn(),lt=cd(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]"}),Mr({data:lt,additionalKeyValues:Ct,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:et}),G("endobj"),w.objectNumber=nn(),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")},mE=function(w,D){var et=Jr(),lt=nn();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()+"]"}),Mr({data:w.stream,additionalKeyValues:Ct,objectId:w.objectNumber}),G("endobj")},$h=function(w){var D;for(D in Ar)Ar.hasOwnProperty(D)&&(Ar[D]instanceof Pc?yE(Ar[D]):Ar[D]instanceof Jf&&mE(Ar[D],w))},Sy=function(w){for(var D in w.objectNumber=nn(),G("<<"),w)switch(D){case"opacity":G("/ca "+M(w[D]));break;case"stroke-opacity":G("/CA "+M(w[D]))}G(">>"),G("endobj")},_E=function(){var w;for(w in Tr)Tr.hasOwnProperty(w)&&Sy(Tr[w])},hd=function(){for(var w in G("/XObject <<"),dn)dn.hasOwnProperty(w)&&dn[w].objectNumber>=0&&G("/"+w+" "+dn[w].objectNumber+" 0 R");Er.publish("putXobjectDict"),G(">>")},wE=function(){fa.oid=nn(),G("<<"),G("/Filter /Standard"),G("/V "+fa.v),G("/R "+fa.r),G("/U <"+fa.toHexString(fa.U)+">"),G("/O <"+fa.toHexString(fa.O)+">"),G("/P "+fa.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(">>")},EE=function(){if(Object.keys(Ar).length>0){for(var w in G("/Shading <<"),Ar)Ar.hasOwnProperty(w)&&Ar[w]instanceof Pc&&Ar[w].objectNumber>=0&&G("/"+w+" "+Ar[w].objectNumber+" 0 R");Er.publish("putShadingPatternDict"),G(">>")}},jh=function(w){if(Object.keys(Ar).length>0){for(var D in G("/Pattern <<"),Ar)Ar.hasOwnProperty(D)&&Ar[D]instanceof f.TilingPattern&&Ar[D].objectNumber>=0&&Ar[D].objectNumber>")}},CE=function(){if(Object.keys(Tr).length>0){var w;for(w in G("/ExtGState <<"),Tr)Tr.hasOwnProperty(w)&&Tr[w].objectNumber>=0&&G("/"+w+" "+Tr[w].objectNumber+" 0 R");Er.publish("putGStateDict"),G(">>")}},Wn=function(w){Bn(w.resourcesOid,!0),G("<<"),G("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),by(),EE(),jh(w.objectOid),CE(),hd(),G(">>"),G("endobj")},Fy=function(){var w=[];Ii(),_E(),Ll(),$h(w),Er.publish("putResources"),w.forEach(Wn),Wn({resourcesOid:ht,objectOid:Number.MAX_SAFE_INTEGER}),Er.publish("postPutResources")},Iy=function(){Er.publish("putAdditionalObjects");for(var w=0;w>8&&(Le=!0);w=ne.join("")}for(et=w.length;Le===void 0&&et!==0;)w.charCodeAt(et-1)>>8&&(Le=!0),et--;if(!Le)return w;for(ne=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");ne.push(ze),ne.push(cr-(ze<<8))}return String.fromCharCode.apply(void 0,ne)},Wa=f.__private__.pdfEscape=f.pdfEscape=function(w,D){return Vh(w,D).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},pd=f.__private__.beginPage=function(w){Ot[++Kr]=[],Ne[Kr]={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])}},Ry(Kr),rt(Ot[$])},Oy=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]*zt,Ct=w[1]*zt),isNaN(lt)&&(lt=i[0],Ct=i[1]),(lt>14400||Ct>14400)&&(cn.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])}pd(i),Qy(yd),G(As),_d!==0&&G(_d+" J"),wd!==0&&G(wd+" j"),Er.publish("addPage",{pageNumber:Kr})},TE=function(w){w>0&&w<=Kr&&(Ot.splice(w,1),Ne.splice(w,1),Kr--,$>Kr&&($=Kr),this.setPage($))},Ry=function(w){w>0&&w<=Kr&&($=w)},xE=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return Ot.length-1},My=function(w,D,et){var lt,Ct=void 0;return et=et||{},w=w!==void 0?w:Ie[se].fontName,D=D!==void 0?D:Ie[se].fontStyle,lt=w.toLowerCase(),be[lt]!==void 0&&be[lt][D]!==void 0?Ct=be[lt][D]:be[w]!==void 0&&be[w][D]!==void 0?Ct=be[w][D]:et.disableWarning===!1&&cn.warn("Unable to look up font label for font '"+w+"', '"+D+"'. Refer to getFontList() for available fonts."),Ct||et.noFallback||(Ct=be.times[D])==null&&(Ct=be.times.normal),Ct},SE=f.__private__.putInfo=function(){var w=nn(),D=function(lt){return lt};for(var et in u!==null&&(D=fa.encryptor(w,0)),G("<<"),G("/Producer ("+Wa(D("jsPDF "+De.version))+")"),Wt)Wt.hasOwnProperty(et)&&Wt[et]&&G("/"+et.substr(0,1).toUpperCase()+et.substr(1)+" ("+Wa(D(Wt[et]))+")");G("/CreationDate ("+Wa(D(Y))+")"),G(">>"),G("endobj")},dd=f.__private__.putCatalog=function(w){var D=(w=w||{}).rootDictionaryObjId||Ae;switch(nn(),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),Er.publish("putCatalog"),G(">>"),G("endobj")},bE=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 "+fa.oid+" 0 R"),G("/ID [ <"+z+"> <"+z+"> ]"),G(">>")},FE=f.__private__.putHeader=function(){G("%PDF-"+p),G("%ºß¬à")},IE=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 ")},xA=f.__private__.buildDocument=function(){ut(),rt(wt),Er.publish("buildDocument"),FE(),Tn(),Iy(),Fy(),u!==null&&wE(),SE(),dd();var w=W;return IE(),bE(),G("startxref"),G(""+w),G("%%EOF"),rt(Ot[$]),wt.join(` +`)},Kh=f.__private__.getBlob=function(w){return new Blob([bt(w)],{type:"application/pdf"})},zh=f.output=f.__private__.output=ss(function(w,D){switch(typeof(D=D||{})=="string"?D={filename:D}:D.filename=D.filename||"generated.pdf",w){case void 0:return xA();case"save":f.save(D.filename);break;case"arraybuffer":return bt(xA());case"blob":return Kh(xA());case"bloburi":case"bloburl":if(Ge.URL!==void 0&&typeof Ge.URL.createObjectURL=="function")return Ge.URL&&Ge.URL.createObjectURL(Kh(xA()))||void 0;cn.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=xA();try{et=tS(lt)}catch{et=tS(unescape(encodeURIComponent(lt)))}return"data:application/pdf;filename="+D.filename+";base64,"+et;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ge)==="[object Window]"){var Ct='