www.flow.js.flow.js Maven / Gradle / Ivy
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=657)}([function(e,t,n){"use strict";var r=n(4),i=n(10),a=n(13),o=a.FP_SAFE,s=a.BADNUM,l=e.exports={};l.nestedProperty=n(196),l.keyedContainer=n(684),l.relativeAttr=n(685),l.isPlainObject=n(115),l.toLogRange=n(197),l.relinkPrivateKeys=n(686);var u=n(99);l.isTypedArray=u.isTypedArray,l.isArrayOrTypedArray=u.isArrayOrTypedArray,l.isArray1D=u.isArray1D,l.ensureArray=u.ensureArray,l.concat=u.concat,l.maxRowLength=u.maxRowLength,l.minRowLength=u.minRowLength;var c=n(116);l.mod=c.mod,l.modHalf=c.modHalf;var d=n(687);l.valObjectMeta=d.valObjectMeta,l.coerce=d.coerce,l.coerce2=d.coerce2,l.coerceFont=d.coerceFont,l.coerceHoverinfo=d.coerceHoverinfo,l.coerceSelectionMarkerOpacity=d.coerceSelectionMarkerOpacity,l.validate=d.validate;var f=n(688);l.dateTime2ms=f.dateTime2ms,l.isDateTime=f.isDateTime,l.ms2DateTime=f.ms2DateTime,l.ms2DateTimeLocal=f.ms2DateTimeLocal,l.cleanDate=f.cleanDate,l.isJSDate=f.isJSDate,l.formatDate=f.formatDate,l.incrementMonth=f.incrementMonth,l.dateTick0=f.dateTick0,l.dfltRange=f.dfltRange,l.findExactDates=f.findExactDates,l.MIN_MS=f.MIN_MS,l.MAX_MS=f.MAX_MS;var h=n(200);l.findBin=h.findBin,l.sorterAsc=h.sorterAsc,l.sorterDes=h.sorterDes,l.distinctVals=h.distinctVals,l.roundUp=h.roundUp,l.sort=h.sort,l.findIndexOfMin=h.findIndexOfMin;var p=n(689);l.aggNums=p.aggNums,l.len=p.len,l.mean=p.mean,l.median=p.median,l.midRange=p.midRange,l.variance=p.variance,l.stdev=p.stdev,l.interp=p.interp;var m=n(299);l.init2dArray=m.init2dArray,l.transposeRagged=m.transposeRagged,l.dot=m.dot,l.translationMatrix=m.translationMatrix,l.rotationMatrix=m.rotationMatrix,l.rotationXYMatrix=m.rotationXYMatrix,l.apply2DTransform=m.apply2DTransform,l.apply2DTransform2=m.apply2DTransform2;var g=n(690);l.deg2rad=g.deg2rad,l.rad2deg=g.rad2deg,l.angleDelta=g.angleDelta,l.angleDist=g.angleDist,l.isFullCircle=g.isFullCircle,l.isAngleInsideSector=g.isAngleInsideSector,l.isPtInsideSector=g.isPtInsideSector,l.pathArc=g.pathArc,l.pathSector=g.pathSector,l.pathAnnulus=g.pathAnnulus;var v=n(691);l.isLeftAnchor=v.isLeftAnchor,l.isCenterAnchor=v.isCenterAnchor,l.isRightAnchor=v.isRightAnchor,l.isTopAnchor=v.isTopAnchor,l.isMiddleAnchor=v.isMiddleAnchor,l.isBottomAnchor=v.isBottomAnchor;var y=n(692);l.segmentsIntersect=y.segmentsIntersect,l.segmentDistance=y.segmentDistance,l.getTextLocation=y.getTextLocation,l.clearLocationCache=y.clearLocationCache,l.getVisibleSegment=y.getVisibleSegment,l.findPointOnPath=y.findPointOnPath;var _=n(9);l.extendFlat=_.extendFlat,l.extendDeep=_.extendDeep,l.extendDeepAll=_.extendDeepAll,l.extendDeepNoArrays=_.extendDeepNoArrays;var b=n(119);l.log=b.log,l.warn=b.warn,l.error=b.error;var x=n(118);l.counterRegex=x.counter;var w=n(202);function M(e){var t={};for(var n in e)for(var r=e[n],i=0;io?s:i(e)?Number(e):s:s},l.isIndex=function(e,t){return!(void 0!==t&&e>=t)&&(i(e)&&e>=0&&e%1==0)},l.noop=n(198),l.identity=n(201),l.repeat=function(e,t){for(var n=new Array(t),r=0;rn?Math.max(n,Math.min(t,e)):Math.max(t,Math.min(n,e))},l.bBoxIntersect=function(e,t,n){return n=n||0,e.left<=t.right+n&&t.left<=e.right+n&&e.top<=t.bottom+n&&t.top<=e.bottom+n},l.simpleMap=function(e,t,n,r){for(var i=e.length,a=new Array(i),o=0;o=Math.pow(2,n)?i>10?(l.warn("randstr failed uniqueness"),u):e(t,n,r,(i||0)+1):u},l.OptionControl=function(e,t){e||(e={}),t||(t="opt");var n={optionList:[],_newoption:function(r){r[t]=e,n[r.name]=r,n.optionList.push(r)}};return n["_"+t]=e,n},l.smooth=function(e,t){if((t=Math.round(t)||0)<2)return e;var n,r,i,a,o=e.length,s=2*o,l=2*t-1,u=new Array(l),c=new Array(o);for(n=0;n=s&&(i-=s*Math.floor(i/s)),i<0?i=-1-i:i>=o&&(i=s-1-i),a+=e[i]*u[r];c[n]=a}return c},l.syncOrAsync=function(e,t,n){var r;function i(){return l.syncOrAsync(e,t,n)}for(;e.length;)if((r=(0,e.splice(0,1)[0])(t))&&r.then)return r.then(i).then(void 0,l.promiseError);return n&&n(t)},l.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},l.noneOrAll=function(e,t,n){if(e){var r,i=!1,a=!0;for(r=0;r1?i+o[1]:"";if(a&&(o.length>1||s.length>4||n))for(;r.test(s);)s=s.replace(r,"$1"+a+"$2");return s+l},l.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)(:[^}]*)?}/g;var E=/^\w*$/;l.templateString=function(e,t){var n={};return e.replace(l.TEMPLATE_STRING_REGEX,function(e,r){return E.test(r)?t[r]||"":(n[r]=n[r]||l.nestedProperty(t,r).get,n[r]()||"")})};var A=/^:/,C=0;l.hovertemplateString=function(e,t,n){var i=arguments,a={};return e.replace(l.TEMPLATE_STRING_REGEX,function(e,o,s){var u,c,d;for(d=3;d=48&&o<=57,u=s>=48&&s<=57;if(l&&(r=10*r+o-48),u&&(i=10*i+s-48),!l||!u){if(r!==i)return r-i;if(o!==s)return o-s}}return i-r};var S=2e9;l.seedPseudoRandom=function(){S=2e9},l.pseudoRandom=function(){var e=S;return S=(69069*S+1)%4294967296,Math.abs(S-e)<429496729?l.pseudoRandom():S/4294967296},l.fillText=function(e,t,n){var r=Array.isArray(n)?function(e){n.push(e)}:function(e){n.text=e},i=l.extractOption(e,t,"htx","hovertext");if(l.isValidTextValue(i))return r(i);var a=l.extractOption(e,t,"tx","text");return l.isValidTextValue(a)?r(a):void 0},l.isValidTextValue=function(e){return e||0===e},l.formatPercent=function(e,t){t=t||0;for(var n=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",r=0;r>>0,r=0;r0)for(n=0;n=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Y=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},H={};function q(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(H[e]=i),t&&(H[t[0]]=function(){return z(i.apply(this,arguments),t[1],t[2])}),n&&(H[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function V(e,t){return e.isValid()?(t=G(t,e.localeData()),U[t]=U[t]||function(e){var t,n,r,i=e.match(j);for(t=0,n=i.length;t=0&&Y.test(e);)e=e.replace(Y,r),Y.lastIndex=0,n-=1;return e}var $=/\d/,W=/\d\d/,X=/\d{3}/,K=/\d{4}/,Z=/[+-]?\d{6}/,J=/\d\d?/,Q=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,ie=/\d+/,ae=/[+-]?\d+/,oe=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ue={};function ce(e,t,n){ue[e]=D(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(ue,e)?ue[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function pe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=M(e)}),n=0;n68?1900:2e3)};var Ce,Se=De("FullYear",!0);function De(e,t){return function(n){return null!=n?(Oe(this,e,n),i.updateOffset(this,t),this):Le(this,e)}}function Le(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Oe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ae(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ne(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ne(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Ae(e)?29:28:31-r%7%2}Ce=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function He(e,t,n){var r=7+t-n,i=(7+Ue(e,0,r).getUTCDay()-t)%7;return-i+r-1}function qe(e,t,n,r,i){var a,o,s=(7+n-r)%7,l=He(e,r,i),u=1+7*(t-1)+s+l;return u<=0?o=Ee(a=e-1)+u:u>Ee(e)?(a=e+1,o=u-Ee(e)):(a=e,o=u),{year:a,dayOfYear:o}}function Ve(e,t,n){var r,i,a=He(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?(i=e.year()-1,r=o+Ge(i,t,n)):o>Ge(e.year(),t,n)?(r=o-Ge(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function Ge(e,t,n){var r=He(e,t,n),i=He(e+1,t,n);return(Ee(e)-r+i)/7}q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),B("week",5),B("isoWeek",5),ce("w",J),ce("ww",J,W),ce("W",J),ce("WW",J,W),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=M(e)}),q("d",0,"do","day"),q("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),q("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),q("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),ce("d",J),ce("e",J),ce("E",J),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,r){t[r]=M(e)});var $e="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),We="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=le,Ze=le,Je=le;function Qe(){function e(e,t){return t.length-e.length}var t,n,r,i,a,o=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(r),s.push(i),l.push(a),u.push(r),u.push(i),u.push(a);for(o.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=fe(s[t]),l[t]=fe(l[t]),u[t]=fe(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){q(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}q("H",["HH",2],0,"hour"),q("h",["hh",2],0,et),q("k",["kk",2],0,function(){return this.hours()||24}),q("hmm",0,0,function(){return""+et.apply(this)+z(this.minutes(),2)}),q("hmmss",0,0,function(){return""+et.apply(this)+z(this.minutes(),2)+z(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+z(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+z(this.minutes(),2)+z(this.seconds(),2)}),tt("a",!0),tt("A",!1),I("hour","h"),B("hour",13),ce("a",nt),ce("A",nt),ce("H",J),ce("h",J),ce("k",J),ce("HH",J,W),ce("hh",J,W),ce("kk",J,W),ce("hmm",Q),ce("hmmss",ee),ce("Hmm",Q),ce("Hmmss",ee),pe(["H","HH"],be),pe(["k","kk"],function(e,t,n){var r=M(e);t[be]=24===r?0:r}),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[be]=M(e),p(n).bigHour=!0}),pe("hmm",function(e,t,n){var r=e.length-2;t[be]=M(e.substr(0,r)),t[xe]=M(e.substr(r)),p(n).bigHour=!0}),pe("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[be]=M(e.substr(0,r)),t[xe]=M(e.substr(r,2)),t[we]=M(e.substr(i)),p(n).bigHour=!0}),pe("Hmm",function(e,t,n){var r=e.length-2;t[be]=M(e.substr(0,r)),t[xe]=M(e.substr(r))}),pe("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[be]=M(e.substr(0,r)),t[xe]=M(e.substr(r,2)),t[we]=M(e.substr(i))});var rt,it=De("Hours",!0),at={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Fe,monthsShort:Pe,week:{dow:0,doy:6},weekdays:$e,weekdaysMin:Xe,weekdaysShort:We,meridiemParse:/[ap]\.?m?\.?/i},ot={},st={};function lt(e){return e?e.toLowerCase().replace("_","-"):e}function ut(t){var r=null;if(!ot[t]&&void 0!==e&&e&&e.exports)try{r=rt._abbr,n(1421)("./"+t),ct(r)}catch(e){}return ot[t]}function ct(e,t){var n;return e&&((n=s(t)?ft(e):dt(e,t))?rt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rt._abbr}function dt(e,t){if(null!==t){var n,r=at;if(t.abbr=e,null!=ot[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ot[e]._config;else if(null!=t.parentLocale)if(null!=ot[t.parentLocale])r=ot[t.parentLocale]._config;else{if(null==(n=ut(t.parentLocale)))return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ot[e]=new O(L(r,t)),st[e]&&st[e].forEach(function(e){dt(e.name,e.config)}),ct(e),ot[e]}return delete ot[e],null}function ft(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rt;if(!a(e)){if(t=ut(e))return t;e=[e]}return function(e){for(var t,n,r,i,a=0;a0;){if(r=ut(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&T(i,n,!0)>=t-1)break;t--}a++}return rt}(e)}function ht(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[_e]<1||n[_e]>Ne(n[ve],n[ye])?_e:n[be]<0||n[be]>24||24===n[be]&&(0!==n[xe]||0!==n[we]||0!==n[Me])?be:n[xe]<0||n[xe]>59?xe:n[we]<0||n[we]>59?we:n[Me]<0||n[Me]>999?Me:-1,p(e)._overflowDayOfYear&&(t_e)&&(t=_e),p(e)._overflowWeeks&&-1===t&&(t=Te),p(e)._overflowWeekday&&-1===t&&(t=ke),p(e).overflow=t),e}function pt(e,t,n){return null!=e?e:null!=t?t:n}function mt(e){var t,n,r,a,o,s=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[_e]&&null==e._a[ye]&&function(e){var t,n,r,i,a,o,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,o=4,n=pt(t.GG,e._a[ve],Ve(Dt(),1,4).year),r=pt(t.W,1),((i=pt(t.E,1))<1||i>7)&&(l=!0);else{a=e._locale._week.dow,o=e._locale._week.doy;var u=Ve(Dt(),a,o);n=pt(t.gg,e._a[ve],u.year),r=pt(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a}r<1||r>Ge(n,a,o)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=qe(n,r,i,a,o),e._a[ve]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=pt(e._a[ve],r[ve]),(e._dayOfYear>Ee(o)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Ue(o,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[_e]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[be]&&0===e._a[xe]&&0===e._a[we]&&0===e._a[Me]&&(e._nextDay=!0,e._a[be]=0),e._d=(e._useUTC?Ue:function(e,t,n,r,i,a,o){var s=new Date(e,t,n,r,i,a,o);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[be]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(p(e).weekdayMismatch=!0)}}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/Z|[+-]\d\d(?::?\d\d)?/,_t=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xt=/^\/?Date\((\-?\d+)/i;function wt(e){var t,n,r,i,a,o,s=e._i,l=gt.exec(s)||vt.exec(s);if(l){for(p(e).iso=!0,t=0,n=_t.length;t0&&p(e).unusedInput.push(o),s=s.slice(s.indexOf(n)+n.length),u+=n.length),H[a]?(n?p(e).empty=!1:p(e).unusedTokens.push(a),ge(a,n,e)):e._strict&&!n&&p(e).unusedTokens.push(a);p(e).charsLeftOver=l-u,s.length>0&&p(e).unusedInput.push(s),e._a[be]<=12&&!0===p(e).bigHour&&e._a[be]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[be]=(c=e._locale,d=e._a[be],null==(f=e._meridiem)?d:null!=c.meridiemHour?c.meridiemHour(d,f):null!=c.isPM?((h=c.isPM(f))&&d<12&&(d+=12),h||12!==d||(d=0),d):d),mt(e),ht(e)}else Et(e);else wt(e);var c,d,f,h}function Ct(e){var t=e._i,n=e._f;return e._locale=e._locale||ft(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new b(ht(t)):(u(t)?e._d=t:a(n)?function(e){var t,n,r,i,a;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:g()});function Nt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],r=1;ra&&(t=a),function(e,t,n,r,i){var a=qe(e,t,n,r,i),o=Ue(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}.call(this,e,t,n,r,i))}q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),ce("G",ae),ce("g",ae),ce("GG",J,W),ce("gg",J,W),ce("GGGG",ne,K),ce("gggg",ne,K),ce("GGGGG",re,Z),ce("ggggg",re,Z),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=M(e)}),me(["gg","GG"],function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)}),q("Q",0,"Qo","quarter"),I("quarter","Q"),B("quarter",7),ce("Q",$),pe("Q",function(e,t){t[ye]=3*(M(e)-1)}),q("D",["DD",2],"Do","date"),I("date","D"),B("date",9),ce("D",J),ce("DD",J,W),ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),pe(["D","DD"],_e),pe("Do",function(e,t){t[_e]=M(e.match(J)[0])});var on=De("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),B("dayOfYear",4),ce("DDD",te),ce("DDDD",X),pe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=M(e)}),q("m",["mm",2],0,"minute"),I("minute","m"),B("minute",14),ce("m",J),ce("mm",J,W),pe(["m","mm"],xe);var sn=De("Minutes",!1);q("s",["ss",2],0,"second"),I("second","s"),B("second",15),ce("s",J),ce("ss",J,W),pe(["s","ss"],we);var ln,un=De("Seconds",!1);for(q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),B("millisecond",16),ce("S",te,$),ce("SS",te,W),ce("SSS",te,X),ln="SSSS";ln.length<=9;ln+="S")ce(ln,ie);function cn(e,t){t[Me]=M(1e3*("0."+e))}for(ln="S";ln.length<=9;ln+="S")pe(ln,cn);var dn=De("Milliseconds",!1);q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var fn=b.prototype;function hn(e){return e}fn.add=Zt,fn.calendar=function(e,t){var n=e||Dt(),r=Yt(n,this).startOf("day"),a=i.calendarFormat(this,r)||"sameElse",o=t&&(D(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,Dt(n)))},fn.clone=function(){return new b(this)},fn.diff=function(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=Yt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=F(t)){case"year":a=Qt(this,r)/12;break;case"month":a=Qt(this,r);break;case"quarter":a=Qt(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:w(a)},fn.endOf=function(e){return void 0===(e=F(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},fn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)},fn.from=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||Dt(e).isValid())?Gt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.fromNow=function(e){return this.from(Dt(),e)},fn.to=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||Dt(e).isValid())?Gt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.toNow=function(e){return this.to(Dt(),e)},fn.get=function(e){return D(this[e=F(e)])?this[e]():this},fn.invalidAt=function(){return p(this).overflow},fn.isAfter=function(e,t){var n=x(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=F(s(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()9999?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},fn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},fn.toJSON=function(){return this.isValid()?this.toISOString():null},fn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},fn.unix=function(){return Math.floor(this.valueOf()/1e3)},fn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},fn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},fn.year=Se,fn.isLeapYear=function(){return Ae(this.year())},fn.weekYear=function(e){return an.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},fn.isoWeekYear=function(e){return an.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},fn.quarter=fn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},fn.month=Be,fn.daysInMonth=function(){return Ne(this.year(),this.month())},fn.week=fn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},fn.isoWeek=fn.isoWeeks=function(e){var t=Ve(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},fn.weeksInYear=function(){var e=this.localeData()._week;return Ge(this.year(),e.dow,e.doy)},fn.isoWeeksInYear=function(){return Ge(this.year(),1,4)},fn.date=on,fn.day=fn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},fn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},fn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},fn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},fn.hour=fn.hours=it,fn.minute=fn.minutes=sn,fn.second=fn.seconds=un,fn.millisecond=fn.milliseconds=dn,fn.utcOffset=function(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=jt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Ut(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?Kt(this,Gt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Ut(this)},fn.utc=function(e){return this.utcOffset(0,e)},fn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ut(this),"m")),this},fn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=jt(oe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},fn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Dt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},fn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},fn.isLocal=function(){return!!this.isValid()&&!this._isUTC},fn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},fn.isUtc=Ht,fn.isUTC=Ht,fn.zoneAbbr=function(){return this._isUTC?"UTC":""},fn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},fn.dates=E("dates accessor is deprecated. Use date instead.",on),fn.months=E("months accessor is deprecated. Use month instead",Be),fn.years=E("years accessor is deprecated. Use year instead",Se),fn.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),fn.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Ct(e))._a){var t=e._isUTC?h(e._a):Dt(e._a);this._isDSTShifted=this.isValid()&&T(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var pn=O.prototype;function mn(e,t,n,r){var i=ft(),a=h().set(r,t);return i[n](a,e)}function gn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return mn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mn(e,r,n,"month");return i}function vn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var i,a=ft(),o=e?a._week.dow:0;if(null!=n)return mn(t,(n+o)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=mn(t,(i+o)%7,r,"day");return s}pn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return D(r)?r.call(t,n):r},pn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},pn.invalidDate=function(){return this._invalidDate},pn.ordinal=function(e){return this._ordinal.replace("%d",e)},pn.preparse=hn,pn.postformat=hn,pn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return D(i)?i(e,t,n,r):i.replace(/%d/i,e)},pn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)},pn.set=function(e){var t,n;for(n in e)D(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},pn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ie).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},pn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ie.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},pn.monthsParse=function(e,t,n){var r,i,a;if(this._monthsParseExact)return function(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ce.call(this._shortMonthsParse,o))?i:null:-1!==(i=Ce.call(this._longMonthsParse,o))?i:null:"MMM"===t?-1!==(i=Ce.call(this._shortMonthsParse,o))?i:-1!==(i=Ce.call(this._longMonthsParse,o))?i:null:-1!==(i=Ce.call(this._longMonthsParse,o))?i:-1!==(i=Ce.call(this._shortMonthsParse,o))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},pn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ye.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=je),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},pn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ye.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=ze),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},pn.week=function(e){return Ve(e,this._week.dow,this._week.doy).week},pn.firstDayOfYear=function(){return this._week.doy},pn.firstDayOfWeek=function(){return this._week.dow},pn.weekdays=function(e,t){return e?a(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:a(this._weekdays)?this._weekdays:this._weekdays.standalone},pn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},pn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},pn.weekdaysParse=function(e,t,n){var r,i,a;if(this._weekdaysParseExact)return function(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ce.call(this._weekdaysParse,o))?i:null:"ddd"===t?-1!==(i=Ce.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=Ce.call(this._minWeekdaysParse,o))?i:null:"dddd"===t?-1!==(i=Ce.call(this._weekdaysParse,o))?i:-1!==(i=Ce.call(this._shortWeekdaysParse,o))?i:-1!==(i=Ce.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=Ce.call(this._shortWeekdaysParse,o))?i:-1!==(i=Ce.call(this._weekdaysParse,o))?i:-1!==(i=Ce.call(this._minWeekdaysParse,o))?i:null:-1!==(i=Ce.call(this._minWeekdaysParse,o))?i:-1!==(i=Ce.call(this._weekdaysParse,o))?i:-1!==(i=Ce.call(this._shortWeekdaysParse,o))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},pn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},pn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},pn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},pn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},pn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ct("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===M(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),i.lang=E("moment.lang is deprecated. Use moment.locale instead.",ct),i.langData=E("moment.langData is deprecated. Use moment.localeData instead.",ft);var yn=Math.abs;function _n(e,t,n,r){var i=Gt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function bn(e){return e<0?Math.floor(e):Math.ceil(e)}function xn(e){return 4800*e/146097}function wn(e){return 146097*e/4800}function Mn(e){return function(){return this.as(e)}}var Tn=Mn("ms"),kn=Mn("s"),En=Mn("m"),An=Mn("h"),Cn=Mn("d"),Sn=Mn("w"),Dn=Mn("M"),Ln=Mn("y");function On(e){return function(){return this.isValid()?this._data[e]:NaN}}var Nn=On("milliseconds"),In=On("seconds"),Fn=On("minutes"),Pn=On("hours"),Rn=On("days"),Bn=On("months"),zn=On("years"),jn=Math.round,Yn={ss:44,s:45,m:45,h:22,d:26,M:11},Un=Math.abs;function Hn(e){return(e>0)-(e<0)||+e}function qn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Un(this._milliseconds)/1e3,r=Un(this._days),i=Un(this._months);e=w(n/60),t=w(e/60),n%=60,e%=60;var a=w(i/12),o=i%=12,s=r,l=t,u=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",h=Hn(this._months)!==Hn(d)?"-":"",p=Hn(this._days)!==Hn(d)?"-":"",m=Hn(this._milliseconds)!==Hn(d)?"-":"";return f+"P"+(a?h+a+"Y":"")+(o?h+o+"M":"")+(s?p+s+"D":"")+(l||u||c?"T":"")+(l?m+l+"H":"")+(u?m+u+"M":"")+(c?m+c+"S":"")}var Vn=Ft.prototype;return Vn.isValid=function(){return this._isValid},Vn.abs=function(){var e=this._data;return this._milliseconds=yn(this._milliseconds),this._days=yn(this._days),this._months=yn(this._months),e.milliseconds=yn(e.milliseconds),e.seconds=yn(e.seconds),e.minutes=yn(e.minutes),e.hours=yn(e.hours),e.months=yn(e.months),e.years=yn(e.years),this},Vn.add=function(e,t){return _n(this,e,t,1)},Vn.subtract=function(e,t){return _n(this,e,t,-1)},Vn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=F(e))||"year"===e)return t=this._days+r/864e5,n=this._months+xn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(wn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Vn.asMilliseconds=Tn,Vn.asSeconds=kn,Vn.asMinutes=En,Vn.asHours=An,Vn.asDays=Cn,Vn.asWeeks=Sn,Vn.asMonths=Dn,Vn.asYears=Ln,Vn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*M(this._months/12):NaN},Vn._bubble=function(){var e,t,n,r,i,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*bn(wn(s)+o),o=0,s=0),l.milliseconds=a%1e3,e=w(a/1e3),l.seconds=e%60,t=w(e/60),l.minutes=t%60,n=w(t/60),l.hours=n%24,o+=w(n/24),i=w(xn(o)),s+=i,o-=bn(wn(i)),r=w(s/12),s%=12,l.days=o,l.months=s,l.years=r,this},Vn.clone=function(){return Gt(this)},Vn.get=function(e){return e=F(e),this.isValid()?this[e+"s"]():NaN},Vn.milliseconds=Nn,Vn.seconds=In,Vn.minutes=Fn,Vn.hours=Pn,Vn.days=Rn,Vn.weeks=function(){return w(this.days()/7)},Vn.months=Bn,Vn.years=zn,Vn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Gt(e).abs(),i=jn(r.as("s")),a=jn(r.as("m")),o=jn(r.as("h")),s=jn(r.as("d")),l=jn(r.as("M")),u=jn(r.as("y")),c=i<=Yn.ss&&["s",i]||i0,c[4]=n,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Vn.toISOString=qn,Vn.toString=qn,Vn.toJSON=qn,Vn.locale=en,Vn.localeData=nn,Vn.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qn),Vn.lang=tn,q("X",0,0,"unix"),q("x",0,0,"valueOf"),ce("x",ae),ce("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),pe("x",function(e,t,n){n._d=new Date(M(e))}),i.version="2.22.2",t=Dt,i.fn=fn,i.min=function(){return Nt("isBefore",[].slice.call(arguments,0))},i.max=function(){return Nt("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=h,i.unix=function(e){return Dt(1e3*e)},i.months=function(e,t){return gn(e,t,"months")},i.isDate=u,i.locale=ct,i.invalid=g,i.duration=Gt,i.isMoment=x,i.weekdays=function(e,t,n){return vn(e,t,n,"weekdays")},i.parseZone=function(){return Dt.apply(null,arguments).parseZone()},i.localeData=ft,i.isDuration=Pt,i.monthsShort=function(e,t){return gn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return vn(e,t,n,"weekdaysMin")},i.defineLocale=dt,i.updateLocale=function(e,t){if(null!=t){var n,r,i=at;null!=(r=ut(e))&&(i=r._config),t=L(i,t),(n=new O(t)).parentLocale=ot[e],ot[e]=n,ct(e)}else null!=ot[e]&&(null!=ot[e].parentLocale?ot[e]=ot[e].parentLocale:null!=ot[e]&&delete ot[e]);return ot[e]},i.locales=function(){return A(ot)},i.weekdaysShort=function(e,t,n){return vn(e,t,n,"weekdaysShort")},i.normalizeUnits=F,i.relativeTimeRounding=function(e){return void 0===e?jn:"function"==typeof e&&(jn=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==Yn[e]&&(void 0===t?Yn[e]:(Yn[e]=t,"s"===e&&(Yn.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=fn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(88)(e))},function(e,t,n){"use strict";var r=n(119),i=n(198),a=n(298),o=n(115),s=n(9),l=n(20),u=n(102),c=s.extendFlat,d=s.extendDeepAll;function f(e){var n=e.name,i=e.categories,a=e.meta;if(t.modules[n])r.log("Type "+n+" already registered");else{t.subplotsRegistry[e.basePlotModule.name]||function(e){var n=e.name;if(t.subplotsRegistry[n])return void r.log("Plot type "+n+" already registered.");for(var i in g(e),t.subplotsRegistry[n]=e,t.componentsRegistry)_(i,e.name)}(e.basePlotModule);for(var o={},s=0;s
* Copyright OpenJS Foundation and other contributors
* Released under MIT license
* Based on Underscore.js 1.8.3
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(){var a,o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,p=2,m=4,g=1,v=2,y=1,_=2,b=4,x=8,w=16,M=32,T=64,k=128,E=256,A=512,C=30,S="...",D=800,L=16,O=1,N=2,I=1/0,F=9007199254740991,P=1.7976931348623157e308,R=NaN,B=4294967295,z=B-1,j=B>>>1,Y=[["ary",k],["bind",y],["bindKey",_],["curry",x],["curryRight",w],["flip",A],["partial",M],["partialRight",T],["rearg",E]],U="[object Arguments]",H="[object Array]",q="[object AsyncFunction]",V="[object Boolean]",G="[object Date]",$="[object DOMException]",W="[object Error]",X="[object Function]",K="[object GeneratorFunction]",Z="[object Map]",J="[object Number]",Q="[object Null]",ee="[object Object]",te="[object Proxy]",ne="[object RegExp]",re="[object Set]",ie="[object String]",ae="[object Symbol]",oe="[object Undefined]",se="[object WeakMap]",le="[object WeakSet]",ue="[object ArrayBuffer]",ce="[object DataView]",de="[object Float32Array]",fe="[object Float64Array]",he="[object Int8Array]",pe="[object Int16Array]",me="[object Int32Array]",ge="[object Uint8Array]",ve="[object Uint8ClampedArray]",ye="[object Uint16Array]",_e="[object Uint32Array]",be=/\b__p \+= '';/g,xe=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Me=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,ke=RegExp(Me.source),Ee=RegExp(Te.source),Ae=/<%-([\s\S]+?)%>/g,Ce=/<%([\s\S]+?)%>/g,Se=/<%=([\s\S]+?)%>/g,De=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Le=/^\w*$/,Oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/[\\^$.*+?()[\]{}|]/g,Ie=RegExp(Ne.source),Fe=/^\s+/,Pe=/\s/,Re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Be=/\{\n\/\* \[wrapped with (.+)\] \*/,ze=/,? & /,je=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ye=/[()=,{}\[\]\/\s]/,Ue=/\\(\\)?/g,He=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,Ve=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,$e=/^\[object .+?Constructor\]$/,We=/^0o[0-7]+$/i,Xe=/^(?:0|[1-9]\d*)$/,Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,Qe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",et="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tt="[\\ud800-\\udfff]",nt="["+et+"]",rt="["+Qe+"]",it="\\d+",at="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",st="[^\\ud800-\\udfff"+et+it+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",lt="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",dt="[\\ud800-\\udbff][\\udc00-\\udfff]",ft="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ht="(?:"+ot+"|"+st+")",pt="(?:"+ft+"|"+st+")",mt="(?:"+rt+"|"+lt+")"+"?",gt="[\\ufe0e\\ufe0f]?"+mt+("(?:\\u200d(?:"+[ut,ct,dt].join("|")+")[\\ufe0e\\ufe0f]?"+mt+")*"),vt="(?:"+[at,ct,dt].join("|")+")"+gt,yt="(?:"+[ut+rt+"?",rt,ct,dt,tt].join("|")+")",_t=RegExp("['’]","g"),bt=RegExp(rt,"g"),xt=RegExp(lt+"(?="+lt+")|"+yt+gt,"g"),wt=RegExp([ft+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[nt,ft,"$"].join("|")+")",pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[nt,ft+ht,"$"].join("|")+")",ft+"?"+ht+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ft+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",it,vt].join("|"),"g"),Mt=RegExp("[\\u200d\\ud800-\\udfff"+Qe+"\\ufe0e\\ufe0f]"),Tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Et=-1,At={};At[de]=At[fe]=At[he]=At[pe]=At[me]=At[ge]=At[ve]=At[ye]=At[_e]=!0,At[U]=At[H]=At[ue]=At[V]=At[ce]=At[G]=At[W]=At[X]=At[Z]=At[J]=At[ee]=At[ne]=At[re]=At[ie]=At[se]=!1;var Ct={};Ct[U]=Ct[H]=Ct[ue]=Ct[ce]=Ct[V]=Ct[G]=Ct[de]=Ct[fe]=Ct[he]=Ct[pe]=Ct[me]=Ct[Z]=Ct[J]=Ct[ee]=Ct[ne]=Ct[re]=Ct[ie]=Ct[ae]=Ct[ge]=Ct[ve]=Ct[ye]=Ct[_e]=!0,Ct[W]=Ct[X]=Ct[se]=!1;var St={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Dt=parseFloat,Lt=parseInt,Ot="object"==typeof e&&e&&e.Object===Object&&e,Nt="object"==typeof self&&self&&self.Object===Object&&self,It=Ot||Nt||Function("return this")(),Ft=t&&!t.nodeType&&t,Pt=Ft&&"object"==typeof r&&r&&!r.nodeType&&r,Rt=Pt&&Pt.exports===Ft,Bt=Rt&&Ot.process,zt=function(){try{var e=Pt&&Pt.require&&Pt.require("util").types;return e||Bt&&Bt.binding&&Bt.binding("util")}catch(e){}}(),jt=zt&&zt.isArrayBuffer,Yt=zt&&zt.isDate,Ut=zt&&zt.isMap,Ht=zt&&zt.isRegExp,qt=zt&&zt.isSet,Vt=zt&&zt.isTypedArray;function Gt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function $t(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i-1}function Qt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function Mn(e,t){for(var n=e.length;n--&&un(t,e[n],0)>-1;);return n}var Tn=pn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),kn=pn({"&":"&","<":"<",">":">",'"':""","'":"'"});function En(e){return"\\"+St[e]}function An(e){return Mt.test(e)}function Cn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Sn(e,t){return function(n){return e(t(n))}}function Dn(e,t){for(var n=-1,r=e.length,i=0,a=[];++n",""":'"',"'":"'"});var Rn=function e(t){var n,r=(t=null==t?It:Rn.defaults(It.Object(),t,Rn.pick(It,kt))).Array,i=t.Date,Pe=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,it=t.TypeError,at=r.prototype,ot=Qe.prototype,st=tt.prototype,lt=t["__core-js_shared__"],ut=ot.toString,ct=st.hasOwnProperty,dt=0,ft=(n=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ht=st.toString,pt=ut.call(tt),mt=It._,gt=nt("^"+ut.call(ct).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=Rt?t.Buffer:a,yt=t.Symbol,xt=t.Uint8Array,Mt=vt?vt.allocUnsafe:a,St=Sn(tt.getPrototypeOf,tt),Ot=tt.create,Nt=st.propertyIsEnumerable,Ft=at.splice,Pt=yt?yt.isConcatSpreadable:a,Bt=yt?yt.iterator:a,zt=yt?yt.toStringTag:a,on=function(){try{var e=ja(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),pn=t.clearTimeout!==It.clearTimeout&&t.clearTimeout,Bn=i&&i.now!==It.Date.now&&i.now,zn=t.setTimeout!==It.setTimeout&&t.setTimeout,jn=et.ceil,Yn=et.floor,Un=tt.getOwnPropertySymbols,Hn=vt?vt.isBuffer:a,qn=t.isFinite,Vn=at.join,Gn=Sn(tt.keys,tt),$n=et.max,Wn=et.min,Xn=i.now,Kn=t.parseInt,Zn=et.random,Jn=at.reverse,Qn=ja(t,"DataView"),er=ja(t,"Map"),tr=ja(t,"Promise"),nr=ja(t,"Set"),rr=ja(t,"WeakMap"),ir=ja(tt,"create"),ar=rr&&new rr,or={},sr=ho(Qn),lr=ho(er),ur=ho(tr),cr=ho(nr),dr=ho(rr),fr=yt?yt.prototype:a,hr=fr?fr.valueOf:a,pr=fr?fr.toString:a;function mr(e){if(Ds(e)&&!_s(e)&&!(e instanceof _r)){if(e instanceof yr)return e;if(ct.call(e,"__wrapped__"))return po(e)}return new yr(e)}var gr=function(){function e(){}return function(t){if(!Ss(t))return{};if(Ot)return Ot(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function vr(){}function yr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function _r(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=B,this.__views__=[]}function br(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Rr(e,t,n,r,i,o){var s,l=t&h,u=t&p,c=t&m;if(n&&(s=i?n(e,r,i,o):n(e)),s!==a)return s;if(!Ss(e))return e;var d=_s(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return ia(e,s)}else{var f=Ha(e),g=f==X||f==K;if(Ms(e))return Ji(e,l);if(f==ee||f==U||g&&!i){if(s=u||g?{}:Va(e),!l)return u?function(e,t){return aa(e,Ua(e),t)}(e,function(e,t){return e&&aa(t,sl(t),e)}(s,e)):function(e,t){return aa(e,Ya(e),t)}(e,Nr(s,e))}else{if(!Ct[f])return i?e:{};s=function(e,t,n){var r,i,a,o=e.constructor;switch(t){case ue:return Qi(e);case V:case G:return new o(+e);case ce:return function(e,t){var n=t?Qi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case de:case fe:case he:case pe:case me:case ge:case ve:case ye:case _e:return ea(e,n);case Z:return new o;case J:case ie:return new o(e);case ne:return(a=new(i=e).constructor(i.source,qe.exec(i))).lastIndex=i.lastIndex,a;case re:return new o;case ae:return r=e,hr?tt(hr.call(r)):{}}}(e,f,l)}}o||(o=new Tr);var v=o.get(e);if(v)return v;o.set(e,s),Fs(e)?e.forEach(function(r){s.add(Rr(r,t,n,r,e,o))}):Ls(e)&&e.forEach(function(r,i){s.set(i,Rr(r,t,n,i,e,o))});var y=d?a:(c?u?Na:Oa:u?sl:ol)(e);return Wt(y||e,function(r,i){y&&(r=e[i=r]),Dr(s,i,Rr(r,t,n,i,e,o))}),s}function Br(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var i=n[r],o=t[i],s=e[i];if(s===a&&!(i in e)||!o(s))return!1}return!0}function zr(e,t,n){if("function"!=typeof e)throw new it(l);return ao(function(){e.apply(a,n)},t)}function jr(e,t,n,r){var i=-1,a=Jt,s=!0,l=e.length,u=[],c=t.length;if(!l)return u;n&&(t=en(t,_n(n))),r?(a=Qt,s=!1):t.length>=o&&(a=xn,s=!1,t=new Mr(t));e:for(;++i-1},xr.prototype.set=function(e,t){var n=this.__data__,r=Lr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},wr.prototype.clear=function(){this.size=0,this.__data__={hash:new br,map:new(er||xr),string:new br}},wr.prototype.delete=function(e){var t=Ba(this,e).delete(e);return this.size-=t?1:0,t},wr.prototype.get=function(e){return Ba(this,e).get(e)},wr.prototype.has=function(e){return Ba(this,e).has(e)},wr.prototype.set=function(e,t){var n=Ba(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Mr.prototype.add=Mr.prototype.push=function(e){return this.__data__.set(e,c),this},Mr.prototype.has=function(e){return this.__data__.has(e)},Tr.prototype.clear=function(){this.__data__=new xr,this.size=0},Tr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Tr.prototype.get=function(e){return this.__data__.get(e)},Tr.prototype.has=function(e){return this.__data__.has(e)},Tr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof xr){var r=n.__data__;if(!er||r.length0&&n(s)?t>1?Gr(s,t-1,n,r,i):tn(i,s):r||(i[i.length]=s)}return i}var $r=ua(),Wr=ua(!0);function Xr(e,t){return e&&$r(e,t,ol)}function Kr(e,t){return e&&Wr(e,t,ol)}function Zr(e,t){return Zt(t,function(t){return Es(e[t])})}function Jr(e,t){for(var n=0,r=(t=Wi(t,e)).length;null!=e&&nt}function ni(e,t){return null!=e&&ct.call(e,t)}function ri(e,t){return null!=e&&t in tt(e)}function ii(e,t,n){for(var i=n?Qt:Jt,o=e[0].length,s=e.length,l=s,u=r(s),c=1/0,d=[];l--;){var f=e[l];l&&t&&(f=en(f,_n(t))),c=Wn(f.length,c),u[l]=!n&&(t||o>=120&&f.length>=120)?new Mr(l&&f):a}f=e[0];var h=-1,p=u[0];e:for(;++h=s)return l;var u=n[r];return l*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)})}function bi(e,t,n){for(var r=-1,i=t.length,a={};++r-1;)s!==e&&Ft.call(s,l,1),Ft.call(e,l,1);return e}function wi(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;$a(i)?Ft.call(e,i,1):ji(e,i)}}return e}function Mi(e,t){return e+Yn(Zn()*(t-e+1))}function Ti(e,t){var n="";if(!e||t<1||t>F)return n;do{t%2&&(n+=e),(t=Yn(t/2))&&(e+=e)}while(t);return n}function ki(e,t){return oo(to(e,t,Ol),e+"")}function Ei(e){return Er(ml(e))}function Ai(e,t){var n=ml(e);return uo(n,Pr(t,0,n.length))}function Ci(e,t,n,r){if(!Ss(e))return e;for(var i=-1,o=(t=Wi(t,e)).length,s=o-1,l=e;null!=l&&++ia?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=r(a);++i>>1,o=e[a];null!==o&&!Rs(o)&&(n?o<=t:o=o){var c=t?null:Ta(e);if(c)return Ln(c);s=!1,i=xn,u=new Mr}else u=t?[]:l;e:for(;++r=r?e:Oi(e,t,n)}var Zi=pn||function(e){return It.clearTimeout(e)};function Ji(e,t){if(t)return e.slice();var n=e.length,r=Mt?Mt(n):new e.constructor(n);return e.copy(r),r}function Qi(e){var t=new e.constructor(e.byteLength);return new xt(t).set(new xt(e)),t}function ea(e,t){var n=t?Qi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ta(e,t){if(e!==t){var n=e!==a,r=null===e,i=e==e,o=Rs(e),s=t!==a,l=null===t,u=t==t,c=Rs(t);if(!l&&!c&&!o&&e>t||o&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!i)return 1;if(!r&&!o&&!c&&e1?n[i-1]:a,s=i>2?n[2]:a;for(o=e.length>3&&"function"==typeof o?(i--,o):a,s&&Wa(n[0],n[1],s)&&(o=i<3?a:o,i=1),t=tt(t);++r-1?i[o?t[s]:s]:a}}function pa(e){return La(function(t){var n=t.length,r=n,i=yr.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new it(l);if(i&&!s&&"wrapper"==Fa(o))var s=new yr([],!0)}for(r=s?r:n;++r1&&b.reverse(),f&&c<_&&(b.length=c),this&&this!==It&&this instanceof y&&(E=v||fa(E)),E.apply(k,b)}}function ga(e,t){return function(n,r){return function(e,t,n,r){return Xr(e,function(e,i,a){t(r,n(e),i,a)}),r}(n,e,t(r),{})}}function va(e,t){return function(n,r){var i;if(n===a&&r===a)return t;if(n!==a&&(i=n),r!==a){if(i===a)return r;"string"==typeof n||"string"==typeof r?(n=Bi(n),r=Bi(r)):(n=Ri(n),r=Ri(r)),i=e(n,r)}return i}}function ya(e){return La(function(t){return t=en(t,_n(Ra())),ki(function(n){var r=this;return e(t,function(e){return Gt(e,r,n)})})})}function _a(e,t){var n=(t=t===a?" ":Bi(t)).length;if(n<2)return n?Ti(t,e):t;var r=Ti(t,jn(e/Nn(t)));return An(t)?Ki(In(r),0,e).join(""):r.slice(0,e)}function ba(e){return function(t,n,i){return i&&"number"!=typeof i&&Wa(t,n,i)&&(n=i=a),t=Us(t),n===a?(n=t,t=0):n=Us(n),function(e,t,n,i){for(var a=-1,o=$n(jn((t-e)/(n||1)),0),s=r(o);o--;)s[i?o:++a]=e,e+=n;return s}(t,n,i=i===a?tl))return!1;var c=o.get(e),d=o.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,p=n&v?new Mr:a;for(o.set(e,t),o.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Re,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Wt(Y,function(n){var r="_."+n[0];t&n[1]&&!Jt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Be);return t?t[1].split(ze):[]}(r),n)))}function lo(e){var t=0,n=0;return function(){var r=Xn(),i=L-(r-n);if(n=r,i>0){if(++t>=D)return arguments[0]}else t=0;return e.apply(a,arguments)}}function uo(e,t){var n=-1,r=e.length,i=r-1;for(t=t===a?r:t;++n1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,Io(e,n)});function Yo(e){var t=mr(e);return t.__chain__=!0,t}function Uo(e,t){return t(e)}var Ho=La(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Fr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof _r&&$a(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Uo,args:[i],thisArg:a}),new yr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(a),e})):this.thru(i)});var qo=oa(function(e,t,n){ct.call(e,n)?++e[n]:Ir(e,n,1)});var Vo=ha(yo),Go=ha(_o);function $o(e,t){return(_s(e)?Wt:Yr)(e,Ra(t,3))}function Wo(e,t){return(_s(e)?Xt:Ur)(e,Ra(t,3))}var Xo=oa(function(e,t,n){ct.call(e,n)?e[n].push(t):Ir(e,n,[t])});var Ko=ki(function(e,t,n){var i=-1,a="function"==typeof t,o=xs(e)?r(e.length):[];return Yr(e,function(e){o[++i]=a?Gt(t,e,n):ai(e,t,n)}),o}),Zo=oa(function(e,t,n){Ir(e,n,t)});function Jo(e,t){return(_s(e)?en:pi)(e,Ra(t,3))}var Qo=oa(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var es=ki(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Wa(e,t[0],t[1])?t=[]:n>2&&Wa(t[0],t[1],t[2])&&(t=[t[0]]),_i(e,Gr(t,1),[])}),ts=Bn||function(){return It.Date.now()};function ns(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Ea(e,k,a,a,a,a,t)}function rs(e,t){var n;if("function"!=typeof t)throw new it(l);return e=Hs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var is=ki(function(e,t,n){var r=y;if(n.length){var i=Dn(n,Pa(is));r|=M}return Ea(e,r,t,n,i)}),as=ki(function(e,t,n){var r=y|_;if(n.length){var i=Dn(n,Pa(as));r|=M}return Ea(t,r,e,n,i)});function os(e,t,n){var r,i,o,s,u,c,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new it(l);function m(t){var n=r,o=i;return r=i=a,d=t,s=e.apply(o,n)}function g(e){var n=e-c;return c===a||n>=t||n<0||h&&e-d>=o}function v(){var e=ts();if(g(e))return y(e);u=ao(v,function(e){var n=t-(e-c);return h?Wn(n,o-(e-d)):n}(e))}function y(e){return u=a,p&&r?m(e):(r=i=a,s)}function _(){var e=ts(),n=g(e);if(r=arguments,i=this,c=e,n){if(u===a)return function(e){return d=e,u=ao(v,t),f?m(e):s}(c);if(h)return Zi(u),u=ao(v,t),m(c)}return u===a&&(u=ao(v,t)),s}return t=Vs(t)||0,Ss(n)&&(f=!!n.leading,o=(h="maxWait"in n)?$n(Vs(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),_.cancel=function(){u!==a&&Zi(u),d=0,r=c=i=u=a},_.flush=function(){return u===a?s:y(ts())},_}var ss=ki(function(e,t){return zr(e,1,t)}),ls=ki(function(e,t,n){return zr(e,Vs(t)||0,n)});function us(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(l);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(us.Cache||wr),n}function cs(e){if("function"!=typeof e)throw new it(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}us.Cache=wr;var ds=Xi(function(e,t){var n=(t=1==t.length&&_s(t[0])?en(t[0],_n(Ra())):en(Gr(t,1),_n(Ra()))).length;return ki(function(r){for(var i=-1,a=Wn(r.length,n);++i=t}),ys=oi(function(){return arguments}())?oi:function(e){return Ds(e)&&ct.call(e,"callee")&&!Nt.call(e,"callee")},_s=r.isArray,bs=jt?_n(jt):function(e){return Ds(e)&&ei(e)==ue};function xs(e){return null!=e&&Cs(e.length)&&!Es(e)}function ws(e){return Ds(e)&&xs(e)}var Ms=Hn||Vl,Ts=Yt?_n(Yt):function(e){return Ds(e)&&ei(e)==G};function ks(e){if(!Ds(e))return!1;var t=ei(e);return t==W||t==$||"string"==typeof e.message&&"string"==typeof e.name&&!Ns(e)}function Es(e){if(!Ss(e))return!1;var t=ei(e);return t==X||t==K||t==q||t==te}function As(e){return"number"==typeof e&&e==Hs(e)}function Cs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=F}function Ss(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ds(e){return null!=e&&"object"==typeof e}var Ls=Ut?_n(Ut):function(e){return Ds(e)&&Ha(e)==Z};function Os(e){return"number"==typeof e||Ds(e)&&ei(e)==J}function Ns(e){if(!Ds(e)||ei(e)!=ee)return!1;var t=St(e);if(null===t)return!0;var n=ct.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ut.call(n)==pt}var Is=Ht?_n(Ht):function(e){return Ds(e)&&ei(e)==ne};var Fs=qt?_n(qt):function(e){return Ds(e)&&Ha(e)==re};function Ps(e){return"string"==typeof e||!_s(e)&&Ds(e)&&ei(e)==ie}function Rs(e){return"symbol"==typeof e||Ds(e)&&ei(e)==ae}var Bs=Vt?_n(Vt):function(e){return Ds(e)&&Cs(e.length)&&!!At[ei(e)]};var zs=xa(hi),js=xa(function(e,t){return e<=t});function Ys(e){if(!e)return[];if(xs(e))return Ps(e)?In(e):ia(e);if(Bt&&e[Bt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Bt]());var t=Ha(e);return(t==Z?Cn:t==re?Ln:ml)(e)}function Us(e){return e?(e=Vs(e))===I||e===-I?(e<0?-1:1)*P:e==e?e:0:0===e?e:0}function Hs(e){var t=Us(e),n=t%1;return t==t?n?t-n:t:0}function qs(e){return e?Pr(Hs(e),0,B):0}function Vs(e){if("number"==typeof e)return e;if(Rs(e))return R;if(Ss(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ss(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=yn(e);var n=Ge.test(e);return n||We.test(e)?Lt(e.slice(2),n?2:8):Ve.test(e)?R:+e}function Gs(e){return aa(e,sl(e))}function $s(e){return null==e?"":Bi(e)}var Ws=sa(function(e,t){if(Ja(t)||xs(t))aa(t,ol(t),e);else for(var n in t)ct.call(t,n)&&Dr(e,n,t[n])}),Xs=sa(function(e,t){aa(t,sl(t),e)}),Ks=sa(function(e,t,n,r){aa(t,sl(t),e,r)}),Zs=sa(function(e,t,n,r){aa(t,ol(t),e,r)}),Js=La(Fr);var Qs=ki(function(e,t){e=tt(e);var n=-1,r=t.length,i=r>2?t[2]:a;for(i&&Wa(t[0],t[1],i)&&(r=1);++n1),t}),aa(e,Na(e),n),r&&(n=Rr(n,h|p|m,Sa));for(var i=t.length;i--;)ji(n,t[i]);return n});var dl=La(function(e,t){return null==e?{}:function(e,t){return bi(e,t,function(t,n){return nl(e,n)})}(e,t)});function fl(e,t){if(null==e)return{};var n=en(Na(e),function(e){return[e]});return t=Ra(t),bi(e,n,function(e,n){return t(e,n[0])})}var hl=ka(ol),pl=ka(sl);function ml(e){return null==e?[]:bn(e,ol(e))}var gl=da(function(e,t,n){return t=t.toLowerCase(),e+(n?vl(t):t)});function vl(e){return kl($s(e).toLowerCase())}function yl(e){return(e=$s(e))&&e.replace(Ke,Tn).replace(bt,"")}var _l=da(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),bl=da(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),xl=ca("toLowerCase");var wl=da(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var Ml=da(function(e,t,n){return e+(n?" ":"")+kl(t)});var Tl=da(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),kl=ca("toUpperCase");function El(e,t,n){return e=$s(e),(t=n?a:t)===a?function(e){return Tt.test(e)}(e)?function(e){return e.match(wt)||[]}(e):function(e){return e.match(je)||[]}(e):e.match(t)||[]}var Al=ki(function(e,t){try{return Gt(e,a,t)}catch(e){return ks(e)?e:new Pe(e)}}),Cl=La(function(e,t){return Wt(t,function(t){t=fo(t),Ir(e,t,is(e[t],e))}),e});function Sl(e){return function(){return e}}var Dl=pa(),Ll=pa(!0);function Ol(e){return e}function Nl(e){return ci("function"==typeof e?e:Rr(e,h))}var Il=ki(function(e,t){return function(n){return ai(n,e,t)}}),Fl=ki(function(e,t){return function(n){return ai(e,n,t)}});function Pl(e,t,n){var r=ol(t),i=Zr(t,r);null!=n||Ss(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Zr(t,ol(t)));var a=!(Ss(n)&&"chain"in n&&!n.chain),o=Es(e);return Wt(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=ia(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,tn([this.value()],arguments))})}),e}function Rl(){}var Bl=ya(en),zl=ya(Kt),jl=ya(an);function Yl(e){return Xa(e)?hn(fo(e)):function(e){return function(t){return Jr(t,e)}}(e)}var Ul=ba(),Hl=ba(!0);function ql(){return[]}function Vl(){return!1}var Gl=va(function(e,t){return e+t},0),$l=Ma("ceil"),Wl=va(function(e,t){return e/t},1),Xl=Ma("floor");var Kl,Zl=va(function(e,t){return e*t},1),Jl=Ma("round"),Ql=va(function(e,t){return e-t},0);return mr.after=function(e,t){if("function"!=typeof t)throw new it(l);return e=Hs(e),function(){if(--e<1)return t.apply(this,arguments)}},mr.ary=ns,mr.assign=Ws,mr.assignIn=Xs,mr.assignInWith=Ks,mr.assignWith=Zs,mr.at=Js,mr.before=rs,mr.bind=is,mr.bindAll=Cl,mr.bindKey=as,mr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return _s(e)?e:[e]},mr.chain=Yo,mr.chunk=function(e,t,n){t=(n?Wa(e,t,n):t===a)?1:$n(Hs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,l=r(jn(i/t));oi?0:i+n),(r=r===a||r>i?i:Hs(r))<0&&(r+=i),r=n>r?0:qs(r);n>>0)?(e=$s(e))&&("string"==typeof t||null!=t&&!Is(t))&&!(t=Bi(t))&&An(e)?Ki(In(e),0,n):e.split(t,n):[]},mr.spread=function(e,t){if("function"!=typeof e)throw new it(l);return t=null==t?0:$n(Hs(t),0),ki(function(n){var r=n[t],i=Ki(n,0,t);return r&&tn(i,r),Gt(e,this,i)})},mr.tail=function(e){var t=null==e?0:e.length;return t?Oi(e,1,t):[]},mr.take=function(e,t,n){return e&&e.length?Oi(e,0,(t=n||t===a?1:Hs(t))<0?0:t):[]},mr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Oi(e,(t=r-(t=n||t===a?1:Hs(t)))<0?0:t,r):[]},mr.takeRightWhile=function(e,t){return e&&e.length?Ui(e,Ra(t,3),!1,!0):[]},mr.takeWhile=function(e,t){return e&&e.length?Ui(e,Ra(t,3)):[]},mr.tap=function(e,t){return t(e),e},mr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new it(l);return Ss(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),os(e,t,{leading:r,maxWait:t,trailing:i})},mr.thru=Uo,mr.toArray=Ys,mr.toPairs=hl,mr.toPairsIn=pl,mr.toPath=function(e){return _s(e)?en(e,fo):Rs(e)?[e]:ia(co($s(e)))},mr.toPlainObject=Gs,mr.transform=function(e,t,n){var r=_s(e),i=r||Ms(e)||Bs(e);if(t=Ra(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:Ss(e)&&Es(a)?gr(St(e)):{}}return(i?Wt:Xr)(e,function(e,r,i){return t(n,e,r,i)}),n},mr.unary=function(e){return ns(e,1)},mr.union=Do,mr.unionBy=Lo,mr.unionWith=Oo,mr.uniq=function(e){return e&&e.length?zi(e):[]},mr.uniqBy=function(e,t){return e&&e.length?zi(e,Ra(t,2)):[]},mr.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?zi(e,a,t):[]},mr.unset=function(e,t){return null==e||ji(e,t)},mr.unzip=No,mr.unzipWith=Io,mr.update=function(e,t,n){return null==e?e:Yi(e,t,$i(n))},mr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:Yi(e,t,$i(n),r)},mr.values=ml,mr.valuesIn=function(e){return null==e?[]:bn(e,sl(e))},mr.without=Fo,mr.words=El,mr.wrap=function(e,t){return fs($i(t),e)},mr.xor=Po,mr.xorBy=Ro,mr.xorWith=Bo,mr.zip=zo,mr.zipObject=function(e,t){return Vi(e||[],t||[],Dr)},mr.zipObjectDeep=function(e,t){return Vi(e||[],t||[],Ci)},mr.zipWith=jo,mr.entries=hl,mr.entriesIn=pl,mr.extend=Xs,mr.extendWith=Ks,Pl(mr,mr),mr.add=Gl,mr.attempt=Al,mr.camelCase=gl,mr.capitalize=vl,mr.ceil=$l,mr.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=Vs(n))==n?n:0),t!==a&&(t=(t=Vs(t))==t?t:0),Pr(Vs(e),t,n)},mr.clone=function(e){return Rr(e,m)},mr.cloneDeep=function(e){return Rr(e,h|m)},mr.cloneDeepWith=function(e,t){return Rr(e,h|m,t="function"==typeof t?t:a)},mr.cloneWith=function(e,t){return Rr(e,m,t="function"==typeof t?t:a)},mr.conformsTo=function(e,t){return null==t||Br(e,t,ol(t))},mr.deburr=yl,mr.defaultTo=function(e,t){return null==e||e!=e?t:e},mr.divide=Wl,mr.endsWith=function(e,t,n){e=$s(e),t=Bi(t);var r=e.length,i=n=n===a?r:Pr(Hs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},mr.eq=ms,mr.escape=function(e){return(e=$s(e))&&Ee.test(e)?e.replace(Te,kn):e},mr.escapeRegExp=function(e){return(e=$s(e))&&Ie.test(e)?e.replace(Ne,"\\$&"):e},mr.every=function(e,t,n){var r=_s(e)?Kt:Hr;return n&&Wa(e,t,n)&&(t=a),r(e,Ra(t,3))},mr.find=Vo,mr.findIndex=yo,mr.findKey=function(e,t){return sn(e,Ra(t,3),Xr)},mr.findLast=Go,mr.findLastIndex=_o,mr.findLastKey=function(e,t){return sn(e,Ra(t,3),Kr)},mr.floor=Xl,mr.forEach=$o,mr.forEachRight=Wo,mr.forIn=function(e,t){return null==e?e:$r(e,Ra(t,3),sl)},mr.forInRight=function(e,t){return null==e?e:Wr(e,Ra(t,3),sl)},mr.forOwn=function(e,t){return e&&Xr(e,Ra(t,3))},mr.forOwnRight=function(e,t){return e&&Kr(e,Ra(t,3))},mr.get=tl,mr.gt=gs,mr.gte=vs,mr.has=function(e,t){return null!=e&&qa(e,t,ni)},mr.hasIn=nl,mr.head=xo,mr.identity=Ol,mr.includes=function(e,t,n,r){e=xs(e)?e:ml(e),n=n&&!r?Hs(n):0;var i=e.length;return n<0&&(n=$n(i+n,0)),Ps(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&un(e,t,n)>-1},mr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Hs(n);return i<0&&(i=$n(r+i,0)),un(e,t,i)},mr.inRange=function(e,t,n){return t=Us(t),n===a?(n=t,t=0):n=Us(n),function(e,t,n){return e>=Wn(t,n)&&e<$n(t,n)}(e=Vs(e),t,n)},mr.invoke=al,mr.isArguments=ys,mr.isArray=_s,mr.isArrayBuffer=bs,mr.isArrayLike=xs,mr.isArrayLikeObject=ws,mr.isBoolean=function(e){return!0===e||!1===e||Ds(e)&&ei(e)==V},mr.isBuffer=Ms,mr.isDate=Ts,mr.isElement=function(e){return Ds(e)&&1===e.nodeType&&!Ns(e)},mr.isEmpty=function(e){if(null==e)return!0;if(xs(e)&&(_s(e)||"string"==typeof e||"function"==typeof e.splice||Ms(e)||Bs(e)||ys(e)))return!e.length;var t=Ha(e);if(t==Z||t==re)return!e.size;if(Ja(e))return!di(e).length;for(var n in e)if(ct.call(e,n))return!1;return!0},mr.isEqual=function(e,t){return si(e,t)},mr.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:a)?n(e,t):a;return r===a?si(e,t,a,n):!!r},mr.isError=ks,mr.isFinite=function(e){return"number"==typeof e&&qn(e)},mr.isFunction=Es,mr.isInteger=As,mr.isLength=Cs,mr.isMap=Ls,mr.isMatch=function(e,t){return e===t||li(e,t,za(t))},mr.isMatchWith=function(e,t,n){return n="function"==typeof n?n:a,li(e,t,za(t),n)},mr.isNaN=function(e){return Os(e)&&e!=+e},mr.isNative=function(e){if(Za(e))throw new Pe(s);return ui(e)},mr.isNil=function(e){return null==e},mr.isNull=function(e){return null===e},mr.isNumber=Os,mr.isObject=Ss,mr.isObjectLike=Ds,mr.isPlainObject=Ns,mr.isRegExp=Is,mr.isSafeInteger=function(e){return As(e)&&e>=-F&&e<=F},mr.isSet=Fs,mr.isString=Ps,mr.isSymbol=Rs,mr.isTypedArray=Bs,mr.isUndefined=function(e){return e===a},mr.isWeakMap=function(e){return Ds(e)&&Ha(e)==se},mr.isWeakSet=function(e){return Ds(e)&&ei(e)==le},mr.join=function(e,t){return null==e?"":Vn.call(e,t)},mr.kebabCase=_l,mr.last=ko,mr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==a&&(i=(i=Hs(n))<0?$n(r+i,0):Wn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):ln(e,dn,i,!0)},mr.lowerCase=bl,mr.lowerFirst=xl,mr.lt=zs,mr.lte=js,mr.max=function(e){return e&&e.length?qr(e,Ol,ti):a},mr.maxBy=function(e,t){return e&&e.length?qr(e,Ra(t,2),ti):a},mr.mean=function(e){return fn(e,Ol)},mr.meanBy=function(e,t){return fn(e,Ra(t,2))},mr.min=function(e){return e&&e.length?qr(e,Ol,hi):a},mr.minBy=function(e,t){return e&&e.length?qr(e,Ra(t,2),hi):a},mr.stubArray=ql,mr.stubFalse=Vl,mr.stubObject=function(){return{}},mr.stubString=function(){return""},mr.stubTrue=function(){return!0},mr.multiply=Zl,mr.nth=function(e,t){return e&&e.length?yi(e,Hs(t)):a},mr.noConflict=function(){return It._===this&&(It._=mt),this},mr.noop=Rl,mr.now=ts,mr.pad=function(e,t,n){e=$s(e);var r=(t=Hs(t))?Nn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return _a(Yn(i),n)+e+_a(jn(i),n)},mr.padEnd=function(e,t,n){e=$s(e);var r=(t=Hs(t))?Nn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Zn();return Wn(e+i*(t-e+Dt("1e-"+((i+"").length-1))),t)}return Mi(e,t)},mr.reduce=function(e,t,n){var r=_s(e)?nn:mn,i=arguments.length<3;return r(e,Ra(t,4),n,i,Yr)},mr.reduceRight=function(e,t,n){var r=_s(e)?rn:mn,i=arguments.length<3;return r(e,Ra(t,4),n,i,Ur)},mr.repeat=function(e,t,n){return t=(n?Wa(e,t,n):t===a)?1:Hs(t),Ti($s(e),t)},mr.replace=function(){var e=arguments,t=$s(e[0]);return e.length<3?t:t.replace(e[1],e[2])},mr.result=function(e,t,n){var r=-1,i=(t=Wi(t,e)).length;for(i||(i=1,e=a);++rF)return[];var n=B,r=Wn(e,B);t=Ra(t),e-=B;for(var i=vn(r,t);++n=o)return e;var l=n-Nn(r);if(l<1)return r;var u=s?Ki(s,0,l).join(""):e.slice(0,l);if(i===a)return u+r;if(s&&(l+=u.length-l),Is(i)){if(e.slice(l).search(i)){var c,d=u;for(i.global||(i=nt(i.source,$s(qe.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var f=c.index;u=u.slice(0,f===a?l:f)}}else if(e.indexOf(Bi(i),l)!=l){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+r},mr.unescape=function(e){return(e=$s(e))&&ke.test(e)?e.replace(Me,Pn):e},mr.uniqueId=function(e){var t=++dt;return $s(e)+t},mr.upperCase=Tl,mr.upperFirst=kl,mr.each=$o,mr.eachRight=Wo,mr.first=xo,Pl(mr,(Kl={},Xr(mr,function(e,t){ct.call(mr.prototype,t)||(Kl[t]=e)}),Kl),{chain:!1}),mr.VERSION="4.17.21",Wt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){mr[e].placeholder=mr}),Wt(["drop","take"],function(e,t){_r.prototype[e]=function(n){n=n===a?1:$n(Hs(n),0);var r=this.__filtered__&&!t?new _r(this):this.clone();return r.__filtered__?r.__takeCount__=Wn(n,r.__takeCount__):r.__views__.push({size:Wn(n,B),type:e+(r.__dir__<0?"Right":"")}),r},_r.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Wt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==O||3==n;_r.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ra(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Wt(["head","last"],function(e,t){var n="take"+(t?"Right":"");_r.prototype[e]=function(){return this[n](1).value()[0]}}),Wt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");_r.prototype[e]=function(){return this.__filtered__?new _r(this):this[n](1)}}),_r.prototype.compact=function(){return this.filter(Ol)},_r.prototype.find=function(e){return this.filter(e).head()},_r.prototype.findLast=function(e){return this.reverse().find(e)},_r.prototype.invokeMap=ki(function(e,t){return"function"==typeof e?new _r(this):this.map(function(n){return ai(n,e,t)})}),_r.prototype.reject=function(e){return this.filter(cs(Ra(e)))},_r.prototype.slice=function(e,t){e=Hs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new _r(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=Hs(t))<0?n.dropRight(-t):n.take(t-e)),n)},_r.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},_r.prototype.toArray=function(){return this.take(B)},Xr(_r.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=mr[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(mr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof _r,u=s[0],c=l||_s(t),d=function(e){var t=i.apply(mr,tn([e],s));return r&&f?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,h=!!this.__actions__.length,p=o&&!f,m=l&&!h;if(!o&&c){t=m?t:new _r(this);var g=e.apply(t,s);return g.__actions__.push({func:Uo,args:[d],thisArg:a}),new yr(g,f)}return p&&m?e.apply(this,s):(g=this.thru(d),p?r?g.value()[0]:g.value():g)})}),Wt(["pop","push","shift","sort","splice","unshift"],function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);mr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(_s(i)?i:[],e)}return this[n](function(n){return t.apply(_s(n)?n:[],e)})}}),Xr(_r.prototype,function(e,t){var n=mr[t];if(n){var r=n.name+"";ct.call(or,r)||(or[r]=[]),or[r].push({name:t,func:n})}}),or[ma(a,_).name]=[{name:"wrapper",func:a}],_r.prototype.clone=function(){var e=new _r(this.__wrapped__);return e.__actions__=ia(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ia(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ia(this.__views__),e},_r.prototype.reverse=function(){if(this.__filtered__){var e=new _r(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},_r.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=_s(e),r=t<0,i=n?e.length:0,a=function(e,t,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},mr.prototype.plant=function(e){for(var t,n=this;n instanceof vr;){var r=po(n);r.__index__=0,r.__values__=a,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},mr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof _r){var t=e;return this.__actions__.length&&(t=new _r(this)),(t=t.reverse()).__actions__.push({func:Uo,args:[So],thisArg:a}),new yr(t,this.__chain__)}return this.thru(So)},mr.prototype.toJSON=mr.prototype.valueOf=mr.prototype.value=function(){return Hi(this.__wrapped__,this.__actions__)},mr.prototype.first=mr.prototype.head,Bt&&(mr.prototype[Bt]=function(){return this}),mr}();It._=Rn,(i=function(){return Rn}.call(t,n,t,r))===a||(r.exports=i)}).call(this)}).call(this,n(39),n(88)(e))},function(e,t,n){var r,i;!function(){var a={version:"3.5.17"},o=[].slice,s=function(e){return o.call(e)},l=this.document;function u(e){return e&&(e.ownerDocument||e.document||e).documentElement}function c(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(l)try{s(l.documentElement.childNodes)[0].nodeType}catch(e){s=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),l)try{l.createElement("DIV").style.setProperty("opacity",0,"")}catch(e){var d=this.Element.prototype,f=d.setAttribute,h=d.setAttributeNS,p=this.CSSStyleDeclaration.prototype,m=p.setProperty;d.setAttribute=function(e,t){f.call(this,e,t+"")},d.setAttributeNS=function(e,t,n){h.call(this,e,t,n+"")},p.setProperty=function(e,t,n){m.call(this,e,t+"",n)}}function g(e,t){return et?1:e>=t?0:NaN}function v(e){return null===e?NaN:+e}function y(e){return!isNaN(e)}function _(e){return{left:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r>>1;e(t[a],n)<0?r=a+1:i=a}return r},right:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r>>1;e(t[a],n)>0?i=a:r=a+1}return r}}}a.ascending=g,a.descending=function(e,t){return te?1:t>=e?0:NaN},a.min=function(e,t){var n,r,i=-1,a=e.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++ir&&(n=r)}else{for(;++i=r){n=r;break}for(;++ir&&(n=r)}return n},a.max=function(e,t){var n,r,i=-1,a=e.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++in&&(n=r)}else{for(;++i=r){n=r;break}for(;++in&&(n=r)}return n},a.extent=function(e,t){var n,r,i,a=-1,o=e.length;if(1===arguments.length){for(;++a=r){n=i=r;break}for(;++ar&&(n=r),i=r){n=i=r;break}for(;++ar&&(n=r),i1)return o/(l-1)},a.deviation=function(){var e=a.variance.apply(this,arguments);return e?Math.sqrt(e):e};var b=_(g);function x(e){return e.length}a.bisectLeft=b.left,a.bisect=a.bisectRight=b.right,a.bisector=function(e){return _(1===e.length?function(t,n){return g(e(t),n)}:e)},a.shuffle=function(e,t,n){(a=arguments.length)<3&&(n=e.length,a<2&&(t=0));for(var r,i,a=n-t;a;)i=Math.random()*a--|0,r=e[a+t],e[a+t]=e[i+t],e[i+t]=r;return e},a.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},a.pairs=function(e){for(var t=0,n=e.length-1,r=e[0],i=new Array(n<0?0:n);t=0;)for(t=(r=e[i]).length;--t>=0;)n[--o]=r[t];return n};var w=Math.abs;function M(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function T(){this._=Object.create(null)}a.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n==1/0)throw new Error("infinite range");var r,i=[],a=function(e){var t=1;for(;e*t%1;)t*=10;return t}(w(n)),o=-1;if(e*=a,t*=a,(n*=a)<0)for(;(r=e+n*++o)>t;)i.push(r/a);else for(;(r=e+n*++o)=r.length)return t?t.call(n,a):e?a.sort(e):a;for(var l,u,c,d,f=-1,h=a.length,p=r[s++],m=new T;++f=r.length)return t;var a=[],o=i[n++];return t.forEach(function(t,r){a.push({key:t,values:e(r,n)})}),o?a.sort(function(e,t){return o(e.key,t.key)}):a}(o(a.map,e,0),0)},n.key=function(e){return r.push(e),n},n.sortKeys=function(e){return i[r.length-1]=e,n},n.sortValues=function(t){return e=t,n},n.rollup=function(e){return t=e,n},n},a.set=function(e){var t=new I;if(e)for(var n=0,r=e.length;n=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},a.event=null,a.requote=function(e){return e.replace(V,"\\$&")};var V=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,G={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]};function $(e){return G(e,Z),e}var W=function(e,t){return t.querySelector(e)},X=function(e,t){return t.querySelectorAll(e)},K=function(e,t){var n=e.matches||e[R(e,"matchesSelector")];return(K=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(W=function(e,t){return Sizzle(e,t)[0]||null},X=Sizzle,K=Sizzle.matchesSelector),a.selection=function(){return a.select(l.documentElement)};var Z=a.selection.prototype=[];function J(e){return"function"==typeof e?e:function(){return W(e,this)}}function Q(e){return"function"==typeof e?e:function(){return X(e,this)}}Z.select=function(e){var t,n,r,i,a=[];e=J(e);for(var o=-1,s=this.length;++o=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),te.hasOwnProperty(n)?{space:te[n],local:e}:e}},Z.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return(e=a.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(ne(t,e[t]));return this}return this.each(ne(e,t))},Z.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=ae(e)).length,i=-1;if(t=n.classList){for(;++i=0;)(n=r[i])&&(a&&a!==n.nextSibling&&a.parentNode.insertBefore(n,a),a=n);return this},Z.sort=function(e){e=function(e){arguments.length||(e=g);return function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}.apply(this,arguments);for(var t=-1,n=this.length;++t0&&(e=e.slice(0,i));var l=ye.get(e);function u(){var t=this[r];t&&(this.removeEventListener(e,t,t.$),delete this[r])}return l&&(e=l,o=be),i?t?function(){var i=o(t,s(arguments));u.call(this),this.addEventListener(e,this[r]=i,i.$=n),i._=t}:u:t?z:function(){var t,n=new RegExp("^__on([^.]+)"+a.requote(e)+"$");for(var r in this)if(t=r.match(n)){var i=this[r];this.removeEventListener(t[1],i,i.$),delete this[r]}}}a.selection.enter=me,a.selection.enter.prototype=ge,ge.append=Z.append,ge.empty=Z.empty,ge.node=Z.node,ge.call=Z.call,ge.size=Z.size,ge.select=function(e){for(var t,n,r,i,a,o=[],s=-1,l=this.length;++s=r&&(r=t+1);!(o=s[r])&&++r0?1:e<0?-1:0}function Pe(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Re(e){return e>1?0:e<-1?Se:Math.acos(e)}function Be(e){return e>1?Oe:e<-1?-Oe:Math.asin(e)}function ze(e){return((e=Math.exp(e))+1/e)/2}function je(e){return(e=Math.sin(e/2))*e}var Ye=Math.SQRT2;a.interpolateZoom=function(e,t){var n,r,i=e[0],a=e[1],o=e[2],s=t[0],l=t[1],u=t[2],c=s-i,d=l-a,f=c*c+d*d;if(f0&&(e=e.transition().duration(m)),e.call(w.event)}function A(){s&&s.domain(o.range().map(function(e){return(e-f.x)/f.k}).map(o.invert)),d&&d.domain(u.range().map(function(e){return(e-f.y)/f.k}).map(u.invert))}function C(e){g++||e({type:"zoomstart"})}function S(e){A(),e({type:"zoom",scale:f.k,translate:[f.x,f.y]})}function D(e){--g||(e({type:"zoomend"}),t=null)}function L(){var e=this,t=x.of(e,arguments),n=0,r=a.select(c(e)).on(y,function(){n=1,k(a.mouse(e),i),S(t)}).on(_,function(){r.on(y,null).on(_,null),o(n),D(t)}),i=M(a.mouse(e)),o=Me(e);vs.call(e),C(t)}function O(){var e,t=this,n=x.of(t,arguments),r={},o=0,s=".zoom-"+a.event.changedTouches[0].identifier,l="touchmove"+s,u="touchend"+s,c=[],d=a.select(t),h=Me(t);function p(){var n=a.touches(t);return e=f.k,n.forEach(function(e){e.identifier in r&&(r[e.identifier]=M(e))}),n}function m(){var e=a.event.target;a.select(e).on(l,g).on(u,y),c.push(e);for(var n=a.event.changedTouches,s=0,d=n.length;s1){v=h[0];var _=h[1],b=v[0]-_[0],x=v[1]-_[1];o=b*b+x*x}}function g(){var s,l,u,c,d=a.touches(t);vs.call(t);for(var f=0,h=d.length;f360?e-=360:e<0&&(e+=360),e<60?r+(i-r)*e/60:e<180?i:e<240?r+(i-r)*(240-e)/60:r}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:t<0?0:t>1?1:t,r=2*(n=n<0?0:n>1?1:n)-(i=n<=.5?n*(1+t):n+t-n*t),new ut(a(e+120),a(e),a(e-120))}function Xe(e,t,n){return this instanceof Xe?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof Xe?new Xe(e.h,e.c,e.l):at(e instanceof Je?e.l:(e=gt((e=a.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Xe(e,t,n)}$e.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ge(this.h,this.s,this.l/e)},$e.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ge(this.h,this.s,e*this.l)},$e.rgb=function(){return We(this.h,this.s,this.l)},a.hcl=Xe;var Ke=Xe.prototype=new Ve;function Ze(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new Je(n,Math.cos(e*=Ne)*t,Math.sin(e)*t)}function Je(e,t,n){return this instanceof Je?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof Je?new Je(e.l,e.a,e.b):e instanceof Xe?Ze(e.h,e.c,e.l):gt((e=ut(e)).r,e.g,e.b):new Je(e,t,n)}Ke.brighter=function(e){return new Xe(this.h,this.c,Math.min(100,this.l+Qe*(arguments.length?e:1)))},Ke.darker=function(e){return new Xe(this.h,this.c,Math.max(0,this.l-Qe*(arguments.length?e:1)))},Ke.rgb=function(){return Ze(this.h,this.c,this.l).rgb()},a.lab=Je;var Qe=18,et=.95047,tt=1,nt=1.08883,rt=Je.prototype=new Ve;function it(e,t,n){var r=(e+16)/116,i=r+t/500,a=r-n/200;return new ut(lt(3.2404542*(i=ot(i)*et)-1.5371385*(r=ot(r)*tt)-.4985314*(a=ot(a)*nt)),lt(-.969266*i+1.8760108*r+.041556*a),lt(.0556434*i-.2040259*r+1.0572252*a))}function at(e,t,n){return e>0?new Xe(Math.atan2(n,t)*Ie,Math.sqrt(t*t+n*n),e):new Xe(NaN,NaN,e)}function ot(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function st(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function lt(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function ut(e,t,n){return this instanceof ut?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof ut?new ut(e.r,e.g,e.b):pt(""+e,ut,We):new ut(e,t,n)}function ct(e){return new ut(e>>16,e>>8&255,255&e)}function dt(e){return ct(e)+""}rt.brighter=function(e){return new Je(Math.min(100,this.l+Qe*(arguments.length?e:1)),this.a,this.b)},rt.darker=function(e){return new Je(Math.max(0,this.l-Qe*(arguments.length?e:1)),this.a,this.b)},rt.rgb=function(){return it(this.l,this.a,this.b)},a.rgb=ut;var ft=ut.prototype=new Ve;function ht(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function pt(e,t,n){var r,i,a,o=0,s=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return t(yt(i[0]),yt(i[1]),yt(i[2]))}return(a=_t.get(e))?t(a.r,a.g,a.b):(null==e||"#"!==e.charAt(0)||isNaN(a=parseInt(e.slice(1),16))||(4===e.length?(o=(3840&a)>>4,o|=o>>4,s=240&a,s|=s>>4,l=15&a,l|=l<<4):7===e.length&&(o=(16711680&a)>>16,s=(65280&a)>>8,l=255&a)),t(o,s,l))}function mt(e,t,n){var r,i,a=Math.min(e/=255,t/=255,n/=255),o=Math.max(e,t,n),s=o-a,l=(o+a)/2;return s?(i=l<.5?s/(o+a):s/(2-o-a),r=e==o?(t-n)/s+(t0&&l<1?0:r),new Ge(r,i,l)}function gt(e,t,n){var r=st((.4124564*(e=vt(e))+.3575761*(t=vt(t))+.1804375*(n=vt(n)))/et),i=st((.2126729*e+.7151522*t+.072175*n)/tt);return Je(116*i-16,500*(r-i),200*(i-st((.0193339*e+.119192*t+.9503041*n)/nt)))}function vt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yt(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}ft.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,i=30;return t||n||r?(t&&t=200&&t<300||304===t){try{e=n.call(i,u)}catch(e){return void o.error.call(i,e)}o.load.call(i,e)}else o.error.call(i,u)}return!this.XDomainRequest||"withCredentials"in u||!/^(http(s)?:)?\/\//.test(e)||(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=d:u.onreadystatechange=function(){u.readyState>3&&d()},u.onprogress=function(e){var t=a.event;a.event=e;try{o.progress.call(i,u)}finally{a.event=t}},i.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?l[e]:(null==t?delete l[e]:l[e]=t+"",i)},i.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",i):t},i.responseType=function(e){return arguments.length?(c=e,i):c},i.response=function(e){return n=e,i},["get","post"].forEach(function(e){i[e]=function(){return i.send.apply(i,[e].concat(s(arguments)))}}),i.send=function(n,r,a){if(2===arguments.length&&"function"==typeof r&&(a=r,r=null),u.open(n,e,!0),null==t||"accept"in l||(l.accept=t+",*/*"),u.setRequestHeader)for(var s in l)u.setRequestHeader(s,l[s]);return null!=t&&u.overrideMimeType&&u.overrideMimeType(t),null!=c&&(u.responseType=c),null!=a&&i.on("error",a).on("load",function(e){a(null,e)}),o.beforesend.call(i,u),u.send(null==r?null:r),i},i.abort=function(){return u.abort(),i},a.rebind(i,o,"on"),null==r?i:i.get(function(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}(r))}_t.forEach(function(e,t){_t.set(e,ct(t))}),a.functor=bt,a.xhr=xt(F),a.dsv=function(e,t){var n=new RegExp('["'+e+"\n]"),r=e.charCodeAt(0);function i(e,n,r){arguments.length<3&&(r=n,n=null);var i=wt(e,t,null==n?a:o(n),r);return i.row=function(e){return arguments.length?i.response(null==(n=e)?a:o(e)):n},i}function a(e){return i.parse(e.responseText)}function o(e){return function(t){return i.parse(t.responseText,e)}}function s(t){return t.map(l).join(e)}function l(e){return n.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return i.parse=function(e,t){var n;return i.parseRows(e,function(e,r){if(n)return n(e,r-1);var i=new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}");n=t?function(e,n){return t(i(e),n)}:i})},i.parseRows=function(e,t){var n,i,a={},o={},s=[],l=e.length,u=0,c=0;function d(){if(u>=l)return o;if(i)return i=!1,a;var t=u;if(34===e.charCodeAt(t)){for(var n=t;n++24?(isFinite(t)&&(clearTimeout(Et),Et=setTimeout(St,t)),kt=0):(kt=1,At(St))}function Dt(){for(var e=Date.now(),t=Mt;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Lt(){for(var e,t=Mt,n=1/0;t;)t.c?(t.t8?function(e){return e/n}:function(e){return e*n},symbol:e}});function It(e){var t=e.decimal,n=e.thousands,r=e.grouping,i=e.currency,o=r&&n?function(e,t){for(var i=e.length,a=[],o=0,s=r[0],l=0;i>0&&s>0&&(l+s+1>t&&(s=Math.max(1,t-l)),a.push(e.substring(i-=s,i+s)),!((l+=s+1)>t));)s=r[o=(o+1)%r.length];return a.reverse().join(n)}:F;return function(e){var n=Ft.exec(e),r=n[1]||" ",s=n[2]||">",l=n[3]||"-",u=n[4]||"",c=n[5],d=+n[6],f=n[7],h=n[8],p=n[9],m=1,g="",v="",y=!1,_=!0;switch(h&&(h=+h.substring(1)),(c||"0"===r&&"="===s)&&(c=r="0",s="="),p){case"n":f=!0,p="g";break;case"%":m=100,v="%",p="f";break;case"p":m=100,v="%",p="r";break;case"b":case"o":case"x":case"X":"#"===u&&(g="0"+p.toLowerCase());case"c":_=!1;case"d":y=!0,h=0;break;case"s":m=-1,p="r"}"$"===u&&(g=i[0],v=i[1]),"r"!=p||h||(p="g"),null!=h&&("g"==p?h=Math.max(1,Math.min(21,h)):"e"!=p&&"f"!=p||(h=Math.max(0,Math.min(20,h)))),p=Pt.get(p)||Rt;var b=c&&f;return function(e){var n=v;if(y&&e%1)return"";var i=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===l?"":l;if(m<0){var u=a.formatPrefix(e,h);e=u.scale(e),n=u.symbol+v}else e*=m;var x,w,M=(e=p(e,h)).lastIndexOf(".");if(M<0){var T=_?e.lastIndexOf("e"):-1;T<0?(x=e,w=""):(x=e.substring(0,T),w=e.substring(T))}else x=e.substring(0,M),w=t+e.substring(M+1);!c&&f&&(x=o(x,1/0));var k=g.length+x.length+w.length+(b?0:i.length),E=k"===s?E+i+e:"^"===s?E.substring(0,k>>=1)+i+e+E.substring(k):i+(b?e:E+e))+n}}}a.formatPrefix=function(e,t){var n=0;return(e=+e)&&(e<0&&(e*=-1),t&&(e=a.round(e,Ot(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Nt[8+n/3]};var Ft=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Pt=a.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=a.round(e,Ot(e,t))).toFixed(Math.max(0,Math.min(20,Ot(e*(1+1e-15),t))))}});function Rt(e){return e+""}var Bt=a.time={},zt=Date;function jt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}jt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Yt.setUTCDate.apply(this._,arguments)},setDay:function(){Yt.setUTCDay.apply(this._,arguments)},setFullYear:function(){Yt.setUTCFullYear.apply(this._,arguments)},setHours:function(){Yt.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Yt.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Yt.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Yt.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Yt.setUTCSeconds.apply(this._,arguments)},setTime:function(){Yt.setTime.apply(this._,arguments)}};var Yt=Date.prototype;function Ut(e,t,n){function r(t){var n=e(t),r=a(n,1);return t-n1)for(;o=u)return-1;if(37===(i=t.charCodeAt(s++))){if(o=t.charAt(s++),!(a=w[o in Vt?t.charAt(s++):o])||(r=a(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}c.utc=function(e){var t=c(e);function n(e){try{var n=new(zt=jt);return n._=e,t(n)}finally{zt=Date}}return n.parse=function(e){try{zt=jt;var n=t.parse(e);return n&&n._}finally{zt=Date}},n.toString=t.toString,n},c.multi=c.utc.multi=hn;var f=a.map(),h=Xt(o),p=Kt(o),m=Xt(s),g=Kt(s),v=Xt(l),y=Kt(l),_=Xt(u),b=Kt(u);i.forEach(function(e,t){f.set(e.toLowerCase(),t)});var x={a:function(e){return s[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:c(t),d:function(e,t){return Wt(e.getDate(),t,2)},e:function(e,t){return Wt(e.getDate(),t,2)},H:function(e,t){return Wt(e.getHours(),t,2)},I:function(e,t){return Wt(e.getHours()%12||12,t,2)},j:function(e,t){return Wt(1+Bt.dayOfYear(e),t,3)},L:function(e,t){return Wt(e.getMilliseconds(),t,3)},m:function(e,t){return Wt(e.getMonth()+1,t,2)},M:function(e,t){return Wt(e.getMinutes(),t,2)},p:function(e){return i[+(e.getHours()>=12)]},S:function(e,t){return Wt(e.getSeconds(),t,2)},U:function(e,t){return Wt(Bt.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return Wt(Bt.mondayOfYear(e),t,2)},x:c(n),X:c(r),y:function(e,t){return Wt(e.getFullYear()%100,t,2)},Y:function(e,t){return Wt(e.getFullYear()%1e4,t,4)},Z:dn,"%":function(){return"%"}},w={a:function(e,t,n){m.lastIndex=0;var r=m.exec(t.slice(n));return r?(e.w=g.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){h.lastIndex=0;var r=h.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){_.lastIndex=0;var r=_.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){v.lastIndex=0;var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,t,n){return d(e,x.c.toString(),t,n)},d:an,e:an,H:sn,I:sn,j:on,L:cn,m:rn,M:ln,p:function(e,t,n){var r=f.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)},S:un,U:Jt,w:Zt,W:Qt,x:function(e,t,n){return d(e,x.x.toString(),t,n)},X:function(e,t,n){return d(e,x.X.toString(),t,n)},y:tn,Y:en,Z:nn,"%":fn};return c}Bt.year=Ut(function(e){return(e=Bt.day(e)).setMonth(0,1),e},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e){return e.getFullYear()}),Bt.years=Bt.year.range,Bt.years.utc=Bt.year.utc.range,Bt.day=Ut(function(e){var t=new zt(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t},function(e,t){e.setDate(e.getDate()+t)},function(e){return e.getDate()-1}),Bt.days=Bt.day.range,Bt.days.utc=Bt.day.utc.range,Bt.dayOfYear=function(e){var t=Bt.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(e,t){t=7-t;var n=Bt[e]=Ut(function(e){return(e=Bt.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e},function(e,t){e.setDate(e.getDate()+7*Math.floor(t))},function(e){var n=Bt.year(e).getDay();return Math.floor((Bt.dayOfYear(e)+(n+t)%7)/7)-(n!==t)});Bt[e+"s"]=n.range,Bt[e+"s"].utc=n.utc.range,Bt[e+"OfYear"]=function(e){var n=Bt.year(e).getDay();return Math.floor((Bt.dayOfYear(e)+(n+t)%7)/7)}}),Bt.week=Bt.sunday,Bt.weeks=Bt.sunday.range,Bt.weeks.utc=Bt.sunday.utc.range,Bt.weekOfYear=Bt.sundayOfYear;var Vt={"-":"",_:" ",0:"0"},Gt=/^\s*\d+/,$t=/^%/;function Wt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a68?1900:2e3),n+i[0].length):-1}function nn(e,t,n){return/^[+-]\d{4}$/.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function rn(e,t,n){Gt.lastIndex=0;var r=Gt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function an(e,t,n){Gt.lastIndex=0;var r=Gt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function on(e,t,n){Gt.lastIndex=0;var r=Gt.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function sn(e,t,n){Gt.lastIndex=0;var r=Gt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ln(e,t,n){Gt.lastIndex=0;var r=Gt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function un(e,t,n){Gt.lastIndex=0;var r=Gt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function cn(e,t,n){Gt.lastIndex=0;var r=Gt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function dn(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=w(t)/60|0,i=w(t)%60;return n+Wt(r,"0",2)+Wt(i,"0",2)}function fn(e,t,n){$t.lastIndex=0;var r=$t.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function hn(e){for(var t=e.length,n=-1;++n=0?1:-1,s=o*a,l=Math.cos(t),u=Math.sin(t),c=i*u,d=r*l+c*Math.cos(s),f=c*o*Math.sin(s);Fn.add(Math.atan2(f,d)),n=e,r=l,i=u}Pn.point=function(o,s){Pn.point=a,n=(e=o)*Ne,r=Math.cos(s=(t=s)*Ne/2+Se/4),i=Math.sin(s)},Pn.lineEnd=function(){a(e,t)}}function Bn(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function zn(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function jn(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 Yn(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Un(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Hn(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function qn(e){return[Math.atan2(e[1],e[0]),Be(e[2])]}function Vn(e,t){return w(e[0]-t[0])Ae?r=90:u<-Ae&&(t=-90),d[0]=e,d[1]=n}};function h(i,a){c.push(d=[e=i,n=i]),ar&&(r=a)}function p(a,o){var s=Bn([a*Ne,o*Ne]);if(l){var u=jn(l,s),c=jn([u[1],-u[0],0],u);Hn(c),c=qn(c);var d=a-i,f=d>0?1:-1,p=c[0]*Ie*f,m=w(d)>180;if(m^(f*ir&&(r=g);else if(m^(f*i<(p=(p+360)%360-180)&&pr&&(r=o);m?ab(e,n)&&(n=a):b(a,n)>b(e,n)&&(e=a):n>=e?(an&&(n=a)):a>i?b(e,a)>b(e,n)&&(n=a):b(a,n)>b(e,n)&&(e=a)}else h(a,o);l=s,i=a}function m(){f.point=p}function g(){d[0]=e,d[1]=n,f.point=h,l=null}function v(e,t){if(l){var n=e-i;u+=w(n)>180?n+(n>0?360:-360):n}else o=e,s=t;Pn.point(e,t),p(e,t)}function y(){Pn.lineStart()}function _(){v(o,s),Pn.lineEnd(),w(u)>Ae&&(e=-(n=180)),d[0]=e,d[1]=n,l=null}function b(e,t){return(t-=e)<0?t+360:t}function x(e,t){return e[0]-t[0]}function M(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eb(m[0],m[1])&&(m[1]=h[1]),b(h[0],m[1])>b(m[0],m[1])&&(m[0]=h[0])):s.push(m=h);for(var l,u,h,p=-1/0,m=(o=0,s[u=s.length-1]);o<=u;m=h,++o)h=s[o],(l=b(m[1],h[0]))>p&&(p=l,e=h[0],n=m[1])}return c=d=null,e===1/0||t===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,t],[n,r]]}}(),a.geo.centroid=function(e){Tn=kn=En=An=Cn=Sn=Dn=Ln=On=Nn=In=0,a.geo.stream(e,Gn);var t=On,n=Nn,r=In,i=t*t+n*n+r*r;return i=0;--s)i.point((d=c[s])[0],d[1]);else r(h.x,h.p.x,-1,i);h=h.p}c=(h=h.o).z,p=!p}while(!h.v);i.lineEnd()}}}function tr(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r=0?1:-1,M=w*x,T=M>Se,k=p*_;if(Fn.add(Math.atan2(k*w*Math.sin(M),m*b+k*Math.cos(M))),a+=T?x+w*De:x,T^f>=n^v>=n){var E=jn(Bn(d),Bn(e));Hn(E);var A=jn(i,E);Hn(A);var C=(T^x>=0?-1:1)*Be(A[2]);(r>C||r===C&&(E[0]||E[1]))&&(o+=T^x>=0?1:-1)}if(!g++)break;f=v,p=_,m=b,d=e}}return(a<-Ae||a0){for(_||(o.polygonStart(),_=!0),o.lineStart();++a1&&2&t&&n.push(n.pop().concat(n.shift())),s.push(n.filter(ir))}return c}}function ir(e){return e.length>1}function ar(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:z,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function or(e,t){return((e=e.x)[0]<0?e[1]-Oe-Ae:Oe-e[1])-((t=t.x)[0]<0?t[1]-Oe-Ae:Oe-t[1])}var sr=rr(Qn,function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(a,o){var s=a>0?Se:-Se,l=w(a-n);w(l-Se)0?Oe:-Oe),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(a,r),t=0):i!==s&&l>=Se&&(w(n-i)Ae?Math.atan((Math.sin(t)*(a=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(t))*Math.sin(e))/(i*a*o)):(t+r)/2}(n,r,a,o),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=a,r=o),i=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}},function(e,t,n,r){var i;if(null==e)i=n*Oe,r.point(-Se,i),r.point(0,i),r.point(Se,i),r.point(Se,0),r.point(Se,-i),r.point(0,-i),r.point(-Se,-i),r.point(-Se,0),r.point(-Se,i);else if(w(e[0]-t[0])>Ae){var a=e[0]0)){if(a/=f,f<0){if(a0){if(a>d)return;a>c&&(c=a)}if(a=n-l,f||!(a<0)){if(a/=f,f<0){if(a>d)return;a>c&&(c=a)}else if(f>0){if(a0)){if(a/=h,h<0){if(a0){if(a>d)return;a>c&&(c=a)}if(a=r-u,h||!(a<0)){if(a/=h,h<0){if(a>d)return;a>c&&(c=a)}else if(h>0){if(a0&&(i.a={x:l+c*f,y:u+c*h}),d<1&&(i.b={x:l+d*f,y:u+d*h}),i}}}}}}var ur=1e9;function cr(e,t,n,r){return function(l){var u,c,d,f,h,p,m,g,v,y,_,b=l,x=ar(),w=lr(e,t,n,r),M={point:E,lineStart:function(){M.point=A,c&&c.push(d=[]);y=!0,v=!1,m=g=NaN},lineEnd:function(){u&&(A(f,h),p&&v&&x.rejoin(),u.push(x.buffer()));M.point=E,v&&l.lineEnd()},polygonStart:function(){l=x,u=[],c=[],_=!0},polygonEnd:function(){l=b,u=a.merge(u);var t=function(e){for(var t=0,n=c.length,r=e[1],i=0;ir&&Pe(u,a,e)>0&&++t:a[1]<=r&&Pe(u,a,e)<0&&--t,u=a;return 0!==t}([e,r]),n=_&&t,i=u.length;(n||i)&&(l.polygonStart(),n&&(l.lineStart(),T(null,null,1,l),l.lineEnd()),i&&er(u,o,t,T,l),l.polygonEnd()),u=c=d=null}};function T(a,o,l,u){var c=0,d=0;if(null==a||(c=i(a,l))!==(d=i(o,l))||s(a,o)<0^l>0)do{u.point(0===c||3===c?e:n,c>1?r:t)}while((c=(c+l+4)%4)!==d);else u.point(o[0],o[1])}function k(i,a){return e<=i&&i<=n&&t<=a&&a<=r}function E(e,t){k(e,t)&&l.point(e,t)}function A(e,t){var n=k(e=Math.max(-ur,Math.min(ur,e)),t=Math.max(-ur,Math.min(ur,t)));if(c&&d.push([e,t]),y)f=e,h=t,p=n,y=!1,n&&(l.lineStart(),l.point(e,t));else if(n&&v)l.point(e,t);else{var r={a:{x:m,y:g},b:{x:e,y:t}};w(r)?(v||(l.lineStart(),l.point(r.a.x,r.a.y)),l.point(r.b.x,r.b.y),n||l.lineEnd(),_=!1):n&&(l.lineStart(),l.point(e,t),_=!1)}m=e,g=t,v=n}return M};function i(r,i){return w(r[0]-e)0?0:3:w(r[0]-n)0?2:1:w(r[1]-t)0?1:0:i>0?3:2}function o(e,t){return s(e.x,t.x)}function s(e,t){var n=i(e,1),r=i(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}}function dr(e){var t=0,n=Se/3,r=Fr(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*Se/180,n=e[1]*Se/180):[t/Se*180,n/Se*180]},i}function fr(e,t){var n=Math.sin(e),r=(n+Math.sin(t))/2,i=1+n*(2*r-n),a=Math.sqrt(i)/r;function o(e,t){var n=Math.sqrt(i-2*r*Math.sin(t))/r;return[n*Math.sin(e*=r),a-n*Math.cos(e)]}return o.invert=function(e,t){var n=a-t;return[Math.atan2(e,n)/r,Be((i-(e*e+n*n)*r*r)/(2*r))]},o}a.geo.clipExtent=function(){var e,t,n,r,i,a,o={stream:function(e){return i&&(i.valid=!1),(i=a(e)).valid=!0,i},extent:function(s){return arguments.length?(a=cr(e=+s[0][0],t=+s[0][1],n=+s[1][0],r=+s[1][1]),i&&(i.valid=!1,i=null),o):[[e,t],[n,r]]}};return o.extent([[0,0],[960,500]])},(a.geo.conicEqualArea=function(){return dr(fr)}).raw=fr,a.geo.albers=function(){return a.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},a.geo.albersUsa=function(){var e,t,n,r,i=a.geo.albers(),o=a.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=a.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,n){e=[t,n]}};function u(i){var a=i[0],o=i[1];return e=null,t(a,o),e||(n(a,o),e)||r(a,o),e}return u.invert=function(e){var t=i.scale(),n=i.translate(),r=(e[0]-n[0])/t,a=(e[1]-n[1])/t;return(a>=.12&&a<.234&&r>=-.425&&r<-.214?o:a>=.166&&a<.234&&r>=-.214&&r<-.115?s:i).invert(e)},u.stream=function(e){var t=i.stream(e),n=o.stream(e),r=s.stream(e);return{point:function(e,i){t.point(e,i),n.point(e,i),r.point(e,i)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},u.precision=function(e){return arguments.length?(i.precision(e),o.precision(e),s.precision(e),u):i.precision()},u.scale=function(e){return arguments.length?(i.scale(e),o.scale(.35*e),s.scale(e),u.translate(i.translate())):i.scale()},u.translate=function(e){if(!arguments.length)return i.translate();var a=i.scale(),c=+e[0],d=+e[1];return t=i.translate(e).clipExtent([[c-.455*a,d-.238*a],[c+.455*a,d+.238*a]]).stream(l).point,n=o.translate([c-.307*a,d+.201*a]).clipExtent([[c-.425*a+Ae,d+.12*a+Ae],[c-.214*a-Ae,d+.234*a-Ae]]).stream(l).point,r=s.translate([c-.205*a,d+.212*a]).clipExtent([[c-.214*a+Ae,d+.166*a+Ae],[c-.115*a-Ae,d+.234*a-Ae]]).stream(l).point,u},u.scale(1070)};var hr,pr,mr,gr,vr,yr,_r={point:z,lineStart:z,lineEnd:z,polygonStart:function(){pr=0,_r.lineStart=br},polygonEnd:function(){_r.lineStart=_r.lineEnd=_r.point=z,hr+=w(pr/2)}};function br(){var e,t,n,r;function i(e,t){pr+=r*e-n*t,n=e,r=t}_r.point=function(a,o){_r.point=i,e=n=a,t=r=o},_r.lineEnd=function(){i(e,t)}}var xr={point:function(e,t){evr&&(vr=e);tyr&&(yr=t)},lineStart:z,lineEnd:z,polygonStart:z,polygonEnd:z};function wr(){var e=Mr(4.5),t=[],n={point:r,lineStart:function(){n.point=i},lineEnd:o,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=o,n.point=r},pointRadius:function(t){return e=Mr(t),n},result:function(){if(t.length){var e=t.join("");return t=[],e}}};function r(n,r){t.push("M",n,",",r,e)}function i(e,r){t.push("M",e,",",r),n.point=a}function a(e,n){t.push("L",e,",",n)}function o(){n.point=r}function s(){t.push("Z")}return n}function Mr(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}var Tr,kr={point:Er,lineStart:Ar,lineEnd:Cr,polygonStart:function(){kr.lineStart=Sr},polygonEnd:function(){kr.point=Er,kr.lineStart=Ar,kr.lineEnd=Cr}};function Er(e,t){En+=e,An+=t,++Cn}function Ar(){var e,t;function n(n,r){var i=n-e,a=r-t,o=Math.sqrt(i*i+a*a);Sn+=o*(e+n)/2,Dn+=o*(t+r)/2,Ln+=o,Er(e=n,t=r)}kr.point=function(r,i){kr.point=n,Er(e=r,t=i)}}function Cr(){kr.point=Er}function Sr(){var e,t,n,r;function i(e,t){var i=e-n,a=t-r,o=Math.sqrt(i*i+a*a);Sn+=o*(n+e)/2,Dn+=o*(r+t)/2,Ln+=o,On+=(o=r*e-n*t)*(n+e),Nn+=o*(r+t),In+=3*o,Er(n=e,r=t)}kr.point=function(a,o){kr.point=i,Er(e=n=a,t=r=o)},kr.lineEnd=function(){i(e,t)}}function Dr(e){var t=4.5,n={point:r,lineStart:function(){n.point=i},lineEnd:o,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=o,n.point=r},pointRadius:function(e){return t=e,n},result:z};function r(n,r){e.moveTo(n+t,r),e.arc(n,r,t,0,De)}function i(t,r){e.moveTo(t,r),n.point=a}function a(t,n){e.lineTo(t,n)}function o(){n.point=r}function s(){e.closePath()}return n}function Lr(e){var t=.5,n=Math.cos(30*Ne),r=16;function i(t){return(r?function(t){var n,i,o,s,l,u,c,d,f,h,p,m,g={point:v,lineStart:y,lineEnd:b,polygonStart:function(){t.polygonStart(),g.lineStart=x},polygonEnd:function(){t.polygonEnd(),g.lineStart=y}};function v(n,r){n=e(n,r),t.point(n[0],n[1])}function y(){d=NaN,g.point=_,t.lineStart()}function _(n,i){var o=Bn([n,i]),s=e(n,i);a(d,f,c,h,p,m,d=s[0],f=s[1],c=n,h=o[0],p=o[1],m=o[2],r,t),t.point(d,f)}function b(){g.point=v,t.lineEnd()}function x(){y(),g.point=w,g.lineEnd=M}function w(e,t){_(n=e,t),i=d,o=f,s=h,l=p,u=m,g.point=_}function M(){a(d,f,c,h,p,m,i,o,n,s,l,u,r,t),g.lineEnd=b,b()}return g}:function(t){return Nr(t,function(n,r){n=e(n,r),t.point(n[0],n[1])})})(t)}function a(r,i,o,s,l,u,c,d,f,h,p,m,g,v){var y=c-r,_=d-i,b=y*y+_*_;if(b>4*t&&g--){var x=s+h,M=l+p,T=u+m,k=Math.sqrt(x*x+M*M+T*T),E=Math.asin(T/=k),A=w(w(T)-1)t||w((y*L+_*O)/b-.5)>.3||s*h+l*p+u*m0&&16,i):Math.sqrt(t)},i}function Or(e){this.stream=e}function Nr(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function Ir(e){return Fr(function(){return e})()}function Fr(e){var t,n,r,i,o,s,l=Lr(function(e,n){return[(e=t(e,n))[0]*u+i,o-e[1]*u]}),u=150,c=480,d=250,f=0,h=0,p=0,m=0,g=0,v=sr,y=F,_=null,b=null;function x(e){return[(e=r(e[0]*Ne,e[1]*Ne))[0]*u+i,o-e[1]*u]}function M(e){return(e=r.invert((e[0]-i)/u,(o-e[1])/u))&&[e[0]*Ie,e[1]*Ie]}function T(){r=Jn(n=zr(p,m,g),t);var e=t(f,h);return i=c-e[0]*u,o=d+e[1]*u,k()}function k(){return s&&(s.valid=!1,s=null),x}return x.stream=function(e){return s&&(s.valid=!1),(s=Pr(v(n,l(y(e))))).valid=!0,s},x.clipAngle=function(e){return arguments.length?(v=null==e?(_=e,sr):function(e){var t=Math.cos(e),n=t>0,r=w(t)>Ae;return rr(i,function(e){var t,s,l,u,c;return{lineStart:function(){u=l=!1,c=1},point:function(d,f){var h,p=[d,f],m=i(d,f),g=n?m?0:o(d,f):m?o(d+(d<0?Se:-Se),f):0;if(!t&&(u=l=m)&&e.lineStart(),m!==l&&(h=a(t,p),(Vn(t,h)||Vn(p,h))&&(p[0]+=Ae,p[1]+=Ae,m=i(p[0],p[1]))),m!==l)c=0,m?(e.lineStart(),h=a(p,t),e.point(h[0],h[1])):(h=a(t,p),e.point(h[0],h[1]),e.lineEnd()),t=h;else if(r&&t&&n^m){var v;g&s||!(v=a(p,t,!0))||(c=0,n?(e.lineStart(),e.point(v[0][0],v[0][1]),e.point(v[1][0],v[1][1]),e.lineEnd()):(e.point(v[1][0],v[1][1]),e.lineEnd(),e.lineStart(),e.point(v[0][0],v[0][1])))}!m||t&&Vn(t,p)||e.point(p[0],p[1]),t=p,l=m,s=g},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return c|(u&&l)<<1}}},Hr(e,6*Ne),n?[0,-e]:[-Se,e-Se]);function i(e,n){return Math.cos(e)*Math.cos(n)>t}function a(e,n,r){var i=[1,0,0],a=jn(Bn(e),Bn(n)),o=zn(a,a),s=a[0],l=o-s*s;if(!l)return!r&&e;var u=t*o/l,c=-t*s/l,d=jn(i,a),f=Un(i,u);Yn(f,Un(a,c));var h=d,p=zn(f,h),m=zn(h,h),g=p*p-m*(zn(f,f)-1);if(!(g<0)){var v=Math.sqrt(g),y=Un(h,(-p-v)/m);if(Yn(y,f),y=qn(y),!r)return y;var _,b=e[0],x=n[0],M=e[1],T=n[1];x0^y[1]<(w(y[0]-b)Se^(b<=y[0]&&y[0]<=x)){var A=Un(h,(-p+v)/m);return Yn(A,f),[y,qn(A)]}}}function o(t,r){var i=n?e:Se-e,a=0;return t<-i?a|=1:t>i&&(a|=2),r<-i?a|=4:r>i&&(a|=8),a}}((_=+e)*Ne),k()):_},x.clipExtent=function(e){return arguments.length?(b=e,y=e?cr(e[0][0],e[0][1],e[1][0],e[1][1]):F,k()):b},x.scale=function(e){return arguments.length?(u=+e,T()):u},x.translate=function(e){return arguments.length?(c=+e[0],d=+e[1],T()):[c,d]},x.center=function(e){return arguments.length?(f=e[0]%360*Ne,h=e[1]%360*Ne,T()):[f*Ie,h*Ie]},x.rotate=function(e){return arguments.length?(p=e[0]%360*Ne,m=e[1]%360*Ne,g=e.length>2?e[2]%360*Ne:0,T()):[p*Ie,m*Ie,g*Ie]},a.rebind(x,l,"precision"),function(){return t=e.apply(this,arguments),x.invert=t.invert&&M,T()}}function Pr(e){return Nr(e,function(t,n){e.point(t*Ne,n*Ne)})}function Rr(e,t){return[e,t]}function Br(e,t){return[e>Se?e-De:e<-Se?e+De:e,t]}function zr(e,t,n){return e?t||n?Jn(Yr(e),Ur(t,n)):Yr(e):t||n?Ur(t,n):Br}function jr(e){return function(t,n){return[(t+=e)>Se?t-De:t<-Se?t+De:t,n]}}function Yr(e){var t=jr(e);return t.invert=jr(-e),t}function Ur(e,t){var n=Math.cos(e),r=Math.sin(e),i=Math.cos(t),a=Math.sin(t);function o(e,t){var o=Math.cos(t),s=Math.cos(e)*o,l=Math.sin(e)*o,u=Math.sin(t),c=u*n+s*r;return[Math.atan2(l*i-c*a,s*n-u*r),Be(c*i+l*a)]}return o.invert=function(e,t){var o=Math.cos(t),s=Math.cos(e)*o,l=Math.sin(e)*o,u=Math.sin(t),c=u*i-l*a;return[Math.atan2(l*i+u*a,s*n+c*r),Be(c*n-s*r)]},o}function Hr(e,t){var n=Math.cos(e),r=Math.sin(e);return function(i,a,o,s){var l=o*t;null!=i?(i=qr(n,i),a=qr(n,a),(o>0?ia)&&(i+=o*De)):(i=e+o*De,a=e-.5*l);for(var u,c=i;o>0?c>a:c2?e[2]*Ne:0),t.invert=function(t){return(t=e.invert(t[0]*Ne,t[1]*Ne))[0]*=Ie,t[1]*=Ie,t},t},Br.invert=Rr,a.geo.circle=function(){var e,t,n=[0,0],r=6;function i(){var e="function"==typeof n?n.apply(this,arguments):n,r=zr(-e[0]*Ne,-e[1]*Ne,0).invert,i=[];return t(null,null,1,{point:function(e,t){i.push(e=r(e,t)),e[0]*=Ie,e[1]*=Ie}}),{type:"Polygon",coordinates:[i]}}return i.origin=function(e){return arguments.length?(n=e,i):n},i.angle=function(n){return arguments.length?(t=Hr((e=+n)*Ne,r*Ne),i):e},i.precision=function(n){return arguments.length?(t=Hr(e*Ne,(r=+n)*Ne),i):r},i.angle(90)},a.geo.distance=function(e,t){var n,r=(t[0]-e[0])*Ne,i=e[1]*Ne,a=t[1]*Ne,o=Math.sin(r),s=Math.cos(r),l=Math.sin(i),u=Math.cos(i),c=Math.sin(a),d=Math.cos(a);return Math.atan2(Math.sqrt((n=d*o)*n+(n=u*c-l*d*s)*n),l*c+u*d*s)},a.geo.graticule=function(){var e,t,n,r,i,o,s,l,u,c,d,f,h=10,p=h,m=90,g=360,v=2.5;function y(){return{type:"MultiLineString",coordinates:_()}}function _(){return a.range(Math.ceil(r/m)*m,n,m).map(d).concat(a.range(Math.ceil(l/g)*g,s,g).map(f)).concat(a.range(Math.ceil(t/h)*h,e,h).filter(function(e){return w(e%m)>Ae}).map(u)).concat(a.range(Math.ceil(o/p)*p,i,p).filter(function(e){return w(e%g)>Ae}).map(c))}return y.lines=function(){return _().map(function(e){return{type:"LineString",coordinates:e}})},y.outline=function(){return{type:"Polygon",coordinates:[d(r).concat(f(s).slice(1),d(n).reverse().slice(1),f(l).reverse().slice(1))]}},y.extent=function(e){return arguments.length?y.majorExtent(e).minorExtent(e):y.minorExtent()},y.majorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],l=+e[0][1],s=+e[1][1],r>n&&(e=r,r=n,n=e),l>s&&(e=l,l=s,s=e),y.precision(v)):[[r,l],[n,s]]},y.minorExtent=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],o=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),o>i&&(n=o,o=i,i=n),y.precision(v)):[[t,o],[e,i]]},y.step=function(e){return arguments.length?y.majorStep(e).minorStep(e):y.minorStep()},y.majorStep=function(e){return arguments.length?(m=+e[0],g=+e[1],y):[m,g]},y.minorStep=function(e){return arguments.length?(h=+e[0],p=+e[1],y):[h,p]},y.precision=function(a){return arguments.length?(v=+a,u=Vr(o,i,90),c=Gr(t,e,v),d=Vr(l,s,90),f=Gr(r,n,v),y):v},y.majorExtent([[-180,-90+Ae],[180,90-Ae]]).minorExtent([[-180,-80-Ae],[180,80+Ae]])},a.geo.greatArc=function(){var e,t,n=$r,r=Wr;function i(){return{type:"LineString",coordinates:[e||n.apply(this,arguments),t||r.apply(this,arguments)]}}return i.distance=function(){return a.geo.distance(e||n.apply(this,arguments),t||r.apply(this,arguments))},i.source=function(t){return arguments.length?(n=t,e="function"==typeof t?null:t,i):n},i.target=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,i):r},i.precision=function(){return arguments.length?i:0},i},a.geo.interpolate=function(e,t){return n=e[0]*Ne,r=e[1]*Ne,i=t[0]*Ne,a=t[1]*Ne,o=Math.cos(r),s=Math.sin(r),l=Math.cos(a),u=Math.sin(a),c=o*Math.cos(n),d=o*Math.sin(n),f=l*Math.cos(i),h=l*Math.sin(i),p=2*Math.asin(Math.sqrt(je(a-r)+o*l*je(i-n))),m=1/Math.sin(p),(g=p?function(e){var t=Math.sin(e*=p)*m,n=Math.sin(p-e)*m,r=n*c+t*f,i=n*d+t*h,a=n*s+t*u;return[Math.atan2(i,r)*Ie,Math.atan2(a,Math.sqrt(r*r+i*i))*Ie]}:function(){return[n*Ie,r*Ie]}).distance=p,g;var n,r,i,a,o,s,l,u,c,d,f,h,p,m,g},a.geo.length=function(e){return Tr=0,a.geo.stream(e,Xr),Tr};var Xr={sphere:z,point:z,lineStart:function(){var e,t,n;function r(r,i){var a=Math.sin(i*=Ne),o=Math.cos(i),s=w((r*=Ne)-e),l=Math.cos(s);Tr+=Math.atan2(Math.sqrt((s=o*Math.sin(s))*s+(s=n*a-t*o*l)*s),t*a+n*o*l),e=r,t=a,n=o}Xr.point=function(i,a){e=i*Ne,t=Math.sin(a*=Ne),n=Math.cos(a),Xr.point=r},Xr.lineEnd=function(){Xr.point=Xr.lineEnd=z}},lineEnd:z,polygonStart:z,polygonEnd:z};function Kr(e,t){function n(t,n){var r=Math.cos(t),i=Math.cos(n),a=e(r*i);return[a*i*Math.sin(t),a*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),i=t(r),a=Math.sin(i),o=Math.cos(i);return[Math.atan2(e*a,r*o),Math.asin(r&&n*a/r)]},n}var Zr=Kr(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(a.geo.azimuthalEqualArea=function(){return Ir(Zr)}).raw=Zr;var Jr=Kr(function(e){var t=Math.acos(e);return t&&t/Math.sin(t)},F);function Qr(e,t){var n=Math.cos(e),r=function(e){return Math.tan(Se/4+e/2)},i=e===t?Math.sin(e):Math.log(n/Math.cos(t))/Math.log(r(t)/r(e)),a=n*Math.pow(r(e),i)/i;if(!i)return ni;function o(e,t){a>0?t<-Oe+Ae&&(t=-Oe+Ae):t>Oe-Ae&&(t=Oe-Ae);var n=a/Math.pow(r(t),i);return[n*Math.sin(i*e),a-n*Math.cos(i*e)]}return o.invert=function(e,t){var n=a-t,r=Fe(i)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/i,2*Math.atan(Math.pow(a/r,1/i))-Oe]},o}function ei(e,t){var n=Math.cos(e),r=e===t?Math.sin(e):(n-Math.cos(t))/(t-e),i=n/r+e;if(w(r)1&&Pe(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function ci(e,t){return e[0]-t[0]||e[1]-t[1]}(a.geo.stereographic=function(){return Ir(ai)}).raw=ai,oi.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-Oe]},(a.geo.transverseMercator=function(){var e=ri(oi),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90])}).raw=oi,a.geom={},a.geom.hull=function(e){var t=si,n=li;if(arguments.length)return r(e);function r(e){if(e.length<3)return[];var r,i=bt(t),a=bt(n),o=e.length,s=[],l=[];for(r=0;r=0;--r)h.push(e[s[u[r]][2]]);for(r=+d;rAe)s=s.L;else{if(!((i=a-Ci(s,o))>Ae)){r>-Ae?(t=s.P,n=s):i>-Ae?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}var l=Mi(e);if(vi.insert(t,l),t||n){if(t===n)return Ni(t),n=Mi(t.site),vi.insert(l,n),l.edge=n.edge=Pi(t.site,l.site),Oi(t),void Oi(n);if(n){Ni(t),Ni(n);var u=t.site,c=u.x,d=u.y,f=e.x-c,h=e.y-d,p=n.site,m=p.x-c,g=p.y-d,v=2*(f*g-h*m),y=f*f+h*h,_=m*m+g*g,b={x:(g*y-h*_)/v+c,y:(f*_-m*y)/v+d};Ri(n.edge,u,p,b),l.edge=Pi(u,e,null,b),n.edge=Pi(e,p,null,b),Oi(t),Oi(n)}else l.edge=Pi(t.site,l.site)}}function Ai(e,t){var n=e.site,r=n.x,i=n.y,a=i-t;if(!a)return r;var o=e.P;if(!o)return-1/0;var s=(n=o.site).x,l=n.y,u=l-t;if(!u)return s;var c=s-r,d=1/a-1/u,f=c/u;return d?(-f+Math.sqrt(f*f-2*d*(c*c/(-2*u)-l+u/2+i-a/2)))/d+r:(r+s)/2}function Ci(e,t){var n=e.N;if(n)return Ai(n,t);var r=e.site;return r.y===t?r.x:1/0}function Si(e){this.site=e,this.edges=[]}function Di(e,t){return t.angle-e.angle}function Li(){ji(this),this.x=this.y=this.arc=this.site=this.cy=null}function Oi(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,a=n.site;if(r!==a){var o=i.x,s=i.y,l=r.x-o,u=r.y-s,c=a.x-o,d=2*(l*(g=a.y-s)-u*c);if(!(d>=-Ce)){var f=l*l+u*u,h=c*c+g*g,p=(g*f-u*h)/d,m=(l*h-c*f)/d,g=m+s,v=xi.pop()||new Li;v.arc=e,v.site=i,v.x=p+o,v.y=g+Math.sqrt(p*p+m*m),v.cy=g,e.circle=v;for(var y=null,_=_i._;_;)if(v.y<_.y||v.y===_.y&&v.x<=_.x){if(!_.L){y=_.P;break}_=_.L}else{if(!_.R){y=_;break}_=_.R}_i.insert(y,v),y||(yi=v)}}}}function Ni(e){var t=e.circle;t&&(t.P||(yi=t.N),_i.remove(t),xi.push(t),ji(t),e.circle=null)}function Ii(e,t){var n=e.b;if(n)return!0;var r,i,a=e.a,o=t[0][0],s=t[1][0],l=t[0][1],u=t[1][1],c=e.l,d=e.r,f=c.x,h=c.y,p=d.x,m=d.y,g=(f+p)/2,v=(h+m)/2;if(m===h){if(g=s)return;if(f>p){if(a){if(a.y>=u)return}else a={x:g,y:l};n={x:g,y:u}}else{if(a){if(a.y1)if(f>p){if(a){if(a.y>=u)return}else a={x:(l-i)/r,y:l};n={x:(u-i)/r,y:u}}else{if(a){if(a.y=s)return}else a={x:o,y:r*o+i};n={x:s,y:r*s+i}}else{if(a){if(a.xAe||w(i-n)>Ae)&&(s.splice(o,0,new Bi((v=a.site,y=c,_=w(r-d)Ae?{x:d,y:w(t-d)Ae?{x:w(n-p)Ae?{x:f,y:w(t-f)Ae?{x:w(n-h)=n&&u.x<=i&&u.y>=r&&u.y<=o?[[n,o],[i,o],[i,r],[n,r]]:[]).point=e[s]}),t}function s(e){return e.map(function(e,t){return{x:Math.round(r(e,t)/Ae)*Ae,y:Math.round(i(e,t)/Ae)*Ae,i:t}})}return o.links=function(e){return qi(s(e)).edges.filter(function(e){return e.l&&e.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},o.triangles=function(e){var t=[];return qi(s(e)).cells.forEach(function(n,r){for(var i,a,o,s,l=n.site,u=n.edges.sort(Di),c=-1,d=u.length,f=u[d-1].edge,h=f.l===l?f.r:f.l;++ca&&(i=t.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,l.push({i:o,x:Zi(n,r)})),a=ea.lastIndex;return am&&(m=l.x),l.y>g&&(g=l.y),u.push(l.x),c.push(l.y);else for(d=0;dm&&(m=_),b>g&&(g=b),u.push(_),c.push(b)}var x=m-h,M=g-p;function T(e,t,n,r,i,a,o,s){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var l=e.x,u=e.y;if(null!=l)if(w(l-n)+w(u-r)<.01)k(e,t,n,r,i,a,o,s);else{var c=e.point;e.x=e.y=e.point=null,k(e,c,l,u,i,a,o,s),k(e,t,n,r,i,a,o,s)}else e.x=n,e.y=r,e.point=t}else k(e,t,n,r,i,a,o,s)}function k(e,t,n,r,i,a,o,s){var l=.5*(i+o),u=.5*(a+s),c=n>=l,d=r>=u,f=d<<1|c;e.leaf=!1,c?i=l:o=l,d?a=u:s=u,T(e=e.nodes[f]||(e.nodes[f]={leaf:!0,nodes:[],point:null,x:null,y:null}),t,n,r,i,a,o,s)}x>M?g=p+x:m=h+M;var E={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){T(E,e,+v(e,++d),+y(e,d),h,p,m,g)}};if(E.visit=function(e){!function e(t,n,r,i,a,o){if(!t(n,r,i,a,o)){var s=.5*(r+a),l=.5*(i+o),u=n.nodes;u[0]&&e(t,u[0],r,i,s,l),u[1]&&e(t,u[1],s,i,a,l),u[2]&&e(t,u[2],r,l,s,o),u[3]&&e(t,u[3],s,l,a,o)}}(e,E,h,p,m,g)},E.find=function(e){return function(e,t,n,r,i,a,o){var s,l=1/0;return function e(u,c,d,f,h){if(!(c>a||d>o||f=x)<<1|t>=b,M=w+4;w=0&&!(n=a.interpolators[r](e,t)););return n}function na(e,t){var n,r=[],i=[],a=e.length,o=t.length,s=Math.min(e.length,t.length);for(n=0;n=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function da(e){return 1-Math.cos(e*Oe)}function fa(e){return Math.pow(2,10*(e-1))}function ha(e){return 1-Math.sqrt(1-e*e)}function pa(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function ma(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function ga(e){var t,n,r,i=[e.a,e.b],a=[e.c,e.d],o=ya(i),s=va(i,a),l=ya(((t=a)[0]+=(r=-s)*(n=i)[0],t[1]+=r*n[1],t))||0;i[0]*a[1]=0?e.slice(0,n):e,i=n>=0?e.slice(n+1):"in";return r=ia.get(r)||ra,i=aa.get(i)||F,t=i(r.apply(null,o.call(arguments,1))),function(e){return e<=0?0:e>=1?1:t(e)}},a.interpolateHcl=function(e,t){e=a.hcl(e),t=a.hcl(t);var n=e.h,r=e.c,i=e.l,o=t.h-n,s=t.c-r,l=t.l-i;isNaN(s)&&(s=0,r=isNaN(r)?t.c:r);isNaN(o)?(o=0,n=isNaN(n)?t.h:n):o>180?o-=360:o<-180&&(o+=360);return function(e){return Ze(n+o*e,r+s*e,i+l*e)+""}},a.interpolateHsl=function(e,t){e=a.hsl(e),t=a.hsl(t);var n=e.h,r=e.s,i=e.l,o=t.h-n,s=t.s-r,l=t.l-i;isNaN(s)&&(s=0,r=isNaN(r)?t.s:r);isNaN(o)?(o=0,n=isNaN(n)?t.h:n):o>180?o-=360:o<-180&&(o+=360);return function(e){return We(n+o*e,r+s*e,i+l*e)+""}},a.interpolateLab=function(e,t){e=a.lab(e),t=a.lab(t);var n=e.l,r=e.a,i=e.b,o=t.l-n,s=t.a-r,l=t.b-i;return function(e){return it(n+o*e,r+s*e,i+l*e)+""}},a.interpolateRound=ma,a.transform=function(e){var t=l.createElementNS(a.ns.prefix.svg,"g");return(a.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new ga(n?n.matrix:_a)})(e)},ga.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var _a={a:1,b:0,c:0,d:1,e:0,f:0};function ba(e){return e.length?e.pop()+",":""}function xa(e,t){var n=[],r=[];return e=a.transform(e),t=a.transform(t),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push("translate(",null,",",null,")");r.push({i:i-4,x:Zi(e[0],t[0])},{i:i-2,x:Zi(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}(e.translate,t.translate,n,r),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(ba(n)+"rotate(",null,")")-2,x:Zi(e,t)})):t&&n.push(ba(n)+"rotate("+t+")")}(e.rotate,t.rotate,n,r),function(e,t,n,r){e!==t?r.push({i:n.push(ba(n)+"skewX(",null,")")-2,x:Zi(e,t)}):t&&n.push(ba(n)+"skewX("+t+")")}(e.skew,t.skew,n,r),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push(ba(n)+"scale(",null,",",null,")");r.push({i:i-4,x:Zi(e[0],t[0])},{i:i-2,x:Zi(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(ba(n)+"scale("+t+")")}(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,i=-1,a=r.length;++i0?n=t:(e.c=null,e.t=NaN,e=null,l.end({type:"end",alpha:n=0})):t>0&&(l.start({type:"start",alpha:n=t}),e=Ct(s.tick)),s):n},s.start=function(){var e,t,n,a=v.length,l=y.length,c=u[0],p=u[1];for(e=0;e=0;)n.push(i[r])}function Fa(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(a=e.children)&&(i=a.length))for(var i,a,o=-1;++o=0;)o.push(c=u[l]),c.parent=a,c.depth=a.depth+1;n&&(a.value=0),a.children=u}else n&&(a.value=+n.call(r,a,a.depth)||0),delete a.children;return Fa(i,function(t){var r,i;e&&(r=t.children)&&r.sort(e),n&&(i=t.parent)&&(i.value+=t.value)}),s}return r.sort=function(t){return arguments.length?(e=t,r):e},r.children=function(e){return arguments.length?(t=e,r):t},r.value=function(e){return arguments.length?(n=e,r):n},r.revalue=function(e){return n&&(Ia(e,function(e){e.children&&(e.value=0)}),Fa(e,function(e){var t;e.children||(e.value=+n.call(r,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)})),e},r},a.layout.partition=function(){var e=a.layout.hierarchy(),t=[1,1];function n(n,r){var i=e.call(this,n,r);return function e(t,n,r,i){var a=t.children;if(t.x=n,t.y=t.depth*i,t.dx=r,t.dy=i,a&&(o=a.length)){var o,s,l,u=-1;for(r=t.value?r/t.value:0;++us&&(s=r),o.push(r)}for(n=0;ni&&(r=n,i=t);return r}function Xa(e){return e.reduce(Ka,0)}function Ka(e,t){return e+t[1]}function Za(e,t){return Ja(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function Ja(e,t){for(var n=-1,r=+e[0],i=(e[1]-r)/t,a=[];++n<=t;)a[n]=i*n+r;return a}function Qa(e){return[a.min(e),a.max(e)]}function eo(e,t){return e.value-t.value}function to(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function no(e,t){e._pack_next=t,t._pack_prev=e}function ro(e,t){var n=t.x-e.x,r=t.y-e.y,i=e.r+t.r;return.999*i*i>n*n+r*r}function io(e){if((t=e.children)&&(l=t.length)){var t,n,r,i,a,o,s,l,u=1/0,c=-1/0,d=1/0,f=-1/0;if(t.forEach(ao),(n=t[0]).x=-n.r,n.y=0,_(n),l>1&&((r=t[1]).x=r.r,r.y=0,_(r),l>2))for(so(n,r,i=t[2]),_(i),to(n,i),n._pack_prev=i,to(i,r),r=n._pack_next,a=3;a0)for(o=-1;++o=d[0]&&l<=d[1]&&((s=u[a.bisect(f,l,1,p)-1]).y+=m,s.push(i[o]));return u}return i.value=function(e){return arguments.length?(t=e,i):t},i.range=function(e){return arguments.length?(n=bt(e),i):n},i.bins=function(e){return arguments.length?(r="number"==typeof e?function(t){return Ja(t,e)}:bt(e),i):r},i.frequency=function(t){return arguments.length?(e=!!t,i):e},i},a.layout.pack=function(){var e,t=a.layout.hierarchy().sort(eo),n=0,r=[1,1];function i(i,a){var o=t.call(this,i,a),s=o[0],l=r[0],u=r[1],c=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(s.x=s.y=0,Fa(s,function(e){e.r=+c(e.value)}),Fa(s,io),n){var d=n*(e?1:Math.max(2*s.r/l,2*s.r/u))/2;Fa(s,function(e){e.r+=d}),Fa(s,io),Fa(s,function(e){e.r-=d})}return function e(t,n,r,i){var a=t.children;t.x=n+=i*t.x;t.y=r+=i*t.y;t.r*=i;if(a)for(var o=-1,s=a.length;++oh.x&&(h=e),e.depth>p.depth&&(p=e)});var m=t(f,h)/2-f.x,g=n[0]/(h.x+t(h,f)/2+m),v=n[1]/(p.depth||1);Ia(c,function(e){e.x=(e.x+m)*g,e.y=e.depth*v})}return u}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n.length){!function(e){var t,n=0,r=0,i=e.children,a=i.length;for(;--a>=0;)(t=i[a]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,a=e,o=e,s=n,l=a.parent.children[0],u=a.m,c=o.m,d=s.m,f=l.m;s=co(s),a=uo(a),s&&a;)l=uo(l),(o=co(o)).a=e,(i=s.z+d-a.z-u+t(s._,a._))>0&&(fo(ho(s,e,r),e,i),u+=i,c+=i),d+=s.m,u+=a.m,f+=l.m,c+=o.m;s&&!co(o)&&(o.t=s,o.m+=d-c),a&&!uo(l)&&(l.t=a,l.m+=u-f,r=e)}return r}(e,i,e.parent.A||r[0])}function s(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function l(e){e.x*=n[0],e.y=e.depth*n[1]}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(e){return arguments.length?(r=null==(n=e)?l:null,i):r?null:n},i.nodeSize=function(e){return arguments.length?(r=null==(n=e)?null:l,i):r?n:null},Na(i,e)},a.layout.cluster=function(){var e=a.layout.hierarchy().sort(null).value(null),t=lo,n=[1,1],r=!1;function i(i,o){var s,l=e.call(this,i,o),u=l[0],c=0;Fa(u,function(e){var n=e.children;n&&n.length?(e.x=function(e){return e.reduce(function(e,t){return e+t.x},0)/e.length}(n),e.y=function(e){return 1+a.max(e,function(e){return e.y})}(n)):(e.x=s?c+=t(e,s):0,e.y=0,s=e)});var d=function e(t){var n=t.children;return n&&n.length?e(n[0]):t}(u),f=function e(t){var n,r=t.children;return r&&(n=r.length)?e(r[n-1]):t}(u),h=d.x-t(d,f)/2,p=f.x+t(f,d)/2;return Fa(u,r?function(e){e.x=(e.x-u.x)*n[0],e.y=(u.y-e.y)*n[1]}:function(e){e.x=(e.x-h)/(p-h)*n[0],e.y=(1-(u.y?e.y/u.y:1))*n[1]}),l}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(e){return arguments.length?(r=null==(n=e),i):r?null:n},i.nodeSize=function(e){return arguments.length?(r=null!=(n=e),i):r?n:null},Na(i,e)},a.layout.treemap=function(){var e,t=a.layout.hierarchy(),n=Math.round,r=[1,1],i=null,o=po,s=!1,l="squarify",u=.5*(1+Math.sqrt(5));function c(e,t){for(var n,r,i=-1,a=e.length;++i0;)s.push(n=u[i-1]),s.area+=n.area,"squarify"!==l||(r=h(s,m))<=f?(u.pop(),f=r):(s.area-=s.pop().area,p(s,m,a,!1),m=Math.min(a.dx,a.dy),s.length=s.area=0,f=1/0);s.length&&(p(s,m,a,!0),s.length=s.area=0),t.forEach(d)}}function f(e){var t=e.children;if(t&&t.length){var n,r=o(e),i=t.slice(),a=[];for(c(i,r.dx*r.dy/e.value),a.area=0;n=i.pop();)a.push(n),a.area+=n.area,null!=n.z&&(p(a,n.z?r.dx:r.dy,r,!i.length),a.length=a.area=0);t.forEach(f)}}function h(e,t){for(var n,r=e.area,i=0,a=1/0,o=-1,s=e.length;++oi&&(i=n));return t*=t,(r*=r)?Math.max(t*i*u/r,r/(t*a*u)):1/0}function p(e,t,r,i){var a,o=-1,s=e.length,l=r.x,u=r.y,c=t?n(e.area/t):0;if(t==r.dx){for((i||c>r.dy)&&(c=r.dy);++or.dx)&&(c=r.dx);++o1);return e+t*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=a.random.normal.apply(a,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=a.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;n2?wo:yo,s=i?Ma:wa;return a=e(t,n,s,r),o=e(n,t,s,ta),l}function l(e){return a(e)}l.invert=function(e){return o(e)};l.domain=function(e){return arguments.length?(t=e.map(Number),s()):t};l.range=function(e){return arguments.length?(n=e,s()):n};l.rangeRound=function(e){return l.range(e).interpolate(ma)};l.clamp=function(e){return arguments.length?(i=e,s()):i};l.interpolate=function(e){return arguments.length?(r=e,s()):r};l.ticks=function(e){return Eo(t,e)};l.tickFormat=function(e,n){return Ao(t,e,n)};l.nice=function(e){return To(t,e),s()};l.copy=function(){return e(t,n,r,i)};return s()}([0,1],[0,1],ta,!1)};var Co={s:1,g:1,p:1,r:1,e:1};function So(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}a.scale.log=function(){return function e(t,n,r,i){function o(e){return(r?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(n)}function s(e){return r?Math.pow(n,e):-Math.pow(n,-e)}function l(e){return t(o(e))}l.invert=function(e){return s(t.invert(e))};l.domain=function(e){return arguments.length?(r=e[0]>=0,t.domain((i=e.map(Number)).map(o)),l):i};l.base=function(e){return arguments.length?(n=+e,t.domain(i.map(o)),l):n};l.nice=function(){var e=_o(i.map(o),r?Math:Lo);return t.domain(e),i=e.map(s),l};l.ticks=function(){var e=go(i),t=[],a=e[0],l=e[1],u=Math.floor(o(a)),c=Math.ceil(o(l)),d=n%1?2:n;if(isFinite(c-u)){if(r){for(;u0;f--)t.push(s(u)*f);for(u=0;t[u]l;c--);t=t.slice(u,c)}return t};l.tickFormat=function(e,t){if(!arguments.length)return Do;arguments.length<2?t=Do:"function"!=typeof t&&(t=a.format(t));var r=Math.max(1,n*e/l.ticks().length);return function(e){var i=e/s(Math.round(o(e)));return i*n0?r[e-1]:t[0],ed?0:1;if(u=Le)return l(u,h)+(s?l(s,1-h):"")+"Z";var p,m,g,v,y,_,b,x,w,M,T,k,E=0,A=0,C=[];if((v=(+o.apply(this,arguments)||0)/2)&&(g=r===Bo?Math.sqrt(s*s+u*u):+r.apply(this,arguments),h||(A*=-1),u&&(A=Be(g/u*Math.sin(v))),s&&(E=Be(g/s*Math.sin(v)))),u){y=u*Math.cos(c+A),_=u*Math.sin(c+A),b=u*Math.cos(d-A),x=u*Math.sin(d-A);var S=Math.abs(d-c-2*A)<=Se?0:1;if(A&&qo(y,_,b,x)===h^S){var D=(c+d)/2;y=u*Math.cos(D),_=u*Math.sin(D),b=x=null}}else y=_=0;if(s){w=s*Math.cos(d-E),M=s*Math.sin(d-E),T=s*Math.cos(c+E),k=s*Math.sin(c+E);var L=Math.abs(c-d+2*E)<=Se?0:1;if(E&&qo(w,M,T,k)===1-h^L){var O=(c+d)/2;w=s*Math.cos(O),M=s*Math.sin(O),T=k=null}}else w=M=0;if(f>Ae&&(p=Math.min(Math.abs(u-s)/2,+n.apply(this,arguments)))>.001){m=s0?0:1}function Vo(e,t,n,r,i){var a=e[0]-t[0],o=e[1]-t[1],s=(i?r:-r)/Math.sqrt(a*a+o*o),l=s*o,u=-s*a,c=e[0]+l,d=e[1]+u,f=t[0]+l,h=t[1]+u,p=(c+f)/2,m=(d+h)/2,g=f-c,v=h-d,y=g*g+v*v,_=n-r,b=c*h-f*d,x=(v<0?-1:1)*Math.sqrt(Math.max(0,_*_*y-b*b)),w=(b*v-g*x)/y,M=(-b*g-v*x)/y,T=(b*v+g*x)/y,k=(-b*g+v*x)/y,E=w-p,A=M-m,C=T-p,S=k-m;return E*E+A*A>C*C+S*S&&(w=T,M=k),[[w-l,M-u],[w*n/_,M*n/_]]}function Go(e){var t=si,n=li,r=Qn,i=Wo,a=i.key,o=.7;function s(a){var s,l=[],u=[],c=-1,d=a.length,f=bt(t),h=bt(n);function p(){l.push("M",i(e(u),o))}for(;++c1&&i.push("H",r[0]);return i.join("")},"step-before":Ko,"step-after":Zo,basis:es,"basis-open":function(e){if(e.length<4)return Wo(e);var t,n=[],r=-1,i=e.length,a=[0],o=[0];for(;++r<3;)t=e[r],a.push(t[0]),o.push(t[1]);n.push(ts(is,a)+","+ts(is,o)),--r;for(;++r9&&(i=3*t/Math.sqrt(i),o[s]=i*n,o[s+1]=i*r));s=-1;for(;++s<=l;)i=(e[Math.min(l,s+1)][0]-e[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}(e))}});function Wo(e){return e.length>1?e.join("L"):e+"Z"}function Xo(e){return e.join("L")+"Z"}function Ko(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t1){s=t[1],a=e[l],l++,r+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(a[0]-s[0])+","+(a[1]-s[1])+","+a[0]+","+a[1];for(var u=2;uSe)+",1 "+t}function l(e,t,n,r){return"Q 0,0 "+r}return a.radius=function(e){return arguments.length?(n=bt(e),a):n},a.source=function(t){return arguments.length?(e=bt(t),a):e},a.target=function(e){return arguments.length?(t=bt(e),a):t},a.startAngle=function(e){return arguments.length?(r=bt(e),a):r},a.endAngle=function(e){return arguments.length?(i=bt(e),a):i},a},a.svg.diagonal=function(){var e=$r,t=Wr,n=cs;function r(r,i){var a=e.call(this,r,i),o=t.call(this,r,i),s=(a.y+o.y)/2,l=[a,{x:a.x,y:s},{x:o.x,y:s},o];return"M"+(l=l.map(n))[0]+"C"+l[1]+" "+l[2]+" "+l[3]}return r.source=function(t){return arguments.length?(e=bt(t),r):e},r.target=function(e){return arguments.length?(t=bt(e),r):t},r.projection=function(e){return arguments.length?(n=e,r):n},r},a.svg.diagonal.radial=function(){var e=a.svg.diagonal(),t=cs,n=e.projection;return e.projection=function(e){return arguments.length?n(function(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]-Oe;return[n*Math.cos(r),n*Math.sin(r)]}}(t=e)):t},e},a.svg.symbol=function(){var e=fs,t=ds;function n(n,r){return(ps.get(e.call(this,n,r))||hs)(t.call(this,n,r))}return n.type=function(t){return arguments.length?(e=bt(t),n):e},n.size=function(e){return arguments.length?(t=bt(e),n):t},n};var ps=a.map({circle:hs,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*gs)),n=t*gs;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/ms),n=t*ms/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/ms),n=t*ms/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});a.svg.symbolTypes=ps.keys();var ms=Math.sqrt(3),gs=Math.tan(30*Ne);Z.transition=function(e){for(var t,n,r=bs||++Ms,i=Es(e),a=[],o=xs||{time:Date.now(),ease:ca,delay:0,duration:250},s=-1,l=this.length;++s0;)u[--f].call(e,o);if(a>=1)return d.event&&d.event.end.call(e,e.__data__,t),--c.count?delete c[r]:delete e[n],1}d||(a=i.time,o=Ct(function(e){var t=d.delay;if(o.t=t+a,t<=e)return f(e-t);o.c=f},0,a),d=c[r]={tween:new T,time:a,timer:o,delay:i.delay,duration:i.duration,ease:i.ease,index:t},i=null,++c.count)}ws.call=Z.call,ws.empty=Z.empty,ws.node=Z.node,ws.size=Z.size,a.transition=function(e,t){return e&&e.transition?bs?e.transition(t):e:a.selection().transition(e)},a.transition.prototype=ws,ws.select=function(e){var t,n,r,i=this.id,a=this.namespace,o=[];e=J(e);for(var s=-1,l=this.length;++srect,.s>rect").attr("width",o[1]-o[0])}function m(e){e.select(".extent").attr("y",s[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",s[1]-s[0])}function g(){var d,g,v=this,y=a.select(a.event.target),_=n.of(v,arguments),b=a.select(v),x=y.datum(),w=!/^(n|s)$/.test(x)&&r,M=!/^(e|w)$/.test(x)&&i,T=y.classed("extent"),k=Me(v),E=a.mouse(v),A=a.select(c(v)).on("keydown.brush",function(){32==a.event.keyCode&&(T||(d=null,E[0]-=o[1],E[1]-=s[1],T=2),U())}).on("keyup.brush",function(){32==a.event.keyCode&&2==T&&(E[0]+=o[1],E[1]+=s[1],T=0,U())});if(a.event.changedTouches?A.on("touchmove.brush",D).on("touchend.brush",O):A.on("mousemove.brush",D).on("mouseup.brush",O),b.interrupt().selectAll("*").interrupt(),T)E[0]=o[0]-E[0],E[1]=s[0]-E[1];else if(x){var C=+/w$/.test(x),S=+/^n/.test(x);g=[o[1-C]-E[0],s[1-S]-E[1]],E[0]=o[C],E[1]=s[S]}else a.event.altKey&&(d=E.slice());function D(){var e=a.mouse(v),t=!1;g&&(e[0]+=g[0],e[1]+=g[1]),T||(a.event.altKey?(d||(d=[(o[0]+o[1])/2,(s[0]+s[1])/2]),E[0]=o[+(e[0]1?{floor:function(t){for(;s(t=e.floor(t));)t=zs(t-1);return t},ceil:function(t){for(;s(t=e.ceil(t));)t=zs(+t+1);return t}}:e))},r.ticks=function(e,t){var n=go(r.domain()),a=null==e?i(n,10):"number"==typeof e?i(n,e):!e.range&&[{range:e},t];return a&&(e=a[0],t=a[1]),e.range(n[0],zs(+n[1]+1),t<1?1:t)},r.tickFormat=function(){return n},r.copy=function(){return Bs(e.copy(),t,n)},Mo(r,e)}function zs(e){return new Date(e)}Is.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Rs:Ps,Rs.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},Rs.toString=Ps.toString,Bt.second=Ut(function(e){return new zt(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))},function(e){return e.getSeconds()}),Bt.seconds=Bt.second.range,Bt.seconds.utc=Bt.second.utc.range,Bt.minute=Ut(function(e){return new zt(6e4*Math.floor(e/6e4))},function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))},function(e){return e.getMinutes()}),Bt.minutes=Bt.minute.range,Bt.minutes.utc=Bt.minute.utc.range,Bt.hour=Ut(function(e){var t=e.getTimezoneOffset()/60;return new zt(36e5*(Math.floor(e/36e5-t)+t))},function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))},function(e){return e.getHours()}),Bt.hours=Bt.hour.range,Bt.hours.utc=Bt.hour.utc.range,Bt.month=Ut(function(e){return(e=Bt.day(e)).setDate(1),e},function(e,t){e.setMonth(e.getMonth()+t)},function(e){return e.getMonth()}),Bt.months=Bt.month.range,Bt.months.utc=Bt.month.utc.range;var js=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Ys=[[Bt.second,1],[Bt.second,5],[Bt.second,15],[Bt.second,30],[Bt.minute,1],[Bt.minute,5],[Bt.minute,15],[Bt.minute,30],[Bt.hour,1],[Bt.hour,3],[Bt.hour,6],[Bt.hour,12],[Bt.day,1],[Bt.day,2],[Bt.week,1],[Bt.month,1],[Bt.month,3],[Bt.year,1]],Us=Is.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",Qn]]),Hs={range:function(e,t,n){return a.range(Math.ceil(e/n)*n,+t,n).map(zs)},floor:F,ceil:F};Ys.year=Bt.year,Bt.scale=function(){return Bs(a.scale.linear(),Ys,Us)};var qs=Ys.map(function(e){return[e[0].utc,e[1]]}),Vs=Fs.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",Qn]]);function Gs(e){return JSON.parse(e.responseText)}function $s(e){var t=l.createRange();return t.selectNode(l.body),t.createContextualFragment(e.responseText)}qs.year=Bt.year.utc,Bt.scale.utc=function(){return Bs(a.scale.linear(),qs,Vs)},a.text=xt(function(e){return e.responseText}),a.json=function(e,t){return wt(e,"application/json",Gs,t)},a.html=function(e,t){return wt(e,"text/html",$s,t)},a.xml=xt(function(e){return e.responseXML}),this.d3=a,void 0===(i="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=i)}()},function(e,t,n){"use strict";var r=n(34),i=n(10),a=e.exports={},o=n(37);a.defaults=o.defaults;var s=a.defaultLine=o.defaultLine;a.lightLine=o.lightLine;var l=a.background=o.background;function u(e){if(i(e)||"string"!=typeof e)return e;var t=e.trim();if("rgb"!==t.substr(0,3))return e;var n=t.match(/^rgba?\s*\(([^()]*)\)$/);if(!n)return e;var r=n[1].trim().split(/\s*[\s,]\s*/),a="a"===t.charAt(3)&&4===r.length;if(!a&&3!==r.length)return e;for(var o=0;o=0))return e;if(3===o)r[o]>1&&(r[o]=1);else if(r[o]>=1)return e}var s=Math.round(255*r[0])+", "+Math.round(255*r[1])+", "+Math.round(255*r[2]);return a?"rgba("+s+", "+r[3]+")":"rgb("+s+")"}a.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},a.rgb=function(e){return a.tinyRGB(r(e))},a.opacity=function(e){return e?r(e).getAlpha():0},a.addOpacity=function(e,t){var n=r(e).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+t+")"},a.combine=function(e,t){var n=r(e).toRgb();if(1===n.a)return r(e).toRgbString();var i=r(t||l).toRgb(),a=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},o={r:a.r*(1-n.a)+n.r*n.a,g:a.g*(1-n.a)+n.g*n.a,b:a.b*(1-n.a)+n.b*n.a};return r(o).toRgbString()},a.contrast=function(e,t,n){var i=r(e);return 1!==i.getAlpha()&&(i=r(a.combine(e,l))),(i.isDark()?t?i.lighten(t):l:n?i.darken(n):s).toString()},a.stroke=function(e,t){var n=r(t);e.style({stroke:a.tinyRGB(n),"stroke-opacity":n.getAlpha()})},a.fill=function(e,t){var n=r(t);e.style({fill:a.tinyRGB(n),"fill-opacity":n.getAlpha()})},a.clean=function(e){if(e&&"object"==typeof e){var t,n,r,i,o=Object.keys(e);for(t=0;tt?1:e>=t?0:NaN},i=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return r(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[a],n)<0?r=a+1:i=a}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[a],n)>0?i=a:r=a+1}return r}}};var a=i(r),o=a.right,s=a.left,l=o,u=function(e,t){null==t&&(t=c);for(var n=0,r=e.length-1,i=e[0],a=new Array(r<0?0:r);ne?1:t>=e?0:NaN},h=function(e){return null===e?NaN:+e},p=function(e,t){var n,r,i=e.length,a=0,o=-1,s=0,l=0;if(null==t)for(;++o1)return l/(a-1)},m=function(e,t){var n=p(e,t);return n?Math.sqrt(n):n},g=function(e,t){var n,r,i,a=e.length,o=-1;if(null==t){for(;++o=n)for(r=i=n;++on&&(r=n),i=n)for(r=i=n;++on&&(r=n),i0)return[e];if((r=t0)for(e=Math.ceil(e/o),t=Math.floor(t/o),a=new Array(i=Math.ceil(t-e+1));++s=0?(a>=M?10:a>=T?5:a>=k?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=M?10:a>=T?5:a>=k?2:1)}function C(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=M?i*=10:a>=T?i*=5:a>=k&&(i*=2),td;)f.pop(),--h;var p,m=new Array(h+1);for(i=0;i<=h;++i)(p=m[i]=[]).x0=i>0?f[i-1]:c,p.x1=i=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}},O=function(e,t,n){return e=_.call(e,h).sort(r),Math.ceil((n-t)/(2*(L(e,.75)-L(e,.25))*Math.pow(e.length,-1/3)))},N=function(e,t,n){return Math.ceil((n-t)/(3.5*m(e)*Math.pow(e.length,-1/3)))},I=function(e,t){var n,r,i=e.length,a=-1;if(null==t){for(;++a=n)for(r=n;++ar&&(r=n)}else for(;++a=n)for(r=n;++ar&&(r=n);return r},F=function(e,t){var n,r=e.length,i=r,a=-1,o=0;if(null==t)for(;++a=0;)for(t=(r=e[i]).length;--t>=0;)n[--o]=r[t];return n},B=function(e,t){var n,r,i=e.length,a=-1;if(null==t){for(;++a=n)for(r=n;++an&&(r=n)}else for(;++a=n)for(r=n;++an&&(r=n);return r},z=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},j=function(e,t){if(n=e.length){var n,i,a=0,o=0,s=e[o];for(null==t&&(t=r);++a2e-6||((n-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},k.saveRangeInitial=function(e,t){for(var n=k.list(e,"",!0),r=!1,i=0;i.3*f||c(r)||c(a))){var h=n.dtick/2;e+=e+h.8){var o=Number(n.substr(1));a.exactYears>.8&&o%12==0?e=k.tickIncrement(e,"M6","reverse")+1.5*v:a.exactMonths>.8?e=k.tickIncrement(e,"M1","reverse")+15.5*v:e-=v/2;var l=k.tickIncrement(e,n);if(l<=r)return l}return e}(_,e,y,u,a)),g=_,0;g<=c;)g=k.tickIncrement(g,y,!1,a),0;return{start:t.c2r(_,0,a),end:t.c2r(g,0,a),size:y,_dataSpan:c-u}},k.prepTicks=function(e){var t=s.simpleMap(e.range,e.r2l);if("auto"===e.tickmode||!e.dtick){var n,r=e.nticks;r||("category"===e.type||"multicategory"===e.type?(n=e.tickfont?1.2*(e.tickfont.size||12):15,r=e._length/n):(n="y"===e._id.charAt(0)?40:80,r=s.constrain(e._length/n,4,9)+1),"radialaxis"===e._name&&(r*=2)),"array"===e.tickmode&&(r*=100),k.autoTicks(e,Math.abs(t[1]-t[0])/r),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}e.tick0||(e.tick0="date"===e.type?"2000-01-01":0),"date"===e.type&&e.dtick<.1&&(e.dtick=.1),j(e)},k.calcTicks=function(e){k.prepTicks(e);var t=s.simpleMap(e.range,e.r2l);if("array"===e.tickmode)return function(e){var t=e.tickvals,n=e.ticktext,r=new Array(t.length),i=s.simpleMap(e.range,e.r2l),a=1.0001*i[0]-1e-4*i[1],o=1.0001*i[1]-1e-4*i[0],l=Math.min(a,o),u=Math.max(a,o),c=0;Array.isArray(n)||(n=[]);var d="category"===e.type?e.d2l_noadd:e.d2l;"log"===e.type&&"L"!==String(e.dtick).charAt(0)&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(var f=0;fl&&h=r:u<=r)&&!(a.length>l||u===o);u=k.tickIncrement(u,e.dtick,i,e.calendar))o=u,a.push(u);re(e)&&360===Math.abs(t[1]-t[0])&&a.pop(),e._tmax=a[a.length-1],e._prevDateHead="",e._inCalcTicks=!0;for(var c=new Array(a.length),d=0;d10||"01-01"!==r.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12==0?"y":"m";else if(t>=v&&a<=10||t>=15*v)e._tickround="d";else if(t>=_&&a<=16||t>=y)e._tickround="M";else if(t>=b&&a<=19||t>=_)e._tickround="S";else{var o=e.l2r(n+t).replace(/^-/,"").length;e._tickround=Math.max(a,o)-20,e._tickround<0&&(e._tickround=4)}}else if(i(t)||"L"===t.charAt(0)){var s=e.range.map(e.r2d||Number);i(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),u=Math.floor(Math.log(l)/Math.LN10+.01);Math.abs(u)>3&&(H(e.exponentformat)&&!q(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}function Y(e,t,n){var r=e.tickfont||{};return{x:t,dx:0,dy:0,text:n||"",fontSize:r.size,font:r.family,fontColor:r.color}}k.autoTicks=function(e,t){var n;function r(e){return Math.pow(e,Math.floor(Math.log(t)/Math.LN10))}if("date"===e.type){e.tick0=s.dateTick0(e.calendar);var a=2*t;a>m?(t/=m,n=r(10),e.dtick="M"+12*z(t,n,O)):a>g?(t/=g,e.dtick="M"+z(t,1,N)):a>v?(e.dtick=z(t,v,F),e.tick0=s.dateTick0(e.calendar,!0)):a>y?e.dtick=z(t,y,N):a>_?e.dtick=z(t,_,I):a>b?e.dtick=z(t,b,I):(n=r(10),e.dtick=z(t,n,O))}else if("log"===e.type){e.tick0=0;var o=s.simpleMap(e.range,e.r2l);if(t>.7)e.dtick=Math.ceil(t);else if(Math.abs(o[1]-o[0])<1){var l=1.5*Math.abs((o[1]-o[0])/t);t=Math.abs(Math.pow(10,o[1])-Math.pow(10,o[0]))/l,n=r(10),e.dtick="L"+z(t,n,O)}else e.dtick=t>.3?"D2":"D1"}else"category"===e.type||"multicategory"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):re(e)?(e.tick0=0,n=1,e.dtick=z(t,n,B)):(e.tick0=0,n=r(10),e.dtick=z(t,n,O));if(0===e.dtick&&(e.dtick=1),!i(e.dtick)&&"string"!=typeof e.dtick){var u=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(u)}},k.tickIncrement=function(e,t,n,a){var o=n?-1:1;if(i(t))return e+o*t;var l=t.charAt(0),u=o*Number(t.substr(1));if("M"===l)return s.incrementMonth(e,u,a);if("L"===l)return Math.log(Math.pow(10,e)+u)/Math.LN10;if("D"===l){var c="D2"===t?R:P,d=e+.01*o,f=s.roundUp(s.mod(d,1),c,n);return Math.floor(d)+Math.log(r.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(t)},k.tickFirst=function(e){var t=e.r2l||Number,n=s.simpleMap(e.range,t),a=n[1]"+l,e._prevDateHead=l));t.text=u}(e,a,n,l):"log"===u?function(e,t,n,r,a){var o=e.dtick,l=t.x,u=e.tickformat,c="string"==typeof o&&o.charAt(0);"never"===a&&(a="");r&&"L"!==c&&(o="L3",c="L");if(u||"L"===c)t.text=V(Math.pow(10,l),e,a,r);else if(i(o)||"D"===c&&s.mod(l+.01,1)<.1){var d=Math.round(l),f=Math.abs(d),h=e.exponentformat;"power"===h||H(h)&&q(d)?(t.text=0===d?1:1===d?"10":"10"+(d>1?"":x)+f+"",t.fontSize*=1.25):("e"===h||"E"===h)&&f>2?t.text="1"+h+(d>0?"+":x)+f:(t.text=V(Math.pow(10,l),e,"","fakehover"),"D1"===o&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6))}else{if("D"!==c)throw"unrecognized dtick "+String(o);t.text=String(Math.round(Math.pow(10,s.mod(l,1)))),t.fontSize*=.75}if("D1"===e.dtick){var p=String(t.text).charAt(0);"0"!==p&&"1"!==p||("y"===e._id.charAt(0)?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(l<0?.5:.25)))}}(e,a,0,l,p):"category"===u?function(e,t){var n=e._categories[Math.round(t.x)];void 0===n&&(n="");t.text=String(n)}(e,a):"multicategory"===u?function(e,t,n){var r=Math.round(t.x),i=e._categories[r]||[],a=void 0===i[1]?"":String(i[1]),o=void 0===i[0]?"":String(i[0]);n?t.text=o+" - "+a:(t.text=a,t.text2=o)}(e,a,n):re(e)?function(e,t,n,r,i){if("radians"!==e.thetaunit||n)t.text=V(t.x,e,i,r);else{var a=t.x/180;if(0===a)t.text="0";else{var o=function(e){function t(e,t){return Math.abs(e-t)<=1e-6}var n=function(e){var n=1;for(;!t(Math.round(e*n)/n,e);)n*=10;return n}(e),r=e*n,i=Math.abs(function e(n,r){return t(r,0)?n:e(r,n%r)}(r,n));return[Math.round(r/i),Math.round(n/i)]}(a);if(o[1]>=100)t.text=V(s.deg2rad(t.x),e,i,r);else{var l=t.x<0;1===o[1]?1===o[0]?t.text="π":t.text=o[0]+"π":t.text=["",o[0],"","⁄","",o[1],"","π"].join(""),l&&(t.text=x+t.text)}}}}(e,a,n,l,p):function(e,t,n,r,i){"never"===i?i="":"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide");t.text=V(t.x,e,i,r)}(e,a,0,l,p),e.tickprefix&&!h(e.showtickprefix)&&(a.text=e.tickprefix+a.text),e.ticksuffix&&!h(e.showticksuffix)&&(a.text+=e.ticksuffix),"boundaries"===e.tickson||e.showdividers){var m=function(t){var n=e.l2p(t);return n>=0&&n<=e._length?t:null};a.xbnd=[m(a.x-.5),m(a.x+e.dtick-.5)]}return a},k.hoverLabelText=function(e,t,n){if(n!==w&&n!==t)return k.hoverLabelText(e,t)+" - "+k.hoverLabelText(e,n);var r="log"===e.type&&t<=0,i=k.tickText(e,e.c2l(r?-t:t),"hover").text;return r?0===t?"0":x+i:i};var U=["f","p","n","μ","m","","k","M","G","T"];function H(e){return"SI"===e||"B"===e}function q(e){return e>14||e<-15}function V(e,t,n,r){var a=e<0,o=t._tickround,l=n||t.exponentformat||"B",u=t._tickexponent,c=k.getTickFormat(t),d=t.separatethousands;if(r){var f={exponentformat:l,dtick:"none"===t.showexponent?t.dtick:i(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};j(f),o=(Number(f._tickround)||0)+4,u=f._tickexponent,t.hoverformat&&(c=t.hoverformat)}if(c)return t._numFormat(c)(e).replace(/-/g,x);var h,p=Math.pow(10,-o)/2;if("none"===l&&(u=0),(e=Math.abs(e))"+h+"":"B"===l&&9===u?e+="B":H(l)&&(e+=U[u/3+5]));return a?x+e:e}function G(e,t){for(var n=[],r={},i=0;i1&&n=0,a=c(e,t[1])<=0;return(n||i)&&(r||a)}if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":for(t=0;t=o(i)))){n=r;break}break;case"log":for(t=0;t0&&(n[i]+=l),t.title.text!==f._dfltTitle[p]&&(n[i]+=t.title.font.size),"x"===p&&u.width>0){var d=u.right-(t._offset+t._length);d>0&&(n.x=1,n.r=d);var h=t._offset-u.left;h>0&&(n.x=0,n.l=h)}else if("y"===p&&u.height>0){var g=u.bottom-(t._offset+t._length);g>0&&(n.y=0,n.b=g);var v=t._offset-u.top;v>0&&(n.y=1,n.t=v)}}a.autoMargin(e,J(t),n)}),n.skipTitle||ee&&t._boundingBox&&"bottom"===t.side||q.push(function(){return function(e,t){var n,r=e._fullLayout,i=t._id,a=i.charAt(0),o=t.title.font.size;if("multicategory"===t.type)n=t._labelLength;else{n=10+1.5*o+(t.linewidth?t.linewidth-1:0)}var s,l,c,f,h=X(e,t);"x"===a?(l=t._offset+t._length/2,c="top"===t.side?-n-o*(t.showticklabels?1:0):n+o*(t.showticklabels?1.5:.5),c+=h):(c=t._offset+t._length/2,l="right"===t.side?n+o*(t.showticklabels?1:.5):-n-o*(t.showticklabels?.5:0),l+=h,s={rotate:"-90",offset:0});if("multicategory"!==t.type){var p=t._selections[t._id+"tick"];if(f={selection:p,side:t.side},p&&p.node()&&p.node().parentNode){var m=d.getTranslate(p.node().parentNode);f.offsetLeft=m.x,f.offsetTop=m.y}}return u.draw(e,i+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[a],avoid:f,transform:s,attributes:{x:l,y:c,"text-anchor":"middle"}})}(e,t)}),s.syncOrAsync(q)}function te(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.max(e[1],t[1])}},k.getTickSigns=function(e){var t=e._id.charAt(0),n={x:"top",y:"right"}[t],r=e.side===n?1:-1,i=[-1,1,r,-r];return"inside"!==e.ticks==("x"===t)&&(i=i.map(function(e){return-e})),i},k.makeTransFn=function(e){var t=e._id.charAt(0),n=e._offset;return"x"===t?function(t){return"translate("+(n+e.l2p(t.x))+",0)"}:function(t){return"translate(0,"+(n+e.l2p(t.x))+")"}},k.makeTickPath=function(e,t,n,r){r=void 0!==r?r:e.ticklen;var i=e._id.charAt(0),a=(e.linewidth||1)/2;return"x"===i?"M0,"+(t+a*n)+"v"+r*n:"M"+(t+a*n)+",0h"+r*n},k.makeLabelFns=function(e,t,n){var r=e._id.charAt(0),a="boundaries"!==e.tickson&&"outside"===e.ticks,o=0,l=0;if(a&&(o+=e.ticklen),n&&"outside"===e.ticks){var u=s.deg2rad(n);o=e.ticklen*Math.cos(u)+1,l=e.ticklen*Math.sin(u)}e.showticklabels&&(a||e.showline)&&(o+=.2*e.tickfont.size);var c,d,f,h,p={labelStandoff:o+=(e.linewidth||1)/2,labelShift:l};return"x"===r?(h="bottom"===e.side?1:-1,c=l*h,d=t+o*h,f="bottom"===e.side?1:-.2,p.xFn=function(e){return e.dx+c},p.yFn=function(e){return e.dy+d+e.fontSize*f},p.anchorFn=function(e,t){return i(t)&&0!==t&&180!==t?t*h<0?"end":"start":"middle"},p.heightFn=function(t,n,r){return n<-60||n>60?-.5*r:"top"===e.side?-r:0}):"y"===r&&(h="right"===e.side?1:-1,c=o,d=-l*h,f=90===Math.abs(e.tickangle)?.5:0,p.xFn=function(e){return e.dx+t+(c+e.fontSize*f)*h},p.yFn=function(e){return e.dy+d+e.fontSize*M},p.anchorFn=function(t,n){return i(n)&&90===Math.abs(n)?"middle":"right"===e.side?"start":"end"},p.heightFn=function(t,n,r){return(n*="left"===e.side?1:-1)<-30?-r:n<30?-.5*r:0}),p},k.drawTicks=function(e,t,n){n=n||{};var r=t._id+"tick",i=n.layer.selectAll("path."+r).data(t.ticks?n.vals:[],W);i.exit().remove(),i.enter().append("path").classed(r,1).classed("ticks",1).classed("crisp",!1!==n.crisp).call(c.stroke,t.tickcolor).style("stroke-width",d.crispRound(e,t.tickwidth,1)+"px").attr("d",n.path),i.attr("transform",n.transFn)},k.drawGrid=function(e,t,n){n=n||{};var r=t._id+"grid",i=n.vals,a=n.counterAxis;if(!1===t.showgrid)i=[];else if(a&&k.shouldShowZeroLine(e,t,a))for(var o="array"===t.tickmode,s=0;s1)for(r=1;r=200?_:"")}g.symbolNumber=function(e){if("string"==typeof e){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),(e=g.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=y||e>=400?0:Math.floor(Math.max(e,0))};var x={x1:1,x2:0,y1:0,y2:0},w={x1:0,x2:0,y1:1,y2:0},M=r.format("~.1f"),T={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:x},horizontalreversed:{node:"linearGradient",attrs:x,reversed:!0},vertical:{node:"linearGradient",attrs:w},verticalreversed:{node:"linearGradient",attrs:w,reversed:!0}};g.gradient=function(e,t,n,i,o,l){for(var c=o.length,d=T[i],f=new Array(c),h=0;h=100,t.attr("d",b(c,l))}var d,f,h,p=!1;if(e.so)h=o.outlierwidth,f=o.outliercolor,d=a.outliercolor;else{var m=(o||{}).width;h=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,f="mlc"in e?e.mlcc=r.lineScale(e.mlc):u.isArrayOrTypedArray(o.color)?s.defaultLine:o.color,u.isArrayOrTypedArray(a.color)&&(d=s.defaultLine,p=!0),d="mc"in e?e.mcc=r.markerScale(e.mc):a.color||"rgba(0,0,0,0)",r.selectedColorFn&&(d=r.selectedColorFn(e))}if(e.om)t.call(s.stroke,d).style({"stroke-width":(h||1)+"px",fill:"none"});else{t.style("stroke-width",h+"px");var v=a.gradient,y=e.mgt;if(y?p=!0:y=v&&v.type,Array.isArray(y)&&(y=y[0],T[y]||(y=0)),y&&"none"!==y){var _=e.mgc;_?p=!0:_=v.color;var x=n.uid;p&&(x+="-"+e.i),g.gradient(t,i,x,y,[[0,_],[1,d]],"fill")}else s.fill(t,d);h&&s.stroke(t,f)}},g.makePointStyleFns=function(e){var t={},n=e.marker;return t.markerScale=g.tryColorscale(n,""),t.lineScale=g.tryColorscale(n,"line"),o.traceIs(e,"symbols")&&(t.ms2mrc=p.isBubble(e)?m(e):function(){return(n.size||6)/2}),e.selectedpoints&&u.extendFlat(t,g.makeSelectedPointStyleFns(e)),t},g.makeSelectedPointStyleFns=function(e){var t={},n=e.selected||{},r=e.unselected||{},i=e.marker||{},a=n.marker||{},s=r.marker||{},l=i.opacity,c=a.opacity,d=s.opacity,f=void 0!==c,p=void 0!==d;(u.isArrayOrTypedArray(l)||f||p)&&(t.selectedOpacityFn=function(e){var t=void 0===e.mo?i.opacity:e.mo;return e.selected?f?c:t:p?d:h*t});var m=i.color,g=a.color,v=s.color;(g||v)&&(t.selectedColorFn=function(e){var t=e.mcc||m;return e.selected?g||t:v||t});var y=i.size,_=a.size,b=s.size,x=void 0!==_,w=void 0!==b;return o.traceIs(e,"symbols")&&(x||w)&&(t.selectedSizeFn=function(e){var t=e.mrc||y/2;return e.selected?x?_/2:t:w?b/2:t}),t},g.makeSelectedTextStyleFns=function(e){var t={},n=e.selected||{},r=e.unselected||{},i=e.textfont||{},a=n.textfont||{},o=r.textfont||{},l=i.color,u=a.color,c=o.color;return t.selectedTextColorFn=function(e){var t=e.tc||l;return e.selected?u||t:c||(u?t:s.addOpacity(t,h))},t},g.selectedPointStyle=function(e,t){if(e.size()&&t.selectedpoints){var n=g.makeSelectedPointStyleFns(t),i=t.marker||{},a=[];n.selectedOpacityFn&&a.push(function(e,t){e.style("opacity",n.selectedOpacityFn(t))}),n.selectedColorFn&&a.push(function(e,t){s.fill(e,n.selectedColorFn(t))}),n.selectedSizeFn&&a.push(function(e,t){var r=t.mx||i.symbol||0,a=n.selectedSizeFn(t);e.attr("d",b(g.symbolNumber(r),a)),t.mrc2=a}),a.length&&e.each(function(e){for(var t=r.select(this),n=0;n0?n:0}g.textPointStyle=function(e,t,n){if(e.size()){var i;if(t.selectedpoints){var a=g.makeSelectedTextStyleFns(t);i=a.selectedTextColorFn}e.each(function(e){var a=r.select(this),o=u.extractOption(e,t,"tx","text");if(o||0===o){var s=e.tp||t.textposition,l=A(e,t),d=i?i(e):e.tc||t.textfont.color;a.call(g.font,e.tf||t.textfont.family,l,d).text(o).call(c.convertToTspans,n).call(E,s,l,e.mrc)}else a.remove()})}},g.selectedTextStyle=function(e,t){if(e.size()&&t.selectedpoints){var n=g.makeSelectedTextStyleFns(t);e.each(function(e){var i=r.select(this),a=n.selectedTextColorFn(e),o=e.tp||t.textposition,l=A(e,t);s.fill(i,a),E(i,o,l,e.mrc2||e.mrc)})}};var C=.5;function S(e,t,n,i){var a=e[0]-t[0],o=e[1]-t[1],s=n[0]-t[0],l=n[1]-t[1],u=Math.pow(a*a+o*o,C/2),c=Math.pow(s*s+l*l,C/2),d=(c*c*a-u*u*s)*i,f=(c*c*o-u*u*l)*i,h=3*c*(u+c),p=3*u*(u+c);return[[r.round(t[0]+(h&&d/h),2),r.round(t[1]+(h&&f/h),2)],[r.round(t[0]-(p&&d/p),2),r.round(t[1]-(p&&f/p),2)]]}g.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var n,r="M"+e[0],i=[];for(n=1;n=1e4&&(g.savedBBoxes={},O=0),n&&(g.savedBBoxes[n]=v),O++,u.extendFlat({},v)},g.setClipUrl=function(e,t,n){e.attr("clip-path",I(t,n))},g.getTranslate=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(e,t,n){return[t,n].join(" ")}).split(" ");return{x:+t[0]||0,y:+t[1]||0}},g.setTranslate=function(e,t,n){var r=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",a=e[r]("transform")||"";return t=t||0,n=n||0,a=a.replace(/(\btranslate\(.*?\);?)/,"").trim(),a=(a+=" translate("+t+", "+n+")").trim(),e[i]("transform",a),a},g.getScale=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(e,t,n){return[t,n].join(" ")}).split(" ");return{x:+t[0]||1,y:+t[1]||1}},g.setScale=function(e,t,n){var r=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",a=e[r]("transform")||"";return t=t||1,n=n||1,a=a.replace(/(\bscale\(.*?\);?)/,"").trim(),a=(a+=" scale("+t+", "+n+")").trim(),e[i]("transform",a),a};var F=/\s*sc.*/;g.setPointGroupScale=function(e,t,n){if(t=t||1,n=n||1,e){var r=1===t&&1===n?"":" scale("+t+","+n+")";e.each(function(){var e=(this.getAttribute("transform")||"").replace(F,"");e=(e+=r).trim(),this.setAttribute("transform",e)})}};var P=/translate\([^)]*\)\s*$/;g.setTextPointsScale=function(e,t,n){e&&e.each(function(){var e,i=r.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),l=(i.attr("transform")||"").match(P);e=1===t&&1===n?[]:["translate("+o+","+s+")","scale("+t+","+n+")","translate("+-o+","+-s+")"],l&&e.push(l),i.attr("transform",e.join(" "))}})}},function(e,t,n){var r,i,a,o,s,l,u,c,d,f,h,p,m,g,v,y,_,b;({head:g,isUndefined:b,indexOf:v,isNumber:y,isObject:_}=n(3)),r=n(192),({TNull:c,TUndefined:m,TBoolean:o,TString:p,TNumber:d,TFunction:u,TObject:f,TArray:a,TArguments:i,TDate:s,TRegExp:h,TError:l}=n(193)),e.exports={isDefined:function(e){return!b(e)},isTruthy:function(e){return!!e},isFalsy:function(e){return!e},isNumber:function(e){return y(e)||e instanceof r},isObject:function(e){return _(e)&&!(e instanceof r)},negative:function(e){return!e},always:function(){return!0},never:function(){return!1},copy:function(e){return e.slice(0)},remove:function(e,t){var n;return-1<(n=v(e,t))?g(e.splice(n,1)):void 0},words:function(e){return e.split(/\s+/)},repeat:function(e,t){var n,r,i;for(n=[],r=0,i=e;0<=i?ri;0<=i?++r:--r)n.push(t);return n},typeOf:function(e){var t;if(t=Object.prototype.toString.call(e),null===e)return c;if(void 0===e)return m;if(!0===e||!1===e||"[object Boolean]"===t)return o;switch(t){case"[object String]":return p;case"[object Number]":return d;case"[object Function]":return u;case"[object Object]":return f;case"[object Array]":return a;case"[object Arguments]":return i;case"[object Date]":return s;case"[object RegExp]":return h;case"[object Error]":return l;default:return t}},deepClone:function(e){return JSON.parse(JSON.stringify(e))},stringify:JSON.stringify}},function(e,t,n){"use strict";e.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEAVGYEAR:315576e5,ONEAVGMONTH:26298e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"−"}},function(e,t,n){"use strict";var r=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e};function i(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function a(){}var o="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u=/^#([0-9a-f]{3})$/,c=/^#([0-9a-f]{6})$/,d=new RegExp("^rgb\\("+[o,o,o]+"\\)$"),f=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),h=new RegExp("^rgba\\("+[o,o,o,s]+"\\)$"),p=new RegExp("^rgba\\("+[l,l,l,s]+"\\)$"),m=new RegExp("^hsl\\("+[s,l,l]+"\\)$"),g=new RegExp("^hsla\\("+[s,l,l,s]+"\\)$"),v={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(e){var t;return e=(e+"").trim().toLowerCase(),(t=u.exec(e))?new M((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=c.exec(e))?_(parseInt(t[1],16)):(t=d.exec(e))?new M(t[1],t[2],t[3],1):(t=f.exec(e))?new M(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?b(t[1],t[2],t[3],t[4]):(t=p.exec(e))?b(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?k(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?k(t[1],t[2]/100,t[3]/100,t[4]):v.hasOwnProperty(e)?_(v[e]):"transparent"===e?new M(NaN,NaN,NaN,0):null}function _(e){return new M(e>>16&255,e>>8&255,255&e,1)}function b(e,t,n,r){return r<=0&&(e=t=n=NaN),new M(e,t,n,r)}function x(e){return e instanceof a||(e=y(e)),e?new M((e=e.rgb()).r,e.g,e.b,e.opacity):new M}function w(e,t,n,r){return 1===arguments.length?x(e):new M(e,t,n,null==r?1:r)}function M(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function T(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function k(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new A(e,t,n,r)}function E(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof A)return new A(e.h,e.s,e.l,e.opacity);if(e instanceof a||(e=y(e)),!e)return new A;if(e instanceof A)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,l=o-i,u=(o+i)/2;return l?(s=t===o?(n-r)/l+6*(n0&&u<1?0:s,new A(s,l,u,e.opacity)}(e):new A(e,t,n,null==r?1:r)}function A(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function C(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}r(a,y,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),r(M,w,i(a,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new M(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new M(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+T(this.r)+T(this.g)+T(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),r(A,E,i(a,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new A(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new A(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new M(C(e>=240?e-240:e+120,i,r),C(e,i,r),C(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var S=Math.PI/180,D=180/Math.PI,L=.96422,O=1,N=.82521,I=4/29,F=6/29,P=3*F*F,R=F*F*F;function B(e){if(e instanceof Y)return new Y(e.l,e.a,e.b,e.opacity);if(e instanceof X){if(isNaN(e.h))return new Y(e.l,0,0,e.opacity);var t=e.h*S;return new Y(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof M||(e=x(e));var n,r,i=V(e.r),a=V(e.g),o=V(e.b),s=U((.2225045*i+.7168786*a+.0606169*o)/O);return i===a&&a===o?n=r=s:(n=U((.4360747*i+.3850649*a+.1430804*o)/L),r=U((.0139322*i+.0971045*a+.7141733*o)/N)),new Y(116*s-16,500*(n-s),200*(s-r),e.opacity)}function z(e,t){return new Y(e,0,0,null==t?1:t)}function j(e,t,n,r){return 1===arguments.length?B(e):new Y(e,t,n,null==r?1:r)}function Y(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function U(e){return e>R?Math.pow(e,1/3):e/P+I}function H(e){return e>F?e*e*e:P*(e-I)}function q(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function V(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function G(e){if(e instanceof X)return new X(e.h,e.c,e.l,e.opacity);if(e instanceof Y||(e=B(e)),0===e.a&&0===e.b)return new X(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*D;return new X(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function $(e,t,n,r){return 1===arguments.length?G(e):new X(n,t,e,null==r?1:r)}function W(e,t,n,r){return 1===arguments.length?G(e):new X(e,t,n,null==r?1:r)}function X(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}r(Y,j,i(a,{brighter:function(e){return new Y(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Y(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new M(q(3.1338561*(t=L*H(t))-1.6168667*(e=O*H(e))-.4906146*(n=N*H(n))),q(-.9787684*t+1.9161415*e+.033454*n),q(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),r(X,W,i(a,{brighter:function(e){return new X(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new X(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return B(this).rgb()}}));var K=-.14861,Z=1.78277,J=-.29227,Q=-.90649,ee=1.97294,te=ee*Q,ne=ee*Z,re=Z*J-Q*K;function ie(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof ae)return new ae(e.h,e.s,e.l,e.opacity);e instanceof M||(e=x(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(re*r+te*t-ne*n)/(re+te-ne),a=r-i,o=(ee*(n-i)-J*a)/Q,s=Math.sqrt(o*o+a*a)/(ee*i*(1-i)),l=s?Math.atan2(o,a)*D-120:NaN;return new ae(l<0?l+360:l,s,i,e.opacity)}(e):new ae(e,t,n,null==r?1:r)}function ae(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}r(ae,ie,i(a,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new ae(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new ae(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*S,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new M(255*(t+n*(K*r+Z*i)),255*(t+n*(J*r+Q*i)),255*(t+n*(ee*r)),this.opacity)}})),n.d(t,"a",function(){return y}),n.d(t,"h",function(){return w}),n.d(t,"e",function(){return E}),n.d(t,"f",function(){return j}),n.d(t,"d",function(){return W}),n.d(t,"g",function(){return $}),n.d(t,"c",function(){return z}),n.d(t,"b",function(){return ie})},function(e,t,n){"use strict";var r=n(0),i=n(20),a="templateitemname",o={name:{valType:"string",editType:"none"}};function s(e){return e&&"string"==typeof e}function l(e){var t=e.length-1;return"s"!==e.charAt(t)&&r.warn("bad argument to arrayDefaultKey: "+e),e.substr(0,e.length-1)+"defaults"}o[a]={valType:"string",editType:"calc"},t.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=o.name,t[a]=o[a],t},t.traceTemplater=function(e){var t,n,a={};for(t in e)n=e[t],Array.isArray(n)&&n.length&&(a[t]=0);return{newTrace:function(o){var s={type:t=r.coerce(o,{},i,"type"),_template:null};if(t in a){n=e[t];var l=a[t]%n.length;a[t]++,s._template=n[l]}return s}}},t.newContainer=function(e,t,n){var i=e._template,a=i&&(i[t]||n&&i[n]);return r.isPlainObject(a)||(a=null),e[t]={_template:a}},t.arrayTemplater=function(e,t,n){var r=e._template,i=r&&r[l(t)],o=r&&r[t];Array.isArray(o)&&o.length||(o=[]);var u={};return{newItem:function(e){var t={name:e.name,_input:e},r=t[a]=e[a];if(!s(r))return t._template=i,t;for(var l=0;l=i&&(n._input||{})._templateitemname;s&&(o=i);var l,u=t+"["+o+"]";function c(){l={},s&&(l[u]={},l[u][a]=s)}function d(e,t){s?r.nestedProperty(l[u],e).set(t):l[u+"."+e]=t}function f(){var e=l;return c(),e}return c(),{modifyBase:function(e,t){l[e]=t},modifyItem:d,getUpdateObj:f,applyUpdate:function(t,n){t&&d(t,n);var i=f();for(var a in i)r.nestedProperty(e,a).set(i[a])}}}},function(e,t,n){"use strict";n.r(t);var r=n(14);function i(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}var a=function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[r],o=e[r+1],s=r>0?e[r-1]:2*a-o,l=r180||n<-180?n-360*Math.round(n/360):n):s(isNaN(e)?t:e)}function c(e){return 1==(e=+e)?d:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):s(isNaN(t)?n:t)}}function d(e,t){var n=t-e;return n?l(e,n):s(isNaN(e)?t:e)}var f=function e(t){var n=c(t);function i(e,t){var i=n((e=Object(r.h)(e)).r,(t=Object(r.h)(t)).r),a=n(e.g,t.g),o=n(e.b,t.b),s=d(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=a(t),e.b=o(t),e.opacity=s(t),e+""}}return i.gamma=e,i}(1);function h(e){return function(t){var n,i,a=t.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;na&&(i=t.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,l.push({i:o,x:y(n,r)})),a=x.lastIndex;return a180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:y(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(a.rotate,o.rotate,s,l),function(e,t,n,a){e!==t?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:y(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(a.skewX,o.skewX,s,l),function(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:y(e,n)},{i:s-2,x:y(t,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(e){for(var t,n=-1,r=l.length;++n0){for(var r=[],i=0;ir?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)},t.getAxisGroup=function(e,t){for(var n=e._axisMatchGroups,r=0;r=t.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=t._paper.attr("width")-7),n.attr(a);var o=n.select(".js-link-to-tool"),s=n.select(".js-link-spacer"),c=n.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&function(e,t){t.text("");var n=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" "+String.fromCharCode(187));if(e._context.sendData)n.on("click",function(){g.sendDataToCloud(e)});else{var r=window.location.pathname.split("/"),i=window.location.search;n.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+r[2].split(".")[0]+"/"+r[1]+i})}}(e,o),s.text(o.text()&&c.text()?" - ":"")}},g.sendDataToCloud=function(e){e.emit("plotly_beforeexport");var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL,n=r.select(e).append("div").attr("id","hiddenform").style("display","none"),i=n.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return i.append("input").attr({type:"text",name:"data"}).node().value=g.graphJson(e,!1,"keepdata"),i.node().submit(),n.remove(),e.emit("plotly_afterexport"),!1};var _=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],b=["year","month","dayMonth","dayMonthYear"];function x(e,t){var n=e._context.locale,r=!1,i={};function o(e){for(var n=!0,a=0;a1&&O.length>1){for(a.getComponentMethod("grid","sizeDefaults")(u,s),o=0;o15&&O.length>15&&0===s.shapes.length&&0===s.images.length,s._hasCartesian=s._has("cartesian"),s._hasGeo=s._has("geo"),s._hasGL3D=s._has("gl3d"),s._hasGL2D=s._has("gl2d"),s._hasTernary=s._has("ternary"),s._hasPie=s._has("pie"),g.linkSubplots(d,s,c,i),g.cleanPlot(d,s,c,i),i._zoomlayer&&!e._dragging&&i._zoomlayer.selectAll(".select-outline").remove(),function(e,t){var n,r=[];t.meta&&(n=t._meta={meta:t.meta,layout:{meta:t.meta}});for(var i=0;i0){var d=1-2*s;r=Math.round(d*r),a=Math.round(d*a)}}var f=g.layoutAttributes.width.min,h=g.layoutAttributes.height.min;r1,m=!t.height&&Math.abs(n.height-a)>1;(m||p)&&(p&&(n.width=r),m&&(n.height=a)),e._initialAutoSize||(e._initialAutoSize={width:r,height:a}),g.sanitizeMargins(n)},g.supplyLayoutModuleDefaults=function(e,t,n,r){var i,o,s,u=a.componentsRegistry,c=t._basePlotModules,d=a.subplotsRegistry.cartesian;for(i in u)(s=u[i]).includeBasePlot&&s.includeBasePlot(e,t);for(var f in c.length||c.push(d),t._has("cartesian")&&(a.getComponentMethod("grid","contentDefaults")(e,t),d.finalizeSubplots(e,t)),t._subplots)t._subplots[f].sort(l.subplotSort);for(o=0;o.5*r.width&&(n.l=n.r=0),n.b+n.t>.5*r.height&&(n.b=n.t=0);var l=void 0!==n.xl?n.xl:n.x,u=void 0!==n.xr?n.xr:n.x,c=void 0!==n.yt?n.yt:n.y,d=void 0!==n.yb?n.yb:n.y;i[t]={l:{val:l,size:n.l+o},r:{val:u,size:n.r+o},b:{val:d,size:n.b+o},t:{val:c,size:n.t+o}},a[t]=1}else delete i[t],delete a[t];r._replotting||g.doAutoMargin(e)}},g.doAutoMargin=function(e){var t=e._fullLayout;t._size||(t._size={}),k(t);var n=t._size,r=t.margin,o=l.extendFlat({},n),s=r.l,u=r.r,c=r.t,d=r.b,f=t.width,h=t.height,p=t._pushmargin,m=t._pushmarginIds;if(!1!==t.margin.autoexpand){for(var v in p)m[v]||delete p[v];for(var y in p.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:c},b:{val:0,size:d}},p){var _=p[y].l||{},b=p[y].b||{},x=_.val,w=_.size,M=b.val,T=b.size;for(var E in p){if(i(w)&&p[E].r){var A=p[E].r.val,C=p[E].r.size;if(A>x){var S=(w*A+(C-f)*x)/(A-x),D=(C*(1-x)+(w-f)*(1-A))/(A-x);S>=0&&D>=0&&f-(S+D)>0&&S+D>s+u&&(s=S,u=D)}}if(i(T)&&p[E].t){var L=p[E].t.val,O=p[E].t.size;if(L>M){var N=(T*L+(O-h)*M)/(L-M),I=(O*(1-M)+(T-h)*(1-L))/(L-M);N>=0&&I>=0&&h-(I+N)>0&&N+I>d+c&&(d=N,c=I)}}}}}if(n.l=Math.round(s),n.r=Math.round(u),n.t=Math.round(c),n.b=Math.round(d),n.p=Math.round(r.pad),n.w=Math.round(f)-n.l-n.r,n.h=Math.round(h)-n.t-n.b,!t._replotting&&g.didMarginChange(o,n))return"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1,a.call("plot",e)};var E=["l","r","t","b","p","w","h"];function A(e,t,n){var r=!1;var i=[g.previousPromises,function(){if(e._transitionData)return e._transitioning=!1,function(e){var t=Promise.resolve();if(!e)return t;for(;e.length;)t=t.then(e.shift());return t}(e._transitionData._interruptCallbacks)},n.prepareFn,g.rehover,function(){return e.emit("plotly_transitioning",[]),new Promise(function(i){e._transitioning=!0,t.duration>0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){r=!0}),n.redraw&&e._transitionData._interruptCallbacks.push(function(){return a.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var o=0,s=0;function l(){return o++,function(){var t;s++,r||s!==o||(t=i,e._transitionData&&(function(e){if(e)for(;e.length;)e.shift()}(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(n.redraw)return a.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(t)))}}n.runFn(l),setTimeout(l())})}],o=l.syncOrAsync(i,e);return o&&o.then||(o=Promise.resolve()),o.then(function(){return e})}g.didMarginChange=function(e,t){for(var n=0;n1)return!0}return!1},g.graphJson=function(e,t,n,r,i){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&g.supplyDefaults(e);var a=i?e._fullData:e.data,o=i?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(e){if("function"==typeof e)return null;if(l.isPlainObject(e)){var t,r,i={};for(t in e)if("function"!=typeof e[t]&&-1===["_","["].indexOf(t.charAt(0))){if("keepdata"===n){if("src"===t.substr(t.length-3))continue}else if("keepstream"===n){if("string"==typeof(r=e[t+"src"])&&r.indexOf(":")>0&&!l.isPlainObject(e.stream))continue}else if("keepall"!==n&&"string"==typeof(r=e[t+"src"])&&r.indexOf(":")>0)continue;i[t]=u(e[t])}return i}return Array.isArray(e)?e.map(u):l.isTypedArray(e)?l.simpleMap(e,l.identity):l.isJSDate(e)?l.ms2DateTimeLocal(+e):e}var c={data:(a||[]).map(function(e){var n=u(e);return t&&delete n.fit,n})};return t||(c.layout=u(o)),e.framework&&e.framework.isPolar&&(c=e.framework.getConfig()),s&&(c.frames=u(s)),"object"===r?c:JSON.stringify(c)},g.modifyFrames=function(e,t){var n,r,i,a=e._transitionData._frames,o=e._transitionData._frameHash;for(n=0;n=0;s--)if(o[s].enabled){n._indexToPoints=o[s]._indexToPoints;break}r&&r.calc&&(a=r.calc(e,n))}Array.isArray(a)&&a[0]||(a=[{x:c,y:c}]),a[0].t||(a[0].t={}),a[0].trace=n,p[t]=a}}for(S(u,f),i=0;i ")},T=function(e){return e.replace(/[^a-z0-9_ \(\)-]/gi,"-").trim()},m=function(e,t){return g.highlightAuto(e,[t]).value},l=function(e){return e?"NaN"===e?void 0:e.toFixed(4).replace(/\.0+$/,".0"):e},i=function(e,t,n){var r,i,a,o,s,l,u;for(u=e.data[t][t],i=0,a=o=0,s=(l=e.data).length;o=n));a=++o)a!==t&&(i+=r[t]);return parseFloat(u/(u+i)).toFixed(2).replace(/\.0+$/,".0")},r=function(e,t,n){var r,i,a,o,s,l,u;for(l=e.data[t][t],r=0,i=a=0,o=(s=e.data[t]).length;a=n));i=++a)i!==t&&(r+=u);return parseFloat(l/(l+r)).toFixed(2).replace(/\.0+$/,".0")},p=function(e,t,n){var r,i;return r=v.template("span.tooltip-text")(n),i=v.template("div.tooltip-tooltip")([t,r]),v.template(`td.${e}`)(i)},M=function(e,t){var n,a,o,s,u,c,d,f,h,m,g,y,b,x,w,M,T,E,A,C,S,D,L,O,N,I,F;if(t.columns.length<=102){for(t.columns.push({name:"Precision",type:"long",format:"%.2f",description:"Precision"}),u=t.columns.length-3,x=[],t.rowcount+=1,I=t.rowcount-2,M=t.data,d=f=0,m=M.length;fT;E=0<=T?++h:--h)(o=function(){var e,r,i,o;for(i=t.data,o=[],d=e=0,r=i.length;e1)for(var s=1;s doesnt match end tag <"+e+">. Pretending it did match.",t),n=l[l.length-1].node}else i.log("Ignoring unexpected end tag "+e+">.",t)}_.test(t)?c():(n=e,l=[{node:e}]);for(var D=t.split(v),L=0;L|>|>)/g;var d={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},f={sub:"0.3em",sup:"-0.6em"},h={sub:"-0.21em",sup:"0.42em"},p="",m=["http:","https:","mailto:","",void 0,":"],g=/(\r\n?|\n)/g,v=/(<[^<>]*>)/,y=/<(\/?)([^ >]*)(\s+(.*))?>/i,_=/
/i,b=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,x=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,w=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,M=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function T(e,t){if(!e)return null;var n=e.match(t),r=n&&(n[3]||n[4]);return r&&C(r)}var k=/(^|;)\s*color:/;t.plainText=function(e,t){for(var n=void 0!==(t=t||{}).len&&-1!==t.len?t.len:1/0,r=void 0!==t.allowedTags?t.allowedTags:["br"],i="...".length,a=e.split(v),o=[],s="",l=0,u=0;ui?o.push(c.substr(0,p-i)+"..."):o.push(c.substr(0,p));break}s=""}}return o.join("")};var E={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},A=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function C(e){return e.replace(A,function(e,t){return("#"===t.charAt(0)?function(e){if(e>1114111)return;var t=String.fromCodePoint;if(t)return t(e);var n=String.fromCharCode;return e<=65535?n(e):n(55232+(e>>10),e%1024+56320)}("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):E[t])||e})}function S(e,t,n){var r,i,a,o=n.horizontalAlign,s=n.verticalAlign||"top",l=e.node().getBoundingClientRect(),u=t.node().getBoundingClientRect();return i="bottom"===s?function(){return l.bottom-r.height}:"middle"===s?function(){return l.top+(l.height-r.height)/2}:function(){return l.top},a="right"===o?function(){return l.right-r.width}:"center"===o?function(){return l.left+(l.width-r.width)/2}:function(){return l.left},function(){return r=this.node().getBoundingClientRect(),this.style({top:i()-u.top+"px",left:a()-u.left+"px","z-index":1e3}),this}}t.convertEntities=C,t.lineCount=function(e){return e.selectAll("tspan.line").size()||1},t.positionText=function(e,t,n){return e.each(function(){var e=r.select(this);function i(t,n){return void 0===n?null===(n=e.attr(t))&&(e.attr(t,0),n=0):e.attr(t,n),n}var a=i("x",t),o=i("y",n);"text"===this.nodeName&&e.selectAll("tspan.line").attr({x:a,y:o})})},t.makeEditable=function(e,t){var n=t.gd,i=t.delegate,a=r.dispatch("edit","input","cancel"),o=i||e;if(e.style({"pointer-events":i?"none":"all"}),1!==e.size())throw new Error("boo");function s(){!function(){var i=r.select(n).select(".svg-container"),o=i.append("div"),s=e.node().style,u=parseFloat(s.fontSize||12),c=t.text;void 0===c&&(c=e.attr("data-unformatted"));o.classed("plugin-editable editable",!0).style({position:"absolute","font-family":s.fontFamily||"Arial","font-size":u,color:t.fill||s.fill||"black",opacity:1,"background-color":t.background||"transparent",outline:"#ffffff33 1px solid",margin:[-u/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(c).call(S(e,i,t)).on("blur",function(){n._editing=!1,e.text(this.textContent).style({opacity:1});var t,i=r.select(this).attr("class");(t=i?"."+i.split(" ")[0]+"-math-group":"[class*=-math-group]")&&r.select(e.node().parentNode).select(t).style({opacity:0});var o=this.textContent;r.select(this).transition().duration(0).remove(),r.select(document).on("mouseup",null),a.edit.call(e,o)}).on("focus",function(){var e=this;n._editing=!0,r.select(document).on("mouseup",function(){if(r.event.target===e)return!1;document.activeElement===o.node()&&o.node().blur()})}).on("keyup",function(){27===r.event.which?(n._editing=!1,e.style({opacity:1}),r.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),a.cancel.call(e,this.textContent)):(a.input.call(e,this.textContent),r.select(this).call(S(e,i,t)))}).on("keydown",function(){13===r.event.which&&this.blur()}).call(l)}(),e.style({opacity:0});var i,s=o.attr("class");(i=s?"."+s.split(" ")[0]+"-math-group":"[class*=-math-group]")&&r.select(e.node().parentNode).select(i).style({opacity:0})}function l(e){var t=e.node(),n=document.createRange();n.selectNodeContents(t);var r=window.getSelection();r.removeAllRanges(),r.addRange(n),t.focus()}return t.immediate?s():o.on("click",s),r.rebind(e,a,"on")}},function(e,t,n){"use strict";(function(e,r){var i=n(76),a=n(252);e.__TYPEDARRAY_POOL||(e.__TYPEDARRAY_POOL={UINT8:a([32,0]),UINT16:a([32,0]),UINT32:a([32,0]),INT8:a([32,0]),INT16:a([32,0]),INT32:a([32,0]),FLOAT:a([32,0]),DOUBLE:a([32,0]),DATA:a([32,0]),UINT8C:a([32,0]),BUFFER:a([32,0])});var o="undefined"!=typeof Uint8ClampedArray,s=e.__TYPEDARRAY_POOL;s.UINT8C||(s.UINT8C=a([32,0])),s.BUFFER||(s.BUFFER=a([32,0]));var l=s.DATA,u=s.BUFFER;function c(e){if(e){var t=e.length||e.byteLength,n=i.log2(t);l[n].push(e)}}function d(e){e=i.nextPow2(e);var t=i.log2(e),n=l[t];return n.length>0?n.pop():new ArrayBuffer(e)}function f(e){return new Uint8Array(d(e),0,e)}function h(e){return new Uint16Array(d(2*e),0,e)}function p(e){return new Uint32Array(d(4*e),0,e)}function m(e){return new Int8Array(d(e),0,e)}function g(e){return new Int16Array(d(2*e),0,e)}function v(e){return new Int32Array(d(4*e),0,e)}function y(e){return new Float32Array(d(4*e),0,e)}function _(e){return new Float64Array(d(8*e),0,e)}function b(e){return o?new Uint8ClampedArray(d(e),0,e):f(e)}function x(e){return new DataView(d(e),0,e)}function w(e){e=i.nextPow2(e);var t=i.log2(e),n=u[t];return n.length>0?n.pop():new r(e)}t.free=function(e){if(r.isBuffer(e))u[i.log2(e.length)].push(e);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(e)&&(e=e.buffer),!e)return;var t=e.length||e.byteLength,n=0|i.log2(t);l[n].push(e)}},t.freeUint8=t.freeUint16=t.freeUint32=t.freeInt8=t.freeInt16=t.freeInt32=t.freeFloat32=t.freeFloat=t.freeFloat64=t.freeDouble=t.freeUint8Clamped=t.freeDataView=function(e){c(e.buffer)},t.freeArrayBuffer=c,t.freeBuffer=function(e){u[i.log2(e.length)].push(e)},t.malloc=function(e,t){if(void 0===t||"arraybuffer"===t)return d(e);switch(t){case"uint8":return f(e);case"uint16":return h(e);case"uint32":return p(e);case"int8":return m(e);case"int16":return g(e);case"int32":return v(e);case"float":case"float32":return y(e);case"double":case"float64":return _(e);case"uint8_clamped":return b(e);case"buffer":return w(e);case"data":case"dataview":return x(e);default:return null}return null},t.mallocArrayBuffer=d,t.mallocUint8=f,t.mallocUint16=h,t.mallocUint32=p,t.mallocInt8=m,t.mallocInt16=g,t.mallocInt32=v,t.mallocFloat32=t.mallocFloat=y,t.mallocFloat64=t.mallocDouble=_,t.mallocUint8Clamped=b,t.mallocDataView=x,t.mallocBuffer=w,t.clearCache=function(){for(var e=0;e<32;++e)s.UINT8[e].length=0,s.UINT16[e].length=0,s.UINT32[e].length=0,s.INT8[e].length=0,s.INT16[e].length=0,s.INT32[e].length=0,s.FLOAT[e].length=0,s.DOUBLE[e].length=0,s.UINT8C[e].length=0,l[e].length=0,u[e].length=0}}).call(this,n(39),n(251).Buffer)},function(e,t,n){var r;
/*!
* jQuery JavaScript Library v3.4.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2019-05-01T21:04Z
*/
/*!
* jQuery JavaScript Library v3.4.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2019-05-01T21:04Z
*/
!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,i){"use strict";var a=[],o=n.document,s=Object.getPrototypeOf,l=a.slice,u=a.concat,c=a.push,d=a.indexOf,f={},h=f.toString,p=f.hasOwnProperty,m=p.toString,g=m.call(Object),v={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},_=function(e){return null!=e&&e===e.window},b={type:!0,src:!0,nonce:!0,noModule:!0};function x(e,t,n){var r,i,a=(n=n||o).createElement("script");if(a.text=e,t)for(r in b)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&a.setAttribute(r,i);n.head.appendChild(a).parentNode.removeChild(a)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[h.call(e)]||"object":typeof e}var M=function(e,t){return new M.fn.init(e,t)},T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function k(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!y(e)&&!_(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}M.fn=M.prototype={jquery:"3.4.1",constructor:M,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=M.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return M.each(this,e)},map:function(e){return this.pushStack(M.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n+~]|"+R+")"+R+"*"),V=new RegExp(R+"|>"),G=new RegExp(j),$=new RegExp("^"+B+"$"),W={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+R+"?|("+R+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=function(){f()},oe=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{N.apply(D=I.call(x.childNodes),x.childNodes),D[x.childNodes.length].nodeType}catch(e){N={apply:D.length?function(e,t){O.apply(e,I.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var a,s,u,c,d,p,v,y=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!i&&((t?t.ownerDocument||t:x)!==h&&f(t),t=t||h,m)){if(11!==w&&(d=Q.exec(e)))if(a=d[1]){if(9===w){if(!(u=t.getElementById(a)))return r;if(u.id===a)return r.push(u),r}else if(y&&(u=y.getElementById(a))&&_(t,u)&&u.id===a)return r.push(u),r}else{if(d[2])return N.apply(r,t.getElementsByTagName(e)),r;if((a=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return N.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!A[e+" "]&&(!g||!g.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===w&&V.test(e)){for((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=b),s=(p=o(e)).length;s--;)p[s]="#"+c+" "+_e(p[s]);v=p.join(","),y=ee.test(e)&&ve(t.parentNode)||t}try{return N.apply(r,y.querySelectorAll(v)),r}catch(t){A(e,!0)}finally{c===b&&t.removeAttribute("id")}}}return l(e.replace(U,"$1"),t,r,i)}function le(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ue(e){return e[b]=!0,e}function ce(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ue(function(t){return t=+t,ue(function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))})})}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},a=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!X.test(t||n&&n.nodeName||"HTML")},f=se.setDocument=function(e){var t,i,o=e?e.ownerDocument||e:x;return o!==h&&9===o.nodeType&&o.documentElement?(p=(h=o).documentElement,m=!a(h),x!==h&&(i=h.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ae,!1):i.attachEvent&&i.attachEvent("onunload",ae)),n.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ce(function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(h.getElementsByClassName),n.getById=ce(function(e){return p.appendChild(e).id=b,!h.getElementsByName||!h.getElementsByName(b).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,i,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(i=t.getElementsByName(e),r=0;a=i[r++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[i++];)1===n.nodeType&&r.push(n);return r}return a},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=J.test(h.querySelectorAll))&&(ce(function(e){p.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+R+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+b+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||g.push(".#.+[+~]")}),ce(function(e){e.innerHTML="";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+R+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=J.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ce(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",j)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(p.compareDocumentPosition),_=t||J.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},C=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===h||e.ownerDocument===x&&_(x,e)?-1:t===h||t.ownerDocument===x&&_(x,t)?1:c?F(c,e)-F(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!i||!a)return e===h?-1:t===h?1:i?-1:a?1:c?F(c,e)-F(c,t):0;if(i===a)return fe(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[r]===s[r];)r++;return r?fe(o[r],s[r]):o[r]===x?-1:s[r]===x?1:0},h):h},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&f(e),n.matchesSelector&&m&&!A[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){A(t,!0)}return se(t,h,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!==h&&f(e),_(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==h&&f(e);var i=r.attrHandle[t.toLowerCase()],a=i&&S.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==a?a:n.attributes||!m?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,a=0;if(d=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(C),d){for(;t=e[a++];)t===e[a]&&(i=r.push(a));for(;i--;)e.splice(r[i],1)}return c=null,e},i=se.getText=function(e){var t,n="",r=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=se.selectors={cacheLength:50,createPseudo:ue,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return W.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&G.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(Y," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,f,h,p,m=a!==o?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,_=!1;if(g){if(a){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[o?g.firstChild:g.lastChild],o&&y){for(_=(h=(u=(c=(d=(f=g)[b]||(f[b]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===w&&u[1])&&u[2],f=h&&g.childNodes[h];f=++h&&f&&f[m]||(_=h=0)||p.pop();)if(1===f.nodeType&&++_&&f===t){c[e]=[w,h,_];break}}else if(y&&(_=h=(u=(c=(d=(f=t)[b]||(f[b]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===w&&u[1]),!1===_)for(;(f=++h&&f&&f[m]||(_=h=0)||p.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++_||(y&&((c=(d=f[b]||(f[b]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[w,_]),f!==t)););return(_-=i)===r||_%r==0&&_/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ue(function(e,n){for(var r,a=i(e,t),o=a.length;o--;)e[r=F(e,a[o])]=!(n[r]=a[o])}):function(e){return i(e,0,n)}):i}},pseudos:{not:ue(function(e){var t=[],n=[],r=s(e.replace(U,"$1"));return r[b]?ue(function(e,t,n,i){for(var a,o=r(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))}):function(e,i,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}}),has:ue(function(e){return function(t){return se(e,t).length>0}}),contains:ue(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}}),lang:ue(function(e){return $.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge(function(){return[0]}),last:ge(function(e,t){return[t-1]}),eq:ge(function(e,t,n){return[n<0?n+t:n]}),even:ge(function(e,t){for(var n=0;nt?t:n;--r>=0;)e.push(r);return e}),gt:ge(function(e,t,n){for(var r=n<0?n+t:n;++r1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function we(e,t,n,r,i){for(var a,o=[],s=0,l=e.length,u=null!=t;s-1&&(a[u]=!(o[u]=d))}}else v=we(v===o?v.splice(p,v.length):v),i?i(null,o,v,l):N.apply(o,v)})}function Te(e){for(var t,n,i,a=e.length,o=r.relative[e[0].type],s=o||r.relative[" "],l=o?1:0,c=be(function(e){return e===t},s,!0),d=be(function(e){return F(t,e)>-1},s,!0),f=[function(e,n,r){var i=!o&&(r||n!==u)||((t=n).nodeType?c(e,n,r):d(e,n,r));return t=null,i}];l1&&xe(f),l>1&&_e(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(U,"$1"),n,l0,i=e.length>0,a=function(a,o,s,l,c){var d,p,g,v=0,y="0",_=a&&[],b=[],x=u,M=a||i&&r.find.TAG("*",c),T=w+=null==x?1:Math.random()||.1,k=M.length;for(c&&(u=o===h||o||c);y!==k&&null!=(d=M[y]);y++){if(i&&d){for(p=0,o||d.ownerDocument===h||(f(d),s=!m);g=e[p++];)if(g(d,o||h,s)){l.push(d);break}c&&(w=T)}n&&((d=!g&&d)&&v--,a&&_.push(d))}if(v+=y,n&&y!==v){for(p=0;g=t[p++];)g(_,b,o,s);if(a){if(v>0)for(;y--;)_[y]||b[y]||(b[y]=L.call(l));b=we(b)}N.apply(l,b),c&&!a&&b.length>0&&v+t.length>1&&se.uniqueSort(l)}return c&&(w=T,u=x),_};return n?ue(a):a}(a,i))).selector=e}return s},l=se.select=function(e,t,n,i){var a,l,u,c,d,f="function"==typeof e&&e,h=!i&&o(e=f.selector||e);if(n=n||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(a=W.needsContext.test(e)?0:l.length;a--&&(u=l[a],!r.relative[c=u.type]);)if((d=r.find[c])&&(i=d(u.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(a,1),!(e=i.length&&_e(l)))return N.apply(n,i),n;break}}return(f||s(e,h))(i,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=b.split("").sort(C).join("")===b,n.detectDuplicates=!!d,f(),n.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))}),ce(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ce(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||de(P,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(n);M.find=E,M.expr=E.selectors,M.expr[":"]=M.expr.pseudos,M.uniqueSort=M.unique=E.uniqueSort,M.text=E.getText,M.isXMLDoc=E.isXML,M.contains=E.contains,M.escapeSelector=E.escape;var A=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&M(e).is(n))break;r.push(e)}return r},C=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},S=M.expr.match.needsContext;function D(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var L=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(e,t,n){return y(t)?M.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?M.grep(e,function(e){return e===t!==n}):"string"!=typeof t?M.grep(e,function(e){return d.call(t,e)>-1!==n}):M.filter(t,e,n)}M.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?M.find.matchesSelector(r,e)?[r]:[]:M.find.matches(e,M.grep(t,function(e){return 1===e.nodeType}))},M.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(M(e).filter(function(){for(t=0;t1?M.uniqueSort(n):n},filter:function(e){return this.pushStack(O(this,e||[],!1))},not:function(e){return this.pushStack(O(this,e||[],!0))},is:function(e){return!!O(this,"string"==typeof e&&S.test(e)?M(e):e||[],!1).length}});var N,I=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(M.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||N,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:I.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof M?t[0]:t,M.merge(this,M.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:o,!0)),L.test(r[1])&&M.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=o.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(M):M.makeArray(e,this)}).prototype=M.fn,N=M(o);var F=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}M.fn.extend({has:function(e){var t=M(e,this),n=t.length;return this.filter(function(){for(var e=0;e-1:1===n.nodeType&&M.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?M.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?d.call(M(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(M.uniqueSort(M.merge(this.get(),M(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),M.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return A(e,"parentNode")},parentsUntil:function(e,t,n){return A(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return A(e,"nextSibling")},prevAll:function(e){return A(e,"previousSibling")},nextUntil:function(e,t,n){return A(e,"nextSibling",n)},prevUntil:function(e,t,n){return A(e,"previousSibling",n)},siblings:function(e){return C((e.parentNode||{}).firstChild,e)},children:function(e){return C(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(D(e,"template")&&(e=e.content||e),M.merge([],e.childNodes))}},function(e,t){M.fn[e]=function(n,r){var i=M.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=M.filter(r,i)),this.length>1&&(P[e]||M.uniqueSort(i),F.test(e)&&i.reverse()),this.pushStack(i)}});var B=/[^\x20\t\r\n\f]+/g;function z(e){return e}function j(e){throw e}function Y(e,t,n,r){var i;try{e&&y(i=e.promise)?i.call(e).done(t).fail(n):e&&y(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}M.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return M.each(e.match(B)||[],function(e,n){t[n]=!0}),t}(e):M.extend({},e);var t,n,r,i,a=[],o=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s-1;)a.splice(n,1),n<=s&&s--}),this},has:function(e){return e?M.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=o=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=o=[],n||t||(a=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},M.extend({Deferred:function(e){var t=[["notify","progress",M.Callbacks("memory"),M.Callbacks("memory"),2],["resolve","done",M.Callbacks("once memory"),M.Callbacks("once memory"),0,"resolved"],["reject","fail",M.Callbacks("once memory"),M.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return M.Deferred(function(n){M.each(t,function(t,r){var i=y(e[r[4]])&&e[r[4]];a[r[1]](function(){var e=i&&i.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(e,r,i){var a=0;function o(e,t,r,i){return function(){var s=this,l=arguments,u=function(){var n,u;if(!(e=a&&(r!==j&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?c():(M.Deferred.getStackHook&&(c.stackTrace=M.Deferred.getStackHook()),n.setTimeout(c))}}return M.Deferred(function(n){t[0][3].add(o(0,n,y(i)?i:z,n.notifyWith)),t[1][3].add(o(0,n,y(e)?e:z)),t[2][3].add(o(0,n,y(r)?r:j))}).promise()},promise:function(e){return null!=e?M.extend(e,i):i}},a={};return M.each(t,function(e,n){var o=n[2],s=n[5];i[n[1]]=o.add,s&&o.add(function(){r=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=o.fireWith}),i.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),i=l.call(arguments),a=M.Deferred(),o=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?l.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&(Y(e,a.done(o(n)).resolve,a.reject,!t),"pending"===a.state()||y(i[n]&&i[n].then)))return a.then();for(;n--;)Y(i[n],o(n),a.reject);return a.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;M.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&U.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},M.readyException=function(e){n.setTimeout(function(){throw e})};var H=M.Deferred();function q(){o.removeEventListener("DOMContentLoaded",q),n.removeEventListener("load",q),M.ready()}M.fn.ready=function(e){return H.then(e).catch(function(e){M.readyException(e)}),this},M.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--M.readyWait:M.isReady)||(M.isReady=!0,!0!==e&&--M.readyWait>0||H.resolveWith(o,[M]))}}),M.ready.then=H.then,"complete"===o.readyState||"loading"!==o.readyState&&!o.documentElement.doScroll?n.setTimeout(M.ready):(o.addEventListener("DOMContentLoaded",q),n.addEventListener("load",q));var V=function(e,t,n,r,i,a,o){var s=0,l=e.length,u=null==n;if("object"===w(n))for(s in i=!0,n)V(e,t,s,n[s],!0,a,o);else if(void 0!==r&&(i=!0,y(r)||(o=!0),u&&(o?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(M(e),n)})),t))for(;s1,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),M.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=J.get(e,t),n&&(!r||Array.isArray(n)?r=J.access(e,t,M.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=M.queue(e,t),r=n.length,i=n.shift(),a=M._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete a.stop,i.call(e,function(){M.dequeue(e,t)},a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:M.Callbacks("once memory").add(function(){J.remove(e,[t+"queue",n])})})}}),M.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i,ye={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function _e(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&D(e,t)?M.merge([e],n):n}function be(e,t){for(var n=0,r=e.length;n-1)i&&i.push(a);else if(u=se(a),o=_e(d.appendChild(a),"script"),u&&be(o),n)for(c=0;a=o[c++];)ve.test(a.type||"")&&n.push(a);return d}xe=o.createDocumentFragment().appendChild(o.createElement("div")),(we=o.createElement("input")).setAttribute("type","radio"),we.setAttribute("checked","checked"),we.setAttribute("name","t"),xe.appendChild(we),v.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="",v.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue;var ke=/^key/,Ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ae=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Se(){return!1}function De(e,t){return e===function(){try{return o.activeElement}catch(e){}}()==("focus"===t)}function Le(e,t,n,r,i,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,s,n,r,t[s],a);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===a&&(o=i,(i=function(e){return M().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=M.guid++)),e.each(function(){M.event.add(this,t,i,r,n)})}function Oe(e,t,n){n?(J.set(e,t,!1),M.event.add(e,t,{namespace:!1,handler:function(e){var r,i,a=J.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(M.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=l.call(arguments),J.set(this,t,a),r=n(this,t),this[t](),a!==(i=J.get(this,t))||r?J.set(this,t,!1):i={},a!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else a.length&&(J.set(this,t,{value:M.event.trigger(M.extend(a[0],M.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&M.event.add(e,t,Ce)}M.event={global:{},add:function(e,t,n,r,i){var a,o,s,l,u,c,d,f,h,p,m,g=J.get(e);if(g)for(n.handler&&(n=(a=n).handler,i=a.selector),i&&M.find.matchesSelector(oe,i),n.guid||(n.guid=M.guid++),(l=g.events)||(l=g.events={}),(o=g.handle)||(o=g.handle=function(t){return void 0!==M&&M.event.triggered!==t.type?M.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(B)||[""]).length;u--;)h=m=(s=Ae.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),h&&(d=M.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,d=M.event.special[h]||{},c=M.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&M.expr.match.needsContext.test(i),namespace:p.join(".")},a),(f=l[h])||((f=l[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,p,o)||e.addEventListener&&e.addEventListener(h,o)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,c):f.push(c),M.event.global[h]=!0)},remove:function(e,t,n,r,i){var a,o,s,l,u,c,d,f,h,p,m,g=J.hasData(e)&&J.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(B)||[""]).length;u--;)if(h=m=(s=Ae.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),h){for(d=M.event.special[h]||{},f=l[h=(r?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=f.length;a--;)c=f[a],!i&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(a,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(e,c));o&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||M.removeEvent(e,h,g.handle),delete l[h])}else for(h in l)M.event.remove(e,h+t[u],n,r,!0);M.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,a,o,s=M.event.fix(e),l=new Array(arguments.length),u=(J.get(this,"events")||{})[s.type]||[],c=M.event.special[s.type]||{};for(l[0]=s,t=1;t=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(a=[],o={},n=0;n-1:M.find(i,this,null,[u]).length),o[i]&&a.push(r);a.length&&s.push({elem:u,handlers:a})}return u=this,l\x20\t\r\n\f]*)[^>]*)\/>/gi,Ie=/