geojs 1.12.2 → 1.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commitlint.config.js +6 -0
- package/geo.js +14 -3
- package/geo.lean.js +14 -3
- package/geo.lean.min.js +1 -1
- package/geo.min.js +1 -1
- package/package.json +1 -1
- package/src/util/common.js +12 -1
package/geo.lean.min.js
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
* @copyright 2017, Vladimir Agafonkin
|
|
29
29
|
* @license ISC
|
|
30
30
|
*/
|
|
31
|
-
var i=n(5616),r=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;i.htmlPrefilter=function(t){return t.replace(r,"<$1></$2>")},n(7605),t.exports=i.extend({annotationLayer:n(2075),camera:n(3578),choroplethFeature:n(3561),contourFeature:n(6761),domRenderer:n(9726),event:n(6409),feature:n(1275),featureLayer:n(6498),fetchQueue:n(5938),fileReader:n(3084),geo_action:n(8695),graphFeature:n(3187),heatmapFeature:n(9163),imageTile:n(4912),isolineFeature:n(2586),geojsonReader:n(5173),gridFeature:n(2499),layer:n(5156),lineFeature:n(9281),map:n(6211),mapInteractor:n(7908),markerFeature:n(2225),meshFeature:n(6124),object:n(1338),osmLayer:n(4880),pathFeature:n(2266),pointFeature:n(7541),polygonFeature:n(6645),quadFeature:n(3842),pixelmapFeature:n(7761),pixelmapLayer:n(534),renderer:n(2274),sceneObject:n(5402),textFeature:n(6546),tile:n(5289),tileCache:n(9123),tileLayer:n(9264),timestamp:n(77),trackFeature:n(338),transform:n(5325),typedef:n(3170),vectorFeature:n(6858),inherit:n(4626),version:n(4081),sha:n(9079),annotation:n(4655),util:n(642),jQuery:i,canvas:n(8074),svg:n(6488),vtkjs:n(394),webgl:n(8635),gui:n(4812),vgl:n(1611)},n(1098)),window&&!window.$&&(window.$=i),window&&!window.jQuery&&(window.jQuery=i),window&&!window.geojsMap&&(window.geojsMap=function(){var t=i(".geojs-map").map((function(t,e){return i(e).data("data-geojs-map")}));return 0===t.length?void 0:1===t.length?t[0]:t})},4626:function(t){t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},2586:function(t,e,n){var i=n(4626),r=n(6124),o=n(1098),a=n(642),s={17:[{l0:1,h0:2,l1:0,h1:2}],18:[{l0:0,h0:1,l1:2,h1:1}],20:[{l0:2,h0:0,l1:1,h1:0}],22:[{l0:2,h0:0,l1:2,h1:1}],21:[{l0:1,h0:2,l1:1,h1:0}],19:[{l0:0,h0:1,l1:0,h1:2}],1:[{l0:2,h0:3,l1:1,h1:3}],2:[{l0:0,h0:2,l1:3,h1:2}],4:[{l0:3,h0:1,l1:0,h1:1}],8:[{l0:1,h0:0,l1:2,h1:0}],14:[{l0:3,h0:1,l1:3,h1:2}],13:[{l0:2,h0:3,l1:2,h1:0}],11:[{l0:1,h0:0,l1:1,h1:3}],7:[{l0:0,h0:2,l1:0,h1:1}],3:[{l0:0,h0:2,l1:1,h1:3}],10:[{l0:1,h0:0,l1:3,h1:2}],12:[{l0:3,h0:1,l1:2,h1:0}],5:[{l0:2,h0:3,l1:0,h1:1}],6:[{l0:0,h0:2,l1:0,h1:1},{l0:3,h0:1,l1:3,h1:2}],9:[{l0:1,h0:0,l1:1,h1:3},{l0:2,h0:3,l1:2,h1:0}]},l=function(t){"use strict";if(!(this instanceof l))return new l(t);var e=n(5616),i=n(5325),u=n(6409),c=n(6546);t=t||{},r.call(this,t);var d,h,f,p,m,g=this,y=this.draw,v=this._exit,x=this._init,_=this.modified,b=this._update;return this.featureType="isoline",this.contour=g.mesh,this.isoline=g.mesh,this._createIsolines=function(){var t,e=g.style.get("value"),n=void 0!==g.style("used")?g.style.get("used"):function(t,n){return a.isNonNullFinite(e(t,n))},i=!1,r=[],o=g._createMesh({used:n,value:e});return(t=g._getValueList(o)).length?(t.forEach((function(t){var e=g._isolinesForValue(o,t);e.length&&(r=r.concat(e),i=i||!!t.label)})),{lines:r,mesh:o,values:t,hasLabels:i}):{}},this._getValueList=function(t){var e,n,i,r,o,s,l,u=g.isoline,c=u.get("values")(t),d=u.get("spacing")(t),h=u.get("count")(t),f=u.get("autofit")(t),p=u.get("levels")(t);if(!t.numVertices||!t.numElements)return[];if(e=a.getMinMaxValues(t.value,u.get("min")(t),u.get("max")(t),!0),t.minValue=e.min,t.maxValue=e.max,(n=t.maxValue-t.minValue)<=0)return[];if(Array.isArray(c))c=(c=c.map((function(t,e){return{value:void 0!==t.value?t.value:t,position:e,level:t.level}}))).filter((function(e){return e.value>=t.minValue&&e.value<=t.maxValue}));else if(d||f)for(d||(i=n/(2*h/3),o=Math.floor(Math.log10(i)),s=Math.max(0,-o),d=(i=(i/=r=Math.pow(10,o))>=5?5:i>=2?2:1)*r),c=[],l=Math.ceil(t.minValue/d);l<=Math.floor(t.maxValue/d);l+=1)c.push({value:l*d,position:l,fixedDigits:s});else for(c=Array(h),l=0;l<h;l+=1)c[l]={value:t.minValue+n*(l+1)/(h+1),position:l+1};return p.length&&c.forEach((function(t,e){if(void 0===t.level){t.level=0;for(var n=0,i=p[0];n<p.length&&!(t.position%i);i*=p[n+=1])t.level=n+1}if(u.get("label")(t,t.position)){var r=u.get("labelText")(t,t.position);void 0===r&&(r=void 0!==t.fixedDigits?""+parseFloat(t.value.toFixed(t.fixedDigits)):""+t.value),r&&(t.label=r)}})),c},this._addSegment=function(t,e,n){var i,r,o,a,s,l,u=[e,n],c=t.length;for(t.push(u),r=0;r<2;r+=1){for(i=c-1;i>=0;i-=1){if(a=(o=t[i])[0],s=o[o.length-1],n[0]===a[0]&&n[1]===a[1])l=u.concat(o.slice(1));else{if(e[0]!==s[0]||e[1]!==s[1])continue;l=o.concat(u.slice(1))}t.splice(c,1),t[i]=u=l,c=i,e=u[0],n=u[u.length-1];break}if(i<0)break}return t},this._chainVertex=function(t,e,n){var i=n[0],r=n[1],o=3*i,a=3*r,s=(e.value-t.value[i])/(t.value[r]-t.value[i]),l=1-s;return{x:t.pos[o]*l+t.pos[a]*s,y:t.pos[o+1]*l+t.pos[a+1]*s,z:t.pos[o+2]*l+t.pos[a+2]*s}},this._isolinesForValue=function(t,e){var n,i,r,o,a=e.value,l=Array(t.value.length),u=[];for(n=l.length-1;n>=0;n-=1)l[n]=t.value[n]<=a?0:1;var c=t.verticesPerElement,d="square"===t.shape,h=t.elements,f=h.length;for(i=0;i<f;i+=c){if(d){if(0===(r=8*l[h[i]]+4*l[h[i+1]]+2*l[h[i+2]]+l[h[i+3]])||15===r)continue}else if(16===(r=16+4*l[h[i]]+2*l[h[i+1]]+l[h[i+2]])||23===r)continue;s[r].forEach((function(t){u=g._addSegment(u,[h[i+t.l0],h[i+t.h0]],[h[i+t.l1],h[i+t.h1]])}))}return o=u.map((function(n){var i=[];return n.forEach((function(n){var r=g._chainVertex(t,e,n);i.length&&r.x===i[i.length-1].x&&r.y===i[i.length-1].y||i.push(r)})),i.closed=i[0].x===i[i.length-1].x&&i[0].y===i[i.length-1].y,i.value=e.value,i.level=e.level,i.position=e.position,i.label=e.label,i})).filter((function(t){return t.length>1})),o},this.modified=function(){var t=_();return f&&f.modified(),m&&m.modified(),t},this.labelPositions=function(){if(g.dataTime().timestamp()>=g.buildTime().timestamp()&&g._build(),h=null,!m)return g;if(!(d&&d.hasLabels&&d.lines&&d.lines.length))return m.data([]),g;var t=g.isoline,e=t.get("labelSpacing"),n=t.get("labelOffset"),r=t.get("labelViewport")(d.mesh),o=g.gcs(),s=g.layer().map(),l=s.gcs(),u=s.rotation(),c=s.size(),f=[],p=0;return d.lines.forEach((function(t,d){if(t.label){var h,m,g,y,v,x,_,b,w,M,A,T=e(t.value,t.value.position),C=n(t.value,t.value.position)||0,E=s.gcsToDisplay(t,o),k=0;if(!(T<=0||isNaN(T))&&(p=Math.max(T,p),C=C+.5-Math.floor(C+.5),h=E.map((function(e,n){if(!t.closed&&n+1===E.length)return 0;var i=Math.sqrt(a.distance2dSquared(e,E[n+1<E.length?n+1:0]));return k+=i,i})),m=Math.floor(k/T)))for(A=i.transformCoordinates(o,l,t),y=(g=k/m)*C,v=0,x=0;x<E.length;x+=1){for(;v+h[x]>=y;)_=x+1===E.length?0:x+1,w=1-(b=(y-v)/h[x]),y+=g,r>0&&((M={x:E[x].x*w+E[_].x*b,y:E[x].y*w+E[_].y*b}).x<-r||M.x>c.width+r||M.y<-r||M.y>c.height+r)||f.push({x:A[x].x*w+A[_].x*b,y:A[x].y*w+A[_].y*b,z:A[x].z*w+A[_].z*b,line:t,rotation:Math.atan2(E[x].y-E[_].y,E[x].x-E[_].x)-u});v+=h[x]}}})),m.gcs(l),m.data(f),m.style("renderThreshold",2*p),h={zoom:s.zoom(),center:s.center(),rotation:u,size:c,labelViewport:r,maxSpacing:p,labelAutoUpdate:t.get("labelAutoUpdate")(d.mesh)},g},this.lastLabelPositions=function(){return e.extend({},h)},this._updateLabelPositions=function(){var t=h;if(!t||!t.labelAutoUpdate)return g;var e=g.layer().map(),n=e.zoom(),i=e.size(),r=!!(Math.abs(n-t.zoom)>=2);if(!r&&t.labelViewport>0){var o=Math.sqrt(a.distance2dSquared(e.gcsToDisplay(e.center()),e.gcsToDisplay(t.center)))*Math.pow(2,t.zoom-n),s=t.labelViewport/2-2*t.maxSpacing-Math.max(i.width-t.size.width,i.height-t.size.height,0);r=r||o>=s}return r&&g.labelPositions().draw(),g},this._build=function(){if((d=g._createIsolines())&&d.lines&&d.lines.length){f||(f=g.layer().createFeature("line",{selectionAPI:!1,gcs:g.gcs(),visible:g.visible(void 0,!0),style:{closed:function(t){return t.closed}}}),g.dependentFeatures([f]));var t=g.style();if(f.data(d.lines).style({antialiasing:t.antialiasing,lineCap:t.lineCap,lineJoin:t.lineJoin,miterLimit:t.miterLimit,strokeWidth:t.strokeWidth,strokeStyle:t.strokeStyle,strokeColor:t.strokeColor,strokeOffset:t.strokeOffset,strokeOpacity:t.strokeOpacity}),d.hasLabels){if(!m){if(!(o.registries.features[g.layer().rendererName()]||{}).text){var e=o.rendererForFeatures(["text"]);p=o.createLayer("feature",g.layer().map(),{renderer:e}),g.layer().addChild(p),g.layer().node().append(p.node())}m=(p||g.layer()).createFeature("text",{selectionAPI:!1,gcs:g.gcs(),visible:g.visible(void 0,!0),style:{text:function(t){return t.line.label}}}).geoOn(u.pan,g._updateLabelPositions)}c.usedStyles.forEach((function(e){"visible"!==e&&m.style(e,t[e])})),g.dependentFeatures([f,m])}}else f&&f.data([]);return g.buildTime().modified(),g.labelPositions(),g},this._update=function(){return b.call(g),(g.dataTime().timestamp()>=g.buildTime().timestamp()||g.updateTime().timestamp()<=g.timestamp())&&g._build(),g.updateTime().modified(),g},this.draw=function(){var t=y();return f&&f.draw(),m&&m.draw(),t},this._exit=function(){m&&((p||g.layer())&&(p||g.layer()).deleteFeature(m),p&&g.layer()&&g.layer().removeChild(p)),f&&g.layer()&&g.layer().deleteFeature(f),m=null,p=null,f=null,g.dependentFeatures([]),v()},this._init=function(t){t=t||{},x.call(g,t);var n=e.extend({},{opacity:1,value:function(t,e){return g.position()(t,e).z},rotateWithMap:!0,rotation:l.rotationFunction(),strokeWidth:function(t,e,n,i){return n.level+.5},strokeColor:{r:0,g:0,b:0},textStrokeColor:{r:1,g:1,b:1,a:.75},textStrokeWidth:2,fontSize:"12px"},void 0===t.style?{}:t.style);g.style(n),g.isoline(e.extend({},{count:15,autofit:!0,levels:[5,5],label:function(t){return t.level>=1},labelSpacing:200,labelViewport:1e4,labelAutoUpdate:!0},t.mesh||{},t.contour||{},t.isoline||{})),(t.mesh||t.contour||t.isoline)&&g.dataTime().modified()},this};l.rotationFunction=function(t,e){var n={higher:function(t){return t.rotation},lower:function(t){return t.rotation+Math.PI},map:function(t){var e=t.rotation,n=a.wrapAngle(e,!0);return(n>Math.PI/2||n<-Math.PI/2)&&(e+=Math.PI),e},screen:function(t){var n=t.rotation,i=a.wrapAngle(n+e.rotation(),!0);return(i>Math.PI/2||i<-Math.PI/2)&&(n+=Math.PI),n}};return n[t]||n.higher},i(l,r),t.exports=l},5156:function(t,e,n){var i=n(4626),r=n(5402),o=n(1275),a=n(1098).checkRenderer,s=n(1098).rendererForFeatures,l=n(1098).rendererForAnnotations,u=function(t){"use strict";if(!(this instanceof u))return new u(t);t=t||{},r.call(this,t);var e,i=n(5616),o=n(77),c=n(2274),d=n(1098).createRenderer,h=n(1098).adjustLayerForRenderer,f=n(6409),p=this,m=this._exit,g=void 0===t.id?u.newLayerId():t.id,y=void 0===t.name?"":t.name,v=void 0===t.map?null:t.map,x=null,_=void 0===t.canvas?null:t.canvas,b=t.renderer instanceof c?t.renderer:null,w=!1,M=void 0!==t.renderer?t.renderer instanceof c?t.renderer.api():t.renderer:t.annotations?l(t.annotations):s(t.features),A=void 0===t.autoshareRenderer||t.autoshareRenderer,T=o(),C=o(),E=void 0===t.sticky||t.sticky,k=void 0===t.active||t.active,S=void 0===t.opacity?1:t.opacity,O=t.attribution||null,P=void 0===t.visible||t.visible,L=void 0===t.selectionAPI||t.selectionAPI;if(M=a(M),!v)throw new Error("Layers must be initialized on a map.");function R(){return(p.parent()||p.map()).children().filter((function(t){return t instanceof u}))}if(this.rendererName=function(){return M},this.autoshareRenderer=function(){return A},this.zIndex=function(t,n){return void 0===t?e:(n||R().reverse().forEach((function(e){e!==p&&e.zIndex()===t&&e.zIndex(t+1)})),t!==e&&(e=t,x.css("z-index",e),p.geoTrigger(f.layerMove,{layer:p})),p)},this.moveUp=function(t){var e,n,i,r,o=null;for(void 0===t&&(t=1),r=1,t<0&&(r=-1,t=-t),e=R().sort((function(t,e){return r*(t.zIndex()-e.zIndex())})),n=0;n<e.length;n+=1)if(null===o)e[n]===p&&(o=n);else{if(!(n-o<=t))break;i=p.zIndex(),p.zIndex(e[n].zIndex(),!0),e[n].zIndex(i,!0)}return p},this.moveDown=function(t){return void 0===t&&(t=1),p.moveUp(-t)},this.moveToTop=function(){return p.moveUp(R().length-1)},this.moveToBottom=function(){return p.moveDown(R().length-1)},this.sticky=function(){return E},this.active=function(t){return void 0===t?k:(k!==t&&(k=t,x.toggleClass("active",k)),p)},this.node=function(){return x},this.id=function(t){return void 0===t?g:(g=null===t?u.newLayerId():t,p.modified(),p)},this.name=function(t){return void 0===t?y:(y=t,x.attr("id",y),p.modified(),p)},this.map=function(){return v},this.renderer=function(){return b},this._renderer=function(t){return void 0===t?b:(b=t,p)},this.canvas=function(){return _},this._canvas=function(t){return void 0===t?_:(_=t,p)},this.dataTime=function(){return T},this.updateTime=function(){return C},this.initialized=function(t){return void 0!==t?(w=t,p):w},this.toLocal=function(t){return t},this.fromLocal=function(t){return t},this.attribution=function(t){return void 0!==t?(O=t,p.map().updateAttribution(),p):O},this.visible=function(t){return void 0===t?P:(P!==t&&(P=t,x.toggleClass("hidden",!P),p.modified()),p)},this.selectionAPI=function(t){return void 0===t?L:(L!==t&&(L=t),p)},this._init=function(e){if(w)return p;v.node().append(x);var n=i.extend({},t);return delete n.map,b?p._canvas(b.canvas()):null===M?(p._renderer(null),p._canvas(x)):_?p._renderer(d(M,p,_,n)):(p._renderer(d(M,p,void 0,n)),p._canvas(b.canvas())),x.toggleClass("active",p.active()),w=!0,e||(p.geoOn(f.resize,(function(t){p._update({event:t})})),p.geoOn(f.pan,(function(t){p._update({event:t})})),p.geoOn(f.rotate,(function(t){p._update({event:t})})),p.geoOn(f.zoom,(function(t){p._update({event:t})}))),p},this._exit=function(){p.geoOff(),b&&b._exit(),x.off(),x.remove(),t={},p._canvas(null),p._renderer(null),m()},this._update=function(t){return p},this.width=function(){return p.map().size().width},this.height=function(){return p.map().size().height},this.opacity=function(t){return void 0!==t?(S=t,x.css("opacity",S),p):S},(x=i(document.createElement("div"))).addClass("geojs-layer"),x.attr("renderer",M),y&&x.attr("id",y),p.opacity(S),p.visible(P),void 0===t.zIndex){var I=-1;R().forEach((function(t){void 0!==t.zIndex()&&(I=Math.max(I,t.zIndex()))})),t.zIndex=I+1}return p.zIndex(t.zIndex),h("all",p),p};u.newLayerId=function(){"use strict";var t=1;return function(){var e=t;return t+=1,e}}(),u.create=function(t,e){"use strict";if((e=e||{}).type=e.type||"feature",e.renderer=void 0===e.renderer?"webgl":e.renderer,e.renderer=a(e.renderer),!e.renderer)return console.warn("Invalid renderer"),null;var n=t.createLayer(e.type,e);return n?(e.features&&e.features.forEach((function(t){t.data=t.data||e.data,t.feature=o.create(n,t)})),n):(console.warn("Unable to create a layer"),null)},i(u,r),t.exports=u},9281:function(t,e,n){var i=n(4626),r=n(1275),o=n(77),a=n(5325),s=n(642),l=function(t){"use strict";if(!(this instanceof l))return new l(t);var e=n(5616);t=t||{},r.call(this,t);var i,u=this,c=this._init,d=o();return this.featureType="line",this._subfeatureStyles={lineCap:!0,lineJoin:!0,strokeColor:!0,strokeOffset:!0,strokeOpacity:!0,strokeWidth:!0},this.line=function(t){return void 0===t?u.style("line"):(u.style("line",t),u.dataTime().modified(),u.modified(),u)},this.position=function(t){return void 0===t?u.style("position"):(u.style("position",t),u.dataTime().modified(),u.modified(),u)},this._updatePointSearchInfo=function(){if(d.timestamp()>=u.dataTime().timestamp()&&d.timestamp()>=u.timestamp())return i;d.modified(),i=[];for(var t=u.data(),e=u.line(),n=u.style.get("strokeWidth"),r=s.isFunction(u.style("strokeWidth"))?void 0:n(),o=u.position(),l=u.style.get("closed"),c=s.isFunction(u.style("closed"))?void 0:l(),h=u.style.get("uniformLine"),f=s.isFunction(u.style("uniformLine"))?void 0:h(),p=u.gcs(),m=u.layer().map().gcs(),g=a.onlyInvertedY(p,m),y=0;y<t.length;y+=1){for(var v=t[y],x=void 0===c?l(v,y):c,_=void 0,b=void 0,w=void 0,M=void 0,A=void 0,T=void 0,C=void 0,E=void 0,k=[],S=void 0===f?h(v,y):f,O=e(v,y),P=0;P<O.length;P+=1){var L=O[P],R=o(L,P,v,y);g?R={x:R.x,y:-R.y}:p!==m&&(R=a.transformCoordinates(p,m,R)),void 0===T&&(T={x:R.x,y:R.y}),void 0===C&&(C={x:R.x,y:R.y}),R.x<T.x&&(T.x=R.x),R.x>C.x&&(C.x=R.x),R.y<T.y&&(T.y=R.y),R.y>C.y&&(C.y=R.y),S&&P||(E=void 0===r?n(L,P,v,y):r);var I=Math.ceil(E/2)+2;(void 0===C.r||I>C.r)&&(C.r=I);var D=I*I;_&&k.push({u:R,v:_,r:w>I?w:I,r2:M>D?M:D,i:P,j:b}),_=R,b=P,w=I,M=D,!A&&x&&(A={p:R,r:I,r2:D,i:P})}x&&A&&(_.x!==A.p.x||_.y!==A.p.y)&&k.push({u:_,v:A.p,r:w>A.r?w:A.r,r2:M>A.r2?M:A.r2,i:b,j:A.i}),k.min=T,k.max=C,i.push(k)}return i},this.pointSearch=function(t,e){var n=u.data(),r=[],o=[],l={};if(!n||!n.length||!u.layer())return{found:o,index:r,extra:l};u._updatePointSearchInfo();var c=u.layer().map();e=null===e?c.gcs():void 0===e?c.ingcs():e;var d,h,f,p,m=c.unitsPerPixel(c.zoom()),g=m*m,y=a.transformCoordinates(e,c.gcs(),t),v=u.style.get("strokeWidth"),x=u.style.get("strokeOpacity"),_=u.line();for(h=0;h<i.length;h+=1)for(p=i[h],d=null,f=0;f<p.length;f+=1)if(s.distance2dToLineSquared(y,p[f].u,p[f].v)<=p[f].r2*g&&(d||(d=_(n[h],h)),(x(d[p[f].i],p[f].i,n[h],h)>0||x(d[p[f].j],p[f].j,n[h],h)>0)&&(v(d[p[f].i],p[f].i,n[h],h)>0||v(d[p[f].j],p[f].j,n[h],h)>0))){o.push(n[h]),r.push(h),l[h]=f;break}return{found:o,index:r,extra:l}},this.polygonSearch=function(t,e,n){var r,o,l=u.data(),c=[],d=[],h={},f=u.layer().map(),p=u.style.get("strokeWidth"),m=u.style.get("strokeOpacity"),g=u.line();if(n=null===n?f.gcs():void 0===n?f.ingcs():n,t.outer||(t={outer:t,inner:[]}),!l||!l.length||t.outer.length<3)return{found:d,index:c,extra:h};(e=e||{}).partial=e.partial||!1,(t={outer:a.transformCoordinates(n,f.gcs(),t.outer),inner:(t.inner||[]).map((function(t){return a.transformCoordinates(n,f.gcs(),t)}))}).outer.forEach((function(t){r||(r={x:t.x,y:t.y},o={x:t.x,y:t.y}),t.x<r.x&&(r.x=t.x),t.x>o.x&&(o.x=t.x),t.y<r.y&&(r.y=t.y),t.y>o.y&&(o.y=t.y)})),u._updatePointSearchInfo();var y,v,x,_,b,w,M=f.unitsPerPixel(f.zoom());for(y=0;y<i.length;y+=1)if(!(!(x=i[y]).max||x.max.x<r.x-x.max.r*M||x.min.x>o.x+x.max.r*M||x.max.y<r.y-x.max.r*M||x.min.y>o.y+x.max.r*M)){var A=void 0,T=void 0,C=void 0;for(v=0;v<x.length;v+=1)if(_=x[v].u,b=x[v].v,w=x[v].r,!(_.x<r.x-w*M&&b.x<r.x-w*M||_.x>o.x+w*M&&b.x>o.x+w*M||_.y<r.y-w*M&&b.y<r.y-w*M||_.y>o.y+w*M&&b.y>o.y+w*M||(C||(C=g(l[y],y)),m(C[x[v].i],x[v].i,l[y],y)<=0&&m(C[x[v].j],x[v].j,l[y],y)<=0||p(C[x[v].i],x[v].i,l[y],y)<=0&&p(C[x[v].j],x[v].j,l[y],y)<=0))){var E=s.distanceToPolygon2d(_,t),k=s.distanceToPolygon2d(b,t);if(E>-w*M&&E<w*M||k>-w*M&&k<w&M||E*k<0){T=!0;break}if(s.crossedLineSegmentPolygon2d(_,b,t)){T=!0;break}for(var S=w*w*M*M,O=0;O<t.outer.length&&!T;O+=1)T=s.distance2dToLineSquared(t.outer[O],_,b)<S;for(var P=0;P<t.inner.length&&!T;P+=1)for(var L=0;L<t.inner[P].length&&!T;L+=1)T=s.distance2dToLineSquared(t.inner[P][L],_,b)<S;if(T)break;E>0&&(A=!0)}(!e.partial&&A&&!T||e.partial&&(A||T))&&(c.push(y),d.push(l[y]),h[y]={partial:T,segment:v<i[y].length?v:0})}return{found:d,index:c,extra:h}},this.rdpSimplifyData=function(t,e,n,i){t=t||u.data(),n=n||u.style.get("position"),i=i||u.style.get("line");var r=u.layer().map(),o=r.gcs(),l=u.gcs(),c=u.style.get("closed");return void 0===e&&(e=.5*r.unitsPerPixel(r.zoom())),t=t.map((function(t,r){var u=i(t,r),d=a.transformCoordinates(l,o,u.map((function(e,i){return n(e,i,t,r)}))),h=s.rdpLineSimplify(d,e,c(t,r),[]);for(var f in(h.length<2||2===h.length&&s.distance2dSquared(h[0],h[1])<e*e)&&(h=[]),h=a.transformCoordinates(o,l,h),t)!t.hasOwnProperty(f)||Array.isArray(t)&&f>=0&&f<t.length||(h[f]=t[f]);return h})),u.style("position",s.identityFunction),u.style("line",s.identityFunction),u.data(t),u},this._init=function(t){t=t||{},c.call(u,t);var n=e.extend({},{strokeWidth:1,strokeColor:{r:1,g:.8431372549,b:0},strokeStyle:"solid",strokeOpacity:1,antialiasing:2,closed:!1,line:s.identityFunction,position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t},origin:function(t){return t.length>=3?t.slice(0,3):[0,0,0]}},void 0===t.style?{}:t.style);return void 0!==t.line&&(n.line=t.line),void 0!==t.position&&(n.position=t.position),u.style(n),u.dataTime().modified(),u},this._init(t),this};l.create=function(t,e){"use strict";return(e=e||{}).type="line",r.create(t,e)},l.capabilities={feature:"line",basic:"line.basic",multicolor:"line.multicolor"},i(l,r),t.exports=l},6211:function(t,e,n){var i=n(5616),r=n(4626),o=n(5402),a=function(t){"use strict";if(!(this instanceof a))return new a(t);if(void 0===(t=t||{}).node||null===t.node)return console.warn("map creation requires a node"),this;o.call(this,t);var e,r,s,l,u,c=n(3578),d=n(5325),h=n(642),f=n(1098),p=n(6409),m=n(7908),g=n(4231),y=this,v=this._exit,x=i(t.node),_=t.width||x.width()||512,b=t.height||x.height()||512,w=void 0===t.gcs?"EPSG:3857":t.gcs,M=void 0===t.ingcs?"EPSG:4326":t.ingcs,A={x:0,y:0},T=void 0===t.zoom?4:t.zoom,C=t.rotation?t.rotation:0,E=null,k=null,S={min:0,max:16,origMin:0},O=null,P=null,L=!!t.discreteZoom,R="function"==typeof t.allowRotation?t.allowRotation:void 0===t.allowRotation||!!t.allowRotation,I=t.maxBounds||{},D=t.camera||c(),F=t.animationQueue||[],j=void 0===t.autoResize||t.autoResize,B=t.autoshareRenderer,N=((I.left||0)+(I.right||0))/2,z=((I.bottom||0)+(I.top||0))/2;function V(){var t;void 0!==document.hidden?t="hidden":void 0!==document.msHidden?t="msHidden":void 0!==document.webkitHidden&&(t="webkitHidden"),y.geoTrigger(document[t]?p.hidden:p.unhidden)}function G(t){var e;void 0!==document.hidden?e="visibilitychange":void 0!==document.msHidden?e="msvisibilitychange":void 0!==document.webkitHidden&&(e="webkitvisibilitychange"),document.removeEventListener(e,V),!1!==t&&document.addEventListener(e,V)}function q(t,e){var n=t.zIndex(),i=e.zIndex();if(n!==i)return n-i;var r=t.node()[0],o=e.node()[0],a=r&&r.parentNode,s=o&&o.parentNode;if(a&&s&&a===s){var l=Array.from(a.children),u=l.indexOf(r),c=l.indexOf(o);if(u>=0&&c>=0)return u-c}return a?-1:s?1:0}function U(t,e,n,i,r){t.globalAlpha=e,r&&(t.globalCompositeOperation=r);var o=n.css("transform");o&&"matrix("===o.substr(0,7)?t.setTransform.apply(t,o.substr(7,o.length-8).split(",").map(parseFloat)):t.setTransform(1,0,0,1,0,0),t.drawImage(i,0,0),t.globalCompositeOperation="source-over"}function H(){for(var t=F.splice(0,F.length),e=1;e<t.length;e+=1)try{t[e].apply(y,arguments)}catch(t){console.error(t)}}function W(t,e,n){var i=e.width/2,r=e.height/2,o=Math.sin(n),a=Math.cos(n),s={},l={},u={},c={};return s.x=t.x+-i*a- -r*o,s.y=t.y+-i*o+-r*a,l.x=t.x+i*a- -r*o,l.y=t.y+i*o+-r*a,u.x=t.x+-i*a-r*o,u.y=t.y+-i*o+r*a,c.x=t.x+i*a-r*o,c.y=t.y+i*o+r*a,{left:Math.min(s.x,l.x,u.x,c.x),right:Math.max(s.x,l.x,u.x,c.x),bottom:Math.min(s.y,l.y,u.y,c.y),top:Math.max(s.y,l.y,u.y,c.y)}}function X(t,n){void 0===n&&(n=C),t=function(t,e){return e&&(t=W({x:(t.left+t.right)/2,y:(t.top+t.bottom)/2},{width:Math.abs(t.left-t.right),height:Math.abs(t.top-t.bottom)},e)),t}(t,n);var i=function(t){var e,n,i=t.right-t.left,r=t.top-t.bottom,o=Math.abs(i/r),a=_/b;return o>a?(e=1,n=o/a):(n=1,e=a/o),{x:e,y:n}}(t);return i.y>i.x?-Math.log2(Math.abs(t.right-t.left)*i.x/(_*e)):-Math.log2(Math.abs(t.top-t.bottom)*i.y/(b*e))}function K(){S.min=l?Math.max(S.origMin,X(I)):S.origMin}function Q(t,e,n){if(!R)return 0;if(e||"function"!=typeof R||(t=R(t)),!n){var i=2*Math.PI;t=t%i+(t>=0?0:i),Math.min(Math.abs(t),Math.abs(t-i))<1e-5&&(t=0)}return t}function Z(t,e,n,o){if(!r&&!s)return t;var a,l,u=I;if(e){u=i.extend({},I);var c,d,h=Math.abs(t.right-t.left),f=Math.abs(t.top-t.bottom),p=Math.abs(Math.sin(e)),m=Math.abs(Math.cos(e));if(t.width&&t.height)c=t.width,d=t.height;else if(Math.abs(p-m)<5e-4)if(_&&b){var g=Math.abs(_/b),y=Math.pow(1+Math.pow(g,2),.5);d=(c=Math.max(h,f)/y)*g}else c=h*m,d=f*p;else c=(m*h-p*f)/(m*m-p*p),d=(m*f-p*h)/(m*m-p*p);var v=h-Math.max(m*c,p*d),x=f-Math.max(m*d,p*c);u.left-=v,u.right+=v,u.top+=x,u.bottom-=x}return o&&(u={left:u.left-(t.right-t.left)/2,right:u.right+(t.right-t.left)/2,top:u.top-(t.bottom-t.top)/2,bottom:u.bottom+(t.bottom-t.top)/2}),r&&(t.right-t.left>u.right-u.left?a=u.left-(t.right-t.left-(u.right-u.left))/2-t.left:t.left<u.left?a=u.left-t.left:t.right>u.right&&(a=u.right-t.right),a&&(!n||n.x*a>0)&&(n&&Math.abs(a)>Math.abs(n.x*n.unit)&&(a=Math.abs(n.x*n.unit)*a/Math.abs(a)),t={left:t.left+=a,right:t.right+=a,top:t.top,bottom:t.bottom})),s&&(t.top-t.bottom>u.top-u.bottom?l=u.bottom-(t.top-t.bottom-(u.top-u.bottom))/2-t.bottom:t.top>u.top?l=u.top-t.top:t.bottom<u.bottom&&(l=u.bottom-t.bottom),l&&(!n||-n.y*l>0)&&(n&&Math.abs(l)>Math.abs(n.y*n.unit)&&(l=Math.abs(n.y*n.unit)*l/Math.abs(l)),t={top:t.top+=l,bottom:t.bottom+=l,left:t.left,right:t.right})),t}function Y(t,e){if(D.rotation=e||0,t.width&&t.height&&e){var n=(t.left+t.right)/2,i=(t.top+t.bottom)/2;D.viewFromCenterSizeRotation({x:n,y:i},t,e)}else D.bounds=t;A={x:(D.bounds.left+D.bounds.right)/2,y:(D.bounds.top+D.bounds.bottom)/2}}function J(){y.size({width:x.width(),height:x.height()})}return I.left=d.transformCoordinates(I.gcs||M,w,{x:void 0!==I.left?I.left:-180,y:z}).x,I.right=d.transformCoordinates(I.gcs||M,w,{x:void 0!==I.right?I.right:180,y:z}).x,I.top=void 0!==I.top?d.transformCoordinates(I.gcs||M,w,{x:N,y:I.top}).y:I.right,I.bottom=void 0!==I.bottom?d.transformCoordinates(I.gcs||M,w,{x:N,y:I.bottom}).y:I.left,e=t.unitsPerPixel||(I.right-I.left)/256,D.viewport={width:_,height:b,left:x.offset().left,top:x.offset().top},t.center=h.normalizeCoordinates(t.center),r=void 0!==t.clampBoundsX&&t.clampBoundsX,s=void 0===t.clampBoundsY||t.clampBoundsY,l=void 0===t.clampZoom||t.clampZoom,this.unitsPerPixel=function(t,n){return t=t||0,n?(e=Math.pow(2,t)*n,y.draw(),y):Math.pow(2,-t)*e},this.animationQueue=function(t){if(void 0===t)return F;if(t!==F){if(F.length){t.length&&t[0]!==F[0]&&window.cancelAnimationFrame(F[0]);for(var e=t.length?1:0;e<F.length;e+=1)t.push(F[e])}F=t}return y},this.autoResize=function(t){return void 0===t?j:(t!==j&&(i(window).off("resize",J),(j=t)&&i(window).on("resize",J)),y)},this.clampBoundsX=function(t){return void 0===t?r:(t!==r&&(r=!!t,y.pan({x:0,y:0})),y)},this.clampBoundsY=function(t){return void 0===t?s:(t!==s&&(s=!!t,y.pan({x:0,y:0})),y)},this.clampZoom=function(t){return void 0===t?l:(t!==l&&(l=!!t,K(),y.zoom(T)),y)},this.allowRotation=function(t){return void 0===t?R:("function"!=typeof t&&(t=!!t),t!==R&&(R=t,y.rotation(C)),y)},this.origin=function(){return i.extend({},u)},this.camera=function(){return D},this.gcs=function(t){if(void 0===t)return w;if(t!==w){var e=y.center(void 0,void 0);w=t,K();var n=y._fix_zoom(T);n!==T&&y.zoom(n),y.center(e,void 0)}return y},this.ingcs=function(t){return void 0===t?M:(M=t,y)},this.node=function(){return x},this.zoom=function(t,e,n,i){if(void 0===t)return T;var r,o,a=e&&(e.mapgcs||e.geo)&&e.map;if(a&&(i=!0),(t=y._fix_zoom(t,n))===T)return y;if(T=t,o=y.boundsFromZoomAndCenter(t,A,C,null,n,i),y.modified(),Y(o,C),r={zoomLevel:T,screenPosition:e?e.map:void 0},y.geoTrigger(p.zoom,r),a){var s=y.gcsToDisplay(e.mapgcs||e.geo,e.mapgcs?null:void 0);y.pan({x:e.map.x-s.x,y:e.map.y-s.y},n,!0)}else y.pan({x:0,y:0},n,i);return y},this.pan=function(t,e,n){var i={screenDelta:t};if(t.x||t.y){var r=y.unitsPerPixel(T),o=Math.sin(C),a=Math.cos(C);D.pan({x:(t.x*a- -t.y*o)*r,y:(t.x*o+-t.y*a)*r})}var s=D.bounds;if((s=Z(s,C,"limited"===n?{x:t.x,y:t.y,unit:r}:void 0,!0===n))!==D.bounds){var l=y.gcsToDisplay({x:D.bounds.left,y:D.bounds.top},null);Y(s=y.boundsFromZoomAndCenter(T,{x:(s.left+s.right)/2,y:(s.top+s.bottom)/2},C,null,e,!0),C);var u=y.gcsToDisplay({x:D.bounds.left,y:D.bounds.top},null);i.screenDelta.x+=u.x-l.x,i.screenDelta.y+=u.y-l.y}return A=D.displayToWorld({x:_/2,y:b/2}),y.geoTrigger(p.pan,i),y.modified(),y},this.rotation=function(t,e,n){if(void 0===t)return C;var i=e&&e.geo&&e.map;if((t=Q(t,n))===C)return y;C=t;var r=y.boundsFromZoomAndCenter(T,A,C,null,n,!0);y.modified(),Y(r,C);var o={rotation:C,screenPosition:e?e.map:void 0};if(y.geoTrigger(p.rotate,o),i){var a=y.gcsToDisplay(e.geo);y.pan({x:e.map.x-a.x,y:e.map.y-a.y},void 0,!0)}else y.pan({x:0,y:0},void 0,!0);return K(),y.zoom(T,void 0,n),y},this.center=function(t,e,n,r){var o;return void 0===t?o=i.extend({},y.worldToGcs(A,e)):(o=y.gcsToWorld(t,e),Y(y.boundsFromZoomAndCenter(T,o,C,null,n,r),C),y.modified(),y.geoTrigger(p.pan,{screenDelta:{x:0,y:0}}),y)},this.createLayer=function(t,e){e=e||{},void 0!==y.autoshareRenderer()&&(e=Object.assign({autoshareRenderer:y.autoshareRenderer()},e));var n=f.createLayer(t,y,e);return n&&(y.addChild(n),y.children().forEach((function(t){t instanceof g&&t.moveToTop()})),n._update(),y.modified(),y.geoTrigger(p.layerAdd,{target:y,layer:n})),n},this.deleteLayer=function(t){return null!=t&&(t._exit(),y.removeChild(t),y.modified(),y.geoTrigger(p.layerRemove,{target:y,layer:t})),t},this.size=function(t){if(void 0===t)return{width:_,height:b};var e=y.center();_=t.width||_,b=t.height||b,K();var n=y._fix_zoom(T);return n!==T&&y.zoom(n),y.camera().viewport={width:_,height:b,left:x.offset().left,top:x.offset().top},y.center(e),y.geoTrigger(p.resize,{target:y,width:_,height:b}),y.modified(),y},this.rotatedSize=function(){if(!this.rotation())return{width:_,height:b};var t=W({x:0,y:0},{width:_,height:b},y.rotation());return{width:Math.abs(t.right-t.left),height:Math.abs(t.top-t.bottom)}},this.gcsToWorld=function(t,e){return Array.isArray(t)?t.map((function(t){return y.gcsToWorld(t,e)})):((e=null===e?w:void 0===e?M:e)!==w&&(t=d.transformCoordinates(e,w,t)),u.x||u.y||u.z?t=d.affineForward({origin:u},[t])[0]:"z"in t||(t={x:t.x,y:t.y,z:0}),t)},this.worldToGcs=function(t,e){return Array.isArray(t)?t.map((function(t){return y.worldToGcs(t,e)})):(u.x||u.y||u.z?t=d.affineInverse({origin:u},[t])[0]:"z"in t||(t={x:t.x,y:t.y,z:0}),(e=null===e?w:void 0===e?M:e)!==w&&(t=d.transformCoordinates(w,e,t)),t)},this.gcsToDisplay=function(t,e){return t=y.gcsToWorld(t,e),y.worldToDisplay(t)},this.worldToDisplay=function(t){return Array.isArray(t)?t.map((function(t){return D.worldToDisplay(t)})):D.worldToDisplay(t)},this.displayToGcs=function(t,e){return t=y.displayToWorld(t),y.worldToGcs(t,e)},this.displayToWorld=function(t){return Array.isArray(t)?t.map((function(t){return D.displayToWorld(t)})):D.displayToWorld(t)},this.draw=function(){var t,e=y.children();for(y.geoTrigger(p.draw,{target:y}),y._update(),t=0;t<e.length;t+=1)e[t].draw();return y.geoTrigger(p.drawEnd,{target:y}),y},this.fileReader=function(t,e){return void 0===t?E:("string"==typeof t?((e=e||{}).layer||(e.layer=y.createLayer("feature",i.extend({},e))),e.renderer=e.layer.renderer().api(),E=f.createFileReader(t,e)):E=t,y)},this._init=function(t){if(null==x)throw new Error("Map require DIV node");return x.data("data-geojs-map")&&i.isFunction(x.data("data-geojs-map").exit)&&x.data("data-geojs-map").exit(),x.addClass("geojs-map"),x.data("data-geojs-map",y),G(),y},this._update=function(t){var e,n=y.children();for(e=0;e<n.length;e+=1)n[e]._update(t);return y},this.exit=function(){G(!1);var t,e=y.children();for(t=e.length-1;t>=0;t-=1)e[t]._exit(),y.removeChild(e[t]);y.interactor()&&(y.interactor().destroy(),y.interactor(null)),F=[],y.node().data("data-geojs-map",null),y.node().off(".geo"),y.node().empty(),i(window).off("resize",J),v()},this.interactor=function(t){return void 0===t?k:(k&&k!==t&&k.destroy(),(k=t)&&(x.attr("tabindex")||x.attr("tabindex",0),k.map(y)),y)},this.zoomRange=function(t,e){return void 0===t?i.extend({},S):(void 0!==t.max&&(S.max=t.max),void 0!==t.min&&(S.min=S.origMin=t.min),K(),e||y.zoom(T),y)},this.transition=function(t,e,n){if(void 0===t)return O;if(O){var r=i.extend(!0,{},O.end);return r.center&&w!==M&&(r.center=d.transformCoordinates(w,M,r.center)),P=i.extend({},r||{},P||{},t),y}var o=y.unitsPerPixel(0);function a(t){return Math.pow(2,-(t+1))*o*b}var s={center:void 0,zoom:y.zoom(),rotation:y.rotation(),duration:1e3,ease:function(t){return t},interp:function(t,e){return function(n){var r=[];return i.each(t,(function(i){r.push(function(t,e,n){return t+(e-t)*n}(t[i],e[i],n))})),r}},done:null,zCoord:!0};function l(e){var n=O.done,i=P;if(!0===O.cancel)return y.geoTrigger(p.transitioncancel,t),n&&n({cancel:!0,source:O.cancelSource,transition:O}),O=null,void(P&&(i=P,P=null,y.transition(i,void 0,e)));if(O.start.time||(O.start.time=e,O.end.time=e+t.duration),O.time=e-O.start.time,e>=O.end.time||i){if(!i){if(O.end.center){var r=T!==y._fix_zoom(O.end.zoom)||!1===t.endClamp;y.center(O.end.center,null,r,r)}y.zoom(O.end.zoom,O.zoomOrigin,!1===t.endClamp,!1===t.endClamp),y.rotation(Q(O.end.rotation))}return y.geoTrigger(p.transitionend,t),n&&n({next:!!i}),O=null,void(P&&(i=P,P=null,y.transition(i,void 0,e)))}var a=O.ease((e-O.start.time)/t.duration),s=O.interp(a);O.zCoord&&(s[2]=function(t){return-Math.log2(t/o/b)-1}(s[2])),y._fix_zoom(s[2],!0)===T?y.center({x:s[0],y:s[1]},null,!0,!0):(A=y.gcsToWorld({x:s[0],y:s[1]},null),y.zoom(s[2],O.zoomOrigin,!0,!0)),y.rotation(s[3],void 0,!0),y.scheduleAnimationFrame(l)}return t.center&&(e=null===e?w:void 0===e?M:e,(t=i.extend(!0,{},t)).center=h.normalizeCoordinates(t.center),e!==w&&(t.center=d.transformCoordinates(e,w,t.center))),t=i.extend(!0,{},s,t),(O={start:{center:y.center(void 0,null),zoom:y.zoom(),rotation:y.rotation()},end:{center:t.center,zoom:y._fix_zoom(t.zoom),rotation:Q(t.rotation,void 0,!0)},ease:t.ease,zCoord:t.zCoord,done:t.done,duration:t.duration,zoomOrigin:t.zoomOrigin,endClamp:t.endClamp}).interp=t.interp([O.start.center.x,O.start.center.y,t.zCoord?a(O.start.zoom):O.start.zoom,O.start.rotation],[O.end.center?O.end.center.x:O.start.center.x,O.end.center?O.end.center.y:O.start.center.y,t.zCoord?a(O.end.zoom):O.end.zoom,O.end.rotation]),y.geoTrigger(p.transitionstart,t),p.cancelNavigation?(O=null,y.geoTrigger(p.transitionend,t),y):(p.cancelAnimation?(t.duration=0,l(0)):n?l(n):y.scheduleAnimationFrame(l),y)},this.transitionCancel=function(t){return!(!O||!0===O.cancel&&!P)&&(O.cancel=!0,O.cancelSource=t||O.cancelSource||"",P=null,!0)},this.bounds=function(t,e){var n;if(e=null===e?w:void 0===e?M:e,void 0!==t){if(e!==w){var i=d.transformCoordinates(e,w,[{x:t.left,y:t.top},{x:t.right,y:t.bottom}]);t={left:i[0].x,top:i[0].y,right:i[1].x,bottom:i[1].y}}t=Z(t,C),n=y.zoomAndCenterFromBounds(t,C,null),y.zoom(n.zoom),y.center(n.center,null)}return y.boundsFromZoomAndCenter(T,A,C,e,!0)},this.maxBounds=function(t,e){if(e=null===e?w:void 0===e?M:e,void 0===t)return{left:d.transformCoordinates(w,e,{x:I.left,y:0}).x,right:d.transformCoordinates(w,e,{x:I.right,y:0}).x,bottom:d.transformCoordinates(w,e,{x:0,y:I.bottom}).y,top:d.transformCoordinates(w,e,{x:0,y:I.top}).y};var n=((t.left||0)+(t.right||0))/2,i=((t.bottom||0)+(t.top||0))/2;return void 0!==t.left&&(I.left=d.transformCoordinates(e,w,{x:t.left,y:i}).x),void 0!==t.right&&(I.right=d.transformCoordinates(e,w,{x:t.right,y:i}).x),void 0!==t.bottom&&(I.bottom=d.transformCoordinates(e,w,{x:n,y:t.bottom}).y),void 0!==t.top&&(I.top=d.transformCoordinates(e,w,{x:n,y:t.top}).y),K(),y.zoom(T),y.pan({x:0,y:0}),y},this.zoomAndCenterFromBounds=function(t,e,n){var i,r;if((n=null===n?w:void 0===n?M:n)!==w){var o=d.transformCoordinates(n,w,[{x:t.left,y:t.top},{x:t.right,y:t.bottom}]);t={left:o[0].x,top:o[0].y,right:o[1].x,bottom:o[1].y}}if(t.left>=t.right||t.bottom>=t.top)throw new Error("Invalid bounds provided");return r=y._fix_zoom(X(t,e)),i={x:((t=Z(t,e)).left+t.right)/2-u.x,y:(t.top+t.bottom)/2-u.y},n!==w&&(i=d.transformCoordinates(w,n,i)),{zoom:r,center:i}},this.boundsFromZoomAndCenter=function(t,e,n,i,r,o){var a,s,l,c,h,f;if(i=null===i?w:void 0===i?M:i,t=y._fix_zoom(t,r),f=y.unitsPerPixel(t),e=y.gcsToWorld(e,null),l=(a=_*f)/2,c=(s=b*f)/2,n?(e.x+=u.x,e.y+=u.y,(h=W(e,{width:a,height:s},n)).width=a,h.height=s,h=Z(h,n,void 0,o)):h=Z(h={left:e.x-l+u.x,right:e.x+l+u.x,bottom:e.y-c+u.y,top:e.y+c+u.y},0,void 0,o),i!==w){var p=d.transformCoordinates(w,i,[[h.left,h.top],[h.right,h.bottom]]);h={left:p[0][0],top:p[0][1],right:p[1][0],bottom:p[1][1]}}return h.width=a,h.height=s,h},this.discreteZoom=function(t){return void 0===t?L:(L!==(t=!!t)&&((L=t)&&y.zoom(Math.round(y.zoom())),y.interactor()&&y.interactor().options({discreteZoom:L})),y)},this.layers=this.children,this.sortedLayers=function(){return y.children().sort(q)},this.listSceneObjects=function(t){var e=[];return(t=t||y.sortedLayers()).forEach((function(t){if(e.indexOf(t)<0&&(e.push(t),t.children)){var n=t.children();n.length&&(e=e.concat(y.listSceneObjects(n)))}})),e},this.updateAttribution=function(){y.node().find(".geo-attribution").remove();var t=i("<div/>").addClass("geo-attribution").on("mousedown",(function(t){t.stopPropagation()}));return y.children().forEach((function(e){var n=e.attribution();n&&i("<span/>").addClass("geo-attribution-layer").html(n).appendTo(t)})),i("span",t).length&&t.appendTo(y.node()),y},this.screenshot=function(t,e,n,r){var o;if(!t||Array.isArray(t)||t.renderer||(e=e||t.type,n=n||t.encoderOptions,r=r||t,t=t.layers),(r=r||{}).wait){var a=i.extend({},r,{wait:!1});o=i.Deferred();var s=function(){window.requestAnimationFrame((function(){o.resolve()}))};return"idle"===r.wait?y.onIdle(s):s(),o.then((function(){return y.screenshot(t,e,n,a)}))}o=i.when(),t?Array.isArray(t)||(t=[t]):(t=y.layers(),null!==r.attribution&&void 0!==r.attribution||(r.attribution=!0)),t=(t=t.filter((function(t){return y.layers().indexOf(t)>=0&&t.opacity()>0&&(!t.visible||t.visible())}))).sort(q);var l=document.createElement("canvas");l.width=_,l.height=b;var u=l.getContext("2d");if(!1!==r.background&&null!==r.background){var c=r.background;void 0===r.background&&(u.fillStyle="white",u.fillRect(0,0,l.width,l.height),y.node().parents().get().reverse().forEach((function(t){(c=window.getComputedStyle(t).backgroundColor)&&"transparent"!==c&&(u.fillStyle=c,u.fillRect(0,0,l.width,l.height))})),c=window.getComputedStyle(y.node()[0]).backgroundColor),c&&"transparent"!==c&&(u.fillStyle=c,u.fillRect(0,0,l.width,l.height))}return t.forEach((function(t){var e=t.opacity();t.node().children("canvas").each((function(){var n=i(this);o=o.then((function(){t.renderer()&&"webgl"===t.renderer().api()&&t.renderer()._renderFrame(),U(u,e,n,n[0],t.node().css("mix-blend-mode"))}))})),!t.node().children().not("canvas").length&&t.node().children().length||t.renderer()&&"webgl"===t.renderer().api()||(o=o.then((function(){return h.htmlToImage(t.node(),1).done((function(e){U(u,1,i([]),e,t.node().css("mix-blend-mode"))}))})))})),r.attribution&&y.node().find(".geo-attribution").each((function(){var t=i(this);o=o.then((function(){return h.htmlToImage(t,1).done((function(t){U(u,1,i([]),t)}))}))})),r.html&&i(r.html).each((function(){var t=i(this);o=o.then((function(){return h.htmlToImage(t,1).done((function(e){U(u,1,i([]),e,t.css("mix-blend-mode"))}))}))})),o=o.then((function(){var t=l;if("canvas"!==e)try{l=l.toDataURL(e,n)}catch(t){console.warn("Failed to convert screenshot to output",t);var r=i.Deferred();return r.reject(),r}return y.geoTrigger(p.screenshot.ready,{canvas:t,screenshot:l}),l}))},this.scheduleAnimationFrame=function(t,e){F.length||F.push(window.requestAnimationFrame(H));var n=F.indexOf(t,1);if(n>=0){if(!e)return;if(F.splice(n,1),"remove"===e)return}return F.push(t),F[0]},this._fix_zoom=function(t,e){return t=Math.round(1e6*t)/1e6,t=Math.max(Math.min(S.max,t),S.min),L&&!e&&(t=Math.round(t))<S.min&&(t=Math.ceil(S.min)),t},this.autoshareRenderer=function(t){return void 0===t?B:(B=null===t?void 0:t,y)},this._version=n(4081),this._geo=n(2257),this._init(t),this.node().on("dragover.geo",(function(t){var e=t.originalEvent;y.fileReader()&&(e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy")})).on("drop.geo",(function(t){var e,n,i=t.originalEvent,r=y.fileReader();function o(){y.draw()}if(r)for(i.stopPropagation(),i.preventDefault(),e=0;e<i.dataTransfer.files.length;e+=1)n=i.dataTransfer.files[e],r.canRead(n)&&r.read(n,o)})),u={x:0,y:0},this.zoomRange(t,!0),T=this._fix_zoom(T),C=Q(C),this.center(i.extend({},t.center||A),void 0),null!==t.interactor&&this.interactor(t.interactor||m({discreteZoom:L})),j&&i(window).on("resize",J),y.geoOn([p.layerAdd,p.layerRemove],y.updateAttribution),this};a.create=function(t){"use strict";var e=a(t),i=n(5156);return e&&e.zoom?(t.data=t.data||[],t.layers=t.layers||[],t.layers.forEach((function(n){n.data=n.data||t.data,n.layer=i.create(e,n)})),e):(console.warn("Could not create map."),null)},r(a,o),t.exports=a},7908:function(t,e,n){var i=n(4626),r=n(1338),o=n(642),a=n(7549),s=function(t){"use strict";if(!(this instanceof s))return new s(t);r.call(this);var e,i,l,u,c,d,h,f,p,m,g=n(5616),y=n(6409),v=n(8695),x=n(642).throttle,_=n(642).debounce,b=n(642).actionMatch,w=n(3842),M=this,A=0,T=null,C=!1,E=!1,k=function(){};function S(t){var e=t.x,n=t.y;return Math.sqrt(e*e+n*n)}function O(){d={boundDocumentHandlers:d.boundDocumentHandlers}}function P(t,n){n=n<=0?30:n;var i=function(){var t,n,i,r;if(!e.spring.enabled)return{x:0,y:0};var o=M.map().maxBounds(void 0,null),a=M.map().gcsToDisplay({x:o.left,y:o.top},null),s=M.map().gcsToDisplay({x:o.right,y:o.bottom},null),l=e.spring.springConstant,u=M.map().node().width(),c=M.map().node().height();return t=l*Math.max(0,a.x),n=l*Math.max(0,u-s.x),i=l*Math.max(0,a.y)/2,r=l*Math.max(0,c-s.y)/2,{x:t-n,y:i-r}}(),r=S(t),o=t.x/r,a=t.y/r;return r*=Math.exp(-e.momentum.drag*n),S(i)*n+r<e.momentum.minSpeed?null:(r>0?(o*=r,a*=r):(o=0,a=0),{x:o-i.x*n,y:a-i.y*n})}return e=g.extend(!0,{},{throttle:30,discreteZoom:!1,actions:[{action:v.pan,input:"left",modifiers:{shift:!1,ctrl:!1},owner:"geo.mapInteractor",name:"button pan"},{action:v.zoom,input:"right",modifiers:{shift:!1,ctrl:!1},owner:"geo.mapInteractor",name:"button zoom"},{action:v.zoom,input:"wheel",modifiers:{shift:!1,ctrl:!1},owner:"geo.mapInteractor",name:"wheel zoom"},{action:v.rotate,input:"left",modifiers:{shift:!1,ctrl:!0},owner:"geo.mapInteractor",name:"button rotate"},{action:v.rotate,input:"wheel",modifiers:{shift:!1,ctrl:!0},owner:"geo.mapInteractor",name:"wheel rotate"},{action:v.select,input:"left",modifiers:{shift:!0,ctrl:!0},selectionRectangle:y.select,owner:"geo.mapInteractor",name:"drag select"},{action:v.zoomselect,input:"left",modifiers:{shift:!0,ctrl:!1},selectionRectangle:y.zoomselect,owner:"geo.mapInteractor",name:"drag zoom"},{action:v.unzoomselect,input:"right",modifiers:{shift:!0,ctrl:!1},selectionRectangle:y.unzoomselect,owner:"geo.mapInteractor",name:"drag unzoom"},{action:v.pan,input:"pan",owner:"geo.mapInteractor",name:"touch pan"},{action:v.zoomrotate,input:"rotate",owner:"geo.mapInteractor",name:"touch zoom and rotate"},{action:v.pan,input:"middle",modifiers:{shift:!1,ctrl:!1},owner:"geo.mapInteractor",name:"button pan"}],click:{enabled:!0,buttons:{left:!0,right:!0,middle:!0},duration:0,cancelOnMove:!0},keyboard:{actions:{"zoom.in":["plus","shift+plus","shift+ctrl+plus","=","shift+=","shift+ctrl+="],"zoom.out":["-","shift+-","shift+ctrl+-","_","shift+_","shift+ctrl+_"],"zoom.0":["1"],"zoom.3":["2"],"zoom.6":["3"],"zoom.9":["4"],"zoom.12":["5"],"zoom.15":["6"],"zoom.18":["7"],"pan.left":["left","shift+left","shift+ctrl+left"],"pan.right":["right","shift+right","shift+ctrl+right"],"pan.up":["up","shift+up","shift+ctrl+up"],"pan.down":["down","shift+down","shift+ctrl+down"],"rotate.ccw":["<","shift+<","shift+ctrl+<",".","shift+.","shift+ctrl+."],"rotate.cw":[">","shift+>","shift+ctrl+>",",","shift+,","shift+ctrl+,"],"rotate.0":["0"]},meta:{0:{shift:!1,ctrl:!1},1:{shift:!0,ctrl:!0},2:{shift:!0,ctrl:!1}},metakeyMouseEvents:["shift","ctrl","shift+ctrl","shift+alt","shift+meta"],focusHighlight:!0},alwaysTouch:!1,wheelScaleX:1,wheelScaleY:1,zoomScale:1,rotateWheelScale:6*Math.PI/180,zoomrotateMinimumRotation:5*Math.PI/180,zoomrotateReverseRotation:4*Math.PI/180,zoomrotateMinimumZoom:.05,zoomrotateMinimumPan:5,touchPanDelay:50,momentum:{enabled:!0,maxSpeed:2.5,minSpeed:.01,stopTime:250,drag:.01,actions:[v.pan,v.zoom]},spring:{enabled:!1,springConstant:5e-5},zoomAnimation:{enabled:!0,duration:500,ease:function(t){return(2-t)*t}}},t||{}),t&&t.actions&&(e.actions=g.extend(!0,[],t.actions)),t&&t.momentum&&t.momentum.actions&&(e.momentum.actions=g.extend(!0,[],t.momentum.actions)),t&&t.keyboard&&void 0!==t.keyboard.actions&&(e.keyboard.actions=g.extend(!0,{},t.keyboard.actions)),i={page:{x:0,y:0},map:{x:0,y:0},geo:{x:0,y:0},mapgcs:{x:0,y:0},buttons:{left:!1,right:!1,middle:!1},modifiers:{alt:!1,ctrl:!1,shift:!1,meta:!1},time:new Date,deltaTime:1,velocity:{x:0,y:0}},d={},h={},this._handleKeys=function(t,n,i){i&&!0===i.simulated&&(n=i);var r,o,a=e.keyboard.meta||{0:{}},s=M.map(),l=s.size(),u=t,c="",d={};for(r in a)a.hasOwnProperty(r)&&(void 0!==a[r].shift&&n.shiftKey!==!!a[r].shift||void 0!==a[r].ctrl&&n.ctrlKey!==!!a[r].ctrl||void 0!==a[r].alt&&n.altKey!==!!a[r].alt||void 0!==a[r].meta&&n.metaKey!==!!a[r].meta||(o=r));if(void 0!==o){switch(n.stopPropagation(),n.preventDefault(),t.indexOf(".")>=0&&(u=t.substr(0,t.indexOf(".")),c=t.substr(t.indexOf(".")+1)),u){case"zoom":switch(c){case"in":d.zoomDelta=[.05,.25,1][o];break;case"out":d.zoomDelta=-[.05,.25,1][o];break;default:isNaN(parseFloat(c))||(d.zoom=parseFloat(c))}break;case"pan":switch(c){case"down":d.panY=-Math.max(1,[0,.05,.5][o]*l.height);break;case"left":d.panX=Math.max(1,[0,.05,.5][o]*l.width);break;case"right":d.panX=-Math.max(1,[0,.05,.5][o]*l.width);break;case"up":d.panY=Math.max(1,[0,.05,.5][o]*l.height)}break;case"rotate":switch(c){case"ccw":d.rotationDelta=[1,5,90][o]*Math.PI/180;break;case"cw":d.rotationDelta=-[1,5,90][o]*Math.PI/180;break;default:isNaN(parseFloat(c))||(d.rotation=parseFloat(c))}}s.geoTrigger(y.keyaction,{move:d,action:t,factor:o,event:n}),d.cancel||(void 0!==d.zoom?s.zoom(d.zoom):d.zoomDelta&&s.zoom(s.zoom()+d.zoomDelta),void 0!==d.rotation?s.rotation(d.rotation):d.rotationDelta&&s.rotation(s.rotation()+d.rotationDelta),(d.panX||d.panY)&&s.pan({x:d.panX||0,y:d.panY||0}))}},this.hasTouchSupport=function(){return"ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof window.DocumentTouch||(navigator.msMaxTouchPoints||navigator.maxTouchPoints)>1},this._handleTouch=function(t){var n=!1;if("mouse"===t.pointerType&&c.touchSupport&&(n=!0),"hammer.input"===t.type){if("pan"!==c.lastEventType||1===t.pointers.length)return;n=!0,c.lastEventType=null}var i=/^(.*)(start|end|move|tap)$/.exec(t.type);if(i&&3===i.length||(n=!0),n)d.boundDocumentHandlers&&c.lastEvent&&M._handleMouseUpDocument(c.lastEvent);else{t.which=i[1];var r=(new Date).valueOf();"pan"===t.which&&"pan"!==c.lastEventType&&r-c.lastTime<e.touchPanDelay||(c.lastTime=r,c.lastEventType=t.which,c.lastEvent=t,void 0===t.pageX&&void 0!==t.center&&void 0!==t.center.x&&(t.pageX=t.center.x,t.pageY=t.center.y),"start"===i[2]&&(M._handleMouseDown(t),M._setClickMaybe(!1),d.boundDocumentHandlers&&g(document).on("mousemove.geojs",M._handleMouseUpDocument)),"start"!==i[2]&&"move"!==i[2]||(d.boundDocumentHandlers?M._handleMouseMoveDocument(t):M._handleMouseMove(t)),"end"!==i[2]&&"cancel"!==i[2]||(d.boundDocumentHandlers?M._handleMouseUpDocument(t):M._handleMouseUp(t),c.lastEvent=null),"tap"!==i[2]||d.boundDocumentHandlers||(t.which=1,c.lastEventType=null,M._handleMouseDown(t),M._handleMouseUp(t),c.lastEventType=i[2]))}},this._repeatMouseMoveEvent=function(t){if(i&&i.modifiers){var e=i.modifiers.alt,n=i.modifiers.ctrl,r=i.modifiers.meta,o=i.modifiers.shift;M._getMouseModifiers(t),i.modifiers.alt===e&&i.modifiers.ctrl===n&&i.modifiers.meta===r&&i.modifiers.shift===o||(d.boundDocumentHandlers?M.map().geoTrigger(y.actionmove,{state:M.state(),mouse:M.mouse(),event:t}):M.map().geoTrigger(y.mousemove,M.mouse()))}},this.retriggerMouseMove=function(){M.map().geoTrigger(y.mousemove,M.mouse())},this._connectEvents=function(){if(!e.map)return M;M._disconnectEvents(),f=g(e.map.node()),M._handleMouseWheel=function(){var t={};function n(n){var i,r;C||(t!==h&&(h=t={kind:"wheel",scroll:{x:0,y:0}}),n.preventDefault(),n.deltaFactor=1,1===n.originalEvent.deltaMode?n.deltaFactor=40:2===n.originalEvent.deltaMode&&(n.deltaFactor=g(window).height()),i=n.originalEvent.deltaX||0,r=n.originalEvent.deltaY||0,i=i*e.wheelScaleX*n.deltaFactor/120,r=r*e.wheelScaleY*n.deltaFactor/120,t.scroll.x+=i,t.scroll.y+=r)}function r(n){var r,o;if(t===h){if(M._getMousePosition(n),M._getMouseButton(n),M._getMouseModifiers(n),o=(b({wheel:!0},i.modifiers,e.actions)||{}).action){var a=M.map().transitionCancel("wheel."+o);switch((a|=M.cancel(v.momentum,!0))&&(i.geo=M.map().displayToGcs(i.map),i.mapgcs=M.map().displayToGcs(i.map,null)),o){case v.pan:M.map().pan({x:h.scroll.x,y:h.scroll.y},void 0,"limited");break;case v.zoom:r=-h.scroll.y,k(r,i);break;case v.rotate:M.map().rotation(M.map().rotation()+h.scroll.y*e.rotateWheelScale,i)}M.map().geoTrigger(y.actionwheel,{state:M.state(),mouse:M.mouse(),eventData:n})}h={}}}return e.throttle>0?x(e.throttle,!1,r,n):function(t){n(t),r(t)}}(),k=function(){var t,n,i,r=0,o=400;function a(o,a){var s,l=M.map();t=g.extend(!0,{},a),r+=o,void 0===i&&(n=i=l.zoom()),i+=o,l&&Math.abs(r)>=1&&e.discreteZoom&&!e.zoomAnimation.enabled&&(s=Math.round(r+l.zoom()),r=r+l.zoom()-s,l.zoom(s,t))}function s(){var o,a=M.map();a&&(e.zoomAnimation.enabled?(o=i,e.discreteZoom&&(o=Math.round(o))===n&&i!==n&&(o=n+(i>n?1:-1)),(o=Math.round(1e6*a._fix_zoom(o))/1e6)!==a.zoom()?(a.transitionCancel("debounced_zoom."+v.zoom),a.transition({zoom:o,zoomOrigin:t,duration:e.zoomAnimation.duration,ease:e.zoomAnimation.ease,done:function(t){t=t||{};var n=new RegExp("\\."+v.zoom+"$");t.next||t.cancel&&!((""+t.source).search(n)<0)||(i=void 0),e.discreteZoom&&t.cancel&&t.transition&&t.transition.end&&(""+t.source).search(n)<0&&a.zoom(t.transition.end.zoom,t.transition.end.zoomOrigin)}})):i=void 0):(o=r+a.zoom(),e.discreteZoom&&(o=Math.round(o)),a.zoom(o,t))),r=0}!0!==e.discreteZoom&&e.discreteZoom>0&&(o=e.discreteZoom);return(!0===e.discreteZoom||e.discreteZoom>0)&&!e.zoomAnimation.enabled?_(o,!1,s,a):function(t,e){(t||void 0!==i)&&(a(t,e),s())}}(),o.adjustActions(e.actions);var t={};if(["right","pan","rotate"].forEach((function(n){t[n]=e.actions.some((function(t){return t.input[n]}))})),f.on("wheel.geojs",M._handleMouseWheel),f.on("mousemove.geojs",M._handleMouseMove),f.on("mousedown.geojs",M._handleMouseDown),f.on("mouseup.geojs",M._handleMouseUp),f.on("dragstart",(function(){return!1})),t.right&&f.on("contextmenu.geojs",(function(){return!1})),e.keyboard&&e.keyboard.actions){l=a(f[0]);var r=[];for(var s in e.keyboard.actions)e.keyboard.actions.hasOwnProperty(s)&&(l.bind(e.keyboard.actions[s],function(t){return function(e,n){M._handleKeys(t,e,n)}}(s)),r=r.concat(e.keyboard.actions[s]));e.keyboard.metakeyMouseEvents&&e.keyboard.metakeyMouseEvents.forEach((function(t){l.bind(t,M._repeatMouseMoveEvent,"keydown"),l.bind(t,M._repeatMouseMoveEvent,"keyup"),r.push(t)})),u=r}if(f.toggleClass("highlight-focus",!!(u&&u.length&&e.keyboard.focusHighlight)),(M.hasTouchSupport()||e.alwaysTouch)&&(t.pan||t.rotate)){var d;try{(d=n(7606))&&d.Manager||(d=void 0)}catch(t){}if(void 0!==d){var p=[],m=["hammer.input"];t.rotate&&(p.push([d.Rotate,{enable:!0}]),m=m.concat(["rotatestart","rotateend","rotatemove"])),t.pan&&(p.push([d.Pan,{direction:d.DIRECTION_ALL}]),m=m.concat(["panstart","panend","panmove"])),p.push([d.Tap,{event:"doubletap",taps:2}]),p.push([d.Tap,{event:"singletap"},void 0,["doubletap"]]),m=m.concat(["singletap"]);var w={recognizers:p,preventDefault:!0};(c={manager:new d.Manager(f[0],w),touchSupport:M.hasTouchSupport(),lastTime:0}).manager.get("doubletap").recognizeWith("singletap"),m.forEach((function(t){c.manager.on(t,M._handleTouch)}))}}return M},this._disconnectEvents=function(){return u&&(l&&l.unbind(u),u=null,l=null),c&&(c.manager.destroy(),c=null),f&&(f.off(".geojs"),f=null),M._handleMouseWheel=function(){},k=function(){},M},this.map=function(t){return void 0!==t?(e.map=t,M._connectEvents(),M):e.map},this.options=function(t){return void 0===t?g.extend({},e):(g.extend(e,t),M._connectEvents(),M)},this._getMousePosition=function(t){if(void 0!==t.pageX&&void 0!==t.pageY){var e,n,r=f.offset();e=(n=(new Date).valueOf())-i.time,i.time=n,i.deltaTime=e,i.velocity={x:(t.pageX-i.page.x)/e,y:(t.pageY-i.page.y)/e},i.page={x:t.pageX,y:t.pageY},i.map={x:t.pageX-r.left,y:t.pageY-r.top};try{i.geo=M.map().displayToGcs(i.map),i.mapgcs=M.map().displayToGcs(i.map,null)}catch(t){i.geo=i.mapgcs=null}}},this._getMouseButton=function(t){if(void 0!==t.buttons||void 0!==t.which){for(var e in i.buttons)i.buttons.hasOwnProperty(e)&&(i.buttons[e]=!1);if(void 0!==t.buttons)i.buttons.left=!!(1&t.buttons),i.buttons.right=!!(2&t.buttons),i.buttons.middle=!!(4&t.buttons);else if("mouseup"!==t.type)switch(t.which){case 1:i.buttons.left=!0;break;case 2:i.buttons.middle=!0;break;case 3:i.buttons.right=!0}!t.which||t.which>=1&&t.which<=3||(i.buttons[t.which]=!0)}},this._getMouseModifiers=function(t){i.modifiers.alt=t.altKey,i.modifiers.ctrl=t.ctrlKey,i.modifiers.meta=t.metaKey,i.modifiers.shift=t.shiftKey},this._getSelection=function(){var t=d.origin,e=M.mouse(),n=M.map(),i={},r={},a=e.map;if(d.actionRecord&&o.isFunction(d.actionRecord.selectionConstraint)){var s=d.actionRecord.selectionConstraint(e.mapgcs,t.mapgcs);a=s?n.gcsToDisplay(s.pos,null):a}else if(e.modifiers.shift){var l=Math.pow(Math.abs((a.x-t.map.x)*(a.y-t.map.y)),.5);a={x:t.map.x+Math.sign(a.x-t.map.x)*l,y:t.map.y+Math.sign(a.y-t.map.y)*l}}return i.upperLeft={x:Math.min(t.map.x,a.x),y:Math.min(t.map.y,a.y)},i.lowerRight={x:Math.max(t.map.x,a.x),y:Math.max(t.map.y,a.y)},i.upperRight={x:i.lowerRight.x,y:i.upperLeft.y},i.lowerLeft={x:i.upperLeft.x,y:i.lowerRight.y},r.upperLeft=n.displayToGcs(i.upperLeft,null),r.lowerRight=n.displayToGcs(i.lowerRight,null),r.upperRight=n.displayToGcs(i.upperRight,null),r.lowerLeft=n.displayToGcs(i.lowerLeft,null),p.data([{ul:r.upperLeft,ur:r.upperRight,ll:r.lowerLeft,lr:r.lowerRight}]),p.draw(),{display:i,gcs:r,mouse:e,origin:g.extend({},d.origin)}},this.cancel=function(t,e){var n;return(n=t?d.action===t:!!d.action)&&(e||(h={}),O()),n},this._setClickMaybe=function(t){E=t,m&&(window.clearTimeout(m),m=null)},this._handleMouseDown=function(t){var n,r;if(!(C||c&&"tap"===c.lastEventType&&(new Date).valueOf()-c.lastTime<1e3)){M._getMousePosition(t),M._getMouseButton(t),M._getMouseModifiers(t),M.map().geoTrigger(y.mousedown,M.mouse()),!e.click.enabled||i.buttons.left&&!e.click.buttons.left||i.buttons.right&&!e.click.buttons.right||i.buttons.middle&&!e.click.buttons.middle||(M._setClickMaybe({x:i.page.x,y:i.page.y,buttons:g.extend({},i.buttons)}),e.click.duration>0&&(m=window.setTimeout((function(){E=!1,m=null}),e.click.duration))),n=((r=b(i.buttons,i.modifiers,e.actions))||{}).action;var o=M.map();o.transitionCancel("_handleMouseDown"+(n?"."+n:"")),M.cancel(v.momentum),i.velocity={x:0,y:0},n&&(h={kind:"move"},A+=1,d={action:n,actionRecord:r,origin:g.extend(!0,{},i),initialZoom:o.zoom(),initialRotation:o.rotation(),initialEventRotation:t.rotation,stateId:A,delta:{x:0,y:0}},r.selectionRectangle&&(T&&(T.clear(),o.deleteLayer(T),T=null),T=o.createLayer("feature",{features:[w.capabilities.color],autoshareRenderer:!1}),(p=T.createFeature("quad",{gcs:o.gcs()})).style({opacity:.25,color:{r:.3,g:.3,b:.3}}),o.geoTrigger(y.brushstart,M._getSelection())),o.geoTrigger(y.actiondown,{state:M.state(),mouse:M.mouse(),event:t}),e.throttle>0?g(document).on("mousemove.geojs",x(e.throttle,M._handleMouseMoveDocument)):g(document).on("mousemove.geojs",M._handleMouseMoveDocument),g(document).on("mouseup.geojs",M._handleMouseUpDocument),d.boundDocumentHandlers=!0)}},this._handleMouseMove=function(t){C||d.boundDocumentHandlers||(e.click.cancelOnMove&&E&&M._setClickMaybe(!1),M._getMousePosition(t),M._getMouseButton(t),M._getMouseModifiers(t),E||M.map().geoTrigger(y.mousemove,M.mouse()))},this._handleZoomrotate=function(t){var n=Math.log2(t.scale);if(!d.zoomrotateAllowZoom&&n&&Math.abs(n)>=Math.log2(1+e.zoomrotateMinimumZoom)&&(e.zoomrotateMinimumZoom&&(d.initialZoom-=n),d.zoomrotateAllowZoom=!0),d.zoomrotateAllowZoom&&n){var i=d.initialZoom+n;M.map().zoom(i,d.origin)}var r=(t.rotation-d.initialEventRotation)*Math.PI/180;if(!d.zoomrotateAllowRotation&&r&&Math.abs(r)>=e.zoomrotateMinimumRotation&&(e.zoomrotateMinimumRotation&&(d.initialEventRotation=t.rotation,r=0),d.zoomrotateAllowRotation=!0),d.zoomrotateAllowRotation){var a=d.initialRotation+r;(r=o.wrapAngle(a-M.map().rotation()))&&(r*(d.lastRotationDelta||0)>=0||Math.abs(r)>=e.zoomrotateReverseRotation)&&(M.map().rotation(a,d.origin),d.lastRotationDelta=r)}var s=d.origin.page;if(d.initialEventGeo){var l=f.offset();(s=M.map().gcsToDisplay(d.initialEventGeo)).x+=l.left,s.y+=l.top}var u=t.pageX-s.x,c=t.pageY-s.y,h=u*u+c*c;!d.zoomrotateAllowPan&&h&&h>=e.zoomrotateMinimumPan*e.zoomrotateMinimumPan&&(e.zoomrotateMinimumPan?(u=c=0,d.initialEventGeo=M.mouse().geo):d.initialEventGeo=d.origin.geo,d.zoomrotateAllowPan=!0),d.zoomrotateAllowPan&&(u||c)&&M.map().pan({x:u,y:c})},this._handleMouseMoveDocument=function(t){var n,r,o;if(M.map()&&!C&&"move"===h.kind){if(M._getMousePosition(t),M._getMouseButton(t),M._getMouseModifiers(t),e.click.cancelOnMove)if(void 0===E.x||void 0===E.y)M._setClickMaybe(!1);else if(!0!==e.click.cancelOnMove||i.page.x===E.x&&i.page.y===E.y){Math.sqrt(Math.pow(i.page.x-E.x,2)+Math.pow(i.page.y-E.y,2))>=e.click.cancelOnMove&&M._setClickMaybe(!1)}else M._setClickMaybe(!1);if(!E)if(d.action){if(n=i.map.x-d.origin.map.x-d.delta.x,r=i.map.y-d.origin.map.y-d.delta.y,d.delta.x+=n,d.delta.y+=r,d.action===v.pan)M.map().pan({x:n,y:r},void 0,"limited");else if(d.action===v.zoom)k(-r*e.zoomScale/120,d);else if(d.action===v.rotate){var a,s;void 0===d.origin.rotation&&(a=d.origin.map.x-M.map().size().width/2,s=d.origin.map.y-M.map().size().height/2,d.origin.rotation=M.map().rotation()-Math.atan2(s,a)),a=i.map.x-M.map().size().width/2,s=i.map.y-M.map().size().height/2,M.map().rotation(d.origin.rotation+Math.atan2(s,a))}else d.action===v.zoomrotate?M._handleZoomrotate(t):d.actionRecord.selectionRectangle&&(o=M._getSelection(),M.map().geoTrigger(y.brush,o));M.map().geoTrigger(y.actionmove,{state:M.state(),mouse:M.mouse(),event:t}),t.preventDefault()}else console.log("WARNING: Invalid state in mapInteractor.")}},this._zoomFromSelection=function(t,e,n){if((t===v.zoomselect||t===v.unzoomselect)&&e.x!==n.x&&e.y!==n.y){var i,r,o=M.map(),a=o.size(),s={x:Math.abs((n.x-e.x)/a.width),y:Math.abs((n.y-e.y)/a.height)};if(t===v.zoomselect?(r=o.displayToGcs({x:(e.x+n.x)/2,y:(e.y+n.y)/2},null),i=o.zoom()-Math.log2(Math.max(s.x,s.y))):(i=o.zoom()+Math.log2(Math.max(s.x,s.y)),r=o.center(void 0,null)),o.discreteZoom()&&(i=Math.floor(i)),o.zoom(i),t===v.zoomselect)o.center(r,null);else{var l=o.gcsToDisplay(r,null);o.pan({x:(e.x+n.x)/2-l.x,y:(e.y+n.y)/2-l.y})}}},this._handleMouseUpDocument=function(t){var n,r;if(!C&&(h={},M._setClickMaybe(!1),M._getMouseButton(t),M._getMouseModifiers(t),g(document).off(".geojs"),d.boundDocumentHandlers=!1,i.buttons.right&&t.preventDefault(),d.actionRecord&&d.actionRecord.selectionRectangle&&(M._getMousePosition(t),n=M._getSelection(),T.clear(),M.map().deleteLayer(T),T=null,p=null,M.map().geoTrigger(y.brushend,n),!0!==d.actionRecord.selectionRectangle&&M.map().geoTrigger(d.actionRecord.selectionRectangle,n),M._zoomFromSelection(d.action,n.display.lowerLeft,n.display.upperRight),M.map().geoTrigger(y.actionselection,{state:M.state(),mouse:M.mouse(),event:t,lowerLeft:n.display.lowerLeft,upperRight:n.display.upperRight})),M.map().geoTrigger(y.actionup,{state:M.state(),mouse:M.mouse(),event:t}),r=d.action,O(),e.momentum.enabled&&g.inArray(r,e.momentum.actions)>=0)){var o=(new Date).valueOf(),a=o-i.time+i.deltaTime;o-i.time<e.momentum.stopTime?(i.velocity.x*=i.deltaTime/a,i.velocity.y*=i.deltaTime/a,i.deltaTime=a):i.velocity.x=i.velocity.y=0,M.springBack(!0,r)}},this._handleMouseUp=function(t){if(!C){M._getMouseButton(t),E&&M._handleMouseClick(t);var e=M.mouse();e.buttonsDown=E.buttons,M.map().geoTrigger(y.mouseup,e)}},this._handleMouseClick=function(t){d.actionRecord&&d.actionRecord.selectionRectangle&&(T.clear(),M.map().deleteLayer(T),T=null,p=null,d.action=d.actionRecord=null),M._getMouseButton(t),M._getMouseModifiers(t),M.cancel(v.pan),g(document).off(".geojs"),d.boundDocumentHandlers=!1;var e=M.mouse();e.buttonsDown=E.buttons,e.evt=t,M._setClickMaybe(!1),M.map().geoTrigger(y.mouseclick,e)},this._handleMouseWheel=function(){},this.springBack=function(t,n){d.action!==v.momentum&&(t||(i.velocity={x:0,y:0}),d.origAction=n,d.action=v.momentum,d.origin=M.mouse(),d.momentum=M.mouse(),d.start=new Date,d.handler=function(){var t,n,i,r;if(d.action===v.momentum&&M.map()&&!M.map().transition())if(r=Math.min(d.momentum.deltaTime,30),i=d.start.valueOf(),d.start=new Date,t=P(d.momentum.velocity,d.start-i)){if((n=S(t))>e.momentum.maxSpeed&&(n=e.momentum.maxSpeed/n,t.x=t.x*n,t.y=t.y*n),isFinite(t.x)&&isFinite(t.y)||(t.x=0,t.y=0),d.momentum.velocity.x=t.x,d.momentum.velocity.y=t.y,d.origAction===v.zoom){var o=d.momentum.velocity.y*r;k(-o*e.zoomScale/120,d)}else M.map().pan({x:d.momentum.velocity.x*r,y:d.momentum.velocity.y*r},void 0,"limited");d.handler&&M.map().scheduleAnimationFrame(d.handler)}else O()},d.handler&&M.map().scheduleAnimationFrame(d.handler))},this.destroy=function(){M._disconnectEvents(),M.map()&&g(M.map().node()).removeClass("highlight-focus"),M.map(null)},this.mouse=function(){return g.extend(!0,{},i)},this.keyboard=function(t){return void 0===t?g.extend(!0,{},e.keyboard||{}):M.options({keyboard:t})},this.state=function(){return g.extend(!0,{},d)},this.pause=function(t){return void 0===t?C:(C=!!t,M)},this.addAction=function(t,n){t&&t.action&&t.input&&(o.addAction(e.actions,t,n),e.map&&e.actions.some((function(t){return t.input.right}))&&(f.off("contextmenu.geojs"),f.on("contextmenu.geojs",(function(){return!1}))))},this.hasAction=function(t,n,i){return o.hasAction(e.actions,t,n,i)},this.removeAction=function(t,n,i){var r=o.removeAction(e.actions,t,n,i);return e.map&&!e.actions.some((function(t){return t.input.right}))&&f.off("contextmenu.geojs"),r},this.simulateEvent=function(t,e){var n,i,r,o,a;if(!M.map())return M;if("keyboard"===t&&l){var s={shiftKey:e.shift||e.shiftKey||!1,ctrlKey:e.ctrl||e.ctrlKey||!1,altKey:e.alt||e.altKey||!1,metaKey:e.meta||e.metaKey||!1,toString:function(){return e.keys},stopPropagation:function(){},preventDefault:function(){},simulated:!0};l.trigger(s,e.event)}else i=e.page||{},e.map&&(r=f.offset(),i.x=e.map.x+r.left,i.y=e.map.y+r.top),"left"===e.button?(o=1,a=1):"right"===e.button?(o=3,a=2):"middle"===e.button&&(o=2,a=4),e.modifiers=e.modifiers||[],e.wheelDelta=e.wheelDelta||{},n=g.Event(t,{pageX:i.x,pageY:i.y,which:o,buttons:a,altKey:e.modifiers.indexOf("alt")>=0,ctrlKey:e.modifiers.indexOf("ctrl")>=0,metaKey:e.modifiers.indexOf("meta")>=0,shiftKey:e.modifiers.indexOf("shift")>=0,center:e.center,rotation:e.touch?e.rotation||0:e.rotation,scale:e.touch?e.scale||1:e.scale,pointers:e.pointers,pointerType:e.pointerType,originalEvent:{deltaX:e.wheelDelta.x,deltaY:e.wheelDelta.y,deltaMode:e.wheelMode,preventDefault:function(){},stopPropagation:function(){},stopImmediatePropagation:function(){}}}),e.touch&&c?M._handleTouch(n):f.trigger(n),t.indexOf(".geojs")>=0&&g(document).trigger(n)},this._connectEvents(),this};i(s,r),t.exports=s},2225:function(t,e,n){function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(t,e)||r(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var a=n(4626),s=n(1275),l=n(7541),u=function(t){"use strict";if(!(this instanceof u))return new u(t);t=t||{},l.call(this,t);var e=n(5616),o=n(77),a=n(642),s=n(4279);s=s.__esModule?s.default:s;var c=this,d=this._init,h=null,f=o(),p=0,m=0,g=0;return this.featureType="marker",this._updateRangeTree=function(){if(!(f.timestamp()>=c.dataTime().timestamp()&&f.timestamp()>=c.timestamp())){var t,e,n=c.style.get("radius"),o=c.style.get("strokeWidth"),a=c.style.get("radiusIncludesStroke"),l=c.style.get("strokeOffset"),d=c.style.get("scaleWithZoom");e=c.position(),p=0,m=0,g=0,t=c.data().map((function(t,i){var r=e(t,i),s=d(t,i),c=n(t,i),h=o(t,i),f=Math.sign(l(t,i)),y=a(t,i),v=(y=void 0===y||y)?c+h*(f+1)/2:c+h,x=y?c+h*(f-1)/2:c;switch(s=u.scaleMode[s]||(s>=1&&s<=3?s:0)){case u.scaleMode.stroke:x>p&&(p=x),h>g&&(g=h);break;case u.scaleMode.fill:case u.scaleMode.all:v>m&&(m=v);break;default:v>p&&(p=v)}return[r.x,r.y]})),h=new s(t.length);var y,v=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=r(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}(t);try{for(v.s();!(y=v.n()).done;){var x=i(y.value,2),_=x[0],b=x[1];h.add(_,b)}}catch(t){v.e(t)}finally{v.f()}h.finish(),f.modified()}},this._approximateMaxRadius=function(t){c._updateRangeTree();var e=Math.pow(2,t);return Math.max(p+g*e,m*e)},this.pointSearch=function(t,e){var n,i,r,o,a=[],s=[],l=[],d=c.gcs(),f=c.style.get("radius"),p=c.style.get("strokeWidth"),m=c.style.get("radiusIncludesStroke"),g=c.style.get("strokeOffset"),y=c.style.get("scaleWithZoom");if(!(r=c.data())||!r.length)return{found:[],index:[]};c._updateRangeTree();var v=c.layer().map();e=null===e?v.gcs():void 0===e?v.ingcs():e;var x=v.gcsToDisplay(t,e),_=v.zoom(),b=Math.pow(2,_),w=this._approximateMaxRadius(_);return o=[v.displayToGcs({x:x.x-w,y:x.y-w},d),v.displayToGcs({x:x.x+w,y:x.y-w},d),v.displayToGcs({x:x.x-w,y:x.y+w},d),v.displayToGcs({x:x.x+w,y:x.y+w},d)],n={x:Math.min(o[0].x,o[1].x,o[2].x,o[3].x),y:Math.min(o[0].y,o[1].y,o[2].y,o[3].y)},i={x:Math.max(o[0].x,o[1].x,o[2].x,o[3].x),y:Math.max(o[0].y,o[1].y,o[2].y,o[3].y)},(a=h.range(n.x,n.y,i.x,i.y)).sort((function(t,e){return t-e})),a.forEach((function(t){var e=r[t],n=f(r[t],t),i=y(r[t],t),o=g(r[t],t),a=i?p(r[t],t):0,h=m(e,t),_=(h=void 0===h||h)?n+a*(o-1)/2:n;n=_+a;var w,M,A,T=c.position()(e,t);switch(i=u.scaleMode[i]||(i>=1&&i<=3?i:0)){case u.scaleMode.fill:n=_*b+a;break;case u.scaleMode.stroke:n=_+a*b;break;case u.scaleMode.all:n*=b}n&&(A=n*n,(w=(T=v.gcsToDisplay(T,d)).x-x.x)*w+(M=T.y-x.y)*M<=A&&(s.push(e),l.push(t)))})),{found:s,index:l}},this.polygonSearch=function(t,e,n){var i,r,o,s,l=c.gcs(),d=[],f=[],p={},m=c.layer().map(),g=c.data(),y=c.style.get("radius"),v=c.style.get("strokeWidth"),x=c.style.get("radiusIncludesStroke"),_=c.style.get("strokeOffset"),b=c.style.get("scaleWithZoom"),w=m.zoom(),M=Math.pow(2,w),A=this._approximateMaxRadius(w);return n=null===n?m.gcs():void 0===n?m.ingcs():n,t.outer||(t={outer:t,inner:[]}),t.outer.length<3||!g||!g.length?{found:[],index:[],extra:{}}:((e=e||{}).partial=e.partial||!1,(t={outer:m.gcsToDisplay(t.outer,n),inner:(t.inner||[]).map((function(t){return m.gcsToDisplay(t,n)}))}).outer.forEach((function(t){r||(r={x:t.x,y:t.y},o={x:t.x,y:t.y}),t.x<r.x&&(r.x=t.x),t.x>o.x&&(o.x=t.x),t.y<r.y&&(r.y=t.y),t.y>o.y&&(o.y=t.y)})),c._updateRangeTree(),s=[m.displayToGcs({x:r.x-A,y:r.y-A},l),m.displayToGcs({x:o.x+A,y:r.y-A},l),m.displayToGcs({x:o.x+A,y:o.y+A},l),m.displayToGcs({x:r.x-A,y:o.y+A},l)],r={x:Math.min(s[0].x,s[1].x,s[2].x,s[3].x),y:Math.min(s[0].y,s[1].y,s[2].y,s[3].y)},o={x:Math.max(s[0].x,s[1].x,s[2].x,s[3].x),y:Math.max(s[0].y,s[1].y,s[2].y,s[3].y)},(i=h.range(r.x,r.y,o.x,o.y)).sort((function(t,e){return t-e})),i.forEach((function(n){var i=g[n],r=c.position()(i,n),o=y(g[n],n),s=b(g[n],n),h=_(g[n],n),w=s?v(g[n],n):0,A=x(i,n),T=(A=void 0===A||A)?o+w*(h-1)/2:o;switch(o=T+w,s=u.scaleMode[s]||(s>=1&&s<=3?s:0)){case u.scaleMode.fill:o=T*M+w;break;case u.scaleMode.stroke:o=T+w*M;break;case u.scaleMode.all:o*=M}if(o){r=m.gcsToDisplay(r,l);var C=a.distanceToPolygon2d(r,t);(C>=o||C>=0&&"center"===e.partial||C>=-o&&e.partial&&"center"!==e.partial)&&(d.push(i),f.push(n),p[n]={partial:C<o,distance:C})}})),{found:d,index:f,extra:p})},this._init=function(t){return t=e.extend(!0,{},{style:e.extend({},{radius:6.25,radiusIncludesStroke:!0,strokeColor:{r:.851,g:.604,b:0},strokeOffset:-1,strokeOpacity:1,strokeWidth:1.25,fillColor:{r:1,g:.839,b:.439},fillOpacity:.8,symbol:0,symbolValue:0,rotation:0,scaleWithZoom:u.scaleMode.none,rotateWithMap:!1},t&&void 0===t.style?{}:t.style)},t),d.call(c,t),c},c};u.create=function(t,e){"use strict";return(e=e||{}).type="marker",s.create(t,e)},u.capabilities={feature:"marker"},u.primitiveShapes=l.primitiveShapes,u.symbols={circle:0,ellipse:0,flowerBase:1,flowerMax:16,triangle:16,diamond:17,starBase:17,starMax:16,square:32,rectangle:32,crossBase:33,crossMax:16,oval:48,jackBase:49,jackMax:16,drop:64,dropBase:65,dropMax:16,arrow:80,arrowBase:81,arrowMax:16,length:96},["flower","star","cross","jack","drop","arrow"].forEach((function(t){for(var e=2;e<=u.symbols[t+"Max"];e+=1)u.symbols[t+e]=u.symbols[t+"Base"]-2+e})),u.scaleMode={none:0,fill:1,stroke:2,all:3},a(u,l),t.exports=u},6124:function(t,e,n){var i=n(4626),r=n(1275),o=function(t){"use strict";if(!(this instanceof o))return new o(t);var e=n(5616),i=n(642);t=t||{},r.call(this,t);var a=this,s=this._init,l={};return this.featureType="mesh",this.mesh=function(t,n){if(void 0===t)return l;if("string"==typeof t&&void 0===n)return l[t];if(void 0===n){var i=e.extend({},{gridWidth:function(){return t.gridHeight?Math.floor(a.data().length/t.gridHeight):Math.floor(Math.sqrt(a.data().length))},gridHeight:function(){return t.gridWidth?Math.floor(a.data().length/t.gridWidth):Math.floor(Math.sqrt(a.data().length))}},l,t);l=i}else l[t]=n;return a.modified(),a},this.mesh.get=function(t){if(void 0===t){var e,n={};for(e in l)l.hasOwnProperty(e)&&(n[e]=a.mesh.get(e));return n}return i.ensureFunction(l[t])},this.position=function(t){return void 0===t?a.style("position"):(a.style("position",t),a.dataTime().modified(),a.modified(),a)},this._createMesh=function(t,e){t=t||{},e=e||{};var n,i,r,o,s,l,u,c,d,h,f,p,m,g,y,v,x=a.data(),_=a.position(),b=a.mesh.get("elements")(x),w=a.mesh.get("elementPacking")(x),M=a.mesh.get("gridWidth")(x),A=a.mesh.get("gridHeight")(x),T=a.mesh.get("wrapLongitude")(x),C=a.mesh.get("x0")(x),E=a.mesh.get("y0")(x),k=a.mesh.get("dx")(x),S=a.mesh.get("dy")(x),O=M,P={shape:"square",elements:[],elementIndex:[]};if(b){var L=b.length&&Array.isArray(b[0]);if("square"===w||"triangle"!==w&&(!L&&!(b.length%4)&&b.length%3||L&&4===b[0].length))if(P.shape="square",L)for(n=0;n<b.length;n+=1)P.elements.push(b[n][0]),P.elements.push(b[n][1]),P.elements.push(b[n][3]),P.elements.push(b[n][2]),P.elements.push(b[n][3]),P.elements.push(b[n][1]),P.elementIndex.push(n),P.elementIndex.push(n);else for(n=r=0;n<b.length-3;n+=4,r+=1)P.elements.push(b[n]),P.elements.push(b[n+1]),P.elements.push(b[n+3]),P.elements.push(b[n+2]),P.elements.push(b[n+3]),P.elements.push(b[n+1]),P.elementIndex.push(r),P.elementIndex.push(r);else if(P.shape="triangle",L)for(n=0;n<b.length;n+=1)P.elements.push(b[n][0]),P.elements.push(b[n][1]),P.elements.push(b[n][2]),P.elementIndex.push(n);else for(P.elements=b.slice(0,b.length-b.length%3),n=r=0;n<b.length-2;n+=3,r+=1)P.elementIndex.push(r);l=x.length,c=!0}else{if(Object.keys(t).length?M*A>x.length&&(A=Math.floor(x.length/M)):Object.keys(e).length&&(M-1)*(A-1)>x.length&&(A=Math.floor(x.length/(M-1))+1),T=!(void 0!==T&&!T),!(c=null==C||null==E||!k||!S)&&T&&(C<-180||C>180||C+k*(M-1)<-180||C+k*(M-1)>180)&&k>-180&&k<180&&k*(M-1)<360.0001){for(p=[],m=[],n=0;n<M;n+=1){for(y=C+n*k;y<-180;)y+=360;for(;y>180;)y-=360;n&&Math.abs(y-p[p.length-1])>180&&(y>p[p.length-1]?(p.push(y-360),p.push(p[p.length-2]+360),m.push(n),m.push(n+1)):(p.push(y+360),p.push(p[p.length-2]-360),m.push(n),m.push(n+1)),g=n),p.push(y),m.push(n)}if(M+=2,Math.abs(Math.abs(O*k)-360)<.01){for(M+=1,y=C+O*k;y<-180;)y+=360;for(;y>180;)y-=360;p.push(y),m.push(0)}}if(l=M*A,void 0!==g)for(P.index=new Array(l),n=0;n<l;n+=1)v=n-(r=Math.floor(n/M))*M,(v+=v>g?-2:0)>=O&&(v-=O),v+=r*O,P.index[n]=v;for(r=s=0;r<A-1;r+=1,s+=1)for(n=0;n<M-1;n+=1,s+=1)n!==g&&(P.elements.push(s),P.elements.push(s+1),P.elements.push(s+M),P.elements.push(s+M+1),P.elements.push(s+M),P.elements.push(s+1),P.elementIndex.push(r*(M-1)+(m?m[n]:n)),P.elementIndex.push(r*(M-1)+(m?m[n]:n)))}P.verticesPerElement="triangle"===P.shape?3:6;var R=P.verticesPerElement;if(e.used){var I=new Array(P.elementIndex[P.elementIndex.length-1]+1);for(n=0;n<I.length;n+=1)I[n]=e.used(x[n],n);for(n=0;n<P.elementIndex.length&&I[P.elementIndex[n]];n+=1);if(n<P.elementIndex.length){for(r=n;n<P.elementIndex.length;n+=1)if(I[P.elementIndex[n]]){for(P.elementIndex[r]=P.elementIndex[n],o=0;o<3;o+=1)P.elements[3*r+o]=P.elements[3*n+o];r+=1}P.elements.splice(3*r),P.elementIndex.splice(r)}}if(t.used){for(n=0;n<l&&(s=P.index?P.index[n]:n,t.used(x[s],s));n+=1);if(n!==l){u=n;var D=new Array(l);for(r=0;r<u;r+=1)D[r]=r;if(D[u]=-1,!P.index)for(P.index=new Array(x.length),r=0;r<x.length;r+=1)P.index[r]=r;for(n=u+1;n<l;n+=1)s=P.index[n],t.used(x[s],s)?(D[n]=u,P.index[u]=P.index[n],u+=1):D[n]=-1;for(P.index.splice(u),n=o=0;n<P.elements.length;n+=R){for(r=0;r<R&&!(D[P.elements[n+r]]<0);r+=1)P.elements[o+r]=D[P.elements[n+r]];r===R&&(P.elementIndex[Math.floor(o/3)]=P.elementIndex[Math.floor(n/3)],6===R&&(P.elementIndex[Math.floor(o/3)+1]=P.elementIndex[Math.floor(n/3)+1]),o+=R)}P.elements.splice(o),P.elementIndex.splice(Math.floor(o/3)),l=u}}if(e.used&&void 0===g){var F=new Array(l),j=P.index;for(P.index=[],n=0;n<P.elements.length;n+=1)void 0===F[o=P.elements[n]]&&(F[o]=P.index.length,P.index.push(j?j[o]:o)),P.elements[n]=F[o];l=P.index.length}for(h in P.pos=new Array(3*l),t)"used"!==h&&t.hasOwnProperty(h)&&(P[h]=new Array(l));for(n=i=0;n<l;n+=1,i+=3)for(h in d=x[s=P.index?P.index[n]:n],c?(f=_(d,s),P.pos[i]=f.x,P.pos[i+1]=f.y,P.pos[i+2]=f.z||0):(P.pos[i]=void 0===g?C+k*(s%M):p[n%M],P.pos[i+1]=E+S*Math.floor(s/M),P.pos[i+2]=0,f={x:P.pos[i],y:P.pos[i+1],z:P.pos[i+2]}),t)"used"!==h&&t.hasOwnProperty(h)&&(P[h][n]=t[h](d,s,f));for(h in e)if("used"!==h&&e.hasOwnProperty(h)){var B=e[h];for(P[h]=new Array(P.elementIndex.length),n=0;n<P.elementIndex.length;n+=1)d=x[s=P.elementIndex[n]],P[h][n]=B(d,s)}return P.numVertices=l,P.numElements=P.elements.length/P.verticesPerElement,P},this._init=function(t){s.call(a,t),t=t||{};var n=e.extend({},{position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t}},t.style||{});a.mesh(t.mesh||{}),a.style(n)},this};i(o,r),t.exports=o},1338:function(t,e,n){var i=n(4626),r=n(77),o=0,a=function(){"use strict";if(!(this instanceof a))return new a;var t=n(642),e=this,i=++o,s={},l=[],u=0;return this.onIdle=function(t){return u?l.push(t):t(),e},Object.defineProperty(this,"idle",{get:function(){return!u},configurable:!0}),Object.defineProperty(this,"_promises",{get:function(){return u},configurable:!0}),this.addPromise=function(t){function n(){t._geojsTracked&&t._geojsTracked[i]&&(u-=1,delete t._geojsTracked[i]),u||l.splice(0,l.length).forEach((function(t){t()}))}return t._geojsTracked||(t._geojsTracked={}),t._geojsTracked[i]||(t._geojsTracked[i]=!0,u+=1),t.always?t.always(n):t.then(n,n),e},this.removePromise=function(t){return t._geojsTracked&&t._geojsTracked[i]&&(u-=1,delete t._geojsTracked[i],u||l.splice(0,l.length).forEach((function(t){t()}))),e},this.geoOn=function(n,i){return Array.isArray(n)?(n.forEach((function(t){e.geoOn(t,i)})),e):t.isFunction(i)?(s.hasOwnProperty(n)||(s[n]=[]),s[n].push(i),e):(console.warn("Handler for "+n+" is not a function",i,e),e)},this.geoOnce=function(t,n){var i=function(r){e.geoOff(t,i),n.call(e,r)};return e.geoOn(t,i),i},this.geoIsOn=function(t,n){return Array.isArray(t)?t.some((function(t){return e.geoIsOn(t,n)})):(s[t]||[]).some((function(t){return t===n||void 0===n}))},this.geoTrigger=function(t,n){return Array.isArray(t)?(t.forEach((function(t){e.geoTrigger(t,n)})),e):((n=n||{}).event=t,s.hasOwnProperty(t)&&s[t].forEach((function(i){try{i.call(e,n)}catch(e){console.warn("Event handler for "+t+" threw an error",e)}})),e)},this.geoOff=function(t,n){if(void 0===t&&(s={},l=[],u=0,i=++o),Array.isArray(t))return t.forEach((function(t){e.geoOff(t,n)})),e;if(n){if(Array.isArray(n))return n.forEach((function(n){e.geoOff(t,n)})),e}else s[t]=[];return s.hasOwnProperty(t)&&(s[t]=s[t].filter((function(t){return t!==n}))),e},this._eventHandlers=function(){return s},this._exit=function(){e.geoOff()},r.call(this),this.modified(),this};i(a,r),t.exports=a},4880:function(t,e,n){var i=n(5616),r=n(4626),o=n(9264),a=n(1098),s=n(3842),l=function(t){var e=n(4912);if(!(this instanceof l))return new l(t);void 0!==(t=t||{}).mapOpacity&&void 0===t.opacity&&((t=i.extend({},t)).opacity=t.mapOpacity),t=i.extend(!0,{},this.constructor.defaults,l.tileSources[this.constructor.defaults.source]||{},l.tileSources[t.source]||{},{name:""},t),o.call(this,t);var r=this;this.mapOpacity=this.opacity,this._getTile=function(t,n){var i=n||t;return e({index:t,size:{x:r._options.tileWidth,y:r._options.tileHeight},queue:r._queue,overlap:r._options.tileOverlap,scale:r._options.tileScale,url:r._options.url.call(r,i.x,i.y,i.level||0,r._options.subdomains),crossDomain:r._options.crossDomain})},this.source=function(t){if(void 0!==t)return l.tileSources[t]&&(r.url(l.tileSources[t].url),r.subdomains(l.tileSources[t].subdomains||"abc"),r.attribution(l.tileSources[t].attribution||""),r._options.maxLevel=l.tileSources[t].maxLevel||18,r._options.minLevel=l.tileSources[t].minLevel||0),r;for(var e in l.tileSources)if(l.tileSources[e].url===r.url())return e}};l.defaults=i.extend({},o.defaults,{tileOffset:function(t){var e=256*Math.pow(2,t-1);return{x:e,y:e}},url:"",source:"osm"});var u='Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.',c='<a href="https://carto.com"> Carto</a> Contributors <a href="https://www.openstreetmap.org/"> OpenStreetMap</a>';l.tileSources={"dark-matter-with-labels":{url:" https://{s}.basemaps.cartocdn.com/rastertiles/dark_all/{z}/{x}/{y}.png",attribution:c,name:"Carto Dark Matter With Labels",minLevel:0,maxLevel:18},"dark-matter-without-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/dark_nolabels/{z}/{x}/{y}.png",attribution:c,name:"Carto Dark Matter Without Labels",minLevel:0,maxLevel:18},"nationalmap-relief":{url:"https://basemap.nationalmap.gov/arcgis/rest/services/USGSShadedReliefOnly/MapServer/tile/{z}/{y}/{x}",attribution:'Tile data from <a href="https://basemap.nationalmap.gov/">USGS</a>',name:"National Map Shaded Relief",minLevel:0,maxLevel:16},"nationalmap-satellite":{url:"https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/{z}/{y}/{x}",attribution:'Tile data from <a href="https://basemap.nationalmap.gov/">USGS</a>',name:"National Map Satellite",minLevel:0,maxLevel:16},"nationalmap-satellite-topo":{url:"https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryTopo/MapServer/tile/{z}/{y}/{x}",attribution:'Tile data from <a href="https://basemap.nationalmap.gov/">USGS</a>',name:"National Map Satellite and Topo",minLevel:0,maxLevel:16},"nationalmap-topo":{url:"https://basemap.nationalmap.gov/arcgis/rest/services/USGSTopo/MapServer/tile/{z}/{y}/{x}",attribution:'Tile data from <a href="https://basemap.nationalmap.gov/">USGS</a>',name:"National Map Topo",minLevel:0,maxLevel:16},osm:{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:'Tile data © <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',name:"OpenStreetMap",subdomains:"abc",minLevel:0,maxLevel:19},"positron-with-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/light_all/{z}/{x}/{y}.png",attribution:c,name:"Carto Positron With Labels",minLevel:0,maxLevel:18},"positron-without-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/light_nolabels/{z}/{x}/{y}.png",attribution:c,name:"Carto Positron Without Labels",minLevel:0,maxLevel:18},"stamen-terrain":{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png",attribution:u,name:"Stamen Terrain",subdomains:"abcd",minLevel:0,maxLevel:14},"stamen-terrain-background":{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/terrain-background/{z}/{x}/{y}.png",attribution:u,name:"Stamen Terrain Background",subdomains:"abcd",minLevel:0,maxLevel:14},"stamen-toner":{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.png",attribution:u,name:"Stamen Toner",subdomains:"abcd",minLevel:0,maxLevel:20},"stamen-toner-lite":{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png",attribution:u,name:"Stamen Toner Lite",subdomains:"abcd",minLevel:0,maxLevel:20},"voyager-with-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/voyager_labels_under/{z}/{x}/{y}.png",attribution:c,name:"Carto Voyager With Labels",minLevel:0,maxLevel:18},"voyager-without-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/voyager_nolabels/{z}/{x}/{y}.png",attribution:c,name:"Carto Voyager Without Labels",minLevel:0,maxLevel:18}},r(l,o),a.registerLayer("osm",l,[s.capabilities.image]),t.exports=l},2266:function(t,e,n){var i=n(5616),r=n(4626),o=n(1275),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var e=this,n=this._init;return this.featureType="path",this.position=function(t){return void 0===t?e.style("position"):(t!==e.style("position")&&(e.style("position",t),e.dataTime().modified(),e.modified()),e)},this._init=function(t){n.call(e,t);var r=i.extend({},{strokeWidth:1,strokeColor:{r:1,g:1,b:1},position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t}},void 0===t.style?{}:t.style);return void 0!==t.position&&(r.position=t.position),e.style(r),r.position&&e.position(r.position),e.dataTime().modified(),e},this._init(t),this};r(a,o),t.exports=a},7761:function(t,e,n){var i=n(5616),r=n(4626),o=n(1275),a=n(642),s=function(t){"use strict";if(!(this instanceof s))return new s(t);t=t||{},o.call(this,t);var e,n=this,r=this._update,l=this._init;return this.featureType="pixelmap",this.position=function(t){return void 0===t?n.style("position"):(t!==n.style("position")&&(n.style("position",t),n.dataTime().modified(),n.modified()),n)},this.url=function(t){return void 0===t?n.style("url"):(t!==n.style("url")&&(n.m_srcImage=n.m_info=void 0,n.style("url",t),n.dataTime().modified(),n.modified()),n)},this.color=function(t){return void 0===t?n.style("color"):(t!==n.style("color")&&(n.style("color",t),n.dataTime().modified(),n.modified()),n)},this.indexModified=function(t,i){if(void 0===t){var r=e;return"clear"===i&&(e=void 0),r}return n.modified(),void 0===e&&(e=[t,t]),t<e[0]&&(e[0]=t),(i||t)>e[1]&&(e[1]=i||t),n},this._update=function(){return r.call(n),(n.buildTime().timestamp()<=n.dataTime().timestamp()||n.updateTime().timestamp()<n.timestamp())&&n._build(),n.updateTime().modified(),n},this.maxIndex=function(){if(n.m_info){if(void 0===n.m_info.maxIndex)for(var t in n.m_info.maxIndex=0,n.m_info.mappedColors)n.m_info.mappedColors.hasOwnProperty(t)&&(n.m_info.maxIndex=Math.max(n.m_info.maxIndex,t));return n.m_info.maxIndex}},this._computePixelmap=function(){},this._build=function(){if(n.m_srcImage)n.m_info&&n._computePixelmap();else{var t=n.style.get("url")();if(a.isReadyImage(t))n.m_srcImage=t,n._computePixelmap();else if(t){var e,r,o=i.Deferred();t instanceof Image?(n.m_srcImage=t,e=t.onload,r=t.onerror):(n.m_srcImage=new Image,t.indexOf(":")>=0&&t.indexOf("/")===t.indexOf(":")+1&&(n.m_srcImage.crossOrigin=n.style.get("crossDomain")()||"anonymous")),n.m_srcImage.onload=function(){e&&e.apply(n,arguments),n.style.get("url")()===t&&(n.m_info=void 0,n._computePixelmap()),o.resolve()},n.m_srcImage.onerror=function(){r&&r.apply(n,arguments),o.reject()},o.promise(n),n.layer().addPromise(n),t instanceof Image||(n.m_srcImage.src=t)}}return n.buildTime().modified(),n},this._init=function(t){t=t||{},l.call(n,t);var e=i.extend({},{color:function(t,e){return{r:(255&e)/255,g:(e>>8&255)/255,b:(e>>16&255)/255,a:1}},position:a.identityFunction},void 0===t.style?{}:t.style);return void 0!==t.position&&(e.position=t.position),void 0!==t.url&&(e.url=t.url),void 0!==t.color&&(e.color=t.color),n.style(e),n.dataTime().modified(),t.quadFeature&&(n.m_srcImage=!0,n._computePixelmap()),n},this};s.create=function(t,e){"use strict";return(e=e||{}).type="pixelmap",o.create(t,e)},s.capabilities={feature:"pixelmap",lookup:"pixelmap.lookup"},r(s,o),t.exports=s},534:function(t,e,n){var i=n(5616),r=n(4626),o=n(9264),a=n(1098),s=n(3842),l=n(7761),u=function(t){var e,r=n(4912);if(!(this instanceof u))return new u(t);(t=t||{}).data&&(e=t.data,delete t.data),t=i.extend(!0,{},this.constructor.defaults,t),o.call(this,t);var a,s=this._init,l=this;return this._getTile=function(t,e){var n=e||t;return r({index:t,size:{x:l._options.tileWidth,y:l._options.tileHeight},queue:l._queue,overlap:l._options.tileOverlap,scale:l._options.tileScale,url:l._options.url.call(l,n.x,n.y,n.level||0,l._options.subdomains),crossDomain:l._options.crossDomain})},this._init=function(){s.apply(l,arguments),l.nearestPixel(!0,!0);var n={quadFeature:l.features()[0]};t.style&&(n.style=t.style),t.color&&(n.color=t.color),a=l.createFeature("pixelmap",n),e&&a.data(e),l.style=a.style,l.data=a.data,l.indexModified=a.indexModified;var i=l.dataTime().modified;return l.dataTime().modified=function(){return a.dataTime().modified(),i()},["modified","geoOn","geoOff","geoOnce"].forEach((function(t){var e=l[t];l[t]=function(){return Array.isArray(arguments[0])||a[t].apply(this,arguments),e.apply(this,arguments)}})),l},l};u.defaults=i.extend({},o.defaults,{features:[s.capabilities.image,l.capabilities.lookup],tileOffset:function(t){var e=256*Math.pow(2,t-1);return{x:e,y:e}},url:""}),r(u,o),a.registerLayer("pixelmap",u,[s.capabilities.image]),t.exports=u},7541:function(t,e,n){function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(t,e)||r(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var a=n(4626),s=n(1275),l=function(t){"use strict";if(!(this instanceof l))return new l(t);t=t||{},s.call(this,t);var e=n(5616),o=n(77),a=n(5966),u=n(6409),c=n(642),d=n(4279);d=d.__esModule?d.default:d;var h=this,f=this._init,p=null,m=o(),g=this.data,y=0,v=t.clustering,x=null,_=[],b=null,w=!1;return this.featureType="point",this.clustering=function(t){return void 0===t?v:(v&&!t?(x=null,v=!1,g(_)):t&&v!==t&&(v=t,h._clusterData()),h)},this._clusterData=function(){if(v){var t=!0===v?{radius:10}:v,n=h.position(),i=h.layer().map(),r=i.gcsToDisplay(i.center(void 0,null),null),o=i.displayToGcs(r,h.gcs()),s=i.displayToGcs({x:r.x+t.radius,y:r.y},h.gcs()),l=Math.pow(Math.pow(s.y-o.y,2)+Math.pow(s.x-o.x,2),.5),u=i.zoom(),d=l*Math.pow(2,u);t=e.extend({},t,{radius:d}),x=new a(t),_.forEach((function(t,e){var i=c.normalizeCoordinates(n(t,e));i.index=e,x.addPoint(i)})),b=null,h._handleZoom(i.zoom())}},this._handleZoom=function(t){var e=Math.floor(t);if(v&&e!==b){b=e;var n=x.points(e).map((function(t){return _[t.index]}));x.clusters(e).forEach((function(t){t.__cluster=!0,t.__data=[],t.obj.each((function(e){t.__data.push(_[e.index])})),n.push(t)})),w=!0,h.data(n)}},this.position=function(t){if(void 0===t)return h.style("position");var e=c.isFunction(t);return h.style("position",(function(n,i){return null!=n&&n.__cluster?n:e?t(n,i):t})),h.dataTime().modified(),h.modified(),h},this._updateRangeTree=function(){if(!(m.timestamp()>=h.dataTime().timestamp()&&m.timestamp()>=h.timestamp())){var t,e,n=h.style.get("radius"),o=h.style.get("stroke"),a=h.style.get("strokeWidth");e=h.position(),y=0,t=h.data().map((function(t,i){var r=e(t,i);return y=Math.max(y,n(t,i)+(o(t,i)?a(t,i):0)),[r.x,r.y]})),p=new d(t.length);var s,l=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=r(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}(t);try{for(l.s();!(s=l.n()).done;){var u=i(s.value,2),c=u[0],f=u[1];p.add(c,f)}}catch(t){l.e(t)}finally{l.f()}p.finish(),m.modified()}},this.pointSearch=function(t,e){var n,i,r,o,a,s,l=[],u=[],c=[],d=h.gcs(),f=h.style.get("fill"),m=h.style.get("stroke"),g=h.style.get("strokeWidth"),v=h.style.get("radius");return(r=h.data())&&r.length?(h._updateRangeTree(),o=h.layer().map(),a=o.gcsToDisplay(t,e),s=[o.displayToGcs({x:a.x-y,y:a.y-y},d),o.displayToGcs({x:a.x+y,y:a.y-y},d),o.displayToGcs({x:a.x-y,y:a.y+y},d),o.displayToGcs({x:a.x+y,y:a.y+y},d)],n={x:Math.min(s[0].x,s[1].x,s[2].x,s[3].x),y:Math.min(s[0].y,s[1].y,s[2].y,s[3].y)},i={x:Math.max(s[0].x,s[1].x,s[2].x,s[3].x),y:Math.max(s[0].y,s[1].y,s[2].y,s[3].y)},(l=p.range(n.x,n.y,i.x,i.y)).sort((function(t,e){return t-e})),l.forEach((function(t){var e=r[t],n=m(r[t],t);if(n||f(r[t],t)){var i,s,l,p,y=h.position()(e,t);l=v(r[t],t),(l+=n?g(r[t],t):0)&&(p=l*l,(i=(y=o.gcsToDisplay(y,d)).x-a.x)*i+(s=y.y-a.y)*s<=p&&(u.push(e),c.push(t)))}})),{found:u,index:c}):{found:[],index:[]}},this.polygonSearch=function(t,e,n){var i,r,o,a,s=h.gcs(),l=[],u=[],d={},f=h.layer().map(),m=h.data(),g=h.style.get("fill"),v=h.style.get("stroke"),x=h.style.get("strokeWidth"),_=h.style.get("radius");return t.outer||(t={outer:t,inner:[]}),t.outer.length<3||!m||!m.length?{found:[],index:[],extra:{}}:((e=e||{}).partial=e.partial||!1,(t={outer:f.gcsToDisplay(t.outer,n),inner:(t.inner||[]).map((function(t){return f.gcsToDisplay(t,n)}))}).outer.forEach((function(t){r||(r={x:t.x,y:t.y},o={x:t.x,y:t.y}),t.x<r.x&&(r.x=t.x),t.x>o.x&&(o.x=t.x),t.y<r.y&&(r.y=t.y),t.y>o.y&&(o.y=t.y)})),h._updateRangeTree(),a=[f.displayToGcs({x:r.x-y,y:r.y-y},s),f.displayToGcs({x:o.x+y,y:r.y-y},s),f.displayToGcs({x:o.x+y,y:o.y+y},s),f.displayToGcs({x:r.x-y,y:o.y+y},s)],r={x:Math.min(a[0].x,a[1].x,a[2].x,a[3].x),y:Math.min(a[0].y,a[1].y,a[2].y,a[3].y)},o={x:Math.max(a[0].x,a[1].x,a[2].x,a[3].x),y:Math.max(a[0].y,a[1].y,a[2].y,a[3].y)},(i=p.range(r.x,r.y,o.x,o.y)).sort((function(t,e){return t-e})),i.forEach((function(n){var i=m[n],r=v(m[n],n);if(r||g(m[n],n)){var o=h.position()(i,n),a=_(m[n],n);if(a+=r?x(m[n],n):0){o=f.gcsToDisplay(o,s);var p=c.distanceToPolygon2d(o,t);(p>=a||p>=0&&"center"===e.partial||p>=-a&&e.partial&&"center"!==e.partial)&&(l.push(i),u.push(n),d[n]={partial:p<a,distance:p})}}})),{found:l,index:u,extra:d})},this.data=function(t){return void 0===t?g():(w||(_=t),v&&!w?h._clusterData():g(t),w=!1,h)},this._init=function(t){t=t||{},f.call(h,t);var n=e.extend(!0,{},{radius:5,stroke:!0,strokeColor:{r:.851,g:.604,b:0},strokeWidth:1.25,strokeOpacity:1,fillColor:{r:1,g:.839,b:.439},fill:!0,fillOpacity:.8,position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t},origin:function(t){return t.length>=3?t.slice(0,3):[0,0,0]}},void 0===t.style?{}:t.style);return void 0!==t.position&&(n.position=t.position),h.style(n),n.position&&h.position(n.position),h.dataTime().modified(),h.geoOn(u.zoom,(function(t){h._handleZoom(t.zoomLevel)})),h},h};l.create=function(t,e){"use strict";return(e=e||{}).type="point",s.create(t,e)},l.capabilities={feature:"point",stroke:"point.stroke"},l.primitiveShapes={auto:"auto",sprite:"sprite",triangle:"triangle",square:"square"},a(l,s),t.exports=l},6645:function(t,e,n){var i=n(5616),r=n(4626),o=n(1275),a=n(5325),s=function(t){"use strict";if(!(this instanceof s))return new s(t);t=t||{},o.call(this,t);var e,r=n(642),l=this,u=this._init,c=this._exit,d=this.data,h=this.draw,f=this.modified,p=this.style,m=[];function g(t,e,n){var i=l.gcs(),r=l.layer().map().gcs();return t=t||l.data(),e=e||l.style.get("position"),n=n||l.style.get("polygon"),t.map((function(t,o){var s=n(t,o);if(s){var u,c,d,h,f,p,m,g,y,v;for(h=s.outer||(Array.isArray(s)?s:[]),u=new Array(h.length),f=0;f<h.length;f+=1)u[f]=e.call(l,h[f],f,t,o),p=u[f].x,m=u[f].y,f?(p<d.min.x&&(d.min.x=p),m<d.min.y&&(d.min.y=m),p>d.max.x&&(d.max.x=p),m>d.max.y&&(d.max.y=m)):d={min:{x:p,y:m},max:{x:p,y:m}};for(c=(s.inner||[]).map((function(n){h=n||[];var i=new Array(h.length);for(f=0;f<h.length;f+=1)i[f]=e.call(l,h[f],f,t,o);return i})),g=a.transformCoordinates(i,r,u),y=c.map((function(t){return a.transformCoordinates(i,r,t)})),f=0;f<g.length;f+=1)p=g[f].x,m=g[f].y,f?(p<v.min.x&&(v.min.x=p),m<v.min.y&&(v.min.y=m),p>v.max.x&&(v.max.x=p),m>v.max.y&&(v.max.y=m)):v={min:{x:p,y:m},max:{x:p,y:m}};return{outer:u,inner:c,range:d,mapouter:g,mapinner:y,maprange:v}}}))}function y(t){return r.isFunction(t)?function(e){return t(e[0],e[1],e[2],e[3])}:t}return this.featureType="polygon",this._subfeatureStyles={fillColor:!0,fillOpacity:!0,lineCap:!0,lineJoin:!0,strokeColor:!0,strokeOffset:!0,strokeOpacity:!0,strokeWidth:!0},this.data=function(t){var e=d(t);return void 0!==t&&(m=g(),l._checkForStroke()),e},this.polygonCoordinates=function(){return m},this.polygon=function(t){return void 0===t?l.style("polygon"):(l.style("polygon",t),l.dataTime().modified(),l.modified(),m=g(),l)},this.position=function(t){return void 0===t?l.style("position"):(l.style("position",t),l.dataTime().modified(),l.modified(),m=g(),l)},this.pointSearch=function(t,n){var i=[],o=[],s={},u=l.data(),c=l.layer().map();n=null===n?c.gcs():void 0===n?c.ingcs():n;var d=a.transformCoordinates(n,c.gcs(),t);(m.forEach((function(t,e){r.pointInPolygon(d,t.mapouter,t.mapinner,t.maprange)&&(o.push(e),s[e]=!0,i.push(u[e]))})),e)&&e.pointSearch(t).found.forEach((function(t){t.length&&4===t[0].length&&!s[t[0][3]]&&(o.push(t[0][3]),s[t[0][3]]=!0,i.push(u[t[0][3]]))}));return{index:o,found:i}},this.polygonSearch=function(t,n,i){var o,s,u=l.data(),c=[],d=[],h={},f=t,p={},g=l.layer().map();if(i=null===i?g.gcs():void 0===i?g.ingcs():i,t.outer||(t={outer:t,inner:[]}),!u||!u.length||t.outer.length<3)return{found:d,index:c,extra:h};if((n=n||{}).partial=n.partial||!1,(t={outer:a.transformCoordinates(i,g.gcs(),t.outer),inner:(t.inner||[]).map((function(t){return a.transformCoordinates(i,g.gcs(),t)}))}).outer.forEach((function(t){o||(o={x:t.x,y:t.y},s={x:t.x,y:t.y}),t.x<o.x&&(o.x=t.x),t.x>s.x&&(s.x=t.x),t.y<o.y&&(o.y=t.y),t.y>s.y&&(s.y=t.y)})),m.forEach((function(e,i){if(!(!e.mapouter.length||e.maprange&&(e.maprange.max.x<o.x||e.maprange.min.x>s.x||e.maprange.max.y<o.y||e.maprange.min.y>s.y))){for(var a,l,f=-1;f<e.mapinner.length&&!l;f+=1)for(var m=f<0?e.mapouter:e.mapinner[f],g=0,y=m.length,v=y-1;g<y;v=g,g+=1){var x=r.distanceToPolygon2d(m[g],t);if(x*r.distanceToPolygon2d(m[v],t)<0){l=!0;break}if(r.crossedLineSegmentPolygon2d(m[g],m[v],t)){l=!0;break}x>0&&(a=!0)}a||l||!r.pointInPolygon(t.outer[0],e.mapouter,e.mapinner,e.maprange)||(l=!0),(!n.partial&&a&&!l||n.partial&&(a||l))&&(c.push(i),d.push(u[i]),h[i]={partial:l},p[i]=!0)}})),e){var y=e.polygonSearch(f,n);y.found.forEach((function(t,e){t.length&&4===t[0].length&&(p[t[0][3]]||(c.push(t[0][3]),p[t[0][3]]=!0,d.push(u[t[0][3]]),h[y.index[e]]={partial:!1}),y.extra[y.index[e]].partial&&(h[t[0][3]].partial=!0))}))}return{found:d,index:c,extra:h}},this.style=function(t,e){var n=p.apply(l,arguments);return void 0===t||"string"==typeof t&&void 0===e||l._checkForStroke(),n},this.style.get=p.get,this._getLoopData=function(t,e,n){var i,r=[];for(i=0;i<n.length;i+=1)r.push([n[i],i,t,e]);return r},this._checkForStroke=function(){if(!1!==p("stroke")){if(l.layer()){e||(e=l.layer().createFeature("line",{selectionAPI:!1,gcs:l.gcs(),visible:l.visible(void 0,!0)}),l.dependentFeatures([e]));var t,n=l.style();if(r.isFunction(n.stroke)||!n.stroke){var i=l.style.get("stroke"),o=l.style.get("strokeOpacity");t=function(t){return i(t[2],t[3])?o(t[0],t[1],t[2],t[3]):0}}else t=y(n.strokeOpacity);e.style({antialiasing:y(n.antialiasing),closed:!0,lineCap:y(n.lineCap),lineJoin:y(n.lineJoin),miterLimit:y(n.miterLimit),strokeWidth:y(n.strokeWidth),strokeStyle:y(n.strokeStyle),strokeColor:y(n.strokeColor),strokeOffset:y(n.strokeOffset),strokeOpacity:t,uniformLine:y(n.uniformPolygon)});var a=l.data(),s=l.style("position");if(a!==e._lastData||s!==e._lastPosVal){var u,c,d,h=[],f=l.style.get("position"),m=l.style.get("polygon");for(u=0;u<a.length;u+=1)(c=m(a[u],u))&&(d=c.outer||(Array.isArray(c)?c:[])).length>=2&&(h.push(l._getLoopData(a[u],u,d)),c.inner&&c.inner.forEach((function(t){t.length>=2&&h.push(l._getLoopData(a[u],u,t))})));e.position((function(t,e,n,i){return f(t[0],t[1],t[2],t[3])})),e.data(h),e._lastData=a,e._lastPosVal=s}}}else e&&l.layer()&&(l.layer().deleteFeature(e),e=null,l.dependentFeatures([]))},this.draw=function(){var t=h();return e&&e.draw(),t},this.modified=function(){var t=f();return e&&e.modified(),t},this.rdpSimplifyData=function(t,e,n,i,o){var s=l.layer().map(),u=s.gcs(),c=l.gcs(),d=g(t,n,i);return void 0===e&&(e=.5*s.unitsPerPixel(s.zoom())),d=d.map((function(t){return{outer:a.transformCoordinates(c,u,t.outer),inner:t.inner.map((function(t){return a.transformCoordinates(c,u,t)}))}})),t=t.map((function(t,n){var i=d[n],o={};for(var s in t)!t.hasOwnProperty(s)||Array.isArray(t)&&s>=0&&s<t.length||(o[s]=t[s]);if(i&&i.outer.length>=3)if(o.inner=i.inner.filter((function(t){return t.length>=3})),o.outer=r.rdpLineSimplify(i.outer,e,!0,o.inner),o.outer.length>=3){var l=o.inner.slice();o.inner.map((function(t,n){l[n]=o.outer;var i=r.rdpLineSimplify(t,e,!0,l);return l[n]=i,i})).filter((function(t){return t.length>=3})),o.outer=a.transformCoordinates(u,c,o.outer),o.inner=o.inner.map((function(t){return a.transformCoordinates(u,c,t)}))}else o.outer=o.inner=[];else o.outer=[];return o})),o?t:(l.style("position",r.identityFunction),l.style("polygon",r.identityFunction),l.data(t),l)},this.mouseOverOrderClosestBorder=function(t){var e=t.feature.data(),n=t.feature.layer().map(),i=a.transformCoordinates(n.ingcs(),t.feature.gcs(),t.mouse.geo),o=t.feature.polygonCoordinates(),s={};t.over.index.forEach((function(t,e){var n,a=o[t];a.outer.forEach((function(t,e){var o=a.outer[(e+1)%a.outer.length],s=r.distance2dToLineSquared(i,t,o);(void 0===n||s<n)&&(n=s)})),a.inner.forEach((function(t){t.forEach((function(e,o){var a=t[(o+1)%t.length],s=r.distance2dToLineSquared(i,e,a);(void 0===n||s<n)&&(n=s)}))})),s[t]=n})),t.over.index.sort((function(t,e){return s[t]-s[e]})).reverse(),t.over.index.forEach((function(n,i){t.over.found[i]=e[n]}))},this.toPolygonList=function(t){var e=l.style.get("polygon"),n=l.style.get("position");return l.data().map((function(t,i){var r=e(t,i),o=r.outer||(Array.isArray(r)?r:[]);if(o.length<3)return[];var a=[o.map((function(e,r){var o=n(e,r,t,i);return[o.x,o.y]}))];return r.inner&&r.inner.forEach((function(e){a.push(e.map((function(e,r){var o=n(e,r,t,i);return[o.x,o.y]})))})),a}))},this.fromPolygonList=function(t,e){return l.style({position:function(t){return{x:t[0],y:t[1]}},polygon:function(t){return{outer:t[0],inner:t.slice(1)}}}),l.data(t),l},this._exit=function(){e&&l.layer()&&(l.layer().deleteFeature(e),e=null,l.dependentFeatures([])),c()},this._init=function(t){t=t||{},u.call(l,t);var e=i.extend({},{fill:!0,fillColor:{r:0,g:.5,b:.5},fillOpacity:1,stroke:!1,strokeWidth:1,strokeStyle:"solid",strokeColor:{r:0,g:1,b:1},strokeOpacity:1,polygon:r.identityFunction,position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t},origin:function(t){for(var e=0;e<t.length;e+=1)if(t[e].vertices.length>=3)return t[e].vertices.slice(0,3);return[0,0,0]}},void 0===t.style?{}:t.style);void 0!==t.polygon&&(e.polygon=t.polygon),void 0!==t.position&&(e.position=t.position),l.style(e),l._checkForStroke()},this};s.create=function(t,e){"use strict";return(e=e||{}).type="polygon",o.create(t,e)},s.capabilities={feature:"polygon"},r(s,o),t.exports=s},3842:function(t,e,n){var i=n(5616),r=n(4626),o=n(1275),a=function(t){"use strict";var e=n(5325),r=n(642);if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var s,l,u=this,c=this._init,d=t.nearestPixel,h=0,f=[],p=[];return this.featureType="quad",this._objectListStart=function(t){i.each(t,(function(t,e){e.used=!1}))},this._objectListGet=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].entry===e)return t[n].used=!0,t[n].value},this._objectListAdd=function(t,e,n){t.push({entry:e,value:n,used:!0})},this._objectListEnd=function(t){for(var e=t.length-1;e>=0;e-=1)t[e].used||t.splice(e,1)},this.pointSearch=function(t,n){var o,a,s=[],c=[],d={},h=[{},{},{},{}],f=[{},{},{},{}],p=[0,1,2,0],m=[1,2,3,1],g=u.data(),y=u.layer().map();return n=null===n?y.gcs():void 0===n?y.ingcs():n,t=e.transformCoordinates(n,y.gcs(),t),l||u._generateQuads(),i.each([l.clrQuads,l.imgQuads,l.vidQuads],(function(e,n){n.forEach((function(e,n){for(o=0;o<p.length;o+=1)h[o].x=e.pos[3*p[o]],h[o].y=e.pos[3*p[o]+1],h[o].z=e.pos[3*p[o]+2],f[o].x=e.pos[3*m[o]],f[o].y=e.pos[3*m[o]+1],f[o].z=e.pos[3*m[o]+2];(r.pointInPolygon(t,h)||r.pointInPolygon(t,f))&&(c.push(e.idx),s.push(g[e.idx]),!(a=r.pointToTriangleBasis2d(t,h[0],h[1],h[2]))||a.x+a.y>1?(a=r.pointToTriangleBasis2d(t,f[2],f[1],f[0]))&&(a.x=1-a.x):a.y=1-a.y,a&&(d[e.idx]={basis:a,_quad:e}))}))})),{index:c,found:s,extra:d}},this.position=function(t){return void 0===t?u.style("position"):(u.style("position",r.ensureFunction(t)),u.dataTime().modified(),u.modified(),u)},this._positionToQuad=function(t,n,r,o){var a=t.call(u,r,o);if(a.ll&&a.ur||a.ul&&a.lr){var s=u.gcs(),l=u.layer().map().gcs(),c={};return i.each(["ll","lr","ul","ur"],(function(t,i){void 0!==a[i]&&(c[i]={},void 0===a[i].x?c[i]=[a[i][0],a[i][1],a[i][2]]:c[i]=[a[i].x,a[i].y,a[i].z],void 0===c[i][2]&&(c[i][2]=n.call(u,r,o)),s!==l&&!1!==s&&(c[i]=e.transformCoordinates(s,l,c[i])))})),c.ll=c.ll||[c.ul[0],c.lr[1],(c.ul[2]+c.lr[2])/2],c.lr=c.lr||[c.ur[0],c.ll[1],(c.ur[2]+c.ll[2])/2],c.ur=c.ur||[c.lr[0],c.ul[1],(c.lr[2]+c.ul[2])/2],c.ul=c.ul||[c.ll[0],c.ur[1],(c.ll[2]+c.ur[2])/2],c}},this._checkQuadUpdate=function(t,e){},this._generateQuads=function(){var t,e,n=u.position(),o=u.style.get("image"),a=u.style.get("video"),c=u.style.get("delayRenderWhenSeeking"),d=u.style.get("color"),m=u.style.get("depth"),g=u.style.get("opacity"),y=u.style.get("drawOnAsyncResourceLoaded"),v=u.style.get("previewColor"),x=u.style.get("previewImage"),_=u.data(),b=[],w=[],M=[],A=[0,0,0];return u._objectListStart(f),u._objectListStart(p),i.each(_,(function(l,_){if(_._cachedQuad)return e=_._cachedQuad.diag2,(void 0===t||_._cachedQuad.diag2&&_._cachedQuad.diag2<t)&&(A=_._cachedQuad.ll,t=_._cachedQuad.diag2),_._cachedQuad.clrquad&&b.push(_._cachedQuad.clrquad),_._cachedQuad.imgquad&&(_._cachedQuad.imageEntry&&u._objectListGet(f,_._cachedQuad.imageEntry),w.push(_._cachedQuad.imgquad)),void(_._cachedQuad.vidquad&&(_._cachedQuad.videoEntry&&u._objectListGet(p,_._cachedQuad.videoEntry),M.push(_._cachedQuad.vidquad)));var T,C,E,k,S,O,P,L,R,I,D,F,j={};if(P=u._positionToQuad(n,m,_,l),I=g.call(u,_,l),void 0!==P&&I&&!(I<0)){if(e=Math.pow(P.ll[0]-P.ur[0],2)+Math.pow(P.ll[1]-P.ur[1],2)+Math.pow(P.ll[2]-P.ur[0],2)+Math.pow(P.lr[0]-P.ur[0],2)+Math.pow(P.lr[1]-P.ur[1],2)+Math.pow(P.lr[2]-P.ur[0],2),j.diag2=e,j.ll=P.ll,(void 0===t||e&&e<t)&&(A=P.ll,t=e),P=[P.ll[0],P.ll[1],P.ll[2],P.lr[0],P.lr[1],P.lr[2],P.ul[0],P.ul[1],P.ul[2],P.ur[0],P.ur[1],P.ur[2]],T={idx:l,pos:P,opacity:I,zOffset:_.zOffset},_.reference&&(T.reference=_.reference),_.crop&&(T.crop=_.crop),R=(L=o.call(u,_,l))?null:a.call(u,_,l),L){if(j.imageEntry=L,void 0===(C=u._objectListGet(f,L))&&(L instanceof Image||L instanceof HTMLCanvasElement?C=L:(C=new Image).src=L,u._objectListAdd(f,L,C)),r.isReadyImage(C)||C instanceof HTMLCanvasElement)T.image=C;else if(D=void 0,(F=x.call(u,_,l))&&r.isReadyImage(F)?T.image=F:(D=v.call(u,_,l),T.color=r.convertColor(D),T.color&&void 0!==T.color.r&&void 0!==T.color.g&&void 0!==T.color.b?(b.push(T),j.clrquad=T):D=void 0),y.call(u,_,l))O=r.isReadyImage(C,!0)?null:i.Deferred(),k=C.onload,C.onload=function(){if(void 0!==D&&(i.inArray(T,b)>=0&&b.splice(i.inArray(T,b),1),delete j.clrquad),T.image=C,u.dataTime().modified(),u.modified(),u._update(),u.layer().draw(),O&&O.resolve(),k)return k.apply(u,arguments)},S=C.onerror,C.onerror=function(){if(O&&O.reject(),S)return S.apply(u,arguments)},O&&u.layer().addPromise(O.promise());else if(void 0===D&&!T.image)return;w.push(T),j.imgquad=T}else if(R){if(j.videoEntry=R,void 0===(E=u._objectListGet(p,R))&&(R instanceof HTMLVideoElement?E=R:(E=document.createElement("video")).src=R,u._objectListAdd(p,R,E),i(E).off(".geojsvideo").on("seeking.geojsvideo canplay.geojsvideo pause.geojsvideo playing.geojsvideo",(function(t){u._checkQuadUpdate(T,t)}))),T.delayRenderWhenSeeking=c.call(u,_,l),void 0===T.delayRenderWhenSeeking&&(T.delayRenderWhenSeeking=!0),r.isReadyVideo(E))T.video=E;else if(D=v.call(u,_,l),T.color=r.convertColor(D),T.color&&void 0!==T.color.r&&void 0!==T.color.g&&void 0!==T.color.b?(b.push(T),j.clrquad=T):D=void 0,y.call(u,_,l))O=r.isReadyVideo(E,!0)?null:i.Deferred(),k=E.onloadeddata,E.onloadeddata=function(){if(void 0!==D&&(i.inArray(T,b)>=0&&b.splice(i.inArray(T,b),1),delete j.clrquad),T.video=E,u.dataTime().modified(),u.modified(),u._update(),u.layer().draw(),O&&O.resolve(),k)return k.apply(u,arguments)},S=E.onerror,E.onerror=function(){if(O&&O.reject(),S)return S.apply(u,arguments)},O&&u.layer().addPromise(O.promise());else if(void 0===D&&!T.video)return;M.push(T),j.vidquad=T}else{if(T.color=r.convertColor(d.call(u,_,l)),!T.color||void 0===T.color.r||void 0===T.color.g||void 0===T.color.b)return;b.push(T),j.clrquad=T}j.clrquad&&(h+=1,j.clrquad.quadId=h),j.imgquad&&(h+=1,j.imgquad.quadId=h),j.vidquad&&(h+=1,j.vidquad.quadId=h),!1!==s&&(_._cachedQuad=j)}})),u._objectListEnd(f),u._objectListEnd(p),l={clrQuads:b,imgQuads:w,vidQuads:M,origin:new Float32Array(A)}},this.cacheUpdate=function(t){return null==t?i.each(u.data(),(function(t,e){e._cachedQuad&&delete e._cachedQuad})):(isFinite(t)&&(t=u.data()[t]),t._cachedQuad&&delete t._cachedQuad),u.modified(),u},this.video=function(t){var e,n;return isFinite(t)&&(t=u.data()[t]),t._cachedQuad?e=(t._cachedQuad.vidquad||{}).video:(l||u._generateQuads(),(n=u.data().indexOf(t))>=0&&(e=u._objectListGet(p,u.style.get("video")(t,n)))),e instanceof HTMLVideoElement?e:null},this.nearestPixel=function(t){return void 0===t?d:(d=t,u.modified(),u)},this._init=function(t){t=t||{},c.call(u,t),s=!1!==t.cacheQuads;var e=i.extend({},{color:{r:1,g:1,b:1},opacity:1,depth:0,drawOnAsyncResourceLoaded:!0,previewColor:null,previewImage:null,image:function(t){return t.image},video:function(t){return t.video},position:r.identityFunction},void 0===t.style?{}:t.style);void 0!==t.position&&(e.position=r.ensureFunction(t.position)),u.style(e),u.dataTime().modified()},u};a.create=function(t,e){"use strict";return(e=e||{}).type="quad",o.create(t,e)},a.capabilities={color:"quad.color",image:"quad.image",imageCrop:"quad.imageCrop",imageFixedScale:"quad.imageFixedScale",imageFull:"quad.imageFull",canvas:"quad.canvas",video:"quad.video"},r(a,o),t.exports=a},1098:function(t,e,n){var i=n(5616),r=n(8695),o={dom:{}},a={},s={},l={},u={},c={},d={},h={},f={},p={registerFileReader:function(t,e){d[t]=e},createFileReader:function(t,e){return d.hasOwnProperty(t)?d[t](e):null},registerRenderer:function(t,e){l[t]=e},createRenderer:function(t,e,n,i){if(l.hasOwnProperty(t)){var r=l[t]({layer:e,canvas:n,options:i});return r._init(),r}return null},checkRenderer:function(t,e){if(null===t)return t;if(l.hasOwnProperty(t)){var n=l[t];if(!n.supported||n.supported())return n.apiname||t;if(!n.fallback||e)return!1;var i=p.checkRenderer(n.fallback(),!0);return!1!==i&&console.warn(t+" renderer is unavailable, using "+i+" renderer instead"),i}return!1},rendererForFeatures:function(t){var e,n,i,r,o,a,s=["webgl","canvas","svg","vtkjs",null];for(n=0;n<s.length;n+=1)if(e=s[n],!1!==p.checkRenderer(e,!0)){if(!t)return e;if(u[e]){for(a=!0,r=0;r<t.length;r+=1){if(o=null,(i=t[r]).indexOf(".")>=0&&(o=i,i=i.substr(0,i.indexOf("."))),void 0===u[e][i]){a=!1;break}if(o&&c[e][i]&&!c[e][i][o]){a=!1;break}}if(a)return e}}return console.warn('There is no renderer available for the feature list "'+(t||[]).join(", ")+'".'),!1},registerFeature:function(t,e,n,i){t in u||(u[t]={},c[t]={});var r=u[t][e];return r&&console.warn("The "+t+"."+e+" feature is already registered"),u[t][e]=n,c[t][e]=i,r},createFeature:function(t,e,n,r){var o=n.api(),a={layer:e,renderer:n};if(o in u&&t in u[o]){void 0!==r&&i.extend(!0,a,r);var s=u[o][t](a);return void 0===e.gcs&&(e.gcs=function(){return e.map().gcs()}),s}return null},registerLayerAdjustment:function(t,e,n){t in h||(h[t]={});var i=h[t][e];return i&&console.warn("The "+t+"."+e+" layer adjustment is already registered"),h[t][e]=n,i},adjustLayerForRenderer:function(t,e){var n=e.rendererName();n&&h&&h[n]&&h[n][t]&&h[n][t].apply(e)},registerLayer:function(t,e,n){a[t]=e,s[t]=n},createLayer:function(t,e,n){var r={map:e},o=null;if(t in a){if(n.renderer||n.features||!s||(r.features=s[t]),void 0!==n){var l=n.data;delete n.data,i.extend(!0,r,n),l&&(r.data=l)}return(o=a[t](r)).layerName=t,o._init(),o}return null},registerWidget:function(t,e,n){t in o||(o[t]={});var i=o[t][e];return i&&console.warn("The "+t+"."+e+" widget is already registered"),o[t][e]=n,i},createWidget:function(t,e,n){var r={layer:e};if(t in o.dom)return void 0!==n&&i.extend(!0,r,n),o.dom[t](r);throw new Error("Cannot create unknown widget "+t)},registerAnnotation:function(t,e,n){var i=f[t];return i&&console.warn("The "+t+" annotation is already registered"),f[t]={func:e,features:n||{}},r["annotation_"+t]="geo_annotation_"+t,i},createAnnotation:function(t,e){if(f[t])return f[t].func(e);console.warn("The "+t+" annotation is not registered")},listAnnotations:function(){return Object.keys(f)},featuresForAnnotations:function(t){var e=[];return(Array.isArray(t)?t:Object.keys(t)).forEach((function(n){f[n]&&Object.keys(f[n].features).forEach((function(r){Array.isArray(t)||!0===t[n]||!Array.isArray(f[n].features[r])?e.push(r):t[n].forEach((function(t){i.inArray(t,f[n].features[r])>=0&&e.push(r)}))}))})),e},rendererForAnnotations:function(t){return p.rendererForFeatures(p.featuresForAnnotations(t))}};p.registries={annotations:f,features:u,featureCapabilities:c,fileReaders:d,layers:a,renderers:l,widgets:o},t.exports=p},2274:function(t,e,n){var i=n(4626),r=n(1338),o=function(t){"use strict";if(!(this instanceof o))return new o(t);r.call(this);var e=this,n=0,i=0,a=void 0===(t=t||{}).layer?null:t.layer,s=void 0===t.canvas?null:t.canvas,l=!1;return this.layer=function(){return a},this.canvas=function(t){return void 0===t?s:(s=t,e.modified(),e)},this.map=function(){return a?a.map():null},this.initialized=function(t){return void 0===t?l:(l=t,e)},this.api=function(){throw new Error("Should be implemented by derived classes")},this.width=function(){return n},this.height=function(){return i},this._setWidthHeight=function(t,r){return n=t,i=r,e},this._init=function(){return e},this._resize=function(t,n,i,r){return e._setWidthHeight(i,r),e},this._render=function(){return e},this};i(o,r),t.exports=o},5402:function(t,e,n){var i=n(4626),r=n(1338),o=function(t){"use strict";if(!(this instanceof o))return new o;r.call(this,t);var e=this,n=null,i=[],a=this._exit,s=this.geoTrigger,l=this.addPromise,u=this.removePromise;return this.addPromise=function(t){return n&&n.addPromise(t),l(t),e},this.removePromise=function(t){return n&&n.removePromise(t),u(t),e},this.parent=function(t){return void 0===t?n:(n=t,e)},this.addChild=function(t){return Array.isArray(t)?(t.forEach(e.addChild),e):(t.parent(e),i.push(t),e)},this.removeChild=function(t){return Array.isArray(t)?(t.forEach(e.removeChild),e):(i=i.filter((function(e){return e!==t})),e)},this.children=function(){return i.slice()},this.draw=function(t){return e.children().forEach((function(e){e.draw(t)})),e},this.geoTrigger=function(t,r,o){var a;return a=(r=r||{}).geo||{},r.geo=a,a.stopPropagation?e:!o&&n&&a._triggeredBy!==n?(a._triggeredBy=e,n.geoTrigger(t,r),e):(s.call(e,t,r),a.stopPropagation||i.forEach((function(n){n.geoTrigger&&(a._triggeredBy=e,n.geoTrigger(t,r))})),e)},this._exit=function(){i=[],n=null,a()},this};i(o,r),t.exports=o},9079:function(t){t.exports="387c75b2969cf810edc226d9c92cc23acbd20c81"},3832:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(3187),a=function(t){"use strict";var e=this;return this instanceof a?(o.call(this,t),this.select=function(){var t=e.renderer(),n={},i=e.nodeFeature(),r=e.linkFeatures();return n.nodes=t.select(i._svgid()),n.links=r.map((function(e){return t.select(e._svgid())})),n},this):new a(t)};i(a,o),r("svg","graph",a),t.exports=a},6488:function(t,e,n){n(6409).svg={rescale:n(4765)},t.exports={graphFeature:n(3832),lineFeature:n(9456),object:n(5005),pathFeature:n(9927),pointFeature:n(2602),quadFeature:n(4087),renderer:n(2493),tileLayer:n(4061),trackFeature:n(2037),uniqueID:n(7376),vectorFeature:n(5747)}},9456:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(9281),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(2493).d3,i=n(5005),r=n(77),s=n(642);t=t||{},o.call(this,t),i.call(this);var l=this,u=this._init,c=r(),d=0,h=this._update;return this._init=function(t){return u.call(l,t),l},this._build=function(){var t,n,i=l.data()||[],r=l.style(),o=l.renderer(),a=l.position();for(h.call(l),r.fill=function(){return!1},i.forEach((function(n,i){var u,c,d=l.line()(n,i),h={};function f(t){return s.isFunction(t)?function(){return t(d[0],0,n,i)}:t}for(c in r)r.hasOwnProperty(c)&&(h[c]=f(r[c]));t=e.line().x((function(t){return l.featureGcsToDisplay(t).x})).y((function(t){return l.featureGcsToDisplay(t).y})).curve(l.style.get("closed")(n,i)&&d.length>2?e.curveLinearClosed:e.curveLinear),u={data:[d.map((function(t,e){return a(t,e,n,i)}))],append:"path",attributes:{d:t},id:l._svgid()+i,classes:["svgLineFeature","svgSubLine-"+i],visible:l.visible,style:h},o._drawFeatures(u)})),n=i.length;n<d;n+=1)o._removeFeature(l._svgid()+n);return d=i.length,c.modified(),l.updateTime().modified(),l},this._update=function(){return h.call(l),l.timestamp()>=c.timestamp()&&l._build(),l},this._init(t),this};i(a,o);var s={};s[o.capabilities.basic]=!0,s[o.capabilities.multicolor]=!1,r("svg","line",a,s),t.exports=a},5005:function(t,e,n){var i=function(t){"use strict";var e=n(1338),r=n(7376);if(!(this instanceof e))return new i(t);var o="svg-"+r(),a=this._exit,s=this,l=this.draw;return this._svgid=function(){return o},this.select=function(){return s.renderer().select(s._svgid())},this.draw=function(){return s.ready&&(s._update(),l()),s},this._exit=function(){s.renderer()._removeFeature(s._svgid()),a()},this};t.exports=i},9927:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(2266),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(5616),i=n(5005),r=n(77);t=t||{},o.call(this,t),i.call(this);var s=this,l=r(),u=this._update,c={style:{}};return this._build=function(){var t,n,i=s.data()||[],r=s.style.get(),o=s.style.get("position");return u.call(s),n=function(t){return"M"+t.source.x+","+t.source.y+"C"+t.source.x+","+(t.source.y+t.target.y)/2+" "+t.target.x+","+(t.source.y+t.target.y)/2+" "+t.target.x+","+t.target.y},t=[],i.forEach((function(e,n){var r,a;n<i.length-1&&(r=o(e,n),a=o(i[n+1],n+1),t.push({source:s.featureGcsToDisplay(r),target:s.featureGcsToDisplay(a)}))})),c.data=t,c.attributes={d:n},c.id=s._svgid(),c.append="path",c.classes=["svgPathFeature"],c.style=e.extend({fill:function(){return!1},fillColor:{r:0,g:0,b:0}},r),c.visible=s.visible,s.renderer()._drawFeatures(c),l.modified(),s.updateTime().modified(),s},this._update=function(){return u.call(s),s.dataTime().timestamp()>=l.timestamp()&&s._build(),s},this._init(t),this};i(a,o),r("svg","path",a),t.exports=a},2602:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(7541),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(5005),i=n(77);t=t||{},o.call(this,t),e.call(this);var r=this,s=this._init,l=this._update,u=i(),c={};return this._init=function(t){return s.call(r,t),r},this._build=function(){var t=r.data(),e=r.style.get(),n=r.renderer(),i=r.position();return l.call(r),t||(t=[]),c.id=r._svgid(),c.data=t,c.append="circle",c.attributes={r:n._convertScale(e.radius),cx:function(t){return r.featureGcsToDisplay(i(t)).x},cy:function(t){return r.featureGcsToDisplay(i(t)).y}},c.style=e,c.classes=["svgPointFeature"],c.visible=r.visible,r.renderer()._drawFeatures(c),u.modified(),r.updateTime().modified(),r},this._update=function(){return l.call(r),r.timestamp()>=u.timestamp()&&r._build(),r},this._init(t),this};i(a,o);var s={};s[o.capabilities.stroke]=!0,r("svg","point",a,s),t.exports=a},4087:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(3842),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(5616),i=n(2493).d3,r=n(5005);o.call(this,t),r.call(this);var s,l=this,u=this._exit,c=this._init,d=this._update;return this._build=function(){if(this.position()){var t=l.renderer(),n=t.layer().map();s=l._generateQuads();var r=[];e.each(s.clrQuads,(function(t,e){r.push({type:"clr",quad:e,zIndex:e.pos[2]})})),e.each(s.imgQuads,(function(t,e){e.image&&r.push({type:"img",quad:e,zIndex:e.pos[2]})}));var o={id:l._svgid(),data:r,dataIndex:function(t){return t.quad.quadId},append:function(t){var e=this.namespaceURI,n="clr"===t.type?"polygon":"image";return e?document.createElementNS(e,n):document.createElement(n)},attributes:{fill:function(t){if("clr"===t.type)return i.rgb(255*t.quad.color.r,255*t.quad.color.g,255*t.quad.color.b);1!==t.quad.opacity&&i.select(this).style("opacity",t.quad.opacity)},height:function(t){return"clr"===t.type?void 0:1},points:function(e){if("clr"===e.type&&!e.points){var i,r=[];for(i=0;i<e.quad.pos.length;i+=3){var o={x:e.quad.pos[i],y:e.quad.pos[i+1],z:e.quad.pos[i+2]};o=n.gcsToDisplay(o,null),o=t.baseToLocal(o),r.push(o.x+","+o.y)}e.points=r[0]+" "+r[1]+" "+r[3]+" "+r[2]}return"clr"===e.type?e.points:void 0},preserveAspectRatio:function(t){return"clr"===t.type?void 0:"none"},reference:function(t){return t.quad.reference},stroke:!1,transform:function(e){if("img"===e.type&&e.quad.image&&!e.svgTransform){var i,r,o,a,s=[],l=-1,u=e.quad.image.width,c=e.quad.image.height;for(o=0;o<e.quad.pos.length;o+=3){var d={x:e.quad.pos[o],y:e.quad.pos[o+1],z:e.quad.pos[o+2]};d=n.gcsToDisplay(d,null),d=t.baseToLocal(d),s.push(d)}for(o=0;o<4;o+=1)(i=Math.abs(s[(o+1)%4].x*(s[(o+2)%4].y-s[(o+3)%4].y)+s[(o+2)%4].x*(s[(o+3)%4].y-s[(o+1)%4].y)+s[(o+3)%4].x*(s[(o+1)%4].y-s[(o+2)%4].y))/2)>l&&(l=i,r=o);e.svgTransform=[3===r||2===r?s[1].x-s[0].x:s[3].x-s[2].x,3===r||2===r?s[1].y-s[0].y:s[3].y-s[2].y,0===r||2===r?s[1].x-s[3].x:s[0].x-s[2].x,0===r||2===r?s[1].y-s[3].y:s[0].y-s[2].y,2===r?s[3].x+s[0].x-s[1].x:s[2].x,2===r?s[3].y+s[0].y-s[1].y:s[2].y],Math.abs(e.svgTransform[1]/u)<1e-6&&Math.abs(e.svgTransform[2]/c)<1e-6&&(a=e.svgTransform[0]/u,e.svgTransform[4]=Math.round(e.svgTransform[4]/a)*a,a=e.svgTransform[3]/c,e.svgTransform[5]=Math.round(e.svgTransform[5]/a)*a)}return"img"===e.type&&e.quad.image?"matrix("+e.svgTransform.join(" ")+")":void 0},width:function(t){return"clr"===t.type?void 0:1},x:function(t){return"clr"===t.type?void 0:0},"xlink:href":function(t){return"clr"!==t.type&&t.quad.image?t.quad.image.src:void 0},y:function(t){return"clr"===t.type?void 0:0}},style:{fillOpacity:function(t){return"clr"===t.type?t.quad.opacity:void 0}},onlyRenderNew:!this.style("previewColor")&&!this.style("previewImage"),sortByZ:!0,visible:l.visible,classes:["svgQuadFeature"]};t._drawFeatures(o),l.buildTime().modified()}},this._update=function(){return d.call(l),(l.buildTime().timestamp()<=l.dataTime().timestamp()||l.buildTime().timestamp()<l.timestamp())&&l._build(),l},this._init=function(){c.call(l,t)},this._exit=function(){u.call(l)},l._init(t),this};i(a,o);var s={};s[o.capabilities.color]=!0,s[o.capabilities.image]=!0,s[o.capabilities.imageCrop]=!1,s[o.capabilities.imageFixedScale]=!1,s[o.capabilities.imageFull]=!1,s[o.capabilities.canvas]=!1,s[o.capabilities.video]=!1,r("svg","quad",a,s),t.exports=a},4765:function(t){t.exports="geo_svg_rescale"},2493:function(t,e,n){var i=n(4626),r=n(1098).registerRenderer,o=n(2274),a=function(t){"use strict";var e=a.d3,i=n(5005),r=n(642),s=n(6409),l=n(4765);if(!(this instanceof a))return new a(t);o.call(this,t);var u=this._exit;i.call(this,t),t=t||{};var c=this,d=null,h={},f=null,p=null,m=1,g={dx:0,dy:0,rx:0,ry:0,rotation:0},y={},v={},x=null,_=null;function b(t){return t?x.select(".group-"+t):x.select(".group-"+c._svgid())}function w(){var t=c.layer().map(),e=t.size().width,n=t.size().height;if(!e||!n)throw new Error("Map layer has size 0");c._setWidthHeight(e,n),p=Math.pow(e*e+n*n,.5),f={upperLeft:t.displayToGcs({x:0,y:0},null),lowerRight:t.displayToGcs({x:e,y:n},null),center:t.displayToGcs({x:e/2,y:n/2},null)}}return this._convertColor=function(t,n){return t=r.ensureFunction(t),n=n||function(){return!0},function(){var i="none";return n.apply(c,arguments)&&(i=t.apply(c,arguments)).hasOwnProperty("r")&&i.hasOwnProperty("g")&&i.hasOwnProperty("b")&&(i=e.rgb(255*i.r,255*i.g,255*i.b)),i}},this._convertScale=function(t){return t=r.ensureFunction(t),function(){return t.apply(c,arguments)/m}},this._setTransform=function(){if(f||w(),d){var t,e,n,i,r,o,a=c.layer().map(),s=a.gcsToDisplay(f.upperLeft,null),l=a.gcsToDisplay(f.lowerRight,null),u=a.gcsToDisplay(f.center,null),h=b();n=Math.sqrt(Math.pow(l.y-s.y,2)+Math.pow(l.x-s.x,2))/p,i=a.rotation(),r=-c.width()/2,o=-c.height()/2,t=n*r+u.x,e=n*o+u.y,i||(t=Math.round(t),e=Math.round(e));var y="matrix("+[n,0,0,n,t,e].join()+")";i&&(y+=" rotate("+[180*i/Math.PI,-r,-o].join()+")"),h.attr("transform",y),m=n,g.dx=t,g.dy=e,g.rx=r,g.ry=o,g.rotation=i}},this.baseToLocal=function(t){if(t={x:(t.x-g.dx)/m,y:(t.y-g.dy)/m},g.rotation){var e=Math.sin(-g.rotation),n=Math.cos(-g.rotation),i=t.x+g.rx,r=t.y+g.ry;t={x:i*n-r*e-g.rx,y:i*e+r*n-g.ry}}return t},this.localToBase=function(t){if(g.rotation){var e=Math.sin(g.rotation),n=Math.cos(g.rotation),i=t.x+g.rx,r=t.y+g.ry;t={x:i*n-r*e-g.rx,y:i*e+r*n-g.ry}}return t={x:t.x*m+g.dx,y:t.y*m+g.dy}},this._init=function(t){if(!c.canvas()){var n;t.widget=t.widget||!1,(x="d3Parent"in t?e.select(t.d3Parent).append("svg"):e.select(c.layer().node().get(0)).append("svg")).attr("display","block");var i=(_=x.append("defs")).append("filter").attr("id","geo-highlight").attr("x","-100%").attr("y","-100%").attr("width","300%").attr("height","300%");i.append("feMorphology").attr("operator","dilate").attr("radius",2).attr("in","SourceAlpha").attr("result","dilateOut"),i.append("feGaussianBlur").attr("stdDeviation",5).attr("in","dilateOut").attr("result","blurOut"),i.append("feColorMatrix").attr("type","matrix").attr("values","-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0").attr("in","blurOut").attr("result","invertOut"),i.append("feBlend").attr("in","SourceGraphic").attr("in2","invertOut").attr("mode","normal"),t.widget||(n=t.canvas||x.append("g")),(i=_.append("filter").attr("id","geo-blur").attr("x","-100%").attr("y","-100%").attr("width","300%").attr("height","300%")).append("feGaussianBlur").attr("stdDeviation",20).attr("in","SourceGraphic"),d=c.layer().sticky(),x.attr("class",c._svgid()),x.attr("width",c.layer().node().width()),x.attr("height",c.layer().node().height()),t.widget?c.canvas(x):(n.attr("class","group-"+c._svgid()),c.canvas(n))}return c._setTransform(),c},this.api=function(){return a.apiname},this.scaleFactor=function(){return m},this._resize=function(t,e,n,i){return f||w(),x.attr("width",n),x.attr("height",i),c._setTransform(),c._setWidthHeight(n,i),c.layer().geoTrigger(l,{scale:m},!0),c},this._exit=function(){h={},c.canvas().remove(),x.remove(),x=void 0,_.remove(),_=void 0,y={},v={},u()},this._definitions=function(){return _},this._drawFeatures=function(t){return h[t.id]={data:t.data,index:t.dataIndex,style:t.style,visible:t.visible,attributes:t.attributes,classes:t.classes,append:t.append,onlyRenderNew:t.onlyRenderNew,sortByZ:t.sortByZ,parentId:t.parentId},c.__render(t.id,t.parentId)},this.__render=function(t,e){var n;if(void 0===t){for(n in h)h.hasOwnProperty(n)&&c.__render(n);return c}return e?c._renderFeature(t,e):(y[t]=!0,c.layer().map().scheduleAnimationFrame(c._renderFrame)),c},this._renderFrame=function(){var t;for(t in v)c.select(t).remove(),_.selectAll("."+t).remove();v={};var e=y;for(t in y={},e)e.hasOwnProperty(t)&&c._renderFeature(t)},this._renderFeature=function(t,e){if(!h[t])return c;var n,i,r=h[t].data,o=h[t].index,a=h[t].style,s=h[t].visible,l=h[t].attributes,u=h[t].classes,d=h[t].append,f=c.select(t,e).data(r,o);return n=f.enter().append(d),f.exit().remove(),function(t,e){var n;for(n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}(i=n,l),i.attr("class",u.concat([t]).join(" ")),function(t,e){var n,i,r;function o(){return e.fill.apply(c,arguments)?null:"none"}function a(){return e.stroke.apply(c,arguments)?null:"none"}for(n in e)e.hasOwnProperty(n)&&(r=null,i=null,"strokeColor"===n?(i="stroke",r=c._convertColor(e[n],e.stroke)):"stroke"===n&&e[n]&&!e.hasOwnProperty("strokeColor")?(i="stroke",r=a):"strokeWidth"===n?(i="stroke-width",r=c._convertScale(e[n])):"strokeOpacity"===n?(i="stroke-opacity",r=e[n]):"fillColor"===n?(i="fill",r=c._convertColor(e[n],e.fill)):"fill"!==n||e.hasOwnProperty("fillColor")?"fillOpacity"===n?(i="fill-opacity",r=e[n]):"lineCap"===n?(i="stroke-linecap",r=e[n]):"lineJoin"===n?(i="stroke-linejoin",r=e[n]):"miterLimit"===n&&(i="stroke-miterlimit",r=e[n]):(i="fill",r=o),i&&t.style(i,r))}(i,a),s&&i.style("visibility",s()?"visible":"hidden"),n.size()&&h[t].sortByZ&&f.sort((function(t,e){return(t.zIndex||0)-(e.zIndex||0)})),c},this.select=function(t,e){return b(e).selectAll("."+t)},this._removeFeature=function(t){return v[t]=!0,c.layer().map().scheduleAnimationFrame(c._renderFrame),delete h[t],y[t]&&delete y[t],c},this.draw=function(){},this.layer().geoOn(s.pan,c._setTransform),this.layer().geoOn(s.rotate,c._setTransform),this.layer().geoOn(s.zoom,(function(){c._setTransform(),c.__render(),c.layer().geoTrigger(l,{scale:m},!0)})),this.layer().geoOn(s.resize,(function(t){c._resize(t.x,t.y,t.width,t.height)})),this._init(t),this};a.apiname="svg",i(a,o),r("svg",a),r("d3",a),a.supported=function(){delete a.d3;try{a.d3=n(3893),a.d3&&a.d3.rgb||(a.d3=void 0)}catch(t){}return void 0!==a.d3},a.fallback=function(){return null},a.supported(),t.exports=a},4061:function(t,e,n){var i=function(){"use strict";var t,e=this,n=this._init,i=this._exit,r=this._update,o=0,a=[];this._drawTile=function(n){if(t){var i=e._tileBounds(n),r=n.index.level||0,s=e._tileOffset(r),l={};l.ul=e.fromLocal(e.fromLevel({x:i.left-s.x,y:i.top-s.y},r),0),l.ll=e.fromLocal(e.fromLevel({x:i.left-s.x,y:i.bottom-s.y},r),0),l.ur=e.fromLocal(e.fromLevel({x:i.right-s.x,y:i.top-s.y},r),0),l.lr=e.fromLocal(e.fromLevel({x:i.right-s.x,y:i.bottom-s.y},r),0),l.ul.z=l.ll.z=l.ur.z=l.lr.z=r,o+=1,l.id=o,n.quadId=l.id,l.image=n.image,l.reference=n.toString(),a.push(l),t.data(a),t._update(),e.draw()}},this._remove=function(n){if(void 0!==n.quadId&&t){for(var i=0;i<a.length;i+=1)if(a[i].id===n.quadId){a.splice(i,1);break}t.data(a),t._update(),e.draw()}},this._update=function(n){return r.call(e,n),e._addBaseQuadToTiles(t,a),e},this._exit=function(){e.deleteFeature(t),t=null,a=[],i.apply(e,arguments)},this._init=function(){n.apply(e,arguments),(t=e.createFeature("quad",{previewColor:e._options.previewColor,previewImage:e._options.previewImage})).geoTrigger=void 0,t.gcs(e._options.gcs||e.map().gcs()),t.data(a),t._update()},this._getSubLayer=function(){},this._updateSubLayers=void 0};(0,n(1098).registerLayerAdjustment)("svg","tile",i),t.exports=i},2037:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(338),a=function(t){"use strict";return this instanceof a?(t=t||{},o.call(this,t),n(5005).call(this),this._init(t),this):new a(t)};i(a,o),r("svg","track",a),t.exports=a},7376:function(t){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t.exports=function(){var t,n=[];for(n.length=8,t=0;t<8;t+=1)n[t]=e.charAt(Math.floor(61*Math.random()));return n.join("")}},5747:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(6858),a={arrow:{attrs:{class:"geo-vector-arrow geo-vector-marker",viewBox:"0 0 10 10",refX:1,refY:5,markerHeight:5,markerWidth:5,orient:"auto"},path:"M 0 0 L 10 5 L 0 10 z"},point:{attrs:{class:"geo-vector-point geo-vector-marker",viewBox:"0 0 12 12",refX:6,refY:6,markerHeight:8,markerWidth:8,orient:"auto"},path:"M 6 3 A 3 3 0 1 1 5.99999 3 Z"},bar:{attrs:{class:"geo-vector-bar geo-vector-marker",viewBox:"0 0 10 10",refX:0,refY:5,markerHeight:6,markerWidth:6,orient:"auto"},path:"M 0 0 L 2 0 L 2 10 L 0 10 z"},wedge:{attrs:{class:"geo-vector-wedge geo-vector-marker",viewBox:"0 0 10 10",refX:10,refY:5,markerHeight:5,markerWidth:5,orient:"auto"},path:"M 0 0 L 1 0 L 10 5 L 1 10 L 0 10 L 9 5 L 0 0"}},s=function(t){"use strict";if(!(this instanceof s))return new s(t);var e=n(5005),i=n(77),r=n(2493).d3;t=t||{},o.call(this,t),e.call(this);var l=this,u=this._exit,c=this._update,d=i(),h={};function f(t,e,n){return l._svgid()+"_marker_"+e+"_"+n}function p(t,e,n,i,o){var s=l.renderer()._definitions().selectAll("g.marker-group#"+l._svgid()).data(t.length?[1]:[]);s.enter().append("g").attr("id",l._svgid).attr("class","marker-group"),s.exit().remove();var u=t.reduce((function(t,e,n){var r=a[o(e,n)],s=a[i(e,n)];return r&&t.push({data:e,dataIndex:n,head:!0}),s&&t.push({data:e,dataIndex:n,head:!1}),t}),[]),c=(s=l.renderer()._definitions().selectAll("g.marker-group#"+l._svgid())).selectAll("marker.geo-vector-marker").data(u),d=l.renderer();c.enter().append("marker").each((function(t){var e=r.select(this),n=t.head?a[o(t.data,t.dataIndex)]:a[i(t.data,t.dataIndex)];Object.keys(n.attrs).forEach((function(t){e.attr(t,n.attrs[t])}))})).attr("id",(function(t){return f(t.data,t.dataIndex,t.head?"head":"tail")})).style("stroke",(function(t){return d._convertColor(e)(t.data,t.dataIndex)})).style("fill",(function(t){return d._convertColor(e)(t.data,t.dataIndex)})).style("opacity",(function(t){return n(t.data,t.dataIndex)})).append("path").attr("d",(function(t){return t.head?a[o(t.data,t.dataIndex)].path:a[i(t.data,t.dataIndex)].path})),c.exit().remove()}return this._build=function(){var t,e=l.data(),n=l.style.get(),i=l.renderer(),r=l.origin(),o=l.delta(),a=l.style("scale"),s=0;function u(){return a/i.scaleFactor()}return c.call(l),e||(e=[]),t=e.map((function(t,e){var n=l.featureGcsToDisplay(r(t,e)),i=o(t,e);return s=Math.max(s,i.x*i.x+i.y*i.y),{x1:n.x,y1:n.y,dx:i.x,dy:-i.y}})),s=Math.sqrt(s),a||(a=75/(s||1)),h.id=l._svgid(),h.data=e,h.append="line",h.attributes={x1:function(e,n){return t[n].x1},y1:function(e,n){return t[n].y1},x2:function(e,n){return t[n].x1+u()*t[n].dx},y2:function(e,n){return t[n].y1+u()*t[n].dy},"marker-start":function(t,e){return"url(#"+f(0,e,"tail")+")"},"marker-end":function(t,e){return"url(#"+f(0,e,"head")+")"}},h.style={stroke:function(){return!0},strokeColor:n.strokeColor,strokeWidth:n.strokeWidth,strokeOpacity:n.strokeOpacity,originStyle:n.originStyle,endStyle:n.endStyle},h.classes=["svgVectorFeature"],h.visible=l.visible,p(e,n.strokeColor,n.strokeOpacity,n.originStyle,n.endStyle),l.renderer()._drawFeatures(h),d.modified(),l.updateTime().modified(),l},this._update=function(){return c.call(l),l.timestamp()>=d.timestamp()?l._build():p(h.data,h.style.strokeColor,h.style.strokeOpacity,h.style.originStyle,h.style.endStyle),l},this._exit=function(){u.call(l),h={},p([],null,null,null,null)},this._init(t),this};s.markerConfigs=a,i(s,o),r("svg","vector",s),t.exports=s},6546:function(t,e,n){var i=n(4626),r=n(1275),o=function(t){"use strict";if(!(this instanceof o))return new o(t);t=t||{},r.call(this,t);var e=n(5616),i=this,a=this._init;return this.featureType="text",this.position=function(t){return void 0===t?i.style("position"):(t!==i.style("position")&&(i.style("position",t),i.dataTime().modified(),i.modified()),i)},this.text=function(t){return void 0===t?i.style("text"):(t!==i.style("text")&&(i.style("text",t),i.dataTime().modified(),i.modified()),i)},this._init=function(t){t=t||{},a.call(i,t);var n=e.extend({},{font:"bold 16px sans-serif",textAlign:"center",textBaseline:"middle",color:{r:0,g:0,b:0},rotation:0,rotateWithMap:!1,textScaled:!1,position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t},text:function(t){return t.text}},void 0===t.style?{}:t.style);void 0!==t.position&&(n.position=t.position),void 0!==t.text&&(n.text=t.text),i.style(n),n.position&&i.position(n.position),n.text&&i.text(n.text),i.dataTime().modified()},this._init(t),i};o.usedStyles=["visible","font","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","lineHeight","fontFamily","textAlign","textBaseline","color","textOpacity","rotation","rotateWithMap","textScaled","offset","shadowColor","shadowOffset","shadowBlur","shadowRotate","textStrokeColor","textStrokeWidth"],o.create=function(t,e){"use strict";return(e=e||{}).type="text",r.create(t,e)},o.capabilities={feature:"text"},i(o,r),t.exports=o},5289:function(t,e,n){var i=n(5616),r=function(t){if(!(this instanceof r))return new r(t);this._index=t.index,this._size=t.size,this._overlap=t.overlap||{x:0,y:0},this._wrap=t.wrap||{x:1,y:1},this._url=t.url,this._fetched=!1,this._queue=t.queue||null,Object.defineProperty(this,"index",{get:function(){return this._index}}),Object.defineProperty(this,"size",{get:function(){return this._size}}),Object.defineProperty(this,"overlap",{get:function(){return this._overlap}}),this.fetch=function(){return this._fetched||i.get(this._url).done(function(){this._fetched=!0}.bind(this)).promise(this),this},this.fetched=function(){return this._fetched},this.then=function(t,e){return this.fetched()||!this._queue||!this._queue.add||this.state&&"pending"!==this.state()?this.fetch():this._queue.add(this,this.fetch),this.done&&this.fail?this.done(t).fail(e):this.then(t,e),this},this.catch=function(t){return this.then(void 0,t),this},this.toString=function(){return[this._index.level||0,this._index.y,this._index.x,this._index.reference||0].join("_")},this.bounds=function(t,e){var n,i,r,o;return i=(n=this.size.x*(this.index.x-t.x)-this.overlap.x-e.x)+this.size.x+2*this.overlap.x,r=(o=this.size.y*(this.index.y-t.y)-this.overlap.y-e.y)+this.size.y+2*this.overlap.y,this.overlap.x&&this.index.x===t.x&&(n+=this.overlap.x),this.overlap.y&&this.index.y===t.y&&(o+=this.overlap.y),{left:n,right:i,bottom:r,top:o}},Object.defineProperty(this,"bottom",{get:function(){return this.size.y*(this.index.y+1)+this.overlap.y}}),Object.defineProperty(this,"top",{get:function(){return this.size.y*this.index.y-(this.index.y?this.overlap.y:0)}}),Object.defineProperty(this,"left",{get:function(){return this.size.x*this.index.x-(this.index.x?this.overlap.x:0)}}),Object.defineProperty(this,"right",{get:function(){return this.size.x*(this.index.x+1)+this.overlap.x}}),this.fadeIn=function(t){return i.noop(t),this}};t.exports=r},9123:function(t){var e=function(t){return this instanceof e?(t=t||{},this._size=t.size||64,Object.defineProperty(this,"size",{get:function(){return this._size},set:function(t){for(;this._atime.length>t;)this.remove(this._atime[this._atime.length-1]);this._size=t}}),Object.defineProperty(this,"length",{get:function(){return this._atime.length}}),this._access=function(t){return this._atime.indexOf(t)},this.remove=function(t){var e="string"==typeof t?t:t.toString();return e in this._cache&&(this._atime.splice(this._access(e),1),delete this._cache[e],!0)},this.clear=function(){return this._cache={},this._atime=[],this},this.get=function(t,e){return(t="string"==typeof t?t:t.toString())in this._cache?(e||(this._atime.splice(this._access(t),1),this._atime.unshift(t)),this._cache[t]):null},this.add=function(t,e,n){this.remove(t);var i=t.toString();this._cache[i]=t,this._atime.unshift(i),n||this.purge(e)},this.purge=function(t){for(var e;this._atime.length>this.size;){e=this._atime.pop();var n=this._cache[e];t&&t(n),delete this._cache[e]}},this.clear(),this):new e(t)};t.exports=e},9264:function(t,e,n){var i=n(4626),r=n(6498);function o(t,e){return(t%e+e)%e}function a(t){var e,n=/\$?\{(s|S|[sS]:[^{}]+|[^-{}]-[^-{}]|([^,{}]+,)+[^,{}]+)\}/,i=t.replace(new RegExp(n,"g"),"{s}").replace(/\$?\{[xX]\}/g,"{x}").replace(/\$?\{[yY]\}/g,"{y}").replace(/\$?\{[zZ]\}/g,"{z}"),r=t.match(n);if(r)if(r[2])e=r[1].split(",");else if(":"===r[1][1])e=r[1].substr(2).split("");else if("-"===r[1][1]){e=[];for(var a=r[1].charCodeAt(0),s=r[1].charCodeAt(2),l=Math.min(a,s);l<=Math.max(a,s);l+=1)e.push(String.fromCharCode(l))}return function(t,n,r,a){return i.replace(/\{s\}/g,function(t,e,n,i){return i[o(t+e+n,i.length)]}(t,n,r,e||a)).replace(/\{x\}/g,t).replace(/\{y\}/g,n).replace(/\{z\}/g,r)}}var s=function(t){"use strict";if(!(this instanceof s))return new s(t);r.call(this,t);var e=n(5616),i=n(6409),l=n(5325),u=n(9123),c=n(5938),d=n(1098).adjustLayerForRenderer,h=n(5289);if((t=e.extend(!0,{},this.constructor.defaults,t||{})).cacheSize||(t.cacheSize=t.keepLower?600:200),"string"===e.type(t.subdomains)&&(t.subdomains=t.subdomains.split("")),t.baseUrl){var f=t.baseUrl;f&&"/"!==f.charAt(f.length-1)&&(f+="/"),t.url=f+"{z}/{x}/{y}."+(t.imageFormat||"png")}t.originalUrl=t.url,"string"===e.type(t.url)&&(t.url=a(t.url));var p,m,g,y=this._init,v=this._exit,x=this.visible,_=t.queueSize||6,b=t.initialQueueSize||0,w=[],M={},A=[],T=t.nearestPixel,C=this;this._options=e.extend(!0,{},t),this.attribution(t.attribution),this._activeTiles={},this._tileTree={},this._cache=u({size:t.cacheSize}),this._queue=t.queue||c({size:_,initialSize:b,track:t.cacheSize,needed:function(t){return this._tileLayers&&this._tileLayers.length?this._tileLayers.some((function(e){return t===e.cache.get(t.toString(),!0)})):t===C.cache.get(t.toString(),!0)}}),this._queue._tileLayers=this._queue._tileLayers||[],this._queue._tileLayers.push(C),this._queue.initialTrack&&this._queue.track&&(this._queue.track=this._queue.initialTrack*this._queue._tileLayers.length);var E={};return Object.defineProperty(this,"options",{get:function(){return e.extend({},C._options)}}),Object.defineProperty(this,"cache",{get:function(){return C._cache}}),Object.defineProperty(this,"activeTiles",{get:function(){return e.extend({},C._activeTiles)}}),Object.defineProperty(this,"queue",{get:function(){return C._queue},set:function(t){C._queue!==t&&(this._queue&&this._queue._tileLayers&&this._queue._tileLayers.indexOf(C)>=0&&(this._queue._tileLayers.splice(this._queue._tileLayers.indexOf(C),1),this._queue.initialTrack&&this._queue.track&&this._queue._tileLayers.length&&(this._queue.track=this._queue.initialTrack*this._queue._tileLayers.length)),C._queue=t,C._queue._tileLayers=C._queue._tileLayers||[],C._queue._tileLayers.push(C),C._queue.initialTrack&&C._queue.track&&(C._queue.track=C._queue.initialTrack*C._queue._tileLayers.length))}}),Object.defineProperty(this,"queueSize",{get:function(){return _},set:function(t){_=t,C._queue.size=t}}),Object.defineProperty(this,"initialQueueSize",{get:function(){return b},set:function(t){b=t||0,C._queue.initialSize=t||_}}),Object.defineProperty(this,"reference",{get:function(){return C.id()+"_"+(p||0)},set:function(t){p=t},configurable:!0}),this.tilesAtZoom=function(t){if(C._options.tilesAtZoom)return C._options.tilesAtZoom.call(C,t);var e=Math.pow(2,t);return{x:e,y:e}},this.tilesMaxBounds=function(t){return C._options.tilesMaxBounds?C._options.tilesMaxBounds.call(C,t):null},this.tileCropFromBounds=function(t){if(C._options.tilesMaxBounds){var e=t.index.level,n=C._tileBounds(t);return void 0===A[e]&&(A[e]=C.tilesMaxBounds(e)||null),A[e]&&(n.right>A[e].x||n.bottom>A[e].y)?{x:Math.max(0,Math.min(A[e].x,n.right)-n.left),y:Math.max(0,Math.min(A[e].y,n.bottom)-n.top)}:void 0}},this.isValid=function(t){return C._options.minLevel<=t.level&&t.level<=C._options.maxLevel&&(!!(C._options.wrapX||0<=t.x&&t.x<=C.tilesAtZoom(t.level).x-1)&&!!(C._options.wrapY||0<=t.y&&t.y<=C.tilesAtZoom(t.level).y-1))},this._origin=function(t){var e,n=C.toLevel(C.toLocal(C.map().origin()),t),i=C._options;return{index:e={x:Math.floor(n.x/i.tileWidth),y:Math.floor(n.y/i.tileHeight)},offset:{x:n.x-i.tileWidth*e.x,y:n.y-i.tileHeight*e.y}}},this._tileBounds=function(t){var e=C._origin(t.index.level);return t.bounds(e.index,e.offset)},this.tileAtPoint=function(t,e){var n=C._origin(e),i=C.map();t=C.displayToLevel(i.gcsToDisplay(t,null),e),isNaN(t.x)&&(t.x=0),isNaN(t.y)&&(t.y=0);var r=C._tileOffset(e);return r&&(t.x+=r.x,t.y+=r.y),{x:Math.floor(n.index.x+(n.offset.x+t.x)/C._options.tileWidth),y:Math.floor(n.index.y+(n.offset.y+t.y)/C._options.tileHeight)}},this.gcsTileBounds=function(t,e){var n=t.index?t:h({index:t,size:{x:C._options.tileWidth,y:C._options.tileHeight},url:""}),i=C._tileOffset(n.index.level),r=n.bounds({x:0,y:0},i),o=C.map(),a=o.unitsPerPixel(n.index.level),s=[{x:r.left*a,y:C._topDown()*r.top*a},{x:r.right*a,y:C._topDown()*r.bottom*a}];return(e=null===e?o.gcs():void 0===e?o.ingcs():e)!==o.gcs()&&(s=l.transformCoordinates(o.gcs(),e,s)),{left:s[0].x,top:s[0].y,right:s[1].x,bottom:s[1].y}},this._getTile=function(t,e){var n=e||t;return h({index:t,size:{x:C._options.tileWidth,y:C._options.tileHeight},queue:C._queue,url:C._options.url.call(C,n.x,n.y,n.level||0,C._options.subdomains)})},this._getTileCached=function(t,e,n){var i=C.cache.get(C._tileHash(t));return null===i&&(i=C._getTile(t,e),C.cache.add(i,C.remove,n)),i},this._tileHash=function(t){return[t.level||0,t.y,t.x,t.reference||0].join("_")},this._getTileRange=function(t,e){var n=[C.tileAtPoint({x:e.left,y:e.top},t),C.tileAtPoint({x:e.right,y:e.top},t),C.tileAtPoint({x:e.left,y:e.bottom},t),C.tileAtPoint({x:e.right,y:e.bottom},t)];return{start:{x:Math.min(n[0].x,n[1].x,n[2].x,n[3].x),y:Math.min(n[0].y,n[1].y,n[2].y,n[3].y)},end:{x:Math.max(n[0].x,n[1].x,n[2].x,n[3].x),y:Math.max(n[0].y,n[1].y,n[2].y,n[3].y)}}},this._getTiles=function(t,n,i,r){var a,s,l,u,c,d,h,f,p,m,g,y=[],v=!1,x=C._options.keepLower?C._options.minLevel:Math.min(Math.max(t,C._options.minLevel),C._options.maxLevel);for(t<x&&(t=x),g=x;g<=t&&(c=(h=C._getTileRange(g,n)).start,d=h.end,u=C.tilesAtZoom(g),C._options.wrapX||(c.x=Math.min(Math.max(c.x,0),u.x-1),d.x=Math.min(Math.max(d.x,0),u.x-1),g===x&&C._options.keepLower&&(c.x=0,d.x=u.x-1)),C._options.wrapY||(c.y=Math.min(Math.max(c.y,0),u.y-1),d.y=Math.min(Math.max(d.y,0),u.y-1),g===x&&C._options.keepLower&&(c.y=0,d.y=u.y-1)),!(C._options.gcs&&C._options.gcs!==C.map().gcs()&&g!==x&&(d.x+1-c.x)*(d.y+1-c.y)>C.map().size().width*C.map().size().height/C._options.tileWidth/C._options.tileHeight*16));g+=1)for(a=c.x;a<=d.x;a+=1)for(s=c.y;s<=d.y;s+=1)l={level:g,x:a,y:s,reference:C.reference},f={level:g,x:a,y:s,reference:C.reference},C._options.wrapX&&(f.x=o(f.x,u.x)),C._options.wrapY&&(f.y=o(f.y,u.y)),C.isValid(f)&&(r&&y.length<w.length&&(m=w[y.length],v=v||l.level!==m.level||l.x!==m.x||l.y!==m.y),y.push({index:l,source:f}));if(r){if(!v&&y.length===w.length)return;w.splice(0,w.length),e.each(y,(function(t,e){w.push(e.index)}))}if(i){p={x:(c.x+d.x)/2,y:(c.y+d.y)/2,level:t,bottomLevel:t};for(var _=Math.max(d.x-c.x,d.y-c.y)+1;_>=1;_/=2)p.bottomLevel-=1;y.sort(C._loadMetric(p)),C._queue&&C._queue.batch(!0)}for(C.cache.size<y.length&&(console.log("Increasing cache size to "+y.length),C.cache.size=y.length),a=0;a<y.length;a+=1)y[a]=C._getTileCached(y[a].index,y[a].source,!0);return C.cache.purge(C.remove),y},this.gcs=function(t){if(void 0===t)return C._options.gcs||C.map().gcs();var e=C.gcs();return null===t?delete C._options.gcs:C._options.gcs=t,C.gcs()!==e&&(C.clear(),C.gcsFeatures(C.gcs()),C.modified(),C._update()),C},this.prefetch=function(t,n){var i;return i=C._getTiles(t,n,!0),e.when.apply(e,i.map((function(t){return t.fetch()})))},this._loadMetric=function(t){return function(e,n){var i,r,o,a,s;return e=e.index||e,n=n.index||n,e.level!==n.level?t.bottomLevel&&e.level>=t.bottomLevel!=n.level>=t.bottomLevel?e.level>=t.bottomLevel?-1:1:e.level-n.level:(s=Math.pow(2,e.level-t.level),o=(t.x+.5)*s-.5,a=(t.y+.5)*s-.5,(i=e.x-o)*i+(r=e.y-a)*r-((i=n.x-o)*i+(r=n.y-a)*r))}},this.fromLevel=function(t,e){var n=Math.pow(2,-e);return{x:t.x*n,y:t.y*n}},this.toLevel=function(t,e){var n=Math.pow(2,e);return{x:t.x*n,y:t.y*n}},this.drawTile=function(t){var e=t.toString();C._activeTiles.hasOwnProperty(e)?C._moveToTop(t):C._drawTile(t),C._activeTiles[e]=t},this._drawTile=function(t){if(null!==C.renderer())throw new Error("This draw method is not valid on renderer managed layers.");var n,i=t.index.level,r=e(C._getSubLayer(i)),o=C._tileBounds(t),a=C._options.animationDuration,s=e('<div class="geo-tile-container"/>').attr("tile-reference",t.toString());s.append(t.image),s.css({left:o.left-parseInt(r.attr("offsetx")||0,10)+"px",top:o.top-parseInt(r.attr("offsety")||0,10)+"px"}),(n=C.tileCropFromBounds(t))&&s.addClass("crop").css({width:n.x+"px",height:n.y+"px"}),a>0&&t.fadeIn(a),r.append(s),t.catch((function(){console.warn("Could not load tile at "+t.toString()),C._remove(t)}))},this.remove=function(t){var e=t.toString(),n=C._activeTiles[e];return n instanceof h&&C._remove(n),delete C._activeTiles[e],n},this._remove=function(t){t.image&&(t.image.parentElement?e(t.image.parentElement).remove():console.log("No parent element to remove "+t.toString(),t),e(t.image).remove())},this._moveToTop=function(t){e.noop(t)},this._getViewBounds=function(){var t=C.map(),e=t.zoom(),n=C._options.tileRounding(e),i=Math.pow(2,e-n),r=t.size(),o=C.displayToLevel({x:0,y:0}),a=C.displayToLevel({x:r.width,y:0}),s=C.displayToLevel({x:0,y:r.height}),l=C.displayToLevel({x:r.width,y:r.height});return{level:n,scale:i,left:Math.min(o.x,a.x,s.x,l.x),right:Math.max(o.x,a.x,s.x,l.x),top:Math.min(o.y,a.y,s.y,l.y),bottom:Math.max(o.y,a.y,s.y,l.y)}},this._purge=function(t,e,n){var i,r;if(C._updating)return C;for(r in n||(n=C._getViewBounds()),C._activeTiles)i=C._activeTiles[r],C._canPurge(i,n,t,e)&&C.remove(i);return C},this.clear=function(){var t,e=[];for(t in C._activeTiles)e.push(C.remove(t));return C._tileTree={},w=[],e},this.reset=function(){return C.clear(),C._cache.clear(),C._queue.initialSize=b,C},this.toLocal=function(t,e){var n=C.map(),i=n.unitsPerPixel(void 0===e?n.zoom():e);return{x:t.x/i,y:C._topDown()*t.y/i}},this.fromLocal=function(t,e){var n=C.map(),i=n.unitsPerPixel(void 0===e?n.zoom():e);return{x:t.x*i,y:C._topDown()*t.y*i}},this._topDown=function(){return C._options.topDown?1:-1},this._getSubLayer=function(t){if(C.canvas()){var n=C.canvas().find("div[data-tile-layer="+t.toFixed()+"]").get(0);return n||(n=e('<div class=geo-tile-layer data-tile-layer="'+t.toFixed()+'"/>').get(0),C.canvas().append(n)),n}},this._updateSubLayers=function(t,n){var i=C.canvas(),r=parseInt(i.attr("lastlevel"),10),o=parseInt(i.attr("lastoffsetx")||0,10),a=parseInt(i.attr("lastoffsety")||0,10);if(r===t&&Math.abs(o-n.left)<65536&&Math.abs(a-n.top)<65536)return{x:o,y:a};var s=C.map(),l=C._tileOffset(t),u=parseInt((n.left+n.right-s.size().width)/2+l.x,10),c=parseInt((n.top+n.bottom-s.size().height)/2+l.y,10);return i.find(".geo-tile-layer").each((function(n,i){var r=e(i),o=parseInt(r.data("tileLayer"),10);r.css("transform","scale("+Math.pow(2,t-o)+")");var a=parseInt(u/Math.pow(2,t-o),10),s=parseInt(c/Math.pow(2,t-o),10),l=a-parseInt(r.attr("offsetx")||0,10),d=s-parseInt(r.attr("offsety")||0,10);r.attr({offsetx:a,offsety:s}),r.find(".geo-tile-container").each((function(t,n){e(n).css({left:parseInt(e(n).css("left"),10)-l+"px",top:parseInt(e(n).css("top"),10)-d+"px"})}))})),i.attr({lastoffsetx:u,lastoffsety:c,lastlevel:t}),{x:u,y:c}},this._update=function(t){if(t&&t.event&&(t.event.event===i.zoom||t.event.event===i.rotate))return C;if(!C.visible())return C;var n,r=C.map(),o=r.bounds(void 0,null),a=r.zoom(),s=C._options.tileRounding(a);if(C._updateSubLayers){var l=C._getViewBounds(),u=C._updateSubLayers(s,l)||{x:0,y:0},c=C._tileOffset(s);if(null===C.renderer()){var d=Math.pow(2,a-s),h=r.rotation(),f=-c.x+-(l.left+l.right)/2+u.x,p=-c.y+-(l.bottom+l.top)/2+u.y,g=f+r.size().width/2,y=p+r.size().height/2;C.canvas().css({"transform-origin":-f+"px "+-p+"px"});var v="translate("+g+"px,"+y+"px)scale("+d+")";h&&(v+="rotate("+180*h/Math.PI+"deg)"),C.canvas().css("transform",v)}C.canvas().attr({scale:Math.pow(2,a-s),dx:-c.x+-(l.left+l.right)/2,dy:-c.y+-(l.bottom+l.top)/2,offsetx:u.x,offsety:u.y,rotation:r.rotation()})}if(void 0===(n=C._getTiles(s,o,!0,!0)))return C;if(C._tileTree={},n.forEach((function(t){if(t.fetched())delete M[t.toString()],C.drawTile(t),C._setTileTree(t);else{if(t._queued)(C._queue?C._queue.get(t):-1)>=0&&C._queue.add(t);else t.then((function(){if(!m&&t===C.cache.get(t.toString())){var e=r.zoom(),n=C._options.tileRounding(e),i=C._getViewBounds();C._canPurge(t,i,n)?C.remove(t):(C.drawTile(t),C._setTileTree(t))}})),t._queued=!0;C.addPromise(t),M[t.toString()]=t}})),e.when.apply(e,n).done((function(){var t=C.map().zoom(),e=C._options.tileRounding(t);C._purge(e,!0)})),"all"!==C._options.idleAfter)for(var x in M){var _=M[x];n.indexOf(_)<0&&(C.removePromise(_),delete M[x])}return C},this._setTileTree=function(t){if(!C._options.keepLower){var e=t.index;C._tileTree[e.level]=C._tileTree[e.level]||{},C._tileTree[e.level][e.x]=C._tileTree[e.level][e.x]||{},C._tileTree[e.level][e.x][e.y]=t}},this._getTileTree=function(t){return((C._tileTree[t.level]||{})[t.x]||{})[t.y]||null},this._isCovered=function(t){var e=t.index.level,n=t.index.x,i=t.index.y,r=[];return(r=C._getTileTree({level:e-1,x:Math.floor(n/2),y:Math.floor(i/2)}))?[r]:(r=[C._getTileTree({level:e+1,x:2*n,y:2*i}),C._getTileTree({level:e+1,x:2*n+1,y:2*i}),C._getTileTree({level:e+1,x:2*n,y:2*i+1}),C._getTileTree({level:e+1,x:2*n+1,y:2*i+1})]).every((function(t){return null!==t}))?r:null},this._outOfBounds=function(t,e){var n=C._tileOffset(t.index.level),i=1;return t.index.level!==e.level&&(i=Math.pow(2,(e.level||0)-(t.index.level||0))),(t.bottom-n.y)*i<e.top||(t.left-n.x)*i>e.right||(t.top-n.y)*i>e.bottom||(t.right-n.x)*i<e.left},this._canPurge=function(t,e,n,i){if(C._options.keepLower){if((n=n||0)<t.index.level&&t.index.level!==C._options.minLevel)return!0;if(t.index.level===C._options.minLevel&&!C._options.wrapX&&!C._options.wrapY)return!1}else if((i||C._isCovered(t))&&n!==t.index.level&&(n>=C._options.minLevel||t.index.level!==C._options.minLevel)&&(n<C._options.maxLevel||t.index.level!==C._options.maxLevel))return!0;return!!e&&C._outOfBounds(t,e)},this.displayToLevel=function(t,e){var n,i=C.map(),r=i.zoom(),o=C._options.tileRounding(r),a=i.unitsPerPixel(void 0===e?o:e);if(void 0===t){var s=i.size();t={x:s.width/2,y:s.height/2}}try{n=i.displayToGcs(t,C._options.gcs||null)}catch(t){n={x:0,y:0}}return{x:n.x/a,y:C._topDown()*n.y/a}},this.url=function(t){return void 0===t?C._options.originalUrl:(t===C._options.originalUrl||(C._options.originalUrl=t,"string"===e.type(t)&&(t=a(t)),C._options.url=t,C.reset(),C.map().draw()),C)},this.subdomains=function(t){return void 0===t?C._options.subdomains:(t&&("string"===e.type(t)&&(t=t.indexOf(",")>=0?t.split(","):t.split("")),C._options.subdomains=t,C.reset(),C.map().draw()),C)},this._tileOffset=function(t){return void 0===E[t]&&(E[t]=C._options.tileOffset(t)),E[t]},this.visible=function(t){return void 0===t?x():(C.visible()!==t&&(x(t),t&&C._update()),C)},this.nearestPixel=function(t,e){return void 0===t?T:(T!==t&&(T=t,e||(C.modified(),C._update())),C)},Object.defineProperty(this,"baseQuad",{get:function(){return C._options.baseQuad},set:function(t){C._options.baseQuad=t,C._update()}}),this._addBaseQuadToTiles=function(t,e){t&&(this.baseQuad!==g&&(g&&e.splice(0,1),(g=this.baseQuad)&&(e.splice(0,0,this.baseQuad),t.cacheUpdate(0)),t.data(e)),t._update())},this._init=function(){var t;if(y.apply(C,arguments),null===C.renderer())for(t=0;t<=C._options.maxLevel;t+=1)C._getSubLayer(t);return C},this._exit=function(){return C.reset(),v.apply(C,arguments),m=!0,this._queue&&this._queue._tileLayers&&this._queue._tileLayers.indexOf(C)>=0&&(this._queue._tileLayers.splice(this._queue._tileLayers.indexOf(C),1),this._queue.initialTrack&&this._queue.track&&this._queue._tileLayers.length&&(this._queue.track=this._queue.initialTrack*this._queue._tileLayers.length)),C},d("tile",this),this};s.defaults={minLevel:0,maxLevel:18,tileOverlap:{x:0,y:0},tileWidth:256,tileHeight:256,wrapX:!0,wrapY:!1,url:null,subdomains:"abc",tileOffset:function(t){return{x:0,y:0}},tilesMaxBounds:null,topDown:!1,keepLower:!0,idleAfter:"view",tileRounding:Math.round,attribution:"",animationDuration:0},i(s,r),t.exports=s},77:function(t){var e=0,n=function(){"use strict";if(!(this instanceof n))return new n;var t=this,i=0;return this.modified=function(){return i=e+=1,t},this.timestamp=function(){return i},this.getMTime=this.timestamp,this};t.exports=n},338:function(t,e,n){var i=n(4626),r=n(1275),o=n(1098),a=n(642),s=function(t){"use strict";if(!(this instanceof s))return new s(t);var e=n(5616),i=n(5325);t=t||{},r.call(this,t);var l,u,c,d,h,f=this,p={},m={startTime:void 0!==t.startTime?t.startTime:null,endTime:void 0!==t.endTime?t.endTime:null,duration:void 0!==t.duration?t.duration:null,start:0,end:0},g=this.draw,y=this._exit,v=this._init,x=this.modified,_=this.style,b=this._update;return this.featureType="track",this._linePosition=function(t){return function(e,n,i,r){var o=m.timeFunc(e,n,i,r);return"past"===t&&o>=m.start||"current"===t&&o<m.start?m.startPosition[r]:"current"===t&&o>m.end||"future"===t&&o<m.end?m.endPosition[r]:m.positionFunc(e,n,i,r)}},this._headPosition=function(t,e){return m.endPosition[e]},this._headText=function(t,e){return m.text[e]},this._updateTimeRange=function(){null!==m.endTime||null===m.endTime&&(null===m.startTime||null==m.duration)?(m.end=null!==m.endTime?m.endTime:m.timeExtents.end,null!==m.startTime&&(null===m.endTime||m.startTime<=m.endTime)?m.start=m.startTime:null!==m.duration?m.start=m.end-m.duration:m.start=m.timeExtents.start):(m.start=m.startTime,m.end=m.start+m.duration)},this.calculateTimePosition=function(t,e,n){f.dataTime().timestamp()>=f.buildTime().timestamp()&&f._build(),e=null===e?f.layer().map().gcs():void 0===e?f.gcs():e;var r=i({source:f.gcs(),target:e}),o=f.data(),a=[],s=o.map((function(e,n){var i=m.trackFunc(e,n);if(a.push(i),!i.length)return{x:0,y:0,z:0,posidx:-1};var r,o,s,l,u=0,c=i.length-1;if(1===i.length)return{posidx:u,angidx0:u,angidx1:u};if((r=m.timeFunc(i[u],u,e,n))>=t)return{posidx:u,angidx0:u,angidx1:u+1};if((o=m.timeFunc(i[c],c,e,n))<=t)return{posidx:c,angidx0:c-1,angidx1:c};for(;c-u>1;){if(s=Math.floor((c+u)/2),(l=m.timeFunc(i[s],s,e,n))===t)return{posidx:s,angidx0:s-1,angidx1:s+1};l<t?(r=l,u=s):(o=l,c=s)}var d=(t-r)/(o-r);return{posidx0:u,posidx1:c,factor0:1-d,factor1:d,angidx0:u,angidx1:c}}));return s.forEach((function(t,e){var i,o,s;t.posidx<0||(void 0===t.posidx1?i=m.positionFunc(a[e][t.posidx],t.posidx,a[e],e):(o=r.forward(m.positionFunc(a[e][t.posidx0],t.posidx0,a[e],e),!0),s=r.forward(m.positionFunc(a[e][t.posidx1],t.posidx1,a[e],e),!0),i=r.inverse({x:o.x*t.factor0+s.x*t.factor1,y:o.y*t.factor0+s.y*t.factor1,z:(o.z||0)*t.factor0+(s.z||0)*t.factor1},!0)),t.x=i.x,t.y=i.y,t.z=i.z||0,n&&(void 0===t.posidx1&&(o=r.forward(t.angidx0===t.posidx?i:m.positionFunc(a[e][t.angidx0],t.angidx0,a[e],e),!0),s=r.forward(t.angidx1===t.posidx?i:m.positionFunc(a[e][t.angidx1],t.angidx1,a[e],e),!0)),t.angle=Math.atan2(s.y-o.y,s.x-o.x)))})),s},this._build=function(){f.buildTime().modified(),l||(l={past:f.layer().createFeature("line"),future:f.layer().createFeature("line"),current:f.layer().createFeature("line")},f.dependentFeatures([l.past,l.current,l.future]));var t=f.data();m.data=t,m.timeFunc=f.style.get("time"),m.positionFunc=f.style.get("position"),m.trackFunc=f.style.get("track"),m.textFunc=f.style.get("text"),["past","current","future"].forEach((function(e){l[e].style(f.style()).style(f[e+"Style"]()).line(f.style("track")).gcs(f.gcs()).data(t).position(f._linePosition(e))}));var e,n,i={};if(t.forEach((function(t,e){var n,r=m.trackFunc(t,e);r.length&&(n=m.timeFunc(r[0],0,t,e),(void 0===i.start||n<i.start)&&(i.start=n),r.length>1&&(n=m.timeFunc(r[r.length-1],r.length-1,t,e)),(void 0===i.end||n>i.end)&&(i.end=n))})),m.timeExtents=i,f._updateTimeRange(),m.startPosition=f.calculateTimePosition(m.start,null),m.endPosition=f.calculateTimePosition(m.end,null,!0),m.text=t.map((function(t,i){var r=m.textFunc(t,i);return e|=null==r,null==r||""===r?"":(n=!0,m.startPosition[i].posidx<0&&(r=""),r)})),e&&!c){if(!(o.registries.features[f.layer().rendererName()]||{}).marker){var r=o.rendererForFeatures(["marker"]);u=o.createLayer("feature",f.layer().map(),{renderer:r}),f.layer().addChild(u),f.layer().node().append(u.node())}c=(u||f.layer()).createFeature("marker");var a=f.dependentFeatures();a.push(c),f.dependentFeatures(a)}if(n&&!h){if(!(o.registries.features[f.layer().rendererName()]||{}).text){var s=o.rendererForFeatures(["text"]);d=o.createLayer("feature",f.layer().map(),{renderer:s}),f.layer().addChild(d),f.layer().node().append(d.node())}h=(d||f.layer()).createFeature("text");var p=f.dependentFeatures();p.push(h),f.dependentFeatures(p)}if(c){c.headData=m.endPosition,c.style(f.markerStyle()).gcs(f.gcs()).data(t).position(f._headPosition);var g=c.style.get("radius");c.style("radius",(function(t,e){return m.text[e]||m.startPosition[e].posidx<0?0:g(t,e)}))}return h&&(h.headData=m.endPosition,h.style(f.textStyle()).gcs(f.gcs()).data(t).text(f._headText).position(f._headPosition)),f},this._updateTimeAndPosition=function(){l&&(f._updateTimeRange(),m.startPosition=f.calculateTimePosition(m.start,null),m.endPosition=f.calculateTimePosition(m.end,null,!0),l.past.modified(),l.current.modified(),l.future.modified(),c&&c.modified(),h&&h.modified(),f.updateTime().modified(),f.modified())},this._update=function(){return b.call(f),(f.dataTime().timestamp()>=f.buildTime().timestamp()||f.updateTime().timestamp()<=f.timestamp())&&f._build(),f.updateTime().modified(),f},this.draw=function(){var t=g();return l&&(l.past.draw(),l.current.draw(),l.future.draw()),c&&c.draw(),h&&h.draw(),t},this.modified=function(){var t=x();return l&&(l.past.modified(),l.current.modified(),l.future.modified()),c&&c.modified(),h&&h.modified(),t},this.style=function(t,n,i){return"style"===(i=i||"style")?_(t,n):void 0===t?p[i]:"string"==typeof t&&void 0===n?(p[i]||{})[t]:(void 0===p[i]&&(p[i]={}),void 0===n?p[i]=e.extend(!0,p[i],t):p[i][t]=n,f.modified(),f)},this.style.get=_.get,["markerStyle","textStyle","pastStyle","currentStyle","futureStyle"].forEach((function(t){f[t]=function(e,n){return f.style(e,n,t)}})),this.track=function(t){return void 0===t?f.style("track"):(f.style("track",t),f.dataTime().modified(),f.modified(),f)},this.position=function(t){return void 0===t?f.style("position"):(f.style("position",t),f.dataTime().modified(),f.modified(),f)},this.time=function(t){return void 0===t?f.style("time"):(f.style("time",t),f.dataTime().modified(),f.modified(),f)},this.timeRange=function(t){if(void 0===t)return{startTime:m.startTime,endTime:m.endTime,duration:m.duration,start:m.start,end:m.end,minimum:(m.timeExtents||{}).start,maximum:(m.timeExtents||{}).end};var e=!1;return void 0!==t.startTime&&t.startTime!==m.startTime&&(m.startTime=null===t.startTime?t.startTime:+t.startTime,e=!0),void 0!==t.endTime&&t.endTime!==m.endTime&&(m.endTime=null===t.endTime?t.endTime:+t.endTime,e=!0),void 0!==t.duration&&t.duration!==m.duration&&(m.duration=null===t.duration?t.duration:+t.duration,e=!0),e&&f._updateTimeAndPosition(),f},this.startTime=function(t){return void 0===t?m.startTime:(t!==m.startTime&&(m.startTime=null===t?t:+t,f._updateTimeAndPosition()),f)},this.endTime=function(t){return void 0===t?m.endTime:(t!==m.endTime&&(m.endTime=null===t?t:+t,f._updateTimeAndPosition()),f)},this.duration=function(t){return void 0===t?m.duration:(t!==m.duration&&(m.duration=null===t?t:+t,f._updateTimeAndPosition()),f)},this._mergeSearchResults=function(t,e){return t.extra=t.extra||{},e.forEach((function(e){return e.value.index.forEach((function(n,i){t.index.indexOf(n)<0&&(t.index.push(n),t.found.push(e.value.found[i]),t.where=t.where||{},e.value.extra&&e.value.extra[n]&&(t.extra[n]=e.value.extra[n]),a.isObject(t.extra[n])||(t.extra[n]={value:t.extra[n]}),t.extra[n].where=e.key)}))})),t},this.pointSearch=function(t){var e=l.current.pointSearch(t),n=l.past.pointSearch(t),i=l.future.pointSearch(t),r=c?c.pointSearch(t):{index:[]};return this._mergeSearchResults(e,[{key:"marker",value:r},{key:"past",value:n},{key:"future",value:i}])},this.polygonSearch=function(t,e){var n=l.current.polygonSearch(t,e),i=l.past.polygonSearch(t,e),r=l.future.polygonSearch(t,e),o=c?c.polygonSearch(t,e):{index:[]};return this._mergeSearchResults(n,[{key:"marker",value:o},{key:"past",value:i},{key:"future",value:r}])},this._exit=function(){l&&f.layer()&&(f.layer().deleteFeature(l.past),f.layer().deleteFeature(l.current),f.layer().deleteFeature(l.future)),l=null,(u||f.layer())&&c&&(u||f.layer()).deleteFeature(c),u&&f.layer()&&f.layer().removeChild(u),u=null,(d||f.layer())&&h&&(d||f.layer()).deleteFeature(h),d&&f.layer()&&f.layer().removeChild(d),d=null,f.dependentFeatures([]),y()},this._init=function(t){t=t||{},v.call(f,t);var n=e.extend(!0,{},{track:a.identityFunction,position:a.identityFunction,time:function(t,e){return void 0!==t.t?t.t:e},uniformLine:"drop",closed:!1},void 0===t.style?{}:t.style),i=e.extend(!0,{},{rotateWithMap:!0,rotation:function(t,e){return-m.endPosition[e].angle||0}},void 0===t.markerStyle?{}:t.markerStyle),r=e.extend(!0,{},{rotateWithMap:!0,rotation:function(t,e){return void 0!==m.endPosition[e].angle?-m.endPosition[e].angle+Math.PI/2:0}},void 0===t.textStyle?{}:t.textStyle),o=e.extend(!0,{},{strokeOpacity:.25},void 0===t.pastStyle?{}:t.pastStyle),s=e.extend(!0,{},{},void 0===t.currentStyle?{}:t.currentStyle),l=e.extend(!0,{},{strokeOpacity:.25},void 0===t.futureStyle?{}:t.futureStyle);["track","position","time"].forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),f.style(n),f.markerStyle(i),f.textStyle(r),f.pastStyle(o),f.currentStyle(s),f.futureStyle(l)},this};i(s,r),t.exports=s},5325:function(t,e,n){var i=n(1960),r=n(1982),o=n(3503),a=n(642);i=i.__esModule?i.default:i;var s=n(9689);s.keys().forEach((function(t){i.Proj.projections.add(s(t))}));var l={},u=/^(.* |)\+axis=e(n|s)u(| .*)$/,c=/(^|\s)\+(s[1-3][1-3]|[xyz]off)=\S/,d=function(t){"use strict";if(!(this instanceof d))return(t=t||{}).source in l||(Object.keys(l).length>=10&&(l={}),l[t.source]={}),t.target in l[t.source]||(Object.keys(l[t.source]).length>=10&&(l[t.source]={}),l[t.source][t.target]=new d(t)),l[t.source][t.target];var e,n,s,u,h,f,p,m=this,g={s11:0,s12:4,s13:8,xoff:12,s21:1,s22:5,s23:9,yoff:13,s31:2,s32:6,s33:10,zoff:14};function y(t){if(!c.exec(t))return{proj:t};var e,n,i=a.mat4AsArray(),r=[];return t.split(/(\s+)/).forEach((function(t){var e=/^\+(s[1-3][1-3]|[xyz]off)=(.*)$/.exec(t);e?i[g[e[1]]]=parseFloat(e[2]):r.push(t)})),n={proj:r.join(" "),orig:t},(e=o.invert(a.mat4AsArray(),i))?(n.matrix=i,n.inverse=e):console.warn("Affine transform is not invertable and will not be used: "+t),n}function v(){var t=y(m.source()),n=y(m.target()),r=t.proj,o=n.proj;u=t.matrix,h=t.inverse,f=n.matrix,p=n.inverse,e=new i(r,o)}this.source=function(t){return void 0===t?n||"EPSG:4326":(n=t,v(),m)},this.target=function(t){return void 0===t?s||"EPSG:3857":(s=t,v(),m)},this._forward=function(t){if(u){var n=r.transformMat4(a.vec3AsArray(),[t.x,t.y,t.z||0],h);t={x:n[0],y:n[1],z:n[2]}}var i=e.forward(t,!0);if(i.z=t.z||0,f){var o=r.transformMat4(a.vec3AsArray(),[i.x,i.y,i.z],f);i={x:o[0],y:o[1],z:o[2]}}return i},this._inverse=function(t){if(f){var n=r.transformMat4(a.vec3AsArray(),[t.x,t.y,t.z||0],p);t={x:n[0],y:n[1],z:n[2]}}var i=e.inverse(t,!0);if(i.z=t.z||0,u){var o=r.transformMat4(a.vec3AsArray(),[i.x,i.y,i.z],u);i={x:o[0],y:o[1],z:o[2]}}return i},this.forward=function(t){return Array.isArray(t)?t.map(m._forward):m._forward(t)},this.inverse=function(t){return Array.isArray(t)?t.map(m._inverse):m._inverse(t)},t=t||{};try{this.source(t.source)}catch(e){console.error("Can't use transform source: "+t.source),this.source("EPSG:4326")}try{this.target(t.target)}catch(e){console.error("Can't use transform target: "+t.target),this.target("EPSG:3857")}return this};d.defs=i.defs,d.lookup=function(t){var e,r,o=n(5616),a=o.Deferred();return i.defs.hasOwnProperty(t)?a.resolve(i.defs[t]):2!==(r=t.split(":")).length||"EPSG"!==r[0].toUpperCase()?a.reject("Invalid projection code").promise():(e=r[1],o.ajax({url:"https://epsg.io/?q="+e+"&format=json"}).done((function(e){var n=(e.results||[])[0];return n&&n.proj4?(i.defs(t,n.proj4),o.when(i.defs[t])):a.reject(e).promise()})))},d.transformCoordinates=function(t,e,n,i){"use strict";if(t===e||Array.isArray(n)&&!n.length)return n;if(Array.isArray(n)&&n.length>=3&&3===i&&!a.isObject(n[0])&&!c.test(t)&&!c.test(e))return d.transformCoordinatesFlatArray3(t,e,n);if(Array.isArray(n)&&n.length&&a.isObject(n[0])&&"x"in n[0]&&"y"in n[0]){var r=t.match(u),o=e.match(u);if(r&&o&&r[1]===o[1]&&r[3]===o[3])return"z"in n[0]?n.map((function(t){return{x:+t.x,y:-t.y,z:+t.z||0}})):n.map((function(t){return{x:+t.x,y:-t.y}}))}var s,l=d({source:t,target:e});return a.isObject(n)&&"x"in n&&"y"in n?(s=l.forward({x:+n.x,y:+n.y,z:+n.z||0},!0),"z"in n?s:{x:s.x,y:s.y}):Array.isArray(n)&&1===n.length&&a.isObject(n[0])&&"x"in n[0]&&"y"in n[0]?(s=l.forward({x:+n[0].x,y:+n[0].y,z:+n[0].z||0},!0),"z"in n[0]?[s]:[{x:s.x,y:s.y}]):d.transformCoordinatesArray(l,n,i)},d.transformCoordinatesArray=function(t,e,n){var i,r,o,s,l,u,c,d,h,f={};function p(){if(Array.isArray(e[0]))if(2===e[0].length)s=function(t){return+e[t][0]},l=function(t){return+e[t][1]},c=function(t,e,n){d[t]=[e,n]};else{if(3!==e[0].length)throw new Error("Invalid coordinates. Requires two or three components per array");s=function(t){return+e[t][0]},l=function(t){return+e[t][1]},u=function(t){return+e[t][2]},c=function(t,e,n,i){d[t]=[e,n,i]}}else if(2===e.length)o=2,s=function(t){return+e[t*o]},l=function(t){return+e[t*o+1]},c=function(t,e,n){d[t]=e,d[t+1]=n};else if(3===e.length)o=3,s=function(t){return+e[t*o]},l=function(t){return+e[t*o+1]},u=function(t){return+e[t*o+2]},c=function(t,e,n,i){d[t]=e,d[t+1]=n,d[t+2]=i};else{if(!n)throw new Error("Invalid coordinates");if(2!==n&&3!==n)throw new Error("Number of components should be two or three");o=n,s=function(t){return+e[t]},l=function(t){return+e[t+1]},2===n?c=function(t,e,n){d[t]=e,d[t+1]=n}:(u=function(t){return+e[t+2]},c=function(t,e,n,i){d[t]=e,d[t+1]=n,d[t+2]=i})}}if(u=function(){return 0},!Array.isArray(e))throw new Error("Coordinates are not valid");if((d=[]).length=e.length,r=e.length,!e.length)return d;for(Array.isArray(e[0])||a.isObject(e[0])?(o=1,Array.isArray(e[0])?p():a.isObject(e[0])&&function(){if(!(e[0]&&"x"in e[0]&&"y"in e[0]))throw new Error("Invalid coordinates");s=function(t){return+e[t].x},l=function(t){return+e[t].y},"z"in e[0]?(u=function(t){return+e[t].z},c=function(t,e,n,r){d[i]={x:e,y:n,z:r}}):c=function(t,e,n){d[t]={x:e,y:n}}}()):p(),i=0;i<r;i+=o)f.x=s(i),f.y=l(i),f.z=u(i),h=t.forward(f,!0),c(i,h.x,h.y,h.z);return d},d.transformCoordinatesFlatArray3=function(t,e,n){"use strict";var r,o=t.match(u),a=e.match(u);if(o&&a&&o[1]===a[1]&&o[3]===a[3]){for(r=n.length-3+1;r>=0;r-=3)n[r]*=-1;return n}var s,l=i.Proj(t),c=i.Proj(e),d={},h=new i(l,c);for(r=n.length-3;r>=0;r-=3)d.x=+n[r],d.y=+n[r+1],d.z=+(n[r+2]||0),s=h.forward(d,!0),n[r]=s.x,n[r+1]=s.y,n[r+2]=void 0===s.z?d.z:s.z;return n},d.affineForward=function(t,e){"use strict";var n,i=t.origin,r=t.scale||{x:1,y:1,z:1};for(n=0;n<e.length;n+=1)e[n].x=(e[n].x-i.x)*r.x,e[n].y=(e[n].y-i.y)*r.y,e[n].z=((e[n].z||0)-(i.z||0))*r.z;return e},d.affineInverse=function(t,e){"use strict";var n,i=t.origin,r=t.scale||{x:1,y:1,z:1};for(n=0;n<e.length;n+=1)e[n].x=e[n].x/r.x+i.x,e[n].y=e[n].y/r.y+i.y,e[n].z=(e[n].z||0)/r.z+(i.z||0);return e},d.sphericalDistance=function(t,e,n,r,o){if(r=r||"EPSG:4326",o=o||i.WGS84,(n=n||r)!==r){var a=d.transformCoordinates(n,r,[t,e]);t=a[0],e=a[1]}var s=t.y*Math.PI/180,l=e.y*Math.PI/180,u=(e.x-t.x)*Math.PI/180,c=Math.sin(s),h=Math.cos(s),f=Math.sin(l),p=Math.cos(l),m=Math.atan2(Math.pow(Math.pow(p*Math.sin(u),2)+Math.pow(h*f-c*p*Math.cos(u),2),.5),c*f+h*p*Math.cos(u));return o.a*m},d.vincentyDistance=function(t,e,n,r,o,a){if(r=r||"EPSG:4326",o=o||i.WGS84,a=a||100,(n=n||r)!==r){var s=d.transformCoordinates(n,r,[t,e]);t=s[0],e=s[1]}var l,u,c,h,f,p,m,g,y,v,x=o.a,_=o.b||o.a*(1-(o.f||1/o.rf)),b=o.f||(o.rf?1/o.rf:1-_/x),w=t.y*Math.PI/180,M=e.y*Math.PI/180,A=((e.x-t.x)%360+360)%360*Math.PI/180,T=Math.atan((1-b)*Math.tan(w)),C=Math.atan((1-b)*Math.tan(M)),E=Math.sin(T),k=Math.cos(T),S=Math.sin(C),O=Math.cos(C),P=A,L=A+2*Math.PI;if(w===M&&!A)return{distance:0,alpha1:0,alpha2:0};for(v=a;v>0&&Math.abs(P-L)>1e-12;v-=1)l=Math.pow(Math.pow(O*Math.sin(P),2)+Math.pow(k*S-E*O*Math.cos(P),2),.5),u=E*S+k*O*Math.cos(P),c=Math.atan2(l,u),h=k*O*Math.sin(P)/l,L=P,P=A+(1-(m=b/16*(f=1-Math.pow(h,2))*(4+b*(4-3*f))))*b*h*(c+m*l*((p=u-(f?2*E*S/f:0))+m*u*(2*Math.pow(p,2)-1)));return v?{distance:_*(1+(g=f*(x*x-_*_)/(_*_))/16384*(4096+g*(g*(320-175*g)-768)))*(c-(y=g/1024*(256+g*(g*(74-47*g)-128)))*l*(p+y/4*(u*(2*Math.pow(p,2)-1)-y/6*p*(4*l*l-3)*(4*Math.pow(p,2)-3)))),alpha1:Math.atan2(O*Math.sin(P),k*S-E*O*Math.cos(P)),alpha2:Math.atan2(k*Math.sin(P),-E*O+k*S*Math.cos(P))}:void 0},d.onlyInvertedY=function(t,e){var n=t.match(u),i=e.match(u);return n&&i&&n[1]===i[1]&&n[3]===i[3]},d.proj4=i,t.exports=d},3170:function(t){t.exports={}},5734:function(t,e,n){var i=n(2493).d3,r=n(8524),o=n(4626),a=n(1098).registerWidget,s=n(642),l=n(7376);n(1159);var u=function(t){"use strict";if(!(this instanceof u))return new u(t);r.call(this,t);var e=this,n=[],o=t.width||300,a=t.ticks||6,d=this._init;return this._init=function(){d();var n=e.canvas();i.select(n).attr("class","color-legend-container"),e.popup=i.select(n).append("div").attr("class","color-legend-popup"),t.categories&&e.categories(t.categories)},this._draw=function(){if(i.select(e.canvas()).selectAll("div.geojs-color-legends").remove(),n.length){i.select(e.canvas()).style("display","block");var t=i.select(e.canvas()).append("div").attr("class","geojs-color-legends"),r=o;n.forEach((function(n,i){var o=t.append("div").attr("class","geojs-color-legend");o.append("div").attr("class","geojs-title").text(n.name);var a=o.append("svg").attr("class","svg").attr("width",r).attr("height","40px").attr("viewBox","-20 0 "+r+" 40");"discrete"===n.type?e._drawDiscrete(a,r-40,n):"continuous"===n.type&&e._drawContinous(a,r-40,n)}))}else i.select(e.canvas()).style("display","none")},this.categories=function(t){return void 0===t?n:(n=e._prepareCategories(t),e._draw(),e)},this.addCategories=function(t){return n=n.concat(e._prepareCategories(t)),e._draw(),e},this.removeCategories=function(t){return n=n.filter((function(e){return-1===t.indexOf(e)})),e._draw(),e},this._prepareCategories=function(t){return t.forEach((function(t){t.color=t.colors.map((function(t){return s.convertColorToHex(t,!0)}))})),t},this._drawDiscrete=function(t,n,r){function o(t){var e=Math.ceil(t.domain().length/a),n=t.domain().filter((function(t,n){return n%e==0}));return i.axisBottom(t).tickFormat(i.format(".2s")).tickValues(n)}if(-1===["linear","log","sqrt","pow","quantile","ordinal"].indexOf(r.scale))throw new Error("unsupported scale");var l,u,d,h,f,p,m;if("ordinal"===r.scale){d=i.scaleOrdinal().domain(r.domain).range(r.colors),e._renderDiscreteColors(t,r.domain,d,n,(function(t){return t})),h=i.scaleBand().domain(r.domain).rangeRound([0,n]);var g=Math.ceil(r.domain.length/a),y=r.domain.filter((function(t,e){return e%g==0}));f=i.axisBottom(h).tickValues(y)}else if("quantile"===r.scale){l=[0,r.colors.length],p=s.range(0,r.colors.length-1),u=i.scaleQuantile().domain(r.domain).range(p),d=i.scaleQuantize().domain(l).range(r.colors),e._renderDiscreteColors(t,p,d,n,(function(t){return u.invertExtent(t).join(" - ")}));var v=[u.invertExtent(0)[0]];v=v.concat(p.map((function(t){return u.invertExtent(t)[1]}))),f=o(h=i.scalePoint().domain(v).range([0,n]))}else if(-1!==["linear","log","sqrt","pow"].indexOf(r.scale)){l=[0,r.colors.length],u=i["scale"+r.scale.charAt(0).toUpperCase()+r.scale.slice(1)]().domain(r.domain).range(l).nice(),d=i.scaleQuantize().domain(l).range(r.colors),p=s.range(0,r.colors.length-1);var x=Math.max.apply(null,r.domain.map((function(t){return c(t)})));e._renderDiscreteColors(t,p,d,n,(function(t){return e._popupFormatter(u.invert(t),x)+" - "+e._popupFormatter(u.invert(t+1),x)})),(m=p.slice()).push(r.colors.length),f=o(h=i.scalePoint().domain(m.map((function(t){return u.invert(t)}))).range([0,n]))}r.endAxisLabelOnly&&f.tickValues([h.domain()[0],h.domain()[h.domain().length-1]]),e._renderAxis(t,f)},this._renderDiscreteColors=function(t,n,i,r,o){t.selectAll("rect").data(n).enter().append("rect").attr("width",r/n.length).attr("height","20px").attr("fill",(function(t){return i(t)})).attr("transform",(function(t,e){return"translate("+e*r/n.length+" ,0)"})).on("mousemove",(function(t,n){e._showPopup(t,o(n))})).on("mouseout",e._hidePopup)},this._drawContinous=function(t,n,r){var o,s,u;if(-1===["linear","log","sqrt","pow"].indexOf(r.scale))throw new Error("unsupported scale");var d=[0];for(u=1;u<r.domain.length-1;u++)d.push(n/(r.domain.length-1)*u);d.push(n),o=i["scale"+r.scale.charAt(0).toUpperCase()+r.scale.slice(1)]().domain(r.domain).range(d).nice(),"log"===r.scale&&r.base&&o.base(r.base),"pow"===r.scale&&r.exponent&&o.exponent(r.exponent);var h=l(),f=Math.max.apply(null,r.domain.map((function(t){return c(t)}))),p=t.append("defs").append("linearGradient").attr("id","gradient"+h);for(p.append("stop").attr("offset","0%").attr("stop-color",r.colors[0]),u=1;u<r.colors.length-1;u++)p.append("stop").attr("offset",(100/(r.colors.length-1)*u).toFixed(6)+"%").attr("stop-color",r.colors[u]);p.append("stop").attr("offset","100%").attr("stop-color",r.colors[r.colors.length-1]),t.append("rect").attr("fill","url(#gradient"+h+")").attr("width",n).attr("height","20px").on("mousemove",(function(t){var n=o.invert(i.pointer(t)[0]),r=e._popupFormatter(n,f);e._showPopup(t,r)})).on("mouseout",e._hidePopup),s=i.axisBottom(o).ticks(a,".2s"),r.endAxisLabelOnly&&s.tickValues([r.domain[0],r.domain[r.domain.length-1]]),e._renderAxis(t,s)},this._renderAxis=function(t,e){t.append("g").attr("class","axis x").attr("transform","translate(0, 20)").call(e)},this._popupFormatter=function(t,e){return t=parseFloat(t.toFixed(8)),e=Math.min(e,c(t)),e=Math.min(e,Math.max(3,7-Math.trunc(t).toString().length)),i.format("."+e+"f")(t)},this._showPopup=function(t,n){var r=i.pointer(t,e.canvas());e.popup.text(n);var o=e.canvas().clientWidth,a=e.popup.node().clientWidth;e.popup.style("left",r[0]-(r[0]+a-o>-10?a:0)+"px").style("top",r[1]-22+"px").transition().duration(200).style("opacity",1)},this._hidePopup=function(){e.popup.transition().duration(200).style("opacity",0)},this};function c(t){if(!isFinite(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;){if(!isFinite(t*e))return 0;e*=10,n++}return n}o(u,r),a("dom","colorLegend",u),t.exports=u},8524:function(t,e,n){var i=n(8738),r=n(4626),o=n(1098).registerWidget,a=function(t){"use strict";if(!(this instanceof a))return new a(t);i.call(this,t);var e=this;return this._init=function(){return t.hasOwnProperty("parent")&&t.parent.addChild(e),e._createCanvas(),e._appendCanvasToParent(),e.canvas().addEventListener("mousedown",(function(t){t.stopPropagation()})),e.reposition(),e},this._createCanvas=function(){e.canvas(document.createElement(t.el||"div"))},this};r(a,i),o("dom","dom",a),t.exports=a},4812:function(t,e,n){t.exports={colorLegendWidget:n(5734),domWidget:n(8524),legendWidget:n(9443),scaleWidget:n(2894),sliderWidget:n(3019),svgWidget:n(7854),uiLayer:n(4231),widget:n(8738)}},9443:function(t,e,n){var i=n(7854),r=n(4626),o=n(1098).registerWidget,a=function(t){"use strict";if(!(this instanceof a))return new a(t);i.call(this,t);var e=n(2493).d3,r=n(6409),o=this,s=[],l=null,u=null,c=null;this.categories=function(t){return void 0===t?s.slice():(s=t.slice().map((function(t){return"line"===t.type&&(t.style.fill=!1,t.style.stroke=!0),t})),o.draw(),o)},this.size=function(){var t,n=1,i=e.select(o.canvas()).append("text").style("opacity",1e-6);return s.forEach((function(t){i.text(t.name),n=Math.max(n,i.node().getBBox().width)})),i.remove(),t=20*(s.length+1),{width:n+50,height:t}},this.draw=function(){function t(t){t.style("fill",(function(t){return t.style.fill||void 0===t.style.fill?t.style.fillColor:"none"})).style("fill-opacity",(function(t){return void 0===t.style.fillOpacity?1:t.style.fillOpacity})).style("stroke",(function(t){return t.style.stroke||void 0===t.style.stroke?t.style.strokeColor:"none"})).style("stroke-opacity",(function(t){return void 0===t.style.strokeOpacity?1:t.style.strokeOpacity})).style("stroke-width",(function(t){return void 0===t.style.strokeWidth?1.5:t.style.strokeWidth}))}o._init(),c.attr("height",o.size().height+24).style("display",null);var e=o._scale(),n=u.selectAll("g.geo-label").data(s,(function(t){return t.name})).enter().append("g").attr("class","geo-label").attr("transform",(function(t,n){return"translate(0,"+e.y(n)+")"}));return t(n.filter((function(t){return"point"!==t.type&&"line"!==t.type})).append("rect").attr("x",0).attr("y",-6).attr("rx",5).attr("ry",5).attr("width",40).attr("height",12)),t(n.filter((function(t){return"point"===t.type})).append("circle").attr("cx",20).attr("cy",0).attr("r",6)),t(n.filter((function(t){return"line"===t.type})).append("line").attr("x1",0).attr("y1",0).attr("x2",40).attr("y2",0)),n.append("text").attr("x","50px").attr("y",0).attr("dy","0.3em").text((function(t){return t.name})),o.reposition(),o},this._scale=function(){return{x:e.scaleLinear().domain([0,1]).range([0,o.size().width]),y:e.scaleLinear().domain([0,s.length-1]).range([6,o.size().height-6])}},this._init=function(){l||(o._createCanvas(),o._appendCanvasToParent());var t=o.size().width+24+4,n=o.size().height+24+4;l&&l.remove(),e.select(o.canvas()).attr("width",t).attr("height",n),l=e.select(o.canvas()).append("g"),u=l.append("g").attr("transform","translate("+[14,14]+")"),(c=u.append("rect").attr("x",-12).attr("y",-12).attr("width",t-4).attr("height",n-4).attr("rx",3).attr("ry",3)).style("stroke","black").style("stroke-width","1.5px").style("fill","white").style("fill-opacity",.75).style("display","none"),u.on("mousedown",(function(t){t.stopPropagation()})),u.on("mouseover",(function(){c.transition().duration(250).style("fill-opacity",1)})),u.on("mouseout",(function(){c.transition().duration(250).style("fill-opacity",.75)})),o.reposition()},this.geoOn(r.resize,(function(){o.draw()}))};r(a,i),o("dom","legend",a),t.exports=a},2894:function(t,e,n){var i=n(5616),r=n(4626),o=n(7854),a=n(1098).registerWidget;n(615);var s=function(t){"use strict";if(!(this instanceof s))return new s(t);o.call(this,t);var e=n(6409),r=n(5325),a=n(642),l=n(2493).d3,u=this,c=this._exit,d=i.extend({},{scale:1,maxWidth:200,maxHeight:"left"===t.orientation||"right"===t.orientation?200:20,orientation:"bottom",strokeWidth:2,tickLength:10,units:"si",distance:function(t,e,n){return"+proj=longlat +axis=enu"===n?Math.sqrt(a.distance2dSquared(t,e)):r.sphericalDistance(t,e,n)}},t);this._init=function(){return u._createCanvas(),u._appendCanvasToParent(),u.reposition(),l.select(u.canvas()).attr("width",d.maxWidth).attr("height",d.maxHeight),u.geoOn(e.pan,u._update),u._render(),u},this._exit=function(){u.geoOff(e.pan,u._update),c()},this._vertical=function(){return"left"===d.orientation||"right"===d.orientation},this._scaleValue=function(t,e,n){var i,r,o,a=[{multiple:1,digits:1},{multiple:1.5,digits:2},{multiple:2,digits:1},{multiple:3,digits:1},{multiple:5,digits:1},{multiple:8,digits:1}],l=(n=s.unitsTable[n]||n||s.unitsTable[d.units]||d.units)[0];return n.forEach((function(e){t>=e.scale*(e.minimum||1)&&(l=e)})),r=Math.floor(Math.log(t/l.scale)/Math.log(l.basis||10)),(a=l.multiples||a).forEach((function(e){var n=l.scale*e.multiple*Math.pow(10,r);n<=t&&(i=e,o=n)})),{html:(i.multiple*Math.pow(10,r)).toFixed(Math.max(0,-r+i.digits-1))+" "+l.unit,value:o,pixels:o/t*e,power:r,multiple:i,unitRecord:l,originalValue:t,originalPixels:e}},this._render=function(){var t,e,n,r,o,a,s=l.select(u.canvas()),c=u.layer().map(),h=d.maxWidth,f=d.maxHeight,p=d.strokeWidth,m=.5*p,g=d.tickLength,y=u._vertical();if(t=(y?d.maxHeight:d.maxWidth)-p,n={x:(e={x:(e=i(s.node()).offset()).left+("left"===d.orientation?h-m:m),y:e.top+("top"===d.orientation?f-m:m)}).x+(y?0:t),y:e.y+(y?t:0)},(r=d.distance(c.displayToGcs(e,null),c.displayToGcs(n,null),c.gcs())*d.scale)<=0||!isFinite(r))console.warn("The distance calculated for the scale is invalid: "+r);else{switch(o=u._scaleValue(r,t),y?f=o.pixels+p:h=o.pixels+p,s.attr("width",h).attr("height",f),s.select("polyline").empty()&&s.append("polyline").classed("geojs-scale-widget-bar",!0).attr("fill","none").attr("stroke-width",p),s.select("text").empty()&&s.append("text").classed("geojs-scale-widget-text",!0),d.orientation){case"bottom":a=[[m,g],[m,m],[h-m,m],[h-m,g]],s.select("text").attr("x",h/2).attr("y",2*p).attr("text-anchor","middle").attr("dominant-baseline","hanging");break;case"top":a=[[m,f-g],[m,f-m],[h-m,f-m],[h-m,f-g]],s.select("text").attr("x",h/2).attr("y",f-2*p).attr("text-anchor","middle").attr("dominant-baseline","alphabetic");break;case"left":a=[[h-g,m],[h-m,m],[h-m,f-m],[h-g,f-m]],s.select("text").attr("x",h-2*p).attr("y",f/2).attr("text-anchor","end").attr("dominant-baseline","middle");break;case"right":a=[[g,m],[m,m],[m,f-m],[g,f-m]],s.select("text").attr("x",2*p).attr("y",f/2).attr("text-anchor","start").attr("dominant-baseline","middle")}s.select("polyline").attr("points",a.map((function(t){return t.join(",")})).join(" ")),s.select("text").html(o.html)}},this._update=function(){u._render()},this.options=function(t,e){if(void 0===t){var n=i.extend({},d);return n.position=u.position(void 0,!0),n}return"string"==typeof t&&void 0===e?"position"===t?u.position(void 0,!0):d[t]:(void 0===e?d=i.extend(!0,d,t):d[t]=e,(t.position||"position"===t)&&u.position(t.position||e),u._render(),u)}};r(s,o),s.unitsTable={si:[{unit:"nm",scale:1e-9},{unit:"μm",scale:1e-6},{unit:"mm",scale:.001},{unit:"m",scale:1},{unit:"km",scale:1e3}],miles:[{unit:"in",scale:.0254},{unit:"in",scale:.0254,basis:12,multiples:[{multiple:1,digits:1},{multiple:1.5,digits:2},{multiple:2,digits:1},{multiple:3,digits:1},{multiple:6,digits:1},{multiple:9,digits:1}]},{unit:"ft",scale:.3048},{unit:"mi",scale:1609.344}],decmiles:[{unit:"mi",scale:1609.344}]},s.areaUnitsTable={si:[{unit:"nm²",scale:1e-18},{unit:"μm²",scale:1e-12},{unit:"mm²",scale:1e-6},{unit:"m²",scale:1},{unit:"km²",scale:1e6}],hectares:[{unit:"ha",scale:1e4}],decmiles:[{unit:"mi²",scale:2589988.110336}],miles:[{unit:"in²",scale:64516e-8},{unit:"ft²",scale:.09290304},{unit:"mi²",scale:2589988.110336}],acres:[{unit:"pl",scale:25.29285264},{unit:"rd",scale:1011.7141056},{unit:"ac",scale:4046.8564224}]},s.formatUnit=function(t,e,n,i){if(null!=t){if(!Array.isArray(e)){if(!(n=n||s.unitsTable)||!n[e||"si"])return;e=n[e||"si"]}var r;for(r=0;r<e.length-1&&!(t<e[r+1].scale);r+=1);if(t/=(e=e[r]).scale,!((i=Math.max(0,-Math.ceil(Math.log10(t))+(void 0===i||i<0?3:i)))>10)){var o=t.toFixed(i);if(i){for(;"0"===o.substr(o.length-1);)o=o.substr(0,o.length-1);"."===o.substr(o.length-1)&&(o=o.substr(0,o.length-1))}return o+" "+e.unit}}},a("dom","scale",s),t.exports=s},3019:function(t,e,n){var i=n(7854),r=n(4626),o=n(1098).registerWidget,a=function(t){"use strict";if(!(this instanceof a))return new a(t);i.call(this,t);var e,r,o,s,l,u,c,d=n(2493).d3,h=n(6409),f=this,p=this._exit,m=t.width||20,g=t.height||160,y=t.width?.5*t.width:10;function v(t,e,n,i,r){var o=e.append("g"),a=r/1024;return o.append("g").append("g").attr("transform","translate("+n+","+i+") scale("+a+") translate(-512,-512)").append("path").attr("d",t).attr("class","geo-glyphicon"),o}c={white:"#f4f4f4",black:"#505050"},this.size=function(){return{width:m,height:g}},this._init=function(){f._createCanvas(),f._appendCanvasToParent(),f.reposition();var t=d.select(f.canvas()),n=f.layer().map();function i(e,i){var o=r.invert(d.pointer(event,t.node())[1]),a=n.zoomRange();o=(1-o)*(a.max-a.min)+a.min,i?n.transition({zoom:o,ease:d.easeCubicInOut,duration:500,done:f._update()}):(n.zoom(o),f._update()),e.stopPropagation()}function a(){d.select(this).attr("filter",null),u.selectAll("circle,rect,path").transition().duration(100).style("fill",(function(t){return c[t.fill]||null})).style("stroke",(function(t){return c[t.stroke]||null}))}return t.attr("width",m).attr("height",g),e=d.scaleLinear().domain([-4,4]).range([0,m]),r=d.scaleLinear().domain([0,1]).range([1.5*m,g-1.5*m]),t=t.append("g").classed("geo-ui-slider",!0),u=t,(o=t.append("g")).append("circle").datum({fill:"white",stroke:null}).classed("geo-zoom-in",!0).attr("cx",e(0)).attr("cy",r(0)-m+2).attr("r",(m-2)/2).style("cursor","pointer").on("click",(function(){var t=n.zoom();n.transition({zoom:t+1,ease:d.easeCubicInOut,duration:500})})).on("mousedown",(function(t){t.stopPropagation()})),v("M512 81.92c-237.568 0-430.080 192.614-430.080 430.080 0 237.568 192.563 430.080 430.080 430.080s430.080-192.563 430.080-430.080c0-237.517-192.563-430.080-430.080-430.080zM564.326 564.326v206.182h-104.653v-206.182h-206.234v-104.653h206.182v-206.234h104.704v206.182h206.182v104.704h-206.182z",o,e(0),r(0)-m+2,m+4).style("cursor","pointer").style("pointer-events","none").select("path").datum({fill:"black",stroke:null}),(s=t.append("g")).append("circle").datum({fill:"white",stroke:null}).classed("geo-zoom-out",!0).attr("cx",e(0)).attr("cy",r(1)+m-2).attr("r",(m-2)/2).style("cursor","pointer").on("click",(function(){var t=n.zoom();n.transition({zoom:t-1,ease:d.easeCubicInOut,duration:500})})).on("mousedown",(function(t){t.stopPropagation()})),v("M512 81.92c-237.568 0-430.080 192.614-430.080 430.080 0 237.568 192.563 430.080 430.080 430.080s430.080-192.563 430.080-430.080c0-237.517-192.563-430.080-430.080-430.080zM770.56 459.674v104.704h-517.12v-104.704h517.12z",s,e(0),r(1)+m-2,m+4).style("cursor","pointer").style("pointer-events","none").select("path").datum({fill:"black",stroke:null}),t.append("rect").datum({fill:"white",stroke:"black"}).classed("geo-zoom-track",!0).attr("x",e(0)-m/6).attr("y",r(0)).attr("rx",m/10).attr("ry",m/10).attr("width",m/3).attr("height",g-3*m).style("cursor","pointer").on("click",(function(t){i(t,!0)})),l=t.append("rect").datum({fill:"black",stroke:null}).classed("geo-zoom-nub",!0).attr("x",e(-4)).attr("y",r(.5)-y/2).attr("rx",3).attr("ry",3).attr("width",m).attr("height",y).style("cursor","pointer").on("mousedown",(function(t){d.select(document).on("mousemove.geo.slider",(function(){i(t)})),d.select(document).on("mouseup.geo.slider",(function(){i(t),d.select(document).on(".geo.slider",null)})),t.stopPropagation()})),u.selectAll("*").on("mouseover",(function(){d.select(this).attr("filter","url(#geo-highlight)"),u.selectAll("rect,path,circle").transition().duration(100).style("fill",(function(t){return t.fill||null})).style("stroke",(function(t){return t.stroke||null}))})).on("mouseout",a),f.geoOn(h.zoom,f._update),a(),f._update(),f},this._exit=function(){f.geoOff(h.zoom,f._update),u.remove(),p()},this._update=function(t){var e=f.layer().map(),n=e.zoomRange(),i=e.zoom(),o=d.scaleLinear();i=(t=t||{}).value||i,o.domain([n.min,n.max]).range([1,0]).clamp(!0),l.attr("y",r(o(i))-y/2)}};r(a,i),o("dom","slider",a),t.exports=a},7854:function(t,e,n){var i=n(8738),r=n(4626),o=n(1098).registerWidget,a=function(t){"use strict";if(!(this instanceof a))return new a(t);i.call(this,t);var e=n(2493),r=this,o=this._exit,s=null;return this._init=function(){var e;return t.hasOwnProperty("parent")&&(t.parent.addChild(r),e=t.parent.canvas()),r._createCanvas(e),r.canvas().addEventListener("mousedown",(function(t){t.stopPropagation()})),r.reposition(),r},this._exit=function(){s&&s._exit(),o()},this._createCanvas=function(t){var n={layer:r.layer(),widget:!0};t&&(n.d3Parent=t),(s=e(n))._resize=function(){},r.canvas(s.canvas().node())},this};r(a,i),o("dom","svg",a),t.exports=a},4231:function(t,e,n){var i=n(4626),r=n(1098).registerLayer,o=n(5156),a=function(t){"use strict";var e=n(1098).createWidget;if(t.renderer="dom",t.sticky=!1,!(this instanceof a))return new a(t);o.call(this,t);var i=this,r=this._exit;this.createWidget=function(t,n){var r=e(t,i,n);return n&&"parent"in n||i.addChild(r),r._init(n),i.modified(),r},this.deleteWidget=function(t){return t._exit(),i.removeChild(t),i.modified(),i},this._exit=function(){i.children().forEach((function(t){i.deleteWidget(t)})),r()}};i(a,o),r("ui",a),t.exports=a},8738:function(t,e,n){var i=n(4626),r=n(5402),o=n(5616),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},r.call(this,t);var e=n(6409),i=this,s=this._exit,l=t.layer,u=null,c=void 0===t.position?{left:0,top:0}:t.position;if(!(void 0===t.parent||t.parent instanceof a))throw new Error("Parent must be of type geo.gui.widget");t.parent&&i.parent(t.parent),this._init=function(){return i.modified(),i},this._exit=function(){if(i.children().forEach((function(t){i.removeChild(t),t._exit()})),i.layer().geoOff(e.pan,i.repositionEvent),i.parentCanvas().removeChild&&i.canvas())try{i.parentCanvas().removeChild(i.canvas())}catch(t){}s()},this.layer=function(){return l||i.parent()&&i.parent().layer()},this._createCanvas=function(){throw new Error("Must be defined in derived classes")},this.canvas=function(t){return void 0===t?u:(u=t,i)},this._appendCanvasToParent=function(){i.parentCanvas().appendChild(i.canvas())},this.parentCanvas=function(){return i.parent()?i.parent().canvas():i.layer().canvas()},this.position=function(t,n){if(void 0!==t){i.layer().geoOff(e.pan,i.repositionEvent);var r={};for(var a in c)c.hasOwnProperty(a)&&(r[a]=null);return(c=t).hasOwnProperty("x")&&c.hasOwnProperty("y")&&i.layer().geoOn(e.pan,i.repositionEvent),i.reposition(o.extend(r,i.position())),i}if(c.hasOwnProperty("x")&&c.hasOwnProperty("y")&&!n){var s=i.layer().map().gcsToDisplay(c);return{left:s.x,top:s.y,right:null,bottom:null}}return c},this.reposition=function(t){if(t=t||i.position(),i.canvas()&&i.canvas().style)for(var e in i.canvas().style.position="absolute",t)t.hasOwnProperty(e)&&(/^\s*(-|\+)?(\d+(\.\d*)?|\d*\.\d+)([eE](-|\+)?\d+)?\s*$/.test(t[e])?i.canvas().style[e]=parseFloat(parseFloat(t[e]).toFixed(3))+"px":i.canvas().style[e]=t[e]);return i},this.repositionEvent=function(){return i.reposition()},this.isInViewport=function(){var t=i.position(),e=i.layer();return t.left>=0&&t.top>=0&&t.left<=e.width()&&t.top<=e.height()},c.hasOwnProperty("x")&&c.hasOwnProperty("y")&&this.layer().geoOn(e.pan,i.repositionEvent)};i(a,r),t.exports=a},5966:function(t,e,n){var i=n(5616);function r(t,e,n){this._group=t,this._zoom=e,this._points=[],this._clusters=[],this._count=0,this._parent=null,this._coord=null;var i=this;(n||[]).forEach((function(t){i._add(t)}))}function o(t){var e,o,a=n(7235);for(this._opts=i.extend({maxZoom:18,radius:5},t),this._clusters={},this._points={},e=this._opts.maxZoom;e>=0;e-=1)o=this._opts.radius*Math.pow(2,-e),this._clusters[e]=new a(o),this._points[e]=new a(o);this._topClusterLevel=new r(this,-1)}r.prototype._add=function(t){var e=1;t instanceof r?(this._clusters.push(t),e=t._count):this._points.push(t),t._parent=this,this._increment(e)},r.prototype._increment=function(t){this._coord=null,this._count+=t,this._parent&&this._parent._increment(t)},r.prototype.count=function(){return this._count},r.prototype.each=function(t){var e;for(e=0;e<this._points.length;e+=1)t.call(this,this._points[e],this._zoom);for(e=0;e<this._clusters.length;e+=1)this._clusters[e].each.call(this._clusters[e],t)},r.prototype.coords=function(){var t,e={x:0,y:0};if(this._coord)return this._coord;for(t=0;t<this._points.length;t+=1)e.x+=this._points[t].x,e.y+=this._points[t].y;for(t=0;t<this._clusters.length;t+=1)e.x+=this._clusters[t].coords().x*this._clusters[t].count(),e.y+=this._clusters[t].coords().y*this._clusters[t].count();return{x:e.x/this.count(),y:e.y/this.count()}},o.prototype.addPoint=function(t){var e,n,o,a,s,l;for(e=this._opts.maxZoom;e>=0;e-=1){if(n=this._clusters[e].getNearObject(t))return void n._add(t);if(n=this._points[e].getNearObject(t)){if(o=n._parent)for(l=o._points.length-1;l>=0;l-=1)if(o._points[l]===n){o._points.splice(l,1),o._increment(-1);break}for(o||i.noop(),a=new r(this,e,[n,t]),this._clusters[e].addObject(a,a.coords()),s=a,l=e-1;l>o._zoom;l-=1)s=new r(this,l,[s]),this._clusters[l].addObject(s,s.coords());for(o._add(s),l=e;l>=0&&this._points[l].removeObject(n,n);l-=1);return}this._points[e].addObject(t,t)}this._topClusterLevel._add(t)},o.prototype.points=function(t){return t=Math.min(Math.max(Math.floor(t),0),this._opts.maxZoom-1),this._points[Math.floor(t)].contents()},o.prototype.clusters=function(t){return t=Math.min(Math.max(Math.floor(t),0),this._opts.maxZoom-1),this._clusters[Math.floor(t)].contents()},t.exports=o},5637:function(t,e,n){var i=n(1949),r=n(7715);r=r.__esModule?r.default:r;var o={maxCount:1e3,count:0,memo:{}};function a(t,e){return o.count+=1,o.count>=o.maxCount&&(o.memo={},o.count=0),o.memo[t]=e,e}var s={convertColor:function(t){if(null==t||void 0!==t.r&&void 0!==t.g&&void 0!==t.b)return t;if(void 0!==o.memo[t])return o.memo[t];var e,n=t;if("string"==typeof t){var i=t.toLowerCase();if(r.hasOwnProperty(i))t={r:r[i][0]/255,g:r[i][1]/255,b:r[i][2]/255};else if("#"===t.charAt(0))4===t.length||5===t.length?(5===t.length&&(e=parseInt(t.slice(4),16)/15),t=4352*(3840&(t=parseInt(t.slice(1,4),16)))+272*(240&t)+17*(15&t)):7!==t.length&&9!==t.length||(9===t.length&&(e=parseInt(t.slice(7),16)/255),t=parseInt(t.slice(1,7),16));else if("transparent"===i)e=t=0;else if(i.indexOf("(")>=0)for(var l=0;l<s.cssColorConversions.length;l+=1){var u=s.cssColorConversions[l].regex.exec(i);if(u)return a(n,t=s.cssColorConversions[l].process(i,u))}}return isFinite(t)&&(t={r:((16711680&t)>>16)/255,g:((65280&t)>>8)/255,b:(255&t)/255}),void 0!==e&&t&&void 0!==t.r&&(t.a=e),a(n,t)},convertColorAndOpacity:function(t,e,n){return(t=s.convertColor(t))&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b||(t=s.convertColor(n||{r:0,g:0,b:0})),t&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b||(t={r:0,g:0,b:0}),t={r:isFinite(t.r)&&t.r>=0?t.r<=1?+t.r:1:0,g:isFinite(t.g)&&t.g>=0?t.g<=1?+t.g:1:0,b:isFinite(t.b)&&t.b>=0?t.b<=1?+t.b:1:0,a:i.isNonNullFinite(t.a)&&t.a>=0&&t.a<1?+t.a:1},i.isNonNullFinite(e)&&e<1&&(t.a=e<=0?0:t.a*e),t},convertColorToHex:function(t,e){var n,i=s.convertColor(t);return n=i.r||i.g||i.b?"#"+((1<<24)+(Math.round(255*i.r)<<16)+(Math.round(255*i.g)<<8)+Math.round(255*i.b)).toString(16).slice(1):"#000000",void 0!==i.a&&e&&(i.a<1||"needed"!==e)&&(n+=(256+Math.round(255*i.a)).toString(16).slice(1)),n},convertColorToRGBA:function(t){var e=s.convertColor(t);return e||(e={r:0,g:0,b:0}),(!i.isNonNullFinite(e.a)||e.a>1)&&(e.a=1),"rgba("+Math.round(255*e.r)+", "+Math.round(255*e.g)+", "+Math.round(255*e.b)+", "+ +(+e.a).toFixed(5)+")"},cssAngleUnitsBase:{deg:360,grad:400,rad:2*Math.PI,turn:1},cssNumberRegex:"[+-]?(?:\\d+\\.?\\d*|\\.\\d+)(?:[eE][+-]?\\d+)?"};s.cssColorConversions=[{name:"rgb",regex:new RegExp("^\\s*rgba?\\(\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*,?\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*,?\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*([/,]?\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*)?\\)\\s*$"),process:function(t,e){return t={r:Math.min(1,Math.max(0,+e[1]/(e[2]?100:255))),g:Math.min(1,Math.max(0,+e[3]/(e[4]?100:255))),b:Math.min(1,Math.max(0,+e[5]/(e[6]?100:255)))},e[7]&&(t.a=Math.min(1,Math.max(0,+e[8]/(e[9]?100:1)))),t}},{name:"hsl",regex:new RegExp("^\\s*hsla?\\(\\s*("+s.cssNumberRegex+")\\s*(deg|grad|rad|turn)?\\s*,?\\s*("+s.cssNumberRegex+")\\s*%\\s*,?\\s*("+s.cssNumberRegex+")\\s*%\\s*([/,]?\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*)?\\)\\s*$"),process:function(t,e){var n=function(t,e,n){return 6*(n-=Math.floor(n))<1?t+(e-t)*n*6:6*n<3?e:6*n<4?t+(e-t)*(2/3-n)*6:t},i=+e[1]/(s.cssAngleUnitsBase[e[2]]||360),r=Math.min(1,Math.max(0,+e[3]/100)),o=Math.min(1,Math.max(0,+e[4]/100)),a=o<=.5?o*(r+1):o+r-o*r,l=2*o-a;return t={r:n(l,a,i+1/3),g:n(l,a,i),b:n(l,a,i-1/3)},e[5]&&(t.a=Math.min(1,Math.max(0,+e[6]/(e[7]?100:1)))),t}}],t.exports=s},1949:function(t,e,n){function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var r=n(5616),o=n(1960);o=o.__esModule?o.default:o;var a,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",u='<svg xmlns="http://www.w3.org/2000/svg"><foreignObject width="100%" height="100%"></foreignObject></svg>',c={},d=200,h=15;function f(){var t;for(t=0;t<arguments.length;t+=1)if(isFinite(arguments[t]))return arguments[t]}var p={pointInPolygon:function(t,e,n,i){return e.outer&&(n=e.inner,e=e.outer),!(e.length<3)&&(!(i&&i.min&&i.max&&(t.x<i.min.x||t.y<i.min.y||t.x>i.max.x||t.y>i.max.y))&&p.distanceToPolygon2d(t,n?{outer:e,inner:n}:e,!0)>0)},pointToTriangleBasis2d:function(t,e,n,i){var r=n.x-e.x,o=i.x-e.x,a=n.y-e.y,s=i.y-e.y,l=t.x-e.x,u=t.y-e.y,c=r*s-o*a;if(c)return{x:(l*s-u*o)/c,y:(l*-a+u*r)/c}},isReadyImage:function(t,e){return!!(t instanceof Image&&t.complete&&t.src&&(t.naturalWidth&&t.naturalHeight||e))},isReadyVideo:function(t,e){return!!(t instanceof HTMLVideoElement&&t.src&&void 0!==t.HAVE_CURRENT_DATA&&(t.videoWidth&&t.videoHeight&&t.readyState>=t.HAVE_CURRENT_DATA||e&&t.error))},isFunction:function(t){return"function"==typeof t},ensureFunction:function(t){return p.isFunction(t)?t:function(){return t}},isNonNullFinite:function(t){return isFinite(t)&&null!==t&&!1!==t&&""!==t},randomString:function(t){var e,n,i;for(t=t||8,e="",n=0;n<t;n+=1)i=Math.floor(62*Math.random()),e+=l.substring(i,i+1);return e},normalizeCoordinates:function(t){return t=t||{},Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:{x:f(t.x,t.longitude,t.lng,t.lon,0),y:f(t.y,t.latitude,t.lat,0),z:f(t.z,t.elevation,t.elev,t.height,0)}},range:function(t,e,n){n=n||1;for(var i=[],r=t;r<=e;r+=n)i.push(r);return i},compareArrays:function(t,e){return t.length===e.length&&t.every((function(t,n){return t===e[n]}))},vec3AsArray:function(){return[0,0,0]},mat3AsArray:function(){return[1,0,0,0,1,0,0,0,1]},mat4AsArray:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},getGeomBuffer:function(t,e,n,i,r){i=void 0===i?.2:i,r=void 0===r?.1:r;var o=t.sourceByName(e),a=o.data(),s=Math.floor((i+1)*n);if((a=o.data())instanceof Float32Array&&(a.length===n||a.length>=n&&a.length<=s))return a;var l=n;return a instanceof Float32Array&&a.length&&n&&r>0&&(l=Math.floor((r+1)*n)),a=new Float32Array(l),o.setData(a),a},adjustActions:function(t){var e,n;for(n=0;n<t.length;n+=1){if(e=t[n],"string"===r.type(e.input)){var i={};i[e.input]=!0,e.input=i}if(e.modifiers||(e.modifiers={}),"string"===r.type(e.modifiers)){var o={};o[e.modifiers]=!0,e.modifiers=o}}},addAction:function(t,e,n){n?t.push(e):t.unshift(e),p.adjustActions(t)},hasAction:function(t,e,n,i){e&&e.action&&(n=e.name,i=e.owner,e=e.action);for(var r=0;r<t.length;r+=1)if(!(e&&t[r].action!==e||n&&t[r].name!==n||i&&t[r].owner!==i))return t[r];return null},removeAction:function(t,e,n,i){var o,a=0;do{(o=p.hasAction(t,e,n,i))&&(t.splice(r.inArray(o,t),1),a+=1)}while(o);return a},actionMatch:function(t,e,n){var i;if(n.some((function(n){for(var r in n.input)if(n.input.hasOwnProperty(r)&&(!1===n.input[r]&&t[r]||n.input[r]&&!t[r]))return!1;for(var o in n.modifiers)if(n.modifiers.hasOwnProperty(o)&&(!1===n.modifiers[o]&&e[o]||n.modifiers[o]&&!e[o]))return!1;return i=n,!0})))return i},pixelCoordinateParams:function(t,e,n,i,o){var a,s,l;t&&(a=(t=r(t)).innerWidth(),s=t.innerHeight()),o=o||n,l=(i=i||e)!==e||o!==n;var u=Math.min(0,Math.floor(Math.log(Math.min((a||i)/i,(s||o)/o))/Math.log(2))),c=Math.ceil(Math.log(Math.max(e/i,n/o))/Math.log(2));return{map:{node:t,ingcs:"+proj=longlat +axis=esu",gcs:"+proj=longlat +axis=enu",maxBounds:{left:0,top:0,right:e,bottom:n},unitsPerPixel:Math.pow(2,c),center:{x:e/2,y:n/2},min:u,max:c,zoom:u,clampBoundsX:!0,clampBoundsY:!0,clampZoom:!0},layer:{maxLevel:c,wrapX:!1,wrapY:!1,tileOffset:function(){return{x:0,y:0}},attribution:"",tileWidth:i,tileHeight:o,tileRounding:Math.ceil,tilesAtZoom:l?function(t){var r=Math.pow(2,c-t);return{x:Math.ceil(e/i/r),y:Math.ceil(n/o/r)}}:void 0,tilesMaxBounds:l?function(t){var i=Math.pow(2,c-t);return{x:Math.floor(e/i),y:Math.floor(n/i)}}:void 0}}},centerFromPerimeter:function(t){var e,n,i,r,o,a;if(t&&t.outer&&(t=t.outer),t&&t.length){if(1===t.length)return{x:t[0].x,y:t[0].y};for(e={x:0,y:0},o=0,n=t[t.length-1],a=0;a<t.length;a+=1)i=n,n=t[a],r=Math.sqrt(Math.pow(i.x-n.x,2)+Math.pow(i.y-n.y,2)),e.x+=(n.x+i.x)*r,e.y+=(n.y+i.y)*r,o+=2*r;return e.x/=o,e.y/=o,o?e:{x:n.x,y:n.y}}},distance2dSquared:function(t,e){var n=t.x-e.x,i=t.y-e.y;return n*n+i*i},distance2dToLineSquared:function(t,e,n){var i=n.x-e.x,r=n.y-e.y,o=i*i+r*r,a=0;return o&&(a=((t.x-e.x)*i+(t.y-e.y)*r)/o,a=Math.max(0,Math.min(1,a))),p.distance2dSquared(t,{x:e.x+a*i,y:e.y+a*r})},distanceToPolygon2d:function(t,e,n){for(var i,r,o=e.outer||e,a=!1,s=0,l=o.length,u=l-1;s<l;u=s,s+=1){var c=o[s],d=o[u];c.y>t.y!=d.y>t.y&&t.x<(d.x-c.x)*(t.y-c.y)/(d.y-c.y)+c.x&&(a=!a),r=n?1:p.distance2dToLineSquared(t,c,d),(void 0===i||r<i)&&(i=r)}return e.inner&&e.inner.forEach((function(e){var r=p.distanceToPolygon2d(t,e,n);r*r<i&&(i=r*r),r>0&&(a=!a)})),(a?1:-1)*Math.sqrt(i)},triangleTwiceSignedArea2d:function(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)},crossedLineSegmentPolygon2d:function(t,e,n){var i,r,o=n.outer||n,a=o.length;for(i=0,r=a-1;i<a;r=i,i+=1)if(p.crossedLineSegments2d(t,e,o[i],o[r]))return!0;if(n.inner)for(i=0;i<n.inner.length;i+=1)if(p.crossedLineSegmentPolygon2d(t,e,n.inner[i]))return!0;return!1},crossedLineSegments2d:function(t,e,n,i){return!(t.x>n.x&&t.x>i.x&&e.x>n.x&&e.x>i.x||t.x<n.x&&t.x<i.x&&e.x<n.x&&e.x<i.x||t.y>n.y&&t.y>i.y&&e.y>n.y&&e.y>i.y||t.y<n.y&&t.y<i.y&&e.y<n.y&&e.y<i.y)&&(!(t.x===n.x&&t.y===n.y||t.x===i.x&&t.y===i.y||e.x===n.x&&e.y===n.y||e.x===i.x&&e.y===i.y)&&!(p.triangleTwiceSignedArea2d(t,e,n)*p.triangleTwiceSignedArea2d(t,e,i)>0||p.triangleTwiceSignedArea2d(n,i,t)*p.triangleTwiceSignedArea2d(n,i,e)>0))},segmentCrossesLineList2d:function(t,e,n){return n.some((function(n){return n.some((function(i,r){return!!r&&p.crossedLineSegments2d(t,e,n[r-1],i)}))}))},rdpLineSimplify:function(t,e,n,i){if(t.length<=2||e<0)return t;var r,o,a,s=-1,l=e*e;if(n){for(r=1;r<t.length;r+=1)(o=p.distance2dSquared(t[0],t[r]))>s&&(s=o,a=r);return 4*s<=l?t.slice(a,a+1):(t=t.slice(a).concat(t.slice(0,a+1)),(t=p.rdpLineSimplify(t,e,!1,i)).splice(t.length-1),t)}for(r=1;r<t.length-1;r+=1)(o=p.distance2dToLineSquared(t[r],t[0],t[t.length-1]))>s&&(s=o,a=r);if(s<=l&&(!i||!p.segmentCrossesLineList2d(t[0],t[t.length-1],i)))return[t[0],t[t.length-1]];var u=t.slice(0,a+1),c=t.slice(a),d=p.rdpLineSimplify(u,e,!1,i?i.concat([c]):null),h=p.rdpLineSimplify(c,e,!1,i?i.concat([u]):null);return d.slice(0,d.length-1).concat(h)},getMinMaxValues:function(t,e,n,i){if(t.length&&(i||!r.isNumeric(e)||!r.isNumeric(n))){var o,a,s=t[0],l=t[0];for(a=t.length-1;a>0;a-=1)(o=t[a])<s&&(s=o),o>l&&(l=o);(!r.isNumeric(e)||i&&s>e)&&(e=s),(!r.isNumeric(n)||i&&l<n)&&(n=l)}return{min:e,max:n}},wrapAngle:function(t){return(t%=2*Math.PI)<-Math.PI?t+=2*Math.PI:t>=Math.PI&&(t-=2*Math.PI),t},escapeUnicodeHTML:function(t){return t.replace(/./g,(function(t){var e=t.charCodeAt(0);return e<127?t:"&#"+e.toString(10)+";"}))},dereferenceElements:function(t){var e=[];return r("img,image",t).each((function(){var t=r(this),n=t.is("image")?"href":"src";if(t.attr(n)){var i=new Image;("http"===t.attr(n).substr(0,4)||t[0].crossOrigin)&&(i.crossOrigin=t[0].crossOrigin||"anonymous");var o=r.Deferred();i.onload=function(){var e=document.createElement("canvas");e.width=i.naturalWidth,e.height=i.naturalHeight,e.getContext("2d").drawImage(i,0,0),t.attr(n,e.toDataURL("image/png")),"data:image"!==t.attr(n).substr(0,10)&&t.remove(),o.resolve()},i.onerror=function(){t.remove(),o.resolve()},i.src=t.attr(n),e.push(o)}})),e},dereferenceCssUrlsRegex:/url\(["']?(http[^)"']+|[^:)"']+)["']?\)/g,dereferenceCssUrls:function(t,e,n,i,o){var a=[],s=[];if(t=(t=t.replace(/\/\*[^\0]*?\*\//g,"")).replace(/\r/g,"\n").replace(/\s+\n/g,"\n").replace(/\n\s+/g,"\n").replace(/\n\n+/g,"\n"),o){var l=/(^[^?#]*)\/[^?#/]*([?#]|$)/g.exec(o);o=l&&l[1]?l[1]+"/":null}t.replace(p.dereferenceCssUrlsRegex,(function(t,e){var n=a.length,i=r.Deferred(),l=new XMLHttpRequest;return a.push(i),s.push(""),/^[^/:][^:]*(\/|$)/g.exec(e)&&o&&(e=o+e),l.open("GET",e,!0),l.responseType="arraybuffer",l.onload=function(){if(200===this.status){var t,e=new Uint8Array(this.response),r=new Array(e.length);for(t=0;t<e.length;t+=1)r[t]=String.fromCharCode(e[t]);r=r.join(""),s[n]="url(data:"+l.getResponseHeader("content-type")+";base64,"+btoa(r)+")"}i.resolve()},l.onerror=i.resolve,l.send(),t})),r.when.apply(r,a).then((function(){var r=0;t=t.replace(p.dereferenceCssUrlsRegex,(function(t,e){return s[(r+=1)-1]})),void 0===i?e.text(t):e.style[i]=t,n.resolve()}))},htmlToImageSupported:function(){if(void 0===s){var t=r.Deferred(),e=r(u);e.attr({width:"10px",height:"10px","text-rendering":"optimizeLegibility"}),r("foreignObject",e).append("<div/>");var n=new Image;return n.onload=n.onerror=function(){var e=document.createElement("canvas");e.width=10,e.height=10,e.getContext("2d").drawImage(n,0,0);try{e.toDataURL(),s=!0}catch(t){console.warn("This browser does not support converting HTML to an image via SVG foreignObject. Some functionality will be limited.",t),s=!1}t.resolve(s)},n.src="data:image/svg+xml;base64,"+btoa(p.escapeUnicodeHTML((new XMLSerializer).serializeToString(e[0]))),t}return s},htmlToImage:function(t,e){var n,i=r.Deferred(),o=[p.htmlToImageSupported()],a=r(t);for(t=r(t).clone();e&&e>0;)(a=a.parent()).is("div")&&((n=r("<div>").attr({class:a.attr("class"),id:a.attr("id")}).css({width:"100%",height:"100%",background:"none",margin:0})).append(t),t=n),e-=1;r("canvas",t).remove(),r("*",t).addBack().each((function(){for(var t=this.style,e=0;e<t.length;e+=1){var n=this.style[e];if(this.style[n].match(p.dereferenceCssUrlsRegex)){var i=r.Deferred();p.dereferenceCssUrls(this.style[n],this,i,n),o.push(i)}}})),(n=r('<div xmlns="http://www.w3.org/1999/xhtml">')).css({width:a.width()+"px",height:a.height()+"px"}),n.append(r("<head>"));var s=r("<body>");return n.append(s),s.css({width:a.width()+"px",height:a.height()+"px",background:"none",margin:0}),s.append(t),o=o.concat(p.dereferenceElements(t)),r('style,link[rel="stylesheet"]').each((function(){var t=r('<style type="text/css">'),e=r.Deferred();if(r(this).is("style")){var i=r(this).text();p.dereferenceCssUrls(i,t,e)}else{var a=r(this).attr("href");r.get(a).done((function(n){p.dereferenceCssUrls(n,t,e,void 0,a)})).fail((function(n,i,r){console.warn("Failed to dereference "+a,i,r),t.remove(),e.resolve()}))}o.push(e),r("head",n).append(t)})),r.when.apply(r,o).then((function(){var t=r(u);t.attr({width:a.width()+"px",height:a.height()+"px","text-rendering":"optimizeLegibility"}),r("foreignObject",t).append(n);var e=new Image;p.htmlToImageSupported()?(e.onload=function(){i.resolve(e)},e.onerror=function(){console.warn("Failed to render html to image"),i.reject()},e.src="data:image/svg+xml;base64,"+btoa(p.escapeUnicodeHTML((new XMLSerializer).serializeToString(t[0])))):i.resolve(e)})),i},timeReport:function(t){return r.each(c,(function(t,e){e.count?(e.stddev=Math.sqrt(Math.abs((e.sum2-e.sum*e.sum/e.count)/e.count)),e.average=e.sum/e.count):(e.stddev=0,e.average=0)})),t?c[t]:c},timeFunctionStart:function(t,e){c[t]&&!e||(c[t]={count:0,sum:0,sum2:0,max:0,recent:[]}),c[t].start=window.performance.now()},timeFunctionStop:function(t){if(c[t]&&c[t].start){var e=window.performance.now()-c[t].start;c[t].start=null,c[t].sum+=e,c[t].sum2+=e*e,c[t].count+=1,c[t].max=Math.max(c[t].max,e),c[t].recent.push(e),c[t].recent.length>d&&c[t].recent.splice(0,c[t].recent.length-d)}},timeRequestAnimationFrame:function(t,e,n,i){c.requestAnimationFrame&&!e||(c.requestAnimationFrame={count:0,sum:0,sum2:0,max:0,above_threshold:0,recent:[],recentsub:[]}),n&&(h=n),i&&(d=i),t&&a?(window.requestAnimationFrame=a,a=null):t||a||(a=window.requestAnimationFrame,window.requestAnimationFrame=function(t){return a.call(window,(function(e){var n,i=c.requestAnimationFrame;i.timestamp!==e&&(i.nowDelta=window.performance.now()-e,Math.abs(i.nowDelta)<1e3&&(i.nowDelta=0),i.timestamp=e,i.subcalls=i.subcalls||0,i.start={sum:i.sum,sum2:i.sum2,count:i.count,max:i.max,above_threshold:i.above_threshold},i.recent.push([0]),i.recentsub.push([]),i.recent.length>d&&(i.recent.splice(0,i.recent.length-d),i.recentsub.splice(0,i.recentsub.length-d))),i.subcalls+=1,t.apply(this,arguments);var r=window.performance.now()-e;r-=i.nowDelta,i.sum=i.start.sum+r,i.sum2=i.start.sum2+r*r,i.count=i.start.count+1,i.max=Math.max(i.max,r),i.above_threshold=i.start.above_threshold+(r>=h?1:0),i.recent[i.recent.length-1]=r,(n=i.recentsub[i.recent.length-1]).push({total_duration:r,duration:r-(n.length?n[n.length-1].total_duration:0),callback:t.name||t})}))})},isObject:function(t){var e=i(t);return null!=t&&("object"===e||"function"===e)},identityFunction:function(t){return t},radiusEarth:o.WGS84.a};t.exports=p},7235:function(t,e,n){var i=n(5616),r={};r.Util={stamp:function(t){return t._leaflet_id=t._leaflet_id||++r.Util.lastId,t._leaflet_id},lastId:0};var o=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}};o.prototype={addObject:function(t,e){var n=this._getCoord(e.x),i=this._getCoord(e.y),o=this._grid,a=o[i]=o[i]||{},s=a[n]=a[n]||[],l=r.Util.stamp(t);e.obj=t,this._objectPoint[l]=e,s.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var n,i,o=this._getCoord(e.x),a=this._getCoord(e.y),s=this._grid,l=s[a]=s[a]||{},u=l[o]=l[o]||[];for(delete this._objectPoint[r.Util.stamp(t)],n=0,i=u.length;n<i;n++)if(u[n]===t)return u.splice(n,1),1===i&&delete l[o],!0},eachObject:function(t,e){var n,i,r,o,a,s,l=this._grid;for(n in l)for(i in a=l[n])for(r=0,o=(s=a[i]).length;r<o;r++)t.call(e,s[r])&&(r--,o--)},getNearObject:function(t){var e,n,i,o,a,s,l,u,c=this._getCoord(t.x),d=this._getCoord(t.y),h=this._objectPoint,f=this._sqCellSize,p=null;for(e=d-1;e<=d+1;e++)if(o=this._grid[e])for(n=c-1;n<=c+1;n++)if(a=o[n])for(i=0,s=a.length;i<s;i++)l=a[i],(u=this._sqDist(h[r.Util.stamp(l)],t))<f&&(f=u,p=l);return p},contents:function(){return i.map(this._objectPoint,(function(t){return t}))},_getCoord:function(t){return Math.floor(t/this._cellSize)},_sqDist:function(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}},t.exports=o},642:function(t,e,n){t.exports=Object.assign(n(1949),n(5637),n(208),n(269),{DistanceGrid:n(7235),ClusterGroup:n(5966),mesh:n(5905),polyops:n(5647)})},5905:function(t,e,n){t.exports={createColoredMesh:function(t,e){var i,r,o,a,s,l=n(5616),u=n(642),c=t.mesh,d=t.style.get("value"),h={used:void 0!==t.style("used")?t.style.get("used"):function(t,e){return u.isNonNullFinite(d(t,e))},opacity:t.style.get("opacity"),value:d},f=t._createMesh(e?{}:h,e?h:{});if(f.elementValues=!!e,!f.numVertices||!f.numElements)return f;var p=c.get("stepped")(f),m=c.get("opacityRange")(f),g=c.get("rangeValues")(f);if(f.stepped=!(void 0!==p&&!p),f.colorMap=[],f.minColor=l.extend({a:c.get("minOpacity")(f)||0},u.convertColor(c.get("minColor")(f))),f.maxColor=l.extend({a:c.get("maxOpacity")(f)||0},u.convertColor(c.get("maxColor")(f))),c.get("colorRange")(f).forEach((function(t,e){f.colorMap.push(l.extend({a:m&&void 0!==m[e]?m[e]:1},u.convertColor(t)))})),i=u.getMinMaxValues(f.value,c.get("min")(f),c.get("max")(f)),f.minValue=i.min,f.maxValue=i.max,g&&f.colorMap&&(g.length===f.colorMap.length+1||!p&&g.length===f.colorMap.length)||(g=null),g)for(s=1;s<g.length;s+=1)if(g[s-1]>g[s]){g=null;break}for(g&&(f.minValue=g[0],f.maxValue=g[g.length-1]),(o=f.maxValue-f.minValue)||(f.colorMap=f.colorMap.slice(0,1),o=1,g=null),f.rangeValues=g,f.factor=(f.colorMap.length-(p?0:1))/o,a=0;a<f.value.length;a+=1)if(r=f.value[a],g&&r>=f.minValue&&r<=f.maxValue){for(s=1;s<g.length;s+=1)if(r<=g[s]){f.value[a]=s-1+(r-g[s-1])/(g[s]-g[s-1]);break}}else f.value[a]=(r-f.minValue)*f.factor;return f}}},269:function(t,e,n){var i,r,o=n(5616),a=n(7945);t.exports={},t.exports.mockWebglRenderer=function(t){"use strict";var e=n(1611);if(void 0===t&&(t=!0),e._mocked)throw new Error("webgl renderer already mocked");var s={},l=function(t){s[t]=(s[t]||0)+1},u=function(t){return function(){l(t)}},c=0,d=function(t){return function(){return l(t),c+=1}},h={activeTexture:u("activeTexture"),attachShader:u("attachShader"),bindAttribLocation:u("bindAttribLocation"),bindBuffer:u("bindBuffer"),bindFramebuffer:u("bindFramebuffer"),bindTexture:u("bindTexture"),blendFuncSeparate:u("blendFuncSeparate"),bufferData:u("bufferData"),bufferSubData:u("bufferSubData"),checkFramebufferStatus:function(t){if(l("checkFramebufferStatus"),t===e.GL.FRAMEBUFFER)return e.GL.FRAMEBUFFER_COMPLETE},clear:u("clear"),clearColor:u("clearColor"),clearDepth:u("clearDepth"),compileShader:u("compileShader"),createBuffer:d("createBuffer"),createFramebuffer:u("createFramebuffer"),createProgram:d("createProgram"),createShader:d("createShader"),createTexture:d("createTexture"),deleteBuffer:u("deleteBuffer"),deleteProgram:u("deleteProgram"),deleteShader:u("deleteShader"),deleteTexture:u("deleteTexture"),detachShader:u("detachShader"),depthFunc:u("depthFunc"),disable:u("disable"),disableVertexAttribArray:u("disableVertexAttribArray"),drawArrays:u("drawArrays"),enable:u("enable"),enableVertexAttribArray:u("enableVertexAttribArray"),finish:u("finish"),getError:u("getError"),getExtension:d("getExtension"),getParameter:function(t){switch(l("getParameter"),t){case e.GL.ALIASED_POINT_SIZE_RANGE:return[1,64];case e.GL.DEPTH_BITS:return 16;case e.GL.MAX_TEXTURE_SIZE:return 4096}},getProgramParameter:function(t,n){if(l("getProgramParameter"),n===e.GL.LINK_STATUS)return!0},getShaderInfoLog:function(){return l("getShaderInfoLog"),"log"},getShaderParameter:function(t,n){if(l("getShaderParameter"),n===e.GL.COMPILE_STATUS)return!0},getSupportedExtensions:function(){return l("getSupportedExtensions"),[]},getUniformLocation:d("getUniformLocation"),isEnabled:function(t){if(l("isEnabled"),t===e.GL.BLEND)return!0},linkProgram:u("linkProgram"),pixelStorei:u("pixelStorei"),shaderSource:u("shaderSource"),texImage2D:u("texImage2D"),texParameteri:u("texParameteri"),uniform1iv:u("uniform1iv"),uniform1fv:u("uniform1fv"),uniform2fv:u("uniform2fv"),uniform3fv:u("uniform3fv"),uniform4fv:u("uniform4fv"),uniformMatrix3fv:u("uniformMatrix3fv"),uniformMatrix4fv:u("uniformMatrix4fv"),useProgram:u("useProgram"),vertexAttribPointer:u("vertexAttribPointer"),vertexAttrib3fv:u("vertexAttrib3fv"),viewport:u("viewport")};i=e.renderWindow;var f=function(){e.renderWindow=i;var t,n=new e.renderWindow;return e.renderWindow=f,n._setup=function(){var i,r=n.renderers(),a=n.windowSize(),s=n.windowPosition();for(t=o.extend({},e.GL,h),i=0;i<r.length;i+=1)(r[i].width()>a[0]||0===r[i].width()||r[i].height()>a[1]||0===r[i].height())&&r[i].resize(s[0],s[1],a[0],a[1]);return!0},n.context=function(){return t},n};e.renderWindow=f,r=a.supported,a.supported=function(){return!!t},a._maxTextureSize=4096,a._maxPointSize=64,e._mocked=!0,e.mockCounts=function(){return s}},t.exports.restoreWebglRenderer=function(){var t=n(1611);t._mocked&&(t.renderWindow=i,a.supported=r,delete t._mocked,delete t.mockCounts)}},5647:function(t,e,n){function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var o=n(6820),a=n(6211),s=n(1949),l={"+":"union","|":"union",add:"union","-":"difference",sub:"difference",subtract:"difference",minus:"difference","*":"intersect","&":"intersect",mul:"intersect",multiply:"intersect",x:"xor","^":"xor"};function u(t,e,n){for(t="select"+t.charAt(0).toUpperCase()+t.slice(1),o.epsilon(e);n.length>1;){for(var i=[],r=Math.ceil(n.length/2),a=0;a<r;a+=1){var s=n[a];if(a+r<n.length){var l=n[a+r];try{s=o.combine(s,l)}catch(t){s=o.segments(o.polygon(s)),l=o.segments(o.polygon(l));for(var u=20;u>=6;u-=1){o.epsilon(Math.pow(.1,u));try{s=o.combine(s,l);break}catch(t){}}o.epsilon(e)}s.combined?(s.combined=s.combined.filter((function(t){return Math.abs(t.start[0]-t.end[0])>e||Math.abs(t.start[1]-t.end[1])>e})),s=o[t](s)):console.warn("Failed in polygon functions."),s.segments=s.segments.filter((function(t){return Math.abs(t.start[0]-t.end[0])>e||Math.abs(t.start[1]-t.end[1])>e}))}i.push(s)}n=i}return n}function c(t,e,n){if(e=e||{},t.toPolygonList){if(e.style=t,!(t=t.toPolygonList(n)).length)return e.min=e.max=[0,0],e.epsilon=1e-10,t}else{if(e.style="",t.outer?(e.style="-outer",t=[[t.outer].concat(i(t.inner||[]))]):t.length&&t[0].outer&&(e.style="-outer-list",t=t.map((function(t){return[t.outer].concat(i(t.inner||[]))}))),!t.length)return e.style="flat-listlist"+e.style,e.min=e.max=[0,0],e.epsilon=1e-10,t;void 0!==t[0].x?(e.style="object",t=[[t.map((function(t){return[t.x,t.y]}))]]):void 0!==t[0][0].x?(e.style="object-list"+e.style,t=[t.map((function(t){return t.map((function(t){return[t.x,t.y]}))}))]):void 0===t[0][0][0]?(e.style="flat",t=[[t]]):void 0!==t[0][0][0].x?(e.style="object-listlist"+e.style,t=t.map((function(t){return t.map((function(t){return t.map((function(t){return[t.x,t.y]}))}))}))):void 0===t[0][0][0][0]?(e.style="flat-list",t=[t]):e.style="flat-listlist"+e.style}return e.min=[t[0][0][0][0],t[0][0][0][1]],e.max=[t[0][0][0][0],t[0][0][0][1]],t.forEach((function(t){return t.forEach((function(t){return t.forEach((function(t){t[0]<e.min[0]&&(e.min[0]=t[0]),t[0]>e.max[0]&&(e.max[0]=t[0]),t[1]<e.min[1]&&(e.min[1]=t[1]),t[1]>e.max[1]&&(e.max[1]=t[1])}))}))})),e.epsilon=1e-10*Math.max(Math.max(e.max[0],e.max[1]),Math.max(Math.abs(e.min[0]),Math.abs(e.min[1]))),t}function d(t,e,n){return e.style.fromPolygonList?e.style.fromPolygonList(t,n):(e.style.includes("object")&&(t=t.map((function(t){return t.map((function(t){return t.map((function(t){return{x:t[0],y:t[1]}}))}))}))),e.style.includes("outer")&&(t=[t.map((function(t){return{outer:t[0],inner:t.slice(1)}}))]),e.style.endsWith("listlist")||(t=e.style.endsWith("list")?t[0]:t[0][0]),t)}function h(t,e,i,r){var h=n(5325);t=l[t]||t,e.poly1&&(e=(r=e).poly1,i=r.poly2);var f=(r=r||{}).ingcs||(r.map?r.map.ingcs():e.gcs?e.gcs():e.layer&&e.layer().gcs?e.layer().gcs():e.layer?e.layer().map().ingcs():e.map instanceof a?e.map().ingcs():void 0),p=r.ingcs||(r.map?r.map.ingcs():i.gcs?i.gcs():i.layer&&i.layer().gcs?i.layer().gcs():i.layer?i.layer().map().ingcs():i.map instanceof a?i.map().ingcs():f),m=r.gcs||(r.map?r.map.gcs():e.layer?e.layer().map().gcs():e.map instanceof a?e.map().gcs():void 0),g={},y={};e=c(e,g,r),i=c(i,y,r),g.epsilon=r.epsilon1||g.epsilon,y.epsilon=r.epsilon2||g.epsilon,f&&m&&f!==m&&(e=e.map((function(t){return t.map((function(t){return h.transformCoordinates(f,m,t)}))}))),p&&m&&p!==m&&(i=i.map((function(t){return t.map((function(t){return h.transformCoordinates(p,m,t)}))})));var v=e.map((function(t){return o.segments({regions:t})})),x=i.map((function(t){return o.segments({regions:t})}));v=u(r.innerOperation||"union",g.epsilon,v),x=u(r.innerOperation||"union",y.epsilon,x);var _=v;v[0]&&x[0]?(v[0].inverted=!1,x[0].inverted=!1,_=u(t,Math.max(g.epsilon,y.epsilon),[v[0],x[0]])):x[0]&&(_=x);var b,w,M=function(t){var e=[],n=[],i=[],r=[];t.forEach((function(t){return o.polygon(t).regions.forEach((function(t){var e=t.map((function(t){return{x:t[0],y:t[1]}}));e.length<3||(r.push([]),n.forEach((function(t,i){s.pointInPolygon(e[0],t)?r[n.length].push(i):s.pointInPolygon(t[0],e)&&r[i].push(n.length)})),i.push(t),n.push(e))}))}));for(var a=Array(i.length),l=0;l<i.length;){for(var u=0;u<i.length;u+=1)void 0!==a[u]||r[u].length||(a[u]=e.length,e.push([i[u].reverse()]),l+=1);for(var c=0;c<i.length;c+=1)void 0===a[c]&&1===r[c].length&&void 0!==a[r[c][0]]&&(e[a[r[c][0]]].push(i[c]),a[c]=a[r[c][0]],l+=1);for(var d=0;d<i.length;d+=1)r[d]=r[d].filter((function(t){return void 0===a[t]}))}return e.length?e:[[]]}(_);return r.correspond&&function(t,e,n,i){var r={},o=[];n.forEach((function(t,e){return t.forEach((function(t){return t.forEach((function(t){var n="_"+t[0]+"_"+t[1];r[n]?-1===r[n].indexOf(e)&&r[n].push(e):r[n]=[e],o.length<=e&&o.push(0),o[e]+=1}))}))})),["poly1","poly2"].forEach((function(a){var s="poly1"===a?t:e,l="poly1"===a?"exact1":"exact2";i[a]=Array(s.length),i[l]=Array(s.length),s.forEach((function(t,e){var s={},u=0;t.forEach((function(t){return t.forEach((function(t){var e="_"+t[0]+"_"+t[1];r[e]?r[e].forEach((function(t){s[t]=(s[t]||0)+1})):u+=1}))})),Object.keys(s).forEach((function(r){s[r]!==o[+r]||u||t.length!==n[+r].length||(i[l][e]||(i[l][e]=[]),i[l][e].push(+r)),s[r]>=2&&(i[a][e]||(i[a][e]=[]),i[a][e].push(+r))}))}))}))}(e,i,M,r.correspond),f&&m&&f!==m&&(M=M.map((function(t){return t.map((function(t){return h.transformCoordinates(m,f,t)}))}))),d(M,{style:r.style||(b=M,w=g.style,w.fromPolygonList?w:b.length>1?w.includes("outer")?w+(w.endsWith("list")?"":"-list"):w.endsWith("listlist")?w:w+(w.endsWith("list")?"list":"-listlist"):1===b.length&&b[0].length>1?w.includes("outer")||w.endsWith("list")?w:w+"-list":w)},r)}function f(t){return function(e,n,i){return h(t,e,n,i)}}t.exports={union:f("union"),intersect:f("intersect"),difference:f("difference"),xor:f("xor"),toPolygonList:c,fromPolygonList:d}},208:function(t){var e=function(t,e,n,i,r){var o,a=0;return"boolean"!=typeof e&&(r=i,i=n,n=e,e=void 0),"function"!=typeof i&&(r=i,i=function(){}),function(){var s=this,l=+new Date-a,u=arguments;function c(){a=+new Date,n.apply(s,u)}i.apply(s,u),r&&!o&&c(),o&&clearTimeout(o),void 0===r&&l>t?c():!0!==e&&(o=setTimeout(r?function(){o=void 0}:c,void 0===r?t-l:t))}};t.exports={throttle:e,debounce:function(t,n,i,r){return"boolean"!=typeof n&&(r=i,i=n,n=!1),e(t,!1,i,r=r||function(){},!!n)}}},6858:function(t,e,n){var i=n(4626),r=n(1275),o=n(642),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(5616);t=t||{},r.call(this,t);var i=this,s=this._init;this.featureType="vector",this.origin=function(t){return void 0===t?i.style("origin"):(i.style("origin",t),i.dataTime().modified(),i)},this.delta=function(t){return void 0===t?i.style("delta"):(i.style("delta",t),i.dataTime().modified(),i)},this._init=function(t){s.call(i,t);var n=e.extend({},{strokeColor:"black",strokeWidth:2,strokeOpacity:1,originStyle:"none",endStyle:"arrow",origin:{x:0,y:0,z:0},delta:o.identityFunction,scale:null},void 0===t.style?{}:t.style);return void 0!==t.origin&&(n.origin=t.origin),i.style(n),i.dataTime().modified(),i}};i(a,r),t.exports=a},4081:function(t){t.exports="1.12.2"},6552:function(t,e,n){n(698).GL={ACTIVE_ATTRIBUTES:35721,ACTIVE_TEXTURE:34016,ACTIVE_UNIFORMS:35718,ALIASED_LINE_WIDTH_RANGE:33902,ALIASED_POINT_SIZE_RANGE:33901,ALPHA:6406,ALPHA_BITS:3413,ALWAYS:519,ARRAY_BUFFER:34962,ARRAY_BUFFER_BINDING:34964,ATTACHED_SHADERS:35717,BACK:1029,BLEND:3042,BLEND_COLOR:32773,BLEND_DST_ALPHA:32970,BLEND_DST_RGB:32968,BLEND_EQUATION:32777,BLEND_EQUATION_ALPHA:34877,BLEND_EQUATION_RGB:32777,BLEND_SRC_ALPHA:32971,BLEND_SRC_RGB:32969,BLUE_BITS:3412,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,BROWSER_DEFAULT_WEBGL:37444,BUFFER_SIZE:34660,BUFFER_USAGE:34661,BYTE:5120,CCW:2305,CLAMP_TO_EDGE:33071,COLOR_ATTACHMENT0:36064,COLOR_BUFFER_BIT:16384,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,COMPILE_STATUS:35713,COMPRESSED_TEXTURE_FORMATS:34467,CONSTANT_ALPHA:32771,CONSTANT_COLOR:32769,CONTEXT_LOST_WEBGL:37442,CULL_FACE:2884,CULL_FACE_MODE:2885,CURRENT_PROGRAM:35725,CURRENT_VERTEX_ATTRIB:34342,CW:2304,DECR:7683,DECR_WRAP:34056,DELETE_STATUS:35712,DEPTH_ATTACHMENT:36096,DEPTH_BITS:3414,DEPTH_BUFFER_BIT:256,DEPTH_CLEAR_VALUE:2931,DEPTH_COMPONENT:6402,DEPTH_COMPONENT16:33189,DEPTH_FUNC:2932,DEPTH_RANGE:2928,DEPTH_STENCIL:34041,DEPTH_STENCIL_ATTACHMENT:33306,DEPTH_TEST:2929,DEPTH_WRITEMASK:2930,DITHER:3024,DONT_CARE:4352,DST_ALPHA:772,DST_COLOR:774,DYNAMIC_DRAW:35048,ELEMENT_ARRAY_BUFFER:34963,ELEMENT_ARRAY_BUFFER_BINDING:34965,EQUAL:514,FASTEST:4353,FLOAT:5126,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,FRAGMENT_SHADER:35632,FRAMEBUFFER:36160,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_BINDING:36006,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_UNSUPPORTED:36061,FRONT:1028,FRONT_AND_BACK:1032,FRONT_FACE:2886,FUNC_ADD:32774,FUNC_REVERSE_SUBTRACT:32779,FUNC_SUBTRACT:32778,GENERATE_MIPMAP_HINT:33170,GEQUAL:518,GREATER:516,GREEN_BITS:3411,HIGH_FLOAT:36338,HIGH_INT:36341,INCR:7682,INCR_WRAP:34055,INT:5124,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,INVALID_ENUM:1280,INVALID_FRAMEBUFFER_OPERATION:1286,INVALID_OPERATION:1282,INVALID_VALUE:1281,INVERT:5386,KEEP:7680,LEQUAL:515,LESS:513,LINEAR:9729,LINEAR_MIPMAP_LINEAR:9987,LINEAR_MIPMAP_NEAREST:9985,LINES:1,LINE_LOOP:2,LINE_STRIP:3,LINE_WIDTH:2849,LINK_STATUS:35714,LOW_FLOAT:36336,LOW_INT:36339,LUMINANCE:6409,LUMINANCE_ALPHA:6410,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_CUBE_MAP_TEXTURE_SIZE:34076,MAX_FRAGMENT_UNIFORM_VECTORS:36349,MAX_RENDERBUFFER_SIZE:34024,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_TEXTURE_SIZE:3379,MAX_VARYING_VECTORS:36348,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VIEWPORT_DIMS:3386,MEDIUM_FLOAT:36337,MEDIUM_INT:36340,MIRRORED_REPEAT:33648,NEAREST:9728,NEAREST_MIPMAP_LINEAR:9986,NEAREST_MIPMAP_NEAREST:9984,NEVER:512,NICEST:4354,NONE:0,NOTEQUAL:517,NO_ERROR:0,ONE:1,ONE_MINUS_CONSTANT_ALPHA:32772,ONE_MINUS_CONSTANT_COLOR:32770,ONE_MINUS_DST_ALPHA:773,ONE_MINUS_DST_COLOR:775,ONE_MINUS_SRC_ALPHA:771,ONE_MINUS_SRC_COLOR:769,OUT_OF_MEMORY:1285,PACK_ALIGNMENT:3333,POINTS:0,POLYGON_OFFSET_FACTOR:32824,POLYGON_OFFSET_FILL:32823,POLYGON_OFFSET_UNITS:10752,RED_BITS:3410,RENDERBUFFER:36161,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_BINDING:36007,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_STENCIL_SIZE:36181,RENDERBUFFER_WIDTH:36162,RENDERER:7937,REPEAT:10497,REPLACE:7681,RGB:6407,RGB565:36194,RGB5_A1:32855,RGBA:6408,RGBA4:32854,SAMPLER_2D:35678,SAMPLER_CUBE:35680,SAMPLES:32937,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_BUFFERS:32936,SAMPLE_COVERAGE:32928,SAMPLE_COVERAGE_INVERT:32939,SAMPLE_COVERAGE_VALUE:32938,SCISSOR_BOX:3088,SCISSOR_TEST:3089,SHADER_TYPE:35663,SHADING_LANGUAGE_VERSION:35724,SHORT:5122,SRC_ALPHA:770,SRC_ALPHA_SATURATE:776,SRC_COLOR:768,STATIC_DRAW:35044,STENCIL_ATTACHMENT:36128,STENCIL_BACK_FAIL:34817,STENCIL_BACK_FUNC:34816,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,STENCIL_BITS:3415,STENCIL_BUFFER_BIT:1024,STENCIL_CLEAR_VALUE:2961,STENCIL_FAIL:2964,STENCIL_FUNC:2962,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_TEST:2960,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STREAM_DRAW:35040,SUBPIXEL_BITS:3408,TEXTURE:5890,TEXTURE0:33984,TEXTURE1:33985,TEXTURE10:33994,TEXTURE11:33995,TEXTURE12:33996,TEXTURE13:33997,TEXTURE14:33998,TEXTURE15:33999,TEXTURE16:34e3,TEXTURE17:34001,TEXTURE18:34002,TEXTURE19:34003,TEXTURE2:33986,TEXTURE20:34004,TEXTURE21:34005,TEXTURE22:34006,TEXTURE23:34007,TEXTURE24:34008,TEXTURE25:34009,TEXTURE26:34010,TEXTURE27:34011,TEXTURE28:34012,TEXTURE29:34013,TEXTURE3:33987,TEXTURE30:34014,TEXTURE31:34015,TEXTURE4:33988,TEXTURE5:33989,TEXTURE6:33990,TEXTURE7:33991,TEXTURE8:33992,TEXTURE9:33993,TEXTURE_2D:3553,TEXTURE_BINDING_2D:32873,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP:34067,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TRIANGLES:4,TRIANGLE_FAN:6,TRIANGLE_STRIP:5,UNPACK_ALIGNMENT:3317,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,UNSIGNED_BYTE:5121,UNSIGNED_INT:5125,UNSIGNED_SHORT:5123,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,VALIDATE_STATUS:35715,VENDOR:7936,VERSION:7938,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_SHADER:35633,VIEWPORT:2978,ZERO:0}},10:function(t,e,n){var i=n(698),r=n(4626),o=n(1982),a=n(3503);i.actor=function(){"use strict";if(!(this instanceof i.actor))return new i.actor;i.node.call(this);var t=this,e=a.create(),n=i.boundingObject.ReferenceFrame.Relative,r=null;return this.matrix=function(){return e},this.referenceFrame=function(){return n},this.mapper=function(){return r},this.setMapper=function(e){e!==r&&(r=e,t.boundsModified())},this.computeBounds=function(){if(null!=r){var n,i,a,s,l=t.computeBoundsTimestamp();(t.boundsDirtyTimestamp().getMTime()>l.getMTime()||r.boundsDirtyTimestamp().getMTime()>l.getMTime())&&(r.computeBounds(),i=[(n=r.bounds())[0],n[2],n[4]],a=[n[1],n[3],n[5]],o.transformMat4(i,i,e),o.transformMat4(a,a,e),s=[i[0]>a[0]?a[0]:i[0],i[0]>a[0]?i[0]:a[0],i[1]>a[1]?a[1]:i[1],i[1]>a[1]?i[1]:a[1],i[2]>a[2]?a[2]:i[2],i[2]>a[2]?i[2]:a[2]],t.setBounds(s[0],s[1],s[2],s[3],s[4],s[5]),l.modified())}else t.resetBounds()},t},r(i.actor,i.node)},8576:function(t,e,n){var i=n(698),r=n(4626);i.blendFunction=function(t,e){"use strict";if(!(this instanceof i.blendFunction))return new i.blendFunction(t,e);var n=t,r=e;return this.apply=function(t){t.m_context.blendFuncSeparate(n,r,i.GL.ONE,i.GL.ONE_MINUS_SRC_ALPHA)},this},i.blend=function(){"use strict";if(!(this instanceof i.blend))return new i.blend;i.materialAttribute.call(this,i.materialAttributeType.Blend);var t=!1,e=i.blendFunction(i.GL.SRC_ALPHA,i.GL.ONE_MINUS_SRC_ALPHA);return this.bind=function(n){return t=n.m_context.isEnabled(i.GL.BLEND),this.enabled()?(n.m_context.enable(i.GL.BLEND),e.apply(n)):n.m_context.disable(i.GL.BLEND),!0},this.undoBind=function(e){return t?e.m_context.enable(i.GL.BLEND):e.m_context.disable(i.GL.BLEND),!0},this},r(i.blend,i.materialAttribute)},3556:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.boundingObject=function(){"use strict";if(!(this instanceof i.boundingObject))return new i.boundingObject;i.object.call(this);var t=[0,0,0,0,0,0],e=o(),n=o();return e.modified(),n.modified(),this.bounds=function(){return t},this.hasValidBounds=function(t){return t[0]!==Number.MAX_VALUE&&t[1]!==-Number.MAX_VALUE&&t[2]!==Number.MAX_VALUE&&t[3]!==-Number.MAX_VALUE&&t[4]!==Number.MAX_VALUE&&t[5]!==-Number.MAX_VALUE},this.setBounds=function(n,i,r,o,a,s){if(this.hasValidBounds([n,i,r,o,a,s]))return t[0]=n,t[1]=i,t[2]=r,t[3]=o,t[4]=a,t[5]=s,this.modified(),e.modified(),!0},this.resetBounds=function(){t[0]=Number.MAX_VALUE,t[1]=-Number.MAX_VALUE,t[2]=Number.MAX_VALUE,t[3]=-Number.MAX_VALUE,t[4]=Number.MAX_VALUE,t[5]=-Number.MAX_VALUE,this.modified()},this.computeBounds=function(){},this.computeBoundsTimestamp=function(){return e},this.boundsDirtyTimestamp=function(){return n},this.resetBounds(),this},i.boundingObject.ReferenceFrame={Relative:0,Absolute:1},r(i.boundingObject,i.object)},4580:function(t,e,n){var i=n(698),r=n(4626),o=n(77),a=n(1982),s=n(4663),l=n(3503);i.camera=function(t){"use strict";if(!(this instanceof i.camera))return new i.camera(t);i.groupNode.call(this),t=t||{};var e=30*Math.PI/180,n=s.fromValues(0,0,1,1),r=s.fromValues(0,0,0,1),u=s.fromValues(0,1,0,0),c=1,d=s.fromValues(0,0,-1,0),h=l.create(),f=l.create(),p=o(),m=o(),g=-1,y=1,v=1,x=-1,_={zoom:1,tilesize:256},b=!1,w=[0,0,0,0],M=i.GL.COLOR_BUFFER_BIT|i.GL.DEPTH_BUFFER_BIT;return void 0!==t.parallelProjection&&(b=!!t.parallelProjection),this.setViewAspect=function(t){c=t,this.modified()},this.parallelExtents=function(){return _},this.setParallelExtents=function(t){var e,n,i=["width","height","zoom","tilesize"],r=!1;for(e=0;e<i.length;e+=1)void 0!==t[n=i[e]]&&t[n]!==_[n]&&(_[n]=t[n],r=!0);if(r&&_.width&&_.height&&void 0!==_.zoom&&_.tilesize){var o=this.unitsPerPixel(_.zoom,_.tilesize);y=o*_.width/2,g=-y,v=o*_.height/2,x=-v,this.modified()}},this.unitsPerPixel=function(t,e){return e=e||256,360*Math.pow(2,-t)/e},this.viewMatrix=function(){return this.computeViewMatrix()},this.setViewMatrix=function(t,e){e?h=t.slice():l.copy(h,t),p.modified()},this.projectionMatrix=function(){return this.computeProjectionMatrix()},this.setProjectionMatrix=function(t){l.copy(f,t),m.modified()},this.clearMask=function(){return M},this.clearColor=function(){return w},this.clearDepth=function(){return 1},this.computeDirectionOfProjection=function(){a.subtract(d,r,n),a.normalize(d,d),this.modified()},this.computeViewMatrix=function(){return p.getMTime()<this.getMTime()&&(l.lookAt(h,n,r,u),p.modified()),h},this.computeProjectionMatrix=function(){return m.getMTime()<this.getMTime()&&(b?l.ortho(f,g,y,x,v,.01,1e4):l.perspective(f,e,c,.01,1e4),m.modified()),f},this.computeDirectionOfProjection(),this},r(i.camera,i.groupNode)},7695:function(t,e,n){var i=n(698);i.data=function(){"use strict";if(!(this instanceof i.data))return new i.data;this.type=function(){}},i.data.raster=0,i.data.point=1,i.data.lineString=2,i.data.polygon=3,i.data.geometry=10},4831:function(t,e,n){var i=n(698);i.event={},i.event.keyPress="vgl.event.keyPress",i.event.mousePress="vgl.event.mousePress",i.event.mouseRelease="vgl.event.mouseRelease",i.event.contextMenu="vgl.event.contextMenu",i.event.configure="vgl.event.configure",i.event.enable="vgl.event.enable",i.event.mouseWheel="vgl.event.mouseWheel",i.event.keyRelease="vgl.event.keyRelease",i.event.middleButtonPress="vgl.event.middleButtonPress",i.event.startInteraction="vgl.event.startInteraction",i.event.enter="vgl.event.enter",i.event.rightButtonPress="vgl.event.rightButtonPress",i.event.middleButtonRelease="vgl.event.middleButtonRelease",i.event.char="vgl.event.char",i.event.disable="vgl.event.disable",i.event.endInteraction="vgl.event.endInteraction",i.event.mouseMove="vgl.event.mouseMove",i.event.mouseOut="vgl.event.mouseOut",i.event.expose="vgl.event.expose",i.event.timer="vgl.event.timer",i.event.leftButtonPress="vgl.event.leftButtonPress",i.event.leave="vgl.event.leave",i.event.rightButtonRelease="vgl.event.rightButtonRelease",i.event.leftButtonRelease="vgl.event.leftButtonRelease",i.event.click="vgl.event.click",i.event.dblClick="vgl.event.dblClick"},7327:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.primitive=function(){"use strict";if(!(this instanceof i.primitive))return new i.primitive;var t=0,e=0,n=null;return this.indices=function(){return n},this.numberOfIndices=function(){return n.length},this.primitiveType=function(){return t},this.setPrimitiveType=function(e){t=e},this.indicesValueType=function(){return e},this.setIndicesValueType=function(t){e=t},this.setIndices=function(t){n=new Uint16Array(t)},this},i.triangles=function(){"use strict";return this instanceof i.triangles?(i.primitive.call(this),this.setPrimitiveType(i.GL.TRIANGLES),this.setIndicesValueType(i.GL.UNSIGNED_SHORT),this):new i.triangles},r(i.triangles,i.primitive),i.points=function(){"use strict";return this instanceof i.points?(i.primitive.call(this),this.setPrimitiveType(i.GL.POINTS),this.setIndicesValueType(i.GL.UNSIGNED_SHORT),this):new i.points},r(i.points,i.primitive),i.sourceData=function(t){"use strict";if(!(this instanceof i.sourceData))return new i.sourceData(t);var e={},n=[],r=(t=t||{}).name||"Source "+(new Date).toISOString(),o=function(){this.m_numberOfComponents=0,this.m_dataType=0,this.m_dataTypeSize=0,this.m_normalized=!1,this.m_stride=0,this.m_offset=0};return this.data=function(){return n},this.getData=function(){return this.data()},this.dataToFloat32Array=function(){return n instanceof Float32Array||(n=new Float32Array(n)),n},this.setData=function(t){t instanceof Array||t instanceof Float32Array?n=t instanceof Float32Array?t:t.slice(0):console.log("[error] Requires array")},this.addAttribute=function(t,n,i,r,a,s,l){if(!e.hasOwnProperty(t)){var u=new o;u.m_dataType=n,u.m_dataTypeSize=i,u.m_offset=r,u.m_stride=a,u.m_numberOfComponents=s,u.m_normalized=l,e[t]=u}},this.hasKey=function(t){return e.hasOwnProperty(t)},this.keys=function(){return Object.keys(e)},this.attributeNumberOfComponents=function(t){return e.hasOwnProperty(t)?e[t].m_numberOfComponents:0},this.normalized=function(t){return!!e.hasOwnProperty(t)&&e[t].m_normalized},this.attributeDataType=function(t){if(e.hasOwnProperty(t))return e[t].m_dataType},this.attributeOffset=function(t){return e.hasOwnProperty(t)?e[t].m_offset:0},this.attributeStride=function(t){return e.hasOwnProperty(t)?e[t].m_stride:0},this.pushBack=function(t){},this.insert=function(t){var e;if(!n.length&&t.length&&t instanceof Float32Array)n=t;else if(n.slice||!n.length&&t.slice||(n=Array.prototype.slice.call(n)),t.length)if(!n.length&&t.slice)n=t.slice(0);else for(e=0;e<t.length;e+=1)n[n.length]=t[e];else n[n.length]=t},this.name=function(){return r},this},i.sourceDataAnyfv=function(t,e,n){"use strict";return this instanceof i.sourceDataAnyfv?(i.sourceData.call(this,n),this.addAttribute(e,i.GL.FLOAT,4,0,4*t,t,!1),this.pushBack=function(t){this.insert(t)},this):new i.sourceDataAnyfv(t,e,n)},r(i.sourceDataAnyfv,i.sourceData),i.sourceDataP3fv=function(t){"use strict";return this instanceof i.sourceDataP3fv?(i.sourceData.call(this,t),this.addAttribute(i.vertexAttributeKeys.Position,i.GL.FLOAT,4,0,12,3,!1),this.pushBack=function(t){this.insert(t)},this):new i.sourceDataP3fv(t)},r(i.sourceDataP3fv,i.sourceData),i.sourceDataT2fv=function(t){"use strict";return this instanceof i.sourceDataT2fv?(i.sourceData.call(this,t),this.addAttribute(i.vertexAttributeKeys.TextureCoordinate,i.GL.FLOAT,4,0,8,2,!1),this.pushBack=function(t){this.insert(t)},this):new i.sourceDataT2fv(t)},r(i.sourceDataT2fv,i.sourceData),i.geometryData=function(){"use strict";if(!(this instanceof i.geometryData))return new i.geometryData;i.data.call(this);var t=[],e=[],n=[0,0,0,0,0,0],r=o(),a=o();return this.type=function(){return i.data.geometry},this.name=function(){return""},this.addSource=function(t){return-1===e.indexOf(t)&&(e.push(t),t.hasKey(i.vertexAttributeKeys.Position)&&a.modified(),!0)},this.source=function(t){return t<e.length?e[t]:0},this.sourceByName=function(t){for(var n=0;n<e.length;n+=1)if(e[n].name()===t)return e[n];return 0},this.numberOfSources=function(){return e.length},this.sourceData=function(t){var n;for(n=0;n<e.length;n+=1)if(e[n].hasKey(t))return e[n];return null},this.addPrimitive=function(e){return t.push(e),!0},this.primitive=function(e){return e<t.length?t[e]:null},this.numberOfPrimitives=function(){return t.length},this.bounds=function(){return a.getMTime()>r.getMTime()&&this.computeBounds(),n},this.boundsDirty=function(t){return t&&a.modified(),a.getMTime()>r.getMTime()},this.setBounds=function(t,e,i,o,a,s){return n[0]=t,n[1]=e,n[2]=i,n[3]=o,n[4]=a,n[5]=s,r.modified(),!0},this},r(i.geometryData,i.data)},29:function(t,e,n){var i=n(698),r=n(4626);i.graphicsObject=function(t){"use strict";if(!(this instanceof i.graphicsObject))return new i.graphicsObject;i.object.call(this);return this._setup=function(t){return!1},this._cleanup=function(t){return!1},this},r(i.graphicsObject,i.object)},7616:function(t,e,n){var i=n(698),r=n(4626);i.groupNode=function(){"use strict";if(!(this instanceof i.groupNode))return new i.groupNode;i.node.call(this);var t=[];return this.addChild=function(e){return e instanceof i.node&&(-1===t.indexOf(e)&&(e.setParent(this),t.push(e),this.boundsDirtyTimestamp().modified(),!0))},this.removeChild=function(e){if(e.parent()===this){var n=t.indexOf(e);if(n>=0)return t.splice(n,1),e.setParent(null),this.boundsDirtyTimestamp().modified(),!0}},this.removeChildren=function(){for(;t.length;)this.removeChild(t[0]);this.modified()},this.children=function(){return t},this.hasChild=function(e){var n=0,i=!1;for(n=0;n<t.length;n+=1)if(t[n]===e){i=!0;break}return i},this},r(i.groupNode,i.node)},1611:function(t,e,n){t.exports=n(698),n(6552),n(9156),n(3556),n(9838),n(4831),n(29),n(4970),n(1232),n(2971),n(10),n(7616),n(4580),n(8576),n(7695),n(7327),n(5763),n(5796),n(5794),n(796),n(8888),n(3471),n(4933),n(7205)},9838:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.mapper=function(t){"use strict";if(!(this instanceof i.mapper))return new i.mapper(t);i.boundingObject.call(this);var e=[0,1,1],n=null,r=[],a={},s=void 0!==(t=t||{}).dynamicDraw&&t.dynamicDraw,l=o(),u=null,c=this;function d(t){a={},r=[]}function h(t){c.deleteVertexBufferObjects(t),d(),function(t){if(n){t&&(u=t.m_context);var e,o,c,d,h,f,p,m=n.numberOfSources(),g=null;for(e=0;e<m;e+=1){for(g=u.createBuffer(),u.bindBuffer(i.GL.ARRAY_BUFFER,g),(p=n.source(e).data())instanceof Float32Array||(p=new Float32Array(p)),u.bufferData(i.GL.ARRAY_BUFFER,p,s?i.GL.DYNAMIC_DRAW:i.GL.STATIC_DRAW),d=n.source(e).keys(),h=[],o=0;o<d.length;o+=1)h.push(d[o]);a[e]=h,r[e]=g}for(f=n.numberOfPrimitives(),c=0;c<f;c+=1)g=u.createBuffer(),u.bindBuffer(i.GL.ARRAY_BUFFER,g),u.bufferData(i.GL.ARRAY_BUFFER,n.primitive(c).indices(),i.GL.STATIC_DRAW),r[e]=g,e+=1;l.modified()}}(t)}return this.deleteVertexBufferObjects=function(t){var e,n=u;if(t&&(n=t.m_context),n)for(e=0;e<r.length;e+=1)n.deleteBuffer(r[e])},this._cleanup=function(t){c.deleteVertexBufferObjects(t),d(t),c.modified()},this.computeBounds=function(){if(null!=n){var t=this.computeBoundsTimestamp(),e=null;this.boundsDirtyTimestamp().getMTime()>t.getMTime()&&(e=n.bounds(),this.setBounds(e[0],e[1],e[2],e[3],e[4],e[5]),t.modified())}else this.resetBounds()},this.color=function(){return e},this.geometryData=function(){return n},this.setGeometryData=function(t){n!==t&&(n=t,this.modified(),this.boundsDirtyTimestamp().modified())},this.updateSourceBuffer=function(t,e,o){if(o&&(u=o.m_context),!u)return!1;for(var a=-1,s=0;s<n.numberOfSources();s+=1)if(n.source(s).name()===t){a=s;break}return!(a<0||a>=r.length)&&(e||(e=n.source(s).dataToFloat32Array()),u.bindBuffer(i.GL.ARRAY_BUFFER,r[a]),e instanceof Float32Array?u.bufferSubData(i.GL.ARRAY_BUFFER,0,e):u.bufferSubData(i.GL.ARRAY_BUFFER,0,new Float32Array(e)),!0)},this.getSourceBuffer=function(t){var e=n.sourceByName(t);return e?e.dataToFloat32Array():new Float32Array},this.render=function(t,e){(this.getMTime()>l.getMTime()||t.m_contextChanged)&&h(t),(u=t.m_context).vertexAttrib3fv(i.vertexAttributeKeys.Color,this.color());var o,s,c=0,d=0,f=null;for(o in a)if(a.hasOwnProperty(o)){for(u.bindBuffer(i.GL.ARRAY_BUFFER,r[c]),d=0;d<a[o].length;d+=1)t.m_material.bindVertexData(t,a[o][d]);c+=1}for(s=n.numberOfPrimitives(),d=0;d<s;d+=1,c+=1)if((f=n.primitive(d)).numberOfIndices()){switch(u.bindBuffer(i.GL.ARRAY_BUFFER,r[c]),f.primitiveType()){case i.GL.POINTS:u.drawArrays(i.GL.POINTS,0,f.numberOfIndices());break;case i.GL.LINES:u.drawArrays(i.GL.LINES,0,f.numberOfIndices());break;case i.GL.LINE_STRIP:u.drawArrays(i.GL.LINE_STRIP,0,f.numberOfIndices());break;case i.GL.TRIANGLES:u.drawArrays(i.GL.TRIANGLES,0,f.numberOfIndices());break;case i.GL.TRIANGLE_STRIP:u.drawArrays(i.GL.TRIANGLE_STRIP,0,f.numberOfIndices())}u.bindBuffer(i.GL.ARRAY_BUFFER,null)}e||this.undoBindVertexData(t)},this.undoBindVertexData=function(t){var e,n;for(e in a)if(a.hasOwnProperty(e))for(n=0;n<a[e].length;n+=1)t.m_material.undoBindVertexData(t,a[e][n])},this},r(i.mapper,i.boundingObject)},4970:function(t,e,n){var i=n(698),r=n(4626);i.material=function(){"use strict";if(!(this instanceof i.material))return new i.material;i.graphicsObject.call(this);var t=this,e=new i.shaderProgram,n=100,r={},o={};return this.binNumber=function(){return n},this.setBinNumber=function(e){n=e,t.modified()},this.exists=function(t){return t.type()===i.materialAttributeType.Texture?r.hasOwnProperty(t.textureUnit()):o.hasOwnProperty(t.type())},this.addAttribute=function(n){return!t.exists(n)&&(n.type()===i.materialAttributeType.Texture?(r[n.textureUnit()]=n,t.modified(),!0):(n.type()===i.materialAttributeType.ShaderProgram&&(e=n),o[n.type()]=n,t.modified(),!0))},this.shaderProgram=function(){return e},this._cleanup=function(n){for(var i in o)o.hasOwnProperty(i)&&o[i]._cleanup(n);for(i in r)r.hasOwnProperty(i)&&r[i]._cleanup(n);e._cleanup(n),t.modified()},this.bind=function(t){var n=null;for(n in e.bind(t),o)o.hasOwnProperty(n)&&o[n]!==e&&o[n].bind(t);for(n in r)r.hasOwnProperty(n)&&r[n].bind(t)},this.undoBind=function(t){var e=null;for(e in o)o.hasOwnProperty(e)&&o[e].undoBind(t);for(e in r)r.hasOwnProperty(e)&&r[e].undoBind(t)},this.bindVertexData=function(t,e){var n=null;for(n in o)o.hasOwnProperty(n)&&o[n].bindVertexData(t,e)},this.undoBindVertexData=function(t,e){var n=null;for(n in o)o.hasOwnProperty(n)&&o[n].undoBindVertexData(t,e)},t},i.material.RenderBin={Base:0,Default:100,Opaque:100,Transparent:1e3,Overlay:1e4},r(i.material,i.graphicsObject)},1232:function(t,e,n){var i=n(698),r=n(4626);i.materialAttributeType={Undefined:0,ShaderProgram:1,Texture:2,Blend:3,Depth:4},i.materialAttribute=function(t){"use strict";if(!(this instanceof i.materialAttribute))return new i.materialAttribute(t);i.graphicsObject.call(this);var e=t;return this.type=function(){return e},this.enabled=function(){return true},this.bindVertexData=function(t,e){return!1},this.undoBindVertexData=function(t,e){return!1},this},r(i.materialAttribute,i.graphicsObject)},2971:function(t,e,n){var i=n(698),r=n(4626);i.node=function(){"use strict";if(!(this instanceof i.node))return new i.node;i.boundingObject.call(this);var t=null,e=null,n=!0;return this.material=function(){return e},this.setMaterial=function(t){return t!==e&&(e=t,this.modified(),!0)},this.visible=function(){return n},this.setVisible=function(t){return t!==n&&(n=t,this.modified(),!0)},this.parent=function(){return t},this.setParent=function(e){return e!==t&&(null!==t&&t.removeChild(this),t=e,this.modified(),!0)},this.boundsModified=function(){this.boundsDirtyTimestamp().modified(),null!==t&&t.boundsModified()},this},r(i.node,i.boundingObject)},9156:function(t,e,n){var i=n(698),r=n(77);i.object=function(){"use strict";if(!(this instanceof i.object))return new i.object;var t=r();return t.modified(),this.modified=function(){t.modified()},this.getMTime=function(){return t.getMTime()},this}},5763:function(t,e,n){var i=n(698),r=n(4626);i.renderWindow=function(t){"use strict";if(!(this instanceof i.renderWindow))return new i.renderWindow(t);i.graphicsObject.call(this);var e=this,n=0,r=0,o=400,a=400,s=t,l=null,u=[],c=null;return this.windowSize=function(){return[o,a]},this.windowPosition=function(){return[n,r]},this.renderers=function(){return u},this.activeRenderer=function(){return l},this.addRenderer=function(t){return!1===e.hasRenderer(t)&&(u.push(t),t.setRenderWindow(e),null===l&&(l=t),0!==t.layer()&&t.camera().setClearMask(i.GL.DepthBufferBit),e.modified(),!0)},this.hasRenderer=function(t){var e;for(e=0;e<u.length;e+=1)if(t===u[e])return!0;return!1},this.positionAndResize=function(t,i,s,l){var c;for(n=t,r=i,o=s,a=l,c=0;c<u.length;c+=1)u[c].positionAndResize(n,r,o,a);e.modified()},this._setup=function(t){c=null;try{var e;for(c=s.getContext("webgl")||s.getContext("experimental-webgl"),e=0;e<u.length;e+=1)(u[e].width()>o||0===u[e].width()||u[e].height()>a||0===u[e].height())&&u[e].resize(n,r,o,a);return!0}catch(t){}return c||console("[ERROR] Unable to initialize WebGL. Your browser may not support it."),!1},this.context=function(){return c},this._cleanup=function(t){var n;for(n=0;n<u.length;n+=1)u[n]._cleanup(t);i.clearCachedShaders(t?t.m_context:null),e.modified()},this.render=function(){var t;for(u.sort((function(t,e){return t.layer()-e.layer()})),t=0;t<u.length;t+=1)u[t].render()},e},r(i.renderWindow,i.graphicsObject)},5796:function(t,e,n){var i=n(698),r=n(4626),o=n(3503);i.renderState=function(){"use strict";this.m_context=null,this.m_modelViewMatrix=o.create(),this.m_normalMatrix=o.create(),this.m_projectionMatrix=null,this.m_material=null,this.m_mapper=null},i.renderer=function(t){"use strict";if(!(this instanceof i.renderer))return new i.renderer(t);i.graphicsObject.call(this),t=t||{};var e=this;return e.m_renderWindow=null,e.m_contextChanged=!1,e.m_sceneRoot=new i.groupNode,e.m_camera=new i.camera(t),e.m_nearClippingPlaneTolerance=null,e.m_x=0,e.m_y=0,e.m_width=0,e.m_height=0,e.m_resizable=!0,e.m_resetScene=!0,e.m_layer=0,e.m_renderPasses=null,e.m_resetClippingRange=!0,e.m_depthBits=null,e.m_camera.addChild(e.m_sceneRoot),this.width=function(){return e.m_width},this.height=function(){return e.m_height},this.layer=function(){return e.m_layer},this.setLayer=function(t){e.m_layer=t,e.modified()},this.renderWindow=function(){return e.m_renderWindow},this.setRenderWindow=function(t){e.m_renderWindow!==t&&(e.m_renderWindow&&e.m_renderWindow.removeRenderer(this),e.m_renderWindow=t,e.m_contextChanged=!0,e.modified())},this.camera=function(){return e.m_camera},this.render=function(){var t,n,r,a=null,s=[],l=o.create(),u=null;if((n=new i.renderState).m_renderer=e,n.m_context=e.renderWindow().context(),e.m_depthBits&&!e.m_contextChanged||(e.m_depthBits=n.m_context.getParameter(i.GL.DEPTH_BITS)),n.m_contextChanged=e.m_contextChanged,e.m_renderPasses)for(t=0;t<e.m_renderPasses.length;t+=1){if(e.m_renderPasses[t].render(n))return console.log("returning"),void e.m_renderPasses[t].remove(n);e.m_renderPasses[t].remove(n)}for(n.m_context.enable(i.GL.DEPTH_TEST),n.m_context.depthFunc(i.GL.LEQUAL),e.m_camera.clearMask()&i.GL.COLOR_BUFFER_BIT&&(u=e.m_camera.clearColor(),n.m_context.clearColor(u[0],u[1],u[2],u[3])),e.m_camera.clearMask()&i.GL.DEPTH_BUFFER_BIT&&n.m_context.clearDepth(e.m_camera.clearDepth()),n.m_context.clear(e.m_camera.clearMask()),n.m_context.viewport(e.m_x,e.m_y,e.m_width,e.m_height),(r=e.m_sceneRoot.children()).length>0&&e.m_resetScene&&(e.m_resetScene=!1),t=0;t<r.length;t+=1)(a=r[t]).computeBounds(),a.visible()&&a.material().binNumber()>=0&&s.push([a.material().binNumber(),a]);for(s.sort((function(t,e){return t[0]-e[0]})),t=0;t<s.length;t+=1){if((a=s[t][1]).referenceFrame()===i.boundingObject.ReferenceFrame.Relative){var c=e.m_camera.viewMatrix();c instanceof Array&&(n.m_modelViewMatrix=new Array(16)),o.multiply(n.m_modelViewMatrix,c,a.matrix()),n.m_projectionMatrix=e.m_camera.projectionMatrix(),n.m_modelViewAlignment=e.m_camera.viewAlignment()}else n.m_modelViewMatrix=a.matrix(),n.m_modelViewAlignment=null,n.m_projectionMatrix=o.create(),o.ortho(n.m_projectionMatrix,0,e.m_width,0,e.m_height,-1,1);o.invert(l,n.m_modelViewMatrix),o.transpose(n.m_normalMatrix,l),n.m_material=a.material(),n.m_mapper=a.mapper(),n.m_material.bind(n),n.m_mapper.render(n),n.m_material.undoBind(n)}n.m_context.finish(),e.m_contextChanged=!1,e.m_lastRenderState=n},this.resize=function(t,n){t&&n&&e.positionAndResize(e.m_x,e.m_y,t,n)},this.positionAndResize=function(t,n,i,r){var o;if(t<0||n<0||i<=0||r<=0)console.log("[error] Invalid position and resize values",t,n,i,r);else if(e.m_resizable&&(e.m_width=i,e.m_height=r,e.m_camera.setViewAspect(i/r),e.m_camera.setParallelExtents({width:i,height:r}),e.modified()),e.m_renderPasses)for(o=0;o<e.m_renderPasses.length;o+=1)e.m_renderPasses[o].resize(i,r),e.m_renderPasses[o].renderer().positionAndResize(t,n,i,r)},this.addActor=function(t){return t instanceof i.actor&&(e.m_sceneRoot.addChild(t),e.modified(),!0)},this.hasActor=function(t){return e.m_sceneRoot.hasChild(t)},this.removeActor=function(t){return-1!==e.m_sceneRoot.children().indexOf(t)&&(e.m_lastRenderState&&(t.mapper()&&t.mapper()._cleanup(e.m_lastRenderState),t.material()&&t.material()._cleanup(e.m_lastRenderState)),t.modified(),e.m_sceneRoot.removeChild(t),e.modified(),!0)},this.setResetScene=function(t){e.m_resetScene!==t&&(e.m_resetScene=t,e.modified())},this._cleanup=function(t){for(var n=e.m_sceneRoot.children(),i=0;i<n.length;i+=1){var r=n[i];r.material()._cleanup(t),r.mapper()._cleanup(t)}e.m_sceneRoot.removeChildren(),e.modified()},e},r(i.renderer,i.graphicsObject)},5794:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.shader=function(t){"use strict";if(!(this instanceof i.shader))return new i.shader(t);i.object.call(this);var e=[],n=t,r="";this._getContextEntry=function(t){var n,i,r=t.m_context;for(n=0;n<e.length;n+=1)if(e[n].context===r)return e[n];return i={context:r,compileTimestamp:o()},e.push(i),i},this.removeContext=function(t){var n,i=t.m_context;for(n=0;n<e.length;n+=1)if(e[n].context===i)return void e.splice(n,1)},this.shaderHandle=function(t){return this._getContextEntry(t).shaderHandle},this.setShaderSource=function(t){r=t,this.modified()},this.compile=function(t){var e=this._getContextEntry(t);return this.getMTime()<e.compileTimestamp.getMTime()?e.shaderHandle:(t.m_context.deleteShader(e.shaderHandle),e.shaderHandle=t.m_context.createShader(n),t.m_context.shaderSource(e.shaderHandle,r),t.m_context.compileShader(e.shaderHandle),t.m_context.getShaderParameter(e.shaderHandle,i.GL.COMPILE_STATUS)?(e.compileTimestamp.modified(),e.shaderHandle):(console.log("[ERROR] An error occurred compiling the shaders: "+t.m_context.getShaderInfoLog(e.shaderHandle)),console.log(r),t.m_context.deleteShader(e.shaderHandle),null))},this.attachShader=function(t,e){t.m_context.attachShader(e,this.shaderHandle(t))}},r(i.shader,i.object),function(){"use strict";var t=[];i.getCachedShader=function(e,n,r){for(var o=0;o<t.length;o+=1)if(t[o].type===e&&t[o].context===n&&t[o].source===r)return o&&t.splice(0,0,t.splice(o,1)[0]),t[0].shader;var a=new i.shader(e);return a.setShaderSource(r),t.unshift({type:e,context:n,source:r,shader:a}),t.length>=10&&t.splice(10,t.length-10),a},i.clearCachedShaders=function(e){for(var n=t.length-1;n>=0;n-=1)null!=e&&t[n].context!==e||t.splice(n,1)}}()},796:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.shaderProgram=function(){"use strict";if(!(this instanceof i.shaderProgram))return new i.shaderProgram;i.materialAttribute.call(this,i.materialAttributeType.ShaderProgram);var t=this,e=0,n=o(),r=o(),a=[],s=[],l={},u={},c={};return this.queryUniformLocation=function(t,n){return t.m_context.getUniformLocation(e,n)},this.queryAttributeLocation=function(t,n){return t.m_context.getAttribLocation(e,n)},this.addShader=function(e){if(a.indexOf(e)>-1)return!1;var n;for(n=a.length-2;n>=0;n-=1)a[n].shaderType()===e.shaderType()&&a.splice(n,1);return a.push(e),t.modified(),!0},this.addUniform=function(e){return!(s.indexOf(e)>-1)&&(s.push(e),t.modified(),!0)},this.addVertexAttribute=function(e,n){l[n]=e,t.modified()},this.uniformLocation=function(t){return u[t]},this.attributeLocation=function(t){return c[t]},this.uniform=function(t){var e;for(e=0;e<s.length;e+=1)if(s[e].name()===t)return s[e];return null},this.updateUniforms=function(t){var e;for(e=0;e<s.length;e+=1)s[e].callGL(t,u[s[e].name()])},this.link=function(t){return t.m_context.linkProgram(e),!!t.m_context.getProgramParameter(e,i.GL.LINK_STATUS)||(console.log("[ERROR] Unable to initialize the shader program."),!1)},this.use=function(t){t.m_context.useProgram(e)},this._setup=function(t){0===e&&(e=t.m_context.createProgram())},this._cleanup=function(e){t.deleteVertexAndFragment(e),t.deleteProgram(e),t.modified()},this.deleteProgram=function(t){e&&t.m_context.deleteProgram(e),e=0},this.deleteVertexAndFragment=function(t){var n;for(n=0;n<a.length;n+=1)a[n].shaderHandle(t)&&t.m_context.detachShader(e,a[n].shaderHandle(t)),t.m_context.deleteShader(a[n].shaderHandle(t)),a[n].removeContext(t)},this.compileAndLink=function(i){var r;if(!(n.getMTime()>=this.getMTime())){for(t._setup(i),r=0;r<a.length;r+=1)a[r].compile(i),a[r].attachShader(i,e);t.bindAttributes(i),t.link(i)||(console.log("[ERROR] Failed to link Program"),t._cleanup(i)),n.modified()}},this.bind=function(e){var n=0;for(r.getMTime()<t.getMTime()?(t.compileAndLink(e),t.use(e),t.bindUniforms(e),r.modified()):t.use(e),n=0;n<s.length;n+=1)s[n].update(e,t);t.updateUniforms(e)},this.undoBind=function(t){t.m_context.useProgram(null)},this.bindVertexData=function(t,e){l.hasOwnProperty(e)&&l[e].bindVertexData(t,e)},this.undoBindVertexData=function(t,e){l.hasOwnProperty(e)&&l[e].undoBindVertexData(t,e)},this.bindUniforms=function(t){var e;for(e=0;e<s.length;e+=1)u[s[e].name()]=this.queryUniformLocation(t,s[e].name())},this.bindAttributes=function(t){var n,i;for(n in l)l.hasOwnProperty(n)&&(i=l[n].name(),t.m_context.bindAttribLocation(e,n,i),c[i]=n)},t},r(i.shaderProgram,i.materialAttribute)},8888:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.texture=function(){"use strict";if(!(this instanceof i.texture))return new i.texture;i.materialAttribute.call(this,i.materialAttributeType.Texture),this.m_width=0,this.m_height=0,this.m_depth=0,this.m_textureHandle=null,this.m_textureUnit=0,this.m_pixelFormat=i.GL.RGBA,this.m_pixelDataType=i.GL.UNSIGNED_BYTE,this.m_internalFormat=i.GL.RGBA,this.m_nearestPixel=!1,this.m_image=null;var t=o(),e=this;function n(t){if(!(e.m_textureUnit>=0&&e.m_textureUnit<32))throw"[error] Texture unit "+e.m_textureUnit+" is not supported";t.m_context.activeTexture(i.GL.TEXTURE0+e.m_textureUnit)}return this.setup=function(e){n(e),e.m_context.deleteTexture(this.m_textureHandle),this.m_textureHandle=e.m_context.createTexture(),e.m_context.bindTexture(i.GL.TEXTURE_2D,this.m_textureHandle),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MIN_FILTER,this.m_nearestPixel?i.GL.NEAREST:i.GL.LINEAR),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MAG_FILTER,this.m_nearestPixel?i.GL.NEAREST:i.GL.LINEAR),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_WRAP_S,i.GL.CLAMP_TO_EDGE),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_WRAP_T,i.GL.CLAMP_TO_EDGE),null!==this.m_image?(e.m_context.pixelStorei(i.GL.UNPACK_ALIGNMENT,1),e.m_context.pixelStorei(i.GL.UNPACK_FLIP_Y_WEBGL,!0),this.updateDimensions(),this.computeInternalFormatUsingImage(),e.m_context.texImage2D(i.GL.TEXTURE_2D,0,this.m_internalFormat,this.m_pixelFormat,this.m_pixelDataType,this.m_image)):e.m_context.texImage2D(i.GL.TEXTURE_2D,0,this.m_internalFormat,this.m_width,this.m_height,0,this.m_pixelFormat,this.m_pixelDataType,null),e.m_context.bindTexture(i.GL.TEXTURE_2D,null),t.modified()},this.bind=function(e){this.getMTime()>t.getMTime()&&this.setup(e),n(e),e.m_context.bindTexture(i.GL.TEXTURE_2D,this.m_textureHandle)},this.undoBind=function(t){t.m_context.bindTexture(i.GL.TEXTURE_2D,null)},this.image=function(){return this.m_image},this.setImage=function(t){return null!==t&&(this.m_image=t,this.updateDimensions(),this.modified(),!0)},this.nearestPixel=function(){return this.m_nearestPixel},this.setNearestPixel=function(t){return(t=!!t)!==this.m_nearestPixel&&(this.m_nearestPixel=t,this.modified(),!0)},this.textureUnit=function(){return this.m_textureUnit},this.setTextureUnit=function(t){return this.m_textureUnit!==t&&(this.m_textureUnit=t,this.modified(),!0)},this.computeInternalFormatUsingImage=function(){this.m_internalFormat=i.GL.RGBA,this.m_pixelFormat=i.GL.RGBA,this.m_pixelDataType=i.GL.UNSIGNED_BYTE},this.updateDimensions=function(){null!==this.m_image&&(this.m_width=this.m_image.width,this.m_height=this.m_image.height,this.m_depth=0)},this.textureHandle=function(){return this.m_textureHandle},this},r(i.texture,i.materialAttribute),i.lookupTable=function(){"use strict";if(!(this instanceof i.lookupTable))return new i.lookupTable;i.texture.call(this);var t=o();return this.m_colorTable=[.07514311,.468049805,1,1,.247872569,.498782363,1,1,.339526309,.528909511,1,1,.409505078,.558608486,1,1,.468487184,.588057293,1,1,.520796675,.617435078,1,1,.568724526,.646924167,1,1,.613686735,.676713218,1,1,.656658579,.707001303,1,1,.698372844,.738002964,1,1,.739424025,.769954435,1,1,.780330104,.803121429,1,1,.821573924,.837809045,1,1,.863634967,.874374691,1,1,.907017747,.913245283,1,1,.936129275,.938743558,.983038586,1,.943467973,.943498599,.943398095,1,.990146732,.928791426,.917447482,1,1,.88332677,.861943246,1,1,.833985467,.803839606,1,1,.788626485,.750707739,1,1,.746206642,.701389973,1,1,.70590052,.654994046,1,1,.667019783,.610806959,1,1,.6289553,.568237474,1,1,.591130233,.526775617,1,1,.552955184,.485962266,1,1,.513776083,.445364274,1,1,.472800903,.404551679,1,1,.428977855,.363073592,1,1,.380759558,.320428137,1,.961891484,.313155629,.265499262,1,.916482116,.236630659,.209939162,1].map((function(t){return 255*t})),this.setup=function(e){0===this.textureUnit()?e.m_context.activeTexture(i.GL.TEXTURE0):1===this.textureUnit()&&e.m_context.activeTexture(i.GL.TEXTURE1),e.m_context.deleteTexture(this.m_textureHandle),this.m_textureHandle=e.m_context.createTexture(),e.m_context.bindTexture(i.GL.TEXTURE_2D,this.m_textureHandle),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MIN_FILTER,i.GL.LINEAR),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MAG_FILTER,i.GL.LINEAR),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_WRAP_S,i.GL.CLAMP_TO_EDGE),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_WRAP_T,i.GL.CLAMP_TO_EDGE),e.m_context.pixelStorei(i.GL.UNPACK_ALIGNMENT,1),this.m_width=this.m_colorTable.length/4,this.m_height=1,this.m_depth=0,e.m_context.texImage2D(i.GL.TEXTURE_2D,0,i.GL.RGBA,this.m_width,this.m_height,this.m_depth,i.GL.RGBA,i.GL.UNSIGNED_BYTE,new Uint8Array(this.m_colorTable)),e.m_context.bindTexture(i.GL.TEXTURE_2D,null),t.modified()},this.colorTable=function(){return this.m_colorTable},this.setColorTable=function(t){return this.m_colorTable!==t&&(this.m_colorTable=t,this.modified(),!0)},this},r(i.lookupTable,i.texture)},3471:function(t,e,n){var i=n(698),r=n(4626),o=n(3503);i.uniform=function(t,e){"use strict";if(!(this instanceof i.uniform))return new i.uniform(t,e);this.getTypeNumberOfComponents=function(t){switch(t){case i.GL.FLOAT:case i.GL.INT:case i.GL.BOOL:return 1;case i.GL.FLOAT_VEC2:case i.GL.INT_VEC2:case i.GL.BOOL_VEC2:return 2;case i.GL.FLOAT_VEC3:case i.GL.INT_VEC3:case i.GL.BOOL_VEC3:return 3;case i.GL.FLOAT_VEC4:case i.GL.INT_VEC4:case i.GL.BOOL_VEC4:return 4;case i.GL.FLOAT_MAT3:return 9;case i.GL.FLOAT_MAT4:return 16;default:return 0}};var n=t,r=e,o=new Array(this.getTypeNumberOfComponents(n)).fill(0);return this.name=function(){return r},this.set=function(t){var e=0,n=o.length;if(1!==n)for(e=0;e<n;e+=1)o[e]=t[e];else o[0]=t},this.callGL=function(t,e){switch(n){case i.GL.BOOL:case i.GL.INT:t.m_context.uniform1iv(e,o);break;case i.GL.FLOAT:t.m_context.uniform1fv(e,o);break;case i.GL.BOOL_VEC2:case i.GL.INT_VEC2:t.m_context.uniform2iv(e,o);break;case i.GL.FLOAT_VEC2:t.m_context.uniform2fv(e,o);break;case i.GL.BOOL_VEC3:case i.GL.INT_VEC3:t.m_context.uniform3iv(e,o);break;case i.GL.FLOAT_VEC3:t.m_context.uniform3fv(e,o);break;case i.GL.BOOL_VEC4:case i.GL.INT_VEC4:t.m_context.uniform4iv(e,o);break;case i.GL.FLOAT_VEC4:t.m_context.uniform4fv(e,o);break;case i.GL.FLOAT_MAT3:t.m_context.uniformMatrix3fv(e,i.GL.FALSE,o);break;case i.GL.FLOAT_MAT4:t.m_context.uniformMatrix4fv(e,i.GL.FALSE,o)}},this.update=function(t,e){},this},i.modelViewOriginUniform=function(t,e){"use strict";if(!(this instanceof i.modelViewOriginUniform))return new i.modelViewOriginUniform(t,e);t||(t="modelViewMatrix");var n=[(e=e||[0,0,0])[0],e[1],e[2]||0];return i.uniform.call(this,i.GL.FLOAT_MAT4,t),this.set(o.create()),this.setOrigin=function(t){n=[(t=t||[0,0,0])[0],t[1],t[2]||0]},this.update=function(t,e){var i=t.m_modelViewMatrix;if(t.m_modelViewAlignment){var r=t.m_modelViewAlignment;(i=i.slice?i.slice():Array.prototype.slice.call(i))[12]=Math.round(i[12]/r.roundx)*r.roundx+r.dx,i[13]=Math.round(i[13]/r.roundy)*r.roundy+r.dy}i=o.translate(o.create(),i,n),this.set(i)},this},r(i.modelViewOriginUniform,i.uniform),i.projectionUniform=function(t){"use strict";return this instanceof i.projectionUniform?(t||(t="projectionMatrix"),i.uniform.call(this,i.GL.FLOAT_MAT4,t),this.set(o.create()),this.update=function(t,e){this.set(t.m_projectionMatrix)},this):new i.projectionUniform(t)},r(i.projectionUniform,i.uniform),i.floatUniform=function(t,e){"use strict";if(!(this instanceof i.floatUniform))return new i.floatUniform(t,e);t||(t="floatUniform"),e=void 0===e?1:e,i.uniform.call(this,i.GL.FLOAT,t),this.set(e)},r(i.floatUniform,i.uniform)},4933:function(t,e,n){var i=n(698);i.vertexAttributeKeys={Position:0,Normal:1,TextureCoordinate:2,Color:3,Scalar:4,CountAttributeIndex:5},i.vertexAttributeKeysIndexed={Zero:0,One:1,Two:2,Three:3,Four:4,Five:5,Six:6,Seven:7,Eight:8,Nine:9},i.vertexAttribute=function(t){"use strict";if(!(this instanceof i.vertexAttribute))return new i.vertexAttribute(t);var e=t;this.name=function(){return e},this.bindVertexData=function(t,n){var i=t.m_mapper.geometryData().sourceData(n),r=t.m_material.shaderProgram();t.m_context.vertexAttribPointer(r.attributeLocation(e),i.attributeNumberOfComponents(n),i.attributeDataType(n),i.normalized(n),i.attributeStride(n),i.attributeOffset(n)),t.m_context.enableVertexAttribArray(r.attributeLocation(e))},this.undoBindVertexData=function(t,n){var i=t.m_material.shaderProgram();t.m_context.disableVertexAttribArray(i.attributeLocation(e))}}},698:function(t){t.exports={}},7205:function(t,e,n){var i=n(5616),r=n(698),o=n(4626);r.viewer=function(t,e){"use strict";if(!(this instanceof r.viewer))return new r.viewer(t,e);r.object.call(this);var n=t,o=r.renderer(e),a=r.renderWindow(n);return this.canvas=function(){return n},this.renderWindow=function(){return a},this.init=function(){null!==a?a._setup():console.log("[ERROR] No render window attached")},this.exit=function(t){null!==a?a._cleanup(t):console.log("[ERROR] No render window attached")},this.render=function(){a.render()},this.bindEventHandlers=function(){i(n).on("mousedown",this.handleMouseDown),i(n).on("mouseup",this.handleMouseUp),i(n).on("mousemove",this.handleMouseMove),i(n).on("mousewheel",this.handleMouseWheel),i(n).on("contextmenu",this.handleContextMenu)},this.unbindEventHandlers=function(){i(n).off("mousedown",this.handleMouseDown),i(n).off("mouseup",this.handleMouseUp),i(n).off("mousemove",this.handleMouseMove),i(n).off("mousewheel",this.handleMouseWheel),i(n).off("contextmenu",this.handleContextMenu)},this._init=function(){this.bindEventHandlers(),a.addRenderer(o)},this._init(),this},o(r.viewer,r.object)},394:function(t,e,n){t.exports={pointFeature:n(5380),vtkjsRenderer:n(9897)}},7015:function(t,e,n){var i=function(t){"use strict";if(!(this instanceof n(1338)))return new i(t);var e=this,r=this.draw;return this.draw=function(){return e.ready&&(e._update(),e.renderer()._render(),r()),e},this};t.exports=i},5380:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(7541),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var e=n(5325),i=n(7015),r=n(9897).vtkjs,s=r.Rendering.Core.vtkActor,l=r.Common.Core.vtkDataArray,u=r.Rendering.Core.vtkGlyph3DMapper,c=r.Rendering.Core.vtkMapper,d=r.Common.DataModel.vtkPointSet,h=r.Filters.Sources.vtkSphereSource;i.call(this);var f,p,m,g,y,v=this,x=this._init,_=this._exit,b=this._update;return this._createPipeline=function(){p=d.newInstance(),(m=h.newInstance()).setThetaResolution(30),m.setPhiResolution(30);var t=u.newInstance({orient:!1,colorByArrayName:"color",scalarMode:c.ScalarMode.USE_POINT_FIELD_DATA,colorMode:c.ColorMode.DIRECT_SCALARS,scaling:!0,scaleArray:"diam",scaleMode:u.ScaleModes.SCALE_BY_MAGNITUDE});t.setInputData(p,0),t.setInputConnection(m.getOutputPort(),1),(f=s.newInstance()).setMapper(t),f.getProperty().setAmbient(1),v.renderer().contextRenderer().addActor(f)},this._init=function(){x.call(v,t),v.renderer().contextRenderer().setLayer(0),v._createPipeline()},this._build=function(){var t,n,i,r,o,a,s=v.data().length,u=new Array(3*s),c=v.data(),d=v.position(),h=v.style.get("radius"),f=v.style.get("fill"),m=v.style.get("fillColor"),x=v.style.get("fillOpacity"),_=v.layer().map().unitsPerPixel(v.layer().map().zoom());for(y&&y.length===s||(y=new Float32Array(s)),g&&g.length===4*s||(g=new Uint8Array(4*s)),t=n=i=0;t<s;t+=1,n+=3,i+=4)r=d(c[t],t),u[n]=r.x,u[n+1]=r.y,u[n+2]=r.z||0,a=a||u[n+2],y[t]=h(c[t],t)*_*2,o=m(c[t],t),g[i]=255*o.r,g[i+1]=255*o.g,g[i+2]=255*o.b,g[i+3]=f(c[t],t)?255*x(c[t],t):0;if(u=e.transformCoordinates(v.gcs(),v.layer().map().gcs(),u,3),!a&&v.gcs()!==v.layer().map().gcs())for(t=n=0;t<s;t+=1,n+=3)u[n+2]=0;p.getPoints().setData(u,3),p.getPointData().addArray(l.newInstance({name:"color",values:g,numberOfComponents:4})),p.getPointData().addArray(l.newInstance({name:"diam",values:y})),v.buildTime().modified()},this._update=function(){if(b.call(v),v.dataTime().getMTime()>=v.buildTime().getMTime()||v.updateTime().getMTime()<v.getMTime())v._build();else{var t=v.data(),e=v.style.get("radius"),n=v.layer().map().unitsPerPixel(v.layer().map().zoom()),i=p.getPointData().getArray("diam"),r=i.getData().map((function(i,r){return e(t[r],r)*n*2}));i.setData(r),p.modified()}v.updateTime().modified()},this._exit=function(){v.renderer().contextRenderer().removeActor(f),_()},v._init(),this};i(a,o);var s={};s[o.capabilities.stroke]=!1,r("vtkjs","point",a,s),t.exports=a},9897:function(t,e,n){var i=n(4626),r=n(1098).registerRenderer,o=n(2274),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var e=n(3503),i=n(6409),r=a.vtkjs.Rendering.Misc.vtkGenericRenderWindow,s=this,l=this._init,u=r.newInstance({background:[0,0,0,0]});u.setContainer(s.layer().node().get(0)),u.getInteractor().unbindEvents(),u.resize();var c=u.getRenderer(),d=u.getRenderWindow();return this.contextRenderer=function(){return c},this.api=function(){return a.apiname},this._init=function(){if(s.initialized())return s;l.call(s);var t=s.layer().map(),e=t.size();return s._resize(0,0,e.width,e.height),t.camera().clipbounds={near:-t.unitsPerPixel(),far:t.unitsPerPixel()},s},this._resize=function(t,e,n,i){return s._setWidthHeight(n,i),u.resize(),s._render(),s},this._render=function(){return s.layer().map().scheduleAnimationFrame(s._renderFrame,!0),s},this._renderFrame=function(){var t,e=s.layer().features();for(t=0;t<e.length;t+=1)e[t].visible()&&e[t]._update();s._updateRendererCamera(),d.render()},this._exit=function(){},this._updateRendererCamera=function(){var t=s.layer().map().camera(),n=t.view,i=t.projectionMatrix,r=e.create();e.copy(r,n);var o=e.create();e.copy(o,i),s.contextRenderer().getActiveCamera().setViewMatrix(r),s.contextRenderer().getActiveCamera().setProjectionMatrix(o)},s.layer().geoOn(i.pan,(function(t){s._render()})),s.layer().geoOn(i.parallelprojection,(function(t){})),this};a.apiname="vtkjs",i(a,o),r("vtkjs",a),a.supported=function(){delete a.vtkjs;try{a.vtkjs=n(4436)}catch(t){}return a.vtkjs&&a.vtkjs.Rendering||!window.vtk||!window.vtk.Rendering||(a.vtkjs=window.vtk),a.vtkjs&&a.vtkjs.Rendering||(a.vtkjs=void 0),void 0!==a.vtkjs},a.fallback=function(){return null},a.supported(),t.exports=a},3559:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(3561),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var e=this,n=null,i=this._exit,r=this.draw,s=this._update;return this.draw=function(){if(e._update(),n)for(var t=0;t<n.length;t+=1)n[t].draw();return r(),e},this._build=function(){return e.buildTime().modified(),n=e.createChoropleth()},this._update=function(){s.call(e),(e.dataTime().timestamp()>=e.buildTime().timestamp()||e.updateTime().timestamp()<=e.timestamp())&&(e._wipePolygons(),e._build()),e.updateTime().modified()},this._wipePolygons=function(){n&&n.map((function(t){return t._exit()})),n=null},this._exit=function(){e._wipePolygons(),i()},this._init(t),this};i(a,o),r("webgl","choropleth",a),t.exports=a},6791:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(6761),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t),n(2778).call(this,t);var e=this;return this._build=function(){e.actors()[0]&&e.renderer().contextRenderer().removeActor(e.actors()[0]),e.createGLMeshColored(e._createContours()),e.renderer().contextRenderer().addActor(e.actors()[0]),e.buildTime().modified()},this._init(t),this};i(a,o),r("webgl","contour",a),t.exports=a},8257:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(2499),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t),n(2778).call(this,t);var e=this;return this._build=function(){e.actors()[0]&&e.renderer().contextRenderer().removeActor(e.actors()[0]),e.createGLMeshColored(e._createGrids()),e.renderer().contextRenderer().addActor(e.actors()[0]),e.buildTime().modified()},this._init(t),this};i(a,o),r("webgl","grid",a),t.exports=a},8635:function(t,e,n){t.exports={choroplethFeature:n(3559),contourFeature:n(6791),gridFeature:n(8257),isolineFeature:n(960),layer:n(6982),lineFeature:n(5795),lookupTable2D:n(411),markerFeature:n(3403),meshColored:n(2778),pixelmapFeature:n(7759),pointFeature:n(5407),polygonFeature:n(8511),quadFeature:n(9304),tileLayer:n(1474),trackFeature:n(536),webglRenderer:n(7945)}},960:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(2586),a=function(t){"use strict";return this instanceof a?(t=t||{},o.call(this,t),n(4084).call(this),this._init(t),this):new a(t)};i(a,o),r("webgl","isoline",a),t.exports=a},6982:function(t,e,n){var i=function(){"use strict";var t=n(1098).createRenderer,e=n(6409),i=n(7945),r=n(9264),o=this,a=this._init,s=this.opacity,l=this.visible,u=this.zIndex;this.opacity=function(t){var e=s.apply(o,arguments);return void 0!==t&&o.initialized()&&o.map()._updateAutoshareRenderers(),e},this.visible=function(t){if(void 0===t)return l();var e=l(),n=l.apply(o,arguments);return e!==t&&o.initialized()&&(o.map().scheduleAnimationFrame(o._update,!0),o.renderer()._render()),n},this.zIndex=function(t,e){var n=u.apply(o,arguments);return void 0!==t&&o.initialized()&&(o.map().scheduleAnimationFrame(o._update,!0),o.renderer()._render(),o.map()._updateAutoshareRenderers()),n},this.switchRenderer=function(t,e){if(t instanceof i&&t!==o.renderer()){var n=o.renderer(),r=[],a=[];o.map().listSceneObjects([o]).forEach((function(t){t._cleanup&&(t._cleanup(),t._update&&a.push(t)),t.actors&&(r=r.concat(t.actors()))})),r.forEach((function(e){n.contextRenderer().removeActor(e),t.contextRenderer().addActor(e)})),o._renderer(t),o._canvas(t.canvas()),e&&(r.length||a.length)&&(n._render(),a.forEach((function(t){t._update()})),t._render())}return o},this._init=function(){var n=o.map();return n._updateAutoshareRenderers||(n._updateAutoshareRenderers=function(){var e,o,a,s=n.sortedLayers(),l=[];s.forEach((function(n){var s=n.autoshareRenderer(),u=n instanceof r;s&&n.renderer()&&n.renderer().api()===i.apiname?!e||n.opacity()!==o||"more"!==s&&(n.opacity()>0&&n.opacity()<1||u&&!a)?(n.node()[0].contains(n.renderer().canvas()[0])||(n.switchRenderer(t(i.apiname,n),!1),l.push(n.renderer())),e=n.renderer(),o=n.opacity(),a=u):(n.renderer()!==e&&(l.push(n.renderer()),n.switchRenderer(e,!1),l.push(n.renderer())),a&=u):e=null})),s.forEach((function(t){l.indexOf(t.renderer())>=0&&t._update&&t._update()})),s.forEach((function(t){l.indexOf(t.renderer())>=0&&(t.renderer()._renderFrame(),l=l.filter((function(e){return e!==t.renderer()})))})),l.forEach((function(t){t._exit()}))},n.geoOn(e.layerAdd,(function(){return n._updateAutoshareRenderers()})),n.geoOn(e.layerRemove,(function(){return n._updateAutoshareRenderers()}))),a.apply(o,arguments)}};(0,n(1098).registerLayerAdjustment)("webgl","all",i),t.exports=i},5795:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(9281),a=0,s=1,l=3,u={butt:0,square:1,round:2},c={passthrough:3,miter:4,bevel:5,round:6,"miter-clip":7},d={normal:0,debug:1},h=function(t){"use strict";if(!(this instanceof h))return new h(t);t=t||{},o.call(this,t);var e=n(1611),i=n(5325),r=n(642),f=n(4084),p=n(5685),m=n(1388),g=n(9336);f.call(this);var y,v,x,_,b,w,M,A,T,C,E,k=this,S=this._exit,O=void 0!==t.dynamicDraw&&t.dynamicDraw,P=this._init,L=this._update;return this.featureVertices=function(){return[[0,"corner",-1,a],[0,"near",1,s],[1,"far",-1,l],[1,"corner",1,a],[1,"near",-1,s],[0,"far",1,l]]},this.verticesPerFeature=function(){return k.featureVertices().length},this._init=function(t){var n,i=e.shaderProgram(),r=((n=new e.shader(e.GL.VERTEX_SHADER)).setShaderSource(g),n),o=function(t){var n=new e.shader(e.GL.FRAGMENT_SHADER);return n.setShaderSource(t?m:p),n}(void 0!==((t||{}).style||{}).debug),a=e.vertexAttribute("pos"),s=e.vertexAttribute("prev"),l=e.vertexAttribute("next"),u=e.vertexAttribute("far"),c=e.vertexAttribute("flags"),d=e.vertexAttribute("strokeWidth"),h=e.vertexAttribute("strokeColor"),f=e.vertexAttribute("strokeOpacity"),T=new e.projectionUniform("projectionMatrix"),C=e.geometryData(),S=e.sourceDataP3fv({name:"pos"}),L=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Four,{name:"prev"}),R=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Five,{name:"next"}),I=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Six,{name:"far"}),D=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Seven,{name:"flags"}),F=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.One,{name:"strokeWidth"}),j=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Two,{name:"strokeColor"}),B=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Three,{name:"strokeOpacity"}),N=e.triangles();return E=new e.modelViewOriginUniform("modelViewMatrix"),_=new e.floatUniform("pixelWidth",1/k.renderer().width()),b=new e.floatUniform("aspect",k.renderer().width()/k.renderer().height()),w=new e.floatUniform("miterLimit",10),M=new e.floatUniform("antialiasing",0),A=new e.floatUniform("fixedFlags",0),P.call(k,t),x=e.material(),v=e.mapper({dynamicDraw:O}),i.addVertexAttribute(a,e.vertexAttributeKeys.Position),i.addVertexAttribute(d,e.vertexAttributeKeysIndexed.One),i.addVertexAttribute(h,e.vertexAttributeKeysIndexed.Two),i.addVertexAttribute(f,e.vertexAttributeKeysIndexed.Three),i.addVertexAttribute(s,e.vertexAttributeKeysIndexed.Four),i.addVertexAttribute(l,e.vertexAttributeKeysIndexed.Five),i.addVertexAttribute(u,e.vertexAttributeKeysIndexed.Six),i.addVertexAttribute(c,e.vertexAttributeKeysIndexed.Seven),i.addUniform(E),i.addUniform(T),i.addUniform(_),i.addUniform(b),i.addUniform(w),i.addUniform(M),i.addUniform(A),i.addShader(o),i.addShader(r),x.addAttribute(i),x.addAttribute(e.blend()),(y=e.actor()).setMaterial(x),y.setMapper(v),C.addSource(S),C.addSource(L),C.addSource(R),C.addSource(I),C.addSource(F),C.addSource(j),C.addSource(B),C.addSource(D),N.setIndices(new Uint16Array(1)),C.addPrimitive(N),C.computeBounds=function(){C.setBounds(0,0,0,0,0,0)},v.setGeometryData(C),k},this.actors=function(){return y?[y]:[]},this._build=function(){return function(t){var e,n,o,a,s,l,h,f,p,m,g,y,x,_,b,S,O,P,L,R,I,D,F,j,B,N,z,V,G,q,U,H,W,X,K,Q,Z,Y,J,$,tt=k.data(),et=0,nt=[{strokeOffset:0,posStrokeOffset:0,negStrokeOffset:0},{strokeOffset:0,posStrokeOffset:0,negStrokeOffset:0}],it=nt[1],rt=k.gcs(),ot=k.layer().map().gcs(),at=k.line(),st=k.style.get("strokeWidth"),lt=k.style.get("strokeColor"),ut=k.style.get("strokeOpacity"),ct=k.style.get("lineCap"),dt=k.style.get("lineJoin"),ht=k.style.get("strokeOffset"),ft=k.style.get("miterLimit")(tt),pt=k.style.get("antialiasing")(tt)||0,mt=k.style.get("uniformLine"),gt=k.featureVertices(),yt=gt.length,vt=d[k.style.get("debug")(tt)?"debug":"normal"]||0,xt=v.geometryData(),_t=k.style.get("closed"),bt=!0;if(J=r.isFunction(k.style("closed"))?void 0:_t()||!1,R=r.isFunction(k.style("lineCap"))?void 0:u[ct()||"butt"],I=r.isFunction(k.style("lineJoin"))?void 0:c[dt()||"miter"],P=r.isFunction(k.style("strokeColor"))?void 0:lt(),D=r.isFunction(k.style("strokeOffset"))?void 0:ht()||0,L=r.isFunction(k.style("strokeOpacity"))?void 0:ut(),O=r.isFunction(k.style("strokeWidth"))?void 0:st(),F=r.isFunction(k.style("uniformLine"))?void 0:mt(),void 0!==ft&&w.set(Math.max(1,Math.min(100,ft))),A.set(vt),M.set(pt),t)et=T.numSegments,$=T.closed,m=T.lineItemList,p=et*yt,bt=R!==T.lineCapVal||void 0===R||I!==T.lineJoinVal||void 0===I||D!==T.strokeOffsetVal||void 0===D;else{var wt=[],Mt=k.position();for(Mt=Mt===r.identityFunction?null:Mt,m=new Array(tt.length),$=new Array(tt.length),n=0;n<tt.length;n+=1)if(g=at(e=tt[n],n),m[n]=g,!(g.length<2)){for(et+=g.length-1,o=0;o<g.length;o+=1)x=Mt?Mt(g[o],o,e,n):g[o],wt.push(x.x),wt.push(x.y),wt.push(x.z||0),o||(b=x);g.length>2&&(void 0===J?_t(e,n):J)?x.x!==b.x||x.y!==b.y||x.z!==b.z?(et+=1,$[n]=2):$[n]=1:$[n]=0}if(wt=i.transformCoordinates(rt,ot,wt,3),(C=new Float32Array(k.style.get("origin")(wt)))[0]||C[1]||C[2])for(n=0;n<wt.length;n+=3)wt[n]-=C[0],wt[n+1]-=C[1],wt[n+2]-=C[2];E.setOrigin(C),p=et*yt,G=r.getGeomBuffer(xt,"pos",3*p),q=r.getGeomBuffer(xt,"prev",3*p),U=r.getGeomBuffer(xt,"next",3*p),H=r.getGeomBuffer(xt,"far",3*p),xt.primitive(0).numberOfIndices()!==p&&(xt.primitive(0).numberOfIndices=function(){return p}),T={numSegments:et,closed:$,lineItemList:m,lineCapVal:R,lineJoinVal:I,strokeOffsetVal:D}}for(W=r.getGeomBuffer(xt,"flags",p),X=r.getGeomBuffer(xt,"strokeWidth",p),K=r.getGeomBuffer(xt,"strokeColor",3*p),Q=r.getGeomBuffer(xt,"strokeOpacity",p),n=_=Z=Y=0;n<tt.length;n+=1)if(!((g=m[n]).length<2)){j=void 0===F?mt(g,n):F,e=tt[n],J=$[n],S=_,f=g.length+(2===J?1:0);var At=0;for(o=0;o<f;o+=1,_+=3)if(h=o,o===g.length&&(h=0,_-=3),y=g[h],o&&(it=nt[0],nt[0]=nt[1],nt[1]=it),t||(it.pos=o===h?_:S,it.prev=h?_-3:J?S+3*(g.length-3+J):_,it.next=o+1<g.length?_+3:J?o!==h?S+3:S+6-3*J:_),j&&o>0?1===o&&(it.strokeWidth=nt[0].strokeWidth,it.strokeColor=nt[0].strokeColor,it.strokeOpacity=nt[0].strokeOpacity):(it.strokeWidth=void 0===O?st(y,h,e,n):O,it.strokeColor=void 0===P?lt(y,h,e,n):P,it.strokeOpacity=void 0===L?ut(y,h,e,n):L),bt&&(0!==D&&(j&&o>0?1===o&&(it.strokeOffset=nt[0].strokeOffset):it.strokeOffset=(void 0===D?ht(y,h,e,n):D)||0,it.strokeOffset?(it.posStrokeOffset=2047&Math.round(2048+1023*Math.min(1,Math.max(-1,it.strokeOffset))),it.negStrokeOffset=2047&Math.round(2048-1023*Math.min(1,Math.max(-1,it.strokeOffset)))):it.posStrokeOffset=it.negStrokeOffset=0),J||o&&o!==g.length-1?it.flags=void 0===I?c[dt(y,h,e,n)]||c.miter:I:it.flags=void 0===R?u[ct(y,h,e,n)]||u.butt:R),o){if("drop"===j&&o>1&&wt[nt[0].pos]===wt[nt[1].pos]&&wt[nt[0].pos+1]===wt[nt[1].pos+1]){At+=1;continue}for(a=0;a<yt;a+=1,Z+=1,Y+=3)"drop"===j&&nt[0].strokeOpacity<=0&&nt[1].strokeOpacity<=0?Q[Z]=-1:(s=nt[B=gt[a][0]],l=nt[1-B],t||(G[Y]=wt[s.pos],G[Y+1]=wt[s.pos+1],G[Y+2]=0,N=B?"next":"prev",z=B?"prev":"next",q[Y]=wt[s[N]],q[Y+1]=wt[s[N]+1],q[Y+2]=0,U[Y]=wt[s[z]],U[Y+1]=wt[s[z]+1],U[Y+2]=0,H[Y]=wt[l[z]],H[Y+1]=wt[l[z]+1],H[Y+2]=0),bt&&(V=B?"posStrokeOffset":"negStrokeOffset",W[Z]=gt[a][3]+4*s.flags+32*l.flags+256*s[V]),X[Z]=s.strokeWidth,K[Y]=s.strokeColor.r,K[Y+1]=s.strokeColor.g,K[Y+2]=s.strokeColor.b,s.strokeOpacity<=0&&l.strokeOpacity<=0||s.strokeWidth<=0&&l.strokeWidth<=0?Q[Z]=-1:Q[Z]=s.strokeOpacity)}if(At)for(a=0;a<At*yt;a+=1,Z+=1,Y+=3)Q[Z]=-1}t?(bt&&v.updateSourceBuffer("flags"),v.updateSourceBuffer("strokeWidth"),v.updateSourceBuffer("strokeOpacity"),v.updateSourceBuffer("strokeColor")):(v.modified(),xt.boundsDirty(!0),v.boundsDirtyTimestamp().modified())}(!!(k.dataTime().timestamp()<k.buildTime().timestamp()&&T)),k.renderer().contextRenderer().hasActor(y)||k.renderer().contextRenderer().addActor(y),k.buildTime().modified(),k},this._update=function(){return L.call(k),(k.dataTime().timestamp()>=k.buildTime().timestamp()||k.updateTime().timestamp()<=k.timestamp())&&k._build(),_.set(1/k.renderer().width()),b.set(k.renderer().width()/k.renderer().height()),y.setVisible(k.visible()),y.material().setBinNumber(k.bin()),k.updateTime().modified(),k},this._exit=function(){k.renderer().contextRenderer().removeActor(y),y=null,S()},this._init(t),this};i(h,o);var f={};f[o.capabilities.basic]=!0,f[o.capabilities.multicolor]=!0,r("webgl","line",h,f),t.exports=h},411:function(t,e,n){var i=n(4626),r=n(77),o=n(1611);var a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.texture.call(this);var e,n=r(),i=t.maxWidth||4096,s=new Uint8Array([0,0,0,0]),l=this;return this.setup=function(t){!function(t,e){if(!(e>=0&&e<=31))throw Error("[error] Texture unit "+e+" is not supported");t.m_context.activeTexture(o.GL.TEXTURE0+e)}(t,l.textureUnit()),t.m_context.deleteTexture(l.m_textureHandle),l.m_textureHandle=t.m_context.createTexture(),t.m_context.bindTexture(o.GL.TEXTURE_2D,l.m_textureHandle),t.m_context.texParameteri(o.GL.TEXTURE_2D,o.GL.TEXTURE_MIN_FILTER,o.GL.NEAREST),t.m_context.texParameteri(o.GL.TEXTURE_2D,o.GL.TEXTURE_MAG_FILTER,o.GL.NEAREST),t.m_context.texParameteri(o.GL.TEXTURE_2D,o.GL.TEXTURE_WRAP_S,o.GL.CLAMP_TO_EDGE),t.m_context.texParameteri(o.GL.TEXTURE_2D,o.GL.TEXTURE_WRAP_T,o.GL.CLAMP_TO_EDGE),t.m_context.pixelStorei(o.GL.UNPACK_ALIGNMENT,1),t.m_context.pixelStorei(o.GL.UNPACK_FLIP_Y_WEBGL,!0),t.m_context.texImage2D(o.GL.TEXTURE_2D,0,o.GL.RGBA,l.width,l.height,0,o.GL.RGBA,o.GL.UNSIGNED_BYTE,s),t.m_context.bindTexture(o.GL.TEXTURE_2D,null),n.modified()},this.colorTable=function(t){return void 0===t?e:(e=t,t.length<4&&(t=[0,0,0,0]),l.width=Math.min(i,t.length/4),l.height=Math.ceil(t.length/4/i),t instanceof Uint8Array&&t.length===l.width*l.height*4?s=t:(t.length<l.width*l.height*4&&(t=t.concat(new Array(l.width*l.height*4-t.length).fill(0))),s=new Uint8Array(t)),l.modified(),l)},this.maxWidth=function(){return i},this.colorTable(t.colorTable||[]),this};i(a,o.texture),t.exports=a},3403:function(t,e,n){var i=n(5616),r=n(4626),o=n(1098).registerFeature,a=n(2225),s=n(7945),l=function(t){"use strict";if(!(this instanceof l))return new l(t);t=t||{},a.call(this,t);var e=n(1611),r=n(5325),o=n(642),u=n(4084),c=n(2709),d=n(6409),h=n(9923),f=n(3724),p=n(1202),m=n(7665);u.call(this);var g,y,v=this,x=this._exit,_=null,b=null,w={},M=this._init,A=this._update,T=this.updateStyleFromArray;function C(t){var e,n,i,l,u,c,d,h,f,p,m,x,w,M=v.data().length,A=v._pointPolygon(0,0,1,1),T=new Array(3*M),E={},k={},S={},O={},P={radius:1,fillColor:3,fillOpacity:1,strokeColor:3,strokeOpacity:1,strokeOffset:0,strokeWidth:1,symbol:1,symbolValue:1,rotation:1,scaleWithZoom:0,rotateWithMap:0,radiusIncludesStroke:0},L=v.verticesPerFeature(),R=v.data(),I=b.geometryData();for(var D in u=v.position(),P)S[D]=v.style.get(D),o.isFunction(v.style(D))||(O[D]=S[D]()),P[D]&&(E[D]=o.getGeomBuffer(I,D,L*M*P[D]));if(!t){for(e=x=0;e<M;e+=1,x+=3)l=u(R[e],e),T[x]=l.x,T[x+1]=l.y,T[x+2]=0;if(T=r.transformCoordinates(v.gcs(),v.layer().map().gcs(),T,3),(y=new Float32Array(v.style.get("origin")(T)))[0]||y[1]||y[2])for(e=x=0;e<M;e+=1,x+=3)T[x]-=y[0],T[x+1]-=y[1],T[x+2]-=y[2];g.setOrigin(y),i=o.getGeomBuffer(I,"pos",L*M*3),v._primitiveShape!==a.primitiveShapes.sprite&&(d=o.getGeomBuffer(I,"unit",L*M*2)),(c=I.primitive(0).indices())instanceof Uint16Array&&c.length===L*M||(c=new Uint16Array(L*M),I.primitive(0).setIndices(c))}for(e=f=p=m=x=0;e<M;e+=1,x+=3){if(h=R[e],!t&&v._primitiveShape!==a.primitiveShapes.sprite)for(n=0;n<A.length;n+=1,m+=1)d[m]=A[n];for(var F in P)k[F]=void 0===O[F]?S[F](h,e):O[F];for(k.scaleWithZoom=a.scaleMode[k.scaleWithZoom]||(k.scaleWithZoom>=1&&k.scaleWithZoom<=3?k.scaleWithZoom:0),k.symbolComputed=k.scaleWithZoom+(k.rotateWithMap?4:0)+16*(Math.sign(void 0!==k.radiusIncludesStroke&&k.radiusIncludesStroke?k.strokeOffset:1)+1)+64*k.symbol,k.symbolValue&&k.symbol>=a.symbols.arrow&&k.symbol<a.symbols.arrow+a.symbols.arrowMax&&(k.symbolValue=(w=k.symbolValue).length?((void 0===w[0]?0:Math.floor(250*Math.abs(w[0]))+1)+252*(void 0===w[1]?0:Math.floor(250*Math.abs(w[1]))+1)+252*(void 0===w[2]?0:Math.floor(250*Math.abs(w[2]))+1)*252)*(w[3]?-1:1):void 0===w?0:Math.floor(250*Math.abs(w))+1),n=0;n<L;n+=1,f+=1,p+=3)t||(i[p]=T[x],i[p+1]=T[x+1],i[p+2]=T[x+2]),E.radius[f]=k.radius,E.fillColor[p]=k.fillColor.r,E.fillColor[p+1]=k.fillColor.g,E.fillColor[p+2]=k.fillColor.b,E.fillOpacity[f]=k.fillOpacity,E.strokeColor[p]=k.strokeColor.r,E.strokeColor[p+1]=k.strokeColor.g,E.strokeColor[p+2]=k.strokeColor.b,E.strokeOpacity[f]=k.strokeOpacity,E.strokeWidth[f]=k.strokeWidth,E.symbol[f]=k.symbolComputed,E.symbolValue[f]=k.symbolValue,E.rotation[f]=k.rotation}if(v._primitiveShapeAuto){var j=v._approximateMaxRadius(v.renderer().map().zoom());if(v._primitiveShape===a.primitiveShapes.sprite&&j>s._maxPointSize||v._primitiveShape!==a.primitiveShapes.sprite&&j<=s._maxPointSize)return v._primitiveShape=j>s._maxPointSize?a.primitiveShapes.triangle:a.primitiveShapes.sprite,v.renderer().contextRenderer().removeActor(_),_=null,v._init(!0),void C()}t?Object.keys(E).forEach((function(t){return b.updateSourceBuffer(t)})):(I.boundsDirty(!0),b.modified(),b.boundsDirtyTimestamp().modified())}return c(v,t),this.actors=function(){return _?[_]:[]},this.updateStyleFromArray=function(t,e,n){var r,o,a={fillColor:3,fillOpacity:1,radius:1,strokeColor:3,strokeOpacity:1,strokeWidth:1,symbolComputed:1,symbolValueComputed:1};if("string"==typeof t){var s={};s[t]=e,t=s}return i.each(t,(function(t,e){var n,i,s,l,u,c,d,h,f,p;if(v.visible()&&_&&a[t]&&!r&&!v.clustering())if(f=a[t],l=v.data().length,p="symbolComputed"===t?"symbol":"symbolValueComputed"===t?"symbolValue":t,s=(i=_.mapper()).getSourceBuffer(p),n=v.verticesPerFeature(),s&&l&&l*n*f===s.length){switch(a[t]){case 1:for(c=0,h=0;c<l;c+=1)for(u=e[c],d=0;d<n;d+=1,h+=1)s[h]=u;break;case 3:for(c=0,h=0;c<l;c+=1)for(u=e[c],d=0;d<n;d+=1,h+=3)s[h]=u.r,s[h+1]=u.g,s[h+2]=u.b}i.updateSourceBuffer(p),o=!0}else r=!0;else r=!0;if(t===p){var m=v.modified;r||(v.modified=function(){}),T(t,e,!1),v.modified=m}})),n&&(v.visible()&&r?v.draw():o&&v.renderer()._render()),v},this._handleZoom=function(t){v._primitiveShapeAuto&&v._primitiveShape===a.primitiveShapes.sprite&&v._approximateMaxRadius(t)>s._maxPointSize&&(v._primitiveShape=a.primitiveShapes.triangle,v.renderer().contextRenderer().removeActor(v.actors()[0]),v._init(!0),v.dataTime().modified(),v.draw())},this._init=function(n){var i,r,o=e.shaderProgram(),s=((r=new e.shader(e.GL.VERTEX_SHADER)).setShaderSource(v._primitiveShape===a.primitiveShapes.sprite?m:p),r),l=function(){var t=new e.shader(e.GL.FRAGMENT_SHADER);return t.setShaderSource(v._primitiveShape===a.primitiveShapes.sprite?f:h),t}(),u=e.material(),c=e.blend(),x=e.geometryData(),A=e.sourceDataP3fv({name:"pos"}),T={radius:1,fillColor:3,fillOpacity:1,strokeColor:3,strokeOpacity:1,strokeWidth:1,symbol:1,symbolValue:1,rotation:1},C={pixelWidth:e.GL.FLOAT,aspect:e.GL.FLOAT,zoom:e.GL.FLOAT,rotationUniform:e.GL.FLOAT},E=new e.projectionUniform("projectionMatrix");g=new e.modelViewOriginUniform("modelViewMatrix",y),v._primitiveShape===a.primitiveShapes.sprite?i=new e.points:(i=new e.triangles,T.unit=2),i.setIndices(new Uint16Array),n||M.call(v,t),b=e.mapper(),o.addVertexAttribute(e.vertexAttribute("pos"),e.vertexAttributeKeys.Position),x.addSource(A),Object.keys(T).forEach((function(t,n){o.addVertexAttribute(e.vertexAttribute(t),n+1),x.addSource(e.sourceDataAnyfv(T[t],n+1,{name:t}))})),w={},Object.keys(C).forEach((function(t){w[t]=new e.uniform(C[t],t),o.addUniform(w[t])})),o.addUniform(g),o.addUniform(E),o.addShader(l),o.addShader(s),u.addAttribute(o),u.addAttribute(c),(_=e.actor()).setMaterial(u),_.setMapper(b),x.addPrimitive(i),x.computeBounds=function(){x.setBounds(0,0,0,0,0,0)},b.setGeometryData(x),n||v.geoOn(d.zoom,(function(t){v._handleZoom(t.zoomLevel)}))},this._build=function(){return C(v.dataTime().timestamp()<v.buildTime().timestamp()),v.renderer().contextRenderer().hasActor(_)||v.renderer().contextRenderer().addActor(_),v.buildTime().modified(),v},this._update=function(){return A.call(v),(v.dataTime().timestamp()>=v.buildTime().timestamp()||v.updateTime().timestamp()<v.timestamp())&&v._build(),w.pixelWidth.set(2/v.renderer().width()),w.aspect.set(v.renderer().width()/v.renderer().height()),w.zoom.set(v.renderer().map().zoom()),w.rotationUniform.set(v.renderer().map().rotation()),_.setVisible(v.visible()),_.material().setBinNumber(v.bin()),v.updateTime().modified(),v},this._exit=function(){v.renderer().contextRenderer().removeActor(_),_=null,w={},x()},v._init(),this};r(l,a);o("webgl","marker",l,{}),t.exports=l},2778:function(t,e,n){t.exports=function(t){"use strict";t=t||{};var e=n(1611),i=n(5325),r=n(642),o=n(428),a=n(4993);n(4084).call(this);var s,l,u=this,c=this._exit,d=null,h=null,f=null,p=null,m=null,g=null,y=null,v=null,x=void 0!==t.dynamicDraw&&t.dynamicDraw,_=this._init,b=this._update;function w(){var t=new e.shader(e.GL.VERTEX_SHADER);return t.setShaderSource(a),t}function M(){var t=new e.shader(e.GL.FRAGMENT_SHADER);return t.setShaderSource(o),t}return this.createGLMeshColored=function(t){var e,n,o,a,c,d,f,x,_,b=t.elements.length,w=[],M=h.geometryData();for(m.set([t.minColor.r,t.minColor.g,t.minColor.b,t.minColor.a]),g.set([t.maxColor.r,t.maxColor.g,t.maxColor.b,t.maxColor.a]),y.set(t.colorMap.length),v.set(t.stepped),e=-1;e<t.colorMap.length+1;e+=1)o=Math.max(0,Math.min(t.colorMap.length-1,e)),w.push(255*t.colorMap[o].r),w.push(255*t.colorMap[o].g),w.push(255*t.colorMap[o].b),w.push(255*t.colorMap[o].a);if(p.setColorTable(w),t.pos=i.transformCoordinates(u.gcs(),u.layer().map().gcs(),t.pos,3),(s=new Float32Array(u.style.get("origin")(t.pos)))[0]||s[1]||s[2])for(e=0;e<t.pos.length;e+=3)t.pos[e]-=s[0],t.pos[e+1]-=s[1],t.pos[e+2]-=s[2];for(l.setOrigin(s),d=r.getGeomBuffer(M,"pos",3*b),f=r.getGeomBuffer(M,"opacity",b),x=r.getGeomBuffer(M,"value",b),e=n=0;e<b;e+=1,n+=3)a=3*(o=t.elements[e]),d[n]=t.pos[a],d[n+1]=t.pos[a+1],d[n+2]=t.pos[a+2],c=t.elementValues?Math.floor(e/3):o,f[e]=t.opacity[c],x[e]=t.value[c];(_=M.primitive(0).indices())instanceof Uint16Array&&_.length===b||(_=new Uint16Array(b),M.primitive(0).setIndices(_)),M.boundsDirty(!0),h.modified(),h.boundsDirtyTimestamp().modified()},this._init=function(t){var n=e.blend(),i=e.shaderProgram(),r=e.material(),o=e.lookupTable(),a=e.geometryData(),s=new e.projectionUniform("projectionMatrix"),c=new e.uniform(e.GL.INT,"sampler2d"),b=w(),A=M(),T=e.vertexAttribute("pos"),C=e.vertexAttribute("value"),E=e.vertexAttribute("opacity"),k=e.sourceDataP3fv({name:"pos"}),S=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.One,{name:"value"}),O=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Two,{name:"opacity"}),P=new e.triangles;l=new e.modelViewOriginUniform("modelViewMatrix"),_.call(u,t),h=e.mapper({dynamicDraw:x}),i.addVertexAttribute(T,e.vertexAttributeKeys.Position),i.addVertexAttribute(C,e.vertexAttributeKeysIndexed.One),i.addVertexAttribute(E,e.vertexAttributeKeysIndexed.Two),i.addUniform(l),i.addUniform(s),m=new e.uniform(e.GL.FLOAT_VEC4,"minColor"),i.addUniform(m),g=new e.uniform(e.GL.FLOAT_VEC4,"maxColor"),i.addUniform(g),y=new e.uniform(e.GL.FLOAT,"steps"),i.addUniform(y),v=new e.uniform(e.GL.BOOL,"stepped"),i.addUniform(v),i.addShader(A),i.addShader(b),i.addUniform(c),o.setTextureUnit(7),c.set(7),(f=r).addAttribute(i),f.addAttribute(n),p=o,f.addAttribute(p),(d=e.actor()).setMaterial(f),d.setMapper(h),a.addSource(k),a.addSource(S),a.addSource(O),a.addPrimitive(P),a.computeBounds=function(){a.setBounds(0,0,0,0,0,0)},h.setGeometryData(a)},this.actors=function(){return d?[d]:[]},this._update=function(){b.call(u),(u.dataTime().timestamp()>=u.buildTime().timestamp()||u.updateTime().timestamp()<=u.timestamp())&&u._build(),d.setVisible(u.visible()),d.material().setBinNumber(u.bin()),u.updateTime().modified()},this._exit=function(){u.renderer().contextRenderer().removeActor(d),c()},this}},4084:function(t,e,n){var i=function(t){"use strict";if(!(this instanceof n(1338)))return new i(t);var e=this,r=this.draw;if(this.draw=function(){return e.ready&&(e._update({mayDelay:!0}),e.renderer()._render(),r()),e},this.bin){var o=this.bin;this.bin=function(t,n){if(void 0===t&&!n&&null===o(void 0,!0)){var i=e.layer&&e.layer(),r=i&&i.map&&i.map(),a=(r&&r.listSceneObjects()||[]).indexOf(e);if(a>=0)return a}return o.apply(e,arguments)}}return this};t.exports=i},7759:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(7761),a=n(411),s=n(642),l=function(t){"use strict";if(!(this instanceof l))return new l(t);o.call(this,t),n(4084).call(this);var e,i,r,u=n(1611),c=n(3925),d=this._exit,h=this;return this.pointSearch=function(t,n){if(e&&h.m_info)for(var i=e.pointSearch(t,n),r=i.index.length-1;r>=0;r-=1)if(i.extra[i.index[r]]._quad&&i.extra[i.index[r]]._quad.image){var o=i.extra[i.index[r]]._quad.image,a=i.extra[i.index[r]].basis,s=Math.floor(a.x*o.width),l=Math.floor(a.y*o.height),u=document.createElement("canvas");u.width=u.height=1;var c=u.getContext("2d");c.drawImage(o,s,l,1,1,0,0,1,1);var d=c.getImageData(0,0,1,1).data,f=d[0]+256*d[1]+256*d[2]*256;return i={index:[f],found:[h.data()[f]]}}return{index:[],found:[]}},this._computePixelmap=function(){var t=h.data()||[],n=h.style.get("color"),o=h.indexModified(void 0,"clear"),l=h.dataTime().timestamp()>=h.buildTime().timestamp()||void 0===o;r||((r=a()).setTextureUnit(1),l=!0);var d,f=Math.max(1,t.length),p=r.maxWidth();f>p&&f%p&&(f+=p-f%p),l||(l=(d=r.colorTable()).length!==4*f,o[0]=Math.max(0,o[0]),o[1]=Math.min(t.length,o[1]+1)),l&&(d=new Uint8Array(4*f),o=[0,t.length]);for(var m=o[0];m<o[1];m+=1){var g=t[m],y=s.convertColor(n.call(h,g,m));d[4*m]=255*y.r,d[4*m+1]=255*y.g,d[4*m+2]=255*y.b,d[4*m+3]=void 0===y.a?255:255*y.a}h.m_info={colors:d};var v=r.colorTable();if(v&&v.length===d.length){for(var x=4*o[0];x<4*o[1]&&d[x]===v[x];x+=1);if(x===4*o[1])return}r.colorTable(d),e||(e=h.layer().createFeature("quad",{selectionAPI:!1,gcs:h.gcs(),visible:h.visible(void 0,!0),nearestPixel:!0}),i=!1),i||(h.dependentFeatures([e]),e.setShader("image_fragment",c),e._hookBuild=function(t){var e=new u.uniform(u.GL.INT,"lutSampler");e.set(r.textureUnit()),t.addUniform(e);var n=new u.uniform(u.GL.INT,"lutWidth");n.set(r.width),t.addUniform(n);var i=new u.uniform(u.GL.INT,"lutHeight");i.set(r.height),t.addUniform(i)},e._hookRenderImageQuads=function(t,e){r.bind(t,e)},!1===i&&e.style({image:h.m_srcImage,position:h.style.get("position")}).data([{}]).draw(),i=!0)},this._exit=function(){return e&&h.layer()&&(h.layer().deleteFeature(e),e=null,h.dependentFeatures([])),d(),h},t.quadFeature&&(e=t.quadFeature).nearestPixel&&e.nearestPixel(!0),this._init(t),this};i(l,o);var u={};u[o.capabilities.lookup]=!0,r("webgl","pixelmap",l,u),t.exports=l},5407:function(t,e,n){var i=n(5616),r=n(4626),o=n(1098).registerFeature,a=n(7541),s=n(7945),l=function(t){"use strict";if(!(this instanceof l))return new l(t);t=t||{},a.call(this,t);var e=n(1611),r=n(5325),o=n(642),u=n(4084),c=n(2709),d=n(4317),h=n(2682),f=n(8208),p=n(6979);u.call(this);var m,g,y=this,v=this._exit,x=null,_=null,b=null,w=null,M=void 0!==t.dynamicDraw&&t.dynamicDraw,A=this._init,T=this._update,C=this.updateStyleFromArray;function E(t){var e,n,i,l,u,c,d,h,f,p,v,b,w,M,A,T,C,k,S,O,P,L,R,I,D,F,j,B,N,z,V,G,q,U,H,W,X=y.data().length,K=y._pointPolygon(0,0,1,1),Q=new Array(3*X),Z=y.verticesPerFeature(),Y=y.data(),J=0,$=_.geometryData();if(u=y.position(),p=y.style.get("radius"),w=y.style.get("stroke"),T=y.style.get("strokeWidth"),S=y.style.get("strokeOpacity"),L=y.style.get("strokeColor"),D=y.style.get("fill"),B=y.style.get("fillOpacity"),V=y.style.get("fillColor"),!t){for(e=W=0;e<X;e+=1,W+=3)l=u(Y[e],e),Q[W]=l.x,Q[W+1]=l.y,Q[W+2]=0;if(Q=r.transformCoordinates(y.gcs(),y.layer().map().gcs(),Q,3),(g=new Float32Array(y.style.get("origin")(Q)))[0]||g[1]||g[2])for(e=W=0;e<X;e+=1,W+=3)Q[W]-=g[0],Q[W+1]-=g[1],Q[W+2]-=g[2];m.setOrigin(g),i=o.getGeomBuffer($,"pos",Z*X*3),c=o.getGeomBuffer($,"unit",Z*X*2),(d=$.primitive(0).indices())instanceof Uint16Array&&d.length===Z*X||(d=new Uint16Array(Z*X),$.primitive(0).setIndices(d))}for(h=o.getGeomBuffer($,"radius",Z*X),v=o.getGeomBuffer($,"stroke",Z*X),M=o.getGeomBuffer($,"strokeWidth",Z*X),C=o.getGeomBuffer($,"strokeOpacity",Z*X),O=o.getGeomBuffer($,"strokeColor",Z*X*3),R=o.getGeomBuffer($,"fill",Z*X),F=o.getGeomBuffer($,"fillOpacity",Z*X),N=o.getGeomBuffer($,"fillColor",Z*X*3),e=q=U=H=W=0;e<X;e+=1,W+=3){if(G=Y[e],!t&&y._primitiveShape!==a.primitiveShapes.sprite)for(n=0;n<K.length;n+=1,H+=1)c[H]=K[n];for(f=p(G,e),b=w(G,e)?1:0,A=T(G,e),k=S(G,e),P=L(G,e),I=D(G,e)?1:0,j=B(G,e),z=V(G,e),y._primitiveShapeAuto&&(I&&j||b&&k)&&f+(b&&k?A:0)>J&&(J=f+(b&&k?A:0)),n=0;n<Z;n+=1,q+=1,U+=3)t||(i[U]=Q[W],i[U+1]=Q[W+1],i[U+2]=Q[W+2]),h[q]=f,v[q]=b,M[q]=A,C[q]=k,O[U]=P.r,O[U+1]=P.g,O[U+2]=P.b,R[q]=I,F[q]=j,N[U]=z.r,N[U+1]=z.g,N[U+2]=z.b}if(y._primitiveShapeAuto&&(y._primitiveShape===a.primitiveShapes.sprite&&J>s._maxPointSize||y._primitiveShape!==a.primitiveShapes.sprite&&J<=s._maxPointSize))return y._primitiveShape=J>s._maxPointSize?a.primitiveShapes.triangle:a.primitiveShapes.sprite,y.renderer().contextRenderer().removeActor(x),x=null,y._init(!0),void E();t?(_.updateSourceBuffer("radius"),_.updateSourceBuffer("stroke"),_.updateSourceBuffer("strokeWidth"),_.updateSourceBuffer("strokeColor"),_.updateSourceBuffer("strokeOpacity"),_.updateSourceBuffer("fill"),_.updateSourceBuffer("fillColor"),_.updateSourceBuffer("fillOpacity")):($.boundsDirty(!0),_.modified(),_.boundsDirtyTimestamp().modified())}return c(y,t),this.actors=function(){return x?[x]:[]},this.updateStyleFromArray=function(t,e,n){var r,o,a={fill:"bool",fillColor:3,fillOpacity:1,radius:1,stroke:"bool",strokeColor:3,strokeOpacity:1,strokeWidth:1};if("string"==typeof t){var s={};s[t]=e,t=s}return i.each(t,(function(t,e){var n,i,s,l,u,c,d,h,f;if(y.visible()&&x&&a[t]&&!r&&!y.clustering())if(f="bool"===a[t]?1:a[t],l=y.data().length,s=(i=x.mapper()).getSourceBuffer(t),n=y.verticesPerFeature(),s&&l&&l*n*f===s.length){switch(a[t]){case 1:for(c=0,h=0;c<l;c+=1)for(u=e[c],d=0;d<n;d+=1,h+=1)s[h]=u;break;case 3:for(c=0,h=0;c<l;c+=1)for(u=e[c],d=0;d<n;d+=1,h+=3)s[h]=u.r,s[h+1]=u.g,s[h+2]=u.b;break;case"bool":for(c=0,h=0;c<l;c+=1)for(u=e[c]?1:0,d=0;d<n;d+=1,h+=1)s[h]=u}i.updateSourceBuffer(t),o=!0}else r=!0;else r=!0;var p=y.modified;r||(y.modified=function(){}),C(t,e,!1),y.modified=p})),n&&(y.visible()&&r?y.draw():o&&y.renderer()._render()),y},this._init=function(n){var i,r,o=e.shaderProgram(),s=((r=new e.shader(e.GL.VERTEX_SHADER)).setShaderSource(y._primitiveShape===a.primitiveShapes.sprite?p:f),r),l=function(){var t=new e.shader(e.GL.FRAGMENT_SHADER);return t.setShaderSource(y._primitiveShape===a.primitiveShapes.sprite?h:d),t}(),u=e.vertexAttribute("pos"),c=e.vertexAttribute("unit"),v=e.vertexAttribute("radius"),T=e.vertexAttribute("strokeWidth"),C=e.vertexAttribute("fillColor"),E=e.vertexAttribute("fill"),k=e.vertexAttribute("strokeColor"),S=e.vertexAttribute("stroke"),O=e.vertexAttribute("fillOpacity"),P=e.vertexAttribute("strokeOpacity"),L=new e.projectionUniform("projectionMatrix"),R=e.material(),I=e.blend(),D=e.geometryData(),F=e.sourceDataP3fv({name:"pos"}),j=e.sourceDataAnyfv(2,e.vertexAttributeKeysIndexed.One,{name:"unit"}),B=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Two,{name:"radius"}),N=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Three,{name:"strokeWidth"}),z=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Four,{name:"fillColor"}),V=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Five,{name:"fill"}),G=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Six,{name:"strokeColor"}),q=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Seven,{name:"stroke"}),U=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Eight,{name:"fillOpacity"}),H=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Nine,{name:"strokeOpacity"});m=new e.modelViewOriginUniform("modelViewMatrix",g),(i=y._primitiveShape===a.primitiveShapes.sprite?new e.points:new e.triangles).setIndices(new Uint16Array),b=new e.floatUniform("pixelWidth",2/y.renderer().width()),w=new e.floatUniform("aspect",y.renderer().width()/y.renderer().height()),n||A.call(y,t),_=e.mapper({dynamicDraw:M}),o.addVertexAttribute(u,e.vertexAttributeKeys.Position),y._primitiveShape!==a.primitiveShapes.sprite&&o.addVertexAttribute(c,e.vertexAttributeKeysIndexed.One),o.addVertexAttribute(v,e.vertexAttributeKeysIndexed.Two),o.addVertexAttribute(T,e.vertexAttributeKeysIndexed.Three),o.addVertexAttribute(C,e.vertexAttributeKeysIndexed.Four),o.addVertexAttribute(E,e.vertexAttributeKeysIndexed.Five),o.addVertexAttribute(k,e.vertexAttributeKeysIndexed.Six),o.addVertexAttribute(S,e.vertexAttributeKeysIndexed.Seven),o.addVertexAttribute(O,e.vertexAttributeKeysIndexed.Eight),o.addVertexAttribute(P,e.vertexAttributeKeysIndexed.Nine),o.addUniform(b),o.addUniform(w),o.addUniform(m),o.addUniform(L),o.addShader(l),o.addShader(s),R.addAttribute(o),R.addAttribute(I),(x=e.actor()).setMaterial(R),x.setMapper(_),D.addSource(F),D.addSource(j),D.addSource(B),D.addSource(N),D.addSource(z),D.addSource(V),D.addSource(G),D.addSource(q),D.addSource(U),D.addSource(H),D.addPrimitive(i),D.computeBounds=function(){D.setBounds(0,0,0,0,0,0)},_.setGeometryData(D)},this._build=function(){return E(y.dataTime().timestamp()<y.buildTime().timestamp()),y.renderer().contextRenderer().hasActor(x)||y.renderer().contextRenderer().addActor(x),y.buildTime().modified(),y},this._update=function(){return T.call(y),(y.dataTime().timestamp()>=y.buildTime().timestamp()||y.updateTime().timestamp()<y.timestamp())&&y._build(),b.set(2/y.renderer().width()),w.set(y.renderer().width()/y.renderer().height()),x.setVisible(y.visible()),x.material().setBinNumber(y.bin()),y.updateTime().modified(),y},this._exit=function(){y.renderer().contextRenderer().removeActor(x),x=null,v()},y._init(),this};r(l,a);var u={};u[a.capabilities.stroke]=!0,o("webgl","point",l,u),t.exports=l},2709:function(t,e,n){var i=n(7541);t.exports=function(t,e){e=e||{},t._primitiveShapeAuto=!0,t._primitiveShape=i.primitiveShapes.auto,void 0!==i.primitiveShapes[e.primitiveShape]&&(t._primitiveShape=e.primitiveShape),t._primitiveShapeAuto=t._primitiveShape===i.primitiveShapes.auto,t._primitiveShapeAuto&&(t._primitiveShape=i.primitiveShapes.sprite,t._primitiveShapeAuto=!0),t._pointPolygon=function(e,n,r,o){var a;switch(t._primitiveShape){case i.primitiveShapes.triangle:a=[e,n-2*o,e-r*Math.sqrt(3),n+o,e+r*Math.sqrt(3),n+o];break;case i.primitiveShapes.square:a=[e-r,n+o,e-r,n-o,e+r,n+o,e-r,n-o,e+r,n-o,e+r,n+o];break;default:a=[e,n]}return a},t.verticesPerFeature=function(){return t._pointPolygon(0,0,1,1).length/2},t.primitiveShape=function(e,n){if(void 0===e)return n||!t._primitiveShapeAuto?t._primitiveShape:i.primitiveShapes.auto;if(void 0!==i.primitiveShapes[e]){var r=!1;e===i.primitiveShapes.auto?(r=!t._primitiveShapeAuto,t._primitiveShapeAuto=!0):(r=t._primitiveShapeAuto||t._primitiveShape!==e,t._primitiveShapeAuto=!1,t._primitiveShape=e),r&&(t.renderer().contextRenderer().removeActor(t.actors()[0]),t._init(!0),t.dataTime().modified())}return t}}},8511:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(6645),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var e=n(1611),i=n(5230),r=n(5325),s=n(642),l=n(4084),u=n(4547),c=n(9506);l.call(this);var d,h,f,p,m,g=this,y=this._exit,v=e.actor(),x=e.mapper(),_=e.material(),b=this._init,w=this._update;function M(){var t=new e.shader(e.GL.VERTEX_SHADER);return t.setShaderSource(c),t}function A(){var t=new e.shader(e.GL.FRAGMENT_SHADER);return t.setShaderSource(u),t}return this._init=function(t){var n=e.shaderProgram(),i=e.vertexAttribute("pos"),r=e.vertexAttribute("fillColor"),o=e.vertexAttribute("fillOpacity"),a=new e.projectionUniform("projectionMatrix"),s=M(),l=A(),u=e.blend(),c=e.geometryData(),d=e.sourceDataP3fv({name:"pos"}),h=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Two,{name:"fillColor"}),p=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Three,{name:"fillOpacity"}),m=e.triangles();f=new e.modelViewOriginUniform("modelViewMatrix"),n.addVertexAttribute(i,e.vertexAttributeKeys.Position),n.addVertexAttribute(r,e.vertexAttributeKeysIndexed.Two),n.addVertexAttribute(o,e.vertexAttributeKeysIndexed.Three),n.addUniform(f),n.addUniform(a),n.addShader(l),n.addShader(s),_.addAttribute(n),_.addAttribute(u),v.setMaterial(_),v.setMapper(x),c.addSource(d),c.addSource(h),c.addSource(p),c.addPrimitive(m),c.computeBounds=function(){c.setBounds(0,0,0,0,0,0)},x.setGeometryData(c),b.call(g,t)},this.actors=function(){return[v]},this._build=function(){!function(t){var e,n,o,a,l,u,c,p,m,y,v,_,b,w,M,A,T,C,E,k,S,O,P,L,R,I,D,F,j,B=[],N=g.gcs(),z=g.layer().map().gcs(),V=0,G=x.geometryData();for(l=g.style.get("fillColor"),u=s.isFunction(g.style("fillColor"))?void 0:l(),p=g.style.get("fillOpacity"),m=s.isFunction(g.style("fillOpacity"))?void 0:p(),y=g.style.get("fill"),v=s.isFunction(g.style("fill"))?void 0:y(),_=g.style.get("uniformPolygon"),b=s.isFunction(g.style("uniformPolygon"))?void 0:_(),t?(B=d.items,V=d.numPts):(n=(n=g.style.get("position"))===s.identityFunction?null:n,o=(o=g.style.get("polygon"))===s.identityFunction?null:o,g.data().forEach((function(t,e){var a,s,l,u;if((a=o?o(t,e):t)&&!((s=a.outer||(Array.isArray(a)?a:[])).length<3)){for(l=new Array(3*s.length),O=k=0;O<s.length;O+=1,k+=3)u=n?n(s[O],O,t,e):s[O],l[k]=u.x,l[k+1]=u.y,l[k+2]=0;l={vertices:l,dimensions:3,holes:[]},j=s,a.inner&&a.inner.forEach((function(i){if(!(i.length<3))for(j=j.concat(i),l.holes.push(k/3),O=0;O<i.length;O+=1,k+=3)u=n?n(i[O],O,t,e):i[O],l.vertices[k]=u.x,l.vertices[k+1]=u.y,l.vertices[k+2]=0})),l.vertices=r.transformCoordinates(N,z,l.vertices,l.dimensions),(I={triangles:i(l.vertices,l.holes,l.dimensions),vertices:l.vertices,original:j,item:t,itemIndex:e}).triangles.length&&(B.push(I),V+=I.triangles.length)}})),e=s.getGeomBuffer(G,"pos",3*V),(M=G.primitive(0).indices())instanceof Uint16Array&&M.length===V||(M=new Uint16Array(V),G.primitive(0).setIndices(M)),d={items:B,numPts:V},h=new Float32Array(g.style.get("origin")(B)),f.setOrigin(h)),a=s.getGeomBuffer(G,"fillColor",3*V),c=s.getGeomBuffer(G,"fillOpacity",V),E=k=0,A=u,C=v,L=0;L<B.length;L+=1)if(R=B[L].triangles.length,S=B[L].vertices,D=B[L].item,F=B[L].itemIndex,j=B[L].original,T=m,(w=void 0===b?_(D,F):b)&&(void 0===u&&(A=l(S[0],0,D,F)),void 0===m&&(T=p(S[0],0,D,F))),void 0===v&&(C=y(D,F)),C||(T=0),w&&t&&B[L].uniform&&B[L].color&&A.r===B[L].color.r&&A.g===B[L].color.g&&A.b===B[L].color.b&&T===B[L].opacity)E+=R,k+=3*R;else{for(O=0;O<R;O+=1,E+=1,k+=3)t&&w?(a[k]=A.r,a[k+1]=A.g,a[k+2]=A.b,c[E]=T):(P=3*B[L].triangles[O],t||(e[k]=S[P]-h[0],e[k+1]=S[P+1]-h[1],e[k+2]=S[P+2]-h[2],M[E]=O),w||void 0!==u||(A=l(j[P],P,D,F)),a[k]=A.r,a[k+1]=A.g,a[k+2]=A.b,!w&&C&&void 0===m&&(T=p(j[P],P,D,F)),c[E]=T);(w||B[L].uniform)&&(B[L].uniform=w,B[L].color=A,B[L].opacity=T)}t?(x.updateSourceBuffer("fillOpacity"),x.updateSourceBuffer("fillColor")):(x.modified(),G.boundsDirty(!0),x.boundsDirtyTimestamp().modified())}(!!(g.dataTime().timestamp()<g.buildTime().timestamp()&&d)),g.renderer().contextRenderer().hasActor(v)||(g.renderer().contextRenderer().addActor(v),p=!0),g.buildTime().modified()},this._update=function(t){g.ready&&(t&&t.mayDelay&&p?m=g.layer().map().scheduleAnimationFrame(g._update):(m&&(g.layer().map().scheduleAnimationFrame(g._update,"remove"),m=null),w.call(g),(g.dataTime().timestamp()>=g.buildTime().timestamp()||g.updateTime().timestamp()<=g.timestamp())&&g._build(),v.setVisible(g.visible()),v.material().setBinNumber(g.bin()),g.updateTime().modified()))},this._exit=function(){m&&g.layer()&&(g.layer().map().scheduleAnimationFrame(g._update,"remove"),m=null),g.renderer().contextRenderer().removeActor(v),y()},this._init(t),this};i(a,o),r("webgl","polygon",a),t.exports=a},9304:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(3842),a=n(77),s=n(642),l=16777216,u=function(t){"use strict";if(!(this instanceof u))return new u(t);o.call(this,t);var e=n(5616),i=n(1611),r=n(4084),c=n(8711),d=n(6238),h=n(8961),f=n(3260);r.call(this);var p,m,g,y,v,x,_,b=this,w=this._exit,M=this._update,A={},T=a(),C=a();function E(t){var e=new i.mapper({dynamicDraw:!0});return e.s_modified=e.modified,e.g_timestamp=a(),e.timestamp=e.g_timestamp.timestamp,e.modified=function(){return e.s_modified(),e.g_timestamp.modified(),e},e.s_render=e.render,e.render=t,e}return this.actors=function(){var t=[];return m&&t.push(m),g&&t.push(g),t},this._build=function(){var t,e,n,r,o,a,s,l,u;b.position()&&((_=b._generateQuads()).imgQuads.length&&!m&&(b.visible(!1),t=E(b._renderImageQuads),(m=new i.actor).setMapper(t),e=new i.material,(n=new i.shaderProgram).addVertexAttribute(new i.vertexAttribute("vertexPosition"),i.vertexAttributeKeys.Position),n.addVertexAttribute(new i.vertexAttribute("textureCoord"),i.vertexAttributeKeys.TextureCoordinate),p=new i.modelViewOriginUniform("modelViewMatrix",_.origin),n.addUniform(p),n.addUniform(new i.projectionUniform("projectionMatrix")),n.addUniform(new i.floatUniform("opacity",1)),n.addUniform(new i.floatUniform("zOffset",0)),(u=new i.uniform(i.GL.INT,"sampler2d")).set(0),n.addUniform(u),l=b.renderer()._glContext(),(o=new i.uniform(l.FLOAT_VEC2,"crop")).set([1,1]),n.addUniform(o),(a=new i.uniform(l.FLOAT_VEC4,"cropsource")).set([0,0,0,0]),n.addUniform(a),n.addShader(i.getCachedShader(l.VERTEX_SHADER,l,d)),n.addShader(i.getCachedShader(l.FRAGMENT_SHADER,l,c)),b._hookBuild&&b._hookBuild(n),e.addAttribute(n),e.addAttribute(new i.blend),s=new i.geometryData,y=void 0,(r=new i.sourceDataT2fv).pushBack([0,0,1,0,0,1,1,1]),s.addSource(r),t.setGeometryData(s),m.setMaterial(e),b.renderer().contextRenderer().addActor(m),b.visible(!0)),_.clrQuads.length&&!g&&(b.visible(!1),t=E(b._renderColorQuads),(g=new i.actor).setMapper(t),e=new i.material,(n=new i.shaderProgram).addVertexAttribute(new i.vertexAttribute("vertexPosition"),i.vertexAttributeKeys.Position),x=new i.modelViewOriginUniform("modelViewMatrix",_.origin),n.addUniform(x),n.addUniform(new i.projectionUniform("projectionMatrix")),n.addUniform(new i.floatUniform("opacity",1)),n.addUniform(new i.floatUniform("zOffset",0)),l=b.renderer()._glContext(),n.addUniform(new i.uniform(l.FLOAT_VEC3,"vertexColor")),n.addShader(i.getCachedShader(l.VERTEX_SHADER,l,f)),n.addShader(i.getCachedShader(l.FRAGMENT_SHADER,l,h)),e.addAttribute(n),e.addAttribute(new i.blend),s=new i.geometryData,v=void 0,t.setGeometryData(s),g.setMaterial(e),b.renderer().contextRenderer().addActor(g),b.visible(!0)),p&&p.setOrigin(_.origin),x&&x.setOrigin(_.origin),b._updateTextures(),b.buildTime().modified())},this._updateTextures=function(){var t;e.each(_.imgQuads,(function(e,n){if(n.image)if(n.image._texture)n.texture=n.image._texture;else{(t=new i.texture).setImage(n.image);var r=b.nearestPixel();if(void 0!==r)if(!0!==r&&s.isNonNullFinite(r))r=b.layer().map().zoom()>=r;r&&t.setNearestPixel(!0),n.texture=n.image._texture=t}}))},this._renderColorQuads=function(t){if(_.clrQuads.length){var n=this;(n.timestamp()>C.timestamp()||b.dataTime().timestamp()>C.timestamp()||t.m_contextChanged||!v||12*_.clrQuads.length>v.length)&&function(t){var n=t.m_context,i=!1;_.clrQuads.length&&((!v||v.length<12*_.clrQuads.length||!A.clrQuadsPosition)&&(A.clrQuadsPosition&&n.deleteBuffer(A.clrQuadsPosition),A.clrQuadsPosition=n.createBuffer(),v=new Float32Array(12*Math.max(128,2*_.clrQuads.length)),i=!0),e.each(_.clrQuads,(function(t,e){for(var n=0;n<12;n+=1)v[12*t+n]=e.pos[n]-_.origin[n%3]})),n.bindBuffer(n.ARRAY_BUFFER,A.clrQuadsPosition),i?n.bufferData(n.ARRAY_BUFFER,v,n.DYNAMIC_DRAW):n.bufferSubData(n.ARRAY_BUFFER,0,v)),C.modified()}(t),n.s_render(t,!0);var r,o,a,s=t.m_context;s.bindBuffer(s.ARRAY_BUFFER,A.clrQuadsPosition),e.each(_.clrQuads,(function(e,n){n.opacity!==r&&(r=n.opacity,s.uniform1fv(t.m_material.shaderProgram().uniformLocation("opacity"),new Float32Array([r]))),(n.zOffset||0)!==o&&(o=n.zOffset||0,s.uniform1fv(t.m_material.shaderProgram().uniformLocation("zOffset"),new Float32Array([o]))),a&&a.r===n.color.r&&a.g===n.color.g&&a.b===n.color.b||(a=n.color,s.uniform3fv(t.m_material.shaderProgram().uniformLocation("vertexColor"),new Float32Array([a.r,a.g,a.b]))),s.bindBuffer(s.ARRAY_BUFFER,A.clrQuadsPosition),s.vertexAttribPointer(i.vertexAttributeKeys.Position,3,s.FLOAT,!1,12,12*e*4),s.enableVertexAttribArray(i.vertexAttributeKeys.Position),s.drawArrays(s.TRIANGLE_STRIP,0,4)})),s.bindBuffer(s.ARRAY_BUFFER,null),n.undoBindVertexData(t)}},this._renderImageQuads=function(t){if(_.imgQuads.length){var n=this;(n.timestamp()>T.timestamp()||b.dataTime().timestamp()>T.timestamp()||t.m_contextChanged||!y||12*_.imgQuads.length>y.length)&&function(t){var n=t.m_context,i=!1;_.imgQuads.length&&((!y||y.length<12*_.imgQuads.length||!A.imgQuadsPosition)&&(A.imgQuadsPosition&&n.deleteBuffer(A.imgQuadsPosition),A.imgQuadsPosition=n.createBuffer(),y=new Float32Array(12*Math.max(128,2*_.imgQuads.length)),i=!0),e.each(_.imgQuads,(function(t,e){for(var n=0;n<12;n+=1)y[12*t+n]=e.pos[n]-_.origin[n%3]})),n.bindBuffer(n.ARRAY_BUFFER,A.imgQuadsPosition),i?n.bufferData(n.ARRAY_BUFFER,y,n.DYNAMIC_DRAW):n.bufferSubData(n.ARRAY_BUFFER,0,y)),T.modified()}(t),n.s_render(t,!0);var r,o,a,u,c,d,h,f,p=t.m_context,m={x:1,y:1},g={x0:0,y0:0,x1:1,y1:1},v=b.nearestPixel();if(void 0!==v){if(!0!==v&&s.isNonNullFinite(v)){var x=b.layer().map().zoom();v=x>=v}_.imgQuads.forEach((function(e){if(e.image&&e.texture&&e.texture.nearestPixel()!==v&&e.texture.textureHandle()){t.m_context.bindTexture(i.GL.TEXTURE_2D,e.texture.textureHandle()),t.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MIN_FILTER,v?i.GL.NEAREST:i.GL.LINEAR),t.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MAG_FILTER,v?i.GL.NEAREST:i.GL.LINEAR),t.m_context.bindTexture(i.GL.TEXTURE_2D,null);var n=e.texture.modified;e.texture.modified=function(){},e.texture.setNearestPixel(v),e.texture.modified=n}}))}b._hookRenderImageQuads&&b._hookRenderImageQuads(t,_.imgQuads),p.bindBuffer(p.ARRAY_BUFFER,A.imgQuadsPosition),e.each(_.imgQuads,(function(e,n){n.image&&(n.texture.bind(t),n.image.width*n.image.height>l&&(l=n.image.width*n.image.height,p.getError()===p.OUT_OF_MEMORY&&console.log("Insufficient GPU memory for texture")),n.opacity!==r&&(r=n.opacity,p.uniform1fv(t.m_material.shaderProgram().uniformLocation("opacity"),new Float32Array([r]))),(n.zOffset||0)!==o&&(o=n.zOffset||0,p.uniform1fv(t.m_material.shaderProgram().uniformLocation("zOffset"),new Float32Array([o]))),a=n.crop||{x:1,y:1},m&&a.x===m.x&&a.y===m.y||(m=a,p.uniform2fv(t.m_material.shaderProgram().uniformLocation("crop"),new Float32Array([void 0===m.x?1:m.x,void 0===m.y?1:m.y]))),c=n.image.width,d=n.image.height,u=n.crop||{left:0,top:0,right:c,bottom:d},g&&u.left===g.left&&u.top===g.top&&u.right===g.right&&u.bottom===g.bottom&&h===c&&f===d||(g=u,h=c,f=d,p.uniform4fv(t.m_material.shaderProgram().uniformLocation("cropsource"),new Float32Array([g.left/c,g.top/d,g.right/c,g.bottom/d]))),p.bindBuffer(p.ARRAY_BUFFER,A.imgQuadsPosition),p.vertexAttribPointer(i.vertexAttributeKeys.Position,3,p.FLOAT,!1,12,12*e*4),p.enableVertexAttribArray(i.vertexAttributeKeys.Position),p.drawArrays(p.TRIANGLE_STRIP,0,4),n.texture.undoBind(t))})),p.bindBuffer(p.ARRAY_BUFFER,null),n.undoBindVertexData(t)}},this._update=function(){M.call(b),(b.buildTime().timestamp()<=b.dataTime().timestamp()||b.updateTime().timestamp()<b.timestamp())&&b._build(),g&&(g.setVisible(b.visible()),g.material().setBinNumber(b.bin())),m&&(m.setVisible(b.visible()),m.material().setBinNumber(b.bin())),b.updateTime().modified()},this._cleanup=function(){m&&(b.renderer().contextRenderer().removeActor(m),m=null),g&&(b.renderer().contextRenderer().removeActor(g),g=null),y=void 0,v=void 0,Object.keys(A).forEach((function(t){delete A[t]})),_&&_.imgQuads&&(_.imgQuads.forEach((function(t){t.texture&&(delete t.texture,delete t.image._texture)})),b._updateTextures()),b.modified()},this.setShader=function(t,e){switch(t){case"image_vertex":d=e;break;case"image_fragment":c=e;break;case"color_vertex":f=e;break;case"color_fragment":h=e;break;default:return}return b},this._exit=function(){b._cleanup(),w.call(b)},b._init(t),this};i(u,o);var c={};c[o.capabilities.color]=!0,c[o.capabilities.image]=!0,c[o.capabilities.imageCrop]=!0,c[o.capabilities.imageFixedScale]=!1,c[o.capabilities.imageFull]=!0,c[o.capabilities.canvas]=!1,c[o.capabilities.video]=!1,r("webgl","quad",u,c),t.exports=u},1474:function(t,e,n){var i=n(1098).registerLayerAdjustment,r=n(9264),o=function(){"use strict";var t,e=n(6409),i=this,o=this._init,a=this._exit,s=this._update,l=this.visible,u=this.zIndex,c=0,d=[];this._drawTile=function(e){if(t){var n,o,a=i._tileBounds(e),s=e.index.level||0,l=i._tileOffset(s),u=i.tileCropFromBounds(e),h={},f=i.renderer().contextRenderer().m_depthBits;u&&(h.crop={x:u.x/i._options.tileWidth,y:u.y/i._options.tileHeight}),h.ul=i.fromLocal(i.fromLevel({x:a.left-l.x,y:a.top-l.y},s),0),h.ll=i.fromLocal(i.fromLevel({x:a.left-l.x,y:a.bottom-l.y},s),0),h.ur=i.fromLocal(i.fromLevel({x:a.right-l.x,y:a.top-l.y},s),0),h.lr=i.fromLocal(i.fromLevel({x:a.right-l.x,y:a.bottom-l.y},s),0),h.ul.z=h.ll.z=h.ur.z=h.lr.z=0,n=i._options.keepLower?i._options.maxLevel-s+1:1,(o=(o=i.map().listSceneObjects().filter((function(t){return t instanceof r}))).slice(o.indexOf(i)+1)).forEach((function(t){n+=t._options.keepLower?t._options.maxLevel-t._options.minLevel+1:1})),h.zOffset=n*Math.pow(2,-f)*r._zOffsetMultiple,c+=1,h.id=c,e.quadId=h.id,h.image=e.image,d.push(h),t.data(d),t._update(),i.draw()}},this._remove=function(e){if(void 0!==e.quadId&&t){for(var n=0;n<d.length;n+=1)if(d[n].id===e.quadId){d.splice(n,1);break}t.data(d),t._update(),i.draw()}},this.visible=function(e){return void 0===e?l():(i.visible()!==e&&(l(e),t&&t.visible(t.visible(void 0,!0),!0)),i)},this.zIndex=function(t,e){return void 0!==t&&i._clearQuads(),u.apply(i,arguments)},this._clearQuads=function(n){(!n||n.layer&&n.layer instanceof r&&n.layer.autoshareRenderer()&&(n.event!==e.layerAdd&&n.event!==e.layerRemove||!i.map().layers().every((function(t){return t===n.layer||n.layer.zIndex()>t.zIndex()}))))&&(i.clear(),t&&t.modified(),n&&i.draw())},this._update=function(e){return s.call(i,e),t&&t.nearestPixel&&t.nearestPixel(i.nearestPixel()),i._addBaseQuadToTiles(t,d),i},this._cleanup=function(){var t;if(i.cache&&i.cache._cache){for(var e in i.cache._cache)(t=i.cache._cache[e])._image&&t._image._texture&&delete t._image._texture;i.cache.clear()}i.clear()},this._exit=function(){var n=i.map();n.geoOff(e.layerAdd,i._clearQuads),n.geoOff(e.layerRemove,i._clearQuads),i._cleanup(),i.deleteFeature(t),t=null,d=[],a.apply(i,arguments)},this._init=function(){o.apply(i,arguments),(t=i.createFeature("quad",{previewColor:i._options.previewColor,previewImage:i._options.previewImage})).geoTrigger=void 0,t.gcs(i._options.gcs||i.map().gcs()),t.data(d),t._update();var n=i.map();n.geoOn(e.layerAdd,i._clearQuads),n.geoOn(e.layerRemove,i._clearQuads),i.geoOn(e.unhidden,(function(){i.map().scheduleAnimationFrame((function(){i._clearQuads(),i.map().draw()}))}))},this._getSubLayer=function(){},this._updateSubLayers=void 0};r._zOffsetMultiple=2,i("webgl","tile",o),t.exports=o},536:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(338),a=function(t){"use strict";return this instanceof a?(t=t||{},o.call(this,t),n(4084).call(this),this._init(t),this):new a(t)};i(a,o),r("webgl","track",a),t.exports=a},7945:function(t,e,n){var i,r=n(4626),o=n(1098).registerRenderer,a=n(2274),s=function(t){"use strict";if(!(this instanceof s))return new s(t);t=t||{},a.call(this,t);var e,i=n(5616),r=n(1611),o=n(3503),l=n(642),u=n(6409),c=this,d=null,h=null,f=!1,p=this._init,m=this._exit;return this.contextRenderer=function(){return d},this.api=function(){return s.apiname},this._init=function(){if(c.initialized())return c;p.call(c);var e=t.canvas||i(document.createElement("canvas"));if(e.addClass("webgl-canvas"),i(c.layer().node().get(0)).append(e),window.overrideContextAttributes){var n=e.get(0),o=n.getContext;n.getContext=function(t,e){if(e=e||{},window.overrideContextAttributes)for(var i in window.overrideContextAttributes)window.overrideContextAttributes.hasOwnProperty(i)&&(e[i]=window.overrideContextAttributes[i]);return o.call(n,t,e)}}(h=r.viewer(e.get(0),t.options)).init(),(d=h.renderWindow().activeRenderer()).setResetScene(!1),e.get(0).addEventListener("webglcontextlost",(function(t){return t.preventDefault()}),!1),e.get(0).addEventListener("webglcontextrestored",(function(){return h.renderWindow()._init()}),!1),h.renderWindow().renderers().length>0&&d.setLayer(h.renderWindow().renderers().length),c.canvas(e);var a=c.layer().map().size();return c._resize(0,0,a.width,a.height),c},this._resize=function(t,e,n,i){var r=h.renderWindow();return t===r.windowPosition[0]&&e===r.windowPosition[1]&&n===c.width()&&i===c.height()||(c._setWidthHeight(n,i),c.canvas().attr("width",n),c.canvas().attr("height",i),r.positionAndResize(t,e,n,i),f=!0,c._render()),c},this._render=function(){return c.layer().map().scheduleAnimationFrame(c._renderFrame,!0),c},this._renderFrame=function(){h&&(f&&(f=!1,c._updateRendererCamera()),h.render())},this._glContext=function(){return h&&h.renderWindow()?h.renderWindow().context():r.GL},this._exit=function(){if(c.layer().map().scheduleAnimationFrame(c._renderFrame,"remove"),c.canvas().remove(),h){var t=new r.renderState;t.m_renderer=h,t.m_context=c._glContext(),h.exit(t);var e=c._glContext();e!==r.GL&&e.getExtension("WEBGL_lose_context")&&e.getExtension("WEBGL_lose_context").loseContext&&e.getExtension("WEBGL_lose_context").loseContext()}r.clearCachedShaders(r.GL),h=null,m()},this._updateRendererCamera=function(){var t=h.renderWindow(),n=c.layer().map(),i=n.camera(),r=n.rotation()||0,a=i.view,s=i.projectionMatrix;if(s[15])s=o.copy(l.mat4AsArray(),s),s=o.scale(s,s,[1,1,-.5]),s=o.translate(s,s,[0,0,i.clipbounds.far]);else{var u=i.clipbounds.near,d=i.clipbounds.far;s=o.copy(l.mat4AsArray(),s),s=o.scale(s,s,[1/u,1/u,-1/d])}var f=Math.PI/2,p=r%f,m=Math.min(Math.abs(p),Math.abs(p-f))<1e-5;t.renderers().forEach((function(t){var r=t.camera();if(!l.compareArrays(a,r.viewMatrix())||!l.compareArrays(s,r.projectionMatrix())||e!==n.zoom()){e=n.zoom(),r.setViewMatrix(a,!0),r.setProjectionMatrix(s);var o=i.viewport;s[1]||s[2]||s[3]||s[4]||s[6]||s[7]||s[8]||s[9]||s[11]||1!==s[15]||!m||o.left&&o.left%1||o.top&&o.top%1||parseFloat(e.toFixed(6))!==parseFloat(e.toFixed(0))?r.viewAlignment=function(){return null}:r.viewAlignment=function(){var t={roundx:2/o.width,roundy:2/o.height};return t.dx=o.width%2?.5*t.roundx:0,t.dy=o.height%2?.5*t.roundy:0,t}}}))},c.layer().geoOn(u.pan,(function(t){f=!0})),c.layer().geoOn(u.parallelprojection,(function(t){var e=c.contextRenderer(),n=c.layer();if(t.geo&&t.geo._triggeredBy!==n){if(!e||!e.camera())return void console.log("Parallel projection event triggered on unconnected VGL renderer.");e.camera().setEnableParallelProjection(t.parallelProjection),f=!0}})),this};s.apiname="webgl",r(s,a),o("webgl",s),o("vgl",s),s.supported=function(){if(void 0===i){var t,e;try{(e=(t=document.createElement("canvas")).getContext("webgl")||t.getContext("experimental-webgl")).getSupportedExtensions().indexOf("WEBGL_debug_renderer_info")>=0&&(s._unmaskedRenderer=e.getParameter(e.getExtension("WEBGL_debug_renderer_info").UNMASKED_RENDERER_WEBGL)),s._maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),s._maxPointSize=e.getParameter(e.ALIASED_POINT_SIZE_RANGE)[1],i=!0}catch(t){console.warn("No webGL support"),i=!1}t=void 0,e=void 0,void 0}return i},s.fallback=function(){return null},t.exports=s},632:function(t,e,n){"use strict";var i=n(4942),r=n.n(i),o=n(278),a=n.n(o),s=n(3021),l=n.n(s),u=new URL(n(3158),n.b),c=new URL(n(5245),n.b),d=new URL(n(8546),n.b),h=new URL(n(9803),n.b),f=a()(r()),p=l()(u),m=l()(c),g=l()(d),y=l()(h);f.push([t.id,'.geojs-map{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden}.geojs-map .geo-attribution{position:absolute;right:0;bottom:0;padding-right:5px;cursor:auto;font:11px/1.5 "Helvetica Neue",Arial,Helvetica,sans-serif;z-index:1001;background:rgba(255,255,255,0.7);clear:both;display:block;pointer-events:auto}.geojs-map .geo-attribution .geo-attribution-layer{padding-left:5px}.geojs-map .canvas-canvas{display:block;-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-o-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.geojs-map .webgl-canvas{display:block}.geojs-map .geojs-layer{position:absolute;width:100%;height:100%;left:0;top:0;pointer-events:none}.geojs-map .geojs-layer.active:not(.hidden) > *{pointer-events:auto}.geojs-map .geojs-layer.hidden{display:none}.geojs-map .geojs-layer.hidden[renderer="webgl"]{display:inherit}.geojs-map .geo-tile-layer{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-o-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;line-height:0;font-size:0}.geojs-map.annotation-input{cursor:crosshair}.geojs-map.annotation-input.annotation-intersect{cursor:url('+p+") 12 12,crosshair}.geojs-map.annotation-input.annotation-difference{cursor:url("+m+") 12 12,crosshair}.geojs-map.annotation-input.annotation-union{cursor:url("+g+") 12 12,crosshair}.geojs-map.annotation-input.annotation-xor{cursor:url("+y+") 12 12,crosshair}.geojs-map.annotation-cursor{cursor:crosshair}.geojs-map.annotation-cursor.annotation-intersect{cursor:url("+p+") 12 12,crosshair}.geojs-map.annotation-cursor.annotation-difference{cursor:url("+m+") 12 12,crosshair}.geojs-map.annotation-cursor.annotation-union{cursor:url("+g+") 12 12,crosshair}.geojs-map.annotation-cursor.annotation-xor{cursor:url("+y+') 12 12,crosshair}.geojs-map.highlight-focus:after{content:"";display:block;position:absolute;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;left:0;top:0;right:0;bottom:0;border:3px solid Highlight;opacity:1;-ms-filter:none;filter:none;-webkit-transition:opacity 0s;-moz-transition:opacity 0s;-o-transition:opacity 0s;-ms-transition:opacity 0s;transition:opacity 0s;visibility:hidden}.geojs-map.highlight-focus:focus:after{visibility:visible;-webkit-transition:opacity 2.5s ease-in;-moz-transition:opacity 2.5s ease-in;-o-transition:opacity 2.5s ease-in;-ms-transition:opacity 2.5s ease-in;transition:opacity 2.5s ease-in;opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:alpha(opacity=0)}.geo-tile-container{position:absolute}.geo-tile-container.crop{overflow:hidden}',"",{version:3,sources:["webpack://./main.styl","webpack://./../node_modules/nib/lib/nib/vendor.styl","webpack://./../node_modules/nib/lib/nib/overflow.styl","webpack://./../node_modules/nib/lib/nib/flex.styl","webpack://./../node_modules/nib/lib/nib/border.styl"],names:[],mappings:"AAEA,WACE,iBAAS,CCwCO,wBAAG,CAAH,qBAAG,CAAH,oBAAG,CARN,gBAAG,CChBd,eAAU,CFZZ,4BACE,iBAAS,CACT,OAAM,CACN,QAAO,CACP,iBAAc,CC4ed,WAAO,CD1eP,yDAA8B,CAC9B,YAAQ,CC6dR,gCAAW,CD3dX,UAAM,CGMN,aAAS,CHJT,mBAAe,CAEf,mDACE,gBAAa,CAEjB,0BGDE,aAAS,CFqBK,4BAAG,CAAH,yBAAG,CAAH,uBAAG,CAAH,wBAAG,CARN,oBAAG,CDThB,yBGJE,aAAS,CHOX,wBACE,iBAAS,CACT,UAAM,CACN,WAAO,CACP,MAAK,CACL,KAAI,CACJ,mBAAe,CAEb,gDACE,mBAAe,CACnB,+BGjBA,YAAS,CHmBT,iDGnBA,eAAS,CHsBX,2BCDgB,4BAAG,CAAH,yBAAG,CAAH,uBAAG,CAAH,wBAAG,CARN,oBAAG,CDWd,aAAY,CACZ,WAAU,CAEZ,4BCscE,gBAAO,CDpcP,iDCocA,8DAAO,CDlcP,kDCkcA,8DAAO,CDhcP,6CCgcA,8DAAO,CD9bP,2CC8bA,8DAAO,CD3bT,6BC2bE,gBAAO,CDzbP,kDCybA,8DAAO,CDvbP,mDCubA,8DAAO,CDrbP,8CCqbA,8DAAO,CDnbP,4CCmbA,8DAAO,CD/aP,iCACE,UAAQ,CGnDV,aAAS,CHqDP,iBAAS,CChCG,6BAAG,CAAH,0BAAG,CARN,qBAAG,CD0CZ,MAAK,CACL,KAAI,CACJ,OAAM,CACN,QAAO,CIvET,0BAAQ,CH4PV,SAAS,CAQH,eAAY,CACZ,WAAQ,CArOE,6BAAG,CAAH,0BAAG,CAAH,wBAAG,CAAH,yBAAG,CARN,qBAAG,CDqDZ,iBAAW,CACb,uCACE,kBAAW,CC/CC,uCAAG,CAAH,oCAAG,CAAH,kCAAG,CAAH,mCAAG,CARN,+BAAG,CAoOhB,SAAS,CAWH,+DAAyE,CACzE,uBAAiC,CDrLzC,oBACE,iBAAS,CACT,yBE3EE,eAAU",sourcesContent:['@import \'~nib/index.styl\'\n\n.geojs-map\n position relative\n user-select none\n overflow hidden\n\n .geo-attribution\n position absolute\n right 0\n bottom 0\n padding-right 5px\n cursor auto\n font 11px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif\n z-index 1001\n background rgba(255,255,255,0.7)\n clear both\n display block\n pointer-events auto\n\n .geo-attribution-layer\n padding-left 5px\n\n .canvas-canvas\n display block\n transform-origin 0px 0px\n .webgl-canvas\n display block\n\n .geojs-layer\n position absolute\n width 100%\n height 100%\n left 0\n top 0\n pointer-events none\n &.active:not(.hidden)\n > *\n pointer-events auto\n &.hidden\n display none\n &.hidden[renderer="webgl"]\n display inherit\n\n .geo-tile-layer\n transform-origin 0px 0px\n line-height 0\n font-size 0\n\n &.annotation-input\n cursor crosshair\n &.annotation-intersect\n cursor embedurl("./css/cursor-crosshair-intersect.svg") 12 12,crosshair\n &.annotation-difference\n cursor embedurl("./css/cursor-crosshair-difference.svg") 12 12,crosshair\n &.annotation-union\n cursor embedurl("./css/cursor-crosshair-union.svg") 12 12,crosshair\n &.annotation-xor\n cursor embedurl("./css/cursor-crosshair-xor.svg") 12 12,crosshair\n\n &.annotation-cursor\n cursor crosshair\n &.annotation-intersect\n cursor embedurl("./css/cursor-crosshair-intersect.svg") 12 12,crosshair\n &.annotation-difference\n cursor embedurl("./css/cursor-crosshair-difference.svg") 12 12,crosshair\n &.annotation-union\n cursor embedurl("./css/cursor-crosshair-union.svg") 12 12,crosshair\n &.annotation-xor\n cursor embedurl("./css/cursor-crosshair-xor.svg") 12 12,crosshair\n\n &.highlight-focus\n &:after\n content ""\n display block\n position absolute\n box-sizing border-box\n left 0px\n top 0px\n right 0px\n bottom 0px\n // Highlight is technically a css2 color. We may need to specify it\n // explicitly. #3B66A6 seems close\n border 3px solid Highlight\n opacity 1\n transition opacity 0s\n visibility hidden\n &:focus:after\n visibility visible\n transition opacity 2.5s ease-in\n opacity 0\n\n.geo-tile-container\n position absolute\n &.crop\n overflow hidden\n',"use('../nodes/vendor-helpers.js')\n@import 'config'\n\n/*\n * Alias \"nowrap\" as \"no-wrap\".\n */\n\nno-wrap = unquote('nowrap')\n\n/*\n * Helper to find out if a given value is a width\n */\n\nis-width(val)\n if auto == val\n return true\n else if val && 'unit' == type(val)\n // Stylus does not short circuit so we need to perform this as a distinct\n // operation to prevent errors\n return '' != unit(val)\n return false\n\n/*\n * Vendor support for the given prop / arguments, optionally specifying the\n * only prefixes to utilize, or those which should be ignored.\n */\n\nvendor(prop, args, only = null, ignore = null, vendor-property = true)\n need_normalize = !vendor-property or prop in ('transition' 'transition-property' 'border-image' 'border-image-slice')\n for prefix in vendor-prefixes\n unless (only and !(prefix in only)) or (ignore and prefix in ignore)\n if official == prefix\n if need_normalize\n {prop}: normalize(prop,('%s' % args))\n else\n {prop}: args\n else\n newprop = prop\n newprop = '-' + prefix + '-' + prop if vendor-property\n\n if need_normalize\n {newprop}: normalize(prop,('%s' % args),prefix)\n else\n {newprop}: args\n/*\n * Vendorize the given value.\n */\n\nvendor-value(arg, only = null, ignore = null)\n prop = current-property[0]\n for prefix in vendor-prefixes\n unless (only and !(prefix in only)) or (ignore and prefix in ignore) or official == prefix\n add-property(prop, '-%s-%s' % (prefix arg))\n arg\n\n/*\n * Vendor \"box-shadow\" support.\n */\n\nbox-shadow()\n vendor('box-shadow', arguments, only: webkit official)\n\n/*\n * Vendor \"user-select\" support.\n */\n\nuser-select()\n vendor('user-select', arguments, only: webkit moz ms official)\n\n/*\n * Vendor \"column-count\" support.\n */\n\ncolumn-count()\n vendor('column-count', arguments, only: webkit moz official)\n\n/*\n * Vendor \"column-gap\" support.\n */\n\ncolumn-gap()\n vendor('column-gap', arguments, only: webkit moz official)\n\n/*\n * Vendor \"column-rule\" support.\n */\n\ncolumn-rule()\n vendor('column-rule', arguments, only: webkit moz official)\n\n/*\n * Vendor \"column-rule-color\" support.\n */\n\ncolumn-rule-color()\n vendor('column-rule-color', arguments, only: webkit moz official)\n\n/*\n * Vendor \"column-rule-width\" support.\n */\n\ncolumn-rule-width()\n vendor('column-rule-width', arguments, only: webkit moz official)\n\n/*\n * Vendor \"column-rule-style\" support.\n */\n\ncolumn-rule-style()\n vendor('column-rule-style', arguments, only: webkit moz official)\n\n/*\n * Vendor \"column-width\" support.\n */\n\ncolumn-width()\n vendor('column-width', arguments, only: webkit moz official)\n\n/*\n * Vendor \"column-span\" support.\n */\n\ncolumn-span()\n vendor('column-span', arguments, only: webkit official)\n\n/*\n * Vendor \"column-fill\" support.\n */\n\ncolumn-fill()\n vendor('column-fill', arguments, only: moz official)\n\n/*\n * Legacy syntax support for background-clip and background-origin\n */\n\nlegacy-bg-values(property, args)\n legacy_args = ()\n importance = unquote('')\n for subargs in args\n for arg in subargs\n if arg in (border-box padding-box content-box)\n arg = unquote('border') if arg == border-box\n arg = unquote('padding') if arg == padding-box\n arg = unquote('content') if arg == content-box\n if arg != '!important'\n push(legacy_args,arg)\n else\n importance = !important\n vendor(property, unquote(join(', ',legacy_args)) importance, only: moz webkit)\n\n/*\n * Vendor \"background-clip\" support.\n */\n\nbackground-clip()\n if arguments[0] == text\n vendor('background-clip', arguments, only: webkit)\n else\n legacy-bg-values('background-clip', arguments)\n background-clip: arguments\n\n/*\n * Vendor \"background-origin\" support.\n */\n\nbackground-origin()\n legacy-bg-values('background-origin', arguments)\n background-origin: arguments\n\n/*\n * Vendor \"transform\" support.\n */\n\ntransform()\n vendor('transform', arguments)\n\n/*\n * Vendor \"transform-origin\" support.\n */\ntransform-origin()\n vendor('transform-origin', arguments)\n\n/*\n * Vendor \"transform-style\" support.\n */\n\ntransform-style()\n vendor('transform-style', arguments)\n\n/*\n * Vendor \"border-image\" support.\n */\n\nborder-image()\n vendor('border-image', arguments, only: webkit moz o official)\n\n/*\n * Vendor \"transition\" support.\n */\n\ntransition()\n vendor('transition', arguments)\n\n/*\n * Vendor \"transition-property\" support.\n */\n\ntransition-property()\n vendor('transition-property', arguments)\n\n/*\n * Vendor \"transition-duration\" support.\n */\n\ntransition-duration()\n vendor('transition-duration', arguments)\n\n/*\n * Vendor \"transition-timing-function\" support.\n */\n\ntransition-timing-function()\n vendor('transition-timing-function', arguments)\n\n/*\n * Vendor \"transition-delay\" support.\n */\n\ntransition-delay()\n vendor('transition-delay', arguments)\n\n/*\n * Vendor \"backface-visibility\" support.\n */\n\nbackface-visibility()\n vendor('backface-visibility', arguments, only: webkit moz ms official)\n\n/*\n * Vendor \"perspective\" support.\n */\n\nperspective()\n if mixin\n vendor('perspective', arguments, only: webkit moz ms official)\n else\n 'perspective(%s)' % arguments\n\n/*\n * Vendor \"perspective-origin\" support.\n */\n\nperspective-origin()\n vendor('perspective-origin', arguments, only: webkit moz ms official)\n\n/*\n * Opacity with conditional IE support.\n */\n\nopacity(n, args...)\n opacity: n args\n if support-for-ie\n if n == inherit or n == initial\n -ms-filter: n args\n filter: n args\n else\n val = round(n * 100)\n if val == 100\n -ms-filter: none args\n filter: none args\n else\n -ms-filter: '\"progid:DXImageTransform.Microsoft.Alpha(Opacity=%s)\"' % val args\n filter: 'alpha(opacity=%s)' % val args\n\n/*\n * Vendor \"text-size-adjust\"\n */\n\ntext-size-adjust()\n vendor('text-size-adjust', arguments)\n\n/*\n * Alias the \"white-space\" property.\n */\n\nwhitespace()\n white-space: arguments\n\n/*\n * Vendor \"box-sizing\" support.\n */\n\nbox-sizing()\n vendor('box-sizing', arguments, only: webkit moz official)\n\n/*\n * Vendor \"box-orient\" support.\n */\n\nbox-orient()\n vendor('box-orient', arguments, only: webkit moz official)\n\n/*\n * Vendor \"box-flex-group\" support.\n */\n\nbox-flex-group()\n vendor('box-flex-group', arguments, only: webkit moz official)\n\n/*\n * Vendor \"box-ordinal-group\" support.\n */\n\nbox-ordinal-group()\n vendor('box-ordinal-group', arguments, only: webkit moz ms official)\n\n\n/*\n * Vendor \"box-align\" support.\n */\n\nbox-align()\n vendor('box-align', arguments, only: webkit moz ms official)\n\n/*\n * Vendor \"box-pack\" support.\n */\n\nbox-pack()\n vendor('box-pack', arguments, only: webkit moz ms official)\n\n/*\n * Vendor \"box-direction\" support.\n */\n\nbox-direction()\n vendor('box-direction', arguments, only: webkit moz ms official)\n\n/*\n * Vendor \"animation\" support.\n */\n\nanimation()\n vendor('animation', arguments)\n\n\n/*\n * Vendor \"animation-name\" support.\n */\n\nanimation-name()\n vendor('animation-name', arguments)\n\n/*\n * Vendor \"animation-duration\" support.\n */\n\nanimation-duration()\n vendor('animation-duration', arguments)\n\n/*\n * Vendor \"animation-delay\" support.\n */\n\nanimation-delay()\n vendor('animation-delay', arguments)\n\n/*\n * Vendor \"animation-direction\" support.\n */\n\nanimation-direction()\n vendor('animation-direction', arguments)\n\n/*\n * Vendor \"animation-iteration-count\" support.\n */\n\nanimation-iteration-count()\n vendor('animation-iteration-count', arguments)\n\n/*\n * Vendor \"animation-timing-function\" support.\n */\n\nanimation-timing-function()\n vendor('animation-timing-function', arguments)\n\n/*\n * Vendor \"animation-play-state\" support.\n */\n\nanimation-play-state()\n vendor('animation-play-state', arguments)\n\n/*\n * Vendor \"animation-fill-mode\" support.\n */\n\nanimation-fill-mode()\n vendor('animation-fill-mode', arguments)\n\n/*\n * Vendor \"hyphens\" support.\n */\n\nhyphens()\n vendor('hyphens', arguments, only: webkit moz ms official)\n\n/*\n * Vendor \"appearance\" support.\n */\n\nappearance()\n vendor('appearance', arguments, only: webkit moz official)\n\n/*\n * Vendor \"tab-size\" support.\n */\n\ntab-size()\n vendor('tab-size', arguments, only: moz o official)\n\n/*\n * Vendor \"overflow-scrolling\" support.\n */\n\noverflow-scrolling()\n vendor('overflow-scrolling', arguments, only: webkit official)\n\n/*\n * Vendor \"text-overflow\" support, , -o- for opera 9.* - 10.*\n */\n\ntext-overflow()\n vendor('text-overflow', arguments, only: official o)\n\n/*\n * Vendor \"text-size-adjust\" support.\n */\ntext-size-adjust()\n vendor('text-size-adjust', arguments, only: official webkit ms)\n\n/*\n * Vendor \"font-smoothing\" support, webkit only.\n */\nfont-smoothing()\n vendor('font-smoothing', arguments, only: webkit)\n\n\n/**\n * Vendor input-placeholder/placeholder support.\n *\n * Examples:\n * // Default syntax\n * body\n * placeholder(color #333, font-weight normal)\n *\n * // The comma is important\n * .placeholder-red\n * placeholder(color red,)\n *\n * // We can pass a function\n * green-placeholder()\n * color green\n * .placeholder-green\n * placeholder(green-placeholder)\n *\n * // We can pass a hash\n * textarea\n * placeholder((font-style italic) (font-weight bold) (padding '4px 10px'))\n */\nplaceholder()\n for v in ':-webkit-input' '-moz' ':-moz' '-ms-input'\n &:{v}-placeholder\n for pair in arguments\n if typeof(pair) == 'function'\n pair()\n else if pair is not null && pair[0] is not null\n {pair[0]}: type(pair[1]) == 'string' ? s(pair[1]) : pair[1]\ninput-placeholder = placeholder\n\n/*\n * Vendor background support (gradients).\n */\n\nbackground()\n if match('-gradient\\(', ''+arguments)\n vendor('background', arguments, vendor-property: false)\n else\n background arguments\n\nbackground-image()\n if match('-gradient\\(', ''+arguments)\n vendor('background-image', arguments, vendor-property: false)\n else\n background-image arguments\n\ncursor()\n if match('-gradient\\(', ''+arguments)\n vendor('cursor', arguments, vendor-property: false)\n else\n cursor arguments\n\nlist-style()\n if match('-gradient\\(', ''+arguments)\n vendor('list-style', arguments, vendor-property: false)\n else\n list-style arguments\n\nlist-style-image()\n if match('-gradient\\(', ''+arguments)\n vendor('list-style-image', arguments, vendor-property: false)\n else\n list-style-image arguments\n","/*\n * Overflow utility. Maps to regular overflow, and adds an ellipsis value.\n *\n * Synopsis:\n *\n * overflow: <type>\n *\n * Examples:\n *\n * overflow: auto\n * overflow: hidden\n * overflow: ellipsis\n *\n */\n\noverflow()\n if arguments[0] == ellipsis\n ellipsis()\n else\n overflow: arguments\n","/*\n * Vendor \"display: flex\" support with fallback to obsolete versions.\n */\n\nflex-version ?= box flex\n\n//\n// 1. Display values\n// - http://www.w3.org/TR/css3-flexbox/#flex-containers\n//\ndisplay(type, args...)\n if flex == type || inline-flex == type\n if box in flex-version\n if flex == type\n display: -ms-flexbox args\n display: vendor-value(box args, only: moz webkit)\n else\n display: -ms-inline-flexbox args\n display: vendor-value(inline-box args, only: moz webkit)\n if flex in flex-version\n display: vendor-value(arguments, only: webkit official) // overwrites old webkit\n else\n display: arguments\n\n/*\n * New syntax for browsers like Google Chrome.\n * Plus a translation to the old syntax, if possible.\n */\n\n\n//\n// 5. Ordering and Orientation\n// - http://www.w3.org/TR/css3-flexbox/#ordering-and-orientation\n//\n-flex-obsolete-direction(direction)\n if box in flex-version\n if row-reverse == direction || column-reverse == direction\n vendor('box-direction', reverse, ignore: ms official)\n\n if row == direction || row-reverse == direction\n vendor('box-orient', horizontal, ignore: ms official)\n else if column == direction || column-reverse == direction\n vendor('box-orient', vertical, ignore: ms official)\n\n-flex-obsolete-wrap(value)\n if box in flex-version\n // WARN: wrap-reverse does not have a box equivalent. This will render in different manners\n // on box vs. flex values.\n if 'wrap' == value || wrap-reverse == value\n vendor('box-lines', multiple, ignore: ms official)\n else if nowrap == value\n vendor('box-lines', single, ignore: ms official)\n\nflex-direction(direction)\n // obsolete\n -flex-obsolete-direction(direction)\n\n // new\n if flex in flex-version\n vendor('flex-direction', arguments, only: webkit ms official)\n\nflex-wrap(value)\n // obsolete\n -flex-obsolete-wrap(value)\n\n if flex in flex-version\n vendor('flex-wrap', arguments, only: webkit ms official)\n\nflex-flow()\n // obsolete\n -flex-obsolete-direction(arguments[0])\n -flex-obsolete-direction(arguments[1])\n -flex-obsolete-wrap(arguments[0])\n -flex-obsolete-wrap(arguments[1])\n\n // new\n if flex in flex-version\n vendor('flex-flow', arguments, only: webkit ms official)\n\n\norder()\n // obsolete\n if box in flex-version\n vendor('box-ordinal-group', arguments, ignore: ms official)\n\n // new\n if flex in flex-version\n vendor('flex-order', arguments, only: ms)\n vendor('order', arguments, only: webkit official)\n\n\n//\n// 7. Flexibility\n// - http://www.w3.org/TR/css3-flexbox/#flexibility\n//\nflex-grow(growth)\n // obsolete\n if box in flex-version\n vendor('box-flex', growth)\n\n // new\n if flex in flex-version\n vendor('flex-grow', arguments, only: webkit official)\n\nflex-basis()\n if flex in flex-version\n vendor('flex-basis', arguments, only: webkit official)\n\nflex-shrink()\n if flex in flex-version\n vendor('flex-shrink', arguments, only: webkit official)\n\nflex(growth)\n\n // obsolete\n if box in flex-version\n shrink = 1\n\n if none == growth || initial == growth\n // Well known values\n shrink = 0 if none == growth\n growth = 0\n else if is-width(growth) == true\n // Basis is defined as the first parameter\n growth = arguments[1] || 0\n shrink = arguments[2] if 3 <= length(arguments)\n else if arguments[1] && is-width(arguments[1]) == false\n // Growth is first and shrink is second\n shrink = arguments[1]\n\n // Since we can't make the distinction between growing and shrinking in the box model, take\n // the one that provides the most flexibility.\n vendor('box-flex', max(growth, shrink), ignore: ms)\n\n // new\n if flex in flex-version\n vendor('flex', arguments, only: webkit ms official)\n\n\n// converts the justification alignment\n-convert-justify(align)\n if flex-start == align\n return start\n else if flex-end == align\n return end\n else if space-around == align\n return distribute\n else if space-between == align\n return justify\n else\n return align\n\n//\n// 8. Alignment\n// - http://www.w3.org/TR/css3-flexbox/#alignment\n//\njustify-content(align)\n // obsolete\n if box in flex-version\n vendor('box-pack', -convert-justify(align), ignore: ms official)\n\n // new\n if flex in flex-version\n vendor('flex-pack', -convert-justify(align), only: ms)\n vendor('justify-content', align, only: webkit official)\n\nalign-content(align)\n // WARN: Obsolete spec does not allow for adjustment here\n if flex in flex-version\n vendor('flex-line-pack', -convert-justify(align), only: ms)\n vendor('align-content', align, only: webkit official)\n\n// converts alignment from 'flex' to normal value\n-convert-alignment(align)\n if flex-start == align\n return start\n else if flex-end == align\n return end\n else\n return align\n\nalign-items(align)\n // obsolete\n if box in flex-version\n vendor('box-align', -convert-alignment(align), ignore: ms official)\n\n // new\n if flex in flex-version\n vendor('flex-align', -convert-alignment(align), only: ms)\n vendor('align-items', arguments, only: webkit official)\n\nalign-self(align)\n // WARN: Obsolete spec does not allow for overriding alignment on individual items.\n if flex in flex-version\n vendor('align-self', align, only: webkit official)\n vendor('flex-item-align', -convert-alignment(align), only: ms)\n","/*\n * border: <color>\n * border: ...\n */\n\nborder(color, args...)\n if color is a 'color'\n border: 1px solid color args\n else\n border: arguments\n"],sourceRoot:""}]),e.A=f},7046:function(t,e,n){"use strict";var i=n(4942),r=n.n(i),o=n(278),a=n.n(o)()(r());a.push([t.id,".color-legend-container{display:none;padding:10px;border:1.5px solid #000;border-radius:3px;transition:250ms background linear;background-color:rgba(255,255,255,0.75)}.color-legend-container:hover{background-color:#fff}.color-legend-container .geojs-color-legends .geojs-color-legend{margin-bottom:10px}.color-legend-container .geojs-color-legends .geojs-color-legend .geojs-title{text-align:center}.color-legend-container .geojs-color-legends .geojs-color-legend svg.svg{display:block}.color-legend-container .geojs-color-legends .geojs-color-legend svg.svg .axis.x path.domain,.color-legend-container .geojs-color-legends .geojs-color-legend svg.svg .axis.x line{fill:none;stroke:#000;stroke-width:.7}.color-legend-container .geojs-color-legends .geojs-color-legend svg.svg .axis.x text{font-size:12px}.color-legend-container .color-legend-popup{position:absolute;background:#fff;height:22px;font-size:14px;border:solid 1px #000;padding:0 5px;pointer-events:none;white-space:nowrap;z-index:100000;opacity:0}","",{version:3,sources:["webpack://./ui/colorLegendWidget.styl"],names:[],mappings:"AAAA,wBACE,YAAQ,CACR,YAAQ,CACR,uBAAO,CACP,iBAAc,CACd,kCAAW,CACX,uCAAiB,CAEjB,8BACE,qBAAiB,CAIjB,iEACE,kBAAc,CAEd,8EACE,iBAAW,CAEb,yEACE,aAAQ,CAGN,mLACE,SAAK,CACL,WAAO,CACP,eAAa,CACf,sFACE,cAAU,CAEpB,4CACE,iBAAS,CACT,eAAW,CACX,WAAO,CACP,cAAU,CACV,qBAAO,CACP,aAAQ,CACR,mBAAe,CACf,kBAAY,CACZ,cAAQ,CACR,SAAQ",sourcesContent:[".color-legend-container\n display none\n padding 10px\n border 1.5px solid black\n border-radius 3px\n transition 250ms background linear\n background-color rgba(255, 255, 255, 0.75)\n\n &:hover\n background-color rgba(255, 255, 255, 1)\n\n .geojs-color-legends\n\n .geojs-color-legend\n margin-bottom 10px\n\n .geojs-title\n text-align center\n\n svg.svg\n display block\n\n .axis.x\n path.domain, line\n fill none\n stroke black\n stroke-width 0.7\n text\n font-size 12px\n\n .color-legend-popup\n position absolute\n background white\n height 22px\n font-size 14px\n border solid 1px black\n padding 0 5px\n pointer-events none\n white-space nowrap\n z-index 100000\n opacity 0\n"],sourceRoot:""}]),e.A=a},5290:function(t,e,n){"use strict";var i=n(4942),r=n.n(i),o=n(278),a=n.n(o)()(r());a.push([t.id,".geojs-scale-widget-bar{stroke:#000}.geojs-scale-widget-text{font-weight:bold;font-size:16px;font-family:serif}","",{version:3,sources:["webpack://./ui/scaleWidget.styl"],names:[],mappings:"AAAA,wBACE,WAAO,CACT,yBACE,gBAAY,CACZ,cAAU,CACV,iBAAY",sourcesContent:[".geojs-scale-widget-bar\n stroke black\n.geojs-scale-widget-text\n font-weight bold\n font-size 16px\n font-family serif\n"],sourceRoot:""}]),e.A=a},278:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(i)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var u=0;u<t.length;u++){var c=[].concat(t[u]);i&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},3021:function(t){"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},4942:function(t){"use strict";t.exports=function(t){var e=t[1],n=t[3];if(!n)return e;if("function"==typeof btoa){var i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),o="/*# ".concat(r," */");return[e].concat([o]).join("\n")}return[e].join("\n")}},5230:function(t){"use strict";function e(t,e,i){i=i||2;var o,a,s,l,d,h,p,m=e&&e.length,g=m?e[0]*i:t.length,y=n(t,0,g,i,!0),v=[];if(!y||y.next===y.prev)return v;if(m&&(y=function(t,e,i,r){var o,a,s,l=[];for(o=0,a=e.length;o<a;o++)(s=n(t,e[o]*r,o<a-1?e[o+1]*r:t.length,r,!1))===s.next&&(s.steiner=!0),l.push(f(s));for(l.sort(u),o=0;o<l.length;o++)i=c(l[o],i);return i}(t,e,y,i)),t.length>80*i){o=s=t[0],a=l=t[1];for(var x=i;x<g;x+=i)(d=t[x])<o&&(o=d),(h=t[x+1])<a&&(a=h),d>s&&(s=d),h>l&&(l=h);p=0!==(p=Math.max(s-o,l-a))?32767/p:0}return r(y,v,i,o,a,p,0),v}function n(t,e,n,i,r){var o,a;if(r===C(t,e,n,i)>0)for(o=e;o<n;o+=i)a=M(o,t[o],t[o+1],a);else for(o=n-i;o>=e;o-=i)a=M(o,t[o],t[o+1],a);return a&&y(a,a.next)&&(A(a),a=a.next),a}function i(t,e){if(!t)return t;e||(e=t);var n,i=t;do{if(n=!1,i.steiner||!y(i,i.next)&&0!==g(i.prev,i,i.next))i=i.next;else{if(A(i),(i=e=i.prev)===i.next)break;n=!0}}while(n||i!==e);return e}function r(t,e,n,u,c,d,f){if(t){!f&&d&&function(t,e,n,i){var r=t;do{0===r.z&&(r.z=h(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,n,i,r,o,a,s,l,u=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,i=n,s=0,e=0;e<u&&(s++,i=i.nextZ);e++);for(l=u;s>0||l>0&&i;)0!==s&&(0===l||!i||n.z<=i.z)?(r=n,n=n.nextZ,s--):(r=i,i=i.nextZ,l--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;n=i}o.nextZ=null,u*=2}while(a>1)}(r)}(t,u,c,d);for(var p,m,g=t;t.prev!==t.next;)if(p=t.prev,m=t.next,d?a(t,u,c,d):o(t))e.push(p.i/n|0),e.push(t.i/n|0),e.push(m.i/n|0),A(t),t=m.next,g=m.next;else if((t=m)===g){f?1===f?r(t=s(i(t),e,n),e,n,u,c,d,2):2===f&&l(t,e,n,u,c,d):r(i(t),e,n,u,c,d,1);break}}}function o(t){var e=t.prev,n=t,i=t.next;if(g(e,n,i)>=0)return!1;for(var r=e.x,o=n.x,a=i.x,s=e.y,l=n.y,u=i.y,c=r<o?r<a?r:a:o<a?o:a,d=s<l?s<u?s:u:l<u?l:u,h=r>o?r>a?r:a:o>a?o:a,f=s>l?s>u?s:u:l>u?l:u,m=i.next;m!==e;){if(m.x>=c&&m.x<=h&&m.y>=d&&m.y<=f&&p(r,s,o,l,a,u,m.x,m.y)&&g(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function a(t,e,n,i){var r=t.prev,o=t,a=t.next;if(g(r,o,a)>=0)return!1;for(var s=r.x,l=o.x,u=a.x,c=r.y,d=o.y,f=a.y,m=s<l?s<u?s:u:l<u?l:u,y=c<d?c<f?c:f:d<f?d:f,v=s>l?s>u?s:u:l>u?l:u,x=c>d?c>f?c:f:d>f?d:f,_=h(m,y,e,n,i),b=h(v,x,e,n,i),w=t.prevZ,M=t.nextZ;w&&w.z>=_&&M&&M.z<=b;){if(w.x>=m&&w.x<=v&&w.y>=y&&w.y<=x&&w!==r&&w!==a&&p(s,c,l,d,u,f,w.x,w.y)&&g(w.prev,w,w.next)>=0)return!1;if(w=w.prevZ,M.x>=m&&M.x<=v&&M.y>=y&&M.y<=x&&M!==r&&M!==a&&p(s,c,l,d,u,f,M.x,M.y)&&g(M.prev,M,M.next)>=0)return!1;M=M.nextZ}for(;w&&w.z>=_;){if(w.x>=m&&w.x<=v&&w.y>=y&&w.y<=x&&w!==r&&w!==a&&p(s,c,l,d,u,f,w.x,w.y)&&g(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;M&&M.z<=b;){if(M.x>=m&&M.x<=v&&M.y>=y&&M.y<=x&&M!==r&&M!==a&&p(s,c,l,d,u,f,M.x,M.y)&&g(M.prev,M,M.next)>=0)return!1;M=M.nextZ}return!0}function s(t,e,n){var r=t;do{var o=r.prev,a=r.next.next;!y(o,a)&&v(o,r,r.next,a)&&b(o,a)&&b(a,o)&&(e.push(o.i/n|0),e.push(r.i/n|0),e.push(a.i/n|0),A(r),A(r.next),r=t=a),r=r.next}while(r!==t);return i(r)}function l(t,e,n,o,a,s){var l=t;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&m(l,u)){var c=w(l,u);return l=i(l,l.next),c=i(c,c.next),r(l,e,n,o,a,s,0),void r(c,e,n,o,a,s,0)}u=u.next}l=l.next}while(l!==t)}function u(t,e){return t.x-e.x}function c(t,e){var n=function(t,e){var n,i=e,r=t.x,o=t.y,a=-1/0;do{if(o<=i.y&&o>=i.next.y&&i.next.y!==i.y){var s=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s<=r&&s>a&&(a=s,n=i.x<i.next.x?i:i.next,s===r))return n}i=i.next}while(i!==e);if(!n)return null;var l,u=n,c=n.x,h=n.y,f=1/0;i=n;do{r>=i.x&&i.x>=c&&r!==i.x&&p(o<h?r:a,o,c,h,o<h?a:r,o,i.x,i.y)&&(l=Math.abs(o-i.y)/(r-i.x),b(i,t)&&(l<f||l===f&&(i.x>n.x||i.x===n.x&&d(n,i)))&&(n=i,f=l)),i=i.next}while(i!==u);return n}(t,e);if(!n)return e;var r=w(n,t);return i(r,r.next),i(n,n.next)}function d(t,e){return g(t.prev,t,e.prev)<0&&g(e.next,t,t.next)<0}function h(t,e,n,i,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*r|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-i)*r|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function f(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function p(t,e,n,i,r,o,a,s){return(r-a)*(e-s)>=(t-a)*(o-s)&&(t-a)*(i-s)>=(n-a)*(e-s)&&(n-a)*(o-s)>=(r-a)*(i-s)}function m(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&&v(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(b(t,e)&&b(e,t)&&function(t,e){var n=t,i=!1,r=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&r<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==t);return i}(t,e)&&(g(t.prev,t,e.prev)||g(t,e.prev,e))||y(t,e)&&g(t.prev,t,t.next)>0&&g(e.prev,e,e.next)>0)}function g(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function y(t,e){return t.x===e.x&&t.y===e.y}function v(t,e,n,i){var r=_(g(t,e,n)),o=_(g(t,e,i)),a=_(g(n,i,t)),s=_(g(n,i,e));return r!==o&&a!==s||(!(0!==r||!x(t,n,e))||(!(0!==o||!x(t,i,e))||(!(0!==a||!x(n,t,i))||!(0!==s||!x(n,e,i)))))}function x(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function _(t){return t>0?1:t<0?-1:0}function b(t,e){return g(t.prev,t,t.next)<0?g(t,e,t.next)>=0&&g(t,t.prev,e)>=0:g(t,e,t.prev)<0||g(t,t.next,e)<0}function w(t,e){var n=new T(t.i,t.x,t.y),i=new T(e.i,e.x,e.y),r=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,o.next=i,i.prev=o,i}function M(t,e,n,i){var r=new T(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function A(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 T(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function C(t,e,n,i){for(var r=0,o=e,a=n-i;o<n;o+=i)r+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return r}t.exports=e,t.exports.default=e,e.deviation=function(t,e,n,i){var r=e&&e.length,o=r?e[0]*n:t.length,a=Math.abs(C(t,0,o,n));if(r)for(var s=0,l=e.length;s<l;s++){var u=e[s]*n,c=s<l-1?e[s+1]*n:t.length;a-=Math.abs(C(t,u,c,n))}var d=0;for(s=0;s<i.length;s+=3){var h=i[s]*n,f=i[s+1]*n,p=i[s+2]*n;d+=Math.abs((t[h]-t[p])*(t[f+1]-t[h+1])-(t[h]-t[f])*(t[p+1]-t[h+1]))}return 0===a&&0===d?0:Math.abs((d-a)/a)},e.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},i=0,r=0;r<t.length;r++){for(var o=0;o<t[r].length;o++)for(var a=0;a<e;a++)n.vertices.push(t[r][o][a]);r>0&&(i+=t[r-1].length,n.holes.push(i))}return n}},3369:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8];return t[0]=a*c-s*u,t[1]=r*u-i*c,t[2]=i*s-r*a,t[3]=s*l-o*c,t[4]=n*c-r*l,t[5]=r*o-n*s,t[6]=o*u-a*l,t[7]=i*l-n*u,t[8]=n*a-i*o,t}},5723:function(t){t.exports=function(t){var e=new Float32Array(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}},817:function(t){t.exports=function(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[6]=e[6],t[7]=e[7],t[8]=e[8],t}},6396:function(t){t.exports=function(){var t=new Float32Array(9);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}},9133:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],u=t[8];return e*(u*o-a*l)+n*(a*s-u*r)+i*(l*r-o*s)}},7053:function(t){t.exports=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]+t[3]*t[3]+t[4]*t[4]+t[5]*t[5]+t[6]*t[6]+t[7]*t[7]+t[8]*t[8])}},7068:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}},5018:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}},3955:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,l=r+r,u=n*a,c=i*a,d=i*s,h=r*a,f=r*s,p=r*l,m=o*a,g=o*s,y=o*l;return t[0]=1-d-p,t[3]=c-y,t[6]=h+g,t[1]=c+y,t[4]=1-u-p,t[7]=f-m,t[2]=h-g,t[5]=f+m,t[8]=1-u-d,t}},6658:function(t){t.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}},3638:function(t,e,n){t.exports={adjoint:n(3369),clone:n(5723),copy:n(817),create:n(6396),determinant:n(9133),frob:n(7053),fromMat2:n(7068),fromMat4:n(5018),fromQuat:n(3955),identity:n(6658),invert:n(6028),multiply:n(4980),normalFromMat4:n(8093),rotate:n(8163),scale:n(2311),str:n(6321),translate:n(5068),transpose:n(6333)}},6028:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],d=c*a-s*u,h=-c*o+s*l,f=u*o-a*l,p=n*d+i*h+r*f;return p?(p=1/p,t[0]=d*p,t[1]=(-c*i+r*u)*p,t[2]=(s*i-r*a)*p,t[3]=h*p,t[4]=(c*n-r*l)*p,t[5]=(-s*n+r*o)*p,t[6]=f*p,t[7]=(-u*n+i*l)*p,t[8]=(a*n-i*o)*p,t):null}},4980:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],d=e[8],h=n[0],f=n[1],p=n[2],m=n[3],g=n[4],y=n[5],v=n[6],x=n[7],_=n[8];return t[0]=h*i+f*a+p*u,t[1]=h*r+f*s+p*c,t[2]=h*o+f*l+p*d,t[3]=m*i+g*a+y*u,t[4]=m*r+g*s+y*c,t[5]=m*o+g*l+y*d,t[6]=v*i+x*a+_*u,t[7]=v*r+x*s+_*c,t[8]=v*o+x*l+_*d,t}},8093:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],d=e[9],h=e[10],f=e[11],p=e[12],m=e[13],g=e[14],y=e[15],v=n*s-i*a,x=n*l-r*a,_=n*u-o*a,b=i*l-r*s,w=i*u-o*s,M=r*u-o*l,A=c*m-d*p,T=c*g-h*p,C=c*y-f*p,E=d*g-h*m,k=d*y-f*m,S=h*y-f*g,O=v*S-x*k+_*E+b*C-w*T+M*A;return O?(O=1/O,t[0]=(s*S-l*k+u*E)*O,t[1]=(l*C-a*S-u*T)*O,t[2]=(a*k-s*C+u*A)*O,t[3]=(r*k-i*S-o*E)*O,t[4]=(n*S-r*C+o*T)*O,t[5]=(i*C-n*k-o*A)*O,t[6]=(m*M-g*w+y*b)*O,t[7]=(g*_-p*M-y*x)*O,t[8]=(p*w-m*_+y*v)*O,t):null}},8163:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],d=e[8],h=Math.sin(n),f=Math.cos(n);return t[0]=f*i+h*a,t[1]=f*r+h*s,t[2]=f*o+h*l,t[3]=f*a-h*i,t[4]=f*s-h*r,t[5]=f*l-h*o,t[6]=u,t[7]=c,t[8]=d,t}},2311:function(t){t.exports=function(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}},6321:function(t){t.exports=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}},5068:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],d=e[8],h=n[0],f=n[1];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=h*i+f*a+u,t[7]=h*r+f*s+c,t[8]=h*o+f*l+d,t}},6333:function(t){t.exports=function(t,e){if(t===e){var n=e[1],i=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}},5200:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],d=e[9],h=e[10],f=e[11],p=e[12],m=e[13],g=e[14],y=e[15];return t[0]=s*(h*y-f*g)-d*(l*y-u*g)+m*(l*f-u*h),t[1]=-(i*(h*y-f*g)-d*(r*y-o*g)+m*(r*f-o*h)),t[2]=i*(l*y-u*g)-s*(r*y-o*g)+m*(r*u-o*l),t[3]=-(i*(l*f-u*h)-s*(r*f-o*h)+d*(r*u-o*l)),t[4]=-(a*(h*y-f*g)-c*(l*y-u*g)+p*(l*f-u*h)),t[5]=n*(h*y-f*g)-c*(r*y-o*g)+p*(r*f-o*h),t[6]=-(n*(l*y-u*g)-a*(r*y-o*g)+p*(r*u-o*l)),t[7]=n*(l*f-u*h)-a*(r*f-o*h)+c*(r*u-o*l),t[8]=a*(d*y-f*m)-c*(s*y-u*m)+p*(s*f-u*d),t[9]=-(n*(d*y-f*m)-c*(i*y-o*m)+p*(i*f-o*d)),t[10]=n*(s*y-u*m)-a*(i*y-o*m)+p*(i*u-o*s),t[11]=-(n*(s*f-u*d)-a*(i*f-o*d)+c*(i*u-o*s)),t[12]=-(a*(d*g-h*m)-c*(s*g-l*m)+p*(s*h-l*d)),t[13]=n*(d*g-h*m)-c*(i*g-r*m)+p*(i*h-r*d),t[14]=-(n*(s*g-l*m)-a*(i*g-r*m)+p*(i*l-r*s)),t[15]=n*(s*h-l*d)-a*(i*h-r*d)+c*(i*l-r*s),t}},1130:function(t){t.exports=function(t){var e=new Float32Array(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},74:function(t){t.exports=function(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[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},3783:function(t){t.exports=function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},8844:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],u=t[8],c=t[9],d=t[10],h=t[11],f=t[12],p=t[13],m=t[14],g=t[15];return(e*a-n*o)*(d*g-h*m)-(e*s-i*o)*(c*g-h*p)+(e*l-r*o)*(c*m-d*p)+(n*s-i*a)*(u*g-h*f)-(n*l-r*a)*(u*m-d*f)+(i*l-r*s)*(u*p-c*f)}},5936:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,l=r+r,u=n*a,c=i*a,d=i*s,h=r*a,f=r*s,p=r*l,m=o*a,g=o*s,y=o*l;return t[0]=1-d-p,t[1]=c+y,t[2]=h-g,t[3]=0,t[4]=c-y,t[5]=1-u-p,t[6]=f+m,t[7]=0,t[8]=h+g,t[9]=f-m,t[10]=1-u-d,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},5405:function(t){t.exports=function(t,e,n){var i,r,o,a=n[0],s=n[1],l=n[2],u=Math.sqrt(a*a+s*s+l*l);if(Math.abs(u)<1e-6)return null;return a*=u=1/u,s*=u,l*=u,i=Math.sin(e),r=Math.cos(e),o=1-r,t[0]=a*a*o+r,t[1]=s*a*o+l*i,t[2]=l*a*o-s*i,t[3]=0,t[4]=a*s*o-l*i,t[5]=s*s*o+r,t[6]=l*s*o+a*i,t[7]=0,t[8]=a*l*o+s*i,t[9]=s*l*o-a*i,t[10]=l*l*o+r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},3310:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=i+i,l=r+r,u=o+o,c=i*s,d=i*l,h=i*u,f=r*l,p=r*u,m=o*u,g=a*s,y=a*l,v=a*u;return t[0]=1-(f+m),t[1]=d+v,t[2]=h-y,t[3]=0,t[4]=d-v,t[5]=1-(c+m),t[6]=p+g,t[7]=0,t[8]=h+y,t[9]=p-g,t[10]=1-(c+f),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}},1826:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},4692:function(t){t.exports=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}},1349:function(t){t.exports=function(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},8034:function(t){t.exports=function(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},1655:function(t){t.exports=function(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},3277:function(t){t.exports=function(t,e,n,i,r,o,a){var s=1/(n-e),l=1/(r-i),u=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(r+i)*l,t[10]=(a+o)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*u,t[15]=0,t}},257:function(t){t.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},3503:function(t,e,n){t.exports={create:n(3783),clone:n(1130),copy:n(74),identity:n(257),transpose:n(2664),invert:n(6583),adjoint:n(5200),determinant:n(8844),multiply:n(9899),translate:n(573),scale:n(177),rotate:n(648),rotateX:n(5618),rotateY:n(5345),rotateZ:n(5208),fromRotation:n(5405),fromRotationTranslation:n(3310),fromScaling:n(1826),fromTranslation:n(4692),fromXRotation:n(1349),fromYRotation:n(8034),fromZRotation:n(1655),fromQuat:n(5936),frustum:n(3277),perspective:n(2649),perspectiveFromFieldOfView:n(7733),ortho:n(2337),lookAt:n(8541),str:n(6600)}},6583:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],d=e[9],h=e[10],f=e[11],p=e[12],m=e[13],g=e[14],y=e[15],v=n*s-i*a,x=n*l-r*a,_=n*u-o*a,b=i*l-r*s,w=i*u-o*s,M=r*u-o*l,A=c*m-d*p,T=c*g-h*p,C=c*y-f*p,E=d*g-h*m,k=d*y-f*m,S=h*y-f*g,O=v*S-x*k+_*E+b*C-w*T+M*A;if(!O)return null;return O=1/O,t[0]=(s*S-l*k+u*E)*O,t[1]=(r*k-i*S-o*E)*O,t[2]=(m*M-g*w+y*b)*O,t[3]=(h*w-d*M-f*b)*O,t[4]=(l*C-a*S-u*T)*O,t[5]=(n*S-r*C+o*T)*O,t[6]=(g*_-p*M-y*x)*O,t[7]=(c*M-h*_+f*x)*O,t[8]=(a*k-s*C+u*A)*O,t[9]=(i*C-n*k-o*A)*O,t[10]=(p*w-m*_+y*v)*O,t[11]=(d*_-c*w-f*v)*O,t[12]=(s*T-a*E-l*A)*O,t[13]=(n*E-i*T+r*A)*O,t[14]=(m*x-p*b-g*v)*O,t[15]=(c*b-d*x+h*v)*O,t}},8541:function(t,e,n){var i=n(257);t.exports=function(t,e,n,r){var o,a,s,l,u,c,d,h,f,p,m=e[0],g=e[1],y=e[2],v=r[0],x=r[1],_=r[2],b=n[0],w=n[1],M=n[2];if(Math.abs(m-b)<1e-6&&Math.abs(g-w)<1e-6&&Math.abs(y-M)<1e-6)return i(t);d=m-b,h=g-w,f=y-M,p=1/Math.sqrt(d*d+h*h+f*f),o=x*(f*=p)-_*(h*=p),a=_*(d*=p)-v*f,s=v*h-x*d,(p=Math.sqrt(o*o+a*a+s*s))?(o*=p=1/p,a*=p,s*=p):(o=0,a=0,s=0);l=h*s-f*a,u=f*o-d*s,c=d*a-h*o,(p=Math.sqrt(l*l+u*u+c*c))?(l*=p=1/p,u*=p,c*=p):(l=0,u=0,c=0);return t[0]=o,t[1]=l,t[2]=d,t[3]=0,t[4]=a,t[5]=u,t[6]=h,t[7]=0,t[8]=s,t[9]=c,t[10]=f,t[11]=0,t[12]=-(o*m+a*g+s*y),t[13]=-(l*m+u*g+c*y),t[14]=-(d*m+h*g+f*y),t[15]=1,t}},9899:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],d=e[8],h=e[9],f=e[10],p=e[11],m=e[12],g=e[13],y=e[14],v=e[15],x=n[0],_=n[1],b=n[2],w=n[3];return t[0]=x*i+_*s+b*d+w*m,t[1]=x*r+_*l+b*h+w*g,t[2]=x*o+_*u+b*f+w*y,t[3]=x*a+_*c+b*p+w*v,x=n[4],_=n[5],b=n[6],w=n[7],t[4]=x*i+_*s+b*d+w*m,t[5]=x*r+_*l+b*h+w*g,t[6]=x*o+_*u+b*f+w*y,t[7]=x*a+_*c+b*p+w*v,x=n[8],_=n[9],b=n[10],w=n[11],t[8]=x*i+_*s+b*d+w*m,t[9]=x*r+_*l+b*h+w*g,t[10]=x*o+_*u+b*f+w*y,t[11]=x*a+_*c+b*p+w*v,x=n[12],_=n[13],b=n[14],w=n[15],t[12]=x*i+_*s+b*d+w*m,t[13]=x*r+_*l+b*h+w*g,t[14]=x*o+_*u+b*f+w*y,t[15]=x*a+_*c+b*p+w*v,t}},2337:function(t){t.exports=function(t,e,n,i,r,o,a){var s=1/(e-n),l=1/(i-r),u=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(r+i)*l,t[14]=(a+o)*u,t[15]=1,t}},2649:function(t){t.exports=function(t,e,n,i,r){var o=1/Math.tan(e/2),a=1/(i-r);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(r+i)*a,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*r*i*a,t[15]=0,t}},7733:function(t){t.exports=function(t,e,n,i){var r=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(a+s),u=2/(r+o);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(a-s)*l*.5,t[9]=(r-o)*u*.5,t[10]=i/(n-i),t[11]=-1,t[12]=0,t[13]=0,t[14]=i*n/(n-i),t[15]=0,t}},648:function(t){t.exports=function(t,e,n,i){var r,o,a,s,l,u,c,d,h,f,p,m,g,y,v,x,_,b,w,M,A,T,C,E,k=i[0],S=i[1],O=i[2],P=Math.sqrt(k*k+S*S+O*O);if(Math.abs(P)<1e-6)return null;k*=P=1/P,S*=P,O*=P,r=Math.sin(n),o=Math.cos(n),a=1-o,s=e[0],l=e[1],u=e[2],c=e[3],d=e[4],h=e[5],f=e[6],p=e[7],m=e[8],g=e[9],y=e[10],v=e[11],x=k*k*a+o,_=S*k*a+O*r,b=O*k*a-S*r,w=k*S*a-O*r,M=S*S*a+o,A=O*S*a+k*r,T=k*O*a+S*r,C=S*O*a-k*r,E=O*O*a+o,t[0]=s*x+d*_+m*b,t[1]=l*x+h*_+g*b,t[2]=u*x+f*_+y*b,t[3]=c*x+p*_+v*b,t[4]=s*w+d*M+m*A,t[5]=l*w+h*M+g*A,t[6]=u*w+f*M+y*A,t[7]=c*w+p*M+v*A,t[8]=s*T+d*C+m*E,t[9]=l*T+h*C+g*E,t[10]=u*T+f*C+y*E,t[11]=c*T+p*C+v*E,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t}},5618:function(t){t.exports=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],c=e[9],d=e[10],h=e[11];e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[4]=o*r+u*i,t[5]=a*r+c*i,t[6]=s*r+d*i,t[7]=l*r+h*i,t[8]=u*r-o*i,t[9]=c*r-a*i,t[10]=d*r-s*i,t[11]=h*r-l*i,t}},5345:function(t){t.exports=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),o=e[0],a=e[1],s=e[2],l=e[3],u=e[8],c=e[9],d=e[10],h=e[11];e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=o*r-u*i,t[1]=a*r-c*i,t[2]=s*r-d*i,t[3]=l*r-h*i,t[8]=o*i+u*r,t[9]=a*i+c*r,t[10]=s*i+d*r,t[11]=l*i+h*r,t}},5208:function(t){t.exports=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),o=e[0],a=e[1],s=e[2],l=e[3],u=e[4],c=e[5],d=e[6],h=e[7];e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=o*r+u*i,t[1]=a*r+c*i,t[2]=s*r+d*i,t[3]=l*r+h*i,t[4]=u*r-o*i,t[5]=c*r-a*i,t[6]=d*r-s*i,t[7]=h*r-l*i,t}},177:function(t){t.exports=function(t,e,n){var i=n[0],r=n[1],o=n[2];return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},6600:function(t){t.exports=function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}},573:function(t){t.exports=function(t,e,n){var i,r,o,a,s,l,u,c,d,h,f,p,m=n[0],g=n[1],y=n[2];e===t?(t[12]=e[0]*m+e[4]*g+e[8]*y+e[12],t[13]=e[1]*m+e[5]*g+e[9]*y+e[13],t[14]=e[2]*m+e[6]*g+e[10]*y+e[14],t[15]=e[3]*m+e[7]*g+e[11]*y+e[15]):(i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],d=e[8],h=e[9],f=e[10],p=e[11],t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=d,t[9]=h,t[10]=f,t[11]=p,t[12]=i*m+s*g+d*y+e[12],t[13]=r*m+l*g+h*y+e[13],t[14]=o*m+u*g+f*y+e[14],t[15]=a*m+c*g+p*y+e[15]);return t}},2664:function(t){t.exports=function(t,e){if(t===e){var n=e[1],i=e[2],r=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=i,t[9]=o,t[11]=e[14],t[12]=r,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}},3197:function(t){t.exports=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}},577:function(t,e,n){t.exports=function(t,e){var n=i(t[0],t[1],t[2]),a=i(e[0],e[1],e[2]);r(n,n),r(a,a);var s=o(n,a);return s>1?0:Math.acos(s)};var i=n(9666),r=n(1205),o=n(6517)},9913:function(t){t.exports=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}},7091:function(t){t.exports=function(t){var e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}},3497:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},1220:function(t){t.exports=function(){var t=new Float32Array(3);return t[0]=0,t[1]=0,t[2]=0,t}},6902:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2];return t[0]=r*l-o*s,t[1]=o*a-i*l,t[2]=i*s-r*a,t}},5140:function(t,e,n){t.exports=n(5055)},5055:function(t){t.exports=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(n*n+i*i+r*r)}},6669:function(t,e,n){t.exports=n(9737)},9737:function(t){t.exports=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}},6517:function(t){t.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}},6532:function(t){t.exports=1e-6},1077:function(t,e,n){t.exports=function(t,e){var n=t[0],r=t[1],o=t[2],a=e[0],s=e[1],l=e[2];return Math.abs(n-a)<=i*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-s)<=i*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(o-l)<=i*Math.max(1,Math.abs(o),Math.abs(l))};var i=n(6532)},5696:function(t){t.exports=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}},4280:function(t){t.exports=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}},9436:function(t,e,n){t.exports=function(t,e,n,r,o,a){var s,l;e||(e=3);n||(n=0);l=r?Math.min(r*e+n,t.length):t.length;for(s=n;s<l;s+=e)i[0]=t[s],i[1]=t[s+1],i[2]=t[s+2],o(i,i,a),t[s]=i[0],t[s+1]=i[1],t[s+2]=i[2];return t};var i=n(1220)()},9666:function(t){t.exports=function(t,e,n){var i=new Float32Array(3);return i[0]=t,i[1]=e,i[2]=n,i}},1982:function(t,e,n){t.exports={EPSILON:n(6532),create:n(1220),clone:n(7091),angle:n(577),fromValues:n(9666),copy:n(3497),set:n(3926),equals:n(1077),exactEquals:n(5696),add:n(3197),subtract:n(1040),sub:n(8560),multiply:n(8044),mul:n(8516),divide:n(9737),div:n(6669),min:n(4370),max:n(7484),floor:n(4280),ceil:n(9913),round:n(4622),scale:n(9404),scaleAndAdd:n(8544),distance:n(5055),dist:n(5140),squaredDistance:n(2340),sqrDist:n(3108),length:n(9852),len:n(4001),squaredLength:n(2775),sqrLen:n(9249),negate:n(2926),inverse:n(3346),normalize:n(1205),dot:n(6517),cross:n(6902),lerp:n(1817),random:n(9463),transformMat4:n(9564),transformMat3:n(553),transformQuat:n(4997),rotateX:n(6899),rotateY:n(8028),rotateZ:n(5493),forEach:n(9436)}},3346:function(t){t.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}},4001:function(t,e,n){t.exports=n(9852)},9852:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2];return Math.sqrt(e*e+n*n+i*i)}},1817:function(t){t.exports=function(t,e,n,i){var r=e[0],o=e[1],a=e[2];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t}},7484:function(t){t.exports=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}},4370:function(t){t.exports=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}},8516:function(t,e,n){t.exports=n(8044)},8044:function(t){t.exports=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}},2926:function(t){t.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}},1205:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=n*n+i*i+r*r;o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o);return t}},9463:function(t){t.exports=function(t,e){e=e||1;var n=2*Math.random()*Math.PI,i=2*Math.random()-1,r=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*r,t[1]=Math.sin(n)*r,t[2]=i*e,t}},6899:function(t){t.exports=function(t,e,n,i){var r=n[1],o=n[2],a=e[1]-r,s=e[2]-o,l=Math.sin(i),u=Math.cos(i);return t[0]=e[0],t[1]=r+a*u-s*l,t[2]=o+a*l+s*u,t}},8028:function(t){t.exports=function(t,e,n,i){var r=n[0],o=n[2],a=e[0]-r,s=e[2]-o,l=Math.sin(i),u=Math.cos(i);return t[0]=r+s*l+a*u,t[1]=e[1],t[2]=o+s*u-a*l,t}},5493:function(t){t.exports=function(t,e,n,i){var r=n[0],o=n[1],a=e[0]-r,s=e[1]-o,l=Math.sin(i),u=Math.cos(i);return t[0]=r+a*u-s*l,t[1]=o+a*l+s*u,t[2]=e[2],t}},4622:function(t){t.exports=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}},9404:function(t){t.exports=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}},8544:function(t){t.exports=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t}},3926:function(t){t.exports=function(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t}},3108:function(t,e,n){t.exports=n(2340)},9249:function(t,e,n){t.exports=n(2775)},2340:function(t){t.exports=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}},2775:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}},8560:function(t,e,n){t.exports=n(1040)},1040:function(t){t.exports=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}},553:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t}},9564:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[3]*i+n[7]*r+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*i+n[4]*r+n[8]*o+n[12])/a,t[1]=(n[1]*i+n[5]*r+n[9]*o+n[13])/a,t[2]=(n[2]*i+n[6]*r+n[10]*o+n[14])/a,t}},4997:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2],u=n[3],c=u*i+s*o-l*r,d=u*r+l*i-a*o,h=u*o+a*r-s*i,f=-a*i-s*r-l*o;return t[0]=c*u+f*-a+d*-l-h*-s,t[1]=d*u+f*-s+h*-a-c*-l,t[2]=h*u+f*-l+c*-s-d*-a,t}},2108:function(t){t.exports=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}},7682:function(t){t.exports=function(t){var e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}},9298:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},3071:function(t){t.exports=function(){var t=new Float32Array(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}},5476:function(t){t.exports=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],o=e[3]-t[3];return Math.sqrt(n*n+i*i+r*r+o*o)}},1350:function(t){t.exports=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}},216:function(t){t.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}},8741:function(t){t.exports=function(t,e,n,i){var r=new Float32Array(4);return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}},4663:function(t,e,n){t.exports={create:n(3071),clone:n(7682),fromValues:n(8741),copy:n(9298),set:n(6675),add:n(2108),subtract:n(6919),multiply:n(9363),divide:n(1350),min:n(9271),max:n(2045),scale:n(7705),scaleAndAdd:n(2869),distance:n(5476),squaredDistance:n(6733),length:n(7159),squaredLength:n(2678),negate:n(6977),inverse:n(3095),normalize:n(8308),dot:n(216),lerp:n(2710),random:n(9960),transformMat4:n(8773),transformQuat:n(2508)}},3095:function(t){t.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}},7159:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return Math.sqrt(e*e+n*n+i*i+r*r)}},2710:function(t){t.exports=function(t,e,n,i){var r=e[0],o=e[1],a=e[2],s=e[3];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t[3]=s+i*(n[3]-s),t}},2045:function(t){t.exports=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}},9271:function(t){t.exports=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}},9363:function(t){t.exports=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}},6977:function(t){t.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}},8308:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n*n+i*i+r*r+o*o;a>0&&(a=1/Math.sqrt(a),t[0]=n*a,t[1]=i*a,t[2]=r*a,t[3]=o*a);return t}},9960:function(t,e,n){var i=n(8308),r=n(7705);t.exports=function(t,e){return e=e||1,t[0]=Math.random(),t[1]=Math.random(),t[2]=Math.random(),t[3]=Math.random(),i(t,t),r(t,t,e),t}},7705:function(t){t.exports=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}},2869:function(t){t.exports=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t}},6675:function(t){t.exports=function(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}},6733:function(t){t.exports=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],o=e[3]-t[3];return n*n+i*i+r*r+o*o}},2678:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return e*e+n*n+i*i+r*r}},6919:function(t){t.exports=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}},8773:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3];return t[0]=n[0]*i+n[4]*r+n[8]*o+n[12]*a,t[1]=n[1]*i+n[5]*r+n[9]*o+n[13]*a,t[2]=n[2]*i+n[6]*r+n[10]*o+n[14]*a,t[3]=n[3]*i+n[7]*r+n[11]*o+n[15]*a,t}},2508:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2],u=n[3],c=u*i+s*o-l*r,d=u*r+l*i-a*o,h=u*o+a*r-s*i,f=-a*i-s*r-l*o;return t[0]=c*u+f*-a+d*-l-h*-s,t[1]=d*u+f*-s+h*-a-c*-l,t[2]=h*u+f*-l+c*-s-d*-a,t[3]=e[3],t}},5616:function(t,e){var n;
|
|
31
|
+
var i=n(5616),r=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;i.htmlPrefilter=function(t){return t.replace(r,"<$1></$2>")},n(7605),t.exports=i.extend({annotationLayer:n(2075),camera:n(3578),choroplethFeature:n(3561),contourFeature:n(6761),domRenderer:n(9726),event:n(6409),feature:n(1275),featureLayer:n(6498),fetchQueue:n(5938),fileReader:n(3084),geo_action:n(8695),graphFeature:n(3187),heatmapFeature:n(9163),imageTile:n(4912),isolineFeature:n(2586),geojsonReader:n(5173),gridFeature:n(2499),layer:n(5156),lineFeature:n(9281),map:n(6211),mapInteractor:n(7908),markerFeature:n(2225),meshFeature:n(6124),object:n(1338),osmLayer:n(4880),pathFeature:n(2266),pointFeature:n(7541),polygonFeature:n(6645),quadFeature:n(3842),pixelmapFeature:n(7761),pixelmapLayer:n(534),renderer:n(2274),sceneObject:n(5402),textFeature:n(6546),tile:n(5289),tileCache:n(9123),tileLayer:n(9264),timestamp:n(77),trackFeature:n(338),transform:n(5325),typedef:n(3170),vectorFeature:n(6858),inherit:n(4626),version:n(4081),sha:n(9079),annotation:n(4655),util:n(642),jQuery:i,canvas:n(8074),svg:n(6488),vtkjs:n(394),webgl:n(8635),gui:n(4812),vgl:n(1611)},n(1098)),window&&!window.$&&(window.$=i),window&&!window.jQuery&&(window.jQuery=i),window&&!window.geojsMap&&(window.geojsMap=function(){var t=i(".geojs-map").map((function(t,e){return i(e).data("data-geojs-map")}));return 0===t.length?void 0:1===t.length?t[0]:t})},4626:function(t){t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},2586:function(t,e,n){var i=n(4626),r=n(6124),o=n(1098),a=n(642),s={17:[{l0:1,h0:2,l1:0,h1:2}],18:[{l0:0,h0:1,l1:2,h1:1}],20:[{l0:2,h0:0,l1:1,h1:0}],22:[{l0:2,h0:0,l1:2,h1:1}],21:[{l0:1,h0:2,l1:1,h1:0}],19:[{l0:0,h0:1,l1:0,h1:2}],1:[{l0:2,h0:3,l1:1,h1:3}],2:[{l0:0,h0:2,l1:3,h1:2}],4:[{l0:3,h0:1,l1:0,h1:1}],8:[{l0:1,h0:0,l1:2,h1:0}],14:[{l0:3,h0:1,l1:3,h1:2}],13:[{l0:2,h0:3,l1:2,h1:0}],11:[{l0:1,h0:0,l1:1,h1:3}],7:[{l0:0,h0:2,l1:0,h1:1}],3:[{l0:0,h0:2,l1:1,h1:3}],10:[{l0:1,h0:0,l1:3,h1:2}],12:[{l0:3,h0:1,l1:2,h1:0}],5:[{l0:2,h0:3,l1:0,h1:1}],6:[{l0:0,h0:2,l1:0,h1:1},{l0:3,h0:1,l1:3,h1:2}],9:[{l0:1,h0:0,l1:1,h1:3},{l0:2,h0:3,l1:2,h1:0}]},l=function(t){"use strict";if(!(this instanceof l))return new l(t);var e=n(5616),i=n(5325),u=n(6409),c=n(6546);t=t||{},r.call(this,t);var d,h,f,p,m,g=this,y=this.draw,v=this._exit,x=this._init,_=this.modified,b=this._update;return this.featureType="isoline",this.contour=g.mesh,this.isoline=g.mesh,this._createIsolines=function(){var t,e=g.style.get("value"),n=void 0!==g.style("used")?g.style.get("used"):function(t,n){return a.isNonNullFinite(e(t,n))},i=!1,r=[],o=g._createMesh({used:n,value:e});return(t=g._getValueList(o)).length?(t.forEach((function(t){var e=g._isolinesForValue(o,t);e.length&&(r=r.concat(e),i=i||!!t.label)})),{lines:r,mesh:o,values:t,hasLabels:i}):{}},this._getValueList=function(t){var e,n,i,r,o,s,l,u=g.isoline,c=u.get("values")(t),d=u.get("spacing")(t),h=u.get("count")(t),f=u.get("autofit")(t),p=u.get("levels")(t);if(!t.numVertices||!t.numElements)return[];if(e=a.getMinMaxValues(t.value,u.get("min")(t),u.get("max")(t),!0),t.minValue=e.min,t.maxValue=e.max,(n=t.maxValue-t.minValue)<=0)return[];if(Array.isArray(c))c=(c=c.map((function(t,e){return{value:void 0!==t.value?t.value:t,position:e,level:t.level}}))).filter((function(e){return e.value>=t.minValue&&e.value<=t.maxValue}));else if(d||f)for(d||(i=n/(2*h/3),o=Math.floor(Math.log10(i)),s=Math.max(0,-o),d=(i=(i/=r=Math.pow(10,o))>=5?5:i>=2?2:1)*r),c=[],l=Math.ceil(t.minValue/d);l<=Math.floor(t.maxValue/d);l+=1)c.push({value:l*d,position:l,fixedDigits:s});else for(c=Array(h),l=0;l<h;l+=1)c[l]={value:t.minValue+n*(l+1)/(h+1),position:l+1};return p.length&&c.forEach((function(t,e){if(void 0===t.level){t.level=0;for(var n=0,i=p[0];n<p.length&&!(t.position%i);i*=p[n+=1])t.level=n+1}if(u.get("label")(t,t.position)){var r=u.get("labelText")(t,t.position);void 0===r&&(r=void 0!==t.fixedDigits?""+parseFloat(t.value.toFixed(t.fixedDigits)):""+t.value),r&&(t.label=r)}})),c},this._addSegment=function(t,e,n){var i,r,o,a,s,l,u=[e,n],c=t.length;for(t.push(u),r=0;r<2;r+=1){for(i=c-1;i>=0;i-=1){if(a=(o=t[i])[0],s=o[o.length-1],n[0]===a[0]&&n[1]===a[1])l=u.concat(o.slice(1));else{if(e[0]!==s[0]||e[1]!==s[1])continue;l=o.concat(u.slice(1))}t.splice(c,1),t[i]=u=l,c=i,e=u[0],n=u[u.length-1];break}if(i<0)break}return t},this._chainVertex=function(t,e,n){var i=n[0],r=n[1],o=3*i,a=3*r,s=(e.value-t.value[i])/(t.value[r]-t.value[i]),l=1-s;return{x:t.pos[o]*l+t.pos[a]*s,y:t.pos[o+1]*l+t.pos[a+1]*s,z:t.pos[o+2]*l+t.pos[a+2]*s}},this._isolinesForValue=function(t,e){var n,i,r,o,a=e.value,l=Array(t.value.length),u=[];for(n=l.length-1;n>=0;n-=1)l[n]=t.value[n]<=a?0:1;var c=t.verticesPerElement,d="square"===t.shape,h=t.elements,f=h.length;for(i=0;i<f;i+=c){if(d){if(0===(r=8*l[h[i]]+4*l[h[i+1]]+2*l[h[i+2]]+l[h[i+3]])||15===r)continue}else if(16===(r=16+4*l[h[i]]+2*l[h[i+1]]+l[h[i+2]])||23===r)continue;s[r].forEach((function(t){u=g._addSegment(u,[h[i+t.l0],h[i+t.h0]],[h[i+t.l1],h[i+t.h1]])}))}return o=u.map((function(n){var i=[];return n.forEach((function(n){var r=g._chainVertex(t,e,n);i.length&&r.x===i[i.length-1].x&&r.y===i[i.length-1].y||i.push(r)})),i.closed=i[0].x===i[i.length-1].x&&i[0].y===i[i.length-1].y,i.value=e.value,i.level=e.level,i.position=e.position,i.label=e.label,i})).filter((function(t){return t.length>1})),o},this.modified=function(){var t=_();return f&&f.modified(),m&&m.modified(),t},this.labelPositions=function(){if(g.dataTime().timestamp()>=g.buildTime().timestamp()&&g._build(),h=null,!m)return g;if(!(d&&d.hasLabels&&d.lines&&d.lines.length))return m.data([]),g;var t=g.isoline,e=t.get("labelSpacing"),n=t.get("labelOffset"),r=t.get("labelViewport")(d.mesh),o=g.gcs(),s=g.layer().map(),l=s.gcs(),u=s.rotation(),c=s.size(),f=[],p=0;return d.lines.forEach((function(t,d){if(t.label){var h,m,g,y,v,x,_,b,w,M,A,T=e(t.value,t.value.position),C=n(t.value,t.value.position)||0,E=s.gcsToDisplay(t,o),k=0;if(!(T<=0||isNaN(T))&&(p=Math.max(T,p),C=C+.5-Math.floor(C+.5),h=E.map((function(e,n){if(!t.closed&&n+1===E.length)return 0;var i=Math.sqrt(a.distance2dSquared(e,E[n+1<E.length?n+1:0]));return k+=i,i})),m=Math.floor(k/T)))for(A=i.transformCoordinates(o,l,t),y=(g=k/m)*C,v=0,x=0;x<E.length;x+=1){for(;v+h[x]>=y;)_=x+1===E.length?0:x+1,w=1-(b=(y-v)/h[x]),y+=g,r>0&&((M={x:E[x].x*w+E[_].x*b,y:E[x].y*w+E[_].y*b}).x<-r||M.x>c.width+r||M.y<-r||M.y>c.height+r)||f.push({x:A[x].x*w+A[_].x*b,y:A[x].y*w+A[_].y*b,z:A[x].z*w+A[_].z*b,line:t,rotation:Math.atan2(E[x].y-E[_].y,E[x].x-E[_].x)-u});v+=h[x]}}})),m.gcs(l),m.data(f),m.style("renderThreshold",2*p),h={zoom:s.zoom(),center:s.center(),rotation:u,size:c,labelViewport:r,maxSpacing:p,labelAutoUpdate:t.get("labelAutoUpdate")(d.mesh)},g},this.lastLabelPositions=function(){return e.extend({},h)},this._updateLabelPositions=function(){var t=h;if(!t||!t.labelAutoUpdate)return g;var e=g.layer().map(),n=e.zoom(),i=e.size(),r=!!(Math.abs(n-t.zoom)>=2);if(!r&&t.labelViewport>0){var o=Math.sqrt(a.distance2dSquared(e.gcsToDisplay(e.center()),e.gcsToDisplay(t.center)))*Math.pow(2,t.zoom-n),s=t.labelViewport/2-2*t.maxSpacing-Math.max(i.width-t.size.width,i.height-t.size.height,0);r=r||o>=s}return r&&g.labelPositions().draw(),g},this._build=function(){if((d=g._createIsolines())&&d.lines&&d.lines.length){f||(f=g.layer().createFeature("line",{selectionAPI:!1,gcs:g.gcs(),visible:g.visible(void 0,!0),style:{closed:function(t){return t.closed}}}),g.dependentFeatures([f]));var t=g.style();if(f.data(d.lines).style({antialiasing:t.antialiasing,lineCap:t.lineCap,lineJoin:t.lineJoin,miterLimit:t.miterLimit,strokeWidth:t.strokeWidth,strokeStyle:t.strokeStyle,strokeColor:t.strokeColor,strokeOffset:t.strokeOffset,strokeOpacity:t.strokeOpacity}),d.hasLabels){if(!m){if(!(o.registries.features[g.layer().rendererName()]||{}).text){var e=o.rendererForFeatures(["text"]);p=o.createLayer("feature",g.layer().map(),{renderer:e}),g.layer().addChild(p),g.layer().node().append(p.node())}m=(p||g.layer()).createFeature("text",{selectionAPI:!1,gcs:g.gcs(),visible:g.visible(void 0,!0),style:{text:function(t){return t.line.label}}}).geoOn(u.pan,g._updateLabelPositions)}c.usedStyles.forEach((function(e){"visible"!==e&&m.style(e,t[e])})),g.dependentFeatures([f,m])}}else f&&f.data([]);return g.buildTime().modified(),g.labelPositions(),g},this._update=function(){return b.call(g),(g.dataTime().timestamp()>=g.buildTime().timestamp()||g.updateTime().timestamp()<=g.timestamp())&&g._build(),g.updateTime().modified(),g},this.draw=function(){var t=y();return f&&f.draw(),m&&m.draw(),t},this._exit=function(){m&&((p||g.layer())&&(p||g.layer()).deleteFeature(m),p&&g.layer()&&g.layer().removeChild(p)),f&&g.layer()&&g.layer().deleteFeature(f),m=null,p=null,f=null,g.dependentFeatures([]),v()},this._init=function(t){t=t||{},x.call(g,t);var n=e.extend({},{opacity:1,value:function(t,e){return g.position()(t,e).z},rotateWithMap:!0,rotation:l.rotationFunction(),strokeWidth:function(t,e,n,i){return n.level+.5},strokeColor:{r:0,g:0,b:0},textStrokeColor:{r:1,g:1,b:1,a:.75},textStrokeWidth:2,fontSize:"12px"},void 0===t.style?{}:t.style);g.style(n),g.isoline(e.extend({},{count:15,autofit:!0,levels:[5,5],label:function(t){return t.level>=1},labelSpacing:200,labelViewport:1e4,labelAutoUpdate:!0},t.mesh||{},t.contour||{},t.isoline||{})),(t.mesh||t.contour||t.isoline)&&g.dataTime().modified()},this};l.rotationFunction=function(t,e){var n={higher:function(t){return t.rotation},lower:function(t){return t.rotation+Math.PI},map:function(t){var e=t.rotation,n=a.wrapAngle(e,!0);return(n>Math.PI/2||n<-Math.PI/2)&&(e+=Math.PI),e},screen:function(t){var n=t.rotation,i=a.wrapAngle(n+e.rotation(),!0);return(i>Math.PI/2||i<-Math.PI/2)&&(n+=Math.PI),n}};return n[t]||n.higher},i(l,r),t.exports=l},5156:function(t,e,n){var i=n(4626),r=n(5402),o=n(1275),a=n(1098).checkRenderer,s=n(1098).rendererForFeatures,l=n(1098).rendererForAnnotations,u=function(t){"use strict";if(!(this instanceof u))return new u(t);t=t||{},r.call(this,t);var e,i=n(5616),o=n(77),c=n(2274),d=n(1098).createRenderer,h=n(1098).adjustLayerForRenderer,f=n(6409),p=this,m=this._exit,g=void 0===t.id?u.newLayerId():t.id,y=void 0===t.name?"":t.name,v=void 0===t.map?null:t.map,x=null,_=void 0===t.canvas?null:t.canvas,b=t.renderer instanceof c?t.renderer:null,w=!1,M=void 0!==t.renderer?t.renderer instanceof c?t.renderer.api():t.renderer:t.annotations?l(t.annotations):s(t.features),A=void 0===t.autoshareRenderer||t.autoshareRenderer,T=o(),C=o(),E=void 0===t.sticky||t.sticky,k=void 0===t.active||t.active,S=void 0===t.opacity?1:t.opacity,O=t.attribution||null,P=void 0===t.visible||t.visible,L=void 0===t.selectionAPI||t.selectionAPI;if(M=a(M),!v)throw new Error("Layers must be initialized on a map.");function R(){return(p.parent()||p.map()).children().filter((function(t){return t instanceof u}))}if(this.rendererName=function(){return M},this.autoshareRenderer=function(){return A},this.zIndex=function(t,n){return void 0===t?e:(n||R().reverse().forEach((function(e){e!==p&&e.zIndex()===t&&e.zIndex(t+1)})),t!==e&&(e=t,x.css("z-index",e),p.geoTrigger(f.layerMove,{layer:p})),p)},this.moveUp=function(t){var e,n,i,r,o=null;for(void 0===t&&(t=1),r=1,t<0&&(r=-1,t=-t),e=R().sort((function(t,e){return r*(t.zIndex()-e.zIndex())})),n=0;n<e.length;n+=1)if(null===o)e[n]===p&&(o=n);else{if(!(n-o<=t))break;i=p.zIndex(),p.zIndex(e[n].zIndex(),!0),e[n].zIndex(i,!0)}return p},this.moveDown=function(t){return void 0===t&&(t=1),p.moveUp(-t)},this.moveToTop=function(){return p.moveUp(R().length-1)},this.moveToBottom=function(){return p.moveDown(R().length-1)},this.sticky=function(){return E},this.active=function(t){return void 0===t?k:(k!==t&&(k=t,x.toggleClass("active",k)),p)},this.node=function(){return x},this.id=function(t){return void 0===t?g:(g=null===t?u.newLayerId():t,p.modified(),p)},this.name=function(t){return void 0===t?y:(y=t,x.attr("id",y),p.modified(),p)},this.map=function(){return v},this.renderer=function(){return b},this._renderer=function(t){return void 0===t?b:(b=t,p)},this.canvas=function(){return _},this._canvas=function(t){return void 0===t?_:(_=t,p)},this.dataTime=function(){return T},this.updateTime=function(){return C},this.initialized=function(t){return void 0!==t?(w=t,p):w},this.toLocal=function(t){return t},this.fromLocal=function(t){return t},this.attribution=function(t){return void 0!==t?(O=t,p.map().updateAttribution(),p):O},this.visible=function(t){return void 0===t?P:(P!==t&&(P=t,x.toggleClass("hidden",!P),p.modified()),p)},this.selectionAPI=function(t){return void 0===t?L:(L!==t&&(L=t),p)},this._init=function(e){if(w)return p;v.node().append(x);var n=i.extend({},t);return delete n.map,b?p._canvas(b.canvas()):null===M?(p._renderer(null),p._canvas(x)):_?p._renderer(d(M,p,_,n)):(p._renderer(d(M,p,void 0,n)),p._canvas(b.canvas())),x.toggleClass("active",p.active()),w=!0,e||(p.geoOn(f.resize,(function(t){p._update({event:t})})),p.geoOn(f.pan,(function(t){p._update({event:t})})),p.geoOn(f.rotate,(function(t){p._update({event:t})})),p.geoOn(f.zoom,(function(t){p._update({event:t})}))),p},this._exit=function(){p.geoOff(),b&&b._exit(),x.off(),x.remove(),t={},p._canvas(null),p._renderer(null),m()},this._update=function(t){return p},this.width=function(){return p.map().size().width},this.height=function(){return p.map().size().height},this.opacity=function(t){return void 0!==t?(S=t,x.css("opacity",S),p):S},(x=i(document.createElement("div"))).addClass("geojs-layer"),x.attr("renderer",M),y&&x.attr("id",y),p.opacity(S),p.visible(P),void 0===t.zIndex){var I=-1;R().forEach((function(t){void 0!==t.zIndex()&&(I=Math.max(I,t.zIndex()))})),t.zIndex=I+1}return p.zIndex(t.zIndex),h("all",p),p};u.newLayerId=function(){"use strict";var t=1;return function(){var e=t;return t+=1,e}}(),u.create=function(t,e){"use strict";if((e=e||{}).type=e.type||"feature",e.renderer=void 0===e.renderer?"webgl":e.renderer,e.renderer=a(e.renderer),!e.renderer)return console.warn("Invalid renderer"),null;var n=t.createLayer(e.type,e);return n?(e.features&&e.features.forEach((function(t){t.data=t.data||e.data,t.feature=o.create(n,t)})),n):(console.warn("Unable to create a layer"),null)},i(u,r),t.exports=u},9281:function(t,e,n){var i=n(4626),r=n(1275),o=n(77),a=n(5325),s=n(642),l=function(t){"use strict";if(!(this instanceof l))return new l(t);var e=n(5616);t=t||{},r.call(this,t);var i,u=this,c=this._init,d=o();return this.featureType="line",this._subfeatureStyles={lineCap:!0,lineJoin:!0,strokeColor:!0,strokeOffset:!0,strokeOpacity:!0,strokeWidth:!0},this.line=function(t){return void 0===t?u.style("line"):(u.style("line",t),u.dataTime().modified(),u.modified(),u)},this.position=function(t){return void 0===t?u.style("position"):(u.style("position",t),u.dataTime().modified(),u.modified(),u)},this._updatePointSearchInfo=function(){if(d.timestamp()>=u.dataTime().timestamp()&&d.timestamp()>=u.timestamp())return i;d.modified(),i=[];for(var t=u.data(),e=u.line(),n=u.style.get("strokeWidth"),r=s.isFunction(u.style("strokeWidth"))?void 0:n(),o=u.position(),l=u.style.get("closed"),c=s.isFunction(u.style("closed"))?void 0:l(),h=u.style.get("uniformLine"),f=s.isFunction(u.style("uniformLine"))?void 0:h(),p=u.gcs(),m=u.layer().map().gcs(),g=a.onlyInvertedY(p,m),y=0;y<t.length;y+=1){for(var v=t[y],x=void 0===c?l(v,y):c,_=void 0,b=void 0,w=void 0,M=void 0,A=void 0,T=void 0,C=void 0,E=void 0,k=[],S=void 0===f?h(v,y):f,O=e(v,y),P=0;P<O.length;P+=1){var L=O[P],R=o(L,P,v,y);g?R={x:R.x,y:-R.y}:p!==m&&(R=a.transformCoordinates(p,m,R)),void 0===T&&(T={x:R.x,y:R.y}),void 0===C&&(C={x:R.x,y:R.y}),R.x<T.x&&(T.x=R.x),R.x>C.x&&(C.x=R.x),R.y<T.y&&(T.y=R.y),R.y>C.y&&(C.y=R.y),S&&P||(E=void 0===r?n(L,P,v,y):r);var I=Math.ceil(E/2)+2;(void 0===C.r||I>C.r)&&(C.r=I);var D=I*I;_&&k.push({u:R,v:_,r:w>I?w:I,r2:M>D?M:D,i:P,j:b}),_=R,b=P,w=I,M=D,!A&&x&&(A={p:R,r:I,r2:D,i:P})}x&&A&&(_.x!==A.p.x||_.y!==A.p.y)&&k.push({u:_,v:A.p,r:w>A.r?w:A.r,r2:M>A.r2?M:A.r2,i:b,j:A.i}),k.min=T,k.max=C,i.push(k)}return i},this.pointSearch=function(t,e){var n=u.data(),r=[],o=[],l={};if(!n||!n.length||!u.layer())return{found:o,index:r,extra:l};u._updatePointSearchInfo();var c=u.layer().map();e=null===e?c.gcs():void 0===e?c.ingcs():e;var d,h,f,p,m=c.unitsPerPixel(c.zoom()),g=m*m,y=a.transformCoordinates(e,c.gcs(),t),v=u.style.get("strokeWidth"),x=u.style.get("strokeOpacity"),_=u.line();for(h=0;h<i.length;h+=1)for(p=i[h],d=null,f=0;f<p.length;f+=1)if(s.distance2dToLineSquared(y,p[f].u,p[f].v)<=p[f].r2*g&&(d||(d=_(n[h],h)),(x(d[p[f].i],p[f].i,n[h],h)>0||x(d[p[f].j],p[f].j,n[h],h)>0)&&(v(d[p[f].i],p[f].i,n[h],h)>0||v(d[p[f].j],p[f].j,n[h],h)>0))){o.push(n[h]),r.push(h),l[h]=f;break}return{found:o,index:r,extra:l}},this.polygonSearch=function(t,e,n){var r,o,l=u.data(),c=[],d=[],h={},f=u.layer().map(),p=u.style.get("strokeWidth"),m=u.style.get("strokeOpacity"),g=u.line();if(n=null===n?f.gcs():void 0===n?f.ingcs():n,t.outer||(t={outer:t,inner:[]}),!l||!l.length||t.outer.length<3)return{found:d,index:c,extra:h};(e=e||{}).partial=e.partial||!1,(t={outer:a.transformCoordinates(n,f.gcs(),t.outer),inner:(t.inner||[]).map((function(t){return a.transformCoordinates(n,f.gcs(),t)}))}).outer.forEach((function(t){r||(r={x:t.x,y:t.y},o={x:t.x,y:t.y}),t.x<r.x&&(r.x=t.x),t.x>o.x&&(o.x=t.x),t.y<r.y&&(r.y=t.y),t.y>o.y&&(o.y=t.y)})),u._updatePointSearchInfo();var y,v,x,_,b,w,M=f.unitsPerPixel(f.zoom());for(y=0;y<i.length;y+=1)if(!(!(x=i[y]).max||x.max.x<r.x-x.max.r*M||x.min.x>o.x+x.max.r*M||x.max.y<r.y-x.max.r*M||x.min.y>o.y+x.max.r*M)){var A=void 0,T=void 0,C=void 0;for(v=0;v<x.length;v+=1)if(_=x[v].u,b=x[v].v,w=x[v].r,!(_.x<r.x-w*M&&b.x<r.x-w*M||_.x>o.x+w*M&&b.x>o.x+w*M||_.y<r.y-w*M&&b.y<r.y-w*M||_.y>o.y+w*M&&b.y>o.y+w*M||(C||(C=g(l[y],y)),m(C[x[v].i],x[v].i,l[y],y)<=0&&m(C[x[v].j],x[v].j,l[y],y)<=0||p(C[x[v].i],x[v].i,l[y],y)<=0&&p(C[x[v].j],x[v].j,l[y],y)<=0))){var E=s.distanceToPolygon2d(_,t),k=s.distanceToPolygon2d(b,t);if(E>-w*M&&E<w*M||k>-w*M&&k<w&M||E*k<0){T=!0;break}if(s.crossedLineSegmentPolygon2d(_,b,t)){T=!0;break}for(var S=w*w*M*M,O=0;O<t.outer.length&&!T;O+=1)T=s.distance2dToLineSquared(t.outer[O],_,b)<S;for(var P=0;P<t.inner.length&&!T;P+=1)for(var L=0;L<t.inner[P].length&&!T;L+=1)T=s.distance2dToLineSquared(t.inner[P][L],_,b)<S;if(T)break;E>0&&(A=!0)}(!e.partial&&A&&!T||e.partial&&(A||T))&&(c.push(y),d.push(l[y]),h[y]={partial:T,segment:v<i[y].length?v:0})}return{found:d,index:c,extra:h}},this.rdpSimplifyData=function(t,e,n,i){t=t||u.data(),n=n||u.style.get("position"),i=i||u.style.get("line");var r=u.layer().map(),o=r.gcs(),l=u.gcs(),c=u.style.get("closed");return void 0===e&&(e=.5*r.unitsPerPixel(r.zoom())),t=t.map((function(t,r){var u=i(t,r),d=a.transformCoordinates(l,o,u.map((function(e,i){return n(e,i,t,r)}))),h=s.rdpLineSimplify(d,e,c(t,r),[]);for(var f in(h.length<2||2===h.length&&s.distance2dSquared(h[0],h[1])<e*e)&&(h=[]),h=a.transformCoordinates(o,l,h),t)!t.hasOwnProperty(f)||Array.isArray(t)&&f>=0&&f<t.length||(h[f]=t[f]);return h})),u.style("position",s.identityFunction),u.style("line",s.identityFunction),u.data(t),u},this._init=function(t){t=t||{},c.call(u,t);var n=e.extend({},{strokeWidth:1,strokeColor:{r:1,g:.8431372549,b:0},strokeStyle:"solid",strokeOpacity:1,antialiasing:2,closed:!1,line:s.identityFunction,position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t},origin:function(t){return t.length>=3?t.slice(0,3):[0,0,0]}},void 0===t.style?{}:t.style);return void 0!==t.line&&(n.line=t.line),void 0!==t.position&&(n.position=t.position),u.style(n),u.dataTime().modified(),u},this._init(t),this};l.create=function(t,e){"use strict";return(e=e||{}).type="line",r.create(t,e)},l.capabilities={feature:"line",basic:"line.basic",multicolor:"line.multicolor"},i(l,r),t.exports=l},6211:function(t,e,n){var i=n(5616),r=n(4626),o=n(5402),a=function(t){"use strict";if(!(this instanceof a))return new a(t);if(void 0===(t=t||{}).node||null===t.node)return console.warn("map creation requires a node"),this;o.call(this,t);var e,r,s,l,u,c=n(3578),d=n(5325),h=n(642),f=n(1098),p=n(6409),m=n(7908),g=n(4231),y=this,v=this._exit,x=i(t.node),_=t.width||x.width()||512,b=t.height||x.height()||512,w=void 0===t.gcs?"EPSG:3857":t.gcs,M=void 0===t.ingcs?"EPSG:4326":t.ingcs,A={x:0,y:0},T=void 0===t.zoom?4:t.zoom,C=t.rotation?t.rotation:0,E=null,k=null,S={min:0,max:16,origMin:0},O=null,P=null,L=!!t.discreteZoom,R="function"==typeof t.allowRotation?t.allowRotation:void 0===t.allowRotation||!!t.allowRotation,I=t.maxBounds||{},D=t.camera||c(),F=t.animationQueue||[],j=void 0===t.autoResize||t.autoResize,B=t.autoshareRenderer,N=((I.left||0)+(I.right||0))/2,z=((I.bottom||0)+(I.top||0))/2;function V(){var t;void 0!==document.hidden?t="hidden":void 0!==document.msHidden?t="msHidden":void 0!==document.webkitHidden&&(t="webkitHidden"),y.geoTrigger(document[t]?p.hidden:p.unhidden)}function G(t){var e;void 0!==document.hidden?e="visibilitychange":void 0!==document.msHidden?e="msvisibilitychange":void 0!==document.webkitHidden&&(e="webkitvisibilitychange"),document.removeEventListener(e,V),!1!==t&&document.addEventListener(e,V)}function q(t,e){var n=t.zIndex(),i=e.zIndex();if(n!==i)return n-i;var r=t.node()[0],o=e.node()[0],a=r&&r.parentNode,s=o&&o.parentNode;if(a&&s&&a===s){var l=Array.from(a.children),u=l.indexOf(r),c=l.indexOf(o);if(u>=0&&c>=0)return u-c}return a?-1:s?1:0}function U(t,e,n,i,r){t.globalAlpha=e,r&&(t.globalCompositeOperation=r);var o=n.css("transform");o&&"matrix("===o.substr(0,7)?t.setTransform.apply(t,o.substr(7,o.length-8).split(",").map(parseFloat)):t.setTransform(1,0,0,1,0,0),t.drawImage(i,0,0),t.globalCompositeOperation="source-over"}function H(){for(var t=F.splice(0,F.length),e=1;e<t.length;e+=1)try{t[e].apply(y,arguments)}catch(t){console.error(t)}}function W(t,e,n){var i=e.width/2,r=e.height/2,o=Math.sin(n),a=Math.cos(n),s={},l={},u={},c={};return s.x=t.x+-i*a- -r*o,s.y=t.y+-i*o+-r*a,l.x=t.x+i*a- -r*o,l.y=t.y+i*o+-r*a,u.x=t.x+-i*a-r*o,u.y=t.y+-i*o+r*a,c.x=t.x+i*a-r*o,c.y=t.y+i*o+r*a,{left:Math.min(s.x,l.x,u.x,c.x),right:Math.max(s.x,l.x,u.x,c.x),bottom:Math.min(s.y,l.y,u.y,c.y),top:Math.max(s.y,l.y,u.y,c.y)}}function X(t,n){void 0===n&&(n=C),t=function(t,e){return e&&(t=W({x:(t.left+t.right)/2,y:(t.top+t.bottom)/2},{width:Math.abs(t.left-t.right),height:Math.abs(t.top-t.bottom)},e)),t}(t,n);var i=function(t){var e,n,i=t.right-t.left,r=t.top-t.bottom,o=Math.abs(i/r),a=_/b;return o>a?(e=1,n=o/a):(n=1,e=a/o),{x:e,y:n}}(t);return i.y>i.x?-Math.log2(Math.abs(t.right-t.left)*i.x/(_*e)):-Math.log2(Math.abs(t.top-t.bottom)*i.y/(b*e))}function K(){S.min=l?Math.max(S.origMin,X(I)):S.origMin}function Q(t,e,n){if(!R)return 0;if(e||"function"!=typeof R||(t=R(t)),!n){var i=2*Math.PI;t=t%i+(t>=0?0:i),Math.min(Math.abs(t),Math.abs(t-i))<1e-5&&(t=0)}return t}function Z(t,e,n,o){if(!r&&!s)return t;var a,l,u=I;if(e){u=i.extend({},I);var c,d,h=Math.abs(t.right-t.left),f=Math.abs(t.top-t.bottom),p=Math.abs(Math.sin(e)),m=Math.abs(Math.cos(e));if(t.width&&t.height)c=t.width,d=t.height;else if(Math.abs(p-m)<5e-4)if(_&&b){var g=Math.abs(_/b),y=Math.pow(1+Math.pow(g,2),.5);d=(c=Math.max(h,f)/y)*g}else c=h*m,d=f*p;else c=(m*h-p*f)/(m*m-p*p),d=(m*f-p*h)/(m*m-p*p);var v=h-Math.max(m*c,p*d),x=f-Math.max(m*d,p*c);u.left-=v,u.right+=v,u.top+=x,u.bottom-=x}return o&&(u={left:u.left-(t.right-t.left)/2,right:u.right+(t.right-t.left)/2,top:u.top-(t.bottom-t.top)/2,bottom:u.bottom+(t.bottom-t.top)/2}),r&&(t.right-t.left>u.right-u.left?a=u.left-(t.right-t.left-(u.right-u.left))/2-t.left:t.left<u.left?a=u.left-t.left:t.right>u.right&&(a=u.right-t.right),a&&(!n||n.x*a>0)&&(n&&Math.abs(a)>Math.abs(n.x*n.unit)&&(a=Math.abs(n.x*n.unit)*a/Math.abs(a)),t={left:t.left+=a,right:t.right+=a,top:t.top,bottom:t.bottom})),s&&(t.top-t.bottom>u.top-u.bottom?l=u.bottom-(t.top-t.bottom-(u.top-u.bottom))/2-t.bottom:t.top>u.top?l=u.top-t.top:t.bottom<u.bottom&&(l=u.bottom-t.bottom),l&&(!n||-n.y*l>0)&&(n&&Math.abs(l)>Math.abs(n.y*n.unit)&&(l=Math.abs(n.y*n.unit)*l/Math.abs(l)),t={top:t.top+=l,bottom:t.bottom+=l,left:t.left,right:t.right})),t}function Y(t,e){if(D.rotation=e||0,t.width&&t.height&&e){var n=(t.left+t.right)/2,i=(t.top+t.bottom)/2;D.viewFromCenterSizeRotation({x:n,y:i},t,e)}else D.bounds=t;A={x:(D.bounds.left+D.bounds.right)/2,y:(D.bounds.top+D.bounds.bottom)/2}}function J(){y.size({width:x.width(),height:x.height()})}return I.left=d.transformCoordinates(I.gcs||M,w,{x:void 0!==I.left?I.left:-180,y:z}).x,I.right=d.transformCoordinates(I.gcs||M,w,{x:void 0!==I.right?I.right:180,y:z}).x,I.top=void 0!==I.top?d.transformCoordinates(I.gcs||M,w,{x:N,y:I.top}).y:I.right,I.bottom=void 0!==I.bottom?d.transformCoordinates(I.gcs||M,w,{x:N,y:I.bottom}).y:I.left,e=t.unitsPerPixel||(I.right-I.left)/256,D.viewport={width:_,height:b,left:x.offset().left,top:x.offset().top},t.center=h.normalizeCoordinates(t.center),r=void 0!==t.clampBoundsX&&t.clampBoundsX,s=void 0===t.clampBoundsY||t.clampBoundsY,l=void 0===t.clampZoom||t.clampZoom,this.unitsPerPixel=function(t,n){return t=t||0,n?(e=Math.pow(2,t)*n,y.draw(),y):Math.pow(2,-t)*e},this.animationQueue=function(t){if(void 0===t)return F;if(t!==F){if(F.length){t.length&&t[0]!==F[0]&&window.cancelAnimationFrame(F[0]);for(var e=t.length?1:0;e<F.length;e+=1)t.push(F[e])}F=t}return y},this.autoResize=function(t){return void 0===t?j:(t!==j&&(i(window).off("resize",J),(j=t)&&i(window).on("resize",J)),y)},this.clampBoundsX=function(t){return void 0===t?r:(t!==r&&(r=!!t,y.pan({x:0,y:0})),y)},this.clampBoundsY=function(t){return void 0===t?s:(t!==s&&(s=!!t,y.pan({x:0,y:0})),y)},this.clampZoom=function(t){return void 0===t?l:(t!==l&&(l=!!t,K(),y.zoom(T)),y)},this.allowRotation=function(t){return void 0===t?R:("function"!=typeof t&&(t=!!t),t!==R&&(R=t,y.rotation(C)),y)},this.origin=function(){return i.extend({},u)},this.camera=function(){return D},this.gcs=function(t){if(void 0===t)return w;if(t!==w){var e=y.center(void 0,void 0);w=t,K();var n=y._fix_zoom(T);n!==T&&y.zoom(n),y.center(e,void 0)}return y},this.ingcs=function(t){return void 0===t?M:(M=t,y)},this.node=function(){return x},this.zoom=function(t,e,n,i){if(void 0===t)return T;var r,o,a=e&&(e.mapgcs||e.geo)&&e.map;if(a&&(i=!0),(t=y._fix_zoom(t,n))===T)return y;if(T=t,o=y.boundsFromZoomAndCenter(t,A,C,null,n,i),y.modified(),Y(o,C),r={zoomLevel:T,screenPosition:e?e.map:void 0},y.geoTrigger(p.zoom,r),a){var s=y.gcsToDisplay(e.mapgcs||e.geo,e.mapgcs?null:void 0);y.pan({x:e.map.x-s.x,y:e.map.y-s.y},n,!0)}else y.pan({x:0,y:0},n,i);return y},this.pan=function(t,e,n){var i={screenDelta:t};if(t.x||t.y){var r=y.unitsPerPixel(T),o=Math.sin(C),a=Math.cos(C);D.pan({x:(t.x*a- -t.y*o)*r,y:(t.x*o+-t.y*a)*r})}var s=D.bounds;if((s=Z(s,C,"limited"===n?{x:t.x,y:t.y,unit:r}:void 0,!0===n))!==D.bounds){var l=y.gcsToDisplay({x:D.bounds.left,y:D.bounds.top},null);Y(s=y.boundsFromZoomAndCenter(T,{x:(s.left+s.right)/2,y:(s.top+s.bottom)/2},C,null,e,!0),C);var u=y.gcsToDisplay({x:D.bounds.left,y:D.bounds.top},null);i.screenDelta.x+=u.x-l.x,i.screenDelta.y+=u.y-l.y}return A=D.displayToWorld({x:_/2,y:b/2}),y.geoTrigger(p.pan,i),y.modified(),y},this.rotation=function(t,e,n){if(void 0===t)return C;var i=e&&e.geo&&e.map;if((t=Q(t,n))===C)return y;C=t;var r=y.boundsFromZoomAndCenter(T,A,C,null,n,!0);y.modified(),Y(r,C);var o={rotation:C,screenPosition:e?e.map:void 0};if(y.geoTrigger(p.rotate,o),i){var a=y.gcsToDisplay(e.geo);y.pan({x:e.map.x-a.x,y:e.map.y-a.y},void 0,!0)}else y.pan({x:0,y:0},void 0,!0);return K(),y.zoom(T,void 0,n),y},this.center=function(t,e,n,r){var o;return void 0===t?o=i.extend({},y.worldToGcs(A,e)):(o=y.gcsToWorld(t,e),Y(y.boundsFromZoomAndCenter(T,o,C,null,n,r),C),y.modified(),y.geoTrigger(p.pan,{screenDelta:{x:0,y:0}}),y)},this.createLayer=function(t,e){e=e||{},void 0!==y.autoshareRenderer()&&(e=Object.assign({autoshareRenderer:y.autoshareRenderer()},e));var n=f.createLayer(t,y,e);return n&&(y.addChild(n),y.children().forEach((function(t){t instanceof g&&t.moveToTop()})),n._update(),y.modified(),y.geoTrigger(p.layerAdd,{target:y,layer:n})),n},this.deleteLayer=function(t){return null!=t&&(t._exit(),y.removeChild(t),y.modified(),y.geoTrigger(p.layerRemove,{target:y,layer:t})),t},this.size=function(t){if(void 0===t)return{width:_,height:b};var e=y.center();_=t.width||_,b=t.height||b,K();var n=y._fix_zoom(T);return n!==T&&y.zoom(n),y.camera().viewport={width:_,height:b,left:x.offset().left,top:x.offset().top},y.center(e),y.geoTrigger(p.resize,{target:y,width:_,height:b}),y.modified(),y},this.rotatedSize=function(){if(!this.rotation())return{width:_,height:b};var t=W({x:0,y:0},{width:_,height:b},y.rotation());return{width:Math.abs(t.right-t.left),height:Math.abs(t.top-t.bottom)}},this.gcsToWorld=function(t,e){return Array.isArray(t)?t.map((function(t){return y.gcsToWorld(t,e)})):((e=null===e?w:void 0===e?M:e)!==w&&(t=d.transformCoordinates(e,w,t)),u.x||u.y||u.z?t=d.affineForward({origin:u},[t])[0]:"z"in t||(t={x:t.x,y:t.y,z:0}),t)},this.worldToGcs=function(t,e){return Array.isArray(t)?t.map((function(t){return y.worldToGcs(t,e)})):(u.x||u.y||u.z?t=d.affineInverse({origin:u},[t])[0]:"z"in t||(t={x:t.x,y:t.y,z:0}),(e=null===e?w:void 0===e?M:e)!==w&&(t=d.transformCoordinates(w,e,t)),t)},this.gcsToDisplay=function(t,e){return t=y.gcsToWorld(t,e),y.worldToDisplay(t)},this.worldToDisplay=function(t){return Array.isArray(t)?t.map((function(t){return D.worldToDisplay(t)})):D.worldToDisplay(t)},this.displayToGcs=function(t,e){return t=y.displayToWorld(t),y.worldToGcs(t,e)},this.displayToWorld=function(t){return Array.isArray(t)?t.map((function(t){return D.displayToWorld(t)})):D.displayToWorld(t)},this.draw=function(){var t,e=y.children();for(y.geoTrigger(p.draw,{target:y}),y._update(),t=0;t<e.length;t+=1)e[t].draw();return y.geoTrigger(p.drawEnd,{target:y}),y},this.fileReader=function(t,e){return void 0===t?E:("string"==typeof t?((e=e||{}).layer||(e.layer=y.createLayer("feature",i.extend({},e))),e.renderer=e.layer.renderer().api(),E=f.createFileReader(t,e)):E=t,y)},this._init=function(t){if(null==x)throw new Error("Map require DIV node");return x.data("data-geojs-map")&&i.isFunction(x.data("data-geojs-map").exit)&&x.data("data-geojs-map").exit(),x.addClass("geojs-map"),x.data("data-geojs-map",y),G(),y},this._update=function(t){var e,n=y.children();for(e=0;e<n.length;e+=1)n[e]._update(t);return y},this.exit=function(){G(!1);var t,e=y.children();for(t=e.length-1;t>=0;t-=1)e[t]._exit(),y.removeChild(e[t]);y.interactor()&&(y.interactor().destroy(),y.interactor(null)),F=[],y.node().data("data-geojs-map",null),y.node().off(".geo"),y.node().empty(),i(window).off("resize",J),v()},this.interactor=function(t){return void 0===t?k:(k&&k!==t&&k.destroy(),(k=t)&&(x.attr("tabindex")||x.attr("tabindex",0),k.map(y)),y)},this.zoomRange=function(t,e){return void 0===t?i.extend({},S):(void 0!==t.max&&(S.max=t.max),void 0!==t.min&&(S.min=S.origMin=t.min),K(),e||y.zoom(T),y)},this.transition=function(t,e,n){if(void 0===t)return O;if(O){var r=i.extend(!0,{},O.end);return r.center&&w!==M&&(r.center=d.transformCoordinates(w,M,r.center)),P=i.extend({},r||{},P||{},t),y}var o=y.unitsPerPixel(0);function a(t){return Math.pow(2,-(t+1))*o*b}var s={center:void 0,zoom:y.zoom(),rotation:y.rotation(),duration:1e3,ease:function(t){return t},interp:function(t,e){return function(n){var r=[];return i.each(t,(function(i){r.push(function(t,e,n){return t+(e-t)*n}(t[i],e[i],n))})),r}},done:null,zCoord:!0};function l(e){var n=O.done,i=P;if(!0===O.cancel)return y.geoTrigger(p.transitioncancel,t),n&&n({cancel:!0,source:O.cancelSource,transition:O}),O=null,void(P&&(i=P,P=null,y.transition(i,void 0,e)));if(O.start.time||(O.start.time=e,O.end.time=e+t.duration),O.time=e-O.start.time,e>=O.end.time||i){if(!i){if(O.end.center){var r=T!==y._fix_zoom(O.end.zoom)||!1===t.endClamp;y.center(O.end.center,null,r,r)}y.zoom(O.end.zoom,O.zoomOrigin,!1===t.endClamp,!1===t.endClamp),y.rotation(Q(O.end.rotation))}return y.geoTrigger(p.transitionend,t),n&&n({next:!!i}),O=null,void(P&&(i=P,P=null,y.transition(i,void 0,e)))}var a=O.ease((e-O.start.time)/t.duration),s=O.interp(a);O.zCoord&&(s[2]=function(t){return-Math.log2(t/o/b)-1}(s[2])),y._fix_zoom(s[2],!0)===T?y.center({x:s[0],y:s[1]},null,!0,!0):(A=y.gcsToWorld({x:s[0],y:s[1]},null),y.zoom(s[2],O.zoomOrigin,!0,!0)),y.rotation(s[3],void 0,!0),y.scheduleAnimationFrame(l)}return t.center&&(e=null===e?w:void 0===e?M:e,(t=i.extend(!0,{},t)).center=h.normalizeCoordinates(t.center),e!==w&&(t.center=d.transformCoordinates(e,w,t.center))),t=i.extend(!0,{},s,t),(O={start:{center:y.center(void 0,null),zoom:y.zoom(),rotation:y.rotation()},end:{center:t.center,zoom:y._fix_zoom(t.zoom),rotation:Q(t.rotation,void 0,!0)},ease:t.ease,zCoord:t.zCoord,done:t.done,duration:t.duration,zoomOrigin:t.zoomOrigin,endClamp:t.endClamp}).interp=t.interp([O.start.center.x,O.start.center.y,t.zCoord?a(O.start.zoom):O.start.zoom,O.start.rotation],[O.end.center?O.end.center.x:O.start.center.x,O.end.center?O.end.center.y:O.start.center.y,t.zCoord?a(O.end.zoom):O.end.zoom,O.end.rotation]),y.geoTrigger(p.transitionstart,t),p.cancelNavigation?(O=null,y.geoTrigger(p.transitionend,t),y):(p.cancelAnimation?(t.duration=0,l(0)):n?l(n):y.scheduleAnimationFrame(l),y)},this.transitionCancel=function(t){return!(!O||!0===O.cancel&&!P)&&(O.cancel=!0,O.cancelSource=t||O.cancelSource||"",P=null,!0)},this.bounds=function(t,e){var n;if(e=null===e?w:void 0===e?M:e,void 0!==t){if(e!==w){var i=d.transformCoordinates(e,w,[{x:t.left,y:t.top},{x:t.right,y:t.bottom}]);t={left:i[0].x,top:i[0].y,right:i[1].x,bottom:i[1].y}}t=Z(t,C),n=y.zoomAndCenterFromBounds(t,C,null),y.zoom(n.zoom),y.center(n.center,null)}return y.boundsFromZoomAndCenter(T,A,C,e,!0)},this.maxBounds=function(t,e){if(e=null===e?w:void 0===e?M:e,void 0===t)return{left:d.transformCoordinates(w,e,{x:I.left,y:0}).x,right:d.transformCoordinates(w,e,{x:I.right,y:0}).x,bottom:d.transformCoordinates(w,e,{x:0,y:I.bottom}).y,top:d.transformCoordinates(w,e,{x:0,y:I.top}).y};var n=((t.left||0)+(t.right||0))/2,i=((t.bottom||0)+(t.top||0))/2;return void 0!==t.left&&(I.left=d.transformCoordinates(e,w,{x:t.left,y:i}).x),void 0!==t.right&&(I.right=d.transformCoordinates(e,w,{x:t.right,y:i}).x),void 0!==t.bottom&&(I.bottom=d.transformCoordinates(e,w,{x:n,y:t.bottom}).y),void 0!==t.top&&(I.top=d.transformCoordinates(e,w,{x:n,y:t.top}).y),K(),y.zoom(T),y.pan({x:0,y:0}),y},this.zoomAndCenterFromBounds=function(t,e,n){var i,r;if((n=null===n?w:void 0===n?M:n)!==w){var o=d.transformCoordinates(n,w,[{x:t.left,y:t.top},{x:t.right,y:t.bottom}]);t={left:o[0].x,top:o[0].y,right:o[1].x,bottom:o[1].y}}if(t.left>=t.right||t.bottom>=t.top)throw new Error("Invalid bounds provided");return r=y._fix_zoom(X(t,e)),i={x:((t=Z(t,e)).left+t.right)/2-u.x,y:(t.top+t.bottom)/2-u.y},n!==w&&(i=d.transformCoordinates(w,n,i)),{zoom:r,center:i}},this.boundsFromZoomAndCenter=function(t,e,n,i,r,o){var a,s,l,c,h,f;if(i=null===i?w:void 0===i?M:i,t=y._fix_zoom(t,r),f=y.unitsPerPixel(t),e=y.gcsToWorld(e,null),l=(a=_*f)/2,c=(s=b*f)/2,n?(e.x+=u.x,e.y+=u.y,(h=W(e,{width:a,height:s},n)).width=a,h.height=s,h=Z(h,n,void 0,o)):h=Z(h={left:e.x-l+u.x,right:e.x+l+u.x,bottom:e.y-c+u.y,top:e.y+c+u.y},0,void 0,o),i!==w){var p=d.transformCoordinates(w,i,[[h.left,h.top],[h.right,h.bottom]]);h={left:p[0][0],top:p[0][1],right:p[1][0],bottom:p[1][1]}}return h.width=a,h.height=s,h},this.discreteZoom=function(t){return void 0===t?L:(L!==(t=!!t)&&((L=t)&&y.zoom(Math.round(y.zoom())),y.interactor()&&y.interactor().options({discreteZoom:L})),y)},this.layers=this.children,this.sortedLayers=function(){return y.children().sort(q)},this.listSceneObjects=function(t){var e=[];return(t=t||y.sortedLayers()).forEach((function(t){if(e.indexOf(t)<0&&(e.push(t),t.children)){var n=t.children();n.length&&(e=e.concat(y.listSceneObjects(n)))}})),e},this.updateAttribution=function(){y.node().find(".geo-attribution").remove();var t=i("<div/>").addClass("geo-attribution").on("mousedown",(function(t){t.stopPropagation()}));return y.children().forEach((function(e){var n=e.attribution();n&&i("<span/>").addClass("geo-attribution-layer").html(n).appendTo(t)})),i("span",t).length&&t.appendTo(y.node()),y},this.screenshot=function(t,e,n,r){var o;if(!t||Array.isArray(t)||t.renderer||(e=e||t.type,n=n||t.encoderOptions,r=r||t,t=t.layers),(r=r||{}).wait){var a=i.extend({},r,{wait:!1});o=i.Deferred();var s=function(){window.requestAnimationFrame((function(){o.resolve()}))};return"idle"===r.wait?y.onIdle(s):s(),o.then((function(){return y.screenshot(t,e,n,a)}))}o=i.when(),t?Array.isArray(t)||(t=[t]):(t=y.layers(),null!==r.attribution&&void 0!==r.attribution||(r.attribution=!0)),t=(t=t.filter((function(t){return y.layers().indexOf(t)>=0&&t.opacity()>0&&(!t.visible||t.visible())}))).sort(q);var l=document.createElement("canvas");l.width=_,l.height=b;var u=l.getContext("2d");if(!1!==r.background&&null!==r.background){var c=r.background;void 0===r.background&&(u.fillStyle="white",u.fillRect(0,0,l.width,l.height),y.node().parents().get().reverse().forEach((function(t){(c=window.getComputedStyle(t).backgroundColor)&&"transparent"!==c&&(u.fillStyle=c,u.fillRect(0,0,l.width,l.height))})),c=window.getComputedStyle(y.node()[0]).backgroundColor),c&&"transparent"!==c&&(u.fillStyle=c,u.fillRect(0,0,l.width,l.height))}return t.forEach((function(t){var e=t.opacity();t.node().children("canvas").each((function(){var n=i(this);o=o.then((function(){t.renderer()&&"webgl"===t.renderer().api()&&t.renderer()._renderFrame(),U(u,e,n,n[0],t.node().css("mix-blend-mode"))}))})),!t.node().children().not("canvas").length&&t.node().children().length||t.renderer()&&"webgl"===t.renderer().api()||(o=o.then((function(){return h.htmlToImage(t.node(),1).done((function(e){U(u,1,i([]),e,t.node().css("mix-blend-mode"))}))})))})),r.attribution&&y.node().find(".geo-attribution").each((function(){var t=i(this);o=o.then((function(){return h.htmlToImage(t,1).done((function(t){U(u,1,i([]),t)}))}))})),r.html&&i(r.html).each((function(){var t=i(this);o=o.then((function(){return h.htmlToImage(t,1).done((function(e){U(u,1,i([]),e,t.css("mix-blend-mode"))}))}))})),o=o.then((function(){var t=l;if("canvas"!==e)try{l=l.toDataURL(e,n)}catch(t){console.warn("Failed to convert screenshot to output",t);var r=i.Deferred();return r.reject(),r}return y.geoTrigger(p.screenshot.ready,{canvas:t,screenshot:l}),l}))},this.scheduleAnimationFrame=function(t,e){F.length||F.push(window.requestAnimationFrame(H));var n=F.indexOf(t,1);if(n>=0){if(!e)return;if(F.splice(n,1),"remove"===e)return}return F.push(t),F[0]},this._fix_zoom=function(t,e){return t=Math.round(1e6*t)/1e6,t=Math.max(Math.min(S.max,t),S.min),L&&!e&&(t=Math.round(t))<S.min&&(t=Math.ceil(S.min)),t},this.autoshareRenderer=function(t){return void 0===t?B:(B=null===t?void 0:t,y)},this._version=n(4081),this._geo=n(2257),this._init(t),this.node().on("dragover.geo",(function(t){var e=t.originalEvent;y.fileReader()&&(e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy")})).on("drop.geo",(function(t){var e,n,i=t.originalEvent,r=y.fileReader();function o(){y.draw()}if(r)for(i.stopPropagation(),i.preventDefault(),e=0;e<i.dataTransfer.files.length;e+=1)n=i.dataTransfer.files[e],r.canRead(n)&&r.read(n,o)})),u={x:0,y:0},this.zoomRange(t,!0),T=this._fix_zoom(T),C=Q(C),this.center(i.extend({},t.center||A),void 0),null!==t.interactor&&this.interactor(t.interactor||m({discreteZoom:L})),j&&i(window).on("resize",J),y.geoOn([p.layerAdd,p.layerRemove],y.updateAttribution),this};a.create=function(t){"use strict";var e=a(t),i=n(5156);return e&&e.zoom?(t.data=t.data||[],t.layers=t.layers||[],t.layers.forEach((function(n){n.data=n.data||t.data,n.layer=i.create(e,n)})),e):(console.warn("Could not create map."),null)},r(a,o),t.exports=a},7908:function(t,e,n){var i=n(4626),r=n(1338),o=n(642),a=n(7549),s=function(t){"use strict";if(!(this instanceof s))return new s(t);r.call(this);var e,i,l,u,c,d,h,f,p,m,g=n(5616),y=n(6409),v=n(8695),x=n(642).throttle,_=n(642).debounce,b=n(642).actionMatch,w=n(3842),M=this,A=0,T=null,C=!1,E=!1,k=function(){};function S(t){var e=t.x,n=t.y;return Math.sqrt(e*e+n*n)}function O(){d={boundDocumentHandlers:d.boundDocumentHandlers}}function P(t,n){n=n<=0?30:n;var i=function(){var t,n,i,r;if(!e.spring.enabled)return{x:0,y:0};var o=M.map().maxBounds(void 0,null),a=M.map().gcsToDisplay({x:o.left,y:o.top},null),s=M.map().gcsToDisplay({x:o.right,y:o.bottom},null),l=e.spring.springConstant,u=M.map().node().width(),c=M.map().node().height();return t=l*Math.max(0,a.x),n=l*Math.max(0,u-s.x),i=l*Math.max(0,a.y)/2,r=l*Math.max(0,c-s.y)/2,{x:t-n,y:i-r}}(),r=S(t),o=t.x/r,a=t.y/r;return r*=Math.exp(-e.momentum.drag*n),S(i)*n+r<e.momentum.minSpeed?null:(r>0?(o*=r,a*=r):(o=0,a=0),{x:o-i.x*n,y:a-i.y*n})}return e=g.extend(!0,{},{throttle:30,discreteZoom:!1,actions:[{action:v.pan,input:"left",modifiers:{shift:!1,ctrl:!1},owner:"geo.mapInteractor",name:"button pan"},{action:v.zoom,input:"right",modifiers:{shift:!1,ctrl:!1},owner:"geo.mapInteractor",name:"button zoom"},{action:v.zoom,input:"wheel",modifiers:{shift:!1,ctrl:!1},owner:"geo.mapInteractor",name:"wheel zoom"},{action:v.rotate,input:"left",modifiers:{shift:!1,ctrl:!0},owner:"geo.mapInteractor",name:"button rotate"},{action:v.rotate,input:"wheel",modifiers:{shift:!1,ctrl:!0},owner:"geo.mapInteractor",name:"wheel rotate"},{action:v.select,input:"left",modifiers:{shift:!0,ctrl:!0},selectionRectangle:y.select,owner:"geo.mapInteractor",name:"drag select"},{action:v.zoomselect,input:"left",modifiers:{shift:!0,ctrl:!1},selectionRectangle:y.zoomselect,owner:"geo.mapInteractor",name:"drag zoom"},{action:v.unzoomselect,input:"right",modifiers:{shift:!0,ctrl:!1},selectionRectangle:y.unzoomselect,owner:"geo.mapInteractor",name:"drag unzoom"},{action:v.pan,input:"pan",owner:"geo.mapInteractor",name:"touch pan"},{action:v.zoomrotate,input:"rotate",owner:"geo.mapInteractor",name:"touch zoom and rotate"},{action:v.pan,input:"middle",modifiers:{shift:!1,ctrl:!1},owner:"geo.mapInteractor",name:"button pan"}],click:{enabled:!0,buttons:{left:!0,right:!0,middle:!0},duration:0,cancelOnMove:!0},keyboard:{actions:{"zoom.in":["plus","shift+plus","shift+ctrl+plus","=","shift+=","shift+ctrl+="],"zoom.out":["-","shift+-","shift+ctrl+-","_","shift+_","shift+ctrl+_"],"zoom.0":["1"],"zoom.3":["2"],"zoom.6":["3"],"zoom.9":["4"],"zoom.12":["5"],"zoom.15":["6"],"zoom.18":["7"],"pan.left":["left","shift+left","shift+ctrl+left"],"pan.right":["right","shift+right","shift+ctrl+right"],"pan.up":["up","shift+up","shift+ctrl+up"],"pan.down":["down","shift+down","shift+ctrl+down"],"rotate.ccw":["<","shift+<","shift+ctrl+<",".","shift+.","shift+ctrl+."],"rotate.cw":[">","shift+>","shift+ctrl+>",",","shift+,","shift+ctrl+,"],"rotate.0":["0"]},meta:{0:{shift:!1,ctrl:!1},1:{shift:!0,ctrl:!0},2:{shift:!0,ctrl:!1}},metakeyMouseEvents:["shift","ctrl","shift+ctrl","shift+alt","shift+meta"],focusHighlight:!0},alwaysTouch:!1,wheelScaleX:1,wheelScaleY:1,zoomScale:1,rotateWheelScale:6*Math.PI/180,zoomrotateMinimumRotation:5*Math.PI/180,zoomrotateReverseRotation:4*Math.PI/180,zoomrotateMinimumZoom:.05,zoomrotateMinimumPan:5,touchPanDelay:50,momentum:{enabled:!0,maxSpeed:2.5,minSpeed:.01,stopTime:250,drag:.01,actions:[v.pan,v.zoom]},spring:{enabled:!1,springConstant:5e-5},zoomAnimation:{enabled:!0,duration:500,ease:function(t){return(2-t)*t}}},t||{}),t&&t.actions&&(e.actions=g.extend(!0,[],t.actions)),t&&t.momentum&&t.momentum.actions&&(e.momentum.actions=g.extend(!0,[],t.momentum.actions)),t&&t.keyboard&&void 0!==t.keyboard.actions&&(e.keyboard.actions=g.extend(!0,{},t.keyboard.actions)),i={page:{x:0,y:0},map:{x:0,y:0},geo:{x:0,y:0},mapgcs:{x:0,y:0},buttons:{left:!1,right:!1,middle:!1},modifiers:{alt:!1,ctrl:!1,shift:!1,meta:!1},time:new Date,deltaTime:1,velocity:{x:0,y:0}},d={},h={},this._handleKeys=function(t,n,i){i&&!0===i.simulated&&(n=i);var r,o,a=e.keyboard.meta||{0:{}},s=M.map(),l=s.size(),u=t,c="",d={};for(r in a)a.hasOwnProperty(r)&&(void 0!==a[r].shift&&n.shiftKey!==!!a[r].shift||void 0!==a[r].ctrl&&n.ctrlKey!==!!a[r].ctrl||void 0!==a[r].alt&&n.altKey!==!!a[r].alt||void 0!==a[r].meta&&n.metaKey!==!!a[r].meta||(o=r));if(void 0!==o){switch(n.stopPropagation(),n.preventDefault(),t.indexOf(".")>=0&&(u=t.substr(0,t.indexOf(".")),c=t.substr(t.indexOf(".")+1)),u){case"zoom":switch(c){case"in":d.zoomDelta=[.05,.25,1][o];break;case"out":d.zoomDelta=-[.05,.25,1][o];break;default:isNaN(parseFloat(c))||(d.zoom=parseFloat(c))}break;case"pan":switch(c){case"down":d.panY=-Math.max(1,[0,.05,.5][o]*l.height);break;case"left":d.panX=Math.max(1,[0,.05,.5][o]*l.width);break;case"right":d.panX=-Math.max(1,[0,.05,.5][o]*l.width);break;case"up":d.panY=Math.max(1,[0,.05,.5][o]*l.height)}break;case"rotate":switch(c){case"ccw":d.rotationDelta=[1,5,90][o]*Math.PI/180;break;case"cw":d.rotationDelta=-[1,5,90][o]*Math.PI/180;break;default:isNaN(parseFloat(c))||(d.rotation=parseFloat(c))}}s.geoTrigger(y.keyaction,{move:d,action:t,factor:o,event:n}),d.cancel||(void 0!==d.zoom?s.zoom(d.zoom):d.zoomDelta&&s.zoom(s.zoom()+d.zoomDelta),void 0!==d.rotation?s.rotation(d.rotation):d.rotationDelta&&s.rotation(s.rotation()+d.rotationDelta),(d.panX||d.panY)&&s.pan({x:d.panX||0,y:d.panY||0}))}},this.hasTouchSupport=function(){return"ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof window.DocumentTouch||(navigator.msMaxTouchPoints||navigator.maxTouchPoints)>1},this._handleTouch=function(t){var n=!1;if("mouse"===t.pointerType&&c.touchSupport&&(n=!0),"hammer.input"===t.type){if("pan"!==c.lastEventType||1===t.pointers.length)return;n=!0,c.lastEventType=null}var i=/^(.*)(start|end|move|tap)$/.exec(t.type);if(i&&3===i.length||(n=!0),n)d.boundDocumentHandlers&&c.lastEvent&&M._handleMouseUpDocument(c.lastEvent);else{t.which=i[1];var r=(new Date).valueOf();"pan"===t.which&&"pan"!==c.lastEventType&&r-c.lastTime<e.touchPanDelay||(c.lastTime=r,c.lastEventType=t.which,c.lastEvent=t,void 0===t.pageX&&void 0!==t.center&&void 0!==t.center.x&&(t.pageX=t.center.x,t.pageY=t.center.y),"start"===i[2]&&(M._handleMouseDown(t),M._setClickMaybe(!1),d.boundDocumentHandlers&&g(document).on("mousemove.geojs",M._handleMouseUpDocument)),"start"!==i[2]&&"move"!==i[2]||(d.boundDocumentHandlers?M._handleMouseMoveDocument(t):M._handleMouseMove(t)),"end"!==i[2]&&"cancel"!==i[2]||(d.boundDocumentHandlers?M._handleMouseUpDocument(t):M._handleMouseUp(t),c.lastEvent=null),"tap"!==i[2]||d.boundDocumentHandlers||(t.which=1,c.lastEventType=null,M._handleMouseDown(t),M._handleMouseUp(t),c.lastEventType=i[2]))}},this._repeatMouseMoveEvent=function(t){if(i&&i.modifiers){var e=i.modifiers.alt,n=i.modifiers.ctrl,r=i.modifiers.meta,o=i.modifiers.shift;M._getMouseModifiers(t),i.modifiers.alt===e&&i.modifiers.ctrl===n&&i.modifiers.meta===r&&i.modifiers.shift===o||(d.boundDocumentHandlers?M.map().geoTrigger(y.actionmove,{state:M.state(),mouse:M.mouse(),event:t}):M.map().geoTrigger(y.mousemove,M.mouse()))}},this.retriggerMouseMove=function(){M.map().geoTrigger(y.mousemove,M.mouse())},this._connectEvents=function(){if(!e.map)return M;M._disconnectEvents(),f=g(e.map.node()),M._handleMouseWheel=function(){var t={};function n(n){var i,r;C||(t!==h&&(h=t={kind:"wheel",scroll:{x:0,y:0}}),n.preventDefault(),n.deltaFactor=1,1===n.originalEvent.deltaMode?n.deltaFactor=40:2===n.originalEvent.deltaMode&&(n.deltaFactor=g(window).height()),i=n.originalEvent.deltaX||0,r=n.originalEvent.deltaY||0,i=i*e.wheelScaleX*n.deltaFactor/120,r=r*e.wheelScaleY*n.deltaFactor/120,t.scroll.x+=i,t.scroll.y+=r)}function r(n){var r,o;if(t===h){if(M._getMousePosition(n),M._getMouseButton(n),M._getMouseModifiers(n),o=(b({wheel:!0},i.modifiers,e.actions)||{}).action){var a=M.map().transitionCancel("wheel."+o);switch((a|=M.cancel(v.momentum,!0))&&(i.geo=M.map().displayToGcs(i.map),i.mapgcs=M.map().displayToGcs(i.map,null)),o){case v.pan:M.map().pan({x:h.scroll.x,y:h.scroll.y},void 0,"limited");break;case v.zoom:r=-h.scroll.y,k(r,i);break;case v.rotate:M.map().rotation(M.map().rotation()+h.scroll.y*e.rotateWheelScale,i)}M.map().geoTrigger(y.actionwheel,{state:M.state(),mouse:M.mouse(),eventData:n})}h={}}}return e.throttle>0?x(e.throttle,!1,r,n):function(t){n(t),r(t)}}(),k=function(){var t,n,i,r=0,o=400;function a(o,a){var s,l=M.map();t=g.extend(!0,{},a),r+=o,void 0===i&&(n=i=l.zoom()),i+=o,l&&Math.abs(r)>=1&&e.discreteZoom&&!e.zoomAnimation.enabled&&(s=Math.round(r+l.zoom()),r=r+l.zoom()-s,l.zoom(s,t))}function s(){var o,a=M.map();a&&(e.zoomAnimation.enabled?(o=i,e.discreteZoom&&(o=Math.round(o))===n&&i!==n&&(o=n+(i>n?1:-1)),(o=Math.round(1e6*a._fix_zoom(o))/1e6)!==a.zoom()?(a.transitionCancel("debounced_zoom."+v.zoom),a.transition({zoom:o,zoomOrigin:t,duration:e.zoomAnimation.duration,ease:e.zoomAnimation.ease,done:function(t){t=t||{};var n=new RegExp("\\."+v.zoom+"$");t.next||t.cancel&&!((""+t.source).search(n)<0)||(i=void 0),e.discreteZoom&&t.cancel&&t.transition&&t.transition.end&&(""+t.source).search(n)<0&&a.zoom(t.transition.end.zoom,t.transition.end.zoomOrigin)}})):i=void 0):(o=r+a.zoom(),e.discreteZoom&&(o=Math.round(o)),a.zoom(o,t))),r=0}!0!==e.discreteZoom&&e.discreteZoom>0&&(o=e.discreteZoom);return(!0===e.discreteZoom||e.discreteZoom>0)&&!e.zoomAnimation.enabled?_(o,!1,s,a):function(t,e){(t||void 0!==i)&&(a(t,e),s())}}(),o.adjustActions(e.actions);var t={};if(["right","pan","rotate"].forEach((function(n){t[n]=e.actions.some((function(t){return t.input[n]}))})),f.on("wheel.geojs",M._handleMouseWheel),f.on("mousemove.geojs",M._handleMouseMove),f.on("mousedown.geojs",M._handleMouseDown),f.on("mouseup.geojs",M._handleMouseUp),f.on("dragstart",(function(){return!1})),t.right&&f.on("contextmenu.geojs",(function(){return!1})),e.keyboard&&e.keyboard.actions){l=a(f[0]);var r=[];for(var s in e.keyboard.actions)e.keyboard.actions.hasOwnProperty(s)&&(l.bind(e.keyboard.actions[s],function(t){return function(e,n){M._handleKeys(t,e,n)}}(s)),r=r.concat(e.keyboard.actions[s]));e.keyboard.metakeyMouseEvents&&e.keyboard.metakeyMouseEvents.forEach((function(t){l.bind(t,M._repeatMouseMoveEvent,"keydown"),l.bind(t,M._repeatMouseMoveEvent,"keyup"),r.push(t)})),u=r}if(f.toggleClass("highlight-focus",!!(u&&u.length&&e.keyboard.focusHighlight)),(M.hasTouchSupport()||e.alwaysTouch)&&(t.pan||t.rotate)){var d;try{(d=n(7606))&&d.Manager||(d=void 0)}catch(t){}if(void 0!==d){var p=[],m=["hammer.input"];t.rotate&&(p.push([d.Rotate,{enable:!0}]),m=m.concat(["rotatestart","rotateend","rotatemove"])),t.pan&&(p.push([d.Pan,{direction:d.DIRECTION_ALL}]),m=m.concat(["panstart","panend","panmove"])),p.push([d.Tap,{event:"doubletap",taps:2}]),p.push([d.Tap,{event:"singletap"},void 0,["doubletap"]]),m=m.concat(["singletap"]);var w={recognizers:p,preventDefault:!0};(c={manager:new d.Manager(f[0],w),touchSupport:M.hasTouchSupport(),lastTime:0}).manager.get("doubletap").recognizeWith("singletap"),m.forEach((function(t){c.manager.on(t,M._handleTouch)}))}}return M},this._disconnectEvents=function(){return u&&(l&&l.unbind(u),u=null,l=null),c&&(c.manager.destroy(),c=null),f&&(f.off(".geojs"),f=null),M._handleMouseWheel=function(){},k=function(){},M},this.map=function(t){return void 0!==t?(e.map=t,M._connectEvents(),M):e.map},this.options=function(t){return void 0===t?g.extend({},e):(g.extend(e,t),M._connectEvents(),M)},this._getMousePosition=function(t){if(void 0!==t.pageX&&void 0!==t.pageY){var e,n,r=f.offset();e=(n=(new Date).valueOf())-i.time,i.time=n,i.deltaTime=e,i.velocity={x:(t.pageX-i.page.x)/e,y:(t.pageY-i.page.y)/e},i.page={x:t.pageX,y:t.pageY},i.map={x:t.pageX-r.left,y:t.pageY-r.top};try{i.geo=M.map().displayToGcs(i.map),i.mapgcs=M.map().displayToGcs(i.map,null)}catch(t){i.geo=i.mapgcs=null}}},this._getMouseButton=function(t){if(void 0!==t.buttons||void 0!==t.which){for(var e in i.buttons)i.buttons.hasOwnProperty(e)&&(i.buttons[e]=!1);if(void 0!==t.buttons)i.buttons.left=!!(1&t.buttons),i.buttons.right=!!(2&t.buttons),i.buttons.middle=!!(4&t.buttons);else if("mouseup"!==t.type)switch(t.which){case 1:i.buttons.left=!0;break;case 2:i.buttons.middle=!0;break;case 3:i.buttons.right=!0}!t.which||t.which>=1&&t.which<=3||(i.buttons[t.which]=!0)}},this._getMouseModifiers=function(t){i.modifiers.alt=t.altKey,i.modifiers.ctrl=t.ctrlKey,i.modifiers.meta=t.metaKey,i.modifiers.shift=t.shiftKey},this._getSelection=function(){var t=d.origin,e=M.mouse(),n=M.map(),i={},r={},a=e.map;if(d.actionRecord&&o.isFunction(d.actionRecord.selectionConstraint)){var s=d.actionRecord.selectionConstraint(e.mapgcs,t.mapgcs);a=s?n.gcsToDisplay(s.pos,null):a}else if(e.modifiers.shift){var l=Math.pow(Math.abs((a.x-t.map.x)*(a.y-t.map.y)),.5);a={x:t.map.x+Math.sign(a.x-t.map.x)*l,y:t.map.y+Math.sign(a.y-t.map.y)*l}}return i.upperLeft={x:Math.min(t.map.x,a.x),y:Math.min(t.map.y,a.y)},i.lowerRight={x:Math.max(t.map.x,a.x),y:Math.max(t.map.y,a.y)},i.upperRight={x:i.lowerRight.x,y:i.upperLeft.y},i.lowerLeft={x:i.upperLeft.x,y:i.lowerRight.y},r.upperLeft=n.displayToGcs(i.upperLeft,null),r.lowerRight=n.displayToGcs(i.lowerRight,null),r.upperRight=n.displayToGcs(i.upperRight,null),r.lowerLeft=n.displayToGcs(i.lowerLeft,null),p.data([{ul:r.upperLeft,ur:r.upperRight,ll:r.lowerLeft,lr:r.lowerRight}]),p.draw(),{display:i,gcs:r,mouse:e,origin:g.extend({},d.origin)}},this.cancel=function(t,e){var n;return(n=t?d.action===t:!!d.action)&&(e||(h={}),O()),n},this._setClickMaybe=function(t){E=t,m&&(window.clearTimeout(m),m=null)},this._handleMouseDown=function(t){var n,r;if(!(C||c&&"tap"===c.lastEventType&&(new Date).valueOf()-c.lastTime<1e3)){M._getMousePosition(t),M._getMouseButton(t),M._getMouseModifiers(t),M.map().geoTrigger(y.mousedown,M.mouse()),!e.click.enabled||i.buttons.left&&!e.click.buttons.left||i.buttons.right&&!e.click.buttons.right||i.buttons.middle&&!e.click.buttons.middle||(M._setClickMaybe({x:i.page.x,y:i.page.y,buttons:g.extend({},i.buttons)}),e.click.duration>0&&(m=window.setTimeout((function(){E=!1,m=null}),e.click.duration))),n=((r=b(i.buttons,i.modifiers,e.actions))||{}).action;var o=M.map();o.transitionCancel("_handleMouseDown"+(n?"."+n:"")),M.cancel(v.momentum),i.velocity={x:0,y:0},n&&(h={kind:"move"},A+=1,d={action:n,actionRecord:r,origin:g.extend(!0,{},i),initialZoom:o.zoom(),initialRotation:o.rotation(),initialEventRotation:t.rotation,stateId:A,delta:{x:0,y:0}},r.selectionRectangle&&(T&&(T.clear(),o.deleteLayer(T),T=null),T=o.createLayer("feature",{features:[w.capabilities.color],autoshareRenderer:!1}),(p=T.createFeature("quad",{gcs:o.gcs()})).style({opacity:.25,color:{r:.3,g:.3,b:.3}}),o.geoTrigger(y.brushstart,M._getSelection())),o.geoTrigger(y.actiondown,{state:M.state(),mouse:M.mouse(),event:t}),e.throttle>0?g(document).on("mousemove.geojs",x(e.throttle,M._handleMouseMoveDocument)):g(document).on("mousemove.geojs",M._handleMouseMoveDocument),g(document).on("mouseup.geojs",M._handleMouseUpDocument),d.boundDocumentHandlers=!0)}},this._handleMouseMove=function(t){C||d.boundDocumentHandlers||(e.click.cancelOnMove&&E&&M._setClickMaybe(!1),M._getMousePosition(t),M._getMouseButton(t),M._getMouseModifiers(t),E||M.map().geoTrigger(y.mousemove,M.mouse()))},this._handleZoomrotate=function(t){var n=Math.log2(t.scale);if(!d.zoomrotateAllowZoom&&n&&Math.abs(n)>=Math.log2(1+e.zoomrotateMinimumZoom)&&(e.zoomrotateMinimumZoom&&(d.initialZoom-=n),d.zoomrotateAllowZoom=!0),d.zoomrotateAllowZoom&&n){var i=d.initialZoom+n;M.map().zoom(i,d.origin)}var r=(t.rotation-d.initialEventRotation)*Math.PI/180;if(!d.zoomrotateAllowRotation&&r&&Math.abs(r)>=e.zoomrotateMinimumRotation&&(e.zoomrotateMinimumRotation&&(d.initialEventRotation=t.rotation,r=0),d.zoomrotateAllowRotation=!0),d.zoomrotateAllowRotation){var a=d.initialRotation+r;(r=o.wrapAngle(a-M.map().rotation()))&&(r*(d.lastRotationDelta||0)>=0||Math.abs(r)>=e.zoomrotateReverseRotation)&&(M.map().rotation(a,d.origin),d.lastRotationDelta=r)}var s=d.origin.page;if(d.initialEventGeo){var l=f.offset();(s=M.map().gcsToDisplay(d.initialEventGeo)).x+=l.left,s.y+=l.top}var u=t.pageX-s.x,c=t.pageY-s.y,h=u*u+c*c;!d.zoomrotateAllowPan&&h&&h>=e.zoomrotateMinimumPan*e.zoomrotateMinimumPan&&(e.zoomrotateMinimumPan?(u=c=0,d.initialEventGeo=M.mouse().geo):d.initialEventGeo=d.origin.geo,d.zoomrotateAllowPan=!0),d.zoomrotateAllowPan&&(u||c)&&M.map().pan({x:u,y:c})},this._handleMouseMoveDocument=function(t){var n,r,o;if(M.map()&&!C&&"move"===h.kind){if(M._getMousePosition(t),M._getMouseButton(t),M._getMouseModifiers(t),e.click.cancelOnMove)if(void 0===E.x||void 0===E.y)M._setClickMaybe(!1);else if(!0!==e.click.cancelOnMove||i.page.x===E.x&&i.page.y===E.y){Math.sqrt(Math.pow(i.page.x-E.x,2)+Math.pow(i.page.y-E.y,2))>=e.click.cancelOnMove&&M._setClickMaybe(!1)}else M._setClickMaybe(!1);if(!E)if(d.action){if(n=i.map.x-d.origin.map.x-d.delta.x,r=i.map.y-d.origin.map.y-d.delta.y,d.delta.x+=n,d.delta.y+=r,d.action===v.pan)M.map().pan({x:n,y:r},void 0,"limited");else if(d.action===v.zoom)k(-r*e.zoomScale/120,d);else if(d.action===v.rotate){var a,s;void 0===d.origin.rotation&&(a=d.origin.map.x-M.map().size().width/2,s=d.origin.map.y-M.map().size().height/2,d.origin.rotation=M.map().rotation()-Math.atan2(s,a)),a=i.map.x-M.map().size().width/2,s=i.map.y-M.map().size().height/2,M.map().rotation(d.origin.rotation+Math.atan2(s,a))}else d.action===v.zoomrotate?M._handleZoomrotate(t):d.actionRecord.selectionRectangle&&(o=M._getSelection(),M.map().geoTrigger(y.brush,o));M.map().geoTrigger(y.actionmove,{state:M.state(),mouse:M.mouse(),event:t}),t.preventDefault()}else console.log("WARNING: Invalid state in mapInteractor.")}},this._zoomFromSelection=function(t,e,n){if((t===v.zoomselect||t===v.unzoomselect)&&e.x!==n.x&&e.y!==n.y){var i,r,o=M.map(),a=o.size(),s={x:Math.abs((n.x-e.x)/a.width),y:Math.abs((n.y-e.y)/a.height)};if(t===v.zoomselect?(r=o.displayToGcs({x:(e.x+n.x)/2,y:(e.y+n.y)/2},null),i=o.zoom()-Math.log2(Math.max(s.x,s.y))):(i=o.zoom()+Math.log2(Math.max(s.x,s.y)),r=o.center(void 0,null)),o.discreteZoom()&&(i=Math.floor(i)),o.zoom(i),t===v.zoomselect)o.center(r,null);else{var l=o.gcsToDisplay(r,null);o.pan({x:(e.x+n.x)/2-l.x,y:(e.y+n.y)/2-l.y})}}},this._handleMouseUpDocument=function(t){var n,r;if(!C&&(h={},M._setClickMaybe(!1),M._getMouseButton(t),M._getMouseModifiers(t),g(document).off(".geojs"),d.boundDocumentHandlers=!1,i.buttons.right&&t.preventDefault(),d.actionRecord&&d.actionRecord.selectionRectangle&&(M._getMousePosition(t),n=M._getSelection(),T.clear(),M.map().deleteLayer(T),T=null,p=null,M.map().geoTrigger(y.brushend,n),!0!==d.actionRecord.selectionRectangle&&M.map().geoTrigger(d.actionRecord.selectionRectangle,n),M._zoomFromSelection(d.action,n.display.lowerLeft,n.display.upperRight),M.map().geoTrigger(y.actionselection,{state:M.state(),mouse:M.mouse(),event:t,lowerLeft:n.display.lowerLeft,upperRight:n.display.upperRight})),M.map().geoTrigger(y.actionup,{state:M.state(),mouse:M.mouse(),event:t}),r=d.action,O(),e.momentum.enabled&&g.inArray(r,e.momentum.actions)>=0)){var o=(new Date).valueOf(),a=o-i.time+i.deltaTime;o-i.time<e.momentum.stopTime?(i.velocity.x*=i.deltaTime/a,i.velocity.y*=i.deltaTime/a,i.deltaTime=a):i.velocity.x=i.velocity.y=0,M.springBack(!0,r)}},this._handleMouseUp=function(t){if(!C){M._getMouseButton(t),E&&M._handleMouseClick(t);var e=M.mouse();e.buttonsDown=E.buttons,M.map().geoTrigger(y.mouseup,e)}},this._handleMouseClick=function(t){d.actionRecord&&d.actionRecord.selectionRectangle&&(T.clear(),M.map().deleteLayer(T),T=null,p=null,d.action=d.actionRecord=null),M._getMouseButton(t),M._getMouseModifiers(t),M.cancel(v.pan),g(document).off(".geojs"),d.boundDocumentHandlers=!1;var e=M.mouse();e.buttonsDown=E.buttons,e.evt=t,M._setClickMaybe(!1),M.map().geoTrigger(y.mouseclick,e)},this._handleMouseWheel=function(){},this.springBack=function(t,n){d.action!==v.momentum&&(t||(i.velocity={x:0,y:0}),d.origAction=n,d.action=v.momentum,d.origin=M.mouse(),d.momentum=M.mouse(),d.start=new Date,d.handler=function(){var t,n,i,r;if(d.action===v.momentum&&M.map()&&!M.map().transition())if(r=Math.min(d.momentum.deltaTime,30),i=d.start.valueOf(),d.start=new Date,t=P(d.momentum.velocity,d.start-i)){if((n=S(t))>e.momentum.maxSpeed&&(n=e.momentum.maxSpeed/n,t.x=t.x*n,t.y=t.y*n),isFinite(t.x)&&isFinite(t.y)||(t.x=0,t.y=0),d.momentum.velocity.x=t.x,d.momentum.velocity.y=t.y,d.origAction===v.zoom){var o=d.momentum.velocity.y*r;k(-o*e.zoomScale/120,d)}else M.map().pan({x:d.momentum.velocity.x*r,y:d.momentum.velocity.y*r},void 0,"limited");d.handler&&M.map().scheduleAnimationFrame(d.handler)}else O()},d.handler&&M.map().scheduleAnimationFrame(d.handler))},this.destroy=function(){M._disconnectEvents(),M.map()&&g(M.map().node()).removeClass("highlight-focus"),M.map(null)},this.mouse=function(){return g.extend(!0,{},i)},this.keyboard=function(t){return void 0===t?g.extend(!0,{},e.keyboard||{}):M.options({keyboard:t})},this.state=function(){return g.extend(!0,{},d)},this.pause=function(t){return void 0===t?C:(C=!!t,M)},this.addAction=function(t,n){t&&t.action&&t.input&&(o.addAction(e.actions,t,n),e.map&&e.actions.some((function(t){return t.input.right}))&&(f.off("contextmenu.geojs"),f.on("contextmenu.geojs",(function(){return!1}))))},this.hasAction=function(t,n,i){return o.hasAction(e.actions,t,n,i)},this.removeAction=function(t,n,i){var r=o.removeAction(e.actions,t,n,i);return e.map&&!e.actions.some((function(t){return t.input.right}))&&f.off("contextmenu.geojs"),r},this.simulateEvent=function(t,e){var n,i,r,o,a;if(!M.map())return M;if("keyboard"===t&&l){var s={shiftKey:e.shift||e.shiftKey||!1,ctrlKey:e.ctrl||e.ctrlKey||!1,altKey:e.alt||e.altKey||!1,metaKey:e.meta||e.metaKey||!1,toString:function(){return e.keys},stopPropagation:function(){},preventDefault:function(){},simulated:!0};l.trigger(s,e.event)}else i=e.page||{},e.map&&(r=f.offset(),i.x=e.map.x+r.left,i.y=e.map.y+r.top),"left"===e.button?(o=1,a=1):"right"===e.button?(o=3,a=2):"middle"===e.button&&(o=2,a=4),e.modifiers=e.modifiers||[],e.wheelDelta=e.wheelDelta||{},n=g.Event(t,{pageX:i.x,pageY:i.y,which:o,buttons:a,altKey:e.modifiers.indexOf("alt")>=0,ctrlKey:e.modifiers.indexOf("ctrl")>=0,metaKey:e.modifiers.indexOf("meta")>=0,shiftKey:e.modifiers.indexOf("shift")>=0,center:e.center,rotation:e.touch?e.rotation||0:e.rotation,scale:e.touch?e.scale||1:e.scale,pointers:e.pointers,pointerType:e.pointerType,originalEvent:{deltaX:e.wheelDelta.x,deltaY:e.wheelDelta.y,deltaMode:e.wheelMode,preventDefault:function(){},stopPropagation:function(){},stopImmediatePropagation:function(){}}}),e.touch&&c?M._handleTouch(n):f.trigger(n),t.indexOf(".geojs")>=0&&g(document).trigger(n)},this._connectEvents(),this};i(s,r),t.exports=s},2225:function(t,e,n){function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(t,e)||r(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var a=n(4626),s=n(1275),l=n(7541),u=function(t){"use strict";if(!(this instanceof u))return new u(t);t=t||{},l.call(this,t);var e=n(5616),o=n(77),a=n(642),s=n(4279);s=s.__esModule?s.default:s;var c=this,d=this._init,h=null,f=o(),p=0,m=0,g=0;return this.featureType="marker",this._updateRangeTree=function(){if(!(f.timestamp()>=c.dataTime().timestamp()&&f.timestamp()>=c.timestamp())){var t,e,n=c.style.get("radius"),o=c.style.get("strokeWidth"),a=c.style.get("radiusIncludesStroke"),l=c.style.get("strokeOffset"),d=c.style.get("scaleWithZoom");e=c.position(),p=0,m=0,g=0,t=c.data().map((function(t,i){var r=e(t,i),s=d(t,i),c=n(t,i),h=o(t,i),f=Math.sign(l(t,i)),y=a(t,i),v=(y=void 0===y||y)?c+h*(f+1)/2:c+h,x=y?c+h*(f-1)/2:c;switch(s=u.scaleMode[s]||(s>=1&&s<=3?s:0)){case u.scaleMode.stroke:x>p&&(p=x),h>g&&(g=h);break;case u.scaleMode.fill:case u.scaleMode.all:v>m&&(m=v);break;default:v>p&&(p=v)}return[r.x,r.y]})),h=new s(t.length);var y,v=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=r(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}(t);try{for(v.s();!(y=v.n()).done;){var x=i(y.value,2),_=x[0],b=x[1];h.add(_,b)}}catch(t){v.e(t)}finally{v.f()}h.finish(),f.modified()}},this._approximateMaxRadius=function(t){c._updateRangeTree();var e=Math.pow(2,t);return Math.max(p+g*e,m*e)},this.pointSearch=function(t,e){var n,i,r,o,a=[],s=[],l=[],d=c.gcs(),f=c.style.get("radius"),p=c.style.get("strokeWidth"),m=c.style.get("radiusIncludesStroke"),g=c.style.get("strokeOffset"),y=c.style.get("scaleWithZoom");if(!(r=c.data())||!r.length)return{found:[],index:[]};c._updateRangeTree();var v=c.layer().map();e=null===e?v.gcs():void 0===e?v.ingcs():e;var x=v.gcsToDisplay(t,e),_=v.zoom(),b=Math.pow(2,_),w=this._approximateMaxRadius(_);return o=[v.displayToGcs({x:x.x-w,y:x.y-w},d),v.displayToGcs({x:x.x+w,y:x.y-w},d),v.displayToGcs({x:x.x-w,y:x.y+w},d),v.displayToGcs({x:x.x+w,y:x.y+w},d)],n={x:Math.min(o[0].x,o[1].x,o[2].x,o[3].x),y:Math.min(o[0].y,o[1].y,o[2].y,o[3].y)},i={x:Math.max(o[0].x,o[1].x,o[2].x,o[3].x),y:Math.max(o[0].y,o[1].y,o[2].y,o[3].y)},(a=h.range(n.x,n.y,i.x,i.y)).sort((function(t,e){return t-e})),a.forEach((function(t){var e=r[t],n=f(r[t],t),i=y(r[t],t),o=g(r[t],t),a=i?p(r[t],t):0,h=m(e,t),_=(h=void 0===h||h)?n+a*(o-1)/2:n;n=_+a;var w,M,A,T=c.position()(e,t);switch(i=u.scaleMode[i]||(i>=1&&i<=3?i:0)){case u.scaleMode.fill:n=_*b+a;break;case u.scaleMode.stroke:n=_+a*b;break;case u.scaleMode.all:n*=b}n&&(A=n*n,(w=(T=v.gcsToDisplay(T,d)).x-x.x)*w+(M=T.y-x.y)*M<=A&&(s.push(e),l.push(t)))})),{found:s,index:l}},this.polygonSearch=function(t,e,n){var i,r,o,s,l=c.gcs(),d=[],f=[],p={},m=c.layer().map(),g=c.data(),y=c.style.get("radius"),v=c.style.get("strokeWidth"),x=c.style.get("radiusIncludesStroke"),_=c.style.get("strokeOffset"),b=c.style.get("scaleWithZoom"),w=m.zoom(),M=Math.pow(2,w),A=this._approximateMaxRadius(w);return n=null===n?m.gcs():void 0===n?m.ingcs():n,t.outer||(t={outer:t,inner:[]}),t.outer.length<3||!g||!g.length?{found:[],index:[],extra:{}}:((e=e||{}).partial=e.partial||!1,(t={outer:m.gcsToDisplay(t.outer,n),inner:(t.inner||[]).map((function(t){return m.gcsToDisplay(t,n)}))}).outer.forEach((function(t){r||(r={x:t.x,y:t.y},o={x:t.x,y:t.y}),t.x<r.x&&(r.x=t.x),t.x>o.x&&(o.x=t.x),t.y<r.y&&(r.y=t.y),t.y>o.y&&(o.y=t.y)})),c._updateRangeTree(),s=[m.displayToGcs({x:r.x-A,y:r.y-A},l),m.displayToGcs({x:o.x+A,y:r.y-A},l),m.displayToGcs({x:o.x+A,y:o.y+A},l),m.displayToGcs({x:r.x-A,y:o.y+A},l)],r={x:Math.min(s[0].x,s[1].x,s[2].x,s[3].x),y:Math.min(s[0].y,s[1].y,s[2].y,s[3].y)},o={x:Math.max(s[0].x,s[1].x,s[2].x,s[3].x),y:Math.max(s[0].y,s[1].y,s[2].y,s[3].y)},(i=h.range(r.x,r.y,o.x,o.y)).sort((function(t,e){return t-e})),i.forEach((function(n){var i=g[n],r=c.position()(i,n),o=y(g[n],n),s=b(g[n],n),h=_(g[n],n),w=s?v(g[n],n):0,A=x(i,n),T=(A=void 0===A||A)?o+w*(h-1)/2:o;switch(o=T+w,s=u.scaleMode[s]||(s>=1&&s<=3?s:0)){case u.scaleMode.fill:o=T*M+w;break;case u.scaleMode.stroke:o=T+w*M;break;case u.scaleMode.all:o*=M}if(o){r=m.gcsToDisplay(r,l);var C=a.distanceToPolygon2d(r,t);(C>=o||C>=0&&"center"===e.partial||C>=-o&&e.partial&&"center"!==e.partial)&&(d.push(i),f.push(n),p[n]={partial:C<o,distance:C})}})),{found:d,index:f,extra:p})},this._init=function(t){return t=e.extend(!0,{},{style:e.extend({},{radius:6.25,radiusIncludesStroke:!0,strokeColor:{r:.851,g:.604,b:0},strokeOffset:-1,strokeOpacity:1,strokeWidth:1.25,fillColor:{r:1,g:.839,b:.439},fillOpacity:.8,symbol:0,symbolValue:0,rotation:0,scaleWithZoom:u.scaleMode.none,rotateWithMap:!1},t&&void 0===t.style?{}:t.style)},t),d.call(c,t),c},c};u.create=function(t,e){"use strict";return(e=e||{}).type="marker",s.create(t,e)},u.capabilities={feature:"marker"},u.primitiveShapes=l.primitiveShapes,u.symbols={circle:0,ellipse:0,flowerBase:1,flowerMax:16,triangle:16,diamond:17,starBase:17,starMax:16,square:32,rectangle:32,crossBase:33,crossMax:16,oval:48,jackBase:49,jackMax:16,drop:64,dropBase:65,dropMax:16,arrow:80,arrowBase:81,arrowMax:16,length:96},["flower","star","cross","jack","drop","arrow"].forEach((function(t){for(var e=2;e<=u.symbols[t+"Max"];e+=1)u.symbols[t+e]=u.symbols[t+"Base"]-2+e})),u.scaleMode={none:0,fill:1,stroke:2,all:3},a(u,l),t.exports=u},6124:function(t,e,n){var i=n(4626),r=n(1275),o=function(t){"use strict";if(!(this instanceof o))return new o(t);var e=n(5616),i=n(642);t=t||{},r.call(this,t);var a=this,s=this._init,l={};return this.featureType="mesh",this.mesh=function(t,n){if(void 0===t)return l;if("string"==typeof t&&void 0===n)return l[t];if(void 0===n){var i=e.extend({},{gridWidth:function(){return t.gridHeight?Math.floor(a.data().length/t.gridHeight):Math.floor(Math.sqrt(a.data().length))},gridHeight:function(){return t.gridWidth?Math.floor(a.data().length/t.gridWidth):Math.floor(Math.sqrt(a.data().length))}},l,t);l=i}else l[t]=n;return a.modified(),a},this.mesh.get=function(t){if(void 0===t){var e,n={};for(e in l)l.hasOwnProperty(e)&&(n[e]=a.mesh.get(e));return n}return i.ensureFunction(l[t])},this.position=function(t){return void 0===t?a.style("position"):(a.style("position",t),a.dataTime().modified(),a.modified(),a)},this._createMesh=function(t,e){t=t||{},e=e||{};var n,i,r,o,s,l,u,c,d,h,f,p,m,g,y,v,x=a.data(),_=a.position(),b=a.mesh.get("elements")(x),w=a.mesh.get("elementPacking")(x),M=a.mesh.get("gridWidth")(x),A=a.mesh.get("gridHeight")(x),T=a.mesh.get("wrapLongitude")(x),C=a.mesh.get("x0")(x),E=a.mesh.get("y0")(x),k=a.mesh.get("dx")(x),S=a.mesh.get("dy")(x),O=M,P={shape:"square",elements:[],elementIndex:[]};if(b){var L=b.length&&Array.isArray(b[0]);if("square"===w||"triangle"!==w&&(!L&&!(b.length%4)&&b.length%3||L&&4===b[0].length))if(P.shape="square",L)for(n=0;n<b.length;n+=1)P.elements.push(b[n][0]),P.elements.push(b[n][1]),P.elements.push(b[n][3]),P.elements.push(b[n][2]),P.elements.push(b[n][3]),P.elements.push(b[n][1]),P.elementIndex.push(n),P.elementIndex.push(n);else for(n=r=0;n<b.length-3;n+=4,r+=1)P.elements.push(b[n]),P.elements.push(b[n+1]),P.elements.push(b[n+3]),P.elements.push(b[n+2]),P.elements.push(b[n+3]),P.elements.push(b[n+1]),P.elementIndex.push(r),P.elementIndex.push(r);else if(P.shape="triangle",L)for(n=0;n<b.length;n+=1)P.elements.push(b[n][0]),P.elements.push(b[n][1]),P.elements.push(b[n][2]),P.elementIndex.push(n);else for(P.elements=b.slice(0,b.length-b.length%3),n=r=0;n<b.length-2;n+=3,r+=1)P.elementIndex.push(r);l=x.length,c=!0}else{if(Object.keys(t).length?M*A>x.length&&(A=Math.floor(x.length/M)):Object.keys(e).length&&(M-1)*(A-1)>x.length&&(A=Math.floor(x.length/(M-1))+1),T=!(void 0!==T&&!T),!(c=null==C||null==E||!k||!S)&&T&&(C<-180||C>180||C+k*(M-1)<-180||C+k*(M-1)>180)&&k>-180&&k<180&&k*(M-1)<360.0001){for(p=[],m=[],n=0;n<M;n+=1){for(y=C+n*k;y<-180;)y+=360;for(;y>180;)y-=360;n&&Math.abs(y-p[p.length-1])>180&&(y>p[p.length-1]?(p.push(y-360),p.push(p[p.length-2]+360),m.push(n),m.push(n+1)):(p.push(y+360),p.push(p[p.length-2]-360),m.push(n),m.push(n+1)),g=n),p.push(y),m.push(n)}if(M+=2,Math.abs(Math.abs(O*k)-360)<.01){for(M+=1,y=C+O*k;y<-180;)y+=360;for(;y>180;)y-=360;p.push(y),m.push(0)}}if(l=M*A,void 0!==g)for(P.index=new Array(l),n=0;n<l;n+=1)v=n-(r=Math.floor(n/M))*M,(v+=v>g?-2:0)>=O&&(v-=O),v+=r*O,P.index[n]=v;for(r=s=0;r<A-1;r+=1,s+=1)for(n=0;n<M-1;n+=1,s+=1)n!==g&&(P.elements.push(s),P.elements.push(s+1),P.elements.push(s+M),P.elements.push(s+M+1),P.elements.push(s+M),P.elements.push(s+1),P.elementIndex.push(r*(M-1)+(m?m[n]:n)),P.elementIndex.push(r*(M-1)+(m?m[n]:n)))}P.verticesPerElement="triangle"===P.shape?3:6;var R=P.verticesPerElement;if(e.used){var I=new Array(P.elementIndex[P.elementIndex.length-1]+1);for(n=0;n<I.length;n+=1)I[n]=e.used(x[n],n);for(n=0;n<P.elementIndex.length&&I[P.elementIndex[n]];n+=1);if(n<P.elementIndex.length){for(r=n;n<P.elementIndex.length;n+=1)if(I[P.elementIndex[n]]){for(P.elementIndex[r]=P.elementIndex[n],o=0;o<3;o+=1)P.elements[3*r+o]=P.elements[3*n+o];r+=1}P.elements.splice(3*r),P.elementIndex.splice(r)}}if(t.used){for(n=0;n<l&&(s=P.index?P.index[n]:n,t.used(x[s],s));n+=1);if(n!==l){u=n;var D=new Array(l);for(r=0;r<u;r+=1)D[r]=r;if(D[u]=-1,!P.index)for(P.index=new Array(x.length),r=0;r<x.length;r+=1)P.index[r]=r;for(n=u+1;n<l;n+=1)s=P.index[n],t.used(x[s],s)?(D[n]=u,P.index[u]=P.index[n],u+=1):D[n]=-1;for(P.index.splice(u),n=o=0;n<P.elements.length;n+=R){for(r=0;r<R&&!(D[P.elements[n+r]]<0);r+=1)P.elements[o+r]=D[P.elements[n+r]];r===R&&(P.elementIndex[Math.floor(o/3)]=P.elementIndex[Math.floor(n/3)],6===R&&(P.elementIndex[Math.floor(o/3)+1]=P.elementIndex[Math.floor(n/3)+1]),o+=R)}P.elements.splice(o),P.elementIndex.splice(Math.floor(o/3)),l=u}}if(e.used&&void 0===g){var F=new Array(l),j=P.index;for(P.index=[],n=0;n<P.elements.length;n+=1)void 0===F[o=P.elements[n]]&&(F[o]=P.index.length,P.index.push(j?j[o]:o)),P.elements[n]=F[o];l=P.index.length}for(h in P.pos=new Array(3*l),t)"used"!==h&&t.hasOwnProperty(h)&&(P[h]=new Array(l));for(n=i=0;n<l;n+=1,i+=3)for(h in d=x[s=P.index?P.index[n]:n],c?(f=_(d,s),P.pos[i]=f.x,P.pos[i+1]=f.y,P.pos[i+2]=f.z||0):(P.pos[i]=void 0===g?C+k*(s%M):p[n%M],P.pos[i+1]=E+S*Math.floor(s/M),P.pos[i+2]=0,f={x:P.pos[i],y:P.pos[i+1],z:P.pos[i+2]}),t)"used"!==h&&t.hasOwnProperty(h)&&(P[h][n]=t[h](d,s,f));for(h in e)if("used"!==h&&e.hasOwnProperty(h)){var B=e[h];for(P[h]=new Array(P.elementIndex.length),n=0;n<P.elementIndex.length;n+=1)d=x[s=P.elementIndex[n]],P[h][n]=B(d,s)}return P.numVertices=l,P.numElements=P.elements.length/P.verticesPerElement,P},this._init=function(t){s.call(a,t),t=t||{};var n=e.extend({},{position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t}},t.style||{});a.mesh(t.mesh||{}),a.style(n)},this};i(o,r),t.exports=o},1338:function(t,e,n){var i=n(4626),r=n(77),o=0,a=function(){"use strict";if(!(this instanceof a))return new a;var t=n(642),e=this,i=++o,s={},l=[],u=0;return this.onIdle=function(t){return u?l.push(t):t(),e},Object.defineProperty(this,"idle",{get:function(){return!u},configurable:!0}),Object.defineProperty(this,"_promises",{get:function(){return u},configurable:!0}),this.addPromise=function(t){function n(){t._geojsTracked&&t._geojsTracked[i]&&(u-=1,delete t._geojsTracked[i]),u||l.splice(0,l.length).forEach((function(t){t()}))}return t._geojsTracked||(t._geojsTracked={}),t._geojsTracked[i]||(t._geojsTracked[i]=!0,u+=1),t.always?t.always(n):t.then(n,n),e},this.removePromise=function(t){return t._geojsTracked&&t._geojsTracked[i]&&(u-=1,delete t._geojsTracked[i],u||l.splice(0,l.length).forEach((function(t){t()}))),e},this.geoOn=function(n,i){return Array.isArray(n)?(n.forEach((function(t){e.geoOn(t,i)})),e):t.isFunction(i)?(s.hasOwnProperty(n)||(s[n]=[]),s[n].push(i),e):(console.warn("Handler for "+n+" is not a function",i,e),e)},this.geoOnce=function(t,n){var i=function(r){e.geoOff(t,i),n.call(e,r)};return e.geoOn(t,i),i},this.geoIsOn=function(t,n){return Array.isArray(t)?t.some((function(t){return e.geoIsOn(t,n)})):(s[t]||[]).some((function(t){return t===n||void 0===n}))},this.geoTrigger=function(t,n){return Array.isArray(t)?(t.forEach((function(t){e.geoTrigger(t,n)})),e):((n=n||{}).event=t,s.hasOwnProperty(t)&&s[t].forEach((function(i){try{i.call(e,n)}catch(e){console.warn("Event handler for "+t+" threw an error",e)}})),e)},this.geoOff=function(t,n){if(void 0===t&&(s={},l=[],u=0,i=++o),Array.isArray(t))return t.forEach((function(t){e.geoOff(t,n)})),e;if(n){if(Array.isArray(n))return n.forEach((function(n){e.geoOff(t,n)})),e}else s[t]=[];return s.hasOwnProperty(t)&&(s[t]=s[t].filter((function(t){return t!==n}))),e},this._eventHandlers=function(){return s},this._exit=function(){e.geoOff()},r.call(this),this.modified(),this};i(a,r),t.exports=a},4880:function(t,e,n){var i=n(5616),r=n(4626),o=n(9264),a=n(1098),s=n(3842),l=function(t){var e=n(4912);if(!(this instanceof l))return new l(t);void 0!==(t=t||{}).mapOpacity&&void 0===t.opacity&&((t=i.extend({},t)).opacity=t.mapOpacity),t=i.extend(!0,{},this.constructor.defaults,l.tileSources[this.constructor.defaults.source]||{},l.tileSources[t.source]||{},{name:""},t),o.call(this,t);var r=this;this.mapOpacity=this.opacity,this._getTile=function(t,n){var i=n||t;return e({index:t,size:{x:r._options.tileWidth,y:r._options.tileHeight},queue:r._queue,overlap:r._options.tileOverlap,scale:r._options.tileScale,url:r._options.url.call(r,i.x,i.y,i.level||0,r._options.subdomains),crossDomain:r._options.crossDomain})},this.source=function(t){if(void 0!==t)return l.tileSources[t]&&(r.url(l.tileSources[t].url),r.subdomains(l.tileSources[t].subdomains||"abc"),r.attribution(l.tileSources[t].attribution||""),r._options.maxLevel=l.tileSources[t].maxLevel||18,r._options.minLevel=l.tileSources[t].minLevel||0),r;for(var e in l.tileSources)if(l.tileSources[e].url===r.url())return e}};l.defaults=i.extend({},o.defaults,{tileOffset:function(t){var e=256*Math.pow(2,t-1);return{x:e,y:e}},url:"",source:"osm"});var u='Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.',c='<a href="https://carto.com"> Carto</a> Contributors <a href="https://www.openstreetmap.org/"> OpenStreetMap</a>';l.tileSources={"dark-matter-with-labels":{url:" https://{s}.basemaps.cartocdn.com/rastertiles/dark_all/{z}/{x}/{y}.png",attribution:c,name:"Carto Dark Matter With Labels",minLevel:0,maxLevel:18},"dark-matter-without-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/dark_nolabels/{z}/{x}/{y}.png",attribution:c,name:"Carto Dark Matter Without Labels",minLevel:0,maxLevel:18},"nationalmap-relief":{url:"https://basemap.nationalmap.gov/arcgis/rest/services/USGSShadedReliefOnly/MapServer/tile/{z}/{y}/{x}",attribution:'Tile data from <a href="https://basemap.nationalmap.gov/">USGS</a>',name:"National Map Shaded Relief",minLevel:0,maxLevel:16},"nationalmap-satellite":{url:"https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/{z}/{y}/{x}",attribution:'Tile data from <a href="https://basemap.nationalmap.gov/">USGS</a>',name:"National Map Satellite",minLevel:0,maxLevel:16},"nationalmap-satellite-topo":{url:"https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryTopo/MapServer/tile/{z}/{y}/{x}",attribution:'Tile data from <a href="https://basemap.nationalmap.gov/">USGS</a>',name:"National Map Satellite and Topo",minLevel:0,maxLevel:16},"nationalmap-topo":{url:"https://basemap.nationalmap.gov/arcgis/rest/services/USGSTopo/MapServer/tile/{z}/{y}/{x}",attribution:'Tile data from <a href="https://basemap.nationalmap.gov/">USGS</a>',name:"National Map Topo",minLevel:0,maxLevel:16},osm:{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:'Tile data © <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',name:"OpenStreetMap",subdomains:"abc",minLevel:0,maxLevel:19},"positron-with-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/light_all/{z}/{x}/{y}.png",attribution:c,name:"Carto Positron With Labels",minLevel:0,maxLevel:18},"positron-without-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/light_nolabels/{z}/{x}/{y}.png",attribution:c,name:"Carto Positron Without Labels",minLevel:0,maxLevel:18},"stamen-terrain":{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png",attribution:u,name:"Stamen Terrain",subdomains:"abcd",minLevel:0,maxLevel:14},"stamen-terrain-background":{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/terrain-background/{z}/{x}/{y}.png",attribution:u,name:"Stamen Terrain Background",subdomains:"abcd",minLevel:0,maxLevel:14},"stamen-toner":{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.png",attribution:u,name:"Stamen Toner",subdomains:"abcd",minLevel:0,maxLevel:20},"stamen-toner-lite":{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png",attribution:u,name:"Stamen Toner Lite",subdomains:"abcd",minLevel:0,maxLevel:20},"voyager-with-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/voyager_labels_under/{z}/{x}/{y}.png",attribution:c,name:"Carto Voyager With Labels",minLevel:0,maxLevel:18},"voyager-without-labels":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/voyager_nolabels/{z}/{x}/{y}.png",attribution:c,name:"Carto Voyager Without Labels",minLevel:0,maxLevel:18}},r(l,o),a.registerLayer("osm",l,[s.capabilities.image]),t.exports=l},2266:function(t,e,n){var i=n(5616),r=n(4626),o=n(1275),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var e=this,n=this._init;return this.featureType="path",this.position=function(t){return void 0===t?e.style("position"):(t!==e.style("position")&&(e.style("position",t),e.dataTime().modified(),e.modified()),e)},this._init=function(t){n.call(e,t);var r=i.extend({},{strokeWidth:1,strokeColor:{r:1,g:1,b:1},position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t}},void 0===t.style?{}:t.style);return void 0!==t.position&&(r.position=t.position),e.style(r),r.position&&e.position(r.position),e.dataTime().modified(),e},this._init(t),this};r(a,o),t.exports=a},7761:function(t,e,n){var i=n(5616),r=n(4626),o=n(1275),a=n(642),s=function(t){"use strict";if(!(this instanceof s))return new s(t);t=t||{},o.call(this,t);var e,n=this,r=this._update,l=this._init;return this.featureType="pixelmap",this.position=function(t){return void 0===t?n.style("position"):(t!==n.style("position")&&(n.style("position",t),n.dataTime().modified(),n.modified()),n)},this.url=function(t){return void 0===t?n.style("url"):(t!==n.style("url")&&(n.m_srcImage=n.m_info=void 0,n.style("url",t),n.dataTime().modified(),n.modified()),n)},this.color=function(t){return void 0===t?n.style("color"):(t!==n.style("color")&&(n.style("color",t),n.dataTime().modified(),n.modified()),n)},this.indexModified=function(t,i){if(void 0===t){var r=e;return"clear"===i&&(e=void 0),r}return n.modified(),void 0===e&&(e=[t,t]),t<e[0]&&(e[0]=t),(i||t)>e[1]&&(e[1]=i||t),n},this._update=function(){return r.call(n),(n.buildTime().timestamp()<=n.dataTime().timestamp()||n.updateTime().timestamp()<n.timestamp())&&n._build(),n.updateTime().modified(),n},this.maxIndex=function(){if(n.m_info){if(void 0===n.m_info.maxIndex)for(var t in n.m_info.maxIndex=0,n.m_info.mappedColors)n.m_info.mappedColors.hasOwnProperty(t)&&(n.m_info.maxIndex=Math.max(n.m_info.maxIndex,t));return n.m_info.maxIndex}},this._computePixelmap=function(){},this._build=function(){if(n.m_srcImage)n.m_info&&n._computePixelmap();else{var t=n.style.get("url")();if(a.isReadyImage(t))n.m_srcImage=t,n._computePixelmap();else if(t){var e,r,o=i.Deferred();t instanceof Image?(n.m_srcImage=t,e=t.onload,r=t.onerror):(n.m_srcImage=new Image,t.indexOf(":")>=0&&t.indexOf("/")===t.indexOf(":")+1&&(n.m_srcImage.crossOrigin=n.style.get("crossDomain")()||"anonymous")),n.m_srcImage.onload=function(){e&&e.apply(n,arguments),n.style.get("url")()===t&&(n.m_info=void 0,n._computePixelmap()),o.resolve()},n.m_srcImage.onerror=function(){r&&r.apply(n,arguments),o.reject()},o.promise(n),n.layer().addPromise(n),t instanceof Image||(n.m_srcImage.src=t)}}return n.buildTime().modified(),n},this._init=function(t){t=t||{},l.call(n,t);var e=i.extend({},{color:function(t,e){return{r:(255&e)/255,g:(e>>8&255)/255,b:(e>>16&255)/255,a:1}},position:a.identityFunction},void 0===t.style?{}:t.style);return void 0!==t.position&&(e.position=t.position),void 0!==t.url&&(e.url=t.url),void 0!==t.color&&(e.color=t.color),n.style(e),n.dataTime().modified(),t.quadFeature&&(n.m_srcImage=!0,n._computePixelmap()),n},this};s.create=function(t,e){"use strict";return(e=e||{}).type="pixelmap",o.create(t,e)},s.capabilities={feature:"pixelmap",lookup:"pixelmap.lookup"},r(s,o),t.exports=s},534:function(t,e,n){var i=n(5616),r=n(4626),o=n(9264),a=n(1098),s=n(3842),l=n(7761),u=function(t){var e,r=n(4912);if(!(this instanceof u))return new u(t);(t=t||{}).data&&(e=t.data,delete t.data),t=i.extend(!0,{},this.constructor.defaults,t),o.call(this,t);var a,s=this._init,l=this;return this._getTile=function(t,e){var n=e||t;return r({index:t,size:{x:l._options.tileWidth,y:l._options.tileHeight},queue:l._queue,overlap:l._options.tileOverlap,scale:l._options.tileScale,url:l._options.url.call(l,n.x,n.y,n.level||0,l._options.subdomains),crossDomain:l._options.crossDomain})},this._init=function(){s.apply(l,arguments),l.nearestPixel(!0,!0);var n={quadFeature:l.features()[0]};t.style&&(n.style=t.style),t.color&&(n.color=t.color),a=l.createFeature("pixelmap",n),e&&a.data(e),l.style=a.style,l.data=a.data,l.indexModified=a.indexModified;var i=l.dataTime().modified;return l.dataTime().modified=function(){return a.dataTime().modified(),i()},["modified","geoOn","geoOff","geoOnce"].forEach((function(t){var e=l[t];l[t]=function(){return Array.isArray(arguments[0])||a[t].apply(this,arguments),e.apply(this,arguments)}})),l},l};u.defaults=i.extend({},o.defaults,{features:[s.capabilities.image,l.capabilities.lookup],tileOffset:function(t){var e=256*Math.pow(2,t-1);return{x:e,y:e}},url:""}),r(u,o),a.registerLayer("pixelmap",u,[s.capabilities.image]),t.exports=u},7541:function(t,e,n){function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(t,e)||r(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var a=n(4626),s=n(1275),l=function(t){"use strict";if(!(this instanceof l))return new l(t);t=t||{},s.call(this,t);var e=n(5616),o=n(77),a=n(5966),u=n(6409),c=n(642),d=n(4279);d=d.__esModule?d.default:d;var h=this,f=this._init,p=null,m=o(),g=this.data,y=0,v=t.clustering,x=null,_=[],b=null,w=!1;return this.featureType="point",this.clustering=function(t){return void 0===t?v:(v&&!t?(x=null,v=!1,g(_)):t&&v!==t&&(v=t,h._clusterData()),h)},this._clusterData=function(){if(v){var t=!0===v?{radius:10}:v,n=h.position(),i=h.layer().map(),r=i.gcsToDisplay(i.center(void 0,null),null),o=i.displayToGcs(r,h.gcs()),s=i.displayToGcs({x:r.x+t.radius,y:r.y},h.gcs()),l=Math.pow(Math.pow(s.y-o.y,2)+Math.pow(s.x-o.x,2),.5),u=i.zoom(),d=l*Math.pow(2,u);t=e.extend({},t,{radius:d}),x=new a(t),_.forEach((function(t,e){var i=c.normalizeCoordinates(n(t,e));i.index=e,x.addPoint(i)})),b=null,h._handleZoom(i.zoom())}},this._handleZoom=function(t){var e=Math.floor(t);if(v&&e!==b){b=e;var n=x.points(e).map((function(t){return _[t.index]}));x.clusters(e).forEach((function(t){t.__cluster=!0,t.__data=[],t.obj.each((function(e){t.__data.push(_[e.index])})),n.push(t)})),w=!0,h.data(n)}},this.position=function(t){if(void 0===t)return h.style("position");var e=c.isFunction(t);return h.style("position",(function(n,i){return null!=n&&n.__cluster?n:e?t(n,i):t})),h.dataTime().modified(),h.modified(),h},this._updateRangeTree=function(){if(!(m.timestamp()>=h.dataTime().timestamp()&&m.timestamp()>=h.timestamp())){var t,e,n=h.style.get("radius"),o=h.style.get("stroke"),a=h.style.get("strokeWidth");e=h.position(),y=0,t=h.data().map((function(t,i){var r=e(t,i);return y=Math.max(y,n(t,i)+(o(t,i)?a(t,i):0)),[r.x,r.y]})),p=new d(t.length);var s,l=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=r(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}(t);try{for(l.s();!(s=l.n()).done;){var u=i(s.value,2),c=u[0],f=u[1];p.add(c,f)}}catch(t){l.e(t)}finally{l.f()}p.finish(),m.modified()}},this.pointSearch=function(t,e){var n,i,r,o,a,s,l=[],u=[],c=[],d=h.gcs(),f=h.style.get("fill"),m=h.style.get("stroke"),g=h.style.get("strokeWidth"),v=h.style.get("radius");return(r=h.data())&&r.length?(h._updateRangeTree(),o=h.layer().map(),a=o.gcsToDisplay(t,e),s=[o.displayToGcs({x:a.x-y,y:a.y-y},d),o.displayToGcs({x:a.x+y,y:a.y-y},d),o.displayToGcs({x:a.x-y,y:a.y+y},d),o.displayToGcs({x:a.x+y,y:a.y+y},d)],n={x:Math.min(s[0].x,s[1].x,s[2].x,s[3].x),y:Math.min(s[0].y,s[1].y,s[2].y,s[3].y)},i={x:Math.max(s[0].x,s[1].x,s[2].x,s[3].x),y:Math.max(s[0].y,s[1].y,s[2].y,s[3].y)},(l=p.range(n.x,n.y,i.x,i.y)).sort((function(t,e){return t-e})),l.forEach((function(t){var e=r[t],n=m(r[t],t);if(n||f(r[t],t)){var i,s,l,p,y=h.position()(e,t);l=v(r[t],t),(l+=n?g(r[t],t):0)&&(p=l*l,(i=(y=o.gcsToDisplay(y,d)).x-a.x)*i+(s=y.y-a.y)*s<=p&&(u.push(e),c.push(t)))}})),{found:u,index:c}):{found:[],index:[]}},this.polygonSearch=function(t,e,n){var i,r,o,a,s=h.gcs(),l=[],u=[],d={},f=h.layer().map(),m=h.data(),g=h.style.get("fill"),v=h.style.get("stroke"),x=h.style.get("strokeWidth"),_=h.style.get("radius");return t.outer||(t={outer:t,inner:[]}),t.outer.length<3||!m||!m.length?{found:[],index:[],extra:{}}:((e=e||{}).partial=e.partial||!1,(t={outer:f.gcsToDisplay(t.outer,n),inner:(t.inner||[]).map((function(t){return f.gcsToDisplay(t,n)}))}).outer.forEach((function(t){r||(r={x:t.x,y:t.y},o={x:t.x,y:t.y}),t.x<r.x&&(r.x=t.x),t.x>o.x&&(o.x=t.x),t.y<r.y&&(r.y=t.y),t.y>o.y&&(o.y=t.y)})),h._updateRangeTree(),a=[f.displayToGcs({x:r.x-y,y:r.y-y},s),f.displayToGcs({x:o.x+y,y:r.y-y},s),f.displayToGcs({x:o.x+y,y:o.y+y},s),f.displayToGcs({x:r.x-y,y:o.y+y},s)],r={x:Math.min(a[0].x,a[1].x,a[2].x,a[3].x),y:Math.min(a[0].y,a[1].y,a[2].y,a[3].y)},o={x:Math.max(a[0].x,a[1].x,a[2].x,a[3].x),y:Math.max(a[0].y,a[1].y,a[2].y,a[3].y)},(i=p.range(r.x,r.y,o.x,o.y)).sort((function(t,e){return t-e})),i.forEach((function(n){var i=m[n],r=v(m[n],n);if(r||g(m[n],n)){var o=h.position()(i,n),a=_(m[n],n);if(a+=r?x(m[n],n):0){o=f.gcsToDisplay(o,s);var p=c.distanceToPolygon2d(o,t);(p>=a||p>=0&&"center"===e.partial||p>=-a&&e.partial&&"center"!==e.partial)&&(l.push(i),u.push(n),d[n]={partial:p<a,distance:p})}}})),{found:l,index:u,extra:d})},this.data=function(t){return void 0===t?g():(w||(_=t),v&&!w?h._clusterData():g(t),w=!1,h)},this._init=function(t){t=t||{},f.call(h,t);var n=e.extend(!0,{},{radius:5,stroke:!0,strokeColor:{r:.851,g:.604,b:0},strokeWidth:1.25,strokeOpacity:1,fillColor:{r:1,g:.839,b:.439},fill:!0,fillOpacity:.8,position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t},origin:function(t){return t.length>=3?t.slice(0,3):[0,0,0]}},void 0===t.style?{}:t.style);return void 0!==t.position&&(n.position=t.position),h.style(n),n.position&&h.position(n.position),h.dataTime().modified(),h.geoOn(u.zoom,(function(t){h._handleZoom(t.zoomLevel)})),h},h};l.create=function(t,e){"use strict";return(e=e||{}).type="point",s.create(t,e)},l.capabilities={feature:"point",stroke:"point.stroke"},l.primitiveShapes={auto:"auto",sprite:"sprite",triangle:"triangle",square:"square"},a(l,s),t.exports=l},6645:function(t,e,n){var i=n(5616),r=n(4626),o=n(1275),a=n(5325),s=function(t){"use strict";if(!(this instanceof s))return new s(t);t=t||{},o.call(this,t);var e,r=n(642),l=this,u=this._init,c=this._exit,d=this.data,h=this.draw,f=this.modified,p=this.style,m=[];function g(t,e,n){var i=l.gcs(),r=l.layer().map().gcs();return t=t||l.data(),e=e||l.style.get("position"),n=n||l.style.get("polygon"),t.map((function(t,o){var s=n(t,o);if(s){var u,c,d,h,f,p,m,g,y,v;for(h=s.outer||(Array.isArray(s)?s:[]),u=new Array(h.length),f=0;f<h.length;f+=1)u[f]=e.call(l,h[f],f,t,o),p=u[f].x,m=u[f].y,f?(p<d.min.x&&(d.min.x=p),m<d.min.y&&(d.min.y=m),p>d.max.x&&(d.max.x=p),m>d.max.y&&(d.max.y=m)):d={min:{x:p,y:m},max:{x:p,y:m}};for(c=(s.inner||[]).map((function(n){h=n||[];var i=new Array(h.length);for(f=0;f<h.length;f+=1)i[f]=e.call(l,h[f],f,t,o);return i})),g=a.transformCoordinates(i,r,u),y=c.map((function(t){return a.transformCoordinates(i,r,t)})),f=0;f<g.length;f+=1)p=g[f].x,m=g[f].y,f?(p<v.min.x&&(v.min.x=p),m<v.min.y&&(v.min.y=m),p>v.max.x&&(v.max.x=p),m>v.max.y&&(v.max.y=m)):v={min:{x:p,y:m},max:{x:p,y:m}};return{outer:u,inner:c,range:d,mapouter:g,mapinner:y,maprange:v}}}))}function y(t){return r.isFunction(t)?function(e){return t(e[0],e[1],e[2],e[3])}:t}return this.featureType="polygon",this._subfeatureStyles={fillColor:!0,fillOpacity:!0,lineCap:!0,lineJoin:!0,strokeColor:!0,strokeOffset:!0,strokeOpacity:!0,strokeWidth:!0},this.data=function(t){var e=d(t);return void 0!==t&&(m=g(),l._checkForStroke()),e},this.polygonCoordinates=function(){return m},this.polygon=function(t){return void 0===t?l.style("polygon"):(l.style("polygon",t),l.dataTime().modified(),l.modified(),m=g(),l)},this.position=function(t){return void 0===t?l.style("position"):(l.style("position",t),l.dataTime().modified(),l.modified(),m=g(),l)},this.pointSearch=function(t,n){var i=[],o=[],s={},u=l.data(),c=l.layer().map();n=null===n?c.gcs():void 0===n?c.ingcs():n;var d=a.transformCoordinates(n,c.gcs(),t);(m.forEach((function(t,e){r.pointInPolygon(d,t.mapouter,t.mapinner,t.maprange)&&(o.push(e),s[e]=!0,i.push(u[e]))})),e)&&e.pointSearch(t).found.forEach((function(t){t.length&&4===t[0].length&&!s[t[0][3]]&&(o.push(t[0][3]),s[t[0][3]]=!0,i.push(u[t[0][3]]))}));return{index:o,found:i}},this.polygonSearch=function(t,n,i){var o,s,u=l.data(),c=[],d=[],h={},f=t,p={},g=l.layer().map();if(i=null===i?g.gcs():void 0===i?g.ingcs():i,t.outer||(t={outer:t,inner:[]}),!u||!u.length||t.outer.length<3)return{found:d,index:c,extra:h};if((n=n||{}).partial=n.partial||!1,(t={outer:a.transformCoordinates(i,g.gcs(),t.outer),inner:(t.inner||[]).map((function(t){return a.transformCoordinates(i,g.gcs(),t)}))}).outer.forEach((function(t){o||(o={x:t.x,y:t.y},s={x:t.x,y:t.y}),t.x<o.x&&(o.x=t.x),t.x>s.x&&(s.x=t.x),t.y<o.y&&(o.y=t.y),t.y>s.y&&(s.y=t.y)})),m.forEach((function(e,i){if(!(!e.mapouter.length||e.maprange&&(e.maprange.max.x<o.x||e.maprange.min.x>s.x||e.maprange.max.y<o.y||e.maprange.min.y>s.y))){for(var a,l,f=-1;f<e.mapinner.length&&!l;f+=1)for(var m=f<0?e.mapouter:e.mapinner[f],g=0,y=m.length,v=y-1;g<y;v=g,g+=1){var x=r.distanceToPolygon2d(m[g],t);if(x*r.distanceToPolygon2d(m[v],t)<0){l=!0;break}if(r.crossedLineSegmentPolygon2d(m[g],m[v],t)){l=!0;break}x>0&&(a=!0)}a||l||!r.pointInPolygon(t.outer[0],e.mapouter,e.mapinner,e.maprange)||(l=!0),(!n.partial&&a&&!l||n.partial&&(a||l))&&(c.push(i),d.push(u[i]),h[i]={partial:l},p[i]=!0)}})),e){var y=e.polygonSearch(f,n);y.found.forEach((function(t,e){t.length&&4===t[0].length&&(p[t[0][3]]||(c.push(t[0][3]),p[t[0][3]]=!0,d.push(u[t[0][3]]),h[y.index[e]]={partial:!1}),y.extra[y.index[e]].partial&&(h[t[0][3]].partial=!0))}))}return{found:d,index:c,extra:h}},this.style=function(t,e){var n=p.apply(l,arguments);return void 0===t||"string"==typeof t&&void 0===e||l._checkForStroke(),n},this.style.get=p.get,this._getLoopData=function(t,e,n){var i,r=[];for(i=0;i<n.length;i+=1)r.push([n[i],i,t,e]);return r},this._checkForStroke=function(){if(!1!==p("stroke")){if(l.layer()){e||(e=l.layer().createFeature("line",{selectionAPI:!1,gcs:l.gcs(),visible:l.visible(void 0,!0)}),l.dependentFeatures([e]));var t,n=l.style();if(r.isFunction(n.stroke)||!n.stroke){var i=l.style.get("stroke"),o=l.style.get("strokeOpacity");t=function(t){return i(t[2],t[3])?o(t[0],t[1],t[2],t[3]):0}}else t=y(n.strokeOpacity);e.style({antialiasing:y(n.antialiasing),closed:!0,lineCap:y(n.lineCap),lineJoin:y(n.lineJoin),miterLimit:y(n.miterLimit),strokeWidth:y(n.strokeWidth),strokeStyle:y(n.strokeStyle),strokeColor:y(n.strokeColor),strokeOffset:y(n.strokeOffset),strokeOpacity:t,uniformLine:y(n.uniformPolygon)});var a=l.data(),s=l.style("position");if(a!==e._lastData||s!==e._lastPosVal){var u,c,d,h=[],f=l.style.get("position"),m=l.style.get("polygon");for(u=0;u<a.length;u+=1)(c=m(a[u],u))&&(d=c.outer||(Array.isArray(c)?c:[])).length>=2&&(h.push(l._getLoopData(a[u],u,d)),c.inner&&c.inner.forEach((function(t){t.length>=2&&h.push(l._getLoopData(a[u],u,t))})));e.position((function(t,e,n,i){return f(t[0],t[1],t[2],t[3])})),e.data(h),e._lastData=a,e._lastPosVal=s}}}else e&&l.layer()&&(l.layer().deleteFeature(e),e=null,l.dependentFeatures([]))},this.draw=function(){var t=h();return e&&e.draw(),t},this.modified=function(){var t=f();return e&&e.modified(),t},this.rdpSimplifyData=function(t,e,n,i,o){var s=l.layer().map(),u=s.gcs(),c=l.gcs(),d=g(t,n,i);return void 0===e&&(e=.5*s.unitsPerPixel(s.zoom())),d=d.map((function(t){return{outer:a.transformCoordinates(c,u,t.outer),inner:t.inner.map((function(t){return a.transformCoordinates(c,u,t)}))}})),t=t.map((function(t,n){var i=d[n],o={};for(var s in t)!t.hasOwnProperty(s)||Array.isArray(t)&&s>=0&&s<t.length||(o[s]=t[s]);if(i&&i.outer.length>=3)if(o.inner=i.inner.filter((function(t){return t.length>=3})),o.outer=r.rdpLineSimplify(i.outer,e,!0,o.inner),o.outer.length>=3){var l=o.inner.slice();o.inner.map((function(t,n){l[n]=o.outer;var i=r.rdpLineSimplify(t,e,!0,l);return l[n]=i,i})).filter((function(t){return t.length>=3})),o.outer=a.transformCoordinates(u,c,o.outer),o.inner=o.inner.map((function(t){return a.transformCoordinates(u,c,t)}))}else o.outer=o.inner=[];else o.outer=[];return o})),o?t:(l.style("position",r.identityFunction),l.style("polygon",r.identityFunction),l.data(t),l)},this.mouseOverOrderClosestBorder=function(t){var e=t.feature.data(),n=t.feature.layer().map(),i=a.transformCoordinates(n.ingcs(),t.feature.gcs(),t.mouse.geo),o=t.feature.polygonCoordinates(),s={};t.over.index.forEach((function(t,e){var n,a=o[t];a.outer.forEach((function(t,e){var o=a.outer[(e+1)%a.outer.length],s=r.distance2dToLineSquared(i,t,o);(void 0===n||s<n)&&(n=s)})),a.inner.forEach((function(t){t.forEach((function(e,o){var a=t[(o+1)%t.length],s=r.distance2dToLineSquared(i,e,a);(void 0===n||s<n)&&(n=s)}))})),s[t]=n})),t.over.index.sort((function(t,e){return s[t]-s[e]})).reverse(),t.over.index.forEach((function(n,i){t.over.found[i]=e[n]}))},this.toPolygonList=function(t){var e=l.style.get("polygon"),n=l.style.get("position");return l.data().map((function(t,i){var r=e(t,i),o=r.outer||(Array.isArray(r)?r:[]);if(o.length<3)return[];var a=[o.map((function(e,r){var o=n(e,r,t,i);return[o.x,o.y]}))];return r.inner&&r.inner.forEach((function(e){a.push(e.map((function(e,r){var o=n(e,r,t,i);return[o.x,o.y]})))})),a}))},this.fromPolygonList=function(t,e){return l.style({position:function(t){return{x:t[0],y:t[1]}},polygon:function(t){return{outer:t[0],inner:t.slice(1)}}}),l.data(t),l},this._exit=function(){e&&l.layer()&&(l.layer().deleteFeature(e),e=null,l.dependentFeatures([])),c()},this._init=function(t){t=t||{},u.call(l,t);var e=i.extend({},{fill:!0,fillColor:{r:0,g:.5,b:.5},fillOpacity:1,stroke:!1,strokeWidth:1,strokeStyle:"solid",strokeColor:{r:0,g:1,b:1},strokeOpacity:1,polygon:r.identityFunction,position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t},origin:function(t){for(var e=0;e<t.length;e+=1)if(t[e].vertices.length>=3)return t[e].vertices.slice(0,3);return[0,0,0]}},void 0===t.style?{}:t.style);void 0!==t.polygon&&(e.polygon=t.polygon),void 0!==t.position&&(e.position=t.position),l.style(e),l._checkForStroke()},this};s.create=function(t,e){"use strict";return(e=e||{}).type="polygon",o.create(t,e)},s.capabilities={feature:"polygon"},r(s,o),t.exports=s},3842:function(t,e,n){var i=n(5616),r=n(4626),o=n(1275),a=function(t){"use strict";var e=n(5325),r=n(642);if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var s,l,u=this,c=this._init,d=t.nearestPixel,h=0,f=[],p=[];return this.featureType="quad",this._objectListStart=function(t){i.each(t,(function(t,e){e.used=!1}))},this._objectListGet=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].entry===e)return t[n].used=!0,t[n].value},this._objectListAdd=function(t,e,n){t.push({entry:e,value:n,used:!0})},this._objectListEnd=function(t){for(var e=t.length-1;e>=0;e-=1)t[e].used||t.splice(e,1)},this.pointSearch=function(t,n){var o,a,s=[],c=[],d={},h=[{},{},{},{}],f=[{},{},{},{}],p=[0,1,2,0],m=[1,2,3,1],g=u.data(),y=u.layer().map();return n=null===n?y.gcs():void 0===n?y.ingcs():n,t=e.transformCoordinates(n,y.gcs(),t),l||u._generateQuads(),i.each([l.clrQuads,l.imgQuads,l.vidQuads],(function(e,n){n.forEach((function(e,n){for(o=0;o<p.length;o+=1)h[o].x=e.pos[3*p[o]],h[o].y=e.pos[3*p[o]+1],h[o].z=e.pos[3*p[o]+2],f[o].x=e.pos[3*m[o]],f[o].y=e.pos[3*m[o]+1],f[o].z=e.pos[3*m[o]+2];(r.pointInPolygon(t,h)||r.pointInPolygon(t,f))&&(c.push(e.idx),s.push(g[e.idx]),!(a=r.pointToTriangleBasis2d(t,h[0],h[1],h[2]))||a.x+a.y>1?(a=r.pointToTriangleBasis2d(t,f[2],f[1],f[0]))&&(a.x=1-a.x):a.y=1-a.y,a&&(d[e.idx]={basis:a,_quad:e}))}))})),{index:c,found:s,extra:d}},this.position=function(t){return void 0===t?u.style("position"):(u.style("position",r.ensureFunction(t)),u.dataTime().modified(),u.modified(),u)},this._positionToQuad=function(t,n,r,o){var a=t.call(u,r,o);if(a.ll&&a.ur||a.ul&&a.lr){var s=u.gcs(),l=u.layer().map().gcs(),c={};return i.each(["ll","lr","ul","ur"],(function(t,i){void 0!==a[i]&&(c[i]={},void 0===a[i].x?c[i]=[a[i][0],a[i][1],a[i][2]]:c[i]=[a[i].x,a[i].y,a[i].z],void 0===c[i][2]&&(c[i][2]=n.call(u,r,o)),s!==l&&!1!==s&&(c[i]=e.transformCoordinates(s,l,c[i])))})),c.ll=c.ll||[c.ul[0],c.lr[1],(c.ul[2]+c.lr[2])/2],c.lr=c.lr||[c.ur[0],c.ll[1],(c.ur[2]+c.ll[2])/2],c.ur=c.ur||[c.lr[0],c.ul[1],(c.lr[2]+c.ul[2])/2],c.ul=c.ul||[c.ll[0],c.ur[1],(c.ll[2]+c.ur[2])/2],c}},this._checkQuadUpdate=function(t,e){},this._generateQuads=function(){var t,e,n=u.position(),o=u.style.get("image"),a=u.style.get("video"),c=u.style.get("delayRenderWhenSeeking"),d=u.style.get("color"),m=u.style.get("depth"),g=u.style.get("opacity"),y=u.style.get("drawOnAsyncResourceLoaded"),v=u.style.get("previewColor"),x=u.style.get("previewImage"),_=u.data(),b=[],w=[],M=[],A=[0,0,0];return u._objectListStart(f),u._objectListStart(p),i.each(_,(function(l,_){if(_._cachedQuad)return e=_._cachedQuad.diag2,(void 0===t||_._cachedQuad.diag2&&_._cachedQuad.diag2<t)&&(A=_._cachedQuad.ll,t=_._cachedQuad.diag2),_._cachedQuad.clrquad&&b.push(_._cachedQuad.clrquad),_._cachedQuad.imgquad&&(_._cachedQuad.imageEntry&&u._objectListGet(f,_._cachedQuad.imageEntry),w.push(_._cachedQuad.imgquad)),void(_._cachedQuad.vidquad&&(_._cachedQuad.videoEntry&&u._objectListGet(p,_._cachedQuad.videoEntry),M.push(_._cachedQuad.vidquad)));var T,C,E,k,S,O,P,L,R,I,D,F,j={};if(P=u._positionToQuad(n,m,_,l),I=g.call(u,_,l),void 0!==P&&I&&!(I<0)){if(e=Math.pow(P.ll[0]-P.ur[0],2)+Math.pow(P.ll[1]-P.ur[1],2)+Math.pow(P.ll[2]-P.ur[0],2)+Math.pow(P.lr[0]-P.ur[0],2)+Math.pow(P.lr[1]-P.ur[1],2)+Math.pow(P.lr[2]-P.ur[0],2),j.diag2=e,j.ll=P.ll,(void 0===t||e&&e<t)&&(A=P.ll,t=e),P=[P.ll[0],P.ll[1],P.ll[2],P.lr[0],P.lr[1],P.lr[2],P.ul[0],P.ul[1],P.ul[2],P.ur[0],P.ur[1],P.ur[2]],T={idx:l,pos:P,opacity:I,zOffset:_.zOffset},_.reference&&(T.reference=_.reference),_.crop&&(T.crop=_.crop),R=(L=o.call(u,_,l))?null:a.call(u,_,l),L){if(j.imageEntry=L,void 0===(C=u._objectListGet(f,L))&&(L instanceof Image||L instanceof HTMLCanvasElement?C=L:(C=new Image).src=L,u._objectListAdd(f,L,C)),r.isReadyImage(C)||C instanceof HTMLCanvasElement)T.image=C;else if(D=void 0,(F=x.call(u,_,l))&&r.isReadyImage(F)?T.image=F:(D=v.call(u,_,l),T.color=r.convertColor(D),T.color&&void 0!==T.color.r&&void 0!==T.color.g&&void 0!==T.color.b?(b.push(T),j.clrquad=T):D=void 0),y.call(u,_,l))O=r.isReadyImage(C,!0)?null:i.Deferred(),k=C.onload,C.onload=function(){if(void 0!==D&&(i.inArray(T,b)>=0&&b.splice(i.inArray(T,b),1),delete j.clrquad),T.image=C,u.dataTime().modified(),u.modified(),u._update(),u.layer().draw(),O&&O.resolve(),k)return k.apply(u,arguments)},S=C.onerror,C.onerror=function(){if(O&&O.reject(),S)return S.apply(u,arguments)},O&&u.layer().addPromise(O.promise());else if(void 0===D&&!T.image)return;w.push(T),j.imgquad=T}else if(R){if(j.videoEntry=R,void 0===(E=u._objectListGet(p,R))&&(R instanceof HTMLVideoElement?E=R:(E=document.createElement("video")).src=R,u._objectListAdd(p,R,E),i(E).off(".geojsvideo").on("seeking.geojsvideo canplay.geojsvideo pause.geojsvideo playing.geojsvideo",(function(t){u._checkQuadUpdate(T,t)}))),T.delayRenderWhenSeeking=c.call(u,_,l),void 0===T.delayRenderWhenSeeking&&(T.delayRenderWhenSeeking=!0),r.isReadyVideo(E))T.video=E;else if(D=v.call(u,_,l),T.color=r.convertColor(D),T.color&&void 0!==T.color.r&&void 0!==T.color.g&&void 0!==T.color.b?(b.push(T),j.clrquad=T):D=void 0,y.call(u,_,l))O=r.isReadyVideo(E,!0)?null:i.Deferred(),k=E.onloadeddata,E.onloadeddata=function(){if(void 0!==D&&(i.inArray(T,b)>=0&&b.splice(i.inArray(T,b),1),delete j.clrquad),T.video=E,u.dataTime().modified(),u.modified(),u._update(),u.layer().draw(),O&&O.resolve(),k)return k.apply(u,arguments)},S=E.onerror,E.onerror=function(){if(O&&O.reject(),S)return S.apply(u,arguments)},O&&u.layer().addPromise(O.promise());else if(void 0===D&&!T.video)return;M.push(T),j.vidquad=T}else{if(T.color=r.convertColor(d.call(u,_,l)),!T.color||void 0===T.color.r||void 0===T.color.g||void 0===T.color.b)return;b.push(T),j.clrquad=T}j.clrquad&&(h+=1,j.clrquad.quadId=h),j.imgquad&&(h+=1,j.imgquad.quadId=h),j.vidquad&&(h+=1,j.vidquad.quadId=h),!1!==s&&(_._cachedQuad=j)}})),u._objectListEnd(f),u._objectListEnd(p),l={clrQuads:b,imgQuads:w,vidQuads:M,origin:new Float32Array(A)}},this.cacheUpdate=function(t){return null==t?i.each(u.data(),(function(t,e){e._cachedQuad&&delete e._cachedQuad})):(isFinite(t)&&(t=u.data()[t]),t._cachedQuad&&delete t._cachedQuad),u.modified(),u},this.video=function(t){var e,n;return isFinite(t)&&(t=u.data()[t]),t._cachedQuad?e=(t._cachedQuad.vidquad||{}).video:(l||u._generateQuads(),(n=u.data().indexOf(t))>=0&&(e=u._objectListGet(p,u.style.get("video")(t,n)))),e instanceof HTMLVideoElement?e:null},this.nearestPixel=function(t){return void 0===t?d:(d=t,u.modified(),u)},this._init=function(t){t=t||{},c.call(u,t),s=!1!==t.cacheQuads;var e=i.extend({},{color:{r:1,g:1,b:1},opacity:1,depth:0,drawOnAsyncResourceLoaded:!0,previewColor:null,previewImage:null,image:function(t){return t.image},video:function(t){return t.video},position:r.identityFunction},void 0===t.style?{}:t.style);void 0!==t.position&&(e.position=r.ensureFunction(t.position)),u.style(e),u.dataTime().modified()},u};a.create=function(t,e){"use strict";return(e=e||{}).type="quad",o.create(t,e)},a.capabilities={color:"quad.color",image:"quad.image",imageCrop:"quad.imageCrop",imageFixedScale:"quad.imageFixedScale",imageFull:"quad.imageFull",canvas:"quad.canvas",video:"quad.video"},r(a,o),t.exports=a},1098:function(t,e,n){var i=n(5616),r=n(8695),o={dom:{}},a={},s={},l={},u={},c={},d={},h={},f={},p={registerFileReader:function(t,e){d[t]=e},createFileReader:function(t,e){return d.hasOwnProperty(t)?d[t](e):null},registerRenderer:function(t,e){l[t]=e},createRenderer:function(t,e,n,i){if(l.hasOwnProperty(t)){var r=l[t]({layer:e,canvas:n,options:i});return r._init(),r}return null},checkRenderer:function(t,e){if(null===t)return t;if(l.hasOwnProperty(t)){var n=l[t];if(!n.supported||n.supported())return n.apiname||t;if(!n.fallback||e)return!1;var i=p.checkRenderer(n.fallback(),!0);return!1!==i&&console.warn(t+" renderer is unavailable, using "+i+" renderer instead"),i}return!1},rendererForFeatures:function(t){var e,n,i,r,o,a,s=["webgl","canvas","svg","vtkjs",null];for(n=0;n<s.length;n+=1)if(e=s[n],!1!==p.checkRenderer(e,!0)){if(!t)return e;if(u[e]){for(a=!0,r=0;r<t.length;r+=1){if(o=null,(i=t[r]).indexOf(".")>=0&&(o=i,i=i.substr(0,i.indexOf("."))),void 0===u[e][i]){a=!1;break}if(o&&c[e][i]&&!c[e][i][o]){a=!1;break}}if(a)return e}}return console.warn('There is no renderer available for the feature list "'+(t||[]).join(", ")+'".'),!1},registerFeature:function(t,e,n,i){t in u||(u[t]={},c[t]={});var r=u[t][e];return r&&console.warn("The "+t+"."+e+" feature is already registered"),u[t][e]=n,c[t][e]=i,r},createFeature:function(t,e,n,r){var o=n.api(),a={layer:e,renderer:n};if(o in u&&t in u[o]){void 0!==r&&i.extend(!0,a,r);var s=u[o][t](a);return void 0===e.gcs&&(e.gcs=function(){return e.map().gcs()}),s}return null},registerLayerAdjustment:function(t,e,n){t in h||(h[t]={});var i=h[t][e];return i&&console.warn("The "+t+"."+e+" layer adjustment is already registered"),h[t][e]=n,i},adjustLayerForRenderer:function(t,e){var n=e.rendererName();n&&h&&h[n]&&h[n][t]&&h[n][t].apply(e)},registerLayer:function(t,e,n){a[t]=e,s[t]=n},createLayer:function(t,e,n){var r={map:e},o=null;if(t in a){if(n.renderer||n.features||!s||(r.features=s[t]),void 0!==n){var l=n.data;delete n.data,i.extend(!0,r,n),l&&(r.data=l)}return(o=a[t](r)).layerName=t,o._init(),o}return null},registerWidget:function(t,e,n){t in o||(o[t]={});var i=o[t][e];return i&&console.warn("The "+t+"."+e+" widget is already registered"),o[t][e]=n,i},createWidget:function(t,e,n){var r={layer:e};if(t in o.dom)return void 0!==n&&i.extend(!0,r,n),o.dom[t](r);throw new Error("Cannot create unknown widget "+t)},registerAnnotation:function(t,e,n){var i=f[t];return i&&console.warn("The "+t+" annotation is already registered"),f[t]={func:e,features:n||{}},r["annotation_"+t]="geo_annotation_"+t,i},createAnnotation:function(t,e){if(f[t])return f[t].func(e);console.warn("The "+t+" annotation is not registered")},listAnnotations:function(){return Object.keys(f)},featuresForAnnotations:function(t){var e=[];return(Array.isArray(t)?t:Object.keys(t)).forEach((function(n){f[n]&&Object.keys(f[n].features).forEach((function(r){Array.isArray(t)||!0===t[n]||!Array.isArray(f[n].features[r])?e.push(r):t[n].forEach((function(t){i.inArray(t,f[n].features[r])>=0&&e.push(r)}))}))})),e},rendererForAnnotations:function(t){return p.rendererForFeatures(p.featuresForAnnotations(t))}};p.registries={annotations:f,features:u,featureCapabilities:c,fileReaders:d,layers:a,renderers:l,widgets:o},t.exports=p},2274:function(t,e,n){var i=n(4626),r=n(1338),o=function(t){"use strict";if(!(this instanceof o))return new o(t);r.call(this);var e=this,n=0,i=0,a=void 0===(t=t||{}).layer?null:t.layer,s=void 0===t.canvas?null:t.canvas,l=!1;return this.layer=function(){return a},this.canvas=function(t){return void 0===t?s:(s=t,e.modified(),e)},this.map=function(){return a?a.map():null},this.initialized=function(t){return void 0===t?l:(l=t,e)},this.api=function(){throw new Error("Should be implemented by derived classes")},this.width=function(){return n},this.height=function(){return i},this._setWidthHeight=function(t,r){return n=t,i=r,e},this._init=function(){return e},this._resize=function(t,n,i,r){return e._setWidthHeight(i,r),e},this._render=function(){return e},this};i(o,r),t.exports=o},5402:function(t,e,n){var i=n(4626),r=n(1338),o=function(t){"use strict";if(!(this instanceof o))return new o;r.call(this,t);var e=this,n=null,i=[],a=this._exit,s=this.geoTrigger,l=this.addPromise,u=this.removePromise;return this.addPromise=function(t){return n&&n.addPromise(t),l(t),e},this.removePromise=function(t){return n&&n.removePromise(t),u(t),e},this.parent=function(t){return void 0===t?n:(n=t,e)},this.addChild=function(t){return Array.isArray(t)?(t.forEach(e.addChild),e):(t.parent(e),i.push(t),e)},this.removeChild=function(t){return Array.isArray(t)?(t.forEach(e.removeChild),e):(i=i.filter((function(e){return e!==t})),e)},this.children=function(){return i.slice()},this.draw=function(t){return e.children().forEach((function(e){e.draw(t)})),e},this.geoTrigger=function(t,r,o){var a;return a=(r=r||{}).geo||{},r.geo=a,a.stopPropagation?e:!o&&n&&a._triggeredBy!==n?(a._triggeredBy=e,n.geoTrigger(t,r),e):(s.call(e,t,r),a.stopPropagation||i.forEach((function(n){n.geoTrigger&&(a._triggeredBy=e,n.geoTrigger(t,r))})),e)},this._exit=function(){i=[],n=null,a()},this};i(o,r),t.exports=o},9079:function(t){t.exports="9247bbff883ef9933b82df63c762b4d0dfcce9ae"},3832:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(3187),a=function(t){"use strict";var e=this;return this instanceof a?(o.call(this,t),this.select=function(){var t=e.renderer(),n={},i=e.nodeFeature(),r=e.linkFeatures();return n.nodes=t.select(i._svgid()),n.links=r.map((function(e){return t.select(e._svgid())})),n},this):new a(t)};i(a,o),r("svg","graph",a),t.exports=a},6488:function(t,e,n){n(6409).svg={rescale:n(4765)},t.exports={graphFeature:n(3832),lineFeature:n(9456),object:n(5005),pathFeature:n(9927),pointFeature:n(2602),quadFeature:n(4087),renderer:n(2493),tileLayer:n(4061),trackFeature:n(2037),uniqueID:n(7376),vectorFeature:n(5747)}},9456:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(9281),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(2493).d3,i=n(5005),r=n(77),s=n(642);t=t||{},o.call(this,t),i.call(this);var l=this,u=this._init,c=r(),d=0,h=this._update;return this._init=function(t){return u.call(l,t),l},this._build=function(){var t,n,i=l.data()||[],r=l.style(),o=l.renderer(),a=l.position();for(h.call(l),r.fill=function(){return!1},i.forEach((function(n,i){var u,c,d=l.line()(n,i),h={};function f(t){return s.isFunction(t)?function(){return t(d[0],0,n,i)}:t}for(c in r)r.hasOwnProperty(c)&&(h[c]=f(r[c]));t=e.line().x((function(t){return l.featureGcsToDisplay(t).x})).y((function(t){return l.featureGcsToDisplay(t).y})).curve(l.style.get("closed")(n,i)&&d.length>2?e.curveLinearClosed:e.curveLinear),u={data:[d.map((function(t,e){return a(t,e,n,i)}))],append:"path",attributes:{d:t},id:l._svgid()+i,classes:["svgLineFeature","svgSubLine-"+i],visible:l.visible,style:h},o._drawFeatures(u)})),n=i.length;n<d;n+=1)o._removeFeature(l._svgid()+n);return d=i.length,c.modified(),l.updateTime().modified(),l},this._update=function(){return h.call(l),l.timestamp()>=c.timestamp()&&l._build(),l},this._init(t),this};i(a,o);var s={};s[o.capabilities.basic]=!0,s[o.capabilities.multicolor]=!1,r("svg","line",a,s),t.exports=a},5005:function(t,e,n){var i=function(t){"use strict";var e=n(1338),r=n(7376);if(!(this instanceof e))return new i(t);var o="svg-"+r(),a=this._exit,s=this,l=this.draw;return this._svgid=function(){return o},this.select=function(){return s.renderer().select(s._svgid())},this.draw=function(){return s.ready&&(s._update(),l()),s},this._exit=function(){s.renderer()._removeFeature(s._svgid()),a()},this};t.exports=i},9927:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(2266),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(5616),i=n(5005),r=n(77);t=t||{},o.call(this,t),i.call(this);var s=this,l=r(),u=this._update,c={style:{}};return this._build=function(){var t,n,i=s.data()||[],r=s.style.get(),o=s.style.get("position");return u.call(s),n=function(t){return"M"+t.source.x+","+t.source.y+"C"+t.source.x+","+(t.source.y+t.target.y)/2+" "+t.target.x+","+(t.source.y+t.target.y)/2+" "+t.target.x+","+t.target.y},t=[],i.forEach((function(e,n){var r,a;n<i.length-1&&(r=o(e,n),a=o(i[n+1],n+1),t.push({source:s.featureGcsToDisplay(r),target:s.featureGcsToDisplay(a)}))})),c.data=t,c.attributes={d:n},c.id=s._svgid(),c.append="path",c.classes=["svgPathFeature"],c.style=e.extend({fill:function(){return!1},fillColor:{r:0,g:0,b:0}},r),c.visible=s.visible,s.renderer()._drawFeatures(c),l.modified(),s.updateTime().modified(),s},this._update=function(){return u.call(s),s.dataTime().timestamp()>=l.timestamp()&&s._build(),s},this._init(t),this};i(a,o),r("svg","path",a),t.exports=a},2602:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(7541),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(5005),i=n(77);t=t||{},o.call(this,t),e.call(this);var r=this,s=this._init,l=this._update,u=i(),c={};return this._init=function(t){return s.call(r,t),r},this._build=function(){var t=r.data(),e=r.style.get(),n=r.renderer(),i=r.position();return l.call(r),t||(t=[]),c.id=r._svgid(),c.data=t,c.append="circle",c.attributes={r:n._convertScale(e.radius),cx:function(t){return r.featureGcsToDisplay(i(t)).x},cy:function(t){return r.featureGcsToDisplay(i(t)).y}},c.style=e,c.classes=["svgPointFeature"],c.visible=r.visible,r.renderer()._drawFeatures(c),u.modified(),r.updateTime().modified(),r},this._update=function(){return l.call(r),r.timestamp()>=u.timestamp()&&r._build(),r},this._init(t),this};i(a,o);var s={};s[o.capabilities.stroke]=!0,r("svg","point",a,s),t.exports=a},4087:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(3842),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(5616),i=n(2493).d3,r=n(5005);o.call(this,t),r.call(this);var s,l=this,u=this._exit,c=this._init,d=this._update;return this._build=function(){if(this.position()){var t=l.renderer(),n=t.layer().map();s=l._generateQuads();var r=[];e.each(s.clrQuads,(function(t,e){r.push({type:"clr",quad:e,zIndex:e.pos[2]})})),e.each(s.imgQuads,(function(t,e){e.image&&r.push({type:"img",quad:e,zIndex:e.pos[2]})}));var o={id:l._svgid(),data:r,dataIndex:function(t){return t.quad.quadId},append:function(t){var e=this.namespaceURI,n="clr"===t.type?"polygon":"image";return e?document.createElementNS(e,n):document.createElement(n)},attributes:{fill:function(t){if("clr"===t.type)return i.rgb(255*t.quad.color.r,255*t.quad.color.g,255*t.quad.color.b);1!==t.quad.opacity&&i.select(this).style("opacity",t.quad.opacity)},height:function(t){return"clr"===t.type?void 0:1},points:function(e){if("clr"===e.type&&!e.points){var i,r=[];for(i=0;i<e.quad.pos.length;i+=3){var o={x:e.quad.pos[i],y:e.quad.pos[i+1],z:e.quad.pos[i+2]};o=n.gcsToDisplay(o,null),o=t.baseToLocal(o),r.push(o.x+","+o.y)}e.points=r[0]+" "+r[1]+" "+r[3]+" "+r[2]}return"clr"===e.type?e.points:void 0},preserveAspectRatio:function(t){return"clr"===t.type?void 0:"none"},reference:function(t){return t.quad.reference},stroke:!1,transform:function(e){if("img"===e.type&&e.quad.image&&!e.svgTransform){var i,r,o,a,s=[],l=-1,u=e.quad.image.width,c=e.quad.image.height;for(o=0;o<e.quad.pos.length;o+=3){var d={x:e.quad.pos[o],y:e.quad.pos[o+1],z:e.quad.pos[o+2]};d=n.gcsToDisplay(d,null),d=t.baseToLocal(d),s.push(d)}for(o=0;o<4;o+=1)(i=Math.abs(s[(o+1)%4].x*(s[(o+2)%4].y-s[(o+3)%4].y)+s[(o+2)%4].x*(s[(o+3)%4].y-s[(o+1)%4].y)+s[(o+3)%4].x*(s[(o+1)%4].y-s[(o+2)%4].y))/2)>l&&(l=i,r=o);e.svgTransform=[3===r||2===r?s[1].x-s[0].x:s[3].x-s[2].x,3===r||2===r?s[1].y-s[0].y:s[3].y-s[2].y,0===r||2===r?s[1].x-s[3].x:s[0].x-s[2].x,0===r||2===r?s[1].y-s[3].y:s[0].y-s[2].y,2===r?s[3].x+s[0].x-s[1].x:s[2].x,2===r?s[3].y+s[0].y-s[1].y:s[2].y],Math.abs(e.svgTransform[1]/u)<1e-6&&Math.abs(e.svgTransform[2]/c)<1e-6&&(a=e.svgTransform[0]/u,e.svgTransform[4]=Math.round(e.svgTransform[4]/a)*a,a=e.svgTransform[3]/c,e.svgTransform[5]=Math.round(e.svgTransform[5]/a)*a)}return"img"===e.type&&e.quad.image?"matrix("+e.svgTransform.join(" ")+")":void 0},width:function(t){return"clr"===t.type?void 0:1},x:function(t){return"clr"===t.type?void 0:0},"xlink:href":function(t){return"clr"!==t.type&&t.quad.image?t.quad.image.src:void 0},y:function(t){return"clr"===t.type?void 0:0}},style:{fillOpacity:function(t){return"clr"===t.type?t.quad.opacity:void 0}},onlyRenderNew:!this.style("previewColor")&&!this.style("previewImage"),sortByZ:!0,visible:l.visible,classes:["svgQuadFeature"]};t._drawFeatures(o),l.buildTime().modified()}},this._update=function(){return d.call(l),(l.buildTime().timestamp()<=l.dataTime().timestamp()||l.buildTime().timestamp()<l.timestamp())&&l._build(),l},this._init=function(){c.call(l,t)},this._exit=function(){u.call(l)},l._init(t),this};i(a,o);var s={};s[o.capabilities.color]=!0,s[o.capabilities.image]=!0,s[o.capabilities.imageCrop]=!1,s[o.capabilities.imageFixedScale]=!1,s[o.capabilities.imageFull]=!1,s[o.capabilities.canvas]=!1,s[o.capabilities.video]=!1,r("svg","quad",a,s),t.exports=a},4765:function(t){t.exports="geo_svg_rescale"},2493:function(t,e,n){var i=n(4626),r=n(1098).registerRenderer,o=n(2274),a=function(t){"use strict";var e=a.d3,i=n(5005),r=n(642),s=n(6409),l=n(4765);if(!(this instanceof a))return new a(t);o.call(this,t);var u=this._exit;i.call(this,t),t=t||{};var c=this,d=null,h={},f=null,p=null,m=1,g={dx:0,dy:0,rx:0,ry:0,rotation:0},y={},v={},x=null,_=null;function b(t){return t?x.select(".group-"+t):x.select(".group-"+c._svgid())}function w(){var t=c.layer().map(),e=t.size().width,n=t.size().height;if(!e||!n)throw new Error("Map layer has size 0");c._setWidthHeight(e,n),p=Math.pow(e*e+n*n,.5),f={upperLeft:t.displayToGcs({x:0,y:0},null),lowerRight:t.displayToGcs({x:e,y:n},null),center:t.displayToGcs({x:e/2,y:n/2},null)}}return this._convertColor=function(t,n){return t=r.ensureFunction(t),n=n||function(){return!0},function(){var i="none";return n.apply(c,arguments)&&(i=t.apply(c,arguments)).hasOwnProperty("r")&&i.hasOwnProperty("g")&&i.hasOwnProperty("b")&&(i=e.rgb(255*i.r,255*i.g,255*i.b)),i}},this._convertScale=function(t){return t=r.ensureFunction(t),function(){return t.apply(c,arguments)/m}},this._setTransform=function(){if(f||w(),d){var t,e,n,i,r,o,a=c.layer().map(),s=a.gcsToDisplay(f.upperLeft,null),l=a.gcsToDisplay(f.lowerRight,null),u=a.gcsToDisplay(f.center,null),h=b();n=Math.sqrt(Math.pow(l.y-s.y,2)+Math.pow(l.x-s.x,2))/p,i=a.rotation(),r=-c.width()/2,o=-c.height()/2,t=n*r+u.x,e=n*o+u.y,i||(t=Math.round(t),e=Math.round(e));var y="matrix("+[n,0,0,n,t,e].join()+")";i&&(y+=" rotate("+[180*i/Math.PI,-r,-o].join()+")"),h.attr("transform",y),m=n,g.dx=t,g.dy=e,g.rx=r,g.ry=o,g.rotation=i}},this.baseToLocal=function(t){if(t={x:(t.x-g.dx)/m,y:(t.y-g.dy)/m},g.rotation){var e=Math.sin(-g.rotation),n=Math.cos(-g.rotation),i=t.x+g.rx,r=t.y+g.ry;t={x:i*n-r*e-g.rx,y:i*e+r*n-g.ry}}return t},this.localToBase=function(t){if(g.rotation){var e=Math.sin(g.rotation),n=Math.cos(g.rotation),i=t.x+g.rx,r=t.y+g.ry;t={x:i*n-r*e-g.rx,y:i*e+r*n-g.ry}}return t={x:t.x*m+g.dx,y:t.y*m+g.dy}},this._init=function(t){if(!c.canvas()){var n;t.widget=t.widget||!1,(x="d3Parent"in t?e.select(t.d3Parent).append("svg"):e.select(c.layer().node().get(0)).append("svg")).attr("display","block");var i=(_=x.append("defs")).append("filter").attr("id","geo-highlight").attr("x","-100%").attr("y","-100%").attr("width","300%").attr("height","300%");i.append("feMorphology").attr("operator","dilate").attr("radius",2).attr("in","SourceAlpha").attr("result","dilateOut"),i.append("feGaussianBlur").attr("stdDeviation",5).attr("in","dilateOut").attr("result","blurOut"),i.append("feColorMatrix").attr("type","matrix").attr("values","-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0").attr("in","blurOut").attr("result","invertOut"),i.append("feBlend").attr("in","SourceGraphic").attr("in2","invertOut").attr("mode","normal"),t.widget||(n=t.canvas||x.append("g")),(i=_.append("filter").attr("id","geo-blur").attr("x","-100%").attr("y","-100%").attr("width","300%").attr("height","300%")).append("feGaussianBlur").attr("stdDeviation",20).attr("in","SourceGraphic"),d=c.layer().sticky(),x.attr("class",c._svgid()),x.attr("width",c.layer().node().width()),x.attr("height",c.layer().node().height()),t.widget?c.canvas(x):(n.attr("class","group-"+c._svgid()),c.canvas(n))}return c._setTransform(),c},this.api=function(){return a.apiname},this.scaleFactor=function(){return m},this._resize=function(t,e,n,i){return f||w(),x.attr("width",n),x.attr("height",i),c._setTransform(),c._setWidthHeight(n,i),c.layer().geoTrigger(l,{scale:m},!0),c},this._exit=function(){h={},c.canvas().remove(),x.remove(),x=void 0,_.remove(),_=void 0,y={},v={},u()},this._definitions=function(){return _},this._drawFeatures=function(t){return h[t.id]={data:t.data,index:t.dataIndex,style:t.style,visible:t.visible,attributes:t.attributes,classes:t.classes,append:t.append,onlyRenderNew:t.onlyRenderNew,sortByZ:t.sortByZ,parentId:t.parentId},c.__render(t.id,t.parentId)},this.__render=function(t,e){var n;if(void 0===t){for(n in h)h.hasOwnProperty(n)&&c.__render(n);return c}return e?c._renderFeature(t,e):(y[t]=!0,c.layer().map().scheduleAnimationFrame(c._renderFrame)),c},this._renderFrame=function(){var t;for(t in v)c.select(t).remove(),_.selectAll("."+t).remove();v={};var e=y;for(t in y={},e)e.hasOwnProperty(t)&&c._renderFeature(t)},this._renderFeature=function(t,e){if(!h[t])return c;var n,i,r=h[t].data,o=h[t].index,a=h[t].style,s=h[t].visible,l=h[t].attributes,u=h[t].classes,d=h[t].append,f=c.select(t,e).data(r,o);return n=f.enter().append(d),f.exit().remove(),function(t,e){var n;for(n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}(i=n,l),i.attr("class",u.concat([t]).join(" ")),function(t,e){var n,i,r;function o(){return e.fill.apply(c,arguments)?null:"none"}function a(){return e.stroke.apply(c,arguments)?null:"none"}for(n in e)e.hasOwnProperty(n)&&(r=null,i=null,"strokeColor"===n?(i="stroke",r=c._convertColor(e[n],e.stroke)):"stroke"===n&&e[n]&&!e.hasOwnProperty("strokeColor")?(i="stroke",r=a):"strokeWidth"===n?(i="stroke-width",r=c._convertScale(e[n])):"strokeOpacity"===n?(i="stroke-opacity",r=e[n]):"fillColor"===n?(i="fill",r=c._convertColor(e[n],e.fill)):"fill"!==n||e.hasOwnProperty("fillColor")?"fillOpacity"===n?(i="fill-opacity",r=e[n]):"lineCap"===n?(i="stroke-linecap",r=e[n]):"lineJoin"===n?(i="stroke-linejoin",r=e[n]):"miterLimit"===n&&(i="stroke-miterlimit",r=e[n]):(i="fill",r=o),i&&t.style(i,r))}(i,a),s&&i.style("visibility",s()?"visible":"hidden"),n.size()&&h[t].sortByZ&&f.sort((function(t,e){return(t.zIndex||0)-(e.zIndex||0)})),c},this.select=function(t,e){return b(e).selectAll("."+t)},this._removeFeature=function(t){return v[t]=!0,c.layer().map().scheduleAnimationFrame(c._renderFrame),delete h[t],y[t]&&delete y[t],c},this.draw=function(){},this.layer().geoOn(s.pan,c._setTransform),this.layer().geoOn(s.rotate,c._setTransform),this.layer().geoOn(s.zoom,(function(){c._setTransform(),c.__render(),c.layer().geoTrigger(l,{scale:m},!0)})),this.layer().geoOn(s.resize,(function(t){c._resize(t.x,t.y,t.width,t.height)})),this._init(t),this};a.apiname="svg",i(a,o),r("svg",a),r("d3",a),a.supported=function(){delete a.d3;try{a.d3=n(3893),a.d3&&a.d3.rgb||(a.d3=void 0)}catch(t){}return void 0!==a.d3},a.fallback=function(){return null},a.supported(),t.exports=a},4061:function(t,e,n){var i=function(){"use strict";var t,e=this,n=this._init,i=this._exit,r=this._update,o=0,a=[];this._drawTile=function(n){if(t){var i=e._tileBounds(n),r=n.index.level||0,s=e._tileOffset(r),l={};l.ul=e.fromLocal(e.fromLevel({x:i.left-s.x,y:i.top-s.y},r),0),l.ll=e.fromLocal(e.fromLevel({x:i.left-s.x,y:i.bottom-s.y},r),0),l.ur=e.fromLocal(e.fromLevel({x:i.right-s.x,y:i.top-s.y},r),0),l.lr=e.fromLocal(e.fromLevel({x:i.right-s.x,y:i.bottom-s.y},r),0),l.ul.z=l.ll.z=l.ur.z=l.lr.z=r,o+=1,l.id=o,n.quadId=l.id,l.image=n.image,l.reference=n.toString(),a.push(l),t.data(a),t._update(),e.draw()}},this._remove=function(n){if(void 0!==n.quadId&&t){for(var i=0;i<a.length;i+=1)if(a[i].id===n.quadId){a.splice(i,1);break}t.data(a),t._update(),e.draw()}},this._update=function(n){return r.call(e,n),e._addBaseQuadToTiles(t,a),e},this._exit=function(){e.deleteFeature(t),t=null,a=[],i.apply(e,arguments)},this._init=function(){n.apply(e,arguments),(t=e.createFeature("quad",{previewColor:e._options.previewColor,previewImage:e._options.previewImage})).geoTrigger=void 0,t.gcs(e._options.gcs||e.map().gcs()),t.data(a),t._update()},this._getSubLayer=function(){},this._updateSubLayers=void 0};(0,n(1098).registerLayerAdjustment)("svg","tile",i),t.exports=i},2037:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(338),a=function(t){"use strict";return this instanceof a?(t=t||{},o.call(this,t),n(5005).call(this),this._init(t),this):new a(t)};i(a,o),r("svg","track",a),t.exports=a},7376:function(t){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t.exports=function(){var t,n=[];for(n.length=8,t=0;t<8;t+=1)n[t]=e.charAt(Math.floor(61*Math.random()));return n.join("")}},5747:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(6858),a={arrow:{attrs:{class:"geo-vector-arrow geo-vector-marker",viewBox:"0 0 10 10",refX:1,refY:5,markerHeight:5,markerWidth:5,orient:"auto"},path:"M 0 0 L 10 5 L 0 10 z"},point:{attrs:{class:"geo-vector-point geo-vector-marker",viewBox:"0 0 12 12",refX:6,refY:6,markerHeight:8,markerWidth:8,orient:"auto"},path:"M 6 3 A 3 3 0 1 1 5.99999 3 Z"},bar:{attrs:{class:"geo-vector-bar geo-vector-marker",viewBox:"0 0 10 10",refX:0,refY:5,markerHeight:6,markerWidth:6,orient:"auto"},path:"M 0 0 L 2 0 L 2 10 L 0 10 z"},wedge:{attrs:{class:"geo-vector-wedge geo-vector-marker",viewBox:"0 0 10 10",refX:10,refY:5,markerHeight:5,markerWidth:5,orient:"auto"},path:"M 0 0 L 1 0 L 10 5 L 1 10 L 0 10 L 9 5 L 0 0"}},s=function(t){"use strict";if(!(this instanceof s))return new s(t);var e=n(5005),i=n(77),r=n(2493).d3;t=t||{},o.call(this,t),e.call(this);var l=this,u=this._exit,c=this._update,d=i(),h={};function f(t,e,n){return l._svgid()+"_marker_"+e+"_"+n}function p(t,e,n,i,o){var s=l.renderer()._definitions().selectAll("g.marker-group#"+l._svgid()).data(t.length?[1]:[]);s.enter().append("g").attr("id",l._svgid).attr("class","marker-group"),s.exit().remove();var u=t.reduce((function(t,e,n){var r=a[o(e,n)],s=a[i(e,n)];return r&&t.push({data:e,dataIndex:n,head:!0}),s&&t.push({data:e,dataIndex:n,head:!1}),t}),[]),c=(s=l.renderer()._definitions().selectAll("g.marker-group#"+l._svgid())).selectAll("marker.geo-vector-marker").data(u),d=l.renderer();c.enter().append("marker").each((function(t){var e=r.select(this),n=t.head?a[o(t.data,t.dataIndex)]:a[i(t.data,t.dataIndex)];Object.keys(n.attrs).forEach((function(t){e.attr(t,n.attrs[t])}))})).attr("id",(function(t){return f(t.data,t.dataIndex,t.head?"head":"tail")})).style("stroke",(function(t){return d._convertColor(e)(t.data,t.dataIndex)})).style("fill",(function(t){return d._convertColor(e)(t.data,t.dataIndex)})).style("opacity",(function(t){return n(t.data,t.dataIndex)})).append("path").attr("d",(function(t){return t.head?a[o(t.data,t.dataIndex)].path:a[i(t.data,t.dataIndex)].path})),c.exit().remove()}return this._build=function(){var t,e=l.data(),n=l.style.get(),i=l.renderer(),r=l.origin(),o=l.delta(),a=l.style("scale"),s=0;function u(){return a/i.scaleFactor()}return c.call(l),e||(e=[]),t=e.map((function(t,e){var n=l.featureGcsToDisplay(r(t,e)),i=o(t,e);return s=Math.max(s,i.x*i.x+i.y*i.y),{x1:n.x,y1:n.y,dx:i.x,dy:-i.y}})),s=Math.sqrt(s),a||(a=75/(s||1)),h.id=l._svgid(),h.data=e,h.append="line",h.attributes={x1:function(e,n){return t[n].x1},y1:function(e,n){return t[n].y1},x2:function(e,n){return t[n].x1+u()*t[n].dx},y2:function(e,n){return t[n].y1+u()*t[n].dy},"marker-start":function(t,e){return"url(#"+f(0,e,"tail")+")"},"marker-end":function(t,e){return"url(#"+f(0,e,"head")+")"}},h.style={stroke:function(){return!0},strokeColor:n.strokeColor,strokeWidth:n.strokeWidth,strokeOpacity:n.strokeOpacity,originStyle:n.originStyle,endStyle:n.endStyle},h.classes=["svgVectorFeature"],h.visible=l.visible,p(e,n.strokeColor,n.strokeOpacity,n.originStyle,n.endStyle),l.renderer()._drawFeatures(h),d.modified(),l.updateTime().modified(),l},this._update=function(){return c.call(l),l.timestamp()>=d.timestamp()?l._build():p(h.data,h.style.strokeColor,h.style.strokeOpacity,h.style.originStyle,h.style.endStyle),l},this._exit=function(){u.call(l),h={},p([],null,null,null,null)},this._init(t),this};s.markerConfigs=a,i(s,o),r("svg","vector",s),t.exports=s},6546:function(t,e,n){var i=n(4626),r=n(1275),o=function(t){"use strict";if(!(this instanceof o))return new o(t);t=t||{},r.call(this,t);var e=n(5616),i=this,a=this._init;return this.featureType="text",this.position=function(t){return void 0===t?i.style("position"):(t!==i.style("position")&&(i.style("position",t),i.dataTime().modified(),i.modified()),i)},this.text=function(t){return void 0===t?i.style("text"):(t!==i.style("text")&&(i.style("text",t),i.dataTime().modified(),i.modified()),i)},this._init=function(t){t=t||{},a.call(i,t);var n=e.extend({},{font:"bold 16px sans-serif",textAlign:"center",textBaseline:"middle",color:{r:0,g:0,b:0},rotation:0,rotateWithMap:!1,textScaled:!1,position:function(t){return Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:t},text:function(t){return t.text}},void 0===t.style?{}:t.style);void 0!==t.position&&(n.position=t.position),void 0!==t.text&&(n.text=t.text),i.style(n),n.position&&i.position(n.position),n.text&&i.text(n.text),i.dataTime().modified()},this._init(t),i};o.usedStyles=["visible","font","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","lineHeight","fontFamily","textAlign","textBaseline","color","textOpacity","rotation","rotateWithMap","textScaled","offset","shadowColor","shadowOffset","shadowBlur","shadowRotate","textStrokeColor","textStrokeWidth"],o.create=function(t,e){"use strict";return(e=e||{}).type="text",r.create(t,e)},o.capabilities={feature:"text"},i(o,r),t.exports=o},5289:function(t,e,n){var i=n(5616),r=function(t){if(!(this instanceof r))return new r(t);this._index=t.index,this._size=t.size,this._overlap=t.overlap||{x:0,y:0},this._wrap=t.wrap||{x:1,y:1},this._url=t.url,this._fetched=!1,this._queue=t.queue||null,Object.defineProperty(this,"index",{get:function(){return this._index}}),Object.defineProperty(this,"size",{get:function(){return this._size}}),Object.defineProperty(this,"overlap",{get:function(){return this._overlap}}),this.fetch=function(){return this._fetched||i.get(this._url).done(function(){this._fetched=!0}.bind(this)).promise(this),this},this.fetched=function(){return this._fetched},this.then=function(t,e){return this.fetched()||!this._queue||!this._queue.add||this.state&&"pending"!==this.state()?this.fetch():this._queue.add(this,this.fetch),this.done&&this.fail?this.done(t).fail(e):this.then(t,e),this},this.catch=function(t){return this.then(void 0,t),this},this.toString=function(){return[this._index.level||0,this._index.y,this._index.x,this._index.reference||0].join("_")},this.bounds=function(t,e){var n,i,r,o;return i=(n=this.size.x*(this.index.x-t.x)-this.overlap.x-e.x)+this.size.x+2*this.overlap.x,r=(o=this.size.y*(this.index.y-t.y)-this.overlap.y-e.y)+this.size.y+2*this.overlap.y,this.overlap.x&&this.index.x===t.x&&(n+=this.overlap.x),this.overlap.y&&this.index.y===t.y&&(o+=this.overlap.y),{left:n,right:i,bottom:r,top:o}},Object.defineProperty(this,"bottom",{get:function(){return this.size.y*(this.index.y+1)+this.overlap.y}}),Object.defineProperty(this,"top",{get:function(){return this.size.y*this.index.y-(this.index.y?this.overlap.y:0)}}),Object.defineProperty(this,"left",{get:function(){return this.size.x*this.index.x-(this.index.x?this.overlap.x:0)}}),Object.defineProperty(this,"right",{get:function(){return this.size.x*(this.index.x+1)+this.overlap.x}}),this.fadeIn=function(t){return i.noop(t),this}};t.exports=r},9123:function(t){var e=function(t){return this instanceof e?(t=t||{},this._size=t.size||64,Object.defineProperty(this,"size",{get:function(){return this._size},set:function(t){for(;this._atime.length>t;)this.remove(this._atime[this._atime.length-1]);this._size=t}}),Object.defineProperty(this,"length",{get:function(){return this._atime.length}}),this._access=function(t){return this._atime.indexOf(t)},this.remove=function(t){var e="string"==typeof t?t:t.toString();return e in this._cache&&(this._atime.splice(this._access(e),1),delete this._cache[e],!0)},this.clear=function(){return this._cache={},this._atime=[],this},this.get=function(t,e){return(t="string"==typeof t?t:t.toString())in this._cache?(e||(this._atime.splice(this._access(t),1),this._atime.unshift(t)),this._cache[t]):null},this.add=function(t,e,n){this.remove(t);var i=t.toString();this._cache[i]=t,this._atime.unshift(i),n||this.purge(e)},this.purge=function(t){for(var e;this._atime.length>this.size;){e=this._atime.pop();var n=this._cache[e];t&&t(n),delete this._cache[e]}},this.clear(),this):new e(t)};t.exports=e},9264:function(t,e,n){var i=n(4626),r=n(6498);function o(t,e){return(t%e+e)%e}function a(t){var e,n=/\$?\{(s|S|[sS]:[^{}]+|[^-{}]-[^-{}]|([^,{}]+,)+[^,{}]+)\}/,i=t.replace(new RegExp(n,"g"),"{s}").replace(/\$?\{[xX]\}/g,"{x}").replace(/\$?\{[yY]\}/g,"{y}").replace(/\$?\{[zZ]\}/g,"{z}"),r=t.match(n);if(r)if(r[2])e=r[1].split(",");else if(":"===r[1][1])e=r[1].substr(2).split("");else if("-"===r[1][1]){e=[];for(var a=r[1].charCodeAt(0),s=r[1].charCodeAt(2),l=Math.min(a,s);l<=Math.max(a,s);l+=1)e.push(String.fromCharCode(l))}return function(t,n,r,a){return i.replace(/\{s\}/g,function(t,e,n,i){return i[o(t+e+n,i.length)]}(t,n,r,e||a)).replace(/\{x\}/g,t).replace(/\{y\}/g,n).replace(/\{z\}/g,r)}}var s=function(t){"use strict";if(!(this instanceof s))return new s(t);r.call(this,t);var e=n(5616),i=n(6409),l=n(5325),u=n(9123),c=n(5938),d=n(1098).adjustLayerForRenderer,h=n(5289);if((t=e.extend(!0,{},this.constructor.defaults,t||{})).cacheSize||(t.cacheSize=t.keepLower?600:200),"string"===e.type(t.subdomains)&&(t.subdomains=t.subdomains.split("")),t.baseUrl){var f=t.baseUrl;f&&"/"!==f.charAt(f.length-1)&&(f+="/"),t.url=f+"{z}/{x}/{y}."+(t.imageFormat||"png")}t.originalUrl=t.url,"string"===e.type(t.url)&&(t.url=a(t.url));var p,m,g,y=this._init,v=this._exit,x=this.visible,_=t.queueSize||6,b=t.initialQueueSize||0,w=[],M={},A=[],T=t.nearestPixel,C=this;this._options=e.extend(!0,{},t),this.attribution(t.attribution),this._activeTiles={},this._tileTree={},this._cache=u({size:t.cacheSize}),this._queue=t.queue||c({size:_,initialSize:b,track:t.cacheSize,needed:function(t){return this._tileLayers&&this._tileLayers.length?this._tileLayers.some((function(e){return t===e.cache.get(t.toString(),!0)})):t===C.cache.get(t.toString(),!0)}}),this._queue._tileLayers=this._queue._tileLayers||[],this._queue._tileLayers.push(C),this._queue.initialTrack&&this._queue.track&&(this._queue.track=this._queue.initialTrack*this._queue._tileLayers.length);var E={};return Object.defineProperty(this,"options",{get:function(){return e.extend({},C._options)}}),Object.defineProperty(this,"cache",{get:function(){return C._cache}}),Object.defineProperty(this,"activeTiles",{get:function(){return e.extend({},C._activeTiles)}}),Object.defineProperty(this,"queue",{get:function(){return C._queue},set:function(t){C._queue!==t&&(this._queue&&this._queue._tileLayers&&this._queue._tileLayers.indexOf(C)>=0&&(this._queue._tileLayers.splice(this._queue._tileLayers.indexOf(C),1),this._queue.initialTrack&&this._queue.track&&this._queue._tileLayers.length&&(this._queue.track=this._queue.initialTrack*this._queue._tileLayers.length)),C._queue=t,C._queue._tileLayers=C._queue._tileLayers||[],C._queue._tileLayers.push(C),C._queue.initialTrack&&C._queue.track&&(C._queue.track=C._queue.initialTrack*C._queue._tileLayers.length))}}),Object.defineProperty(this,"queueSize",{get:function(){return _},set:function(t){_=t,C._queue.size=t}}),Object.defineProperty(this,"initialQueueSize",{get:function(){return b},set:function(t){b=t||0,C._queue.initialSize=t||_}}),Object.defineProperty(this,"reference",{get:function(){return C.id()+"_"+(p||0)},set:function(t){p=t},configurable:!0}),this.tilesAtZoom=function(t){if(C._options.tilesAtZoom)return C._options.tilesAtZoom.call(C,t);var e=Math.pow(2,t);return{x:e,y:e}},this.tilesMaxBounds=function(t){return C._options.tilesMaxBounds?C._options.tilesMaxBounds.call(C,t):null},this.tileCropFromBounds=function(t){if(C._options.tilesMaxBounds){var e=t.index.level,n=C._tileBounds(t);return void 0===A[e]&&(A[e]=C.tilesMaxBounds(e)||null),A[e]&&(n.right>A[e].x||n.bottom>A[e].y)?{x:Math.max(0,Math.min(A[e].x,n.right)-n.left),y:Math.max(0,Math.min(A[e].y,n.bottom)-n.top)}:void 0}},this.isValid=function(t){return C._options.minLevel<=t.level&&t.level<=C._options.maxLevel&&(!!(C._options.wrapX||0<=t.x&&t.x<=C.tilesAtZoom(t.level).x-1)&&!!(C._options.wrapY||0<=t.y&&t.y<=C.tilesAtZoom(t.level).y-1))},this._origin=function(t){var e,n=C.toLevel(C.toLocal(C.map().origin()),t),i=C._options;return{index:e={x:Math.floor(n.x/i.tileWidth),y:Math.floor(n.y/i.tileHeight)},offset:{x:n.x-i.tileWidth*e.x,y:n.y-i.tileHeight*e.y}}},this._tileBounds=function(t){var e=C._origin(t.index.level);return t.bounds(e.index,e.offset)},this.tileAtPoint=function(t,e){var n=C._origin(e),i=C.map();t=C.displayToLevel(i.gcsToDisplay(t,null),e),isNaN(t.x)&&(t.x=0),isNaN(t.y)&&(t.y=0);var r=C._tileOffset(e);return r&&(t.x+=r.x,t.y+=r.y),{x:Math.floor(n.index.x+(n.offset.x+t.x)/C._options.tileWidth),y:Math.floor(n.index.y+(n.offset.y+t.y)/C._options.tileHeight)}},this.gcsTileBounds=function(t,e){var n=t.index?t:h({index:t,size:{x:C._options.tileWidth,y:C._options.tileHeight},url:""}),i=C._tileOffset(n.index.level),r=n.bounds({x:0,y:0},i),o=C.map(),a=o.unitsPerPixel(n.index.level),s=[{x:r.left*a,y:C._topDown()*r.top*a},{x:r.right*a,y:C._topDown()*r.bottom*a}];return(e=null===e?o.gcs():void 0===e?o.ingcs():e)!==o.gcs()&&(s=l.transformCoordinates(o.gcs(),e,s)),{left:s[0].x,top:s[0].y,right:s[1].x,bottom:s[1].y}},this._getTile=function(t,e){var n=e||t;return h({index:t,size:{x:C._options.tileWidth,y:C._options.tileHeight},queue:C._queue,url:C._options.url.call(C,n.x,n.y,n.level||0,C._options.subdomains)})},this._getTileCached=function(t,e,n){var i=C.cache.get(C._tileHash(t));return null===i&&(i=C._getTile(t,e),C.cache.add(i,C.remove,n)),i},this._tileHash=function(t){return[t.level||0,t.y,t.x,t.reference||0].join("_")},this._getTileRange=function(t,e){var n=[C.tileAtPoint({x:e.left,y:e.top},t),C.tileAtPoint({x:e.right,y:e.top},t),C.tileAtPoint({x:e.left,y:e.bottom},t),C.tileAtPoint({x:e.right,y:e.bottom},t)];return{start:{x:Math.min(n[0].x,n[1].x,n[2].x,n[3].x),y:Math.min(n[0].y,n[1].y,n[2].y,n[3].y)},end:{x:Math.max(n[0].x,n[1].x,n[2].x,n[3].x),y:Math.max(n[0].y,n[1].y,n[2].y,n[3].y)}}},this._getTiles=function(t,n,i,r){var a,s,l,u,c,d,h,f,p,m,g,y=[],v=!1,x=C._options.keepLower?C._options.minLevel:Math.min(Math.max(t,C._options.minLevel),C._options.maxLevel);for(t<x&&(t=x),g=x;g<=t&&(c=(h=C._getTileRange(g,n)).start,d=h.end,u=C.tilesAtZoom(g),C._options.wrapX||(c.x=Math.min(Math.max(c.x,0),u.x-1),d.x=Math.min(Math.max(d.x,0),u.x-1),g===x&&C._options.keepLower&&(c.x=0,d.x=u.x-1)),C._options.wrapY||(c.y=Math.min(Math.max(c.y,0),u.y-1),d.y=Math.min(Math.max(d.y,0),u.y-1),g===x&&C._options.keepLower&&(c.y=0,d.y=u.y-1)),!(C._options.gcs&&C._options.gcs!==C.map().gcs()&&g!==x&&(d.x+1-c.x)*(d.y+1-c.y)>C.map().size().width*C.map().size().height/C._options.tileWidth/C._options.tileHeight*16));g+=1)for(a=c.x;a<=d.x;a+=1)for(s=c.y;s<=d.y;s+=1)l={level:g,x:a,y:s,reference:C.reference},f={level:g,x:a,y:s,reference:C.reference},C._options.wrapX&&(f.x=o(f.x,u.x)),C._options.wrapY&&(f.y=o(f.y,u.y)),C.isValid(f)&&(r&&y.length<w.length&&(m=w[y.length],v=v||l.level!==m.level||l.x!==m.x||l.y!==m.y),y.push({index:l,source:f}));if(r){if(!v&&y.length===w.length)return;w.splice(0,w.length),e.each(y,(function(t,e){w.push(e.index)}))}if(i){p={x:(c.x+d.x)/2,y:(c.y+d.y)/2,level:t,bottomLevel:t};for(var _=Math.max(d.x-c.x,d.y-c.y)+1;_>=1;_/=2)p.bottomLevel-=1;y.sort(C._loadMetric(p)),C._queue&&C._queue.batch(!0)}for(C.cache.size<y.length&&(console.log("Increasing cache size to "+y.length),C.cache.size=y.length),a=0;a<y.length;a+=1)y[a]=C._getTileCached(y[a].index,y[a].source,!0);return C.cache.purge(C.remove),y},this.gcs=function(t){if(void 0===t)return C._options.gcs||C.map().gcs();var e=C.gcs();return null===t?delete C._options.gcs:C._options.gcs=t,C.gcs()!==e&&(C.clear(),C.gcsFeatures(C.gcs()),C.modified(),C._update()),C},this.prefetch=function(t,n){var i;return i=C._getTiles(t,n,!0),e.when.apply(e,i.map((function(t){return t.fetch()})))},this._loadMetric=function(t){return function(e,n){var i,r,o,a,s;return e=e.index||e,n=n.index||n,e.level!==n.level?t.bottomLevel&&e.level>=t.bottomLevel!=n.level>=t.bottomLevel?e.level>=t.bottomLevel?-1:1:e.level-n.level:(s=Math.pow(2,e.level-t.level),o=(t.x+.5)*s-.5,a=(t.y+.5)*s-.5,(i=e.x-o)*i+(r=e.y-a)*r-((i=n.x-o)*i+(r=n.y-a)*r))}},this.fromLevel=function(t,e){var n=Math.pow(2,-e);return{x:t.x*n,y:t.y*n}},this.toLevel=function(t,e){var n=Math.pow(2,e);return{x:t.x*n,y:t.y*n}},this.drawTile=function(t){var e=t.toString();C._activeTiles.hasOwnProperty(e)?C._moveToTop(t):C._drawTile(t),C._activeTiles[e]=t},this._drawTile=function(t){if(null!==C.renderer())throw new Error("This draw method is not valid on renderer managed layers.");var n,i=t.index.level,r=e(C._getSubLayer(i)),o=C._tileBounds(t),a=C._options.animationDuration,s=e('<div class="geo-tile-container"/>').attr("tile-reference",t.toString());s.append(t.image),s.css({left:o.left-parseInt(r.attr("offsetx")||0,10)+"px",top:o.top-parseInt(r.attr("offsety")||0,10)+"px"}),(n=C.tileCropFromBounds(t))&&s.addClass("crop").css({width:n.x+"px",height:n.y+"px"}),a>0&&t.fadeIn(a),r.append(s),t.catch((function(){console.warn("Could not load tile at "+t.toString()),C._remove(t)}))},this.remove=function(t){var e=t.toString(),n=C._activeTiles[e];return n instanceof h&&C._remove(n),delete C._activeTiles[e],n},this._remove=function(t){t.image&&(t.image.parentElement?e(t.image.parentElement).remove():console.log("No parent element to remove "+t.toString(),t),e(t.image).remove())},this._moveToTop=function(t){e.noop(t)},this._getViewBounds=function(){var t=C.map(),e=t.zoom(),n=C._options.tileRounding(e),i=Math.pow(2,e-n),r=t.size(),o=C.displayToLevel({x:0,y:0}),a=C.displayToLevel({x:r.width,y:0}),s=C.displayToLevel({x:0,y:r.height}),l=C.displayToLevel({x:r.width,y:r.height});return{level:n,scale:i,left:Math.min(o.x,a.x,s.x,l.x),right:Math.max(o.x,a.x,s.x,l.x),top:Math.min(o.y,a.y,s.y,l.y),bottom:Math.max(o.y,a.y,s.y,l.y)}},this._purge=function(t,e,n){var i,r;if(C._updating)return C;for(r in n||(n=C._getViewBounds()),C._activeTiles)i=C._activeTiles[r],C._canPurge(i,n,t,e)&&C.remove(i);return C},this.clear=function(){var t,e=[];for(t in C._activeTiles)e.push(C.remove(t));return C._tileTree={},w=[],e},this.reset=function(){return C.clear(),C._cache.clear(),C._queue.initialSize=b,C},this.toLocal=function(t,e){var n=C.map(),i=n.unitsPerPixel(void 0===e?n.zoom():e);return{x:t.x/i,y:C._topDown()*t.y/i}},this.fromLocal=function(t,e){var n=C.map(),i=n.unitsPerPixel(void 0===e?n.zoom():e);return{x:t.x*i,y:C._topDown()*t.y*i}},this._topDown=function(){return C._options.topDown?1:-1},this._getSubLayer=function(t){if(C.canvas()){var n=C.canvas().find("div[data-tile-layer="+t.toFixed()+"]").get(0);return n||(n=e('<div class=geo-tile-layer data-tile-layer="'+t.toFixed()+'"/>').get(0),C.canvas().append(n)),n}},this._updateSubLayers=function(t,n){var i=C.canvas(),r=parseInt(i.attr("lastlevel"),10),o=parseInt(i.attr("lastoffsetx")||0,10),a=parseInt(i.attr("lastoffsety")||0,10);if(r===t&&Math.abs(o-n.left)<65536&&Math.abs(a-n.top)<65536)return{x:o,y:a};var s=C.map(),l=C._tileOffset(t),u=parseInt((n.left+n.right-s.size().width)/2+l.x,10),c=parseInt((n.top+n.bottom-s.size().height)/2+l.y,10);return i.find(".geo-tile-layer").each((function(n,i){var r=e(i),o=parseInt(r.data("tileLayer"),10);r.css("transform","scale("+Math.pow(2,t-o)+")");var a=parseInt(u/Math.pow(2,t-o),10),s=parseInt(c/Math.pow(2,t-o),10),l=a-parseInt(r.attr("offsetx")||0,10),d=s-parseInt(r.attr("offsety")||0,10);r.attr({offsetx:a,offsety:s}),r.find(".geo-tile-container").each((function(t,n){e(n).css({left:parseInt(e(n).css("left"),10)-l+"px",top:parseInt(e(n).css("top"),10)-d+"px"})}))})),i.attr({lastoffsetx:u,lastoffsety:c,lastlevel:t}),{x:u,y:c}},this._update=function(t){if(t&&t.event&&(t.event.event===i.zoom||t.event.event===i.rotate))return C;if(!C.visible())return C;var n,r=C.map(),o=r.bounds(void 0,null),a=r.zoom(),s=C._options.tileRounding(a);if(C._updateSubLayers){var l=C._getViewBounds(),u=C._updateSubLayers(s,l)||{x:0,y:0},c=C._tileOffset(s);if(null===C.renderer()){var d=Math.pow(2,a-s),h=r.rotation(),f=-c.x+-(l.left+l.right)/2+u.x,p=-c.y+-(l.bottom+l.top)/2+u.y,g=f+r.size().width/2,y=p+r.size().height/2;C.canvas().css({"transform-origin":-f+"px "+-p+"px"});var v="translate("+g+"px,"+y+"px)scale("+d+")";h&&(v+="rotate("+180*h/Math.PI+"deg)"),C.canvas().css("transform",v)}C.canvas().attr({scale:Math.pow(2,a-s),dx:-c.x+-(l.left+l.right)/2,dy:-c.y+-(l.bottom+l.top)/2,offsetx:u.x,offsety:u.y,rotation:r.rotation()})}if(void 0===(n=C._getTiles(s,o,!0,!0)))return C;if(C._tileTree={},n.forEach((function(t){if(t.fetched())delete M[t.toString()],C.drawTile(t),C._setTileTree(t);else{if(t._queued)(C._queue?C._queue.get(t):-1)>=0&&C._queue.add(t);else t.then((function(){if(!m&&t===C.cache.get(t.toString())){var e=r.zoom(),n=C._options.tileRounding(e),i=C._getViewBounds();C._canPurge(t,i,n)?C.remove(t):(C.drawTile(t),C._setTileTree(t))}})),t._queued=!0;C.addPromise(t),M[t.toString()]=t}})),e.when.apply(e,n).done((function(){var t=C.map().zoom(),e=C._options.tileRounding(t);C._purge(e,!0)})),"all"!==C._options.idleAfter)for(var x in M){var _=M[x];n.indexOf(_)<0&&(C.removePromise(_),delete M[x])}return C},this._setTileTree=function(t){if(!C._options.keepLower){var e=t.index;C._tileTree[e.level]=C._tileTree[e.level]||{},C._tileTree[e.level][e.x]=C._tileTree[e.level][e.x]||{},C._tileTree[e.level][e.x][e.y]=t}},this._getTileTree=function(t){return((C._tileTree[t.level]||{})[t.x]||{})[t.y]||null},this._isCovered=function(t){var e=t.index.level,n=t.index.x,i=t.index.y,r=[];return(r=C._getTileTree({level:e-1,x:Math.floor(n/2),y:Math.floor(i/2)}))?[r]:(r=[C._getTileTree({level:e+1,x:2*n,y:2*i}),C._getTileTree({level:e+1,x:2*n+1,y:2*i}),C._getTileTree({level:e+1,x:2*n,y:2*i+1}),C._getTileTree({level:e+1,x:2*n+1,y:2*i+1})]).every((function(t){return null!==t}))?r:null},this._outOfBounds=function(t,e){var n=C._tileOffset(t.index.level),i=1;return t.index.level!==e.level&&(i=Math.pow(2,(e.level||0)-(t.index.level||0))),(t.bottom-n.y)*i<e.top||(t.left-n.x)*i>e.right||(t.top-n.y)*i>e.bottom||(t.right-n.x)*i<e.left},this._canPurge=function(t,e,n,i){if(C._options.keepLower){if((n=n||0)<t.index.level&&t.index.level!==C._options.minLevel)return!0;if(t.index.level===C._options.minLevel&&!C._options.wrapX&&!C._options.wrapY)return!1}else if((i||C._isCovered(t))&&n!==t.index.level&&(n>=C._options.minLevel||t.index.level!==C._options.minLevel)&&(n<C._options.maxLevel||t.index.level!==C._options.maxLevel))return!0;return!!e&&C._outOfBounds(t,e)},this.displayToLevel=function(t,e){var n,i=C.map(),r=i.zoom(),o=C._options.tileRounding(r),a=i.unitsPerPixel(void 0===e?o:e);if(void 0===t){var s=i.size();t={x:s.width/2,y:s.height/2}}try{n=i.displayToGcs(t,C._options.gcs||null)}catch(t){n={x:0,y:0}}return{x:n.x/a,y:C._topDown()*n.y/a}},this.url=function(t){return void 0===t?C._options.originalUrl:(t===C._options.originalUrl||(C._options.originalUrl=t,"string"===e.type(t)&&(t=a(t)),C._options.url=t,C.reset(),C.map().draw()),C)},this.subdomains=function(t){return void 0===t?C._options.subdomains:(t&&("string"===e.type(t)&&(t=t.indexOf(",")>=0?t.split(","):t.split("")),C._options.subdomains=t,C.reset(),C.map().draw()),C)},this._tileOffset=function(t){return void 0===E[t]&&(E[t]=C._options.tileOffset(t)),E[t]},this.visible=function(t){return void 0===t?x():(C.visible()!==t&&(x(t),t&&C._update()),C)},this.nearestPixel=function(t,e){return void 0===t?T:(T!==t&&(T=t,e||(C.modified(),C._update())),C)},Object.defineProperty(this,"baseQuad",{get:function(){return C._options.baseQuad},set:function(t){C._options.baseQuad=t,C._update()}}),this._addBaseQuadToTiles=function(t,e){t&&(this.baseQuad!==g&&(g&&e.splice(0,1),(g=this.baseQuad)&&(e.splice(0,0,this.baseQuad),t.cacheUpdate(0)),t.data(e)),t._update())},this._init=function(){var t;if(y.apply(C,arguments),null===C.renderer())for(t=0;t<=C._options.maxLevel;t+=1)C._getSubLayer(t);return C},this._exit=function(){return C.reset(),v.apply(C,arguments),m=!0,this._queue&&this._queue._tileLayers&&this._queue._tileLayers.indexOf(C)>=0&&(this._queue._tileLayers.splice(this._queue._tileLayers.indexOf(C),1),this._queue.initialTrack&&this._queue.track&&this._queue._tileLayers.length&&(this._queue.track=this._queue.initialTrack*this._queue._tileLayers.length)),C},d("tile",this),this};s.defaults={minLevel:0,maxLevel:18,tileOverlap:{x:0,y:0},tileWidth:256,tileHeight:256,wrapX:!0,wrapY:!1,url:null,subdomains:"abc",tileOffset:function(t){return{x:0,y:0}},tilesMaxBounds:null,topDown:!1,keepLower:!0,idleAfter:"view",tileRounding:Math.round,attribution:"",animationDuration:0},i(s,r),t.exports=s},77:function(t){var e=0,n=function(){"use strict";if(!(this instanceof n))return new n;var t=this,i=0;return this.modified=function(){return i=e+=1,t},this.timestamp=function(){return i},this.getMTime=this.timestamp,this};t.exports=n},338:function(t,e,n){var i=n(4626),r=n(1275),o=n(1098),a=n(642),s=function(t){"use strict";if(!(this instanceof s))return new s(t);var e=n(5616),i=n(5325);t=t||{},r.call(this,t);var l,u,c,d,h,f=this,p={},m={startTime:void 0!==t.startTime?t.startTime:null,endTime:void 0!==t.endTime?t.endTime:null,duration:void 0!==t.duration?t.duration:null,start:0,end:0},g=this.draw,y=this._exit,v=this._init,x=this.modified,_=this.style,b=this._update;return this.featureType="track",this._linePosition=function(t){return function(e,n,i,r){var o=m.timeFunc(e,n,i,r);return"past"===t&&o>=m.start||"current"===t&&o<m.start?m.startPosition[r]:"current"===t&&o>m.end||"future"===t&&o<m.end?m.endPosition[r]:m.positionFunc(e,n,i,r)}},this._headPosition=function(t,e){return m.endPosition[e]},this._headText=function(t,e){return m.text[e]},this._updateTimeRange=function(){null!==m.endTime||null===m.endTime&&(null===m.startTime||null==m.duration)?(m.end=null!==m.endTime?m.endTime:m.timeExtents.end,null!==m.startTime&&(null===m.endTime||m.startTime<=m.endTime)?m.start=m.startTime:null!==m.duration?m.start=m.end-m.duration:m.start=m.timeExtents.start):(m.start=m.startTime,m.end=m.start+m.duration)},this.calculateTimePosition=function(t,e,n){f.dataTime().timestamp()>=f.buildTime().timestamp()&&f._build(),e=null===e?f.layer().map().gcs():void 0===e?f.gcs():e;var r=i({source:f.gcs(),target:e}),o=f.data(),a=[],s=o.map((function(e,n){var i=m.trackFunc(e,n);if(a.push(i),!i.length)return{x:0,y:0,z:0,posidx:-1};var r,o,s,l,u=0,c=i.length-1;if(1===i.length)return{posidx:u,angidx0:u,angidx1:u};if((r=m.timeFunc(i[u],u,e,n))>=t)return{posidx:u,angidx0:u,angidx1:u+1};if((o=m.timeFunc(i[c],c,e,n))<=t)return{posidx:c,angidx0:c-1,angidx1:c};for(;c-u>1;){if(s=Math.floor((c+u)/2),(l=m.timeFunc(i[s],s,e,n))===t)return{posidx:s,angidx0:s-1,angidx1:s+1};l<t?(r=l,u=s):(o=l,c=s)}var d=(t-r)/(o-r);return{posidx0:u,posidx1:c,factor0:1-d,factor1:d,angidx0:u,angidx1:c}}));return s.forEach((function(t,e){var i,o,s;t.posidx<0||(void 0===t.posidx1?i=m.positionFunc(a[e][t.posidx],t.posidx,a[e],e):(o=r.forward(m.positionFunc(a[e][t.posidx0],t.posidx0,a[e],e),!0),s=r.forward(m.positionFunc(a[e][t.posidx1],t.posidx1,a[e],e),!0),i=r.inverse({x:o.x*t.factor0+s.x*t.factor1,y:o.y*t.factor0+s.y*t.factor1,z:(o.z||0)*t.factor0+(s.z||0)*t.factor1},!0)),t.x=i.x,t.y=i.y,t.z=i.z||0,n&&(void 0===t.posidx1&&(o=r.forward(t.angidx0===t.posidx?i:m.positionFunc(a[e][t.angidx0],t.angidx0,a[e],e),!0),s=r.forward(t.angidx1===t.posidx?i:m.positionFunc(a[e][t.angidx1],t.angidx1,a[e],e),!0)),t.angle=Math.atan2(s.y-o.y,s.x-o.x)))})),s},this._build=function(){f.buildTime().modified(),l||(l={past:f.layer().createFeature("line"),future:f.layer().createFeature("line"),current:f.layer().createFeature("line")},f.dependentFeatures([l.past,l.current,l.future]));var t=f.data();m.data=t,m.timeFunc=f.style.get("time"),m.positionFunc=f.style.get("position"),m.trackFunc=f.style.get("track"),m.textFunc=f.style.get("text"),["past","current","future"].forEach((function(e){l[e].style(f.style()).style(f[e+"Style"]()).line(f.style("track")).gcs(f.gcs()).data(t).position(f._linePosition(e))}));var e,n,i={};if(t.forEach((function(t,e){var n,r=m.trackFunc(t,e);r.length&&(n=m.timeFunc(r[0],0,t,e),(void 0===i.start||n<i.start)&&(i.start=n),r.length>1&&(n=m.timeFunc(r[r.length-1],r.length-1,t,e)),(void 0===i.end||n>i.end)&&(i.end=n))})),m.timeExtents=i,f._updateTimeRange(),m.startPosition=f.calculateTimePosition(m.start,null),m.endPosition=f.calculateTimePosition(m.end,null,!0),m.text=t.map((function(t,i){var r=m.textFunc(t,i);return e|=null==r,null==r||""===r?"":(n=!0,m.startPosition[i].posidx<0&&(r=""),r)})),e&&!c){if(!(o.registries.features[f.layer().rendererName()]||{}).marker){var r=o.rendererForFeatures(["marker"]);u=o.createLayer("feature",f.layer().map(),{renderer:r}),f.layer().addChild(u),f.layer().node().append(u.node())}c=(u||f.layer()).createFeature("marker");var a=f.dependentFeatures();a.push(c),f.dependentFeatures(a)}if(n&&!h){if(!(o.registries.features[f.layer().rendererName()]||{}).text){var s=o.rendererForFeatures(["text"]);d=o.createLayer("feature",f.layer().map(),{renderer:s}),f.layer().addChild(d),f.layer().node().append(d.node())}h=(d||f.layer()).createFeature("text");var p=f.dependentFeatures();p.push(h),f.dependentFeatures(p)}if(c){c.headData=m.endPosition,c.style(f.markerStyle()).gcs(f.gcs()).data(t).position(f._headPosition);var g=c.style.get("radius");c.style("radius",(function(t,e){return m.text[e]||m.startPosition[e].posidx<0?0:g(t,e)}))}return h&&(h.headData=m.endPosition,h.style(f.textStyle()).gcs(f.gcs()).data(t).text(f._headText).position(f._headPosition)),f},this._updateTimeAndPosition=function(){l&&(f._updateTimeRange(),m.startPosition=f.calculateTimePosition(m.start,null),m.endPosition=f.calculateTimePosition(m.end,null,!0),l.past.modified(),l.current.modified(),l.future.modified(),c&&c.modified(),h&&h.modified(),f.updateTime().modified(),f.modified())},this._update=function(){return b.call(f),(f.dataTime().timestamp()>=f.buildTime().timestamp()||f.updateTime().timestamp()<=f.timestamp())&&f._build(),f.updateTime().modified(),f},this.draw=function(){var t=g();return l&&(l.past.draw(),l.current.draw(),l.future.draw()),c&&c.draw(),h&&h.draw(),t},this.modified=function(){var t=x();return l&&(l.past.modified(),l.current.modified(),l.future.modified()),c&&c.modified(),h&&h.modified(),t},this.style=function(t,n,i){return"style"===(i=i||"style")?_(t,n):void 0===t?p[i]:"string"==typeof t&&void 0===n?(p[i]||{})[t]:(void 0===p[i]&&(p[i]={}),void 0===n?p[i]=e.extend(!0,p[i],t):p[i][t]=n,f.modified(),f)},this.style.get=_.get,["markerStyle","textStyle","pastStyle","currentStyle","futureStyle"].forEach((function(t){f[t]=function(e,n){return f.style(e,n,t)}})),this.track=function(t){return void 0===t?f.style("track"):(f.style("track",t),f.dataTime().modified(),f.modified(),f)},this.position=function(t){return void 0===t?f.style("position"):(f.style("position",t),f.dataTime().modified(),f.modified(),f)},this.time=function(t){return void 0===t?f.style("time"):(f.style("time",t),f.dataTime().modified(),f.modified(),f)},this.timeRange=function(t){if(void 0===t)return{startTime:m.startTime,endTime:m.endTime,duration:m.duration,start:m.start,end:m.end,minimum:(m.timeExtents||{}).start,maximum:(m.timeExtents||{}).end};var e=!1;return void 0!==t.startTime&&t.startTime!==m.startTime&&(m.startTime=null===t.startTime?t.startTime:+t.startTime,e=!0),void 0!==t.endTime&&t.endTime!==m.endTime&&(m.endTime=null===t.endTime?t.endTime:+t.endTime,e=!0),void 0!==t.duration&&t.duration!==m.duration&&(m.duration=null===t.duration?t.duration:+t.duration,e=!0),e&&f._updateTimeAndPosition(),f},this.startTime=function(t){return void 0===t?m.startTime:(t!==m.startTime&&(m.startTime=null===t?t:+t,f._updateTimeAndPosition()),f)},this.endTime=function(t){return void 0===t?m.endTime:(t!==m.endTime&&(m.endTime=null===t?t:+t,f._updateTimeAndPosition()),f)},this.duration=function(t){return void 0===t?m.duration:(t!==m.duration&&(m.duration=null===t?t:+t,f._updateTimeAndPosition()),f)},this._mergeSearchResults=function(t,e){return t.extra=t.extra||{},e.forEach((function(e){return e.value.index.forEach((function(n,i){t.index.indexOf(n)<0&&(t.index.push(n),t.found.push(e.value.found[i]),t.where=t.where||{},e.value.extra&&e.value.extra[n]&&(t.extra[n]=e.value.extra[n]),a.isObject(t.extra[n])||(t.extra[n]={value:t.extra[n]}),t.extra[n].where=e.key)}))})),t},this.pointSearch=function(t){var e=l.current.pointSearch(t),n=l.past.pointSearch(t),i=l.future.pointSearch(t),r=c?c.pointSearch(t):{index:[]};return this._mergeSearchResults(e,[{key:"marker",value:r},{key:"past",value:n},{key:"future",value:i}])},this.polygonSearch=function(t,e){var n=l.current.polygonSearch(t,e),i=l.past.polygonSearch(t,e),r=l.future.polygonSearch(t,e),o=c?c.polygonSearch(t,e):{index:[]};return this._mergeSearchResults(n,[{key:"marker",value:o},{key:"past",value:i},{key:"future",value:r}])},this._exit=function(){l&&f.layer()&&(f.layer().deleteFeature(l.past),f.layer().deleteFeature(l.current),f.layer().deleteFeature(l.future)),l=null,(u||f.layer())&&c&&(u||f.layer()).deleteFeature(c),u&&f.layer()&&f.layer().removeChild(u),u=null,(d||f.layer())&&h&&(d||f.layer()).deleteFeature(h),d&&f.layer()&&f.layer().removeChild(d),d=null,f.dependentFeatures([]),y()},this._init=function(t){t=t||{},v.call(f,t);var n=e.extend(!0,{},{track:a.identityFunction,position:a.identityFunction,time:function(t,e){return void 0!==t.t?t.t:e},uniformLine:"drop",closed:!1},void 0===t.style?{}:t.style),i=e.extend(!0,{},{rotateWithMap:!0,rotation:function(t,e){return-m.endPosition[e].angle||0}},void 0===t.markerStyle?{}:t.markerStyle),r=e.extend(!0,{},{rotateWithMap:!0,rotation:function(t,e){return void 0!==m.endPosition[e].angle?-m.endPosition[e].angle+Math.PI/2:0}},void 0===t.textStyle?{}:t.textStyle),o=e.extend(!0,{},{strokeOpacity:.25},void 0===t.pastStyle?{}:t.pastStyle),s=e.extend(!0,{},{},void 0===t.currentStyle?{}:t.currentStyle),l=e.extend(!0,{},{strokeOpacity:.25},void 0===t.futureStyle?{}:t.futureStyle);["track","position","time"].forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),f.style(n),f.markerStyle(i),f.textStyle(r),f.pastStyle(o),f.currentStyle(s),f.futureStyle(l)},this};i(s,r),t.exports=s},5325:function(t,e,n){var i=n(1960),r=n(1982),o=n(3503),a=n(642);i=i.__esModule?i.default:i;var s=n(9689);s.keys().forEach((function(t){i.Proj.projections.add(s(t))}));var l={},u=/^(.* |)\+axis=e(n|s)u(| .*)$/,c=/(^|\s)\+(s[1-3][1-3]|[xyz]off)=\S/,d=function(t){"use strict";if(!(this instanceof d))return(t=t||{}).source in l||(Object.keys(l).length>=10&&(l={}),l[t.source]={}),t.target in l[t.source]||(Object.keys(l[t.source]).length>=10&&(l[t.source]={}),l[t.source][t.target]=new d(t)),l[t.source][t.target];var e,n,s,u,h,f,p,m=this,g={s11:0,s12:4,s13:8,xoff:12,s21:1,s22:5,s23:9,yoff:13,s31:2,s32:6,s33:10,zoff:14};function y(t){if(!c.exec(t))return{proj:t};var e,n,i=a.mat4AsArray(),r=[];return t.split(/(\s+)/).forEach((function(t){var e=/^\+(s[1-3][1-3]|[xyz]off)=(.*)$/.exec(t);e?i[g[e[1]]]=parseFloat(e[2]):r.push(t)})),n={proj:r.join(" "),orig:t},(e=o.invert(a.mat4AsArray(),i))?(n.matrix=i,n.inverse=e):console.warn("Affine transform is not invertable and will not be used: "+t),n}function v(){var t=y(m.source()),n=y(m.target()),r=t.proj,o=n.proj;u=t.matrix,h=t.inverse,f=n.matrix,p=n.inverse,e=new i(r,o)}this.source=function(t){return void 0===t?n||"EPSG:4326":(n=t,v(),m)},this.target=function(t){return void 0===t?s||"EPSG:3857":(s=t,v(),m)},this._forward=function(t){if(u){var n=r.transformMat4(a.vec3AsArray(),[t.x,t.y,t.z||0],h);t={x:n[0],y:n[1],z:n[2]}}var i=e.forward(t,!0);if(i.z=t.z||0,f){var o=r.transformMat4(a.vec3AsArray(),[i.x,i.y,i.z],f);i={x:o[0],y:o[1],z:o[2]}}return i},this._inverse=function(t){if(f){var n=r.transformMat4(a.vec3AsArray(),[t.x,t.y,t.z||0],p);t={x:n[0],y:n[1],z:n[2]}}var i=e.inverse(t,!0);if(i.z=t.z||0,u){var o=r.transformMat4(a.vec3AsArray(),[i.x,i.y,i.z],u);i={x:o[0],y:o[1],z:o[2]}}return i},this.forward=function(t){return Array.isArray(t)?t.map(m._forward):m._forward(t)},this.inverse=function(t){return Array.isArray(t)?t.map(m._inverse):m._inverse(t)},t=t||{};try{this.source(t.source)}catch(e){console.error("Can't use transform source: "+t.source),this.source("EPSG:4326")}try{this.target(t.target)}catch(e){console.error("Can't use transform target: "+t.target),this.target("EPSG:3857")}return this};d.defs=i.defs,d.lookup=function(t){var e,r,o=n(5616),a=o.Deferred();return i.defs.hasOwnProperty(t)?a.resolve(i.defs[t]):2!==(r=t.split(":")).length||"EPSG"!==r[0].toUpperCase()?a.reject("Invalid projection code").promise():(e=r[1],o.ajax({url:"https://epsg.io/?q="+e+"&format=json"}).done((function(e){var n=(e.results||[])[0];return n&&n.proj4?(i.defs(t,n.proj4),o.when(i.defs[t])):a.reject(e).promise()})))},d.transformCoordinates=function(t,e,n,i){"use strict";if(t===e||Array.isArray(n)&&!n.length)return n;if(Array.isArray(n)&&n.length>=3&&3===i&&!a.isObject(n[0])&&!c.test(t)&&!c.test(e))return d.transformCoordinatesFlatArray3(t,e,n);if(Array.isArray(n)&&n.length&&a.isObject(n[0])&&"x"in n[0]&&"y"in n[0]){var r=t.match(u),o=e.match(u);if(r&&o&&r[1]===o[1]&&r[3]===o[3])return"z"in n[0]?n.map((function(t){return{x:+t.x,y:-t.y,z:+t.z||0}})):n.map((function(t){return{x:+t.x,y:-t.y}}))}var s,l=d({source:t,target:e});return a.isObject(n)&&"x"in n&&"y"in n?(s=l.forward({x:+n.x,y:+n.y,z:+n.z||0},!0),"z"in n?s:{x:s.x,y:s.y}):Array.isArray(n)&&1===n.length&&a.isObject(n[0])&&"x"in n[0]&&"y"in n[0]?(s=l.forward({x:+n[0].x,y:+n[0].y,z:+n[0].z||0},!0),"z"in n[0]?[s]:[{x:s.x,y:s.y}]):d.transformCoordinatesArray(l,n,i)},d.transformCoordinatesArray=function(t,e,n){var i,r,o,s,l,u,c,d,h,f={};function p(){if(Array.isArray(e[0]))if(2===e[0].length)s=function(t){return+e[t][0]},l=function(t){return+e[t][1]},c=function(t,e,n){d[t]=[e,n]};else{if(3!==e[0].length)throw new Error("Invalid coordinates. Requires two or three components per array");s=function(t){return+e[t][0]},l=function(t){return+e[t][1]},u=function(t){return+e[t][2]},c=function(t,e,n,i){d[t]=[e,n,i]}}else if(2===e.length)o=2,s=function(t){return+e[t*o]},l=function(t){return+e[t*o+1]},c=function(t,e,n){d[t]=e,d[t+1]=n};else if(3===e.length)o=3,s=function(t){return+e[t*o]},l=function(t){return+e[t*o+1]},u=function(t){return+e[t*o+2]},c=function(t,e,n,i){d[t]=e,d[t+1]=n,d[t+2]=i};else{if(!n)throw new Error("Invalid coordinates");if(2!==n&&3!==n)throw new Error("Number of components should be two or three");o=n,s=function(t){return+e[t]},l=function(t){return+e[t+1]},2===n?c=function(t,e,n){d[t]=e,d[t+1]=n}:(u=function(t){return+e[t+2]},c=function(t,e,n,i){d[t]=e,d[t+1]=n,d[t+2]=i})}}if(u=function(){return 0},!Array.isArray(e))throw new Error("Coordinates are not valid");if((d=[]).length=e.length,r=e.length,!e.length)return d;for(Array.isArray(e[0])||a.isObject(e[0])?(o=1,Array.isArray(e[0])?p():a.isObject(e[0])&&function(){if(!(e[0]&&"x"in e[0]&&"y"in e[0]))throw new Error("Invalid coordinates");s=function(t){return+e[t].x},l=function(t){return+e[t].y},"z"in e[0]?(u=function(t){return+e[t].z},c=function(t,e,n,r){d[i]={x:e,y:n,z:r}}):c=function(t,e,n){d[t]={x:e,y:n}}}()):p(),i=0;i<r;i+=o)f.x=s(i),f.y=l(i),f.z=u(i),h=t.forward(f,!0),c(i,h.x,h.y,h.z);return d},d.transformCoordinatesFlatArray3=function(t,e,n){"use strict";var r,o=t.match(u),a=e.match(u);if(o&&a&&o[1]===a[1]&&o[3]===a[3]){for(r=n.length-3+1;r>=0;r-=3)n[r]*=-1;return n}var s,l=i.Proj(t),c=i.Proj(e),d={},h=new i(l,c);for(r=n.length-3;r>=0;r-=3)d.x=+n[r],d.y=+n[r+1],d.z=+(n[r+2]||0),s=h.forward(d,!0),n[r]=s.x,n[r+1]=s.y,n[r+2]=void 0===s.z?d.z:s.z;return n},d.affineForward=function(t,e){"use strict";var n,i=t.origin,r=t.scale||{x:1,y:1,z:1};for(n=0;n<e.length;n+=1)e[n].x=(e[n].x-i.x)*r.x,e[n].y=(e[n].y-i.y)*r.y,e[n].z=((e[n].z||0)-(i.z||0))*r.z;return e},d.affineInverse=function(t,e){"use strict";var n,i=t.origin,r=t.scale||{x:1,y:1,z:1};for(n=0;n<e.length;n+=1)e[n].x=e[n].x/r.x+i.x,e[n].y=e[n].y/r.y+i.y,e[n].z=(e[n].z||0)/r.z+(i.z||0);return e},d.sphericalDistance=function(t,e,n,r,o){if(r=r||"EPSG:4326",o=o||i.WGS84,(n=n||r)!==r){var a=d.transformCoordinates(n,r,[t,e]);t=a[0],e=a[1]}var s=t.y*Math.PI/180,l=e.y*Math.PI/180,u=(e.x-t.x)*Math.PI/180,c=Math.sin(s),h=Math.cos(s),f=Math.sin(l),p=Math.cos(l),m=Math.atan2(Math.pow(Math.pow(p*Math.sin(u),2)+Math.pow(h*f-c*p*Math.cos(u),2),.5),c*f+h*p*Math.cos(u));return o.a*m},d.vincentyDistance=function(t,e,n,r,o,a){if(r=r||"EPSG:4326",o=o||i.WGS84,a=a||100,(n=n||r)!==r){var s=d.transformCoordinates(n,r,[t,e]);t=s[0],e=s[1]}var l,u,c,h,f,p,m,g,y,v,x=o.a,_=o.b||o.a*(1-(o.f||1/o.rf)),b=o.f||(o.rf?1/o.rf:1-_/x),w=t.y*Math.PI/180,M=e.y*Math.PI/180,A=((e.x-t.x)%360+360)%360*Math.PI/180,T=Math.atan((1-b)*Math.tan(w)),C=Math.atan((1-b)*Math.tan(M)),E=Math.sin(T),k=Math.cos(T),S=Math.sin(C),O=Math.cos(C),P=A,L=A+2*Math.PI;if(w===M&&!A)return{distance:0,alpha1:0,alpha2:0};for(v=a;v>0&&Math.abs(P-L)>1e-12;v-=1)l=Math.pow(Math.pow(O*Math.sin(P),2)+Math.pow(k*S-E*O*Math.cos(P),2),.5),u=E*S+k*O*Math.cos(P),c=Math.atan2(l,u),h=k*O*Math.sin(P)/l,L=P,P=A+(1-(m=b/16*(f=1-Math.pow(h,2))*(4+b*(4-3*f))))*b*h*(c+m*l*((p=u-(f?2*E*S/f:0))+m*u*(2*Math.pow(p,2)-1)));return v?{distance:_*(1+(g=f*(x*x-_*_)/(_*_))/16384*(4096+g*(g*(320-175*g)-768)))*(c-(y=g/1024*(256+g*(g*(74-47*g)-128)))*l*(p+y/4*(u*(2*Math.pow(p,2)-1)-y/6*p*(4*l*l-3)*(4*Math.pow(p,2)-3)))),alpha1:Math.atan2(O*Math.sin(P),k*S-E*O*Math.cos(P)),alpha2:Math.atan2(k*Math.sin(P),-E*O+k*S*Math.cos(P))}:void 0},d.onlyInvertedY=function(t,e){var n=t.match(u),i=e.match(u);return n&&i&&n[1]===i[1]&&n[3]===i[3]},d.proj4=i,t.exports=d},3170:function(t){t.exports={}},5734:function(t,e,n){var i=n(2493).d3,r=n(8524),o=n(4626),a=n(1098).registerWidget,s=n(642),l=n(7376);n(1159);var u=function(t){"use strict";if(!(this instanceof u))return new u(t);r.call(this,t);var e=this,n=[],o=t.width||300,a=t.ticks||6,d=this._init;return this._init=function(){d();var n=e.canvas();i.select(n).attr("class","color-legend-container"),e.popup=i.select(n).append("div").attr("class","color-legend-popup"),t.categories&&e.categories(t.categories)},this._draw=function(){if(i.select(e.canvas()).selectAll("div.geojs-color-legends").remove(),n.length){i.select(e.canvas()).style("display","block");var t=i.select(e.canvas()).append("div").attr("class","geojs-color-legends"),r=o;n.forEach((function(n,i){var o=t.append("div").attr("class","geojs-color-legend");o.append("div").attr("class","geojs-title").text(n.name);var a=o.append("svg").attr("class","svg").attr("width",r).attr("height","40px").attr("viewBox","-20 0 "+r+" 40");"discrete"===n.type?e._drawDiscrete(a,r-40,n):"continuous"===n.type&&e._drawContinous(a,r-40,n)}))}else i.select(e.canvas()).style("display","none")},this.categories=function(t){return void 0===t?n:(n=e._prepareCategories(t),e._draw(),e)},this.addCategories=function(t){return n=n.concat(e._prepareCategories(t)),e._draw(),e},this.removeCategories=function(t){return n=n.filter((function(e){return-1===t.indexOf(e)})),e._draw(),e},this._prepareCategories=function(t){return t.forEach((function(t){t.color=t.colors.map((function(t){return s.convertColorToHex(t,!0)}))})),t},this._drawDiscrete=function(t,n,r){function o(t){var e=Math.ceil(t.domain().length/a),n=t.domain().filter((function(t,n){return n%e==0}));return i.axisBottom(t).tickFormat(i.format(".2s")).tickValues(n)}if(-1===["linear","log","sqrt","pow","quantile","ordinal"].indexOf(r.scale))throw new Error("unsupported scale");var l,u,d,h,f,p,m;if("ordinal"===r.scale){d=i.scaleOrdinal().domain(r.domain).range(r.colors),e._renderDiscreteColors(t,r.domain,d,n,(function(t){return t})),h=i.scaleBand().domain(r.domain).rangeRound([0,n]);var g=Math.ceil(r.domain.length/a),y=r.domain.filter((function(t,e){return e%g==0}));f=i.axisBottom(h).tickValues(y)}else if("quantile"===r.scale){l=[0,r.colors.length],p=s.range(0,r.colors.length-1),u=i.scaleQuantile().domain(r.domain).range(p),d=i.scaleQuantize().domain(l).range(r.colors),e._renderDiscreteColors(t,p,d,n,(function(t){return u.invertExtent(t).join(" - ")}));var v=[u.invertExtent(0)[0]];v=v.concat(p.map((function(t){return u.invertExtent(t)[1]}))),f=o(h=i.scalePoint().domain(v).range([0,n]))}else if(-1!==["linear","log","sqrt","pow"].indexOf(r.scale)){l=[0,r.colors.length],u=i["scale"+r.scale.charAt(0).toUpperCase()+r.scale.slice(1)]().domain(r.domain).range(l).nice(),d=i.scaleQuantize().domain(l).range(r.colors),p=s.range(0,r.colors.length-1);var x=Math.max.apply(null,r.domain.map((function(t){return c(t)})));e._renderDiscreteColors(t,p,d,n,(function(t){return e._popupFormatter(u.invert(t),x)+" - "+e._popupFormatter(u.invert(t+1),x)})),(m=p.slice()).push(r.colors.length),f=o(h=i.scalePoint().domain(m.map((function(t){return u.invert(t)}))).range([0,n]))}r.endAxisLabelOnly&&f.tickValues([h.domain()[0],h.domain()[h.domain().length-1]]),e._renderAxis(t,f)},this._renderDiscreteColors=function(t,n,i,r,o){t.selectAll("rect").data(n).enter().append("rect").attr("width",r/n.length).attr("height","20px").attr("fill",(function(t){return i(t)})).attr("transform",(function(t,e){return"translate("+e*r/n.length+" ,0)"})).on("mousemove",(function(t,n){e._showPopup(t,o(n))})).on("mouseout",e._hidePopup)},this._drawContinous=function(t,n,r){var o,s,u;if(-1===["linear","log","sqrt","pow"].indexOf(r.scale))throw new Error("unsupported scale");var d=[0];for(u=1;u<r.domain.length-1;u++)d.push(n/(r.domain.length-1)*u);d.push(n),o=i["scale"+r.scale.charAt(0).toUpperCase()+r.scale.slice(1)]().domain(r.domain).range(d).nice(),"log"===r.scale&&r.base&&o.base(r.base),"pow"===r.scale&&r.exponent&&o.exponent(r.exponent);var h=l(),f=Math.max.apply(null,r.domain.map((function(t){return c(t)}))),p=t.append("defs").append("linearGradient").attr("id","gradient"+h);for(p.append("stop").attr("offset","0%").attr("stop-color",r.colors[0]),u=1;u<r.colors.length-1;u++)p.append("stop").attr("offset",(100/(r.colors.length-1)*u).toFixed(6)+"%").attr("stop-color",r.colors[u]);p.append("stop").attr("offset","100%").attr("stop-color",r.colors[r.colors.length-1]),t.append("rect").attr("fill","url(#gradient"+h+")").attr("width",n).attr("height","20px").on("mousemove",(function(t){var n=o.invert(i.pointer(t)[0]),r=e._popupFormatter(n,f);e._showPopup(t,r)})).on("mouseout",e._hidePopup),s=i.axisBottom(o).ticks(a,".2s"),r.endAxisLabelOnly&&s.tickValues([r.domain[0],r.domain[r.domain.length-1]]),e._renderAxis(t,s)},this._renderAxis=function(t,e){t.append("g").attr("class","axis x").attr("transform","translate(0, 20)").call(e)},this._popupFormatter=function(t,e){return t=parseFloat(t.toFixed(8)),e=Math.min(e,c(t)),e=Math.min(e,Math.max(3,7-Math.trunc(t).toString().length)),i.format("."+e+"f")(t)},this._showPopup=function(t,n){var r=i.pointer(t,e.canvas());e.popup.text(n);var o=e.canvas().clientWidth,a=e.popup.node().clientWidth;e.popup.style("left",r[0]-(r[0]+a-o>-10?a:0)+"px").style("top",r[1]-22+"px").transition().duration(200).style("opacity",1)},this._hidePopup=function(){e.popup.transition().duration(200).style("opacity",0)},this};function c(t){if(!isFinite(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;){if(!isFinite(t*e))return 0;e*=10,n++}return n}o(u,r),a("dom","colorLegend",u),t.exports=u},8524:function(t,e,n){var i=n(8738),r=n(4626),o=n(1098).registerWidget,a=function(t){"use strict";if(!(this instanceof a))return new a(t);i.call(this,t);var e=this;return this._init=function(){return t.hasOwnProperty("parent")&&t.parent.addChild(e),e._createCanvas(),e._appendCanvasToParent(),e.canvas().addEventListener("mousedown",(function(t){t.stopPropagation()})),e.reposition(),e},this._createCanvas=function(){e.canvas(document.createElement(t.el||"div"))},this};r(a,i),o("dom","dom",a),t.exports=a},4812:function(t,e,n){t.exports={colorLegendWidget:n(5734),domWidget:n(8524),legendWidget:n(9443),scaleWidget:n(2894),sliderWidget:n(3019),svgWidget:n(7854),uiLayer:n(4231),widget:n(8738)}},9443:function(t,e,n){var i=n(7854),r=n(4626),o=n(1098).registerWidget,a=function(t){"use strict";if(!(this instanceof a))return new a(t);i.call(this,t);var e=n(2493).d3,r=n(6409),o=this,s=[],l=null,u=null,c=null;this.categories=function(t){return void 0===t?s.slice():(s=t.slice().map((function(t){return"line"===t.type&&(t.style.fill=!1,t.style.stroke=!0),t})),o.draw(),o)},this.size=function(){var t,n=1,i=e.select(o.canvas()).append("text").style("opacity",1e-6);return s.forEach((function(t){i.text(t.name),n=Math.max(n,i.node().getBBox().width)})),i.remove(),t=20*(s.length+1),{width:n+50,height:t}},this.draw=function(){function t(t){t.style("fill",(function(t){return t.style.fill||void 0===t.style.fill?t.style.fillColor:"none"})).style("fill-opacity",(function(t){return void 0===t.style.fillOpacity?1:t.style.fillOpacity})).style("stroke",(function(t){return t.style.stroke||void 0===t.style.stroke?t.style.strokeColor:"none"})).style("stroke-opacity",(function(t){return void 0===t.style.strokeOpacity?1:t.style.strokeOpacity})).style("stroke-width",(function(t){return void 0===t.style.strokeWidth?1.5:t.style.strokeWidth}))}o._init(),c.attr("height",o.size().height+24).style("display",null);var e=o._scale(),n=u.selectAll("g.geo-label").data(s,(function(t){return t.name})).enter().append("g").attr("class","geo-label").attr("transform",(function(t,n){return"translate(0,"+e.y(n)+")"}));return t(n.filter((function(t){return"point"!==t.type&&"line"!==t.type})).append("rect").attr("x",0).attr("y",-6).attr("rx",5).attr("ry",5).attr("width",40).attr("height",12)),t(n.filter((function(t){return"point"===t.type})).append("circle").attr("cx",20).attr("cy",0).attr("r",6)),t(n.filter((function(t){return"line"===t.type})).append("line").attr("x1",0).attr("y1",0).attr("x2",40).attr("y2",0)),n.append("text").attr("x","50px").attr("y",0).attr("dy","0.3em").text((function(t){return t.name})),o.reposition(),o},this._scale=function(){return{x:e.scaleLinear().domain([0,1]).range([0,o.size().width]),y:e.scaleLinear().domain([0,s.length-1]).range([6,o.size().height-6])}},this._init=function(){l||(o._createCanvas(),o._appendCanvasToParent());var t=o.size().width+24+4,n=o.size().height+24+4;l&&l.remove(),e.select(o.canvas()).attr("width",t).attr("height",n),l=e.select(o.canvas()).append("g"),u=l.append("g").attr("transform","translate("+[14,14]+")"),(c=u.append("rect").attr("x",-12).attr("y",-12).attr("width",t-4).attr("height",n-4).attr("rx",3).attr("ry",3)).style("stroke","black").style("stroke-width","1.5px").style("fill","white").style("fill-opacity",.75).style("display","none"),u.on("mousedown",(function(t){t.stopPropagation()})),u.on("mouseover",(function(){c.transition().duration(250).style("fill-opacity",1)})),u.on("mouseout",(function(){c.transition().duration(250).style("fill-opacity",.75)})),o.reposition()},this.geoOn(r.resize,(function(){o.draw()}))};r(a,i),o("dom","legend",a),t.exports=a},2894:function(t,e,n){var i=n(5616),r=n(4626),o=n(7854),a=n(1098).registerWidget;n(615);var s=function(t){"use strict";if(!(this instanceof s))return new s(t);o.call(this,t);var e=n(6409),r=n(5325),a=n(642),l=n(2493).d3,u=this,c=this._exit,d=i.extend({},{scale:1,maxWidth:200,maxHeight:"left"===t.orientation||"right"===t.orientation?200:20,orientation:"bottom",strokeWidth:2,tickLength:10,units:"si",distance:function(t,e,n){return"+proj=longlat +axis=enu"===n?Math.sqrt(a.distance2dSquared(t,e)):r.sphericalDistance(t,e,n)}},t);this._init=function(){return u._createCanvas(),u._appendCanvasToParent(),u.reposition(),l.select(u.canvas()).attr("width",d.maxWidth).attr("height",d.maxHeight),u.geoOn(e.pan,u._update),u._render(),u},this._exit=function(){u.geoOff(e.pan,u._update),c()},this._vertical=function(){return"left"===d.orientation||"right"===d.orientation},this._scaleValue=function(t,e,n){var i,r,o,a=[{multiple:1,digits:1},{multiple:1.5,digits:2},{multiple:2,digits:1},{multiple:3,digits:1},{multiple:5,digits:1},{multiple:8,digits:1}],l=(n=s.unitsTable[n]||n||s.unitsTable[d.units]||d.units)[0];return n.forEach((function(e){t>=e.scale*(e.minimum||1)&&(l=e)})),r=Math.floor(Math.log(t/l.scale)/Math.log(l.basis||10)),(a=l.multiples||a).forEach((function(e){var n=l.scale*e.multiple*Math.pow(10,r);n<=t&&(i=e,o=n)})),{html:(i.multiple*Math.pow(10,r)).toFixed(Math.max(0,-r+i.digits-1))+" "+l.unit,value:o,pixels:o/t*e,power:r,multiple:i,unitRecord:l,originalValue:t,originalPixels:e}},this._render=function(){var t,e,n,r,o,a,s=l.select(u.canvas()),c=u.layer().map(),h=d.maxWidth,f=d.maxHeight,p=d.strokeWidth,m=.5*p,g=d.tickLength,y=u._vertical();if(t=(y?d.maxHeight:d.maxWidth)-p,n={x:(e={x:(e=i(s.node()).offset()).left+("left"===d.orientation?h-m:m),y:e.top+("top"===d.orientation?f-m:m)}).x+(y?0:t),y:e.y+(y?t:0)},(r=d.distance(c.displayToGcs(e,null),c.displayToGcs(n,null),c.gcs())*d.scale)<=0||!isFinite(r))console.warn("The distance calculated for the scale is invalid: "+r);else{switch(o=u._scaleValue(r,t),y?f=o.pixels+p:h=o.pixels+p,s.attr("width",h).attr("height",f),s.select("polyline").empty()&&s.append("polyline").classed("geojs-scale-widget-bar",!0).attr("fill","none").attr("stroke-width",p),s.select("text").empty()&&s.append("text").classed("geojs-scale-widget-text",!0),d.orientation){case"bottom":a=[[m,g],[m,m],[h-m,m],[h-m,g]],s.select("text").attr("x",h/2).attr("y",2*p).attr("text-anchor","middle").attr("dominant-baseline","hanging");break;case"top":a=[[m,f-g],[m,f-m],[h-m,f-m],[h-m,f-g]],s.select("text").attr("x",h/2).attr("y",f-2*p).attr("text-anchor","middle").attr("dominant-baseline","alphabetic");break;case"left":a=[[h-g,m],[h-m,m],[h-m,f-m],[h-g,f-m]],s.select("text").attr("x",h-2*p).attr("y",f/2).attr("text-anchor","end").attr("dominant-baseline","middle");break;case"right":a=[[g,m],[m,m],[m,f-m],[g,f-m]],s.select("text").attr("x",2*p).attr("y",f/2).attr("text-anchor","start").attr("dominant-baseline","middle")}s.select("polyline").attr("points",a.map((function(t){return t.join(",")})).join(" ")),s.select("text").html(o.html)}},this._update=function(){u._render()},this.options=function(t,e){if(void 0===t){var n=i.extend({},d);return n.position=u.position(void 0,!0),n}return"string"==typeof t&&void 0===e?"position"===t?u.position(void 0,!0):d[t]:(void 0===e?d=i.extend(!0,d,t):d[t]=e,(t.position||"position"===t)&&u.position(t.position||e),u._render(),u)}};r(s,o),s.unitsTable={si:[{unit:"nm",scale:1e-9},{unit:"μm",scale:1e-6},{unit:"mm",scale:.001},{unit:"m",scale:1},{unit:"km",scale:1e3}],miles:[{unit:"in",scale:.0254},{unit:"in",scale:.0254,basis:12,multiples:[{multiple:1,digits:1},{multiple:1.5,digits:2},{multiple:2,digits:1},{multiple:3,digits:1},{multiple:6,digits:1},{multiple:9,digits:1}]},{unit:"ft",scale:.3048},{unit:"mi",scale:1609.344}],decmiles:[{unit:"mi",scale:1609.344}]},s.areaUnitsTable={si:[{unit:"nm²",scale:1e-18},{unit:"μm²",scale:1e-12},{unit:"mm²",scale:1e-6},{unit:"m²",scale:1},{unit:"km²",scale:1e6}],hectares:[{unit:"ha",scale:1e4}],decmiles:[{unit:"mi²",scale:2589988.110336}],miles:[{unit:"in²",scale:64516e-8},{unit:"ft²",scale:.09290304},{unit:"mi²",scale:2589988.110336}],acres:[{unit:"pl",scale:25.29285264},{unit:"rd",scale:1011.7141056},{unit:"ac",scale:4046.8564224}]},s.formatUnit=function(t,e,n,i){if(null!=t){if(!Array.isArray(e)){if(!(n=n||s.unitsTable)||!n[e||"si"])return;e=n[e||"si"]}var r;for(r=0;r<e.length-1&&!(t<e[r+1].scale);r+=1);if(t/=(e=e[r]).scale,!((i=Math.max(0,-Math.ceil(Math.log10(t))+(void 0===i||i<0?3:i)))>10)){var o=t.toFixed(i);if(i){for(;"0"===o.substr(o.length-1);)o=o.substr(0,o.length-1);"."===o.substr(o.length-1)&&(o=o.substr(0,o.length-1))}return o+" "+e.unit}}},a("dom","scale",s),t.exports=s},3019:function(t,e,n){var i=n(7854),r=n(4626),o=n(1098).registerWidget,a=function(t){"use strict";if(!(this instanceof a))return new a(t);i.call(this,t);var e,r,o,s,l,u,c,d=n(2493).d3,h=n(6409),f=this,p=this._exit,m=t.width||20,g=t.height||160,y=t.width?.5*t.width:10;function v(t,e,n,i,r){var o=e.append("g"),a=r/1024;return o.append("g").append("g").attr("transform","translate("+n+","+i+") scale("+a+") translate(-512,-512)").append("path").attr("d",t).attr("class","geo-glyphicon"),o}c={white:"#f4f4f4",black:"#505050"},this.size=function(){return{width:m,height:g}},this._init=function(){f._createCanvas(),f._appendCanvasToParent(),f.reposition();var t=d.select(f.canvas()),n=f.layer().map();function i(e,i){var o=r.invert(d.pointer(event,t.node())[1]),a=n.zoomRange();o=(1-o)*(a.max-a.min)+a.min,i?n.transition({zoom:o,ease:d.easeCubicInOut,duration:500,done:f._update()}):(n.zoom(o),f._update()),e.stopPropagation()}function a(){d.select(this).attr("filter",null),u.selectAll("circle,rect,path").transition().duration(100).style("fill",(function(t){return c[t.fill]||null})).style("stroke",(function(t){return c[t.stroke]||null}))}return t.attr("width",m).attr("height",g),e=d.scaleLinear().domain([-4,4]).range([0,m]),r=d.scaleLinear().domain([0,1]).range([1.5*m,g-1.5*m]),t=t.append("g").classed("geo-ui-slider",!0),u=t,(o=t.append("g")).append("circle").datum({fill:"white",stroke:null}).classed("geo-zoom-in",!0).attr("cx",e(0)).attr("cy",r(0)-m+2).attr("r",(m-2)/2).style("cursor","pointer").on("click",(function(){var t=n.zoom();n.transition({zoom:t+1,ease:d.easeCubicInOut,duration:500})})).on("mousedown",(function(t){t.stopPropagation()})),v("M512 81.92c-237.568 0-430.080 192.614-430.080 430.080 0 237.568 192.563 430.080 430.080 430.080s430.080-192.563 430.080-430.080c0-237.517-192.563-430.080-430.080-430.080zM564.326 564.326v206.182h-104.653v-206.182h-206.234v-104.653h206.182v-206.234h104.704v206.182h206.182v104.704h-206.182z",o,e(0),r(0)-m+2,m+4).style("cursor","pointer").style("pointer-events","none").select("path").datum({fill:"black",stroke:null}),(s=t.append("g")).append("circle").datum({fill:"white",stroke:null}).classed("geo-zoom-out",!0).attr("cx",e(0)).attr("cy",r(1)+m-2).attr("r",(m-2)/2).style("cursor","pointer").on("click",(function(){var t=n.zoom();n.transition({zoom:t-1,ease:d.easeCubicInOut,duration:500})})).on("mousedown",(function(t){t.stopPropagation()})),v("M512 81.92c-237.568 0-430.080 192.614-430.080 430.080 0 237.568 192.563 430.080 430.080 430.080s430.080-192.563 430.080-430.080c0-237.517-192.563-430.080-430.080-430.080zM770.56 459.674v104.704h-517.12v-104.704h517.12z",s,e(0),r(1)+m-2,m+4).style("cursor","pointer").style("pointer-events","none").select("path").datum({fill:"black",stroke:null}),t.append("rect").datum({fill:"white",stroke:"black"}).classed("geo-zoom-track",!0).attr("x",e(0)-m/6).attr("y",r(0)).attr("rx",m/10).attr("ry",m/10).attr("width",m/3).attr("height",g-3*m).style("cursor","pointer").on("click",(function(t){i(t,!0)})),l=t.append("rect").datum({fill:"black",stroke:null}).classed("geo-zoom-nub",!0).attr("x",e(-4)).attr("y",r(.5)-y/2).attr("rx",3).attr("ry",3).attr("width",m).attr("height",y).style("cursor","pointer").on("mousedown",(function(t){d.select(document).on("mousemove.geo.slider",(function(){i(t)})),d.select(document).on("mouseup.geo.slider",(function(){i(t),d.select(document).on(".geo.slider",null)})),t.stopPropagation()})),u.selectAll("*").on("mouseover",(function(){d.select(this).attr("filter","url(#geo-highlight)"),u.selectAll("rect,path,circle").transition().duration(100).style("fill",(function(t){return t.fill||null})).style("stroke",(function(t){return t.stroke||null}))})).on("mouseout",a),f.geoOn(h.zoom,f._update),a(),f._update(),f},this._exit=function(){f.geoOff(h.zoom,f._update),u.remove(),p()},this._update=function(t){var e=f.layer().map(),n=e.zoomRange(),i=e.zoom(),o=d.scaleLinear();i=(t=t||{}).value||i,o.domain([n.min,n.max]).range([1,0]).clamp(!0),l.attr("y",r(o(i))-y/2)}};r(a,i),o("dom","slider",a),t.exports=a},7854:function(t,e,n){var i=n(8738),r=n(4626),o=n(1098).registerWidget,a=function(t){"use strict";if(!(this instanceof a))return new a(t);i.call(this,t);var e=n(2493),r=this,o=this._exit,s=null;return this._init=function(){var e;return t.hasOwnProperty("parent")&&(t.parent.addChild(r),e=t.parent.canvas()),r._createCanvas(e),r.canvas().addEventListener("mousedown",(function(t){t.stopPropagation()})),r.reposition(),r},this._exit=function(){s&&s._exit(),o()},this._createCanvas=function(t){var n={layer:r.layer(),widget:!0};t&&(n.d3Parent=t),(s=e(n))._resize=function(){},r.canvas(s.canvas().node())},this};r(a,i),o("dom","svg",a),t.exports=a},4231:function(t,e,n){var i=n(4626),r=n(1098).registerLayer,o=n(5156),a=function(t){"use strict";var e=n(1098).createWidget;if(t.renderer="dom",t.sticky=!1,!(this instanceof a))return new a(t);o.call(this,t);var i=this,r=this._exit;this.createWidget=function(t,n){var r=e(t,i,n);return n&&"parent"in n||i.addChild(r),r._init(n),i.modified(),r},this.deleteWidget=function(t){return t._exit(),i.removeChild(t),i.modified(),i},this._exit=function(){i.children().forEach((function(t){i.deleteWidget(t)})),r()}};i(a,o),r("ui",a),t.exports=a},8738:function(t,e,n){var i=n(4626),r=n(5402),o=n(5616),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},r.call(this,t);var e=n(6409),i=this,s=this._exit,l=t.layer,u=null,c=void 0===t.position?{left:0,top:0}:t.position;if(!(void 0===t.parent||t.parent instanceof a))throw new Error("Parent must be of type geo.gui.widget");t.parent&&i.parent(t.parent),this._init=function(){return i.modified(),i},this._exit=function(){if(i.children().forEach((function(t){i.removeChild(t),t._exit()})),i.layer().geoOff(e.pan,i.repositionEvent),i.parentCanvas().removeChild&&i.canvas())try{i.parentCanvas().removeChild(i.canvas())}catch(t){}s()},this.layer=function(){return l||i.parent()&&i.parent().layer()},this._createCanvas=function(){throw new Error("Must be defined in derived classes")},this.canvas=function(t){return void 0===t?u:(u=t,i)},this._appendCanvasToParent=function(){i.parentCanvas().appendChild(i.canvas())},this.parentCanvas=function(){return i.parent()?i.parent().canvas():i.layer().canvas()},this.position=function(t,n){if(void 0!==t){i.layer().geoOff(e.pan,i.repositionEvent);var r={};for(var a in c)c.hasOwnProperty(a)&&(r[a]=null);return(c=t).hasOwnProperty("x")&&c.hasOwnProperty("y")&&i.layer().geoOn(e.pan,i.repositionEvent),i.reposition(o.extend(r,i.position())),i}if(c.hasOwnProperty("x")&&c.hasOwnProperty("y")&&!n){var s=i.layer().map().gcsToDisplay(c);return{left:s.x,top:s.y,right:null,bottom:null}}return c},this.reposition=function(t){if(t=t||i.position(),i.canvas()&&i.canvas().style)for(var e in i.canvas().style.position="absolute",t)t.hasOwnProperty(e)&&(/^\s*(-|\+)?(\d+(\.\d*)?|\d*\.\d+)([eE](-|\+)?\d+)?\s*$/.test(t[e])?i.canvas().style[e]=parseFloat(parseFloat(t[e]).toFixed(3))+"px":i.canvas().style[e]=t[e]);return i},this.repositionEvent=function(){return i.reposition()},this.isInViewport=function(){var t=i.position(),e=i.layer();return t.left>=0&&t.top>=0&&t.left<=e.width()&&t.top<=e.height()},c.hasOwnProperty("x")&&c.hasOwnProperty("y")&&this.layer().geoOn(e.pan,i.repositionEvent)};i(a,r),t.exports=a},5966:function(t,e,n){var i=n(5616);function r(t,e,n){this._group=t,this._zoom=e,this._points=[],this._clusters=[],this._count=0,this._parent=null,this._coord=null;var i=this;(n||[]).forEach((function(t){i._add(t)}))}function o(t){var e,o,a=n(7235);for(this._opts=i.extend({maxZoom:18,radius:5},t),this._clusters={},this._points={},e=this._opts.maxZoom;e>=0;e-=1)o=this._opts.radius*Math.pow(2,-e),this._clusters[e]=new a(o),this._points[e]=new a(o);this._topClusterLevel=new r(this,-1)}r.prototype._add=function(t){var e=1;t instanceof r?(this._clusters.push(t),e=t._count):this._points.push(t),t._parent=this,this._increment(e)},r.prototype._increment=function(t){this._coord=null,this._count+=t,this._parent&&this._parent._increment(t)},r.prototype.count=function(){return this._count},r.prototype.each=function(t){var e;for(e=0;e<this._points.length;e+=1)t.call(this,this._points[e],this._zoom);for(e=0;e<this._clusters.length;e+=1)this._clusters[e].each.call(this._clusters[e],t)},r.prototype.coords=function(){var t,e={x:0,y:0};if(this._coord)return this._coord;for(t=0;t<this._points.length;t+=1)e.x+=this._points[t].x,e.y+=this._points[t].y;for(t=0;t<this._clusters.length;t+=1)e.x+=this._clusters[t].coords().x*this._clusters[t].count(),e.y+=this._clusters[t].coords().y*this._clusters[t].count();return{x:e.x/this.count(),y:e.y/this.count()}},o.prototype.addPoint=function(t){var e,n,o,a,s,l;for(e=this._opts.maxZoom;e>=0;e-=1){if(n=this._clusters[e].getNearObject(t))return void n._add(t);if(n=this._points[e].getNearObject(t)){if(o=n._parent)for(l=o._points.length-1;l>=0;l-=1)if(o._points[l]===n){o._points.splice(l,1),o._increment(-1);break}for(o||i.noop(),a=new r(this,e,[n,t]),this._clusters[e].addObject(a,a.coords()),s=a,l=e-1;l>o._zoom;l-=1)s=new r(this,l,[s]),this._clusters[l].addObject(s,s.coords());for(o._add(s),l=e;l>=0&&this._points[l].removeObject(n,n);l-=1);return}this._points[e].addObject(t,t)}this._topClusterLevel._add(t)},o.prototype.points=function(t){return t=Math.min(Math.max(Math.floor(t),0),this._opts.maxZoom-1),this._points[Math.floor(t)].contents()},o.prototype.clusters=function(t){return t=Math.min(Math.max(Math.floor(t),0),this._opts.maxZoom-1),this._clusters[Math.floor(t)].contents()},t.exports=o},5637:function(t,e,n){var i=n(1949),r=n(7715);r=r.__esModule?r.default:r;var o={maxCount:1e3,count:0,memo:{}};function a(t,e){return o.count+=1,o.count>=o.maxCount&&(o.memo={},o.count=0),o.memo[t]=e,e}var s={convertColor:function(t){if(null==t||void 0!==t.r&&void 0!==t.g&&void 0!==t.b)return t;if(void 0!==o.memo[t])return o.memo[t];var e,n=t;if("string"==typeof t){var i=t.toLowerCase();if(r.hasOwnProperty(i))t={r:r[i][0]/255,g:r[i][1]/255,b:r[i][2]/255};else if("#"===t.charAt(0))4===t.length||5===t.length?(5===t.length&&(e=parseInt(t.slice(4),16)/15),t=4352*(3840&(t=parseInt(t.slice(1,4),16)))+272*(240&t)+17*(15&t)):7!==t.length&&9!==t.length||(9===t.length&&(e=parseInt(t.slice(7),16)/255),t=parseInt(t.slice(1,7),16));else if("transparent"===i)e=t=0;else if(i.indexOf("(")>=0)for(var l=0;l<s.cssColorConversions.length;l+=1){var u=s.cssColorConversions[l].regex.exec(i);if(u)return a(n,t=s.cssColorConversions[l].process(i,u))}}return isFinite(t)&&(t={r:((16711680&t)>>16)/255,g:((65280&t)>>8)/255,b:(255&t)/255}),void 0!==e&&t&&void 0!==t.r&&(t.a=e),a(n,t)},convertColorAndOpacity:function(t,e,n){return(t=s.convertColor(t))&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b||(t=s.convertColor(n||{r:0,g:0,b:0})),t&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b||(t={r:0,g:0,b:0}),t={r:isFinite(t.r)&&t.r>=0?t.r<=1?+t.r:1:0,g:isFinite(t.g)&&t.g>=0?t.g<=1?+t.g:1:0,b:isFinite(t.b)&&t.b>=0?t.b<=1?+t.b:1:0,a:i.isNonNullFinite(t.a)&&t.a>=0&&t.a<1?+t.a:1},i.isNonNullFinite(e)&&e<1&&(t.a=e<=0?0:t.a*e),t},convertColorToHex:function(t,e){var n,i=s.convertColor(t);return n=i.r||i.g||i.b?"#"+((1<<24)+(Math.round(255*i.r)<<16)+(Math.round(255*i.g)<<8)+Math.round(255*i.b)).toString(16).slice(1):"#000000",void 0!==i.a&&e&&(i.a<1||"needed"!==e)&&(n+=(256+Math.round(255*i.a)).toString(16).slice(1)),n},convertColorToRGBA:function(t){var e=s.convertColor(t);return e||(e={r:0,g:0,b:0}),(!i.isNonNullFinite(e.a)||e.a>1)&&(e.a=1),"rgba("+Math.round(255*e.r)+", "+Math.round(255*e.g)+", "+Math.round(255*e.b)+", "+ +(+e.a).toFixed(5)+")"},cssAngleUnitsBase:{deg:360,grad:400,rad:2*Math.PI,turn:1},cssNumberRegex:"[+-]?(?:\\d+\\.?\\d*|\\.\\d+)(?:[eE][+-]?\\d+)?"};s.cssColorConversions=[{name:"rgb",regex:new RegExp("^\\s*rgba?\\(\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*,?\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*,?\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*([/,]?\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*)?\\)\\s*$"),process:function(t,e){return t={r:Math.min(1,Math.max(0,+e[1]/(e[2]?100:255))),g:Math.min(1,Math.max(0,+e[3]/(e[4]?100:255))),b:Math.min(1,Math.max(0,+e[5]/(e[6]?100:255)))},e[7]&&(t.a=Math.min(1,Math.max(0,+e[8]/(e[9]?100:1)))),t}},{name:"hsl",regex:new RegExp("^\\s*hsla?\\(\\s*("+s.cssNumberRegex+")\\s*(deg|grad|rad|turn)?\\s*,?\\s*("+s.cssNumberRegex+")\\s*%\\s*,?\\s*("+s.cssNumberRegex+")\\s*%\\s*([/,]?\\s*("+s.cssNumberRegex+")\\s*(%?)\\s*)?\\)\\s*$"),process:function(t,e){var n=function(t,e,n){return 6*(n-=Math.floor(n))<1?t+(e-t)*n*6:6*n<3?e:6*n<4?t+(e-t)*(2/3-n)*6:t},i=+e[1]/(s.cssAngleUnitsBase[e[2]]||360),r=Math.min(1,Math.max(0,+e[3]/100)),o=Math.min(1,Math.max(0,+e[4]/100)),a=o<=.5?o*(r+1):o+r-o*r,l=2*o-a;return t={r:n(l,a,i+1/3),g:n(l,a,i),b:n(l,a,i-1/3)},e[5]&&(t.a=Math.min(1,Math.max(0,+e[6]/(e[7]?100:1)))),t}}],t.exports=s},1949:function(t,e,n){function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var r=n(5616),o=n(1960);o=o.__esModule?o.default:o;var a,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",u='<svg xmlns="http://www.w3.org/2000/svg"><foreignObject width="100%" height="100%"></foreignObject></svg>',c={},d=200,h=15;function f(){var t;for(t=0;t<arguments.length;t+=1)if(isFinite(arguments[t]))return arguments[t]}var p={pointInPolygon:function(t,e,n,i){return e.outer&&(n=e.inner,e=e.outer),!(e.length<3)&&(!(i&&i.min&&i.max&&(t.x<i.min.x||t.y<i.min.y||t.x>i.max.x||t.y>i.max.y))&&p.distanceToPolygon2d(t,n?{outer:e,inner:n}:e,!0)>0)},pointToTriangleBasis2d:function(t,e,n,i){var r=n.x-e.x,o=i.x-e.x,a=n.y-e.y,s=i.y-e.y,l=t.x-e.x,u=t.y-e.y,c=r*s-o*a;if(c)return{x:(l*s-u*o)/c,y:(l*-a+u*r)/c}},isReadyImage:function(t,e){return!!(t instanceof Image&&t.complete&&t.src&&(t.naturalWidth&&t.naturalHeight||e))},isReadyVideo:function(t,e){return!!(t instanceof HTMLVideoElement&&t.src&&void 0!==t.HAVE_CURRENT_DATA&&(t.videoWidth&&t.videoHeight&&t.readyState>=t.HAVE_CURRENT_DATA||e&&t.error))},isFunction:function(t){return"function"==typeof t},ensureFunction:function(t){return p.isFunction(t)?t:function(){return t}},isNonNullFinite:function(t){return isFinite(t)&&null!==t&&!1!==t&&""!==t},randomString:function(t){var e,n,i;for(t=t||8,e="",n=0;n<t;n+=1)i=Math.floor(62*Math.random()),e+=l.substring(i,i+1);return e},normalizeCoordinates:function(t){return t=t||{},Array.isArray(t)?{x:t[0],y:t[1],z:t[2]||0}:{x:f(t.x,t.longitude,t.lng,t.lon,0),y:f(t.y,t.latitude,t.lat,0),z:f(t.z,t.elevation,t.elev,t.height,0)}},range:function(t,e,n){n=n||1;for(var i=[],r=t;r<=e;r+=n)i.push(r);return i},compareArrays:function(t,e){return t.length===e.length&&t.every((function(t,n){return t===e[n]}))},vec3AsArray:function(){return[0,0,0]},mat3AsArray:function(){return[1,0,0,0,1,0,0,0,1]},mat4AsArray:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},getGeomBuffer:function(t,e,n,i,r){i=void 0===i?.2:i,r=void 0===r?.1:r;var o=t.sourceByName(e),a=o.data(),s=Math.floor((i+1)*n);if((a=o.data())instanceof Float32Array&&(a.length===n||a.length>=n&&a.length<=s))return a;var l=n;return a instanceof Float32Array&&a.length&&n&&r>0&&(l=Math.floor((r+1)*n)),a=new Float32Array(l),o.setData(a),a},adjustActions:function(t){var e,n;for(n=0;n<t.length;n+=1){if(e=t[n],"string"===r.type(e.input)){var i={};i[e.input]=!0,e.input=i}if(e.modifiers||(e.modifiers={}),"string"===r.type(e.modifiers)){var o={};o[e.modifiers]=!0,e.modifiers=o}}},addAction:function(t,e,n){n?t.push(e):t.unshift(e),p.adjustActions(t)},hasAction:function(t,e,n,i){e&&e.action&&(n=e.name,i=e.owner,e=e.action);for(var r=0;r<t.length;r+=1)if(!(e&&t[r].action!==e||n&&t[r].name!==n||i&&t[r].owner!==i))return t[r];return null},removeAction:function(t,e,n,i){var o,a=0;do{(o=p.hasAction(t,e,n,i))&&(t.splice(r.inArray(o,t),1),a+=1)}while(o);return a},actionMatch:function(t,e,n){var i;if(n.some((function(n){for(var r in n.input)if(n.input.hasOwnProperty(r)&&(!1===n.input[r]&&t[r]||n.input[r]&&!t[r]))return!1;for(var o in n.modifiers)if(n.modifiers.hasOwnProperty(o)&&(!1===n.modifiers[o]&&e[o]||n.modifiers[o]&&!e[o]))return!1;return i=n,!0})))return i},pixelCoordinateParams:function(t,e,n,i,o){var a,s,l;t&&(a=(t=r(t)).innerWidth(),s=t.innerHeight()),o=o||n,l=(i=i||e)!==e||o!==n;var u=Math.min(0,Math.floor(Math.log(Math.min((a||i)/i,(s||o)/o))/Math.log(2))),c=Math.ceil(Math.log(Math.max(e/i,n/o))/Math.log(2));return{map:{node:t,ingcs:"+proj=longlat +axis=esu",gcs:"+proj=longlat +axis=enu",maxBounds:{left:0,top:0,right:e,bottom:n},unitsPerPixel:Math.pow(2,c),center:{x:e/2,y:n/2},min:u,max:c,zoom:u,clampBoundsX:!0,clampBoundsY:!0,clampZoom:!0},layer:{maxLevel:c,wrapX:!1,wrapY:!1,tileOffset:function(){return{x:0,y:0}},attribution:"",tileWidth:i,tileHeight:o,tileRounding:Math.ceil,tilesAtZoom:l?function(t){var r=Math.pow(2,c-t);return{x:Math.ceil(e/i/r),y:Math.ceil(n/o/r)}}:void 0,tilesMaxBounds:l?function(t){var i=Math.pow(2,c-t);return{x:Math.floor(e/i),y:Math.floor(n/i)}}:void 0}}},centerFromPerimeter:function(t){var e,n,i,r,o,a;if(t&&t.outer&&(t=t.outer),t&&t.length){if(1===t.length)return{x:t[0].x,y:t[0].y};for(e={x:0,y:0},o=0,n=t[t.length-1],a=0;a<t.length;a+=1)i=n,n=t[a],r=Math.sqrt(Math.pow(i.x-n.x,2)+Math.pow(i.y-n.y,2)),e.x+=(n.x+i.x)*r,e.y+=(n.y+i.y)*r,o+=2*r;return e.x/=o,e.y/=o,o?e:{x:n.x,y:n.y}}},distance2dSquared:function(t,e){var n=t.x-e.x,i=t.y-e.y;return n*n+i*i},distance2dToLineSquared:function(t,e,n){var i=n.x-e.x,r=n.y-e.y,o=i*i+r*r,a=0;return o&&(a=((t.x-e.x)*i+(t.y-e.y)*r)/o,a=Math.max(0,Math.min(1,a))),p.distance2dSquared(t,{x:e.x+a*i,y:e.y+a*r})},distanceToPolygon2d:function(t,e,n){for(var i,r,o=e.outer||e,a=!1,s=0,l=o.length,u=l-1;s<l;u=s,s+=1){var c=o[s],d=o[u];c.y>t.y!=d.y>t.y&&t.x<(d.x-c.x)*(t.y-c.y)/(d.y-c.y)+c.x&&(a=!a),r=n?1:p.distance2dToLineSquared(t,c,d),(void 0===i||r<i)&&(i=r)}return e.inner&&e.inner.forEach((function(e){var r=p.distanceToPolygon2d(t,e,n);r*r<i&&(i=r*r),r>0&&(a=!a)})),(a?1:-1)*Math.sqrt(i)},triangleTwiceSignedArea2d:function(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)},crossedLineSegmentPolygon2d:function(t,e,n){var i,r,o=n.outer||n,a=o.length;for(i=0,r=a-1;i<a;r=i,i+=1)if(p.crossedLineSegments2d(t,e,o[i],o[r]))return!0;if(n.inner)for(i=0;i<n.inner.length;i+=1)if(p.crossedLineSegmentPolygon2d(t,e,n.inner[i]))return!0;return!1},crossedLineSegments2d:function(t,e,n,i){return!(t.x>n.x&&t.x>i.x&&e.x>n.x&&e.x>i.x||t.x<n.x&&t.x<i.x&&e.x<n.x&&e.x<i.x||t.y>n.y&&t.y>i.y&&e.y>n.y&&e.y>i.y||t.y<n.y&&t.y<i.y&&e.y<n.y&&e.y<i.y)&&(!(t.x===n.x&&t.y===n.y||t.x===i.x&&t.y===i.y||e.x===n.x&&e.y===n.y||e.x===i.x&&e.y===i.y)&&!(p.triangleTwiceSignedArea2d(t,e,n)*p.triangleTwiceSignedArea2d(t,e,i)>0||p.triangleTwiceSignedArea2d(n,i,t)*p.triangleTwiceSignedArea2d(n,i,e)>0))},segmentCrossesLineList2d:function(t,e,n){return n.some((function(n){return n.some((function(i,r){return!!r&&p.crossedLineSegments2d(t,e,n[r-1],i)}))}))},rdpLineSimplify:function(t,e,n,i){if(t.length<=2||e<0)return t;var r,o,a,s=-1,l=e*e;if(n){for(r=1;r<t.length;r+=1)(o=p.distance2dSquared(t[0],t[r]))>s&&(s=o,a=r);return 4*s<=l?t.slice(a,a+1):(t=t.slice(a).concat(t.slice(0,a+1)),(t=p.rdpLineSimplify(t,e,!1,i)).splice(t.length-1),t)}for(r=1;r<t.length-1;r+=1)(o=p.distance2dToLineSquared(t[r],t[0],t[t.length-1]))>s&&(s=o,a=r);if(s<=l&&(!i||!p.segmentCrossesLineList2d(t[0],t[t.length-1],i)))return[t[0],t[t.length-1]];var u=t.slice(0,a+1),c=t.slice(a),d=p.rdpLineSimplify(u,e,!1,i?i.concat([c]):null),h=p.rdpLineSimplify(c,e,!1,i?i.concat([u]):null);return d.slice(0,d.length-1).concat(h)},getMinMaxValues:function(t,e,n,i){if(t.length&&(i||!r.isNumeric(e)||!r.isNumeric(n))){var o,a,s=t[0],l=t[0];for(a=t.length-1;a>0;a-=1)(o=t[a])<s&&(s=o),o>l&&(l=o);(!r.isNumeric(e)||i&&s>e)&&(e=s),(!r.isNumeric(n)||i&&l<n)&&(n=l)}return{min:e,max:n}},wrapAngle:function(t){return(t%=2*Math.PI)<-Math.PI?t+=2*Math.PI:t>=Math.PI&&(t-=2*Math.PI),t},escapeUnicodeHTML:function(t){return t.replace(/[^- 0-9A-Za-z~`!@#$%^&*()_+={}|[\]\\:";'<>?,./]/g,(function(e,n){var i=e.charCodeAt(0);if(i<127)return e;if(i>=55296&&i<=57344){if(i<56320||n)return"";var r=t.charCodeAt(n-1);if(r<55296||r>=56320)return"";i=1024*(r-55296)+(i-56320)}return"&#"+i.toString(10)+";"}))},dereferenceElements:function(t){var e=[];return r("img,image",t).each((function(){var t=r(this),n=t.is("image")?"href":"src";if(t.attr(n)){var i=new Image;("http"===t.attr(n).substr(0,4)||t[0].crossOrigin)&&(i.crossOrigin=t[0].crossOrigin||"anonymous");var o=r.Deferred();i.onload=function(){var e=document.createElement("canvas");e.width=i.naturalWidth,e.height=i.naturalHeight,e.getContext("2d").drawImage(i,0,0),t.attr(n,e.toDataURL("image/png")),"data:image"!==t.attr(n).substr(0,10)&&t.remove(),o.resolve()},i.onerror=function(){t.remove(),o.resolve()},i.src=t.attr(n),e.push(o)}})),e},dereferenceCssUrlsRegex:/url\(["']?(http[^)"']+|[^:)"']+)["']?\)/g,dereferenceCssUrls:function(t,e,n,i,o){var a=[],s=[];if(t=(t=t.replace(/\/\*[^\0]*?\*\//g,"")).replace(/\r/g,"\n").replace(/\s+\n/g,"\n").replace(/\n\s+/g,"\n").replace(/\n\n+/g,"\n"),o){var l=/(^[^?#]*)\/[^?#/]*([?#]|$)/g.exec(o);o=l&&l[1]?l[1]+"/":null}t.replace(p.dereferenceCssUrlsRegex,(function(t,e){var n=a.length,i=r.Deferred(),l=new XMLHttpRequest;return a.push(i),s.push(""),/^[^/:][^:]*(\/|$)/g.exec(e)&&o&&(e=o+e),l.open("GET",e,!0),l.responseType="arraybuffer",l.onload=function(){if(200===this.status){var t,e=new Uint8Array(this.response),r=new Array(e.length);for(t=0;t<e.length;t+=1)r[t]=String.fromCharCode(e[t]);r=r.join(""),s[n]="url(data:"+l.getResponseHeader("content-type")+";base64,"+btoa(r)+")"}i.resolve()},l.onerror=i.resolve,l.send(),t})),r.when.apply(r,a).then((function(){var r=0;t=t.replace(p.dereferenceCssUrlsRegex,(function(t,e){return s[(r+=1)-1]})),void 0===i?e.text(t):e.style[i]=t,n.resolve()}))},htmlToImageSupported:function(){if(void 0===s){var t=r.Deferred(),e=r(u);e.attr({width:"10px",height:"10px","text-rendering":"optimizeLegibility"}),r("foreignObject",e).append("<div/>");var n=new Image;return n.onload=n.onerror=function(){var e=document.createElement("canvas");e.width=10,e.height=10,e.getContext("2d").drawImage(n,0,0);try{e.toDataURL(),s=!0}catch(t){console.warn("This browser does not support converting HTML to an image via SVG foreignObject. Some functionality will be limited.",t),s=!1}t.resolve(s)},n.src="data:image/svg+xml;base64,"+btoa(p.escapeUnicodeHTML((new XMLSerializer).serializeToString(e[0]))),t}return s},htmlToImage:function(t,e){var n,i=r.Deferred(),o=[p.htmlToImageSupported()],a=r(t);for(t=r(t).clone();e&&e>0;)(a=a.parent()).is("div")&&((n=r("<div>").attr({class:a.attr("class"),id:a.attr("id")}).css({width:"100%",height:"100%",background:"none",margin:0})).append(t),t=n),e-=1;r("canvas",t).remove(),r("*",t).addBack().each((function(){for(var t=this.style,e=0;e<t.length;e+=1){var n=this.style[e];if(this.style[n].match(p.dereferenceCssUrlsRegex)){var i=r.Deferred();p.dereferenceCssUrls(this.style[n],this,i,n),o.push(i)}}})),(n=r('<div xmlns="http://www.w3.org/1999/xhtml">')).css({width:a.width()+"px",height:a.height()+"px"}),n.append(r("<head>"));var s=r("<body>");return n.append(s),s.css({width:a.width()+"px",height:a.height()+"px",background:"none",margin:0}),s.append(t),o=o.concat(p.dereferenceElements(t)),r('style,link[rel="stylesheet"]').each((function(){var t=r('<style type="text/css">'),e=r.Deferred();if(r(this).is("style")){var i=r(this).text();p.dereferenceCssUrls(i,t,e)}else{var a=r(this).attr("href");r.get(a).done((function(n){p.dereferenceCssUrls(n,t,e,void 0,a)})).fail((function(n,i,r){console.warn("Failed to dereference "+a,i,r),t.remove(),e.resolve()}))}o.push(e),r("head",n).append(t)})),r.when.apply(r,o).then((function(){var t=r(u);t.attr({width:a.width()+"px",height:a.height()+"px","text-rendering":"optimizeLegibility"}),r("foreignObject",t).append(n);var e=new Image;p.htmlToImageSupported()?(e.onload=function(){i.resolve(e)},e.onerror=function(){console.warn("Failed to render html to image"),i.reject()},e.src="data:image/svg+xml;base64,"+btoa(p.escapeUnicodeHTML((new XMLSerializer).serializeToString(t[0])))):i.resolve(e)})),i},timeReport:function(t){return r.each(c,(function(t,e){e.count?(e.stddev=Math.sqrt(Math.abs((e.sum2-e.sum*e.sum/e.count)/e.count)),e.average=e.sum/e.count):(e.stddev=0,e.average=0)})),t?c[t]:c},timeFunctionStart:function(t,e){c[t]&&!e||(c[t]={count:0,sum:0,sum2:0,max:0,recent:[]}),c[t].start=window.performance.now()},timeFunctionStop:function(t){if(c[t]&&c[t].start){var e=window.performance.now()-c[t].start;c[t].start=null,c[t].sum+=e,c[t].sum2+=e*e,c[t].count+=1,c[t].max=Math.max(c[t].max,e),c[t].recent.push(e),c[t].recent.length>d&&c[t].recent.splice(0,c[t].recent.length-d)}},timeRequestAnimationFrame:function(t,e,n,i){c.requestAnimationFrame&&!e||(c.requestAnimationFrame={count:0,sum:0,sum2:0,max:0,above_threshold:0,recent:[],recentsub:[]}),n&&(h=n),i&&(d=i),t&&a?(window.requestAnimationFrame=a,a=null):t||a||(a=window.requestAnimationFrame,window.requestAnimationFrame=function(t){return a.call(window,(function(e){var n,i=c.requestAnimationFrame;i.timestamp!==e&&(i.nowDelta=window.performance.now()-e,Math.abs(i.nowDelta)<1e3&&(i.nowDelta=0),i.timestamp=e,i.subcalls=i.subcalls||0,i.start={sum:i.sum,sum2:i.sum2,count:i.count,max:i.max,above_threshold:i.above_threshold},i.recent.push([0]),i.recentsub.push([]),i.recent.length>d&&(i.recent.splice(0,i.recent.length-d),i.recentsub.splice(0,i.recentsub.length-d))),i.subcalls+=1,t.apply(this,arguments);var r=window.performance.now()-e;r-=i.nowDelta,i.sum=i.start.sum+r,i.sum2=i.start.sum2+r*r,i.count=i.start.count+1,i.max=Math.max(i.max,r),i.above_threshold=i.start.above_threshold+(r>=h?1:0),i.recent[i.recent.length-1]=r,(n=i.recentsub[i.recent.length-1]).push({total_duration:r,duration:r-(n.length?n[n.length-1].total_duration:0),callback:t.name||t})}))})},isObject:function(t){var e=i(t);return null!=t&&("object"===e||"function"===e)},identityFunction:function(t){return t},radiusEarth:o.WGS84.a};t.exports=p},7235:function(t,e,n){var i=n(5616),r={};r.Util={stamp:function(t){return t._leaflet_id=t._leaflet_id||++r.Util.lastId,t._leaflet_id},lastId:0};var o=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}};o.prototype={addObject:function(t,e){var n=this._getCoord(e.x),i=this._getCoord(e.y),o=this._grid,a=o[i]=o[i]||{},s=a[n]=a[n]||[],l=r.Util.stamp(t);e.obj=t,this._objectPoint[l]=e,s.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var n,i,o=this._getCoord(e.x),a=this._getCoord(e.y),s=this._grid,l=s[a]=s[a]||{},u=l[o]=l[o]||[];for(delete this._objectPoint[r.Util.stamp(t)],n=0,i=u.length;n<i;n++)if(u[n]===t)return u.splice(n,1),1===i&&delete l[o],!0},eachObject:function(t,e){var n,i,r,o,a,s,l=this._grid;for(n in l)for(i in a=l[n])for(r=0,o=(s=a[i]).length;r<o;r++)t.call(e,s[r])&&(r--,o--)},getNearObject:function(t){var e,n,i,o,a,s,l,u,c=this._getCoord(t.x),d=this._getCoord(t.y),h=this._objectPoint,f=this._sqCellSize,p=null;for(e=d-1;e<=d+1;e++)if(o=this._grid[e])for(n=c-1;n<=c+1;n++)if(a=o[n])for(i=0,s=a.length;i<s;i++)l=a[i],(u=this._sqDist(h[r.Util.stamp(l)],t))<f&&(f=u,p=l);return p},contents:function(){return i.map(this._objectPoint,(function(t){return t}))},_getCoord:function(t){return Math.floor(t/this._cellSize)},_sqDist:function(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}},t.exports=o},642:function(t,e,n){t.exports=Object.assign(n(1949),n(5637),n(208),n(269),{DistanceGrid:n(7235),ClusterGroup:n(5966),mesh:n(5905),polyops:n(5647)})},5905:function(t,e,n){t.exports={createColoredMesh:function(t,e){var i,r,o,a,s,l=n(5616),u=n(642),c=t.mesh,d=t.style.get("value"),h={used:void 0!==t.style("used")?t.style.get("used"):function(t,e){return u.isNonNullFinite(d(t,e))},opacity:t.style.get("opacity"),value:d},f=t._createMesh(e?{}:h,e?h:{});if(f.elementValues=!!e,!f.numVertices||!f.numElements)return f;var p=c.get("stepped")(f),m=c.get("opacityRange")(f),g=c.get("rangeValues")(f);if(f.stepped=!(void 0!==p&&!p),f.colorMap=[],f.minColor=l.extend({a:c.get("minOpacity")(f)||0},u.convertColor(c.get("minColor")(f))),f.maxColor=l.extend({a:c.get("maxOpacity")(f)||0},u.convertColor(c.get("maxColor")(f))),c.get("colorRange")(f).forEach((function(t,e){f.colorMap.push(l.extend({a:m&&void 0!==m[e]?m[e]:1},u.convertColor(t)))})),i=u.getMinMaxValues(f.value,c.get("min")(f),c.get("max")(f)),f.minValue=i.min,f.maxValue=i.max,g&&f.colorMap&&(g.length===f.colorMap.length+1||!p&&g.length===f.colorMap.length)||(g=null),g)for(s=1;s<g.length;s+=1)if(g[s-1]>g[s]){g=null;break}for(g&&(f.minValue=g[0],f.maxValue=g[g.length-1]),(o=f.maxValue-f.minValue)||(f.colorMap=f.colorMap.slice(0,1),o=1,g=null),f.rangeValues=g,f.factor=(f.colorMap.length-(p?0:1))/o,a=0;a<f.value.length;a+=1)if(r=f.value[a],g&&r>=f.minValue&&r<=f.maxValue){for(s=1;s<g.length;s+=1)if(r<=g[s]){f.value[a]=s-1+(r-g[s-1])/(g[s]-g[s-1]);break}}else f.value[a]=(r-f.minValue)*f.factor;return f}}},269:function(t,e,n){var i,r,o=n(5616),a=n(7945);t.exports={},t.exports.mockWebglRenderer=function(t){"use strict";var e=n(1611);if(void 0===t&&(t=!0),e._mocked)throw new Error("webgl renderer already mocked");var s={},l=function(t){s[t]=(s[t]||0)+1},u=function(t){return function(){l(t)}},c=0,d=function(t){return function(){return l(t),c+=1}},h={activeTexture:u("activeTexture"),attachShader:u("attachShader"),bindAttribLocation:u("bindAttribLocation"),bindBuffer:u("bindBuffer"),bindFramebuffer:u("bindFramebuffer"),bindTexture:u("bindTexture"),blendFuncSeparate:u("blendFuncSeparate"),bufferData:u("bufferData"),bufferSubData:u("bufferSubData"),checkFramebufferStatus:function(t){if(l("checkFramebufferStatus"),t===e.GL.FRAMEBUFFER)return e.GL.FRAMEBUFFER_COMPLETE},clear:u("clear"),clearColor:u("clearColor"),clearDepth:u("clearDepth"),compileShader:u("compileShader"),createBuffer:d("createBuffer"),createFramebuffer:u("createFramebuffer"),createProgram:d("createProgram"),createShader:d("createShader"),createTexture:d("createTexture"),deleteBuffer:u("deleteBuffer"),deleteProgram:u("deleteProgram"),deleteShader:u("deleteShader"),deleteTexture:u("deleteTexture"),detachShader:u("detachShader"),depthFunc:u("depthFunc"),disable:u("disable"),disableVertexAttribArray:u("disableVertexAttribArray"),drawArrays:u("drawArrays"),enable:u("enable"),enableVertexAttribArray:u("enableVertexAttribArray"),finish:u("finish"),getError:u("getError"),getExtension:d("getExtension"),getParameter:function(t){switch(l("getParameter"),t){case e.GL.ALIASED_POINT_SIZE_RANGE:return[1,64];case e.GL.DEPTH_BITS:return 16;case e.GL.MAX_TEXTURE_SIZE:return 4096}},getProgramParameter:function(t,n){if(l("getProgramParameter"),n===e.GL.LINK_STATUS)return!0},getShaderInfoLog:function(){return l("getShaderInfoLog"),"log"},getShaderParameter:function(t,n){if(l("getShaderParameter"),n===e.GL.COMPILE_STATUS)return!0},getSupportedExtensions:function(){return l("getSupportedExtensions"),[]},getUniformLocation:d("getUniformLocation"),isEnabled:function(t){if(l("isEnabled"),t===e.GL.BLEND)return!0},linkProgram:u("linkProgram"),pixelStorei:u("pixelStorei"),shaderSource:u("shaderSource"),texImage2D:u("texImage2D"),texParameteri:u("texParameteri"),uniform1iv:u("uniform1iv"),uniform1fv:u("uniform1fv"),uniform2fv:u("uniform2fv"),uniform3fv:u("uniform3fv"),uniform4fv:u("uniform4fv"),uniformMatrix3fv:u("uniformMatrix3fv"),uniformMatrix4fv:u("uniformMatrix4fv"),useProgram:u("useProgram"),vertexAttribPointer:u("vertexAttribPointer"),vertexAttrib3fv:u("vertexAttrib3fv"),viewport:u("viewport")};i=e.renderWindow;var f=function(){e.renderWindow=i;var t,n=new e.renderWindow;return e.renderWindow=f,n._setup=function(){var i,r=n.renderers(),a=n.windowSize(),s=n.windowPosition();for(t=o.extend({},e.GL,h),i=0;i<r.length;i+=1)(r[i].width()>a[0]||0===r[i].width()||r[i].height()>a[1]||0===r[i].height())&&r[i].resize(s[0],s[1],a[0],a[1]);return!0},n.context=function(){return t},n};e.renderWindow=f,r=a.supported,a.supported=function(){return!!t},a._maxTextureSize=4096,a._maxPointSize=64,e._mocked=!0,e.mockCounts=function(){return s}},t.exports.restoreWebglRenderer=function(){var t=n(1611);t._mocked&&(t.renderWindow=i,a.supported=r,delete t._mocked,delete t.mockCounts)}},5647:function(t,e,n){function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var o=n(6820),a=n(6211),s=n(1949),l={"+":"union","|":"union",add:"union","-":"difference",sub:"difference",subtract:"difference",minus:"difference","*":"intersect","&":"intersect",mul:"intersect",multiply:"intersect",x:"xor","^":"xor"};function u(t,e,n){for(t="select"+t.charAt(0).toUpperCase()+t.slice(1),o.epsilon(e);n.length>1;){for(var i=[],r=Math.ceil(n.length/2),a=0;a<r;a+=1){var s=n[a];if(a+r<n.length){var l=n[a+r];try{s=o.combine(s,l)}catch(t){s=o.segments(o.polygon(s)),l=o.segments(o.polygon(l));for(var u=20;u>=6;u-=1){o.epsilon(Math.pow(.1,u));try{s=o.combine(s,l);break}catch(t){}}o.epsilon(e)}s.combined?(s.combined=s.combined.filter((function(t){return Math.abs(t.start[0]-t.end[0])>e||Math.abs(t.start[1]-t.end[1])>e})),s=o[t](s)):console.warn("Failed in polygon functions."),s.segments=s.segments.filter((function(t){return Math.abs(t.start[0]-t.end[0])>e||Math.abs(t.start[1]-t.end[1])>e}))}i.push(s)}n=i}return n}function c(t,e,n){if(e=e||{},t.toPolygonList){if(e.style=t,!(t=t.toPolygonList(n)).length)return e.min=e.max=[0,0],e.epsilon=1e-10,t}else{if(e.style="",t.outer?(e.style="-outer",t=[[t.outer].concat(i(t.inner||[]))]):t.length&&t[0].outer&&(e.style="-outer-list",t=t.map((function(t){return[t.outer].concat(i(t.inner||[]))}))),!t.length)return e.style="flat-listlist"+e.style,e.min=e.max=[0,0],e.epsilon=1e-10,t;void 0!==t[0].x?(e.style="object",t=[[t.map((function(t){return[t.x,t.y]}))]]):void 0!==t[0][0].x?(e.style="object-list"+e.style,t=[t.map((function(t){return t.map((function(t){return[t.x,t.y]}))}))]):void 0===t[0][0][0]?(e.style="flat",t=[[t]]):void 0!==t[0][0][0].x?(e.style="object-listlist"+e.style,t=t.map((function(t){return t.map((function(t){return t.map((function(t){return[t.x,t.y]}))}))}))):void 0===t[0][0][0][0]?(e.style="flat-list",t=[t]):e.style="flat-listlist"+e.style}return e.min=[t[0][0][0][0],t[0][0][0][1]],e.max=[t[0][0][0][0],t[0][0][0][1]],t.forEach((function(t){return t.forEach((function(t){return t.forEach((function(t){t[0]<e.min[0]&&(e.min[0]=t[0]),t[0]>e.max[0]&&(e.max[0]=t[0]),t[1]<e.min[1]&&(e.min[1]=t[1]),t[1]>e.max[1]&&(e.max[1]=t[1])}))}))})),e.epsilon=1e-10*Math.max(Math.max(e.max[0],e.max[1]),Math.max(Math.abs(e.min[0]),Math.abs(e.min[1]))),t}function d(t,e,n){return e.style.fromPolygonList?e.style.fromPolygonList(t,n):(e.style.includes("object")&&(t=t.map((function(t){return t.map((function(t){return t.map((function(t){return{x:t[0],y:t[1]}}))}))}))),e.style.includes("outer")&&(t=[t.map((function(t){return{outer:t[0],inner:t.slice(1)}}))]),e.style.endsWith("listlist")||(t=e.style.endsWith("list")?t[0]:t[0][0]),t)}function h(t,e,i,r){var h=n(5325);t=l[t]||t,e.poly1&&(e=(r=e).poly1,i=r.poly2);var f=(r=r||{}).ingcs||(r.map?r.map.ingcs():e.gcs?e.gcs():e.layer&&e.layer().gcs?e.layer().gcs():e.layer?e.layer().map().ingcs():e.map instanceof a?e.map().ingcs():void 0),p=r.ingcs||(r.map?r.map.ingcs():i.gcs?i.gcs():i.layer&&i.layer().gcs?i.layer().gcs():i.layer?i.layer().map().ingcs():i.map instanceof a?i.map().ingcs():f),m=r.gcs||(r.map?r.map.gcs():e.layer?e.layer().map().gcs():e.map instanceof a?e.map().gcs():void 0),g={},y={};e=c(e,g,r),i=c(i,y,r),g.epsilon=r.epsilon1||g.epsilon,y.epsilon=r.epsilon2||g.epsilon,f&&m&&f!==m&&(e=e.map((function(t){return t.map((function(t){return h.transformCoordinates(f,m,t)}))}))),p&&m&&p!==m&&(i=i.map((function(t){return t.map((function(t){return h.transformCoordinates(p,m,t)}))})));var v=e.map((function(t){return o.segments({regions:t})})),x=i.map((function(t){return o.segments({regions:t})}));v=u(r.innerOperation||"union",g.epsilon,v),x=u(r.innerOperation||"union",y.epsilon,x);var _=v;v[0]&&x[0]?(v[0].inverted=!1,x[0].inverted=!1,_=u(t,Math.max(g.epsilon,y.epsilon),[v[0],x[0]])):x[0]&&(_=x);var b,w,M=function(t){var e=[],n=[],i=[],r=[];t.forEach((function(t){return o.polygon(t).regions.forEach((function(t){var e=t.map((function(t){return{x:t[0],y:t[1]}}));e.length<3||(r.push([]),n.forEach((function(t,i){s.pointInPolygon(e[0],t)?r[n.length].push(i):s.pointInPolygon(t[0],e)&&r[i].push(n.length)})),i.push(t),n.push(e))}))}));for(var a=Array(i.length),l=0;l<i.length;){for(var u=0;u<i.length;u+=1)void 0!==a[u]||r[u].length||(a[u]=e.length,e.push([i[u].reverse()]),l+=1);for(var c=0;c<i.length;c+=1)void 0===a[c]&&1===r[c].length&&void 0!==a[r[c][0]]&&(e[a[r[c][0]]].push(i[c]),a[c]=a[r[c][0]],l+=1);for(var d=0;d<i.length;d+=1)r[d]=r[d].filter((function(t){return void 0===a[t]}))}return e.length?e:[[]]}(_);return r.correspond&&function(t,e,n,i){var r={},o=[];n.forEach((function(t,e){return t.forEach((function(t){return t.forEach((function(t){var n="_"+t[0]+"_"+t[1];r[n]?-1===r[n].indexOf(e)&&r[n].push(e):r[n]=[e],o.length<=e&&o.push(0),o[e]+=1}))}))})),["poly1","poly2"].forEach((function(a){var s="poly1"===a?t:e,l="poly1"===a?"exact1":"exact2";i[a]=Array(s.length),i[l]=Array(s.length),s.forEach((function(t,e){var s={},u=0;t.forEach((function(t){return t.forEach((function(t){var e="_"+t[0]+"_"+t[1];r[e]?r[e].forEach((function(t){s[t]=(s[t]||0)+1})):u+=1}))})),Object.keys(s).forEach((function(r){s[r]!==o[+r]||u||t.length!==n[+r].length||(i[l][e]||(i[l][e]=[]),i[l][e].push(+r)),s[r]>=2&&(i[a][e]||(i[a][e]=[]),i[a][e].push(+r))}))}))}))}(e,i,M,r.correspond),f&&m&&f!==m&&(M=M.map((function(t){return t.map((function(t){return h.transformCoordinates(m,f,t)}))}))),d(M,{style:r.style||(b=M,w=g.style,w.fromPolygonList?w:b.length>1?w.includes("outer")?w+(w.endsWith("list")?"":"-list"):w.endsWith("listlist")?w:w+(w.endsWith("list")?"list":"-listlist"):1===b.length&&b[0].length>1?w.includes("outer")||w.endsWith("list")?w:w+"-list":w)},r)}function f(t){return function(e,n,i){return h(t,e,n,i)}}t.exports={union:f("union"),intersect:f("intersect"),difference:f("difference"),xor:f("xor"),toPolygonList:c,fromPolygonList:d}},208:function(t){var e=function(t,e,n,i,r){var o,a=0;return"boolean"!=typeof e&&(r=i,i=n,n=e,e=void 0),"function"!=typeof i&&(r=i,i=function(){}),function(){var s=this,l=+new Date-a,u=arguments;function c(){a=+new Date,n.apply(s,u)}i.apply(s,u),r&&!o&&c(),o&&clearTimeout(o),void 0===r&&l>t?c():!0!==e&&(o=setTimeout(r?function(){o=void 0}:c,void 0===r?t-l:t))}};t.exports={throttle:e,debounce:function(t,n,i,r){return"boolean"!=typeof n&&(r=i,i=n,n=!1),e(t,!1,i,r=r||function(){},!!n)}}},6858:function(t,e,n){var i=n(4626),r=n(1275),o=n(642),a=function(t){"use strict";if(!(this instanceof a))return new a(t);var e=n(5616);t=t||{},r.call(this,t);var i=this,s=this._init;this.featureType="vector",this.origin=function(t){return void 0===t?i.style("origin"):(i.style("origin",t),i.dataTime().modified(),i)},this.delta=function(t){return void 0===t?i.style("delta"):(i.style("delta",t),i.dataTime().modified(),i)},this._init=function(t){s.call(i,t);var n=e.extend({},{strokeColor:"black",strokeWidth:2,strokeOpacity:1,originStyle:"none",endStyle:"arrow",origin:{x:0,y:0,z:0},delta:o.identityFunction,scale:null},void 0===t.style?{}:t.style);return void 0!==t.origin&&(n.origin=t.origin),i.style(n),i.dataTime().modified(),i}};i(a,r),t.exports=a},4081:function(t){t.exports="1.12.3"},6552:function(t,e,n){n(698).GL={ACTIVE_ATTRIBUTES:35721,ACTIVE_TEXTURE:34016,ACTIVE_UNIFORMS:35718,ALIASED_LINE_WIDTH_RANGE:33902,ALIASED_POINT_SIZE_RANGE:33901,ALPHA:6406,ALPHA_BITS:3413,ALWAYS:519,ARRAY_BUFFER:34962,ARRAY_BUFFER_BINDING:34964,ATTACHED_SHADERS:35717,BACK:1029,BLEND:3042,BLEND_COLOR:32773,BLEND_DST_ALPHA:32970,BLEND_DST_RGB:32968,BLEND_EQUATION:32777,BLEND_EQUATION_ALPHA:34877,BLEND_EQUATION_RGB:32777,BLEND_SRC_ALPHA:32971,BLEND_SRC_RGB:32969,BLUE_BITS:3412,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,BROWSER_DEFAULT_WEBGL:37444,BUFFER_SIZE:34660,BUFFER_USAGE:34661,BYTE:5120,CCW:2305,CLAMP_TO_EDGE:33071,COLOR_ATTACHMENT0:36064,COLOR_BUFFER_BIT:16384,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,COMPILE_STATUS:35713,COMPRESSED_TEXTURE_FORMATS:34467,CONSTANT_ALPHA:32771,CONSTANT_COLOR:32769,CONTEXT_LOST_WEBGL:37442,CULL_FACE:2884,CULL_FACE_MODE:2885,CURRENT_PROGRAM:35725,CURRENT_VERTEX_ATTRIB:34342,CW:2304,DECR:7683,DECR_WRAP:34056,DELETE_STATUS:35712,DEPTH_ATTACHMENT:36096,DEPTH_BITS:3414,DEPTH_BUFFER_BIT:256,DEPTH_CLEAR_VALUE:2931,DEPTH_COMPONENT:6402,DEPTH_COMPONENT16:33189,DEPTH_FUNC:2932,DEPTH_RANGE:2928,DEPTH_STENCIL:34041,DEPTH_STENCIL_ATTACHMENT:33306,DEPTH_TEST:2929,DEPTH_WRITEMASK:2930,DITHER:3024,DONT_CARE:4352,DST_ALPHA:772,DST_COLOR:774,DYNAMIC_DRAW:35048,ELEMENT_ARRAY_BUFFER:34963,ELEMENT_ARRAY_BUFFER_BINDING:34965,EQUAL:514,FASTEST:4353,FLOAT:5126,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,FRAGMENT_SHADER:35632,FRAMEBUFFER:36160,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_BINDING:36006,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_UNSUPPORTED:36061,FRONT:1028,FRONT_AND_BACK:1032,FRONT_FACE:2886,FUNC_ADD:32774,FUNC_REVERSE_SUBTRACT:32779,FUNC_SUBTRACT:32778,GENERATE_MIPMAP_HINT:33170,GEQUAL:518,GREATER:516,GREEN_BITS:3411,HIGH_FLOAT:36338,HIGH_INT:36341,INCR:7682,INCR_WRAP:34055,INT:5124,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,INVALID_ENUM:1280,INVALID_FRAMEBUFFER_OPERATION:1286,INVALID_OPERATION:1282,INVALID_VALUE:1281,INVERT:5386,KEEP:7680,LEQUAL:515,LESS:513,LINEAR:9729,LINEAR_MIPMAP_LINEAR:9987,LINEAR_MIPMAP_NEAREST:9985,LINES:1,LINE_LOOP:2,LINE_STRIP:3,LINE_WIDTH:2849,LINK_STATUS:35714,LOW_FLOAT:36336,LOW_INT:36339,LUMINANCE:6409,LUMINANCE_ALPHA:6410,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_CUBE_MAP_TEXTURE_SIZE:34076,MAX_FRAGMENT_UNIFORM_VECTORS:36349,MAX_RENDERBUFFER_SIZE:34024,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_TEXTURE_SIZE:3379,MAX_VARYING_VECTORS:36348,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VIEWPORT_DIMS:3386,MEDIUM_FLOAT:36337,MEDIUM_INT:36340,MIRRORED_REPEAT:33648,NEAREST:9728,NEAREST_MIPMAP_LINEAR:9986,NEAREST_MIPMAP_NEAREST:9984,NEVER:512,NICEST:4354,NONE:0,NOTEQUAL:517,NO_ERROR:0,ONE:1,ONE_MINUS_CONSTANT_ALPHA:32772,ONE_MINUS_CONSTANT_COLOR:32770,ONE_MINUS_DST_ALPHA:773,ONE_MINUS_DST_COLOR:775,ONE_MINUS_SRC_ALPHA:771,ONE_MINUS_SRC_COLOR:769,OUT_OF_MEMORY:1285,PACK_ALIGNMENT:3333,POINTS:0,POLYGON_OFFSET_FACTOR:32824,POLYGON_OFFSET_FILL:32823,POLYGON_OFFSET_UNITS:10752,RED_BITS:3410,RENDERBUFFER:36161,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_BINDING:36007,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_STENCIL_SIZE:36181,RENDERBUFFER_WIDTH:36162,RENDERER:7937,REPEAT:10497,REPLACE:7681,RGB:6407,RGB565:36194,RGB5_A1:32855,RGBA:6408,RGBA4:32854,SAMPLER_2D:35678,SAMPLER_CUBE:35680,SAMPLES:32937,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_BUFFERS:32936,SAMPLE_COVERAGE:32928,SAMPLE_COVERAGE_INVERT:32939,SAMPLE_COVERAGE_VALUE:32938,SCISSOR_BOX:3088,SCISSOR_TEST:3089,SHADER_TYPE:35663,SHADING_LANGUAGE_VERSION:35724,SHORT:5122,SRC_ALPHA:770,SRC_ALPHA_SATURATE:776,SRC_COLOR:768,STATIC_DRAW:35044,STENCIL_ATTACHMENT:36128,STENCIL_BACK_FAIL:34817,STENCIL_BACK_FUNC:34816,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,STENCIL_BITS:3415,STENCIL_BUFFER_BIT:1024,STENCIL_CLEAR_VALUE:2961,STENCIL_FAIL:2964,STENCIL_FUNC:2962,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_TEST:2960,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STREAM_DRAW:35040,SUBPIXEL_BITS:3408,TEXTURE:5890,TEXTURE0:33984,TEXTURE1:33985,TEXTURE10:33994,TEXTURE11:33995,TEXTURE12:33996,TEXTURE13:33997,TEXTURE14:33998,TEXTURE15:33999,TEXTURE16:34e3,TEXTURE17:34001,TEXTURE18:34002,TEXTURE19:34003,TEXTURE2:33986,TEXTURE20:34004,TEXTURE21:34005,TEXTURE22:34006,TEXTURE23:34007,TEXTURE24:34008,TEXTURE25:34009,TEXTURE26:34010,TEXTURE27:34011,TEXTURE28:34012,TEXTURE29:34013,TEXTURE3:33987,TEXTURE30:34014,TEXTURE31:34015,TEXTURE4:33988,TEXTURE5:33989,TEXTURE6:33990,TEXTURE7:33991,TEXTURE8:33992,TEXTURE9:33993,TEXTURE_2D:3553,TEXTURE_BINDING_2D:32873,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP:34067,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TRIANGLES:4,TRIANGLE_FAN:6,TRIANGLE_STRIP:5,UNPACK_ALIGNMENT:3317,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,UNSIGNED_BYTE:5121,UNSIGNED_INT:5125,UNSIGNED_SHORT:5123,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,VALIDATE_STATUS:35715,VENDOR:7936,VERSION:7938,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_SHADER:35633,VIEWPORT:2978,ZERO:0}},10:function(t,e,n){var i=n(698),r=n(4626),o=n(1982),a=n(3503);i.actor=function(){"use strict";if(!(this instanceof i.actor))return new i.actor;i.node.call(this);var t=this,e=a.create(),n=i.boundingObject.ReferenceFrame.Relative,r=null;return this.matrix=function(){return e},this.referenceFrame=function(){return n},this.mapper=function(){return r},this.setMapper=function(e){e!==r&&(r=e,t.boundsModified())},this.computeBounds=function(){if(null!=r){var n,i,a,s,l=t.computeBoundsTimestamp();(t.boundsDirtyTimestamp().getMTime()>l.getMTime()||r.boundsDirtyTimestamp().getMTime()>l.getMTime())&&(r.computeBounds(),i=[(n=r.bounds())[0],n[2],n[4]],a=[n[1],n[3],n[5]],o.transformMat4(i,i,e),o.transformMat4(a,a,e),s=[i[0]>a[0]?a[0]:i[0],i[0]>a[0]?i[0]:a[0],i[1]>a[1]?a[1]:i[1],i[1]>a[1]?i[1]:a[1],i[2]>a[2]?a[2]:i[2],i[2]>a[2]?i[2]:a[2]],t.setBounds(s[0],s[1],s[2],s[3],s[4],s[5]),l.modified())}else t.resetBounds()},t},r(i.actor,i.node)},8576:function(t,e,n){var i=n(698),r=n(4626);i.blendFunction=function(t,e){"use strict";if(!(this instanceof i.blendFunction))return new i.blendFunction(t,e);var n=t,r=e;return this.apply=function(t){t.m_context.blendFuncSeparate(n,r,i.GL.ONE,i.GL.ONE_MINUS_SRC_ALPHA)},this},i.blend=function(){"use strict";if(!(this instanceof i.blend))return new i.blend;i.materialAttribute.call(this,i.materialAttributeType.Blend);var t=!1,e=i.blendFunction(i.GL.SRC_ALPHA,i.GL.ONE_MINUS_SRC_ALPHA);return this.bind=function(n){return t=n.m_context.isEnabled(i.GL.BLEND),this.enabled()?(n.m_context.enable(i.GL.BLEND),e.apply(n)):n.m_context.disable(i.GL.BLEND),!0},this.undoBind=function(e){return t?e.m_context.enable(i.GL.BLEND):e.m_context.disable(i.GL.BLEND),!0},this},r(i.blend,i.materialAttribute)},3556:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.boundingObject=function(){"use strict";if(!(this instanceof i.boundingObject))return new i.boundingObject;i.object.call(this);var t=[0,0,0,0,0,0],e=o(),n=o();return e.modified(),n.modified(),this.bounds=function(){return t},this.hasValidBounds=function(t){return t[0]!==Number.MAX_VALUE&&t[1]!==-Number.MAX_VALUE&&t[2]!==Number.MAX_VALUE&&t[3]!==-Number.MAX_VALUE&&t[4]!==Number.MAX_VALUE&&t[5]!==-Number.MAX_VALUE},this.setBounds=function(n,i,r,o,a,s){if(this.hasValidBounds([n,i,r,o,a,s]))return t[0]=n,t[1]=i,t[2]=r,t[3]=o,t[4]=a,t[5]=s,this.modified(),e.modified(),!0},this.resetBounds=function(){t[0]=Number.MAX_VALUE,t[1]=-Number.MAX_VALUE,t[2]=Number.MAX_VALUE,t[3]=-Number.MAX_VALUE,t[4]=Number.MAX_VALUE,t[5]=-Number.MAX_VALUE,this.modified()},this.computeBounds=function(){},this.computeBoundsTimestamp=function(){return e},this.boundsDirtyTimestamp=function(){return n},this.resetBounds(),this},i.boundingObject.ReferenceFrame={Relative:0,Absolute:1},r(i.boundingObject,i.object)},4580:function(t,e,n){var i=n(698),r=n(4626),o=n(77),a=n(1982),s=n(4663),l=n(3503);i.camera=function(t){"use strict";if(!(this instanceof i.camera))return new i.camera(t);i.groupNode.call(this),t=t||{};var e=30*Math.PI/180,n=s.fromValues(0,0,1,1),r=s.fromValues(0,0,0,1),u=s.fromValues(0,1,0,0),c=1,d=s.fromValues(0,0,-1,0),h=l.create(),f=l.create(),p=o(),m=o(),g=-1,y=1,v=1,x=-1,_={zoom:1,tilesize:256},b=!1,w=[0,0,0,0],M=i.GL.COLOR_BUFFER_BIT|i.GL.DEPTH_BUFFER_BIT;return void 0!==t.parallelProjection&&(b=!!t.parallelProjection),this.setViewAspect=function(t){c=t,this.modified()},this.parallelExtents=function(){return _},this.setParallelExtents=function(t){var e,n,i=["width","height","zoom","tilesize"],r=!1;for(e=0;e<i.length;e+=1)void 0!==t[n=i[e]]&&t[n]!==_[n]&&(_[n]=t[n],r=!0);if(r&&_.width&&_.height&&void 0!==_.zoom&&_.tilesize){var o=this.unitsPerPixel(_.zoom,_.tilesize);y=o*_.width/2,g=-y,v=o*_.height/2,x=-v,this.modified()}},this.unitsPerPixel=function(t,e){return e=e||256,360*Math.pow(2,-t)/e},this.viewMatrix=function(){return this.computeViewMatrix()},this.setViewMatrix=function(t,e){e?h=t.slice():l.copy(h,t),p.modified()},this.projectionMatrix=function(){return this.computeProjectionMatrix()},this.setProjectionMatrix=function(t){l.copy(f,t),m.modified()},this.clearMask=function(){return M},this.clearColor=function(){return w},this.clearDepth=function(){return 1},this.computeDirectionOfProjection=function(){a.subtract(d,r,n),a.normalize(d,d),this.modified()},this.computeViewMatrix=function(){return p.getMTime()<this.getMTime()&&(l.lookAt(h,n,r,u),p.modified()),h},this.computeProjectionMatrix=function(){return m.getMTime()<this.getMTime()&&(b?l.ortho(f,g,y,x,v,.01,1e4):l.perspective(f,e,c,.01,1e4),m.modified()),f},this.computeDirectionOfProjection(),this},r(i.camera,i.groupNode)},7695:function(t,e,n){var i=n(698);i.data=function(){"use strict";if(!(this instanceof i.data))return new i.data;this.type=function(){}},i.data.raster=0,i.data.point=1,i.data.lineString=2,i.data.polygon=3,i.data.geometry=10},4831:function(t,e,n){var i=n(698);i.event={},i.event.keyPress="vgl.event.keyPress",i.event.mousePress="vgl.event.mousePress",i.event.mouseRelease="vgl.event.mouseRelease",i.event.contextMenu="vgl.event.contextMenu",i.event.configure="vgl.event.configure",i.event.enable="vgl.event.enable",i.event.mouseWheel="vgl.event.mouseWheel",i.event.keyRelease="vgl.event.keyRelease",i.event.middleButtonPress="vgl.event.middleButtonPress",i.event.startInteraction="vgl.event.startInteraction",i.event.enter="vgl.event.enter",i.event.rightButtonPress="vgl.event.rightButtonPress",i.event.middleButtonRelease="vgl.event.middleButtonRelease",i.event.char="vgl.event.char",i.event.disable="vgl.event.disable",i.event.endInteraction="vgl.event.endInteraction",i.event.mouseMove="vgl.event.mouseMove",i.event.mouseOut="vgl.event.mouseOut",i.event.expose="vgl.event.expose",i.event.timer="vgl.event.timer",i.event.leftButtonPress="vgl.event.leftButtonPress",i.event.leave="vgl.event.leave",i.event.rightButtonRelease="vgl.event.rightButtonRelease",i.event.leftButtonRelease="vgl.event.leftButtonRelease",i.event.click="vgl.event.click",i.event.dblClick="vgl.event.dblClick"},7327:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.primitive=function(){"use strict";if(!(this instanceof i.primitive))return new i.primitive;var t=0,e=0,n=null;return this.indices=function(){return n},this.numberOfIndices=function(){return n.length},this.primitiveType=function(){return t},this.setPrimitiveType=function(e){t=e},this.indicesValueType=function(){return e},this.setIndicesValueType=function(t){e=t},this.setIndices=function(t){n=new Uint16Array(t)},this},i.triangles=function(){"use strict";return this instanceof i.triangles?(i.primitive.call(this),this.setPrimitiveType(i.GL.TRIANGLES),this.setIndicesValueType(i.GL.UNSIGNED_SHORT),this):new i.triangles},r(i.triangles,i.primitive),i.points=function(){"use strict";return this instanceof i.points?(i.primitive.call(this),this.setPrimitiveType(i.GL.POINTS),this.setIndicesValueType(i.GL.UNSIGNED_SHORT),this):new i.points},r(i.points,i.primitive),i.sourceData=function(t){"use strict";if(!(this instanceof i.sourceData))return new i.sourceData(t);var e={},n=[],r=(t=t||{}).name||"Source "+(new Date).toISOString(),o=function(){this.m_numberOfComponents=0,this.m_dataType=0,this.m_dataTypeSize=0,this.m_normalized=!1,this.m_stride=0,this.m_offset=0};return this.data=function(){return n},this.getData=function(){return this.data()},this.dataToFloat32Array=function(){return n instanceof Float32Array||(n=new Float32Array(n)),n},this.setData=function(t){t instanceof Array||t instanceof Float32Array?n=t instanceof Float32Array?t:t.slice(0):console.log("[error] Requires array")},this.addAttribute=function(t,n,i,r,a,s,l){if(!e.hasOwnProperty(t)){var u=new o;u.m_dataType=n,u.m_dataTypeSize=i,u.m_offset=r,u.m_stride=a,u.m_numberOfComponents=s,u.m_normalized=l,e[t]=u}},this.hasKey=function(t){return e.hasOwnProperty(t)},this.keys=function(){return Object.keys(e)},this.attributeNumberOfComponents=function(t){return e.hasOwnProperty(t)?e[t].m_numberOfComponents:0},this.normalized=function(t){return!!e.hasOwnProperty(t)&&e[t].m_normalized},this.attributeDataType=function(t){if(e.hasOwnProperty(t))return e[t].m_dataType},this.attributeOffset=function(t){return e.hasOwnProperty(t)?e[t].m_offset:0},this.attributeStride=function(t){return e.hasOwnProperty(t)?e[t].m_stride:0},this.pushBack=function(t){},this.insert=function(t){var e;if(!n.length&&t.length&&t instanceof Float32Array)n=t;else if(n.slice||!n.length&&t.slice||(n=Array.prototype.slice.call(n)),t.length)if(!n.length&&t.slice)n=t.slice(0);else for(e=0;e<t.length;e+=1)n[n.length]=t[e];else n[n.length]=t},this.name=function(){return r},this},i.sourceDataAnyfv=function(t,e,n){"use strict";return this instanceof i.sourceDataAnyfv?(i.sourceData.call(this,n),this.addAttribute(e,i.GL.FLOAT,4,0,4*t,t,!1),this.pushBack=function(t){this.insert(t)},this):new i.sourceDataAnyfv(t,e,n)},r(i.sourceDataAnyfv,i.sourceData),i.sourceDataP3fv=function(t){"use strict";return this instanceof i.sourceDataP3fv?(i.sourceData.call(this,t),this.addAttribute(i.vertexAttributeKeys.Position,i.GL.FLOAT,4,0,12,3,!1),this.pushBack=function(t){this.insert(t)},this):new i.sourceDataP3fv(t)},r(i.sourceDataP3fv,i.sourceData),i.sourceDataT2fv=function(t){"use strict";return this instanceof i.sourceDataT2fv?(i.sourceData.call(this,t),this.addAttribute(i.vertexAttributeKeys.TextureCoordinate,i.GL.FLOAT,4,0,8,2,!1),this.pushBack=function(t){this.insert(t)},this):new i.sourceDataT2fv(t)},r(i.sourceDataT2fv,i.sourceData),i.geometryData=function(){"use strict";if(!(this instanceof i.geometryData))return new i.geometryData;i.data.call(this);var t=[],e=[],n=[0,0,0,0,0,0],r=o(),a=o();return this.type=function(){return i.data.geometry},this.name=function(){return""},this.addSource=function(t){return-1===e.indexOf(t)&&(e.push(t),t.hasKey(i.vertexAttributeKeys.Position)&&a.modified(),!0)},this.source=function(t){return t<e.length?e[t]:0},this.sourceByName=function(t){for(var n=0;n<e.length;n+=1)if(e[n].name()===t)return e[n];return 0},this.numberOfSources=function(){return e.length},this.sourceData=function(t){var n;for(n=0;n<e.length;n+=1)if(e[n].hasKey(t))return e[n];return null},this.addPrimitive=function(e){return t.push(e),!0},this.primitive=function(e){return e<t.length?t[e]:null},this.numberOfPrimitives=function(){return t.length},this.bounds=function(){return a.getMTime()>r.getMTime()&&this.computeBounds(),n},this.boundsDirty=function(t){return t&&a.modified(),a.getMTime()>r.getMTime()},this.setBounds=function(t,e,i,o,a,s){return n[0]=t,n[1]=e,n[2]=i,n[3]=o,n[4]=a,n[5]=s,r.modified(),!0},this},r(i.geometryData,i.data)},29:function(t,e,n){var i=n(698),r=n(4626);i.graphicsObject=function(t){"use strict";if(!(this instanceof i.graphicsObject))return new i.graphicsObject;i.object.call(this);return this._setup=function(t){return!1},this._cleanup=function(t){return!1},this},r(i.graphicsObject,i.object)},7616:function(t,e,n){var i=n(698),r=n(4626);i.groupNode=function(){"use strict";if(!(this instanceof i.groupNode))return new i.groupNode;i.node.call(this);var t=[];return this.addChild=function(e){return e instanceof i.node&&(-1===t.indexOf(e)&&(e.setParent(this),t.push(e),this.boundsDirtyTimestamp().modified(),!0))},this.removeChild=function(e){if(e.parent()===this){var n=t.indexOf(e);if(n>=0)return t.splice(n,1),e.setParent(null),this.boundsDirtyTimestamp().modified(),!0}},this.removeChildren=function(){for(;t.length;)this.removeChild(t[0]);this.modified()},this.children=function(){return t},this.hasChild=function(e){var n=0,i=!1;for(n=0;n<t.length;n+=1)if(t[n]===e){i=!0;break}return i},this},r(i.groupNode,i.node)},1611:function(t,e,n){t.exports=n(698),n(6552),n(9156),n(3556),n(9838),n(4831),n(29),n(4970),n(1232),n(2971),n(10),n(7616),n(4580),n(8576),n(7695),n(7327),n(5763),n(5796),n(5794),n(796),n(8888),n(3471),n(4933),n(7205)},9838:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.mapper=function(t){"use strict";if(!(this instanceof i.mapper))return new i.mapper(t);i.boundingObject.call(this);var e=[0,1,1],n=null,r=[],a={},s=void 0!==(t=t||{}).dynamicDraw&&t.dynamicDraw,l=o(),u=null,c=this;function d(t){a={},r=[]}function h(t){c.deleteVertexBufferObjects(t),d(),function(t){if(n){t&&(u=t.m_context);var e,o,c,d,h,f,p,m=n.numberOfSources(),g=null;for(e=0;e<m;e+=1){for(g=u.createBuffer(),u.bindBuffer(i.GL.ARRAY_BUFFER,g),(p=n.source(e).data())instanceof Float32Array||(p=new Float32Array(p)),u.bufferData(i.GL.ARRAY_BUFFER,p,s?i.GL.DYNAMIC_DRAW:i.GL.STATIC_DRAW),d=n.source(e).keys(),h=[],o=0;o<d.length;o+=1)h.push(d[o]);a[e]=h,r[e]=g}for(f=n.numberOfPrimitives(),c=0;c<f;c+=1)g=u.createBuffer(),u.bindBuffer(i.GL.ARRAY_BUFFER,g),u.bufferData(i.GL.ARRAY_BUFFER,n.primitive(c).indices(),i.GL.STATIC_DRAW),r[e]=g,e+=1;l.modified()}}(t)}return this.deleteVertexBufferObjects=function(t){var e,n=u;if(t&&(n=t.m_context),n)for(e=0;e<r.length;e+=1)n.deleteBuffer(r[e])},this._cleanup=function(t){c.deleteVertexBufferObjects(t),d(t),c.modified()},this.computeBounds=function(){if(null!=n){var t=this.computeBoundsTimestamp(),e=null;this.boundsDirtyTimestamp().getMTime()>t.getMTime()&&(e=n.bounds(),this.setBounds(e[0],e[1],e[2],e[3],e[4],e[5]),t.modified())}else this.resetBounds()},this.color=function(){return e},this.geometryData=function(){return n},this.setGeometryData=function(t){n!==t&&(n=t,this.modified(),this.boundsDirtyTimestamp().modified())},this.updateSourceBuffer=function(t,e,o){if(o&&(u=o.m_context),!u)return!1;for(var a=-1,s=0;s<n.numberOfSources();s+=1)if(n.source(s).name()===t){a=s;break}return!(a<0||a>=r.length)&&(e||(e=n.source(s).dataToFloat32Array()),u.bindBuffer(i.GL.ARRAY_BUFFER,r[a]),e instanceof Float32Array?u.bufferSubData(i.GL.ARRAY_BUFFER,0,e):u.bufferSubData(i.GL.ARRAY_BUFFER,0,new Float32Array(e)),!0)},this.getSourceBuffer=function(t){var e=n.sourceByName(t);return e?e.dataToFloat32Array():new Float32Array},this.render=function(t,e){(this.getMTime()>l.getMTime()||t.m_contextChanged)&&h(t),(u=t.m_context).vertexAttrib3fv(i.vertexAttributeKeys.Color,this.color());var o,s,c=0,d=0,f=null;for(o in a)if(a.hasOwnProperty(o)){for(u.bindBuffer(i.GL.ARRAY_BUFFER,r[c]),d=0;d<a[o].length;d+=1)t.m_material.bindVertexData(t,a[o][d]);c+=1}for(s=n.numberOfPrimitives(),d=0;d<s;d+=1,c+=1)if((f=n.primitive(d)).numberOfIndices()){switch(u.bindBuffer(i.GL.ARRAY_BUFFER,r[c]),f.primitiveType()){case i.GL.POINTS:u.drawArrays(i.GL.POINTS,0,f.numberOfIndices());break;case i.GL.LINES:u.drawArrays(i.GL.LINES,0,f.numberOfIndices());break;case i.GL.LINE_STRIP:u.drawArrays(i.GL.LINE_STRIP,0,f.numberOfIndices());break;case i.GL.TRIANGLES:u.drawArrays(i.GL.TRIANGLES,0,f.numberOfIndices());break;case i.GL.TRIANGLE_STRIP:u.drawArrays(i.GL.TRIANGLE_STRIP,0,f.numberOfIndices())}u.bindBuffer(i.GL.ARRAY_BUFFER,null)}e||this.undoBindVertexData(t)},this.undoBindVertexData=function(t){var e,n;for(e in a)if(a.hasOwnProperty(e))for(n=0;n<a[e].length;n+=1)t.m_material.undoBindVertexData(t,a[e][n])},this},r(i.mapper,i.boundingObject)},4970:function(t,e,n){var i=n(698),r=n(4626);i.material=function(){"use strict";if(!(this instanceof i.material))return new i.material;i.graphicsObject.call(this);var t=this,e=new i.shaderProgram,n=100,r={},o={};return this.binNumber=function(){return n},this.setBinNumber=function(e){n=e,t.modified()},this.exists=function(t){return t.type()===i.materialAttributeType.Texture?r.hasOwnProperty(t.textureUnit()):o.hasOwnProperty(t.type())},this.addAttribute=function(n){return!t.exists(n)&&(n.type()===i.materialAttributeType.Texture?(r[n.textureUnit()]=n,t.modified(),!0):(n.type()===i.materialAttributeType.ShaderProgram&&(e=n),o[n.type()]=n,t.modified(),!0))},this.shaderProgram=function(){return e},this._cleanup=function(n){for(var i in o)o.hasOwnProperty(i)&&o[i]._cleanup(n);for(i in r)r.hasOwnProperty(i)&&r[i]._cleanup(n);e._cleanup(n),t.modified()},this.bind=function(t){var n=null;for(n in e.bind(t),o)o.hasOwnProperty(n)&&o[n]!==e&&o[n].bind(t);for(n in r)r.hasOwnProperty(n)&&r[n].bind(t)},this.undoBind=function(t){var e=null;for(e in o)o.hasOwnProperty(e)&&o[e].undoBind(t);for(e in r)r.hasOwnProperty(e)&&r[e].undoBind(t)},this.bindVertexData=function(t,e){var n=null;for(n in o)o.hasOwnProperty(n)&&o[n].bindVertexData(t,e)},this.undoBindVertexData=function(t,e){var n=null;for(n in o)o.hasOwnProperty(n)&&o[n].undoBindVertexData(t,e)},t},i.material.RenderBin={Base:0,Default:100,Opaque:100,Transparent:1e3,Overlay:1e4},r(i.material,i.graphicsObject)},1232:function(t,e,n){var i=n(698),r=n(4626);i.materialAttributeType={Undefined:0,ShaderProgram:1,Texture:2,Blend:3,Depth:4},i.materialAttribute=function(t){"use strict";if(!(this instanceof i.materialAttribute))return new i.materialAttribute(t);i.graphicsObject.call(this);var e=t;return this.type=function(){return e},this.enabled=function(){return true},this.bindVertexData=function(t,e){return!1},this.undoBindVertexData=function(t,e){return!1},this},r(i.materialAttribute,i.graphicsObject)},2971:function(t,e,n){var i=n(698),r=n(4626);i.node=function(){"use strict";if(!(this instanceof i.node))return new i.node;i.boundingObject.call(this);var t=null,e=null,n=!0;return this.material=function(){return e},this.setMaterial=function(t){return t!==e&&(e=t,this.modified(),!0)},this.visible=function(){return n},this.setVisible=function(t){return t!==n&&(n=t,this.modified(),!0)},this.parent=function(){return t},this.setParent=function(e){return e!==t&&(null!==t&&t.removeChild(this),t=e,this.modified(),!0)},this.boundsModified=function(){this.boundsDirtyTimestamp().modified(),null!==t&&t.boundsModified()},this},r(i.node,i.boundingObject)},9156:function(t,e,n){var i=n(698),r=n(77);i.object=function(){"use strict";if(!(this instanceof i.object))return new i.object;var t=r();return t.modified(),this.modified=function(){t.modified()},this.getMTime=function(){return t.getMTime()},this}},5763:function(t,e,n){var i=n(698),r=n(4626);i.renderWindow=function(t){"use strict";if(!(this instanceof i.renderWindow))return new i.renderWindow(t);i.graphicsObject.call(this);var e=this,n=0,r=0,o=400,a=400,s=t,l=null,u=[],c=null;return this.windowSize=function(){return[o,a]},this.windowPosition=function(){return[n,r]},this.renderers=function(){return u},this.activeRenderer=function(){return l},this.addRenderer=function(t){return!1===e.hasRenderer(t)&&(u.push(t),t.setRenderWindow(e),null===l&&(l=t),0!==t.layer()&&t.camera().setClearMask(i.GL.DepthBufferBit),e.modified(),!0)},this.hasRenderer=function(t){var e;for(e=0;e<u.length;e+=1)if(t===u[e])return!0;return!1},this.positionAndResize=function(t,i,s,l){var c;for(n=t,r=i,o=s,a=l,c=0;c<u.length;c+=1)u[c].positionAndResize(n,r,o,a);e.modified()},this._setup=function(t){c=null;try{var e;for(c=s.getContext("webgl")||s.getContext("experimental-webgl"),e=0;e<u.length;e+=1)(u[e].width()>o||0===u[e].width()||u[e].height()>a||0===u[e].height())&&u[e].resize(n,r,o,a);return!0}catch(t){}return c||console("[ERROR] Unable to initialize WebGL. Your browser may not support it."),!1},this.context=function(){return c},this._cleanup=function(t){var n;for(n=0;n<u.length;n+=1)u[n]._cleanup(t);i.clearCachedShaders(t?t.m_context:null),e.modified()},this.render=function(){var t;for(u.sort((function(t,e){return t.layer()-e.layer()})),t=0;t<u.length;t+=1)u[t].render()},e},r(i.renderWindow,i.graphicsObject)},5796:function(t,e,n){var i=n(698),r=n(4626),o=n(3503);i.renderState=function(){"use strict";this.m_context=null,this.m_modelViewMatrix=o.create(),this.m_normalMatrix=o.create(),this.m_projectionMatrix=null,this.m_material=null,this.m_mapper=null},i.renderer=function(t){"use strict";if(!(this instanceof i.renderer))return new i.renderer(t);i.graphicsObject.call(this),t=t||{};var e=this;return e.m_renderWindow=null,e.m_contextChanged=!1,e.m_sceneRoot=new i.groupNode,e.m_camera=new i.camera(t),e.m_nearClippingPlaneTolerance=null,e.m_x=0,e.m_y=0,e.m_width=0,e.m_height=0,e.m_resizable=!0,e.m_resetScene=!0,e.m_layer=0,e.m_renderPasses=null,e.m_resetClippingRange=!0,e.m_depthBits=null,e.m_camera.addChild(e.m_sceneRoot),this.width=function(){return e.m_width},this.height=function(){return e.m_height},this.layer=function(){return e.m_layer},this.setLayer=function(t){e.m_layer=t,e.modified()},this.renderWindow=function(){return e.m_renderWindow},this.setRenderWindow=function(t){e.m_renderWindow!==t&&(e.m_renderWindow&&e.m_renderWindow.removeRenderer(this),e.m_renderWindow=t,e.m_contextChanged=!0,e.modified())},this.camera=function(){return e.m_camera},this.render=function(){var t,n,r,a=null,s=[],l=o.create(),u=null;if((n=new i.renderState).m_renderer=e,n.m_context=e.renderWindow().context(),e.m_depthBits&&!e.m_contextChanged||(e.m_depthBits=n.m_context.getParameter(i.GL.DEPTH_BITS)),n.m_contextChanged=e.m_contextChanged,e.m_renderPasses)for(t=0;t<e.m_renderPasses.length;t+=1){if(e.m_renderPasses[t].render(n))return console.log("returning"),void e.m_renderPasses[t].remove(n);e.m_renderPasses[t].remove(n)}for(n.m_context.enable(i.GL.DEPTH_TEST),n.m_context.depthFunc(i.GL.LEQUAL),e.m_camera.clearMask()&i.GL.COLOR_BUFFER_BIT&&(u=e.m_camera.clearColor(),n.m_context.clearColor(u[0],u[1],u[2],u[3])),e.m_camera.clearMask()&i.GL.DEPTH_BUFFER_BIT&&n.m_context.clearDepth(e.m_camera.clearDepth()),n.m_context.clear(e.m_camera.clearMask()),n.m_context.viewport(e.m_x,e.m_y,e.m_width,e.m_height),(r=e.m_sceneRoot.children()).length>0&&e.m_resetScene&&(e.m_resetScene=!1),t=0;t<r.length;t+=1)(a=r[t]).computeBounds(),a.visible()&&a.material().binNumber()>=0&&s.push([a.material().binNumber(),a]);for(s.sort((function(t,e){return t[0]-e[0]})),t=0;t<s.length;t+=1){if((a=s[t][1]).referenceFrame()===i.boundingObject.ReferenceFrame.Relative){var c=e.m_camera.viewMatrix();c instanceof Array&&(n.m_modelViewMatrix=new Array(16)),o.multiply(n.m_modelViewMatrix,c,a.matrix()),n.m_projectionMatrix=e.m_camera.projectionMatrix(),n.m_modelViewAlignment=e.m_camera.viewAlignment()}else n.m_modelViewMatrix=a.matrix(),n.m_modelViewAlignment=null,n.m_projectionMatrix=o.create(),o.ortho(n.m_projectionMatrix,0,e.m_width,0,e.m_height,-1,1);o.invert(l,n.m_modelViewMatrix),o.transpose(n.m_normalMatrix,l),n.m_material=a.material(),n.m_mapper=a.mapper(),n.m_material.bind(n),n.m_mapper.render(n),n.m_material.undoBind(n)}n.m_context.finish(),e.m_contextChanged=!1,e.m_lastRenderState=n},this.resize=function(t,n){t&&n&&e.positionAndResize(e.m_x,e.m_y,t,n)},this.positionAndResize=function(t,n,i,r){var o;if(t<0||n<0||i<=0||r<=0)console.log("[error] Invalid position and resize values",t,n,i,r);else if(e.m_resizable&&(e.m_width=i,e.m_height=r,e.m_camera.setViewAspect(i/r),e.m_camera.setParallelExtents({width:i,height:r}),e.modified()),e.m_renderPasses)for(o=0;o<e.m_renderPasses.length;o+=1)e.m_renderPasses[o].resize(i,r),e.m_renderPasses[o].renderer().positionAndResize(t,n,i,r)},this.addActor=function(t){return t instanceof i.actor&&(e.m_sceneRoot.addChild(t),e.modified(),!0)},this.hasActor=function(t){return e.m_sceneRoot.hasChild(t)},this.removeActor=function(t){return-1!==e.m_sceneRoot.children().indexOf(t)&&(e.m_lastRenderState&&(t.mapper()&&t.mapper()._cleanup(e.m_lastRenderState),t.material()&&t.material()._cleanup(e.m_lastRenderState)),t.modified(),e.m_sceneRoot.removeChild(t),e.modified(),!0)},this.setResetScene=function(t){e.m_resetScene!==t&&(e.m_resetScene=t,e.modified())},this._cleanup=function(t){for(var n=e.m_sceneRoot.children(),i=0;i<n.length;i+=1){var r=n[i];r.material()._cleanup(t),r.mapper()._cleanup(t)}e.m_sceneRoot.removeChildren(),e.modified()},e},r(i.renderer,i.graphicsObject)},5794:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.shader=function(t){"use strict";if(!(this instanceof i.shader))return new i.shader(t);i.object.call(this);var e=[],n=t,r="";this._getContextEntry=function(t){var n,i,r=t.m_context;for(n=0;n<e.length;n+=1)if(e[n].context===r)return e[n];return i={context:r,compileTimestamp:o()},e.push(i),i},this.removeContext=function(t){var n,i=t.m_context;for(n=0;n<e.length;n+=1)if(e[n].context===i)return void e.splice(n,1)},this.shaderHandle=function(t){return this._getContextEntry(t).shaderHandle},this.setShaderSource=function(t){r=t,this.modified()},this.compile=function(t){var e=this._getContextEntry(t);return this.getMTime()<e.compileTimestamp.getMTime()?e.shaderHandle:(t.m_context.deleteShader(e.shaderHandle),e.shaderHandle=t.m_context.createShader(n),t.m_context.shaderSource(e.shaderHandle,r),t.m_context.compileShader(e.shaderHandle),t.m_context.getShaderParameter(e.shaderHandle,i.GL.COMPILE_STATUS)?(e.compileTimestamp.modified(),e.shaderHandle):(console.log("[ERROR] An error occurred compiling the shaders: "+t.m_context.getShaderInfoLog(e.shaderHandle)),console.log(r),t.m_context.deleteShader(e.shaderHandle),null))},this.attachShader=function(t,e){t.m_context.attachShader(e,this.shaderHandle(t))}},r(i.shader,i.object),function(){"use strict";var t=[];i.getCachedShader=function(e,n,r){for(var o=0;o<t.length;o+=1)if(t[o].type===e&&t[o].context===n&&t[o].source===r)return o&&t.splice(0,0,t.splice(o,1)[0]),t[0].shader;var a=new i.shader(e);return a.setShaderSource(r),t.unshift({type:e,context:n,source:r,shader:a}),t.length>=10&&t.splice(10,t.length-10),a},i.clearCachedShaders=function(e){for(var n=t.length-1;n>=0;n-=1)null!=e&&t[n].context!==e||t.splice(n,1)}}()},796:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.shaderProgram=function(){"use strict";if(!(this instanceof i.shaderProgram))return new i.shaderProgram;i.materialAttribute.call(this,i.materialAttributeType.ShaderProgram);var t=this,e=0,n=o(),r=o(),a=[],s=[],l={},u={},c={};return this.queryUniformLocation=function(t,n){return t.m_context.getUniformLocation(e,n)},this.queryAttributeLocation=function(t,n){return t.m_context.getAttribLocation(e,n)},this.addShader=function(e){if(a.indexOf(e)>-1)return!1;var n;for(n=a.length-2;n>=0;n-=1)a[n].shaderType()===e.shaderType()&&a.splice(n,1);return a.push(e),t.modified(),!0},this.addUniform=function(e){return!(s.indexOf(e)>-1)&&(s.push(e),t.modified(),!0)},this.addVertexAttribute=function(e,n){l[n]=e,t.modified()},this.uniformLocation=function(t){return u[t]},this.attributeLocation=function(t){return c[t]},this.uniform=function(t){var e;for(e=0;e<s.length;e+=1)if(s[e].name()===t)return s[e];return null},this.updateUniforms=function(t){var e;for(e=0;e<s.length;e+=1)s[e].callGL(t,u[s[e].name()])},this.link=function(t){return t.m_context.linkProgram(e),!!t.m_context.getProgramParameter(e,i.GL.LINK_STATUS)||(console.log("[ERROR] Unable to initialize the shader program."),!1)},this.use=function(t){t.m_context.useProgram(e)},this._setup=function(t){0===e&&(e=t.m_context.createProgram())},this._cleanup=function(e){t.deleteVertexAndFragment(e),t.deleteProgram(e),t.modified()},this.deleteProgram=function(t){e&&t.m_context.deleteProgram(e),e=0},this.deleteVertexAndFragment=function(t){var n;for(n=0;n<a.length;n+=1)a[n].shaderHandle(t)&&t.m_context.detachShader(e,a[n].shaderHandle(t)),t.m_context.deleteShader(a[n].shaderHandle(t)),a[n].removeContext(t)},this.compileAndLink=function(i){var r;if(!(n.getMTime()>=this.getMTime())){for(t._setup(i),r=0;r<a.length;r+=1)a[r].compile(i),a[r].attachShader(i,e);t.bindAttributes(i),t.link(i)||(console.log("[ERROR] Failed to link Program"),t._cleanup(i)),n.modified()}},this.bind=function(e){var n=0;for(r.getMTime()<t.getMTime()?(t.compileAndLink(e),t.use(e),t.bindUniforms(e),r.modified()):t.use(e),n=0;n<s.length;n+=1)s[n].update(e,t);t.updateUniforms(e)},this.undoBind=function(t){t.m_context.useProgram(null)},this.bindVertexData=function(t,e){l.hasOwnProperty(e)&&l[e].bindVertexData(t,e)},this.undoBindVertexData=function(t,e){l.hasOwnProperty(e)&&l[e].undoBindVertexData(t,e)},this.bindUniforms=function(t){var e;for(e=0;e<s.length;e+=1)u[s[e].name()]=this.queryUniformLocation(t,s[e].name())},this.bindAttributes=function(t){var n,i;for(n in l)l.hasOwnProperty(n)&&(i=l[n].name(),t.m_context.bindAttribLocation(e,n,i),c[i]=n)},t},r(i.shaderProgram,i.materialAttribute)},8888:function(t,e,n){var i=n(698),r=n(4626),o=n(77);i.texture=function(){"use strict";if(!(this instanceof i.texture))return new i.texture;i.materialAttribute.call(this,i.materialAttributeType.Texture),this.m_width=0,this.m_height=0,this.m_depth=0,this.m_textureHandle=null,this.m_textureUnit=0,this.m_pixelFormat=i.GL.RGBA,this.m_pixelDataType=i.GL.UNSIGNED_BYTE,this.m_internalFormat=i.GL.RGBA,this.m_nearestPixel=!1,this.m_image=null;var t=o(),e=this;function n(t){if(!(e.m_textureUnit>=0&&e.m_textureUnit<32))throw"[error] Texture unit "+e.m_textureUnit+" is not supported";t.m_context.activeTexture(i.GL.TEXTURE0+e.m_textureUnit)}return this.setup=function(e){n(e),e.m_context.deleteTexture(this.m_textureHandle),this.m_textureHandle=e.m_context.createTexture(),e.m_context.bindTexture(i.GL.TEXTURE_2D,this.m_textureHandle),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MIN_FILTER,this.m_nearestPixel?i.GL.NEAREST:i.GL.LINEAR),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MAG_FILTER,this.m_nearestPixel?i.GL.NEAREST:i.GL.LINEAR),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_WRAP_S,i.GL.CLAMP_TO_EDGE),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_WRAP_T,i.GL.CLAMP_TO_EDGE),null!==this.m_image?(e.m_context.pixelStorei(i.GL.UNPACK_ALIGNMENT,1),e.m_context.pixelStorei(i.GL.UNPACK_FLIP_Y_WEBGL,!0),this.updateDimensions(),this.computeInternalFormatUsingImage(),e.m_context.texImage2D(i.GL.TEXTURE_2D,0,this.m_internalFormat,this.m_pixelFormat,this.m_pixelDataType,this.m_image)):e.m_context.texImage2D(i.GL.TEXTURE_2D,0,this.m_internalFormat,this.m_width,this.m_height,0,this.m_pixelFormat,this.m_pixelDataType,null),e.m_context.bindTexture(i.GL.TEXTURE_2D,null),t.modified()},this.bind=function(e){this.getMTime()>t.getMTime()&&this.setup(e),n(e),e.m_context.bindTexture(i.GL.TEXTURE_2D,this.m_textureHandle)},this.undoBind=function(t){t.m_context.bindTexture(i.GL.TEXTURE_2D,null)},this.image=function(){return this.m_image},this.setImage=function(t){return null!==t&&(this.m_image=t,this.updateDimensions(),this.modified(),!0)},this.nearestPixel=function(){return this.m_nearestPixel},this.setNearestPixel=function(t){return(t=!!t)!==this.m_nearestPixel&&(this.m_nearestPixel=t,this.modified(),!0)},this.textureUnit=function(){return this.m_textureUnit},this.setTextureUnit=function(t){return this.m_textureUnit!==t&&(this.m_textureUnit=t,this.modified(),!0)},this.computeInternalFormatUsingImage=function(){this.m_internalFormat=i.GL.RGBA,this.m_pixelFormat=i.GL.RGBA,this.m_pixelDataType=i.GL.UNSIGNED_BYTE},this.updateDimensions=function(){null!==this.m_image&&(this.m_width=this.m_image.width,this.m_height=this.m_image.height,this.m_depth=0)},this.textureHandle=function(){return this.m_textureHandle},this},r(i.texture,i.materialAttribute),i.lookupTable=function(){"use strict";if(!(this instanceof i.lookupTable))return new i.lookupTable;i.texture.call(this);var t=o();return this.m_colorTable=[.07514311,.468049805,1,1,.247872569,.498782363,1,1,.339526309,.528909511,1,1,.409505078,.558608486,1,1,.468487184,.588057293,1,1,.520796675,.617435078,1,1,.568724526,.646924167,1,1,.613686735,.676713218,1,1,.656658579,.707001303,1,1,.698372844,.738002964,1,1,.739424025,.769954435,1,1,.780330104,.803121429,1,1,.821573924,.837809045,1,1,.863634967,.874374691,1,1,.907017747,.913245283,1,1,.936129275,.938743558,.983038586,1,.943467973,.943498599,.943398095,1,.990146732,.928791426,.917447482,1,1,.88332677,.861943246,1,1,.833985467,.803839606,1,1,.788626485,.750707739,1,1,.746206642,.701389973,1,1,.70590052,.654994046,1,1,.667019783,.610806959,1,1,.6289553,.568237474,1,1,.591130233,.526775617,1,1,.552955184,.485962266,1,1,.513776083,.445364274,1,1,.472800903,.404551679,1,1,.428977855,.363073592,1,1,.380759558,.320428137,1,.961891484,.313155629,.265499262,1,.916482116,.236630659,.209939162,1].map((function(t){return 255*t})),this.setup=function(e){0===this.textureUnit()?e.m_context.activeTexture(i.GL.TEXTURE0):1===this.textureUnit()&&e.m_context.activeTexture(i.GL.TEXTURE1),e.m_context.deleteTexture(this.m_textureHandle),this.m_textureHandle=e.m_context.createTexture(),e.m_context.bindTexture(i.GL.TEXTURE_2D,this.m_textureHandle),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MIN_FILTER,i.GL.LINEAR),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MAG_FILTER,i.GL.LINEAR),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_WRAP_S,i.GL.CLAMP_TO_EDGE),e.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_WRAP_T,i.GL.CLAMP_TO_EDGE),e.m_context.pixelStorei(i.GL.UNPACK_ALIGNMENT,1),this.m_width=this.m_colorTable.length/4,this.m_height=1,this.m_depth=0,e.m_context.texImage2D(i.GL.TEXTURE_2D,0,i.GL.RGBA,this.m_width,this.m_height,this.m_depth,i.GL.RGBA,i.GL.UNSIGNED_BYTE,new Uint8Array(this.m_colorTable)),e.m_context.bindTexture(i.GL.TEXTURE_2D,null),t.modified()},this.colorTable=function(){return this.m_colorTable},this.setColorTable=function(t){return this.m_colorTable!==t&&(this.m_colorTable=t,this.modified(),!0)},this},r(i.lookupTable,i.texture)},3471:function(t,e,n){var i=n(698),r=n(4626),o=n(3503);i.uniform=function(t,e){"use strict";if(!(this instanceof i.uniform))return new i.uniform(t,e);this.getTypeNumberOfComponents=function(t){switch(t){case i.GL.FLOAT:case i.GL.INT:case i.GL.BOOL:return 1;case i.GL.FLOAT_VEC2:case i.GL.INT_VEC2:case i.GL.BOOL_VEC2:return 2;case i.GL.FLOAT_VEC3:case i.GL.INT_VEC3:case i.GL.BOOL_VEC3:return 3;case i.GL.FLOAT_VEC4:case i.GL.INT_VEC4:case i.GL.BOOL_VEC4:return 4;case i.GL.FLOAT_MAT3:return 9;case i.GL.FLOAT_MAT4:return 16;default:return 0}};var n=t,r=e,o=new Array(this.getTypeNumberOfComponents(n)).fill(0);return this.name=function(){return r},this.set=function(t){var e=0,n=o.length;if(1!==n)for(e=0;e<n;e+=1)o[e]=t[e];else o[0]=t},this.callGL=function(t,e){switch(n){case i.GL.BOOL:case i.GL.INT:t.m_context.uniform1iv(e,o);break;case i.GL.FLOAT:t.m_context.uniform1fv(e,o);break;case i.GL.BOOL_VEC2:case i.GL.INT_VEC2:t.m_context.uniform2iv(e,o);break;case i.GL.FLOAT_VEC2:t.m_context.uniform2fv(e,o);break;case i.GL.BOOL_VEC3:case i.GL.INT_VEC3:t.m_context.uniform3iv(e,o);break;case i.GL.FLOAT_VEC3:t.m_context.uniform3fv(e,o);break;case i.GL.BOOL_VEC4:case i.GL.INT_VEC4:t.m_context.uniform4iv(e,o);break;case i.GL.FLOAT_VEC4:t.m_context.uniform4fv(e,o);break;case i.GL.FLOAT_MAT3:t.m_context.uniformMatrix3fv(e,i.GL.FALSE,o);break;case i.GL.FLOAT_MAT4:t.m_context.uniformMatrix4fv(e,i.GL.FALSE,o)}},this.update=function(t,e){},this},i.modelViewOriginUniform=function(t,e){"use strict";if(!(this instanceof i.modelViewOriginUniform))return new i.modelViewOriginUniform(t,e);t||(t="modelViewMatrix");var n=[(e=e||[0,0,0])[0],e[1],e[2]||0];return i.uniform.call(this,i.GL.FLOAT_MAT4,t),this.set(o.create()),this.setOrigin=function(t){n=[(t=t||[0,0,0])[0],t[1],t[2]||0]},this.update=function(t,e){var i=t.m_modelViewMatrix;if(t.m_modelViewAlignment){var r=t.m_modelViewAlignment;(i=i.slice?i.slice():Array.prototype.slice.call(i))[12]=Math.round(i[12]/r.roundx)*r.roundx+r.dx,i[13]=Math.round(i[13]/r.roundy)*r.roundy+r.dy}i=o.translate(o.create(),i,n),this.set(i)},this},r(i.modelViewOriginUniform,i.uniform),i.projectionUniform=function(t){"use strict";return this instanceof i.projectionUniform?(t||(t="projectionMatrix"),i.uniform.call(this,i.GL.FLOAT_MAT4,t),this.set(o.create()),this.update=function(t,e){this.set(t.m_projectionMatrix)},this):new i.projectionUniform(t)},r(i.projectionUniform,i.uniform),i.floatUniform=function(t,e){"use strict";if(!(this instanceof i.floatUniform))return new i.floatUniform(t,e);t||(t="floatUniform"),e=void 0===e?1:e,i.uniform.call(this,i.GL.FLOAT,t),this.set(e)},r(i.floatUniform,i.uniform)},4933:function(t,e,n){var i=n(698);i.vertexAttributeKeys={Position:0,Normal:1,TextureCoordinate:2,Color:3,Scalar:4,CountAttributeIndex:5},i.vertexAttributeKeysIndexed={Zero:0,One:1,Two:2,Three:3,Four:4,Five:5,Six:6,Seven:7,Eight:8,Nine:9},i.vertexAttribute=function(t){"use strict";if(!(this instanceof i.vertexAttribute))return new i.vertexAttribute(t);var e=t;this.name=function(){return e},this.bindVertexData=function(t,n){var i=t.m_mapper.geometryData().sourceData(n),r=t.m_material.shaderProgram();t.m_context.vertexAttribPointer(r.attributeLocation(e),i.attributeNumberOfComponents(n),i.attributeDataType(n),i.normalized(n),i.attributeStride(n),i.attributeOffset(n)),t.m_context.enableVertexAttribArray(r.attributeLocation(e))},this.undoBindVertexData=function(t,n){var i=t.m_material.shaderProgram();t.m_context.disableVertexAttribArray(i.attributeLocation(e))}}},698:function(t){t.exports={}},7205:function(t,e,n){var i=n(5616),r=n(698),o=n(4626);r.viewer=function(t,e){"use strict";if(!(this instanceof r.viewer))return new r.viewer(t,e);r.object.call(this);var n=t,o=r.renderer(e),a=r.renderWindow(n);return this.canvas=function(){return n},this.renderWindow=function(){return a},this.init=function(){null!==a?a._setup():console.log("[ERROR] No render window attached")},this.exit=function(t){null!==a?a._cleanup(t):console.log("[ERROR] No render window attached")},this.render=function(){a.render()},this.bindEventHandlers=function(){i(n).on("mousedown",this.handleMouseDown),i(n).on("mouseup",this.handleMouseUp),i(n).on("mousemove",this.handleMouseMove),i(n).on("mousewheel",this.handleMouseWheel),i(n).on("contextmenu",this.handleContextMenu)},this.unbindEventHandlers=function(){i(n).off("mousedown",this.handleMouseDown),i(n).off("mouseup",this.handleMouseUp),i(n).off("mousemove",this.handleMouseMove),i(n).off("mousewheel",this.handleMouseWheel),i(n).off("contextmenu",this.handleContextMenu)},this._init=function(){this.bindEventHandlers(),a.addRenderer(o)},this._init(),this},o(r.viewer,r.object)},394:function(t,e,n){t.exports={pointFeature:n(5380),vtkjsRenderer:n(9897)}},7015:function(t,e,n){var i=function(t){"use strict";if(!(this instanceof n(1338)))return new i(t);var e=this,r=this.draw;return this.draw=function(){return e.ready&&(e._update(),e.renderer()._render(),r()),e},this};t.exports=i},5380:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(7541),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var e=n(5325),i=n(7015),r=n(9897).vtkjs,s=r.Rendering.Core.vtkActor,l=r.Common.Core.vtkDataArray,u=r.Rendering.Core.vtkGlyph3DMapper,c=r.Rendering.Core.vtkMapper,d=r.Common.DataModel.vtkPointSet,h=r.Filters.Sources.vtkSphereSource;i.call(this);var f,p,m,g,y,v=this,x=this._init,_=this._exit,b=this._update;return this._createPipeline=function(){p=d.newInstance(),(m=h.newInstance()).setThetaResolution(30),m.setPhiResolution(30);var t=u.newInstance({orient:!1,colorByArrayName:"color",scalarMode:c.ScalarMode.USE_POINT_FIELD_DATA,colorMode:c.ColorMode.DIRECT_SCALARS,scaling:!0,scaleArray:"diam",scaleMode:u.ScaleModes.SCALE_BY_MAGNITUDE});t.setInputData(p,0),t.setInputConnection(m.getOutputPort(),1),(f=s.newInstance()).setMapper(t),f.getProperty().setAmbient(1),v.renderer().contextRenderer().addActor(f)},this._init=function(){x.call(v,t),v.renderer().contextRenderer().setLayer(0),v._createPipeline()},this._build=function(){var t,n,i,r,o,a,s=v.data().length,u=new Array(3*s),c=v.data(),d=v.position(),h=v.style.get("radius"),f=v.style.get("fill"),m=v.style.get("fillColor"),x=v.style.get("fillOpacity"),_=v.layer().map().unitsPerPixel(v.layer().map().zoom());for(y&&y.length===s||(y=new Float32Array(s)),g&&g.length===4*s||(g=new Uint8Array(4*s)),t=n=i=0;t<s;t+=1,n+=3,i+=4)r=d(c[t],t),u[n]=r.x,u[n+1]=r.y,u[n+2]=r.z||0,a=a||u[n+2],y[t]=h(c[t],t)*_*2,o=m(c[t],t),g[i]=255*o.r,g[i+1]=255*o.g,g[i+2]=255*o.b,g[i+3]=f(c[t],t)?255*x(c[t],t):0;if(u=e.transformCoordinates(v.gcs(),v.layer().map().gcs(),u,3),!a&&v.gcs()!==v.layer().map().gcs())for(t=n=0;t<s;t+=1,n+=3)u[n+2]=0;p.getPoints().setData(u,3),p.getPointData().addArray(l.newInstance({name:"color",values:g,numberOfComponents:4})),p.getPointData().addArray(l.newInstance({name:"diam",values:y})),v.buildTime().modified()},this._update=function(){if(b.call(v),v.dataTime().getMTime()>=v.buildTime().getMTime()||v.updateTime().getMTime()<v.getMTime())v._build();else{var t=v.data(),e=v.style.get("radius"),n=v.layer().map().unitsPerPixel(v.layer().map().zoom()),i=p.getPointData().getArray("diam"),r=i.getData().map((function(i,r){return e(t[r],r)*n*2}));i.setData(r),p.modified()}v.updateTime().modified()},this._exit=function(){v.renderer().contextRenderer().removeActor(f),_()},v._init(),this};i(a,o);var s={};s[o.capabilities.stroke]=!1,r("vtkjs","point",a,s),t.exports=a},9897:function(t,e,n){var i=n(4626),r=n(1098).registerRenderer,o=n(2274),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var e=n(3503),i=n(6409),r=a.vtkjs.Rendering.Misc.vtkGenericRenderWindow,s=this,l=this._init,u=r.newInstance({background:[0,0,0,0]});u.setContainer(s.layer().node().get(0)),u.getInteractor().unbindEvents(),u.resize();var c=u.getRenderer(),d=u.getRenderWindow();return this.contextRenderer=function(){return c},this.api=function(){return a.apiname},this._init=function(){if(s.initialized())return s;l.call(s);var t=s.layer().map(),e=t.size();return s._resize(0,0,e.width,e.height),t.camera().clipbounds={near:-t.unitsPerPixel(),far:t.unitsPerPixel()},s},this._resize=function(t,e,n,i){return s._setWidthHeight(n,i),u.resize(),s._render(),s},this._render=function(){return s.layer().map().scheduleAnimationFrame(s._renderFrame,!0),s},this._renderFrame=function(){var t,e=s.layer().features();for(t=0;t<e.length;t+=1)e[t].visible()&&e[t]._update();s._updateRendererCamera(),d.render()},this._exit=function(){},this._updateRendererCamera=function(){var t=s.layer().map().camera(),n=t.view,i=t.projectionMatrix,r=e.create();e.copy(r,n);var o=e.create();e.copy(o,i),s.contextRenderer().getActiveCamera().setViewMatrix(r),s.contextRenderer().getActiveCamera().setProjectionMatrix(o)},s.layer().geoOn(i.pan,(function(t){s._render()})),s.layer().geoOn(i.parallelprojection,(function(t){})),this};a.apiname="vtkjs",i(a,o),r("vtkjs",a),a.supported=function(){delete a.vtkjs;try{a.vtkjs=n(4436)}catch(t){}return a.vtkjs&&a.vtkjs.Rendering||!window.vtk||!window.vtk.Rendering||(a.vtkjs=window.vtk),a.vtkjs&&a.vtkjs.Rendering||(a.vtkjs=void 0),void 0!==a.vtkjs},a.fallback=function(){return null},a.supported(),t.exports=a},3559:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(3561),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var e=this,n=null,i=this._exit,r=this.draw,s=this._update;return this.draw=function(){if(e._update(),n)for(var t=0;t<n.length;t+=1)n[t].draw();return r(),e},this._build=function(){return e.buildTime().modified(),n=e.createChoropleth()},this._update=function(){s.call(e),(e.dataTime().timestamp()>=e.buildTime().timestamp()||e.updateTime().timestamp()<=e.timestamp())&&(e._wipePolygons(),e._build()),e.updateTime().modified()},this._wipePolygons=function(){n&&n.map((function(t){return t._exit()})),n=null},this._exit=function(){e._wipePolygons(),i()},this._init(t),this};i(a,o),r("webgl","choropleth",a),t.exports=a},6791:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(6761),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t),n(2778).call(this,t);var e=this;return this._build=function(){e.actors()[0]&&e.renderer().contextRenderer().removeActor(e.actors()[0]),e.createGLMeshColored(e._createContours()),e.renderer().contextRenderer().addActor(e.actors()[0]),e.buildTime().modified()},this._init(t),this};i(a,o),r("webgl","contour",a),t.exports=a},8257:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(2499),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t),n(2778).call(this,t);var e=this;return this._build=function(){e.actors()[0]&&e.renderer().contextRenderer().removeActor(e.actors()[0]),e.createGLMeshColored(e._createGrids()),e.renderer().contextRenderer().addActor(e.actors()[0]),e.buildTime().modified()},this._init(t),this};i(a,o),r("webgl","grid",a),t.exports=a},8635:function(t,e,n){t.exports={choroplethFeature:n(3559),contourFeature:n(6791),gridFeature:n(8257),isolineFeature:n(960),layer:n(6982),lineFeature:n(5795),lookupTable2D:n(411),markerFeature:n(3403),meshColored:n(2778),pixelmapFeature:n(7759),pointFeature:n(5407),polygonFeature:n(8511),quadFeature:n(9304),tileLayer:n(1474),trackFeature:n(536),webglRenderer:n(7945)}},960:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(2586),a=function(t){"use strict";return this instanceof a?(t=t||{},o.call(this,t),n(4084).call(this),this._init(t),this):new a(t)};i(a,o),r("webgl","isoline",a),t.exports=a},6982:function(t,e,n){var i=function(){"use strict";var t=n(1098).createRenderer,e=n(6409),i=n(7945),r=n(9264),o=this,a=this._init,s=this.opacity,l=this.visible,u=this.zIndex;this.opacity=function(t){var e=s.apply(o,arguments);return void 0!==t&&o.initialized()&&o.map()._updateAutoshareRenderers(),e},this.visible=function(t){if(void 0===t)return l();var e=l(),n=l.apply(o,arguments);return e!==t&&o.initialized()&&(o.map().scheduleAnimationFrame(o._update,!0),o.renderer()._render()),n},this.zIndex=function(t,e){var n=u.apply(o,arguments);return void 0!==t&&o.initialized()&&(o.map().scheduleAnimationFrame(o._update,!0),o.renderer()._render(),o.map()._updateAutoshareRenderers()),n},this.switchRenderer=function(t,e){if(t instanceof i&&t!==o.renderer()){var n=o.renderer(),r=[],a=[];o.map().listSceneObjects([o]).forEach((function(t){t._cleanup&&(t._cleanup(),t._update&&a.push(t)),t.actors&&(r=r.concat(t.actors()))})),r.forEach((function(e){n.contextRenderer().removeActor(e),t.contextRenderer().addActor(e)})),o._renderer(t),o._canvas(t.canvas()),e&&(r.length||a.length)&&(n._render(),a.forEach((function(t){t._update()})),t._render())}return o},this._init=function(){var n=o.map();return n._updateAutoshareRenderers||(n._updateAutoshareRenderers=function(){var e,o,a,s=n.sortedLayers(),l=[];s.forEach((function(n){var s=n.autoshareRenderer(),u=n instanceof r;s&&n.renderer()&&n.renderer().api()===i.apiname?!e||n.opacity()!==o||"more"!==s&&(n.opacity()>0&&n.opacity()<1||u&&!a)?(n.node()[0].contains(n.renderer().canvas()[0])||(n.switchRenderer(t(i.apiname,n),!1),l.push(n.renderer())),e=n.renderer(),o=n.opacity(),a=u):(n.renderer()!==e&&(l.push(n.renderer()),n.switchRenderer(e,!1),l.push(n.renderer())),a&=u):e=null})),s.forEach((function(t){l.indexOf(t.renderer())>=0&&t._update&&t._update()})),s.forEach((function(t){l.indexOf(t.renderer())>=0&&(t.renderer()._renderFrame(),l=l.filter((function(e){return e!==t.renderer()})))})),l.forEach((function(t){t._exit()}))},n.geoOn(e.layerAdd,(function(){return n._updateAutoshareRenderers()})),n.geoOn(e.layerRemove,(function(){return n._updateAutoshareRenderers()}))),a.apply(o,arguments)}};(0,n(1098).registerLayerAdjustment)("webgl","all",i),t.exports=i},5795:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(9281),a=0,s=1,l=3,u={butt:0,square:1,round:2},c={passthrough:3,miter:4,bevel:5,round:6,"miter-clip":7},d={normal:0,debug:1},h=function(t){"use strict";if(!(this instanceof h))return new h(t);t=t||{},o.call(this,t);var e=n(1611),i=n(5325),r=n(642),f=n(4084),p=n(5685),m=n(1388),g=n(9336);f.call(this);var y,v,x,_,b,w,M,A,T,C,E,k=this,S=this._exit,O=void 0!==t.dynamicDraw&&t.dynamicDraw,P=this._init,L=this._update;return this.featureVertices=function(){return[[0,"corner",-1,a],[0,"near",1,s],[1,"far",-1,l],[1,"corner",1,a],[1,"near",-1,s],[0,"far",1,l]]},this.verticesPerFeature=function(){return k.featureVertices().length},this._init=function(t){var n,i=e.shaderProgram(),r=((n=new e.shader(e.GL.VERTEX_SHADER)).setShaderSource(g),n),o=function(t){var n=new e.shader(e.GL.FRAGMENT_SHADER);return n.setShaderSource(t?m:p),n}(void 0!==((t||{}).style||{}).debug),a=e.vertexAttribute("pos"),s=e.vertexAttribute("prev"),l=e.vertexAttribute("next"),u=e.vertexAttribute("far"),c=e.vertexAttribute("flags"),d=e.vertexAttribute("strokeWidth"),h=e.vertexAttribute("strokeColor"),f=e.vertexAttribute("strokeOpacity"),T=new e.projectionUniform("projectionMatrix"),C=e.geometryData(),S=e.sourceDataP3fv({name:"pos"}),L=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Four,{name:"prev"}),R=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Five,{name:"next"}),I=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Six,{name:"far"}),D=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Seven,{name:"flags"}),F=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.One,{name:"strokeWidth"}),j=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Two,{name:"strokeColor"}),B=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Three,{name:"strokeOpacity"}),N=e.triangles();return E=new e.modelViewOriginUniform("modelViewMatrix"),_=new e.floatUniform("pixelWidth",1/k.renderer().width()),b=new e.floatUniform("aspect",k.renderer().width()/k.renderer().height()),w=new e.floatUniform("miterLimit",10),M=new e.floatUniform("antialiasing",0),A=new e.floatUniform("fixedFlags",0),P.call(k,t),x=e.material(),v=e.mapper({dynamicDraw:O}),i.addVertexAttribute(a,e.vertexAttributeKeys.Position),i.addVertexAttribute(d,e.vertexAttributeKeysIndexed.One),i.addVertexAttribute(h,e.vertexAttributeKeysIndexed.Two),i.addVertexAttribute(f,e.vertexAttributeKeysIndexed.Three),i.addVertexAttribute(s,e.vertexAttributeKeysIndexed.Four),i.addVertexAttribute(l,e.vertexAttributeKeysIndexed.Five),i.addVertexAttribute(u,e.vertexAttributeKeysIndexed.Six),i.addVertexAttribute(c,e.vertexAttributeKeysIndexed.Seven),i.addUniform(E),i.addUniform(T),i.addUniform(_),i.addUniform(b),i.addUniform(w),i.addUniform(M),i.addUniform(A),i.addShader(o),i.addShader(r),x.addAttribute(i),x.addAttribute(e.blend()),(y=e.actor()).setMaterial(x),y.setMapper(v),C.addSource(S),C.addSource(L),C.addSource(R),C.addSource(I),C.addSource(F),C.addSource(j),C.addSource(B),C.addSource(D),N.setIndices(new Uint16Array(1)),C.addPrimitive(N),C.computeBounds=function(){C.setBounds(0,0,0,0,0,0)},v.setGeometryData(C),k},this.actors=function(){return y?[y]:[]},this._build=function(){return function(t){var e,n,o,a,s,l,h,f,p,m,g,y,x,_,b,S,O,P,L,R,I,D,F,j,B,N,z,V,G,q,U,H,W,X,K,Q,Z,Y,J,$,tt=k.data(),et=0,nt=[{strokeOffset:0,posStrokeOffset:0,negStrokeOffset:0},{strokeOffset:0,posStrokeOffset:0,negStrokeOffset:0}],it=nt[1],rt=k.gcs(),ot=k.layer().map().gcs(),at=k.line(),st=k.style.get("strokeWidth"),lt=k.style.get("strokeColor"),ut=k.style.get("strokeOpacity"),ct=k.style.get("lineCap"),dt=k.style.get("lineJoin"),ht=k.style.get("strokeOffset"),ft=k.style.get("miterLimit")(tt),pt=k.style.get("antialiasing")(tt)||0,mt=k.style.get("uniformLine"),gt=k.featureVertices(),yt=gt.length,vt=d[k.style.get("debug")(tt)?"debug":"normal"]||0,xt=v.geometryData(),_t=k.style.get("closed"),bt=!0;if(J=r.isFunction(k.style("closed"))?void 0:_t()||!1,R=r.isFunction(k.style("lineCap"))?void 0:u[ct()||"butt"],I=r.isFunction(k.style("lineJoin"))?void 0:c[dt()||"miter"],P=r.isFunction(k.style("strokeColor"))?void 0:lt(),D=r.isFunction(k.style("strokeOffset"))?void 0:ht()||0,L=r.isFunction(k.style("strokeOpacity"))?void 0:ut(),O=r.isFunction(k.style("strokeWidth"))?void 0:st(),F=r.isFunction(k.style("uniformLine"))?void 0:mt(),void 0!==ft&&w.set(Math.max(1,Math.min(100,ft))),A.set(vt),M.set(pt),t)et=T.numSegments,$=T.closed,m=T.lineItemList,p=et*yt,bt=R!==T.lineCapVal||void 0===R||I!==T.lineJoinVal||void 0===I||D!==T.strokeOffsetVal||void 0===D;else{var wt=[],Mt=k.position();for(Mt=Mt===r.identityFunction?null:Mt,m=new Array(tt.length),$=new Array(tt.length),n=0;n<tt.length;n+=1)if(g=at(e=tt[n],n),m[n]=g,!(g.length<2)){for(et+=g.length-1,o=0;o<g.length;o+=1)x=Mt?Mt(g[o],o,e,n):g[o],wt.push(x.x),wt.push(x.y),wt.push(x.z||0),o||(b=x);g.length>2&&(void 0===J?_t(e,n):J)?x.x!==b.x||x.y!==b.y||x.z!==b.z?(et+=1,$[n]=2):$[n]=1:$[n]=0}if(wt=i.transformCoordinates(rt,ot,wt,3),(C=new Float32Array(k.style.get("origin")(wt)))[0]||C[1]||C[2])for(n=0;n<wt.length;n+=3)wt[n]-=C[0],wt[n+1]-=C[1],wt[n+2]-=C[2];E.setOrigin(C),p=et*yt,G=r.getGeomBuffer(xt,"pos",3*p),q=r.getGeomBuffer(xt,"prev",3*p),U=r.getGeomBuffer(xt,"next",3*p),H=r.getGeomBuffer(xt,"far",3*p),xt.primitive(0).numberOfIndices()!==p&&(xt.primitive(0).numberOfIndices=function(){return p}),T={numSegments:et,closed:$,lineItemList:m,lineCapVal:R,lineJoinVal:I,strokeOffsetVal:D}}for(W=r.getGeomBuffer(xt,"flags",p),X=r.getGeomBuffer(xt,"strokeWidth",p),K=r.getGeomBuffer(xt,"strokeColor",3*p),Q=r.getGeomBuffer(xt,"strokeOpacity",p),n=_=Z=Y=0;n<tt.length;n+=1)if(!((g=m[n]).length<2)){j=void 0===F?mt(g,n):F,e=tt[n],J=$[n],S=_,f=g.length+(2===J?1:0);var At=0;for(o=0;o<f;o+=1,_+=3)if(h=o,o===g.length&&(h=0,_-=3),y=g[h],o&&(it=nt[0],nt[0]=nt[1],nt[1]=it),t||(it.pos=o===h?_:S,it.prev=h?_-3:J?S+3*(g.length-3+J):_,it.next=o+1<g.length?_+3:J?o!==h?S+3:S+6-3*J:_),j&&o>0?1===o&&(it.strokeWidth=nt[0].strokeWidth,it.strokeColor=nt[0].strokeColor,it.strokeOpacity=nt[0].strokeOpacity):(it.strokeWidth=void 0===O?st(y,h,e,n):O,it.strokeColor=void 0===P?lt(y,h,e,n):P,it.strokeOpacity=void 0===L?ut(y,h,e,n):L),bt&&(0!==D&&(j&&o>0?1===o&&(it.strokeOffset=nt[0].strokeOffset):it.strokeOffset=(void 0===D?ht(y,h,e,n):D)||0,it.strokeOffset?(it.posStrokeOffset=2047&Math.round(2048+1023*Math.min(1,Math.max(-1,it.strokeOffset))),it.negStrokeOffset=2047&Math.round(2048-1023*Math.min(1,Math.max(-1,it.strokeOffset)))):it.posStrokeOffset=it.negStrokeOffset=0),J||o&&o!==g.length-1?it.flags=void 0===I?c[dt(y,h,e,n)]||c.miter:I:it.flags=void 0===R?u[ct(y,h,e,n)]||u.butt:R),o){if("drop"===j&&o>1&&wt[nt[0].pos]===wt[nt[1].pos]&&wt[nt[0].pos+1]===wt[nt[1].pos+1]){At+=1;continue}for(a=0;a<yt;a+=1,Z+=1,Y+=3)"drop"===j&&nt[0].strokeOpacity<=0&&nt[1].strokeOpacity<=0?Q[Z]=-1:(s=nt[B=gt[a][0]],l=nt[1-B],t||(G[Y]=wt[s.pos],G[Y+1]=wt[s.pos+1],G[Y+2]=0,N=B?"next":"prev",z=B?"prev":"next",q[Y]=wt[s[N]],q[Y+1]=wt[s[N]+1],q[Y+2]=0,U[Y]=wt[s[z]],U[Y+1]=wt[s[z]+1],U[Y+2]=0,H[Y]=wt[l[z]],H[Y+1]=wt[l[z]+1],H[Y+2]=0),bt&&(V=B?"posStrokeOffset":"negStrokeOffset",W[Z]=gt[a][3]+4*s.flags+32*l.flags+256*s[V]),X[Z]=s.strokeWidth,K[Y]=s.strokeColor.r,K[Y+1]=s.strokeColor.g,K[Y+2]=s.strokeColor.b,s.strokeOpacity<=0&&l.strokeOpacity<=0||s.strokeWidth<=0&&l.strokeWidth<=0?Q[Z]=-1:Q[Z]=s.strokeOpacity)}if(At)for(a=0;a<At*yt;a+=1,Z+=1,Y+=3)Q[Z]=-1}t?(bt&&v.updateSourceBuffer("flags"),v.updateSourceBuffer("strokeWidth"),v.updateSourceBuffer("strokeOpacity"),v.updateSourceBuffer("strokeColor")):(v.modified(),xt.boundsDirty(!0),v.boundsDirtyTimestamp().modified())}(!!(k.dataTime().timestamp()<k.buildTime().timestamp()&&T)),k.renderer().contextRenderer().hasActor(y)||k.renderer().contextRenderer().addActor(y),k.buildTime().modified(),k},this._update=function(){return L.call(k),(k.dataTime().timestamp()>=k.buildTime().timestamp()||k.updateTime().timestamp()<=k.timestamp())&&k._build(),_.set(1/k.renderer().width()),b.set(k.renderer().width()/k.renderer().height()),y.setVisible(k.visible()),y.material().setBinNumber(k.bin()),k.updateTime().modified(),k},this._exit=function(){k.renderer().contextRenderer().removeActor(y),y=null,S()},this._init(t),this};i(h,o);var f={};f[o.capabilities.basic]=!0,f[o.capabilities.multicolor]=!0,r("webgl","line",h,f),t.exports=h},411:function(t,e,n){var i=n(4626),r=n(77),o=n(1611);var a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.texture.call(this);var e,n=r(),i=t.maxWidth||4096,s=new Uint8Array([0,0,0,0]),l=this;return this.setup=function(t){!function(t,e){if(!(e>=0&&e<=31))throw Error("[error] Texture unit "+e+" is not supported");t.m_context.activeTexture(o.GL.TEXTURE0+e)}(t,l.textureUnit()),t.m_context.deleteTexture(l.m_textureHandle),l.m_textureHandle=t.m_context.createTexture(),t.m_context.bindTexture(o.GL.TEXTURE_2D,l.m_textureHandle),t.m_context.texParameteri(o.GL.TEXTURE_2D,o.GL.TEXTURE_MIN_FILTER,o.GL.NEAREST),t.m_context.texParameteri(o.GL.TEXTURE_2D,o.GL.TEXTURE_MAG_FILTER,o.GL.NEAREST),t.m_context.texParameteri(o.GL.TEXTURE_2D,o.GL.TEXTURE_WRAP_S,o.GL.CLAMP_TO_EDGE),t.m_context.texParameteri(o.GL.TEXTURE_2D,o.GL.TEXTURE_WRAP_T,o.GL.CLAMP_TO_EDGE),t.m_context.pixelStorei(o.GL.UNPACK_ALIGNMENT,1),t.m_context.pixelStorei(o.GL.UNPACK_FLIP_Y_WEBGL,!0),t.m_context.texImage2D(o.GL.TEXTURE_2D,0,o.GL.RGBA,l.width,l.height,0,o.GL.RGBA,o.GL.UNSIGNED_BYTE,s),t.m_context.bindTexture(o.GL.TEXTURE_2D,null),n.modified()},this.colorTable=function(t){return void 0===t?e:(e=t,t.length<4&&(t=[0,0,0,0]),l.width=Math.min(i,t.length/4),l.height=Math.ceil(t.length/4/i),t instanceof Uint8Array&&t.length===l.width*l.height*4?s=t:(t.length<l.width*l.height*4&&(t=t.concat(new Array(l.width*l.height*4-t.length).fill(0))),s=new Uint8Array(t)),l.modified(),l)},this.maxWidth=function(){return i},this.colorTable(t.colorTable||[]),this};i(a,o.texture),t.exports=a},3403:function(t,e,n){var i=n(5616),r=n(4626),o=n(1098).registerFeature,a=n(2225),s=n(7945),l=function(t){"use strict";if(!(this instanceof l))return new l(t);t=t||{},a.call(this,t);var e=n(1611),r=n(5325),o=n(642),u=n(4084),c=n(2709),d=n(6409),h=n(9923),f=n(3724),p=n(1202),m=n(7665);u.call(this);var g,y,v=this,x=this._exit,_=null,b=null,w={},M=this._init,A=this._update,T=this.updateStyleFromArray;function C(t){var e,n,i,l,u,c,d,h,f,p,m,x,w,M=v.data().length,A=v._pointPolygon(0,0,1,1),T=new Array(3*M),E={},k={},S={},O={},P={radius:1,fillColor:3,fillOpacity:1,strokeColor:3,strokeOpacity:1,strokeOffset:0,strokeWidth:1,symbol:1,symbolValue:1,rotation:1,scaleWithZoom:0,rotateWithMap:0,radiusIncludesStroke:0},L=v.verticesPerFeature(),R=v.data(),I=b.geometryData();for(var D in u=v.position(),P)S[D]=v.style.get(D),o.isFunction(v.style(D))||(O[D]=S[D]()),P[D]&&(E[D]=o.getGeomBuffer(I,D,L*M*P[D]));if(!t){for(e=x=0;e<M;e+=1,x+=3)l=u(R[e],e),T[x]=l.x,T[x+1]=l.y,T[x+2]=0;if(T=r.transformCoordinates(v.gcs(),v.layer().map().gcs(),T,3),(y=new Float32Array(v.style.get("origin")(T)))[0]||y[1]||y[2])for(e=x=0;e<M;e+=1,x+=3)T[x]-=y[0],T[x+1]-=y[1],T[x+2]-=y[2];g.setOrigin(y),i=o.getGeomBuffer(I,"pos",L*M*3),v._primitiveShape!==a.primitiveShapes.sprite&&(d=o.getGeomBuffer(I,"unit",L*M*2)),(c=I.primitive(0).indices())instanceof Uint16Array&&c.length===L*M||(c=new Uint16Array(L*M),I.primitive(0).setIndices(c))}for(e=f=p=m=x=0;e<M;e+=1,x+=3){if(h=R[e],!t&&v._primitiveShape!==a.primitiveShapes.sprite)for(n=0;n<A.length;n+=1,m+=1)d[m]=A[n];for(var F in P)k[F]=void 0===O[F]?S[F](h,e):O[F];for(k.scaleWithZoom=a.scaleMode[k.scaleWithZoom]||(k.scaleWithZoom>=1&&k.scaleWithZoom<=3?k.scaleWithZoom:0),k.symbolComputed=k.scaleWithZoom+(k.rotateWithMap?4:0)+16*(Math.sign(void 0!==k.radiusIncludesStroke&&k.radiusIncludesStroke?k.strokeOffset:1)+1)+64*k.symbol,k.symbolValue&&k.symbol>=a.symbols.arrow&&k.symbol<a.symbols.arrow+a.symbols.arrowMax&&(k.symbolValue=(w=k.symbolValue).length?((void 0===w[0]?0:Math.floor(250*Math.abs(w[0]))+1)+252*(void 0===w[1]?0:Math.floor(250*Math.abs(w[1]))+1)+252*(void 0===w[2]?0:Math.floor(250*Math.abs(w[2]))+1)*252)*(w[3]?-1:1):void 0===w?0:Math.floor(250*Math.abs(w))+1),n=0;n<L;n+=1,f+=1,p+=3)t||(i[p]=T[x],i[p+1]=T[x+1],i[p+2]=T[x+2]),E.radius[f]=k.radius,E.fillColor[p]=k.fillColor.r,E.fillColor[p+1]=k.fillColor.g,E.fillColor[p+2]=k.fillColor.b,E.fillOpacity[f]=k.fillOpacity,E.strokeColor[p]=k.strokeColor.r,E.strokeColor[p+1]=k.strokeColor.g,E.strokeColor[p+2]=k.strokeColor.b,E.strokeOpacity[f]=k.strokeOpacity,E.strokeWidth[f]=k.strokeWidth,E.symbol[f]=k.symbolComputed,E.symbolValue[f]=k.symbolValue,E.rotation[f]=k.rotation}if(v._primitiveShapeAuto){var j=v._approximateMaxRadius(v.renderer().map().zoom());if(v._primitiveShape===a.primitiveShapes.sprite&&j>s._maxPointSize||v._primitiveShape!==a.primitiveShapes.sprite&&j<=s._maxPointSize)return v._primitiveShape=j>s._maxPointSize?a.primitiveShapes.triangle:a.primitiveShapes.sprite,v.renderer().contextRenderer().removeActor(_),_=null,v._init(!0),void C()}t?Object.keys(E).forEach((function(t){return b.updateSourceBuffer(t)})):(I.boundsDirty(!0),b.modified(),b.boundsDirtyTimestamp().modified())}return c(v,t),this.actors=function(){return _?[_]:[]},this.updateStyleFromArray=function(t,e,n){var r,o,a={fillColor:3,fillOpacity:1,radius:1,strokeColor:3,strokeOpacity:1,strokeWidth:1,symbolComputed:1,symbolValueComputed:1};if("string"==typeof t){var s={};s[t]=e,t=s}return i.each(t,(function(t,e){var n,i,s,l,u,c,d,h,f,p;if(v.visible()&&_&&a[t]&&!r&&!v.clustering())if(f=a[t],l=v.data().length,p="symbolComputed"===t?"symbol":"symbolValueComputed"===t?"symbolValue":t,s=(i=_.mapper()).getSourceBuffer(p),n=v.verticesPerFeature(),s&&l&&l*n*f===s.length){switch(a[t]){case 1:for(c=0,h=0;c<l;c+=1)for(u=e[c],d=0;d<n;d+=1,h+=1)s[h]=u;break;case 3:for(c=0,h=0;c<l;c+=1)for(u=e[c],d=0;d<n;d+=1,h+=3)s[h]=u.r,s[h+1]=u.g,s[h+2]=u.b}i.updateSourceBuffer(p),o=!0}else r=!0;else r=!0;if(t===p){var m=v.modified;r||(v.modified=function(){}),T(t,e,!1),v.modified=m}})),n&&(v.visible()&&r?v.draw():o&&v.renderer()._render()),v},this._handleZoom=function(t){v._primitiveShapeAuto&&v._primitiveShape===a.primitiveShapes.sprite&&v._approximateMaxRadius(t)>s._maxPointSize&&(v._primitiveShape=a.primitiveShapes.triangle,v.renderer().contextRenderer().removeActor(v.actors()[0]),v._init(!0),v.dataTime().modified(),v.draw())},this._init=function(n){var i,r,o=e.shaderProgram(),s=((r=new e.shader(e.GL.VERTEX_SHADER)).setShaderSource(v._primitiveShape===a.primitiveShapes.sprite?m:p),r),l=function(){var t=new e.shader(e.GL.FRAGMENT_SHADER);return t.setShaderSource(v._primitiveShape===a.primitiveShapes.sprite?f:h),t}(),u=e.material(),c=e.blend(),x=e.geometryData(),A=e.sourceDataP3fv({name:"pos"}),T={radius:1,fillColor:3,fillOpacity:1,strokeColor:3,strokeOpacity:1,strokeWidth:1,symbol:1,symbolValue:1,rotation:1},C={pixelWidth:e.GL.FLOAT,aspect:e.GL.FLOAT,zoom:e.GL.FLOAT,rotationUniform:e.GL.FLOAT},E=new e.projectionUniform("projectionMatrix");g=new e.modelViewOriginUniform("modelViewMatrix",y),v._primitiveShape===a.primitiveShapes.sprite?i=new e.points:(i=new e.triangles,T.unit=2),i.setIndices(new Uint16Array),n||M.call(v,t),b=e.mapper(),o.addVertexAttribute(e.vertexAttribute("pos"),e.vertexAttributeKeys.Position),x.addSource(A),Object.keys(T).forEach((function(t,n){o.addVertexAttribute(e.vertexAttribute(t),n+1),x.addSource(e.sourceDataAnyfv(T[t],n+1,{name:t}))})),w={},Object.keys(C).forEach((function(t){w[t]=new e.uniform(C[t],t),o.addUniform(w[t])})),o.addUniform(g),o.addUniform(E),o.addShader(l),o.addShader(s),u.addAttribute(o),u.addAttribute(c),(_=e.actor()).setMaterial(u),_.setMapper(b),x.addPrimitive(i),x.computeBounds=function(){x.setBounds(0,0,0,0,0,0)},b.setGeometryData(x),n||v.geoOn(d.zoom,(function(t){v._handleZoom(t.zoomLevel)}))},this._build=function(){return C(v.dataTime().timestamp()<v.buildTime().timestamp()),v.renderer().contextRenderer().hasActor(_)||v.renderer().contextRenderer().addActor(_),v.buildTime().modified(),v},this._update=function(){return A.call(v),(v.dataTime().timestamp()>=v.buildTime().timestamp()||v.updateTime().timestamp()<v.timestamp())&&v._build(),w.pixelWidth.set(2/v.renderer().width()),w.aspect.set(v.renderer().width()/v.renderer().height()),w.zoom.set(v.renderer().map().zoom()),w.rotationUniform.set(v.renderer().map().rotation()),_.setVisible(v.visible()),_.material().setBinNumber(v.bin()),v.updateTime().modified(),v},this._exit=function(){v.renderer().contextRenderer().removeActor(_),_=null,w={},x()},v._init(),this};r(l,a);o("webgl","marker",l,{}),t.exports=l},2778:function(t,e,n){t.exports=function(t){"use strict";t=t||{};var e=n(1611),i=n(5325),r=n(642),o=n(428),a=n(4993);n(4084).call(this);var s,l,u=this,c=this._exit,d=null,h=null,f=null,p=null,m=null,g=null,y=null,v=null,x=void 0!==t.dynamicDraw&&t.dynamicDraw,_=this._init,b=this._update;function w(){var t=new e.shader(e.GL.VERTEX_SHADER);return t.setShaderSource(a),t}function M(){var t=new e.shader(e.GL.FRAGMENT_SHADER);return t.setShaderSource(o),t}return this.createGLMeshColored=function(t){var e,n,o,a,c,d,f,x,_,b=t.elements.length,w=[],M=h.geometryData();for(m.set([t.minColor.r,t.minColor.g,t.minColor.b,t.minColor.a]),g.set([t.maxColor.r,t.maxColor.g,t.maxColor.b,t.maxColor.a]),y.set(t.colorMap.length),v.set(t.stepped),e=-1;e<t.colorMap.length+1;e+=1)o=Math.max(0,Math.min(t.colorMap.length-1,e)),w.push(255*t.colorMap[o].r),w.push(255*t.colorMap[o].g),w.push(255*t.colorMap[o].b),w.push(255*t.colorMap[o].a);if(p.setColorTable(w),t.pos=i.transformCoordinates(u.gcs(),u.layer().map().gcs(),t.pos,3),(s=new Float32Array(u.style.get("origin")(t.pos)))[0]||s[1]||s[2])for(e=0;e<t.pos.length;e+=3)t.pos[e]-=s[0],t.pos[e+1]-=s[1],t.pos[e+2]-=s[2];for(l.setOrigin(s),d=r.getGeomBuffer(M,"pos",3*b),f=r.getGeomBuffer(M,"opacity",b),x=r.getGeomBuffer(M,"value",b),e=n=0;e<b;e+=1,n+=3)a=3*(o=t.elements[e]),d[n]=t.pos[a],d[n+1]=t.pos[a+1],d[n+2]=t.pos[a+2],c=t.elementValues?Math.floor(e/3):o,f[e]=t.opacity[c],x[e]=t.value[c];(_=M.primitive(0).indices())instanceof Uint16Array&&_.length===b||(_=new Uint16Array(b),M.primitive(0).setIndices(_)),M.boundsDirty(!0),h.modified(),h.boundsDirtyTimestamp().modified()},this._init=function(t){var n=e.blend(),i=e.shaderProgram(),r=e.material(),o=e.lookupTable(),a=e.geometryData(),s=new e.projectionUniform("projectionMatrix"),c=new e.uniform(e.GL.INT,"sampler2d"),b=w(),A=M(),T=e.vertexAttribute("pos"),C=e.vertexAttribute("value"),E=e.vertexAttribute("opacity"),k=e.sourceDataP3fv({name:"pos"}),S=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.One,{name:"value"}),O=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Two,{name:"opacity"}),P=new e.triangles;l=new e.modelViewOriginUniform("modelViewMatrix"),_.call(u,t),h=e.mapper({dynamicDraw:x}),i.addVertexAttribute(T,e.vertexAttributeKeys.Position),i.addVertexAttribute(C,e.vertexAttributeKeysIndexed.One),i.addVertexAttribute(E,e.vertexAttributeKeysIndexed.Two),i.addUniform(l),i.addUniform(s),m=new e.uniform(e.GL.FLOAT_VEC4,"minColor"),i.addUniform(m),g=new e.uniform(e.GL.FLOAT_VEC4,"maxColor"),i.addUniform(g),y=new e.uniform(e.GL.FLOAT,"steps"),i.addUniform(y),v=new e.uniform(e.GL.BOOL,"stepped"),i.addUniform(v),i.addShader(A),i.addShader(b),i.addUniform(c),o.setTextureUnit(7),c.set(7),(f=r).addAttribute(i),f.addAttribute(n),p=o,f.addAttribute(p),(d=e.actor()).setMaterial(f),d.setMapper(h),a.addSource(k),a.addSource(S),a.addSource(O),a.addPrimitive(P),a.computeBounds=function(){a.setBounds(0,0,0,0,0,0)},h.setGeometryData(a)},this.actors=function(){return d?[d]:[]},this._update=function(){b.call(u),(u.dataTime().timestamp()>=u.buildTime().timestamp()||u.updateTime().timestamp()<=u.timestamp())&&u._build(),d.setVisible(u.visible()),d.material().setBinNumber(u.bin()),u.updateTime().modified()},this._exit=function(){u.renderer().contextRenderer().removeActor(d),c()},this}},4084:function(t,e,n){var i=function(t){"use strict";if(!(this instanceof n(1338)))return new i(t);var e=this,r=this.draw;if(this.draw=function(){return e.ready&&(e._update({mayDelay:!0}),e.renderer()._render(),r()),e},this.bin){var o=this.bin;this.bin=function(t,n){if(void 0===t&&!n&&null===o(void 0,!0)){var i=e.layer&&e.layer(),r=i&&i.map&&i.map(),a=(r&&r.listSceneObjects()||[]).indexOf(e);if(a>=0)return a}return o.apply(e,arguments)}}return this};t.exports=i},7759:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(7761),a=n(411),s=n(642),l=function(t){"use strict";if(!(this instanceof l))return new l(t);o.call(this,t),n(4084).call(this);var e,i,r,u=n(1611),c=n(3925),d=this._exit,h=this;return this.pointSearch=function(t,n){if(e&&h.m_info)for(var i=e.pointSearch(t,n),r=i.index.length-1;r>=0;r-=1)if(i.extra[i.index[r]]._quad&&i.extra[i.index[r]]._quad.image){var o=i.extra[i.index[r]]._quad.image,a=i.extra[i.index[r]].basis,s=Math.floor(a.x*o.width),l=Math.floor(a.y*o.height),u=document.createElement("canvas");u.width=u.height=1;var c=u.getContext("2d");c.drawImage(o,s,l,1,1,0,0,1,1);var d=c.getImageData(0,0,1,1).data,f=d[0]+256*d[1]+256*d[2]*256;return i={index:[f],found:[h.data()[f]]}}return{index:[],found:[]}},this._computePixelmap=function(){var t=h.data()||[],n=h.style.get("color"),o=h.indexModified(void 0,"clear"),l=h.dataTime().timestamp()>=h.buildTime().timestamp()||void 0===o;r||((r=a()).setTextureUnit(1),l=!0);var d,f=Math.max(1,t.length),p=r.maxWidth();f>p&&f%p&&(f+=p-f%p),l||(l=(d=r.colorTable()).length!==4*f,o[0]=Math.max(0,o[0]),o[1]=Math.min(t.length,o[1]+1)),l&&(d=new Uint8Array(4*f),o=[0,t.length]);for(var m=o[0];m<o[1];m+=1){var g=t[m],y=s.convertColor(n.call(h,g,m));d[4*m]=255*y.r,d[4*m+1]=255*y.g,d[4*m+2]=255*y.b,d[4*m+3]=void 0===y.a?255:255*y.a}h.m_info={colors:d};var v=r.colorTable();if(v&&v.length===d.length){for(var x=4*o[0];x<4*o[1]&&d[x]===v[x];x+=1);if(x===4*o[1])return}r.colorTable(d),e||(e=h.layer().createFeature("quad",{selectionAPI:!1,gcs:h.gcs(),visible:h.visible(void 0,!0),nearestPixel:!0}),i=!1),i||(h.dependentFeatures([e]),e.setShader("image_fragment",c),e._hookBuild=function(t){var e=new u.uniform(u.GL.INT,"lutSampler");e.set(r.textureUnit()),t.addUniform(e);var n=new u.uniform(u.GL.INT,"lutWidth");n.set(r.width),t.addUniform(n);var i=new u.uniform(u.GL.INT,"lutHeight");i.set(r.height),t.addUniform(i)},e._hookRenderImageQuads=function(t,e){r.bind(t,e)},!1===i&&e.style({image:h.m_srcImage,position:h.style.get("position")}).data([{}]).draw(),i=!0)},this._exit=function(){return e&&h.layer()&&(h.layer().deleteFeature(e),e=null,h.dependentFeatures([])),d(),h},t.quadFeature&&(e=t.quadFeature).nearestPixel&&e.nearestPixel(!0),this._init(t),this};i(l,o);var u={};u[o.capabilities.lookup]=!0,r("webgl","pixelmap",l,u),t.exports=l},5407:function(t,e,n){var i=n(5616),r=n(4626),o=n(1098).registerFeature,a=n(7541),s=n(7945),l=function(t){"use strict";if(!(this instanceof l))return new l(t);t=t||{},a.call(this,t);var e=n(1611),r=n(5325),o=n(642),u=n(4084),c=n(2709),d=n(4317),h=n(2682),f=n(8208),p=n(6979);u.call(this);var m,g,y=this,v=this._exit,x=null,_=null,b=null,w=null,M=void 0!==t.dynamicDraw&&t.dynamicDraw,A=this._init,T=this._update,C=this.updateStyleFromArray;function E(t){var e,n,i,l,u,c,d,h,f,p,v,b,w,M,A,T,C,k,S,O,P,L,R,I,D,F,j,B,N,z,V,G,q,U,H,W,X=y.data().length,K=y._pointPolygon(0,0,1,1),Q=new Array(3*X),Z=y.verticesPerFeature(),Y=y.data(),J=0,$=_.geometryData();if(u=y.position(),p=y.style.get("radius"),w=y.style.get("stroke"),T=y.style.get("strokeWidth"),S=y.style.get("strokeOpacity"),L=y.style.get("strokeColor"),D=y.style.get("fill"),B=y.style.get("fillOpacity"),V=y.style.get("fillColor"),!t){for(e=W=0;e<X;e+=1,W+=3)l=u(Y[e],e),Q[W]=l.x,Q[W+1]=l.y,Q[W+2]=0;if(Q=r.transformCoordinates(y.gcs(),y.layer().map().gcs(),Q,3),(g=new Float32Array(y.style.get("origin")(Q)))[0]||g[1]||g[2])for(e=W=0;e<X;e+=1,W+=3)Q[W]-=g[0],Q[W+1]-=g[1],Q[W+2]-=g[2];m.setOrigin(g),i=o.getGeomBuffer($,"pos",Z*X*3),c=o.getGeomBuffer($,"unit",Z*X*2),(d=$.primitive(0).indices())instanceof Uint16Array&&d.length===Z*X||(d=new Uint16Array(Z*X),$.primitive(0).setIndices(d))}for(h=o.getGeomBuffer($,"radius",Z*X),v=o.getGeomBuffer($,"stroke",Z*X),M=o.getGeomBuffer($,"strokeWidth",Z*X),C=o.getGeomBuffer($,"strokeOpacity",Z*X),O=o.getGeomBuffer($,"strokeColor",Z*X*3),R=o.getGeomBuffer($,"fill",Z*X),F=o.getGeomBuffer($,"fillOpacity",Z*X),N=o.getGeomBuffer($,"fillColor",Z*X*3),e=q=U=H=W=0;e<X;e+=1,W+=3){if(G=Y[e],!t&&y._primitiveShape!==a.primitiveShapes.sprite)for(n=0;n<K.length;n+=1,H+=1)c[H]=K[n];for(f=p(G,e),b=w(G,e)?1:0,A=T(G,e),k=S(G,e),P=L(G,e),I=D(G,e)?1:0,j=B(G,e),z=V(G,e),y._primitiveShapeAuto&&(I&&j||b&&k)&&f+(b&&k?A:0)>J&&(J=f+(b&&k?A:0)),n=0;n<Z;n+=1,q+=1,U+=3)t||(i[U]=Q[W],i[U+1]=Q[W+1],i[U+2]=Q[W+2]),h[q]=f,v[q]=b,M[q]=A,C[q]=k,O[U]=P.r,O[U+1]=P.g,O[U+2]=P.b,R[q]=I,F[q]=j,N[U]=z.r,N[U+1]=z.g,N[U+2]=z.b}if(y._primitiveShapeAuto&&(y._primitiveShape===a.primitiveShapes.sprite&&J>s._maxPointSize||y._primitiveShape!==a.primitiveShapes.sprite&&J<=s._maxPointSize))return y._primitiveShape=J>s._maxPointSize?a.primitiveShapes.triangle:a.primitiveShapes.sprite,y.renderer().contextRenderer().removeActor(x),x=null,y._init(!0),void E();t?(_.updateSourceBuffer("radius"),_.updateSourceBuffer("stroke"),_.updateSourceBuffer("strokeWidth"),_.updateSourceBuffer("strokeColor"),_.updateSourceBuffer("strokeOpacity"),_.updateSourceBuffer("fill"),_.updateSourceBuffer("fillColor"),_.updateSourceBuffer("fillOpacity")):($.boundsDirty(!0),_.modified(),_.boundsDirtyTimestamp().modified())}return c(y,t),this.actors=function(){return x?[x]:[]},this.updateStyleFromArray=function(t,e,n){var r,o,a={fill:"bool",fillColor:3,fillOpacity:1,radius:1,stroke:"bool",strokeColor:3,strokeOpacity:1,strokeWidth:1};if("string"==typeof t){var s={};s[t]=e,t=s}return i.each(t,(function(t,e){var n,i,s,l,u,c,d,h,f;if(y.visible()&&x&&a[t]&&!r&&!y.clustering())if(f="bool"===a[t]?1:a[t],l=y.data().length,s=(i=x.mapper()).getSourceBuffer(t),n=y.verticesPerFeature(),s&&l&&l*n*f===s.length){switch(a[t]){case 1:for(c=0,h=0;c<l;c+=1)for(u=e[c],d=0;d<n;d+=1,h+=1)s[h]=u;break;case 3:for(c=0,h=0;c<l;c+=1)for(u=e[c],d=0;d<n;d+=1,h+=3)s[h]=u.r,s[h+1]=u.g,s[h+2]=u.b;break;case"bool":for(c=0,h=0;c<l;c+=1)for(u=e[c]?1:0,d=0;d<n;d+=1,h+=1)s[h]=u}i.updateSourceBuffer(t),o=!0}else r=!0;else r=!0;var p=y.modified;r||(y.modified=function(){}),C(t,e,!1),y.modified=p})),n&&(y.visible()&&r?y.draw():o&&y.renderer()._render()),y},this._init=function(n){var i,r,o=e.shaderProgram(),s=((r=new e.shader(e.GL.VERTEX_SHADER)).setShaderSource(y._primitiveShape===a.primitiveShapes.sprite?p:f),r),l=function(){var t=new e.shader(e.GL.FRAGMENT_SHADER);return t.setShaderSource(y._primitiveShape===a.primitiveShapes.sprite?h:d),t}(),u=e.vertexAttribute("pos"),c=e.vertexAttribute("unit"),v=e.vertexAttribute("radius"),T=e.vertexAttribute("strokeWidth"),C=e.vertexAttribute("fillColor"),E=e.vertexAttribute("fill"),k=e.vertexAttribute("strokeColor"),S=e.vertexAttribute("stroke"),O=e.vertexAttribute("fillOpacity"),P=e.vertexAttribute("strokeOpacity"),L=new e.projectionUniform("projectionMatrix"),R=e.material(),I=e.blend(),D=e.geometryData(),F=e.sourceDataP3fv({name:"pos"}),j=e.sourceDataAnyfv(2,e.vertexAttributeKeysIndexed.One,{name:"unit"}),B=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Two,{name:"radius"}),N=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Three,{name:"strokeWidth"}),z=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Four,{name:"fillColor"}),V=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Five,{name:"fill"}),G=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Six,{name:"strokeColor"}),q=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Seven,{name:"stroke"}),U=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Eight,{name:"fillOpacity"}),H=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Nine,{name:"strokeOpacity"});m=new e.modelViewOriginUniform("modelViewMatrix",g),(i=y._primitiveShape===a.primitiveShapes.sprite?new e.points:new e.triangles).setIndices(new Uint16Array),b=new e.floatUniform("pixelWidth",2/y.renderer().width()),w=new e.floatUniform("aspect",y.renderer().width()/y.renderer().height()),n||A.call(y,t),_=e.mapper({dynamicDraw:M}),o.addVertexAttribute(u,e.vertexAttributeKeys.Position),y._primitiveShape!==a.primitiveShapes.sprite&&o.addVertexAttribute(c,e.vertexAttributeKeysIndexed.One),o.addVertexAttribute(v,e.vertexAttributeKeysIndexed.Two),o.addVertexAttribute(T,e.vertexAttributeKeysIndexed.Three),o.addVertexAttribute(C,e.vertexAttributeKeysIndexed.Four),o.addVertexAttribute(E,e.vertexAttributeKeysIndexed.Five),o.addVertexAttribute(k,e.vertexAttributeKeysIndexed.Six),o.addVertexAttribute(S,e.vertexAttributeKeysIndexed.Seven),o.addVertexAttribute(O,e.vertexAttributeKeysIndexed.Eight),o.addVertexAttribute(P,e.vertexAttributeKeysIndexed.Nine),o.addUniform(b),o.addUniform(w),o.addUniform(m),o.addUniform(L),o.addShader(l),o.addShader(s),R.addAttribute(o),R.addAttribute(I),(x=e.actor()).setMaterial(R),x.setMapper(_),D.addSource(F),D.addSource(j),D.addSource(B),D.addSource(N),D.addSource(z),D.addSource(V),D.addSource(G),D.addSource(q),D.addSource(U),D.addSource(H),D.addPrimitive(i),D.computeBounds=function(){D.setBounds(0,0,0,0,0,0)},_.setGeometryData(D)},this._build=function(){return E(y.dataTime().timestamp()<y.buildTime().timestamp()),y.renderer().contextRenderer().hasActor(x)||y.renderer().contextRenderer().addActor(x),y.buildTime().modified(),y},this._update=function(){return T.call(y),(y.dataTime().timestamp()>=y.buildTime().timestamp()||y.updateTime().timestamp()<y.timestamp())&&y._build(),b.set(2/y.renderer().width()),w.set(y.renderer().width()/y.renderer().height()),x.setVisible(y.visible()),x.material().setBinNumber(y.bin()),y.updateTime().modified(),y},this._exit=function(){y.renderer().contextRenderer().removeActor(x),x=null,v()},y._init(),this};r(l,a);var u={};u[a.capabilities.stroke]=!0,o("webgl","point",l,u),t.exports=l},2709:function(t,e,n){var i=n(7541);t.exports=function(t,e){e=e||{},t._primitiveShapeAuto=!0,t._primitiveShape=i.primitiveShapes.auto,void 0!==i.primitiveShapes[e.primitiveShape]&&(t._primitiveShape=e.primitiveShape),t._primitiveShapeAuto=t._primitiveShape===i.primitiveShapes.auto,t._primitiveShapeAuto&&(t._primitiveShape=i.primitiveShapes.sprite,t._primitiveShapeAuto=!0),t._pointPolygon=function(e,n,r,o){var a;switch(t._primitiveShape){case i.primitiveShapes.triangle:a=[e,n-2*o,e-r*Math.sqrt(3),n+o,e+r*Math.sqrt(3),n+o];break;case i.primitiveShapes.square:a=[e-r,n+o,e-r,n-o,e+r,n+o,e-r,n-o,e+r,n-o,e+r,n+o];break;default:a=[e,n]}return a},t.verticesPerFeature=function(){return t._pointPolygon(0,0,1,1).length/2},t.primitiveShape=function(e,n){if(void 0===e)return n||!t._primitiveShapeAuto?t._primitiveShape:i.primitiveShapes.auto;if(void 0!==i.primitiveShapes[e]){var r=!1;e===i.primitiveShapes.auto?(r=!t._primitiveShapeAuto,t._primitiveShapeAuto=!0):(r=t._primitiveShapeAuto||t._primitiveShape!==e,t._primitiveShapeAuto=!1,t._primitiveShape=e),r&&(t.renderer().contextRenderer().removeActor(t.actors()[0]),t._init(!0),t.dataTime().modified())}return t}}},8511:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(6645),a=function(t){"use strict";if(!(this instanceof a))return new a(t);t=t||{},o.call(this,t);var e=n(1611),i=n(5230),r=n(5325),s=n(642),l=n(4084),u=n(4547),c=n(9506);l.call(this);var d,h,f,p,m,g=this,y=this._exit,v=e.actor(),x=e.mapper(),_=e.material(),b=this._init,w=this._update;function M(){var t=new e.shader(e.GL.VERTEX_SHADER);return t.setShaderSource(c),t}function A(){var t=new e.shader(e.GL.FRAGMENT_SHADER);return t.setShaderSource(u),t}return this._init=function(t){var n=e.shaderProgram(),i=e.vertexAttribute("pos"),r=e.vertexAttribute("fillColor"),o=e.vertexAttribute("fillOpacity"),a=new e.projectionUniform("projectionMatrix"),s=M(),l=A(),u=e.blend(),c=e.geometryData(),d=e.sourceDataP3fv({name:"pos"}),h=e.sourceDataAnyfv(3,e.vertexAttributeKeysIndexed.Two,{name:"fillColor"}),p=e.sourceDataAnyfv(1,e.vertexAttributeKeysIndexed.Three,{name:"fillOpacity"}),m=e.triangles();f=new e.modelViewOriginUniform("modelViewMatrix"),n.addVertexAttribute(i,e.vertexAttributeKeys.Position),n.addVertexAttribute(r,e.vertexAttributeKeysIndexed.Two),n.addVertexAttribute(o,e.vertexAttributeKeysIndexed.Three),n.addUniform(f),n.addUniform(a),n.addShader(l),n.addShader(s),_.addAttribute(n),_.addAttribute(u),v.setMaterial(_),v.setMapper(x),c.addSource(d),c.addSource(h),c.addSource(p),c.addPrimitive(m),c.computeBounds=function(){c.setBounds(0,0,0,0,0,0)},x.setGeometryData(c),b.call(g,t)},this.actors=function(){return[v]},this._build=function(){!function(t){var e,n,o,a,l,u,c,p,m,y,v,_,b,w,M,A,T,C,E,k,S,O,P,L,R,I,D,F,j,B=[],N=g.gcs(),z=g.layer().map().gcs(),V=0,G=x.geometryData();for(l=g.style.get("fillColor"),u=s.isFunction(g.style("fillColor"))?void 0:l(),p=g.style.get("fillOpacity"),m=s.isFunction(g.style("fillOpacity"))?void 0:p(),y=g.style.get("fill"),v=s.isFunction(g.style("fill"))?void 0:y(),_=g.style.get("uniformPolygon"),b=s.isFunction(g.style("uniformPolygon"))?void 0:_(),t?(B=d.items,V=d.numPts):(n=(n=g.style.get("position"))===s.identityFunction?null:n,o=(o=g.style.get("polygon"))===s.identityFunction?null:o,g.data().forEach((function(t,e){var a,s,l,u;if((a=o?o(t,e):t)&&!((s=a.outer||(Array.isArray(a)?a:[])).length<3)){for(l=new Array(3*s.length),O=k=0;O<s.length;O+=1,k+=3)u=n?n(s[O],O,t,e):s[O],l[k]=u.x,l[k+1]=u.y,l[k+2]=0;l={vertices:l,dimensions:3,holes:[]},j=s,a.inner&&a.inner.forEach((function(i){if(!(i.length<3))for(j=j.concat(i),l.holes.push(k/3),O=0;O<i.length;O+=1,k+=3)u=n?n(i[O],O,t,e):i[O],l.vertices[k]=u.x,l.vertices[k+1]=u.y,l.vertices[k+2]=0})),l.vertices=r.transformCoordinates(N,z,l.vertices,l.dimensions),(I={triangles:i(l.vertices,l.holes,l.dimensions),vertices:l.vertices,original:j,item:t,itemIndex:e}).triangles.length&&(B.push(I),V+=I.triangles.length)}})),e=s.getGeomBuffer(G,"pos",3*V),(M=G.primitive(0).indices())instanceof Uint16Array&&M.length===V||(M=new Uint16Array(V),G.primitive(0).setIndices(M)),d={items:B,numPts:V},h=new Float32Array(g.style.get("origin")(B)),f.setOrigin(h)),a=s.getGeomBuffer(G,"fillColor",3*V),c=s.getGeomBuffer(G,"fillOpacity",V),E=k=0,A=u,C=v,L=0;L<B.length;L+=1)if(R=B[L].triangles.length,S=B[L].vertices,D=B[L].item,F=B[L].itemIndex,j=B[L].original,T=m,(w=void 0===b?_(D,F):b)&&(void 0===u&&(A=l(S[0],0,D,F)),void 0===m&&(T=p(S[0],0,D,F))),void 0===v&&(C=y(D,F)),C||(T=0),w&&t&&B[L].uniform&&B[L].color&&A.r===B[L].color.r&&A.g===B[L].color.g&&A.b===B[L].color.b&&T===B[L].opacity)E+=R,k+=3*R;else{for(O=0;O<R;O+=1,E+=1,k+=3)t&&w?(a[k]=A.r,a[k+1]=A.g,a[k+2]=A.b,c[E]=T):(P=3*B[L].triangles[O],t||(e[k]=S[P]-h[0],e[k+1]=S[P+1]-h[1],e[k+2]=S[P+2]-h[2],M[E]=O),w||void 0!==u||(A=l(j[P],P,D,F)),a[k]=A.r,a[k+1]=A.g,a[k+2]=A.b,!w&&C&&void 0===m&&(T=p(j[P],P,D,F)),c[E]=T);(w||B[L].uniform)&&(B[L].uniform=w,B[L].color=A,B[L].opacity=T)}t?(x.updateSourceBuffer("fillOpacity"),x.updateSourceBuffer("fillColor")):(x.modified(),G.boundsDirty(!0),x.boundsDirtyTimestamp().modified())}(!!(g.dataTime().timestamp()<g.buildTime().timestamp()&&d)),g.renderer().contextRenderer().hasActor(v)||(g.renderer().contextRenderer().addActor(v),p=!0),g.buildTime().modified()},this._update=function(t){g.ready&&(t&&t.mayDelay&&p?m=g.layer().map().scheduleAnimationFrame(g._update):(m&&(g.layer().map().scheduleAnimationFrame(g._update,"remove"),m=null),w.call(g),(g.dataTime().timestamp()>=g.buildTime().timestamp()||g.updateTime().timestamp()<=g.timestamp())&&g._build(),v.setVisible(g.visible()),v.material().setBinNumber(g.bin()),g.updateTime().modified()))},this._exit=function(){m&&g.layer()&&(g.layer().map().scheduleAnimationFrame(g._update,"remove"),m=null),g.renderer().contextRenderer().removeActor(v),y()},this._init(t),this};i(a,o),r("webgl","polygon",a),t.exports=a},9304:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(3842),a=n(77),s=n(642),l=16777216,u=function(t){"use strict";if(!(this instanceof u))return new u(t);o.call(this,t);var e=n(5616),i=n(1611),r=n(4084),c=n(8711),d=n(6238),h=n(8961),f=n(3260);r.call(this);var p,m,g,y,v,x,_,b=this,w=this._exit,M=this._update,A={},T=a(),C=a();function E(t){var e=new i.mapper({dynamicDraw:!0});return e.s_modified=e.modified,e.g_timestamp=a(),e.timestamp=e.g_timestamp.timestamp,e.modified=function(){return e.s_modified(),e.g_timestamp.modified(),e},e.s_render=e.render,e.render=t,e}return this.actors=function(){var t=[];return m&&t.push(m),g&&t.push(g),t},this._build=function(){var t,e,n,r,o,a,s,l,u;b.position()&&((_=b._generateQuads()).imgQuads.length&&!m&&(b.visible(!1),t=E(b._renderImageQuads),(m=new i.actor).setMapper(t),e=new i.material,(n=new i.shaderProgram).addVertexAttribute(new i.vertexAttribute("vertexPosition"),i.vertexAttributeKeys.Position),n.addVertexAttribute(new i.vertexAttribute("textureCoord"),i.vertexAttributeKeys.TextureCoordinate),p=new i.modelViewOriginUniform("modelViewMatrix",_.origin),n.addUniform(p),n.addUniform(new i.projectionUniform("projectionMatrix")),n.addUniform(new i.floatUniform("opacity",1)),n.addUniform(new i.floatUniform("zOffset",0)),(u=new i.uniform(i.GL.INT,"sampler2d")).set(0),n.addUniform(u),l=b.renderer()._glContext(),(o=new i.uniform(l.FLOAT_VEC2,"crop")).set([1,1]),n.addUniform(o),(a=new i.uniform(l.FLOAT_VEC4,"cropsource")).set([0,0,0,0]),n.addUniform(a),n.addShader(i.getCachedShader(l.VERTEX_SHADER,l,d)),n.addShader(i.getCachedShader(l.FRAGMENT_SHADER,l,c)),b._hookBuild&&b._hookBuild(n),e.addAttribute(n),e.addAttribute(new i.blend),s=new i.geometryData,y=void 0,(r=new i.sourceDataT2fv).pushBack([0,0,1,0,0,1,1,1]),s.addSource(r),t.setGeometryData(s),m.setMaterial(e),b.renderer().contextRenderer().addActor(m),b.visible(!0)),_.clrQuads.length&&!g&&(b.visible(!1),t=E(b._renderColorQuads),(g=new i.actor).setMapper(t),e=new i.material,(n=new i.shaderProgram).addVertexAttribute(new i.vertexAttribute("vertexPosition"),i.vertexAttributeKeys.Position),x=new i.modelViewOriginUniform("modelViewMatrix",_.origin),n.addUniform(x),n.addUniform(new i.projectionUniform("projectionMatrix")),n.addUniform(new i.floatUniform("opacity",1)),n.addUniform(new i.floatUniform("zOffset",0)),l=b.renderer()._glContext(),n.addUniform(new i.uniform(l.FLOAT_VEC3,"vertexColor")),n.addShader(i.getCachedShader(l.VERTEX_SHADER,l,f)),n.addShader(i.getCachedShader(l.FRAGMENT_SHADER,l,h)),e.addAttribute(n),e.addAttribute(new i.blend),s=new i.geometryData,v=void 0,t.setGeometryData(s),g.setMaterial(e),b.renderer().contextRenderer().addActor(g),b.visible(!0)),p&&p.setOrigin(_.origin),x&&x.setOrigin(_.origin),b._updateTextures(),b.buildTime().modified())},this._updateTextures=function(){var t;e.each(_.imgQuads,(function(e,n){if(n.image)if(n.image._texture)n.texture=n.image._texture;else{(t=new i.texture).setImage(n.image);var r=b.nearestPixel();if(void 0!==r)if(!0!==r&&s.isNonNullFinite(r))r=b.layer().map().zoom()>=r;r&&t.setNearestPixel(!0),n.texture=n.image._texture=t}}))},this._renderColorQuads=function(t){if(_.clrQuads.length){var n=this;(n.timestamp()>C.timestamp()||b.dataTime().timestamp()>C.timestamp()||t.m_contextChanged||!v||12*_.clrQuads.length>v.length)&&function(t){var n=t.m_context,i=!1;_.clrQuads.length&&((!v||v.length<12*_.clrQuads.length||!A.clrQuadsPosition)&&(A.clrQuadsPosition&&n.deleteBuffer(A.clrQuadsPosition),A.clrQuadsPosition=n.createBuffer(),v=new Float32Array(12*Math.max(128,2*_.clrQuads.length)),i=!0),e.each(_.clrQuads,(function(t,e){for(var n=0;n<12;n+=1)v[12*t+n]=e.pos[n]-_.origin[n%3]})),n.bindBuffer(n.ARRAY_BUFFER,A.clrQuadsPosition),i?n.bufferData(n.ARRAY_BUFFER,v,n.DYNAMIC_DRAW):n.bufferSubData(n.ARRAY_BUFFER,0,v)),C.modified()}(t),n.s_render(t,!0);var r,o,a,s=t.m_context;s.bindBuffer(s.ARRAY_BUFFER,A.clrQuadsPosition),e.each(_.clrQuads,(function(e,n){n.opacity!==r&&(r=n.opacity,s.uniform1fv(t.m_material.shaderProgram().uniformLocation("opacity"),new Float32Array([r]))),(n.zOffset||0)!==o&&(o=n.zOffset||0,s.uniform1fv(t.m_material.shaderProgram().uniformLocation("zOffset"),new Float32Array([o]))),a&&a.r===n.color.r&&a.g===n.color.g&&a.b===n.color.b||(a=n.color,s.uniform3fv(t.m_material.shaderProgram().uniformLocation("vertexColor"),new Float32Array([a.r,a.g,a.b]))),s.bindBuffer(s.ARRAY_BUFFER,A.clrQuadsPosition),s.vertexAttribPointer(i.vertexAttributeKeys.Position,3,s.FLOAT,!1,12,12*e*4),s.enableVertexAttribArray(i.vertexAttributeKeys.Position),s.drawArrays(s.TRIANGLE_STRIP,0,4)})),s.bindBuffer(s.ARRAY_BUFFER,null),n.undoBindVertexData(t)}},this._renderImageQuads=function(t){if(_.imgQuads.length){var n=this;(n.timestamp()>T.timestamp()||b.dataTime().timestamp()>T.timestamp()||t.m_contextChanged||!y||12*_.imgQuads.length>y.length)&&function(t){var n=t.m_context,i=!1;_.imgQuads.length&&((!y||y.length<12*_.imgQuads.length||!A.imgQuadsPosition)&&(A.imgQuadsPosition&&n.deleteBuffer(A.imgQuadsPosition),A.imgQuadsPosition=n.createBuffer(),y=new Float32Array(12*Math.max(128,2*_.imgQuads.length)),i=!0),e.each(_.imgQuads,(function(t,e){for(var n=0;n<12;n+=1)y[12*t+n]=e.pos[n]-_.origin[n%3]})),n.bindBuffer(n.ARRAY_BUFFER,A.imgQuadsPosition),i?n.bufferData(n.ARRAY_BUFFER,y,n.DYNAMIC_DRAW):n.bufferSubData(n.ARRAY_BUFFER,0,y)),T.modified()}(t),n.s_render(t,!0);var r,o,a,u,c,d,h,f,p=t.m_context,m={x:1,y:1},g={x0:0,y0:0,x1:1,y1:1},v=b.nearestPixel();if(void 0!==v){if(!0!==v&&s.isNonNullFinite(v)){var x=b.layer().map().zoom();v=x>=v}_.imgQuads.forEach((function(e){if(e.image&&e.texture&&e.texture.nearestPixel()!==v&&e.texture.textureHandle()){t.m_context.bindTexture(i.GL.TEXTURE_2D,e.texture.textureHandle()),t.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MIN_FILTER,v?i.GL.NEAREST:i.GL.LINEAR),t.m_context.texParameteri(i.GL.TEXTURE_2D,i.GL.TEXTURE_MAG_FILTER,v?i.GL.NEAREST:i.GL.LINEAR),t.m_context.bindTexture(i.GL.TEXTURE_2D,null);var n=e.texture.modified;e.texture.modified=function(){},e.texture.setNearestPixel(v),e.texture.modified=n}}))}b._hookRenderImageQuads&&b._hookRenderImageQuads(t,_.imgQuads),p.bindBuffer(p.ARRAY_BUFFER,A.imgQuadsPosition),e.each(_.imgQuads,(function(e,n){n.image&&(n.texture.bind(t),n.image.width*n.image.height>l&&(l=n.image.width*n.image.height,p.getError()===p.OUT_OF_MEMORY&&console.log("Insufficient GPU memory for texture")),n.opacity!==r&&(r=n.opacity,p.uniform1fv(t.m_material.shaderProgram().uniformLocation("opacity"),new Float32Array([r]))),(n.zOffset||0)!==o&&(o=n.zOffset||0,p.uniform1fv(t.m_material.shaderProgram().uniformLocation("zOffset"),new Float32Array([o]))),a=n.crop||{x:1,y:1},m&&a.x===m.x&&a.y===m.y||(m=a,p.uniform2fv(t.m_material.shaderProgram().uniformLocation("crop"),new Float32Array([void 0===m.x?1:m.x,void 0===m.y?1:m.y]))),c=n.image.width,d=n.image.height,u=n.crop||{left:0,top:0,right:c,bottom:d},g&&u.left===g.left&&u.top===g.top&&u.right===g.right&&u.bottom===g.bottom&&h===c&&f===d||(g=u,h=c,f=d,p.uniform4fv(t.m_material.shaderProgram().uniformLocation("cropsource"),new Float32Array([g.left/c,g.top/d,g.right/c,g.bottom/d]))),p.bindBuffer(p.ARRAY_BUFFER,A.imgQuadsPosition),p.vertexAttribPointer(i.vertexAttributeKeys.Position,3,p.FLOAT,!1,12,12*e*4),p.enableVertexAttribArray(i.vertexAttributeKeys.Position),p.drawArrays(p.TRIANGLE_STRIP,0,4),n.texture.undoBind(t))})),p.bindBuffer(p.ARRAY_BUFFER,null),n.undoBindVertexData(t)}},this._update=function(){M.call(b),(b.buildTime().timestamp()<=b.dataTime().timestamp()||b.updateTime().timestamp()<b.timestamp())&&b._build(),g&&(g.setVisible(b.visible()),g.material().setBinNumber(b.bin())),m&&(m.setVisible(b.visible()),m.material().setBinNumber(b.bin())),b.updateTime().modified()},this._cleanup=function(){m&&(b.renderer().contextRenderer().removeActor(m),m=null),g&&(b.renderer().contextRenderer().removeActor(g),g=null),y=void 0,v=void 0,Object.keys(A).forEach((function(t){delete A[t]})),_&&_.imgQuads&&(_.imgQuads.forEach((function(t){t.texture&&(delete t.texture,delete t.image._texture)})),b._updateTextures()),b.modified()},this.setShader=function(t,e){switch(t){case"image_vertex":d=e;break;case"image_fragment":c=e;break;case"color_vertex":f=e;break;case"color_fragment":h=e;break;default:return}return b},this._exit=function(){b._cleanup(),w.call(b)},b._init(t),this};i(u,o);var c={};c[o.capabilities.color]=!0,c[o.capabilities.image]=!0,c[o.capabilities.imageCrop]=!0,c[o.capabilities.imageFixedScale]=!1,c[o.capabilities.imageFull]=!0,c[o.capabilities.canvas]=!1,c[o.capabilities.video]=!1,r("webgl","quad",u,c),t.exports=u},1474:function(t,e,n){var i=n(1098).registerLayerAdjustment,r=n(9264),o=function(){"use strict";var t,e=n(6409),i=this,o=this._init,a=this._exit,s=this._update,l=this.visible,u=this.zIndex,c=0,d=[];this._drawTile=function(e){if(t){var n,o,a=i._tileBounds(e),s=e.index.level||0,l=i._tileOffset(s),u=i.tileCropFromBounds(e),h={},f=i.renderer().contextRenderer().m_depthBits;u&&(h.crop={x:u.x/i._options.tileWidth,y:u.y/i._options.tileHeight}),h.ul=i.fromLocal(i.fromLevel({x:a.left-l.x,y:a.top-l.y},s),0),h.ll=i.fromLocal(i.fromLevel({x:a.left-l.x,y:a.bottom-l.y},s),0),h.ur=i.fromLocal(i.fromLevel({x:a.right-l.x,y:a.top-l.y},s),0),h.lr=i.fromLocal(i.fromLevel({x:a.right-l.x,y:a.bottom-l.y},s),0),h.ul.z=h.ll.z=h.ur.z=h.lr.z=0,n=i._options.keepLower?i._options.maxLevel-s+1:1,(o=(o=i.map().listSceneObjects().filter((function(t){return t instanceof r}))).slice(o.indexOf(i)+1)).forEach((function(t){n+=t._options.keepLower?t._options.maxLevel-t._options.minLevel+1:1})),h.zOffset=n*Math.pow(2,-f)*r._zOffsetMultiple,c+=1,h.id=c,e.quadId=h.id,h.image=e.image,d.push(h),t.data(d),t._update(),i.draw()}},this._remove=function(e){if(void 0!==e.quadId&&t){for(var n=0;n<d.length;n+=1)if(d[n].id===e.quadId){d.splice(n,1);break}t.data(d),t._update(),i.draw()}},this.visible=function(e){return void 0===e?l():(i.visible()!==e&&(l(e),t&&t.visible(t.visible(void 0,!0),!0)),i)},this.zIndex=function(t,e){return void 0!==t&&i._clearQuads(),u.apply(i,arguments)},this._clearQuads=function(n){(!n||n.layer&&n.layer instanceof r&&n.layer.autoshareRenderer()&&(n.event!==e.layerAdd&&n.event!==e.layerRemove||!i.map().layers().every((function(t){return t===n.layer||n.layer.zIndex()>t.zIndex()}))))&&(i.clear(),t&&t.modified(),n&&i.draw())},this._update=function(e){return s.call(i,e),t&&t.nearestPixel&&t.nearestPixel(i.nearestPixel()),i._addBaseQuadToTiles(t,d),i},this._cleanup=function(){var t;if(i.cache&&i.cache._cache){for(var e in i.cache._cache)(t=i.cache._cache[e])._image&&t._image._texture&&delete t._image._texture;i.cache.clear()}i.clear()},this._exit=function(){var n=i.map();n.geoOff(e.layerAdd,i._clearQuads),n.geoOff(e.layerRemove,i._clearQuads),i._cleanup(),i.deleteFeature(t),t=null,d=[],a.apply(i,arguments)},this._init=function(){o.apply(i,arguments),(t=i.createFeature("quad",{previewColor:i._options.previewColor,previewImage:i._options.previewImage})).geoTrigger=void 0,t.gcs(i._options.gcs||i.map().gcs()),t.data(d),t._update();var n=i.map();n.geoOn(e.layerAdd,i._clearQuads),n.geoOn(e.layerRemove,i._clearQuads),i.geoOn(e.unhidden,(function(){i.map().scheduleAnimationFrame((function(){i._clearQuads(),i.map().draw()}))}))},this._getSubLayer=function(){},this._updateSubLayers=void 0};r._zOffsetMultiple=2,i("webgl","tile",o),t.exports=o},536:function(t,e,n){var i=n(4626),r=n(1098).registerFeature,o=n(338),a=function(t){"use strict";return this instanceof a?(t=t||{},o.call(this,t),n(4084).call(this),this._init(t),this):new a(t)};i(a,o),r("webgl","track",a),t.exports=a},7945:function(t,e,n){var i,r=n(4626),o=n(1098).registerRenderer,a=n(2274),s=function(t){"use strict";if(!(this instanceof s))return new s(t);t=t||{},a.call(this,t);var e,i=n(5616),r=n(1611),o=n(3503),l=n(642),u=n(6409),c=this,d=null,h=null,f=!1,p=this._init,m=this._exit;return this.contextRenderer=function(){return d},this.api=function(){return s.apiname},this._init=function(){if(c.initialized())return c;p.call(c);var e=t.canvas||i(document.createElement("canvas"));if(e.addClass("webgl-canvas"),i(c.layer().node().get(0)).append(e),window.overrideContextAttributes){var n=e.get(0),o=n.getContext;n.getContext=function(t,e){if(e=e||{},window.overrideContextAttributes)for(var i in window.overrideContextAttributes)window.overrideContextAttributes.hasOwnProperty(i)&&(e[i]=window.overrideContextAttributes[i]);return o.call(n,t,e)}}(h=r.viewer(e.get(0),t.options)).init(),(d=h.renderWindow().activeRenderer()).setResetScene(!1),e.get(0).addEventListener("webglcontextlost",(function(t){return t.preventDefault()}),!1),e.get(0).addEventListener("webglcontextrestored",(function(){return h.renderWindow()._init()}),!1),h.renderWindow().renderers().length>0&&d.setLayer(h.renderWindow().renderers().length),c.canvas(e);var a=c.layer().map().size();return c._resize(0,0,a.width,a.height),c},this._resize=function(t,e,n,i){var r=h.renderWindow();return t===r.windowPosition[0]&&e===r.windowPosition[1]&&n===c.width()&&i===c.height()||(c._setWidthHeight(n,i),c.canvas().attr("width",n),c.canvas().attr("height",i),r.positionAndResize(t,e,n,i),f=!0,c._render()),c},this._render=function(){return c.layer().map().scheduleAnimationFrame(c._renderFrame,!0),c},this._renderFrame=function(){h&&(f&&(f=!1,c._updateRendererCamera()),h.render())},this._glContext=function(){return h&&h.renderWindow()?h.renderWindow().context():r.GL},this._exit=function(){if(c.layer().map().scheduleAnimationFrame(c._renderFrame,"remove"),c.canvas().remove(),h){var t=new r.renderState;t.m_renderer=h,t.m_context=c._glContext(),h.exit(t);var e=c._glContext();e!==r.GL&&e.getExtension("WEBGL_lose_context")&&e.getExtension("WEBGL_lose_context").loseContext&&e.getExtension("WEBGL_lose_context").loseContext()}r.clearCachedShaders(r.GL),h=null,m()},this._updateRendererCamera=function(){var t=h.renderWindow(),n=c.layer().map(),i=n.camera(),r=n.rotation()||0,a=i.view,s=i.projectionMatrix;if(s[15])s=o.copy(l.mat4AsArray(),s),s=o.scale(s,s,[1,1,-.5]),s=o.translate(s,s,[0,0,i.clipbounds.far]);else{var u=i.clipbounds.near,d=i.clipbounds.far;s=o.copy(l.mat4AsArray(),s),s=o.scale(s,s,[1/u,1/u,-1/d])}var f=Math.PI/2,p=r%f,m=Math.min(Math.abs(p),Math.abs(p-f))<1e-5;t.renderers().forEach((function(t){var r=t.camera();if(!l.compareArrays(a,r.viewMatrix())||!l.compareArrays(s,r.projectionMatrix())||e!==n.zoom()){e=n.zoom(),r.setViewMatrix(a,!0),r.setProjectionMatrix(s);var o=i.viewport;s[1]||s[2]||s[3]||s[4]||s[6]||s[7]||s[8]||s[9]||s[11]||1!==s[15]||!m||o.left&&o.left%1||o.top&&o.top%1||parseFloat(e.toFixed(6))!==parseFloat(e.toFixed(0))?r.viewAlignment=function(){return null}:r.viewAlignment=function(){var t={roundx:2/o.width,roundy:2/o.height};return t.dx=o.width%2?.5*t.roundx:0,t.dy=o.height%2?.5*t.roundy:0,t}}}))},c.layer().geoOn(u.pan,(function(t){f=!0})),c.layer().geoOn(u.parallelprojection,(function(t){var e=c.contextRenderer(),n=c.layer();if(t.geo&&t.geo._triggeredBy!==n){if(!e||!e.camera())return void console.log("Parallel projection event triggered on unconnected VGL renderer.");e.camera().setEnableParallelProjection(t.parallelProjection),f=!0}})),this};s.apiname="webgl",r(s,a),o("webgl",s),o("vgl",s),s.supported=function(){if(void 0===i){var t,e;try{(e=(t=document.createElement("canvas")).getContext("webgl")||t.getContext("experimental-webgl")).getSupportedExtensions().indexOf("WEBGL_debug_renderer_info")>=0&&(s._unmaskedRenderer=e.getParameter(e.getExtension("WEBGL_debug_renderer_info").UNMASKED_RENDERER_WEBGL)),s._maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),s._maxPointSize=e.getParameter(e.ALIASED_POINT_SIZE_RANGE)[1],i=!0}catch(t){console.warn("No webGL support"),i=!1}t=void 0,e=void 0,void 0}return i},s.fallback=function(){return null},t.exports=s},632:function(t,e,n){"use strict";var i=n(4942),r=n.n(i),o=n(278),a=n.n(o),s=n(3021),l=n.n(s),u=new URL(n(3158),n.b),c=new URL(n(5245),n.b),d=new URL(n(8546),n.b),h=new URL(n(9803),n.b),f=a()(r()),p=l()(u),m=l()(c),g=l()(d),y=l()(h);f.push([t.id,'.geojs-map{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden}.geojs-map .geo-attribution{position:absolute;right:0;bottom:0;padding-right:5px;cursor:auto;font:11px/1.5 "Helvetica Neue",Arial,Helvetica,sans-serif;z-index:1001;background:rgba(255,255,255,0.7);clear:both;display:block;pointer-events:auto}.geojs-map .geo-attribution .geo-attribution-layer{padding-left:5px}.geojs-map .canvas-canvas{display:block;-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-o-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.geojs-map .webgl-canvas{display:block}.geojs-map .geojs-layer{position:absolute;width:100%;height:100%;left:0;top:0;pointer-events:none}.geojs-map .geojs-layer.active:not(.hidden) > *{pointer-events:auto}.geojs-map .geojs-layer.hidden{display:none}.geojs-map .geojs-layer.hidden[renderer="webgl"]{display:inherit}.geojs-map .geo-tile-layer{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-o-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;line-height:0;font-size:0}.geojs-map.annotation-input{cursor:crosshair}.geojs-map.annotation-input.annotation-intersect{cursor:url('+p+") 12 12,crosshair}.geojs-map.annotation-input.annotation-difference{cursor:url("+m+") 12 12,crosshair}.geojs-map.annotation-input.annotation-union{cursor:url("+g+") 12 12,crosshair}.geojs-map.annotation-input.annotation-xor{cursor:url("+y+") 12 12,crosshair}.geojs-map.annotation-cursor{cursor:crosshair}.geojs-map.annotation-cursor.annotation-intersect{cursor:url("+p+") 12 12,crosshair}.geojs-map.annotation-cursor.annotation-difference{cursor:url("+m+") 12 12,crosshair}.geojs-map.annotation-cursor.annotation-union{cursor:url("+g+") 12 12,crosshair}.geojs-map.annotation-cursor.annotation-xor{cursor:url("+y+') 12 12,crosshair}.geojs-map.highlight-focus:after{content:"";display:block;position:absolute;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;left:0;top:0;right:0;bottom:0;border:3px solid Highlight;opacity:1;-ms-filter:none;filter:none;-webkit-transition:opacity 0s;-moz-transition:opacity 0s;-o-transition:opacity 0s;-ms-transition:opacity 0s;transition:opacity 0s;visibility:hidden}.geojs-map.highlight-focus:focus:after{visibility:visible;-webkit-transition:opacity 2.5s ease-in;-moz-transition:opacity 2.5s ease-in;-o-transition:opacity 2.5s ease-in;-ms-transition:opacity 2.5s ease-in;transition:opacity 2.5s ease-in;opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:alpha(opacity=0)}.geo-tile-container{position:absolute}.geo-tile-container.crop{overflow:hidden}',"",{version:3,sources:["webpack://./main.styl","webpack://./../node_modules/nib/lib/nib/vendor.styl","webpack://./../node_modules/nib/lib/nib/overflow.styl","webpack://./../node_modules/nib/lib/nib/flex.styl","webpack://./../node_modules/nib/lib/nib/border.styl"],names:[],mappings:"AAEA,WACE,iBAAS,CCwCO,wBAAG,CAAH,qBAAG,CAAH,oBAAG,CARN,gBAAG,CChBd,eAAU,CFZZ,4BACE,iBAAS,CACT,OAAM,CACN,QAAO,CACP,iBAAc,CC4ed,WAAO,CD1eP,yDAA8B,CAC9B,YAAQ,CC6dR,gCAAW,CD3dX,UAAM,CGMN,aAAS,CHJT,mBAAe,CAEf,mDACE,gBAAa,CAEjB,0BGDE,aAAS,CFqBK,4BAAG,CAAH,yBAAG,CAAH,uBAAG,CAAH,wBAAG,CARN,oBAAG,CDThB,yBGJE,aAAS,CHOX,wBACE,iBAAS,CACT,UAAM,CACN,WAAO,CACP,MAAK,CACL,KAAI,CACJ,mBAAe,CAEb,gDACE,mBAAe,CACnB,+BGjBA,YAAS,CHmBT,iDGnBA,eAAS,CHsBX,2BCDgB,4BAAG,CAAH,yBAAG,CAAH,uBAAG,CAAH,wBAAG,CARN,oBAAG,CDWd,aAAY,CACZ,WAAU,CAEZ,4BCscE,gBAAO,CDpcP,iDCocA,8DAAO,CDlcP,kDCkcA,8DAAO,CDhcP,6CCgcA,8DAAO,CD9bP,2CC8bA,8DAAO,CD3bT,6BC2bE,gBAAO,CDzbP,kDCybA,8DAAO,CDvbP,mDCubA,8DAAO,CDrbP,8CCqbA,8DAAO,CDnbP,4CCmbA,8DAAO,CD/aP,iCACE,UAAQ,CGnDV,aAAS,CHqDP,iBAAS,CChCG,6BAAG,CAAH,0BAAG,CARN,qBAAG,CD0CZ,MAAK,CACL,KAAI,CACJ,OAAM,CACN,QAAO,CIvET,0BAAQ,CH4PV,SAAS,CAQH,eAAY,CACZ,WAAQ,CArOE,6BAAG,CAAH,0BAAG,CAAH,wBAAG,CAAH,yBAAG,CARN,qBAAG,CDqDZ,iBAAW,CACb,uCACE,kBAAW,CC/CC,uCAAG,CAAH,oCAAG,CAAH,kCAAG,CAAH,mCAAG,CARN,+BAAG,CAoOhB,SAAS,CAWH,+DAAyE,CACzE,uBAAiC,CDrLzC,oBACE,iBAAS,CACT,yBE3EE,eAAU",sourcesContent:['@import \'~nib/index.styl\'\n\n.geojs-map\n position relative\n user-select none\n overflow hidden\n\n .geo-attribution\n position absolute\n right 0\n bottom 0\n padding-right 5px\n cursor auto\n font 11px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif\n z-index 1001\n background rgba(255,255,255,0.7)\n clear both\n display block\n pointer-events auto\n\n .geo-attribution-layer\n padding-left 5px\n\n .canvas-canvas\n display block\n transform-origin 0px 0px\n .webgl-canvas\n display block\n\n .geojs-layer\n position absolute\n width 100%\n height 100%\n left 0\n top 0\n pointer-events none\n &.active:not(.hidden)\n > *\n pointer-events auto\n &.hidden\n display none\n &.hidden[renderer="webgl"]\n display inherit\n\n .geo-tile-layer\n transform-origin 0px 0px\n line-height 0\n font-size 0\n\n &.annotation-input\n cursor crosshair\n &.annotation-intersect\n cursor embedurl("./css/cursor-crosshair-intersect.svg") 12 12,crosshair\n &.annotation-difference\n cursor embedurl("./css/cursor-crosshair-difference.svg") 12 12,crosshair\n &.annotation-union\n cursor embedurl("./css/cursor-crosshair-union.svg") 12 12,crosshair\n &.annotation-xor\n cursor embedurl("./css/cursor-crosshair-xor.svg") 12 12,crosshair\n\n &.annotation-cursor\n cursor crosshair\n &.annotation-intersect\n cursor embedurl("./css/cursor-crosshair-intersect.svg") 12 12,crosshair\n &.annotation-difference\n cursor embedurl("./css/cursor-crosshair-difference.svg") 12 12,crosshair\n &.annotation-union\n cursor embedurl("./css/cursor-crosshair-union.svg") 12 12,crosshair\n &.annotation-xor\n cursor embedurl("./css/cursor-crosshair-xor.svg") 12 12,crosshair\n\n &.highlight-focus\n &:after\n content ""\n display block\n position absolute\n box-sizing border-box\n left 0px\n top 0px\n right 0px\n bottom 0px\n // Highlight is technically a css2 color. We may need to specify it\n // explicitly. #3B66A6 seems close\n border 3px solid Highlight\n opacity 1\n transition opacity 0s\n visibility hidden\n &:focus:after\n visibility visible\n transition opacity 2.5s ease-in\n opacity 0\n\n.geo-tile-container\n position absolute\n &.crop\n overflow hidden\n',"use('../nodes/vendor-helpers.js')\n@import 'config'\n\n/*\n * Alias \"nowrap\" as \"no-wrap\".\n */\n\nno-wrap = unquote('nowrap')\n\n/*\n * Helper to find out if a given value is a width\n */\n\nis-width(val)\n if auto == val\n return true\n else if val && 'unit' == type(val)\n // Stylus does not short circuit so we need to perform this as a distinct\n // operation to prevent errors\n return '' != unit(val)\n return false\n\n/*\n * Vendor support for the given prop / arguments, optionally specifying the\n * only prefixes to utilize, or those which should be ignored.\n */\n\nvendor(prop, args, only = null, ignore = null, vendor-property = true)\n need_normalize = !vendor-property or prop in ('transition' 'transition-property' 'border-image' 'border-image-slice')\n for prefix in vendor-prefixes\n unless (only and !(prefix in only)) or (ignore and prefix in ignore)\n if official == prefix\n if need_normalize\n {prop}: normalize(prop,('%s' % args))\n else\n {prop}: args\n else\n newprop = prop\n newprop = '-' + prefix + '-' + prop if vendor-property\n\n if need_normalize\n {newprop}: normalize(prop,('%s' % args),prefix)\n else\n {newprop}: args\n/*\n * Vendorize the given value.\n */\n\nvendor-value(arg, only = null, ignore = null)\n prop = current-property[0]\n for prefix in vendor-prefixes\n unless (only and !(prefix in only)) or (ignore and prefix in ignore) or official == prefix\n add-property(prop, '-%s-%s' % (prefix arg))\n arg\n\n/*\n * Vendor \"box-shadow\" support.\n */\n\nbox-shadow()\n vendor('box-shadow', arguments, only: webkit official)\n\n/*\n * Vendor \"user-select\" support.\n */\n\nuser-select()\n vendor('user-select', arguments, only: webkit moz ms official)\n\n/*\n * Vendor \"column-count\" support.\n */\n\ncolumn-count()\n vendor('column-count', arguments, only: webkit moz official)\n\n/*\n * Vendor \"column-gap\" support.\n */\n\ncolumn-gap()\n vendor('column-gap', arguments, only: webkit moz official)\n\n/*\n * Vendor \"column-rule\" support.\n */\n\ncolumn-rule()\n vendor('column-rule', arguments, only: webkit moz official)\n\n/*\n * Vendor \"column-rule-color\" support.\n */\n\ncolumn-rule-color()\n vendor('column-rule-color', arguments, only: webkit moz official)\n\n/*\n * Vendor \"column-rule-width\" support.\n */\n\ncolumn-rule-width()\n vendor('column-rule-width', arguments, only: webkit moz official)\n\n/*\n * Vendor \"column-rule-style\" support.\n */\n\ncolumn-rule-style()\n vendor('column-rule-style', arguments, only: webkit moz official)\n\n/*\n * Vendor \"column-width\" support.\n */\n\ncolumn-width()\n vendor('column-width', arguments, only: webkit moz official)\n\n/*\n * Vendor \"column-span\" support.\n */\n\ncolumn-span()\n vendor('column-span', arguments, only: webkit official)\n\n/*\n * Vendor \"column-fill\" support.\n */\n\ncolumn-fill()\n vendor('column-fill', arguments, only: moz official)\n\n/*\n * Legacy syntax support for background-clip and background-origin\n */\n\nlegacy-bg-values(property, args)\n legacy_args = ()\n importance = unquote('')\n for subargs in args\n for arg in subargs\n if arg in (border-box padding-box content-box)\n arg = unquote('border') if arg == border-box\n arg = unquote('padding') if arg == padding-box\n arg = unquote('content') if arg == content-box\n if arg != '!important'\n push(legacy_args,arg)\n else\n importance = !important\n vendor(property, unquote(join(', ',legacy_args)) importance, only: moz webkit)\n\n/*\n * Vendor \"background-clip\" support.\n */\n\nbackground-clip()\n if arguments[0] == text\n vendor('background-clip', arguments, only: webkit)\n else\n legacy-bg-values('background-clip', arguments)\n background-clip: arguments\n\n/*\n * Vendor \"background-origin\" support.\n */\n\nbackground-origin()\n legacy-bg-values('background-origin', arguments)\n background-origin: arguments\n\n/*\n * Vendor \"transform\" support.\n */\n\ntransform()\n vendor('transform', arguments)\n\n/*\n * Vendor \"transform-origin\" support.\n */\ntransform-origin()\n vendor('transform-origin', arguments)\n\n/*\n * Vendor \"transform-style\" support.\n */\n\ntransform-style()\n vendor('transform-style', arguments)\n\n/*\n * Vendor \"border-image\" support.\n */\n\nborder-image()\n vendor('border-image', arguments, only: webkit moz o official)\n\n/*\n * Vendor \"transition\" support.\n */\n\ntransition()\n vendor('transition', arguments)\n\n/*\n * Vendor \"transition-property\" support.\n */\n\ntransition-property()\n vendor('transition-property', arguments)\n\n/*\n * Vendor \"transition-duration\" support.\n */\n\ntransition-duration()\n vendor('transition-duration', arguments)\n\n/*\n * Vendor \"transition-timing-function\" support.\n */\n\ntransition-timing-function()\n vendor('transition-timing-function', arguments)\n\n/*\n * Vendor \"transition-delay\" support.\n */\n\ntransition-delay()\n vendor('transition-delay', arguments)\n\n/*\n * Vendor \"backface-visibility\" support.\n */\n\nbackface-visibility()\n vendor('backface-visibility', arguments, only: webkit moz ms official)\n\n/*\n * Vendor \"perspective\" support.\n */\n\nperspective()\n if mixin\n vendor('perspective', arguments, only: webkit moz ms official)\n else\n 'perspective(%s)' % arguments\n\n/*\n * Vendor \"perspective-origin\" support.\n */\n\nperspective-origin()\n vendor('perspective-origin', arguments, only: webkit moz ms official)\n\n/*\n * Opacity with conditional IE support.\n */\n\nopacity(n, args...)\n opacity: n args\n if support-for-ie\n if n == inherit or n == initial\n -ms-filter: n args\n filter: n args\n else\n val = round(n * 100)\n if val == 100\n -ms-filter: none args\n filter: none args\n else\n -ms-filter: '\"progid:DXImageTransform.Microsoft.Alpha(Opacity=%s)\"' % val args\n filter: 'alpha(opacity=%s)' % val args\n\n/*\n * Vendor \"text-size-adjust\"\n */\n\ntext-size-adjust()\n vendor('text-size-adjust', arguments)\n\n/*\n * Alias the \"white-space\" property.\n */\n\nwhitespace()\n white-space: arguments\n\n/*\n * Vendor \"box-sizing\" support.\n */\n\nbox-sizing()\n vendor('box-sizing', arguments, only: webkit moz official)\n\n/*\n * Vendor \"box-orient\" support.\n */\n\nbox-orient()\n vendor('box-orient', arguments, only: webkit moz official)\n\n/*\n * Vendor \"box-flex-group\" support.\n */\n\nbox-flex-group()\n vendor('box-flex-group', arguments, only: webkit moz official)\n\n/*\n * Vendor \"box-ordinal-group\" support.\n */\n\nbox-ordinal-group()\n vendor('box-ordinal-group', arguments, only: webkit moz ms official)\n\n\n/*\n * Vendor \"box-align\" support.\n */\n\nbox-align()\n vendor('box-align', arguments, only: webkit moz ms official)\n\n/*\n * Vendor \"box-pack\" support.\n */\n\nbox-pack()\n vendor('box-pack', arguments, only: webkit moz ms official)\n\n/*\n * Vendor \"box-direction\" support.\n */\n\nbox-direction()\n vendor('box-direction', arguments, only: webkit moz ms official)\n\n/*\n * Vendor \"animation\" support.\n */\n\nanimation()\n vendor('animation', arguments)\n\n\n/*\n * Vendor \"animation-name\" support.\n */\n\nanimation-name()\n vendor('animation-name', arguments)\n\n/*\n * Vendor \"animation-duration\" support.\n */\n\nanimation-duration()\n vendor('animation-duration', arguments)\n\n/*\n * Vendor \"animation-delay\" support.\n */\n\nanimation-delay()\n vendor('animation-delay', arguments)\n\n/*\n * Vendor \"animation-direction\" support.\n */\n\nanimation-direction()\n vendor('animation-direction', arguments)\n\n/*\n * Vendor \"animation-iteration-count\" support.\n */\n\nanimation-iteration-count()\n vendor('animation-iteration-count', arguments)\n\n/*\n * Vendor \"animation-timing-function\" support.\n */\n\nanimation-timing-function()\n vendor('animation-timing-function', arguments)\n\n/*\n * Vendor \"animation-play-state\" support.\n */\n\nanimation-play-state()\n vendor('animation-play-state', arguments)\n\n/*\n * Vendor \"animation-fill-mode\" support.\n */\n\nanimation-fill-mode()\n vendor('animation-fill-mode', arguments)\n\n/*\n * Vendor \"hyphens\" support.\n */\n\nhyphens()\n vendor('hyphens', arguments, only: webkit moz ms official)\n\n/*\n * Vendor \"appearance\" support.\n */\n\nappearance()\n vendor('appearance', arguments, only: webkit moz official)\n\n/*\n * Vendor \"tab-size\" support.\n */\n\ntab-size()\n vendor('tab-size', arguments, only: moz o official)\n\n/*\n * Vendor \"overflow-scrolling\" support.\n */\n\noverflow-scrolling()\n vendor('overflow-scrolling', arguments, only: webkit official)\n\n/*\n * Vendor \"text-overflow\" support, , -o- for opera 9.* - 10.*\n */\n\ntext-overflow()\n vendor('text-overflow', arguments, only: official o)\n\n/*\n * Vendor \"text-size-adjust\" support.\n */\ntext-size-adjust()\n vendor('text-size-adjust', arguments, only: official webkit ms)\n\n/*\n * Vendor \"font-smoothing\" support, webkit only.\n */\nfont-smoothing()\n vendor('font-smoothing', arguments, only: webkit)\n\n\n/**\n * Vendor input-placeholder/placeholder support.\n *\n * Examples:\n * // Default syntax\n * body\n * placeholder(color #333, font-weight normal)\n *\n * // The comma is important\n * .placeholder-red\n * placeholder(color red,)\n *\n * // We can pass a function\n * green-placeholder()\n * color green\n * .placeholder-green\n * placeholder(green-placeholder)\n *\n * // We can pass a hash\n * textarea\n * placeholder((font-style italic) (font-weight bold) (padding '4px 10px'))\n */\nplaceholder()\n for v in ':-webkit-input' '-moz' ':-moz' '-ms-input'\n &:{v}-placeholder\n for pair in arguments\n if typeof(pair) == 'function'\n pair()\n else if pair is not null && pair[0] is not null\n {pair[0]}: type(pair[1]) == 'string' ? s(pair[1]) : pair[1]\ninput-placeholder = placeholder\n\n/*\n * Vendor background support (gradients).\n */\n\nbackground()\n if match('-gradient\\(', ''+arguments)\n vendor('background', arguments, vendor-property: false)\n else\n background arguments\n\nbackground-image()\n if match('-gradient\\(', ''+arguments)\n vendor('background-image', arguments, vendor-property: false)\n else\n background-image arguments\n\ncursor()\n if match('-gradient\\(', ''+arguments)\n vendor('cursor', arguments, vendor-property: false)\n else\n cursor arguments\n\nlist-style()\n if match('-gradient\\(', ''+arguments)\n vendor('list-style', arguments, vendor-property: false)\n else\n list-style arguments\n\nlist-style-image()\n if match('-gradient\\(', ''+arguments)\n vendor('list-style-image', arguments, vendor-property: false)\n else\n list-style-image arguments\n","/*\n * Overflow utility. Maps to regular overflow, and adds an ellipsis value.\n *\n * Synopsis:\n *\n * overflow: <type>\n *\n * Examples:\n *\n * overflow: auto\n * overflow: hidden\n * overflow: ellipsis\n *\n */\n\noverflow()\n if arguments[0] == ellipsis\n ellipsis()\n else\n overflow: arguments\n","/*\n * Vendor \"display: flex\" support with fallback to obsolete versions.\n */\n\nflex-version ?= box flex\n\n//\n// 1. Display values\n// - http://www.w3.org/TR/css3-flexbox/#flex-containers\n//\ndisplay(type, args...)\n if flex == type || inline-flex == type\n if box in flex-version\n if flex == type\n display: -ms-flexbox args\n display: vendor-value(box args, only: moz webkit)\n else\n display: -ms-inline-flexbox args\n display: vendor-value(inline-box args, only: moz webkit)\n if flex in flex-version\n display: vendor-value(arguments, only: webkit official) // overwrites old webkit\n else\n display: arguments\n\n/*\n * New syntax for browsers like Google Chrome.\n * Plus a translation to the old syntax, if possible.\n */\n\n\n//\n// 5. Ordering and Orientation\n// - http://www.w3.org/TR/css3-flexbox/#ordering-and-orientation\n//\n-flex-obsolete-direction(direction)\n if box in flex-version\n if row-reverse == direction || column-reverse == direction\n vendor('box-direction', reverse, ignore: ms official)\n\n if row == direction || row-reverse == direction\n vendor('box-orient', horizontal, ignore: ms official)\n else if column == direction || column-reverse == direction\n vendor('box-orient', vertical, ignore: ms official)\n\n-flex-obsolete-wrap(value)\n if box in flex-version\n // WARN: wrap-reverse does not have a box equivalent. This will render in different manners\n // on box vs. flex values.\n if 'wrap' == value || wrap-reverse == value\n vendor('box-lines', multiple, ignore: ms official)\n else if nowrap == value\n vendor('box-lines', single, ignore: ms official)\n\nflex-direction(direction)\n // obsolete\n -flex-obsolete-direction(direction)\n\n // new\n if flex in flex-version\n vendor('flex-direction', arguments, only: webkit ms official)\n\nflex-wrap(value)\n // obsolete\n -flex-obsolete-wrap(value)\n\n if flex in flex-version\n vendor('flex-wrap', arguments, only: webkit ms official)\n\nflex-flow()\n // obsolete\n -flex-obsolete-direction(arguments[0])\n -flex-obsolete-direction(arguments[1])\n -flex-obsolete-wrap(arguments[0])\n -flex-obsolete-wrap(arguments[1])\n\n // new\n if flex in flex-version\n vendor('flex-flow', arguments, only: webkit ms official)\n\n\norder()\n // obsolete\n if box in flex-version\n vendor('box-ordinal-group', arguments, ignore: ms official)\n\n // new\n if flex in flex-version\n vendor('flex-order', arguments, only: ms)\n vendor('order', arguments, only: webkit official)\n\n\n//\n// 7. Flexibility\n// - http://www.w3.org/TR/css3-flexbox/#flexibility\n//\nflex-grow(growth)\n // obsolete\n if box in flex-version\n vendor('box-flex', growth)\n\n // new\n if flex in flex-version\n vendor('flex-grow', arguments, only: webkit official)\n\nflex-basis()\n if flex in flex-version\n vendor('flex-basis', arguments, only: webkit official)\n\nflex-shrink()\n if flex in flex-version\n vendor('flex-shrink', arguments, only: webkit official)\n\nflex(growth)\n\n // obsolete\n if box in flex-version\n shrink = 1\n\n if none == growth || initial == growth\n // Well known values\n shrink = 0 if none == growth\n growth = 0\n else if is-width(growth) == true\n // Basis is defined as the first parameter\n growth = arguments[1] || 0\n shrink = arguments[2] if 3 <= length(arguments)\n else if arguments[1] && is-width(arguments[1]) == false\n // Growth is first and shrink is second\n shrink = arguments[1]\n\n // Since we can't make the distinction between growing and shrinking in the box model, take\n // the one that provides the most flexibility.\n vendor('box-flex', max(growth, shrink), ignore: ms)\n\n // new\n if flex in flex-version\n vendor('flex', arguments, only: webkit ms official)\n\n\n// converts the justification alignment\n-convert-justify(align)\n if flex-start == align\n return start\n else if flex-end == align\n return end\n else if space-around == align\n return distribute\n else if space-between == align\n return justify\n else\n return align\n\n//\n// 8. Alignment\n// - http://www.w3.org/TR/css3-flexbox/#alignment\n//\njustify-content(align)\n // obsolete\n if box in flex-version\n vendor('box-pack', -convert-justify(align), ignore: ms official)\n\n // new\n if flex in flex-version\n vendor('flex-pack', -convert-justify(align), only: ms)\n vendor('justify-content', align, only: webkit official)\n\nalign-content(align)\n // WARN: Obsolete spec does not allow for adjustment here\n if flex in flex-version\n vendor('flex-line-pack', -convert-justify(align), only: ms)\n vendor('align-content', align, only: webkit official)\n\n// converts alignment from 'flex' to normal value\n-convert-alignment(align)\n if flex-start == align\n return start\n else if flex-end == align\n return end\n else\n return align\n\nalign-items(align)\n // obsolete\n if box in flex-version\n vendor('box-align', -convert-alignment(align), ignore: ms official)\n\n // new\n if flex in flex-version\n vendor('flex-align', -convert-alignment(align), only: ms)\n vendor('align-items', arguments, only: webkit official)\n\nalign-self(align)\n // WARN: Obsolete spec does not allow for overriding alignment on individual items.\n if flex in flex-version\n vendor('align-self', align, only: webkit official)\n vendor('flex-item-align', -convert-alignment(align), only: ms)\n","/*\n * border: <color>\n * border: ...\n */\n\nborder(color, args...)\n if color is a 'color'\n border: 1px solid color args\n else\n border: arguments\n"],sourceRoot:""}]),e.A=f},7046:function(t,e,n){"use strict";var i=n(4942),r=n.n(i),o=n(278),a=n.n(o)()(r());a.push([t.id,".color-legend-container{display:none;padding:10px;border:1.5px solid #000;border-radius:3px;transition:250ms background linear;background-color:rgba(255,255,255,0.75)}.color-legend-container:hover{background-color:#fff}.color-legend-container .geojs-color-legends .geojs-color-legend{margin-bottom:10px}.color-legend-container .geojs-color-legends .geojs-color-legend .geojs-title{text-align:center}.color-legend-container .geojs-color-legends .geojs-color-legend svg.svg{display:block}.color-legend-container .geojs-color-legends .geojs-color-legend svg.svg .axis.x path.domain,.color-legend-container .geojs-color-legends .geojs-color-legend svg.svg .axis.x line{fill:none;stroke:#000;stroke-width:.7}.color-legend-container .geojs-color-legends .geojs-color-legend svg.svg .axis.x text{font-size:12px}.color-legend-container .color-legend-popup{position:absolute;background:#fff;height:22px;font-size:14px;border:solid 1px #000;padding:0 5px;pointer-events:none;white-space:nowrap;z-index:100000;opacity:0}","",{version:3,sources:["webpack://./ui/colorLegendWidget.styl"],names:[],mappings:"AAAA,wBACE,YAAQ,CACR,YAAQ,CACR,uBAAO,CACP,iBAAc,CACd,kCAAW,CACX,uCAAiB,CAEjB,8BACE,qBAAiB,CAIjB,iEACE,kBAAc,CAEd,8EACE,iBAAW,CAEb,yEACE,aAAQ,CAGN,mLACE,SAAK,CACL,WAAO,CACP,eAAa,CACf,sFACE,cAAU,CAEpB,4CACE,iBAAS,CACT,eAAW,CACX,WAAO,CACP,cAAU,CACV,qBAAO,CACP,aAAQ,CACR,mBAAe,CACf,kBAAY,CACZ,cAAQ,CACR,SAAQ",sourcesContent:[".color-legend-container\n display none\n padding 10px\n border 1.5px solid black\n border-radius 3px\n transition 250ms background linear\n background-color rgba(255, 255, 255, 0.75)\n\n &:hover\n background-color rgba(255, 255, 255, 1)\n\n .geojs-color-legends\n\n .geojs-color-legend\n margin-bottom 10px\n\n .geojs-title\n text-align center\n\n svg.svg\n display block\n\n .axis.x\n path.domain, line\n fill none\n stroke black\n stroke-width 0.7\n text\n font-size 12px\n\n .color-legend-popup\n position absolute\n background white\n height 22px\n font-size 14px\n border solid 1px black\n padding 0 5px\n pointer-events none\n white-space nowrap\n z-index 100000\n opacity 0\n"],sourceRoot:""}]),e.A=a},5290:function(t,e,n){"use strict";var i=n(4942),r=n.n(i),o=n(278),a=n.n(o)()(r());a.push([t.id,".geojs-scale-widget-bar{stroke:#000}.geojs-scale-widget-text{font-weight:bold;font-size:16px;font-family:serif}","",{version:3,sources:["webpack://./ui/scaleWidget.styl"],names:[],mappings:"AAAA,wBACE,WAAO,CACT,yBACE,gBAAY,CACZ,cAAU,CACV,iBAAY",sourcesContent:[".geojs-scale-widget-bar\n stroke black\n.geojs-scale-widget-text\n font-weight bold\n font-size 16px\n font-family serif\n"],sourceRoot:""}]),e.A=a},278:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(i)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var u=0;u<t.length;u++){var c=[].concat(t[u]);i&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},3021:function(t){"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},4942:function(t){"use strict";t.exports=function(t){var e=t[1],n=t[3];if(!n)return e;if("function"==typeof btoa){var i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),o="/*# ".concat(r," */");return[e].concat([o]).join("\n")}return[e].join("\n")}},5230:function(t){"use strict";function e(t,e,i){i=i||2;var o,a,s,l,d,h,p,m=e&&e.length,g=m?e[0]*i:t.length,y=n(t,0,g,i,!0),v=[];if(!y||y.next===y.prev)return v;if(m&&(y=function(t,e,i,r){var o,a,s,l=[];for(o=0,a=e.length;o<a;o++)(s=n(t,e[o]*r,o<a-1?e[o+1]*r:t.length,r,!1))===s.next&&(s.steiner=!0),l.push(f(s));for(l.sort(u),o=0;o<l.length;o++)i=c(l[o],i);return i}(t,e,y,i)),t.length>80*i){o=s=t[0],a=l=t[1];for(var x=i;x<g;x+=i)(d=t[x])<o&&(o=d),(h=t[x+1])<a&&(a=h),d>s&&(s=d),h>l&&(l=h);p=0!==(p=Math.max(s-o,l-a))?32767/p:0}return r(y,v,i,o,a,p,0),v}function n(t,e,n,i,r){var o,a;if(r===C(t,e,n,i)>0)for(o=e;o<n;o+=i)a=M(o,t[o],t[o+1],a);else for(o=n-i;o>=e;o-=i)a=M(o,t[o],t[o+1],a);return a&&y(a,a.next)&&(A(a),a=a.next),a}function i(t,e){if(!t)return t;e||(e=t);var n,i=t;do{if(n=!1,i.steiner||!y(i,i.next)&&0!==g(i.prev,i,i.next))i=i.next;else{if(A(i),(i=e=i.prev)===i.next)break;n=!0}}while(n||i!==e);return e}function r(t,e,n,u,c,d,f){if(t){!f&&d&&function(t,e,n,i){var r=t;do{0===r.z&&(r.z=h(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,n,i,r,o,a,s,l,u=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,i=n,s=0,e=0;e<u&&(s++,i=i.nextZ);e++);for(l=u;s>0||l>0&&i;)0!==s&&(0===l||!i||n.z<=i.z)?(r=n,n=n.nextZ,s--):(r=i,i=i.nextZ,l--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;n=i}o.nextZ=null,u*=2}while(a>1)}(r)}(t,u,c,d);for(var p,m,g=t;t.prev!==t.next;)if(p=t.prev,m=t.next,d?a(t,u,c,d):o(t))e.push(p.i/n|0),e.push(t.i/n|0),e.push(m.i/n|0),A(t),t=m.next,g=m.next;else if((t=m)===g){f?1===f?r(t=s(i(t),e,n),e,n,u,c,d,2):2===f&&l(t,e,n,u,c,d):r(i(t),e,n,u,c,d,1);break}}}function o(t){var e=t.prev,n=t,i=t.next;if(g(e,n,i)>=0)return!1;for(var r=e.x,o=n.x,a=i.x,s=e.y,l=n.y,u=i.y,c=r<o?r<a?r:a:o<a?o:a,d=s<l?s<u?s:u:l<u?l:u,h=r>o?r>a?r:a:o>a?o:a,f=s>l?s>u?s:u:l>u?l:u,m=i.next;m!==e;){if(m.x>=c&&m.x<=h&&m.y>=d&&m.y<=f&&p(r,s,o,l,a,u,m.x,m.y)&&g(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function a(t,e,n,i){var r=t.prev,o=t,a=t.next;if(g(r,o,a)>=0)return!1;for(var s=r.x,l=o.x,u=a.x,c=r.y,d=o.y,f=a.y,m=s<l?s<u?s:u:l<u?l:u,y=c<d?c<f?c:f:d<f?d:f,v=s>l?s>u?s:u:l>u?l:u,x=c>d?c>f?c:f:d>f?d:f,_=h(m,y,e,n,i),b=h(v,x,e,n,i),w=t.prevZ,M=t.nextZ;w&&w.z>=_&&M&&M.z<=b;){if(w.x>=m&&w.x<=v&&w.y>=y&&w.y<=x&&w!==r&&w!==a&&p(s,c,l,d,u,f,w.x,w.y)&&g(w.prev,w,w.next)>=0)return!1;if(w=w.prevZ,M.x>=m&&M.x<=v&&M.y>=y&&M.y<=x&&M!==r&&M!==a&&p(s,c,l,d,u,f,M.x,M.y)&&g(M.prev,M,M.next)>=0)return!1;M=M.nextZ}for(;w&&w.z>=_;){if(w.x>=m&&w.x<=v&&w.y>=y&&w.y<=x&&w!==r&&w!==a&&p(s,c,l,d,u,f,w.x,w.y)&&g(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;M&&M.z<=b;){if(M.x>=m&&M.x<=v&&M.y>=y&&M.y<=x&&M!==r&&M!==a&&p(s,c,l,d,u,f,M.x,M.y)&&g(M.prev,M,M.next)>=0)return!1;M=M.nextZ}return!0}function s(t,e,n){var r=t;do{var o=r.prev,a=r.next.next;!y(o,a)&&v(o,r,r.next,a)&&b(o,a)&&b(a,o)&&(e.push(o.i/n|0),e.push(r.i/n|0),e.push(a.i/n|0),A(r),A(r.next),r=t=a),r=r.next}while(r!==t);return i(r)}function l(t,e,n,o,a,s){var l=t;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&m(l,u)){var c=w(l,u);return l=i(l,l.next),c=i(c,c.next),r(l,e,n,o,a,s,0),void r(c,e,n,o,a,s,0)}u=u.next}l=l.next}while(l!==t)}function u(t,e){return t.x-e.x}function c(t,e){var n=function(t,e){var n,i=e,r=t.x,o=t.y,a=-1/0;do{if(o<=i.y&&o>=i.next.y&&i.next.y!==i.y){var s=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s<=r&&s>a&&(a=s,n=i.x<i.next.x?i:i.next,s===r))return n}i=i.next}while(i!==e);if(!n)return null;var l,u=n,c=n.x,h=n.y,f=1/0;i=n;do{r>=i.x&&i.x>=c&&r!==i.x&&p(o<h?r:a,o,c,h,o<h?a:r,o,i.x,i.y)&&(l=Math.abs(o-i.y)/(r-i.x),b(i,t)&&(l<f||l===f&&(i.x>n.x||i.x===n.x&&d(n,i)))&&(n=i,f=l)),i=i.next}while(i!==u);return n}(t,e);if(!n)return e;var r=w(n,t);return i(r,r.next),i(n,n.next)}function d(t,e){return g(t.prev,t,e.prev)<0&&g(e.next,t,t.next)<0}function h(t,e,n,i,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*r|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-i)*r|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function f(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function p(t,e,n,i,r,o,a,s){return(r-a)*(e-s)>=(t-a)*(o-s)&&(t-a)*(i-s)>=(n-a)*(e-s)&&(n-a)*(o-s)>=(r-a)*(i-s)}function m(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&&v(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(b(t,e)&&b(e,t)&&function(t,e){var n=t,i=!1,r=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&r<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==t);return i}(t,e)&&(g(t.prev,t,e.prev)||g(t,e.prev,e))||y(t,e)&&g(t.prev,t,t.next)>0&&g(e.prev,e,e.next)>0)}function g(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function y(t,e){return t.x===e.x&&t.y===e.y}function v(t,e,n,i){var r=_(g(t,e,n)),o=_(g(t,e,i)),a=_(g(n,i,t)),s=_(g(n,i,e));return r!==o&&a!==s||(!(0!==r||!x(t,n,e))||(!(0!==o||!x(t,i,e))||(!(0!==a||!x(n,t,i))||!(0!==s||!x(n,e,i)))))}function x(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function _(t){return t>0?1:t<0?-1:0}function b(t,e){return g(t.prev,t,t.next)<0?g(t,e,t.next)>=0&&g(t,t.prev,e)>=0:g(t,e,t.prev)<0||g(t,t.next,e)<0}function w(t,e){var n=new T(t.i,t.x,t.y),i=new T(e.i,e.x,e.y),r=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,o.next=i,i.prev=o,i}function M(t,e,n,i){var r=new T(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function A(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 T(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function C(t,e,n,i){for(var r=0,o=e,a=n-i;o<n;o+=i)r+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return r}t.exports=e,t.exports.default=e,e.deviation=function(t,e,n,i){var r=e&&e.length,o=r?e[0]*n:t.length,a=Math.abs(C(t,0,o,n));if(r)for(var s=0,l=e.length;s<l;s++){var u=e[s]*n,c=s<l-1?e[s+1]*n:t.length;a-=Math.abs(C(t,u,c,n))}var d=0;for(s=0;s<i.length;s+=3){var h=i[s]*n,f=i[s+1]*n,p=i[s+2]*n;d+=Math.abs((t[h]-t[p])*(t[f+1]-t[h+1])-(t[h]-t[f])*(t[p+1]-t[h+1]))}return 0===a&&0===d?0:Math.abs((d-a)/a)},e.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},i=0,r=0;r<t.length;r++){for(var o=0;o<t[r].length;o++)for(var a=0;a<e;a++)n.vertices.push(t[r][o][a]);r>0&&(i+=t[r-1].length,n.holes.push(i))}return n}},3369:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8];return t[0]=a*c-s*u,t[1]=r*u-i*c,t[2]=i*s-r*a,t[3]=s*l-o*c,t[4]=n*c-r*l,t[5]=r*o-n*s,t[6]=o*u-a*l,t[7]=i*l-n*u,t[8]=n*a-i*o,t}},5723:function(t){t.exports=function(t){var e=new Float32Array(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}},817:function(t){t.exports=function(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[6]=e[6],t[7]=e[7],t[8]=e[8],t}},6396:function(t){t.exports=function(){var t=new Float32Array(9);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}},9133:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],u=t[8];return e*(u*o-a*l)+n*(a*s-u*r)+i*(l*r-o*s)}},7053:function(t){t.exports=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]+t[3]*t[3]+t[4]*t[4]+t[5]*t[5]+t[6]*t[6]+t[7]*t[7]+t[8]*t[8])}},7068:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}},5018:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}},3955:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,l=r+r,u=n*a,c=i*a,d=i*s,h=r*a,f=r*s,p=r*l,m=o*a,g=o*s,y=o*l;return t[0]=1-d-p,t[3]=c-y,t[6]=h+g,t[1]=c+y,t[4]=1-u-p,t[7]=f-m,t[2]=h-g,t[5]=f+m,t[8]=1-u-d,t}},6658:function(t){t.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}},3638:function(t,e,n){t.exports={adjoint:n(3369),clone:n(5723),copy:n(817),create:n(6396),determinant:n(9133),frob:n(7053),fromMat2:n(7068),fromMat4:n(5018),fromQuat:n(3955),identity:n(6658),invert:n(6028),multiply:n(4980),normalFromMat4:n(8093),rotate:n(8163),scale:n(2311),str:n(6321),translate:n(5068),transpose:n(6333)}},6028:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],d=c*a-s*u,h=-c*o+s*l,f=u*o-a*l,p=n*d+i*h+r*f;return p?(p=1/p,t[0]=d*p,t[1]=(-c*i+r*u)*p,t[2]=(s*i-r*a)*p,t[3]=h*p,t[4]=(c*n-r*l)*p,t[5]=(-s*n+r*o)*p,t[6]=f*p,t[7]=(-u*n+i*l)*p,t[8]=(a*n-i*o)*p,t):null}},4980:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],d=e[8],h=n[0],f=n[1],p=n[2],m=n[3],g=n[4],y=n[5],v=n[6],x=n[7],_=n[8];return t[0]=h*i+f*a+p*u,t[1]=h*r+f*s+p*c,t[2]=h*o+f*l+p*d,t[3]=m*i+g*a+y*u,t[4]=m*r+g*s+y*c,t[5]=m*o+g*l+y*d,t[6]=v*i+x*a+_*u,t[7]=v*r+x*s+_*c,t[8]=v*o+x*l+_*d,t}},8093:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],d=e[9],h=e[10],f=e[11],p=e[12],m=e[13],g=e[14],y=e[15],v=n*s-i*a,x=n*l-r*a,_=n*u-o*a,b=i*l-r*s,w=i*u-o*s,M=r*u-o*l,A=c*m-d*p,T=c*g-h*p,C=c*y-f*p,E=d*g-h*m,k=d*y-f*m,S=h*y-f*g,O=v*S-x*k+_*E+b*C-w*T+M*A;return O?(O=1/O,t[0]=(s*S-l*k+u*E)*O,t[1]=(l*C-a*S-u*T)*O,t[2]=(a*k-s*C+u*A)*O,t[3]=(r*k-i*S-o*E)*O,t[4]=(n*S-r*C+o*T)*O,t[5]=(i*C-n*k-o*A)*O,t[6]=(m*M-g*w+y*b)*O,t[7]=(g*_-p*M-y*x)*O,t[8]=(p*w-m*_+y*v)*O,t):null}},8163:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],d=e[8],h=Math.sin(n),f=Math.cos(n);return t[0]=f*i+h*a,t[1]=f*r+h*s,t[2]=f*o+h*l,t[3]=f*a-h*i,t[4]=f*s-h*r,t[5]=f*l-h*o,t[6]=u,t[7]=c,t[8]=d,t}},2311:function(t){t.exports=function(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}},6321:function(t){t.exports=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}},5068:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],d=e[8],h=n[0],f=n[1];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=h*i+f*a+u,t[7]=h*r+f*s+c,t[8]=h*o+f*l+d,t}},6333:function(t){t.exports=function(t,e){if(t===e){var n=e[1],i=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}},5200:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],d=e[9],h=e[10],f=e[11],p=e[12],m=e[13],g=e[14],y=e[15];return t[0]=s*(h*y-f*g)-d*(l*y-u*g)+m*(l*f-u*h),t[1]=-(i*(h*y-f*g)-d*(r*y-o*g)+m*(r*f-o*h)),t[2]=i*(l*y-u*g)-s*(r*y-o*g)+m*(r*u-o*l),t[3]=-(i*(l*f-u*h)-s*(r*f-o*h)+d*(r*u-o*l)),t[4]=-(a*(h*y-f*g)-c*(l*y-u*g)+p*(l*f-u*h)),t[5]=n*(h*y-f*g)-c*(r*y-o*g)+p*(r*f-o*h),t[6]=-(n*(l*y-u*g)-a*(r*y-o*g)+p*(r*u-o*l)),t[7]=n*(l*f-u*h)-a*(r*f-o*h)+c*(r*u-o*l),t[8]=a*(d*y-f*m)-c*(s*y-u*m)+p*(s*f-u*d),t[9]=-(n*(d*y-f*m)-c*(i*y-o*m)+p*(i*f-o*d)),t[10]=n*(s*y-u*m)-a*(i*y-o*m)+p*(i*u-o*s),t[11]=-(n*(s*f-u*d)-a*(i*f-o*d)+c*(i*u-o*s)),t[12]=-(a*(d*g-h*m)-c*(s*g-l*m)+p*(s*h-l*d)),t[13]=n*(d*g-h*m)-c*(i*g-r*m)+p*(i*h-r*d),t[14]=-(n*(s*g-l*m)-a*(i*g-r*m)+p*(i*l-r*s)),t[15]=n*(s*h-l*d)-a*(i*h-r*d)+c*(i*l-r*s),t}},1130:function(t){t.exports=function(t){var e=new Float32Array(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},74:function(t){t.exports=function(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[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},3783:function(t){t.exports=function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},8844:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],u=t[8],c=t[9],d=t[10],h=t[11],f=t[12],p=t[13],m=t[14],g=t[15];return(e*a-n*o)*(d*g-h*m)-(e*s-i*o)*(c*g-h*p)+(e*l-r*o)*(c*m-d*p)+(n*s-i*a)*(u*g-h*f)-(n*l-r*a)*(u*m-d*f)+(i*l-r*s)*(u*p-c*f)}},5936:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,l=r+r,u=n*a,c=i*a,d=i*s,h=r*a,f=r*s,p=r*l,m=o*a,g=o*s,y=o*l;return t[0]=1-d-p,t[1]=c+y,t[2]=h-g,t[3]=0,t[4]=c-y,t[5]=1-u-p,t[6]=f+m,t[7]=0,t[8]=h+g,t[9]=f-m,t[10]=1-u-d,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},5405:function(t){t.exports=function(t,e,n){var i,r,o,a=n[0],s=n[1],l=n[2],u=Math.sqrt(a*a+s*s+l*l);if(Math.abs(u)<1e-6)return null;return a*=u=1/u,s*=u,l*=u,i=Math.sin(e),r=Math.cos(e),o=1-r,t[0]=a*a*o+r,t[1]=s*a*o+l*i,t[2]=l*a*o-s*i,t[3]=0,t[4]=a*s*o-l*i,t[5]=s*s*o+r,t[6]=l*s*o+a*i,t[7]=0,t[8]=a*l*o+s*i,t[9]=s*l*o-a*i,t[10]=l*l*o+r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},3310:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=i+i,l=r+r,u=o+o,c=i*s,d=i*l,h=i*u,f=r*l,p=r*u,m=o*u,g=a*s,y=a*l,v=a*u;return t[0]=1-(f+m),t[1]=d+v,t[2]=h-y,t[3]=0,t[4]=d-v,t[5]=1-(c+m),t[6]=p+g,t[7]=0,t[8]=h+y,t[9]=p-g,t[10]=1-(c+f),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}},1826:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},4692:function(t){t.exports=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}},1349:function(t){t.exports=function(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},8034:function(t){t.exports=function(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},1655:function(t){t.exports=function(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},3277:function(t){t.exports=function(t,e,n,i,r,o,a){var s=1/(n-e),l=1/(r-i),u=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(r+i)*l,t[10]=(a+o)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*u,t[15]=0,t}},257:function(t){t.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},3503:function(t,e,n){t.exports={create:n(3783),clone:n(1130),copy:n(74),identity:n(257),transpose:n(2664),invert:n(6583),adjoint:n(5200),determinant:n(8844),multiply:n(9899),translate:n(573),scale:n(177),rotate:n(648),rotateX:n(5618),rotateY:n(5345),rotateZ:n(5208),fromRotation:n(5405),fromRotationTranslation:n(3310),fromScaling:n(1826),fromTranslation:n(4692),fromXRotation:n(1349),fromYRotation:n(8034),fromZRotation:n(1655),fromQuat:n(5936),frustum:n(3277),perspective:n(2649),perspectiveFromFieldOfView:n(7733),ortho:n(2337),lookAt:n(8541),str:n(6600)}},6583:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],d=e[9],h=e[10],f=e[11],p=e[12],m=e[13],g=e[14],y=e[15],v=n*s-i*a,x=n*l-r*a,_=n*u-o*a,b=i*l-r*s,w=i*u-o*s,M=r*u-o*l,A=c*m-d*p,T=c*g-h*p,C=c*y-f*p,E=d*g-h*m,k=d*y-f*m,S=h*y-f*g,O=v*S-x*k+_*E+b*C-w*T+M*A;if(!O)return null;return O=1/O,t[0]=(s*S-l*k+u*E)*O,t[1]=(r*k-i*S-o*E)*O,t[2]=(m*M-g*w+y*b)*O,t[3]=(h*w-d*M-f*b)*O,t[4]=(l*C-a*S-u*T)*O,t[5]=(n*S-r*C+o*T)*O,t[6]=(g*_-p*M-y*x)*O,t[7]=(c*M-h*_+f*x)*O,t[8]=(a*k-s*C+u*A)*O,t[9]=(i*C-n*k-o*A)*O,t[10]=(p*w-m*_+y*v)*O,t[11]=(d*_-c*w-f*v)*O,t[12]=(s*T-a*E-l*A)*O,t[13]=(n*E-i*T+r*A)*O,t[14]=(m*x-p*b-g*v)*O,t[15]=(c*b-d*x+h*v)*O,t}},8541:function(t,e,n){var i=n(257);t.exports=function(t,e,n,r){var o,a,s,l,u,c,d,h,f,p,m=e[0],g=e[1],y=e[2],v=r[0],x=r[1],_=r[2],b=n[0],w=n[1],M=n[2];if(Math.abs(m-b)<1e-6&&Math.abs(g-w)<1e-6&&Math.abs(y-M)<1e-6)return i(t);d=m-b,h=g-w,f=y-M,p=1/Math.sqrt(d*d+h*h+f*f),o=x*(f*=p)-_*(h*=p),a=_*(d*=p)-v*f,s=v*h-x*d,(p=Math.sqrt(o*o+a*a+s*s))?(o*=p=1/p,a*=p,s*=p):(o=0,a=0,s=0);l=h*s-f*a,u=f*o-d*s,c=d*a-h*o,(p=Math.sqrt(l*l+u*u+c*c))?(l*=p=1/p,u*=p,c*=p):(l=0,u=0,c=0);return t[0]=o,t[1]=l,t[2]=d,t[3]=0,t[4]=a,t[5]=u,t[6]=h,t[7]=0,t[8]=s,t[9]=c,t[10]=f,t[11]=0,t[12]=-(o*m+a*g+s*y),t[13]=-(l*m+u*g+c*y),t[14]=-(d*m+h*g+f*y),t[15]=1,t}},9899:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],d=e[8],h=e[9],f=e[10],p=e[11],m=e[12],g=e[13],y=e[14],v=e[15],x=n[0],_=n[1],b=n[2],w=n[3];return t[0]=x*i+_*s+b*d+w*m,t[1]=x*r+_*l+b*h+w*g,t[2]=x*o+_*u+b*f+w*y,t[3]=x*a+_*c+b*p+w*v,x=n[4],_=n[5],b=n[6],w=n[7],t[4]=x*i+_*s+b*d+w*m,t[5]=x*r+_*l+b*h+w*g,t[6]=x*o+_*u+b*f+w*y,t[7]=x*a+_*c+b*p+w*v,x=n[8],_=n[9],b=n[10],w=n[11],t[8]=x*i+_*s+b*d+w*m,t[9]=x*r+_*l+b*h+w*g,t[10]=x*o+_*u+b*f+w*y,t[11]=x*a+_*c+b*p+w*v,x=n[12],_=n[13],b=n[14],w=n[15],t[12]=x*i+_*s+b*d+w*m,t[13]=x*r+_*l+b*h+w*g,t[14]=x*o+_*u+b*f+w*y,t[15]=x*a+_*c+b*p+w*v,t}},2337:function(t){t.exports=function(t,e,n,i,r,o,a){var s=1/(e-n),l=1/(i-r),u=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(r+i)*l,t[14]=(a+o)*u,t[15]=1,t}},2649:function(t){t.exports=function(t,e,n,i,r){var o=1/Math.tan(e/2),a=1/(i-r);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(r+i)*a,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*r*i*a,t[15]=0,t}},7733:function(t){t.exports=function(t,e,n,i){var r=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(a+s),u=2/(r+o);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(a-s)*l*.5,t[9]=(r-o)*u*.5,t[10]=i/(n-i),t[11]=-1,t[12]=0,t[13]=0,t[14]=i*n/(n-i),t[15]=0,t}},648:function(t){t.exports=function(t,e,n,i){var r,o,a,s,l,u,c,d,h,f,p,m,g,y,v,x,_,b,w,M,A,T,C,E,k=i[0],S=i[1],O=i[2],P=Math.sqrt(k*k+S*S+O*O);if(Math.abs(P)<1e-6)return null;k*=P=1/P,S*=P,O*=P,r=Math.sin(n),o=Math.cos(n),a=1-o,s=e[0],l=e[1],u=e[2],c=e[3],d=e[4],h=e[5],f=e[6],p=e[7],m=e[8],g=e[9],y=e[10],v=e[11],x=k*k*a+o,_=S*k*a+O*r,b=O*k*a-S*r,w=k*S*a-O*r,M=S*S*a+o,A=O*S*a+k*r,T=k*O*a+S*r,C=S*O*a-k*r,E=O*O*a+o,t[0]=s*x+d*_+m*b,t[1]=l*x+h*_+g*b,t[2]=u*x+f*_+y*b,t[3]=c*x+p*_+v*b,t[4]=s*w+d*M+m*A,t[5]=l*w+h*M+g*A,t[6]=u*w+f*M+y*A,t[7]=c*w+p*M+v*A,t[8]=s*T+d*C+m*E,t[9]=l*T+h*C+g*E,t[10]=u*T+f*C+y*E,t[11]=c*T+p*C+v*E,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t}},5618:function(t){t.exports=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],c=e[9],d=e[10],h=e[11];e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[4]=o*r+u*i,t[5]=a*r+c*i,t[6]=s*r+d*i,t[7]=l*r+h*i,t[8]=u*r-o*i,t[9]=c*r-a*i,t[10]=d*r-s*i,t[11]=h*r-l*i,t}},5345:function(t){t.exports=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),o=e[0],a=e[1],s=e[2],l=e[3],u=e[8],c=e[9],d=e[10],h=e[11];e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=o*r-u*i,t[1]=a*r-c*i,t[2]=s*r-d*i,t[3]=l*r-h*i,t[8]=o*i+u*r,t[9]=a*i+c*r,t[10]=s*i+d*r,t[11]=l*i+h*r,t}},5208:function(t){t.exports=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),o=e[0],a=e[1],s=e[2],l=e[3],u=e[4],c=e[5],d=e[6],h=e[7];e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=o*r+u*i,t[1]=a*r+c*i,t[2]=s*r+d*i,t[3]=l*r+h*i,t[4]=u*r-o*i,t[5]=c*r-a*i,t[6]=d*r-s*i,t[7]=h*r-l*i,t}},177:function(t){t.exports=function(t,e,n){var i=n[0],r=n[1],o=n[2];return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},6600:function(t){t.exports=function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}},573:function(t){t.exports=function(t,e,n){var i,r,o,a,s,l,u,c,d,h,f,p,m=n[0],g=n[1],y=n[2];e===t?(t[12]=e[0]*m+e[4]*g+e[8]*y+e[12],t[13]=e[1]*m+e[5]*g+e[9]*y+e[13],t[14]=e[2]*m+e[6]*g+e[10]*y+e[14],t[15]=e[3]*m+e[7]*g+e[11]*y+e[15]):(i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],d=e[8],h=e[9],f=e[10],p=e[11],t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=d,t[9]=h,t[10]=f,t[11]=p,t[12]=i*m+s*g+d*y+e[12],t[13]=r*m+l*g+h*y+e[13],t[14]=o*m+u*g+f*y+e[14],t[15]=a*m+c*g+p*y+e[15]);return t}},2664:function(t){t.exports=function(t,e){if(t===e){var n=e[1],i=e[2],r=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=i,t[9]=o,t[11]=e[14],t[12]=r,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}},3197:function(t){t.exports=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}},577:function(t,e,n){t.exports=function(t,e){var n=i(t[0],t[1],t[2]),a=i(e[0],e[1],e[2]);r(n,n),r(a,a);var s=o(n,a);return s>1?0:Math.acos(s)};var i=n(9666),r=n(1205),o=n(6517)},9913:function(t){t.exports=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}},7091:function(t){t.exports=function(t){var e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}},3497:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},1220:function(t){t.exports=function(){var t=new Float32Array(3);return t[0]=0,t[1]=0,t[2]=0,t}},6902:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2];return t[0]=r*l-o*s,t[1]=o*a-i*l,t[2]=i*s-r*a,t}},5140:function(t,e,n){t.exports=n(5055)},5055:function(t){t.exports=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(n*n+i*i+r*r)}},6669:function(t,e,n){t.exports=n(9737)},9737:function(t){t.exports=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}},6517:function(t){t.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}},6532:function(t){t.exports=1e-6},1077:function(t,e,n){t.exports=function(t,e){var n=t[0],r=t[1],o=t[2],a=e[0],s=e[1],l=e[2];return Math.abs(n-a)<=i*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-s)<=i*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(o-l)<=i*Math.max(1,Math.abs(o),Math.abs(l))};var i=n(6532)},5696:function(t){t.exports=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}},4280:function(t){t.exports=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}},9436:function(t,e,n){t.exports=function(t,e,n,r,o,a){var s,l;e||(e=3);n||(n=0);l=r?Math.min(r*e+n,t.length):t.length;for(s=n;s<l;s+=e)i[0]=t[s],i[1]=t[s+1],i[2]=t[s+2],o(i,i,a),t[s]=i[0],t[s+1]=i[1],t[s+2]=i[2];return t};var i=n(1220)()},9666:function(t){t.exports=function(t,e,n){var i=new Float32Array(3);return i[0]=t,i[1]=e,i[2]=n,i}},1982:function(t,e,n){t.exports={EPSILON:n(6532),create:n(1220),clone:n(7091),angle:n(577),fromValues:n(9666),copy:n(3497),set:n(3926),equals:n(1077),exactEquals:n(5696),add:n(3197),subtract:n(1040),sub:n(8560),multiply:n(8044),mul:n(8516),divide:n(9737),div:n(6669),min:n(4370),max:n(7484),floor:n(4280),ceil:n(9913),round:n(4622),scale:n(9404),scaleAndAdd:n(8544),distance:n(5055),dist:n(5140),squaredDistance:n(2340),sqrDist:n(3108),length:n(9852),len:n(4001),squaredLength:n(2775),sqrLen:n(9249),negate:n(2926),inverse:n(3346),normalize:n(1205),dot:n(6517),cross:n(6902),lerp:n(1817),random:n(9463),transformMat4:n(9564),transformMat3:n(553),transformQuat:n(4997),rotateX:n(6899),rotateY:n(8028),rotateZ:n(5493),forEach:n(9436)}},3346:function(t){t.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}},4001:function(t,e,n){t.exports=n(9852)},9852:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2];return Math.sqrt(e*e+n*n+i*i)}},1817:function(t){t.exports=function(t,e,n,i){var r=e[0],o=e[1],a=e[2];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t}},7484:function(t){t.exports=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}},4370:function(t){t.exports=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}},8516:function(t,e,n){t.exports=n(8044)},8044:function(t){t.exports=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}},2926:function(t){t.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}},1205:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=n*n+i*i+r*r;o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o);return t}},9463:function(t){t.exports=function(t,e){e=e||1;var n=2*Math.random()*Math.PI,i=2*Math.random()-1,r=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*r,t[1]=Math.sin(n)*r,t[2]=i*e,t}},6899:function(t){t.exports=function(t,e,n,i){var r=n[1],o=n[2],a=e[1]-r,s=e[2]-o,l=Math.sin(i),u=Math.cos(i);return t[0]=e[0],t[1]=r+a*u-s*l,t[2]=o+a*l+s*u,t}},8028:function(t){t.exports=function(t,e,n,i){var r=n[0],o=n[2],a=e[0]-r,s=e[2]-o,l=Math.sin(i),u=Math.cos(i);return t[0]=r+s*l+a*u,t[1]=e[1],t[2]=o+s*u-a*l,t}},5493:function(t){t.exports=function(t,e,n,i){var r=n[0],o=n[1],a=e[0]-r,s=e[1]-o,l=Math.sin(i),u=Math.cos(i);return t[0]=r+a*u-s*l,t[1]=o+a*l+s*u,t[2]=e[2],t}},4622:function(t){t.exports=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}},9404:function(t){t.exports=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}},8544:function(t){t.exports=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t}},3926:function(t){t.exports=function(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t}},3108:function(t,e,n){t.exports=n(2340)},9249:function(t,e,n){t.exports=n(2775)},2340:function(t){t.exports=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}},2775:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}},8560:function(t,e,n){t.exports=n(1040)},1040:function(t){t.exports=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}},553:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t}},9564:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[3]*i+n[7]*r+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*i+n[4]*r+n[8]*o+n[12])/a,t[1]=(n[1]*i+n[5]*r+n[9]*o+n[13])/a,t[2]=(n[2]*i+n[6]*r+n[10]*o+n[14])/a,t}},4997:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2],u=n[3],c=u*i+s*o-l*r,d=u*r+l*i-a*o,h=u*o+a*r-s*i,f=-a*i-s*r-l*o;return t[0]=c*u+f*-a+d*-l-h*-s,t[1]=d*u+f*-s+h*-a-c*-l,t[2]=h*u+f*-l+c*-s-d*-a,t}},2108:function(t){t.exports=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}},7682:function(t){t.exports=function(t){var e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}},9298:function(t){t.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},3071:function(t){t.exports=function(){var t=new Float32Array(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}},5476:function(t){t.exports=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],o=e[3]-t[3];return Math.sqrt(n*n+i*i+r*r+o*o)}},1350:function(t){t.exports=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}},216:function(t){t.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}},8741:function(t){t.exports=function(t,e,n,i){var r=new Float32Array(4);return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}},4663:function(t,e,n){t.exports={create:n(3071),clone:n(7682),fromValues:n(8741),copy:n(9298),set:n(6675),add:n(2108),subtract:n(6919),multiply:n(9363),divide:n(1350),min:n(9271),max:n(2045),scale:n(7705),scaleAndAdd:n(2869),distance:n(5476),squaredDistance:n(6733),length:n(7159),squaredLength:n(2678),negate:n(6977),inverse:n(3095),normalize:n(8308),dot:n(216),lerp:n(2710),random:n(9960),transformMat4:n(8773),transformQuat:n(2508)}},3095:function(t){t.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}},7159:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return Math.sqrt(e*e+n*n+i*i+r*r)}},2710:function(t){t.exports=function(t,e,n,i){var r=e[0],o=e[1],a=e[2],s=e[3];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t[3]=s+i*(n[3]-s),t}},2045:function(t){t.exports=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}},9271:function(t){t.exports=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}},9363:function(t){t.exports=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}},6977:function(t){t.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}},8308:function(t){t.exports=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n*n+i*i+r*r+o*o;a>0&&(a=1/Math.sqrt(a),t[0]=n*a,t[1]=i*a,t[2]=r*a,t[3]=o*a);return t}},9960:function(t,e,n){var i=n(8308),r=n(7705);t.exports=function(t,e){return e=e||1,t[0]=Math.random(),t[1]=Math.random(),t[2]=Math.random(),t[3]=Math.random(),i(t,t),r(t,t,e),t}},7705:function(t){t.exports=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}},2869:function(t){t.exports=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t}},6675:function(t){t.exports=function(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}},6733:function(t){t.exports=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],o=e[3]-t[3];return n*n+i*i+r*r+o*o}},2678:function(t){t.exports=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return e*e+n*n+i*i+r*r}},6919:function(t){t.exports=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}},8773:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3];return t[0]=n[0]*i+n[4]*r+n[8]*o+n[12]*a,t[1]=n[1]*i+n[5]*r+n[9]*o+n[13]*a,t[2]=n[2]*i+n[6]*r+n[10]*o+n[14]*a,t[3]=n[3]*i+n[7]*r+n[11]*o+n[15]*a,t}},2508:function(t){t.exports=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2],u=n[3],c=u*i+s*o-l*r,d=u*r+l*i-a*o,h=u*o+a*r-s*i,f=-a*i-s*r-l*o;return t[0]=c*u+f*-a+d*-l-h*-s,t[1]=d*u+f*-s+h*-a-c*-l,t[2]=h*u+f*-l+c*-s-d*-a,t[3]=e[3],t}},5616:function(t,e){var n;
|
|
32
32
|
/*!
|
|
33
33
|
* jQuery JavaScript Library v3.7.1
|
|
34
34
|
* https://jquery.com/
|