text: !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.dl=t()}}(function(){var t;return function n(t,e,r){function i(a,o){if(!e[a]){if(!t[a]){var s="function"==typeof require&&require;if(!o&&s)return s(a,!0);if(u)return u(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=e[a]={exports:{}};t[a][0].call(f.exports,function(n){var e=t[a][1][n];return i(e?e:n)},f,f.exports,n,t,e,r)}return e[a].exports}for(var u="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,n,e){},{}],2:[function(n,e,r){!function(n,i){"object"==typeof r&&"undefined"!=typeof e?i(r):"function"==typeof t&&t.amd?t(["exports"],i):i(n.dsv={})}(this,function(t){"use strict";var n=function(t){function n(t,n){var r;return e(t,function(t,e){if(r)return r(t,e-1);var i=new Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+"]"}).join(",")+"}");r=n?function(t,e){return n(i(t),e)}:i})}function e(t,n){function e(){if(f>=c)return a;if(i)return i=!1,u;var n=f;if(34===t.charCodeAt(n)){for(var e=n;e++<c;)if(34===t.charCodeAt(e)){if(34!==t.charCodeAt(e+1))break;++e}f=e+2;var r=t.charCodeAt(e+1);return 13===r?(i=!0,10===t.charCodeAt(e+2)&&++f):10===r&&(i=!0),t.slice(n+1,e).replace(/""/g,'"')}for(;c>f;){var r=t.charCodeAt(f++),o=1;if(10===r)i=!0;else if(13===r)i=!0,10===t.charCodeAt(f)&&(++f,++o);else if(r!==s)continue;return t.slice(n,f-o)}return t.slice(n)}for(var r,i,u={},a={},o=[],c=t.length,f=0,l=0;(r=e())!==a;){for(var h=[];r!==u&&r!==a;)h.push(r),r=e();n&&null==(h=n(h,l++))||o.push(h)}return o}function r(n){if(Array.isArray(n[0]))return i(n);var e=Object.create(null),r=[];return n.forEach(function(t){for(var n in t)(n+="")in e||r.push(e[n]=n)}),[r.map(a).join(t)].concat(n.map(function(n){return r.map(function(t){return a(n[t])}).join(t)})).join("\n")}function i(t){return t.map(u).join("\n")}function u(n){return n.map(a).join(t)}function a(t){return o.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var o=new RegExp('["'+t+"\n]"),s=t.charCodeAt(0);return{parse:n,parseRows:e,format:r,formatRows:i}};t.csv=n(","),t.tsv=n("	"),t.dsv=n})},{}],3:[function(n,e,r){!function(n,i){"object"==typeof r&&"undefined"!=typeof e?i(r):"function"==typeof t&&t.amd?t(["exports"],i):i(n.format={})}(this,function(t){"use strict";function n(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function e(t){return t=n(Math.abs(t)),t?t[1]:NaN}function r(t,e){var r=n(t,e);if(!r)return t+"";var i=r[0],u=r[1],a=u-(m=3*Math.max(-8,Math.min(8,Math.floor(u/3))))+1,o=i.length;return a===o?i:a>o?i+new Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+n(t,e+a-1)[0]}function i(t,e){var r=n(t,e);if(!r)return t+"";var i=r[0],u=r[1];return 0>u?"0."+new Array(-u).join("0")+i:i.length>u+1?i.slice(0,u+1)+"."+i.slice(u+1):i+new Array(u-i.length+2).join("0")}function u(t,n){t=t.toPrecision(n);t:for(var e,r=t.length,i=1,u=-1;r>i;++i)switch(t[i]){case".":u=e=i;break;case"0":0===u&&(u=i),e=i;break;case"e":break t;default:u>0&&(u=0)}return u>0?t.slice(0,u)+t.slice(e+1):t}function a(t){if(!(n=v.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",r=n[2]||">",i=n[3]||"-",u=n[4]||"",a=!!n[5],o=n[6]&&+n[6],s=!!n[7],c=n[8]&&+n[8].slice(1),f=n[9]||"";"n"===f?(s=!0,f="g"):p[f]||(f=""),(a||"0"===e&&"="===r)&&(a=!0,e="0",r="="),this.fill=e,this.align=r,this.sign=i,this.symbol=u,this.zero=a,this.width=o,this.comma=s,this.precision=c,this.type=f}function o(t){return new a(t)}function s(t){return t}function c(t,n){return function(e,r){for(var i=e.length,u=[],a=0,o=t[0],s=0;i>0&&o>0&&(s+o+1>r&&(o=Math.max(1,r-s)),u.push(e.substring(i-=o,i+o)),!((s+=o+1)>r));)o=t[a=(a+1)%t.length];return u.reverse().join(n)}}function f(t){function n(t){t=o(t);var n=t.fill,e=t.align,r=t.sign,s=t.symbol,c=t.zero,f=t.width,l=t.comma,h=t.precision,d=t.type,v="$"===s?u[0]:"#"===s&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",y="$"===s?u[1]:/[%p]/.test(d)?"%":"",x=p[d],M=!d||/[defgprs%]/.test(d);return h=null==h?d?6:12:/[gprs]/.test(d)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),function(t){var u=v,o=y;if("c"===d)o=x(t)+o,t="";else{t=+t;var s=(0>t||0>1/t)&&(t*=-1,!0);if(t=x(t,h),u=(s?"("===r?r:"-":"-"===r||"("===r?"":r)+u,o=o+("s"===d?g[8+m/3]:"")+(s&&"("===r?")":""),M)for(var p,w=-1,b=t.length;++w<b;)if(p=t.charCodeAt(w),48>p||p>57){o=(46===p?a+t.slice(w+1):t.slice(w))+o,t=t.slice(0,w);break}}l&&!c&&(t=i(t,1/0));var _=u.length+t.length+o.length,D=f>_?new Array(f-_+1).join(n):"";switch(l&&c&&(t=i(D+t,D.length?f-o.length:1/0),D=""),e){case"<":return u+t+o+D;case"=":return u+D+t+o;case"^":return D.slice(0,_=D.length>>1)+u+t+o+D.slice(_)}return D+u+t+o}}function r(t,r){var i=n((t=o(t),t.type="f",t)),u=3*Math.max(-8,Math.min(8,Math.floor(e(r)/3))),a=Math.pow(10,-u),s=g[8+u/3];return function(t){return i(a*t)+s}}var i=t.grouping&&t.thousands?c(t.grouping,t.thousands):s,u=t.currency,a=t.decimal;return{format:n,formatPrefix:r}}function l(t,n){return Math.max(0,e(Math.abs(n))-e(Math.abs(t)))+1}function h(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(e(n)/3)))-e(Math.abs(t)))}function d(t){return Math.max(0,-e(Math.abs(t)))}var m,g=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],p={"":u,"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return i(100*t,n)},r:i,s:r,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},v=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var y=f({decimal:".",thousands:",",grouping:[3],currency:["$",""]});t.format=y.format,t.formatPrefix=y.formatPrefix,t.formatSpecifier=o,t.localeFormat=f,t.precisionFixed=d,t.precisionPrefix=h,t.precisionRound=l})},{}],4:[function(n,e,r){"undefined"==typeof Map?(Map=function(){this.clear()},Map.prototype={set:function(t,n){return this._[t]=n,this},get:function(t){return this._[t]},has:function(t){return t in this._},"delete":function(t){return t in this._&&delete this._[t]},clear:function(){this._=Object.create(null)},get size(){var t=0;for(var n in this._)++t;return t},forEach:function(t){for(var n in this._)t(this._[n],n,this)}}):function(){var t=new Map;t.set(0,0)!==t&&(t=t.set,Map.prototype.set=function(){return t.apply(this,arguments),this})}(),function(n,i){"object"==typeof r&&"undefined"!=typeof e?i(r):"function"==typeof t&&t.amd?t(["exports"],i):i(n.timeFormat={})}(this,function(t){"use strict";function n(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function e(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function r(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function i(t,n,e){var r=rt.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function u(t,n,e){return/^[+-]\d{4}$/.test(n=n.slice(e,e+5))?(t.Z=-n,e+5):-1}function a(t,n,e){var r=it.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function o(t,n,e){var r=it.exec(n.slice(e));return r?(t.U=+r[0],e+r[0].length):-1}function s(t,n,e){var r=it.exec(n.slice(e));return r?(t.W=+r[0],e+r[0].length):-1}function c(t,n,e){var r=it.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function f(t,n,e){var r=it.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function l(t,n,e){var r=it.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function h(t,n,e){var r=it.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function d(t,n,e){var r=it.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function m(t,n,e){var r=it.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function g(t,n,e){var r=it.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function p(t,n,e){var r=it.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function v(t,n,e){var r=it.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function y(){return"%"}function x(){return"+0000"}function M(t,n,e){var r=0>t?"-":"",i=(r?-t:t)+"",u=i.length;return r+(e>u?new Array(e-u+1).join(n)+i:i)}function w(t,n){return M(t.getUTCFullYear()%1e4,n,4)}function b(t,n){return M(t.getUTCFullYear()%100,n,2)}function _(t,n,e){function r(n){return t(n=new Date(+n)),n}return r.floor=r,r.round=function(e){var r=new Date(+e),i=new Date(e-1);return t(r),t(i),n(i,1),i-e>e-r?r:i},r.ceil=function(e){return t(e=new Date(e-1)),n(e,1),e},r.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},r.range=function(e,r,i){var u=[];if(e=new Date(e-1),r=new Date(+r),i=null==i?1:Math.floor(i),!(r>e&&i>0))return u;for(n(e,1),t(e),r>e&&u.push(new Date(+e));n(e,i),t(e),r>e;)u.push(new Date(+e));return u},r.filter=function(e){return _(function(n){for(;t(n),!e(n);)n.setTime(n-1)},function(t,r){for(;--r>=0;)for(;n(t,1),!e(t););})},e&&(r.count=function(n,r){return at.setTime(+n),ut.setTime(+r),t(at),t(ut),Math.floor(e(at,ut))}),r}function D(t){return _(function(n){n.setUTCHours(0,0,0,0),n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7)},function(t,n){t.setUTCDate(t.getUTCDate()+7*n)},function(t,n){return(n-t)/6048e5})}function T(t,n){return M(st.count(ot(t),t),n,2)}function C(t){return t.getUTCDay()}function U(t,n){return M(ct.count(ot(t),t),n,2)}function $(t,n){return M(t.getUTCSeconds(),n,2)}function S(t,n){return M(t.getUTCMinutes(),n,2)}function j(t,n){return M(t.getUTCMonth()+1,n,2)}function F(t,n){return M(t.getUTCMilliseconds(),n,3)}function q(t,n){return M(1+ft.count(ot(t),t),n,3)}function k(t,n){return M(t.getUTCHours()%12||12,n,2)}function A(t,n){return M(t.getUTCHours(),n,2)}function L(t,n){return M(t.getUTCDate(),n,2)}function O(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+M(n/60|0,"0",2)+M(n%60,"0",2)}function H(t,n){return M(t.getFullYear()%1e4,n,4)}function Y(t,n){return M(t.getFullYear()%100,n,2)}function E(t){return _(function(n){n.setHours(0,0,0,0),n.setDate(n.getDate()-(n.getDay()+7-t)%7)},function(t,n){t.setDate(t.getDate()+7*n)},function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}function N(t,n){return M(ht.count(lt(t),t),n,2)}function z(t){return t.getDay()}function V(t,n){return M(dt.count(lt(t),t),n,2)}function R(t,n){return M(t.getSeconds(),n,2)}function W(t,n){return M(t.getMinutes(),n,2)}function J(t,n){return M(t.getMonth()+1,n,2)}function X(t,n){return M(t.getMilliseconds(),n,3)}function B(t,n){return M(1+mt.count(lt(t),t),n,3)}function I(t,n){return M(t.getHours()%12||12,n,2)}function Z(t,n){return M(t.getHours(),n,2)}function P(t,n){return M(t.getDate(),n,2)}function G(t){for(var n=new Map,e=-1,r=t.length;++e<r;)n.set(t[e].toLowerCase(),e);return n}function K(t){return t.replace(gt,"\\$&")}function Q(t){return new RegExp("^(?:"+t.map(K).join("|")+")","i")}function tt(t){function M(t,n){return function(e){for(var r,i,u,a=[],o=-1,s=0,c=t.length;++o<c;)37===t.charCodeAt(o)&&(a.push(t.slice(s,o)),null!=(i=et[r=t.charAt(++o)])&&(r=t.charAt(++o)),(u=n[r])&&(r=u(e,null==i?"e"===r?" ":"0":i)),a.push(r),s=o+1);return a.push(t.slice(s,o)),a.join("")}}function _(t,e){return function(i){var u=r(1900),a=D(u,t,i,0);if(a!=i.length)return null;if("p"in u&&(u.H=u.H%12+12*u.p),"Z"in u){if("w"in u&&("W"in u||"U"in u)){var o=n(r(u.y)).getUTCDay();"W"in u&&(u.U=u.W,u.w=(u.w+6)%7,--o),u.m=0,u.d=u.w+7*u.U-(o+6)%7}return u.H+=u.Z/100|0,u.M+=u.Z%100,n(u)}if("w"in u&&("W"in u||"U"in u)){var o=e(r(u.y)).getDay();"W"in u&&(u.U=u.W,u.w=(u.w+6)%7,--o),u.m=0,u.d=u.w+7*u.U-(o+6)%7}return e(u)}}function D(t,n,e,r){for(var i,u,a=0,o=n.length,s=e.length;o>a;){if(r>=s)return-1;if(i=n.charCodeAt(a++),37===i){if(i=n.charAt(a++),u=Ot[i in et?n.charAt(a++):i],!u||(r=u(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function E(t,n,e){var r=$t.exec(n.slice(e));return r?(t.w=St.get(r[0].toLowerCase()),e+r[0].length):-1}function K(t,n,e){var r=Ct.exec(n.slice(e));return r?(t.w=Ut.get(r[0].toLowerCase()),e+r[0].length):-1}function tt(t,n,e){var r=qt.exec(n.slice(e));return r?(t.m=kt.get(r[0].toLowerCase()),e+r[0].length):-1}function nt(t,n,e){var r=jt.exec(n.slice(e));return r?(t.m=Ft.get(r[0].toLowerCase()),e+r[0].length):-1}function rt(t,n,e){return D(t,vt,n,e)}function it(t,n,e){return D(t,yt,n,e)}function ut(t,n,e){return D(t,xt,n,e)}function at(t,n,e){var r=Tt.get(n.slice(e,e+=2).toLowerCase());return null==r?-1:(t.p=r,e)}function ot(t){return bt[t.getDay()]}function st(t){return wt[t.getDay()]}function ct(t){return Dt[t.getMonth()]}function ft(t){return _t[t.getMonth()]}function lt(t){return Mt[+(t.getHours()>=12)]}function ht(t){return bt[t.getUTCDay()]}function dt(t){return wt[t.getUTCDay()]}function mt(t){return Dt[t.getUTCMonth()]}function gt(t){return _t[t.getUTCMonth()]}function pt(t){return Mt[+(t.getUTCHours()>=12)]}var vt=t.dateTime,yt=t.date,xt=t.time,Mt=t.periods,wt=t.days,bt=t.shortDays,_t=t.months,Dt=t.shortMonths,Tt=G(Mt),Ct=Q(wt),Ut=G(wt),$t=Q(bt),St=G(bt),jt=Q(_t),Ft=G(_t),qt=Q(Dt),kt=G(Dt),At={a:ot,A:st,b:ct,B:ft,c:null,d:P,e:P,H:Z,I:I,j:B,L:X,m:J,M:W,p:lt,S:R,U:V,w:z,W:N,x:null,X:null,y:Y,Y:H,Z:O,"%":y},Lt={a:ht,A:dt,b:mt,B:gt,c:null,d:L,e:L,H:A,I:k,j:q,L:F,m:j,M:S,p:pt,S:$,U:U,w:C,W:T,x:null,X:null,y:b,Y:w,Z:x,"%":y},Ot={a:E,A:K,b:tt,B:nt,c:rt,d:l,e:l,H:d,I:d,j:h,L:p,m:f,M:m,p:at,S:g,U:o,w:a,W:s,x:it,X:ut,y:c,Y:v,Z:u,"%":i};return At.x=M(yt,At),At.X=M(xt,At),At.c=M(vt,At),Lt.x=M(yt,Lt),Lt.X=M(xt,Lt),Lt.c=M(vt,Lt),{format:function(t){var n=M(t+="",At);return n.parse=_(t,e),n.toString=function(){return t},n},utcFormat:function(t){var e=M(t+="",Lt);return e.parse=_(t,n),e.toString=function(){return t},e}}}function nt(t){return t.toISOString()}var et={"-":"",_:" ",0:"0"},rt=/^%/,it=/^\s*\d+/,ut=new Date,at=new Date,ot=_(function(t){t.setUTCHours(0,0,0,0),t.setUTCMonth(0,1)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),st=D(1),ct=D(0),ft=_(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5}),lt=_(function(t){t.setHours(0,0,0,0),t.setMonth(0,1)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()}),ht=E(1),dt=E(0),mt=_(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),gt=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,pt=tt({dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});t.format=pt.format,t.utcFormat=pt.utcFormat;var vt="%Y-%m-%dT%H:%M:%S.%LZ";nt.parse=function(t){var n=new Date(t);return isNaN(n)?null:n},nt.toString=function(){return vt};var yt=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?nt:pt.utcFormat(vt),xt=yt;t.isoFormat=xt,t.localeFormat=tt})},{}],5:[function(n,e,r){!function(n,i){"object"==typeof r&&"undefined"!=typeof e?i(r):"function"==typeof t&&t.amd?t(["exports"],i):i(n.time={})}(this,function(t){"use strict";function n(t,e,r){function a(n){return t(n=new Date(+n)),n}return a.floor=a,a.round=function(n){var r=new Date(+n),i=new Date(n-1);return t(r),t(i),e(i,1),i-n>n-r?r:i},a.ceil=function(n){return t(n=new Date(n-1)),e(n,1),n},a.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},a.range=function(n,r,i){var u=[];if(n=new Date(n-1),r=new Date(+r),i=null==i?1:Math.floor(i),!(r>n&&i>0))return u;for(e(n,1),t(n),r>n&&u.push(new Date(+n));e(n,i),t(n),r>n;)u.push(new Date(+n));return u},a.filter=function(r){return n(function(n){for(;t(n),!r(n);)n.setTime(n-1)},function(t,n){for(;--n>=0;)for(;e(t,1),!r(t););})},r&&(a.count=function(n,e){return u.setTime(+n),i.setTime(+e),t(u),t(i),Math.floor(r(u,i))}),a}function e(t){return n(function(n){n.setHours(0,0,0,0),n.setDate(n.getDate()-(n.getDay()+7-t)%7)},function(t,n){t.setDate(t.getDate()+7*n)},function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}function r(t){return n(function(n){n.setUTCHours(0,0,0,0),n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7)},function(t,n){t.setUTCDate(t.getUTCDate()+7*n)},function(t,n){return(n-t)/6048e5})}var i=new Date,u=new Date,a=n(function(t){t.setMilliseconds(0)},function(t,n){t.setTime(+t+1e3*n)},function(t,n){return(n-t)/1e3});t.seconds=a.range;var o=n(function(t){t.setSeconds(0,0)},function(t,n){t.setTime(+t+6e4*n)},function(t,n){return(n-t)/6e4});t.minutes=o.range;var s=n(function(t){t.setMinutes(0,0,0)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5});t.hours=s.range;var c=n(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5});t.days=c.range,t.sunday=e(0),t.sundays=t.sunday.range,t.monday=e(1),t.mondays=t.monday.range,t.tuesday=e(2),t.tuesdays=t.tuesday.range,t.wednesday=e(3),t.wednesdays=t.wednesday.range,t.thursday=e(4),t.thursdays=t.thursday.range,t.friday=e(5),t.fridays=t.friday.range,t.saturday=e(6),t.saturdays=t.saturday.range;var f=t.sunday;t.weeks=f.range;var l=n(function(t){t.setHours(0,0,0,0),t.setDate(1)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())});t.months=l.range;var h=n(function(t){t.setHours(0,0,0,0),t.setMonth(0,1)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()});t.years=h.range;var d=n(function(t){t.setUTCMilliseconds(0)},function(t,n){t.setTime(+t+1e3*n)},function(t,n){return(n-t)/1e3});t.utcSeconds=d.range;var m=n(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+6e4*n)},function(t,n){return(n-t)/6e4});t.utcMinutes=m.range;var g=n(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5});t.utcHours=g.range;var p=n(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5});t.utcDays=p.range,t.utcSunday=r(0),t.utcSundays=t.utcSunday.range,t.utcMonday=r(1),t.utcMondays=t.utcMonday.range,t.utcTuesday=r(2),t.utcTuesdays=t.utcTuesday.range,t.utcWednesday=r(3),t.utcWednesdays=t.utcWednesday.range,t.utcThursday=r(4),t.utcThursdays=t.utcThursday.range,t.utcFriday=r(5),t.utcFridays=t.utcFriday.range,t.utcSaturday=r(6),t.utcSaturdays=t.utcSaturday.range;var v=t.utcSunday;t.utcWeeks=v.range;var y=n(function(t){t.setUTCHours(0,0,0,0),t.setUTCDate(1)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())});t.utcMonths=y.range;var x=n(function(t){t.setUTCHours(0,0,0,0),t.setUTCMonth(0,1)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()});t.utcYears=x.range,t.interval=n,t.second=a,t.minute=o,t.hour=s,t.day=c,t.week=f,t.month=l,t.year=h,t.utcSecond=d,t.utcMinute=m,t.utcHour=g,t.utcDay=p,t.utcWeek=v,t.utcMonth=y,t.utcYear=x})},{}],6:[function(t,n,e){function r(){this._cells={},this._aggr=[],this._stream=!1}function i(t){if(u.isArray(t))return t;if(null==t)return[];var n,e,r=[];for(n in t)e=u.array(t[n]),r.push({name:n,ops:e});return r}var u=t("../util"),a=t("./measures"),o=t("./collector"),s=r.Flags={ADD_CELL:1,MOD_CELL:2},c=r.prototype;c.stream=function(t){return null==t?this._stream:(this._stream=!!t,this._aggr=[],this)},c.key=function(t){return null==t?this._key:(this._key=u.$(t),this)},c.groupby=function(t){return this._dims=u.array(t).map(function(t,n){if(t=u.isString(t)?{name:t,get:u.$(t)}:u.isFunction(t)?{name:u.name(t)||t.name||"_"+n,get:t}:t.name&&u.isFunction(t.get)?t:null,null==t)throw"Invalid groupby argument: "+t;return t}),this.clear()},c.summarize=function(t){t=i(t),this._count=!0;var n,e,r,o,s,c,f,l=this._aggr=[];for(r=0;r<t.length;++r){for(o=0,n=[],e=t[r];o<e.ops.length;++o)s=e.ops[o],"count"!==s&&(this._count=!1),c=e.as&&e.as[o]||s+("*"===e.name?"":"_"+e.name),n.push(a[s](c));f=e.get&&u.$(e.get)||("*"===e.name?u.identity:u.$(e.name)),l.push({name:e.name,measures:a.create(n,this._stream,f,this._assign)})}return this.clear()},c.count=function(){return this.summarize({"*":"count"})},c._assign=function(t,n,e){t[n]=e},c.clear=function(){return this._cells={},this},c._cellkey=function(t){var n,e=this._dims,r=e.length,i=String(e[0].get(t));for(n=1;r>n;++n)i+="|"+e[n].get(t);return i},c._cell=function(t){var n=this._dims.length?this._cellkey(t):"";return this._cells[n]||(this._cells[n]=this._newcell(t))},c._newcell=function(t){var n,e={num:0,tuple:this._newtuple(t),flag:s.ADD_CELL,aggs:{}},r=this._aggr;for(n=0;n<r.length;++n)e.aggs[r[n].name]=new r[n].measures(e,e.tuple);return e.collect&&(e.data=new o(this._key)),e},c._newtuple=function(t){var n,e,r=this._dims,i={};for(n=0,e=r.length;e>n;++n)i[r[n].name]=r[n].get(t);return this._ingest(i)},c._ingest=u.identity,c._add=function(t){var n,e=this._cell(t),r=this._aggr;if(e.num+=1,!this._count)for(e.collect&&e.data.add(t),n=0;n<r.length;++n)e.aggs[r[n].name].add(t);e.flag|=s.MOD_CELL},c._rem=function(t){var n,e=this._cell(t),r=this._aggr;if(e.num-=1,!this._count)for(e.collect&&e.data.rem(t),n=0;n<r.length;++n)e.aggs[r[n].name].rem(t);e.flag|=s.MOD_CELL},c._mod=function(t,n){var e,r=this._cell(n),i=this._cell(t),a=this._aggr;for(r!==i?(r.num-=1,i.num+=1,r.collect&&r.data.rem(n),i.collect&&i.data.add(t)):r.collect&&!u.isObject(t)&&(r.data.rem(n),r.data.add(t)),e=0;e<a.length;++e)r.aggs[a[e].name].rem(n),i.aggs[a[e].name].add(t);r.flag|=s.MOD_CELL,i.flag|=s.MOD_CELL},c.result=function(){var t,n,e,r=[],i=this._aggr;for(e in this._cells){if(t=this._cells[e],t.num>0){for(t.collect&&t.data.values(),n=0;n<i.length;++n)t.aggs[i[n].name].set();r.push(t.tuple)}else delete this._cells[e];t.flag=0}return this._rems=!1,r},c.changes=function(){var t,n,e,r,i={add:[],rem:[],mod:[]},u=this._aggr;for(r in this._cells){for(t=this._cells[r],n=t.flag,t.collect&&t.data.values(),e=0;e<u.length;++e)t.aggs[u[e].name].set();t.num<=0?(i.rem.push(t.tuple),delete this._cells[r]):n&s.ADD_CELL?i.add.push(t.tuple):n&s.MOD_CELL&&i.mod.push(t.tuple),t.flag=0}return this._rems=!1,i},c.execute=function(t){return this.clear().insert(t).result()},c.insert=function(t){this._consolidate();for(var n=0;n<t.length;++n)this._add(t[n]);return this},c.remove=function(t){if(!this._stream)throw"Aggregator not configured for streaming removes. Call stream(true) prior to calling summarize.";for(var n=0;n<t.length;++n)this._rem(t[n]);return this._rems=!0,this},c._consolidate=function(){if(this._rems){for(var t in this._cells)this._cells[t].collect&&this._cells[t].data.values();this._rems=!1}},n.exports=r},{"../util":27,"./collector":7,"./measures":9}],7:[function(t,n,e){function r(t){this._add=[],this._rem=[],this._key=t||null,this._last=null}var i=t("../util"),u=t("../stats"),a="__dl_rem__",o=r.prototype;o.add=function(t){this._add.push(t)},o.rem=function(t){this._rem.push(t)},o.values=function(){if(this._get=null,0===this._rem.length)return this._add;var t,n,e,r,o=this._add,s=this._rem,c=this._key,f=Array(o.length-s.length);if(i.isObject(s[0]))if(c)for(r=i.toMap(s,c),t=0,n=0,e=o.length;e>t;++t)r.hasOwnProperty(c(o[t]))||(f[n++]=o[t]);else{for(t=0,e=s.length;e>t;++t)s[t][a]=1;for(t=0,n=0,e=o.length;e>t;++t)o[t][a]||(f[n++]=o[t]);for(t=0,e=s.length;e>t;++t)delete s[t][a]}else for(r=u.count.map(s),t=0,n=0,e=o.length;e>t;++t)r[o[t]]>0?r[o[t]]-=1:f[n++]=o[t];return this._rem=[],this._add=f},o.extent=function(t){if(this._get!==t||!this._ext){var n=this.values(),e=u.extent.index(n,t);this._ext=[n[e[0]],n[e[1]]],this._get=t}return this._ext},o.argmin=function(t){return this.extent(t)[0]},o.argmax=function(t){return this.extent(t)[1]},o.min=function(t){var n=this.extent(t)[0];return n?t(n):+(1/0)},o.max=function(t){var n=this.extent(t)[1];return n?t(n):-(1/0)},o.quartile=function(t){return this._get===t&&this._q||(this._q=u.quartile(this.values(),t),this._get=t),this._q},o.q1=function(t){return this.quartile(t)[0]},o.q2=function(t){return this.quartile(t)[1]},o.q3=function(t){return this.quartile(t)[2]},n.exports=r},{"../stats":24,"../util":27}],8:[function(t,n,e){var r=t("../util"),i=t("./aggregator");n.exports=function(){var t=[].reduce.call(arguments,function(t,n){return t.concat(r.array(n))},[]);return(new i).groupby(t).summarize({"*":"values"})}},{"../util":27,"./aggregator":6}],9:[function(t,n,e){function r(t){return function(n){var e=a.extend({init:"",add:"",rem:"",idx:0},t);return e.out=n||t.name,e}}function i(t,n){function e(t,r){function i(n){t[n]||e(t,t[n]=o[n]())}return r.req&&r.req.forEach(i),n&&r.str&&r.str.forEach(i),t}var r=t.reduce(e,t.reduce(function(t,n){return t[n.name]=n,t},{}));return a.vals(r).sort(function(t,n){return t.idx-n.idx})}function u(n,e,r,u){var o=i(n,e),s="this.cell = cell; this.tuple = t; this.valid = 0; this.missing = 0;",c="if (v==null) this.missing++; if (!this.isValid(v)) return; ++this.valid;",f="if (v==null) this.missing--; if (!this.isValid(v)) return; --this.valid;",l="var t = this.tuple; var cell = this.cell;";return o.forEach(function(t){t.idx<0?(s=t.init+s,c=t.add+c,f=t.rem+f):(s+=t.init,c+=t.add,f+=t.rem)}),n.slice().sort(function(t,n){return t.idx-n.idx}).forEach(function(t){l+="this.assign(t,'"+t.out+"',"+t.set+");"}),l+="return t;",s=Function("cell","t",s),s.prototype.assign=u,s.prototype.add=Function("t","var v = this.get(t);"+c),s.prototype.rem=Function("t","var v = this.get(t);"+f),s.prototype.set=Function(l),s.prototype.get=r,s.prototype.distinct=t("../stats").count.distinct,s.prototype.isValid=a.isValid,s}var a=t("../util"),o={values:r({name:"values",init:"cell.collect = true;",set:"cell.data.values()",idx:-1}),count:r({name:"count",set:"cell.num"}),missing:r({name:"missing",set:"this.missing"}),valid:r({name:"valid",set:"this.valid"}),sum:r({name:"sum",init:"this.sum = 0;",add:"this.sum += v;",rem:"this.sum -= v;",set:"this.sum"}),mean:r({name:"mean",init:"this.mean = 0;",add:"var d = v - this.mean; this.mean += d / this.valid;",rem:"var d = v - this.mean; this.mean -= this.valid ? d / this.valid : this.mean;",set:"this.mean"}),average:r({name:"average",set:"this.mean",req:["mean"],idx:1}),variance:r({name:"variance",init:"this.dev = 0;",add:"this.dev += d * (v - this.mean);",rem:"this.dev -= d * (v - this.mean);",set:"this.valid > 1 ? this.dev / (this.valid-1) : 0",req:["mean"],idx:1}),variancep:r({name:"variancep",set:"this.valid > 1 ? this.dev / this.valid : 0",req:["variance"],idx:2}),stdev:r({name:"stdev",set:"this.valid > 1 ? Math.sqrt(this.dev / (this.valid-1)) : 0",req:["variance"],idx:2}),stdevp:r({name:"stdevp",set:"this.valid > 1 ? Math.sqrt(this.dev / this.valid) : 0",req:["variance"],idx:2}),median:r({name:"median",set:"cell.data.q2(this.get)",req:["values"],idx:3}),q1:r({name:"q1",set:"cell.data.q1(this.get)",req:["values"],idx:3}),q3:r({name:"q3",set:"cell.data.q3(this.get)",req:["values"],idx:3}),distinct:r({name:"distinct",set:"this.distinct(cell.data.values(), this.get)",req:["values"],idx:3}),argmin:r({name:"argmin",add:"if (v < this.min) this.argmin = t;",rem:"if (v <= this.min) this.argmin = null;",set:"this.argmin = this.argmin || cell.data.argmin(this.get)",req:["min"],str:["values"],idx:3}),argmax:r({name:"argmax",add:"if (v > this.max) this.argmax = t;",rem:"if (v >= this.max) this.argmax = null;",set:"this.argmax = this.argmax || cell.data.argmax(this.get)",req:["max"],str:["values"],idx:3}),min:r({name:"min",init:"this.min = +Infinity;",add:"if (v < this.min) this.min = v;",rem:"if (v <= this.min) this.min = NaN;",set:"this.min = (isNaN(this.min) ? cell.data.min(this.get) : this.min)",str:["values"],idx:4}),max:r({name:"max",init:"this.max = -Infinity;",add:"if (v > this.max) this.max = v;",rem:"if (v >= this.max) this.max = NaN;",set:"this.max = (isNaN(this.max) ? cell.data.max(this.get) : this.max)",str:["values"],idx:4}),modeskew:r({name:"modeskew",set:"this.dev===0 ? 0 : (this.mean - cell.data.q2(this.get)) / Math.sqrt(this.dev/(this.valid-1))",req:["mean","stdev","median"],idx:5})};o.create=u,n.exports=o},{"../stats":24,"../util":27}],10:[function(t,n,e){function r(t){if(!t)throw Error("Missing binning options.");var n,e,r,o,s,c,f,l=t.maxbins||15,h=t.base||10,d=Math.log(h),m=t.div||[5,2],g=t.min,p=t.max,v=p-g;if(t.step)n=t.step;else if(t.steps)n=t.steps[Math.min(t.steps.length-1,i(t.steps,v/l,0,t.steps.length))];else{e=Math.ceil(Math.log(l)/d),r=t.minstep||0,n=Math.max(r,Math.pow(h,Math.round(Math.log(v)/d)-e));do n*=h;while(Math.ceil(v/n)>l);for(c=0;c<m.length;++c)s=n/m[c],s>=r&&l>=v/s&&(n=s)}return s=Math.log(n),o=s>=0?0:~~(-s/d)+1,f=Math.pow(h,-o-1),g=Math.min(g,Math.floor(g/n+f)*n),p=Math.ceil(p/n)*n,{start:g,stop:p,step:n,unit:{precision:o},value:u,index:a}}function i(t,n,e,r){for(;r>e;){var i=e+r>>>1;c.cmp(t[i],n)<0?e=i+1:r=i}return e}function u(t){return this.step*Math.floor(t/this.step+l)}function a(t){return Math.floor((t-this.start)/this.step+l)}function o(t){return this.unit.date(u.call(this,t))}function s(t){return a.call(this,this.unit.unit(t))}var c=t("../util"),f=t("../time"),l=1e-15;r.date=function(t){if(!t)throw Error("Missing date binning options.");var n=t.utc?f.utc:f,e=t.min,i=t.max,u=t.maxbins||20,a=t.minbins||4,c=+i-+e,l=t.unit?n[t.unit]:n.find(c,a,u),h=r({min:null!=l.min?l.min:l.unit(e),max:null!=l.max?l.max:l.unit(i),maxbins:u,minstep:l.minstep,steps:l.step});return h.unit=l,h.index=s,t.raw||(h.value=o),h},n.exports=r},{"../time":26,"../util":27}],11:[function(t,n,e){function r(t,n,e){e=a(t,n,e);var r=u(e);return r?h.$func("bin",r.unit.unit?function(t){return r.value(r.unit.unit(t))}:function(t){return r.value(t)})(e.accessor):e.accessor||h.identity}function i(t,n,e){e=a(t,n,e);var r=u(e);return r?o(t,e.accessor,r):s(t,e.accessor,e&&e.sort)}function u(t){var n=t.type,e=null;return(null==n||m[n])&&("integer"===n&&null==t.minstep&&(t.minstep=1),e="date"===n?c.date(t):c(t)),e}function a(){var t=arguments,n=0,e=h.isArray(t[n])?t[n++]:null,r=h.isFunction(t[n])||h.isString(t[n])?h.$(t[n++]):null,i=h.extend({},t[n]);if(e&&(i.type=i.type||l(e,r),m[i.type])){var u=d.extent(e,r);i=h.extend({min:u[0],max:u[1]},i)}return r&&(i.accessor=r),i}function o(t,n,e){for(var r,i,u=f.range(e.start,e.stop+e.step/2,e.step).map(function(t){return{value:e.value(t),count:0}}),a=0;a<t.length;++a)if(r=n?n(t[a]):t[a],h.isValid(r)){if(i=e.index(r),0>i||i>=u.length||!isFinite(i))continue;u[i].count+=1}return u.bins=e,u}function s(t,n,e){var r=d.unique(t,n),i=d.count.map(t,n);return r.map(function(t){return{value:t,count:i[t]}}).sort(h.comparator(e?"-count":"+value"))}var c=t("./bins"),f=t("../generate"),l=t("../import/type"),h=t("../util"),d=t("../stats"),m={integer:1,number:1,date:1};n.exports={$bin:r,histogram:i}},{"../generate":12,"../import/type":21,"../stats":24,"../util":27,"./bins":10}],12:[function(t,n,e){var r=n.exports={};r.repeat=function(t,n){var e,r=Array(n);for(e=0;n>e;++e)r[e]=t;return r},r.zeros=function(t){
  return r.repeat(0,t)},r.range=function(t,n,e){if(arguments.length<3&&(e=1,arguments.length<2&&(n=t,t=0)),(n-t)/e==1/0)throw new Error("Infinite range");var r,i=[],u=-1;if(0>e)for(;(r=t+e*++u)>n;)i.push(r);else for(;(r=t+e*++u)<n;)i.push(r);return i},r.random={},r.random.uniform=function(t,n){void 0===n&&(n=void 0===t?1:t,t=0);var e=n-t,i=function(){return t+e*Math.random()};return i.samples=function(t){return r.zeros(t).map(i)},i},r.random.integer=function(t,n){void 0===n&&(n=t,t=0);var e=n-t,i=function(){return t+Math.floor(e*Math.random())};return i.samples=function(t){return r.zeros(t).map(i)},i},r.random.normal=function(t,n){t=t||0,n=n||1;var e,i=function(){var r,i,u=0,a=0;if(void 0!==e)return u=e,e=void 0,u;do u=2*Math.random()-1,a=2*Math.random()-1,r=u*u+a*a;while(0===r||r>1);return i=Math.sqrt(-2*Math.log(r)/r),e=t+a*i*n,t+u*i*n};return i.samples=function(t){return r.zeros(t).map(i)},i}},{}],13:[function(t,n,e){function r(t,n){if(t){var e=n.header;t=(e?e.join(n.delimiter)+"\n":"")+t}return u.dsv(n.delimiter).parse(t)}var i=t("../../util"),u=t("d3-dsv");r.delimiter=function(t){var n={delimiter:t};return function(t,e){return r(t,e?i.extend(e,n):n)}},n.exports=r},{"../../util":27,"d3-dsv":2}],14:[function(t,n,e){var r=t("./dsv");n.exports={json:t("./json"),topojson:t("./topojson"),treejson:t("./treejson"),dsv:r,csv:r.delimiter(","),tsv:r.delimiter("	")}},{"./dsv":13,"./json":15,"./topojson":16,"./treejson":17}],15:[function(t,n,e){var r=t("../../util");n.exports=function(t,n){var e=r.isObject(t)&&!r.isBuffer(t)?t:JSON.parse(t);return n&&n.property&&(e=r.accessor(n.property)(e)),e}},{"../../util":27}],16:[function(t,n,e){(function(e){var r=t("./json"),i=function(t,n){var e=i.topojson;if(null==e)throw Error("TopoJSON library not loaded.");var u,a=r(t,n);if(n&&n.feature){if(u=a.objects[n.feature])return e.feature(a,u).features;throw Error("Invalid TopoJSON object: "+n.feature)}if(n&&n.mesh){if(u=a.objects[n.mesh])return[e.mesh(a,a.objects[n.mesh])];throw Error("Invalid TopoJSON object: "+n.mesh)}throw Error("Missing TopoJSON feature or mesh parameter.")};i.topojson="undefined"!=typeof window?window.topojson:"undefined"!=typeof e?e.topojson:null,n.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./json":15}],17:[function(t,n,e){function r(t,n){function e(t){r.push(t);var i=t[n];if(i)for(var u=0;u<i.length;++u)e(i[u],t)}n=n||"children";var r=[];return e(t,null),r.root=t,r}var i=t("./json");n.exports=function(t,n){return t=i(t,n),r(t,n&&n.children)}},{"./json":15}],18:[function(t,n,e){function r(n){var e=n.url;if(!e&&n.file)return l+n.file;if(n.baseURL&&!f.test(e)&&(c(e,"/")||"/"===n.baseURL[n.baseURL.length-1]||(e="/"+e),e=n.baseURL+e),!i.useXHR&&c(e,"//")&&(e=(n.defaultProtocol||"http")+":"+e),n.domainWhiteList){var r,u;if(i.useXHR){var a=document.createElement("a");a.href=e,""===a.host&&(a.href=a.href),r=a.hostname.toLowerCase(),u=window.location.hostname}else{var o=t("url").parse(e);r=o.hostname,u=null}if(u!==r){var s=n.domainWhiteList.some(function(t){var n=r.length-t.length;return t===r||n>1&&"."===r[n-1]&&r.lastIndexOf(t)===n});if(!s)throw"URL is not whitelisted: "+e}}return e}function i(t,n){var e,r=n||function(t){throw t};try{e=i.sanitizeUrl(t)}catch(u){return void r(u)}return e?i.useXHR?a(e,n):c(e,l)?o(e.slice(l.length),n):e.indexOf("://")<0?o(e,n):s(e,n):void r("Invalid URL: "+t.url)}function u(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}function a(t,n){function e(){var t=i.status;!t&&u(i)||t>=200&&300>t||304===t?n(null,i.responseText):n(i,null)}var r=!!n,i=new XMLHttpRequest;return!this.XDomainRequest||"withCredentials"in i||!/^(http(s)?:)?\/\//.test(t)||(i=new XDomainRequest),r&&("onload"in i?i.onload=i.onerror=e:i.onreadystatechange=function(){i.readyState>3&&e()}),i.open("GET",t,r),i.send(),!r&&u(i)?i.responseText:void 0}function o(n,e){var r=t("fs");return e?void r.readFile(n,e):r.readFileSync(n,"utf8")}function s(n,e){return e?void t("request")(n,function(t,n,r){t||200!==n.statusCode?(t=t||"Load failed with response code "+n.statusCode+".",e(t,null)):e(null,r)}):t("sync-request")("GET",n).getBody()}function c(t,n){return null==t?!1:0===t.lastIndexOf(n,0)}var f=/^([A-Za-z]+:)?\/\//,l="file://";i.sanitizeUrl=r,i.useXHR="undefined"!=typeof XMLHttpRequest,n.exports=i},{fs:1,request:1,"sync-request":1,url:1}],19:[function(t,n,e){function r(t,n){var e=n&&n.type||"json";return t=o[e](t,n),n&&n.parse&&i(t,n.parse),t}function i(t,n){var e,r,i,o,s,c,f=t.length;for(n="auto"===n?a.inferAll(t):u.duplicate(n),e=u.keys(n),r=e.map(function(t){return a.parsers[n[t]]}),o=0,c=e.length;f>o;++o)for(i=t[o],s=0;c>s;++s)i[e[s]]=r[s](i[e[s]]);a.annotation(t,n)}var u=t("../util"),a=t("./type"),o=t("./formats");r.formats=o,n.exports=r},{"../util":27,"./formats":14,"./type":21}],20:[function(t,n,e){var r=t("../util"),i=t("./load"),u=t("./read");n.exports=r.keys(u.formats).reduce(function(t,n){return t[n]=function(t,e,a){r.isString(t)&&(t={url:t}),2===arguments.length&&r.isFunction(e)&&(a=e,e=void 0),e=r.extend({parse:"auto"},e),e.type=n;var o=i(t,a?function(t,n){if(t)return void a(t,null);try{n=u(n,e),a(null,n)}catch(r){a(r,null)}}:void 0);return a?void 0:u(o,e)},t},{})},{"../util":27,"./load":18,"./read":19}],21:[function(t,n,e){function r(t,n){return n?void(t[c]=n):t&&t[c]||null}function i(t,n){n=s.$(n);var e,r,i;if(t[c]&&(e=n(t[c]),s.isString(e)))return e;for(r=0,i=t.length;!s.isValid(e)&&i>r;++r)e=n?n(t[r]):t[r];return s.isDate(e)?"date":s.isNumber(e)?"number":s.isBoolean(e)?"boolean":s.isString(e)?"string":null}function u(t,n){return t.length?(n=n||s.keys(t[0]),n.reduce(function(n,e){return n[e]=i(t,e),n},{})):void 0}function a(t,n){n=s.$(n);var e,r,i,u=["boolean","integer","number","date"];for(e=0;e<t.length;++e){for(i=n?n(t[e]):t[e],r=0;r<u.length;++r)s.isValid(i)&&!l[u[r]](i)&&(u.splice(r,1),r-=1);if(0===u.length)return"string"}return u[0]}function o(t,n){return n=n||s.keys(t[0]),n.reduce(function(n,e){return n[e]=a(t,e),n},{})}var s=t("../util"),c="__types__",f={"boolean":s["boolean"],integer:s.number,number:s.number,date:s.date,string:function(t){return""===t?null:t}},l={"boolean":function(t){return"true"===t||"false"===t||s.isBoolean(t)},integer:function(t){return l.number(t)&&(t=+t)===~~t},number:function(t){return!isNaN(+t)&&!s.isDate(t)},date:function(t){return!isNaN(Date.parse(t))}};i.annotation=r,i.all=u,i.infer=a,i.inferAll=o,i.parsers=f,n.exports=i},{"../util":27}],22:[function(t,n,e){var r=t("./util"),i={load:t("./import/load"),read:t("./import/read"),type:t("./import/type"),bins:t("./bins/bins"),$bin:t("./bins/histogram").$bin,groupby:t("./aggregate/groupby"),histogram:t("./bins/histogram").histogram,print:t("./print"),template:t("./template"),time:t("./time")};r.extend(i,r),r.extend(i,t("./generate")),r.extend(i,t("./stats")),r.extend(i,t("./import/readers")),n.exports=i},{"./aggregate/groupby":8,"./bins/bins":10,"./bins/histogram":11,"./generate":12,"./import/load":18,"./import/read":19,"./import/readers":20,"./import/type":21,"./print":23,"./stats":24,"./template":25,"./time":26,"./util":27}],23:[function(t,n,e){function r(t){return["valid:    "+t.valid,"missing:  "+t.missing,"distinct: "+t.distinct,"min:      "+t.min,"max:      "+t.max,"median:   "+t.median,"mean:     "+t.mean,"stdev:    "+t.stdev,"modeskew: "+t.modeskew].join("\n")}function i(t){var n=["valid:    "+t.valid,"missing:  "+t.missing,"distinct: "+t.distinct,"top values: "],e=t.unique,r=u.keys(e).sort(function(t,n){return e[n]-e[t]}).slice(0,6).map(function(t){return" '"+t+"' ("+e[t]+")"});return n.concat(r).join("\n")}var u=t("./util"),a=t("./import/type"),o=t("./stats"),s=t("./template"),c={date:'|time:"%m/%d/%Y %H:%M:%S"',number:'|number:".4f"',integer:'|number:"d"'},f={number:"left",integer:"left"};n.exports.table=function(t,n){n=u.extend({separator:" ",minwidth:8,maxwidth:15},n);var e=n.fields||u.keys(t[0]),r=a.all(t);if(n.start||n.limit){var i=n.start||0,l=n.limit?i+n.limit:t.length;t=t.slice(i,l)}var h=e.map(function(e){var i=c[r[e]]||"",u=s("{{"+e+i+"}}"),a=o.max(t,function(t){return u(t).length});return a=Math.max(Math.min(e.length,n.minwidth),a),n.maxwidth>0?Math.min(a,n.maxwidth):a}),d=e.map(function(t,n){return u.truncate(u.pad(t,h[n],"center"),h[n])}).join(n.separator),m=s(e.map(function(t,n){return"{{"+t+(c[r[t]]||"")+("|pad:"+h[n]+","+(f[r[t]]||"right"))+("|truncate:"+h[n])+"}}"}).join(n.separator));return d+"\n"+t.map(m).join("\n")},n.exports.summary=function(t){t=t?t.__summary__?t:o.summary(t):this;var n,e,u=[];for(n=0,e=t.length;e>n;++n)u.push("-- "+t[n].field+" --"),"string"===t[n].type||t[n].distinct<10?u.push(i(t[n])):u.push(r(t[n])),u.push("");return u.join("\n")}},{"./import/type":21,"./stats":24,"./template":25,"./util":27}],24:[function(t,n,e){var r=t("./util"),i=t("./import/type"),u=t("./generate"),a={};a.unique=function(t,n,e){n=r.$(n),e=e||[];var i,u,a,o={};for(u=0,a=t.length;a>u;++u)i=n?n(t[u]):t[u],i in o||(o[i]=1,e.push(i));return e},a.count=function(t){return t&&t.length||0},a.count.valid=function(t,n){n=r.$(n);var e,i,u,a=0;for(i=0,u=t.length;u>i;++i)e=n?n(t[i]):t[i],r.isValid(e)&&(a+=1);return a},a.count.missing=function(t,n){n=r.$(n);var e,i,u,a=0;for(i=0,u=t.length;u>i;++i)e=n?n(t[i]):t[i],null==e&&(a+=1);return a},a.count.distinct=function(t,n){n=r.$(n);var e,i,u,a={},o=0;for(i=0,u=t.length;u>i;++i)e=n?n(t[i]):t[i],e in a||(a[e]=1,o+=1);return o},a.count.map=function(t,n){n=r.$(n);var e,i,u,a={};for(i=0,u=t.length;u>i;++i)e=n?n(t[i]):t[i],a[e]=e in a?a[e]+1:1;return a},a.median=function(t,n){return n&&(t=t.map(r.$(n))),t=t.filter(r.isValid).sort(r.cmp),a.quantile(t,.5)},a.quartile=function(t,n){n&&(t=t.map(r.$(n))),t=t.filter(r.isValid).sort(r.cmp);var e=a.quantile;return[e(t,.25),e(t,.5),e(t,.75)]},a.quantile=function(t,n,e){void 0===e&&(e=n,n=r.identity),n=r.$(n);var i=(t.length-1)*e+1,u=Math.floor(i),a=+n(t[u-1]),o=i-u;return o?a+o*(n(t[u])-a):a},a.sum=function(t,n){n=r.$(n);for(var e,i=0,u=0,a=t.length;a>u;++u)e=n?n(t[u]):t[u],r.isValid(e)&&(i+=e);return i},a.mean=function(t,n){n=r.$(n);var e,i,u,a,o,s=0;for(i=0,a=0,u=t.length;u>i;++i)o=n?n(t[i]):t[i],r.isValid(o)&&(e=o-s,s+=e/++a);return s},a.variance=function(t,n){if(n=r.$(n),!r.isArray(t)||t.length<2)return 0;var e,i,u,a,o=0,s=0;for(i=0,u=0;i<t.length;++i)a=n?n(t[i]):t[i],r.isValid(a)&&(e=a-o,o+=e/++u,s+=e*(a-o));return s/=u-1},a.stdev=function(t,n){return Math.sqrt(a.variance(t,n))},a.modeskew=function(t,n){var e=a.mean(t,n),r=a.median(t,n),i=a.stdev(t,n);return 0===i?0:(e-r)/i},a.min=function(t,n){return a.extent(t,n)[0]},a.max=function(t,n){return a.extent(t,n)[1]},a.extent=function(t,n){n=r.$(n);var e,i,u,a,o=t.length;for(a=0;o>a;++a)if(u=n?n(t[a]):t[a],r.isValid(u)){e=i=u;break}for(;o>a;++a)u=n?n(t[a]):t[a],r.isValid(u)&&(e>u&&(e=u),u>i&&(i=u));return[e,i]},a.extent.index=function(t,n){n=r.$(n);var e,i,u,a,o=-1,s=-1,c=t.length;for(a=0;c>a;++a)if(u=n?n(t[a]):t[a],r.isValid(u)){e=i=u,o=s=a;break}for(;c>a;++a)u=n?n(t[a]):t[a],r.isValid(u)&&(e>u&&(e=u,o=a),u>i&&(i=u,s=a));return[o,s]},a.dot=function(t,n,e){var i,u,a=0;if(e)for(n=r.$(n),e=r.$(e),i=0;i<t.length;++i)u=n(t[i])*e(t[i]),u===u&&(a+=u);else{if(t.length!==n.length)throw Error("Array lengths must match.");for(i=0;i<t.length;++i)u=t[i]*n[i],u===u&&(a+=u)}return a},a.rank=function(t,n){n=r.$(n)||r.identity;var e,i,u,a=t.map(function(t,e){return{idx:e,val:n(t)}}).sort(r.comparator("val")),o=t.length,s=Array(o),c=-1,f={};for(e=0;o>e;++e){if(i=a[e].val,0>c&&f===i)c=e-1;else if(c>-1&&f!==i){for(u=1+(e-1+c)/2;e>c;++c)s[a[c].idx]=u;c=-1}s[a[e].idx]=e+1,f=i}if(c>-1)for(u=1+(o-1+c)/2;o>c;++c)s[a[c].idx]=u;return s},a.cor=function(t,n,e){var i=e;e=i?t.map(r.$(e)):n,n=i?t.map(r.$(n)):t;var u=a.dot(n,e),o=a.mean(n),s=a.mean(e),c=a.stdev(n),f=a.stdev(e),l=t.length;return(u-l*o*s)/((l-1)*c*f)},a.cor.rank=function(t,n,e){var i,u,o,s=e?a.rank(t,r.$(n)):a.rank(t),c=e?a.rank(t,r.$(e)):a.rank(n),f=t.length;for(i=0,u=0;f>i;++i)o=s[i]-c[i],u+=o*o;return 1-6*u/(f*(f*f-1))},a.cor.dist=function(t,n,e){var i,u,o,s,c=e?t.map(r.$(n)):t,f=e?t.map(r.$(e)):n,l=a.dist.mat(c),h=a.dist.mat(f),d=l.length;for(i=0,u=0,o=0,s=0;d>i;++i)u+=l[i]*l[i],o+=h[i]*h[i],s+=l[i]*h[i];return Math.sqrt(s/Math.sqrt(u*o))},a.dist=function(t,n,e,i){var u,a,o=r.isFunction(e)||r.isString(e),s=t,c=o?t:n,f=o?i:e,l=2===f||null==f,h=t.length,d=0;for(o&&(n=r.$(n),e=r.$(e)),a=0;h>a;++a)u=o?n(s[a])-e(c[a]):s[a]-c[a],d+=l?u*u:Math.pow(Math.abs(u),f);return l?Math.sqrt(d):Math.pow(d,1/f)},a.dist.mat=function(t){var n,e,r,i=t.length,a=i*i,o=Array(a),s=u.zeros(i),c=0;for(e=0;i>e;++e)for(o[e*i+e]=0,r=e+1;i>r;++r)o[e*i+r]=n=Math.abs(t[e]-t[r]),o[r*i+e]=n,s[e]+=n,s[r]+=n;for(e=0;i>e;++e)c+=s[e],s[e]/=i;for(c/=a,e=0;i>e;++e)for(r=e;i>r;++r)o[e*i+r]+=c-s[e]-s[r],o[r*i+e]=o[e*i+r];return o},a.entropy=function(t,n){n=r.$(n);var e,i,u=0,a=0,o=t.length;for(e=0;o>e;++e)u+=n?n(t[e]):t[e];if(0===u)return 0;for(e=0;o>e;++e)i=(n?n(t[e]):t[e])/u,i&&(a+=i*Math.log(i));return-a/Math.LN2},a.mutual=function(t,n,e,i){var u,a,o,s=i?t.map(r.$(n)):t,c=i?t.map(r.$(e)):n,f=i?t.map(r.$(i)):e,l={},h={},d=f.length,m=0,g=0,p=0;for(o=0;d>o;++o)l[s[o]]=0,h[c[o]]=0;for(o=0;d>o;++o)l[s[o]]+=f[o],h[c[o]]+=f[o],m+=f[o];for(a=1/(m*Math.LN2),o=0;d>o;++o)0!==f[o]&&(u=m*f[o]/(l[s[o]]*h[c[o]]),g+=f[o]*a*Math.log(u),p+=f[o]*a*Math.log(f[o]/m));return[g,1+g/p]},a.mutual.info=function(t,n,e,r){return a.mutual(t,n,e,r)[0]},a.mutual.dist=function(t,n,e,r){return a.mutual(t,n,e,r)[1]},a.profile=function(t,n){var e,u,o,s,c,f=0,l=0,h=0,d=0,m=null,g=null,p=0,v=[],y={};for(o=0;o<t.length;++o)s=n?n(t[o]):t[o],y[s]=s in y?y[s]+1:(d+=1,1),null==s?++h:r.isValid(s)&&(c="string"==typeof s?s.length:s,(null===m||m>c)&&(m=c),(null===g||c>g)&&(g=c),e=c-f,f+=e/++l,p+=e*(c-f),v.push(c));return p/=l-1,u=Math.sqrt(p),v.sort(r.cmp),{type:i(t,n),unique:y,count:t.length,valid:l,missing:h,distinct:d,min:m,max:g,mean:f,stdev:u,median:s=a.quantile(v,.5),q1:a.quantile(v,.25),q3:a.quantile(v,.75),modeskew:0===u?0:(f-s)/u}},a.summary=function(t,n){n=n||r.keys(t[0]);var e=n.map(function(n){var e=a.profile(t,r.$(n));return e.field=n,e});return e.__summary__=!0,e},n.exports=a},{"./generate":12,"./import/type":21,"./util":27}],25:[function(t,n,e){function r(t){var n=i(t,"d");return n="var __t; return "+n+";",new Function("d",n).bind(l)}function i(t,n,e){n=n||"obj";var r=0,i="'",o=h;return t.replace(o,function(o,s,c){return i+=t.slice(r,c).replace(p,a),r=c+o.length,s&&(i+="'\n+((__t=("+u(s,n,e)+"))==null?'':__t)+\n'"),o}),i+"'"}function u(t,n,e){function i(t){return t=t||"",p?(p=!1,v="String("+v+")"+t):v+=t,v}function u(){return"(typeof "+v+'==="number"?new Date('+v+"):"+v+")"}function a(t,n){M=o(_[0],n,t),p=!1,v="this.formats["+M+"]("+v+")"}function l(t,n){M=o(_[0],n,t),p=!1,v="this.formats["+M+"]("+u()+")"}var h=t.match(d),g=h.shift().trim(),p=!0;e&&(e[g]=1);for(var v=r.property(n,g),y=0;y<h.length;++y){var x,M,w,b=h[y],_=null;switch((x=b.indexOf(":"))>0&&(b=b.slice(0,x),_=h[y].slice(x+1).match(m).map(function(t){return t.trim()})),b=b.trim()){case"length":i(".length");break;case"lower":i(".toLowerCase()");break;case"upper":i(".toUpperCase()");break;case"lower-locale":i(".toLocaleLowerCase()");break;case"upper-locale":i(".toLocaleUpperCase()");break;case"trim":i(".trim()");break;case"left":M=s.number(_[0]),i(".slice(0,"+M+")");break;case"right":M=s.number(_[0]),i(".slice(-"+M+")");break;case"mid":M=s.number(_[0]),w=M+s.number(_[1]),i(".slice(+"+M+","+w+")");break;case"slice":M=s.number(_[0]),i(".slice("+M+(_.length>1?","+s.number(_[1]):"")+")");break;case"truncate":M=s.number(_[0]),w=_[1],w="left"!==w&&"middle"!==w&&"center"!==w?"right":w,v="this.truncate("+i()+","+M+",'"+w+"')";break;case"pad":M=s.number(_[0]),w=_[1],w="left"!==w&&"middle"!==w&&"center"!==w?"right":w,v="this.pad("+i()+","+M+",'"+w+"')";break;case"number":a(c.format,"number");break;case"time":l(f.format,"time");break;case"time-utc":l(f.utcFormat,"time-utc");break;default:throw Error("Unrecognized template filter: "+b)}}return v}function a(t){return"\\"+g[t]}function o(t,n,e){if(!("'"===t[0]&&"'"===t[t.length-1]||'"'===t[0]&&'"'===t[t.length-1]))throw Error("Format pattern must be quoted: "+t);if(t=t.slice(1,-1),n=n+":"+t,!l.format_map[n]){var r=e(t),i=l.formats.length;l.formats.push(r),l.format_map[n]=i}return l.format_map[n]}var s=t("./util"),c=t("d3-format"),f=t("d3-time-format"),l={formats:[],format_map:{},truncate:s.truncate,pad:s.pad};r.source=i,r.context=l,n.exports=r,r.clearFormatCache=function(){l.formats=[],l.format_map={}},r.property=function(t,n){var e=s.field(n).map(s.str).join("][");return t+"["+e+"]"};var h=/\{\{(.+?)\}\}|$/g,d=/(?:"[^"]*"|\'[^\']*\'|[^\|"]+|[^\|\']+)+/g,m=/(?:"[^"]*"|\'[^\']*\'|[^,"]+|[^,\']+)+/g,g={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},p=/\\|'|\r|\n|\u2028|\u2029/g},{"./util":27,"d3-format":3,"d3-time-format":4}],26:[function(t,n,e){function r(t){return c.setTime(+t),c}function i(t,n,e,r,i,u){var a={type:t,date:n,unit:e};return r?a.step=r:a.minstep=1,null!=i&&(a.min=i),null!=u&&(a.max=u),a}function u(t,n,e,r,u,a){return i(t,function(t){return n.offset(e,t)},function(t){return n.count(e,t)},r,u,a)}function a(t,n,e,r){var i,u,a,o=m[0];for(i=1,u=m.length;u>i;++i)if(o=m[i],n>o[0]){if(a=n/o[0],a>r)return t[m[i-1][1]];if(a>=e)return t[o[1]]}return t[m[u-1][1]]}function o(t){var n,e,r={};for(n=0,e=t.length;e>n;++n)r[t[n].type]=t[n];return r.find=function(n,e,r){return a(t,n,e,r)},r}var s=t("d3-time"),c=new Date,f=new Date(0,0,1).setFullYear(0),l=new Date(Date.UTC(0,0,1)).setUTCFullYear(0),h=[u("second",s.second,f),u("minute",s.minute,f),u("hour",s.hour,f),u("day",s.day,f,[1,7]),u("month",s.month,f,[1,3,6]),u("year",s.year,f),i("seconds",function(t){return new Date(1970,0,1,0,0,t)},function(t){return r(t).getSeconds()},null,0,59),i("minutes",function(t){return new Date(1970,0,1,0,t)},function(t){return r(t).getMinutes()},null,0,59),i("hours",function(t){return new Date(1970,0,1,t)},function(t){return r(t).getHours()},null,0,23),i("weekdays",function(t){return new Date(1970,0,4+t)},function(t){return r(t).getDay()},[1],0,6),i("dates",function(t){return new Date(1970,0,t)},function(t){return r(t).getDate()},[1],1,31),i("months",function(t){return new Date(1970,t%12,1)},function(t){return r(t).getMonth()},[1],0,11)],d=[u("second",s.utcSecond,l),u("minute",s.utcMinute,l),u("hour",s.utcHour,l),u("day",s.utcDay,l,[1,7]),u("month",s.utcMonth,l,[1,3,6]),u("year",s.utcYear,l),i("seconds",function(t){return new Date(Date.UTC(1970,0,1,0,0,t))},function(t){return r(t).getUTCSeconds()},null,0,59),i("minutes",function(t){return new Date(Date.UTC(1970,0,1,0,t))},function(t){return r(t).getUTCMinutes()},null,0,59),i("hours",function(t){return new Date(Date.UTC(1970,0,1,t))},function(t){return r(t).getUTCHours()},null,0,23),i("weekdays",function(t){return new Date(Date.UTC(1970,0,4+t))},function(t){return r(t).getUTCDay()},[1],0,6),i("dates",function(t){return new Date(Date.UTC(1970,0,t))},function(t){return r(t).getUTCDate()},[1],1,31),i("months",function(t){return new Date(Date.UTC(1970,t%12,1))},function(t){return r(t).getUTCMonth()},[1],0,11)],m=[[31536e6,5],[7776e6,4],[2592e6,4],[12096e5,3],[6048e5,3],[1728e5,3],[864e5,3],[432e5,2],[216e5,2],[108e5,2],[36e5,2],[18e5,1],[9e5,1],[3e5,1],[6e4,1],[3e4,0],[15e3,0],[5e3,0],[1e3,0]];n.exports=o(h),n.exports.utc=o(d)},{"d3-time":5}],27:[function(t,n,e){function r(t){return t.replace(h,"$1\\'")}function i(t,n){var e,r="";for(e=0;t>e;++e)r+=n;return r}function u(t,n,e){var r=0,i=t.split(d);return t=e?(i=i.reverse()).filter(function(t){return r+=t.length,n>=r}).reverse():i.filter(function(t){return r+=t.length,n>=r}),t.length?t.join("").trim():i[0].slice(0,n)}var a=t("buffer"),o=t("./time"),s=o.utc,c=n.exports={},f="__name__";c.namedfunc=function(t,n){return n[f]=t,n},c.name=function(t){return null==t?null:t[f]},c.identity=function(t){return t},c["true"]=c.namedfunc("true",function(){return!0}),c["false"]=c.namedfunc("false",function(){return!1}),c.duplicate=function(t){return JSON.parse(JSON.stringify(t))},c.equal=function(t,n){return JSON.stringify(t)===JSON.stringify(n)},c.extend=function(t){for(var n,e,r=1,i=arguments.length;i>r;++r){n=arguments[r];for(e in n)t[e]=n[e]}return t},c.length=function(t){return null!=t&&null!=t.length?t.length:null},c.keys=function(t){var n,e=[];for(n in t)e.push(n);return e},c.vals=function(t){var n,e=[];for(n in t)e.push(t[n]);return e},c.toMap=function(t,n){return(n=c.$(n))?t.reduce(function(t,e){return t[n(e)]=1,t},{}):t.reduce(function(t,n){return t[n]=1,t},{})},c.keystr=function(t){var n=t.length;if(!n)return"";for(var e=String(t[0]),r=1;n>r;++r)e+="|"+String(t[r]);return e};var l=Object.prototype.toString;c.isObject=function(t){return t===Object(t)},c.isFunction=function(t){return"[object Function]"===l.call(t)},c.isString=function(t){return"string"==typeof value||"[object String]"===l.call(t)},c.isArray=Array.isArray||function(t){return"[object Array]"===l.call(t)},c.isNumber=function(t){return"number"==typeof t||"[object Number]"===l.call(t)},c.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"==l.call(t)},c.isDate=function(t){return"[object Date]"===l.call(t)},c.isValid=function(t){return null!=t&&t===t},c.isBuffer=a.Buffer&&a.Buffer.isBuffer||c["false"],c.number=function(t){return null==t||""===t?null:+t},c["boolean"]=function(t){return null==t||""===t?null:"false"===t?!1:!!t},c.date=function(t){return null==t||""===t?null:Date.parse(t)},c.array=function(t){return null!=t?c.isArray(t)?t:[t]:[]},c.str=function(t){return c.isArray(t)?"["+t.map(c.str)+"]":c.isObject(t)?JSON.stringify(t):c.isString(t)?"'"+r(t)+"'":t};var h=/(^|[^\\])'/g;c.field=function(t){return String(t).split("\\.").map(function(t){return t.split(".")}).reduce(function(t,n){return t.length&&(t[t.length-1]+="."+n.shift()),t.push.apply(t,n),t},[])},c.accessor=function(t){var n;return null==t||c.isFunction(t)?t:c.namedfunc(t,(n=c.field(t)).length>1?function(t){return n.reduce(function(t,n){return t[n]},t)}:function(n){return n[t]})},c.$=c.accessor,c.mutator=function(t){var n;return c.isString(t)&&(n=c.field(t)).length>1?function(t,e){for(var r=0;r<n.length-1;++r)t=t[n[r]];t[n[r]]=e}:function(n,e){n[t]=e}},c.$func=function(t,n){return function(e){e=c.$(e)||c.identity;var r=t+(c.name(e)?"_"+c.name(e):"");return c.namedfunc(r,function(t){return n(e(t))})}},c.$valid=c.$func("valid",c.isValid),c.$length=c.$func("length",c.length),c.$in=function(t,n){t=c.$(t);var e=c.isArray(n)?c.toMap(n):n;return function(n){return!!e[t(n)]}},c.$year=c.$func("year",o.year.unit),c.$month=c.$func("month",o.months.unit),c.$date=c.$func("date",o.dates.unit),c.$day=c.$func("day",o.weekdays.unit),c.$hour=c.$func("hour",o.hours.unit),c.$minute=c.$func("minute",o.minutes.unit),c.$second=c.$func("second",o.seconds.unit),c.$utcYear=c.$func("utcYear",s.year.unit),c.$utcMonth=c.$func("utcMonth",s.months.unit),c.$utcDate=c.$func("utcDate",s.dates.unit),c.$utcDay=c.$func("utcDay",s.weekdays.unit),c.$utcHour=c.$func("utcHour",s.hours.unit),c.$utcMinute=c.$func("utcMinute",s.minutes.unit),c.$utcSecond=c.$func("utcSecond",s.seconds.unit),c.comparator=function(t){var n=[];return void 0===t&&(t=[]),t=c.array(t).map(function(t){var e=1;return"-"===t[0]?(e=-1,t=t.slice(1)):"+"===t[0]&&(e=1,t=t.slice(1)),n.push(e),c.accessor(t)}),function(e,r){var i,u,a,o,s;for(i=0,u=t.length;u>i;++i){if(a=t[i],o=a(e),s=a(r),s>o)return-1*n[i];if(o>s)return n[i]}return 0}},c.cmp=function(t,n){return n>t?-1:t>n?1:t>=n?0:null===t?-1:null===n?1:NaN},c.numcmp=function(t,n){return t-n},c.stablesort=function(t,n,e){var r=t.reduce(function(t,n,r){return t[e(n)]=r,t},{});return t.sort(function(t,i){var u=n(t),a=n(i);return a>u?-1:u>a?1:r[e(t)]-r[e(i)]}),t},c.pad=function(t,n,e,r){r=r||" ";var u=n-t.length;if(0>=u)return t;switch(e){case"left":return i(u,r)+t;case"middle":case"center":return i(Math.floor(u/2),r)+t+i(Math.ceil(u/2),r);default:return t+i(u,r)}},c.truncate=function(t,n,e,r,i){var a=t.length;if(n>=a)return t;i=void 0!==i?String(i):"…";var o=Math.max(0,n-i.length);switch(e){case"left":return i+(r?u(t,o,1):t.slice(a-o));case"middle":case"center":var s=Math.ceil(o/2),c=Math.floor(o/2);return(r?u(t,s):t.slice(0,s))+i+(r?u(t,c,1):t.slice(a-c));default:return(r?u(t,o):t.slice(0,o))+i}};var d=/([\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u2028\u2029\u3000\uFEFF])/},{"./time":26,buffer:1}]},{},[22])(22)});