PageSourceSearch

https://booking.baroniet.no/_next/static/chunks/3xsnsumg1dscs.js

js baroniet.no collected 2026-09-24 23:16:06 UTC 208,560 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,750502,464342,468529,641096,t=>{"use strict";var e=t.i(480821),i=t.i(148349),n=t.i(725556);let r="length";class s extends n.default{constructor(t,e,i){super(t),this.element=e,this.index=i}}class o extends i.default{constructor(t,e){if(super(),this.on,this.once,this.un,e=e||{},this.unique_=!!e.unique,this.array_=t??[],this.unique_)for(let t=1,e=this.array_.length;t<e;++t)this.assertUnique_(this.array_[t],t);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(t){for(let e=0,i=t.length;e<i;++e)this.push(t[e]);return this}forEach(t){let e=this.array_;for(let i=0,n=e.length;i<n;++i)t(e[i],i,e)}getArray(){return this.array_}item(t){return this.array_[t]}getLength(){return this.get(r)}insertAt(t,i){if(t<0||t>this.getLength())throw Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(i),this.array_.splice(t,0,i),this.updateLength_(),this.dispatchEvent(new s(e.default.ADD,i,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){let e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){let e=this.array_;for(let i=0,n=e.length;i<n;++i)if(e[i]===t)return this.removeAt(i)}removeAt(t){if(t<0||t>=this.getLength())return;let i=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new s(e.default.REMOVE,i,t)),i}setAt(t,i){if(t>=this.getLength())return void this.insertAt(t,i);if(t<0)throw Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(i,t);let n=this.array_[t];this.array_[t]=i,this.dispatchEvent(new s(e.default.REMOVE,n,t)),this.dispatchEvent(new s(e.default.ADD,i,t))}updateLength_(){this.set(r,this.array_.length)}assertUnique_(t,e){let i=this.array_;for(let n=0,r=i.length;n<r;++n)if(i[n]===t&&n!==e)throw Error("Duplicate item added to a unique collection")}}t.s(["default",0,o],750502);var a=n;class l extends a.default{constructor(t,e,i){super(t),this.map=e,this.frameState=void 0!==i?i:null}}let h=l;t.s(["default",0,h],464342),t.s(["default",0,class extends h{constructor(t,e,i,n,r,s){super(t,e,r),this.originalEvent=i,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==n&&n,this.activePointers=s}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(t){this.pixel_=t}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(t){this.coordinate_=t}preventDefault(){super.preventDefault(),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()}}],468529);var u=t.i(452258);let d={SINGLECLICK:"singleclick",CLICK:u.default.CLICK,DBLCLICK:u.default.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"};t.s(["default",0,d],641096)},480821,t=>{"use strict";t.s(["default",0,{ADD:"add",REMOVE:"remove"}])},477011,780786,431562,783613,412441,379703,436154,78451,682554,19816,493021,162442,523361,861684,t=>{"use strict";let e;var i=t.i(750502),n=t.i(480821),r=t.i(468529),s=t.i(780691),o=t.i(641096),a=t.i(464342),l=t.i(466532),h=t.i(872266),u=t.i(148349),d=t.i(519215),c=t.i(996824),g=t.i(964829),f=t.i(900768),_=t.i(88553),p=t.i(56513),m=t.i(693869),y=t.i(677153),v=t.i(413685),E=t.i(452258),C=t.i(940631),x=u,R=t.i(835937);class w extends x.default{constructor(t){super();const e=t.element;!e||t.target||e.style.pointerEvents||(e.style.pointerEvents="auto"),this.element=e||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){this.element?.remove(),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&this.element?.remove();for(let t=0,e=this.listenerKeys.length;t<e;++t)(0,R.unlistenByKey)(this.listenerKeys[t]);if(this.listenerKeys.length=0,this.map_=t,t){let e=this.target_??t.getOverlayContainerStopEvent();this.element&&e.appendChild(this.element),this.render!==C.VOID&&this.listenerKeys.push((0,R.listen)(t,l.default.POSTRENDER,this.render,this)),t.render()}}render(t){}setTarget(t){this.target_="string"==typeof t?document.getElementById(t):t}}let S=w,I=class extends S{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=void 0===t.collapsed||t.collapsed,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=void 0!==t.collapsible,this.collapsible_=void 0===t.collapsible||t.collapsible,this.collapsible_||(this.collapsed_=!1),this.attributions_=t.attributions;const e=void 0!==t.className?t.className:"ol-attribution",i=void 0!==t.tipLabel?t.tipLabel:"Attributions",n=void 0!==t.expandClassName?t.expandClassName:e+"-expand",r=void 0!==t.collapseLabel?t.collapseLabel:"›",s=void 0!==t.collapseClassName?t.collapseClassName:e+"-collapse";"string"==typeof r?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=r,this.collapseLabel_.className=s):this.collapseLabel_=r;const o=void 0!==t.label?t.label:"i";"string"==typeof o?(this.label_=document.createElement("span"),this.label_.textContent=o,this.label_.className=n):this.label_=o;const a=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_;this.toggleButton_=document.createElement("button"),this.toggleButton_.setAttribute("type","button"),this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_)),this.toggleButton_.title=i,this.toggleButton_.appendChild(a),this.toggleButton_.addEventListener(E.default.CLICK,this.handleClick_.bind(this),!1);const l=e+" "+y.CLASS_UNSELECTABLE+" "+y.CLASS_CONTROL+(this.collapsed_&&this.collapsible_?" "+y.CLASS_COLLAPSED:"")+(this.collapsible_?"":" ol-uncollapsible"),h=this.element;h.className=l,h.appendChild(this.toggleButton_),h.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(t){let e=this.getMap().getAllLayers(),i=new Set(e.flatMap(e=>e.getAttributions(t)));if(void 0!==this.attributions_&&(Array.isArray(this.attributions_)?this.attributions_.forEach(t=>i.add(t)):i.add(this.attributions_)),!this.overrideCollapsible_){let t=!e.some(t=>t.getSource()?.getAttributionsCollapsible()===!1);this.setCollapsible(t)}return Array.from(i)}async updateElement_(t){if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}let e=await Promise.all(this.collectSourceAttributions_(t).map(t=>(0,C.toPromise)(()=>t))),i=e.length>0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!(0,_.equals)(e,this.renderedAttributions_)){(0,v.removeChildren)(this.ulElement_);for(let t=0,i=e.length;t<i;++t){let i=document.createElement("li");i.innerHTML=e[t],this.ulElement_.appendChild(i)}this.renderedAttributions_=e}}handleClick_(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_}handleToggle_(){this.element.classList.toggle(y.CLASS_COLLAPSED),this.collapsed_?(0,v.replaceNode)(this.collapseLabel_,this.label_):(0,v.replaceNode)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))}getCollapsible(){return this.collapsible_}setCollapsible(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())}setCollapsed(t){this.userCollapsed_=t,this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()}getCollapsed(){return this.collapsed_}render(t){this.updateElement_(t.frameState)}};var A=t.i(811365);let M=class extends S{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target});const e=void 0!==t.className?t.className:"ol-rotate",i=void 0!==t.label?t.label:"⇧",n=void 0!==t.compassClassName?t.compassClassName:"ol-compass";this.label_=null,"string"==typeof i?(this.label_=document.createElement("span"),this.label_.className=n,this.label_.textContent=i):(this.label_=i,this.label_.classList.add(n));const r=t.tipLabel?t.tipLabel:"Reset rotation",s=document.createElement("button");s.className=e+"-reset",s.setAttribute("type","button"),s.title=r,s.appendChild(this.label_),s.addEventListener(E.default.CLICK,this.handleClick_.bind(this),!1);const o=e+" "+y.CLASS_UNSELECTABLE+" "+y.CLASS_CONTROL,a=this.element;a.className=o,a.appendChild(s),this.callResetNorth_=t.resetNorth?t.resetNorth:void 0,this.duration_=void 0!==t.duration?t.duration:250,this.autoHide_=void 0===t.autoHide||t.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(y.CLASS_HIDDEN)}handleClick_(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()}resetNorth_(){let t=this.getMap().getView();if(!t)return;let e=t.getRotation();void 0!==e&&(this.duration_>0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:A.easeOut}):t.setRotation(0))}render(t){let e=t.frameState;if(!e)return;let i=e.viewState.rotation;if(i!=this.rotation_){if(this.autoHide_){let t=this.element.classList.contains(y.CLASS_HIDDEN);t||0!==i?t&&0!==i&&this.element.classList.remove(y.CLASS_HIDDEN):this.element.classList.add(y.CLASS_HIDDEN)}this.label_.style.transform="rotate("+i+"rad)"}this.rotation_=i}},b=class extends S{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});const e=void 0!==t.className?t.className:"ol-zoom",i=void 0!==t.delta?t.delta:1,n=void 0!==t.zoomInClassName?t.zoomInClassName:e+"-in",r=void 0!==t.zoomOutClassName?t.zoomOutClassName:e+"-out",s=void 0!==t.zoomInLabel?t.zoomInLabel:"+",o=void 0!==t.zoomOutLabel?t.zoomOutLabel:"–",a=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",l=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",h=document.createElement("button");h.className=n,h.setAttribute("type","button"),h.title=a,h.appendChild("string"==typeof s?document.createTextNode(s):s),h.addEventListener(E.default.CLICK,this.handleClick_.bind(this,i),!1);const u=document.createElement("button");u.className=r,u.setAttribute("type","button"),u.title=l,u.appendChild("string"==typeof o?document.createTextNode(o):o),u.addEventListener(E.default.CLICK,this.handleClick_.bind(this,-i),!1);const d=e+" "+y.CLASS_UNSELECTABLE+" "+y.CLASS_CONTROL,c=this.element;c.className=d,c.appendChild(h),c.appendChild(u),this.duration_=void 0!==t.duration?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){let e=this.getMap().getView();if(!e)return;let i=e.getZoom();if(void 0!==i){let n=e.getConstrainedZoom(i+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:n,duration:this.duration_,easing:A.easeOut})):e.setZoom(n)}}};t.s(["default",0,b],780786);var P=t.i(256843),T=t.i(888264);let O=class{constructor(t,e,i){this.decay_=t,this.minVelocity_=e,this.delay_=i,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,e){this.points_.push(t,e,Date.now())}end(){if(this.points_.length<6)return!1;let t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;let i=e-3;for(;i>0&&this.points_[i+2]>t;)i-=3;let n=this.points_[e+2]-this.points_[i+2];if(n<1e3/60)return!1;let r=this.points_[e]-this.points_[i],s=this.points_[e+1]-this.points_[i+1];return this.angle_=Math.atan2(s,r),this.initialVelocity_=Math.sqrt(r*r+s*s)/n,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}};var L=u;let D="active";class N extends L.default{constructor(t){super(),this.on,this.once,this.un,t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(D)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(D,t)}setMap(t){this.map_=t}}function F(t,e,i,n){let r=t.getZoom();if(void 0===r)return;let s=t.getConstrainedZoom(r+e),o=t.getResolutionForZoom(s);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:o,anchor:i,duration:void 0!==n?n:250,easing:A.easeOut})}let k=N,z=class extends k{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:250}handleEvent(t){let e=!1;if(t.type==o.default.DBLCLICK){let i=t.originalEvent,n=t.map,r=t.coordinate,
1s=i.shiftKey?-this.delta_:this.delta_;F(n.getView(),s,r,this.duration_),i.preventDefault(),e=!0}return!e}};var K=t.i(840399);function V(t){let e=arguments;return function(t){let i=!0;for(let n=0,r=e.length;n<r&&(i=i&&e[n](t));++n);return i}}let W=function(t){let e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},G=function(t){let e=t.map.getTargetElement(),i=e.getRootNode(),n=t.map.getOwnerDocument().activeElement;return i instanceof ShadowRoot?i.host.contains(n):e.contains(n)},U=function(t){let e=t.map.getTargetElement(),i=e.getRootNode();return!(i instanceof ShadowRoot?i.host:e).hasAttribute("tabindex")||G(t)},B=C.TRUE,X=function(t){let e=t.originalEvent;return"pointerId"in e&&0==e.button&&!(T.WEBKIT&&T.MAC&&e.ctrlKey)};C.FALSE;let H=function(t){let e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},q=function(t){let e=t.originalEvent;return T.MAC?e.metaKey:e.ctrlKey},Y=function(t){let e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},Z=function(t){let e=t.originalEvent,i=e.target.tagName;return"INPUT"!==i&&"SELECT"!==i&&"TEXTAREA"!==i&&!e.target.isContentEditable},j=function(t){let e=t.originalEvent;return"pointerId"in e&&"mouse"==e.pointerType},$=function(t){let e=t.originalEvent;return"pointerId"in e&&e.isPrimary&&0===e.button};function J(t){let e=t.length,i=0,n=0;for(let r=0;r<e;r++)i+=t[r].clientX,n+=t[r].clientY;return{clientX:i/e,clientY:n/e}}let Q=class extends k{constructor(t){super(t=t||{}),t.handleDownEvent&&(this.handleDownEvent=t.handleDownEvent),t.handleDragEvent&&(this.handleDragEvent=t.handleDragEvent),t.handleMoveEvent&&(this.handleMoveEvent=t.handleMoveEvent),t.handleUpEvent&&(this.handleUpEvent=t.handleUpEvent),t.stopDown&&(this.stopDown=t.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(t){return!1}handleDragEvent(t){}handleEvent(t){if(!t.originalEvent)return!0;let e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==o.default.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==o.default.POINTERUP){let e=this.handleUpEvent(t);this.handlingDownUpSequence=e&&this.targetPointers.length>0}}else if(t.type==o.default.POINTERDOWN){let i=this.handleDownEvent(t);this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==o.default.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}},tt=class extends Q{constructor(t){super({stopDown:C.FALSE}),t=t||{},this.kinetic_=t.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;const e=t.condition?t.condition:V(H,$);this.condition_=t.onFocusOnly?V(U,e):e,this.noKinetic_=!1}handleDragEvent(t){let e=t.map;this.panning_||(this.panning_=!0,e.getView().beginInteraction());let i=this.targetPointers,n=e.getEventPixel(J(i));if(i.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){let e=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],i=t.map.getView();(0,K.scale)(e,i.getResolution()),(0,K.rotate)(e,i.getRotation()),i.adjustCenterInternal(e)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=i.length,t.originalEvent.preventDefault()}handleUpEvent(t){let e=t.map,i=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){let t=this.kinetic_.getDistance(),n=this.kinetic_.getAngle(),r=i.getCenterInternal(),s=e.getPixelFromCoordinateInternal(r),o=e.getCoordinateFromPixelInternal([s[0]-t*Math.cos(n),s[1]-t*Math.sin(n)]);i.animateInternal({center:i.getConstrainedCenter(o),duration:500,easing:A.easeOut})}return this.panning_&&(this.panning_=!1,i.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(t){if(this.targetPointers.length>0&&this.condition_(t)){let e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}};var te=t.i(608580);let ti=class extends Q{constructor(t){t=t||{},super({stopDown:C.FALSE}),this.condition_=t.condition?t.condition:W,this.lastAngle_=void 0,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){if(!j(t))return;let e=t.map,i=e.getView();if(i.getConstraints().rotation===te.disable)return;let n=e.getSize(),r=t.pixel,s=Math.atan2(n[1]/2-r[1],r[0]-n[0]/2);if(void 0!==this.lastAngle_){let t=s-this.lastAngle_;i.adjustRotationInternal(-t)}this.lastAngle_=s}handleUpEvent(t){return!j(t)||(t.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(t){return!!j(t)&&!!(X(t)&&this.condition_(t))&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0)}};var tn=t.i(725556),tr=t.i(513872),ts=t.i(471733);class to extends tr.default{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){let t=this.startPixel_,e=this.endPixel_,i=this.element_.style;i.left=Math.min(t[0],e[0])+"px",i.top=Math.min(t[1],e[1])+"px",i.width=Math.abs(e[0]-t[0])+"px",i.height=Math.abs(e[1]-t[1])+"px"}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);let t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){if(!this.map_)return;let t=this.startPixel_,e=this.endPixel_,i=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new ts.default([i])}getGeometry(){return this.geometry_}}let ta="boxcancel";class tl extends tn.default{constructor(t,e,i){super(t),this.coordinate=e,this.mapBrowserEvent=i}}let th=class extends Q{constructor(t){super(),this.on,this.once,this.un,t=t??{},this.box_=new to(t.className||"ol-dragbox"),this.minArea_=t.minArea??
164,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition??X,this.boxEndCondition_=t.boxEndCondition??this.defaultBoxEndCondition}defaultBoxEndCondition(t,e,i){let n=i[0]-e[0],r=i[1]-e[1];return n*n+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.startPixel_&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new tl("boxdrag",t.coordinate,t)))}handleUpEvent(t){if(!this.startPixel_)return!1;let e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new tl(e?"boxend":ta,t.coordinate,t)),this.box_.setMap(null),this.startPixel_=null,!1}handleDownEvent(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new tl("boxstart",t.coordinate,t)),!0)}onBoxEnd(t){}setActive(t){!t&&(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new tl(ta,this.startPixel_,null)),this.startPixel_=null)),super.setActive(t)}setMap(t){this.getMap()&&(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new tl(ta,this.startPixel_,null)),this.startPixel_=null)),super.setMap(t)}},tu=class extends th{constructor(t){super({condition:(t=t||{}).condition?t.condition:Y,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=void 0!==t.duration?t.duration:200,this.out_=void 0!==t.out&&t.out}onBoxEnd(t){let e=this.getMap().getView(),i=this.getGeometry();if(this.out_){let t=e.rotatedExtentForGeometry(i),n=e.getResolutionForExtentInternal(t),r=e.getResolution()/n;(i=i.clone()).scale(r*r)}e.fitInternal(i,{duration:this.duration_,easing:A.easeOut})}},td="ArrowLeft",tc="ArrowRight",tg="ArrowDown",tf=class extends k{constructor(t){super(),t=t||{},this.defaultCondition_=function(t){return H(t)&&Z(t)},this.condition_=void 0!==t.condition?t.condition:this.defaultCondition_,this.duration_=void 0!==t.duration?t.duration:100,this.pixelDelta_=void 0!==t.pixelDelta?t.pixelDelta:128}handleEvent(t){let e=!1;if(t.type==E.default.KEYDOWN){let n=t.originalEvent,r=n.key;if(this.condition_(t)&&(r==tg||r==td||r==tc||"ArrowUp"==r)){let s=t.map.getView(),o=s.getResolution()*this.pixelDelta_,a=0,l=0;r==tg?l=-o:r==td?a=-o:r==tc?a=o:l=o;let h=[a,l];(0,K.rotate)(h,s.getRotation());var i=this.duration_;let u=s.getCenterInternal();if(u){let t=[u[0]+h[0],u[1]+h[1]];s.animateInternal({duration:void 0!==i?i:250,easing:A.linear,center:s.getConstrainedCenter(t)})}n.preventDefault(),e=!0}}return!e}},t_=class extends k{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(t){return!q(t)&&Z(t)},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:100}handleEvent(t){let e=!1;if(t.type==E.default.KEYDOWN||t.type==E.default.KEYPRESS){let i=t.originalEvent,n=i.key;if(this.condition_(t)&&("+"===n||"-"===n)){let r=t.map,s="+"===n?this.delta_:-this.delta_;F(r.getView(),s,void 0,this.duration_),i.preventDefault(),e=!0}}return!e}};var tp=t.i(403970);let tm=class extends k{constructor(t){super(t=t||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==t.maxDelta?t.maxDelta:1,this.duration_=void 0!==t.duration?t.duration:250,this.timeout_=void 0!==t.timeout?t.timeout:80,this.useAnchor_=void 0===t.useAnchor||t.useAnchor,this.constrainResolution_=void 0!==t.constrainResolution&&t.constrainResolution;const e=t.condition?t.condition:B;this.condition_=t.onFocusOnly?V(U,e):e,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300,this.ctrlKeyPressed_=!1,this.ctrlKeyListenerKeys_=[]}setMap(t){if(this.ctrlKeyListenerKeys_.forEach(R.unlistenByKey),this.ctrlKeyListenerKeys_.length=0,this.ctrlKeyPressed_=!1,super.setMap(t),t){let e=t.getOwnerDocument();this.ctrlKeyListenerKeys_.push((0,R.listen)(e,"keydown",t=>{"Control"===t.key&&(this.ctrlKeyPressed_=!0)}),(0,R.listen)(e,"keyup",t=>{"Control"===t.key&&(this.ctrlKeyPressed_=!1)}))}}endInteraction_(){this.trackpadTimeoutId_=void 0;let t=this.getMap();if(!t)return;let e=t.getView(),i=this.lastDelta_?this.lastDelta_>0?1:-1:0;e.endInteraction(this.constrainResolution_||e.getConstrainResolution()?100:void 0,i,this.lastAnchor_?t.getCoordinateFromPixel(this.lastAnchor_):null)}handleEvent(t){if(!this.condition_(t)||t.type!==E.default.WHEEL)return!0;let e=t.map,i=t.originalEvent;i.preventDefault();let n=i.ctrlKey&&!this.ctrlKeyPressed_;i.ctrlKey||(this.ctrlKeyPressed_=!1),this.useAnchor_&&(this.lastAnchor_=t.pixel);let r=i.deltaY;switch(i.deltaMode){case WheelEvent.DOM_DELTA_LINE:r*=40;break;case WheelEvent.DOM_DELTA_PAGE:r*=300}if(0===r)return!1;this.lastDelta_=r;let s=Date.now();void 0===this.startTime_&&(this.startTime_=s),(!this.mode_||s-this.startTime_>this.trackpadEventGap_)&&(this.mode_=4>Math.abs(r)?"trackpad":"wheel");let o=e.getView();if("trackpad"===this.mode_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),n&&(r*=3),o.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_?e.getCoordinateFromPixel(this.lastAnchor_):null),this.startTime_=s,!1;this.totalDelta_+=r;let a=Math.max(this.timeout_-(s-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,e),a),!1}handleWheelZoom_(t){let e=t.getView();e.getAnimating()&&e.cancelAnimations();
1let i=-(0,tp.clamp)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),F(e,i,this.lastAnchor_?t.getCoordinateFromPixel(this.lastAnchor_):null,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}},ty=class extends Q{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=C.FALSE),super(e),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==t.threshold?t.threshold:.3,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){let e=0,i=this.targetPointers[0],n=this.targetPointers[1],r=Math.atan2(n.clientY-i.clientY,n.clientX-i.clientX);if(void 0!==this.lastAngle_){let t=r-this.lastAngle_;this.rotationDelta_+=t,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=t}this.lastAngle_=r;let s=t.map,o=s.getView();o.getConstraints().rotation!==te.disable&&(this.anchor_=s.getCoordinateFromPixelInternal(s.getEventPixel(J(this.targetPointers))),this.rotating_&&(s.render(),o.adjustRotationInternal(e,this.anchor_)))}handleUpEvent(t){return!(this.targetPointers.length<2)||(t.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(t){if(this.targetPointers.length>=2){let e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}},tv=class extends Q{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=C.FALSE),super(e),this.anchor_=null,this.duration_=void 0!==t.duration?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let e=1,i=this.targetPointers[0],n=this.targetPointers[1],r=i.clientX-n.clientX,s=i.clientY-n.clientY,o=Math.sqrt(r*r+s*s);void 0!==this.lastDistance_&&(e=this.lastDistance_/o),this.lastDistance_=o;let a=t.map,l=a.getView();1!=e&&(this.lastScaleDelta_=e),this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel(J(this.targetPointers))),a.render(),l.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){let e=t.map.getView(),i=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,i),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){let e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}};function tE(t){t=t||{};let e=new i.default,n=new O(-.005,.05,100);return(void 0===t.altShiftDragRotate||t.altShiftDragRotate)&&e.push(new ti),(void 0===t.doubleClickZoom||t.doubleClickZoom)&&e.push(new z({delta:t.zoomDelta,duration:t.zoomDuration})),(void 0===t.dragPan||t.dragPan)&&e.push(new tt({onFocusOnly:t.onFocusOnly,kinetic:n})),(void 0===t.pinchRotate||t.pinchRotate)&&e.push(new ty),(void 0===t.pinchZoom||t.pinchZoom)&&e.push(new tv({duration:t.zoomDuration})),(void 0===t.keyboard||t.keyboard)&&(e.push(new tf),e.push(new t_({delta:t.zoomDelta,duration:t.zoomDuration}))),(void 0===t.mouseWheelZoom||t.mouseWheelZoom)&&e.push(new tm({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(void 0===t.shiftDragZoom||t.shiftDragZoom)&&e.push(new tu({duration:t.zoomDuration})),e}t.s(["defaults",0,tE],431562);var tC=tn,tx=t.i(793065),tR=t.i(930812),tw=u;let tS={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"};t.s(["default",0,tS],783613);class tI extends tw.default{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;const e=Object.assign({},t);"object"==typeof t.properties&&(delete e.properties,Object.assign(e,t.properties)),e[tS.OPACITY]=void 0!==t.opacity?t.opacity:1,(0,p.assert)("number"==typeof e[tS.OPACITY],"Layer opacity must be a number"),e[tS.VISIBLE]=void 0===t.visible||t.visible,e[tS.Z_INDEX]=t.zIndex,e[tS.MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,e[tS.MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,e[tS.MIN_ZOOM]=void 0!==t.minZoom?t.minZoom:-1/0,e[tS.MAX_ZOOM]=void 0!==t.maxZoom?t.maxZoom:1/0,this.className_=void 0!==e.className?e.className:"ol-layer",delete e.className,this.setProperties(e),this.state_=null}
1getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){let e=this.state_||{layer:this,managed:void 0===t||t},i=this.getZIndex();return e.opacity=(0,tp.clamp)(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==i||e.managed?i:1/0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e}getLayersArray(t){return(0,tR.abstract)()}getLayerStatesArray(t){return(0,tR.abstract)()}getExtent(){return this.get(tS.EXTENT)}getMaxResolution(){return this.get(tS.MAX_RESOLUTION)}getMinResolution(){return this.get(tS.MIN_RESOLUTION)}getMinZoom(){return this.get(tS.MIN_ZOOM)}getMaxZoom(){return this.get(tS.MAX_ZOOM)}getOpacity(){return this.get(tS.OPACITY)}getSourceState(){return(0,tR.abstract)()}getVisible(){return this.get(tS.VISIBLE)}getZIndex(){return this.get(tS.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(tS.EXTENT,t)}setMaxResolution(t){this.set(tS.MAX_RESOLUTION,t)}setMinResolution(t){this.set(tS.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(tS.MAX_ZOOM,t)}setMinZoom(t){this.set(tS.MIN_ZOOM,t)}setOpacity(t){(0,p.assert)("number"==typeof t,"Layer opacity must be a number"),this.set(tS.OPACITY,t)}setVisible(t){this.set(tS.VISIBLE,t)}setZIndex(t){this.set(tS.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}let tA=tI,tM="addlayer",tb="removelayer";class tP extends tC.default{constructor(t,e){super(t),this.layer=e}}let tT="layers",tO=class t extends tA{constructor(t){const e=Object.assign({},t=t||{});delete e.layers;let n=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(tT,this.handleLayersChanged_),n?Array.isArray(n)?n=new i.default(n.slice(),{unique:!0}):(0,p.assert)("function"==typeof n.getArray,"Expected `layers` to be an array or a `Collection`"):n=new i.default(void 0,{unique:!0}),this.setLayers(n)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(R.unlistenByKey),this.layersListenerKeys_.length=0;let t=this.getLayers();for(let e in this.layersListenerKeys_.push((0,R.listen)(t,n.default.ADD,this.handleLayersAdd_,this),(0,R.listen)(t,n.default.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(R.unlistenByKey);(0,tx.clear)(this.listenerKeys_);let e=t.getArray();for(let t=0,i=e.length;t<i;t++){let i=e[t];this.registerLayerListeners_(i),this.dispatchEvent(new tP(tM,i))}this.changed()}registerLayerListeners_(e){let i=[(0,R.listen)(e,d.default.PROPERTYCHANGE,this.handleLayerChange_,this),(0,R.listen)(e,E.default.CHANGE,this.handleLayerChange_,this)];e instanceof t&&i.push((0,R.listen)(e,tM,this.handleLayerGroupAdd_,this),(0,R.listen)(e,tb,this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,tR.getUid)(e)]=i}handleLayerGroupAdd_(t){this.dispatchEvent(new tP(tM,t.layer))}handleLayerGroupRemove_(t){this.dispatchEvent(new tP(tb,t.layer))}handleLayersAdd_(t){let e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new tP(tM,e)),this.changed()}handleLayersRemove_(t){let e=t.element,i=(0,tR.getUid)(e);this.listenerKeys_[i].forEach(R.unlistenByKey),delete this.listenerKeys_[i],this.dispatchEvent(new tP(tb,e)),this.changed()}getLayers(){return this.get(tT)}setLayers(t){let e=this.getLayers();if(e){let t=e.getArray();for(let e=0,i=t.length;e<i;++e)this.dispatchEvent(new tP(tb,t[e]))}this.set(tT,t)}getLayersArray(t){return t=void 0!==t?t:[],this.getLayers().forEach(function(e){e.getLayersArray(t)}),t}getLayerStatesArray(t){let e=void 0!==t?t:[],i=e.length;this.getLayers().forEach(function(t){t.getLayerStatesArray(e)});let n=this.getLayerState(),r=n.zIndex;t||void 0!==n.zIndex||(r=0);for(let t=i,s=e.length;t<s;t++){let i=e[t];i.opacity*=n.opacity,i.visible=i.visible&&n.visible,i.maxResolution=Math.min(i.maxResolution,n.maxResolution),i.minResolution=Math.max(i.minResolution,n.minResolution),i.minZoom=Math.max(i.minZoom,n.minZoom),i.maxZoom=Math.min(i.maxZoom,n.maxZoom),void 0!==n.extent&&(void 0!==i.extent?i.extent=(0,P.getIntersection)(i.extent,n.extent):i.extent=n.extent),void 0===i.zIndex&&(i.zIndex=r)}return e}getSourceState(){return"ready"}},tL={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"};function tD(t,e){if(!t.visible)return!1;let i=e.resolution;if(i<t.minResolution||i>=t.maxResolution)return!1;let n=e.zoom;return n>t.minZoom&&n<=t.maxZoom}t.s(["default",0,tL],412441);let tN=class extends tA{constructor(t){const e=Object.assign({},t);delete e.source,super(e),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,t.render&&(this.render=t.render),t.map&&this.setMap(t.map),this.addChangeListener(tS.SOURCE,this.handleSourcePropertyChange_);const i=t.source?t.source:null;this.setSource(i)}getLayersArray(t){return(t=t||[]).push(this),t}getLayerStatesArray(t){return(t=t||[]).push(this.getLayerState()),t}getSource(){return this.get(tS.SOURCE)||null}
1getRenderSource(){return this.getSource()}getSourceState(){let t=this.getSource();return t?t.getState():"undefined"}handleSourceChange_(){this.changed(),this.sourceReady_||"ready"!==this.getSource().getState()||(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&((0,R.unlistenByKey)(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;let t=this.getSource();t&&(this.sourceChangeKey_=(0,R.listen)(t,E.default.CHANGE,this.handleSourceChange_,this),"ready"===t.getState()&&(this.sourceReady_=!0,setTimeout(()=>{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null}isVisible(t){let e,i,n=this.getMapInternal();if(!t&&n&&(t=n.getView()),!(e=t instanceof g.default?{viewState:t.getState(),extent:t.calculateExtent()}:t).layerStatesArray&&n&&(e.layerStatesArray=n.getLayerGroup().getLayerStatesArray()),e.layerStatesArray){if(!(i=e.layerStatesArray.find(t=>t.layer===this)))return!1}else i=this.getLayerState();let r=this.getExtent();return tD(i,e.viewState)&&(!r||(0,P.intersects)(r,e.extent))}getAttributions(t){if(!this.isVisible(t))return[];let e=this.getSource()?.getAttributions();if(!e)return[];let i=e(t instanceof g.default?t.getViewStateAndExtent():t);return Array.isArray(i)||(i=[i]),i}render(t,e){let i=this.getRenderer();return i.prepareFrame(t)?(this.rendered=!0,i.renderFrame(t,e)):null}unrender(){this.rendered=!1}getDeclutter(){}renderDeclutter(t,e){}renderDeferred(t){let e=this.getRenderer();e&&e.renderDeferred(t)}setMapInternal(t){t||this.unrender(),this.set(tS.MAP,t)}getMapInternal(){return this.get(tS.MAP)}setMap(t){this.mapPrecomposeKey_&&((0,R.unlistenByKey)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&((0,R.unlistenByKey)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=(0,R.listen)(t,tL.PRECOMPOSE,this.handlePrecompose_,this),this.mapRenderKey_=(0,R.listen)(this,E.default.CHANGE,t.render,t),this.changed())}handlePrecompose_(t){let e=t.frameState.layerStatesArray,i=this.getLayerState(!1);(0,p.assert)(!e.some(t=>t.layer===i.layer),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),e.push(i)}setSource(t){this.set(tS.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}clearRenderer(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_)}disposeInternal(){this.clearRenderer(),this.setSource(null),super.disposeInternal()}};t.s(["default",0,tN,"inView",0,tD],379703);var tF=t.i(423507),tk=t.i(853420);function tz(t,e,i){let n=t[e];t[e]=t[i],t[i]=n}class tK{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(t){let e=this.data,i=[];if(!tY(t,e))return i;let n=this.toBBox,r=[];for(;e;){for(let s=0;s<e.children.length;s++){let o=e.children[s],a=e.leaf?n(o):o;tY(t,a)&&(e.leaf?i.push(o):tq(t,a)?this._all(o,i):r.push(o))}e=r.pop()}return i}collides(t){let e=this.data;if(!tY(t,e))return!1;let i=[];for(;e;){for(let n=0;n<e.children.length;n++){let r=e.children[n],s=e.leaf?this.toBBox(r):r;if(tY(t,s)){if(e.leaf||tq(t,s))return!0;i.push(r)}}e=i.pop()}return!1}load(t){if(!(t&&t.length))return this;if(t.length<this._minEntries){for(let e=0;e<t.length;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===e.height)this._splitRoot(this.data,e);else{if(this.data.height<e.height){let t=this.data;this.data=e,e=t}this._insert(e,this.data.height-e.height-1,!0)}else this.data=e;return this}insert(t){return t&&this._insert(t,this.data.height-1),this}clear(){return this.data=tZ([]),this}remove(t,e){let i,n,r;if(!t)return this;let s=this.data,o=this.toBBox(t),a=[],l=[];for(;s||a.length;){if(s||(s=a.pop(),n=a[a.length-1],i=l.pop(),r=!0),s.leaf){let i=function(t,e,
1i){if(!i)return e.indexOf(t);for(let n=0;n<e.length;n++)if(i(t,e[n]))return n;return -1}(t,s.children,e);if(-1!==i){s.children.splice(i,1),a.push(s),this._condense(a);break}}!r&&!s.leaf&&tq(s,o)?(a.push(s),l.push(i),i=0,n=s,s=s.children[0]):n?(i++,s=n.children[i],r=!1):s=null}return this}toBBox(t){return t}compareMinX(t,e){return t.minX-e.minX}compareMinY(t,e){return t.minY-e.minY}toJSON(){return this.data}fromJSON(t){return this.data=t,this}_all(t,e){let i=[];for(;t;)t.leaf?e.push(...t.children):i.push(...t.children),t=i.pop();return e}_build(t,e,i,n){let r,s=i-e+1,o=this._maxEntries;if(s<=o)return tV(r=tZ(t.slice(e,i+1)),this.toBBox),r;n||(n=Math.ceil(Math.log(s)/Math.log(o)),o=Math.ceil(s/Math.pow(o,n-1))),(r=tZ([])).leaf=!1,r.height=n;let a=Math.ceil(s/o),l=a*Math.ceil(Math.sqrt(o));tj(t,e,i,l,this.compareMinX);for(let s=e;s<=i;s+=l){let e=Math.min(s+l-1,i);tj(t,s,e,a,this.compareMinY);for(let i=s;i<=e;i+=a){let s=Math.min(i+a-1,e);r.children.push(this._build(t,i,s,n-1))}}return tV(r,this.toBBox),r}_chooseSubtree(t,e,i,n){for(;;){let o;if(n.push(e),e.leaf||n.length-1===i)break;let a=1/0,l=1/0;for(let i=0;i<e.children.length;i++){var r,s;let n=e.children[i],h=tX(n),u=(r=t,(Math.max((s=n).maxX,r.maxX)-Math.min(s.minX,r.minX))*(Math.max(s.maxY,r.maxY)-Math.min(s.minY,r.minY))-h);u<l?(l=u,a=h<a?h:a,o=n):u===l&&h<a&&(a=h,o=n)}e=o||e.children[0]}return e}_insert(t,e,i){let n=i?t:this.toBBox(t),r=[],s=this._chooseSubtree(n,this.data,e,r);for(s.children.push(t),tG(s,n);e>=0;)if(r[e].children.length>this._maxEntries)this._split(r,e),e--;else break;this._adjustParentBBoxes(n,r,e)}_split(t,e){let i=t[e],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);let s=this._chooseSplitIndex(i,r,n),o=tZ(i.children.splice(s,i.children.length-s));o.height=i.height,o.leaf=i.leaf,tV(i,this.toBBox),tV(o,this.toBBox),e?t[e-1].children.push(o):this._splitRoot(i,o)}_splitRoot(t,e){this.data=tZ([t,e]),this.data.height=t.height+1,this.data.leaf=!1,tV(this.data,this.toBBox)}_chooseSplitIndex(t,e,i){let n,r=1/0,s=1/0;for(let o=e;o<=i-e;o++){let e=tW(t,0,o,this.toBBox),a=tW(t,o,i,this.toBBox),l=function(t,e){let i=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY);return Math.max(0,Math.min(t.maxX,e.maxX)-i)*Math.max(0,Math.min(t.maxY,e.maxY)-n)}(e,a),h=tX(e)+tX(a);l<r?(r=l,n=o,s=h<s?h:s):l===r&&h<s&&(s=h,n=o)}return n||i-e}_chooseSplitAxis(t,e,i){let n=t.leaf?this.compareMinX:tU,r=t.leaf?this.compareMinY:tB;this._allDistMargin(t,e,i,n)<this._allDistMargin(t,e,i,r)&&t.children.sort(n)}_allDistMargin(t,e,i,n){t.children.sort(n);let r=this.toBBox,s=tW(t,0,e,r),o=tW(t,i-e,i,r),a=tH(s)+tH(o);for(let n=e;n<i-e;n++){let e=t.children[n];tG(s,t.leaf?r(e):e),a+=tH(s)}for(let n=i-e-1;n>=e;n--){let e=t.children[n];tG(o,t.leaf?r(e):e),a+=tH(o)}return a}_adjustParentBBoxes(t,e,i){for(let n=i;n>=0;n--)tG(e[n],t)}_condense(t){for(let e=t.length-1,i;e>=0;e--)0===t[e].children.length?e>0?(i=t[e-1].children).splice(i.indexOf(t[e]),1):this.clear():tV(t[e],this.toBBox)}}function tV(t,e){tW(t,0,t.children.length,e,t)}function tW(t,e,i,n,r){r||(r=tZ(null)),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s=e;s<i;s++){let e=t.children[s];tG(r,t.leaf?n(e):e)}return r}function tG(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function tU(t,e){return t.minX-e.minX}function tB(t,e){return t.minY-e.minY}function tX(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function tH(t){return t.maxX-t.minX+(t.maxY-t.minY)}function tq(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function tY(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function tZ(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function tj(t,e,i,n,r){let s=[e,i];for(;s.length;){if((i=s.pop())-(e=s.pop())<=n)continue;let o=e+Math.ceil((i-e)/n/2)*n;!function t(e,i,n=0,r=e.length-1,s=function(t,e){return t<e?-1:+(t>e)}){for(;r>n;){if(r-n>600){let o=r-n+1,a=i-n+1,l=Math.log(o),h=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*h*(o-h)/o)*(a-o/2<0?-1:1),d=Math.max(n,Math.floor(i-a*h/o+u)),c=Math.min(r,Math.floor(i+(o-a)*h/o+u));t(e,i,d,c,s)}let o=e[i],a=n,l=r;
1for(tz(e,n,i),s(e[r],o)>0&&tz(e,n,r);a<l;){for(tz(e,a,l),a++,l--;0>s(e[a],o);)a++;for(;s(e[l],o)>0;)l--}0===s(e[n],o)?tz(e,n,l):tz(e,++l,r),l<=i&&(n=l+1),i<=l&&(r=l-1)}}(t,o,e,i,r),s.push(e,o,o,i)}}t.s(["default",0,tK],436154);let t$=[NaN,NaN,NaN,0],tJ=/^rgba?\(\s*(\d+%?)\s+(\d+%?)\s+(\d+%?)(?:\s*\/\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,tQ=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,t0=/^rgba?\(\s*(\d+%)\s*,\s*(\d+%)\s*,\s*(\d+%)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,t1=/^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i;function t2(t,e){return t.endsWith("%")?Number(t.substring(0,t.length-1))/e:Number(t)}function t3(t){throw Error('failed to parse "'+t+'" as color')}function t5(t){return"string"==typeof t?t:eo(t)}let t4={},t6=0;function t8(t){if(4===t.length)return t;let e=t.slice();return e[3]=1,e}function t7(t){return t>.0031308?269.025*Math.pow(t,1/2.4)-14.025:3294.6*t}function t9(t){return t>.2068965?Math.pow(t,3):108/841*(t-4/29)}function et(t){return t>10.314724?Math.pow((t+14.025)/269.025,2.4):t/3294.6}function ee(t){return t>.0088564?Math.pow(t,1/3):t/(108/841)+4/29}function ei(t){let e=et(t[0]),i=et(t[1]),n=et(t[2]),r=ee(.222488403*e+.716873169*i+.06060791*n),s=500*(ee(.452247074*e+.399439023*i+.148375274*n)-r),o=200*(r-ee(.016863605*e+.117638439*i+.865350722*n)),a=180/Math.PI*Math.atan2(o,s);return[116*r-16,Math.sqrt(s*s+o*o),a<0?a+360:a,t[3]]}function en(t){let e=(t[0]+16)/116,i=t[1],n=t[2]*Math.PI/180,r=t9(e),s=t9(e+i/500*Math.cos(n)),o=t9(e-i/200*Math.sin(n)),a=t7(3.021973625*s-1.617392459*r-.404875592*o),l=t7(-.943766287*s+1.916279586*r+.027607165*o),h=t7(.069407491*s-.22898585*r+1.159737864*o);return[(0,tp.clamp)(a+.5|0,0,255),(0,tp.clamp)(l+.5|0,0,255),(0,tp.clamp)(h+.5|0,0,255),t[3]]}function er(t){if("none"===t)return t$;if(t4.hasOwnProperty(t))return t4[t];if(t6>=1024){let t=0;for(let e in t4)(3&t++)==0&&(delete t4[e],--t6)}let i=function t(i){if(i.toLowerCase().startsWith("rgb")){let t=i.match(tQ)||i.match(tJ)||i.match(t0);if(t){let e=t[4],i=100/255;return[(0,tp.clamp)(t2(t[1],i)+.5|0,0,255),(0,tp.clamp)(t2(t[2],i)+.5|0,0,255),(0,tp.clamp)(t2(t[3],i)+.5|0,0,255),void 0!==e?(0,tp.clamp)(t2(e,100),0,1):1]}t3(i)}if(i.startsWith("#")){if(t1.test(i)){let t=i.substring(1),e=t.length<=4?1:2,n=[0,0,0,255];for(let i=0,r=t.length;i<r;i+=e){let r=parseInt(t.substring(i,i+e),16);1===e&&(r+=r<<4),n[i/e]=r}return n[3]=n[3]/255,n}t3(i)}let n=(e||(e=(0,v.createCanvasContext2D)(1,1,void 0,{willReadFrequently:!0,desynchronized:!0})),e);n.fillStyle="#abcdef";let r=n.fillStyle;n.fillStyle=i,n.fillStyle===r&&(n.fillStyle="#fedcba",r=n.fillStyle,n.fillStyle=i,n.fillStyle===r&&t3(i));let s=n.fillStyle;if(s.startsWith("#")||s.startsWith("rgba"))return t(s);n.clearRect(0,0,1,1),n.fillRect(0,0,1,1);let o=Array.from(n.getImageData(0,0,1,1).data);return o[3]=(0,tp.toFixed)(o[3]/255,3),o}(t);for(let e of(4!==i.length&&t3(t),i))isNaN(e)&&t3(t);return t4[t]=i,++t6,i}function es(t){return Array.isArray(t)?t:er(t)}function eo(t){let e=t[0];e!=(0|e)&&(e=e+.5|0);let i=t[1];i!=(0|i)&&(i=i+.5|0);let n=t[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+e+","+i+","+n+","+(void 0===t[3]?1:Math.round(1e3*t[3])/1e3)+")"}function ea(t){return t[0]>0&&t[1]>0}function el(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}t.s(["NO_COLOR",0,t$,"asArray",0,es,"asString",0,t5,"fromString",0,er,"lchaToRgba",0,en,"rgbaToLcha",0,ei,"toString",0,eo,"withAlpha",0,t8],78451),t.s(["hasArea",0,ea,"scale",0,function(t,e,i){return void 0===i&&(i=[0,0]),i[0]=t[0]*e+.5|0,i[1]=t[1]*e+.5|0,i},"toSize",0,el],682554);let eh=0,eu=1<<eh++,ed=1<<eh++,ec=1<<eh++,eg=1<<eh++,ef=1<<eh++,e_=1<<eh++,ep=Math.pow(2,eh)-1,em={[eu]:"boolean",[ed]:"number",[ec]:"string",[eg]:"color",[ef]:"number[]",[e_]:"size"},ey=Object.keys(em).map(Number).sort(_.ascending);function ev(t){let e=[];for(let n of ey){var i;(t&(i=n))===i&&e.push(em[n])}return 0===e.length?"untyped":e.length<3?e.join(" or "):e.slice(0,-1).join(", ")+", or "+e[e.length-1]}function eE(t,e){return t===e}class eC{constructor(t,e){if(!(t in em))throw Error(`literal expressions must have a specific type, got ${ev(t)}`);this.type=t,this.value=e}}class ex{constructor(t,e,...i){this.type=t,this.operator=e,this.args=i}}function eR(t){return{variables:new Map,properties:new Map,featureId:!1,geometryType:!1,mCoordinate:!1,mapState:!1,inputVariables:t}}function ew(t,e,i){switch(typeof t){case"boolean":if(eE(e,ec))return new eC(ec,t?"true":"false");if((e&eu)!==eu)throw Error(`got a boolean, but expected ${ev(e)}`);return new eC(eu,t);case"number":if(eE(e,e_))return new eC(e_,el(t));if(eE(e,eu))return new eC(eu,!!t);if(eE(e,ec))return new eC(ec,t.toString());if((e&ed)!==ed)throw Error(`got a number, but expected ${ev(e)}`);return new eC(ed,t);case"string":if(eE(e,eg))return new eC(eg,er(t));if(eE(e,eu))return new eC(eu,!!t);if((e&ec)!==ec)throw Error(`got a string, but expected ${ev(e)}`);return new eC(ec,t)}if(!Array.isArray(t))throw Error("expression must be an array or a primitive value");if(0===t.length)throw Error("empty expression");if("string"==typeof t[0]){var n=t,r=e,s=i;let o=n[0],a=eI[o];if(!a)throw Error(`unknown operator: ${o}`);return a(n,r,s)}for(let e of t)if("number"!=typeof e)throw Error("expected an array of numbers");if(eE(e,e_)){if(2!==t.length)throw Error(`expected an array of two values for a size, got ${t.length}`);return new eC(e_,t)}if(eE(e,eg)){if(3===t.length)return new eC(eg,[...t,1]);if(4===t.length)return new eC(eg,t);throw Error(`expected an array of 3 or 4 values for a color, got ${t.length}`)}if((e&ef)!==ef)throw Error(`got an array of numbers, but expected ${ev(e)}`);return new eC(ef,t)}let eS={Get:"get",Var:"var",Concat:"concat",GeometryType:"geometry-type",LineMetric:"line-metric",Any:"any",All:"all",Not:"!",Resolution:"resolution",Zoom:"zoom",Time:"time",Equal:"==",NotEqual:"!=",GreaterThan:">",GreaterThanOrEqualTo:">
1=",LessThan:"<",LessThanOrEqualTo:"<=",Multiply:"*",Divide:"/",Add:"+",Subtract:"-",Clamp:"clamp",Mod:"%",Pow:"^",Abs:"abs",Floor:"floor",Ceil:"ceil",Round:"round",Sin:"sin",Cos:"cos",Atan:"atan",Sqrt:"sqrt",Match:"match",Between:"between",Interpolate:"interpolate",Coalesce:"coalesce",Case:"case",In:"in",Number:"number",String:"string",Array:"array",Color:"color",Id:"id",Band:"band",Palette:"palette",ToString:"to-string",Has:"has"},eI={[eS.Get]:eN(eP(1,1/0),eA),[eS.Var]:function(t,e,i){let n=t[1];if("string"!=typeof n)throw Error("expected a string argument for var operation");let r=e,s=i.inputVariables?.[n];if(void 0!==s){let t=ew(s,ep,i);if(!(t instanceof eC))throw Error(`style variables should only be literal values (no expressions!), variable name: ${n}`);let o=t.type;if("string"!=typeof s||!(r&eg)||r&ec?Array.isArray(s)&&2===s.length&&r&e_&&!(r&ef)&&(o=e_):o=eg,0==(r&=o))throw Error(`the type expected from the var operator (${ev(e)}) did not have any overlap with the type of the corresponding style variables (${ev(o)}), variable name: ${n}`)}if(i.variables.has(n)){let t=i.variables.get(n);if(0==(r&=t))throw Error(`a new type expected from the var operator (${ev(e)}) did not have any overlap with the previous type expected for it (${ev(t)}), variable name: ${n}`)}return i.variables.set(n,r),new ex(r,"var",new eC(ec,n))},[eS.Has]:eN(eP(1,1/0),eA),[eS.Id]:eN(function(t,e,i){i.featureId=!0},eb),[eS.Concat]:eN(eP(2,1/0),eO(ec)),[eS.GeometryType]:eN(function(t,e,i){i.geometryType=!0},eb),[eS.LineMetric]:eN(function(t,e,i){i.mCoordinate=!0},eb),[eS.Resolution]:eN(eM,eb),[eS.Zoom]:eN(eM,eb),[eS.Time]:eN(eM,eb),[eS.Any]:eN(eP(2,1/0),eO(eu)),[eS.All]:eN(eP(2,1/0),eO(eu)),[eS.Not]:eN(eP(1,1),eO(eu)),[eS.Equal]:eN(eP(2,2),eL()),[eS.NotEqual]:eN(eP(2,2),eL()),[eS.GreaterThan]:eN(eP(2,2),eO(ed)),[eS.GreaterThanOrEqualTo]:eN(eP(2,2),eO(ed)),[eS.LessThan]:eN(eP(2,2),eO(ed)),[eS.LessThanOrEqualTo]:eN(eP(2,2),eO(ed)),[eS.Multiply]:eN(eP(2,1/0),eT),[eS.Coalesce]:eN(eP(2,1/0),eT),[eS.Divide]:eN(eP(2,2),eO(ed)),[eS.Add]:eN(eP(2,1/0),eO(ed)),[eS.Subtract]:eN(eP(2,2),eO(ed)),[eS.Clamp]:eN(eP(3,3),eO(ed)),[eS.Mod]:eN(eP(2,2),eO(ed)),[eS.Pow]:eN(eP(2,2),eO(ed)),[eS.Abs]:eN(eP(1,1),eO(ed)),[eS.Floor]:eN(eP(1,1),eO(ed)),[eS.Ceil]:eN(eP(1,1),eO(ed)),[eS.Round]:eN(eP(1,1),eO(ed)),[eS.Sin]:eN(eP(1,1),eO(ed)),[eS.Cos]:eN(eP(1,1),eO(ed)),[eS.Atan]:eN(eP(1,2),eO(ed)),[eS.Sqrt]:eN(eP(1,1),eO(ed)),[eS.Match]:eN(eP(4,1/0),eD,function(t,e,i){let n=t.length-1,r=ew(t[t.length-1],e,i),s=ec|ed|eu,o=Array(n-2);for(let e=0;e<n-2;e+=2){try{let n=ew(t[e+2],s,i);s&=n.type}catch(t){throw Error(`failed to parse argument ${e+1} of match expression: ${t.message}`)}if(0===s)throw Error("no common type was found among the arguments of match expression")}for(let e=0;e<n-2;e+=2){try{let n=ew(t[e+2],s,i);o[e]=n}catch(t){throw Error(`failed to parse argument ${e+1} of match expression: ${t.message}`)}try{let n=ew(t[e+3],r.type,i);o[e+1]=n}catch(t){throw Error(`failed to parse argument ${e+2} of match expression: ${t.message}`)}}return[ew(t[1],s,i),...o,r]}),[eS.Between]:eN(eP(3,3),eO(ed)),[eS.Interpolate]:eN(eP(6,1/0),eD,function(t,e,i){let n,r,s=t[1];switch(s[0]){case"linear":n=1;break;case"exponential":let o=s[1];if("number"!=typeof o||o<=0)throw Error(`expected a number base for exponential interpolation, got ${JSON.stringify(o)} instead`);n=o;break;default:throw Error(`invalid interpolation type: ${JSON.stringify(s)}`)}let a=new eC(ed,n);try{r=ew(t[2],ed,i)}catch(t){throw Error(`failed to parse argument 1 in interpolate expression: ${t.message}`)}let l=Array(t.length-3);for(let n=0;n<l.length;n+=2){try{let e=ew(t[n+3],ed,i);l[n]=e}catch(t){throw Error(`failed to parse argument ${n+2} for interpolate expression: ${t.message}`)}try{let r=ew(t[n+4],e,i);l[n+1]=r}catch(t){throw Error(`failed to parse argument ${n+3} for interpolate expression: ${t.message}`)}}return[a,r,...l]}),[eS.Case]:eN(eP(3,1/0),function(t,e,i){let n=t[0],r=t.length-1;if(r%2==0)throw Error(`expected an odd number of arguments for ${n}, got ${r} instead`)},function(t,e,i){let n=ew(t[t.length-1],e,i),r=Array(t.length-1);for(let e=0;e<r.length-1;e+=2){try{let n=ew(t[e+1],eu,i);r[e]=n}catch(t){throw Error(`failed to parse argument ${e} of case expression: ${t.message}`)}try{let s=ew(t[e+2],n.type,i);r[e+1]=s}catch(t){throw Error(`failed to parse argument ${e+1} of case expression: ${t.message}`)}}return r[r.length-1]=n,r}
1),[eS.In]:eN(eP(2,2),function(t,e,i){let n,r=t[2];if(!Array.isArray(r))throw Error('the second argument for the "in" operator must be an array');if("literal"===r[0]){if(!Array.isArray(r=r[1]))throw Error('failed to parse "in" expression: the literal operator must be followed by an array')}else if("string"==typeof r[0])throw Error('for the "in" operator, a string array should be wrapped in a "literal" operator to disambiguate from expressions');n="string"==typeof r[0]?ec:ed;let s=Array(r.length);for(let t=0;t<s.length;t++)try{let e=ew(r[t],n,i);s[t]=e}catch(e){throw Error(`failed to parse haystack item ${t} for "in" expression: ${e.message}`)}return[ew(t[1],n,i),...s]}),[eS.Number]:eN(eP(1,1/0),eO(ep)),[eS.String]:eN(eP(1,1/0),eO(ep)),[eS.Array]:eN(eP(1,1/0),eO(ed)),[eS.Color]:eN(eP(1,4),eO(ed)),[eS.Band]:eN(eP(1,3),eO(ed)),[eS.Palette]:eN(eP(2,2),function(t,e,i){let n;try{n=ew(t[1],ed,i)}catch(t){throw Error(`failed to parse first argument in palette expression: ${t.message}`)}let r=t[2];if(!Array.isArray(r))throw Error("the second argument of palette must be an array");let s=Array(r.length);for(let t=0;t<s.length;t++){let e;try{e=ew(r[t],eg,i)}catch(e){throw Error(`failed to parse color at index ${t} in palette expression: ${e.message}`)}if(!(e instanceof eC))throw Error(`the palette color at index ${t} must be a literal value`);s[t]=e}return[n,...s]}),[eS.ToString]:eN(eP(1,1),eO(eu|ed|ec|eg))};function eA(t,e,i){let n=t.length-1,r=Array(n);for(let s=0;s<n;++s){let n=t[s+1];switch(typeof n){case"number":r[s]=new eC(ed,n);break;case"string":r[s]=new eC(ec,n);break;default:throw Error(`expected a string key or numeric array index for a get operation, got ${n}`)}0===s&&i.properties.set(String(n),e)}return r}function eM(t,e,i){i.mapState=!0}function eb(t,e,i){let n=t[0];if(1!==t.length)throw Error(`expected no arguments for ${n} operation`);return[]}function eP(t,e){return function(i,n,r){let s=i[0],o=i.length-1;if(t===e){if(o!==t)throw Error(`expected ${t} argument${1===t?"":"s"} for ${s}, got ${o}`)}else if(o<t||o>e){let i=e===1/0?`${t} or more`:`${t} to ${e}`;throw Error(`expected ${i} arguments for ${s}, got ${o}`)}}}function eT(t,e,i){let n=t.length-1,r=Array(n);for(let s=0;s<n;++s){let n=ew(t[s+1],e,i);r[s]=n}return r}function eO(t){return function(e,i,n){let r=e.length-1,s=Array(r);for(let i=0;i<r;++i){let r=ew(e[i+1],t,n);s[i]=r}return s}}function eL(){return function(t,e,i){let n=t[0],r=t.length-1,s=Array(r),o=ep;for(let e=0;e<r;++e){let n=ew(t[e+1],o,i);o&=n.type}if(0===o)throw Error(`no common type was found among the arguments of ${n}`);for(let e=0;e<r;++e){let n=ew(t[e+1],o,i);s[e]=n}return s}}function eD(t,e,i){let n=t[0],r=t.length-1;if(r%2==1)throw Error(`expected an even number of arguments for operation ${n}, got ${r} instead`)}function eN(...t){return function(e,i,n){let r,s=e[0];for(let s=0;s<t.length;s++){let o=t[s](e,i,n);if(s==t.length-1){if(!o)throw Error("expected last argument validator to return the parsed args");r=o}}return new ex(i,s,...r)}}function eF(t){if(!t)return"";let e=t.getType();switch(e){case"Point":case"LineString":case"Polygon":return e;case"MultiPoint":case"MultiLineString":case"MultiPolygon":return e.substring(5);case"Circle":return"Polygon";
1case"GeometryCollection":return eF(t.getGeometries()[0]);default:return""}}function ek(){return{variables:{},properties:{},resolution:NaN,featureId:null,geometryType:""}}function ez(t,e,i){return function t(e,i){if(e instanceof eC){if(e.type===eg&&"string"==typeof e.value){let t=er(e.value);return function(){return t}}return function(){return e.value}}let n=e.operator;switch(n){case eS.Number:case eS.String:case eS.Coalesce:var r=e,s=i;let o=r.operator,a=r.args.length,l=Array(a);for(let e=0;e<a;++e)l[e]=t(r.args[e],s);switch(o){case eS.Coalesce:return t=>{for(let e=0;e<a;++e){let i=l[e](t);if(null!=i)return i}throw Error("Expected one of the values to be non-null")};case eS.Number:case eS.String:return t=>{for(let e=0;e<a;++e){let i=l[e](t);if(typeof i===o)return i}throw Error(`Expected one of the values to be a ${o}`)};default:throw Error(`Unsupported assertion operator ${o}`)}case eS.Get:case eS.Var:case eS.Has:var h=e;let u=h.args[0].value;switch(h.operator){case eS.Get:return t=>{let e=h.args,i=t.properties[u];for(let t=1,n=e.length;t<n;++t)i=i[e[t].value];return i};case eS.Var:return t=>t.variables[u];case eS.Has:return t=>{let e=h.args;if(!(u in t.properties))return!1;let i=t.properties[u];for(let t=1,n=e.length;t<n;++t){let n=e[t].value;if(!i||!Object.hasOwn(i,n))return!1;i=i[n]}return!0};default:throw Error(`Unsupported accessor operator ${h.operator}`)}case eS.Id:return t=>t.featureId;case eS.GeometryType:return t=>t.geometryType;case eS.Concat:{let n=e.args.map(e=>t(e,i));return t=>"".concat(...n.map(e=>e(t).toString()))}case eS.Resolution:return t=>t.resolution;case eS.Any:case eS.All:case eS.Between:case eS.In:case eS.Not:var d=e,c=i;let g=d.operator,f=d.args.length,_=Array(f);for(let e=0;e<f;++e)_[e]=t(d.args[e],c);switch(g){case eS.Any:return t=>{for(let e=0;e<f;++e)if(_[e](t))return!0;return!1};case eS.All:return t=>{for(let e=0;e<f;++e)if(!_[e](t))return!1;return!0};case eS.Between:return t=>{let e=_[0](t),i=_[1](t),n=_[2](t);return e>=i&&e<=n};case eS.In:return t=>{let e=_[0](t);for(let i=1;i<f;++i)if(e===_[i](t))return!0;return!1};case eS.Not:return t=>!_[0](t);default:throw Error(`Unsupported logical operator ${g}`)}case eS.Equal:case eS.NotEqual:case eS.LessThan:case eS.LessThanOrEqualTo:case eS.GreaterThan:case eS.GreaterThanOrEqualTo:var p=e,m=i;let y=p.operator,v=t(p.args[0],m),E=t(p.args[1],m);switch(y){case eS.Equal:return t=>v(t)===E(t);case eS.NotEqual:return t=>v(t)!==E(t);case eS.LessThan:return t=>v(t)<E(t);case eS.LessThanOrEqualTo:return t=>v(t)<=E(t);case eS.GreaterThan:return t=>v(t)>E(t);case eS.GreaterThanOrEqualTo:return t=>v(t)>=E(t);default:throw Error(`Unsupported comparison operator ${y}`)}case eS.Multiply:case eS.Divide:case eS.Add:case eS.Subtract:case eS.Clamp:case eS.Mod:case eS.Pow:case eS.Abs:case eS.Floor:case eS.Ceil:case eS.Round:case eS.Sin:case eS.Cos:case eS.Atan:case eS.Sqrt:var C=e,x=i;let R=C.operator,w=C.args.length,S=Array(w);for(let e=0;e<w;++e)S[e]=t(C.args[e],x);switch(R){case eS.Multiply:return t=>{let e=1;for(let i=0;i<w;++i)e*=S[i](t);return e};case eS.Divide:return t=>S[0](t)/S[1](t);case eS.Add:return t=>{let e=0;for(let i=0;i<w;++i)e+=S[i](t);return e};case eS.Subtract:return t=>S[0](t)-S[1](t);case eS.Clamp:return t=>{let e=S[0](t),i=S[1](t);if(e<i)return i;let n=S[2](t);return e>n?n:e};case eS.Mod:return t=>S[0](t)%S[1](t);case eS.Pow:return t=>Math.pow(S[0](t),S[1](t));case eS.Abs:return t=>Math.abs(S[0](t));case eS.Floor:return t=>Math.floor(S[0](t));case eS.Ceil:return t=>Math.ceil(S[0](t));case eS.Round:return t=>Math.round(S[0](t));case eS.Sin:return t=>Math.sin(S[0](t));case eS.Cos:return t=>Math.cos(S[0](t));case eS.Atan:if(2===w)return t=>Math.atan2(S[0](t),S[1](t));return t=>Math.atan(S[0](t));case eS.Sqrt:return t=>Math.sqrt(S[0](t));default:throw Error(`Unsupported numeric operator ${R}`)}case eS.Case:var I=e,A=i;let M=I.args.length,b=Array(M);for(let e=0;e<M;++e)b[e]=t(I.args[e],A);return t=>{for(let e=0;e<M-1;e+=2)if(b[e](t))return b[e+1](t);return b[M-1](t)};case eS.Match:var P=e,T=i;let O=P.args.length,L=Array(O);for(let e=0;e<O;++e)L[e]=t(P.args[e],T);return t=>{let e=L[0](t);for(let i=1;i<O-1;i+=2)if(e===L[i](t))return L[i+1](t);return L[O-1](t)};case eS.Interpolate:var D=e,N=i;let F=D.args.length,k=Array(F);for(let e=0;e<F;++e)k[e]=t(D.args[e],N);return t=>{let e,i,n=k[0](t),r=k[1](t);for(let s=2;s<F;s+=2){let o=k[s](t),a=k[s+1](t),l=Array.isArray(a);if(l&&(a=t8(a)),o>=r){if(2===s)return a;
1if(l)return function(t,e,i,n,r,s){if(0==r-i)return n;let o=ei(n),a=ei(s),l=a[2]-o[2];return l>180?l-=360:l<-180&&(l+=360),en([eK(t,e,i,o[0],r,a[0]),eK(t,e,i,o[1],r,a[1]),o[2]+eK(t,e,i,0,r,l),eK(t,e,i,n[3],r,s[3])])}(n,r,e,i,o,a);return eK(n,r,e,i,o,a)}e=o,i=a}return i};case eS.ToString:var z=e,K=i;let V=z.operator,W=z.args.length,G=Array(W);for(let e=0;e<W;++e)G[e]=t(z.args[e],K);if(V===eS.ToString)return t=>{let e=G[0](t);return z.args[0].type===eg?eo(e):e.toString()};throw Error(`Unsupported convert operator ${V}`);default:throw Error(`Unsupported operator ${n}`)}}(ew(t,e,i),i)}function eK(t,e,i,n,r,s){let o=r-i;if(0===o)return n;let a=e-i;return n+(1===t?a/o:(Math.pow(t,a)-1)/(Math.pow(t,o)-1))*(s-n)}t.s(["BooleanType",0,eu,"CallExpression",0,ex,"ColorType",0,eg,"LiteralExpression",0,eC,"NumberArrayType",0,ef,"NumberType",0,ed,"Ops",0,eS,"SizeType",0,e_,"StringType",0,ec,"computeGeometryType",0,eF,"isType",0,eE,"newParsingContext",0,eR,"parse",0,ew,"typeName",0,ev],19816);let eV={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};t.s(["default",0,eV],493021);var eW=t.i(675192);class eG extends eW.default{constructor(t,e,i,n){super(),this.extent=t,this.pixelRatio_=i,this.resolution=e,this.state="function"==typeof n?eV.IDLE:n,this.image_=null,this.loader="function"==typeof n?n:null}changed(){this.dispatchEvent(E.default.CHANGE)}getExtent(){return this.extent}getImage(){return this.image_}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){if(this.state==eV.IDLE&&this.loader){this.state=eV.LOADING,this.changed();let t=this.getResolution(),e=Array.isArray(t)?t[0]:t;(0,C.toPromise)(()=>this.loader(this.getExtent(),e,this.getPixelRatio())).then(t=>{"image"in t&&(this.image_=t.image),"extent"in t&&(this.extent=t.extent),"resolution"in t&&(this.resolution=t.resolution),"pixelRatio"in t&&(this.pixelRatio_=t.pixelRatio),(t instanceof HTMLImageElement||T.CREATE_IMAGE_BITMAP&&t instanceof ImageBitmap||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement)&&(this.image_=t),this.state=eV.LOADED}).catch(t=>{this.state=eV.ERROR,console.error(t)}).finally(()=>this.changed())}}setImage(t){this.image_=t}setResolution(t){this.resolution=t}}function eU(t,e){return e&&(t.src=e),t.src&&T.IMAGE_DECODE?new Promise((e,i)=>t.decode().then(()=>e(t)).catch(n=>t.complete&&t.width?e(t):i(n))):new Promise((e,i)=>{function n(){s(),e(t)}function r(){s(),i(Error("Image load error"))}function s(){t.removeEventListener("load",n),t.removeEventListener("error",r)}t.addEventListener("load",n),t.addEventListener("error",r)})}t.s(["decode",0,function(t,e){return e&&(t.src=e),t.src&&T.IMAGE_DECODE&&T.CREATE_IMAGE_BITMAP?t.decode().then(()=>createImageBitmap(t)).catch(e=>{if(t.complete&&t.width)return t;throw e}):eU(t)},"decodeFallback",0,eU,"default",0,eG,"listenImage",0,function(t,e,i){let n=!0,r=!1,s=!1,o=[(0,R.listenOnce)(t,E.default.LOAD,function(){s=!0,r||e()})];return t.src&&T.IMAGE_DECODE?(r=!0,t.decode().then(function(){n&&e()}).catch(function(t){n&&(s?e():i())})):o.push((0,R.listenOnce)(t,E.default.ERROR,i)),function(){n=!1,o.forEach(R.unlistenByKey)}}],162442);var eB=eW;function eX(t,e){return t+":"+(e?es(e):"null")}let eH=new class{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=1024}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(let e in this.cache_){let i=this.cache_[e];(3&t++)==0&&!i.hasListener()&&(delete this.cache_[e],delete this.patternCache_[e],--this.cacheSize_)}}}get(t,e){let i=eX(t,e);return i in this.cache_?this.cache_[i]:null}getPattern(t,e){let i=eX(t,e);return i in this.patternCache_?this.patternCache_[i]:null}set(t,e,i,n){let r=eX(t,e),s=r in this.cache_;this.cache_[r]=i,n&&(i.getImageState()===eV.IDLE&&i.load(),i.getImageState()===eV.LOADING?i.ready().then(()=>{this.patternCache_[r]=(0,v.getSharedCanvasContext2D)().createPattern(i.getImage(1),"repeat")}):this.patternCache_[r]=(0,v.getSharedCanvasContext2D)().createPattern(i.getImage(1),"repeat")),!s&&++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}},eq=null;class eY extends eB.default{constructor(t,e,i,n,r){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=i?.crossOrigin,this.referrerPolicy_=i?.referrerPolicy,this.canvas_={},this.color_=r,this.imageState_=void 0===n?eV.IDLE:n,this.size_=t&&t.width&&t.height?[t.width,t.height]:null,this.src_=e,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_),void 0!==this.referrerPolicy_&&(this.image_.referrerPolicy=this.referrerPolicy_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===eV.LOADED){eq||(eq=(0,v.createCanvasContext2D)(1,1,void 0,{willReadFrequently:!0}
1)),eq.drawImage(this.image_,0,0);try{eq.getImageData(0,0,1,1),this.tainted_=!1}catch{eq=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(E.default.CHANGE)}handleImageError_(){this.imageState_=eV.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=eV.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(t){return this.image_||this.initializeImage_(),this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_}setImage(t){this.image_=t}getPixelRatio(t){return this.replaceColor_(t),this.canvas_[t]?t:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){let t=this.size_[0],e=this.size_[1],i=(0,v.createCanvasContext2D)(t,e);i.fillRect(0,0,t,e),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===eV.IDLE){this.image_||this.initializeImage_(),this.imageState_=eV.LOADING;try{void 0!==this.src_&&(this.image_.src=this.src_)}catch{this.handleImageError_()}this.image_ instanceof HTMLImageElement&&eU(this.image_,this.src_).then(t=>{this.image_=t,this.handleImageLoad_()}).catch(this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==eV.LOADED)return;let e=this.image_,i=(0,v.createCanvasContext2D)(Math.ceil(e.width*t),Math.ceil(e.height*t)),n=i.canvas;i.scale(t,t),i.drawImage(e,0,0),i.globalCompositeOperation="multiply",i.fillStyle=t5(this.color_),i.fillRect(0,0,n.width/t,n.height/t),i.globalCompositeOperation="destination-in",i.drawImage(e,0,0),this.canvas_[t]=n}ready(){return this.ready_||(this.ready_=new Promise(t=>{if(this.imageState_===eV.LOADED||this.imageState_===eV.ERROR)t();else{let e=()=>{(this.imageState_===eV.LOADED||this.imageState_===eV.ERROR)&&(this.removeEventListener(E.default.CHANGE,e),t())};this.addEventListener(E.default.CHANGE,e)}})),this.ready_}}function eZ(t,e,i,n,r,s){let o=void 0===e?void 0:eH.get(e,r);return o||(o=new eY(t,t&&"src"in t?t.src||void 0:e,i,n,r),eH.set(e,r,o,s)),s&&o&&!eH.getPattern(e,r)&&eH.set(e,r,o,s),o}function ej(t){return t?Array.isArray(t)?eo(t):"object"==typeof t&&"src"in t?function(t){if(!t.offset||!t.size)return eH.getPattern(t.src,t.color);let e=t.src+":"+t.offset,i=eH.getPattern(e,t.color);if(i)return i;let n=eH.get(t.src,null);if(n.getImageState()!==eV.LOADED)return null;let r=(0,v.createCanvasContext2D)(t.size[0],t.size[1]);return r.drawImage(n.getImage(1),t.offset[0],t.offset[1],t.size[0],t.size[1],0,0,t.size[0],t.size[1]),eZ(r.canvas,e,void 0,eV.LOADED,t.color,!0),eH.getPattern(e,t.color)}(t):t:null}let e$="#000",eJ="round",eQ="round",e0=new u.default,e1=class t{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=el(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){let e=this.getScale();return new t({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return(0,tR.abstract)()}getImage(t){return(0,tR.abstract)()}getHitDetectionImage(){return(0,tR.abstract)()}getPixelRatio(t){return 1}getImageState(){return(0,tR.abstract)()}getImageSize(){return(0,tR.abstract)()}getOrigin(){return(0,tR.abstract)()}getSize(){return(0,tR.abstract)()}setDisplacement(t){this.displacement_=t}setOpacity(t){this.opacity_=t}setRotateWithView(t){this.rotateWithView_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=el(t)}listenImageChange(t){(0,tR.abstract)()}load(){(0,tR.abstract)()}unlistenImageChange(t){(0,tR.abstract)()}ready(){return Promise.resolve()}},e2=class t extends e1{constructor(t){super({opacity:1,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,displacement:void 0!==t.displacement?t.dis
1placement:[0,0],declutterMode:t.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=void 0!==t.fill?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius=t.radius,this.radius2_=t.radius2,this.angle_=void 0!==t.angle?t.angle:0,this.stroke_=void 0!==t.stroke?t.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?eV.LOADING:eV.LOADED,this.imageState_===eV.LOADING&&this.ready().then(()=>this.imageState_=eV.LOADED),this.render()}clone(){let e=this.getScale(),i=new t({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(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return i.setOpacity(this.getOpacity()),i}getAnchor(){let t=this.size_,e=this.getDisplacement(),i=this.getScaleArray();return[t[0]/2-e[0]/i[0],t[1]/2+e[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(t){this.fill_=t,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(t){let e=this.fill_?.getKey(),i=`${t},${this.angle_},${this.radius},${this.radius2_},${this.points_},${e}`+Object.values(this.renderOptions_).join(","),n=eH.get(i,null)?.getImage(1);if(!n){let e=this.renderOptions_,r=Math.ceil(e.size*t),s=(0,v.createCanvasContext2D)(r,r);this.draw_(e,s,t);let o=new eY(n=s.canvas,void 0,null,eV.LOADED,null);eH.set(i,null,o),createImageBitmap(n).then(t=>{o.setImage(t)})}return n}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}setRadius(t){this.radius!==t&&(this.radius=t,this.render())}getRadius2(){return this.radius2_}setRadius2(t){this.radius2_!==t&&(this.radius2_=t,this.render())}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t,this.render()}listenImageChange(t){}load(){}unlistenImageChange(t){}calculateLineJoinSize_(t,e,i){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;let n=this.radius,r=void 0===this.radius2_?n:this.radius2_;if(n<r){let t=n;n=r,r=t}let s=2*Math.PI/(void 0===this.radius2_?this.points_:2*this.points_),o=r*Math.sin(s),a=n-Math.sqrt(r*r-o*o),l=Math.sqrt(o*o+a*a),h=l/o;if("miter"===t&&h<=i)return h*e;let u=e/2/h,d=e/2*(a/l),c=Math.sqrt((n+u)*(n+u)+d*d)-n;if(void 0===this.radius2_||"bevel"===t)return 2*c;let g=n*Math.sin(s),f=r-Math.sqrt(n*n-g*g),_=Math.sqrt(g*g+f*f)/g;return _<=i?2*Math.max(c,_*e/2-r-n):2*c}createRenderOptions(){let t,e=eJ,i=eQ,n=0,r=null,s=0,o=0;this.stroke_&&(t=ej(this.stroke_.getColor()??"#000"),o=this.stroke_.getWidth()??1,r=this.stroke_.getLineDash(),s=this.stroke_.getLineDashOffset()??0,i=this.stroke_.getLineJoin()??eQ,e=this.stroke_.getLineCap()??eJ,n=this.stroke_.getMiterLimit()??10);let a=this.calculateLineJoinSize_(i,o,n);return{strokeStyle:t,strokeWidth:o,size:Math.ceil(2*Math.max(this.radius,this.radius2_||0)+a),lineCap:e,lineDash:r,lineDashOffset:s,lineJoin:i,miterLimit:n}}render(){this.renderOptions_=this.createRenderOptions();let t=this.renderOptions_.size;this.hitDetectionCanvas_=null,this.size_=[t,t]}draw_(t,e,i){if(e.scale(i,i),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){let t=this.fill_.getColor();null===t&&(t=e$),e.fillStyle=ej(t),e.fill()}t.strokeStyle&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())}createHitDetectionCanvas_(t){let e;if(this.fill_){let i=this.fill_.getColor(),n=0;"string"==typeof i&&(i=es(i)),null===i?n=1:Array.isArray(i)&&(n=4===i.length?i[3]:1),0===n&&(e=(0,v.createCanvasContext2D)(t.size,t.size),this.drawHitDetectionCanvas_(t,e))}return e?e.canvas:this.getImage(1)}createPath_(t){let e=this.points_,i=this.radius;if(e===1/0)t.arc(0,0,i,0,2*Math.PI);else{let n=void 0===this.radius2_?i:this.radius2_;void 0!==this.radius2_&&(e*=2);let r=this.angle_-Math.PI/2,s=2*Math.PI/e;for(let o=0;o<e;o++){let e=r+o*s,a=o%2==0?i:n;t.lineTo(a*Math.cos(e),a*Math.sin(e))}t.closePath()}}drawHitDetectionCanvas_(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=e$,e.fill(),t.strokeStyle&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())}ready(){return this.fill_?this.fill_.ready():Promise.resolve()}},e3=class t extends e2{constructor(t){super({points:1/0,fill:(t=t||{radius:5}).fill,radius:t.radius,stroke:t.stroke,scale:void 0!==t.scale?t.scale:1,rotation:void 0!==t.rotation?t.rotation:0,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,displacement:void 0!==t.displacement?t.dis
1placement:[0,0],declutterMode:t.declutterMode})}clone(){let e=this.getScale(),i=new t({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return i.setOpacity(this.getOpacity()),i}},e5=class t{constructor(t){t=t||{},this.patternImage_=null,this.color_=null,void 0!==t.color&&this.setColor(t.color)}clone(){let e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0})}getColor(){return this.color_}setColor(t){if(null!==t&&"object"==typeof t&&"src"in t){let e=eZ(null,t.src,{crossOrigin:"anonymous"},void 0,t.offset?null:t.color?t.color:null,!(t.offset&&t.size));e.ready().then(()=>{this.patternImage_=null}),e.getImageState()===eV.IDLE&&e.load(),e.getImageState()===eV.LOADING&&(this.patternImage_=e)}this.color_=t}getKey(){let t=this.getColor();return t?t instanceof CanvasPattern||t instanceof CanvasGradient?(0,tR.getUid)(t):"object"==typeof t&&"src"in t?t.src+":"+t.offset:es(t).toString():""}loading(){return!!this.patternImage_}ready(){return this.patternImage_?this.patternImage_.ready():Promise.resolve()}};function e4(t,e,i,n){return void 0!==i&&void 0!==n?[i/t,n/e]:void 0!==i?i/t:void 0!==n?n/e:1}let e6=class t extends e1{constructor(t){let e;const i=void 0!==(t=t||{}).opacity?t.opacity:1,n=void 0!==t.rotation?t.rotation:0,r=void 0!==t.scale?t.scale:1,s=void 0!==t.rotateWithView&&t.rotateWithView;super({opacity:i,rotation:n,scale:r,displacement:void 0!==t.displacement?t.displacement:[0,0],rotateWithView:s,declutterMode:t.declutterMode}),this.anchor_=void 0!==t.anchor?t.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.crossOrigin_=void 0!==t.crossOrigin?t.crossOrigin:null,this.referrerPolicy_=t.referrerPolicy;const o=void 0!==t.img?t.img:null;let a=t.src;if((0,p.assert)(!(void 0!==a&&o),"`image` and `src` cannot be provided at the same time"),(void 0===a||0===a.length)&&o&&(a=o.src||(0,tR.getUid)(o)),(0,p.assert)(void 0!==a&&a.length>0,"A defined and non-empty `src` or `image` must be provided"),(0,p.assert)(void 0===t.width&&void 0===t.height||void 0===t.scale,"`width` or `height` cannot be provided together with `scale`"),void 0!==t.src?e=eV.IDLE:void 0!==o&&(e="complete"in o?o.complete?o.src?eV.LOADED:eV.IDLE:eV.LOADING:eV.LOADED),this.color_=void 0!==t.color?es(t.color):null,this.iconImage_=eZ(o,a,{crossOrigin:this.crossOrigin_,referrerPolicy:this.referrerPolicy_},e,this.color_),this.offset_=void 0!==t.offset?t.offset:[0,0],this.offsetOrigin_=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==t.size?t.size:null,this.initialOptions_,void 0!==t.width||void 0!==t.height){let e,i;if(t.size)[e,i]=t.size;else{const n=this.getImage(1);if(n.width&&n.height)e=n.width,i=n.height;else if(n instanceof HTMLImageElement){this.initialOptions_=t;const e=()=>{if(this.unlistenImageChange(e),!this.initialOptions_)return;let i=this.iconImage_.getSize();this.setScale(e4(i[0],i[1],t.width,t.height))};this.listenImageChange(e);return}}void 0!==e&&this.setScale(e4(e,i,t.width,t.height))}}clone(){let e,i,n;return this.initialOptions_?(i=this.initialOptions_.width,n=this.initialOptions_.height):e=Array.isArray(e=this.getScale())?e.slice():e,new t({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_,referrerPolicy:this.referrerPolicy_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:e,width:i,height:n,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;let e=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!e)return null;t=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(t[0]*=e[0]),"fraction"==this.anchorYUnits_&&(t[1]*=e[1])}if("top-left"!=this.anchorOrigin_){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),("top-right"==this.anchorOrigin_||"bottom-right"==this.anchorOrigin_)&&(t[0]=-t[0]+e[0]),("bottom-left"==this.anchorOrigin_||"bottom-right"==this.anchorOrigin_)&&(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}let e=this.getDisplacement(),i=this.getScaleArray();return[t[0]-e[0]/i[0],t[1]+e[1]/i[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}setColor(t){let e=t?es(t):null;if(this.color_===e||this.color_&&e&&this.color_.length===e.length&&this.color_.every((t,i)=>t===e[i]))return;this.color_=e;let i=this.getSrc(),n=void 0!==i?null:this.getHitDetectionImage(),r=void 0!==i?eV.IDLE:this.iconImage_.getImageState();this.iconImage_=eZ(n,i,{crossOrigin:this.crossOrigin_,referrerPolicy:this.referrerPolicy_},r,this.color_)}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if("top-left"!=this.offsetOrigin_){let e=this.getSize(),i=this.iconImage_.getSize();if(!e||!i)return null;t=t.slice(),("top-right"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(t[0]=i[0]-e[0]-t[0]),("bottom-left"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(t[1]=i[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}setSrc(t){this.iconImage_=eZ(null,t,{crossOrigin:this.crossOrigin_,referrerPolicy:this.referrerPolicy_},eV.IDLE,this.color_)}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){let t=this.getScaleArray();return this.size_?this.size_[0]*t[0]:this.iconImage_.getImageState()==eV.LOADED?this.iconImage_.getSize()[0]*t[0]:void 0}getHeight(){let t=this.getScaleArray();return this.size_?this.size_[1]*t[1]:this.iconImage_.getImageState()==eV.LOADED?this.iconImage_.getSize()[1]*t[1]:void 0}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(E.default.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(E.default.CHANGE,t)}ready(){return this.iconImage_.ready()}},e8=class t{constructor(t){t=t||{},this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.offset_=t.offset,this.width_=t.width}clone(){let e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),offset:this.getOffset(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getOffset(){return this.offset_}getWidth(){return this.width_}setColor(t){this.color_=t}setLineCap(t){this.lineCap_=t}setLineDash(t){this.lineDash_=t}setLineDashOffset(t){this.lineDashOffset_=t}setLineJoin(t){this.lineJoin_=t}setMiterLimit(t){this.miterLimit_=t}setOffset(t){this.offset_=t}setWidth(t){this.width_=t}};class e7{constructor(t){t=t||{},this.geometry_=null,this.geometryFunction_=ie,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.hitDetectionRenderer_=void 0!==t.hitDetectionRenderer?t.hitDetectionRenderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex}clone(){let t=this.getGeometry();return t&&"object"==typeof t&&(t=t.clone()),new e7({geometry:t??void 0,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer()??void 0,stroke:this.getStroke()?this.get
vendor: 4,245 bytes, line 1
1Stroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(t){this.renderer_=t}setHitDetectionRenderer(t){this.hitDetectionRenderer_=t}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(t){this.fill_=t}getImage(){return this.image_}setImage(t){this.image_=t}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t}getText(){return this.text_}setText(t){this.text_=t}getZIndex(){return this.zIndex_}setGeometry(t){"function"==typeof t?this.geometryFunction_=t:"string"==typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=ie,this.geometry_=t}setZIndex(t){this.zIndex_=t}}let e9=null;function it(t,e){if(!e9){let t=new e5({color:"rgba(255,255,255,0.4)"}),e=new e8({color:"#3399CC",width:1.25});e9=[new e7({image:new e3({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]}return e9}function ie(t){return t.getGeometry()}let ii=class t{constructor(t){t=t||{},this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.keepUpright_=t.keepUpright,this.scale_=t.scale,this.scaleArray_=el(void 0!==t.scale?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.justify_=t.justify,this.repeat_=t.repeat,this.textBaseline_=t.textBaseline,this.fill_=void 0!==t.fill?t.fill:new e5({color:"#333"}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:"point",this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=void 0===t.padding?null:t.padding,this.declutterMode_=t.declutterMode}clone(){let e=this.getScale();return new t({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),keepUpright:this.getKeepUpright(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()instanceof e5?this.getFill().clone():this.getFill(),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,declutterMode:this.getDeclutterMode()})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getKeepUpright(){return this.keepUpright_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}getDeclutterMode(){return this.declutterMode_}setOverflow(t){this.overflow_=t}setFont(t){this.font_=t}setMaxAngle(t){this.maxAngle_=t}setOffsetX(t){this.offsetX_=t}setOffsetY(t){this.offsetY_=t}setPlacement(t){this.placement_=t}setRepeat(t){this.repeat_=t}setRotateWithView(t){this.rotateWithView_=t}setKeepUpright(t){this.keepUpright_=t}setFill(t){this.fill_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=el(void 0!==t?t:1)}setStroke(t){this.stroke_=t}setText(t){this.text_=t}setTextAlign(t){this.textAlign_=t}setJustify(t){this.justify_=t}setTextBaseline(t){this.textBaseline_=t}
1setBackgroundFill(t){this.backgroundFill_=t}setBackgroundStroke(t){this.backgroundStroke_=t}setPadding(t){this.padding_=t}};function ir(t){return!0}function is(t,e){e=e??eR();let i=t.length,n=Array(i);for(let r=0;r<i;++r)n[r]=io(t[r],e);let r=ek(),s=Array(i);return function(t,o){if(r.properties=t.getPropertiesInternal(),r.resolution=o,e.featureId){let e=t.getId();void 0!==e?r.featureId=e:r.featureId=null}e.geometryType&&(r.geometryType=eF(t.getGeometry()));let a=0;for(let t=0;t<i;++t){let e=n[t](r);e&&(s[a]=e,a+=1)}return s.length=a,s}}function io(t,e){var i,n,r,s,o,a;let l,h,u,d,c,g,f,_,p,m,y,v,E,C,x,R,w,S,I,A,M,b,P,T,O,L,D,N,F,k,z=ia(t,"",e),K=il(t,"",e),V=function(t,e){let i="text-",n=id(t,i+"value",e);if(!n)return null;let r=ia(t,i,e),s=ia(t,i+"background-",e),o=il(t,i,e),a=il(t,i+"background-",e),l=id(t,i+"font",e),h=iu(t,i+"max-angle",e),u=iu(t,i+"offset-x",e),d=iu(t,i+"offset-y",e),c=ic(t,i+"overflow",e),g=id(t,i+"placement",e),f=iu(t,i+"repeat",e),_=iy(t,i+"scale",e),p=ic(t,i+"rotate-with-view",e),m=iu(t,i+"rotation",e),y=id(t,i+"align",e),v=id(t,i+"justify",e),E=id(t,i+"baseline",e),C=ic(t,i+"keep-upright",e),x=i_(t,i+"padding",e),R=new ii({declutterMode:ix(t,i+"declutter-mode")});return function(t){if(R.setText(n(t)),r&&R.setFill(r(t)),s&&R.setBackgroundFill(s(t)),o&&R.setStroke(o(t)),a&&R.setBackgroundStroke(a(t)),l&&R.setFont(l(t)),h&&R.setMaxAngle(h(t)),u&&R.setOffsetX(u(t)),d&&R.setOffsetY(d(t)),c&&R.setOverflow(c(t)),g){let e=g(t);if("point"!==e&&"line"!==e)throw Error("Expected point or line for text-placement");R.setPlacement(e)}if(f&&R.setRepeat(f(t)),_&&R.setScale(_(t)),p&&R.setRotateWithView(p(t)),m&&R.setRotation(m(t)),y){let e=y(t);if("left"!==e&&"center"!==e&&"right"!==e&&"end"!==e&&"start"!==e)throw Error("Expected left, right, center, start, or end for text-align");R.setTextAlign(e)}if(v){let e=v(t);if("left"!==e&&"right"!==e&&"center"!==e)throw Error("Expected left, right, or center for text-justify");R.setJustify(e)}if(E){let e=E(t);if("bottom"!==e&&"top"!==e&&"middle"!==e&&"alphabetic"!==e&&"hanging"!==e)throw Error("Expected bottom, top, middle, alphabetic, or hanging for text-baseline");R.setTextBaseline(e)}return x&&R.setPadding(x(t)),C&&R.setKeepUpright(C(t)),R}}(t,e),W=(i=t,n=e,"icon-src"in i?(r=i,s=n,d=iw(r[u=(h="icon-")+"src"],u),c=ip(r,h+"anchor",s),g=iy(r,h+"scale",s),f=iu(r,h+"opacity",s),_=ip(r,h+"displacement",s),p=iu(r,h+"rotation",s),m=ic(r,h+"rotate-with-view",s),y=iE(r,h+"anchor-origin"),v=iC(r,h+"anchor-x-units"),E=iC(r,h+"anchor-y-units"),C=ih(r,h+"color"),x=null,void 0!==C&&(Array.isArray(C)&&C.length>0&&"string"==typeof C[0]?x=ig(r,h+"color",s):l=iI(C,h+"color")),R=function(t,e){let i=t[e];if(void 0!==i){if("string"!=typeof i)throw Error(`Expected a string for ${e}`);return i}}(r,h+"cross-origin"),w=function(t,e){let i=t[e];if(void 0!==i)return iR(i,e)}(r,h+"offset"),S=iE(r,h+"offset-origin"),I=iv(r,h+"width"),A={src:d,anchorOrigin:y,anchorXUnits:v,anchorYUnits:E,crossOrigin:R,offset:w,offsetOrigin:S,height:iv(r,h+"height"),width:I,size:function(t,e){let i=t[e];if(void 0!==i){if("number"==typeof i)return el(i);if(!Array.isArray(i)||2!==i.length||"number"!=typeof i[0]||"number"!=typeof i[1])throw Error(`Expected a number or size array for ${e}`);return i}}(r,h+"size"),declutterMode:ix(r,h+"declutter-mode")},M=null,function(t){if(M)x&&M.setColor(x(t));else{let e=x?x(t):l;M=new e6(void 0!==e?Object.assign({},A,{color:e}):Object.assign({},A))}return f&&M.setOpacity(f(t)),_&&M.setDisplacement(_(t)),p&&M.setRotation(p(t)),m&&M.setRotateWithView(m(t)),g&&M.setScale(g(t)),c&&M.setAnchor(c(t)),M}):"shape-points"in i?function(t,e){let i="shape-",n=i+"points",r=i+"radius",s=iS(t[n],n);if(!(r in t))throw Error(`Expected a number for ${r}`);let o=iu(t,r,e),a="number"==typeof t[r]?t[r]:5,l=i+"radius2",h=iu(t,l,e),u="number"==typeof t[l]?t[l]:void 0,d=ia(t,i,e),c=il(t,i,e),g=iy(t,i+"scale",e),f=ip(t,i+"displacement",e),_=iu(t,i+"rotation",e),p=ic(t,i+"rotate-with-view",e),m=new e2({points:s,radius:a,radius2:u,angle:iv(t,i+"angle"),declutterMode:ix(t,i+"declutter-mode")});return function(t){return o&&m.setRadius(o(t)),h&&m.setRadius2(h(t)),d&&m.setFill(d(t)),c&&m.setStroke(c(t)),f&&m.setDisplacement(f(t)),_&&m.setRotation(_(t)),p&&m.setRotateWithView(p(t)),g&&m.setScale(g(t)),m}}(i,n):"circle-radius"in i?(P=ia(o=i,b="circle-",a=n),T=il(o,b,a),O=iu(o,b+"radius",a),L=iy(o,b+"scale",a),D=ip(o,b+"displacement",a),N=iu(o,b+"rotation",a),F=ic(o,b+"rotate-with-view",a),k=new e3({radius:5,declutterMode:ix(o,b+"declutter-mode")}),function(t){return O&&k.setRadius(O(t)),P&&k.setFill(P(t)),T&&k.setStroke(T(t)),D&&k.setDisplacement(D(t)),N&&k.setRotation(N(t)),F&&k.setRotateWithView(F(t)),L&&k.setScale(L(t)),k}):null),G=iu(t,"z-index",e);if(!z&&!K&&!V&&!W&&!(0,tx.isEmpty)(t))throw Error("No fill, stroke, point, or text symbolizer properties in style: "+JSON.stringify(t));let U=new e7;return function(t){let e=!0;if(z){let i=z(t);i&&(e=!1),U.setFill(i)}if(K){let i=K(t);i&&(e=!1),U.setStroke(i)}if(V){let i=V(t);
1i&&(e=!1),U.setText(i)}if(W){let i=W(t);i&&(e=!1),U.setImage(i)}return(G&&U.setZIndex(G(t)),e)?null:U}}function ia(t,e,i){let n;if(e+"fill-pattern-src"in t){var r,s,o;let a,l,h,u;a=id(r=t,(s=e+"fill-")+"pattern-src",o=i),l=im(r,s+"pattern-offset",o),h=im(r,s+"pattern-size",o),u=ig(r,s+"color",o),n=function(t){return{src:a(t),offset:l&&l(t),size:h&&h(t),color:u&&u(t)}}}else{if("none"===t[e+"fill-color"])return t=>null;n=ig(t,e+"fill-color",i)}if(!n)return null;let a=new e5;return function(t){let e=n(t);return e===t$?null:(a.setColor(e),a)}}function il(t,e,i){let n=iu(t,e+"stroke-width",i),r=ig(t,e+"stroke-color",i);if(!n&&!r)return null;let s=id(t,e+"stroke-line-cap",i),o=id(t,e+"stroke-line-join",i),a=i_(t,e+"stroke-line-dash",i),l=iu(t,e+"stroke-line-dash-offset",i),h=iu(t,e+"stroke-miter-limit",i),u=iu(t,e+"stroke-offset",i),d=new e8;return function(t){if(r){let e=r(t);if(e===t$)return null;d.setColor(e)}if(n&&d.setWidth(n(t)),s){let e=s(t);if("butt"!==e&&"round"!==e&&"square"!==e)throw Error("Expected butt, round, or square line cap");d.setLineCap(e)}if(o){let e=o(t);if("bevel"!==e&&"round"!==e&&"miter"!==e)throw Error("Expected bevel, round, or miter line join");d.setLineJoin(e)}return a&&d.setLineDash(a(t)),l&&d.setLineDashOffset(l(t)),h&&d.setMiterLimit(h(t)),u&&d.setOffset(u(t)),d}}function ih(t,e){if(!(e in t))return;let i=t[e];return void 0===i?void 0:i}function iu(t,e,i){let n=ih(t,e);if(void 0===n)return;let r=ez(n,ed,i);return function(t){return iS(r(t),e)}}function id(t,e,i){let n=ih(t,e);if(void 0===n)return null;let r=ez(n,ec,i);return function(t){return iw(r(t),e)}}function ic(t,e,i){let n=ih(t,e);if(void 0===n)return null;let r=ez(n,eu,i);return function(t){let i=r(t);if("boolean"!=typeof i)throw Error(`Expected a boolean for ${e}`);return i}}function ig(t,e,i){let n=ih(t,e);if(void 0===n)return null;let r=ez(n,eg,i);return function(t){return iI(r(t),e)}}function i_(t,e,i){let n=ih(t,e);if(void 0===n)return null;if(Array.isArray(n)&&(0===n.length||"string"!=typeof n[0])){let t=n.map((t,n)=>{if("number"==typeof t)return()=>t;let r=ez(t,ed,i);return function(t){return iS(r(t),`${e}[${n}]`)}});return function(e){let i=Array(t.length);for(let n=0;n<t.length;++n)i[n]=t[n](e);return i}}let r=ez(n,ef,i);return function(t){return iR(r(t),e)}}function ip(t,e,i){let n=ih(t,e);if(void 0===n)return null;let r=ez(n,ef,i);return function(t){let i=iR(r(t),e);if(2!==i.length)throw Error(`Expected two numbers for ${e}`);return i}}function im(t,e,i){let n=ih(t,e);if(void 0===n)return null;let r=ez(n,ef,i);return function(t){return iA(r(t),e)}}function iy(t,e,i){let n=ih(t,e);if(void 0===n)return null;let r=ez(n,ef|ed,i);return function(t){var i,n;return i=r(t),n=e,"number"==typeof i?i:iA(i,n)}}function iv(t,e){let i=t[e];if(void 0!==i){if("number"!=typeof i)throw Error(`Expected a number for ${e}`);return i}}function iE(t,e){let i=t[e];if(void 0!==i){if("bottom-left"!==i&&"bottom-right"!==i&&"top-left"!==i&&"top-right"!==i)throw Error(`Expected bottom-left, bottom-right, top-left, or top-right for ${e}`);return i}}function iC(t,e){let i=t[e];if(void 0!==i){if("pixels"!==i&&"fraction"!==i)throw Error(`Expected pixels or fraction for ${e}`);return i}}function ix(t,e){let i=t[e];if(void 0!==i){if("string"!=typeof i)throw Error(`Expected a string for ${e}`);if("declutter"!==i&&"obstacle"!==i&&"none"!==i)throw Error(`Expected declutter, obstacle, or none for ${e}`);return i}}function iR(t,e){if(!Array.isArray(t))throw Error(`Expected an array for ${e}`);let i=t.length;for(let n=0;n<i;++n)if("number"!=typeof t[n])throw Error(`Expected an array of numbers for ${e}`);return t}function iw(t,e){if("string"!=typeof t)throw Error(`Expected a string for ${e}`);return t}function iS(t,e){if("number"!=typeof t)throw Error(`Expected a number for ${e}`);return t}function iI(t,e){if("string"==typeof t)return t;let i=iR(t,e),n=i.length;if(n<3||n>4)throw Error(`Expected a color with 3 or 4 values for ${e}`);return i}function iA(t,e){let i=iR(t,e);if(2!==i.length)throw Error(`Expected an array of two numbers for ${e}`);return i}let iM="renderOrder",ib=class extends tN{constructor(t){const e=Object.assign({},t=t||{});delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=t.declutter?String(t.declutter):void 0,this.renderBuffer_=void 0!==t.renderBuffer?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.updateWhileInteracting_=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(iM)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t,e){let i=this.getDeclutter();i in t.declutter==!1&&(t.declutter[i]=new tK(9)),this.getRenderer().renderDeclutter(t,e)}setRenderOrder(t){this.set(iM,t)}setStyle(t){this.style_=void 0===t?it:t;let e=function(t){if(void 0===t)return it;if(!t)return null;if("function"==typeof t||t instanceof e7)return t;if(Array.isArray(t)&&0===t.length)return[];if(Array.isArray(t)&&t[0]instanceof e7){let e=t.length,i=Array(e);for(let n=0;n<e;++n){let e=t[n];if(!(e instanceof e7))throw Error("Expected a list of style instances");i[n]=e}return i}return function(t,e){if(e=e??eR(),!Array.isArray(t))return is([t],e);let i=t.length;if("style"in t[0]){var n;let r,s,o=Array(i);for(let e=0;e<i;++e){let i=t[e];if(!("style"in i))throw Error("Expected a list of rules with a style property");o[e]=i}return r=function(t,e){let i=t.length,n=Array(i);for(let r=0;r<i;++r){let i,s=t[r],o="filter"in s?ez(s.filter,eu,e):ir;if(Array.isArray(s.style)){let t=s.style.length;i=Array(t);for(let n=0;n<t;++n)i[n]=io(s.style[n],e)}else i=[io(s.style,e)];
1n[r]={filter:o,styles:i}}return function(e){let r=[],s=!1;for(let o=0;o<i;++o)if((0,n[o].filter)(e)&&(!t[o].else||!s))for(let t of(s=!0,n[o].styles)){let i=t(e);i&&r.push(i)}return r}}(o,n=(n=e)??eR()),s=ek(),function(t,e){if(s.properties=t.getPropertiesInternal(),s.resolution=e,n.featureId){let e=t.getId();void 0!==e?s.featureId=e:s.featureId=null}return n.geometryType&&(s.geometryType=eF(t.getGeometry())),r(s)}}return is(t,e)}(t)}(t);this.styleFunction_=null===t?void 0:function(t){let e;if("function"==typeof t)e=t;else{let i;Array.isArray(t)?i=t:((0,p.assert)("function"==typeof t.getZIndex,"Expected an `Style` or an array of `Style`"),i=[t]),e=function(){return i}}return e}(e),this.changed()}setDeclutter(t){this.declutter_=t?String(t):void 0,this.changed()}};t.s(["default",0,ib],523361);var iP=tn;class iT extends iP.default{constructor(t,e,i,n){super(t),this.inversePixelTransform=e,this.frameState=i,this.context=n}}t.s(["default",0,iT],861684);var iO=t.i(663932),iL=tr;class iD extends iL.default{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,e){(0,tR.abstract)()}calculateMatrices2D(t){let e=t.viewState,i=t.coordinateToPixelTransform,n=t.pixelToCoordinateTransform;(0,iO.compose)(i,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),(0,iO.makeInverse)(n,i)}forEachFeatureAtCoordinate(t,e,i,n,r,s,o,a){let l,h=e.viewState;function u(t,e,i,n){return r.call(s,e,t?i:null,n)}let d=h.projection,c=(0,K.wrapX)(t.slice(),d),g=[[0,0]];if(d.canWrapX()&&n){let t=d.getExtent(),e=(0,P.getWidth)(t);g.push([-e,0],[e,0])}let f=e.layerStatesArray,_=f.length,p=[],m=[];for(let n=0;n<g.length;n++)for(let r=_-1;r>=0;--r){let s=f[r],d=s.layer;if(d.hasRenderer()&&tD(s,h)&&o.call(a,d)){let r=d.getRenderer(),o=d.getSource();if(r&&o){let a=o.getWrapX()?c:t,h=u.bind(null,s.managed);m[0]=a[0]+g[n][0],m[1]=a[1]+g[n][1],l=r.forEachFeatureAtCoordinate(m,e,i,h,p)}if(l)return l}}if(0===p.length)return;let y=1/p.length;return p.forEach((t,e)=>t.distanceSq+=e*y),p.sort((t,e)=>t.distanceSq-e.distanceSq),p.some(t=>l=t.callback(t.feature,t.layer,t.geometry)),l}hasFeatureAtCoordinate(t,e,i,n,r,s){return void 0!==this.forEachFeatureAtCoordinate(t,e,i,n,C.TRUE,this,r,s)}getMap(){return this.map_}renderFrame(t){(0,tR.abstract)()}scheduleExpireIconCache(t){eH.canExpireCache()&&t.postRenderFunctions.push(iN)}}function iN(t,e){eH.expire()}let iF=iD,ik=class extends iF{constructor(t){super(t),this.fontChangeListenerKey_=(0,R.listen)(e0,d.default.PROPERTYCHANGE,t.redrawText,t),this.element_=T.WORKER_OFFSCREEN_CANVAS?(0,v.createMockDiv)():document.createElement("div");const e=this.element_.style;e.position="absolute",e.width="100%",e.height="100%",e.zIndex="0",this.element_.className=y.CLASS_UNSELECTABLE+" ol-layers";const i=t.getViewport();i&&i.insertBefore(this.element_,i.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(t,e){let i=this.getMap();if(i.hasListener(t)){let n=new iT(t,void 0,e);i.dispatchEvent(n)}}disposeInternal(){(0,R.unlistenByKey)(this.fontChangeListenerKey_),this.element_.remove(),super.disposeInternal()}renderFrame(t){let e;if(!t){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(t),this.dispatchRenderEvent(tL.PRECOMPOSE,t);let i=t.layerStatesArray.sort((t,e)=>t.zIndex-e.zIndex);i.some(t=>t.layer instanceof ib&&t.layer.getDeclutter())&&(t.declutter={});let n=t.viewState;this.children_.length=0;let r=this.getMap().getTargetElement();(0,v.isCanvas)(r)&&((e=r.getContext("2d")).setTransform(1,0,0,1,0,0),e.clearRect(0,0,r.width,r.height));let s=[],o=e?r:null;for(let e=0,r=i.length;e<r;++e){let r=i[e];t.layerIndex=e;let a=r.layer,l=a.getSourceState();if(!tD(r,n)||"ready"!=l&&"undefined"!=l){a.unrender();continue}let h=a.render(t,o);h&&(h!==o&&(this.children_.push(h),o=h),s.push(r))}for(let i of(this.declutter(t,s),(0,v.replaceChildren)(this.element_,this.children_),e?this.children_:[])){let t=i.firstElementChild||i,n=i.style.backgroundColor;if(n&&(!(0,v.isCanvas)(t)||t.width>0)&&(e.fillStyle=n,e.fillRect(0,0,e.canvas.width,e.canvas.height)),!(0,v.isCanvas)(t)||0===t.width)continue;e.save();let r=i.style.opacity||t.style.opacity;e.globalAlpha=""===r?1:Number(r);let s=t.style.transform;if(s)e.transform(...(0,iO.fromString)(s));else{let i=parseFloat(t.style.width)/t.width,n=parseFloat(t.style.height)/t.height;e.transform(i,0,0,n,0,0)}
1e.drawImage(t,0,0),e.restore()}this.dispatchRenderEvent(tL.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}declutter(t,e){if(t.declutter){for(let i=e.length-1;i>=0;--i){let n=e[i],r=n.layer;r.getDeclutter()&&r.renderDeclutter(t,n)}e.forEach(e=>e.layer.renderDeferred(t))}}};class iz extends u.default{constructor(t){super(),t=t||{},this.on,this.once,this.un;const e=function(t){let e,n,r,s=null;void 0!==t.keyboardEventTarget&&(s="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);let o={},a=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new tO({layers:t.layers});return o[h.default.LAYERGROUP]=a,o[h.default.TARGET]=t.target,o[h.default.VIEW]=t.view instanceof g.default?t.view:new g.default,void 0!==t.controls&&(Array.isArray(t.controls)?e=new i.default(t.controls.slice()):((0,p.assert)("function"==typeof t.controls.getArray,"Expected `controls` to be an array or an `ol/Collection.js`"),e=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?n=new i.default(t.interactions.slice()):((0,p.assert)("function"==typeof t.interactions.getArray,"Expected `interactions` to be an array or an `ol/Collection.js`"),n=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?r=new i.default(t.overlays.slice()):((0,p.assert)("function"==typeof t.overlays.getArray,"Expected `overlays` to be an array or an `ol/Collection.js`"),r=t.overlays):r=new i.default,{controls:e,interactions:n,keyboardEventTarget:s,overlays:r,values:o}}(t);this.renderComplete_=!1,this.loaded_=!0,this.boundHandleBrowserEvent_=this.handleBrowserEvent.bind(this),this.maxTilesLoading_=void 0!==t.maxTilesLoading?t.maxTilesLoading:16,this.pixelRatio_=void 0!==t.pixelRatio?t.pixelRatio:T.DEVICE_PIXEL_RATIO,this.postRenderTimeoutHandle_,this.animationDelayKey_,this.animationDelay_=this.animationDelay_.bind(this),this.coordinateToPixelTransform_=(0,iO.create)(),this.pixelToCoordinateTransform_=(0,iO.create)(),this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,T.WORKER_OFFSCREEN_CANVAS||(this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.style.position="absolute",this.overlayContainer_.style.zIndex="0",this.overlayContainer_.style.width="100%",this.overlayContainer_.style.height="100%",this.overlayContainer_.style.pointerEvents="none",this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.style.position="absolute",this.overlayContainerStopEvent_.style.zIndex="0",this.overlayContainerStopEvent_.style.width="100%",this.overlayContainerStopEvent_.style.height="100%",this.overlayContainerStopEvent_.style.pointerEvents="none",this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",this.viewport_.appendChild(this.overlayContainerStopEvent_)),this.mapBrowserEventHandler_=null,this.moveTolerance_=t.moveTolerance,this.keyboardEventTarget_=e.keyboardEventTarget,this.targetChangeHandlerKeys_=null,this.targetElement_=null,T.WORKER_OFFSCREEN_CANVAS||(this.resizeObserver_=new ResizeObserver(()=>this.updateSize())),this.controls=e.controls||(T.WORKER_OFFSCREEN_CANVAS?new i.default:function(t){t=t||{};let e=new i.default;return(void 0===t.zoom||t.zoom)&&e.push(new b(t.zoomOptions)),(void 0===t.rotate||t.rotate)&&e.push(new M(t.rotateOptions)),(void 0===t.attribution||t.attribution)&&e.push(new I(t.attributionOptions)),e}()),this.interactions=e.interactions||(T.WORKER_OFFSCREEN_CANVAS?new i.default:tE({onFocusOnly:!0}
1)),this.overlays_=e.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new c.default(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(h.default.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(h.default.VIEW,this.handleViewChanged_),this.addChangeListener(h.default.SIZE,this.handleSizeChanged_),this.addChangeListener(h.default.TARGET,this.handleTargetChanged_),this.setProperties(e.values);const r=this;!t.view||t.view instanceof g.default||t.view.then(function(t){r.setView(new g.default(t))}),this.controls.addEventListener(n.default.ADD,t=>{t.element.setMap(this)}),this.controls.addEventListener(n.default.REMOVE,t=>{t.element.setMap(null)}),this.interactions.addEventListener(n.default.ADD,t=>{t.element.setMap(this)}),this.interactions.addEventListener(n.default.REMOVE,t=>{t.element.setMap(null)}),this.overlays_.addEventListener(n.default.ADD,t=>{this.addOverlayInternal_(t.element)}),this.overlays_.addEventListener(n.default.REMOVE,t=>{let e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)}),this.controls.forEach(t=>{t.setMap(this)}),this.interactions.forEach(t=>{t.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){this.getLayerGroup().getLayers().push(t)}handleLayerAdd_(t){!function t(e,i){if(e instanceof tN)return void e.setMapInternal(i);if(e instanceof tO){let n=e.getLayers().getArray();for(let e=0,r=n.length;e<r;++e)t(n[e],i)}}(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){let e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_?.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,e,i){if(!this.frameState_||!this.renderer_)return;let n=this.getCoordinateFromPixelInternal(t),r=void 0!==(i=void 0!==i?i:{}).hitTolerance?i.hitTolerance:0,s=void 0!==i.layerFilter?i.layerFilter:C.TRUE,o=!1!==i.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,r,o,e,null,s,null)}getFeaturesAtPixel(t,e){let i=[];return this.forEachFeatureAtPixel(t,function(t){i.push(t)},e),i}getAllLayers(){let t=[];return!function e(i){i.forEach(function(i){i instanceof tO?e(i.getLayers()):t.push(i)})}(this.getLayers()),t}hasFeatureAtPixel(t,e){if(!this.frameState_||!this.renderer_)return!1;let i=this.getCoordinateFromPixelInternal(t),n=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:C.TRUE,r=void 0!==e.hitTolerance?e.hitTolerance:0,s=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(i,this.frameState_,r,s,n,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){let e=this.viewport_.getBoundingClientRect(),i=this.getSize(),n=e.width/i[0],r=e.height/i[1],s="changedTouches"in t?t.changedTouches[0]:t;return[(s.clientX-e.left)/n,(s.clientY-e.top)/r]}getTarget(){return this.get(h.default.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return(0,tk.toUserCoordinate)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){let e=this.frameState_;return e?(0,iO.apply)(e.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){let e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(h.default.LAYERGROUP)}setLayers(t){let e=this.getLayerGroup();if(t instanceof i.default)return void e.setLayers(t);let n=e.getLayers();n.clear(),n.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){let t=this.getLayerGroup().getLayerStatesArray();for(let e=0,i=t.length;e<i;++e){let i=t[e];if(!i.visible)continue;let n=i.layer.getRenderer();if(n&&!n.ready)return!0;let r=i.layer.getSource();if(r&&r.loading)return!0}return!1}
1getPixelFromCoordinate(t){let e=(0,tk.fromUserCoordinate)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)}getPixelFromCoordinateInternal(t){let e=this.frameState_;return e?(0,iO.apply)(e.coordinateToPixelTransform,t.slice(0,2)):null}getPixelRatio(){return this.pixelRatio_}setPixelRatio(t){this.pixelRatio_!==t&&(this.pixelRatio_=t,this.render())}getRenderer(){return this.renderer_}getSize(){return this.get(h.default.SIZE)}getView(){return this.get(h.default.VIEW)}getViewport(){return this.viewport_}getOverlayContainer(){return this.overlayContainer_}getOverlayContainerStopEvent(){return this.overlayContainerStopEvent_}getOwnerDocument(){let t=this.getTargetElement();return t?t.ownerDocument:document}getTilePriority(t,e,i,n){return(0,c.getTilePriority)(this.frameState_,t,e,i,n)}handleBrowserEvent(t,e){e=e||t.type;let i=new r.default(e,this,t);this.handleMapBrowserEvent(i)}handleMapBrowserEvent(t){if(!this.frameState_)return;let e=t.originalEvent,i=e.type;if(i===tF.default.POINTERDOWN||i===E.default.WHEEL||i===E.default.KEYDOWN){let t=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():t,n=e.target,r=i instanceof ShadowRoot?i.host===n?i.host.ownerDocument:i:i===t?t.documentElement:i;if(this.overlayContainerStopEvent_.contains(n)||!r.contains(n))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t)){let e=this.getInteractions().getArray().slice();for(let i=e.length-1;i>=0;i--){let n=e[i];if(n.getMap()===this&&n.getActive()&&this.getTargetElement()&&(!n.handleEvent(t)||t.propagationStopped))break}}}handlePostRender(){let t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){let i=this.maxTilesLoading_,n=i,r=t?t.viewHints:void 0,s=!!r&&(r[f.default.ANIMATING]||r[f.default.INTERACTING]);if(s){let e=Date.now()-t.time>8;i=8*!e,n=2*!e}e.getTilesLoading()<i&&(s&&e.reprioritize(),e.loadMoreTiles(i,n))}t&&this.renderer_&&!t.animate&&(this.renderComplete_?(this.hasListener(tL.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(tL.RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new a.default(l.default.LOADEND,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new a.default(l.default.LOADSTART,this,t))));let i=this.postRenderFunctions_;if(t)for(let e=0,n=i.length;e<n;++e)i[e](this,t);i.length=0}handleSizeChanged_(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()}handleTargetChanged_(){if(this.mapBrowserEventHandler_){for(let t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)(0,R.unlistenByKey)(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(E.default.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(E.default.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,this.viewport_.remove()}if(this.targetElement_&&!(0,v.isCanvas)(this.targetElement_)){this.resizeObserver_?.unobserve(this.targetElement_);let t=this.targetElement_.getRootNode();t instanceof ShadowRoot&&this.resizeObserver_.unobserve(t.host),this.setSize(void 0)}let t=this.getTarget(),e="string"==typeof t?document.getElementById(t):t;if(this.targetElement_=e,e){if((0,v.isCanvas)(e)||e.appendChild(this.viewport_),this.renderer_||(this.renderer_=new ik(this)),!(0,v.isCanvas)(e)){let t;for(let t in this.mapBrowserEventHandler_=new s.default(this,this.moveTolerance_),o.default)this.mapBrowserEventHandler_.addEventListener(o.default[t],this.handleMapBrowserEvent.bind(this));if(this.viewport_.addEventListener(E.default.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(E.default.WHEEL,this.boundHandleBrowserEvent_,!!T.PASSIVE_EVENT_LISTENERS&&{passive:!1}),this.keyboardEventTarget_)t=this.keyboardEventTarget_;else{let i=e.getRootNode();t=i instanceof ShadowRoot?i.host:e}if(this.targetChangeHandlerKeys_=[(0,R.listen)(t,E.default.KEYDOWN,this.handleBrowserEvent,this),(0,R.listen)(t,E.default.KEYPRESS,this.handleBrowserEvent,this)],!(0,v.isCanvas)(e)){let t=e.getRootNode();t instanceof ShadowRoot&&this.resizeObserver_.observe(t.host),this.resizeObserver_?.observe(e)}}this.updateSize()}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0)}handleTileChange_(){this.render()}handleViewPropertyChanged_(){this.render()}handleViewChanged_(){this.viewPropertyListenerKey_&&((0,R.unlistenByKey)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,R.unlistenByKey)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);let t=this.getView();t&&(this.updateViewportSize_(this.getSize()),this.viewPropertyListenerKey_=(0,R.listen)(t,d.default.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,R.listen)(t,E.default.CHANGE,this.handleViewPropertyChanged_,this),t.resolve
1Constraints(0)),this.render()}handleLayerGroupChanged_(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(R.unlistenByKey),this.layerGroupPropertyListenerKeys_=null);let t=this.getLayerGroup();t&&(this.handleLayerAdd_(new tP("addlayer",t)),this.layerGroupPropertyListenerKeys_=[(0,R.listen)(t,d.default.PROPERTYCHANGE,this.render,this),(0,R.listen)(t,E.default.CHANGE,this.render,this),(0,R.listen)(t,"addlayer",this.handleLayerAdd_,this),(0,R.listen)(t,"removelayer",this.handleLayerRemove_,this)]),this.render()}isRendered(){return!!this.frameState_}animationDelay_(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}renderSync(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()}redrawText(){if(!this.frameState_)return;let t=this.frameState_.layerStatesArray;for(let e=0,i=t.length;e<i;++e){let i=t[e].layer;i.hasRenderer()&&i.getRenderer().handleFontsChanged()}}render(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))}removeControl(t){return this.getControls().remove(t)}removeInteraction(t){return this.getInteractions().remove(t)}removeLayer(t){return this.getLayerGroup().getLayers().remove(t)}handleLayerRemove_(t){!function t(e){e instanceof tN?e.setMapInternal(null):e instanceof tO&&e.getLayers().forEach(t)}(t.layer)}removeOverlay(t){return this.getOverlays().remove(t)}renderFrame_(t){let e=this.getSize(),i=this.getView(),n=this.frameState_,r=null;if(void 0!==e&&ea(e)&&i&&i.isDef()){let n=i.getHints(this.frameState_?this.frameState_.viewHints:void 0),s=i.getState();if(r={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutter:null,extent:(0,P.getForViewAndSize)(s.center,s.resolution,s.rotation,e),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:e,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:s,viewHints:n,wantedTiles:{},mapId:(0,tR.getUid)(this),renderTargets:{}},s.nextCenter&&s.nextResolution){let t=isNaN(s.nextRotation)?s.rotation:s.nextRotation;r.nextExtent=(0,P.getForViewAndSize)(s.nextCenter,s.nextResolution,t,e)}}this.frameState_=r,this.renderer_.renderFrame(r),r&&(r.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,r.postRenderFunctions),n&&(this.previousExtent_&&((0,P.isEmpty)(this.previousExtent_)||(0,P.equals)(r.extent,this.previousExtent_))||(this.dispatchEvent(new a.default(l.default.MOVESTART,this,n)),this.previousExtent_=(0,P.createOrUpdateEmpty)(this.previousExtent_))),!this.previousExtent_||r.viewHints[f.default.ANIMATING]||r.viewHints[f.default.INTERACTING]||(0,P.equals)(r.extent,this.previousExtent_)||(this.dispatchEvent(new a.default(l.default.MOVEEND,this,r)),(0,P.clone)(r.extent,this.previousExtent_))),this.dispatchEvent(new a.default(l.default.POSTRENDER,this,r)),this.renderComplete_=(this.hasListener(l.default.LOADSTART)||this.hasListener(l.default.LOADEND)||this.hasListener(tL.RENDERCOMPLETE))&&!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady(),this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout(()=>{this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(t){let e=this.getLayerGroup();e&&this.handleLayerRemove_(new tP("removelayer",e)),this.set(h.default.LAYERGROUP,t)}setSize(t){this.set(h.default.SIZE,t)}setTarget(t){this.set(h.default.TARGET,t)}setView(t){if(!t||t instanceof g.default)return void this.set(h.default.VIEW,t);this.set(h.default.VIEW,new g.default);let e=this;t.then(function(t){e.setView(new g.default(t))})}updateSize(){let t,e=this.getTargetElement();if(e){let i,n;if((0,v.isCanvas)(e)){let t=e.getContext("2d").getTransform();i=e.width/t.a,n=e.height/t.d}else{let t=getComputedStyle(e);i=e.offsetWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)-parseFloat(t.borderRightWidth),n=e.offsetHeight-parseFloat(t.borderTopWidth)-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)-parseFloat(t.borderBottomWidth)}!isNaN(i)&&!isNaN(n)&&!ea(t=[Math.max(0,i),Math.max(0,n)])&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&(0,m.
1warn)("No map visible because the map container's width or height are 0.")}let i=this.getSize();!t||i&&(0,_.equals)(t,i)||(this.updateViewportSize_(t),this.setSize(t))}updateViewportSize_(t){let e=this.getView();e&&e.setViewportSize(t)}}t.s(["default",0,iz],477011)},780691,423507,t=>{"use strict";var e=t.i(468529),i=t.i(641096),n=t.i(835937),r=t.i(452258),s=t.i(675192),o=t.i(888264);let a={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"};t.s(["default",0,a],423507);class l extends s.default{constructor(t,e){super(t),this.map_=t,this.clickTimeoutId_,this.emulateClicks_=!1,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=void 0===e?1:e,this.down_=null;const i=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=i,this.pointerdownListenerKey_=(0,n.listen)(i,a.POINTERDOWN,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=(0,n.listen)(i,a.POINTERMOVE,this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(r.default.TOUCHMOVE,this.boundHandleTouchMove_,!!o.PASSIVE_EVENT_LISTENERS&&{passive:!1})}emulateClick_(t){let n=new e.default(i.default.CLICK,this.map_,t);this.dispatchEvent(n),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,n=new e.default(i.default.DBLCLICK,this.map_,t),this.dispatchEvent(n)):this.clickTimeoutId_=setTimeout(()=>{this.clickTimeoutId_=void 0;let n=new e.default(i.default.SINGLECLICK,this.map_,t);this.dispatchEvent(n)},250)}updateActivePointers_(t){let e=t.pointerId;if(t.type==i.default.POINTERUP||t.type==i.default.POINTERCANCEL){for(let i in delete this.trackedTouches_[e],this.trackedTouches_)if(this.trackedTouches_[i].target!==t.target){delete this.trackedTouches_[i];break}}else(t.type==i.default.POINTERDOWN||t.type==i.default.POINTERMOVE)&&(this.trackedTouches_[e]=t);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);let r=new e.default(i.default.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(r),this.emulateClicks_&&!r.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(n.unlistenByKey),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return 0===t.button}handlePointerDown_(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);let r=new e.default(i.default.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(r),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),0===this.dragListenerKeys_.length){let t=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,n.listen)(t,i.default.POINTERMOVE,this.handlePointerMove_,this),(0,n.listen)(t,i.default.POINTERUP,this.handlePointerUp_,this),(0,n.listen)(this.element_,i.default.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==t&&this.dragListenerKeys_.push((0,n.listen)(this.element_.getRootNode(),i.default.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;let n=new e.default(i.default.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(n)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;let n=!!(this.down_&&this.isMoving_(t));this.dispatchEvent(new e.default(i.default.POINTERMOVE,this.map_,t,n))}handleTouchMove_(t){let e=this.originalPointerMoveEvent_;(!e||e.defaultPrevented)&&("boolean"!=typeof t.cancelable||!0===t.cancelable)&&t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&((0,n.unlistenByKey)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(r.default.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,n.unlistenByKey)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(n.unlistenByKey),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}t.s(["default",0,l],780691)},466532,t=>{"use strict";t.s(["default",0,{POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}])},872266,71701,t=>{"use strict";t.s(["default",0,{LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"}],872266),t.s(["default",0,{IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}],71701)},148349,519215,793065,835937,452258,513872,88553,940631,725556,675192,837934,930812,t=>{"use strict";let e={PROPERTYCHANGE:"propertychange"};function i(t){for(let e in t)delete t[e]}function n(t){let e;for(e in t)return!1;return!e}function r(t,e,i,n,r){if(r){let r=i;i=function(s){return t.removeEventListener(e,i),r.call(n??this,s)}}else n&&n!==t&&(i=i.bind(n));let s={target:t,type:e,listener:i};return t.addEventListener(e,i),s}function s(t,e,i,n){return r(t,e,i,n,!0)}function o(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),i(t))}t.s(["default",0,e],519215),t.s(["clear",0,i,"isEmpty",0,n],793065),t.s(["listen",0,r,"listenOnce",0,s,"unlistenByKey",0,o],835937);let a={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"};t.s(["default",0,a],452258);let l=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}};function h(t,e){return t>e?1:t<e?-1:0}function u(t,e){let i=t.length;if(i!==e.length)return!1;for(let n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}function d(){}t.s(["default",0,l],513872),t.s(["ascending",0,h,"binarySearch",0,function(t,e,
1i){let n,r;i=i||h;let s=0,o=t.length,a=!1;for(;s<o;)(r=+i(t[n=s+(o-s>>1)],e))<0?s=n+1:(o=n,a=!r);return a?s:~s},"descending",0,function(t,e){return t<e?1:t>e?-1:0},"equals",0,u,"extend",0,function(t,e){let i=Array.isArray(e)?e:[e],n=i.length;for(let e=0;e<n;e++)t[t.length]=i[e]},"isSorted",0,function(t,e,i){let n=e||h;return t.every(function(e,r){if(0===r)return!0;let s=n(t[r-1],e);return!(s>0||i&&0===s)})},"linearFindNearest",0,function(t,e,i){if(t[0]<=e)return 0;let n=t.length;if(e<=t[n-1])return n-1;if("function"==typeof i){for(let r=1;r<n;++r){let n=t[r];if(n===e)return r;if(n<e){if(i(e,t[r-1],n)>0)return r-1;return r}}return n-1}if(i>0){for(let i=1;i<n;++i)if(t[i]<e)return i-1;return n-1}if(i<0){for(let i=1;i<n;++i)if(t[i]<=e)return i;return n-1}for(let i=1;i<n;++i){if(t[i]==e)return i;if(t[i]<e){if(t[i-1]-e<e-t[i])return i-1;return i}}return n-1}],88553),t.s(["FALSE",0,function(){return!1},"TRUE",0,function(){return!0},"VOID",0,d,"memoizeOne",0,function(t){let e,i,n;return function(){let r=Array.prototype.slice.call(arguments);return i&&this===n&&u(r,i)||(n=this,i=r,e=t.apply(this,arguments)),e}},"toPromise",0,function(t){let e;try{e=t()}catch(t){return Promise.reject(t)}return e instanceof Promise?e:Promise.resolve(e)}],940631);let c=class{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}};t.s(["default",0,c],725556);let g=class extends l{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,e){if(!t||!e)return;let i=this.listeners_||(this.listeners_={}),n=i[t]||(i[t]=[]);n.includes(e)||n.push(e)}dispatchEvent(t){let e,i="string"==typeof t,n=i?t:t.type,r=this.listeners_&&this.listeners_[n];if(!r)return;let s=i?new c(t):t;s.target||(s.target=this.eventTarget_||this);let o=this.dispatching_||(this.dispatching_={}),a=this.pendingRemovals_||(this.pendingRemovals_={});n in o||(o[n]=0,a[n]=0),++o[n];for(let t=0,i=r.length;t<i;++t)if(!1===(e="handleEvent"in r[t]?r[t].handleEvent(s):r[t].call(this,s))||s.propagationStopped){e=!1;break}if(0==--o[n]){let t=a[n];for(delete a[n];t--;)this.removeEventListener(n,d);delete o[n]}return e}disposeInternal(){this.listeners_&&i(this.listeners_)}getListeners(t){return this.listeners_&&this.listeners_[t]||void 0}hasListener(t){return!!this.listeners_&&(t?t in this.listeners_:Object.keys(this.listeners_).length>0)}removeEventListener(t,e){if(!this.listeners_)return;let i=this.listeners_[t];if(!i)return;let n=i.indexOf(e);-1!==n&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[n]=d,++this.pendingRemovals_[t]):(i.splice(n,1),0===i.length&&delete this.listeners_[t]))}};t.s(["default",0,g],675192);class f extends g{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(a.CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){let i=t.length,n=Array(i);for(let s=0;s<i;++s)n[s]=r(this,t[s],e);return n}return r(this,t,e)}onceInternal(t,e){let i;if(Array.isArray(t)){let n=t.length;i=Array(n);for(let r=0;r<n;++r)i[r]=s(this,t[r],e)}else i=s(this,t,e);return e.ol_key=i,i}unInternal(t,e){let i=e.ol_key;if(i)_(i);else if(Array.isArray(t))for(let i=0,n=t.length;i<n;++i)this.removeEventListener(t[i],e);else this.removeEventListener(t,e)}}function _(t){if(Array.isArray(t))for(let e=0,i=t.length;e<i;++e)o(t[e]);else o(t)}f.prototype.on,f.prototype.once,f.prototype.un;let p=f;t.s(["default",0,p,"unByKey",0,_],837934);let m=0;function y(t){return t.ol_uid||(t.ol_uid=String(++m))}t.s(["abstract",0,function(){throw Error("Unimplemented abstract method.")},"getUid",0,y],930812);class v extends c{constructor(t,e,i){super(t),this.key=e,this.oldValue=i}}let E=class extends p{constructor(t){super(),this.on,this.once,this.un,y(this),this.values_=null,void 0!==t&&this.setProperties(t)}get(t){let e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}
1hasProperties(){return!!this.values_}notify(t,i){let n;n=`change:${t}`,this.hasListener(n)&&this.dispatchEvent(new v(n,t,i)),n=e.PROPERTYCHANGE,this.hasListener(n)&&this.dispatchEvent(new v(n,t,i))}addChangeListener(t,e){this.addEventListener(`change:${t}`,e)}removeChangeListener(t,e){this.removeEventListener(`change:${t}`,e)}set(t,e,i){let n=this.values_||(this.values_={});if(i)n[t]=e;else{let i=n[t];n[t]=e,i!==e&&this.notify(t,i)}}setProperties(t,e){for(let i in t)this.set(i,t[i],e)}applyProperties(t){t.values_&&Object.assign(this.values_||(this.values_={}),t.values_)}unset(t,e){if(this.values_&&t in this.values_){let i=this.values_[t];delete this.values_[t],n(this.values_)&&(this.values_=null),e||this.notify(t,i)}}};t.s(["default",0,E],148349)},996824,900768,742555,t=>{"use strict";var e=t.i(71701),i=t.i(452258),n=t.i(56513),r=t.i(793065);let s=1/0,o=class{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,(0,r.clear)(this.queuedElements_)}dequeue(){let t=this.elements_,e=this.priorities_,i=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));let n=this.keyFunction_(i);return delete this.queuedElements_[n],i}enqueue(t){(0,n.assert)(!(this.keyFunction_(t)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");let e=this.priorityFunction_(t);return e!=s&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(t){return 2*t+1}getRightChildIndex_(t){return 2*t+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return 0===this.elements_.length}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){let e=this.elements_,i=this.priorities_,n=e.length,r=e[t],s=i[t],o=t;for(;t<n>>1;){let r=this.getLeftChildIndex_(t),s=this.getRightChildIndex_(t),o=s<n&&i[s]<i[r]?s:r;e[t]=e[o],i[t]=i[o],t=o}e[t]=r,i[t]=s,this.siftDown_(o,t)}siftDown_(t,e){let i=this.elements_,n=this.priorities_,r=i[e],s=n[e];for(;e>t;){let t=this.getParentIndex_(e);if(n[t]>s)i[e]=i[t],n[e]=n[t],e=t;else break}i[e]=r,n[e]=s}reprioritize(){let t,e,i,n=this.priorityFunction_,r=this.elements_,o=this.priorities_,a=0,l=r.length;for(e=0;e<l;++e)(i=n(t=r[e]))==s?delete this.queuedElements_[this.keyFunction_(t)]:(o[a]=i,r[a++]=t);r.length=a,o.length=a,this.heapify_()}},a=class extends o{constructor(t,e){super(e=>t.apply(null,e),t=>t[0].getKey()),this.boundHandleTileChange_=this.handleTileChange.bind(this),this.tileChangeCallback_=e,this.tilesLoading_=0,this.tilesLoadingKeys_={}}enqueue(t){let e=super.enqueue(t);return e&&t[0].addEventListener(i.default.CHANGE,this.boundHandleTileChange_),e}getTilesLoading(){return this.tilesLoading_}handleTileChange(t){let n=t.target,r=n.getState();if(r===e.default.LOADED||r===e.default.ERROR||r===e.default.EMPTY){r!==e.default.ERROR&&n.removeEventListener(i.default.CHANGE,this.boundHandleTileChange_);let t=n.getKey();t in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[t],--this.tilesLoading_),this.tileChangeCallback_()}}loadMoreTiles(t,i){let n=0;for(;this.tilesLoading_<t&&n<i&&this.getCount()>0;){let t=this.dequeue()[0],i=t.getKey();t.getState()!==e.default.IDLE||i in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[i]=!0,++this.tilesLoading_,++n,t.load())}}};t.s(["default",0,a,"getTilePriority",0,function(t,e,i,n,r){if(!t||!(i in t.wantedTiles)||!t.wantedTiles[i][e.getKey()])return s;let o=t.viewState.center,a=n[0]-o[0],l=n[1]-o[1];return 65536*Math.log(r)+Math.sqrt(a*a+l*l)/r}
1],996824),t.s(["default",0,{ANIMATING:0,INTERACTING:1}],900768),t.s(["default",0,{CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"}],742555)},964829,666159,88852,471733,608580,152062,t=>{"use strict";var e=t.i(148349),i=t.i(900768),n=t.i(742555),r=t.i(88553),s=t.i(56513),o=t.i(41436),a=t.i(840399),l=t.i(811365),h=t.i(256843),u=t.i(940631),d=t.i(611834),c=t.i(718530),g=t.i(859703),f=t.i(352492),_=t.i(560676),p=t.i(754152),m=t.i(201336),y=t.i(637577);function v(t,e,i,n,s,o,a){let l,h,u,d,c,g,f,_=s[o+1],m=[];for(let r=0,s=i.length;r<s;++r){let s=i[r];for(d=t[s-n],g=t[s-n+1],l=e;l<s;l+=n)c=t[l],f=t[l+1],(_<=g&&f<=_||g<=_&&_<=f)&&(u=(_-g)/(f-g)*(c-d)+d,m.push(u)),d=c,g=f}let y=NaN,v=-1/0;for(m.sort(r.ascending),d=m[0],l=1,h=m.length;l<h;++l){let r=Math.abs((c=m[l])-d);r>v&&(u=(d+c)/2,(0,p.linearRingsContainsXY)(t,e,i,n,u,_)&&(y=u,v=r)),d=c}return(isNaN(y)&&(y=s[o]),a)?(a.push(y,_,v),a):[y,_,v]}t.s(["getInteriorPointOfArray",0,v,"getInteriorPointsOfMultiArray",0,function(t,e,i,n,r){let s=[];for(let o=0,a=i.length;o<a;++o){let a=i[o];s=v(t,e,a,n,r,2*o,s),e=a[a.length-1]}return s}],666159);var E=t.i(711229);function C(t,e,i,n){let r=0,s=t[i-n],o=t[i-n+1];for(;e<i;e+=n){let i=t[e],n=t[e+1];r+=(i-s)*(n+o),s=i,o=n}return 0===r?void 0:r>0}function x(t,e,i,n,r){r=void 0!==r&&r;for(let s=0,o=i.length;s<o;++s){let o=i[s],a=C(t,e,o,n);if(0===s){if(r&&a||!r&&!a)return!1}else if(r&&!a||!r&&a)return!1;e=o}return!0}function R(t,e,i,n,r){r=void 0!==r&&r;for(let s=0,o=i.length;s<o;++s){let o=i[s],a=C(t,e,o,n);(0===s?r&&a||!r&&!a:r&&!a||!r&&a)&&function(t,e,i,n){for(;e<i-n;){for(let r=0;r<n;++r){let s=t[e+r];t[e+r]=t[i-n+r],t[i-n+r]=s}e+=n,i-=n}}(t,e,o,n),e=o}return e}t.s(["inflateEnds",0,function(t,e){let i,n=[],r=0,s=0;for(let o=0,a=e.length;o<a;++o){let a=e[o],l=C(t,r,a,2);if(void 0===i&&(i=l),l===i)n.push(e.slice(s,o+1));else{if(0===n.length)continue;n[n.length-1].push(e[s])}s=o+1,r=a}return n},"linearRingsAreOriented",0,x,"orientLinearRings",0,R],88852);var w=t.i(347948);class S extends g.default{constructor(t,e,i){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==e&&i?(this.setFlatCoordinates(e,t),this.ends_=i):this.setCoordinates(t,e)}appendLinearRing(t){this.flatCoordinates?(0,r.extend)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){let t=new S(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(t,e,i,n){return n<(0,h.closestSquaredDistanceXY)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,_.arrayMaxSquaredDelta)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,_.assignClosestArrayPoint)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,i,n))}containsXY(t,e){return(0,p.linearRingsContainsXY)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)}getArea(){return(0,f.linearRings)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(t){let e;return void 0!==t?R(e=this.getOrientedFlatCoordinates().slice(),0,this.ends_,this.stride,t):e=this.flatCoordinates,(0,y.inflateCoordinatesArray)(e,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){let t=(0,h.getCenter)(this.getExtent());this.flatInteriorPoint_=v(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new c.default(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(t){return t<0||this.ends_.length<=t?null:new d.default(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLinearRings(){let t=this.layout,e=this.flatCoordinates,i=this.ends_,n=[],r=0;for(let s=0,o=i.length;s<o;++s){let o=i[s],a=new d.default(e.slice(r,o),t);n.push(a),r=o}return n}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){let t=this.flatCoordinates;x(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=R(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){let e=[],i=[];return e.length=(0,w.quantizeArray)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),e,0,i),new S(e,"XY",i)}getType(){return"Polygon"}intersectsExtent(t){return(0,E.intersectsLinearRingArray)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);let i=(0,m.deflateCoordinatesArray)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===i.length?0:i[i.length-1],this.changed()}}function I(t){if((0,h.isEmpty)(t))throw Error("Cannot create polygon from empty extent");let e=t[0],i=t[1],n=t[2],r=t[3],s=[e,i,e,r,n,r,n,i,e,i];return new S(s,"XY",[s.length])}t.s(["default",0,S,"fromExtent",0,I],471733);var A=t.i(403970),M=t.i(853420),b=t.i(27749);function P(t,e,i,n){let r=(0,h.getWidth)(e)/i[0],s=(0,h.getHeight)(e)/i[1];return n?Math.min(t,Math.max(r,s)):Math.min(t,Math.min(r,s))}function T(t,e,i){let n=Math.min(t,e);return n*=Math.log(1+50*Math.max(0,t/e-1))/50+1,i&&(n=Math.max(n,i)/(Math.log(1+50*Math.max(0,i/t-1))/50+1)),(0,A.clamp)(n,i/2,2*e)}function O(t,e,i,n,r){return i=void 0===i||i,function(s,o,a,l){if(void 0!==s){let o=n?P(t,n,a,r):t;return i&&l?T(s,o,e):(0,A.clamp)(s,e,o)}}}function L(t){if(void 0!==t)return 0}function D(t){if(void 0!==t)return t}function N(t){let e=2*Math.PI/t;return function(t,i){return i?t:void 0!==t?t=Math.floor(t/e+.5)*e:void 0}}function F(t){let e=void 0===t?(0,A.toRadians)(5):t;return function(t,i){return i||void 0===t?t:Math.abs(t)<=e?0:t}}t.s(["createSnapToN",0,N,"createSnapToZero",0,F,"disable",0,L,"none",0,D],608580),t.s(["DEFAULT_MAX_ZOOM",0,42,"DEFAULT_TILE_SIZE",0,256],152062);class k extends e.default{constructor(t){super(),this.on,this.once,this.un,t=Object.assign({},t),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=(0,M.createProjection)(t.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,t.projection&&(0,M.disableCoordinateWarning)(),t.center&&(t.center=(0,M.fromUserCoordinate)(t.center,this.projection_)),t.extent&&(t.extent=(0,M.fromUserExtent)(t.extent,this.projection_)),this.applyOptions_(t)}applyOptions_(t){let e=Object.assign({},t);for(let t in n.default)delete e[t];this.setProperties(e,!0);let i=function(t){var e,i,n,s,o,a;let l,u,d,c=void 0!==t.minZoom?t.minZoom:0,g=void 0!==t.maxZoom?t.maxZoom:28,f
1=void 0!==t.zoomFactor?t.zoomFactor:2,_=void 0!==t.multiWorld&&t.multiWorld,p=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,m=void 0!==t.showFullExtent&&t.showFullExtent,y=(0,M.createProjection)(t.projection,"EPSG:3857"),v=y.getExtent(),E=t.constrainOnlyCenter,C=t.extent;if(!_&&!C&&y.isGlobal()&&(E=!1,C=v),void 0!==t.resolutions){let n=t.resolutions;(u=n[c],d=void 0!==n[g]?n[g]:n[n.length-1],t.constrainResolution)?(e=p,i=!E&&C,e=void 0===e||e,l=function(t,s,o,a){if(void 0!==t){let l=n[0],h=n[n.length-1],u=i?P(l,i,o,m):l;if(a)return e?T(t,u,h):(0,A.clamp)(t,h,u);let d=Math.min(u,t),c=Math.floor((0,r.linearFindNearest)(n,d,s));return n[c]>u&&c<n.length-1?n[c+1]:n[c]}}):l=O(u,d,p,!E&&C,m)}else{let e=(v?Math.max((0,h.getWidth)(v),(0,h.getHeight)(v)):360*b.METERS_PER_UNIT.degrees/y.getMetersPerUnit())/256/1;(void 0!==(u=t.maxResolution)?c=0:u=e/Math.pow(f,c),void 0===(d=t.minResolution)&&(d=void 0!==t.maxZoom?void 0!==t.maxResolution?u/Math.pow(f,g):e/Math.pow(f,g):e/0x10000000),g=c+Math.floor(Math.log(u/d)/Math.log(f)),d=u/Math.pow(f,g-c),t.constrainResolution)?(n=u,s=d,o=p,a=!E&&C,o=void 0===o||o,s=void 0!==s?s:0,l=function(t,e,i,r){if(void 0!==t){let l=a?P(n,a,i,m):n;if(r)return o?T(t,l,s):(0,A.clamp)(t,s,l);let h=Math.max(Math.ceil(Math.log(n/l)/Math.log(f)-1e-9),Math.floor(Math.log(n/Math.min(l,t))/Math.log(f)+(-(.499999999*e)+.5))),u=n/Math.pow(f,h);return(0,A.clamp)(u,s,l)}}):l=O(u,d,p,!E&&C,m)}return{constraint:l,maxResolution:u,minResolution:d,minZoom:c,zoomFactor:f}}(t);this.maxResolution_=i.maxResolution,this.minResolution_=i.minResolution,this.zoomFactor_=i.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=i.minZoom;let s=function(t){if(void 0!==t.extent){let e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return(0,o.createExtent)(t.extent,t.constrainOnlyCenter,e)}let e=(0,M.createProjection)(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&e.isGlobal()){let t=e.getExtent().slice();return t[0]=-1/0,t[2]=1/0,(0,o.createExtent)(t,!1,!1)}return o.none}(t),a=i.constraint,l=function(t){if(void 0===t.enableRotation||t.enableRotation){let e=t.constrainRotation;return void 0===e||!0===e?F():!1===e?D:"number"==typeof e?N(e):D}return L}(t);this.constraints_={center:s,resolution:a,rotation:l},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom)}get padding(){return this.padding_}set padding(t){let e=this.padding_;this.padding_=t;let i=this.getCenterInternal();if(i){let n=t||[0,0,0,0];e=e||[0,0,0,0];let r=this.getResolution(),s=r/2*(n[3]-e[3]+e[1]-n[1]),o=r/2*(n[0]-e[0]+e[2]-n[2]);this.setCenterInternal([i[0]+s,i[1]-o])}}getUpdatedOptions_(t){let e=this.getProperties();return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object.assign({},e,t)}animate(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);let e=Array(arguments.length);for(let t=0;t<e.length;++t){let i=arguments[t];i.center&&((i=Object.assign({},i)).center=(0,M.fromUserCoordinate)(i.center,this.getProjection())),i.anchor&&((i=Object.assign({},i)).anchor=(0,M.fromUserCoordinate)(i.anchor,this.getProjection())),e[t]=i}this.animateInternal.apply(this,e)}animateInternal(t){let e,n=arguments.length;n>1&&"function"==typeof arguments[n-1]&&(e=arguments[n-1],--n);let r=0;for(;r<n&&!this.isDef();++r){let t=arguments[r];t.center&&this.setCenterInternal(t.center),void 0!==t.zoom?this.setZoom(t.zoom):t.resolution&&this.setResolution(t.resolution),void 0!==t.rotation&&this.setRotation(t.rotation)}if(r===n){e&&z(e,!0);return}let s=Date.now(),o=this.targetCenter_.slice(),h=this.targetResolution_,u=this.targetRotation_,d=[];for(;r<n;++r){var c;let t=arguments[r],i={start:s,complete:!1,anchor:t.anchor,duration:void 0!==t.duration?t.duration:1e3,easing:t.easing||l.inAndOut,callback:e};if(t.center&&(i.sourceCenter=o,i.targetCenter=t.center.slice(),o=i.targetCenter),void 0!==t.zoom?(i.sourceResolution=h,i.targetResolution=this.getResolutionForZoom(t.zoom),h=i.targetResolution):t.resolution&&(i.sourceResolution=h,i.targetResolution=t.resolution,h=i.targetResolution),void 0!==t.rotation){i.sourceRotation=u;let e=(0,A.modulo)(t.rotation-u+Math.PI,2*Math.PI)-Math.PI;i.targetRotation=u+e,u=i.targetRotation}(!(c=i).sourceCenter||!c.targetCenter||(0,a.equals)(c.sourceCenter,c.targetCenter))&&c.sourceResolution===c.targetResolution&&c.sourceRotation===c.targetRotation?i.complete=!0:s+=i.duration,d.push(i)}this.animations_.push(d),this.setHint(i.default.ANIMATING,1),this.updateAnimations_()}getAnimating(){return this.hints_[i.default.ANIMATING]>0}getInteracting(){return this.hints_[i.default.INTERACTING]>0}cancelAnimations(){let t;this.setHint(i.default.ANIMATING,-this.hints_[i.default.ANIMATING]);for(let e=0,i=this.animations_.length;e<i;++e){let i=this.animations_[e];
1if(i[0].callback&&z(i[0].callback,!1),!t)for(let e=0,n=i.length;e<n;++e){let n=i[e];if(!n.complete){t=n.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN}updateAnimations_(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),!this.getAnimating())return;let t=Date.now(),e=!1;for(let n=this.animations_.length-1;n>=0;--n){let r=this.animations_[n],s=!0;for(let i=0,n=r.length;i<n;++i){let n=r[i];if(n.complete)continue;let o=t-n.start,a=n.duration>0?o/n.duration:1;a>=1?(n.complete=!0,a=1):s=!1;let l=n.easing(a);if(n.sourceCenter){let t=n.sourceCenter[0],e=n.sourceCenter[1],i=n.targetCenter[0],r=n.targetCenter[1];this.nextCenter_=n.targetCenter;let s=t+l*(i-t),o=e+l*(r-e);this.targetCenter_=[s,o]}if(n.sourceResolution&&n.targetResolution){let t=1===l?n.targetResolution:n.sourceResolution+l*(n.targetResolution-n.sourceResolution);if(n.anchor){let e=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(t,0,e,!0);this.targetCenter_=this.calculateCenterZoom(i,n.anchor)}this.nextResolution_=n.targetResolution,this.targetResolution_=t,this.applyTargetState_(!0)}if(void 0!==n.sourceRotation&&void 0!==n.targetRotation){let t=1===l?(0,A.modulo)(n.targetRotation+Math.PI,2*Math.PI)-Math.PI:n.sourceRotation+l*(n.targetRotation-n.sourceRotation);if(n.anchor){let e=this.constraints_.rotation(t,!0);this.targetCenter_=this.calculateCenterRotate(e,n.anchor)}this.nextRotation_=n.targetRotation,this.targetRotation_=t}if(this.applyTargetState_(!0),e=!0,!n.complete)break}if(s){this.animations_[n]=null,this.setHint(i.default.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;let t=r[0].callback;t&&z(t,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let i,n=this.getCenterInternal();return void 0!==n&&(i=[n[0]-e[0],n[1]-e[1]],(0,a.rotate)(i,t-this.getRotation()),(0,a.add)(i,e)),i}calculateCenterZoom(t,e){let i,n=this.getCenterInternal(),r=this.getResolution();return void 0!==n&&void 0!==r&&(i=[e[0]-t*(e[0]-n[0])/r,e[1]-t*(e[1]-n[1])/r]),i}getViewportSize_(t){let e=this.viewportSize_;if(t){let i=e[0],n=e[1];return[Math.abs(i*Math.cos(t))+Math.abs(n*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(n*Math.cos(t))]}return e}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){let t=this.getCenterInternal();return t?(0,M.toUserCoordinate)(t,this.getProjection()):t}getCenterInternal(){return this.get(n.default.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){let e=this.calculateExtentInternal(t);return(0,M.toUserExtent)(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();let e=this.getCenterInternal();(0,s.assert)(e,"The view center is not defined");let i=this.getResolution();(0,s.assert)(void 0!==i,"The view resolution is not defined");let n=this.getRotation();return(0,s.assert)(void 0!==n,"The view rotation is not defined"),(0,h.getForViewAndSize)(e,i,n,t)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))}setConstrainResolution(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))}getProjection(){return this.projection_}getResolution(){return this.get(n.default.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal((0,M.fromUserExtent)(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){return e=e||this.getViewportSizeMinusPadding_(),Math.max((0,h.getWidth)(t)/e[0],(0,h.getHeight)(t)/e[1])}getResolutionForValueFunction(t){t=t||2;let e=this.getConstrainedResolution(this.maxResolution_),i=Math.log(e/this.minResolution_)/Math.log(t);return function(n){return e/Math.pow(t,n*i)}}getRotation(){return this.get(n.default.ROTATION)}getValueForResolutionFunction(t){let e=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),n=Math.log(i/this.minResolution_)/e;return function(t){return Math.log(i/t)/e/n}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t),i=this.padding_;return i&&(e=[e[0]-i[1]-i[3],e[1]-i[0]-i[2]]),e}getState(){let t=this.getProjection(),e=this.getResolution(),i=this.getRotation(),n=this.getCenterInternal(),r=this.padding_;if(r){let t=this.getViewportSizeMinusPadding_();n=K(n,this.getViewportSize_(),[t[0]/2+r[3],t[1]/2+r[0]],e,i)}return{center:n.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e,i,n=this.minZoom_||0;if(this.resolutions_){let s=(0,r.linearFindNearest)(this.resolutions_,t,1);n=s,e=this.resolutions_[s],i=s==this.resolutions_.length-1?2:e/this.resolutions_[s+1]}else e=this.maxResolution_,i=this.zoomFactor_;return n+Math.log(e/t)/Math.log(i)}getResolutionForZoom(t){if(this.resolutions_?.length){if(1===this.resolutions_.length)return this.resolutions_[0];let e=(0,A.clamp)(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(i,(0,A.clamp)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}
1fit(t,e){let i;if((0,s.assert)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,"Invalid extent or geometry provided as `geometry`"),Array.isArray(t))(0,s.assert)(!(0,h.isEmpty)(t),"Cannot fit empty extent provided as `geometry`"),i=I((0,M.fromUserExtent)(t,this.getProjection()));else if("Circle"===t.getType()){let e=(0,M.fromUserExtent)(t.getExtent(),this.getProjection());(i=I(e)).rotate(this.getRotation(),(0,h.getCenter)(e))}else{let e=(0,M.getUserProjection)();i=e?t.clone().transform(e,this.getProjection()):t}this.fitInternal(i,e)}rotatedExtentForGeometry(t){let e=this.getRotation(),i=Math.cos(e),n=Math.sin(-e),r=t.getFlatCoordinates(),s=t.getStride(),o=Infinity,a=Infinity,l=-1/0,h=-1/0;for(let t=0,e=r.length;t<e;t+=s){let e=r[t]*i-r[t+1]*n,s=r[t]*n+r[t+1]*i;o=Math.min(o,e),a=Math.min(a,s),l=Math.max(l,e),h=Math.max(h,s)}return[o,a,l,h]}fitInternal(t,e){let i,n=(e=e||{}).size;n||(n=this.getViewportSizeMinusPadding_());let r=void 0!==e.padding?e.padding:[0,0,0,0],s=void 0!==e.nearest&&e.nearest;i=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.getResolutionForZoom(e.maxZoom):0;let o=this.rotatedExtentForGeometry(t),a=this.getResolutionForExtentInternal(o,[n[0]-r[1]-r[3],n[1]-r[0]-r[2]]);a=isNaN(a)?i:Math.max(a,i),a=this.getConstrainedResolution(a,+!s);let l=this.getRotation(),d=Math.sin(l),c=Math.cos(l),g=(0,h.getCenter)(o);g[0]+=(r[1]-r[3])/2*a,g[1]+=(r[0]-r[2])/2*a;let f=g[0]*c-g[1]*d,_=g[1]*c+g[0]*d,p=this.getConstrainedCenter([f,_],a),m=e.callback?e.callback:u.VOID;void 0!==e.duration?this.animateInternal({resolution:a,center:p,duration:e.duration,easing:e.easing},m):(this.targetResolution_=a,this.targetCenter_=p,this.applyTargetState_(!1,!0),z(m,!0))}centerOn(t,e,i){this.centerOnInternal((0,M.fromUserCoordinate)(t,this.getProjection()),e,i)}
1centerOnInternal(t,e,i){this.setCenterInternal(K(t,e,i,this.getResolution(),this.getRotation()))}calculateCenterShift(t,e,i,n){let r,s=this.padding_;if(s&&t){let o=this.getViewportSizeMinusPadding_(-i),a=K(t,n,[o[0]/2+s[3],o[1]/2+s[0]],e,i);r=[t[0]-a[0],t[1]-a[1]]}return r}isDef(){return!!this.getCenterInternal()&&void 0!==this.getResolution()}adjustCenter(t){let e=(0,M.toUserCoordinate)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])}adjustCenterInternal(t){let e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])}adjustResolution(t,e){e=e&&(0,M.fromUserCoordinate)(e,this.getProjection()),this.adjustResolutionInternal(t,e)}adjustResolutionInternal(t,e){let i=this.getAnimating()||this.getInteracting(),n=this.getViewportSize_(this.getRotation()),r=this.constraints_.resolution(this.targetResolution_*t,0,n,i);e&&(this.targetCenter_=this.calculateCenterZoom(r,e)),this.targetResolution_*=t,this.applyTargetState_()}adjustZoom(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)}adjustRotation(t,e){e&&(e=(0,M.fromUserCoordinate)(e,this.getProjection())),this.adjustRotationInternal(t,e)}adjustRotationInternal(t,e){let i=this.getAnimating()||this.getInteracting(),n=this.constraints_.rotation(this.targetRotation_+t,i);e&&(this.targetCenter_=this.calculateCenterRotate(n,e)),this.targetRotation_+=t,this.applyTargetState_()}setCenter(t){this.setCenterInternal(t?(0,M.fromUserCoordinate)(t,this.getProjection()):t)}setCenterInternal(t){this.targetCenter_=t,this.applyTargetState_()}setHint(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]}setResolution(t){this.targetResolution_=t,this.applyTargetState_()}setRotation(t){this.targetRotation_=t,this.applyTargetState_()}setZoom(t){this.setResolution(this.getResolutionForZoom(t))}applyTargetState_(t,e){let i=this.getAnimating()||this.getInteracting()||e,r=this.constraints_.rotation(this.targetRotation_,i),s=this.getViewportSize_(r),o=this.constraints_.resolution(this.targetResolution_,0,s,i),l=this.constraints_.center(this.targetCenter_,o,s,i,this.calculateCenterShift(this.targetCenter_,o,r,s));this.get(n.default.ROTATION)!==r&&this.set(n.default.ROTATION,r),this.get(n.default.RESOLUTION)!==o&&(this.set(n.default.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),l&&this.get(n.default.CENTER)&&(0,a.equals)(this.get(n.default.CENTER),l)||this.set(n.default.CENTER,l),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0}resolveConstraints(t,e,i){t=void 0!==t?t:200;let n=this.constraints_.rotation(this.targetRotation_),r=this.getViewportSize_(n),s=this.constraints_.resolution(this.targetResolution_,e||0,r),o=this.constraints_.center(this.targetCenter_,s,r,!1,this.calculateCenterShift(this.targetCenter_,s,n,r));if(0===t&&!this.cancelAnchor_){this.targetResolution_=s,this.targetRotation_=n,this.targetCenter_=o,this.applyTargetState_();return}i=i||(0===t?this.cancelAnchor_:void 0),this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===n&&this.getCenterInternal()&&(0,a.equals)(this.getCenterInternal(),o)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:n,center:o,resolution:s,duration:t,easing:l.easeOut,anchor:i}))}beginInteraction(){this.resolveConstraints(0),this.setHint(i.default.INTERACTING,1)}endInteraction(t,e,i){i=i&&(0,M.fromUserCoordinate)(i,this.getProjection()),this.endInteractionInternal(t,e,i)}endInteractionInternal(t,e,n){this.getInteracting()&&(this.setHint(i.default.INTERACTING,-1),this.resolveConstraints(t,e,n))}getConstrainedCenter(t,e){let i=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),i)}getConstrainedZoom(t,e){let i=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(i,e))}getConstrainedResolution(t,e){e=e||0;let i=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,e,i)}}function z(t,e){setTimeout(function(){t(e)},0)}function K(t,e,i,n,r){let s=Math.cos(-r),o=Math.sin(-r),a=t[0]*s-t[1]*o,l=t[1]*s+t[0]*o;return a+=(e[0]/2-i[0])*n,[a*s-(l+=(i[1]-e[1]/2)*n)*(o=-o),l*s+a*o]}t.s(["default",0,k],964829)},56513,t=>{"use strict";t.s(["assert",0,function(t,e){if(!t)throw Error(e)}])},41436,t=>{"use strict";var e=t.i(403970);t.s(["createExtent",0,function(t,i,n){return function(r,s,o,a,l){if(!r)return;if(!s&&!i)return r;let h=i?0:o[0]*s,u=i?0:o[1]*s,d=l?l[0]:0,c=l?l[1]:0,g=t[0]+h/2+d,f=t[2]-h/2+d,_=t[1]+u/2+c,p=t[3]-u/2+c;g>f&&(f=g=(f+g)/2),_>p&&(p=_=(p+_)/2);let m=(0,e.clamp)(r[0],g,f),y=(0,e.clamp)(r[1],_,p);if(a&&n&&s){let t=30*s;m+=-t*Math.log(1+Math.max(0,g-r[0])/t)+t*Math.log(1+Math.max(0,r[0]-f)/t),y+=-t*Math.log(1+Math.max(0,_-r[1])/t)+t*Math.log(1+Math.max(0,r[1]-p)/t)}return[m,y]}},"none",0,function(t){return t}])},693869,t=>{"use strict";t.s(["warn",0,function(...t){console.warn(...t)}])},840399,t=>{"use strict";var e=t.i(256843);t.s(["add",0,function(t,e){return t[0]+=+e[0],t[1]+=+e[1],t},"equals",0,function(t,e){let i=!0;for(let n=t.length-1;n>=0;--n)if(t[n]!=e[n]){i=!1;break}return i},"rotate",0,function(t,e){let i=Math.cos(e),n=Math.sin(e),r=t[0]*i-t[1]*n,s=t[1]*i+t[0]*n;return t[0]=r,t[1]=s,t},"scale",0,function(t,e){return t[0]*=e,t[1]*=e,t},"wrapX",0,function(t,i){if(i.canWrapX()){var n,r,s;let o,a,l=(0,e.getWidth)(i.getExtent()),h=(n=t,r=i,s=l,o=r.getExtent(),a=0,r.canWrapX()&&(n[0]<o[0]||n[0]>o[2])&&(s=s||(0,e.getWidth)(o),a=Math.floor((n[0]-o[0])/s)),a);h&&(t[0]-=h*l)}return t}])},677153,t=>{"use strict";
1let e=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-z0-9]+?)\\s*$","i"),i=["style","variant","weight","size","lineHeight","family"],n={normal:400,bold:700};t.s(["CLASS_COLLAPSED",0,"ol-collapsed","CLASS_CONTROL",0,"ol-control","CLASS_HIDDEN",0,"ol-hidden","CLASS_SELECTABLE",0,"ol-selectable","CLASS_UNSELECTABLE",0,"ol-unselectable","fontWeights",0,n,"getFontParameters",0,function(t){let r=t.match(e);if(!r)return null;let s={lineHeight:"normal",size:"1.2em",style:"normal",weight:"400",variant:"normal"};for(let t=0,e=i.length;t<e;++t){let e=r[t+1];void 0!==e&&(s[i[t]]="string"==typeof e?e.trim():e)}return isNaN(Number(s.weight))&&s.weight in n&&(s.weight=n[s.weight]),s.families=s.family.split(/,\s?/).map(t=>t.trim().replace(/^['"]|['"]$/g,"")),s}])},413685,t=>{"use strict";let e;var i=t.i(888264);function n(t,e,n,r){let s;return s=n&&n.length?n.shift():i.WORKER_OFFSCREEN_CANVAS?new class extends OffscreenCanvas{style={}}(t??300,e??150):document.createElement("canvas"),t&&(s.width=t),e&&(s.height=e),s.getContext("2d",r)}t.s(["createCanvasContext2D",0,n,"createMockDiv",0,function(){return new Proxy({childNodes:[],appendChild:function(t){return this.childNodes.push(t),t},remove:function(){},removeChild:function(t){let e=this.childNodes.indexOf(t);if(-1===e)throw Error("Node to remove was not found");return this.childNodes.splice(e,1),t},insertBefore:function(t,e){let i=this.childNodes.indexOf(e);if(-1===i)throw Error("Reference node not found");return this.childNodes.splice(i,0,t),t},style:{}},{get:(t,e,i)=>"firstElementChild"===e?t.childNodes.length>0?t.childNodes[0]:null:Reflect.get(t,e,i)})},"getSharedCanvasContext2D",0,function(){return e||(e=n(1,1)),e},"isCanvas",0,function(t){return"u">typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"u">typeof OffscreenCanvas&&t instanceof OffscreenCanvas},"outerHeight",0,function(t){let e=t.offsetHeight,i=getComputedStyle(t);return e+(parseInt(i.marginTop,10)+parseInt(i.marginBottom,10))},"outerWidth",0,function(t){let e=t.offsetWidth,i=getComputedStyle(t);return e+(parseInt(i.marginLeft,10)+parseInt(i.marginRight,10))},"releaseCanvas",0,function(t){let e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)},"removeChildren",0,function(t){for(;t.lastChild;)t.lastChild.remove()},"replaceChildren",0,function(t,e){let i=t.childNodes;for(let n=0;;++n){let r=i[n],s=e[n];if(!r&&!s)break;if(r!==s){if(!r){t.appendChild(s);continue}if(!s){t.removeChild(r),--n;continue}t.insertBefore(s,r)}}},"replaceNode",0,function(t,e){let i=e.parentNode;i&&i.replaceChild(t,e)}])},811365,t=>{"use strict";function e(t){return Math.pow(t,3)}t.s(["easeIn",0,e,"easeOut",0,function(t){return 1-e(1-t)},"inAndOut",0,function(t){return 3*t*t-2*t*t*t},"linear",0,function(t){return t}])},256843,t=>{"use strict";function e(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function i(t,e,i){return t[0]<=e&&e<=t[2]&&t[1]<=i&&i<=t[3]}function n(t,e){let i=t[0],n=t[1],r=t[2],s=t[3],o=e[0],a=e[1],l=0;return o<i?l|=16:o>r&&(l|=4),a<n?l|=8:a>s&&(l|=2),0===l&&(l=1),l}function r(){return[1/0,1/0,-1/0,-1/0]}function s(t,e,i,n,r){return r?(r[0]=t,r[1]=e,r[2]=i,r[3]=n,r):[t,e,i,n]}function o(t){return s(1/0,1/0,-1/0,-1/0,t)}function a(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function l(t,e,i,n,r){for(;i<n;i+=r){var s,o,a;s=t,o=e[i],a=e[i+1],s[0]=Math.min(s[0],o),s[1]=Math.min(s[1],a),s[2]=Math.max(s[2],o),s[3]=Math.max(s[3],a)}return t}function h(t){return[t[0],t[1]]}function u(t){return[t[2],t[1]]}function d(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function c(t,e,i,n){let r=e*n[0]/2,s=e*n[1]/2,o=Math.cos(i),a=Math.sin(i),l=r*o,h=r*a,u=s*o,d=s*a,c=t[0],g=t[1];return[c-l+d,g-h-u,c-l-d,g-h+u,c+l-d,g+h+u,c+l+d,g+h-u,c-l+d,g-h-u]}function g(t){return t[3]-t[1]}function f(t,i){if(!y(t,i))return[t.slice()];if(e(i,t))return[];
1let[n,r,s,o]=t,a=Math.max(n,i[0]),l=Math.max(r,i[1]),h=Math.min(s,i[2]),u=Math.min(o,i[3]),d=[];return a>n&&d.push([n,r,a,o]),h<s&&d.push([h,r,s,o]),l>r&&d.push([a,r,h,l]),u<o&&d.push([a,u,h,o]),d}function _(t){return[t[0],t[3]]}function p(t){return[t[2],t[3]]}function m(t){return t[2]-t[0]}function y(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function v(t){return t[2]<t[0]||t[3]<t[1]}t.s(["applyTransform",0,function(t,e,i,n){let r,a;if(v(t))return o(i);let l=[];if(n>1){let e=t[2]-t[0],i=t[3]-t[1];for(let r=0;r<n;++r)l.push(t[0]+e*r/n,t[1],t[2],t[1]+i*r/n,t[2]-e*r/n,t[3],t[0],t[3]-i*r/n)}else l=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(l,l,2);let h=[],u=[];for(let t=0,e=l.length;t<e;t+=2)h.push(l[t]),u.push(l[t+1]);return r=Math.min.apply(null,h),a=Math.min.apply(null,u),s(r,a,Math.max.apply(null,h),Math.max.apply(null,u),i)},"boundingExtent",0,function(t){let e=r();for(let i=0,n=t.length;i<n;++i)a(e,t[i]);return e},"buffer",0,function(t,e,i){return i?(i[0]=t[0]-e,i[1]=t[1]-e,i[2]=t[2]+e,i[3]=t[3]+e,i):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]},"clone",0,function(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()},"closestSquaredDistanceXY",0,function(t,e,i){let n,r;return(n=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*n+(r=i<t[1]?t[1]-i:t[3]<i?i-t[3]:0)*r},"containsCoordinate",0,function(t,e){return i(t,e[0],e[1])},"containsExtent",0,e,"containsXY",0,i,"createEmpty",0,r,"createOrUpdate",0,s,"createOrUpdateEmpty",0,o,"createOrUpdateFromCoordinate",0,function(t,e){let i=t[0],n=t[1];return s(i,n,i,n,e)},"createOrUpdateFromFlatCoordinates",0,function(t,e,i,n,r){return l(o(r),t,e,i,n)},"equals",0,function(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]},"extend",0,function(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t},"extendCoordinate",0,a,"extendFlatCoordinates",0,l,"forEachCorner",0,function(t,e){let i;return!!((i=e(h(t)))||(i=e(u(t)))||(i=e(p(t)))||(i=e(_(t))))&&i},"getArea",0,function(t){let e=0;return v(t)||(e=m(t)*g(t)),e},"getBottomLeft",0,h,"getBottomRight",0,u,"getCenter",0,d,"getCorner",0,function(t,e){let i;if("bottom-left"===e)i=h(t);else if("bottom-right"===e)i=u(t);else if("top-left"===e)i=_(t);else if("top-right"===e)i=p(t);else throw Error("Invalid corner");return i},"getDifference",0,f,"getForViewAndSize",0,function(t,e,i,n,r){let[o,a,l,h,u,d,g,f]=c(t,e,i,n);return s(Math.min(o,l,u,g),Math.min(a,h,d,f),Math.max(o,l,u,g),Math.max(a,h,d,f),r)},"getHeight",0,g,"getIntersection",0,function(t,e,i){let n=i||r();return y(t,e)?(t[0]>e[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]<e[2]?n[2]=t[2]:n[2]=e[2],t[3]<e[3]?n[3]=t[3]:n[3]=e[3]):o(n),n},"getRotatedViewport",0,c,"getTopLeft",0,_,"getTopRight",0,p,"getWidth",0,m,"intersects",0,y,"intersectsSegment",0,function(t,e,i){let r=!1,s=n(t,e),o=n(t,i);if(1===s||1===o)r=!0;else{let n,a,l=t[0],h=t[1],u=t[2],d=t[3],c=e[0],g=e[1],f=i[0],_=i[1],p=(_-g)/(f-c);2&o&&!(2&s)&&(r=(n=f-(_-d)/p)>=l&&n<=u),r||!(4&o)||4&s||(r=(a=_-(f-u)*p)>=h&&a<=d),r||!(8&o)||8&s||(r=(n=f-(_-h)/p)>=l&&n<=u),r||!(16&o)||16&s||(r=(a=_-(f-l)*p)>=h&&a<=d)}return r},"isEmpty",0,v,"returnOrUpdate",0,function(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t},"subtractExtents",0,function(t,e){let i=[t];for(let t=0,n=e.length;t<n&&i.length>0;++t){let n=[];for(let r=0,s=i.length;r<s;++r)n.push(...f(i[r],e[t]));i=n}return i},"wrapAndSliceX",0,function(t,e,i){if(e.canWrapX()){let s=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[s[0],t[1],s[2],t[3]]];var n=t,r=e;let o=r.getExtent(),a=d(n);if(r.canWrapX()&&(a[0]<o[0]||a[0]>=o[2])){let t=m(o),e=Math.floor((a[0]-o[0])/t)*t;n[0]-=e,n[2]-=e}let l=m(s);if(m(t)>l&&!i)return[[s[0],t[1],s[2],t[3]]];if(t[0]<s[0])return[[t[0]+l,t[1],s[2],t[3]],[s[0],t[1],t[2],t[3]]];if(t[2]>s[2])return[[t[0],t[1],s[2],t[3]],[s[0],t[1],t[2]-l,t[3]]]}return[t]}],256843)},611834,637577,754152,711229,347948,t=>{"use strict";var e=t.i(256843),i=t.i(859703),n=t.i(352492),r=t.i(560676),s=t.i(201336);function o(t,e,i,n,r){r=void 0!==r?r:[];let s=0;for(let o=e;o<i;o+=n)r[s++]=t.slice(o,o+n);return r.length=s,r}function a(t,i,n,r,s){return!(0,e.forEachCorner)(s,function(e){return!l(t,i,n,r,e[0],e[1])})}function l(t,e,i,n,r,s){let o=0,a=t[i-n],l=t[i-n+1];for(;e<i;e+=n){let i=t[e],n=t[e+1];l<=s?n>s&&(i-a)*(s-l)-(r-a)*(n-l)>0&&o++:n<=s&&(i-a)*(s-l)-(r-a)*(n-l)<0&&o--,a=i,l=n}return 0!==o}function h(t,i,n,r,s,o){let a;if(o=o??(0,e.extendFlatCoordinates)((0,e.createEmpty)(),t,i,n,r),!(0,e.intersects)(s,o))return!1;if(o[0]>=s[0]&&o[2]<=s[2]||o[1]>=s[1]&&o[3]<=s[3])return!0;var l,h,u=i;for(u+=r;u<n;u+=r){if(l=t.slice(u-r,u),h=t.slice(u,u+r),a=(0,e.intersectsSegment)(s,l,h))return a}return!1}function u(t,e,i,n,r){return!!(h(t,e,i,n,r)||l(t,e,i,n,r[0],r[1])||l(t,e,i,n,r[0],r[3])||l(t,e,i,n,r[2],r[1])||l(t,e,i,n,r[2],r[3]))}t.s(["inflateCoordinates",0,o,"inflateCoordinatesArray",0,function(t,e,
1i,n,r){r=void 0!==r?r:[];let s=0;for(let a=0,l=i.length;a<l;++a){let l=i[a];r[s++]=o(t,e,l,n,r[s]),e=l}return r.length=s,r}],637577),t.s(["linearRingContainsExtent",0,a,"linearRingContainsXY",0,l,"linearRingsContainsXY",0,function(t,e,i,n,r,s){if(0===i.length||!l(t,e,i[0],n,r,s))return!1;for(let e=1,o=i.length;e<o;++e)if(l(t,i[e-1],i[e],n,r,s))return!1;return!0}],754152),t.s(["intersectsLineString",0,h,"intersectsLinearRing",0,u,"intersectsLinearRingArray",0,function(t,e,i,n,r){if(!u(t,e,i[0],n,r))return!1;if(1===i.length)return!0;for(let e=1,s=i.length;e<s;++e)if(a(t,i[e-1],i[e],n,r)&&!h(t,i[e-1],i[e],n,r))return!1;return!0}],711229);var d=t.i(403970);function c(t,e,i,n,r,s,o){let a=(i-e)/n;if(a<3){for(;e<i;e+=n)s[o++]=t[e],s[o++]=t[e+1];return o}let l=Array(a);l[0]=1,l[a-1]=1;let h=[e,i-n],u=0;for(;h.length>0;){let i=h.pop(),s=h.pop(),o=0,a=t[s],c=t[s+1],g=t[i],f=t[i+1];for(let e=s+n;e<i;e+=n){let i=t[e],n=t[e+1],r=(0,d.squaredSegmentDistance)(i,n,a,c,g,f);r>o&&(u=e,o=r)}o>r&&(l[(u-e)/n]=1,s+n<u&&h.push(s,u),u+n<i&&h.push(u,i))}for(let i=0;i<a;++i)l[i]&&(s[o++]=t[e+i*n],s[o++]=t[e+i*n+1]);return o}function g(t,e){return e*Math.round(t/e)}t.s(["douglasPeucker",0,c,"douglasPeuckerArray",0,function(t,e,i,n,r,s,o,a){for(let l=0,h=i.length;l<h;++l){let h=i[l];o=c(t,e,h,n,r,s,o),a.push(o),e=h}return o},"quantizeArray",0,function(t,e,i,n,r,s,o,a){for(let l=0,h=i.length;l<h;++l){let h=i[l];o=function(t,e,i,n,r,s,o){let a,l;if(e==i)return o;let h=g(t[e],r),u=g(t[e+1],r);e+=n,s[o++]=h,s[o++]=u;do if(a=g(t[e],r),l=g(t[e+1],r),(e+=n)==i)return s[o++]=a,s[o++]=l,o;while(a==h&&l==u)for(;e<i;){let i=g(t[e],r),d=g(t[e+1],r);if(e+=n,i==a&&d==l)continue;let c=a-h,f=l-u,_=i-h,p=d-u;if(c*p==f*_&&(c<0&&_<c||c==_||c>0&&_>c)&&(f<0&&p<f||f==p||f>0&&p>f)){a=i,l=d;continue}s[o++]=a,s[o++]=l,h=a,u=l,a=i,l=d}return s[o++]=a,s[o++]=l,o}(t,e,h,n,r,s,o),a.push(o),e=h}return o}],347948);class f extends i.default{constructor(t,e){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?this.setCoordinates(t,e):this.setFlatCoordinates(e,t)}clone(){return new f(this.flatCoordinates.slice(),this.layout)}closestPointXY(t,i,n,s){return s<(0,e.closestSquaredDistanceXY)(this.getExtent(),t,i)?s:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,r.maxSquaredDelta)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,r.assignClosestPoint)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,i,n,s))}getArea(){return(0,n.linearRing)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return o(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(t){let e=[];return e.length=c(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new f(e,"XY")}getType(){return"LinearRing"}intersectsExtent(t){return h(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,s.deflateCoordinates)(this.flatCoordinates,0,t,this.stride),this.changed()}}t.s(["default",0,f],611834)},718530,t=>{"use strict";var e=t.i(256843),i=t.i(403970),n=t.i(859703),r=t.i(201336);class s extends n.default{constructor(t,e){super(),this.setCoordinates(t,e)}clone(){let t=new s(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,n,r){let s=this.flatCoordinates,o=(0,i.squaredDistance)(t,e,s[0],s[1]);if(o<r){let t=this.stride;for(let e=0;e<t;++e)n[e]=s[e];return n.length=t,o}return r}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(t){return(0,e.createOrUpdateFromCoordinate)(this.flatCoordinates,t)}getType(){return"Point"}intersectsExtent(t){return(0,e.containsXY)(t,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,r.deflateCoordinate)(this.flatCoordinates,0,t,this.stride),this.changed()}}t.s(["default",0,s])},859703,27749,704778,853420,663932,383332,t=>{"use strict";var e,i,n=t.i(256843),r=t.i(930812),s=t.i(148349),o=t.i(940631),a=t.i(693869),l=t.i(840399),h=t.i(403970);let u={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};t.s(["METERS_PER_UNIT",0,u],27749);
1let d=class{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||u[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!!(t&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!!(this.global_&&t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}};t.s(["default",0,d],704778);let c=6378137*Math.PI,g=[-c,-c,c,c],f=[-180,-85,180,85],_=6378137*Math.log(Math.tan(Math.PI/2));class p extends d{constructor(t){super({code:t,units:"m",extent:g,global:!0,worldExtent:f,getPointResolution:function(t,e){return t/Math.cosh(e[1]/6378137)}})}}let m=[new p("EPSG:3857"),new p("EPSG:102100"),new p("EPSG:102113"),new p("EPSG:900913"),new p("http://www.opengis.net/def/crs/EPSG/0/3857"),new p("http://www.opengis.net/gml/srs/epsg.xml#3857")],y=[-180,-90,180,90],v=6378137*Math.PI/180;class E extends d{constructor(t,e){super({code:t,units:"degrees",extent:y,axisOrientation:e,global:!0,metersPerUnit:v,worldExtent:y})}}let C=[new E("CRS:84"),new E("EPSG:4326","neu"),new E("urn:ogc:def:crs:OGC:1.3:CRS84"),new E("urn:ogc:def:crs:OGC:2:84"),new E("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new E("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new E("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],x={},R={};function w(t,e,i){let n=t.getCode(),r=e.getCode();n in R||(R[n]={}),R[n][r]=i}function S(t,e){return t in R&&e in R[t]?R[t][e]:null}let I=.00669438/.99330562,A=Math.sqrt(.99330562),M=(1-A)/(1+A),b=M*M,P=b*M,T=P*M,O=T*M,L=1-.001673595-1344441707532e-16/64-15000339463446782e-22/256,D=.02008314/8+1344441707532e-16/32+13500305517102105e-21/1024,N=672220853766e-15/256+13500305517102105e-21/1024,F=10500237624412747e-21/3072,k=1.5*M-27/32*P+269/512*O,z=21/16*b-55/32*T,K=151/96*P-417/128*O,V=1097/512*T;function W(t,e,i){let n=(i.north?e:e-1e7)/.9996/(6378137*L),r=n+k*Math.sin(2*n)+z*Math.sin(4*n)+K*Math.sin(6*n)+V*Math.sin(8*n),s=Math.sin(r),o=s*s,a=Math.cos(r),l=s/a,u=l*l,d=u*u,c=I*a**2,g=c*c,f=(t-5e5)/(6378137/Math.sqrt(1-.00669438*o)*.9996),_=f*f,p=_*f,m=p*f,y=m*f,v=r-l/(.99330562/(1-.00669438*o))*(_/2-m/24*(5+3*u+10*c-4*g-9*I))+y*f/720*(61+90*u+298*c+45*d-252*I-3*g),E=(f-p/6*(1+2*u+c)+y/120*(5-2*c+28*u-3*g+8*I+24*d))/a;return E=(0,h.wrap)(E+(0,h.toRadians)(U(i.number)),-Math.PI,Math.PI),[(0,h.toDegrees)(E),(0,h.toDegrees)(v)]}function G(t,e,i){t=(0,h.wrap)(t,-180,180),e<-80?e=-80:e>84&&(e=84);let n=(0,h.toRadians)(e),r=Math.sin(n),s=Math.cos(n),o=r/s,a=o*o,l=a*a,u=(0,h.toRadians)(t),d=U(i.number),c=(0,h.toRadians)(d),g=6378137/Math.sqrt(1-.00669438*r**2),f=I*s**2,_=s*(0,h.wrap)(u-c,-Math.PI,Math.PI),p=_*_,m=p*_,y=m*_,v=y*_,E=.9996*g*(_+m/6*(1-a+f)+v/120*(5-18*a+l+72*f-58*I))+5e5,C=.9996*(6378137*(L*n-D*Math.sin(2*n)+N*Math.sin(4*n)-F*Math.sin(6*n))+g*o*(p/2+y/24*(5-a+9*f+4*f**2)+v*_/720*(61-58*a+l+600*f-330*I)));return i.north||(C+=1e7),[E,C]}function U(t){return(t-1)*6-180+3}let B=[/^EPSG:(\d+)$/,/^urn:ogc:def:crs:EPSG::(\d+)$/,/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/];function X(t){let e=0;for(let i of B){let n=t.match(i);if(n){e=parseInt(n[1]);break}}if(!e)return null;let i=0,n=!1;return(e>32700&&e<32761?i=e-32700:e>32600&&e<32661&&(n=!0,i=e-32600),i)?{number:i,north:n}:null}function H(t,e){return function(i,n,r,s){let o=i.length;r=r>1?r:2,s=s??r,n||(n=r>2?i.slice():Array(o));for(let r=0;r<o;r+=s){let s=t(i[r],i[r+1],e);n[r]=s[0],n[r+1]=s[1]}return n}}function q(t,e,i){i=i||6371008.8;let n=(0,h.toRadians)(t[1]),r=(0,h.toRadians)(e[1]),s=(r-n)/2,o=(0,h.toRadians)(e[0]-t[0])/2,a=Math.sin(s)*Math.sin(s)+Math.sin(o)*Math.sin(o)*Math.cos(n)*Math.cos(r);return 2*i*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}let Y=[function(t){let e=X(t.getCode());return e?{forward:H(G,e),inverse:H(W,e)}:null}],Z=[function(t){return X(t)?new d({code:t,units:"m"}):null}],j=!0;function $(t){j=!(void 0===t||t)}function J(t,e){if(void 0!==e)for(let i=0,n=t.length;i<n;++i)e[i]=t[i];else e=t.slice();return e}function Q(t){var e;e=t.getCode(),x[e]=t,w(t,t,J)}function tt(t){if("string"!=typeof t)return t;let e=x[t]||x[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null;if(e)return e;for(let e of Z){let i=e(t);if(i)return i}return null}function te(t){t.forEach(Q),t.forEach(function(e){t.forEach(function(t){e!==t&&w(e,t,J)})})}function ti(t,e){let i=t.getCode(),n=e.getCode(),r=S(i,n);if(r)return r;let s=null,o=null;for(let i of Y)s||(s=i(t)),o||(o=i(e));if(!s&&!o)return null;let a="EPSG:4326";if(o)if(s)r=tn(s.inverse,o.forward);else{let t=S(i,a);t&&(r=tn(t,o.forward))}else{let t=S(a,n);t&&(r=tn(s.inverse,t))}return r&&(Q(t),Q(e),w(t,e,r)),r}function tn(t,e){return function(i,n,r,s){return e(n=t(i,n,r,s),n,r,s)}}function tr(t,e){return ti(tt(t),tt(e))}function ts(t,e,i){let n=tr(e,i);if(!n){let t=tt(e).getCode(),n=tt(i).getCode();throw Error(`No transform available between ${t} and ${n}`)}return n(t,void 0,t.length)}
1te(m),te(C),e=function(t,e,i,n){let r=t.length;i=i>1?i:2,n=n??i,void 0===e&&(e=i>2?t.slice():Array(r));for(let i=0;i<r;i+=n){e[i]=c*t[i]/180;let n=6378137*Math.log(Math.tan(Math.PI*(+t[i+1]+90)/360));n>_?n=_:n<-_&&(n=-_),e[i+1]=n}return e},i=function(t,e,i,n){let r=t.length;i=i>1?i:2,n=n??i,void 0===e&&(e=i>2?t.slice():Array(r));for(let i=0;i<r;i+=n)e[i]=180*t[i]/c,e[i+1]=360*Math.atan(Math.exp(t[i+1]/6378137))/Math.PI-90;return e},C.forEach(function(t){m.forEach(function(n){w(t,n,e),w(n,t,i)})}),t.s(["createProjection",0,function(t,e){return t?"string"==typeof t?tt(t):t:tt(e)},"createTransformFromCoordinateTransform",0,function(t){return function(e,i,n,r){let s=e.length;n=void 0!==n?n:2,r=r??n,i=void 0!==i?i:Array(s);for(let o=0;o<s;o+=r){let s=t(e.slice(o,o+n)),a=s.length;for(let t=0,n=r;t<n;++t)i[o+t]=t>=a?e[o+t]:s[t]}return i}},"disableCoordinateWarning",0,$,"equivalent",0,function(t,e){if(t===e)return!0;let i=t.getUnits()===e.getUnits();return t.getCode()===e.getCode()?i:ti(t,e)===J&&i},"fromLonLat",0,function(t,e){return $(),ts(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")},"fromUserCoordinate",0,function(t,e){return j&&!(0,l.equals)(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(j=!1,(0,a.warn)("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t},"fromUserExtent",0,function(t,e){return t},"get",0,tt,"getPointResolution",0,function(t,e,i,n){let r,s=(t=tt(t)).getPointResolutionFunc();if(s){if(r=s(e,i),n&&n!==t.getUnits()){let e=t.getMetersPerUnit();e&&(r=r*e/u[n])}}else{let s=t.getUnits();if(("degrees"!=s||n)&&"degrees"!=n){let o=ti(t,tt("EPSG:4326"));if(o||"degrees"===s){let t=[i[0]-e/2,i[1],i[0]+e/2,i[1],i[0],i[1]-e/2,i[0],i[1]+e/2];r=(q((t=o(t,t,2)).slice(0,2),t.slice(2,4))+q(t.slice(4,6),t.slice(6,8)))/2}else r=e*t.getMetersPerUnit();let a=n?u[n]:t.getMetersPerUnit();void 0!==a&&(r/=a)}else r=e}return r},"getTransform",0,tr,"getUserProjection",0,function(){return null},"toLonLat",0,function(t,e){let i=ts(t,void 0!==e?e:"EPSG:3857","EPSG:4326"),n=i[0];return(n<-180||n>180)&&(i[0]=(0,h.modulo)(n+180,360)-180),i},"toUserCoordinate",0,function(t,e){return t},"toUserExtent",0,function(t,e){return t},"transform",0,ts],853420);var to=t.i(56513);let ta=[1,0,0,1,0,0],tl=Array(6);function th(){return ta.slice(0)}function tu(t,e){let i=t[0],n=t[1],r=t[2],s=t[3],o=t[4],a=t[5],l=e[0],h=e[1],u=e[2],d=e[3],c=e[4],g=e[5];return t[0]=i*l+r*h,t[1]=n*l+s*h,t[2]=i*u+r*d,t[3]=n*u+s*d,t[4]=i*c+r*g+o,t[5]=n*c+s*g+a,t}function td(t,e,i,n,r,s,o){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t[4]=s,t[5]=o,t}function tc(t,e,i,n,r,s,o,a){let l=Math.sin(s),h=Math.cos(s);return t[0]=n*h,t[1]=r*l,t[2]=-n*l,t[3]=r*h,t[4]=o*n*h-a*n*l+e,t[5]=o*r*l+a*r*h+i,t}let tg=[1e5,1e5,1e5,1e5,2,2];function tf(t){return t.substring(7,t.length-1).split(",").map(parseFloat)}function t_(t,e,i,n,r,s,o){s=s||[],o=o||2;let a=0;for(let l=e;l<i;l+=n){let e=t[l],i=t[l+1];s[a++]=r[0]*e+r[2]*i+r[4],s[a++]=r[1]*e+r[3]*i+r[5];for(let e=2;e<o;e++)s[a++]=t[l+e]}return s&&s.length!=a&&(s.length=a),s}function tp(t,e,i,n,r,s,o){o=o||[];let a=Math.cos(r),l=Math.sin(r),h=s[0],u=s[1],d=0;for(let r=e;r<i;r+=n){let e=t[r]-h,i=t[r+1]-u;o[d++]=h+e*a-i*l,o[d++]=u+e*l+i*a;for(let e=r+2;e<r+n;++e)o[d++]=t[e]}return o&&o.length!=d&&(o.length=d),o}function tm(t,e,i,n,r,s,o,a){a=a||[];let l=o[0],h=o[1],u=0;for(let o=e;o<i;o+=n){let e=t[o]-l,i=t[o+1]-h;a[u++]=l+r*e,a[u++]=h+s*i;for(let e=o+2;e<o+n;++e)a[u++]=t[e]}return a&&a.length!=u&&(a.length=u),a}function ty(t,e,i,n,r,s,o){o=o||[];let a=0;for(let l=e;l<i;l+=n){o[a++]=t[l]+r,o[a++]=t[l+1]+s;for(let e=l+2;e<l+n;++e)o[a++]=t[e]}return o&&o.length!=a&&(o.length=a),o}t.s(["apply",0,function(t,e){let i=e[0],n=e[1];return e[0]=t[0]*i+t[2]*n+t[4],e[1]=t[1]*i+t[3]*n+t[5],e},"compose",0,tc,"create",0,th,"equivalent",0,function(t,e){let i=tf(t),n=tf(e);for(let t=0;t<6;++t)if(0!==Math.round((i[t]-n[t])*tg[t]))return!1;return!0},"fromString",0,tf,"makeInverse",0,function(t,e){var i;let n=(i=e)[0]*i[3]-i[1]*i[2];(0,to.assert)(0!==n,"Transformation matrix cannot be inverted");let r=e[0],s=e[1],o=e[2],a=e[3],l=e[4],h=e[5];return t[0]=a/n,t[1]=-s/n,t[2]=-o/n,t[3]=r/n,t[4]=(o*h-a*l)/n,t[5]=-(r*h-s*l)/n,t},"multiply",0,tu,"reset",0,function(t){return td(t,1,0,0,1,0,0)},"rotate",0,function(t,e){let i=Math.cos(e),n=Math.sin(e);return tu(t,td(tl,i,n,-n,i,0,0))}
1,"scale",0,function(t,e,i){return tu(t,td(tl,e,0,0,i,0,0))},"toString",0,function(t){return"matrix("+t.join(", ")+")"},"translate",0,function(t,e,i){return tu(t,td(tl,1,0,0,1,e,i))}],663932),t.s(["rotate",0,tp,"scale",0,tm,"transform2D",0,t_,"translate",0,ty],383332);let tv=th(),tE=[NaN,NaN];class tC extends s.default{constructor(){super(),this.extent_=(0,n.createEmpty)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,o.memoizeOne)((t,e,i)=>{if(!i)return this.getSimplifiedGeometry(e);let n=this.clone();return n.applyTransform(i),n.getSimplifiedGeometry(e)})}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return(0,r.abstract)()}closestPointXY(t,e,i,n){return(0,r.abstract)()}containsXY(t,e){return 0===this.closestPointXY(t,e,tE,5e-324)}getClosestPoint(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e}intersectsCoordinate(t){return this.containsXY(t[0],t[1])}computeExtent(t){return(0,r.abstract)()}getExtent(t){if(this.extentRevision_!=this.getRevision()){let t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&(0,n.createOrUpdateEmpty)(t),this.extentRevision_=this.getRevision()}return(0,n.returnOrUpdate)(this.extent_,t)}rotate(t,e){(0,r.abstract)()}scale(t,e,i){(0,r.abstract)()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return(0,r.abstract)()}getType(){return(0,r.abstract)()}applyTransform(t){(0,r.abstract)()}intersectsExtent(t){return(0,r.abstract)()}translate(t,e){(0,r.abstract)()}transform(t,e){let i=tt(t),r="tile-pixels"==i.getUnits()?function(t,r,s){let o=i.getExtent(),a=i.getWorldExtent(),l=(0,n.getHeight)(a)/(0,n.getHeight)(o);tc(tv,a[0],a[3],l,-l,0,0,0);let h=t_(t,0,t.length,s,tv,r),u=tr(i,e);return u?u(h,h,s):h}:tr(i,e);return this.applyTransform(r),this}}let tx=tC;function tR(t){let e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}let tw=class extends tx{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(t){return(0,n.createOrUpdateFromFlatCoordinates)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return(0,r.abstract)()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;let e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)}getSimplifiedGeometryInternal(t){return this}getStride(){return this.stride}setFlatCoordinates(t,e){this.stride=tR(t),this.layout=t,this.flatCoordinates=e}setCoordinates(t,e){(0,r.abstract)()}setLayout(t,e,i){let n;if(t)n=tR(t);else{var r;let s;for(let t=0;t<i;++t){if(0===e.length){this.layout="XY",this.stride=2;return}e=e[0]}2==(r=n=e.length)?s="XY":3==r?s="XYZ":4==r&&(s="XYZM"),t=s}this.layout=t,this.stride=n}applyTransform(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith("XYZ")?3:2,this.stride),this.changed())}rotate(t,e){let i=this.getFlatCoordinates();if(i){let n=this.getStride();tp(i,0,i.length,n,t,e,i),this.changed()}}scale(t,e,i){void 0===e&&(e=t),i||(i=(0,n.getCenter)(this.getExtent()));let r=this.getFlatCoordinates();if(r){let n=this.getStride();tm(r,0,r.length,n,t,e,i,r),this.changed()}}translate(t,e){let i=this.getFlatCoordinates();if(i){let n=this.getStride();ty(i,0,i.length,n,t,e,i),this.changed()}}};t.s(["default",0,tw],859703)},352492,560676,t=>{"use strict";function e(t,e,i,n){let r=0,s=t[i-n],o=t[i-n+1],a=0,l=0;for(;e<i;e+=n){let i=t[e]-s,n=t[e+1]-o;r+=l*i-a*n,a=i,l=n}return r/2}t.s(["linearRing",0,e,"linearRings",0,function(t,i,n,r){let s=0;for(let o=0,a=n.length;o<a;++o){let a=n[o];s+=e(t,i,a,r),i=a}return s}],352492);var i=t.i(403970);function n(t,e,n,r,s,o,a){let l,h=t[e],u=t[e+1],d=t[n]-h,c=t[n+1]-u;if(0===d&&0===c)l=e;else{let g=((s-h)*d+(o-u)*c)/(d*d+c*c);if(g>1)l=n;else if(g>0){for(let s=0;s<r;++s)a[s]=(0,i.lerp)(t[e+s],t[n+s],g);a.length=r;return}else l=e}for(let e=0;e<r;++e)a[e]=t[l+e];a.length=r}function r(t,e,n,r,s){let o=t[e],a=t[e+1];for(e+=r;e<n;e+=r){let n=t[e],r=t[e+1],l=(0,i.squaredDistance)(o,a,n,r);l>s&&(s=l),o=n,a=r}return s}function s(t,e,r,s,o,a,l,h,u,d,c){let g,f;if(e==r)return d;if(0===o){if((f=(0,i.squaredDistance)(l,h,t[e],t[e+1]))<d){for(g=0;g<s;++g)u[g]=t[e+g];return u.length=s,f}return d}c=c||[NaN,NaN];let _=e+s;for(;_<r;
1)if(n(t,_-s,_,s,l,h,c),(f=(0,i.squaredDistance)(l,h,c[0],c[1]))<d){for(d=f,g=0;g<s;++g)u[g]=c[g];u.length=s,_+=s}else _+=s*Math.max((Math.sqrt(f)-Math.sqrt(d))/o|0,1);if(a&&(n(t,r-s,e,s,l,h,c),(f=(0,i.squaredDistance)(l,h,c[0],c[1]))<d)){for(d=f,g=0;g<s;++g)u[g]=c[g];u.length=s}return d}t.s(["arrayMaxSquaredDelta",0,function(t,e,i,n,s){for(let o=0,a=i.length;o<a;++o){let a=i[o];s=r(t,e,a,n,s),e=a}return s},"assignClosestArrayPoint",0,function(t,e,i,n,r,o,a,l,h,u,d){d=d||[NaN,NaN];for(let c=0,g=i.length;c<g;++c){let g=i[c];u=s(t,e,g,n,r,o,a,l,h,u,d),e=g}return u},"assignClosestPoint",0,s,"maxSquaredDelta",0,r],560676)},201336,t=>{"use strict";function e(t,e,i,n){for(let r=0,s=i.length;r<s;++r){let s=i[r];for(let i=0;i<n;++i)t[e++]=s[i]}return e}t.s(["deflateCoordinate",0,function(t,e,i,n){for(let n=0,r=i.length;n<r;++n)t[e++]=i[n];return e},"deflateCoordinates",0,e,"deflateCoordinatesArray",0,function(t,i,n,r,s){s=s||[];let o=0;for(let a=0,l=n.length;a<l;++a){let l=e(t,i,n[a],r);s[o++]=l,i=l}return s.length=o,s}])},888264,t=>{"use strict";let e="u">typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",i=e.includes("safari")&&!e.includes("chrom")&&(e.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(e)),n=e.includes("webkit")&&!e.includes("edge"),r=e.includes("macintosh"),s="u">typeof devicePixelRatio?devicePixelRatio:1,o="u">typeof WorkerGlobalScope&&"u">typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,a="u">typeof Image&&Image.prototype.decode,l="function"==typeof createImageBitmap,h=function(){let t=!1;try{let e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch{}return t}();t.s(["CREATE_IMAGE_BITMAP",0,l,"DEVICE_PIXEL_RATIO",0,s,"IMAGE_DECODE",0,a,"MAC",0,r,"PASSIVE_EVENT_LISTENERS",0,h,"SAFARI_BUG_237906",0,i,"WEBKIT",0,n,"WORKER_OFFSCREEN_CANVAS",0,o])},403970,t=>{"use strict";function e(t,e,i,n){let r=i-t,s=n-e;return r*r+s*s}function i(t,e){let i=Math.pow(10,e);return Math.round(t*i)/i}t.s(["ceil",0,function(t,e){return Math.ceil(i(t,e))},"clamp",0,function(t,e,i){return Math.min(Math.max(t,e),i)},"floor",0,function(t,e){return Math.floor(i(t,e))},"lerp",0,function(t,e,i){return t+i*(e-t)},"modulo",0,function(t,e){let i=t%e;return i*e<0?i+e:i},"solveLinearSystem",0,function(t){let e=t.length;for(let i=0;i<e;i++){let n=i,r=Math.abs(t[i][i]);for(let s=i+1;s<e;s++){let e=Math.abs(t[s][i]);e>r&&(r=e,n=s)}if(0===r)return null;let s=t[n];t[n]=t[i],t[i]=s;for(let n=i+1;n<e;n++){let r=-t[n][i]/t[i][i];for(let s=i;s<e+1;s++)i==s?t[n][s]=0:t[n][s]+=r*t[i][s]}}let i=Array(e);for(let n=e-1;n>=0;n--){i[n]=t[n][e]/t[n][n];for(let r=n-1;r>=0;r--)t[r][e]-=t[r][n]*i[n]}return i},"squaredDistance",0,e,"squaredSegmentDistance",0,function(t,i,n,r,s,o){let a=s-n,l=o-r;if(0!==a||0!==l){let e=((t-n)*a+(i-r)*l)/(a*a+l*l);e>1?(n=s,r=o):e>0&&(n+=a*e,r+=l*e)}return e(t,i,n,r)},"toDegrees",0,function(t){return 180*t/Math.PI},"toFixed",0,i,"toRadians",0,function(t){return t*Math.PI/180},"wrap",0,function(t,e,i){if(t>=e&&t<i)return t;let n=i-e;return((t-e)%n+n)%n+e}])},379784,697642,t=>{"use strict";var e=t.i(88553),i=t.i(78451),n=t.i(413685),r=t.i(256843),s=t.i(888264),o=t.i(861684),a=t.i(412441);let l=class{constructor(){this.instructions_=[],this.zIndex=0,this.offset_=0,this.pendingMethod_,this.context_=new Proxy((0,n.getSharedCanvasContext2D)(),{get:(t,e)=>{if("function"==typeof t[e])return this.pendingMethod_=e,this.pushMethodArgs_},set:(t,e,i)=>(this.push_(e,i),!0)})}push_(...t){let e=this.instructions_,i=this.zIndex+this.offset_;e[i]||(e[i]=[]),e[i].push(...t)}pushMethodArgs_=(...t)=>{this.push_(this.pendingMethod_,t)};pushFunction(t){this.push_(t)}getContext(){return this.context_}draw(t){this.instructions_.forEach(e=>{for(let i=0,n=e.length;i<n;++i){let n=e[i];if("function"==typeof n){n(t);continue}let r=e[++i];"function"==typeof t[n]?t[n](...r):"function"==typeof r?t[n]=r(t):t[n]=r}})}clear(){this.instructions_.length=0,this.zIndex=0,this.offset_=0}offset(){this.offset_=this.instructions_.length,this.zIndex=0}};var h=t.i(663932),u=t.i(493021),d=t.i(837934),c=t.i(452258),g=t.i(930812);class f extends d.default{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.staleKeys_=[],this.maxStaleKeys=5,this.renderedSourceKey_}getStaleKeys(){return this.staleKeys_}prependStaleKey(t){this.staleKeys_.unshift(t),this.staleKeys_.length>this.maxStaleKeys&&(this.staleKeys_.length=this.maxStaleKeys)}updateStaleKeys(t){this.renderedSourceKey_?this.renderedSourceKey_!==t&&(this.prependStaleKey(this.renderedSourceKey_),this.renderedSourceKey_=t):this.renderedSourceKey_=t}getFeatures(t){return(0,g.abstract)()}getData(t){return null}prepareFrame(t){return(0,g.abstract)()}renderFrame(t,e){return(0,g.abstract)()}forEachFeatureAtCoordinate(t,e,i,n,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){let e=t.target;(e.getState()===u.default.LOADED||e.getState()===u.default.ERROR)&&this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return e!=u.default.LOADED&&e!=u.default.ERROR&&t.addEventListener(c.default.CHANGE,this.boundHandleImageChange_),e==u.default.IDLE&&(t.load(),e=t.getState()),e==u.default.LOADED}renderIfReadyAndVisible(){let t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()}renderDeferred(t){}disposeInternal(){delete this.layer_,super.disposeInternal()}}let _=f;t.s(["default",0,_],697642);let p=null,m=class extends _{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=(0,h.create)(),this.pixelTransform=(0,h.create)(),this.inversePixelTransform=(0,h.create)(),this.context=null,this.deferredContext_=null,this.containerReused=!1,this.frameState=null}
1getImageData(t,e,i){let r;p||(p=(0,n.createCanvasContext2D)(1,1,void 0,{willReadFrequently:!0})),p.clearRect(0,0,1,1);try{p.drawImage(t,e,i,1,1,0,0,1,1),r=p.getImageData(0,0,1,1).data}catch{return p=null,null}return r}getBackground(t){let e=this.getLayer().getBackground();return"function"==typeof e&&(e=e(t.viewState.resolution)),e||void 0}useContainer(t,r,o,a,l){let u,d;if((0,n.isCanvas)(t)&&0===this.pixelTransform[1]&&0===this.pixelTransform[2]&&0===this.pixelTransform[4]&&0===this.pixelTransform[5]&&t.width===a&&t.height===l){let e=t.getContext("2d");if(e){this.container=t,this.context=e,this.containerReused=!0,o&&(e.fillStyle=o,e.fillRect(0,0,t.width,t.height));return}}let c=this.getLayer().getClassName();if(t&&t.className===c&&(!o||t&&t.style.backgroundColor&&(0,e.equals)((0,i.asArray)(t.style.backgroundColor),(0,i.asArray)(o)))){let e=t.firstElementChild;(0,n.isCanvas)(e)&&(d=e.getContext("2d"))}if(d&&(0,h.equivalent)(d.canvas.style.transform,r)?(this.container=t,this.context=d,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){(u=s.WORKER_OFFSCREEN_CANVAS?(0,n.createMockDiv)():document.createElement("div")).className=c;let t=u.style;t.position="absolute",t.width="100%",t.height="100%";let e=(d=(0,n.createCanvasContext2D)()).canvas;u.appendChild(e),(t=e.style).position="absolute",t.left="0",t.transformOrigin="top left",this.container=u,this.context=d}this.containerReused||!o||this.container.style.backgroundColor||(this.container.style.backgroundColor=o)}clipUnrotated(t,e,i){let n=(0,r.getTopLeft)(i),s=(0,r.getTopRight)(i),o=(0,r.getBottomRight)(i),a=(0,r.getBottomLeft)(i);(0,h.apply)(e.coordinateToPixelTransform,n),(0,h.apply)(e.coordinateToPixelTransform,s),(0,h.apply)(e.coordinateToPixelTransform,o),(0,h.apply)(e.coordinateToPixelTransform,a);let l=this.inversePixelTransform;(0,h.apply)(l,n),(0,h.apply)(l,s),(0,h.apply)(l,o),(0,h.apply)(l,a),t.save(),t.beginPath(),t.moveTo(Math.round(n[0]),Math.round(n[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.clip()}prepareContainer(t,e){let i=t.extent,n=t.viewState.resolution,s=t.viewState.rotation,o=t.pixelRatio,a=Math.round((0,r.getWidth)(i)/n*o),l=Math.round((0,r.getHeight)(i)/n*o);(0,h.compose)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/o,1/o,s,-a/2,-l/2),(0,h.makeInverse)(this.inversePixelTransform,this.pixelTransform);let u=(0,h.toString)(this.pixelTransform),d=this.getBackground(t);if(this.useContainer(e,u,d,a,l),!this.containerReused){let t=this.context.canvas;t.width!=a||t.height!=l?(t.width=a,t.height=l):this.context.clearRect(0,0,a,l),u!==t.style.transform&&(t.style.transform=u)}}dispatchRenderEvent_(t,e,i){let n=this.getLayer();if(n.hasListener(t)){let r=new o.default(t,this.inversePixelTransform,i,e);n.dispatchEvent(r)}}preRender(t,e){this.frameState=e,e.declutter||this.dispatchRenderEvent_(a.default.PRERENDER,t,e)}postRender(t,e){e.declutter||this.dispatchRenderEvent_(a.default.POSTRENDER,t,e)}renderDeferredInternal(t){}getRenderContext(t){return t.declutter&&!this.deferredContext_&&(this.deferredContext_=new l),t.declutter?this.deferredContext_.getContext():this.context}renderDeferred(t){t.declutter&&(this.dispatchRenderEvent_(a.default.PRERENDER,this.context,t),t.declutter&&this.deferredContext_&&(this.deferredContext_.draw(this.context),this.deferredContext_.clear()),this.renderDeferredInternal(t),this.dispatchRenderEvent_(a.default.POSTRENDER,this.context,t))}getRenderTransform(t,e,i,n,r,s,o){let a=n/e,l=-t[0]+o,u=-t[1];return(0,h.compose)(this.tempTransform,r/2,s/2,a,-a,-i,l,u)}disposeInternal(){delete this.frameState,super.disposeInternal()}};t.s(["default",0,m],379784)},610640,719236,301437,t=>{"use strict";let e;var i=t.i(413685),n=t.i(256843),r=t.i(403970),s=t.i(853420);let o=[];function a(t,e,i,n,r){t.beginPath(),t.moveTo(0,0),t.lineTo(e,i),t.lineTo(n,r),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,n)+1,Math.max(i,r)),t.restore(
1)}function l(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function h(t,e,i,r){let o=(0,s.transform)(i,e,t),a=(0,s.getPointResolution)(e,r,i),l=e.getMetersPerUnit();void 0!==l&&(a*=l);let h=t.getMetersPerUnit();void 0!==h&&(a/=h);let u=t.getExtent();if(!u||(0,n.containsCoordinate)(u,o)){let e=(0,s.getPointResolution)(t,a,o)/a;isFinite(e)&&e>0&&(a/=e)}return a}t.s(["calculateSourceExtentResolution",0,function(t,e,i,r){let s=h(t,e,(0,n.getCenter)(i),r);return(!isFinite(s)||s<=0)&&(0,n.forEachCorner)(i,function(i){return isFinite(s=h(t,e,i,r))&&s>0}),s},"calculateSourceResolution",0,h,"canvasPool",0,o,"render",0,function(t,s,h,u,d,c,g,f,_,p,m,y,v,E){let C,x=(0,i.createCanvasContext2D)(Math.round(h*t),Math.round(h*s),o);if(y||(x.imageSmoothingEnabled=!1),0===_.length)return x.canvas;function R(t){return Math.round(t*h)/h}x.scale(h,h),x.globalCompositeOperation="lighter";let w=(0,n.createEmpty)();_.forEach(function(t,e,i){(0,n.extend)(w,t.extent)});let S=h/u,I=(y?1:1.0000000596046448)/S;if(!v||1!==_.length||0!==p){if(C=(0,i.createCanvasContext2D)(Math.round((0,n.getWidth)(w)*S),Math.round((0,n.getHeight)(w)*S),o),y||(C.imageSmoothingEnabled=!1),d&&E){let t=(d[0]-w[0])*S,e=-(d[3]-w[3])*S,i=(0,n.getWidth)(d)*S,r=(0,n.getHeight)(d)*S;C.rect(t,e,i,r),C.clip()}_.forEach(function(t,e,i){if(t.image.width>0&&t.image.height>0){if(t.clipExtent){C.save();let e=(t.clipExtent[0]-w[0])*S,i=-(t.clipExtent[3]-w[3])*S,r=(0,n.getWidth)(t.clipExtent)*S,s=(0,n.getHeight)(t.clipExtent)*S;C.rect(y?e:Math.round(e),y?i:Math.round(i),y?r:Math.round(e+r)-Math.round(e),y?s:Math.round(i+s)-Math.round(i)),C.clip()}let e=(t.extent[0]-w[0])*S,i=-(t.extent[3]-w[3])*S,r=(0,n.getWidth)(t.extent)*S,s=(0,n.getHeight)(t.extent)*S;C.drawImage(t.image,p,p,t.image.width-2*p,t.image.height-2*p,y?e:Math.round(e),y?i:Math.round(i),y?r:Math.round(e+r)-Math.round(e),y?s:Math.round(i+s)-Math.round(i)),t.clipExtent&&C.restore()}})}let A=(0,n.getTopLeft)(g);
1return f.getTriangles().forEach(function(t,s,h){let u,d=t.source,g=t.target,f=d[0][0],p=d[0][1],m=d[1][0],v=d[1][1],E=d[2][0],S=d[2][1],M=R((g[0][0]-A[0])/c),b=R(-(g[0][1]-A[1])/c),P=R((g[1][0]-A[0])/c),T=R(-(g[1][1]-A[1])/c),O=R((g[2][0]-A[0])/c),L=R(-(g[2][1]-A[1])/c),D=f,N=p;f=0,p=0;let F=[[m-=D,v-=N,0,0,P-M],[E-=D,S-=N,0,0,O-M],[0,0,m,v,T-b],[0,0,E,S,L-b]],k=(0,r.solveLinearSystem)(F);if(k){if(x.save(),x.beginPath(),function(){if(void 0===e){let t=(0,i.createCanvasContext2D)(6,6,o);t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",a(t,4,5,4,0),a(t,4,5,0,5);let n=t.getImageData(0,0,3,3).data;e=l(n,0)||l(n,4)||l(n,8),(0,i.releaseCanvas)(t),o.push(t.canvas)}return e}()||!y){x.moveTo(P,T);let t=M-P,e=b-T;for(let i=0;i<4;i++)x.lineTo(P+R((i+1)*t/4),T+R(i*e/3)),3!=i&&x.lineTo(P+R((i+1)*t/4),T+R((i+1)*e/3));x.lineTo(O,L)}else x.moveTo(P,T),x.lineTo(M,b),x.lineTo(O,L);if(x.clip(),x.transform(k[0],k[2],k[1],k[3],M,b),x.translate(w[0]-D,w[3]-N),C)u=C.canvas,x.scale(I,-I);else{let t=_[0],e=t.extent;u=t.image,x.scale((0,n.getWidth)(e)/u.width,-(0,n.getHeight)(e)/u.height)}x.drawImage(u,0,0),x.restore()}}),C&&((0,i.releaseCanvas)(C),o.push(C.canvas)),m&&(x.save(),x.globalCompositeOperation="source-over",x.strokeStyle="black",x.lineWidth=1,f.getTriangles().forEac
1h(function(t,e,i){let n=t.target,r=(n[0][0]-A[0])/c,s=-(n[0][1]-A[1])/c,o=(n[1][0]-A[0])/c,a=-(n[1][1]-A[1])/c,l=(n[2][0]-A[0])/c,h=-(n[2][1]-A[1])/c;x.beginPath(),x.moveTo(o,a),x.lineTo(r,s),x.lineTo(l,h),x.closePath(),x.stroke()}),x.restore()),x.canvas}],610640);var u=t.i(663932);let d=class{constructor(t,e,i,r,o,a,l){this.sourceProj_=t,this.targetProj_=e;let h={};const d=l?(0,s.createTransformFromCoordinateTransform)(t=>(0,u.apply)(l,(0,s.transform)(t,this.targetProj_,this.sourceProj_))):(0,s.getTransform)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){let e=t[0]+"/"+t[1];return h[e]||(h[e]=d(t)),h[e]},this.maxSourceExtent_=r,this.errorThresholdSquared_=o*o,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&(0,n.getWidth)(r)>=(0,n.getWidth)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,n.getWidth)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,n.getWidth)(this.targetProj_.getExtent()):null;const c=(0,n.getTopLeft)(i),g=(0,n.getTopRight)(i),f=(0,n.getBottomRight)(i),_=(0,n.getBottomLeft)(i),p=this.transformInv_(c),m=this.transformInv_(g),y=this.transformInv_(f),v=this.transformInv_(_),E=10+(a?Math.max(0,Math.ceil(Math.log2((0,n.getArea)(i)/(a*a*65536)))):0);if(this.addQuad_(c,g,f,_,p,m,y,v,E),this.wrapsXInSource_){let t=1/0;this.triangles_.forEach(function(e,i,n){t=Math.min(t,e.source[0][0],e.source[1][0],e.source[2][0])}),this.triangles_.forEach(e=>{if(Math.max(e.source[0][0],e.source[1][0],e.source[2][0])-t>this.sourceWorldWidth_/2){let i=[[e.source[0][0],e.source[0][1]],[e.source[1][0],e.source[1][1]],[e.source[2][0],e.source[2][1]]];i[0][0]-t>this.sourceWorldWidth_/2&&(i[0][0]-=this.sourceWorldWidth_),i[1][0]-t>this.sourceWorldWidth_/2&&(i[1][0]-=this.sourceWorldWidth_),i[2][0]-t>this.sourceWorldWidth_/2&&(i[2][0]-=this.sourceWorldWidth_);let n=Math.min(i[0][0],i[1][0],i[2][0]);Math.max(i[0][0],i[1][0],i[2][0])-n<this.sourceWorldWidth_/2&&(e.source=i)}})}h={}}addTriangle_(t,e,i,n,r,s){this.triangles_.push({source:[n,r,s],target:[t,e,i]})}addQuad_(t,e,i,s,o,a,l,h,u){let d=(0,n.boundingExtent)([o,a,l,h]),c=this.sourceWorldWidth_?(0,n.getWidth)(d)/this.sourceWorldWidth_:null,g=this.sourceWorldWidth_,f=this.sourceProj_.canWrapX()&&c>.5&&c<1,_=!1;if(u>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){let r=(0,n.boundingExtent)([t,e,i,s]);_=(0,n.getWidth)(r)/this.targetWorldWidth_>.25||_}!f&&this.sourceProj_.isGlobal()&&c&&(_=c>.25||_)}if(!_&&this.maxSourceExtent_&&isFinite(d[0])&&isFinite(d[1])&&isFinite(d[2])&&isFinite(d[3])&&!(0,n.intersects)(d,this.maxSourceExtent_))return;let p=0;if(!_&&(!isFinite(o[0])||!isFinite(o[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(l[0])||!isFinite(l[1])||!isFinite(h[0])||!isFinite(h[1]))){if(u>0)_=!0;else if(1!=(p=8*!(isFinite(o[0])&&isFinite(o[1]))+4*!(isFinite(a[0])&&isFinite(a[1]))+2*!(isFinite(l[0])&&isFinite(l[1]))+ +!(isFinite(h[0])&&isFinite(h[1])))&&2!=p&&4!=p&&8!=p
1)return}if(u>0){if(!_){let e,n=[(t[0]+i[0])/2,(t[1]+i[1])/2],s=this.transformInv_(n);e=f?((0,r.modulo)(o[0],g)+(0,r.modulo)(l[0],g))/2-(0,r.modulo)(s[0],g):(o[0]+l[0])/2-s[0];let a=(o[1]+l[1])/2-s[1];_=e*e+a*a>this.errorThresholdSquared_}if(_){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){let n=[(e[0]+i[0])/2,(e[1]+i[1])/2],r=this.transformInv_(n),d=[(s[0]+t[0])/2,(s[1]+t[1])/2],c=this.transformInv_(d);this.addQuad_(t,e,n,d,o,a,r,c,u-1),this.addQuad_(d,n,i,s,c,r,l,h,u-1)}else{let n=[(t[0]+e[0])/2,(t[1]+e[1])/2],r=this.transformInv_(n),d=[(i[0]+s[0])/2,(i[1]+s[1])/2],c=this.transformInv_(d);this.addQuad_(t,n,d,s,o,r,c,h,u-1),this.addQuad_(n,e,i,d,r,a,l,c,u-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}(11&p)==0&&this.addTriangle_(t,i,s,o,l,h),(14&p)==0&&this.addTriangle_(t,i,e,o,l,a),p&&((13&p)==0&&this.addTriangle_(e,s,t,a,h,o),(7&p)==0&&this.addTriangle_(e,s,i,a,h,l))}calculateSourceExtent(){let t=(0,n.createEmpty)();return this.triangles_.forEach(function(e,i,r){let s=e.source;(0,n.extendCoordinate)(t,s[0]),(0,n.extendCoordinate)(t,s[1]),(0,n.extendCoordinate)(t,s[2])}),t}getTriangles(){return this.triangles_}};t.s(["default",0,d],719236),t.s(["ERROR_THRESHOLD",0,.5],301437)},25529,t=>{"use strict";var e=t.i(148349),i=t.i(853420);class n extends e.default{constructor(t){super(),this.projection=(0,i.get)(t.projection),this.attributions_=r(t.attributions),this.attributionsCollapsible_=t.attributionsCollapsible??!0,this.loading=!1,this.state_=void 0!==t.state?t.state:"ready",this.wrapX_=void 0!==t.wrapX&&t.wrapX,this.interpolate_=!!t.interpolate,this.viewResolver=null,this.viewRejector=null;const e=this;this.viewPromise_=new Promise(function(t,i){e.viewResolver=t,e.viewRejector=i})}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(t){return null}getView(){return this.viewPromise_}ready(){let t=this.getState();return"ready"===t?Promise.resolve():"error"===t?Promise.reject(Error("Source failed to load")):new Promise((t,e)=>{let i=()=>{let n=this.getState();"ready"===n?(this.un("change",i),t()):"error"===n&&(this.un("change",i),e(Error("Source failed to load")))};this.on("change",i)})}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(t){this.attributions_=r(t),this.changed()}setState(t){this.state_=t,this.changed()}}function r(t){return t?"function"==typeof t?t:(Array.isArray(t)||(t=[t]),e=>t):null}t.s(["default",0,n])}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.