运维服务中台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

115 lines
1.3 MiB

(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["OlMapTool"]=e():t["OlMapTool"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({0:function(t,e){},"00bb":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function n(t,e,n,r){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var s=0;s<n;s++)t[e+s]^=i[s]}return e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize;n.call(this,t,e,i,r),this._prevBlock=t.slice(e,e+i)}}),e.Decryptor=e.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize,o=t.slice(e,e+i);n.call(this,t,e,i,r),this._prevBlock=o}}),e}(),t.mode.CFB}))},"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"01d4":function(t,e,n){"use strict";e["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"}},"0414":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=42,i=256},"045d":function(t,e,n){"use strict";e["a"]={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},"049d":function(t,e,n){"use strict";var r=n("521b"),i=n("9abc"),o=n("9769"),s=n("0af5"),a=n("abb7"),u=n("1c48"),c=n("bb6c"),l=n("b589"),h=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f=function(t){function e(e,n){var r=t.call(this)||this;return r.maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===n||Array.isArray(e[0])?r.setCoordinates(e,n):r.setFlatCoordinates(n,e),r}return h(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,n,r){return r<Object(s["e"])(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(o["e"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(o["d"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,n,r))},e.prototype.getArea=function(){return Object(l["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinates=function(){return Object(c["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[];return n.length=Object(u["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,0),new e(n,r["a"].XY)},e.prototype.getType=function(){return"LinearRing"},e.prototype.intersectsExtent=function(t){return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(a["b"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(i["a"]);e["a"]=f},"04f8":function(t,e,n){var r=n("2d00"),i=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"06cf":function(t,e,n){var r=n("83ab"),i=n("c65b"),o=n("d1e7"),s=n("5c6c"),a=n("fc6a"),u=n("a04b"),c=n("1a2d"),l=n("0cfb"),h=Object.getOwnPropertyDescriptor;e.f=r?h:function(t,e){if(t=a(t),e=u(e),l)try{return h(t,e)}catch(n){}if(c(t,e))return s(!i(o.f,t,e),t[e])}},"06f8":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return u})),n.d(e,"d",(function(){return l})),n.d(e,"c",(function(){return h})),n.d(e,"e",(function(){return f})),n.d(e,"g",(function(){return p})),n.d(e,"k",(function(){return d})),n.d(e,"h",(function(){return g})),n.d(e,"j",(function(){return y})),n.d(e,"l",(function(){return v})),n.d(e,"f",(function(){return _})),n.d(e,"i",(function(){return m}));var r=n("0b2d"),i=n("57cb"),o=n("617d"),s=n("92fa");function a(t){var e=arguments;return function(t){for(var n=!0,r=0,i=e.length;r<i;++r)if(n=n&&e[r](t),!n)break;return n}}var u=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},c=function(t){var e=t.map.getTargetElement(),n=t.map.getOwnerDocument().activeElement;return e.contains(n)},l=function(t){return!t.map.getTargetElement().hasAttribute("tabindex")||c(t)},h=i["b"],f=function(t){var e=t.originalEvent;return 0==e.button&&!(o["g"]&&o["d"]&&e.ctrlKey)},p=i["a"],d=function(t){return t.type==r["a"].SINGLECLICK},g=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},y=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},v=function(t){var e=t.originalEvent,n=e.target.tagName;return"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n&&!e.target.isContentEditable},_=function(t){var e=t.originalEvent;return Object(s["a"])(void 0!==e,56),"mouse"==e.pointerType},m=function(t){var e=t.originalEvent;return Object(s["a"])(void 0!==e,56),e.isPrimary&&0===e.button}},"070d":function(t,e,n){"use strict";e["a"]={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},"0710":function(t,e,n){"use strict";var r=n("e269"),i=n("592d"),o=n("cd7e"),s=n("0af5"),a=n("1e8d"),u=n("0999"),c=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},h=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un,n.options=e,n.id=e.id,n.insertFirst=void 0===e.insertFirst||e.insertFirst,n.stopEvent=void 0===e.stopEvent||e.stopEvent,n.element=document.createElement("div"),n.element.className=void 0!==e.className?e.className:"ol-overlay-container "+o["d"],n.element.style.position="absolute",n.element.style.pointerEvents="auto";var r=e.autoPan;return r&&"object"!==typeof r&&(r={animation:e.autoPanAnimation,margin:e.autoPanMargin}),n.autoPan=r||!1,n.rendered={transform_:"",visible:!0},n.mapPostrenderListenerKey=null,n.addChangeListener(l.ELEMENT,n.handleElementChanged),n.addChangeListener(l.MAP,n.handleMapChanged),n.addChangeListener(l.OFFSET,n.handleOffsetChanged),n.addChangeListener(l.POSITION,n.handlePositionChanged),n.addChangeListener(l.POSITIONING,n.handlePositioningChanged),void 0!==e.element&&n.setElement(e.element),n.setOffset(void 0!==e.offset?e.offset:[0,0]),n.setPositioning(e.positioning||"top-left"),void 0!==e.position&&n.setPosition(e.position),n}return c(e,t),e.prototype.getElement=function(){return this.get(l.ELEMENT)},e.prototype.getId=function(){return this.id},e.prototype.getMap=function(){return this.get(l.MAP)||null},e.prototype.getOffset=function(){return this.get(l.OFFSET)},e.prototype.getPosition=function(){return this.get(l.POSITION)},e.prototype.getPositioning=function(){return this.get(l.POSITIONING)},e.prototype.handleElementChanged=function(){Object(u["e"])(this.element);var t=this.getElement();t&&this.element.appendChild(t)},e.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Object(u["f"])(this.element),Object(a["c"])(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var t=this.getMap();if(t){this.mapPostrenderListenerKey=Object(a["a"])(t,i["a"].POSTRENDER,this.render,this),this.updatePixelPosition();var e=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?e.insertBefore(this.element,e.childNodes[0]||null):e.appendChild(this.element),this.performAutoPan()}},e.prototype.render=function(){this.updatePixelPosition()},e.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},e.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.performAutoPan()},e.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},e.prototype.setElement=function(t){this.set(l.ELEMENT,t)},e.prototype.setMap=function(t){this.set(l.MAP,t)},e.prototype.setOffset=function(t){this.set(l.OFFSET,t)},e.prototype.setPosition=function(t){this.set(l.POSITION,t)},e.prototype.performAutoPan=function(){this.autoPan&&this.panIntoView(this.autoPan)},e.prototype.panIntoView=function(t){var e=this.getMap();if(e&&e.getTargetElement()&&this.get(l.POSITION)){var n=this.getRect(e.getTargetElement(),e.getSize()),r=this.getElement(),i=this.getRect(r,[Object(u["c"])(r),Object(u["b"])(r)]),o=t||{},a=void 0===o.margin?20:o.margin;if(!Object(s["g"])(n,i)){var c=i[0]-n[0],h=n[2]-i[2],f=i[1]-n[1],p=n[3]-i[3],d=[0,0];if(c<0?d[0]=c-a:h<0&&(d[0]=Math.abs(h)+a),f<0?d[1]=f-a:p<0&&(d[1]=Math.abs(p)+a),0!==d[0]||0!==d[1]){var g=e.getView().getCenterInternal(),y=e.getPixelFromCoordinateInternal(g);if(!y)return;var v=[y[0]+d[0],y[1]+d[1]],_=o.animation||{};e.getView().animateInternal({center:e.getCoordinateFromPixelInternal(v),duration:_.duration,easing:_.easing})}}}},e.prototype.getRect=function(t,e){var n=t.getBoundingClientRect(),r=n.left+window.pageXOffset,i=n.top+window.pageYOffset;return[r,i,r+e[0],i+e[1]]},e.prototype.setPositioning=function(t){this.set(l.POSITIONING,t)},e.prototype.setVisible=function(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)},e.prototype.updatePixelPosition=function(){var t=this.getMap(),e=this.getPosition();if(t&&t.isRendered()&&e){var n=t.getPixelFromCoordinate(e),r=t.getSize();this.updateRenderedPosition(n,r)}else this.setVisible(!1)},e.prototype.updateRenderedPosition=function(t,e){var n=this.element.style,r=this.getOffset(),i=this.getPositioning();this.setVisible(!0);var o=Math.round(t[0]+r[0])+"px",s=Math.round(t[1]+r[1])+"px",a="0%",u="0%";"bottom-right"==i||"center-right"==i||"top-right"==i?a="-100%":"bottom-center"!=i&&"center-center"!=i&&"top-center"!=i||(a="-50%"),"bottom-left"==i||"bottom-center"==i||"bottom-right"==i?u="-100%":"center-left"!=i&&"center-center"!=i&&"center-right"!=i||(u="-50%");var c="translate(".concat(a,", ").concat(u,") translate(").concat(o,", ").concat(s,")");this.rendered.transform_!=c&&(this.rendered.transform_=c,n.transform=c,n.msTransform=c)},e.prototype.getOptions=function(){return this.options},e}(r["a"]);e["a"]=h},"07fa":function(t,e,n){var r=n("50c4");t.exports=function(t){return r(t.length)}},"089b":function(t,e,n){"use strict";n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return g}));var r=n("78db"),i=n("fced"),o=n("0414"),s=n("256f"),a=n("0af5"),u=n("345d");function c(t){var e=t.getDefaultTileGrid();return e||(e=d(t),t.setDefaultTileGrid(e)),e}function l(t,e,n){var r=e[0],i=t.getTileCoordCenter(e),o=g(n);if(Object(a["f"])(o,i))return e;var s=Object(a["E"])(o),u=Math.ceil((o[0]-i[0])/s);return i[0]+=s*u,t.getTileCoordForCoordAndZ(i,r)}function h(t,e,n,i){var o=void 0!==i?i:"top-left",s=p(t,e,n);return new r["a"]({extent:t,origin:Object(a["x"])(t,o),resolutions:s,tileSize:n})}function f(t){var e=t||{},n=e.extent||Object(s["h"])("EPSG:3857").getExtent(),i={extent:n,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:p(n,e.maxZoom,e.tileSize,e.maxResolution)};return new r["a"](i)}function p(t,e,n,r){for(var i=void 0!==e?e:o["a"],s=Object(a["z"])(t),c=Object(a["E"])(t),l=Object(u["c"])(void 0!==n?n:o["b"]),h=r>0?r:Math.max(c/l[0],s/l[1]),f=i+1,p=new Array(f),d=0;d<f;++d)p[d]=h/Math.pow(2,d);return p}function d(t,e,n,r){var i=g(t);return h(i,e,n,r)}function g(t){t=Object(s["h"])(t);var e=t.getExtent();if(!e){var n=180*s["a"][i["b"].DEGREES]/t.getMetersPerUnit();e=Object(a["k"])(-n,-n,n,n)}return e}},"0999":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"h",(function(){return u})),n.d(e,"f",(function(){return c})),n.d(e,"e",(function(){return l})),n.d(e,"g",(function(){return h}));var r=n("617d");function i(t,e,n,i){var o;return o=n&&n.length?n.shift():r["h"]?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(o.width=t),e&&(o.height=e),o.getContext("2d",i)}function o(t){var e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function s(t){var e=t.offsetWidth,n=getComputedStyle(t);return e+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10),e}function a(t){var e=t.offsetHeight,n=getComputedStyle(t);return e+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10),e}function u(t,e){var n=e.parentNode;n&&n.replaceChild(t,e)}function c(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function l(t){while(t.lastChild)t.removeChild(t.lastChild)}function h(t,e){for(var n=t.childNodes,r=0;1;++r){var i=n[r],o=e[r];if(!i&&!o)break;i!==o&&(i?o?t.insertBefore(o,i):(t.removeChild(i),--r):t.appendChild(o))}}},"0a9d":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s}));var r=n("25f1"),i=n("9f5e");function o(t,e,n,o,s,a,u){for(var c,l,h,f,p,d,g,y=s[a+1],v=[],_=0,m=n.length;_<m;++_){var b=n[_];for(f=t[b-o],d=t[b-o+1],c=e;c<b;c+=o)p=t[c],g=t[c+1],(y<=d&&g<=y||d<=y&&y<=g)&&(h=(y-d)/(g-d)*(p-f)+f,v.push(h)),f=p,d=g}var E=NaN,w=-1/0;for(v.sort(i["i"]),f=v[0],c=1,l=v.length;c<l;++c){p=v[c];var x=Math.abs(p-f);x>w&&(h=(f+p)/2,Object(r["c"])(t,e,n,o,h,y)&&(E=h,w=x)),f=p}return isNaN(E)&&(E=s[a]),u?(u.push(E,y,w),u):[E,y,w]}function s(t,e,n,r,i){for(var s=[],a=0,u=n.length;a<u;++a){var c=n[a];s=o(t,e,c,r,i,2*a,s),e=c[c.length-1]}return s}},"0af5":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return u})),n.d(e,"e",(function(){return c})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return f})),n.d(e,"i",(function(){return p})),n.d(e,"j",(function(){return d})),n.d(e,"k",(function(){return g})),n.d(e,"l",(function(){return y})),n.d(e,"m",(function(){return v})),n.d(e,"n",(function(){return _})),n.d(e,"o",(function(){return m})),n.d(e,"p",(function(){return b})),n.d(e,"q",(function(){return E})),n.d(e,"r",(function(){return w})),n.d(e,"s",(function(){return O})),n.d(e,"t",(function(){return S})),n.d(e,"u",(function(){return C})),n.d(e,"v",(function(){return I})),n.d(e,"w",(function(){return P})),n.d(e,"x",(function(){return R})),n.d(e,"y",(function(){return T})),n.d(e,"B",(function(){return L})),n.d(e,"z",(function(){return M})),n.d(e,"A",(function(){return N})),n.d(e,"C",(function(){return A})),n.d(e,"D",(function(){return F})),n.d(e,"E",(function(){return j})),n.d(e,"F",(function(){return D})),n.d(e,"H",(function(){return k})),n.d(e,"I",(function(){return G})),n.d(e,"G",(function(){return B})),n.d(e,"a",(function(){return U})),n.d(e,"K",(function(){return z})),n.d(e,"J",(function(){return Y}));var r=n("045d"),i=n("92fa");function o(t){for(var e=d(),n=0,r=t.length;n<r;++n)E(e,t[n]);return e}function s(t,e,n){var r=Math.min.apply(null,t),i=Math.min.apply(null,e),o=Math.max.apply(null,t),s=Math.max.apply(null,e);return g(r,i,o,s,n)}function a(t,e,n){return n?(n[0]=t[0]-e,n[1]=t[1]-e,n[2]=t[2]+e,n[3]=t[3]+e,n):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function u(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function c(t,e,n){var r,i;return r=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0,i=n<t[1]?t[1]-n:t[3]<n?n-t[3]:0,r*r+i*i}function l(t,e){return f(t,e[0],e[1])}function h(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function f(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function p(t,e){var n=t[0],i=t[1],o=t[2],s=t[3],a=e[0],u=e[1],c=r["a"].UNKNOWN;return a<n?c|=r["a"].LEFT:a>o&&(c|=r["a"].RIGHT),u<i?c|=r["a"].BELOW:u>s&&(c|=r["a"].ABOVE),c===r["a"].UNKNOWN&&(c=r["a"].INTERSECTING),c}function d(){return[1/0,1/0,-1/0,-1/0]}function g(t,e,n,r,i){return i?(i[0]=t,i[1]=e,i[2]=n,i[3]=r,i):[t,e,n,r]}function y(t){return g(1/0,1/0,-1/0,-1/0,t)}function v(t,e){var n=t[0],r=t[1];return g(n,r,n,r,e)}function _(t,e,n,r,i){var o=y(i);return w(o,t,e,n,r)}function m(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function b(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}function E(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 w(t,e,n,r,i){for(;n<r;n+=i)x(t,e[n],e[n+1]);return t}function x(t,e,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],n)}function O(t,e){var n;return n=e(C(t)),n||(n=e(I(t)),n||(n=e(F(t)),n||(n=e(A(t)),n||!1)))}function S(t){var e=0;return k(t)||(e=j(t)*M(t)),e}function C(t){return[t[0],t[1]]}function I(t){return[t[2],t[1]]}function P(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function R(t,e){var n;return"bottom-left"===e?n=C(t):"bottom-right"===e?n=I(t):"top-left"===e?n=A(t):"top-right"===e?n=F(t):Object(i["a"])(!1,13),n}function T(t,e,n,r,i){var o=L(t,e,n,r),s=o[0],a=o[1],u=o[2],c=o[3],l=o[4],h=o[5],f=o[6],p=o[7];return g(Math.min(s,u,l,f),Math.min(a,c,h,p),Math.max(s,u,l,f),Math.max(a,c,h,p),i)}function L(t,e,n,r){var i=e*r[0]/2,o=e*r[1]/2,s=Math.cos(n),a=Math.sin(n),u=i*s,c=i*a,l=o*s,h=o*a,f=t[0],p=t[1];return[f-u+h,p-c-l,f-u-h,p-c+l,f+u-h,p+c+l,f+u+h,p+c-l,f-u+h,p-c-l]}function M(t){return t[3]-t[1]}function N(t,e,n){var r=n||d();return D(t,e)?(t[0]>e[0]?r[0]=t[0]:r[0]=e[0],t[1]>e[1]?r[1]=t[1]:r[1]=e[1],t[2]<e[2]?r[2]=t[2]:r[2]=e[2],t[3]<e[3]?r[3]=t[3]:r[3]=e[3]):y(r),r}function A(t){return[t[0],t[3]]}function F(t){return[t[2],t[3]]}function j(t){return t[2]-t[0]}function D(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function k(t){return t[2]<t[0]||t[3]<t[1]}function G(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function B(t,e,n){var i=!1,o=p(t,e),s=p(t,n);if(o===r["a"].INTERSECTING||s===r["a"].INTERSECTING)i=!0;else{var a=t[0],u=t[1],c=t[2],l=t[3],h=e[0],f=e[1],d=n[0],g=n[1],y=(g-f)/(d-h),v=void 0,_=void 0;s&r["a"].ABOVE&&!(o&r["a"].ABOVE)&&(v=d-(g-l)/y,i=v>=a&&v<=c),i||!(s&r["a"].RIGHT)||o&r["a"].RIGHT||(_=g-(d-c)*y,i=_>=u&&_<=l),i||!(s&r["a"].BELOW)||o&r["a"].BELOW||(v=d-(g-u)/y,i=v>=a&&v<=c),i||!(s&r["a"].LEFT)||o&r["a"].LEFT||(_=g-(d-a)*y,i=_>=u&&_<=l)}return i}function U(t,e,n,r){var i=[];if(r>1)for(var o=t[2]-t[0],a=t[3]-t[1],u=0;u<r;++u)i.push(t[0]+o*u/r,t[1],t[2],t[1]+a*u/r,t[2]-o*u/r,t[3],t[0],t[3]-a*u/r);else i=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(i,i,2);for(var c=[],l=[],h=(u=0,i.length);u<h;u+=2)c.push(i[u]),l.push(i[u+1]);return s(c,l,n)}function z(t,e){var n=e.getExtent(),r=P(t);if(e.canWrapX()&&(r[0]<n[0]||r[0]>=n[2])){var i=j(n),o=Math.floor((r[0]-n[0])/i),s=o*i;t[0]-=s,t[2]-=s}return t}function Y(t,e){if(e.canWrapX()){var n=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[n[0],t[1],n[2],t[3]]];z(t,e);var r=j(n);if(j(t)>r)return[[n[0],t[1],n[2],t[3]]];if(t[0]<n[0])return[[t[0]+r,t[1],n[2],t[3]],[n[0],t[1],t[2],t[3]]];if(t[2]>n[2])return[[t[0],t[1],n[2],t[3]],[n[0],t[1],t[2]-r,t[3]]]}return[t]}},"0b0e":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},i={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0}},"0b2d":function(t,e,n){"use strict";var r=n("01d4");e["a"]={SINGLECLICK:"singleclick",CLICK:r["a"].CLICK,DBLCLICK:r["a"].DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(t,e,n){var r=n("e330"),i=Error,o=r("".replace),s=function(t){return String(i(t).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,u=a.test(s);t.exports=function(t,e){if(u&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=o(t,a,"");return t}},"0d51":function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},"0df5":function(t,e,n){"use strict";n("4cdf"),n("521b"),n("f403"),n("9a44"),n("7a09"),n("47e4"),n("88da"),n("5bc3");var r=n("a896"),i=n("0af5"),o=n("9f5e"),s=n("0a9d"),a=n("256f"),u=(n("4d98"),n("b1a2")),c=n("9159"),l=n("bef8"),h=Object(r["c"])(),f=function(){function t(t,e,n,r,i){this.styleFunction,this.extent_,this.id_=i,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=n,this.properties_=r}return t.prototype.get=function(t){return this.properties_[t]},t.prototype.getExtent=function(){return this.extent_||(this.extent_="Point"===this.type_?Object(i["m"])(this.flatCoordinates_):Object(i["n"])(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},t.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var t=Object(i["w"])(this.getExtent());this.flatInteriorPoints_=Object(s["a"])(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_},t.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var t=Object(c["a"])(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=Object(s["b"])(this.flatCoordinates_,0,this.ends_,2,t)}return this.flatInteriorPoints_},t.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=Object(u["a"])(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},t.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var t=this.flatCoordinates_,e=0,n=this.ends_,r=0,i=n.length;r<i;++r){var s=n[r],a=Object(u["a"])(t,e,s,2,.5);Object(o["c"])(this.flatMidpoints_,a),e=s}}return this.flatMidpoints_},t.prototype.getId=function(){return this.id_},t.prototype.getOrientedFlatCoordinates=function(){return this.flatCoordinates_},t.prototype.getGeometry=function(){return this},t.prototype.getSimplifiedGeometry=function(t){return this},t.prototype.simplifyTransformed=function(t,e){return this},t.prototype.getProperties=function(){return this.properties_},t.prototype.getStride=function(){return 2},t.prototype.getStyleFunction=function(){return this.styleFunction},t.prototype.getType=function(){return this.type_},t.prototype.transform=function(t){t=Object(a["h"])(t);var e=t.getExtent(),n=t.getWorldExtent();if(e&&n){var o=Object(i["z"])(n)/Object(i["z"])(e);Object(r["b"])(h,n[0],n[3],o,-o,0,0,0),Object(l["c"])(this.flatCoordinates_,0,this.flatCoordinates_.length,2,h,this.flatCoordinates_)}},t.prototype.getEnds=function(){return this.ends_},t}();f.prototype.getEndss=f.prototype.getEnds,f.prototype.getFlatCoordinates=f.prototype.getOrientedFlatCoordinates,e["a"]=f},"0ec0":function(t,e,n){"use strict";var r=n("da5c"),i=n("cef7"),o=n("57cb"),s=n("38f3"),a=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(t){function e(e){var n=t.call(this)||this;return n.eventTarget_=e,n.pendingRemovals_=null,n.dispatching_=null,n.listeners_=null,n}return a(e,t),e.prototype.addEventListener=function(t,e){if(t&&e){var n=this.listeners_||(this.listeners_={}),r=n[t]||(n[t]=[]);-1===r.indexOf(e)&&r.push(e)}},e.prototype.dispatchEvent=function(t){var e="string"===typeof t,n=e?t:t.type,r=this.listeners_&&this.listeners_[n];if(r){var s=e?new i["a"](t):t;s.target||(s.target=this.eventTarget_||this);var a,u=this.dispatching_||(this.dispatching_={}),c=this.pendingRemovals_||(this.pendingRemovals_={});n in u||(u[n]=0,c[n]=0),++u[n];for(var l=0,h=r.length;l<h;++l)if(a="handleEvent"in r[l]?r[l].handleEvent(s):r[l].call(this,s),!1===a||s.propagationStopped){a=!1;break}if(0===--u[n]){var f=c[n];delete c[n];while(f--)this.removeEventListener(n,o["c"]);delete u[n]}return a}},e.prototype.disposeInternal=function(){this.listeners_&&Object(s["b"])(this.listeners_)},e.prototype.getListeners=function(t){return this.listeners_&&this.listeners_[t]||void 0},e.prototype.hasListener=function(t){return!!this.listeners_&&(t?t in this.listeners_:Object.keys(this.listeners_).length>0)},e.prototype.removeEventListener=function(t,e){var n=this.listeners_&&this.listeners_[t];if(n){var r=n.indexOf(e);-1!==r&&(this.pendingRemovals_&&t in this.pendingRemovals_?(n[r]=o["c"],++this.pendingRemovals_[t]):(n.splice(r,1),0===n.length&&delete this.listeners_[t]))}},e}(r["a"]);e["a"]=u},"10b7":function(t,e,n){(function(e,r){t.exports=r(n("21bf"))})(0,(function(t){
/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
return function(e){var n=t,r=n.lib,i=r.WordArray,o=r.Hasher,s=n.algo,a=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=i.create([0,1518500249,1859775393,2400959708,2840853838]),f=i.create([1352829926,1548603684,1836072691,2053994217,0]),p=s.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,s,p,b,E,w,x,O,S,C,I,P=this._hash.words,R=h.words,T=f.words,L=a.words,M=u.words,N=c.words,A=l.words;w=o=P[0],x=s=P[1],O=p=P[2],S=b=P[3],C=E=P[4];for(n=0;n<80;n+=1)I=o+t[e+L[n]]|0,I+=n<16?d(s,p,b)+R[0]:n<32?g(s,p,b)+R[1]:n<48?y(s,p,b)+R[2]:n<64?v(s,p,b)+R[3]:_(s,p,b)+R[4],I|=0,I=m(I,N[n]),I=I+E|0,o=E,E=b,b=m(p,10),p=s,s=I,I=w+t[e+M[n]]|0,I+=n<16?_(x,O,S)+T[0]:n<32?v(x,O,S)+T[1]:n<48?y(x,O,S)+T[2]:n<64?g(x,O,S)+T[3]:d(x,O,S)+T[4],I|=0,I=m(I,A[n]),I=I+C|0,w=C,C=S,S=m(O,10),O=x,x=I;I=P[1]+p+S|0,P[1]=P[2]+b+C|0,P[2]=P[3]+E+w|0,P[3]=P[4]+o+x|0,P[4]=P[0]+s+O|0,P[0]=I},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,o=i.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function d(t,e,n){return t^e^n}function g(t,e,n){return t&e|~t&n}function y(t,e,n){return(t|~e)^n}function v(t,e,n){return t&n|e&~n}function _(t,e,n){return t^(e|~n)}function m(t,e){return t<<e|t>>>32-e}n.RIPEMD160=o._createHelper(p),n.HmacRIPEMD160=o._createHmacHelper(p)}(Math),t.RIPEMD160}))},1132:function(t,e,n){(function(e,r){t.exports=r(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.WordArray,i=e.enc;i.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var i=[],o=0;o<n;o+=3)for(var s=e[o>>>2]>>>24-o%4*8&255,a=e[o+1>>>2]>>>24-(o+1)%4*8&255,u=e[o+2>>>2]>>>24-(o+2)%4*8&255,c=s<<16|a<<8|u,l=0;l<4&&o+.75*l<n;l++)i.push(r.charAt(c>>>6*(3-l)&63));var h=r.charAt(64);if(h)while(i.length%4)i.push(h);return i.join("")},parse:function(t){var e=t.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<n.length;i++)r[n.charCodeAt(i)]=i}var s=n.charAt(64);if(s){var a=t.indexOf(s);-1!==a&&(e=a)}return o(t,e,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function o(t,e,n){for(var i=[],o=0,s=0;s<e;s++)if(s%4){var a=n[t.charCodeAt(s-1)]<<s%4*2,u=n[t.charCodeAt(s)]>>>6-s%4*2,c=a|u;i[o>>>2]|=c<<24-o%4*8,o++}return r.create(i,o)}}(),t.enc.Base64}))},1300:function(t,e,n){"use strict";function r(){return function(){throw new Error("Unimplemented abstract method.")}()}n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return s}));var i=0;function o(t){return t.ol_uid||(t.ol_uid=String(++i))}var s="6.15.1"},"137e":function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n("faf4"),i=n("3333"),o=n("070d"),s=n("a896"),a=n("5c38"),u=n("0af5"),c=n("0999"),l=n("9f5e"),h=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f=[],p=null;function d(){var t=document.createElement("canvas");t.width=1,t.height=1,p=t.getContext("2d")}var g=function(t){function e(e){var n=t.call(this,e)||this;return n.container=null,n.renderedResolution,n.tempTransform=Object(s["c"])(),n.pixelTransform=Object(s["c"])(),n.inversePixelTransform=Object(s["c"])(),n.context=null,n.containerReused=!1,n.pixelContext_=null,n.frameState=null,n}return h(e,t),e.prototype.getImageData=function(t,e,n){var r;p||d(),p.clearRect(0,0,1,1);try{p.drawImage(t,e,n,1,1,0,0,1,1),r=p.getImageData(0,0,1,1).data}catch(i){return p=null,null}return r},e.prototype.getBackground=function(t){var e=this.getLayer(),n=e.getBackground();return"function"===typeof n&&(n=n(t.viewState.resolution)),n||void 0},e.prototype.useContainer=function(t,e,n){var r,i,o=this.getLayer().getClassName();if(t&&t.className===o&&(!n||t&&t.style.backgroundColor&&Object(l["b"])(Object(a["a"])(t.style.backgroundColor),Object(a["a"])(n)))){var s=t.firstElementChild;s instanceof HTMLCanvasElement&&(i=s.getContext("2d"))}if(i&&i.canvas.style.transform===e?(this.container=t,this.context=i,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){r=document.createElement("div"),r.className=o;var u=r.style;u.position="absolute",u.width="100%",u.height="100%",i=Object(c["a"])();s=i.canvas;r.appendChild(s),u=s.style,u.position="absolute",u.left="0",u.transformOrigin="top left",this.container=r,this.context=i}this.containerReused||!n||this.container.style.backgroundColor||(this.container.style.backgroundColor=n)},e.prototype.clipUnrotated=function(t,e,n){var r=Object(u["C"])(n),i=Object(u["D"])(n),o=Object(u["v"])(n),a=Object(u["u"])(n);Object(s["a"])(e.coordinateToPixelTransform,r),Object(s["a"])(e.coordinateToPixelTransform,i),Object(s["a"])(e.coordinateToPixelTransform,o),Object(s["a"])(e.coordinateToPixelTransform,a);var c=this.inversePixelTransform;Object(s["a"])(c,r),Object(s["a"])(c,i),Object(s["a"])(c,o),Object(s["a"])(c,a),t.save(),t.beginPath(),t.moveTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.clip()},e.prototype.dispatchRenderEvent_=function(t,e,n){var r=this.getLayer();if(r.hasListener(t)){var o=new i["a"](t,this.inversePixelTransform,n,e);r.dispatchEvent(o)}},e.prototype.preRender=function(t,e){this.frameState=e,this.dispatchRenderEvent_(o["a"].PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(o["a"].POSTRENDER,t,e)},e.prototype.getRenderTransform=function(t,e,n,r,i,o,a){var u=i/2,c=o/2,l=r/e,h=-l,f=-t[0]+a,p=-t[1];return Object(s["b"])(this.tempTransform,u,c,l,h,-n,f,p)},e.prototype.getDataAtPixel=function(t,e,n){var r=Object(s["a"])(this.inversePixelTransform,t.slice()),i=this.context,o=this.getLayer(),a=o.getExtent();if(a){var c=Object(s["a"])(e.pixelToCoordinateTransform,t.slice());if(!Object(u["f"])(a,c))return null}var l,h=Math.round(r[0]),f=Math.round(r[1]),p=this.pixelContext_;if(!p){var d=document.createElement("canvas");d.width=1,d.height=1,p=d.getContext("2d"),this.pixelContext_=p}p.clearRect(0,0,1,1);try{p.drawImage(i.canvas,h,f,1,1,0,0,1,1),l=p.getImageData(0,0,1,1).data}catch(g){return"SecurityError"===g.name?(this.pixelContext_=null,new Uint8Array):l}return 0===l[3]?null:l},e.prototype.disposeInternal=function(){delete this.frameState,t.prototype.disposeInternal.call(this)},e}(r["a"]);e["b"]=g},1382:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.StreamCipher,i=e.algo,o=[],s=[],a=[],u=i.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var o=e.words,s=o[0],a=o[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=u>>>16|4294901760&l,f=l<<16|65535&u;i[0]^=u,i[1]^=h,i[2]^=l,i[3]^=f,i[4]^=u,i[5]^=h,i[6]^=l,i[7]^=f;for(n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),t[e+r]^=o[r]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)s[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<s[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<s[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<s[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<s[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<s[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<s[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<s[6]>>>0?1:0)|0,this._b=e[7]>>>0<s[7]>>>0?1:0;for(n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,o=r>>>16,u=((i*i>>>17)+i*o>>>15)+o*o,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=u^c}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=r._createHelper(u)}(),t.Rabbit}))},"13d2":function(t,e,n){var r=n("e330"),i=n("d039"),o=n("1626"),s=n("1a2d"),a=n("83ab"),u=n("5e77").CONFIGURABLE,c=n("8925"),l=n("69f3"),h=l.enforce,f=l.get,p=String,d=Object.defineProperty,g=r("".slice),y=r("".replace),v=r([].join),_=a&&!i((function(){return 8!==d((function(){}),"length",{value:8}).length})),m=String(String).split("String"),b=t.exports=function(t,e,n){"Symbol("===g(p(e),0,7)&&(e="["+y(p(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!s(t,"name")||u&&t.name!==e)&&(a?d(t,"name",{value:e,configurable:!0}):t.name=e),_&&n&&s(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=h(t);return s(r,"source")||(r.source=v(m,"string"==typeof e?e:"")),t};Function.prototype.toString=b((function(){return o(this)&&f(this).source||c(this)}),"toString")},"14d9":function(t,e,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("07fa"),s=n("3a34"),a=n("3511"),u=n("d039"),c=u((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},h=c||!l();r({target:"Array",proto:!0,arity:1,forced:h},{push:function(t){var e=i(this),n=o(e),r=arguments.length;a(n+r);for(var u=0;u<r;u++)e[n]=arguments[u],n++;return s(e,n),n}})},1626:function(t,e,n){var r=n("8ea1"),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},"17e1":function(t,e,n){(function(e,r){t.exports=r(n("21bf"))})(0,(function(t){return function(){if("function"==typeof ArrayBuffer){var e=t,n=e.lib,r=n.WordArray,i=r.init,o=r.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,n=[],r=0;r<e;r++)n[r>>>2]|=t[r]<<24-r%4*8;i.call(this,n,e)}else i.apply(this,arguments)};o.prototype=r}}(),t.lib.WordArray}))},"183a":function(t,e,n){"use strict";e["a"]={ADD:"add",REMOVE:"remove"}},"191b":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("94f8"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.WordArray,i=e.algo,o=i.SHA256,s=i.SHA224=o.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=o._doFinalize.call(this);return t.sigBytes-=4,t}});e.SHA224=o._createHelper(s),e.HmacSHA224=o._createHmacHelper(s)}(),t.SHA224}))},"1a2d":function(t,e,n){var r=n("e330"),i=n("7b0b"),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},"1af9":function(t,e,n){"use strict";n.d(e,"b",(function(){return f}));var r=n("5564"),i=n("01d4"),o=n("df4c"),s=n("070d"),a=n("92fa"),u=n("38f3"),c=n("1e8d"),l=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=function(t){function e(e){var n=this,r=Object(u["a"])({},e);delete r.source,n=t.call(this,r)||this,n.on,n.once,n.un,n.mapPrecomposeKey_=null,n.mapRenderKey_=null,n.sourceChangeKey_=null,n.renderer_=null,n.rendered=!1,e.render&&(n.render=e.render),e.map&&n.setMap(e.map),n.addChangeListener(o["a"].SOURCE,n.handleSourcePropertyChange_);var i=e.source?e.source:null;return n.setSource(i),n}return l(e,t),e.prototype.getLayersArray=function(t){var e=t||[];return e.push(this),e},e.prototype.getLayerStatesArray=function(t){var e=t||[];return e.push(this.getLayerState()),e},e.prototype.getSource=function(){return this.get(o["a"].SOURCE)||null},e.prototype.getRenderSource=function(){return this.getSource()},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():"undefined"},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Object(c["c"])(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=Object(c["a"])(t,i["a"].CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.getFeatures=function(t){return this.renderer_?this.renderer_.getFeatures(t):new Promise((function(t){return t([])}))},e.prototype.getData=function(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null},e.prototype.render=function(t,e){var n=this.getRenderer();if(n.prepareFrame(t))return this.rendered=!0,n.renderFrame(t,e)},e.prototype.unrender=function(){this.rendered=!1},e.prototype.setMapInternal=function(t){t||this.unrender(),this.set(o["a"].MAP,t)},e.prototype.getMapInternal=function(){return this.get(o["a"].MAP)},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&(Object(c["c"])(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Object(c["c"])(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=Object(c["a"])(t,s["a"].PRECOMPOSE,(function(t){var e=t,n=e.frameState.layerStatesArray,r=this.getLayerState(!1);Object(a["a"])(!n.some((function(t){return t.layer===r.layer})),67),n.push(r)}),this),this.mapRenderKey_=Object(c["a"])(this,i["a"].CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(o["a"].SOURCE,t)},e.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},e.prototype.hasRenderer=function(){return!!this.renderer_},e.prototype.createRenderer=function(){return null},e.prototype.disposeInternal=function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),t.prototype.disposeInternal.call(this)},e}(r["a"]);function f(t,e){if(!t.visible)return!1;var n=e.resolution;if(n<t.minResolution||n>=t.maxResolution)return!1;var r=e.zoom;return r>t.minZoom&&r<=t.maxZoom}e["a"]=h},"1c48":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"e",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return c}));var r=n("7fc9");function i(t,e,n,i,o,s,a){var u=(n-e)/i;if(u<3){for(;e<n;e+=i)s[a++]=t[e],s[a++]=t[e+1];return a}var c=new Array(u);c[0]=1,c[u-1]=1;var l=[e,n-i],h=0;while(l.length>0){for(var f=l.pop(),p=l.pop(),d=0,g=t[p],y=t[p+1],v=t[f],_=t[f+1],m=p+i;m<f;m+=i){var b=t[m],E=t[m+1],w=Object(r["j"])(b,E,g,y,v,_);w>d&&(h=m,d=w)}d>o&&(c[(h-e)/i]=1,p+i<h&&l.push(p,h),h+i<f&&l.push(h,f))}for(m=0;m<u;++m)c[m]&&(s[a++]=t[e+m*i],s[a++]=t[e+m*i+1]);return a}function o(t,e,n,r,o,s,a,u){for(var c=0,l=n.length;c<l;++c){var h=n[c];a=i(t,e,h,r,o,s,a),u.push(a),e=h}return a}function s(t,e){return e*Math.round(t/e)}function a(t,e,n,r,i,o,a){if(e==n)return a;var u,c,l=s(t[e],i),h=s(t[e+1],i);e+=r,o[a++]=l,o[a++]=h;do{if(u=s(t[e],i),c=s(t[e+1],i),e+=r,e==n)return o[a++]=u,o[a++]=c,a}while(u==l&&c==h);while(e<n){var f=s(t[e],i),p=s(t[e+1],i);if(e+=r,f!=u||p!=c){var d=u-l,g=c-h,y=f-l,v=p-h;d*v==g*y&&(d<0&&y<d||d==y||d>0&&y>d)&&(g<0&&v<g||g==v||g>0&&v>g)?(u=f,c=p):(o[a++]=u,o[a++]=c,l=u,h=c,u=f,c=p)}}return o[a++]=u,o[a++]=c,a}function u(t,e,n,r,i,o,s,u){for(var c=0,l=n.length;c<l;++c){var h=n[c];s=a(t,e,h,r,i,o,s),u.push(s),e=h}return s}function c(t,e,n,r,i,o,s,a){for(var c=0,l=n.length;c<l;++c){var h=n[c],f=[];s=u(t,e,h,r,i,o,s,f),a.push(f),e=h[h.length-1]}return s}},"1d80":function(t,e,n){var r=n("7234"),i=TypeError;t.exports=function(t){if(r(t))throw i("Can't call method on "+t);return t}},"1e8d":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s}));var r=n("38f3");function i(t,e,n,r,i){if(r&&r!==t&&(n=n.bind(r)),i){var o=n;n=function(){t.removeEventListener(e,n),o.apply(this,arguments)}}var s={target:t,type:e,listener:n};return t.addEventListener(e,n),s}function o(t,e,n,r){return i(t,e,n,r,!0)}function s(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),Object(r["b"])(t))}},"1fb5":function(t,e,n){"use strict";e.byteLength=l,e.toByteArray=f,e.fromByteArray=g;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function l(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function h(t,e,n){return 3*(e+n)/4-n}function f(t){var e,n,r=c(t),s=r[0],a=r[1],u=new o(h(t,s,a)),l=0,f=a>0?s-4:s;for(n=0;n<f;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===a&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[l++]=255&e),1===a&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u}function p(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function d(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(p(r));return i.join("")}function g(t){for(var e,n=t.length,i=n%3,o=[],s=16383,a=0,u=n-i;a<u;a+=s)o.push(d(t,a,a+s>u?u:a+s));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"21bf":function(t,e,n){(function(e){(function(e,n){t.exports=n()})(0,(function(){var t=t||function(t,r){var i;if("undefined"!==typeof window&&window.crypto&&(i=window.crypto),"undefined"!==typeof self&&self.crypto&&(i=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!==typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&"undefined"!==typeof e&&e.crypto&&(i=e.crypto),!i)try{i=n(0)}catch(v){}var o=function(){if(i){if("function"===typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(v){}if("function"===typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),a={},u=a.lib={},c=u.Base=function(){return{extend:function(t){var e=s(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=u.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=e!=r?e:4*t.length},toString:function(t){return(t||f).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var s=n[o>>>2]>>>24-o%4*8&255;e[r+o>>>2]|=s<<24-(r+o)%4*8}else for(var a=0;a<i;a+=4)e[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(o());return new l.init(e,t)}}),h=a.enc={},f=h.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new l.init(n,e/2)}},p=h.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new l.init(n,e)}},d=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(p.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},g=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,i=r.words,o=r.sigBytes,s=this.blockSize,a=4*s,u=o/a;u=e?t.ceil(u):t.max((0|u)-this._minBufferSize,0);var c=u*s,h=t.min(4*c,o);if(c){for(var f=0;f<c;f+=s)this._doProcessBlock(i,f);n=i.splice(0,c),r.sigBytes-=h}return new l.init(n,h)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),y=(u.Hasher=g.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new y.HMAC.init(t,n).finalize(e)}}}),a.algo={});return a}(Math);return t}))}).call(this,n("c8ba"))},"23cb":function(t,e,n){var r=n("5926"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),s=n("cb2d"),a=n("6374"),u=n("e893"),c=n("94ca");t.exports=function(t,e){var n,l,h,f,p,d,g=t.target,y=t.global,v=t.stat;if(l=y?r:v?r[g]||a(g,{}):(r[g]||{}).prototype,l)for(h in e){if(p=e[h],t.dontCallGetSet?(d=i(l,h),f=d&&d.value):f=l[h],n=c(y?h:g+(v?".":"#")+h,t.forced),!n&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(t.sham||f&&f.sham)&&o(p,"sham",!0),s(l,h,p,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"256f":function(t,e,n){"use strict";n.d(e,"a",(function(){return r["a"]})),n.d(e,"c",(function(){return M})),n.d(e,"h",(function(){return D})),n.d(e,"i",(function(){return k})),n.d(e,"b",(function(){return U})),n.d(e,"d",(function(){return z})),n.d(e,"k",(function(){return Y})),n.d(e,"j",(function(){return X})),n.d(e,"p",(function(){return V})),n.d(e,"q",(function(){return q})),n.d(e,"l",(function(){return H})),n.d(e,"m",(function(){return Z})),n.d(e,"e",(function(){return K})),n.d(e,"n",(function(){return J})),n.d(e,"f",(function(){return Q})),n.d(e,"o",(function(){return $})),n.d(e,"g",(function(){return tt}));var r=n("fced"),i=n("f5dd"),o=n("7fc9"),s=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=6378137,u=Math.PI*a,c=[-u,-u,u,u],l=[-180,-85,180,85],h=a*Math.log(Math.tan(Math.PI/2)),f=function(t){function e(e){return t.call(this,{code:e,units:r["b"].METERS,extent:c,global:!0,worldExtent:l,getPointResolution:function(t,e){return t/Object(o["c"])(e[1]/a)}})||this}return s(e,t),e}(i["a"]),p=[new f("EPSG:3857"),new f("EPSG:102100"),new f("EPSG:102113"),new f("EPSG:900913"),new f("http://www.opengis.net/def/crs/EPSG/0/3857"),new f("http://www.opengis.net/gml/srs/epsg.xml#3857")];function d(t,e,n){var r=t.length,i=n>1?n:2,o=e;void 0===o&&(o=i>2?t.slice():new Array(r));for(var s=0;s<r;s+=i){o[s]=u*t[s]/180;var c=a*Math.log(Math.tan(Math.PI*(+t[s+1]+90)/360));c>h?c=h:c<-h&&(c=-h),o[s+1]=c}return o}function g(t,e,n){var r=t.length,i=n>1?n:2,o=e;void 0===o&&(o=i>2?t.slice():new Array(r));for(var s=0;s<r;s+=i)o[s]=180*t[s]/u,o[s+1]=360*Math.atan(Math.exp(t[s+1]/a))/Math.PI-90;return o}var y=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=6378137,_=[-180,-90,180,90],m=Math.PI*v/180,b=function(t){function e(e,n){return t.call(this,{code:e,units:r["b"].DEGREES,extent:_,axisOrientation:n,global:!0,metersPerUnit:m,worldExtent:_})||this}return y(e,t),e}(i["a"]),E=[new b("CRS:84"),new b("EPSG:4326","neu"),new b("urn:ogc:def:crs:OGC:1.3:CRS84"),new b("urn:ogc:def:crs:OGC:2:84"),new b("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new b("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new b("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],w={};function x(t){return w[t]||w[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}function O(t,e){w[t]=e}n("38f3");var S={};function C(t,e,n){var r=t.getCode(),i=e.getCode();r in S||(S[r]={}),S[r][i]=n}function I(t,e){var n;return t in S&&e in S[t]&&(n=S[t][e]),n}var P=n("0af5"),R=n("a568"),T=n("790a"),L=!0;function M(t){var e=void 0===t||t;L=!e}function N(t,e,n){var r;if(void 0!==e){for(var i=0,o=t.length;i<o;++i)e[i]=t[i];r=e}else r=t.slice();return r}function A(t,e,n){if(void 0!==e&&t!==e){for(var r=0,i=t.length;r<i;++r)e[r]=t[r];t=e}return t}function F(t){O(t.getCode(),t),C(t,t,N)}function j(t){t.forEach(F)}function D(t){return"string"===typeof t?x(t):t||null}function k(t,e,n,i){var o;t=D(t);var s=t.getPointResolutionFunc();if(s){if(o=s(e,n),i&&i!==t.getUnits()){var a=t.getMetersPerUnit();a&&(o=o*a/r["a"][i])}}else{var u=t.getUnits();if(u==r["b"].DEGREES&&!i||i==r["b"].DEGREES)o=e;else{var c=Y(t,D("EPSG:4326"));if(c===A&&u!==r["b"].DEGREES)o=e*t.getMetersPerUnit();else{var l=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2];l=c(l,l,2);var h=Object(T["b"])(l.slice(0,2),l.slice(2,4)),f=Object(T["b"])(l.slice(4,6),l.slice(6,8));o=(h+f)/2}a=i?r["a"][i]:t.getMetersPerUnit();void 0!==a&&(o/=a)}}return o}function G(t){j(t),t.forEach((function(e){t.forEach((function(t){e!==t&&C(e,t,N)}))}))}function B(t,e,n,r){t.forEach((function(t){e.forEach((function(e){C(t,e,n),C(e,t,r)}))}))}function U(t,e){return t?"string"===typeof t?D(t):t:D(e)}function z(t,e){if(t===e)return!0;var n=t.getUnits()===e.getUnits();if(t.getCode()===e.getCode())return n;var r=Y(t,e);return r===N&&n}function Y(t,e){var n=t.getCode(),r=e.getCode(),i=I(n,r);return i||(i=A),i}function X(t,e){var n=D(t),r=D(e);return Y(n,r)}function V(t,e,n){var r=X(e,n);return r(t,void 0,t.length)}function q(t,e,n,r){var i=X(e,n);return Object(P["a"])(t,i,void 0,r)}var W=null;function H(){return W}function Z(t,e){return W?V(t,e,W):t}function K(t,e){return W?V(t,W,e):(L&&!Object(R["b"])(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(L=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t)}function J(t,e){return W?q(t,e,W):t}function Q(t,e){return W?q(t,W,e):t}function $(t,e){if(!W)return t;var n=D(e).getUnits(),i=W.getUnits();return n&&i?t*r["a"][n]/r["a"][i]:t}function tt(t,e){if(!W)return t;var n=D(e).getUnits(),i=W.getUnits();return n&&i?t*r["a"][i]/r["a"][n]:t}function et(){G(p),G(E),B(E,p,d,g)}et()},"25a5":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";function t(t,r,i,o,s){!function t(n,r,i,o,s){for(;o>i;){if(o-i>600){var a=o-i+1,u=r-i+1,c=Math.log(a),l=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*l*(a-l)/a)*(u-a/2<0?-1:1),f=Math.max(i,Math.floor(r-u*l/a+h)),p=Math.min(o,Math.floor(r+(a-u)*l/a+h));t(n,r,f,p,s)}var d=n[r],g=i,y=o;for(e(n,i,r),s(n[o],d)>0&&e(n,i,o);g<y;){for(e(n,g,y),g++,y--;s(n[g],d)<0;)g++;for(;s(n[y],d)>0;)y--}0===s(n[i],d)?e(n,i,y):e(n,++y,o),y<=r&&(i=y+1),r<=y&&(o=y-1)}}(t,r,i||0,o||t.length-1,s||n)}function e(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function n(t,e){return t<e?-1:t>e?1:0}var r=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(t,e,n){if(!n)return e.indexOf(t);for(var r=0;r<e.length;r++)if(n(t,e[r]))return r;return-1}function o(t,e){s(t,0,t.children.length,e,t)}function s(t,e,n,r,i){i||(i=d(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=e;o<n;o++){var s=t.children[o];a(i,t.leaf?r(s):s)}return i}function a(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 u(t,e){return t.minX-e.minX}function c(t,e){return t.minY-e.minY}function l(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function h(t){return t.maxX-t.minX+(t.maxY-t.minY)}function f(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function p(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function d(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(e,n,r,i,o){for(var s=[n,r];s.length;)if(!((r=s.pop())-(n=s.pop())<=i)){var a=n+Math.ceil((r-n)/i/2)*i;t(e,a,n,r,o),s.push(n,a,a,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(t){var e=this.data,n=[];if(!p(t,e))return n;for(var r=this.toBBox,i=[];e;){for(var o=0;o<e.children.length;o++){var s=e.children[o],a=e.leaf?r(s):s;p(t,a)&&(e.leaf?n.push(s):f(t,a)?this._all(s,n):i.push(s))}e=i.pop()}return n},r.prototype.collides=function(t){var e=this.data;if(!p(t,e))return!1;for(var n=[];e;){for(var r=0;r<e.children.length;r++){var i=e.children[r],o=e.leaf?this.toBBox(i):i;if(p(t,o)){if(e.leaf||f(t,o))return!0;n.push(i)}}e=n.pop()}return!1},r.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},r.prototype.clear=function(){return this.data=d([]),this},r.prototype.remove=function(t,e){if(!t)return this;for(var n,r,o,s=this.data,a=this.toBBox(t),u=[],c=[];s||u.length;){if(s||(s=u.pop(),r=u[u.length-1],n=c.pop(),o=!0),s.leaf){var l=i(t,s.children,e);if(-1!==l)return s.children.splice(l,1),u.push(s),this._condense(u),this}o||s.leaf||!f(s,a)?r?(n++,s=r.children[n],o=!1):s=null:(u.push(s),c.push(n),n=0,r=s,s=s.children[0])}return this},r.prototype.toBBox=function(t){return t},r.prototype.compareMinX=function(t,e){return t.minX-e.minX},r.prototype.compareMinY=function(t,e){return t.minY-e.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(t){return this.data=t,this},r.prototype._all=function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},r.prototype._build=function(t,e,n,r){var i,s=n-e+1,a=this._maxEntries;if(s<=a)return o(i=d(t.slice(e,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(s)/Math.log(a)),a=Math.ceil(s/Math.pow(a,r-1))),(i=d([])).leaf=!1,i.height=r;var u=Math.ceil(s/a),c=u*Math.ceil(Math.sqrt(a));g(t,e,n,c,this.compareMinX);for(var l=e;l<=n;l+=c){var h=Math.min(l+c-1,n);g(t,l,h,u,this.compareMinY);for(var f=l;f<=h;f+=u){var p=Math.min(f+u-1,h);i.children.push(this._build(t,f,p,r-1))}}return o(i,this.toBBox),i},r.prototype._chooseSubtree=function(t,e,n,r){for(;r.push(e),!e.leaf&&r.length-1!==n;){for(var i=1/0,o=1/0,s=void 0,a=0;a<e.children.length;a++){var u=e.children[a],c=l(u),h=(f=t,p=u,(Math.max(p.maxX,f.maxX)-Math.min(p.minX,f.minX))*(Math.max(p.maxY,f.maxY)-Math.min(p.minY,f.minY))-c);h<o?(o=h,i=c<i?c:i,s=u):h===o&&c<i&&(i=c,s=u)}e=s||e.children[0]}var f,p;return e},r.prototype._insert=function(t,e,n){var r=n?t:this.toBBox(t),i=[],o=this._chooseSubtree(r,this.data,e,i);for(o.children.push(t),a(o,r);e>=0&&i[e].children.length>this._maxEntries;)this._split(i,e),e--;this._adjustParentBBoxes(r,i,e)},r.prototype._split=function(t,e){var n=t[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var s=this._chooseSplitIndex(n,i,r),a=d(n.children.splice(s,n.children.length-s));a.height=n.height,a.leaf=n.leaf,o(n,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(n,a)},r.prototype._splitRoot=function(t,e){this.data=d([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(t,e,n){for(var r,i,o,a,u,c,h,f=1/0,p=1/0,d=e;d<=n-e;d++){var g=s(t,0,d,this.toBBox),y=s(t,d,n,this.toBBox),v=(i=g,o=y,a=void 0,u=void 0,c=void 0,h=void 0,a=Math.max(i.minX,o.minX),u=Math.max(i.minY,o.minY),c=Math.min(i.maxX,o.maxX),h=Math.min(i.maxY,o.maxY),Math.max(0,c-a)*Math.max(0,h-u)),_=l(g)+l(y);v<f?(f=v,r=d,p=_<p?_:p):v===f&&_<p&&(p=_,r=d)}return r||n-e},r.prototype._chooseSplitAxis=function(t,e,n){var r=t.leaf?this.compareMinX:u,i=t.leaf?this.compareMinY:c;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,i)&&t.children.sort(r)},r.prototype._allDistMargin=function(t,e,n,r){t.children.sort(r);for(var i=this.toBBox,o=s(t,0,e,i),u=s(t,n-e,n,i),c=h(o)+h(u),l=e;l<n-e;l++){var f=t.children[l];a(o,t.leaf?i(f):f),c+=h(o)}for(var p=n-e-1;p>=e;p--){var d=t.children[p];a(u,t.leaf?i(d):d),c+=h(u)}return c},r.prototype._adjustParentBBoxes=function(t,e,n){for(var r=n;r>=0;r--)a(e[r],t)},r.prototype._condense=function(t){for(var e=t.length-1,n=void 0;e>=0;e--)0===t[e].children.length?e>0?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},r}))},"25f1":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return a}));var r=n("0af5");function i(t,e,n,i,s){var a=Object(r["s"])(s,(function(r){return!o(t,e,n,i,r[0],r[1])}));return!a}function o(t,e,n,r,i,o){for(var s=0,a=t[n-r],u=t[n-r+1];e<n;e+=r){var c=t[e],l=t[e+1];u<=o?l>o&&(c-a)*(o-u)-(i-a)*(l-u)>0&&s++:l<=o&&(c-a)*(o-u)-(i-a)*(l-u)<0&&s--,a=c,u=l}return 0!==s}function s(t,e,n,r,i,s){if(0===n.length)return!1;if(!o(t,e,n[0],r,i,s))return!1;for(var a=1,u=n.length;a<u;++a)if(o(t,n[a-1],n[a],r,i,s))return!1;return!0}function a(t,e,n,r,i,o){if(0===n.length)return!1;for(var a=0,u=n.length;a<u;++a){var c=n[a];if(s(t,e,c,r,i,o))return!0;e=c[c.length-1]}return!1}},"27c7":function(t,e,n){"use strict";n.r(e),n.d(e,"EsriJSON",(function(){return U})),n.d(e,"GeoJSON",(function(){return z["a"]})),n.d(e,"GML",(function(){return Jt})),n.d(e,"GPX",(function(){return Ue})),n.d(e,"IGC",(function(){return Ke})),n.d(e,"IIIFInfo",(function(){return gn})),n.d(e,"KML",(function(){return io})),n.d(e,"MVT",(function(){return oo["a"]})),n.d(e,"OWS",(function(){return zo})),n.d(e,"Polyline",(function(){return rs})),n.d(e,"TopoJSON",(function(){return ms})),n.d(e,"WFS",(function(){return iu})),n.d(e,"WKB",(function(){return pu})),n.d(e,"WKT",(function(){return du["a"]})),n.d(e,"WMSCapabilities",(function(){return rc})),n.d(e,"WMSGetFeatureInfo",(function(){return uc})),n.d(e,"WMTSCapabilities",(function(){return Dc}));var r=n("4cdf"),i=n("521b"),o=n("377d"),s=n("7a09"),a=n("049d"),u=n("47e4"),c=n("9a44"),l=n("88da"),h=n("f403"),f=n("5bc3"),p=n("92fa"),d=n("38f3"),g=n("0af5"),y=n("abb7"),v=n("256f"),_=n("4d98"),m=n("b7df"),b=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),E={Point:C,LineString:I,Polygon:M,MultiPoint:T,MultiLineString:P,MultiPolygon:L},w={Point:N,LineString:F,Polygon:j,MultiPoint:k,MultiLineString:D,MultiPolygon:G},x=function(t){function e(e){var n=this,r=e||{};return n=t.call(this)||this,n.geometryName_=r.geometryName,n}return b(e,t),e.prototype.readFeatureFromObject=function(t,e,n){var i=t,o=O(i.geometry,e),s=new r["a"];if(this.geometryName_&&s.setGeometryName(this.geometryName_),s.setGeometry(o),i.attributes){s.setProperties(i.attributes,!0);var a=i.attributes[n];void 0!==a&&s.setId(a)}return s},e.prototype.readFeaturesFromObject=function(t,e){var n=e||{};if(t["features"]){for(var r=t,i=[],o=r.features,s=0,a=o.length;s<a;++s)i.push(this.readFeatureFromObject(o[s],n,t.objectIdFieldName));return i}return[this.readFeatureFromObject(t,n)]},e.prototype.readGeometryFromObject=function(t,e){return O(t,e)},e.prototype.readProjectionFromObject=function(t){if(t["spatialReference"]&&void 0!==t["spatialReference"]["wkid"]){var e=t["spatialReference"],n=e.wkid;return Object(v["h"])("EPSG:"+n)}return null},e.prototype.writeGeometryObject=function(t,e){return B(t,this.adaptOptions(e))},e.prototype.writeFeatureObject=function(t,e){e=this.adaptOptions(e);var n={};if(!t.hasProperties())return n["attributes"]={},n;var r=t.getProperties(),i=t.getGeometry();if(i){n["geometry"]=B(i,e);var o=e&&(e.dataProjection||e.featureProjection);o&&(n["geometry"]["spatialReference"]={wkid:Number(Object(v["h"])(o).getCode().split(":").pop())}),delete r[t.getGeometryName()]}return Object(d["d"])(r)?n["attributes"]={}:n["attributes"]=r,n},e.prototype.writeFeaturesObject=function(t,e){e=this.adaptOptions(e);for(var n=[],r=0,i=t.length;r<i;++r)n.push(this.writeFeatureObject(t[r],e));return{features:n}},e}(o["a"]);function O(t,e){var n,r,i;if(!t)return null;if("number"===typeof t["x"]&&"number"===typeof t["y"])i="Point";else if(t["points"])i="MultiPoint";else if(t["paths"]){var o=t;i=1===o.paths.length?"LineString":"MultiLineString"}else if(t["rings"]){var s=t,a=R(s),u=S(s.rings,a);1===u.length?(i="Polygon",t=Object(d["a"])({},t,(n={},n["rings"]=u[0],n))):(i="MultiPolygon",t=Object(d["a"])({},t,(r={},r["rings"]=u,r)))}var c=E[i];return Object(m["c"])(c(t),!1,e)}function S(t,e){var n,r,i=[],o=[],s=[];for(n=0,r=t.length;n<r;++n){i.length=0,Object(y["b"])(i,0,t[n],e.length);var u=Object(_["b"])(i,0,i.length,e.length);u?o.push([t[n]]):s.push(t[n])}while(s.length){var c=s.shift(),l=!1;for(n=o.length-1;n>=0;n--){var h=o[n][0],f=Object(g["g"])(new a["a"](h).getExtent(),new a["a"](c).getExtent());if(f){o[n].push(c),l=!0;break}}l||o.push([c.reverse()])}return o}function C(t){var e;return e=void 0!==t.m&&void 0!==t.z?new h["a"]([t.x,t.y,t.z,t.m],i["a"].XYZM):void 0!==t.z?new h["a"]([t.x,t.y,t.z],i["a"].XYZ):void 0!==t.m?new h["a"]([t.x,t.y,t.m],i["a"].XYM):new h["a"]([t.x,t.y]),e}function I(t){var e=R(t);return new s["a"](t.paths[0],e)}function P(t){var e=R(t);return new u["a"](t.paths,e)}function R(t){var e=i["a"].XY;return!0===t.hasZ&&!0===t.hasM?e=i["a"].XYZM:!0===t.hasZ?e=i["a"].XYZ:!0===t.hasM&&(e=i["a"].XYM),e}function T(t){var e=R(t);return new c["a"](t.points,e)}function L(t){var e=R(t);return new l["a"](t.rings,e)}function M(t){var e=R(t);return new f["a"](t.rings,e)}function N(t,e){var n,r=t.getCoordinates(),o=t.getLayout();return o===i["a"].XYZ?n={x:r[0],y:r[1],z:r[2]}:o===i["a"].XYM?n={x:r[0],y:r[1],m:r[2]}:o===i["a"].XYZM?n={x:r[0],y:r[1],z:r[2],m:r[3]}:o===i["a"].XY?n={x:r[0],y:r[1]}:Object(p["a"])(!1,34),n}function A(t){var e=t.getLayout();return{hasZ:e===i["a"].XYZ||e===i["a"].XYZM,hasM:e===i["a"].XYM||e===i["a"].XYZM}}function F(t,e){var n=A(t);return{hasZ:n.hasZ,hasM:n.hasM,paths:[t.getCoordinates()]}}function j(t,e){var n=A(t);return{hasZ:n.hasZ,hasM:n.hasM,rings:t.getCoordinates(!1)}}function D(t,e){var n=A(t);return{hasZ:n.hasZ,hasM:n.hasM,paths:t.getCoordinates()}}function k(t,e){var n=A(t);return{hasZ:n.hasZ,hasM:n.hasM,points:t.getCoordinates()}}function G(t,e){for(var n=A(t),r=t.getCoordinates(!1),i=[],o=0;o<r.length;o++)for(var s=r[o].length-1;s>=0;s--)i.push(r[o][s]);return{hasZ:n.hasZ,hasM:n.hasM,rings:i}}function B(t,e){var n=w[t.getType()];return n(Object(m["c"])(t,!0,e),e)}var U=x,z=n("a2e1"),Y=n("1300"),X=n("9f5e"),V="http://www.w3.org/2001/XMLSchema-instance";function q(t,e){return yt().createElementNS(t,e)}function W(t,e){return H(t,e,[]).join("")}function H(t,e,n){if(t.nodeType==Node.CDATA_SECTION_NODE||t.nodeType==Node.TEXT_NODE)e?n.push(String(t.nodeValue).replace(/(\r\n|\r|\n)/g,"")):n.push(t.nodeValue);else{var r=void 0;for(r=t.firstChild;r;r=r.nextSibling)H(r,e,n)}return n}function Z(t){return"documentElement"in t}function K(t,e,n){return t.getAttributeNS(e,n)||""}function J(t){return(new DOMParser).parseFromString(t,"application/xml")}function Q(t,e){return function(n,r){var i=t.call(void 0!==e?e:this,n,r);if(void 0!==i){var o=r[r.length-1];Object(X["c"])(o,i)}}}function $(t,e){return function(n,r){var i=t.call(void 0!==e?e:this,n,r);if(void 0!==i){var o=r[r.length-1];o.push(i)}}}function tt(t,e){return function(n,r){var i=t.call(void 0!==e?e:this,n,r);void 0!==i&&(r[r.length-1]=i)}}function et(t,e,n){return function(r,i){var o=t.call(void 0!==n?n:this,r,i);if(void 0!==o){var s=i[i.length-1],a=void 0!==e?e:r.localName,u=void 0;a in s?u=s[a]:(u=[],s[a]=u),u.push(o)}}}function nt(t,e,n){return function(r,i){var o=t.call(void 0!==n?n:this,r,i);if(void 0!==o){var s=i[i.length-1],a=void 0!==e?e:r.localName;s[a]=o}}}function rt(t,e){return function(n,r,i){t.call(void 0!==e?e:this,n,r,i);var o=i[i.length-1],s=o.node;s.appendChild(n)}}function it(t,e){var n,r;return function(e,i,o){if(void 0===n){n={};var s={};s[e.localName]=t,n[e.namespaceURI]=s,r=ot(e.localName)}ht(n,r,i,o)}}function ot(t,e){var n=t;return function(t,r,i){var o=r[r.length-1],s=o.node,a=n;void 0===a&&(a=i);var u=void 0!==e?e:s.namespaceURI;return q(u,a)}}var st=ot();function at(t,e){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=t[e[i]];return r}function ut(t,e,n){var r,i,o=void 0!==n?n:{};for(r=0,i=t.length;r<i;++r)o[t[r]]=e;return o}function ct(t,e,n,r){var i;for(i=e.firstElementChild;i;i=i.nextElementSibling){var o=t[i.namespaceURI];if(void 0!==o){var s=o[i.localName];void 0!==s&&s.call(r,i,n)}}}function lt(t,e,n,r,i){return r.push(t),ct(e,n,r,i),r.pop()}function ht(t,e,n,r,i,o){for(var s,a,u=(void 0!==i?i:n).length,c=0;c<u;++c)s=n[c],void 0!==s&&(a=e.call(void 0!==o?o:this,s,r,void 0!==i?i[c]:void 0),void 0!==a&&t[a.namespaceURI][a.localName].call(o,a,s,r))}function ft(t,e,n,r,i,o,s){return i.push(t),ht(e,n,r,i,o,s),i.pop()}var pt=void 0;function dt(){return void 0===pt&&"undefined"!==typeof XMLSerializer&&(pt=new XMLSerializer),pt}var gt=void 0;function yt(){return void 0===gt&&"undefined"!==typeof document&&(gt=document.implementation.createDocument("","",null)),gt}var vt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_t=function(t){function e(){var e=t.call(this)||this;return e.xmlSerializer_=dt(),e}return vt(e,t),e.prototype.getType=function(){return"xml"},e.prototype.readFeature=function(t,e){if(t){if("string"===typeof t){var n=J(t);return this.readFeatureFromDocument(n,e)}return Z(t)?this.readFeatureFromDocument(t,e):this.readFeatureFromNode(t,e)}return null},e.prototype.readFeatureFromDocument=function(t,e){var n=this.readFeaturesFromDocument(t,e);return n.length>0?n[0]:null},e.prototype.readFeatureFromNode=function(t,e){return null},e.prototype.readFeatures=function(t,e){if(t){if("string"===typeof t){var n=J(t);return this.readFeaturesFromDocument(n,e)}return Z(t)?this.readFeaturesFromDocument(t,e):this.readFeaturesFromNode(t,e)}return[]},e.prototype.readFeaturesFromDocument=function(t,e){for(var n=[],r=t.firstChild;r;r=r.nextSibling)r.nodeType==Node.ELEMENT_NODE&&Object(X["c"])(n,this.readFeaturesFromNode(r,e));return n},e.prototype.readFeaturesFromNode=function(t,e){return Object(Y["b"])()},e.prototype.readGeometry=function(t,e){if(t){if("string"===typeof t){var n=J(t);return this.readGeometryFromDocument(n,e)}return Z(t)?this.readGeometryFromDocument(t,e):this.readGeometryFromNode(t,e)}return null},e.prototype.readGeometryFromDocument=function(t,e){return null},e.prototype.readGeometryFromNode=function(t,e){return null},e.prototype.readProjection=function(t){if(t){if("string"===typeof t){var e=J(t);return this.readProjectionFromDocument(e)}return Z(t)?this.readProjectionFromDocument(t):this.readProjectionFromNode(t)}return null},e.prototype.readProjectionFromDocument=function(t){return this.dataProjection},e.prototype.readProjectionFromNode=function(t){return this.dataProjection},e.prototype.writeFeature=function(t,e){var n=this.writeFeatureNode(t,e);return this.xmlSerializer_.serializeToString(n)},e.prototype.writeFeatureNode=function(t,e){return null},e.prototype.writeFeatures=function(t,e){var n=this.writeFeaturesNode(t,e);return this.xmlSerializer_.serializeToString(n)},e.prototype.writeFeaturesNode=function(t,e){return null},e.prototype.writeGeometry=function(t,e){var n=this.writeGeometryNode(t,e);return this.xmlSerializer_.serializeToString(n)},e.prototype.writeGeometryNode=function(t,e){return null},e}(m["a"]),mt=_t,bt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Et="http://www.opengis.net/gml",wt=/^[\s\xa0]*$/,xt=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.featureType=r.featureType,n.featureNS=r.featureNS,n.srsName=r.srsName,n.schemaLocation="",n.FEATURE_COLLECTION_PARSERS={},n.FEATURE_COLLECTION_PARSERS[n.namespace]={featureMember:$(n.readFeaturesInternal),featureMembers:tt(n.readFeaturesInternal)},n.supportedMediaTypes=["application/gml+xml"],n}return bt(e,t),e.prototype.readFeaturesInternal=function(t,e){var n=t.localName,r=null;if("FeatureCollection"==n)r=lt([],this.FEATURE_COLLECTION_PARSERS,t,e,this);else if("featureMembers"==n||"featureMember"==n||"member"==n){var i=e[0],o=i["featureType"],s=i["featureNS"],a="p",u="p0";if(!o&&t.childNodes){o=[],s={};for(var c=0,l=t.childNodes.length;c<l;++c){var h=t.childNodes[c];if(1===h.nodeType){var f=h.nodeName.split(":").pop();if(-1===o.indexOf(f)){var p="",d=0,g=h.namespaceURI;for(var y in s){if(s[y]===g){p=y;break}++d}p||(p=a+d,s[p]=g),o.push(p+":"+f)}}}"featureMember"!=n&&(i["featureType"]=o,i["featureNS"]=s)}if("string"===typeof s){var v=s;s={},s[u]=v}var _={},m=Array.isArray(o)?o:[o];for(var b in s){var E={};for(c=0,l=m.length;c<l;++c){var w=-1===m[c].indexOf(":")?u:m[c].split(":")[0];w===b&&(E[m[c].split(":").pop()]="featureMembers"==n?$(this.readFeatureElement,this):tt(this.readFeatureElement,this))}_[s[b]]=E}r=lt("featureMember"==n||"member"==n?void 0:[],_,t,e)}return null===r&&(r=[]),r},e.prototype.readGeometryOrExtent=function(t,e){var n=e[0];return n["srsName"]=t.firstElementChild.getAttribute("srsName"),n["srsDimension"]=t.firstElementChild.getAttribute("srsDimension"),lt(null,this.GEOMETRY_PARSERS,t,e,this)},e.prototype.readExtentElement=function(t,e){var n=e[0],r=this.readGeometryOrExtent(t,e);return r?Object(m["b"])(r,n):void 0},e.prototype.readGeometryElement=function(t,e){var n=e[0],r=this.readGeometryOrExtent(t,e);return r?Object(m["c"])(r,!1,n):void 0},e.prototype.readFeatureElementInternal=function(t,e,n){for(var i,o={},s=t.firstElementChild;s;s=s.nextElementSibling){var a=void 0,u=s.localName;0===s.childNodes.length||1===s.childNodes.length&&(3===s.firstChild.nodeType||4===s.firstChild.nodeType)?(a=W(s,!1),wt.test(a)&&(a=void 0)):(n&&(a="boundedBy"===u?this.readExtentElement(s,e):this.readGeometryElement(s,e)),a?"boundedBy"!==u&&(i=u):a=this.readFeatureElementInternal(s,e,!1));var c=s.attributes.length;if(c>0){a={_content_:a};for(var l=0;l<c;l++){var h=s.attributes[l].name;a[h]=s.attributes[l].value}}o[u]?(o[u]instanceof Array||(o[u]=[o[u]]),o[u].push(a)):o[u]=a}if(n){var f=new r["a"](o);i&&f.setGeometryName(i);var p=t.getAttribute("fid")||K(t,this.namespace,"id");return p&&f.setId(p),f}return o},e.prototype.readFeatureElement=function(t,e){return this.readFeatureElementInternal(t,e,!0)},e.prototype.readPoint=function(t,e){var n=this.readFlatCoordinatesFromNode(t,e);if(n)return new h["a"](n,i["a"].XYZ)},e.prototype.readMultiPoint=function(t,e){var n=lt([],this.MULTIPOINT_PARSERS,t,e,this);return n?new c["a"](n):void 0},e.prototype.readMultiLineString=function(t,e){var n=lt([],this.MULTILINESTRING_PARSERS,t,e,this);if(n)return new u["a"](n)},e.prototype.readMultiPolygon=function(t,e){var n=lt([],this.MULTIPOLYGON_PARSERS,t,e,this);if(n)return new l["a"](n)},e.prototype.pointMemberParser=function(t,e){ct(this.POINTMEMBER_PARSERS,t,e,this)},e.prototype.lineStringMemberParser=function(t,e){ct(this.LINESTRINGMEMBER_PARSERS,t,e,this)},e.prototype.polygonMemberParser=function(t,e){ct(this.POLYGONMEMBER_PARSERS,t,e,this)},e.prototype.readLineString=function(t,e){var n=this.readFlatCoordinatesFromNode(t,e);if(n){var r=new s["a"](n,i["a"].XYZ);return r}},e.prototype.readFlatLinearRing=function(t,e){var n=lt(null,this.GEOMETRY_FLAT_COORDINATES_PARSERS,t,e,this);return n||void 0},e.prototype.readLinearRing=function(t,e){var n=this.readFlatCoordinatesFromNode(t,e);if(n)return new a["a"](n,i["a"].XYZ)},e.prototype.readPolygon=function(t,e){var n=lt([null],this.FLAT_LINEAR_RINGS_PARSERS,t,e,this);if(n&&n[0]){var r=n[0],o=[r.length],s=void 0,a=void 0;for(s=1,a=n.length;s<a;++s)Object(X["c"])(r,n[s]),o.push(r.length);return new f["a"](r,i["a"].XYZ,o)}},e.prototype.readFlatCoordinatesFromNode=function(t,e){return lt(null,this.GEOMETRY_FLAT_COORDINATES_PARSERS,t,e,this)},e.prototype.readGeometryFromNode=function(t,e){var n=this.readGeometryElement(t,[this.getReadOptions(t,e||{})]);return n||null},e.prototype.readFeaturesFromNode=function(t,e){var n={featureType:this.featureType,featureNS:this.featureNS};e&&Object(d["a"])(n,this.getReadOptions(t,e));var r=this.readFeaturesInternal(t,[n]);return r||[]},e.prototype.readProjectionFromNode=function(t){return Object(v["h"])(this.srsName?this.srsName:t.firstElementChild.getAttribute("srsName"))},e}(mt);xt.prototype.namespace=Et,xt.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{}},xt.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{}},xt.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{}},xt.prototype.MULTIPOINT_PARSERS={"http://www.opengis.net/gml":{pointMember:$(xt.prototype.pointMemberParser),pointMembers:$(xt.prototype.pointMemberParser)}},xt.prototype.MULTILINESTRING_PARSERS={"http://www.opengis.net/gml":{lineStringMember:$(xt.prototype.lineStringMemberParser),lineStringMembers:$(xt.prototype.lineStringMemberParser)}},xt.prototype.MULTIPOLYGON_PARSERS={"http://www.opengis.net/gml":{polygonMember:$(xt.prototype.polygonMemberParser),polygonMembers:$(xt.prototype.polygonMemberParser)}},xt.prototype.POINTMEMBER_PARSERS={"http://www.opengis.net/gml":{Point:$(xt.prototype.readFlatCoordinatesFromNode)}},xt.prototype.LINESTRINGMEMBER_PARSERS={"http://www.opengis.net/gml":{LineString:$(xt.prototype.readLineString)}},xt.prototype.POLYGONMEMBER_PARSERS={"http://www.opengis.net/gml":{Polygon:$(xt.prototype.readPolygon)}},xt.prototype.RING_PARSERS={"http://www.opengis.net/gml":{LinearRing:tt(xt.prototype.readFlatLinearRing)}};var Ot=xt,St=n("b0c1");function Ct(t){var e=W(t,!1);return It(e)}function It(t){var e=/^\s*(true|1)|(false|0)\s*$/.exec(t);return e?void 0!==e[1]||!1:void 0}function Pt(t){var e=W(t,!1),n=Date.parse(e);return isNaN(n)?void 0:n/1e3}function Rt(t){var e=W(t,!1);return Tt(e)}function Tt(t){var e=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(t);return e?parseFloat(e[1]):void 0}function Lt(t){var e=W(t,!1);return Mt(e)}function Mt(t){var e=/^\s*(\d+)\s*$/.exec(t);return e?parseInt(e[1],10):void 0}function Nt(t){return W(t,!1).trim()}function At(t,e){Gt(t,e?"1":"0")}function Ft(t,e){t.appendChild(yt().createCDATASection(e))}function jt(t,e){var n=new Date(1e3*e),r=n.getUTCFullYear()+"-"+Object(St["a"])(n.getUTCMonth()+1,2)+"-"+Object(St["a"])(n.getUTCDate(),2)+"T"+Object(St["a"])(n.getUTCHours(),2)+":"+Object(St["a"])(n.getUTCMinutes(),2)+":"+Object(St["a"])(n.getUTCSeconds(),2)+"Z";t.appendChild(yt().createTextNode(r))}function Dt(t,e){var n=e.toPrecision();t.appendChild(yt().createTextNode(n))}function kt(t,e){var n=e.toString();t.appendChild(yt().createTextNode(n))}function Gt(t,e){t.appendChild(yt().createTextNode(e))}var Bt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ut=Et+" http://schemas.opengis.net/gml/2.1.2/feature.xsd",zt={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"},Yt=function(t){function e(e){var n=this,r=e||{};return n=t.call(this,r)||this,n.FEATURE_COLLECTION_PARSERS[Et]["featureMember"]=$(n.readFeaturesInternal),n.schemaLocation=r.schemaLocation?r.schemaLocation:Ut,n}return Bt(e,t),e.prototype.readFlatCoordinates=function(t,e){var n=W(t,!1).replace(/^\s*|\s*$/g,""),r=e[0],i=r["srsName"],o="enu";if(i){var s=Object(v["h"])(i);s&&(o=s.getAxisOrientation())}for(var a=n.trim().split(/\s+/),u=[],c=0,l=a.length;c<l;c++){var h=a[c].split(/,+/),f=parseFloat(h[0]),p=parseFloat(h[1]),d=3===h.length?parseFloat(h[2]):0;"en"===o.substr(0,2)?u.push(f,p,d):u.push(p,f,d)}return u},e.prototype.readBox=function(t,e){var n=lt([null],this.BOX_PARSERS_,t,e,this);return Object(g["k"])(n[1][0],n[1][1],n[1][3],n[1][4])},e.prototype.innerBoundaryIsParser=function(t,e){var n=lt(void 0,this.RING_PARSERS,t,e,this);if(n){var r=e[e.length-1];r.push(n)}},e.prototype.outerBoundaryIsParser=function(t,e){var n=lt(void 0,this.RING_PARSERS,t,e,this);if(n){var r=e[e.length-1];r[0]=n}},e.prototype.GEOMETRY_NODE_FACTORY_=function(t,e,n){var r,i=e[e.length-1],o=i["multiSurface"],s=i["surface"],a=i["multiCurve"];return Array.isArray(t)?r="Envelope":(r=t.getType(),"MultiPolygon"===r&&!0===o?r="MultiSurface":"Polygon"===r&&!0===s?r="Surface":"MultiLineString"===r&&!0===a&&(r="MultiCurve")),q("http://www.opengis.net/gml",r)},e.prototype.writeFeatureElement=function(t,e,n){var r=e.getId();r&&t.setAttribute("fid",r);var i=n[n.length-1],o=i["featureNS"],s=e.getGeometryName();i.serializers||(i.serializers={},i.serializers[o]={});var a=[],u=[];if(e.hasProperties()){var c=e.getProperties();for(var l in c){var h=c[l];null!==h&&(a.push(l),u.push(h),l==s||"function"===typeof h.getSimplifiedGeometry?l in i.serializers[o]||(i.serializers[o][l]=rt(this.writeGeometryElement,this)):l in i.serializers[o]||(i.serializers[o][l]=rt(Gt)))}}var f=Object(d["a"])({},i);f.node=t,ft(f,i.serializers,ot(void 0,o),u,n,a)},e.prototype.writeCurveOrLineString=function(t,e,n){var r=n[n.length-1],i=r["srsName"];if("LineStringSegment"!==t.nodeName&&i&&t.setAttribute("srsName",i),"LineString"===t.nodeName||"LineStringSegment"===t.nodeName){var o=this.createCoordinatesNode_(t.namespaceURI);t.appendChild(o),this.writeCoordinates_(o,e,n)}else if("Curve"===t.nodeName){var s=q(t.namespaceURI,"segments");t.appendChild(s),this.writeCurveSegments_(s,e,n)}},e.prototype.writeLineStringOrCurveMember=function(t,e,n){var r=this.GEOMETRY_NODE_FACTORY_(e,n);r&&(t.appendChild(r),this.writeCurveOrLineString(r,e,n))},e.prototype.writeMultiCurveOrLineString=function(t,e,n){var r=n[n.length-1],i=r["hasZ"],o=r["srsName"],s=r["curve"];o&&t.setAttribute("srsName",o);var a=e.getLineStrings();ft({node:t,hasZ:i,srsName:o,curve:s},this.LINESTRINGORCURVEMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,a,n,void 0,this)},e.prototype.writeGeometryElement=function(t,e,n){var r,i=n[n.length-1],o=Object(d["a"])({},i);o["node"]=t,r=Array.isArray(e)?Object(m["b"])(e,i):Object(m["c"])(e,!0,i),ft(o,this.GEOMETRY_SERIALIZERS,this.GEOMETRY_NODE_FACTORY_,[r],n,void 0,this)},e.prototype.createCoordinatesNode_=function(t){var e=q(t,"coordinates");return e.setAttribute("decimal","."),e.setAttribute("cs",","),e.setAttribute("ts"," "),e},e.prototype.writeCoordinates_=function(t,e,n){for(var r=n[n.length-1],i=r["hasZ"],o=r["srsName"],s=e.getCoordinates(),a=s.length,u=new Array(a),c=0;c<a;++c){var l=s[c];u[c]=this.getCoords_(l,o,i)}Gt(t,u.join(" "))},e.prototype.writeCurveSegments_=function(t,e,n){var r=q(t.namespaceURI,"LineStringSegment");t.appendChild(r),this.writeCurveOrLineString(r,e,n)},e.prototype.writeSurfaceOrPolygon=function(t,e,n){var r=n[n.length-1],i=r["hasZ"],o=r["srsName"];if("PolygonPatch"!==t.nodeName&&o&&t.setAttribute("srsName",o),"Polygon"===t.nodeName||"PolygonPatch"===t.nodeName){var s=e.getLinearRings();ft({node:t,hasZ:i,srsName:o},this.RING_SERIALIZERS,this.RING_NODE_FACTORY_,s,n,void 0,this)}else if("Surface"===t.nodeName){var a=q(t.namespaceURI,"patches");t.appendChild(a),this.writeSurfacePatches_(a,e,n)}},e.prototype.RING_NODE_FACTORY_=function(t,e,n){var r=e[e.length-1],i=r.node,o=r["exteriorWritten"];return void 0===o&&(r["exteriorWritten"]=!0),q(i.namespaceURI,void 0!==o?"innerBoundaryIs":"outerBoundaryIs")},e.prototype.writeSurfacePatches_=function(t,e,n){var r=q(t.namespaceURI,"PolygonPatch");t.appendChild(r),this.writeSurfaceOrPolygon(r,e,n)},e.prototype.writeRing=function(t,e,n){var r=q(t.namespaceURI,"LinearRing");t.appendChild(r),this.writeLinearRing(r,e,n)},e.prototype.getCoords_=function(t,e,n){var r="enu";e&&(r=Object(v["h"])(e).getAxisOrientation());var i="en"===r.substr(0,2)?t[0]+","+t[1]:t[1]+","+t[0];if(n){var o=t[2]||0;i+=","+o}return i},e.prototype.writePoint=function(t,e,n){var r=n[n.length-1],i=r["hasZ"],o=r["srsName"];o&&t.setAttribute("srsName",o);var s=this.createCoordinatesNode_(t.namespaceURI);t.appendChild(s);var a=e.getCoordinates(),u=this.getCoords_(a,o,i);Gt(s,u)},e.prototype.writeMultiPoint=function(t,e,n){var r=n[n.length-1],i=r["hasZ"],o=r["srsName"];o&&t.setAttribute("srsName",o);var s=e.getPoints();ft({node:t,hasZ:i,srsName:o},this.POINTMEMBER_SERIALIZERS,ot("pointMember"),s,n,void 0,this)},e.prototype.writePointMember=function(t,e,n){var r=q(t.namespaceURI,"Point");t.appendChild(r),this.writePoint(r,e,n)},e.prototype.writeLinearRing=function(t,e,n){var r=n[n.length-1],i=r["srsName"];i&&t.setAttribute("srsName",i);var o=this.createCoordinatesNode_(t.namespaceURI);t.appendChild(o),this.writeCoordinates_(o,e,n)},e.prototype.writeMultiSurfaceOrPolygon=function(t,e,n){var r=n[n.length-1],i=r["hasZ"],o=r["srsName"],s=r["surface"];o&&t.setAttribute("srsName",o);var a=e.getPolygons();ft({node:t,hasZ:i,srsName:o,surface:s},this.SURFACEORPOLYGONMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,a,n,void 0,this)},e.prototype.writeSurfaceOrPolygonMember=function(t,e,n){var r=this.GEOMETRY_NODE_FACTORY_(e,n);r&&(t.appendChild(r),this.writeSurfaceOrPolygon(r,e,n))},e.prototype.writeEnvelope=function(t,e,n){var r=n[n.length-1],i=r["srsName"];i&&t.setAttribute("srsName",i);var o=["lowerCorner","upperCorner"],s=[e[0]+" "+e[1],e[2]+" "+e[3]];ft({node:t},this.ENVELOPE_SERIALIZERS,st,s,n,o,this)},e.prototype.MULTIGEOMETRY_MEMBER_NODE_FACTORY_=function(t,e,n){var r=e[e.length-1].node;return q("http://www.opengis.net/gml",zt[r.nodeName])},e}(Ot);Yt.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{coordinates:tt(Yt.prototype.readFlatCoordinates)}},Yt.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{innerBoundaryIs:Yt.prototype.innerBoundaryIsParser,outerBoundaryIs:Yt.prototype.outerBoundaryIsParser}},Yt.prototype.BOX_PARSERS_={"http://www.opengis.net/gml":{coordinates:$(Yt.prototype.readFlatCoordinates)}},Yt.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{Point:tt(Ot.prototype.readPoint),MultiPoint:tt(Ot.prototype.readMultiPoint),LineString:tt(Ot.prototype.readLineString),MultiLineString:tt(Ot.prototype.readMultiLineString),LinearRing:tt(Ot.prototype.readLinearRing),Polygon:tt(Ot.prototype.readPolygon),MultiPolygon:tt(Ot.prototype.readMultiPolygon),Box:tt(Yt.prototype.readBox)}},Yt.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml":{Curve:rt(Yt.prototype.writeCurveOrLineString),MultiCurve:rt(Yt.prototype.writeMultiCurveOrLineString),Point:rt(Yt.prototype.writePoint),MultiPoint:rt(Yt.prototype.writeMultiPoint),LineString:rt(Yt.prototype.writeCurveOrLineString),MultiLineString:rt(Yt.prototype.writeMultiCurveOrLineString),LinearRing:rt(Yt.prototype.writeLinearRing),Polygon:rt(Yt.prototype.writeSurfaceOrPolygon),MultiPolygon:rt(Yt.prototype.writeMultiSurfaceOrPolygon),Surface:rt(Yt.prototype.writeSurfaceOrPolygon),MultiSurface:rt(Yt.prototype.writeMultiSurfaceOrPolygon),Envelope:rt(Yt.prototype.writeEnvelope)}},Yt.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{lineStringMember:rt(Yt.prototype.writeLineStringOrCurveMember),curveMember:rt(Yt.prototype.writeLineStringOrCurveMember)}},Yt.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml":{outerBoundaryIs:rt(Yt.prototype.writeRing),innerBoundaryIs:rt(Yt.prototype.writeRing)}},Yt.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{pointMember:rt(Yt.prototype.writePointMember)}},Yt.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{surfaceMember:rt(Yt.prototype.writeSurfaceOrPolygonMember),polygonMember:rt(Yt.prototype.writeSurfaceOrPolygonMember)}},Yt.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml":{lowerCorner:rt(Gt),upperCorner:rt(Gt)}};var Xt=Yt,Vt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qt=Et+" http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd",Wt={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"},Ht=function(t){function e(e){var n=this,r=e||{};return n=t.call(this,r)||this,n.surface_=void 0!==r.surface&&r.surface,n.curve_=void 0!==r.curve&&r.curve,n.multiCurve_=void 0===r.multiCurve||r.multiCurve,n.multiSurface_=void 0===r.multiSurface||r.multiSurface,n.schemaLocation=r.schemaLocation?r.schemaLocation:qt,n.hasZ=void 0!==r.hasZ&&r.hasZ,n}return Vt(e,t),e.prototype.readMultiCurve=function(t,e){var n=lt([],this.MULTICURVE_PARSERS,t,e,this);if(n){var r=new u["a"](n);return r}},e.prototype.readFlatCurveRing=function(t,e){for(var n=lt([],this.MULTICURVE_PARSERS,t,e,this),r=[],i=0,o=n.length;i<o;++i)Object(X["c"])(r,n[i].getFlatCoordinates());return r},e.prototype.readMultiSurface=function(t,e){var n=lt([],this.MULTISURFACE_PARSERS,t,e,this);if(n)return new l["a"](n)},e.prototype.curveMemberParser=function(t,e){ct(this.CURVEMEMBER_PARSERS,t,e,this)},e.prototype.surfaceMemberParser=function(t,e){ct(this.SURFACEMEMBER_PARSERS,t,e,this)},e.prototype.readPatch=function(t,e){return lt([null],this.PATCHES_PARSERS,t,e,this)},e.prototype.readSegment=function(t,e){return lt([],this.SEGMENTS_PARSERS,t,e,this)},e.prototype.readPolygonPatch=function(t,e){return lt([null],this.FLAT_LINEAR_RINGS_PARSERS,t,e,this)},e.prototype.readLineStringSegment=function(t,e){return lt([null],this.GEOMETRY_FLAT_COORDINATES_PARSERS,t,e,this)},e.prototype.interiorParser=function(t,e){var n=lt(void 0,this.RING_PARSERS,t,e,this);if(n){var r=e[e.length-1];r.push(n)}},e.prototype.exteriorParser=function(t,e){var n=lt(void 0,this.RING_PARSERS,t,e,this);if(n){var r=e[e.length-1];r[0]=n}},e.prototype.readSurface=function(t,e){var n=lt([null],this.SURFACE_PARSERS,t,e,this);if(n&&n[0]){var r=n[0],o=[r.length],s=void 0,a=void 0;for(s=1,a=n.length;s<a;++s)Object(X["c"])(r,n[s]),o.push(r.length);return new f["a"](r,i["a"].XYZ,o)}},e.prototype.readCurve=function(t,e){var n=lt([null],this.CURVE_PARSERS,t,e,this);if(n){var r=new s["a"](n,i["a"].XYZ);return r}},e.prototype.readEnvelope=function(t,e){var n=lt([null],this.ENVELOPE_PARSERS,t,e,this);return Object(g["k"])(n[1][0],n[1][1],n[2][0],n[2][1])},e.prototype.readFlatPos=function(t,e){var n,r=W(t,!1),i=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/,o=[];while(n=i.exec(r))o.push(parseFloat(n[1])),r=r.substr(n[0].length);if(""===r){var s=e[0],a=s["srsName"],u="enu";if(a){var c=Object(v["h"])(a);u=c.getAxisOrientation()}if("neu"===u){var l=void 0,h=void 0;for(l=0,h=o.length;l<h;l+=3){var f=o[l],p=o[l+1];o[l]=p,o[l+1]=f}}var d=o.length;if(2==d&&o.push(0),0!==d)return o}},e.prototype.readFlatPosList=function(t,e){var n=W(t,!1).replace(/^\s*|\s*$/g,""),r=e[0],i=r["srsName"],o=r["srsDimension"],s="enu";if(i){var a=Object(v["h"])(i);s=a.getAxisOrientation()}var u,c,l,h=n.split(/\s+/),f=2;t.getAttribute("srsDimension")?f=Mt(t.getAttribute("srsDimension")):t.getAttribute("dimension")?f=Mt(t.getAttribute("dimension")):t.parentNode.getAttribute("srsDimension")?f=Mt(t.parentNode.getAttribute("srsDimension")):o&&(f=Mt(o));for(var p=[],d=0,g=h.length;d<g;d+=f)u=parseFloat(h[d]),c=parseFloat(h[d+1]),l=3===f?parseFloat(h[d+2]):0,"en"===s.substr(0,2)?p.push(u,c,l):p.push(c,u,l);return p},e.prototype.writePos_=function(t,e,n){var r=n[n.length-1],i=r["hasZ"],o=i?"3":"2";t.setAttribute("srsDimension",o);var s=r["srsName"],a="enu";s&&(a=Object(v["h"])(s).getAxisOrientation());var u,c=e.getCoordinates();if(u="en"===a.substr(0,2)?c[0]+" "+c[1]:c[1]+" "+c[0],i){var l=c[2]||0;u+=" "+l}Gt(t,u)},e.prototype.getCoords_=function(t,e,n){var r="enu";e&&(r=Object(v["h"])(e).getAxisOrientation());var i="en"===r.substr(0,2)?t[0]+" "+t[1]:t[1]+" "+t[0];if(n){var o=t[2]||0;i+=" "+o}return i},e.prototype.writePosList_=function(t,e,n){var r=n[n.length-1],i=r["hasZ"],o=i?"3":"2";t.setAttribute("srsDimension",o);for(var s,a=r["srsName"],u=e.getCoordinates(),c=u.length,l=new Array(c),h=0;h<c;++h)s=u[h],l[h]=this.getCoords_(s,a,i);Gt(t,l.join(" "))},e.prototype.writePoint=function(t,e,n){var r=n[n.length-1],i=r["srsName"];i&&t.setAttribute("srsName",i);var o=q(t.namespaceURI,"pos");t.appendChild(o),this.writePos_(o,e,n)},e.prototype.writeEnvelope=function(t,e,n){var r=n[n.length-1],i=r["srsName"];i&&t.setAttribute("srsName",i);var o=["lowerCorner","upperCorner"],s=[e[0]+" "+e[1],e[2]+" "+e[3]];ft({node:t},this.ENVELOPE_SERIALIZERS,st,s,n,o,this)},e.prototype.writeLinearRing=function(t,e,n){var r=n[n.length-1],i=r["srsName"];i&&t.setAttribute("srsName",i);var o=q(t.namespaceURI,"posList");t.appendChild(o),this.writePosList_(o,e,n)},e.prototype.RING_NODE_FACTORY_=function(t,e,n){var r=e[e.length-1],i=r.node,o=r["exteriorWritten"];return void 0===o&&(r["exteriorWritten"]=!0),q(i.namespaceURI,void 0!==o?"interior":"exterior")},e.prototype.writeSurfaceOrPolygon=function(t,e,n){var r=n[n.length-1],i=r["hasZ"],o=r["srsName"];if("PolygonPatch"!==t.nodeName&&o&&t.setAttribute("srsName",o),"Polygon"===t.nodeName||"PolygonPatch"===t.nodeName){var s=e.getLinearRings();ft({node:t,hasZ:i,srsName:o},this.RING_SERIALIZERS,this.RING_NODE_FACTORY_,s,n,void 0,this)}else if("Surface"===t.nodeName){var a=q(t.namespaceURI,"patches");t.appendChild(a),this.writeSurfacePatches_(a,e,n)}},e.prototype.writeCurveOrLineString=function(t,e,n){var r=n[n.length-1],i=r["srsName"];if("LineStringSegment"!==t.nodeName&&i&&t.setAttribute("srsName",i),"LineString"===t.nodeName||"LineStringSegment"===t.nodeName){var o=q(t.namespaceURI,"posList");t.appendChild(o),this.writePosList_(o,e,n)}else if("Curve"===t.nodeName){var s=q(t.namespaceURI,"segments");t.appendChild(s),this.writeCurveSegments_(s,e,n)}},e.prototype.writeMultiSurfaceOrPolygon=function(t,e,n){var r=n[n.length-1],i=r["hasZ"],o=r["srsName"],s=r["surface"];o&&t.setAttribute("srsName",o);var a=e.getPolygons();ft({node:t,hasZ:i,srsName:o,surface:s},this.SURFACEORPOLYGONMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,a,n,void 0,this)},e.prototype.writeMultiPoint=function(t,e,n){var r=n[n.length-1],i=r["srsName"],o=r["hasZ"];i&&t.setAttribute("srsName",i);var s=e.getPoints();ft({node:t,hasZ:o,srsName:i},this.POINTMEMBER_SERIALIZERS,ot("pointMember"),s,n,void 0,this)},e.prototype.writeMultiCurveOrLineString=function(t,e,n){var r=n[n.length-1],i=r["hasZ"],o=r["srsName"],s=r["curve"];o&&t.setAttribute("srsName",o);var a=e.getLineStrings();ft({node:t,hasZ:i,srsName:o,curve:s},this.LINESTRINGORCURVEMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,a,n,void 0,this)},e.prototype.writeRing=function(t,e,n){var r=q(t.namespaceURI,"LinearRing");t.appendChild(r),this.writeLinearRing(r,e,n)},e.prototype.writeSurfaceOrPolygonMember=function(t,e,n){var r=this.GEOMETRY_NODE_FACTORY_(e,n);r&&(t.appendChild(r),this.writeSurfaceOrPolygon(r,e,n))},e.prototype.writePointMember=function(t,e,n){var r=q(t.namespaceURI,"Point");t.appendChild(r),this.writePoint(r,e,n)},e.prototype.writeLineStringOrCurveMember=function(t,e,n){var r=this.GEOMETRY_NODE_FACTORY_(e,n);r&&(t.appendChild(r),this.writeCurveOrLineString(r,e,n))},e.prototype.writeSurfacePatches_=function(t,e,n){var r=q(t.namespaceURI,"PolygonPatch");t.appendChild(r),this.writeSurfaceOrPolygon(r,e,n)},e.prototype.writeCurveSegments_=function(t,e,n){var r=q(t.namespaceURI,"LineStringSegment");t.appendChild(r),this.writeCurveOrLineString(r,e,n)},e.prototype.writeGeometryElement=function(t,e,n){var r,i=n[n.length-1],o=Object(d["a"])({},i);o["node"]=t,r=Array.isArray(e)?Object(m["b"])(e,i):Object(m["c"])(e,!0,i),ft(o,this.GEOMETRY_SERIALIZERS,this.GEOMETRY_NODE_FACTORY_,[r],n,void 0,this)},e.prototype.writeFeatureElement=function(t,e,n){var r=e.getId();r&&t.setAttribute("fid",r);var i=n[n.length-1],o=i["featureNS"],s=e.getGeometryName();i.serializers||(i.serializers={},i.serializers[o]={});var a=[],u=[];if(e.hasProperties()){var c=e.getProperties();for(var l in c){var h=c[l];null!==h&&(a.push(l),u.push(h),l==s||"function"===typeof h.getSimplifiedGeometry?l in i.serializers[o]||(i.serializers[o][l]=rt(this.writeGeometryElement,this)):l in i.serializers[o]||(i.serializers[o][l]=rt(Gt)))}}var f=Object(d["a"])({},i);f.node=t,ft(f,i.serializers,ot(void 0,o),u,n,a)},e.prototype.writeFeatureMembers_=function(t,e,n){var r=n[n.length-1],i=r["featureType"],o=r["featureNS"],s={};s[o]={},s[o][i]=rt(this.writeFeatureElement,this);var a=Object(d["a"])({},r);a.node=t,ft(a,s,ot(i,o),e,n)},e.prototype.MULTIGEOMETRY_MEMBER_NODE_FACTORY_=function(t,e,n){var r=e[e.length-1].node;return q(this.namespace,Wt[r.nodeName])},e.prototype.GEOMETRY_NODE_FACTORY_=function(t,e,n){var r,i=e[e.length-1],o=i["multiSurface"],s=i["surface"],a=i["curve"],u=i["multiCurve"];return Array.isArray(t)?r="Envelope":(r=t.getType(),"MultiPolygon"===r&&!0===o?r="MultiSurface":"Polygon"===r&&!0===s?r="Surface":"LineString"===r&&!0===a?r="Curve":"MultiLineString"===r&&!0===u&&(r="MultiCurve")),q(this.namespace,r)},e.prototype.writeGeometryNode=function(t,e){e=this.adaptOptions(e);var n=q(this.namespace,"geom"),r={node:n,hasZ:this.hasZ,srsName:this.srsName,curve:this.curve_,surface:this.surface_,multiSurface:this.multiSurface_,multiCurve:this.multiCurve_};return e&&Object(d["a"])(r,e),this.writeGeometryElement(n,t,[r]),n},e.prototype.writeFeaturesNode=function(t,e){e=this.adaptOptions(e);var n=q(this.namespace,"featureMembers");n.setAttributeNS(V,"xsi:schemaLocation",this.schemaLocation);var r={srsName:this.srsName,hasZ:this.hasZ,curve:this.curve_,surface:this.surface_,multiSurface:this.multiSurface_,multiCurve:this.multiCurve_,featureNS:this.featureNS,featureType:this.featureType};return e&&Object(d["a"])(r,e),this.writeFeatureMembers_(n,t,[r]),n},e}(Ot);Ht.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{pos:tt(Ht.prototype.readFlatPos),posList:tt(Ht.prototype.readFlatPosList),coordinates:tt(Xt.prototype.readFlatCoordinates)}},Ht.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{interior:Ht.prototype.interiorParser,exterior:Ht.prototype.exteriorParser}},Ht.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{Point:tt(Ot.prototype.readPoint),MultiPoint:tt(Ot.prototype.readMultiPoint),LineString:tt(Ot.prototype.readLineString),MultiLineString:tt(Ot.prototype.readMultiLineString),LinearRing:tt(Ot.prototype.readLinearRing),Polygon:tt(Ot.prototype.readPolygon),MultiPolygon:tt(Ot.prototype.readMultiPolygon),Surface:tt(Ht.prototype.readSurface),MultiSurface:tt(Ht.prototype.readMultiSurface),Curve:tt(Ht.prototype.readCurve),MultiCurve:tt(Ht.prototype.readMultiCurve),Envelope:tt(Ht.prototype.readEnvelope)}},Ht.prototype.MULTICURVE_PARSERS={"http://www.opengis.net/gml":{curveMember:$(Ht.prototype.curveMemberParser),curveMembers:$(Ht.prototype.curveMemberParser)}},Ht.prototype.MULTISURFACE_PARSERS={"http://www.opengis.net/gml":{surfaceMember:$(Ht.prototype.surfaceMemberParser),surfaceMembers:$(Ht.prototype.surfaceMemberParser)}},Ht.prototype.CURVEMEMBER_PARSERS={"http://www.opengis.net/gml":{LineString:$(Ot.prototype.readLineString),Curve:$(Ht.prototype.readCurve)}},Ht.prototype.SURFACEMEMBER_PARSERS={"http://www.opengis.net/gml":{Polygon:$(Ot.prototype.readPolygon),Surface:$(Ht.prototype.readSurface)}},Ht.prototype.SURFACE_PARSERS={"http://www.opengis.net/gml":{patches:tt(Ht.prototype.readPatch)}},Ht.prototype.CURVE_PARSERS={"http://www.opengis.net/gml":{segments:tt(Ht.prototype.readSegment)}},Ht.prototype.ENVELOPE_PARSERS={"http://www.opengis.net/gml":{lowerCorner:$(Ht.prototype.readFlatPosList),upperCorner:$(Ht.prototype.readFlatPosList)}},Ht.prototype.PATCHES_PARSERS={"http://www.opengis.net/gml":{PolygonPatch:tt(Ht.prototype.readPolygonPatch)}},Ht.prototype.SEGMENTS_PARSERS={"http://www.opengis.net/gml":{LineStringSegment:Q(Ht.prototype.readLineStringSegment)}},Ot.prototype.RING_PARSERS={"http://www.opengis.net/gml":{LinearRing:tt(Ot.prototype.readFlatLinearRing),Ring:tt(Ht.prototype.readFlatCurveRing)}},Ht.prototype.writeFeatures,Ht.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml":{exterior:rt(Ht.prototype.writeRing),interior:rt(Ht.prototype.writeRing)}},Ht.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml":{lowerCorner:rt(Gt),upperCorner:rt(Gt)}},Ht.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{surfaceMember:rt(Ht.prototype.writeSurfaceOrPolygonMember),polygonMember:rt(Ht.prototype.writeSurfaceOrPolygonMember)}},Ht.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{pointMember:rt(Ht.prototype.writePointMember)}},Ht.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{lineStringMember:rt(Ht.prototype.writeLineStringOrCurveMember),curveMember:rt(Ht.prototype.writeLineStringOrCurveMember)}},Ht.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml":{Curve:rt(Ht.prototype.writeCurveOrLineString),MultiCurve:rt(Ht.prototype.writeMultiCurveOrLineString),Point:rt(Ht.prototype.writePoint),MultiPoint:rt(Ht.prototype.writeMultiPoint),LineString:rt(Ht.prototype.writeCurveOrLineString),MultiLineString:rt(Ht.prototype.writeMultiCurveOrLineString),LinearRing:rt(Ht.prototype.writeLinearRing),Polygon:rt(Ht.prototype.writeSurfaceOrPolygon),MultiPolygon:rt(Ht.prototype.writeMultiSurfaceOrPolygon),Surface:rt(Ht.prototype.writeSurfaceOrPolygon),MultiSurface:rt(Ht.prototype.writeMultiSurfaceOrPolygon),Envelope:rt(Ht.prototype.writeEnvelope)}};var Zt=Ht,Kt=Zt;Kt.prototype.writeFeatures,Kt.prototype.writeFeaturesNode;var Jt=Kt,Qt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$t=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"],te="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd",ee={rte:Me,trk:Ne,wpt:Ae},ne=ut($t,{rte:$(Me),trk:$(Ne),wpt:$(Ae)}),re=ut($t,{text:nt(Nt,"linkText"),type:nt(Nt,"linkType")}),ie=ut($t,{rte:rt(De),trk:rt(ke),wpt:rt(Be)}),oe=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.dataProjection=Object(v["h"])("EPSG:4326"),n.readExtensions_=r.readExtensions,n}return Qt(e,t),e.prototype.handleReadExtensions_=function(t){t||(t=[]);for(var e=0,n=t.length;e<n;++e){var r=t[e];if(this.readExtensions_){var i=r.get("extensionsNode_")||null;this.readExtensions_(r,i)}r.set("extensionsNode_",void 0)}},e.prototype.readFeatureFromNode=function(t,e){if(!Object(X["f"])($t,t.namespaceURI))return null;var n=ee[t.localName];if(!n)return null;var r=n(t,[this.getReadOptions(t,e)]);return r?(this.handleReadExtensions_([r]),r):null},e.prototype.readFeaturesFromNode=function(t,e){if(!Object(X["f"])($t,t.namespaceURI))return[];if("gpx"==t.localName){var n=lt([],ne,t,[this.getReadOptions(t,e)]);return n?(this.handleReadExtensions_(n),n):[]}return[]},e.prototype.writeFeaturesNode=function(t,e){e=this.adaptOptions(e);var n=q("http://www.topografix.com/GPX/1/1","gpx"),r="http://www.w3.org/2000/xmlns/";return n.setAttributeNS(r,"xmlns:xsi",V),n.setAttributeNS(V,"xsi:schemaLocation",te),n.setAttribute("version","1.1"),n.setAttribute("creator","OpenLayers"),ft({node:n},ie,Oe,t,[e]),n},e}(mt),se=ut($t,{name:nt(Nt),cmt:nt(Nt),desc:nt(Nt),src:nt(Nt),link:Ie,number:nt(Lt),extensions:Pe,type:nt(Nt),rtept:Re}),ae=ut($t,{ele:nt(Rt),time:nt(Pt)}),ue=ut($t,{name:nt(Nt),cmt:nt(Nt),desc:nt(Nt),src:nt(Nt),link:Ie,number:nt(Lt),type:nt(Nt),extensions:Pe,trkseg:Le}),ce=ut($t,{trkpt:Te}),le=ut($t,{ele:nt(Rt),time:nt(Pt)}),he=ut($t,{ele:nt(Rt),time:nt(Pt),magvar:nt(Rt),geoidheight:nt(Rt),name:nt(Nt),cmt:nt(Nt),desc:nt(Nt),src:nt(Nt),link:Ie,sym:nt(Nt),type:nt(Nt),fix:nt(Nt),sat:nt(Lt),hdop:nt(Rt),vdop:nt(Rt),pdop:nt(Rt),ageofdgpsdata:nt(Rt),dgpsid:nt(Lt),extensions:Pe}),fe=["text","type"],pe=ut($t,{text:rt(Gt),type:rt(Gt)}),de=ut($t,["name","cmt","desc","src","link","number","type","rtept"]),ge=ut($t,{name:rt(Gt),cmt:rt(Gt),desc:rt(Gt),src:rt(Gt),link:rt(Fe),number:rt(kt),type:rt(Gt),rtept:it(rt(je))}),ye=ut($t,["ele","time"]),ve=ut($t,["name","cmt","desc","src","link","number","type","trkseg"]),_e=ut($t,{name:rt(Gt),cmt:rt(Gt),desc:rt(Gt),src:rt(Gt),link:rt(Fe),number:rt(kt),type:rt(Gt),trkseg:it(rt(Ge))}),me=ot("trkpt"),be=ut($t,{trkpt:rt(je)}),Ee=ut($t,["ele","time","magvar","geoidheight","name","cmt","desc","src","link","sym","type","fix","sat","hdop","vdop","pdop","ageofdgpsdata","dgpsid"]),we=ut($t,{ele:rt(Dt),time:rt(jt),magvar:rt(Dt),geoidheight:rt(Dt),name:rt(Gt),cmt:rt(Gt),desc:rt(Gt),src:rt(Gt),link:rt(Fe),sym:rt(Gt),type:rt(Gt),fix:rt(Gt),sat:rt(kt),hdop:rt(Dt),vdop:rt(Dt),pdop:rt(Dt),ageofdgpsdata:rt(Dt),dgpsid:rt(kt)}),xe={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function Oe(t,e,n){var r=t.getGeometry();if(r){var i=xe[r.getType()];if(i){var o=e[e.length-1].node;return q(o.namespaceURI,i)}}}function Se(t,e,n,r){return t.push(parseFloat(n.getAttribute("lon")),parseFloat(n.getAttribute("lat"))),"ele"in r?(t.push(r["ele"]),delete r["ele"],e.hasZ=!0):t.push(0),"time"in r?(t.push(r["time"]),delete r["time"],e.hasM=!0):t.push(0),t}function Ce(t,e,n){var r=i["a"].XY,o=2;if(t.hasZ&&t.hasM?(r=i["a"].XYZM,o=4):t.hasZ?(r=i["a"].XYZ,o=3):t.hasM&&(r=i["a"].XYM,o=3),4!==o){for(var s=0,a=e.length/4;s<a;s++)e[s*o]=e[4*s],e[s*o+1]=e[4*s+1],t.hasZ&&(e[s*o+2]=e[4*s+2]),t.hasM&&(e[s*o+2]=e[4*s+3]);if(e.length=e.length/4*o,n)for(s=0,a=n.length;s<a;s++)n[s]=n[s]/4*o}return r}function Ie(t,e){var n=e[e.length-1],r=t.getAttribute("href");null!==r&&(n["link"]=r),ct(re,t,e)}function Pe(t,e){var n=e[e.length-1];n["extensionsNode_"]=t}function Re(t,e){var n=lt({},ae,t,e);if(n){var r=e[e.length-1],i=r["flatCoordinates"],o=r["layoutOptions"];Se(i,o,t,n)}}function Te(t,e){var n=lt({},le,t,e);if(n){var r=e[e.length-1],i=r["flatCoordinates"],o=r["layoutOptions"];Se(i,o,t,n)}}function Le(t,e){var n=e[e.length-1];ct(ce,t,e);var r=n["flatCoordinates"],i=n["ends"];i.push(r.length)}function Me(t,e){var n=e[0],i=lt({flatCoordinates:[],layoutOptions:{}},se,t,e);if(i){var o=i["flatCoordinates"];delete i["flatCoordinates"];var a=i["layoutOptions"];delete i["layoutOptions"];var u=Ce(a,o),c=new s["a"](o,u);Object(m["c"])(c,!1,n);var l=new r["a"](c);return l.setProperties(i,!0),l}}function Ne(t,e){var n=e[0],i=lt({flatCoordinates:[],ends:[],layoutOptions:{}},ue,t,e);if(i){var o=i["flatCoordinates"];delete i["flatCoordinates"];var s=i["ends"];delete i["ends"];var a=i["layoutOptions"];delete i["layoutOptions"];var c=Ce(a,o,s),l=new u["a"](o,c,s);Object(m["c"])(l,!1,n);var h=new r["a"](l);return h.setProperties(i,!0),h}}function Ae(t,e){var n=e[0],i=lt({},he,t,e);if(i){var o={},s=Se([],o,t,i),a=Ce(o,s),u=new h["a"](s,a);Object(m["c"])(u,!1,n);var c=new r["a"](u);return c.setProperties(i,!0),c}}function Fe(t,e,n){t.setAttribute("href",e);var r=n[n.length-1],i=r["properties"],o=[i["linkText"],i["linkType"]];ft({node:t},pe,st,o,n,fe)}function je(t,e,n){var r=n[n.length-1],o=r.node,s=o.namespaceURI,a=r["properties"];t.setAttributeNS(null,"lat",String(e[1])),t.setAttributeNS(null,"lon",String(e[0]));var u=r["geometryLayout"];switch(u){case i["a"].XYZM:0!==e[3]&&(a["time"]=e[3]);case i["a"].XYZ:0!==e[2]&&(a["ele"]=e[2]);break;case i["a"].XYM:0!==e[2]&&(a["time"]=e[2]);break;default:}var c="rtept"==t.nodeName?ye[s]:Ee[s],l=at(a,c);ft({node:t,properties:a},we,st,l,n,c)}function De(t,e,n){var r=n[0],i=e.getProperties(),o={node:t};o["properties"]=i;var s=e.getGeometry();if("LineString"==s.getType()){var a=Object(m["c"])(s,!0,r);o["geometryLayout"]=a.getLayout(),i["rtept"]=a.getCoordinates()}var u=n[n.length-1].node,c=de[u.namespaceURI],l=at(i,c);ft(o,ge,st,l,n,c)}function ke(t,e,n){var r=n[0],i=e.getProperties(),o={node:t};o["properties"]=i;var s=e.getGeometry();if("MultiLineString"==s.getType()){var a=Object(m["c"])(s,!0,r);i["trkseg"]=a.getLineStrings()}var u=n[n.length-1].node,c=ve[u.namespaceURI],l=at(i,c);ft(o,_e,st,l,n,c)}function Ge(t,e,n){var r={node:t};r["geometryLayout"]=e.getLayout(),r["properties"]={},ft(r,be,me,e.getCoordinates(),n)}function Be(t,e,n){var r=n[0],i=n[n.length-1];i["properties"]=e.getProperties();var o=e.getGeometry();if("Point"==o.getType()){var s=Object(m["c"])(o,!0,r);i["geometryLayout"]=s.getLayout(),je(t,s.getCoordinates(),n)}}var Ue=oe,ze=n("8da7"),Ye=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xe={BAROMETRIC:"barometric",GPS:"gps",NONE:"none"},Ve=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,qe=/^H.([A-Z]{3}).*?:(.*)/,We=/^HFDTE(\d{2})(\d{2})(\d{2})/,He=/\r\n|\r|\n/,Ze=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.dataProjection=Object(v["h"])("EPSG:4326"),n.altitudeMode_=r.altitudeMode?r.altitudeMode:Xe.NONE,n}return Ye(e,t),e.prototype.readFeatureFromText=function(t,e){var n,o,a=this.altitudeMode_,u=t.split(He),c={},l=[],h=2e3,f=0,p=1,d=-1;for(n=0,o=u.length;n<o;++n){var g=u[n],y=void 0;if("B"==g.charAt(0)){if(y=Ve.exec(g),y){var v=parseInt(y[1],10),_=parseInt(y[2],10),b=parseInt(y[3],10),E=parseInt(y[4],10)+parseInt(y[5],10)/6e4;"S"==y[6]&&(E=-E);var w=parseInt(y[7],10)+parseInt(y[8],10)/6e4;if("W"==y[9]&&(w=-w),l.push(w,E),a!=Xe.NONE){var x=void 0;x=a==Xe.GPS?parseInt(y[11],10):a==Xe.BAROMETRIC?parseInt(y[12],10):0,l.push(x)}var O=Date.UTC(h,f,p,v,_,b);O<d&&(O=Date.UTC(h,f,p+1,v,_,b)),l.push(O/1e3),d=O}}else"H"==g.charAt(0)&&(y=We.exec(g),y?(p=parseInt(y[1],10),f=parseInt(y[2],10)-1,h=2e3+parseInt(y[3],10)):(y=qe.exec(g),y&&(c[y[1]]=y[2].trim())))}if(0===l.length)return null;var S=a==Xe.NONE?i["a"].XYM:i["a"].XYZM,C=new s["a"](l,S),I=new r["a"](Object(m["c"])(C,!1,e));return I.setProperties(c,!0),I},e.prototype.readFeaturesFromText=function(t,e){var n=this.readFeatureFromText(t,e);return n?[n]:[]},e}(ze["a"]),Ke=Ze,Je=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},Qe={VERSION1:"version1",VERSION2:"version2",VERSION3:"version3"},$e={};$e[Qe.VERSION1]={level0:{supports:[],formats:[],qualities:["native"]},level1:{supports:["regionByPx","sizeByW","sizeByH","sizeByPct"],formats:["jpg"],qualities:["native"]},level2:{supports:["regionByPx","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByWh"],formats:["jpg","png"],qualities:["native","color","grey","bitonal"]}},$e[Qe.VERSION2]={level0:{supports:[],formats:["jpg"],qualities:["default"]},level1:{supports:["regionByPx","sizeByW","sizeByH","sizeByPct"],formats:["jpg"],qualities:["default"]},level2:{supports:["regionByPx","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByDistortedWh","sizeByWh"],formats:["jpg","png"],qualities:["default","bitonal"]}},$e[Qe.VERSION3]={level0:{supports:[],formats:["jpg"],qualities:["default"]},level1:{supports:["regionByPx","regionSquare","sizeByW","sizeByH","sizeByWh"],formats:["jpg"],qualities:["default"]},level2:{supports:["regionByPx","regionSquare","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByWh"],formats:["jpg","png"],qualities:["default"]}},$e["none"]={none:{supports:[],formats:[],qualities:[]}};var tn=/^https?:\/\/library\.stanford\.edu\/iiif\/image-api\/(?:1\.1\/)?compliance\.html#level[0-2]$/,en=/^https?:\/\/iiif\.io\/api\/image\/2\/level[0-2](?:\.json)?$/,nn=/(^https?:\/\/iiif\.io\/api\/image\/3\/level[0-2](?:\.json)?$)|(^level[0-2]$)/;function rn(t){var e=t.getComplianceLevelSupportedFeatures();return void 0===e&&(e=$e[Qe.VERSION1]["level0"]),{url:void 0===t.imageInfo["@id"]?void 0:t.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),supports:e.supports,formats:Je(Je([],e.formats,!0),[void 0===t.imageInfo.formats?[]:t.imageInfo.formats],!1),qualities:Je(Je([],e.qualities,!0),[void 0===t.imageInfo.qualities?[]:t.imageInfo.qualities],!1),resolutions:t.imageInfo.scale_factors,tileSize:void 0!==t.imageInfo.tile_width?void 0!==t.imageInfo.tile_height?[t.imageInfo.tile_width,t.imageInfo.tile_height]:[t.imageInfo.tile_width,t.imageInfo.tile_width]:void 0!=t.imageInfo.tile_height?[t.imageInfo.tile_height,t.imageInfo.tile_height]:void 0}}function on(t){var e=t.getComplianceLevelSupportedFeatures(),n=Array.isArray(t.imageInfo.profile)&&t.imageInfo.profile.length>1,r=n&&t.imageInfo.profile[1].supports?t.imageInfo.profile[1].supports:[],i=n&&t.imageInfo.profile[1].formats?t.imageInfo.profile[1].formats:[],o=n&&t.imageInfo.profile[1].qualities?t.imageInfo.profile[1].qualities:[];return{url:t.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),sizes:void 0===t.imageInfo.sizes?void 0:t.imageInfo.sizes.map((function(t){return[t.width,t.height]})),tileSize:void 0===t.imageInfo.tiles?void 0:[t.imageInfo.tiles.map((function(t){return t.width}))[0],t.imageInfo.tiles.map((function(t){return void 0===t.height?t.width:t.height}))[0]],resolutions:void 0===t.imageInfo.tiles?void 0:t.imageInfo.tiles.map((function(t){return t.scaleFactors}))[0],supports:Je(Je([],e.supports,!0),r,!0),formats:Je(Je([],e.formats,!0),i,!0),qualities:Je(Je([],e.qualities,!0),o,!0)}}function sn(t){var e=t.getComplianceLevelSupportedFeatures(),n=void 0===t.imageInfo.extraFormats?e.formats:Je(Je([],e.formats,!0),t.imageInfo.extraFormats,!0),r=void 0!==t.imageInfo.preferredFormats&&Array.isArray(t.imageInfo.preferredFormats)&&t.imageInfo.preferredFormats.length>0?t.imageInfo.preferredFormats.filter((function(t){return Object(X["f"])(["jpg","png","gif"],t)})).reduce((function(t,e){return void 0===t&&Object(X["f"])(n,e)?e:t}),void 0):void 0;return{url:t.imageInfo["id"],sizes:void 0===t.imageInfo.sizes?void 0:t.imageInfo.sizes.map((function(t){return[t.width,t.height]})),tileSize:void 0===t.imageInfo.tiles?void 0:[t.imageInfo.tiles.map((function(t){return t.width}))[0],t.imageInfo.tiles.map((function(t){return t.height}))[0]],resolutions:void 0===t.imageInfo.tiles?void 0:t.imageInfo.tiles.map((function(t){return t.scaleFactors}))[0],supports:void 0===t.imageInfo.extraFeatures?e.supports:Je(Je([],e.supports,!0),t.imageInfo.extraFeatures,!0),formats:n,qualities:void 0===t.imageInfo.extraQualities?e.qualities:Je(Je([],e.qualities,!0),t.imageInfo.extraQualities,!0),preferredFormat:r}}var an={};an[Qe.VERSION1]=rn,an[Qe.VERSION2]=on,an[Qe.VERSION3]=sn;var un,cn,ln,hn,fn,pn,dn=function(){function t(t){this.setImageInfo(t)}return t.prototype.setImageInfo=function(t){this.imageInfo="string"==typeof t?JSON.parse(t):t},t.prototype.getImageApiVersion=function(){if(void 0!==this.imageInfo){var t=this.imageInfo["@context"]||"ol-no-context";"string"==typeof t&&(t=[t]);for(var e=0;e<t.length;e++)switch(t[e]){case"http://library.stanford.edu/iiif/image-api/1.1/context.json":case"http://iiif.io/api/image/1/context.json":return Qe.VERSION1;case"http://iiif.io/api/image/2/context.json":return Qe.VERSION2;case"http://iiif.io/api/image/3/context.json":return Qe.VERSION3;case"ol-no-context":if(this.getComplianceLevelEntryFromProfile(Qe.VERSION1)&&this.imageInfo.identifier)return Qe.VERSION1;break;default:}Object(p["a"])(!1,61)}},t.prototype.getComplianceLevelEntryFromProfile=function(t){if(void 0!==this.imageInfo&&void 0!==this.imageInfo.profile)switch(void 0===t&&(t=this.getImageApiVersion()),t){case Qe.VERSION1:if(tn.test(this.imageInfo.profile))return this.imageInfo.profile;break;case Qe.VERSION3:if(nn.test(this.imageInfo.profile))return this.imageInfo.profile;break;case Qe.VERSION2:if("string"===typeof this.imageInfo.profile&&en.test(this.imageInfo.profile))return this.imageInfo.profile;if(Array.isArray(this.imageInfo.profile)&&this.imageInfo.profile.length>0&&"string"===typeof this.imageInfo.profile[0]&&en.test(this.imageInfo.profile[0]))return this.imageInfo.profile[0];break;default:}},t.prototype.getComplianceLevelFromProfile=function(t){var e=this.getComplianceLevelEntryFromProfile(t);if(void 0!==e){var n=e.match(/level[0-2](?:\.json)?$/g);return Array.isArray(n)?n[0].replace(".json",""):void 0}},t.prototype.getComplianceLevelSupportedFeatures=function(){if(void 0!==this.imageInfo){var t=this.getImageApiVersion(),e=this.getComplianceLevelFromProfile(t);return void 0===e?$e["none"]["none"]:$e[t][e]}},t.prototype.getTileSourceOptions=function(t){var e=t||{},n=this.getImageApiVersion();if(void 0!==n){var r=void 0===n?void 0:an[n](this);if(void 0!==r)return{url:r.url,version:n,size:[this.imageInfo.width,this.imageInfo.height],sizes:r.sizes,format:void 0!==e.format&&Object(X["f"])(r.formats,e.format)?e.format:void 0!==r.preferredFormat?r.preferredFormat:"jpg",supports:r.supports,quality:e.quality&&Object(X["f"])(r.qualities,e.quality)?e.quality:Object(X["f"])(r.qualities,"native")?"native":"default",resolutions:Array.isArray(r.resolutions)?r.resolutions.sort((function(t,e){return e-t})):void 0,tileSize:r.tileSize}}},t}(),gn=dn,yn=n("83a6"),vn=n("d352"),_n=n("6cbf"),mn=n("82b0"),bn=n("d202"),En=n("869f"),wn=n("8682"),xn=n("6c77"),On=n("8295"),Sn=n("5c38"),Cn=n("7fc9"),In=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pn=["http://www.google.com/kml/ext/2.2"],Rn=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],Tn="http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd",Ln={fraction:mn["a"].FRACTION,pixels:mn["a"].PIXELS,insetPixels:mn["a"].PIXELS},Mn=ut(Rn,{ExtendedData:Ur,Region:zr,MultiGeometry:nt(Lr,"geometry"),LineString:nt(Pr,"geometry"),LinearRing:nt(Rr,"geometry"),Point:nt(Mr,"geometry"),Polygon:nt(Ar,"geometry"),Style:nt(jr),StyleMap:Vr,address:nt(Nt),description:nt(Nt),name:nt(Nt),open:nt(Ct),phoneNumber:nt(Nt),styleUrl:nt(rr),visibility:nt(Ct)},ut(Pn,{MultiTrack:nt(br,"geometry"),Track:nt(wr,"geometry")})),Nn=ut(Rn,{ExtendedData:Ur,Region:zr,Link:ri,address:nt(Nt),description:nt(Nt),name:nt(Nt),open:nt(Ct),phoneNumber:nt(Nt),visibility:nt(Ct)}),An=ut(Rn,{href:nt(nr)}),Fn=ut(Rn,{LatLonAltBox:Kr,Lod:Qr}),jn=ut(Rn,["Document","Placemark"]),Dn=ut(Rn,{Document:rt(pi),Placemark:rt(zi)}),kn=null;var Gn,Bn=null;var Un,zn=null;var Yn=null;var Xn=null;var Vn,qn=null;function Wn(t){return 32/Math.min(t[0],t[1])}function Hn(){un=[255,255,255,1],kn=new yn["a"]({color:un}),cn=[20,2],ln=mn["a"].PIXELS,hn=mn["a"].PIXELS,fn=[64,64],pn="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png",Bn=new _n["a"]({anchor:cn,anchorOrigin:bn["a"].BOTTOM_LEFT,anchorXUnits:ln,anchorYUnits:hn,crossOrigin:"anonymous",rotation:0,scale:Wn(fn),size:fn,src:pn}),Gn="NO_IMAGE",zn=new wn["a"]({color:un,width:1}),Un=new wn["a"]({color:[51,51,51,1],width:2}),Yn=new On["a"]({font:"bold 16px Helvetica",fill:kn,stroke:Un,scale:.8}),Xn=new xn["c"]({fill:kn,image:Bn,text:Yn,stroke:zn,zIndex:0}),qn=[Xn]}function Zn(t){return t}var Kn=function(t){function e(e){var n=t.call(this)||this,r=e||{};return qn||Hn(),n.dataProjection=Object(v["h"])("EPSG:4326"),n.defaultStyle_=r.defaultStyle?r.defaultStyle:qn,n.extractStyles_=void 0===r.extractStyles||r.extractStyles,n.writeStyles_=void 0===r.writeStyles||r.writeStyles,n.sharedStyles_={},n.showPointNames_=void 0===r.showPointNames||r.showPointNames,n.crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:"anonymous",n.iconUrlFunction_=r.iconUrlFunction?r.iconUrlFunction:Zn,n.supportedMediaTypes=["application/vnd.google-earth.kml+xml"],n}return In(e,t),e.prototype.readDocumentOrFolder_=function(t,e){var n=ut(Rn,{Document:Q(this.readDocumentOrFolder_,this),Folder:Q(this.readDocumentOrFolder_,this),Placemark:$(this.readPlacemark_,this),Style:this.readSharedStyle_.bind(this),StyleMap:this.readSharedStyleMap_.bind(this)}),r=lt([],n,t,e,this);return r||void 0},e.prototype.readPlacemark_=function(t,e){var n=lt({geometry:null},Mn,t,e,this);if(n){var i=new r["a"],o=t.getAttribute("id");null!==o&&i.setId(o);var s=e[0],a=n["geometry"];if(a&&Object(m["c"])(a,!1,s),i.setGeometry(a),delete n["geometry"],this.extractStyles_){var u=n["Style"],c=n["styleUrl"],l=Qn(u,c,this.defaultStyle_,this.sharedStyles_,this.showPointNames_);i.setStyle(l)}return delete n["Style"],i.setProperties(n,!0),i}},e.prototype.readSharedStyle_=function(t,e){var n=t.getAttribute("id");if(null!==n){var r=jr.call(this,t,e);if(r){var i=void 0,o=t.baseURI;if(o&&"about:blank"!=o||(o=window.location.href),o){var s=new URL("#"+n,o);i=s.href}else i="#"+n;this.sharedStyles_[i]=r}}},e.prototype.readSharedStyleMap_=function(t,e){var n=t.getAttribute("id");if(null!==n){var r=ar.call(this,t,e);if(r){var i,o=t.baseURI;if(o&&"about:blank"!=o||(o=window.location.href),o){var s=new URL("#"+n,o);i=s.href}else i="#"+n;this.sharedStyles_[i]=r}}},e.prototype.readFeatureFromNode=function(t,e){if(!Object(X["f"])(Rn,t.namespaceURI))return null;var n=this.readPlacemark_(t,[this.getReadOptions(t,e)]);return n||null},e.prototype.readFeaturesFromNode=function(t,e){if(!Object(X["f"])(Rn,t.namespaceURI))return[];var n,r=t.localName;if("Document"==r||"Folder"==r)return n=this.readDocumentOrFolder_(t,[this.getReadOptions(t,e)]),n||[];if("Placemark"==r){var i=this.readPlacemark_(t,[this.getReadOptions(t,e)]);return i?[i]:[]}if("kml"==r){n=[];for(var o=t.firstElementChild;o;o=o.nextElementSibling){var s=this.readFeaturesFromNode(o,e);s&&Object(X["c"])(n,s)}return n}return[]},e.prototype.readName=function(t){if(t){if("string"===typeof t){var e=J(t);return this.readNameFromDocument(e)}return Z(t)?this.readNameFromDocument(t):this.readNameFromNode(t)}},e.prototype.readNameFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE){var n=this.readNameFromNode(e);if(n)return n}},e.prototype.readNameFromNode=function(t){for(var e=t.firstElementChild;e;e=e.nextElementSibling)if(Object(X["f"])(Rn,e.namespaceURI)&&"name"==e.localName)return Nt(e);for(e=t.firstElementChild;e;e=e.nextElementSibling){var n=e.localName;if(Object(X["f"])(Rn,e.namespaceURI)&&("Document"==n||"Folder"==n||"Placemark"==n||"kml"==n)){var r=this.readNameFromNode(e);if(r)return r}}},e.prototype.readNetworkLinks=function(t){var e=[];if("string"===typeof t){var n=J(t);Object(X["c"])(e,this.readNetworkLinksFromDocument(n))}else Z(t)?Object(X["c"])(e,this.readNetworkLinksFromDocument(t)):Object(X["c"])(e,this.readNetworkLinksFromNode(t));return e},e.prototype.readNetworkLinksFromDocument=function(t){for(var e=[],n=t.firstChild;n;n=n.nextSibling)n.nodeType==Node.ELEMENT_NODE&&Object(X["c"])(e,this.readNetworkLinksFromNode(n));return e},e.prototype.readNetworkLinksFromNode=function(t){for(var e=[],n=t.firstElementChild;n;n=n.nextElementSibling)if(Object(X["f"])(Rn,n.namespaceURI)&&"NetworkLink"==n.localName){var r=lt({},Nn,n,[]);e.push(r)}for(n=t.firstElementChild;n;n=n.nextElementSibling){var i=n.localName;!Object(X["f"])(Rn,n.namespaceURI)||"Document"!=i&&"Folder"!=i&&"kml"!=i||Object(X["c"])(e,this.readNetworkLinksFromNode(n))}return e},e.prototype.readRegion=function(t){var e=[];if("string"===typeof t){var n=J(t);Object(X["c"])(e,this.readRegionFromDocument(n))}else Z(t)?Object(X["c"])(e,this.readRegionFromDocument(t)):Object(X["c"])(e,this.readRegionFromNode(t));return e},e.prototype.readRegionFromDocument=function(t){for(var e=[],n=t.firstChild;n;n=n.nextSibling)n.nodeType==Node.ELEMENT_NODE&&Object(X["c"])(e,this.readRegionFromNode(n));return e},e.prototype.readRegionFromNode=function(t){for(var e=[],n=t.firstElementChild;n;n=n.nextElementSibling)if(Object(X["f"])(Rn,n.namespaceURI)&&"Region"==n.localName){var r=lt({},Fn,n,[]);e.push(r)}for(n=t.firstElementChild;n;n=n.nextElementSibling){var i=n.localName;!Object(X["f"])(Rn,n.namespaceURI)||"Document"!=i&&"Folder"!=i&&"kml"!=i||Object(X["c"])(e,this.readRegionFromNode(n))}return e},e.prototype.writeFeaturesNode=function(t,e){e=this.adaptOptions(e);var n=q(Rn[4],"kml"),r="http://www.w3.org/2000/xmlns/";n.setAttributeNS(r,"xmlns:gx",Pn[0]),n.setAttributeNS(r,"xmlns:xsi",V),n.setAttributeNS(V,"xsi:schemaLocation",Tn);var i={node:n},o={};t.length>1?o["Document"]=t:1==t.length&&(o["Placemark"]=t[0]);var s=jn[n.namespaceURI],a=at(o,s);return ft(i,Dn,st,a,[e],s,this),n},e}(mt);function Jn(t,e){var n=[0,0],r="start",i=t.getImage();if(i){var o=i.getSize();if(o&&2==o.length){var s=i.getScaleArray(),a=i.getAnchor();n[0]=s[0]*(o[0]-a[0]),n[1]=s[1]*(o[1]/2-a[1]),r="left"}}var u=t.getText();u?(u=u.clone(),u.setFont(u.getFont()||Yn.getFont()),u.setScale(u.getScale()||Yn.getScale()),u.setFill(u.getFill()||Yn.getFill()),u.setStroke(u.getStroke()||Un)):u=Yn.clone(),u.setText(e),u.setOffsetX(n[0]),u.setOffsetY(n[1]),u.setTextAlign(r);var c=new xn["c"]({image:i,text:u});return c}function Qn(t,e,n,r,i){return function(o,s){var a=i,u="",c=[];if(a){var l=o.getGeometry();if(l)if(l instanceof vn["a"])c=l.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Point"===e||"MultiPoint"===e})),a=c.length>0;else{var h=l.getType();a="Point"===h||"MultiPoint"===h}}a&&(u=o.get("name"),a=a&&!!u,a&&u.search(/&[^&]+;/)>-1&&(Vn||(Vn=document.createElement("textarea")),Vn.innerHTML=u,u=Vn.value));var f=n;if(t?f=t:e&&(f=$n(e,n,r)),a){var p=Jn(f[0],u);if(c.length>0){p.setGeometry(new vn["a"](c));var d=new xn["c"]({geometry:f[0].getGeometry(),image:null,fill:f[0].getFill(),stroke:f[0].getStroke(),text:null});return[p,d].concat(f.slice(1))}return p}return f}}function $n(t,e,n){return Array.isArray(t)?t:"string"===typeof t?$n(n[t],e,n):e}function tr(t){var e=W(t,!1),n=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(e);if(n){var r=n[1];return[parseInt(r.substr(6,2),16),parseInt(r.substr(4,2),16),parseInt(r.substr(2,2),16),parseInt(r.substr(0,2),16)/255]}}function er(t){var e=W(t,!1),n=[];e=e.replace(/\s*,\s*/g,",");var r,i=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?),([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|,|$)(?:([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|$))?\s*/i;while(r=i.exec(e)){var o=parseFloat(r[1]),s=parseFloat(r[2]),a=r[3]?parseFloat(r[3]):0;n.push(o,s,a),e=e.substr(r[0].length)}if(""===e)return n}function nr(t){var e=W(t,!1).trim(),n=t.baseURI;if(n&&"about:blank"!=n||(n=window.location.href),n){var r=new URL(e,n);return r.href}return e}function rr(t){var e=W(t,!1).trim().replace(/^(?!.*#)/,"#"),n=t.baseURI;if(n&&"about:blank"!=n||(n=window.location.href),n){var r=new URL(e,n);return r.href}return e}function ir(t){var e,n=t.getAttribute("xunits"),r=t.getAttribute("yunits");return e="insetPixels"!==n?"insetPixels"!==r?bn["a"].BOTTOM_LEFT:bn["a"].TOP_LEFT:"insetPixels"!==r?bn["a"].BOTTOM_RIGHT:bn["a"].TOP_RIGHT,{x:parseFloat(t.getAttribute("x")),xunits:Ln[n],y:parseFloat(t.getAttribute("y")),yunits:Ln[r],origin:e}}function or(t){return Rt(t)}var sr=ut(Rn,{Pair:Xr});function ar(t,e){return lt(void 0,sr,t,e,this)}var ur=ut(Rn,{Icon:nt(Or),color:nt(tr),heading:nt(Rt),hotSpot:nt(ir),scale:nt(or)});function cr(t,e){var n=lt({},ur,t,e);if(n){var r,i,o,s,a=e[e.length-1],u="Icon"in n?n["Icon"]:{},c=!("Icon"in n)||Object.keys(u).length>0,l=u["href"];l?r=l:c&&(r=pn);var h,f=bn["a"].BOTTOM_LEFT,p=n["hotSpot"];p?(i=[p.x,p.y],o=p.xunits,s=p.yunits,f=p.origin):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(r)&&(/pushpin/.test(r)?(i=cn,o=ln,s=hn):/arrow-reverse/.test(r)?(i=[54,42],o=ln,s=hn):/paddle/.test(r)&&(i=[32,1],o=ln,s=hn));var d,g=u["x"],y=u["y"];void 0!==g&&void 0!==y&&(h=[g,y]);var v,_=u["w"],m=u["h"];void 0!==_&&void 0!==m&&(d=[_,m]);var b=n["heading"];void 0!==b&&(v=Object(Cn["l"])(b));var E=n["scale"],w=n["color"];if(c){r==pn&&(d=fn);var x=new _n["a"]({anchor:i,anchorOrigin:f,anchorXUnits:o,anchorYUnits:s,crossOrigin:this.crossOrigin_,offset:h,offsetOrigin:bn["a"].BOTTOM_LEFT,rotation:v,scale:E,size:d,src:this.iconUrlFunction_(r),color:w}),O=x.getScaleArray()[0],S=x.getSize();if(null===S){var C=x.getImageState();if(C===En["a"].IDLE||C===En["a"].LOADING){var I=function(){var t=x.getImageState();if(t!==En["a"].IDLE&&t!==En["a"].LOADING){var e=x.getSize();if(e&&2==e.length){var n=Wn(e);x.setScale(O*n)}x.unlistenImageChange(I)}};x.listenImageChange(I),C===En["a"].IDLE&&x.load()}}else if(2==S.length){var P=Wn(S);x.setScale(O*P)}a["imageStyle"]=x}else a["imageStyle"]=Gn}}var lr=ut(Rn,{color:nt(tr),scale:nt(or)});function hr(t,e){var n=lt({},lr,t,e);if(n){var r=e[e.length-1],i=new On["a"]({fill:new yn["a"]({color:"color"in n?n["color"]:un}),scale:n["scale"]});r["textStyle"]=i}}var fr=ut(Rn,{color:nt(tr),width:nt(Rt)});function pr(t,e){var n=lt({},fr,t,e);if(n){var r=e[e.length-1],i=new wn["a"]({color:"color"in n?n["color"]:un,width:"width"in n?n["width"]:1});r["strokeStyle"]=i}}var dr=ut(Rn,{color:nt(tr),fill:nt(Ct),outline:nt(Ct)});function gr(t,e){var n=lt({},dr,t,e);if(n){var r=e[e.length-1],i=new yn["a"]({color:"color"in n?n["color"]:un});r["fillStyle"]=i;var o=n["fill"];void 0!==o&&(r["fill"]=o);var s=n["outline"];void 0!==s&&(r["outline"]=s)}}var yr=ut(Rn,{coordinates:tt(er)});function vr(t,e){return lt(null,yr,t,e)}function _r(t,e){var n=e[e.length-1],r=n.coordinates,i=W(t,!1),o=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i,s=o.exec(i);if(s){var a=parseFloat(s[1]),u=parseFloat(s[2]),c=parseFloat(s[3]);r.push([a,u,c])}else r.push([])}var mr=ut(Pn,{Track:$(wr)});function br(t,e){var n=lt([],mr,t,e);if(n)return new u["a"](n)}var Er=ut(Rn,{when:ii},ut(Pn,{coord:_r}));function wr(t,e){var n=lt({coordinates:[],whens:[]},Er,t,e);if(n){for(var r=[],o=n.coordinates,a=n.whens,u=0,c=Math.min(o.length,a.length);u<c;++u)3==o[u].length&&r.push(o[u][0],o[u][1],o[u][2],a[u]);return new s["a"](r,i["a"].XYZM)}}var xr=ut(Rn,{href:nt(nr)},ut(Pn,{x:nt(Rt),y:nt(Rt),w:nt(Rt),h:nt(Rt)}));function Or(t,e){var n=lt({},xr,t,e);return n||null}var Sr=ut(Rn,{coordinates:tt(er)});function Cr(t,e){return lt(null,Sr,t,e)}var Ir=ut(Rn,{extrude:nt(Ct),tessellate:nt(Ct),altitudeMode:nt(Nt)});function Pr(t,e){var n=lt({},Ir,t,e),r=Cr(t,e);if(r){var o=new s["a"](r,i["a"].XYZ);return o.setProperties(n,!0),o}}function Rr(t,e){var n=lt({},Ir,t,e),r=Cr(t,e);if(r){var o=new f["a"](r,i["a"].XYZ,[r.length]);return o.setProperties(n,!0),o}}var Tr=ut(Rn,{LineString:$(Pr),LinearRing:$(Rr),MultiGeometry:$(Lr),Point:$(Mr),Polygon:$(Ar)});function Lr(t,e){var n,r=lt([],Tr,t,e);if(!r)return null;if(0===r.length)return new vn["a"](r);for(var i,o=!0,s=r[0].getType(),a=1,h=r.length;a<h;++a)if(i=r[a],i.getType()!=s){o=!1;break}if(o){var f=void 0,d=void 0;if("Point"==s){var g=r[0];f=g.getLayout(),d=g.getFlatCoordinates();for(a=1,h=r.length;a<h;++a)i=r[a],Object(X["c"])(d,i.getFlatCoordinates());n=new c["a"](d,f),Dr(n,r)}else"LineString"==s?(n=new u["a"](r),Dr(n,r)):"Polygon"==s?(n=new l["a"](r),Dr(n,r)):"GeometryCollection"==s?n=new vn["a"](r):Object(p["a"])(!1,37)}else n=new vn["a"](r);return n}function Mr(t,e){var n=lt({},Ir,t,e),r=Cr(t,e);if(r){var o=new h["a"](r,i["a"].XYZ);return o.setProperties(n,!0),o}}var Nr=ut(Rn,{innerBoundaryIs:ti,outerBoundaryIs:ni});function Ar(t,e){var n=lt({},Ir,t,e),r=lt([null],Nr,t,e);if(r&&r[0]){for(var o=r[0],s=[o.length],a=1,u=r.length;a<u;++a)Object(X["c"])(o,r[a]),s.push(o.length);var c=new f["a"](o,i["a"].XYZ,s);return c.setProperties(n,!0),c}}var Fr=ut(Rn,{IconStyle:cr,LabelStyle:hr,LineStyle:pr,PolyStyle:gr});function jr(t,e){var n=lt({},Fr,t,e,this);if(!n)return null;var r,i="fillStyle"in n?n["fillStyle"]:kn,o=n["fill"];void 0===o||o||(i=null),"imageStyle"in n?n["imageStyle"]!=Gn&&(r=n["imageStyle"]):r=Bn;var s="textStyle"in n?n["textStyle"]:Yn,a="strokeStyle"in n?n["strokeStyle"]:zn,u=n["outline"];return void 0===u||u?[new xn["c"]({fill:i,image:r,stroke:a,text:s,zIndex:void 0})]:[new xn["c"]({geometry:function(t){var e=t.getGeometry(),n=e.getType();if("GeometryCollection"===n){var r=e;return new vn["a"](r.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Polygon"!==e&&"MultiPolygon"!==e})))}if("Polygon"!==n&&"MultiPolygon"!==n)return e},fill:i,image:r,stroke:a,text:s,zIndex:void 0}),new xn["c"]({geometry:function(t){var e=t.getGeometry(),n=e.getType();if("GeometryCollection"===n){var r=e;return new vn["a"](r.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Polygon"===e||"MultiPolygon"===e})))}if("Polygon"===n||"MultiPolygon"===n)return e},fill:i,stroke:null,zIndex:void 0})]}function Dr(t,e){var n,r,i,o=e.length,s=new Array(e.length),a=new Array(e.length),u=new Array(e.length);n=!1,r=!1,i=!1;for(var c=0;c<o;++c){var l=e[c];s[c]=l.get("extrude"),a[c]=l.get("tessellate"),u[c]=l.get("altitudeMode"),n=n||void 0!==s[c],r=r||void 0!==a[c],i=i||u[c]}n&&t.set("extrude",s),r&&t.set("tessellate",a),i&&t.set("altitudeMode",u)}var kr=ut(Rn,{displayName:nt(Nt),value:nt(Nt)});function Gr(t,e){var n=t.getAttribute("name");ct(kr,t,e);var r=e[e.length-1];n&&r.displayName?r[n]={value:r.value,displayName:r.displayName,toString:function(){return r.value}}:null!==n?r[n]=r.value:null!==r.displayName&&(r[r.displayName]=r.value),delete r["value"]}var Br=ut(Rn,{Data:Gr,SchemaData:Wr});function Ur(t,e){ct(Br,t,e)}function zr(t,e){ct(Fn,t,e)}var Yr=ut(Rn,{Style:nt(jr),key:nt(Nt),styleUrl:nt(rr)});function Xr(t,e){var n=lt({},Yr,t,e,this);if(n){var r=n["key"];if(r&&"normal"==r){var i=n["styleUrl"];i&&(e[e.length-1]=i);var o=n["Style"];o&&(e[e.length-1]=o)}}}function Vr(t,e){var n=ar.call(this,t,e);if(n){var r=e[e.length-1];Array.isArray(n)?r["Style"]=n:"string"===typeof n?r["styleUrl"]=n:Object(p["a"])(!1,38)}}var qr=ut(Rn,{SimpleData:Hr});function Wr(t,e){ct(qr,t,e)}function Hr(t,e){var n=t.getAttribute("name");if(null!==n){var r=Nt(t),i=e[e.length-1];i[n]=r}}var Zr=ut(Rn,{altitudeMode:nt(Nt),minAltitude:nt(Rt),maxAltitude:nt(Rt),north:nt(Rt),south:nt(Rt),east:nt(Rt),west:nt(Rt)});function Kr(t,e){var n=lt({},Zr,t,e);if(n){var r=e[e.length-1],i=[parseFloat(n["west"]),parseFloat(n["south"]),parseFloat(n["east"]),parseFloat(n["north"])];r["extent"]=i,r["altitudeMode"]=n["altitudeMode"],r["minAltitude"]=parseFloat(n["minAltitude"]),r["maxAltitude"]=parseFloat(n["maxAltitude"])}}var Jr=ut(Rn,{minLodPixels:nt(Rt),maxLodPixels:nt(Rt),minFadeExtent:nt(Rt),maxFadeExtent:nt(Rt)});function Qr(t,e){var n=lt({},Jr,t,e);if(n){var r=e[e.length-1];r["minLodPixels"]=parseFloat(n["minLodPixels"]),r["maxLodPixels"]=parseFloat(n["maxLodPixels"]),r["minFadeExtent"]=parseFloat(n["minFadeExtent"]),r["maxFadeExtent"]=parseFloat(n["maxFadeExtent"])}}var $r=ut(Rn,{LinearRing:$(vr)});function ti(t,e){var n=lt([],$r,t,e);if(n.length>0){var r=e[e.length-1];r.push.apply(r,n)}}var ei=ut(Rn,{LinearRing:tt(vr)});function ni(t,e){var n=lt(void 0,ei,t,e);if(n){var r=e[e.length-1];r[0]=n}}function ri(t,e){ct(An,t,e)}function ii(t,e){var n=e[e.length-1],r=n.whens,i=W(t,!1),o=Date.parse(i);r.push(isNaN(o)?0:o)}function oi(t,e){for(var n=Object(Sn["a"])(e),r=4==n.length?n[3]:1,i=[255*r,n[2],n[1],n[0]],o=0;o<4;++o){var s=Math.floor(i[o]).toString(16);i[o]=1==s.length?"0"+s:s}Gt(t,i.join(""))}function si(t,e,n){var r,o=n[n.length-1],s=o["layout"],a=o["stride"];s==i["a"].XY||s==i["a"].XYM?r=2:s==i["a"].XYZ||s==i["a"].XYZM?r=3:Object(p["a"])(!1,34);var u=e.length,c="";if(u>0){c+=e[0];for(var l=1;l<r;++l)c+=","+e[l];for(var h=a;h<u;h+=a){c+=" "+e[h];for(l=1;l<r;++l)c+=","+e[h+l]}}Gt(t,c)}var ai=ut(Rn,{Data:rt(ui),value:rt(li),displayName:rt(ci)});function ui(t,e,n){t.setAttribute("name",e.name);var r={node:t},i=e.value;"object"==typeof i?(null!==i&&i.displayName&&ft(r,ai,st,[i.displayName],n,["displayName"]),null!==i&&i.value&&ft(r,ai,st,[i.value],n,["value"])):ft(r,ai,st,[i],n,["value"])}function ci(t,e){Ft(t,e)}function li(t,e){Gt(t,e)}var hi=ut(Rn,{Placemark:rt(zi)}),fi=function(t,e,n){var r=e[e.length-1].node;return q(r.namespaceURI,"Placemark")};function pi(t,e,n){var r={node:t};ft(r,hi,fi,e,n,void 0,this)}var di=ot("Data");function gi(t,e,n){for(var r={node:t},i=e.names,o=e.values,s=i.length,a=0;a<s;a++)ft(r,ai,di,[{name:i[a],value:o[a]}],n)}var yi=ut(Rn,["href"],ut(Pn,["x","y","w","h"])),vi=ut(Rn,{href:rt(Gt)},ut(Pn,{x:rt(Dt),y:rt(Dt),w:rt(Dt),h:rt(Dt)})),_i=function(t,e,n){return q(Pn[0],"gx:"+n)};function mi(t,e,n){var r={node:t},i=n[n.length-1].node,o=yi[i.namespaceURI],s=at(e,o);ft(r,vi,st,s,n,o),o=yi[Pn[0]],s=at(e,o),ft(r,vi,_i,s,n,o)}var bi=ut(Rn,["scale","heading","Icon","color","hotSpot"]),Ei=ut(Rn,{Icon:rt(mi),color:rt(oi),heading:rt(Dt),hotSpot:rt(ro),scale:rt($i)});function wi(t,e,n){var r={node:t},i={},o=e.getSrc(),s=e.getSize(),a=e.getImageSize(),u={href:o};if(s){u["w"]=s[0],u["h"]=s[1];var c=e.getAnchor(),l=e.getOrigin();if(l&&a&&0!==l[0]&&l[1]!==s[1]&&(u["x"]=l[0],u["y"]=a[1]-(l[1]+s[1])),c&&(c[0]!==s[0]/2||c[1]!==s[1]/2)){var h={x:c[0],xunits:mn["a"].PIXELS,y:s[1]-c[1],yunits:mn["a"].PIXELS};i["hotSpot"]=h}}i["Icon"]=u;var f=e.getScaleArray()[0],p=s;if(null===p&&(p=fn),2==p.length){var d=Wn(p);f/=d}1!==f&&(i["scale"]=f);var g=e.getRotation();0!==g&&(i["heading"]=g);var y=e.getColor();y&&(i["color"]=y);var v=n[n.length-1].node,_=bi[v.namespaceURI],m=at(i,_);ft(r,Ei,st,m,n,_)}var xi=ut(Rn,["color","scale"]),Oi=ut(Rn,{color:rt(oi),scale:rt($i)});function Si(t,e,n){var r={node:t},i={},o=e.getFill();o&&(i["color"]=o.getColor());var s=e.getScale();s&&1!==s&&(i["scale"]=s);var a=n[n.length-1].node,u=xi[a.namespaceURI],c=at(i,u);ft(r,Oi,st,c,n,u)}var Ci=ut(Rn,["color","width"]),Ii=ut(Rn,{color:rt(oi),width:rt(Dt)});function Pi(t,e,n){var r={node:t},i={color:e.getColor(),width:Number(e.getWidth())||1},o=n[n.length-1].node,s=Ci[o.namespaceURI],a=at(i,s);ft(r,Ii,st,a,n,s)}var Ri={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},Ti=function(t,e,n){if(t){var r=e[e.length-1].node;return q(r.namespaceURI,Ri[t.getType()])}},Li=ot("Point"),Mi=ot("LineString"),Ni=ot("LinearRing"),Ai=ot("Polygon"),Fi=ut(Rn,{LineString:rt(Vi),Point:rt(Vi),Polygon:rt(Ki),GeometryCollection:rt(ji)});function ji(t,e,n){var r,i={node:t},o=e.getType(),s=[];"GeometryCollection"===o?(e.getGeometriesArrayRecursive().forEach((function(t){var e=t.getType();"MultiPoint"===e?s=s.concat(t.getPoints()):"MultiLineString"===e?s=s.concat(t.getLineStrings()):"MultiPolygon"===e?s=s.concat(t.getPolygons()):"Point"===e||"LineString"===e||"Polygon"===e?s.push(t):Object(p["a"])(!1,39)})),r=Ti):"MultiPoint"===o?(s=e.getPoints(),r=Li):"MultiLineString"===o?(s=e.getLineStrings(),r=Mi):"MultiPolygon"===o?(s=e.getPolygons(),r=Ai):Object(p["a"])(!1,39),ft(i,Fi,r,s,n)}var Di=ut(Rn,{LinearRing:rt(Vi)});function ki(t,e,n){var r={node:t};ft(r,Di,Ni,[e],n)}var Gi=ut(Rn,{ExtendedData:rt(gi),MultiGeometry:rt(ji),LineString:rt(Vi),LinearRing:rt(Vi),Point:rt(Vi),Polygon:rt(Ki),Style:rt(no),address:rt(Gt),description:rt(Gt),name:rt(Gt),open:rt(At),phoneNumber:rt(Gt),styleUrl:rt(Gt),visibility:rt(At)}),Bi=ut(Rn,["name","open","visibility","address","phoneNumber","description","styleUrl","Style"]),Ui=ot("ExtendedData");function zi(t,e,n){var r={node:t};e.getId()&&t.setAttribute("id",e.getId());var i=e.getProperties(),o={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};o[e.getGeometryName()]=1;var s=Object.keys(i||{}).sort().filter((function(t){return!o[t]})),a=e.getStyleFunction();if(a){var u=a(e,0);if(u){var c=Array.isArray(u)?u:[u],l=c;if(e.getGeometry()&&(l=c.filter((function(t){var n=t.getGeometryFunction()(e);if(n){var r=n.getType();return"GeometryCollection"===r?n.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Point"===e||"MultiPoint"===e})).length:"Point"===r||"MultiPoint"===r}}))),this.writeStyles_){var h=c,f=c;e.getGeometry()&&(h=c.filter((function(t){var n=t.getGeometryFunction()(e);if(n){var r=n.getType();return"GeometryCollection"===r?n.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"LineString"===e||"MultiLineString"===e})).length:"LineString"===r||"MultiLineString"===r}})),f=c.filter((function(t){var n=t.getGeometryFunction()(e);if(n){var r=n.getType();return"GeometryCollection"===r?n.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Polygon"===e||"MultiPolygon"===e})).length:"Polygon"===r||"MultiPolygon"===r}}))),i["Style"]={pointStyles:l,lineStyles:h,polyStyles:f}}if(l.length&&void 0===i["name"]){var p=l[0].getText();p&&(i["name"]=p.getText())}}}var d=n[n.length-1].node,g=Bi[d.namespaceURI],y=at(i,g);if(ft(r,Gi,st,y,n,g),s.length>0){var v=at(i,s),_={names:s,values:v};ft(r,Gi,Ui,[_],n)}var b=n[0],E=e.getGeometry();E&&(E=Object(m["c"])(E,!0,b)),ft(r,Gi,Ti,[E],n)}var Yi=ut(Rn,["extrude","tessellate","altitudeMode","coordinates"]),Xi=ut(Rn,{extrude:rt(At),tessellate:rt(At),altitudeMode:rt(Gt),coordinates:rt(si)});function Vi(t,e,n){var r=e.getFlatCoordinates(),i={node:t};i["layout"]=e.getLayout(),i["stride"]=e.getStride();var o=e.getProperties();o.coordinates=r;var s=n[n.length-1].node,a=Yi[s.namespaceURI],u=at(o,a);ft(i,Xi,st,u,n,a)}var qi=ut(Rn,["color","fill","outline"]),Wi=ut(Rn,{outerBoundaryIs:rt(ki),innerBoundaryIs:rt(ki)}),Hi=ot("innerBoundaryIs"),Zi=ot("outerBoundaryIs");function Ki(t,e,n){var r=e.getLinearRings(),i=r.shift(),o={node:t};ft(o,Wi,Hi,r,n),ft(o,Wi,Zi,[i],n)}var Ji=ut(Rn,{color:rt(oi),fill:rt(At),outline:rt(At)});function Qi(t,e,n){var r={node:t},i=e.getFill(),o=e.getStroke(),s={color:i?i.getColor():void 0,fill:!!i&&void 0,outline:!!o&&void 0},a=n[n.length-1].node,u=qi[a.namespaceURI],c=at(s,u);ft(r,Ji,st,c,n,u)}function $i(t,e){Dt(t,Math.round(1e6*e)/1e6)}var to=ut(Rn,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),eo=ut(Rn,{IconStyle:rt(wi),LabelStyle:rt(Si),LineStyle:rt(Pi),PolyStyle:rt(Qi)});function no(t,e,n){var r={node:t},i={};if(e.pointStyles.length){var o=e.pointStyles[0].getText();o&&(i["LabelStyle"]=o);var s=e.pointStyles[0].getImage();s&&"function"===typeof s.getSrc&&(i["IconStyle"]=s)}if(e.lineStyles.length){var a=e.lineStyles[0].getStroke();a&&(i["LineStyle"]=a)}if(e.polyStyles.length){a=e.polyStyles[0].getStroke();a&&!i["LineStyle"]&&(i["LineStyle"]=a),i["PolyStyle"]=e.polyStyles[0]}var u=n[n.length-1].node,c=to[u.namespaceURI],l=at(i,c);ft(r,eo,st,l,n,c)}function ro(t,e){t.setAttribute("x",String(e.x)),t.setAttribute("y",String(e.y)),t.setAttribute("xunits",e.xunits),t.setAttribute("yunits",e.yunits)}var io=Kn,oo=n("fdb7"),so=function(){function t(){}return t.prototype.read=function(t){if(t){if("string"===typeof t){var e=J(t);return this.readFromDocument(e)}return Z(t)?this.readFromDocument(t):this.readFromNode(t)}return null},t.prototype.readFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readFromNode(e);return null},t.prototype.readFromNode=function(t){},t}(),ao=so,uo="http://www.w3.org/1999/xlink";function co(t){return t.getAttributeNS(uo,"href")}var lo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ho=[null,"http://www.opengis.net/ows/1.1"],fo=ut(ho,{ServiceIdentification:nt(ko),ServiceProvider:nt(Bo),OperationsMetadata:nt(jo)}),po=function(t){function e(){return t.call(this)||this}return lo(e,t),e.prototype.readFromNode=function(t){var e=lt({},fo,t,[]);return e||null},e}(ao),go=ut(ho,{DeliveryPoint:nt(Nt),City:nt(Nt),AdministrativeArea:nt(Nt),PostalCode:nt(Nt),Country:nt(Nt),ElectronicMailAddress:nt(Nt)}),yo=ut(ho,{Value:et(Uo)}),vo=ut(ho,{AllowedValues:nt(Ro)}),_o=ut(ho,{Phone:nt(Do),Address:nt(Po)}),mo=ut(ho,{HTTP:nt(Ao)}),bo=ut(ho,{Get:et(No),Post:void 0}),Eo=ut(ho,{DCP:nt(Mo)}),wo=ut(ho,{Operation:Fo}),xo=ut(ho,{Voice:nt(Nt),Facsimile:nt(Nt)}),Oo=ut(ho,{Constraint:et(To)}),So=ut(ho,{IndividualName:nt(Nt),PositionName:nt(Nt),ContactInfo:nt(Lo)}),Co=ut(ho,{Abstract:nt(Nt),AccessConstraints:nt(Nt),Fees:nt(Nt),Title:nt(Nt),ServiceTypeVersion:nt(Nt),ServiceType:nt(Nt)}),Io=ut(ho,{ProviderName:nt(Nt),ProviderSite:nt(co),ServiceContact:nt(Go)});function Po(t,e){return lt({},go,t,e)}function Ro(t,e){return lt({},yo,t,e)}function To(t,e){var n=t.getAttribute("name");if(n)return lt({name:n},vo,t,e)}function Lo(t,e){return lt({},_o,t,e)}function Mo(t,e){return lt({},mo,t,e)}function No(t,e){var n=co(t);if(n)return lt({href:n},Oo,t,e)}function Ao(t,e){return lt({},bo,t,e)}function Fo(t,e){var n=t.getAttribute("name"),r=lt({},Eo,t,e);if(r){var i=e[e.length-1];i[n]=r}}function jo(t,e){return lt({},wo,t,e)}function Do(t,e){return lt({},xo,t,e)}function ko(t,e){return lt({},Co,t,e)}function Go(t,e){return lt({},So,t,e)}function Bo(t,e){return lt({},Io,t,e)}function Uo(t,e){return Nt(t)}var zo=po;function Yo(t,e,n,r,i,o){var s,a;void 0!==i?(s=i,a=void 0!==o?o:0):(s=[],a=0);var u=e;while(u<n){var c=t[u++];s[a++]=t[u++],s[a++]=c;for(var l=2;l<r;++l)s[a++]=t[u++]}return s.length=a,s}var Xo=n("9abc"),Vo=n("bb6c"),qo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wo=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.dataProjection=Object(v["h"])("EPSG:4326"),n.factor_=r.factor?r.factor:1e5,n.geometryLayout_=r.geometryLayout?r.geometryLayout:i["a"].XY,n}return qo(e,t),e.prototype.readFeatureFromText=function(t,e){var n=this.readGeometryFromText(t,e);return new r["a"](n)},e.prototype.readFeaturesFromText=function(t,e){var n=this.readFeatureFromText(t,e);return[n]},e.prototype.readGeometryFromText=function(t,e){var n=Object(Xo["b"])(this.geometryLayout_),r=Zo(t,n,this.factor_);Yo(r,0,r.length,n,r);var i=Object(Vo["a"])(r,0,r.length,n),o=new s["a"](i,this.geometryLayout_);return Object(m["c"])(o,!1,this.adaptOptions(e))},e.prototype.writeFeatureText=function(t,e){var n=t.getGeometry();return n?this.writeGeometryText(n,e):(Object(p["a"])(!1,40),"")},e.prototype.writeFeaturesText=function(t,e){return this.writeFeatureText(t[0],e)},e.prototype.writeGeometryText=function(t,e){t=Object(m["c"])(t,!0,this.adaptOptions(e));var n=t.getFlatCoordinates(),r=t.getStride();return Yo(n,0,n.length,r,n),Ho(n,r,this.factor_)},e}(ze["a"]);function Ho(t,e,n){var r,i=n||1e5,o=new Array(e);for(r=0;r<e;++r)o[r]=0;for(var s=0,a=t.length;s<a;)for(r=0;r<e;++r,++s){var u=t[s],c=u-o[r];o[r]=u,t[s]=c}return Ko(t,i)}function Zo(t,e,n){var r,i=n||1e5,o=new Array(e);for(r=0;r<e;++r)o[r]=0;for(var s=Jo(t,i),a=0,u=s.length;a<u;)for(r=0;r<e;++r,++a)o[r]+=s[a],s[a]=o[r];return s}function Ko(t,e){for(var n=e||1e5,r=0,i=t.length;r<i;++r)t[r]=Math.round(t[r]*n);return Qo(t)}function Jo(t,e){for(var n=e||1e5,r=$o(t),i=0,o=r.length;i<o;++i)r[i]/=n;return r}function Qo(t){for(var e=0,n=t.length;e<n;++e){var r=t[e];t[e]=r<0?~(r<<1):r<<1}return ts(t)}function $o(t){for(var e=es(t),n=0,r=e.length;n<r;++n){var i=e[n];e[n]=1&i?~(i>>1):i>>1}return e}function ts(t){for(var e="",n=0,r=t.length;n<r;++n)e+=ns(t[n]);return e}function es(t){for(var e=[],n=0,r=0,i=0,o=t.length;i<o;++i){var s=t.charCodeAt(i)-63;n|=(31&s)<<r,s<32?(e.push(n),n=0,r=0):r+=5}return e}function ns(t){var e,n="";while(t>=32)e=63+(32|31&t),n+=String.fromCharCode(e),t>>=5;return e=t+63,n+=String.fromCharCode(e),n}var rs=Wo,is=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),os=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.layerName_=r.layerName,n.layers_=r.layers?r.layers:null,n.dataProjection=Object(v["h"])(r.dataProjection?r.dataProjection:"EPSG:4326"),n}return is(e,t),e.prototype.readFeaturesFromObject=function(t,e){if("Topology"==t.type){var n=t,r=void 0,i=null,o=null;n["transform"]&&(r=n["transform"],i=r["scale"],o=r["translate"]);var s=n["arcs"];r&&ys(s,i,o);var a=[],u=n["objects"],c=this.layerName_,l=void 0;for(var h in u)this.layers_&&-1==this.layers_.indexOf(h)||("GeometryCollection"===u[h].type?(l=u[h],a.push.apply(a,ds(l,s,i,o,c,h,e))):(l=u[h],a.push(gs(l,s,i,o,c,h,e))));return a}return[]},e.prototype.readProjectionFromObject=function(t){return this.dataProjection},e}(o["a"]),ss={Point:us,LineString:ls,Polygon:fs,MultiPoint:cs,MultiLineString:hs,MultiPolygon:ps};function as(t,e){for(var n,r=[],i=0,o=t.length;i<o;++i)if(n=t[i],i>0&&r.pop(),n>=0)for(var s=e[n],a=0,u=s.length;a<u;++a)r.push(s[a].slice(0));else for(s=e[~n],a=s.length-1;a>=0;--a)r.push(s[a].slice(0));return r}function us(t,e,n){var r=t["coordinates"];return e&&n&&_s(r,e,n),new h["a"](r)}function cs(t,e,n){var r=t["coordinates"];if(e&&n)for(var i=0,o=r.length;i<o;++i)_s(r[i],e,n);return new c["a"](r)}function ls(t,e){var n=as(t["arcs"],e);return new s["a"](n)}function hs(t,e){for(var n=[],r=0,i=t["arcs"].length;r<i;++r)n[r]=as(t["arcs"][r],e);return new u["a"](n)}function fs(t,e){for(var n=[],r=0,i=t["arcs"].length;r<i;++r)n[r]=as(t["arcs"][r],e);return new f["a"](n)}function ps(t,e){for(var n=[],r=0,i=t["arcs"].length;r<i;++r){for(var o=t["arcs"][r],s=[],a=0,u=o.length;a<u;++a)s[a]=as(o[a],e);n[r]=s}return new l["a"](n)}function ds(t,e,n,r,i,o,s){for(var a=t["geometries"],u=[],c=0,l=a.length;c<l;++c)u[c]=gs(a[c],e,n,r,i,o,s);return u}function gs(t,e,n,i,o,s,a){var u=null,c=t.type;if(c){var l=ss[c];u="Point"===c||"MultiPoint"===c?l(t,n,i):l(t,e),u=Object(m["c"])(u,!1,a)}var h=new r["a"]({geometry:u});void 0!==t.id&&h.setId(t.id);var f=t.properties;return o&&(f||(f={}),f[o]=s),f&&h.setProperties(f,!0),h}function ys(t,e,n){for(var r=0,i=t.length;r<i;++r)vs(t[r],e,n)}function vs(t,e,n){for(var r=0,i=0,o=0,s=t.length;o<s;++o){var a=t[o];r+=a[0],i+=a[1],a[0]=r,a[1]=i,_s(a,e,n)}}function _s(t,e,n){t[0]=t[0]*e[0]+n[0],t[1]=t[1]*e[1]+n[1]}var ms=os,bs=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Es=function(t){function e(e){var n=this,r=e||{};return n=t.call(this,r)||this,n.schemaLocation=r.schemaLocation?r.schemaLocation:n.namespace+" http://schemas.opengis.net/gml/3.2.1/gml.xsd",n}return bs(e,t),e}(Zt);Es.prototype.namespace="http://www.opengis.net/gml/3.2",Es.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml/3.2":{pos:tt(Zt.prototype.readFlatPos),posList:tt(Zt.prototype.readFlatPosList),coordinates:tt(Xt.prototype.readFlatCoordinates)}},Es.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml/3.2":{interior:Zt.prototype.interiorParser,exterior:Zt.prototype.exteriorParser}},Es.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml/3.2":{Point:tt(Ot.prototype.readPoint),MultiPoint:tt(Ot.prototype.readMultiPoint),LineString:tt(Ot.prototype.readLineString),MultiLineString:tt(Ot.prototype.readMultiLineString),LinearRing:tt(Ot.prototype.readLinearRing),Polygon:tt(Ot.prototype.readPolygon),MultiPolygon:tt(Ot.prototype.readMultiPolygon),Surface:tt(Es.prototype.readSurface),MultiSurface:tt(Zt.prototype.readMultiSurface),Curve:tt(Es.prototype.readCurve),MultiCurve:tt(Zt.prototype.readMultiCurve),Envelope:tt(Es.prototype.readEnvelope)}},Es.prototype.MULTICURVE_PARSERS={"http://www.opengis.net/gml/3.2":{curveMember:$(Zt.prototype.curveMemberParser),curveMembers:$(Zt.prototype.curveMemberParser)}},Es.prototype.MULTISURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{surfaceMember:$(Zt.prototype.surfaceMemberParser),surfaceMembers:$(Zt.prototype.surfaceMemberParser)}},Es.prototype.CURVEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:$(Ot.prototype.readLineString),Curve:$(Zt.prototype.readCurve)}},Es.prototype.SURFACEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:$(Ot.prototype.readPolygon),Surface:$(Zt.prototype.readSurface)}},Es.prototype.SURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{patches:tt(Zt.prototype.readPatch)}},Es.prototype.CURVE_PARSERS={"http://www.opengis.net/gml/3.2":{segments:tt(Zt.prototype.readSegment)}},Es.prototype.ENVELOPE_PARSERS={"http://www.opengis.net/gml/3.2":{lowerCorner:$(Zt.prototype.readFlatPosList),upperCorner:$(Zt.prototype.readFlatPosList)}},Es.prototype.PATCHES_PARSERS={"http://www.opengis.net/gml/3.2":{PolygonPatch:tt(Zt.prototype.readPolygonPatch)}},Es.prototype.SEGMENTS_PARSERS={"http://www.opengis.net/gml/3.2":{LineStringSegment:Q(Zt.prototype.readLineStringSegment)}},Es.prototype.MULTIPOINT_PARSERS={"http://www.opengis.net/gml/3.2":{pointMember:$(Ot.prototype.pointMemberParser),pointMembers:$(Ot.prototype.pointMemberParser)}},Es.prototype.MULTILINESTRING_PARSERS={"http://www.opengis.net/gml/3.2":{lineStringMember:$(Ot.prototype.lineStringMemberParser),lineStringMembers:$(Ot.prototype.lineStringMemberParser)}},Es.prototype.MULTIPOLYGON_PARSERS={"http://www.opengis.net/gml/3.2":{polygonMember:$(Ot.prototype.polygonMemberParser),polygonMembers:$(Ot.prototype.polygonMemberParser)}},Es.prototype.POINTMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Point:$(Ot.prototype.readFlatCoordinatesFromNode)}},Es.prototype.LINESTRINGMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:$(Ot.prototype.readLineString)}},Es.prototype.POLYGONMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:$(Ot.prototype.readPolygon)}},Es.prototype.RING_PARSERS={"http://www.opengis.net/gml/3.2":{LinearRing:tt(Ot.prototype.readFlatLinearRing),Ring:tt(Es.prototype.readFlatCurveRing)}},Es.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml/3.2":{exterior:rt(Zt.prototype.writeRing),interior:rt(Zt.prototype.writeRing)}},Es.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lowerCorner:rt(Gt),upperCorner:rt(Gt)}},Es.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{surfaceMember:rt(Zt.prototype.writeSurfaceOrPolygonMember),polygonMember:rt(Zt.prototype.writeSurfaceOrPolygonMember)}},Es.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{pointMember:rt(Zt.prototype.writePointMember)}},Es.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lineStringMember:rt(Zt.prototype.writeLineStringOrCurveMember),curveMember:rt(Zt.prototype.writeLineStringOrCurveMember)}},Es.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml/3.2":{Curve:rt(Zt.prototype.writeCurveOrLineString),MultiCurve:rt(Zt.prototype.writeMultiCurveOrLineString),Point:rt(Es.prototype.writePoint),MultiPoint:rt(Zt.prototype.writeMultiPoint),LineString:rt(Zt.prototype.writeCurveOrLineString),MultiLineString:rt(Zt.prototype.writeMultiCurveOrLineString),LinearRing:rt(Zt.prototype.writeLinearRing),Polygon:rt(Zt.prototype.writeSurfaceOrPolygon),MultiPolygon:rt(Zt.prototype.writeMultiSurfaceOrPolygon),Surface:rt(Zt.prototype.writeSurfaceOrPolygon),MultiSurface:rt(Zt.prototype.writeMultiSurfaceOrPolygon),Envelope:rt(Zt.prototype.writeEnvelope)}};var ws=Es,xs=function(){function t(t){this.tagName_=t}return t.prototype.getTagName=function(){return this.tagName_},t}(),Os=xs,Ss=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cs=function(t){function e(e,n){var r=t.call(this,e)||this;return r.conditions=n,Object(p["a"])(r.conditions.length>=2,57),r}return Ss(e,t),e}(Os),Is=Cs,Ps=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rs=function(t){function e(e){return t.call(this,"And",Array.prototype.slice.call(arguments))||this}return Ps(e,t),e}(Is),Ts=Rs,Ls=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ms=function(t){function e(e,n,r){var i=t.call(this,"BBOX")||this;if(i.geometryName=e,i.extent=n,4!==n.length)throw new Error("Expected an extent with four values ([minX, minY, maxX, maxY])");return i.srsName=r,i}return Ls(e,t),e}(Os),Ns=Ms,As=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fs=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.geometryName=n||"the_geom",o.geometry=r,o.srsName=i,o}return As(e,t),e}(Os),js=Fs,Ds=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ks=(function(t){function e(e,n,r){return t.call(this,"Contains",e,n,r)||this}Ds(e,t)}(js),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Gs=(function(t){function e(e,n,r,i,o){var s=t.call(this,"DWithin",e,n,o)||this;return s.distance=r,s.unit=i,s}ks(e,t)}(js),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Bs=(function(t){function e(e,n,r){return t.call(this,"Disjoint",e,n,r)||this}Gs(e,t)}(js),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Us=function(t){function e(e,n){var r=t.call(this,e)||this;return r.propertyName=n,r}return Bs(e,t),e}(Os),zs=Us,Ys=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xs=(function(t){function e(e,n,r){var i=t.call(this,"During",e)||this;return i.begin=n,i.end=r,i}Ys(e,t)}(zs),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Vs=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.expression=r,o.matchCase=i,o}return Xs(e,t),e}(zs),qs=Vs,Ws=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hs=(function(t){function e(e,n,r){return t.call(this,"PropertyIsEqualTo",e,n,r)||this}Ws(e,t)}(qs),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Zs=(function(t){function e(e,n){return t.call(this,"PropertyIsGreaterThan",e,n)||this}Hs(e,t)}(qs),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Ks=(function(t){function e(e,n){return t.call(this,"PropertyIsGreaterThanOrEqualTo",e,n)||this}Zs(e,t)}(qs),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Js=(function(t){function e(e,n,r){return t.call(this,"Intersects",e,n,r)||this}Ks(e,t)}(js),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Qs=(function(t){function e(e,n,r){var i=t.call(this,"PropertyIsBetween",e)||this;return i.lowerBoundary=n,i.upperBoundary=r,i}Js(e,t)}(zs),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),$s=(function(t){function e(e,n,r,i,o,s){var a=t.call(this,"PropertyIsLike",e)||this;return a.pattern=n,a.wildCard=void 0!==r?r:"*",a.singleChar=void 0!==i?i:".",a.escapeChar=void 0!==o?o:"!",a.matchCase=s,a}Qs(e,t)}(zs),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ta=(function(t){function e(e){return t.call(this,"PropertyIsNull",e)||this}$s(e,t)}(zs),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ea=(function(t){function e(e,n){return t.call(this,"PropertyIsLessThan",e,n)||this}ta(e,t)}(qs),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),na=(function(t){function e(e,n){return t.call(this,"PropertyIsLessThanOrEqualTo",e,n)||this}ea(e,t)}(qs),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ra=(function(t){function e(e){var n=t.call(this,"Not")||this;return n.condition=e,n}na(e,t)}(Os),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ia=(function(t){function e(e,n,r){return t.call(this,"PropertyIsNotEqualTo",e,n,r)||this}ra(e,t)}(qs),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),oa=(function(t){function e(e){return t.call(this,"Or",Array.prototype.slice.call(arguments))||this}ia(e,t)}(Is),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),sa=(function(t){function e(e){var n=t.call(this,"ResourceId")||this;return n.rid=e,n}oa(e,t)}(Os),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());(function(t){function e(e,n,r){return t.call(this,"Within",e,n,r)||this}sa(e,t)})(js);function aa(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(Ts,e))}function ua(t,e,n){return new Ns(t,e,n)}var ca=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),la={"http://www.opengis.net/gml":{boundedBy:nt(Ot.prototype.readExtentElement,"bounds")},"http://www.opengis.net/wfs/2.0":{member:$(Ot.prototype.readFeaturesInternal)}},ha={"http://www.opengis.net/wfs":{totalInserted:nt(Lt),totalUpdated:nt(Lt),totalDeleted:nt(Lt)},"http://www.opengis.net/wfs/2.0":{totalInserted:nt(Lt),totalUpdated:nt(Lt),totalDeleted:nt(Lt)}},fa={"http://www.opengis.net/wfs":{TransactionSummary:nt(Ca,"transactionSummary"),InsertResults:nt(Ta,"insertIds")},"http://www.opengis.net/wfs/2.0":{TransactionSummary:nt(Ca,"transactionSummary"),InsertResults:nt(Ta,"insertIds")}},pa={"http://www.opengis.net/wfs":{PropertyName:rt(Gt)},"http://www.opengis.net/wfs/2.0":{PropertyName:rt(Gt)}},da={"http://www.opengis.net/wfs":{Insert:rt(La),Update:rt(Fa),Delete:rt(Aa),Property:rt(ja),Native:rt(Da)},"http://www.opengis.net/wfs/2.0":{Insert:rt(La),Update:rt(Fa),Delete:rt(Aa),Property:rt(ja),Native:rt(Da)}},ga="feature",ya="http://www.w3.org/2000/xmlns/",va={"2.0.0":"http://www.opengis.net/ogc/1.1","1.1.0":"http://www.opengis.net/ogc","1.0.0":"http://www.opengis.net/ogc"},_a={"2.0.0":"http://www.opengis.net/wfs/2.0","1.1.0":"http://www.opengis.net/wfs","1.0.0":"http://www.opengis.net/wfs"},ma={"2.0.0":"http://www.opengis.net/fes/2.0","1.1.0":"http://www.opengis.net/fes","1.0.0":"http://www.opengis.net/fes"},ba={"2.0.0":"http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd","1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"},Ea={"2.0.0":ws,"1.1.0":Zt,"1.0.0":Xt},wa="1.1.0",xa=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.version_=r.version?r.version:wa,n.featureType_=r.featureType,n.featureNS_=r.featureNS,n.gmlFormat_=r.gmlFormat?r.gmlFormat:new Ea[n.version_],n.schemaLocation_=r.schemaLocation?r.schemaLocation:ba[n.version_],n}return ca(e,t),e.prototype.getFeatureType=function(){return this.featureType_},e.prototype.setFeatureType=function(t){this.featureType_=t},e.prototype.readFeaturesFromNode=function(t,e){var n={node:t};Object(d["a"])(n,{featureType:this.featureType_,featureNS:this.featureNS_}),Object(d["a"])(n,this.getReadOptions(t,e||{}));var r,i=[n];r="2.0.0"===this.version_?la:this.gmlFormat_.FEATURE_COLLECTION_PARSERS;var o=lt([],r,t,i,this.gmlFormat_);return o||(o=[]),o},e.prototype.readTransactionResponse=function(t){if(t){if("string"===typeof t){var e=J(t);return this.readTransactionResponseFromDocument(e)}return Z(t)?this.readTransactionResponseFromDocument(t):this.readTransactionResponseFromNode(t)}},e.prototype.readFeatureCollectionMetadata=function(t){if(t){if("string"===typeof t){var e=J(t);return this.readFeatureCollectionMetadataFromDocument(e)}return Z(t)?this.readFeatureCollectionMetadataFromDocument(t):this.readFeatureCollectionMetadataFromNode(t)}},e.prototype.readFeatureCollectionMetadataFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readFeatureCollectionMetadataFromNode(e)},e.prototype.readFeatureCollectionMetadataFromNode=function(t){var e={},n=Mt(t.getAttribute("numberOfFeatures"));return e["numberOfFeatures"]=n,lt(e,la,t,[],this.gmlFormat_)},e.prototype.readTransactionResponseFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readTransactionResponseFromNode(e)},e.prototype.readTransactionResponseFromNode=function(t){return lt({},fa,t,[])},e.prototype.writeGetFeature=function(t){var e=this,n=q(_a[this.version_],"GetFeature");n.setAttribute("service","WFS"),n.setAttribute("version",this.version_),t.handle&&n.setAttribute("handle",t.handle),t.outputFormat&&n.setAttribute("outputFormat",t.outputFormat),void 0!==t.maxFeatures&&n.setAttribute("maxFeatures",String(t.maxFeatures)),t.resultType&&n.setAttribute("resultType",t.resultType),void 0!==t.startIndex&&n.setAttribute("startIndex",String(t.startIndex)),void 0!==t.count&&n.setAttribute("count",String(t.count)),void 0!==t.viewParams&&n.setAttribute("viewParams",t.viewParams),n.setAttributeNS(V,"xsi:schemaLocation",this.schemaLocation_);var r={node:n};if(Object(d["a"])(r,{version:this.version_,srsName:t.srsName,featureNS:t.featureNS?t.featureNS:this.featureNS_,featurePrefix:t.featurePrefix,propertyNames:t.propertyNames?t.propertyNames:[]}),Object(p["a"])(Array.isArray(t.featureTypes),11),"string"===typeof t.featureTypes[0]){var i=t.filter;t.bbox&&(Object(p["a"])(t.geometryName,12),i=this.combineBboxAndFilter(t.geometryName,t.bbox,t.srsName,i)),Object(d["a"])(r,{geometryName:t.geometryName,filter:i}),nu(n,t.featureTypes,[r])}else t.featureTypes.forEach((function(i){var o=e.combineBboxAndFilter(i.geometryName,i.bbox,t.srsName,t.filter);Object(d["a"])(r,{geometryName:i.geometryName,filter:o}),nu(n,[i.name],[r])}));return n},e.prototype.combineBboxAndFilter=function(t,e,n,r){var i=ua(t,e,n);return r?aa(r,i):i},e.prototype.writeTransaction=function(t,e,n,r){var i,o=[],s=r.version?r.version:this.version_,a=q(_a[s],"Transaction");a.setAttribute("service","WFS"),a.setAttribute("version",s),r&&(i=r.gmlOptions?r.gmlOptions:{},r.handle&&a.setAttribute("handle",r.handle)),a.setAttributeNS(V,"xsi:schemaLocation",ba[s]);var u=Oa(a,i,s,r);return t&&Sa("Insert",t,o,u),e&&Sa("Update",e,o,u),n&&Sa("Delete",n,o,u),r.nativeElements&&Sa("Native",r.nativeElements,o,u),a},e.prototype.readProjectionFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readProjectionFromNode(e);return null},e.prototype.readProjectionFromNode=function(t){if(t.firstElementChild&&t.firstElementChild.firstElementChild){t=t.firstElementChild.firstElementChild;for(var e=t.firstElementChild;e;e=e.nextElementSibling)if(0!==e.childNodes.length&&(1!==e.childNodes.length||3!==e.firstChild.nodeType)){var n=[{}];return this.gmlFormat_.readGeometryElement(e,n),Object(v["h"])(n.pop().srsName)}}return null},e}(mt);function Oa(t,e,n,r){var i,o=r.featurePrefix?r.featurePrefix:ga;"1.0.0"===n?i=2:"1.1.0"===n?i=3:"2.0.0"===n&&(i=3.2);var s=Object(d["a"])({node:t},{version:n,featureNS:r.featureNS,featureType:r.featureType,featurePrefix:o,gmlVersion:i,hasZ:r.hasZ,srsName:r.srsName},e);return s}function Sa(t,e,n,r){ft(r,da,ot(t),e,n)}function Ca(t,e){return lt({},ha,t,e)}var Ia={"http://www.opengis.net/ogc":{FeatureId:$((function(t,e){return t.getAttribute("fid")}))},"http://www.opengis.net/ogc/1.1":{FeatureId:$((function(t,e){return t.getAttribute("fid")}))}};function Pa(t,e){ct(Ia,t,e)}var Ra={"http://www.opengis.net/wfs":{Feature:Pa},"http://www.opengis.net/wfs/2.0":{Feature:Pa}};function Ta(t,e){return lt([],Ra,t,e)}function La(t,e,n){var r=n[n.length-1],i=r["featureType"],o=r["featureNS"],s=r["gmlVersion"],a=q(o,i);t.appendChild(a),2===s?Xt.prototype.writeFeatureElement(a,e,n):3===s?Zt.prototype.writeFeatureElement(a,e,n):ws.prototype.writeFeatureElement(a,e,n)}function Ma(t,e,n){var r=n[n.length-1],i=r["version"],o=va[i],s=q(o,"Filter"),a=q(o,"FeatureId");s.appendChild(a),a.setAttribute("fid",e),t.appendChild(s)}function Na(t,e){t=t||ga;var n=t+":";return 0===e.indexOf(n)?e:n+e}function Aa(t,e,n){var r=n[n.length-1];Object(p["a"])(void 0!==e.getId(),26);var i=r["featureType"],o=r["featurePrefix"],s=r["featureNS"],a=Na(o,i);t.setAttribute("typeName",a),t.setAttributeNS(ya,"xmlns:"+o,s);var u=e.getId();void 0!==u&&Ma(t,u,n)}function Fa(t,e,n){var r=n[n.length-1];Object(p["a"])(void 0!==e.getId(),27);var i=r["version"],o=r["featureType"],s=r["featurePrefix"],a=r["featureNS"],u=Na(s,o),c=e.getGeometryName();t.setAttribute("typeName",u),t.setAttributeNS(ya,"xmlns:"+s,a);var l=e.getId();if(void 0!==l){for(var h=e.getKeys(),f=[],d=0,g=h.length;d<g;d++){var y=e.get(h[d]);if(void 0!==y){var v=h[d];y&&"function"===typeof y.getSimplifiedGeometry&&(v=c),f.push({name:v,value:y})}}ft({version:i,gmlVersion:r["gmlVersion"],node:t,hasZ:r["hasZ"],srsName:r["srsName"]},da,ot("Property"),f,n),Ma(t,l,n)}}function ja(t,e,n){var r=n[n.length-1],i=r["version"],o=_a[i],s=q(o,"Name"),a=r["gmlVersion"];if(t.appendChild(s),Gt(s,e.name),void 0!==e.value&&null!==e.value){var u=q(o,"Value");t.appendChild(u),e.value&&"function"===typeof e.value.getSimplifiedGeometry?2===a?Xt.prototype.writeGeometryElement(u,e.value,n):3===a?Zt.prototype.writeGeometryElement(u,e.value,n):ws.prototype.writeGeometryElement(u,e.value,n):Gt(u,e.value)}}function Da(t,e,n){e.vendorId&&t.setAttribute("vendorId",e.vendorId),void 0!==e.safeToIgnore&&t.setAttribute("safeToIgnore",String(e.safeToIgnore)),void 0!==e.value&&Gt(t,e.value)}var ka={"http://www.opengis.net/wfs":{Query:rt(Ga)},"http://www.opengis.net/wfs/2.0":{Query:rt(Ga)},"http://www.opengis.net/ogc":{During:rt(Va),And:rt(qa),Or:rt(qa),Not:rt(Wa),BBOX:rt(Ua),Contains:rt(Ya),Intersects:rt(Ya),Within:rt(Ya),DWithin:rt(Xa),PropertyIsEqualTo:rt(Ha),PropertyIsNotEqualTo:rt(Ha),PropertyIsLessThan:rt(Ha),PropertyIsLessThanOrEqualTo:rt(Ha),PropertyIsGreaterThan:rt(Ha),PropertyIsGreaterThanOrEqualTo:rt(Ha),PropertyIsNull:rt(Za),PropertyIsBetween:rt(Ka),PropertyIsLike:rt(Ja)},"http://www.opengis.net/fes/2.0":{During:rt(Va),And:rt(qa),Or:rt(qa),Not:rt(Wa),BBOX:rt(Ua),Contains:rt(Ya),Disjoint:rt(Ya),Intersects:rt(Ya),ResourceId:rt(za),Within:rt(Ya),DWithin:rt(Xa),PropertyIsEqualTo:rt(Ha),PropertyIsNotEqualTo:rt(Ha),PropertyIsLessThan:rt(Ha),PropertyIsLessThanOrEqualTo:rt(Ha),PropertyIsGreaterThan:rt(Ha),PropertyIsGreaterThanOrEqualTo:rt(Ha),PropertyIsNull:rt(Za),PropertyIsBetween:rt(Ka),PropertyIsLike:rt(Ja)}};function Ga(t,e,n){var r,i,o=n[n.length-1],s=o["version"],a=o["featurePrefix"],u=o["featureNS"],c=o["propertyNames"],l=o["srsName"];r=a?Na(a,e):e,i="2.0.0"===s?"typeNames":"typeName",t.setAttribute(i,r),l&&t.setAttribute("srsName",l),u&&t.setAttributeNS(ya,"xmlns:"+a,u);var h=Object(d["a"])({},o);h.node=t,ft(h,pa,ot("PropertyName"),c,n);var f=o["filter"];if(f){var p=q(ru(s),"Filter");t.appendChild(p),Ba(p,f,n)}}function Ba(t,e,n){var r=n[n.length-1],i={node:t};Object(d["a"])(i,{context:r}),ft(i,ka,ot(e.getTagName()),[e],n)}function Ua(t,e,n){var r=n[n.length-1],i=r["context"],o=i["version"];r["srsName"]=e.srsName;var s=Ea[o];tu(o,t,e.geometryName),s.prototype.writeGeometryElement(t,e.extent,n)}function za(t,e,n){t.setAttribute("rid",e.rid)}function Ya(t,e,n){var r=n[n.length-1],i=r["context"],o=i["version"];r["srsName"]=e.srsName;var s=Ea[o];tu(o,t,e.geometryName),s.prototype.writeGeometryElement(t,e.geometry,n)}function Xa(t,e,n){var r=n[n.length-1],i=r["context"],o=i["version"];Ya(t,e,n);var s=q(ru(o),"Distance");Gt(s,e.distance.toString()),"2.0.0"===o?s.setAttribute("uom",e.unit):s.setAttribute("units",e.unit),t.appendChild(s)}function Va(t,e,n){var r=n[n.length-1],i=r["context"],o=i["version"];Qa(ma[o],"ValueReference",t,e.propertyName);var s=q(Et,"TimePeriod");t.appendChild(s);var a=q(Et,"begin");s.appendChild(a),eu(a,e.begin);var u=q(Et,"end");s.appendChild(u),eu(u,e.end)}function qa(t,e,n){var r=n[n.length-1],i=r["context"],o={node:t};Object(d["a"])(o,{context:i});for(var s=e.conditions,a=0,u=s.length;a<u;++a){var c=s[a];ft(o,ka,ot(c.getTagName()),[c],n)}}function Wa(t,e,n){var r=n[n.length-1],i=r["context"],o={node:t};Object(d["a"])(o,{context:i});var s=e.condition;ft(o,ka,ot(s.getTagName()),[s],n)}function Ha(t,e,n){var r=n[n.length-1],i=r["context"],o=i["version"];void 0!==e.matchCase&&t.setAttribute("matchCase",e.matchCase.toString()),tu(o,t,e.propertyName),$a(o,t,""+e.expression)}function Za(t,e,n){var r=n[n.length-1],i=r["context"],o=i["version"];tu(o,t,e.propertyName)}function Ka(t,e,n){var r=n[n.length-1],i=r["context"],o=i["version"],s=ru(o);tu(o,t,e.propertyName);var a=q(s,"LowerBoundary");t.appendChild(a),$a(o,a,""+e.lowerBoundary);var u=q(s,"UpperBoundary");t.appendChild(u),$a(o,u,""+e.upperBoundary)}function Ja(t,e,n){var r=n[n.length-1],i=r["context"],o=i["version"];t.setAttribute("wildCard",e.wildCard),t.setAttribute("singleChar",e.singleChar),t.setAttribute("escapeChar",e.escapeChar),void 0!==e.matchCase&&t.setAttribute("matchCase",e.matchCase.toString()),tu(o,t,e.propertyName),$a(o,t,""+e.pattern)}function Qa(t,e,n,r){var i=q(t,e);Gt(i,r),n.appendChild(i)}function $a(t,e,n){Qa(ru(t),"Literal",e,n)}function tu(t,e,n){"2.0.0"===t?Qa(ma[t],"ValueReference",e,n):Qa(va[t],"PropertyName",e,n)}function eu(t,e){var n=q(Et,"TimeInstant");t.appendChild(n);var r=q(Et,"timePosition");n.appendChild(r),Gt(r,e)}function nu(t,e,n){var r=n[n.length-1],i=Object(d["a"])({},r);i.node=t,ft(i,ka,ot("Query"),e,n)}function ru(t){var e;return e="2.0.0"===t?ma[t]:va[t],e}var iu=xa,ou=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),su={POINT:1,LINE_STRING:2,POLYGON:3,MULTI_POINT:4,MULTI_LINE_STRING:5,MULTI_POLYGON:6,GEOMETRY_COLLECTION:7,POLYHEDRAL_SURFACE:15,TIN:16,TRIANGLE:17},au=function(){function t(t){this.view_=t,this.pos_=0,this.initialized_=!1,this.isLittleEndian_=!1,this.hasZ_=!1,this.hasM_=!1,this.srid_=null,this.layout_=i["a"].XY}return t.prototype.readUint8=function(){return this.view_.getUint8(this.pos_++)},t.prototype.readUint32=function(t){return this.view_.getUint32((this.pos_+=4)-4,void 0!==t?t:this.isLittleEndian_)},t.prototype.readDouble=function(t){return this.view_.getFloat64((this.pos_+=8)-8,void 0!==t?t:this.isLittleEndian_)},t.prototype.readPoint=function(){var t=[];return t.push(this.readDouble()),t.push(this.readDouble()),this.hasZ_&&t.push(this.readDouble()),this.hasM_&&t.push(this.readDouble()),t},t.prototype.readLineString=function(){for(var t=this.readUint32(),e=[],n=0;n<t;n++)e.push(this.readPoint());return e},t.prototype.readPolygon=function(){for(var t=this.readUint32(),e=[],n=0;n<t;n++)e.push(this.readLineString());return e},t.prototype.readWkbHeader=function(t){var e=this.readUint8(),n=e>0,r=this.readUint32(n),i=Math.floor((268435455&r)/1e3),o=Boolean(2147483648&r)||1===i||3===i,s=Boolean(1073741824&r)||2===i||3===i,a=Boolean(536870912&r),u=(268435455&r)%1e3,c=["XY",o?"Z":"",s?"M":""].join(""),l=a?this.readUint32(n):null;if(void 0!==t&&t!==u)throw new Error("Unexpected WKB geometry type "+u);if(this.initialized_){if(this.isLittleEndian_!==n)throw new Error("Inconsistent endian");if(this.layout_!==c)throw new Error("Inconsistent geometry layout");if(l&&this.srid_!==l)throw new Error("Inconsistent coordinate system (SRID)")}else this.isLittleEndian_=n,this.hasZ_=o,this.hasM_=s,this.layout_=c,this.srid_=l,this.initialized_=!0;return u},t.prototype.readWkbPayload=function(t){switch(t){case su.POINT:return this.readPoint();case su.LINE_STRING:return this.readLineString();case su.POLYGON:case su.TRIANGLE:return this.readPolygon();case su.MULTI_POINT:return this.readMultiPoint();case su.MULTI_LINE_STRING:return this.readMultiLineString();case su.MULTI_POLYGON:case su.POLYHEDRAL_SURFACE:case su.TIN:return this.readMultiPolygon();case su.GEOMETRY_COLLECTION:return this.readGeometryCollection();default:throw new Error("Unsupported WKB geometry type "+t+" is found")}},t.prototype.readWkbBlock=function(t){return this.readWkbPayload(this.readWkbHeader(t))},t.prototype.readWkbCollection=function(t,e){for(var n=this.readUint32(),r=[],i=0;i<n;i++){var o=t.call(this,e);o&&r.push(o)}return r},t.prototype.readMultiPoint=function(){return this.readWkbCollection(this.readWkbBlock,su.POINT)},t.prototype.readMultiLineString=function(){return this.readWkbCollection(this.readWkbBlock,su.LINE_STRING)},t.prototype.readMultiPolygon=function(){return this.readWkbCollection(this.readWkbBlock,su.POLYGON)},t.prototype.readGeometryCollection=function(){return this.readWkbCollection(this.readGeometry)},t.prototype.readGeometry=function(){var t=this.readWkbHeader(),e=this.readWkbPayload(t);switch(t){case su.POINT:return new h["a"](e,this.layout_);case su.LINE_STRING:return new s["a"](e,this.layout_);case su.POLYGON:case su.TRIANGLE:return new f["a"](e,this.layout_);case su.MULTI_POINT:return new c["a"](e,this.layout_);case su.MULTI_LINE_STRING:return new u["a"](e,this.layout_);case su.MULTI_POLYGON:case su.POLYHEDRAL_SURFACE:case su.TIN:return new l["a"](e,this.layout_);case su.GEOMETRY_COLLECTION:return new vn["a"](e);default:return null}},t.prototype.getSrid=function(){return this.srid_},t}(),uu=function(){function t(t){t=t||{},this.layout_=t.layout,this.isLittleEndian_=!1!==t.littleEndian,this.isEWKB_=!1!==t.ewkb,this.writeQueue_=[],this.nodata_=Object(d["a"])({X:0,Y:0,Z:0,M:0},t.nodata)}return t.prototype.writeUint8=function(t){this.writeQueue_.push([1,t])},t.prototype.writeUint32=function(t){this.writeQueue_.push([4,t])},t.prototype.writeDouble=function(t){this.writeQueue_.push([8,t])},t.prototype.writePoint=function(t,e){for(var n=d["a"].apply(null,e.split("").map((function(e,n){var r;return r={},r[e]=t[n],r}))),r=0,i=this.layout_;r<i.length;r++){var o=i[r];this.writeDouble(o in n?n[o]:this.nodata_[o])}},t.prototype.writeLineString=function(t,e){this.writeUint32(t.length);for(var n=0;n<t.length;n++)this.writePoint(t[n],e)},t.prototype.writePolygon=function(t,e){this.writeUint32(t.length);for(var n=0;n<t.length;n++)this.writeLineString(t[n],e)},t.prototype.writeWkbHeader=function(t,e){t%=1e3,this.layout_.indexOf("Z")>=0&&(t+=this.isEWKB_?2147483648:1e3),this.layout_.indexOf("M")>=0&&(t+=this.isEWKB_?1073741824:2e3),this.isEWKB_&&Number.isInteger(e)&&(t|=536870912),this.writeUint8(this.isLittleEndian_?1:0),this.writeUint32(t),this.isEWKB_&&Number.isInteger(e)&&this.writeUint32(e)},t.prototype.writeMultiPoint=function(t,e){this.writeUint32(t.length);for(var n=0;n<t.length;n++)this.writeWkbHeader(1),this.writePoint(t[n],e)},t.prototype.writeMultiLineString=function(t,e){this.writeUint32(t.length);for(var n=0;n<t.length;n++)this.writeWkbHeader(2),this.writeLineString(t[n],e)},t.prototype.writeMultiPolygon=function(t,e){this.writeUint32(t.length);for(var n=0;n<t.length;n++)this.writeWkbHeader(3),this.writePolygon(t[n],e)},t.prototype.writeGeometryCollection=function(t){this.writeUint32(t.length);for(var e=0;e<t.length;e++)this.writeGeometry(t[e])},t.prototype.findMinimumLayout=function(t,e){void 0===e&&(e=i["a"].XYZM);var n=function(t,e){return t===e?t:t===i["a"].XYZM?e:e===i["a"].XYZM?t:i["a"].XY};if(t instanceof Xo["a"])return n(t.getLayout(),e);if(t instanceof vn["a"])for(var r=t.getGeometriesArray(),o=0;o<r.length&&e!==i["a"].XY;o++)e=this.findMinimumLayout(r[o],e);return e},t.prototype.writeGeometry=function(t,e){var n={Point:su.POINT,LineString:su.LINE_STRING,Polygon:su.POLYGON,MultiPoint:su.MULTI_POINT,MultiLineString:su.MULTI_LINE_STRING,MultiPolygon:su.MULTI_POLYGON,GeometryCollection:su.GEOMETRY_COLLECTION},r=t.getType(),i=n[r];if(!i)throw new Error("GeometryType "+r+" is not supported");if(this.layout_||(this.layout_=this.findMinimumLayout(t)),this.writeWkbHeader(i,e),t instanceof Xo["a"]){var o={Point:this.writePoint,LineString:this.writeLineString,Polygon:this.writePolygon,MultiPoint:this.writeMultiPoint,MultiLineString:this.writeMultiLineString,MultiPolygon:this.writeMultiPolygon};o[r].call(this,t.getCoordinates(),t.getLayout())}else t instanceof vn["a"]&&this.writeGeometryCollection(t.getGeometriesArray())},t.prototype.getBuffer=function(){var t=this,e=this.writeQueue_.reduce((function(t,e){return t+e[0]}),0),n=new ArrayBuffer(e),r=new DataView(n),i=0;return this.writeQueue_.forEach((function(e){switch(e[0]){case 1:r.setUint8(i,e[1]);break;case 4:r.setUint32(i,e[1],t.isLittleEndian_);break;case 8:r.setFloat64(i,e[1],t.isLittleEndian_);break;default:break}i+=e[0]})),n},t}(),cu=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.splitCollection=Boolean(r.splitCollection),n.viewCache_=null,n.hex_=!1!==r.hex,n.littleEndian_=!1!==r.littleEndian,n.ewkb_=!1!==r.ewkb,n.layout_=r.geometryLayout,n.nodataZ_=r.nodataZ||0,n.nodataM_=r.nodataM||0,n.srid_=r.srid,n}return ou(e,t),e.prototype.getType=function(){return this.hex_?"text":"arraybuffer"},e.prototype.readFeature=function(t,e){return new r["a"]({geometry:this.readGeometry(t,e)})},e.prototype.readFeatures=function(t,e){var n=[],i=this.readGeometry(t,e);return n=this.splitCollection&&i instanceof vn["a"]?i.getGeometriesArray():[i],n.map((function(t){return new r["a"]({geometry:t})}))},e.prototype.readGeometry=function(t,e){var n=fu(t);if(!n)return null;var r=new au(n),i=r.readGeometry();this.viewCache_=n;var o=this.getReadOptions(t,e);return this.viewCache_=null,Object(m["c"])(i,!1,o)},e.prototype.readProjection=function(t){var e=this.viewCache_||fu(t);if(e){var n=new au(e);return n.readWkbHeader(),n.getSrid()&&Object(v["h"])("EPSG:"+n.getSrid())||void 0}},e.prototype.writeFeature=function(t,e){return this.writeGeometry(t.getGeometry(),e)},e.prototype.writeFeatures=function(t,e){return this.writeGeometry(new vn["a"](t.map((function(t){return t.getGeometry()}))),e)},e.prototype.writeGeometry=function(t,e){var n=this.adaptOptions(e),r=new uu({layout:this.layout_,littleEndian:this.littleEndian_,ewkb:this.ewkb_,nodata:{Z:this.nodataZ_,M:this.nodataM_}}),i=Number.isInteger(this.srid_)?Number(this.srid_):null;if(!1!==this.srid_&&!Number.isInteger(this.srid_)){var o=n.dataProjection&&Object(v["h"])(n.dataProjection);if(o){var s=o.getCode();0===s.indexOf("EPSG:")&&(i=Number(s.substring(5)))}}r.writeGeometry(Object(m["c"])(t,!0,n),i);var a=r.getBuffer();return this.hex_?lu(a):a},e}(m["a"]);function lu(t){var e=new Uint8Array(t);return Array.from(e.values()).map((function(t){return(t<16?"0":"")+Number(t).toString(16).toUpperCase()})).join("")}function hu(t){for(var e=new Uint8Array(t.length/2),n=0;n<t.length/2;n++)e[n]=parseInt(t.substr(2*n,2),16);return new DataView(e.buffer)}function fu(t){return"string"===typeof t?hu(t):ArrayBuffer.isView(t)?t instanceof DataView?t:new DataView(t.buffer,t.byteOffset,t.byteLength):t instanceof ArrayBuffer?new DataView(t):null}var pu=cu,du=n("64d9"),gu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yu=[null,"http://www.opengis.net/wms"],vu=ut(yu,{Service:nt(Gu),Capability:nt(ku)}),_u=ut(yu,{Request:nt(Hu),Exception:nt(Yu),Layer:nt(Xu)}),mu=function(t){function e(){var e=t.call(this)||this;return e.version=void 0,e}return gu(e,t),e.prototype.readFromNode=function(t){this.version=t.getAttribute("version").trim();var e=lt({version:this.version},vu,t,[]);return e||null},e}(ao),bu=ut(yu,{Name:nt(Nt),Title:nt(Nt),Abstract:nt(Nt),KeywordList:nt(nc),OnlineResource:nt(co),ContactInformation:nt(Bu),Fees:nt(Nt),AccessConstraints:nt(Nt),LayerLimit:nt(Lt),MaxWidth:nt(Lt),MaxHeight:nt(Lt)}),Eu=ut(yu,{ContactPersonPrimary:nt(Uu),ContactPosition:nt(Nt),ContactAddress:nt(zu),ContactVoiceTelephone:nt(Nt),ContactFacsimileTelephone:nt(Nt),ContactElectronicMailAddress:nt(Nt)}),wu=ut(yu,{ContactPerson:nt(Nt),ContactOrganization:nt(Nt)}),xu=ut(yu,{AddressType:nt(Nt),Address:nt(Nt),City:nt(Nt),StateOrProvince:nt(Nt),PostCode:nt(Nt),Country:nt(Nt)}),Ou=ut(yu,{Format:$(Nt)}),Su=ut(yu,{Name:nt(Nt),Title:nt(Nt),Abstract:nt(Nt),KeywordList:nt(nc),CRS:et(Nt),EX_GeographicBoundingBox:nt(Du),BoundingBox:et(ju),Dimension:et(qu),Attribution:nt(Fu),AuthorityURL:et($u),Identifier:et(Nt),MetadataURL:et(tc),DataURL:et(Wu),FeatureListURL:et(Wu),Style:et(ec),MinScaleDenominator:nt(Rt),MaxScaleDenominator:nt(Rt),Layer:et(Vu)}),Cu=ut(yu,{Title:nt(Nt),OnlineResource:nt(co),LogoURL:nt(Qu)}),Iu=ut(yu,{westBoundLongitude:nt(Rt),eastBoundLongitude:nt(Rt),southBoundLatitude:nt(Rt),northBoundLatitude:nt(Rt)}),Pu=ut(yu,{GetCapabilities:nt(Ju),GetMap:nt(Ju),GetFeatureInfo:nt(Ju)}),Ru=ut(yu,{Format:et(Nt),DCPType:et(Zu)}),Tu=ut(yu,{HTTP:nt(Ku)}),Lu=ut(yu,{Get:nt(Wu),Post:nt(Wu)}),Mu=ut(yu,{Name:nt(Nt),Title:nt(Nt),Abstract:nt(Nt),LegendURL:et(Qu),StyleSheetURL:nt(Wu),StyleURL:nt(Wu)}),Nu=ut(yu,{Format:nt(Nt),OnlineResource:nt(co)}),Au=ut(yu,{Keyword:$(Nt)});function Fu(t,e){return lt({},Cu,t,e)}function ju(t,e){var n=[Tt(t.getAttribute("minx")),Tt(t.getAttribute("miny")),Tt(t.getAttribute("maxx")),Tt(t.getAttribute("maxy"))],r=[Tt(t.getAttribute("resx")),Tt(t.getAttribute("resy"))];return{crs:t.getAttribute("CRS"),extent:n,res:r}}function Du(t,e){var n=lt({},Iu,t,e);if(n){var r=n["westBoundLongitude"],i=n["southBoundLatitude"],o=n["eastBoundLongitude"],s=n["northBoundLatitude"];if(void 0!==r&&void 0!==i&&void 0!==o&&void 0!==s)return[r,i,o,s]}}function ku(t,e){return lt({},_u,t,e)}function Gu(t,e){return lt({},bu,t,e)}function Bu(t,e){return lt({},Eu,t,e)}function Uu(t,e){return lt({},wu,t,e)}function zu(t,e){return lt({},xu,t,e)}function Yu(t,e){return lt([],Ou,t,e)}function Xu(t,e){var n=lt({},Su,t,e);return void 0===n["Layer"]?Object.assign(n,Vu(t,e)):n}function Vu(t,e){var n=e[e.length-1],r=lt({},Su,t,e);if(r){var i=It(t.getAttribute("queryable"));void 0===i&&(i=n["queryable"]),r["queryable"]=void 0!==i&&i;var o=Mt(t.getAttribute("cascaded"));void 0===o&&(o=n["cascaded"]),r["cascaded"]=o;var s=It(t.getAttribute("opaque"));void 0===s&&(s=n["opaque"]),r["opaque"]=void 0!==s&&s;var a=It(t.getAttribute("noSubsets"));void 0===a&&(a=n["noSubsets"]),r["noSubsets"]=void 0!==a&&a;var u=Tt(t.getAttribute("fixedWidth"));u||(u=n["fixedWidth"]),r["fixedWidth"]=u;var c=Tt(t.getAttribute("fixedHeight"));c||(c=n["fixedHeight"]),r["fixedHeight"]=c;var l=["Style","CRS","AuthorityURL"];l.forEach((function(t){if(t in n){var e=r[t]||[];r[t]=e.concat(n[t])}}));var h=["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"];return h.forEach((function(t){if(!(t in r)){var e=n[t];r[t]=e}})),r}}function qu(t,e){var n={name:t.getAttribute("name"),units:t.getAttribute("units"),unitSymbol:t.getAttribute("unitSymbol"),default:t.getAttribute("default"),multipleValues:It(t.getAttribute("multipleValues")),nearestValue:It(t.getAttribute("nearestValue")),current:It(t.getAttribute("current")),values:Nt(t)};return n}function Wu(t,e){return lt({},Nu,t,e)}function Hu(t,e){return lt({},Pu,t,e)}function Zu(t,e){return lt({},Tu,t,e)}function Ku(t,e){return lt({},Lu,t,e)}function Ju(t,e){return lt({},Ru,t,e)}function Qu(t,e){var n=Wu(t,e);if(n){var r=[Mt(t.getAttribute("width")),Mt(t.getAttribute("height"))];return n["size"]=r,n}}function $u(t,e){var n=Wu(t,e);if(n)return n["name"]=t.getAttribute("name"),n}function tc(t,e){var n=Wu(t,e);if(n)return n["type"]=t.getAttribute("type"),n}function ec(t,e){return lt({},Mu,t,e)}function nc(t,e){return lt([],Au,t,e)}var rc=mu,ic=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oc="_feature",sc="_layer",ac=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.featureNS_="http://mapserver.gis.umn.edu/mapserver",n.gmlFormat_=new Xt,n.layers_=r.layers?r.layers:null,n}return ic(e,t),e.prototype.getLayers=function(){return this.layers_},e.prototype.setLayers=function(t){this.layers_=t},e.prototype.readFeatures_=function(t,e){t.setAttribute("namespaceURI",this.featureNS_);var n=t.localName,r=[];if(0===t.childNodes.length)return r;if("msGMLOutput"==n)for(var i=0,o=t.childNodes.length;i<o;i++){var s=t.childNodes[i];if(s.nodeType===Node.ELEMENT_NODE){var a=s,u=e[0],c=sc,l=a.localName.replace(c,"");if(!this.layers_||Object(X["f"])(this.layers_,l)){var h=l+oc;u["featureType"]=h,u["featureNS"]=this.featureNS_;var f={};f[h]=$(this.gmlFormat_.readFeatureElement,this.gmlFormat_);var p=ut([u["featureNS"],null],f);a.setAttribute("namespaceURI",this.featureNS_);var d=lt([],p,a,e,this.gmlFormat_);d&&Object(X["c"])(r,d)}}}if("FeatureCollection"==n){var g=lt([],this.gmlFormat_.FEATURE_COLLECTION_PARSERS,t,[{}],this.gmlFormat_);g&&(r=g)}return r},e.prototype.readFeaturesFromNode=function(t,e){var n={};return e&&Object(d["a"])(n,this.getReadOptions(t,e)),this.readFeatures_(t,[n])},e}(mt),uc=ac,cc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lc=[null,"http://www.opengis.net/wmts/1.0"],hc=[null,"http://www.opengis.net/ows/1.1"],fc=ut(lc,{Contents:nt(Oc)}),pc=function(t){function e(){var e=t.call(this)||this;return e.owsParser_=new zo,e}return cc(e,t),e.prototype.readFromNode=function(t){var e=t.getAttribute("version");e&&(e=e.trim());var n=this.owsParser_.readFromNode(t);return n?(n["version"]=e,n=lt(n,fc,t,[]),n||null):null},e}(ao),dc=ut(lc,{Layer:et(Sc),TileMatrixSet:et(Cc)}),gc=ut(lc,{Style:et(Ic),Format:et(Nt),TileMatrixSetLink:et(Pc),Dimension:et(Rc),ResourceURL:et(Tc)},ut(hc,{Title:nt(Nt),Abstract:nt(Nt),WGS84BoundingBox:nt(Lc),Identifier:nt(Nt)})),yc=ut(lc,{LegendURL:et(Mc)},ut(hc,{Title:nt(Nt),Identifier:nt(Nt)})),vc=ut(lc,{TileMatrixSet:nt(Nt),TileMatrixSetLimits:nt(Fc)}),_c=ut(lc,{TileMatrixLimits:$(jc)}),mc=ut(lc,{TileMatrix:nt(Nt),MinTileRow:nt(Lt),MaxTileRow:nt(Lt),MinTileCol:nt(Lt),MaxTileCol:nt(Lt)}),bc=ut(lc,{Default:nt(Nt),Value:et(Nt)},ut(hc,{Identifier:nt(Nt)})),Ec=ut(hc,{LowerCorner:$(Nc),UpperCorner:$(Nc)}),wc=ut(lc,{WellKnownScaleSet:nt(Nt),TileMatrix:et(Ac)},ut(hc,{SupportedCRS:nt(Nt),Identifier:nt(Nt),BoundingBox:nt(Lc)})),xc=ut(lc,{TopLeftCorner:nt(Nc),ScaleDenominator:nt(Rt),TileWidth:nt(Lt),TileHeight:nt(Lt),MatrixWidth:nt(Lt),MatrixHeight:nt(Lt)},ut(hc,{Identifier:nt(Nt)}));function Oc(t,e){return lt({},dc,t,e)}function Sc(t,e){return lt({},gc,t,e)}function Cc(t,e){return lt({},wc,t,e)}function Ic(t,e){var n=lt({},yc,t,e);if(n){var r="true"===t.getAttribute("isDefault");return n["isDefault"]=r,n}}function Pc(t,e){return lt({},vc,t,e)}function Rc(t,e){return lt({},bc,t,e)}function Tc(t,e){var n=t.getAttribute("format"),r=t.getAttribute("template"),i=t.getAttribute("resourceType"),o={};return n&&(o["format"]=n),r&&(o["template"]=r),i&&(o["resourceType"]=i),o}function Lc(t,e){var n=lt([],Ec,t,e);if(2==n.length)return Object(g["b"])(n)}function Mc(t,e){var n={};return n["format"]=t.getAttribute("format"),n["href"]=co(t),n}function Nc(t,e){var n=Nt(t).split(/\s+/);if(n&&2==n.length){var r=+n[0],i=+n[1];if(!isNaN(r)&&!isNaN(i))return[r,i]}}function Ac(t,e){return lt({},xc,t,e)}function Fc(t,e){return lt([],_c,t,e)}function jc(t,e){return lt({},mc,t,e)}var Dc=pc},"29f6":function(t,e,n){"use strict";e["a"]={POINT:"point",LINE:"line"}},"2a66":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},t.pad.ZeroPadding}))},"2b79":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("df2f"),n("5980"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.Base,i=n.WordArray,o=e.algo,s=o.MD5,a=o.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:s,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var n,r=this.cfg,o=r.hasher.create(),s=i.create(),a=s.words,u=r.keySize,c=r.iterations;while(a.length<u){n&&o.update(n),n=o.update(t).finalize(e),o.reset();for(var l=1;l<c;l++)n=o.finalize(n),o.reset();s.concat(n)}return s.sigBytes=4*u,s}});e.EvpKDF=function(t,e,n){return a.create(n).compute(t,e)}}(),t.EvpKDF}))},"2ba4":function(t,e,n){var r=n("40d5"),i=Function.prototype,o=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(o):function(){return s.apply(o,arguments)})},"2c30":function(t,e,n){"use strict";function r(t,e,n,r){return void 0!==r?(r[0]=t,r[1]=e,r[2]=n,r):[t,e,n]}function i(t,e,n){return t+"/"+e+"/"+n}function o(t){return i(t[0],t[1],t[2])}function s(t){return t.split("/").map(Number)}function a(t){return(t[1]<<t[0])+t[2]}function u(t,e){var n=t[0],r=t[1],i=t[2];if(e.getMinZoom()>n||n>e.getMaxZoom())return!1;var o=e.getFullTileRange(n);return!o||o.containsXY(r,i)}n.d(e,"a",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return u}))},"2ce2":function(t,e,n){"use strict";var r=n("e300"),i=n("183a"),o=n("cef7"),s=n("4334"),a=n("3e6b"),u=n("57cb"),c=n("38f3"),l=n("6c77"),h=n("9f5e"),f=n("1300"),p=n("06f8"),d=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g={SELECT:"select"},y=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.selected=n,o.deselected=r,o.mapBrowserEvent=i,o}return d(e,t),e}(o["a"]),v={},_=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var i,o=e||{};if(n.boundAddFeature_=n.addFeature_.bind(n),n.boundRemoveFeature_=n.removeFeature_.bind(n),n.condition_=o.condition?o.condition:p["k"],n.addCondition_=o.addCondition?o.addCondition:p["g"],n.removeCondition_=o.removeCondition?o.removeCondition:p["g"],n.toggleCondition_=o.toggleCondition?o.toggleCondition:p["j"],n.multi_=!!o.multi&&o.multi,n.filter_=o.filter?o.filter:u["b"],n.hitTolerance_=o.hitTolerance?o.hitTolerance:0,n.style_=void 0!==o.style?o.style:m(),n.features_=o.features||new r["a"],o.layers)if("function"===typeof o.layers)i=o.layers;else{var s=o.layers;i=function(t){return Object(h["f"])(s,t)}}else i=u["b"];return n.layerFilter_=i,n.featureLayerAssociation_={},n}return d(e,t),e.prototype.addFeatureLayerAssociation_=function(t,e){this.featureLayerAssociation_[Object(f["c"])(t)]=e},e.prototype.getFeatures=function(){return this.features_},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.getLayer=function(t){return this.featureLayerAssociation_[Object(f["c"])(t)]},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(e){var n=this.getMap();n&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),t.prototype.setMap.call(this,e),e?(this.features_.addEventListener(i["a"].ADD,this.boundAddFeature_),this.features_.addEventListener(i["a"].REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(i["a"].ADD,this.boundAddFeature_),this.features_.removeEventListener(i["a"].REMOVE,this.boundRemoveFeature_))},e.prototype.addFeature_=function(t){var e=t.element;if(this.style_&&this.applySelectedStyle_(e),!this.getLayer(e)){var n=this.getMap().getAllLayers().find((function(t){if(t instanceof a["a"]&&t.getSource()&&t.getSource().hasFeature(e))return t}));n&&this.addFeatureLayerAssociation_(e,n)}},e.prototype.removeFeature_=function(t){var e=t.element;this.style_&&this.restorePreviousStyle_(e)},e.prototype.getStyle=function(){return this.style_},e.prototype.applySelectedStyle_=function(t){var e=Object(f["c"])(t);e in v||(v[e]=t.getStyle()),t.setStyle(this.style_)},e.prototype.restorePreviousStyle_=function(t){for(var n=this.getMap().getInteractions().getArray(),r=n.length-1;r>=0;--r){var i=n[r];if(i!==this&&i instanceof e&&i.getStyle()&&-1!==i.getFeatures().getArray().lastIndexOf(t))return void t.setStyle(i.getStyle())}var o=Object(f["c"])(t);t.setStyle(v[o]),delete v[o]},e.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[Object(f["c"])(t)]},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=this.addCondition_(t),n=this.removeCondition_(t),r=this.toggleCondition_(t),i=!e&&!n&&!r,o=t.map,s=this.getFeatures(),a=[],u=[];if(i){Object(c["b"])(this.featureLayerAssociation_),o.forEachFeatureAtPixel(t.pixel,function(t,e){if(this.filter_(t,e))return this.addFeatureLayerAssociation_(t,e),u.push(t),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var l=s.getLength()-1;l>=0;--l){var f=s.item(l),p=u.indexOf(f);p>-1?u.splice(p,1):(s.remove(f),a.push(f))}0!==u.length&&s.extend(u)}else{o.forEachFeatureAtPixel(t.pixel,function(t,i){if(this.filter_(t,i))return!e&&!r||Object(h["f"])(s.getArray(),t)?(n||r)&&Object(h["f"])(s.getArray(),t)&&(a.push(t),this.removeFeatureLayerAssociation_(t)):(this.addFeatureLayerAssociation_(t,i),u.push(t)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var d=a.length-1;d>=0;--d)s.remove(a[d]);s.extend(u)}return(u.length>0||a.length>0)&&this.dispatchEvent(new y(g.SELECT,u,a,t)),!0},e}(s["a"]);function m(){var t=Object(l["b"])();return Object(h["c"])(t["Polygon"],t["LineString"]),Object(h["c"])(t["GeometryCollection"],t["LineString"]),function(e){return e.getGeometry()?t[e.getGeometry().getType()]:null}}e["a"]=_},"2d00":function(t,e,n){var r,i,o=n("da84"),s=n("342f"),a=o.process,u=o.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(r=l.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(r=s.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},"2ef1":function(t,e,n){"use strict";var r=n("91b1"),i=n("089b"),o=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(t){function e(e){var n=this,r=e||{},o=void 0===r.imageSmoothing||r.imageSmoothing;void 0!==r.interpolate&&(o=r.interpolate);var s=void 0!==r.projection?r.projection:"EPSG:3857",a=void 0!==r.tileGrid?r.tileGrid:Object(i["a"])({extent:Object(i["b"])(s),maxResolution:r.maxResolution,maxZoom:r.maxZoom,minZoom:r.minZoom,tileSize:r.tileSize});return n=t.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,interpolate:o,opaque:r.opaque,projection:s,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileGrid:a,tileLoadFunction:r.tileLoadFunction,tilePixelRatio:r.tilePixelRatio,tileUrlFunction:r.tileUrlFunction,url:r.url,urls:r.urls,wrapX:void 0===r.wrapX||r.wrapX,transition:r.transition,attributionsCollapsible:r.attributionsCollapsible,zDirection:r.zDirection})||this,n.gutter_=void 0!==r.gutter?r.gutter:0,n}return o(e,t),e.prototype.getGutter=function(){return this.gutter_},e}(r["a"]);e["a"]=s},"2efc":function(t,e,n){"use strict";var r,i=n("a504"),o=n("01d4"),s=n("5e31"),a=n("acc1"),u=n("0af5"),c=n("256f"),l=n("7fc9"),h=10,f=.25,p=function(){function t(t,e,n,r,i,o){this.sourceProj_=t,this.targetProj_=e;var s={},a=Object(c["j"])(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return s[e]||(s[e]=a(t)),s[e]},this.maxSourceExtent_=r,this.errorThresholdSquared_=i*i,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&Object(u["E"])(r)==Object(u["E"])(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(u["E"])(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(u["E"])(this.targetProj_.getExtent()):null;var f=Object(u["C"])(n),p=Object(u["D"])(n),d=Object(u["v"])(n),g=Object(u["u"])(n),y=this.transformInv_(f),v=this.transformInv_(p),_=this.transformInv_(d),m=this.transformInv_(g),b=h+(o?Math.max(0,Math.ceil(Object(l["f"])(Object(u["t"])(n)/(o*o*256*256)))):0);if(this.addQuad_(f,p,d,g,y,v,_,m,b),this.wrapsXInSource_){var E=1/0;this.triangles_.forEach((function(t,e,n){E=Math.min(E,t.source[0][0],t.source[1][0],t.source[2][0])})),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-E>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-E>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-E>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-E>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var n=Math.min(e[0][0],e[1][0],e[2][0]),r=Math.max(e[0][0],e[1][0],e[2][0]);r-n<this.sourceWorldWidth_/2&&(t.source=e)}}.bind(this))}s={}}return t.prototype.addTriangle_=function(t,e,n,r,i,o){this.triangles_.push({source:[r,i,o],target:[t,e,n]})},t.prototype.addQuad_=function(t,e,n,r,i,o,s,a,c){var h=Object(u["b"])([i,o,s,a]),p=this.sourceWorldWidth_?Object(u["E"])(h)/this.sourceWorldWidth_:null,d=this.sourceWorldWidth_,g=this.sourceProj_.canWrapX()&&p>.5&&p<1,y=!1;if(c>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var v=Object(u["b"])([t,e,n,r]),_=Object(u["E"])(v)/this.targetWorldWidth_;y=_>f||y}!g&&this.sourceProj_.isGlobal()&&p&&(y=p>f||y)}if(!(!y&&this.maxSourceExtent_&&isFinite(h[0])&&isFinite(h[1])&&isFinite(h[2])&&isFinite(h[3]))||Object(u["F"])(h,this.maxSourceExtent_)){var m=0;if(!y&&(!isFinite(i[0])||!isFinite(i[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(s[0])||!isFinite(s[1])||!isFinite(a[0])||!isFinite(a[1])))if(c>0)y=!0;else if(m=(isFinite(i[0])&&isFinite(i[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(s[0])&&isFinite(s[1])?0:2)+(isFinite(a[0])&&isFinite(a[1])?0:1),1!=m&&2!=m&&4!=m&&8!=m)return;if(c>0){if(!y){var b=[(t[0]+n[0])/2,(t[1]+n[1])/2],E=this.transformInv_(b),w=void 0;if(g){var x=(Object(l["g"])(i[0],d)+Object(l["g"])(s[0],d))/2;w=x-Object(l["g"])(E[0],d)}else w=(i[0]+s[0])/2-E[0];var O=(i[1]+s[1])/2-E[1],S=w*w+O*O;y=S>this.errorThresholdSquared_}if(y){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){var C=[(e[0]+n[0])/2,(e[1]+n[1])/2],I=this.transformInv_(C),P=[(r[0]+t[0])/2,(r[1]+t[1])/2],R=this.transformInv_(P);this.addQuad_(t,e,C,P,i,o,I,R,c-1),this.addQuad_(P,C,n,r,R,I,s,a,c-1)}else{var T=[(t[0]+e[0])/2,(t[1]+e[1])/2],L=this.transformInv_(T),M=[(n[0]+r[0])/2,(n[1]+r[1])/2],N=this.transformInv_(M);this.addQuad_(t,T,M,r,i,L,N,a,c-1),this.addQuad_(T,e,n,M,L,o,s,N,c-1)}return}}if(g){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&m)&&this.addTriangle_(t,n,r,i,s,a),0==(14&m)&&this.addTriangle_(t,n,e,i,s,o),m&&(0==(13&m)&&this.addTriangle_(e,r,t,o,a,i),0==(7&m)&&this.addTriangle_(e,r,n,o,a,s))}},t.prototype.calculateSourceExtent=function(){var t=Object(u["j"])();return this.triangles_.forEach((function(e,n,r){var i=e.source;Object(u["q"])(t,i[0]),Object(u["q"])(t,i[1]),Object(u["q"])(t,i[2])})),t},t.prototype.getTriangles=function(){return this.triangles_},t}(),d=p,g=n("0b0e"),y=n("38f3"),v=n("0999"),_=[];function m(t,e,n,r,i){t.beginPath(),t.moveTo(0,0),t.lineTo(e,n),t.lineTo(r,i),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,r)+1,Math.max(n,i)),t.restore()}function b(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function E(){if(void 0===r){var t=document.createElement("canvas").getContext("2d");t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",m(t,4,5,4,0),m(t,4,5,0,5);var e=t.getImageData(0,0,3,3).data;r=b(e,0)||b(e,4)||b(e,8)}return r}function w(t,e,n,r){var i=Object(c["p"])(n,e,t),o=Object(c["i"])(e,r,n),s=e.getMetersPerUnit();void 0!==s&&(o*=s);var a=t.getMetersPerUnit();void 0!==a&&(o/=a);var l=t.getExtent();if(!l||Object(u["f"])(l,i)){var h=Object(c["i"])(t,o,i)/o;isFinite(h)&&h>0&&(o/=h)}return o}function x(t,e,n,r){var i=Object(u["w"])(n),o=w(t,e,i,r);return(!isFinite(o)||o<=0)&&Object(u["s"])(n,(function(n){return o=w(t,e,n,r),isFinite(o)&&o>0})),o}function O(t,e,n,r,i,o,s,a,c,h,f,p){var d=Object(v["a"])(Math.round(n*t),Math.round(n*e),_);if(p||Object(y["a"])(d,g["a"]),0===c.length)return d.canvas;function m(t){return Math.round(t*n)/n}d.scale(n,n),d.globalCompositeOperation="lighter";var b=Object(u["j"])();c.forEach((function(t,e,n){Object(u["p"])(b,t.extent)}));var w=Object(u["E"])(b),x=Object(u["z"])(b),O=Object(v["a"])(Math.round(n*w/r),Math.round(n*x/r));p||Object(y["a"])(O,g["a"]);var S=n/r;c.forEach((function(t,e,n){var r=t.extent[0]-b[0],i=-(t.extent[3]-b[3]),o=Object(u["E"])(t.extent),s=Object(u["z"])(t.extent);t.image.width>0&&t.image.height>0&&O.drawImage(t.image,h,h,t.image.width-2*h,t.image.height-2*h,r*S,i*S,o*S,s*S)}));var C=Object(u["C"])(s);return a.getTriangles().forEach((function(t,e,i){var s=t.source,a=t.target,u=s[0][0],c=s[0][1],h=s[1][0],f=s[1][1],g=s[2][0],y=s[2][1],v=m((a[0][0]-C[0])/o),_=m(-(a[0][1]-C[1])/o),w=m((a[1][0]-C[0])/o),x=m(-(a[1][1]-C[1])/o),S=m((a[2][0]-C[0])/o),I=m(-(a[2][1]-C[1])/o),P=u,R=c;u=0,c=0,h-=P,f-=R,g-=P,y-=R;var T=[[h,f,0,0,w-v],[g,y,0,0,S-v],[0,0,h,f,x-_],[0,0,g,y,I-_]],L=Object(l["h"])(T);if(L){if(d.save(),d.beginPath(),E()||!p){d.moveTo(w,x);for(var M=4,N=v-w,A=_-x,F=0;F<M;F++)d.lineTo(w+m((F+1)*N/M),x+m(F*A/(M-1))),F!=M-1&&d.lineTo(w+m((F+1)*N/M),x+m((F+1)*A/(M-1)));d.lineTo(S,I)}else d.moveTo(w,x),d.lineTo(v,_),d.lineTo(S,I);d.clip(),d.transform(L[0],L[2],L[1],L[3],v,_),d.translate(b[0]-P,b[3]-R),d.scale(r/n,-r/n),d.drawImage(O.canvas,0,0),d.restore()}})),f&&(d.save(),d.globalCompositeOperation="source-over",d.strokeStyle="black",d.lineWidth=1,a.getTriangles().forEach((function(t,e,n){var r=t.target,i=(r[0][0]-C[0])/o,s=-(r[0][1]-C[1])/o,a=(r[1][0]-C[0])/o,u=-(r[1][1]-C[1])/o,c=(r[2][0]-C[0])/o,l=-(r[2][1]-C[1])/o;d.beginPath(),d.moveTo(a,u),d.lineTo(i,s),d.lineTo(c,l),d.closePath(),d.stroke()})),d.restore()),d.canvas}var S=n("1e8d"),C=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),I=function(t){function e(e,n,r,o,s,c,h,f,p,g,y,v){var _=t.call(this,s,a["a"].IDLE,{interpolate:!!v})||this;_.renderEdges_=void 0!==y&&y,_.pixelRatio_=h,_.gutter_=f,_.canvas_=null,_.sourceTileGrid_=n,_.targetTileGrid_=o,_.wrappedTileCoord_=c||s,_.sourceTiles_=[],_.sourcesListenerKeys_=null,_.sourceZ_=0;var m=o.getTileCoordExtent(_.wrappedTileCoord_),b=_.targetTileGrid_.getExtent(),E=_.sourceTileGrid_.getExtent(),w=b?Object(u["A"])(m,b):m;if(0===Object(u["t"])(w))return _.state=a["a"].EMPTY,_;var O=e.getExtent();O&&(E=E?Object(u["A"])(E,O):O);var S=o.getResolution(_.wrappedTileCoord_[0]),C=x(e,r,w,S);if(!isFinite(C)||C<=0)return _.state=a["a"].EMPTY,_;var I=void 0!==g?g:i["b"];if(_.triangulation_=new d(e,r,w,E,C*I,S),0===_.triangulation_.getTriangles().length)return _.state=a["a"].EMPTY,_;_.sourceZ_=n.getZForResolution(C);var P=_.triangulation_.calculateSourceExtent();if(E&&(e.canWrapX()?(P[1]=Object(l["b"])(P[1],E[1],E[3]),P[3]=Object(l["b"])(P[3],E[1],E[3])):P=Object(u["A"])(P,E)),Object(u["t"])(P)){for(var R=n.getTileRangeForExtentAndZ(P,_.sourceZ_),T=R.minX;T<=R.maxX;T++)for(var L=R.minY;L<=R.maxY;L++){var M=p(_.sourceZ_,T,L,h);M&&_.sourceTiles_.push(M)}0===_.sourceTiles_.length&&(_.state=a["a"].EMPTY)}else _.state=a["a"].EMPTY;return _}return C(e,t),e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,n,r){e&&e.getState()==a["a"].LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=a["a"].ERROR;else{var e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),r="number"===typeof n?n:n[0],i="number"===typeof n?n:n[1],o=this.targetTileGrid_.getResolution(e),s=this.sourceTileGrid_.getResolution(this.sourceZ_),u=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=O(r,i,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),o,u,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=a["a"].LOADED}this.changed()},e.prototype.load=function(){if(this.state==a["a"].IDLE){this.state=a["a"].LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,n,r){var i=e.getState();if(i==a["a"].IDLE||i==a["a"].LOADING){t++;var s=Object(S["a"])(e,o["a"].CHANGE,(function(n){var r=e.getState();r!=a["a"].LOADED&&r!=a["a"].ERROR&&r!=a["a"].EMPTY||(Object(S["c"])(s),t--,0===t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(s)}}.bind(this)),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(t,e,n){var r=t.getState();r==a["a"].IDLE&&t.load()}))}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(S["c"]),this.sourcesListenerKeys_=null},e.prototype.release=function(){this.canvas_&&(Object(v["d"])(this.canvas_.getContext("2d")),_.push(this.canvas_),this.canvas_=null),t.prototype.release.call(this)},e}(s["a"]);e["a"]=I},"30d1":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return h}));var r=n("869f"),i=n("1300"),o=.5,s={Point:_,LineString:g,Polygon:b,MultiPoint:m,MultiLineString:y,MultiPolygon:v,GeometryCollection:d,Circle:l};function a(t,e){return parseInt(Object(i["c"])(t),10)-parseInt(Object(i["c"])(e),10)}function u(t,e){var n=c(t,e);return n*n}function c(t,e){return o*t/e}function l(t,e,n,r,i){var o=n.getFill(),s=n.getStroke();if(o||s){var a=t.getBuilder(n.getZIndex(),"Circle");a.setFillStrokeStyle(o,s),a.drawCircle(e,r)}var u=n.getText();if(u&&u.getText()){var c=(i||t).getBuilder(n.getZIndex(),"Text");c.setTextStyle(u),c.drawText(e,r)}}function h(t,e,n,i,o,s,a){var u=!1,c=n.getImage();if(c){var l=c.getImageState();l==r["a"].LOADED||l==r["a"].ERROR?c.unlistenImageChange(o):(l==r["a"].IDLE&&c.load(),c.listenImageChange(o),u=!0)}return f(t,e,n,i,s,a),u}function f(t,e,n,r,i,o){var a=n.getGeometryFunction()(e);if(a){var u=a.simplifyTransformed(r,i),c=n.getRenderer();if(c)p(t,u,n,e);else{var l=s[u.getType()];l(t,u,n,e,o)}}}function p(t,e,n,r){if("GeometryCollection"!=e.getType()){var i=t.getBuilder(n.getZIndex(),"Default");i.drawCustom(e,r,n.getRenderer(),n.getHitDetectionRenderer())}else for(var o=e.getGeometries(),s=0,a=o.length;s<a;++s)p(t,o[s],n,r)}function d(t,e,n,r,i){var o,a,u=e.getGeometriesArray();for(o=0,a=u.length;o<a;++o){var c=s[u[o].getType()];c(t,u[o],n,r,i)}}function g(t,e,n,r,i){var o=n.getStroke();if(o){var s=t.getBuilder(n.getZIndex(),"LineString");s.setFillStrokeStyle(null,o),s.drawLineString(e,r)}var a=n.getText();if(a&&a.getText()){var u=(i||t).getBuilder(n.getZIndex(),"Text");u.setTextStyle(a),u.drawText(e,r)}}function y(t,e,n,r,i){var o=n.getStroke();if(o){var s=t.getBuilder(n.getZIndex(),"LineString");s.setFillStrokeStyle(null,o),s.drawMultiLineString(e,r)}var a=n.getText();if(a&&a.getText()){var u=(i||t).getBuilder(n.getZIndex(),"Text");u.setTextStyle(a),u.drawText(e,r)}}function v(t,e,n,r,i){var o=n.getFill(),s=n.getStroke();if(s||o){var a=t.getBuilder(n.getZIndex(),"Polygon");a.setFillStrokeStyle(o,s),a.drawMultiPolygon(e,r)}var u=n.getText();if(u&&u.getText()){var c=(i||t).getBuilder(n.getZIndex(),"Text");c.setTextStyle(u),c.drawText(e,r)}}function _(t,e,n,i,o){var s,a=n.getImage(),u=n.getText();if(a){if(a.getImageState()!=r["a"].LOADED)return;var c=t;if(o){var l=a.getDeclutterMode();if("none"!==l)if(c=o,"obstacle"===l){var h=t.getBuilder(n.getZIndex(),"Image");h.setImageStyle(a,s),h.drawPoint(e,i)}else u&&u.getText()&&(s={})}var f=c.getBuilder(n.getZIndex(),"Image");f.setImageStyle(a,s),f.drawPoint(e,i)}if(u&&u.getText()){var p=t;o&&(p=o);var d=p.getBuilder(n.getZIndex(),"Text");d.setTextStyle(u,s),d.drawText(e,i)}}function m(t,e,n,i,o){var s,a=n.getImage(),u=n.getText();if(a){if(a.getImageState()!=r["a"].LOADED)return;var c=t;if(o){var l=a.getDeclutterMode();if("none"!==l)if(c=o,"obstacle"===l){var h=t.getBuilder(n.getZIndex(),"Image");h.setImageStyle(a,s),h.drawMultiPoint(e,i)}else u&&u.getText()&&(s={})}var f=c.getBuilder(n.getZIndex(),"Image");f.setImageStyle(a,s),f.drawMultiPoint(e,i)}if(u&&u.getText()){var p=t;o&&(p=o);var d=p.getBuilder(n.getZIndex(),"Text");d.setTextStyle(u,s),d.drawText(e,i)}}function b(t,e,n,r,i){var o=n.getFill(),s=n.getStroke();if(o||s){var a=t.getBuilder(n.getZIndex(),"Polygon");a.setFillStrokeStyle(o,s),a.drawPolygon(e,r)}var u=n.getText();if(u&&u.getText()){var c=(i||t).getBuilder(n.getZIndex(),"Text");c.setTextStyle(u),c.drawText(e,r)}}},3252:function(t,e,n){(function(e,r){t.exports=r(n("21bf"))})(0,(function(t){return function(e){var n=t,r=n.lib,i=r.Base,o=r.WordArray,s=n.x64={};s.Word=i.extend({init:function(t,e){this.high=t,this.low=e}}),s.WordArray=i.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],r=0;r<e;r++){var i=t[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var t=i.clone.call(this),e=t.words=this.words.slice(0),n=e.length,r=0;r<n;r++)e[r]=e[r].clone();return t}})}(),t}))},3333:function(t,e,n){"use strict";var r=n("cef7"),i=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.inversePixelTransform=n,o.frameState=r,o.context=i,o}return i(e,t),e}(r["a"]);e["a"]=o},"342f":function(t,e){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3452:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("3252"),n("17e1"),n("a8ce"),n("1132"),n("c1bc"),n("72fe"),n("df2f"),n("94f8"),n("191b"),n("d6e6"),n("b86b"),n("e61b"),n("10b7"),n("5980"),n("7bbc"),n("2b79"),n("38ba"),n("00bb"),n("f4ea"),n("aaef"),n("4ba9"),n("81bf"),n("a817"),n("a11b"),n("8cef"),n("2a66"),n("b86c"),n("6d08"),n("c198"),n("a40e"),n("c3b6"),n("1382"),n("3d5a"))})(0,(function(t){return t}))},"345d":function(t,e,n){"use strict";function r(t){return t[0]>0&&t[1]>0}function i(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function o(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o}))},3511:function(t,e){var n=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw n("Maximum allowed index exceeded");return t}},3574:function(t,e,n){},"35a7":function(t,e,n){"use strict";var r=n("0ec0"),i=n("01d4"),o=n("1e8d"),s=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(t){function e(){var e=t.call(this)||this;return e.on=e.onInternal,e.once=e.onceInternal,e.un=e.unInternal,e.revision_=0,e}return s(e,t),e.prototype.changed=function(){++this.revision_,this.dispatchEvent(i["a"].CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.onInternal=function(t,e){if(Array.isArray(t)){for(var n=t.length,r=new Array(n),i=0;i<n;++i)r[i]=Object(o["a"])(this,t[i],e);return r}return Object(o["a"])(this,t,e)},e.prototype.onceInternal=function(t,e){var n;if(Array.isArray(t)){var r=t.length;n=new Array(r);for(var i=0;i<r;++i)n[i]=Object(o["b"])(this,t[i],e)}else n=Object(o["b"])(this,t,e);return e.ol_key=n,n},e.prototype.unInternal=function(t,e){var n=e.ol_key;if(n)u(n);else if(Array.isArray(t))for(var r=0,i=t.length;r<i;++r)this.removeEventListener(t[r],e);else this.removeEventListener(t,e)},e}(r["a"]);function u(t){if(Array.isArray(t))for(var e=0,n=t.length;e<n;++e)Object(o["c"])(t[e]);else Object(o["c"])(t)}a.prototype.on,a.prototype.once,a.prototype.un,e["a"]=a},"35d8":function(t,e,n){"use strict";var r=n("869f"),i=n("ab35"),o=n("5c38"),s=n("e98d"),a=n("0999"),u=n("ddea"),c=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(t){function e(e){var n=this,r=void 0!==e.rotateWithView&&e.rotateWithView;return n=t.call(this,{opacity:1,rotateWithView:r,rotation:void 0!==e.rotation?e.rotation:0,scale:void 0!==e.scale?e.scale:1,displacement:void 0!==e.displacement?e.displacement:[0,0],declutterMode:e.declutterMode})||this,n.canvas_=void 0,n.hitDetectionCanvas_=null,n.fill_=void 0!==e.fill?e.fill:null,n.origin_=[0,0],n.points_=e.points,n.radius_=void 0!==e.radius?e.radius:e.radius1,n.radius2_=e.radius2,n.angle_=void 0!==e.angle?e.angle:0,n.stroke_=void 0!==e.stroke?e.stroke:null,n.size_=null,n.renderOptions_=null,n.render(),n}return c(e,t),e.prototype.clone=function(){var t=this.getScale(),n=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return n.setOpacity(this.getOpacity()),n},e.prototype.getAnchor=function(){var t=this.size_;if(!t)return null;var e=this.getDisplacement();return[t[0]/2-e[0],t[1]/2+e[1]]},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.setFill=function(t){this.fill_=t,this.render()},e.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},e.prototype.getImage=function(t){var e=this.canvas_[t];if(!e){var n=this.renderOptions_,r=Object(a["a"])(n.size*t,n.size*t);this.draw_(n,r,t),e=r.canvas,this.canvas_[t]=e}return e},e.prototype.getPixelRatio=function(t){return t},e.prototype.getImageSize=function(){return this.size_},e.prototype.getImageState=function(){return r["a"].LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.setStroke=function(t){this.stroke_=t,this.render()},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.calculateLineJoinSize_=function(t,e,n){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;var r=this.radius_,i=void 0===this.radius2_?r:this.radius2_;if(r<i){var o=r;r=i,i=o}var s=void 0===this.radius2_?this.points_:2*this.points_,a=2*Math.PI/s,u=i*Math.sin(a),c=Math.sqrt(i*i-u*u),l=r-c,h=Math.sqrt(u*u+l*l),f=h/u;if("miter"===t&&f<=n)return f*e;var p=e/2/f,d=e/2*(l/h),g=Math.sqrt((r+p)*(r+p)+d*d),y=g-r;if(void 0===this.radius2_||"bevel"===t)return 2*y;var v=r*Math.sin(a),_=Math.sqrt(r*r-v*v),m=i-_,b=Math.sqrt(v*v+m*m),E=b/v;if(E<=n){var w=E*e/2-i-r;return 2*Math.max(y,w)}return 2*y},e.prototype.createRenderOptions=function(){var t,e=u["g"],n=0,r=null,i=0,o=0;this.stroke_&&(t=this.stroke_.getColor(),null===t&&(t=u["k"]),t=Object(s["a"])(t),o=this.stroke_.getWidth(),void 0===o&&(o=u["h"]),r=this.stroke_.getLineDash(),i=this.stroke_.getLineDashOffset(),e=this.stroke_.getLineJoin(),void 0===e&&(e=u["g"]),n=this.stroke_.getMiterLimit(),void 0===n&&(n=u["i"]));var a=this.calculateLineJoinSize_(e,o,n),c=Math.max(this.radius_,this.radius2_||0),l=Math.ceil(2*c+a);return{strokeStyle:t,strokeWidth:o,size:l,lineDash:r,lineDashOffset:i,lineJoin:e,miterLimit:n}},e.prototype.render=function(){this.renderOptions_=this.createRenderOptions();var t=this.renderOptions_.size;this.canvas_={},this.size_=[t,t]},e.prototype.draw_=function(t,e,n){if(e.scale(n,n),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){var r=this.fill_.getColor();null===r&&(r=u["b"]),e.fillStyle=Object(s["a"])(r),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,e.setLineDash&&t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())},e.prototype.createHitDetectionCanvas_=function(t){if(this.fill_){var e=this.fill_.getColor(),n=0;if("string"===typeof e&&(e=Object(o["a"])(e)),null===e?n=1:Array.isArray(e)&&(n=4===e.length?e[3]:1),0===n){var r=Object(a["a"])(t.size,t.size);this.hitDetectionCanvas_=r.canvas,this.drawHitDetectionCanvas_(t,r)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},e.prototype.createPath_=function(t){var e=this.points_,n=this.radius_;if(e===1/0)t.arc(0,0,n,0,2*Math.PI);else{var r=void 0===this.radius2_?n:this.radius2_;void 0!==this.radius2_&&(e*=2);for(var i=this.angle_-Math.PI/2,o=2*Math.PI/e,s=0;s<e;s++){var a=i+s*o,u=s%2===0?n:r;t.lineTo(u*Math.cos(a),u*Math.sin(a))}t.closePath()}},e.prototype.drawHitDetectionCanvas_=function(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=u["b"],e.fill(),this.stroke_&&(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())},e}(i["a"]);e["a"]=l},"377d":function(t,e,n){"use strict";var r=n("b7df"),i=n("1300"),o=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(t){function e(){return t.call(this)||this}return o(e,t),e.prototype.getType=function(){return"json"},e.prototype.readFeature=function(t,e){return this.readFeatureFromObject(a(t),this.getReadOptions(t,e))},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromObject(a(t),this.getReadOptions(t,e))},e.prototype.readFeatureFromObject=function(t,e){return Object(i["b"])()},e.prototype.readFeaturesFromObject=function(t,e){return Object(i["b"])()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromObject(a(t),this.getReadOptions(t,e))},e.prototype.readGeometryFromObject=function(t,e){return Object(i["b"])()},e.prototype.readProjection=function(t){return this.readProjectionFromObject(a(t))},e.prototype.readProjectionFromObject=function(t){return Object(i["b"])()},e.prototype.writeFeature=function(t,e){return JSON.stringify(this.writeFeatureObject(t,e))},e.prototype.writeFeatureObject=function(t,e){return Object(i["b"])()},e.prototype.writeFeatures=function(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))},e.prototype.writeFeaturesObject=function(t,e){return Object(i["b"])()},e.prototype.writeGeometry=function(t,e){return JSON.stringify(this.writeGeometryObject(t,e))},e.prototype.writeGeometryObject=function(t,e){return Object(i["b"])()},e}(r["a"]);function a(t){if("string"===typeof t){var e=JSON.parse(t);return e||null}return null!==t?t:null}e["a"]=s},"38ba":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("2b79"))})(0,(function(t){t.lib.Cipher||function(e){var n=t,r=n.lib,i=r.Base,o=r.WordArray,s=r.BufferedBlockAlgorithm,a=n.enc,u=(a.Utf8,a.Base64),c=n.algo,l=c.EvpKDF,h=r.Cipher=s.extend({cfg:i.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?x:b}return function(e){return{encrypt:function(n,r,i){return t(r).encrypt(e,n,r,i)},decrypt:function(n,r,i){return t(r).decrypt(e,n,r,i)}}}}()}),f=(r.StreamCipher=h.extend({_doFinalize:function(){var t=this._process(!0);return t},blockSize:1}),n.mode={}),p=r.BlockCipherMode=i.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),d=f.CBC=function(){var t=p.extend();function n(t,n,r){var i,o=this._iv;o?(i=o,this._iv=e):i=this._prevBlock;for(var s=0;s<r;s++)t[n+s]^=i[s]}return t.Encryptor=t.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize;n.call(this,t,e,i),r.encryptBlock(t,e),this._prevBlock=t.slice(e,e+i)}}),t.Decryptor=t.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize,o=t.slice(e,e+i);r.decryptBlock(t,e),n.call(this,t,e,i),this._prevBlock=o}}),t}(),g=n.pad={},y=g.Pkcs7={pad:function(t,e){for(var n=4*e,r=n-t.sigBytes%n,i=r<<24|r<<16|r<<8|r,s=[],a=0;a<r;a+=4)s.push(i);var u=o.create(s,r);t.concat(u)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},v=(r.BlockCipher=h.extend({cfg:h.cfg.extend({mode:d,padding:y}),reset:function(){var t;h.reset.call(this);var e=this.cfg,n=e.iv,r=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=r.createEncryptor:(t=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(r,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),r.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),_=n.format={},m=_.OpenSSL={stringify:function(t){var e,n=t.ciphertext,r=t.salt;return e=r?o.create([1398893684,1701076831]).concat(r).concat(n):n,e.toString(u)},parse:function(t){var e,n=u.parse(t),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(e=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:e})}},b=r.SerializableCipher=i.extend({cfg:i.extend({format:m}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var i=t.createEncryptor(n,r),o=i.finalize(e),s=i.cfg;return v.create({ciphertext:o,key:n,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var i=t.createDecryptor(n,r).finalize(e.ciphertext);return i},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),E=n.kdf={},w=E.OpenSSL={execute:function(t,e,n,r){r||(r=o.random(8));var i=l.create({keySize:e+n}).compute(t,r),s=o.create(i.words.slice(e),4*n);return i.sigBytes=4*e,v.create({key:i,iv:s,salt:r})}},x=r.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:w}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var i=r.kdf.execute(n,t.keySize,t.ivSize);r.iv=i.iv;var o=b.encrypt.call(this,t,e,i.key,r);return o.mixIn(i),o},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var i=r.kdf.execute(n,t.keySize,t.ivSize,e.salt);r.iv=i.iv;var o=b.decrypt.call(this,t,e,i.key,r);return o}})}()}))},"38f3":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s}));var r="function"===typeof Object.assign?Object.assign:function(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1,i=arguments.length;r<i;++r){var o=arguments[r];if(void 0!==o&&null!==o)for(var s in o)o.hasOwnProperty(s)&&(n[s]=o[s])}return n};function i(t){for(var e in t)delete t[e]}var o="function"===typeof Object.values?Object.values:function(t){var e=[];for(var n in t)e.push(t[n]);return e};function s(t){var e;for(e in t)return!1;return!e}},"3a34":function(t,e,n){"use strict";var r=n("83ab"),i=n("e8b5"),o=TypeError,s=Object.getOwnPropertyDescriptor,a=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(i(t)&&!s(t,"length").writable)throw o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a39":function(t,e,n){"use strict";n.d(e,"a",(function(){return rt}));var r=n("e300"),i=n("4334"),o=n("0b2d"),s=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.delta_=r.delta?r.delta:1,n.duration_=void 0!==r.duration?r.duration:250,n}return s(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==o["a"].DBLCLICK){var n=t.originalEvent,r=t.map,s=t.coordinate,a=n.shiftKey?-this.delta_:this.delta_,u=r.getView();Object(i["c"])(u,a,s,this.duration_),n.preventDefault(),e=!0}return!e},e}(i["a"]),u=a,c=n("4105"),l=n("57cb"),h=n("06f8"),f=n("ca42"),p=n("a568"),d=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=function(t){function e(e){var n=t.call(this,{stopDown:l["a"]})||this,r=e||{};n.kinetic_=r.kinetic,n.lastCentroid=null,n.lastPointersCount_,n.panning_=!1;var i=r.condition?r.condition:Object(h["a"])(h["h"],h["i"]);return n.condition_=r.onFocusOnly?Object(h["a"])(h["d"],i):i,n.noKinetic_=!1,n}return d(e,t),e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e=this.targetPointers,n=Object(c["a"])(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var r=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],i=t.map,o=i.getView();Object(p["e"])(r,o.getResolution()),Object(p["d"])(r,o.getRotation()),o.adjustCenterInternal(r)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=e.length,t.originalEvent.preventDefault()},e.prototype.handleUpEvent=function(t){var e=t.map,n=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var r=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),o=n.getCenterInternal(),s=e.getPixelFromCoordinateInternal(o),a=e.getCoordinateFromPixelInternal([s[0]-r*Math.cos(i),s[1]-r*Math.sin(i)]);n.animateInternal({center:n.getConstrainedCenter(a),duration:500,easing:f["b"]})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.condition_(t)){var e=t.map,n=e.getView();return this.lastCentroid=null,n.getAnimating()&&n.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(c["b"]),y=g,v=n("8cc5"),_=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m=function(t){function e(e){var n=this,r=e||{};return n=t.call(this,{stopDown:l["a"]})||this,n.condition_=r.condition?r.condition:h["b"],n.lastAngle_=void 0,n.duration_=void 0!==r.duration?r.duration:250,n}return _(e,t),e.prototype.handleDragEvent=function(t){if(Object(h["f"])(t)){var e=t.map,n=e.getView();if(n.getConstraints().rotation!==v["c"]){var r=e.getSize(),i=t.pixel,o=Math.atan2(r[1]/2-i[1],i[0]-r[0]/2);if(void 0!==this.lastAngle_){var s=o-this.lastAngle_;n.adjustRotationInternal(-s)}this.lastAngle_=o}}},e.prototype.handleUpEvent=function(t){if(!Object(h["f"])(t))return!0;var e=t.map,n=e.getView();return n.endInteraction(this.duration_),!1},e.prototype.handleDownEvent=function(t){if(!Object(h["f"])(t))return!1;if(Object(h["e"])(t)&&this.condition_(t)){var e=t.map;return e.getView().beginInteraction(),this.lastAngle_=void 0,!0}return!1},e}(c["b"]),b=m,E=n("cef7"),w=n("da5c"),x=n("5bc3"),O=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),S=function(t){function e(e){var n=t.call(this)||this;return n.geometry_=null,n.element_=document.createElement("div"),n.element_.style.position="absolute",n.element_.style.pointerEvents="auto",n.element_.className="ol-box "+e,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return O(e,t),e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,n="px",r=this.element_.style;r.left=Math.min(t[0],e[0])+n,r.top=Math.min(t[1],e[1])+n,r.width=Math.abs(e[0]-t[0])+n,r.height=Math.abs(e[1]-t[1])+n},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,n=[t,[t[0],e[1]],e,[e[0],t[1]]],r=n.map(this.map_.getCoordinateFromPixelInternal,this.map_);r[4]=r[0].slice(),this.geometry_?this.geometry_.setCoordinates([r]):this.geometry_=new x["a"]([r])},e.prototype.getGeometry=function(){return this.geometry_},e}(w["a"]),C=S,I=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),P={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},R=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.coordinate=n,i.mapBrowserEvent=r,i}return I(e,t),e}(E["a"]),T=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var r=e||{};return n.box_=new C(r.className||"ol-dragbox"),n.minArea_=void 0!==r.minArea?r.minArea:64,r.onBoxEnd&&(n.onBoxEnd=r.onBoxEnd),n.startPixel_=null,n.condition_=r.condition?r.condition:h["e"],n.boxEndCondition_=r.boxEndCondition?r.boxEndCondition:n.defaultBoxEndCondition,n}return I(e,t),e.prototype.defaultBoxEndCondition=function(t,e,n){var r=n[0]-e[0],i=n[1]-e[1];return r*r+i*i>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new R(P.BOXDRAG,t.coordinate,t))},e.prototype.handleUpEvent=function(t){this.box_.setMap(null);var e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new R(e?P.BOXEND:P.BOXCANCEL,t.coordinate,t)),!1},e.prototype.handleDownEvent=function(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new R(P.BOXSTART,t.coordinate,t)),!0)},e.prototype.onBoxEnd=function(t){},e}(c["b"]),L=T,M=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),N=function(t){function e(e){var n=this,r=e||{},i=r.condition?r.condition:h["j"];return n=t.call(this,{condition:i,className:r.className||"ol-dragzoom",minArea:r.minArea})||this,n.duration_=void 0!==r.duration?r.duration:200,n.out_=void 0!==r.out&&r.out,n}return M(e,t),e.prototype.onBoxEnd=function(t){var e=this.getMap(),n=e.getView(),r=this.getGeometry();if(this.out_){var i=n.rotatedExtentForGeometry(r),o=n.getResolutionForExtentInternal(i),s=n.getResolution()/o;r=r.clone(),r.scale(s*s)}n.fitInternal(r,{duration:this.duration_,easing:f["b"]})},e}(L),A=N,F=n("01d4"),j={LEFT:37,UP:38,RIGHT:39,DOWN:40},D=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),k=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.defaultCondition_=function(t){return Object(h["h"])(t)&&Object(h["l"])(t)},n.condition_=void 0!==r.condition?r.condition:n.defaultCondition_,n.duration_=void 0!==r.duration?r.duration:100,n.pixelDelta_=void 0!==r.pixelDelta?r.pixelDelta:128,n}return D(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==F["a"].KEYDOWN){var n=t.originalEvent,r=n.keyCode;if(this.condition_(t)&&(r==j.DOWN||r==j.LEFT||r==j.RIGHT||r==j.UP)){var o=t.map,s=o.getView(),a=s.getResolution()*this.pixelDelta_,u=0,c=0;r==j.DOWN?c=-a:r==j.LEFT?u=-a:r==j.RIGHT?u=a:c=a;var l=[u,c];Object(p["d"])(l,s.getRotation()),Object(i["b"])(s,l,this.duration_),n.preventDefault(),e=!0}}return!e},e}(i["a"]),G=k,B=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),U=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.condition_=r.condition?r.condition:h["l"],n.delta_=r.delta?r.delta:1,n.duration_=void 0!==r.duration?r.duration:100,n}return B(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==F["a"].KEYDOWN||t.type==F["a"].KEYPRESS){var n=t.originalEvent,r=n.charCode;if(this.condition_(t)&&(r=="+".charCodeAt(0)||r=="-".charCodeAt(0))){var o=t.map,s=r=="+".charCodeAt(0)?this.delta_:-this.delta_,a=o.getView();Object(i["c"])(a,s,void 0,this.duration_),n.preventDefault(),e=!0}}return!e},e}(i["a"]),z=U,Y=function(){function t(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return t.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},t.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},t.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;var n=e-3;while(n>0&&this.points_[n+2]>t)n-=3;var r=this.points_[e+2]-this.points_[n+2];if(r<1e3/60)return!1;var i=this.points_[e]-this.points_[n],o=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/r,this.initialVelocity_>this.minVelocity_},t.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},t.prototype.getAngle=function(){return this.angle_},t}(),X=Y,V=n("617d"),q=n("7fc9"),W=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),H={TRACKPAD:"trackpad",WHEEL:"wheel"},Z=function(t){function e(e){var n=this,r=e||{};n=t.call(this,r)||this,n.totalDelta_=0,n.lastDelta_=0,n.maxDelta_=void 0!==r.maxDelta?r.maxDelta:1,n.duration_=void 0!==r.duration?r.duration:250,n.timeout_=void 0!==r.timeout?r.timeout:80,n.useAnchor_=void 0===r.useAnchor||r.useAnchor,n.constrainResolution_=void 0!==r.constrainResolution&&r.constrainResolution;var i=r.condition?r.condition:h["c"];return n.condition_=r.onFocusOnly?Object(h["a"])(h["d"],i):i,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.deltaPerZoom_=300,n}return W(e,t),e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap();if(t){var e=t.getView();e.endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=t.type;if(e!==F["a"].WHEEL)return!0;var n,r=t.map,i=t.originalEvent;if(i.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==F["a"].WHEEL&&(n=i.deltaY,V["b"]&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(n/=V["a"]),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(n*=40)),0===n)return!1;this.lastDelta_=n;var o=Date.now();void 0===this.startTime_&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(n)<4?H.TRACKPAD:H.WHEEL);var s=r.getView();if(this.mode_===H.TRACKPAD&&!s.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(s.getAnimating()&&s.cancelAnimations(),s.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),s.adjustZoom(-n/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=o,!1;this.totalDelta_+=n;var a=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,r),a),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();var n=-Object(q["b"])(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),Object(i["c"])(e,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(i["a"]),K=Z,J=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Q=function(t){function e(e){var n=this,r=e||{},i=r;return i.stopDown||(i.stopDown=l["a"]),n=t.call(this,i)||this,n.anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=void 0!==r.threshold?r.threshold:.3,n.duration_=void 0!==r.duration?r.duration:250,n}return J(e,t),e.prototype.handleDragEvent=function(t){var e=0,n=this.targetPointers[0],r=this.targetPointers[1],i=Math.atan2(r.clientY-n.clientY,r.clientX-n.clientX);if(void 0!==this.lastAngle_){var o=i-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=o}this.lastAngle_=i;var s=t.map,a=s.getView();if(a.getConstraints().rotation!==v["c"]){var u=s.getViewport().getBoundingClientRect(),l=Object(c["a"])(this.targetPointers);l[0]-=u.left,l[1]-=u.top,this.anchor_=s.getCoordinateFromPixelInternal(l),this.rotating_&&(s.render(),a.adjustRotationInternal(e,this.anchor_))}},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map,n=e.getView();return n.endInteraction(this.duration_),!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var 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},e}(c["b"]),$=Q,tt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),et=function(t){function e(e){var n=this,r=e||{},i=r;return i.stopDown||(i.stopDown=l["a"]),n=t.call(this,i)||this,n.anchor_=null,n.duration_=void 0!==r.duration?r.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return tt(e,t),e.prototype.handleDragEvent=function(t){var e=1,n=this.targetPointers[0],r=this.targetPointers[1],i=n.clientX-r.clientX,o=n.clientY-r.clientY,s=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/s),this.lastDistance_=s;var a=t.map,u=a.getView();1!=e&&(this.lastScaleDelta_=e);var l=a.getViewport().getBoundingClientRect(),h=Object(c["a"])(this.targetPointers);h[0]-=l.left,h[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(h),a.render(),u.adjustResolutionInternal(e,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map,n=e.getView(),r=this.lastScaleDelta_>1?1:-1;return n.endInteraction(this.duration_,r),!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(c["b"]),nt=et;function rt(t){var e=t||{},n=new r["a"],i=new X(-.005,.05,100),o=void 0===e.altShiftDragRotate||e.altShiftDragRotate;o&&n.push(new b);var s=void 0===e.doubleClickZoom||e.doubleClickZoom;s&&n.push(new u({delta:e.zoomDelta,duration:e.zoomDuration}));var a=void 0===e.dragPan||e.dragPan;a&&n.push(new y({onFocusOnly:e.onFocusOnly,kinetic:i}));var c=void 0===e.pinchRotate||e.pinchRotate;c&&n.push(new $);var l=void 0===e.pinchZoom||e.pinchZoom;l&&n.push(new nt({duration:e.zoomDuration}));var h=void 0===e.keyboard||e.keyboard;h&&(n.push(new G),n.push(new z({delta:e.zoomDelta,duration:e.zoomDuration})));var f=void 0===e.mouseWheelZoom||e.mouseWheelZoom;f&&n.push(new K({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration}));var p=void 0===e.shiftDragZoom||e.shiftDragZoom;return p&&n.push(new A({duration:e.zoomDuration})),n}},"3a9b":function(t,e,n){var r=n("e330");t.exports=r({}.isPrototypeOf)},"3bbe":function(t,e,n){var r=n("1626"),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},"3c22":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("5c38"),i=function(){function t(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return t.prototype.clear=function(){this.cache_={},this.cacheSize_=0},t.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},t.prototype.expire=function(){if(this.canExpireCache()){var t=0;for(var e in this.cache_){var n=this.cache_[e];0!==(3&t++)||n.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},t.prototype.get=function(t,e,n){var r=o(t,e,n);return r in this.cache_?this.cache_[r]:null},t.prototype.set=function(t,e,n,r){var i=o(t,e,n);this.cache_[i]=r,++this.cacheSize_},t.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},t}();function o(t,e,n){var i=n?Object(r["b"])(n):"null";return e+":"+t+":"+i}var s=new i},"3d5a":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.StreamCipher,i=e.algo,o=[],s=[],a=[],u=i.RabbitLegacy=r.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(e){var o=e.words,s=o[0],a=o[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=u>>>16|4294901760&l,f=l<<16|65535&u;r[0]^=u,r[1]^=h,r[2]^=l,r[3]^=f,r[4]^=u,r[5]^=h,r[6]^=l,r[7]^=f;for(i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),t[e+r]^=o[r]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)s[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<s[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<s[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<s[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<s[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<s[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<s[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<s[6]>>>0?1:0)|0,this._b=e[7]>>>0<s[7]>>>0?1:0;for(n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,o=r>>>16,u=((i*i>>>17)+i*o>>>15)+o*o,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=u^c}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=r._createHelper(u)}(),t.RabbitLegacy}))},"3e6b":function(t,e,n){"use strict";var r=n("ae50"),i={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},o=[i.FILL],s=[i.STROKE],a=[i.BEGIN_PATH],u=[i.CLOSE_PATH],c=i,l=n("045d"),h=n("f78c"),f=n("e98d"),p=n("0af5"),d=n("ddea"),g=n("9f5e"),y=n("bb6c"),v=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.tolerance=e,o.maxExtent=n,o.pixelRatio=i,o.maxLineWidth=0,o.resolution=r,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return v(e,t),e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))},e.prototype.appendFlatPointCoordinates=function(t,e){for(var n=this.getBufferedMaxExtent(),r=this.tmpCoordinate_,i=this.coordinates,o=i.length,s=0,a=t.length;s<a;s+=e)r[0]=t[s],r[1]=t[s+1],Object(p["f"])(n,r)&&(i[o++]=r[0],i[o++]=r[1]);return o},e.prototype.appendFlatLineCoordinates=function(t,e,n,r,i,o){var s=this.coordinates,a=s.length,u=this.getBufferedMaxExtent();o&&(e+=r);var c,h,f,d=t[e],g=t[e+1],y=this.tmpCoordinate_,v=!0;for(c=e+r;c<n;c+=r)y[0]=t[c],y[1]=t[c+1],f=Object(p["i"])(u,y),f!==h?(v&&(s[a++]=d,s[a++]=g,v=!1),s[a++]=y[0],s[a++]=y[1]):f===l["a"].INTERSECTING?(s[a++]=y[0],s[a++]=y[1],v=!1):v=!0,d=y[0],g=y[1],h=f;return(i&&v||c===e+r)&&(s[a++]=d,s[a++]=g),a},e.prototype.drawCustomCoordinates_=function(t,e,n,r,i){for(var o=0,s=n.length;o<s;++o){var a=n[o],u=this.appendFlatLineCoordinates(t,e,a,r,!1,!1);i.push(u),e=a}return e},e.prototype.drawCustom=function(t,e,n,r){this.beginGeometry(t,e);var i,o,s,a,u,l=t.getType(),h=t.getStride(),f=this.coordinates.length;switch(l){case"MultiPolygon":i=t.getOrientedFlatCoordinates(),a=[];var p=t.getEndss();u=0;for(var d=0,g=p.length;d<g;++d){var v=[];u=this.drawCustomCoordinates_(i,u,p[d],h,v),a.push(v)}this.instructions.push([c.CUSTOM,f,a,t,n,y["c"]]),this.hitDetectionInstructions.push([c.CUSTOM,f,a,t,r||n,y["c"]]);break;case"Polygon":case"MultiLineString":s=[],i="Polygon"==l?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),u=this.drawCustomCoordinates_(i,0,t.getEnds(),h,s),this.instructions.push([c.CUSTOM,f,s,t,n,y["b"]]),this.hitDetectionInstructions.push([c.CUSTOM,f,s,t,r||n,y["b"]]);break;case"LineString":case"Circle":i=t.getFlatCoordinates(),o=this.appendFlatLineCoordinates(i,0,i.length,h,!1,!1),this.instructions.push([c.CUSTOM,f,o,t,n,y["a"]]),this.hitDetectionInstructions.push([c.CUSTOM,f,o,t,r||n,y["a"]]);break;case"MultiPoint":i=t.getFlatCoordinates(),o=this.appendFlatPointCoordinates(i,h),o>f&&(this.instructions.push([c.CUSTOM,f,o,t,n,y["a"]]),this.hitDetectionInstructions.push([c.CUSTOM,f,o,t,r||n,y["a"]]));break;case"Point":i=t.getFlatCoordinates(),this.coordinates.push(i[0],i[1]),o=this.coordinates.length,this.instructions.push([c.CUSTOM,f,o,t,n]),this.hitDetectionInstructions.push([c.CUSTOM,f,o,t,r||n]);break;default:}this.endGeometry(e)},e.prototype.beginGeometry=function(t,e){this.beginGeometryInstruction1_=[c.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[c.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t,e=this.hitDetectionInstructions;e.reverse();var n,r,i=e.length,o=-1;for(t=0;t<i;++t)n=e[t],r=n[0],r==c.END_GEOMETRY?o=t:r==c.BEGIN_GEOMETRY&&(n[2]=t,Object(g["j"])(this.hitDetectionInstructions,o,t),o=-1)},e.prototype.setFillStrokeStyle=function(t,e){var n=this.state;if(t){var r=t.getColor();n.fillStyle=Object(f["a"])(r||d["b"])}else n.fillStyle=void 0;if(e){var i=e.getColor();n.strokeStyle=Object(f["a"])(i||d["k"]);var o=e.getLineCap();n.lineCap=void 0!==o?o:d["d"];var s=e.getLineDash();n.lineDash=s?s.slice():d["e"];var a=e.getLineDashOffset();n.lineDashOffset=a||d["f"];var u=e.getLineJoin();n.lineJoin=void 0!==u?u:d["g"];var c=e.getWidth();n.lineWidth=void 0!==c?c:d["h"];var l=e.getMiterLimit();n.miterLimit=void 0!==l?l:d["i"],n.lineWidth>this.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},e.prototype.createFill=function(t){var e=t.fillStyle,n=[c.SET_FILL_STYLE,e];return"string"!==typeof e&&n.push(!0),n},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[c.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e){var n=t.fillStyle;"string"===typeof n&&t.currentFillStyle==n||(void 0!==n&&this.instructions.push(e.call(this,t)),t.currentFillStyle=n)},e.prototype.updateStrokeStyle=function(t,e){var n=t.strokeStyle,r=t.lineCap,i=t.lineDash,o=t.lineDashOffset,s=t.lineJoin,a=t.lineWidth,u=t.miterLimit;(t.currentStrokeStyle!=n||t.currentLineCap!=r||i!=t.currentLineDash&&!Object(g["b"])(t.currentLineDash,i)||t.currentLineDashOffset!=o||t.currentLineJoin!=s||t.currentLineWidth!=a||t.currentMiterLimit!=u)&&(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=r,t.currentLineDash=i,t.currentLineDashOffset=o,t.currentLineJoin=s,t.currentLineWidth=a,t.currentMiterLimit=u)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var e=[c.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(p["d"])(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Object(p["c"])(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(h["a"]),m=_,b=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),E=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r,i)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterMode_=void 0,o.declutterImageWithText_=void 0,o}return b(e,t),e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),r=t.getStride(),i=this.coordinates.length,o=this.appendFlatPointCoordinates(n,r);this.instructions.push([c.DRAW_IMAGE,i,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([c.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),r=t.getStride(),i=this.coordinates.length,o=this.appendFlatPointCoordinates(n,r);this.instructions.push([c.DRAW_IMAGE,i,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([c.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,t.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,e){var n=t.getAnchor(),r=t.getSize(),i=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=r[1],this.opacity_=t.getOpacity(),this.originX_=i[0],this.originY_=i[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=r[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e},e}(m),w=E,x=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),O=function(t){function e(e,n,r,i){return t.call(this,e,n,r,i)||this}return x(e,t),e.prototype.drawFlatCoordinates_=function(t,e,n,r){var i=this.coordinates.length,o=this.appendFlatLineCoordinates(t,e,n,r,!1,!1),s=[c.MOVE_TO_LINE_TO,i,o];return this.instructions.push(s),this.hitDetectionInstructions.push(s),n},e.prototype.drawLineString=function(t,e){var n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0!==r&&void 0!==i){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([c.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,d["e"],d["f"]],a);var o=t.getFlatCoordinates(),u=t.getStride();this.drawFlatCoordinates_(o,0,o.length,u),this.hitDetectionInstructions.push(s),this.endGeometry(e)}},e.prototype.drawMultiLineString=function(t,e){var n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0!==r&&void 0!==i){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([c.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],a);for(var o=t.getEnds(),u=t.getFlatCoordinates(),l=t.getStride(),h=0,f=0,p=o.length;f<p;++f)h=this.drawFlatCoordinates_(u,h,o[f],l);this.hitDetectionInstructions.push(s),this.endGeometry(e)}},e.prototype.finish=function(){var e=this.state;return void 0!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&this.instructions.push(s),this.reverseHitDetectionInstructions(),this.state=null,t.prototype.finish.call(this)},e.prototype.applyStroke=function(e){void 0!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(s),e.lastStroke=this.coordinates.length),e.lastStroke=0,t.prototype.applyStroke.call(this,e),this.instructions.push(a)},e}(m),S=O,C=n("1c48"),I=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),P=function(t){function e(e,n,r,i){return t.call(this,e,n,r,i)||this}return I(e,t),e.prototype.drawFlatCoordinatess_=function(t,e,n,r){var i=this.state,l=void 0!==i.fillStyle,h=void 0!==i.strokeStyle,f=n.length;this.instructions.push(a),this.hitDetectionInstructions.push(a);for(var p=0;p<f;++p){var d=n[p],g=this.coordinates.length,y=this.appendFlatLineCoordinates(t,e,d,r,!0,!h),v=[c.MOVE_TO_LINE_TO,g,y];this.instructions.push(v),this.hitDetectionInstructions.push(v),h&&(this.instructions.push(u),this.hitDetectionInstructions.push(u)),e=d}return l&&(this.instructions.push(o),this.hitDetectionInstructions.push(o)),h&&(this.instructions.push(s),this.hitDetectionInstructions.push(s)),e},e.prototype.drawCircle=function(t,e){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([c.SET_FILL_STYLE,d["b"]]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([c.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var u=t.getFlatCoordinates(),l=t.getStride(),h=this.coordinates.length;this.appendFlatLineCoordinates(u,0,u.length,l,!1,!1);var f=[c.CIRCLE,h];this.instructions.push(a,f),this.hitDetectionInstructions.push(a,f),void 0!==n.fillStyle&&(this.instructions.push(o),this.hitDetectionInstructions.push(o)),void 0!==n.strokeStyle&&(this.instructions.push(s),this.hitDetectionInstructions.push(s)),this.endGeometry(e)}},e.prototype.drawPolygon=function(t,e){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([c.SET_FILL_STYLE,d["b"]]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([c.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=t.getEnds(),s=t.getOrientedFlatCoordinates(),a=t.getStride();this.drawFlatCoordinatess_(s,0,o,a),this.endGeometry(e)}},e.prototype.drawMultiPolygon=function(t,e){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([c.SET_FILL_STYLE,d["b"]]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([c.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);for(var o=t.getEndss(),s=t.getOrientedFlatCoordinates(),a=t.getStride(),u=0,l=0,h=o.length;l<h;++l)u=this.drawFlatCoordinatess_(s,u,o[l],a);this.endGeometry(e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var e=this.tolerance;if(0!==e)for(var n=this.coordinates,r=0,i=n.length;r<i;++r)n[r]=Object(C["e"])(n[r],e);return t.prototype.finish.call(this)},e.prototype.setFillStrokeStyles_=function(){var t=this.state,e=t.fillStyle;void 0!==e&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)},e}(m),R=P,T=n("29f6"),L=n("1300");function M(t,e,n,r,i){var o,s,a,u,c,l,h,f,p,d,g=n,y=n,v=0,_=0,m=n;for(s=n;s<r;s+=i){var b=e[s],E=e[s+1];void 0!==c&&(p=b-c,d=E-l,u=Math.sqrt(p*p+d*d),void 0!==h&&(_+=a,o=Math.acos((h*p+f*d)/(a*u)),o>t&&(_>v&&(v=_,g=m,y=s),_=0,m=s-i)),a=u,h=p,f=d),c=b,l=E}return _+=u,_>v?[m,s]:[g,y]}var N=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),A={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},F=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r,i)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return N(e,t),e.prototype.finish=function(){var e=t.prototype.finish.call(this);return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e},e.prototype.drawText=function(t,e){var n=this.textFillState_,r=this.textStrokeState_,i=this.textState_;if(""!==this.text_&&i&&(n||r)){var o=this.coordinates,s=o.length,a=t.getType(),u=null,l=t.getStride();if(i.placement!==T["a"].LINE||"LineString"!=a&&"MultiLineString"!=a&&"Polygon"!=a&&"MultiPolygon"!=a){var h=i.overflow?null:[];switch(a){case"Point":case"MultiPoint":u=t.getFlatCoordinates();break;case"LineString":u=t.getFlatMidpoint();break;case"Circle":u=t.getCenter();break;case"MultiLineString":u=t.getFlatMidpoints(),l=2;break;case"Polygon":u=t.getFlatInteriorPoint(),i.overflow||h.push(u[2]/this.resolution),l=3;break;case"MultiPolygon":var f=t.getFlatInteriorPoints();u=[];for(S=0,C=f.length;S<C;S+=3)i.overflow||h.push(f[S+2]/this.resolution),u.push(f[S],f[S+1]);if(0===u.length)return;l=2;break;default:}F=this.appendFlatPointCoordinates(u,l);if(F===s)return;if(h&&(F-s)/2!==u.length/l){var g=s/2;h=h.filter((function(t,e){var n=o[2*(g+e)]===u[e*l]&&o[2*(g+e)+1]===u[e*l+1];return n||--g,n}))}this.saveTextStates_(),(i.backgroundFill||i.backgroundStroke)&&(this.setFillStrokeStyle(i.backgroundFill,i.backgroundStroke),i.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),i.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);var y=i.padding;if(y!=d["j"]&&(i.scale[0]<0||i.scale[1]<0)){var v=i.padding[0],_=i.padding[1],m=i.padding[2],b=i.padding[3];i.scale[0]<0&&(_=-_,b=-b),i.scale[1]<0&&(v=-v,m=-m),y=[v,_,m,b]}var E=this.pixelRatio;this.instructions.push([c.DRAW_IMAGE,s,F,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,y==d["j"]?d["j"]:y.map((function(t){return t*E})),!!i.backgroundFill,!!i.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,h]);var w=1/E;this.hitDetectionInstructions.push([c.DRAW_IMAGE,s,F,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[w,w],NaN,void 0,this.declutterImageWithText_,y,!!i.backgroundFill,!!i.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,h]),this.endGeometry(e)}else{if(!Object(p["F"])(this.getBufferedMaxExtent(),t.getExtent()))return;var x=void 0;if(u=t.getFlatCoordinates(),"LineString"==a)x=[u.length];else if("MultiLineString"==a)x=t.getEnds();else if("Polygon"==a)x=t.getEnds().slice(0,1);else if("MultiPolygon"==a){var O=t.getEndss();x=[];for(var S=0,C=O.length;S<C;++S)x.push(O[S][0])}this.beginGeometry(t,e);for(var I=i.textAlign,P=0,R=void 0,L=0,N=x.length;L<N;++L){if(void 0==I){var A=M(i.maxAngle,u,P,x[L],l);P=A[0],R=A[1]}else R=x[L];for(var S=P;S<R;S+=l)o.push(u[S],u[S+1]);var F=o.length;P=x[L],this.drawChars_(s,F),s=F}this.endGeometry(e)}}},e.prototype.saveTextStates_=function(){var t=this.textStrokeState_,e=this.textState_,n=this.textFillState_,r=this.strokeKey_;t&&(r in this.strokeStates||(this.strokeStates[r]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));var i=this.textKey_;i in this.textStates||(this.textStates[i]={font:e.font,textAlign:e.textAlign||d["l"],justify:e.justify,textBaseline:e.textBaseline||d["m"],scale:e.scale});var o=this.fillKey_;n&&(o in this.fillStates||(this.fillStates[o]={fillStyle:n.fillStyle}))},e.prototype.drawChars_=function(t,e){var n=this.textStrokeState_,r=this.textState_,i=this.strokeKey_,o=this.textKey_,s=this.fillKey_;this.saveTextStates_();var a=this.pixelRatio,u=A[r.textBaseline],l=this.textOffsetY_*a,h=this.text_,f=n?n.lineWidth*Math.abs(r.scale[0])/2:0;this.instructions.push([c.DRAW_CHARS,t,e,u,r.overflow,s,r.maxAngle,a,l,i,f*a,h,o,1]),this.hitDetectionInstructions.push([c.DRAW_CHARS,t,e,u,r.overflow,s,r.maxAngle,1,l,i,f,h,o,1/a])},e.prototype.setTextStyle=function(t,e){var n,r,i;if(t){var o=t.getFill();o?(r=this.textFillState_,r||(r={},this.textFillState_=r),r.fillStyle=Object(f["a"])(o.getColor()||d["b"])):(r=null,this.textFillState_=r);var s=t.getStroke();if(s){i=this.textStrokeState_,i||(i={},this.textStrokeState_=i);var a=s.getLineDash(),u=s.getLineDashOffset(),c=s.getWidth(),l=s.getMiterLimit();i.lineCap=s.getLineCap()||d["d"],i.lineDash=a?a.slice():d["e"],i.lineDashOffset=void 0===u?d["f"]:u,i.lineJoin=s.getLineJoin()||d["g"],i.lineWidth=void 0===c?d["h"]:c,i.miterLimit=void 0===l?d["i"]:l,i.strokeStyle=Object(f["a"])(s.getColor()||d["k"])}else i=null,this.textStrokeState_=i;n=this.textState_;var h=t.getFont()||d["c"];Object(d["q"])(h);var p=t.getScaleArray();n.overflow=t.getOverflow(),n.font=h,n.maxAngle=t.getMaxAngle(),n.placement=t.getPlacement(),n.textAlign=t.getTextAlign(),n.justify=t.getJustify(),n.textBaseline=t.getTextBaseline()||d["m"],n.backgroundFill=t.getBackgroundFill(),n.backgroundStroke=t.getBackgroundStroke(),n.padding=t.getPadding()||d["j"],n.scale=void 0===p?[1,1]:p;var g=t.getOffsetX(),y=t.getOffsetY(),v=t.getRotateWithView(),_=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===g?0:g,this.textOffsetY_=void 0===y?0:y,this.textRotateWithView_=void 0!==v&&v,this.textRotation_=void 0===_?0:_,this.strokeKey_=i?("string"==typeof i.strokeStyle?i.strokeStyle:Object(L["c"])(i.strokeStyle))+i.lineCap+i.lineDashOffset+"|"+i.lineWidth+i.lineJoin+i.miterLimit+"["+i.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?")+(n.justify||"?")+(n.textBaseline||"?"),this.fillKey_=r?"string"==typeof r.fillStyle?r.fillStyle:"|"+Object(L["c"])(r.fillStyle):""}else this.text_="";this.declutterImageWithText_=e},e}(m),j=F,D={Circle:R,Default:m,Image:w,LineString:S,Polygon:R,Text:j},k=function(){function t(t,e,n,r){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=r,this.resolution_=n,this.buildersByZIndex_={}}return t.prototype.finish=function(){var t={};for(var e in this.buildersByZIndex_){t[e]=t[e]||{};var n=this.buildersByZIndex_[e];for(var r in n){var i=n[r].finish();t[e][r]=i}}return t},t.prototype.getBuilder=function(t,e){var n=void 0!==t?t.toString():"0",r=this.buildersByZIndex_[n];void 0===r&&(r={},this.buildersByZIndex_[n]=r);var i=r[e];if(void 0===i){var o=D[e];i=new o(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),r[e]=i}return i},t}(),G=k,B=n("137e"),U=n("617d"),z=n("a896"),Y=n("7fc9"),X=n("bef8");function V(t,e,n,r,i,o,s,a,u,c,l,h){var f=t[e],p=t[e+1],d=0,g=0,y=0,v=0;function _(){d=f,g=p,e+=r,f=t[e],p=t[e+1],v+=y,y=Math.sqrt((f-d)*(f-d)+(p-g)*(p-g))}do{_()}while(e<n-r&&v+y<o);var m=0===y?0:(o-v)/y,b=Object(Y["e"])(d,f,m),E=Object(Y["e"])(g,p,m),w=e-r,x=v,O=o+a*u(c,i,l);while(e<n-r&&v+y<O)_();m=0===y?0:(O-v)/y;var S,C=Object(Y["e"])(d,f,m),I=Object(Y["e"])(g,p,m);if(h){var P=[b,E,C,I];Object(X["a"])(P,0,4,2,h,P,P),S=P[0]>P[2]}else S=b>C;var R,T=Math.PI,L=[],M=w+r===e;if(e=w,y=0,v=x,f=t[e],p=t[e+1],M){_(),R=Math.atan2(p-g,f-d),S&&(R+=R>0?-T:T);var N=(C+b)/2,A=(I+E)/2;return L[0]=[N,A,(O-o)/2,R,i],L}i=i.replace(/\n/g," ");for(var F=0,j=i.length;F<j;){_();var D=Math.atan2(p-g,f-d);if(S&&(D+=D>0?-T:T),void 0!==R){var k=D-R;if(k+=k>T?-2*T:k<-T?2*T:0,Math.abs(k)>s)return null}R=D;for(var G=F,B=0;F<j;++F){var U=S?j-F-1:F,z=a*u(c,i[U],l);if(e+r<n&&v+y<o+B+z/2)break;B+=z}if(F!==G){var V=S?i.substring(j-G,j-F):i.substring(G,F);m=0===y?0:(o+B/2-v)/y;N=Object(Y["e"])(d,f,m),A=Object(Y["e"])(g,p,m);L.push([N,A,B/2,D,V]),o+=B}}return L}var q=n("5938"),W=Object(p["j"])(),H=[],Z=[],K=[],J=[];function Q(t){return t[3].declutterBox}var $=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function tt(t,e){return"start"!==e&&"end"!==e||$.test(t)||(e="start"===e?"left":"right"),A[e]}function et(t,e,n){return n>0&&t.push("\n",""),t.push(e,""),t}var nt=function(){function t(t,e,n,r){this.overlaps=n,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=Object(z["c"])(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={}}return t.prototype.createLabel=function(t,e,n,r){var i=t+e+n+r;if(this.labels_[i])return this.labels_[i];var o=r?this.strokeStates[r]:null,s=n?this.fillStates[n]:null,a=this.textStates[e],u=this.pixelRatio,c=[a.scale[0]*u,a.scale[1]*u],l=Array.isArray(t),h=a.justify?A[a.justify]:tt(Array.isArray(t)?t[0]:t,a.textAlign||d["l"]),f=r&&o.lineWidth?o.lineWidth:0,p=l?t:t.split("\n").reduce(et,[]),g=Object(d["o"])(a,p),y=g.width,v=g.height,_=g.widths,m=g.heights,b=g.lineWidths,E=y+f,w=[],x=(E+2)*c[0],O=(v+f)*c[1],S={width:x<0?Math.floor(x):Math.ceil(x),height:O<0?Math.floor(O):Math.ceil(O),contextInstructions:w};if(1==c[0]&&1==c[1]||w.push("scale",c),r){w.push("strokeStyle",o.strokeStyle),w.push("lineWidth",f),w.push("lineCap",o.lineCap),w.push("lineJoin",o.lineJoin),w.push("miterLimit",o.miterLimit);var C=U["h"]?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;C.prototype.setLineDash&&(w.push("setLineDash",[o.lineDash]),w.push("lineDashOffset",o.lineDashOffset))}n&&w.push("fillStyle",s.fillStyle),w.push("textBaseline","middle"),w.push("textAlign","center");for(var I,P=.5-h,R=h*E+P*f,T=[],L=[],M=0,N=0,F=0,j=0,D=0,k=p.length;D<k;D+=2){var G=p[D];if("\n"!==G){var B=p[D+1]||a.font;B!==I&&(r&&T.push("font",B),n&&L.push("font",B),I=B),M=Math.max(M,m[F]);var z=[G,R+P*_[F]+h*(_[F]-b[j]),.5*(f+M)+N];R+=_[F],r&&T.push("strokeText",z),n&&L.push("fillText",z),++F}else N+=M,M=0,R=h*E+P*f,++j}return Array.prototype.push.apply(w,T),Array.prototype.push.apply(w,L),this.labels_[i]=S,S},t.prototype.replayTextBackground_=function(t,e,n,r,i,o,s){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,n),t.lineTo.apply(t,r),t.lineTo.apply(t,i),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),s&&(this.setStrokeStyle_(t,s),t.stroke())},t.prototype.calculateImageOrLabelDimensions_=function(t,e,n,r,i,o,s,a,u,c,l,h,f,d,g,y){s*=h[0],a*=h[1];var v,_=n-s,m=r-a,b=i+u>t?t-u:i,E=o+c>e?e-c:o,w=d[3]+b*h[0]+d[1],x=d[0]+E*h[1]+d[2],O=_-d[3],S=m-d[0];return(g||0!==l)&&(H[0]=O,J[0]=O,H[1]=S,Z[1]=S,Z[0]=O+w,K[0]=Z[0],K[1]=S+x,J[1]=K[1]),0!==l?(v=Object(z["b"])(Object(z["c"])(),n,r,1,1,l,-n,-r),Object(z["a"])(v,H),Object(z["a"])(v,Z),Object(z["a"])(v,K),Object(z["a"])(v,J),Object(p["k"])(Math.min(H[0],Z[0],K[0],J[0]),Math.min(H[1],Z[1],K[1],J[1]),Math.max(H[0],Z[0],K[0],J[0]),Math.max(H[1],Z[1],K[1],J[1]),W)):Object(p["k"])(Math.min(O,O+w),Math.min(S,S+x),Math.max(O,O+w),Math.max(S,S+x),W),f&&(_=Math.round(_),m=Math.round(m)),{drawImageX:_,drawImageY:m,drawImageW:b,drawImageH:E,originX:u,originY:c,declutterBox:{minX:W[0],minY:W[1],maxX:W[2],maxY:W[3],value:y},canvasTransform:v,scale:h}},t.prototype.replayImageOrLabel_=function(t,e,n,r,i,o,s){var a=!(!o&&!s),u=r.declutterBox,c=t.canvas,l=s?s[2]*r.scale[0]/2:0,h=u.minX-l<=c.width/e&&u.maxX+l>=0&&u.minY-l<=c.height/e&&u.maxY+l>=0;return h&&(a&&this.replayTextBackground_(t,H,Z,K,J,o,s),Object(d["n"])(t,r.canvasTransform,i,n,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0},t.prototype.fill_=function(t){if(this.alignFill_){var e=Object(z["a"])(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;t.save(),t.translate(e[0]%n,e[1]%n),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},t.prototype.setStrokeStyle_=function(t,e){t["strokeStyle"]=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},t.prototype.drawLabelWithPointPlacement_=function(t,e,n,r){var i=this.textStates[e],o=this.createLabel(t,e,r,n),s=this.strokeStates[n],a=this.pixelRatio,u=tt(Array.isArray(t)?t[0]:t,i.textAlign||d["l"]),c=A[i.textBaseline||d["m"]],l=s&&s.lineWidth?s.lineWidth:0,h=o.width/a-2*i.scale[0],f=u*h+2*(.5-u)*l,p=c*o.height/a+2*(.5-c)*l;return{label:o,anchorX:f,anchorY:p}},t.prototype.execute_=function(t,e,n,r,i,o,s,a){var u;this.pixelCoordinates_&&Object(g["b"])(n,this.renderedTransform_)?u=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),u=Object(X["c"])(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),Object(z["j"])(this.renderedTransform_,n));var l,h,f,y,v,_,m,b,E,w,x,O,S,C,I,P,R=0,T=r.length,L=0,M=0,N=0,F=null,j=null,D=this.coordinateCache_,k=this.viewRotation_,G=Math.round(1e12*Math.atan2(-n[1],n[0]))/1e12,B={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:k},U=this.instructions!=r||this.overlaps?0:200;while(R<T){var Y=r[R],W=Y[0];switch(W){case c.BEGIN_GEOMETRY:S=Y[1],P=Y[3],S.getGeometry()?void 0===s||Object(p["F"])(s,P.getExtent())?++R:R=Y[2]+1:R=Y[2];break;case c.BEGIN_PATH:M>U&&(this.fill_(t),M=0),N>U&&(t.stroke(),N=0),M||N||(t.beginPath(),y=NaN,v=NaN),++R;break;case c.CIRCLE:L=Y[1];var H=u[L],Z=u[L+1],K=u[L+2],J=u[L+3],$=K-H,tt=J-Z,et=Math.sqrt($*$+tt*tt);t.moveTo(H+et,Z),t.arc(H,Z,et,0,2*Math.PI,!0),++R;break;case c.CLOSE_PATH:t.closePath(),++R;break;case c.CUSTOM:L=Y[1],l=Y[2];var nt=Y[3],rt=Y[4],it=6==Y.length?Y[5]:void 0;B.geometry=nt,B.feature=S,R in D||(D[R]=[]);var ot=D[R];it?it(u,L,l,2,ot):(ot[0]=u[L],ot[1]=u[L+1],ot.length=2),rt(ot,B),++R;break;case c.DRAW_IMAGE:L=Y[1],l=Y[2],b=Y[3],h=Y[4],f=Y[5];var st=Y[6],at=Y[7],ut=Y[8],ct=Y[9],lt=Y[10],ht=Y[11],ft=Y[12],pt=Y[13],dt=Y[14],gt=Y[15];if(!b&&Y.length>=20){E=Y[19],w=Y[20],x=Y[21],O=Y[22];var yt=this.drawLabelWithPointPlacement_(E,w,x,O);b=yt.label,Y[3]=b;var vt=Y[23];h=(yt.anchorX-vt)*this.pixelRatio,Y[4]=h;var _t=Y[24];f=(yt.anchorY-_t)*this.pixelRatio,Y[5]=f,st=b.height,Y[6]=st,pt=b.width,Y[13]=pt}var mt=void 0;Y.length>25&&(mt=Y[25]);var bt=void 0,Et=void 0,wt=void 0;Y.length>17?(bt=Y[16],Et=Y[17],wt=Y[18]):(bt=d["j"],Et=!1,wt=!1),lt&&G?ht+=k:lt||G||(ht-=k);for(var xt=0;L<l;L+=2)if(!(mt&&mt[xt++]<pt/this.pixelRatio)){var Ot=this.calculateImageOrLabelDimensions_(b.width,b.height,u[L],u[L+1],pt,st,h,f,ut,ct,ht,ft,i,bt,Et||wt,S),St=[t,e,b,Ot,at,Et?F:null,wt?j:null];if(a){if("none"===dt)continue;if("obstacle"===dt){a.insert(Ot.declutterBox);continue}var Ct=void 0,It=void 0;if(gt){var Pt=l-L;if(!gt[Pt]){gt[Pt]=St;continue}if(Ct=gt[Pt],delete gt[Pt],It=Q(Ct),a.collides(It))continue}if(a.collides(Ot.declutterBox))continue;Ct&&(a.insert(It),this.replayImageOrLabel_.apply(this,Ct)),a.insert(Ot.declutterBox)}this.replayImageOrLabel_.apply(this,St)}++R;break;case c.DRAW_CHARS:var Rt=Y[1],Tt=Y[2],Lt=Y[3],Mt=Y[4];O=Y[5];var Nt=Y[6],At=Y[7],Ft=Y[8];x=Y[9];var jt=Y[10];E=Y[11],w=Y[12];var Dt=[Y[13],Y[13]],kt=this.textStates[w],Gt=kt.font,Bt=[kt.scale[0]*At,kt.scale[1]*At],Ut=void 0;Gt in this.widths_?Ut=this.widths_[Gt]:(Ut={},this.widths_[Gt]=Ut);var zt=Object(q["a"])(u,Rt,Tt,2),Yt=Math.abs(Bt[0])*Object(d["p"])(Gt,E,Ut);if(Mt||Yt<=zt){var Xt=this.textStates[w].textAlign,Vt=(zt-Yt)*A[Xt],qt=V(u,Rt,Tt,2,E,Vt,Nt,Math.abs(Bt[0]),d["p"],Gt,Ut,G?0:this.viewRotation_);t:if(qt){var Wt=[],Ht=void 0,Zt=void 0,Kt=void 0,Jt=void 0,Qt=void 0;if(x)for(Ht=0,Zt=qt.length;Ht<Zt;++Ht){Qt=qt[Ht],Kt=Qt[4],Jt=this.createLabel(Kt,w,"",x),h=Qt[2]+(Bt[0]<0?-jt:jt),f=Lt*Jt.height+2*(.5-Lt)*jt*Bt[1]/Bt[0]-Ft;Ot=this.calculateImageOrLabelDimensions_(Jt.width,Jt.height,Qt[0],Qt[1],Jt.width,Jt.height,h,f,0,0,Qt[3],Dt,!1,d["j"],!1,S);if(a&&a.collides(Ot.declutterBox))break t;Wt.push([t,e,Jt,Ot,1,null,null])}if(O)for(Ht=0,Zt=qt.length;Ht<Zt;++Ht){Qt=qt[Ht],Kt=Qt[4],Jt=this.createLabel(Kt,w,O,""),h=Qt[2],f=Lt*Jt.height-Ft;Ot=this.calculateImageOrLabelDimensions_(Jt.width,Jt.height,Qt[0],Qt[1],Jt.width,Jt.height,h,f,0,0,Qt[3],Dt,!1,d["j"],!1,S);if(a&&a.collides(Ot.declutterBox))break t;Wt.push([t,e,Jt,Ot,1,null,null])}a&&a.load(Wt.map(Q));for(var $t=0,te=Wt.length;$t<te;++$t)this.replayImageOrLabel_.apply(this,Wt[$t])}}++R;break;case c.END_GEOMETRY:if(void 0!==o){S=Y[1];var ee=o(S,P);if(ee)return ee}++R;break;case c.FILL:U?M++:this.fill_(t),++R;break;case c.MOVE_TO_LINE_TO:for(L=Y[1],l=Y[2],C=u[L],I=u[L+1],_=C+.5|0,m=I+.5|0,_===y&&m===v||(t.moveTo(C,I),y=_,v=m),L+=2;L<l;L+=2)C=u[L],I=u[L+1],_=C+.5|0,m=I+.5|0,L!=l-2&&_===y&&m===v||(t.lineTo(C,I),y=_,v=m);++R;break;case c.SET_FILL_STYLE:F=Y,this.alignFill_=Y[2],M&&(this.fill_(t),M=0,N&&(t.stroke(),N=0)),t.fillStyle=Y[1],++R;break;case c.SET_STROKE_STYLE:j=Y,N&&(t.stroke(),N=0),this.setStrokeStyle_(t,Y),++R;break;case c.STROKE:U?N++:t.stroke(),++R;break;default:++R;break}}M&&this.fill_(t),N&&t.stroke()},t.prototype.execute=function(t,e,n,r,i,o){this.viewRotation_=r,this.execute_(t,e,n,this.instructions,i,void 0,void 0,o)},t.prototype.executeHitDetection=function(t,e,n,r,i){return this.viewRotation_=n,this.execute_(t,1,e,this.hitDetectionInstructions,!0,r,i)},t}(),rt=nt,it=n("0999"),ot=n("38f3"),st=["Polygon","Circle","LineString","Image","Text","Default"],at=function(){function t(t,e,n,r,i,o){this.maxExtent_=t,this.overlaps_=r,this.pixelRatio_=n,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Object(z["c"])(),this.createExecutors_(i)}return t.prototype.clip=function(t,e){var n=this.getClipCoords(e);t.beginPath(),t.moveTo(n[0],n[1]),t.lineTo(n[2],n[3]),t.lineTo(n[4],n[5]),t.lineTo(n[6],n[7]),t.clip()},t.prototype.createExecutors_=function(t){for(var e in t){var n=this.executorsByZIndex_[e];void 0===n&&(n={},this.executorsByZIndex_[e]=n);var r=t[e];for(var i in r){var o=r[i];n[i]=new rt(this.resolution_,this.pixelRatio_,this.overlaps_,o)}}},t.prototype.hasExecutors=function(t){for(var e in this.executorsByZIndex_)for(var n=this.executorsByZIndex_[e],r=0,i=t.length;r<i;++r)if(t[r]in n)return!0;return!1},t.prototype.forEachFeatureAtCoordinate=function(t,e,n,r,i,o){r=Math.round(r);var s=2*r+1,a=Object(z["b"])(this.hitDetectionTransform_,r+.5,r+.5,1/e,-1/e,-n,-t[0],-t[1]),u=!this.hitDetectionContext_;u&&(this.hitDetectionContext_=Object(it["a"])(s,s));var c,l=this.hitDetectionContext_;l.canvas.width!==s||l.canvas.height!==s?(l.canvas.width=s,l.canvas.height=s):u||l.clearRect(0,0,s,s),void 0!==this.renderBuffer_&&(c=Object(p["j"])(),Object(p["q"])(c,t),Object(p["c"])(c,e*(this.renderBuffer_+r),c));var h,f=ct(r);function d(t,e){for(var n=l.getImageData(0,0,s,s).data,a=0,u=f.length;a<u;a++)if(n[f[a]]>0){if(!o||"Image"!==h&&"Text"!==h||-1!==o.indexOf(t)){var c=(f[a]-3)/4,p=r-c%s,d=r-(c/s|0),g=i(t,e,p*p+d*d);if(g)return g}l.clearRect(0,0,s,s);break}}var y,v,_,m,b,E=Object.keys(this.executorsByZIndex_).map(Number);for(E.sort(g["i"]),y=E.length-1;y>=0;--y){var w=E[y].toString();for(_=this.executorsByZIndex_[w],v=st.length-1;v>=0;--v)if(h=st[v],m=_[h],void 0!==m&&(b=m.executeHitDetection(l,a,n,d,c),b))return b}},t.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var n=e[0],r=e[1],i=e[2],o=e[3],s=[n,r,n,o,i,o,i,r];return Object(X["c"])(s,0,8,2,t,s),s},t.prototype.isEmpty=function(){return Object(ot["d"])(this.executorsByZIndex_)},t.prototype.execute=function(t,e,n,r,i,o,s){var a=Object.keys(this.executorsByZIndex_).map(Number);a.sort(g["i"]),this.maxExtent_&&(t.save(),this.clip(t,n));var u,c,l,h,f,p,d=o||st;for(s&&a.reverse(),u=0,c=a.length;u<c;++u){var y=a[u].toString();for(f=this.executorsByZIndex_[y],l=0,h=d.length;l<h;++l){var v=d[l];p=f[v],void 0!==p&&p.execute(t,e,n,r,i,s)}}this.maxExtent_&&t.restore()},t}(),ut={};function ct(t){if(void 0!==ut[t])return ut[t];for(var e=2*t+1,n=t*t,r=new Array(n+1),i=0;i<=t;++i)for(var o=0;o<=t;++o){var s=i*i+o*o;if(s>n)break;var a=r[s];a||(a=[],r[s]=a),a.push(4*((t+i)*e+(t+o))+3),i>0&&a.push(4*((t-i)*e+(t+o))+3),o>0&&(a.push(4*((t+i)*e+(t-o))+3),i>0&&a.push(4*((t-i)*e+(t-o))+3))}for(var u=[],c=(i=0,r.length);i<c;++i)r[i]&&u.push.apply(u,r[i]);return ut[t]=u,u}var lt=at,ht=n("496f"),ft=n("c946"),pt=n("82b0"),dt=n("6cbf"),gt=.5;function yt(t,e,n,r,i,o,s){var a=t[0]*gt,u=t[1]*gt,c=Object(it["a"])(a,u);c.imageSmoothingEnabled=!1;for(var l=c.canvas,h=new ft["a"](c,gt,i,null,s),f=n.length,d=Math.floor(16777215/f),y={},v=1;v<=f;++v){var _=n[v-1],m=_.getStyleFunction()||r;if(r){var b=m(_,o);if(b){Array.isArray(b)||(b=[b]);for(var E=v*d,w="#"+("000000"+E.toString(16)).slice(-6),x=0,O=b.length;x<O;++x){var S=b[x],C=S.getGeometryFunction()(_);if(C&&Object(p["F"])(i,C.getExtent())){var I=S.clone(),P=I.getFill();P&&P.setColor(w);var R=I.getStroke();R&&(R.setColor(w),R.setLineDash(null)),I.setText(void 0);var T=S.getImage();if(T&&0!==T.getOpacity()){var L=T.getImageSize();if(!L)continue;var M=Object(it["a"])(L[0],L[1],void 0,{alpha:!1}),N=M.canvas;M.fillStyle=w,M.fillRect(0,0,N.width,N.height),I.setImage(new dt["a"]({img:N,imgSize:L,anchor:T.getAnchor(),anchorXUnits:pt["a"].PIXELS,anchorYUnits:pt["a"].PIXELS,offset:T.getOrigin(),opacity:1,size:T.getSize(),scale:T.getScale(),rotation:T.getRotation(),rotateWithView:T.getRotateWithView()}))}var A=I.getZIndex()||0,F=y[A];F||(F={},y[A]=F,F["Polygon"]=[],F["Circle"]=[],F["LineString"]=[],F["Point"]=[]),F[C.getType().replace("Multi","")].push(C,I)}}}}}for(var j=Object.keys(y).map(Number).sort(g["i"]),D=(v=0,j.length);v<D;++v){F=y[j[v]];for(var k in F){var G=F[k];for(x=0,O=G.length;x<O;x+=2){h.setStyle(G[x+1]);for(var B=0,U=e.length;B<U;++B)h.setTransform(e[B]),h.drawGeometry(G[x])}}}return c.getImageData(0,0,l.width,l.height)}function vt(t,e,n){var r=[];if(n){var i=Math.floor(Math.round(t[0])*gt),o=Math.floor(Math.round(t[1])*gt),s=4*(Object(Y["b"])(i,0,n.width-1)+Object(Y["b"])(o,0,n.height-1)*n.width),a=n.data[s],u=n.data[s+1],c=n.data[s+2],l=c+256*(u+256*a),h=Math.floor(16777215/e.length);l&&l%h===0&&r.push(e[l/h-1])}return r}var _t=n("30d1"),mt=n("256f"),bt=n("a568"),Et=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wt=function(t){function e(e){var n=t.call(this,e)||this;return n.boundHandleStyleImageChange_=n.handleStyleImageChange_.bind(n),n.animatingOrInteracting_,n.hitDetectionImageData_=null,n.renderedFeatures_=null,n.renderedRevision_=-1,n.renderedResolution_=NaN,n.renderedExtent_=Object(p["j"])(),n.wrappedRenderedExtent_=Object(p["j"])(),n.renderedRotation_,n.renderedCenter_=null,n.renderedProjection_=null,n.renderedRenderOrder_=null,n.replayGroup_=null,n.replayGroupChanged=!0,n.declutterExecutorGroup=null,n.clipping=!0,n.compositionContext_=null,n.opacity_=1,n}return Et(e,t),e.prototype.renderWorlds=function(t,e,n){var r=e.extent,i=e.viewState,o=i.center,s=i.resolution,a=i.projection,u=i.rotation,c=a.getExtent(),l=this.getLayer().getSource(),h=e.pixelRatio,f=e.viewHints,d=!(f[ht["a"].ANIMATING]||f[ht["a"].INTERACTING]),g=this.compositionContext_,y=Math.round(e.size[0]*h),v=Math.round(e.size[1]*h),_=l.getWrapX()&&a.canWrapX(),m=_?Object(p["E"])(c):null,b=_?Math.ceil((r[2]-c[2])/m)+1:1,E=_?Math.floor((r[0]-c[0])/m):0;do{var w=this.getRenderTransform(o,s,u,h,y,v,E*m);t.execute(g,1,w,u,d,void 0,n)}while(++E<b)},e.prototype.setupCompositionContext_=function(){if(1!==this.opacity_){var t=Object(it["a"])(this.context.canvas.width,this.context.canvas.height,B["a"]);this.compositionContext_=t}else this.compositionContext_=this.context},e.prototype.releaseCompositionContext_=function(){if(1!==this.opacity_){var t=this.context.globalAlpha;this.context.globalAlpha=this.opacity_,this.context.drawImage(this.compositionContext_.canvas,0,0),this.context.globalAlpha=t,Object(it["d"])(this.compositionContext_),B["a"].push(this.compositionContext_.canvas),this.compositionContext_=null}},e.prototype.renderDeclutter=function(t){this.declutterExecutorGroup&&(this.setupCompositionContext_(),this.renderWorlds(this.declutterExecutorGroup,t,t.declutterTree),this.releaseCompositionContext_())},e.prototype.renderFrame=function(t,e){var n=t.pixelRatio,r=t.layerStatesArray[t.layerIndex];Object(z["e"])(this.pixelTransform,1/n,1/n),Object(z["d"])(this.inversePixelTransform,this.pixelTransform);var i=Object(z["k"])(this.pixelTransform);this.useContainer(e,i,this.getBackground(t));var o=this.context,s=o.canvas,a=this.replayGroup_,u=this.declutterExecutorGroup;if((!a||a.isEmpty())&&(!u||u.isEmpty()))return null;var c=Math.round(t.size[0]*n),l=Math.round(t.size[1]*n);s.width!=c||s.height!=l?(s.width=c,s.height=l,s.style.transform!==i&&(s.style.transform=i)):this.containerReused||o.clearRect(0,0,c,l),this.preRender(o,t);var h=t.viewState,f=h.projection;this.opacity_=r.opacity,this.setupCompositionContext_();var d=!1,g=!0;if(r.extent&&this.clipping){var y=Object(mt["f"])(r.extent,f);g=Object(p["F"])(y,t.extent),d=g&&!Object(p["g"])(y,t.extent),d&&this.clipUnrotated(this.compositionContext_,t,y)}return g&&this.renderWorlds(a,t),d&&this.compositionContext_.restore(),this.releaseCompositionContext_(),this.postRender(o,t),this.renderedRotation_!==h.rotation&&(this.renderedRotation_=h.rotation,this.hitDetectionImageData_=null),this.container},e.prototype.getFeatures=function(t){return new Promise(function(e){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var n=[this.context.canvas.width,this.context.canvas.height];Object(z["a"])(this.pixelTransform,n);var r=this.renderedCenter_,i=this.renderedResolution_,o=this.renderedRotation_,s=this.renderedProjection_,a=this.wrappedRenderedExtent_,u=this.getLayer(),c=[],l=n[0]*gt,h=n[1]*gt;c.push(this.getRenderTransform(r,i,o,gt,l,h,0).slice());var f=u.getSource(),d=s.getExtent();if(f.getWrapX()&&s.canWrapX()&&!Object(p["g"])(d,a)){var g=a[0],y=Object(p["E"])(d),v=0,_=void 0;while(g<d[0])--v,_=y*v,c.push(this.getRenderTransform(r,i,o,gt,l,h,_).slice()),g+=y;v=0,g=a[2];while(g>d[2])++v,_=y*v,c.push(this.getRenderTransform(r,i,o,gt,l,h,_).slice()),g-=y}this.hitDetectionImageData_=yt(n,c,this.renderedFeatures_,u.getStyleFunction(),a,i,o)}e(vt(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,r,i){var o=this;if(this.replayGroup_){var s,a=e.viewState.resolution,u=e.viewState.rotation,c=this.getLayer(),l={},h=function(t,e,n){var o=Object(L["c"])(t),s=l[o];if(s){if(!0!==s&&n<s.distanceSq){if(0===n)return l[o]=!0,i.splice(i.lastIndexOf(s),1),r(t,c,e);s.geometry=e,s.distanceSq=n}}else{if(0===n)return l[o]=!0,r(t,c,e);i.push(l[o]={feature:t,layer:c,geometry:e,distanceSq:n,callback:r})}},f=[this.replayGroup_];return this.declutterExecutorGroup&&f.push(this.declutterExecutorGroup),f.some((function(r){return s=r.forEachFeatureAtCoordinate(t,a,u,n,h,r===o.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map((function(t){return t.value})):null)})),s}},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t){var e=this.getLayer(),n=e.getSource();if(!n)return!1;var r=t.viewHints[ht["a"].ANIMATING],i=t.viewHints[ht["a"].INTERACTING],o=e.getUpdateWhileAnimating(),s=e.getUpdateWhileInteracting();if(this.ready&&!o&&r||!s&&i)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var a=t.extent,u=t.viewState,c=u.projection,l=u.resolution,h=t.pixelRatio,f=e.getRevision(),d=e.getRenderBuffer(),y=e.getRenderOrder();void 0===y&&(y=_t["a"]);var v=u.center.slice(),_=Object(p["c"])(a,d*l),m=_.slice(),b=[_.slice()],E=c.getExtent();if(n.getWrapX()&&c.canWrapX()&&!Object(p["g"])(E,t.extent)){var w=Object(p["E"])(E),x=Math.max(Object(p["E"])(_)/2,w);_[0]=E[0]-x,_[2]=E[2]+x,Object(bt["g"])(v,c);var O=Object(p["K"])(b[0],c);O[0]<E[0]&&O[2]<E[2]?b.push([O[0]+w,O[1],O[2]+w,O[3]]):O[0]>E[0]&&O[2]>E[2]&&b.push([O[0]-w,O[1],O[2]-w,O[3]])}if(this.ready&&this.renderedResolution_==l&&this.renderedRevision_==f&&this.renderedRenderOrder_==y&&Object(p["g"])(this.wrappedRenderedExtent_,_))return Object(g["b"])(this.renderedExtent_,m)||(this.hitDetectionImageData_=null,this.renderedExtent_=m),this.renderedCenter_=v,this.replayGroupChanged=!1,!0;this.replayGroup_=null;var S,C=new G(Object(_t["c"])(l,h),_,l,h);this.getLayer().getDeclutter()&&(S=new G(Object(_t["c"])(l,h),_,l,h));var I,P=Object(mt["l"])();if(P){for(var R=0,T=b.length;R<T;++R){var L=b[R],M=Object(mt["n"])(L,c);n.loadFeatures(M,Object(mt["o"])(l,c),P)}I=Object(mt["k"])(P,c)}else for(R=0,T=b.length;R<T;++R)n.loadFeatures(b[R],l,c);var N=Object(_t["b"])(l,h),A=!0,F=function(t){var n,r=t.getStyleFunction()||e.getStyleFunction();if(r&&(n=r(t,l)),n){var i=this.renderFeature(t,N,n,C,I,S);A=A&&!i}}.bind(this),j=Object(mt["n"])(_,c),D=n.getFeaturesInExtent(j);y&&D.sort(y);for(R=0,T=D.length;R<T;++R)F(D[R]);this.renderedFeatures_=D,this.ready=A;var k=C.finish(),B=new lt(_,l,h,n.getOverlaps(),k,e.getRenderBuffer());return S&&(this.declutterExecutorGroup=new lt(_,l,h,n.getOverlaps(),S.finish(),e.getRenderBuffer())),this.renderedResolution_=l,this.renderedRevision_=f,this.renderedRenderOrder_=y,this.renderedExtent_=m,this.wrappedRenderedExtent_=_,this.renderedCenter_=v,this.renderedProjection_=c,this.replayGroup_=B,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},e.prototype.renderFeature=function(t,e,n,r,i,o){if(!n)return!1;var s=!1;if(Array.isArray(n))for(var a=0,u=n.length;a<u;++a)s=Object(_t["d"])(r,t,n[a],e,this.boundHandleStyleImageChange_,i,o)||s;else s=Object(_t["d"])(r,t,n,e,this.boundHandleStyleImageChange_,i,o);return s},e}(B["b"]),xt=wt,Ot=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),St=function(t){function e(e){return t.call(this,e)||this}return Ot(e,t),e.prototype.createRenderer=function(){return new xt(this)},e}(r["a"]);e["a"]=St},"40d5":function(t,e,n){var r=n("d039");t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},4105:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("4334"),i=n("0b2d"),o=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(t){function e(e){var n=this,r=e||{};return n=t.call(this,r)||this,r.handleDownEvent&&(n.handleDownEvent=r.handleDownEvent),r.handleDragEvent&&(n.handleDragEvent=r.handleDragEvent),r.handleMoveEvent&&(n.handleMoveEvent=r.handleMoveEvent),r.handleUpEvent&&(n.handleUpEvent=r.handleUpEvent),r.stopDown&&(n.stopDown=r.stopDown),n.handlingDownUpSequence=!1,n.targetPointers=[],n}return o(e,t),e.prototype.getPointerCount=function(){return this.targetPointers.length},e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;var e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==i["a"].POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==i["a"].POINTERUP){var n=this.handleUpEvent(t);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(t.type==i["a"].POINTERDOWN){var r=this.handleDownEvent(t);this.handlingDownUpSequence=r,e=this.stopDown(r)}else t.type==i["a"].POINTERMOVE&&this.handleMoveEvent(t);return!e},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){t.activePointers&&(this.targetPointers=t.activePointers)},e}(r["a"]);function a(t){for(var e=t.length,n=0,r=0,i=0;i<e;i++)n+=t[i].clientX,r+=t[i].clientY;return[n/e,r/e]}e["b"]=s},4334:function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return c}));var r=n("e269"),i=n("bf62"),o=n("ca42"),s=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(t){function e(e){var n=t.call(this)||this;return n.on,n.once,n.un,e&&e.handleEvent&&(n.handleEvent=e.handleEvent),n.map_=null,n.setActive(!0),n}return s(e,t),e.prototype.getActive=function(){return this.get(i["a"].ACTIVE)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(i["a"].ACTIVE,t)},e.prototype.setMap=function(t){this.map_=t},e}(r["a"]);function u(t,e,n){var r=t.getCenterInternal();if(r){var i=[r[0]+e[0],r[1]+e[1]];t.animateInternal({duration:void 0!==n?n:250,easing:o["d"],center:t.getConstrainedCenter(i)})}}function c(t,e,n,r){var i=t.getZoom();if(void 0!==i){var s=t.getConstrainedZoom(i+e),a=t.getResolutionForZoom(s);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:a,anchor:n,duration:void 0!==r?r:250,easing:o["b"]})}}e["a"]=a},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,r="/";e.cwd=function(){return r},e.chdir=function(e){t||(t=n("df7c")),r=t.resolve(e,r)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"44ad":function(t,e,n){var r=n("e330"),i=n("d039"),o=n("c6b6"),s=Object,a=r("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?a(t,""):s(t)}:s},"47e4":function(t,e,n){"use strict";var r=n("521b"),i=n("7a09"),o=n("9abc"),s=n("9769"),a=n("0af5"),u=n("abb7"),c=n("1c48"),l=n("9f5e"),h=n("bb6c"),f=n("b1a2"),p=n("c560"),d=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=function(t){function e(e,n,r){var i=t.call(this)||this;if(i.ends_=[],i.maxDelta_=-1,i.maxDeltaRevision_=-1,Array.isArray(e[0]))i.setCoordinates(e,n);else if(void 0!==n&&r)i.setFlatCoordinates(n,e),i.ends_=r;else{for(var o=i.getLayout(),s=e,a=[],u=[],c=0,h=s.length;c<h;++c){var f=s[c];0===c&&(o=f.getLayout()),Object(l["c"])(a,f.getFlatCoordinates()),u.push(a.length)}i.setFlatCoordinates(o,a),i.ends_=u}return i}return d(e,t),e.prototype.appendLineString=function(t){this.flatCoordinates?Object(l["c"])(this.flatCoordinates,t.getFlatCoordinates().slice()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,r){return r<Object(a["e"])(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(s["a"])(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(s["b"])(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,n,r))},e.prototype.getCoordinateAtM=function(t,e,n){if(this.layout!=r["a"].XYM&&this.layout!=r["a"].XYZM||0===this.flatCoordinates.length)return null;var i=void 0!==e&&e,o=void 0!==n&&n;return Object(f["c"])(this.flatCoordinates,0,this.ends_,this.stride,t,i,o)},e.prototype.getCoordinates=function(){return Object(h["b"])(this.flatCoordinates,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getLineString=function(t){return t<0||this.ends_.length<=t?null:new i["a"](this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLineStrings=function(){for(var t=this.flatCoordinates,e=this.ends_,n=this.layout,r=[],o=0,s=0,a=e.length;s<a;++s){var u=e[s],c=new i["a"](t.slice(o,u),n);r.push(c),o=u}return r},e.prototype.getFlatMidpoints=function(){for(var t=[],e=this.flatCoordinates,n=0,r=this.ends_,i=this.stride,o=0,s=r.length;o<s;++o){var a=r[o],u=Object(f["a"])(e,n,a,i,.5);Object(l["c"])(t,u),n=a}return t},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],i=[];return n.length=Object(c["b"])(this.flatCoordinates,0,this.ends_,this.stride,t,n,0,i),new e(n,r["a"].XY,i)},e.prototype.getType=function(){return"MultiLineString"},e.prototype.intersectsExtent=function(t){return Object(p["b"])(this.flatCoordinates,0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=Object(u["c"])(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},e}(o["a"]);e["a"]=g},"480c":function(t,e,n){"use strict";var r=n("1af9"),i={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"},o=n("38f3"),s=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(t){function e(e){var n=this,r=e||{},i=Object(o["a"])({},r);return delete i.preload,delete i.useInterimTilesOnError,n=t.call(this,i)||this,n.on,n.once,n.un,n.setPreload(void 0!==r.preload?r.preload:0),n.setUseInterimTilesOnError(void 0===r.useInterimTilesOnError||r.useInterimTilesOnError),n}return s(e,t),e.prototype.getPreload=function(){return this.get(i.PRELOAD)},e.prototype.setPreload=function(t){this.set(i.PRELOAD,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(i.USE_INTERIM_TILES_ON_ERROR)},e.prototype.setUseInterimTilesOnError=function(t){this.set(i.USE_INTERIM_TILES_ON_ERROR,t)},e.prototype.getData=function(e){return t.prototype.getData.call(this,e)},e}(r["a"]),u=a,c=n("137e"),l=n("7f98"),h=n("2efc"),f=n("dc07"),p=n("acc1"),d=n("0b0e"),g=n("a896"),y=n("0af5"),v=n("256f"),_=n("1300"),m=n("9f5e"),b=n("345d"),E=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),w=function(t){function e(e){var n=t.call(this,e)||this;return n.extentChanged=!0,n.renderedExtent_=null,n.renderedPixelRatio,n.renderedProjection=null,n.renderedRevision,n.renderedTiles=[],n.newTiles_=!1,n.tmpExtent=Object(y["j"])(),n.tmpTileRange_=new f["b"](0,0,0,0),n}return E(e,t),e.prototype.isDrawableTile=function(t){var e=this.getLayer(),n=t.getState(),r=e.getUseInterimTilesOnError();return n==p["a"].LOADED||n==p["a"].EMPTY||n==p["a"].ERROR&&!r},e.prototype.getTile=function(t,e,n,r){var i=r.pixelRatio,o=r.viewState.projection,s=this.getLayer(),a=s.getSource(),u=a.getTile(t,e,n,i,o);return u.getState()==p["a"].ERROR&&(s.getUseInterimTilesOnError()?s.getPreload()>0&&(this.newTiles_=!0):u.setState(p["a"].LOADED)),this.isDrawableTile(u)||(u=u.getInterimTile()),u},e.prototype.getData=function(t){var e=this.frameState;if(!e)return null;var n=this.getLayer(),r=Object(g["a"])(e.pixelToCoordinateTransform,t.slice()),i=n.getExtent();if(i&&!Object(y["f"])(i,r))return null;for(var o=e.pixelRatio,s=e.viewState.projection,a=e.viewState,u=n.getRenderSource(),c=u.getTileGridForProjection(a.projection),f=u.getTilePixelRatio(e.pixelRatio),d=c.getZForResolution(a.resolution);d>=c.getMinZoom();--d){var v=c.getTileCoordForCoordAndZ(r,d),_=u.getTile(d,v[1],v[2],o,s);if(!(_ instanceof l["a"]||_ instanceof h["a"]))return null;if(_.getState()===p["a"].LOADED){var m=c.getOrigin(d),E=Object(b["c"])(c.getTileSize(d)),w=c.getResolution(d),x=Math.floor(f*((r[0]-m[0])/w-v[1]*E[0])),O=Math.floor(f*((m[1]-r[1])/w-v[2]*E[1])),S=Math.round(f*u.getGutterForProjection(a.projection));return this.getImageData(_.getImage(),x+S,O+S)}}return null},e.prototype.loadedTileCallback=function(e,n,r){return!!this.isDrawableTile(r)&&t.prototype.loadedTileCallback.call(this,e,n,r)},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,e){var n=t.layerStatesArray[t.layerIndex],r=t.viewState,i=r.projection,s=r.resolution,a=r.center,u=r.rotation,c=t.pixelRatio,l=this.getLayer(),h=l.getSource(),f=h.getRevision(),b=h.getTileGridForProjection(i),E=b.getZForResolution(s,h.zDirection),w=b.getResolution(E),x=t.extent,O=t.viewState.resolution,S=h.getTilePixelRatio(c),C=Math.round(Object(y["E"])(x)/O*c),I=Math.round(Object(y["z"])(x)/O*c),P=n.extent&&Object(v["f"])(n.extent,i);P&&(x=Object(y["A"])(x,Object(v["f"])(n.extent,i)));var R=w*C/2/S,T=w*I/2/S,L=[a[0]-R,a[1]-T,a[0]+R,a[1]+T],M=b.getTileRangeForExtentAndZ(x,E),N={};N[E]={};var A=this.createLoadedTileFinder(h,i,N),F=this.tmpExtent,j=this.tmpTileRange_;this.newTiles_=!1;for(var D=u?Object(y["B"])(r.center,O,u,t.size):void 0,k=M.minX;k<=M.maxX;++k)for(var G=M.minY;G<=M.maxY;++G)if(!u||b.tileCoordIntersectsViewport([E,k,G],D)){var B=this.getTile(E,k,G,t);if(this.isDrawableTile(B)){var U=Object(_["c"])(this);if(B.getState()==p["a"].LOADED){N[E][B.tileCoord.toString()]=B;var z=B.inTransition(U);z&&1!==n.opacity&&(B.endTransition(U),z=!1),this.newTiles_||!z&&-1!==this.renderedTiles.indexOf(B)||(this.newTiles_=!0)}if(1===B.getAlpha(U,t.time))continue}var Y=b.getTileCoordChildTileRange(B.tileCoord,j,F),X=!1;Y&&(X=A(E+1,Y)),X||b.forEachTileCoordParentTileRange(B.tileCoord,A,j,F)}var V=w/s*c/S;Object(g["b"])(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/c,1/c,u,-C/2,-I/2);var q=Object(g["k"])(this.pixelTransform);this.useContainer(e,q,this.getBackground(t));var W=this.context,H=W.canvas;Object(g["d"])(this.inversePixelTransform,this.pixelTransform),Object(g["b"])(this.tempTransform,C/2,I/2,V,V,0,-C/2,-I/2),H.width!=C||H.height!=I?(H.width=C,H.height=I):this.containerReused||W.clearRect(0,0,C,I),P&&this.clipUnrotated(W,t,P),h.getInterpolate()||Object(o["a"])(W,d["a"]),this.preRender(W,t),this.renderedTiles.length=0;var Z,K,J,Q=Object.keys(N).map(Number);Q.sort(m["i"]),1!==n.opacity||this.containerReused&&!h.getOpaque(t.viewState.projection)?(Z=[],K=[]):Q=Q.reverse();for(var $=Q.length-1;$>=0;--$){var tt=Q[$],et=h.getTilePixelSize(tt,c,i),nt=b.getResolution(tt),rt=nt/w,it=et[0]*rt*V,ot=et[1]*rt*V,st=b.getTileCoordForCoordAndZ(Object(y["C"])(L),tt),at=b.getTileCoordExtent(st),ut=Object(g["a"])(this.tempTransform,[S*(at[0]-L[0])/w,S*(L[3]-at[3])/w]),ct=S*h.getGutterForProjection(i),lt=N[tt];for(var ht in lt){B=lt[ht];var ft=B.tileCoord,pt=st[1]-ft[1],dt=Math.round(ut[0]-(pt-1)*it),gt=st[2]-ft[2],yt=Math.round(ut[1]-(gt-1)*ot),vt=(k=Math.round(ut[0]-pt*it),G=Math.round(ut[1]-gt*ot),dt-k),_t=yt-G,mt=E===tt,bt=(z=mt&&1!==B.getAlpha(Object(_["c"])(this),t.time),!1);if(!z)if(Z){J=[k,G,k+vt,G,k+vt,G+_t,k,G+_t];for(var Et=0,wt=Z.length;Et<wt;++Et)if(E!==tt&&tt<K[Et]){var xt=Z[Et];Object(y["F"])([k,G,k+vt,G+_t],[xt[0],xt[3],xt[4],xt[7]])&&(bt||(W.save(),bt=!0),W.beginPath(),W.moveTo(J[0],J[1]),W.lineTo(J[2],J[3]),W.lineTo(J[4],J[5]),W.lineTo(J[6],J[7]),W.moveTo(xt[6],xt[7]),W.lineTo(xt[4],xt[5]),W.lineTo(xt[2],xt[3]),W.lineTo(xt[0],xt[1]),W.clip())}Z.push(J),K.push(tt)}else W.clearRect(k,G,vt,_t);this.drawTileImage(B,t,k,G,vt,_t,ct,mt),Z&&!z?(bt&&W.restore(),this.renderedTiles.unshift(B)):this.renderedTiles.push(B),this.updateUsedTiles(t.usedTiles,h,B)}}return this.renderedRevision=f,this.renderedResolution=w,this.extentChanged=!this.renderedExtent_||!Object(y["o"])(this.renderedExtent_,L),this.renderedExtent_=L,this.renderedPixelRatio=c,this.renderedProjection=i,this.manageTilePyramid(t,h,b,c,i,x,E,l.getPreload()),this.scheduleExpireCache(t,h),this.postRender(W,t),n.extent&&W.restore(),Object(o["a"])(W,d["b"]),q!==H.style.transform&&(H.style.transform=q),this.container},e.prototype.drawTileImage=function(t,e,n,r,i,o,s,a){var u=this.getTileImage(t);if(u){var c=Object(_["c"])(this),l=e.layerStatesArray[e.layerIndex],h=l.opacity*(a?t.getAlpha(c,e.time):1),f=h!==this.context.globalAlpha;f&&(this.context.save(),this.context.globalAlpha=h),this.context.drawImage(u,s,s,u.width-2*s,u.height-2*s,n,r,i,o),f&&this.context.restore(),h!==l.opacity?e.animate=!0:a&&t.endTransition(c)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getTileImage=function(t){return t.getImage()},e.prototype.scheduleExpireCache=function(t,e){if(e.canExpireCache()){var n=function(t,e,n){var r=Object(_["c"])(t);r in n.usedTiles&&t.expireCache(n.viewState.projection,n.usedTiles[r])}.bind(null,e);t.postRenderFunctions.push(n)}},e.prototype.updateUsedTiles=function(t,e,n){var r=Object(_["c"])(e);r in t||(t[r]={}),t[r][n.getKey()]=!0},e.prototype.manageTilePyramid=function(t,e,n,r,i,o,s,a,u){var c=Object(_["c"])(e);c in t.wantedTiles||(t.wantedTiles[c]={});var l,h,f,d,g,v,m=t.wantedTiles[c],b=t.tileQueue,E=n.getMinZoom(),w=t.viewState.rotation,x=w?Object(y["B"])(t.viewState.center,t.viewState.resolution,w,t.size):void 0,O=0;for(v=E;v<=s;++v)for(h=n.getTileRangeForExtentAndZ(o,v,h),f=n.getResolution(v),d=h.minX;d<=h.maxX;++d)for(g=h.minY;g<=h.maxY;++g)w&&!n.tileCoordIntersectsViewport([v,d,g],x)||(s-v<=a?(++O,l=e.getTile(v,d,g,r,i),l.getState()==p["a"].IDLE&&(m[l.getKey()]=!0,b.isKeyQueued(l.getKey())||b.enqueue([l,c,n.getTileCoordCenter(l.tileCoord),f])),void 0!==u&&u(l)):e.useTile(v,d,g,i));e.updateCacheSize(O,i)},e}(c["b"]),x=w,O=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),S=function(t){function e(e){return t.call(this,e)||this}return O(e,t),e.prototype.createRenderer=function(){return new x(this)},e}(u);e["a"]=S},"485a":function(t,e,n){var r=n("c65b"),i=n("1626"),o=n("861d"),s=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&i(n=t.toString)&&!o(a=r(n,t)))return a;if(i(n=t.valueOf)&&!o(a=r(n,t)))return a;if("string"!==e&&i(n=t.toString)&&!o(a=r(n,t)))return a;throw s("Can't convert object to primitive value")}},"496f":function(t,e,n){"use strict";e["a"]={ANIMATING:0,INTERACTING:1}},"4ba9":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend(),n=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var s=0;s<r;s++)t[e+s]^=o[s]}});return e.Decryptor=n,e}(),t.mode.OFB}))},"4cdf":function(t,e,n){"use strict";var r=n("e269"),i=n("01d4"),o=n("92fa"),s=n("1e8d"),a=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(t){function e(e){var n=t.call(this)||this;if(n.on,n.once,n.un,n.id_=void 0,n.geometryName_="geometry",n.style_=null,n.styleFunction_=void 0,n.geometryChangeKey_=null,n.addChangeListener(n.geometryName_,n.handleGeometryChanged_),e)if("function"===typeof e.getSimplifiedGeometry){var r=e;n.setGeometry(r)}else{var i=e;n.setProperties(i)}return n}return a(e,t),e.prototype.clone=function(){var t=new e(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());var n=this.getGeometry();n&&t.setGeometry(n.clone());var r=this.getStyle();return r&&t.setStyle(r),t},e.prototype.getGeometry=function(){return this.get(this.geometryName_)},e.prototype.getId=function(){return this.id_},e.prototype.getGeometryName=function(){return this.geometryName_},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.handleGeometryChange_=function(){this.changed()},e.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(Object(s["c"])(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=Object(s["a"])(t,i["a"].CHANGE,this.handleGeometryChange_,this)),this.changed()},e.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},e.prototype.setStyle=function(t){this.style_=t,this.styleFunction_=t?c(t):void 0,this.changed()},e.prototype.setId=function(t){this.id_=t,this.changed()},e.prototype.setGeometryName=function(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()},e}(r["a"]);function c(t){if("function"===typeof t)return t;var e;if(Array.isArray(t))e=t;else{Object(o["a"])("function"===typeof t.getZIndex,41);var n=t;e=[n]}return function(){return e}}e["a"]=u},"4d64":function(t,e,n){var r=n("fc6a"),i=n("23cb"),o=n("07fa"),s=function(t){return function(e,n,s){var a,u=r(e),c=o(u),l=i(s,c);if(t&&n!=n){while(c>l)if(a=u[l++],a!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},"4d98":function(t,e,n){"use strict";function r(t,e,n,r){while(e<n-r){for(var i=0;i<r;++i){var o=t[e+i];t[e+i]=t[n-r+i],t[n-r+i]=o}e+=r,n-=r}}function i(t,e,n,r){for(var i=0,o=t[n-r],s=t[n-r+1];e<n;e+=r){var a=t[e],u=t[e+1];i+=(a-o)*(u+s),o=a,s=u}return 0===i?void 0:i>0}function o(t,e,n,r,o){for(var s=void 0!==o&&o,a=0,u=n.length;a<u;++a){var c=n[a],l=i(t,e,c,r);if(0===a){if(s&&l||!s&&!l)return!1}else if(s&&!l||!s&&l)return!1;e=c}return!0}function s(t,e,n,r,i){for(var s=0,a=n.length;s<a;++s){var u=n[s];if(!o(t,e,u,r,i))return!1;u.length&&(e=u[u.length-1])}return!0}function a(t,e,n,o,s){for(var a=void 0!==s&&s,u=0,c=n.length;u<c;++u){var l=n[u],h=i(t,e,l,o),f=0===u?a&&h||!a&&!h:a&&!h||!a&&h;f&&r(t,e,l,o),e=l}return e}function u(t,e,n,r,i){for(var o=0,s=n.length;o<s;++o)e=a(t,e,n[o],r,i);return e}function c(t,e){for(var n=[],r=0,o=0,s=0,a=e.length;s<a;++s){var u=e[s];if(i(t,r,u,2)){if(0===n.length)continue;n[n.length-1].push(e[o])}else n.push(e.slice(o,s+1));o=s+1,r=u}return n}n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return u})),n.d(e,"a",(function(){return c}))},"509b":function(t,e,n){"use strict";var r=n("7238"),i=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(t){function e(e,n,r,i,o,s){var a=t.call(this,e,n,o)||this;return a.originalEvent=r,a.pixel_=null,a.coordinate_=null,a.dragging=void 0!==i&&i,a.activePointers=s,a}return i(e,t),Object.defineProperty(e.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(t){this.pixel_=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(t){this.coordinate_=t},enumerable:!1,configurable:!0}),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){t.prototype.stopPropagation.call(this),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()},e}(r["a"]);e["a"]=o},"50c4":function(t,e,n){var r=n("5926"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"521b":function(t,e,n){"use strict";e["a"]={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},5564:function(t,e,n){"use strict";var r=n("e269"),i=n("df4c"),o=n("1300"),s=n("92fa"),a=n("38f3"),u=n("7fc9"),c=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un,n.background_=e.background;var r=Object(a["a"])({},e);return"object"===typeof e.properties&&(delete r.properties,Object(a["a"])(r,e.properties)),r[i["a"].OPACITY]=void 0!==e.opacity?e.opacity:1,Object(s["a"])("number"===typeof r[i["a"].OPACITY],64),r[i["a"].VISIBLE]=void 0===e.visible||e.visible,r[i["a"].Z_INDEX]=e.zIndex,r[i["a"].MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,r[i["a"].MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,r[i["a"].MIN_ZOOM]=void 0!==e.minZoom?e.minZoom:-1/0,r[i["a"].MAX_ZOOM]=void 0!==e.maxZoom?e.maxZoom:1/0,n.className_=void 0!==r.className?r.className:"ol-layer",delete r.className,n.setProperties(r),n.state_=null,n}return c(e,t),e.prototype.getBackground=function(){return this.background_},e.prototype.getClassName=function(){return this.className_},e.prototype.getLayerState=function(t){var e=this.state_||{layer:this,managed:void 0===t||t},n=this.getZIndex();return e.opacity=Object(u["b"])(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==n||e.managed?n: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},e.prototype.getLayersArray=function(t){return Object(o["b"])()},e.prototype.getLayerStatesArray=function(t){return Object(o["b"])()},e.prototype.getExtent=function(){return this.get(i["a"].EXTENT)},e.prototype.getMaxResolution=function(){return this.get(i["a"].MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(i["a"].MIN_RESOLUTION)},e.prototype.getMinZoom=function(){return this.get(i["a"].MIN_ZOOM)},e.prototype.getMaxZoom=function(){return this.get(i["a"].MAX_ZOOM)},e.prototype.getOpacity=function(){return this.get(i["a"].OPACITY)},e.prototype.getSourceState=function(){return Object(o["b"])()},e.prototype.getVisible=function(){return this.get(i["a"].VISIBLE)},e.prototype.getZIndex=function(){return this.get(i["a"].Z_INDEX)},e.prototype.setBackground=function(t){this.background_=t,this.changed()},e.prototype.setExtent=function(t){this.set(i["a"].EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(i["a"].MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(i["a"].MIN_RESOLUTION,t)},e.prototype.setMaxZoom=function(t){this.set(i["a"].MAX_ZOOM,t)},e.prototype.setMinZoom=function(t){this.set(i["a"].MIN_ZOOM,t)},e.prototype.setOpacity=function(t){Object(s["a"])("number"===typeof t,64),this.set(i["a"].OPACITY,t)},e.prototype.setVisible=function(t){this.set(i["a"].VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(i["a"].Z_INDEX,t)},e.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),t.prototype.disposeInternal.call(this)},e}(r["a"]);e["a"]=l},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.27.2",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(t,e,n){var r=n("d066"),i=n("e330"),o=n("241c"),s=n("7418"),a=n("825a"),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=s.f;return n?u(e,n(t)):e}},"577e":function(t,e,n){var r=n("f5df"),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},"57cb":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return a}));var r=n("9f5e");function i(){return!0}function o(){return!1}function s(){}function a(t){var e,n,i,o=!1;return function(){var s=Array.prototype.slice.call(arguments);return o&&this===i&&Object(r["b"])(s,n)||(o=!0,i=this,n=s,e=t.apply(this,arguments)),e}}},5831:function(t,e,n){"use strict";var r=n("e300"),i=n("183a"),o=n("cef7"),s=n("01d4"),a=n("7b4f"),u=n("25a5"),c=n.n(u),l=n("0af5"),h=n("1300"),f=n("38f3"),p=function(){function t(t){this.rbush_=new c.a(t),this.items_={}}return t.prototype.insert=function(t,e){var n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(n),this.items_[Object(h["c"])(e)]=n},t.prototype.load=function(t,e){for(var n=new Array(e.length),r=0,i=e.length;r<i;r++){var o=t[r],s=e[r],a={minX:o[0],minY:o[1],maxX:o[2],maxY:o[3],value:s};n[r]=a,this.items_[Object(h["c"])(s)]=a}this.rbush_.load(n)},t.prototype.remove=function(t){var e=Object(h["c"])(t),n=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(n)},t.prototype.update=function(t,e){var n=this.items_[Object(h["c"])(e)],r=[n.minX,n.minY,n.maxX,n.maxY];Object(l["o"])(r,t)||(this.remove(e),this.insert(t,e))},t.prototype.getAll=function(){var t=this.rbush_.all();return t.map((function(t){return t.value}))},t.prototype.getInExtent=function(t){var e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]},n=this.rbush_.search(e);return n.map((function(t){return t.value}))},t.prototype.forEach=function(t){return this.forEach_(this.getAll(),t)},t.prototype.forEachInExtent=function(t,e){return this.forEach_(this.getInExtent(t),e)},t.prototype.forEach_=function(t,e){for(var n,r=0,i=t.length;r<i;r++)if(n=e(t[r]),n)return n;return n},t.prototype.isEmpty=function(){return Object(f["d"])(this.items_)},t.prototype.clear=function(){this.rbush_.clear(),this.items_={}},t.prototype.getExtent=function(t){var e=this.rbush_.toJSON();return Object(l["k"])(e.minX,e.minY,e.maxX,e.maxY,t)},t.prototype.concat=function(t){for(var e in this.rbush_.load(t.rbush_.all()),t.items_)this.items_[e]=t.items_[e]},t}(),d=p,g=n("ff80"),y=n("a43f"),v=n("57cb");n("256f");function _(t,e){return[[-1/0,-1/0,1/0,1/0]]}var m=n("92fa"),b=n("9f5e"),E=n("1e8d"),w=!1;function x(t,e,n,r,i,o,s){var a=new XMLHttpRequest;a.open("GET","function"===typeof t?t(n,r,i):t,!0),"arraybuffer"==e.getType()&&(a.responseType="arraybuffer"),a.withCredentials=w,a.onload=function(t){if(!a.status||a.status>=200&&a.status<300){var r=e.getType(),u=void 0;"json"==r||"text"==r?u=a.responseText:"xml"==r?(u=a.responseXML,u||(u=(new DOMParser).parseFromString(a.responseText,"application/xml"))):"arraybuffer"==r&&(u=a.response),u?o(e.readFeatures(u,{extent:n,featureProjection:i}),e.readProjection(u)):s()}else s()},a.onerror=s,a.send()}function O(t,e){return function(n,r,i,o,s){var a=this;x(t,e,n,r,i,(function(t,e){a.addFeatures(t),void 0!==o&&o(t)}),s||v["c"])}}var S=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),C=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.feature=n,i.features=r,i}return S(e,t),e}(o["a"]),I=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{attributions:i.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===i.wrapX||i.wrapX})||this,n.on,n.once,n.un,n.loader_=v["c"],n.format_=i.format,n.overlaps_=void 0===i.overlaps||i.overlaps,n.url_=i.url,void 0!==i.loader?n.loader_=i.loader:void 0!==n.url_&&(Object(m["a"])(n.format_,7),n.loader_=O(n.url_,n.format_)),n.strategy_=void 0!==i.strategy?i.strategy:_;var o,s,a=void 0===i.useSpatialIndex||i.useSpatialIndex;return n.featuresRtree_=a?new d:null,n.loadedExtentsRtree_=new d,n.loadingExtentsCount_=0,n.nullGeometryFeatures_={},n.idIndex_={},n.uidIndex_={},n.featureChangeKeys_={},n.featuresCollection_=null,Array.isArray(i.features)?s=i.features:i.features&&(o=i.features,s=o.getArray()),a||void 0!==o||(o=new r["a"](s)),void 0!==s&&n.addFeaturesInternal(s),void 0!==o&&n.bindFeaturesCollection_(o),n}return S(e,t),e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var e=Object(h["c"])(t);if(this.addToIndex_(e,t)){this.setupChangeEvents_(e,t);var n=t.getGeometry();if(n){var r=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(r,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new C(y["a"].ADDFEATURE,t))}else this.featuresCollection_&&this.featuresCollection_.remove(t)},e.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[Object(E["a"])(e,s["a"].CHANGE,this.handleFeatureChange_,this),Object(E["a"])(e,a["a"].PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,e){var n=!0,r=e.getId();return void 0!==r&&(r.toString()in this.idIndex_?n=!1:this.idIndex_[r.toString()]=e),n&&(Object(m["a"])(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),n},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var e=[],n=[],r=[],i=0,o=t.length;i<o;i++){var s=t[i],a=Object(h["c"])(s);this.addToIndex_(a,s)&&n.push(s)}i=0;for(var u=n.length;i<u;i++){s=n[i],a=Object(h["c"])(s);this.setupChangeEvents_(a,s);var c=s.getGeometry();if(c){var l=c.getExtent();e.push(l),r.push(s)}else this.nullGeometryFeatures_[a]=s}if(this.featuresRtree_&&this.featuresRtree_.load(e,r),this.hasListener(y["a"].ADDFEATURE)){i=0;for(var f=n.length;i<f;i++)this.dispatchEvent(new C(y["a"].ADDFEATURE,n[i]))}},e.prototype.bindFeaturesCollection_=function(t){var e=!1;this.addEventListener(y["a"].ADDFEATURE,(function(n){e||(e=!0,t.push(n.feature),e=!1)})),this.addEventListener(y["a"].REMOVEFEATURE,(function(n){e||(e=!0,t.remove(n.feature),e=!1)})),t.addEventListener(i["a"].ADD,function(t){e||(e=!0,this.addFeature(t.element),e=!1)}.bind(this)),t.addEventListener(i["a"].REMOVE,function(t){e||(e=!0,this.removeFeature(t.element),e=!1)}.bind(this)),this.featuresCollection_=t},e.prototype.clear=function(t){if(t){for(var e in this.featureChangeKeys_){var n=this.featureChangeKeys_[e];n.forEach(E["c"])}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var r=function(t){this.removeFeatureInternal(t)}.bind(this);for(var i in this.featuresRtree_.forEach(r),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[i])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var o=new C(y["a"].CLEAR);this.dispatchEvent(o),this.changed()},e.prototype.forEachFeature=function(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},e.prototype.forEachFeatureAtCoordinateDirect=function(t,e){var n=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(n,(function(n){var r=n.getGeometry();return r.intersectsCoordinate(t)?e(n):void 0}))},e.prototype.forEachFeatureInExtent=function(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},e.prototype.forEachFeatureIntersectingExtent=function(t,e){return this.forEachFeatureInExtent(t,(function(n){var r=n.getGeometry();if(r.intersectsExtent(t)){var i=e(n);if(i)return i}}))},e.prototype.getFeaturesCollection=function(){return this.featuresCollection_},e.prototype.getFeatures=function(){var t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),Object(f["d"])(this.nullGeometryFeatures_)||Object(b["c"])(t,Object(f["c"])(this.nullGeometryFeatures_))),t},e.prototype.getFeaturesAtCoordinate=function(t){var e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e},e.prototype.getFeaturesInExtent=function(t,e){var n=this;if(this.featuresRtree_){var r=e&&e.canWrapX()&&this.getWrapX();if(!r)return this.featuresRtree_.getInExtent(t);var i=Object(l["J"])(t,e);return[].concat.apply([],i.map((function(t){return n.featuresRtree_.getInExtent(t)})))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},e.prototype.getClosestFeatureToCoordinate=function(t,e){var n=t[0],r=t[1],i=null,o=[NaN,NaN],s=1/0,a=[-1/0,-1/0,1/0,1/0],u=e||v["b"];return this.featuresRtree_.forEachInExtent(a,(function(t){if(u(t)){var e=t.getGeometry(),c=s;if(s=e.closestPointXY(n,r,o,s),s<c){i=t;var l=Math.sqrt(s);a[0]=n-l,a[1]=r-l,a[2]=n+l,a[3]=r+l}}})),i},e.prototype.getExtent=function(t){return this.featuresRtree_.getExtent(t)},e.prototype.getFeatureById=function(t){var e=this.idIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getFeatureByUid=function(t){var e=this.uidIndex_[t];return void 0!==e?e:null},e.prototype.getFormat=function(){return this.format_},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.getUrl=function(){return this.url_},e.prototype.handleFeatureChange_=function(t){var e=t.target,n=Object(h["c"])(e),r=e.getGeometry();if(r){var i=r.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(i,e)):this.featuresRtree_&&this.featuresRtree_.update(i,e)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[n]=e);var o=e.getId();if(void 0!==o){var s=o.toString();this.idIndex_[s]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[s]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[n]=e;this.changed(),this.dispatchEvent(new C(y["a"].CHANGEFEATURE,e))},e.prototype.hasFeature=function(t){var e=t.getId();return void 0!==e?e in this.idIndex_:Object(h["c"])(t)in this.uidIndex_},e.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&Object(f["d"])(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()},e.prototype.loadFeatures=function(t,e,n){for(var r=this.loadedExtentsRtree_,i=this.strategy_(t,e,n),o=function(t,o){var a=i[t],u=r.forEachInExtent(a,(function(t){return Object(l["g"])(t.extent,a)}));u||(++s.loadingExtentsCount_,s.dispatchEvent(new C(y["a"].FEATURESLOADSTART)),s.loader_.call(s,a,e,n,function(t){--this.loadingExtentsCount_,this.dispatchEvent(new C(y["a"].FEATURESLOADEND,void 0,t))}.bind(s),function(){--this.loadingExtentsCount_,this.dispatchEvent(new C(y["a"].FEATURESLOADERROR))}.bind(s)),r.insert(a,{extent:a.slice()}))},s=this,a=0,u=i.length;a<u;++a)o(a,u);this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),t.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var e,n=this.loadedExtentsRtree_;n.forEachInExtent(t,(function(n){if(Object(l["o"])(n.extent,t))return e=n,!0})),e&&n.remove(e)},e.prototype.removeFeature=function(t){if(t){var e=Object(h["c"])(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t);var n=this.removeFeatureInternal(t);n&&this.changed()}},e.prototype.removeFeatureInternal=function(t){var e=Object(h["c"])(t),n=this.featureChangeKeys_[e];if(n){n.forEach(E["c"]),delete this.featureChangeKeys_[e];var r=t.getId();return void 0!==r&&delete this.idIndex_[r.toString()],delete this.uidIndex_[e],this.dispatchEvent(new C(y["a"].REMOVEFEATURE,t)),t}},e.prototype.removeFromIdIndex_=function(t){var e=!1;for(var n in this.idIndex_)if(this.idIndex_[n]===t){delete this.idIndex_[n],e=!0;break}return e},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){Object(m["a"])(this.format_,7),this.url_=t,this.setLoader(O(t,this.format_))},e}(g["a"]);e["a"]=I},5926:function(t,e,n){var r=n("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},"592d":function(t,e,n){"use strict";e["a"]={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},5938:function(t,e,n){"use strict";function r(t,e,n,r){for(var i=t[e],o=t[e+1],s=0,a=e+r;a<n;a+=r){var u=t[a],c=t[a+1];s+=Math.sqrt((u-i)*(u-i)+(c-o)*(c-o)),i=u,o=c}return s}n.d(e,"a",(function(){return r}))},"595b":function(t,e,n){(function(t){!function(t,n){n(e)}(0,(function(e){"use strict";var n=6371008.8,r={centimeters:637100880,centimetres:637100880,degrees:57.22891354143274,feet:20902260.511392,inches:39.37*n,kilometers:6371.0088,kilometres:6371.0088,meters:n,metres:n,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:n/1852,radians:1,yards:6967335.223679999},i={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/n,yards:1.0936133},o={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function s(t,e,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=e||{},r.geometry=t,r}function a(t,e,n){switch(t){case"Point":return u(e).geometry;case"LineString":return f(e).geometry;case"Polygon":return l(e).geometry;case"MultiPoint":return y(e).geometry;case"MultiLineString":return g(e).geometry;case"MultiPolygon":return v(e).geometry;default:throw new Error(t+" is invalid")}}function u(t,e,n){if(void 0===n&&(n={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!P(t[0])||!P(t[1]))throw new Error("coordinates must contain numbers");return s({type:"Point",coordinates:t},e,n)}function c(t,e,n){return void 0===n&&(n={}),d(t.map((function(t){return u(t,e)})),n)}function l(t,e,n){void 0===n&&(n={});for(var r=0,i=t;r<i.length;r++){var o=i[r];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<o[o.length-1].length;a++)if(o[o.length-1][a]!==o[0][a])throw new Error("First and last Position are not equivalent.")}return s({type:"Polygon",coordinates:t},e,n)}function h(t,e,n){return void 0===n&&(n={}),d(t.map((function(t){return l(t,e)})),n)}function f(t,e,n){if(void 0===n&&(n={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");return s({type:"LineString",coordinates:t},e,n)}function p(t,e,n){return void 0===n&&(n={}),d(t.map((function(t){return f(t,e)})),n)}function d(t,e){void 0===e&&(e={});var n={type:"FeatureCollection"};return e.id&&(n.id=e.id),e.bbox&&(n.bbox=e.bbox),n.features=t,n}function g(t,e,n){return void 0===n&&(n={}),s({type:"MultiLineString",coordinates:t},e,n)}function y(t,e,n){return void 0===n&&(n={}),s({type:"MultiPoint",coordinates:t},e,n)}function v(t,e,n){return void 0===n&&(n={}),s({type:"MultiPolygon",coordinates:t},e,n)}function _(t,e,n){return void 0===n&&(n={}),s({type:"GeometryCollection",geometries:t},e,n)}function m(t,e){if(void 0===e&&(e=0),e&&!(e>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,e||0);return Math.round(t*n)/n}function b(t,e){void 0===e&&(e="kilometers");var n=r[e];if(!n)throw new Error(e+" units is invalid");return t*n}function E(t,e){void 0===e&&(e="kilometers");var n=r[e];if(!n)throw new Error(e+" units is invalid");return t/n}function w(t,e){return O(E(t,e))}function x(t){var e=t%360;return e<0&&(e+=360),e}function O(t){return t%(2*Math.PI)*180/Math.PI}function S(t){return t%360*Math.PI/180}function C(t,e,n){if(void 0===e&&(e="kilometers"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("length must be a positive number");return b(E(t,e),n)}function I(t,e,n){if(void 0===e&&(e="meters"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("area must be a positive number");var r=o[e];if(!r)throw new Error("invalid original units");var i=o[n];if(!i)throw new Error("invalid final units");return t/r*i}function P(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function R(t){return!!t&&t.constructor===Object}function T(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!P(t))throw new Error("bbox must only contain numbers")}))}function L(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}var M=Object.freeze({__proto__:null,earthRadius:n,factors:r,unitsFactors:i,areaFactors:o,feature:s,geometry:a,point:u,points:c,polygon:l,polygons:h,lineString:f,lineStrings:p,featureCollection:d,multiLineString:g,multiPoint:y,multiPolygon:v,geometryCollection:_,round:m,radiansToLength:b,lengthToRadians:E,lengthToDegrees:w,bearingToAzimuth:x,radiansToDegrees:O,degreesToRadians:S,convertLength:C,convertArea:I,isNumber:P,isObject:R,validateBBox:T,validateId:L});function N(t,e,n){if(null!==t)for(var r,i,o,s,a,u,c,l,h=0,f=0,p=t.type,d="FeatureCollection"===p,g="Feature"===p,y=d?t.features.length:1,v=0;v<y;v++){a=(l=!!(c=d?t.features[v].geometry:g?t.geometry:t)&&"GeometryCollection"===c.type)?c.geometries.length:1;for(var _=0;_<a;_++){var m=0,b=0;if(null!==(s=l?c.geometries[_]:c)){u=s.coordinates;var E=s.type;switch(h=!n||"Polygon"!==E&&"MultiPolygon"!==E?0:1,E){case null:break;case"Point":if(!1===e(u,f,v,m,b))return!1;f++,m++;break;case"LineString":case"MultiPoint":for(r=0;r<u.length;r++){if(!1===e(u[r],f,v,m,b))return!1;f++,"MultiPoint"===E&&m++}"LineString"===E&&m++;break;case"Polygon":case"MultiLineString":for(r=0;r<u.length;r++){for(i=0;i<u[r].length-h;i++){if(!1===e(u[r][i],f,v,m,b))return!1;f++}"MultiLineString"===E&&m++,"Polygon"===E&&b++}"Polygon"===E&&m++;break;case"MultiPolygon":for(r=0;r<u.length;r++){for(b=0,i=0;i<u[r].length;i++){for(o=0;o<u[r][i].length-h;o++){if(!1===e(u[r][i][o],f,v,m,b))return!1;f++}b++}m++}break;case"GeometryCollection":for(r=0;r<s.geometries.length;r++)if(!1===N(s.geometries[r],e,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function A(t,e,n,r){var i=n;return N(t,(function(t,r,o,s,a){i=0===r&&void 0===n?t:e(i,t,r,o,s,a)}),r),i}function F(t,e){var n;switch(t.type){case"FeatureCollection":for(n=0;n<t.features.length&&!1!==e(t.features[n].properties,n);n++);break;case"Feature":e(t.properties,0)}}function j(t,e,n){var r=n;return F(t,(function(t,i){r=0===i&&void 0===n?t:e(r,t,i)})),r}function D(t,e){if("Feature"===t.type)e(t,0);else if("FeatureCollection"===t.type)for(var n=0;n<t.features.length&&!1!==e(t.features[n],n);n++);}function k(t,e,n){var r=n;return D(t,(function(t,i){r=0===i&&void 0===n?t:e(r,t,i)})),r}function G(t){var e=[];return N(t,(function(t){e.push(t)})),e}function B(t,e){var n,r,i,o,s,a,u,c,l,h,f=0,p="FeatureCollection"===t.type,d="Feature"===t.type,g=p?t.features.length:1;for(n=0;n<g;n++){for(a=p?t.features[n].geometry:d?t.geometry:t,c=p?t.features[n].properties:d?t.properties:{},l=p?t.features[n].bbox:d?t.bbox:void 0,h=p?t.features[n].id:d?t.id:void 0,s=(u=!!a&&"GeometryCollection"===a.type)?a.geometries.length:1,i=0;i<s;i++)if(null!==(o=u?a.geometries[i]:a))switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===e(o,f,c,l,h))return!1;break;case"GeometryCollection":for(r=0;r<o.geometries.length;r++)if(!1===e(o.geometries[r],f,c,l,h))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===e(null,f,c,l,h))return!1;f++}}function U(t,e,n){var r=n;return B(t,(function(t,i,o,s,a){r=0===i&&void 0===n?t:e(r,t,i,o,s,a)})),r}function z(t,e){B(t,(function(t,n,r,i,o){var a,u=null===t?null:t.type;switch(u){case null:case"Point":case"LineString":case"Polygon":return!1!==e(s(t,r,{bbox:i,id:o}),n,0)&&void 0}switch(u){case"MultiPoint":a="Point";break;case"MultiLineString":a="LineString";break;case"MultiPolygon":a="Polygon"}for(var c=0;c<t.coordinates.length;c++){var l=t.coordinates[c];if(!1===e(s({type:a,coordinates:l},r),n,c))return!1}}))}function Y(t,e,n){var r=n;return z(t,(function(t,i,o){r=0===i&&0===o&&void 0===n?t:e(r,t,i,o)})),r}function X(t,e){z(t,(function(t,n,r){var i=0;if(t.geometry){var o=t.geometry.type;if("Point"!==o&&"MultiPoint"!==o){var s,a=0,u=0,c=0;return!1!==N(t,(function(o,l,h,p,d){if(void 0===s||n>a||p>u||d>c)return s=o,a=n,u=p,c=d,void(i=0);var g=f([s,o],t.properties);if(!1===e(g,n,r,d,i))return!1;i++,s=o}))&&void 0}}}))}function V(t,e,n){var r=n,i=!1;return X(t,(function(t,o,s,a,u){r=!1===i&&void 0===n?t:e(r,t,o,s,a,u),i=!0})),r}function q(t,e){if(!t)throw new Error("geojson is required");z(t,(function(t,n,r){if(null!==t.geometry){var i=t.geometry.type,o=t.geometry.coordinates;switch(i){case"LineString":if(!1===e(t,n,r,0,0))return!1;break;case"Polygon":for(var s=0;s<o.length;s++)if(!1===e(f(o[s],t.properties),n,r,s))return!1}}}))}function W(t,e,n){var r=n;return q(t,(function(t,i,o,s){r=0===i&&void 0===n?t:e(r,t,i,o,s)})),r}function H(t,e){if(!R(e=e||{}))throw new Error("options is invalid");var n,r=e.featureIndex||0,i=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.segmentIndex||0,a=e.properties;switch(t.type){case"FeatureCollection":r<0&&(r=t.features.length+r),a=a||t.features[r].properties,n=t.features[r].geometry;break;case"Feature":a=a||t.properties,n=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=t;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var u=n.coordinates;switch(n.type){case"Point":case"MultiPoint":return null;case"LineString":return s<0&&(s=u.length+s-1),f([u[s],u[s+1]],a,e);case"Polygon":return o<0&&(o=u.length+o),s<0&&(s=u[o].length+s-1),f([u[o][s],u[o][s+1]],a,e);case"MultiLineString":return i<0&&(i=u.length+i),s<0&&(s=u[i].length+s-1),f([u[i][s],u[i][s+1]],a,e);case"MultiPolygon":return i<0&&(i=u.length+i),o<0&&(o=u[i].length+o),s<0&&(s=u[i][o].length-s-1),f([u[i][o][s],u[i][o][s+1]],a,e)}throw new Error("geojson is invalid")}function Z(t,e){if(!R(e=e||{}))throw new Error("options is invalid");var n,r=e.featureIndex||0,i=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.coordIndex||0,a=e.properties;switch(t.type){case"FeatureCollection":r<0&&(r=t.features.length+r),a=a||t.features[r].properties,n=t.features[r].geometry;break;case"Feature":a=a||t.properties,n=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=t;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var c=n.coordinates;switch(n.type){case"Point":return u(c,a,e);case"MultiPoint":return i<0&&(i=c.length+i),u(c[i],a,e);case"LineString":return s<0&&(s=c.length+s),u(c[s],a,e);case"Polygon":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s),u(c[o][s],a,e);case"MultiLineString":return i<0&&(i=c.length+i),s<0&&(s=c[i].length+s),u(c[i][s],a,e);case"MultiPolygon":return i<0&&(i=c.length+i),o<0&&(o=c[i].length+o),s<0&&(s=c[i][o].length-s),u(c[i][o][s],a,e)}throw new Error("geojson is invalid")}var K=Object.freeze({__proto__:null,coordAll:G,coordEach:N,coordReduce:A,featureEach:D,featureReduce:k,findPoint:Z,findSegment:H,flattenEach:z,flattenReduce:Y,geomEach:B,geomReduce:U,lineEach:q,lineReduce:W,propEach:F,propReduce:j,segmentEach:X,segmentReduce:V});function J(t){var e=[1/0,1/0,-1/0,-1/0];return N(t,(function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])})),e}function Q(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return t.geometry.coordinates;if("Point"===t.type)return t.coordinates}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return t;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function $(t){if(Array.isArray(t))return t;if("Feature"===t.type){if(null!==t.geometry)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function tt(t){if(t.length>1&&P(t[0])&&P(t[1]))return!0;if(Array.isArray(t[0])&&t[0].length)return tt(t[0]);throw new Error("coordinates must only contain numbers")}function et(t,e,n){if(!e||!n)throw new Error("type and name required");if(!t||t.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+t.type)}function nt(t,e,n){if(!t)throw new Error("No feature passed");if(!n)throw new Error(".featureOf() requires a name");if(!t||"Feature"!==t.type||!t.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!t.geometry||t.geometry.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+t.geometry.type)}function rt(t,e,n){if(!t)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!t||"FeatureCollection"!==t.type)throw new Error("Invalid input to "+n+", FeatureCollection required");for(var r=0,i=t.features;r<i.length;r++){var o=i[r];if(!o||"Feature"!==o.type||!o.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!o.geometry||o.geometry.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+o.geometry.type)}}function it(t){return"Feature"===t.type?t.geometry:t}function ot(t,e){return"FeatureCollection"===t.type?"FeatureCollection":"GeometryCollection"===t.type?"GeometryCollection":"Feature"===t.type&&null!==t.geometry?t.geometry.type:t.type}J.default=J;var st=Object.freeze({__proto__:null,getCoord:Q,getCoords:$,containsNumber:tt,geojsonType:et,featureOf:nt,collectionOf:rt,getGeom:it,getType:ot}),at=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable;
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/function lt(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var ht=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,r,i=lt(t),o=1;o<arguments.length;o++){for(var s in n=Object(arguments[o]))ut.call(n,s)&&(i[s]=n[s]);if(at){r=at(n);for(var a=0;a<r.length;a++)ct.call(n,r[a])&&(i[r[a]]=n[r[a]])}}return i},ft={successCallback:null,verbose:!1},pt={};
/**
* @license GNU Affero General Public License.
* Copyright (c) 2015, 2015 Ronny Lorenz <ronny@tbi.univie.ac.at>
* v. 1.2.0
* https://github.com/RaumZeit/MarchingSquares.js
*
* MarchingSquaresJS is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* MarchingSquaresJS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* As additional permission under GNU Affero General Public License version 3
* section 7, third-party projects (personal or commercial) may distribute,
* include, or link against UNMODIFIED VERSIONS of MarchingSquaresJS without the
* requirement that said third-party project for that reason alone becomes
* subject to any requirement of the GNU Affero General Public License version 3.
* Any modifications to MarchingSquaresJS, however, must be shared with the public
* and made available.
*
* In summary this:
* - allows you to use MarchingSquaresJS at no cost
* - allows you to use MarchingSquaresJS for both personal and commercial purposes
* - allows you to distribute UNMODIFIED VERSIONS of MarchingSquaresJS under any
* license as long as this license notice is included
* - enables you to keep the source code of your program that uses MarchingSquaresJS
* undisclosed
* - forces you to share any modifications you have made to MarchingSquaresJS,
* e.g. bug-fixes
*
* You should have received a copy of the GNU Affero General Public License
* along with MarchingSquaresJS. If not, see <http://www.gnu.org/licenses/>.
*/function dt(t,e,n){n=n||{};for(var r=Object.keys(ft),i=0;i<r.length;i++){var o=r[i],s=n[o];s=null!=s?s:ft[o],pt[o]=s}pt.verbose&&console.log("MarchingSquaresJS-isoContours: computing isocontour for "+e);var a=function(t){var e=[],n=0,r=1e-7;return t.cells.forEach((function(i,o){i.forEach((function(i,s){if(void 0!==i&&5!==(p=i).cval&&10!==p.cval&&!yt(i)){var a=function(t,e,n){var r,i,o=t.length,s=[],a=[0,0,1,1,0,0,0,0,-1,0,1,1,-1,0,-1,0],u=[0,-1,0,0,1,1,1,1,0,-1,0,0,0,-1,0,0],c=["none","left","bottom","left","right","none","bottom","left","top","top","none","top","right","right","bottom","none"],l=["none","bottom","right","right","top","top","top","top","left","bottom","right","right","left","bottom","left","none"],h=t[e][n],f=h.cval,p=c[f],d=_t(h,p);s.push([n+d[0],e+d[1]]),p=l[f],d=_t(h,p),s.push([n+d[0],e+d[1]]),vt(h);for(var g=n+a[f],y=e+u[f],v=f;g>=0&&y>=0&&y<o&&(g!=n||y!=e)&&void 0!==(h=t[y][g]);){if(0===(f=h.cval)||15===f)return{path:s,info:"mergeable"};p=l[f],r=a[f],i=u[f],5!==f&&10!==f||(5===f?h.flipped?-1===u[v]?(p="left",r=-1,i=0):(p="right",r=1,i=0):-1===a[v]&&(p="bottom",r=0,i=-1):10===f&&(h.flipped?-1===a[v]?(p="top",r=0,i=1):(p="bottom",r=0,i=-1):1===u[v]&&(p="left",r=-1,i=0))),d=_t(h,p),s.push([g+d[0],y+d[1]]),vt(h),g+=r,y+=i,v=f}return{path:s,info:"closed"}}(t.cells,o,s),u=!1;if("mergeable"===a.info)for(var c=a.path[a.path.length-1][0],l=a.path[a.path.length-1][1],h=n-1;h>=0;h--)if(Math.abs(e[h][0][0]-c)<=r&&Math.abs(e[h][0][1]-l)<=r){for(var f=a.path.length-2;f>=0;--f)e[h].unshift(a.path[f]);u=!0;break}u||(e[n++]=a.path)}var p}))})),e}(function(t,e){for(var n=t.length-1,r=t[0].length-1,i={rows:n,cols:r,cells:[]},o=0;o<n;++o){i.cells[o]=[];for(var s=0;s<r;++s){var a=0,u=t[o+1][s],c=t[o+1][s+1],l=t[o][s+1],h=t[o][s];if(!(isNaN(u)||isNaN(c)||isNaN(l)||isNaN(h))){a|=u>=e?8:0,a|=c>=e?4:0,a|=l>=e?2:0;var f,p,d,g,y=!1;if(5===(a|=h>=e?1:0)||10===a){var v=(u+c+l+h)/4;5===a&&v<e?(a=10,y=!0):10===a&&v<e&&(a=5,y=!0)}0!==a&&15!==a&&(f=p=d=g=.5,1===a?(d=1-gt(e,u,h),p=1-gt(e,l,h)):2===a?(p=gt(e,h,l),g=1-gt(e,c,l)):3===a?(d=1-gt(e,u,h),g=1-gt(e,c,l)):4===a?(f=gt(e,u,c),g=gt(e,l,c)):5===a?(f=gt(e,u,c),g=gt(e,l,c),p=1-gt(e,l,h),d=1-gt(e,u,h)):6===a?(p=gt(e,h,l),f=gt(e,u,c)):7===a?(d=1-gt(e,u,h),f=gt(e,u,c)):8===a?(d=gt(e,h,u),f=1-gt(e,c,u)):9===a?(p=1-gt(e,l,h),f=1-gt(e,c,u)):10===a?(f=1-gt(e,c,u),g=1-gt(e,c,l),p=gt(e,h,l),d=gt(e,h,u)):11===a?(f=1-gt(e,c,u),g=1-gt(e,c,l)):12===a?(d=gt(e,h,u),g=gt(e,l,c)):13===a?(p=1-gt(e,l,h),g=gt(e,l,c)):14===a?(d=gt(e,h,u),p=gt(e,h,l)):console.log("MarchingSquaresJS-isoContours: Illegal cval detected: "+a),i.cells[o][s]={cval:a,flipped:y,top:f,right:g,bottom:p,left:d})}}}return i}(t,e));return"function"==typeof pt.successCallback&&pt.successCallback(a),a}function gt(t,e,n){return(t-e)/(n-e)}function yt(t){return 0===t.cval||15===t.cval}function vt(t){yt(t)||5===t.cval||10===t.cval||(t.cval=15)}function _t(t,e){return"top"===e?[t.top,1]:"bottom"===e?[t.bottom,0]:"right"===e?[1,t.right]:"left"===e?[0,t.left]:void 0}function mt(t,e){if(!R(e=e||{}))throw new Error("options is invalid");var n=e.zProperty||"elevation",r=e.flip,i=e.flags;rt(t,"Point","input must contain Points");for(var o=function(t,e){var n={};return D(t,(function(t){var e=$(t)[1];n[e]||(n[e]=[]),n[e].push(t)})),Object.keys(n).map((function(t){return n[t].sort((function(t,e){return $(t)[0]-$(e)[0]}))})).sort((function(t,n){return e?$(t[0])[1]-$(n[0])[1]:$(n[0])[1]-$(t[0])[1]}))}(t,r),s=[],a=0;a<o.length;a++){for(var u=o[a],c=[],l=0;l<u.length;l++){var h=u[l];h.properties[n]?c.push(h.properties[n]):c.push(0),!0===i&&(h.properties.matrixPosition=[a,l])}s.push(c)}return s}var bt=wt,Et=wt;function wt(t,e,n,r,i){xt(t,e,n||0,r||t.length-1,i||St)}function xt(t,e,n,r,i){for(;r>n;){if(r-n>600){var o=r-n+1,s=e-n+1,a=Math.log(o),u=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*u*(o-u)/o)*(s-o/2<0?-1:1);xt(t,e,Math.max(n,Math.floor(e-s*u/o+c)),Math.min(r,Math.floor(e+(o-s)*u/o+c)),i)}var l=t[e],h=n,f=r;for(Ot(t,n,e),i(t[r],l)>0&&Ot(t,n,r);h<f;){for(Ot(t,h,f),h++,f--;i(t[h],l)<0;)h++;for(;i(t[f],l)>0;)f--}0===i(t[n],l)?Ot(t,n,f):Ot(t,++f,r),f<=e&&(n=f+1),e<=f&&(r=f-1)}}function Ot(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function St(t,e){return t<e?-1:t>e?1:0}bt.default=Et;var Ct=Pt,It=Pt;function Pt(t,e){if(!(this instanceof Pt))return new Pt(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&this._initFormat(e),this.clear()}function Rt(t,e,n){if(!n)return e.indexOf(t);for(var r=0;r<e.length;r++)if(n(t,e[r]))return r;return-1}function Tt(t,e){Lt(t,0,t.children.length,e,t)}function Lt(t,e,n,r,i){i||(i=Gt(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o,s=e;s<n;s++)o=t.children[s],Mt(i,t.leaf?r(o):o);return i}function Mt(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 Nt(t,e){return t.minX-e.minX}function At(t,e){return t.minY-e.minY}function Ft(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function jt(t){return t.maxX-t.minX+(t.maxY-t.minY)}function Dt(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function kt(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function Gt(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Bt(t,e,n,r,i){for(var o,s=[e,n];s.length;)(n=s.pop())-(e=s.pop())<=r||(o=e+Math.ceil((n-e)/r/2)*r,bt(t,o,e,n,i),s.push(e,o,o,n))}function Ut(t){var e={exports:{}};return t(e,e.exports),e.exports}Pt.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,n=[],r=this.toBBox;if(!kt(t,e))return n;for(var i,o,s,a,u=[];e;){for(i=0,o=e.children.length;i<o;i++)s=e.children[i],kt(t,a=e.leaf?r(s):s)&&(e.leaf?n.push(s):Dt(t,a)?this._all(s,n):u.push(s));e=u.pop()}return n},collides:function(t){var e=this.data,n=this.toBBox;if(!kt(t,e))return!1;for(var r,i,o,s,a=[];e;){for(r=0,i=e.children.length;r<i;r++)if(o=e.children[r],kt(t,s=e.leaf?n(o):o)){if(e.leaf||Dt(t,s))return!0;a.push(o)}e=a.pop()}return!1},load:function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}var r=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var i=this.data;this.data=r,r=i}this._insert(r,this.data.height-r.height-1,!0)}else this.data=r;return this},insert:function(t){return t&&this._insert(t,this.data.height-1),this},clear:function(){return this.data=Gt([]),this},remove:function(t,e){if(!t)return this;for(var n,r,i,o,s=this.data,a=this.toBBox(t),u=[],c=[];s||u.length;){if(s||(s=u.pop(),r=u[u.length-1],n=c.pop(),o=!0),s.leaf&&-1!==(i=Rt(t,s.children,e)))return s.children.splice(i,1),u.push(s),this._condense(u),this;o||s.leaf||!Dt(s,a)?r?(n++,s=r.children[n],o=!1):s=null:(u.push(s),c.push(n),n=0,r=s,s=s.children[0])}return this},toBBox:function(t){return t},compareMinX:Nt,compareMinY:At,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},_all:function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},_build:function(t,e,n,r){var i,o=n-e+1,s=this._maxEntries;if(o<=s)return Tt(i=Gt(t.slice(e,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(o)/Math.log(s)),s=Math.ceil(o/Math.pow(s,r-1))),(i=Gt([])).leaf=!1,i.height=r;var a,u,c,l,h=Math.ceil(o/s),f=h*Math.ceil(Math.sqrt(s));for(Bt(t,e,n,f,this.compareMinX),a=e;a<=n;a+=f)for(Bt(t,a,c=Math.min(a+f-1,n),h,this.compareMinY),u=a;u<=c;u+=h)l=Math.min(u+h-1,c),i.children.push(this._build(t,u,l,r-1));return Tt(i,this.toBBox),i},_chooseSubtree:function(t,e,n,r){for(var i,o,s,a,u,c,l,h,f,p;r.push(e),!e.leaf&&r.length-1!==n;){for(l=h=1/0,i=0,o=e.children.length;i<o;i++)u=Ft(s=e.children[i]),f=t,p=s,(c=(Math.max(p.maxX,f.maxX)-Math.min(p.minX,f.minX))*(Math.max(p.maxY,f.maxY)-Math.min(p.minY,f.minY))-u)<h?(h=c,l=u<l?u:l,a=s):c===h&&u<l&&(l=u,a=s);e=a||e.children[0]}return e},_insert:function(t,e,n){var r=this.toBBox,i=n?t:r(t),o=[],s=this._chooseSubtree(i,this.data,e,o);for(s.children.push(t),Mt(s,i);e>=0&&o[e].children.length>this._maxEntries;)this._split(o,e),e--;this._adjustParentBBoxes(i,o,e)},_split:function(t,e){var n=t[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o=this._chooseSplitIndex(n,i,r),s=Gt(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,Tt(n,this.toBBox),Tt(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},_splitRoot:function(t,e){this.data=Gt([t,e]),this.data.height=t.height+1,this.data.leaf=!1,Tt(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,n){var r,i,o,s,a,u,c,l,h,f,p,d,g,y;for(u=c=1/0,r=e;r<=n-e;r++)i=Lt(t,0,r,this.toBBox),o=Lt(t,r,n,this.toBBox),h=i,f=o,p=void 0,d=void 0,g=void 0,y=void 0,p=Math.max(h.minX,f.minX),d=Math.max(h.minY,f.minY),g=Math.min(h.maxX,f.maxX),y=Math.min(h.maxY,f.maxY),s=Math.max(0,g-p)*Math.max(0,y-d),a=Ft(i)+Ft(o),s<u?(u=s,l=r,c=a<c?a:c):s===u&&a<c&&(c=a,l=r);return l},_chooseSplitAxis:function(t,e,n){var r=t.leaf?this.compareMinX:Nt,i=t.leaf?this.compareMinY:At;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,i)&&t.children.sort(r)},_allDistMargin:function(t,e,n,r){t.children.sort(r);var i,o,s=this.toBBox,a=Lt(t,0,e,s),u=Lt(t,n-e,n,s),c=jt(a)+jt(u);for(i=e;i<n-e;i++)o=t.children[i],Mt(a,t.leaf?s(o):o),c+=jt(a);for(i=n-e-1;i>=e;i--)o=t.children[i],Mt(u,t.leaf?s(o):o),c+=jt(u);return c},_adjustParentBBoxes:function(t,e,n){for(var r=n;r>=0;r--)Mt(e[r],t)},_condense:function(t){for(var e,n=t.length-1;n>=0;n--)0===t[n].children.length?n>0?(e=t[n-1].children).splice(e.indexOf(t[n]),1):this.clear():Tt(t[n],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}},Ct.default=It;var zt=function(t,e,n){var r=t*e,i=Yt*t,o=i-(i-t),s=t-o,a=Yt*e,u=a-(a-e),c=e-u,l=s*c-(r-o*u-s*u-o*c);return n?(n[0]=l,n[1]=r,n):[l,r]},Yt=+(Math.pow(2,27)+1),Xt=function(t,e){var n=0|t.length,r=0|e.length;if(1===n&&1===r)return function(t,e){var n=t+e,r=n-t,i=t-(n-r)+(e-r);return i?[i,n]:[n]}(t[0],e[0]);var i,o,s=new Array(n+r),a=0,u=0,c=0,l=Math.abs,h=t[u],f=l(h),p=e[c],d=l(p);f<d?(o=h,(u+=1)<n&&(h=t[u],f=l(h))):(o=p,(c+=1)<r&&(p=e[c],d=l(p))),u<n&&f<d||c>=r?(i=h,(u+=1)<n&&(h=t[u],f=l(h))):(i=p,(c+=1)<r&&(p=e[c],d=l(p)));for(var g,y,v=i+o,_=v-i,m=o-_,b=m,E=v;u<n&&c<r;)f<d?(i=h,(u+=1)<n&&(h=t[u],f=l(h))):(i=p,(c+=1)<r&&(p=e[c],d=l(p))),(m=(o=b)-(_=(v=i+o)-i))&&(s[a++]=m),b=E-((g=E+v)-(y=g-E))+(v-y),E=g;for(;u<n;)(m=(o=b)-(_=(v=(i=h)+o)-i))&&(s[a++]=m),b=E-((g=E+v)-(y=g-E))+(v-y),E=g,(u+=1)<n&&(h=t[u]);for(;c<r;)(m=(o=b)-(_=(v=(i=p)+o)-i))&&(s[a++]=m),b=E-((g=E+v)-(y=g-E))+(v-y),E=g,(c+=1)<r&&(p=e[c]);return b&&(s[a++]=b),E&&(s[a++]=E),a||(s[a++]=0),s.length=a,s},Vt=function(t,e,n){var r=t+e,i=r-t,o=e-i,s=t-(r-i);return n?(n[0]=s+o,n[1]=r,n):[s+o,r]},qt=function(t,e){var n=t.length;if(1===n){var r=zt(t[0],e);return r[0]?r:[r[1]]}var i=new Array(2*n),o=[.1,.1],s=[.1,.1],a=0;zt(t[0],e,o),o[0]&&(i[a++]=o[0]);for(var u=1;u<n;++u){zt(t[u],e,s);var c=o[1];Vt(c,s[0],o),o[0]&&(i[a++]=o[0]);var l=s[1],h=o[1],f=l+h,p=h-(f-l);o[1]=f,p&&(i[a++]=p)}return o[1]&&(i[a++]=o[1]),0===a&&(i[a++]=0),i.length=a,i},Wt=function(t,e){var n=0|t.length,r=0|e.length;if(1===n&&1===r)return function(t,e){var n=t+e,r=n-t,i=t-(n-r)+(e-r);return i?[i,n]:[n]}(t[0],-e[0]);var i,o,s=new Array(n+r),a=0,u=0,c=0,l=Math.abs,h=t[u],f=l(h),p=-e[c],d=l(p);f<d?(o=h,(u+=1)<n&&(h=t[u],f=l(h))):(o=p,(c+=1)<r&&(p=-e[c],d=l(p))),u<n&&f<d||c>=r?(i=h,(u+=1)<n&&(h=t[u],f=l(h))):(i=p,(c+=1)<r&&(p=-e[c],d=l(p)));for(var g,y,v=i+o,_=v-i,m=o-_,b=m,E=v;u<n&&c<r;)f<d?(i=h,(u+=1)<n&&(h=t[u],f=l(h))):(i=p,(c+=1)<r&&(p=-e[c],d=l(p))),(m=(o=b)-(_=(v=i+o)-i))&&(s[a++]=m),b=E-((g=E+v)-(y=g-E))+(v-y),E=g;for(;u<n;)(m=(o=b)-(_=(v=(i=h)+o)-i))&&(s[a++]=m),b=E-((g=E+v)-(y=g-E))+(v-y),E=g,(u+=1)<n&&(h=t[u]);for(;c<r;)(m=(o=b)-(_=(v=(i=p)+o)-i))&&(s[a++]=m),b=E-((g=E+v)-(y=g-E))+(v-y),E=g,(c+=1)<r&&(p=-e[c]);return b&&(s[a++]=b),E&&(s[a++]=E),a||(s[a++]=0),s.length=a,s},Ht=Ut((function(t){function e(t,e){for(var n=new Array(t.length-1),r=1;r<t.length;++r)for(var i=n[r-1]=new Array(t.length-1),o=0,s=0;o<t.length;++o)o!==e&&(i[s++]=t[r][o]);return n}function n(t){if(1===t.length)return t[0];if(2===t.length)return["sum(",t[0],",",t[1],")"].join("");var e=t.length>>1;return["sum(",n(t.slice(0,e)),",",n(t.slice(e)),")"].join("")}function r(t){if(2===t.length)return[["sum(prod(",t[0][0],",",t[1][1],"),prod(-",t[0][1],",",t[1][0],"))"].join("")];for(var i=[],o=0;o<t.length;++o)i.push(["scale(",n(r(e(t,o))),",",(s=o,1&s?"-":""),t[0][o],")"].join(""));return i;var s}function i(t){for(var i=[],o=[],s=function(t){for(var e=new Array(t),n=0;n<t;++n){e[n]=new Array(t);for(var r=0;r<t;++r)e[n][r]=["m",r,"[",t-n-1,"]"].join("")}return e}(t),a=[],u=0;u<t;++u)0==(1&u)?i.push.apply(i,r(e(s,u))):o.push.apply(o,r(e(s,u))),a.push("m"+u);var c=n(i),l=n(o),h="orientation"+t+"Exact",f=["function ",h,"(",a.join(),"){var p=",c,",n=",l,",d=sub(p,n);return d[d.length-1];};return ",h].join("");return new Function("sum","prod","scale","sub",f)(Xt,zt,qt,Wt)}var o=i(3),s=i(4),a=[function(){return 0},function(){return 0},function(t,e){return e[0]-t[0]},function(t,e,n){var r,i=(t[1]-n[1])*(e[0]-n[0]),s=(t[0]-n[0])*(e[1]-n[1]),a=i-s;if(i>0){if(s<=0)return a;r=i+s}else{if(!(i<0))return a;if(s>=0)return a;r=-(i+s)}var u=33306690738754716e-32*r;return a>=u||a<=-u?a:o(t,e,n)},function(t,e,n,r){var i=t[0]-r[0],o=e[0]-r[0],a=n[0]-r[0],u=t[1]-r[1],c=e[1]-r[1],l=n[1]-r[1],h=t[2]-r[2],f=e[2]-r[2],p=n[2]-r[2],d=o*l,g=a*c,y=a*u,v=i*l,_=i*c,m=o*u,b=h*(d-g)+f*(y-v)+p*(_-m),E=7771561172376103e-31*((Math.abs(d)+Math.abs(g))*Math.abs(h)+(Math.abs(y)+Math.abs(v))*Math.abs(f)+(Math.abs(_)+Math.abs(m))*Math.abs(p));return b>E||-b>E?b:s(t,e,n,r)}];function u(t){var e=a[t.length];return e||(e=a[t.length]=i(t.length)),e.apply(void 0,t)}!function(){for(;a.length<=5;)a.push(i(a.length));for(var e=[],n=["slow"],r=0;r<=5;++r)e.push("a"+r),n.push("o"+r);var o=["function getOrientation(",e.join(),"){switch(arguments.length){case 0:case 1:return 0;"];for(r=2;r<=5;++r)o.push("case ",r,":return o",r,"(",e.slice(0,r).join(),");");o.push("}var s=new Array(arguments.length);for(var i=0;i<arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation"),n.push(o.join(""));var s=Function.apply(void 0,n);for(t.exports=s.apply(void 0,[u].concat(a)),r=0;r<=5;++r)t.exports[r]=a[r]}()})),Zt=function(t){var e=t.length;if(e<3){for(var n=new Array(e),r=0;r<e;++r)n[r]=r;return 2===e&&t[0][0]===t[1][0]&&t[0][1]===t[1][1]?[0]:n}var i=new Array(e);for(r=0;r<e;++r)i[r]=r;i.sort((function(e,n){var r=t[e][0]-t[n][0];return r||t[e][1]-t[n][1]}));var o=[i[0],i[1]],s=[i[0],i[1]];for(r=2;r<e;++r){for(var a=i[r],u=t[a],c=o.length;c>1&&Kt(t[o[c-2]],t[o[c-1]],u)<=0;)c-=1,o.pop();for(o.push(a),c=s.length;c>1&&Kt(t[s[c-2]],t[s[c-1]],u)>=0;)c-=1,s.pop();s.push(a)}n=new Array(s.length+o.length-2);for(var l=0,h=(r=0,o.length);r<h;++r)n[l++]=o[r];for(var f=s.length-2;f>0;--f)n[l++]=s[f];return n},Kt=Ht[3],Jt=$t,Qt=$t;function $t(t,e){if(!(this instanceof $t))return new $t(t,e);if(this.data=t||[],this.length=this.data.length,this.compare=e||te,this.length>0)for(var n=(this.length>>1)-1;n>=0;n--)this._down(n)}function te(t,e){return t<e?-1:t>e?1:0}$t.prototype={push:function(t){this.data.push(t),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var t=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),t}},peek:function(){return this.data[0]},_up:function(t){for(var e=this.data,n=this.compare,r=e[t];t>0;){var i=t-1>>1,o=e[i];if(n(r,o)>=0)break;e[t]=o,t=i}e[t]=r},_down:function(t){for(var e=this.data,n=this.compare,r=this.length>>1,i=e[t];t<r;){var o=1+(t<<1),s=o+1,a=e[o];if(s<this.length&&n(e[s],a)<0&&(o=s,a=e[s]),n(a,i)>=0)break;e[t]=a,t=o}e[t]=i}},Jt.default=Qt;var ee=function(t,e){for(var n=t[0],r=t[1],i=!1,o=0,s=e.length-1;o<e.length;s=o++){var a=e[o][0],u=e[o][1],c=e[s][0],l=e[s][1];u>r!=l>r&&n<(c-a)*(r-u)/(l-u)+a&&(i=!i)}return i},ne=Ht[3],re=oe,ie=oe;function oe(t,e,n){e=Math.max(0,void 0===e?2:e),n=n||0;for(var r,i=function(t){for(var e=t[0],n=t[0],r=t[0],i=t[0],o=0;o<t.length;o++){var s=t[o];s[0]<e[0]&&(e=s),s[0]>r[0]&&(r=s),s[1]<n[1]&&(n=s),s[1]>i[1]&&(i=s)}var a=[e,n,r,i],u=a.slice();for(o=0;o<t.length;o++)ee(t[o],a)||u.push(t[o]);var c=Zt(u),l=[];for(o=0;o<c.length;o++)l.push(u[c[o]]);return l}(t),o=Ct(16,["[0]","[1]","[0]","[1]"]).load(t),s=[],a=0;a<i.length;a++){var u=i[a];o.remove(u),r=fe(u,r),s.push(r)}var c=Ct(16);for(a=0;a<s.length;a++)c.insert(he(s[a]));for(var l=e*e,h=n*n;s.length;){var f=s.shift(),p=f.p,d=f.next.p,g=pe(p,d);if(!(g<h)){var y=g/l;(u=se(o,f.prev.p,p,d,f.next.next.p,y,c))&&Math.min(pe(u,p),pe(u,d))<=y&&(s.push(f),s.push(fe(u,f)),o.remove(u),c.remove(f),c.insert(he(f)),c.insert(he(f.next)))}}f=r;var v=[];do{v.push(f.p),f=f.next}while(f!==r);return v.push(f.p),v}function se(t,e,n,r,i,o,s){for(var a=new Jt(null,ae),u=t.data;u;){for(var c=0;c<u.children.length;c++){var l=u.children[c],h=u.leaf?de(l,n,r):ue(n,r,l);h>o||a.push({node:l,dist:h})}for(;a.length&&!a.peek().node.children;){var f=a.pop(),p=f.node,d=de(p,e,n),g=de(p,r,i);if(f.dist<d&&f.dist<g&&le(n,p,s)&&le(r,p,s))return p}(u=a.pop())&&(u=u.node)}return null}function ae(t,e){return t.dist-e.dist}function ue(t,e,n){if(ce(t,n)||ce(e,n))return 0;var r=ge(t[0],t[1],e[0],e[1],n.minX,n.minY,n.maxX,n.minY);if(0===r)return 0;var i=ge(t[0],t[1],e[0],e[1],n.minX,n.minY,n.minX,n.maxY);if(0===i)return 0;var o=ge(t[0],t[1],e[0],e[1],n.maxX,n.minY,n.maxX,n.maxY);if(0===o)return 0;var s=ge(t[0],t[1],e[0],e[1],n.minX,n.maxY,n.maxX,n.maxY);return 0===s?0:Math.min(r,i,o,s)}function ce(t,e){return t[0]>=e.minX&&t[0]<=e.maxX&&t[1]>=e.minY&&t[1]<=e.maxY}function le(t,e,n){for(var r,i,o,s,a=Math.min(t[0],e[0]),u=Math.min(t[1],e[1]),c=Math.max(t[0],e[0]),l=Math.max(t[1],e[1]),h=n.search({minX:a,minY:u,maxX:c,maxY:l}),f=0;f<h.length;f++)if(r=h[f].p,i=h[f].next.p,o=t,r!==(s=e)&&i!==o&&ne(r,i,o)>0!=ne(r,i,s)>0&&ne(o,s,r)>0!=ne(o,s,i)>0)return!1;return!0}function he(t){var e=t.p,n=t.next.p;return t.minX=Math.min(e[0],n[0]),t.minY=Math.min(e[1],n[1]),t.maxX=Math.max(e[0],n[0]),t.maxY=Math.max(e[1],n[1]),t}function fe(t,e){var n={p:t,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return e?(n.next=e.next,n.prev=e,e.next.prev=n,e.next=n):(n.prev=n,n.next=n),n}function pe(t,e){var n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}function de(t,e,n){var r=e[0],i=e[1],o=n[0]-r,s=n[1]-i;if(0!==o||0!==s){var a=((t[0]-r)*o+(t[1]-i)*s)/(o*o+s*s);a>1?(r=n[0],i=n[1]):a>0&&(r+=o*a,i+=s*a)}return(o=t[0]-r)*o+(s=t[1]-i)*s}function ge(t,e,n,r,i,o,s,a){var u,c,l,h,f=n-t,p=r-e,d=s-i,g=a-o,y=t-i,v=e-o,_=f*f+p*p,m=f*d+p*g,b=d*d+g*g,E=f*y+p*v,w=d*y+g*v,x=_*b-m*m,O=x,S=x;0===x?(c=0,O=1,h=w,S=b):(h=_*w-m*E,(c=m*w-b*E)<0?(c=0,h=w,S=b):c>O&&(c=O,h=w+m,S=b)),h<0?(h=0,-E<0?c=0:-E>_?c=O:(c=-E,O=_)):h>S&&(h=S,-E+m<0?c=0:-E+m>_?c=O:(c=-E+m,O=_));var C=(1-(l=0===h?0:h/S))*i+l*s-((1-(u=0===c?0:c/O))*t+u*n),I=(1-l)*o+l*a-((1-u)*e+u*r);return C*C+I*I}function ye(t,e){void 0===e&&(e={}),e.concavity=e.concavity||1/0;var n=[];if(N(t,(function(t){n.push([t[0],t[1]])})),!n.length)return null;var r=re(n,e.concavity);return r.length>3?l([r]):null}function ve(t,e,n){if(void 0===n&&(n={}),!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");var r=Q(t),i=it(e),o=i.type,s=e.bbox,a=i.coordinates;if(s&&!1===function(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}(r,s))return!1;"Polygon"===o&&(a=[a]);for(var u=!1,c=0;c<a.length&&!u;c++)if(_e(r,a[c][0],n.ignoreBoundary)){for(var l=!1,h=1;h<a[c].length&&!l;)_e(r,a[c][h],!n.ignoreBoundary)&&(l=!0),h++;l||(u=!0)}return u}function _e(t,e,n){var r=!1;e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]&&(e=e.slice(0,e.length-1));for(var i=0,o=e.length-1;i<e.length;o=i++){var s=e[i][0],a=e[i][1],u=e[o][0],c=e[o][1];if(t[1]*(s-u)+a*(u-t[0])+c*(t[0]-s)==0&&(s-t[0])*(u-t[0])<=0&&(a-t[1])*(c-t[1])<=0)return!n;a>t[1]!=c>t[1]&&t[0]<(u-s)*(t[1]-a)/(c-a)+s&&(r=!r)}return r}function me(t,e){var n=[];return D(t,(function(t){var r=!1;if("Point"===t.geometry.type)B(e,(function(e){ve(t,e)&&(r=!0)})),r&&n.push(t);else{if("MultiPoint"!==t.geometry.type)throw new Error("Input geometry must be a Point or MultiPoint");var i=[];B(e,(function(e){N(t,(function(t){ve(t,e)&&(r=!0,i.push(t))}))})),r&&n.push(y(i))}})),d(n)}function be(t,e,n){void 0===n&&(n={});var r=Q(t),i=Q(e),o=S(i[1]-r[1]),s=S(i[0]-r[0]),a=S(r[1]),u=S(i[1]),c=Math.pow(Math.sin(o/2),2)+Math.pow(Math.sin(s/2),2)*Math.cos(a)*Math.cos(u);return b(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),n.units)}function Ee(t,e){var n=!1;return d(function(t){if(t.length<3)return[];t.sort(xe);for(var e,n,r,i,o,s,a=t.length-1,u=t[a].x,c=t[0].x,l=t[a].y,h=l,f=1e-12;a--;)t[a].y<l&&(l=t[a].y),t[a].y>h&&(h=t[a].y);var p,d=c-u,g=h-l,y=d>g?d:g,v=.5*(c+u),_=.5*(h+l),m=[new we({__sentinel:!0,x:v-20*y,y:_-y},{__sentinel:!0,x:v,y:_+20*y},{__sentinel:!0,x:v+20*y,y:_-y})],b=[],E=[];for(a=t.length;a--;){for(E.length=0,p=m.length;p--;)(d=t[a].x-m[p].x)>0&&d*d>m[p].r?(b.push(m[p]),m.splice(p,1)):d*d+(g=t[a].y-m[p].y)*g>m[p].r||(E.push(m[p].a,m[p].b,m[p].b,m[p].c,m[p].c,m[p].a),m.splice(p,1));for(Oe(E),p=E.length;p;)n=E[--p],e=E[--p],r=t[a],i=n.x-e.x,o=n.y-e.y,s=2*(i*(r.y-n.y)-o*(r.x-n.x)),Math.abs(s)>f&&m.push(new we(e,n,r))}for(Array.prototype.push.apply(b,m),a=b.length;a--;)(b[a].a.__sentinel||b[a].b.__sentinel||b[a].c.__sentinel)&&b.splice(a,1);return b}(t.features.map((function(t){var r={x:t.geometry.coordinates[0],y:t.geometry.coordinates[1]};return e?r.z=t.properties[e]:3===t.geometry.coordinates.length&&(n=!0,r.z=t.geometry.coordinates[2]),r}))).map((function(t){var e=[t.a.x,t.a.y],r=[t.b.x,t.b.y],i=[t.c.x,t.c.y],o={};return n?(e.push(t.a.z),r.push(t.b.z),i.push(t.c.z)):o={a:t.a.z,b:t.b.z,c:t.c.z},l([[e,r,i,e]],o)})))}re.default=ie;var we=function(t,e,n){this.a=t,this.b=e,this.c=n;var r,i,o=e.x-t.x,s=e.y-t.y,a=n.x-t.x,u=n.y-t.y,c=o*(t.x+e.x)+s*(t.y+e.y),l=a*(t.x+n.x)+u*(t.y+n.y),h=2*(o*(n.y-e.y)-s*(n.x-e.x));this.x=(u*c-s*l)/h,this.y=(o*l-a*c)/h,r=this.x-t.x,i=this.y-t.y,this.r=r*r+i*i};function xe(t,e){return e.x-t.x}function Oe(t){var e,n,r,i,o,s=t.length;t:for(;s;)for(n=t[--s],e=t[--s],r=s;r;)if(o=t[--r],e===(i=t[--r])&&n===o||e===o&&n===i){t.splice(s,2),t.splice(r,2),s-=2;continue t}}function Se(t){if(!t)throw new Error("geojson is required");switch(t.type){case"Feature":return Ce(t);case"FeatureCollection":return function(t){var e={type:"FeatureCollection"};return Object.keys(t).forEach((function(n){switch(n){case"type":case"features":return;default:e[n]=t[n]}})),e.features=t.features.map((function(t){return Ce(t)})),e}(t);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return Pe(t);default:throw new Error("unknown GeoJSON type")}}function Ce(t){var e={type:"Feature"};return Object.keys(t).forEach((function(n){switch(n){case"type":case"properties":case"geometry":return;default:e[n]=t[n]}})),e.properties=Ie(t.properties),e.geometry=Pe(t.geometry),e}function Ie(t){var e={};return t?(Object.keys(t).forEach((function(n){var r=t[n];"object"==typeof r?null===r?e[n]=null:Array.isArray(r)?e[n]=r.map((function(t){return t})):e[n]=Ie(r):e[n]=r})),e):e}function Pe(t){var e={type:t.type};return t.bbox&&(e.bbox=t.bbox),"GeometryCollection"===t.type?(e.geometries=t.geometries.map((function(t){return Pe(t)})),e):(e.coordinates=Re(t.coordinates),e)}function Re(t){var e=t;return"object"!=typeof e[0]?e.slice():e.map((function(t){return Re(t)}))}function Te(t,e){if(void 0===e&&(e={}),!R(e=e||{}))throw new Error("options is invalid");var n=e.mutate;if("FeatureCollection"!==ot(t))throw new Error("geojson must be a FeatureCollection");if(!t.features.length)throw new Error("geojson is empty");!1!==n&&void 0!==n||(t=Se(t));var r=[],i=W(t,(function(t,e){var n=function(t,e){var n,r=t.geometry.coordinates,i=e.geometry.coordinates,o=Le(r[0]),s=Le(r[r.length-1]),a=Le(i[0]),u=Le(i[i.length-1]);if(o===u)n=i.concat(r.slice(1));else if(a===s)n=r.concat(i.slice(1));else if(o===a)n=r.slice(1).reverse().concat(i);else{if(s!==u)return null;n=r.concat(i.reverse().slice(1))}return f(n)}(t,e);return n||(r.push(t),e)}));return i&&r.push(i),r.length?1===r.length?r[0]:g(r.map((function(t){return t.coordinates}))):null}function Le(t){return t[0].toString()+","+t[1].toString()}function Me(t){return t}function Ne(t,e){var n=function(t){if(null==t)return Me;var e,n,r=t.scale[0],i=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,a){a||(e=n=0);var u=2,c=t.length,l=new Array(c);for(l[0]=(e+=t[0])*r+o,l[1]=(n+=t[1])*i+s;u<c;)l[u]=t[u],++u;return l}}(t.transform),r=t.arcs;function i(t,e){e.length&&e.pop();for(var i=r[t<0?~t:t],o=0,s=i.length;o<s;++o)e.push(n(i[o],o));t<0&&function(t,e){for(var n,r=t.length,i=r-e;i<--r;)n=t[i],t[i++]=t[r],t[r]=n}(e,s)}function o(t){return n(t)}function s(t){for(var e=[],n=0,r=t.length;n<r;++n)i(t[n],e);return e.length<2&&e.push(e[0]),e}function a(t){for(var e=s(t);e.length<4;)e.push(e[0]);return e}function u(t){return t.map(a)}return function t(e){var n,r=e.type;switch(r){case"GeometryCollection":return{type:r,geometries:e.geometries.map(t)};case"Point":n=o(e.coordinates);break;case"MultiPoint":n=e.coordinates.map(o);break;case"LineString":n=s(e.arcs);break;case"MultiLineString":n=e.arcs.map(s);break;case"Polygon":n=u(e.arcs);break;case"MultiPolygon":n=e.arcs.map(u);break;default:return null}return{type:r,coordinates:n}}(e)}function Ae(t,e){var n={},r={},i={},o=[],s=-1;function a(t,e){for(var r in t){var i=t[r];delete e[i.start],delete i.start,delete i.end,i.forEach((function(t){n[t<0?~t:t]=1})),o.push(i)}}return e.forEach((function(n,r){var i,o=t.arcs[n<0?~n:n];o.length<3&&!o[1][0]&&!o[1][1]&&(i=e[++s],e[s]=n,e[r]=i)})),e.forEach((function(e){var n,o,s=function(e){var n,r=t.arcs[e<0?~e:e],i=r[0];return t.transform?(n=[0,0],r.forEach((function(t){n[0]+=t[0],n[1]+=t[1]}))):n=r[r.length-1],e<0?[n,i]:[i,n]}(e),a=s[0],u=s[1];if(n=i[a])if(delete i[n.end],n.push(e),n.end=u,o=r[u]){delete r[o.start];var c=o===n?n:n.concat(o);r[c.start=n.start]=i[c.end=o.end]=c}else r[n.start]=i[n.end]=n;else if(n=r[u])if(delete r[n.start],n.unshift(e),n.start=a,o=i[a]){delete i[o.end];var l=o===n?n:o.concat(n);r[l.start=o.start]=i[l.end=n.end]=l}else r[n.start]=i[n.end]=n;else r[(n=[e]).start=a]=i[n.end=u]=n})),a(i,r),a(r,i),e.forEach((function(t){n[t<0?~t:t]||o.push([t])})),o}function Fe(t,e){var n={},r=[],i=[];function o(t){t.forEach((function(e){e.forEach((function(e){(n[e=e<0?~e:e]||(n[e]=[])).push(t)}))})),r.push(t)}function s(e){return function(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n<r;)e=i,i=t[n],o+=e[0]*i[1]-e[1]*i[0];return Math.abs(o)}(Ne(t,{type:"Polygon",arcs:[e]}).coordinates[0])}return e.forEach((function t(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(t);break;case"Polygon":o(e.arcs);break;case"MultiPolygon":e.arcs.forEach(o)}})),r.forEach((function(t){if(!t._){var e=[],r=[t];for(t._=1,i.push(e);t=r.pop();)e.push(t),t.forEach((function(t){t.forEach((function(t){n[t<0?~t:t].forEach((function(t){t._||(t._=1,r.push(t))}))}))}))}})),r.forEach((function(t){delete t._})),{type:"MultiPolygon",arcs:i.map((function(e){var r,i=[];if(e.forEach((function(t){t.forEach((function(t){t.forEach((function(t){n[t<0?~t:t].length<2&&i.push(t)}))}))})),(r=(i=Ae(t,i)).length)>1)for(var o,a,u=1,c=s(i[0]);u<r;++u)(o=s(i[u]))>c&&(a=i[0],i[0]=i[u],i[u]=a,c=o);return i})).filter((function(t){return t.length>0}))}}var je=Object.prototype.hasOwnProperty;function De(t,e,n,r,i,o){3===arguments.length&&(r=o=Array,i=null);for(var s=new r(t=1<<Math.max(4,Math.ceil(Math.log(t)/Math.LN2))),a=new o(t),u=t-1,c=0;c<t;++c)s[c]=i;function l(r,o){for(var c=e(r)&u,l=s[c],h=0;l!=i;){if(n(l,r))return a[c]=o;if(++h>=t)throw new Error("full hashmap");l=s[c=c+1&u]}return s[c]=r,a[c]=o,o}function h(r,o){for(var c=e(r)&u,l=s[c],h=0;l!=i;){if(n(l,r))return a[c];if(++h>=t)throw new Error("full hashmap");l=s[c=c+1&u]}return s[c]=r,a[c]=o,o}function f(r,o){for(var c=e(r)&u,l=s[c],h=0;l!=i;){if(n(l,r))return a[c];if(++h>=t)break;l=s[c=c+1&u]}return o}function p(){for(var t=[],e=0,n=s.length;e<n;++e){var r=s[e];r!=i&&t.push(r)}return t}return{set:l,maybeSet:h,get:f,keys:p}}function ke(t,e){return t[0]===e[0]&&t[1]===e[1]}var Ge=new ArrayBuffer(16),Be=new Float64Array(Ge),Ue=new Uint32Array(Ge);function ze(t){Be[0]=t[0],Be[1]=t[1];var e=Ue[0]^Ue[1];return 2147483647&(e<<5^e>>7^Ue[2]^Ue[3])}function Ye(t){var e,n,r,i,o=t.coordinates,s=t.lines,a=t.rings,u=function(){for(var t=De(1.4*o.length,E,w,Int32Array,-1,Int32Array),e=new Int32Array(o.length),n=0,r=o.length;n<r;++n)e[n]=t.maybeSet(n,n);return e}(),c=new Int32Array(o.length),l=new Int32Array(o.length),h=new Int32Array(o.length),f=new Int8Array(o.length),p=0;for(e=0,n=o.length;e<n;++e)c[e]=l[e]=h[e]=-1;for(e=0,n=s.length;e<n;++e){var d=s[e],g=d[0],y=d[1];for(r=u[g],i=u[++g],++p,f[r]=1;++g<=y;)b(e,r,r=i,i=u[g]);++p,f[i]=1}for(e=0,n=o.length;e<n;++e)c[e]=-1;for(e=0,n=a.length;e<n;++e){var v=a[e],_=v[0]+1,m=v[1];for(b(e,u[m-1],r=u[_-1],i=u[_]);++_<=m;)b(e,r,r=i,i=u[_])}function b(t,e,n,r){if(c[n]!==t){c[n]=t;var i=l[n];if(i>=0){var o=h[n];i===e&&o===r||i===r&&o===e||(++p,f[n]=1)}else l[n]=e,h[n]=r}}function E(t){return ze(o[t])}function w(t,e){return ke(o[t],o[e])}c=l=h=null;var x,O=function(t,e,n,r,i){3===arguments.length&&(r=Array,i=null);for(var o=new r(t=1<<Math.max(4,Math.ceil(Math.log(t)/Math.LN2))),s=t-1,a=0;a<t;++a)o[a]=i;function u(r){for(var a=e(r)&s,u=o[a],c=0;u!=i;){if(n(u,r))return!0;if(++c>=t)throw new Error("full hashset");u=o[a=a+1&s]}return o[a]=r,!0}function c(r){for(var a=e(r)&s,u=o[a],c=0;u!=i;){if(n(u,r))return!0;if(++c>=t)break;u=o[a=a+1&s]}return!1}function l(){for(var t=[],e=0,n=o.length;e<n;++e){var r=o[e];r!=i&&t.push(r)}return t}return{add:u,has:c,values:l}}(1.4*p,ze,ke);for(e=0,n=o.length;e<n;++e)f[x=u[e]]&&O.add(o[x]);return O}function Xe(t,e,n,r){Ve(t,e,n),Ve(t,e,e+r),Ve(t,e+r,n)}function Ve(t,e,n){for(var r,i=e+(n---e>>1);e<i;++e,--n)r=t[e],t[e]=t[n],t[n]=r}function qe(t){var e,n,r={};for(e in t)r[e]=null==(n=t[e])?{type:null}:("FeatureCollection"===n.type?We:"Feature"===n.type?He:Ze)(n);return r}function We(t){var e={type:"GeometryCollection",geometries:t.features.map(He)};return null!=t.bbox&&(e.bbox=t.bbox),e}function He(t){var e,n=Ze(t.geometry);for(e in null!=t.id&&(n.id=t.id),null!=t.bbox&&(n.bbox=t.bbox),t.properties){n.properties=t.properties;break}return n}function Ze(t){if(null==t)return{type:null};var e="GeometryCollection"===t.type?{type:"GeometryCollection",geometries:t.geometries.map(Ze)}:"Point"===t.type||"MultiPoint"===t.type?{type:t.type,coordinates:t.coordinates}:{type:t.type,arcs:t.coordinates};return null!=t.bbox&&(e.bbox=t.bbox),e}function Ke(t,e){var n=function(t){var e=1/0,n=1/0,r=-1/0,i=-1/0;function o(t){null!=t&&je.call(s,t.type)&&s[t.type](t)}var s={GeometryCollection:function(t){t.geometries.forEach(o)},Point:function(t){a(t.coordinates)},MultiPoint:function(t){t.coordinates.forEach(a)},LineString:function(t){u(t.arcs)},MultiLineString:function(t){t.arcs.forEach(u)},Polygon:function(t){t.arcs.forEach(u)},MultiPolygon:function(t){t.arcs.forEach(c)}};function a(t){var o=t[0],s=t[1];o<e&&(e=o),o>r&&(r=o),s<n&&(n=s),s>i&&(i=s)}function u(t){t.forEach(a)}function c(t){t.forEach(u)}for(var l in t)o(t[l]);return r>=e&&i>=n?[e,n,r,i]:void 0}(t=qe(t)),r=e>0&&n&&function(t,e,n){var r=e[0],i=e[1],o=e[2],s=e[3],a=o-r?(n-1)/(o-r):1,u=s-i?(n-1)/(s-i):1;function c(t){return[Math.round((t[0]-r)*a),Math.round((t[1]-i)*u)]}function l(t,e){for(var n,o,s,c,l,h=-1,f=0,p=t.length,d=new Array(p);++h<p;)n=t[h],c=Math.round((n[0]-r)*a),l=Math.round((n[1]-i)*u),c===o&&l===s||(d[f++]=[o=c,s=l]);for(d.length=f;f<e;)f=d.push([d[0][0],d[0][1]]);return d}function h(t){return l(t,2)}function f(t){return l(t,4)}function p(t){return t.map(f)}function d(t){null!=t&&je.call(g,t.type)&&g[t.type](t)}var g={GeometryCollection:function(t){t.geometries.forEach(d)},Point:function(t){t.coordinates=c(t.coordinates)},MultiPoint:function(t){t.coordinates=t.coordinates.map(c)},LineString:function(t){t.arcs=h(t.arcs)},MultiLineString:function(t){t.arcs=t.arcs.map(h)},Polygon:function(t){t.arcs=p(t.arcs)},MultiPolygon:function(t){t.arcs=t.arcs.map(p)}};for(var y in t)d(t[y]);return{scale:[1/a,1/u],translate:[r,i]}}(t,n,e),i=function(t){var e,n,r,i,o=t.coordinates,s=t.lines,a=t.rings,u=s.length+a.length;for(delete t.lines,delete t.rings,r=0,i=s.length;r<i;++r)for(e=s[r];e=e.next;)++u;for(r=0,i=a.length;r<i;++r)for(n=a[r];n=n.next;)++u;var c=De(2*u*1.4,ze,ke),l=t.arcs=[];for(r=0,i=s.length;r<i;++r){e=s[r];do{h(e)}while(e=e.next)}for(r=0,i=a.length;r<i;++r)if((n=a[r]).next)do{h(n)}while(n=n.next);else f(n);function h(t){var e,n,r,i,s,a,u,h;if(r=c.get(e=o[t[0]]))for(u=0,h=r.length;u<h;++u)if(p(i=r[u],t))return t[0]=i[0],void(t[1]=i[1]);if(s=c.get(n=o[t[1]]))for(u=0,h=s.length;u<h;++u)if(d(a=s[u],t))return t[1]=a[0],void(t[0]=a[1]);r?r.push(t):c.set(e,[t]),s?s.push(t):c.set(n,[t]),l.push(t)}function f(t){var e,n,r,i,s;if(n=c.get(o[t[0]]))for(i=0,s=n.length;i<s;++i){if(g(r=n[i],t))return t[0]=r[0],void(t[1]=r[1]);if(y(r,t))return t[0]=r[1],void(t[1]=r[0])}if(n=c.get(e=o[t[0]+v(t)]))for(i=0,s=n.length;i<s;++i){if(g(r=n[i],t))return t[0]=r[0],void(t[1]=r[1]);if(y(r,t))return t[0]=r[1],void(t[1]=r[0])}n?n.push(t):c.set(e,[t]),l.push(t)}function p(t,e){var n=t[0],r=e[0],i=t[1];if(n-i!=r-e[1])return!1;for(;n<=i;++n,++r)if(!ke(o[n],o[r]))return!1;return!0}function d(t,e){var n=t[0],r=e[0],i=t[1],s=e[1];if(n-i!=r-s)return!1;for(;n<=i;++n,--s)if(!ke(o[n],o[s]))return!1;return!0}function g(t,e){var n=t[0],r=e[0],i=t[1]-n;if(i!==e[1]-r)return!1;for(var s=v(t),a=v(e),u=0;u<i;++u)if(!ke(o[n+(u+s)%i],o[r+(u+a)%i]))return!1;return!0}function y(t,e){var n=t[0],r=e[0],i=t[1],s=e[1],a=i-n;if(a!==s-r)return!1;for(var u=v(t),c=a-v(e),l=0;l<a;++l)if(!ke(o[n+(l+u)%a],o[s-(l+c)%a]))return!1;return!0}function v(t){for(var e=t[0],n=t[1],r=e,i=r,s=o[r];++r<n;){var a=o[r];(a[0]<s[0]||a[0]===s[0]&&a[1]<s[1])&&(i=r,s=a)}return i-e}return t}(function(t){var e,n,r,i=Ye(t),o=t.coordinates,s=t.lines,a=t.rings;for(n=0,r=s.length;n<r;++n)for(var u=s[n],c=u[0],l=u[1];++c<l;)i.has(o[c])&&(e={0:c,1:u[1]},u[1]=c,u=u.next=e);for(n=0,r=a.length;n<r;++n)for(var h=a[n],f=h[0],p=f,d=h[1],g=i.has(o[f]);++p<d;)i.has(o[p])&&(g?(e={0:p,1:h[1]},h[1]=p,h=h.next=e):(Xe(o,f,d,d-p),o[d]=o[f],g=!0,p=f));return t}(function(t){var e=-1,n=[],r=[],i=[];function o(t){t&&je.call(s,t.type)&&s[t.type](t)}var s={GeometryCollection:function(t){t.geometries.forEach(o)},LineString:function(t){t.arcs=a(t.arcs)},MultiLineString:function(t){t.arcs=t.arcs.map(a)},Polygon:function(t){t.arcs=t.arcs.map(u)},MultiPolygon:function(t){t.arcs=t.arcs.map(c)}};function a(t){for(var r=0,o=t.length;r<o;++r)i[++e]=t[r];var s={0:e-o+1,1:e};return n.push(s),s}function u(t){for(var n=0,o=t.length;n<o;++n)i[++e]=t[n];var s={0:e-o+1,1:e};return r.push(s),s}function c(t){return t.map(u)}for(var l in t)o(t[l]);return{type:"Topology",coordinates:i,lines:n,rings:r,objects:t}}(t))),o=i.coordinates,s=De(1.4*i.arcs.length,Je,Qe);function a(t){t&&je.call(u,t.type)&&u[t.type](t)}t=i.objects,i.bbox=n,i.arcs=i.arcs.map((function(t,e){return s.set(t,e),o.slice(t[0],t[1]+1)})),delete i.coordinates,o=null;var u={GeometryCollection:function(t){t.geometries.forEach(a)},LineString:function(t){t.arcs=c(t.arcs)},MultiLineString:function(t){t.arcs=t.arcs.map(c)},Polygon:function(t){t.arcs=t.arcs.map(c)},MultiPolygon:function(t){t.arcs=t.arcs.map(l)}};function c(t){var e=[];do{var n=s.get(t);e.push(t[0]<t[1]?n:~n)}while(t=t.next);return e}function l(t){return t.map(c)}for(var h in t)a(t[h]);return r&&(i.transform=r,i.arcs=function(t){for(var e=-1,n=t.length;++e<n;){for(var r,i,o=t[e],s=0,a=1,u=o.length,c=o[0],l=c[0],h=c[1];++s<u;)r=(c=o[s])[0],i=c[1],r===l&&i===h||(o[a++]=[r-l,i-h],l=r,h=i);1===a&&(o[a++]=[0,0]),o.length=a}return t}(i.arcs)),i}function Je(t){var e,n=t[0],r=t[1];return r<n&&(e=n,n=r,r=e),n+31*r}function Qe(t,e){var n,r=t[0],i=t[1],o=e[0],s=e[1];return i<r&&(n=r,r=i,i=n),s<o&&(n=o,o=s,s=n),r===o&&i===s}function $e(t,e){if(void 0===e&&(e={}),"FeatureCollection"!==ot(t))throw new Error("geojson must be a FeatureCollection");if(!t.features.length)throw new Error("geojson is empty");!1!==e.mutate&&void 0!==e.mutate||(t=Se(t));var n=[];z(t,(function(t){n.push(t.geometry)}));var r=Ke({geoms:_(n).geometry});return function(t){return Ne(t,Fe.apply(this,arguments))}(r,r.objects.geoms.geometries)}function tn(t,e){if(void 0===e&&(e={}),!R(e=e||{}))throw new Error("options is invalid");var n=e.mutate;if("FeatureCollection"!==ot(t))throw new Error("geojson must be a FeatureCollection");if(!t.features.length)throw new Error("geojson is empty");!1!==n&&void 0!==n||(t=Se(t));var r=function(t){var e={};z(t,(function(t){e[t.geometry.type]=!0}));var n=Object.keys(e);return 1===n.length?n[0]:null}(t);if(!r)throw new Error("geojson must be homogenous");var i=t;switch(r){case"LineString":return Te(i,e);case"Polygon":return $e(i,e);default:throw new Error(r+" is not supported")}}function en(t,e){void 0===e&&(e={});var n="object"==typeof e?e.mutate:e;if(!t)throw new Error("geojson is required");var r=ot(t),i=[];switch(r){case"LineString":i=nn(t);break;case"MultiLineString":case"Polygon":$(t).forEach((function(t){i.push(nn(t))}));break;case"MultiPolygon":$(t).forEach((function(t){var e=[];t.forEach((function(t){e.push(nn(t))})),i.push(e)}));break;case"Point":return t;case"MultiPoint":var o={};$(t).forEach((function(t){var e=t.join("-");Object.prototype.hasOwnProperty.call(o,e)||(i.push(t),o[e]=!0)}));break;default:throw new Error(r+" geometry not supported")}return t.coordinates?!0===n?(t.coordinates=i,t):{type:r,coordinates:i}:!0===n?(t.geometry.coordinates=i,t):s({type:r,coordinates:i},t.properties,{bbox:t.bbox,id:t.id})}function nn(t){var e=$(t);if(2===e.length&&!rn(e[0],e[1]))return e;var n=[],r=e.length-1,i=n.length;n.push(e[0]);for(var o=1;o<r;o++){var s=n[n.length-1];e[o][0]===s[0]&&e[o][1]===s[1]||(n.push(e[o]),(i=n.length)>2&&on(n[i-3],n[i-1],n[i-2])&&n.splice(n.length-2,1))}if(n.push(e[e.length-1]),i=n.length,rn(e[0],e[e.length-1])&&i<4)throw new Error("invalid polygon");return on(n[i-3],n[i-1],n[i-2])&&n.splice(n.length-2,1),n}function rn(t,e){return t[0]===e[0]&&t[1]===e[1]}function on(t,e,n){var r=n[0],i=n[1],o=t[0],s=t[1],a=e[0],u=e[1],c=a-o,l=u-s;return 0===(r-o)*l-(i-s)*c&&(Math.abs(c)>=Math.abs(l)?c>0?o<=r&&r<=a:a<=r&&r<=o:l>0?s<=i&&i<=u:u<=i&&i<=s)}function sn(t,e,n){var r=e.x,i=e.y,o=n.x-r,s=n.y-i;if(0!==o||0!==s){var a=((t.x-r)*o+(t.y-i)*s)/(o*o+s*s);a>1?(r=n.x,i=n.y):a>0&&(r+=o*a,i+=s*a)}return(o=t.x-r)*o+(s=t.y-i)*s}function an(t,e,n,r,i){for(var o,s=r,a=e+1;a<n;a++){var u=sn(t[a],t[e],t[n]);u>s&&(o=a,s=u)}s>r&&(o-e>1&&an(t,e,o,r,i),i.push(t[o]),n-o>1&&an(t,o,n,r,i))}function un(t,e){var n=t.length-1,r=[t[0]];return an(t,0,n,e,r),r.push(t[n]),r}function cn(t,e,n){if(t.length<=2)return t;var r=void 0!==e?e*e:1;return un(t=n?t:function(t,e){for(var n,r,i,o,s,a=t[0],u=[a],c=1,l=t.length;c<l;c++)n=t[c],i=a,o=void 0,s=void 0,o=(r=n).x-i.x,s=r.y-i.y,o*o+s*s>e&&(u.push(n),a=n);return a!==n&&u.push(n),u}(t,r),r)}function ln(t,e,n){return cn(t.map((function(t){return{x:t[0],y:t[1],z:t[2]}})),e,n).map((function(t){return t.z?[t.x,t.y,t.z]:[t.x,t.y]}))}function hn(t,e,n){return t.map((function(t){var r=t.map((function(t){return{x:t[0],y:t[1]}}));if(r.length<4)throw new Error("invalid polygon");for(var i=cn(r,e,n).map((function(t){return[t.x,t.y]}));!fn(i);)i=cn(r,e-=.01*e,n).map((function(t){return[t.x,t.y]}));return i[i.length-1][0]===i[0][0]&&i[i.length-1][1]===i[0][1]||i.push(i[0]),i}))}function fn(t){return!(t.length<3)&&!(3===t.length&&t[2][0]===t[0][0]&&t[2][1]===t[0][1])}var pn=function(){function t(t){this.points=t.points||[],this.duration=t.duration||1e4,this.sharpness=t.sharpness||.85,this.centers=[],this.controls=[],this.stepLength=t.stepLength||60,this.length=this.points.length,this.delay=0;for(var e=0;e<this.length;e++)this.points[e].z=this.points[e].z||0;for(e=0;e<this.length-1;e++){var n=this.points[e],r=this.points[e+1];this.centers.push({x:(n.x+r.x)/2,y:(n.y+r.y)/2,z:(n.z+r.z)/2})}for(this.controls.push([this.points[0],this.points[0]]),e=0;e<this.centers.length-1;e++){var i=this.points[e+1].x-(this.centers[e].x+this.centers[e+1].x)/2,o=this.points[e+1].y-(this.centers[e].y+this.centers[e+1].y)/2,s=this.points[e+1].z-(this.centers[e].y+this.centers[e+1].z)/2;this.controls.push([{x:(1-this.sharpness)*this.points[e+1].x+this.sharpness*(this.centers[e].x+i),y:(1-this.sharpness)*this.points[e+1].y+this.sharpness*(this.centers[e].y+o),z:(1-this.sharpness)*this.points[e+1].z+this.sharpness*(this.centers[e].z+s)},{x:(1-this.sharpness)*this.points[e+1].x+this.sharpness*(this.centers[e+1].x+i),y:(1-this.sharpness)*this.points[e+1].y+this.sharpness*(this.centers[e+1].y+o),z:(1-this.sharpness)*this.points[e+1].z+this.sharpness*(this.centers[e+1].z+s)}])}return this.controls.push([this.points[this.length-1],this.points[this.length-1]]),this.steps=this.cacheSteps(this.stepLength),this}return t.prototype.cacheSteps=function(t){var e=[],n=this.pos(0);e.push(0);for(var r=0;r<this.duration;r+=10){var i=this.pos(r);Math.sqrt((i.x-n.x)*(i.x-n.x)+(i.y-n.y)*(i.y-n.y)+(i.z-n.z)*(i.z-n.z))>t&&(e.push(r),n=i)}return e},t.prototype.vector=function(t){var e=this.pos(t+10),n=this.pos(t-10);return{angle:180*Math.atan2(e.y-n.y,e.x-n.x)/3.14,speed:Math.sqrt((n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y)+(n.z-e.z)*(n.z-e.z))}},t.prototype.pos=function(t){var e=t-this.delay;e<0&&(e=0),e>this.duration&&(e=this.duration-1);var n=e/this.duration;if(n>=1)return this.points[this.length-1];var r=Math.floor((this.points.length-1)*n);return function(t,e,n,r,i){var o=function(t){var e=t*t;return[e*t,3*e*(1-t),3*t*(1-t)*(1-t),(1-t)*(1-t)*(1-t)]}(t);return{x:i.x*o[0]+r.x*o[1]+n.x*o[2]+e.x*o[3],y:i.y*o[0]+r.y*o[1]+n.y*o[2]+e.y*o[3],z:i.z*o[0]+r.z*o[1]+n.z*o[2]+e.z*o[3]}}((this.length-1)*n-r,this.points[r],this.controls[r][1],this.controls[r+1][0],this.points[r+1])},t}();function dn(t,e){void 0===e&&(e={});for(var n=e.resolution||1e4,r=e.sharpness||.85,i=[],o=it(t).coordinates.map((function(t){return{x:t[0],y:t[1]}})),s=new pn({duration:n,points:o,sharpness:r}),a=function(t){var e=s.pos(t);Math.floor(t/100)%2==0&&i.push([e.x,e.y])},u=0;u<s.duration;u+=10)a(u);return a(s.duration),f(i,e.properties)}function gn(t,e){void 0===e&&(e={});var n=Number(t[0]),r=Number(t[1]),i=Number(t[2]),o=Number(t[3]);if(6===t.length)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var s=[n,r];return l([[s,[i,r],[i,o],[n,o],s]],e.properties,{bbox:t,id:e.id})}function yn(t){return gn(J(t))}function vn(t){var e=t[0],n=t[1],r=t[2],i=t[3];if(be(t.slice(0,2),[r,n])>=be(t.slice(0,2),[e,i])){var o=(n+i)/2;return[e,o-(r-e)/2,r,o+(r-e)/2]}var s=(e+r)/2;return[s-(i-n)/2,n,s+(i-n)/2,i]}function _n(t,e,n,r){void 0===r&&(r={});var i=Q(t),o=S(i[0]),s=S(i[1]),a=S(n),c=E(e,r.units),l=Math.asin(Math.sin(s)*Math.cos(c)+Math.cos(s)*Math.sin(c)*Math.cos(a));return u([O(o+Math.atan2(Math.sin(a)*Math.sin(c)*Math.cos(s),Math.cos(c)-Math.sin(s)*Math.sin(l))),O(l)],r.properties)}function mn(t,e,n){void 0===n&&(n={});for(var r=n.steps||64,i=n.properties?n.properties:!Array.isArray(t)&&"Feature"===t.type&&t.properties?t.properties:{},o=[],s=0;s<r;s++)o.push(_n(t,e,-360*s/r,n).geometry.coordinates);return o.push(o[0]),l([o],i)}function bn(t,e,n){if(void 0===n&&(n={}),!0===n.final)return function(t,e){var n=bn(e,t);return(n+180)%360}(t,e);var r=Q(t),i=Q(e),o=S(r[0]),s=S(i[0]),a=S(r[1]),u=S(i[1]),c=Math.sin(s-o)*Math.cos(u),l=Math.cos(a)*Math.sin(u)-Math.sin(a)*Math.cos(u)*Math.cos(s-o);return O(Math.atan2(c,l))}function En(t,e){void 0===e&&(e={});var n=J(t);return u([(n[0]+n[2])/2,(n[1]+n[3])/2],e.properties,e)}function wn(t,e){void 0===e&&(e={});var n=0,r=0,i=0;return N(t,(function(t){n+=t[0],r+=t[1],i++}),!0),u([n/i,r/i],e.properties)}function xn(t){var e=[];return"FeatureCollection"===t.type?D(t,(function(t){N(t,(function(n){e.push(u(n,t.properties))}))})):N(t,(function(n){e.push(u(n,t.properties))})),d(e)}var On=Cn,Sn=Cn;function Cn(t,e,n){n=n||2;var r,i,o,s,a,u,c,l=e&&e.length,h=l?e[0]*n:t.length,f=In(t,0,h,n,!0),p=[];if(!f)return p;if(l&&(f=function(t,e,n,r){var i,o,s,a=[];for(i=0,o=e.length;i<o;i++)(s=In(t,e[i]*r,i<o-1?e[i+1]*r:t.length,r,!1))===s.next&&(s.steiner=!0),a.push(Dn(s));for(a.sort(An),i=0;i<a.length;i++)Fn(a[i],n),n=Pn(n,n.next);return n}(t,e,f,n)),t.length>80*n){r=o=t[0],i=s=t[1];for(var d=n;d<h;d+=n)(a=t[d])<r&&(r=a),(u=t[d+1])<i&&(i=u),a>o&&(o=a),u>s&&(s=u);c=0!==(c=Math.max(o-r,s-i))?1/c:0}return Rn(f,p,n,r,i,c),p}function In(t,e,n,r,i){var o,s;if(i===Hn(t,e,n,r)>0)for(o=e;o<n;o+=r)s=Vn(o,t[o],t[o+1],s);else for(o=n-r;o>=e;o-=r)s=Vn(o,t[o],t[o+1],s);return s&&Un(s,s.next)&&(qn(s),s=s.next),s}function Pn(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!Un(r,r.next)&&0!==Bn(r.prev,r,r.next))r=r.next;else{if(qn(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function Rn(t,e,n,r,i,o,s){if(t){!s&&o&&function(t,e,n,r){var i=t;do{null===i.z&&(i.z=jn(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,s,a,u,c=1;do{for(n=t,t=null,o=null,s=0;n;){for(s++,r=n,a=0,e=0;e<c&&(a++,r=r.nextZ);e++);for(u=c;a>0||u>0&&r;)0!==a&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(s>1)}(i)}(t,r,i,o);for(var a,u,c=t;t.prev!==t.next;)if(a=t.prev,u=t.next,o?Ln(t,r,i,o):Tn(t))e.push(a.i/n),e.push(t.i/n),e.push(u.i/n),qn(t),t=u.next,c=u.next;else if((t=u)===c){s?1===s?Rn(t=Mn(t,e,n),e,n,r,i,o,2):2===s&&Nn(t,e,n,r,i,o):Rn(Pn(t),e,n,r,i,o,1);break}}}function Tn(t){var e=t.prev,n=t,r=t.next;if(Bn(e,n,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(kn(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&Bn(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function Ln(t,e,n,r){var i=t.prev,o=t,s=t.next;if(Bn(i,o,s)>=0)return!1;for(var a=i.x<o.x?i.x<s.x?i.x:s.x:o.x<s.x?o.x:s.x,u=i.y<o.y?i.y<s.y?i.y:s.y:o.y<s.y?o.y:s.y,c=i.x>o.x?i.x>s.x?i.x:s.x:o.x>s.x?o.x:s.x,l=i.y>o.y?i.y>s.y?i.y:s.y:o.y>s.y?o.y:s.y,h=jn(a,u,e,n,r),f=jn(c,l,e,n,r),p=t.prevZ,d=t.nextZ;p&&p.z>=h&&d&&d.z<=f;){if(p!==t.prev&&p!==t.next&&kn(i.x,i.y,o.x,o.y,s.x,s.y,p.x,p.y)&&Bn(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,d!==t.prev&&d!==t.next&&kn(i.x,i.y,o.x,o.y,s.x,s.y,d.x,d.y)&&Bn(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;p&&p.z>=h;){if(p!==t.prev&&p!==t.next&&kn(i.x,i.y,o.x,o.y,s.x,s.y,p.x,p.y)&&Bn(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;d&&d.z<=f;){if(d!==t.prev&&d!==t.next&&kn(i.x,i.y,o.x,o.y,s.x,s.y,d.x,d.y)&&Bn(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0}function Mn(t,e,n){var r=t;do{var i=r.prev,o=r.next.next;!Un(i,o)&&zn(i,r,r.next,o)&&Yn(i,o)&&Yn(o,i)&&(e.push(i.i/n),e.push(r.i/n),e.push(o.i/n),qn(r),qn(r.next),r=t=o),r=r.next}while(r!==t);return r}function Nn(t,e,n,r,i,o){var s=t;do{for(var a=s.next.next;a!==s.prev;){if(s.i!==a.i&&Gn(s,a)){var u=Xn(s,a);return s=Pn(s,s.next),u=Pn(u,u.next),Rn(s,e,n,r,i,o),void Rn(u,e,n,r,i,o)}a=a.next}s=s.next}while(s!==t)}function An(t,e){return t.x-e.x}function Fn(t,e){if(e=function(t,e){var n,r=e,i=t.x,o=t.y,s=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var a=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=i&&a>s){if(s=a,a===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(i===s)return n.prev;var u,c=n,l=n.x,h=n.y,f=1/0;for(r=n.next;r!==c;)i>=r.x&&r.x>=l&&i!==r.x&&kn(o<h?i:s,o,l,h,o<h?s:i,o,r.x,r.y)&&((u=Math.abs(o-r.y)/(i-r.x))<f||u===f&&r.x>n.x)&&Yn(r,t)&&(n=r,f=u),r=r.next;return n}(t,e)){var n=Xn(e,t);Pn(n,n.next)}}function jn(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Dn(t){var e=t,n=t;do{e.x<n.x&&(n=e),e=e.next}while(e!==t);return n}function kn(t,e,n,r,i,o,s,a){return(i-s)*(e-a)-(t-s)*(o-a)>=0&&(t-s)*(r-a)-(n-s)*(e-a)>=0&&(n-s)*(o-a)-(i-s)*(r-a)>=0}function Gn(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&zn(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&Yn(t,e)&&Yn(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)}function Bn(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function Un(t,e){return t.x===e.x&&t.y===e.y}function zn(t,e,n,r){return!!(Un(t,e)&&Un(n,r)||Un(t,r)&&Un(n,e))||Bn(t,e,n)>0!=Bn(t,e,r)>0&&Bn(n,r,t)>0!=Bn(n,r,e)>0}function Yn(t,e){return Bn(t.prev,t,t.next)<0?Bn(t,e,t.next)>=0&&Bn(t,t.prev,e)>=0:Bn(t,e,t.prev)<0||Bn(t,t.next,e)<0}function Xn(t,e){var n=new Wn(t.i,t.x,t.y),r=new Wn(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function Vn(t,e,n,r){var i=new Wn(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function qn(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Wn(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Hn(t,e,n,r){for(var i=0,o=e,s=n-r;o<n;o+=r)i+=(t[s]-t[o])*(t[o+1]+t[s+1]),s=o;return i}function Zn(t){var e=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var s=0;s<e;s++)n.vertices.push(t[i][o][s]);i>0&&(r+=t[i-1].length,n.holes.push(r))}return n}(t),n=On(e.vertices,e.holes,2),r=[],i=[];n.forEach((function(t,r){var o=n[r];i.push([e.vertices[2*o],e.vertices[2*o+1]])}));for(var o=0;o<i.length;o+=3){var s=i.slice(o,o+3);s.push(i[o]),r.push(l([s]))}return r}function Kn(t,e){if(!t)throw new Error("targetPoint is required");if(!e)throw new Error("points is required");var n,r=1/0,i=0;return D(e,(function(e,n){var o=be(t,e);o<r&&(i=n,r=o)})),(n=Se(e.features[i])).properties.featureIndex=i,n.properties.distanceToPoint=r,n}function Jn(t){if(!t)throw new Error("geojson is required");var e=[];return z(t,(function(t){!function(t,e){var n=[],r=t.geometry;if(null!==r){switch(r.type){case"Polygon":n=$(r);break;case"LineString":n=[$(r)]}n.forEach((function(n){(function(t,e){var n=[];return t.reduce((function(t,r){var i=f([t,r],e);return i.bbox=function(t,e){var n=t[0],r=t[1],i=e[0],o=e[1];return[n<i?n:i,r<o?r:o,n>i?n:i,r>o?r:o]}(t,r),n.push(i),r})),n})(n,t.properties).forEach((function(t){t.id=e.length,e.push(t)}))}))}}(t,e)})),d(e)}Cn.deviation=function(t,e,n,r){var i=e&&e.length,o=i?e[0]*n:t.length,s=Math.abs(Hn(t,0,o,n));if(i)for(var a=0,u=e.length;a<u;a++){var c=e[a]*n,l=a<u-1?e[a+1]*n:t.length;s-=Math.abs(Hn(t,c,l,n))}var h=0;for(a=0;a<r.length;a+=3){var f=r[a]*n,p=r[a+1]*n,d=r[a+2]*n;h+=Math.abs((t[f]-t[d])*(t[p+1]-t[f+1])-(t[f]-t[p])*(t[d+1]-t[f+1]))}return 0===s&&0===h?0:Math.abs((h-s)/s)},Cn.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var s=0;s<e;s++)n.vertices.push(t[i][o][s]);i>0&&(r+=t[i-1].length,n.holes.push(r))}return n},On.default=Sn;var Qn=Ut((function(t,e){function n(t,e,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=e||{},r.geometry=t,r}function r(t,e,r){if(void 0===r&&(r={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!p(t[0])||!p(t[1]))throw new Error("coordinates must contain numbers");return n({type:"Point",coordinates:t},e,r)}function i(t,e,r){void 0===r&&(r={});for(var i=0,o=t;i<o.length;i++){var s=o[i];if(s.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<s[s.length-1].length;a++)if(s[s.length-1][a]!==s[0][a])throw new Error("First and last Position are not equivalent.")}return n({type:"Polygon",coordinates:t},e,r)}function o(t,e,r){if(void 0===r&&(r={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");return n({type:"LineString",coordinates:t},e,r)}function s(t,e){void 0===e&&(e={});var n={type:"FeatureCollection"};return e.id&&(n.id=e.id),e.bbox&&(n.bbox=e.bbox),n.features=t,n}function a(t,e,r){return void 0===r&&(r={}),n({type:"MultiLineString",coordinates:t},e,r)}function u(t,e,r){return void 0===r&&(r={}),n({type:"MultiPoint",coordinates:t},e,r)}function c(t,e,r){return void 0===r&&(r={}),n({type:"MultiPolygon",coordinates:t},e,r)}function l(t,n){void 0===n&&(n="kilometers");var r=e.factors[n];if(!r)throw new Error(n+" units is invalid");return t*r}function h(t,n){void 0===n&&(n="kilometers");var r=e.factors[n];if(!r)throw new Error(n+" units is invalid");return t/r}function f(t){return t%(2*Math.PI)*180/Math.PI}function p(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.earthRadius=6371008.8,e.factors={centimeters:100*e.earthRadius,centimetres:100*e.earthRadius,degrees:e.earthRadius/111325,feet:3.28084*e.earthRadius,inches:39.37*e.earthRadius,kilometers:e.earthRadius/1e3,kilometres:e.earthRadius/1e3,meters:e.earthRadius,metres:e.earthRadius,miles:e.earthRadius/1609.344,millimeters:1e3*e.earthRadius,millimetres:1e3*e.earthRadius,nauticalmiles:e.earthRadius/1852,radians:1,yards:1.0936*e.earthRadius},e.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/e.earthRadius,yards:1.0936133},e.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},e.feature=n,e.geometry=function(t,e,n){switch(t){case"Point":return r(e).geometry;case"LineString":return o(e).geometry;case"Polygon":return i(e).geometry;case"MultiPoint":return u(e).geometry;case"MultiLineString":return a(e).geometry;case"MultiPolygon":return c(e).geometry;default:throw new Error(t+" is invalid")}},e.point=r,e.points=function(t,e,n){return void 0===n&&(n={}),s(t.map((function(t){return r(t,e)})),n)},e.polygon=i,e.polygons=function(t,e,n){return void 0===n&&(n={}),s(t.map((function(t){return i(t,e)})),n)},e.lineString=o,e.lineStrings=function(t,e,n){return void 0===n&&(n={}),s(t.map((function(t){return o(t,e)})),n)},e.featureCollection=s,e.multiLineString=a,e.multiPoint=u,e.multiPolygon=c,e.geometryCollection=function(t,e,r){return void 0===r&&(r={}),n({type:"GeometryCollection",geometries:t},e,r)},e.round=function(t,e){if(void 0===e&&(e=0),e&&!(e>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,e||0);return Math.round(t*n)/n},e.radiansToLength=l,e.lengthToRadians=h,e.lengthToDegrees=function(t,e){return f(h(t,e))},e.bearingToAzimuth=function(t){var e=t%360;return e<0&&(e+=360),e},e.radiansToDegrees=f,e.degreesToRadians=function(t){return t%360*Math.PI/180},e.convertLength=function(t,e,n){if(void 0===e&&(e="kilometers"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("length must be a positive number");return l(h(t,e),n)},e.convertArea=function(t,n,r){if(void 0===n&&(n="meters"),void 0===r&&(r="kilometers"),!(t>=0))throw new Error("area must be a positive number");var i=e.areaFactors[n];if(!i)throw new Error("invalid original units");var o=e.areaFactors[r];if(!o)throw new Error("invalid final units");return t/i*o},e.isNumber=p,e.isObject=function(t){return!!t&&t.constructor===Object},e.validateBBox=function(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!p(t))throw new Error("bbox must only contain numbers")}))},e.validateId=function(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}}));function $n(t,e,n){if(null!==t)for(var r,i,o,s,a,u,c,l,h=0,f=0,p=t.type,d="FeatureCollection"===p,g="Feature"===p,y=d?t.features.length:1,v=0;v<y;v++){a=(l=!!(c=d?t.features[v].geometry:g?t.geometry:t)&&"GeometryCollection"===c.type)?c.geometries.length:1;for(var _=0;_<a;_++){var m=0,b=0;if(null!==(s=l?c.geometries[_]:c)){u=s.coordinates;var E=s.type;switch(h=!n||"Polygon"!==E&&"MultiPolygon"!==E?0:1,E){case null:break;case"Point":if(!1===e(u,f,v,m,b))return!1;f++,m++;break;case"LineString":case"MultiPoint":for(r=0;r<u.length;r++){if(!1===e(u[r],f,v,m,b))return!1;f++,"MultiPoint"===E&&m++}"LineString"===E&&m++;break;case"Polygon":case"MultiLineString":for(r=0;r<u.length;r++){for(i=0;i<u[r].length-h;i++){if(!1===e(u[r][i],f,v,m,b))return!1;f++}"MultiLineString"===E&&m++,"Polygon"===E&&b++}"Polygon"===E&&m++;break;case"MultiPolygon":for(r=0;r<u.length;r++){for(b=0,i=0;i<u[r].length;i++){for(o=0;o<u[r][i].length-h;o++){if(!1===e(u[r][i][o],f,v,m,b))return!1;f++}b++}m++}break;case"GeometryCollection":for(r=0;r<s.geometries.length;r++)if(!1===$n(s.geometries[r],e,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function tr(t,e){var n;switch(t.type){case"FeatureCollection":for(n=0;n<t.features.length&&!1!==e(t.features[n].properties,n);n++);break;case"Feature":e(t.properties,0)}}function er(t,e){if("Feature"===t.type)e(t,0);else if("FeatureCollection"===t.type)for(var n=0;n<t.features.length&&!1!==e(t.features[n],n);n++);}function nr(t,e){var n,r,i,o,s,a,u,c,l,h,f=0,p="FeatureCollection"===t.type,d="Feature"===t.type,g=p?t.features.length:1;for(n=0;n<g;n++){for(a=p?t.features[n].geometry:d?t.geometry:t,c=p?t.features[n].properties:d?t.properties:{},l=p?t.features[n].bbox:d?t.bbox:void 0,h=p?t.features[n].id:d?t.id:void 0,s=(u=!!a&&"GeometryCollection"===a.type)?a.geometries.length:1,i=0;i<s;i++)if(null!==(o=u?a.geometries[i]:a))switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===e(o,f,c,l,h))return!1;break;case"GeometryCollection":for(r=0;r<o.geometries.length;r++)if(!1===e(o.geometries[r],f,c,l,h))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===e(null,f,c,l,h))return!1;f++}}function rr(t,e){nr(t,(function(t,n,r,i,o){var s,a=null===t?null:t.type;switch(a){case null:case"Point":case"LineString":case"Polygon":return!1!==e(Qn.feature(t,r,{bbox:i,id:o}),n,0)&&void 0}switch(a){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon"}for(var u=0;u<t.coordinates.length;u++){var c={type:s,coordinates:t.coordinates[u]};if(!1===e(Qn.feature(c,r),n,u))return!1}}))}function ir(t,e){rr(t,(function(t,n,r){var i=0;if(t.geometry){var o=t.geometry.type;if("Point"!==o&&"MultiPoint"!==o){var s,a=0,u=0,c=0;return!1!==$n(t,(function(o,l,h,f,p){if(void 0===s||n>a||f>u||p>c)return s=o,a=n,u=f,c=p,void(i=0);var d=Qn.lineString([s,o],t.properties);if(!1===e(d,n,r,p,i))return!1;i++,s=o}))&&void 0}}}))}function or(t,e){if(!t)throw new Error("geojson is required");rr(t,(function(t,n,r){if(null!==t.geometry){var i=t.geometry.type,o=t.geometry.coordinates;switch(i){case"LineString":if(!1===e(t,n,r,0,0))return!1;break;case"Polygon":for(var s=0;s<o.length;s++)if(!1===e(Qn.lineString(o[s],t.properties),n,r,s))return!1}}}))}var sr=function(t){var e=[];return $n(t,(function(t){e.push(t)})),e},ar=$n,ur=function(t,e,n,r){var i=n;return $n(t,(function(t,r,o,s,a){i=0===r&&void 0===n?t:e(i,t,r,o,s,a)}),r),i},cr=er,lr=function(t,e,n){var r=n;return er(t,(function(t,i){r=0===i&&void 0===n?t:e(r,t,i)})),r},hr=function(t,e){if(e=e||{},!Qn.isObject(e))throw new Error("options is invalid");var n,r=e.featureIndex||0,i=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.coordIndex||0,a=e.properties;switch(t.type){case"FeatureCollection":r<0&&(r=t.features.length+r),a=a||t.features[r].properties,n=t.features[r].geometry;break;case"Feature":a=a||t.properties,n=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=t;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var u=n.coordinates;switch(n.type){case"Point":return Qn.point(u,a,e);case"MultiPoint":return i<0&&(i=u.length+i),Qn.point(u[i],a,e);case"LineString":return s<0&&(s=u.length+s),Qn.point(u[s],a,e);case"Polygon":return o<0&&(o=u.length+o),s<0&&(s=u[o].length+s),Qn.point(u[o][s],a,e);case"MultiLineString":return i<0&&(i=u.length+i),s<0&&(s=u[i].length+s),Qn.point(u[i][s],a,e);case"MultiPolygon":return i<0&&(i=u.length+i),o<0&&(o=u[i].length+o),s<0&&(s=u[i][o].length-s),Qn.point(u[i][o][s],a,e)}throw new Error("geojson is invalid")},fr=function(t,e){if(e=e||{},!Qn.isObject(e))throw new Error("options is invalid");var n,r=e.featureIndex||0,i=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.segmentIndex||0,a=e.properties;switch(t.type){case"FeatureCollection":r<0&&(r=t.features.length+r),a=a||t.features[r].properties,n=t.features[r].geometry;break;case"Feature":a=a||t.properties,n=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=t;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var u=n.coordinates;switch(n.type){case"Point":case"MultiPoint":return null;case"LineString":return s<0&&(s=u.length+s-1),Qn.lineString([u[s],u[s+1]],a,e);case"Polygon":return o<0&&(o=u.length+o),s<0&&(s=u[o].length+s-1),Qn.lineString([u[o][s],u[o][s+1]],a,e);case"MultiLineString":return i<0&&(i=u.length+i),s<0&&(s=u[i].length+s-1),Qn.lineString([u[i][s],u[i][s+1]],a,e);case"MultiPolygon":return i<0&&(i=u.length+i),o<0&&(o=u[i].length+o),s<0&&(s=u[i][o].length-s-1),Qn.lineString([u[i][o][s],u[i][o][s+1]],a,e)}throw new Error("geojson is invalid")},pr=rr,dr=function(t,e,n){var r=n;return rr(t,(function(t,i,o){r=0===i&&0===o&&void 0===n?t:e(r,t,i,o)})),r},gr=nr,yr=function(t,e,n){var r=n;return nr(t,(function(t,i,o,s,a){r=0===i&&void 0===n?t:e(r,t,i,o,s,a)})),r},vr=or,_r=function(t,e,n){var r=n;return or(t,(function(t,i,o,s){r=0===i&&void 0===n?t:e(r,t,i,o,s)})),r},mr=tr,br=function(t,e,n){var r=n;return tr(t,(function(t,i){r=0===i&&void 0===n?t:e(r,t,i)})),r},Er=ir,wr=function(t,e,n){var r=n,i=!1;return ir(t,(function(t,o,s,a,u){r=!1===i&&void 0===n?t:e(r,t,o,s,a,u),i=!0})),r},xr=Object.defineProperty({coordAll:sr,coordEach:ar,coordReduce:ur,featureEach:cr,featureReduce:lr,findPoint:hr,findSegment:fr,flattenEach:pr,flattenReduce:dr,geomEach:gr,geomReduce:yr,lineEach:vr,lineReduce:_r,propEach:mr,propReduce:br,segmentEach:Er,segmentReduce:wr},"__esModule",{value:!0});function Or(t){var e=[1/0,1/0,-1/0,-1/0];return xr.coordEach(t,(function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])})),e}Or.default=Or;var Sr=Or,Cr=Object.defineProperty({default:Sr},"__esModule",{value:!0}).default,Ir=xr.featureEach,Pr=(xr.coordEach,Qn.polygon,Qn.featureCollection);function Rr(t){var e=Ct(t);return e.insert=function(t){if("Feature"!==t.type)throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:Cr(t),Ct.prototype.insert.call(this,t)},e.load=function(t){var e=[];return Array.isArray(t)?t.forEach((function(t){if("Feature"!==t.type)throw new Error("invalid features");t.bbox=t.bbox?t.bbox:Cr(t),e.push(t)})):Ir(t,(function(t){if("Feature"!==t.type)throw new Error("invalid features");t.bbox=t.bbox?t.bbox:Cr(t),e.push(t)})),Ct.prototype.load.call(this,e)},e.remove=function(t,e){if("Feature"!==t.type)throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:Cr(t),Ct.prototype.remove.call(this,t,e)},e.clear=function(){return Ct.prototype.clear.call(this)},e.search=function(t){var e=Ct.prototype.search.call(this,this.toBBox(t));return Pr(e)},e.collides=function(t){return Ct.prototype.collides.call(this,this.toBBox(t))},e.all=function(){var t=Ct.prototype.all.call(this);return Pr(t)},e.toJSON=function(){return Ct.prototype.toJSON.call(this)},e.fromJSON=function(t){return Ct.prototype.fromJSON.call(this,t)},e.toBBox=function(t){var e;if(t.bbox)e=t.bbox;else if(Array.isArray(t)&&4===t.length)e=t;else if(Array.isArray(t)&&6===t.length)e=[t[0],t[1],t[3],t[4]];else if("Feature"===t.type)e=Cr(t);else{if("FeatureCollection"!==t.type)throw new Error("invalid geojson");e=Cr(t)}return{minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}},e}var Tr=Rr,Lr=Rr;function Mr(t,e){var n={},r=[];if("LineString"===t.type&&(t=s(t)),"LineString"===e.type&&(e=s(e)),"Feature"===t.type&&"Feature"===e.type&&null!==t.geometry&&null!==e.geometry&&"LineString"===t.geometry.type&&"LineString"===e.geometry.type&&2===t.geometry.coordinates.length&&2===e.geometry.coordinates.length){var i=Nr(t,e);return i&&r.push(i),d(r)}var o=Tr();return o.load(Jn(e)),D(Jn(t),(function(t){D(o.search(t),(function(e){var i=Nr(t,e);if(i){var o=$(i).join(",");n[o]||(n[o]=!0,r.push(i))}}))})),d(r)}function Nr(t,e){var n=$(t),r=$(e);if(2!==n.length)throw new Error("<intersects> line1 must only contain 2 coordinates");if(2!==r.length)throw new Error("<intersects> line2 must only contain 2 coordinates");var i=n[0][0],o=n[0][1],s=n[1][0],a=n[1][1],c=r[0][0],l=r[0][1],h=r[1][0],f=r[1][1],p=(f-l)*(s-i)-(h-c)*(a-o),d=(h-c)*(o-l)-(f-l)*(i-c),g=(s-i)*(o-l)-(a-o)*(i-c);if(0===p)return null;var y=d/p,v=g/p;return y>=0&&y<=1&&v>=0&&v<=1?u([i+y*(s-i),o+y*(a-o)]):null}function Ar(t,e,n){void 0===n&&(n={});var r=u([1/0,1/0],{dist:1/0}),i=0;return z(t,(function(t){for(var o=$(t),s=0;s<o.length-1;s++){var a=u(o[s]);a.properties.dist=be(e,a,n);var c=u(o[s+1]);c.properties.dist=be(e,c,n);var l=be(a,c,n),h=Math.max(a.properties.dist,c.properties.dist),p=bn(a,c),d=_n(e,h,p+90,n),g=_n(e,h,p-90,n),y=Mr(f([d.geometry.coordinates,g.geometry.coordinates]),f([a.geometry.coordinates,c.geometry.coordinates])),v=null;y.features.length>0&&((v=y.features[0]).properties.dist=be(e,v,n),v.properties.location=i+be(a,v,n)),a.properties.dist<r.properties.dist&&((r=a).properties.index=s,r.properties.location=i),c.properties.dist<r.properties.dist&&((r=c).properties.index=s+1,r.properties.location=i+l),v&&v.properties.dist<r.properties.dist&&((r=v).properties.index=s),i+=l}})),r}function Fr(t,e,r){void 0===r&&(r={});var i=Q(t),o=Q(e);return o[0]+=o[0]-i[0]>180?-360:i[0]-o[0]>180?360:0,C(function(t,e,r){var i=r=void 0===r?n:Number(r),o=t[1]*Math.PI/180,s=e[1]*Math.PI/180,a=s-o,u=Math.abs(e[0]-t[0])*Math.PI/180;u>Math.PI&&(u-=2*Math.PI);var c=Math.log(Math.tan(s/2+Math.PI/4)/Math.tan(o/2+Math.PI/4)),l=Math.abs(c)>1e-11?a/c:Math.cos(o);return Math.sqrt(a*a+l*l*u*u)*i}(i,o),"meters",r.units)}function jr(t,e,n){if(void 0===n&&(n={}),n.method||(n.method="geodesic"),n.units||(n.units="kilometers"),!t)throw new Error("pt is required");if(Array.isArray(t)?t=u(t):"Point"===t.type?t=s(t):nt(t,"Point","point"),!e)throw new Error("line is required");Array.isArray(e)?e=f(e):"LineString"===e.type?e=s(e):nt(e,"LineString","line");var r=1/0,i=t.geometry.coordinates;return X(e,(function(t){var e=t.geometry.coordinates[0],o=t.geometry.coordinates[1],s=function(t,e,n,r){var i=[n[0]-e[0],n[1]-e[1]],o=Dr([t[0]-e[0],t[1]-e[1]],i);if(o<=0)return kr(t,e,{method:r.method,units:"degrees"});var s=Dr(i,i);if(s<=o)return kr(t,n,{method:r.method,units:"degrees"});var a=o/s,u=[e[0]+a*i[0],e[1]+a*i[1]];return kr(t,u,{method:r.method,units:"degrees"})}(i,e,o,n);s<r&&(r=s)})),C(r,"degrees",n.units)}function Dr(t,e){return t[0]*e[0]+t[1]*e[1]}function kr(t,e,n){return"planar"===n.method?Fr(t,e,n):be(t,e,n)}function Gr(t,e,n,r,i,o,s,a){var u,c,l,h,f={x:null,y:null,onLine1:!1,onLine2:!1};return 0===(u=(a-o)*(n-t)-(s-i)*(r-e))?null!==f.x&&null!==f.y&&f:(h=(n-t)*(c=e-o)-(r-e)*(l=t-i),c=((s-i)*c-(a-o)*l)/u,l=h/u,f.x=t+c*(n-t),f.y=e+c*(r-e),c>=0&&c<=1&&(f.onLine1=!0),l>=0&&l<=1&&(f.onLine2=!0),!(!f.onLine1||!f.onLine2)&&[f.x,f.y])}function Br(t){for(var e=function(t){return"FeatureCollection"!==t.type?"Feature"!==t.type?d([s(t)]):d([t]):t}(t),n=En(e),r=!1,i=0;!r&&i<e.features.length;){var o,a=e.features[i].geometry,c=!1;if("Point"===a.type)n.geometry.coordinates[0]===a.coordinates[0]&&n.geometry.coordinates[1]===a.coordinates[1]&&(r=!0);else if("MultiPoint"===a.type){var l=!1;for(o=0;!l&&o<a.coordinates.length;)n.geometry.coordinates[0]===a.coordinates[o][0]&&n.geometry.coordinates[1]===a.coordinates[o][1]&&(r=!0,l=!0),o++}else if("LineString"===a.type)for(o=0;!c&&o<a.coordinates.length-1;)Ur(n.geometry.coordinates[0],n.geometry.coordinates[1],a.coordinates[o][0],a.coordinates[o][1],a.coordinates[o+1][0],a.coordinates[o+1][1])&&(c=!0,r=!0),o++;else if("MultiLineString"===a.type)for(var h=0;h<a.coordinates.length;){c=!1,o=0;for(var f=a.coordinates[h];!c&&o<f.length-1;)Ur(n.geometry.coordinates[0],n.geometry.coordinates[1],f[o][0],f[o][1],f[o+1][0],f[o+1][1])&&(c=!0,r=!0),o++;h++}else"Polygon"!==a.type&&"MultiPolygon"!==a.type||ve(n,a)&&(r=!0);i++}if(r)return n;var p=d([]);for(i=0;i<e.features.length;i++)p.features=p.features.concat(xn(e.features[i]).features);return u(Kn(n,p).geometry.coordinates)}function Ur(t,e,n,r,i,o){return Math.sqrt((i-n)*(i-n)+(o-r)*(o-r))===Math.sqrt((t-n)*(t-n)+(e-r)*(e-r))+Math.sqrt((i-t)*(i-t)+(o-e)*(o-e))}Tr.default=Lr;var zr=6378137;function Yr(t){return U(t,(function(t,e){return t+function(t){var e,n=0;switch(t.type){case"Polygon":return Xr(t.coordinates);case"MultiPolygon":for(e=0;e<t.coordinates.length;e++)n+=Xr(t.coordinates[e]);return n;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(e)}),0)}function Xr(t){var e=0;if(t&&t.length>0){e+=Math.abs(Vr(t[0]));for(var n=1;n<t.length;n++)e-=Math.abs(Vr(t[n]))}return e}function Vr(t){var e,n,r,i,o,s,a=0,u=t.length;if(u>2){for(s=0;s<u;s++)s===u-2?(r=u-2,i=u-1,o=0):s===u-1?(r=u-1,i=0,o=1):(r=s,i=s+1,o=s+2),e=t[r],n=t[i],a+=(qr(t[o][0])-qr(e[0]))*Math.sin(qr(n[1]));a=a*zr*zr/2}return a}function qr(t){return t*Math.PI/180}function Wr(t,e){return void 0===e&&(e={}),V(t,(function(t,n){var r=n.geometry.coordinates;return t+be(r[0],r[1],e)}),0)}function Hr(t,e,n,r){if(!R(r=r||{}))throw new Error("options is invalid");var i,o=[];if("Feature"===t.type)i=t.geometry.coordinates;else{if("LineString"!==t.type)throw new Error("input must be a LineString Feature or Geometry");i=t.coordinates}for(var s,a,u,c=i.length,l=0,h=0;h<i.length&&!(e>=l&&h===i.length-1);h++){if(l>e&&0===o.length){if(!(s=e-l))return o.push(i[h]),f(o);a=bn(i[h],i[h-1])-180,u=_n(i[h],s,a,r),o.push(u.geometry.coordinates)}if(l>=n)return(s=n-l)?(a=bn(i[h],i[h-1])-180,u=_n(i[h],s,a,r),o.push(u.geometry.coordinates),f(o)):(o.push(i[h]),f(o));if(l>=e&&o.push(i[h]),h===i.length-1)return f(o);l+=be(i[h],i[h+1],r)}if(l<e&&i.length===c)throw new Error("Start position is beyond line");var p=i[i.length-1];return f([p,p])}function Zr(t,e,n){void 0===n&&(n={});for(var r=Q(t),i=$(e),o=0;o<i.length-1;o++){var s=!1;if(n.ignoreEndVertices&&(0===o&&(s="start"),o===i.length-2&&(s="end"),0===o&&o+1===i.length-1&&(s="both")),Kr(i[o],i[o+1],r,s,void 0===n.epsilon?null:n.epsilon))return!0}return!1}function Kr(t,e,n,r,i){var o=n[0],s=n[1],a=t[0],u=t[1],c=e[0],l=e[1],h=c-a,f=l-u,p=(n[0]-a)*f-(n[1]-u)*h;if(null!==i){if(Math.abs(p)>i)return!1}else if(0!==p)return!1;return r?"start"===r?Math.abs(h)>=Math.abs(f)?h>0?a<o&&o<=c:c<=o&&o<a:f>0?u<s&&s<=l:l<=s&&s<u:"end"===r?Math.abs(h)>=Math.abs(f)?h>0?a<=o&&o<c:c<o&&o<=a:f>0?u<=s&&s<l:l<s&&s<=u:"both"===r&&(Math.abs(h)>=Math.abs(f)?h>0?a<o&&o<c:c<o&&o<a:f>0?u<s&&s<l:l<s&&s<u):Math.abs(h)>=Math.abs(f)?h>0?a<=o&&o<=c:c<=o&&o<=a:f>0?u<=s&&s<=l:l<=s&&s<=u}function Jr(t,e){var n=it(t),r=it(e),i=n.type,o=r.type;switch(i){case"Point":switch(o){case"MultiPoint":return function(t,e){var n,r=!1;for(n=0;n<e.coordinates.length;n++)if($r(e.coordinates[n],t.coordinates)){r=!0;break}return r}(n,r);case"LineString":return Zr(n,r,{ignoreEndVertices:!0});case"Polygon":case"MultiPolygon":return ve(n,r,{ignoreBoundary:!0});default:throw new Error("feature2 "+o+" geometry not supported")}case"MultiPoint":switch(o){case"MultiPoint":return function(t,e){for(var n=0;n<t.coordinates.length;n++){for(var r=!1,i=0;i<e.coordinates.length;i++)$r(t.coordinates[n],e.coordinates[i])&&(r=!0);if(!r)return!1}return!0}(n,r);case"LineString":return function(t,e){for(var n=!1,r=0;r<t.coordinates.length;r++){if(!Zr(t.coordinates[r],e))return!1;n||(n=Zr(t.coordinates[r],e,{ignoreEndVertices:!0}))}return n}(n,r);case"Polygon":case"MultiPolygon":return function(t,e){for(var n=!0,r=!1,i=0;i<t.coordinates.length;i++){if(!(r=ve(t.coordinates[1],e))){n=!1;break}r=ve(t.coordinates[1],e,{ignoreBoundary:!0})}return n&&r}(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}case"LineString":switch(o){case"LineString":return function(t,e){for(var n=0;n<t.coordinates.length;n++)if(!Zr(t.coordinates[n],e))return!1;return!0}(n,r);case"Polygon":case"MultiPolygon":return function(t,e){var n=J(e),r=J(t);if(!Qr(n,r))return!1;for(var i=!1,o=0;o<t.coordinates.length-1;o++){if(!ve(t.coordinates[o],e))return!1;i||(i=ve(t.coordinates[o],e,{ignoreBoundary:!0})),i||(i=ve(ti(t.coordinates[o],t.coordinates[o+1]),e,{ignoreBoundary:!0}))}return i}(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}case"Polygon":switch(o){case"Polygon":case"MultiPolygon":return function(t,e){var n=J(t);if(!Qr(J(e),n))return!1;for(var r=0;r<t.coordinates[0].length;r++)if(!ve(t.coordinates[0][r],e))return!1;return!0}(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}default:throw new Error("feature1 "+i+" geometry not supported")}}function Qr(t,e){return!(t[0]>e[0])&&!(t[2]<e[2])&&!(t[1]>e[1])&&!(t[3]<e[3])}function $r(t,e){return t[0]===e[0]&&t[1]===e[1]}function ti(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}function ei(t,e,n){void 0===n&&(n={}),n.mask&&!n.units&&(n.units="kilometers");for(var r=[],i=t[0],o=t[1],s=t[2],a=t[3],c=e/be([i,o],[s,o],n)*(s-i),l=e/be([i,o],[i,a],n)*(a-o),h=s-i,f=a-o,p=Math.floor(h/c),g=(f-Math.floor(f/l)*l)/2,y=i+(h-p*c)/2;y<=s;){for(var v=o+g;v<=a;){var _=u([y,v],n.properties);n.mask?Jr(_,n.mask)&&r.push(_):r.push(_),v+=l}y+=c}return d(r)}function ni(t,e){void 0===e&&(e={});var n=e.precision,r=e.coordinates,i=e.mutate;if(n=null==n||isNaN(n)?6:n,r=null==r||isNaN(r)?3:r,!t)throw new Error("<geojson> is required");if("number"!=typeof n)throw new Error("<precision> must be a number");if("number"!=typeof r)throw new Error("<coordinates> must be a number");!1!==i&&void 0!==i||(t=JSON.parse(JSON.stringify(t)));var o=Math.pow(10,n);return N(t,(function(t){!function(t,e,n){t.length>n&&t.splice(n,t.length);for(var r=0;r<t.length;r++)t[r]=Math.round(t[r]*e)/e}(t,o,r)})),t}function ri(t){if(!t)throw new Error("geojson is required");var e=[];return z(t,(function(t){e.push(t)})),d(e)}function ii(t,e,n){if("Polygon"!==t.geometry.type)throw new Error("The input feature must be a Polygon");void 0===n&&(n=1);var r=t.geometry.coordinates,i=[],o={};if(n){for(var s=[],a=0;a<r.length;a++)for(var u=0;u<r[a].length-1;u++)s.push(g(a,u));var c=Ct();c.load(s)}for(var l=0;l<r.length;l++)for(var h=0;h<r[l].length-1;h++)if(n)c.search(g(l,h)).forEach((function(t){var e=t.ring,n=t.edge;d(l,h,e,n)}));else for(var f=0;f<r.length;f++)for(var p=0;p<r[f].length-1;p++)d(l,h,f,p);return e||(i={type:"Feature",geometry:{type:"MultiPoint",coordinates:i}}),i;function d(t,n,s,a){var u,c,l=r[t][n],h=r[t][n+1],f=r[s][a],p=r[s][a+1],d=function(t,e,n,r){if(oi(t,n)||oi(t,r)||oi(e,n)||oi(r,n))return null;var i=t[0],o=t[1],s=e[0],a=e[1],u=n[0],c=n[1],l=r[0],h=r[1],f=(i-s)*(c-h)-(o-a)*(u-l);return 0===f?null:[((i*a-o*s)*(u-l)-(i-s)*(u*h-c*l))/f,((i*a-o*s)*(c-h)-(o-a)*(u*h-c*l))/f]}(l,h,f,p);if(null!==d&&(u=h[0]!==l[0]?(d[0]-l[0])/(h[0]-l[0]):(d[1]-l[1])/(h[1]-l[1]),c=p[0]!==f[0]?(d[0]-f[0])/(p[0]-f[0]):(d[1]-f[1])/(p[1]-f[1]),!(u>=1||u<=0||c>=1||c<=0))){var g=d,y=!o[g];y&&(o[g]=!0),e?i.push(e(d,t,n,l,h,u,s,a,f,p,c,y)):i.push(d)}}function g(t,e){var n,i,o,s,a=r[t][e],u=r[t][e+1];return a[0]<u[0]?(n=a[0],i=u[0]):(n=u[0],i=a[0]),a[1]<u[1]?(o=a[1],s=u[1]):(o=u[1],s=a[1]),{minX:n,minY:o,maxX:i,maxY:s,ring:t,edge:e}}}function oi(t,e){if(!t||!e)return!1;if(t.length!==e.length)return!1;for(var n=0,r=t.length;n<r;n++)if(t[n]instanceof Array&&e[n]instanceof Array){if(!oi(t[n],e[n]))return!1}else if(t[n]!==e[n])return!1;return!0}function si(t){if("Feature"!=t.type)throw new Error("The input must a geojson object of type Feature");if(void 0===t.geometry||null==t.geometry)throw new Error("The input must a geojson object with a non-empty geometry");if("Polygon"!=t.geometry.type)throw new Error("The input must be a geojson Polygon");for(var e=t.geometry.coordinates.length,n=[],r=0;r<e;r++){var i=t.geometry.coordinates[r];hi(i[0],i[i.length-1])||i.push(i[0]),n.push.apply(n,i.slice(0,i.length-1))}if(!function(t){for(var e={},n=1,r=0,i=t.length;r<i;++r){if(Object.prototype.hasOwnProperty.call(e,t[r])){n=0;break}e[t[r]]=1}return n}(n))throw new Error("The input polygon may not have duplicate vertices (except for the first and last vertex of each ring)");var o=n.length,s=ii(t,(function(t,e,n,r,i,o,s,a,u,c,l,h){return[t,e,n,r,i,o,s,a,u,c,l,h]})),a=s.length;if(0==a){var u=[];for(r=0;r<e;r++)u.push(l([t.geometry.coordinates[r]],{parent:-1,winding:li(t.geometry.coordinates[r])}));var c=d(u);return k(),G(),c}var h=[],f=[];for(r=0;r<e;r++){h.push([]);for(var p=0;p<t.geometry.coordinates[r].length-1;p++)h[r].push([new ai(t.geometry.coordinates[r][fi(p+1,t.geometry.coordinates[r].length-1)],1,[r,p],[r,fi(p+1,t.geometry.coordinates[r].length-1)],void 0)]),f.push(new ui(t.geometry.coordinates[r][p],[r,fi(p-1,t.geometry.coordinates[r].length-1)],[r,p],void 0,void 0,!1,!0))}for(r=0;r<a;r++)h[s[r][1]][s[r][2]].push(new ai(s[r][0],s[r][5],[s[r][1],s[r][2]],[s[r][6],s[r][7]],void 0)),s[r][11]&&f.push(new ui(s[r][0],[s[r][1],s[r][2]],[s[r][6],s[r][7]],void 0,void 0,!0,!0));var g=f.length;for(r=0;r<h.length;r++)for(p=0;p<h[r].length;p++)h[r][p].sort((function(t,e){return t.param<e.param?-1:1}));var y=[];for(r=0;r<g;r++)y.push({minX:f[r].coord[0],minY:f[r].coord[1],maxX:f[r].coord[0],maxY:f[r].coord[1],index:r});var v=Ct();for(v.load(y),r=0;r<h.length;r++)for(p=0;p<h[r].length;p++)for(var _=0;_<h[r][p].length;_++){b=_==h[r][p].length-1?h[r][fi(p+1,t.geometry.coordinates[r].length-1)][0].coord:h[r][p][_+1].coord;var m=v.search({minX:b[0],minY:b[1],maxX:b[0],maxY:b[1]})[0];h[r][p][_].nxtIsectAlongEdgeIn=m.index}for(r=0;r<h.length;r++)for(p=0;p<h[r].length;p++)for(_=0;_<h[r][p].length;_++){var b=h[r][p][_].coord,E=(m=v.search({minX:b[0],minY:b[1],maxX:b[0],maxY:b[1]})[0]).index;E<o?f[E].nxtIsectAlongRingAndEdge2=h[r][p][_].nxtIsectAlongEdgeIn:hi(f[E].ringAndEdge1,h[r][p][_].ringAndEdgeIn)?f[E].nxtIsectAlongRingAndEdge1=h[r][p][_].nxtIsectAlongEdgeIn:f[E].nxtIsectAlongRingAndEdge2=h[r][p][_].nxtIsectAlongEdgeIn}var w=[];for(r=0,p=0;p<e;p++){var x=r;for(_=0;_<t.geometry.coordinates[p].length-1;_++)f[r].coord[0]<f[x].coord[0]&&(x=r),r++;var O=f[x].nxtIsectAlongRingAndEdge2;for(_=0;_<f.length;_++)if(f[_].nxtIsectAlongRingAndEdge1==x||f[_].nxtIsectAlongRingAndEdge2==x){var S=_;break}var C=ci([f[S].coord,f[x].coord,f[O].coord],!0)?1:-1;w.push({isect:x,parent:-1,winding:C})}for(w.sort((function(t,e){return f[t.isect].coord>f[e.isect].coord?-1:1})),u=[];w.length>0;){var I=w.pop(),P=I.isect,R=I.parent,T=I.winding,L=u.length,M=[f[P].coord],N=P;if(f[P].ringAndEdge1Walkable)var A=f[P].ringAndEdge1,F=f[P].nxtIsectAlongRingAndEdge1;else A=f[P].ringAndEdge2,F=f[P].nxtIsectAlongRingAndEdge2;for(;!hi(f[P].coord,f[F].coord);){M.push(f[F].coord);var j=void 0;for(r=0;r<w.length;r++)if(w[r].isect==F){j=r;break}if(null!=j&&w.splice(j,1),hi(A,f[F].ringAndEdge1)){if(A=f[F].ringAndEdge2,f[F].ringAndEdge2Walkable=!1,f[F].ringAndEdge1Walkable){var D={isect:F};ci([f[N].coord,f[F].coord,f[f[F].nxtIsectAlongRingAndEdge2].coord],1==T)?(D.parent=R,D.winding=-T):(D.parent=L,D.winding=T),w.push(D)}N=F,F=f[F].nxtIsectAlongRingAndEdge2}else A=f[F].ringAndEdge1,f[F].ringAndEdge1Walkable=!1,f[F].ringAndEdge2Walkable&&(D={isect:F},ci([f[N].coord,f[F].coord,f[f[F].nxtIsectAlongRingAndEdge1].coord],1==T)?(D.parent=R,D.winding=-T):(D.parent=L,D.winding=T),w.push(D)),N=F,F=f[F].nxtIsectAlongRingAndEdge1}M.push(f[F].coord),u.push(l([M],{index:L,parent:R,winding:T,netWinding:void 0}))}function k(){for(var t=[],e=0;e<c.features.length;e++)-1==c.features[e].properties.parent&&t.push(e);if(t.length>1)for(e=0;e<t.length;e++){for(var n=-1,r=0;r<c.features.length;r++)t[e]!=r&&ve(c.features[t[e]].geometry.coordinates[0][0],c.features[r],{ignoreBoundary:!0})&&Yr(c.features[r])<1/0&&(n=r);c.features[t[e]].properties.parent=n}}function G(){for(var t=0;t<c.features.length;t++)if(-1==c.features[t].properties.parent){var e=c.features[t].properties.winding;c.features[t].properties.netWinding=e,B(t,e)}}function B(t,e){for(var n=0;n<c.features.length;n++)if(c.features[n].properties.parent==t){var r=e+c.features[n].properties.winding;c.features[n].properties.netWinding=r,B(n,r)}}return c=d(u),k(),G(),c}var ai=function(t,e,n,r,i){this.coord=t,this.param=e,this.ringAndEdgeIn=n,this.ringAndEdgeOut=r,this.nxtIsectAlongEdgeIn=i},ui=function(t,e,n,r,i,o,s){this.coord=t,this.ringAndEdge1=e,this.ringAndEdge2=n,this.nxtIsectAlongRingAndEdge1=r,this.nxtIsectAlongRingAndEdge2=i,this.ringAndEdge1Walkable=o,this.ringAndEdge2Walkable=s};function ci(t,e){if(void 0===e&&(e=!0),3!=t.length)throw new Error("This function requires an array of three points [x,y]");return(t[1][0]-t[0][0])*(t[2][1]-t[0][1])-(t[1][1]-t[0][1])*(t[2][0]-t[0][0])>=0==e}function li(t){for(var e=0,n=0;n<t.length-1;n++)t[n][0]<t[e][0]&&(e=n);if(ci([t[fi(e-1,t.length-1)],t[e],t[fi(e+1,t.length-1)]],!0))var r=1;else r=-1;return r}function hi(t,e){if(!t||!e)return!1;if(t.length!=e.length)return!1;for(var n=0,r=t.length;n<r;n++)if(t[n]instanceof Array&&e[n]instanceof Array){if(!hi(t[n],e[n]))return!1}else if(t[n]!=e[n])return!1;return!0}function fi(t,e){return(t%e+e)%e}var pi=Math.PI/180,di=180/Math.PI,gi=function(t,e){this.lon=t,this.lat=e,this.x=pi*t,this.y=pi*e};gi.prototype.view=function(){return String(this.lon).slice(0,4)+","+String(this.lat).slice(0,4)},gi.prototype.antipode=function(){var t=-1*this.lat,e=this.lon<0?180+this.lon:-1*(180-this.lon);return new gi(e,t)};var yi=function(){this.coords=[],this.length=0};yi.prototype.move_to=function(t){this.length++,this.coords.push(t)};var vi=function(t){this.properties=t||{},this.geometries=[]};vi.prototype.json=function(){if(this.geometries.length<=0)return{geometry:{type:"LineString",coordinates:null},type:"Feature",properties:this.properties};if(1===this.geometries.length)return{geometry:{type:"LineString",coordinates:this.geometries[0].coords},type:"Feature",properties:this.properties};for(var t=[],e=0;e<this.geometries.length;e++)t.push(this.geometries[e].coords);return{geometry:{type:"MultiLineString",coordinates:t},type:"Feature",properties:this.properties}},vi.prototype.wkt=function(){for(var t="",e="LINESTRING(",n=function(t){e+=t[0]+" "+t[1]+","},r=0;r<this.geometries.length;r++){if(0===this.geometries[r].coords.length)return"LINESTRING(empty)";this.geometries[r].coords.forEach(n),t+=e.substring(0,e.length-1)+")"}return t};var _i=function(t,e,n){if(!t||void 0===t.x||void 0===t.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");if(!e||void 0===e.x||void 0===e.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");this.start=new gi(t.x,t.y),this.end=new gi(e.x,e.y),this.properties=n||{};var r=this.start.x-this.end.x,i=this.start.y-this.end.y,o=Math.pow(Math.sin(i/2),2)+Math.cos(this.start.y)*Math.cos(this.end.y)*Math.pow(Math.sin(r/2),2);if(this.g=2*Math.asin(Math.sqrt(o)),this.g===Math.PI)throw new Error("it appears "+t.view()+" and "+e.view()+" are 'antipodal', e.g diametrically opposite, thus there is no single route but rather infinite");if(isNaN(this.g))throw new Error("could not calculate great circle between "+t+" and "+e)};function mi(t,e){var n=[],r=Tr();return z(e,(function(e){if(n.forEach((function(t,e){t.id=e})),n.length){var i=r.search(e);if(i.features.length){var o=Ei(e,i);n=n.filter((function(t){return t.id!==o.id})),r.remove(o),D(bi(o,e),(function(t){n.push(t),r.insert(t)}))}}else(n=bi(t,e).features).forEach((function(t){t.bbox||(t.bbox=vn(J(t)))})),r.load(d(n))})),d(n)}function bi(t,e){var n=[],r=$(t)[0],i=$(t)[t.geometry.coordinates.length-1];if(wi(r,Q(e))||wi(i,Q(e)))return d([t]);var o=Tr(),s=Jn(t);o.load(s);var a=o.search(e);if(!a.features.length)return d([t]);var u=Ei(e,a),c=k(s,(function(t,r,i){var o=$(r)[1],s=Q(e);return i===u.id?(t.push(s),n.push(f(t)),wi(s,o)?[s]:[s,o]):(t.push(o),t)}),[r]);return c.length>1&&n.push(f(c)),d(n)}function Ei(t,e){if(!e.features.length)throw new Error("lines must contain features");if(1===e.features.length)return e.features[0];var n,r=1/0;return D(e,(function(e){var i=Ar(e,t).properties.dist;i<r&&(n=e,r=i)})),n}function wi(t,e){return t[0]===e[0]&&t[1]===e[1]}function xi(t,e,n,r,i){void 0===i&&(i={});var o=i.steps||64,s=Oi(n),a=Oi(r),u=Array.isArray(t)||"Feature"!==t.type?{}:t.properties;if(s===a)return f(mn(t,e,i).geometry.coordinates[0],u);for(var c=s,l=s<a?a:a+360,h=c,p=[],d=0;h<l;)p.push(_n(t,e,h,i).geometry.coordinates),h=c+360*++d/o;return h>l&&p.push(_n(t,e,l,i).geometry.coordinates),f(p,u)}function Oi(t){var e=t%360;return e<0&&(e+=360),e}function Si(t,e){void 0===e&&(e={});var n=it(t);switch(e.properties||"Feature"!==t.type||(e.properties=t.properties),n.type){case"Polygon":return Ci(n,e);case"MultiPolygon":return function(t,e){void 0===e&&(e={});var n=it(t).coordinates,r=e.properties?e.properties:"Feature"===t.type?t.properties:{},i=[];return n.forEach((function(t){i.push(Ii(t,r))})),d(i)}(n,e);default:throw new Error("invalid poly")}}function Ci(t,e){return void 0===e&&(e={}),Ii(it(t).coordinates,e.properties?e.properties:"Feature"===t.type?t.properties:{})}function Ii(t,e){return t.length>1?g(t,e):f(t[0],e)}function Pi(t,e){var n,r,i;void 0===e&&(e={});var o=e.properties,s=null===(n=e.autoComplete)||void 0===n||n,a=null===(r=e.orderCoords)||void 0===r||r;switch(null!==(i=e.mutate)&&void 0!==i&&i||(t=Se(t)),t.type){case"FeatureCollection":var u=[];return t.features.forEach((function(t){u.push($(Ri(t,{},s,a)))})),v(u,o);default:return Ri(t,o,s,a)}}function Ri(t,e,n,r){e=e||("Feature"===t.type?t.properties:{});var i=it(t),o=i.coordinates,s=i.type;if(!o.length)throw new Error("line must contain coordinates");switch(s){case"LineString":return n&&(o=Ti(o)),l([o],e);case"MultiLineString":var a=[],u=0;return o.forEach((function(t){if(n&&(t=Ti(t)),r){var e=function(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.abs(e-r)*Math.abs(n-i)}(J(f(t)));e>u?(a.unshift(t),u=e):a.push(t)}else a.push(t)})),l(a,e);default:throw new Error("geometry type "+s+" is not supported")}}function Ti(t){var e=t[0],n=e[0],r=e[1],i=t[t.length-1],o=i[0],s=i[1];return n===o&&r===s||t.push(e),t}function Li(t,e){var n,r,i,o,s,a,u;for(r=1;r<=8;r*=2){for(n=[],o=!(Ni(i=t[t.length-1],e)&r),s=0;s<t.length;s++)(u=!(Ni(a=t[s],e)&r))!==o&&n.push(Mi(i,a,r,e)),u&&n.push(a),i=a,o=u;if(!(t=n).length)break}return n}function Mi(t,e,n,r){return 8&n?[t[0]+(e[0]-t[0])*(r[3]-t[1])/(e[1]-t[1]),r[3]]:4&n?[t[0]+(e[0]-t[0])*(r[1]-t[1])/(e[1]-t[1]),r[1]]:2&n?[r[2],t[1]+(e[1]-t[1])*(r[2]-t[0])/(e[0]-t[0])]:1&n?[r[0],t[1]+(e[1]-t[1])*(r[0]-t[0])/(e[0]-t[0])]:null}function Ni(t,e){var n=0;return t[0]<e[0]?n|=1:t[0]>e[2]&&(n|=2),t[1]<e[1]?n|=4:t[1]>e[3]&&(n|=8),n}function Ai(t,e){for(var n=[],r=0,i=t;r<i.length;r++){var o=Li(i[r],e);o.length>0&&(o[0][0]===o[o.length-1][0]&&o[0][1]===o[o.length-1][1]||o.push(o[0]),o.length>=4&&n.push(o))}return n}_i.prototype.interpolate=function(t){var e=Math.sin((1-t)*this.g)/Math.sin(this.g),n=Math.sin(t*this.g)/Math.sin(this.g),r=e*Math.cos(this.start.y)*Math.cos(this.start.x)+n*Math.cos(this.end.y)*Math.cos(this.end.x),i=e*Math.cos(this.start.y)*Math.sin(this.start.x)+n*Math.cos(this.end.y)*Math.sin(this.end.x),o=e*Math.sin(this.start.y)+n*Math.sin(this.end.y),s=di*Math.atan2(o,Math.sqrt(Math.pow(r,2)+Math.pow(i,2)));return[di*Math.atan2(i,r),s]},_i.prototype.Arc=function(t,e){var n=[];if(!t||t<=2)n.push([this.start.lon,this.start.lat]),n.push([this.end.lon,this.end.lat]);else for(var r=1/(t-1),i=0;i<t;++i){var o=r*i,s=this.interpolate(o);n.push(s)}for(var a=!1,u=0,c=e&&e.offset?e.offset:10,l=180-c,h=-180+c,f=360-c,p=1;p<n.length;++p){var d=n[p-1][0],g=n[p][0],y=Math.abs(g-d);y>f&&(g>l&&d<h||d>l&&g<h)?a=!0:y>u&&(u=y)}var v=[];if(a&&u<c){var _=[];v.push(_);for(var m=0;m<n.length;++m){var b=parseFloat(n[m][0]);if(m>0&&Math.abs(b-n[m-1][0])>f){var E=parseFloat(n[m-1][0]),w=parseFloat(n[m-1][1]),x=parseFloat(n[m][0]),O=parseFloat(n[m][1]);if(E>-180&&E<h&&180===x&&m+1<n.length&&n[m-1][0]>-180&&n[m-1][0]<h){_.push([-180,n[m][1]]),m++,_.push([n[m][0],n[m][1]]);continue}if(E>l&&E<180&&-180===x&&m+1<n.length&&n[m-1][0]>l&&n[m-1][0]<180){_.push([180,n[m][1]]),m++,_.push([n[m][0],n[m][1]]);continue}if(E<h&&x>l){var S=E;E=x,x=S;var C=w;w=O,O=C}if(E>l&&x<h&&(x+=360),E<=180&&x>=180&&E<x){var I=(180-E)/(x-E),P=I*O+(1-I)*w;_.push([n[m-1][0]>l?180:-180,P]),(_=[]).push([n[m-1][0]>l?-180:180,P]),v.push(_)}else _=[],v.push(_);_.push([b,n[m][1]])}else _.push([n[m][0],n[m][1]])}}else{var R=[];v.push(R);for(var T=0;T<n.length;++T)R.push([n[T][0],n[T][1]])}for(var L=new vi(this.properties),M=0;M<v.length;++M){var N=new yi;L.geometries.push(N);for(var A=v[M],F=0;F<A.length;++F)N.move_to(A[F])}return L};var Fi=Ut((function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}(t.exports="function"==typeof Object.keys?Object.keys:n).shim=n})),ji=Ut((function(t,e){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function i(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}(e=t.exports=n?r:i).supported=r,e.unsupported=i})),Di=Ut((function(t){var e=Array.prototype.slice,n=t.exports=function(t,o,s){return s||(s={}),t===o||(t instanceof Date&&o instanceof Date?t.getTime()===o.getTime():!t||!o||"object"!=typeof t&&"object"!=typeof o?s.strict?t===o:t==o:function(t,o,s){var a,u;if(r(t)||r(o))return!1;if(t.prototype!==o.prototype)return!1;if(ji(t))return!!ji(o)&&(t=e.call(t),o=e.call(o),n(t,o,s));if(i(t)){if(!i(o))return!1;if(t.length!==o.length)return!1;for(a=0;a<t.length;a++)if(t[a]!==o[a])return!1;return!0}try{var c=Fi(t),l=Fi(o)}catch(t){return!1}if(c.length!=l.length)return!1;for(c.sort(),l.sort(),a=c.length-1;a>=0;a--)if(c[a]!=l[a])return!1;for(a=c.length-1;a>=0;a--)if(u=c[a],!n(t[u],o[u],s))return!1;return typeof t==typeof o}(t,o,s))};function r(t){return null==t}function i(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&"function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0])}}));function ki(t,e,n){if(void 0===n&&(n={}),!R(n=n||{}))throw new Error("options is invalid");var r,i=n.tolerance||0,o=[],s=Tr(),a=Jn(t);return s.load(a),X(e,(function(t){var e=!1;t&&(D(s.search(t),(function(n){if(!1===e){var o=$(t).sort(),s=$(n).sort();Di(o,s)||(0===i?Zr(o[0],n)&&Zr(o[1],n):Ar(n,o[0]).properties.dist<=i&&Ar(n,o[1]).properties.dist<=i)?(e=!0,r=r?Gi(r,t):t):(0===i?Zr(s[0],t)&&Zr(s[1],t):Ar(t,s[0]).properties.dist<=i&&Ar(t,s[1]).properties.dist<=i)&&(r=r?Gi(r,n):n)}})),!1===e&&r&&(o.push(r),r=void 0))})),r&&o.push(r),d(o)}function Gi(t,e){var n=$(e),r=$(t),i=r[0],o=r[r.length-1],s=t.geometry.coordinates;return Di(n[0],i)?s.unshift(n[1]):Di(n[0],o)?s.push(n[1]):Di(n[1],i)?s.unshift(n[0]):Di(n[1],o)&&s.push(n[0]),t}function Bi(t){var e=t%360;return e<0&&(e+=360),e}function Ui(t,e,n){var r;return void 0===n&&(n={}),(r=n.final?zi(Q(e),Q(t)):zi(Q(t),Q(e)))>180?-(360-r):r}function zi(t,e){var n=S(t[1]),r=S(e[1]),i=S(e[0]-t[0]);i>Math.PI&&(i-=2*Math.PI),i<-Math.PI&&(i+=2*Math.PI);var o=Math.log(Math.tan(r/2+Math.PI/4)/Math.tan(n/2+Math.PI/4));return(O(Math.atan2(i,o))+360)%360}function Yi(t,e,r,i){void 0===i&&(i={});var o=e<0,s=C(Math.abs(e),i.units,"meters");o&&(s=-Math.abs(s));var a=Q(t),c=function(t,e,r,i){i=void 0===i?n:Number(i);var o=e/i,s=t[0]*Math.PI/180,a=S(t[1]),u=S(r),c=o*Math.cos(u),l=a+c;Math.abs(l)>Math.PI/2&&(l=l>0?Math.PI-l:-Math.PI-l);var h=Math.log(Math.tan(l/2+Math.PI/4)/Math.tan(a/2+Math.PI/4)),f=Math.abs(h)>1e-11?c/h:Math.cos(a),p=o*Math.sin(u)/f;return[(180*(s+p)/Math.PI+540)%360-180,180*l/Math.PI]}(a,s,r);return c[0]+=c[0]-a[0]>180?-360:a[0]-c[0]>180?360:0,u(c,i.properties)}function Xi(t,e,n,r,i,o){for(var s=0;s<t.length;s++){var a=t[s],u=t[s+1];s===t.length-1&&(u=t[0]),r=qi(a,u,e),n<=0&&r>0?qi(e,a,i)<0||(i=a):n>0&&r<=0&&(Vi(e,a,o)||(o=a)),n=r}return[i,o]}function Vi(t,e,n){return qi(t,e,n)>0}function qi(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(n[0]-t[0])*(e[1]-t[1])}function Wi(t){for(var e,n,r=$(t),i=0,o=1;o<r.length;)e=n||r[0],i+=((n=r[o])[0]-e[0])*(n[1]+e[1]),o++;return i>0}function Hi(t,e){switch("Feature"===t.type?t.geometry.type:t.type){case"GeometryCollection":return B(t,(function(t){Hi(t,e)})),t;case"LineString":return Zi($(t),e),t;case"Polygon":return Ki($(t),e),t;case"MultiLineString":return $(t).forEach((function(t){Zi(t,e)})),t;case"MultiPolygon":return $(t).forEach((function(t){Ki(t,e)})),t;case"Point":case"MultiPoint":return t}}function Zi(t,e){Wi(t)===e&&t.reverse()}function Ki(t,e){Wi(t[0])!==e&&t[0].reverse();for(var n=1;n<t.length;n++)Wi(t[n])===e&&t[n].reverse()}function Ji(t,e){if(!R(e=e||{}))throw new Error("options is invalid");var n=e.zProperty||"elevation",r=e.flip,i=e.flags;rt(t,"Point","input must contain Points");for(var o=function(t,e){var n={};return D(t,(function(t){var e=$(t)[1];n[e]||(n[e]=[]),n[e].push(t)})),Object.keys(n).map((function(t){return n[t].sort((function(t,e){return $(t)[0]-$(e)[0]}))})).sort((function(t,n){return e?$(t[0])[1]-$(n[0])[1]:$(n[0])[1]-$(t[0])[1]}))}
/*!
* @license GNU Affero General Public License.
* Copyright (c) 2015, 2015 Ronny Lorenz <ronny@tbi.univie.ac.at>
* v. 1.2.0
* https://github.com/RaumZeit/MarchingSquares.js
*
* MarchingSquaresJS is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* MarchingSquaresJS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* As additional permission under GNU Affero General Public License version 3
* section 7, third-party projects (personal or commercial) may distribute,
* include, or link against UNMODIFIED VERSIONS of MarchingSquaresJS without the
* requirement that said third-party project for that reason alone becomes
* subject to any requirement of the GNU Affero General Public License version 3.
* Any modifications to MarchingSquaresJS, however, must be shared with the public
* and made available.
*
* In summary this:
* - allows you to use MarchingSquaresJS at no cost
* - allows you to use MarchingSquaresJS for both personal and commercial purposes
* - allows you to distribute UNMODIFIED VERSIONS of MarchingSquaresJS under any
* license as long as this license notice is included
* - enables you to keep the source code of your program that uses MarchingSquaresJS
* undisclosed
* - forces you to share any modifications you have made to MarchingSquaresJS,
* e.g. bug-fixes
*
* You should have received a copy of the GNU Affero General Public License
* along with MarchingSquaresJS. If not, see <http://www.gnu.org/licenses/>.
*/(t,r),s=[],a=0;a<o.length;a++){for(var u=o[a],c=[],l=0;l<u.length;l++){var h=u[l];h.properties[n]?c.push(h.properties[n]):c.push(0),!0===i&&(h.properties.matrixPosition=[a,l])}s.push(c)}return s}var Qi={successCallback:null,verbose:!1,polygons:!1},$i={};function to(t,e,n,r){r=r||{};for(var i=Object.keys(Qi),o=0;o<i.length;o++){var s=i[o],a=r[s];a=null!=a?a:Qi[s],$i[s]=a}$i.verbose&&console.log("MarchingSquaresJS-isoBands: computing isobands for ["+e+":"+(e+n)+"]");var u,c=function(t,e,n){for(var r=t.length-1,i=t[0].length-1,o={rows:r,cols:i,cells:[]},s=e+Math.abs(n),a=0;a<r;++a){o.cells[a]=[];for(var u=0;u<i;++u){var c=0,l=t[a+1][u],h=t[a+1][u+1],f=t[a][u+1],p=t[a][u];if(!(isNaN(l)||isNaN(h)||isNaN(f)||isNaN(p))){c|=l<e?0:l>s?128:64,c|=h<e?0:h>s?32:16,c|=f<e?0:f>s?8:4;var d=+(c|=p<e?0:p>s?2:1),g=0;if(17===c||18===c||33===c||34===c||38===c||68===c||72===c||98===c||102===c||132===c||136===c||137===c||152===c||153===c){var y=(l+h+f+p)/4;g=y>s?2:y<e?0:1,34===c?1===g?c=35:0===g&&(c=136):136===c?1===g?(c=35,g=4):0===g&&(c=34):17===c?1===g?(c=155,g=4):0===g&&(c=153):68===c?1===g?(c=103,g=4):0===g&&(c=102):153===c?1===g&&(c=155):102===c?1===g&&(c=103):152===c?g<2&&(c=156,g=1):137===c?g<2&&(c=139,g=1):98===c?g<2&&(c=99,g=1):38===c?g<2&&(c=39,g=1):18===c?g>0?(c=156,g=4):c=152:33===c?g>0?(c=139,g=4):c=137:72===c?g>0?(c=99,g=4):c=98:132===c&&(g>0?(c=39,g=4):c=38)}if(0!=c&&170!=c){var v,_,m,b,E,w,x,O;v=_=m=b=E=w=x=O=.5;var S=[];1===c?(m=1-Vo(e,f,p),O=1-Vo(e,l,p),S.push(Go[c])):169===c?(m=Vo(s,p,f),O=Vo(s,p,l),S.push(Go[c])):4===c?(w=1-Vo(e,h,f),b=Vo(e,p,f),S.push(Do[c])):166===c?(w=Vo(s,f,h),b=1-Vo(s,f,p),S.push(Do[c])):16===c?(E=Vo(e,f,h),_=Vo(e,l,h),S.push(jo[c])):154===c?(E=1-Vo(s,h,f),_=1-Vo(s,h,l),S.push(jo[c])):64===c?(x=Vo(e,p,l),v=1-Vo(e,h,l),S.push(Uo[c])):106===c?(x=1-Vo(s,l,p),v=Vo(s,l,h),S.push(Uo[c])):168===c?(b=Vo(s,p,f),m=Vo(e,p,f),O=Vo(e,p,l),x=Vo(s,p,l),S.push(ko[c]),S.push(Go[c])):2===c?(b=1-Vo(e,f,p),m=1-Vo(s,f,p),O=1-Vo(s,l,p),x=1-Vo(e,l,p),S.push(ko[c]),S.push(Go[c])):162===c?(E=Vo(s,f,h),w=Vo(e,f,h),b=1-Vo(e,f,p),m=1-Vo(s,f,p),S.push(ko[c]),S.push(Go[c])):8===c?(E=1-Vo(e,h,f),w=1-Vo(s,h,f),b=Vo(s,p,f),m=Vo(e,p,f),S.push(jo[c]),S.push(Do[c])):138===c?(E=1-Vo(e,h,f),w=1-Vo(s,h,f),v=1-Vo(s,h,l),_=1-Vo(e,h,l),S.push(jo[c]),S.push(Do[c])):32===c?(E=Vo(s,f,h),w=Vo(e,f,h),v=Vo(e,l,h),_=Vo(s,l,h),S.push(jo[c]),S.push(Do[c])):42===c?(O=1-Vo(s,l,p),x=1-Vo(e,l,p),v=Vo(e,l,h),_=Vo(s,l,h),S.push(Bo[c]),S.push(Uo[c])):128===c&&(O=Vo(e,p,l),x=Vo(s,p,l),v=1-Vo(s,h,l),_=1-Vo(e,h,l),S.push(Bo[c]),S.push(Uo[c])),5===c?(w=1-Vo(e,h,f),O=1-Vo(e,l,p),S.push(Do[c])):165===c?(w=Vo(s,f,h),O=Vo(s,p,l),S.push(Do[c])):20===c?(b=Vo(e,p,f),_=Vo(e,l,h),S.push(ko[c])):150===c?(b=1-Vo(s,f,p),_=1-Vo(s,h,l),S.push(ko[c])):80===c?(E=Vo(e,f,h),x=Vo(e,p,l),S.push(jo[c])):90===c?(E=1-Vo(s,h,f),x=1-Vo(s,l,p),S.push(jo[c])):65===c?(m=1-Vo(e,f,p),v=1-Vo(e,h,l),S.push(Go[c])):105===c?(m=Vo(s,p,f),v=Vo(s,l,h),S.push(Go[c])):160===c?(E=Vo(s,f,h),w=Vo(e,f,h),O=Vo(e,p,l),x=Vo(s,p,l),S.push(jo[c]),S.push(Do[c])):10===c?(E=1-Vo(e,h,f),w=1-Vo(s,h,f),O=1-Vo(s,l,p),x=1-Vo(e,l,p),S.push(jo[c]),S.push(Do[c])):130===c?(b=1-Vo(e,f,p),m=1-Vo(s,f,p),v=1-Vo(s,h,l),_=1-Vo(e,h,l),S.push(ko[c]),S.push(Go[c])):40===c?(b=Vo(s,p,f),m=Vo(e,p,f),v=Vo(e,l,h),_=Vo(s,l,h),S.push(ko[c]),S.push(Go[c])):101===c?(w=Vo(s,f,h),v=Vo(s,l,h),S.push(Do[c])):69===c?(w=1-Vo(e,h,f),v=1-Vo(e,h,l),S.push(Do[c])):149===c?(O=Vo(s,p,l),_=1-Vo(s,h,l),S.push(Bo[c])):21===c?(O=1-Vo(e,l,p),_=Vo(e,l,h),S.push(Bo[c])):86===c?(b=1-Vo(s,f,p),x=1-Vo(s,l,p),S.push(ko[c])):84===c?(b=Vo(e,p,f),x=Vo(e,p,l),S.push(ko[c])):89===c?(E=1-Vo(s,h,f),m=Vo(s,p,f),S.push(Go[c])):81===c?(E=Vo(e,f,h),m=1-Vo(e,f,p),S.push(Go[c])):96===c?(E=Vo(s,f,h),w=Vo(e,f,h),x=Vo(e,p,l),v=Vo(s,l,h),S.push(jo[c]),S.push(Do[c])):74===c?(E=1-Vo(e,h,f),w=1-Vo(s,h,f),x=1-Vo(s,l,p),v=1-Vo(e,h,l),S.push(jo[c]),S.push(Do[c])):24===c?(E=1-Vo(s,h,f),b=Vo(s,p,f),m=Vo(e,p,f),_=Vo(e,l,h),S.push(jo[c]),S.push(Go[c])):146===c?(E=Vo(e,f,h),b=1-Vo(e,f,p),m=1-Vo(s,f,p),_=1-Vo(s,h,l),S.push(jo[c]),S.push(Go[c])):6===c?(w=1-Vo(e,h,f),b=1-Vo(s,f,p),O=1-Vo(s,l,p),x=1-Vo(e,l,p),S.push(Do[c]),S.push(ko[c])):164===c?(w=Vo(s,f,h),b=Vo(e,p,f),O=Vo(e,p,l),x=Vo(s,p,l),S.push(Do[c]),S.push(ko[c])):129===c?(m=1-Vo(e,f,p),O=Vo(s,p,l),v=1-Vo(s,h,l),_=1-Vo(e,h,l),S.push(Go[c]),S.push(Bo[c])):41===c?(m=Vo(s,p,f),O=1-Vo(e,l,p),v=Vo(e,l,h),_=Vo(s,l,h),S.push(Go[c]),S.push(Bo[c])):66===c?(b=1-Vo(e,f,p),m=1-Vo(s,f,p),x=1-Vo(s,l,p),v=1-Vo(e,h,l),S.push(ko[c]),S.push(Go[c])):104===c?(b=Vo(s,p,f),m=Vo(e,p,f),x=Vo(e,p,l),v=Vo(s,l,h),S.push(Go[c]),S.push(zo[c])):144===c?(E=Vo(e,f,h),O=Vo(e,p,l),x=Vo(s,p,l),_=1-Vo(s,h,l),S.push(jo[c]),S.push(Uo[c])):26===c?(E=1-Vo(s,h,f),O=1-Vo(s,l,p),x=1-Vo(e,l,p),_=Vo(e,l,h),S.push(jo[c]),S.push(Uo[c])):36===c?(w=Vo(s,f,h),b=Vo(e,p,f),v=Vo(e,l,h),_=Vo(s,l,h),S.push(Do[c]),S.push(ko[c])):134===c?(w=1-Vo(e,h,f),b=1-Vo(s,f,p),v=1-Vo(s,h,l),_=1-Vo(e,h,l),S.push(Do[c]),S.push(ko[c])):9===c?(E=1-Vo(e,h,f),w=1-Vo(s,h,f),m=Vo(s,p,f),O=1-Vo(e,l,p),S.push(jo[c]),S.push(Do[c])):161===c?(E=Vo(s,f,h),w=Vo(e,f,h),m=1-Vo(e,f,p),O=Vo(s,p,l),S.push(jo[c]),S.push(Do[c])):37===c?(w=Vo(s,f,h),O=1-Vo(e,l,p),v=Vo(e,l,h),_=Vo(s,l,h),S.push(Do[c]),S.push(Bo[c])):133===c?(w=1-Vo(e,h,f),O=Vo(s,p,l),v=1-Vo(s,h,l),_=1-Vo(e,h,l),S.push(Do[c]),S.push(Bo[c])):148===c?(b=Vo(e,p,f),O=Vo(e,p,l),x=Vo(s,p,l),_=1-Vo(s,h,l),S.push(ko[c]),S.push(Uo[c])):22===c?(b=1-Vo(s,f,p),O=1-Vo(s,l,p),x=1-Vo(e,l,p),_=Vo(e,l,h),S.push(ko[c]),S.push(Uo[c])):82===c?(E=Vo(e,f,h),b=1-Vo(e,f,p),m=1-Vo(s,f,p),x=1-Vo(s,l,p),S.push(jo[c]),S.push(Go[c])):88===c?(E=1-Vo(s,h,f),b=Vo(s,p,f),m=Vo(e,p,f),x=Vo(e,p,l),S.push(jo[c]),S.push(Go[c])):73===c?(E=1-Vo(e,h,f),w=1-Vo(s,h,f),m=Vo(s,p,f),v=1-Vo(e,h,l),S.push(jo[c]),S.push(Do[c])):97===c?(E=Vo(s,f,h),w=Vo(e,f,h),m=1-Vo(e,f,p),v=Vo(s,l,h),S.push(jo[c]),S.push(Do[c])):145===c?(E=Vo(e,f,h),m=1-Vo(e,f,p),O=Vo(s,p,l),_=1-Vo(s,h,l),S.push(jo[c]),S.push(Bo[c])):25===c?(E=1-Vo(s,h,f),m=Vo(s,p,f),O=1-Vo(e,l,p),_=Vo(e,l,h),S.push(jo[c]),S.push(Bo[c])):70===c?(w=1-Vo(e,h,f),b=1-Vo(s,f,p),x=1-Vo(s,l,p),v=1-Vo(e,h,l),S.push(Do[c]),S.push(ko[c])):100===c?(w=Vo(s,f,h),b=Vo(e,p,f),x=Vo(e,p,l),v=Vo(s,l,h),S.push(Do[c]),S.push(ko[c])):34===c?(0===g?(E=1-Vo(e,h,f),w=1-Vo(s,h,f),b=Vo(s,p,f),m=Vo(e,p,f),O=Vo(e,p,l),x=Vo(s,p,l),v=1-Vo(s,h,l),_=1-Vo(e,h,l)):(E=Vo(s,f,h),w=Vo(e,f,h),b=1-Vo(e,f,p),m=1-Vo(s,f,p),O=1-Vo(s,l,p),x=1-Vo(e,l,p),v=Vo(e,l,h),_=Vo(s,l,h)),S.push(jo[c]),S.push(Do[c]),S.push(Bo[c]),S.push(Uo[c])):35===c?(4===g?(E=1-Vo(e,h,f),w=1-Vo(s,h,f),b=Vo(s,p,f),m=Vo(e,p,f),O=Vo(e,p,l),x=Vo(s,p,l),v=1-Vo(s,h,l),_=1-Vo(e,h,l)):(E=Vo(s,f,h),w=Vo(e,f,h),b=1-Vo(e,f,p),m=1-Vo(s,f,p),O=1-Vo(s,l,p),x=1-Vo(e,l,p),v=Vo(e,l,h),_=Vo(s,l,h)),S.push(jo[c]),S.push(Do[c]),S.push(Go[c]),S.push(Uo[c])):136===c?(0===g?(E=Vo(s,f,h),w=Vo(e,f,h),b=1-Vo(e,f,p),m=1-Vo(s,f,p),O=1-Vo(s,l,p),x=1-Vo(e,l,p),v=Vo(e,l,h),_=Vo(s,l,h)):(E=1-Vo(e,h,f),w=1-Vo(s,h,f),b=Vo(s,p,f),m=Vo(e,p,f),O=Vo(e,p,l),x=Vo(s,p,l),v=1-Vo(s,h,l),_=1-Vo(e,h,l)),S.push(jo[c]),S.push(Do[c]),S.push(Bo[c]),S.push(Uo[c])):153===c?(0===g?(E=Vo(e,f,h),m=1-Vo(e,f,p),O=1-Vo(e,l,p),_=Vo(e,l,h)):(E=1-Vo(s,h,f),m=Vo(s,p,f),O=Vo(s,p,l),_=1-Vo(s,h,l)),S.push(jo[c]),S.push(Go[c])):102===c?(0===g?(w=1-Vo(e,h,f),b=Vo(e,p,f),x=Vo(e,p,l),v=1-Vo(e,h,l)):(w=Vo(s,f,h),b=1-Vo(s,f,p),x=1-Vo(s,l,p),v=Vo(s,l,h)),S.push(Do[c]),S.push(Uo[c])):155===c?(4===g?(E=Vo(e,f,h),m=1-Vo(e,f,p),O=1-Vo(e,l,p),_=Vo(e,l,h)):(E=1-Vo(s,h,f),m=Vo(s,p,f),O=Vo(s,p,l),_=1-Vo(s,h,l)),S.push(jo[c]),S.push(Bo[c])):103===c?(4===g?(w=1-Vo(e,h,f),b=Vo(e,p,f),x=Vo(e,p,l),v=1-Vo(e,h,l)):(w=Vo(s,f,h),b=1-Vo(s,f,p),x=1-Vo(s,l,p),v=Vo(s,l,h)),S.push(Do[c]),S.push(ko[c])):152===c?(0===g?(E=Vo(e,f,h),b=1-Vo(e,f,p),m=1-Vo(s,f,p),O=1-Vo(s,l,p),x=1-Vo(e,l,p),_=Vo(e,l,h)):(E=1-Vo(s,h,f),b=Vo(s,p,f),m=Vo(e,p,f),O=Vo(e,p,l),x=Vo(s,p,l),_=1-Vo(s,h,l)),S.push(jo[c]),S.push(ko[c]),S.push(Go[c])):156===c?(4===g?(E=Vo(e,f,h),b=1-Vo(e,f,p),m=1-Vo(s,f,p),O=1-Vo(s,l,p),x=1-Vo(e,l,p),_=Vo(e,l,h)):(E=1-Vo(s,h,f),b=Vo(s,p,f),m=Vo(e,p,f),O=Vo(e,p,l),x=Vo(s,p,l),_=1-Vo(s,h,l)),S.push(jo[c]),S.push(Go[c]),S.push(Uo[c])):137===c?(0===g?(E=Vo(s,f,h),w=Vo(e,f,h),m=1-Vo(e,f,p),O=1-Vo(e,l,p),v=Vo(e,l,h),_=Vo(s,l,h)):(E=1-Vo(e,h,f),w=1-Vo(s,h,f),m=Vo(s,p,f),O=Vo(s,p,l),v=1-Vo(s,h,l),_=1-Vo(e,h,l)),S.push(jo[c]),S.push(Do[c]),S.push(Go[c])):139===c?(4===g?(E=Vo(s,f,h),w=Vo(e,f,h),m=1-Vo(e,f,p),O=1-Vo(e,l,p),v=Vo(e,l,h),_=Vo(s,l,h)):(E=1-Vo(e,h,f),w=1-Vo(s,h,f),m=Vo(s,p,f),O=Vo(s,p,l),v=1-Vo(s,h,l),_=1-Vo(e,h,l)),S.push(jo[c]),S.push(Do[c]),S.push(Bo[c])):98===c?(0===g?(E=1-Vo(e,h,f),w=1-Vo(s,h,f),b=Vo(s,p,f),m=Vo(e,p,f),x=Vo(e,p,l),v=1-Vo(e,h,l)):(E=Vo(s,f,h),w=Vo(e,f,h),b=1-Vo(e,f,p),m=1-Vo(s,f,p),x=1-Vo(s,l,p),v=Vo(s,l,h)),S.push(jo[c]),S.push(Do[c]),S.push(Uo[c])):99===c?(4===g?(E=1-Vo(e,h,f),w=1-Vo(s,h,f),b=Vo(s,p,f),m=Vo(e,p,f),x=Vo(e,p,l),v=1-Vo(e,h,l)):(E=Vo(s,f,h),w=Vo(e,f,h),b=1-Vo(e,f,p),m=1-Vo(s,f,p),x=1-Vo(s,l,p),v=Vo(s,l,h)),S.push(jo[c]),S.push(Do[c]),S.push(Go[c])):38===c?(0===g?(w=1-Vo(e,h,f),b=Vo(e,p,f),O=Vo(e,p,l),x=Vo(s,p,l),v=1-Vo(s,h,l),_=1-Vo(e,h,l)):(w=Vo(s,f,h),b=1-Vo(s,f,p),O=1-Vo(s,l,p),x=1-Vo(e,l,p),v=Vo(e,l,h),_=Vo(s,l,h)),S.push(Do[c]),S.push(Bo[c]),S.push(Uo[c])):39===c?(4===g?(w=1-Vo(e,h,f),b=Vo(e,p,f),O=Vo(e,p,l),x=Vo(s,p,l),v=1-Vo(s,h,l),_=1-Vo(e,h,l)):(w=Vo(s,f,h),b=1-Vo(s,f,p),O=1-Vo(s,l,p),x=1-Vo(e,l,p),v=Vo(e,l,h),_=Vo(s,l,h)),S.push(Do[c]),S.push(ko[c]),S.push(Uo[c])):85===c&&(E=1,w=0,b=1,m=0,O=0,x=1,v=0,_=1),(v<0||v>1||_<0||_>1||E<0||E>1||b<0||b>1||O<0||O>1||x<0||x>1)&&console.log("MarchingSquaresJS-isoBands: "+c+" "+d+" "+l+","+h+","+f+","+p+" "+g+" "+v+" "+_+" "+E+" "+w+" "+b+" "+m+" "+O+" "+x),o.cells[a][u]={cval:c,cval_real:d,flipped:g,topleft:v,topright:_,righttop:E,rightbottom:w,bottomright:b,bottomleft:m,leftbottom:O,lefttop:x,edges:S}}}}}return o}(t,e,n);return $i.polygons?($i.verbose&&console.log("MarchingSquaresJS-isoBands: returning single polygons for each grid cell"),u=function(t){var e=[],n=0;return t.cells.forEach((function(t,r){t.forEach((function(t,i){if(void 0!==t){var o=Xo[t.cval](t);"object"==typeof o&&qo(o)?"object"==typeof o[0]&&qo(o[0])?"object"==typeof o[0][0]&&qo(o[0][0])?o.forEach((function(t){t.forEach((function(t){t[0]+=i,t[1]+=r})),e[n++]=t})):(o.forEach((function(t){t[0]+=i,t[1]+=r})),e[n++]=o):console.log("MarchingSquaresJS-isoBands: bandcell polygon with malformed coordinates"):console.log("MarchingSquaresJS-isoBands: bandcell polygon with null coordinates")}}))})),e}(c)):($i.verbose&&console.log("MarchingSquaresJS-isoBands: returning polygon paths for entire data grid"),u=function(t){for(var e=[],n=t.rows,r=t.cols,i=[],o=0;o<n;o++)for(var s=0;s<r;s++)if(void 0!==t.cells[o][s]&&t.cells[o][s].edges.length>0){var a=Ho(t.cells[o][s]),u=null,c=s,l=o;null!==a&&i.push([a.p[0]+c,a.p[1]+l]);do{if(null===(u=Zo(t.cells[l][c],a.x,a.y,a.o)))break;if(i.push([u.p[0]+c,u.p[1]+l]),c+=u.x,a=u,(l+=u.y)<0||l>=n||c<0||c>=r||void 0===t.cells[l][c]){var h=Wo(t,c-=u.x,l-=u.y,u.x,u.y,u.o);if(null===h)break;h.path.forEach((function(t){i.push(t)})),c=h.i,l=h.j,a=h}}while(void 0!==t.cells[l][c]&&t.cells[l][c].edges.length>0);e.push(i),i=[],t.cells[o][s].edges.length>0&&s--}return e}(c)),"function"==typeof $i.successCallback&&$i.successCallback(u),u}var eo=64,no=16,ro=[],io=[],oo=[],so=[],ao=[],uo=[],co=[],lo=[],ho=[],fo=[],po=[],go=[],yo=[],vo=[],_o=[],mo=[],bo=[],Eo=[],wo=[],xo=[],Oo=[],So=[],Co=[],Io=[];co[85]=fo[85]=-1,lo[85]=po[85]=0,ho[85]=go[85]=1,wo[85]=So[85]=1,xo[85]=Co[85]=0,Oo[85]=Io[85]=1,ro[85]=so[85]=0,io[85]=ao[85]=-1,oo[85]=_o[85]=0,mo[85]=yo[85]=0,bo[85]=vo[85]=1,uo[85]=Eo[85]=1,So[1]=So[169]=0,Co[1]=Co[169]=-1,Io[1]=Io[169]=0,yo[1]=yo[169]=-1,vo[1]=vo[169]=0,_o[1]=_o[169]=0,fo[4]=fo[166]=0,po[4]=po[166]=-1,go[4]=go[166]=1,mo[4]=mo[166]=1,bo[4]=bo[166]=0,Eo[4]=Eo[166]=0,co[16]=co[154]=0,lo[16]=lo[154]=1,ho[16]=ho[154]=1,so[16]=so[154]=1,ao[16]=ao[154]=0,uo[16]=uo[154]=1,wo[64]=wo[106]=0,xo[64]=xo[106]=1,Oo[64]=Oo[106]=0,ro[64]=ro[106]=-1,io[64]=io[106]=0,oo[64]=oo[106]=1,wo[2]=wo[168]=0,xo[2]=xo[168]=-1,Oo[2]=Oo[168]=1,So[2]=So[168]=0,Co[2]=Co[168]=-1,Io[2]=Io[168]=0,yo[2]=yo[168]=-1,vo[2]=vo[168]=0,_o[2]=_o[168]=0,mo[2]=mo[168]=-1,bo[2]=bo[168]=0,Eo[2]=Eo[168]=1,co[8]=co[162]=0,lo[8]=lo[162]=-1,ho[8]=ho[162]=0,fo[8]=fo[162]=0,po[8]=po[162]=-1,go[8]=go[162]=1,yo[8]=yo[162]=1,vo[8]=vo[162]=0,_o[8]=_o[162]=1,mo[8]=mo[162]=1,bo[8]=bo[162]=0,Eo[8]=Eo[162]=0,co[32]=co[138]=0,lo[32]=lo[138]=1,ho[32]=ho[138]=1,fo[32]=fo[138]=0,po[32]=po[138]=1,go[32]=go[138]=0,ro[32]=ro[138]=1,io[32]=io[138]=0,oo[32]=oo[138]=0,so[32]=so[138]=1,ao[32]=ao[138]=0,uo[32]=uo[138]=1,So[128]=So[42]=0,Co[128]=Co[42]=1,Io[128]=Io[42]=1,wo[128]=wo[42]=0,xo[128]=xo[42]=1,Oo[128]=Oo[42]=0,ro[128]=ro[42]=-1,io[128]=io[42]=0,oo[128]=oo[42]=1,so[128]=so[42]=-1,ao[128]=ao[42]=0,uo[128]=uo[42]=0,fo[5]=fo[165]=-1,po[5]=po[165]=0,go[5]=go[165]=0,So[5]=So[165]=1,Co[5]=Co[165]=0,Io[5]=Io[165]=0,mo[20]=mo[150]=0,bo[20]=bo[150]=1,Eo[20]=Eo[150]=1,so[20]=so[150]=0,ao[20]=ao[150]=-1,uo[20]=uo[150]=1,co[80]=co[90]=-1,lo[80]=lo[90]=0,ho[80]=ho[90]=1,wo[80]=wo[90]=1,xo[80]=xo[90]=0,Oo[80]=Oo[90]=1,yo[65]=yo[105]=0,vo[65]=vo[105]=1,_o[65]=_o[105]=0,ro[65]=ro[105]=0,io[65]=io[105]=-1,oo[65]=oo[105]=0,co[160]=co[10]=-1,lo[160]=lo[10]=0,ho[160]=ho[10]=1,fo[160]=fo[10]=-1,po[160]=po[10]=0,go[160]=go[10]=0,So[160]=So[10]=1,Co[160]=Co[10]=0,Io[160]=Io[10]=0,wo[160]=wo[10]=1,xo[160]=xo[10]=0,Oo[160]=Oo[10]=1,mo[130]=mo[40]=0,bo[130]=bo[40]=1,Eo[130]=Eo[40]=1,yo[130]=yo[40]=0,vo[130]=vo[40]=1,_o[130]=_o[40]=0,ro[130]=ro[40]=0,io[130]=io[40]=-1,oo[130]=oo[40]=0,so[130]=so[40]=0,ao[130]=ao[40]=-1,uo[130]=uo[40]=1,fo[37]=fo[133]=0,po[37]=po[133]=1,go[37]=go[133]=1,So[37]=So[133]=0,Co[37]=Co[133]=1,Io[37]=Io[133]=0,ro[37]=ro[133]=-1,io[37]=io[133]=0,oo[37]=oo[133]=0,so[37]=so[133]=1,ao[37]=ao[133]=0,uo[37]=uo[133]=0,mo[148]=mo[22]=-1,bo[148]=bo[22]=0,Eo[148]=Eo[22]=0,So[148]=So[22]=0,Co[148]=Co[22]=-1,Io[148]=Io[22]=1,wo[148]=wo[22]=0,xo[148]=xo[22]=1,Oo[148]=Oo[22]=1,so[148]=so[22]=-1,ao[148]=ao[22]=0,uo[148]=uo[22]=1,co[82]=co[88]=0,lo[82]=lo[88]=-1,ho[82]=ho[88]=1,mo[82]=mo[88]=1,bo[82]=bo[88]=0,Eo[82]=Eo[88]=1,yo[82]=yo[88]=-1,vo[82]=vo[88]=0,_o[82]=_o[88]=1,wo[82]=wo[88]=0,xo[82]=xo[88]=-1,Oo[82]=Oo[88]=0,co[73]=co[97]=0,lo[73]=lo[97]=1,ho[73]=ho[97]=0,fo[73]=fo[97]=0,po[73]=po[97]=-1,go[73]=go[97]=0,yo[73]=yo[97]=1,vo[73]=vo[97]=0,_o[73]=_o[97]=0,ro[73]=ro[97]=1,io[73]=io[97]=0,oo[73]=oo[97]=1,co[145]=co[25]=0,lo[145]=lo[25]=-1,ho[145]=ho[25]=0,yo[145]=yo[25]=1,vo[145]=vo[25]=0,_o[145]=_o[25]=1,So[145]=So[25]=0,Co[145]=Co[25]=1,Io[145]=Io[25]=1,so[145]=so[25]=-1,ao[145]=ao[25]=0,uo[145]=uo[25]=0,fo[70]=fo[100]=0,po[70]=po[100]=1,go[70]=go[100]=0,mo[70]=mo[100]=-1,bo[70]=bo[100]=0,Eo[70]=Eo[100]=1,wo[70]=wo[100]=0,xo[70]=xo[100]=-1,Oo[70]=Oo[100]=1,ro[70]=ro[100]=1,io[70]=io[100]=0,oo[70]=oo[100]=0,fo[101]=fo[69]=0,po[101]=po[69]=1,go[101]=go[69]=0,ro[101]=ro[69]=1,io[101]=io[69]=0,oo[101]=oo[69]=0,So[149]=So[21]=0,Co[149]=Co[21]=1,Io[149]=Io[21]=1,so[149]=so[21]=-1,ao[149]=ao[21]=0,uo[149]=uo[21]=0,mo[86]=mo[84]=-1,bo[86]=bo[84]=0,Eo[86]=Eo[84]=1,wo[86]=wo[84]=0,xo[86]=xo[84]=-1,Oo[86]=Oo[84]=1,co[89]=co[81]=0,lo[89]=lo[81]=-1,ho[89]=ho[81]=0,yo[89]=yo[81]=1,vo[89]=vo[81]=0,_o[89]=_o[81]=1,co[96]=co[74]=0,lo[96]=lo[74]=1,ho[96]=ho[74]=0,fo[96]=fo[74]=-1,po[96]=po[74]=0,go[96]=go[74]=1,wo[96]=wo[74]=1,xo[96]=xo[74]=0,Oo[96]=Oo[74]=0,ro[96]=ro[74]=1,io[96]=io[74]=0,oo[96]=oo[74]=1,co[24]=co[146]=0,lo[24]=lo[146]=-1,ho[24]=ho[146]=1,mo[24]=mo[146]=1,bo[24]=bo[146]=0,Eo[24]=Eo[146]=1,yo[24]=yo[146]=0,vo[24]=vo[146]=1,_o[24]=_o[146]=1,so[24]=so[146]=0,ao[24]=ao[146]=-1,uo[24]=uo[146]=0,fo[6]=fo[164]=-1,po[6]=po[164]=0,go[6]=go[164]=1,mo[6]=mo[164]=-1,bo[6]=bo[164]=0,Eo[6]=Eo[164]=0,So[6]=So[164]=0,Co[6]=Co[164]=-1,Io[6]=Io[164]=1,wo[6]=wo[164]=1,xo[6]=xo[164]=0,Oo[6]=Oo[164]=0,yo[129]=yo[41]=0,vo[129]=vo[41]=1,_o[129]=_o[41]=1,So[129]=So[41]=0,Co[129]=Co[41]=1,Io[129]=Io[41]=0,ro[129]=ro[41]=-1,io[129]=io[41]=0,oo[129]=oo[41]=0,so[129]=so[41]=0,ao[129]=ao[41]=-1,uo[129]=uo[41]=0,mo[66]=mo[104]=0,bo[66]=bo[104]=1,Eo[66]=Eo[104]=0,yo[66]=yo[104]=-1,vo[66]=vo[104]=0,_o[66]=_o[104]=1,wo[66]=wo[104]=0,xo[66]=xo[104]=-1,Oo[66]=Oo[104]=0,ro[66]=ro[104]=0,io[66]=io[104]=-1,oo[66]=oo[104]=1,co[144]=co[26]=-1,lo[144]=lo[26]=0,ho[144]=ho[26]=0,So[144]=So[26]=1,Co[144]=Co[26]=0,Io[144]=Io[26]=1,wo[144]=wo[26]=0,xo[144]=xo[26]=1,Oo[144]=Oo[26]=1,so[144]=so[26]=-1,ao[144]=ao[26]=0,uo[144]=uo[26]=1,fo[36]=fo[134]=0,po[36]=po[134]=1,go[36]=go[134]=1,mo[36]=mo[134]=0,bo[36]=bo[134]=1,Eo[36]=Eo[134]=0,ro[36]=ro[134]=0,io[36]=io[134]=-1,oo[36]=oo[134]=1,so[36]=so[134]=1,ao[36]=ao[134]=0,uo[36]=uo[134]=0,co[9]=co[161]=-1,lo[9]=lo[161]=0,ho[9]=ho[161]=0,fo[9]=fo[161]=0,po[9]=po[161]=-1,go[9]=go[161]=0,yo[9]=yo[161]=1,vo[9]=vo[161]=0,_o[9]=_o[161]=0,So[9]=So[161]=1,Co[9]=Co[161]=0,Io[9]=Io[161]=1,co[136]=0,lo[136]=1,ho[136]=1,fo[136]=0,po[136]=1,go[136]=0,mo[136]=-1,bo[136]=0,Eo[136]=1,yo[136]=-1,vo[136]=0,_o[136]=0,So[136]=0,Co[136]=-1,Io[136]=0,wo[136]=0,xo[136]=-1,Oo[136]=1,ro[136]=1,io[136]=0,oo[136]=0,so[136]=1,ao[136]=0,uo[136]=1,co[34]=0,lo[34]=-1,ho[34]=0,fo[34]=0,po[34]=-1,go[34]=1,mo[34]=1,bo[34]=0,Eo[34]=0,yo[34]=1,vo[34]=0,_o[34]=1,So[34]=0,Co[34]=1,Io[34]=1,wo[34]=0,xo[34]=1,Oo[34]=0,ro[34]=-1,io[34]=0,oo[34]=1,so[34]=-1,ao[34]=0,uo[34]=0,co[35]=0,lo[35]=1,ho[35]=1,fo[35]=0,po[35]=-1,go[35]=1,mo[35]=1,bo[35]=0,Eo[35]=0,yo[35]=-1,vo[35]=0,_o[35]=0,So[35]=0,Co[35]=-1,Io[35]=0,wo[35]=0,xo[35]=1,Oo[35]=0,ro[35]=-1,io[35]=0,oo[35]=1,so[35]=1,ao[35]=0,uo[35]=1,co[153]=0,lo[153]=1,ho[153]=1,yo[153]=-1,vo[153]=0,_o[153]=0,So[153]=0,Co[153]=-1,Io[153]=0,so[153]=1,ao[153]=0,uo[153]=1,fo[102]=0,po[102]=-1,go[102]=1,mo[102]=1,bo[102]=0,Eo[102]=0,wo[102]=0,xo[102]=1,Oo[102]=0,ro[102]=-1,io[102]=0,oo[102]=1,co[155]=0,lo[155]=-1,ho[155]=0,yo[155]=1,vo[155]=0,_o[155]=1,So[155]=0,Co[155]=1,Io[155]=1,so[155]=-1,ao[155]=0,uo[155]=0,fo[103]=0,po[103]=1,go[103]=0,mo[103]=-1,bo[103]=0,Eo[103]=1,wo[103]=0,xo[103]=-1,Oo[103]=1,ro[103]=1,io[103]=0,oo[103]=0,co[152]=0,lo[152]=1,ho[152]=1,mo[152]=-1,bo[152]=0,Eo[152]=1,yo[152]=-1,vo[152]=0,_o[152]=0,So[152]=0,Co[152]=-1,Io[152]=0,wo[152]=0,xo[152]=-1,Oo[152]=1,so[152]=1,ao[152]=0,uo[152]=1,co[156]=0,lo[156]=-1,ho[156]=1,mo[156]=1,bo[156]=0,Eo[156]=1,yo[156]=-1,vo[156]=0,_o[156]=0,So[156]=0,Co[156]=-1,Io[156]=0,wo[156]=0,xo[156]=1,Oo[156]=1,so[156]=-1,ao[156]=0,uo[156]=1,co[137]=0,lo[137]=1,ho[137]=1,fo[137]=0,po[137]=1,go[137]=0,yo[137]=-1,vo[137]=0,_o[137]=0,So[137]=0,Co[137]=-1,Io[137]=0,ro[137]=1,io[137]=0,oo[137]=0,so[137]=1,ao[137]=0,uo[137]=1,co[139]=0,lo[139]=1,ho[139]=1,fo[139]=0,po[139]=-1,go[139]=0,yo[139]=1,vo[139]=0,_o[139]=0,So[139]=0,Co[139]=1,Io[139]=0,ro[139]=-1,io[139]=0,oo[139]=0,so[139]=1,ao[139]=0,uo[139]=1,co[98]=0,lo[98]=-1,ho[98]=0,fo[98]=0,po[98]=-1,go[98]=1,mo[98]=1,bo[98]=0,Eo[98]=0,yo[98]=1,vo[98]=0,_o[98]=1,wo[98]=0,xo[98]=1,Oo[98]=0,ro[98]=-1,io[98]=0,oo[98]=1,co[99]=0,lo[99]=1,ho[99]=0,fo[99]=0,po[99]=-1,go[99]=1,mo[99]=1,bo[99]=0,Eo[99]=0,yo[99]=-1,vo[99]=0,_o[99]=1,wo[99]=0,xo[99]=-1,Oo[99]=0,ro[99]=1,io[99]=0,oo[99]=1,fo[38]=0,po[38]=-1,go[38]=1,mo[38]=1,bo[38]=0,Eo[38]=0,So[38]=0,Co[38]=1,Io[38]=1,wo[38]=0,xo[38]=1,Oo[38]=0,ro[38]=-1,io[38]=0,oo[38]=1,so[38]=-1,ao[38]=0,uo[38]=0,fo[39]=0,po[39]=1,go[39]=1,mo[39]=-1,bo[39]=0,Eo[39]=0,So[39]=0,Co[39]=-1,Io[39]=1,wo[39]=0,xo[39]=1,Oo[39]=0,ro[39]=-1,io[39]=0,oo[39]=1,so[39]=1,ao[39]=0,uo[39]=0;var Po=function(t){return[[t.bottomleft,0],[0,0],[0,t.leftbottom]]},Ro=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0]]},To=function(t){return[[t.topright,1],[1,1],[1,t.righttop]]},Lo=function(t){return[[0,t.lefttop],[0,1],[t.topleft,1]]},Mo=function(t){return[[t.bottomright,0],[t.bottomleft,0],[0,t.leftbottom],[0,t.lefttop]]},No=function(t){return[[t.bottomright,0],[t.bottomleft,0],[1,t.righttop],[1,t.rightbottom]]},Ao=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.topleft,1],[t.topright,1]]},Fo=function(t){return[[0,t.leftbottom],[0,t.lefttop],[t.topleft,1],[t.topright,1]]},jo=[],Do=[],ko=[],Go=[],Bo=[],Uo=[],zo=[],Yo=[];Go[1]=Bo[1]=18,Go[169]=Bo[169]=18,ko[4]=Do[4]=12,ko[166]=Do[166]=12,jo[16]=Yo[16]=4,jo[154]=Yo[154]=4,Uo[64]=zo[64]=22,Uo[106]=zo[106]=22,ko[2]=Uo[2]=17,Go[2]=Bo[2]=18,ko[168]=Uo[168]=17,Go[168]=Bo[168]=18,jo[8]=Go[8]=9,Do[8]=ko[8]=12,jo[162]=Go[162]=9,Do[162]=ko[162]=12,jo[32]=Yo[32]=4,Do[32]=zo[32]=1,jo[138]=Yo[138]=4,Do[138]=zo[138]=1,Bo[128]=Yo[128]=21,Uo[128]=zo[128]=22,Bo[42]=Yo[42]=21,Uo[42]=zo[42]=22,Do[5]=Bo[5]=14,Do[165]=Bo[165]=14,ko[20]=Yo[20]=6,ko[150]=Yo[150]=6,jo[80]=Uo[80]=11,jo[90]=Uo[90]=11,Go[65]=zo[65]=3,Go[105]=zo[105]=3,jo[160]=Uo[160]=11,Do[160]=Bo[160]=14,jo[10]=Uo[10]=11,Do[10]=Bo[10]=14,ko[130]=Yo[130]=6,Go[130]=zo[130]=3,ko[40]=Yo[40]=6,Go[40]=zo[40]=3,Do[101]=zo[101]=1,Do[69]=zo[69]=1,Bo[149]=Yo[149]=21,Bo[21]=Yo[21]=21,ko[86]=Uo[86]=17,ko[84]=Uo[84]=17,jo[89]=Go[89]=9,jo[81]=Go[81]=9,jo[96]=zo[96]=0,Do[96]=Uo[96]=15,jo[74]=zo[74]=0,Do[74]=Uo[74]=15,jo[24]=ko[24]=8,Go[24]=Yo[24]=7,jo[146]=ko[146]=8,Go[146]=Yo[146]=7,Do[6]=Uo[6]=15,ko[6]=Bo[6]=16,Do[164]=Uo[164]=15,ko[164]=Bo[164]=16,Go[129]=Yo[129]=7,Bo[129]=zo[129]=20,Go[41]=Yo[41]=7,Bo[41]=zo[41]=20,ko[66]=zo[66]=2,Go[66]=Uo[66]=19,ko[104]=zo[104]=2,Go[104]=Uo[104]=19,jo[144]=Bo[144]=10,Uo[144]=Yo[144]=23,jo[26]=Bo[26]=10,Uo[26]=Yo[26]=23,Do[36]=Yo[36]=5,ko[36]=zo[36]=2,Do[134]=Yo[134]=5,ko[134]=zo[134]=2,jo[9]=Bo[9]=10,Do[9]=Go[9]=13,jo[161]=Bo[161]=10,Do[161]=Go[161]=13,Do[37]=Yo[37]=5,Bo[37]=zo[37]=20,Do[133]=Yo[133]=5,Bo[133]=zo[133]=20,ko[148]=Bo[148]=16,Uo[148]=Yo[148]=23,ko[22]=Bo[22]=16,Uo[22]=Yo[22]=23,jo[82]=ko[82]=8,Go[82]=Uo[82]=19,jo[88]=ko[88]=8,Go[88]=Uo[88]=19,jo[73]=zo[73]=0,Do[73]=Go[73]=13,jo[97]=zo[97]=0,Do[97]=Go[97]=13,jo[145]=Go[145]=9,Bo[145]=Yo[145]=21,jo[25]=Go[25]=9,Bo[25]=Yo[25]=21,Do[70]=zo[70]=1,ko[70]=Uo[70]=17,Do[100]=zo[100]=1,ko[100]=Uo[100]=17,jo[34]=Go[34]=9,Do[34]=ko[34]=12,Bo[34]=Yo[34]=21,Uo[34]=zo[34]=22,jo[136]=Yo[136]=4,Do[136]=zo[136]=1,ko[136]=Uo[136]=17,Go[136]=Bo[136]=18,jo[35]=Yo[35]=4,Do[35]=ko[35]=12,Go[35]=Bo[35]=18,Uo[35]=zo[35]=22,jo[153]=Yo[153]=4,Go[153]=Bo[153]=18,Do[102]=ko[102]=12,Uo[102]=zo[102]=22,jo[155]=Go[155]=9,Bo[155]=Yo[155]=23,Do[103]=zo[103]=1,ko[103]=Uo[103]=17,jo[152]=Yo[152]=4,ko[152]=Uo[152]=17,Go[152]=Bo[152]=18,jo[156]=ko[156]=8,Go[156]=Bo[156]=18,Uo[156]=Yo[156]=23,jo[137]=Yo[137]=4,Do[137]=zo[137]=1,Go[137]=Bo[137]=18,jo[139]=Yo[139]=4,Do[139]=Go[139]=13,Bo[139]=zo[139]=20,jo[98]=Go[98]=9,Do[98]=ko[98]=12,Uo[98]=zo[98]=22,jo[99]=zo[99]=0,Do[99]=ko[99]=12,Go[99]=Uo[99]=19,Do[38]=ko[38]=12,Bo[38]=Yo[38]=21,Uo[38]=zo[38]=22,Do[39]=Yo[39]=5,ko[39]=Bo[39]=16,Uo[39]=zo[39]=22;var Xo=[];function Vo(t,e,n){return(t-e)/(n-e)}function qo(t){return t.constructor.toString().indexOf("Array")>-1}function Wo(t,e,n,r,i,o){for(var s=t.cells[n][e],a=s.cval_real,u=e+r,c=n+i,l=[],h=!1;!h;){if(void 0===t.cells[c]||void 0===t.cells[c][u])if(c-=i,u-=r,a=(s=t.cells[c][u]).cval_real,-1===i)if(0===o)if(1&a)l.push([u,c]),r=-1,i=0,o=0;else{if(!(4&a)){l.push([u+s.bottomright,c]),r=0,i=1,o=1,h=!0;break}l.push([u+1,c]),r=1,i=0,o=0}else{if(!(1&a)){if(4&a){l.push([u+s.bottomright,c]),r=0,i=1,o=1,h=!0;break}l.push([u+s.bottomleft,c]),r=0,i=1,o=0,h=!0;break}l.push([u,c]),r=-1,i=0,o=0}else if(1===i)if(0===o){if(!(a&no)){if(a&eo){l.push([u+s.topleft,c+1]),r=0,i=-1,o=0,h=!0;break}l.push([u+s.topright,c+1]),r=0,i=-1,o=1,h=!0;break}l.push([u+1,c+1]),r=1,i=0,o=1}else l.push([u+1,c+1]),r=1,i=0,o=1;else if(-1===r)if(0===o){if(!(a&eo)){if(1&a){l.push([u,c+s.leftbottom]),r=1,i=0,o=0,h=!0;break}l.push([u,c+s.lefttop]),r=1,i=0,o=1,h=!0;break}l.push([u,c+1]),r=0,i=1,o=0}else{if(!(a&eo)){console.log("MarchingSquaresJS-isoBands: wtf");break}l.push([u,c+1]),r=0,i=1,o=0}else{if(1!==r){console.log("MarchingSquaresJS-isoBands: we came from nowhere!");break}if(0===o){if(!(4&a)){l.push([u+1,c+s.rightbottom]),r=-1,i=0,o=0,h=!0;break}l.push([u+1,c]),r=0,i=-1,o=1}else{if(!(4&a)){if(a&no){l.push([u+1,c+s.righttop]),r=-1,i=0,o=1;break}l.push([u+1,c+s.rightbottom]),r=-1,i=0,o=0,h=!0;break}l.push([u+1,c]),r=0,i=-1,o=1}}else if(a=(s=t.cells[c][u]).cval_real,-1===r)if(0===o)if(void 0!==t.cells[c-1]&&void 0!==t.cells[c-1][u])r=0,i=-1,o=1;else{if(!(1&a)){l.push([u+s.bottomright,c]),r=0,i=1,o=1,h=!0;break}l.push([u,c])}else{if(!(a&eo)){console.log("MarchingSquaresJS-isoBands: found entry from top at "+u+","+c);break}console.log("MarchingSquaresJS-isoBands: proceeding in x-direction!")}else if(1===r){if(0===o){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==t.cells[c+1]&&void 0!==t.cells[c+1][u])r=0,i=1,o=0;else{if(!(a&no)){l.push([u+s.topleft,c+1]),r=0,i=-1,o=0,h=!0;break}l.push([u+1,c+1]),r=1,i=0,o=1}}else if(-1===i){if(1!==o){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==t.cells[c][u+1])r=1,i=0,o=1;else{if(!(4&a)){l.push([u+1,c+s.righttop]),r=-1,i=0,o=1,h=!0;break}l.push([u+1,c]),r=0,i=-1,o=1}}else{if(1!==i){console.log("MarchingSquaresJS-isoBands: where did we came from???");break}if(0!==o){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==t.cells[c][u-1])r=-1,i=0,o=0;else{if(!(a&eo)){l.push([u,c+s.leftbottom]),r=1,i=0,o=0,h=!0;break}l.push([u,c+1]),r=0,i=1,o=0}}if(c+=i,(u+=r)===e&&c===n)break}return{path:l,i:u,j:c,x:r,y:i,o:o}}function Ho(t){if(t.edges.length>0){var e=t.edges[t.edges.length-1],n=t.cval_real;switch(e){case 0:return n&no?{p:[1,t.righttop],x:-1,y:0,o:1}:{p:[t.topleft,1],x:0,y:-1,o:0};case 1:return 4&n?{p:[t.topleft,1],x:0,y:-1,o:0}:{p:[1,t.rightbottom],x:-1,y:0,o:0};case 2:return 4&n?{p:[t.bottomright,0],x:0,y:1,o:1}:{p:[t.topleft,1],x:0,y:-1,o:0};case 3:return 1&n?{p:[t.topleft,1],x:0,y:-1,o:0}:{p:[t.bottomleft,0],x:0,y:1,o:0};case 4:return n&no?{p:[1,t.righttop],x:-1,y:0,o:1}:{p:[t.topright,1],x:0,y:-1,o:1};case 5:return 4&n?{p:[t.topright,1],x:0,y:-1,o:1}:{p:[1,t.rightbottom],x:-1,y:0,o:0};case 6:return 4&n?{p:[t.bottomright,0],x:0,y:1,o:1}:{p:[t.topright,1],x:0,y:-1,o:1};case 7:return 1&n?{p:[t.topright,1],x:0,y:-1,o:1}:{p:[t.bottomleft,0],x:0,y:1,o:0};case 8:return 4&n?{p:[t.bottomright,0],x:0,y:1,o:1}:{p:[1,t.righttop],x:-1,y:0,o:1};case 9:return 1&n?{p:[1,t.righttop],x:-1,y:0,o:1}:{p:[t.bottomleft,0],x:0,y:1,o:0};case 10:return 1&n?{p:[0,t.leftbottom],x:1,y:0,o:0}:{p:[1,t.righttop],x:-1,y:0,o:1};case 11:return n&eo?{p:[1,t.righttop],x:-1,y:0,o:1}:{p:[0,t.lefttop],x:1,y:0,o:1};case 12:return 4&n?{p:[t.bottomright,0],x:0,y:1,o:1}:{p:[1,t.rightbottom],x:-1,y:0,o:0};case 13:return 1&n?{p:[1,t.rightbottom],x:-1,y:0,o:0}:{p:[t.bottomleft,0],x:0,y:1,o:0};case 14:return 1&n?{p:[0,t.leftbottom],x:1,y:0,o:0}:{p:[1,t.rightbottom],x:-1,y:0,o:0};case 15:return n&eo?{p:[1,t.rightbottom],x:-1,y:0,o:0}:{p:[0,t.lefttop],x:1,y:0,o:1};case 16:return 4&n?{p:[t.bottomright,0],x:0,y:1,o:1}:{p:[0,t.leftbottom],x:1,y:0,o:0};case 17:return n&eo?{p:[t.bottomright,0],x:0,y:1,o:1}:{p:[0,t.lefttop],x:1,y:0,o:1};case 18:return 1&n?{p:[0,t.leftbottom],x:1,y:0,o:0}:{p:[t.bottomleft,0],x:0,y:1,o:0};case 19:return n&eo?{p:[t.bottomleft,0],x:0,y:1,o:0}:{p:[0,t.lefttop],x:1,y:0,o:1};case 20:return n&eo?{p:[t.topleft,1],x:0,y:-1,o:0}:{p:[0,t.leftbottom],x:1,y:0,o:0};case 21:return n&no?{p:[0,t.leftbottom],x:1,y:0,o:0}:{p:[t.topright,1],x:0,y:-1,o:1};case 22:return n&eo?{p:[t.topleft,1],x:0,y:-1,o:0}:{p:[0,t.lefttop],x:1,y:0,o:1};case 23:return n&no?{p:[0,t.lefttop],x:1,y:0,o:1}:{p:[t.topright,1],x:0,y:-1,o:1};default:console.log("MarchingSquaresJS-isoBands: edge index out of range!"),console.log(t)}}return null}function Zo(t,e,n,r){var i,o,s,a,u,c=t.cval;switch(e){case-1:switch(r){case 0:i=Do[c],s=fo[c],a=po[c],u=go[c];break;default:i=jo[c],s=co[c],a=lo[c],u=ho[c]}break;case 1:switch(r){case 0:i=Bo[c],s=So[c],a=Co[c],u=Io[c];break;default:i=Uo[c],s=wo[c],a=xo[c],u=Oo[c]}break;default:switch(n){case-1:switch(r){case 0:i=zo[c],s=ro[c],a=io[c],u=oo[c];break;default:i=Yo[c],s=so[c],a=ao[c],u=uo[c]}break;case 1:switch(r){case 0:i=Go[c],s=yo[c],a=vo[c],u=_o[c];break;default:i=ko[c],s=mo[c],a=bo[c],u=Eo[c]}}}if(o=t.edges.indexOf(i),void 0===t.edges[o])return null;switch(function(t,e){delete t.edges[e];for(var n=e+1;n<t.edges.length;n++)t.edges[n-1]=t.edges[n];t.edges.pop()}(t,o),c=t.cval_real,i){case 0:c&no?(e=t.topleft,n=1):(e=1,n=t.righttop);break;case 1:4&c?(e=1,n=t.rightbottom):(e=t.topleft,n=1);break;case 2:4&c?(e=t.topleft,n=1):(e=t.bottomright,n=0);break;case 3:1&c?(e=t.bottomleft,n=0):(e=t.topleft,n=1);break;case 4:c&no?(e=t.topright,n=1):(e=1,n=t.righttop);break;case 5:4&c?(e=1,n=t.rightbottom):(e=t.topright,n=1);break;case 6:4&c?(e=t.topright,n=1):(e=t.bottomright,n=0);break;case 7:1&c?(e=t.bottomleft,n=0):(e=t.topright,n=1);break;case 8:4&c?(e=1,n=t.righttop):(e=t.bottomright,n=0);break;case 9:1&c?(e=t.bottomleft,n=0):(e=1,n=t.righttop);break;case 10:1&c?(e=1,n=t.righttop):(e=0,n=t.leftbottom);break;case 11:c&eo?(e=0,n=t.lefttop):(e=1,n=t.righttop);break;case 12:4&c?(e=1,n=t.rightbottom):(e=t.bottomright,n=0);break;case 13:1&c?(e=t.bottomleft,n=0):(e=1,n=t.rightbottom);break;case 14:1&c?(e=1,n=t.rightbottom):(e=0,n=t.leftbottom);break;case 15:c&eo?(e=0,n=t.lefttop):(e=1,n=t.rightbottom);break;case 16:4&c?(e=0,n=t.leftbottom):(e=t.bottomright,n=0);break;case 17:c&eo?(e=0,n=t.lefttop):(e=t.bottomright,n=0);break;case 18:1&c?(e=t.bottomleft,n=0):(e=0,n=t.leftbottom);break;case 19:c&eo?(e=0,n=t.lefttop):(e=t.bottomleft,n=0);break;case 20:c&eo?(e=0,n=t.leftbottom):(e=t.topleft,n=1);break;case 21:c&no?(e=t.topright,n=1):(e=0,n=t.leftbottom);break;case 22:c&eo?(e=0,n=t.lefttop):(e=t.topleft,n=1);break;case 23:c&no?(e=t.topright,n=1):(e=0,n=t.lefttop);break;default:return console.log("MarchingSquaresJS-isoBands: edge index out of range!"),console.log(t),null}return void 0!==e&&void 0!==n&&void 0!==s&&void 0!==a&&void 0!==u||(console.log("MarchingSquaresJS-isoBands: undefined value!"),console.log(t),console.log(e+" "+n+" "+s+" "+a+" "+u)),{p:[e,n],x:s,y:a,o:u}}function Ko(t){var e=[],n=[];t.forEach((function(t){var r=Yr(l([t]));n.push(r),e.push({ring:t,area:r})})),n.sort((function(t,e){return e-t}));var r=[];return n.forEach((function(t){for(var n=0;n<e.length;n++)if(e[n].area===t){r.push(e[n].ring),e.splice(n,1);break}})),r}function Jo(t){for(var e=t.map((function(t){return{lrCoordinates:t,grouped:!1}})),n=[];!$o(e);)for(var r=0;r<e.length;r++)if(!e[r].grouped){var i=[];i.push(e[r].lrCoordinates),e[r].grouped=!0;for(var o=l([e[r].lrCoordinates]),s=r+1;s<e.length;s++)e[s].grouped||Qo(l([e[s].lrCoordinates]),o)&&(i.push(e[s].lrCoordinates),e[s].grouped=!0);n.push(i)}return n}function Qo(t,e){for(var n=xn(t),r=0;r<n.features.length;r++)if(!ve(n.features[r],e))return!1;return!0}function $o(t){for(var e=0;e<t.length;e++)if(!1===t[e].grouped)return!1;return!0}function ts(t,e,n){if(!R(n=n||{}))throw new Error("options is invalid");var r=n.pivot,i=n.mutate;if(!t)throw new Error("geojson is required");if(null==e||isNaN(e))throw new Error("angle is required");return 0===e||(r||(r=wn(t)),!1!==i&&void 0!==i||(t=Se(t)),N(t,(function(t){var n=Ui(r,t)+e,i=Fr(r,t),o=$(Yi(r,i,n));t[0]=o[0],t[1]=o[1]}))),t}function es(t,e,n){if(!R(n=n||{}))throw new Error("options is invalid");var r=n.origin,i=n.mutate;if(!t)throw new Error("geojson required");if("number"!=typeof e||0===e)throw new Error("invalid factor");var o=Array.isArray(r)||"object"==typeof r;return!0!==i&&(t=Se(t)),"FeatureCollection"!==t.type||o?ns(t,e,r):(D(t,(function(n,i){t.features[i]=ns(n,e,r)})),t)}function ns(t,e,n){var r="Point"===ot(t);return n=function(t,e){if(null==e&&(e="centroid"),Array.isArray(e)||"object"==typeof e)return Q(e);var n=t.bbox?t.bbox:J(t),r=n[0],i=n[1],o=n[2],s=n[3];switch(e){case"sw":case"southwest":case"westsouth":case"bottomleft":return u([r,i]);case"se":case"southeast":case"eastsouth":case"bottomright":return u([o,i]);case"nw":case"northwest":case"westnorth":case"topleft":return u([r,s]);case"ne":case"northeast":case"eastnorth":case"topright":return u([o,s]);case"center":return En(t);case void 0:case null:case"centroid":return wn(t);default:throw new Error("invalid origin")}}(t,n),1===e||r||N(t,(function(t){var r=Fr(n,t),i=Ui(n,t),o=$(Yi(n,r*e,i));t[0]=o[0],t[1]=o[1],3===t.length&&(t[2]*=e)})),t}function rs(t){var e=t[0],n=t[1];return[n[0]-e[0],n[1]-e[1]]}function is(t,e){return t[0]*e[1]-e[0]*t[1]}function os(t,e){return!function(t,e){return 0===is(rs(t),rs(e))}(t,e)&&function(t,e){var n,r,i=t[0],o=rs(t),s=e[0],a=rs(e),u=is(o,a);return function(t,e){return[t[0]+e[0],t[1]+e[1]]}(i,function(t,e){return[t*e[0],t*e[1]]}(is((r=i,[(n=s)[0]-r[0],n[1]-r[1]]),a)/u,o))}(t,e)}function ss(t,e,n){var r=[],i=w(e,n),o=$(t),s=[];return o.forEach((function(t,e){if(e!==o.length-1){var n=(c=t,l=o[e+1],h=i,f=Math.sqrt((c[0]-l[0])*(c[0]-l[0])+(c[1]-l[1])*(c[1]-l[1])),p=c[0]+h*(l[1]-c[1])/f,d=l[0]+h*(l[1]-c[1])/f,g=c[1]+h*(c[0]-l[0])/f,y=l[1]+h*(c[0]-l[0])/f,[[p,g],[d,y]]);if(r.push(n),e>0){var a=r[e-1],u=os(n,a);!1!==u&&(a[1]=u,n[0]=u),s.push(a[0]),e===o.length-2&&(s.push(n[0]),s.push(n[1]))}2===o.length&&(s.push(n[0]),s.push(n[1]))}var c,l,h,f,p,d,g,y})),f(s,t.properties)}function as(t,e,n){var r=e[0]-t[0],i=e[1]-t[1],o=n[0]-e[0];return function(t){return(t>0)-(t<0)||+t}(r*(n[1]-e[1])-o*i)}function us(t,e){return e.geometry.coordinates[0].every((function(e){return ve(u(e),t)}))}Xo[1]=Xo[169]=Po,Xo[4]=Xo[166]=Ro,Xo[16]=Xo[154]=To,Xo[64]=Xo[106]=Lo,Xo[168]=Xo[2]=Mo,Xo[162]=Xo[8]=No,Xo[138]=Xo[32]=Ao,Xo[42]=Xo[128]=Fo,Xo[5]=Xo[165]=function(t){return[[0,0],[0,t.leftbottom],[1,t.rightbottom],[1,0]]},Xo[20]=Xo[150]=function(t){return[[1,0],[t.bottomright,0],[t.topright,1],[1,1]]},Xo[80]=Xo[90]=function(t){return[[1,1],[1,t.righttop],[0,t.lefttop],[0,1]]},Xo[65]=Xo[105]=function(t){return[[t.bottomleft,0],[0,0],[0,1],[t.topleft,1]]},Xo[160]=Xo[10]=function(t){return[[1,t.righttop],[1,t.rightbottom],[0,t.leftbottom],[0,t.lefttop]]},Xo[130]=Xo[40]=function(t){return[[t.topleft,1],[t.topright,1],[t.bottomright,0],[t.bottomleft,0]]},Xo[85]=function(){return[[0,0],[0,1],[1,1],[1,0]]},Xo[101]=Xo[69]=function(t){return[[1,t.rightbottom],[1,0],[0,0],[0,1],[t.topleft,1]]},Xo[149]=Xo[21]=function(t){return[[t.topright,1],[1,1],[1,0],[0,0],[0,t.leftbottom]]},Xo[86]=Xo[84]=function(t){return[[1,0],[t.bottomright,0],[0,t.lefttop],[0,1],[1,1]]},Xo[89]=Xo[81]=function(t){return[[1,1],[1,t.righttop],[t.bottomleft,0],[0,0],[0,1]]},Xo[96]=Xo[74]=function(t){return[[1,t.righttop],[1,t.rightbottom],[0,t.lefttop],[0,1],[t.topleft,1]]},Xo[24]=Xo[146]=function(t){return[[1,1],[1,t.righttop],[t.bottomright,0],[t.bottomleft,0],[t.topright,1]]},Xo[6]=Xo[164]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[0,t.leftbottom],[0,t.lefttop]]},Xo[129]=Xo[41]=function(t){return[[t.topright,1],[t.bottomleft,0],[0,0],[0,t.leftbottom],[t.topleft,1]]},Xo[66]=Xo[104]=function(t){return[[t.bottomright,0],[t.bottomleft,0],[0,t.lefttop],[0,1],[t.topleft,1]]},Xo[144]=Xo[26]=function(t){return[[1,1],[1,t.righttop],[0,t.leftbottom],[0,t.lefttop],[t.topright,1]]},Xo[36]=Xo[134]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[t.topleft,1],[t.topright,1]]},Xo[9]=Xo[161]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomleft,0],[0,0],[0,t.leftbottom]]},Xo[37]=Xo[133]=function(t){return[[1,t.rightbottom],[1,0],[0,0],[0,t.leftbottom],[t.topleft,1],[t.topright,1]]},Xo[148]=Xo[22]=function(t){return[[1,1],[1,0],[t.bottomright,0],[0,t.leftbottom],[0,t.lefttop],[t.topright,1]]},Xo[82]=Xo[88]=function(t){return[[1,1],[1,t.righttop],[t.bottomright,0],[t.bottomleft,0],[0,t.lefttop],[0,1]]},Xo[73]=Xo[97]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomleft,0],[0,0],[0,1],[t.topleft,1]]},Xo[145]=Xo[25]=function(t){return[[1,1],[1,t.righttop],[t.bottomleft,0],[0,0],[0,t.leftbottom],[t.topright,1]]},Xo[70]=Xo[100]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[0,t.lefttop],[0,1],[t.topleft,1]]},Xo[34]=function(t){return[Fo(t),No(t)]},Xo[35]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomright,0],[t.bottomleft,0],[0,t.leftbottom],[0,t.lefttop],[t.topleft,1],[t.topright,1]]},Xo[136]=function(t){return[Ao(t),Mo(t)]},Xo[153]=function(t){return[To(t),Po(t)]},Xo[102]=function(t){return[Ro(t),Lo(t)]},Xo[155]=function(t){return[[1,1],[1,t.righttop],[t.bottomleft,0],[0,0],[0,t.leftbottom],[t.topright,1]]},Xo[103]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[0,t.lefttop],[0,1],[t.topleft,1]]},Xo[152]=function(t){return[To(t),Mo(t)]},Xo[156]=function(t){return[[1,1],[1,t.righttop],[t.bottomright,0],[t.bottomleft,0],[0,t.leftbottom],[0,t.lefttop],[t.topright,1]]},Xo[137]=function(t){return[Ao(t),Po(t)]},Xo[139]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomleft,0],[0,0],[0,t.leftbottom],[t.topleft,1],[t.topright,1]]},Xo[98]=function(t){return[No(t),Lo(t)]},Xo[99]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomright,0],[t.bottomleft,0],[0,t.lefttop],[0,1],[t.topleft,1]]},Xo[38]=function(t){return[Ro(t),Fo(t)]},Xo[39]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[0,t.leftbottom],[0,t.lefttop],[t.topleft,1],[t.topright,1]]};var cs=function(){function t(e){this.id=t.buildId(e),this.coordinates=e,this.innerEdges=[],this.outerEdges=[],this.outerEdgesSorted=!1}return t.buildId=function(t){return t.join(",")},t.prototype.removeInnerEdge=function(t){this.innerEdges=this.innerEdges.filter((function(e){return e.from.id!==t.from.id}))},t.prototype.removeOuterEdge=function(t){this.outerEdges=this.outerEdges.filter((function(e){return e.to.id!==t.to.id}))},t.prototype.addOuterEdge=function(t){this.outerEdges.push(t),this.outerEdgesSorted=!1},t.prototype.sortOuterEdges=function(){var t=this;this.outerEdgesSorted||(this.outerEdges.sort((function(e,n){var r=e.to,i=n.to;if(r.coordinates[0]-t.coordinates[0]>=0&&i.coordinates[0]-t.coordinates[0]<0)return 1;if(r.coordinates[0]-t.coordinates[0]<0&&i.coordinates[0]-t.coordinates[0]>=0)return-1;if(r.coordinates[0]-t.coordinates[0]==0&&i.coordinates[0]-t.coordinates[0]==0)return r.coordinates[1]-t.coordinates[1]>=0||i.coordinates[1]-t.coordinates[1]>=0?r.coordinates[1]-i.coordinates[1]:i.coordinates[1]-r.coordinates[1];var o=as(t.coordinates,r.coordinates,i.coordinates);return o<0?1:o>0?-1:Math.pow(r.coordinates[0]-t.coordinates[0],2)+Math.pow(r.coordinates[1]-t.coordinates[1],2)-(Math.pow(i.coordinates[0]-t.coordinates[0],2)+Math.pow(i.coordinates[1]-t.coordinates[1],2))})),this.outerEdgesSorted=!0)},t.prototype.getOuterEdges=function(){return this.sortOuterEdges(),this.outerEdges},t.prototype.getOuterEdge=function(t){return this.sortOuterEdges(),this.outerEdges[t]},t.prototype.addInnerEdge=function(t){this.innerEdges.push(t)},t}(),ls=function(){function t(t,e){this.from=t,this.to=e,this.next=void 0,this.label=void 0,this.symetric=void 0,this.ring=void 0,this.from.addOuterEdge(this),this.to.addInnerEdge(this)}return t.prototype.getSymetric=function(){return this.symetric||(this.symetric=new t(this.to,this.from),this.symetric.symetric=this),this.symetric},t.prototype.deleteEdge=function(){this.from.removeOuterEdge(this),this.to.removeInnerEdge(this)},t.prototype.isEqual=function(t){return this.from.id===t.from.id&&this.to.id===t.to.id},t.prototype.toString=function(){return"Edge { "+this.from.id+" -> "+this.to.id+" }"},t.prototype.toLineString=function(){return f([this.from.coordinates,this.to.coordinates])},t.prototype.compareTo=function(t){return as(t.from.coordinates,t.to.coordinates,this.to.coordinates)},t}(),hs=function(){function t(){this.edges=[],this.polygon=void 0,this.envelope=void 0}return t.prototype.push=function(t){this.edges.push(t),this.polygon=this.envelope=void 0},t.prototype.get=function(t){return this.edges[t]},Object.defineProperty(t.prototype,"length",{get:function(){return this.edges.length},enumerable:!0,configurable:!0}),t.prototype.forEach=function(t){this.edges.forEach(t)},t.prototype.map=function(t){return this.edges.map(t)},t.prototype.some=function(t){return this.edges.some(t)},t.prototype.isValid=function(){return!0},t.prototype.isHole=function(){var t=this,e=this.edges.reduce((function(e,n,r){return n.from.coordinates[1]>t.edges[e].from.coordinates[1]&&(e=r),e}),0),n=(0===e?this.length:e)-1,r=(e+1)%this.length,i=as(this.edges[n].from.coordinates,this.edges[e].from.coordinates,this.edges[r].from.coordinates);return 0===i?this.edges[n].from.coordinates[0]>this.edges[r].from.coordinates[0]:i>0},t.prototype.toMultiPoint=function(){return y(this.edges.map((function(t){return t.from.coordinates})))},t.prototype.toPolygon=function(){if(this.polygon)return this.polygon;var t=this.edges.map((function(t){return t.from.coordinates}));return t.push(this.edges[0].from.coordinates),this.polygon=l([t])},t.prototype.getEnvelope=function(){return this.envelope?this.envelope:this.envelope=yn(this.toPolygon())},t.findEdgeRingContaining=function(t,e){var n,r,i=t.getEnvelope();return e.forEach((function(e){var o,s,a,c,l,h,f=e.getEnvelope();if(r&&(n=r.getEnvelope()),s=i,a=(o=f).geometry.coordinates[0].map((function(t){return t[0]})),c=o.geometry.coordinates[0].map((function(t){return t[1]})),l=s.geometry.coordinates[0].map((function(t){return t[0]})),h=s.geometry.coordinates[0].map((function(t){return t[1]})),(Math.max.apply(null,a)!==Math.max.apply(null,l)||Math.max.apply(null,c)!==Math.max.apply(null,h)||Math.min.apply(null,a)!==Math.min.apply(null,l)||Math.min.apply(null,c)!==Math.min.apply(null,h))&&us(f,i)){for(var p=t.map((function(t){return t.from.coordinates})),d=void 0,g=function(t){e.some((function(e){return n=t,r=e.from.coordinates,n[0]===r[0]&&n[1]===r[1];var n,r}))||(d=t)},y=0,v=p;y<v.length;y++)g(v[y]);d&&e.inside(u(d))&&(r&&!us(n,f)||(r=e))}})),r},t.prototype.inside=function(t){return ve(t,this.toPolygon())},t}(),fs=function(){function t(){this.edges=[],this.nodes={}}return t.fromGeoJson=function(e){!function(t){if(!t)throw new Error("No geojson passed");if("FeatureCollection"!==t.type&&"GeometryCollection"!==t.type&&"MultiLineString"!==t.type&&"LineString"!==t.type&&"Feature"!==t.type)throw new Error("Invalid input type '"+t.type+"'. Geojson must be FeatureCollection, GeometryCollection, LineString, MultiLineString or Feature")}(e);var n=new t;return z(e,(function(t){nt(t,"LineString","Graph::fromGeoJson"),A(t,(function(t,e){if(t){var r=n.getNode(t),i=n.getNode(e);n.addEdge(r,i)}return e}))})),n},t.prototype.getNode=function(t){var e=cs.buildId(t),n=this.nodes[e];return n||(n=this.nodes[e]=new cs(t)),n},t.prototype.addEdge=function(t,e){var n=new ls(t,e),r=n.getSymetric();this.edges.push(n),this.edges.push(r)},t.prototype.deleteDangles=function(){var t=this;Object.keys(this.nodes).map((function(e){return t.nodes[e]})).forEach((function(e){return t._removeIfDangle(e)}))},t.prototype._removeIfDangle=function(t){var e=this;if(t.innerEdges.length<=1){var n=t.getOuterEdges().map((function(t){return t.to}));this.removeNode(t),n.forEach((function(t){return e._removeIfDangle(t)}))}},t.prototype.deleteCutEdges=function(){var t=this;this._computeNextCWEdges(),this._findLabeledEdgeRings(),this.edges.forEach((function(e){e.label===e.symetric.label&&(t.removeEdge(e.symetric),t.removeEdge(e))}))},t.prototype._computeNextCWEdges=function(t){var e=this;void 0===t?Object.keys(this.nodes).forEach((function(t){return e._computeNextCWEdges(e.nodes[t])})):t.getOuterEdges().forEach((function(e,n){t.getOuterEdge((0===n?t.getOuterEdges().length:n)-1).symetric.next=e}))},t.prototype._computeNextCCWEdges=function(t,e){for(var n,r,i=t.getOuterEdges(),o=i.length-1;o>=0;--o){var s=i[o],a=s.symetric,u=void 0,c=void 0;s.label===e&&(u=s),a.label===e&&(c=a),u&&c&&(c&&(r=c),u&&(r&&(r.next=u,r=void 0),n||(n=u)))}r&&(r.next=n)},t.prototype._findLabeledEdgeRings=function(){var t=[],e=0;return this.edges.forEach((function(n){if(!(n.label>=0)){t.push(n);var r=n;do{r.label=e,r=r.next}while(!n.isEqual(r));e++}})),t},t.prototype.getEdgeRings=function(){var t=this;this._computeNextCWEdges(),this.edges.forEach((function(t){t.label=void 0})),this._findLabeledEdgeRings().forEach((function(e){t._findIntersectionNodes(e).forEach((function(n){t._computeNextCCWEdges(n,e.label)}))}));var e=[];return this.edges.forEach((function(n){n.ring||e.push(t._findEdgeRing(n))})),e},t.prototype._findIntersectionNodes=function(t){var e=[],n=t,r=function(){var r=0;n.from.getOuterEdges().forEach((function(e){e.label===t.label&&++r})),r>1&&e.push(n.from),n=n.next};do{r()}while(!t.isEqual(n));return e},t.prototype._findEdgeRing=function(t){var e=t,n=new hs;do{n.push(e),e.ring=n,e=e.next}while(!t.isEqual(e));return n},t.prototype.removeNode=function(t){var e=this;t.getOuterEdges().forEach((function(t){return e.removeEdge(t)})),t.innerEdges.forEach((function(t){return e.removeEdge(t)})),delete this.nodes[t.id]},t.prototype.removeEdge=function(t){this.edges=this.edges.filter((function(e){return!e.isEqual(t)})),t.deleteEdge()},t}();function ps(t,e){var n=!0;return z(t,(function(t){z(e,(function(e){if(!1===n)return!1;n=function(t,e){switch(t.type){case"Point":switch(e.type){case"Point":return n=t.coordinates,r=e.coordinates,!(n[0]===r[0]&&n[1]===r[1]);case"LineString":return!ds(e,t);case"Polygon":return!ve(t,e)}break;case"LineString":switch(e.type){case"Point":return!ds(t,e);case"LineString":return!function(t,e){return Mr(t,e).features.length>0}(t,e);case"Polygon":return!gs(e,t)}break;case"Polygon":switch(e.type){case"Point":return!ve(e,t);case"LineString":return!gs(t,e);case"Polygon":return!function(t,e){for(var n=0,r=t.coordinates[0];n<r.length;n++)if(ve(r[n],e))return!0;for(var i=0,o=e.coordinates[0];i<o.length;i++)if(ve(o[i],t))return!0;return Mr(Si(t),Si(e)).features.length>0}(e,t)}}var n,r;return!1}(t.geometry,e.geometry)}))})),n}function ds(t,e){for(var n=0;n<t.coordinates.length-1;n++)if(ys(t.coordinates[n],t.coordinates[n+1],e.coordinates))return!0;return!1}function gs(t,e){for(var n=0,r=e.coordinates;n<r.length;n++)if(ve(r[n],t))return!0;return Mr(e,Si(t)).features.length>0}function ys(t,e,n){var r=n[0]-t[0],i=n[1]-t[1],o=e[0]-t[0],s=e[1]-t[1];return 0==r*s-i*o&&(Math.abs(o)>=Math.abs(s)?o>0?t[0]<=n[0]&&n[0]<=e[0]:e[0]<=n[0]&&n[0]<=t[0]:s>0?t[1]<=n[1]&&n[1]<=e[1]:e[1]<=n[1]&&n[1]<=t[1])}function vs(t,e){return!(t[0]>e[0])&&!(t[2]<e[2])&&!(t[1]>e[1])&&!(t[3]<e[3])}function _s(t,e){return t[0]===e[0]&&t[1]===e[1]}function ms(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}function bs(t,e){for(var n=!1,r=!1,i=t.coordinates.length,o=0;o<i&&!n&&!r;){for(var s=0;s<e.coordinates.length-1;s++){var a=!0;0!==s&&s!==e.coordinates.length-2||(a=!1),xs(e.coordinates[s],e.coordinates[s+1],t.coordinates[o],a)?n=!0:r=!0}o++}return n&&r}function Es(t,e){return Mr(t,Ci(e)).features.length>0}function ws(t,e){for(var n=!1,r=!1,i=t.coordinates.length,o=0;o<i&&(!n||!r);o++)ve(u(t.coordinates[o]),e)?n=!0:r=!0;return r&&n}function xs(t,e,n,r){var i=n[0]-t[0],o=n[1]-t[1],s=e[0]-t[0],a=e[1]-t[1];return 0==i*a-o*s&&(r?Math.abs(s)>=Math.abs(a)?s>0?t[0]<=n[0]&&n[0]<=e[0]:e[0]<=n[0]&&n[0]<=t[0]:a>0?t[1]<=n[1]&&n[1]<=e[1]:e[1]<=n[1]&&n[1]<=t[1]:Math.abs(s)>=Math.abs(a)?s>0?t[0]<n[0]&&n[0]<e[0]:e[0]<n[0]&&n[0]<t[0]:a>0?t[1]<n[1]&&n[1]<e[1]:e[1]<n[1]&&n[1]<t[1])}var Os=function(t){this.precision=t&&t.precision?t.precision:17,this.direction=!(!t||!t.direction)&&t.direction,this.pseudoNode=!(!t||!t.pseudoNode)&&t.pseudoNode,this.objectComparator=t&&t.objectComparator?t.objectComparator:Is};function Ss(t){return t.coordinates.map((function(e){return{type:t.type.replace("Multi",""),coordinates:e}}))}function Cs(t,e){return t.hasOwnProperty("coordinates")?t.coordinates.length===e.coordinates.length:t.length===e.length}function Is(t,e){return Di(t,e,{strict:!0})}Os.prototype.compare=function(t,e){if(t.type!==e.type||!Cs(t,e))return!1;switch(t.type){case"Point":return this.compareCoord(t.coordinates,e.coordinates);case"LineString":return this.compareLine(t.coordinates,e.coordinates,0,!1);case"Polygon":return this.comparePolygon(t,e);case"Feature":return this.compareFeature(t,e);default:if(0===t.type.indexOf("Multi")){var n=this,r=Ss(t),i=Ss(e);return r.every((function(t){return this.some((function(e){return n.compare(t,e)}))}),i)}}return!1},Os.prototype.compareCoord=function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n].toFixed(this.precision)!==e[n].toFixed(this.precision))return!1;return!0},Os.prototype.compareLine=function(t,e,n,r){if(!Cs(t,e))return!1;var i=this.pseudoNode?t:this.removePseudo(t),o=this.pseudoNode?e:this.removePseudo(e);if(!r||this.compareCoord(i[0],o[0])||(o=this.fixStartIndex(o,i))){var s=this.compareCoord(i[n],o[n]);return this.direction||s?this.comparePath(i,o):!!this.compareCoord(i[n],o[o.length-(1+n)])&&this.comparePath(i.slice().reverse(),o)}},Os.prototype.fixStartIndex=function(t,e){for(var n,r=-1,i=0;i<t.length;i++)if(this.compareCoord(t[i],e[0])){r=i;break}return r>=0&&(n=[].concat(t.slice(r,t.length),t.slice(1,r+1))),n},Os.prototype.comparePath=function(t,e){var n=this;return t.every((function(t,e){return n.compareCoord(t,this[e])}),e)},Os.prototype.comparePolygon=function(t,e){if(this.compareLine(t.coordinates[0],e.coordinates[0],1,!0)){var n=t.coordinates.slice(1,t.coordinates.length),r=e.coordinates.slice(1,e.coordinates.length),i=this;return n.every((function(t){return this.some((function(e){return i.compareLine(t,e,1,!0)}))}),r)}return!1},Os.prototype.compareFeature=function(t,e){return!(t.id!==e.id||!this.objectComparator(t.properties,e.properties)||!this.compareBBox(t,e))&&this.compare(t.geometry,e.geometry)},Os.prototype.compareBBox=function(t,e){return!!(!t.bbox&&!e.bbox||t.bbox&&e.bbox&&this.compareCoord(t.bbox,e.bbox))},Os.prototype.removePseudo=function(t){return t};var Ps=Os;function Rs(t,e){var n=!1;return z(t,(function(t){z(e,(function(e){if(!0===n)return!0;n=!ps(t.geometry,e.geometry)}))})),n}var Ts=Ut((function(t){function e(t,e,n,r){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(t,e,n,r)}e.prototype.run=function(t,e,n,r){this._init(t,e,n,r);for(var i=0;i<this._datasetLength;i++)if(1!==this._visited[i]){this._visited[i]=1;var o=this._regionQuery(i);if(o.length<this.minPts)this.noise.push(i);else{var s=this.clusters.length;this.clusters.push([]),this._addToCluster(i,s),this._expandCluster(s,o)}}return this.clusters},e.prototype._init=function(t,e,n,r){if(t){if(!(t instanceof Array))throw Error("Dataset must be of type array, "+typeof t+" given");this.dataset=t,this.clusters=[],this.noise=[],this._datasetLength=t.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}e&&(this.epsilon=e),n&&(this.minPts=n),r&&(this.distance=r)},e.prototype._expandCluster=function(t,e){for(var n=0;n<e.length;n++){var r=e[n];if(1!==this._visited[r]){this._visited[r]=1;var i=this._regionQuery(r);i.length>=this.minPts&&(e=this._mergeArrays(e,i))}1!==this._assigned[r]&&this._addToCluster(r,t)}},e.prototype._addToCluster=function(t,e){this.clusters[e].push(t),this._assigned[t]=1},e.prototype._regionQuery=function(t){for(var e=[],n=0;n<this._datasetLength;n++)this.distance(this.dataset[t],this.dataset[n])<this.epsilon&&e.push(n);return e},e.prototype._mergeArrays=function(t,e){for(var n=e.length,r=0;r<n;r++){var i=e[r];t.indexOf(i)<0&&t.push(i)}return t},e.prototype._euclideanDistance=function(t,e){for(var n=0,r=Math.min(t.length,e.length);r--;)n+=(t[r]-e[r])*(t[r]-e[r]);return Math.sqrt(n)},t.exports&&(t.exports=e)})),Ls=Ut((function(t){function e(t,e,n){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(t,e,n)}e.prototype.init=function(t,e,n){this.assignments=[],this.centroids=[],void 0!==t&&(this.dataset=t),void 0!==e&&(this.k=e),void 0!==n&&(this.distance=n)},e.prototype.run=function(t,e){this.init(t,e);for(var n=this.dataset.length,r=0;r<this.k;r++)this.centroids[r]=this.randomCentroid();for(var i=!0;i;){i=this.assign();for(var o=0;o<this.k;o++){for(var s=new Array(l),a=0,u=0;u<l;u++)s[u]=0;for(var c=0;c<n;c++){var l=this.dataset[c].length;if(o===this.assignments[c]){for(u=0;u<l;u++)s[u]+=this.dataset[c][u];a++}}if(a>0){for(u=0;u<l;u++)s[u]/=a;this.centroids[o]=s}else this.centroids[o]=this.randomCentroid(),i=!0}}return this.getClusters()},e.prototype.randomCentroid=function(){var t,e,n=this.dataset.length-1;do{e=Math.round(Math.random()*n),t=this.dataset[e]}while(this.centroids.indexOf(t)>=0);return t},e.prototype.assign=function(){for(var t,e=!1,n=this.dataset.length,r=0;r<n;r++)(t=this.argmin(this.dataset[r],this.centroids,this.distance))!=this.assignments[r]&&(this.assignments[r]=t,e=!0);return e},e.prototype.getClusters=function(){for(var t,e=new Array(this.k),n=0;n<this.assignments.length;n++)void 0===e[t=this.assignments[n]]&&(e[t]=[]),e[t].push(n);return e},e.prototype.argmin=function(t,e,n){for(var r,i=Number.MAX_VALUE,o=0,s=e.length,a=0;a<s;a++)(r=n(t,e[a]))<i&&(i=r,o=a);return o},e.prototype.distance=function(t,e){for(var n=0,r=Math.min(t.length,e.length);r--;){var i=t[r]-e[r];n+=i*i}return Math.sqrt(n)},t.exports&&(t.exports=e)})),Ms=Ut((function(t){function e(t,e,n){this._queue=[],this._priorities=[],this._sorting="desc",this._init(t,e,n)}e.prototype.insert=function(t,e){for(var n=this._queue.length,r=n;r--;){var i=this._priorities[r];"desc"===this._sorting?e>i&&(n=r):e<i&&(n=r)}this._insertAt(t,e,n)},e.prototype.remove=function(t){for(var e=this._queue.length;e--;)if(t===this._queue[e]){this._queue.splice(e,1),this._priorities.splice(e,1);break}},e.prototype.forEach=function(t){this._queue.forEach(t)},e.prototype.getElements=function(){return this._queue},e.prototype.getElementPriority=function(t){return this._priorities[t]},e.prototype.getPriorities=function(){return this._priorities},e.prototype.getElementsWithPriorities=function(){for(var t=[],e=0,n=this._queue.length;e<n;e++)t.push([this._queue[e],this._priorities[e]]);return t},e.prototype._init=function(t,e,n){if(t&&e){if(this._queue=[],this._priorities=[],t.length!==e.length)throw new Error("Arrays must have the same length");for(var r=0;r<t.length;r++)this.insert(t[r],e[r])}n&&(this._sorting=n)},e.prototype._insertAt=function(t,e,n){this._queue.length===n?(this._queue.push(t),this._priorities.push(e)):(this._queue.splice(n,0,t),this._priorities.splice(n,0,e))},t.exports&&(t.exports=e)})),Ns=Ut((function(t){if(t.exports)var e=Ms;function n(t,e,n,r){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(t,e,n,r)}n.prototype.run=function(t,n,r,i){this._init(t,n,r,i);for(var o=0,s=this.dataset.length;o<s;o++)if(1!==this._processed[o]){this._processed[o]=1,this.clusters.push([o]);var a=this.clusters.length-1;this._orderedList.push(o);var u=new e(null,null,"asc"),c=this._regionQuery(o);void 0!==this._distanceToCore(o)&&(this._updateQueue(o,c,u),this._expandCluster(a,u))}return this.clusters},n.prototype.getReachabilityPlot=function(){for(var t=[],e=0,n=this._orderedList.length;e<n;e++){var r=this._orderedList[e],i=this._reachability[r];t.push([r,i])}return t},n.prototype._init=function(t,e,n,r){if(t){if(!(t instanceof Array))throw Error("Dataset must be of type array, "+typeof t+" given");this.dataset=t,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}e&&(this.epsilon=e),n&&(this.minPts=n),r&&(this.distance=r)},n.prototype._updateQueue=function(t,e,n){var r=this;this._coreDistance=this._distanceToCore(t),e.forEach((function(e){if(void 0===r._processed[e]){var i=r.distance(r.dataset[t],r.dataset[e]),o=Math.max(r._coreDistance,i);void 0===r._reachability[e]?(r._reachability[e]=o,n.insert(e,o)):o<r._reachability[e]&&(r._reachability[e]=o,n.remove(e),n.insert(e,o))}}))},n.prototype._expandCluster=function(t,e){for(var n=e.getElements(),r=0,i=n.length;r<i;r++){var o=n[r];if(void 0===this._processed[o]){var s=this._regionQuery(o);this._processed[o]=1,this.clusters[t].push(o),this._orderedList.push(o),void 0!==this._distanceToCore(o)&&(this._updateQueue(o,s,e),this._expandCluster(t,e))}}},n.prototype._distanceToCore=function(t){for(var e=this.epsilon,n=0;n<e;n++)if(this._regionQuery(t,n).length>=this.minPts)return n},n.prototype._regionQuery=function(t,e){e=e||this.epsilon;for(var n=[],r=0,i=this.dataset.length;r<i;r++)this.distance(this.dataset[t],this.dataset[r])<e&&n.push(r);return n},n.prototype._euclideanDistance=function(t,e){for(var n=0,r=Math.min(t.length,e.length);r--;)n+=(t[r]-e[r])*(t[r]-e[r]);return Math.sqrt(n)},t.exports&&(t.exports=n)})),As=Ut((function(t){t.exports&&(t.exports={DBSCAN:Ts,KMEANS:Ls,OPTICS:Ns,PriorityQueue:Ms})})),Fs=function(t,e,n){for(var r=t.length,i=0,o=0;o<r;o++){var s=(t[o]||0)-(e[o]||0);i+=s*s}return n?Math.sqrt(i):i},js=Fs,Ds=function(t,e,n){var r=Math.abs(t-e);return n?r:r*r},ks=Fs,Gs=function(t,e){for(var n={},r=[],i=e<<2,o=t.length,s=t[0].length>0;r.length<e&&i-- >0;){var a=t[Math.floor(Math.random()*o)],u=s?a.join("_"):""+a;n[u]||(n[u]=!0,r.push(a))}if(r.length<e)throw new Error("Error initializating clusters");return r},Bs=function(t,e){var n=t[0].length?js:Ds,r=[],i=t.length,o=t[0].length>0,s=t[Math.floor(Math.random()*i)];for(o&&s.join("_"),r.push(s);r.length<e;){for(var a=[],u=r.length,c=0,l=[],h=0;h<i;h++){for(var f=1/0,p=0;p<u;p++){var d=n(t[h],r[p]);d<=f&&(f=d)}a[h]=f}for(var g=0;g<i;g++)c+=a[g];for(var y=0;y<i;y++)l[y]={i:y,v:t[y],pr:a[y]/c,cs:0};l.sort((function(t,e){return t.pr-e.pr})),l[0].cs=l[0].pr;for(var v=1;v<i;v++)l[v].cs=l[v-1].cs+l[v].pr;for(var _=Math.random(),m=0;m<i-1&&l[m++].cs<_;);r.push(l[m-1].v)}return r};function Us(t,e,n){n=n||[];for(var r=0;r<t;r++)n[r]=e;return n}var zs=function(t,e,n,r){var i=[],o=[],s=[],a=[],u=!1,c=r||1e4,l=t.length,h=t[0].length,f=h>0,p=[];if(n)i="kmrand"==n?Gs(t,e):"kmpp"==n?Bs(t,e):n;else for(var d={};i.length<e;){var g=Math.floor(Math.random()*l);d[g]||(d[g]=!0,i.push(t[g]))}do{Us(e,0,p);for(var y=0;y<l;y++){for(var v=1/0,_=0,m=0;m<e;m++)(a=f?ks(t[y],i[m]):Math.abs(t[y]-i[m]))<=v&&(v=a,_=m);s[y]=_,p[_]++}for(var b=[],E=(o=[],0);E<e;E++)b[E]=f?Us(h,0,b[E]):0,o[E]=i[E];if(f){for(var w=0;w<e;w++)i[w]=[];for(var x=0;x<l;x++)for(var O=b[s[x]],S=t[x],C=0;C<h;C++)O[C]+=S[C];u=!0;for(var I=0;I<e;I++){for(var P=i[I],R=b[I],T=o[I],L=p[I],M=0;M<h;M++)P[M]=R[M]/L||0;if(u)for(var N=0;N<h;N++)if(T[N]!=P[N]){u=!1;break}}}else{for(var A=0;A<l;A++)b[s[A]]+=t[A];for(var F=0;F<e;F++)i[F]=b[F]/p[F]||0;u=!0;for(var j=0;j<e;j++)if(o[j]!=i[j]){u=!1;break}}u=u||--c<=0}while(!u);return{it:1e4-c,k:e,idxs:s,centroids:i}};function Ys(t,e){return x(Ui(t[0],t[1]))===x(Ui(e[0],e[1]))}function Xs(t,e){if(t.geometry&&t.geometry.type)return t.geometry.type;if(t.type)return t.type;throw new Error("Invalid GeoJSON object for "+e)}function Vs(t){for(var e=t,n=[];e.parent;)n.unshift(e),e=e.parent;return n}var qs={search:function(t,e,n,r){t.cleanDirty();var i=(r=r||{}).heuristic||qs.heuristics.manhattan,o=r.closest||!1,s=new Zs((function(t){return t.f})),a=e;for(e.h=i(e,n),s.push(e);s.size()>0;){var u=s.pop();if(u===n)return Vs(u);u.closed=!0;for(var c=t.neighbors(u),l=0,h=c.length;l<h;++l){var f=c[l];if(!f.closed&&!f.isWall()){var p=u.g+f.getCost(u),d=f.visited;(!d||p<f.g)&&(f.visited=!0,f.parent=u,f.h=f.h||i(f,n),f.g=p,f.f=f.g+f.h,t.markDirty(f),o&&(f.h<a.h||f.h===a.h&&f.g<a.g)&&(a=f),d?s.rescoreElement(f):s.push(f))}}}return o?Vs(a):[]},heuristics:{manhattan:function(t,e){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},diagonal:function(t,e){var n=Math.sqrt(2),r=Math.abs(e.x-t.x),i=Math.abs(e.y-t.y);return 1*(r+i)+(n-2)*Math.min(r,i)}},cleanNode:function(t){t.f=0,t.g=0,t.h=0,t.visited=!1,t.closed=!1,t.parent=null}};function Ws(t,e){e=e||{},this.nodes=[],this.diagonal=!!e.diagonal,this.grid=[];for(var n=0;n<t.length;n++){this.grid[n]=[];for(var r=0,i=t[n];r<i.length;r++){var o=new Hs(n,r,i[r]);this.grid[n][r]=o,this.nodes.push(o)}}this.init()}function Hs(t,e,n){this.x=t,this.y=e,this.weight=n}function Zs(t){this.content=[],this.scoreFunction=t}function Ks(t,e){for(var n=0;n<e.features.length;n++)if(ve(t,e.features[n]))return!0;return!1}function Js(t){return function(){return t}}function Qs(t){return t[0]}function $s(t){return t[1]}function ta(){this._=null}function ea(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function na(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function ra(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function ia(t){for(;t.L;)t=t.L;return t}function oa(t,e,n,r){var i=[null,null],o=Ra.push(i)-1;return i.left=t,i.right=e,n&&aa(i,t,e,n),r&&aa(i,e,t,r),Ia[t.index].halfedges.push(o),Ia[e.index].halfedges.push(o),i}function sa(t,e,n){var r=[e,n];return r.left=t,r}function aa(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function ua(t,e,n,r,i){var o,s=t[0],a=t[1],u=s[0],c=s[1],l=0,h=1,f=a[0]-u,p=a[1]-c;if(o=e-u,f||!(o>0)){if(o/=f,f<0){if(o<l)return;o<h&&(h=o)}else if(f>0){if(o>h)return;o>l&&(l=o)}if(o=r-u,f||!(o<0)){if(o/=f,f<0){if(o>h)return;o>l&&(l=o)}else if(f>0){if(o<l)return;o<h&&(h=o)}if(o=n-c,p||!(o>0)){if(o/=p,p<0){if(o<l)return;o<h&&(h=o)}else if(p>0){if(o>h)return;o>l&&(l=o)}if(o=i-c,p||!(o<0)){if(o/=p,p<0){if(o>h)return;o>l&&(l=o)}else if(p>0){if(o<l)return;o<h&&(h=o)}return!(l>0||h<1)||(l>0&&(t[0]=[u+l*f,c+l*p]),h<1&&(t[1]=[u+h*f,c+h*p]),!0)}}}}}function ca(t,e,n,r,i){var o=t[1];if(o)return!0;var s,a,u=t[0],c=t.left,l=t.right,h=c[0],f=c[1],p=l[0],d=l[1],g=(h+p)/2,y=(f+d)/2;if(d===f){if(g<e||g>=r)return;if(h>p){if(u){if(u[1]>=i)return}else u=[g,n];o=[g,i]}else{if(u){if(u[1]<n)return}else u=[g,i];o=[g,n]}}else if(a=y-(s=(h-p)/(d-f))*g,s<-1||s>1)if(h>p){if(u){if(u[1]>=i)return}else u=[(n-a)/s,n];o=[(i-a)/s,i]}else{if(u){if(u[1]<n)return}else u=[(i-a)/s,i];o=[(n-a)/s,n]}else if(f<d){if(u){if(u[0]>=r)return}else u=[e,s*e+a];o=[r,s*r+a]}else{if(u){if(u[0]<e)return}else u=[r,s*r+a];o=[e,s*e+a]}return t[0]=u,t[1]=o,!0}function la(t,e){var n=t.site,r=e.left,i=e.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=e[1],i=e[0]):(r=e[0],i=e[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function ha(t,e){return e[+(e.left!==t.site)]}function fa(t,e){return e[+(e.left===t.site)]}Ws.prototype.init=function(){this.dirtyNodes=[];for(var t=0;t<this.nodes.length;t++)qs.cleanNode(this.nodes[t])},Ws.prototype.cleanDirty=function(){for(var t=0;t<this.dirtyNodes.length;t++)qs.cleanNode(this.dirtyNodes[t]);this.dirtyNodes=[]},Ws.prototype.markDirty=function(t){this.dirtyNodes.push(t)},Ws.prototype.neighbors=function(t){var e=[],n=t.x,r=t.y,i=this.grid;return i[n-1]&&i[n-1][r]&&e.push(i[n-1][r]),i[n+1]&&i[n+1][r]&&e.push(i[n+1][r]),i[n]&&i[n][r-1]&&e.push(i[n][r-1]),i[n]&&i[n][r+1]&&e.push(i[n][r+1]),this.diagonal&&(i[n-1]&&i[n-1][r-1]&&e.push(i[n-1][r-1]),i[n+1]&&i[n+1][r-1]&&e.push(i[n+1][r-1]),i[n-1]&&i[n-1][r+1]&&e.push(i[n-1][r+1]),i[n+1]&&i[n+1][r+1]&&e.push(i[n+1][r+1])),e},Ws.prototype.toString=function(){for(var t,e,n,r,i=[],o=this.grid,s=0,a=o.length;s<a;s++){for(t=[],n=0,r=(e=o[s]).length;n<r;n++)t.push(e[n].weight);i.push(t.join(" "))}return i.join("\n")},Hs.prototype.toString=function(){return"["+this.x+" "+this.y+"]"},Hs.prototype.getCost=function(t){return t&&t.x!==this.x&&t.y!==this.y?1.41421*this.weight:this.weight},Hs.prototype.isWall=function(){return 0===this.weight},Zs.prototype={push:function(t){this.content.push(t),this.sinkDown(this.content.length-1)},pop:function(){var t=this.content[0],e=this.content.pop();return this.content.length>0&&(this.content[0]=e,this.bubbleUp(0)),t},remove:function(t){var e=this.content.indexOf(t),n=this.content.pop();e!==this.content.length-1&&(this.content[e]=n,this.scoreFunction(n)<this.scoreFunction(t)?this.sinkDown(e):this.bubbleUp(e))},size:function(){return this.content.length},rescoreElement:function(t){this.sinkDown(this.content.indexOf(t))},sinkDown:function(t){for(var e=this.content[t];t>0;){var n=(t+1>>1)-1,r=this.content[n];if(!(this.scoreFunction(e)<this.scoreFunction(r)))break;this.content[n]=e,this.content[t]=r,t=n}},bubbleUp:function(t){for(var e=this.content.length,n=this.content[t],r=this.scoreFunction(n);;){var i,o=t+1<<1,s=o-1,a=null;if(s<e){var u=this.content[s];(i=this.scoreFunction(u))<r&&(a=s)}if(o<e){var c=this.content[o];this.scoreFunction(c)<(null===a?r:i)&&(a=o)}if(null===a)break;this.content[t]=this.content[a],this.content[a]=n,t=a}}},ta.prototype={constructor:ta,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=ia(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(na(this,n),n=(t=n).U),n.C=!1,r.C=!0,ra(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(ra(this,n),n=(t=n).U),n.C=!1,r.C=!0,na(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,o=t.L,s=t.R;if(n=o?s?ia(s):o:s,i?i.L===t?i.L=n:i.R=n:this._=n,o&&s?(r=n.C,n.C=t.C,n.L=o,o.U=n,n!==s?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=s,s.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,na(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,ra(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,na(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,ra(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,na(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,ra(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var pa,da=[];function ga(){ea(this),this.x=this.y=this.arc=this.site=this.cy=null}function ya(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,o=n.site;if(r!==o){var s=i[0],a=i[1],u=r[0]-s,c=r[1]-a,l=o[0]-s,h=o[1]-a,f=2*(u*h-c*l);if(!(f>=-La)){var p=u*u+c*c,d=l*l+h*h,g=(h*p-c*d)/f,y=(u*d-l*p)/f,v=da.pop()||new ga;v.arc=t,v.site=i,v.x=g+s,v.y=(v.cy=y+a)+Math.sqrt(g*g+y*y),t.circle=v;for(var _=null,m=Pa._;m;)if(v.y<m.y||v.y===m.y&&v.x<=m.x){if(!m.L){_=m.P;break}m=m.L}else{if(!m.R){_=m;break}m=m.R}Pa.insert(_,v),_||(pa=v)}}}}function va(t){var e=t.circle;e&&(e.P||(pa=e.N),Pa.remove(e),da.push(e),ea(e),t.circle=null)}var _a=[];function ma(){ea(this),this.edge=this.site=this.circle=null}function ba(t){var e=_a.pop()||new ma;return e.site=t,e}function Ea(t){va(t),Ca.remove(t),_a.push(t),ea(t)}function wa(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],o=t.P,s=t.N,a=[t];Ea(t);for(var u=o;u.circle&&Math.abs(n-u.circle.x)<Ta&&Math.abs(r-u.circle.cy)<Ta;)o=u.P,a.unshift(u),Ea(u),u=o;a.unshift(u),va(u);for(var c=s;c.circle&&Math.abs(n-c.circle.x)<Ta&&Math.abs(r-c.circle.cy)<Ta;)s=c.N,a.push(c),Ea(c),c=s;a.push(c),va(c);var l,h=a.length;for(l=1;l<h;++l)c=a[l],u=a[l-1],aa(c.edge,u.site,c.site,i);u=a[0],(c=a[h-1]).edge=oa(u.site,c.site,null,i),ya(u),ya(c)}function xa(t){for(var e,n,r,i,o=t[0],s=t[1],a=Ca._;a;)if((r=Oa(a,s)-o)>Ta)a=a.L;else{if(!((i=o-Sa(a,s))>Ta)){r>-Ta?(e=a.P,n=a):i>-Ta?(e=a,n=a.N):e=n=a;break}if(!a.R){e=a;break}a=a.R}!function(t){Ia[t.index]={site:t,halfedges:[]}}(t);var u=ba(t);if(Ca.insert(e,u),e||n){if(e===n)return va(e),n=ba(e.site),Ca.insert(u,n),u.edge=n.edge=oa(e.site,u.site),ya(e),void ya(n);if(n){va(e),va(n);var c=e.site,l=c[0],h=c[1],f=t[0]-l,p=t[1]-h,d=n.site,g=d[0]-l,y=d[1]-h,v=2*(f*y-p*g),_=f*f+p*p,m=g*g+y*y,b=[(y*_-p*m)/v+l,(f*m-g*_)/v+h];aa(n.edge,c,d,b),u.edge=oa(c,t,null,b),n.edge=oa(t,d,null,b),ya(e),ya(n)}else u.edge=oa(e.site,u.site)}}function Oa(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;var s=t.P;if(!s)return-1/0;var a=(n=s.site)[0],u=n[1],c=u-e;if(!c)return a;var l=a-r,h=1/o-1/c,f=l/c;return h?(-f+Math.sqrt(f*f-2*h*(l*l/(-2*c)-u+c/2+i-o/2)))/h+r:(r+a)/2}function Sa(t,e){var n=t.N;if(n)return Oa(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var Ca,Ia,Pa,Ra,Ta=1e-6,La=1e-12;function Ma(t,e){return e[1]-t[1]||e[0]-t[0]}function Na(t,e){var n,r,i,o=t.sort(Ma).pop();for(Ra=[],Ia=new Array(t.length),Ca=new ta,Pa=new ta;;)if(i=pa,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===n&&o[1]===r||(xa(o),n=o[0],r=o[1]),o=t.pop();else{if(!i)break;wa(i.arc)}if(function(){for(var t,e,n,r,i=0,o=Ia.length;i<o;++i)if((t=Ia[i])&&(r=(e=t.halfedges).length)){var s=new Array(r),a=new Array(r);for(n=0;n<r;++n)s[n]=n,a[n]=la(t,Ra[e[n]]);for(s.sort((function(t,e){return a[e]-a[t]})),n=0;n<r;++n)a[n]=e[s[n]];for(n=0;n<r;++n)e[n]=a[n]}}(),e){var s=+e[0][0],a=+e[0][1],u=+e[1][0],c=+e[1][1];!function(t,e,n,r){for(var i,o=Ra.length;o--;)ca(i=Ra[o],t,e,n,r)&&ua(i,t,e,n,r)&&(Math.abs(i[0][0]-i[1][0])>Ta||Math.abs(i[0][1]-i[1][1])>Ta)||delete Ra[o]}(s,a,u,c),function(t,e,n,r){var i,o,s,a,u,c,l,h,f,p,d,g,y=Ia.length,v=!0;for(i=0;i<y;++i)if(o=Ia[i]){for(s=o.site,a=(u=o.halfedges).length;a--;)Ra[u[a]]||u.splice(a,1);for(a=0,c=u.length;a<c;)d=(p=fa(o,Ra[u[a]]))[0],g=p[1],h=(l=ha(o,Ra[u[++a%c]]))[0],f=l[1],(Math.abs(d-h)>Ta||Math.abs(g-f)>Ta)&&(u.splice(a,0,Ra.push(sa(s,p,Math.abs(d-t)<Ta&&r-g>Ta?[t,Math.abs(h-t)<Ta?f:r]:Math.abs(g-r)<Ta&&n-d>Ta?[Math.abs(f-r)<Ta?h:n,r]:Math.abs(d-n)<Ta&&g-e>Ta?[n,Math.abs(h-n)<Ta?f:e]:Math.abs(g-e)<Ta&&d-t>Ta?[Math.abs(f-e)<Ta?h:t,e]:null))-1),++c);c&&(v=!1)}if(v){var _,m,b,E=1/0;for(i=0,v=null;i<y;++i)(o=Ia[i])&&(b=(_=(s=o.site)[0]-t)*_+(m=s[1]-e)*m)<E&&(E=b,v=o);if(v){var w=[t,e],x=[t,r],O=[n,r],S=[n,e];v.halfedges.push(Ra.push(sa(s=v.site,w,x))-1,Ra.push(sa(s,x,O))-1,Ra.push(sa(s,O,S))-1,Ra.push(sa(s,S,w))-1)}}for(i=0;i<y;++i)(o=Ia[i])&&(o.halfedges.length||delete Ia[i])}(s,a,u,c)}this.edges=Ra,this.cells=Ia,Ca=Pa=Ra=Ia=null}function Aa(t){return(t=t.slice()).push(t[0]),l([t])}function Fa(t,e,n,r){var i=(r=r||{}).steps||64,o=r.units||"kilometers",s=r.angle||0,a=r.pivot||t,u=r.properties||t.properties||{};if(!t)throw new Error("center is required");if(!e)throw new Error("xSemiAxis is required");if(!n)throw new Error("ySemiAxis is required");if(!R(r))throw new Error("options must be an object");if(!P(i))throw new Error("steps must be a number");if(!P(s))throw new Error("angle must be a number");var c=Q(t);if("degrees"===o)var h=S(s);else e=Yi(t,e,90,{units:o}),n=Yi(t,n,0,{units:o}),e=Q(e)[0]-c[0],n=Q(n)[1]-c[1];for(var f=[],p=0;p<i;p+=1){var d=-360*p/i,g=e*n/Math.sqrt(Math.pow(n,2)+Math.pow(e,2)*Math.pow(ja(d),2)),y=e*n/Math.sqrt(Math.pow(e,2)+Math.pow(n,2)/Math.pow(ja(d),2));if(d<-90&&d>=-270&&(g=-g),d<-180&&d>=-360&&(y=-y),"degrees"===o){var v=g*Math.cos(h)+y*Math.sin(h),_=y*Math.cos(h)-g*Math.sin(h);g=v,y=_}f.push([g+c[0],y+c[1]])}return f.push(f[0]),"degrees"===o?l([f],u):ts(l([f],u),s,{pivot:a})}function ja(t){var e=t*Math.PI/180;return Math.tan(e)}function Da(t,e){void 0===e&&(e={});var n=0,r=0,i=0;return B(t,(function(t,o,s){var a=e.weight?null==s?void 0:s[e.weight]:void 0;if(!P(a=null==a?1:a))throw new Error("weight value must be a number for feature index "+o);(a=Number(a))>0&&N(t,(function(t){n+=t[0]*a,r+=t[1]*a,i+=a}))})),u([n/i,r/i],e.properties,e)}function ka(t,e,n,r,i){var o=r.tolerance||.001,s=0,a=0,c=0,l=0;if(D(n,(function(e){var n,r=null===(n=e.properties)||void 0===n?void 0:n.weight,i=null==r?1:r;if(!P(i=Number(i)))throw new Error("weight value must be a number");if(i>0){l+=1;var o=i*be(e,t);0===o&&(o=1);var u=i/o;s+=e.geometry.coordinates[0]*u,a+=e.geometry.coordinates[1]*u,c+=u}})),l<1)throw new Error("no features to measure");var h=s/c,f=a/c;return 1===l||0===i||Math.abs(h-e[0])<o&&Math.abs(f-e[1])<o?u([h,f],{medianCandidates:r.medianCandidates}):(r.medianCandidates.push([h,f]),ka([h,f],t,n,r,i-1))}function Ga(t,e){return{x:t[0]-e[0],y:t[1]-e[1]}}function Ba(t,e){var n=0,r=0;N(t,(function(i,o,s,a,u){u>n&&(n=u,r=o,e.push([]));var c=o-r,l=t.coordinates[u][c+1],h=i[0],f=i[1],p=l[0],d=l[1];e[u].push([.75*h+.25*p,.75*f+.25*d]),e[u].push([.25*h+.75*p,.25*f+.75*d])}),!0),e.forEach((function(t){t.push(t[0])}))}function Ua(t,e){var n=0,r=0,i=0;N(t,(function(o,s,a,u,c){u>i&&(i=u,r=s,e.push([[]])),c>n&&(n=c,r=s,e[u].push([]));var l=s-r,h=t.coordinates[u][c][l+1],f=o[0],p=o[1],d=h[0],g=h[1];e[u][c].push([.75*f+.25*d,.75*p+.25*g]),e[u][c].push([.25*f+.75*d,.25*p+.75*g])}),!0),e.forEach((function(t){t.forEach((function(t){t.push(t[0])}))}))}function za(t,e,n){void 0===n&&(n=2);var r=Q(t),i=Q(e),o=r[0]-i[0],s=r[1]-i[1];return 1===n?Math.abs(o)+Math.abs(s):Math.pow(Math.pow(o,n)+Math.pow(s,n),1/n)}function Ya(t,e){var n=(e=e||{}).threshold||1e4,r=e.p||2,i=e.binary||!1,o=e.alpha||-1,s=e.standardization||!1,a=[];D(t,(function(t){a.push(wn(t))}));for(var u=[],c=0;c<a.length;c++)u[c]=[];for(c=0;c<a.length;c++)for(var l=c;l<a.length;l++){c===l&&(u[c][l]=0);var h=za(a[c],a[l],r);u[c][l]=h,u[l][c]=h}for(c=0;c<a.length;c++)for(l=0;l<a.length;l++)0!==(h=u[c][l])&&(u[c][l]=i?h<=n?1:0:h<=n?Math.pow(h,o):0);if(s)for(c=0;c<a.length;c++){var f=u[c].reduce((function(t,e){return t+e}),0);for(l=0;l<a.length;l++)u[c][l]=u[c][l]/f}return u}function Xa(t){for(var e=0,n=0,r=t;n<r.length;n++)e+=r[n];return e/t.length}function Va(t,e){return void 0===e&&(e={}),Wa(t,"mercator",e)}function qa(t,e){return void 0===e&&(e={}),Wa(t,"wgs84",e)}function Wa(t,e,n){void 0===n&&(n={});var r=(n=n||{}).mutate;if(!t)throw new Error("geojson is required");return Array.isArray(t)&&P(t[0])?t="mercator"===e?Ha(t):Za(t):(!0!==r&&(t=Se(t)),N(t,(function(t){var n="mercator"===e?Ha(t):Za(t);t[0]=n[0],t[1]=n[1]}))),t}function Ha(t){var e=Math.PI/180,n=6378137,r=20037508.342789244,i=[n*(Math.abs(t[0])<=180?t[0]:t[0]-360*function(t){return t<0?-1:t>0?1:0}(t[0]))*e,n*Math.log(Math.tan(.25*Math.PI+.5*t[1]*e))];return i[0]>r&&(i[0]=r),i[0]<-r&&(i[0]=-r),i[1]>r&&(i[1]=r),i[1]<-r&&(i[1]=-r),i}function Za(t){var e=180/Math.PI,n=6378137;return[t[0]*e/n,(.5*Math.PI-2*Math.atan(Math.exp(-t[1]/n)))*e]}Na.prototype={constructor:Na,polygons:function(){var t=this.edges;return this.cells.map((function(e){var n=e.halfedges.map((function(n){return ha(e,t[n])}));return n.data=e.site.data,n}))},triangles:function(){var t=[],e=this.edges;return this.cells.forEach((function(n,r){if(o=(i=n.halfedges).length)for(var i,o,s,a,u,c,l=n.site,h=-1,f=e[i[o-1]],p=f.left===l?f.right:f.left;++h<o;)s=p,p=(f=e[i[h]]).left===l?f.right:f.left,s&&p&&r<s.index&&r<p.index&&(u=s,c=p,((a=l)[0]-c[0])*(u[1]-a[1])-(a[0]-u[0])*(c[1]-a[1])<0)&&t.push([l.data,s.data,p.data])})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,e,n){for(var r,i,o=this,s=o._found||0,a=o.cells.length;!(i=o.cells[s]);)if(++s>=a)return null;var u=t-i.site[0],c=e-i.site[1],l=u*u+c*c;do{i=o.cells[r=s],s=null,i.halfedges.forEach((function(n){var r=o.edges[n],a=r.left;if(a!==i.site&&a||(a=r.right)){var u=t-a[0],c=e-a[1],h=u*u+c*c;h<l&&(l=h,s=a.index)}}))}while(null!==s);return o._found=r,null==n||l<=n*n?i.site:null}};var Ka=Object.freeze({__proto__:null,toMercator:Va,toWgs84:qa}),Ja=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r};function Qa(t){return Array.isArray(t)?ru(t):t&&t.bbox?ru(t.bbox):[360*nu(),180*nu()]}function $a(t,e){void 0===e&&(e={}),null==t&&(t=1);for(var n=[],r=0;r<t;r++)n.push(u(Qa(e.bbox)));return d(n)}function tu(t,e){void 0===e&&(e={}),null==t&&(t=1),P(e.num_vertices)&&void 0!==e.num_vertices||(e.num_vertices=10),P(e.max_radial_length)&&void 0!==e.max_radial_length||(e.max_radial_length=10);for(var n=[],r=function(t){var r,i=[],o=Ja(Array(e.num_vertices+1)).map(Math.random);o.forEach((function(t,e,n){n[e]=e>0?t+n[e-1]:t})),o.forEach((function(t){t=2*t*Math.PI/o[o.length-1];var n=Math.random();i.push([n*(e.max_radial_length||10)*Math.sin(t),n*(e.max_radial_length||10)*Math.cos(t)])})),i[i.length-1]=i[0],i=i.map((r=Qa(e.bbox),function(t){return[t[0]+r[0],t[1]+r[1]]})),n.push(l([i]))},i=0;i<t;i++)r();return d(n)}function eu(t,e){if(void 0===e&&(e={}),!R(e=e||{}))throw new Error("options is invalid");var n=e.bbox,r=e.num_vertices,i=e.max_length,o=e.max_rotation;null==t&&(t=1),(!P(r)||void 0===r||r<2)&&(r=10),P(i)&&void 0!==i||(i=1e-4),P(o)&&void 0!==o||(o=Math.PI/8);for(var s=[],a=0;a<t;a++){for(var u=[Qa(n)],c=0;c<r-1;c++){var l=(0===c?2*Math.random()*Math.PI:Math.tan((u[c][1]-u[c-1][1])/(u[c][0]-u[c-1][0])))+(Math.random()-.5)*o*2,h=Math.random()*i;u.push([u[c][0]+h*Math.cos(l),u[c][1]+h*Math.sin(l)])}s.push(f(u))}return d(s)}function nu(){return Math.random()-.5}function ru(t){return[Math.random()*(t[2]-t[0])+t[0],Math.random()*(t[3]-t[1])+t[1]]}var iu=Object.freeze({__proto__:null,randomPosition:Qa,randomPoint:$a,randomPolygon:tu,randomLineString:eu});function ou(t,e){if(!t)throw new Error("geojson is required");if("FeatureCollection"!==t.type)throw new Error("geojson must be a FeatureCollection");if(null==e)throw new Error("filter is required");var n=[];return D(t,(function(t){cu(t.properties,e)&&n.push(t)})),d(n)}function su(t,e,n){if(!t)throw new Error("geojson is required");if("FeatureCollection"!==t.type)throw new Error("geojson must be a FeatureCollection");if(null==e)throw new Error("property is required");for(var r=uu(t,e),i=Object.keys(r),o=0;o<i.length;o++){for(var s=i[o],a=r[s],u=[],c=0;c<a.length;c++)u.push(t.features[a[c]]);n(d(u),s,o)}}function au(t,e,n,r){var i=r;return su(t,e,(function(t,e,o){i=0===o&&void 0===r?t:n(i,t,e,o)})),i}function uu(t,e){var n={};return D(t,(function(t,r){var i=t.properties||{};if(Object.prototype.hasOwnProperty.call(i,String(e))){var o=i[e];Object.prototype.hasOwnProperty.call(n,o)?n[o].push(r):n[o]=[r]}})),n}function cu(t,e){if(void 0===t)return!1;var n=typeof e;if("number"===n||"string"===n)return Object.prototype.hasOwnProperty.call(t,e);if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(!cu(t,e[r]))return!1;return!0}return lu(t,e)}function lu(t,e){for(var n=Object.keys(e),r=0;r<n.length;r++){var i=n[r];if(t[i]!==e[i])return!1}return!0}function hu(t,e){if(!e)return{};if(!e.length)return{};for(var n={},r=0;r<e.length;r++){var i=e[r];Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n}var fu=Object.freeze({__proto__:null,getCluster:ou,clusterEach:su,clusterReduce:au,createBins:uu,applyFilter:cu,propertiesContainsFilter:lu,filterProperties:hu}),pu=function(t,e){this.next=null,this.key=t,this.data=e,this.left=null,this.right=null
/**
* splaytree v3.1.0
* Fast Splay tree for Node and browser
*
* @author Alexander Milevski <info@w8r.name>
* @license MIT
* @preserve
*/};function du(t,e){return t>e?1:t<e?-1:0}function gu(t,e,n){for(var r=new pu(null,null),i=r,o=r;;){var s=n(t,e.key);if(s<0){if(null===e.left)break;if(n(t,e.left.key)<0){var a=e.left;if(e.left=a.right,a.right=e,null===(e=a).left)break}o.left=e,o=e,e=e.left}else{if(!(s>0))break;if(null===e.right)break;if(n(t,e.right.key)>0&&(a=e.right,e.right=a.left,a.left=e,null===(e=a).right))break;i.right=e,i=e,e=e.right}}return i.right=e.left,o.left=e.right,e.left=r.right,e.right=r.left,e}function yu(t,e,n,r){var i=new pu(t,e);if(null===n)return i.left=i.right=null,i;var o=r(t,(n=gu(t,n,r)).key);return o<0?(i.left=n.left,i.right=n,n.left=null):o>=0&&(i.right=n.right,i.left=n,n.right=null),i}function vu(t,e,n){var r=null,i=null;if(e){var o=n((e=gu(t,e,n)).key,t);0===o?(r=e.left,i=e.right):o<0?(i=e.right,e.right=null,r=e):(r=e.left,e.left=null,i=e)}return{left:r,right:i}}function _u(t,e,n,r,i){if(t){r(e+(n?"└── ":"├── ")+i(t)+"\n");var o=e+(n?" ":"│ ");t.left&&_u(t.left,o,!1,r,i),t.right&&_u(t.right,o,!0,r,i)}}var mu=function(){function t(t){void 0===t&&(t=du),this._root=null,this._size=0,this._comparator=t}return t.prototype.insert=function(t,e){return this._size++,this._root=yu(t,e,this._root,this._comparator)},t.prototype.add=function(t,e){var n=new pu(t,e);null===this._root&&(n.left=n.right=null,this._size++,this._root=n);var r=this._comparator,i=gu(t,this._root,r),o=r(t,i.key);return 0===o?this._root=i:(o<0?(n.left=i.left,n.right=i,i.left=null):o>0&&(n.right=i.right,n.left=i,i.right=null),this._size++,this._root=n),this._root},t.prototype.remove=function(t){this._root=this._remove(t,this._root,this._comparator)},t.prototype._remove=function(t,e,n){var r;return null===e?null:0===n(t,(e=gu(t,e,n)).key)?(null===e.left?r=e.right:(r=gu(t,e.left,n)).right=e.right,this._size--,r):e},t.prototype.pop=function(){var t=this._root;if(t){for(;t.left;)t=t.left;return this._root=gu(t.key,this._root,this._comparator),this._root=this._remove(t.key,this._root,this._comparator),{key:t.key,data:t.data}}return null},t.prototype.findStatic=function(t){for(var e=this._root,n=this._comparator;e;){var r=n(t,e.key);if(0===r)return e;e=r<0?e.left:e.right}return null},t.prototype.find=function(t){return this._root&&(this._root=gu(t,this._root,this._comparator),0!==this._comparator(t,this._root.key))?null:this._root},t.prototype.contains=function(t){for(var e=this._root,n=this._comparator;e;){var r=n(t,e.key);if(0===r)return!0;e=r<0?e.left:e.right}return!1},t.prototype.forEach=function(t,e){for(var n=this._root,r=[],i=!1;!i;)null!==n?(r.push(n),n=n.left):0!==r.length?(n=r.pop(),t.call(e,n),n=n.right):i=!0;return this},t.prototype.range=function(t,e,n,r){for(var i=[],o=this._comparator,s=this._root;0!==i.length||s;)if(s)i.push(s),s=s.left;else{if(o((s=i.pop()).key,e)>0)break;if(o(s.key,t)>=0&&n.call(r,s))return this;s=s.right}return this},t.prototype.keys=function(){var t=[];return this.forEach((function(e){var n=e.key;return t.push(n)})),t},t.prototype.values=function(){var t=[];return this.forEach((function(e){var n=e.data;return t.push(n)})),t},t.prototype.min=function(){return this._root?this.minNode(this._root).key:null},t.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},t.prototype.minNode=function(t){if(void 0===t&&(t=this._root),t)for(;t.left;)t=t.left;return t},t.prototype.maxNode=function(t){if(void 0===t&&(t=this._root),t)for(;t.right;)t=t.right;return t},t.prototype.at=function(t){for(var e=this._root,n=!1,r=0,i=[];!n;)if(e)i.push(e),e=e.left;else if(i.length>0){if(e=i.pop(),r===t)return e;r++,e=e.right}else n=!0;return null},t.prototype.next=function(t){var e=this._root,n=null;if(t.right){for(n=t.right;n.left;)n=n.left;return n}for(var r=this._comparator;e;){var i=r(t.key,e.key);if(0===i)break;i<0?(n=e,e=e.left):e=e.right}return n},t.prototype.prev=function(t){var e=this._root,n=null;if(null!==t.left){for(n=t.left;n.right;)n=n.right;return n}for(var r=this._comparator;e;){var i=r(t.key,e.key);if(0===i)break;i<0?e=e.left:(n=e,e=e.right)}return n},t.prototype.clear=function(){return this._root=null,this._size=0,this},t.prototype.toList=function(){return function(t){for(var e=t,n=[],r=!1,i=new pu(null,null),o=i;!r;)e?(n.push(e),e=e.left):n.length>0?e=(e=o=o.next=n.pop()).right:r=!0;return o.next=null,i.next}(this._root)},t.prototype.load=function(t,e,n){void 0===e&&(e=[]),void 0===n&&(n=!1);var r=t.length,i=this._comparator;if(n&&wu(t,e,0,r-1,i),null===this._root)this._root=bu(t,e,0,r),this._size=r;else{var o=function(t,e,n){for(var r=new pu(null,null),i=r,o=t,s=e;null!==o&&null!==s;)n(o.key,s.key)<0?(i.next=o,o=o.next):(i.next=s,s=s.next),i=i.next;return null!==o?i.next=o:null!==s&&(i.next=s),r.next}(this.toList(),function(t,e){for(var n=new pu(null,null),r=n,i=0;i<t.length;i++)r=r.next=new pu(t[i],e[i]);return r.next=null,n.next}(t,e),i);r=this._size+r,this._root=Eu({head:o},0,r)}return this},t.prototype.isEmpty=function(){return null===this._root},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),t.prototype.toString=function(t){void 0===t&&(t=function(t){return String(t.key)});var e=[];return _u(this._root,"",!0,(function(t){return e.push(t)}),t),e.join("")},t.prototype.update=function(t,e,n){var r=this._comparator,i=vu(t,this._root,r),o=i.left,s=i.right;r(t,e)<0?s=yu(e,n,s,r):o=yu(e,n,o,r),this._root=function(t,e,n){return null===e?t:(null===t||((e=gu(t.key,e,n)).left=t),e)}(o,s,r)},t.prototype.split=function(t){return vu(t,this._root,this._comparator)},t}();function bu(t,e,n,r){var i=r-n;if(i>0){var o=n+Math.floor(i/2),s=t[o],a=e[o],u=new pu(s,a);return u.left=bu(t,e,n,o),u.right=bu(t,e,o+1,r),u}return null}function Eu(t,e,n){var r=n-e;if(r>0){var i=e+Math.floor(r/2),o=Eu(t,e,i),s=t.head;return s.left=o,t.head=t.head.next,s.right=Eu(t,i+1,n),s}return null}function wu(t,e,n,r,i){if(!(n>=r)){for(var o=t[n+r>>1],s=n-1,a=r+1;;){do{s++}while(i(t[s],o)<0);do{a--}while(i(t[a],o)>0);if(s>=a)break;var u=t[s];t[s]=t[a],t[a]=u,u=e[s],e[s]=e[a],e[a]=u}wu(t,e,n,a,i),wu(t,e,a+1,r,i)}}function xu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ou(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Su(t,e,n){return e&&Ou(t.prototype,e),n&&Ou(t,n),t}var Cu=function(t,e){return t.ll.x<=e.x&&e.x<=t.ur.x&&t.ll.y<=e.y&&e.y<=t.ur.y},Iu=function(t,e){if(e.ur.x<t.ll.x||t.ur.x<e.ll.x||e.ur.y<t.ll.y||t.ur.y<e.ll.y)return null;var n=t.ll.x<e.ll.x?e.ll.x:t.ll.x,r=t.ur.x<e.ur.x?t.ur.x:e.ur.x;return{ll:{x:n,y:t.ll.y<e.ll.y?e.ll.y:t.ll.y},ur:{x:r,y:t.ur.y<e.ur.y?t.ur.y:e.ur.y}}},Pu=Number.EPSILON;void 0===Pu&&(Pu=Math.pow(2,-52));var Ru=Pu*Pu,Tu=function(t,e){if(-Pu<t&&t<Pu&&-Pu<e&&e<Pu)return 0;var n=t-e;return n*n<Ru*t*e?0:t<e?-1:1},Lu=function(){function t(){xu(this,t),this.reset()}return Su(t,[{key:"reset",value:function(){this.xRounder=new Mu,this.yRounder=new Mu}},{key:"round",value:function(t,e){return{x:this.xRounder.round(t),y:this.yRounder.round(e)}}}]),t}(),Mu=function(){function t(){xu(this,t),this.tree=new mu,this.round(0)}return Su(t,[{key:"round",value:function(t){var e=this.tree.add(t),n=this.tree.prev(e);if(null!==n&&0===Tu(e.key,n.key))return this.tree.remove(t),n.key;var r=this.tree.next(e);return null!==r&&0===Tu(e.key,r.key)?(this.tree.remove(t),r.key):t}}]),t}(),Nu=new Lu,Au=function(t,e){return t.x*e.y-t.y*e.x},Fu=function(t,e){return t.x*e.x+t.y*e.y},ju=function(t,e,n){var r={x:e.x-t.x,y:e.y-t.y},i={x:n.x-t.x,y:n.y-t.y},o=Au(r,i);return Tu(o,0)},Du=function(t){return Math.sqrt(Fu(t,t))},ku=function(t,e,n){var r={x:e.x-t.x,y:e.y-t.y},i={x:n.x-t.x,y:n.y-t.y};return Fu(i,r)/Du(i)/Du(r)},Gu=function(t,e,n){return 0===e.y?null:{x:t.x+e.x/e.y*(n-t.y),y:n}},Bu=function(t,e,n){return 0===e.x?null:{x:n,y:t.y+e.y/e.x*(n-t.x)}},Uu=function(){function t(e,n){xu(this,t),void 0===e.events?e.events=[this]:e.events.push(this),this.point=e,this.isLeft=n}return Su(t,null,[{key:"compare",value:function(e,n){var r=t.comparePoints(e.point,n.point);return 0!==r?r:(e.point!==n.point&&e.link(n),e.isLeft!==n.isLeft?e.isLeft?1:-1:Yu.compare(e.segment,n.segment))}},{key:"comparePoints",value:function(t,e){return t.x<e.x?-1:t.x>e.x?1:t.y<e.y?-1:t.y>e.y?1:0}}]),Su(t,[{key:"link",value:function(t){if(t.point===this.point)throw new Error("Tried to link already linked events");for(var e=t.point.events,n=0,r=e.length;n<r;n++){var i=e[n];this.point.events.push(i),i.point=this.point}this.checkForConsuming()}},{key:"checkForConsuming",value:function(){for(var t=this.point.events.length,e=0;e<t;e++){var n=this.point.events[e];if(void 0===n.segment.consumedBy)for(var r=e+1;r<t;r++){var i=this.point.events[r];void 0===i.consumedBy&&n.otherSE.point.events===i.otherSE.point.events&&n.segment.consume(i.segment)}}}},{key:"getAvailableLinkedEvents",value:function(){for(var t=[],e=0,n=this.point.events.length;e<n;e++){var r=this.point.events[e];r!==this&&!r.segment.ringOut&&r.segment.isInResult()&&t.push(r)}return t}},{key:"getLeftmostComparator",value:function(t){var e=this,n=new Map,r=function(r){var i,o,s,a,u,c=r.otherSE;n.set(r,{sine:(i=e.point,o=t.point,s=c.point,a={x:o.x-i.x,y:o.y-i.y},u={x:s.x-i.x,y:s.y-i.y},Au(u,a)/Du(u)/Du(a)),cosine:ku(e.point,t.point,c.point)})};return function(t,e){n.has(t)||r(t),n.has(e)||r(e);var i=n.get(t),o=i.sine,s=i.cosine,a=n.get(e),u=a.sine,c=a.cosine;return o>=0&&u>=0?s<c?1:s>c?-1:0:o<0&&u<0?s<c?-1:s>c?1:0:u<o?-1:u>o?1:0}}}]),t}(),zu=0,Yu=function(){function t(e,n,r,i){xu(this,t),this.id=++zu,this.leftSE=e,e.segment=this,e.otherSE=n,this.rightSE=n,n.segment=this,n.otherSE=e,this.rings=r,this.windings=i}return Su(t,null,[{key:"compare",value:function(t,e){var n=t.leftSE.point.x,r=e.leftSE.point.x,i=t.rightSE.point.x,o=e.rightSE.point.x;if(o<n)return 1;if(i<r)return-1;var s=t.leftSE.point.y,a=e.leftSE.point.y,u=t.rightSE.point.y,c=e.rightSE.point.y;if(n<r){if(a<s&&a<u)return 1;if(a>s&&a>u)return-1;var l=t.comparePoint(e.leftSE.point);if(l<0)return 1;if(l>0)return-1;var h=e.comparePoint(t.rightSE.point);return 0!==h?h:-1}if(n>r){if(s<a&&s<c)return-1;if(s>a&&s>c)return 1;var f=e.comparePoint(t.leftSE.point);if(0!==f)return f;var p=t.comparePoint(e.rightSE.point);return p<0?1:p>0?-1:1}if(s<a)return-1;if(s>a)return 1;if(i<o){var d=e.comparePoint(t.rightSE.point);if(0!==d)return d}if(i>o){var g=t.comparePoint(e.rightSE.point);if(g<0)return 1;if(g>0)return-1}if(i!==o){var y=u-s,v=i-n,_=c-a,m=o-r;if(y>v&&_<m)return 1;if(y<v&&_>m)return-1}return i>o?1:i<o||u<c?-1:u>c?1:t.id<e.id?-1:t.id>e.id?1:0}}]),Su(t,[{key:"replaceRightSE",value:function(t){this.rightSE=t,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var t=this.leftSE.point.y,e=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:t<e?t:e},ur:{x:this.rightSE.point.x,y:t>e?t:e}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function(t){return t.x===this.leftSE.point.x&&t.y===this.leftSE.point.y||t.x===this.rightSE.point.x&&t.y===this.rightSE.point.y}},{key:"comparePoint",value:function(t){if(this.isAnEndpoint(t))return 0;var e=this.leftSE.point,n=this.rightSE.point,r=this.vector();if(e.x===n.x)return t.x===e.x?0:t.x<e.x?1:-1;var i=(t.y-e.y)/r.y,o=e.x+i*r.x;if(t.x===o)return 0;var s=(t.x-e.x)/r.x,a=e.y+s*r.y;return t.y===a?0:t.y<a?-1:1}},{key:"getIntersection",value:function(t){var e=this.bbox(),n=t.bbox(),r=Iu(e,n);if(null===r)return null;var i=this.leftSE.point,o=this.rightSE.point,s=t.leftSE.point,a=t.rightSE.point,u=Cu(e,s)&&0===this.comparePoint(s),c=Cu(n,i)&&0===t.comparePoint(i),l=Cu(e,a)&&0===this.comparePoint(a),h=Cu(n,o)&&0===t.comparePoint(o);if(c&&u)return h&&!l?o:!h&&l?a:null;if(c)return l&&i.x===a.x&&i.y===a.y?null:i;if(u)return h&&o.x===s.x&&o.y===s.y?null:s;if(h&&l)return null;if(h)return o;if(l)return a;var f=function(t,e,n,r){if(0===e.x)return Bu(n,r,t.x);if(0===r.x)return Bu(t,e,n.x);if(0===e.y)return Gu(n,r,t.y);if(0===r.y)return Gu(t,e,n.y);var i=Au(e,r);if(0==i)return null;var o={x:n.x-t.x,y:n.y-t.y},s=Au(o,e)/i,a=Au(o,r)/i;return{x:(t.x+a*e.x+(n.x+s*r.x))/2,y:(t.y+a*e.y+(n.y+s*r.y))/2}}(i,this.vector(),s,t.vector());return null===f?null:Cu(r,f)?Nu.round(f.x,f.y):null}},{key:"split",value:function(e){var n=[],r=void 0!==e.events,i=new Uu(e,!0),o=new Uu(e,!1),s=this.rightSE;this.replaceRightSE(o),n.push(o),n.push(i);var a=new t(i,s,this.rings.slice(),this.windings.slice());return Uu.comparePoints(a.leftSE.point,a.rightSE.point)>0&&a.swapEvents(),Uu.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),r&&(i.checkForConsuming(),o.checkForConsuming()),n}},{key:"swapEvents",value:function(){var t=this.rightSE;this.rightSE=this.leftSE,this.leftSE=t,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var e=0,n=this.windings.length;e<n;e++)this.windings[e]*=-1}},{key:"consume",value:function(e){for(var n=this,r=e;n.consumedBy;)n=n.consumedBy;for(;r.consumedBy;)r=r.consumedBy;var i=t.compare(n,r);if(0!==i){if(i>0){var o=n;n=r,r=o}if(n.prev===r){var s=n;n=r,r=s}for(var a=0,u=r.rings.length;a<u;a++){var c=r.rings[a],l=r.windings[a],h=n.rings.indexOf(c);-1===h?(n.rings.push(c),n.windings.push(l)):n.windings[h]+=l}r.rings=null,r.windings=null,r.consumedBy=n,r.leftSE.consumedBy=n.leftSE,r.rightSE.consumedBy=n.rightSE}}},{key:"prevInResult",value:function(){return void 0!==this._prevInResult||(this.prev?this.prev.isInResult()?this._prevInResult=this.prev:this._prevInResult=this.prev.prevInResult():this._prevInResult=null),this._prevInResult}},{key:"beforeState",value:function(){if(void 0!==this._beforeState)return this._beforeState;if(this.prev){var t=this.prev.consumedBy||this.prev;this._beforeState=t.afterState()}else this._beforeState={rings:[],windings:[],multiPolys:[]};return this._beforeState}},{key:"afterState",value:function(){if(void 0!==this._afterState)return this._afterState;var t=this.beforeState();this._afterState={rings:t.rings.slice(0),windings:t.windings.slice(0),multiPolys:[]};for(var e=this._afterState.rings,n=this._afterState.windings,r=this._afterState.multiPolys,i=0,o=this.rings.length;i<o;i++){var s=this.rings[i],a=this.windings[i],u=e.indexOf(s);-1===u?(e.push(s),n.push(a)):n[u]+=a}for(var c=[],l=[],h=0,f=e.length;h<f;h++)if(0!==n[h]){var p=e[h],d=p.poly;if(-1===l.indexOf(d))if(p.isExterior)c.push(d);else{-1===l.indexOf(d)&&l.push(d);var g=c.indexOf(p.poly);-1!==g&&c.splice(g,1)}}for(var y=0,v=c.length;y<v;y++){var _=c[y].multiPoly;-1===r.indexOf(_)&&r.push(_)}return this._afterState}},{key:"isInResult",value:function(){if(this.consumedBy)return!1;if(void 0!==this._isInResult)return this._isInResult;var t=this.beforeState().multiPolys,e=this.afterState().multiPolys;switch($u.type){case"union":var n=0===t.length,r=0===e.length;this._isInResult=n!==r;break;case"intersection":var i,o;t.length<e.length?(i=t.length,o=e.length):(i=e.length,o=t.length),this._isInResult=o===$u.numMultiPolys&&i<o;break;case"xor":var s=Math.abs(t.length-e.length);this._isInResult=s%2==1;break;case"difference":var a=function(t){return 1===t.length&&t[0].isSubject};this._isInResult=a(t)!==a(e);break;default:throw new Error("Unrecognized operation type found ".concat($u.type))}return this._isInResult}}],[{key:"fromRing",value:function(e,n,r){var i,o,s,a=Uu.comparePoints(e,n);if(a<0)i=e,o=n,s=1;else{if(!(a>0))throw new Error("Tried to create degenerate segment at [".concat(e.x,", ").concat(e.y,"]"));i=n,o=e,s=-1}return new t(new Uu(i,!0),new Uu(o,!1),[r],[s])}}]),t}(),Xu=function(){function t(e,n,r){if(xu(this,t),!Array.isArray(e)||0===e.length)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=n,this.isExterior=r,this.segments=[],"number"!=typeof e[0][0]||"number"!=typeof e[0][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var i=Nu.round(e[0][0],e[0][1]);this.bbox={ll:{x:i.x,y:i.y},ur:{x:i.x,y:i.y}};for(var o=i,s=1,a=e.length;s<a;s++){if("number"!=typeof e[s][0]||"number"!=typeof e[s][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var u=Nu.round(e[s][0],e[s][1]);u.x===o.x&&u.y===o.y||(this.segments.push(Yu.fromRing(o,u,this)),u.x<this.bbox.ll.x&&(this.bbox.ll.x=u.x),u.y<this.bbox.ll.y&&(this.bbox.ll.y=u.y),u.x>this.bbox.ur.x&&(this.bbox.ur.x=u.x),u.y>this.bbox.ur.y&&(this.bbox.ur.y=u.y),o=u)}i.x===o.x&&i.y===o.y||this.segments.push(Yu.fromRing(o,i,this))}return Su(t,[{key:"getSweepEvents",value:function(){for(var t=[],e=0,n=this.segments.length;e<n;e++){var r=this.segments[e];t.push(r.leftSE),t.push(r.rightSE)}return t}}]),t}(),Vu=function(){function t(e,n){if(xu(this,t),!Array.isArray(e))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");this.exteriorRing=new Xu(e[0],this,!0),this.bbox={ll:{x:this.exteriorRing.bbox.ll.x,y:this.exteriorRing.bbox.ll.y},ur:{x:this.exteriorRing.bbox.ur.x,y:this.exteriorRing.bbox.ur.y}},this.interiorRings=[];for(var r=1,i=e.length;r<i;r++){var o=new Xu(e[r],this,!1);o.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=o.bbox.ll.x),o.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=o.bbox.ll.y),o.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=o.bbox.ur.x),o.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=o.bbox.ur.y),this.interiorRings.push(o)}this.multiPoly=n}return Su(t,[{key:"getSweepEvents",value:function(){for(var t=this.exteriorRing.getSweepEvents(),e=0,n=this.interiorRings.length;e<n;e++)for(var r=this.interiorRings[e].getSweepEvents(),i=0,o=r.length;i<o;i++)t.push(r[i]);return t}}]),t}(),qu=function(){function t(e,n){if(xu(this,t),!Array.isArray(e))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");try{"number"==typeof e[0][0][0]&&(e=[e])}catch(t){}this.polys=[],this.bbox={ll:{x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY},ur:{x:Number.NEGATIVE_INFINITY,y:Number.NEGATIVE_INFINITY}};for(var r=0,i=e.length;r<i;r++){var o=new Vu(e[r],this);o.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=o.bbox.ll.x),o.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=o.bbox.ll.y),o.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=o.bbox.ur.x),o.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=o.bbox.ur.y),this.polys.push(o)}this.isSubject=n}return Su(t,[{key:"getSweepEvents",value:function(){for(var t=[],e=0,n=this.polys.length;e<n;e++)for(var r=this.polys[e].getSweepEvents(),i=0,o=r.length;i<o;i++)t.push(r[i]);return t}}]),t}(),Wu=function(){function t(e){xu(this,t),this.events=e;for(var n=0,r=e.length;n<r;n++)e[n].segment.ringOut=this;this.poly=null}return Su(t,null,[{key:"factory",value:function(e){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];if(o.isInResult()&&!o.ringOut){for(var s=null,a=o.leftSE,u=o.rightSE,c=[a],l=a.point,h=[];s=a,a=u,c.push(a),a.point!==l;)for(;;){var f=a.getAvailableLinkedEvents();if(0===f.length){var p=c[0].point,d=c[c.length-1].point;throw new Error("Unable to complete output ring starting at [".concat(p.x,",")+" ".concat(p.y,"]. Last matching segment found ends at")+" [".concat(d.x,", ").concat(d.y,"]."))}if(1===f.length){u=f[0].otherSE;break}for(var g=null,y=0,v=h.length;y<v;y++)if(h[y].point===a.point){g=y;break}if(null===g){h.push({index:c.length,point:a.point});var _=a.getLeftmostComparator(s);u=f.sort(_)[0].otherSE;break}var m=h.splice(g)[0],b=c.splice(m.index);b.unshift(b[0].otherSE),n.push(new t(b.reverse()))}n.push(new t(c))}}return n}}]),Su(t,[{key:"getGeom",value:function(){for(var t=this.events[0].point,e=[t],n=1,r=this.events.length-1;n<r;n++){var i=this.events[n].point,o=this.events[n+1].point;0!==ju(i,t,o)&&(e.push(i),t=i)}if(1===e.length)return null;var s=e[0],a=e[1];0===ju(s,t,a)&&e.shift(),e.push(e[0]);for(var u=this.isExteriorRing()?1:-1,c=this.isExteriorRing()?0:e.length-1,l=this.isExteriorRing()?e.length:-1,h=[],f=c;f!=l;f+=u)h.push([e[f].x,e[f].y]);return h}},{key:"isExteriorRing",value:function(){if(void 0===this._isExteriorRing){var t=this.enclosingRing();this._isExteriorRing=!t||!t.isExteriorRing()}return this._isExteriorRing}},{key:"enclosingRing",value:function(){return void 0===this._enclosingRing&&(this._enclosingRing=this._calcEnclosingRing()),this._enclosingRing}},{key:"_calcEnclosingRing",value:function(){for(var t=this.events[0],e=1,n=this.events.length;e<n;e++){var r=this.events[e];Uu.compare(t,r)>0&&(t=r)}for(var i=t.segment.prevInResult(),o=i?i.prevInResult():null;;){if(!i)return null;if(!o)return i.ringOut;if(o.ringOut!==i.ringOut)return o.ringOut.enclosingRing()!==i.ringOut?i.ringOut:i.ringOut.enclosingRing();i=o.prevInResult(),o=i?i.prevInResult():null}}}]),t}(),Hu=function(){function t(e){xu(this,t),this.exteriorRing=e,e.poly=this,this.interiorRings=[]}return Su(t,[{key:"addInterior",value:function(t){this.interiorRings.push(t),t.poly=this}},{key:"getGeom",value:function(){var t=[this.exteriorRing.getGeom()];if(null===t[0])return null;for(var e=0,n=this.interiorRings.length;e<n;e++){var r=this.interiorRings[e].getGeom();null!==r&&t.push(r)}return t}}]),t}(),Zu=function(){function t(e){xu(this,t),this.rings=e,this.polys=this._composePolys(e)}return Su(t,[{key:"getGeom",value:function(){for(var t=[],e=0,n=this.polys.length;e<n;e++){var r=this.polys[e].getGeom();null!==r&&t.push(r)}return t}},{key:"_composePolys",value:function(t){for(var e=[],n=0,r=t.length;n<r;n++){var i=t[n];if(!i.poly)if(i.isExteriorRing())e.push(new Hu(i));else{var o=i.enclosingRing();o.poly||e.push(new Hu(o)),o.poly.addInterior(i)}}return e}}]),t}(),Ku=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yu.compare;xu(this,t),this.queue=e,this.tree=new mu(n),this.segments=[]}return Su(t,[{key:"process",value:function(t){var e=t.segment,n=[];if(t.consumedBy)return t.isLeft?this.queue.remove(t.otherSE):this.tree.remove(e),n;var r=t.isLeft?this.tree.insert(e):this.tree.find(e);if(!r)throw new Error("Unable to find segment #".concat(e.id," ")+"[".concat(e.leftSE.point.x,", ").concat(e.leftSE.point.y,"] -> ")+"[".concat(e.rightSE.point.x,", ").concat(e.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var i=r,o=r,s=void 0,a=void 0;void 0===s;)null===(i=this.tree.prev(i))?s=null:void 0===i.key.consumedBy&&(s=i.key);for(;void 0===a;)null===(o=this.tree.next(o))?a=null:void 0===o.key.consumedBy&&(a=o.key);if(t.isLeft){var u=null;if(s){var c=s.getIntersection(e);if(null!==c&&(e.isAnEndpoint(c)||(u=c),!s.isAnEndpoint(c)))for(var l=this._splitSafely(s,c),h=0,f=l.length;h<f;h++)n.push(l[h])}var p=null;if(a){var d=a.getIntersection(e);if(null!==d&&(e.isAnEndpoint(d)||(p=d),!a.isAnEndpoint(d)))for(var g=this._splitSafely(a,d),y=0,v=g.length;y<v;y++)n.push(g[y])}if(null!==u||null!==p){var _=null;_=null===u?p:null===p||Uu.comparePoints(u,p)<=0?u:p,this.queue.remove(e.rightSE),n.push(e.rightSE);for(var m=e.split(_),b=0,E=m.length;b<E;b++)n.push(m[b])}n.length>0?(this.tree.remove(e),n.push(t)):(this.segments.push(e),e.prev=s)}else{if(s&&a){var w=s.getIntersection(a);if(null!==w){if(!s.isAnEndpoint(w))for(var x=this._splitSafely(s,w),O=0,S=x.length;O<S;O++)n.push(x[O]);if(!a.isAnEndpoint(w))for(var C=this._splitSafely(a,w),I=0,P=C.length;I<P;I++)n.push(C[I])}}this.tree.remove(e)}return n}},{key:"_splitSafely",value:function(t,e){this.tree.remove(t);var n=t.rightSE;this.queue.remove(n);var r=t.split(e);return r.push(n),void 0===t.consumedBy&&this.tree.insert(t),r}}]),t}(),Ju="undefined"!=typeof t&&Object({NODE_ENV:"production",BASE_URL:""}).POLYGON_CLIPPING_MAX_QUEUE_SIZE||1e6,Qu="undefined"!=typeof t&&Object({NODE_ENV:"production",BASE_URL:""}).POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS||1e6,$u=new(function(){function t(){xu(this,t)}return Su(t,[{key:"run",value:function(t,e,n){$u.type=t,Nu.reset();for(var r=[new qu(e,!0)],i=0,o=n.length;i<o;i++)r.push(new qu(n[i],!1));if($u.numMultiPolys=r.length,"difference"===$u.type)for(var s=r[0],a=1;a<r.length;)null!==Iu(r[a].bbox,s.bbox)?a++:r.splice(a,1);if("intersection"===$u.type)for(var u=0,c=r.length;u<c;u++)for(var l=r[u],h=u+1,f=r.length;h<f;h++)if(null===Iu(l.bbox,r[h].bbox))return[];for(var p=new mu(Uu.compare),d=0,g=r.length;d<g;d++)for(var y=r[d].getSweepEvents(),v=0,_=y.length;v<_;v++)if(p.insert(y[v]),p.size>Ju)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var m=new Ku(p),b=p.size,E=p.pop();E;){var w=E.key;if(p.size===b){var x=w.segment;throw new Error("Unable to pop() ".concat(w.isLeft?"left":"right"," SweepEvent ")+"[".concat(w.point.x,", ").concat(w.point.y,"] from segment #").concat(x.id," ")+"[".concat(x.leftSE.point.x,", ").concat(x.leftSE.point.y,"] -> ")+"[".concat(x.rightSE.point.x,", ").concat(x.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(p.size>Ju)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(m.segments.length>Qu)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var O=m.process(w),S=0,C=O.length;S<C;S++){var I=O[S];void 0===I.consumedBy&&p.insert(I)}b=p.size,E=p.pop()}Nu.reset();var P=Wu.factory(m.segments);return new Zu(P).getGeom()}}]),t}()),tc={union:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return $u.run("union",t,n)},intersection:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return $u.run("intersection",t,n)},xor:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return $u.run("xor",t,n)},difference:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return $u.run("difference",t,n)}};"fill"in Array.prototype||Object.defineProperty(Array.prototype,"fill",{configurable:!0,value:function(t){if(null==this)throw new TypeError(this+" is not an object");var e=Object(this),n=Math.max(Math.min(e.length,9007199254740991),0)||0,r=1 in arguments&&parseInt(Number(arguments[1]),10)||0;r=r<0?Math.max(n+r,0):Math.min(r,n);var i=2 in arguments&&void 0!==arguments[2]?parseInt(Number(arguments[2]),10)||0:n;for(i=i<0?Math.max(n+arguments[2],0):Math.min(i,n);r<i;)e[r]=t,++r;return e},writable:!0}),Number.isFinite=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)},Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},Number.parseFloat=Number.parseFloat||parseFloat,Number.isNaN=Number.isNaN||function(t){return t!=t},Math.trunc=Math.trunc||function(t){return t<0?Math.ceil(t):Math.floor(t)};var ec=function(){};ec.prototype.interfaces_=function(){return[]},ec.prototype.getClass=function(){return ec},ec.prototype.equalsWithTolerance=function(t,e,n){return Math.abs(t-e)<=n};var nc=function(t){function e(e){t.call(this,e),this.name="IllegalArgumentException",this.message=e,this.stack=(new t).stack}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),rc=function(){},ic={MAX_VALUE:{configurable:!0}};rc.isNaN=function(t){return Number.isNaN(t)},rc.doubleToLongBits=function(t){return t},rc.longBitsToDouble=function(t){return t},rc.isInfinite=function(t){return!Number.isFinite(t)},ic.MAX_VALUE.get=function(){return Number.MAX_VALUE},Object.defineProperties(rc,ic);var oc=function(){},sc=function(){},ac=function(){};function uc(){}var cc=function t(){if(this.x=null,this.y=null,this.z=null,0===arguments.length)this.x=0,this.y=0,this.z=t.NULL_ORDINATE;else if(1===arguments.length){var e=arguments[0];this.x=e.x,this.y=e.y,this.z=e.z}else 2===arguments.length?(this.x=arguments[0],this.y=arguments[1],this.z=t.NULL_ORDINATE):3===arguments.length&&(this.x=arguments[0],this.y=arguments[1],this.z=arguments[2])},lc={DimensionalComparator:{configurable:!0},serialVersionUID:{configurable:!0},NULL_ORDINATE:{configurable:!0},X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0}};cc.prototype.setOrdinate=function(t,e){switch(t){case cc.X:this.x=e;break;case cc.Y:this.y=e;break;case cc.Z:this.z=e;break;default:throw new nc("Invalid ordinate index: "+t)}},cc.prototype.equals2D=function(){if(1===arguments.length){var t=arguments[0];return this.x===t.x&&this.y===t.y}if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!ec.equalsWithTolerance(this.x,e.x,n)&&!!ec.equalsWithTolerance(this.y,e.y,n)}},cc.prototype.getOrdinate=function(t){switch(t){case cc.X:return this.x;case cc.Y:return this.y;case cc.Z:return this.z}throw new nc("Invalid ordinate index: "+t)},cc.prototype.equals3D=function(t){return this.x===t.x&&this.y===t.y&&(this.z===t.z||rc.isNaN(this.z))&&rc.isNaN(t.z)},cc.prototype.equals=function(t){return t instanceof cc&&this.equals2D(t)},cc.prototype.equalInZ=function(t,e){return ec.equalsWithTolerance(this.z,t.z,e)},cc.prototype.compareTo=function(t){var e=t;return this.x<e.x?-1:this.x>e.x?1:this.y<e.y?-1:this.y>e.y?1:0},cc.prototype.clone=function(){},cc.prototype.copy=function(){return new cc(this)},cc.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+")"},cc.prototype.distance3D=function(t){var e=this.x-t.x,n=this.y-t.y,r=this.z-t.z;return Math.sqrt(e*e+n*n+r*r)},cc.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},cc.prototype.hashCode=function(){var t=17;return 37*(t=37*t+cc.hashCode(this.x))+cc.hashCode(this.y)},cc.prototype.setCoordinate=function(t){this.x=t.x,this.y=t.y,this.z=t.z},cc.prototype.interfaces_=function(){return[oc,sc,uc]},cc.prototype.getClass=function(){return cc},cc.hashCode=function(){if(1===arguments.length){var t=arguments[0],e=rc.doubleToLongBits(t);return Math.trunc((e^e)>>>32)}},lc.DimensionalComparator.get=function(){return hc},lc.serialVersionUID.get=function(){return 0x5cbf2c235c7e5800},lc.NULL_ORDINATE.get=function(){return rc.NaN},lc.X.get=function(){return 0},lc.Y.get=function(){return 1},lc.Z.get=function(){return 2},Object.defineProperties(cc,lc);var hc=function(t){if(this._dimensionsToTest=2,0===arguments.length);else if(1===arguments.length){var e=arguments[0];if(2!==e&&3!==e)throw new nc("only 2 or 3 dimensions may be specified");this._dimensionsToTest=e}};hc.prototype.compare=function(t,e){var n=t,r=e,i=hc.compare(n.x,r.x);if(0!==i)return i;var o=hc.compare(n.y,r.y);return 0!==o?o:this._dimensionsToTest<=2?0:hc.compare(n.z,r.z)},hc.prototype.interfaces_=function(){return[ac]},hc.prototype.getClass=function(){return hc},hc.compare=function(t,e){return t<e?-1:t>e?1:rc.isNaN(t)?rc.isNaN(e)?0:-1:rc.isNaN(e)?1:0};var fc=function(){};fc.prototype.create=function(){},fc.prototype.interfaces_=function(){return[]},fc.prototype.getClass=function(){return fc};var pc=function(){},dc={INTERIOR:{configurable:!0},BOUNDARY:{configurable:!0},EXTERIOR:{configurable:!0},NONE:{configurable:!0}};pc.prototype.interfaces_=function(){return[]},pc.prototype.getClass=function(){return pc},pc.toLocationSymbol=function(t){switch(t){case pc.EXTERIOR:return"e";case pc.BOUNDARY:return"b";case pc.INTERIOR:return"i";case pc.NONE:return"-"}throw new nc("Unknown location value: "+t)},dc.INTERIOR.get=function(){return 0},dc.BOUNDARY.get=function(){return 1},dc.EXTERIOR.get=function(){return 2},dc.NONE.get=function(){return-1},Object.defineProperties(pc,dc);var gc=function(t,e){return t.interfaces_&&t.interfaces_().indexOf(e)>-1},yc=function(){},vc={LOG_10:{configurable:!0}};yc.prototype.interfaces_=function(){return[]},yc.prototype.getClass=function(){return yc},yc.log10=function(t){var e=Math.log(t);return rc.isInfinite(e)||rc.isNaN(e)?e:e/yc.LOG_10},yc.min=function(t,e,n,r){var i=t;return e<i&&(i=e),n<i&&(i=n),r<i&&(i=r),i},yc.clamp=function(){if("number"==typeof arguments[2]&&"number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1],n=arguments[2];return t<e?e:t>n?n:t}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var r=arguments[0],i=arguments[1],o=arguments[2];return r<i?i:r>o?o:r}},yc.wrap=function(t,e){return t<0?e- -t%e:t%e},yc.max=function(){if(3===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2],r=t;return e>r&&(r=e),n>r&&(r=n),r}if(4===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3],u=i;return o>u&&(u=o),s>u&&(u=s),a>u&&(u=a),u}},yc.average=function(t,e){return(t+e)/2},vc.LOG_10.get=function(){return Math.log(10)},Object.defineProperties(yc,vc);var _c=function(t){this.str=t};_c.prototype.append=function(t){this.str+=t},_c.prototype.setCharAt=function(t,e){this.str=this.str.substr(0,t)+e+this.str.substr(t+1)},_c.prototype.toString=function(t){return this.str};var mc=function(t){this.value=t};mc.prototype.intValue=function(){return this.value},mc.prototype.compareTo=function(t){return this.value<t?-1:this.value>t?1:0},mc.isNaN=function(t){return Number.isNaN(t)};var bc=function(){};bc.isWhitespace=function(t){return t<=32&&t>=0||127===t},bc.toUpperCase=function(t){return t.toUpperCase()};var Ec=function t(){if(this._hi=0,this._lo=0,0===arguments.length)this.init(0);else if(1===arguments.length){if("number"==typeof arguments[0]){var e=arguments[0];this.init(e)}else if(arguments[0]instanceof t){var n=arguments[0];this.init(n)}else if("string"==typeof arguments[0]){var r=arguments[0];t.call(this,t.parse(r))}}else if(2===arguments.length){var i=arguments[0],o=arguments[1];this.init(i,o)}},wc={PI:{configurable:!0},TWO_PI:{configurable:!0},PI_2:{configurable:!0},E:{configurable:!0},NaN:{configurable:!0},EPS:{configurable:!0},SPLIT:{configurable:!0},MAX_PRINT_DIGITS:{configurable:!0},TEN:{configurable:!0},ONE:{configurable:!0},SCI_NOT_EXPONENT_CHAR:{configurable:!0},SCI_NOT_ZERO:{configurable:!0}};Ec.prototype.le=function(t){return(this._hi<t._hi||this._hi===t._hi)&&this._lo<=t._lo},Ec.prototype.extractSignificantDigits=function(t,e){var n=this.abs(),r=Ec.magnitude(n._hi),i=Ec.TEN.pow(r);(n=n.divide(i)).gt(Ec.TEN)?(n=n.divide(Ec.TEN),r+=1):n.lt(Ec.ONE)&&(n=n.multiply(Ec.TEN),r-=1);for(var o=r+1,s=new _c,a=Ec.MAX_PRINT_DIGITS-1,u=0;u<=a;u++){t&&u===o&&s.append(".");var c=Math.trunc(n._hi);if(c<0)break;var l=!1,h=0;c>9?(l=!0,h="9"):h="0"+c,s.append(h),n=n.subtract(Ec.valueOf(c)).multiply(Ec.TEN),l&&n.selfAdd(Ec.TEN);var f=!0,p=Ec.magnitude(n._hi);if(p<0&&Math.abs(p)>=a-u&&(f=!1),!f)break}return e[0]=r,s.toString()},Ec.prototype.sqr=function(){return this.multiply(this)},Ec.prototype.doubleValue=function(){return this._hi+this._lo},Ec.prototype.subtract=function(){if(arguments[0]instanceof Ec){var t=arguments[0];return this.add(t.negate())}if("number"==typeof arguments[0]){var e=arguments[0];return this.add(-e)}},Ec.prototype.equals=function(){if(1===arguments.length){var t=arguments[0];return this._hi===t._hi&&this._lo===t._lo}},Ec.prototype.isZero=function(){return 0===this._hi&&0===this._lo},Ec.prototype.selfSubtract=function(){if(arguments[0]instanceof Ec){var t=arguments[0];return this.isNaN()?this:this.selfAdd(-t._hi,-t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.isNaN()?this:this.selfAdd(-e,0)}},Ec.prototype.getSpecialNumberString=function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null},Ec.prototype.min=function(t){return this.le(t)?this:t},Ec.prototype.selfDivide=function(){if(1===arguments.length){if(arguments[0]instanceof Ec){var t=arguments[0];return this.selfDivide(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfDivide(e,0)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1],i=null,o=null,s=null,a=null,u=null,c=null,l=null,h=null;return u=this._hi/n,h=(i=(c=Ec.SPLIT*u)-(i=c-u))*(s=(h=Ec.SPLIT*n)-(s=h-n))-(l=u*n)+i*(a=n-s)+(o=u-i)*s+o*a,h=u+(c=(this._hi-l-h+this._lo-u*r)/n),this._hi=h,this._lo=u-h+c,this}},Ec.prototype.dump=function(){return"DD<"+this._hi+", "+this._lo+">"},Ec.prototype.divide=function(){if(arguments[0]instanceof Ec){var t=arguments[0],e=null,n=null,r=null,i=null,o=null,s=null,a=null,u=null;n=(o=this._hi/t._hi)-(e=(s=Ec.SPLIT*o)-(e=s-o)),u=e*(r=(u=Ec.SPLIT*t._hi)-(r=u-t._hi))-(a=o*t._hi)+e*(i=t._hi-r)+n*r+n*i;var c=u=o+(s=(this._hi-a-u+this._lo-o*t._lo)/t._hi),l=o-u+s;return new Ec(c,l)}if("number"==typeof arguments[0]){var h=arguments[0];return rc.isNaN(h)?Ec.createNaN():Ec.copy(this).selfDivide(h,0)}},Ec.prototype.ge=function(t){return(this._hi>t._hi||this._hi===t._hi)&&this._lo>=t._lo},Ec.prototype.pow=function(t){if(0===t)return Ec.valueOf(1);var e=new Ec(this),n=Ec.valueOf(1),r=Math.abs(t);if(r>1)for(;r>0;)r%2==1&&n.selfMultiply(e),(r/=2)>0&&(e=e.sqr());else n=e;return t<0?n.reciprocal():n},Ec.prototype.ceil=function(){if(this.isNaN())return Ec.NaN;var t=Math.ceil(this._hi),e=0;return t===this._hi&&(e=Math.ceil(this._lo)),new Ec(t,e)},Ec.prototype.compareTo=function(t){var e=t;return this._hi<e._hi?-1:this._hi>e._hi?1:this._lo<e._lo?-1:this._lo>e._lo?1:0},Ec.prototype.rint=function(){return this.isNaN()?this:this.add(.5).floor()},Ec.prototype.setValue=function(){if(arguments[0]instanceof Ec){var t=arguments[0];return this.init(t),this}if("number"==typeof arguments[0]){var e=arguments[0];return this.init(e),this}},Ec.prototype.max=function(t){return this.ge(t)?this:t},Ec.prototype.sqrt=function(){if(this.isZero())return Ec.valueOf(0);if(this.isNegative())return Ec.NaN;var t=1/Math.sqrt(this._hi),e=this._hi*t,n=Ec.valueOf(e),r=this.subtract(n.sqr())._hi*(.5*t);return n.add(r)},Ec.prototype.selfAdd=function(){if(1===arguments.length){if(arguments[0]instanceof Ec){var t=arguments[0];return this.selfAdd(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0],n=null,r=null,i=null,o=null,s=null,a=null;return o=(i=this._hi+e)-(s=i-this._hi),r=(a=(o=e-s+(this._hi-o))+this._lo)+(i-(n=i+a)),this._hi=n+r,this._lo=r+(n-this._hi),this}}else if(2===arguments.length){var u=arguments[0],c=arguments[1],l=null,h=null,f=null,p=null,d=null,g=null,y=null;p=this._hi+u,h=this._lo+c,d=p-(g=p-this._hi),f=h-(y=h-this._lo);var v=(l=p+(g=(d=u-g+(this._hi-d))+h))+(g=(f=c-y+(this._lo-f))+(g+(p-l))),_=g+(l-v);return this._hi=v,this._lo=_,this}},Ec.prototype.selfMultiply=function(){if(1===arguments.length){if(arguments[0]instanceof Ec){var t=arguments[0];return this.selfMultiply(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfMultiply(e,0)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1],i=null,o=null,s=null,a=null,u=null,c=null;i=(u=Ec.SPLIT*this._hi)-this._hi,c=Ec.SPLIT*n,i=u-i,o=this._hi-i,s=c-n;var l=(u=this._hi*n)+(c=i*(s=c-s)-u+i*(a=n-s)+o*s+o*a+(this._hi*r+this._lo*n)),h=c+(i=u-l);return this._hi=l,this._lo=h,this}},Ec.prototype.selfSqr=function(){return this.selfMultiply(this)},Ec.prototype.floor=function(){if(this.isNaN())return Ec.NaN;var t=Math.floor(this._hi),e=0;return t===this._hi&&(e=Math.floor(this._lo)),new Ec(t,e)},Ec.prototype.negate=function(){return this.isNaN()?this:new Ec(-this._hi,-this._lo)},Ec.prototype.clone=function(){},Ec.prototype.multiply=function(){if(arguments[0]instanceof Ec){var t=arguments[0];return t.isNaN()?Ec.createNaN():Ec.copy(this).selfMultiply(t)}if("number"==typeof arguments[0]){var e=arguments[0];return rc.isNaN(e)?Ec.createNaN():Ec.copy(this).selfMultiply(e,0)}},Ec.prototype.isNaN=function(){return rc.isNaN(this._hi)},Ec.prototype.intValue=function(){return Math.trunc(this._hi)},Ec.prototype.toString=function(){var t=Ec.magnitude(this._hi);return t>=-3&&t<=20?this.toStandardNotation():this.toSciNotation()},Ec.prototype.toStandardNotation=function(){var t=this.getSpecialNumberString();if(null!==t)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!0,e),r=e[0]+1,i=n;if("."===n.charAt(0))i="0"+n;else if(r<0)i="0."+Ec.stringOfChar("0",-r)+n;else if(-1===n.indexOf(".")){var o=r-n.length;i=n+Ec.stringOfChar("0",o)+".0"}return this.isNegative()?"-"+i:i},Ec.prototype.reciprocal=function(){var t,e,n,r,i=null,o=null,s=null,a=null;t=(n=1/this._hi)-(i=(s=Ec.SPLIT*n)-(i=s-n)),o=(a=Ec.SPLIT*this._hi)-this._hi;var u=n+(s=(1-(r=n*this._hi)-(a=i*(o=a-o)-r+i*(e=this._hi-o)+t*o+t*e)-n*this._lo)/this._hi);return new Ec(u,n-u+s)},Ec.prototype.toSciNotation=function(){if(this.isZero())return Ec.SCI_NOT_ZERO;var t=this.getSpecialNumberString();if(null!==t)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!1,e),r=Ec.SCI_NOT_EXPONENT_CHAR+e[0];if("0"===n.charAt(0))throw new Error("Found leading zero: "+n);var i="";n.length>1&&(i=n.substring(1));var o=n.charAt(0)+"."+i;return this.isNegative()?"-"+o+r:o+r},Ec.prototype.abs=function(){return this.isNaN()?Ec.NaN:this.isNegative()?this.negate():new Ec(this)},Ec.prototype.isPositive=function(){return(this._hi>0||0===this._hi)&&this._lo>0},Ec.prototype.lt=function(t){return(this._hi<t._hi||this._hi===t._hi)&&this._lo<t._lo},Ec.prototype.add=function(){if(arguments[0]instanceof Ec){var t=arguments[0];return Ec.copy(this).selfAdd(t)}if("number"==typeof arguments[0]){var e=arguments[0];return Ec.copy(this).selfAdd(e)}},Ec.prototype.init=function(){if(1===arguments.length){if("number"==typeof arguments[0]){var t=arguments[0];this._hi=t,this._lo=0}else if(arguments[0]instanceof Ec){var e=arguments[0];this._hi=e._hi,this._lo=e._lo}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this._hi=n,this._lo=r}},Ec.prototype.gt=function(t){return(this._hi>t._hi||this._hi===t._hi)&&this._lo>t._lo},Ec.prototype.isNegative=function(){return(this._hi<0||0===this._hi)&&this._lo<0},Ec.prototype.trunc=function(){return this.isNaN()?Ec.NaN:this.isPositive()?this.floor():this.ceil()},Ec.prototype.signum=function(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0},Ec.prototype.interfaces_=function(){return[uc,oc,sc]},Ec.prototype.getClass=function(){return Ec},Ec.sqr=function(t){return Ec.valueOf(t).selfMultiply(t)},Ec.valueOf=function(){if("string"==typeof arguments[0]){var t=arguments[0];return Ec.parse(t)}if("number"==typeof arguments[0]){var e=arguments[0];return new Ec(e)}},Ec.sqrt=function(t){return Ec.valueOf(t).sqrt()},Ec.parse=function(t){for(var e=0,n=t.length;bc.isWhitespace(t.charAt(e));)e++;var r=!1;if(e<n){var i=t.charAt(e);"-"!==i&&"+"!==i||(e++,"-"===i&&(r=!0))}for(var o=new Ec,s=0,a=0,u=0;!(e>=n);){var c=t.charAt(e);if(e++,bc.isDigit(c)){var l=c-"0";o.selfMultiply(Ec.TEN),o.selfAdd(l),s++}else{if("."!==c){if("e"===c||"E"===c){var h=t.substring(e);try{u=mc.parseInt(h)}catch(e){throw e instanceof Error?new Error("Invalid exponent "+h+" in string "+t):e}break}throw new Error("Unexpected character '"+c+"' at position "+e+" in string "+t)}a=s}}var f=o,p=s-a-u;if(0===p)f=o;else if(p>0){var d=Ec.TEN.pow(p);f=o.divide(d)}else if(p<0){var g=Ec.TEN.pow(-p);f=o.multiply(g)}return r?f.negate():f},Ec.createNaN=function(){return new Ec(rc.NaN,rc.NaN)},Ec.copy=function(t){return new Ec(t)},Ec.magnitude=function(t){var e=Math.abs(t),n=Math.log(e)/Math.log(10),r=Math.trunc(Math.floor(n));return 10*Math.pow(10,r)<=e&&(r+=1),r},Ec.stringOfChar=function(t,e){for(var n=new _c,r=0;r<e;r++)n.append(t);return n.toString()},wc.PI.get=function(){return new Ec(3.141592653589793,12246467991473532e-32)},wc.TWO_PI.get=function(){return new Ec(6.283185307179586,24492935982947064e-32)},wc.PI_2.get=function(){return new Ec(1.5707963267948966,6123233995736766e-32)},wc.E.get=function(){return new Ec(2.718281828459045,14456468917292502e-32)},wc.NaN.get=function(){return new Ec(rc.NaN,rc.NaN)},wc.EPS.get=function(){return 123259516440783e-46},wc.SPLIT.get=function(){return 134217729},wc.MAX_PRINT_DIGITS.get=function(){return 32},wc.TEN.get=function(){return Ec.valueOf(10)},wc.ONE.get=function(){return Ec.valueOf(1)},wc.SCI_NOT_EXPONENT_CHAR.get=function(){return"E"},wc.SCI_NOT_ZERO.get=function(){return"0.0E0"},Object.defineProperties(Ec,wc);var xc=function(){},Oc={DP_SAFE_EPSILON:{configurable:!0}};xc.prototype.interfaces_=function(){return[]},xc.prototype.getClass=function(){return xc},xc.orientationIndex=function(t,e,n){var r=xc.orientationIndexFilter(t,e,n);if(r<=1)return r;var i=Ec.valueOf(e.x).selfAdd(-t.x),o=Ec.valueOf(e.y).selfAdd(-t.y),s=Ec.valueOf(n.x).selfAdd(-e.x),a=Ec.valueOf(n.y).selfAdd(-e.y);return i.selfMultiply(a).selfSubtract(o.selfMultiply(s)).signum()},xc.signOfDet2x2=function(t,e,n,r){return t.multiply(r).selfSubtract(e.multiply(n)).signum()},xc.intersection=function(t,e,n,r){var i=Ec.valueOf(r.y).selfSubtract(n.y).selfMultiply(Ec.valueOf(e.x).selfSubtract(t.x)),o=Ec.valueOf(r.x).selfSubtract(n.x).selfMultiply(Ec.valueOf(e.y).selfSubtract(t.y)),s=i.subtract(o),a=Ec.valueOf(r.x).selfSubtract(n.x).selfMultiply(Ec.valueOf(t.y).selfSubtract(n.y)),u=Ec.valueOf(r.y).selfSubtract(n.y).selfMultiply(Ec.valueOf(t.x).selfSubtract(n.x)),c=a.subtract(u).selfDivide(s).doubleValue(),l=Ec.valueOf(t.x).selfAdd(Ec.valueOf(e.x).selfSubtract(t.x).selfMultiply(c)).doubleValue(),h=Ec.valueOf(e.x).selfSubtract(t.x).selfMultiply(Ec.valueOf(t.y).selfSubtract(n.y)),f=Ec.valueOf(e.y).selfSubtract(t.y).selfMultiply(Ec.valueOf(t.x).selfSubtract(n.x)),p=h.subtract(f).selfDivide(s).doubleValue(),d=Ec.valueOf(n.y).selfAdd(Ec.valueOf(r.y).selfSubtract(n.y).selfMultiply(p)).doubleValue();return new cc(l,d)},xc.orientationIndexFilter=function(t,e,n){var r=null,i=(t.x-n.x)*(e.y-n.y),o=(t.y-n.y)*(e.x-n.x),s=i-o;if(i>0){if(o<=0)return xc.signum(s);r=i+o}else{if(!(i<0))return xc.signum(s);if(o>=0)return xc.signum(s);r=-i-o}var a=xc.DP_SAFE_EPSILON*r;return s>=a||-s>=a?xc.signum(s):2},xc.signum=function(t){return t>0?1:t<0?-1:0},Oc.DP_SAFE_EPSILON.get=function(){return 1e-15},Object.defineProperties(xc,Oc);var Sc=function(){},Cc={X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0},M:{configurable:!0}};Cc.X.get=function(){return 0},Cc.Y.get=function(){return 1},Cc.Z.get=function(){return 2},Cc.M.get=function(){return 3},Sc.prototype.setOrdinate=function(t,e,n){},Sc.prototype.size=function(){},Sc.prototype.getOrdinate=function(t,e){},Sc.prototype.getCoordinate=function(){},Sc.prototype.getCoordinateCopy=function(t){},Sc.prototype.getDimension=function(){},Sc.prototype.getX=function(t){},Sc.prototype.clone=function(){},Sc.prototype.expandEnvelope=function(t){},Sc.prototype.copy=function(){},Sc.prototype.getY=function(t){},Sc.prototype.toCoordinateArray=function(){},Sc.prototype.interfaces_=function(){return[sc]},Sc.prototype.getClass=function(){return Sc},Object.defineProperties(Sc,Cc);var Ic=function(){},Pc=function(t){function e(){t.call(this,"Projective point not representable on the Cartesian plane.")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Ic),Rc=function(){};Rc.arraycopy=function(t,e,n,r,i){for(var o=0,s=e;s<e+i;s++)n[r+o]=t[s],o++},Rc.getProperty=function(t){return{"line.separator":"\n"}[t]};var Tc=function t(){if(this.x=null,this.y=null,this.w=null,0===arguments.length)this.x=0,this.y=0,this.w=1;else if(1===arguments.length){var e=arguments[0];this.x=e.x,this.y=e.y,this.w=1}else if(2===arguments.length){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var n=arguments[0],r=arguments[1];this.x=n,this.y=r,this.w=1}else if(arguments[0]instanceof t&&arguments[1]instanceof t){var i=arguments[0],o=arguments[1];this.x=i.y*o.w-o.y*i.w,this.y=o.x*i.w-i.x*o.w,this.w=i.x*o.y-o.x*i.y}else if(arguments[0]instanceof cc&&arguments[1]instanceof cc){var s=arguments[0],a=arguments[1];this.x=s.y-a.y,this.y=a.x-s.x,this.w=s.x*a.y-a.x*s.y}}else if(3===arguments.length){var u=arguments[0],c=arguments[1],l=arguments[2];this.x=u,this.y=c,this.w=l}else if(4===arguments.length){var h=arguments[0],f=arguments[1],p=arguments[2],d=arguments[3],g=h.y-f.y,y=f.x-h.x,v=h.x*f.y-f.x*h.y,_=p.y-d.y,m=d.x-p.x,b=p.x*d.y-d.x*p.y;this.x=y*b-m*v,this.y=_*v-g*b,this.w=g*m-_*y}};Tc.prototype.getY=function(){var t=this.y/this.w;if(rc.isNaN(t)||rc.isInfinite(t))throw new Pc;return t},Tc.prototype.getX=function(){var t=this.x/this.w;if(rc.isNaN(t)||rc.isInfinite(t))throw new Pc;return t},Tc.prototype.getCoordinate=function(){var t=new cc;return t.x=this.getX(),t.y=this.getY(),t},Tc.prototype.interfaces_=function(){return[]},Tc.prototype.getClass=function(){return Tc},Tc.intersection=function(t,e,n,r){var i=t.y-e.y,o=e.x-t.x,s=t.x*e.y-e.x*t.y,a=n.y-r.y,u=r.x-n.x,c=n.x*r.y-r.x*n.y,l=i*u-a*o,h=(o*c-u*s)/l,f=(a*s-i*c)/l;if(rc.isNaN(h)||rc.isInfinite(h)||rc.isNaN(f)||rc.isInfinite(f))throw new Pc;return new cc(h,f)};var Lc=function t(){if(this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,0===arguments.length)this.init();else if(1===arguments.length){if(arguments[0]instanceof cc){var e=arguments[0];this.init(e.x,e.x,e.y,e.y)}else if(arguments[0]instanceof t){var n=arguments[0];this.init(n)}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.init(r.x,i.x,r.y,i.y)}else if(4===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2],u=arguments[3];this.init(o,s,a,u)}},Mc={serialVersionUID:{configurable:!0}};Lc.prototype.getArea=function(){return this.getWidth()*this.getHeight()},Lc.prototype.equals=function(t){if(!(t instanceof Lc))return!1;var e=t;return this.isNull()?e.isNull():this._maxx===e.getMaxX()&&this._maxy===e.getMaxY()&&this._minx===e.getMinX()&&this._miny===e.getMinY()},Lc.prototype.intersection=function(t){if(this.isNull()||t.isNull()||!this.intersects(t))return new Lc;var e=this._minx>t._minx?this._minx:t._minx,n=this._miny>t._miny?this._miny:t._miny,r=this._maxx<t._maxx?this._maxx:t._maxx,i=this._maxy<t._maxy?this._maxy:t._maxy;return new Lc(e,r,n,i)},Lc.prototype.isNull=function(){return this._maxx<this._minx},Lc.prototype.getMaxX=function(){return this._maxx},Lc.prototype.covers=function(){if(1===arguments.length){if(arguments[0]instanceof cc){var t=arguments[0];return this.covers(t.x,t.y)}if(arguments[0]instanceof Lc){var e=arguments[0];return!this.isNull()&&!e.isNull()&&e.getMinX()>=this._minx&&e.getMaxX()<=this._maxx&&e.getMinY()>=this._miny&&e.getMaxY()<=this._maxy}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return!this.isNull()&&n>=this._minx&&n<=this._maxx&&r>=this._miny&&r<=this._maxy}},Lc.prototype.intersects=function(){if(1===arguments.length){if(arguments[0]instanceof Lc){var t=arguments[0];return!this.isNull()&&!t.isNull()&&!(t._minx>this._maxx||t._maxx<this._minx||t._miny>this._maxy||t._maxy<this._miny)}if(arguments[0]instanceof cc){var e=arguments[0];return this.intersects(e.x,e.y)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return!this.isNull()&&!(n>this._maxx||n<this._minx||r>this._maxy||r<this._miny)}},Lc.prototype.getMinY=function(){return this._miny},Lc.prototype.getMinX=function(){return this._minx},Lc.prototype.expandToInclude=function(){if(1===arguments.length){if(arguments[0]instanceof cc){var t=arguments[0];this.expandToInclude(t.x,t.y)}else if(arguments[0]instanceof Lc){var e=arguments[0];if(e.isNull())return null;this.isNull()?(this._minx=e.getMinX(),this._maxx=e.getMaxX(),this._miny=e.getMinY(),this._maxy=e.getMaxY()):(e._minx<this._minx&&(this._minx=e._minx),e._maxx>this._maxx&&(this._maxx=e._maxx),e._miny<this._miny&&(this._miny=e._miny),e._maxy>this._maxy&&(this._maxy=e._maxy))}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.isNull()?(this._minx=n,this._maxx=n,this._miny=r,this._maxy=r):(n<this._minx&&(this._minx=n),n>this._maxx&&(this._maxx=n),r<this._miny&&(this._miny=r),r>this._maxy&&(this._maxy=r))}},Lc.prototype.minExtent=function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return t<e?t:e},Lc.prototype.getWidth=function(){return this.isNull()?0:this._maxx-this._minx},Lc.prototype.compareTo=function(t){var e=t;return this.isNull()?e.isNull()?0:-1:e.isNull()?1:this._minx<e._minx?-1:this._minx>e._minx?1:this._miny<e._miny?-1:this._miny>e._miny?1:this._maxx<e._maxx?-1:this._maxx>e._maxx?1:this._maxy<e._maxy?-1:this._maxy>e._maxy?1:0},Lc.prototype.translate=function(t,e){if(this.isNull())return null;this.init(this.getMinX()+t,this.getMaxX()+t,this.getMinY()+e,this.getMaxY()+e)},Lc.prototype.toString=function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"},Lc.prototype.setToNull=function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1},Lc.prototype.getHeight=function(){return this.isNull()?0:this._maxy-this._miny},Lc.prototype.maxExtent=function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return t>e?t:e},Lc.prototype.expandBy=function(){if(1===arguments.length){var t=arguments[0];this.expandBy(t,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this.isNull())return null;this._minx-=e,this._maxx+=e,this._miny-=n,this._maxy+=n,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}},Lc.prototype.contains=function(){if(1===arguments.length){if(arguments[0]instanceof Lc){var t=arguments[0];return this.covers(t)}if(arguments[0]instanceof cc){var e=arguments[0];return this.covers(e)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return this.covers(n,r)}},Lc.prototype.centre=function(){return this.isNull()?null:new cc((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},Lc.prototype.init=function(){if(0===arguments.length)this.setToNull();else if(1===arguments.length){if(arguments[0]instanceof cc){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof Lc){var e=arguments[0];this._minx=e._minx,this._maxx=e._maxx,this._miny=e._miny,this._maxy=e._maxy}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.init(n.x,r.x,n.y,r.y)}else if(4===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];i<o?(this._minx=i,this._maxx=o):(this._minx=o,this._maxx=i),s<a?(this._miny=s,this._maxy=a):(this._miny=a,this._maxy=s)}},Lc.prototype.getMaxY=function(){return this._maxy},Lc.prototype.distance=function(t){if(this.intersects(t))return 0;var e=0;this._maxx<t._minx?e=t._minx-this._maxx:this._minx>t._maxx&&(e=this._minx-t._maxx);var n=0;return this._maxy<t._miny?n=t._miny-this._maxy:this._miny>t._maxy&&(n=this._miny-t._maxy),0===e?n:0===n?e:Math.sqrt(e*e+n*n)},Lc.prototype.hashCode=function(){var t=17;return 37*(t=37*(t=37*(t=37*t+cc.hashCode(this._minx))+cc.hashCode(this._maxx))+cc.hashCode(this._miny))+cc.hashCode(this._maxy)},Lc.prototype.interfaces_=function(){return[oc,uc]},Lc.prototype.getClass=function(){return Lc},Lc.intersects=function(){if(3===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2];return n.x>=(t.x<e.x?t.x:e.x)&&n.x<=(t.x>e.x?t.x:e.x)&&n.y>=(t.y<e.y?t.y:e.y)&&n.y<=(t.y>e.y?t.y:e.y)}if(4===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2],s=arguments[3],a=Math.min(o.x,s.x),u=Math.max(o.x,s.x),c=Math.min(r.x,i.x),l=Math.max(r.x,i.x);return!(c>u)&&!(l<a)&&(a=Math.min(o.y,s.y),u=Math.max(o.y,s.y),c=Math.min(r.y,i.y),l=Math.max(r.y,i.y),!(c>u)&&!(l<a))}},Mc.serialVersionUID.get=function(){return 0x51845cd552189800},Object.defineProperties(Lc,Mc);var Nc={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,emptyTypeStr:/^\s*(\w+)\s*EMPTY\s*$/,spaces:/\s+/,parenComma:/\)\s*,\s*\(/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,trimParens:/^\s*\(?(.*?)\)?\s*$/},Ac=function(t){this.geometryFactory=t||new mh};Ac.prototype.read=function(t){var e,n,r;t=t.replace(/[\n\r]/g," ");var i=Nc.typeStr.exec(t);if(-1!==t.search("EMPTY")&&((i=Nc.emptyTypeStr.exec(t))[2]=void 0),i&&(n=i[1].toLowerCase(),r=i[2],jc[n]&&(e=jc[n].apply(this,[r]))),void 0===e)throw new Error("Could not parse WKT "+t);return e},Ac.prototype.write=function(t){return this.extractGeometry(t)},Ac.prototype.extractGeometry=function(t){var e=t.getGeometryType().toLowerCase();if(!Fc[e])return null;var n=e.toUpperCase();return t.isEmpty()?n+" EMPTY":n+"("+Fc[e].apply(this,[t])+")"};var Fc={coordinate:function(t){return t.x+" "+t.y},point:function(t){return Fc.coordinate.call(this,t._coordinates._coordinates[0])},multipoint:function(t){for(var e=[],n=0,r=t._geometries.length;n<r;++n)e.push("("+Fc.point.apply(this,[t._geometries[n]])+")");return e.join(",")},linestring:function(t){for(var e=[],n=0,r=t._points._coordinates.length;n<r;++n)e.push(Fc.coordinate.apply(this,[t._points._coordinates[n]]));return e.join(",")},linearring:function(t){for(var e=[],n=0,r=t._points._coordinates.length;n<r;++n)e.push(Fc.coordinate.apply(this,[t._points._coordinates[n]]));return e.join(",")},multilinestring:function(t){for(var e=[],n=0,r=t._geometries.length;n<r;++n)e.push("("+Fc.linestring.apply(this,[t._geometries[n]])+")");return e.join(",")},polygon:function(t){var e=[];e.push("("+Fc.linestring.apply(this,[t._shell])+")");for(var n=0,r=t._holes.length;n<r;++n)e.push("("+Fc.linestring.apply(this,[t._holes[n]])+")");return e.join(",")},multipolygon:function(t){for(var e=[],n=0,r=t._geometries.length;n<r;++n)e.push("("+Fc.polygon.apply(this,[t._geometries[n]])+")");return e.join(",")},geometrycollection:function(t){for(var e=[],n=0,r=t._geometries.length;n<r;++n)e.push(this.extractGeometry(t._geometries[n]));return e.join(",")}},jc={point:function(t){if(void 0===t)return this.geometryFactory.createPoint();var e=t.trim().split(Nc.spaces);return this.geometryFactory.createPoint(new cc(Number.parseFloat(e[0]),Number.parseFloat(e[1])))},multipoint:function(t){var e;if(void 0===t)return this.geometryFactory.createMultiPoint();for(var n=t.trim().split(","),r=[],i=0,o=n.length;i<o;++i)e=n[i].replace(Nc.trimParens,"$1"),r.push(jc.point.apply(this,[e]));return this.geometryFactory.createMultiPoint(r)},linestring:function(t){if(void 0===t)return this.geometryFactory.createLineString();for(var e,n=t.trim().split(","),r=[],i=0,o=n.length;i<o;++i)e=n[i].trim().split(Nc.spaces),r.push(new cc(Number.parseFloat(e[0]),Number.parseFloat(e[1])));return this.geometryFactory.createLineString(r)},linearring:function(t){if(void 0===t)return this.geometryFactory.createLinearRing();for(var e,n=t.trim().split(","),r=[],i=0,o=n.length;i<o;++i)e=n[i].trim().split(Nc.spaces),r.push(new cc(Number.parseFloat(e[0]),Number.parseFloat(e[1])));return this.geometryFactory.createLinearRing(r)},multilinestring:function(t){var e;if(void 0===t)return this.geometryFactory.createMultiLineString();for(var n=t.trim().split(Nc.parenComma),r=[],i=0,o=n.length;i<o;++i)e=n[i].replace(Nc.trimParens,"$1"),r.push(jc.linestring.apply(this,[e]));return this.geometryFactory.createMultiLineString(r)},polygon:function(t){var e,n,r;if(void 0===t)return this.geometryFactory.createPolygon();for(var i,o=t.trim().split(Nc.parenComma),s=[],a=0,u=o.length;a<u;++a)e=o[a].replace(Nc.trimParens,"$1"),n=jc.linestring.apply(this,[e]),r=this.geometryFactory.createLinearRing(n._points),0===a?i=r:s.push(r);return this.geometryFactory.createPolygon(i,s)},multipolygon:function(t){var e;if(void 0===t)return this.geometryFactory.createMultiPolygon();for(var n=t.trim().split(Nc.doubleParenComma),r=[],i=0,o=n.length;i<o;++i)e=n[i].replace(Nc.trimParens,"$1"),r.push(jc.polygon.apply(this,[e]));return this.geometryFactory.createMultiPolygon(r)},geometrycollection:function(t){if(void 0===t)return this.geometryFactory.createGeometryCollection();for(var e=(t=t.replace(/,\s*([A-Za-z])/g,"|$1")).trim().split("|"),n=[],r=0,i=e.length;r<i;++r)n.push(this.read(e[r]));return this.geometryFactory.createGeometryCollection(n)}},Dc=function(t){this.parser=new Ac(t)};Dc.prototype.write=function(t){return this.parser.write(t)},Dc.toLineString=function(t,e){if(2!==arguments.length)throw new Error("Not implemented");return"LINESTRING ( "+t.x+" "+t.y+", "+e.x+" "+e.y+" )"};var kc=function(t){function e(e){t.call(this,e),this.name="RuntimeException",this.message=e,this.stack=(new t).stack}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),Gc=function(t){function e(){if(t.call(this),0===arguments.length)t.call(this);else if(1===arguments.length){var e=arguments[0];t.call(this,e)}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(kc),Bc=function(){};Bc.prototype.interfaces_=function(){return[]},Bc.prototype.getClass=function(){return Bc},Bc.shouldNeverReachHere=function(){if(0===arguments.length)Bc.shouldNeverReachHere(null);else if(1===arguments.length){var t=arguments[0];throw new Gc("Should never reach here"+(null!==t?": "+t:""))}},Bc.isTrue=function(){var t;if(1===arguments.length)Bc.isTrue(arguments[0],null);else if(2===arguments.length&&(t=arguments[1],!arguments[0]))throw null===t?new Gc:new Gc(t)},Bc.equals=function(){var t,e,n;if(2===arguments.length)Bc.equals(t=arguments[0],e=arguments[1],null);else if(3===arguments.length&&(t=arguments[0],n=arguments[2],!(e=arguments[1]).equals(t)))throw new Gc("Expected "+t+" but encountered "+e+(null!==n?": "+n:""))};var Uc=function(){this._result=null,this._inputLines=Array(2).fill().map((function(){return Array(2)})),this._intPt=new Array(2).fill(null),this._intLineIndex=null,this._isProper=null,this._pa=null,this._pb=null,this._precisionModel=null,this._intPt[0]=new cc,this._intPt[1]=new cc,this._pa=this._intPt[0],this._pb=this._intPt[1],this._result=0},zc={DONT_INTERSECT:{configurable:!0},DO_INTERSECT:{configurable:!0},COLLINEAR:{configurable:!0},NO_INTERSECTION:{configurable:!0},POINT_INTERSECTION:{configurable:!0},COLLINEAR_INTERSECTION:{configurable:!0}};Uc.prototype.getIndexAlongSegment=function(t,e){return this.computeIntLineIndex(),this._intLineIndex[t][e]},Uc.prototype.getTopologySummary=function(){var t=new _c;return this.isEndPoint()&&t.append(" endpoint"),this._isProper&&t.append(" proper"),this.isCollinear()&&t.append(" collinear"),t.toString()},Uc.prototype.computeIntersection=function(t,e,n,r){this._inputLines[0][0]=t,this._inputLines[0][1]=e,this._inputLines[1][0]=n,this._inputLines[1][1]=r,this._result=this.computeIntersect(t,e,n,r)},Uc.prototype.getIntersectionNum=function(){return this._result},Uc.prototype.computeIntLineIndex=function(){if(0===arguments.length)null===this._intLineIndex&&(this._intLineIndex=Array(2).fill().map((function(){return Array(2)})),this.computeIntLineIndex(0),this.computeIntLineIndex(1));else if(1===arguments.length){var t=arguments[0],e=this.getEdgeDistance(t,0),n=this.getEdgeDistance(t,1);e>n?(this._intLineIndex[t][0]=0,this._intLineIndex[t][1]=1):(this._intLineIndex[t][0]=1,this._intLineIndex[t][1]=0)}},Uc.prototype.isProper=function(){return this.hasIntersection()&&this._isProper},Uc.prototype.setPrecisionModel=function(t){this._precisionModel=t},Uc.prototype.isInteriorIntersection=function(){var t=this;if(0===arguments.length)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(1===arguments.length){for(var e=arguments[0],n=0;n<this._result;n++)if(!t._intPt[n].equals2D(t._inputLines[e][0])&&!t._intPt[n].equals2D(t._inputLines[e][1]))return!0;return!1}},Uc.prototype.getIntersection=function(t){return this._intPt[t]},Uc.prototype.isEndPoint=function(){return this.hasIntersection()&&!this._isProper},Uc.prototype.hasIntersection=function(){return this._result!==Uc.NO_INTERSECTION},Uc.prototype.getEdgeDistance=function(t,e){return Uc.computeEdgeDistance(this._intPt[e],this._inputLines[t][0],this._inputLines[t][1])},Uc.prototype.isCollinear=function(){return this._result===Uc.COLLINEAR_INTERSECTION},Uc.prototype.toString=function(){return Dc.toLineString(this._inputLines[0][0],this._inputLines[0][1])+" - "+Dc.toLineString(this._inputLines[1][0],this._inputLines[1][1])+this.getTopologySummary()},Uc.prototype.getEndpoint=function(t,e){return this._inputLines[t][e]},Uc.prototype.isIntersection=function(t){for(var e=0;e<this._result;e++)if(this._intPt[e].equals2D(t))return!0;return!1},Uc.prototype.getIntersectionAlongSegment=function(t,e){return this.computeIntLineIndex(),this._intPt[this._intLineIndex[t][e]]},Uc.prototype.interfaces_=function(){return[]},Uc.prototype.getClass=function(){return Uc},Uc.computeEdgeDistance=function(t,e,n){var r=Math.abs(n.x-e.x),i=Math.abs(n.y-e.y),o=-1;if(t.equals(e))o=0;else if(t.equals(n))o=r>i?r:i;else{var s=Math.abs(t.x-e.x),a=Math.abs(t.y-e.y);0!==(o=r>i?s:a)||t.equals(e)||(o=Math.max(s,a))}return Bc.isTrue(!(0===o&&!t.equals(e)),"Bad distance calculation"),o},Uc.nonRobustComputeEdgeDistance=function(t,e,n){var r=t.x-e.x,i=t.y-e.y,o=Math.sqrt(r*r+i*i);return Bc.isTrue(!(0===o&&!t.equals(e)),"Invalid distance calculation"),o},zc.DONT_INTERSECT.get=function(){return 0},zc.DO_INTERSECT.get=function(){return 1},zc.COLLINEAR.get=function(){return 2},zc.NO_INTERSECTION.get=function(){return 0},zc.POINT_INTERSECTION.get=function(){return 1},zc.COLLINEAR_INTERSECTION.get=function(){return 2},Object.defineProperties(Uc,zc);var Yc=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isInSegmentEnvelopes=function(t){var e=new Lc(this._inputLines[0][0],this._inputLines[0][1]),n=new Lc(this._inputLines[1][0],this._inputLines[1][1]);return e.contains(t)&&n.contains(t)},e.prototype.computeIntersection=function(){if(3!==arguments.length)return t.prototype.computeIntersection.apply(this,arguments);var e=arguments[0],n=arguments[1],r=arguments[2];if(this._isProper=!1,Lc.intersects(n,r,e)&&0===qc.orientationIndex(n,r,e)&&0===qc.orientationIndex(r,n,e))return this._isProper=!0,(e.equals(n)||e.equals(r))&&(this._isProper=!1),this._result=t.POINT_INTERSECTION,null;this._result=t.NO_INTERSECTION},e.prototype.normalizeToMinimum=function(t,e,n,r,i){i.x=this.smallestInAbsValue(t.x,e.x,n.x,r.x),i.y=this.smallestInAbsValue(t.y,e.y,n.y,r.y),t.x-=i.x,t.y-=i.y,e.x-=i.x,e.y-=i.y,n.x-=i.x,n.y-=i.y,r.x-=i.x,r.y-=i.y},e.prototype.safeHCoordinateIntersection=function(t,n,r,i){var o=null;try{o=Tc.intersection(t,n,r,i)}catch(a){if(!(a instanceof Pc))throw a;o=e.nearestEndpoint(t,n,r,i)}return o},e.prototype.intersection=function(t,n,r,i){var o=this.intersectionWithNormalization(t,n,r,i);return this.isInSegmentEnvelopes(o)||(o=new cc(e.nearestEndpoint(t,n,r,i))),null!==this._precisionModel&&this._precisionModel.makePrecise(o),o},e.prototype.smallestInAbsValue=function(t,e,n,r){var i=t,o=Math.abs(i);return Math.abs(e)<o&&(i=e,o=Math.abs(e)),Math.abs(n)<o&&(i=n,o=Math.abs(n)),Math.abs(r)<o&&(i=r),i},e.prototype.checkDD=function(t,e,n,r,i){var o=xc.intersection(t,e,n,r),s=this.isInSegmentEnvelopes(o);Rc.out.println("DD in env = "+s+" --------------------- "+o),i.distance(o)>1e-4&&Rc.out.println("Distance = "+i.distance(o))},e.prototype.intersectionWithNormalization=function(t,e,n,r){var i=new cc(t),o=new cc(e),s=new cc(n),a=new cc(r),u=new cc;this.normalizeToEnvCentre(i,o,s,a,u);var c=this.safeHCoordinateIntersection(i,o,s,a);return c.x+=u.x,c.y+=u.y,c},e.prototype.computeCollinearIntersection=function(e,n,r,i){var o=Lc.intersects(e,n,r),s=Lc.intersects(e,n,i),a=Lc.intersects(r,i,e),u=Lc.intersects(r,i,n);return o&&s?(this._intPt[0]=r,this._intPt[1]=i,t.COLLINEAR_INTERSECTION):a&&u?(this._intPt[0]=e,this._intPt[1]=n,t.COLLINEAR_INTERSECTION):o&&a?(this._intPt[0]=r,this._intPt[1]=e,!r.equals(e)||s||u?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):o&&u?(this._intPt[0]=r,this._intPt[1]=n,!r.equals(n)||s||a?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):s&&a?(this._intPt[0]=i,this._intPt[1]=e,!i.equals(e)||o||u?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):s&&u?(this._intPt[0]=i,this._intPt[1]=n,!i.equals(n)||o||a?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):t.NO_INTERSECTION},e.prototype.normalizeToEnvCentre=function(t,e,n,r,i){var o=t.x<e.x?t.x:e.x,s=t.y<e.y?t.y:e.y,a=t.x>e.x?t.x:e.x,u=t.y>e.y?t.y:e.y,c=n.x<r.x?n.x:r.x,l=n.y<r.y?n.y:r.y,h=n.x>r.x?n.x:r.x,f=n.y>r.y?n.y:r.y,p=((o>c?o:c)+(a<h?a:h))/2,d=((s>l?s:l)+(u<f?u:f))/2;i.x=p,i.y=d,t.x-=i.x,t.y-=i.y,e.x-=i.x,e.y-=i.y,n.x-=i.x,n.y-=i.y,r.x-=i.x,r.y-=i.y},e.prototype.computeIntersect=function(e,n,r,i){if(this._isProper=!1,!Lc.intersects(e,n,r,i))return t.NO_INTERSECTION;var o=qc.orientationIndex(e,n,r),s=qc.orientationIndex(e,n,i);if(o>0&&s>0||o<0&&s<0)return t.NO_INTERSECTION;var a=qc.orientationIndex(r,i,e),u=qc.orientationIndex(r,i,n);return a>0&&u>0||a<0&&u<0?t.NO_INTERSECTION:0===o&&0===s&&0===a&&0===u?this.computeCollinearIntersection(e,n,r,i):(0===o||0===s||0===a||0===u?(this._isProper=!1,e.equals2D(r)||e.equals2D(i)?this._intPt[0]=e:n.equals2D(r)||n.equals2D(i)?this._intPt[0]=n:0===o?this._intPt[0]=new cc(r):0===s?this._intPt[0]=new cc(i):0===a?this._intPt[0]=new cc(e):0===u&&(this._intPt[0]=new cc(n))):(this._isProper=!0,this._intPt[0]=this.intersection(e,n,r,i)),t.POINT_INTERSECTION)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.nearestEndpoint=function(t,e,n,r){var i=t,o=qc.distancePointLine(t,n,r),s=qc.distancePointLine(e,n,r);return s<o&&(o=s,i=e),(s=qc.distancePointLine(n,t,e))<o&&(o=s,i=n),(s=qc.distancePointLine(r,t,e))<o&&(o=s,i=r),i},e}(Uc),Xc=function(){};Xc.prototype.interfaces_=function(){return[]},Xc.prototype.getClass=function(){return Xc},Xc.orientationIndex=function(t,e,n){var r=e.x-t.x,i=e.y-t.y,o=n.x-e.x,s=n.y-e.y;return Xc.signOfDet2x2(r,i,o,s)},Xc.signOfDet2x2=function(t,e,n,r){var i=null,o=null,s=null;if(i=1,0===t||0===r)return 0===e||0===n?0:e>0?n>0?-i:i:n>0?i:-i;if(0===e||0===n)return r>0?t>0?i:-i:t>0?-i:i;if(e>0?r>0?e<=r||(i=-i,o=t,t=n,n=o,o=e,e=r,r=o):e<=-r?(i=-i,n=-n,r=-r):(o=t,t=-n,n=o,o=e,e=-r,r=o):r>0?-e<=r?(i=-i,t=-t,e=-e):(o=-t,t=n,n=o,o=-e,e=r,r=o):e>=r?(t=-t,e=-e,n=-n,r=-r):(i=-i,o=-t,t=-n,n=o,o=-e,e=-r,r=o),t>0){if(!(n>0))return i;if(!(t<=n))return i}else{if(n>0)return-i;if(!(t>=n))return-i;i=-i,t=-t,n=-n}for(;;){if((r-=(s=Math.floor(n/t))*e)<0)return-i;if(r>e)return i;if(t>(n-=s*t)+n){if(e<r+r)return i}else{if(e>r+r)return-i;n=t-n,r=e-r,i=-i}if(0===r)return 0===n?0:-i;if(0===n)return i;if((e-=(s=Math.floor(t/n))*r)<0)return i;if(e>r)return-i;if(n>(t-=s*n)+t){if(r<e+e)return-i}else{if(r>e+e)return i;t=n-t,e=r-e,i=-i}if(0===e)return 0===t?0:i;if(0===t)return-i}};var Vc=function(){this._p=null,this._crossingCount=0,this._isPointOnSegment=!1;var t=arguments[0];this._p=t};Vc.prototype.countSegment=function(t,e){if(t.x<this._p.x&&e.x<this._p.x)return null;if(this._p.x===e.x&&this._p.y===e.y)return this._isPointOnSegment=!0,null;if(t.y===this._p.y&&e.y===this._p.y){var n=t.x,r=e.x;return n>r&&(n=e.x,r=t.x),this._p.x>=n&&this._p.x<=r&&(this._isPointOnSegment=!0),null}if(t.y>this._p.y&&e.y<=this._p.y||e.y>this._p.y&&t.y<=this._p.y){var i=t.x-this._p.x,o=t.y-this._p.y,s=e.x-this._p.x,a=e.y-this._p.y,u=Xc.signOfDet2x2(i,o,s,a);if(0===u)return this._isPointOnSegment=!0,null;a<o&&(u=-u),u>0&&this._crossingCount++}},Vc.prototype.isPointInPolygon=function(){return this.getLocation()!==pc.EXTERIOR},Vc.prototype.getLocation=function(){return this._isPointOnSegment?pc.BOUNDARY:this._crossingCount%2==1?pc.INTERIOR:pc.EXTERIOR},Vc.prototype.isOnSegment=function(){return this._isPointOnSegment},Vc.prototype.interfaces_=function(){return[]},Vc.prototype.getClass=function(){return Vc},Vc.locatePointInRing=function(){if(arguments[0]instanceof cc&&gc(arguments[1],Sc)){for(var t=arguments[0],e=arguments[1],n=new Vc(t),r=new cc,i=new cc,o=1;o<e.size();o++)if(e.getCoordinate(o,r),e.getCoordinate(o-1,i),n.countSegment(r,i),n.isOnSegment())return n.getLocation();return n.getLocation()}if(arguments[0]instanceof cc&&arguments[1]instanceof Array){for(var s=arguments[0],a=arguments[1],u=new Vc(s),c=1;c<a.length;c++){var l=a[c],h=a[c-1];if(u.countSegment(l,h),u.isOnSegment())return u.getLocation()}return u.getLocation()}};var qc=function(){},Wc={CLOCKWISE:{configurable:!0},RIGHT:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},LEFT:{configurable:!0},COLLINEAR:{configurable:!0},STRAIGHT:{configurable:!0}};qc.prototype.interfaces_=function(){return[]},qc.prototype.getClass=function(){return qc},qc.orientationIndex=function(t,e,n){return xc.orientationIndex(t,e,n)},qc.signedArea=function(){if(arguments[0]instanceof Array){var t=arguments[0];if(t.length<3)return 0;for(var e=0,n=t[0].x,r=1;r<t.length-1;r++){var i=t[r].x-n,o=t[r+1].y,s=t[r-1].y;e+=i*(s-o)}return e/2}if(gc(arguments[0],Sc)){var a=arguments[0],u=a.size();if(u<3)return 0;var c=new cc,l=new cc,h=new cc;a.getCoordinate(0,l),a.getCoordinate(1,h);var f=l.x;h.x-=f;for(var p=0,d=1;d<u-1;d++)c.y=l.y,l.x=h.x,l.y=h.y,a.getCoordinate(d+1,h),h.x-=f,p+=l.x*(c.y-h.y);return p/2}},qc.distanceLineLine=function(t,e,n,r){if(t.equals(e))return qc.distancePointLine(t,n,r);if(n.equals(r))return qc.distancePointLine(r,t,e);var i=!1;if(Lc.intersects(t,e,n,r)){var o=(e.x-t.x)*(r.y-n.y)-(e.y-t.y)*(r.x-n.x);if(0===o)i=!0;else{var s=(t.y-n.y)*(r.x-n.x)-(t.x-n.x)*(r.y-n.y),a=((t.y-n.y)*(e.x-t.x)-(t.x-n.x)*(e.y-t.y))/o,u=s/o;(u<0||u>1||a<0||a>1)&&(i=!0)}}else i=!0;return i?yc.min(qc.distancePointLine(t,n,r),qc.distancePointLine(e,n,r),qc.distancePointLine(n,t,e),qc.distancePointLine(r,t,e)):0},qc.isPointInRing=function(t,e){return qc.locatePointInRing(t,e)!==pc.EXTERIOR},qc.computeLength=function(t){var e=t.size();if(e<=1)return 0;var n=0,r=new cc;t.getCoordinate(0,r);for(var i=r.x,o=r.y,s=1;s<e;s++){t.getCoordinate(s,r);var a=r.x,u=r.y,c=a-i,l=u-o;n+=Math.sqrt(c*c+l*l),i=a,o=u}return n},qc.isCCW=function(t){var e=t.length-1;if(e<3)throw new nc("Ring has fewer than 4 points, so orientation cannot be determined");for(var n=t[0],r=0,i=1;i<=e;i++){var o=t[i];o.y>n.y&&(n=o,r=i)}var s=r;do{(s-=1)<0&&(s=e)}while(t[s].equals2D(n)&&s!==r);var a=r;do{a=(a+1)%e}while(t[a].equals2D(n)&&a!==r);var u=t[s],c=t[a];if(u.equals2D(n)||c.equals2D(n)||u.equals2D(c))return!1;var l=qc.computeOrientation(u,n,c),h=!1;return h=0===l?u.x>c.x:l>0,h},qc.locatePointInRing=function(t,e){return Vc.locatePointInRing(t,e)},qc.distancePointLinePerpendicular=function(t,e,n){var r=(n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y),i=((e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y))/r;return Math.abs(i)*Math.sqrt(r)},qc.computeOrientation=function(t,e,n){return qc.orientationIndex(t,e,n)},qc.distancePointLine=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];if(0===e.length)throw new nc("Line array must contain at least one vertex");for(var n=t.distance(e[0]),r=0;r<e.length-1;r++){var i=qc.distancePointLine(t,e[r],e[r+1]);i<n&&(n=i)}return n}if(3===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2];if(s.x===a.x&&s.y===a.y)return o.distance(s);var u=(a.x-s.x)*(a.x-s.x)+(a.y-s.y)*(a.y-s.y),c=((o.x-s.x)*(a.x-s.x)+(o.y-s.y)*(a.y-s.y))/u;if(c<=0)return o.distance(s);if(c>=1)return o.distance(a);var l=((s.y-o.y)*(a.x-s.x)-(s.x-o.x)*(a.y-s.y))/u;return Math.abs(l)*Math.sqrt(u)}},qc.isOnLine=function(t,e){for(var n=new Yc,r=1;r<e.length;r++){var i=e[r-1],o=e[r];if(n.computeIntersection(t,i,o),n.hasIntersection())return!0}return!1},Wc.CLOCKWISE.get=function(){return-1},Wc.RIGHT.get=function(){return qc.CLOCKWISE},Wc.COUNTERCLOCKWISE.get=function(){return 1},Wc.LEFT.get=function(){return qc.COUNTERCLOCKWISE},Wc.COLLINEAR.get=function(){return 0},Wc.STRAIGHT.get=function(){return qc.COLLINEAR},Object.defineProperties(qc,Wc);var Hc=function(){};Hc.prototype.filter=function(t){},Hc.prototype.interfaces_=function(){return[]},Hc.prototype.getClass=function(){return Hc};var Zc=function(){var t=arguments[0];this._envelope=null,this._factory=null,this._SRID=null,this._userData=null,this._factory=t,this._SRID=t.getSRID()},Kc={serialVersionUID:{configurable:!0},SORTINDEX_POINT:{configurable:!0},SORTINDEX_MULTIPOINT:{configurable:!0},SORTINDEX_LINESTRING:{configurable:!0},SORTINDEX_LINEARRING:{configurable:!0},SORTINDEX_MULTILINESTRING:{configurable:!0},SORTINDEX_POLYGON:{configurable:!0},SORTINDEX_MULTIPOLYGON:{configurable:!0},SORTINDEX_GEOMETRYCOLLECTION:{configurable:!0},geometryChangedFilter:{configurable:!0}};Zc.prototype.isGeometryCollection=function(){return this.getSortIndex()===Zc.SORTINDEX_GEOMETRYCOLLECTION},Zc.prototype.getFactory=function(){return this._factory},Zc.prototype.getGeometryN=function(t){return this},Zc.prototype.getArea=function(){return 0},Zc.prototype.isRectangle=function(){return!1},Zc.prototype.equals=function(){if(arguments[0]instanceof Zc){var t=arguments[0];return null!==t&&this.equalsTopo(t)}if(arguments[0]instanceof Object){var e=arguments[0];if(!(e instanceof Zc))return!1;var n=e;return this.equalsExact(n)}},Zc.prototype.equalsExact=function(t){return this===t||this.equalsExact(t,0)},Zc.prototype.geometryChanged=function(){this.apply(Zc.geometryChangedFilter)},Zc.prototype.geometryChangedAction=function(){this._envelope=null},Zc.prototype.equalsNorm=function(t){return null!==t&&this.norm().equalsExact(t.norm())},Zc.prototype.getLength=function(){return 0},Zc.prototype.getNumGeometries=function(){return 1},Zc.prototype.compareTo=function(){if(1===arguments.length){var t=arguments[0],e=t;return this.getSortIndex()!==e.getSortIndex()?this.getSortIndex()-e.getSortIndex():this.isEmpty()&&e.isEmpty()?0:this.isEmpty()?-1:e.isEmpty()?1:this.compareToSameClass(t)}if(2===arguments.length){var n=arguments[0],r=arguments[1];return this.getSortIndex()!==n.getSortIndex()?this.getSortIndex()-n.getSortIndex():this.isEmpty()&&n.isEmpty()?0:this.isEmpty()?-1:n.isEmpty()?1:this.compareToSameClass(n,r)}},Zc.prototype.getUserData=function(){return this._userData},Zc.prototype.getSRID=function(){return this._SRID},Zc.prototype.getEnvelope=function(){return this.getFactory().toGeometry(this.getEnvelopeInternal())},Zc.prototype.checkNotGeometryCollection=function(t){if(t.getSortIndex()===Zc.SORTINDEX_GEOMETRYCOLLECTION)throw new nc("This method does not support GeometryCollection arguments")},Zc.prototype.equal=function(t,e,n){return 0===n?t.equals(e):t.distance(e)<=n},Zc.prototype.norm=function(){var t=this.copy();return t.normalize(),t},Zc.prototype.getPrecisionModel=function(){return this._factory.getPrecisionModel()},Zc.prototype.getEnvelopeInternal=function(){return null===this._envelope&&(this._envelope=this.computeEnvelopeInternal()),new Lc(this._envelope)},Zc.prototype.setSRID=function(t){this._SRID=t},Zc.prototype.setUserData=function(t){this._userData=t},Zc.prototype.compare=function(t,e){for(var n=t.iterator(),r=e.iterator();n.hasNext()&&r.hasNext();){var i=n.next(),o=r.next(),s=i.compareTo(o);if(0!==s)return s}return n.hasNext()?1:r.hasNext()?-1:0},Zc.prototype.hashCode=function(){return this.getEnvelopeInternal().hashCode()},Zc.prototype.isGeometryCollectionOrDerived=function(){return this.getSortIndex()===Zc.SORTINDEX_GEOMETRYCOLLECTION||this.getSortIndex()===Zc.SORTINDEX_MULTIPOINT||this.getSortIndex()===Zc.SORTINDEX_MULTILINESTRING||this.getSortIndex()===Zc.SORTINDEX_MULTIPOLYGON},Zc.prototype.interfaces_=function(){return[sc,oc,uc]},Zc.prototype.getClass=function(){return Zc},Zc.hasNonEmptyElements=function(t){for(var e=0;e<t.length;e++)if(!t[e].isEmpty())return!0;return!1},Zc.hasNullElements=function(t){for(var e=0;e<t.length;e++)if(null===t[e])return!0;return!1},Kc.serialVersionUID.get=function(){return 0x799ea46522854c00},Kc.SORTINDEX_POINT.get=function(){return 0},Kc.SORTINDEX_MULTIPOINT.get=function(){return 1},Kc.SORTINDEX_LINESTRING.get=function(){return 2},Kc.SORTINDEX_LINEARRING.get=function(){return 3},Kc.SORTINDEX_MULTILINESTRING.get=function(){return 4},Kc.SORTINDEX_POLYGON.get=function(){return 5},Kc.SORTINDEX_MULTIPOLYGON.get=function(){return 6},Kc.SORTINDEX_GEOMETRYCOLLECTION.get=function(){return 7},Kc.geometryChangedFilter.get=function(){return Jc},Object.defineProperties(Zc,Kc);var Jc=function(){};Jc.interfaces_=function(){return[Hc]},Jc.filter=function(t){t.geometryChangedAction()};var Qc=function(){};Qc.prototype.filter=function(t){},Qc.prototype.interfaces_=function(){return[]},Qc.prototype.getClass=function(){return Qc};var $c=function(){},tl={Mod2BoundaryNodeRule:{configurable:!0},EndPointBoundaryNodeRule:{configurable:!0},MultiValentEndPointBoundaryNodeRule:{configurable:!0},MonoValentEndPointBoundaryNodeRule:{configurable:!0},MOD2_BOUNDARY_RULE:{configurable:!0},ENDPOINT_BOUNDARY_RULE:{configurable:!0},MULTIVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},MONOVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},OGC_SFS_BOUNDARY_RULE:{configurable:!0}};$c.prototype.isInBoundary=function(t){},$c.prototype.interfaces_=function(){return[]},$c.prototype.getClass=function(){return $c},tl.Mod2BoundaryNodeRule.get=function(){return el},tl.EndPointBoundaryNodeRule.get=function(){return nl},tl.MultiValentEndPointBoundaryNodeRule.get=function(){return rl},tl.MonoValentEndPointBoundaryNodeRule.get=function(){return il},tl.MOD2_BOUNDARY_RULE.get=function(){return new el},tl.ENDPOINT_BOUNDARY_RULE.get=function(){return new nl},tl.MULTIVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new rl},tl.MONOVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new il},tl.OGC_SFS_BOUNDARY_RULE.get=function(){return $c.MOD2_BOUNDARY_RULE},Object.defineProperties($c,tl);var el=function(){};el.prototype.isInBoundary=function(t){return t%2==1},el.prototype.interfaces_=function(){return[$c]},el.prototype.getClass=function(){return el};var nl=function(){};nl.prototype.isInBoundary=function(t){return t>0},nl.prototype.interfaces_=function(){return[$c]},nl.prototype.getClass=function(){return nl};var rl=function(){};rl.prototype.isInBoundary=function(t){return t>1},rl.prototype.interfaces_=function(){return[$c]},rl.prototype.getClass=function(){return rl};var il=function(){};il.prototype.isInBoundary=function(t){return 1===t},il.prototype.interfaces_=function(){return[$c]},il.prototype.getClass=function(){return il};var ol=function(){};function sl(t){this.message=t||""}ol.prototype.add=function(){},ol.prototype.addAll=function(){},ol.prototype.isEmpty=function(){},ol.prototype.iterator=function(){},ol.prototype.size=function(){},ol.prototype.toArray=function(){},ol.prototype.remove=function(){},sl.prototype=new Error,sl.prototype.name="IndexOutOfBoundsException";var al=function(){};al.prototype.hasNext=function(){},al.prototype.next=function(){},al.prototype.remove=function(){};var ul=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(){},e.prototype.set=function(){},e.prototype.isEmpty=function(){},e}(ol);function cl(t){this.message=t||""}cl.prototype=new Error,cl.prototype.name="NoSuchElementException";var ll=function(t){function e(){t.call(this),this.array_=[],arguments[0]instanceof ol&&this.addAll(arguments[0])}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.ensureCapacity=function(){},e.prototype.interfaces_=function(){return[t,ol]},e.prototype.add=function(t){return 1===arguments.length?this.array_.push(t):this.array_.splice(arguments[0],arguments[1]),!0},e.prototype.clear=function(){this.array_=[]},e.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},e.prototype.set=function(t,e){var n=this.array_[t];return this.array_[t]=e,n},e.prototype.iterator=function(){return new hl(this)},e.prototype.get=function(t){if(t<0||t>=this.size())throw new sl;return this.array_[t]},e.prototype.isEmpty=function(){return 0===this.array_.length},e.prototype.size=function(){return this.array_.length},e.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t},e.prototype.remove=function(t){for(var e=!1,n=0,r=this.array_.length;n<r;n++)if(this.array_[n]===t){this.array_.splice(n,1),e=!0;break}return e},e}(ul),hl=function(t){function e(e){t.call(this),this.arrayList_=e,this.position_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){if(this.position_===this.arrayList_.size())throw new cl;return this.arrayList_.get(this.position_++)},e.prototype.hasNext=function(){return this.position_<this.arrayList_.size()},e.prototype.set=function(t){return this.arrayList_.set(this.position_-1,t)},e.prototype.remove=function(){this.arrayList_.remove(this.arrayList_.get(this.position_))},e}(al),fl=function(t){function e(){if(t.call(this),0===arguments.length);else if(1===arguments.length){var e=arguments[0];this.ensureCapacity(e.length),this.add(e,!0)}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.ensureCapacity(n.length),this.add(n,r)}}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={coordArrayType:{configurable:!0}};return n.coordArrayType.get=function(){return new Array(0).fill(null)},e.prototype.getCoordinate=function(t){return this.get(t)},e.prototype.addAll=function(){var e=this;if(2===arguments.length){for(var n=arguments[0],r=arguments[1],i=!1,o=n.iterator();o.hasNext();)e.add(o.next(),r),i=!0;return i}return t.prototype.addAll.apply(this,arguments)},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=0;n<this.size();n++)e.add(n,this.get(n).copy());return e},e.prototype.toCoordinateArray=function(){return this.toArray(e.coordArrayType)},e.prototype.add=function(){var e=this;if(1===arguments.length){var n=arguments[0];t.prototype.add.call(this,n)}else if(2===arguments.length){if(arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var r=arguments[0],i=arguments[1];return this.add(r,i,!0),!0}if(arguments[0]instanceof cc&&"boolean"==typeof arguments[1]){var o=arguments[0],s=arguments[1];if(!s&&this.size()>=1){var a=this.get(this.size()-1);if(a.equals2D(o))return null}t.prototype.add.call(this,o)}else if(arguments[0]instanceof Object&&"boolean"==typeof arguments[1]){var u=arguments[0],c=arguments[1];return this.add(u,c),!0}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var l=arguments[0],h=arguments[1],f=arguments[2];if(f)for(var p=0;p<l.length;p++)e.add(l[p],h);else for(var d=l.length-1;d>=0;d--)e.add(l[d],h);return!0}if("boolean"==typeof arguments[2]&&Number.isInteger(arguments[0])&&arguments[1]instanceof cc){var g=arguments[0],y=arguments[1],v=arguments[2];if(!v){var _=this.size();if(_>0){if(g>0){var m=this.get(g-1);if(m.equals2D(y))return null}if(g<_){var b=this.get(g);if(b.equals2D(y))return null}}}t.prototype.add.call(this,g,y)}}else if(4===arguments.length){var E=arguments[0],w=arguments[1],x=arguments[2],O=arguments[3],S=1;x>O&&(S=-1);for(var C=x;C!==O;C+=S)e.add(E[C],w);return!0}},e.prototype.closeRing=function(){this.size()>0&&this.add(new cc(this.get(0)),!1)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},Object.defineProperties(e,n),e}(ll),pl=function(){},dl={ForwardComparator:{configurable:!0},BidirectionalComparator:{configurable:!0},coordArrayType:{configurable:!0}};dl.ForwardComparator.get=function(){return gl},dl.BidirectionalComparator.get=function(){return yl},dl.coordArrayType.get=function(){return new Array(0).fill(null)},pl.prototype.interfaces_=function(){return[]},pl.prototype.getClass=function(){return pl},pl.isRing=function(t){return!(t.length<4)&&!!t[0].equals2D(t[t.length-1])},pl.ptNotInList=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(pl.indexOf(r,e)<0)return r}return null},pl.scroll=function(t,e){var n=pl.indexOf(e,t);if(n<0)return null;var r=new Array(t.length).fill(null);Rc.arraycopy(t,n,r,0,t.length-n),Rc.arraycopy(t,0,r,t.length-n,n),Rc.arraycopy(r,0,t,0,t.length)},pl.equals=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];if(t===e)return!0;if(null===t||null===e)return!1;if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!t[n].equals(e[n]))return!1;return!0}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];if(r===i)return!0;if(null===r||null===i)return!1;if(r.length!==i.length)return!1;for(var s=0;s<r.length;s++)if(0!==o.compare(r[s],i[s]))return!1;return!0}},pl.intersection=function(t,e){for(var n=new fl,r=0;r<t.length;r++)e.intersects(t[r])&&n.add(t[r],!0);return n.toCoordinateArray()},pl.hasRepeatedPoints=function(t){for(var e=1;e<t.length;e++)if(t[e-1].equals(t[e]))return!0;return!1},pl.removeRepeatedPoints=function(t){return pl.hasRepeatedPoints(t)?new fl(t,!1).toCoordinateArray():t},pl.reverse=function(t){for(var e=t.length-1,n=Math.trunc(e/2),r=0;r<=n;r++){var i=t[r];t[r]=t[e-r],t[e-r]=i}},pl.removeNull=function(t){for(var e=0,n=0;n<t.length;n++)null!==t[n]&&e++;var r=new Array(e).fill(null);if(0===e)return r;for(var i=0,o=0;o<t.length;o++)null!==t[o]&&(r[i++]=t[o]);return r},pl.copyDeep=function(){if(1===arguments.length){for(var t=arguments[0],e=new Array(t.length).fill(null),n=0;n<t.length;n++)e[n]=new cc(t[n]);return e}if(5===arguments.length)for(var r=arguments[0],i=arguments[1],o=arguments[2],s=arguments[3],a=arguments[4],u=0;u<a;u++)o[s+u]=new cc(r[i+u])},pl.isEqualReversed=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[t.length-n-1];if(0!==r.compareTo(i))return!1}return!0},pl.envelope=function(t){for(var e=new Lc,n=0;n<t.length;n++)e.expandToInclude(t[n]);return e},pl.toCoordinateArray=function(t){return t.toArray(pl.coordArrayType)},pl.atLeastNCoordinatesOrNothing=function(t,e){return e.length>=t?e:[]},pl.indexOf=function(t,e){for(var n=0;n<e.length;n++)if(t.equals(e[n]))return n;return-1},pl.increasingDirection=function(t){for(var e=0;e<Math.trunc(t.length/2);e++){var n=t.length-1-e,r=t[e].compareTo(t[n]);if(0!==r)return r}return 1},pl.compare=function(t,e){for(var n=0;n<t.length&&n<e.length;){var r=t[n].compareTo(e[n]);if(0!==r)return r;n++}return n<e.length?-1:n<t.length?1:0},pl.minCoordinate=function(t){for(var e=null,n=0;n<t.length;n++)(null===e||e.compareTo(t[n])>0)&&(e=t[n]);return e},pl.extract=function(t,e,n){e=yc.clamp(e,0,t.length);var r=(n=yc.clamp(n,-1,t.length))-e+1;n<0&&(r=0),e>=t.length&&(r=0),n<e&&(r=0);var i=new Array(r).fill(null);if(0===r)return i;for(var o=0,s=e;s<=n;s++)i[o++]=t[s];return i},Object.defineProperties(pl,dl);var gl=function(){};gl.prototype.compare=function(t,e){return pl.compare(t,e)},gl.prototype.interfaces_=function(){return[ac]},gl.prototype.getClass=function(){return gl};var yl=function(){};yl.prototype.compare=function(t,e){var n=t,r=e;if(n.length<r.length)return-1;if(n.length>r.length)return 1;if(0===n.length)return 0;var i=pl.compare(n,r);return pl.isEqualReversed(n,r)?0:i},yl.prototype.OLDcompare=function(t,e){var n=t,r=e;if(n.length<r.length)return-1;if(n.length>r.length)return 1;if(0===n.length)return 0;for(var i=pl.increasingDirection(n),o=pl.increasingDirection(r),s=i>0?0:n.length-1,a=o>0?0:n.length-1,u=0;u<n.length;u++){var c=n[s].compareTo(r[a]);if(0!==c)return c;s+=i,a+=o}return 0},yl.prototype.interfaces_=function(){return[ac]},yl.prototype.getClass=function(){return yl};var vl=function(){};vl.prototype.get=function(){},vl.prototype.put=function(){},vl.prototype.size=function(){},vl.prototype.values=function(){},vl.prototype.entrySet=function(){};var _l=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(vl);function ml(t){this.message=t||""}function bl(){}ml.prototype=new Error,ml.prototype.name="OperationNotSupported",bl.prototype=new ol,bl.prototype.contains=function(){};var El=function(t){function e(){t.call(this),this.array_=[],arguments[0]instanceof ol&&this.addAll(arguments[0])}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.contains=function(t){for(var e=0,n=this.array_.length;e<n;e++)if(this.array_[e]===t)return!0;return!1},e.prototype.add=function(t){return!this.contains(t)&&(this.array_.push(t),!0)},e.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},e.prototype.remove=function(t){throw new Error},e.prototype.size=function(){return this.array_.length},e.prototype.isEmpty=function(){return 0===this.array_.length},e.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t},e.prototype.iterator=function(){return new wl(this)},e}(bl),wl=function(t){function e(e){t.call(this),this.hashSet_=e,this.position_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){if(this.position_===this.hashSet_.size())throw new cl;return this.hashSet_.array_[this.position_++]},e.prototype.hasNext=function(){return this.position_<this.hashSet_.size()},e.prototype.remove=function(){throw new ml},e}(al);function xl(t){return null===t?0:t.color}function Ol(t){return null===t?null:t.parent}function Sl(t,e){null!==t&&(t.color=e)}function Cl(t){return null===t?null:t.left}function Il(t){return null===t?null:t.right}function Pl(){this.root_=null,this.size_=0}Pl.prototype=new _l,Pl.prototype.get=function(t){for(var e=this.root_;null!==e;){var n=t.compareTo(e.key);if(n<0)e=e.left;else{if(!(n>0))return e.value;e=e.right}}return null},Pl.prototype.put=function(t,e){if(null===this.root_)return this.root_={key:t,value:e,left:null,right:null,parent:null,color:0,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var n,r,i=this.root_;do{if(n=i,(r=t.compareTo(i.key))<0)i=i.left;else{if(!(r>0)){var o=i.value;return i.value=e,o}i=i.right}}while(null!==i);var s={key:t,left:null,right:null,value:e,parent:n,color:0,getValue:function(){return this.value},getKey:function(){return this.key}};return r<0?n.left=s:n.right=s,this.fixAfterInsertion(s),this.size_++,null},Pl.prototype.fixAfterInsertion=function(t){var e=this;for(t.color=1;null!=t&&t!==this.root_&&1===t.parent.color;)if(Ol(t)===Cl(Ol(Ol(t)))){var n=Il(Ol(Ol(t)));1===xl(n)?(Sl(Ol(t),0),Sl(n,0),Sl(Ol(Ol(t)),1),t=Ol(Ol(t))):(t===Il(Ol(t))&&(t=Ol(t),e.rotateLeft(t)),Sl(Ol(t),0),Sl(Ol(Ol(t)),1),e.rotateRight(Ol(Ol(t))))}else{var r=Cl(Ol(Ol(t)));1===xl(r)?(Sl(Ol(t),0),Sl(r,0),Sl(Ol(Ol(t)),1),t=Ol(Ol(t))):(t===Cl(Ol(t))&&(t=Ol(t),e.rotateRight(t)),Sl(Ol(t),0),Sl(Ol(Ol(t)),1),e.rotateLeft(Ol(Ol(t))))}this.root_.color=0},Pl.prototype.values=function(){var t=new ll,e=this.getFirstEntry();if(null!==e)for(t.add(e.value);null!==(e=Pl.successor(e));)t.add(e.value);return t},Pl.prototype.entrySet=function(){var t=new El,e=this.getFirstEntry();if(null!==e)for(t.add(e);null!==(e=Pl.successor(e));)t.add(e);return t},Pl.prototype.rotateLeft=function(t){if(null!=t){var e=t.right;t.right=e.left,null!=e.left&&(e.left.parent=t),e.parent=t.parent,null===t.parent?this.root_=e:t.parent.left===t?t.parent.left=e:t.parent.right=e,e.left=t,t.parent=e}},Pl.prototype.rotateRight=function(t){if(null!=t){var e=t.left;t.left=e.right,null!=e.right&&(e.right.parent=t),e.parent=t.parent,null===t.parent?this.root_=e:t.parent.right===t?t.parent.right=e:t.parent.left=e,e.right=t,t.parent=e}},Pl.prototype.getFirstEntry=function(){var t=this.root_;if(null!=t)for(;null!=t.left;)t=t.left;return t},Pl.successor=function(t){if(null===t)return null;if(null!==t.right){for(var e=t.right;null!==e.left;)e=e.left;return e}for(var n=t.parent,r=t;null!==n&&r===n.right;)r=n,n=n.parent;return n},Pl.prototype.size=function(){return this.size_};var Rl=function(){};function Tl(){}function Ll(){this.array_=[],arguments[0]instanceof ol&&this.addAll(arguments[0])}Rl.prototype.interfaces_=function(){return[]},Rl.prototype.getClass=function(){return Rl},Tl.prototype=new bl,Ll.prototype=new Tl,Ll.prototype.contains=function(t){for(var e=0,n=this.array_.length;e<n;e++)if(0===this.array_[e].compareTo(t))return!0;return!1},Ll.prototype.add=function(t){if(this.contains(t))return!1;for(var e=0,n=this.array_.length;e<n;e++)if(1===this.array_[e].compareTo(t))return this.array_.splice(e,0,t),!0;return this.array_.push(t),!0},Ll.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},Ll.prototype.remove=function(t){throw new ml},Ll.prototype.size=function(){return this.array_.length},Ll.prototype.isEmpty=function(){return 0===this.array_.length},Ll.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t},Ll.prototype.iterator=function(){return new Ml(this)};var Ml=function(t){this.treeSet_=t,this.position_=0};Ml.prototype.next=function(){if(this.position_===this.treeSet_.size())throw new cl;return this.treeSet_.array_[this.position_++]},Ml.prototype.hasNext=function(){return this.position_<this.treeSet_.size()},Ml.prototype.remove=function(){throw new ml};var Nl=function(){};Nl.sort=function(){var t,e,n,r,i=arguments[0];if(1===arguments.length)r=function(t,e){return t.compareTo(e)},i.sort(r);else if(2===arguments.length)n=arguments[1],r=function(t,e){return n.compare(t,e)},i.sort(r);else if(3===arguments.length){(e=i.slice(arguments[1],arguments[2])).sort();var o=i.slice(0,arguments[1]).concat(e,i.slice(arguments[2],i.length));for(i.splice(0,i.length),t=0;t<o.length;t++)i.push(o[t])}else if(4===arguments.length)for(e=i.slice(arguments[1],arguments[2]),n=arguments[3],r=function(t,e){return n.compare(t,e)},e.sort(r),o=i.slice(0,arguments[1]).concat(e,i.slice(arguments[2],i.length)),i.splice(0,i.length),t=0;t<o.length;t++)i.push(o[t])},Nl.asList=function(t){for(var e=new ll,n=0,r=t.length;n<r;n++)e.add(t[n]);return e};var Al=function(){},Fl={P:{configurable:!0},L:{configurable:!0},A:{configurable:!0},FALSE:{configurable:!0},TRUE:{configurable:!0},DONTCARE:{configurable:!0},SYM_FALSE:{configurable:!0},SYM_TRUE:{configurable:!0},SYM_DONTCARE:{configurable:!0},SYM_P:{configurable:!0},SYM_L:{configurable:!0},SYM_A:{configurable:!0}};Fl.P.get=function(){return 0},Fl.L.get=function(){return 1},Fl.A.get=function(){return 2},Fl.FALSE.get=function(){return-1},Fl.TRUE.get=function(){return-2},Fl.DONTCARE.get=function(){return-3},Fl.SYM_FALSE.get=function(){return"F"},Fl.SYM_TRUE.get=function(){return"T"},Fl.SYM_DONTCARE.get=function(){return"*"},Fl.SYM_P.get=function(){return"0"},Fl.SYM_L.get=function(){return"1"},Fl.SYM_A.get=function(){return"2"},Al.prototype.interfaces_=function(){return[]},Al.prototype.getClass=function(){return Al},Al.toDimensionSymbol=function(t){switch(t){case Al.FALSE:return Al.SYM_FALSE;case Al.TRUE:return Al.SYM_TRUE;case Al.DONTCARE:return Al.SYM_DONTCARE;case Al.P:return Al.SYM_P;case Al.L:return Al.SYM_L;case Al.A:return Al.SYM_A}throw new nc("Unknown dimension value: "+t)},Al.toDimensionValue=function(t){switch(bc.toUpperCase(t)){case Al.SYM_FALSE:return Al.FALSE;case Al.SYM_TRUE:return Al.TRUE;case Al.SYM_DONTCARE:return Al.DONTCARE;case Al.SYM_P:return Al.P;case Al.SYM_L:return Al.L;case Al.SYM_A:return Al.A}throw new nc("Unknown dimension symbol: "+t)},Object.defineProperties(Al,Fl);var jl=function(){};jl.prototype.filter=function(t){},jl.prototype.interfaces_=function(){return[]},jl.prototype.getClass=function(){return jl};var Dl=function(){};Dl.prototype.filter=function(t,e){},Dl.prototype.isDone=function(){},Dl.prototype.isGeometryChanged=function(){},Dl.prototype.interfaces_=function(){return[]},Dl.prototype.getClass=function(){return Dl};var kl=function(t){function e(e,n){if(t.call(this,n),this._geometries=e||[],t.hasNullElements(this._geometries))throw new nc("geometries must not contain null elements")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.computeEnvelopeInternal=function(){for(var t=new Lc,e=0;e<this._geometries.length;e++)t.expandToInclude(this._geometries[e].getEnvelopeInternal());return t},e.prototype.getGeometryN=function(t){return this._geometries[t]},e.prototype.getSortIndex=function(){return t.SORTINDEX_GEOMETRYCOLLECTION},e.prototype.getCoordinates=function(){for(var t=new Array(this.getNumPoints()).fill(null),e=-1,n=0;n<this._geometries.length;n++)for(var r=this._geometries[n].getCoordinates(),i=0;i<r.length;i++)t[++e]=r[i];return t},e.prototype.getArea=function(){for(var t=0,e=0;e<this._geometries.length;e++)t+=this._geometries[e].getArea();return t},e.prototype.equalsExact=function(){var e=this;if(2===arguments.length){var n=arguments[0],r=arguments[1];if(!this.isEquivalentClass(n))return!1;var i=n;if(this._geometries.length!==i._geometries.length)return!1;for(var o=0;o<this._geometries.length;o++)if(!e._geometries[o].equalsExact(i._geometries[o],r))return!1;return!0}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.normalize=function(){for(var t=0;t<this._geometries.length;t++)this._geometries[t].normalize();Nl.sort(this._geometries)},e.prototype.getCoordinate=function(){return this.isEmpty()?null:this._geometries[0].getCoordinate()},e.prototype.getBoundaryDimension=function(){for(var t=Al.FALSE,e=0;e<this._geometries.length;e++)t=Math.max(t,this._geometries[e].getBoundaryDimension());return t},e.prototype.getDimension=function(){for(var t=Al.FALSE,e=0;e<this._geometries.length;e++)t=Math.max(t,this._geometries[e].getDimension());return t},e.prototype.getLength=function(){for(var t=0,e=0;e<this._geometries.length;e++)t+=this._geometries[e].getLength();return t},e.prototype.getNumPoints=function(){for(var t=0,e=0;e<this._geometries.length;e++)t+=this._geometries[e].getNumPoints();return t},e.prototype.getNumGeometries=function(){return this._geometries.length},e.prototype.reverse=function(){for(var t=this._geometries.length,e=new Array(t).fill(null),n=0;n<this._geometries.length;n++)e[n]=this._geometries[n].reverse();return this.getFactory().createGeometryCollection(e)},e.prototype.compareToSameClass=function(){var t=this;if(1===arguments.length){var e=arguments[0],n=new Ll(Nl.asList(this._geometries)),r=new Ll(Nl.asList(e._geometries));return this.compare(n,r)}if(2===arguments.length){for(var i=arguments[0],o=arguments[1],s=i,a=this.getNumGeometries(),u=s.getNumGeometries(),c=0;c<a&&c<u;){var l=t.getGeometryN(c),h=s.getGeometryN(c),f=l.compareToSameClass(h,o);if(0!==f)return f;c++}return c<a?1:c<u?-1:0}},e.prototype.apply=function(){var t=this;if(gc(arguments[0],Qc))for(var e=arguments[0],n=0;n<this._geometries.length;n++)t._geometries[n].apply(e);else if(gc(arguments[0],Dl)){var r=arguments[0];if(0===this._geometries.length)return null;for(var i=0;i<this._geometries.length&&(t._geometries[i].apply(r),!r.isDone());i++);r.isGeometryChanged()&&this.geometryChanged()}else if(gc(arguments[0],jl)){var o=arguments[0];o.filter(this);for(var s=0;s<this._geometries.length;s++)t._geometries[s].apply(o)}else if(gc(arguments[0],Hc)){var a=arguments[0];a.filter(this);for(var u=0;u<this._geometries.length;u++)t._geometries[u].apply(a)}},e.prototype.getBoundary=function(){return this.checkNotGeometryCollection(this),Bc.shouldNeverReachHere(),null},e.prototype.clone=function(){var e=t.prototype.clone.call(this);e._geometries=new Array(this._geometries.length).fill(null);for(var n=0;n<this._geometries.length;n++)e._geometries[n]=this._geometries[n].clone();return e},e.prototype.getGeometryType=function(){return"GeometryCollection"},e.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),n=0;n<t.length;n++)t[n]=this._geometries[n].copy();return new e(t,this._factory)},e.prototype.isEmpty=function(){for(var t=0;t<this._geometries.length;t++)if(!this._geometries[t].isEmpty())return!1;return!0},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return-0x4f07bcb1f857d800},Object.defineProperties(e,n),e}(Zc),Gl=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return Zc.SORTINDEX_MULTILINESTRING},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!this.isEquivalentClass(e)&&t.prototype.equalsExact.call(this,e,n)}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.getBoundaryDimension=function(){return this.isClosed()?Al.FALSE:0},e.prototype.isClosed=function(){if(this.isEmpty())return!1;for(var t=0;t<this._geometries.length;t++)if(!this._geometries[t].isClosed())return!1;return!0},e.prototype.getDimension=function(){return 1},e.prototype.reverse=function(){for(var t=this._geometries.length,e=new Array(t).fill(null),n=0;n<this._geometries.length;n++)e[t-1-n]=this._geometries[n].reverse();return this.getFactory().createMultiLineString(e)},e.prototype.getBoundary=function(){return new Bl(this).getBoundary()},e.prototype.getGeometryType=function(){return"MultiLineString"},e.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),n=0;n<t.length;n++)t[n]=this._geometries[n].copy();return new e(t,this._factory)},e.prototype.interfaces_=function(){return[Rl]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return 0x7155d2ab4afa8000},Object.defineProperties(e,n),e}(kl),Bl=function(){if(this._geom=null,this._geomFact=null,this._bnRule=null,this._endpointMap=null,1===arguments.length){var t=arguments[0],e=$c.MOD2_BOUNDARY_RULE;this._geom=t,this._geomFact=t.getFactory(),this._bnRule=e}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this._geom=n,this._geomFact=n.getFactory(),this._bnRule=r}};Bl.prototype.boundaryMultiLineString=function(t){if(this._geom.isEmpty())return this.getEmptyMultiPoint();var e=this.computeBoundaryCoordinates(t);return 1===e.length?this._geomFact.createPoint(e[0]):this._geomFact.createMultiPointFromCoords(e)},Bl.prototype.getBoundary=function(){return this._geom instanceof Jl?this.boundaryLineString(this._geom):this._geom instanceof Gl?this.boundaryMultiLineString(this._geom):this._geom.getBoundary()},Bl.prototype.boundaryLineString=function(t){return this._geom.isEmpty()?this.getEmptyMultiPoint():t.isClosed()?this._bnRule.isInBoundary(2)?t.getStartPoint():this._geomFact.createMultiPoint():this._geomFact.createMultiPoint([t.getStartPoint(),t.getEndPoint()])},Bl.prototype.getEmptyMultiPoint=function(){return this._geomFact.createMultiPoint()},Bl.prototype.computeBoundaryCoordinates=function(t){var e=this,n=new ll;this._endpointMap=new Pl;for(var r=0;r<t.getNumGeometries();r++){var i=t.getGeometryN(r);0!==i.getNumPoints()&&(e.addEndpoint(i.getCoordinateN(0)),e.addEndpoint(i.getCoordinateN(i.getNumPoints()-1)))}for(var o=this._endpointMap.entrySet().iterator();o.hasNext();){var s=o.next(),a=s.getValue().count;e._bnRule.isInBoundary(a)&&n.add(s.getKey())}return pl.toCoordinateArray(n)},Bl.prototype.addEndpoint=function(t){var e=this._endpointMap.get(t);null===e&&(e=new Ul,this._endpointMap.put(t,e)),e.count++},Bl.prototype.interfaces_=function(){return[]},Bl.prototype.getClass=function(){return Bl},Bl.getBoundary=function(){if(1===arguments.length){var t=arguments[0],e=new Bl(t);return e.getBoundary()}if(2===arguments.length){var n=arguments[0],r=arguments[1],i=new Bl(n,r);return i.getBoundary()}};var Ul=function(){this.count=null};function zl(){}function Yl(){}Ul.prototype.interfaces_=function(){return[]},Ul.prototype.getClass=function(){return Ul};var Xl=function(){};function Vl(){}function ql(){}function Wl(){}var Hl=function(){},Zl={NEWLINE:{configurable:!0},SIMPLE_ORDINATE_FORMAT:{configurable:!0}};Hl.prototype.interfaces_=function(){return[]},Hl.prototype.getClass=function(){return Hl},Hl.chars=function(t,e){for(var n=new Array(e).fill(null),r=0;r<e;r++)n[r]=t;return String(n)},Hl.getStackTrace=function(){if(1===arguments.length){var t=arguments[0],e=new Vl,n=new zl(e);return t.printStackTrace(n),e.toString()}if(2===arguments.length){for(var r=arguments[0],i=arguments[1],o="",s=new Yl(Hl.getStackTrace(r)),a=new Wl(s),u=0;u<i;u++)try{o+=a.readLine()+Hl.NEWLINE}catch(t){if(!(t instanceof ql))throw t;Bc.shouldNeverReachHere()}return o}},Hl.split=function(t,e){for(var n=e.length,r=new ll,i=""+t,o=i.indexOf(e);o>=0;){var s=i.substring(0,o);r.add(s),o=(i=i.substring(o+n)).indexOf(e)}i.length>0&&r.add(i);for(var a=new Array(r.size()).fill(null),u=0;u<a.length;u++)a[u]=r.get(u);return a},Hl.toString=function(){if(1===arguments.length){var t=arguments[0];return Hl.SIMPLE_ORDINATE_FORMAT.format(t)}},Hl.spaces=function(t){return Hl.chars(" ",t)},Zl.NEWLINE.get=function(){return Rc.getProperty("line.separator")},Zl.SIMPLE_ORDINATE_FORMAT.get=function(){return new Xl("0.#")},Object.defineProperties(Hl,Zl);var Kl=function(){};Kl.prototype.interfaces_=function(){return[]},Kl.prototype.getClass=function(){return Kl},Kl.copyCoord=function(t,e,n,r){for(var i=Math.min(t.getDimension(),n.getDimension()),o=0;o<i;o++)n.setOrdinate(r,o,t.getOrdinate(e,o))},Kl.isRing=function(t){var e=t.size();return 0===e||!(e<=3)&&t.getOrdinate(0,Sc.X)===t.getOrdinate(e-1,Sc.X)&&t.getOrdinate(0,Sc.Y)===t.getOrdinate(e-1,Sc.Y)},Kl.isEqual=function(t,e){var n=t.size();if(n!==e.size())return!1;for(var r=Math.min(t.getDimension(),e.getDimension()),i=0;i<n;i++)for(var o=0;o<r;o++){var s=t.getOrdinate(i,o),a=e.getOrdinate(i,o);if(t.getOrdinate(i,o)!==e.getOrdinate(i,o)&&(!rc.isNaN(s)||!rc.isNaN(a)))return!1}return!0},Kl.extend=function(t,e,n){var r=t.create(n,e.getDimension()),i=e.size();if(Kl.copy(e,0,r,0,i),i>0)for(var o=i;o<n;o++)Kl.copy(e,i-1,r,o,1);return r},Kl.reverse=function(t){for(var e=t.size()-1,n=Math.trunc(e/2),r=0;r<=n;r++)Kl.swap(t,r,e-r)},Kl.swap=function(t,e,n){if(e===n)return null;for(var r=0;r<t.getDimension();r++){var i=t.getOrdinate(e,r);t.setOrdinate(e,r,t.getOrdinate(n,r)),t.setOrdinate(n,r,i)}},Kl.copy=function(t,e,n,r,i){for(var o=0;o<i;o++)Kl.copyCoord(t,e+o,n,r+o)},Kl.toString=function(){if(1===arguments.length){var t=arguments[0],e=t.size();if(0===e)return"()";var n=t.getDimension(),r=new _c;r.append("(");for(var i=0;i<e;i++){i>0&&r.append(" ");for(var o=0;o<n;o++)o>0&&r.append(","),r.append(Hl.toString(t.getOrdinate(i,o)))}return r.append(")"),r.toString()}},Kl.ensureValidRing=function(t,e){var n=e.size();return 0===n?e:n<=3?Kl.createClosedRing(t,e,4):e.getOrdinate(0,Sc.X)===e.getOrdinate(n-1,Sc.X)&&e.getOrdinate(0,Sc.Y)===e.getOrdinate(n-1,Sc.Y)?e:Kl.createClosedRing(t,e,n+1)},Kl.createClosedRing=function(t,e,n){var r=t.create(n,e.getDimension()),i=e.size();Kl.copy(e,0,r,0,i);for(var o=i;o<n;o++)Kl.copy(e,0,r,o,1);return r};var Jl=function(t){function e(e,n){t.call(this,n),this._points=null,this.init(e)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.computeEnvelopeInternal=function(){return this.isEmpty()?new Lc:this._points.expandEnvelope(new Lc)},e.prototype.isRing=function(){return this.isClosed()&&this.isSimple()},e.prototype.getSortIndex=function(){return t.SORTINDEX_LINESTRING},e.prototype.getCoordinates=function(){return this._points.toCoordinateArray()},e.prototype.equalsExact=function(){var e=this;if(2===arguments.length){var n=arguments[0],r=arguments[1];if(!this.isEquivalentClass(n))return!1;var i=n;if(this._points.size()!==i._points.size())return!1;for(var o=0;o<this._points.size();o++)if(!e.equal(e._points.getCoordinate(o),i._points.getCoordinate(o),r))return!1;return!0}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.normalize=function(){for(var t=this,e=0;e<Math.trunc(this._points.size()/2);e++){var n=t._points.size()-1-e;if(!t._points.getCoordinate(e).equals(t._points.getCoordinate(n)))return t._points.getCoordinate(e).compareTo(t._points.getCoordinate(n))>0&&Kl.reverse(t._points),null}},e.prototype.getCoordinate=function(){return this.isEmpty()?null:this._points.getCoordinate(0)},e.prototype.getBoundaryDimension=function(){return this.isClosed()?Al.FALSE:0},e.prototype.isClosed=function(){return!this.isEmpty()&&this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},e.prototype.getEndPoint=function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},e.prototype.getDimension=function(){return 1},e.prototype.getLength=function(){return qc.computeLength(this._points)},e.prototype.getNumPoints=function(){return this._points.size()},e.prototype.reverse=function(){var t=this._points.copy();return Kl.reverse(t),this.getFactory().createLineString(t)},e.prototype.compareToSameClass=function(){var t=this;if(1===arguments.length){for(var e=arguments[0],n=e,r=0,i=0;r<this._points.size()&&i<n._points.size();){var o=t._points.getCoordinate(r).compareTo(n._points.getCoordinate(i));if(0!==o)return o;r++,i++}return r<this._points.size()?1:i<n._points.size()?-1:0}if(2===arguments.length){var s=arguments[0],a=arguments[1],u=s;return a.compare(this._points,u._points)}},e.prototype.apply=function(){var t=this;if(gc(arguments[0],Qc))for(var e=arguments[0],n=0;n<this._points.size();n++)e.filter(t._points.getCoordinate(n));else if(gc(arguments[0],Dl)){var r=arguments[0];if(0===this._points.size())return null;for(var i=0;i<this._points.size()&&(r.filter(t._points,i),!r.isDone());i++);r.isGeometryChanged()&&this.geometryChanged()}else if(gc(arguments[0],jl)){var o=arguments[0];o.filter(this)}else if(gc(arguments[0],Hc)){var s=arguments[0];s.filter(this)}},e.prototype.getBoundary=function(){return new Bl(this).getBoundary()},e.prototype.isEquivalentClass=function(t){return t instanceof e},e.prototype.clone=function(){var e=t.prototype.clone.call(this);return e._points=this._points.clone(),e},e.prototype.getCoordinateN=function(t){return this._points.getCoordinate(t)},e.prototype.getGeometryType=function(){return"LineString"},e.prototype.copy=function(){return new e(this._points.copy(),this._factory)},e.prototype.getCoordinateSequence=function(){return this._points},e.prototype.isEmpty=function(){return 0===this._points.size()},e.prototype.init=function(t){if(null===t&&(t=this.getFactory().getCoordinateSequenceFactory().create([])),1===t.size())throw new nc("Invalid number of points in LineString (found "+t.size()+" - must be 0 or >= 2)");this._points=t},e.prototype.isCoordinate=function(t){for(var e=0;e<this._points.size();e++)if(this._points.getCoordinate(e).equals(t))return!0;return!1},e.prototype.getStartPoint=function(){return this.isEmpty()?null:this.getPointN(0)},e.prototype.getPointN=function(t){return this.getFactory().createPoint(this._points.getCoordinate(t))},e.prototype.interfaces_=function(){return[Rl]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return 0x2b2b51ba435c8e00},Object.defineProperties(e,n),e}(Zc),Ql=function(){};Ql.prototype.interfaces_=function(){return[]},Ql.prototype.getClass=function(){return Ql};var $l=function(t){function e(e,n){t.call(this,n),this._coordinates=e||null,this.init(this._coordinates)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.computeEnvelopeInternal=function(){if(this.isEmpty())return new Lc;var t=new Lc;return t.expandToInclude(this._coordinates.getX(0),this._coordinates.getY(0)),t},e.prototype.getSortIndex=function(){return t.SORTINDEX_POINT},e.prototype.getCoordinates=function(){return this.isEmpty()?[]:[this.getCoordinate()]},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!this.isEquivalentClass(e)&&(!(!this.isEmpty()||!e.isEmpty())||this.isEmpty()===e.isEmpty()&&this.equal(e.getCoordinate(),this.getCoordinate(),n))}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.normalize=function(){},e.prototype.getCoordinate=function(){return 0!==this._coordinates.size()?this._coordinates.getCoordinate(0):null},e.prototype.getBoundaryDimension=function(){return Al.FALSE},e.prototype.getDimension=function(){return 0},e.prototype.getNumPoints=function(){return this.isEmpty()?0:1},e.prototype.reverse=function(){return this.copy()},e.prototype.getX=function(){if(null===this.getCoordinate())throw new Error("getX called on empty Point");return this.getCoordinate().x},e.prototype.compareToSameClass=function(){if(1===arguments.length){var t=arguments[0],e=t;return this.getCoordinate().compareTo(e.getCoordinate())}if(2===arguments.length){var n=arguments[0],r=arguments[1],i=n;return r.compare(this._coordinates,i._coordinates)}},e.prototype.apply=function(){if(gc(arguments[0],Qc)){var t=arguments[0];if(this.isEmpty())return null;t.filter(this.getCoordinate())}else if(gc(arguments[0],Dl)){var e=arguments[0];if(this.isEmpty())return null;e.filter(this._coordinates,0),e.isGeometryChanged()&&this.geometryChanged()}else if(gc(arguments[0],jl)){var n=arguments[0];n.filter(this)}else if(gc(arguments[0],Hc)){var r=arguments[0];r.filter(this)}},e.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},e.prototype.clone=function(){var e=t.prototype.clone.call(this);return e._coordinates=this._coordinates.clone(),e},e.prototype.getGeometryType=function(){return"Point"},e.prototype.copy=function(){return new e(this._coordinates.copy(),this._factory)},e.prototype.getCoordinateSequence=function(){return this._coordinates},e.prototype.getY=function(){if(null===this.getCoordinate())throw new Error("getY called on empty Point");return this.getCoordinate().y},e.prototype.isEmpty=function(){return 0===this._coordinates.size()},e.prototype.init=function(t){null===t&&(t=this.getFactory().getCoordinateSequenceFactory().create([])),Bc.isTrue(t.size()<=1),this._coordinates=t},e.prototype.isSimple=function(){return!0},e.prototype.interfaces_=function(){return[Ql]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return 0x44077bad161cbc00},Object.defineProperties(e,n),e}(Zc),th=function(){};th.prototype.interfaces_=function(){return[]},th.prototype.getClass=function(){return th};var eh=function(t){function e(e,n,r){if(t.call(this,r),this._shell=null,this._holes=null,null===e&&(e=this.getFactory().createLinearRing()),null===n&&(n=[]),t.hasNullElements(n))throw new nc("holes must not contain null elements");if(e.isEmpty()&&t.hasNonEmptyElements(n))throw new nc("shell is empty but holes are not");this._shell=e,this._holes=n}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.computeEnvelopeInternal=function(){return this._shell.getEnvelopeInternal()},e.prototype.getSortIndex=function(){return t.SORTINDEX_POLYGON},e.prototype.getCoordinates=function(){if(this.isEmpty())return[];for(var t=new Array(this.getNumPoints()).fill(null),e=-1,n=this._shell.getCoordinates(),r=0;r<n.length;r++)t[++e]=n[r];for(var i=0;i<this._holes.length;i++)for(var o=this._holes[i].getCoordinates(),s=0;s<o.length;s++)t[++e]=o[s];return t},e.prototype.getArea=function(){var t=0;t+=Math.abs(qc.signedArea(this._shell.getCoordinateSequence()));for(var e=0;e<this._holes.length;e++)t-=Math.abs(qc.signedArea(this._holes[e].getCoordinateSequence()));return t},e.prototype.isRectangle=function(){if(0!==this.getNumInteriorRing())return!1;if(null===this._shell)return!1;if(5!==this._shell.getNumPoints())return!1;for(var t=this._shell.getCoordinateSequence(),e=this.getEnvelopeInternal(),n=0;n<5;n++){var r=t.getX(n);if(r!==e.getMinX()&&r!==e.getMaxX())return!1;var i=t.getY(n);if(i!==e.getMinY()&&i!==e.getMaxY())return!1}for(var o=t.getX(0),s=t.getY(0),a=1;a<=4;a++){var u=t.getX(a),c=t.getY(a);if(u!==o===(c!==s))return!1;o=u,s=c}return!0},e.prototype.equalsExact=function(){var e=this;if(2===arguments.length){var n=arguments[0],r=arguments[1];if(!this.isEquivalentClass(n))return!1;var i=n,o=this._shell,s=i._shell;if(!o.equalsExact(s,r))return!1;if(this._holes.length!==i._holes.length)return!1;for(var a=0;a<this._holes.length;a++)if(!e._holes[a].equalsExact(i._holes[a],r))return!1;return!0}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.normalize=function(){var t=this;if(0===arguments.length){this.normalize(this._shell,!0);for(var e=0;e<this._holes.length;e++)t.normalize(t._holes[e],!1);Nl.sort(this._holes)}else if(2===arguments.length){var n=arguments[0],r=arguments[1];if(n.isEmpty())return null;var i=new Array(n.getCoordinates().length-1).fill(null);Rc.arraycopy(n.getCoordinates(),0,i,0,i.length);var o=pl.minCoordinate(n.getCoordinates());pl.scroll(i,o),Rc.arraycopy(i,0,n.getCoordinates(),0,i.length),n.getCoordinates()[i.length]=i[0],qc.isCCW(n.getCoordinates())===r&&pl.reverse(n.getCoordinates())}},e.prototype.getCoordinate=function(){return this._shell.getCoordinate()},e.prototype.getNumInteriorRing=function(){return this._holes.length},e.prototype.getBoundaryDimension=function(){return 1},e.prototype.getDimension=function(){return 2},e.prototype.getLength=function(){var t=0;t+=this._shell.getLength();for(var e=0;e<this._holes.length;e++)t+=this._holes[e].getLength();return t},e.prototype.getNumPoints=function(){for(var t=this._shell.getNumPoints(),e=0;e<this._holes.length;e++)t+=this._holes[e].getNumPoints();return t},e.prototype.reverse=function(){var t=this.copy();t._shell=this._shell.copy().reverse(),t._holes=new Array(this._holes.length).fill(null);for(var e=0;e<this._holes.length;e++)t._holes[e]=this._holes[e].copy().reverse();return t},e.prototype.convexHull=function(){return this.getExteriorRing().convexHull()},e.prototype.compareToSameClass=function(){var t=this;if(1===arguments.length){var e=arguments[0],n=this._shell,r=e._shell;return n.compareToSameClass(r)}if(2===arguments.length){var i=arguments[0],o=arguments[1],s=i,a=this._shell,u=s._shell,c=a.compareToSameClass(u,o);if(0!==c)return c;for(var l=this.getNumInteriorRing(),h=s.getNumInteriorRing(),f=0;f<l&&f<h;){var p=t.getInteriorRingN(f),d=s.getInteriorRingN(f),g=p.compareToSameClass(d,o);if(0!==g)return g;f++}return f<l?1:f<h?-1:0}},e.prototype.apply=function(t){var e=this;if(gc(t,Qc)){this._shell.apply(t);for(var n=0;n<this._holes.length;n++)e._holes[n].apply(t)}else if(gc(t,Dl)){if(this._shell.apply(t),!t.isDone())for(var r=0;r<this._holes.length&&(e._holes[r].apply(t),!t.isDone());r++);t.isGeometryChanged()&&this.geometryChanged()}else if(gc(t,jl))t.filter(this);else if(gc(t,Hc)){t.filter(this),this._shell.apply(t);for(var i=0;i<this._holes.length;i++)e._holes[i].apply(t)}},e.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();var t=new Array(this._holes.length+1).fill(null);t[0]=this._shell;for(var e=0;e<this._holes.length;e++)t[e+1]=this._holes[e];return t.length<=1?this.getFactory().createLinearRing(t[0].getCoordinateSequence()):this.getFactory().createMultiLineString(t)},e.prototype.clone=function(){var e=t.prototype.clone.call(this);e._shell=this._shell.clone(),e._holes=new Array(this._holes.length).fill(null);for(var n=0;n<this._holes.length;n++)e._holes[n]=this._holes[n].clone();return e},e.prototype.getGeometryType=function(){return"Polygon"},e.prototype.copy=function(){for(var t=this._shell.copy(),n=new Array(this._holes.length).fill(null),r=0;r<n.length;r++)n[r]=this._holes[r].copy();return new e(t,n,this._factory)},e.prototype.getExteriorRing=function(){return this._shell},e.prototype.isEmpty=function(){return this._shell.isEmpty()},e.prototype.getInteriorRingN=function(t){return this._holes[t]},e.prototype.interfaces_=function(){return[th]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return-0x307ffefd8dc97200},Object.defineProperties(e,n),e}(Zc),nh=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return Zc.SORTINDEX_MULTIPOINT},e.prototype.isValid=function(){return!0},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!this.isEquivalentClass(e)&&t.prototype.equalsExact.call(this,e,n)}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.getCoordinate=function(){if(1===arguments.length){var e=arguments[0];return this._geometries[e].getCoordinate()}return t.prototype.getCoordinate.apply(this,arguments)},e.prototype.getBoundaryDimension=function(){return Al.FALSE},e.prototype.getDimension=function(){return 0},e.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},e.prototype.getGeometryType=function(){return"MultiPoint"},e.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),n=0;n<t.length;n++)t[n]=this._geometries[n].copy();return new e(t,this._factory)},e.prototype.interfaces_=function(){return[Ql]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return-0x6fb1ed4162e0fc00},Object.defineProperties(e,n),e}(kl),rh=function(t){function e(e,n){e instanceof cc&&n instanceof mh&&(e=n.getCoordinateSequenceFactory().create(e)),t.call(this,e,n),this.validateConstruction()}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={MINIMUM_VALID_SIZE:{configurable:!0},serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return Zc.SORTINDEX_LINEARRING},e.prototype.getBoundaryDimension=function(){return Al.FALSE},e.prototype.isClosed=function(){return!!this.isEmpty()||t.prototype.isClosed.call(this)},e.prototype.reverse=function(){var t=this._points.copy();return Kl.reverse(t),this.getFactory().createLinearRing(t)},e.prototype.validateConstruction=function(){if(!this.isEmpty()&&!t.prototype.isClosed.call(this))throw new nc("Points of LinearRing do not form a closed linestring");if(this.getCoordinateSequence().size()>=1&&this.getCoordinateSequence().size()<e.MINIMUM_VALID_SIZE)throw new nc("Invalid number of points in LinearRing (found "+this.getCoordinateSequence().size()+" - must be 0 or >= 4)")},e.prototype.getGeometryType=function(){return"LinearRing"},e.prototype.copy=function(){return new e(this._points.copy(),this._factory)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},n.MINIMUM_VALID_SIZE.get=function(){return 4},n.serialVersionUID.get=function(){return-0x3b229e262367a600},Object.defineProperties(e,n),e}(Jl),ih=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return Zc.SORTINDEX_MULTIPOLYGON},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!this.isEquivalentClass(e)&&t.prototype.equalsExact.call(this,e,n)}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.getBoundaryDimension=function(){return 1},e.prototype.getDimension=function(){return 2},e.prototype.reverse=function(){for(var t=this._geometries.length,e=new Array(t).fill(null),n=0;n<this._geometries.length;n++)e[n]=this._geometries[n].reverse();return this.getFactory().createMultiPolygon(e)},e.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();for(var t=new ll,e=0;e<this._geometries.length;e++)for(var n=this._geometries[e].getBoundary(),r=0;r<n.getNumGeometries();r++)t.add(n.getGeometryN(r));var i=new Array(t.size()).fill(null);return this.getFactory().createMultiLineString(t.toArray(i))},e.prototype.getGeometryType=function(){return"MultiPolygon"},e.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),n=0;n<t.length;n++)t[n]=this._geometries[n].copy();return new e(t,this._factory)},e.prototype.interfaces_=function(){return[th]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return-0x7a5aa1369171980},Object.defineProperties(e,n),e}(kl),oh=function(t){this._factory=t||null,this._isUserDataCopied=!1},sh={NoOpGeometryOperation:{configurable:!0},CoordinateOperation:{configurable:!0},CoordinateSequenceOperation:{configurable:!0}};oh.prototype.setCopyUserData=function(t){this._isUserDataCopied=t},oh.prototype.edit=function(t,e){if(null===t)return null;var n=this.editInternal(t,e);return this._isUserDataCopied&&n.setUserData(t.getUserData()),n},oh.prototype.editInternal=function(t,e){return null===this._factory&&(this._factory=t.getFactory()),t instanceof kl?this.editGeometryCollection(t,e):t instanceof eh?this.editPolygon(t,e):t instanceof $l||t instanceof Jl?e.edit(t,this._factory):(Bc.shouldNeverReachHere("Unsupported Geometry class: "+t.getClass().getName()),null)},oh.prototype.editGeometryCollection=function(t,e){for(var n=e.edit(t,this._factory),r=new ll,i=0;i<n.getNumGeometries();i++){var o=this.edit(n.getGeometryN(i),e);null===o||o.isEmpty()||r.add(o)}return n.getClass()===nh?this._factory.createMultiPoint(r.toArray([])):n.getClass()===Gl?this._factory.createMultiLineString(r.toArray([])):n.getClass()===ih?this._factory.createMultiPolygon(r.toArray([])):this._factory.createGeometryCollection(r.toArray([]))},oh.prototype.editPolygon=function(t,e){var n=e.edit(t,this._factory);if(null===n&&(n=this._factory.createPolygon(null)),n.isEmpty())return n;var r=this.edit(n.getExteriorRing(),e);if(null===r||r.isEmpty())return this._factory.createPolygon();for(var i=new ll,o=0;o<n.getNumInteriorRing();o++){var s=this.edit(n.getInteriorRingN(o),e);null===s||s.isEmpty()||i.add(s)}return this._factory.createPolygon(r,i.toArray([]))},oh.prototype.interfaces_=function(){return[]},oh.prototype.getClass=function(){return oh},oh.GeometryEditorOperation=function(){},sh.NoOpGeometryOperation.get=function(){return ah},sh.CoordinateOperation.get=function(){return uh},sh.CoordinateSequenceOperation.get=function(){return ch},Object.defineProperties(oh,sh);var ah=function(){};ah.prototype.edit=function(t,e){return t},ah.prototype.interfaces_=function(){return[oh.GeometryEditorOperation]},ah.prototype.getClass=function(){return ah};var uh=function(){};uh.prototype.edit=function(t,e){var n=this.editCoordinates(t.getCoordinates(),t);return null===n?t:t instanceof rh?e.createLinearRing(n):t instanceof Jl?e.createLineString(n):t instanceof $l?n.length>0?e.createPoint(n[0]):e.createPoint():t},uh.prototype.interfaces_=function(){return[oh.GeometryEditorOperation]},uh.prototype.getClass=function(){return uh};var ch=function(){};ch.prototype.edit=function(t,e){return t instanceof rh?e.createLinearRing(this.edit(t.getCoordinateSequence(),t)):t instanceof Jl?e.createLineString(this.edit(t.getCoordinateSequence(),t)):t instanceof $l?e.createPoint(this.edit(t.getCoordinateSequence(),t)):t},ch.prototype.interfaces_=function(){return[oh.GeometryEditorOperation]},ch.prototype.getClass=function(){return ch};var lh=function(){var t=this;if(this._dimension=3,this._coordinates=null,1===arguments.length){if(arguments[0]instanceof Array)this._coordinates=arguments[0],this._dimension=3;else if(Number.isInteger(arguments[0])){var e=arguments[0];this._coordinates=new Array(e).fill(null);for(var n=0;n<e;n++)t._coordinates[n]=new cc}else if(gc(arguments[0],Sc)){var r=arguments[0];if(null===r)return this._coordinates=new Array(0).fill(null),null;this._dimension=r.getDimension(),this._coordinates=new Array(r.size()).fill(null);for(var i=0;i<this._coordinates.length;i++)t._coordinates[i]=r.getCoordinateCopy(i)}}else if(2===arguments.length)if(arguments[0]instanceof Array&&Number.isInteger(arguments[1])){var o=arguments[0],s=arguments[1];this._coordinates=o,this._dimension=s,null===o&&(this._coordinates=new Array(0).fill(null))}else if(Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var a=arguments[0],u=arguments[1];this._coordinates=new Array(a).fill(null),this._dimension=u;for(var c=0;c<a;c++)t._coordinates[c]=new cc}},hh={serialVersionUID:{configurable:!0}};lh.prototype.setOrdinate=function(t,e,n){switch(e){case Sc.X:this._coordinates[t].x=n;break;case Sc.Y:this._coordinates[t].y=n;break;case Sc.Z:this._coordinates[t].z=n;break;default:throw new nc("invalid ordinateIndex")}},lh.prototype.size=function(){return this._coordinates.length},lh.prototype.getOrdinate=function(t,e){switch(e){case Sc.X:return this._coordinates[t].x;case Sc.Y:return this._coordinates[t].y;case Sc.Z:return this._coordinates[t].z}return rc.NaN},lh.prototype.getCoordinate=function(){if(1===arguments.length){var t=arguments[0];return this._coordinates[t]}if(2===arguments.length){var e=arguments[0],n=arguments[1];n.x=this._coordinates[e].x,n.y=this._coordinates[e].y,n.z=this._coordinates[e].z}},lh.prototype.getCoordinateCopy=function(t){return new cc(this._coordinates[t])},lh.prototype.getDimension=function(){return this._dimension},lh.prototype.getX=function(t){return this._coordinates[t].x},lh.prototype.clone=function(){for(var t=new Array(this.size()).fill(null),e=0;e<this._coordinates.length;e++)t[e]=this._coordinates[e].clone();return new lh(t,this._dimension)},lh.prototype.expandEnvelope=function(t){for(var e=0;e<this._coordinates.length;e++)t.expandToInclude(this._coordinates[e]);return t},lh.prototype.copy=function(){for(var t=new Array(this.size()).fill(null),e=0;e<this._coordinates.length;e++)t[e]=this._coordinates[e].copy();return new lh(t,this._dimension)},lh.prototype.toString=function(){if(this._coordinates.length>0){var t=new _c(17*this._coordinates.length);t.append("("),t.append(this._coordinates[0]);for(var e=1;e<this._coordinates.length;e++)t.append(", "),t.append(this._coordinates[e]);return t.append(")"),t.toString()}return"()"},lh.prototype.getY=function(t){return this._coordinates[t].y},lh.prototype.toCoordinateArray=function(){return this._coordinates},lh.prototype.interfaces_=function(){return[Sc,uc]},lh.prototype.getClass=function(){return lh},hh.serialVersionUID.get=function(){return-0xcb44a778db18e00},Object.defineProperties(lh,hh);var fh=function(){},ph={serialVersionUID:{configurable:!0},instanceObject:{configurable:!0}};fh.prototype.readResolve=function(){return fh.instance()},fh.prototype.create=function(){if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return new lh(t)}if(gc(arguments[0],Sc)){var e=arguments[0];return new lh(e)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return r>3&&(r=3),r<2?new lh(n):new lh(n,r)}},fh.prototype.interfaces_=function(){return[fc,uc]},fh.prototype.getClass=function(){return fh},fh.instance=function(){return fh.instanceObject},ph.serialVersionUID.get=function(){return-0x38e49fa6cf6f2e00},ph.instanceObject.get=function(){return new fh},Object.defineProperties(fh,ph);var dh=function(t){function e(){t.call(this),this.map_=new Map}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return this.map_.get(t)||null},e.prototype.put=function(t,e){return this.map_.set(t,e),e},e.prototype.values=function(){for(var t=new ll,e=this.map_.values(),n=e.next();!n.done;)t.add(n.value),n=e.next();return t},e.prototype.entrySet=function(){var t=new El;return this.map_.entries().forEach((function(e){return t.add(e)})),t},e.prototype.size=function(){return this.map_.size()},e}(vl),gh=function t(){if(this._modelType=null,this._scale=null,0===arguments.length)this._modelType=t.FLOATING;else if(1===arguments.length)if(arguments[0]instanceof vh){var e=arguments[0];this._modelType=e,e===t.FIXED&&this.setScale(1)}else if("number"==typeof arguments[0]){var n=arguments[0];this._modelType=t.FIXED,this.setScale(n)}else if(arguments[0]instanceof t){var r=arguments[0];this._modelType=r._modelType,this._scale=r._scale}},yh={serialVersionUID:{configurable:!0},maximumPreciseValue:{configurable:!0}};gh.prototype.equals=function(t){if(!(t instanceof gh))return!1;var e=t;return this._modelType===e._modelType&&this._scale===e._scale},gh.prototype.compareTo=function(t){var e=t,n=this.getMaximumSignificantDigits(),r=e.getMaximumSignificantDigits();return new mc(n).compareTo(new mc(r))},gh.prototype.getScale=function(){return this._scale},gh.prototype.isFloating=function(){return this._modelType===gh.FLOATING||this._modelType===gh.FLOATING_SINGLE},gh.prototype.getType=function(){return this._modelType},gh.prototype.toString=function(){var t="UNKNOWN";return this._modelType===gh.FLOATING?t="Floating":this._modelType===gh.FLOATING_SINGLE?t="Floating-Single":this._modelType===gh.FIXED&&(t="Fixed (Scale="+this.getScale()+")"),t},gh.prototype.makePrecise=function(){if("number"==typeof arguments[0]){var t=arguments[0];return rc.isNaN(t)||this._modelType===gh.FLOATING_SINGLE?t:this._modelType===gh.FIXED?Math.round(t*this._scale)/this._scale:t}if(arguments[0]instanceof cc){var e=arguments[0];if(this._modelType===gh.FLOATING)return null;e.x=this.makePrecise(e.x),e.y=this.makePrecise(e.y)}},gh.prototype.getMaximumSignificantDigits=function(){var t=16;return this._modelType===gh.FLOATING?t=16:this._modelType===gh.FLOATING_SINGLE?t=6:this._modelType===gh.FIXED&&(t=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),t},gh.prototype.setScale=function(t){this._scale=Math.abs(t)},gh.prototype.interfaces_=function(){return[uc,oc]},gh.prototype.getClass=function(){return gh},gh.mostPrecise=function(t,e){return t.compareTo(e)>=0?t:e},yh.serialVersionUID.get=function(){return 0x6bee6404e9a25c00},yh.maximumPreciseValue.get=function(){return 9007199254740992},Object.defineProperties(gh,yh);var vh=function t(e){this._name=e||null,t.nameToTypeMap.put(e,this)},_h={serialVersionUID:{configurable:!0},nameToTypeMap:{configurable:!0}};vh.prototype.readResolve=function(){return vh.nameToTypeMap.get(this._name)},vh.prototype.toString=function(){return this._name},vh.prototype.interfaces_=function(){return[uc]},vh.prototype.getClass=function(){return vh},_h.serialVersionUID.get=function(){return-552860263173159e4},_h.nameToTypeMap.get=function(){return new dh},Object.defineProperties(vh,_h),gh.Type=vh,gh.FIXED=new vh("FIXED"),gh.FLOATING=new vh("FLOATING"),gh.FLOATING_SINGLE=new vh("FLOATING SINGLE");var mh=function t(){this._precisionModel=new gh,this._SRID=0,this._coordinateSequenceFactory=t.getDefaultCoordinateSequenceFactory(),0===arguments.length||(1===arguments.length?gc(arguments[0],fc)?this._coordinateSequenceFactory=arguments[0]:arguments[0]instanceof gh&&(this._precisionModel=arguments[0]):2===arguments.length?(this._precisionModel=arguments[0],this._SRID=arguments[1]):3===arguments.length&&(this._precisionModel=arguments[0],this._SRID=arguments[1],this._coordinateSequenceFactory=arguments[2]))},bh={serialVersionUID:{configurable:!0}};mh.prototype.toGeometry=function(t){return t.isNull()?this.createPoint(null):t.getMinX()===t.getMaxX()&&t.getMinY()===t.getMaxY()?this.createPoint(new cc(t.getMinX(),t.getMinY())):t.getMinX()===t.getMaxX()||t.getMinY()===t.getMaxY()?this.createLineString([new cc(t.getMinX(),t.getMinY()),new cc(t.getMaxX(),t.getMaxY())]):this.createPolygon(this.createLinearRing([new cc(t.getMinX(),t.getMinY()),new cc(t.getMinX(),t.getMaxY()),new cc(t.getMaxX(),t.getMaxY()),new cc(t.getMaxX(),t.getMinY()),new cc(t.getMinX(),t.getMinY())]),null)},mh.prototype.createLineString=function(t){return t?t instanceof Array?new Jl(this.getCoordinateSequenceFactory().create(t),this):gc(t,Sc)?new Jl(t,this):void 0:new Jl(this.getCoordinateSequenceFactory().create([]),this)},mh.prototype.createMultiLineString=function(){if(0===arguments.length)return new Gl(null,this);if(1===arguments.length){var t=arguments[0];return new Gl(t,this)}},mh.prototype.buildGeometry=function(t){for(var e=null,n=!1,r=!1,i=t.iterator();i.hasNext();){var o=i.next(),s=o.getClass();null===e&&(e=s),s!==e&&(n=!0),o.isGeometryCollectionOrDerived()&&(r=!0)}if(null===e)return this.createGeometryCollection();if(n||r)return this.createGeometryCollection(mh.toGeometryArray(t));var a=t.iterator().next();if(t.size()>1){if(a instanceof eh)return this.createMultiPolygon(mh.toPolygonArray(t));if(a instanceof Jl)return this.createMultiLineString(mh.toLineStringArray(t));if(a instanceof $l)return this.createMultiPoint(mh.toPointArray(t));Bc.shouldNeverReachHere("Unhandled class: "+a.getClass().getName())}return a},mh.prototype.createMultiPointFromCoords=function(t){return this.createMultiPoint(null!==t?this.getCoordinateSequenceFactory().create(t):null)},mh.prototype.createPoint=function(){if(0===arguments.length)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof cc){var t=arguments[0];return this.createPoint(null!==t?this.getCoordinateSequenceFactory().create([t]):null)}if(gc(arguments[0],Sc)){var e=arguments[0];return new $l(e,this)}}},mh.prototype.getCoordinateSequenceFactory=function(){return this._coordinateSequenceFactory},mh.prototype.createPolygon=function(){if(0===arguments.length)return new eh(null,null,this);if(1===arguments.length){if(gc(arguments[0],Sc)){var t=arguments[0];return this.createPolygon(this.createLinearRing(t))}if(arguments[0]instanceof Array){var e=arguments[0];return this.createPolygon(this.createLinearRing(e))}if(arguments[0]instanceof rh){var n=arguments[0];return this.createPolygon(n,null)}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];return new eh(r,i,this)}},mh.prototype.getSRID=function(){return this._SRID},mh.prototype.createGeometryCollection=function(){if(0===arguments.length)return new kl(null,this);if(1===arguments.length){var t=arguments[0];return new kl(t,this)}},mh.prototype.createGeometry=function(t){return new oh(this).edit(t,{edit:function(){if(2===arguments.length){var t=arguments[0];return this._coordinateSequenceFactory.create(t)}}})},mh.prototype.getPrecisionModel=function(){return this._precisionModel},mh.prototype.createLinearRing=function(){if(0===arguments.length)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return this.createLinearRing(null!==t?this.getCoordinateSequenceFactory().create(t):null)}if(gc(arguments[0],Sc)){var e=arguments[0];return new rh(e,this)}}},mh.prototype.createMultiPolygon=function(){if(0===arguments.length)return new ih(null,this);if(1===arguments.length){var t=arguments[0];return new ih(t,this)}},mh.prototype.createMultiPoint=function(){var t=this;if(0===arguments.length)return new nh(null,this);if(1===arguments.length){if(arguments[0]instanceof Array){var e=arguments[0];return new nh(e,this)}if(arguments[0]instanceof Array){var n=arguments[0];return this.createMultiPoint(null!==n?this.getCoordinateSequenceFactory().create(n):null)}if(gc(arguments[0],Sc)){var r=arguments[0];if(null===r)return this.createMultiPoint(new Array(0).fill(null));for(var i=new Array(r.size()).fill(null),o=0;o<r.size();o++){var s=t.getCoordinateSequenceFactory().create(1,r.getDimension());Kl.copy(r,o,s,0,1),i[o]=t.createPoint(s)}return this.createMultiPoint(i)}}},mh.prototype.interfaces_=function(){return[uc]},mh.prototype.getClass=function(){return mh},mh.toMultiPolygonArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},mh.toGeometryArray=function(t){if(null===t)return null;var e=new Array(t.size()).fill(null);return t.toArray(e)},mh.getDefaultCoordinateSequenceFactory=function(){return fh.instance()},mh.toMultiLineStringArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},mh.toLineStringArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},mh.toMultiPointArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},mh.toLinearRingArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},mh.toPointArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},mh.toPolygonArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},mh.createPointFromInternalCoord=function(t,e){return e.getPrecisionModel().makePrecise(t),e.getFactory().createPoint(t)},bh.serialVersionUID.get=function(){return-0x5ea75f2051eeb400},Object.defineProperties(mh,bh);var Eh=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],wh=function(t){this.geometryFactory=t||new mh};wh.prototype.read=function(t){var e,n=(e="string"==typeof t?JSON.parse(t):t).type;if(!xh[n])throw new Error("Unknown GeoJSON type: "+e.type);return-1!==Eh.indexOf(n)?xh[n].apply(this,[e.coordinates]):"GeometryCollection"===n?xh[n].apply(this,[e.geometries]):xh[n].apply(this,[e])},wh.prototype.write=function(t){var e=t.getGeometryType();if(!Oh[e])throw new Error("Geometry is not supported");return Oh[e].apply(this,[t])};var xh={Feature:function(t){var e={};for(var n in t)e[n]=t[n];if(t.geometry){var r=t.geometry.type;if(!xh[r])throw new Error("Unknown GeoJSON type: "+t.type);e.geometry=this.read(t.geometry)}return t.bbox&&(e.bbox=xh.bbox.apply(this,[t.bbox])),e},FeatureCollection:function(t){var e={};if(t.features){e.features=[];for(var n=0;n<t.features.length;++n)e.features.push(this.read(t.features[n]))}return t.bbox&&(e.bbox=this.parse.bbox.apply(this,[t.bbox])),e},coordinates:function(t){for(var e=[],n=0;n<t.length;++n){var r=t[n];e.push(new cc(r[0],r[1]))}return e},bbox:function(t){return this.geometryFactory.createLinearRing([new cc(t[0],t[1]),new cc(t[2],t[1]),new cc(t[2],t[3]),new cc(t[0],t[3]),new cc(t[0],t[1])])},Point:function(t){var e=new cc(t[0],t[1]);return this.geometryFactory.createPoint(e)},MultiPoint:function(t){for(var e=[],n=0;n<t.length;++n)e.push(xh.Point.apply(this,[t[n]]));return this.geometryFactory.createMultiPoint(e)},LineString:function(t){var e=xh.coordinates.apply(this,[t]);return this.geometryFactory.createLineString(e)},MultiLineString:function(t){for(var e=[],n=0;n<t.length;++n)e.push(xh.LineString.apply(this,[t[n]]));return this.geometryFactory.createMultiLineString(e)},Polygon:function(t){for(var e=xh.coordinates.apply(this,[t[0]]),n=this.geometryFactory.createLinearRing(e),r=[],i=1;i<t.length;++i){var o=t[i],s=xh.coordinates.apply(this,[o]),a=this.geometryFactory.createLinearRing(s);r.push(a)}return this.geometryFactory.createPolygon(n,r)},MultiPolygon:function(t){for(var e=[],n=0;n<t.length;++n){var r=t[n];e.push(xh.Polygon.apply(this,[r]))}return this.geometryFactory.createMultiPolygon(e)},GeometryCollection:function(t){for(var e=[],n=0;n<t.length;++n){var r=t[n];e.push(this.read(r))}return this.geometryFactory.createGeometryCollection(e)}},Oh={coordinate:function(t){return[t.x,t.y]},Point:function(t){return{type:"Point",coordinates:Oh.coordinate.apply(this,[t.getCoordinate()])}},MultiPoint:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var r=t._geometries[n],i=Oh.Point.apply(this,[r]);e.push(i.coordinates)}return{type:"MultiPoint",coordinates:e}},LineString:function(t){for(var e=[],n=t.getCoordinates(),r=0;r<n.length;++r){var i=n[r];e.push(Oh.coordinate.apply(this,[i]))}return{type:"LineString",coordinates:e}},MultiLineString:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var r=t._geometries[n],i=Oh.LineString.apply(this,[r]);e.push(i.coordinates)}return{type:"MultiLineString",coordinates:e}},Polygon:function(t){var e=[],n=Oh.LineString.apply(this,[t._shell]);e.push(n.coordinates);for(var r=0;r<t._holes.length;++r){var i=t._holes[r],o=Oh.LineString.apply(this,[i]);e.push(o.coordinates)}return{type:"Polygon",coordinates:e}},MultiPolygon:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var r=t._geometries[n],i=Oh.Polygon.apply(this,[r]);e.push(i.coordinates)}return{type:"MultiPolygon",coordinates:e}},GeometryCollection:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var r=t._geometries[n],i=r.getGeometryType();e.push(Oh[i].apply(this,[r]))}return{type:"GeometryCollection",geometries:e}}},Sh=function(t){this.geometryFactory=t||new mh,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new wh(this.geometryFactory)};Sh.prototype.read=function(t){var e=this.parser.read(t);return this.precisionModel.getType()===gh.FIXED&&this.reducePrecision(e),e},Sh.prototype.reducePrecision=function(t){var e,n;if(t.coordinate)this.precisionModel.makePrecise(t.coordinate);else if(t.points)for(e=0,n=t.points.length;e<n;e++)this.precisionModel.makePrecise(t.points[e]);else if(t.geometries)for(e=0,n=t.geometries.length;e<n;e++)this.reducePrecision(t.geometries[e])};var Ch=function(){this.parser=new wh(this.geometryFactory)};Ch.prototype.write=function(t){return this.parser.write(t)};var Ih=function(){},Ph={ON:{configurable:!0},LEFT:{configurable:!0},RIGHT:{configurable:!0}};function Rh(t){this.message=t||""}function Th(){this.array_=[]}Ih.prototype.interfaces_=function(){return[]},Ih.prototype.getClass=function(){return Ih},Ih.opposite=function(t){return t===Ih.LEFT?Ih.RIGHT:t===Ih.RIGHT?Ih.LEFT:t},Ph.ON.get=function(){return 0},Ph.LEFT.get=function(){return 1},Ph.RIGHT.get=function(){return 2},Object.defineProperties(Ih,Ph),Rh.prototype=new Error,Rh.prototype.name="EmptyStackException",Th.prototype=new ul,Th.prototype.add=function(t){return this.array_.push(t),!0},Th.prototype.get=function(t){if(t<0||t>=this.size())throw new Error;return this.array_[t]},Th.prototype.push=function(t){return this.array_.push(t),t},Th.prototype.pop=function(t){if(0===this.array_.length)throw new Rh;return this.array_.pop()},Th.prototype.peek=function(){if(0===this.array_.length)throw new Rh;return this.array_[this.array_.length-1]},Th.prototype.empty=function(){return 0===this.array_.length},Th.prototype.isEmpty=function(){return this.empty()},Th.prototype.search=function(t){return this.array_.indexOf(t)},Th.prototype.size=function(){return this.array_.length},Th.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t};var Lh=function(){this._minIndex=-1,this._minCoord=null,this._minDe=null,this._orientedDe=null};Lh.prototype.getCoordinate=function(){return this._minCoord},Lh.prototype.getRightmostSide=function(t,e){var n=this.getRightmostSideOfSegment(t,e);return n<0&&(n=this.getRightmostSideOfSegment(t,e-1)),n<0&&(this._minCoord=null,this.checkForRightmostCoordinate(t)),n},Lh.prototype.findRightmostEdgeAtVertex=function(){var t=this._minDe.getEdge().getCoordinates();Bc.isTrue(this._minIndex>0&&this._minIndex<t.length,"rightmost point expected to be interior vertex of edge");var e=t[this._minIndex-1],n=t[this._minIndex+1],r=qc.computeOrientation(this._minCoord,n,e),i=!1;(e.y<this._minCoord.y&&n.y<this._minCoord.y&&r===qc.COUNTERCLOCKWISE||e.y>this._minCoord.y&&n.y>this._minCoord.y&&r===qc.CLOCKWISE)&&(i=!0),i&&(this._minIndex=this._minIndex-1)},Lh.prototype.getRightmostSideOfSegment=function(t,e){var n=t.getEdge().getCoordinates();if(e<0||e+1>=n.length)return-1;if(n[e].y===n[e+1].y)return-1;var r=Ih.LEFT;return n[e].y<n[e+1].y&&(r=Ih.RIGHT),r},Lh.prototype.getEdge=function(){return this._orientedDe},Lh.prototype.checkForRightmostCoordinate=function(t){for(var e=this,n=t.getEdge().getCoordinates(),r=0;r<n.length-1;r++)(null===e._minCoord||n[r].x>e._minCoord.x)&&(e._minDe=t,e._minIndex=r,e._minCoord=n[r])},Lh.prototype.findRightmostEdgeAtNode=function(){var t=this._minDe.getNode().getEdges();this._minDe=t.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)},Lh.prototype.findEdge=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();n.isForward()&&this.checkForRightmostCoordinate(n)}Bc.isTrue(0!==this._minIndex||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),0===this._minIndex?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe,this.getRightmostSide(this._minDe,this._minIndex)===Ih.LEFT&&(this._orientedDe=this._minDe.getSym())},Lh.prototype.interfaces_=function(){return[]},Lh.prototype.getClass=function(){return Lh};var Mh=function(t){function e(n,r){t.call(this,e.msgWithCoord(n,r)),this.pt=r?new cc(r):null,this.name="TopologyException"}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getCoordinate=function(){return this.pt},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.msgWithCoord=function(t,e){return e?t:t+" [ "+e+" ]"},e}(kc),Nh=function(){this.array_=[]};Nh.prototype.addLast=function(t){this.array_.push(t)},Nh.prototype.removeFirst=function(){return this.array_.shift()},Nh.prototype.isEmpty=function(){return 0===this.array_.length};var Ah=function(){this._finder=null,this._dirEdgeList=new ll,this._nodes=new ll,this._rightMostCoord=null,this._env=null,this._finder=new Lh};Ah.prototype.clearVisitedEdges=function(){for(var t=this._dirEdgeList.iterator();t.hasNext();)t.next().setVisited(!1)},Ah.prototype.getRightmostCoordinate=function(){return this._rightMostCoord},Ah.prototype.computeNodeDepth=function(t){for(var e=null,n=t.getEdges().iterator();n.hasNext();){var r=n.next();if(r.isVisited()||r.getSym().isVisited()){e=r;break}}if(null===e)throw new Mh("unable to find edge to compute depths at "+t.getCoordinate());t.getEdges().computeDepths(e);for(var i=t.getEdges().iterator();i.hasNext();){var o=i.next();o.setVisited(!0),this.copySymDepths(o)}},Ah.prototype.computeDepth=function(t){this.clearVisitedEdges();var e=this._finder.getEdge();e.setEdgeDepths(Ih.RIGHT,t),this.copySymDepths(e),this.computeDepths(e)},Ah.prototype.create=function(t){this.addReachable(t),this._finder.findEdge(this._dirEdgeList),this._rightMostCoord=this._finder.getCoordinate()},Ah.prototype.findResultEdges=function(){for(var t=this._dirEdgeList.iterator();t.hasNext();){var e=t.next();e.getDepth(Ih.RIGHT)>=1&&e.getDepth(Ih.LEFT)<=0&&!e.isInteriorAreaEdge()&&e.setInResult(!0)}},Ah.prototype.computeDepths=function(t){var e=new El,n=new Nh,r=t.getNode();for(n.addLast(r),e.add(r),t.setVisited(!0);!n.isEmpty();){var i=n.removeFirst();e.add(i),this.computeNodeDepth(i);for(var o=i.getEdges().iterator();o.hasNext();){var s=o.next().getSym();if(!s.isVisited()){var a=s.getNode();e.contains(a)||(n.addLast(a),e.add(a))}}}},Ah.prototype.compareTo=function(t){var e=t;return this._rightMostCoord.x<e._rightMostCoord.x?-1:this._rightMostCoord.x>e._rightMostCoord.x?1:0},Ah.prototype.getEnvelope=function(){if(null===this._env){for(var t=new Lc,e=this._dirEdgeList.iterator();e.hasNext();)for(var n=e.next().getEdge().getCoordinates(),r=0;r<n.length-1;r++)t.expandToInclude(n[r]);this._env=t}return this._env},Ah.prototype.addReachable=function(t){var e=new Th;for(e.add(t);!e.empty();){var n=e.pop();this.add(n,e)}},Ah.prototype.copySymDepths=function(t){var e=t.getSym();e.setDepth(Ih.LEFT,t.getDepth(Ih.RIGHT)),e.setDepth(Ih.RIGHT,t.getDepth(Ih.LEFT))},Ah.prototype.add=function(t,e){t.setVisited(!0),this._nodes.add(t);for(var n=t.getEdges().iterator();n.hasNext();){var r=n.next();this._dirEdgeList.add(r);var i=r.getSym().getNode();i.isVisited()||e.push(i)}},Ah.prototype.getNodes=function(){return this._nodes},Ah.prototype.getDirectedEdges=function(){return this._dirEdgeList},Ah.prototype.interfaces_=function(){return[oc]},Ah.prototype.getClass=function(){return Ah};var Fh=function t(){var e=this;if(this.location=null,1===arguments.length){if(arguments[0]instanceof Array){var n=arguments[0];this.init(n.length)}else if(Number.isInteger(arguments[0])){var r=arguments[0];this.init(1),this.location[Ih.ON]=r}else if(arguments[0]instanceof t){var i=arguments[0];if(this.init(i.location.length),null!==i)for(var o=0;o<this.location.length;o++)e.location[o]=i.location[o]}}else if(3===arguments.length){var s=arguments[0],a=arguments[1],u=arguments[2];this.init(3),this.location[Ih.ON]=s,this.location[Ih.LEFT]=a,this.location[Ih.RIGHT]=u}};Fh.prototype.setAllLocations=function(t){for(var e=0;e<this.location.length;e++)this.location[e]=t},Fh.prototype.isNull=function(){for(var t=0;t<this.location.length;t++)if(this.location[t]!==pc.NONE)return!1;return!0},Fh.prototype.setAllLocationsIfNull=function(t){for(var e=0;e<this.location.length;e++)this.location[e]===pc.NONE&&(this.location[e]=t)},Fh.prototype.isLine=function(){return 1===this.location.length},Fh.prototype.merge=function(t){if(t.location.length>this.location.length){var e=new Array(3).fill(null);e[Ih.ON]=this.location[Ih.ON],e[Ih.LEFT]=pc.NONE,e[Ih.RIGHT]=pc.NONE,this.location=e}for(var n=0;n<this.location.length;n++)this.location[n]===pc.NONE&&n<t.location.length&&(this.location[n]=t.location[n])},Fh.prototype.getLocations=function(){return this.location},Fh.prototype.flip=function(){if(this.location.length<=1)return null;var t=this.location[Ih.LEFT];this.location[Ih.LEFT]=this.location[Ih.RIGHT],this.location[Ih.RIGHT]=t},Fh.prototype.toString=function(){var t=new _c;return this.location.length>1&&t.append(pc.toLocationSymbol(this.location[Ih.LEFT])),t.append(pc.toLocationSymbol(this.location[Ih.ON])),this.location.length>1&&t.append(pc.toLocationSymbol(this.location[Ih.RIGHT])),t.toString()},Fh.prototype.setLocations=function(t,e,n){this.location[Ih.ON]=t,this.location[Ih.LEFT]=e,this.location[Ih.RIGHT]=n},Fh.prototype.get=function(t){return t<this.location.length?this.location[t]:pc.NONE},Fh.prototype.isArea=function(){return this.location.length>1},Fh.prototype.isAnyNull=function(){for(var t=0;t<this.location.length;t++)if(this.location[t]===pc.NONE)return!0;return!1},Fh.prototype.setLocation=function(){if(1===arguments.length){var t=arguments[0];this.setLocation(Ih.ON,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.location[e]=n}},Fh.prototype.init=function(t){this.location=new Array(t).fill(null),this.setAllLocations(pc.NONE)},Fh.prototype.isEqualOnSide=function(t,e){return this.location[e]===t.location[e]},Fh.prototype.allPositionsEqual=function(t){for(var e=0;e<this.location.length;e++)if(this.location[e]!==t)return!1;return!0},Fh.prototype.interfaces_=function(){return[]},Fh.prototype.getClass=function(){return Fh};var jh=function t(){if(this.elt=new Array(2).fill(null),1===arguments.length){if(Number.isInteger(arguments[0])){var e=arguments[0];this.elt[0]=new Fh(e),this.elt[1]=new Fh(e)}else if(arguments[0]instanceof t){var n=arguments[0];this.elt[0]=new Fh(n.elt[0]),this.elt[1]=new Fh(n.elt[1])}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.elt[0]=new Fh(pc.NONE),this.elt[1]=new Fh(pc.NONE),this.elt[r].setLocation(i)}else if(3===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2];this.elt[0]=new Fh(o,s,a),this.elt[1]=new Fh(o,s,a)}else if(4===arguments.length){var u=arguments[0],c=arguments[1],l=arguments[2],h=arguments[3];this.elt[0]=new Fh(pc.NONE,pc.NONE,pc.NONE),this.elt[1]=new Fh(pc.NONE,pc.NONE,pc.NONE),this.elt[u].setLocations(c,l,h)}};jh.prototype.getGeometryCount=function(){var t=0;return this.elt[0].isNull()||t++,this.elt[1].isNull()||t++,t},jh.prototype.setAllLocations=function(t,e){this.elt[t].setAllLocations(e)},jh.prototype.isNull=function(t){return this.elt[t].isNull()},jh.prototype.setAllLocationsIfNull=function(){if(1===arguments.length){var t=arguments[0];this.setAllLocationsIfNull(0,t),this.setAllLocationsIfNull(1,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.elt[e].setAllLocationsIfNull(n)}},jh.prototype.isLine=function(t){return this.elt[t].isLine()},jh.prototype.merge=function(t){for(var e=this,n=0;n<2;n++)null===e.elt[n]&&null!==t.elt[n]?e.elt[n]=new Fh(t.elt[n]):e.elt[n].merge(t.elt[n])},jh.prototype.flip=function(){this.elt[0].flip(),this.elt[1].flip()},jh.prototype.getLocation=function(){if(1===arguments.length){var t=arguments[0];return this.elt[t].get(Ih.ON)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return this.elt[e].get(n)}},jh.prototype.toString=function(){var t=new _c;return null!==this.elt[0]&&(t.append("A:"),t.append(this.elt[0].toString())),null!==this.elt[1]&&(t.append(" B:"),t.append(this.elt[1].toString())),t.toString()},jh.prototype.isArea=function(){if(0===arguments.length)return this.elt[0].isArea()||this.elt[1].isArea();if(1===arguments.length){var t=arguments[0];return this.elt[t].isArea()}},jh.prototype.isAnyNull=function(t){return this.elt[t].isAnyNull()},jh.prototype.setLocation=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];this.elt[t].setLocation(Ih.ON,e)}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this.elt[n].setLocation(r,i)}},jh.prototype.isEqualOnSide=function(t,e){return this.elt[0].isEqualOnSide(t.elt[0],e)&&this.elt[1].isEqualOnSide(t.elt[1],e)},jh.prototype.allPositionsEqual=function(t,e){return this.elt[t].allPositionsEqual(e)},jh.prototype.toLine=function(t){this.elt[t].isArea()&&(this.elt[t]=new Fh(this.elt[t].location[0]))},jh.prototype.interfaces_=function(){return[]},jh.prototype.getClass=function(){return jh},jh.toLineLabel=function(t){for(var e=new jh(pc.NONE),n=0;n<2;n++)e.setLocation(n,t.getLocation(n));return e};var Dh=function(){this._startDe=null,this._maxNodeDegree=-1,this._edges=new ll,this._pts=new ll,this._label=new jh(pc.NONE),this._ring=null,this._isHole=null,this._shell=null,this._holes=new ll,this._geometryFactory=null;var t=arguments[0],e=arguments[1];this._geometryFactory=e,this.computePoints(t),this.computeRing()};Dh.prototype.computeRing=function(){if(null!==this._ring)return null;for(var t=new Array(this._pts.size()).fill(null),e=0;e<this._pts.size();e++)t[e]=this._pts.get(e);this._ring=this._geometryFactory.createLinearRing(t),this._isHole=qc.isCCW(this._ring.getCoordinates())},Dh.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},Dh.prototype.computePoints=function(t){var e=this;this._startDe=t;var n=t,r=!0;do{if(null===n)throw new Mh("Found null DirectedEdge");if(n.getEdgeRing()===e)throw new Mh("Directed Edge visited twice during ring-building at "+n.getCoordinate());e._edges.add(n);var i=n.getLabel();Bc.isTrue(i.isArea()),e.mergeLabel(i),e.addPoints(n.getEdge(),n.isForward(),r),r=!1,e.setEdgeRing(n,e),n=e.getNext(n)}while(n!==this._startDe)},Dh.prototype.getLinearRing=function(){return this._ring},Dh.prototype.getCoordinate=function(t){return this._pts.get(t)},Dh.prototype.computeMaxNodeDegree=function(){var t=this;this._maxNodeDegree=0;var e=this._startDe;do{var n=e.getNode().getEdges().getOutgoingDegree(t);n>t._maxNodeDegree&&(t._maxNodeDegree=n),e=t.getNext(e)}while(e!==this._startDe);this._maxNodeDegree*=2},Dh.prototype.addPoints=function(t,e,n){var r=t.getCoordinates();if(e){var i=1;n&&(i=0);for(var o=i;o<r.length;o++)this._pts.add(r[o])}else{var s=r.length-2;n&&(s=r.length-1);for(var a=s;a>=0;a--)this._pts.add(r[a])}},Dh.prototype.isHole=function(){return this._isHole},Dh.prototype.setInResult=function(){var t=this._startDe;do{t.getEdge().setInResult(!0),t=t.getNext()}while(t!==this._startDe)},Dh.prototype.containsPoint=function(t){var e=this.getLinearRing();if(!e.getEnvelopeInternal().contains(t))return!1;if(!qc.isPointInRing(t,e.getCoordinates()))return!1;for(var n=this._holes.iterator();n.hasNext();)if(n.next().containsPoint(t))return!1;return!0},Dh.prototype.addHole=function(t){this._holes.add(t)},Dh.prototype.isShell=function(){return null===this._shell},Dh.prototype.getLabel=function(){return this._label},Dh.prototype.getEdges=function(){return this._edges},Dh.prototype.getMaxNodeDegree=function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree},Dh.prototype.getShell=function(){return this._shell},Dh.prototype.mergeLabel=function(){if(1===arguments.length){var t=arguments[0];this.mergeLabel(t,0),this.mergeLabel(t,1)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],r=e.getLocation(n,Ih.RIGHT);if(r===pc.NONE)return null;if(this._label.getLocation(n)===pc.NONE)return this._label.setLocation(n,r),null}},Dh.prototype.setShell=function(t){this._shell=t,null!==t&&t.addHole(this)},Dh.prototype.toPolygon=function(t){for(var e=new Array(this._holes.size()).fill(null),n=0;n<this._holes.size();n++)e[n]=this._holes.get(n).getLinearRing();return t.createPolygon(this.getLinearRing(),e)},Dh.prototype.interfaces_=function(){return[]},Dh.prototype.getClass=function(){return Dh};var kh=function(t){function e(){var e=arguments[0],n=arguments[1];t.call(this,e,n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setEdgeRing=function(t,e){t.setMinEdgeRing(e)},e.prototype.getNext=function(t){return t.getNextMin()},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Dh),Gh=function(t){function e(){var e=arguments[0],n=arguments[1];t.call(this,e,n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.buildMinimalRings=function(){var t=new ll,e=this._startDe;do{if(null===e.getMinEdgeRing()){var n=new kh(e,this._geometryFactory);t.add(n)}e=e.getNext()}while(e!==this._startDe);return t},e.prototype.setEdgeRing=function(t,e){t.setEdgeRing(e)},e.prototype.linkDirectedEdgesForMinimalEdgeRings=function(){var t=this._startDe;do{t.getNode().getEdges().linkMinimalDirectedEdges(this),t=t.getNext()}while(t!==this._startDe)},e.prototype.getNext=function(t){return t.getNext()},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Dh),Bh=function(){if(this._label=null,this._isInResult=!1,this._isCovered=!1,this._isCoveredSet=!1,this._isVisited=!1,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this._label=t}};Bh.prototype.setVisited=function(t){this._isVisited=t},Bh.prototype.setInResult=function(t){this._isInResult=t},Bh.prototype.isCovered=function(){return this._isCovered},Bh.prototype.isCoveredSet=function(){return this._isCoveredSet},Bh.prototype.setLabel=function(t){this._label=t},Bh.prototype.getLabel=function(){return this._label},Bh.prototype.setCovered=function(t){this._isCovered=t,this._isCoveredSet=!0},Bh.prototype.updateIM=function(t){Bc.isTrue(this._label.getGeometryCount()>=2,"found partial label"),this.computeIM(t)},Bh.prototype.isInResult=function(){return this._isInResult},Bh.prototype.isVisited=function(){return this._isVisited},Bh.prototype.interfaces_=function(){return[]},Bh.prototype.getClass=function(){return Bh};var Uh=function(t){function e(){t.call(this),this._coord=null,this._edges=null;var e=arguments[0],n=arguments[1];this._coord=e,this._edges=n,this._label=new jh(0,pc.NONE)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isIncidentEdgeInResult=function(){for(var t=this.getEdges().getEdges().iterator();t.hasNext();)if(t.next().getEdge().isInResult())return!0;return!1},e.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},e.prototype.getCoordinate=function(){return this._coord},e.prototype.print=function(t){t.println("node "+this._coord+" lbl: "+this._label)},e.prototype.computeIM=function(t){},e.prototype.computeMergedLocation=function(t,e){var n=pc.NONE;if(n=this._label.getLocation(e),!t.isNull(e)){var r=t.getLocation(e);n!==pc.BOUNDARY&&(n=r)}return n},e.prototype.setLabel=function(){if(2!==arguments.length)return t.prototype.setLabel.apply(this,arguments);var e=arguments[0],n=arguments[1];null===this._label?this._label=new jh(e,n):this._label.setLocation(e,n)},e.prototype.getEdges=function(){return this._edges},e.prototype.mergeLabel=function(){var t=this;if(arguments[0]instanceof e){var n=arguments[0];this.mergeLabel(n._label)}else if(arguments[0]instanceof jh)for(var r=arguments[0],i=0;i<2;i++){var o=t.computeMergedLocation(r,i),s=t._label.getLocation(i);s===pc.NONE&&t._label.setLocation(i,o)}},e.prototype.add=function(t){this._edges.insert(t),t.setNode(this)},e.prototype.setLabelBoundary=function(t){if(null===this._label)return null;var e=pc.NONE;null!==this._label&&(e=this._label.getLocation(t));var n=null;switch(e){case pc.BOUNDARY:n=pc.INTERIOR;break;case pc.INTERIOR:default:n=pc.BOUNDARY}this._label.setLocation(t,n)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Bh),zh=function(){this.nodeMap=new Pl,this.nodeFact=null;var t=arguments[0];this.nodeFact=t};zh.prototype.find=function(t){return this.nodeMap.get(t)},zh.prototype.addNode=function(){if(arguments[0]instanceof cc){var t=arguments[0],e=this.nodeMap.get(t);return null===e&&(e=this.nodeFact.createNode(t),this.nodeMap.put(t,e)),e}if(arguments[0]instanceof Uh){var n=arguments[0],r=this.nodeMap.get(n.getCoordinate());return null===r?(this.nodeMap.put(n.getCoordinate(),n),n):(r.mergeLabel(n),r)}},zh.prototype.print=function(t){for(var e=this.iterator();e.hasNext();)e.next().print(t)},zh.prototype.iterator=function(){return this.nodeMap.values().iterator()},zh.prototype.values=function(){return this.nodeMap.values()},zh.prototype.getBoundaryNodes=function(t){for(var e=new ll,n=this.iterator();n.hasNext();){var r=n.next();r.getLabel().getLocation(t)===pc.BOUNDARY&&e.add(r)}return e},zh.prototype.add=function(t){var e=t.getCoordinate();this.addNode(e).add(t)},zh.prototype.interfaces_=function(){return[]},zh.prototype.getClass=function(){return zh};var Yh=function(){},Xh={NE:{configurable:!0},NW:{configurable:!0},SW:{configurable:!0},SE:{configurable:!0}};Yh.prototype.interfaces_=function(){return[]},Yh.prototype.getClass=function(){return Yh},Yh.isNorthern=function(t){return t===Yh.NE||t===Yh.NW},Yh.isOpposite=function(t,e){return t!==e&&2===(t-e+4)%4},Yh.commonHalfPlane=function(t,e){if(t===e)return t;if(2===(t-e+4)%4)return-1;var n=t<e?t:e;return 0===n&&3===(t>e?t:e)?3:n},Yh.isInHalfPlane=function(t,e){return e===Yh.SE?t===Yh.SE||t===Yh.SW:t===e||t===e+1},Yh.quadrant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1];if(0===t&&0===e)throw new nc("Cannot compute the quadrant for point ( "+t+", "+e+" )");return t>=0?e>=0?Yh.NE:Yh.SE:e>=0?Yh.NW:Yh.SW}if(arguments[0]instanceof cc&&arguments[1]instanceof cc){var n=arguments[0],r=arguments[1];if(r.x===n.x&&r.y===n.y)throw new nc("Cannot compute the quadrant for two identical points "+n);return r.x>=n.x?r.y>=n.y?Yh.NE:Yh.SE:r.y>=n.y?Yh.NW:Yh.SW}},Xh.NE.get=function(){return 0},Xh.NW.get=function(){return 1},Xh.SW.get=function(){return 2},Xh.SE.get=function(){return 3},Object.defineProperties(Yh,Xh);var Vh=function(){if(this._edge=null,this._label=null,this._node=null,this._p0=null,this._p1=null,this._dx=null,this._dy=null,this._quadrant=null,1===arguments.length){var t=arguments[0];this._edge=t}else if(3===arguments.length){var e=arguments[0],n=arguments[1],r=arguments[2],i=null;this._edge=e,this.init(n,r),this._label=i}else if(4===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2],u=arguments[3];this._edge=o,this.init(s,a),this._label=u}};Vh.prototype.compareDirection=function(t){return this._dx===t._dx&&this._dy===t._dy?0:this._quadrant>t._quadrant?1:this._quadrant<t._quadrant?-1:qc.computeOrientation(t._p0,t._p1,this._p1)},Vh.prototype.getDy=function(){return this._dy},Vh.prototype.getCoordinate=function(){return this._p0},Vh.prototype.setNode=function(t){this._node=t},Vh.prototype.print=function(t){var e=Math.atan2(this._dy,this._dx),n=this.getClass().getName(),r=n.lastIndexOf("."),i=n.substring(r+1);t.print(" "+i+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+e+" "+this._label)},Vh.prototype.compareTo=function(t){var e=t;return this.compareDirection(e)},Vh.prototype.getDirectedCoordinate=function(){return this._p1},Vh.prototype.getDx=function(){return this._dx},Vh.prototype.getLabel=function(){return this._label},Vh.prototype.getEdge=function(){return this._edge},Vh.prototype.getQuadrant=function(){return this._quadrant},Vh.prototype.getNode=function(){return this._node},Vh.prototype.toString=function(){var t=Math.atan2(this._dy,this._dx),e=this.getClass().getName(),n=e.lastIndexOf(".");return" "+e.substring(n+1)+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+t+" "+this._label},Vh.prototype.computeLabel=function(t){},Vh.prototype.init=function(t,e){this._p0=t,this._p1=e,this._dx=e.x-t.x,this._dy=e.y-t.y,this._quadrant=Yh.quadrant(this._dx,this._dy),Bc.isTrue(!(0===this._dx&&0===this._dy),"EdgeEnd with identical endpoints found")},Vh.prototype.interfaces_=function(){return[oc]},Vh.prototype.getClass=function(){return Vh};var qh=function(t){function e(){var e=arguments[0],n=arguments[1];if(t.call(this,e),this._isForward=null,this._isInResult=!1,this._isVisited=!1,this._sym=null,this._next=null,this._nextMin=null,this._edgeRing=null,this._minEdgeRing=null,this._depth=[0,-999,-999],this._isForward=n,n)this.init(e.getCoordinate(0),e.getCoordinate(1));else{var r=e.getNumPoints()-1;this.init(e.getCoordinate(r),e.getCoordinate(r-1))}this.computeDirectedLabel()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getNextMin=function(){return this._nextMin},e.prototype.getDepth=function(t){return this._depth[t]},e.prototype.setVisited=function(t){this._isVisited=t},e.prototype.computeDirectedLabel=function(){this._label=new jh(this._edge.getLabel()),this._isForward||this._label.flip()},e.prototype.getNext=function(){return this._next},e.prototype.setDepth=function(t,e){if(-999!==this._depth[t]&&this._depth[t]!==e)throw new Mh("assigned depths do not match",this.getCoordinate());this._depth[t]=e},e.prototype.isInteriorAreaEdge=function(){for(var t=this,e=!0,n=0;n<2;n++)t._label.isArea(n)&&t._label.getLocation(n,Ih.LEFT)===pc.INTERIOR&&t._label.getLocation(n,Ih.RIGHT)===pc.INTERIOR||(e=!1);return e},e.prototype.setNextMin=function(t){this._nextMin=t},e.prototype.print=function(e){t.prototype.print.call(this,e),e.print(" "+this._depth[Ih.LEFT]+"/"+this._depth[Ih.RIGHT]),e.print(" ("+this.getDepthDelta()+")"),this._isInResult&&e.print(" inResult")},e.prototype.setMinEdgeRing=function(t){this._minEdgeRing=t},e.prototype.isLineEdge=function(){var t=this._label.isLine(0)||this._label.isLine(1),e=!this._label.isArea(0)||this._label.allPositionsEqual(0,pc.EXTERIOR),n=!this._label.isArea(1)||this._label.allPositionsEqual(1,pc.EXTERIOR);return t&&e&&n},e.prototype.setEdgeRing=function(t){this._edgeRing=t},e.prototype.getMinEdgeRing=function(){return this._minEdgeRing},e.prototype.getDepthDelta=function(){var t=this._edge.getDepthDelta();return this._isForward||(t=-t),t},e.prototype.setInResult=function(t){this._isInResult=t},e.prototype.getSym=function(){return this._sym},e.prototype.isForward=function(){return this._isForward},e.prototype.getEdge=function(){return this._edge},e.prototype.printEdge=function(t){this.print(t),t.print(" "),this._isForward?this._edge.print(t):this._edge.printReverse(t)},e.prototype.setSym=function(t){this._sym=t},e.prototype.setVisitedEdge=function(t){this.setVisited(t),this._sym.setVisited(t)},e.prototype.setEdgeDepths=function(t,e){var n=this.getEdge().getDepthDelta();this._isForward||(n=-n);var r=1;t===Ih.LEFT&&(r=-1);var i=Ih.opposite(t),o=e+n*r;this.setDepth(t,e),this.setDepth(i,o)},e.prototype.getEdgeRing=function(){return this._edgeRing},e.prototype.isInResult=function(){return this._isInResult},e.prototype.setNext=function(t){this._next=t},e.prototype.isVisited=function(){return this._isVisited},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.depthFactor=function(t,e){return t===pc.EXTERIOR&&e===pc.INTERIOR?1:t===pc.INTERIOR&&e===pc.EXTERIOR?-1:0},e}(Vh),Wh=function(){};Wh.prototype.createNode=function(t){return new Uh(t,null)},Wh.prototype.interfaces_=function(){return[]},Wh.prototype.getClass=function(){return Wh};var Hh=function(){if(this._edges=new ll,this._nodes=null,this._edgeEndList=new ll,0===arguments.length)this._nodes=new zh(new Wh);else if(1===arguments.length){var t=arguments[0];this._nodes=new zh(t)}};Hh.prototype.printEdges=function(t){t.println("Edges:");for(var e=0;e<this._edges.size();e++){t.println("edge "+e+":");var n=this._edges.get(e);n.print(t),n.eiList.print(t)}},Hh.prototype.find=function(t){return this._nodes.find(t)},Hh.prototype.addNode=function(){if(arguments[0]instanceof Uh){var t=arguments[0];return this._nodes.addNode(t)}if(arguments[0]instanceof cc){var e=arguments[0];return this._nodes.addNode(e)}},Hh.prototype.getNodeIterator=function(){return this._nodes.iterator()},Hh.prototype.linkResultDirectedEdges=function(){for(var t=this._nodes.iterator();t.hasNext();)t.next().getEdges().linkResultDirectedEdges()},Hh.prototype.debugPrintln=function(t){Rc.out.println(t)},Hh.prototype.isBoundaryNode=function(t,e){var n=this._nodes.find(e);if(null===n)return!1;var r=n.getLabel();return null!==r&&r.getLocation(t)===pc.BOUNDARY},Hh.prototype.linkAllDirectedEdges=function(){for(var t=this._nodes.iterator();t.hasNext();)t.next().getEdges().linkAllDirectedEdges()},Hh.prototype.matchInSameDirection=function(t,e,n,r){return!!t.equals(n)&&qc.computeOrientation(t,e,r)===qc.COLLINEAR&&Yh.quadrant(t,e)===Yh.quadrant(n,r)},Hh.prototype.getEdgeEnds=function(){return this._edgeEndList},Hh.prototype.debugPrint=function(t){Rc.out.print(t)},Hh.prototype.getEdgeIterator=function(){return this._edges.iterator()},Hh.prototype.findEdgeInSameDirection=function(t,e){for(var n=this,r=0;r<this._edges.size();r++){var i=n._edges.get(r),o=i.getCoordinates();if(n.matchInSameDirection(t,e,o[0],o[1]))return i;if(n.matchInSameDirection(t,e,o[o.length-1],o[o.length-2]))return i}return null},Hh.prototype.insertEdge=function(t){this._edges.add(t)},Hh.prototype.findEdgeEnd=function(t){for(var e=this.getEdgeEnds().iterator();e.hasNext();){var n=e.next();if(n.getEdge()===t)return n}return null},Hh.prototype.addEdges=function(t){for(var e=this,n=t.iterator();n.hasNext();){var r=n.next();e._edges.add(r);var i=new qh(r,!0),o=new qh(r,!1);i.setSym(o),o.setSym(i),e.add(i),e.add(o)}},Hh.prototype.add=function(t){this._nodes.add(t),this._edgeEndList.add(t)},Hh.prototype.getNodes=function(){return this._nodes.values()},Hh.prototype.findEdge=function(t,e){for(var n=0;n<this._edges.size();n++){var r=this._edges.get(n),i=r.getCoordinates();if(t.equals(i[0])&&e.equals(i[1]))return r}return null},Hh.prototype.interfaces_=function(){return[]},Hh.prototype.getClass=function(){return Hh},Hh.linkResultDirectedEdges=function(t){for(var e=t.iterator();e.hasNext();)e.next().getEdges().linkResultDirectedEdges()};var Zh=function(){this._geometryFactory=null,this._shellList=new ll;var t=arguments[0];this._geometryFactory=t};Zh.prototype.sortShellsAndHoles=function(t,e,n){for(var r=t.iterator();r.hasNext();){var i=r.next();i.isHole()?n.add(i):e.add(i)}},Zh.prototype.computePolygons=function(t){for(var e=new ll,n=t.iterator();n.hasNext();){var r=n.next().toPolygon(this._geometryFactory);e.add(r)}return e},Zh.prototype.placeFreeHoles=function(t,e){for(var n=e.iterator();n.hasNext();){var r=n.next();if(null===r.getShell()){var i=this.findEdgeRingContaining(r,t);if(null===i)throw new Mh("unable to assign hole to a shell",r.getCoordinate(0));r.setShell(i)}}},Zh.prototype.buildMinimalEdgeRings=function(t,e,n){for(var r=new ll,i=t.iterator();i.hasNext();){var o=i.next();if(o.getMaxNodeDegree()>2){o.linkDirectedEdgesForMinimalEdgeRings();var s=o.buildMinimalRings(),a=this.findShell(s);null!==a?(this.placePolygonHoles(a,s),e.add(a)):n.addAll(s)}else r.add(o)}return r},Zh.prototype.containsPoint=function(t){for(var e=this._shellList.iterator();e.hasNext();)if(e.next().containsPoint(t))return!0;return!1},Zh.prototype.buildMaximalEdgeRings=function(t){for(var e=new ll,n=t.iterator();n.hasNext();){var r=n.next();if(r.isInResult()&&r.getLabel().isArea()&&null===r.getEdgeRing()){var i=new Gh(r,this._geometryFactory);e.add(i),i.setInResult()}}return e},Zh.prototype.placePolygonHoles=function(t,e){for(var n=e.iterator();n.hasNext();){var r=n.next();r.isHole()&&r.setShell(t)}},Zh.prototype.getPolygons=function(){return this.computePolygons(this._shellList)},Zh.prototype.findEdgeRingContaining=function(t,e){for(var n=t.getLinearRing(),r=n.getEnvelopeInternal(),i=n.getCoordinateN(0),o=null,s=null,a=e.iterator();a.hasNext();){var u=a.next(),c=u.getLinearRing(),l=c.getEnvelopeInternal();null!==o&&(s=o.getLinearRing().getEnvelopeInternal());var h=!1;l.contains(r)&&qc.isPointInRing(i,c.getCoordinates())&&(h=!0),h&&(null===o||s.contains(l))&&(o=u)}return o},Zh.prototype.findShell=function(t){for(var e=0,n=null,r=t.iterator();r.hasNext();){var i=r.next();i.isHole()||(n=i,e++)}return Bc.isTrue(e<=1,"found two shells in MinimalEdgeRing list"),n},Zh.prototype.add=function(){if(1===arguments.length){var t=arguments[0];this.add(t.getEdgeEnds(),t.getNodes())}else if(2===arguments.length){var e=arguments[0],n=arguments[1];Hh.linkResultDirectedEdges(n);var r=this.buildMaximalEdgeRings(e),i=new ll,o=this.buildMinimalEdgeRings(r,this._shellList,i);this.sortShellsAndHoles(o,this._shellList,i),this.placeFreeHoles(this._shellList,i)}},Zh.prototype.interfaces_=function(){return[]},Zh.prototype.getClass=function(){return Zh};var Kh=function(){};Kh.prototype.getBounds=function(){},Kh.prototype.interfaces_=function(){return[]},Kh.prototype.getClass=function(){return Kh};var Jh=function(){this._bounds=null,this._item=null;var t=arguments[0],e=arguments[1];this._bounds=t,this._item=e};Jh.prototype.getItem=function(){return this._item},Jh.prototype.getBounds=function(){return this._bounds},Jh.prototype.interfaces_=function(){return[Kh,uc]},Jh.prototype.getClass=function(){return Jh};var Qh=function(){this._size=null,this._items=null,this._size=0,this._items=new ll,this._items.add(null)};Qh.prototype.poll=function(){if(this.isEmpty())return null;var t=this._items.get(1);return this._items.set(1,this._items.get(this._size)),this._size-=1,this.reorder(1),t},Qh.prototype.size=function(){return this._size},Qh.prototype.reorder=function(t){for(var e=this,n=null,r=this._items.get(t);2*t<=this._size&&((n=2*t)!==e._size&&e._items.get(n+1).compareTo(e._items.get(n))<0&&n++,e._items.get(n).compareTo(r)<0);t=n)e._items.set(t,e._items.get(n));this._items.set(t,r)},Qh.prototype.clear=function(){this._size=0,this._items.clear()},Qh.prototype.isEmpty=function(){return 0===this._size},Qh.prototype.add=function(t){this._items.add(null),this._size+=1;var e=this._size;for(this._items.set(0,t);t.compareTo(this._items.get(Math.trunc(e/2)))<0;e/=2)this._items.set(e,this._items.get(Math.trunc(e/2)));this._items.set(e,t)},Qh.prototype.interfaces_=function(){return[]},Qh.prototype.getClass=function(){return Qh};var $h=function(){};$h.prototype.visitItem=function(t){},$h.prototype.interfaces_=function(){return[]},$h.prototype.getClass=function(){return $h};var tf=function(){};tf.prototype.insert=function(t,e){},tf.prototype.remove=function(t,e){},tf.prototype.query=function(){},tf.prototype.interfaces_=function(){return[]},tf.prototype.getClass=function(){return tf};var ef=function(){if(this._childBoundables=new ll,this._bounds=null,this._level=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this._level=t}},nf={serialVersionUID:{configurable:!0}};ef.prototype.getLevel=function(){return this._level},ef.prototype.size=function(){return this._childBoundables.size()},ef.prototype.getChildBoundables=function(){return this._childBoundables},ef.prototype.addChildBoundable=function(t){Bc.isTrue(null===this._bounds),this._childBoundables.add(t)},ef.prototype.isEmpty=function(){return this._childBoundables.isEmpty()},ef.prototype.getBounds=function(){return null===this._bounds&&(this._bounds=this.computeBounds()),this._bounds},ef.prototype.interfaces_=function(){return[Kh,uc]},ef.prototype.getClass=function(){return ef},nf.serialVersionUID.get=function(){return 0x5a1e55ec41369800},Object.defineProperties(ef,nf);var rf=function(){};rf.reverseOrder=function(){return{compare:function(t,e){return e.compareTo(t)}}},rf.min=function(t){return rf.sort(t),t.get(0)},rf.sort=function(t,e){var n=t.toArray();e?Nl.sort(n,e):Nl.sort(n);for(var r=t.iterator(),i=0,o=n.length;i<o;i++)r.next(),r.set(n[i])},rf.singletonList=function(t){var e=new ll;return e.add(t),e};var of=function(){this._boundable1=null,this._boundable2=null,this._distance=null,this._itemDistance=null;var t=arguments[0],e=arguments[1],n=arguments[2];this._boundable1=t,this._boundable2=e,this._itemDistance=n,this._distance=this.distance()};of.prototype.expandToQueue=function(t,e){var n=of.isComposite(this._boundable1),r=of.isComposite(this._boundable2);if(n&&r)return of.area(this._boundable1)>of.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,t,e),null):(this.expand(this._boundable2,this._boundable1,t,e),null);if(n)return this.expand(this._boundable1,this._boundable2,t,e),null;if(r)return this.expand(this._boundable2,this._boundable1,t,e),null;throw new nc("neither boundable is composite")},of.prototype.isLeaves=function(){return!(of.isComposite(this._boundable1)||of.isComposite(this._boundable2))},of.prototype.compareTo=function(t){var e=t;return this._distance<e._distance?-1:this._distance>e._distance?1:0},of.prototype.expand=function(t,e,n,r){for(var i=t.getChildBoundables().iterator();i.hasNext();){var o=i.next(),s=new of(o,e,this._itemDistance);s.getDistance()<r&&n.add(s)}},of.prototype.getBoundable=function(t){return 0===t?this._boundable1:this._boundable2},of.prototype.getDistance=function(){return this._distance},of.prototype.distance=function(){return this.isLeaves()?this._itemDistance.distance(this._boundable1,this._boundable2):this._boundable1.getBounds().distance(this._boundable2.getBounds())},of.prototype.interfaces_=function(){return[oc]},of.prototype.getClass=function(){return of},of.area=function(t){return t.getBounds().getArea()},of.isComposite=function(t){return t instanceof ef};var sf=function t(){if(this._root=null,this._built=!1,this._itemBoundables=new ll,this._nodeCapacity=null,0===arguments.length){var e=t.DEFAULT_NODE_CAPACITY;this._nodeCapacity=e}else if(1===arguments.length){var n=arguments[0];Bc.isTrue(n>1,"Node capacity must be greater than 1"),this._nodeCapacity=n}},af={IntersectsOp:{configurable:!0},serialVersionUID:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};sf.prototype.getNodeCapacity=function(){return this._nodeCapacity},sf.prototype.lastNode=function(t){return t.get(t.size()-1)},sf.prototype.size=function(){var t=this;if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.size(this._root));if(1===arguments.length){for(var e=arguments[0],n=0,r=e.getChildBoundables().iterator();r.hasNext();){var i=r.next();i instanceof ef?n+=t.size(i):i instanceof Jh&&(n+=1)}return n}},sf.prototype.removeItem=function(t,e){for(var n=null,r=t.getChildBoundables().iterator();r.hasNext();){var i=r.next();i instanceof Jh&&i.getItem()===e&&(n=i)}return null!==n&&(t.getChildBoundables().remove(n),!0)},sf.prototype.itemsTree=function(){var t=this;if(0===arguments.length){this.build();var e=this.itemsTree(this._root);return null===e?new ll:e}if(1===arguments.length){for(var n=arguments[0],r=new ll,i=n.getChildBoundables().iterator();i.hasNext();){var o=i.next();if(o instanceof ef){var s=t.itemsTree(o);null!==s&&r.add(s)}else o instanceof Jh?r.add(o.getItem()):Bc.shouldNeverReachHere()}return r.size()<=0?null:r}},sf.prototype.insert=function(t,e){Bc.isTrue(!this._built,"Cannot insert items into an STR packed R-tree after it has been built."),this._itemBoundables.add(new Jh(t,e))},sf.prototype.boundablesAtLevel=function(){var t=this;if(1===arguments.length){var e=arguments[0],n=new ll;return this.boundablesAtLevel(e,this._root,n),n}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];if(Bc.isTrue(r>-2),i.getLevel()===r)return o.add(i),null;for(var s=i.getChildBoundables().iterator();s.hasNext();){var a=s.next();a instanceof ef?t.boundablesAtLevel(r,a,o):(Bc.isTrue(a instanceof Jh),-1===r&&o.add(a))}return null}},sf.prototype.query=function(){var t=this;if(1===arguments.length){var e=arguments[0];this.build();var n=new ll;return this.isEmpty()||this.getIntersectsOp().intersects(this._root.getBounds(),e)&&this.query(e,this._root,n),n}if(2===arguments.length){var r=arguments[0],i=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),r)&&this.query(r,this._root,i)}else if(3===arguments.length)if(gc(arguments[2],$h)&&arguments[0]instanceof Object&&arguments[1]instanceof ef)for(var o=arguments[0],s=arguments[1],a=arguments[2],u=s.getChildBoundables(),c=0;c<u.size();c++){var l=u.get(c);t.getIntersectsOp().intersects(l.getBounds(),o)&&(l instanceof ef?t.query(o,l,a):l instanceof Jh?a.visitItem(l.getItem()):Bc.shouldNeverReachHere())}else if(gc(arguments[2],ul)&&arguments[0]instanceof Object&&arguments[1]instanceof ef)for(var h=arguments[0],f=arguments[1],p=arguments[2],d=f.getChildBoundables(),g=0;g<d.size();g++){var y=d.get(g);t.getIntersectsOp().intersects(y.getBounds(),h)&&(y instanceof ef?t.query(h,y,p):y instanceof Jh?p.add(y.getItem()):Bc.shouldNeverReachHere())}},sf.prototype.build=function(){if(this._built)return null;this._root=this._itemBoundables.isEmpty()?this.createNode(0):this.createHigherLevels(this._itemBoundables,-1),this._itemBoundables=null,this._built=!0},sf.prototype.getRoot=function(){return this.build(),this._root},sf.prototype.remove=function(){var t=this;if(2===arguments.length){var e=arguments[0],n=arguments[1];return this.build(),!!this.getIntersectsOp().intersects(this._root.getBounds(),e)&&this.remove(e,this._root,n)}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2],s=this.removeItem(i,o);if(s)return!0;for(var a=null,u=i.getChildBoundables().iterator();u.hasNext();){var c=u.next();if(t.getIntersectsOp().intersects(c.getBounds(),r)&&c instanceof ef&&(s=t.remove(r,c,o))){a=c;break}}return null!==a&&a.getChildBoundables().isEmpty()&&i.getChildBoundables().remove(a),s}},sf.prototype.createHigherLevels=function(t,e){Bc.isTrue(!t.isEmpty());var n=this.createParentBoundables(t,e+1);return 1===n.size()?n.get(0):this.createHigherLevels(n,e+1)},sf.prototype.depth=function(){var t=this;if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.depth(this._root));if(1===arguments.length){for(var e=arguments[0],n=0,r=e.getChildBoundables().iterator();r.hasNext();){var i=r.next();if(i instanceof ef){var o=t.depth(i);o>n&&(n=o)}}return n+1}},sf.prototype.createParentBoundables=function(t,e){var n=this;Bc.isTrue(!t.isEmpty());var r=new ll;r.add(this.createNode(e));var i=new ll(t);rf.sort(i,this.getComparator());for(var o=i.iterator();o.hasNext();){var s=o.next();n.lastNode(r).getChildBoundables().size()===n.getNodeCapacity()&&r.add(n.createNode(e)),n.lastNode(r).addChildBoundable(s)}return r},sf.prototype.isEmpty=function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()},sf.prototype.interfaces_=function(){return[uc]},sf.prototype.getClass=function(){return sf},sf.compareDoubles=function(t,e){return t>e?1:t<e?-1:0},af.IntersectsOp.get=function(){return uf},af.serialVersionUID.get=function(){return-0x35ef64c82d4c5400},af.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(sf,af);var uf=function(){},cf=function(){};cf.prototype.distance=function(t,e){},cf.prototype.interfaces_=function(){return[]},cf.prototype.getClass=function(){return cf};var lf=function(t){function e(n){n=n||e.DEFAULT_NODE_CAPACITY,t.call(this,n)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={STRtreeNode:{configurable:!0},serialVersionUID:{configurable:!0},xComparator:{configurable:!0},yComparator:{configurable:!0},intersectsOp:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};return e.prototype.createParentBoundablesFromVerticalSlices=function(t,e){Bc.isTrue(t.length>0);for(var n=new ll,r=0;r<t.length;r++)n.addAll(this.createParentBoundablesFromVerticalSlice(t[r],e));return n},e.prototype.createNode=function(t){return new hf(t)},e.prototype.size=function(){return 0===arguments.length?t.prototype.size.call(this):t.prototype.size.apply(this,arguments)},e.prototype.insert=function(){if(2!==arguments.length)return t.prototype.insert.apply(this,arguments);var e=arguments[0],n=arguments[1];if(e.isNull())return null;t.prototype.insert.call(this,e,n)},e.prototype.getIntersectsOp=function(){return e.intersectsOp},e.prototype.verticalSlices=function(t,e){for(var n=Math.trunc(Math.ceil(t.size()/e)),r=new Array(e).fill(null),i=t.iterator(),o=0;o<e;o++){r[o]=new ll;for(var s=0;i.hasNext()&&s<n;){var a=i.next();r[o].add(a),s++}}return r},e.prototype.query=function(){if(1===arguments.length){var e=arguments[0];return t.prototype.query.call(this,e)}if(2===arguments.length){var n=arguments[0],r=arguments[1];t.prototype.query.call(this,n,r)}else if(3===arguments.length)if(gc(arguments[2],$h)&&arguments[0]instanceof Object&&arguments[1]instanceof ef){var i=arguments[0],o=arguments[1],s=arguments[2];t.prototype.query.call(this,i,o,s)}else if(gc(arguments[2],ul)&&arguments[0]instanceof Object&&arguments[1]instanceof ef){var a=arguments[0],u=arguments[1],c=arguments[2];t.prototype.query.call(this,a,u,c)}},e.prototype.getComparator=function(){return e.yComparator},e.prototype.createParentBoundablesFromVerticalSlice=function(e,n){return t.prototype.createParentBoundables.call(this,e,n)},e.prototype.remove=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return t.prototype.remove.call(this,e,n)}return t.prototype.remove.apply(this,arguments)},e.prototype.depth=function(){return 0===arguments.length?t.prototype.depth.call(this):t.prototype.depth.apply(this,arguments)},e.prototype.createParentBoundables=function(t,n){Bc.isTrue(!t.isEmpty());var r=Math.trunc(Math.ceil(t.size()/this.getNodeCapacity())),i=new ll(t);rf.sort(i,e.xComparator);var o=this.verticalSlices(i,Math.trunc(Math.ceil(Math.sqrt(r))));return this.createParentBoundablesFromVerticalSlices(o,n)},e.prototype.nearestNeighbour=function(){if(1===arguments.length){if(gc(arguments[0],cf)){var t=arguments[0],n=new of(this.getRoot(),this.getRoot(),t);return this.nearestNeighbour(n)}if(arguments[0]instanceof of){var r=arguments[0];return this.nearestNeighbour(r,rc.POSITIVE_INFINITY)}}else if(2===arguments.length){if(arguments[0]instanceof e&&gc(arguments[1],cf)){var i=arguments[0],o=arguments[1],s=new of(this.getRoot(),i.getRoot(),o);return this.nearestNeighbour(s)}if(arguments[0]instanceof of&&"number"==typeof arguments[1]){var a=arguments[0],u=arguments[1],c=u,l=null,h=new Qh;for(h.add(a);!h.isEmpty()&&c>0;){var f=h.poll(),p=f.getDistance();if(p>=c)break;f.isLeaves()?(c=p,l=f):f.expandToQueue(h,c)}return[l.getBoundable(0).getItem(),l.getBoundable(1).getItem()]}}else if(3===arguments.length){var d=arguments[0],g=arguments[1],y=arguments[2],v=new Jh(d,g),_=new of(this.getRoot(),v,y);return this.nearestNeighbour(_)[0]}},e.prototype.interfaces_=function(){return[tf,uc]},e.prototype.getClass=function(){return e},e.centreX=function(t){return e.avg(t.getMinX(),t.getMaxX())},e.avg=function(t,e){return(t+e)/2},e.centreY=function(t){return e.avg(t.getMinY(),t.getMaxY())},n.STRtreeNode.get=function(){return hf},n.serialVersionUID.get=function(){return 0x39920f7d5f261e0},n.xComparator.get=function(){return{interfaces_:function(){return[ac]},compare:function(n,r){return t.compareDoubles(e.centreX(n.getBounds()),e.centreX(r.getBounds()))}}},n.yComparator.get=function(){return{interfaces_:function(){return[ac]},compare:function(n,r){return t.compareDoubles(e.centreY(n.getBounds()),e.centreY(r.getBounds()))}}},n.intersectsOp.get=function(){return{interfaces_:function(){return[t.IntersectsOp]},intersects:function(t,e){return t.intersects(e)}}},n.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(e,n),e}(sf),hf=function(t){function e(){var e=arguments[0];t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.computeBounds=function(){for(var t=null,e=this.getChildBoundables().iterator();e.hasNext();){var n=e.next();null===t?t=new Lc(n.getBounds()):t.expandToInclude(n.getBounds())}return t},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(ef),ff=function(){};ff.prototype.interfaces_=function(){return[]},ff.prototype.getClass=function(){return ff},ff.relativeSign=function(t,e){return t<e?-1:t>e?1:0},ff.compare=function(t,e,n){if(e.equals2D(n))return 0;var r=ff.relativeSign(e.x,n.x),i=ff.relativeSign(e.y,n.y);switch(t){case 0:return ff.compareValue(r,i);case 1:return ff.compareValue(i,r);case 2:return ff.compareValue(i,-r);case 3:return ff.compareValue(-r,i);case 4:return ff.compareValue(-r,-i);case 5:return ff.compareValue(-i,-r);case 6:return ff.compareValue(-i,r);case 7:return ff.compareValue(r,-i)}return Bc.shouldNeverReachHere("invalid octant value"),0},ff.compareValue=function(t,e){return t<0?-1:t>0?1:e<0?-1:e>0?1:0};var pf=function(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3];this._segString=t,this.coord=new cc(e),this.segmentIndex=n,this._segmentOctant=r,this._isInterior=!e.equals2D(t.getCoordinate(n))};pf.prototype.getCoordinate=function(){return this.coord},pf.prototype.print=function(t){t.print(this.coord),t.print(" seg # = "+this.segmentIndex)},pf.prototype.compareTo=function(t){var e=t;return this.segmentIndex<e.segmentIndex?-1:this.segmentIndex>e.segmentIndex?1:this.coord.equals2D(e.coord)?0:ff.compare(this._segmentOctant,this.coord,e.coord)},pf.prototype.isEndPoint=function(t){return 0===this.segmentIndex&&!this._isInterior||this.segmentIndex===t},pf.prototype.isInterior=function(){return this._isInterior},pf.prototype.interfaces_=function(){return[oc]},pf.prototype.getClass=function(){return pf};var df=function(){this._nodeMap=new Pl,this._edge=null;var t=arguments[0];this._edge=t};df.prototype.getSplitCoordinates=function(){var t=new fl;this.addEndpoints();for(var e=this.iterator(),n=e.next();e.hasNext();){var r=e.next();this.addEdgeCoordinates(n,r,t),n=r}return t.toCoordinateArray()},df.prototype.addCollapsedNodes=function(){var t=new ll;this.findCollapsesFromInsertedNodes(t),this.findCollapsesFromExistingVertices(t);for(var e=t.iterator();e.hasNext();){var n=e.next().intValue();this.add(this._edge.getCoordinate(n),n)}},df.prototype.print=function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();)e.next().print(t)},df.prototype.findCollapsesFromExistingVertices=function(t){for(var e=0;e<this._edge.size()-2;e++){var n=this._edge.getCoordinate(e),r=this._edge.getCoordinate(e+2);n.equals2D(r)&&t.add(new mc(e+1))}},df.prototype.addEdgeCoordinates=function(t,e,n){var r=this._edge.getCoordinate(e.segmentIndex),i=e.isInterior()||!e.coord.equals2D(r);n.add(new cc(t.coord),!1);for(var o=t.segmentIndex+1;o<=e.segmentIndex;o++)n.add(this._edge.getCoordinate(o));i&&n.add(new cc(e.coord))},df.prototype.iterator=function(){return this._nodeMap.values().iterator()},df.prototype.addSplitEdges=function(t){this.addEndpoints(),this.addCollapsedNodes();for(var e=this.iterator(),n=e.next();e.hasNext();){var r=e.next(),i=this.createSplitEdge(n,r);t.add(i),n=r}},df.prototype.findCollapseIndex=function(t,e,n){if(!t.coord.equals2D(e.coord))return!1;var r=e.segmentIndex-t.segmentIndex;return e.isInterior()||r--,1===r&&(n[0]=t.segmentIndex+1,!0)},df.prototype.findCollapsesFromInsertedNodes=function(t){for(var e=new Array(1).fill(null),n=this.iterator(),r=n.next();n.hasNext();){var i=n.next();this.findCollapseIndex(r,i,e)&&t.add(new mc(e[0])),r=i}},df.prototype.getEdge=function(){return this._edge},df.prototype.addEndpoints=function(){var t=this._edge.size()-1;this.add(this._edge.getCoordinate(0),0),this.add(this._edge.getCoordinate(t),t)},df.prototype.createSplitEdge=function(t,e){var n=e.segmentIndex-t.segmentIndex+2,r=this._edge.getCoordinate(e.segmentIndex),i=e.isInterior()||!e.coord.equals2D(r);i||n--;var o=new Array(n).fill(null),s=0;o[s++]=new cc(t.coord);for(var a=t.segmentIndex+1;a<=e.segmentIndex;a++)o[s++]=this._edge.getCoordinate(a);return i&&(o[s]=new cc(e.coord)),new _f(o,this._edge.getData())},df.prototype.add=function(t,e){var n=new pf(this._edge,t,e,this._edge.getSegmentOctant(e)),r=this._nodeMap.get(n);return null!==r?(Bc.isTrue(r.coord.equals2D(t),"Found equal nodes with different coordinates"),r):(this._nodeMap.put(n,n),n)},df.prototype.checkSplitEdgesCorrectness=function(t){var e=this._edge.getCoordinates(),n=t.get(0).getCoordinate(0);if(!n.equals2D(e[0]))throw new kc("bad split edge start point at "+n);var r=t.get(t.size()-1).getCoordinates(),i=r[r.length-1];if(!i.equals2D(e[e.length-1]))throw new kc("bad split edge end point at "+i)},df.prototype.interfaces_=function(){return[]},df.prototype.getClass=function(){return df};var gf=function(){};gf.prototype.interfaces_=function(){return[]},gf.prototype.getClass=function(){return gf},gf.octant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1];if(0===t&&0===e)throw new nc("Cannot compute the octant for point ( "+t+", "+e+" )");var n=Math.abs(t),r=Math.abs(e);return t>=0?e>=0?n>=r?0:1:n>=r?7:6:e>=0?n>=r?3:2:n>=r?4:5}if(arguments[0]instanceof cc&&arguments[1]instanceof cc){var i=arguments[0],o=arguments[1],s=o.x-i.x,a=o.y-i.y;if(0===s&&0===a)throw new nc("Cannot compute the octant for two identical points "+i);return gf.octant(s,a)}};var yf=function(){};yf.prototype.getCoordinates=function(){},yf.prototype.size=function(){},yf.prototype.getCoordinate=function(t){},yf.prototype.isClosed=function(){},yf.prototype.setData=function(t){},yf.prototype.getData=function(){},yf.prototype.interfaces_=function(){return[]},yf.prototype.getClass=function(){return yf};var vf=function(){};vf.prototype.addIntersection=function(t,e){},vf.prototype.interfaces_=function(){return[yf]},vf.prototype.getClass=function(){return vf};var _f=function(){this._nodeList=new df(this),this._pts=null,this._data=null;var t=arguments[0],e=arguments[1];this._pts=t,this._data=e};_f.prototype.getCoordinates=function(){return this._pts},_f.prototype.size=function(){return this._pts.length},_f.prototype.getCoordinate=function(t){return this._pts[t]},_f.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},_f.prototype.getSegmentOctant=function(t){return t===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(t),this.getCoordinate(t+1))},_f.prototype.setData=function(t){this._data=t},_f.prototype.safeOctant=function(t,e){return t.equals2D(e)?0:gf.octant(t,e)},_f.prototype.getData=function(){return this._data},_f.prototype.addIntersection=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];this.addIntersectionNode(t,e)}else if(4===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[3],o=new cc(n.getIntersection(i));this.addIntersection(o,r)}},_f.prototype.toString=function(){return Dc.toLineString(new lh(this._pts))},_f.prototype.getNodeList=function(){return this._nodeList},_f.prototype.addIntersectionNode=function(t,e){var n=e,r=n+1;if(r<this._pts.length){var i=this._pts[r];t.equals2D(i)&&(n=r)}return this._nodeList.add(t,n)},_f.prototype.addIntersections=function(t,e,n){for(var r=0;r<t.getIntersectionNum();r++)this.addIntersection(t,e,n,r)},_f.prototype.interfaces_=function(){return[vf]},_f.prototype.getClass=function(){return _f},_f.getNodedSubstrings=function(){if(1===arguments.length){var t=arguments[0],e=new ll;return _f.getNodedSubstrings(t,e),e}if(2===arguments.length)for(var n=arguments[0],r=arguments[1],i=n.iterator();i.hasNext();){var o=i.next();o.getNodeList().addSplitEdges(r)}};var mf=function(){if(this.p0=null,this.p1=null,0===arguments.length)this.p0=new cc,this.p1=new cc;else if(1===arguments.length){var t=arguments[0];this.p0=new cc(t.p0),this.p1=new cc(t.p1)}else if(2===arguments.length)this.p0=arguments[0],this.p1=arguments[1];else if(4===arguments.length){var e=arguments[0],n=arguments[1],r=arguments[2],i=arguments[3];this.p0=new cc(e,n),this.p1=new cc(r,i)}},bf={serialVersionUID:{configurable:!0}};mf.prototype.minX=function(){return Math.min(this.p0.x,this.p1.x)},mf.prototype.orientationIndex=function(){if(arguments[0]instanceof mf){var t=arguments[0],e=qc.orientationIndex(this.p0,this.p1,t.p0),n=qc.orientationIndex(this.p0,this.p1,t.p1);return e>=0&&n>=0||e<=0&&n<=0?Math.max(e,n):0}if(arguments[0]instanceof cc){var r=arguments[0];return qc.orientationIndex(this.p0,this.p1,r)}},mf.prototype.toGeometry=function(t){return t.createLineString([this.p0,this.p1])},mf.prototype.isVertical=function(){return this.p0.x===this.p1.x},mf.prototype.equals=function(t){if(!(t instanceof mf))return!1;var e=t;return this.p0.equals(e.p0)&&this.p1.equals(e.p1)},mf.prototype.intersection=function(t){var e=new Yc;return e.computeIntersection(this.p0,this.p1,t.p0,t.p1),e.hasIntersection()?e.getIntersection(0):null},mf.prototype.project=function(){if(arguments[0]instanceof cc){var t=arguments[0];if(t.equals(this.p0)||t.equals(this.p1))return new cc(t);var e=this.projectionFactor(t),n=new cc;return n.x=this.p0.x+e*(this.p1.x-this.p0.x),n.y=this.p0.y+e*(this.p1.y-this.p0.y),n}if(arguments[0]instanceof mf){var r=arguments[0],i=this.projectionFactor(r.p0),o=this.projectionFactor(r.p1);if(i>=1&&o>=1)return null;if(i<=0&&o<=0)return null;var s=this.project(r.p0);i<0&&(s=this.p0),i>1&&(s=this.p1);var a=this.project(r.p1);return o<0&&(a=this.p0),o>1&&(a=this.p1),new mf(s,a)}},mf.prototype.normalize=function(){this.p1.compareTo(this.p0)<0&&this.reverse()},mf.prototype.angle=function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)},mf.prototype.getCoordinate=function(t){return 0===t?this.p0:this.p1},mf.prototype.distancePerpendicular=function(t){return qc.distancePointLinePerpendicular(t,this.p0,this.p1)},mf.prototype.minY=function(){return Math.min(this.p0.y,this.p1.y)},mf.prototype.midPoint=function(){return mf.midPoint(this.p0,this.p1)},mf.prototype.projectionFactor=function(t){if(t.equals(this.p0))return 0;if(t.equals(this.p1))return 1;var e=this.p1.x-this.p0.x,n=this.p1.y-this.p0.y,r=e*e+n*n;return r<=0?rc.NaN:((t.x-this.p0.x)*e+(t.y-this.p0.y)*n)/r},mf.prototype.closestPoints=function(t){var e=this.intersection(t);if(null!==e)return[e,e];var n=new Array(2).fill(null),r=rc.MAX_VALUE,i=null,o=this.closestPoint(t.p0);r=o.distance(t.p0),n[0]=o,n[1]=t.p0;var s=this.closestPoint(t.p1);(i=s.distance(t.p1))<r&&(r=i,n[0]=s,n[1]=t.p1);var a=t.closestPoint(this.p0);(i=a.distance(this.p0))<r&&(r=i,n[0]=this.p0,n[1]=a);var u=t.closestPoint(this.p1);return(i=u.distance(this.p1))<r&&(r=i,n[0]=this.p1,n[1]=u),n},mf.prototype.closestPoint=function(t){var e=this.projectionFactor(t);return e>0&&e<1?this.project(t):this.p0.distance(t)<this.p1.distance(t)?this.p0:this.p1},mf.prototype.maxX=function(){return Math.max(this.p0.x,this.p1.x)},mf.prototype.getLength=function(){return this.p0.distance(this.p1)},mf.prototype.compareTo=function(t){var e=t,n=this.p0.compareTo(e.p0);return 0!==n?n:this.p1.compareTo(e.p1)},mf.prototype.reverse=function(){var t=this.p0;this.p0=this.p1,this.p1=t},mf.prototype.equalsTopo=function(t){return this.p0.equals(t.p0)&&(this.p1.equals(t.p1)||this.p0.equals(t.p1))&&this.p1.equals(t.p0)},mf.prototype.lineIntersection=function(t){try{return Tc.intersection(this.p0,this.p1,t.p0,t.p1)}catch(t){if(!(t instanceof Pc))throw t}return null},mf.prototype.maxY=function(){return Math.max(this.p0.y,this.p1.y)},mf.prototype.pointAlongOffset=function(t,e){var n=this.p0.x+t*(this.p1.x-this.p0.x),r=this.p0.y+t*(this.p1.y-this.p0.y),i=this.p1.x-this.p0.x,o=this.p1.y-this.p0.y,s=Math.sqrt(i*i+o*o),a=0,u=0;if(0!==e){if(s<=0)throw new Error("Cannot compute offset from zero-length line segment");a=e*i/s,u=e*o/s}return new cc(n-u,r+a)},mf.prototype.setCoordinates=function(){if(1===arguments.length){var t=arguments[0];this.setCoordinates(t.p0,t.p1)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.p0.x=e.x,this.p0.y=e.y,this.p1.x=n.x,this.p1.y=n.y}},mf.prototype.segmentFraction=function(t){var e=this.projectionFactor(t);return e<0?e=0:(e>1||rc.isNaN(e))&&(e=1),e},mf.prototype.toString=function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"},mf.prototype.isHorizontal=function(){return this.p0.y===this.p1.y},mf.prototype.distance=function(){if(arguments[0]instanceof mf){var t=arguments[0];return qc.distanceLineLine(this.p0,this.p1,t.p0,t.p1)}if(arguments[0]instanceof cc){var e=arguments[0];return qc.distancePointLine(e,this.p0,this.p1)}},mf.prototype.pointAlong=function(t){var e=new cc;return e.x=this.p0.x+t*(this.p1.x-this.p0.x),e.y=this.p0.y+t*(this.p1.y-this.p0.y),e},mf.prototype.hashCode=function(){var t=rc.doubleToLongBits(this.p0.x);t^=31*rc.doubleToLongBits(this.p0.y);var e=Math.trunc(t)^Math.trunc(t>>32),n=rc.doubleToLongBits(this.p1.x);return n^=31*rc.doubleToLongBits(this.p1.y),e^Math.trunc(n)^Math.trunc(n>>32)},mf.prototype.interfaces_=function(){return[oc,uc]},mf.prototype.getClass=function(){return mf},mf.midPoint=function(t,e){return new cc((t.x+e.x)/2,(t.y+e.y)/2)},bf.serialVersionUID.get=function(){return 0x2d2172135f411c00},Object.defineProperties(mf,bf);var Ef=function(){this.tempEnv1=new Lc,this.tempEnv2=new Lc,this._overlapSeg1=new mf,this._overlapSeg2=new mf};Ef.prototype.overlap=function(){if(2===arguments.length);else if(4===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3];t.getLineSegment(e,this._overlapSeg1),n.getLineSegment(r,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}},Ef.prototype.interfaces_=function(){return[]},Ef.prototype.getClass=function(){return Ef};var wf=function(){this._pts=null,this._start=null,this._end=null,this._env=null,this._context=null,this._id=null;var t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3];this._pts=t,this._start=e,this._end=n,this._context=r};wf.prototype.getLineSegment=function(t,e){e.p0=this._pts[t],e.p1=this._pts[t+1]},wf.prototype.computeSelect=function(t,e,n,r){var i=this._pts[e],o=this._pts[n];if(r.tempEnv1.init(i,o),n-e==1)return r.select(this,e),null;if(!t.intersects(r.tempEnv1))return null;var s=Math.trunc((e+n)/2);e<s&&this.computeSelect(t,e,s,r),s<n&&this.computeSelect(t,s,n,r)},wf.prototype.getCoordinates=function(){for(var t=new Array(this._end-this._start+1).fill(null),e=0,n=this._start;n<=this._end;n++)t[e++]=this._pts[n];return t},wf.prototype.computeOverlaps=function(t,e){this.computeOverlapsInternal(this._start,this._end,t,t._start,t._end,e)},wf.prototype.setId=function(t){this._id=t},wf.prototype.select=function(t,e){this.computeSelect(t,this._start,this._end,e)},wf.prototype.getEnvelope=function(){if(null===this._env){var t=this._pts[this._start],e=this._pts[this._end];this._env=new Lc(t,e)}return this._env},wf.prototype.getEndIndex=function(){return this._end},wf.prototype.getStartIndex=function(){return this._start},wf.prototype.getContext=function(){return this._context},wf.prototype.getId=function(){return this._id},wf.prototype.computeOverlapsInternal=function(t,e,n,r,i,o){var s=this._pts[t],a=this._pts[e],u=n._pts[r],c=n._pts[i];if(e-t==1&&i-r==1)return o.overlap(this,t,n,r),null;if(o.tempEnv1.init(s,a),o.tempEnv2.init(u,c),!o.tempEnv1.intersects(o.tempEnv2))return null;var l=Math.trunc((t+e)/2),h=Math.trunc((r+i)/2);t<l&&(r<h&&this.computeOverlapsInternal(t,l,n,r,h,o),h<i&&this.computeOverlapsInternal(t,l,n,h,i,o)),l<e&&(r<h&&this.computeOverlapsInternal(l,e,n,r,h,o),h<i&&this.computeOverlapsInternal(l,e,n,h,i,o))},wf.prototype.interfaces_=function(){return[]},wf.prototype.getClass=function(){return wf};var xf=function(){};xf.prototype.interfaces_=function(){return[]},xf.prototype.getClass=function(){return xf},xf.getChainStartIndices=function(t){var e=0,n=new ll;n.add(new mc(e));do{var r=xf.findChainEnd(t,e);n.add(new mc(r)),e=r}while(e<t.length-1);return xf.toIntArray(n)},xf.findChainEnd=function(t,e){for(var n=e;n<t.length-1&&t[n].equals2D(t[n+1]);)n++;if(n>=t.length-1)return t.length-1;for(var r=Yh.quadrant(t[n],t[n+1]),i=e+1;i<t.length;){if(!t[i-1].equals2D(t[i])&&Yh.quadrant(t[i-1],t[i])!==r)break;i++}return i-1},xf.getChains=function(){if(1===arguments.length){var t=arguments[0];return xf.getChains(t,null)}if(2===arguments.length){for(var e=arguments[0],n=arguments[1],r=new ll,i=xf.getChainStartIndices(e),o=0;o<i.length-1;o++){var s=new wf(e,i[o],i[o+1],n);r.add(s)}return r}},xf.toIntArray=function(t){for(var e=new Array(t.size()).fill(null),n=0;n<e.length;n++)e[n]=t.get(n).intValue();return e};var Of=function(){};Of.prototype.computeNodes=function(t){},Of.prototype.getNodedSubstrings=function(){},Of.prototype.interfaces_=function(){return[]},Of.prototype.getClass=function(){return Of};var Sf=function(){if(this._segInt=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.setSegmentIntersector(t)}};Sf.prototype.setSegmentIntersector=function(t){this._segInt=t},Sf.prototype.interfaces_=function(){return[Of]},Sf.prototype.getClass=function(){return Sf};var Cf=function(t){function e(e){e?t.call(this,e):t.call(this),this._monoChains=new ll,this._index=new lf,this._idCounter=0,this._nodedSegStrings=null,this._nOverlaps=0}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={SegmentOverlapAction:{configurable:!0}};return e.prototype.getMonotoneChains=function(){return this._monoChains},e.prototype.getNodedSubstrings=function(){return _f.getNodedSubstrings(this._nodedSegStrings)},e.prototype.getIndex=function(){return this._index},e.prototype.add=function(t){for(var e=this,n=xf.getChains(t.getCoordinates(),t).iterator();n.hasNext();){var r=n.next();r.setId(e._idCounter++),e._index.insert(r.getEnvelope(),r),e._monoChains.add(r)}},e.prototype.computeNodes=function(t){this._nodedSegStrings=t;for(var e=t.iterator();e.hasNext();)this.add(e.next());this.intersectChains()},e.prototype.intersectChains=function(){for(var t=this,e=new If(this._segInt),n=this._monoChains.iterator();n.hasNext();)for(var r=n.next(),i=t._index.query(r.getEnvelope()).iterator();i.hasNext();){var o=i.next();if(o.getId()>r.getId()&&(r.computeOverlaps(o,e),t._nOverlaps++),t._segInt.isDone())return null}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},n.SegmentOverlapAction.get=function(){return If},Object.defineProperties(e,n),e}(Sf),If=function(t){function e(){t.call(this),this._si=null;var e=arguments[0];this._si=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.overlap=function(){if(4!==arguments.length)return t.prototype.overlap.apply(this,arguments);var e=arguments[0],n=arguments[1],r=arguments[2],i=arguments[3],o=e.getContext(),s=r.getContext();this._si.processIntersections(o,n,s,i)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Ef),Pf=function t(){if(this._quadrantSegments=t.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=t.CAP_ROUND,this._joinStyle=t.JOIN_ROUND,this._mitreLimit=t.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=t.DEFAULT_SIMPLIFY_FACTOR,0===arguments.length);else if(1===arguments.length){var e=arguments[0];this.setQuadrantSegments(e)}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.setQuadrantSegments(n),this.setEndCapStyle(r)}else if(4===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];this.setQuadrantSegments(i),this.setEndCapStyle(o),this.setJoinStyle(s),this.setMitreLimit(a)}},Rf={CAP_ROUND:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},JOIN_ROUND:{configurable:!0},JOIN_MITRE:{configurable:!0},JOIN_BEVEL:{configurable:!0},DEFAULT_QUADRANT_SEGMENTS:{configurable:!0},DEFAULT_MITRE_LIMIT:{configurable:!0},DEFAULT_SIMPLIFY_FACTOR:{configurable:!0}};Pf.prototype.getEndCapStyle=function(){return this._endCapStyle},Pf.prototype.isSingleSided=function(){return this._isSingleSided},Pf.prototype.setQuadrantSegments=function(t){this._quadrantSegments=t,0===this._quadrantSegments&&(this._joinStyle=Pf.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=Pf.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),t<=0&&(this._quadrantSegments=1),this._joinStyle!==Pf.JOIN_ROUND&&(this._quadrantSegments=Pf.DEFAULT_QUADRANT_SEGMENTS)},Pf.prototype.getJoinStyle=function(){return this._joinStyle},Pf.prototype.setJoinStyle=function(t){this._joinStyle=t},Pf.prototype.setSimplifyFactor=function(t){this._simplifyFactor=t<0?0:t},Pf.prototype.getSimplifyFactor=function(){return this._simplifyFactor},Pf.prototype.getQuadrantSegments=function(){return this._quadrantSegments},Pf.prototype.setEndCapStyle=function(t){this._endCapStyle=t},Pf.prototype.getMitreLimit=function(){return this._mitreLimit},Pf.prototype.setMitreLimit=function(t){this._mitreLimit=t},Pf.prototype.setSingleSided=function(t){this._isSingleSided=t},Pf.prototype.interfaces_=function(){return[]},Pf.prototype.getClass=function(){return Pf},Pf.bufferDistanceError=function(t){var e=Math.PI/2/t;return 1-Math.cos(e/2)},Rf.CAP_ROUND.get=function(){return 1},Rf.CAP_FLAT.get=function(){return 2},Rf.CAP_SQUARE.get=function(){return 3},Rf.JOIN_ROUND.get=function(){return 1},Rf.JOIN_MITRE.get=function(){return 2},Rf.JOIN_BEVEL.get=function(){return 3},Rf.DEFAULT_QUADRANT_SEGMENTS.get=function(){return 8},Rf.DEFAULT_MITRE_LIMIT.get=function(){return 5},Rf.DEFAULT_SIMPLIFY_FACTOR.get=function(){return.01},Object.defineProperties(Pf,Rf);var Tf=function(t){this._distanceTol=null,this._isDeleted=null,this._angleOrientation=qc.COUNTERCLOCKWISE,this._inputLine=t||null},Lf={INIT:{configurable:!0},DELETE:{configurable:!0},KEEP:{configurable:!0},NUM_PTS_TO_CHECK:{configurable:!0}};Tf.prototype.isDeletable=function(t,e,n,r){var i=this._inputLine[t],o=this._inputLine[e],s=this._inputLine[n];return!!this.isConcave(i,o,s)&&!!this.isShallow(i,o,s,r)&&this.isShallowSampled(i,o,t,n,r)},Tf.prototype.deleteShallowConcavities=function(){for(var t=this,e=1,n=this.findNextNonDeletedIndex(e),r=this.findNextNonDeletedIndex(n),i=!1;r<this._inputLine.length;){var o=!1;t.isDeletable(e,n,r,t._distanceTol)&&(t._isDeleted[n]=Tf.DELETE,o=!0,i=!0),e=o?r:n,n=t.findNextNonDeletedIndex(e),r=t.findNextNonDeletedIndex(n)}return i},Tf.prototype.isShallowConcavity=function(t,e,n,r){return qc.computeOrientation(t,e,n)===this._angleOrientation&&qc.distancePointLine(e,t,n)<r},Tf.prototype.isShallowSampled=function(t,e,n,r,i){var o=Math.trunc((r-n)/Tf.NUM_PTS_TO_CHECK);o<=0&&(o=1);for(var s=n;s<r;s+=o)if(!this.isShallow(t,e,this._inputLine[s],i))return!1;return!0},Tf.prototype.isConcave=function(t,e,n){var r=qc.computeOrientation(t,e,n)===this._angleOrientation;return r},Tf.prototype.simplify=function(t){this._distanceTol=Math.abs(t),t<0&&(this._angleOrientation=qc.CLOCKWISE),this._isDeleted=new Array(this._inputLine.length).fill(null);var e=!1;do{e=this.deleteShallowConcavities()}while(e);return this.collapseLine()},Tf.prototype.findNextNonDeletedIndex=function(t){for(var e=t+1;e<this._inputLine.length&&this._isDeleted[e]===Tf.DELETE;)e++;return e},Tf.prototype.isShallow=function(t,e,n,r){return qc.distancePointLine(e,t,n)<r},Tf.prototype.collapseLine=function(){for(var t=new fl,e=0;e<this._inputLine.length;e++)this._isDeleted[e]!==Tf.DELETE&&t.add(this._inputLine[e]);return t.toCoordinateArray()},Tf.prototype.interfaces_=function(){return[]},Tf.prototype.getClass=function(){return Tf},Tf.simplify=function(t,e){return new Tf(t).simplify(e)},Lf.INIT.get=function(){return 0},Lf.DELETE.get=function(){return 1},Lf.KEEP.get=function(){return 1},Lf.NUM_PTS_TO_CHECK.get=function(){return 10},Object.defineProperties(Tf,Lf);var Mf=function(){this._ptList=null,this._precisionModel=null,this._minimimVertexDistance=0,this._ptList=new ll},Nf={COORDINATE_ARRAY_TYPE:{configurable:!0}};Mf.prototype.getCoordinates=function(){return this._ptList.toArray(Mf.COORDINATE_ARRAY_TYPE)},Mf.prototype.setPrecisionModel=function(t){this._precisionModel=t},Mf.prototype.addPt=function(t){var e=new cc(t);if(this._precisionModel.makePrecise(e),this.isRedundant(e))return null;this._ptList.add(e)},Mf.prototype.revere=function(){},Mf.prototype.addPts=function(t,e){if(e)for(var n=0;n<t.length;n++)this.addPt(t[n]);else for(var r=t.length-1;r>=0;r--)this.addPt(t[r])},Mf.prototype.isRedundant=function(t){if(this._ptList.size()<1)return!1;var e=this._ptList.get(this._ptList.size()-1);return t.distance(e)<this._minimimVertexDistance},Mf.prototype.toString=function(){return(new mh).createLineString(this.getCoordinates()).toString()},Mf.prototype.closeRing=function(){if(this._ptList.size()<1)return null;var t=new cc(this._ptList.get(0)),e=this._ptList.get(this._ptList.size()-1);if(t.equals(e))return null;this._ptList.add(t)},Mf.prototype.setMinimumVertexDistance=function(t){this._minimimVertexDistance=t},Mf.prototype.interfaces_=function(){return[]},Mf.prototype.getClass=function(){return Mf},Nf.COORDINATE_ARRAY_TYPE.get=function(){return new Array(0).fill(null)},Object.defineProperties(Mf,Nf);var Af=function(){},Ff={PI_TIMES_2:{configurable:!0},PI_OVER_2:{configurable:!0},PI_OVER_4:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},CLOCKWISE:{configurable:!0},NONE:{configurable:!0}};Af.prototype.interfaces_=function(){return[]},Af.prototype.getClass=function(){return Af},Af.toDegrees=function(t){return 180*t/Math.PI},Af.normalize=function(t){for(;t>Math.PI;)t-=Af.PI_TIMES_2;for(;t<=-Math.PI;)t+=Af.PI_TIMES_2;return t},Af.angle=function(){if(1===arguments.length){var t=arguments[0];return Math.atan2(t.y,t.x)}if(2===arguments.length){var e=arguments[0],n=arguments[1],r=n.x-e.x,i=n.y-e.y;return Math.atan2(i,r)}},Af.isAcute=function(t,e,n){var r=t.x-e.x,i=t.y-e.y;return r*(n.x-e.x)+i*(n.y-e.y)>0},Af.isObtuse=function(t,e,n){var r=t.x-e.x,i=t.y-e.y;return r*(n.x-e.x)+i*(n.y-e.y)<0},Af.interiorAngle=function(t,e,n){var r=Af.angle(e,t),i=Af.angle(e,n);return Math.abs(i-r)},Af.normalizePositive=function(t){if(t<0){for(;t<0;)t+=Af.PI_TIMES_2;t>=Af.PI_TIMES_2&&(t=0)}else{for(;t>=Af.PI_TIMES_2;)t-=Af.PI_TIMES_2;t<0&&(t=0)}return t},Af.angleBetween=function(t,e,n){var r=Af.angle(e,t),i=Af.angle(e,n);return Af.diff(r,i)},Af.diff=function(t,e){var n=null;return(n=t<e?e-t:t-e)>Math.PI&&(n=2*Math.PI-n),n},Af.toRadians=function(t){return t*Math.PI/180},Af.getTurn=function(t,e){var n=Math.sin(e-t);return n>0?Af.COUNTERCLOCKWISE:n<0?Af.CLOCKWISE:Af.NONE},Af.angleBetweenOriented=function(t,e,n){var r=Af.angle(e,t),i=Af.angle(e,n)-r;return i<=-Math.PI?i+Af.PI_TIMES_2:i>Math.PI?i-Af.PI_TIMES_2:i},Ff.PI_TIMES_2.get=function(){return 2*Math.PI},Ff.PI_OVER_2.get=function(){return Math.PI/2},Ff.PI_OVER_4.get=function(){return Math.PI/4},Ff.COUNTERCLOCKWISE.get=function(){return qc.COUNTERCLOCKWISE},Ff.CLOCKWISE.get=function(){return qc.CLOCKWISE},Ff.NONE.get=function(){return qc.COLLINEAR},Object.defineProperties(Af,Ff);var jf=function t(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new mf,this._seg1=new mf,this._offset0=new mf,this._offset1=new mf,this._side=0,this._hasNarrowConcaveAngle=!1;var e=arguments[0],n=arguments[1],r=arguments[2];this._precisionModel=e,this._bufParams=n,this._li=new Yc,this._filletAngleQuantum=Math.PI/2/n.getQuadrantSegments(),n.getQuadrantSegments()>=8&&n.getJoinStyle()===Pf.JOIN_ROUND&&(this._closingSegLengthFactor=t.MAX_CLOSING_SEG_LEN_FACTOR),this.init(r)},Df={OFFSET_SEGMENT_SEPARATION_FACTOR:{configurable:!0},INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},CURVE_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},MAX_CLOSING_SEG_LEN_FACTOR:{configurable:!0}};jf.prototype.addNextSegment=function(t,e){if(this._s0=this._s1,this._s1=this._s2,this._s2=t,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var n=qc.computeOrientation(this._s0,this._s1,this._s2),r=n===qc.CLOCKWISE&&this._side===Ih.LEFT||n===qc.COUNTERCLOCKWISE&&this._side===Ih.RIGHT;0===n?this.addCollinear(e):r?this.addOutsideTurn(n,e):this.addInsideTurn(n,e)},jf.prototype.addLineEndCap=function(t,e){var n=new mf(t,e),r=new mf;this.computeOffsetSegment(n,Ih.LEFT,this._distance,r);var i=new mf;this.computeOffsetSegment(n,Ih.RIGHT,this._distance,i);var o=e.x-t.x,s=e.y-t.y,a=Math.atan2(s,o);switch(this._bufParams.getEndCapStyle()){case Pf.CAP_ROUND:this._segList.addPt(r.p1),this.addFilletArc(e,a+Math.PI/2,a-Math.PI/2,qc.CLOCKWISE,this._distance),this._segList.addPt(i.p1);break;case Pf.CAP_FLAT:this._segList.addPt(r.p1),this._segList.addPt(i.p1);break;case Pf.CAP_SQUARE:var u=new cc;u.x=Math.abs(this._distance)*Math.cos(a),u.y=Math.abs(this._distance)*Math.sin(a);var c=new cc(r.p1.x+u.x,r.p1.y+u.y),l=new cc(i.p1.x+u.x,i.p1.y+u.y);this._segList.addPt(c),this._segList.addPt(l)}},jf.prototype.getCoordinates=function(){return this._segList.getCoordinates()},jf.prototype.addMitreJoin=function(t,e,n,r){var i=!0,o=null;try{o=Tc.intersection(e.p0,e.p1,n.p0,n.p1),(r<=0?1:o.distance(t)/Math.abs(r))>this._bufParams.getMitreLimit()&&(i=!1)}catch(t){if(!(t instanceof Pc))throw t;o=new cc(0,0),i=!1}i?this._segList.addPt(o):this.addLimitedMitreJoin(e,n,r,this._bufParams.getMitreLimit())},jf.prototype.addFilletCorner=function(t,e,n,r,i){var o=e.x-t.x,s=e.y-t.y,a=Math.atan2(s,o),u=n.x-t.x,c=n.y-t.y,l=Math.atan2(c,u);r===qc.CLOCKWISE?a<=l&&(a+=2*Math.PI):a>=l&&(a-=2*Math.PI),this._segList.addPt(e),this.addFilletArc(t,a,l,r,i),this._segList.addPt(n)},jf.prototype.addOutsideTurn=function(t,e){if(this._offset0.p1.distance(this._offset1.p0)<this._distance*jf.OFFSET_SEGMENT_SEPARATION_FACTOR)return this._segList.addPt(this._offset0.p1),null;this._bufParams.getJoinStyle()===Pf.JOIN_MITRE?this.addMitreJoin(this._s1,this._offset0,this._offset1,this._distance):this._bufParams.getJoinStyle()===Pf.JOIN_BEVEL?this.addBevelJoin(this._offset0,this._offset1):(e&&this._segList.addPt(this._offset0.p1),this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,t,this._distance),this._segList.addPt(this._offset1.p0))},jf.prototype.createSquare=function(t){this._segList.addPt(new cc(t.x+this._distance,t.y+this._distance)),this._segList.addPt(new cc(t.x+this._distance,t.y-this._distance)),this._segList.addPt(new cc(t.x-this._distance,t.y-this._distance)),this._segList.addPt(new cc(t.x-this._distance,t.y+this._distance)),this._segList.closeRing()},jf.prototype.addSegments=function(t,e){this._segList.addPts(t,e)},jf.prototype.addFirstSegment=function(){this._segList.addPt(this._offset1.p0)},jf.prototype.addLastSegment=function(){this._segList.addPt(this._offset1.p1)},jf.prototype.initSideSegments=function(t,e,n){this._s1=t,this._s2=e,this._side=n,this._seg1.setCoordinates(t,e),this.computeOffsetSegment(this._seg1,n,this._distance,this._offset1)},jf.prototype.addLimitedMitreJoin=function(t,e,n,r){var i=this._seg0.p1,o=Af.angle(i,this._seg0.p0),s=Af.angleBetweenOriented(this._seg0.p0,i,this._seg1.p1)/2,a=Af.normalize(o+s),u=Af.normalize(a+Math.PI),c=r*n,l=n-c*Math.abs(Math.sin(s)),h=i.x+c*Math.cos(u),f=i.y+c*Math.sin(u),p=new cc(h,f),d=new mf(i,p),g=d.pointAlongOffset(1,l),y=d.pointAlongOffset(1,-l);this._side===Ih.LEFT?(this._segList.addPt(g),this._segList.addPt(y)):(this._segList.addPt(y),this._segList.addPt(g))},jf.prototype.computeOffsetSegment=function(t,e,n,r){var i=e===Ih.LEFT?1:-1,o=t.p1.x-t.p0.x,s=t.p1.y-t.p0.y,a=Math.sqrt(o*o+s*s),u=i*n*o/a,c=i*n*s/a;r.p0.x=t.p0.x-c,r.p0.y=t.p0.y+u,r.p1.x=t.p1.x-c,r.p1.y=t.p1.y+u},jf.prototype.addFilletArc=function(t,e,n,r,i){var o=r===qc.CLOCKWISE?-1:1,s=Math.abs(e-n),a=Math.trunc(s/this._filletAngleQuantum+.5);if(a<1)return null;for(var u=s/a,c=0,l=new cc;c<s;){var h=e+o*c;l.x=t.x+i*Math.cos(h),l.y=t.y+i*Math.sin(h),this._segList.addPt(l),c+=u}},jf.prototype.addInsideTurn=function(t,e){if(this._li.computeIntersection(this._offset0.p0,this._offset0.p1,this._offset1.p0,this._offset1.p1),this._li.hasIntersection())this._segList.addPt(this._li.getIntersection(0));else if(this._hasNarrowConcaveAngle=!0,this._offset0.p1.distance(this._offset1.p0)<this._distance*jf.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR)this._segList.addPt(this._offset0.p1);else{if(this._segList.addPt(this._offset0.p1),this._closingSegLengthFactor>0){var n=new cc((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(n);var r=new cc((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(r)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}},jf.prototype.createCircle=function(t){var e=new cc(t.x+this._distance,t.y);this._segList.addPt(e),this.addFilletArc(t,0,2*Math.PI,-1,this._distance),this._segList.closeRing()},jf.prototype.addBevelJoin=function(t,e){this._segList.addPt(t.p1),this._segList.addPt(e.p0)},jf.prototype.init=function(t){this._distance=t,this._maxCurveSegmentError=t*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new Mf,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(t*jf.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)},jf.prototype.addCollinear=function(t){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2),this._li.getIntersectionNum()>=2&&(this._bufParams.getJoinStyle()===Pf.JOIN_BEVEL||this._bufParams.getJoinStyle()===Pf.JOIN_MITRE?(t&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,qc.CLOCKWISE,this._distance))},jf.prototype.closeRing=function(){this._segList.closeRing()},jf.prototype.hasNarrowConcaveAngle=function(){return this._hasNarrowConcaveAngle},jf.prototype.interfaces_=function(){return[]},jf.prototype.getClass=function(){return jf},Df.OFFSET_SEGMENT_SEPARATION_FACTOR.get=function(){return.001},Df.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return.001},Df.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return 1e-6},Df.MAX_CLOSING_SEG_LEN_FACTOR.get=function(){return 80},Object.defineProperties(jf,Df);var kf=function(){this._distance=0,this._precisionModel=null,this._bufParams=null;var t=arguments[0],e=arguments[1];this._precisionModel=t,this._bufParams=e};kf.prototype.getOffsetCurve=function(t,e){if(this._distance=e,0===e)return null;var n=e<0,r=Math.abs(e),i=this.getSegGen(r);t.length<=1?this.computePointCurve(t[0],i):this.computeOffsetCurve(t,n,i);var o=i.getCoordinates();return n&&pl.reverse(o),o},kf.prototype.computeSingleSidedBufferCurve=function(t,e,n){var r=this.simplifyTolerance(this._distance);if(e){n.addSegments(t,!0);var i=Tf.simplify(t,-r),o=i.length-1;n.initSideSegments(i[o],i[o-1],Ih.LEFT),n.addFirstSegment();for(var s=o-2;s>=0;s--)n.addNextSegment(i[s],!0)}else{n.addSegments(t,!1);var a=Tf.simplify(t,r),u=a.length-1;n.initSideSegments(a[0],a[1],Ih.LEFT),n.addFirstSegment();for(var c=2;c<=u;c++)n.addNextSegment(a[c],!0)}n.addLastSegment(),n.closeRing()},kf.prototype.computeRingBufferCurve=function(t,e,n){var r=this.simplifyTolerance(this._distance);e===Ih.RIGHT&&(r=-r);var i=Tf.simplify(t,r),o=i.length-1;n.initSideSegments(i[o-1],i[0],e);for(var s=1;s<=o;s++){var a=1!==s;n.addNextSegment(i[s],a)}n.closeRing()},kf.prototype.computeLineBufferCurve=function(t,e){var n=this.simplifyTolerance(this._distance),r=Tf.simplify(t,n),i=r.length-1;e.initSideSegments(r[0],r[1],Ih.LEFT);for(var o=2;o<=i;o++)e.addNextSegment(r[o],!0);e.addLastSegment(),e.addLineEndCap(r[i-1],r[i]);var s=Tf.simplify(t,-n),a=s.length-1;e.initSideSegments(s[a],s[a-1],Ih.LEFT);for(var u=a-2;u>=0;u--)e.addNextSegment(s[u],!0);e.addLastSegment(),e.addLineEndCap(s[1],s[0]),e.closeRing()},kf.prototype.computePointCurve=function(t,e){switch(this._bufParams.getEndCapStyle()){case Pf.CAP_ROUND:e.createCircle(t);break;case Pf.CAP_SQUARE:e.createSquare(t)}},kf.prototype.getLineCurve=function(t,e){if(this._distance=e,e<0&&!this._bufParams.isSingleSided())return null;if(0===e)return null;var n=Math.abs(e),r=this.getSegGen(n);if(t.length<=1)this.computePointCurve(t[0],r);else if(this._bufParams.isSingleSided()){var i=e<0;this.computeSingleSidedBufferCurve(t,i,r)}else this.computeLineBufferCurve(t,r);return r.getCoordinates()},kf.prototype.getBufferParameters=function(){return this._bufParams},kf.prototype.simplifyTolerance=function(t){return t*this._bufParams.getSimplifyFactor()},kf.prototype.getRingCurve=function(t,e,n){if(this._distance=n,t.length<=2)return this.getLineCurve(t,n);if(0===n)return kf.copyCoordinates(t);var r=this.getSegGen(n);return this.computeRingBufferCurve(t,e,r),r.getCoordinates()},kf.prototype.computeOffsetCurve=function(t,e,n){var r=this.simplifyTolerance(this._distance);if(e){var i=Tf.simplify(t,-r),o=i.length-1;n.initSideSegments(i[o],i[o-1],Ih.LEFT),n.addFirstSegment();for(var s=o-2;s>=0;s--)n.addNextSegment(i[s],!0)}else{var a=Tf.simplify(t,r),u=a.length-1;n.initSideSegments(a[0],a[1],Ih.LEFT),n.addFirstSegment();for(var c=2;c<=u;c++)n.addNextSegment(a[c],!0)}n.addLastSegment()},kf.prototype.getSegGen=function(t){return new jf(this._precisionModel,this._bufParams,t)},kf.prototype.interfaces_=function(){return[]},kf.prototype.getClass=function(){return kf},kf.copyCoordinates=function(t){for(var e=new Array(t.length).fill(null),n=0;n<e.length;n++)e[n]=new cc(t[n]);return e};var Gf=function(){this._subgraphs=null,this._seg=new mf,this._cga=new qc;var t=arguments[0];this._subgraphs=t},Bf={DepthSegment:{configurable:!0}};Gf.prototype.findStabbedSegments=function(){var t=this;if(1===arguments.length){for(var e=arguments[0],n=new ll,r=this._subgraphs.iterator();r.hasNext();){var i=r.next(),o=i.getEnvelope();e.y<o.getMinY()||e.y>o.getMaxY()||t.findStabbedSegments(e,i.getDirectedEdges(),n)}return n}if(3===arguments.length)if(gc(arguments[2],ul)&&arguments[0]instanceof cc&&arguments[1]instanceof qh)for(var s=arguments[0],a=arguments[1],u=arguments[2],c=a.getEdge().getCoordinates(),l=0;l<c.length-1;l++){t._seg.p0=c[l],t._seg.p1=c[l+1],t._seg.p0.y>t._seg.p1.y&&t._seg.reverse();var h=Math.max(t._seg.p0.x,t._seg.p1.x);if(!(h<s.x)&&!(t._seg.isHorizontal()||s.y<t._seg.p0.y||s.y>t._seg.p1.y||qc.computeOrientation(t._seg.p0,t._seg.p1,s)===qc.RIGHT)){var f=a.getDepth(Ih.LEFT);t._seg.p0.equals(c[l])||(f=a.getDepth(Ih.RIGHT));var p=new Uf(t._seg,f);u.add(p)}}else if(gc(arguments[2],ul)&&arguments[0]instanceof cc&&gc(arguments[1],ul))for(var d=arguments[0],g=arguments[1],y=arguments[2],v=g.iterator();v.hasNext();){var _=v.next();_.isForward()&&t.findStabbedSegments(d,_,y)}},Gf.prototype.getDepth=function(t){var e=this.findStabbedSegments(t);return 0===e.size()?0:rf.min(e)._leftDepth},Gf.prototype.interfaces_=function(){return[]},Gf.prototype.getClass=function(){return Gf},Bf.DepthSegment.get=function(){return Uf},Object.defineProperties(Gf,Bf);var Uf=function(){this._upwardSeg=null,this._leftDepth=null;var t=arguments[0],e=arguments[1];this._upwardSeg=new mf(t),this._leftDepth=e};Uf.prototype.compareTo=function(t){var e=t;if(this._upwardSeg.minX()>=e._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=e._upwardSeg.minX())return-1;var n=this._upwardSeg.orientationIndex(e._upwardSeg);return 0!==n||0!==(n=-1*e._upwardSeg.orientationIndex(this._upwardSeg))?n:this._upwardSeg.compareTo(e._upwardSeg)},Uf.prototype.compareX=function(t,e){var n=t.p0.compareTo(e.p0);return 0!==n?n:t.p1.compareTo(e.p1)},Uf.prototype.toString=function(){return this._upwardSeg.toString()},Uf.prototype.interfaces_=function(){return[oc]},Uf.prototype.getClass=function(){return Uf};var zf=function(t,e,n){this.p0=t||null,this.p1=e||null,this.p2=n||null};zf.prototype.area=function(){return zf.area(this.p0,this.p1,this.p2)},zf.prototype.signedArea=function(){return zf.signedArea(this.p0,this.p1,this.p2)},zf.prototype.interpolateZ=function(t){if(null===t)throw new nc("Supplied point is null.");return zf.interpolateZ(t,this.p0,this.p1,this.p2)},zf.prototype.longestSideLength=function(){return zf.longestSideLength(this.p0,this.p1,this.p2)},zf.prototype.isAcute=function(){return zf.isAcute(this.p0,this.p1,this.p2)},zf.prototype.circumcentre=function(){return zf.circumcentre(this.p0,this.p1,this.p2)},zf.prototype.area3D=function(){return zf.area3D(this.p0,this.p1,this.p2)},zf.prototype.centroid=function(){return zf.centroid(this.p0,this.p1,this.p2)},zf.prototype.inCentre=function(){return zf.inCentre(this.p0,this.p1,this.p2)},zf.prototype.interfaces_=function(){return[]},zf.prototype.getClass=function(){return zf},zf.area=function(t,e,n){return Math.abs(((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2)},zf.signedArea=function(t,e,n){return((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2},zf.det=function(t,e,n,r){return t*r-e*n},zf.interpolateZ=function(t,e,n,r){var i=e.x,o=e.y,s=n.x-i,a=r.x-i,u=n.y-o,c=r.y-o,l=s*c-a*u,h=t.x-i,f=t.y-o,p=(c*h-a*f)/l,d=(-u*h+s*f)/l;return e.z+p*(n.z-e.z)+d*(r.z-e.z)},zf.longestSideLength=function(t,e,n){var r=t.distance(e),i=e.distance(n),o=n.distance(t),s=r;return i>s&&(s=i),o>s&&(s=o),s},zf.isAcute=function(t,e,n){return!!Af.isAcute(t,e,n)&&!!Af.isAcute(e,n,t)&&!!Af.isAcute(n,t,e)},zf.circumcentre=function(t,e,n){var r=n.x,i=n.y,o=t.x-r,s=t.y-i,a=e.x-r,u=e.y-i,c=2*zf.det(o,s,a,u),l=zf.det(s,o*o+s*s,u,a*a+u*u),h=zf.det(o,o*o+s*s,a,a*a+u*u);return new cc(r-l/c,i+h/c)},zf.perpendicularBisector=function(t,e){var n=e.x-t.x,r=e.y-t.y,i=new Tc(t.x+n/2,t.y+r/2,1),o=new Tc(t.x-r+n/2,t.y+n+r/2,1);return new Tc(i,o)},zf.angleBisector=function(t,e,n){var r=e.distance(t),i=r/(r+e.distance(n)),o=n.x-t.x,s=n.y-t.y;return new cc(t.x+i*o,t.y+i*s)},zf.area3D=function(t,e,n){var r=e.x-t.x,i=e.y-t.y,o=e.z-t.z,s=n.x-t.x,a=n.y-t.y,u=n.z-t.z,c=i*u-o*a,l=o*s-r*u,h=r*a-i*s,f=c*c+l*l+h*h,p=Math.sqrt(f)/2;return p},zf.centroid=function(t,e,n){var r=(t.x+e.x+n.x)/3,i=(t.y+e.y+n.y)/3;return new cc(r,i)},zf.inCentre=function(t,e,n){var r=e.distance(n),i=t.distance(n),o=t.distance(e),s=r+i+o,a=(r*t.x+i*e.x+o*n.x)/s,u=(r*t.y+i*e.y+o*n.y)/s;return new cc(a,u)};var Yf=function(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new ll;var t=arguments[0],e=arguments[1],n=arguments[2];this._inputGeom=t,this._distance=e,this._curveBuilder=n};Yf.prototype.addPoint=function(t){if(this._distance<=0)return null;var e=t.getCoordinates(),n=this._curveBuilder.getLineCurve(e,this._distance);this.addCurve(n,pc.EXTERIOR,pc.INTERIOR)},Yf.prototype.addPolygon=function(t){var e=this,n=this._distance,r=Ih.LEFT;this._distance<0&&(n=-this._distance,r=Ih.RIGHT);var i=t.getExteriorRing(),o=pl.removeRepeatedPoints(i.getCoordinates());if(this._distance<0&&this.isErodedCompletely(i,this._distance))return null;if(this._distance<=0&&o.length<3)return null;this.addPolygonRing(o,n,r,pc.EXTERIOR,pc.INTERIOR);for(var s=0;s<t.getNumInteriorRing();s++){var a=t.getInteriorRingN(s),u=pl.removeRepeatedPoints(a.getCoordinates());e._distance>0&&e.isErodedCompletely(a,-e._distance)||e.addPolygonRing(u,n,Ih.opposite(r),pc.INTERIOR,pc.EXTERIOR)}},Yf.prototype.isTriangleErodedCompletely=function(t,e){var n=new zf(t[0],t[1],t[2]),r=n.inCentre();return qc.distancePointLine(r,n.p0,n.p1)<Math.abs(e)},Yf.prototype.addLineString=function(t){if(this._distance<=0&&!this._curveBuilder.getBufferParameters().isSingleSided())return null;var e=pl.removeRepeatedPoints(t.getCoordinates()),n=this._curveBuilder.getLineCurve(e,this._distance);this.addCurve(n,pc.EXTERIOR,pc.INTERIOR)},Yf.prototype.addCurve=function(t,e,n){if(null===t||t.length<2)return null;var r=new _f(t,new jh(0,pc.BOUNDARY,e,n));this._curveList.add(r)},Yf.prototype.getCurves=function(){return this.add(this._inputGeom),this._curveList},Yf.prototype.addPolygonRing=function(t,e,n,r,i){if(0===e&&t.length<rh.MINIMUM_VALID_SIZE)return null;var o=r,s=i;t.length>=rh.MINIMUM_VALID_SIZE&&qc.isCCW(t)&&(o=i,s=r,n=Ih.opposite(n));var a=this._curveBuilder.getRingCurve(t,n,e);this.addCurve(a,o,s)},Yf.prototype.add=function(t){if(t.isEmpty())return null;t instanceof eh?this.addPolygon(t):t instanceof Jl?this.addLineString(t):t instanceof $l?this.addPoint(t):(t instanceof nh||t instanceof Gl||t instanceof ih||t instanceof kl)&&this.addCollection(t)},Yf.prototype.isErodedCompletely=function(t,e){var n=t.getCoordinates();if(n.length<4)return e<0;if(4===n.length)return this.isTriangleErodedCompletely(n,e);var r=t.getEnvelopeInternal(),i=Math.min(r.getHeight(),r.getWidth());return e<0&&2*Math.abs(e)>i},Yf.prototype.addCollection=function(t){for(var e=0;e<t.getNumGeometries();e++){var n=t.getGeometryN(e);this.add(n)}},Yf.prototype.interfaces_=function(){return[]},Yf.prototype.getClass=function(){return Yf};var Xf=function(){};Xf.prototype.locate=function(t){},Xf.prototype.interfaces_=function(){return[]},Xf.prototype.getClass=function(){return Xf};var Vf=function(){this._parent=null,this._atStart=null,this._max=null,this._index=null,this._subcollectionIterator=null;var t=arguments[0];this._parent=t,this._atStart=!0,this._index=0,this._max=t.getNumGeometries()};Vf.prototype.next=function(){if(this._atStart)return this._atStart=!1,Vf.isAtomic(this._parent)&&this._index++,this._parent;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return this._subcollectionIterator.next();this._subcollectionIterator=null}if(this._index>=this._max)throw new cl;var t=this._parent.getGeometryN(this._index++);return t instanceof kl?(this._subcollectionIterator=new Vf(t),this._subcollectionIterator.next()):t},Vf.prototype.remove=function(){throw new Error(this.getClass().getName())},Vf.prototype.hasNext=function(){if(this._atStart)return!0;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)},Vf.prototype.interfaces_=function(){return[al]},Vf.prototype.getClass=function(){return Vf},Vf.isAtomic=function(t){return!(t instanceof kl)};var qf=function(){this._geom=null;var t=arguments[0];this._geom=t};qf.prototype.locate=function(t){return qf.locate(t,this._geom)},qf.prototype.interfaces_=function(){return[Xf]},qf.prototype.getClass=function(){return qf},qf.isPointInRing=function(t,e){return!!e.getEnvelopeInternal().intersects(t)&&qc.isPointInRing(t,e.getCoordinates())},qf.containsPointInPolygon=function(t,e){if(e.isEmpty())return!1;var n=e.getExteriorRing();if(!qf.isPointInRing(t,n))return!1;for(var r=0;r<e.getNumInteriorRing();r++){var i=e.getInteriorRingN(r);if(qf.isPointInRing(t,i))return!1}return!0},qf.containsPoint=function(t,e){if(e instanceof eh)return qf.containsPointInPolygon(t,e);if(e instanceof kl)for(var n=new Vf(e);n.hasNext();){var r=n.next();if(r!==e&&qf.containsPoint(t,r))return!0}return!1},qf.locate=function(t,e){return e.isEmpty()?pc.EXTERIOR:qf.containsPoint(t,e)?pc.INTERIOR:pc.EXTERIOR};var Wf=function(){this._edgeMap=new Pl,this._edgeList=null,this._ptInAreaLocation=[pc.NONE,pc.NONE]};Wf.prototype.getNextCW=function(t){this.getEdges();var e=this._edgeList.indexOf(t),n=e-1;return 0===e&&(n=this._edgeList.size()-1),this._edgeList.get(n)},Wf.prototype.propagateSideLabels=function(t){for(var e=pc.NONE,n=this.iterator();n.hasNext();){var r=n.next().getLabel();r.isArea(t)&&r.getLocation(t,Ih.LEFT)!==pc.NONE&&(e=r.getLocation(t,Ih.LEFT))}if(e===pc.NONE)return null;for(var i=e,o=this.iterator();o.hasNext();){var s=o.next(),a=s.getLabel();if(a.getLocation(t,Ih.ON)===pc.NONE&&a.setLocation(t,Ih.ON,i),a.isArea(t)){var u=a.getLocation(t,Ih.LEFT),c=a.getLocation(t,Ih.RIGHT);if(c!==pc.NONE){if(c!==i)throw new Mh("side location conflict",s.getCoordinate());u===pc.NONE&&Bc.shouldNeverReachHere("found single null side (at "+s.getCoordinate()+")"),i=u}else Bc.isTrue(a.getLocation(t,Ih.LEFT)===pc.NONE,"found single null side"),a.setLocation(t,Ih.RIGHT,i),a.setLocation(t,Ih.LEFT,i)}}},Wf.prototype.getCoordinate=function(){var t=this.iterator();return t.hasNext()?t.next().getCoordinate():null},Wf.prototype.print=function(t){Rc.out.println("EdgeEndStar: "+this.getCoordinate());for(var e=this.iterator();e.hasNext();)e.next().print(t)},Wf.prototype.isAreaLabelsConsistent=function(t){return this.computeEdgeEndLabels(t.getBoundaryNodeRule()),this.checkAreaLabelsConsistent(0)},Wf.prototype.checkAreaLabelsConsistent=function(t){var e=this.getEdges();if(e.size()<=0)return!0;var n=e.size()-1,r=e.get(n).getLabel().getLocation(t,Ih.LEFT);Bc.isTrue(r!==pc.NONE,"Found unlabelled area edge");for(var i=r,o=this.iterator();o.hasNext();){var s=o.next().getLabel();Bc.isTrue(s.isArea(t),"Found non-area edge");var a=s.getLocation(t,Ih.LEFT),u=s.getLocation(t,Ih.RIGHT);if(a===u)return!1;if(u!==i)return!1;i=a}return!0},Wf.prototype.findIndex=function(t){this.iterator();for(var e=0;e<this._edgeList.size();e++)if(this._edgeList.get(e)===t)return e;return-1},Wf.prototype.iterator=function(){return this.getEdges().iterator()},Wf.prototype.getEdges=function(){return null===this._edgeList&&(this._edgeList=new ll(this._edgeMap.values())),this._edgeList},Wf.prototype.getLocation=function(t,e,n){return this._ptInAreaLocation[t]===pc.NONE&&(this._ptInAreaLocation[t]=qf.locate(e,n[t].getGeometry())),this._ptInAreaLocation[t]},Wf.prototype.toString=function(){var t=new _c;t.append("EdgeEndStar: "+this.getCoordinate()),t.append("\n");for(var e=this.iterator();e.hasNext();){var n=e.next();t.append(n),t.append("\n")}return t.toString()},Wf.prototype.computeEdgeEndLabels=function(t){for(var e=this.iterator();e.hasNext();)e.next().computeLabel(t)},Wf.prototype.computeLabelling=function(t){this.computeEdgeEndLabels(t[0].getBoundaryNodeRule()),this.propagateSideLabels(0),this.propagateSideLabels(1);for(var e=[!1,!1],n=this.iterator();n.hasNext();)for(var r=n.next().getLabel(),i=0;i<2;i++)r.isLine(i)&&r.getLocation(i)===pc.BOUNDARY&&(e[i]=!0);for(var o=this.iterator();o.hasNext();)for(var s=o.next(),a=s.getLabel(),u=0;u<2;u++)if(a.isAnyNull(u)){var c=pc.NONE;if(e[u])c=pc.EXTERIOR;else{var l=s.getCoordinate();c=this.getLocation(u,l,t)}a.setAllLocationsIfNull(u,c)}},Wf.prototype.getDegree=function(){return this._edgeMap.size()},Wf.prototype.insertEdgeEnd=function(t,e){this._edgeMap.put(t,e),this._edgeList=null},Wf.prototype.interfaces_=function(){return[]},Wf.prototype.getClass=function(){return Wf};var Hf=function(t){function e(){t.call(this),this._resultAreaEdgeList=null,this._label=null,this._SCANNING_FOR_INCOMING=1,this._LINKING_TO_OUTGOING=2}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.linkResultDirectedEdges=function(){var t=this;this.getResultAreaEdges();for(var e=null,n=null,r=this._SCANNING_FOR_INCOMING,i=0;i<this._resultAreaEdgeList.size();i++){var o=t._resultAreaEdgeList.get(i),s=o.getSym();if(o.getLabel().isArea())switch(null===e&&o.isInResult()&&(e=o),r){case t._SCANNING_FOR_INCOMING:if(!s.isInResult())continue;n=s,r=t._LINKING_TO_OUTGOING;break;case t._LINKING_TO_OUTGOING:if(!o.isInResult())continue;n.setNext(o),r=t._SCANNING_FOR_INCOMING}}if(r===this._LINKING_TO_OUTGOING){if(null===e)throw new Mh("no outgoing dirEdge found",this.getCoordinate());Bc.isTrue(e.isInResult(),"unable to link last incoming dirEdge"),n.setNext(e)}},e.prototype.insert=function(t){var e=t;this.insertEdgeEnd(e,e)},e.prototype.getRightmostEdge=function(){var t=this.getEdges(),e=t.size();if(e<1)return null;var n=t.get(0);if(1===e)return n;var r=t.get(e-1),i=n.getQuadrant(),o=r.getQuadrant();return Yh.isNorthern(i)&&Yh.isNorthern(o)?n:Yh.isNorthern(i)||Yh.isNorthern(o)?0!==n.getDy()?n:0!==r.getDy()?r:(Bc.shouldNeverReachHere("found two horizontal edges incident on node"),null):r},e.prototype.print=function(t){Rc.out.println("DirectedEdgeStar: "+this.getCoordinate());for(var e=this.iterator();e.hasNext();){var n=e.next();t.print("out "),n.print(t),t.println(),t.print("in "),n.getSym().print(t),t.println()}},e.prototype.getResultAreaEdges=function(){if(null!==this._resultAreaEdgeList)return this._resultAreaEdgeList;this._resultAreaEdgeList=new ll;for(var t=this.iterator();t.hasNext();){var e=t.next();(e.isInResult()||e.getSym().isInResult())&&this._resultAreaEdgeList.add(e)}return this._resultAreaEdgeList},e.prototype.updateLabelling=function(t){for(var e=this.iterator();e.hasNext();){var n=e.next().getLabel();n.setAllLocationsIfNull(0,t.getLocation(0)),n.setAllLocationsIfNull(1,t.getLocation(1))}},e.prototype.linkAllDirectedEdges=function(){this.getEdges();for(var t=null,e=null,n=this._edgeList.size()-1;n>=0;n--){var r=this._edgeList.get(n),i=r.getSym();null===e&&(e=i),null!==t&&i.setNext(t),t=r}e.setNext(t)},e.prototype.computeDepths=function(){var t=this;if(1===arguments.length){var e=arguments[0],n=this.findIndex(e),r=e.getDepth(Ih.LEFT),i=e.getDepth(Ih.RIGHT),o=this.computeDepths(n+1,this._edgeList.size(),r),s=this.computeDepths(0,n,o);if(s!==i)throw new Mh("depth mismatch at "+e.getCoordinate())}else if(3===arguments.length){for(var a=arguments[0],u=arguments[1],c=arguments[2],l=c,h=a;h<u;h++){var f=t._edgeList.get(h);f.setEdgeDepths(Ih.RIGHT,l),l=f.getDepth(Ih.LEFT)}return l}},e.prototype.mergeSymLabels=function(){for(var t=this.iterator();t.hasNext();){var e=t.next();e.getLabel().merge(e.getSym().getLabel())}},e.prototype.linkMinimalDirectedEdges=function(t){for(var e=this,n=null,r=null,i=this._SCANNING_FOR_INCOMING,o=this._resultAreaEdgeList.size()-1;o>=0;o--){var s=e._resultAreaEdgeList.get(o),a=s.getSym();switch(null===n&&s.getEdgeRing()===t&&(n=s),i){case e._SCANNING_FOR_INCOMING:if(a.getEdgeRing()!==t)continue;r=a,i=e._LINKING_TO_OUTGOING;break;case e._LINKING_TO_OUTGOING:if(s.getEdgeRing()!==t)continue;r.setNextMin(s),i=e._SCANNING_FOR_INCOMING}}i===this._LINKING_TO_OUTGOING&&(Bc.isTrue(null!==n,"found null for first outgoing dirEdge"),Bc.isTrue(n.getEdgeRing()===t,"unable to link last incoming dirEdge"),r.setNextMin(n))},e.prototype.getOutgoingDegree=function(){if(0===arguments.length){for(var t=0,e=this.iterator();e.hasNext();){var n=e.next();n.isInResult()&&t++}return t}if(1===arguments.length){for(var r=arguments[0],i=0,o=this.iterator();o.hasNext();){var s=o.next();s.getEdgeRing()===r&&i++}return i}},e.prototype.getLabel=function(){return this._label},e.prototype.findCoveredLineEdges=function(){for(var t=pc.NONE,e=this.iterator();e.hasNext();){var n=e.next(),r=n.getSym();if(!n.isLineEdge()){if(n.isInResult()){t=pc.INTERIOR;break}if(r.isInResult()){t=pc.EXTERIOR;break}}}if(t===pc.NONE)return null;for(var i=t,o=this.iterator();o.hasNext();){var s=o.next(),a=s.getSym();s.isLineEdge()?s.getEdge().setCovered(i===pc.INTERIOR):(s.isInResult()&&(i=pc.EXTERIOR),a.isInResult()&&(i=pc.INTERIOR))}},e.prototype.computeLabelling=function(e){t.prototype.computeLabelling.call(this,e),this._label=new jh(pc.NONE);for(var n=this.iterator();n.hasNext();)for(var r=n.next().getEdge().getLabel(),i=0;i<2;i++){var o=r.getLocation(i);o!==pc.INTERIOR&&o!==pc.BOUNDARY||this._label.setLocation(i,pc.INTERIOR)}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Wf),Zf=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createNode=function(t){return new Uh(t,new Hf)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Wh),Kf=function t(){this._pts=null,this._orientation=null;var e=arguments[0];this._pts=e,this._orientation=t.orientation(e)};Kf.prototype.compareTo=function(t){var e=t;return Kf.compareOriented(this._pts,this._orientation,e._pts,e._orientation)},Kf.prototype.interfaces_=function(){return[oc]},Kf.prototype.getClass=function(){return Kf},Kf.orientation=function(t){return 1===pl.increasingDirection(t)},Kf.compareOriented=function(t,e,n,r){for(var i=e?1:-1,o=r?1:-1,s=e?t.length:-1,a=r?n.length:-1,u=e?0:t.length-1,c=r?0:n.length-1;;){var l=t[u].compareTo(n[c]);if(0!==l)return l;var h=(u+=i)===s,f=(c+=o)===a;if(h&&!f)return-1;if(!h&&f)return 1;if(h&&f)return 0}};var Jf=function(){this._edges=new ll,this._ocaMap=new Pl};Jf.prototype.print=function(t){t.print("MULTILINESTRING ( ");for(var e=0;e<this._edges.size();e++){var n=this._edges.get(e);e>0&&t.print(","),t.print("(");for(var r=n.getCoordinates(),i=0;i<r.length;i++)i>0&&t.print(","),t.print(r[i].x+" "+r[i].y);t.println(")")}t.print(") ")},Jf.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next())},Jf.prototype.findEdgeIndex=function(t){for(var e=0;e<this._edges.size();e++)if(this._edges.get(e).equals(t))return e;return-1},Jf.prototype.iterator=function(){return this._edges.iterator()},Jf.prototype.getEdges=function(){return this._edges},Jf.prototype.get=function(t){return this._edges.get(t)},Jf.prototype.findEqualEdge=function(t){var e=new Kf(t.getCoordinates());return this._ocaMap.get(e)},Jf.prototype.add=function(t){this._edges.add(t);var e=new Kf(t.getCoordinates());this._ocaMap.put(e,t)},Jf.prototype.interfaces_=function(){return[]},Jf.prototype.getClass=function(){return Jf};var Qf=function(){};Qf.prototype.processIntersections=function(t,e,n,r){},Qf.prototype.isDone=function(){},Qf.prototype.interfaces_=function(){return[]},Qf.prototype.getClass=function(){return Qf};var $f=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._hasInterior=!1,this._properIntersectionPoint=null,this._li=null,this._isSelfIntersection=null,this.numIntersections=0,this.numInteriorIntersections=0,this.numProperIntersections=0,this.numTests=0;var t=arguments[0];this._li=t};$f.prototype.isTrivialIntersection=function(t,e,n,r){if(t===n&&1===this._li.getIntersectionNum()){if($f.isAdjacentSegments(e,r))return!0;if(t.isClosed()){var i=t.size()-1;if(0===e&&r===i||0===r&&e===i)return!0}}return!1},$f.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},$f.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},$f.prototype.getLineIntersector=function(){return this._li},$f.prototype.hasProperIntersection=function(){return this._hasProper},$f.prototype.processIntersections=function(t,e,n,r){if(t===n&&e===r)return null;this.numTests++;var i=t.getCoordinates()[e],o=t.getCoordinates()[e+1],s=n.getCoordinates()[r],a=n.getCoordinates()[r+1];this._li.computeIntersection(i,o,s,a),this._li.hasIntersection()&&(this.numIntersections++,this._li.isInteriorIntersection()&&(this.numInteriorIntersections++,this._hasInterior=!0),this.isTrivialIntersection(t,e,n,r)||(this._hasIntersection=!0,t.addIntersections(this._li,e,0),n.addIntersections(this._li,r,1),this._li.isProper()&&(this.numProperIntersections++,this._hasProper=!0,this._hasProperInterior=!0)))},$f.prototype.hasIntersection=function(){return this._hasIntersection},$f.prototype.isDone=function(){return!1},$f.prototype.hasInteriorIntersection=function(){return this._hasInterior},$f.prototype.interfaces_=function(){return[Qf]},$f.prototype.getClass=function(){return $f},$f.isAdjacentSegments=function(t,e){return 1===Math.abs(t-e)};var tp=function(){this.coord=null,this.segmentIndex=null,this.dist=null;var t=arguments[0],e=arguments[1],n=arguments[2];this.coord=new cc(t),this.segmentIndex=e,this.dist=n};tp.prototype.getSegmentIndex=function(){return this.segmentIndex},tp.prototype.getCoordinate=function(){return this.coord},tp.prototype.print=function(t){t.print(this.coord),t.print(" seg # = "+this.segmentIndex),t.println(" dist = "+this.dist)},tp.prototype.compareTo=function(t){var e=t;return this.compare(e.segmentIndex,e.dist)},tp.prototype.isEndPoint=function(t){return 0===this.segmentIndex&&0===this.dist||this.segmentIndex===t},tp.prototype.toString=function(){return this.coord+" seg # = "+this.segmentIndex+" dist = "+this.dist},tp.prototype.getDistance=function(){return this.dist},tp.prototype.compare=function(t,e){return this.segmentIndex<t?-1:this.segmentIndex>t?1:this.dist<e?-1:this.dist>e?1:0},tp.prototype.interfaces_=function(){return[oc]},tp.prototype.getClass=function(){return tp};var ep=function(){this._nodeMap=new Pl,this.edge=null;var t=arguments[0];this.edge=t};ep.prototype.print=function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();)e.next().print(t)},ep.prototype.iterator=function(){return this._nodeMap.values().iterator()},ep.prototype.addSplitEdges=function(t){this.addEndpoints();for(var e=this.iterator(),n=e.next();e.hasNext();){var r=e.next(),i=this.createSplitEdge(n,r);t.add(i),n=r}},ep.prototype.addEndpoints=function(){var t=this.edge.pts.length-1;this.add(this.edge.pts[0],0,0),this.add(this.edge.pts[t],t,0)},ep.prototype.createSplitEdge=function(t,e){var n=e.segmentIndex-t.segmentIndex+2,r=this.edge.pts[e.segmentIndex],i=e.dist>0||!e.coord.equals2D(r);i||n--;var o=new Array(n).fill(null),s=0;o[s++]=new cc(t.coord);for(var a=t.segmentIndex+1;a<=e.segmentIndex;a++)o[s++]=this.edge.pts[a];return i&&(o[s]=e.coord),new sp(o,new jh(this.edge._label))},ep.prototype.add=function(t,e,n){var r=new tp(t,e,n),i=this._nodeMap.get(r);return null!==i?i:(this._nodeMap.put(r,r),r)},ep.prototype.isIntersection=function(t){for(var e=this.iterator();e.hasNext();)if(e.next().coord.equals(t))return!0;return!1},ep.prototype.interfaces_=function(){return[]},ep.prototype.getClass=function(){return ep};var np=function(){};np.prototype.getChainStartIndices=function(t){var e=0,n=new ll;n.add(new mc(e));do{var r=this.findChainEnd(t,e);n.add(new mc(r)),e=r}while(e<t.length-1);return np.toIntArray(n)},np.prototype.findChainEnd=function(t,e){for(var n=Yh.quadrant(t[e],t[e+1]),r=e+1;r<t.length;){if(Yh.quadrant(t[r-1],t[r])!==n)break;r++}return r-1},np.prototype.interfaces_=function(){return[]},np.prototype.getClass=function(){return np},np.toIntArray=function(t){for(var e=new Array(t.size()).fill(null),n=0;n<e.length;n++)e[n]=t.get(n).intValue();return e};var rp=function(){this.e=null,this.pts=null,this.startIndex=null,this.env1=new Lc,this.env2=new Lc;var t=arguments[0];this.e=t,this.pts=t.getCoordinates();var e=new np;this.startIndex=e.getChainStartIndices(this.pts)};rp.prototype.getCoordinates=function(){return this.pts},rp.prototype.getMaxX=function(t){var e=this.pts[this.startIndex[t]].x,n=this.pts[this.startIndex[t+1]].x;return e>n?e:n},rp.prototype.getMinX=function(t){var e=this.pts[this.startIndex[t]].x,n=this.pts[this.startIndex[t+1]].x;return e<n?e:n},rp.prototype.computeIntersectsForChain=function(){if(4===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3];this.computeIntersectsForChain(this.startIndex[t],this.startIndex[t+1],e,e.startIndex[n],e.startIndex[n+1],r)}else if(6===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3],u=arguments[4],c=arguments[5],l=this.pts[i],h=this.pts[o],f=s.pts[a],p=s.pts[u];if(o-i==1&&u-a==1)return c.addIntersections(this.e,i,s.e,a),null;if(this.env1.init(l,h),this.env2.init(f,p),!this.env1.intersects(this.env2))return null;var d=Math.trunc((i+o)/2),g=Math.trunc((a+u)/2);i<d&&(a<g&&this.computeIntersectsForChain(i,d,s,a,g,c),g<u&&this.computeIntersectsForChain(i,d,s,g,u,c)),d<o&&(a<g&&this.computeIntersectsForChain(d,o,s,a,g,c),g<u&&this.computeIntersectsForChain(d,o,s,g,u,c))}},rp.prototype.getStartIndexes=function(){return this.startIndex},rp.prototype.computeIntersects=function(t,e){for(var n=0;n<this.startIndex.length-1;n++)for(var r=0;r<t.startIndex.length-1;r++)this.computeIntersectsForChain(n,t,r,e)},rp.prototype.interfaces_=function(){return[]},rp.prototype.getClass=function(){return rp};var ip=function t(){this._depth=Array(2).fill().map((function(){return Array(3)}));for(var e=0;e<2;e++)for(var n=0;n<3;n++)this._depth[e][n]=t.NULL_VALUE},op={NULL_VALUE:{configurable:!0}};ip.prototype.getDepth=function(t,e){return this._depth[t][e]},ip.prototype.setDepth=function(t,e,n){this._depth[t][e]=n},ip.prototype.isNull=function(){var t=this;if(0===arguments.length){for(var e=0;e<2;e++)for(var n=0;n<3;n++)if(t._depth[e][n]!==ip.NULL_VALUE)return!1;return!0}if(1===arguments.length){var r=arguments[0];return this._depth[r][1]===ip.NULL_VALUE}if(2===arguments.length){var i=arguments[0],o=arguments[1];return this._depth[i][o]===ip.NULL_VALUE}},ip.prototype.normalize=function(){for(var t=this,e=0;e<2;e++)if(!t.isNull(e)){var n=t._depth[e][1];t._depth[e][2]<n&&(n=t._depth[e][2]),n<0&&(n=0);for(var r=1;r<3;r++){var i=0;t._depth[e][r]>n&&(i=1),t._depth[e][r]=i}}},ip.prototype.getDelta=function(t){return this._depth[t][Ih.RIGHT]-this._depth[t][Ih.LEFT]},ip.prototype.getLocation=function(t,e){return this._depth[t][e]<=0?pc.EXTERIOR:pc.INTERIOR},ip.prototype.toString=function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+" B: "+this._depth[1][1]+","+this._depth[1][2]},ip.prototype.add=function(){var t=this;if(1===arguments.length)for(var e=arguments[0],n=0;n<2;n++)for(var r=1;r<3;r++){var i=e.getLocation(n,r);i!==pc.EXTERIOR&&i!==pc.INTERIOR||(t.isNull(n,r)?t._depth[n][r]=ip.depthAtLocation(i):t._depth[n][r]+=ip.depthAtLocation(i))}else if(3===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2];a===pc.INTERIOR&&this._depth[o][s]++}},ip.prototype.interfaces_=function(){return[]},ip.prototype.getClass=function(){return ip},ip.depthAtLocation=function(t){return t===pc.EXTERIOR?0:t===pc.INTERIOR?1:ip.NULL_VALUE},op.NULL_VALUE.get=function(){return-1},Object.defineProperties(ip,op);var sp=function(t){function e(){if(t.call(this),this.pts=null,this._env=null,this.eiList=new ep(this),this._name=null,this._mce=null,this._isIsolated=!0,this._depth=new ip,this._depthDelta=0,1===arguments.length){var n=arguments[0];e.call(this,n,null)}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.pts=r,this._label=i}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDepth=function(){return this._depth},e.prototype.getCollapsedEdge=function(){var t=new Array(2).fill(null);return t[0]=this.pts[0],t[1]=this.pts[1],new e(t,jh.toLineLabel(this._label))},e.prototype.isIsolated=function(){return this._isIsolated},e.prototype.getCoordinates=function(){return this.pts},e.prototype.setIsolated=function(t){this._isIsolated=t},e.prototype.setName=function(t){this._name=t},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;if(this.pts.length!==n.pts.length)return!1;for(var r=!0,i=!0,o=this.pts.length,s=0;s<this.pts.length;s++)if(this.pts[s].equals2D(n.pts[s])||(r=!1),this.pts[s].equals2D(n.pts[--o])||(i=!1),!r&&!i)return!1;return!0},e.prototype.getCoordinate=function(){if(0===arguments.length)return this.pts.length>0?this.pts[0]:null;if(1===arguments.length){var t=arguments[0];return this.pts[t]}},e.prototype.print=function(t){t.print("edge "+this._name+": "),t.print("LINESTRING (");for(var e=0;e<this.pts.length;e++)e>0&&t.print(","),t.print(this.pts[e].x+" "+this.pts[e].y);t.print(") "+this._label+" "+this._depthDelta)},e.prototype.computeIM=function(t){e.updateIM(this._label,t)},e.prototype.isCollapsed=function(){return!!this._label.isArea()&&3===this.pts.length&&!!this.pts[0].equals(this.pts[2])},e.prototype.isClosed=function(){return this.pts[0].equals(this.pts[this.pts.length-1])},e.prototype.getMaximumSegmentIndex=function(){return this.pts.length-1},e.prototype.getDepthDelta=function(){return this._depthDelta},e.prototype.getNumPoints=function(){return this.pts.length},e.prototype.printReverse=function(t){t.print("edge "+this._name+": ");for(var e=this.pts.length-1;e>=0;e--)t.print(this.pts[e]+" ");t.println("")},e.prototype.getMonotoneChainEdge=function(){return null===this._mce&&(this._mce=new rp(this)),this._mce},e.prototype.getEnvelope=function(){if(null===this._env){this._env=new Lc;for(var t=0;t<this.pts.length;t++)this._env.expandToInclude(this.pts[t])}return this._env},e.prototype.addIntersection=function(t,e,n,r){var i=new cc(t.getIntersection(r)),o=e,s=t.getEdgeDistance(n,r),a=o+1;if(a<this.pts.length){var u=this.pts[a];i.equals2D(u)&&(o=a,s=0)}this.eiList.add(i,o,s)},e.prototype.toString=function(){var t=new _c;t.append("edge "+this._name+": "),t.append("LINESTRING (");for(var e=0;e<this.pts.length;e++)e>0&&t.append(","),t.append(this.pts[e].x+" "+this.pts[e].y);return t.append(") "+this._label+" "+this._depthDelta),t.toString()},e.prototype.isPointwiseEqual=function(t){if(this.pts.length!==t.pts.length)return!1;for(var e=0;e<this.pts.length;e++)if(!this.pts[e].equals2D(t.pts[e]))return!1;return!0},e.prototype.setDepthDelta=function(t){this._depthDelta=t},e.prototype.getEdgeIntersectionList=function(){return this.eiList},e.prototype.addIntersections=function(t,e,n){for(var r=0;r<t.getIntersectionNum();r++)this.addIntersection(t,e,n,r)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.updateIM=function(){if(2!==arguments.length)return t.prototype.updateIM.apply(this,arguments);var e=arguments[0],n=arguments[1];n.setAtLeastIfValid(e.getLocation(0,Ih.ON),e.getLocation(1,Ih.ON),1),e.isArea()&&(n.setAtLeastIfValid(e.getLocation(0,Ih.LEFT),e.getLocation(1,Ih.LEFT),2),n.setAtLeastIfValid(e.getLocation(0,Ih.RIGHT),e.getLocation(1,Ih.RIGHT),2))},e}(Bh),ap=function(t){this._workingPrecisionModel=null,this._workingNoder=null,this._geomFact=null,this._graph=null,this._edgeList=new Jf,this._bufParams=t||null};ap.prototype.setWorkingPrecisionModel=function(t){this._workingPrecisionModel=t},ap.prototype.insertUniqueEdge=function(t){var e=this._edgeList.findEqualEdge(t);if(null!==e){var n=e.getLabel(),r=t.getLabel();e.isPointwiseEqual(t)||(r=new jh(t.getLabel())).flip(),n.merge(r);var i=ap.depthDelta(r),o=e.getDepthDelta()+i;e.setDepthDelta(o)}else this._edgeList.add(t),t.setDepthDelta(ap.depthDelta(t.getLabel()))},ap.prototype.buildSubgraphs=function(t,e){for(var n=new ll,r=t.iterator();r.hasNext();){var i=r.next(),o=i.getRightmostCoordinate(),s=new Gf(n).getDepth(o);i.computeDepth(s),i.findResultEdges(),n.add(i),e.add(i.getDirectedEdges(),i.getNodes())}},ap.prototype.createSubgraphs=function(t){for(var e=new ll,n=t.getNodes().iterator();n.hasNext();){var r=n.next();if(!r.isVisited()){var i=new Ah;i.create(r),e.add(i)}}return rf.sort(e,rf.reverseOrder()),e},ap.prototype.createEmptyResultGeometry=function(){return this._geomFact.createPolygon()},ap.prototype.getNoder=function(t){if(null!==this._workingNoder)return this._workingNoder;var e=new Cf,n=new Yc;return n.setPrecisionModel(t),e.setSegmentIntersector(new $f(n)),e},ap.prototype.buffer=function(t,e){var n=this._workingPrecisionModel;null===n&&(n=t.getPrecisionModel()),this._geomFact=t.getFactory();var r=new kf(n,this._bufParams),i=new Yf(t,e,r).getCurves();if(i.size()<=0)return this.createEmptyResultGeometry();this.computeNodedEdges(i,n),this._graph=new Hh(new Zf),this._graph.addEdges(this._edgeList.getEdges());var o=this.createSubgraphs(this._graph),s=new Zh(this._geomFact);this.buildSubgraphs(o,s);var a=s.getPolygons();return a.size()<=0?this.createEmptyResultGeometry():this._geomFact.buildGeometry(a)},ap.prototype.computeNodedEdges=function(t,e){var n=this.getNoder(e);n.computeNodes(t);for(var r=n.getNodedSubstrings().iterator();r.hasNext();){var i=r.next(),o=i.getCoordinates();if(2!==o.length||!o[0].equals2D(o[1])){var s=i.getData(),a=new sp(i.getCoordinates(),new jh(s));this.insertUniqueEdge(a)}}},ap.prototype.setNoder=function(t){this._workingNoder=t},ap.prototype.interfaces_=function(){return[]},ap.prototype.getClass=function(){return ap},ap.depthDelta=function(t){var e=t.getLocation(0,Ih.LEFT),n=t.getLocation(0,Ih.RIGHT);return e===pc.INTERIOR&&n===pc.EXTERIOR?1:e===pc.EXTERIOR&&n===pc.INTERIOR?-1:0},ap.convertSegStrings=function(t){for(var e=new mh,n=new ll;t.hasNext();){var r=t.next(),i=e.createLineString(r.getCoordinates());n.add(i)}return e.buildGeometry(n)};var up=function(){if(this._noder=null,this._scaleFactor=null,this._offsetX=null,this._offsetY=null,this._isScaled=!1,2===arguments.length){var t=arguments[0],e=arguments[1];this._noder=t,this._scaleFactor=e,this._offsetX=0,this._offsetY=0,this._isScaled=!this.isIntegerPrecision()}else if(4===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],o=arguments[3];this._noder=n,this._scaleFactor=r,this._offsetX=i,this._offsetY=o,this._isScaled=!this.isIntegerPrecision()}};up.prototype.rescale=function(){var t=this;if(gc(arguments[0],ol))for(var e=arguments[0],n=e.iterator();n.hasNext();){var r=n.next();t.rescale(r.getCoordinates())}else if(arguments[0]instanceof Array){for(var i=arguments[0],o=0;o<i.length;o++)i[o].x=i[o].x/t._scaleFactor+t._offsetX,i[o].y=i[o].y/t._scaleFactor+t._offsetY;2===i.length&&i[0].equals2D(i[1])&&Rc.out.println(i)}},up.prototype.scale=function(){var t=this;if(gc(arguments[0],ol)){for(var e=arguments[0],n=new ll,r=e.iterator();r.hasNext();){var i=r.next();n.add(new _f(t.scale(i.getCoordinates()),i.getData()))}return n}if(arguments[0]instanceof Array){for(var o=arguments[0],s=new Array(o.length).fill(null),a=0;a<o.length;a++)s[a]=new cc(Math.round((o[a].x-t._offsetX)*t._scaleFactor),Math.round((o[a].y-t._offsetY)*t._scaleFactor),o[a].z);var u=pl.removeRepeatedPoints(s);return u}},up.prototype.isIntegerPrecision=function(){return 1===this._scaleFactor},up.prototype.getNodedSubstrings=function(){var t=this._noder.getNodedSubstrings();return this._isScaled&&this.rescale(t),t},up.prototype.computeNodes=function(t){var e=t;this._isScaled&&(e=this.scale(t)),this._noder.computeNodes(e)},up.prototype.interfaces_=function(){return[Of]},up.prototype.getClass=function(){return up};var cp=function(){this._li=new Yc,this._segStrings=null;var t=arguments[0];this._segStrings=t},lp={fact:{configurable:!0}};cp.prototype.checkEndPtVertexIntersections=function(){var t=this;if(0===arguments.length)for(var e=this._segStrings.iterator();e.hasNext();){var n=e.next(),r=n.getCoordinates();t.checkEndPtVertexIntersections(r[0],t._segStrings),t.checkEndPtVertexIntersections(r[r.length-1],t._segStrings)}else if(2===arguments.length)for(var i=arguments[0],o=arguments[1],s=o.iterator();s.hasNext();)for(var a=s.next(),u=a.getCoordinates(),c=1;c<u.length-1;c++)if(u[c].equals(i))throw new kc("found endpt/interior pt intersection at index "+c+" :pt "+i)},cp.prototype.checkInteriorIntersections=function(){var t=this;if(0===arguments.length)for(var e=this._segStrings.iterator();e.hasNext();)for(var n=e.next(),r=this._segStrings.iterator();r.hasNext();){var i=r.next();t.checkInteriorIntersections(n,i)}else if(2===arguments.length)for(var o=arguments[0],s=arguments[1],a=o.getCoordinates(),u=s.getCoordinates(),c=0;c<a.length-1;c++)for(var l=0;l<u.length-1;l++)t.checkInteriorIntersections(o,c,s,l);else if(4===arguments.length){var h=arguments[0],f=arguments[1],p=arguments[2],d=arguments[3];if(h===p&&f===d)return null;var g=h.getCoordinates()[f],y=h.getCoordinates()[f+1],v=p.getCoordinates()[d],_=p.getCoordinates()[d+1];if(this._li.computeIntersection(g,y,v,_),this._li.hasIntersection()&&(this._li.isProper()||this.hasInteriorIntersection(this._li,g,y)||this.hasInteriorIntersection(this._li,v,_)))throw new kc("found non-noded intersection at "+g+"-"+y+" and "+v+"-"+_)}},cp.prototype.checkValid=function(){this.checkEndPtVertexIntersections(),this.checkInteriorIntersections(),this.checkCollapses()},cp.prototype.checkCollapses=function(){var t=this;if(0===arguments.length)for(var e=this._segStrings.iterator();e.hasNext();){var n=e.next();t.checkCollapses(n)}else if(1===arguments.length)for(var r=arguments[0],i=r.getCoordinates(),o=0;o<i.length-2;o++)t.checkCollapse(i[o],i[o+1],i[o+2])},cp.prototype.hasInteriorIntersection=function(t,e,n){for(var r=0;r<t.getIntersectionNum();r++){var i=t.getIntersection(r);if(!i.equals(e)&&!i.equals(n))return!0}return!1},cp.prototype.checkCollapse=function(t,e,n){if(t.equals(n))throw new kc("found non-noded collapse at "+cp.fact.createLineString([t,e,n]))},cp.prototype.interfaces_=function(){return[]},cp.prototype.getClass=function(){return cp},lp.fact.get=function(){return new mh},Object.defineProperties(cp,lp);var hp=function(){this._li=null,this._pt=null,this._originalPt=null,this._ptScaled=null,this._p0Scaled=null,this._p1Scaled=null,this._scaleFactor=null,this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,this._corner=new Array(4).fill(null),this._safeEnv=null;var t=arguments[0],e=arguments[1],n=arguments[2];if(this._originalPt=t,this._pt=t,this._scaleFactor=e,this._li=n,e<=0)throw new nc("Scale factor must be non-zero");1!==e&&(this._pt=new cc(this.scale(t.x),this.scale(t.y)),this._p0Scaled=new cc,this._p1Scaled=new cc),this.initCorners(this._pt)},fp={SAFE_ENV_EXPANSION_FACTOR:{configurable:!0}};hp.prototype.intersectsScaled=function(t,e){var n=Math.min(t.x,e.x),r=Math.max(t.x,e.x),i=Math.min(t.y,e.y),o=Math.max(t.y,e.y),s=this._maxx<n||this._minx>r||this._maxy<i||this._miny>o;if(s)return!1;var a=this.intersectsToleranceSquare(t,e);return Bc.isTrue(!(s&&a),"Found bad envelope test"),a},hp.prototype.initCorners=function(t){var e=.5;this._minx=t.x-e,this._maxx=t.x+e,this._miny=t.y-e,this._maxy=t.y+e,this._corner[0]=new cc(this._maxx,this._maxy),this._corner[1]=new cc(this._minx,this._maxy),this._corner[2]=new cc(this._minx,this._miny),this._corner[3]=new cc(this._maxx,this._miny)},hp.prototype.intersects=function(t,e){return 1===this._scaleFactor?this.intersectsScaled(t,e):(this.copyScaled(t,this._p0Scaled),this.copyScaled(e,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))},hp.prototype.scale=function(t){return Math.round(t*this._scaleFactor)},hp.prototype.getCoordinate=function(){return this._originalPt},hp.prototype.copyScaled=function(t,e){e.x=this.scale(t.x),e.y=this.scale(t.y)},hp.prototype.getSafeEnvelope=function(){if(null===this._safeEnv){var t=hp.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new Lc(this._originalPt.x-t,this._originalPt.x+t,this._originalPt.y-t,this._originalPt.y+t)}return this._safeEnv},hp.prototype.intersectsPixelClosure=function(t,e){return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),!!this._li.hasIntersection())))},hp.prototype.intersectsToleranceSquare=function(t,e){var n=!1,r=!1;return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!this._li.isProper()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),!!this._li.isProper()||(this._li.hasIntersection()&&(n=!0),this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),!!this._li.isProper()||(this._li.hasIntersection()&&(r=!0),this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),!!this._li.isProper()||!(!n||!r)||!!t.equals(this._pt)||!!e.equals(this._pt))))},hp.prototype.addSnappedNode=function(t,e){var n=t.getCoordinate(e),r=t.getCoordinate(e+1);return!!this.intersects(n,r)&&(t.addIntersection(this.getCoordinate(),e),!0)},hp.prototype.interfaces_=function(){return[]},hp.prototype.getClass=function(){return hp},fp.SAFE_ENV_EXPANSION_FACTOR.get=function(){return.75},Object.defineProperties(hp,fp);var pp=function(){this.tempEnv1=new Lc,this.selectedSegment=new mf};pp.prototype.select=function(){if(1===arguments.length);else if(2===arguments.length){var t=arguments[0],e=arguments[1];t.getLineSegment(e,this.selectedSegment),this.select(this.selectedSegment)}},pp.prototype.interfaces_=function(){return[]},pp.prototype.getClass=function(){return pp};var dp=function(){this._index=null;var t=arguments[0];this._index=t},gp={HotPixelSnapAction:{configurable:!0}};dp.prototype.snap=function(){if(1===arguments.length){var t=arguments[0];return this.snap(t,null,-1)}if(3===arguments.length){var e=arguments[0],n=arguments[1],r=arguments[2],i=e.getSafeEnvelope(),o=new yp(e,n,r);return this._index.query(i,{interfaces_:function(){return[$h]},visitItem:function(t){t.select(i,o)}}),o.isNodeAdded()}},dp.prototype.interfaces_=function(){return[]},dp.prototype.getClass=function(){return dp},gp.HotPixelSnapAction.get=function(){return yp},Object.defineProperties(dp,gp);var yp=function(t){function e(){t.call(this),this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var e=arguments[0],n=arguments[1],r=arguments[2];this._hotPixel=e,this._parentEdge=n,this._hotPixelVertexIndex=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isNodeAdded=function(){return this._isNodeAdded},e.prototype.select=function(){if(2!==arguments.length)return t.prototype.select.apply(this,arguments);var e=arguments[0],n=arguments[1],r=e.getContext();if(null!==this._parentEdge&&r===this._parentEdge&&n===this._hotPixelVertexIndex)return null;this._isNodeAdded=this._hotPixel.addSnappedNode(r,n)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(pp),vp=function(){this._li=null,this._interiorIntersections=null;var t=arguments[0];this._li=t,this._interiorIntersections=new ll};vp.prototype.processIntersections=function(t,e,n,r){if(t===n&&e===r)return null;var i=t.getCoordinates()[e],o=t.getCoordinates()[e+1],s=n.getCoordinates()[r],a=n.getCoordinates()[r+1];if(this._li.computeIntersection(i,o,s,a),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var u=0;u<this._li.getIntersectionNum();u++)this._interiorIntersections.add(this._li.getIntersection(u));t.addIntersections(this._li,e,0),n.addIntersections(this._li,r,1)}},vp.prototype.isDone=function(){return!1},vp.prototype.getInteriorIntersections=function(){return this._interiorIntersections},vp.prototype.interfaces_=function(){return[Qf]},vp.prototype.getClass=function(){return vp};var _p=function(){this._pm=null,this._li=null,this._scaleFactor=null,this._noder=null,this._pointSnapper=null,this._nodedSegStrings=null;var t=arguments[0];this._pm=t,this._li=new Yc,this._li.setPrecisionModel(t),this._scaleFactor=t.getScale()};_p.prototype.checkCorrectness=function(t){var e=_f.getNodedSubstrings(t),n=new cp(e);try{n.checkValid()}catch(t){if(!(t instanceof Ic))throw t;t.printStackTrace()}},_p.prototype.getNodedSubstrings=function(){return _f.getNodedSubstrings(this._nodedSegStrings)},_p.prototype.snapRound=function(t,e){var n=this.findInteriorIntersections(t,e);this.computeIntersectionSnaps(n),this.computeVertexSnaps(t)},_p.prototype.findInteriorIntersections=function(t,e){var n=new vp(e);return this._noder.setSegmentIntersector(n),this._noder.computeNodes(t),n.getInteriorIntersections()},_p.prototype.computeVertexSnaps=function(){var t=this;if(gc(arguments[0],ol))for(var e=arguments[0],n=e.iterator();n.hasNext();){var r=n.next();t.computeVertexSnaps(r)}else if(arguments[0]instanceof _f)for(var i=arguments[0],o=i.getCoordinates(),s=0;s<o.length;s++){var a=new hp(o[s],t._scaleFactor,t._li),u=t._pointSnapper.snap(a,i,s);u&&i.addIntersection(o[s],s)}},_p.prototype.computeNodes=function(t){this._nodedSegStrings=t,this._noder=new Cf,this._pointSnapper=new dp(this._noder.getIndex()),this.snapRound(t,this._li)},_p.prototype.computeIntersectionSnaps=function(t){for(var e=this,n=t.iterator();n.hasNext();){var r=n.next(),i=new hp(r,e._scaleFactor,e._li);e._pointSnapper.snap(i)}},_p.prototype.interfaces_=function(){return[Of]},_p.prototype.getClass=function(){return _p};var mp=function(){if(this._argGeom=null,this._distance=null,this._bufParams=new Pf,this._resultGeometry=null,this._saveException=null,1===arguments.length){var t=arguments[0];this._argGeom=t}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._argGeom=e,this._bufParams=n}},bp={CAP_ROUND:{configurable:!0},CAP_BUTT:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},MAX_PRECISION_DIGITS:{configurable:!0}};mp.prototype.bufferFixedPrecision=function(t){var e=new up(new _p(new gh(1)),t.getScale()),n=new ap(this._bufParams);n.setWorkingPrecisionModel(t),n.setNoder(e),this._resultGeometry=n.buffer(this._argGeom,this._distance)},mp.prototype.bufferReducedPrecision=function(){var t=this;if(0===arguments.length){for(var e=mp.MAX_PRECISION_DIGITS;e>=0;e--){try{t.bufferReducedPrecision(e)}catch(e){if(!(e instanceof Mh))throw e;t._saveException=e}if(null!==t._resultGeometry)return null}throw this._saveException}if(1===arguments.length){var n=arguments[0],r=mp.precisionScaleFactor(this._argGeom,this._distance,n),i=new gh(r);this.bufferFixedPrecision(i)}},mp.prototype.computeGeometry=function(){if(this.bufferOriginalPrecision(),null!==this._resultGeometry)return null;var t=this._argGeom.getFactory().getPrecisionModel();t.getType()===gh.FIXED?this.bufferFixedPrecision(t):this.bufferReducedPrecision()},mp.prototype.setQuadrantSegments=function(t){this._bufParams.setQuadrantSegments(t)},mp.prototype.bufferOriginalPrecision=function(){try{var t=new ap(this._bufParams);this._resultGeometry=t.buffer(this._argGeom,this._distance)}catch(t){if(!(t instanceof kc))throw t;this._saveException=t}},mp.prototype.getResultGeometry=function(t){return this._distance=t,this.computeGeometry(),this._resultGeometry},mp.prototype.setEndCapStyle=function(t){this._bufParams.setEndCapStyle(t)},mp.prototype.interfaces_=function(){return[]},mp.prototype.getClass=function(){return mp},mp.bufferOp=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=new mp(t),r=n.getResultGeometry(e);return r}if(3===arguments.length){if(Number.isInteger(arguments[2])&&arguments[0]instanceof Zc&&"number"==typeof arguments[1]){var i=arguments[0],o=arguments[1],s=arguments[2],a=new mp(i);a.setQuadrantSegments(s);var u=a.getResultGeometry(o);return u}if(arguments[2]instanceof Pf&&arguments[0]instanceof Zc&&"number"==typeof arguments[1]){var c=arguments[0],l=arguments[1],h=arguments[2],f=new mp(c,h),p=f.getResultGeometry(l);return p}}else if(4===arguments.length){var d=arguments[0],g=arguments[1],y=arguments[2],v=arguments[3],_=new mp(d);_.setQuadrantSegments(y),_.setEndCapStyle(v);var m=_.getResultGeometry(g);return m}},mp.precisionScaleFactor=function(t,e,n){var r=t.getEnvelopeInternal(),i=yc.max(Math.abs(r.getMaxX()),Math.abs(r.getMaxY()),Math.abs(r.getMinX()),Math.abs(r.getMinY()))+2*(e>0?e:0),o=n-Math.trunc(Math.log(i)/Math.log(10)+1);return Math.pow(10,o)},bp.CAP_ROUND.get=function(){return Pf.CAP_ROUND},bp.CAP_BUTT.get=function(){return Pf.CAP_FLAT},bp.CAP_FLAT.get=function(){return Pf.CAP_FLAT},bp.CAP_SQUARE.get=function(){return Pf.CAP_SQUARE},bp.MAX_PRECISION_DIGITS.get=function(){return 12},Object.defineProperties(mp,bp);var Ep=function(){this._pt=[new cc,new cc],this._distance=rc.NaN,this._isNull=!0};Ep.prototype.getCoordinates=function(){return this._pt},Ep.prototype.getCoordinate=function(t){return this._pt[t]},Ep.prototype.setMinimum=function(){if(1===arguments.length){var t=arguments[0];this.setMinimum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var r=e.distance(n);r<this._distance&&this.initialize(e,n,r)}},Ep.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var t=arguments[0],e=arguments[1];this._pt[0].setCoordinate(t),this._pt[1].setCoordinate(e),this._distance=t.distance(e),this._isNull=!1}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._pt[0].setCoordinate(n),this._pt[1].setCoordinate(r),this._distance=i,this._isNull=!1}},Ep.prototype.getDistance=function(){return this._distance},Ep.prototype.setMaximum=function(){if(1===arguments.length){var t=arguments[0];this.setMaximum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var r=e.distance(n);r>this._distance&&this.initialize(e,n,r)}},Ep.prototype.interfaces_=function(){return[]},Ep.prototype.getClass=function(){return Ep};var wp=function(){};wp.prototype.interfaces_=function(){return[]},wp.prototype.getClass=function(){return wp},wp.computeDistance=function(){if(arguments[2]instanceof Ep&&arguments[0]instanceof Jl&&arguments[1]instanceof cc)for(var t=arguments[0],e=arguments[1],n=arguments[2],r=t.getCoordinates(),i=new mf,o=0;o<r.length-1;o++){i.setCoordinates(r[o],r[o+1]);var s=i.closestPoint(e);n.setMinimum(s,e)}else if(arguments[2]instanceof Ep&&arguments[0]instanceof eh&&arguments[1]instanceof cc){var a=arguments[0],u=arguments[1],c=arguments[2];wp.computeDistance(a.getExteriorRing(),u,c);for(var l=0;l<a.getNumInteriorRing();l++)wp.computeDistance(a.getInteriorRingN(l),u,c)}else if(arguments[2]instanceof Ep&&arguments[0]instanceof Zc&&arguments[1]instanceof cc){var h=arguments[0],f=arguments[1],p=arguments[2];if(h instanceof Jl)wp.computeDistance(h,f,p);else if(h instanceof eh)wp.computeDistance(h,f,p);else if(h instanceof kl)for(var d=h,g=0;g<d.getNumGeometries();g++){var y=d.getGeometryN(g);wp.computeDistance(y,f,p)}else p.setMinimum(h.getCoordinate(),f)}else if(arguments[2]instanceof Ep&&arguments[0]instanceof mf&&arguments[1]instanceof cc){var v=arguments[0],_=arguments[1],m=arguments[2],b=v.closestPoint(_);m.setMinimum(b,_)}};var xp=function(t){this._maxPtDist=new Ep,this._inputGeom=t||null},Op={MaxPointDistanceFilter:{configurable:!0},MaxMidpointDistanceFilter:{configurable:!0}};xp.prototype.computeMaxMidpointDistance=function(t){var e=new Cp(this._inputGeom);t.apply(e),this._maxPtDist.setMaximum(e.getMaxPointDistance())},xp.prototype.computeMaxVertexDistance=function(t){var e=new Sp(this._inputGeom);t.apply(e),this._maxPtDist.setMaximum(e.getMaxPointDistance())},xp.prototype.findDistance=function(t){return this.computeMaxVertexDistance(t),this.computeMaxMidpointDistance(t),this._maxPtDist.getDistance()},xp.prototype.getDistancePoints=function(){return this._maxPtDist},xp.prototype.interfaces_=function(){return[]},xp.prototype.getClass=function(){return xp},Op.MaxPointDistanceFilter.get=function(){return Sp},Op.MaxMidpointDistanceFilter.get=function(){return Cp},Object.defineProperties(xp,Op);var Sp=function(t){this._maxPtDist=new Ep,this._minPtDist=new Ep,this._geom=t||null};Sp.prototype.filter=function(t){this._minPtDist.initialize(),wp.computeDistance(this._geom,t,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},Sp.prototype.getMaxPointDistance=function(){return this._maxPtDist},Sp.prototype.interfaces_=function(){return[Qc]},Sp.prototype.getClass=function(){return Sp};var Cp=function(t){this._maxPtDist=new Ep,this._minPtDist=new Ep,this._geom=t||null};Cp.prototype.filter=function(t,e){if(0===e)return null;var n=t.getCoordinate(e-1),r=t.getCoordinate(e),i=new cc((n.x+r.x)/2,(n.y+r.y)/2);this._minPtDist.initialize(),wp.computeDistance(this._geom,i,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},Cp.prototype.isDone=function(){return!1},Cp.prototype.isGeometryChanged=function(){return!1},Cp.prototype.getMaxPointDistance=function(){return this._maxPtDist},Cp.prototype.interfaces_=function(){return[Dl]},Cp.prototype.getClass=function(){return Cp};var Ip=function(t){this._comps=t||null};Ip.prototype.filter=function(t){t instanceof eh&&this._comps.add(t)},Ip.prototype.interfaces_=function(){return[jl]},Ip.prototype.getClass=function(){return Ip},Ip.getPolygons=function(){if(1===arguments.length){var t=arguments[0];return Ip.getPolygons(t,new ll)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e instanceof eh?n.add(e):e instanceof kl&&e.apply(new Ip(n)),n}};var Pp=function(){if(this._lines=null,this._isForcedToLineString=!1,1===arguments.length){var t=arguments[0];this._lines=t}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._lines=e,this._isForcedToLineString=n}};Pp.prototype.filter=function(t){if(this._isForcedToLineString&&t instanceof rh){var e=t.getFactory().createLineString(t.getCoordinateSequence());return this._lines.add(e),null}t instanceof Jl&&this._lines.add(t)},Pp.prototype.setForceToLineString=function(t){this._isForcedToLineString=t},Pp.prototype.interfaces_=function(){return[Hc]},Pp.prototype.getClass=function(){return Pp},Pp.getGeometry=function(){if(1===arguments.length){var t=arguments[0];return t.getFactory().buildGeometry(Pp.getLines(t))}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e.getFactory().buildGeometry(Pp.getLines(e,n))}},Pp.getLines=function(){if(1===arguments.length){var t=arguments[0];return Pp.getLines(t,!1)}if(2===arguments.length){if(gc(arguments[0],ol)&&gc(arguments[1],ol)){for(var e=arguments[0],n=arguments[1],r=e.iterator();r.hasNext();){var i=r.next();Pp.getLines(i,n)}return n}if(arguments[0]instanceof Zc&&"boolean"==typeof arguments[1]){var o=arguments[0],s=arguments[1],a=new ll;return o.apply(new Pp(a,s)),a}if(arguments[0]instanceof Zc&&gc(arguments[1],ol)){var u=arguments[0],c=arguments[1];return u instanceof Jl?c.add(u):u.apply(new Pp(c)),c}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&gc(arguments[0],ol)&&gc(arguments[1],ol)){for(var l=arguments[0],h=arguments[1],f=arguments[2],p=l.iterator();p.hasNext();){var d=p.next();Pp.getLines(d,h,f)}return h}if("boolean"==typeof arguments[2]&&arguments[0]instanceof Zc&&gc(arguments[1],ol)){var g=arguments[0],y=arguments[1],v=arguments[2];return g.apply(new Pp(y,v)),y}}};var Rp=function(){if(this._boundaryRule=$c.OGC_SFS_BOUNDARY_RULE,this._isIn=null,this._numBoundaries=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];if(null===t)throw new nc("Rule must be non-null");this._boundaryRule=t}};Rp.prototype.locateInternal=function(){var t=this;if(arguments[0]instanceof cc&&arguments[1]instanceof eh){var e=arguments[0],n=arguments[1];if(n.isEmpty())return pc.EXTERIOR;var r=n.getExteriorRing(),i=this.locateInPolygonRing(e,r);if(i===pc.EXTERIOR)return pc.EXTERIOR;if(i===pc.BOUNDARY)return pc.BOUNDARY;for(var o=0;o<n.getNumInteriorRing();o++){var s=n.getInteriorRingN(o),a=t.locateInPolygonRing(e,s);if(a===pc.INTERIOR)return pc.EXTERIOR;if(a===pc.BOUNDARY)return pc.BOUNDARY}return pc.INTERIOR}if(arguments[0]instanceof cc&&arguments[1]instanceof Jl){var u=arguments[0],c=arguments[1];if(!c.getEnvelopeInternal().intersects(u))return pc.EXTERIOR;var l=c.getCoordinates();return c.isClosed()||!u.equals(l[0])&&!u.equals(l[l.length-1])?qc.isOnLine(u,l)?pc.INTERIOR:pc.EXTERIOR:pc.BOUNDARY}if(arguments[0]instanceof cc&&arguments[1]instanceof $l){var h=arguments[0],f=arguments[1],p=f.getCoordinate();return p.equals2D(h)?pc.INTERIOR:pc.EXTERIOR}},Rp.prototype.locateInPolygonRing=function(t,e){return e.getEnvelopeInternal().intersects(t)?qc.locatePointInRing(t,e.getCoordinates()):pc.EXTERIOR},Rp.prototype.intersects=function(t,e){return this.locate(t,e)!==pc.EXTERIOR},Rp.prototype.updateLocationInfo=function(t){t===pc.INTERIOR&&(this._isIn=!0),t===pc.BOUNDARY&&this._numBoundaries++},Rp.prototype.computeLocation=function(t,e){var n=this;if(e instanceof $l&&this.updateLocationInfo(this.locateInternal(t,e)),e instanceof Jl)this.updateLocationInfo(this.locateInternal(t,e));else if(e instanceof eh)this.updateLocationInfo(this.locateInternal(t,e));else if(e instanceof Gl)for(var r=e,i=0;i<r.getNumGeometries();i++){var o=r.getGeometryN(i);n.updateLocationInfo(n.locateInternal(t,o))}else if(e instanceof ih)for(var s=e,a=0;a<s.getNumGeometries();a++){var u=s.getGeometryN(a);n.updateLocationInfo(n.locateInternal(t,u))}else if(e instanceof kl)for(var c=new Vf(e);c.hasNext();){var l=c.next();l!==e&&n.computeLocation(t,l)}},Rp.prototype.locate=function(t,e){return e.isEmpty()?pc.EXTERIOR:e instanceof Jl||e instanceof eh?this.locateInternal(t,e):(this._isIn=!1,this._numBoundaries=0,this.computeLocation(t,e),this._boundaryRule.isInBoundary(this._numBoundaries)?pc.BOUNDARY:this._numBoundaries>0||this._isIn?pc.INTERIOR:pc.EXTERIOR)},Rp.prototype.interfaces_=function(){return[]},Rp.prototype.getClass=function(){return Rp};var Tp=function t(){if(this._component=null,this._segIndex=null,this._pt=null,2===arguments.length){var e=arguments[0],n=arguments[1];t.call(this,e,t.INSIDE_AREA,n)}else if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];this._component=r,this._segIndex=i,this._pt=o}},Lp={INSIDE_AREA:{configurable:!0}};Tp.prototype.isInsideArea=function(){return this._segIndex===Tp.INSIDE_AREA},Tp.prototype.getCoordinate=function(){return this._pt},Tp.prototype.getGeometryComponent=function(){return this._component},Tp.prototype.getSegmentIndex=function(){return this._segIndex},Tp.prototype.interfaces_=function(){return[]},Tp.prototype.getClass=function(){return Tp},Lp.INSIDE_AREA.get=function(){return-1},Object.defineProperties(Tp,Lp);var Mp=function(t){this._pts=t||null};Mp.prototype.filter=function(t){t instanceof $l&&this._pts.add(t)},Mp.prototype.interfaces_=function(){return[jl]},Mp.prototype.getClass=function(){return Mp},Mp.getPoints=function(){if(1===arguments.length){var t=arguments[0];return t instanceof $l?rf.singletonList(t):Mp.getPoints(t,new ll)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e instanceof $l?n.add(e):e instanceof kl&&e.apply(new Mp(n)),n}};var Np=function(){this._locations=null;var t=arguments[0];this._locations=t};Np.prototype.filter=function(t){(t instanceof $l||t instanceof Jl||t instanceof eh)&&this._locations.add(new Tp(t,0,t.getCoordinate()))},Np.prototype.interfaces_=function(){return[jl]},Np.prototype.getClass=function(){return Np},Np.getLocations=function(t){var e=new ll;return t.apply(new Np(e)),e};var Ap=function(){if(this._geom=null,this._terminateDistance=0,this._ptLocator=new Rp,this._minDistanceLocation=null,this._minDistance=rc.MAX_VALUE,2===arguments.length){var t=arguments[0],e=arguments[1];this._geom=[t,e],this._terminateDistance=0}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._geom=new Array(2).fill(null),this._geom[0]=n,this._geom[1]=r,this._terminateDistance=i}};Ap.prototype.computeContainmentDistance=function(){var t=this;if(0===arguments.length){var e=new Array(2).fill(null);if(this.computeContainmentDistance(0,e),this._minDistance<=this._terminateDistance)return null;this.computeContainmentDistance(1,e)}else if(2===arguments.length){var n=arguments[0],r=arguments[1],i=1-n,o=Ip.getPolygons(this._geom[n]);if(o.size()>0){var s=Np.getLocations(this._geom[i]);if(this.computeContainmentDistance(s,o,r),this._minDistance<=this._terminateDistance)return this._minDistanceLocation[i]=r[0],this._minDistanceLocation[n]=r[1],null}}else if(3===arguments.length)if(arguments[2]instanceof Array&&gc(arguments[0],ul)&&gc(arguments[1],ul)){for(var a=arguments[0],u=arguments[1],c=arguments[2],l=0;l<a.size();l++)for(var h=a.get(l),f=0;f<u.size();f++)if(t.computeContainmentDistance(h,u.get(f),c),t._minDistance<=t._terminateDistance)return null}else if(arguments[2]instanceof Array&&arguments[0]instanceof Tp&&arguments[1]instanceof eh){var p=arguments[0],d=arguments[1],g=arguments[2],y=p.getCoordinate();if(pc.EXTERIOR!==this._ptLocator.locate(y,d))return this._minDistance=0,g[0]=p,g[1]=new Tp(d,y),null}},Ap.prototype.computeMinDistanceLinesPoints=function(t,e,n){for(var r=this,i=0;i<t.size();i++)for(var o=t.get(i),s=0;s<e.size();s++){var a=e.get(s);if(r.computeMinDistance(o,a,n),r._minDistance<=r._terminateDistance)return null}},Ap.prototype.computeFacetDistance=function(){var t=new Array(2).fill(null),e=Pp.getLines(this._geom[0]),n=Pp.getLines(this._geom[1]),r=Mp.getPoints(this._geom[0]),i=Mp.getPoints(this._geom[1]);return this.computeMinDistanceLines(e,n,t),this.updateMinDistance(t,!1),this._minDistance<=this._terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistanceLinesPoints(e,i,t),this.updateMinDistance(t,!1),this._minDistance<=this._terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistanceLinesPoints(n,r,t),this.updateMinDistance(t,!0),this._minDistance<=this._terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistancePoints(r,i,t),void this.updateMinDistance(t,!1))))},Ap.prototype.nearestLocations=function(){return this.computeMinDistance(),this._minDistanceLocation},Ap.prototype.updateMinDistance=function(t,e){if(null===t[0])return null;e?(this._minDistanceLocation[0]=t[1],this._minDistanceLocation[1]=t[0]):(this._minDistanceLocation[0]=t[0],this._minDistanceLocation[1]=t[1])},Ap.prototype.nearestPoints=function(){return this.computeMinDistance(),[this._minDistanceLocation[0].getCoordinate(),this._minDistanceLocation[1].getCoordinate()]},Ap.prototype.computeMinDistance=function(){var t=this;if(0===arguments.length){if(null!==this._minDistanceLocation)return null;if(this._minDistanceLocation=new Array(2).fill(null),this.computeContainmentDistance(),this._minDistance<=this._terminateDistance)return null;this.computeFacetDistance()}else if(3===arguments.length)if(arguments[2]instanceof Array&&arguments[0]instanceof Jl&&arguments[1]instanceof $l){var e=arguments[0],n=arguments[1],r=arguments[2];if(e.getEnvelopeInternal().distance(n.getEnvelopeInternal())>this._minDistance)return null;for(var i=e.getCoordinates(),o=n.getCoordinate(),s=0;s<i.length-1;s++){var a=qc.distancePointLine(o,i[s],i[s+1]);if(a<t._minDistance){t._minDistance=a;var u=new mf(i[s],i[s+1]),c=u.closestPoint(o);r[0]=new Tp(e,s,c),r[1]=new Tp(n,0,o)}if(t._minDistance<=t._terminateDistance)return null}}else if(arguments[2]instanceof Array&&arguments[0]instanceof Jl&&arguments[1]instanceof Jl){var l=arguments[0],h=arguments[1],f=arguments[2];if(l.getEnvelopeInternal().distance(h.getEnvelopeInternal())>this._minDistance)return null;for(var p=l.getCoordinates(),d=h.getCoordinates(),g=0;g<p.length-1;g++)for(var y=0;y<d.length-1;y++){var v=qc.distanceLineLine(p[g],p[g+1],d[y],d[y+1]);if(v<t._minDistance){t._minDistance=v;var _=new mf(p[g],p[g+1]),m=new mf(d[y],d[y+1]),b=_.closestPoints(m);f[0]=new Tp(l,g,b[0]),f[1]=new Tp(h,y,b[1])}if(t._minDistance<=t._terminateDistance)return null}}},Ap.prototype.computeMinDistancePoints=function(t,e,n){for(var r=this,i=0;i<t.size();i++)for(var o=t.get(i),s=0;s<e.size();s++){var a=e.get(s),u=o.getCoordinate().distance(a.getCoordinate());if(u<r._minDistance&&(r._minDistance=u,n[0]=new Tp(o,0,o.getCoordinate()),n[1]=new Tp(a,0,a.getCoordinate())),r._minDistance<=r._terminateDistance)return null}},Ap.prototype.distance=function(){if(null===this._geom[0]||null===this._geom[1])throw new nc("null geometries are not supported");return this._geom[0].isEmpty()||this._geom[1].isEmpty()?0:(this.computeMinDistance(),this._minDistance)},Ap.prototype.computeMinDistanceLines=function(t,e,n){for(var r=this,i=0;i<t.size();i++)for(var o=t.get(i),s=0;s<e.size();s++){var a=e.get(s);if(r.computeMinDistance(o,a,n),r._minDistance<=r._terminateDistance)return null}},Ap.prototype.interfaces_=function(){return[]},Ap.prototype.getClass=function(){return Ap},Ap.distance=function(t,e){return new Ap(t,e).distance()},Ap.isWithinDistance=function(t,e,n){return new Ap(t,e,n).distance()<=n},Ap.nearestPoints=function(t,e){return new Ap(t,e).nearestPoints()};var Fp=function(){this._pt=[new cc,new cc],this._distance=rc.NaN,this._isNull=!0};Fp.prototype.getCoordinates=function(){return this._pt},Fp.prototype.getCoordinate=function(t){return this._pt[t]},Fp.prototype.setMinimum=function(){if(1===arguments.length){var t=arguments[0];this.setMinimum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var r=e.distance(n);r<this._distance&&this.initialize(e,n,r)}},Fp.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var t=arguments[0],e=arguments[1];this._pt[0].setCoordinate(t),this._pt[1].setCoordinate(e),this._distance=t.distance(e),this._isNull=!1}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._pt[0].setCoordinate(n),this._pt[1].setCoordinate(r),this._distance=i,this._isNull=!1}},Fp.prototype.toString=function(){return Dc.toLineString(this._pt[0],this._pt[1])},Fp.prototype.getDistance=function(){return this._distance},Fp.prototype.setMaximum=function(){if(1===arguments.length){var t=arguments[0];this.setMaximum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var r=e.distance(n);r>this._distance&&this.initialize(e,n,r)}},Fp.prototype.interfaces_=function(){return[]},Fp.prototype.getClass=function(){return Fp};var jp=function(){};jp.prototype.interfaces_=function(){return[]},jp.prototype.getClass=function(){return jp},jp.computeDistance=function(){if(arguments[2]instanceof Fp&&arguments[0]instanceof Jl&&arguments[1]instanceof cc)for(var t=arguments[0],e=arguments[1],n=arguments[2],r=new mf,i=t.getCoordinates(),o=0;o<i.length-1;o++){r.setCoordinates(i[o],i[o+1]);var s=r.closestPoint(e);n.setMinimum(s,e)}else if(arguments[2]instanceof Fp&&arguments[0]instanceof eh&&arguments[1]instanceof cc){var a=arguments[0],u=arguments[1],c=arguments[2];jp.computeDistance(a.getExteriorRing(),u,c);for(var l=0;l<a.getNumInteriorRing();l++)jp.computeDistance(a.getInteriorRingN(l),u,c)}else if(arguments[2]instanceof Fp&&arguments[0]instanceof Zc&&arguments[1]instanceof cc){var h=arguments[0],f=arguments[1],p=arguments[2];if(h instanceof Jl)jp.computeDistance(h,f,p);else if(h instanceof eh)jp.computeDistance(h,f,p);else if(h instanceof kl)for(var d=h,g=0;g<d.getNumGeometries();g++){var y=d.getGeometryN(g);jp.computeDistance(y,f,p)}else p.setMinimum(h.getCoordinate(),f)}else if(arguments[2]instanceof Fp&&arguments[0]instanceof mf&&arguments[1]instanceof cc){var v=arguments[0],_=arguments[1],m=arguments[2],b=v.closestPoint(_);m.setMinimum(b,_)}};var Dp=function(){this._g0=null,this._g1=null,this._ptDist=new Fp,this._densifyFrac=0;var t=arguments[0],e=arguments[1];this._g0=t,this._g1=e},kp={MaxPointDistanceFilter:{configurable:!0},MaxDensifiedByFractionDistanceFilter:{configurable:!0}};Dp.prototype.getCoordinates=function(){return this._ptDist.getCoordinates()},Dp.prototype.setDensifyFraction=function(t){if(t>1||t<=0)throw new nc("Fraction is not in range (0.0 - 1.0]");this._densifyFrac=t},Dp.prototype.compute=function(t,e){this.computeOrientedDistance(t,e,this._ptDist),this.computeOrientedDistance(e,t,this._ptDist)},Dp.prototype.distance=function(){return this.compute(this._g0,this._g1),this._ptDist.getDistance()},Dp.prototype.computeOrientedDistance=function(t,e,n){var r=new Gp(e);if(t.apply(r),n.setMaximum(r.getMaxPointDistance()),this._densifyFrac>0){var i=new Bp(e,this._densifyFrac);t.apply(i),n.setMaximum(i.getMaxPointDistance())}},Dp.prototype.orientedDistance=function(){return this.computeOrientedDistance(this._g0,this._g1,this._ptDist),this._ptDist.getDistance()},Dp.prototype.interfaces_=function(){return[]},Dp.prototype.getClass=function(){return Dp},Dp.distance=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=new Dp(t,e);return n.distance()}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2],s=new Dp(r,i);return s.setDensifyFraction(o),s.distance()}},kp.MaxPointDistanceFilter.get=function(){return Gp},kp.MaxDensifiedByFractionDistanceFilter.get=function(){return Bp},Object.defineProperties(Dp,kp);var Gp=function(){this._maxPtDist=new Fp,this._minPtDist=new Fp,this._euclideanDist=new jp,this._geom=null;var t=arguments[0];this._geom=t};Gp.prototype.filter=function(t){this._minPtDist.initialize(),jp.computeDistance(this._geom,t,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},Gp.prototype.getMaxPointDistance=function(){return this._maxPtDist},Gp.prototype.interfaces_=function(){return[Qc]},Gp.prototype.getClass=function(){return Gp};var Bp=function(){this._maxPtDist=new Fp,this._minPtDist=new Fp,this._geom=null,this._numSubSegs=0;var t=arguments[0],e=arguments[1];this._geom=t,this._numSubSegs=Math.trunc(Math.round(1/e))};Bp.prototype.filter=function(t,e){var n=this;if(0===e)return null;for(var r=t.getCoordinate(e-1),i=t.getCoordinate(e),o=(i.x-r.x)/this._numSubSegs,s=(i.y-r.y)/this._numSubSegs,a=0;a<this._numSubSegs;a++){var u=r.x+a*o,c=r.y+a*s,l=new cc(u,c);n._minPtDist.initialize(),jp.computeDistance(n._geom,l,n._minPtDist),n._maxPtDist.setMaximum(n._minPtDist)}},Bp.prototype.isDone=function(){return!1},Bp.prototype.isGeometryChanged=function(){return!1},Bp.prototype.getMaxPointDistance=function(){return this._maxPtDist},Bp.prototype.interfaces_=function(){return[Dl]},Bp.prototype.getClass=function(){return Bp};var Up=function(t,e,n){this._minValidDistance=null,this._maxValidDistance=null,this._minDistanceFound=null,this._maxDistanceFound=null,this._isValid=!0,this._errMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=t||null,this._bufDistance=e||null,this._result=n||null},zp={VERBOSE:{configurable:!0},MAX_DISTANCE_DIFF_FRAC:{configurable:!0}};Up.prototype.checkMaximumDistance=function(t,e,n){var r=new Dp(e,t);if(r.setDensifyFraction(.25),this._maxDistanceFound=r.orientedDistance(),this._maxDistanceFound>n){this._isValid=!1;var i=r.getCoordinates();this._errorLocation=i[1],this._errorIndicator=t.getFactory().createLineString(i),this._errMsg="Distance between buffer curve and input is too large ("+this._maxDistanceFound+" at "+Dc.toLineString(i[0],i[1])+")"}},Up.prototype.isValid=function(){var t=Math.abs(this._bufDistance),e=Up.MAX_DISTANCE_DIFF_FRAC*t;return this._minValidDistance=t-e,this._maxValidDistance=t+e,!(!this._input.isEmpty()&&!this._result.isEmpty())||(this._bufDistance>0?this.checkPositiveValid():this.checkNegativeValid(),Up.VERBOSE&&Rc.out.println("Min Dist= "+this._minDistanceFound+" err= "+(1-this._minDistanceFound/this._bufDistance)+" Max Dist= "+this._maxDistanceFound+" err= "+(this._maxDistanceFound/this._bufDistance-1)),this._isValid)},Up.prototype.checkNegativeValid=function(){if(!(this._input instanceof eh||this._input instanceof ih||this._input instanceof kl))return null;var t=this.getPolygonLines(this._input);if(this.checkMinimumDistance(t,this._result,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(t,this._result,this._maxValidDistance)},Up.prototype.getErrorIndicator=function(){return this._errorIndicator},Up.prototype.checkMinimumDistance=function(t,e,n){var r=new Ap(t,e,n);if(this._minDistanceFound=r.distance(),this._minDistanceFound<n){this._isValid=!1;var i=r.nearestPoints();this._errorLocation=r.nearestPoints()[1],this._errorIndicator=t.getFactory().createLineString(i),this._errMsg="Distance between buffer curve and input is too small ("+this._minDistanceFound+" at "+Dc.toLineString(i[0],i[1])+" )"}},Up.prototype.checkPositiveValid=function(){var t=this._result.getBoundary();if(this.checkMinimumDistance(this._input,t,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(this._input,t,this._maxValidDistance)},Up.prototype.getErrorLocation=function(){return this._errorLocation},Up.prototype.getPolygonLines=function(t){for(var e=new ll,n=new Pp(e),r=Ip.getPolygons(t).iterator();r.hasNext();)r.next().apply(n);return t.getFactory().buildGeometry(e)},Up.prototype.getErrorMessage=function(){return this._errMsg},Up.prototype.interfaces_=function(){return[]},Up.prototype.getClass=function(){return Up},zp.VERBOSE.get=function(){return!1},zp.MAX_DISTANCE_DIFF_FRAC.get=function(){return.012},Object.defineProperties(Up,zp);var Yp=function(t,e,n){this._isValid=!0,this._errorMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=t||null,this._distance=e||null,this._result=n||null},Xp={VERBOSE:{configurable:!0},MAX_ENV_DIFF_FRAC:{configurable:!0}};Yp.prototype.isValid=function(){return this.checkPolygonal(),this._isValid?(this.checkExpectedEmpty(),this._isValid?(this.checkEnvelope(),this._isValid?(this.checkArea(),this._isValid?(this.checkDistance(),this._isValid):this._isValid):this._isValid):this._isValid):this._isValid},Yp.prototype.checkEnvelope=function(){if(this._distance<0)return null;var t=this._distance*Yp.MAX_ENV_DIFF_FRAC;0===t&&(t=.001);var e=new Lc(this._input.getEnvelopeInternal());e.expandBy(this._distance);var n=new Lc(this._result.getEnvelopeInternal());n.expandBy(t),n.contains(e)||(this._isValid=!1,this._errorMsg="Buffer envelope is incorrect",this._errorIndicator=this._input.getFactory().toGeometry(n)),this.report("Envelope")},Yp.prototype.checkDistance=function(){var t=new Up(this._input,this._distance,this._result);t.isValid()||(this._isValid=!1,this._errorMsg=t.getErrorMessage(),this._errorLocation=t.getErrorLocation(),this._errorIndicator=t.getErrorIndicator()),this.report("Distance")},Yp.prototype.checkArea=function(){var t=this._input.getArea(),e=this._result.getArea();this._distance>0&&t>e&&(this._isValid=!1,this._errorMsg="Area of positive buffer is smaller than input",this._errorIndicator=this._result),this._distance<0&&t<e&&(this._isValid=!1,this._errorMsg="Area of negative buffer is larger than input",this._errorIndicator=this._result),this.report("Area")},Yp.prototype.checkPolygonal=function(){this._result instanceof eh||this._result instanceof ih||(this._isValid=!1),this._errorMsg="Result is not polygonal",this._errorIndicator=this._result,this.report("Polygonal")},Yp.prototype.getErrorIndicator=function(){return this._errorIndicator},Yp.prototype.getErrorLocation=function(){return this._errorLocation},Yp.prototype.checkExpectedEmpty=function(){return this._input.getDimension()>=2||this._distance>0?null:(this._result.isEmpty()||(this._isValid=!1,this._errorMsg="Result is non-empty",this._errorIndicator=this._result),void this.report("ExpectedEmpty"))},Yp.prototype.report=function(t){if(!Yp.VERBOSE)return null;Rc.out.println("Check "+t+": "+(this._isValid?"passed":"FAILED"))},Yp.prototype.getErrorMessage=function(){return this._errorMsg},Yp.prototype.interfaces_=function(){return[]},Yp.prototype.getClass=function(){return Yp},Yp.isValidMsg=function(t,e,n){var r=new Yp(t,e,n);return r.isValid()?null:r.getErrorMessage()},Yp.isValid=function(t,e,n){return!!new Yp(t,e,n).isValid()},Xp.VERBOSE.get=function(){return!1},Xp.MAX_ENV_DIFF_FRAC.get=function(){return.012},Object.defineProperties(Yp,Xp);var Vp=function(){this._pts=null,this._data=null;var t=arguments[0],e=arguments[1];this._pts=t,this._data=e};Vp.prototype.getCoordinates=function(){return this._pts},Vp.prototype.size=function(){return this._pts.length},Vp.prototype.getCoordinate=function(t){return this._pts[t]},Vp.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},Vp.prototype.getSegmentOctant=function(t){return t===this._pts.length-1?-1:gf.octant(this.getCoordinate(t),this.getCoordinate(t+1))},Vp.prototype.setData=function(t){this._data=t},Vp.prototype.getData=function(){return this._data},Vp.prototype.toString=function(){return Dc.toLineString(new lh(this._pts))},Vp.prototype.interfaces_=function(){return[yf]},Vp.prototype.getClass=function(){return Vp};var qp=function(){this._findAllIntersections=!1,this._isCheckEndSegmentsOnly=!1,this._li=null,this._interiorIntersection=null,this._intSegments=null,this._intersections=new ll,this._intersectionCount=0,this._keepIntersections=!0;var t=arguments[0];this._li=t,this._interiorIntersection=null};qp.prototype.getInteriorIntersection=function(){return this._interiorIntersection},qp.prototype.setCheckEndSegmentsOnly=function(t){this._isCheckEndSegmentsOnly=t},qp.prototype.getIntersectionSegments=function(){return this._intSegments},qp.prototype.count=function(){return this._intersectionCount},qp.prototype.getIntersections=function(){return this._intersections},qp.prototype.setFindAllIntersections=function(t){this._findAllIntersections=t},qp.prototype.setKeepIntersections=function(t){this._keepIntersections=t},qp.prototype.processIntersections=function(t,e,n,r){if(!this._findAllIntersections&&this.hasIntersection())return null;if(t===n&&e===r)return null;if(this._isCheckEndSegmentsOnly&&!this.isEndSegment(t,e)&&!this.isEndSegment(n,r))return null;var i=t.getCoordinates()[e],o=t.getCoordinates()[e+1],s=n.getCoordinates()[r],a=n.getCoordinates()[r+1];this._li.computeIntersection(i,o,s,a),this._li.hasIntersection()&&this._li.isInteriorIntersection()&&(this._intSegments=new Array(4).fill(null),this._intSegments[0]=i,this._intSegments[1]=o,this._intSegments[2]=s,this._intSegments[3]=a,this._interiorIntersection=this._li.getIntersection(0),this._keepIntersections&&this._intersections.add(this._interiorIntersection),this._intersectionCount++)},qp.prototype.isEndSegment=function(t,e){return 0===e||e>=t.size()-2},qp.prototype.hasIntersection=function(){return null!==this._interiorIntersection},qp.prototype.isDone=function(){return!this._findAllIntersections&&null!==this._interiorIntersection},qp.prototype.interfaces_=function(){return[Qf]},qp.prototype.getClass=function(){return qp},qp.createAllIntersectionsFinder=function(t){var e=new qp(t);return e.setFindAllIntersections(!0),e},qp.createAnyIntersectionFinder=function(t){return new qp(t)},qp.createIntersectionCounter=function(t){var e=new qp(t);return e.setFindAllIntersections(!0),e.setKeepIntersections(!1),e};var Wp=function(){this._li=new Yc,this._segStrings=null,this._findAllIntersections=!1,this._segInt=null,this._isValid=!0;var t=arguments[0];this._segStrings=t};Wp.prototype.execute=function(){if(null!==this._segInt)return null;this.checkInteriorIntersections()},Wp.prototype.getIntersections=function(){return this._segInt.getIntersections()},Wp.prototype.isValid=function(){return this.execute(),this._isValid},Wp.prototype.setFindAllIntersections=function(t){this._findAllIntersections=t},Wp.prototype.checkInteriorIntersections=function(){this._isValid=!0,this._segInt=new qp(this._li),this._segInt.setFindAllIntersections(this._findAllIntersections);var t=new Cf;if(t.setSegmentIntersector(this._segInt),t.computeNodes(this._segStrings),this._segInt.hasIntersection())return this._isValid=!1,null},Wp.prototype.checkValid=function(){if(this.execute(),!this._isValid)throw new Mh(this.getErrorMessage(),this._segInt.getInteriorIntersection())},Wp.prototype.getErrorMessage=function(){if(this._isValid)return"no intersections found";var t=this._segInt.getIntersectionSegments();return"found non-noded intersection between "+Dc.toLineString(t[0],t[1])+" and "+Dc.toLineString(t[2],t[3])},Wp.prototype.interfaces_=function(){return[]},Wp.prototype.getClass=function(){return Wp},Wp.computeIntersections=function(t){var e=new Wp(t);return e.setFindAllIntersections(!0),e.isValid(),e.getIntersections()};var Hp=function t(){this._nv=null;var e=arguments[0];this._nv=new Wp(t.toSegmentStrings(e))};Hp.prototype.checkValid=function(){this._nv.checkValid()},Hp.prototype.interfaces_=function(){return[]},Hp.prototype.getClass=function(){return Hp},Hp.toSegmentStrings=function(t){for(var e=new ll,n=t.iterator();n.hasNext();){var r=n.next();e.add(new Vp(r.getCoordinates(),r))}return e},Hp.checkValid=function(t){new Hp(t).checkValid()};var Zp=function(t){this._mapOp=t};Zp.prototype.map=function(t){for(var e=new ll,n=0;n<t.getNumGeometries();n++){var r=this._mapOp.map(t.getGeometryN(n));r.isEmpty()||e.add(r)}return t.getFactory().createGeometryCollection(mh.toGeometryArray(e))},Zp.prototype.interfaces_=function(){return[]},Zp.prototype.getClass=function(){return Zp},Zp.map=function(t,e){return new Zp(e).map(t)};var Kp=function(){this._op=null,this._geometryFactory=null,this._ptLocator=null,this._lineEdgesList=new ll,this._resultLineList=new ll;var t=arguments[0],e=arguments[1],n=arguments[2];this._op=t,this._geometryFactory=e,this._ptLocator=n};Kp.prototype.collectLines=function(t){for(var e=this,n=this._op.getGraph().getEdgeEnds().iterator();n.hasNext();){var r=n.next();e.collectLineEdge(r,t,e._lineEdgesList),e.collectBoundaryTouchEdge(r,t,e._lineEdgesList)}},Kp.prototype.labelIsolatedLine=function(t,e){var n=this._ptLocator.locate(t.getCoordinate(),this._op.getArgGeometry(e));t.getLabel().setLocation(e,n)},Kp.prototype.build=function(t){return this.findCoveredLineEdges(),this.collectLines(t),this.buildLines(t),this._resultLineList},Kp.prototype.collectLineEdge=function(t,e,n){var r=t.getLabel(),i=t.getEdge();t.isLineEdge()&&(t.isVisited()||!Td.isResultOfOp(r,e)||i.isCovered()||(n.add(i),t.setVisitedEdge(!0)))},Kp.prototype.findCoveredLineEdges=function(){for(var t=this._op.getGraph().getNodes().iterator();t.hasNext();)t.next().getEdges().findCoveredLineEdges();for(var e=this._op.getGraph().getEdgeEnds().iterator();e.hasNext();){var n=e.next(),r=n.getEdge();if(n.isLineEdge()&&!r.isCoveredSet()){var i=this._op.isCoveredByA(n.getCoordinate());r.setCovered(i)}}},Kp.prototype.labelIsolatedLines=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),r=n.getLabel();n.isIsolated()&&(r.isNull(0)?this.labelIsolatedLine(n,0):this.labelIsolatedLine(n,1))}},Kp.prototype.buildLines=function(t){for(var e=this._lineEdgesList.iterator();e.hasNext();){var n=e.next(),r=this._geometryFactory.createLineString(n.getCoordinates());this._resultLineList.add(r),n.setInResult(!0)}},Kp.prototype.collectBoundaryTouchEdge=function(t,e,n){var r=t.getLabel();return t.isLineEdge()||t.isVisited()||t.isInteriorAreaEdge()||t.getEdge().isInResult()?null:(Bc.isTrue(!(t.isInResult()||t.getSym().isInResult())||!t.getEdge().isInResult()),void(Td.isResultOfOp(r,e)&&e===Td.INTERSECTION&&(n.add(t.getEdge()),t.setVisitedEdge(!0))))},Kp.prototype.interfaces_=function(){return[]},Kp.prototype.getClass=function(){return Kp};var Jp=function(){this._op=null,this._geometryFactory=null,this._resultPointList=new ll;var t=arguments[0],e=arguments[1];this._op=t,this._geometryFactory=e};Jp.prototype.filterCoveredNodeToPoint=function(t){var e=t.getCoordinate();if(!this._op.isCoveredByLA(e)){var n=this._geometryFactory.createPoint(e);this._resultPointList.add(n)}},Jp.prototype.extractNonCoveredResultNodes=function(t){for(var e=this._op.getGraph().getNodes().iterator();e.hasNext();){var n=e.next();if(!n.isInResult()&&!n.isIncidentEdgeInResult()&&(0===n.getEdges().getDegree()||t===Td.INTERSECTION)){var r=n.getLabel();Td.isResultOfOp(r,t)&&this.filterCoveredNodeToPoint(n)}}},Jp.prototype.build=function(t){return this.extractNonCoveredResultNodes(t),this._resultPointList},Jp.prototype.interfaces_=function(){return[]},Jp.prototype.getClass=function(){return Jp};var Qp=function(){this._inputGeom=null,this._factory=null,this._pruneEmptyGeometry=!0,this._preserveGeometryCollectionType=!0,this._preserveCollections=!1,this._preserveType=!1};Qp.prototype.transformPoint=function(t,e){return this._factory.createPoint(this.transformCoordinates(t.getCoordinateSequence(),t))},Qp.prototype.transformPolygon=function(t,e){var n=!0,r=this.transformLinearRing(t.getExteriorRing(),t);null!==r&&r instanceof rh&&!r.isEmpty()||(n=!1);for(var i=new ll,o=0;o<t.getNumInteriorRing();o++){var s=this.transformLinearRing(t.getInteriorRingN(o),t);null===s||s.isEmpty()||(s instanceof rh||(n=!1),i.add(s))}if(n)return this._factory.createPolygon(r,i.toArray([]));var a=new ll;return null!==r&&a.add(r),a.addAll(i),this._factory.buildGeometry(a)},Qp.prototype.createCoordinateSequence=function(t){return this._factory.getCoordinateSequenceFactory().create(t)},Qp.prototype.getInputGeometry=function(){return this._inputGeom},Qp.prototype.transformMultiLineString=function(t,e){for(var n=new ll,r=0;r<t.getNumGeometries();r++){var i=this.transformLineString(t.getGeometryN(r),t);null!==i&&(i.isEmpty()||n.add(i))}return this._factory.buildGeometry(n)},Qp.prototype.transformCoordinates=function(t,e){return this.copy(t)},Qp.prototype.transformLineString=function(t,e){return this._factory.createLineString(this.transformCoordinates(t.getCoordinateSequence(),t))},Qp.prototype.transformMultiPoint=function(t,e){for(var n=new ll,r=0;r<t.getNumGeometries();r++){var i=this.transformPoint(t.getGeometryN(r),t);null!==i&&(i.isEmpty()||n.add(i))}return this._factory.buildGeometry(n)},Qp.prototype.transformMultiPolygon=function(t,e){for(var n=new ll,r=0;r<t.getNumGeometries();r++){var i=this.transformPolygon(t.getGeometryN(r),t);null!==i&&(i.isEmpty()||n.add(i))}return this._factory.buildGeometry(n)},Qp.prototype.copy=function(t){return t.copy()},Qp.prototype.transformGeometryCollection=function(t,e){for(var n=new ll,r=0;r<t.getNumGeometries();r++){var i=this.transform(t.getGeometryN(r));null!==i&&(this._pruneEmptyGeometry&&i.isEmpty()||n.add(i))}return this._preserveGeometryCollectionType?this._factory.createGeometryCollection(mh.toGeometryArray(n)):this._factory.buildGeometry(n)},Qp.prototype.transform=function(t){if(this._inputGeom=t,this._factory=t.getFactory(),t instanceof $l)return this.transformPoint(t,null);if(t instanceof nh)return this.transformMultiPoint(t,null);if(t instanceof rh)return this.transformLinearRing(t,null);if(t instanceof Jl)return this.transformLineString(t,null);if(t instanceof Gl)return this.transformMultiLineString(t,null);if(t instanceof eh)return this.transformPolygon(t,null);if(t instanceof ih)return this.transformMultiPolygon(t,null);if(t instanceof kl)return this.transformGeometryCollection(t,null);throw new nc("Unknown Geometry subtype: "+t.getClass().getName())},Qp.prototype.transformLinearRing=function(t,e){var n=this.transformCoordinates(t.getCoordinateSequence(),t);if(null===n)return this._factory.createLinearRing(null);var r=n.size();return r>0&&r<4&&!this._preserveType?this._factory.createLineString(n):this._factory.createLinearRing(n)},Qp.prototype.interfaces_=function(){return[]},Qp.prototype.getClass=function(){return Qp};var $p=function t(){if(this._snapTolerance=0,this._srcPts=null,this._seg=new mf,this._allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof Jl&&"number"==typeof arguments[1]){var e=arguments[0],n=arguments[1];t.call(this,e.getCoordinates(),n)}else if(arguments[0]instanceof Array&&"number"==typeof arguments[1]){var r=arguments[0],i=arguments[1];this._srcPts=r,this._isClosed=t.isClosed(r),this._snapTolerance=i}};$p.prototype.snapVertices=function(t,e){for(var n=this._isClosed?t.size()-1:t.size(),r=0;r<n;r++){var i=t.get(r),o=this.findSnapForVertex(i,e);null!==o&&(t.set(r,new cc(o)),0===r&&this._isClosed&&t.set(t.size()-1,new cc(o)))}},$p.prototype.findSnapForVertex=function(t,e){for(var n=0;n<e.length;n++){if(t.equals2D(e[n]))return null;if(t.distance(e[n])<this._snapTolerance)return e[n]}return null},$p.prototype.snapTo=function(t){var e=new fl(this._srcPts);return this.snapVertices(e,t),this.snapSegments(e,t),e.toCoordinateArray()},$p.prototype.snapSegments=function(t,e){if(0===e.length)return null;var n=e.length;e[0].equals2D(e[e.length-1])&&(n=e.length-1);for(var r=0;r<n;r++){var i=e[r],o=this.findSegmentIndexToSnap(i,t);o>=0&&t.add(o+1,new cc(i),!1)}},$p.prototype.findSegmentIndexToSnap=function(t,e){for(var n=this,r=rc.MAX_VALUE,i=-1,o=0;o<e.size()-1;o++){if(n._seg.p0=e.get(o),n._seg.p1=e.get(o+1),n._seg.p0.equals2D(t)||n._seg.p1.equals2D(t)){if(n._allowSnappingToSourceVertices)continue;return-1}var s=n._seg.distance(t);s<n._snapTolerance&&s<r&&(r=s,i=o)}return i},$p.prototype.setAllowSnappingToSourceVertices=function(t){this._allowSnappingToSourceVertices=t},$p.prototype.interfaces_=function(){return[]},$p.prototype.getClass=function(){return $p},$p.isClosed=function(t){return!(t.length<=1)&&t[0].equals2D(t[t.length-1])};var td=function(t){this._srcGeom=t||null},ed={SNAP_PRECISION_FACTOR:{configurable:!0}};td.prototype.snapTo=function(t,e){var n=this.extractTargetCoordinates(t);return new nd(e,n).transform(this._srcGeom)},td.prototype.snapToSelf=function(t,e){var n=this.extractTargetCoordinates(this._srcGeom),r=new nd(t,n,!0).transform(this._srcGeom),i=r;return e&&gc(i,th)&&(i=r.buffer(0)),i},td.prototype.computeSnapTolerance=function(t){return this.computeMinimumSegmentLength(t)/10},td.prototype.extractTargetCoordinates=function(t){for(var e=new Ll,n=t.getCoordinates(),r=0;r<n.length;r++)e.add(n[r]);return e.toArray(new Array(0).fill(null))},td.prototype.computeMinimumSegmentLength=function(t){for(var e=rc.MAX_VALUE,n=0;n<t.length-1;n++){var r=t[n].distance(t[n+1]);r<e&&(e=r)}return e},td.prototype.interfaces_=function(){return[]},td.prototype.getClass=function(){return td},td.snap=function(t,e,n){var r=new Array(2).fill(null),i=new td(t);r[0]=i.snapTo(e,n);var o=new td(e);return r[1]=o.snapTo(r[0],n),r},td.computeOverlaySnapTolerance=function(){if(1===arguments.length){var t=arguments[0],e=td.computeSizeBasedSnapTolerance(t),n=t.getPrecisionModel();if(n.getType()===gh.FIXED){var r=1/n.getScale()*2/1.415;r>e&&(e=r)}return e}if(2===arguments.length){var i=arguments[0],o=arguments[1];return Math.min(td.computeOverlaySnapTolerance(i),td.computeOverlaySnapTolerance(o))}},td.computeSizeBasedSnapTolerance=function(t){var e=t.getEnvelopeInternal();return Math.min(e.getHeight(),e.getWidth())*td.SNAP_PRECISION_FACTOR},td.snapToSelf=function(t,e,n){return new td(t).snapToSelf(e,n)},ed.SNAP_PRECISION_FACTOR.get=function(){return 1e-9},Object.defineProperties(td,ed);var nd=function(t){function e(e,n,r){t.call(this),this._snapTolerance=e||null,this._snapPts=n||null,this._isSelfSnap=void 0!==r&&r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.snapLine=function(t,e){var n=new $p(t,this._snapTolerance);return n.setAllowSnappingToSourceVertices(this._isSelfSnap),n.snapTo(e)},e.prototype.transformCoordinates=function(t,e){var n=t.toCoordinateArray(),r=this.snapLine(n,this._snapPts);return this._factory.getCoordinateSequenceFactory().create(r)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Qp),rd=function(){this._isFirst=!0,this._commonMantissaBitsCount=53,this._commonBits=0,this._commonSignExp=null};rd.prototype.getCommon=function(){return rc.longBitsToDouble(this._commonBits)},rd.prototype.add=function(t){var e=rc.doubleToLongBits(t);return this._isFirst?(this._commonBits=e,this._commonSignExp=rd.signExpBits(this._commonBits),this._isFirst=!1,null):rd.signExpBits(e)!==this._commonSignExp?(this._commonBits=0,null):(this._commonMantissaBitsCount=rd.numCommonMostSigMantissaBits(this._commonBits,e),void(this._commonBits=rd.zeroLowerBits(this._commonBits,64-(12+this._commonMantissaBitsCount))))},rd.prototype.toString=function(){if(1===arguments.length){var t=arguments[0],e=rc.longBitsToDouble(t),n=rc.toBinaryString(t),r="0000000000000000000000000000000000000000000000000000000000000000"+n,i=r.substring(r.length-64),o=i.substring(0,1)+" "+i.substring(1,12)+"(exp) "+i.substring(12)+" [ "+e+" ]";return o}},rd.prototype.interfaces_=function(){return[]},rd.prototype.getClass=function(){return rd},rd.getBit=function(t,e){return 0!=(t&1<<e)?1:0},rd.signExpBits=function(t){return t>>52},rd.zeroLowerBits=function(t,e){return t&~((1<<e)-1)},rd.numCommonMostSigMantissaBits=function(t,e){for(var n=0,r=52;r>=0;r--){if(rd.getBit(t,r)!==rd.getBit(e,r))return n;n++}return 52};var id=function(){this._commonCoord=null,this._ccFilter=new sd},od={CommonCoordinateFilter:{configurable:!0},Translater:{configurable:!0}};id.prototype.addCommonBits=function(t){var e=new ad(this._commonCoord);t.apply(e),t.geometryChanged()},id.prototype.removeCommonBits=function(t){if(0===this._commonCoord.x&&0===this._commonCoord.y)return t;var e=new cc(this._commonCoord);e.x=-e.x,e.y=-e.y;var n=new ad(e);return t.apply(n),t.geometryChanged(),t},id.prototype.getCommonCoordinate=function(){return this._commonCoord},id.prototype.add=function(t){t.apply(this._ccFilter),this._commonCoord=this._ccFilter.getCommonCoordinate()},id.prototype.interfaces_=function(){return[]},id.prototype.getClass=function(){return id},od.CommonCoordinateFilter.get=function(){return sd},od.Translater.get=function(){return ad},Object.defineProperties(id,od);var sd=function(){this._commonBitsX=new rd,this._commonBitsY=new rd};sd.prototype.filter=function(t){this._commonBitsX.add(t.x),this._commonBitsY.add(t.y)},sd.prototype.getCommonCoordinate=function(){return new cc(this._commonBitsX.getCommon(),this._commonBitsY.getCommon())},sd.prototype.interfaces_=function(){return[Qc]},sd.prototype.getClass=function(){return sd};var ad=function(){this.trans=null;var t=arguments[0];this.trans=t};ad.prototype.filter=function(t,e){var n=t.getOrdinate(e,0)+this.trans.x,r=t.getOrdinate(e,1)+this.trans.y;t.setOrdinate(e,0,n),t.setOrdinate(e,1,r)},ad.prototype.isDone=function(){return!1},ad.prototype.isGeometryChanged=function(){return!0},ad.prototype.interfaces_=function(){return[Dl]},ad.prototype.getClass=function(){return ad};var ud=function(t,e){this._geom=new Array(2).fill(null),this._snapTolerance=null,this._cbr=null,this._geom[0]=t,this._geom[1]=e,this.computeSnapTolerance()};ud.prototype.selfSnap=function(t){return new td(t).snapTo(t,this._snapTolerance)},ud.prototype.removeCommonBits=function(t){this._cbr=new id,this._cbr.add(t[0]),this._cbr.add(t[1]);var e=new Array(2).fill(null);return e[0]=this._cbr.removeCommonBits(t[0].copy()),e[1]=this._cbr.removeCommonBits(t[1].copy()),e},ud.prototype.prepareResult=function(t){return this._cbr.addCommonBits(t),t},ud.prototype.getResultGeometry=function(t){var e=this.snap(this._geom),n=Td.overlayOp(e[0],e[1],t);return this.prepareResult(n)},ud.prototype.checkValid=function(t){t.isValid()||Rc.out.println("Snapped geometry is invalid")},ud.prototype.computeSnapTolerance=function(){this._snapTolerance=td.computeOverlaySnapTolerance(this._geom[0],this._geom[1])},ud.prototype.snap=function(t){var e=this.removeCommonBits(t);return td.snap(e[0],e[1],this._snapTolerance)},ud.prototype.interfaces_=function(){return[]},ud.prototype.getClass=function(){return ud},ud.overlayOp=function(t,e,n){return new ud(t,e).getResultGeometry(n)},ud.union=function(t,e){return ud.overlayOp(t,e,Td.UNION)},ud.intersection=function(t,e){return ud.overlayOp(t,e,Td.INTERSECTION)},ud.symDifference=function(t,e){return ud.overlayOp(t,e,Td.SYMDIFFERENCE)},ud.difference=function(t,e){return ud.overlayOp(t,e,Td.DIFFERENCE)};var cd=function(t,e){this._geom=new Array(2).fill(null),this._geom[0]=t,this._geom[1]=e};cd.prototype.getResultGeometry=function(t){var e=null,n=!1,r=null;try{e=Td.overlayOp(this._geom[0],this._geom[1],t),n=!0}catch(t){if(!(t instanceof kc))throw t;r=t}if(!n)try{e=ud.overlayOp(this._geom[0],this._geom[1],t)}catch(t){throw t instanceof kc?r:t}return e},cd.prototype.interfaces_=function(){return[]},cd.prototype.getClass=function(){return cd},cd.overlayOp=function(t,e,n){return new cd(t,e).getResultGeometry(n)},cd.union=function(t,e){return cd.overlayOp(t,e,Td.UNION)},cd.intersection=function(t,e){return cd.overlayOp(t,e,Td.INTERSECTION)},cd.symDifference=function(t,e){return cd.overlayOp(t,e,Td.SYMDIFFERENCE)},cd.difference=function(t,e){return cd.overlayOp(t,e,Td.DIFFERENCE)};var ld=function(){this.mce=null,this.chainIndex=null;var t=arguments[0],e=arguments[1];this.mce=t,this.chainIndex=e};ld.prototype.computeIntersections=function(t,e){this.mce.computeIntersectsForChain(this.chainIndex,t.mce,t.chainIndex,e)},ld.prototype.interfaces_=function(){return[]},ld.prototype.getClass=function(){return ld};var hd=function t(){if(this._label=null,this._xValue=null,this._eventType=null,this._insertEvent=null,this._deleteEventIndex=null,this._obj=null,2===arguments.length){var e=arguments[0],n=arguments[1];this._eventType=t.DELETE,this._xValue=e,this._insertEvent=n}else if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];this._eventType=t.INSERT,this._label=r,this._xValue=i,this._obj=o}},fd={INSERT:{configurable:!0},DELETE:{configurable:!0}};hd.prototype.isDelete=function(){return this._eventType===hd.DELETE},hd.prototype.setDeleteEventIndex=function(t){this._deleteEventIndex=t},hd.prototype.getObject=function(){return this._obj},hd.prototype.compareTo=function(t){var e=t;return this._xValue<e._xValue?-1:this._xValue>e._xValue?1:this._eventType<e._eventType?-1:this._eventType>e._eventType?1:0},hd.prototype.getInsertEvent=function(){return this._insertEvent},hd.prototype.isInsert=function(){return this._eventType===hd.INSERT},hd.prototype.isSameLabel=function(t){return null!==this._label&&this._label===t._label},hd.prototype.getDeleteEventIndex=function(){return this._deleteEventIndex},hd.prototype.interfaces_=function(){return[oc]},hd.prototype.getClass=function(){return hd},fd.INSERT.get=function(){return 1},fd.DELETE.get=function(){return 2},Object.defineProperties(hd,fd);var pd=function(){};pd.prototype.interfaces_=function(){return[]},pd.prototype.getClass=function(){return pd};var dd=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._properIntersectionPoint=null,this._li=null,this._includeProper=null,this._recordIsolated=null,this._isSelfIntersection=null,this._numIntersections=0,this.numTests=0,this._bdyNodes=null,this._isDone=!1,this._isDoneWhenProperInt=!1;var t=arguments[0],e=arguments[1],n=arguments[2];this._li=t,this._includeProper=e,this._recordIsolated=n};dd.prototype.isTrivialIntersection=function(t,e,n,r){if(t===n&&1===this._li.getIntersectionNum()){if(dd.isAdjacentSegments(e,r))return!0;if(t.isClosed()){var i=t.getNumPoints()-1;if(0===e&&r===i||0===r&&e===i)return!0}}return!1},dd.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},dd.prototype.setIsDoneIfProperInt=function(t){this._isDoneWhenProperInt=t},dd.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},dd.prototype.isBoundaryPointInternal=function(t,e){for(var n=e.iterator();n.hasNext();){var r=n.next().getCoordinate();if(t.isIntersection(r))return!0}return!1},dd.prototype.hasProperIntersection=function(){return this._hasProper},dd.prototype.hasIntersection=function(){return this._hasIntersection},dd.prototype.isDone=function(){return this._isDone},dd.prototype.isBoundaryPoint=function(t,e){return null!==e&&(!!this.isBoundaryPointInternal(t,e[0])||!!this.isBoundaryPointInternal(t,e[1]))},dd.prototype.setBoundaryNodes=function(t,e){this._bdyNodes=new Array(2).fill(null),this._bdyNodes[0]=t,this._bdyNodes[1]=e},dd.prototype.addIntersections=function(t,e,n,r){if(t===n&&e===r)return null;this.numTests++;var i=t.getCoordinates()[e],o=t.getCoordinates()[e+1],s=n.getCoordinates()[r],a=n.getCoordinates()[r+1];this._li.computeIntersection(i,o,s,a),this._li.hasIntersection()&&(this._recordIsolated&&(t.setIsolated(!1),n.setIsolated(!1)),this._numIntersections++,this.isTrivialIntersection(t,e,n,r)||(this._hasIntersection=!0,!this._includeProper&&this._li.isProper()||(t.addIntersections(this._li,e,0),n.addIntersections(this._li,r,1)),this._li.isProper()&&(this._properIntersectionPoint=this._li.getIntersection(0).copy(),this._hasProper=!0,this._isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this._li,this._bdyNodes)||(this._hasProperInterior=!0))))},dd.prototype.interfaces_=function(){return[]},dd.prototype.getClass=function(){return dd},dd.isAdjacentSegments=function(t,e){return 1===Math.abs(t-e)};var gd=function(t){function e(){t.call(this),this.events=new ll,this.nOverlaps=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.prepareEvents=function(){rf.sort(this.events);for(var t=0;t<this.events.size();t++){var e=this.events.get(t);e.isDelete()&&e.getInsertEvent().setDeleteEventIndex(t)}},e.prototype.computeIntersections=function(){var t=this;if(1===arguments.length){var e=arguments[0];this.nOverlaps=0,this.prepareEvents();for(var n=0;n<this.events.size();n++){var r=t.events.get(n);if(r.isInsert()&&t.processOverlaps(n,r.getDeleteEventIndex(),r,e),e.isDone())break}}else if(3===arguments.length)if(arguments[2]instanceof dd&&gc(arguments[0],ul)&&gc(arguments[1],ul)){var i=arguments[0],o=arguments[1],s=arguments[2];this.addEdges(i,i),this.addEdges(o,o),this.computeIntersections(s)}else if("boolean"==typeof arguments[2]&&gc(arguments[0],ul)&&arguments[1]instanceof dd){var a=arguments[0],u=arguments[1],c=arguments[2];c?this.addEdges(a,null):this.addEdges(a),this.computeIntersections(u)}},e.prototype.addEdge=function(t,e){for(var n=t.getMonotoneChainEdge(),r=n.getStartIndexes(),i=0;i<r.length-1;i++){var o=new ld(n,i),s=new hd(e,n.getMinX(i),o);this.events.add(s),this.events.add(new hd(n.getMaxX(i),s))}},e.prototype.processOverlaps=function(t,e,n,r){for(var i=n.getObject(),o=t;o<e;o++){var s=this.events.get(o);if(s.isInsert()){var a=s.getObject();n.isSameLabel(s)||(i.computeIntersections(a,r),this.nOverlaps++)}}},e.prototype.addEdges=function(){var t=this;if(1===arguments.length)for(var e=arguments[0],n=e.iterator();n.hasNext();){var r=n.next();t.addEdge(r,r)}else if(2===arguments.length)for(var i=arguments[0],o=arguments[1],s=i.iterator();s.hasNext();){var a=s.next();t.addEdge(a,o)}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(pd),yd=function(){this._min=rc.POSITIVE_INFINITY,this._max=rc.NEGATIVE_INFINITY},vd={NodeComparator:{configurable:!0}};yd.prototype.getMin=function(){return this._min},yd.prototype.intersects=function(t,e){return!(this._min>e||this._max<t)},yd.prototype.getMax=function(){return this._max},yd.prototype.toString=function(){return Dc.toLineString(new cc(this._min,0),new cc(this._max,0))},yd.prototype.interfaces_=function(){return[]},yd.prototype.getClass=function(){return yd},vd.NodeComparator.get=function(){return _d},Object.defineProperties(yd,vd);var _d=function(){};_d.prototype.compare=function(t,e){var n=t,r=e,i=(n._min+n._max)/2,o=(r._min+r._max)/2;return i<o?-1:i>o?1:0},_d.prototype.interfaces_=function(){return[ac]},_d.prototype.getClass=function(){return _d};var md=function(t){function e(){t.call(this),this._item=null;var e=arguments[0],n=arguments[1],r=arguments[2];this._min=e,this._max=n,this._item=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.query=function(t,e,n){if(!this.intersects(t,e))return null;n.visitItem(this._item)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(yd),bd=function(t){function e(){t.call(this),this._node1=null,this._node2=null;var e=arguments[0],n=arguments[1];this._node1=e,this._node2=n,this.buildExtent(this._node1,this._node2)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.buildExtent=function(t,e){this._min=Math.min(t._min,e._min),this._max=Math.max(t._max,e._max)},e.prototype.query=function(t,e,n){if(!this.intersects(t,e))return null;null!==this._node1&&this._node1.query(t,e,n),null!==this._node2&&this._node2.query(t,e,n)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(yd),Ed=function(){this._leaves=new ll,this._root=null,this._level=0};Ed.prototype.buildTree=function(){rf.sort(this._leaves,new yd.NodeComparator);for(var t=this._leaves,e=null,n=new ll;;){if(this.buildLevel(t,n),1===n.size())return n.get(0);e=t,t=n,n=e}},Ed.prototype.insert=function(t,e,n){if(null!==this._root)throw new Error("Index cannot be added to once it has been queried");this._leaves.add(new md(t,e,n))},Ed.prototype.query=function(t,e,n){this.init(),this._root.query(t,e,n)},Ed.prototype.buildRoot=function(){if(null!==this._root)return null;this._root=this.buildTree()},Ed.prototype.printNode=function(t){Rc.out.println(Dc.toLineString(new cc(t._min,this._level),new cc(t._max,this._level)))},Ed.prototype.init=function(){if(null!==this._root)return null;this.buildRoot()},Ed.prototype.buildLevel=function(t,e){this._level++,e.clear();for(var n=0;n<t.size();n+=2){var r=t.get(n);if(null===(n+1<t.size()?t.get(n):null))e.add(r);else{var i=new bd(t.get(n),t.get(n+1));e.add(i)}}},Ed.prototype.interfaces_=function(){return[]},Ed.prototype.getClass=function(){return Ed};var wd=function(){this._items=new ll};wd.prototype.visitItem=function(t){this._items.add(t)},wd.prototype.getItems=function(){return this._items},wd.prototype.interfaces_=function(){return[$h]},wd.prototype.getClass=function(){return wd};var xd=function(){this._index=null;var t=arguments[0];if(!gc(t,th))throw new nc("Argument must be Polygonal");this._index=new Cd(t)},Od={SegmentVisitor:{configurable:!0},IntervalIndexedGeometry:{configurable:!0}};xd.prototype.locate=function(t){var e=new Vc(t),n=new Sd(e);return this._index.query(t.y,t.y,n),e.getLocation()},xd.prototype.interfaces_=function(){return[Xf]},xd.prototype.getClass=function(){return xd},Od.SegmentVisitor.get=function(){return Sd},Od.IntervalIndexedGeometry.get=function(){return Cd},Object.defineProperties(xd,Od);var Sd=function(){this._counter=null;var t=arguments[0];this._counter=t};Sd.prototype.visitItem=function(t){var e=t;this._counter.countSegment(e.getCoordinate(0),e.getCoordinate(1))},Sd.prototype.interfaces_=function(){return[$h]},Sd.prototype.getClass=function(){return Sd};var Cd=function(){this._index=new Ed;var t=arguments[0];this.init(t)};Cd.prototype.init=function(t){for(var e=Pp.getLines(t).iterator();e.hasNext();){var n=e.next().getCoordinates();this.addLine(n)}},Cd.prototype.addLine=function(t){for(var e=1;e<t.length;e++){var n=new mf(t[e-1],t[e]),r=Math.min(n.p0.y,n.p1.y),i=Math.max(n.p0.y,n.p1.y);this._index.insert(r,i,n)}},Cd.prototype.query=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=new wd;return this._index.query(t,e,n),n.getItems()}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];this._index.query(r,i,o)}},Cd.prototype.interfaces_=function(){return[]},Cd.prototype.getClass=function(){return Cd};var Id=function(t){function e(){if(t.call(this),this._parentGeom=null,this._lineEdgeMap=new dh,this._boundaryNodeRule=null,this._useBoundaryDeterminationRule=!0,this._argIndex=null,this._boundaryNodes=null,this._hasTooFewPoints=!1,this._invalidPoint=null,this._areaPtLocator=null,this._ptLocator=new Rp,2===arguments.length){var e=arguments[0],n=arguments[1],r=$c.OGC_SFS_BOUNDARY_RULE;this._argIndex=e,this._parentGeom=n,this._boundaryNodeRule=r,null!==n&&this.add(n)}else if(3===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2];this._argIndex=i,this._parentGeom=o,this._boundaryNodeRule=s,null!==o&&this.add(o)}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.insertBoundaryPoint=function(t,n){var r=this._nodes.addNode(n).getLabel(),i=1;r.getLocation(t,Ih.ON)===pc.BOUNDARY&&i++;var o=e.determineBoundary(this._boundaryNodeRule,i);r.setLocation(t,o)},e.prototype.computeSelfNodes=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return this.computeSelfNodes(t,e,!1)}if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],o=new dd(n,!0,!1);o.setIsDoneIfProperInt(i);var s=this.createEdgeSetIntersector(),a=this._parentGeom instanceof rh||this._parentGeom instanceof eh||this._parentGeom instanceof ih,u=r||!a;return s.computeIntersections(this._edges,o,u),this.addSelfIntersectionNodes(this._argIndex),o}},e.prototype.computeSplitEdges=function(t){for(var e=this._edges.iterator();e.hasNext();)e.next().eiList.addSplitEdges(t)},e.prototype.computeEdgeIntersections=function(t,e,n){var r=new dd(e,n,!0);return r.setBoundaryNodes(this.getBoundaryNodes(),t.getBoundaryNodes()),this.createEdgeSetIntersector().computeIntersections(this._edges,t._edges,r),r},e.prototype.getGeometry=function(){return this._parentGeom},e.prototype.getBoundaryNodeRule=function(){return this._boundaryNodeRule},e.prototype.hasTooFewPoints=function(){return this._hasTooFewPoints},e.prototype.addPoint=function(){if(arguments[0]instanceof $l){var t=arguments[0],e=t.getCoordinate();this.insertPoint(this._argIndex,e,pc.INTERIOR)}else if(arguments[0]instanceof cc){var n=arguments[0];this.insertPoint(this._argIndex,n,pc.INTERIOR)}},e.prototype.addPolygon=function(t){this.addPolygonRing(t.getExteriorRing(),pc.EXTERIOR,pc.INTERIOR);for(var e=0;e<t.getNumInteriorRing();e++){var n=t.getInteriorRingN(e);this.addPolygonRing(n,pc.INTERIOR,pc.EXTERIOR)}},e.prototype.addEdge=function(t){this.insertEdge(t);var e=t.getCoordinates();this.insertPoint(this._argIndex,e[0],pc.BOUNDARY),this.insertPoint(this._argIndex,e[e.length-1],pc.BOUNDARY)},e.prototype.addLineString=function(t){var e=pl.removeRepeatedPoints(t.getCoordinates());if(e.length<2)return this._hasTooFewPoints=!0,this._invalidPoint=e[0],null;var n=new sp(e,new jh(this._argIndex,pc.INTERIOR));this._lineEdgeMap.put(t,n),this.insertEdge(n),Bc.isTrue(e.length>=2,"found LineString with single point"),this.insertBoundaryPoint(this._argIndex,e[0]),this.insertBoundaryPoint(this._argIndex,e[e.length-1])},e.prototype.getInvalidPoint=function(){return this._invalidPoint},e.prototype.getBoundaryPoints=function(){for(var t=this.getBoundaryNodes(),e=new Array(t.size()).fill(null),n=0,r=t.iterator();r.hasNext();){var i=r.next();e[n++]=i.getCoordinate().copy()}return e},e.prototype.getBoundaryNodes=function(){return null===this._boundaryNodes&&(this._boundaryNodes=this._nodes.getBoundaryNodes(this._argIndex)),this._boundaryNodes},e.prototype.addSelfIntersectionNode=function(t,e,n){if(this.isBoundaryNode(t,e))return null;n===pc.BOUNDARY&&this._useBoundaryDeterminationRule?this.insertBoundaryPoint(t,e):this.insertPoint(t,e,n)},e.prototype.addPolygonRing=function(t,e,n){if(t.isEmpty())return null;var r=pl.removeRepeatedPoints(t.getCoordinates());if(r.length<4)return this._hasTooFewPoints=!0,this._invalidPoint=r[0],null;var i=e,o=n;qc.isCCW(r)&&(i=n,o=e);var s=new sp(r,new jh(this._argIndex,pc.BOUNDARY,i,o));this._lineEdgeMap.put(t,s),this.insertEdge(s),this.insertPoint(this._argIndex,r[0],pc.BOUNDARY)},e.prototype.insertPoint=function(t,e,n){var r=this._nodes.addNode(e),i=r.getLabel();null===i?r._label=new jh(t,n):i.setLocation(t,n)},e.prototype.createEdgeSetIntersector=function(){return new gd},e.prototype.addSelfIntersectionNodes=function(t){for(var e=this._edges.iterator();e.hasNext();)for(var n=e.next(),r=n.getLabel().getLocation(t),i=n.eiList.iterator();i.hasNext();){var o=i.next();this.addSelfIntersectionNode(t,o.coord,r)}},e.prototype.add=function(){if(1!==arguments.length)return t.prototype.add.apply(this,arguments);var e=arguments[0];if(e.isEmpty())return null;if(e instanceof ih&&(this._useBoundaryDeterminationRule=!1),e instanceof eh)this.addPolygon(e);else if(e instanceof Jl)this.addLineString(e);else if(e instanceof $l)this.addPoint(e);else if(e instanceof nh)this.addCollection(e);else if(e instanceof Gl)this.addCollection(e);else if(e instanceof ih)this.addCollection(e);else{if(!(e instanceof kl))throw new Error(e.getClass().getName());this.addCollection(e)}},e.prototype.addCollection=function(t){for(var e=0;e<t.getNumGeometries();e++){var n=t.getGeometryN(e);this.add(n)}},e.prototype.locate=function(t){return gc(this._parentGeom,th)&&this._parentGeom.getNumGeometries()>50?(null===this._areaPtLocator&&(this._areaPtLocator=new xd(this._parentGeom)),this._areaPtLocator.locate(t)):this._ptLocator.locate(t,this._parentGeom)},e.prototype.findEdge=function(){if(1===arguments.length){var e=arguments[0];return this._lineEdgeMap.get(e)}return t.prototype.findEdge.apply(this,arguments)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.determineBoundary=function(t,e){return t.isInBoundary(e)?pc.BOUNDARY:pc.INTERIOR},e}(Hh),Pd=function(){if(this._li=new Yc,this._resultPrecisionModel=null,this._arg=null,1===arguments.length){var t=arguments[0];this.setComputationPrecision(t.getPrecisionModel()),this._arg=new Array(1).fill(null),this._arg[0]=new Id(0,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],r=$c.OGC_SFS_BOUNDARY_RULE;e.getPrecisionModel().compareTo(n.getPrecisionModel())>=0?this.setComputationPrecision(e.getPrecisionModel()):this.setComputationPrecision(n.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new Id(0,e,r),this._arg[1]=new Id(1,n,r)}else if(3===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2];i.getPrecisionModel().compareTo(o.getPrecisionModel())>=0?this.setComputationPrecision(i.getPrecisionModel()):this.setComputationPrecision(o.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new Id(0,i,s),this._arg[1]=new Id(1,o,s)}};Pd.prototype.getArgGeometry=function(t){return this._arg[t].getGeometry()},Pd.prototype.setComputationPrecision=function(t){this._resultPrecisionModel=t,this._li.setPrecisionModel(this._resultPrecisionModel)},Pd.prototype.interfaces_=function(){return[]},Pd.prototype.getClass=function(){return Pd};var Rd=function(){};Rd.prototype.interfaces_=function(){return[]},Rd.prototype.getClass=function(){return Rd},Rd.map=function(){if(arguments[0]instanceof Zc&&gc(arguments[1],Rd.MapOp)){for(var t=arguments[0],e=arguments[1],n=new ll,r=0;r<t.getNumGeometries();r++){var i=e.map(t.getGeometryN(r));null!==i&&n.add(i)}return t.getFactory().buildGeometry(n)}if(gc(arguments[0],ol)&&gc(arguments[1],Rd.MapOp)){for(var o=arguments[0],s=arguments[1],a=new ll,u=o.iterator();u.hasNext();){var c=u.next(),l=s.map(c);null!==l&&a.add(l)}return a}},Rd.MapOp=function(){};var Td=function(t){function e(){var e=arguments[0],n=arguments[1];t.call(this,e,n),this._ptLocator=new Rp,this._geomFact=null,this._resultGeom=null,this._graph=null,this._edgeList=new Jf,this._resultPolyList=new ll,this._resultLineList=new ll,this._resultPointList=new ll,this._graph=new Hh(new Zf),this._geomFact=e.getFactory()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.insertUniqueEdge=function(t){var e=this._edgeList.findEqualEdge(t);if(null!==e){var n=e.getLabel(),r=t.getLabel();e.isPointwiseEqual(t)||(r=new jh(t.getLabel())).flip();var i=e.getDepth();i.isNull()&&i.add(n),i.add(r),n.merge(r)}else this._edgeList.add(t)},e.prototype.getGraph=function(){return this._graph},e.prototype.cancelDuplicateResultEdges=function(){for(var t=this._graph.getEdgeEnds().iterator();t.hasNext();){var e=t.next(),n=e.getSym();e.isInResult()&&n.isInResult()&&(e.setInResult(!1),n.setInResult(!1))}},e.prototype.isCoveredByLA=function(t){return!!this.isCovered(t,this._resultLineList)||!!this.isCovered(t,this._resultPolyList)},e.prototype.computeGeometry=function(t,n,r,i){var o=new ll;return o.addAll(t),o.addAll(n),o.addAll(r),o.isEmpty()?e.createEmptyResult(i,this._arg[0].getGeometry(),this._arg[1].getGeometry(),this._geomFact):this._geomFact.buildGeometry(o)},e.prototype.mergeSymLabels=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();)t.next().getEdges().mergeSymLabels()},e.prototype.isCovered=function(t,e){for(var n=e.iterator();n.hasNext();){var r=n.next();if(this._ptLocator.locate(t,r)!==pc.EXTERIOR)return!0}return!1},e.prototype.replaceCollapsedEdges=function(){for(var t=new ll,e=this._edgeList.iterator();e.hasNext();){var n=e.next();n.isCollapsed()&&(e.remove(),t.add(n.getCollapsedEdge()))}this._edgeList.addAll(t)},e.prototype.updateNodeLabelling=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();){var e=t.next(),n=e.getEdges().getLabel();e.getLabel().merge(n)}},e.prototype.getResultGeometry=function(t){return this.computeOverlay(t),this._resultGeom},e.prototype.insertUniqueEdges=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this.insertUniqueEdge(n)}},e.prototype.computeOverlay=function(t){this.copyPoints(0),this.copyPoints(1),this._arg[0].computeSelfNodes(this._li,!1),this._arg[1].computeSelfNodes(this._li,!1),this._arg[0].computeEdgeIntersections(this._arg[1],this._li,!0);var e=new ll;this._arg[0].computeSplitEdges(e),this._arg[1].computeSplitEdges(e),this.insertUniqueEdges(e),this.computeLabelsFromDepths(),this.replaceCollapsedEdges(),Hp.checkValid(this._edgeList.getEdges()),this._graph.addEdges(this._edgeList.getEdges()),this.computeLabelling(),this.labelIncompleteNodes(),this.findResultAreaEdges(t),this.cancelDuplicateResultEdges();var n=new Zh(this._geomFact);n.add(this._graph),this._resultPolyList=n.getPolygons();var r=new Kp(this,this._geomFact,this._ptLocator);this._resultLineList=r.build(t);var i=new Jp(this,this._geomFact,this._ptLocator);this._resultPointList=i.build(t),this._resultGeom=this.computeGeometry(this._resultPointList,this._resultLineList,this._resultPolyList,t)},e.prototype.labelIncompleteNode=function(t,e){var n=this._ptLocator.locate(t.getCoordinate(),this._arg[e].getGeometry());t.getLabel().setLocation(e,n)},e.prototype.copyPoints=function(t){for(var e=this._arg[t].getNodeIterator();e.hasNext();){var n=e.next();this._graph.addNode(n.getCoordinate()).setLabel(t,n.getLabel().getLocation(t))}},e.prototype.findResultAreaEdges=function(t){for(var n=this._graph.getEdgeEnds().iterator();n.hasNext();){var r=n.next(),i=r.getLabel();i.isArea()&&!r.isInteriorAreaEdge()&&e.isResultOfOp(i.getLocation(0,Ih.RIGHT),i.getLocation(1,Ih.RIGHT),t)&&r.setInResult(!0)}},e.prototype.computeLabelsFromDepths=function(){for(var t=this._edgeList.iterator();t.hasNext();){var e=t.next(),n=e.getLabel(),r=e.getDepth();if(!r.isNull()){r.normalize();for(var i=0;i<2;i++)n.isNull(i)||!n.isArea()||r.isNull(i)||(0===r.getDelta(i)?n.toLine(i):(Bc.isTrue(!r.isNull(i,Ih.LEFT),"depth of LEFT side has not been initialized"),n.setLocation(i,Ih.LEFT,r.getLocation(i,Ih.LEFT)),Bc.isTrue(!r.isNull(i,Ih.RIGHT),"depth of RIGHT side has not been initialized"),n.setLocation(i,Ih.RIGHT,r.getLocation(i,Ih.RIGHT))))}}},e.prototype.computeLabelling=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();)t.next().getEdges().computeLabelling(this._arg);this.mergeSymLabels(),this.updateNodeLabelling()},e.prototype.labelIncompleteNodes=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();){var e=t.next(),n=e.getLabel();e.isIsolated()&&(n.isNull(0)?this.labelIncompleteNode(e,0):this.labelIncompleteNode(e,1)),e.getEdges().updateLabelling(n)}},e.prototype.isCoveredByA=function(t){return!!this.isCovered(t,this._resultPolyList)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Pd);Td.overlayOp=function(t,e,n){return new Td(t,e).getResultGeometry(n)},Td.intersection=function(t,e){if(t.isEmpty()||e.isEmpty())return Td.createEmptyResult(Td.INTERSECTION,t,e,t.getFactory());if(t.isGeometryCollection()){var n=e;return Zp.map(t,{interfaces_:function(){return[Rd.MapOp]},map:function(t){return t.intersection(n)}})}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),cd.overlayOp(t,e,Td.INTERSECTION)},Td.symDifference=function(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return Td.createEmptyResult(Td.SYMDIFFERENCE,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),cd.overlayOp(t,e,Td.SYMDIFFERENCE)},Td.resultDimension=function(t,e,n){var r=e.getDimension(),i=n.getDimension(),o=-1;switch(t){case Td.INTERSECTION:o=Math.min(r,i);break;case Td.UNION:o=Math.max(r,i);break;case Td.DIFFERENCE:o=r;break;case Td.SYMDIFFERENCE:o=Math.max(r,i)}return o},Td.createEmptyResult=function(t,e,n,r){var i=null;switch(Td.resultDimension(t,e,n)){case-1:i=r.createGeometryCollection(new Array(0).fill(null));break;case 0:i=r.createPoint();break;case 1:i=r.createLineString();break;case 2:i=r.createPolygon()}return i},Td.difference=function(t,e){return t.isEmpty()?Td.createEmptyResult(Td.DIFFERENCE,t,e,t.getFactory()):e.isEmpty()?t.copy():(t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),cd.overlayOp(t,e,Td.DIFFERENCE))},Td.isResultOfOp=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=t.getLocation(0),r=t.getLocation(1);return Td.isResultOfOp(n,r,e)}if(3===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2];switch(i===pc.BOUNDARY&&(i=pc.INTERIOR),o===pc.BOUNDARY&&(o=pc.INTERIOR),s){case Td.INTERSECTION:return i===pc.INTERIOR&&o===pc.INTERIOR;case Td.UNION:return i===pc.INTERIOR||o===pc.INTERIOR;case Td.DIFFERENCE:return i===pc.INTERIOR&&o!==pc.INTERIOR;case Td.SYMDIFFERENCE:return i===pc.INTERIOR&&o!==pc.INTERIOR||i!==pc.INTERIOR&&o===pc.INTERIOR}return!1}},Td.INTERSECTION=1,Td.UNION=2,Td.DIFFERENCE=3,Td.SYMDIFFERENCE=4;var Ld=function(){this._g=null,this._boundaryDistanceTolerance=null,this._linework=null,this._ptLocator=new Rp,this._seg=new mf;var t=arguments[0],e=arguments[1];this._g=t,this._boundaryDistanceTolerance=e,this._linework=this.extractLinework(t)};Ld.prototype.isWithinToleranceOfBoundary=function(t){for(var e=this,n=0;n<this._linework.getNumGeometries();n++)for(var r=e._linework.getGeometryN(n).getCoordinateSequence(),i=0;i<r.size()-1;i++)if(r.getCoordinate(i,e._seg.p0),r.getCoordinate(i+1,e._seg.p1),e._seg.distance(t)<=e._boundaryDistanceTolerance)return!0;return!1},Ld.prototype.getLocation=function(t){return this.isWithinToleranceOfBoundary(t)?pc.BOUNDARY:this._ptLocator.locate(t,this._g)},Ld.prototype.extractLinework=function(t){var e=new Md;t.apply(e);var n=e.getLinework(),r=mh.toLineStringArray(n);return t.getFactory().createMultiLineString(r)},Ld.prototype.interfaces_=function(){return[]},Ld.prototype.getClass=function(){return Ld};var Md=function(){this._linework=null,this._linework=new ll};Md.prototype.getLinework=function(){return this._linework},Md.prototype.filter=function(t){if(t instanceof eh){var e=t;this._linework.add(e.getExteriorRing());for(var n=0;n<e.getNumInteriorRing();n++)this._linework.add(e.getInteriorRingN(n))}},Md.prototype.interfaces_=function(){return[jl]},Md.prototype.getClass=function(){return Md};var Nd=function(){this._g=null,this._doLeft=!0,this._doRight=!0;var t=arguments[0];this._g=t};Nd.prototype.extractPoints=function(t,e,n){for(var r=t.getCoordinates(),i=0;i<r.length-1;i++)this.computeOffsetPoints(r[i],r[i+1],e,n)},Nd.prototype.setSidesToGenerate=function(t,e){this._doLeft=t,this._doRight=e},Nd.prototype.getPoints=function(t){for(var e=new ll,n=Pp.getLines(this._g).iterator();n.hasNext();){var r=n.next();this.extractPoints(r,t,e)}return e},Nd.prototype.computeOffsetPoints=function(t,e,n,r){var i=e.x-t.x,o=e.y-t.y,s=Math.sqrt(i*i+o*o),a=n*i/s,u=n*o/s,c=(e.x+t.x)/2,l=(e.y+t.y)/2;if(this._doLeft){var h=new cc(c-u,l+a);r.add(h)}if(this._doRight){var f=new cc(c+u,l-a);r.add(f)}},Nd.prototype.interfaces_=function(){return[]},Nd.prototype.getClass=function(){return Nd};var Ad=function t(){this._geom=null,this._locFinder=null,this._location=new Array(3).fill(null),this._invalidLocation=null,this._boundaryDistanceTolerance=t.TOLERANCE,this._testCoords=new ll;var e=arguments[0],n=arguments[1],r=arguments[2];this._boundaryDistanceTolerance=t.computeBoundaryDistanceTolerance(e,n),this._geom=[e,n,r],this._locFinder=[new Ld(this._geom[0],this._boundaryDistanceTolerance),new Ld(this._geom[1],this._boundaryDistanceTolerance),new Ld(this._geom[2],this._boundaryDistanceTolerance)]},Fd={TOLERANCE:{configurable:!0}};Ad.prototype.reportResult=function(t,e,n){Rc.out.println("Overlay result invalid - A:"+pc.toLocationSymbol(e[0])+" B:"+pc.toLocationSymbol(e[1])+" expected:"+(n?"i":"e")+" actual:"+pc.toLocationSymbol(e[2]))},Ad.prototype.isValid=function(t){this.addTestPts(this._geom[0]),this.addTestPts(this._geom[1]);var e=this.checkValid(t);return e},Ad.prototype.checkValid=function(){var t=this;if(1===arguments.length){for(var e=arguments[0],n=0;n<this._testCoords.size();n++){var r=t._testCoords.get(n);if(!t.checkValid(e,r))return t._invalidLocation=r,!1}return!0}if(2===arguments.length){var i=arguments[0],o=arguments[1];return this._location[0]=this._locFinder[0].getLocation(o),this._location[1]=this._locFinder[1].getLocation(o),this._location[2]=this._locFinder[2].getLocation(o),!!Ad.hasLocation(this._location,pc.BOUNDARY)||this.isValidResult(i,this._location)}},Ad.prototype.addTestPts=function(t){var e=new Nd(t);this._testCoords.addAll(e.getPoints(5*this._boundaryDistanceTolerance))},Ad.prototype.isValidResult=function(t,e){var n=Td.isResultOfOp(e[0],e[1],t),r=!(n^e[2]===pc.INTERIOR);return r||this.reportResult(t,e,n),r},Ad.prototype.getInvalidLocation=function(){return this._invalidLocation},Ad.prototype.interfaces_=function(){return[]},Ad.prototype.getClass=function(){return Ad},Ad.hasLocation=function(t,e){for(var n=0;n<3;n++)if(t[n]===e)return!0;return!1},Ad.computeBoundaryDistanceTolerance=function(t,e){return Math.min(td.computeSizeBasedSnapTolerance(t),td.computeSizeBasedSnapTolerance(e))},Ad.isValid=function(t,e,n,r){return new Ad(t,e,r).isValid(n)},Fd.TOLERANCE.get=function(){return 1e-6},Object.defineProperties(Ad,Fd);var jd=function t(e){this._geomFactory=null,this._skipEmpty=!1,this._inputGeoms=null,this._geomFactory=t.extractFactory(e),this._inputGeoms=e};jd.prototype.extractElements=function(t,e){if(null===t)return null;for(var n=0;n<t.getNumGeometries();n++){var r=t.getGeometryN(n);this._skipEmpty&&r.isEmpty()||e.add(r)}},jd.prototype.combine=function(){for(var t=new ll,e=this._inputGeoms.iterator();e.hasNext();){var n=e.next();this.extractElements(n,t)}return 0===t.size()?null!==this._geomFactory?this._geomFactory.createGeometryCollection(null):null:this._geomFactory.buildGeometry(t)},jd.prototype.interfaces_=function(){return[]},jd.prototype.getClass=function(){return jd},jd.combine=function(){if(1===arguments.length){var t=arguments[0],e=new jd(t);return e.combine()}if(2===arguments.length){var n=arguments[0],r=arguments[1],i=new jd(jd.createList(n,r));return i.combine()}if(3===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2],u=new jd(jd.createList(o,s,a));return u.combine()}},jd.extractFactory=function(t){return t.isEmpty()?null:t.iterator().next().getFactory()},jd.createList=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=new ll;return n.add(t),n.add(e),n}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2],s=new ll;return s.add(r),s.add(i),s.add(o),s}};var Dd=function(){this._inputPolys=null,this._geomFactory=null;var t=arguments[0];this._inputPolys=t,null===this._inputPolys&&(this._inputPolys=new ll)},kd={STRTREE_NODE_CAPACITY:{configurable:!0}};Dd.prototype.reduceToGeometries=function(t){for(var e=new ll,n=t.iterator();n.hasNext();){var r=n.next(),i=null;gc(r,ul)?i=this.unionTree(r):r instanceof Zc&&(i=r),e.add(i)}return e},Dd.prototype.extractByEnvelope=function(t,e,n){for(var r=new ll,i=0;i<e.getNumGeometries();i++){var o=e.getGeometryN(i);o.getEnvelopeInternal().intersects(t)?r.add(o):n.add(o)}return this._geomFactory.buildGeometry(r)},Dd.prototype.unionOptimized=function(t,e){var n=t.getEnvelopeInternal(),r=e.getEnvelopeInternal();if(!n.intersects(r))return jd.combine(t,e);if(t.getNumGeometries()<=1&&e.getNumGeometries()<=1)return this.unionActual(t,e);var i=n.intersection(r);return this.unionUsingEnvelopeIntersection(t,e,i)},Dd.prototype.union=function(){if(null===this._inputPolys)throw new Error("union() method cannot be called twice");if(this._inputPolys.isEmpty())return null;this._geomFactory=this._inputPolys.iterator().next().getFactory();for(var t=new lf(Dd.STRTREE_NODE_CAPACITY),e=this._inputPolys.iterator();e.hasNext();){var n=e.next();t.insert(n.getEnvelopeInternal(),n)}this._inputPolys=null;var r=t.itemsTree();return this.unionTree(r)},Dd.prototype.binaryUnion=function(){if(1===arguments.length){var t=arguments[0];return this.binaryUnion(t,0,t.size())}if(3===arguments.length){var e=arguments[0],n=arguments[1],r=arguments[2];if(r-n<=1){var i=Dd.getGeometry(e,n);return this.unionSafe(i,null)}if(r-n==2)return this.unionSafe(Dd.getGeometry(e,n),Dd.getGeometry(e,n+1));var o=Math.trunc((r+n)/2),s=this.binaryUnion(e,n,o),a=this.binaryUnion(e,o,r);return this.unionSafe(s,a)}},Dd.prototype.repeatedUnion=function(t){for(var e=null,n=t.iterator();n.hasNext();){var r=n.next();e=null===e?r.copy():e.union(r)}return e},Dd.prototype.unionSafe=function(t,e){return null===t&&null===e?null:null===t?e.copy():null===e?t.copy():this.unionOptimized(t,e)},Dd.prototype.unionActual=function(t,e){return Dd.restrictToPolygons(t.union(e))},Dd.prototype.unionTree=function(t){var e=this.reduceToGeometries(t);return this.binaryUnion(e)},Dd.prototype.unionUsingEnvelopeIntersection=function(t,e,n){var r=new ll,i=this.extractByEnvelope(n,t,r),o=this.extractByEnvelope(n,e,r),s=this.unionActual(i,o);return r.add(s),jd.combine(r)},Dd.prototype.bufferUnion=function(){if(1===arguments.length){var t=arguments[0],e=t.get(0).getFactory(),n=e.buildGeometry(t),r=n.buffer(0);return r}if(2===arguments.length){var i=arguments[0],o=arguments[1],s=i.getFactory(),a=s.createGeometryCollection([i,o]),u=a.buffer(0);return u}},Dd.prototype.interfaces_=function(){return[]},Dd.prototype.getClass=function(){return Dd},Dd.restrictToPolygons=function(t){if(gc(t,th))return t;var e=Ip.getPolygons(t);return 1===e.size()?e.get(0):t.getFactory().createMultiPolygon(mh.toPolygonArray(e))},Dd.getGeometry=function(t,e){return e>=t.size()?null:t.get(e)},Dd.union=function(t){return new Dd(t).union()},kd.STRTREE_NODE_CAPACITY.get=function(){return 4},Object.defineProperties(Dd,kd);var Gd=function(){};function Bd(){return new Ud}function Ud(){this.reset()}Gd.prototype.interfaces_=function(){return[]},Gd.prototype.getClass=function(){return Gd},Gd.union=function(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return Td.createEmptyResult(Td.UNION,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),cd.overlayOp(t,e,Td.UNION)},Ud.prototype={constructor:Ud,reset:function(){this.s=this.t=0},add:function(t){Yd(zd,t,this.t),Yd(this,zd.s,this.s),this.s?this.t+=zd.t:this.s=zd.t},valueOf:function(){return this.s}};var zd=new Ud;function Yd(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}var Xd=1e-6,Vd=Math.PI,qd=Vd/2,Wd=Vd/4,Hd=2*Vd,Zd=180/Vd,Kd=Vd/180,Jd=Math.abs,Qd=Math.atan,$d=Math.atan2,tg=Math.cos,eg=Math.sin,ng=Math.sqrt;function rg(t){return t>1?0:t<-1?Vd:Math.acos(t)}function ig(t){return t>1?qd:t<-1?-qd:Math.asin(t)}function og(){}function sg(t,e){t&&lg.hasOwnProperty(t.type)&&lg[t.type](t,e)}var ag,ug,cg={Feature:function(t,e){sg(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)sg(n[r].geometry,e)}},lg={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){hg(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)hg(n[r],e,0)},Polygon:function(t,e){fg(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)fg(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)sg(n[r],e)}};function hg(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function fg(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)hg(t[n],e,1);e.polygonEnd()}function pg(t){return[$d(t[1],t[0]),ig(t[2])]}function dg(t){var e=t[0],n=t[1],r=tg(n);return[r*tg(e),r*eg(e),eg(n)]}function gg(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function yg(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function vg(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function _g(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function mg(t){var e=ng(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function bg(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}function Eg(t,e){return[t>Vd?t-Hd:t<-Vd?t+Hd:t,e]}function wg(t){return function(e,n){return[(e+=t)>Vd?e-Hd:e<-Vd?e+Hd:e,n]}}function xg(t){var e=wg(t);return e.invert=wg(-t),e}function Og(t,e){var n=tg(t),r=eg(t),i=tg(e),o=eg(e);function s(t,e){var s=tg(e),a=tg(t)*s,u=eg(t)*s,c=eg(e),l=c*n+a*r;return[$d(u*i-l*o,a*n-c*r),ig(l*i+u*o)]}return s.invert=function(t,e){var s=tg(e),a=tg(t)*s,u=eg(t)*s,c=eg(e),l=c*i-u*o;return[$d(u*i+c*o,a*n+l*r),ig(l*n-a*r)]},s}function Sg(t,e){(e=dg(e))[0]-=t,mg(e);var n=rg(-e[1]);return((-e[2]<0?-n:n)+Hd-Xd)%Hd}function Cg(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:og,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Ig(t,e){return Jd(t[0]-e[0])<Xd&&Jd(t[1]-e[1])<Xd}function Pg(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Rg(t,e,n,r,i){var o,s,a=[],u=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],s=t[e];if(Ig(r,s)){for(i.lineStart(),o=0;o<e;++o)i.point((r=t[o])[0],r[1]);i.lineEnd()}else a.push(n=new Pg(r,t,null,!0)),u.push(n.o=new Pg(r,null,n,!1)),a.push(n=new Pg(s,t,null,!1)),u.push(n.o=new Pg(s,null,n,!0))}})),a.length){for(u.sort(e),Tg(a),Tg(u),o=0,s=u.length;o<s;++o)u[o].e=n=!n;for(var c,l,h=a[0];;){for(var f=h,p=!0;f.v;)if((f=f.n)===h)return;c=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(p)for(o=0,s=c.length;o<s;++o)i.point((l=c[o])[0],l[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(p)for(c=f.p.z,o=c.length-1;o>=0;--o)i.point((l=c[o])[0],l[1]);else r(f.x,f.p.x,-1,i);f=f.p}c=(f=f.o).z,p=!p}while(!f.v);i.lineEnd()}}}function Tg(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function Lg(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Mg(t){for(var e,n,r,i=t.length,o=-1,s=0;++o<i;)s+=t[o].length;for(n=new Array(s);--i>=0;)for(e=(r=t[i]).length;--e>=0;)n[--s]=r[e];return n}Bd(),Bd(),Bd(),Eg.invert=Eg,1===(ag=Lg).length&&(ug=ag,ag=function(t,e){return Lg(ug(t),e)});var Ng=1e9,Ag=-Ng;function Fg(t,e,n,r){function i(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function o(i,o,a,c){var l=0,h=0;if(null==i||(l=s(i,a))!==(h=s(o,a))||u(i,o)<0^a>0)do{c.point(0===l||3===l?t:n,l>1?r:e)}while((l=(l+a+4)%4)!==h);else c.point(o[0],o[1])}function s(r,i){return Jd(r[0]-t)<Xd?i>0?0:3:Jd(r[0]-n)<Xd?i>0?2:1:Jd(r[1]-e)<Xd?i>0?1:0:i>0?3:2}function a(t,e){return u(t.x,e.x)}function u(t,e){var n=s(t,1),r=s(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(s){var u,c,l,h,f,p,d,g,y,v,_,m=s,b=Cg(),E={point:w,lineStart:function(){E.point=x,c&&c.push(l=[]),v=!0,y=!1,d=g=NaN},lineEnd:function(){u&&(x(h,f),p&&y&&b.rejoin(),u.push(b.result())),E.point=w,y&&m.lineEnd()},polygonStart:function(){m=b,u=[],c=[],_=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=c.length;n<i;++n)for(var o,s,a=c[n],u=1,l=a.length,h=a[0],f=h[0],p=h[1];u<l;++u)o=f,s=p,f=(h=a[u])[0],p=h[1],s<=r?p>r&&(f-o)*(r-s)>(p-s)*(t-o)&&++e:p<=r&&(f-o)*(r-s)<(p-s)*(t-o)&&--e;return e}(),n=_&&e,i=(u=Mg(u)).length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),o(null,null,1,s),s.lineEnd()),i&&Rg(u,a,e,o,s),s.polygonEnd()),m=s,u=c=l=null}};function w(t,e){i(t,e)&&m.point(t,e)}function x(o,s){var a=i(o,s);if(c&&l.push([o,s]),v)h=o,f=s,p=a,v=!1,a&&(m.lineStart(),m.point(o,s));else if(a&&y)m.point(o,s);else{var u=[d=Math.max(Ag,Math.min(Ng,d)),g=Math.max(Ag,Math.min(Ng,g))],b=[o=Math.max(Ag,Math.min(Ng,o)),s=Math.max(Ag,Math.min(Ng,s))];!function(t,e,n,r,i,o){var s,a=t[0],u=t[1],c=0,l=1,h=e[0]-a,f=e[1]-u;if(s=n-a,h||!(s>0)){if(s/=h,h<0){if(s<c)return;s<l&&(l=s)}else if(h>0){if(s>l)return;s>c&&(c=s)}if(s=i-a,h||!(s<0)){if(s/=h,h<0){if(s>l)return;s>c&&(c=s)}else if(h>0){if(s<c)return;s<l&&(l=s)}if(s=r-u,f||!(s>0)){if(s/=f,f<0){if(s<c)return;s<l&&(l=s)}else if(f>0){if(s>l)return;s>c&&(c=s)}if(s=o-u,f||!(s<0)){if(s/=f,f<0){if(s>l)return;s>c&&(c=s)}else if(f>0){if(s<c)return;s<l&&(l=s)}return c>0&&(t[0]=a+c*h,t[1]=u+c*f),l<1&&(e[0]=a+l*h,e[1]=u+l*f),!0}}}}}(u,b,t,e,n,r)?a&&(m.lineStart(),m.point(o,s),_=!1):(y||(m.lineStart(),m.point(u[0],u[1])),m.point(b[0],b[1]),a||m.lineEnd(),_=!1)}d=o,g=s,y=a}return E}}var jg=Bd();function Dg(t){return t}Bd(),Bd(),Bd();var kg=1/0,Gg=kg,Bg=-kg,Ug=Bg,zg={point:function(t,e){t<kg&&(kg=t),t>Bg&&(Bg=t),e<Gg&&(Gg=e),e>Ug&&(Ug=e)},lineStart:og,lineEnd:og,polygonStart:og,polygonEnd:og,result:function(){var t=[[kg,Gg],[Bg,Ug]];return Bg=Ug=-(Gg=kg=1/0),t}};function Yg(t,e,n,r){return function(i,o){var s,a,u,c=e(o),l=i.invert(r[0],r[1]),h=Cg(),f=e(h),p=!1,d={point:g,lineStart:v,lineEnd:_,polygonStart:function(){d.point=m,d.lineStart=b,d.lineEnd=E,a=[],s=[]},polygonEnd:function(){d.point=g,d.lineStart=v,d.lineEnd=_,a=Mg(a);var t=function(t,e){var n=e[0],r=e[1],i=[eg(n),-tg(n),0],o=0,s=0;jg.reset();for(var a=0,u=t.length;a<u;++a)if(l=(c=t[a]).length)for(var c,l,h=c[l-1],f=h[0],p=h[1]/2+Wd,d=eg(p),g=tg(p),y=0;y<l;++y,f=_,d=b,g=E,h=v){var v=c[y],_=v[0],m=v[1]/2+Wd,b=eg(m),E=tg(m),w=_-f,x=w>=0?1:-1,O=x*w,S=O>Vd,C=d*b;if(jg.add($d(C*x*eg(O),g*E+C*tg(O))),o+=S?w+x*Hd:w,S^f>=n^_>=n){var I=yg(dg(h),dg(v));mg(I);var P=yg(i,I);mg(P);var R=(S^w>=0?-1:1)*ig(P[2]);(r>R||r===R&&(I[0]||I[1]))&&(s+=S^w>=0?1:-1)}}return(o<-1e-6||o<Xd&&jg<-1e-6)^1&s}(s,l);a.length?(p||(o.polygonStart(),p=!0),Rg(a,Vg,t,n,o)):t&&(p||(o.polygonStart(),p=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),p&&(o.polygonEnd(),p=!1),a=s=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function g(e,n){var r=i(e,n);t(e=r[0],n=r[1])&&o.point(e,n)}function y(t,e){var n=i(t,e);c.point(n[0],n[1])}function v(){d.point=y,c.lineStart()}function _(){d.point=g,c.lineEnd()}function m(t,e){u.push([t,e]);var n=i(t,e);f.point(n[0],n[1])}function b(){f.lineStart(),u=[]}function E(){m(u[0][0],u[0][1]),f.lineEnd();var t,e,n,r,i=f.clean(),c=h.result(),l=c.length;if(u.pop(),s.push(u),u=null,l)if(1&i){if((e=(n=c[0]).length-1)>0){for(p||(o.polygonStart(),p=!0),o.lineStart(),t=0;t<e;++t)o.point((r=n[t])[0],r[1]);o.lineEnd()}}else l>1&&2&i&&c.push(c.pop().concat(c.shift())),a.push(c.filter(Xg))}return d}}function Xg(t){return t.length>1}function Vg(t,e){return((t=t.x)[0]<0?t[1]-qd-Xd:qd-t[1])-((e=e.x)[0]<0?e[1]-qd-Xd:qd-e[1])}Bd();var qg=Yg((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,s){var a=o>0?Vd:-Vd,u=Jd(o-n);Jd(u-Vd)<Xd?(t.point(n,r=(r+s)/2>0?qd:-qd),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(o,r),e=0):i!==a&&u>=Vd&&(Jd(n-i)<Xd&&(n-=i*Xd),Jd(o-a)<Xd&&(o-=a*Xd),r=function(t,e,n,r){var i,o,s=eg(t-n);return Jd(s)>Xd?Qd((eg(e)*(o=tg(r))*eg(n)-eg(r)*(i=tg(e))*eg(t))/(i*o*s)):(e+r)/2}(n,r,o,s),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),e=0),t.point(n=o,r=s),i=a},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*qd,r.point(-Vd,i),r.point(0,i),r.point(Vd,i),r.point(Vd,0),r.point(Vd,-i),r.point(0,-i),r.point(-Vd,-i),r.point(-Vd,0),r.point(-Vd,i);else if(Jd(t[0]-e[0])>Xd){var o=t[0]<e[0]?Vd:-Vd;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])}),[-Vd,-qd]);function Wg(t,e){var n=tg(t),r=n>0,i=Jd(n)>Xd;function o(t,e){return tg(t)*tg(e)>n}function s(t,e,r){var i=[1,0,0],o=yg(dg(t),dg(e)),s=gg(o,o),a=o[0],u=s-a*a;if(!u)return!r&&t;var c=n*s/u,l=-n*a/u,h=yg(i,o),f=_g(i,c);vg(f,_g(o,l));var p=h,d=gg(f,p),g=gg(p,p),y=d*d-g*(gg(f,f)-1);if(!(y<0)){var v=ng(y),_=_g(p,(-d-v)/g);if(vg(_,f),_=pg(_),!r)return _;var m,b=t[0],E=e[0],w=t[1],x=e[1];E<b&&(m=b,b=E,E=m);var O=E-b,S=Jd(O-Vd)<Xd;if(!S&&x<w&&(m=w,w=x,x=m),S||O<Xd?S?w+x>0^_[1]<(Jd(_[0]-b)<Xd?w:x):w<=_[1]&&_[1]<=x:O>Vd^(b<=_[0]&&_[0]<=E)){var C=_g(p,(-d+v)/g);return vg(C,f),[_,pg(C)]}}}function a(e,n){var i=r?t:Vd-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return Yg(o,(function(t){var e,n,u,c,l;return{lineStart:function(){c=u=!1,l=1},point:function(h,f){var p,d=[h,f],g=o(h,f),y=r?g?0:a(h,f):g?a(h+(h<0?Vd:-Vd),f):0;if(!e&&(c=u=g)&&t.lineStart(),g!==u&&(!(p=s(e,d))||Ig(e,p)||Ig(d,p))&&(d[0]+=Xd,d[1]+=Xd,g=o(d[0],d[1])),g!==u)l=0,g?(t.lineStart(),p=s(d,e),t.point(p[0],p[1])):(p=s(e,d),t.point(p[0],p[1]),t.lineEnd()),e=p;else if(i&&e&&r^g){var v;y&n||!(v=s(d,e,!0))||(l=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!g||e&&Ig(e,d)||t.point(d[0],d[1]),e=d,u=g,n=y},lineEnd:function(){u&&t.lineEnd(),e=null},clean:function(){return l|(c&&u)<<1}}}),(function(n,r,i,o){!function(t,e,n,r,i,o){if(n){var s=tg(e),a=eg(e),u=r*n;null==i?(i=e+r*Hd,o=e-u/2):(i=Sg(s,i),o=Sg(s,o),(r>0?i<o:i>o)&&(i+=r*Hd));for(var c,l=i;r>0?l>o:l<o;l-=u)c=pg([s,-a*tg(l),-a*eg(l)]),t.point(c[0],c[1])}}(o,t,e,i,n,r)}),r?[0,-t]:[-Vd,t-Vd])}function Hg(t){return function(e){var n=new Zg;for(var r in t)n[r]=t[r];return n.stream=e,n}}function Zg(){}function Kg(t,e,n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),function(t,e){t&&cg.hasOwnProperty(t.type)?cg[t.type](t,e):sg(t,e)}(n,t.stream(zg));var s=zg.result(),a=Math.min(r/(s[1][0]-s[0][0]),i/(s[1][1]-s[0][1])),u=+e[0][0]+(r-a*(s[1][0]+s[0][0]))/2,c=+e[0][1]+(i-a*(s[1][1]+s[0][1]))/2;return null!=o&&t.clipExtent(o),t.scale(150*a).translate([u,c])}Zg.prototype={constructor:Zg,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Jg=tg(30*Kd);function Qg(t,e){return+e?function(t,e){function n(r,i,o,s,a,u,c,l,h,f,p,d,g,y){var v=c-r,_=l-i,m=v*v+_*_;if(m>4*e&&g--){var b=s+f,E=a+p,w=u+d,x=ng(b*b+E*E+w*w),O=ig(w/=x),S=Jd(Jd(w)-1)<Xd||Jd(o-h)<Xd?(o+h)/2:$d(E,b),C=t(S,O),I=C[0],P=C[1],R=I-r,T=P-i,L=_*R-v*T;(L*L/m>e||Jd((v*R+_*T)/m-.5)>.3||s*f+a*p+u*d<Jg)&&(n(r,i,o,s,a,u,I,P,S,b/=x,E/=x,w,g,y),y.point(I,P),n(I,P,S,b,E,w,c,l,h,f,p,d,g,y))}}return function(e){var r,i,o,s,a,u,c,l,h,f,p,d,g={point:y,lineStart:v,lineEnd:m,polygonStart:function(){e.polygonStart(),g.lineStart=b},polygonEnd:function(){e.polygonEnd(),g.lineStart=v}};function y(n,r){n=t(n,r),e.point(n[0],n[1])}function v(){l=NaN,g.point=_,e.lineStart()}function _(r,i){var o=dg([r,i]),s=t(r,i);n(l,h,c,f,p,d,l=s[0],h=s[1],c=r,f=o[0],p=o[1],d=o[2],16,e),e.point(l,h)}function m(){g.point=y,e.lineEnd()}function b(){v(),g.point=E,g.lineEnd=w}function E(t,e){_(r=t,e),i=l,o=h,s=f,a=p,u=d,g.point=_}function w(){n(l,h,c,f,p,d,i,o,r,s,a,u,16,e),g.lineEnd=m,m()}return g}}(t,e):function(t){return Hg({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)}var $g=Hg({point:function(t,e){this.stream.point(t*Kd,e*Kd)}});function ty(t){return function(t){var e,n,r,i,o,s,a,u,c,l,h=150,f=480,p=250,d=0,g=0,y=0,v=0,_=0,m=null,b=qg,E=null,w=Dg,x=.5,O=Qg(I,x);function S(t){return[(t=o(t[0]*Kd,t[1]*Kd))[0]*h+n,r-t[1]*h]}function C(t){return(t=o.invert((t[0]-n)/h,(r-t[1])/h))&&[t[0]*Zd,t[1]*Zd]}function I(t,i){return[(t=e(t,i))[0]*h+n,r-t[1]*h]}function P(){o=bg(i=function(t,e,n){return(t%=Hd)?e||n?bg(xg(t),Og(e,n)):xg(t):e||n?Og(e,n):Eg}(y,v,_),e);var t=e(d,g);return n=f-t[0]*h,r=p+t[1]*h,R()}function R(){return c=l=null,S}return S.stream=function(t){return c&&l===t?c:c=$g(b(i,O(w(l=t))))},S.clipAngle=function(t){return arguments.length?(b=+t?Wg(m=t*Kd,6*Kd):(m=null,qg),R()):m*Zd},S.clipExtent=function(t){return arguments.length?(w=null==t?(E=s=a=u=null,Dg):Fg(E=+t[0][0],s=+t[0][1],a=+t[1][0],u=+t[1][1]),R()):null==E?null:[[E,s],[a,u]]},S.scale=function(t){return arguments.length?(h=+t,P()):h},S.translate=function(t){return arguments.length?(f=+t[0],p=+t[1],P()):[f,p]},S.center=function(t){return arguments.length?(d=t[0]%360*Kd,g=t[1]%360*Kd,P()):[d*Zd,g*Zd]},S.rotate=function(t){return arguments.length?(y=t[0]%360*Kd,v=t[1]%360*Kd,_=t.length>2?t[2]%360*Kd:0,P()):[y*Zd,v*Zd,_*Zd]},S.precision=function(t){return arguments.length?(O=Qg(I,x=t*t),R()):ng(x)},S.fitExtent=function(t,e){return Kg(S,t,e)},S.fitSize=function(t,e){return function(t,e,n){return Kg(t,[[0,0],e],n)}(S,t,e)},function(){return e=t.apply(this,arguments),S.invert=e.invert&&C,P()}}((function(){return t}))()}var ey=function(t){return function(e,n){var r=tg(e),i=tg(n),o=t(r*i);return[o*i*eg(e),o*eg(n)]}}((function(t){return(t=rg(t))&&t/eg(t)}));function ny(){return ty(ey).scale(79.4188).clipAngle(179.999)}function ry(t,e,r,i){var o=t.properties||{},a="Feature"===t.type?t.geometry:t;if("GeometryCollection"===a.type){var u=[];return B(t,(function(t){var n=ry(t,e,r,i);n&&u.push(n)})),d(u)}var c=function(t){var e=En(t).geometry.coordinates,r=[-e[0],-e[1]];return ny().rotate(r).scale(n)}(a),l={type:a.type,coordinates:oy(a.coordinates,c)},h=(new Sh).read(l),f=b(E(e,r),"meters"),p=mp.bufferOp(h,f,i);if(!iy((p=(new Ch).write(p)).coordinates))return s({type:p.type,coordinates:sy(p.coordinates,c)},o)}function iy(t){return Array.isArray(t[0])?iy(t[0]):isNaN(t[0])}function oy(t,e){return"object"!=typeof t[0]?e(t):t.map((function(t){return oy(t,e)}))}function sy(t,e){return"object"!=typeof t[0]?e.invert(t):t.map((function(t){return sy(t,e)}))}function ay(t,e,n){void 0===n&&(n={});var r=it(t),i=it(e),o=tc.intersection(r.coordinates,i.coordinates);return 0===o.length?null:1===o.length?l(o[0],n.properties):v(o,n.properties)}function uy(t,e,n){void 0===n&&(n={});var r=JSON.stringify(n.properties||{}),i=t[0],o=t[1],s=t[2],a=t[3],u=(o+a)/2,c=(i+s)/2,l=2*e/be([i,u],[s,u],n)*(s-i),h=2*e/be([c,o],[c,a],n)*(a-o),f=l/2,p=2*f,g=Math.sqrt(3)/2*h,y=s-i,v=a-o,_=3/4*p,m=g,b=(y-p)/(p-f/2),E=Math.floor(b),w=(E*_-f/2-y)/2-f/2+_/2,x=Math.floor((v-g)/g),O=(v-x*g)/2,S=x*g-v>g/2;S&&(O-=g/4);for(var C=[],I=[],P=0;P<6;P++){var R=2*Math.PI/6*P;C.push(Math.cos(R)),I.push(Math.sin(R))}for(var T=[],L=0;L<=E;L++)for(var M=0;M<=x;M++){var N=L%2==1;if((0!==M||!N)&&(0!==M||!S)){var A=L*_+i-w,F=M*m+o+O;if(N&&(F-=g/2),!0===n.triangles)ly([A,F],l/2,h/2,JSON.parse(r),C,I).forEach((function(t){n.mask?ay(n.mask,t)&&T.push(t):T.push(t)}));else{var j=cy([A,F],l/2,h/2,JSON.parse(r),C,I);n.mask?ay(n.mask,j)&&T.push(j):T.push(j)}}}return d(T)}function cy(t,e,n,r,i,o){for(var s=[],a=0;a<6;a++){var u=t[0]+e*i[a],c=t[1]+n*o[a];s.push([u,c])}return s.push(s[0].slice()),l([s],r)}function ly(t,e,n,r,i,o){for(var s=[],a=0;a<6;a++){var u=[];u.push(t),u.push([t[0]+e*i[a],t[1]+n*o[a]]),u.push([t[0]+e*i[(a+1)%6],t[1]+n*o[(a+1)%6]]),u.push(t),s.push(l([u],r))}return s}function hy(t){return v(t)}function fy(t){return l(t&&t.geometry.coordinates||[[[180,90],[-180,90],[-180,-90],[180,-90],[180,90]]])}function py(t,e,n){return void 0===n&&(n={}),function(t,e,n,r){void 0===r&&(r={});for(var i=[],o=t[0],s=t[1],a=t[2],u=t[3],c=e/be([o,s],[a,s],r)*(a-o),h=n/be([o,s],[o,u],r)*(u-s),f=a-o,p=u-s,g=Math.floor(f/c),y=Math.floor(p/h),v=(p-y*h)/2,_=o+(f-g*c)/2,m=0;m<g;m++){for(var b=s+v,E=0;E<y;E++){var w=l([[[_,b],[_,b+h],[_+c,b+h],[_+c,b],[_,b]]],r.properties);r.mask?Rs(r.mask,w)&&i.push(w):i.push(w),b+=h}_+=c}return d(i)}(t,e,e,n)}function dy(t,e,n){void 0===n&&(n={});for(var r=[],i=e/be([t[0],t[1]],[t[2],t[1]],n)*(t[2]-t[0]),o=e/be([t[0],t[1]],[t[0],t[3]],n)*(t[3]-t[1]),s=0,a=t[0];a<=t[2];){for(var u=0,c=t[1];c<=t[3];){var h=null,f=null;s%2==0&&u%2==0?(h=l([[[a,c],[a,c+o],[a+i,c],[a,c]]],n.properties),f=l([[[a,c+o],[a+i,c+o],[a+i,c],[a,c+o]]],n.properties)):s%2==0&&u%2==1?(h=l([[[a,c],[a+i,c+o],[a+i,c],[a,c]]],n.properties),f=l([[[a,c],[a,c+o],[a+i,c+o],[a,c]]],n.properties)):u%2==0&&s%2==1?(h=l([[[a,c],[a,c+o],[a+i,c+o],[a,c]]],n.properties),f=l([[[a,c],[a+i,c+o],[a+i,c],[a,c]]],n.properties)):u%2==1&&s%2==1&&(h=l([[[a,c],[a,c+o],[a+i,c],[a,c]]],n.properties),f=l([[[a,c+o],[a+i,c+o],[a+i,c],[a,c+o]]],n.properties)),n.mask?(ay(n.mask,h)&&r.push(h),ay(n.mask,f)&&r.push(f)):(r.push(h),r.push(f)),c+=o,u++}s++,a+=i}return d(r)}ey.invert=function(t){return function(e,n){var r=ng(e*e+n*n),i=t(r),o=eg(i),s=tg(i);return[$d(e*o,r*s),ig(r&&n*o/r)]}}((function(t){return t})),e.along=function(t,e,n){void 0===n&&(n={});for(var r=it(t).coordinates,i=0,o=0;o<r.length&&!(e>=i&&o===r.length-1);o++){if(i>=e){var s=e-i;if(s){var a=bn(r[o],r[o-1])-180;return _n(r[o],s,a,n)}return u(r[o])}i+=be(r[o],r[o+1],n)}return u(r[r.length-1])},e.angle=function(t,e,n,r){if(void 0===r&&(r={}),!R(r))throw new Error("options is invalid");if(!t)throw new Error("startPoint is required");if(!e)throw new Error("midPoint is required");if(!n)throw new Error("endPoint is required");var i=t,o=e,s=n,a=x(!0!==r.mercator?bn(i,o):Ui(i,o)),u=x(!0!==r.mercator?bn(s,o):Ui(s,o)),c=Math.abs(a-u);return!0===r.explementary?360-c:c},e.applyFilter=cu,e.area=Yr,e.areaFactors=o,e.bbox=J,e.bboxClip=function(t,e){var n=it(t),r=n.type,i="Feature"===t.type?t.properties:{},o=n.coordinates;switch(r){case"LineString":case"MultiLineString":var s=[];return"LineString"===r&&(o=[o]),o.forEach((function(t){!function(t,e,n){var r,i,o,s,a,u=t.length,c=Ni(t[0],e),l=[];for(n||(n=[]),r=1;r<u;r++){for(s=t[r-1],i=o=Ni(a=t[r],e);;){if(!(c|i)){l.push(s),i!==o?(l.push(a),r<u-1&&(n.push(l),l=[])):r===u-1&&l.push(a);break}if(c&i)break;c?c=Ni(s=Mi(s,a,c,e),e):i=Ni(a=Mi(s,a,i,e),e)}c=o}l.length&&n.push(l)}(t,e,s)})),1===s.length?f(s[0],i):g(s,i);case"Polygon":return l(Ai(o,e),i);case"MultiPolygon":return v(o.map((function(t){return Ai(t,e)})),i);default:throw new Error("geometry "+r+" not supported")}},e.bboxPolygon=gn,e.bearing=bn,e.bearingToAngle=x,e.bearingToAzimuth=x,e.bezier=dn,e.bezierSpline=dn,e.booleanClockwise=Wi,e.booleanContains=function(t,e){var n=it(t),r=it(e),i=n.type,o=r.type,s=n.coordinates,a=r.coordinates;switch(i){case"Point":switch(o){case"Point":return _s(s,a);default:throw new Error("feature2 "+o+" geometry not supported")}case"MultiPoint":switch(o){case"Point":return function(t,e){var n,r=!1;for(n=0;n<t.coordinates.length;n++)if(_s(t.coordinates[n],e.coordinates)){r=!0;break}return r}(n,r);case"MultiPoint":return function(t,e){for(var n=0,r=e.coordinates;n<r.length;n++){for(var i=r[n],o=!1,s=0,a=t.coordinates;s<a.length;s++)if(_s(i,a[s])){o=!0;break}if(!o)return!1}return!0}(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}case"LineString":switch(o){case"Point":return Zr(r,n,{ignoreEndVertices:!0});case"LineString":return function(t,e){for(var n=!1,r=0,i=e.coordinates;r<i.length;r++){var o=i[r];if(Zr({type:"Point",coordinates:o},t,{ignoreEndVertices:!0})&&(n=!0),!Zr({type:"Point",coordinates:o},t,{ignoreEndVertices:!1}))return!1}return n}(n,r);case"MultiPoint":return function(t,e){for(var n=!1,r=0,i=e.coordinates;r<i.length;r++){var o=i[r];if(Zr(o,t,{ignoreEndVertices:!0})&&(n=!0),!Zr(o,t))return!1}return!!n}(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}case"Polygon":switch(o){case"Point":return ve(r,n,{ignoreBoundary:!0});case"LineString":return function(t,e){var n=!1,r=0,i=J(t),o=J(e);if(!vs(i,o))return!1;for(;r<e.coordinates.length-1;r++)if(ve({type:"Point",coordinates:ms(e.coordinates[r],e.coordinates[r+1])},t,{ignoreBoundary:!0})){n=!0;break}return n}(n,r);case"Polygon":return function(t,e){if("Feature"===t.type&&null===t.geometry)return!1;if("Feature"===e.type&&null===e.geometry)return!1;var n=J(t),r=J(e);if(!vs(n,r))return!1;for(var i=it(e).coordinates,o=0,s=i;o<s.length;o++)for(var a=0,u=s[o];a<u.length;a++)if(!ve(u[a],t))return!1;return!0}(n,r);case"MultiPoint":return function(t,e){for(var n=0,r=e.coordinates;n<r.length;n++)if(!ve(r[n],t,{ignoreBoundary:!0}))return!1;return!0}(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}default:throw new Error("feature1 "+i+" geometry not supported")}},e.booleanCrosses=function(t,e){var n=it(t),r=it(e),i=n.type,o=r.type;switch(i){case"MultiPoint":switch(o){case"LineString":return bs(n,r);case"Polygon":return ws(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}case"LineString":switch(o){case"MultiPoint":return bs(r,n);case"LineString":return function(t,e){if(Mr(t,e).features.length>0)for(var n=0;n<t.coordinates.length-1;n++)for(var r=0;r<e.coordinates.length-1;r++){var i=!0;if(0!==r&&r!==e.coordinates.length-2||(i=!1),xs(t.coordinates[n],t.coordinates[n+1],e.coordinates[r],i))return!0}return!1}(n,r);case"Polygon":return Es(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}case"Polygon":switch(o){case"MultiPoint":return ws(r,n);case"LineString":return Es(r,n);default:throw new Error("feature2 "+o+" geometry not supported")}default:throw new Error("feature1 "+i+" geometry not supported")}},e.booleanDisjoint=ps,e.booleanEqual=function(t,e){return it(t).type===it(e).type&&new Ps({precision:6}).compare(en(t),en(e))},e.booleanIntersects=Rs,e.booleanOverlap=function(t,e){var n=it(t),r=it(e),i=n.type,o=r.type;if("MultiPoint"===i&&"MultiPoint"!==o||("LineString"===i||"MultiLineString"===i)&&"LineString"!==o&&"MultiLineString"!==o||("Polygon"===i||"MultiPolygon"===i)&&"Polygon"!==o&&"MultiPolygon"!==o)throw new Error("features must be of the same type");if("Point"===i)throw new Error("Point geometry not supported");if(new Ps({precision:6}).compare(t,e))return!1;var s=0;switch(i){case"MultiPoint":for(var a=0;a<n.coordinates.length;a++)for(var u=0;u<r.coordinates.length;u++){var c=n.coordinates[a],l=r.coordinates[u];if(c[0]===l[0]&&c[1]===l[1])return!0}return!1;case"LineString":case"MultiLineString":X(t,(function(t){X(e,(function(e){ki(t,e).features.length&&s++}))}));break;case"Polygon":case"MultiPolygon":X(t,(function(t){X(e,(function(e){Mr(t,e).features.length&&s++}))}))}return s>0},e.booleanParallel=function(t,e){if(!t)throw new Error("line1 is required");if(!e)throw new Error("line2 is required");if("LineString"!==Xs(t,"line1"))throw new Error("line1 must be a LineString");if("LineString"!==Xs(e,"line2"))throw new Error("line2 must be a LineString");for(var n=Jn(en(t)).features,r=Jn(en(e)).features,i=0;i<n.length;i++){var o=n[i].geometry.coordinates;if(!r[i])break;if(!Ys(o,r[i].geometry.coordinates))return!1}return!0},e.booleanPointInPolygon=ve,e.booleanPointOnLine=Zr,e.booleanWithin=Jr,e.buffer=function(t,e,n){var r=(n=n||{}).units||"kilometers",i=n.steps||8;if(!t)throw new Error("geojson is required");if("object"!=typeof n)throw new Error("options must be an object");if("number"!=typeof i)throw new Error("steps must be an number");if(void 0===e)throw new Error("radius is required");if(i<=0)throw new Error("steps must be greater than 0");var o=[];switch(t.type){case"GeometryCollection":return B(t,(function(t){var n=ry(t,e,r,i);n&&o.push(n)})),d(o);case"FeatureCollection":return D(t,(function(t){var n=ry(t,e,r,i);n&&D(n,(function(t){t&&o.push(t)}))})),d(o)}return ry(t,e,r,i)},e.center=En,e.centerMean=Da,e.centerMedian=function(t,e){if(void 0===e&&(e={}),!R(e=e||{}))throw new Error("options is invalid");var n=e.counter||10;if(!P(n))throw new Error("counter must be a number");var r=e.weight,i=Da(t,{weight:e.weight}),o=d([]);D(t,(function(t){var e;o.features.push(wn(t,{properties:{weight:null===(e=t.properties)||void 0===e?void 0:e[r]}}))}));var s={tolerance:e.tolerance,medianCandidates:[]};return ka(i.geometry.coordinates,[0,0],o,s,n)},e.centerOfMass=function t(e,n){switch(void 0===n&&(n={}),ot(e)){case"Point":return u(Q(e),n.properties);case"Polygon":var r=[];N(e,(function(t){r.push(t)}));var i,o,s,a,c,l,h,f,p=wn(e,{properties:n.properties}),d=p.geometry.coordinates,g=0,y=0,v=0,_=r.map((function(t){return[t[0]-d[0],t[1]-d[1]]}));for(i=0;i<r.length-1;i++)a=(o=_[i])[0],l=o[1],c=(s=_[i+1])[0],v+=f=a*(h=s[1])-c*l,g+=(a+c)*f,y+=(l+h)*f;if(0===v)return p;var m=1/(.5*v*6);return u([d[0]+m*g,d[1]+m*y],n.properties);default:var b=ye(e);return b?t(b,{properties:n.properties}):wn(e,{properties:n.properties})}},e.centroid=wn,e.circle=mn,e.cleanCoords=en,e.clone=Se,e.clusterEach=su,e.clusterReduce=au,e.clusters=fu,e.clustersDbscan=function(t,e,n){void 0===n&&(n={}),!0!==n.mutate&&(t=Se(t)),n.minPoints=n.minPoints||3;var r=new As.DBSCAN,i=r.run(G(t),C(e,n.units),n.minPoints,be),o=-1;return i.forEach((function(e){o++,e.forEach((function(e){var n=t.features[e];n.properties||(n.properties={}),n.properties.cluster=o,n.properties.dbscan="core"}))})),r.noise.forEach((function(e){var n=t.features[e];n.properties||(n.properties={}),n.properties.cluster?n.properties.dbscan="edge":n.properties.dbscan="noise"})),t},e.clustersKmeans=function(t,e){void 0===e&&(e={});var n=t.features.length;e.numberOfClusters=e.numberOfClusters||Math.round(Math.sqrt(n/2)),e.numberOfClusters>n&&(e.numberOfClusters=n),!0!==e.mutate&&(t=Se(t));var r=G(t),i=r.slice(0,e.numberOfClusters),o=zs(r,e.numberOfClusters,i),s={};return o.centroids.forEach((function(t,e){s[e]=t})),D(t,(function(t,e){var n=o.idxs[e];t.properties.cluster=n,t.properties.centroid=s[n]})),t},e.collect=function(t,e,n,r){var i=Ct(6),o=e.features.map((function(t){var e;return{minX:t.geometry.coordinates[0],minY:t.geometry.coordinates[1],maxX:t.geometry.coordinates[0],maxY:t.geometry.coordinates[1],property:null===(e=t.properties)||void 0===e?void 0:e[n]}}));return i.load(o),t.features.forEach((function(t){t.properties||(t.properties={});var e=J(t),n=i.search({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}),o=[];n.forEach((function(e){ve([e.minX,e.minY],t)&&o.push(e.property)})),t.properties[r]=o})),t},e.collectionOf=rt,e.combine=function(t){var e={MultiPoint:{coordinates:[],properties:[]},MultiLineString:{coordinates:[],properties:[]},MultiPolygon:{coordinates:[],properties:[]}};return D(t,(function(t){var n,r,i,o;switch(null===(o=t.geometry)||void 0===o?void 0:o.type){case"Point":e.MultiPoint.coordinates.push(t.geometry.coordinates),e.MultiPoint.properties.push(t.properties);break;case"MultiPoint":(n=e.MultiPoint.coordinates).push.apply(n,t.geometry.coordinates),e.MultiPoint.properties.push(t.properties);break;case"LineString":e.MultiLineString.coordinates.push(t.geometry.coordinates),e.MultiLineString.properties.push(t.properties);break;case"MultiLineString":(r=e.MultiLineString.coordinates).push.apply(r,t.geometry.coordinates),e.MultiLineString.properties.push(t.properties);break;case"Polygon":e.MultiPolygon.coordinates.push(t.geometry.coordinates),e.MultiPolygon.properties.push(t.properties);break;case"MultiPolygon":(i=e.MultiPolygon.coordinates).push.apply(i,t.geometry.coordinates),e.MultiPolygon.properties.push(t.properties)}})),d(Object.keys(e).filter((function(t){return e[t].coordinates.length})).sort().map((function(t){return s({type:t,coordinates:e[t].coordinates},{collectedProperties:e[t].properties})})))},e.concave=function(t,e){void 0===e&&(e={});var n=e.maxEdge||1/0,r=Ee(function(t){var e=[],n={};return D(t,(function(t){if(t.geometry){var r=t.geometry.coordinates.join("-");Object.prototype.hasOwnProperty.call(n,r)||(e.push(t),n[r]=!0)}})),d(e)}(t));if(r.features=r.features.filter((function(t){var r=t.geometry.coordinates[0][0],i=t.geometry.coordinates[0][1],o=t.geometry.coordinates[0][2],s=be(r,i,e),a=be(i,o,e),u=be(r,o,e);return s<=n&&a<=n&&u<=n})),r.features.length<1)return null;var i=tn(r);return 1===i.coordinates.length&&(i.coordinates=i.coordinates[0],i.type="Polygon"),s(i)},e.containsNumber=tt,e.convertArea=I,e.convertDistance=C,e.convertLength=C,e.convex=ye,e.coordAll=G,e.coordEach=N,e.coordReduce=A,e.createBins=uu,e.degrees2radians=S,e.degreesToRadians=S,e.destination=_n,e.difference=function(t,e){var n=it(t),r=it(e),i=t.properties||{},o=tc.difference(n.coordinates,r.coordinates);return 0===o.length?null:1===o.length?l(o[0],i):v(o,i)},e.dissolve=function(t,e){if(!R(e=e||{}))throw new Error("options is invalid");var n=e.propertyName;rt(t,"Polygon","dissolve");var r=[];if(!e.propertyName)return ri(v(tc.union.apply(null,t.features.map((function(t){return t.geometry.coordinates})))));var i={};D(t,(function(t){Object.prototype.hasOwnProperty.call(i,t.properties[n])||(i[t.properties[n]]=[]),i[t.properties[n]].push(t)}));for(var o=Object.keys(i),s=0;s<o.length;s++){var a=v(tc.union.apply(null,i[o[s]].map((function(t){return t.geometry.coordinates}))));a.properties[n]=o[s],r.push(a)}return ri(d(r))},e.distance=be,e.distanceToDegrees=w,e.distanceToRadians=E,e.distanceWeight=Ya,e.earthRadius=n,e.ellipse=Fa,e.envelope=yn,e.explode=xn,e.factors=r,e.feature=s,e.featureCollection=d,e.featureEach=D,e.featureOf=nt,e.featureReduce=k,e.filterProperties=hu,e.findPoint=Z,e.findSegment=H,e.flatten=ri,e.flattenEach=z,e.flattenReduce=Y,e.flip=function(t,e){if(!R(e=e||{}))throw new Error("options is invalid");var n=e.mutate;if(!t)throw new Error("geojson is required");return!1!==n&&void 0!==n||(t=Se(t)),N(t,(function(t){var e=t[0],n=t[1];t[0]=n,t[1]=e})),t},e.geojsonType=et,e.geomEach=B,e.geomReduce=U,e.geometry=a,e.geometryCollection=_,e.getCluster=ou,e.getCoord=Q,e.getCoords=$,e.getGeom=it,e.getType=ot,e.greatCircle=function(t,e,n){if("object"!=typeof(n=n||{}))throw new Error("options is invalid");var r=n.properties,i=n.npoints,o=n.offset;return t=Q(t),e=Q(e),r=r||{},i=i||100,o=o||10,new _i({x:t[0],y:t[1]},{x:e[0],y:e[1]},r).Arc(i,{offset:o}).json()},e.helpers=M,e.hexGrid=uy,e.inside=ve,e.interpolate=function(t,e,n){if("object"!=typeof(n=n||{}))throw new Error("options is invalid");var r=n.gridType,i=n.property,o=n.weight;if(!t)throw new Error("points is required");if(rt(t,"Point","input must contain Points"),!e)throw new Error("cellSize is required");if(void 0!==o&&"number"!=typeof o)throw new Error("weight must be a number");i=i||"elevation",r=r||"square",o=o||1;var s,a=J(t);switch(r){case"point":case"points":s=ei(a,e,n);break;case"square":case"squares":s=py(a,e,n);break;case"hex":case"hexes":s=uy(a,e,n);break;case"triangle":case"triangles":s=dy(a,e,n);break;default:throw new Error("invalid gridType")}var u=[];return D(s,(function(e){var s=0,a=0;D(t,(function(t){var u,c=be("point"===r?e:wn(e),t,n);if(void 0!==i&&(u=t.properties[i]),void 0===u&&(u=t.geometry.coordinates[2]),void 0===u)throw new Error("zValue is missing");0===c&&(s=u);var l=1/Math.pow(c,o);a+=l,s+=l*u}));var c=Se(e);c.properties[i]=s/a,u.push(c)})),d(u)},e.intersect=ay,e.invariant=st,e.isNumber=P,e.isObject=R,e.isobands=function(t,e,n){if(!R(n=n||{}))throw new Error("options is invalid");var r=n.zProperty||"elevation",i=n.commonProperties||{},o=n.breaksProperties||[];if(rt(t,"Point","Input must contain Points"),!e)throw new Error("breaks is required");if(!Array.isArray(e))throw new Error("breaks is not an Array");if(!R(i))throw new Error("commonProperties is not an Object");if(!Array.isArray(o))throw new Error("breaksProperties is not an Array");var s=Ji(t,{zProperty:r,flip:!0}),a=function(t,e,n){for(var r=[],i=1;i<e.length;i++){var o=+e[i-1],s=+e[i],a=Jo(Ko(to(t,o,s-o))),u={};u.groupedRings=a,u[n]=o+"-"+s,r.push(u)}return r}(s,e,r);return d((a=function(t,e,n){var r=J(n),i=r[2]-r[0],o=r[3]-r[1],s=r[0],a=r[1],u=e[0].length-1,c=e.length-1,l=i/u,h=o/c,f=function(t){t[0]=t[0]*l+s,t[1]=t[1]*h+a};return t.forEach((function(t){t.groupedRings.forEach((function(t){t.forEach((function(t){t.forEach(f)}))}))})),t}(a,s,t)).map((function(t,e){if(o[e]&&!R(o[e]))throw new Error("Each mappedProperty is required to be an Object");var n=ht({},i,o[e]);return n[r]=t[r],v(t.groupedRings,n)})))},e.isolines=function(t,e,n){if(!R(n=n||{}))throw new Error("options is invalid");var r=n.zProperty||"elevation",i=n.commonProperties||{},o=n.breaksProperties||[];if(rt(t,"Point","Input must contain Points"),!e)throw new Error("breaks is required");if(!Array.isArray(e))throw new Error("breaks must be an Array");if(!R(i))throw new Error("commonProperties must be an Object");if(!Array.isArray(o))throw new Error("breaksProperties must be an Array");var s=mt(t,{zProperty:r,flip:!0});return d(function(t,e,n){var r=J(n),i=r[2]-r[0],o=r[3]-r[1],s=r[0],a=r[1],u=e[0].length-1,c=e.length-1,l=i/u,h=o/c,f=function(t){t[0]=t[0]*l+s,t[1]=t[1]*h+a};return t.forEach((function(t){N(t,f)})),t}(function(t,e,n,r,i){for(var o=[],s=1;s<e.length;s++){var a=+e[s],u=ht({},r,i[s]);u[n]=a;var c=g(dt(t,a),u);o.push(c)}return o}(s,e,r,i,o),s,t))},e.kinks=function(t){var e,n,r={type:"FeatureCollection",features:[]};if("LineString"===(n="Feature"===t.type?t.geometry:t).type)e=[n.coordinates];else if("MultiLineString"===n.type)e=n.coordinates;else if("MultiPolygon"===n.type)e=[].concat.apply([],n.coordinates);else{if("Polygon"!==n.type)throw new Error("Input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry");e=n.coordinates}return e.forEach((function(t){e.forEach((function(e){for(var n=0;n<t.length-1;n++)for(var i=n;i<e.length-1;i++){if(t===e){if(1===Math.abs(n-i))continue;if(0===n&&i===t.length-2&&t[n][0]===t[t.length-1][0]&&t[n][1]===t[t.length-1][1])continue}var o=Gr(t[n][0],t[n][1],t[n+1][0],t[n+1][1],e[i][0],e[i][1],e[i+1][0],e[i+1][1]);o&&r.features.push(u([o[0],o[1]]))}}))})),r},e.length=Wr,e.lengthToDegrees=w,e.lengthToRadians=E,e.lineArc=xi,e.lineChunk=function(t,e,n){if(!R(n=n||{}))throw new Error("options is invalid");var r=n.units,i=n.reverse;if(!t)throw new Error("geojson is required");if(e<=0)throw new Error("segmentLength must be greater than 0");var o=[];return z(t,(function(t){i&&(t.geometry.coordinates=t.geometry.coordinates.reverse()),function(t,e,n,r){var i=Wr(t,{units:n});if(i<=e)return r(t);var o=i/e;Number.isInteger(o)||(o=Math.floor(o)+1);for(var s=0;s<o;s++)r(Hr(t,e*s,e*(s+1),{units:n}),s)}(t,e,r,(function(t){o.push(t)}))})),d(o)},e.lineDistance=Wr,e.lineEach=q,e.lineIntersect=Mr,e.lineOffset=function(t,e,n){if(!R(n=n||{}))throw new Error("options is invalid");var r=n.units;if(!t)throw new Error("geojson is required");if(null==e||isNaN(e))throw new Error("distance is required");var i=ot(t),o=t.properties;switch(i){case"LineString":return ss(t,e,r);case"MultiLineString":var s=[];return z(t,(function(t){s.push(ss(t,e,r).geometry.coordinates)})),g(s,o);default:throw new Error("geometry "+i+" is not supported")}},e.lineOverlap=ki,e.lineReduce=W,e.lineSegment=Jn,e.lineSlice=function(t,e,n){var r=$(n);if("LineString"!==ot(n))throw new Error("line must be a LineString");for(var i,o=Ar(n,t),s=Ar(n,e),a=[(i=o.properties.index<=s.properties.index?[o,s]:[s,o])[0].geometry.coordinates],u=i[0].properties.index+1;u<i[1].properties.index+1;u++)a.push(r[u]);return a.push(i[1].geometry.coordinates),f(a,n.properties)},e.lineSliceAlong=Hr,e.lineSplit=function(t,e){if(!t)throw new Error("line is required");if(!e)throw new Error("splitter is required");var n=ot(t),r=ot(e);if("LineString"!==n)throw new Error("line must be LineString");if("FeatureCollection"===r)throw new Error("splitter cannot be a FeatureCollection");if("GeometryCollection"===r)throw new Error("splitter cannot be a GeometryCollection");var i=ni(e,{precision:7});switch(r){case"Point":return bi(t,i);case"MultiPoint":return mi(t,i);case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":return mi(t,Mr(t,i))}},e.lineString=f,e.lineStringToPolygon=Pi,e.lineStrings=p,e.lineToPolygon=Pi,e.mask=function(t,e){var n,r=fy(e),i=null;return i="FeatureCollection"===t.type?hy(2===(n=t).features.length?tc.union(n.features[0].geometry.coordinates,n.features[1].geometry.coordinates):tc.union.apply(tc,n.features.map((function(t){return t.geometry.coordinates})))):hy(tc.union(t.geometry.coordinates)),i.geometry.coordinates.forEach((function(t){r.geometry.coordinates.push(t[0])})),r},e.meta=K,e.midpoint=function(t,e){return _n(t,be(t,e)/2,bn(t,e))},e.moranIndex=function(t,e){var n=e.inputField,r=e.threshold||1e5,i=e.p||2,o=e.binary||!1,s=Ya(t,{alpha:e.alpha||-1,binary:o,p:i,standardization:e.standardization||!0,threshold:r}),a=[];D(t,(function(t){var e=t.properties||{};a.push(e[n])}));for(var u=Xa(a),c=function(t){for(var e=Xa(t),n=0,r=0,i=t;r<i.length;r++){var o=i[r];n+=Math.pow(o-e,2)}return n/t.length}(a),l=0,h=0,f=0,p=0,d=s.length,g=0;g<d;g++){for(var y=0,v=0;v<d;v++)l+=s[g][v]*(a[g]-u)*(a[v]-u),h+=s[g][v],f+=Math.pow(s[g][v]+s[v][g],2),y+=s[g][v]+s[v][g];p+=Math.pow(y,2)}var _=l/h/c,m=-1/(d-1),b=(d*d*(f*=.5)-d*p+h*h*3)/((d-1)*(d+1)*(h*h))-m*m,E=Math.sqrt(b);return{expectedMoranIndex:m,moranIndex:_,stdNorm:E,zNorm:(_-m)/E}},e.multiLineString=g,e.multiPoint=y,e.multiPolygon=v,e.nearest=Kn,e.nearestPoint=Kn,e.nearestPointOnLine=Ar,e.nearestPointToLine=function(t,e,n){void 0===n&&(n={});var r=n.units,i=n.properties||{},o=function(t){var e=[];switch(t.geometry?t.geometry.type:t.type){case"GeometryCollection":return B(t,(function(t){"Point"===t.type&&e.push({type:"Feature",properties:{},geometry:t})})),{type:"FeatureCollection",features:e};case"FeatureCollection":return t.features=t.features.filter((function(t){return"Point"===t.geometry.type})),t;default:throw new Error("points must be a Point Collection")}}(t);if(!o.features.length)throw new Error("points must contain features");if(!e)throw new Error("line is required");if("LineString"!==ot(e))throw new Error("line must be a LineString");var s=1/0,a=null;return D(o,(function(t){var n=jr(t,e,{units:r});n<s&&(s=n,a=t)})),a&&(a.properties=ht({dist:s},a.properties,i)),a},e.planepoint=function(t,e){var n=Q(t),r=it(e).coordinates[0];if(r.length<4)throw new Error("OuterRing of a Polygon must have 4 or more Positions.");var i=e.properties||{},o=i.a,s=i.b,a=i.c,u=n[0],c=n[1],l=r[0][0],h=r[0][1],f=void 0!==o?o:r[0][2],p=r[1][0],d=r[1][1],g=void 0!==s?s:r[1][2],y=r[2][0],v=r[2][1],_=void 0!==a?a:r[2][2];return(_*(u-l)*(c-d)+f*(u-p)*(c-v)+g*(u-y)*(c-h)-g*(u-l)*(c-v)-_*(u-p)*(c-h)-f*(u-y)*(c-d))/((u-l)*(c-d)+(u-p)*(c-v)+(u-y)*(c-h)-(u-l)*(c-v)-(u-p)*(c-h)-(u-y)*(c-d))},e.point=u,e.pointGrid=ei,e.pointOnFeature=Br,e.pointOnLine=Ar,e.pointOnSurface=Br,e.pointToLineDistance=jr,e.points=c,e.pointsWithinPolygon=me,e.polygon=l,e.polygonSmooth=function(t,e){var n=[],r=e.iterations||1;if(!t)throw new Error("inputPolys is required");return B(t,(function(t,e,i){var o,s,a;switch(t.type){case"Polygon":o=[[]];for(var u=0;u<r;u++)a=[[]],s=t,u>0&&(s=l(o).geometry),Ba(s,a),o=a.slice(0);n.push(l(o,i));break;case"MultiPolygon":o=[[[]]];for(var c=0;c<r;c++)a=[[[]]],s=t,c>0&&(s=v(o).geometry),Ua(s,a),o=a.slice(0);n.push(v(o,i));break;default:throw new Error("geometry is invalid, must be Polygon or MultiPolygon")}})),d(n)},e.polygonTangents=function(t,e){var n,r,i,o,s=$(t),a=$(e),c=J(e),l=0,h=null;switch(s[0]>c[0]&&s[0]<c[2]&&s[1]>c[1]&&s[1]<c[3]&&(l=(h=Kn(t,xn(e))).properties.featureIndex),ot(e)){case"Polygon":n=a[0][l],r=a[0][0],null!==h&&h.geometry.coordinates[1]<s[1]&&(r=a[0][l]),o=qi(a[0][0],a[0][a[0].length-1],s);var f=Xi(a[0],s,o,i,n,r);n=f[0],r=f[1];break;case"MultiPolygon":for(var p=0,g=0,y=0,v=0;v<a[0].length;v++){p=v;for(var _=!1,m=0;m<a[0][v].length;m++){if(g=m,y===l){_=!0;break}y++}if(_)break}n=a[0][p][g],r=a[0][p][g],o=qi(a[0][0][0],a[0][0][a[0][0].length-1],s),a.forEach((function(t){var e=Xi(t[0],s,o,i,n,r);n=e[0],r=e[1]}))}return d([u(n),u(r)])},e.polygonToLine=Si,e.polygonToLineString=Si,e.polygonize=function(t){var e=fs.fromGeoJson(t);e.deleteDangles(),e.deleteCutEdges();var n=[],r=[];return e.getEdgeRings().filter((function(t){return t.isValid()})).forEach((function(t){t.isHole()?n.push(t):r.push(t)})),n.forEach((function(t){hs.findEdgeRingContaining(t,r)&&r.push(t)})),d(r.map((function(t){return t.toPolygon()})))},e.polygons=h,e.projection=Ka,e.propEach=F,e.propReduce=j,e.propertiesContainsFilter=lu,e.radians2degrees=O,e.radiansToDegrees=O,e.radiansToDistance=b,e.radiansToLength=b,e.random=iu,e.randomLineString=eu,e.randomPoint=$a,e.randomPolygon=tu,e.randomPosition=Qa,e.rewind=function(t,e){if(!R(e=e||{}))throw new Error("options is invalid");var n=e.reverse||!1,r=e.mutate||!1;if(!t)throw new Error("<geojson> is required");if("boolean"!=typeof n)throw new Error("<reverse> must be a boolean");if("boolean"!=typeof r)throw new Error("<mutate> must be a boolean");!1===r&&(t=Se(t));var i=[];switch(t.type){case"GeometryCollection":return B(t,(function(t){Hi(t,n)})),t;case"FeatureCollection":return D(t,(function(t){D(Hi(t,n),(function(t){i.push(t)}))})),d(i)}return Hi(t,n)},e.rhumbBearing=Ui,e.rhumbDestination=Yi,e.rhumbDistance=Fr,e.round=m,e.sample=function(t,e){if(!t)throw new Error("featurecollection is required");if(null==e)throw new Error("num is required");if("number"!=typeof e)throw new Error("num must be a number");return d(function(t,e){for(var n,r,i=t.slice(0),o=t.length,s=o-e;o-- >s;)n=i[r=Math.floor((o+1)*Math.random())],i[r]=i[o],i[o]=n;return i.slice(s)}(t.features,e))},e.sector=function(t,e,n,r,i){if(!R(i=i||{}))throw new Error("options is invalid");var o=i.properties;if(!t)throw new Error("center is required");if(null==n)throw new Error("bearing1 is required");if(null==r)throw new Error("bearing2 is required");if(!e)throw new Error("radius is required");if("object"!=typeof i)throw new Error("options must be an object");if(Bi(n)===Bi(r))return mn(t,e,i);var s=$(t),a=xi(t,e,n,r,i),u=[[s]];return N(a,(function(t){u[0].push(t)})),u[0].push(s),l(u,o)},e.segmentEach=X,e.segmentReduce=V,e.shortestPath=function(t,e,n){if(!R(n=n||{}))throw new Error("options is invalid");var r=n.resolution,i=n.minDistance,o=n.obstacles||d([]);if(!t)throw new Error("start is required");if(!e)throw new Error("end is required");if(r&&!P(r)||r<=0)throw new Error("options.resolution must be a number, greater than 0");if(i)throw new Error("options.minDistance is not yet implemented");var a=Q(t),c=Q(e);switch(t=u(a),e=u(c),ot(o)){case"FeatureCollection":if(0===o.features.length)return f([a,c]);break;case"Polygon":o=d([s(it(o))]);break;default:throw new Error("invalid obstacles")}var l=o;l.features.push(t),l.features.push(e);var h=J(es(gn(J(l)),1.15));r||(r=be([h[0],h[1]],[h[2],h[1]],n)/100),l.features.pop(),l.features.pop();for(var p=h[0],g=h[1],y=h[2],v=h[3],_=r/be([p,g],[y,g],n)*(y-p),m=r/be([p,g],[p,v],n)*(v-g),b=y-p,E=v-g,w=Math.floor(b/_),x=Math.floor(E/m),O=(b-w*_)/2,S=[],C=[],I=[],T=[],L=1/0,M=1/0,N=v-(E-x*m)/2,A=0;N>=g;){for(var F=[],j=[],D=p+O,k=0;D<=y;){var G=u([D,N]),B=Ks(G,o);F.push(B?0:1),j.push(D+"|"+N);var U=be(G,t);!B&&U<L&&(L=U,I={x:k,y:A});var z=be(G,e);!B&&z<M&&(M=z,T={x:k,y:A}),D+=_,k++}C.push(F),S.push(j),N-=m,A++}var Y=new Ws(C,{diagonal:!0}),X=Y.grid[I.y][I.x],V=Y.grid[T.y][T.x],q=qs.search(Y,X,V),W=[a];return q.forEach((function(t){var e=S[t.x][t.y].split("|");W.push([+e[0],+e[1]])})),W.push(c),en(f(W))},e.simplify=function(t,e){if(!R(e=e||{}))throw new Error("options is invalid");var n=void 0!==e.tolerance?e.tolerance:1,r=e.highQuality||!1,i=e.mutate||!1;if(!t)throw new Error("geojson is required");if(n&&n<0)throw new Error("invalid tolerance");return!0!==i&&(t=Se(t)),B(t,(function(t){!function(t,e,n){var r=t.type;if("Point"===r||"MultiPoint"===r)return t;en(t,!0);var i=t.coordinates;switch(r){case"LineString":t.coordinates=ln(i,e,n);break;case"MultiLineString":t.coordinates=i.map((function(t){return ln(t,e,n)}));break;case"Polygon":t.coordinates=hn(i,e,n);break;case"MultiPolygon":t.coordinates=i.map((function(t){return hn(t,e,n)}))}}(t,n,r)})),t},e.square=vn,e.squareGrid=py,e.standardDeviationalEllipse=function(t,e){if(!R(e=e||{}))throw new Error("options is invalid");var n=e.steps||64,r=e.weight,i=e.properties||{};if(!P(n))throw new Error("steps must be a number");if(!R(i))throw new Error("properties must be a number");var o=G(t).length,s=Da(t,{weight:r}),a=0,u=0,c=0;D(t,(function(t){var e=t.properties[r]||1,n=Ga($(t),$(s));a+=Math.pow(n.x,2)*e,u+=Math.pow(n.y,2)*e,c+=n.x*n.y*e}));var l=a-u,h=Math.sqrt(Math.pow(l,2)+4*Math.pow(c,2)),f=2*c,p=Math.atan((l+h)/f),g=180*p/Math.PI,y=0,v=0,_=0;D(t,(function(t){var e=t.properties[r]||1,n=Ga($(t),$(s));y+=Math.pow(n.x*Math.cos(p)-n.y*Math.sin(p),2)*e,v+=Math.pow(n.x*Math.sin(p)+n.y*Math.cos(p),2)*e,_+=e}));var m=Math.sqrt(2*y/_),b=Math.sqrt(2*v/_),E=Fa(s,m,b,{units:"degrees",angle:g,steps:n,properties:i}),w=me(t,d([E])),x={meanCenterCoordinates:$(s),semiMajorAxis:m,semiMinorAxis:b,numberOfFeatures:o,angle:g,percentageWithinEllipse:100*G(w).length/o};return E.properties.standardDeviationalEllipse=x,E},e.tag=function(t,e,n,r){return t=Se(t),e=Se(e),D(t,(function(t){t.properties||(t.properties={}),D(e,(function(e){void 0===t.properties[r]&&ve(t,e)&&(t.properties[r]=e.properties[n])}))})),t},e.tesselate=function(t){if(!t.geometry||"Polygon"!==t.geometry.type&&"MultiPolygon"!==t.geometry.type)throw new Error("input must be a Polygon or MultiPolygon");var e={type:"FeatureCollection",features:[]};return"Polygon"===t.geometry.type?e.features=Zn(t.geometry.coordinates):t.geometry.coordinates.forEach((function(t){e.features=e.features.concat(Zn(t))})),e},e.tin=Ee,e.toMercator=Va,e.toWgs84=qa,e.transformRotate=ts,e.transformScale=es,e.transformTranslate=function(t,e,n,r){if(!R(r=r||{}))throw new Error("options is invalid");var i=r.units,o=r.zTranslation,s=r.mutate;if(!t)throw new Error("geojson is required");if(null==e||isNaN(e))throw new Error("distance is required");if(o&&"number"!=typeof o&&isNaN(o))throw new Error("zTranslation is not a number");if(o=void 0!==o?o:0,0===e&&0===o)return t;if(null==n||isNaN(n))throw new Error("direction is required");return e<0&&(e=-e,n+=180),!1!==s&&void 0!==s||(t=Se(t)),N(t,(function(t){var r=$(Yi(t,e,n,{units:i}));t[0]=r[0],t[1]=r[1],o&&3===t.length&&(t[2]+=o)})),t},e.triangleGrid=dy,e.truncate=ni,e.union=function(t,e,n){void 0===n&&(n={});var r=it(t),i=it(e),o=tc.union(r.coordinates,i.coordinates);return 0===o.length?null:1===o.length?l(o[0],n.properties):v(o,n.properties)},e.unitsFactors=i,e.unkinkPolygon=function(t){var e=[];return z(t,(function(t){"Polygon"===t.geometry.type&&D(si(t),(function(n){e.push(l(n.geometry.coordinates,t.properties))}))})),d(e)},e.validateBBox=T,e.validateId=L,e.voronoi=function(t,e){if(!R(e=e||{}))throw new Error("options is invalid");var n=e.bbox||[-180,-85,180,85];if(!t)throw new Error("points is required");if(!Array.isArray(n))throw new Error("bbox is invalid");return rt(t,"Point","points"),d(function(){var t=Qs,e=$s,n=null;function r(r){return new Na(r.map((function(n,i){var o=[Math.round(t(n,i,r)/Ta)*Ta,Math.round(e(n,i,r)/Ta)*Ta];return o.index=i,o.data=n,o})),n)}return r.polygons=function(t){return r(t).polygons()},r.links=function(t){return r(t).links()},r.triangles=function(t){return r(t).triangles()},r.x=function(e){return arguments.length?(t="function"==typeof e?e:Js(+e),r):t},r.y=function(t){return arguments.length?(e="function"==typeof t?t:Js(+t),r):e},r.extent=function(t){return arguments.length?(n=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],r):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},r.size=function(t){return arguments.length?(n=null==t?null:[[0,0],[+t[0],+t[1]]],r):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},r}().x((function(t){return t.geometry.coordinates[0]})).y((function(t){return t.geometry.coordinates[1]})).extent([[n[0],n[1]],[n[2],n[3]]]).polygons(t.features).map(Aa))},e.within=me,Object.defineProperty(e,"__esModule",{value:!0})}))}).call(this,n("4362"))},5980:function(t,e,n){(function(e,r){t.exports=r(n("21bf"))})(0,(function(t){(function(){var e=t,n=e.lib,r=n.Base,i=e.enc,o=i.Utf8,s=e.algo;s.HMAC=r.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=o.parse(e));var n=t.blockSize,r=4*n;e.sigBytes>r&&(e=t.finalize(e)),e.clamp();for(var i=this._oKey=e.clone(),s=this._iKey=e.clone(),a=i.words,u=s.words,c=0;c<n;c++)a[c]^=1549556828,u[c]^=909522486;i.sigBytes=s.sigBytes=r,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);e.reset();var r=e.finalize(this._oKey.clone().concat(n));return r}})})()}))},"59ed":function(t,e,n){var r=n("1626"),i=n("0d51"),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},"5a24":function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"origin",(function(){return l})),n.d(r,"createLayerArcgisXYZ",(function(){return h}));var i={};n.r(i),n.d(i,"createTileGridWmts",(function(){return S}));var o={};n.r(o),n.d(o,"createLayerTdt",(function(){return C})),n.d(o,"createLayerTdtWmts",(function(){return I})),n.d(o,"createLayerGroupTdt",(function(){return P})),n.d(o,"createLayerGoogle",(function(){return R})),n.d(o,"createLayerGD",(function(){return T})),n.d(o,"createLayerArgXYZ",(function(){return L})),n.d(o,"createLayerBaiduXYZ",(function(){return M}));var s=n("480c"),a=n("2ef1"),u=n("78db");let c={extentJx:[109.72859368643232,24.010266905347684,121.13105988819079,30.76693489432357],extentQg:[40.93120507614668,-4.898838628946014,172.62495510997238,59.89417413221303],originArcgisServer:[-400,399.9999999999998],resolutions:[.7031250000000002,.3515625000000001,.17578125000000006,.0624062618086491,.04394531353227711,.021972656766138556,.010986328383069278,.005493164191534639,.0027465809060368165,.0013732916427489112,.0006866458213744556,.0003433229106872278,.0001716614553436139,8582953794130404e-20,4291595870115493e-20,21457979350577466e-21,10728989675288733e-21,5363305107141452e-21,2681652553570726e-21]};const l=[-400,399.9999999999998],h=t=>{const e=t.resolutions?t.resolutions:c.resolutions.slice(3,17),n=t.url+"/tile/{z}/{y}/{x}";let r=new u["a"]({origin:l,extent:c.extentQg,resolutions:e});return new s["a"]({source:new a["a"]({tileGrid:r,projection:"EPSG:4326",url:n})})};var f=n("9c78"),p=n("91b1"),d=n("c721"),g=n("38f3"),y=n("0af5"),v=(n("9f5e"),n("256f")),_=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m=function(t){function e(e){var n=t.call(this,{extent:e.extent,origin:e.origin,origins:e.origins,resolutions:e.resolutions,tileSize:e.tileSize,tileSizes:e.tileSizes,sizes:e.sizes})||this;return n.matrixIds_=e.matrixIds,n}return _(e,t),e.prototype.getMatrixId=function(t){return this.matrixIds_[t]},e.prototype.getMatrixIds=function(){return this.matrixIds_},e}(u["a"]),b=m;var E=n("9cff"),w=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),x=function(t){function e(e){var n=this,r=void 0===e.imageSmoothing||e.imageSmoothing;void 0!==e.interpolate&&(r=e.interpolate);var i=void 0!==e.requestEncoding?e.requestEncoding:"KVP",o=e.tileGrid,s=e.urls;return void 0===s&&void 0!==e.url&&(s=Object(E["c"])(e.url)),n=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:r,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileClass:e.tileClass,tileGrid:o,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,urls:s,wrapX:void 0!==e.wrapX&&e.wrapX,transition:e.transition,zDirection:e.zDirection})||this,n.version_=void 0!==e.version?e.version:"1.0.0",n.format_=void 0!==e.format?e.format:"image/jpeg",n.dimensions_=void 0!==e.dimensions?e.dimensions:{},n.layer_=e.layer,n.matrixSet_=e.matrixSet,n.style_=e.style,n.requestEncoding_=i,n.setKey(n.getKeyForDimensions_()),s&&s.length>0&&(n.tileUrlFunction=Object(E["b"])(s.map(n.createFromWMTSTemplate.bind(n)))),n}return w(e,t),e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.setTileUrlFunction(Object(E["b"])(t.map(this.createFromWMTSTemplate.bind(this))),e)},e.prototype.getDimensions=function(){return this.dimensions_},e.prototype.getFormat=function(){return this.format_},e.prototype.getLayer=function(){return this.layer_},e.prototype.getMatrixSet=function(){return this.matrixSet_},e.prototype.getRequestEncoding=function(){return this.requestEncoding_},e.prototype.getStyle=function(){return this.style_},e.prototype.getVersion=function(){return this.version_},e.prototype.getKeyForDimensions_=function(){var t=0,e=[];for(var n in this.dimensions_)e[t++]=n+"-"+this.dimensions_[n];return e.join("/")},e.prototype.updateDimensions=function(t){Object(g["a"])(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())},e.prototype.createFromWMTSTemplate=function(t){var e=this.requestEncoding_,n={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};"KVP"==e&&Object(g["a"])(n,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t="KVP"==e?Object(d["a"])(t,n):t.replace(/\{(\w+?)\}/g,(function(t,e){return e.toLowerCase()in n?n[e.toLowerCase()]:t}));var r=this.tileGrid,i=this.dimensions_;return function(n,o,s){if(n){var a={TileMatrix:r.getMatrixId(n[0]),TileCol:n[1],TileRow:n[2]};Object(g["a"])(a,i);var u=t;return u="KVP"==e?Object(d["a"])(u,a):u.replace(/\{(\w+?)\}/g,(function(t,e){return a[e]})),u}}},e}(p["a"]),O=x;n("14d9");function S(t,e=0,n=""){t=t||v["h"]("EPSG:3857");const r=t.getExtent(),i=y["C"](r);let o=y["E"](r)/256;"EPSG:4326"===t.getCode()&&(o=y["E"](r)/512);const s=[],a=[];for(let u=0;u<18;u++)a.push(n+(u+e)),s.push(o/2**u);return new b({origin:i,extent:r,resolutions:s,matrixIds:a})}const C=t=>{const e="9ddc360d6bdaa451e6add0da729497d6",[n,r]=t.split("_");let i=`http://t{0-7}.tianditu.gov.cn/img_w/wmts?service=wmts&request=gettile&version=1.0.0&style=default&format=tiles&tilematrix={z}&tilerow={x}&tilecol={y}&layer=${n}&tilematrixset=${r}&tk=${e}`;return i=`http://t{0-7}.tianditu.gov.cn/DataServer?t=${t}&x={x}&y={y}&l={z}&tk=${e}`,new s["a"]({source:new a["a"]({url:i,wrapX:!0})})},I=t=>{const[e,n]=t.split("_");let r=v["h"]("EPSG:3857"),i=S(r);"c"===n&&(r=v["h"]("EPSG:4326"),i=S(r,1));const o="9ddc360d6bdaa451e6add0da729497d6";return new s["a"]({source:new O({format:"tiles",layer:e,matrixSet:n,tileGrid:i,url:`http://t{0-7}.tianditu.gov.cn/${t}/wmts?tk=${o}`,wrapX:!0})})},P=(t,e)=>{const n="EPSG:4326"===e?"c":"w";if("tdtVec"===t){const t=I("vec_"+n),e=I("cva_"+n);return new f["b"]({layers:[t,e]})}if("tdtImg"===t){const t=I("img_"+n),e=I("cia_"+n);return new f["b"]({layers:[t,e]})}if("tdtTer"===t){const t=I("ter_"+n),e=I("cta_"+n);return new f["b"]({layers:[e,t]})}},R=function(){return new s["a"]({source:new a["a"]({url:"http://www.google.cn/maps/vt?lyrs=s@189&gl=cn&x={x}&y={y}&z={z}"})})},T=function(){return new s["a"]({source:new a["a"]({url:"http://wprd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}"})})},L=function(t){return new s["a"]({source:new a["a"]({url:t+"/tile/{x}/{y}/{z}"})})},M=()=>{const t=[];for(let r=0;r<19;r++)t[r]=Math.pow(2,18-r);const e=new u["a"]({origin:[0,0],resolutions:t}),n=new p["a"]({projection:"EPSG:3857",tileGrid:e,tileUrlFunction(t,e,n){if(!t)return"";const r=t[0];let i=t[1],o=-t[2]-1;return i<0&&(i="M"+-i),o<0&&(o="M"+-o),`http://online3.map.bdimg.com/onlinelabel/?qt=tile&x=${i}&y=${o}&z=${r}&styles=pl&udt=20191119&scaler=1&p=1`}});return new s["a"]({source:n,visible:!0})};var N=n("3e6b"),A=n("5831"),F=n("6c77"),j=n("83a6"),D=n("8682"),k=n("ce2c"),G=n("ac29"),B=n("790a"),U=n("5bc3"),z=n("7a09"),Y=n("64d9"),X=n("0710");let V,q,W,H,Z,K;const J=[],Q="点击继续画面",$="点击继续划线";class tt{constructor(t){this.map=V=t,this.initVectorLayer()}setSketchType(t){V.removeInteraction(this.draw),this.addMapListeners(),this.addInteraction(t)}removeInteraction(){this.remove(),this.removeMapListeners()}remove(){V.removeInteraction(this.draw)}initVectorLayer(){this.source=new A["a"],this.vector=new N["a"]({source:this.source,style:new F["c"]({fill:new j["a"]({color:"rgba(255, 255, 255, 0.2)"}),stroke:new D["a"]({color:"#ffcc33",width:2}),image:new k["a"]({radius:7,fill:new j["a"]({color:"#ffcc33"})})})}),V.addLayer(this.vector),V.drawOutPut=""}addMapListeners(){V.on("pointermove",nt),V.getViewport().addEventListener("mouseout",rt)}removeMapListeners(){V.unset("pointermove",nt),V.getViewport().removeEventListener("mouseout",rt),V.removeOverlay(H),J.forEach(t=>{V.removeOverlay(t)}),this.vector.getSource().clear(),V.drawOutPut=""}addInteraction(t){const e=window.mapLayerName;let n,r="rgba(255, 255, 255, 0.5)",i="rgba(255, 255, 255, 0.5)";"chinaWhite"!==e&&"tdtVec"!==e||(r="rgba(0, 0, 0, 0.5)",i="rgba(0, 0, 0, 0.3)"),this.draw&&this.remove(),this.vector.getSource().clear(),this.draw=new G["a"]({source:this.source,type:t,style:new F["c"]({fill:new j["a"]({color:i}),stroke:new D["a"]({color:r,lineDash:[10,10],width:2}),image:new k["a"]({radius:5,stroke:new D["a"]({color:r}),fill:new j["a"]({color:r})})})}),V.addInteraction(this.draw),at(),st();this.draw.on("drawstart",t=>{this.vector.getSource().clear(),q=t.feature;let e=t.coordinate;n=q.getGeometry().on("change",t=>{const n=t.target;let r;n instanceof U["a"]?(r=ot(n),e=n.getInteriorPoint().getCoordinates()):n instanceof z["a"]&&(r=it(n),e=n.getLastCoordinate()),Z.innerHTML=r,K.setPosition(e)})}),this.draw.on("drawend",t=>{Z.className="ol-tooltip ol-tooltip-static",K.setOffset([0,-7]),q=null})}formatWkt(t){const e=new Y["a"],n=e.writeFeature(t);V.drawOutPut=n}formatFeature(t){return(new Y["a"]).readFeature(t)}}var et=tt;function nt(t){if(t.dragging)return;let e="点击开始画图";if(q){const t=q.getGeometry();t instanceof U["a"]?e=Q:t instanceof z["a"]&&(e=$)}W.innerHTML=e,H.setPosition(t.coordinate),W.classList.remove("hidden")}function rt(){W.classList.add("hidden")}function it(t){const e="EPSG:4326"===V.getView().getProjection().getCode();let n,r;if(e){const e=t.clone().transform("EPSG:4326","EPSG:3857");n=B["c"](e)}else n=B["c"](t);return r=n>100?Math.round(n/1e3*100)/100+" km":Math.round(100*n)/100+" m",r}function ot(t){const e="EPSG:4326"===V.getView().getProjection().getCode();let n,r;if(e){const e=t.clone().transform("EPSG:4326","EPSG:3857");n=B["a"](e)}else n=B["a"](t);return r=n>1e4?Math.round(n/1e6*100)/100+" km<sup>2</sup>":Math.round(100*n)/100+" m<sup>2</sup>",r}function st(){W&&W.parentNode.removeChild(W),W=document.createElement("div"),W.className="ol-tooltip hidden",H=new X["a"]({element:W,offset:[15,0],positioning:"center-left"}),V.addOverlay(H)}function at(){Z&&Z.parentNode.removeChild(Z),Z=document.createElement("div"),Z.className="ol-tooltip ol-tooltip-measure";const t=K=new X["a"]({element:Z,offset:[0,-15],positioning:"bottom-center"});J.push(t),V.addOverlay(K)}e["default"]={utilsArcgis:r,utilsTileLayer:o,utilsTileGrid:i,MeasureTool:et}},"5bc3":function(t,e,n){"use strict";n.d(e,"c",(function(){return E})),n.d(e,"b",(function(){return w})),n.d(e,"d",(function(){return x}));var r=n("521b"),i=n("049d"),o=n("f403"),s=n("9abc"),a=n("9769"),u=n("0af5"),c=n("abb7"),l=n("9f5e"),h=n("0a9d"),f=n("bb6c"),p=n("c560"),d=n("4d98"),g=n("b589"),y=n("25f1"),v=n("7fc9"),_=n("1c48"),m=(n("790a"),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),b=function(t){function e(e,n,r){var i=t.call(this)||this;return i.ends_=[],i.flatInteriorPointRevision_=-1,i.flatInteriorPoint_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,void 0!==n&&r?(i.setFlatCoordinates(n,e),i.ends_=r):i.setCoordinates(e,n),i}return m(e,t),e.prototype.appendLinearRing=function(t){this.flatCoordinates?Object(l["c"])(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,r){return r<Object(u["e"])(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(a["a"])(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(a["b"])(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,n,r))},e.prototype.containsXY=function(t,e){return Object(y["c"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},e.prototype.getArea=function(){return Object(g["b"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),Object(d["e"])(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,Object(f["b"])(e,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var t=Object(u["w"])(this.getExtent());this.flatInteriorPoint_=Object(h["a"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},e.prototype.getInteriorPoint=function(){return new o["a"](this.getFlatInteriorPoint(),r["a"].XYM)},e.prototype.getLinearRingCount=function(){return this.ends_.length},e.prototype.getLinearRing=function(t){return t<0||this.ends_.length<=t?null:new i["a"](this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLinearRings=function(){for(var t=this.layout,e=this.flatCoordinates,n=this.ends_,r=[],o=0,s=0,a=n.length;s<a;++s){var u=n[s],c=new i["a"](e.slice(o,u),t);r.push(c),o=u}return r},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;Object(d["c"])(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=Object(d["e"])(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],i=[];return n.length=Object(_["c"])(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),n,0,i),new e(n,r["a"].XY,i)},e.prototype.getType=function(){return"Polygon"},e.prototype.intersectsExtent=function(t){return Object(p["d"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=Object(c["c"])(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},e}(s["a"]);function E(t){var e=t[0],n=t[1],i=t[2],o=t[3],s=[e,n,e,o,i,o,i,n,e,n];return new b(s,r["a"].XY,[s.length])}function w(t,e,n){for(var r=e||32,i=t.getStride(),o=t.getLayout(),s=t.getCenter(),a=i*(r+1),u=new Array(a),c=0;c<a;c+=i){u[c]=0,u[c+1]=0;for(var l=2;l<i;l++)u[c+l]=s[l]}var h=[u.length],f=new b(u,o,h);return x(f,s,t.getRadius(),n),f}function x(t,e,n,r){for(var i=t.getFlatCoordinates(),o=t.getStride(),s=i.length/o-1,a=r||0,u=0;u<=s;++u){var c=u*o,l=a+2*Object(v["g"])(u,s)*Math.PI/s;i[c]=e[0]+n*Math.cos(l),i[c+1]=e[1]+n*Math.sin(l)}t.changed()}e["a"]=b},"5c38":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return l})),n.d(e,"c",(function(){return p}));var r=n("92fa"),i=n("7fc9"),o=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,s=/^([a-z]*)$|^hsla?\(.*\)$/i;function a(t){return"string"===typeof t?t:p(t)}function u(t){var e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);var n=getComputedStyle(e).color;return document.body.removeChild(e),n}return""}var c=function(){var t=1024,e={},n=0;return function(r){var i;if(e.hasOwnProperty(r))i=e[r];else{if(n>=t){var o=0;for(var s in e)0===(3&o++)&&(delete e[s],--n)}i=h(r),e[r]=i,++n}return i}}();function l(t){return Array.isArray(t)?t:c(t)}function h(t){var e,n,i,a,c;if(s.exec(t)&&(t=u(t)),o.exec(t)){var l=t.length-1,h=void 0;h=l<=4?1:2;var p=4===l||8===l;e=parseInt(t.substr(1+0*h,h),16),n=parseInt(t.substr(1+1*h,h),16),i=parseInt(t.substr(1+2*h,h),16),a=p?parseInt(t.substr(1+3*h,h),16):255,1==h&&(e=(e<<4)+e,n=(n<<4)+n,i=(i<<4)+i,p&&(a=(a<<4)+a)),c=[e,n,i,a/255]}else 0==t.indexOf("rgba(")?(c=t.slice(5,-1).split(",").map(Number),f(c)):0==t.indexOf("rgb(")?(c=t.slice(4,-1).split(",").map(Number),c.push(1),f(c)):Object(r["a"])(!1,14);return c}function f(t){return t[0]=Object(i["b"])(t[0]+.5|0,0,255),t[1]=Object(i["b"])(t[1]+.5|0,0,255),t[2]=Object(i["b"])(t[2]+.5|0,0,255),t[3]=Object(i["b"])(t[3],0,1),t}function p(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var n=t[1];n!=(0|n)&&(n=n+.5|0);var r=t[2];r!=(0|r)&&(r=r+.5|0);var i=void 0===t[3]?1:Math.round(100*t[3])/100;return"rgba("+e+","+n+","+r+","+i+")"}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5e31":function(t,e,n){"use strict";var r=n("0ec0"),i=n("01d4"),o=n("acc1"),s=n("1300"),a=n("ca42"),u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=function(t){function e(e,n,r){var i=t.call(this)||this,o=r||{};return i.tileCoord=e,i.state=n,i.interimTile=null,i.key="",i.transition_=void 0===o.transition?250:o.transition,i.transitionStarts_={},i.interpolate=!!o.interpolate,i}return u(e,t),e.prototype.changed=function(){this.dispatchEvent(i["a"].CHANGE)},e.prototype.release=function(){},e.prototype.getKey=function(){return this.key+"/"+this.tileCoord},e.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==o["a"].LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this},e.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==o["a"].LOADED){t.interimTile=null;break}t.getState()==o["a"].LOADING?e=t:t.getState()==o["a"].IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},e.prototype.getTileCoord=function(){return this.tileCoord},e.prototype.getState=function(){return this.state},e.prototype.setState=function(t){if(this.state!==o["a"].ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){Object(s["b"])()},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var n=this.transitionStarts_[t];if(n){if(-1===n)return 1}else n=e,this.transitionStarts_[t]=n;var r=e-n+1e3/60;return r>=this.transition_?1:Object(a["a"])(r/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(r["a"]);e["a"]=c},"5e77":function(t,e,n){var r=n("83ab"),i=n("1a2d"),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),u=a&&"something"===function(){}.name,c=a&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},"5eee":function(t,e,n){"use strict";var r=n("da5c"),i=n("57cb"),o=n("1300"),s=n("a896"),a=n("0af5"),u=n("3c22"),c=n("1af9"),l=n("a568"),h=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f=function(t){function e(e){var n=t.call(this)||this;return n.map_=e,n}return h(e,t),e.prototype.dispatchRenderEvent=function(t,e){Object(o["b"])()},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,n=t.coordinateToPixelTransform,r=t.pixelToCoordinateTransform;Object(s["b"])(n,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),Object(s["d"])(r,n)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,r,i,o,s,u){var h,f=e.viewState;function p(t,e,n,r){return i.call(o,e,t?n:null,r)}var d=f.projection,g=Object(l["g"])(t.slice(),d),y=[[0,0]];if(d.canWrapX()&&r){var v=d.getExtent(),_=Object(a["E"])(v);y.push([-_,0],[_,0])}for(var m=e.layerStatesArray,b=m.length,E=[],w=[],x=0;x<y.length;x++)for(var O=b-1;O>=0;--O){var S=m[O],C=S.layer;if(C.hasRenderer()&&Object(c["b"])(S,f)&&s.call(u,C)){var I=C.getRenderer(),P=C.getSource();if(I&&P){var R=P.getWrapX()?g:t,T=p.bind(null,S.managed);w[0]=R[0]+y[x][0],w[1]=R[1]+y[x][1],h=I.forEachFeatureAtCoordinate(w,e,n,T,E)}if(h)return h}}if(0!==E.length){var L=1/E.length;return E.forEach((function(t,e){return t.distanceSq+=e*L})),E.sort((function(t,e){return t.distanceSq-e.distanceSq})),E.some((function(t){return h=t.callback(t.feature,t.layer,t.geometry)})),h}},e.prototype.forEachLayerAtPixel=function(t,e,n,r,i){return Object(o["b"])()},e.prototype.hasFeatureAtCoordinate=function(t,e,n,r,o,s){var a=this.forEachFeatureAtCoordinate(t,e,n,r,i["b"],this,o,s);return void 0!==a},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){Object(o["b"])()},e.prototype.scheduleExpireIconCache=function(t){u["a"].canExpireCache()&&t.postRenderFunctions.push(p)},e}(r["a"]);function p(t,e){u["a"].expire()}var d=f,g=n("7b4f"),y=n("3333"),v=n("070d"),_=n("cd7e"),m=n("ddea"),b=n("1e8d"),E=n("0999"),w=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),x=function(t){function e(e){var n=t.call(this,e)||this;n.fontChangeListenerKey_=Object(b["a"])(m["a"],g["a"].PROPERTYCHANGE,e.redrawText.bind(e)),n.element_=document.createElement("div");var r=n.element_.style;r.position="absolute",r.width="100%",r.height="100%",r.zIndex="0",n.element_.className=_["e"]+" ol-layers";var i=e.getViewport();return i.insertBefore(n.element_,i.firstChild||null),n.children_=[],n.renderedVisible_=!0,n}return w(e,t),e.prototype.dispatchRenderEvent=function(t,e){var n=this.getMap();if(n.hasListener(t)){var r=new y["a"](t,void 0,e);n.dispatchEvent(r)}},e.prototype.disposeInternal=function(){Object(b["c"])(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),t.prototype.disposeInternal.call(this)},e.prototype.renderFrame=function(t){if(t){this.calculateMatrices2D(t),this.dispatchRenderEvent(v["a"].PRECOMPOSE,t);var e=t.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex})),n=t.viewState;this.children_.length=0;for(var r=[],i=null,o=0,s=e.length;o<s;++o){var a=e[o];t.layerIndex=o;var u=a.layer,l=u.getSourceState();if(!Object(c["b"])(a,n)||"ready"!=l&&"undefined"!=l)u.unrender();else{var h=u.render(t,i);h&&(h!==i&&(this.children_.push(h),i=h),"getDeclutter"in u&&r.push(u))}}for(o=r.length-1;o>=0;--o)r[o].renderDeclutter(t);Object(E["g"])(this.element_,this.children_),this.dispatchRenderEvent(v["a"].POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},e.prototype.forEachLayerAtPixel=function(t,e,n,r,i){for(var o=e.viewState,s=e.layerStatesArray,a=s.length,u=a-1;u>=0;--u){var l=s[u],h=l.layer;if(h.hasRenderer()&&Object(c["b"])(l,o)&&i(h)){var f=h.getRenderer(),p=f.getDataAtPixel(t,e,n);if(p){var d=r(h,p);if(d)return d}}}},e}(d),O=x,S=n("e269"),C=n("e300"),I=n("183a"),P=n("01d4"),R=n("9c78"),T=n("509b"),L=n("0b2d"),M={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},N=n("0ec0"),A=n("617d"),F=n("38f3"),j=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=function(t){function e(e,n){var r=t.call(this,e)||this;r.map_=e,r.clickTimeoutId_,r.emulateClicks_=!1,r.dragging_=!1,r.dragListenerKeys_=[],r.moveTolerance_=void 0===n?1:n,r.down_=null;var i=r.map_.getViewport();return r.activePointers_=[],r.trackedTouches_={},r.element_=i,r.pointerdownListenerKey_=Object(b["a"])(i,M.POINTERDOWN,r.handlePointerDown_,r),r.originalPointerMoveEvent_,r.relayedListenerKey_=Object(b["a"])(i,M.POINTERMOVE,r.relayMoveEvent_,r),r.boundHandleTouchMove_=r.handleTouchMove_.bind(r),r.element_.addEventListener(P["a"].TOUCHMOVE,r.boundHandleTouchMove_,!!A["e"]&&{passive:!1}),r}return j(e,t),e.prototype.emulateClick_=function(t){var e=new T["a"](L["a"].CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new T["a"](L["a"].DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var e=new T["a"](L["a"].SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var e=t,n=e.pointerId;if(e.type==L["a"].POINTERUP||e.type==L["a"].POINTERCANCEL){for(var r in delete this.trackedTouches_[n],this.trackedTouches_)if(this.trackedTouches_[r].target!==e.target){delete this.trackedTouches_[r];break}}else e.type!=L["a"].POINTERDOWN&&e.type!=L["a"].POINTERMOVE||(this.trackedTouches_[n]=e);this.activePointers_=Object(F["c"])(this.trackedTouches_)},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new T["a"](L["a"].POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(b["c"]),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},e.prototype.isMouseActionButton_=function(t){return 0===t.button},e.prototype.handlePointerDown_=function(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);var e=new T["a"](L["a"].POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);for(var n in this.dispatchEvent(e),this.down_={},t){var r=t[n];this.down_[n]="function"===typeof r?i["c"]:r}if(0===this.dragListenerKeys_.length){var o=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Object(b["a"])(o,L["a"].POINTERMOVE,this.handlePointerMove_,this),Object(b["a"])(o,L["a"].POINTERUP,this.handlePointerUp_,this),Object(b["a"])(this.element_,L["a"].POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==o&&this.dragListenerKeys_.push(Object(b["a"])(this.element_.getRootNode(),L["a"].POINTERUP,this.handlePointerUp_,this))}},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;var e=new T["a"](L["a"].POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}},e.prototype.relayMoveEvent_=function(t){this.originalPointerMoveEvent_=t;var e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new T["a"](L["a"].POINTERMOVE,this.map_,t,e))},e.prototype.handleTouchMove_=function(t){var e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||"boolean"===typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()},e.prototype.isMoving_=function(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(b["c"])(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(P["a"].TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Object(b["c"])(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(b["c"]),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(N["a"]),k=D,G=n("7238"),B=n("592d"),U={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},z=n("92fa"),Y=1/0,X=function(){function t(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return t.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Object(F["b"])(this.queuedElements_)},t.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var r=this.keyFunction_(n);return delete this.queuedElements_[r],n},t.prototype.enqueue=function(t){Object(z["a"])(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=Y&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},t.prototype.getCount=function(){return this.elements_.length},t.prototype.getLeftChildIndex_=function(t){return 2*t+1},t.prototype.getRightChildIndex_=function(t){return 2*t+2},t.prototype.getParentIndex_=function(t){return t-1>>1},t.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},t.prototype.isEmpty=function(){return 0===this.elements_.length},t.prototype.isKeyQueued=function(t){return t in this.queuedElements_},t.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},t.prototype.siftUp_=function(t){var e=this.elements_,n=this.priorities_,r=e.length,i=e[t],o=n[t],s=t;while(t<r>>1){var a=this.getLeftChildIndex_(t),u=this.getRightChildIndex_(t),c=u<r&&n[u]<n[a]?u:a;e[t]=e[c],n[t]=n[c],t=c}e[t]=i,n[t]=o,this.siftDown_(s,t)},t.prototype.siftDown_=function(t,e){var n=this.elements_,r=this.priorities_,i=n[e],o=r[e];while(e>t){var s=this.getParentIndex_(e);if(!(r[s]>o))break;n[e]=n[s],r[e]=r[s],e=s}n[e]=i,r[e]=o},t.prototype.reprioritize=function(){var t,e,n,r=this.priorityFunction_,i=this.elements_,o=this.priorities_,s=0,a=i.length;for(e=0;e<a;++e)t=i[e],n=r(t),n==Y?delete this.queuedElements_[this.keyFunction_(t)]:(o[s]=n,i[s++]=t);i.length=s,o.length=s,this.heapify_()},t}(),V=X,q=n("acc1"),W=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),H=function(t){function e(e,n){var r=t.call(this,(function(t){return e.apply(null,t)}),(function(t){return t[0].getKey()}))||this;return r.boundHandleTileChange_=r.handleTileChange.bind(r),r.tileChangeCallback_=n,r.tilesLoading_=0,r.tilesLoadingKeys_={},r}return W(e,t),e.prototype.enqueue=function(e){var n=t.prototype.enqueue.call(this,e);if(n){var r=e[0];r.addEventListener(P["a"].CHANGE,this.boundHandleTileChange_)}return n},e.prototype.getTilesLoading=function(){return this.tilesLoading_},e.prototype.handleTileChange=function(t){var e=t.target,n=e.getState();if(n===q["a"].LOADED||n===q["a"].ERROR||n===q["a"].EMPTY){e.removeEventListener(P["a"].CHANGE,this.boundHandleTileChange_);var r=e.getKey();r in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[r],--this.tilesLoading_),this.tileChangeCallback_()}},e.prototype.loadMoreTiles=function(t,e){var n,r,i,o=0;while(this.tilesLoading_<t&&o<e&&this.getCount()>0)r=this.dequeue()[0],i=r.getKey(),n=r.getState(),n!==q["a"].IDLE||i in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[i]=!0,++this.tilesLoading_,++o,r.load())},e}(V),Z=H;function K(t,e,n,r,i){if(!t||!(n in t.wantedTiles))return Y;if(!t.wantedTiles[n][e.getKey()])return Y;var o=t.viewState.center,s=r[0]-o[0],a=r[1]-o[1];return 65536*Math.log(i)+Math.sqrt(s*s+a*a)/i}var J=n("a2c7"),Q=n("496f"),$=n("256f"),tt=n("345d"),et=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function nt(t){t instanceof c["a"]?t.setMapInternal(null):t instanceof R["b"]&&t.getLayers().forEach(nt)}function rt(t,e){if(t instanceof c["a"])t.setMapInternal(e);else if(t instanceof R["b"])for(var n=t.getLayers().getArray(),r=0,i=n.length;r<i;++r)rt(n[r],e)}var it=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var r=ot(e);n.renderComplete_,n.loaded_=!0,n.boundHandleBrowserEvent_=n.handleBrowserEvent.bind(n),n.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,n.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:A["a"],n.postRenderTimeoutHandle_,n.animationDelayKey_,n.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(n),n.coordinateToPixelTransform_=Object(s["c"])(),n.pixelToCoordinateTransform_=Object(s["c"])(),n.frameIndex_=0,n.frameState_=null,n.previousExtent_=null,n.viewPropertyListenerKey_=null,n.viewChangeListenerKey_=null,n.layerGroupPropertyListenerKeys_=null,n.viewport_=document.createElement("div"),n.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),n.viewport_.style.position="relative",n.viewport_.style.overflow="hidden",n.viewport_.style.width="100%",n.viewport_.style.height="100%",n.overlayContainer_=document.createElement("div"),n.overlayContainer_.style.position="absolute",n.overlayContainer_.style.zIndex="0",n.overlayContainer_.style.width="100%",n.overlayContainer_.style.height="100%",n.overlayContainer_.style.pointerEvents="none",n.overlayContainer_.className="ol-overlaycontainer",n.viewport_.appendChild(n.overlayContainer_),n.overlayContainerStopEvent_=document.createElement("div"),n.overlayContainerStopEvent_.style.position="absolute",n.overlayContainerStopEvent_.style.zIndex="0",n.overlayContainerStopEvent_.style.width="100%",n.overlayContainerStopEvent_.style.height="100%",n.overlayContainerStopEvent_.style.pointerEvents="none",n.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",n.viewport_.appendChild(n.overlayContainerStopEvent_),n.mapBrowserEventHandler_=null,n.moveTolerance_=e.moveTolerance,n.keyboardEventTarget_=r.keyboardEventTarget,n.targetChangeHandlerKeys_=null,n.controls=r.controls||new C["a"],n.interactions=r.interactions||new C["a"],n.overlays_=r.overlays,n.overlayIdIndex_={},n.renderer_=null,n.postRenderFunctions_=[],n.tileQueue_=new Z(n.getTilePriority.bind(n),n.handleTileChange_.bind(n)),n.addChangeListener(U.LAYERGROUP,n.handleLayerGroupChanged_),n.addChangeListener(U.VIEW,n.handleViewChanged_),n.addChangeListener(U.SIZE,n.handleSizeChanged_),n.addChangeListener(U.TARGET,n.handleTargetChanged_),n.setProperties(r.values);var i=n;return!e.view||e.view instanceof J["a"]||e.view.then((function(t){i.setView(new J["a"](t))})),n.controls.addEventListener(I["a"].ADD,function(t){t.element.setMap(this)}.bind(n)),n.controls.addEventListener(I["a"].REMOVE,function(t){t.element.setMap(null)}.bind(n)),n.interactions.addEventListener(I["a"].ADD,function(t){t.element.setMap(this)}.bind(n)),n.interactions.addEventListener(I["a"].REMOVE,function(t){t.element.setMap(null)}.bind(n)),n.overlays_.addEventListener(I["a"].ADD,function(t){this.addOverlayInternal_(t.element)}.bind(n)),n.overlays_.addEventListener(I["a"].REMOVE,function(t){var e=t.element,n=e.getId();void 0!==n&&delete this.overlayIdIndex_[n.toString()],t.element.setMap(null)}.bind(n)),n.controls.forEach(function(t){t.setMap(this)}.bind(n)),n.interactions.forEach(function(t){t.setMap(this)}.bind(n)),n.overlays_.forEach(n.addOverlayInternal_.bind(n)),n}return et(e,t),e.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},e.prototype.addControl=function(t){this.getControls().push(t)},e.prototype.addInteraction=function(t){this.getInteractions().push(t)},e.prototype.addLayer=function(t){var e=this.getLayerGroup().getLayers();e.push(t)},e.prototype.handleLayerAdd_=function(t){rt(t.layer,this)},e.prototype.addOverlay=function(t){this.getOverlays().push(t)},e.prototype.addOverlayInternal_=function(t){var e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)},e.prototype.disposeInternal=function(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.setTarget(null),t.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtPixel=function(t,e,n){if(this.frameState_&&this.renderer_){var r=this.getCoordinateFromPixelInternal(t);n=void 0!==n?n:{};var o=void 0!==n.hitTolerance?n.hitTolerance:0,s=void 0!==n.layerFilter?n.layerFilter:i["b"],a=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(r,this.frameState_,o,a,e,null,s,null)}},e.prototype.getFeaturesAtPixel=function(t,e){var n=[];return this.forEachFeatureAtPixel(t,(function(t){n.push(t)}),e),n},e.prototype.getAllLayers=function(){var t=[];function e(n){n.forEach((function(n){n instanceof R["b"]?e(n.getLayers()):t.push(n)}))}return e(this.getLayers()),t},e.prototype.forEachLayerAtPixel=function(t,e,n){if(this.frameState_&&this.renderer_){var r=n||{},o=void 0!==r.hitTolerance?r.hitTolerance:0,s=r.layerFilter||i["b"];return this.renderer_.forEachLayerAtPixel(t,this.frameState_,o,e,s)}},e.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_||!this.renderer_)return!1;var n=this.getCoordinateFromPixelInternal(t);e=void 0!==e?e:{};var r=void 0!==e.layerFilter?e.layerFilter:i["b"],o=void 0!==e.hitTolerance?e.hitTolerance:0,s=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,o,s,r,null)},e.prototype.getEventCoordinate=function(t){return this.getCoordinateFromPixel(this.getEventPixel(t))},e.prototype.getEventCoordinateInternal=function(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))},e.prototype.getEventPixel=function(t){var e=this.viewport_.getBoundingClientRect(),n="changedTouches"in t?t.changedTouches[0]:t;return[n.clientX-e.left,n.clientY-e.top]},e.prototype.getTarget=function(){return this.get(U.TARGET)},e.prototype.getTargetElement=function(){var t=this.getTarget();return void 0!==t?"string"===typeof t?document.getElementById(t):t:null},e.prototype.getCoordinateFromPixel=function(t){return Object($["m"])(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())},e.prototype.getCoordinateFromPixelInternal=function(t){var e=this.frameState_;return e?Object(s["a"])(e.pixelToCoordinateTransform,t.slice()):null},e.prototype.getControls=function(){return this.controls},e.prototype.getOverlays=function(){return this.overlays_},e.prototype.getOverlayById=function(t){var e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getInteractions=function(){return this.interactions},e.prototype.getLayerGroup=function(){return this.get(U.LAYERGROUP)},e.prototype.setLayers=function(t){var e=this.getLayerGroup();if(t instanceof C["a"])e.setLayers(t);else{var n=e.getLayers();n.clear(),n.extend(t)}},e.prototype.getLayers=function(){var t=this.getLayerGroup().getLayers();return t},e.prototype.getLoadingOrNotReady=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,n=t.length;e<n;++e){var r=t[e];if(r.visible){var i=r.layer.getRenderer();if(i&&!i.ready)return!0;var o=r.layer.getSource();if(o&&o.loading)return!0}}return!1},e.prototype.getPixelFromCoordinate=function(t){var e=Object($["e"])(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)},e.prototype.getPixelFromCoordinateInternal=function(t){var e=this.frameState_;return e?Object(s["a"])(e.coordinateToPixelTransform,t.slice(0,2)):null},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.getSize=function(){return this.get(U.SIZE)},e.prototype.getView=function(){return this.get(U.VIEW)},e.prototype.getViewport=function(){return this.viewport_},e.prototype.getOverlayContainer=function(){return this.overlayContainer_},e.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},e.prototype.getOwnerDocument=function(){var t=this.getTargetElement();return t?t.ownerDocument:document},e.prototype.getTilePriority=function(t,e,n,r){return K(this.frameState_,t,e,n,r)},e.prototype.handleBrowserEvent=function(t,e){var n=e||t.type,r=new T["a"](n,this,t);this.handleMapBrowserEvent(r)},e.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){var e=t.originalEvent,n=e.type;if(n===M.POINTERDOWN||n===P["a"].WHEEL||n===P["a"].KEYDOWN){var r=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():r,o=e.target;if(this.overlayContainerStopEvent_.contains(o)||!(i===r?r.documentElement:i).contains(o))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t))for(var s=this.getInteractions().getArray().slice(),a=s.length-1;a>=0;a--){var u=s[a];if(u.getMap()===this&&u.getActive()&&this.getTargetElement()){var c=u.handleEvent(t);if(!c||t.propagationStopped)break}}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var n=this.maxTilesLoading_,r=n;if(t){var i=t.viewHints;if(i[Q["a"].ANIMATING]||i[Q["a"].INTERACTING]){var o=Date.now()-t.time>8;n=o?0:8,r=o?0:2}}e.getTilesLoading()<n&&(e.reprioritize(),e.loadMoreTiles(n,r))}t&&this.renderer_&&!t.animate&&(!0===this.renderComplete_?(this.hasListener(v["a"].RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(v["a"].RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new G["a"](B["a"].LOADEND,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new G["a"](B["a"].LOADSTART,this,t))));for(var s=this.postRenderFunctions_,a=0,u=s.length;a<u;++a)s[a](this,t);s.length=0},e.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},e.prototype.handleTargetChanged_=function(){if(this.mapBrowserEventHandler_){for(var t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)Object(b["c"])(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(P["a"].CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(P["a"].WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,Object(E["f"])(this.viewport_)}var n=this.getTargetElement();if(n){for(var r in n.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new k(this,this.moveTolerance_),L["a"])this.mapBrowserEventHandler_.addEventListener(L["a"][r],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(P["a"].CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(P["a"].WHEEL,this.boundHandleBrowserEvent_,!!A["e"]&&{passive:!1});var i=this.getOwnerDocument().defaultView,o=this.keyboardEventTarget_?this.keyboardEventTarget_:n;this.targetChangeHandlerKeys_=[Object(b["a"])(o,P["a"].KEYDOWN,this.handleBrowserEvent,this),Object(b["a"])(o,P["a"].KEYPRESS,this.handleBrowserEvent,this),Object(b["a"])(i,P["a"].RESIZE,this.updateSize,this)]}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);this.updateSize()},e.prototype.handleTileChange_=function(){this.render()},e.prototype.handleViewPropertyChanged_=function(){this.render()},e.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(Object(b["c"])(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Object(b["c"])(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=Object(b["a"])(t,g["a"].PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Object(b["a"])(t,P["a"].CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()},e.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(b["c"]),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.handleLayerAdd_(new R["a"]("addlayer",t)),this.layerGroupPropertyListenerKeys_=[Object(b["a"])(t,g["a"].PROPERTYCHANGE,this.render,this),Object(b["a"])(t,P["a"].CHANGE,this.render,this),Object(b["a"])(t,"addlayer",this.handleLayerAdd_,this),Object(b["a"])(t,"removelayer",this.handleLayerRemove_,this)]),this.render()},e.prototype.isRendered=function(){return!!this.frameState_},e.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},e.prototype.redrawText=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,n=t.length;e<n;++e){var r=t[e].layer;r.hasRenderer()&&r.getRenderer().handleFontsChanged()}},e.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},e.prototype.removeControl=function(t){return this.getControls().remove(t)},e.prototype.removeInteraction=function(t){return this.getInteractions().remove(t)},e.prototype.removeLayer=function(t){var e=this.getLayerGroup().getLayers();return e.remove(t)},e.prototype.handleLayerRemove_=function(t){nt(t.layer)},e.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},e.prototype.renderFrame_=function(t){var e=this,n=this.getSize(),r=this.getView(),i=this.frameState_,s=null;if(void 0!==n&&Object(tt["a"])(n)&&r&&r.isDef()){var u=r.getHints(this.frameState_?this.frameState_.viewHints:void 0),c=r.getState();if(s={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:Object(a["y"])(c.center,c.resolution,c.rotation,n),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:n,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:c,viewHints:u,wantedTiles:{},mapId:Object(o["c"])(this),renderTargets:{}},c.nextCenter&&c.nextResolution){var l=isNaN(c.nextRotation)?c.rotation:c.nextRotation;s.nextExtent=Object(a["y"])(c.nextCenter,c.nextResolution,l,n)}}if(this.frameState_=s,this.renderer_.renderFrame(s),s){if(s.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,s.postRenderFunctions),i){var h=!this.previousExtent_||!Object(a["H"])(this.previousExtent_)&&!Object(a["o"])(s.extent,this.previousExtent_);h&&(this.dispatchEvent(new G["a"](B["a"].MOVESTART,this,i)),this.previousExtent_=Object(a["l"])(this.previousExtent_))}var f=this.previousExtent_&&!s.viewHints[Q["a"].ANIMATING]&&!s.viewHints[Q["a"].INTERACTING]&&!Object(a["o"])(s.extent,this.previousExtent_);f&&(this.dispatchEvent(new G["a"](B["a"].MOVEEND,this,s)),Object(a["d"])(s.extent,this.previousExtent_))}this.dispatchEvent(new G["a"](B["a"].POSTRENDER,this,s)),this.renderComplete_=this.hasListener(B["a"].LOADSTART)||this.hasListener(B["a"].LOADEND)||this.hasListener(v["a"].RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((function(){e.postRenderTimeoutHandle_=void 0,e.handlePostRender()}),0))},e.prototype.setLayerGroup=function(t){var e=this.getLayerGroup();e&&this.handleLayerRemove_(new R["a"]("removelayer",e)),this.set(U.LAYERGROUP,t)},e.prototype.setSize=function(t){this.set(U.SIZE,t)},e.prototype.setTarget=function(t){this.set(U.TARGET,t)},e.prototype.setView=function(t){if(!t||t instanceof J["a"])this.set(U.VIEW,t);else{this.set(U.VIEW,new J["a"]);var e=this;t.then((function(t){e.setView(new J["a"](t))}))}},e.prototype.updateSize=function(){var t=this.getTargetElement(),e=void 0;if(t){var n=getComputedStyle(t),r=t.offsetWidth-parseFloat(n["borderLeftWidth"])-parseFloat(n["paddingLeft"])-parseFloat(n["paddingRight"])-parseFloat(n["borderRightWidth"]),i=t.offsetHeight-parseFloat(n["borderTopWidth"])-parseFloat(n["paddingTop"])-parseFloat(n["paddingBottom"])-parseFloat(n["borderBottomWidth"]);isNaN(r)||isNaN(i)||(e=[r,i],!Object(tt["a"])(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&console.warn("No map visible because the map container's width or height are 0."))}this.setSize(e),this.updateViewportSize_()},e.prototype.updateViewportSize_=function(){var t=this.getView();if(t){var e=void 0,n=getComputedStyle(this.viewport_);n.width&&n.height&&(e=[parseInt(n.width,10),parseInt(n.height,10)]),t.setViewportSize(e)}},e}(S["a"]);function ot(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"===typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var n,r,i,o={},s=t.layers&&"function"===typeof t.layers.getLayers?t.layers:new R["b"]({layers:t.layers});return o[U.LAYERGROUP]=s,o[U.TARGET]=t.target,o[U.VIEW]=t.view instanceof J["a"]?t.view:new J["a"],void 0!==t.controls&&(Array.isArray(t.controls)?n=new C["a"](t.controls.slice()):(Object(z["a"])("function"===typeof t.controls.getArray,47),n=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?r=new C["a"](t.interactions.slice()):(Object(z["a"])("function"===typeof t.interactions.getArray,48),r=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?i=new C["a"](t.overlays.slice()):(Object(z["a"])("function"===typeof t.overlays.getArray,49),i=t.overlays):i=new C["a"],{controls:n,interactions:r,keyboardEventTarget:e,overlays:i,values:o}}var st=it,at=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ut=function(t){function e(e){var n=t.call(this)||this,r=e.element;return!r||e.target||r.style.pointerEvents||(r.style.pointerEvents="auto"),n.element=r||null,n.target_=null,n.map_=null,n.listenerKeys=[],e.render&&(n.render=e.render),e.target&&n.setTarget(e.target),n}return at(e,t),e.prototype.disposeInternal=function(){Object(E["f"])(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&Object(E["f"])(this.element);for(var e=0,n=this.listenerKeys.length;e<n;++e)Object(b["c"])(this.listenerKeys[e]);if(this.listenerKeys.length=0,this.map_=t,t){var r=this.target_?this.target_:t.getOverlayContainerStopEvent();r.appendChild(this.element),this.render!==i["c"]&&this.listenerKeys.push(Object(b["a"])(t,B["a"].POSTRENDER,this.render,this)),t.render()}},e.prototype.render=function(t){},e.prototype.setTarget=function(t){this.target_="string"===typeof t?document.getElementById(t):t},e}(S["a"]),ct=ut,lt=n("9f5e"),ht=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ft=function(t){function e(e){var n=this,r=e||{};n=t.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this,n.ulElement_=document.createElement("ul"),n.collapsed_=void 0===r.collapsed||r.collapsed,n.userCollapsed_=n.collapsed_,n.overrideCollapsible_=void 0!==r.collapsible,n.collapsible_=void 0===r.collapsible||r.collapsible,n.collapsible_||(n.collapsed_=!1);var i=void 0!==r.className?r.className:"ol-attribution",o=void 0!==r.tipLabel?r.tipLabel:"Attributions",s=void 0!==r.expandClassName?r.expandClassName:i+"-expand",a=void 0!==r.collapseLabel?r.collapseLabel:"›",u=void 0!==r.collapseClassName?r.collapseClassName:i+"-collapse";"string"===typeof a?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=a,n.collapseLabel_.className=u):n.collapseLabel_=a;var c=void 0!==r.label?r.label:"i";"string"===typeof c?(n.label_=document.createElement("span"),n.label_.textContent=c,n.label_.className=s):n.label_=c;var l=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_;n.toggleButton_=document.createElement("button"),n.toggleButton_.setAttribute("type","button"),n.toggleButton_.setAttribute("aria-expanded",String(!n.collapsed_)),n.toggleButton_.title=o,n.toggleButton_.appendChild(l),n.toggleButton_.addEventListener(P["a"].CLICK,n.handleClick_.bind(n),!1);var h=i+" "+_["e"]+" "+_["b"]+(n.collapsed_&&n.collapsible_?" "+_["a"]:"")+(n.collapsible_?"":" ol-uncollapsible"),f=n.element;return f.className=h,f.appendChild(n.toggleButton_),f.appendChild(n.ulElement_),n.renderedAttributions_=[],n.renderedVisible_=!0,n}return ht(e,t),e.prototype.collectSourceAttributions_=function(t){for(var e={},n=[],r=!0,i=t.layerStatesArray,o=0,s=i.length;o<s;++o){var a=i[o];if(Object(c["b"])(a,t.viewState)){var u=a.layer.getSource();if(u){var l=u.getAttributions();if(l){var h=l(t);if(h)if(r=r&&!1!==u.getAttributionsCollapsible(),Array.isArray(h))for(var f=0,p=h.length;f<p;++f)h[f]in e||(n.push(h[f]),e[h[f]]=!0);else h in e||(n.push(h),e[h]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(r),n},e.prototype.updateElement_=function(t){if(t){var e=this.collectSourceAttributions_(t),n=e.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!Object(lt["b"])(e,this.renderedAttributions_)){Object(E["e"])(this.ulElement_);for(var r=0,i=e.length;r<i;++r){var o=document.createElement("li");o.innerHTML=e[r],this.ulElement_.appendChild(o)}this.renderedAttributions_=e}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_},e.prototype.handleToggle_=function(){this.element.classList.toggle(_["a"]),this.collapsed_?Object(E["h"])(this.collapseLabel_,this.label_):Object(E["h"])(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){this.userCollapsed_=t,this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.render=function(t){this.updateElement_(t.frameState)},e}(ct),pt=ft,dt=n("ca42"),gt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yt=function(t){function e(e){var n=this,r=e||{};n=t.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this;var i=void 0!==r.className?r.className:"ol-rotate",o=void 0!==r.label?r.label:"⇧",s=void 0!==r.compassClassName?r.compassClassName:"ol-compass";n.label_=null,"string"===typeof o?(n.label_=document.createElement("span"),n.label_.className=s,n.label_.textContent=o):(n.label_=o,n.label_.classList.add(s));var a=r.tipLabel?r.tipLabel:"Reset rotation",u=document.createElement("button");u.className=i+"-reset",u.setAttribute("type","button"),u.title=a,u.appendChild(n.label_),u.addEventListener(P["a"].CLICK,n.handleClick_.bind(n),!1);var c=i+" "+_["e"]+" "+_["b"],l=n.element;return l.className=c,l.appendChild(u),n.callResetNorth_=r.resetNorth?r.resetNorth:void 0,n.duration_=void 0!==r.duration?r.duration:250,n.autoHide_=void 0===r.autoHide||r.autoHide,n.rotation_=void 0,n.autoHide_&&n.element.classList.add(_["c"]),n}return gt(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},e.prototype.resetNorth_=function(){var t=this.getMap(),e=t.getView();if(e){var n=e.getRotation();void 0!==n&&(this.duration_>0&&n%(2*Math.PI)!==0?e.animate({rotation:0,duration:this.duration_,easing:dt["b"]}):e.setRotation(0))}},e.prototype.render=function(t){var e=t.frameState;if(e){var n=e.viewState.rotation;if(n!=this.rotation_){var r="rotate("+n+"rad)";if(this.autoHide_){var i=this.element.classList.contains(_["c"]);i||0!==n?i&&0!==n&&this.element.classList.remove(_["c"]):this.element.classList.add(_["c"])}this.label_.style.transform=r}this.rotation_=n}},e}(ct),vt=yt,_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mt=function(t){function e(e){var n=this,r=e||{};n=t.call(this,{element:document.createElement("div"),target:r.target})||this;var i=void 0!==r.className?r.className:"ol-zoom",o=void 0!==r.delta?r.delta:1,s=void 0!==r.zoomInClassName?r.zoomInClassName:i+"-in",a=void 0!==r.zoomOutClassName?r.zoomOutClassName:i+"-out",u=void 0!==r.zoomInLabel?r.zoomInLabel:"+",c=void 0!==r.zoomOutLabel?r.zoomOutLabel:"–",l=void 0!==r.zoomInTipLabel?r.zoomInTipLabel:"Zoom in",h=void 0!==r.zoomOutTipLabel?r.zoomOutTipLabel:"Zoom out",f=document.createElement("button");f.className=s,f.setAttribute("type","button"),f.title=l,f.appendChild("string"===typeof u?document.createTextNode(u):u),f.addEventListener(P["a"].CLICK,n.handleClick_.bind(n,o),!1);var p=document.createElement("button");p.className=a,p.setAttribute("type","button"),p.title=h,p.appendChild("string"===typeof c?document.createTextNode(c):c),p.addEventListener(P["a"].CLICK,n.handleClick_.bind(n,-o),!1);var d=i+" "+_["e"]+" "+_["b"],g=n.element;return g.className=d,g.appendChild(f),g.appendChild(p),n.duration_=void 0!==r.duration?r.duration:250,n}return _t(e,t),e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap(),n=e.getView();if(n){var r=n.getZoom();if(void 0!==r){var i=n.getConstrainedZoom(r+t);this.duration_>0?(n.getAnimating()&&n.cancelAnimations(),n.animate({zoom:i,duration:this.duration_,easing:dt["b"]})):n.setZoom(i)}}},e}(ct),bt=mt;function Et(t){var e=t||{},n=new C["a"],r=void 0===e.zoom||e.zoom;r&&n.push(new bt(e.zoomOptions));var i=void 0===e.rotate||e.rotate;i&&n.push(new vt(e.rotateOptions));var o=void 0===e.attribution||e.attribution;return o&&n.push(new pt(e.attributionOptions)),n}var wt=n("3a39"),xt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ot=function(t){function e(e){return e=Object(F["a"])({},e),e.controls||(e.controls=Et()),e.interactions||(e.interactions=Object(wt["a"])({onFocusOnly:!0})),t.call(this,e)||this}return xt(e,t),e.prototype.createRenderer=function(){return new O(this)},e}(st);e["a"]=Ot},"617d":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"f",(function(){return s})),n.d(e,"g",(function(){return a})),n.d(e,"d",(function(){return u})),n.d(e,"a",(function(){return c})),n.d(e,"h",(function(){return l})),n.d(e,"c",(function(){return h})),n.d(e,"e",(function(){return f}));var r="undefined"!==typeof navigator&&"undefined"!==typeof navigator.userAgent?navigator.userAgent.toLowerCase():"",i=-1!==r.indexOf("firefox"),o=-1!==r.indexOf("safari")&&-1==r.indexOf("chrom"),s=o&&!!(r.indexOf("version/15.4")>=0||r.match(/cpu (os|iphone os) 15_4 like mac os x/)),a=-1!==r.indexOf("webkit")&&-1==r.indexOf("edge"),u=-1!==r.indexOf("macintosh"),c="undefined"!==typeof devicePixelRatio?devicePixelRatio:1,l="undefined"!==typeof WorkerGlobalScope&&"undefined"!==typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,h="undefined"!==typeof Image&&Image.prototype.decode,f=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(n){}return t}()},6374:function(t,e,n){var r=n("da84"),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},"64d9":function(t,e,n){"use strict";var r=n("4cdf"),i=n("d352"),o=n("521b"),s=n("7a09"),a=n("47e4"),u=n("9a44"),c=n("88da"),l=n("f403"),h=n("5bc3"),f=n("8da7"),p=n("b7df"),d=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g={POINT:l["a"],LINESTRING:s["a"],POLYGON:h["a"],MULTIPOINT:u["a"],MULTILINESTRING:a["a"],MULTIPOLYGON:c["a"]},y="EMPTY",v="Z",_="M",m="ZM",b={START:0,TEXT:1,LEFT_PAREN:2,RIGHT_PAREN:3,NUMBER:4,COMMA:5,EOF:6},E={Point:"POINT",LineString:"LINESTRING",Polygon:"POLYGON",MultiPoint:"MULTIPOINT",MultiLineString:"MULTILINESTRING",MultiPolygon:"MULTIPOLYGON",GeometryCollection:"GEOMETRYCOLLECTION",Circle:"CIRCLE"},w=function(){function t(t){this.wkt=t,this.index_=-1}return t.prototype.isAlpha_=function(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"},t.prototype.isNumeric_=function(t,e){var n=void 0!==e&&e;return t>="0"&&t<="9"||"."==t&&!n},t.prototype.isWhiteSpace_=function(t){return" "==t||"\t"==t||"\r"==t||"\n"==t},t.prototype.nextChar_=function(){return this.wkt.charAt(++this.index_)},t.prototype.nextToken=function(){var t,e=this.nextChar_(),n=this.index_,r=e;if("("==e)t=b.LEFT_PAREN;else if(","==e)t=b.COMMA;else if(")"==e)t=b.RIGHT_PAREN;else if(this.isNumeric_(e)||"-"==e)t=b.NUMBER,r=this.readNumber_();else if(this.isAlpha_(e))t=b.TEXT,r=this.readText_();else{if(this.isWhiteSpace_(e))return this.nextToken();if(""!==e)throw new Error("Unexpected character: "+e);t=b.EOF}return{position:n,value:r,type:t}},t.prototype.readNumber_=function(){var t,e=this.index_,n=!1,r=!1;do{"."==t?n=!0:"e"!=t&&"E"!=t||(r=!0),t=this.nextChar_()}while(this.isNumeric_(t,n)||!r&&("e"==t||"E"==t)||r&&("-"==t||"+"==t));return parseFloat(this.wkt.substring(e,this.index_--))},t.prototype.readText_=function(){var t,e=this.index_;do{t=this.nextChar_()}while(this.isAlpha_(t));return this.wkt.substring(e,this.index_--).toUpperCase()},t}(),x=function(){function t(t){this.lexer_=t,this.token_={position:0,type:b.START},this.layout_=o["a"].XY}return t.prototype.consume_=function(){this.token_=this.lexer_.nextToken()},t.prototype.isTokenType=function(t){return this.token_.type==t},t.prototype.match=function(t){var e=this.isTokenType(t);return e&&this.consume_(),e},t.prototype.parse=function(){return this.consume_(),this.parseGeometry_()},t.prototype.parseGeometryLayout_=function(){var t=o["a"].XY,e=this.token_;if(this.isTokenType(b.TEXT)){var n=e.value;n===v?t=o["a"].XYZ:n===_?t=o["a"].XYM:n===m&&(t=o["a"].XYZM),t!==o["a"].XY&&this.consume_()}return t},t.prototype.parseGeometryCollectionText_=function(){if(this.match(b.LEFT_PAREN)){var t=[];do{t.push(this.parseGeometry_())}while(this.match(b.COMMA));if(this.match(b.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parsePointText_=function(){if(this.match(b.LEFT_PAREN)){var t=this.parsePoint_();if(this.match(b.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parseLineStringText_=function(){if(this.match(b.LEFT_PAREN)){var t=this.parsePointList_();if(this.match(b.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parsePolygonText_=function(){if(this.match(b.LEFT_PAREN)){var t=this.parseLineStringTextList_();if(this.match(b.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parseMultiPointText_=function(){if(this.match(b.LEFT_PAREN)){var t=void 0;if(t=this.token_.type==b.LEFT_PAREN?this.parsePointTextList_():this.parsePointList_(),this.match(b.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parseMultiLineStringText_=function(){if(this.match(b.LEFT_PAREN)){var t=this.parseLineStringTextList_();if(this.match(b.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parseMultiPolygonText_=function(){if(this.match(b.LEFT_PAREN)){var t=this.parsePolygonTextList_();if(this.match(b.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())},t.prototype.parsePoint_=function(){for(var t=[],e=this.layout_.length,n=0;n<e;++n){var r=this.token_;if(!this.match(b.NUMBER))break;t.push(r.value)}if(t.length==e)return t;throw new Error(this.formatErrorMessage_())},t.prototype.parsePointList_=function(){var t=[this.parsePoint_()];while(this.match(b.COMMA))t.push(this.parsePoint_());return t},t.prototype.parsePointTextList_=function(){var t=[this.parsePointText_()];while(this.match(b.COMMA))t.push(this.parsePointText_());return t},t.prototype.parseLineStringTextList_=function(){var t=[this.parseLineStringText_()];while(this.match(b.COMMA))t.push(this.parseLineStringText_());return t},t.prototype.parsePolygonTextList_=function(){var t=[this.parsePolygonText_()];while(this.match(b.COMMA))t.push(this.parsePolygonText_());return t},t.prototype.isEmptyGeometry_=function(){var t=this.isTokenType(b.TEXT)&&this.token_.value==y;return t&&this.consume_(),t},t.prototype.formatErrorMessage_=function(){return"Unexpected `"+this.token_.value+"` at position "+this.token_.position+" in `"+this.lexer_.wkt+"`"},t.prototype.parseGeometry_=function(){var t=this.token_;if(this.match(b.TEXT)){var e=t.value;this.layout_=this.parseGeometryLayout_();var n=this.isEmptyGeometry_();if("GEOMETRYCOLLECTION"==e){if(n)return new i["a"]([]);var r=this.parseGeometryCollectionText_();return new i["a"](r)}var o=g[e];if(!o)throw new Error("Invalid geometry type: "+e);var s=void 0;if(n)s="POINT"==e?[NaN,NaN]:[];else switch(e){case"POINT":s=this.parsePointText_();break;case"LINESTRING":s=this.parseLineStringText_();break;case"POLYGON":s=this.parsePolygonText_();break;case"MULTIPOINT":s=this.parseMultiPointText_();break;case"MULTILINESTRING":s=this.parseMultiLineStringText_();break;case"MULTIPOLYGON":s=this.parseMultiPolygonText_();break;default:break}return new o(s,this.layout_)}throw new Error(this.formatErrorMessage_())},t}(),O=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.splitCollection_=void 0!==r.splitCollection&&r.splitCollection,n}return d(e,t),e.prototype.parse_=function(t){var e=new w(t),n=new x(e);return n.parse()},e.prototype.readFeatureFromText=function(t,e){var n=this.readGeometryFromText(t,e),i=new r["a"];return i.setGeometry(n),i},e.prototype.readFeaturesFromText=function(t,e){var n=[],i=this.readGeometryFromText(t,e);n=this.splitCollection_&&"GeometryCollection"==i.getType()?i.getGeometriesArray():[i];for(var o=[],s=0,a=n.length;s<a;++s){var u=new r["a"];u.setGeometry(n[s]),o.push(u)}return o},e.prototype.readGeometryFromText=function(t,e){var n=this.parse_(t);return Object(p["c"])(n,!1,e)},e.prototype.writeFeatureText=function(t,e){var n=t.getGeometry();return n?this.writeGeometryText(n,e):""},e.prototype.writeFeaturesText=function(t,e){if(1==t.length)return this.writeFeatureText(t[0],e);for(var n=[],r=0,o=t.length;r<o;++r)n.push(t[r].getGeometry());var s=new i["a"](n);return this.writeGeometryText(s,e)},e.prototype.writeGeometryText=function(t,e){return A(Object(p["c"])(t,!0,e))},e}(f["a"]);function S(t){var e=t.getCoordinates();return 0===e.length?"":e.join(" ")}function C(t){for(var e=[],n=t.getPoints(),r=0,i=n.length;r<i;++r)e.push("("+S(n[r])+")");return e.join(",")}function I(t){for(var e=[],n=t.getGeometries(),r=0,i=n.length;r<i;++r)e.push(A(n[r]));return e.join(",")}function P(t){for(var e=t.getCoordinates(),n=[],r=0,i=e.length;r<i;++r)n.push(e[r].join(" "));return n.join(",")}function R(t){for(var e=[],n=t.getLineStrings(),r=0,i=n.length;r<i;++r)e.push("("+P(n[r])+")");return e.join(",")}function T(t){for(var e=[],n=t.getLinearRings(),r=0,i=n.length;r<i;++r)e.push("("+P(n[r])+")");return e.join(",")}function L(t){for(var e=[],n=t.getPolygons(),r=0,i=n.length;r<i;++r)e.push("("+T(n[r])+")");return e.join(",")}function M(t){var e=t.getLayout(),n="";return e!==o["a"].XYZ&&e!==o["a"].XYZM||(n+=v),e!==o["a"].XYM&&e!==o["a"].XYZM||(n+=_),n}var N={Point:S,LineString:P,Polygon:T,MultiPoint:C,MultiLineString:R,MultiPolygon:L,GeometryCollection:I};function A(t){var e=t.getType(),n=N[e],r=n(t),i=E[e];if("function"===typeof t.getFlatCoordinates){var o=M(t);o.length>0&&(i+=" "+o)}return 0===r.length?i+" "+y:i+"("+r+")"}e["a"]=O},6611:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n("01d4"),i=n("0ec0"),o=n("1300"),s=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.extent=e,o.pixelRatio_=r,o.resolution=n,o.state=i,o}return s(e,t),e.prototype.changed=function(){this.dispatchEvent(r["a"].CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return Object(o["b"])()},e.prototype.getPixelRatio=function(){return this.pixelRatio_},e.prototype.getResolution=function(){return this.resolution},e.prototype.getState=function(){return this.state},e.prototype.load=function(){Object(o["b"])()},e}(i["a"]),u=a,c=n("869f"),l=n("617d"),h=n("0af5"),f=n("1e8d"),p=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(e,n,r,i,o,s){var a=t.call(this,e,n,r,c["a"].IDLE)||this;return a.src_=i,a.image_=new Image,null!==o&&(a.image_.crossOrigin=o),a.unlisten_=null,a.state=c["a"].IDLE,a.imageLoadFunction_=s,a}p(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=c["a"].ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=Object(h["z"])(this.extent)/this.image_.height),this.state=c["a"].LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=c["a"].IDLE&&this.state!=c["a"].ERROR||(this.state=c["a"].LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=d(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.setImage=function(t){this.image_=t,this.resolution=Object(h["z"])(this.extent)/this.image_.height},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}})(u);function d(t,e,n){var i=t,o=!0,s=!1,a=!1,u=[Object(f["b"])(i,r["a"].LOAD,(function(){a=!0,s||e()}))];return i.src&&l["c"]?(s=!0,i.decode().then((function(){o&&e()})).catch((function(t){o&&(a?e():n())}))):u.push(Object(f["b"])(i,r["a"].ERROR,n)),function(){o=!1,u.forEach(f["c"])}}},"69f3":function(t,e,n){var r,i,o,s=n("cdce"),a=n("da84"),u=n("861d"),c=n("9112"),l=n("1a2d"),h=n("c6cd"),f=n("f772"),p=n("d012"),d="Object already initialized",g=a.TypeError,y=a.WeakMap,v=function(t){return o(t)?i(t):r(t,{})},_=function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return n}};if(s||h.state){var m=h.state||(h.state=new y);m.get=m.get,m.has=m.has,m.set=m.set,r=function(t,e){if(m.has(t))throw g(d);return e.facade=t,m.set(t,e),e},i=function(t){return m.get(t)||{}},o=function(t){return m.has(t)}}else{var b=f("state");p[b]=!0,r=function(t,e){if(l(t,b))throw g(d);return e.facade=t,c(t,b,e),e},i=function(t){return l(t,b)?t[b]:{}},o=function(t){return l(t,b)}}t.exports={set:r,get:i,has:o,enforce:v,getterFor:_}},"6c77":function(t,e,n){"use strict";n.d(e,"d",(function(){return u})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return h}));var r=n("ce2c"),i=n("83a6"),o=n("8682"),s=n("92fa"),a=function(){function t(t){var e=t||{};this.geometry_=null,this.geometryFunction_=f,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.hitDetectionRenderer_=void 0!==e.hitDetectionRenderer?e.hitDetectionRenderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex}return t.prototype.clone=function(){var e=this.getGeometry();return e&&"object"===typeof e&&(e=e.clone()),new t({geometry:e,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.setRenderer=function(t){this.renderer_=t},t.prototype.setHitDetectionRenderer=function(t){this.hitDetectionRenderer_=t},t.prototype.getHitDetectionRenderer=function(){return this.hitDetectionRenderer_},t.prototype.getGeometry=function(){return this.geometry_},t.prototype.getGeometryFunction=function(){return this.geometryFunction_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(t){this.fill_=t},t.prototype.getImage=function(){return this.image_},t.prototype.setImage=function(t){this.image_=t},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.getText=function(){return this.text_},t.prototype.setText=function(t){this.text_=t},t.prototype.getZIndex=function(){return this.zIndex_},t.prototype.setGeometry=function(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_=f,this.geometry_=t},t.prototype.setZIndex=function(t){this.zIndex_=t},t}();function u(t){var e;if("function"===typeof t)e=t;else{var n;if(Array.isArray(t))n=t;else{Object(s["a"])("function"===typeof t.getZIndex,41);var r=t;n=[r]}e=function(){return n}}return e}var c=null;function l(t,e){if(!c){var n=new i["a"]({color:"rgba(255,255,255,0.4)"}),s=new o["a"]({color:"#3399CC",width:1.25});c=[new a({image:new r["a"]({fill:n,stroke:s,radius:5}),fill:n,stroke:s})]}return c}function h(){var t={},e=[255,255,255,1],n=[0,153,255,1],s=3;return t["Polygon"]=[new a({fill:new i["a"]({color:[255,255,255,.5]})})],t["MultiPolygon"]=t["Polygon"],t["LineString"]=[new a({stroke:new o["a"]({color:e,width:s+2})}),new a({stroke:new o["a"]({color:n,width:s})})],t["MultiLineString"]=t["LineString"],t["Circle"]=t["Polygon"].concat(t["LineString"]),t["Point"]=[new a({image:new r["a"]({radius:2*s,fill:new i["a"]({color:n}),stroke:new o["a"]({color:e,width:s/2})}),zIndex:1/0})],t["MultiPoint"]=t["Point"],t["GeometryCollection"]=t["Polygon"].concat(t["LineString"],t["Point"]),t}function f(t){return t.getGeometry()}e["c"]=a},"6cbf":function(t,e,n){"use strict";var r=n("01d4"),i=n("82b0"),o=n("d202"),s=n("869f"),a=n("ab35"),u=n("5c38"),c=n("92fa"),l=n("0ec0"),h=n("0999"),f=n("3c22"),p=n("6611"),d=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=null,y=function(t){function e(e,n,r,i,o,s){var a=t.call(this)||this;return a.hitDetectionImage_=null,a.image_=e||new Image,null!==i&&(a.image_.crossOrigin=i),a.canvas_={},a.color_=s,a.unlisten_=null,a.imageState_=o,a.size_=r,a.src_=n,a.tainted_,a}return d(e,t),e.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===s["a"].LOADED){g||(g=Object(h["a"])(1,1)),g.drawImage(this.image_,0,0);try{g.getImageData(0,0,1,1),this.tainted_=!1}catch(t){g=null,this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(r["a"].CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=s["a"].ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=s["a"].LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_},e.prototype.getPixelRatio=function(t){return this.replaceColor_(t),this.canvas_[t]?t:1},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var t=this.size_[0],e=this.size_[1],n=Object(h["a"])(t,e);n.fillRect(0,0,t,e),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},e.prototype.getSize=function(){return this.size_},e.prototype.getSrc=function(){return this.src_},e.prototype.load=function(){if(this.imageState_==s["a"].IDLE){this.imageState_=s["a"].LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=Object(p["a"])(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},e.prototype.replaceColor_=function(t){if(this.color_&&!this.canvas_[t]&&this.imageState_===s["a"].LOADED){var e=document.createElement("canvas");this.canvas_[t]=e,e.width=Math.ceil(this.image_.width*t),e.height=Math.ceil(this.image_.height*t);var n=e.getContext("2d");if(n.scale(t,t),n.drawImage(this.image_,0,0),n.globalCompositeOperation="multiply","multiply"===n.globalCompositeOperation||this.isTainted_())n.fillStyle=Object(u["b"])(this.color_),n.fillRect(0,0,e.width/t,e.height/t),n.globalCompositeOperation="destination-in",n.drawImage(this.image_,0,0);else{for(var r=n.getImageData(0,0,e.width,e.height),i=r.data,o=this.color_[0]/255,a=this.color_[1]/255,c=this.color_[2]/255,l=this.color_[3],h=0,f=i.length;h<f;h+=4)i[h]*=o,i[h+1]*=a,i[h+2]*=c,i[h+3]*=l;n.putImageData(r,0,0)}}},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(l["a"]);function v(t,e,n,r,i,o){var s=f["a"].get(e,r,o);return s||(s=new y(t,e,n,r,i,o),f["a"].set(e,r,o,s)),s}var _=n("1300"),m=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b=function(t){function e(e){var n=this,r=e||{},a=void 0!==r.opacity?r.opacity:1,l=void 0!==r.rotation?r.rotation:0,h=void 0!==r.scale?r.scale:1,f=void 0!==r.rotateWithView&&r.rotateWithView;n=t.call(this,{opacity:a,rotation:l,scale:h,displacement:void 0!==r.displacement?r.displacement:[0,0],rotateWithView:f,declutterMode:r.declutterMode})||this,n.anchor_=void 0!==r.anchor?r.anchor:[.5,.5],n.normalizedAnchor_=null,n.anchorOrigin_=void 0!==r.anchorOrigin?r.anchorOrigin:o["a"].TOP_LEFT,n.anchorXUnits_=void 0!==r.anchorXUnits?r.anchorXUnits:i["a"].FRACTION,n.anchorYUnits_=void 0!==r.anchorYUnits?r.anchorYUnits:i["a"].FRACTION,n.crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:null;var p=void 0!==r.img?r.img:null;n.imgSize_=r.imgSize;var d=r.src;Object(c["a"])(!(void 0!==d&&p),4),Object(c["a"])(!p||p&&n.imgSize_,5),void 0!==d&&0!==d.length||!p||(d=p.src||Object(_["c"])(p)),Object(c["a"])(void 0!==d&&d.length>0,6);var g=void 0!==r.src?s["a"].IDLE:s["a"].LOADED;return n.color_=void 0!==r.color?Object(u["a"])(r.color):null,n.iconImage_=v(p,d,void 0!==n.imgSize_?n.imgSize_:null,n.crossOrigin_,g,n.color_),n.offset_=void 0!==r.offset?r.offset:[0,0],n.offsetOrigin_=void 0!==r.offsetOrigin?r.offsetOrigin:o["a"].TOP_LEFT,n.origin_=null,n.size_=void 0!==r.size?r.size:null,n}return m(e,t),e.prototype.clone=function(){var t=this.getScale();return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(t)?t.slice():t,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},e.prototype.getAnchor=function(){var t=this.normalizedAnchor_;if(!t){t=this.anchor_;var e=this.getSize();if(this.anchorXUnits_==i["a"].FRACTION||this.anchorYUnits_==i["a"].FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==i["a"].FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==i["a"].FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=o["a"].TOP_LEFT){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=o["a"].TOP_RIGHT&&this.anchorOrigin_!=o["a"].BOTTOM_RIGHT||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=o["a"].BOTTOM_LEFT&&this.anchorOrigin_!=o["a"].BOTTOM_RIGHT||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}var n=this.getDisplacement();return[t[0]-n[0],t[1]+n[1]]},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=o["a"].TOP_LEFT){var e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),this.offsetOrigin_!=o["a"].TOP_RIGHT&&this.offsetOrigin_!=o["a"].BOTTOM_RIGHT||(t[0]=n[0]-e[0]-t[0]),this.offsetOrigin_!=o["a"].BOTTOM_LEFT&&this.offsetOrigin_!=o["a"].BOTTOM_RIGHT||(t[1]=n[1]-e[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(r["a"].CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(r["a"].CHANGE,t)},e}(a["a"]);e["a"]=b},"6d08":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return function(e){var n=t,r=n.lib,i=r.CipherParams,o=n.enc,s=o.Hex,a=n.format;a.Hex={stringify:function(t){return t.ciphertext.toString(s)},parse:function(t){var e=s.parse(t);return i.create({ciphertext:e})}}}(),t.format.Hex}))},"6f19":function(t,e,n){var r=n("9112"),i=n("0d26"),o=n("b980"),s=Error.captureStackTrace;t.exports=function(t,e,n,a){o&&(s?s(t,e):r(t,"stack",i(n,a)))}},7156:function(t,e,n){var r=n("1626"),i=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var s,a;return o&&r(s=e.constructor)&&s!==n&&i(a=s.prototype)&&a!==n.prototype&&o(t,a),t}},7234:function(t,e){t.exports=function(t){return null===t||void 0===t}},7238:function(t,e,n){"use strict";var r=n("cef7"),i=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.map=n,i.frameState=void 0!==r?r:null,i}return i(e,t),e}(r["a"]);e["a"]=o},"72fe":function(t,e,n){(function(e,r){t.exports=r(n("21bf"))})(0,(function(t){return function(e){var n=t,r=n.lib,i=r.WordArray,o=r.Hasher,s=n.algo,a=[];(function(){for(var t=0;t<64;t++)a[t]=4294967296*e.abs(e.sin(t+1))|0})();var u=s.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,s=t[e+0],u=t[e+1],p=t[e+2],d=t[e+3],g=t[e+4],y=t[e+5],v=t[e+6],_=t[e+7],m=t[e+8],b=t[e+9],E=t[e+10],w=t[e+11],x=t[e+12],O=t[e+13],S=t[e+14],C=t[e+15],I=o[0],P=o[1],R=o[2],T=o[3];I=c(I,P,R,T,s,7,a[0]),T=c(T,I,P,R,u,12,a[1]),R=c(R,T,I,P,p,17,a[2]),P=c(P,R,T,I,d,22,a[3]),I=c(I,P,R,T,g,7,a[4]),T=c(T,I,P,R,y,12,a[5]),R=c(R,T,I,P,v,17,a[6]),P=c(P,R,T,I,_,22,a[7]),I=c(I,P,R,T,m,7,a[8]),T=c(T,I,P,R,b,12,a[9]),R=c(R,T,I,P,E,17,a[10]),P=c(P,R,T,I,w,22,a[11]),I=c(I,P,R,T,x,7,a[12]),T=c(T,I,P,R,O,12,a[13]),R=c(R,T,I,P,S,17,a[14]),P=c(P,R,T,I,C,22,a[15]),I=l(I,P,R,T,u,5,a[16]),T=l(T,I,P,R,v,9,a[17]),R=l(R,T,I,P,w,14,a[18]),P=l(P,R,T,I,s,20,a[19]),I=l(I,P,R,T,y,5,a[20]),T=l(T,I,P,R,E,9,a[21]),R=l(R,T,I,P,C,14,a[22]),P=l(P,R,T,I,g,20,a[23]),I=l(I,P,R,T,b,5,a[24]),T=l(T,I,P,R,S,9,a[25]),R=l(R,T,I,P,d,14,a[26]),P=l(P,R,T,I,m,20,a[27]),I=l(I,P,R,T,O,5,a[28]),T=l(T,I,P,R,p,9,a[29]),R=l(R,T,I,P,_,14,a[30]),P=l(P,R,T,I,x,20,a[31]),I=h(I,P,R,T,y,4,a[32]),T=h(T,I,P,R,m,11,a[33]),R=h(R,T,I,P,w,16,a[34]),P=h(P,R,T,I,S,23,a[35]),I=h(I,P,R,T,u,4,a[36]),T=h(T,I,P,R,g,11,a[37]),R=h(R,T,I,P,_,16,a[38]),P=h(P,R,T,I,E,23,a[39]),I=h(I,P,R,T,O,4,a[40]),T=h(T,I,P,R,s,11,a[41]),R=h(R,T,I,P,d,16,a[42]),P=h(P,R,T,I,v,23,a[43]),I=h(I,P,R,T,b,4,a[44]),T=h(T,I,P,R,x,11,a[45]),R=h(R,T,I,P,C,16,a[46]),P=h(P,R,T,I,p,23,a[47]),I=f(I,P,R,T,s,6,a[48]),T=f(T,I,P,R,_,10,a[49]),R=f(R,T,I,P,S,15,a[50]),P=f(P,R,T,I,y,21,a[51]),I=f(I,P,R,T,x,6,a[52]),T=f(T,I,P,R,d,10,a[53]),R=f(R,T,I,P,E,15,a[54]),P=f(P,R,T,I,u,21,a[55]),I=f(I,P,R,T,m,6,a[56]),T=f(T,I,P,R,C,10,a[57]),R=f(R,T,I,P,v,15,a[58]),P=f(P,R,T,I,O,21,a[59]),I=f(I,P,R,T,g,6,a[60]),T=f(T,I,P,R,w,10,a[61]),R=f(R,T,I,P,p,15,a[62]),P=f(P,R,T,I,b,21,a[63]),o[0]=o[0]+I|0,o[1]=o[1]+P|0,o[2]=o[2]+R|0,o[3]=o[3]+T|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),s=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,u=a.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return a},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,n,r,i,o,s){var a=t+(e&n|~e&r)+i+s;return(a<<o|a>>>32-o)+e}function l(t,e,n,r,i,o,s){var a=t+(e&r|n&~r)+i+s;return(a<<o|a>>>32-o)+e}function h(t,e,n,r,i,o,s){var a=t+(e^n^r)+i+s;return(a<<o|a>>>32-o)+e}function f(t,e,n,r,i,o,s){var a=t+(n^(e|~r))+i+s;return(a<<o|a>>>32-o)+e}n.MD5=o._createHelper(u),n.HmacMD5=o._createHmacHelper(u)}(Math),t.MD5}))},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"78db":function(t,e,n){"use strict";var r=n("dc07"),i=n("0414"),o=n("92fa"),s=n("7fc9"),a=n("0af5"),u=n("2c30"),c=n("c560"),l=n("9f5e"),h=n("345d"),f=[0,0,0],p=5,d=function(){function t(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,Object(o["a"])(Object(l["g"])(this.resolutions_,(function(t,e){return e-t}),!0),17),!t.origins)for(var n=0,s=this.resolutions_.length-1;n<s;++n)if(e){if(this.resolutions_[n]/this.resolutions_[n+1]!==e){e=void 0;break}}else e=this.resolutions_[n]/this.resolutions_[n+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,Object(o["a"])(this.origins_.length==this.resolutions_.length,20));var u=t.extent;void 0===u||this.origin_||this.origins_||(this.origin_=Object(a["C"])(u)),Object(o["a"])(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,Object(o["a"])(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:i["b"],Object(o["a"])(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==u?u:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map((function(t,e){var n=new r["b"](Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(u){var i=this.getTileRangeForExtentAndZ(u,e);n.minX=Math.max(i.minX,n.minX),n.maxX=Math.min(i.maxX,n.maxX),n.minY=Math.max(i.minY,n.minY),n.maxY=Math.min(i.maxY,n.maxY)}return n}),this):u&&this.calculateTileRanges_(u)}return t.prototype.forEachTileCoord=function(t,e,n){for(var r=this.getTileRangeForExtentAndZ(t,e),i=r.minX,o=r.maxX;i<=o;++i)for(var s=r.minY,a=r.maxY;s<=a;++s)n([e,i,s])},t.prototype.forEachTileCoordParentTileRange=function(t,e,n,i){var o,s,a,u=null,c=t[0]-1;2===this.zoomFactor_?(s=t[1],a=t[2]):u=this.getTileCoordExtent(t,i);while(c>=this.minZoom){if(2===this.zoomFactor_?(s=Math.floor(s/2),a=Math.floor(a/2),o=Object(r["a"])(s,s,a,a,n)):o=this.getTileRangeForExtentAndZ(u,c,n),e(c,o))return!0;--c}return!1},t.prototype.getExtent=function(){return this.extent_},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.getMinZoom=function(){return this.minZoom},t.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},t.prototype.getResolution=function(t){return this.resolutions_[t]},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getTileCoordChildTileRange=function(t,e,n){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){var i=2*t[1],o=2*t[2];return Object(r["a"])(i,i+1,o,o+1,e)}var s=this.getTileCoordExtent(t,n||this.tmpExtent_);return this.getTileRangeForExtentAndZ(s,t[0]+1,e)}return null},t.prototype.getTileRangeForTileCoordAndZ=function(t,e,n){if(e>this.maxZoom||e<this.minZoom)return null;var i=t[0],o=t[1],s=t[2];if(e===i)return Object(r["a"])(o,s,o,s,n);if(this.zoomFactor_){var a=Math.pow(this.zoomFactor_,e-i),u=Math.floor(o*a),c=Math.floor(s*a);if(e<i)return Object(r["a"])(u,u,c,c,n);var l=Math.floor(a*(o+1))-1,h=Math.floor(a*(s+1))-1;return Object(r["a"])(u,l,c,h,n)}var f=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(f,e,n)},t.prototype.getTileRangeExtent=function(t,e,n){var r=this.getOrigin(t),i=this.getResolution(t),o=Object(h["c"])(this.getTileSize(t),this.tmpSize_),s=r[0]+e.minX*o[0]*i,u=r[0]+(e.maxX+1)*o[0]*i,c=r[1]+e.minY*o[1]*i,l=r[1]+(e.maxY+1)*o[1]*i;return Object(a["k"])(s,c,u,l,n)},t.prototype.getTileRangeForExtentAndZ=function(t,e,n){var i=f;this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,i);var o=i[1],s=i[2];return this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,i),Object(r["a"])(o,i[1],s,i[2],n)},t.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),n=this.getResolution(t[0]),r=Object(h["c"])(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*r[0]*n,e[1]-(t[2]+.5)*r[1]*n]},t.prototype.getTileCoordExtent=function(t,e){var n=this.getOrigin(t[0]),r=this.getResolution(t[0]),i=Object(h["c"])(this.getTileSize(t[0]),this.tmpSize_),o=n[0]+t[1]*i[0]*r,s=n[1]-(t[2]+1)*i[1]*r,u=o+i[0]*r,c=s+i[1]*r;return Object(a["k"])(o,s,u,c,e)},t.prototype.getTileCoordForCoordAndResolution=function(t,e,n){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,n)},t.prototype.getTileCoordForXYAndResolution_=function(t,e,n,r,i){var o=this.getZForResolution(n),a=n/this.getResolution(o),c=this.getOrigin(o),l=Object(h["c"])(this.getTileSize(o),this.tmpSize_),f=a*(t-c[0])/n/l[0],d=a*(c[1]-e)/n/l[1];return r?(f=Object(s["a"])(f,p)-1,d=Object(s["a"])(d,p)-1):(f=Object(s["d"])(f,p),d=Object(s["d"])(d,p)),Object(u["a"])(o,f,d,i)},t.prototype.getTileCoordForXYAndZ_=function(t,e,n,r,i){var o=this.getOrigin(n),a=this.getResolution(n),c=Object(h["c"])(this.getTileSize(n),this.tmpSize_),l=(t-o[0])/a/c[0],f=(o[1]-e)/a/c[1];return r?(l=Object(s["a"])(l,p)-1,f=Object(s["a"])(f,p)-1):(l=Object(s["d"])(l,p),f=Object(s["d"])(f,p)),Object(u["a"])(n,l,f,i)},t.prototype.getTileCoordForCoordAndZ=function(t,e,n){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,n)},t.prototype.getTileCoordResolution=function(t){return this.resolutions_[t[0]]},t.prototype.getTileSize=function(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]},t.prototype.getFullTileRange=function(t){return this.fullTileRanges_?this.fullTileRanges_[t]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,t):null},t.prototype.getZForResolution=function(t,e){var n=Object(l["h"])(this.resolutions_,t,e||0);return Object(s["b"])(n,this.minZoom,this.maxZoom)},t.prototype.tileCoordIntersectsViewport=function(t,e){return Object(c["c"])(e,0,e.length,2,this.getTileCoordExtent(t))},t.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,n=new Array(e),r=this.minZoom;r<e;++r)n[r]=this.getTileRangeForExtentAndZ(t,r);this.fullTileRanges_=n},t}();e["a"]=d},"790a":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return c})),n.d(e,"d",(function(){return l}));var r=n("7fc9"),i=6371008.8;function o(t,e,n){var o=n||i,s=Object(r["l"])(t[1]),a=Object(r["l"])(e[1]),u=(a-s)/2,c=Object(r["l"])(e[0]-t[0])/2,l=Math.sin(u)*Math.sin(u)+Math.sin(c)*Math.sin(c)*Math.cos(s)*Math.cos(a);return 2*o*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}function s(t,e){for(var n=0,r=0,i=t.length;r<i-1;++r)n+=o(t[r],t[r+1],e);return n}function a(t,e){var n=e||{},r=n.radius||i,o=n.projection||"EPSG:3857",u=t.getType();"GeometryCollection"!==u&&(t=t.clone().transform(o,"EPSG:4326"));var c,l,h,f,p,d,g=0;switch(u){case"Point":case"MultiPoint":break;case"LineString":case"LinearRing":c=t.getCoordinates(),g=s(c,r);break;case"MultiLineString":case"Polygon":for(c=t.getCoordinates(),h=0,f=c.length;h<f;++h)g+=s(c[h],r);break;case"MultiPolygon":for(c=t.getCoordinates(),h=0,f=c.length;h<f;++h)for(l=c[h],p=0,d=l.length;p<d;++p)g+=s(l[p],r);break;case"GeometryCollection":var y=t.getGeometries();for(h=0,f=y.length;h<f;++h)g+=a(y[h],e);break;default:throw new Error("Unsupported geometry type: "+u)}return g}function u(t,e){for(var n=0,i=t.length,o=t[i-1][0],s=t[i-1][1],a=0;a<i;a++){var u=t[a][0],c=t[a][1];n+=Object(r["l"])(u-o)*(2+Math.sin(Object(r["l"])(s))+Math.sin(Object(r["l"])(c))),o=u,s=c}return n*e*e/2}function c(t,e){var n=e||{},r=n.radius||i,o=n.projection||"EPSG:3857",s=t.getType();"GeometryCollection"!==s&&(t=t.clone().transform(o,"EPSG:4326"));var a,l,h,f,p,d,g=0;switch(s){case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"LinearRing":break;case"Polygon":for(a=t.getCoordinates(),g=Math.abs(u(a[0],r)),h=1,f=a.length;h<f;++h)g-=Math.abs(u(a[h],r));break;case"MultiPolygon":for(a=t.getCoordinates(),h=0,f=a.length;h<f;++h)for(l=a[h],g+=Math.abs(u(l[0],r)),p=1,d=l.length;p<d;++p)g-=Math.abs(u(l[p],r));break;case"GeometryCollection":var y=t.getGeometries();for(h=0,f=y.length;h<f;++h)g+=c(y[h],e);break;default:throw new Error("Unsupported geometry type: "+s)}return g}function l(t,e,n,o){var s=o||i,a=Object(r["l"])(t[1]),u=Object(r["l"])(t[0]),c=e/s,l=Math.asin(Math.sin(a)*Math.cos(c)+Math.cos(a)*Math.sin(c)*Math.cos(n)),h=u+Math.atan2(Math.sin(n)*Math.sin(c)*Math.cos(a),Math.cos(c)-Math.sin(a)*Math.sin(l));return[Object(r["k"])(h),Object(r["k"])(l)]}},7915:function(t,e,n){"use strict";t.exports=i;var r=n("9152");function i(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}i.Varint=0,i.Fixed64=1,i.Bytes=2,i.Fixed32=5;var o=4294967296,s=1/o,a=12,u="undefined"===typeof TextDecoder?null:new TextDecoder("utf8");function c(t,e,n){var r,i,o=n.buf;if(i=o[n.pos++],r=(112&i)>>4,i<128)return h(t,r,e);if(i=o[n.pos++],r|=(127&i)<<3,i<128)return h(t,r,e);if(i=o[n.pos++],r|=(127&i)<<10,i<128)return h(t,r,e);if(i=o[n.pos++],r|=(127&i)<<17,i<128)return h(t,r,e);if(i=o[n.pos++],r|=(127&i)<<24,i<128)return h(t,r,e);if(i=o[n.pos++],r|=(1&i)<<31,i<128)return h(t,r,e);throw new Error("Expected varint not more than 10 bytes")}function l(t){return t.type===i.Bytes?t.readVarint()+t.pos:t.pos+1}function h(t,e,n){return n?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function f(t,e){var n,r;if(t>=0?(n=t%4294967296|0,r=t/4294967296|0):(n=~(-t%4294967296),r=~(-t/4294967296),4294967295^n?n=n+1|0:(n=0,r=r+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),p(n,r,e),d(r,e)}function p(t,e,n){n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos]=127&t}function d(t,e){var n=(7&t)<<4;e.buf[e.pos++]|=n|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}function g(t,e,n){var r=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=t;i--)n.buf[i+r]=n.buf[i]}function y(t,e){for(var n=0;n<t.length;n++)e.writeVarint(t[n])}function v(t,e){for(var n=0;n<t.length;n++)e.writeSVarint(t[n])}function _(t,e){for(var n=0;n<t.length;n++)e.writeFloat(t[n])}function m(t,e){for(var n=0;n<t.length;n++)e.writeDouble(t[n])}function b(t,e){for(var n=0;n<t.length;n++)e.writeBoolean(t[n])}function E(t,e){for(var n=0;n<t.length;n++)e.writeFixed32(t[n])}function w(t,e){for(var n=0;n<t.length;n++)e.writeSFixed32(t[n])}function x(t,e){for(var n=0;n<t.length;n++)e.writeFixed64(t[n])}function O(t,e){for(var n=0;n<t.length;n++)e.writeSFixed64(t[n])}function S(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function C(t,e,n){t[n]=e,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24}function I(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function P(t,e,n){var r="",i=e;while(i<n){var o,s,a,u=t[i],c=null,l=u>239?4:u>223?3:u>191?2:1;if(i+l>n)break;1===l?u<128&&(c=u):2===l?(o=t[i+1],128===(192&o)&&(c=(31&u)<<6|63&o,c<=127&&(c=null))):3===l?(o=t[i+1],s=t[i+2],128===(192&o)&&128===(192&s)&&(c=(15&u)<<12|(63&o)<<6|63&s,(c<=2047||c>=55296&&c<=57343)&&(c=null))):4===l&&(o=t[i+1],s=t[i+2],a=t[i+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(c=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a,(c<=65535||c>=1114112)&&(c=null))),null===c?(c=65533,l=1):c>65535&&(c-=65536,r+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),r+=String.fromCharCode(c),i+=l}return r}function R(t,e,n){return u.decode(t.subarray(e,n))}function T(t,e,n){for(var r,i,o=0;o<e.length;o++){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!i){r>56319||o+1===e.length?(t[n++]=239,t[n++]=191,t[n++]=189):i=r;continue}if(r<56320){t[n++]=239,t[n++]=191,t[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(t[n++]=239,t[n++]=191,t[n++]=189,i=null);r<128?t[n++]=r:(r<2048?t[n++]=r>>6|192:(r<65536?t[n++]=r>>12|224:(t[n++]=r>>18|240,t[n++]=r>>12&63|128),t[n++]=r>>6&63|128),t[n++]=63&r|128)}return n}i.prototype={destroy:function(){this.buf=null},readFields:function(t,e,n){n=n||this.length;while(this.pos<n){var r=this.readVarint(),i=r>>3,o=this.pos;this.type=7&r,t(i,e,this),this.pos===o&&this.skip(r)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=S(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=I(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=S(this.buf,this.pos)+S(this.buf,this.pos+4)*o;return this.pos+=8,t},readSFixed64:function(){var t=S(this.buf,this.pos)+I(this.buf,this.pos+4)*o;return this.pos+=8,t},readFloat:function(){var t=r.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=r.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,n,r=this.buf;return n=r[this.pos++],e=127&n,n<128?e:(n=r[this.pos++],e|=(127&n)<<7,n<128?e:(n=r[this.pos++],e|=(127&n)<<14,n<128?e:(n=r[this.pos++],e|=(127&n)<<21,n<128?e:(n=r[this.pos],e|=(15&n)<<28,c(e,t,this)))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2===1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=a&&u?R(this.buf,e,t):P(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==i.Bytes)return t.push(this.readVarint(e));var n=l(this);t=t||[];while(this.pos<n)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==i.Bytes)return t.push(this.readSVarint());var e=l(this);t=t||[];while(this.pos<e)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==i.Bytes)return t.push(this.readBoolean());var e=l(this);t=t||[];while(this.pos<e)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==i.Bytes)return t.push(this.readFloat());var e=l(this);t=t||[];while(this.pos<e)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==i.Bytes)return t.push(this.readDouble());var e=l(this);t=t||[];while(this.pos<e)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==i.Bytes)return t.push(this.readFixed32());var e=l(this);t=t||[];while(this.pos<e)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==i.Bytes)return t.push(this.readSFixed32());var e=l(this);t=t||[];while(this.pos<e)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==i.Bytes)return t.push(this.readFixed64());var e=l(this);t=t||[];while(this.pos<e)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==i.Bytes)return t.push(this.readSFixed64());var e=l(this);t=t||[];while(this.pos<e)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===i.Varint)while(this.buf[this.pos++]>127);else if(e===i.Bytes)this.pos=this.readVarint()+this.pos;else if(e===i.Fixed32)this.pos+=4;else{if(e!==i.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){var e=this.length||16;while(e<this.pos+t)e*=2;if(e!==this.length){var n=new Uint8Array(e);n.set(this.buf),this.buf=n,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),C(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),C(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),C(this.buf,-1&t,this.pos),C(this.buf,Math.floor(t*s),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),C(this.buf,-1&t,this.pos),C(this.buf,Math.floor(t*s),this.pos+4),this.pos+=8},writeVarint:function(t){t=+t||0,t>268435455||t<0?f(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=T(this.buf,t,this.pos);var n=this.pos-e;n>=128&&g(e,n,this),this.pos=e-1,this.writeVarint(n),this.pos+=n},writeFloat:function(t){this.realloc(4),r.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),r.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var n=0;n<e;n++)this.buf[this.pos++]=t[n]},writeRawMessage:function(t,e){this.pos++;var n=this.pos;t(e,this);var r=this.pos-n;r>=128&&g(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(t,e,n){this.writeTag(t,i.Bytes),this.writeRawMessage(e,n)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,y,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,v,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,b,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,_,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,m,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,E,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,w,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,x,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,O,e)},writeBytesField:function(t,e){this.writeTag(t,i.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,i.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,i.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,i.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,i.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,i.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,i.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,i.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,i.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,i.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}}},"7a09":function(t,e,n){"use strict";var r=n("521b"),i=n("9abc"),o=n("9769"),s=n("0af5"),a=n("abb7"),u=n("1c48"),c=n("9f5e"),l=n("fd4d"),h=n("bb6c"),f=n("b1a2"),p=n("c560"),d=n("5938"),g=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y=function(t){function e(e,n){var r=t.call(this)||this;return r.flatMidpoint_=null,r.flatMidpointRevision_=-1,r.maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===n||Array.isArray(e[0])?r.setCoordinates(e,n):r.setFlatCoordinates(n,e),r}return g(e,t),e.prototype.appendCoordinate=function(t){this.flatCoordinates?Object(c["c"])(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,r){return r<Object(s["e"])(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(o["e"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(o["d"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,n,r))},e.prototype.forEachSegment=function(t){return Object(l["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinateAtM=function(t,e){if(this.layout!=r["a"].XYM&&this.layout!=r["a"].XYZM)return null;var n=void 0!==e&&e;return Object(f["b"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n)},e.prototype.getCoordinates=function(){return Object(h["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinateAt=function(t,e){return Object(f["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)},e.prototype.getLength=function(){return Object(d["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[];return n.length=Object(u["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,0),new e(n,r["a"].XY)},e.prototype.getType=function(){return"LineString"},e.prototype.intersectsExtent=function(t){return Object(p["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(a["b"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(i["a"]);e["a"]=y},"7b0b":function(t,e,n){var r=n("1d80"),i=Object;t.exports=function(t){return i(r(t))}},"7b4f":function(t,e,n){"use strict";e["a"]={PROPERTYCHANGE:"propertychange"}},"7bbc":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("df2f"),n("5980"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.Base,i=n.WordArray,o=e.algo,s=o.SHA1,a=o.HMAC,u=o.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:s,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var n=this.cfg,r=a.create(n.hasher,t),o=i.create(),s=i.create([1]),u=o.words,c=s.words,l=n.keySize,h=n.iterations;while(u.length<l){var f=r.update(e).finalize(s);r.reset();for(var p=f.words,d=p.length,g=f,y=1;y<h;y++){g=r.finalize(g),r.reset();for(var v=g.words,_=0;_<d;_++)p[_]^=v[_]}o.concat(f),c[0]++}return o.sigBytes=4*l,o}});e.PBKDF2=function(t,e,n){return u.create(n).compute(t,e)}}(),t.PBKDF2}))},"7f98":function(t,e,n){"use strict";var r=n("5e31"),i=n("acc1"),o=n("0999"),s=n("6611"),a=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(t){function e(e,n,r,i,o,s){var a=t.call(this,e,n,s)||this;return a.crossOrigin_=i,a.src_=r,a.key=r,a.image_=new Image,null!==i&&(a.image_.crossOrigin=i),a.unlisten_=null,a.tileLoadFunction_=o,a}return a(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=i["a"].LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){this.state=i["a"].ERROR,this.unlistenImage_(),this.image_=c(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=i["a"].LOADED:this.state=i["a"].EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==i["a"].ERROR&&(this.state=i["a"].IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==i["a"].IDLE&&(this.state=i["a"].LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Object(s["a"])(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(r["a"]);function c(){var t=Object(o["a"])(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}e["a"]=u},"7fc9":function(t,e,n){"use strict";function r(t,e,n){return Math.min(Math.max(t,e),n)}n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"j",(function(){return s})),n.d(e,"i",(function(){return a})),n.d(e,"h",(function(){return u})),n.d(e,"k",(function(){return c})),n.d(e,"l",(function(){return l})),n.d(e,"g",(function(){return h})),n.d(e,"e",(function(){return f})),n.d(e,"d",(function(){return d})),n.d(e,"a",(function(){return g}));var i=function(){var t;return t="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2},t}(),o=function(){var t;return t="log2"in Math?Math.log2:function(t){return Math.log(t)*Math.LOG2E},t}();function s(t,e,n,r,i,o){var s=i-n,u=o-r;if(0!==s||0!==u){var c=((t-n)*s+(e-r)*u)/(s*s+u*u);c>1?(n=i,r=o):c>0&&(n+=s*c,r+=u*c)}return a(t,e,n,r)}function a(t,e,n,r){var i=n-t,o=r-e;return i*i+o*o}function u(t){for(var e=t.length,n=0;n<e;n++){for(var r=n,i=Math.abs(t[n][n]),o=n+1;o<e;o++){var s=Math.abs(t[o][n]);s>i&&(i=s,r=o)}if(0===i)return null;var a=t[r];t[r]=t[n],t[n]=a;for(var u=n+1;u<e;u++)for(var c=-t[u][n]/t[n][n],l=n;l<e+1;l++)n==l?t[u][l]=0:t[u][l]+=c*t[n][l]}for(var h=new Array(e),f=e-1;f>=0;f--){h[f]=t[f][e]/t[f][f];for(var p=f-1;p>=0;p--)t[p][e]-=t[p][f]*h[f]}return h}function c(t){return 180*t/Math.PI}function l(t){return t*Math.PI/180}function h(t,e){var n=t%e;return n*e<0?n+e:n}function f(t,e,n){return t+n*(e-t)}function p(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n}function d(t,e){return Math.floor(p(t,e))}function g(t,e){return Math.ceil(p(t,e))}},"7fd1":function(t,e,n){"use strict";(function(t){function r(){var e='const e="function"==typeof Object.assign?Object.assign:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const t=Object(e);for(let e=1,n=arguments.length;e<n;++e){const n=arguments[e];if(null!=n)for(const e in n)n.hasOwnProperty(e)&&(t[e]=n[e])}return t},n="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"";n.indexOf("firefox");-1!==n.indexOf("safari")&&-1==n.indexOf("chrom")&&(n.indexOf("version/15.4")>=0||n.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==n.indexOf("webkit")&&n.indexOf("edge"),n.indexOf("macintosh"),"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&(self,WorkerGlobalScope),function(){let e=!1;try{const n=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("_",null,n),window.removeEventListener("_",null,n)}catch(e){}}(),new Array(6);const t="GENERATE_BUFFERS",o=[],r={vertexPosition:0,indexPosition:0};function i(e,n,t,o,r){e[n+0]=t,e[n+1]=o,e[n+2]=r}function s(e,n,t,s,f,c){const l=3+f,a=e[n+0],u=e[n+1],d=o;d.length=f;for(let t=0;t<d.length;t++)d[t]=e[n+2+t];let g=c?c.vertexPosition:0,x=c?c.indexPosition:0;const h=g/l;return i(t,g,a,u,0),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,1),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,2),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,3),d.length&&t.set(d,g+3),g+=l,s[x++]=h,s[x++]=h+1,s[x++]=h+3,s[x++]=h+1,s[x++]=h+2,s[x++]=h+3,r.vertexPosition=g,r.indexPosition=x,r}const f=self;f.onmessage=n=>{const o=n.data;if(o.type===t){const n=3,t=2,r=o.customAttributesCount,i=t+r,c=new Float32Array(o.renderInstructions),l=c.length/i,a=4*l*(r+n),u=new Uint32Array(6*l),d=new Float32Array(a);let g;for(let e=0;e<c.length;e+=i)g=s(c,e,d,u,r,g);const x=e({vertexBuffer:d.buffer,indexBuffer:u.buffer,renderInstructions:c.buffer},o);f.postMessage(x,[d.buffer,u.buffer,c.buffer])}};';return new Worker("undefined"===typeof Blob?"data:application/javascript;base64,"+t.from(e,"binary").toString("base64"):URL.createObjectURL(new Blob([e],{type:"application/javascript"})))}n.d(e,"a",(function(){return r}))}).call(this,n("b639").Buffer)},"81bf":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),e}(),t.mode.ECB}))},"825a":function(t,e,n){var r=n("861d"),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not an object")}},8295:function(t,e,n){"use strict";var r=n("83a6"),i=n("29f6"),o=n("345d"),s="#333",a=function(){function t(t){var e=t||{};this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.scaleArray_=Object(o["c"])(void 0!==e.scale?e.scale:1),this.text_=e.text,this.textAlign_=e.textAlign,this.justify_=e.justify,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new r["a"]({color:s}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:i["a"].POINT,this.overflow_=!!e.overflow,this.stroke_=void 0!==e.stroke?e.stroke:null,this.offsetX_=void 0!==e.offsetX?e.offsetX:0,this.offsetY_=void 0!==e.offsetY?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=void 0===e.padding?null:e.padding}return t.prototype.clone=function(){var e=this.getScale();return new t({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})},t.prototype.getOverflow=function(){return this.overflow_},t.prototype.getFont=function(){return this.font_},t.prototype.getMaxAngle=function(){return this.maxAngle_},t.prototype.getPlacement=function(){return this.placement_},t.prototype.getOffsetX=function(){return this.offsetX_},t.prototype.getOffsetY=function(){return this.offsetY_},t.prototype.getFill=function(){return this.fill_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.getText=function(){return this.text_},t.prototype.getTextAlign=function(){return this.textAlign_},t.prototype.getJustify=function(){return this.justify_},t.prototype.getTextBaseline=function(){return this.textBaseline_},t.prototype.getBackgroundFill=function(){return this.backgroundFill_},t.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},t.prototype.getPadding=function(){return this.padding_},t.prototype.setOverflow=function(t){this.overflow_=t},t.prototype.setFont=function(t){this.font_=t},t.prototype.setMaxAngle=function(t){this.maxAngle_=t},t.prototype.setOffsetX=function(t){this.offsetX_=t},t.prototype.setOffsetY=function(t){this.offsetY_=t},t.prototype.setPlacement=function(t){this.placement_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setFill=function(t){this.fill_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=Object(o["c"])(void 0!==t?t:1)},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.setText=function(t){this.text_=t},t.prototype.setTextAlign=function(t){this.textAlign_=t},t.prototype.setJustify=function(t){this.justify_=t},t.prototype.setTextBaseline=function(t){this.textBaseline_=t},t.prototype.setBackgroundFill=function(t){this.backgroundFill_=t},t.prototype.setBackgroundStroke=function(t){this.backgroundStroke_=t},t.prototype.setPadding=function(t){this.padding_=t},t}();e["a"]=a},"82b0":function(t,e,n){"use strict";e["a"]={FRACTION:"fraction",PIXELS:"pixels"}},"835b":function(t,e,n){"use strict";var r=n("1300"),i=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(t){function e(e){var n=this,i="latest"===r["a"]?r["a"]:"v"+r["a"].split("-")[0],o="Assertion failed. See https://openlayers.org/en/"+i+"/doc/errors/#"+e+" for details.";return n=t.call(this,o)||this,n.code=e,n.name="AssertionError",n.message=o,n}return i(e,t),e}(Error);e["a"]=o},"83a6":function(t,e,n){"use strict";var r=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0})},t.prototype.getColor=function(){return this.color_},t.prototype.setColor=function(t){this.color_=t},t}();e["a"]=r},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,e,n){var r=n("1626"),i=n("8ea1"),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===o}:function(t){return"object"==typeof t?null!==t:r(t)}},8682:function(t,e,n){"use strict";var r=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width}return t.prototype.clone=function(){var 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(),width:this.getWidth()})},t.prototype.getColor=function(){return this.color_},t.prototype.getLineCap=function(){return this.lineCap_},t.prototype.getLineDash=function(){return this.lineDash_},t.prototype.getLineDashOffset=function(){return this.lineDashOffset_},t.prototype.getLineJoin=function(){return this.lineJoin_},t.prototype.getMiterLimit=function(){return this.miterLimit_},t.prototype.getWidth=function(){return this.width_},t.prototype.setColor=function(t){this.color_=t},t.prototype.setLineCap=function(t){this.lineCap_=t},t.prototype.setLineDash=function(t){this.lineDash_=t},t.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t},t.prototype.setLineJoin=function(t){this.lineJoin_=t},t.prototype.setMiterLimit=function(t){this.miterLimit_=t},t.prototype.setWidth=function(t){this.width_=t},t}();e["a"]=r},"869f":function(t,e,n){"use strict";e["a"]={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},"88da":function(t,e,n){"use strict";var r=n("521b"),i=n("9a44"),o=n("5bc3"),s=n("9abc"),a=n("9769"),u=n("0af5"),c=n("abb7"),l=n("9f5e"),h=n("0a9d"),f=n("bb6c"),p=n("c560"),d=n("4d98"),g=n("b589"),y=n("9159"),v=n("25f1"),_=n("1c48"),m=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b=function(t){function e(e,n,r){var i=t.call(this)||this;if(i.endss_=[],i.flatInteriorPointsRevision_=-1,i.flatInteriorPoints_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,!r&&!Array.isArray(e[0])){for(var o=i.getLayout(),s=e,a=[],u=[],c=0,h=s.length;c<h;++c){var f=s[c];0===c&&(o=f.getLayout());for(var p=a.length,d=f.getEnds(),g=0,y=d.length;g<y;++g)d[g]+=p;Object(l["c"])(a,f.getFlatCoordinates()),u.push(d)}n=o,e=a,r=u}return void 0!==n&&r?(i.setFlatCoordinates(n,e),i.endss_=r):i.setCoordinates(e,n),i}return m(e,t),e.prototype.appendPolygon=function(t){var e;if(this.flatCoordinates){var n=this.flatCoordinates.length;Object(l["c"])(this.flatCoordinates,t.getFlatCoordinates()),e=t.getEnds().slice();for(var r=0,i=e.length;r<i;++r)e[r]+=n}else this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();this.endss_.push(e),this.changed()},e.prototype.clone=function(){for(var t=this.endss_.length,n=new Array(t),r=0;r<t;++r)n[r]=this.endss_[r].slice();var i=new e(this.flatCoordinates.slice(),this.layout,n);return i.applyProperties(this),i},e.prototype.closestPointXY=function(t,e,n,r){return r<Object(u["e"])(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(a["f"])(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(a["c"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,e,n,r))},e.prototype.containsXY=function(t,e){return Object(v["d"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)},e.prototype.getArea=function(){return Object(g["c"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),Object(d["f"])(e,0,this.endss_,this.stride,t)):e=this.flatCoordinates,Object(f["c"])(e,0,this.endss_,this.stride)},e.prototype.getEndss=function(){return this.endss_},e.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var t=Object(y["a"])(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=Object(h["b"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},e.prototype.getInteriorPoints=function(){return new i["a"](this.getFlatInteriorPoints().slice(),r["a"].XYM)},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;Object(d["d"])(t,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=Object(d["f"])(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],i=[];return n.length=Object(_["d"])(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),n,0,i),new e(n,r["a"].XY,i)},e.prototype.getPolygon=function(t){if(t<0||this.endss_.length<=t)return null;var e;if(0===t)e=0;else{var n=this.endss_[t-1];e=n[n.length-1]}var r=this.endss_[t].slice(),i=r[r.length-1];if(0!==e)for(var s=0,a=r.length;s<a;++s)r[s]-=e;return new o["a"](this.flatCoordinates.slice(e,i),this.layout,r)},e.prototype.getPolygons=function(){for(var t=this.layout,e=this.flatCoordinates,n=this.endss_,r=[],i=0,s=0,a=n.length;s<a;++s){var u=n[s].slice(),c=u[u.length-1];if(0!==i)for(var l=0,h=u.length;l<h;++l)u[l]-=i;var f=new o["a"](e.slice(i,c),t,u);r.push(f),i=c}return r},e.prototype.getType=function(){return"MultiPolygon"},e.prototype.intersectsExtent=function(t){return Object(p["e"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);var n=Object(c["d"])(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===n.length)this.flatCoordinates.length=0;else{var r=n[n.length-1];this.flatCoordinates.length=0===r.length?0:r[r.length-1]}this.changed()},e}(s["a"]);e["a"]=b},8925:function(t,e,n){var r=n("e330"),i=n("1626"),o=n("c6cd"),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},"8cc5":function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a}));var r=n("7fc9");function i(t){return void 0!==t?0:void 0}function o(t){return void 0!==t?t:void 0}function s(t){var e=2*Math.PI/t;return function(t,n){return n?t:void 0!==t?(t=Math.floor(t/e+.5)*e,t):void 0}}function a(t){var e=t||Object(r["l"])(5);return function(t,n){return n?t:void 0!==t?Math.abs(t)<=e?0:t:void 0}}},"8cef":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.Iso97971={pad:function(e,n){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,n)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971}))},"8da7":function(t,e,n){"use strict";var r=n("b7df"),i=n("1300"),o=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(t){function e(){return t.call(this)||this}return o(e,t),e.prototype.getType=function(){return"text"},e.prototype.readFeature=function(t,e){return this.readFeatureFromText(a(t),this.adaptOptions(e))},e.prototype.readFeatureFromText=function(t,e){return Object(i["b"])()},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromText(a(t),this.adaptOptions(e))},e.prototype.readFeaturesFromText=function(t,e){return Object(i["b"])()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromText(a(t),this.adaptOptions(e))},e.prototype.readGeometryFromText=function(t,e){return Object(i["b"])()},e.prototype.readProjection=function(t){return this.readProjectionFromText(a(t))},e.prototype.readProjectionFromText=function(t){return this.dataProjection},e.prototype.writeFeature=function(t,e){return this.writeFeatureText(t,this.adaptOptions(e))},e.prototype.writeFeatureText=function(t,e){return Object(i["b"])()},e.prototype.writeFeatures=function(t,e){return this.writeFeaturesText(t,this.adaptOptions(e))},e.prototype.writeFeaturesText=function(t,e){return Object(i["b"])()},e.prototype.writeGeometry=function(t,e){return this.writeGeometryText(t,this.adaptOptions(e))},e.prototype.writeGeometryText=function(t,e){return Object(i["b"])()},e}(r["a"]);function a(t){return"string"===typeof t?t:""}e["a"]=s},"8ea1":function(t,e){var n="object"==typeof document&&document.all,r="undefined"==typeof n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:r}},"8f37":function(t,e,n){"use strict";var r=n("e269"),i=n("fced"),o=n("1300"),s=n("a896"),a=n("0af5"),u=n("256f"),c=n("57cb"),l=n("bef8"),h=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f=Object(s["c"])(),p=function(t){function e(){var e=t.call(this)||this;return e.extent_=Object(a["j"])(),e.extentRevision_=-1,e.simplifiedGeometryMaxMinSquaredTolerance=0,e.simplifiedGeometryRevision=0,e.simplifyTransformedInternal=Object(c["d"])((function(t,e,n){if(!n)return this.getSimplifiedGeometry(e);var r=this.clone();return r.applyTransform(n),r.getSimplifiedGeometry(e)})),e}return h(e,t),e.prototype.simplifyTransformed=function(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)},e.prototype.clone=function(){return Object(o["b"])()},e.prototype.closestPointXY=function(t,e,n,r){return Object(o["b"])()},e.prototype.containsXY=function(t,e){var n=this.getClosestPoint([t,e]);return n[0]===t&&n[1]===e},e.prototype.getClosestPoint=function(t,e){var n=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],n,1/0),n},e.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},e.prototype.computeExtent=function(t){return Object(o["b"])()},e.prototype.getExtent=function(t){if(this.extentRevision_!=this.getRevision()){var e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&Object(a["l"])(e),this.extentRevision_=this.getRevision()}return Object(a["I"])(this.extent_,t)},e.prototype.rotate=function(t,e){Object(o["b"])()},e.prototype.scale=function(t,e,n){Object(o["b"])()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return Object(o["b"])()},e.prototype.getType=function(){return Object(o["b"])()},e.prototype.applyTransform=function(t){Object(o["b"])()},e.prototype.intersectsExtent=function(t){return Object(o["b"])()},e.prototype.translate=function(t,e){Object(o["b"])()},e.prototype.transform=function(t,e){var n=Object(u["h"])(t),r=n.getUnits()==i["b"].TILE_PIXELS?function(t,r,i){var o=n.getExtent(),c=n.getWorldExtent(),h=Object(a["z"])(c)/Object(a["z"])(o);return Object(s["b"])(f,c[0],c[3],h,-h,0,0,0),Object(l["c"])(t,0,t.length,i,f,r),Object(u["j"])(n,e)(t,r,i)}:Object(u["j"])(n,e);return this.applyTransform(r),this},e}(r["a"]);e["a"]=p},"90e3":function(t,e,n){var r=n("e330"),i=0,o=Math.random(),s=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9152:function(t,e){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
e.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,c=u>>1,l=-7,h=n?i-1:0,f=n?-1:1,p=t[e+h];for(h+=f,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[e+h],h+=f,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+t[e+h],h+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),o-=c}return(p?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,h=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),e+=s+h>=1?f/u:f*Math.pow(2,1-h),e*u>=2&&(s++,u/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(e*u-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[n+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;t[n+p]=255&s,p+=d,s/=256,c-=8);t[n+p-d]|=128*g}},9159:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("0af5");function i(t,e,n,i){for(var o=[],s=Object(r["j"])(),a=0,u=n.length;a<u;++a){var c=n[a];s=Object(r["n"])(t,e,c[0],i),o.push((s[0]+s[2])/2,(s[1]+s[3])/2),e=c[c.length-1]}return o}},"91b1":function(t,e,n){"use strict";var r=n("01d4"),i=n("7f98"),o=n("2efc"),s=n("92fa"),a=function(){function t(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return t.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},t.prototype.expireCache=function(t){while(this.canExpireCache())this.pop()},t.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},t.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},t.prototype.forEach=function(t){var e=this.oldest_;while(e)t(e.value_,e.key_,this),e=e.newer},t.prototype.get=function(t,e){var n=this.entries_[t];return Object(s["a"])(void 0!==n,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_},t.prototype.remove=function(t){var e=this.entries_[t];return Object(s["a"])(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},t.prototype.getCount=function(){return this.count_},t.prototype.getKeys=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.key_;return e},t.prototype.getValues=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.value_;return e},t.prototype.peekLast=function(){return this.oldest_.value_},t.prototype.peekLastKey=function(){return this.oldest_.key_},t.prototype.peekFirstKey=function(){return this.newest_.key_},t.prototype.peek=function(t){if(this.containsKey(t))return this.entries_[t].value_},t.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},t.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},t.prototype.set=function(t,e){Object(s["a"])(!(t in this.entries_),16);var n={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_},t.prototype.setSize=function(t){this.highWaterMark=t},t}(),u=a,c=n("2c30"),l=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.expireCache=function(t){while(this.canExpireCache()){var e=this.peekLast();if(e.getKey()in t)break;this.pop().release()}},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=this.peekFirstKey(),e=Object(c["b"])(t),n=e[0];this.forEach(function(t){t.tileCoord[0]!==n&&(this.remove(Object(c["c"])(t.tileCoord)),t.release())}.bind(this))}},e}(u),f=h,p=n("acc1"),d={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"},g=n("cef7"),y=n("ff80"),v=n("1300"),_=n("256f"),m=n("089b"),b=n("345d"),E=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),w=function(t){function e(e){var n=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX,interpolate:e.interpolate})||this;n.on,n.once,n.un,n.opaque_=void 0!==e.opaque&&e.opaque,n.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,n.tileGrid=void 0!==e.tileGrid?e.tileGrid:null;var r=[256,256];return n.tileGrid&&Object(b["c"])(n.tileGrid.getTileSize(n.tileGrid.getMinZoom()),r),n.tileCache=new f(e.cacheSize||0),n.tmpSize=[0,0],n.key_=e.key||"",n.tileOptions={transition:e.transition,interpolate:e.interpolate},n.zDirection=e.zDirection?e.zDirection:0,n}return E(e,t),e.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},e.prototype.expireCache=function(t,e){var n=this.getTileCacheForProjection(t);n&&n.expireCache(e)},e.prototype.forEachLoadedTile=function(t,e,n,r){var i=this.getTileCacheForProjection(t);if(!i)return!1;for(var o,s,a,u=!0,l=n.minX;l<=n.maxX;++l)for(var h=n.minY;h<=n.maxY;++h)s=Object(c["d"])(e,l,h),a=!1,i.containsKey(s)&&(o=i.get(s),a=o.getState()===p["a"].LOADED,a&&(a=!1!==r(o))),a||(u=!1);return u},e.prototype.getGutterForProjection=function(t){return 0},e.prototype.getKey=function(){return this.key_},e.prototype.setKey=function(t){this.key_!==t&&(this.key_=t,this.changed())},e.prototype.getOpaque=function(t){return this.opaque_},e.prototype.getResolutions=function(){return this.tileGrid?this.tileGrid.getResolutions():null},e.prototype.getTile=function(t,e,n,r,i){return Object(v["b"])()},e.prototype.getTileGrid=function(){return this.tileGrid},e.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:Object(m["c"])(t)},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();return Object(s["a"])(null===e||Object(_["d"])(e,t),68),this.tileCache},e.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},e.prototype.getTilePixelSize=function(t,e,n){var r=this.getTileGridForProjection(n),i=this.getTilePixelRatio(e),o=Object(b["c"])(r.getTileSize(t),this.tmpSize);return 1==i?o:Object(b["b"])(o,i,this.tmpSize)},e.prototype.getTileCoordForTileUrlFunction=function(t,e){var n=void 0!==e?e:this.getProjection(),r=this.getTileGridForProjection(n);return this.getWrapX()&&n.isGlobal()&&(t=Object(m["d"])(r,t,n)),Object(c["f"])(t,r)?t:null},e.prototype.clear=function(){this.tileCache.clear()},e.prototype.refresh=function(){this.clear(),t.prototype.refresh.call(this)},e.prototype.updateCacheSize=function(t,e){var n=this.getTileCacheForProjection(e);t>n.highWaterMark&&(n.highWaterMark=t)},e.prototype.useTile=function(t,e,n,r){},e}(y["a"]),x=function(t){function e(e,n){var r=t.call(this,e)||this;return r.tile=n,r}return E(e,t),e}(g["a"]),O=w,S=n("9cff"),C=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),I=function(t){function e(n){var r=t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,opaque:n.opaque,projection:n.projection,state:n.state,tileGrid:n.tileGrid,tilePixelRatio:n.tilePixelRatio,wrapX:n.wrapX,transition:n.transition,interpolate:n.interpolate,key:n.key,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this;return r.generateTileUrlFunction_=r.tileUrlFunction===e.prototype.tileUrlFunction,r.tileLoadFunction=n.tileLoadFunction,n.tileUrlFunction&&(r.tileUrlFunction=n.tileUrlFunction),r.urls=null,n.urls?r.setUrls(n.urls):n.url&&r.setUrl(n.url),r.tileLoadingKeys_={},r}return C(e,t),e.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},e.prototype.getTileUrlFunction=function(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction},e.prototype.getUrls=function(){return this.urls},e.prototype.handleTileChange=function(t){var e,n=t.target,r=Object(v["c"])(n),i=n.getState();i==p["a"].LOADING?(this.tileLoadingKeys_[r]=!0,e=d.TILELOADSTART):r in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[r],e=i==p["a"].ERROR?d.TILELOADERROR:i==p["a"].LOADED?d.TILELOADEND:void 0),void 0!=e&&this.dispatchEvent(new x(e,n))},e.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},e.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),"undefined"!==typeof e?this.setKey(e):this.changed()},e.prototype.setUrl=function(t){var e=Object(S["c"])(t);this.urls=e,this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(Object(S["a"])(t,this.tileGrid),e):this.setKey(e)},e.prototype.tileUrlFunction=function(t,e,n){},e.prototype.useTile=function(t,e,n){var r=Object(c["d"])(t,e,n);this.tileCache.containsKey(r)&&this.tileCache.get(r)},e}(O),P=I,R=n("a504"),T=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),L=function(t){function e(e){var n=this,r=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(r=e.interpolate),n=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:M,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:r,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this,n.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,n.tileClass=void 0!==e.tileClass?e.tileClass:i["a"],n.tileCacheForProjection={},n.tileGridForProjection={},n.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,n.renderReprojectionEdges_=!1,n}return T(e,t),e.prototype.canExpireCache=function(){if(!R["a"])return t.prototype.canExpireCache.call(this);if(this.tileCache.canExpireCache())return!0;for(var e in this.tileCacheForProjection)if(this.tileCacheForProjection[e].canExpireCache())return!0;return!1},e.prototype.expireCache=function(e,n){if(R["a"]){var r=this.getTileCacheForProjection(e);for(var i in this.tileCache.expireCache(this.tileCache==r?n:{}),this.tileCacheForProjection){var o=this.tileCacheForProjection[i];o.expireCache(o==r?n:{})}}else t.prototype.expireCache.call(this,e,n)},e.prototype.getGutterForProjection=function(t){return R["a"]&&this.getProjection()&&t&&!Object(_["d"])(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getKey=function(){var e=t.prototype.getKey.call(this);return this.getInterpolate()||(e+=":disable-interpolation"),e},e.prototype.getOpaque=function(e){return!(R["a"]&&this.getProjection()&&e&&!Object(_["d"])(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(e){if(!R["a"])return t.prototype.getTileGridForProjection.call(this,e);var n=this.getProjection();if(!this.tileGrid||n&&!Object(_["d"])(n,e)){var r=Object(v["c"])(e);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=Object(m["c"])(e)),this.tileGridForProjection[r]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(e){if(!R["a"])return t.prototype.getTileCacheForProjection.call(this,e);var n=this.getProjection();if(!n||Object(_["d"])(n,e))return this.tileCache;var r=Object(v["c"])(e);return r in this.tileCacheForProjection||(this.tileCacheForProjection[r]=new f(this.tileCache.highWaterMark)),this.tileCacheForProjection[r]},e.prototype.createTile_=function(t,e,n,i,o,s){var a=[t,e,n],u=this.getTileCoordForTileUrlFunction(a,o),c=u?this.tileUrlFunction(u,i,o):void 0,l=new this.tileClass(a,void 0!==c?p["a"].IDLE:p["a"].EMPTY,void 0!==c?c:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return l.key=s,l.addEventListener(r["a"].CHANGE,this.handleTileChange.bind(this)),l},e.prototype.getTile=function(t,e,n,r,i){var s=this.getProjection();if(R["a"]&&s&&i&&!Object(_["d"])(s,i)){var a=this.getTileCacheForProjection(i),u=[t,e,n],l=void 0,h=Object(c["c"])(u);a.containsKey(h)&&(l=a.get(h));var f=this.getKey();if(l&&l.key==f)return l;var p=this.getTileGridForProjection(s),d=this.getTileGridForProjection(i),g=this.getTileCoordForTileUrlFunction(u,i),y=new o["a"](s,p,i,d,u,g,this.getTilePixelRatio(r),this.getGutter(),function(t,e,n,r){return this.getTileInternal(t,e,n,r,s)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return y.key=f,l?(y.interimTile=l,y.refreshInterimChain(),a.replace(h,y)):a.set(h,y),y}return this.getTileInternal(t,e,n,r,s||i)},e.prototype.getTileInternal=function(t,e,n,r,i){var o=null,s=Object(c["d"])(t,e,n),a=this.getKey();if(this.tileCache.containsKey(s)){if(o=this.tileCache.get(s),o.key!=a){var u=o;o=this.createTile_(t,e,n,r,i,a),u.getState()==p["a"].IDLE?o.interimTile=u.interimTile:o.interimTile=u,o.refreshInterimChain(),this.tileCache.replace(s,o)}}else o=this.createTile_(t,e,n,r,i,a),this.tileCache.set(s,o);return o},e.prototype.setRenderReprojectionEdges=function(t){if(R["a"]&&this.renderReprojectionEdges_!=t){for(var e in this.renderReprojectionEdges_=t,this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}},e.prototype.setTileGridForProjection=function(t,e){if(R["a"]){var n=Object(_["h"])(t);if(n){var r=Object(v["c"])(n);r in this.tileGridForProjection||(this.tileGridForProjection[r]=e)}}},e}(P);function M(t,e){t.getImage().src=e}e["a"]=L},"92fa":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("835b");function i(t,e){if(!t)throw new r["a"](e)}},"94ca":function(t,e,n){var r=n("d039"),i=n("1626"),o=/#|\.prototype\./,s=function(t,e){var n=u[a(t)];return n==l||n!=c&&(i(e)?r(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=s.data={},c=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},"94f8":function(t,e,n){(function(e,r){t.exports=r(n("21bf"))})(0,(function(t){return function(e){var n=t,r=n.lib,i=r.WordArray,o=r.Hasher,s=n.algo,a=[],u=[];(function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}var r=2,i=0;while(i<64)t(r)&&(i<8&&(a[i]=n(e.pow(r,.5))),u[i]=n(e.pow(r,1/3)),i++),r++})();var c=[],l=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],l=n[5],h=n[6],f=n[7],p=0;p<64;p++){if(p<16)c[p]=0|t[e+p];else{var d=c[p-15],g=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,y=c[p-2],v=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;c[p]=g+c[p-7]+v+c[p-16]}var _=a&l^~a&h,m=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),E=(a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25),w=f+E+_+u[p]+c[p],x=b+m;f=h,h=l,l=a,a=s+w|0,s=o,o=i,i=r,r=w+x|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+l|0,n[6]=n[6]+h|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});n.SHA256=o._createHelper(l),n.HmacSHA256=o._createHmacHelper(l)}(Math),t.SHA256}))},9769:function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"f",(function(){return a})),n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return l}));var r=n("7fc9");function i(t,e,n,i,o,s,a){var u,c=t[e],l=t[e+1],h=t[n]-c,f=t[n+1]-l;if(0===h&&0===f)u=e;else{var p=((o-c)*h+(s-l)*f)/(h*h+f*f);if(p>1)u=n;else{if(p>0){for(var d=0;d<i;++d)a[d]=Object(r["e"])(t[e+d],t[n+d],p);return void(a.length=i)}u=e}}for(d=0;d<i;++d)a[d]=t[u+d];a.length=i}function o(t,e,n,i,o){var s=t[e],a=t[e+1];for(e+=i;e<n;e+=i){var u=t[e],c=t[e+1],l=Object(r["i"])(s,a,u,c);l>o&&(o=l),s=u,a=c}return o}function s(t,e,n,r,i){for(var s=0,a=n.length;s<a;++s){var u=n[s];i=o(t,e,u,r,i),e=u}return i}function a(t,e,n,r,i){for(var o=0,a=n.length;o<a;++o){var u=n[o];i=s(t,e,u,r,i),e=u[u.length-1]}return i}function u(t,e,n,o,s,a,u,c,l,h,f){if(e==n)return h;var p,d;if(0===s){if(d=Object(r["i"])(u,c,t[e],t[e+1]),d<h){for(p=0;p<o;++p)l[p]=t[e+p];return l.length=o,d}return h}var g=f||[NaN,NaN],y=e+o;while(y<n)if(i(t,y-o,y,o,u,c,g),d=Object(r["i"])(u,c,g[0],g[1]),d<h){for(h=d,p=0;p<o;++p)l[p]=g[p];l.length=o,y+=o}else y+=o*Math.max((Math.sqrt(d)-Math.sqrt(h))/s|0,1);if(a&&(i(t,n-o,e,o,u,c,g),d=Object(r["i"])(u,c,g[0],g[1]),d<h)){for(h=d,p=0;p<o;++p)l[p]=g[p];l.length=o}return h}function c(t,e,n,r,i,o,s,a,c,l,h){for(var f=h||[NaN,NaN],p=0,d=n.length;p<d;++p){var g=n[p];l=u(t,e,g,r,i,o,s,a,c,l,f),e=g}return l}function l(t,e,n,r,i,o,s,a,u,l,h){for(var f=h||[NaN,NaN],p=0,d=n.length;p<d;++p){var g=n[p];l=c(t,e,g,r,i,o,s,a,u,l,f),e=g[g.length-1]}return l}},"9a44":function(t,e,n){"use strict";var r=n("f403"),i=n("9abc"),o=n("0af5"),s=n("abb7"),a=n("9f5e"),u=n("bb6c"),c=n("7fc9"),l=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=function(t){function e(e,n){var r=t.call(this)||this;return n&&!Array.isArray(e[0])?r.setFlatCoordinates(n,e):r.setCoordinates(e,n),r}return l(e,t),e.prototype.appendPoint=function(t){this.flatCoordinates?Object(a["c"])(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,r){if(r<Object(o["e"])(this.getExtent(),t,e))return r;for(var i=this.flatCoordinates,s=this.stride,a=0,u=i.length;a<u;a+=s){var l=Object(c["i"])(t,e,i[a],i[a+1]);if(l<r){r=l;for(var h=0;h<s;++h)n[h]=i[a+h];n.length=s}}return r},e.prototype.getCoordinates=function(){return Object(u["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getPoint=function(t){var e=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return t<0||e<=t?null:new r["a"](this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)},e.prototype.getPoints=function(){for(var t=this.flatCoordinates,e=this.layout,n=this.stride,i=[],o=0,s=t.length;o<s;o+=n){var a=new r["a"](t.slice(o,o+n),e);i.push(a)}return i},e.prototype.getType=function(){return"MultiPoint"},e.prototype.intersectsExtent=function(t){for(var e=this.flatCoordinates,n=this.stride,r=0,i=e.length;r<i;r+=n){var s=e[r],a=e[r+1];if(Object(o["h"])(t,s,a))return!0}return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(s["b"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(i["a"]);e["a"]=h},"9abc":function(t,e,n){"use strict";n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return f}));var r=n("8f37"),i=n("521b"),o=n("1300"),s=n("0af5"),a=n("bef8"),u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=function(t){function e(){var e=t.call(this)||this;return e.layout=i["a"].XY,e.stride=2,e.flatCoordinates=null,e}return u(e,t),e.prototype.computeExtent=function(t){return Object(s["n"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return Object(o["b"])()},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=this.getSimplifiedGeometryInternal(t),n=e.getFlatCoordinates();return n.length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)},e.prototype.getSimplifiedGeometryInternal=function(t){return this},e.prototype.getStride=function(){return this.stride},e.prototype.setFlatCoordinates=function(t,e){this.stride=h(t),this.layout=t,this.flatCoordinates=e},e.prototype.setCoordinates=function(t,e){Object(o["b"])()},e.prototype.setLayout=function(t,e,n){var r;if(t)r=h(t);else{for(var o=0;o<n;++o){if(0===e.length)return this.layout=i["a"].XY,void(this.stride=2);e=e[0]}r=e.length,t=l(r)}this.layout=t,this.stride=r},e.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},e.prototype.rotate=function(t,e){var n=this.getFlatCoordinates();if(n){var r=this.getStride();Object(a["a"])(n,0,n.length,r,t,e,n),this.changed()}},e.prototype.scale=function(t,e,n){var r=e;void 0===r&&(r=t);var i=n;i||(i=Object(s["w"])(this.getExtent()));var o=this.getFlatCoordinates();if(o){var u=this.getStride();Object(a["b"])(o,0,o.length,u,t,r,i,o),this.changed()}},e.prototype.translate=function(t,e){var n=this.getFlatCoordinates();if(n){var r=this.getStride();Object(a["d"])(n,0,n.length,r,t,e,n),this.changed()}},e}(r["a"]);function l(t){var e;return 2==t?e=i["a"].XY:3==t?e=i["a"].XYZ:4==t&&(e=i["a"].XYZM),e}function h(t){var e;return t==i["a"].XY?e=2:t==i["a"].XYZ||t==i["a"].XYM?e=3:t==i["a"].XYZM&&(e=4),e}function f(t,e,n){var r=t.getFlatCoordinates();if(r){var i=t.getStride();return Object(a["c"])(r,0,r.length,i,e,n)}return null}e["a"]=c},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("aed9"),s=n("825a"),a=n("a04b"),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",p="writable";e.f=r?o?function(t,e,n){if(s(t),e=a(e),s(n),"function"===typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var r=l(t,e);r&&r[p]&&(t[e]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:h in n?n[h]:r[h],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(s(t),e=a(e),s(n),i)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9c78":function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var r=n("5564"),i=n("e300"),o=n("183a"),s=n("cef7"),a=n("01d4"),u=n("7b4f"),c=n("92fa"),l=n("38f3"),h=n("0af5"),f=n("1300"),p=n("1e8d"),d=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=function(t){function e(e,n){var r=t.call(this,e)||this;return r.layer=n,r}return d(e,t),e}(s["a"]),y={LAYERS:"layers"},v=function(t){function e(e){var n=this,r=e||{},o=Object(l["a"])({},r);delete o.layers;var s=r.layers;return n=t.call(this,o)||this,n.on,n.once,n.un,n.layersListenerKeys_=[],n.listenerKeys_={},n.addChangeListener(y.LAYERS,n.handleLayersChanged_),s?Array.isArray(s)?s=new i["a"](s.slice(),{unique:!0}):Object(c["a"])("function"===typeof s.getArray,43):s=new i["a"](void 0,{unique:!0}),n.setLayers(s),n}return d(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(p["c"]),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push(Object(p["a"])(t,o["a"].ADD,this.handleLayersAdd_,this),Object(p["a"])(t,o["a"].REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(p["c"]);Object(l["b"])(this.listenerKeys_);for(var n=t.getArray(),r=0,i=n.length;r<i;r++){var s=n[r];this.registerLayerListeners_(s),this.dispatchEvent(new g("addlayer",s))}this.changed()},e.prototype.registerLayerListeners_=function(t){var n=[Object(p["a"])(t,u["a"].PROPERTYCHANGE,this.handleLayerChange_,this),Object(p["a"])(t,a["a"].CHANGE,this.handleLayerChange_,this)];t instanceof e&&n.push(Object(p["a"])(t,"addlayer",this.handleLayerGroupAdd_,this),Object(p["a"])(t,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[Object(f["c"])(t)]=n},e.prototype.handleLayerGroupAdd_=function(t){this.dispatchEvent(new g("addlayer",t.layer))},e.prototype.handleLayerGroupRemove_=function(t){this.dispatchEvent(new g("removelayer",t.layer))},e.prototype.handleLayersAdd_=function(t){var e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new g("addlayer",e)),this.changed()},e.prototype.handleLayersRemove_=function(t){var e=t.element,n=Object(f["c"])(e);this.listenerKeys_[n].forEach(p["c"]),delete this.listenerKeys_[n],this.dispatchEvent(new g("removelayer",e)),this.changed()},e.prototype.getLayers=function(){return this.get(y.LAYERS)},e.prototype.setLayers=function(t){var e=this.getLayers();if(e)for(var n=e.getArray(),r=0,i=n.length;r<i;++r)this.dispatchEvent(new g("removelayer",n[r]));this.set(y.LAYERS,t)},e.prototype.getLayersArray=function(t){var e=void 0!==t?t:[];return this.getLayers().forEach((function(t){t.getLayersArray(e)})),e},e.prototype.getLayerStatesArray=function(t){var e=void 0!==t?t:[],n=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));var r=this.getLayerState(),i=r.zIndex;t||void 0!==r.zIndex||(i=0);for(var o=n,s=e.length;o<s;o++){var a=e[o];a.opacity*=r.opacity,a.visible=a.visible&&r.visible,a.maxResolution=Math.min(a.maxResolution,r.maxResolution),a.minResolution=Math.max(a.minResolution,r.minResolution),a.minZoom=Math.max(a.minZoom,r.minZoom),a.maxZoom=Math.min(a.maxZoom,r.maxZoom),void 0!==r.extent&&(void 0!==a.extent?a.extent=Object(h["A"])(a.extent,r.extent):a.extent=r.extent),void 0===a.zIndex&&(a.zIndex=i)}return e},e.prototype.getSourceState=function(){return"ready"},e}(r["a"]);e["b"]=v},"9cff":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return c}));var r=n("92fa"),i=n("7fc9"),o=n("2c30");function s(t,e){var n=/\{z\}/g,i=/\{x\}/g,o=/\{y\}/g,s=/\{-y\}/g;return function(a,u,c){return a?t.replace(n,a[0].toString()).replace(i,a[1].toString()).replace(o,a[2].toString()).replace(s,(function(){var t=a[0],n=e.getFullTileRange(t);Object(r["a"])(n,55);var i=n.getHeight()-a[2]-1;return i.toString()})):void 0}}function a(t,e){for(var n=t.length,r=new Array(n),i=0;i<n;++i)r[i]=s(t[i],e);return u(r)}function u(t){return 1===t.length?t[0]:function(e,n,r){if(e){var s=Object(o["e"])(e),a=Object(i["g"])(s,t.length);return t[a](e,n,r)}}}function c(t){var e=[],n=/\{([a-z])-([a-z])\}/.exec(t);if(n){var r=n[1].charCodeAt(0),i=n[2].charCodeAt(0),o=void 0;for(o=r;o<=i;++o)e.push(t.replace(n[0],String.fromCharCode(o)));return e}if(n=/\{(\d+)-(\d+)\}/.exec(t),n){for(var s=parseInt(n[2],10),a=parseInt(n[1],10);a<=s;a++)e.push(t.replace(n[0],a.toString()));return e}return e.push(t),e}},"9f5e":function(t,e,n){"use strict";function r(t,e,n){var r,o,s=n||i,a=0,u=t.length,c=!1;while(a<u)r=a+(u-a>>1),o=+s(t[r],e),o<0?a=r+1:(u=r,c=!o);return c?a:~a}function i(t,e){return t>e?1:t<e?-1:0}function o(t,e){return t.indexOf(e)>=0}function s(t,e,n){var r=t.length;if(t[0]<=e)return 0;if(e<=t[r-1])return r-1;var i=void 0;if(n>0){for(i=1;i<r;++i)if(t[i]<e)return i-1}else if(n<0){for(i=1;i<r;++i)if(t[i]<=e)return i}else for(i=1;i<r;++i){if(t[i]==e)return i;if(t[i]<e)return"function"===typeof n?n(e,t[i-1],t[i])>0?i-1:i:t[i-1]-e<e-t[i]?i-1:i}return r-1}function a(t,e,n){while(e<n){var r=t[e];t[e]=t[n],t[n]=r,++e,--n}}function u(t,e){for(var n=Array.isArray(e)?e:[e],r=n.length,i=0;i<r;i++)t[t.length]=n[i]}function c(t,e){for(var n,r=t.length>>>0,i=0;i<r;i++)if(n=t[i],e(n,i,t))return n;return null}function l(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function h(t,e){var n,r=!t.every((function(r,i){return n=i,!e(r,i,t)}));return r?n:-1}function f(t,e,n){var r=e||i;return t.every((function(e,i){if(0===i)return!0;var o=r(t[i-1],e);return!(o>0||n&&0===o)}))}n.d(e,"a",(function(){return r})),n.d(e,"i",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"h",(function(){return s})),n.d(e,"j",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"e",(function(){return h})),n.d(e,"g",(function(){return f}))},a04b:function(t,e,n){var r=n("c04e"),i=n("d9b5");t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},a11b:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.Iso10126={pad:function(e,n){var r=4*n,i=r-e.sigBytes%r;e.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126}))},a2c7:function(t,e,n){"use strict";var r=n("e269"),i=n("fced"),o=n("496f"),s={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},a=n("0414"),u=n("256f"),c=n("57cb"),l=n("a568"),h=n("92fa"),f=n("38f3"),p=n("7fc9");function d(t,e,n){return function(r,i,o,s,a){if(r){if(!i&&!e)return r;var u=e?0:o[0]*i,c=e?0:o[1]*i,l=a?a[0]:0,h=a?a[1]:0,f=t[0]+u/2+l,d=t[2]-u/2+l,g=t[1]+c/2+h,y=t[3]-c/2+h;f>d&&(f=(d+f)/2,d=f),g>y&&(g=(y+g)/2,y=g);var v=Object(p["b"])(r[0],f,d),_=Object(p["b"])(r[1],g,y);if(s&&n&&i){var m=30*i;v+=-m*Math.log(1+Math.max(0,f-r[0])/m)+m*Math.log(1+Math.max(0,r[0]-d)/m),_+=-m*Math.log(1+Math.max(0,g-r[1])/m)+m*Math.log(1+Math.max(0,r[1]-y)/m)}return[v,_]}}}function g(t){return t}var y=n("0af5"),v=n("9f5e");function _(t,e,n,r){var i=Object(y["E"])(e)/n[0],o=Object(y["z"])(e)/n[1];return r?Math.min(t,Math.max(i,o)):Math.min(t,Math.min(i,o))}function m(t,e,n){var r=Math.min(t,e),i=50;return r*=Math.log(1+i*Math.max(0,t/e-1))/i+1,n&&(r=Math.max(r,n),r/=Math.log(1+i*Math.max(0,n/t-1))/i+1),Object(p["b"])(r,n/2,2*e)}function b(t,e,n,r){return function(i,o,s,a){if(void 0!==i){var u=t[0],c=t[t.length-1],l=n?_(u,n,s,r):u;if(a){var h=void 0===e||e;return h?m(i,l,c):Object(p["b"])(i,c,l)}var f=Math.min(l,i),d=Math.floor(Object(v["h"])(t,f,o));return t[d]>l&&d<t.length-1?t[d+1]:t[d]}}}function E(t,e,n,r,i,o){return function(s,a,u,c){if(void 0!==s){var l=i?_(e,i,u,o):e,h=void 0!==n?n:0;if(c){var f=void 0===r||r;return f?m(s,l,h):Object(p["b"])(s,h,l)}var d=1e-9,g=Math.ceil(Math.log(e/l)/Math.log(t)-d),y=-a*(.5-d)+.5,v=Math.min(l,s),b=Math.floor(Math.log(e/v)/Math.log(t)+y),E=Math.max(g,b),w=e/Math.pow(t,E);return Object(p["b"])(w,h,l)}}}function w(t,e,n,r,i){return function(o,s,a,u){if(void 0!==o){var c=r?_(t,r,a,i):t,l=void 0===n||n;return l&&u?m(o,c,e):Object(p["b"])(o,e,c)}}}var x=n("8cc5"),O=n("ca42"),S=n("5bc3"),C=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),I=0,P=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var r=Object(f["a"])({},e);return n.hints_=[0,0],n.animations_=[],n.updateAnimationKey_,n.projection_=Object(u["b"])(r.projection,"EPSG:3857"),n.viewportSize_=[100,100],n.targetCenter_=null,n.targetResolution_,n.targetRotation_,n.nextCenter_=null,n.nextResolution_,n.nextRotation_,n.cancelAnchor_=void 0,r.projection&&Object(u["c"])(),r.center&&(r.center=Object(u["e"])(r.center,n.projection_)),r.extent&&(r.extent=Object(u["f"])(r.extent,n.projection_)),n.applyOptions_(r),n}return C(e,t),e.prototype.applyOptions_=function(t){var e=Object(f["a"])({},t);for(var n in s)delete e[n];this.setProperties(e,!0);var r=L(t);this.maxResolution_=r.maxResolution,this.minResolution_=r.minResolution,this.zoomFactor_=r.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=r.minZoom;var i=T(t),o=r.constraint,a=M(t);this.constraints_={center:i,resolution:o,rotation:a},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)},Object.defineProperty(e.prototype,"padding",{get:function(){return this.padding_},set:function(t){var e=this.padding_;this.padding_=t;var n=this.getCenter();if(n){var r=t||[0,0,0,0];e=e||[0,0,0,0];var i=this.getResolution(),o=i/2*(r[3]-e[3]+e[1]-r[1]),s=i/2*(r[0]-e[0]+e[2]-r[2]);this.setCenterInternal([n[0]+o,n[1]-s])}},enumerable:!1,configurable:!0}),e.prototype.getUpdatedOptions_=function(t){var 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(f["a"])({},e,t)},e.prototype.animate=function(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var e=new Array(arguments.length),n=0;n<e.length;++n){var r=arguments[n];r.center&&(r=Object(f["a"])({},r),r.center=Object(u["e"])(r.center,this.getProjection())),r.anchor&&(r=Object(f["a"])({},r),r.anchor=Object(u["e"])(r.anchor,this.getProjection())),e[n]=r}this.animateInternal.apply(this,e)},e.prototype.animateInternal=function(t){var e,n=arguments.length;n>1&&"function"===typeof arguments[n-1]&&(e=arguments[n-1],--n);for(var r=0;r<n&&!this.isDef();++r){var i=arguments[r];i.center&&this.setCenterInternal(i.center),void 0!==i.zoom?this.setZoom(i.zoom):i.resolution&&this.setResolution(i.resolution),void 0!==i.rotation&&this.setRotation(i.rotation)}if(r!==n){for(var s=Date.now(),a=this.targetCenter_.slice(),u=this.targetResolution_,c=this.targetRotation_,l=[];r<n;++r){var h=arguments[r],f={start:s,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||O["c"],callback:e};if(h.center&&(f.sourceCenter=a,f.targetCenter=h.center.slice(),a=f.targetCenter),void 0!==h.zoom?(f.sourceResolution=u,f.targetResolution=this.getResolutionForZoom(h.zoom),u=f.targetResolution):h.resolution&&(f.sourceResolution=u,f.targetResolution=h.resolution,u=f.targetResolution),void 0!==h.rotation){f.sourceRotation=c;var d=Object(p["g"])(h.rotation-c+Math.PI,2*Math.PI)-Math.PI;f.targetRotation=c+d,c=f.targetRotation}N(f)?f.complete=!0:s+=f.duration,l.push(f)}this.animations_.push(l),this.setHint(o["a"].ANIMATING,1),this.updateAnimations_()}else e&&R(e,!0)},e.prototype.getAnimating=function(){return this.hints_[o["a"].ANIMATING]>0},e.prototype.getInteracting=function(){return this.hints_[o["a"].INTERACTING]>0},e.prototype.cancelAnimations=function(){var t;this.setHint(o["a"].ANIMATING,-this.hints_[o["a"].ANIMATING]);for(var e=0,n=this.animations_.length;e<n;++e){var r=this.animations_[e];if(r[0].callback&&R(r[0].callback,!1),!t)for(var i=0,s=r.length;i<s;++i){var a=r[i];if(!a.complete){t=a.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN},e.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var t=Date.now(),e=!1,n=this.animations_.length-1;n>=0;--n){for(var r=this.animations_[n],i=!0,s=0,a=r.length;s<a;++s){var u=r[s];if(!u.complete){var c=t-u.start,l=u.duration>0?c/u.duration:1;l>=1?(u.complete=!0,l=1):i=!1;var h=u.easing(l);if(u.sourceCenter){var f=u.sourceCenter[0],d=u.sourceCenter[1],g=u.targetCenter[0],y=u.targetCenter[1];this.nextCenter_=u.targetCenter;var v=f+h*(g-f),_=d+h*(y-d);this.targetCenter_=[v,_]}if(u.sourceResolution&&u.targetResolution){var m=1===h?u.targetResolution:u.sourceResolution+h*(u.targetResolution-u.sourceResolution);if(u.anchor){var b=this.getViewportSize_(this.getRotation()),E=this.constraints_.resolution(m,0,b,!0);this.targetCenter_=this.calculateCenterZoom(E,u.anchor)}this.nextResolution_=u.targetResolution,this.targetResolution_=m,this.applyTargetState_(!0)}if(void 0!==u.sourceRotation&&void 0!==u.targetRotation){var w=1===h?Object(p["g"])(u.targetRotation+Math.PI,2*Math.PI)-Math.PI:u.sourceRotation+h*(u.targetRotation-u.sourceRotation);if(u.anchor){var x=this.constraints_.rotation(w,!0);this.targetCenter_=this.calculateCenterRotate(x,u.anchor)}this.nextRotation_=u.targetRotation,this.targetRotation_=w}if(this.applyTargetState_(!0),e=!0,!u.complete)break}}if(i){this.animations_[n]=null,this.setHint(o["a"].ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var O=r[0].callback;O&&R(O,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},e.prototype.calculateCenterRotate=function(t,e){var n,r=this.getCenterInternal();return void 0!==r&&(n=[r[0]-e[0],r[1]-e[1]],Object(l["d"])(n,t-this.getRotation()),Object(l["a"])(n,e)),n},e.prototype.calculateCenterZoom=function(t,e){var n,r=this.getCenterInternal(),i=this.getResolution();if(void 0!==r&&void 0!==i){var o=e[0]-t*(e[0]-r[0])/i,s=e[1]-t*(e[1]-r[1])/i;n=[o,s]}return n},e.prototype.getViewportSize_=function(t){var e=this.viewportSize_;if(t){var n=e[0],r=e[1];return[Math.abs(n*Math.cos(t))+Math.abs(r*Math.sin(t)),Math.abs(n*Math.sin(t))+Math.abs(r*Math.cos(t))]}return e},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t?Object(u["m"])(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(s.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=this.calculateExtentInternal(t);return Object(u["n"])(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getViewportSizeMinusPadding_(),n=this.getCenterInternal();Object(h["a"])(n,1);var r=this.getResolution();Object(h["a"])(void 0!==r,2);var i=this.getRotation();return Object(h["a"])(void 0!==i,3),Object(y["y"])(n,r,i,e)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(s.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal(Object(u["f"])(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var n=e||this.getViewportSizeMinusPadding_(),r=Object(y["E"])(t)/n[0],i=Object(y["z"])(t)/n[1];return Math.max(r,i)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/Math.log(e);return function(t){var r=n/Math.pow(e,t*i);return r}},e.prototype.getRotation=function(){return this.get(s.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/e;return function(t){var r=Math.log(n/t)/e/i;return r}},e.prototype.getViewportSizeMinusPadding_=function(t){var e=this.getViewportSize_(t),n=this.padding_;return n&&(e=[e[0]-n[1]-n[3],e[1]-n[0]-n[2]]),e},e.prototype.getState=function(){var t=this.getProjection(),e=this.getResolution(),n=this.getRotation(),r=this.getCenterInternal(),i=this.padding_;if(i){var o=this.getViewportSizeMinusPadding_();r=A(r,this.getViewportSize_(),[o[0]/2+i[3],o[1]/2+i[0]],e,n)}return{center:r.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},e.prototype.getZoomForResolution=function(t){var e,n,r=this.minZoom_||0;if(this.resolutions_){var i=Object(v["h"])(this.resolutions_,t,1);r=i,e=this.resolutions_[i],n=i==this.resolutions_.length-1?2:e/this.resolutions_[i+1]}else e=this.maxResolution_,n=this.zoomFactor_;return r+Math.log(e/t)/Math.log(n)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=Object(p["b"])(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(n,Object(p["b"])(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,e){var n;if(Object(h["a"])(Array.isArray(t)||"function"===typeof t.getSimplifiedGeometry,24),Array.isArray(t)){Object(h["a"])(!Object(y["H"])(t),25);var r=Object(u["f"])(t,this.getProjection());n=Object(S["c"])(r)}else if("Circle"===t.getType()){r=Object(u["f"])(t.getExtent(),this.getProjection());n=Object(S["c"])(r),n.rotate(this.getRotation(),Object(y["w"])(r))}else{var i=Object(u["l"])();n=i?t.clone().transform(i,this.getProjection()):t}this.fitInternal(n,e)},e.prototype.rotatedExtentForGeometry=function(t){for(var e=this.getRotation(),n=Math.cos(e),r=Math.sin(-e),i=t.getFlatCoordinates(),o=t.getStride(),s=1/0,a=1/0,u=-1/0,c=-1/0,l=0,h=i.length;l<h;l+=o){var f=i[l]*n-i[l+1]*r,p=i[l]*r+i[l+1]*n;s=Math.min(s,f),a=Math.min(a,p),u=Math.max(u,f),c=Math.max(c,p)}return[s,a,u,c]},e.prototype.fitInternal=function(t,e){var n=e||{},r=n.size;r||(r=this.getViewportSizeMinusPadding_());var i,o=void 0!==n.padding?n.padding:[0,0,0,0],s=void 0!==n.nearest&&n.nearest;i=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.getResolutionForZoom(n.maxZoom):0;var a=this.rotatedExtentForGeometry(t),u=this.getResolutionForExtentInternal(a,[r[0]-o[1]-o[3],r[1]-o[0]-o[2]]);u=isNaN(u)?i:Math.max(u,i),u=this.getConstrainedResolution(u,s?0:1);var l=this.getRotation(),h=Math.sin(l),f=Math.cos(l),p=Object(y["w"])(a);p[0]+=(o[1]-o[3])/2*u,p[1]+=(o[0]-o[2])/2*u;var d=p[0]*f-p[1]*h,g=p[1]*f+p[0]*h,v=this.getConstrainedCenter([d,g],u),_=n.callback?n.callback:c["c"];void 0!==n.duration?this.animateInternal({resolution:u,center:v,duration:n.duration,easing:n.easing},_):(this.targetResolution_=u,this.targetCenter_=v,this.applyTargetState_(!1,!0),R(_,!0))},e.prototype.centerOn=function(t,e,n){this.centerOnInternal(Object(u["e"])(t,this.getProjection()),e,n)},e.prototype.centerOnInternal=function(t,e,n){this.setCenterInternal(A(t,e,n,this.getResolution(),this.getRotation()))},e.prototype.calculateCenterShift=function(t,e,n,r){var i,o=this.padding_;if(o&&t){var s=this.getViewportSizeMinusPadding_(-n),a=A(t,r,[s[0]/2+o[3],s[1]/2+o[0]],e,n);i=[t[0]-a[0],t[1]-a[1]]}return i},e.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},e.prototype.adjustCenter=function(t){var e=Object(u["m"])(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustCenterInternal=function(t){var e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustResolution=function(t,e){var n=e&&Object(u["e"])(e,this.getProjection());this.adjustResolutionInternal(t,n)},e.prototype.adjustResolutionInternal=function(t,e){var n=this.getAnimating()||this.getInteracting(),r=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(this.targetResolution_*t,0,r,n);e&&(this.targetCenter_=this.calculateCenterZoom(i,e)),this.targetResolution_*=t,this.applyTargetState_()},e.prototype.adjustZoom=function(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)},e.prototype.adjustRotation=function(t,e){e&&(e=Object(u["e"])(e,this.getProjection())),this.adjustRotationInternal(t,e)},e.prototype.adjustRotationInternal=function(t,e){var n=this.getAnimating()||this.getInteracting(),r=this.constraints_.rotation(this.targetRotation_+t,n);e&&(this.targetCenter_=this.calculateCenterRotate(r,e)),this.targetRotation_+=t,this.applyTargetState_()},e.prototype.setCenter=function(t){this.setCenterInternal(t?Object(u["e"])(t,this.getProjection()):t)},e.prototype.setCenterInternal=function(t){this.targetCenter_=t,this.applyTargetState_()},e.prototype.setHint=function(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]},e.prototype.setResolution=function(t){this.targetResolution_=t,this.applyTargetState_()},e.prototype.setRotation=function(t){this.targetRotation_=t,this.applyTargetState_()},e.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},e.prototype.applyTargetState_=function(t,e){var n=this.getAnimating()||this.getInteracting()||e,r=this.constraints_.rotation(this.targetRotation_,n),i=this.getViewportSize_(r),o=this.constraints_.resolution(this.targetResolution_,0,i,n),a=this.constraints_.center(this.targetCenter_,o,i,n,this.calculateCenterShift(this.targetCenter_,o,r,i));this.get(s.ROTATION)!==r&&this.set(s.ROTATION,r),this.get(s.RESOLUTION)!==o&&(this.set(s.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),a&&this.get(s.CENTER)&&Object(l["b"])(this.get(s.CENTER),a)||this.set(s.CENTER,a),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0},e.prototype.resolveConstraints=function(t,e,n){var r=void 0!==t?t:200,i=e||0,o=this.constraints_.rotation(this.targetRotation_),s=this.getViewportSize_(o),a=this.constraints_.resolution(this.targetResolution_,i,s),u=this.constraints_.center(this.targetCenter_,a,s,!1,this.calculateCenterShift(this.targetCenter_,a,o,s));if(0===r&&!this.cancelAnchor_)return this.targetResolution_=a,this.targetRotation_=o,this.targetCenter_=u,void this.applyTargetState_();var c=n||(0===r?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===a&&this.getRotation()===o&&this.getCenterInternal()&&Object(l["b"])(this.getCenterInternal(),u)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:u,resolution:a,duration:r,easing:O["b"],anchor:c}))},e.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(o["a"].INTERACTING,1)},e.prototype.endInteraction=function(t,e,n){var r=n&&Object(u["e"])(n,this.getProjection());this.endInteractionInternal(t,e,r)},e.prototype.endInteractionInternal=function(t,e,n){this.setHint(o["a"].INTERACTING,-1),this.resolveConstraints(t,e,n)},e.prototype.getConstrainedCenter=function(t,e){var n=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),n)},e.prototype.getConstrainedZoom=function(t,e){var n=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(n,e))},e.prototype.getConstrainedResolution=function(t,e){var n=e||0,r=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,n,r)},e}(r["a"]);function R(t,e){setTimeout((function(){t(e)}),0)}function T(t){if(void 0!==t.extent){var e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return d(t.extent,t.constrainOnlyCenter,e)}var n=Object(u["b"])(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&n.isGlobal()){var r=n.getExtent().slice();return r[0]=-1/0,r[2]=1/0,d(r,!1,!1)}return g}function L(t){var e,n,r,o=28,s=2,c=void 0!==t.minZoom?t.minZoom:I,l=void 0!==t.maxZoom?t.maxZoom:o,h=void 0!==t.zoomFactor?t.zoomFactor:s,f=void 0!==t.multiWorld&&t.multiWorld,p=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,d=void 0!==t.showFullExtent&&t.showFullExtent,g=Object(u["b"])(t.projection,"EPSG:3857"),v=g.getExtent(),_=t.constrainOnlyCenter,m=t.extent;if(f||m||!g.isGlobal()||(_=!1,m=v),void 0!==t.resolutions){var x=t.resolutions;n=x[c],r=void 0!==x[l]?x[l]:x[x.length-1],e=t.constrainResolution?b(x,p,!_&&m,d):w(n,r,p,!_&&m,d)}else{var O=v?Math.max(Object(y["E"])(v),Object(y["z"])(v)):360*u["a"][i["b"].DEGREES]/g.getMetersPerUnit(),S=O/a["b"]/Math.pow(s,I),C=S/Math.pow(s,o-I);n=t.maxResolution,void 0!==n?c=0:n=S/Math.pow(h,c),r=t.minResolution,void 0===r&&(r=void 0!==t.maxZoom?void 0!==t.maxResolution?n/Math.pow(h,l):S/Math.pow(h,l):C),l=c+Math.floor(Math.log(n/r)/Math.log(h)),r=n/Math.pow(h,l-c),e=t.constrainResolution?E(h,n,r,p,!_&&m,d):w(n,r,p,!_&&m,d)}return{constraint:e,maxResolution:n,minResolution:r,minZoom:c,zoomFactor:h}}function M(t){var e=void 0===t.enableRotation||t.enableRotation;if(e){var n=t.constrainRotation;return void 0===n||!0===n?Object(x["b"])():!1===n?x["d"]:"number"===typeof n?Object(x["a"])(n):x["d"]}return x["c"]}function N(t){return!(t.sourceCenter&&t.targetCenter&&!Object(l["b"])(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}function A(t,e,n,r,i){var o=Math.cos(-i),s=Math.sin(-i),a=t[0]*o-t[1]*s,u=t[1]*o+t[0]*s;a+=(e[0]/2-n[0])*r,u+=(n[1]-e[1]/2)*r,s=-s;var c=a*o-u*s,l=u*o+a*s;return[c,l]}e["a"]=P},a2e1:function(t,e,n){"use strict";var r=n("4cdf"),i=n("d352"),o=n("377d"),s=n("7a09"),a=n("47e4"),u=n("9a44"),c=n("88da"),l=n("f403"),h=n("5bc3"),f=n("92fa"),p=n("38f3"),d=n("256f"),g=n("b7df"),y=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=function(t){function e(e){var n=this,r=e||{};return n=t.call(this)||this,n.dataProjection=Object(d["h"])(r.dataProjection?r.dataProjection:"EPSG:4326"),r.featureProjection&&(n.defaultFeatureProjection=Object(d["h"])(r.featureProjection)),n.geometryName_=r.geometryName,n.extractGeometryName_=r.extractGeometryName,n.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],n}return y(e,t),e.prototype.readFeatureFromObject=function(t,e){var n=null;n="Feature"===t["type"]?t:{type:"Feature",geometry:t,properties:null};var i=_(n["geometry"],e),o=new r["a"];return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in n!==void 0&&o.setGeometryName(n["geometry_name"]),o.setGeometry(i),"id"in n&&o.setId(n["id"]),n["properties"]&&o.setProperties(n["properties"],!0),o},e.prototype.readFeaturesFromObject=function(t,e){var n=t,r=null;if("FeatureCollection"===n["type"]){var i=t;r=[];for(var o=i["features"],s=0,a=o.length;s<a;++s)r.push(this.readFeatureFromObject(o[s],e))}else r=[this.readFeatureFromObject(t,e)];return r},e.prototype.readGeometryFromObject=function(t,e){return _(t,e)},e.prototype.readProjectionFromObject=function(t){var e,n=t["crs"];return n?"name"==n["type"]?e=Object(d["h"])(n["properties"]["name"]):"EPSG"===n["type"]?e=Object(d["h"])("EPSG:"+n["properties"]["code"]):Object(f["a"])(!1,36):e=this.dataProjection,e},e.prototype.writeFeatureObject=function(t,e){e=this.adaptOptions(e);var n={type:"Feature",geometry:null,properties:null},r=t.getId();if(void 0!==r&&(n.id=r),!t.hasProperties())return n;var i=t.getProperties(),o=t.getGeometry();return o&&(n.geometry=C(o,e),delete i[t.getGeometryName()]),Object(p["d"])(i)||(n.properties=i),n},e.prototype.writeFeaturesObject=function(t,e){e=this.adaptOptions(e);for(var n=[],r=0,i=t.length;r<i;++r)n.push(this.writeFeatureObject(t[r],e));return{type:"FeatureCollection",features:n}},e.prototype.writeGeometryObject=function(t,e){return C(t,this.adaptOptions(e))},e}(o["a"]);function _(t,e){if(!t)return null;var n;switch(t["type"]){case"Point":n=b(t);break;case"LineString":n=E(t);break;case"Polygon":n=S(t);break;case"MultiPoint":n=x(t);break;case"MultiLineString":n=w(t);break;case"MultiPolygon":n=O(t);break;case"GeometryCollection":n=m(t);break;default:throw new Error("Unsupported GeoJSON type: "+t["type"])}return Object(g["c"])(n,!1,e)}function m(t,e){var n=t["geometries"].map((function(t){return _(t,e)}));return new i["a"](n)}function b(t){return new l["a"](t["coordinates"])}function E(t){return new s["a"](t["coordinates"])}function w(t){return new a["a"](t["coordinates"])}function x(t){return new u["a"](t["coordinates"])}function O(t){return new c["a"](t["coordinates"])}function S(t){return new h["a"](t["coordinates"])}function C(t,e){t=Object(g["c"])(t,!0,e);var n,r=t.getType();switch(r){case"Point":n=M(t,e);break;case"LineString":n=P(t,e);break;case"Polygon":n=N(t,e);break;case"MultiPoint":n=T(t,e);break;case"MultiLineString":n=R(t,e);break;case"MultiPolygon":n=L(t,e);break;case"GeometryCollection":n=I(t,e);break;case"Circle":n={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+r)}return n}function I(t,e){var n=t.getGeometriesArray().map((function(t){var n=Object(p["a"])({},e);return delete n.featureProjection,C(t,n)}));return{type:"GeometryCollection",geometries:n}}function P(t,e){return{type:"LineString",coordinates:t.getCoordinates()}}function R(t,e){return{type:"MultiLineString",coordinates:t.getCoordinates()}}function T(t,e){return{type:"MultiPoint",coordinates:t.getCoordinates()}}function L(t,e){var n;return e&&(n=e.rightHanded),{type:"MultiPolygon",coordinates:t.getCoordinates(n)}}function M(t,e){return{type:"Point",coordinates:t.getCoordinates()}}function N(t,e){var n;return e&&(n=e.rightHanded),{type:"Polygon",coordinates:t.getCoordinates(n)}}e["a"]=v},a40e:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.WordArray,i=n.BlockCipher,o=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=i.extend({_doReset:function(){for(var t=this._key,e=t.words,n=[],r=0;r<56;r++){var i=s[r]-1;n[r]=e[i>>>5]>>>31-i%32&1}for(var o=this._subKeys=[],c=0;c<16;c++){var l=o[c]=[],h=u[c];for(r=0;r<24;r++)l[r/6|0]|=n[(a[r]-1+h)%28]<<31-r%6,l[4+(r/6|0)]|=n[28+(a[r+24]-1+h)%28]<<31-r%6;l[0]=l[0]<<1|l[0]>>>31;for(r=1;r<7;r++)l[r]=l[r]>>>4*(r-1)+3;l[7]=l[7]<<5|l[7]>>>27}var f=this._invSubKeys=[];for(r=0;r<16;r++)f[r]=o[15-r]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],f.call(this,4,252645135),f.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),f.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],o=this._lBlock,s=this._rBlock,a=0,u=0;u<8;u++)a|=c[u][((s^i[u])&l[u])>>>0];this._lBlock=s,this._rBlock=o^a}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,f.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function p(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}e.DES=i._createHelper(h);var d=o.TripleDES=i.extend({_doReset:function(){var t=this._key,e=t.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var n=e.slice(0,2),i=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=h.createEncryptor(r.create(n)),this._des2=h.createEncryptor(r.create(i)),this._des3=h.createEncryptor(r.create(o))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=i._createHelper(d)}(),t.TripleDES}))},a43f:function(t,e,n){"use strict";e["a"]={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"}},a504:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}));var r=.5,i=!0},a568:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return u})),n.d(e,"g",(function(){return c})),n.d(e,"c",(function(){return l}));var r=n("0af5");n("7fc9"),n("b0c1");function i(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function o(t,e){for(var n=!0,r=t.length-1;r>=0;--r)if(t[r]!=e[r]){n=!1;break}return n}function s(t,e){var n=Math.cos(e),r=Math.sin(e),i=t[0]*n-t[1]*r,o=t[1]*n+t[0]*r;return t[0]=i,t[1]=o,t}function a(t,e){return t[0]*=e,t[1]*=e,t}function u(t,e){var n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}function c(t,e){if(e.canWrapX()){var n=Object(r["E"])(e.getExtent()),i=l(t,e,n);i&&(t[0]-=i*n)}return t}function l(t,e,n){var i=e.getExtent(),o=0;if(e.canWrapX()&&(t[0]<i[0]||t[0]>i[2])){var s=n||Object(r["E"])(i);o=Math.floor((t[0]-i[0])/s)}return o}},a817:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,r=4*e,i=r-n%r,o=n+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923}))},a896:function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"g",(function(){return u})),n.d(e,"f",(function(){return c})),n.d(e,"j",(function(){return h})),n.d(e,"a",(function(){return f})),n.d(e,"h",(function(){return p})),n.d(e,"i",(function(){return d})),n.d(e,"e",(function(){return g})),n.d(e,"l",(function(){return y})),n.d(e,"b",(function(){return v})),n.d(e,"d",(function(){return _})),n.d(e,"k",(function(){return b}));var r,i=n("617d"),o=n("92fa"),s=new Array(6);function a(){return[1,0,0,1,0,0]}function u(t){return l(t,1,0,0,1,0,0)}function c(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],s=t[4],a=t[5],u=e[0],c=e[1],l=e[2],h=e[3],f=e[4],p=e[5];return t[0]=n*u+i*c,t[1]=r*u+o*c,t[2]=n*l+i*h,t[3]=r*l+o*h,t[4]=n*f+i*p+s,t[5]=r*f+o*p+a,t}function l(t,e,n,r,i,o,s){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function f(t,e){var n=e[0],r=e[1];return e[0]=t[0]*n+t[2]*r+t[4],e[1]=t[1]*n+t[3]*r+t[5],e}function p(t,e){var n=Math.cos(e),r=Math.sin(e);return c(t,l(s,n,r,-r,n,0,0))}function d(t,e,n){return c(t,l(s,e,0,0,n,0,0))}function g(t,e,n){return l(t,e,0,0,n,0,0)}function y(t,e,n){return c(t,l(s,1,0,0,1,e,n))}function v(t,e,n,r,i,o,s,a){var u=Math.sin(o),c=Math.cos(o);return t[0]=r*c,t[1]=i*u,t[2]=-r*u,t[3]=i*c,t[4]=s*r*c-a*r*u+e,t[5]=s*i*u+a*i*c+n,t}function _(t,e){var n=m(e);Object(o["a"])(0!==n,32);var r=e[0],i=e[1],s=e[2],a=e[3],u=e[4],c=e[5];return t[0]=a/n,t[1]=-i/n,t[2]=-s/n,t[3]=r/n,t[4]=(s*c-a*u)/n,t[5]=-(r*c-i*u)/n,t}function m(t){return t[0]*t[3]-t[1]*t[2]}function b(t){var e="matrix("+t.join(", ")+")";if(i["h"])return e;var n=r||(r=document.createElement("div"));return n.style.transform=e,n.style.transform}},a8ce:function(t,e,n){(function(e,r){t.exports=r(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.WordArray,i=e.enc;i.Utf16=i.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i+=2){var o=e[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>1]|=t.charCodeAt(i)<<16-i%2*16;return r.create(n,2*e)}};function o(t){return t<<8&4278255360|t>>>8&16711935}i.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i+=2){var s=o(e[i>>>2]>>>16-i%4*8&65535);r.push(String.fromCharCode(s))}return r.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>1]|=o(t.charCodeAt(i)<<16-i%2*16);return r.create(n,2*e)}}}(),t.enc.Utf16}))},aaef:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){
/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/
return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function n(t){if(255===(t>>24&255)){var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}function r(t){return 0===(t[0]=n(t[0]))&&(t[1]=n(t[1])),t}var i=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),r(s);var a=s.slice(0);n.encryptBlock(a,0);for(var u=0;u<i;u++)t[e+u]^=a[u]}});return e.Decryptor=i,e}(),t.mode.CTRGladman}))},ab35:function(t,e,n){"use strict";var r=n("1300"),i=n("345d"),o=function(){function t(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=Object(i["c"])(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}return t.prototype.clone=function(){var 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()})},t.prototype.getOpacity=function(){return this.opacity_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getDisplacement=function(){return this.displacement_},t.prototype.getDeclutterMode=function(){return this.declutterMode_},t.prototype.getAnchor=function(){return Object(r["b"])()},t.prototype.getImage=function(t){return Object(r["b"])()},t.prototype.getHitDetectionImage=function(){return Object(r["b"])()},t.prototype.getPixelRatio=function(t){return 1},t.prototype.getImageState=function(){return Object(r["b"])()},t.prototype.getImageSize=function(){return Object(r["b"])()},t.prototype.getOrigin=function(){return Object(r["b"])()},t.prototype.getSize=function(){return Object(r["b"])()},t.prototype.setDisplacement=function(t){this.displacement_=t},t.prototype.setOpacity=function(t){this.opacity_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=Object(i["c"])(t)},t.prototype.listenImageChange=function(t){Object(r["b"])()},t.prototype.load=function(){Object(r["b"])()},t.prototype.unlistenImageChange=function(t){Object(r["b"])()},t}();e["a"]=o},ab36:function(t,e,n){var r=n("861d"),i=n("9112");t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},abb7:function(t,e,n){"use strict";function r(t,e,n,r){for(var i=0,o=n.length;i<o;++i)t[e++]=n[i];return e}function i(t,e,n,r){for(var i=0,o=n.length;i<o;++i)for(var s=n[i],a=0;a<r;++a)t[e++]=s[a];return e}function o(t,e,n,r,o){for(var s=o||[],a=0,u=0,c=n.length;u<c;++u){var l=i(t,e,n[u],r);s[a++]=l,e=l}return s.length=a,s}function s(t,e,n,r,i){for(var s=i||[],a=0,u=0,c=n.length;u<c;++u){var l=o(t,e,n[u],r,s[a]);s[a++]=l,e=l[l.length-1]}return s.length=a,s}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s}))},ac29:function(t,e,n){"use strict";var r=n("9abc"),i=n("0af5"),o=n("abb7"),s=n("bef8"),a=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(t){function e(e,n,r){var i=t.call(this)||this;if(void 0!==r&&void 0===n)i.setFlatCoordinates(r,e);else{var o=n||0;i.setCenterAndRadius(e,o,r)}return i}return a(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,r){var i=this.flatCoordinates,o=t-i[0],s=e-i[1],a=o*o+s*s;if(a<r){if(0===a)for(var u=0;u<this.stride;++u)n[u]=i[u];else{var c=this.getRadius()/Math.sqrt(a);n[0]=i[0]+c*o,n[1]=i[1]+c*s;for(u=2;u<this.stride;++u)n[u]=i[u]}return n.length=this.stride,a}return r},e.prototype.containsXY=function(t,e){var n=this.flatCoordinates,r=t-n[0],i=e-n[1];return r*r+i*i<=this.getRadiusSquared_()},e.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.computeExtent=function(t){var e=this.flatCoordinates,n=e[this.stride]-e[0];return Object(i["k"])(e[0]-n,e[1]-n,e[0]+n,e[1]+n,t)},e.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},e.prototype.getRadiusSquared_=function(){var t=this.flatCoordinates[this.stride]-this.flatCoordinates[0],e=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return t*t+e*e},e.prototype.getType=function(){return"Circle"},e.prototype.intersectsExtent=function(t){var e=this.getExtent();if(Object(i["F"])(t,e)){var n=this.getCenter();return t[0]<=n[0]&&t[2]>=n[0]||(t[1]<=n[1]&&t[3]>=n[1]||Object(i["s"])(t,this.intersectsCoordinate.bind(this)))}return!1},e.prototype.setCenter=function(t){var e=this.stride,n=this.flatCoordinates[e]-this.flatCoordinates[0],r=t.slice();r[e]=r[0]+n;for(var i=1;i<e;++i)r[e+i]=t[i];this.setFlatCoordinates(this.layout,r),this.changed()},e.prototype.setCenterAndRadius=function(t,e,n){this.setLayout(n,t,0),this.flatCoordinates||(this.flatCoordinates=[]);var r=this.flatCoordinates,i=Object(o["a"])(r,0,t,this.stride);r[i++]=r[0]+e;for(var s=1,a=this.stride;s<a;++s)r[i++]=r[s];r.length=i,this.changed()},e.prototype.getCoordinates=function(){return null},e.prototype.setCoordinates=function(t,e){},e.prototype.setRadius=function(t){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+t,this.changed()},e.prototype.rotate=function(t,e){var n=this.getCenter(),r=this.getStride();this.setCenter(Object(s["a"])(n,0,n.length,r,t,e,n)),this.changed()},e.prototype.translate=function(t,e){var n=this.getCenter(),r=this.getStride();this.setCenter(Object(s["d"])(n,0,n.length,r,t,e,n)),this.changed()},e}(r["a"]);u.prototype.transform;var c=u,l=n("cef7"),h=n("01d4"),f=n("4cdf"),p=n("521b"),d=n("bf62"),g=n("7a09"),y=n("509b"),v=n("0b2d"),_=n("47e4"),m=n("9a44"),b=n("88da"),E=n("f403"),w=n("4105"),x=n("5bc3"),O=n("3e6b"),S=n("5831"),C=n("57cb"),I=n("06f8"),P=n("6c77"),R=n("256f"),T=n("a568"),L=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon",CIRCLE:"Circle"},N={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"},A=function(t){function e(e,n){var r=t.call(this,e)||this;return r.feature=n,r}return L(e,t),e}(l["a"]),F=function(t){function e(e){var n=this,r=e;r.stopDown||(r.stopDown=C["a"]),n=t.call(this,r)||this,n.on,n.once,n.un,n.shouldHandle_=!1,n.downPx_=null,n.downTimeout_,n.lastDragTime_,n.pointerType_,n.freehand_=!1,n.source_=e.source?e.source:null,n.features_=e.features?e.features:null,n.snapTolerance_=e.snapTolerance?e.snapTolerance:12,n.type_=e.type,n.mode_=D(n.type_),n.stopClick_=!!e.stopClick,n.minPoints_=e.minPoints?e.minPoints:n.mode_===M.POLYGON?3:2,n.maxPoints_=n.mode_===M.CIRCLE?2:e.maxPoints?e.maxPoints:1/0,n.finishCondition_=e.finishCondition?e.finishCondition:C["b"],n.geometryLayout_=e.geometryLayout?e.geometryLayout:p["a"].XY;var i=e.geometryFunction;if(!i){var o,s=n.mode_;if(s===M.CIRCLE)i=function(t,e,n){var r=e||new c([NaN,NaN]),i=Object(R["e"])(t[0],n),o=Object(T["f"])(i,Object(R["e"])(t[t.length-1],n));r.setCenterAndRadius(i,Math.sqrt(o),this.geometryLayout_);var s=Object(R["l"])();return s&&r.transform(n,s),r};else s===M.POINT?o=E["a"]:s===M.LINE_STRING?o=g["a"]:s===M.POLYGON&&(o=x["a"]),i=function(t,e,n){return e?s===M.POLYGON?t[0].length?e.setCoordinates([t[0].concat([t[0][0]])],this.geometryLayout_):e.setCoordinates([],this.geometryLayout_):e.setCoordinates(t,this.geometryLayout_):e=new o(t,this.geometryLayout_),e}}return n.geometryFunction_=i,n.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,n.finishCoordinate_=null,n.sketchFeature_=null,n.sketchPoint_=null,n.sketchCoords_=null,n.sketchLine_=null,n.sketchLineCoords_=null,n.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,n.overlay_=new O["a"]({source:new S["a"]({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:j(),updateWhileInteracting:!0}),n.geometryName_=e.geometryName,n.condition_=e.condition?e.condition:I["h"],n.freehandCondition_,e.freehand?n.freehandCondition_=I["c"]:n.freehandCondition_=e.freehandCondition?e.freehandCondition:I["j"],n.addChangeListener(d["a"].ACTIVE,n.updateState_),n}return L(e,t),e.prototype.setMap=function(e){t.prototype.setMap.call(this,e),this.updateState_()},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleEvent=function(e){e.originalEvent.type===h["a"].CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_=this.mode_!==M.POINT&&this.freehandCondition_(e);var n=e.type===v["a"].POINTERMOVE,r=!0;if(!this.freehand_&&this.lastDragTime_&&e.type===v["a"].POINTERDRAG){var i=Date.now();i-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,n=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&e.type===v["a"].POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),r=!1):this.freehand_&&e.type===v["a"].POINTERDOWN?r=!1:n&&this.getPointerCount()<2?(r=e.type===v["a"].POINTERMOVE,r&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===v["a"].POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e)):e.type===v["a"].DBLCLICK&&(r=!1),t.prototype.handleEvent.call(this,e)&&r},e.prototype.handleDownEvent=function(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t.coordinate),!0):this.condition_(t)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new y["a"](v["a"].POINTERMOVE,t.map,t.originalEvent,!1,t.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=t.pixel,!0):(this.lastDragTime_=void 0,!1)},e.prototype.handleUpEvent=function(t){var e=!0;if(0===this.getPointerCount())if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(t),this.shouldHandle_){var n=!this.finishCoordinate_;n&&this.startDrawing_(t.coordinate),!n&&this.freehand_?this.finishDrawing():this.freehand_||n&&this.mode_!==M.POINT||(this.atFinish_(t.pixel)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t.coordinate)),e=!1}else this.freehand_&&this.abortDrawing();return!e&&this.stopClick_&&t.preventDefault(),e},e.prototype.handlePointerMove_=function(t){if(this.pointerType_=t.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var e=this.downPx_,n=t.pixel,r=e[0]-n[0],i=e[1]-n[1],o=r*r+i*i;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(t.coordinate):this.createOrUpdateSketchPoint_(t.coordinate.slice())},e.prototype.atFinish_=function(t){var e=!1;if(this.sketchFeature_){var n=!1,r=[this.finishCoordinate_],i=this.mode_;if(i===M.POINT)e=!0;else if(i===M.CIRCLE)e=2===this.sketchCoords_.length;else if(i===M.LINE_STRING)n=this.sketchCoords_.length>this.minPoints_;else if(i===M.POLYGON){var o=this.sketchCoords_;n=o[0].length>this.minPoints_,r=[o[0][0],o[0][o[0].length-2]]}if(n)for(var s=this.getMap(),a=0,u=r.length;a<u;a++){var c=r[a],l=s.getPixelFromCoordinate(c),h=t[0]-l[0],f=t[1]-l[1],p=this.freehand_?1:this.snapTolerance_;if(e=Math.sqrt(h*h+f*f)<=p,e){this.finishCoordinate_=c;break}}}return e},e.prototype.createOrUpdateSketchPoint_=function(t){if(this.sketchPoint_){var e=this.sketchPoint_.getGeometry();e.setCoordinates(t)}else this.sketchPoint_=new f["a"](new E["a"](t)),this.updateSketchFeatures_()},e.prototype.createOrUpdateCustomSketchLine_=function(t){this.sketchLine_||(this.sketchLine_=new f["a"]);var e=t.getLinearRing(0),n=this.sketchLine_.getGeometry();n?(n.setFlatCoordinates(e.getLayout(),e.getFlatCoordinates()),n.changed()):(n=new g["a"](e.getFlatCoordinates(),e.getLayout()),this.sketchLine_.setGeometry(n))},e.prototype.startDrawing_=function(t){var e=this.getMap().getView().getProjection(),n=Object(r["b"])(this.geometryLayout_);while(t.length<n)t.push(0);this.finishCoordinate_=t,this.mode_===M.POINT?this.sketchCoords_=t.slice():this.mode_===M.POLYGON?(this.sketchCoords_=[[t.slice(),t.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[t.slice(),t.slice()],this.sketchLineCoords_&&(this.sketchLine_=new f["a"](new g["a"](this.sketchLineCoords_)));var i=this.geometryFunction_(this.sketchCoords_,void 0,e);this.sketchFeature_=new f["a"],this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(i),this.updateSketchFeatures_(),this.dispatchEvent(new A(N.DRAWSTART,this.sketchFeature_))},e.prototype.modifyDrawing_=function(t){var e,n,i=this.getMap(),o=this.sketchFeature_.getGeometry(),s=i.getView().getProjection(),a=Object(r["b"])(this.geometryLayout_);while(t.length<a)t.push(0);if(this.mode_===M.POINT?n=this.sketchCoords_:this.mode_===M.POLYGON?(e=this.sketchCoords_[0],n=e[e.length-1],this.atFinish_(i.getPixelFromCoordinate(t))&&(t=this.finishCoordinate_.slice())):(e=this.sketchCoords_,n=e[e.length-1]),n[0]=t[0],n[1]=t[1],this.geometryFunction_(this.sketchCoords_,o,s),this.sketchPoint_){var u=this.sketchPoint_.getGeometry();u.setCoordinates(t)}if("Polygon"===o.getType()&&this.mode_!==M.POLYGON)this.createOrUpdateCustomSketchLine_(o);else if(this.sketchLineCoords_){var c=this.sketchLine_.getGeometry();c.setCoordinates(this.sketchLineCoords_)}this.updateSketchFeatures_()},e.prototype.addToDrawing_=function(t){var e,n,r=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),o=this.mode_;o===M.LINE_STRING||o===M.CIRCLE?(this.finishCoordinate_=t.slice(),n=this.sketchCoords_,n.length>=this.maxPoints_&&(this.freehand_?n.pop():e=!0),n.push(t.slice()),this.geometryFunction_(n,r,i)):o===M.POLYGON&&(n=this.sketchCoords_[0],n.length>=this.maxPoints_&&(this.freehand_?n.pop():e=!0),n.push(t.slice()),e&&(this.finishCoordinate_=n[0]),this.geometryFunction_(this.sketchCoords_,r,i)),this.createOrUpdateSketchPoint_(t.slice()),this.updateSketchFeatures_(),e&&this.finishDrawing()},e.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t,e=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),r=this.mode_;if(r===M.LINE_STRING||r===M.CIRCLE){if(t=this.sketchCoords_,t.splice(-2,1),t.length>=2){this.finishCoordinate_=t[t.length-2].slice();var i=this.finishCoordinate_.slice();t[t.length-1]=i,this.createOrUpdateSketchPoint_(i)}this.geometryFunction_(t,e,n),"Polygon"===e.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(e)}else if(r===M.POLYGON){t=this.sketchCoords_[0],t.splice(-2,1);var o=this.sketchLine_.getGeometry();if(t.length>=2){i=t[t.length-2].slice();t[t.length-1]=i,this.createOrUpdateSketchPoint_(i)}o.setCoordinates(t),this.geometryFunction_(this.sketchCoords_,e,n)}1===t.length&&this.abortDrawing(),this.updateSketchFeatures_()}},e.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(t){var e=this.sketchCoords_,n=t.getGeometry(),r=this.getMap().getView().getProjection();this.mode_===M.LINE_STRING?(e.pop(),this.geometryFunction_(e,n,r)):this.mode_===M.POLYGON&&(e[0].pop(),this.geometryFunction_(e,n,r),e=n.getCoordinates()),"MultiPoint"===this.type_?t.setGeometry(new m["a"]([e])):"MultiLineString"===this.type_?t.setGeometry(new _["a"]([e])):"MultiPolygon"===this.type_&&t.setGeometry(new b["a"]([e])),this.dispatchEvent(new A(N.DRAWEND,t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t)}},e.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var t=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),t},e.prototype.abortDrawing=function(){var t=this.abortDrawing_();t&&this.dispatchEvent(new A(N.DRAWABORT,t))},e.prototype.appendCoordinates=function(t){var e,n=this.mode_,r=!this.sketchFeature_;if(r&&this.startDrawing_(t[0]),n===M.LINE_STRING||n===M.CIRCLE)e=this.sketchCoords_;else{if(n!==M.POLYGON)return;e=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}r&&e.shift(),e.pop();for(var i=0;i<t.length;i++)this.addToDrawing_(t[i]);var o=t[t.length-1];this.addToDrawing_(o),this.modifyDrawing_(o)},e.prototype.extend=function(t){var e=t.getGeometry(),n=e;this.sketchFeature_=t,this.sketchCoords_=n.getCoordinates();var r=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=r.slice(),this.sketchCoords_.push(r.slice()),this.sketchPoint_=new f["a"](new E["a"](r)),this.updateSketchFeatures_(),this.dispatchEvent(new A(N.DRAWSTART,this.sketchFeature_))},e.prototype.updateSketchFeatures_=function(){var t=[];this.sketchFeature_&&t.push(this.sketchFeature_),this.sketchLine_&&t.push(this.sketchLine_),this.sketchPoint_&&t.push(this.sketchPoint_);var e=this.overlay_.getSource();e.clear(!0),e.addFeatures(t)},e.prototype.updateState_=function(){var t=this.getMap(),e=this.getActive();t&&e||this.abortDrawing(),this.overlay_.setMap(e?t:null)},e}(w["b"]);function j(){var t=Object(P["b"])();return function(e,n){return t[e.getGeometry().getType()]}}function D(t){switch(t){case"Point":case"MultiPoint":return M.POINT;case"LineString":case"MultiLineString":return M.LINE_STRING;case"Polygon":case"MultiPolygon":return M.POLYGON;case"Circle":return M.CIRCLE;default:throw new Error("Invalid type: "+t)}}e["a"]=F},acc1:function(t,e,n){"use strict";e["a"]={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},ae50:function(t,e,n){"use strict";var r=n("1af9"),i=n("25a5"),o=n.n(i),s=n("38f3"),a=n("6c77"),u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c={RENDER_ORDER:"renderOrder"},l=function(t){function e(e){var n=this,r=e||{},i=Object(s["a"])({},r);return delete i.style,delete i.renderBuffer,delete i.updateWhileAnimating,delete i.updateWhileInteracting,n=t.call(this,i)||this,n.declutter_=void 0!==r.declutter&&r.declutter,n.renderBuffer_=void 0!==r.renderBuffer?r.renderBuffer:100,n.style_=null,n.styleFunction_=void 0,n.setStyle(r.style),n.updateWhileAnimating_=void 0!==r.updateWhileAnimating&&r.updateWhileAnimating,n.updateWhileInteracting_=void 0!==r.updateWhileInteracting&&r.updateWhileInteracting,n}return u(e,t),e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(c.RENDER_ORDER)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.renderDeclutter=function(t){t.declutterTree||(t.declutterTree=new o.a(9)),this.getRenderer().renderDeclutter(t)},e.prototype.setRenderOrder=function(t){this.set(c.RENDER_ORDER,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:a["a"],this.styleFunction_=null===t?void 0:Object(a["d"])(this.style_),this.changed()},e}(r["a"]);e["a"]=l},aeb0:function(t,e,n){var r=n("9bf2").f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},aed9:function(t,e,n){var r=n("83ab"),i=n("d039");t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b0c1:function(t,e,n){"use strict";function r(t,e,n){var r=void 0!==n?t.toFixed(n):""+t,i=r.indexOf(".");return i=-1===i?r.length:i,i>e?r:new Array(1+e-i).join("0")+r}n.d(e,"a",(function(){return r}))},b1a2:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a}));var r=n("9f5e"),i=n("7fc9");function o(t,e,n,o,s,a,u){var c,l,h=(n-e)/o;if(1===h)c=e;else if(2===h)c=e,l=s;else if(0!==h){for(var f=t[e],p=t[e+1],d=0,g=[0],y=e+o;y<n;y+=o){var v=t[y],_=t[y+1];d+=Math.sqrt((v-f)*(v-f)+(_-p)*(_-p)),g.push(d),f=v,p=_}var m=s*d,b=Object(r["a"])(g,m);b<0?(l=(m-g[-b-2])/(g[-b-1]-g[-b-2]),c=e+(-b-2)*o):c=e+b*o}var E=u>1?u:2,w=a||new Array(E);for(y=0;y<E;++y)w[y]=void 0===c?NaN:void 0===l?t[c+y]:Object(i["e"])(t[c+y],t[c+o+y],l);return w}function s(t,e,n,r,o,s){if(n==e)return null;var a;if(o<t[e+r-1])return s?(a=t.slice(e,e+r),a[r-1]=o,a):null;if(t[n-1]<o)return s?(a=t.slice(n-r,n),a[r-1]=o,a):null;if(o==t[e+r-1])return t.slice(e,e+r);var u=e/r,c=n/r;while(u<c){var l=u+c>>1;o<t[(l+1)*r-1]?c=l:u=l+1}var h=t[u*r-1];if(o==h)return t.slice((u-1)*r,(u-1)*r+r);var f=t[(u+1)*r-1],p=(o-h)/(f-h);a=[];for(var d=0;d<r-1;++d)a.push(Object(i["e"])(t[(u-1)*r+d],t[u*r+d],p));return a.push(o),a}function a(t,e,n,r,i,o,a){if(a)return s(t,e,n[n.length-1],r,i,o);var u;if(i<t[r-1])return o?(u=t.slice(0,r),u[r-1]=i,u):null;if(t[t.length-1]<i)return o?(u=t.slice(t.length-r),u[r-1]=i,u):null;for(var c=0,l=n.length;c<l;++c){var h=n[c];if(e!=h){if(i<t[e+r-1])return null;if(i<=t[h-1])return s(t,e,h,r,i,!1);e=h}}return null}},b42e:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:n)(e)}},b589:function(t,e,n){"use strict";function r(t,e,n,r){for(var i=0,o=t[n-r],s=t[n-r+1];e<n;e+=r){var a=t[e],u=t[e+1];i+=s*a-o*u,o=a,s=u}return i/2}function i(t,e,n,i){for(var o=0,s=0,a=n.length;s<a;++s){var u=n[s];o+=r(t,e,u,i),e=u}return o}function o(t,e,n,r){for(var o=0,s=0,a=n.length;s<a;++s){var u=n[s];o+=i(t,e,u,r),e=u[u.length-1]}return o}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o}))},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("1a2d"),s=n("90e3"),a=n("04f8"),u=n("fdbf"),c=r.Symbol,l=i("wks"),h=u?c["for"]||c:c&&c.withoutSetter||s;t.exports=function(t){return o(l,t)||(l[t]=a&&o(c,t)?c[t]:h("Symbol."+t)),l[t]}},b639:function(t,e,n){"use strict";(function(t){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var r=n("1fb5"),i=n("9152"),o=n("e3db");function s(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=c.prototype):(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return p(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?y(t,e,n,r):"string"===typeof e?d(t,e,n):v(t,e)}function h(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e,n,r){return h(e),e<=0?u(t,e):void 0!==n?"string"===typeof r?u(t,e).fill(n,r):u(t,e).fill(n):u(t,e)}function p(t,e){if(h(e),t=u(t,e<0?0:0|_(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|b(e,n);t=u(t,r);var i=t.write(e,n);return i!==r&&(t=t.slice(0,i)),t}function g(t,e){var n=e.length<0?0:0|_(e.length);t=u(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function y(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),c.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=c.prototype):t=g(t,e),t}function v(t,e){if(c.isBuffer(e)){var n=0|_(e.length);return t=u(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?u(t,0):g(t,e);if("Buffer"===e.type&&o(e.data))return g(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function _(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function m(t){return+t!=t&&(t=0),c.alloc(+t)}function b(t,e){if(c.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(t).length;default:if(r)return K(t).length;e=(""+e).toLowerCase(),r=!0}}function E(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return D(this,e,n);case"utf8":case"utf-8":return M(this,e,n);case"ascii":return F(this,e,n);case"latin1":case"binary":return j(this,e,n);case"base64":return L(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function w(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function x(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:O(t,e,n,r,i);if("number"===typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):O(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function O(t,e,n,r,i){var o,s=1,a=t.length,u=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=n;o<a;o++)if(c(t,o)===c(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var h=!0,f=0;f<u;f++)if(c(t,o+f)!==c(e,f)){h=!1;break}if(h)return o}return-1}function S(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function C(t,e,n,r){return tt(K(e,t.length-n),t,n,r)}function I(t,e,n,r){return tt(J(e),t,n,r)}function P(t,e,n,r){return I(t,e,n,r)}function R(t,e,n,r){return tt($(e),t,n,r)}function T(t,e,n,r){return tt(Q(e,t.length-n),t,n,r)}function L(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function M(t,e,n){n=Math.min(t.length,n);var r=[],i=e;while(i<n){var o,s,a,u,c=t[i],l=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(l=c);break;case 2:o=t[i+1],128===(192&o)&&(u=(31&c)<<6|63&o,u>127&&(l=u));break;case 3:o=t[i+1],s=t[i+2],128===(192&o)&&128===(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s,u>2047&&(u<55296||u>57343)&&(l=u));break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a,u>65535&&u<1114112&&(l=u))}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return A(r)}e.Buffer=c,e.SlowBuffer=m,e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:s(),e.kMaxLength=a(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return l(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return f(null,t,e,n)},c.allocUnsafe=function(t){return p(null,t)},c.allocUnsafeSlow=function(t){return p(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=c.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var s=t[n];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},c.byteLength=b,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)w(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)w(this,e,e+3),w(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)w(this,e,e+7),w(this,e+1,e+6),w(this,e+2,e+5),w(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?M(this,0,t):E.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,n,r,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,s=n-e,a=Math.min(o,s),u=this.slice(r,i),l=t.slice(e,n),h=0;h<a;++h)if(u[h]!==l[h]){o=u[h],s=l[h];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return x(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return x(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return S(this,t,e,n);case"utf8":case"utf-8":return C(this,t,e,n);case"ascii":return I(this,t,e,n);case"latin1":case"binary":return P(this,t,e,n);case"base64":return R(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var N=4096;function A(t){var e=t.length;if(e<=N)return String.fromCharCode.apply(String,t);var n="",r=0;while(r<e)n+=String.fromCharCode.apply(String,t.slice(r,r+=N));return n}function F(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function j(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function D(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=Z(t[o]);return i}function k(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function G(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function U(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function z(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function Y(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function X(t,e,n,r,o){return o||Y(t,e,n,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,n,r,23,4),n+4}function V(t,e,n,r,o){return o||Y(t,e,n,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=c.prototype;else{var i=e-t;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||G(t,e,this.length);var r=this[t],i=1,o=0;while(++o<e&&(i*=256))r+=this[t+o]*i;return r},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||G(t,e,this.length);var r=this[t+--e],i=1;while(e>0&&(i*=256))r+=this[t+--e]*i;return r},c.prototype.readUInt8=function(t,e){return e||G(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||G(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||G(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||G(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||G(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||G(t,e,this.length);var r=this[t],i=1,o=0;while(++o<e&&(i*=256))r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||G(t,e,this.length);var r=e,i=1,o=this[t+--r];while(r>0&&(i*=256))o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||G(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||G(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||G(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||G(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||G(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||G(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||G(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||G(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||G(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;B(this,t,e,n,i,0)}var o=1,s=0;this[e]=255&t;while(++s<n&&(o*=256))this[e+s]=t/o&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;B(this,t,e,n,i,0)}var o=n-1,s=1;this[e+o]=255&t;while(--o>=0&&(s*=256))this[e+o]=t/s&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):U(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):z(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):z(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);B(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;this[e]=255&t;while(++o<n&&(s*=256))t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);B(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;this[e+o]=255&t;while(--o>=0&&(s*=256))t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):U(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):z(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):z(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return X(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return X(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return V(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return V(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},c.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o<n;++o)this[o]=t;else{var s=c.isBuffer(t)?t:K(new c(t,r).toString()),a=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%a]}return this};var q=/[^+\/0-9A-Za-z-_]/g;function W(t){if(t=H(t).replace(q,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function H(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Z(t){return t<16?"0"+t.toString(16):t.toString(16)}function K(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],s=0;s<r;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function J(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function Q(t,e){for(var n,r,i,o=[],s=0;s<t.length;++s){if((e-=2)<0)break;n=t.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r)}return o}function $(t){return r.toByteArray(W(t))}function tt(t,e,n,r){for(var i=0;i<r;++i){if(i+n>=e.length||i>=t.length)break;e[i+n]=t[i]}return i}function et(t){return t!==t}}).call(this,n("c8ba"))},b7df:function(t,e,n){"use strict";n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return c}));var r=n("fced"),i=n("1300"),o=n("38f3"),s=n("256f"),a=function(){function t(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}return t.prototype.getReadOptions=function(t,e){var n;if(e){var i=e.dataProjection?Object(s["h"])(e.dataProjection):this.readProjection(t);e.extent&&i&&i.getUnits()===r["b"].TILE_PIXELS&&(i=Object(s["h"])(i),i.setWorldExtent(e.extent)),n={dataProjection:i,featureProjection:e.featureProjection}}return this.adaptOptions(n)},t.prototype.adaptOptions=function(t){return Object(o["a"])({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)},t.prototype.getType=function(){return Object(i["b"])()},t.prototype.readFeature=function(t,e){return Object(i["b"])()},t.prototype.readFeatures=function(t,e){return Object(i["b"])()},t.prototype.readGeometry=function(t,e){return Object(i["b"])()},t.prototype.readProjection=function(t){return Object(i["b"])()},t.prototype.writeFeature=function(t,e){return Object(i["b"])()},t.prototype.writeFeatures=function(t,e){return Object(i["b"])()},t.prototype.writeGeometry=function(t,e){return Object(i["b"])()},t}();function u(t,e,n){var r,i=n?Object(s["h"])(n.featureProjection):null,o=n?Object(s["h"])(n.dataProjection):null;if(r=i&&o&&!Object(s["d"])(i,o)?(e?t.clone():t).transform(e?i:o,e?o:i):t,e&&n&&void 0!==n.decimals){var a=Math.pow(10,n.decimals),u=function(t){for(var e=0,n=t.length;e<n;++e)t[e]=Math.round(t[e]*a)/a;return t};r===t&&(r=t.clone()),r.applyTransform(u)}return r}function c(t,e){var n=e?Object(s["h"])(e.featureProjection):null,r=e?Object(s["h"])(e.dataProjection):null;return n&&r&&!Object(s["d"])(n,r)?Object(s["q"])(t,r,n):t}e["a"]=a},b86b:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("3252"),n("d6e6"))})(0,(function(t){return function(){var e=t,n=e.x64,r=n.Word,i=n.WordArray,o=e.algo,s=o.SHA512,a=o.SHA384=s.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var t=s._doFinalize.call(this);return t.sigBytes-=16,t}});e.SHA384=s._createHelper(a),e.HmacSHA384=s._createHmacHelper(a)}(),t.SHA384}))},b86c:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}))},b980:function(t,e,n){var r=n("d039"),i=n("5c6c");t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},bb6c:function(t,e,n){"use strict";function r(t,e,n,r,i){for(var o=void 0!==i?i:[],s=0,a=e;a<n;a+=r)o[s++]=t.slice(a,a+r);return o.length=s,o}function i(t,e,n,i,o){for(var s=void 0!==o?o:[],a=0,u=0,c=n.length;u<c;++u){var l=n[u];s[a++]=r(t,e,l,i,s[a]),e=l}return s.length=a,s}function o(t,e,n,r,o){for(var s=void 0!==o?o:[],a=0,u=0,c=n.length;u<c;++u){var l=n[u];s[a++]=i(t,e,l,r,s[a]),e=l[l.length-1]}return s.length=a,s}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o}))},bef8:function(t,e,n){"use strict";function r(t,e,n,r,i,o){for(var s=o||[],a=0,u=e;u<n;u+=r){var c=t[u],l=t[u+1];s[a++]=i[0]*c+i[2]*l+i[4],s[a++]=i[1]*c+i[3]*l+i[5]}return o&&s.length!=a&&(s.length=a),s}function i(t,e,n,r,i,o,s){for(var a=s||[],u=Math.cos(i),c=Math.sin(i),l=o[0],h=o[1],f=0,p=e;p<n;p+=r){var d=t[p]-l,g=t[p+1]-h;a[f++]=l+d*u-g*c,a[f++]=h+d*c+g*u;for(var y=p+2;y<p+r;++y)a[f++]=t[y]}return s&&a.length!=f&&(a.length=f),a}function o(t,e,n,r,i,o,s,a){for(var u=a||[],c=s[0],l=s[1],h=0,f=e;f<n;f+=r){var p=t[f]-c,d=t[f+1]-l;u[h++]=c+i*p,u[h++]=l+o*d;for(var g=f+2;g<f+r;++g)u[h++]=t[g]}return a&&u.length!=h&&(u.length=h),u}function s(t,e,n,r,i,o,s){for(var a=s||[],u=0,c=e;c<n;c+=r){a[u++]=t[c]+i,a[u++]=t[c+1]+o;for(var l=c+2;l<c+r;++l)a[u++]=t[l]}return s&&a.length!=u&&(a.length=u),a}n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return s}))},bf62:function(t,e,n){"use strict";e["a"]={ACTIVE:"active"}},c04e:function(t,e,n){var r=n("c65b"),i=n("861d"),o=n("d9b5"),s=n("dc4a"),a=n("485a"),u=n("b622"),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,u=s(t,l);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!i(n)||o(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},c198:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.BlockCipher,i=e.algo,o=[],s=[],a=[],u=[],c=[],l=[],h=[],f=[],p=[],d=[];(function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,r=0;for(e=0;e<256;e++){var i=r^r<<1^r<<2^r<<3^r<<4;i=i>>>8^255&i^99,o[n]=i,s[i]=n;var g=t[n],y=t[g],v=t[y],_=257*t[i]^16843008*i;a[n]=_<<24|_>>>8,u[n]=_<<16|_>>>16,c[n]=_<<8|_>>>24,l[n]=_;_=16843009*v^65537*y^257*g^16843008*n;h[i]=_<<24|_>>>8,f[i]=_<<16|_>>>16,p[i]=_<<8|_>>>24,d[i]=_,n?(n=g^t[t[t[v^g]]],r^=t[t[r]]):n=r=1}})();var g=[0,1,2,4,8,16,32,64,128,27,54],y=i.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,r=this._nRounds=n+6,i=4*(r+1),s=this._keySchedule=[],a=0;a<i;a++)a<n?s[a]=e[a]:(l=s[a-1],a%n?n>6&&a%n==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=l<<8|l>>>24,l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=g[a/n|0]<<24),s[a]=s[a-n]^l);for(var u=this._invKeySchedule=[],c=0;c<i;c++){a=i-c;if(c%4)var l=s[a];else l=s[a-4];u[c]=c<4||a<=4?l:h[o[l>>>24]]^f[o[l>>>16&255]]^p[o[l>>>8&255]]^d[o[255&l]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,u,c,l,o)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,h,f,p,d,s);n=t[e+1];t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,o,s,a){for(var u=this._nRounds,c=t[e]^n[0],l=t[e+1]^n[1],h=t[e+2]^n[2],f=t[e+3]^n[3],p=4,d=1;d<u;d++){var g=r[c>>>24]^i[l>>>16&255]^o[h>>>8&255]^s[255&f]^n[p++],y=r[l>>>24]^i[h>>>16&255]^o[f>>>8&255]^s[255&c]^n[p++],v=r[h>>>24]^i[f>>>16&255]^o[c>>>8&255]^s[255&l]^n[p++],_=r[f>>>24]^i[c>>>16&255]^o[l>>>8&255]^s[255&h]^n[p++];c=g,l=y,h=v,f=_}g=(a[c>>>24]<<24|a[l>>>16&255]<<16|a[h>>>8&255]<<8|a[255&f])^n[p++],y=(a[l>>>24]<<24|a[h>>>16&255]<<16|a[f>>>8&255]<<8|a[255&c])^n[p++],v=(a[h>>>24]<<24|a[f>>>16&255]<<16|a[c>>>8&255]<<8|a[255&l])^n[p++],_=(a[f>>>24]<<24|a[c>>>16&255]<<16|a[l>>>8&255]<<8|a[255&h])^n[p++];t[e]=g,t[e+1]=y,t[e+2]=v,t[e+3]=_},keySize:8});e.AES=r._createHelper(y)}(),t.AES}))},c1bc:function(t,e,n){(function(e,r){t.exports=r(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.WordArray,i=e.enc;i.Base64url={stringify:function(t,e=!0){var n=t.words,r=t.sigBytes,i=e?this._safe_map:this._map;t.clamp();for(var o=[],s=0;s<r;s+=3)for(var a=n[s>>>2]>>>24-s%4*8&255,u=n[s+1>>>2]>>>24-(s+1)%4*8&255,c=n[s+2>>>2]>>>24-(s+2)%4*8&255,l=a<<16|u<<8|c,h=0;h<4&&s+.75*h<r;h++)o.push(i.charAt(l>>>6*(3-h)&63));var f=i.charAt(64);if(f)while(o.length%4)o.push(f);return o.join("")},parse:function(t,e=!0){var n=t.length,r=e?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s<r.length;s++)i[r.charCodeAt(s)]=s}var a=r.charAt(64);if(a){var u=t.indexOf(a);-1!==u&&(n=u)}return o(t,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function o(t,e,n){for(var i=[],o=0,s=0;s<e;s++)if(s%4){var a=n[t.charCodeAt(s-1)]<<s%4*2,u=n[t.charCodeAt(s)]>>>6-s%4*2,c=a|u;i[o>>>2]|=c<<24-o%4*8,o++}return r.create(i,o)}}(),t.enc.Base64url}))},c3b6:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.StreamCipher,i=e.algo,o=i.RC4=r.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var o=0;i<256;i++){var s=i%n,a=e[s>>>2]>>>24-s%4*8&255;o=(o+r[i]+a)%256;var u=r[i];r[i]=r[o],r[o]=u}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=s.call(this)},keySize:8,ivSize:0});function s(){for(var t=this._S,e=this._i,n=this._j,r=0,i=0;i<4;i++){e=(e+1)%256,n=(n+t[e])%256;var o=t[e];t[e]=t[n],t[n]=o,r|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,r}e.RC4=r._createHelper(o);var a=i.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)s.call(this)}});e.RC4Drop=r._createHelper(a)}(),t.RC4}))},c430:function(t,e){t.exports=!1},c560:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return l}));var r=n("0af5"),i=n("fd4d"),o=n("25f1");function s(t,e,n,o,s){var a=Object(r["r"])(Object(r["j"])(),t,e,n,o);return!!Object(r["F"])(s,a)&&(!!Object(r["g"])(s,a)||(a[0]>=s[0]&&a[2]<=s[2]||(a[1]>=s[1]&&a[3]<=s[3]||Object(i["a"])(t,e,n,o,(function(t,e){return Object(r["G"])(s,t,e)})))))}function a(t,e,n,r,i){for(var o=0,a=n.length;o<a;++o){if(s(t,e,n[o],r,i))return!0;e=n[o]}return!1}function u(t,e,n,r,i){return!!s(t,e,n,r,i)||(!!Object(o["b"])(t,e,n,r,i[0],i[1])||(!!Object(o["b"])(t,e,n,r,i[0],i[3])||(!!Object(o["b"])(t,e,n,r,i[2],i[1])||!!Object(o["b"])(t,e,n,r,i[2],i[3]))))}function c(t,e,n,r,i){if(!u(t,e,n[0],r,i))return!1;if(1===n.length)return!0;for(var a=1,c=n.length;a<c;++a)if(Object(o["a"])(t,n[a-1],n[a],r,i)&&!s(t,n[a-1],n[a],r,i))return!1;return!0}function l(t,e,n,r,i){for(var o=0,s=n.length;o<s;++o){var a=n[o];if(c(t,e,a,r,i))return!0;e=a[a.length-1]}return!1}},c65b:function(t,e,n){var r=n("40d5"),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},c6b6:function(t,e,n){var r=n("e330"),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("6374"),o="__core-js_shared__",s=r[o]||i(o,{});t.exports=s},c721:function(t,e,n){"use strict";function r(t,e){var n=[];Object.keys(e).forEach((function(t){null!==e[t]&&void 0!==e[t]&&n.push(t+"="+encodeURIComponent(e[t]))}));var r=n.join("&");return t=t.replace(/[?&]$/,""),t=-1===t.indexOf("?")?t+"?":t+"&",t+r}n.d(e,"a",(function(){return r}))},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},c946:function(t,e,n){"use strict";var r=n("f78c"),i=n("e98d"),o=n("a896"),s=n("ddea"),a=n("9f5e"),u=n("0af5"),c=n("bef8"),l=n("9abc"),h=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f=function(t){function e(e,n,r,i,s,a,u){var c=t.call(this)||this;return c.context_=e,c.pixelRatio_=n,c.extent_=r,c.transform_=i,c.viewRotation_=s,c.squaredTolerance_=a,c.userTransform_=u,c.contextFillState_=null,c.contextStrokeState_=null,c.contextTextState_=null,c.fillState_=null,c.strokeState_=null,c.image_=null,c.imageAnchorX_=0,c.imageAnchorY_=0,c.imageHeight_=0,c.imageOpacity_=0,c.imageOriginX_=0,c.imageOriginY_=0,c.imageRotateWithView_=!1,c.imageRotation_=0,c.imageScale_=[0,0],c.imageWidth_=0,c.text_="",c.textOffsetX_=0,c.textOffsetY_=0,c.textRotateWithView_=!1,c.textRotation_=0,c.textScale_=[0,0],c.textFillState_=null,c.textStrokeState_=null,c.textState_=null,c.pixelCoordinates_=[],c.tmpLocalTransform_=Object(o["c"])(),c}return h(e,t),e.prototype.drawImages_=function(t,e,n,r){if(this.image_){var i=Object(c["c"])(t,e,n,r,this.transform_,this.pixelCoordinates_),s=this.context_,a=this.tmpLocalTransform_,u=s.globalAlpha;1!=this.imageOpacity_&&(s.globalAlpha=u*this.imageOpacity_);var l=this.imageRotation_;this.imageRotateWithView_&&(l+=this.viewRotation_);for(var h=0,f=i.length;h<f;h+=2){var p=i[h]-this.imageAnchorX_,d=i[h+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_[0]||1!=this.imageScale_[1]){var g=p+this.imageAnchorX_,y=d+this.imageAnchorY_;Object(o["b"])(a,g,y,1,1,l,-g,-y),s.setTransform.apply(s,a),s.translate(g,y),s.scale(this.imageScale_[0],this.imageScale_[1]),s.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),s.setTransform(1,0,0,1,0,0)}else s.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,p,d,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(s.globalAlpha=u)}},e.prototype.drawText_=function(t,e,n,r){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var i=Object(c["c"])(t,e,n,r,this.transform_,this.pixelCoordinates_),s=this.context_,a=this.textRotation_;for(this.textRotateWithView_&&(a+=this.viewRotation_);e<n;e+=r){var u=i[e]+this.textOffsetX_,l=i[e+1]+this.textOffsetY_;if(0!==a||1!=this.textScale_[0]||1!=this.textScale_[1]){var h=Object(o["b"])(this.tmpLocalTransform_,u,l,1,1,a,-u,-l);s.setTransform.apply(s,h),s.translate(u,l),s.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&s.strokeText(this.text_,0,0),this.textFillState_&&s.fillText(this.text_,0,0),s.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&s.strokeText(this.text_,u,l),this.textFillState_&&s.fillText(this.text_,u,l)}}},e.prototype.moveToLineTo_=function(t,e,n,r,i){var o=this.context_,s=Object(c["c"])(t,e,n,r,this.transform_,this.pixelCoordinates_);o.moveTo(s[0],s[1]);var a=s.length;i&&(a-=2);for(var u=2;u<a;u+=2)o.lineTo(s[u],s[u+1]);return i&&o.closePath(),n},e.prototype.drawRings_=function(t,e,n,r){for(var i=0,o=n.length;i<o;++i)e=this.moveToLineTo_(t,e,n[i],r,!0);return e},e.prototype.drawCircle=function(t){if(Object(u["F"])(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=Object(l["c"])(t,this.transform_,this.pixelCoordinates_),n=e[2]-e[0],r=e[3]-e[1],i=Math.sqrt(n*n+r*r),o=this.context_;o.beginPath(),o.arc(e[0],e[1],i,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}},e.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},e.prototype.setTransform=function(t){this.transform_=t},e.prototype.drawGeometry=function(t){var e=t.getType();switch(e){case"Point":this.drawPoint(t);break;case"LineString":this.drawLineString(t);break;case"Polygon":this.drawPolygon(t);break;case"MultiPoint":this.drawMultiPoint(t);break;case"MultiLineString":this.drawMultiLineString(t);break;case"MultiPolygon":this.drawMultiPolygon(t);break;case"GeometryCollection":this.drawGeometryCollection(t);break;case"Circle":this.drawCircle(t);break;default:}},e.prototype.drawFeature=function(t,e){var n=e.getGeometryFunction()(t);n&&Object(u["F"])(this.extent_,n.getExtent())&&(this.setStyle(e),this.drawGeometry(n))},e.prototype.drawGeometryCollection=function(t){for(var e=t.getGeometriesArray(),n=0,r=e.length;n<r;++n)this.drawGeometry(e[n])},e.prototype.drawPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)},e.prototype.drawMultiPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)},e.prototype.drawLineString=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(u["F"])(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var e=this.context_,n=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(n,0,n.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){var r=t.getFlatMidpoint();this.drawText_(r,0,2,2)}}},e.prototype.drawMultiLineString=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getExtent();if(Object(u["F"])(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var n=this.context_,r=t.getFlatCoordinates(),i=0,o=t.getEnds(),s=t.getStride();n.beginPath();for(var a=0,c=o.length;a<c;++a)i=this.moveToLineTo_(r,i,o[a],s,!1);n.stroke()}if(""!==this.text_){var l=t.getFlatMidpoints();this.drawText_(l,0,l.length,2)}}},e.prototype.drawPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(u["F"])(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var n=t.getFlatInteriorPoint();this.drawText_(n,0,2,2)}}},e.prototype.drawMultiPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(u["F"])(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_,n=t.getOrientedFlatCoordinates(),r=0,i=t.getEndss(),o=t.getStride();e.beginPath();for(var s=0,a=i.length;s<a;++s){var c=i[s];r=this.drawRings_(n,r,c,o)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var l=t.getFlatInteriorPoints();this.drawText_(l,0,l.length,2)}}},e.prototype.setContextFillState_=function(t){var e=this.context_,n=this.contextFillState_;n?n.fillStyle!=t.fillStyle&&(n.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})},e.prototype.setContextStrokeState_=function(t){var e=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=t.lineCap&&(n.lineCap=t.lineCap,e.lineCap=t.lineCap),e.setLineDash&&(Object(a["b"])(n.lineDash,t.lineDash)||e.setLineDash(n.lineDash=t.lineDash),n.lineDashOffset!=t.lineDashOffset&&(n.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset)),n.lineJoin!=t.lineJoin&&(n.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),n.lineWidth!=t.lineWidth&&(n.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),n.miterLimit!=t.miterLimit&&(n.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),n.strokeStyle!=t.strokeStyle&&(n.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})},e.prototype.setContextTextState_=function(t){var e=this.context_,n=this.contextTextState_,r=t.textAlign?t.textAlign:s["l"];n?(n.font!=t.font&&(n.font=t.font,e.font=t.font),n.textAlign!=r&&(n.textAlign=r,e.textAlign=r),n.textBaseline!=t.textBaseline&&(n.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=r,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:r,textBaseline:t.textBaseline})},e.prototype.setFillStrokeStyle=function(t,e){var n=this;if(t){var r=t.getColor();this.fillState_={fillStyle:Object(i["a"])(r||s["b"])}}else this.fillState_=null;if(e){var o=e.getColor(),a=e.getLineCap(),u=e.getLineDash(),c=e.getLineDashOffset(),l=e.getLineJoin(),h=e.getWidth(),f=e.getMiterLimit(),p=u||s["e"];this.strokeState_={lineCap:void 0!==a?a:s["d"],lineDash:1===this.pixelRatio_?p:p.map((function(t){return t*n.pixelRatio_})),lineDashOffset:(c||s["f"])*this.pixelRatio_,lineJoin:void 0!==l?l:s["g"],lineWidth:(void 0!==h?h:s["h"])*this.pixelRatio_,miterLimit:void 0!==f?f:s["i"],strokeStyle:Object(i["a"])(o||s["k"])}}else this.strokeState_=null},e.prototype.setImageStyle=function(t){var e;if(t&&(e=t.getSize())){var n=t.getAnchor(),r=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=n[0]*this.pixelRatio_,this.imageAnchorY_=n[1]*this.pixelRatio_,this.imageHeight_=e[1]*this.pixelRatio_,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation(),this.imageScale_=t.getScaleArray(),this.imageWidth_=e[0]*this.pixelRatio_}else this.image_=null},e.prototype.setTextStyle=function(t){if(t){var e=t.getFill();if(e){var n=e.getColor();this.textFillState_={fillStyle:Object(i["a"])(n||s["b"])}}else this.textFillState_=null;var r=t.getStroke();if(r){var o=r.getColor(),a=r.getLineCap(),u=r.getLineDash(),c=r.getLineDashOffset(),l=r.getLineJoin(),h=r.getWidth(),f=r.getMiterLimit();this.textStrokeState_={lineCap:void 0!==a?a:s["d"],lineDash:u||s["e"],lineDashOffset:c||s["f"],lineJoin:void 0!==l?l:s["g"],lineWidth:void 0!==h?h:s["h"],miterLimit:void 0!==f?f:s["i"],strokeStyle:Object(i["a"])(o||s["k"])}}else this.textStrokeState_=null;var p=t.getFont(),d=t.getOffsetX(),g=t.getOffsetY(),y=t.getRotateWithView(),v=t.getRotation(),_=t.getScaleArray(),m=t.getText(),b=t.getTextAlign(),E=t.getTextBaseline();this.textState_={font:void 0!==p?p:s["c"],textAlign:void 0!==b?b:s["l"],textBaseline:void 0!==E?E:s["m"]},this.text_=void 0!==m?Array.isArray(m)?m.reduce((function(t,e,n){return t+(n%2?" ":e)}),""):m:"",this.textOffsetX_=void 0!==d?this.pixelRatio_*d:0,this.textOffsetY_=void 0!==g?this.pixelRatio_*g:0,this.textRotateWithView_=void 0!==y&&y,this.textRotation_=void 0!==v?v:0,this.textScale_=[this.pixelRatio_*_[0],this.pixelRatio_*_[1]]}else this.text_=""},e}(r["a"]);e["a"]=f},ca42:function(t,e,n){"use strict";function r(t){return Math.pow(t,3)}function i(t){return 1-r(1-t)}function o(t){return 3*t*t-2*t*t*t}function s(t){return t}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s}))},ca84:function(t,e,n){var r=n("e330"),i=n("1a2d"),o=n("fc6a"),s=n("4d64").indexOf,a=n("d012"),u=r([].push);t.exports=function(t,e){var n,r=o(t),c=0,l=[];for(n in r)!i(a,n)&&i(r,n)&&u(l,n);while(e.length>c)i(r,n=e[c++])&&(~s(l,n)||u(l,n));return l}},cb2d:function(t,e,n){var r=n("1626"),i=n("9bf2"),o=n("13d2"),s=n("6374");t.exports=function(t,e,n,a){a||(a={});var u=a.enumerable,c=void 0!==a.name?a.name:e;if(r(n)&&o(n,c,a),a.global)u?t[e]=n:s(e,n);else{try{a.unsafe?t[e]&&(u=!0):delete t[e]}catch(l){}u?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),o=r.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},cd7e:function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"e",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return a})),n.d(e,"f",(function(){return l}));var r="ol-hidden",i="ol-selectable",o="ol-unselectable",s="ol-control",a="ol-collapsed",u=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),c=["style","variant","weight","size","lineHeight","family"],l=function(t){var e=t.match(u);if(!e)return null;for(var n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},r=0,i=c.length;r<i;++r){var o=e[r+1];void 0!==o&&(n[c[r]]=o)}return n.families=n.family.split(/,\s?/),n}},cdce:function(t,e,n){var r=n("da84"),i=n("1626"),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},ce2c:function(t,e,n){"use strict";var r=n("35d8"),i=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(t){function e(e){var n=e||{};return t.call(this,{points:1/0,fill:n.fill,radius:n.radius,stroke:n.stroke,scale:void 0!==n.scale?n.scale:1,rotation:void 0!==n.rotation?n.rotation:0,rotateWithView:void 0!==n.rotateWithView&&n.rotateWithView,displacement:void 0!==n.displacement?n.displacement:[0,0],declutterMode:n.declutterMode})||this}return i(e,t),e.prototype.clone=function(){var t=this.getScale(),n=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return n.setOpacity(this.getOpacity()),n},e.prototype.setRadius=function(t){this.radius_=t,this.render()},e}(r["a"]);e["a"]=o},cef7:function(t,e,n){"use strict";var r=function(){function t(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}return t.prototype.preventDefault=function(){this.defaultPrevented=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t}();e["a"]=r},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("da84"),i=n("1626"),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d202:function(t,e,n){"use strict";e["a"]={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"}},d2bb:function(t,e,n){var r=n("e330"),i=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(n,[]),e=n instanceof Array}catch(s){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},d352:function(t,e,n){"use strict";var r=n("01d4"),i=n("8f37"),o=n("0af5"),s=n("1e8d"),a=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(t){function e(e){var n=t.call(this)||this;return n.geometries_=e||null,n.changeEventsKeys_=[],n.listenGeometriesChange_(),n}return a(e,t),e.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(s["c"]),this.changeEventsKeys_.length=0},e.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var t=0,e=this.geometries_.length;t<e;++t)this.changeEventsKeys_.push(Object(s["a"])(this.geometries_[t],r["a"].CHANGE,this.changed,this))},e.prototype.clone=function(){var t=new e(null);return t.setGeometries(this.geometries_),t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,r){if(r<Object(o["e"])(this.getExtent(),t,e))return r;for(var i=this.geometries_,s=0,a=i.length;s<a;++s)r=i[s].closestPointXY(t,e,n,r);return r},e.prototype.containsXY=function(t,e){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)if(n[r].containsXY(t,e))return!0;return!1},e.prototype.computeExtent=function(t){Object(o["l"])(t);for(var e=this.geometries_,n=0,r=e.length;n<r;++n)Object(o["p"])(t,e[n].getExtent());return t},e.prototype.getGeometries=function(){return c(this.geometries_)},e.prototype.getGeometriesArray=function(){return this.geometries_},e.prototype.getGeometriesArrayRecursive=function(){for(var t=[],e=this.geometries_,n=0,r=e.length;n<r;++n)e[n].getType()===this.getType()?t=t.concat(e[n].getGeometriesArrayRecursive()):t.push(e[n]);return t},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;for(var n=[],r=this.geometries_,i=!1,o=0,s=r.length;o<s;++o){var a=r[o],u=a.getSimplifiedGeometry(t);n.push(u),u!==a&&(i=!0)}if(i){var c=new e(null);return c.setGeometriesArray(n),c}return this.simplifiedGeometryMaxMinSquaredTolerance=t,this},e.prototype.getType=function(){return"GeometryCollection"},e.prototype.intersectsExtent=function(t){for(var e=this.geometries_,n=0,r=e.length;n<r;++n)if(e[n].intersectsExtent(t))return!0;return!1},e.prototype.isEmpty=function(){return 0===this.geometries_.length},e.prototype.rotate=function(t,e){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)n[r].rotate(t,e);this.changed()},e.prototype.scale=function(t,e,n){var r=n;r||(r=Object(o["w"])(this.getExtent()));for(var i=this.geometries_,s=0,a=i.length;s<a;++s)i[s].scale(t,e,r);this.changed()},e.prototype.setGeometries=function(t){this.setGeometriesArray(c(t))},e.prototype.setGeometriesArray=function(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()},e.prototype.applyTransform=function(t){for(var e=this.geometries_,n=0,r=e.length;n<r;++n)e[n].applyTransform(t);this.changed()},e.prototype.translate=function(t,e){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)n[r].translate(t,e);this.changed()},e.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),t.prototype.disposeInternal.call(this)},e}(i["a"]);function c(t){for(var e=[],n=0,r=t.length;n<r;++n)e.push(t[n].clone());return e}e["a"]=u},d6e6:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("3252"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.Hasher,i=e.x64,o=i.Word,s=i.WordArray,a=e.algo;function u(){return o.create.apply(o,arguments)}var c=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],l=[];(function(){for(var t=0;t<80;t++)l[t]=u()})();var h=a.SHA512=r.extend({_doReset:function(){this._hash=new s.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],u=n[5],h=n[6],f=n[7],p=r.high,d=r.low,g=i.high,y=i.low,v=o.high,_=o.low,m=s.high,b=s.low,E=a.high,w=a.low,x=u.high,O=u.low,S=h.high,C=h.low,I=f.high,P=f.low,R=p,T=d,L=g,M=y,N=v,A=_,F=m,j=b,D=E,k=w,G=x,B=O,U=S,z=C,Y=I,X=P,V=0;V<80;V++){var q,W,H=l[V];if(V<16)W=H.high=0|t[e+2*V],q=H.low=0|t[e+2*V+1];else{var Z=l[V-15],K=Z.high,J=Z.low,Q=(K>>>1|J<<31)^(K>>>8|J<<24)^K>>>7,$=(J>>>1|K<<31)^(J>>>8|K<<24)^(J>>>7|K<<25),tt=l[V-2],et=tt.high,nt=tt.low,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,it=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),ot=l[V-7],st=ot.high,at=ot.low,ut=l[V-16],ct=ut.high,lt=ut.low;q=$+at,W=Q+st+(q>>>0<$>>>0?1:0),q+=it,W=W+rt+(q>>>0<it>>>0?1:0),q+=lt,W=W+ct+(q>>>0<lt>>>0?1:0),H.high=W,H.low=q}var ht=D&G^~D&U,ft=k&B^~k&z,pt=R&L^R&N^L&N,dt=T&M^T&A^M&A,gt=(R>>>28|T<<4)^(R<<30|T>>>2)^(R<<25|T>>>7),yt=(T>>>28|R<<4)^(T<<30|R>>>2)^(T<<25|R>>>7),vt=(D>>>14|k<<18)^(D>>>18|k<<14)^(D<<23|k>>>9),_t=(k>>>14|D<<18)^(k>>>18|D<<14)^(k<<23|D>>>9),mt=c[V],bt=mt.high,Et=mt.low,wt=X+_t,xt=Y+vt+(wt>>>0<X>>>0?1:0),Ot=(wt=wt+ft,xt=xt+ht+(wt>>>0<ft>>>0?1:0),wt=wt+Et,xt=xt+bt+(wt>>>0<Et>>>0?1:0),wt=wt+q,xt=xt+W+(wt>>>0<q>>>0?1:0),yt+dt),St=gt+pt+(Ot>>>0<yt>>>0?1:0);Y=U,X=z,U=G,z=B,G=D,B=k,k=j+wt|0,D=F+xt+(k>>>0<j>>>0?1:0)|0,F=N,j=A,N=L,A=M,L=R,M=T,T=wt+Ot|0,R=xt+St+(T>>>0<wt>>>0?1:0)|0}d=r.low=d+T,r.high=p+R+(d>>>0<T>>>0?1:0),y=i.low=y+M,i.high=g+L+(y>>>0<M>>>0?1:0),_=o.low=_+A,o.high=v+N+(_>>>0<A>>>0?1:0),b=s.low=b+j,s.high=m+F+(b>>>0<j>>>0?1:0),w=a.low=w+k,a.high=E+D+(w>>>0<k>>>0?1:0),O=u.low=O+B,u.high=x+G+(O>>>0<B>>>0?1:0),C=h.low=C+z,h.high=S+U+(C>>>0<z>>>0?1:0),P=f.low=P+X,f.high=I+Y+(P>>>0<X>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(r+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process();var i=this._hash.toX32();return i},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=r._createHelper(h),e.HmacSHA512=r._createHmacHelper(h)}(),t.SHA512}))},d9b5:function(t,e,n){var r=n("d066"),i=n("1626"),o=n("3a9b"),s=n("fdbf"),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,a(t))}},d9e2:function(t,e,n){var r=n("23e7"),i=n("da84"),o=n("2ba4"),s=n("e5cb"),a="WebAssembly",u=i[a],c=7!==Error("e",{cause:7}).cause,l=function(t,e){var n={};n[t]=s(t,e,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},h=function(t,e){if(u&&u[t]){var n={};n[t]=s(a+"."+t,e,c),r({target:a,stat:!0,constructor:!0,arity:1,forced:c},n)}};l("Error",(function(t){return function(e){return o(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),l("URIError",(function(t){return function(e){return o(t,this,arguments)}})),h("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),h("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),h("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},da5c:function(t,e,n){"use strict";var r=function(){function t(){this.disposed=!1}return t.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},t.prototype.disposeInternal=function(){},t}();e["a"]=r},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dc07:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=function(){function t(t,e,n,r){this.minX=t,this.maxX=e,this.minY=n,this.maxY=r}return t.prototype.contains=function(t){return this.containsXY(t[1],t[2])},t.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},t.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},t.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},t.prototype.extend=function(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)},t.prototype.getHeight=function(){return this.maxY-this.minY+1},t.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},t.prototype.getWidth=function(){return this.maxX-this.minX+1},t.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},t}();function i(t,e,n,i,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=n,o.maxY=i,o):new r(t,e,n,i)}e["b"]=r},dc4a:function(t,e,n){var r=n("59ed"),i=n("7234");t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},ddea:function(t,e,n){"use strict";n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return f})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return d})),n.d(e,"i",(function(){return g})),n.d(e,"k",(function(){return y})),n.d(e,"l",(function(){return v})),n.d(e,"m",(function(){return _})),n.d(e,"j",(function(){return m})),n.d(e,"h",(function(){return b})),n.d(e,"a",(function(){return E})),n.d(e,"q",(function(){return C})),n.d(e,"p",(function(){return T})),n.d(e,"o",(function(){return L})),n.d(e,"n",(function(){return M}));var r=n("e269"),i=n("0ec0"),o=n("617d"),s=n("38f3"),a=n("0999"),u=n("cd7e"),c="10px sans-serif",l="#000",h="round",f=[],p=0,d="round",g=10,y="#000",v="center",_="middle",m=[0,0,0,0],b=1,E=new r["a"],w=new i["a"];w.setSize=function(){console.warn("labelCache is deprecated.")};var x,O=null,S={},C=function(){var t,e,n=100,r="32px ",i=["monospace","serif"],o=i.length,a="wmytzilWMYTZIL@#/&?$%10";function c(t,n,s){for(var u=!0,c=0;c<o;++c){var l=i[c];if(e=R(t+" "+n+" "+r+l,a),s!=l){var h=R(t+" "+n+" "+r+s+","+l,a);u=u&&h!=e}}return!!u}function l(){for(var e=!0,r=E.getKeys(),i=0,o=r.length;i<o;++i){var a=r[i];E.get(a)<n&&(c.apply(this,a.split("\n"))?(Object(s["b"])(S),O=null,x=void 0,E.set(a,n)):(E.set(a,E.get(a)+1,!0),e=!1))}e&&(clearInterval(t),t=void 0)}return function(e){var r=Object(u["f"])(e);if(r)for(var i=r.families,o=0,s=i.length;o<s;++o){var a=i[o],h=r.style+"\n"+r.weight+"\n"+a;void 0===E.get(h)&&(E.set(h,n,!0),c(r.style,r.weight,a)||(E.set(h,0,!0),void 0===t&&(t=setInterval(l,32))))}}}(),I=function(){var t;return function(e){var n=S[e];if(void 0==n){if(o["h"]){var r=Object(u["f"])(e),i=P(e,"Žg"),s=isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight);n=s*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else t||(t=document.createElement("div"),t.innerHTML="M",t.style.minHeight="0",t.style.maxHeight="none",t.style.height="auto",t.style.padding="0",t.style.border="none",t.style.position="absolute",t.style.display="block",t.style.left="-99999px"),t.style.font=e,document.body.appendChild(t),n=t.offsetHeight,document.body.removeChild(t);S[e]=n}return n}}();function P(t,e){return O||(O=Object(a["a"])(1,1)),t!=x&&(O.font=t,x=O.font),O.measureText(e)}function R(t,e){return P(t,e).width}function T(t,e,n){if(e in n)return n[e];var r=e.split("\n").reduce((function(e,n){return Math.max(e,R(t,n))}),0);return n[e]=r,r}function L(t,e){for(var n=[],r=[],i=[],o=0,s=0,a=0,u=0,c=0,l=e.length;c<=l;c+=2){var h=e[c];if("\n"!==h&&c!==l){var f=e[c+1]||t.font,p=R(f,h);n.push(p),s+=p;var d=I(f);r.push(d),u=Math.max(u,d)}else o=Math.max(o,s),i.push(s),s=0,a+=u}return{width:o,height:a,widths:n,heights:r,lineWidths:i}}function M(t,e,n,r,i,o,s,a,u,c,l){t.save(),1!==n&&(t.globalAlpha*=n),e&&t.setTransform.apply(t,e),r.contextInstructions?(t.translate(u,c),t.scale(l[0],l[1]),N(r,t)):l[0]<0||l[1]<0?(t.translate(u,c),t.scale(l[0],l[1]),t.drawImage(r,i,o,s,a,0,0,s,a)):t.drawImage(r,i,o,s,a,u,c,s*l[0],a*l[1]),t.restore()}function N(t,e){for(var n=t.contextInstructions,r=0,i=n.length;r<i;r+=2)Array.isArray(n[r+1])?e[n[r]].apply(e,n[r+1]):e[n[r]]=n[r+1]}},df2f:function(t,e,n){(function(e,r){t.exports=r(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.WordArray,i=n.Hasher,o=e.algo,s=[],a=o.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],u=n[4],c=0;c<80;c++){if(c<16)s[c]=0|t[e+c];else{var l=s[c-3]^s[c-8]^s[c-14]^s[c-16];s[c]=l<<1|l>>>31}var h=(r<<5|r>>>27)+u+s[c];h+=c<20?1518500249+(i&o|~i&a):c<40?1859775393+(i^o^a):c<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,u=a,a=o,o=i<<30|i>>>2,i=r,r=h}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+u|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=i._createHelper(a),e.HmacSHA1=i._createHmacHelper(a)}(),t.SHA1}))},df4c:function(t,e,n){"use strict";e["a"]={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"}},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}function i(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}e.resolve=function(){for(var e="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var s=o>=0?arguments[o]:t.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,r="/"===s.charAt(0))}return e=n(i(e.split("/"),(function(t){return!!t})),!r).join("/"),(r?"/":"")+e||"."},e.normalize=function(t){var r=e.isAbsolute(t),s="/"===o(t,-1);return t=n(i(t.split("/"),(function(t){return!!t})),!r).join("/"),t||r||(t="."),t&&s&&(t+="/"),(r?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(i(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),s=Math.min(i.length,o.length),a=s,u=0;u<s;u++)if(i[u]!==o[u]){a=u;break}var c=[];for(u=a;u<i.length;u++)c.push("..");return c=c.concat(o.slice(a)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,r=-1,i=!0,o=t.length-1;o>=1;--o)if(e=t.charCodeAt(o),47===e){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=r(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,s=t.length-1;s>=0;--s){var a=t.charCodeAt(s);if(47!==a)-1===r&&(i=!1,r=s+1),46===a?-1===e?e=s:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=s+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e269:function(t,e,n){"use strict";var r=n("cef7"),i=n("7b4f"),o=n("35a7"),s=n("38f3"),a=n("1300"),u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.key=n,i.oldValue=r,i}return u(e,t),e}(r["a"]),l=function(t){function e(e){var n=t.call(this)||this;return n.on,n.once,n.un,Object(a["c"])(n),n.values_=null,void 0!==e&&n.setProperties(e),n}return u(e,t),e.prototype.get=function(t){var e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},e.prototype.getProperties=function(){return this.values_&&Object(s["a"])({},this.values_)||{}},e.prototype.hasProperties=function(){return!!this.values_},e.prototype.notify=function(t,e){var n;n="change:".concat(t),this.hasListener(n)&&this.dispatchEvent(new c(n,t,e)),n=i["a"].PROPERTYCHANGE,this.hasListener(n)&&this.dispatchEvent(new c(n,t,e))},e.prototype.addChangeListener=function(t,e){this.addEventListener("change:".concat(t),e)},e.prototype.removeChangeListener=function(t,e){this.removeEventListener("change:".concat(t),e)},e.prototype.set=function(t,e,n){var r=this.values_||(this.values_={});if(n)r[t]=e;else{var i=r[t];r[t]=e,i!==e&&this.notify(t,i)}},e.prototype.setProperties=function(t,e){for(var n in t)this.set(n,t[n],e)},e.prototype.applyProperties=function(t){t.values_&&Object(s["a"])(this.values_||(this.values_={}),t.values_)},e.prototype.unset=function(t,e){if(this.values_&&t in this.values_){var n=this.values_[t];delete this.values_[t],Object(s["d"])(this.values_)&&(this.values_=null),e||this.notify(t,n)}},e}(o["a"]);e["a"]=l},e300:function(t,e,n){"use strict";var r=n("835b"),i=n("e269"),o=n("183a"),s=n("cef7"),a=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u={LENGTH:"length"},c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.element=n,i.index=r,i}return a(e,t),e}(s["a"]),l=function(t){function e(e,n){var r=t.call(this)||this;r.on,r.once,r.un;var i=n||{};if(r.unique_=!!i.unique,r.array_=e||[],r.unique_)for(var o=0,s=r.array_.length;o<s;++o)r.assertUnique_(r.array_[o],o);return r.updateLength_(),r}return a(e,t),e.prototype.clear=function(){while(this.getLength()>0)this.pop()},e.prototype.extend=function(t){for(var e=0,n=t.length;e<n;++e)this.push(t[e]);return this},e.prototype.forEach=function(t){for(var e=this.array_,n=0,r=e.length;n<r;++n)t(e[n],n,e)},e.prototype.getArray=function(){return this.array_},e.prototype.item=function(t){return this.array_[t]},e.prototype.getLength=function(){return this.get(u.LENGTH)},e.prototype.insertAt=function(t,e){this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new c(o["a"].ADD,e,t))},e.prototype.pop=function(){return this.removeAt(this.getLength()-1)},e.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var e=this.getLength();return this.insertAt(e,t),this.getLength()},e.prototype.remove=function(t){for(var e=this.array_,n=0,r=e.length;n<r;++n)if(e[n]===t)return this.removeAt(n)},e.prototype.removeAt=function(t){var e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new c(o["a"].REMOVE,e,t)),e},e.prototype.setAt=function(t,e){var n=this.getLength();if(t<n){this.unique_&&this.assertUnique_(e,t);var r=this.array_[t];this.array_[t]=e,this.dispatchEvent(new c(o["a"].REMOVE,r,t)),this.dispatchEvent(new c(o["a"].ADD,e,t))}else{for(var i=n;i<t;++i)this.insertAt(i,void 0);this.insertAt(t,e)}},e.prototype.updateLength_=function(){this.set(u.LENGTH,this.array_.length)},e.prototype.assertUnique_=function(t,e){for(var n=0,i=this.array_.length;n<i;++n)if(this.array_[n]===t&&n!==e)throw new r["a"](58)},e}(i["a"]);e["a"]=l},e330:function(t,e,n){var r=n("40d5"),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);t.exports=r?s:function(t){return function(){return o.apply(t,arguments)}}},e391:function(t,e,n){var r=n("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e5cb:function(t,e,n){"use strict";var r=n("d066"),i=n("1a2d"),o=n("9112"),s=n("3a9b"),a=n("d2bb"),u=n("e893"),c=n("aeb0"),l=n("7156"),h=n("e391"),f=n("ab36"),p=n("6f19"),d=n("83ab"),g=n("c430");t.exports=function(t,e,n,y){var v="stackTraceLimit",_=y?2:1,m=t.split("."),b=m[m.length-1],E=r.apply(null,m);if(E){var w=E.prototype;if(!g&&i(w,"cause")&&delete w.cause,!n)return E;var x=r("Error"),O=e((function(t,e){var n=h(y?e:t,void 0),r=y?new E(t):new E;return void 0!==n&&o(r,"message",n),p(r,O,r.stack,2),this&&s(w,this)&&l(r,this,O),arguments.length>_&&f(r,arguments[_]),r}));if(O.prototype=w,"Error"!==b?a?a(O,x):u(O,x,{name:!0}):d&&v in E&&(c(O,E,v),c(O,E,"prepareStackTrace")),u(O,E),!g)try{w.name!==b&&o(w,"name",b),w.constructor=O}catch(S){}return O}}},e61b:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("3252"))})(0,(function(t){return function(e){var n=t,r=n.lib,i=r.WordArray,o=r.Hasher,s=n.x64,a=s.Word,u=n.algo,c=[],l=[],h=[];(function(){for(var t=1,e=0,n=0;n<24;n++){c[t+5*e]=(n+1)*(n+2)/2%64;var r=e%5,i=(2*t+3*e)%5;t=r,e=i}for(t=0;t<5;t++)for(e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;for(var o=1,s=0;s<24;s++){for(var u=0,f=0,p=0;p<7;p++){if(1&o){var d=(1<<p)-1;d<32?f^=1<<d:u^=1<<d-32}128&o?o=o<<1^113:o<<=1}h[s]=a.create(u,f)}})();var f=[];(function(){for(var t=0;t<25;t++)f[t]=a.create()})();var p=u.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var o=t[e+2*i],s=t[e+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);var a=n[i];a.high^=s,a.low^=o}for(var u=0;u<24;u++){for(var p=0;p<5;p++){for(var d=0,g=0,y=0;y<5;y++){a=n[p+5*y];d^=a.high,g^=a.low}var v=f[p];v.high=d,v.low=g}for(p=0;p<5;p++){var _=f[(p+4)%5],m=f[(p+1)%5],b=m.high,E=m.low;for(d=_.high^(b<<1|E>>>31),g=_.low^(E<<1|b>>>31),y=0;y<5;y++){a=n[p+5*y];a.high^=d,a.low^=g}}for(var w=1;w<25;w++){a=n[w];var x=a.high,O=a.low,S=c[w];S<32?(d=x<<S|O>>>32-S,g=O<<S|x>>>32-S):(d=O<<S-32|x>>>64-S,g=x<<S-32|O>>>64-S);var C=f[l[w]];C.high=d,C.low=g}var I=f[0],P=n[0];I.high=P.high,I.low=P.low;for(p=0;p<5;p++)for(y=0;y<5;y++){w=p+5*y,a=n[w];var R=f[w],T=f[(p+1)%5+5*y],L=f[(p+2)%5+5*y];a.high=R.high^~T.high&L.high,a.low=R.low^~T.low&L.low}a=n[0];var M=h[u];a.high^=M.high,a.low^=M.low}},_doFinalize:function(){var t=this._data,n=t.words,r=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(e.ceil((r+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,u=a/8,c=[],l=0;l<u;l++){var h=s[l],f=h.high,p=h.low;f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(f)}return new i.init(c,a)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});n.SHA3=o._createHelper(p),n.HmacSHA3=o._createHmacHelper(p)}(Math),t.SHA3}))},e893:function(t,e,n){var r=n("1a2d"),i=n("56ef"),o=n("06cf"),s=n("9bf2");t.exports=function(t,e,n){for(var a=i(e),u=s.f,c=o.f,l=0;l<a.length;l++){var h=a[l];r(t,h)||n&&r(n,h)||u(t,h,c(e,h))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},e98d:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("5c38");function i(t){return Array.isArray(t)?Object(r["c"])(t):t}},f403:function(t,e,n){"use strict";var r=n("9abc"),i=n("0af5"),o=n("abb7"),s=n("7fc9"),a=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(t){function e(e,n){var r=t.call(this)||this;return r.setCoordinates(e,n),r}return a(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,r){var i=this.flatCoordinates,o=Object(s["i"])(t,e,i[0],i[1]);if(o<r){for(var a=this.stride,u=0;u<a;++u)n[u]=i[u];return n.length=a,o}return r},e.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},e.prototype.computeExtent=function(t){return Object(i["m"])(this.flatCoordinates,t)},e.prototype.getType=function(){return"Point"},e.prototype.intersectsExtent=function(t){return Object(i["h"])(t,this.flatCoordinates[0],this.flatCoordinates[1])},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(o["a"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(r["a"]);e["a"]=u},f4ea:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend(),n=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var s=o.slice(0);n.encryptBlock(s,0),o[r-1]=o[r-1]+1|0;for(var a=0;a<r;a++)t[e+a]^=s[a]}});return e.Decryptor=n,e}(),t.mode.CTR}))},f5dd:function(t,e,n){"use strict";var r=n("fced"),i=function(){function t(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}return t.prototype.canWrapX=function(){return this.canWrapX_},t.prototype.getCode=function(){return this.code_},t.prototype.getExtent=function(){return this.extent_},t.prototype.getUnits=function(){return this.units_},t.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||r["a"][this.units_]},t.prototype.getWorldExtent=function(){return this.worldExtent_},t.prototype.getAxisOrientation=function(){return this.axisOrientation_},t.prototype.isGlobal=function(){return this.global_},t.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},t.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},t.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},t.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},t.prototype.setWorldExtent=function(t){this.worldExtent_=t},t.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},t.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},t}();e["a"]=i},f5df:function(t,e,n){var r=n("00ee"),i=n("1626"),o=n("c6b6"),s=n("b622"),a=s("toStringTag"),u=Object,c="Arguments"==o(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(n){}};t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=l(e=u(t),a))?n:c?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},f78c:function(t,e,n){"use strict";var r=function(){function t(){}return t.prototype.drawCustom=function(t,e,n,r){},t.prototype.drawGeometry=function(t){},t.prototype.setStyle=function(t){},t.prototype.drawCircle=function(t,e){},t.prototype.drawFeature=function(t,e){},t.prototype.drawGeometryCollection=function(t,e){},t.prototype.drawLineString=function(t,e){},t.prototype.drawMultiLineString=function(t,e){},t.prototype.drawMultiPoint=function(t,e){},t.prototype.drawMultiPolygon=function(t,e){},t.prototype.drawPoint=function(t,e){},t.prototype.drawPolygon=function(t,e){},t.prototype.drawText=function(t,e){},t.prototype.setFillStrokeStyle=function(t,e){},t.prototype.setImageStyle=function(t,e){},t.prototype.setTextStyle=function(t,e){},t}();e["a"]=r},faf4:function(t,e,n){"use strict";var r=n("01d4"),i=n("869f"),o=n("35a7"),s=n("1300"),a=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(t){function e(e){var n=t.call(this)||this;return n.ready=!0,n.boundHandleImageChange_=n.handleImageChange_.bind(n),n.layer_=e,n.declutterExecutorGroup=null,n}return a(e,t),e.prototype.getFeatures=function(t){return Object(s["b"])()},e.prototype.getData=function(t){return null},e.prototype.prepareFrame=function(t){return Object(s["b"])()},e.prototype.renderFrame=function(t,e){return Object(s["b"])()},e.prototype.loadedTileCallback=function(t,e,n){t[e]||(t[e]={}),t[e][n.tileCoord.toString()]=n},e.prototype.createLoadedTileFinder=function(t,e,n){return function(r,i){var o=this.loadedTileCallback.bind(this,n,r);return t.forEachLoadedTile(e,r,i,o)}.bind(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,r,i){},e.prototype.getDataAtPixel=function(t,e,n){return null},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){var e=t.target;e.getState()===i["a"].LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var e=t.getState();return e!=i["a"].LOADED&&e!=i["a"].ERROR&&t.addEventListener(r["a"].CHANGE,this.boundHandleImageChange_),e==i["a"].IDLE&&(t.load(),e=t.getState()),e==i["a"].LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()},e.prototype.disposeInternal=function(){delete this.layer_,t.prototype.disposeInternal.call(this)},e}(o["a"]);e["a"]=u},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var r=window.document.currentScript,i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}n("d9e2");class o{}o.arcgisUrls={chinaBlue:{name:"高速蓝",url:"https://yhxt.jxgsgl.com:7031/arcgis/rest/services/jx/JxMapblue2021/MapServer",resolutions:[.0624062618086491,.04394531353227711,.021972656766138556,.010986328383069278,.005493164191534639,.0027465809060368165,.0013732916427489112,.0006866458213744556,.0003433229106872278,.0001716614553436139,8582953794130404e-20,4291595870115493e-20,21457979350577466e-21,10728989675288733e-21,5363305107141452e-21,2681652553570726e-21]},chinaWhite:{name:"高速白",url:"https://yhxt.jxgsgl.com:7031/arcgis/rest/services/jx/GTJxMap2023/MapServer",resolutions:[.0624062618086491,.04394531353227711,.021972656766138556,.010986328383069278,.005493164191534639,.0027465809060368165,.0013732916427489112,.0006866458213744556,.0003433229106872278,.0001716614553436139,8582953794130404e-20,4291595870115493e-20,21457979350577466e-21,10728989675288733e-21,5363305107141452e-21,2681652553570726e-21]}};class s{constructor(){this.layerName="chinaBlue",this.center=[115.8,28.7],this.zoom=7,this.projection="EPSG:4326",this.minZoom=7,this.maxZoom=21}}n("14d9");var a=n("6cbf"),u=n("83a6"),c=n("8682"),l=n("ce2c"),h=n("8295"),f=n("35d8"),p=n("6c77");class d{constructor(){}static setOlStyle(t){if(!t)return{};let e={};if(t.icon&&(e["image"]=new a["a"](t.icon)),t.circle){let n={radius:t.circle.radius||4};t.circle.fill&&(n["fill"]=new u["a"]({color:t.circle.fill||"#FF0000"})),t.circle.stroke&&(n["stroke"]=new c["a"](t.circle.stroke)),e["image"]=new l["a"](n)}if(t.stroke&&(e["stroke"]=new c["a"](t.stroke)),t.fill&&(e["fill"]=new u["a"](t.fill)),t.text){let n={};t.text.text&&(n["text"]=t.text.text),t.text.stroke&&(n["stroke"]=new c["a"](t.text.stroke)),t.text.fill&&(n["fill"]=new u["a"](t.text.fill)),t.text.font&&(n["font"]=t.text.font),e["text"]=new h["a"](n)}t.zIndex&&(e["zIndex"]=t.zIndex),t.regularShape&&(e["regularShape"]=new f["a"](t.regularShape));const n=new p["c"](e);return n}}d.defaultStyle={stroke:{color:"#FF0000",width:2},circle:{radius:5,color:"#FF0000"},fill:"#FF0000"};var g=n("4cdf"),y=n("64d9"),v=n("a2e1"),_=n("27c7"),m=n("f403"),b=n("9a44"),E=n("7a09"),w=n("47e4"),x=n("5bc3"),O=n("88da");class S extends g["a"]{static wktFeature(t){return(new y["a"]).readFeature(t)}static jsonFeature(t){return(new v["a"]).readFeature(t)}static createGeometry(t,e){return S.ArrToGeom[t](e)}static geoFeature(t,e){const n=S.createGeometry(t,e);return new g["a"]({type:t,geometry:n})}static createFeature(t){const e=Object.keys(S.ArrToGeom);if(-1===e.indexOf(t.geometryType))throw Error("错误的geometryType渲染类型参数,当前支持"+e.toString());let n;const{selectStyle:r,olStyle:i}=t;return n="string"===typeof t.geometry?S.wktFeature(t.geometry):S.geoFeature(t.geometryType,t.geometry),n.setProperties(t.attributes),n.setProperties({selectStyle:r,olStyle:i}),n}static FeatureToArr(t){}}S.ArrToGeom={Point:t=>new m["a"](t),MultiPoint:t=>new b["a"](t),LineString:t=>new E["a"](t),MultiLineString:t=>new w["a"](t),Polygon:t=>new x["a"](t),MultiPolygon:t=>new O["a"](t)},S.OlFormat=_;var C=n("595b");class I{static getTurfArcFeature(t,e){let n=C["lineString"]([t,[t[0]+.5*(e[0]-t[0]),t[1]+.65*(e[1]-t[1])],e]),r=C["bezierSpline"](n),i=C["length"](r,{units:"meters"});return{curved:r,length:i}}static calculateRotate(t,e){let n=null;try{const r=C["point"](t),i=C["point"](e);n=C["bearing"](r,i)}catch(r){}return n}}I._=C;var P=n("c946"),R=n("617d"),T=n("a896"),L=n("30d1"),M=n("256f");function N(t){if(!(t.context instanceof CanvasRenderingContext2D))throw new Error("Only works for render events from Canvas 2D layers");var e,n=t.inversePixelTransform[0],r=t.frameState,i=Object(T["f"])(t.inversePixelTransform.slice(),r.coordinateToPixelTransform),o=Object(L["b"])(r.viewState.resolution,n),s=Object(M["l"])();return s&&(e=Object(M["k"])(s,r.viewState.projection)),new P["a"](t.context,n,r.extent,i,r.viewState.rotation,o,e)}class A{constructor(t){this.map=t}addAnimation(t,e){const n=d.setOlStyle(e.style),r=d.setOlStyle(e.trackStyle),i=t.getProperties().features,o=this.map;let s={};const a=t=>{let a=N(t);i.forEach((o,u)=>{let c=o.get("center"),l=(t.frameState.time-o.get("start"))/1e3,h=l/e.speed-u/i.length;o.get("start")||o.set("start",(new Date).getTime()),o.get("operation")||o.set("operation",[]),o.get("animating")||o.set("animating",!0),h>=1&&(e.loop?(o.set("start",(new Date).getTime()),o.set("operation",[]),o.set("animating",!0),h=0):o.set("animating",!1));let f=o.get("operation"),p=o.getGeometry().getCoordinateAt(h),d=o.getGeometry().getCoordinateAt(s[u]||p);p[0]&&(f.push(p),o.set("operation",f),c&&this.setCenter(p,c));let g=S.geoFeature("Point",p);if(e.style.icon){const t=I.calculateRotate(p,d);if(t){const r=e.style.angle||0;n.getImage().setRotation(.01745329251*t+r)}}let y=S.geoFeature("LineString",f);a.drawFeature(y,r),a.drawFeature(g,n),s[u]=h}),o.render()};t.on("postrender",a),e.moveFeature=a}viewSetZoom(t){const e=this.map.getView();return e.setZoom(t),Math.ceil(e.getZoom())}setCenter(t=[0,0],e){const n=this.map.getView();e=e||n.getZoom(),n.setCenter(t),this.viewSetZoom(e)}start(){}stop(){}}var F=n("3e6b"),j=n("ae50"),D=n("a43f"),k=n("496f"),G=n("38f3"),B=34962,U=34963,z=35040,Y=35044,X=35048,V=5121,q=5123,W=5125,H=5126,Z=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function K(t,e){for(var n=Object(G["a"])({preserveDrawingBuffer:!0,antialias:!R["f"]},e),r=Z.length,i=0;i<r;++i)try{var o=t.getContext(Z[i],n);if(o)return o}catch(s){}return null}var J=n("92fa"),Q={STATIC_DRAW:Y,STREAM_DRAW:z,DYNAMIC_DRAW:X},$=function(){function t(t,e){this.array=null,this.type=t,Object(J["a"])(t===B||t===U,62),this.usage=void 0!==e?e:Q.STATIC_DRAW}return t.prototype.ofSize=function(t){this.array=new(tt(this.type))(t)},t.prototype.fromArray=function(t){var e=tt(this.type);this.array=e.from?e.from(t):new e(t)},t.prototype.fromArrayBuffer=function(t){this.array=new(tt(this.type))(t)},t.prototype.getType=function(){return this.type},t.prototype.getArray=function(){return this.array},t.prototype.getUsage=function(){return this.usage},t.prototype.getSize=function(){return this.array?this.array.length:0},t}();function tt(t){switch(t){case B:return Float32Array;case U:return Uint32Array;default:return Float32Array}}var et=$,nt=n("df4c"),rt=n("faf4"),it=n("3333"),ot=n("070d"),st={LOST:"webglcontextlost",RESTORED:"webglcontextrestored"},at=n("da5c"),ut=n("1300"),ct="\n precision mediump float;\n \n attribute vec2 a_position;\n varying vec2 v_texCoord;\n varying vec2 v_screenCoord;\n \n uniform vec2 u_screenSize;\n \n void main() {\n v_texCoord = a_position * 0.5 + 0.5;\n v_screenCoord = v_texCoord * u_screenSize;\n gl_Position = vec4(a_position, 0.0, 1.0);\n }\n",lt="\n precision mediump float;\n \n uniform sampler2D u_image;\n uniform float u_opacity;\n \n varying vec2 v_texCoord;\n \n void main() {\n gl_FragColor = texture2D(u_image, v_texCoord) * u_opacity;\n }\n",ht=function(){function t(t){this.gl_=t.webGlContext;var e=this.gl_;this.scaleRatio_=t.scaleRatio||1,this.renderTargetTexture_=e.createTexture(),this.renderTargetTextureSize_=null,this.frameBuffer_=e.createFramebuffer();var n=e.createShader(e.VERTEX_SHADER);e.shaderSource(n,t.vertexShader||ct),e.compileShader(n);var r=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(r,t.fragmentShader||lt),e.compileShader(r),this.renderTargetProgram_=e.createProgram(),e.attachShader(this.renderTargetProgram_,n),e.attachShader(this.renderTargetProgram_,r),e.linkProgram(this.renderTargetProgram_),this.renderTargetVerticesBuffer_=e.createBuffer();var i=[-1,-1,1,-1,-1,1,1,-1,1,1,-1,1];e.bindBuffer(e.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),e.bufferData(e.ARRAY_BUFFER,new Float32Array(i),e.STATIC_DRAW),this.renderTargetAttribLocation_=e.getAttribLocation(this.renderTargetProgram_,"a_position"),this.renderTargetUniformLocation_=e.getUniformLocation(this.renderTargetProgram_,"u_screenSize"),this.renderTargetOpacityLocation_=e.getUniformLocation(this.renderTargetProgram_,"u_opacity"),this.renderTargetTextureLocation_=e.getUniformLocation(this.renderTargetProgram_,"u_image"),this.uniforms_=[],t.uniforms&&Object.keys(t.uniforms).forEach(function(n){this.uniforms_.push({value:t.uniforms[n],location:e.getUniformLocation(this.renderTargetProgram_,n)})}.bind(this))}return t.prototype.getGL=function(){return this.gl_},t.prototype.init=function(t){var e=this.getGL(),n=[e.drawingBufferWidth*this.scaleRatio_,e.drawingBufferHeight*this.scaleRatio_];if(e.bindFramebuffer(e.FRAMEBUFFER,this.getFrameBuffer()),e.viewport(0,0,n[0],n[1]),!this.renderTargetTextureSize_||this.renderTargetTextureSize_[0]!==n[0]||this.renderTargetTextureSize_[1]!==n[1]){this.renderTargetTextureSize_=n;var r=0,i=e.RGBA,o=0,s=e.RGBA,a=e.UNSIGNED_BYTE,u=null;e.bindTexture(e.TEXTURE_2D,this.renderTargetTexture_),e.texImage2D(e.TEXTURE_2D,r,i,n[0],n[1],o,s,a,u),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.renderTargetTexture_,0)}},t.prototype.apply=function(t,e,n,r){var i=this.getGL(),o=t.size;if(i.bindFramebuffer(i.FRAMEBUFFER,e?e.getFrameBuffer():null),i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,this.renderTargetTexture_),!e){var s=Object(ut["c"])(i.canvas);if(!t.renderTargets[s]){var a=i.getContextAttributes();a&&a.preserveDrawingBuffer&&(i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT)),t.renderTargets[s]=!0}}i.enable(i.BLEND),i.blendFunc(i.ONE,i.ONE_MINUS_SRC_ALPHA),i.viewport(0,0,i.drawingBufferWidth,i.drawingBufferHeight),i.bindBuffer(i.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),i.useProgram(this.renderTargetProgram_),i.enableVertexAttribArray(this.renderTargetAttribLocation_),i.vertexAttribPointer(this.renderTargetAttribLocation_,2,i.FLOAT,!1,0,0),i.uniform2f(this.renderTargetUniformLocation_,o[0],o[1]),i.uniform1i(this.renderTargetTextureLocation_,0);var u=t.layerStatesArray[t.layerIndex].opacity;i.uniform1f(this.renderTargetOpacityLocation_,u),this.applyUniforms(t),n&&n(i,t),i.drawArrays(i.TRIANGLES,0,6),r&&r(i,t)},t.prototype.getFrameBuffer=function(){return this.frameBuffer_},t.prototype.applyUniforms=function(t){var e,n=this.getGL(),r=1;this.uniforms_.forEach((function(i){if(e="function"===typeof i.value?i.value(t):i.value,e instanceof HTMLCanvasElement||e instanceof ImageData)i.texture||(i.texture=n.createTexture()),n.activeTexture(n["TEXTURE".concat(r)]),n.bindTexture(n.TEXTURE_2D,i.texture),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),e instanceof ImageData?n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,e.width,e.height,0,n.UNSIGNED_BYTE,new Uint8Array(e.data)):n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,e),n.uniform1i(i.location,r++);else if(Array.isArray(e))switch(e.length){case 2:return void n.uniform2f(i.location,e[0],e[1]);case 3:return void n.uniform3f(i.location,e[0],e[1],e[2]);case 4:return void n.uniform4f(i.location,e[0],e[1],e[2],e[3]);default:return}else"number"===typeof e&&n.uniform1f(i.location,e)}))},t}(),ft=ht;function pt(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function dt(t,e){return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}var gt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yt={PROJECTION_MATRIX:"u_projectionMatrix",OFFSET_SCALE_MATRIX:"u_offsetScaleMatrix",OFFSET_ROTATION_MATRIX:"u_offsetRotateMatrix",TIME:"u_time",ZOOM:"u_zoom",RESOLUTION:"u_resolution"},vt={UNSIGNED_BYTE:V,UNSIGNED_SHORT:q,UNSIGNED_INT:W,FLOAT:H},_t={};function mt(t){return"shared/"+t}var bt=0;function Et(){var t="unique/"+bt;return bt+=1,t}function wt(t){var e=_t[t];if(!e){var n=document.createElement("canvas");n.style.position="absolute",n.style.left="0",e={users:0,canvas:n},_t[t]=e}return e.users+=1,e.canvas}function xt(t){var e=_t[t];if(e&&(e.users-=1,!(e.users>0))){var n=e.canvas,r=K(n),i=r.getExtension("WEBGL_lose_context");i&&i.loseContext(),delete _t[t]}}var Ot=function(t){function e(e){var n=t.call(this)||this,r=e||{};n.boundHandleWebGLContextLost_=n.handleWebGLContextLost.bind(n),n.boundHandleWebGLContextRestored_=n.handleWebGLContextRestored.bind(n),n.canvasCacheKey_=r.canvasCacheKey?mt(r.canvasCacheKey):Et(),n.canvas_=wt(n.canvasCacheKey_),n.gl_=K(n.canvas_),n.bufferCache_={},n.extensionCache_={},n.currentProgram_=null,n.canvas_.addEventListener(st.LOST,n.boundHandleWebGLContextLost_),n.canvas_.addEventListener(st.RESTORED,n.boundHandleWebGLContextRestored_),n.offsetRotateMatrix_=Object(T["c"])(),n.offsetScaleMatrix_=Object(T["c"])(),n.tmpMat4_=pt(),n.uniformLocations_={},n.attribLocations_={},n.uniforms_=[],r.uniforms&&n.setUniforms(r.uniforms);var i=n.getGL();return n.postProcessPasses_=r.postProcesses?r.postProcesses.map((function(t){return new ft({webGlContext:i,scaleRatio:t.scaleRatio,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms})})):[new ft({webGlContext:i})],n.shaderCompileErrors_=null,n.startTime_=Date.now(),n}return gt(e,t),e.prototype.setUniforms=function(t){for(var e in this.uniforms_=[],t)this.uniforms_.push({name:e,value:t[e]});this.uniformLocations_={}},e.prototype.canvasCacheKeyMatches=function(t){return this.canvasCacheKey_===mt(t)},e.prototype.getExtension=function(t){if(t in this.extensionCache_)return this.extensionCache_[t];var e=this.gl_.getExtension(t);return this.extensionCache_[t]=e,e},e.prototype.bindBuffer=function(t){var e=this.getGL(),n=Object(ut["c"])(t),r=this.bufferCache_[n];if(!r){var i=e.createBuffer();r={buffer:t,webGlBuffer:i},this.bufferCache_[n]=r}e.bindBuffer(t.getType(),r.webGlBuffer)},e.prototype.flushBufferData=function(t){var e=this.getGL();this.bindBuffer(t),e.bufferData(t.getType(),t.getArray(),t.getUsage())},e.prototype.deleteBuffer=function(t){var e=this.getGL(),n=Object(ut["c"])(t),r=this.bufferCache_[n];r&&!e.isContextLost()&&e.deleteBuffer(r.webGlBuffer),delete this.bufferCache_[n]},e.prototype.disposeInternal=function(){this.canvas_.removeEventListener(st.LOST,this.boundHandleWebGLContextLost_),this.canvas_.removeEventListener(st.RESTORED,this.boundHandleWebGLContextRestored_),xt(this.canvasCacheKey_),delete this.gl_,delete this.canvas_},e.prototype.prepareDraw=function(t,e){var n=this.getGL(),r=this.getCanvas(),i=t.size,o=t.pixelRatio;r.width=i[0]*o,r.height=i[1]*o,r.style.width=i[0]+"px",r.style.height=i[1]+"px",n.useProgram(this.currentProgram_);for(var s=this.postProcessPasses_.length-1;s>=0;s--)this.postProcessPasses_[s].init(t);n.bindTexture(n.TEXTURE_2D,null),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.enable(n.BLEND),n.blendFunc(n.ONE,e?n.ZERO:n.ONE_MINUS_SRC_ALPHA),n.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.prepareDrawToRenderTarget=function(t,e,n){var r=this.getGL(),i=e.getSize();r.bindFramebuffer(r.FRAMEBUFFER,e.getFramebuffer()),r.viewport(0,0,i[0],i[1]),r.bindTexture(r.TEXTURE_2D,e.getTexture()),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),r.enable(r.BLEND),r.blendFunc(r.ONE,n?r.ZERO:r.ONE_MINUS_SRC_ALPHA),r.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.drawElements=function(t,e){var n=this.getGL();this.getExtension("OES_element_index_uint");var r=n.UNSIGNED_INT,i=4,o=e-t,s=t*i;n.drawElements(n.TRIANGLES,o,r,s)},e.prototype.finalizeDraw=function(t,e,n){for(var r=0,i=this.postProcessPasses_.length;r<i;r++)r===i-1?this.postProcessPasses_[r].apply(t,null,e,n):this.postProcessPasses_[r].apply(t,this.postProcessPasses_[r+1])},e.prototype.getCanvas=function(){return this.canvas_},e.prototype.getGL=function(){return this.gl_},e.prototype.applyFrameState=function(t){var e=t.size,n=t.viewState.rotation,r=Object(T["g"])(this.offsetScaleMatrix_);Object(T["i"])(r,2/e[0],2/e[1]);var i=Object(T["g"])(this.offsetRotateMatrix_);0!==n&&Object(T["h"])(i,-n),this.setUniformMatrixValue(yt.OFFSET_SCALE_MATRIX,dt(this.tmpMat4_,r)),this.setUniformMatrixValue(yt.OFFSET_ROTATION_MATRIX,dt(this.tmpMat4_,i)),this.setUniformFloatValue(yt.TIME,.001*(Date.now()-this.startTime_)),this.setUniformFloatValue(yt.ZOOM,t.viewState.zoom),this.setUniformFloatValue(yt.RESOLUTION,t.viewState.resolution)},e.prototype.applyUniforms=function(t){var e,n=this.getGL(),r=0;this.uniforms_.forEach(function(i){if(e="function"===typeof i.value?i.value(t):i.value,e instanceof HTMLCanvasElement||e instanceof HTMLImageElement||e instanceof ImageData){i.texture||(i.prevValue=void 0,i.texture=n.createTexture()),n.activeTexture(n["TEXTURE".concat(r)]),n.bindTexture(n.TEXTURE_2D,i.texture),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE);var o=!(e instanceof HTMLImageElement)||e.complete;o&&i.prevValue!==e&&(i.prevValue=e,n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,e)),n.uniform1i(this.getUniformLocation(i.name),r++)}else if(Array.isArray(e)&&6===e.length)this.setUniformMatrixValue(i.name,dt(this.tmpMat4_,e));else if(Array.isArray(e)&&e.length<=4)switch(e.length){case 2:return void n.uniform2f(this.getUniformLocation(i.name),e[0],e[1]);case 3:return void n.uniform3f(this.getUniformLocation(i.name),e[0],e[1],e[2]);case 4:return void n.uniform4f(this.getUniformLocation(i.name),e[0],e[1],e[2],e[3]);default:return}else"number"===typeof e&&n.uniform1f(this.getUniformLocation(i.name),e)}.bind(this))},e.prototype.useProgram=function(t){if(t==this.currentProgram_)return!1;var e=this.getGL();return e.useProgram(t),this.currentProgram_=t,this.uniformLocations_={},this.attribLocations_={},!0},e.prototype.compileShader=function(t,e){var n=this.getGL(),r=n.createShader(e);return n.shaderSource(r,t),n.compileShader(r),r},e.prototype.getProgram=function(t,e){var n=this.getGL(),r=this.compileShader(t,n.FRAGMENT_SHADER),i=this.compileShader(e,n.VERTEX_SHADER),o=n.createProgram();if(n.attachShader(o,r),n.attachShader(o,i),n.linkProgram(o),!n.getShaderParameter(r,n.COMPILE_STATUS)){var s="Fragment shader compliation failed: ".concat(n.getShaderInfoLog(r));throw new Error(s)}if(n.deleteShader(r),!n.getShaderParameter(i,n.COMPILE_STATUS)){s="Vertex shader compilation failed: ".concat(n.getShaderInfoLog(i));throw new Error(s)}if(n.deleteShader(i),!n.getProgramParameter(o,n.LINK_STATUS)){s="GL program linking failed: ".concat(n.getShaderInfoLog(i));throw new Error(s)}return o},e.prototype.getUniformLocation=function(t){return void 0===this.uniformLocations_[t]&&(this.uniformLocations_[t]=this.getGL().getUniformLocation(this.currentProgram_,t)),this.uniformLocations_[t]},e.prototype.getAttributeLocation=function(t){return void 0===this.attribLocations_[t]&&(this.attribLocations_[t]=this.getGL().getAttribLocation(this.currentProgram_,t)),this.attribLocations_[t]},e.prototype.makeProjectionTransform=function(t,e){var n=t.size,r=t.viewState.rotation,i=t.viewState.resolution,o=t.viewState.center;return Object(T["g"])(e),Object(T["b"])(e,0,0,2/(i*n[0]),2/(i*n[1]),-r,-o[0],-o[1]),e},e.prototype.setUniformFloatValue=function(t,e){this.getGL().uniform1f(this.getUniformLocation(t),e)},e.prototype.setUniformFloatVec4=function(t,e){this.getGL().uniform4fv(this.getUniformLocation(t),e)},e.prototype.setUniformMatrixValue=function(t,e){this.getGL().uniformMatrix4fv(this.getUniformLocation(t),!1,e)},e.prototype.enableAttributeArray_=function(t,e,n,r,i){var o=this.getAttributeLocation(t);o<0||(this.getGL().enableVertexAttribArray(o),this.getGL().vertexAttribPointer(o,e,n,!1,r,i))},e.prototype.enableAttributes=function(t){for(var e=St(t),n=0,r=0;r<t.length;r++){var i=t[r];this.enableAttributeArray_(i.name,i.size,i.type||H,e,n),n+=i.size*Ct(i.type)}},e.prototype.handleWebGLContextLost=function(){Object(G["b"])(this.bufferCache_),this.currentProgram_=null},e.prototype.handleWebGLContextRestored=function(){},e.prototype.createTexture=function(t,e,n){var r=this.getGL(),i=n||r.createTexture(),o=0,s=r.RGBA,a=0,u=r.RGBA,c=r.UNSIGNED_BYTE;return r.bindTexture(r.TEXTURE_2D,i),e?r.texImage2D(r.TEXTURE_2D,o,s,u,c,e):r.texImage2D(r.TEXTURE_2D,o,s,t[0],t[1],a,u,c,null),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),i},e}(at["a"]);function St(t){for(var e=0,n=0;n<t.length;n++){var r=t[n];e+=r.size*Ct(r.type)}return e}function Ct(t){switch(t){case vt.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case vt.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case vt.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT;case vt.FLOAT:default:return Float32Array.BYTES_PER_ELEMENT}}var It=Ot,Pt=n("0af5"),Rt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tt={GENERATE_BUFFERS:"GENERATE_BUFFERS"},Lt=function(t){function e(e,n){var r=t.call(this,e)||this,i=n||{};return r.inversePixelTransform_=Object(T["c"])(),r.pixelContext_=null,r.postProcesses_=i.postProcesses,r.uniforms_=i.uniforms,r.helper,e.addChangeListener(nt["a"].MAP,r.removeHelper.bind(r)),r.dispatchPreComposeEvent=r.dispatchPreComposeEvent.bind(r),r.dispatchPostComposeEvent=r.dispatchPostComposeEvent.bind(r),r}return Rt(e,t),e.prototype.dispatchPreComposeEvent=function(t,e){var n=this.getLayer();if(n.hasListener(ot["a"].PRECOMPOSE)){var r=new it["a"](ot["a"].PRECOMPOSE,void 0,e,t);n.dispatchEvent(r)}},e.prototype.dispatchPostComposeEvent=function(t,e){var n=this.getLayer();if(n.hasListener(ot["a"].POSTCOMPOSE)){var r=new it["a"](ot["a"].POSTCOMPOSE,void 0,e,t);n.dispatchEvent(r)}},e.prototype.reset=function(t){this.uniforms_=t.uniforms,this.helper&&this.helper.setUniforms(this.uniforms_)},e.prototype.removeHelper=function(){this.helper&&(this.helper.dispose(),delete this.helper)},e.prototype.prepareFrame=function(t){if(this.getLayer().getRenderSource()){for(var n=!0,r=-1,i=void 0,o=0,s=t.layerStatesArray.length;o<s;o++){var a=t.layerStatesArray[o].layer,u=a.getRenderer();if(u instanceof e){var c=a.getClassName();if((n||c!==i)&&(r+=1,n=!1),i=c,u===this)break}else n=!0}var l="map/"+t.mapId+"/group/"+r;this.helper&&this.helper.canvasCacheKeyMatches(l)||(this.removeHelper(),this.helper=new It({postProcesses:this.postProcesses_,uniforms:this.uniforms_,canvasCacheKey:l}),i&&(this.helper.getCanvas().className=i),this.afterHelperCreated())}return this.prepareFrameInternal(t)},e.prototype.afterHelperCreated=function(){},e.prototype.prepareFrameInternal=function(t){return!0},e.prototype.disposeInternal=function(){this.removeHelper(),t.prototype.disposeInternal.call(this)},e.prototype.dispatchRenderEvent_=function(t,e,n){var r=this.getLayer();if(r.hasListener(t)){Object(T["b"])(this.inversePixelTransform_,0,0,n.pixelRatio,-n.pixelRatio,0,0,-n.size[1]);var i=new it["a"](t,this.inversePixelTransform_,n,e);r.dispatchEvent(i)}},e.prototype.preRender=function(t,e){this.dispatchRenderEvent_(ot["a"].PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(ot["a"].POSTRENDER,t,e)},e.prototype.getDataAtPixel=function(t,e,n){var r=Object(T["a"])([e.pixelRatio,0,0,e.pixelRatio,0,0],t.slice()),i=this.helper.getGL();if(!i)return null;var o=this.getLayer(),s=o.getExtent();if(s){var a=Object(T["a"])(e.pixelToCoordinateTransform,t.slice());if(!Object(Pt["f"])(s,a))return null}var u=i.getContextAttributes();if(!u||!u.preserveDrawingBuffer)return new Uint8Array;var c,l=Math.round(r[0]),h=Math.round(r[1]),f=this.pixelContext_;if(!f){var p=document.createElement("canvas");p.width=1,p.height=1,f=p.getContext("2d"),this.pixelContext_=f}f.clearRect(0,0,1,1);try{f.drawImage(i.canvas,l,h,1,1,0,0,1,1),c=f.getImageData(0,0,1,1).data}catch(d){return c}return 0===c[3]?null:c},e}(rt["a"]);function Mt(t,e){var n=e||[],r=256,i=r-1;return n[0]=Math.floor(t/r/r/r)/i,n[1]=Math.floor(t/r/r)%r/i,n[2]=Math.floor(t/r)%r/i,n[3]=t%r/i,n}function Nt(t){var e=0,n=256,r=n-1;return e+=Math.round(t[0]*n*n*n*r),e+=Math.round(t[1]*n*n*r),e+=Math.round(t[2]*n*r),e+=Math.round(t[3]*r),e}var At=Lt,Ft=n("9f5e"),jt=new Uint8Array(4),Dt=function(){function t(t,e){this.helper_=t;var n=t.getGL();this.texture_=n.createTexture(),this.framebuffer_=n.createFramebuffer(),this.size_=e||[1,1],this.data_=new Uint8Array(0),this.dataCacheDirty_=!0,this.updateSize_()}return t.prototype.setSize=function(t){Object(Ft["b"])(t,this.size_)||(this.size_[0]=t[0],this.size_[1]=t[1],this.updateSize_())},t.prototype.getSize=function(){return this.size_},t.prototype.clearCachedData=function(){this.dataCacheDirty_=!0},t.prototype.readAll=function(){if(this.dataCacheDirty_){var t=this.size_,e=this.helper_.getGL();e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer_),e.readPixels(0,0,t[0],t[1],e.RGBA,e.UNSIGNED_BYTE,this.data_),this.dataCacheDirty_=!1}return this.data_},t.prototype.readPixel=function(t,e){if(t<0||e<0||t>this.size_[0]||e>=this.size_[1])return jt[0]=0,jt[1]=0,jt[2]=0,jt[3]=0,jt;this.readAll();var n=Math.floor(t)+(this.size_[1]-Math.floor(e)-1)*this.size_[0];return jt[0]=this.data_[4*n],jt[1]=this.data_[4*n+1],jt[2]=this.data_[4*n+2],jt[3]=this.data_[4*n+3],jt},t.prototype.getTexture=function(){return this.texture_},t.prototype.getFramebuffer=function(){return this.framebuffer_},t.prototype.updateSize_=function(){var t=this.size_,e=this.helper_.getGL();this.texture_=this.helper_.createTexture(t,null,this.texture_),e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer_),e.viewport(0,0,t[0],t[1]),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.texture_,0),this.data_=new Uint8Array(t[0]*t[1]*4)},t}(),kt=Dt,Gt=n("7fd1"),Bt=n("1e8d"),Ut=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zt=function(t){function e(e,n){var r=this,i=n.uniforms||{},o=Object(T["c"])();i[yt.PROJECTION_MATRIX]=o,r=t.call(this,e,{uniforms:i,postProcesses:n.postProcesses})||this,r.ready=!1,r.sourceRevision_=-1,r.verticesBuffer_=new et(B,X),r.hitVerticesBuffer_=new et(B,X),r.indicesBuffer_=new et(U,X),r.vertexShader_=n.vertexShader,r.fragmentShader_=n.fragmentShader,r.program_,r.hitDetectionEnabled_=!(!n.hitFragmentShader||!n.hitVertexShader),r.hitVertexShader_=n.hitVertexShader,r.hitFragmentShader_=n.hitFragmentShader,r.hitProgram_;var s=n.attributes?n.attributes.map((function(t){return{name:"a_"+t.name,size:1,type:vt.FLOAT}})):[];r.attributes=[{name:"a_position",size:2,type:vt.FLOAT},{name:"a_index",size:1,type:vt.FLOAT}].concat(s),r.hitDetectionAttributes=[{name:"a_position",size:2,type:vt.FLOAT},{name:"a_index",size:1,type:vt.FLOAT},{name:"a_hitColor",size:4,type:vt.FLOAT},{name:"a_featureUid",size:1,type:vt.FLOAT}].concat(s),r.customAttributes=n.attributes?n.attributes:[],r.previousExtent_=Object(Pt["j"])(),r.currentTransform_=o,r.renderTransform_=Object(T["c"])(),r.invertRenderTransform_=Object(T["c"])(),r.renderInstructions_=new Float32Array(0),r.hitRenderInstructions_=new Float32Array(0),r.hitRenderTarget_,r.generateBuffersRun_=0,r.worker_=Object(Gt["a"])(),r.worker_.addEventListener("message",function(t){var e=t.data;if(e.type===Tt.GENERATE_BUFFERS){var n=e.projectionTransform;e.hitDetection?(this.hitVerticesBuffer_.fromArrayBuffer(e.vertexBuffer),this.helper.flushBufferData(this.hitVerticesBuffer_)):(this.verticesBuffer_.fromArrayBuffer(e.vertexBuffer),this.helper.flushBufferData(this.verticesBuffer_)),this.indicesBuffer_.fromArrayBuffer(e.indexBuffer),this.helper.flushBufferData(this.indicesBuffer_),this.renderTransform_=n,Object(T["d"])(this.invertRenderTransform_,this.renderTransform_),e.hitDetection?this.hitRenderInstructions_=new Float32Array(t.data.renderInstructions):(this.renderInstructions_=new Float32Array(t.data.renderInstructions),e.generateBuffersRun===this.generateBuffersRun_&&(this.ready=!0)),this.getLayer().changed()}}.bind(r)),r.featureCache_={},r.featureCount_=0;var a=r.getLayer().getSource();return r.sourceListenKeys_=[Object(Bt["a"])(a,D["a"].ADDFEATURE,r.handleSourceFeatureAdded_,r),Object(Bt["a"])(a,D["a"].CHANGEFEATURE,r.handleSourceFeatureChanged_,r),Object(Bt["a"])(a,D["a"].REMOVEFEATURE,r.handleSourceFeatureDelete_,r),Object(Bt["a"])(a,D["a"].CLEAR,r.handleSourceFeatureClear_,r)],a.forEachFeature(function(t){this.featureCache_[Object(ut["c"])(t)]={feature:t,properties:t.getProperties(),geometry:t.getGeometry()},this.featureCount_++}.bind(r)),r}return Ut(e,t),e.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.hitDetectionEnabled_&&(this.hitProgram_=this.helper.getProgram(this.hitFragmentShader_,this.hitVertexShader_),this.hitRenderTarget_=new kt(this.helper))},e.prototype.handleSourceFeatureAdded_=function(t){var e=t.feature;this.featureCache_[Object(ut["c"])(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()},this.featureCount_++},e.prototype.handleSourceFeatureChanged_=function(t){var e=t.feature;this.featureCache_[Object(ut["c"])(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()}},e.prototype.handleSourceFeatureDelete_=function(t){var e=t.feature;delete this.featureCache_[Object(ut["c"])(e)],this.featureCount_--},e.prototype.handleSourceFeatureClear_=function(){this.featureCache_={},this.featureCount_=0},e.prototype.renderFrame=function(t){var e=this.helper.getGL();this.preRender(e,t);var n=t.viewState.projection,r=this.getLayer(),i=r.getSource(),o=i.getWrapX()&&n.canWrapX(),s=n.getExtent(),a=t.extent,u=o?Object(Pt["E"])(s):null,c=o?Math.ceil((a[2]-s[2])/u)+1:1,l=o?Math.floor((a[0]-s[0])/u):0,h=l,f=this.indicesBuffer_.getSize();do{this.helper.makeProjectionTransform(t,this.currentTransform_),Object(T["l"])(this.currentTransform_,h*u,0),Object(T["f"])(this.currentTransform_,this.invertRenderTransform_),this.helper.applyUniforms(t),this.helper.drawElements(0,f)}while(++h<c);this.helper.finalizeDraw(t,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);var p=this.helper.getCanvas();return this.hitDetectionEnabled_&&(this.renderHitDetection(t,l,c,u),this.hitRenderTarget_.clearCachedData()),this.postRender(e,t),p},e.prototype.prepareFrameInternal=function(t){var e=this.getLayer(),n=e.getSource(),r=t.viewState,i=!t.viewHints[k["a"].ANIMATING]&&!t.viewHints[k["a"].INTERACTING],o=!Object(Pt["o"])(this.previousExtent_,t.extent),s=this.sourceRevision_<n.getRevision();if(s&&(this.sourceRevision_=n.getRevision()),i&&(o||s)){var a=r.projection,u=r.resolution,c=e instanceof j["a"]?e.getRenderBuffer():0,l=Object(Pt["c"])(t.extent,c*u);n.loadFeatures(l,u,a),this.rebuildBuffers_(t),this.previousExtent_=t.extent.slice()}return this.helper.useProgram(this.program_),this.helper.prepareDraw(t),this.helper.bindBuffer(this.verticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.attributes),!0},e.prototype.rebuildBuffers_=function(t){var e=Object(T["c"])();this.helper.makeProjectionTransform(t,e);var n,r,i=(2+this.customAttributes.length)*this.featureCount_;if(this.renderInstructions_&&this.renderInstructions_.length===i||(this.renderInstructions_=new Float32Array(i)),this.hitDetectionEnabled_){var o=(7+this.customAttributes.length)*this.featureCount_;this.hitRenderInstructions_&&this.hitRenderInstructions_.length===o||(this.hitRenderInstructions_=new Float32Array(o))}var s,a=[],u=[],c=0,l=0;for(var h in this.featureCache_)if(n=this.featureCache_[h],r=n.geometry,r&&"Point"===r.getType()){a[0]=r.getFlatCoordinates()[0],a[1]=r.getFlatCoordinates()[1],Object(T["a"])(e,a),s=Mt(l+6,u),this.renderInstructions_[c++]=a[0],this.renderInstructions_[c++]=a[1],this.hitDetectionEnabled_&&(this.hitRenderInstructions_[l++]=a[0],this.hitRenderInstructions_[l++]=a[1],this.hitRenderInstructions_[l++]=s[0],this.hitRenderInstructions_[l++]=s[1],this.hitRenderInstructions_[l++]=s[2],this.hitRenderInstructions_[l++]=s[3],this.hitRenderInstructions_[l++]=Number(h));for(var f=void 0,p=0;p<this.customAttributes.length;p++)f=this.customAttributes[p].callback(n.feature,n.properties),this.renderInstructions_[c++]=f,this.hitDetectionEnabled_&&(this.hitRenderInstructions_[l++]=f)}var d={type:Tt.GENERATE_BUFFERS,renderInstructions:this.renderInstructions_.buffer,customAttributesCount:this.customAttributes.length};if(d["projectionTransform"]=e,d["generateBuffersRun"]=++this.generateBuffersRun_,this.ready=!1,this.worker_.postMessage(d,[this.renderInstructions_.buffer]),this.renderInstructions_=null,this.hitDetectionEnabled_){var g={type:Tt.GENERATE_BUFFERS,renderInstructions:this.hitRenderInstructions_.buffer,customAttributesCount:5+this.customAttributes.length};g["projectionTransform"]=e,g["hitDetection"]=!0,this.worker_.postMessage(g,[this.hitRenderInstructions_.buffer]),this.hitRenderInstructions_=null}},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,r,i){if(Object(J["a"])(this.hitDetectionEnabled_,66),this.hitRenderInstructions_){var o=Object(T["a"])(e.coordinateToPixelTransform,t.slice()),s=this.hitRenderTarget_.readPixel(o[0]/2,o[1]/2),a=[s[0]/255,s[1]/255,s[2]/255,s[3]/255],u=Nt(a),c=this.hitRenderInstructions_[u],l=Math.floor(c).toString(),h=this.getLayer().getSource(),f=h.getFeatureByUid(l);return f?r(f,this.getLayer(),null):void 0}},e.prototype.renderHitDetection=function(t,e,n,r){if(this.hitVerticesBuffer_.getSize()){var i=e;this.hitRenderTarget_.setSize([Math.floor(t.size[0]/2),Math.floor(t.size[1]/2)]),this.helper.useProgram(this.hitProgram_),this.helper.prepareDrawToRenderTarget(t,this.hitRenderTarget_,!0),this.helper.bindBuffer(this.hitVerticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.hitDetectionAttributes);do{this.helper.makeProjectionTransform(t,this.currentTransform_),Object(T["l"])(this.currentTransform_,i*r,0),Object(T["f"])(this.currentTransform_,this.invertRenderTransform_),this.helper.applyUniforms(t);var o=this.indicesBuffer_.getSize();this.helper.drawElements(0,o)}while(++i<n)}},e.prototype.disposeInternal=function(){this.worker_.terminate(),this.layer_=null,this.sourceListenKeys_.forEach((function(t){Object(Bt["c"])(t)})),this.sourceListenKeys_=null,t.prototype.disposeInternal.call(this)},e}(At),Yt=zt,Xt=n("7fc9"),Vt=n("0999"),qt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wt={BLUR:"blur",GRADIENT:"gradient",RADIUS:"radius"},Ht=["#00f","#0ff","#0f0","#ff0","#f00"],Zt=function(t){function e(e){var n=this,r=e||{},i=Object(G["a"])({},r);delete i.gradient,delete i.radius,delete i.blur,delete i.weight,n=t.call(this,i)||this,n.gradient_=null,n.addChangeListener(Wt.GRADIENT,n.handleGradientChanged_),n.setGradient(r.gradient?r.gradient:Ht),n.setBlur(void 0!==r.blur?r.blur:15),n.setRadius(void 0!==r.radius?r.radius:8);var o=r.weight?r.weight:"weight";return n.weightFunction_="string"===typeof o?function(t){return t.get(o)}:o,n.setRenderOrder(null),n}return qt(e,t),e.prototype.getBlur=function(){return this.get(Wt.BLUR)},e.prototype.getGradient=function(){return this.get(Wt.GRADIENT)},e.prototype.getRadius=function(){return this.get(Wt.RADIUS)},e.prototype.handleGradientChanged_=function(){this.gradient_=Kt(this.getGradient())},e.prototype.setBlur=function(t){this.set(Wt.BLUR,t)},e.prototype.setGradient=function(t){this.set(Wt.GRADIENT,t)},e.prototype.setRadius=function(t){this.set(Wt.RADIUS,t)},e.prototype.createRenderer=function(){return new Yt(this,{className:this.getClassName(),attributes:[{name:"weight",callback:function(t){var e=this.weightFunction_(t);return void 0!==e?Object(Xt["b"])(e,0,1):1}.bind(this)}],vertexShader:"\n precision mediump float;\n uniform mat4 u_projectionMatrix;\n uniform mat4 u_offsetScaleMatrix;\n uniform float u_size;\n attribute vec2 a_position;\n attribute float a_index;\n attribute float a_weight;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n\n void main(void) {\n mat4 offsetMatrix = u_offsetScaleMatrix;\n float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;\n float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;\n v_texCoord = vec2(u, v);\n v_weight = a_weight;\n }",fragmentShader:"\n precision mediump float;\n uniform float u_blurSlope;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n\n void main(void) {\n vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);\n float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;\n float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;\n float alpha = smoothstep(0.0, 1.0, value) * v_weight;\n gl_FragColor = vec4(alpha, alpha, alpha, alpha);\n }",hitVertexShader:"\n precision mediump float;\n uniform mat4 u_projectionMatrix;\n uniform mat4 u_offsetScaleMatrix;\n uniform float u_size;\n attribute vec2 a_position;\n attribute float a_index;\n attribute float a_weight;\n attribute vec4 a_hitColor;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n varying vec4 v_hitColor;\n\n void main(void) {\n mat4 offsetMatrix = u_offsetScaleMatrix;\n float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;\n float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;\n v_texCoord = vec2(u, v);\n v_hitColor = a_hitColor;\n v_weight = a_weight;\n }",hitFragmentShader:"\n precision mediump float;\n uniform float u_blurSlope;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n varying vec4 v_hitColor;\n\n void main(void) {\n vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);\n float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;\n float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;\n float alpha = smoothstep(0.0, 1.0, value) * v_weight;\n if (alpha < 0.05) {\n discard;\n }\n\n gl_FragColor = v_hitColor;\n }",uniforms:{u_size:function(){return 2*(this.get(Wt.RADIUS)+this.get(Wt.BLUR))}.bind(this),u_blurSlope:function(){return this.get(Wt.RADIUS)/Math.max(1,this.get(Wt.BLUR))}.bind(this)},postProcesses:[{fragmentShader:"\n precision mediump float;\n\n uniform sampler2D u_image;\n uniform sampler2D u_gradientTexture;\n uniform float u_opacity;\n\n varying vec2 v_texCoord;\n\n void main() {\n vec4 color = texture2D(u_image, v_texCoord);\n gl_FragColor.a = color.a * u_opacity;\n gl_FragColor.rgb = texture2D(u_gradientTexture, vec2(0.5, color.a)).rgb;\n gl_FragColor.rgb *= gl_FragColor.a;\n }",uniforms:{u_gradientTexture:function(){return this.gradient_}.bind(this),u_opacity:function(){return this.getOpacity()}.bind(this)}}]})},e.prototype.renderDeclutter=function(){},e}(j["a"]);function Kt(t){for(var e=1,n=256,r=Object(Vt["a"])(e,n),i=r.createLinearGradient(0,0,e,n),o=1/(t.length-1),s=0,a=t.length;s<a;++s)i.addColorStop(s*o,t[s]);return r.fillStyle=i,r.fillRect(0,0,e,n),r.canvas}var Jt=Zt,Qt=n("480c"),$t=n("5831"),te=n("91b1"),ee=n("c721"),ne=n("345d"),re=n("2c30"),ie=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oe=function(t){function e(e){var n=this,r=e||{},i=void 0===r.imageSmoothing||r.imageSmoothing;return void 0!==r.interpolate&&(i=r.interpolate),n=t.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,interpolate:i,projection:r.projection,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileGrid:r.tileGrid,tileLoadFunction:r.tileLoadFunction,url:r.url,urls:r.urls,wrapX:void 0===r.wrapX||r.wrapX,transition:r.transition,zDirection:r.zDirection})||this,n.params_=r.params||{},n.hidpi_=void 0===r.hidpi||r.hidpi,n.tmpExtent_=Object(Pt["j"])(),n.setKey(n.getKeyForParams_()),n}return ie(e,t),e.prototype.getKeyForParams_=function(){var t=0,e=[];for(var n in this.params_)e[t++]=n+"-"+this.params_[n];return e.join("/")},e.prototype.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,e,n,r,i,o){var s=this.urls;if(s){var a,u=i.getCode().split(/:(?=\d+$)/).pop();if(o["SIZE"]=e[0]+","+e[1],o["BBOX"]=n.join(","),o["BBOXSR"]=u,o["IMAGESR"]=u,o["DPI"]=Math.round(o["DPI"]?o["DPI"]*r:90*r),1==s.length)a=s[0];else{var c=Object(Xt["g"])(Object(re["e"])(t),s.length);a=s[c]}var l=a.replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage");return Object(ee["a"])(l,o)}},e.prototype.getTilePixelRatio=function(t){return this.hidpi_?t:1},e.prototype.updateParams=function(t){Object(G["a"])(this.params_,t),this.setKey(this.getKeyForParams_())},e.prototype.tileUrlFunction=function(t,e,n){var r=this.getTileGrid();if(r||(r=this.getTileGridForProjection(n)),!(r.getResolutions().length<=t[0])){1==e||this.hidpi_||(e=1);var i=r.getTileCoordExtent(t,this.tmpExtent_),o=Object(ne["c"])(r.getTileSize(t[0]),this.tmpSize);1!=e&&(o=Object(ne["b"])(o,e,this.tmpSize));var s={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};return Object(G["a"])(s,this.params_),this.getRequestUrl_(t,o,i,e,n,s)}},e}(te["a"]),se=oe,ae=n("2ef1"),ue=n("78db");let ce={extentJx:[109.72859368643232,24.010266905347684,121.13105988819079,30.76693489432357],extentQg:[40.93120507614668,-4.898838628946014,172.62495510997238,59.89417413221303],originArcgisServer:[-400,399.9999999999998]};class le{constructor(t){this.geometryLayers={},this.overlays={},this.animations={},this.map=t}static getFeatureSource(t){const e=[];t.features.forEach(t=>{const n=S.createFeature(t);e.push(n)});const n=new $t["a"]({features:e});return n}static getSource(t){let e;return e=t.url?new $t["a"]({url:t.url,format:new S.OlFormat.GeoJSON}):this.getFeatureSource(t),e}getOption(t){}createMultipleFeatureLayer(t){if(!t.layerName)throw Error("图层名称不能为空");this.removeGeometryLayer(t.layerName);let e=le.getSource(t);const n={name:t.layerName,source:e,style:e=>{let n,{olStyle:r,selectStyle:i}=e.getProperties();return i||e.setProperties({selectStyle:t.selectStyle||d.defaultStyle}),n=r||t.style||{},d.setOlStyle(n)}},r=new F["a"](n);return r.setProperties({name:t.layerName}),t.center&&this.map.getView().fit(e.getExtent(),{size:this.map.getSize(),maxZoom:t.center}),this.geometryLayers[t.layerName]=r,r}createAnimationLayer(t){if(!t.layerName)throw Error("图层名称不能为空");const e=[];t.features.forEach(t=>{const{selectStyle:n,olStyle:r,center:i}=t;let o=null;if(t.geometryType="LineString",t.to&&t.from){let{to:e,from:n}=t;if("string"===typeof t.to){const n=S.wktFeature(t.to);e=n.getGeometry().getCoordinates()}if("string"===typeof t.from){const e=S.wktFeature(t.from);n=e.getGeometry().getCoordinates()}const{curved:r,length:i}=I.getTurfArcFeature(e,n);o=S.jsonFeature(r),o.set("length",i)}else o=S.createFeature(t);o.setProperties(t.attributes),o.setProperties({selectStyle:n,olStyle:r,center:i}),e.push(o)});const n=new $t["a"]({features:e}),r={name:t.layerName,source:n,style:e=>{let n,{olStyle:r,selectStyle:i}=e.getProperties();return i||e.setProperties({selectStyle:t.selectStyle||d.defaultStyle}),n=r||t.style||{},n.stroke||(n["stroke"]={width:1,color:"rgba(228, 228, 54,0)"}),d.setOlStyle(n)}},i=new F["a"](r);return i.setProperties({name:t.layerName,features:e}),this.animations[t.layerName]=t,this.geometryLayers[t.layerName]=i,i}createHeatMapLayer(t){if(!t.layerName)throw Error("图层名称不能为空");let e=le.getSource(t),n=t.layerName;const r=Object.assign(t,{name:n,source:e});let i=new Jt(r);return this.geometryLayers[t.layerName]=i,i}removeGeometryLayer(t){const e=this.map.getLayers().getArray();this.animations[t]&&this.unAnimation(t),e.forEach(e=>{if(e.getProperties().name===t)return this.map.removeLayer(e),delete this.geometryLayers[t],!1})}checkedGeometryLayer(t){for(const e in this.geometryLayers)this.geometryLayers[e].setVisible(t.indexOf(e)>-1)}unAnimation(t){this.geometryLayers[t].un("postrender",this.animations[t].moveFeature),delete this.animations[t]}removeLayerAll(){const t=Object.keys(this.geometryLayers);t.forEach(t=>this.removeGeometryLayer(t))}createArcGISMapServerLayer(t){const e=new se({url:t.url}),n=new Qt["a"]({source:e,extent:ce.extentJx});return n.setProperties({name:t.layerName}),this.geometryLayers[t.layerName]=n,n}createLayerArcgisXYZ(t){const{resolutions:e}=t,n=t.url+"/tile/{z}/{y}/{x}";let r=new ue["a"]({origin:ce.originArcgisServer,extent:ce.extentJx,resolutions:e});return new Qt["a"]({source:new ae["a"]({tileGrid:r,projection:"EPSG:4326",url:n})})}}var he=n("2ce2");class fe{constructor(t,e){this.map=t,this.config=e}initSelectSingleClick(t){const e=this.map,n=t=>{const e=t.values_.selectStyle||d.defaultStyle;return d.setOlStyle(e)},r={style:n},i=new he["a"](r);e.addInteraction(i),i.on("select",e=>{const n=e.target.getFeatures().getArray();if(n.length>0){const r=n[0],i=r.values_;if(i.callback&&i.callback(Object.assign(e,{properties:i})),t.onSelectClick){let n=e.mapBrowserEvent||e;t.onSelectClick(Object.assign(n,{properties:n}))}}}),this.selectSingleClick=i}on(t,e){this.map.on(t,e)}pointermove(t){this.on("pointermove",e=>{this.map.forEachFeatureAtPixel(e.pixel,(n,r)=>{if(!n.values_)return!1;t.onPointerMove&&t.onPointerMove(Object.assign(e,{properties:n.values_})),this.config.isMoveSelect&&(this.selectSingleClick.getFeatures().clear(),this.selectSingleClick.getFeatures().push(n),this.selectSingleClick.dispatchEvent({type:"select",selected:[n],coordinate:e.coordinate}))})})}onClickSelected(t){this.on("click",t=>{this.map.forEachFeatureAtPixel(t.pixel,(e,n)=>{if(!e.values_)return!1;this.config.isClickSelect&&(this.selectSingleClick.getFeatures().clear(),this.selectSingleClick.getFeatures().push(e),this.selectSingleClick.dispatchEvent({type:"select",selected:[e],coordinate:t.coordinate,event:t}))})})}}var pe=n("5eee"),de=n("a2c7"),ge=n("0710"),ye=n("3452"),ve=n.n(ye);const _e=n("5a24").default,me={target:"map",config:{},arcgisUrls:{},onEvent:{}};class be{constructor(t={}){this.baseLayers={},this.layerName="",this.config={},this.arcgisUrls={},this.overlays={},t=Object.assign(me,t);let{target:e,config:n,arcgisUrls:r,onEvent:i}=t;const a=new s;n=Object.assign(a,n),this.map=new pe["a"]({controls:[],target:e,view:new de["a"](n)}),this.arcgisUrls=Object.assign(o.arcgisUrls,r||{}),this.config=n,this.olLayer=new le(this.map),this.olAni=new A(this.map),this.createBaseLayers(this.config.layerName),this.listens=new fe(this.map,n),this.listens.initSelectSingleClick(i),this.listens.pointermove(i),n.isClickSelect&&this.listens.onClickSelected(i)}createBaseLayers(t){const{utilsTileLayer:e}=_e,n=e.createLayerBaiduXYZ(),r=e.createLayerGD(),i=e.createLayerGoogle();let o={baidu:n,gaode:r,google:i};this.baseLayers=o;for(let s in this.arcgisUrls){const t=this.arcgisUrls[s];this.addBaseArcgisLayer(s,t)}for(const s in this.baseLayers)this.map.addLayer(this.baseLayers[s]);this.changeBaseLayer(t),this.map.measureTool=new _e.MeasureTool(this.map)}changeBaseLayer(t){this.layerName=t;for(const e in this.baseLayers)this.baseLayers[e].setVisible(e===t)}addGeometryLayer(t){let e=this.olLayer.createMultipleFeatureLayer(t);this.map.addLayer(e)}addGeometryJMLayer(t){t.features.forEach(t=>{t.geometry=this.addGeometryDecrypt(t.geometry)});let e=this.olLayer.createMultipleFeatureLayer(t);this.map.addLayer(e)}addHeatMapLayer(t){let e=this.olLayer.createHeatMapLayer(t);this.map.addLayer(e)}addAnimationLayer(t){const e=this.olLayer.createAnimationLayer(t);this.map.addLayer(e),this.olAni.addAnimation(e,t)}addOverlay(t,e){let n;if(n="string"===typeof t?document.getElementById(t):t,!n)throw Error("获取Element失败");const r=n.id;let i=this.overlays[r];i&&this.removeOverlay(r),i=new ge["a"](Object.assign(e,{element:n})),this.map.addOverlay(i),this.overlays[r]=i,i.setPosition(e.position)}removeOverlay(t){const e=this.overlays[t];e&&this.map.removeOverlay(e)}closeOverlay(t){const e=this.overlays[t];e&&e.setPosition(void 0)}setOverlayPosition(t,e){const n=this.overlays[t];n.setPosition(e)}removeGeometryLayer(t){this.olLayer.removeGeometryLayer(t)}checkedGeometryLayer(t){this.olLayer.checkedGeometryLayer(t)}addGeometryLayers(t){t.forEach(t=>this.addGeometryLayer(t))}unAnimation(t){this.olLayer.unAnimation(t)}addGeometryDecrypt(t){let e="ABCD",n="EF12",r="3456",i="7890",o="1234",s="5678",a="90AB",u="CDEF",c=`${e}${n}${r}${i}`,l=`${o}${s}${a}${u}`,h=ve.a.enc.Utf8.parse(t);var f=ve.a.enc.Utf8.parse(c);let p=ve.a.enc.Utf8.parse(l),d=ve.a.enc.Utf8.stringify(h);var g=ve.a.AES.decrypt(d,f,{iv:p,mode:ve.a.mode.CBC,padding:ve.a.pad.Pkcs7});let y=g.toString(ve.a.enc.Utf8);return y}addMeasure(){this.map.measureTool.addInteraction("LineString")}unMeasure(){this.map.measureTool.removeInteraction()}removeLayerAll(){this.olLayer.removeLayerAll()}setZoom(t=1){const e=this.map.getView();let n=e.getZoom()+t;return this.viewSetZoom(n)}viewSetZoom(t){const e=this.map.getView();if(t>this.config.maxZoom)throw Error("缩放等级不能超过最大缩放等级");if(t<this.config.minZoom)throw Error("缩放等级不能小于最小缩放等级");return e.setZoom(t),Math.ceil(e.getZoom())}setCenter(t=[0,0],e){const n=this.map.getView();e=e||n.getZoom(),n.setCenter(t),this.viewSetZoom(e)}addBaseArcgisLayer(t,e){e.resolutions?this.baseLayers[t]=this.olLayer.createLayerArcgisXYZ(e):this.baseLayers[t]=this.olLayer.createArcGISMapServerLayer(e)}createArcGISMapServerLayer(t){let e=this.olLayer.createArcGISMapServerLayer(t);this.map.addLayer(e)}}n("3574");var Ee=be;e["default"]=Ee},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fced:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"};r.METERS,r.FEET,r.USFEET,r.RADIANS,r.DEGREES;var i={};i[r.RADIANS]=6370997/(2*Math.PI),i[r.DEGREES]=2*Math.PI*6370997/360,i[r.FEET]=.3048,i[r.METERS]=1,i[r.USFEET]=1200/3937,e["b"]=r},fd4d:function(t,e,n){"use strict";function r(t,e,n,r,i){var o;for(e+=r;e<n;e+=r)if(o=i(t.slice(e-r,e),t.slice(e,e+r)),o)return o;return!1}n.d(e,"a",(function(){return r}))},fdb7:function(t,e,n){"use strict";var r=n("b7df"),i=n("521b"),o=n("7a09"),s=n("47e4"),a=n("9a44"),u=n("88da"),c=n("7915"),l=n.n(c),h=n("f403"),f=n("5bc3"),p=n("f5dd"),d=n("0df5"),g=n("fced"),y=n("92fa"),v=n("256f"),_=n("4d98"),m=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b=function(t){function e(e){var n=t.call(this)||this,r=e||{};return n.dataProjection=new p["a"]({code:"",units:g["b"].TILE_PIXELS}),n.featureClass_=r.featureClass?r.featureClass:d["a"],n.geometryName_=r.geometryName,n.layerName_=r.layerName?r.layerName:"layer",n.layers_=r.layers?r.layers:null,n.idProperty_=r.idProperty,n.supportedMediaTypes=["application/vnd.mapbox-vector-tile","application/x-protobuf"],n}return m(e,t),e.prototype.readRawGeometry_=function(t,e,n,r){t.pos=e.geometry;var i=t.readVarint()+t.pos,o=1,s=0,a=0,u=0,c=0,l=0;while(t.pos<i){if(!s){var h=t.readVarint();o=7&h,s=h>>3}s--,1===o||2===o?(a+=t.readSVarint(),u+=t.readSVarint(),1===o&&c>l&&(r.push(c),l=c),n.push(a,u),c+=2):7===o?c>l&&(n.push(n[l],n[l+1]),c+=2):Object(y["a"])(!1,59)}c>l&&(r.push(c),l=c)},e.prototype.createFeature_=function(t,e,n){var c,l=e.type;if(0===l)return null;var p,g=e.properties;this.idProperty_?(p=g[this.idProperty_],delete g[this.idProperty_]):p=e.id,g[this.layerName_]=e.layer.name;var y=[],v=[];this.readRawGeometry_(t,e,y,v);var m=S(l,v.length);if(this.featureClass_===d["a"])c=new this.featureClass_(m,y,v,g,p),c.transform(n.dataProjection);else{var b=void 0;if("Polygon"==m){var E=Object(_["a"])(y,v);b=E.length>1?new u["a"](y,i["a"].XY,E):new f["a"](y,i["a"].XY,v)}else b="Point"===m?new h["a"](y,i["a"].XY):"LineString"===m?new o["a"](y,i["a"].XY):"MultiPoint"===m?new a["a"](y,i["a"].XY):"MultiLineString"===m?new s["a"](y,i["a"].XY,v):null;var w=this.featureClass_;c=new w,this.geometryName_&&c.setGeometryName(this.geometryName_);var x=Object(r["c"])(b,!1,n);c.setGeometry(x),void 0!==p&&c.setId(p),c.setProperties(g,!0)}return c},e.prototype.getType=function(){return"arraybuffer"},e.prototype.readFeatures=function(t,e){var n=this.layers_,r=this.adaptOptions(e),i=Object(v["h"])(r.dataProjection);i.setWorldExtent(r.extent),r.dataProjection=i;var o=new l.a(t),s=o.readFields(E,{}),a=[];for(var u in s)if(!n||-1!=n.indexOf(u)){var c=s[u],h=c?[0,0,c.extent,c.extent]:null;i.setExtent(h);for(var f=0,p=c.length;f<p;++f){var d=O(o,c,f),g=this.createFeature_(o,d,r);null!==g&&a.push(g)}}return a},e.prototype.readProjection=function(t){return this.dataProjection},e.prototype.setLayers=function(t){this.layers_=t},e}(r["a"]);function E(t,e,n){if(3===t){var r={keys:[],values:[],features:[]},i=n.readVarint()+n.pos;n.readFields(w,r,i),r.length=r.features.length,r.length&&(e[r.name]=r)}}function w(t,e,n){if(15===t)e.version=n.readVarint();else if(1===t)e.name=n.readString();else if(5===t)e.extent=n.readVarint();else if(2===t)e.features.push(n.pos);else if(3===t)e.keys.push(n.readString());else if(4===t){var r=null,i=n.readVarint()+n.pos;while(n.pos<i)t=n.readVarint()>>3,r=1===t?n.readString():2===t?n.readFloat():3===t?n.readDouble():4===t?n.readVarint64():5===t?n.readVarint():6===t?n.readSVarint():7===t?n.readBoolean():null;e.values.push(r)}}function x(t,e,n){if(1==t)e.id=n.readVarint();else if(2==t){var r=n.readVarint()+n.pos;while(n.pos<r){var i=e.layer.keys[n.readVarint()],o=e.layer.values[n.readVarint()];e.properties[i]=o}}else 3==t?e.type=n.readVarint():4==t&&(e.geometry=n.pos)}function O(t,e,n){t.pos=e.features[n];var r=t.readVarint()+t.pos,i={layer:e,type:0,properties:{}};return t.readFields(x,i,r),i}function S(t,e){var n;return 1===t?n=1===e?"Point":"MultiPoint":2===t?n=1===e?"LineString":"MultiLineString":3===t&&(n="Polygon"),n}e["a"]=b},fdbf:function(t,e,n){var r=n("04f8");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},ff80:function(t,e,n){"use strict";var r=n("e269"),i=n("1300"),o=n("256f"),s=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(t){function e(e){var n=t.call(this)||this;n.projection=Object(o["h"])(e.projection),n.attributions_=u(e.attributions),n.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,n.loading=!1,n.state_=void 0!==e.state?e.state:"ready",n.wrapX_=void 0!==e.wrapX&&e.wrapX,n.interpolate_=!!e.interpolate,n.viewResolver=null,n.viewRejector=null;var r=n;return n.viewPromise_=new Promise((function(t,e){r.viewResolver=t,r.viewRejector=e})),n}return s(e,t),e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection},e.prototype.getResolutions=function(){return Object(i["b"])()},e.prototype.getView=function(){return this.viewPromise_},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.getInterpolate=function(){return this.interpolate_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=u(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(r["a"]);function u(t){return t?Array.isArray(t)?function(e){return t}:"function"===typeof t?t:function(e){return[t]}:null}e["a"]=a}})["default"]}));
//# sourceMappingURL=OlMapTool.umd.min.js.map