f&&(v>d&&gd&&v
c&&(c=y)}var _=[];if(u&&c0&&Math.abs(x-n[w-1][0])>f){var k=parseFloat(n[w-1][0]),C=parseFloat(n[w-1][1]),T=parseFloat(n[w][0]),E=parseFloat(n[w][1]);if(k>-180&&k-180&&n[w-1][0]
d&&k<180&&-180===T&&w+1d&&n[w-1][0]<180){b.push([180,n[w][1]]),w++,b.push([n[w][0],n[w][1]]);continue}if(kd){var S=k;k=T,T=S;var P=C;C=E,E=P}if(k>d&&T
=180&&kd?180:-180,I]),(b=[]).push([n[w-1][0]>d?-180:180,I]),_.push(b)}else b=[],_.push(b);b.push([x,n[w][1]])}else b.push([n[w][0],n[w][1]])}}else{var O=[];_.push(O);for(var A=0;Ap/2;k&&(x-=p/4);for(var C=o([]),T=0;T<_;T++)for(var E=0;E<=w;E++){var S=T%2==1;if(!(0===E&&S||0===E&&k)){var P=T*g+t[0]-b,L=E*v+t[1]+x;S&&(L-=p/2),r?C.features.push.apply(C.features,d([P,L],s/2,l/2)):C.features.push(h([P,L],s/2,l/2))}}return C}},{"@turf/distance":143,"@turf/helpers":146}],143:[function(t,e,n){arguments[4][8][0].apply(n,arguments)},{"@turf/helpers":144,"@turf/invariant":145,dup:8}],144:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],145:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],146:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],147:[function(t,e,n){var i=t("@turf/distance"),r=t("@turf/square-grid"),a=t("@turf/centroid"),o=t("@turf/bbox");e.exports=function(t,e,n,s,l){if(0!==t.features.filter((function(t){return t.properties&&t.properties.hasOwnProperty(e)})).length){for(var u=r(o(t),s,l),c=u.features.length,h=0;h=i;P--)for(var L=e;L<=n-1;L++){var I,O;if(I=Math.min(t[L][P],t[L][P+1]),O=Math.min(t[L+1][P],t[L+1][P+1]),v=Math.min(I,O),I=Math.max(t[L][P],t[L][P+1]),O=Math.max(t[L+1][P],t[L+1][P+1]),(y=Math.max(I,O))>=l[0]&&v<=l[s-1])for(var A=0;A=v&&l[A]<=y){for(var M=4;M>=0;M--)M>0?(u[M]=t[L+T[M-1]][P+E[M-1]]-l[A],h[M]=a[L+T[M-1]],d[M]=o[P+E[M-1]]):(u[0]=.25*(u[1]+u[2]+u[3]+u[4]),h[0]=.5*(a[L]+a[L+1]),d[0]=.5*(o[P]+o[P+1])),u[M]>1e-10?c[M]=1:u[M]<-1e-10?c[M]=-1:c[M]=0;for(M=1;M<=4;M++)if(m=4!=M?M+1:1,0!=(g=S[c[f=M]+1][c[0]+1][c[m]+1])){switch(g){case 1:w=h[f],k=d[f],x=h[0],C=d[0];break;case 2:w=h[0],k=d[0],x=h[m],C=d[m];break;case 3:w=h[m],k=d[m],x=h[f],C=d[f];break;case 4:w=h[f],k=d[f],x=_(0,m),C=b(0,m);break;case 5:w=h[0],k=d[0],x=_(m,f),C=b(m,f);break;case 6:w=h[m],k=d[m],x=_(f,0),C=b(f,0);break;case 7:w=_(f,0),k=b(f,0),x=_(0,m),C=b(0,m);break;case 8:w=_(0,m),k=b(0,m),x=_(m,f),C=b(m,f);break;case 9:w=_(m,f),k=b(m,f),x=_(f,0),C=b(f,0)}p(w,k,x,C,l[A],A)}}}}},{}],169:[function(t,e,n){var i=t("@turf/tin"),r=t("@turf/inside"),a=t("@turf/point-grid"),o=t("@turf/distance"),s=t("@turf/bbox"),l=t("@turf/planepoint"),u=t("@turf/helpers").featureCollection,c=t("@turf/helpers").lineString,h=t("@turf/helpers").point,d=t("@turf/square"),p=t("./conrec");e.exports=function(t,e,n,f){for(var m=i(t,e),g=s(t),v=d(g),y=o(h([v[0],v[1]]),h([v[2],v[1]]),"kilometers")/n,_=a(v,y,"kilometers"),b=[],w=0;w<_.features.length;w++)for(var x=_.features[w],k=0;k2){var n=[];t.forEach((function(t){n.push([t.x,t.y])}));var i=c(n);i.properties={},i.properties[e]=t.level,D.features.push(i)}})),D}},{"./conrec":168,"@turf/bbox":170,"@turf/distance":172,"@turf/helpers":175,"@turf/inside":176,"@turf/planepoint":178,"@turf/point-grid":179,"@turf/square":186,"@turf/tin":190}],170:[function(t,e,n){arguments[4][18][0].apply(n,arguments)},{"@turf/meta":171,dup:18}],171:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],172:[function(t,e,n){arguments[4][8][0].apply(n,arguments)},{"@turf/helpers":173,"@turf/invariant":174,dup:8}],173:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],174:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],175:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],176:[function(t,e,n){arguments[4][72][0].apply(n,arguments)},{"@turf/invariant":177,dup:72}],177:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],178:[function(t,e,n){e.exports=function(t,e){var n=t.geometry.coordinates[0],i=t.geometry.coordinates[1],r=e.geometry.coordinates[0][0][0],a=e.geometry.coordinates[0][0][1],o=e.properties.a,s=e.geometry.coordinates[0][1][0],l=e.geometry.coordinates[0][1][1],u=e.properties.b,c=e.geometry.coordinates[0][2][0],h=e.geometry.coordinates[0][2][1],d=e.properties.c;return(d*(n-r)*(i-l)+o*(n-s)*(i-h)+u*(n-c)*(i-a)-u*(n-r)*(i-h)-d*(n-s)*(i-a)-o*(n-c)*(i-l))/((n-r)*(i-l)+(n-s)*(i-h)+(n-c)*(i-a)-(n-r)*(i-h)-(n-s)*(i-a)-(n-c)*(i-l))}},{}],179:[function(t,e,n){var i=t("@turf/helpers").point,r=t("@turf/helpers").featureCollection,a=t("@turf/distance"),o=t("@turf/bbox");e.exports=function(t,e,n){var s=[];if(!t)throw new Error("bbox is required");if(Array.isArray(t)||(t=o(t)),4!==t.length)throw new Error("bbox must contain 4 numbers");for(var l=t[0],u=t[1],c=t[2],h=t[3],d=e/a(i([l,u]),i([c,u]),n)*(c-l),p=e/a(i([l,u]),i([l,h]),n)*(h-u),f=l;f<=c;){for(var m=u;m<=h;)s.push(i([f,m])),m+=p;f+=d}return r(s)}},{"@turf/bbox":180,"@turf/distance":182,"@turf/helpers":185}],180:[function(t,e,n){arguments[4][18][0].apply(n,arguments)},{"@turf/meta":181,dup:18}],181:[function(t,e,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],182:[function(t,e,n){arguments[4][8][0].apply(n,arguments)},{"@turf/helpers":183,"@turf/invariant":184,dup:8}],183:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],184:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],185:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],186:[function(t,e,n){var i=t("@turf/distance");e.exports=function(t){var e=t[0],n=t[1],r=t[2],a=t[3];if(i(t.slice(0,2),[r,n])>=i(t.slice(0,2),[e,a])){var o=(n+a)/2;return[e,o-(r-e)/2,r,o+(r-e)/2]}var s=(e+r)/2;return[s-(a-n)/2,n,s+(a-n)/2,a]}},{"@turf/distance":187}],187:[function(t,e,n){arguments[4][8][0].apply(n,arguments)},{"@turf/helpers":188,"@turf/invariant":189,dup:8}],188:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],189:[function(t,e,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],190:[function(t,e,n){arguments[4][82][0].apply(n,arguments)},{"@turf/helpers":191,dup:82}],191:[function(t,e,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],192:[function(t,e,n){var i=t("@turf/helpers").point;e.exports=function(t){var e,n,r={type:"FeatureCollection",features:[]};if("LineString"===(n="Feature"===t.type?t.geometry:t).type)e=[n.coordinates];else if("MultiLineString"===n.type)e=n.coordinates;else if("MultiPolygon"===n.type)e=[].concat.apply([],n.coordinates);else{if("Polygon"!==n.type)throw new Error("Input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry");e=n.coordinates}return e.forEach((function(t){e.forEach((function(e){for(var n=0;n