@hpcc-js/map 2.75.2 → 2.75.5
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/README.md +35 -1
- package/dist/index.es6.js +2 -2
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +3 -3
- package/src/__package__.ts +2 -2
- package/types/__package__.d.ts +2 -2
- package/types/__package__.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.min.js
CHANGED
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
19
|
PERFORMANCE OF THIS SOFTWARE.
|
|
20
20
|
***************************************************************************** */
|
|
21
|
-
var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},57:(t,e,n)=>{n.d(e,{M:()=>b});var i=n(62),o=n(402),r=n.n(o),a=n(36),s=n.n(a),l=n(793),h=n.n(l),u=n(892),c=n.n(u),p=n(173),d=n.n(p),f=n(464),_=n.n(f),m=n(282),g={};g.styleTagTransform=_(),g.setAttributes=c(),g.insert=h().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=d(),r()(m.Z,g),m.Z&&m.Z.locals&&m.Z.locals;var y={iconColor:"#1EB300",iconAnchor:{marker:[14,34],circle:[11,10],"circle-dot":[5,5],"rectangle-dot":[5,6],doughnut:[8,8]},popupAnchor:{marker:[0,-25],circle:[-3,-76],"circle-dot":[0,-2],"rectangle-dot":[0,-2],doughnut:[0,-2]},innerIconAnchor:{marker:[-2,5],circle:[0,2]},iconSize:{marker:[28,28],circle:[22,22],"circle-dot":[2,2],"rectangle-dot":[2,2],doughnut:[15,15]}},v=i.Icon.extend({options:{icon:"leaf",iconSize:y.iconSize.circle,iconAnchor:y.iconAnchor.marker,iconShape:"marker",iconStyle:"",innerIconAnchor:[0,3],innerIconStyle:"",isAlphaNumericIcon:!1,text:1,borderColor:y.iconColor,borderWidth:2,borderStyle:"solid",backgroundColor:"white",textColor:y.iconColor,customClasses:"",spin:!1,prefix:"fa",html:""},initialize:function(t){this.applyDefaults(t),this.options=t&&t.html?t:i.Util.setOptions(this,t)},applyDefaults:function(t){t&&(!t.iconSize&&t.iconShape&&(t.iconSize=y.iconSize[t.iconShape]),!t.iconAnchor&&t.iconShape&&(t.iconAnchor=y.iconAnchor[t.iconShape]),!t.popupAnchor&&t.iconShape&&(t.popupAnchor=y.popupAnchor[t.iconShape]),t.innerIconAnchor||"circle"!==t.iconShape&&"marker"!==t.iconShape||("circle"===t.iconShape&&t.isAlphaNumericIcon?t.innerIconAnchor=[0,-1]:"marker"!==t.iconShape||t.isAlphaNumericIcon||(t.innerIconAnchor=y.innerIconAnchor[t.iconShape])))},createIcon:function(){var t=document.createElement("div"),e=this.options;if(t.innerHTML=e.html?e.html:this.createIconInnerHtml(),this._setIconStyles(t),"marker"===this.options.iconShape){var n=document.createElement("div");return n.className="beautify-marker"+(e.props.owner._currSelRow===e.props.row?" selected":""),n.appendChild(t),n}return t},createIconInnerHtml:function(){var t=this.options;if("circle-dot"===t.iconShape||"rectangle-dot"===t.iconShape||"doughnut"===t.iconShape)return"";var e=this.getInnerIconStyle(t);if(t.isAlphaNumericIcon)return'<div style="'+e+'">'+t.text+"</div>";var n="";return t.spin&&(n=" fa-spin"),'<i class="'+t.prefix+" "+t.icon+n+'" style="'+e+'"></i>'},getInnerIconStyle:function(t){var e=(0,i.point)(t.innerIconAnchor);return"color:"+t.textColor+";margin-top:"+e.y+"px; margin-left:"+e.x+"px;"+t.innerIconStyle},_setIconStyles:function(t){var e=this.options,n=(0,i.point)(e.iconSize),o=(0,i.point)(e.iconAnchor);if(t.className="beautify-marker ",e.iconShape&&(t.className+=e.iconShape),e.customClasses&&(t.className+=" "+e.customClasses),t.style.backgroundColor=e.backgroundColor,t.style.color=e.textColor,t.style.borderColor=e.borderColor,t.style.borderWidth=e.borderWidth+"px",t.style.borderStyle=e.borderStyle,n&&(t.style.width=n.x+"px",t.style.height=n.y+"px"),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),e.iconStyle){var r=t.getAttribute("style");r+=e.iconStyle,t.setAttribute("style",r)}}});function b(t){return new v(t)}},132:(t,e,n)=>{n.d(e,{F:()=>He,c:()=>Ue});var i=n(163);function o(t){return t}function r(t,e){t&&s.hasOwnProperty(t.type)&&s[t.type](t,e)}var a={Feature:function(t,e){r(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,o=n.length;++i<o;)r(n[i].geometry,e)}},s={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,i=-1,o=n.length;++i<o;)t=n[i],e.point(t[0],t[1],t[2])},LineString:function(t,e){l(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,i=-1,o=n.length;++i<o;)l(n[i],e,0)},Polygon:function(t,e){h(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,i=-1,o=n.length;++i<o;)h(n[i],e)},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,o=n.length;++i<o;)r(n[i],e)}};function l(t,e,n){var i,o=-1,r=t.length-n;for(e.lineStart();++o<r;)i=t[o],e.point(i[0],i[1],i[2]);e.lineEnd()}function h(t,e){var n=-1,i=t.length;for(e.polygonStart();++n<i;)l(t[n],e,1);e.polygonEnd()}function u(t,e){t&&a.hasOwnProperty(t.type)?a[t.type](t,e):r(t,e)}function c(){return new p}function p(){this.reset()}p.prototype={constructor:p,reset:function(){this.s=this.t=0},add:function(t){f(d,t,this.t),f(this,d.s,this.s),this.s?this.t+=d.t:this.s=d.t},valueOf:function(){return this.s}};var d=new p;function f(t,e,n){var i=t.s=e+n,o=i-e,r=i-o;t.t=e-r+(n-o)}var _=2*Math.PI,m=Math.abs,g=Math.sqrt;function y(){}var v,b,L,w,x=c(),k=c(),M={point:y,lineStart:y,lineEnd:y,polygonStart:function(){M.lineStart=C,M.lineEnd=T},polygonEnd:function(){M.lineStart=M.lineEnd=M.point=y,x.add(m(k)),k.reset()},result:function(){var t=x/2;return x.reset(),t}};function C(){M.point=P}function P(t,e){M.point=E,v=L=t,b=w=e}function E(t,e){k.add(w*t-L*e),L=t,w=e}function T(){E(v,b)}const S=M;var z=1/0,O=z,D=-z,A=D,I={point:function(t,e){t<z&&(z=t),t>D&&(D=t),e<O&&(O=e),e>A&&(A=e)},lineStart:y,lineEnd:y,polygonStart:y,polygonEnd:y,result:function(){var t=[[z,O],[D,A]];return D=A=-(O=z=1/0),t}};const B=I;var N,Z,R,j,G=0,U=0,H=0,F=0,W=0,V=0,q=0,Y=0,K=0,X={point:J,lineStart:Q,lineEnd:et,polygonStart:function(){X.lineStart=nt,X.lineEnd=it},polygonEnd:function(){X.point=J,X.lineStart=Q,X.lineEnd=et},result:function(){var t=K?[q/K,Y/K]:V?[F/V,W/V]:H?[G/H,U/H]:[NaN,NaN];return G=U=H=F=W=V=q=Y=K=0,t}};function J(t,e){G+=t,U+=e,++H}function Q(){X.point=$}function $(t,e){X.point=tt,J(R=t,j=e)}function tt(t,e){var n=t-R,i=e-j,o=g(n*n+i*i);F+=o*(R+t)/2,W+=o*(j+e)/2,V+=o,J(R=t,j=e)}function et(){X.point=J}function nt(){X.point=ot}function it(){rt(N,Z)}function ot(t,e){X.point=rt,J(N=R=t,Z=j=e)}function rt(t,e){var n=t-R,i=e-j,o=g(n*n+i*i);F+=o*(R+t)/2,W+=o*(j+e)/2,V+=o,q+=(o=j*t-R*e)*(R+t),Y+=o*(j+e),K+=3*o,J(R=t,j=e)}const at=X;function st(t){this._context=t}st.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,_)}},result:y};var lt,ht,ut,ct,pt,dt=c(),ft={point:y,lineStart:function(){ft.point=_t},lineEnd:function(){lt&&mt(ht,ut),ft.point=y},polygonStart:function(){lt=!0},polygonEnd:function(){lt=null},result:function(){var t=+dt;return dt.reset(),t}};function _t(t,e){ft.point=mt,ht=ct=t,ut=pt=e}function mt(t,e){ct-=t,pt-=e,dt.add(g(ct*ct+pt*pt)),ct=t,pt=e}const gt=ft;function yt(){this._string=[]}function vt(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function bt(t){return function(e){var n=new Lt;for(var i in t)n[i]=t[i];return n.stream=e,n}}function Lt(){}function wt(){}function xt(t){return null==t?wt:function(){return this.querySelector(t)}}function kt(){return[]}function Mt(t){return new Array(t.length)}function Ct(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Pt(t,e,n,i,o,r){for(var a,s=0,l=e.length,h=r.length;s<h;++s)(a=e[s])?(a.__data__=r[s],i[s]=a):n[s]=new Ct(t,r[s]);for(;s<l;++s)(a=e[s])&&(o[s]=a)}function Et(t,e,n,i,o,r,a){var s,l,h,u={},c=e.length,p=r.length,d=new Array(c);for(s=0;s<c;++s)(l=e[s])&&(d[s]=h="$"+a.call(l,l.__data__,s,e),h in u?o[s]=l:u[h]=l);for(s=0;s<p;++s)(l=u[h="$"+a.call(t,r[s],s,r)])?(i[s]=l,l.__data__=r[s],u[h]=null):n[s]=new Ct(t,r[s]);for(s=0;s<c;++s)(l=e[s])&&u[d[s]]===l&&(o[s]=l)}function Tt(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}yt.prototype={_radius:4.5,_circle:vt(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=vt(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Lt.prototype={constructor:Lt,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},Ct.prototype={constructor:Ct,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var St="http://www.w3.org/1999/xhtml";const zt={svg:"http://www.w3.org/2000/svg",xhtml:St,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ot(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),zt.hasOwnProperty(e)?{space:zt[e],local:t}:t}function Dt(t){return function(){this.removeAttribute(t)}}function At(t){return function(){this.removeAttributeNS(t.space,t.local)}}function It(t,e){return function(){this.setAttribute(t,e)}}function Bt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Nt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Zt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Rt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function jt(t){return function(){this.style.removeProperty(t)}}function Gt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ut(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Ht(t,e){return t.style.getPropertyValue(e)||Rt(t).getComputedStyle(t,null).getPropertyValue(e)}function Ft(t){return function(){delete this[t]}}function Wt(t,e){return function(){this[t]=e}}function Vt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function qt(t){return t.trim().split(/^|\s+/)}function Yt(t){return t.classList||new Kt(t)}function Kt(t){this._node=t,this._names=qt(t.getAttribute("class")||"")}function Xt(t,e){for(var n=Yt(t),i=-1,o=e.length;++i<o;)n.add(e[i])}function Jt(t,e){for(var n=Yt(t),i=-1,o=e.length;++i<o;)n.remove(e[i])}function Qt(t){return function(){Xt(this,t)}}function $t(t){return function(){Jt(this,t)}}function te(t,e){return function(){(e.apply(this,arguments)?Xt:Jt)(this,t)}}function ee(){this.textContent=""}function ne(t){return function(){this.textContent=t}}function ie(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function oe(){this.innerHTML=""}function re(t){return function(){this.innerHTML=t}}function ae(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function se(){this.nextSibling&&this.parentNode.appendChild(this)}function le(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function he(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===St&&e.documentElement.namespaceURI===St?e.createElement(t):e.createElementNS(n,t)}}function ue(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ce(t){var e=Ot(t);return(e.local?ue:he)(e)}function pe(){return null}function de(){var t=this.parentNode;t&&t.removeChild(this)}function fe(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function _e(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}Kt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var me={};function ge(t,e,n){return t=ye(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function ye(t,e,n){return function(i){try{t.call(this,this.__data__,e,n)}finally{}}}function ve(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function be(t){return function(){var e=this.__on;if(e){for(var n,i=0,o=-1,r=e.length;i<r;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++o]=n:this.removeEventListener(n.type,n.listener,n.capture);++o?e.length=o:delete this.__on}}}function Le(t,e,n){var i=me.hasOwnProperty(t.type)?ge:ye;return function(o,r,a){var s,l=this.__on,h=i(e,r,a);if(l)for(var u=0,c=l.length;u<c;++u)if((s=l[u]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=h,s.capture=n),void(s.value=e);this.addEventListener(t.type,h,n),s={type:t.type,name:t.name,value:e,listener:h,capture:n},l?l.push(s):this.__on=[s]}}function we(t,e,n){var i=Rt(t),o=i.CustomEvent;"function"==typeof o?o=new o(e,n):(o=i.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function xe(t,e){return function(){return we(this,t,e)}}function ke(t,e){return function(){return we(this,t,e.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(me={mouseenter:"mouseover",mouseleave:"mouseout"}));var Me=[null];function Ce(t,e){this._groups=t,this._parents=e}Ce.prototype={constructor:Ce,select:function(t){"function"!=typeof t&&(t=xt(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var r,a,s=e[o],l=s.length,h=i[o]=new Array(l),u=0;u<l;++u)(r=s[u])&&(a=t.call(r,r.__data__,u,s))&&("__data__"in r&&(a.__data__=r.__data__),h[u]=a);return new Ce(i,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=function(t){return null==t?kt:function(){return this.querySelectorAll(t)}}(t));for(var e=this._groups,n=e.length,i=[],o=[],r=0;r<n;++r)for(var a,s=e[r],l=s.length,h=0;h<l;++h)(a=s[h])&&(i.push(t.call(a,a.__data__,h,s)),o.push(a));return new Ce(i,o)},filter:function(t){"function"!=typeof t&&(t=function(t){return function(){return this.matches(t)}}(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var r,a=e[o],s=a.length,l=i[o]=[],h=0;h<s;++h)(r=a[h])&&t.call(r,r.__data__,h,a)&&l.push(r);return new Ce(i,this._parents)},data:function(t,e){if(!t)return f=new Array(this.size()),u=-1,this.each((function(t){f[++u]=t})),f;var n,i=e?Et:Pt,o=this._parents,r=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=r.length,s=new Array(a),l=new Array(a),h=new Array(a),u=0;u<a;++u){var c=o[u],p=r[u],d=p.length,f=t.call(c,c&&c.__data__,u,o),_=f.length,m=l[u]=new Array(_),g=s[u]=new Array(_);i(c,p,m,g,h[u]=new Array(d),f,e);for(var y,v,b=0,L=0;b<_;++b)if(y=m[b]){for(b>=L&&(L=b+1);!(v=g[L])&&++L<_;);y._next=v||null}}return(s=new Ce(s,o))._enter=l,s._exit=h,s},enter:function(){return new Ce(this._enter||this._groups.map(Mt),this._parents)},exit:function(){return new Ce(this._exit||this._groups.map(Mt),this._parents)},join:function(t,e,n){var i=this.enter(),o=this,r=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=e&&(o=e(o)),null==n?r.remove():n(r),i&&o?i.merge(o).order():o},merge:function(t){for(var e=this._groups,n=t._groups,i=e.length,o=n.length,r=Math.min(i,o),a=new Array(i),s=0;s<r;++s)for(var l,h=e[s],u=n[s],c=h.length,p=a[s]=new Array(c),d=0;d<c;++d)(l=h[d]||u[d])&&(p[d]=l);for(;s<i;++s)a[s]=e[s];return new Ce(a,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,o=t[e],r=o.length-1,a=o[r];--r>=0;)(i=o[r])&&(a&&4^i.compareDocumentPosition(a)&&a.parentNode.insertBefore(i,a),a=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Tt);for(var n=this._groups,i=n.length,o=new Array(i),r=0;r<i;++r){for(var a,s=n[r],l=s.length,h=o[r]=new Array(l),u=0;u<l;++u)(a=s[u])&&(h[u]=a);h.sort(e)}return new Ce(o,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],o=0,r=i.length;o<r;++o){var a=i[o];if(a)return a}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var o,r=e[n],a=0,s=r.length;a<s;++a)(o=r[a])&&t.call(o,o.__data__,a,r);return this},attr:function(t,e){var n=Ot(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?At:Dt:"function"==typeof e?n.local?Zt:Nt:n.local?Bt:It)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?jt:"function"==typeof e?Ut:Gt)(t,e,null==n?"":n)):Ht(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Ft:"function"==typeof e?Vt:Wt)(t,e)):this.node()[t]},classed:function(t,e){var n=qt(t+"");if(arguments.length<2){for(var i=Yt(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1;return!0}return this.each(("function"==typeof e?te:e?Qt:$t)(n,e))},text:function(t){return arguments.length?this.each(null==t?ee:("function"==typeof t?ie:ne)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?oe:("function"==typeof t?ae:re)(t)):this.node().innerHTML},raise:function(){return this.each(se)},lower:function(){return this.each(le)},append:function(t){var e="function"==typeof t?t:ce(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:ce(t),i=null==e?pe:"function"==typeof e?e:xt(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(de)},clone:function(t){return this.select(t?_e:fe)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,o,r=ve(t+""),a=r.length;if(!(arguments.length<2)){for(s=e?Le:be,null==n&&(n=!1),i=0;i<a;++i)this.each(s(r[i],e,n));return this}var s=this.node().__on;if(s)for(var l,h=0,u=s.length;h<u;++h)for(i=0,l=s[h];i<a;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?ke:xe)(t,e))}};var Pe=n(62),Ee=n(402),Te=n.n(Ee),Se=n(36),ze=n.n(Se),Oe=n(793),De=n.n(Oe),Ae=n(892),Ie=n.n(Ae),Be=n(173),Ne=n.n(Be),Ze=n(464),Re=n.n(Ze),je=n(958),Ge={};Ge.styleTagTransform=Re(),Ge.setAttributes=Ie(),Ge.insert=De().bind(null,"head"),Ge.domAPI=ze(),Ge.insertStyleElement=Ne(),Te()(je.Z,Ge),je.Z&&je.Z.locals&&je.Z.locals;var Ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e}(Pe.Layer),He=function(t){function e(e){void 0===e&&(e={});var n=t.call(this)||this;return n._options(e),n}return(0,i.ZT)(e,t),e.prototype.svg=function(){return this._rootGroup},e.prototype.drawCallback=function(t){return arguments.length?(this._drawCallback=t,this):this._drawCallback},e.prototype.getBounds=function(){if(!this.selection||!this.projection)return new Pe.LatLngBounds([-90,-180],[90,180]);var t,e,n=this.selection.node().getBBox();try{t=this.projection.layerPointToLatLng(new Pe.Point(n.x,n.y+n.height))}catch(e){t=[-90,-180]}try{e=this.projection.layerPointToLatLng(new Pe.Point(n.x+n.width,n.y))}catch(t){e=[90,180]}return new Pe.LatLngBounds(t,e)},e.prototype._undef=function(t){return void 0===t},e.prototype._options=function(t){return this._undef(t)?this.options:(t.zoomHide=!this._undef(t.zoomHide)&&t.zoomHide,t.zoomDraw=!!this._undef(t.zoomDraw)||t.zoomDraw,this.options=t)},e.prototype.draw=function(){this.map&&this._drawCallback&&(this.projection.metresPerPixel=40075016.686*Math.abs(Math.cos(this.map.getCenter().lat*Math.PI/180))/Math.pow(2,this.map.getZoom()+8)*this.projection.scale,this._drawCallback(this.selection,this.projection,this.map.getZoom()))},e.prototype._zoomChange=function(t){var e=this._undef(t.zoom)?this.map._zoom:t.zoom;this._zoomDiff=e-this._zoom,this._scale=Math.pow(2,this._zoomDiff),this.projection.scale=this._scale,this._shift=this.map.latLngToLayerPoint(this._wgsOrigin)._subtract(this._wgsInitialShift.multiplyBy(this._scale));var n=["translate(",this._shift.x,",",this._shift.y,") "],i=["scale(",this._scale,",",this._scale,") "];this._rootGroup.attr("transform",n.concat(i).join("")),this.options.zoomDraw&&this.draw()},e.prototype.onAdd=function(t){this.map=t;var e=this;return this._svg=Pe.svg(),t.addLayer(this._svg),this._rootGroup=function(t){return"string"==typeof t?new Ce([[document.querySelector(t)]],[document.documentElement]):new Ce([[t]],Me)}(this._svg._rootGroup).classed("d3-overlay",!0),this._rootGroup.classed("leaflet-zoom-hide",this.options.zoomHide),this.selection=this._rootGroup,this._pixelOrigin=t.getPixelOrigin(),this._wgsOrigin=Pe.latLng([0,0]),this._wgsInitialShift=this.map.latLngToLayerPoint(this._wgsOrigin),this._zoom=this.map.getZoom(),this._shift=Pe.point(0,0),this._scale=1,this.projection={latLngToLayerPoint:function(t,n){return n=e._undef(n)?e._zoom:n,e.map.project(Pe.latLng(t),n)._subtract(e._pixelOrigin)},layerPointToLatLng:function(t,n){n=e._undef(n)?e._zoom:n;var i=Pe.point(t).add(e._pixelOrigin);return e.map.unproject(i,n)},unitsPerMeter:256*Math.pow(2,e._zoom)/40075017,metresPerPixel:40075016.686*Math.abs(Math.cos(t.getCenter().lat*Math.PI/180))/Math.pow(2,t.getZoom()+8),map:e.map,layer:e,scale:1},this.projection._projectPoint=function(t,n){var i=e.projection.latLngToLayerPoint(new Pe.LatLng(n,t));this.stream.point(i.x,i.y)},this.projection.pathFromGeojson=function(t,e){var n,i,r=4.5;function a(t){return t&&("function"==typeof r&&i.pointRadius(+r.apply(this,arguments)),u(t,n(i))),i.result()}return a.area=function(t){return u(t,n(S)),S.result()},a.measure=function(t){return u(t,n(gt)),gt.result()},a.bounds=function(t){return u(t,n(B)),B.result()},a.centroid=function(t){return u(t,n(at)),at.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,o):(t=e).stream,a):t},a.context=function(t){return arguments.length?(i=null==t?(e=null,new yt):new st(e=t),"function"!=typeof r&&i.pointRadius(r),a):e},a.pointRadius=function(t){return arguments.length?(r="function"==typeof t?t:(i.pointRadius(+t),+t),a):r},a.projection(t).context(e)}().projection({stream:bt({point:this.projection._projectPoint})}),this.projection.latLngToLayerFloatPoint=this.projection.latLngToLayerPoint,this.projection.getZoom=this.map.getZoom.bind(this.map),this.projection.getBounds=this.map.getBounds.bind(this.map),this.selection=this._rootGroup,this.draw(),this},e.prototype.getEvents=function(){return{zoomend:this._zoomChange,viewreset:this._zoomChange}},e.prototype.onRemove=function(t){return this._svg.remove(),this},e.prototype.addTo=function(t){return t.addLayer(this),this},e}(Ue)},22:(t,e,n)=>{n.d(e,{O:()=>l,c:()=>h});var i=n(163),o=n(62),r=n(10),a=n.n(r),s=window.simpleheat||r&&a()||r,l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e}(o.Layer),h=function(t){function e(e,n){void 0===n&&(n={});var i=t.call(this,n)||this;return i._latlngs=e,i}return(0,i.ZT)(e,t),e.prototype.initialize=function(t){this.setOptions(t)},e.prototype.setLatLngs=function(t){return this._latlngs=t,this.redraw()},e.prototype.addLatLng=function(t){return this._latlngs.push(t),this.redraw()},e.prototype.setOptions=function(t){return this.options=t,this._heat&&this._updateOptions(),this.redraw()},e.prototype.redraw=function(){return!this._heat||this._frame||this._map._animating||(this._frame=o.Util.requestAnimFrame(this._redraw,this)),this},e.prototype.onAdd=function(t){return this._map=t,this._canvas||this._initCanvas(),t._panes.overlayPane.appendChild(this._canvas),t.on("moveend",this._reset,this),t.options.zoomAnimation&&o.Browser.any3d&&t.on("zoomanim",this._animateZoom,this),this._reset(),this},e.prototype.onRemove=function(t){return t.getPanes().overlayPane.removeChild(this._canvas),t.off("moveend",this._reset,this),t.options.zoomAnimation&&t.off("zoomanim",this._animateZoom,this),this},e.prototype.addTo=function(t){return t.addLayer(this),this},e.prototype._initCanvas=function(){var t=this._canvas=o.DomUtil.create("canvas","leaflet-heatmap-layer leaflet-layer"),e=o.DomUtil.testProp(["transformOrigin","WebkitTransformOrigin","msTransformOrigin"]);t.style[e]="50% 50%";var n=this._map.getSize();t.width=n.x,t.height=n.y;var i=this._map.options.zoomAnimation&&o.Browser.any3d;o.DomUtil.addClass(t,"leaflet-zoom-"+(i?"animated":"hide")),this._heat=s(t),this._updateOptions()},e.prototype._updateOptions=function(){this._heat.radius(this.options.radius||this._heat.defaultRadius,this.options.blur),this.options.gradient&&this._heat.gradient(this.options.gradient),this.options.max&&this._heat.max(this.options.max)},e.prototype._reset=function(){var t=this._map.containerPointToLayerPoint([0,0]);o.DomUtil.setPosition(this._canvas,t);var e=this._map.getSize();this._heat._width!==e.x&&(this._canvas.width=this._heat._width=e.x),this._heat._height!==e.y&&(this._canvas.height=this._heat._height=e.y),this._redraw()},e.prototype._redraw=function(){var t,e,n,i,r,a,s,l,h,u=[],c=this._heat._r,p=this._map.getSize(),d=new o.Bounds(o.point([-c,-c]),p.add([c,c])),f=void 0===this.options.max?1:this.options.max,_=void 0===this.options.maxZoom?this._map.getMaxZoom():this.options.maxZoom,m=1/Math.pow(2,Math.max(0,Math.min(_-this._map.getZoom(),12))),g=c/2,y=[],v=this._map._getMapPanePos(),b=v.x%g,L=v.y%g;for(t=0,e=this._latlngs.length;t<e;t++)n=this._map.latLngToContainerPoint(this._latlngs[t]),d.contains(n)&&(r=Math.floor((n.x-b)/g)+2,a=Math.floor((n.y-L)/g)+2,h=(void 0!==this._latlngs[t].alt?this._latlngs[t].alt:void 0!==this._latlngs[t][2]?+this._latlngs[t][2]:1)*m,y[a]=y[a]||[],(i=y[a][r])?(i[0]=(i[0]*i[2]+n.x*h)/(i[2]+h),i[1]=(i[1]*i[2]+n.y*h)/(i[2]+h),i[2]+=h):y[a][r]=[n.x,n.y,h]);for(t=0,e=y.length;t<e;t++)if(y[t])for(s=0,l=y[t].length;s<l;s++)(i=y[t][s])&&u.push([Math.round(i[0]),Math.round(i[1]),Math.min(i[2],f)]);this._heat.data(u).draw(this.options.minOpacity),this._frame=null},e.prototype._animateZoom=function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._getCenterOffset(t.center)._multiplyBy(-e).subtract(this._map._getMapPanePos());o.DomUtil.setTransform?o.DomUtil.setTransform(this._canvas,n,e):this._canvas.style[o.DomUtil.TRANSFORM]=o.DomUtil.getTranslateString(n)+" scale("+e+")"},e}(l)},856:(t,e,n)=>{t.exports=n.p+"c6e9c007f41bd4d26c20.png"},614:(t,e,n)=>{t.exports=n.p+"44b38a404dec4643c46b.png"},39:(t,e,n)=>{t.exports=n.p+"194137260531ee29a5f2.svg"},555:(t,e,n)=>{t.exports=n.p+"4a4ee777ddc0d4cedee4.png"},212:(t,e,n)=>{t.exports=n.p+"011a678e3efe41981754.png"},758:(t,e,n)=>{t.exports=n.p+"1e8408af1a34bdf61457.png"}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var r=e[i]={id:i,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.exports}n.m=t,n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.p="dist/",n.b=document.baseURI||self.location.href;var i={};return(()=>{n.r(i),n.d(i,{BeautifyIcon:()=>r.M,D3SvgOverlay:()=>a.F,Draw:()=>h,GoogleMutant:()=>o.GoogleMutant,HeatLayer:()=>s.c,LeafletLayer:()=>a.c,LeafletLayer2:()=>s.O,MarkerClusterGroup:()=>l});var t=n(62),e={};for(const n in t)["default","GoogleMutant","MarkerClusterGroup","Draw"].indexOf(n)<0&&(e[n]=()=>t[n]);n.d(i,e),n(72),n(325),n(684),n(298),n(738),n(152);var o=n(290),r=n(57),a=n(132),s=n(22),l=t.MarkerClusterGroup,h=t.Draw})(),i})()},t.exports=n()}(Er);var Tr=function(t){function e(e){var n=t.call(this)||this;return n._layer=new Er.exports.FeatureGroup,n._crs=Er.exports.CRS.EPSG3857,n._layer.__hpcc_layer=n,n}return h(e,t),e.prototype.crs=function(){return this._crs},e.prototype.attribution=function(){return""},e.prototype.clear=function(){this._layer.clearLayers()},e.prototype.add=function(t){this._layer.addLayer(t)},e.prototype.init=function(){return this._initPromise||(this._initPromise=Promise.resolve()),this._initPromise},e.prototype.hasBounds=function(){return!1},e.prototype.getBounds=function(){return this._layer.getBounds()},e.prototype.layerEnter=function(t){t.addLayer(this._layer)},e.prototype.layerUpdate=function(t){},e.prototype.layerExit=function(t){this._layer.clearLayers(),t.removeLayer(this._layer)},e.prototype.zoomEnd=function(t){},e.prototype.moveEnd=function(t){},e.prototype.viewReset=function(t){},e}(e.Widget),Sr=go("Albers").scale(.5),zr=go("AlbersUsaPr").scale(.5),Or={project:function(t){var e=zr([t.lng,t.lat]);return e||(e=Sr([t.lng,t.lat])),new Er.exports.Point(e[0],e[1])},unproject:function(t){if(isNaN(t.x)||isNaN(t.y))return new Er.exports.LatLng(0,0);var e=Sr.invert([t.x,t.y]);return new Er.exports.LatLng(e[1],e[0])}},Dr=Er.exports.Util.extend({},Er.exports.CRS,{projection:Or,transformation:new Er.exports.Transformation(1,0,1,0),infinite:!0}),Ar=function(t){function e(){var e=t.call(this)||this;return e._crs=Dr,e}return h(e,t),e.prototype.hasBounds=function(){return!0},e.prototype.getBounds=function(){return new Er.exports.LatLngBounds([20,-123],[49,-64])},e}(Tr);Ar.prototype._class+=" map_AlbersLayer";var Ir=function(t){function e(){return t.call(this)||this}return h(e,t),e}(Tr);Ir.prototype._class+=" map_BlankLayer";var Br=function(t){function e(){return t.call(this)||this}return h(e,t),e.prototype.init=function(){return this._initPromise||(this._initPromise=rr()),this._initPromise},e.prototype.attribution=function(){return window.__hpcc_gmap_apikey?"":"DEVELOPER USE ONLY (@hpcc-js)"},e.prototype.getMaxZoom=function(){return 23},e.prototype.layerEnter=function(e){t.prototype.layerEnter.call(this,e),this.add(new Er.exports.GoogleMutant({type:"roadmap",styles:this.googleMapStyles()}))},e}(Tr);Br.prototype._class+=" map_GMapLayer",Br.prototype.publish("googleMapStyles",{},"object","Styling for map colors etc",null,{tags:["Basic"]});var Nr=function(t){function e(){return t.call(this)||this}return h(e,t),e.prototype.attribution=function(){return window.__hpcc_mapbox_apikey?"":"DEVELOPER USE ONLY (@hpcc-js)"},e.prototype.getMaxZoom=function(){return 18},e.prototype.layerEnter=function(e){t.prototype.layerEnter.call(this,e),window.__hpcc_mapbox_apikey||console.warn("__hpcc_mapbox_apikey does not contain a valid API key, reverting to developers key (expect limited performance)");var n=window.__hpcc_mapbox_apikey||"pk.eyJ1IjoibGVzY2htb28iLCJhIjoiY2psY2FqY3l3MDhqNDN3cDl1MzFmZnkwcCJ9.HRoFwmz1j80gyz18ruggqw";this.add(new Er.exports.TileLayer("https://api.mapbox.com/styles/v1/mapbox/{id}/tiles/{z}/{x}/{y}?access_token=".concat(n),{attribution:'Map data © <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',maxZoom:18,id:"streets-v11",accessToken:n}))},e}(Tr);Nr.prototype._class+=" map_MapBoxLayer";var Zr=function(t){function e(){return t.call(this)||this}return h(e,t),e.prototype.attribution=function(){return""},e.prototype.getMaxZoom=function(){return 18},e.prototype.layerEnter=function(e){t.prototype.layerEnter.call(this,e),this.add(new Er.exports.TileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'Map data © <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',maxZoom:18,id:"open.streets"}))},e}(Tr);Zr.prototype._class+=" map_MapBoxLayer";yo(".map_Leaflet .leaflet-container{background-color:rgba(255,0,0,0);background:rgba(255,0,0,0)}");var Rr=function(t){function n(){var n=t.call(this)||this;return n._iconBar=(new e.IconBar).buttons([(new e.Button).faChar("fa-plus").tooltip("Zoom in").on("click",(function(){n.zoomPlus()})),(new e.Button).faChar("fa-minus").tooltip("Zoom out").on("click",(function(){n.zoomMinus()})),new e.Spacer,(new e.Button).faChar("fa-arrows-alt").tooltip("Zoom to fit").on("click",(function(){n.zoomToFit()}))]),n._blankLayer=new Ir,n._albersLayer=new Ar,n._mapBoxLayer=new Nr,n._openStreetLayer=new Zr,n._gmapLayer=new Br,n.baseLayer(),n}return h(n,t),n.prototype.zoom=function(){return this._leafletMap.getZoom()},n.prototype.zoomPlus=function(){this._leafletMap.zoomIn()},n.prototype.zoomMinus=function(){this._leafletMap.zoomOut()},n.prototype.zoomToDefault=function(){this._leafletMap.flyTo({lat:this.defaultLat(),lng:this.defaultLong()},this.defaultZoom(),{animate:!1})},n.prototype.zoomToFit=function(){var t;"AlbersPR"===this.mapType()?t=this._albersLayer.getBounds():this.layers().filter((function(t){return t.hasBounds()})).forEach((function(e){t?t.extend(e.getBounds()):t=e.getBounds()})),t&&t.isValid()?this._leafletMap.fitBounds(t,{maxZoom:14}):this.zoomToDefault()},n.prototype.syncLayers=function(t,e,n){var i=this,o=c([],t,!0),r=[],a=[];this._leafletMap.eachLayer((function(t){var e=o.indexOf(t.__hpcc_layer);e>=0?(r.push(t.__hpcc_layer),o.splice(e,1)):t.__hpcc_layer&&a.push(t.__hpcc_layer)})),o.forEach((function(t){t.layerEnter(i._leafletMap),t.layerUpdate(i._leafletMap)})),r.forEach((function(t){t.layerUpdate(i._leafletMap)})),a.forEach((function(t){t.layerExit(i._leafletMap)}))},n.prototype.isLayer=function(){return void 0!==this._owner&&this._owner!==this},n.prototype.baseLayer=function(){switch(this.mapType()){case"AlbersPR":this.map(this._albersLayer);break;case"MapBox":this.map(this._mapBoxLayer);break;case"OpenStreet":this.map(this._openStreetLayer);break;case"Google":this.map(this._gmapLayer);break;default:this.map(this._blankLayer)}return this.map()},n.prototype.enter=function(e,n){t.prototype.enter.call(this,e,n),n.style("position","relative"),this._leafletElement=n.append("div").style("position","absolute").style("width","".concat(this.width(),"px")).style("height","".concat(this.height(),"px")),this._iconBar.target(e)},n.prototype.update=function(e,n){var i=this;t.prototype.update.call(this,e,n),this._leafletElement.style("width","".concat(this.width(),"px")).style("height","".concat(this.height(),"px"));var o=this.baseLayer();this._prevCRS!==o.crs()&&(this._prevCRS=o.crs(),this._leafletMap&&(this.syncLayers([],e,n),this._leafletMap.remove(),this._leafletElement.html("")),this._leafletMap=new Er.exports.Map(this._leafletElement.node(),{trackResize:!1,zoomControl:!1,zoomSnap:"AlbersPR"===this.mapType()?.1:1,crs:o.crs(),maxZoom:o.getMaxZoom?o.getMaxZoom():18}),this._leafletMap.setView([this.defaultLat(),this.defaultLong()],this.defaultZoom()),this._leafletMap.attributionControl.setPrefix(o.attribution()),this._leafletMap.on("zoomend",(function(t){return i.layers().forEach((function(e){return e.zoomEnd(t)}))})),this._leafletMap.on("moveend",(function(t){return i.layers().forEach((function(e){return e.moveEnd(t)}))})),this._leafletMap.on("viewreset",(function(t){return i.layers().forEach((function(e){return e.viewReset(t)}))})),this._renderCount=0),this.syncLayers(c([o],this.layers(),!0),e,n),this._leafletMap.invalidateSize(),this.autoZoomToFit()&&this._leafletMap.whenReady((function(){this.zoomToFit()}),this),this._iconBar.visible(this.showToolbar()).render((function(t){var e=t.getBBox();t.element().style("z-index",5e3).style("left","".concat(i.width()-e.width-4,"px"))}))},n.prototype.exit=function(e,n){this._iconBar.target(null),t.prototype.exit.call(this,e,n)},n.prototype.render=function(e){var n=this,i=c([this.baseLayer().init()],this.layers().map((function(t){return t.init()})),!0);return Promise.all(i).then((function(){t.prototype.render.call(n,e)})),this},n}(e.HTMLWidget);Rr.prototype._class+=" map_Leaflet",Rr.prototype.publish("showToolbar",!0,"boolean","Show toolbar",void 0,{hidden:function(t){return t.isLayer()}}),Rr.prototype.publish("mapType","Google","set","Base Layer Type",["None","AlbersPR","MapBox","OpenStreet","Google"],{hidden:function(t){return t.isLayer()}}),Rr.prototype.publish("map",null,"widget","Base Layer",void 0,{internal:!0}),Rr.prototype.publish("layers",[],"propertyArray","Layers",void 0,{hidden:function(t){return t.isLayer()}}),Rr.prototype.publish("defaultLat",42.877742,"number","Center Latitude",void 0,{hidden:function(t){return t.isLayer()}}),Rr.prototype.publish("defaultLong",-97.380979,"number","Center Longitude",void 0,{hidden:function(t){return t.isLayer()}}),Rr.prototype.publish("defaultZoom",4,"number","Zoom Level",void 0,{hidden:function(t){return t.isLayer()}}),Rr.prototype.publish("autoZoomToFit",!0,"boolean","Auto zoom to fit Data",void 0,{hidden:function(t){return t.isLayer()}});var jr=function(t){function n(n){void 0===n&&(n=!1);var i=t.call(this)||this;return i._layer=n?new Er.exports.MarkerClusterGroup:new Er.exports.FeatureGroup,i._layer.__hpcc_layer=i,e.Utility.SimpleSelectionMixin.call(i),i.layers([i]),i}return h(n,t),n.prototype.owner=function(t){this._owner=t},n.prototype.valid=function(){return!0},n.prototype.clear=function(){this._layer.clearLayers()},n.prototype.add=function(t){this._layer.addLayer(t)},n.prototype.maxZoom=function(){return this._owner._leafletMap.getMaxZoom()||24},n.prototype.zoom=function(){return this._owner._leafletMap.getZoom()},n.prototype.visibleBounds=function(){return this._owner._leafletMap.getBounds()},n.prototype.init=function(){return this._initPromise||(this._initPromise=Promise.resolve()),this._initPromise},n.prototype.hasBounds=function(){return!1},n.prototype.getBounds=function(){return this._layer.getBounds()},n.prototype.style=function(t,n){return void 0===n?e.select(this._layer.getPane()).style(t):(e.select(this._layer.getPane()).style(t,n),this)},n.prototype.propValue=function(t,e,n){return(t<0?n:e[t])||n},n.prototype.layerEnter=function(t){t.addLayer(this._layer);var n=e.select(t.getContainer()).select(".leaflet-pane.leaflet-marker-pane");this._selection.widgetElement(n)},n.prototype.layerUpdate=function(t){},n.prototype.layerExit=function(t){this._layer.clearLayers(),t.removeLayer(this._layer)},n.prototype.zoomEnd=function(t){},n.prototype.moveEnd=function(t){},n.prototype.viewReset=function(t){},n}(Rr);jr.prototype._class+=" map_FeatureLayer",jr.prototype.mixin(e.Utility.SimpleSelectionMixin),jr.prototype.publishReset(["layers"]);var Gr=function(t){function e(e){return void 0===e&&(e=!0),t.call(this,e)||this}return h(e,t),e}(jr);Gr.prototype._class+=" map_ClusterLayer";var Ur=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lfd3=(new Er.exports.D3SvgOverlay).drawCallback((function(t,n){return e.layerUpdate(void 0,n)})),e}return h(e,t),e.prototype.hasBounds=function(){return!0},e.prototype.getBounds=function(){return this._lfd3.getBounds()},e.prototype.layerEnter=function(e){t.prototype.layerEnter.call(this,e),this.add(this._lfd3)},e.prototype.layerUpdate=function(e,n){t.prototype.layerUpdate.call(this,e)},e.prototype.clickHandler=function(t,e){},e}(jr),Hr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.hasBounds=function(){return!0},e.prototype.layerUpdate=function(e){var n=this;t.prototype.layerUpdate.call(this,e);var i=this.columns(),o=i.indexOf(this.latitudeColumn()),r=i.indexOf(this.longitudeColumn()),a=i.indexOf(this.strokeColorColumn()),s=i.indexOf(this.fillColorColumn());this.clear(),this.data().filter((function(t){return!n.omitNullLatLong()||!!t[o]&&!!t[r]})).forEach((function(t){n.add(new Er.exports.Circle([t[o],t[r]],{color:n.propValue(a,t,n.strokeColor()),fill:!0,fillColor:n.propValue(s,t,n.fillColor()),fillOpacity:n.fillOpacity(),radius:n.radius(),origRow:t}).on("click",(function(e){return n.clickHandler(e,t)})))}))},e.prototype.clickHandler=function(t,e){},e}(Gr);Hr.prototype._class+=" map_Circles",Hr.prototype.publish("latitudeColumn",null,"set","Latitude column",(function(){return this.columns()}),{optional:!0}),Hr.prototype.publish("longitudeColumn",null,"set","Longitude column",(function(){return this.columns()}),{optional:!0}),Hr.prototype.publish("radius",50,"number","Radius (meters)"),Hr.prototype.publish("strokeColor","#376cea","html-color","Stroke Color",null,{optional:!0}),Hr.prototype.publish("strokeColorColumn",null,"set","Stroke color column",(function(){return this.columns()}),{optional:!0}),Hr.prototype.publish("fillColor","#376cea","html-color","Fill Color",null,{optional:!0}),Hr.prototype.publish("fillColorColumn",null,"set","Fill color column",(function(){return this.columns()}),{optional:!0}),Hr.prototype.publish("fillOpacity",.5,"number","Opacity",null,{tags:["Advanced"]}),Hr.prototype.publish("omitNullLatLong",!0,"boolean","Remove lat=0,lng=0 from pinsData",null,{tags:["Basic"]});var Fr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.layerUpdate=function(e,n){var i=this;t.prototype.layerUpdate.call(this,e,n);var o=this._lfd3._rootGroup;n=n||this._lfd3.projection;var r=this.columns(),a=r.indexOf(this.latitudeColumn()),s=r.indexOf(this.longitudeColumn()),l=r.indexOf(this.strokeColorColumn()),h=r.indexOf(this.fillColorColumn());function u(t){return{lat:+t[a],lng:+t[s]}}var c=o.selectAll("circle").data(this.data().filter((function(t){return!i.omitNullLatLong()||!!t[a]&&!!t[s]})));c.enter().append("circle").merge(c).attr("cx",(function(t){return n.latLngToLayerPoint(u(t)).x})).attr("cy",(function(t){return n.latLngToLayerPoint(u(t)).y})).attr("r",Math.max(3/n.scale,this.radius()/n.metresPerPixel)).style("fill-opacity",this.fillOpacity()).style("stroke",(function(t){return i.propValue(l,t,i.strokeColor())})).attr("stroke-width",Math.max(1/n.scale,1/n.metresPerPixel)).style("fill",(function(t){return i.propValue(h,t,i.fillColor())})),c.exit().remove()},e.prototype.clickHandler=function(t,e){},e}(Ur);Fr.prototype._class+=" map_D3Circles",Fr.prototype.publish("latitudeColumn",null,"set","Latitude column",(function(){return this.columns()}),{optional:!0}),Fr.prototype.publish("longitudeColumn",null,"set","Longitude column",(function(){return this.columns()}),{optional:!0}),Fr.prototype.publish("radius",50,"number","Radius (meters)"),Fr.prototype.publish("strokeColor","#376cea","html-color","Stroke Color",null,{optional:!0}),Fr.prototype.publish("strokeColorColumn",null,"set","Stroke color column",(function(){return this.columns()}),{optional:!0}),Fr.prototype.publish("fillColor","#376cea","html-color","Fill Color",null,{optional:!0}),Fr.prototype.publish("fillColorColumn",null,"set","Fill color column",(function(){return this.columns()}),{optional:!0}),Fr.prototype.publish("fillOpacity",.5,"number","Opacity",null,{tags:["Advanced"]}),Fr.prototype.publish("omitNullLatLong",!0,"boolean","Remove lat=0,lng=0 from pinsData",null,{tags:["Basic"]});yo(".cluster-circle{background-clip:padding-box;font:12px Helvetica Neue,Arial,Helvetica,sans-serif}.cluster-circle>div{border-radius:20px;height:40px;text-align:center;width:40px}.cluster-circle>div>div{border-radius:15px;display:inline-block;font:12px Helvetica Neue,Arial,Helvetica,sans-serif;height:30px;margin-top:5px;text-align:center;width:30px}.cluster-circle span{line-height:30px}");var Wr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return h(n,t),n.prototype.createIcon=function(t,n,i){var o=e.hsl(n);return o.opacity=.5,new Er.exports.DivIcon({className:"cluster-circle",iconSize:new Er.exports.Point(40,40),html:"<div style='opacity:".concat(this.opacity(),";background-color:").concat(o.toString(),"'><div style='background-color:").concat(n,"'><span style='color:").concat(e.Palette.textColor(n),"'>").concat(i(t),"</span></div></div>")})},n.prototype.layerUpdate=function(n){var i=this;t.prototype.layerUpdate.call(this,n),this._palette=this._palette.switch(this.paletteID()),this.useClonedPalette()&&(this._palette=this._palette.cloneNotExists(this.paletteID()+"_"+this.id()));var o=this.cellFunc(this.latitudeColumn(),0),r=this.cellFunc(this.longitudeColumn(),0),a=this.cellFunc(this.weightColumn(),0),s=this.data(),l=e.extent(s,a),h=this.weightFormat()?e.format(this.weightFormat()):function(t){return t};this.clear(),s.forEach((function(t){var e=new Er.exports.Marker(function(t){return[+o(t),+r(t)]}(t),{icon:i.createIcon(a(t),i._palette(a(t),l[0],l[1]),h),origRow:t}).on("click",(function(e){return i.clickHandler(e,t)}));e.bindTooltip("Weight: "+a(t)),i.add(e)}))},n.prototype.clickHandler=function(t,e){},n}(jr);Wr.prototype._class+=" map_ClusterCircles",Wr.prototype._palette=e.Palette.rainbow("default"),Wr.prototype.publish("paletteID","YlOrRd","set","Color palette for this widget",Wr.prototype._palette.switch()),Wr.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette"),Wr.prototype.publish("latitudeColumn",null,"set","Latitude column",(function(){return this.columns()}),{optional:!0}),Wr.prototype.publish("longitudeColumn",null,"set","Longitude column",(function(){return this.columns()}),{optional:!0}),Wr.prototype.publish("weightColumn",null,"set","Weight column",(function(){return this.columns()}),{optional:!0}),Wr.prototype.publish("weightFormat",".2s","string","Number format for weight"),Wr.prototype.publish("opacity",.66,"number","Opacity",null,{tags:["Advanced"]});var Vr=function(t){function e(e,n){return t.call(this,e,u(u({},n),{onEachFeature:function(t,e){n.onEachFeature&&n.onEachFeature(t,e),function(t,e){var n=e.getLatLngs();n.forEach((function(t){t.forEach((function(t){if(Array.isArray(t)){var e=165,n=0,i=0,o=0,r=0;t.forEach((function(t){t.lat>-62&&(t.lng>e?++r:t.lng<-165&&++o,t.lng>0?++i:t.lng<0&&++n)})),o>0&&r>0&&t.forEach((function(t){t.lng>e&&n>i?t.lng-=360:t.lng<-165&&i>n&&(t.lng+=360)}))}}))})),e.setLatLngs(n)}(0,e)}}))||this}return h(e,t),e.prototype.addData=function(e){var n,i;if("Topology"===e.type){for(i in e.objects)e.objects.hasOwnProperty(i)&&(n=Mo(e,e.objects[i]),t.prototype.addData.call(this,n));return this}return t.prototype.addData.call(this,e),this},e}(Er.exports.GeoJSON),qr=null,Yr=null,Kr=null,Xr=null;!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}h(e,t),e.prototype.initStates=function(){return this._initPromise||(this._initPromise=new Promise((function(t,e){qr&&t(),No("".concat(Do(),"/us-states.json"),(function(e){for(var n in Kr=Mo((qr=e).topology,qr.topology.objects.states).features,Xr={},Kr)Kr[n].id&&(Xr[qr.stateNames[Kr[n].id].code]=Kr[n]);t()}))}))),this._initPromise},e.prototype.initCounties=function(){return this._initPromise||(this._initPromise=new Promise((function(t,e){Yr&&t(),No("".concat(Do(),"/us-counties.json"),(function(e){for(var n in Kr=Mo((Yr=e).topology,Yr.topology.objects.counties).features,Xr={},Kr)Kr[n].id&&(Xr[Kr[n].id]=Kr[n]);t()}))}))),this._initPromise},e.prototype.init=function(){return this.initCounties()},e.prototype.layerEnter=function(e){t.prototype.layerEnter.call(this,e);var n=new Vr(Kr,{style:function(t){return{color:"#000",opacity:1,weight:1,fillColor:"#35495d",fillOpacity:.2}}});this.add(n)}}(jr);yo(".leaflet-interactive.selected{stroke:red;stroke-width:1.25px}");var Jr=function(t){function n(){var n=t.call(this)||this;return n._dataMap={},n._dataMinWeight=null,n._dataMaxWeight=null,e.Utility.SimpleSelectionMixin.call(n),n}return h(n,t),n.prototype.hasBounds=function(){return!0},n.prototype.getBounds=function(){var e=t.prototype.getBounds.call(this);return e.isValid()?new Er.exports.LatLngBounds([e.getNorth(),e.getWest()],[e.getSouth(),e.getEast()]):new Er.exports.LatLngBounds([90,-180],[-90,180])},n.prototype.updateDataMap=function(t){this._dataMap={},this._dataMinWeight=null,this._dataMaxWeight=null;var e=this;t.forEach((function(t){e._dataMap[t[0]]=t,(!e._dataMinWeight||t[1]<e._dataMinWeight)&&(e._dataMinWeight=t[1]),(!e._dataMaxWeight||t[1]>e._dataMaxWeight)&&(e._dataMaxWeight=t[1])}))},n.prototype.data=function(e){var n=t.prototype.data.apply(this,arguments);return arguments.length&&this.updateDataMap(e),n},n.prototype.styleFeature=function(t){var e=this._dataMap[t.properties.hpccID],n=e?this._palette(e[1],this._dataMinWeight,this._dataMaxWeight):"transparent";return{color:this.meshVisible()?this.meshColor():void 0,opacity:1,weight:this.meshStrokeWidth(),fillColor:n,fillOpacity:this.opacity()}},n.prototype.svgGlowID=function(){return this.id()+"_svgGlow"},n.prototype.layerEnter=function(n){if(t.prototype.layerEnter.call(this,n),!this._svgElement){this._svgElement=e.select(n.getContainer()).select(".leaflet-pane.leaflet-overlay-pane > svg");var i=this._svgElement.append("defs");new e.SVGGlowFilter(i,this.svgGlowID()),this._selection.widgetElement(this._svgElement)}},n.prototype.layerUpdate=function(e){var n=this;this._prevFeatures!==this._features&&(this.clear(),this._topoJson=new Vr(this._features,{onEachFeature:function(t,e){e.on("click",(function(t){return n.clickHandler(t,e,e.feature.properties.hpccID)}))}}).bindTooltip((function(t){return n.tooltipHandler(t,t.feature.properties.hpccID)}),{direction:"top",sticky:!0}),this.add(this._topoJson)),t.prototype.layerUpdate.call(this,e),this._palette=this._palette.switch(this.paletteID()),this.useClonedPalette()&&(this._palette=this._palette.cloneNotExists(this.paletteID()+"_"+this.id())),this._topoJson.setStyle((function(t){return n.styleFeature(t)}))},n.prototype.clickHandler=function(t,e,n){var i=this._selection.click(t.originalEvent.target);return this.click(this.rowToObj(this._dataMap[n]),this.columns()[0],i),i},n.prototype.tooltipText=function(t,e){return e},n.prototype.tooltipHandler=function(t,e){var n=this._dataMap[e],i=n&&n[1]||"";return this.tooltipText(this.rowToObj(n),"<b>".concat(e,"</b>: ").concat(i))},n.prototype.click=function(t,e,n){},n}(jr);Jr.prototype._class+=" map_World",Jr.prototype._palette=e.Palette.rainbow("default"),Jr.prototype.mixin(e.Utility.SimpleSelectionMixin),Jr.prototype.publish("paletteID","YlOrRd","set","Color palette for this widget",Jr.prototype._palette.switch(),{tags:["Basic","Shared"]}),Jr.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette",null,{tags:["Intermediate","Shared"]}),Jr.prototype.publish("opacity",.5,"number","Opacity",null,{tags:["Advanced"]}),Jr.prototype.publish("meshVisible",!0,"boolean","Mesh Visibility"),Jr.prototype.publish("meshColor","black","html-color","Stroke Color"),Jr.prototype.publish("meshStrokeWidth",.25,"number","Stroke Width"),Jr.prototype.publish("internalOnly",!1,"boolean","Internal mesh only");var Qr=null,$r=function(t){function e(){return t.call(this)||this}return h(e,t),e.prototype.init=function(){var t=this;return this._initPromise||(this._initPromise=new Promise((function(t,e){Qr&&t(Qr),No("".concat(Do(),"/countries.json"),(function(e){t(Qr=e)}))})).then((function(e){var n;for(var i in t._features=Mo(e.topology,e.topology.objects.countries).features,t._features)if(t._features[i].id){var o=t._features[i].id,r=null===(n=e.countryNames[o])||void 0===n?void 0:n.name;t._features[i].properties.hpccID=r}}))),this._initPromise},e.prototype.tooltipHandler=function(t,e){var n=this._dataMap[e],i=n&&n[1]||"";return this.tooltipText(this.rowToObj(n),"<b>".concat(e,"</b>: ").concat(i))},e}(Jr);function ta(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}var ea=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._polylines=[],e._polygons=[],e._rectangles=[],e._circles=[],e}return h(e,t),e.prototype.hasBounds=function(){return!0},e.prototype.drawOptions=function(){var t={marker:!1,circlemarker:!1};return this.enableCircle()||(t.circle=!1),this.enablePolyline()||(t.polyline=!1),this.enableRectangle()||(t.rectangle=!1),this.enablePolygon()||(t.polygon=!1),t},e.prototype.save=function(){return{polylines:this._polylines.map((function(t){return t.getLatLngs()})),polygons:this._polygons.map((function(t){return t.getLatLngs()})),rectangles:this._rectangles.map((function(t){return t.getBounds()})),circles:this._circles.map((function(t){return{center:t.getLatLng(),radius:t.getRadius()}}))}},e.prototype.restore=function(t){var e=this;this.clear(),this._polylines=(t.polylines||[]).map((function(t){return new Er.exports.Polyline(t)})),this._polygons=(t.polygons||[]).map((function(t){return new Er.exports.Polygon(t)})),this._rectangles=(t.rectangles||[]).map((function(t){return new Er.exports.Rectangle(t)})),this._circles=(t.circles||[]).map((function(t){return new Er.exports.Circle(t.center,{radius:t.radius})})),this._polylines.forEach((function(t){return e.add(t)})),this._polygons.forEach((function(t){return e.add(t)})),this._rectangles.forEach((function(t){return e.add(t)})),this._circles.forEach((function(t){return e.add(t)}))},e.prototype.layerEnter=function(e){var n=this;t.prototype.layerEnter.call(this,e),e.on(Er.exports.Draw.Event.CREATED,(function(t){var e=t.layerType,i=t.layer;switch(e){case"polyline":n._polylines.push(i);break;case"polygon":n._polygons.push(i);break;case"rectangle":n._rectangles.push(i);break;case"circle":n._circles.push(i);break;default:alert(e)}n.add(i),n.changed("ADD",i)})),e.on(Er.exports.Draw.Event.EDITED,(function(t){t.layers.eachLayer((function(t){n.changed("UPDATE",t)}))})),e.on(Er.exports.Draw.Event.DELETED,(function(t){t.layers.eachLayer((function(t){ta(n._polylines,t),ta(n._polygons,t),ta(n._rectangles,t),ta(n._circles,t),n.changed("DELETE",t)}))}))},e.prototype.layerUpdate=function(e){t.prototype.layerUpdate.call(this,e),this.style("opacity",this.opacity());var n=this.drawOptions(),i=o.hashSum(n);this._drawOptionsHash!==i&&(this._drawOptionsHash=i,this._drawControl&&e.removeControl(this._drawControl),this._drawControl=new Er.exports.Control.Draw({position:"topleft",draw:n,edit:{featureGroup:this._layer}}),e.addControl(this._drawControl))},e.prototype.layerExit=function(e){t.prototype.layerExit.call(this,e)},e.prototype.changed=function(t,e){},e}(jr);ea.prototype._class+=" map_DrawLayer",ea.prototype.publish("opacity",1,"number","Layer Opacity"),ea.prototype.publish("enablePolyline",!0,"boolean","Enable Polyline Creation"),ea.prototype.publish("enablePolygon",!0,"boolean","Enable Polygon Creation"),ea.prototype.publish("enableRectangle",!0,"boolean","Enable Rectangle Creation"),ea.prototype.publish("enableCircle",!0,"boolean","Enable Circle Creation");var na=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.hasBounds=function(){return!0},e.prototype.layerUpdate=function(e){var n=this;t.prototype.layerUpdate.call(this,e),this.style("opacity",this.opacity());var i,o=this.columns(),r=this.latitudeColumn_exists()?o.indexOf(this.latitudeColumn()):0,a=this.longitudeColumn_exists()?o.indexOf(this.longitudeColumn()):1,s=o.indexOf(this.weightColumn());this.clear();var l=this.data().filter((function(t){return!n.omitNullLatLong()||!!t[r]&&!!t[a]})).map((function(t){return i?i.extend([t[r],t[a]]):i=new Er.exports.LatLngBounds([t[r],t[a]]),[t[r],t[a],n.weightColumn_exists()?t[s]:.5]})),h=new Er.exports.HeatLayer(l,{minOpacity:this.minOpacity(),max:this.max(),radius:this.radius(),blur:this.blur(),gradient:this.gradient()});h.getBounds=function(){return i},this.add(h)},e}(jr);na.prototype._class+=" map_Heat",na.prototype.publish("latitudeColumn",null,"set","Latitude column",(function(){return this.columns()}),{optional:!0}),na.prototype.publish("longitudeColumn",null,"set","Longitude column",(function(){return this.columns()}),{optional:!0}),na.prototype.publish("weightColumn",null,"set","Optional normalized intensity (0 -> 1) ",(function(){return this.columns()}),{optional:!0}),na.prototype.publish("omitNullLatLong",!0,"boolean","Remove lat=0,lng=0 from IconsData",null,{tags:["Basic"]}),na.prototype.publish("opacity",.5,"number","Layer Opacity"),na.prototype.publish("minOpacity",.5,"number","The minimum opacity the heat will start at",null,{tags:["Basic"]}),na.prototype.publish("max",1,"number","maximum point intensity, 1.0 by default",null,{tags:["Basic"]}),na.prototype.publish("radius",25,"number","radius of each point of the heatmap, 25 by default",null,{tags:["Basic"]}),na.prototype.publish("blur",15,"number","amount of blur, 15 by default",null,{tags:["Basic"]}),na.prototype.publish("gradient",null,"object","color gradient config",null,{tags:["Basic"],optional:!0});var ia=function(t){function e(e){return void 0===e&&(e=!1),t.call(this,e)||this}return h(e,t),e.prototype.hasBounds=function(){return!0},e.prototype.tooltipText=function(t,e){return""+e},e.prototype.popupText=function(t,e){return""+e},e.prototype.layerUpdate=function(e,n){var i=this;if(t.prototype.layerUpdate.call(this,e),n){var o=this.columns(),r=o.indexOf(this.latitudeColumn()),a=o.indexOf(this.longitudeColumn()),s=o.indexOf(this.tooltipColumn()),l=o.indexOf(this.popupColumn()),h=this._db.checksum(),u=this.hashSum([],{dbChecksum:h});this._hashSum!==u&&(this._hashSum=u,this.clear(),this.data().filter((function(t){return!i.omitNullLatLong()||!!t[r]&&!!t[a]})).forEach((function(t){var e=new Er.exports.Marker([t[r],t[a]],n(t)).on("click",(function(n){return i.clickHandler(n,e,t)})),o=i.tooltipText(i.rowToObj(t),i.propValue(s,t,""));o&&e.bindTooltip(o,{direction:i.tooltipDirection(),offset:Er.exports.point(i.tooltipOffsetX(),i.tooltipOffsetY())});var h=i.popupText(i.rowToObj(t),i.propValue(l,t,""));h&&e.bindPopup(h,{offset:Er.exports.point(i.popupOffsetX(),i.popupOffsetY())}),i.add(e)})))}},e.prototype.clickHandler=function(t,e,n){var i=this._selection.click(e._icon);this._currSelRow=i?n:void 0,this.click(this.rowToObj(n),"",i)},e.prototype.click=function(t,e,n){},e}(Gr);ia.prototype._class+=" map_Markers",ia.prototype.publish("latitudeColumn",null,"set","Latitude column",(function(){return this.columns()}),{optional:!0}),ia.prototype.publish("longitudeColumn",null,"set","Longitude column",(function(){return this.columns()}),{optional:!0}),ia.prototype.publish("omitNullLatLong",!0,"boolean","Remove lat=0,lng=0 from IconsData",null,{tags:["Basic"]}),ia.prototype.publish("tooltipColumn",null,"set","Tooltip column",(function(){return this.columns()}),{optional:!0}),ia.prototype.publish("tooltipDirection","auto","set","Tooltip direction",["auto","left","top","right","bottom","center"]),ia.prototype.publish("tooltipOffsetX",0,"number","Tooltip offset X"),ia.prototype.publish("tooltipOffsetY",0,"number","Tooltip offset Y"),ia.prototype.publish("popupColumn",null,"set","Popup column",(function(){return this.columns()}),{optional:!0}),ia.prototype.publish("popupOffsetX",0,"number","Tooltip offset X"),ia.prototype.publish("popupOffsetY",0,"number","Tooltip offset Y");var oa=function(t){function e(e){return void 0===e&&(e=!1),t.call(this,e)||this}return h(e,t),e.prototype.layerUpdate=function(e){var n=this,i=this.columns().indexOf(this.iconUrlColumn());t.prototype.layerUpdate.call(this,e,(function(t){return{icon:new Er.exports.Icon({iconUrl:n.propValue(i,t,n.iconUrl()),iconSize:[n.iconWidth(),n.iconHeight()],iconAnchor:[n.iconAnchorX(),n.iconAnchorY()],props:{owner:n,row:t}}),draggable:!1}}))},e}(ia);oa.prototype._class+=" map_Icons",oa.prototype.publish("iconUrl","","string","Icon URL",null),oa.prototype.publish("iconUrlColumn",null,"set","Icon URL column",(function(){return this.columns()}),{optional:!0}),oa.prototype.publish("iconWidth",32,"number","Icon width"),oa.prototype.publish("iconHeight",32,"number","Icon height"),oa.prototype.publish("iconAnchorX",16,"number","Icon Anchor X"),oa.prototype.publish("iconAnchorY",32,"number","Icon Anchor Y");var ra=function(t){function e(){return t.call(this,!0)||this}return h(e,t),e}(oa);function aa(t){return[t[1],t[0]]}ra.prototype._class+=" map_ClusterIcons";var sa=function(t,e){return e[0]<-90?t[0]++:e[0]>90&&t[1]++,t},la=function(t){return t>90?t-360:t},ha=function(t){return t<-90?t+360:t},ua=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return h(n,t),n.prototype.fixDateLine=function(t){var e,n=t.reduce(sa,[0,0]),i=n[0],o=n[1];return i&&o?t.map((e=i>o?la:ha,function(t){return[e(t[0]),t[1]]})):t},n.prototype.hasBounds=function(){return!0},n.prototype.updateHexagons=function(){var t=this;this._palette=this._palette.switch(this.paletteID()),this.useClonedPalette()&&(this._palette=this._palette.cloneNotExists(this.paletteID()+"_"+this.id()));var n=this.cellFunc(this.polygonColumn(),[]),i=this.cellFunc(this.weightColumn(),0),o=this.data(),r=e.extent(o,i);this.clear(),o.forEach((function(e){t.add(new Er.exports.Polygon(t.fixDateLine(n(e)).map(aa),{color:t._palette(r[1],r[0],r[1]),fillColor:t._palette(i(e),r[0],r[1]),fillOpacity:t.opacity(),weight:1,origRow:e}).on("click",(function(n){return t.clickHandler(n,e)})))}))},n.prototype.layerUpdate=function(e){t.prototype.layerUpdate.call(this,e),this.updateHexagons()},n.prototype.zoomEnd=function(e){t.prototype.zoomEnd.call(this,e)},n.prototype.moveEnd=function(e){t.prototype.moveEnd.call(this,e),this.updateHexagons()},n.prototype.clickHandler=function(t,e){},n}(jr);ua.prototype._class+=" map_Polygons",ua.prototype._palette=e.Palette.rainbow("default"),ua.prototype.publish("paletteID","YlOrRd","set","Color palette for this widget",ua.prototype._palette.switch(),{tags:["Basic","Shared"]}),ua.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette",null,{tags:["Intermediate","Shared"]}),ua.prototype.publish("polygonColumn",null,"set","Polygon column",(function(){return this.columns()}),{optional:!0}),ua.prototype.publish("weightColumn",null,"set","Weight column",(function(){return this.columns()}),{optional:!0}),ua.prototype.publish("opacity",.5,"number","Opacity",null,{tags:["Advanced"]});var ca=2048/Math.PI,pa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.lineData=function(){var t,e=this.columns(),n=e.indexOf(this.latitudeColumn()),i=e.indexOf(this.longitudeColumn()),o=[];return this.data().forEach((function(e){var r=[e[i],e[n]];t&&o.push({type:"LineString",coordinates:[r,t]}),t=r})),o},e.prototype.isNull=function(t){return!t[0]&&!t[1]},e.prototype.isNull2=function(t){return!!this.omitNullLatLong()&&(this.isNull(t[0])||this.isNull(t[1]))},e.prototype.layerUpdate=function(e,n){var i=this;t.prototype.layerUpdate.call(this,e,n);var o=this._lfd3._rootGroup;n=n||this._lfd3.projection,this._lfd3.svg().selectAll("defs").data([void 0]).enter().append("defs").append("marker").attr("class","marker").attr("id",this._id+"_arrowHead").attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerWidth",12).attr("markerHeight",12).attr("markerUnits","strokeWidth").attr("orient","auto").append("polyline").attr("points","0,0 10,5 0,10 1,5"),this._lfd3.svg().select("defs > marker").style("fill",this.strokeColor()).style("stroke",null);var r=n.latLngToLayerPoint({lat:0,lng:0}),a=go("Mercator").scale(ca).translate([r.x,r.y]),s=_i().projection(a),l=o.selectAll(".dataEdge").data(this.lineData().filter((function(t){return!i.isNull2(t.coordinates)})));l.enter().append("path").attr("class","dataEdge").attr("marker-end","url(#"+this._id+"_arrowHead)").merge(l).attr("d",s).style("stroke",this.strokeColor()).style("fill","none").attr("stroke-width",1/n.scale),l.exit().remove()},e.prototype.clickHandler=function(t,e){},e}(Ur);pa.prototype._class+=" map_Path",pa.prototype.publish("latitudeColumn",null,"set","Latitude column",(function(){return this.columns()}),{optional:!0}),pa.prototype.publish("longitudeColumn",null,"set","Longitude column",(function(){return this.columns()}),{optional:!0}),pa.prototype.publish("strokeColor"," #666666","html-color","Stroke Color",null,{optional:!0}),pa.prototype.publish("omitNullLatLong",!0,"boolean","Remove lat=0,lng=0 from pinsData",null,{tags:["Basic"]});var da=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.lineData=function(){var t=this.columns(),e=t.indexOf(this.latitudeColumn()),n=t.indexOf(this.longitudeColumn()),i=t.indexOf(this.latitude2Column()),o=t.indexOf(this.longitude2Column()),r=[];return this.data().forEach((function(t){var a=[t[n],t[e]],s=[t[o],t[i]];r.push({type:"LineString",coordinates:[a,s]})})),r},e}(pa);da.prototype._class+=" map_Lines",da.prototype.publish("latitude2Column",null,"set","Latitude column",(function(){return this.columns()}),{optional:!0}),da.prototype.publish("longitude2Column",null,"set","Longitude column",(function(){return this.columns()}),{optional:!0});var fa=function(t){function e(e){return void 0===e&&(e=!1),t.call(this,e)||this}return h(e,t),e.prototype.layerUpdate=function(e){var n=this,i=this.columns(),o=i.indexOf(this.faCharColumn()),r=i.indexOf(this.faCharColorColumn()),a=i.indexOf(this.strokeColorColumn()),s=i.indexOf(this.fillColorColumn());t.prototype.layerUpdate.call(this,e,(function(t){return{icon:Er.exports.BeautifyIcon({iconShape:"marker",icon:n.propValue(o,t,n.faChar()),textColor:n.propValue(r,t,n.faCharColor()),borderColor:n.propValue(a,t,n.strokeColor()),backgroundColor:n.propValue(s,t,n.fillColor()),props:{owner:n,row:t}}),draggable:!1}}))},e}(ia);fa.prototype._class+=" map_Pins",fa.prototype.publish("faChar","fa-circle","string","Default font awesome character"),fa.prototype.publish("faCharColumn",null,"set","Font awesome column",(function(){return this.columns()}),{optional:!0}),fa.prototype.publish("faCharColor","#ffffff","html-color","Default font awesome Color"),fa.prototype.publish("faCharColorColumn",null,"set","Font awesome color column",(function(){return this.columns()}),{optional:!0}),fa.prototype.publish("strokeColor","transparent","html-color","Default stroke Color",null,{optional:!0}),fa.prototype.publish("strokeColorColumn",null,"set","Stroke color column",(function(){return this.columns()}),{optional:!0}),fa.prototype.publish("fillColor","#376cea","html-color","Default fill Color",null,{optional:!0}),fa.prototype.publish("fillColorColumn",null,"set","Fill color column",(function(){return this.columns()}),{optional:!0});var _a=function(t){function e(){return t.call(this,!0)||this}return h(e,t),e}(fa);_a.prototype._class+=" map_ClusterPins";var ma={GB:["administrative_area_level_3","administrative_area_level_2","administrative_area_level_1"],IE:["administrative_area_level_2","administrative_area_level_1"],ND:["administrative_area_level_2","administrative_area_level_1"]},ga={};function ya(t){return ga[t]||(ga[t]={topology:void 0,nameIdx:{},codeIdx:{}}),ga[t]}var va=function(t){function e(){return t.call(this)||this}return h(e,t),e.prototype.fetchTopo=function(t){return ya(t).topology?Promise.resolve(ya(t).topology):new Promise((function(e,n){No("".concat(Do(),"/").concat(t,".json"),(function(n){ya(t).topology=n,e(n)}))}))},e.prototype.fetchTopoIdx=function(t){for(var e in ya(t).nameIdx)return Promise.resolve(ya(t).nameIdx);return new Promise((function(e,n){No("".concat(Do(),"/").concat(t,"_idx.json"),(function(n){var i,o=ya(t),r=o.nameIdx,a=o.codeIdx;null===(i=ma[t])||void 0===i||i.forEach((function(t){var e=function(e){var i=n[t][e];Array.isArray(i)&&(r[e]||(r[e]={code:void 0,codes:[]}),r[e].codes=r[e].codes.concat(i),1===i.length&&(r[e].code=r[e].codes[0]),i.forEach((function(t){a[t]||(a[t]={name:void 0,score:9999,names:[]}),i.length<=a[t].score&&(a[t].name=e,a[t].score=i.length),a[t].names.push(e)})))};for(var i in n[t])e(i)})),e(r)}))}))},e.prototype.updateDataMap=function(e){var n=[],i=ya(this.region()).nameIdx;return e.forEach((function(t){var e,o=null===(e=i[t[0]])||void 0===e?void 0:e.codes;o?null==o||o.forEach((function(e){n.push([e,t[1],t])})):n.push([t[0],t[1],t])})),t.prototype.updateDataMap.call(this,n)},e.prototype.init=function(){var t=this,e=this.region();return this._initPromise&&this._prevRegion===e||(this._prevRegion=e,this._initPromise=Promise.all([this.fetchTopo(e),this.fetchTopoIdx(e)]).then((function(e){var n=e[0];for(var i in e[1],t._features=Mo(n,n.objects.PolbndA).features,t._features){var o=t._features[i].id||i;t._features[i].properties.hpccID=o}t.updateDataMap(t.data())}))),this._initPromise},e.prototype.tooltipHandler=function(t,e){var n,i=this._dataMap[e],o=ya(this.region()).codeIdx,r=i&&i[1]||"",a=null===(n=o[e])||void 0===n?void 0:n.names.map((function(t){var n;return(null===(n=o[e])||void 0===n?void 0:n.name)===t?"<u>".concat(t,"</u>"):t})).join(", ");return this.tooltipText(this.rowToObj(i),"<b>".concat(i&&i[2][0]||a||e,"</b>: ").concat(r))},e}(Jr);va.prototype._class+=" map_Region",va.prototype.publish("region","GB","set","Region Data",["AT","BE","BG","BR","CHLI","CY","CZ","DE","DK","EE","ES","FI","FR","GB","GE","GR","HR","HU","IE","IS","IT","KS","LT","LU","LV","MD","MK","MT","ND","NL","NO","PL","PT","RO","RS","SE","SI","SK","UA"]);var ba=function(t){function n(e){return void 0===e&&(e=!1),t.call(this,e)||this}return h(n,t),n.prototype.layerUpdate=function(n){var i=this,o=this.columns(),r=o.indexOf(this.textColumn()),a=o.indexOf(this.textColorColumn()),s=o.indexOf(this.strokeColorColumn()),l=o.indexOf(this.fillColorColumn());t.prototype.layerUpdate.call(this,n,(function(t){var n=i.propValue(r,t,i.text()),o=i.textSize(n,i.fontFamily(),i.fontSize());return i.textFormat_exists()&&(n=e.format(i.textFormat())(n)),{icon:Er.exports.BeautifyIcon({iconShape:"rectangle",iconAnchor:[o.width/2+i.textOffsetX(),o.height/2+i.textOffsetY()],html:'<span style="\n '.concat(i.fontFamily_exists()?"font-family:".concat(i.fontFamily(),";"):"","\n font-size:").concat(i.fontSize(),'px;\n pointer-events: none;\n white-space:nowrap;\n ">').concat(n,"</span>"),textColor:i.propValue(a,t,i.textColor()),borderColor:i.propValue(s,t,i.strokeColor()),backgroundColor:i.propValue(l,t,i.fillColor()),props:{owner:i,row:t}}),draggable:!1}}))},n}(ia);ba.prototype._class+=" map_Text",ba.prototype.publish("textOffsetX",0,"number","Horizontal offset of text"),ba.prototype.publish("textOffsetY",0,"number","Vertical offset of text"),ba.prototype.publish("text","","string","Default text"),ba.prototype.publish("textColumn",null,"set","Font awesome column",(function(){return this.columns()}),{optional:!0}),ba.prototype.publish("textColor","#ffffff","html-color","Default font awesome Color"),ba.prototype.publish("textColorColumn",null,"set","Text color column",(function(){return this.columns()}),{optional:!0}),ba.prototype.publish("textFontFamily",null,"set","Text color column",(function(){return this.columns()}),{optional:!0}),ba.prototype.publish("strokeColor","transparent","html-color","Default stroke Color",null,{optional:!0}),ba.prototype.publish("strokeColorColumn",null,"set","Stroke color column",(function(){return this.columns()}),{optional:!0}),ba.prototype.publish("fillColor","#376cea","html-color","Default fill Color",null,{optional:!0}),ba.prototype.publish("fillColorColumn",null,"set","Fill color column",(function(){return this.columns()}),{optional:!0}),ba.prototype.publish("fontFamily",null,"string","Font family",null,{optional:!0}),ba.prototype.publish("fontSize",16,"number","Font family",null,{optional:!0}),ba.prototype.publish("textFormat",null,"string","Format rules for text",null,{optional:!0});var La=function(t){function e(){return t.call(this)||this}return h(e,t),e.prototype.getBounds=function(){var e=t.prototype.getBounds.call(this);return new Er.exports.LatLngBounds([e.getNorth(),e.getWest()],[17.755278,-64.565])},e}(Jr),wa=null,xa={},ka=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.init=function(){var t=this;return this._initPromise||(this._initPromise=new Promise((function(t,e){wa&&t(wa),No("".concat(Do(),"/us-counties.json"),(function(e){t(wa=e)}))})).then((function(e){for(var n in t._features=Mo(e.topology,e.topology.objects.counties).features,t._features)if(t._features[n].id){var i=t._features[n].id,o=e.countyNames[i];t._features[n].properties.hpccID=i,xa[i]=o}}))),this._initPromise},e.prototype.tooltipHandler=function(t,e){var n=this._dataMap[e],i=n&&n[1]||"";return this.tooltipText(this.rowToObj(n),"<b>".concat(xa[e],"</b>: ").concat(i))},e}(La);ka.prototype._class+=" map_USCounties";var Ma=null,Ca={},Pa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.init=function(){var t=this;return this._initPromise||(this._initPromise=new Promise((function(t,e){Ma&&t(Ma),No("".concat(Do(),"/us-states.json"),(function(e){t(Ma=e)}))})).then((function(e){for(var n in t._features=Mo(e.topology,e.topology.objects.states).features,t._features)if(t._features[n].id){var i=e.stateNames[t._features[n].id],o=i.code,r=i.name;t._features[n].properties.hpccID=o,Ca[o]=r}}))),this._initPromise},e.prototype.tooltipHandler=function(t,e){var n=this._dataMap[e],i=n&&n[1]||"";return this.tooltipText(this.rowToObj(n),"<b>".concat(Ca[e],"</b>: ").concat(i))},e}(La);Pa.prototype._class+=" map_USStates";var Ea=Object.freeze({__proto__:null,Circles:Hr,D3Circles:Fr,ClusterCircles:Wr,Countries:$r,DrawLayer:ea,FeatureLayer:jr,ClusterLayer:Gr,D3SurfaceLayer:Ur,HeatLayer:na,Icons:oa,ClusterIcons:ra,Leaflet:Rr,Markers:ia,Polygons:ua,Path:pa,Lines:da,Pins:fa,ClusterPins:_a,Region:va,Text:ba,TileLayer:Tr,USCounties:ka,USStates:Pa,World:Jr});t.BUILD_VERSION="2.102.4",t.CanvasPinLayer=xo,t.CanvasPins=w,t.Choropleth=Ao,t.ChoroplethContinents=Uo,t.ChoroplethCounties=Vo,t.ChoroplethCountries=Go,t.ChoroplethStates=Xo,t.ChoroplethStatesHeat=Jo,t.GMap=sr,t.GMapCounties=ur,t.GMapGraph=cr,t.GMapHeat=pr,t.GMapLayered=hr,t.GMapPin=fr,t.GMapPinLine=mr,t.GeoHash=Qo,t.Graph=gr,t.Graticule=yr,t.Heat=vr,t.IChoropleth=br,t.Layer=wo,t.Layered=bo,t.Leaflet=Ea,t.Lines=_r,t.OpenStreet=Mr,t.PKG_NAME="@hpcc-js/map",t.PKG_VERSION="2.75.2",t.Pins=dr,t.TestHeatMap=Cr,t.TopoJSONChoropleth=Pr,t.projections=_o,t.requireGoogleMap=rr,t.requireGoogleMapTimeout=function(t){or=t},t.resolve=go,t.topoJsonFolder=Do,t.types=fo,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
21
|
+
var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},57:(t,e,n)=>{n.d(e,{M:()=>b});var i=n(62),o=n(402),r=n.n(o),a=n(36),s=n.n(a),l=n(793),h=n.n(l),u=n(892),c=n.n(u),p=n(173),d=n.n(p),f=n(464),_=n.n(f),m=n(282),g={};g.styleTagTransform=_(),g.setAttributes=c(),g.insert=h().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=d(),r()(m.Z,g),m.Z&&m.Z.locals&&m.Z.locals;var y={iconColor:"#1EB300",iconAnchor:{marker:[14,34],circle:[11,10],"circle-dot":[5,5],"rectangle-dot":[5,6],doughnut:[8,8]},popupAnchor:{marker:[0,-25],circle:[-3,-76],"circle-dot":[0,-2],"rectangle-dot":[0,-2],doughnut:[0,-2]},innerIconAnchor:{marker:[-2,5],circle:[0,2]},iconSize:{marker:[28,28],circle:[22,22],"circle-dot":[2,2],"rectangle-dot":[2,2],doughnut:[15,15]}},v=i.Icon.extend({options:{icon:"leaf",iconSize:y.iconSize.circle,iconAnchor:y.iconAnchor.marker,iconShape:"marker",iconStyle:"",innerIconAnchor:[0,3],innerIconStyle:"",isAlphaNumericIcon:!1,text:1,borderColor:y.iconColor,borderWidth:2,borderStyle:"solid",backgroundColor:"white",textColor:y.iconColor,customClasses:"",spin:!1,prefix:"fa",html:""},initialize:function(t){this.applyDefaults(t),this.options=t&&t.html?t:i.Util.setOptions(this,t)},applyDefaults:function(t){t&&(!t.iconSize&&t.iconShape&&(t.iconSize=y.iconSize[t.iconShape]),!t.iconAnchor&&t.iconShape&&(t.iconAnchor=y.iconAnchor[t.iconShape]),!t.popupAnchor&&t.iconShape&&(t.popupAnchor=y.popupAnchor[t.iconShape]),t.innerIconAnchor||"circle"!==t.iconShape&&"marker"!==t.iconShape||("circle"===t.iconShape&&t.isAlphaNumericIcon?t.innerIconAnchor=[0,-1]:"marker"!==t.iconShape||t.isAlphaNumericIcon||(t.innerIconAnchor=y.innerIconAnchor[t.iconShape])))},createIcon:function(){var t=document.createElement("div"),e=this.options;if(t.innerHTML=e.html?e.html:this.createIconInnerHtml(),this._setIconStyles(t),"marker"===this.options.iconShape){var n=document.createElement("div");return n.className="beautify-marker"+(e.props.owner._currSelRow===e.props.row?" selected":""),n.appendChild(t),n}return t},createIconInnerHtml:function(){var t=this.options;if("circle-dot"===t.iconShape||"rectangle-dot"===t.iconShape||"doughnut"===t.iconShape)return"";var e=this.getInnerIconStyle(t);if(t.isAlphaNumericIcon)return'<div style="'+e+'">'+t.text+"</div>";var n="";return t.spin&&(n=" fa-spin"),'<i class="'+t.prefix+" "+t.icon+n+'" style="'+e+'"></i>'},getInnerIconStyle:function(t){var e=(0,i.point)(t.innerIconAnchor);return"color:"+t.textColor+";margin-top:"+e.y+"px; margin-left:"+e.x+"px;"+t.innerIconStyle},_setIconStyles:function(t){var e=this.options,n=(0,i.point)(e.iconSize),o=(0,i.point)(e.iconAnchor);if(t.className="beautify-marker ",e.iconShape&&(t.className+=e.iconShape),e.customClasses&&(t.className+=" "+e.customClasses),t.style.backgroundColor=e.backgroundColor,t.style.color=e.textColor,t.style.borderColor=e.borderColor,t.style.borderWidth=e.borderWidth+"px",t.style.borderStyle=e.borderStyle,n&&(t.style.width=n.x+"px",t.style.height=n.y+"px"),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),e.iconStyle){var r=t.getAttribute("style");r+=e.iconStyle,t.setAttribute("style",r)}}});function b(t){return new v(t)}},132:(t,e,n)=>{n.d(e,{F:()=>He,c:()=>Ue});var i=n(163);function o(t){return t}function r(t,e){t&&s.hasOwnProperty(t.type)&&s[t.type](t,e)}var a={Feature:function(t,e){r(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,o=n.length;++i<o;)r(n[i].geometry,e)}},s={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,i=-1,o=n.length;++i<o;)t=n[i],e.point(t[0],t[1],t[2])},LineString:function(t,e){l(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,i=-1,o=n.length;++i<o;)l(n[i],e,0)},Polygon:function(t,e){h(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,i=-1,o=n.length;++i<o;)h(n[i],e)},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,o=n.length;++i<o;)r(n[i],e)}};function l(t,e,n){var i,o=-1,r=t.length-n;for(e.lineStart();++o<r;)i=t[o],e.point(i[0],i[1],i[2]);e.lineEnd()}function h(t,e){var n=-1,i=t.length;for(e.polygonStart();++n<i;)l(t[n],e,1);e.polygonEnd()}function u(t,e){t&&a.hasOwnProperty(t.type)?a[t.type](t,e):r(t,e)}function c(){return new p}function p(){this.reset()}p.prototype={constructor:p,reset:function(){this.s=this.t=0},add:function(t){f(d,t,this.t),f(this,d.s,this.s),this.s?this.t+=d.t:this.s=d.t},valueOf:function(){return this.s}};var d=new p;function f(t,e,n){var i=t.s=e+n,o=i-e,r=i-o;t.t=e-r+(n-o)}var _=2*Math.PI,m=Math.abs,g=Math.sqrt;function y(){}var v,b,L,w,x=c(),k=c(),M={point:y,lineStart:y,lineEnd:y,polygonStart:function(){M.lineStart=C,M.lineEnd=T},polygonEnd:function(){M.lineStart=M.lineEnd=M.point=y,x.add(m(k)),k.reset()},result:function(){var t=x/2;return x.reset(),t}};function C(){M.point=P}function P(t,e){M.point=E,v=L=t,b=w=e}function E(t,e){k.add(w*t-L*e),L=t,w=e}function T(){E(v,b)}const S=M;var z=1/0,O=z,D=-z,A=D,I={point:function(t,e){t<z&&(z=t),t>D&&(D=t),e<O&&(O=e),e>A&&(A=e)},lineStart:y,lineEnd:y,polygonStart:y,polygonEnd:y,result:function(){var t=[[z,O],[D,A]];return D=A=-(O=z=1/0),t}};const B=I;var N,Z,R,j,G=0,U=0,H=0,F=0,W=0,V=0,q=0,Y=0,K=0,X={point:J,lineStart:Q,lineEnd:et,polygonStart:function(){X.lineStart=nt,X.lineEnd=it},polygonEnd:function(){X.point=J,X.lineStart=Q,X.lineEnd=et},result:function(){var t=K?[q/K,Y/K]:V?[F/V,W/V]:H?[G/H,U/H]:[NaN,NaN];return G=U=H=F=W=V=q=Y=K=0,t}};function J(t,e){G+=t,U+=e,++H}function Q(){X.point=$}function $(t,e){X.point=tt,J(R=t,j=e)}function tt(t,e){var n=t-R,i=e-j,o=g(n*n+i*i);F+=o*(R+t)/2,W+=o*(j+e)/2,V+=o,J(R=t,j=e)}function et(){X.point=J}function nt(){X.point=ot}function it(){rt(N,Z)}function ot(t,e){X.point=rt,J(N=R=t,Z=j=e)}function rt(t,e){var n=t-R,i=e-j,o=g(n*n+i*i);F+=o*(R+t)/2,W+=o*(j+e)/2,V+=o,q+=(o=j*t-R*e)*(R+t),Y+=o*(j+e),K+=3*o,J(R=t,j=e)}const at=X;function st(t){this._context=t}st.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,_)}},result:y};var lt,ht,ut,ct,pt,dt=c(),ft={point:y,lineStart:function(){ft.point=_t},lineEnd:function(){lt&&mt(ht,ut),ft.point=y},polygonStart:function(){lt=!0},polygonEnd:function(){lt=null},result:function(){var t=+dt;return dt.reset(),t}};function _t(t,e){ft.point=mt,ht=ct=t,ut=pt=e}function mt(t,e){ct-=t,pt-=e,dt.add(g(ct*ct+pt*pt)),ct=t,pt=e}const gt=ft;function yt(){this._string=[]}function vt(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function bt(t){return function(e){var n=new Lt;for(var i in t)n[i]=t[i];return n.stream=e,n}}function Lt(){}function wt(){}function xt(t){return null==t?wt:function(){return this.querySelector(t)}}function kt(){return[]}function Mt(t){return new Array(t.length)}function Ct(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Pt(t,e,n,i,o,r){for(var a,s=0,l=e.length,h=r.length;s<h;++s)(a=e[s])?(a.__data__=r[s],i[s]=a):n[s]=new Ct(t,r[s]);for(;s<l;++s)(a=e[s])&&(o[s]=a)}function Et(t,e,n,i,o,r,a){var s,l,h,u={},c=e.length,p=r.length,d=new Array(c);for(s=0;s<c;++s)(l=e[s])&&(d[s]=h="$"+a.call(l,l.__data__,s,e),h in u?o[s]=l:u[h]=l);for(s=0;s<p;++s)(l=u[h="$"+a.call(t,r[s],s,r)])?(i[s]=l,l.__data__=r[s],u[h]=null):n[s]=new Ct(t,r[s]);for(s=0;s<c;++s)(l=e[s])&&u[d[s]]===l&&(o[s]=l)}function Tt(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}yt.prototype={_radius:4.5,_circle:vt(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=vt(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Lt.prototype={constructor:Lt,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},Ct.prototype={constructor:Ct,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var St="http://www.w3.org/1999/xhtml";const zt={svg:"http://www.w3.org/2000/svg",xhtml:St,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ot(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),zt.hasOwnProperty(e)?{space:zt[e],local:t}:t}function Dt(t){return function(){this.removeAttribute(t)}}function At(t){return function(){this.removeAttributeNS(t.space,t.local)}}function It(t,e){return function(){this.setAttribute(t,e)}}function Bt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Nt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Zt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Rt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function jt(t){return function(){this.style.removeProperty(t)}}function Gt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ut(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Ht(t,e){return t.style.getPropertyValue(e)||Rt(t).getComputedStyle(t,null).getPropertyValue(e)}function Ft(t){return function(){delete this[t]}}function Wt(t,e){return function(){this[t]=e}}function Vt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function qt(t){return t.trim().split(/^|\s+/)}function Yt(t){return t.classList||new Kt(t)}function Kt(t){this._node=t,this._names=qt(t.getAttribute("class")||"")}function Xt(t,e){for(var n=Yt(t),i=-1,o=e.length;++i<o;)n.add(e[i])}function Jt(t,e){for(var n=Yt(t),i=-1,o=e.length;++i<o;)n.remove(e[i])}function Qt(t){return function(){Xt(this,t)}}function $t(t){return function(){Jt(this,t)}}function te(t,e){return function(){(e.apply(this,arguments)?Xt:Jt)(this,t)}}function ee(){this.textContent=""}function ne(t){return function(){this.textContent=t}}function ie(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function oe(){this.innerHTML=""}function re(t){return function(){this.innerHTML=t}}function ae(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function se(){this.nextSibling&&this.parentNode.appendChild(this)}function le(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function he(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===St&&e.documentElement.namespaceURI===St?e.createElement(t):e.createElementNS(n,t)}}function ue(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ce(t){var e=Ot(t);return(e.local?ue:he)(e)}function pe(){return null}function de(){var t=this.parentNode;t&&t.removeChild(this)}function fe(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function _e(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}Kt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var me={};function ge(t,e,n){return t=ye(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function ye(t,e,n){return function(i){try{t.call(this,this.__data__,e,n)}finally{}}}function ve(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function be(t){return function(){var e=this.__on;if(e){for(var n,i=0,o=-1,r=e.length;i<r;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++o]=n:this.removeEventListener(n.type,n.listener,n.capture);++o?e.length=o:delete this.__on}}}function Le(t,e,n){var i=me.hasOwnProperty(t.type)?ge:ye;return function(o,r,a){var s,l=this.__on,h=i(e,r,a);if(l)for(var u=0,c=l.length;u<c;++u)if((s=l[u]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=h,s.capture=n),void(s.value=e);this.addEventListener(t.type,h,n),s={type:t.type,name:t.name,value:e,listener:h,capture:n},l?l.push(s):this.__on=[s]}}function we(t,e,n){var i=Rt(t),o=i.CustomEvent;"function"==typeof o?o=new o(e,n):(o=i.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function xe(t,e){return function(){return we(this,t,e)}}function ke(t,e){return function(){return we(this,t,e.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(me={mouseenter:"mouseover",mouseleave:"mouseout"}));var Me=[null];function Ce(t,e){this._groups=t,this._parents=e}Ce.prototype={constructor:Ce,select:function(t){"function"!=typeof t&&(t=xt(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var r,a,s=e[o],l=s.length,h=i[o]=new Array(l),u=0;u<l;++u)(r=s[u])&&(a=t.call(r,r.__data__,u,s))&&("__data__"in r&&(a.__data__=r.__data__),h[u]=a);return new Ce(i,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=function(t){return null==t?kt:function(){return this.querySelectorAll(t)}}(t));for(var e=this._groups,n=e.length,i=[],o=[],r=0;r<n;++r)for(var a,s=e[r],l=s.length,h=0;h<l;++h)(a=s[h])&&(i.push(t.call(a,a.__data__,h,s)),o.push(a));return new Ce(i,o)},filter:function(t){"function"!=typeof t&&(t=function(t){return function(){return this.matches(t)}}(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var r,a=e[o],s=a.length,l=i[o]=[],h=0;h<s;++h)(r=a[h])&&t.call(r,r.__data__,h,a)&&l.push(r);return new Ce(i,this._parents)},data:function(t,e){if(!t)return f=new Array(this.size()),u=-1,this.each((function(t){f[++u]=t})),f;var n,i=e?Et:Pt,o=this._parents,r=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=r.length,s=new Array(a),l=new Array(a),h=new Array(a),u=0;u<a;++u){var c=o[u],p=r[u],d=p.length,f=t.call(c,c&&c.__data__,u,o),_=f.length,m=l[u]=new Array(_),g=s[u]=new Array(_);i(c,p,m,g,h[u]=new Array(d),f,e);for(var y,v,b=0,L=0;b<_;++b)if(y=m[b]){for(b>=L&&(L=b+1);!(v=g[L])&&++L<_;);y._next=v||null}}return(s=new Ce(s,o))._enter=l,s._exit=h,s},enter:function(){return new Ce(this._enter||this._groups.map(Mt),this._parents)},exit:function(){return new Ce(this._exit||this._groups.map(Mt),this._parents)},join:function(t,e,n){var i=this.enter(),o=this,r=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=e&&(o=e(o)),null==n?r.remove():n(r),i&&o?i.merge(o).order():o},merge:function(t){for(var e=this._groups,n=t._groups,i=e.length,o=n.length,r=Math.min(i,o),a=new Array(i),s=0;s<r;++s)for(var l,h=e[s],u=n[s],c=h.length,p=a[s]=new Array(c),d=0;d<c;++d)(l=h[d]||u[d])&&(p[d]=l);for(;s<i;++s)a[s]=e[s];return new Ce(a,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,o=t[e],r=o.length-1,a=o[r];--r>=0;)(i=o[r])&&(a&&4^i.compareDocumentPosition(a)&&a.parentNode.insertBefore(i,a),a=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Tt);for(var n=this._groups,i=n.length,o=new Array(i),r=0;r<i;++r){for(var a,s=n[r],l=s.length,h=o[r]=new Array(l),u=0;u<l;++u)(a=s[u])&&(h[u]=a);h.sort(e)}return new Ce(o,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],o=0,r=i.length;o<r;++o){var a=i[o];if(a)return a}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var o,r=e[n],a=0,s=r.length;a<s;++a)(o=r[a])&&t.call(o,o.__data__,a,r);return this},attr:function(t,e){var n=Ot(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?At:Dt:"function"==typeof e?n.local?Zt:Nt:n.local?Bt:It)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?jt:"function"==typeof e?Ut:Gt)(t,e,null==n?"":n)):Ht(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Ft:"function"==typeof e?Vt:Wt)(t,e)):this.node()[t]},classed:function(t,e){var n=qt(t+"");if(arguments.length<2){for(var i=Yt(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1;return!0}return this.each(("function"==typeof e?te:e?Qt:$t)(n,e))},text:function(t){return arguments.length?this.each(null==t?ee:("function"==typeof t?ie:ne)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?oe:("function"==typeof t?ae:re)(t)):this.node().innerHTML},raise:function(){return this.each(se)},lower:function(){return this.each(le)},append:function(t){var e="function"==typeof t?t:ce(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:ce(t),i=null==e?pe:"function"==typeof e?e:xt(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(de)},clone:function(t){return this.select(t?_e:fe)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,o,r=ve(t+""),a=r.length;if(!(arguments.length<2)){for(s=e?Le:be,null==n&&(n=!1),i=0;i<a;++i)this.each(s(r[i],e,n));return this}var s=this.node().__on;if(s)for(var l,h=0,u=s.length;h<u;++h)for(i=0,l=s[h];i<a;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?ke:xe)(t,e))}};var Pe=n(62),Ee=n(402),Te=n.n(Ee),Se=n(36),ze=n.n(Se),Oe=n(793),De=n.n(Oe),Ae=n(892),Ie=n.n(Ae),Be=n(173),Ne=n.n(Be),Ze=n(464),Re=n.n(Ze),je=n(958),Ge={};Ge.styleTagTransform=Re(),Ge.setAttributes=Ie(),Ge.insert=De().bind(null,"head"),Ge.domAPI=ze(),Ge.insertStyleElement=Ne(),Te()(je.Z,Ge),je.Z&&je.Z.locals&&je.Z.locals;var Ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e}(Pe.Layer),He=function(t){function e(e){void 0===e&&(e={});var n=t.call(this)||this;return n._options(e),n}return(0,i.ZT)(e,t),e.prototype.svg=function(){return this._rootGroup},e.prototype.drawCallback=function(t){return arguments.length?(this._drawCallback=t,this):this._drawCallback},e.prototype.getBounds=function(){if(!this.selection||!this.projection)return new Pe.LatLngBounds([-90,-180],[90,180]);var t,e,n=this.selection.node().getBBox();try{t=this.projection.layerPointToLatLng(new Pe.Point(n.x,n.y+n.height))}catch(e){t=[-90,-180]}try{e=this.projection.layerPointToLatLng(new Pe.Point(n.x+n.width,n.y))}catch(t){e=[90,180]}return new Pe.LatLngBounds(t,e)},e.prototype._undef=function(t){return void 0===t},e.prototype._options=function(t){return this._undef(t)?this.options:(t.zoomHide=!this._undef(t.zoomHide)&&t.zoomHide,t.zoomDraw=!!this._undef(t.zoomDraw)||t.zoomDraw,this.options=t)},e.prototype.draw=function(){this.map&&this._drawCallback&&(this.projection.metresPerPixel=40075016.686*Math.abs(Math.cos(this.map.getCenter().lat*Math.PI/180))/Math.pow(2,this.map.getZoom()+8)*this.projection.scale,this._drawCallback(this.selection,this.projection,this.map.getZoom()))},e.prototype._zoomChange=function(t){var e=this._undef(t.zoom)?this.map._zoom:t.zoom;this._zoomDiff=e-this._zoom,this._scale=Math.pow(2,this._zoomDiff),this.projection.scale=this._scale,this._shift=this.map.latLngToLayerPoint(this._wgsOrigin)._subtract(this._wgsInitialShift.multiplyBy(this._scale));var n=["translate(",this._shift.x,",",this._shift.y,") "],i=["scale(",this._scale,",",this._scale,") "];this._rootGroup.attr("transform",n.concat(i).join("")),this.options.zoomDraw&&this.draw()},e.prototype.onAdd=function(t){this.map=t;var e=this;return this._svg=Pe.svg(),t.addLayer(this._svg),this._rootGroup=function(t){return"string"==typeof t?new Ce([[document.querySelector(t)]],[document.documentElement]):new Ce([[t]],Me)}(this._svg._rootGroup).classed("d3-overlay",!0),this._rootGroup.classed("leaflet-zoom-hide",this.options.zoomHide),this.selection=this._rootGroup,this._pixelOrigin=t.getPixelOrigin(),this._wgsOrigin=Pe.latLng([0,0]),this._wgsInitialShift=this.map.latLngToLayerPoint(this._wgsOrigin),this._zoom=this.map.getZoom(),this._shift=Pe.point(0,0),this._scale=1,this.projection={latLngToLayerPoint:function(t,n){return n=e._undef(n)?e._zoom:n,e.map.project(Pe.latLng(t),n)._subtract(e._pixelOrigin)},layerPointToLatLng:function(t,n){n=e._undef(n)?e._zoom:n;var i=Pe.point(t).add(e._pixelOrigin);return e.map.unproject(i,n)},unitsPerMeter:256*Math.pow(2,e._zoom)/40075017,metresPerPixel:40075016.686*Math.abs(Math.cos(t.getCenter().lat*Math.PI/180))/Math.pow(2,t.getZoom()+8),map:e.map,layer:e,scale:1},this.projection._projectPoint=function(t,n){var i=e.projection.latLngToLayerPoint(new Pe.LatLng(n,t));this.stream.point(i.x,i.y)},this.projection.pathFromGeojson=function(t,e){var n,i,r=4.5;function a(t){return t&&("function"==typeof r&&i.pointRadius(+r.apply(this,arguments)),u(t,n(i))),i.result()}return a.area=function(t){return u(t,n(S)),S.result()},a.measure=function(t){return u(t,n(gt)),gt.result()},a.bounds=function(t){return u(t,n(B)),B.result()},a.centroid=function(t){return u(t,n(at)),at.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,o):(t=e).stream,a):t},a.context=function(t){return arguments.length?(i=null==t?(e=null,new yt):new st(e=t),"function"!=typeof r&&i.pointRadius(r),a):e},a.pointRadius=function(t){return arguments.length?(r="function"==typeof t?t:(i.pointRadius(+t),+t),a):r},a.projection(t).context(e)}().projection({stream:bt({point:this.projection._projectPoint})}),this.projection.latLngToLayerFloatPoint=this.projection.latLngToLayerPoint,this.projection.getZoom=this.map.getZoom.bind(this.map),this.projection.getBounds=this.map.getBounds.bind(this.map),this.selection=this._rootGroup,this.draw(),this},e.prototype.getEvents=function(){return{zoomend:this._zoomChange,viewreset:this._zoomChange}},e.prototype.onRemove=function(t){return this._svg.remove(),this},e.prototype.addTo=function(t){return t.addLayer(this),this},e}(Ue)},22:(t,e,n)=>{n.d(e,{O:()=>l,c:()=>h});var i=n(163),o=n(62),r=n(10),a=n.n(r),s=window.simpleheat||r&&a()||r,l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e}(o.Layer),h=function(t){function e(e,n){void 0===n&&(n={});var i=t.call(this,n)||this;return i._latlngs=e,i}return(0,i.ZT)(e,t),e.prototype.initialize=function(t){this.setOptions(t)},e.prototype.setLatLngs=function(t){return this._latlngs=t,this.redraw()},e.prototype.addLatLng=function(t){return this._latlngs.push(t),this.redraw()},e.prototype.setOptions=function(t){return this.options=t,this._heat&&this._updateOptions(),this.redraw()},e.prototype.redraw=function(){return!this._heat||this._frame||this._map._animating||(this._frame=o.Util.requestAnimFrame(this._redraw,this)),this},e.prototype.onAdd=function(t){return this._map=t,this._canvas||this._initCanvas(),t._panes.overlayPane.appendChild(this._canvas),t.on("moveend",this._reset,this),t.options.zoomAnimation&&o.Browser.any3d&&t.on("zoomanim",this._animateZoom,this),this._reset(),this},e.prototype.onRemove=function(t){return t.getPanes().overlayPane.removeChild(this._canvas),t.off("moveend",this._reset,this),t.options.zoomAnimation&&t.off("zoomanim",this._animateZoom,this),this},e.prototype.addTo=function(t){return t.addLayer(this),this},e.prototype._initCanvas=function(){var t=this._canvas=o.DomUtil.create("canvas","leaflet-heatmap-layer leaflet-layer"),e=o.DomUtil.testProp(["transformOrigin","WebkitTransformOrigin","msTransformOrigin"]);t.style[e]="50% 50%";var n=this._map.getSize();t.width=n.x,t.height=n.y;var i=this._map.options.zoomAnimation&&o.Browser.any3d;o.DomUtil.addClass(t,"leaflet-zoom-"+(i?"animated":"hide")),this._heat=s(t),this._updateOptions()},e.prototype._updateOptions=function(){this._heat.radius(this.options.radius||this._heat.defaultRadius,this.options.blur),this.options.gradient&&this._heat.gradient(this.options.gradient),this.options.max&&this._heat.max(this.options.max)},e.prototype._reset=function(){var t=this._map.containerPointToLayerPoint([0,0]);o.DomUtil.setPosition(this._canvas,t);var e=this._map.getSize();this._heat._width!==e.x&&(this._canvas.width=this._heat._width=e.x),this._heat._height!==e.y&&(this._canvas.height=this._heat._height=e.y),this._redraw()},e.prototype._redraw=function(){var t,e,n,i,r,a,s,l,h,u=[],c=this._heat._r,p=this._map.getSize(),d=new o.Bounds(o.point([-c,-c]),p.add([c,c])),f=void 0===this.options.max?1:this.options.max,_=void 0===this.options.maxZoom?this._map.getMaxZoom():this.options.maxZoom,m=1/Math.pow(2,Math.max(0,Math.min(_-this._map.getZoom(),12))),g=c/2,y=[],v=this._map._getMapPanePos(),b=v.x%g,L=v.y%g;for(t=0,e=this._latlngs.length;t<e;t++)n=this._map.latLngToContainerPoint(this._latlngs[t]),d.contains(n)&&(r=Math.floor((n.x-b)/g)+2,a=Math.floor((n.y-L)/g)+2,h=(void 0!==this._latlngs[t].alt?this._latlngs[t].alt:void 0!==this._latlngs[t][2]?+this._latlngs[t][2]:1)*m,y[a]=y[a]||[],(i=y[a][r])?(i[0]=(i[0]*i[2]+n.x*h)/(i[2]+h),i[1]=(i[1]*i[2]+n.y*h)/(i[2]+h),i[2]+=h):y[a][r]=[n.x,n.y,h]);for(t=0,e=y.length;t<e;t++)if(y[t])for(s=0,l=y[t].length;s<l;s++)(i=y[t][s])&&u.push([Math.round(i[0]),Math.round(i[1]),Math.min(i[2],f)]);this._heat.data(u).draw(this.options.minOpacity),this._frame=null},e.prototype._animateZoom=function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._getCenterOffset(t.center)._multiplyBy(-e).subtract(this._map._getMapPanePos());o.DomUtil.setTransform?o.DomUtil.setTransform(this._canvas,n,e):this._canvas.style[o.DomUtil.TRANSFORM]=o.DomUtil.getTranslateString(n)+" scale("+e+")"},e}(l)},856:(t,e,n)=>{t.exports=n.p+"c6e9c007f41bd4d26c20.png"},614:(t,e,n)=>{t.exports=n.p+"44b38a404dec4643c46b.png"},39:(t,e,n)=>{t.exports=n.p+"194137260531ee29a5f2.svg"},555:(t,e,n)=>{t.exports=n.p+"4a4ee777ddc0d4cedee4.png"},212:(t,e,n)=>{t.exports=n.p+"011a678e3efe41981754.png"},758:(t,e,n)=>{t.exports=n.p+"1e8408af1a34bdf61457.png"}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var r=e[i]={id:i,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.exports}n.m=t,n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.p="dist/",n.b=document.baseURI||self.location.href;var i={};return(()=>{n.r(i),n.d(i,{BeautifyIcon:()=>r.M,D3SvgOverlay:()=>a.F,Draw:()=>h,GoogleMutant:()=>o.GoogleMutant,HeatLayer:()=>s.c,LeafletLayer:()=>a.c,LeafletLayer2:()=>s.O,MarkerClusterGroup:()=>l});var t=n(62),e={};for(const n in t)["default","GoogleMutant","MarkerClusterGroup","Draw"].indexOf(n)<0&&(e[n]=()=>t[n]);n.d(i,e),n(72),n(325),n(684),n(298),n(738),n(152);var o=n(290),r=n(57),a=n(132),s=n(22),l=t.MarkerClusterGroup,h=t.Draw})(),i})()},t.exports=n()}(Er);var Tr=function(t){function e(e){var n=t.call(this)||this;return n._layer=new Er.exports.FeatureGroup,n._crs=Er.exports.CRS.EPSG3857,n._layer.__hpcc_layer=n,n}return h(e,t),e.prototype.crs=function(){return this._crs},e.prototype.attribution=function(){return""},e.prototype.clear=function(){this._layer.clearLayers()},e.prototype.add=function(t){this._layer.addLayer(t)},e.prototype.init=function(){return this._initPromise||(this._initPromise=Promise.resolve()),this._initPromise},e.prototype.hasBounds=function(){return!1},e.prototype.getBounds=function(){return this._layer.getBounds()},e.prototype.layerEnter=function(t){t.addLayer(this._layer)},e.prototype.layerUpdate=function(t){},e.prototype.layerExit=function(t){this._layer.clearLayers(),t.removeLayer(this._layer)},e.prototype.zoomEnd=function(t){},e.prototype.moveEnd=function(t){},e.prototype.viewReset=function(t){},e}(e.Widget),Sr=go("Albers").scale(.5),zr=go("AlbersUsaPr").scale(.5),Or={project:function(t){var e=zr([t.lng,t.lat]);return e||(e=Sr([t.lng,t.lat])),new Er.exports.Point(e[0],e[1])},unproject:function(t){if(isNaN(t.x)||isNaN(t.y))return new Er.exports.LatLng(0,0);var e=Sr.invert([t.x,t.y]);return new Er.exports.LatLng(e[1],e[0])}},Dr=Er.exports.Util.extend({},Er.exports.CRS,{projection:Or,transformation:new Er.exports.Transformation(1,0,1,0),infinite:!0}),Ar=function(t){function e(){var e=t.call(this)||this;return e._crs=Dr,e}return h(e,t),e.prototype.hasBounds=function(){return!0},e.prototype.getBounds=function(){return new Er.exports.LatLngBounds([20,-123],[49,-64])},e}(Tr);Ar.prototype._class+=" map_AlbersLayer";var Ir=function(t){function e(){return t.call(this)||this}return h(e,t),e}(Tr);Ir.prototype._class+=" map_BlankLayer";var Br=function(t){function e(){return t.call(this)||this}return h(e,t),e.prototype.init=function(){return this._initPromise||(this._initPromise=rr()),this._initPromise},e.prototype.attribution=function(){return window.__hpcc_gmap_apikey?"":"DEVELOPER USE ONLY (@hpcc-js)"},e.prototype.getMaxZoom=function(){return 23},e.prototype.layerEnter=function(e){t.prototype.layerEnter.call(this,e),this.add(new Er.exports.GoogleMutant({type:"roadmap",styles:this.googleMapStyles()}))},e}(Tr);Br.prototype._class+=" map_GMapLayer",Br.prototype.publish("googleMapStyles",{},"object","Styling for map colors etc",null,{tags:["Basic"]});var Nr=function(t){function e(){return t.call(this)||this}return h(e,t),e.prototype.attribution=function(){return window.__hpcc_mapbox_apikey?"":"DEVELOPER USE ONLY (@hpcc-js)"},e.prototype.getMaxZoom=function(){return 18},e.prototype.layerEnter=function(e){t.prototype.layerEnter.call(this,e),window.__hpcc_mapbox_apikey||console.warn("__hpcc_mapbox_apikey does not contain a valid API key, reverting to developers key (expect limited performance)");var n=window.__hpcc_mapbox_apikey||"pk.eyJ1IjoibGVzY2htb28iLCJhIjoiY2psY2FqY3l3MDhqNDN3cDl1MzFmZnkwcCJ9.HRoFwmz1j80gyz18ruggqw";this.add(new Er.exports.TileLayer("https://api.mapbox.com/styles/v1/mapbox/{id}/tiles/{z}/{x}/{y}?access_token=".concat(n),{attribution:'Map data © <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',maxZoom:18,id:"streets-v11",accessToken:n}))},e}(Tr);Nr.prototype._class+=" map_MapBoxLayer";var Zr=function(t){function e(){return t.call(this)||this}return h(e,t),e.prototype.attribution=function(){return""},e.prototype.getMaxZoom=function(){return 18},e.prototype.layerEnter=function(e){t.prototype.layerEnter.call(this,e),this.add(new Er.exports.TileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'Map data © <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',maxZoom:18,id:"open.streets"}))},e}(Tr);Zr.prototype._class+=" map_MapBoxLayer";yo(".map_Leaflet .leaflet-container{background-color:rgba(255,0,0,0);background:rgba(255,0,0,0)}");var Rr=function(t){function n(){var n=t.call(this)||this;return n._iconBar=(new e.IconBar).buttons([(new e.Button).faChar("fa-plus").tooltip("Zoom in").on("click",(function(){n.zoomPlus()})),(new e.Button).faChar("fa-minus").tooltip("Zoom out").on("click",(function(){n.zoomMinus()})),new e.Spacer,(new e.Button).faChar("fa-arrows-alt").tooltip("Zoom to fit").on("click",(function(){n.zoomToFit()}))]),n._blankLayer=new Ir,n._albersLayer=new Ar,n._mapBoxLayer=new Nr,n._openStreetLayer=new Zr,n._gmapLayer=new Br,n.baseLayer(),n}return h(n,t),n.prototype.zoom=function(){return this._leafletMap.getZoom()},n.prototype.zoomPlus=function(){this._leafletMap.zoomIn()},n.prototype.zoomMinus=function(){this._leafletMap.zoomOut()},n.prototype.zoomToDefault=function(){this._leafletMap.flyTo({lat:this.defaultLat(),lng:this.defaultLong()},this.defaultZoom(),{animate:!1})},n.prototype.zoomToFit=function(){var t;"AlbersPR"===this.mapType()?t=this._albersLayer.getBounds():this.layers().filter((function(t){return t.hasBounds()})).forEach((function(e){t?t.extend(e.getBounds()):t=e.getBounds()})),t&&t.isValid()?this._leafletMap.fitBounds(t,{maxZoom:14}):this.zoomToDefault()},n.prototype.syncLayers=function(t,e,n){var i=this,o=c([],t,!0),r=[],a=[];this._leafletMap.eachLayer((function(t){var e=o.indexOf(t.__hpcc_layer);e>=0?(r.push(t.__hpcc_layer),o.splice(e,1)):t.__hpcc_layer&&a.push(t.__hpcc_layer)})),o.forEach((function(t){t.layerEnter(i._leafletMap),t.layerUpdate(i._leafletMap)})),r.forEach((function(t){t.layerUpdate(i._leafletMap)})),a.forEach((function(t){t.layerExit(i._leafletMap)}))},n.prototype.isLayer=function(){return void 0!==this._owner&&this._owner!==this},n.prototype.baseLayer=function(){switch(this.mapType()){case"AlbersPR":this.map(this._albersLayer);break;case"MapBox":this.map(this._mapBoxLayer);break;case"OpenStreet":this.map(this._openStreetLayer);break;case"Google":this.map(this._gmapLayer);break;default:this.map(this._blankLayer)}return this.map()},n.prototype.enter=function(e,n){t.prototype.enter.call(this,e,n),n.style("position","relative"),this._leafletElement=n.append("div").style("position","absolute").style("width","".concat(this.width(),"px")).style("height","".concat(this.height(),"px")),this._iconBar.target(e)},n.prototype.update=function(e,n){var i=this;t.prototype.update.call(this,e,n),this._leafletElement.style("width","".concat(this.width(),"px")).style("height","".concat(this.height(),"px"));var o=this.baseLayer();this._prevCRS!==o.crs()&&(this._prevCRS=o.crs(),this._leafletMap&&(this.syncLayers([],e,n),this._leafletMap.remove(),this._leafletElement.html("")),this._leafletMap=new Er.exports.Map(this._leafletElement.node(),{trackResize:!1,zoomControl:!1,zoomSnap:"AlbersPR"===this.mapType()?.1:1,crs:o.crs(),maxZoom:o.getMaxZoom?o.getMaxZoom():18}),this._leafletMap.setView([this.defaultLat(),this.defaultLong()],this.defaultZoom()),this._leafletMap.attributionControl.setPrefix(o.attribution()),this._leafletMap.on("zoomend",(function(t){return i.layers().forEach((function(e){return e.zoomEnd(t)}))})),this._leafletMap.on("moveend",(function(t){return i.layers().forEach((function(e){return e.moveEnd(t)}))})),this._leafletMap.on("viewreset",(function(t){return i.layers().forEach((function(e){return e.viewReset(t)}))})),this._renderCount=0),this.syncLayers(c([o],this.layers(),!0),e,n),this._leafletMap.invalidateSize(),this.autoZoomToFit()&&this._leafletMap.whenReady((function(){this.zoomToFit()}),this),this._iconBar.visible(this.showToolbar()).render((function(t){var e=t.getBBox();t.element().style("z-index",5e3).style("left","".concat(i.width()-e.width-4,"px"))}))},n.prototype.exit=function(e,n){this._iconBar.target(null),t.prototype.exit.call(this,e,n)},n.prototype.render=function(e){var n=this,i=c([this.baseLayer().init()],this.layers().map((function(t){return t.init()})),!0);return Promise.all(i).then((function(){t.prototype.render.call(n,e)})),this},n}(e.HTMLWidget);Rr.prototype._class+=" map_Leaflet",Rr.prototype.publish("showToolbar",!0,"boolean","Show toolbar",void 0,{hidden:function(t){return t.isLayer()}}),Rr.prototype.publish("mapType","Google","set","Base Layer Type",["None","AlbersPR","MapBox","OpenStreet","Google"],{hidden:function(t){return t.isLayer()}}),Rr.prototype.publish("map",null,"widget","Base Layer",void 0,{internal:!0}),Rr.prototype.publish("layers",[],"propertyArray","Layers",void 0,{hidden:function(t){return t.isLayer()}}),Rr.prototype.publish("defaultLat",42.877742,"number","Center Latitude",void 0,{hidden:function(t){return t.isLayer()}}),Rr.prototype.publish("defaultLong",-97.380979,"number","Center Longitude",void 0,{hidden:function(t){return t.isLayer()}}),Rr.prototype.publish("defaultZoom",4,"number","Zoom Level",void 0,{hidden:function(t){return t.isLayer()}}),Rr.prototype.publish("autoZoomToFit",!0,"boolean","Auto zoom to fit Data",void 0,{hidden:function(t){return t.isLayer()}});var jr=function(t){function n(n){void 0===n&&(n=!1);var i=t.call(this)||this;return i._layer=n?new Er.exports.MarkerClusterGroup:new Er.exports.FeatureGroup,i._layer.__hpcc_layer=i,e.Utility.SimpleSelectionMixin.call(i),i.layers([i]),i}return h(n,t),n.prototype.owner=function(t){this._owner=t},n.prototype.valid=function(){return!0},n.prototype.clear=function(){this._layer.clearLayers()},n.prototype.add=function(t){this._layer.addLayer(t)},n.prototype.maxZoom=function(){return this._owner._leafletMap.getMaxZoom()||24},n.prototype.zoom=function(){return this._owner._leafletMap.getZoom()},n.prototype.visibleBounds=function(){return this._owner._leafletMap.getBounds()},n.prototype.init=function(){return this._initPromise||(this._initPromise=Promise.resolve()),this._initPromise},n.prototype.hasBounds=function(){return!1},n.prototype.getBounds=function(){return this._layer.getBounds()},n.prototype.style=function(t,n){return void 0===n?e.select(this._layer.getPane()).style(t):(e.select(this._layer.getPane()).style(t,n),this)},n.prototype.propValue=function(t,e,n){return(t<0?n:e[t])||n},n.prototype.layerEnter=function(t){t.addLayer(this._layer);var n=e.select(t.getContainer()).select(".leaflet-pane.leaflet-marker-pane");this._selection.widgetElement(n)},n.prototype.layerUpdate=function(t){},n.prototype.layerExit=function(t){this._layer.clearLayers(),t.removeLayer(this._layer)},n.prototype.zoomEnd=function(t){},n.prototype.moveEnd=function(t){},n.prototype.viewReset=function(t){},n}(Rr);jr.prototype._class+=" map_FeatureLayer",jr.prototype.mixin(e.Utility.SimpleSelectionMixin),jr.prototype.publishReset(["layers"]);var Gr=function(t){function e(e){return void 0===e&&(e=!0),t.call(this,e)||this}return h(e,t),e}(jr);Gr.prototype._class+=" map_ClusterLayer";var Ur=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lfd3=(new Er.exports.D3SvgOverlay).drawCallback((function(t,n){return e.layerUpdate(void 0,n)})),e}return h(e,t),e.prototype.hasBounds=function(){return!0},e.prototype.getBounds=function(){return this._lfd3.getBounds()},e.prototype.layerEnter=function(e){t.prototype.layerEnter.call(this,e),this.add(this._lfd3)},e.prototype.layerUpdate=function(e,n){t.prototype.layerUpdate.call(this,e)},e.prototype.clickHandler=function(t,e){},e}(jr),Hr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.hasBounds=function(){return!0},e.prototype.layerUpdate=function(e){var n=this;t.prototype.layerUpdate.call(this,e);var i=this.columns(),o=i.indexOf(this.latitudeColumn()),r=i.indexOf(this.longitudeColumn()),a=i.indexOf(this.strokeColorColumn()),s=i.indexOf(this.fillColorColumn());this.clear(),this.data().filter((function(t){return!n.omitNullLatLong()||!!t[o]&&!!t[r]})).forEach((function(t){n.add(new Er.exports.Circle([t[o],t[r]],{color:n.propValue(a,t,n.strokeColor()),fill:!0,fillColor:n.propValue(s,t,n.fillColor()),fillOpacity:n.fillOpacity(),radius:n.radius(),origRow:t}).on("click",(function(e){return n.clickHandler(e,t)})))}))},e.prototype.clickHandler=function(t,e){},e}(Gr);Hr.prototype._class+=" map_Circles",Hr.prototype.publish("latitudeColumn",null,"set","Latitude column",(function(){return this.columns()}),{optional:!0}),Hr.prototype.publish("longitudeColumn",null,"set","Longitude column",(function(){return this.columns()}),{optional:!0}),Hr.prototype.publish("radius",50,"number","Radius (meters)"),Hr.prototype.publish("strokeColor","#376cea","html-color","Stroke Color",null,{optional:!0}),Hr.prototype.publish("strokeColorColumn",null,"set","Stroke color column",(function(){return this.columns()}),{optional:!0}),Hr.prototype.publish("fillColor","#376cea","html-color","Fill Color",null,{optional:!0}),Hr.prototype.publish("fillColorColumn",null,"set","Fill color column",(function(){return this.columns()}),{optional:!0}),Hr.prototype.publish("fillOpacity",.5,"number","Opacity",null,{tags:["Advanced"]}),Hr.prototype.publish("omitNullLatLong",!0,"boolean","Remove lat=0,lng=0 from pinsData",null,{tags:["Basic"]});var Fr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.layerUpdate=function(e,n){var i=this;t.prototype.layerUpdate.call(this,e,n);var o=this._lfd3._rootGroup;n=n||this._lfd3.projection;var r=this.columns(),a=r.indexOf(this.latitudeColumn()),s=r.indexOf(this.longitudeColumn()),l=r.indexOf(this.strokeColorColumn()),h=r.indexOf(this.fillColorColumn());function u(t){return{lat:+t[a],lng:+t[s]}}var c=o.selectAll("circle").data(this.data().filter((function(t){return!i.omitNullLatLong()||!!t[a]&&!!t[s]})));c.enter().append("circle").merge(c).attr("cx",(function(t){return n.latLngToLayerPoint(u(t)).x})).attr("cy",(function(t){return n.latLngToLayerPoint(u(t)).y})).attr("r",Math.max(3/n.scale,this.radius()/n.metresPerPixel)).style("fill-opacity",this.fillOpacity()).style("stroke",(function(t){return i.propValue(l,t,i.strokeColor())})).attr("stroke-width",Math.max(1/n.scale,1/n.metresPerPixel)).style("fill",(function(t){return i.propValue(h,t,i.fillColor())})),c.exit().remove()},e.prototype.clickHandler=function(t,e){},e}(Ur);Fr.prototype._class+=" map_D3Circles",Fr.prototype.publish("latitudeColumn",null,"set","Latitude column",(function(){return this.columns()}),{optional:!0}),Fr.prototype.publish("longitudeColumn",null,"set","Longitude column",(function(){return this.columns()}),{optional:!0}),Fr.prototype.publish("radius",50,"number","Radius (meters)"),Fr.prototype.publish("strokeColor","#376cea","html-color","Stroke Color",null,{optional:!0}),Fr.prototype.publish("strokeColorColumn",null,"set","Stroke color column",(function(){return this.columns()}),{optional:!0}),Fr.prototype.publish("fillColor","#376cea","html-color","Fill Color",null,{optional:!0}),Fr.prototype.publish("fillColorColumn",null,"set","Fill color column",(function(){return this.columns()}),{optional:!0}),Fr.prototype.publish("fillOpacity",.5,"number","Opacity",null,{tags:["Advanced"]}),Fr.prototype.publish("omitNullLatLong",!0,"boolean","Remove lat=0,lng=0 from pinsData",null,{tags:["Basic"]});yo(".cluster-circle{background-clip:padding-box;font:12px Helvetica Neue,Arial,Helvetica,sans-serif}.cluster-circle>div{border-radius:20px;height:40px;text-align:center;width:40px}.cluster-circle>div>div{border-radius:15px;display:inline-block;font:12px Helvetica Neue,Arial,Helvetica,sans-serif;height:30px;margin-top:5px;text-align:center;width:30px}.cluster-circle span{line-height:30px}");var Wr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return h(n,t),n.prototype.createIcon=function(t,n,i){var o=e.hsl(n);return o.opacity=.5,new Er.exports.DivIcon({className:"cluster-circle",iconSize:new Er.exports.Point(40,40),html:"<div style='opacity:".concat(this.opacity(),";background-color:").concat(o.toString(),"'><div style='background-color:").concat(n,"'><span style='color:").concat(e.Palette.textColor(n),"'>").concat(i(t),"</span></div></div>")})},n.prototype.layerUpdate=function(n){var i=this;t.prototype.layerUpdate.call(this,n),this._palette=this._palette.switch(this.paletteID()),this.useClonedPalette()&&(this._palette=this._palette.cloneNotExists(this.paletteID()+"_"+this.id()));var o=this.cellFunc(this.latitudeColumn(),0),r=this.cellFunc(this.longitudeColumn(),0),a=this.cellFunc(this.weightColumn(),0),s=this.data(),l=e.extent(s,a),h=this.weightFormat()?e.format(this.weightFormat()):function(t){return t};this.clear(),s.forEach((function(t){var e=new Er.exports.Marker(function(t){return[+o(t),+r(t)]}(t),{icon:i.createIcon(a(t),i._palette(a(t),l[0],l[1]),h),origRow:t}).on("click",(function(e){return i.clickHandler(e,t)}));e.bindTooltip("Weight: "+a(t)),i.add(e)}))},n.prototype.clickHandler=function(t,e){},n}(jr);Wr.prototype._class+=" map_ClusterCircles",Wr.prototype._palette=e.Palette.rainbow("default"),Wr.prototype.publish("paletteID","YlOrRd","set","Color palette for this widget",Wr.prototype._palette.switch()),Wr.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette"),Wr.prototype.publish("latitudeColumn",null,"set","Latitude column",(function(){return this.columns()}),{optional:!0}),Wr.prototype.publish("longitudeColumn",null,"set","Longitude column",(function(){return this.columns()}),{optional:!0}),Wr.prototype.publish("weightColumn",null,"set","Weight column",(function(){return this.columns()}),{optional:!0}),Wr.prototype.publish("weightFormat",".2s","string","Number format for weight"),Wr.prototype.publish("opacity",.66,"number","Opacity",null,{tags:["Advanced"]});var Vr=function(t){function e(e,n){return t.call(this,e,u(u({},n),{onEachFeature:function(t,e){n.onEachFeature&&n.onEachFeature(t,e),function(t,e){var n=e.getLatLngs();n.forEach((function(t){t.forEach((function(t){if(Array.isArray(t)){var e=165,n=0,i=0,o=0,r=0;t.forEach((function(t){t.lat>-62&&(t.lng>e?++r:t.lng<-165&&++o,t.lng>0?++i:t.lng<0&&++n)})),o>0&&r>0&&t.forEach((function(t){t.lng>e&&n>i?t.lng-=360:t.lng<-165&&i>n&&(t.lng+=360)}))}}))})),e.setLatLngs(n)}(0,e)}}))||this}return h(e,t),e.prototype.addData=function(e){var n,i;if("Topology"===e.type){for(i in e.objects)e.objects.hasOwnProperty(i)&&(n=Mo(e,e.objects[i]),t.prototype.addData.call(this,n));return this}return t.prototype.addData.call(this,e),this},e}(Er.exports.GeoJSON),qr=null,Yr=null,Kr=null,Xr=null;!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}h(e,t),e.prototype.initStates=function(){return this._initPromise||(this._initPromise=new Promise((function(t,e){qr&&t(),No("".concat(Do(),"/us-states.json"),(function(e){for(var n in Kr=Mo((qr=e).topology,qr.topology.objects.states).features,Xr={},Kr)Kr[n].id&&(Xr[qr.stateNames[Kr[n].id].code]=Kr[n]);t()}))}))),this._initPromise},e.prototype.initCounties=function(){return this._initPromise||(this._initPromise=new Promise((function(t,e){Yr&&t(),No("".concat(Do(),"/us-counties.json"),(function(e){for(var n in Kr=Mo((Yr=e).topology,Yr.topology.objects.counties).features,Xr={},Kr)Kr[n].id&&(Xr[Kr[n].id]=Kr[n]);t()}))}))),this._initPromise},e.prototype.init=function(){return this.initCounties()},e.prototype.layerEnter=function(e){t.prototype.layerEnter.call(this,e);var n=new Vr(Kr,{style:function(t){return{color:"#000",opacity:1,weight:1,fillColor:"#35495d",fillOpacity:.2}}});this.add(n)}}(jr);yo(".leaflet-interactive.selected{stroke:red;stroke-width:1.25px}");var Jr=function(t){function n(){var n=t.call(this)||this;return n._dataMap={},n._dataMinWeight=null,n._dataMaxWeight=null,e.Utility.SimpleSelectionMixin.call(n),n}return h(n,t),n.prototype.hasBounds=function(){return!0},n.prototype.getBounds=function(){var e=t.prototype.getBounds.call(this);return e.isValid()?new Er.exports.LatLngBounds([e.getNorth(),e.getWest()],[e.getSouth(),e.getEast()]):new Er.exports.LatLngBounds([90,-180],[-90,180])},n.prototype.updateDataMap=function(t){this._dataMap={},this._dataMinWeight=null,this._dataMaxWeight=null;var e=this;t.forEach((function(t){e._dataMap[t[0]]=t,(!e._dataMinWeight||t[1]<e._dataMinWeight)&&(e._dataMinWeight=t[1]),(!e._dataMaxWeight||t[1]>e._dataMaxWeight)&&(e._dataMaxWeight=t[1])}))},n.prototype.data=function(e){var n=t.prototype.data.apply(this,arguments);return arguments.length&&this.updateDataMap(e),n},n.prototype.styleFeature=function(t){var e=this._dataMap[t.properties.hpccID],n=e?this._palette(e[1],this._dataMinWeight,this._dataMaxWeight):"transparent";return{color:this.meshVisible()?this.meshColor():void 0,opacity:1,weight:this.meshStrokeWidth(),fillColor:n,fillOpacity:this.opacity()}},n.prototype.svgGlowID=function(){return this.id()+"_svgGlow"},n.prototype.layerEnter=function(n){if(t.prototype.layerEnter.call(this,n),!this._svgElement){this._svgElement=e.select(n.getContainer()).select(".leaflet-pane.leaflet-overlay-pane > svg");var i=this._svgElement.append("defs");new e.SVGGlowFilter(i,this.svgGlowID()),this._selection.widgetElement(this._svgElement)}},n.prototype.layerUpdate=function(e){var n=this;this._prevFeatures!==this._features&&(this.clear(),this._topoJson=new Vr(this._features,{onEachFeature:function(t,e){e.on("click",(function(t){return n.clickHandler(t,e,e.feature.properties.hpccID)}))}}).bindTooltip((function(t){return n.tooltipHandler(t,t.feature.properties.hpccID)}),{direction:"top",sticky:!0}),this.add(this._topoJson)),t.prototype.layerUpdate.call(this,e),this._palette=this._palette.switch(this.paletteID()),this.useClonedPalette()&&(this._palette=this._palette.cloneNotExists(this.paletteID()+"_"+this.id())),this._topoJson.setStyle((function(t){return n.styleFeature(t)}))},n.prototype.clickHandler=function(t,e,n){var i=this._selection.click(t.originalEvent.target);return this.click(this.rowToObj(this._dataMap[n]),this.columns()[0],i),i},n.prototype.tooltipText=function(t,e){return e},n.prototype.tooltipHandler=function(t,e){var n=this._dataMap[e],i=n&&n[1]||"";return this.tooltipText(this.rowToObj(n),"<b>".concat(e,"</b>: ").concat(i))},n.prototype.click=function(t,e,n){},n}(jr);Jr.prototype._class+=" map_World",Jr.prototype._palette=e.Palette.rainbow("default"),Jr.prototype.mixin(e.Utility.SimpleSelectionMixin),Jr.prototype.publish("paletteID","YlOrRd","set","Color palette for this widget",Jr.prototype._palette.switch(),{tags:["Basic","Shared"]}),Jr.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette",null,{tags:["Intermediate","Shared"]}),Jr.prototype.publish("opacity",.5,"number","Opacity",null,{tags:["Advanced"]}),Jr.prototype.publish("meshVisible",!0,"boolean","Mesh Visibility"),Jr.prototype.publish("meshColor","black","html-color","Stroke Color"),Jr.prototype.publish("meshStrokeWidth",.25,"number","Stroke Width"),Jr.prototype.publish("internalOnly",!1,"boolean","Internal mesh only");var Qr=null,$r=function(t){function e(){return t.call(this)||this}return h(e,t),e.prototype.init=function(){var t=this;return this._initPromise||(this._initPromise=new Promise((function(t,e){Qr&&t(Qr),No("".concat(Do(),"/countries.json"),(function(e){t(Qr=e)}))})).then((function(e){var n;for(var i in t._features=Mo(e.topology,e.topology.objects.countries).features,t._features)if(t._features[i].id){var o=t._features[i].id,r=null===(n=e.countryNames[o])||void 0===n?void 0:n.name;t._features[i].properties.hpccID=r}}))),this._initPromise},e.prototype.tooltipHandler=function(t,e){var n=this._dataMap[e],i=n&&n[1]||"";return this.tooltipText(this.rowToObj(n),"<b>".concat(e,"</b>: ").concat(i))},e}(Jr);function ta(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}var ea=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._polylines=[],e._polygons=[],e._rectangles=[],e._circles=[],e}return h(e,t),e.prototype.hasBounds=function(){return!0},e.prototype.drawOptions=function(){var t={marker:!1,circlemarker:!1};return this.enableCircle()||(t.circle=!1),this.enablePolyline()||(t.polyline=!1),this.enableRectangle()||(t.rectangle=!1),this.enablePolygon()||(t.polygon=!1),t},e.prototype.save=function(){return{polylines:this._polylines.map((function(t){return t.getLatLngs()})),polygons:this._polygons.map((function(t){return t.getLatLngs()})),rectangles:this._rectangles.map((function(t){return t.getBounds()})),circles:this._circles.map((function(t){return{center:t.getLatLng(),radius:t.getRadius()}}))}},e.prototype.restore=function(t){var e=this;this.clear(),this._polylines=(t.polylines||[]).map((function(t){return new Er.exports.Polyline(t)})),this._polygons=(t.polygons||[]).map((function(t){return new Er.exports.Polygon(t)})),this._rectangles=(t.rectangles||[]).map((function(t){return new Er.exports.Rectangle(t)})),this._circles=(t.circles||[]).map((function(t){return new Er.exports.Circle(t.center,{radius:t.radius})})),this._polylines.forEach((function(t){return e.add(t)})),this._polygons.forEach((function(t){return e.add(t)})),this._rectangles.forEach((function(t){return e.add(t)})),this._circles.forEach((function(t){return e.add(t)}))},e.prototype.layerEnter=function(e){var n=this;t.prototype.layerEnter.call(this,e),e.on(Er.exports.Draw.Event.CREATED,(function(t){var e=t.layerType,i=t.layer;switch(e){case"polyline":n._polylines.push(i);break;case"polygon":n._polygons.push(i);break;case"rectangle":n._rectangles.push(i);break;case"circle":n._circles.push(i);break;default:alert(e)}n.add(i),n.changed("ADD",i)})),e.on(Er.exports.Draw.Event.EDITED,(function(t){t.layers.eachLayer((function(t){n.changed("UPDATE",t)}))})),e.on(Er.exports.Draw.Event.DELETED,(function(t){t.layers.eachLayer((function(t){ta(n._polylines,t),ta(n._polygons,t),ta(n._rectangles,t),ta(n._circles,t),n.changed("DELETE",t)}))}))},e.prototype.layerUpdate=function(e){t.prototype.layerUpdate.call(this,e),this.style("opacity",this.opacity());var n=this.drawOptions(),i=o.hashSum(n);this._drawOptionsHash!==i&&(this._drawOptionsHash=i,this._drawControl&&e.removeControl(this._drawControl),this._drawControl=new Er.exports.Control.Draw({position:"topleft",draw:n,edit:{featureGroup:this._layer}}),e.addControl(this._drawControl))},e.prototype.layerExit=function(e){t.prototype.layerExit.call(this,e)},e.prototype.changed=function(t,e){},e}(jr);ea.prototype._class+=" map_DrawLayer",ea.prototype.publish("opacity",1,"number","Layer Opacity"),ea.prototype.publish("enablePolyline",!0,"boolean","Enable Polyline Creation"),ea.prototype.publish("enablePolygon",!0,"boolean","Enable Polygon Creation"),ea.prototype.publish("enableRectangle",!0,"boolean","Enable Rectangle Creation"),ea.prototype.publish("enableCircle",!0,"boolean","Enable Circle Creation");var na=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.hasBounds=function(){return!0},e.prototype.layerUpdate=function(e){var n=this;t.prototype.layerUpdate.call(this,e),this.style("opacity",this.opacity());var i,o=this.columns(),r=this.latitudeColumn_exists()?o.indexOf(this.latitudeColumn()):0,a=this.longitudeColumn_exists()?o.indexOf(this.longitudeColumn()):1,s=o.indexOf(this.weightColumn());this.clear();var l=this.data().filter((function(t){return!n.omitNullLatLong()||!!t[r]&&!!t[a]})).map((function(t){return i?i.extend([t[r],t[a]]):i=new Er.exports.LatLngBounds([t[r],t[a]]),[t[r],t[a],n.weightColumn_exists()?t[s]:.5]})),h=new Er.exports.HeatLayer(l,{minOpacity:this.minOpacity(),max:this.max(),radius:this.radius(),blur:this.blur(),gradient:this.gradient()});h.getBounds=function(){return i},this.add(h)},e}(jr);na.prototype._class+=" map_Heat",na.prototype.publish("latitudeColumn",null,"set","Latitude column",(function(){return this.columns()}),{optional:!0}),na.prototype.publish("longitudeColumn",null,"set","Longitude column",(function(){return this.columns()}),{optional:!0}),na.prototype.publish("weightColumn",null,"set","Optional normalized intensity (0 -> 1) ",(function(){return this.columns()}),{optional:!0}),na.prototype.publish("omitNullLatLong",!0,"boolean","Remove lat=0,lng=0 from IconsData",null,{tags:["Basic"]}),na.prototype.publish("opacity",.5,"number","Layer Opacity"),na.prototype.publish("minOpacity",.5,"number","The minimum opacity the heat will start at",null,{tags:["Basic"]}),na.prototype.publish("max",1,"number","maximum point intensity, 1.0 by default",null,{tags:["Basic"]}),na.prototype.publish("radius",25,"number","radius of each point of the heatmap, 25 by default",null,{tags:["Basic"]}),na.prototype.publish("blur",15,"number","amount of blur, 15 by default",null,{tags:["Basic"]}),na.prototype.publish("gradient",null,"object","color gradient config",null,{tags:["Basic"],optional:!0});var ia=function(t){function e(e){return void 0===e&&(e=!1),t.call(this,e)||this}return h(e,t),e.prototype.hasBounds=function(){return!0},e.prototype.tooltipText=function(t,e){return""+e},e.prototype.popupText=function(t,e){return""+e},e.prototype.layerUpdate=function(e,n){var i=this;if(t.prototype.layerUpdate.call(this,e),n){var o=this.columns(),r=o.indexOf(this.latitudeColumn()),a=o.indexOf(this.longitudeColumn()),s=o.indexOf(this.tooltipColumn()),l=o.indexOf(this.popupColumn()),h=this._db.checksum(),u=this.hashSum([],{dbChecksum:h});this._hashSum!==u&&(this._hashSum=u,this.clear(),this.data().filter((function(t){return!i.omitNullLatLong()||!!t[r]&&!!t[a]})).forEach((function(t){var e=new Er.exports.Marker([t[r],t[a]],n(t)).on("click",(function(n){return i.clickHandler(n,e,t)})),o=i.tooltipText(i.rowToObj(t),i.propValue(s,t,""));o&&e.bindTooltip(o,{direction:i.tooltipDirection(),offset:Er.exports.point(i.tooltipOffsetX(),i.tooltipOffsetY())});var h=i.popupText(i.rowToObj(t),i.propValue(l,t,""));h&&e.bindPopup(h,{offset:Er.exports.point(i.popupOffsetX(),i.popupOffsetY())}),i.add(e)})))}},e.prototype.clickHandler=function(t,e,n){var i=this._selection.click(e._icon);this._currSelRow=i?n:void 0,this.click(this.rowToObj(n),"",i)},e.prototype.click=function(t,e,n){},e}(Gr);ia.prototype._class+=" map_Markers",ia.prototype.publish("latitudeColumn",null,"set","Latitude column",(function(){return this.columns()}),{optional:!0}),ia.prototype.publish("longitudeColumn",null,"set","Longitude column",(function(){return this.columns()}),{optional:!0}),ia.prototype.publish("omitNullLatLong",!0,"boolean","Remove lat=0,lng=0 from IconsData",null,{tags:["Basic"]}),ia.prototype.publish("tooltipColumn",null,"set","Tooltip column",(function(){return this.columns()}),{optional:!0}),ia.prototype.publish("tooltipDirection","auto","set","Tooltip direction",["auto","left","top","right","bottom","center"]),ia.prototype.publish("tooltipOffsetX",0,"number","Tooltip offset X"),ia.prototype.publish("tooltipOffsetY",0,"number","Tooltip offset Y"),ia.prototype.publish("popupColumn",null,"set","Popup column",(function(){return this.columns()}),{optional:!0}),ia.prototype.publish("popupOffsetX",0,"number","Tooltip offset X"),ia.prototype.publish("popupOffsetY",0,"number","Tooltip offset Y");var oa=function(t){function e(e){return void 0===e&&(e=!1),t.call(this,e)||this}return h(e,t),e.prototype.layerUpdate=function(e){var n=this,i=this.columns().indexOf(this.iconUrlColumn());t.prototype.layerUpdate.call(this,e,(function(t){return{icon:new Er.exports.Icon({iconUrl:n.propValue(i,t,n.iconUrl()),iconSize:[n.iconWidth(),n.iconHeight()],iconAnchor:[n.iconAnchorX(),n.iconAnchorY()],props:{owner:n,row:t}}),draggable:!1}}))},e}(ia);oa.prototype._class+=" map_Icons",oa.prototype.publish("iconUrl","","string","Icon URL",null),oa.prototype.publish("iconUrlColumn",null,"set","Icon URL column",(function(){return this.columns()}),{optional:!0}),oa.prototype.publish("iconWidth",32,"number","Icon width"),oa.prototype.publish("iconHeight",32,"number","Icon height"),oa.prototype.publish("iconAnchorX",16,"number","Icon Anchor X"),oa.prototype.publish("iconAnchorY",32,"number","Icon Anchor Y");var ra=function(t){function e(){return t.call(this,!0)||this}return h(e,t),e}(oa);function aa(t){return[t[1],t[0]]}ra.prototype._class+=" map_ClusterIcons";var sa=function(t,e){return e[0]<-90?t[0]++:e[0]>90&&t[1]++,t},la=function(t){return t>90?t-360:t},ha=function(t){return t<-90?t+360:t},ua=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return h(n,t),n.prototype.fixDateLine=function(t){var e,n=t.reduce(sa,[0,0]),i=n[0],o=n[1];return i&&o?t.map((e=i>o?la:ha,function(t){return[e(t[0]),t[1]]})):t},n.prototype.hasBounds=function(){return!0},n.prototype.updateHexagons=function(){var t=this;this._palette=this._palette.switch(this.paletteID()),this.useClonedPalette()&&(this._palette=this._palette.cloneNotExists(this.paletteID()+"_"+this.id()));var n=this.cellFunc(this.polygonColumn(),[]),i=this.cellFunc(this.weightColumn(),0),o=this.data(),r=e.extent(o,i);this.clear(),o.forEach((function(e){t.add(new Er.exports.Polygon(t.fixDateLine(n(e)).map(aa),{color:t._palette(r[1],r[0],r[1]),fillColor:t._palette(i(e),r[0],r[1]),fillOpacity:t.opacity(),weight:1,origRow:e}).on("click",(function(n){return t.clickHandler(n,e)})))}))},n.prototype.layerUpdate=function(e){t.prototype.layerUpdate.call(this,e),this.updateHexagons()},n.prototype.zoomEnd=function(e){t.prototype.zoomEnd.call(this,e)},n.prototype.moveEnd=function(e){t.prototype.moveEnd.call(this,e),this.updateHexagons()},n.prototype.clickHandler=function(t,e){},n}(jr);ua.prototype._class+=" map_Polygons",ua.prototype._palette=e.Palette.rainbow("default"),ua.prototype.publish("paletteID","YlOrRd","set","Color palette for this widget",ua.prototype._palette.switch(),{tags:["Basic","Shared"]}),ua.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette",null,{tags:["Intermediate","Shared"]}),ua.prototype.publish("polygonColumn",null,"set","Polygon column",(function(){return this.columns()}),{optional:!0}),ua.prototype.publish("weightColumn",null,"set","Weight column",(function(){return this.columns()}),{optional:!0}),ua.prototype.publish("opacity",.5,"number","Opacity",null,{tags:["Advanced"]});var ca=2048/Math.PI,pa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.lineData=function(){var t,e=this.columns(),n=e.indexOf(this.latitudeColumn()),i=e.indexOf(this.longitudeColumn()),o=[];return this.data().forEach((function(e){var r=[e[i],e[n]];t&&o.push({type:"LineString",coordinates:[r,t]}),t=r})),o},e.prototype.isNull=function(t){return!t[0]&&!t[1]},e.prototype.isNull2=function(t){return!!this.omitNullLatLong()&&(this.isNull(t[0])||this.isNull(t[1]))},e.prototype.layerUpdate=function(e,n){var i=this;t.prototype.layerUpdate.call(this,e,n);var o=this._lfd3._rootGroup;n=n||this._lfd3.projection,this._lfd3.svg().selectAll("defs").data([void 0]).enter().append("defs").append("marker").attr("class","marker").attr("id",this._id+"_arrowHead").attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerWidth",12).attr("markerHeight",12).attr("markerUnits","strokeWidth").attr("orient","auto").append("polyline").attr("points","0,0 10,5 0,10 1,5"),this._lfd3.svg().select("defs > marker").style("fill",this.strokeColor()).style("stroke",null);var r=n.latLngToLayerPoint({lat:0,lng:0}),a=go("Mercator").scale(ca).translate([r.x,r.y]),s=_i().projection(a),l=o.selectAll(".dataEdge").data(this.lineData().filter((function(t){return!i.isNull2(t.coordinates)})));l.enter().append("path").attr("class","dataEdge").attr("marker-end","url(#"+this._id+"_arrowHead)").merge(l).attr("d",s).style("stroke",this.strokeColor()).style("fill","none").attr("stroke-width",1/n.scale),l.exit().remove()},e.prototype.clickHandler=function(t,e){},e}(Ur);pa.prototype._class+=" map_Path",pa.prototype.publish("latitudeColumn",null,"set","Latitude column",(function(){return this.columns()}),{optional:!0}),pa.prototype.publish("longitudeColumn",null,"set","Longitude column",(function(){return this.columns()}),{optional:!0}),pa.prototype.publish("strokeColor"," #666666","html-color","Stroke Color",null,{optional:!0}),pa.prototype.publish("omitNullLatLong",!0,"boolean","Remove lat=0,lng=0 from pinsData",null,{tags:["Basic"]});var da=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.lineData=function(){var t=this.columns(),e=t.indexOf(this.latitudeColumn()),n=t.indexOf(this.longitudeColumn()),i=t.indexOf(this.latitude2Column()),o=t.indexOf(this.longitude2Column()),r=[];return this.data().forEach((function(t){var a=[t[n],t[e]],s=[t[o],t[i]];r.push({type:"LineString",coordinates:[a,s]})})),r},e}(pa);da.prototype._class+=" map_Lines",da.prototype.publish("latitude2Column",null,"set","Latitude column",(function(){return this.columns()}),{optional:!0}),da.prototype.publish("longitude2Column",null,"set","Longitude column",(function(){return this.columns()}),{optional:!0});var fa=function(t){function e(e){return void 0===e&&(e=!1),t.call(this,e)||this}return h(e,t),e.prototype.layerUpdate=function(e){var n=this,i=this.columns(),o=i.indexOf(this.faCharColumn()),r=i.indexOf(this.faCharColorColumn()),a=i.indexOf(this.strokeColorColumn()),s=i.indexOf(this.fillColorColumn());t.prototype.layerUpdate.call(this,e,(function(t){return{icon:Er.exports.BeautifyIcon({iconShape:"marker",icon:n.propValue(o,t,n.faChar()),textColor:n.propValue(r,t,n.faCharColor()),borderColor:n.propValue(a,t,n.strokeColor()),backgroundColor:n.propValue(s,t,n.fillColor()),props:{owner:n,row:t}}),draggable:!1}}))},e}(ia);fa.prototype._class+=" map_Pins",fa.prototype.publish("faChar","fa-circle","string","Default font awesome character"),fa.prototype.publish("faCharColumn",null,"set","Font awesome column",(function(){return this.columns()}),{optional:!0}),fa.prototype.publish("faCharColor","#ffffff","html-color","Default font awesome Color"),fa.prototype.publish("faCharColorColumn",null,"set","Font awesome color column",(function(){return this.columns()}),{optional:!0}),fa.prototype.publish("strokeColor","transparent","html-color","Default stroke Color",null,{optional:!0}),fa.prototype.publish("strokeColorColumn",null,"set","Stroke color column",(function(){return this.columns()}),{optional:!0}),fa.prototype.publish("fillColor","#376cea","html-color","Default fill Color",null,{optional:!0}),fa.prototype.publish("fillColorColumn",null,"set","Fill color column",(function(){return this.columns()}),{optional:!0});var _a=function(t){function e(){return t.call(this,!0)||this}return h(e,t),e}(fa);_a.prototype._class+=" map_ClusterPins";var ma={GB:["administrative_area_level_3","administrative_area_level_2","administrative_area_level_1"],IE:["administrative_area_level_2","administrative_area_level_1"],ND:["administrative_area_level_2","administrative_area_level_1"]},ga={};function ya(t){return ga[t]||(ga[t]={topology:void 0,nameIdx:{},codeIdx:{}}),ga[t]}var va=function(t){function e(){return t.call(this)||this}return h(e,t),e.prototype.fetchTopo=function(t){return ya(t).topology?Promise.resolve(ya(t).topology):new Promise((function(e,n){No("".concat(Do(),"/").concat(t,".json"),(function(n){ya(t).topology=n,e(n)}))}))},e.prototype.fetchTopoIdx=function(t){for(var e in ya(t).nameIdx)return Promise.resolve(ya(t).nameIdx);return new Promise((function(e,n){No("".concat(Do(),"/").concat(t,"_idx.json"),(function(n){var i,o=ya(t),r=o.nameIdx,a=o.codeIdx;null===(i=ma[t])||void 0===i||i.forEach((function(t){var e=function(e){var i=n[t][e];Array.isArray(i)&&(r[e]||(r[e]={code:void 0,codes:[]}),r[e].codes=r[e].codes.concat(i),1===i.length&&(r[e].code=r[e].codes[0]),i.forEach((function(t){a[t]||(a[t]={name:void 0,score:9999,names:[]}),i.length<=a[t].score&&(a[t].name=e,a[t].score=i.length),a[t].names.push(e)})))};for(var i in n[t])e(i)})),e(r)}))}))},e.prototype.updateDataMap=function(e){var n=[],i=ya(this.region()).nameIdx;return e.forEach((function(t){var e,o=null===(e=i[t[0]])||void 0===e?void 0:e.codes;o?null==o||o.forEach((function(e){n.push([e,t[1],t])})):n.push([t[0],t[1],t])})),t.prototype.updateDataMap.call(this,n)},e.prototype.init=function(){var t=this,e=this.region();return this._initPromise&&this._prevRegion===e||(this._prevRegion=e,this._initPromise=Promise.all([this.fetchTopo(e),this.fetchTopoIdx(e)]).then((function(e){var n=e[0];for(var i in e[1],t._features=Mo(n,n.objects.PolbndA).features,t._features){var o=t._features[i].id||i;t._features[i].properties.hpccID=o}t.updateDataMap(t.data())}))),this._initPromise},e.prototype.tooltipHandler=function(t,e){var n,i=this._dataMap[e],o=ya(this.region()).codeIdx,r=i&&i[1]||"",a=null===(n=o[e])||void 0===n?void 0:n.names.map((function(t){var n;return(null===(n=o[e])||void 0===n?void 0:n.name)===t?"<u>".concat(t,"</u>"):t})).join(", ");return this.tooltipText(this.rowToObj(i),"<b>".concat(i&&i[2][0]||a||e,"</b>: ").concat(r))},e}(Jr);va.prototype._class+=" map_Region",va.prototype.publish("region","GB","set","Region Data",["AT","BE","BG","BR","CHLI","CY","CZ","DE","DK","EE","ES","FI","FR","GB","GE","GR","HR","HU","IE","IS","IT","KS","LT","LU","LV","MD","MK","MT","ND","NL","NO","PL","PT","RO","RS","SE","SI","SK","UA"]);var ba=function(t){function n(e){return void 0===e&&(e=!1),t.call(this,e)||this}return h(n,t),n.prototype.layerUpdate=function(n){var i=this,o=this.columns(),r=o.indexOf(this.textColumn()),a=o.indexOf(this.textColorColumn()),s=o.indexOf(this.strokeColorColumn()),l=o.indexOf(this.fillColorColumn());t.prototype.layerUpdate.call(this,n,(function(t){var n=i.propValue(r,t,i.text()),o=i.textSize(n,i.fontFamily(),i.fontSize());return i.textFormat_exists()&&(n=e.format(i.textFormat())(n)),{icon:Er.exports.BeautifyIcon({iconShape:"rectangle",iconAnchor:[o.width/2+i.textOffsetX(),o.height/2+i.textOffsetY()],html:'<span style="\n '.concat(i.fontFamily_exists()?"font-family:".concat(i.fontFamily(),";"):"","\n font-size:").concat(i.fontSize(),'px;\n pointer-events: none;\n white-space:nowrap;\n ">').concat(n,"</span>"),textColor:i.propValue(a,t,i.textColor()),borderColor:i.propValue(s,t,i.strokeColor()),backgroundColor:i.propValue(l,t,i.fillColor()),props:{owner:i,row:t}}),draggable:!1}}))},n}(ia);ba.prototype._class+=" map_Text",ba.prototype.publish("textOffsetX",0,"number","Horizontal offset of text"),ba.prototype.publish("textOffsetY",0,"number","Vertical offset of text"),ba.prototype.publish("text","","string","Default text"),ba.prototype.publish("textColumn",null,"set","Font awesome column",(function(){return this.columns()}),{optional:!0}),ba.prototype.publish("textColor","#ffffff","html-color","Default font awesome Color"),ba.prototype.publish("textColorColumn",null,"set","Text color column",(function(){return this.columns()}),{optional:!0}),ba.prototype.publish("textFontFamily",null,"set","Text color column",(function(){return this.columns()}),{optional:!0}),ba.prototype.publish("strokeColor","transparent","html-color","Default stroke Color",null,{optional:!0}),ba.prototype.publish("strokeColorColumn",null,"set","Stroke color column",(function(){return this.columns()}),{optional:!0}),ba.prototype.publish("fillColor","#376cea","html-color","Default fill Color",null,{optional:!0}),ba.prototype.publish("fillColorColumn",null,"set","Fill color column",(function(){return this.columns()}),{optional:!0}),ba.prototype.publish("fontFamily",null,"string","Font family",null,{optional:!0}),ba.prototype.publish("fontSize",16,"number","Font family",null,{optional:!0}),ba.prototype.publish("textFormat",null,"string","Format rules for text",null,{optional:!0});var La=function(t){function e(){return t.call(this)||this}return h(e,t),e.prototype.getBounds=function(){var e=t.prototype.getBounds.call(this);return new Er.exports.LatLngBounds([e.getNorth(),e.getWest()],[17.755278,-64.565])},e}(Jr),wa=null,xa={},ka=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.init=function(){var t=this;return this._initPromise||(this._initPromise=new Promise((function(t,e){wa&&t(wa),No("".concat(Do(),"/us-counties.json"),(function(e){t(wa=e)}))})).then((function(e){for(var n in t._features=Mo(e.topology,e.topology.objects.counties).features,t._features)if(t._features[n].id){var i=t._features[n].id,o=e.countyNames[i];t._features[n].properties.hpccID=i,xa[i]=o}}))),this._initPromise},e.prototype.tooltipHandler=function(t,e){var n=this._dataMap[e],i=n&&n[1]||"";return this.tooltipText(this.rowToObj(n),"<b>".concat(xa[e],"</b>: ").concat(i))},e}(La);ka.prototype._class+=" map_USCounties";var Ma=null,Ca={},Pa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.init=function(){var t=this;return this._initPromise||(this._initPromise=new Promise((function(t,e){Ma&&t(Ma),No("".concat(Do(),"/us-states.json"),(function(e){t(Ma=e)}))})).then((function(e){for(var n in t._features=Mo(e.topology,e.topology.objects.states).features,t._features)if(t._features[n].id){var i=e.stateNames[t._features[n].id],o=i.code,r=i.name;t._features[n].properties.hpccID=o,Ca[o]=r}}))),this._initPromise},e.prototype.tooltipHandler=function(t,e){var n=this._dataMap[e],i=n&&n[1]||"";return this.tooltipText(this.rowToObj(n),"<b>".concat(Ca[e],"</b>: ").concat(i))},e}(La);Pa.prototype._class+=" map_USStates";var Ea=Object.freeze({__proto__:null,Circles:Hr,D3Circles:Fr,ClusterCircles:Wr,Countries:$r,DrawLayer:ea,FeatureLayer:jr,ClusterLayer:Gr,D3SurfaceLayer:Ur,HeatLayer:na,Icons:oa,ClusterIcons:ra,Leaflet:Rr,Markers:ia,Polygons:ua,Path:pa,Lines:da,Pins:fa,ClusterPins:_a,Region:va,Text:ba,TileLayer:Tr,USCounties:ka,USStates:Pa,World:Jr});t.BUILD_VERSION="2.102.10",t.CanvasPinLayer=xo,t.CanvasPins=w,t.Choropleth=Ao,t.ChoroplethContinents=Uo,t.ChoroplethCounties=Vo,t.ChoroplethCountries=Go,t.ChoroplethStates=Xo,t.ChoroplethStatesHeat=Jo,t.GMap=sr,t.GMapCounties=ur,t.GMapGraph=cr,t.GMapHeat=pr,t.GMapLayered=hr,t.GMapPin=fr,t.GMapPinLine=mr,t.GeoHash=Qo,t.Graph=gr,t.Graticule=yr,t.Heat=vr,t.IChoropleth=br,t.Layer=wo,t.Layered=bo,t.Leaflet=Ea,t.Lines=_r,t.OpenStreet=Mr,t.PKG_NAME="@hpcc-js/map",t.PKG_VERSION="2.75.5",t.Pins=dr,t.TestHeatMap=Cr,t.TopoJSONChoropleth=Pr,t.projections=_o,t.requireGoogleMap=rr,t.requireGoogleMapTimeout=function(t){or=t},t.resolve=go,t.topoJsonFolder=Do,t.types=fo,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
22
22
|
//# sourceMappingURL=index.min.js.map
|