From a59b2ce2aeec1c21c5c686dd834ec43bde080f6a Mon Sep 17 00:00:00 2001
From: Eric Leong
+
+
+
+
+
+
+
+
+
+
>1)+h+e+S+L.slice(k);break;default:e=L+h+e+S}return a(e)}return m=void 0===m?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=Cu(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(bu(t)/3))),i=Math.pow(10,-r),o=Au[8+r/3];return function(e){return n(i*e)+o}}}};function Pu(e){return ku=Iu(e),Lu=ku.format,Mu=ku.formatPrefix,ku}Pu({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var Ru=function(e){return Math.max(0,-bu(Math.abs(e)))},Fu=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(bu(t)/3)))-bu(Math.abs(e)))},Yu=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,bu(t)-bu(e))+1},ju=function(){return new Bu};function Bu(){this.reset()}Bu.prototype={constructor:Bu,reset:function(){this.s=this.t=0},add:function(e){Wu(Hu,e,this.t),Wu(this,Hu.s,this.s),this.s?this.t+=Hu.t:this.s=Hu.t},valueOf:function(){return this.s}};var Hu=new Bu;function Wu(e,t,n){var r=e.s=t+n,i=r-t,o=r-i;e.t=t-o+(n-i)}var Vu=1e-6,zu=1e-12,Uu=Math.PI,qu=Uu/2,Ku=Uu/4,Gu=2*Uu,$u=180/Uu,Zu=Uu/180,Ju=Math.abs,Xu=Math.atan,Qu=Math.atan2,ec=Math.cos,tc=Math.ceil,nc=Math.exp,rc=(Math.floor,Math.log),ic=Math.pow,oc=Math.sin,sc=Math.sign||function(e){return e>0?1:e<0?-1:0},ac=Math.sqrt,uc=Math.tan;function cc(e){return e>1?0:e<-1?Uu:Math.acos(e)}function lc(e){return e>1?qu:e<-1?-qu:Math.asin(e)}function dc(e){return(e=oc(e/2))*e}function hc(){}function fc(e,t){e&&gc.hasOwnProperty(e.type)&&gc[e.type](e,t)}var pc={Feature:function(e,t){fc(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,o=ec(t=(t*=Zu)/2+Ku),s=oc(t),a=Cc*s,u=wc*o+a*ec(i),c=a*r*oc(i);xc.add(Qu(c,u)),bc=e,wc=o,Cc=s}var Nc=function(e){return kc.reset(),Sc(e,Lc),2*kc};function Oc(e){return[Qu(e[1],e[0]),lc(e[2])]}function Ac(e){var t=e[0],n=e[1],r=ec(n);return[r*ec(t),r*oc(t),oc(n)]}function Ic(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Pc(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Rc(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Fc(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Yc(e){var t=ac(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var jc,Bc,Hc,Wc,Vc,zc,Uc,qc,Kc,Gc,$c=ju(),Zc={point:Jc,lineStart:Qc,lineEnd:el,polygonStart:function(){Zc.point=tl,Zc.lineStart=nl,Zc.lineEnd=rl,$c.reset(),Lc.polygonStart()},polygonEnd:function(){Lc.polygonEnd(),Zc.point=Jc,Zc.lineStart=Qc,Zc.lineEnd=el,xc<0?(jc=-(Hc=180),Bc=-(Wc=90)):$c>Vu?Wc=90:$c<-Vu&&(Bc=-90),Gc[0]=jc,Gc[1]=Hc},sphere:function(){jc=-(Hc=180),Bc=-(Wc=90)}};function Jc(e,t){Kc.push(Gc=[jc=e,Hc=e]),t >>1;c[g]0)for(var n,r,i,o,s,a,u=0,c=e[t[0]].length;u