diff --git a/dist/ccdb5.min.js b/dist/ccdb5.min.js index d7f8b3759..d5fe005e4 100644 --- a/dist/ccdb5.min.js +++ b/dist/ccdb5.min.js @@ -1,3 +1,3 @@ /*! For license information please see ccdb5.min.js.LICENSE.txt */ -var ccdb5_ui;!function(){var t={7640:function(t,e,n){"use strict";n.d(e,{g:function(){return $x}});var r={};n.r(r),n.d(r,{AGGREGATIONS_API_CALLED:function(){return Mr},AGGREGATIONS_FAILED:function(){return Pr},AGGREGATIONS_RECEIVED:function(){return Ar},COMPLAINTS_API_CALLED:function(){return jr},COMPLAINTS_FAILED:function(){return Lr},COMPLAINTS_RECEIVED:function(){return Nr},COMPLAINT_DETAIL_FAILED:function(){return Rr},COMPLAINT_DETAIL_RECEIVED:function(){return Dr},STATES_API_CALLED:function(){return Ir},STATES_FAILED:function(){return Fr},STATES_RECEIVED:function(){return Br},TRENDS_API_CALLED:function(){return zr},TRENDS_FAILED:function(){return Hr},TRENDS_RECEIVED:function(){return Ur},aggregationsFailed:function(){return Qr},aggregationsReceived:function(){return Zr},callingApi:function(){return Kr},complaintDetailFailed:function(){return ni},complaintDetailReceived:function(){return ei},complaintsFailed:function(){return ti},complaintsReceived:function(){return Jr},getAggregations:function(){return Vr},getComplaintDetail:function(){return Xr},getComplaints:function(){return Yr},getStates:function(){return qr},getTrends:function(){return $r},sendHitsQuery:function(){return Gr},sendQuery:function(){return Wr},statesFailed:function(){return ii},statesReceived:function(){return ri},trendsFailed:function(){return ai},trendsReceived:function(){return oi}});var i={};n.r(i),n.d(i,{default:function(){return li}});var o={};n.r(o),n.d(o,{DATES_CHANGED:function(){return lo},DATE_INTERVAL_CHANGED:function(){return ao},DATE_RANGE_CHANGED:function(){return so},FILTER_ADDED:function(){return mo},FILTER_ALL_REMOVED:function(){return co},FILTER_CHANGED:function(){return uo},FILTER_FLAG_CHANGED:function(){return ho},FILTER_MULTIPLE_ADDED:function(){return fo},FILTER_MULTIPLE_REMOVED:function(){return po},FILTER_REMOVED:function(){return go},FILTER_REPLACED:function(){return yo},addFilter:function(){return ko},addMultipleFilters:function(){return Eo},changeDateInterval:function(){return bo},changeDates:function(){return vo},dateRangeToggled:function(){return xo},removeAllFilters:function(){return Co},removeFilter:function(){return So},removeMultipleFilters:function(){return To},replaceFilters:function(){return Oo},toggleFilter:function(){return wo},toggleFlagFilter:function(){return _o}});var a={};n.r(a),n.d(a,{DATA_NORMALIZATION_SELECTED:function(){return Mo},STATE_COMPLAINTS_SHOWN:function(){return Ao},STATE_FILTER_ADDED:function(){return Po},STATE_FILTER_CLEARED:function(){return jo},STATE_FILTER_REMOVED:function(){return No},addStateFilter:function(){return Do},clearStateFilter:function(){return Ro},dataNormalizationChanged:function(){return Lo},removeStateFilter:function(){return Bo},showStateComplaints:function(){return Io}});var s={};n.r(s),n.d(s,{NEXT_PAGE_SHOWN:function(){return Fo},PREV_PAGE_SHOWN:function(){return zo},SIZE_CHANGED:function(){return Uo},SORT_CHANGED:function(){return Ho},changeSize:function(){return Vo},changeSort:function(){return Yo},nextPageShown:function(){return Wo},prevPageShown:function(){return Go}});var l={};n.r(l),n.d(l,{SEARCH_FIELD_CHANGED:function(){return Xo},SEARCH_TEXT_CHANGED:function(){return qo},searchFieldChanged:function(){return $o},searchTextChanged:function(){return Ko}});var c={};n.r(c),n.d(c,{CHART_TYPE_CHANGED:function(){return Zo},DATA_LENS_CHANGED:function(){return Qo},DATA_SUBLENS_CHANGED:function(){return Jo},DEPTH_CHANGED:function(){return ta},DEPTH_RESET:function(){return ea},FOCUS_CHANGED:function(){return na},FOCUS_REMOVED:function(){return ra},TRENDS_TOOLTIP_CHANGED:function(){return ia},changeChartType:function(){return oa},changeDataLens:function(){return aa},changeDataSubLens:function(){return sa},changeDepth:function(){return la},changeFocus:function(){return ua},removeFocus:function(){return ha},resetDepth:function(){return ca},updateTrendsTooltip:function(){return fa}});var u={};n.r(u),n.d(u,{URL_CHANGED:function(){return pa},default:function(){return ya},processLocation:function(){return ma},urlChanged:function(){return ga}});var h={};n.r(h),n.d(h,{HIDE_ADVANCED_SEARCH_TIPS:function(){return Sa},HIDE_TOUR:function(){return Ea},MAP_WARNING_DISMISSED:function(){return ba},PRINT_MODE_OFF:function(){return xa},PRINT_MODE_ON:function(){return va},ROW_COLLAPSED:function(){return wa},ROW_EXPANDED:function(){return _a},SCREEN_RESIZED:function(){return ka},SHOW_ADVANCED_SEARCH_TIPS:function(){return Ca},SHOW_TOUR:function(){return Ta},TAB_CHANGED:function(){return Oa},TOGGLE_FILTER_VISIBILITY:function(){return Ma},TRENDS_DATE_WARNING_DISMISSED:function(){return Aa},collapseRow:function(){return Ia},expandRow:function(){return Ba},filterVisibilityToggled:function(){return Pa},hideAdvancedTips:function(){return Ra},mapWarningDismissed:function(){return ja},printModeOff:function(){return La},printModeOn:function(){return Na},screenResized:function(){return Fa},showAdvancedTips:function(){return Da},tabChanged:function(){return za},tourHidden:function(){return Ua},tourShown:function(){return Ha},trendsDateWarningDismissed:function(){return Wa}});n(5876);var f=n(9225);function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function p(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,d(t,e)}var m=n(6449);function g(){return g=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0;u--){var h=i[u];"."===h?b(i,u):".."===h?(b(i,u),c++):c&&(b(i,u),c--)}if(!s)for(;c--;c)i.unshift("..");!s||""===i[0]||i[0]&&y(i[0])||i.unshift("");var f=i.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f},x="Invariant failed";function w(t,e){if(!t)throw new Error(x)}function _(t){return"/"===t.charAt(0)?t:"/"+t}function k(t){return"/"===t.charAt(0)?t.substr(1):t}function S(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function C(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function E(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function T(t,e,n,r){var i;"string"===typeof t?(i=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t),i.state=e):(void 0===(i=g({},t)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==e&&void 0===i.state&&(i.state=e));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=v(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function O(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,i){if(null!=t){var o="function"===typeof t?t(e,n):t;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;re?n.splice(e,n.length-e,i):n.push(i),u({action:r,location:i,index:e,entries:n})}}))},replace:function(t,e){var r="REPLACE",i=T(t,e,h(),y.location);c.confirmTransitionTo(i,r,n,(function(t){t&&(y.entries[y.index]=i,u({action:r,location:i}))}))},go:m,goBack:function(){m(-1)},goForward:function(){m(1)},canGo:function(t){var e=y.index+t;return e>=0&&e=0||(i[n]=t[n]);return i}var J=n(8237),tt=n.n(J),et=function(t){var e=$();return e.displayName=t,e},nt=et("Router-History"),rt=et("Router"),it=function(t){function e(e){var n;return(n=t.call(this,e)||this).state={location:e.history.location},n._isMounted=!1,n._pendingLocation=null,e.staticContext||(n.unlisten=e.history.listen((function(t){n._pendingLocation=t}))),n}p(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var n=e.prototype;return n.componentDidMount=function(){var t=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(e){t._isMounted&&t.setState({location:e})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return m.createElement(rt.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},m.createElement(nt.Provider,{children:this.props.children||null,value:this.props.history}))},e}(m.Component);m.Component;m.Component;var ot={},at=0;function st(t,e){void 0===e&&(e={}),("string"===typeof e||Array.isArray(e))&&(e={path:e});var n=e,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(e,n){if(!n&&""!==n)return null;if(e)return e;var r=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=ot[n]||(ot[n]={});if(r[t])return r[t];var i=[],o={regexp:Z()(t,i,e),keys:i};return at<1e4&&(r[t]=o,at++),o}(n,{end:o,strict:s,sensitive:c}),i=r.regexp,a=r.keys,l=i.exec(t);if(!l)return null;var u=l[0],h=l.slice(1),f=t===u;return o&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:a.reduce((function(t,e,n){return t[e.name]=h[n],t}),{})}}),null)}var lt=function(t){function e(){return t.apply(this,arguments)||this}return p(e,t),e.prototype.render=function(){var t=this;return m.createElement(rt.Consumer,null,(function(e){e||w(!1);var n=t.props.location||e.location,r=g({},e,{location:n,match:t.props.computedMatch?t.props.computedMatch:t.props.path?st(n.pathname,t.props):e.match}),i=t.props,o=i.children,a=i.component,s=i.render;return Array.isArray(o)&&function(t){return 0===m.Children.count(t)}(o)&&(o=null),m.createElement(rt.Provider,{value:r},r.match?o?"function"===typeof o?o(r):o:a?m.createElement(a,r):s?s(r):null:"function"===typeof o?o(r):null)}))},e}(m.Component);function ct(t){return"/"===t.charAt(0)?t:"/"+t}function ut(t,e){if(!t)return e;var n=ct(t);return 0!==e.pathname.indexOf(n)?e:g({},e,{pathname:e.pathname.substr(n.length)})}function ht(t){return"string"===typeof t?t:E(t)}function ft(t){return function(){w(!1)}}function dt(){}m.Component;var pt=function(t){function e(){return t.apply(this,arguments)||this}return p(e,t),e.prototype.render=function(){var t=this;return m.createElement(rt.Consumer,null,(function(e){e||w(!1);var n,r,i=t.props.location||e.location;return m.Children.forEach(t.props.children,(function(t){if(null==r&&m.isValidElement(t)){n=t;var o=t.props.path||t.props.from;r=o?st(i.pathname,g({},t.props,{path:o})):e.match}})),r?m.cloneElement(n,{location:i,computedMatch:r}):null}))},e}(m.Component);m.useContext;var mt=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],e=Array.isArray(t)?t:[t];e.forEach((function(t){t&&t.locale&&(Ot().__addLocaleData(t),At().__addLocaleData(t))}))}function Ft(t){var e=t&&t.toLowerCase();return!(!Ot().__localeData__[e]||!At().__localeData__[e])}var zt="function"===typeof Symbol&&"symbol"===Rt(Symbol.iterator)?function(t){return Rt(t)}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":Rt(t)},Ut=(function(){function t(t){this.value=t}function e(e){var n,r;function i(n,r){try{var a=e[n](r),s=a.value;s instanceof t?Promise.resolve(s.value).then((function(t){i("next",t)}),(function(t){i("throw",t)})):o(a.done?"return":"normal",a.value)}catch(l){o("throw",l)}}function o(t,e){switch(t){case"return":n.resolve({value:e,done:!0});break;case"throw":n.reject(e);break;default:n.resolve({value:e,done:!1})}(n=n.next)?i(n.key,n.arg):r=null}this._invoke=function(t,e){return new Promise((function(o,a){var s={key:t,arg:e,resolve:o,reject:a,next:null};r?r=r.next=s:(n=r=s,i(t,e))}))},"function"!==typeof e.return&&(this.return=void 0)}"function"===typeof Symbol&&Symbol.asyncIterator&&(e.prototype[Symbol.asyncIterator]=function(){return this}),e.prototype.next=function(t){return this._invoke("next",t)},e.prototype.throw=function(t){return this._invoke("throw",t)},e.prototype.return=function(t){return this._invoke("return",t)}}(),function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}),Ht=function(){function t(t,e){for(var n=0;n":">","<":"<",'"':""","'":"'"},me=/[&><"']/g;function ge(t){return(""+t).replace(me,(function(t){return pe[t]}))}function ye(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce((function(e,r){return t.hasOwnProperty(r)?e[r]=t[r]:n.hasOwnProperty(r)&&(e[r]=n[r]),e}),{})}function be(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.intl;jt()(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function ve(t,e){if(t===e)return!0;if("object"!==("undefined"===typeof t?"undefined":zt(t))||null===t||"object"!==("undefined"===typeof e?"undefined":zt(e))||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(e),o=0;o3&&void 0!==arguments[3]?arguments[3]:{},l=a.intl,c=void 0===l?{}:l,u=s.intl,h=void 0===u?{}:u;return!ve(e,r)||!ve(n,i)||!(h===c||ve(ye(h,de),ye(c,de)))}function we(t,e){return"[React Intl] "+t+(e?"\n"+e:"")}function _e(t){0}function ke(t){return Ot().prototype._resolveLocale(t)}function Se(t){return Ot().prototype._findPluralRuleFunction(t)}var Ce=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ut(this,t);var r="ordinal"===n.style,i=Se(ke(e));this.format=function(t){return i(t,r)}},Ee=Object.keys(ce),Te=Object.keys(ue),Oe=Object.keys(he),Me=Object.keys(fe),Ae={second:60,minute:60,hour:24,day:30,month:12};function Pe(t){var e=At().thresholds;e.second=t.second,e.minute=t.minute,e.hour=t.hour,e.day=t.day,e.month=t.month,e["second-short"]=t["second-short"],e["minute-short"]=t["minute-short"],e["hour-short"]=t["hour-short"],e["day-short"]=t["day-short"],e["month-short"]=t["month-short"]}function je(t,e,n,r){var i=t&&t[e]&&t[e][n];if(i)return i;r(we("No "+e+" format named: "+n))}function Ne(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.locale,o=t.formats,a=t.messages,s=t.defaultLocale,l=t.defaultFormats,c=n.id,u=n.defaultMessage;jt()(c,"[React Intl] An `id` must be provided to format a message.");var h=a&&a[c],f=Object.keys(r).length>0;if(!f)return h||u||c;var d=void 0,p=t.onError||_e;if(h)try{var m=e.getMessageFormat(h,i,o);d=m.format(r)}catch(y){p(we('Error formatting message: "'+c+'" for locale: "'+i+'"'+(u?", using default message as fallback.":""),y))}else(!u||i&&i.toLowerCase()!==s.toLowerCase())&&p(we('Missing message: "'+c+'" for locale: "'+i+'"'+(u?", using default message as fallback.":"")));if(!d&&u)try{var g=e.getMessageFormat(u,s,l);d=g.format(r)}catch(y){p(we('Error formatting the default message for: "'+c+'"',y))}return d||p(we('Cannot format message: "'+c+'", using message '+(h||u?"source":"id")+" as fallback.")),d||h||u||c}var Le=Object.freeze({formatDate:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.locale,o=t.formats,a=t.timeZone,s=r.format,l=t.onError||_e,c=new Date(n),u=Wt({},a&&{timeZone:a},s&&je(o,"date",s,l)),h=ye(r,Ee,u);try{return e.getDateTimeFormat(i,h).format(c)}catch(f){l(we("Error formatting date.",f))}return String(c)},formatTime:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.locale,o=t.formats,a=t.timeZone,s=r.format,l=t.onError||_e,c=new Date(n),u=Wt({},a&&{timeZone:a},s&&je(o,"time",s,l)),h=ye(r,Ee,u);h.hour||h.minute||h.second||(h=Wt({},h,{hour:"numeric",minute:"numeric"}));try{return e.getDateTimeFormat(i,h).format(c)}catch(f){l(we("Error formatting time.",f))}return String(c)},formatRelative:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.locale,o=t.formats,a=r.format,s=t.onError||_e,l=new Date(n),c=new Date(r.now),u=a&&je(o,"relative",a,s),h=ye(r,Oe,u),f=Wt({},At().thresholds);Pe(Ae);try{return e.getRelativeFormat(i,h).format(l,{now:isFinite(c)?c:e.now()})}catch(d){s(we("Error formatting relative time.",d))}finally{Pe(f)}return String(l)},formatNumber:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.locale,o=t.formats,a=r.format,s=t.onError||_e,l=a&&je(o,"number",a,s),c=ye(r,Te,l);try{return e.getNumberFormat(i,c).format(n)}catch(u){s(we("Error formatting number.",u))}return String(n)},formatPlural:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.locale,o=ye(r,Me),a=t.onError||_e;try{return e.getPluralFormat(i,o).format(n)}catch(s){a(we("Error formatting plural.",s))}return"other"},formatMessage:Ne,formatHTMLMessage:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=Object.keys(r).reduce((function(t,e){var n=r[e];return t[e]="string"===typeof n?ge(n):n,t}),{});return Ne(t,e,n,i)}}),De=Object.keys(ae),Re=Object.keys(se),Ie={formats:{},messages:{},timeZone:null,textComponent:"span",defaultLocale:"en",defaultFormats:{},onError:_e},Be=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ut(this,e);var r=Vt(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));jt()("undefined"!==typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var i=n.intl,o=void 0;o=isFinite(t.initialNow)?Number(t.initialNow):i?i.now():Date.now();var a=i||{},s=a.formatters,l=void 0===s?{getDateTimeFormat:Dt(Intl.DateTimeFormat),getNumberFormat:Dt(Intl.NumberFormat),getMessageFormat:Dt(Ot()),getRelativeFormat:Dt(At()),getPluralFormat:Dt(Ce)}:s;return r.state=Wt({},l,{now:function(){return r._didDisplay?Date.now():o}}),r}return Gt(e,t),Ht(e,[{key:"getConfig",value:function(){var t=this.context.intl,e=ye(this.props,De,t);for(var n in Ie)void 0===e[n]&&(e[n]=Ie[n]);if(!function(t){for(var e=(t||"").split("-");e.length>0;){if(Ft(e.join("-")))return!0;e.pop()}return!1}(e.locale)){var r=e,i=r.locale,o=r.defaultLocale,a=r.defaultFormats;(0,r.onError)(we('Missing locale data for locale: "'+i+'". Using default locale: "'+o+'" as fallback.')),e=Wt({},e,{locale:o,formats:a,messages:Ie.messages})}return e}},{key:"getBoundFormatFns",value:function(t,e){return Re.reduce((function(n,r){return n[r]=Le[r].bind(null,t,e),n}),{})}},{key:"getChildContext",value:function(){var t=this.getConfig(),e=this.getBoundFormatFns(t,this.state),n=this.state,r=n.now,i=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(n,["now"]);return{intl:Wt({},t,e,{formatters:i,now:r})}}},{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n1?i-1:0),a=1;a0){var y=Math.floor(1099511627776*Math.random()).toString(16),b=function(){var t=0;return function(){return"ELEMENT-"+y+"-"+(t+=1)}}();d="@__"+y+"__@",p={},g={},Object.keys(c).forEach((function(t){var e=c[t];if((0,m.isValidElement)(e)){var n=b();p[t]=d+n+d,g[n]=e}else p[t]=e}))}var v=n({id:a,description:s,defaultMessage:l},p||c),x=void 0;return x=g&&Object.keys(g).length>0?v.split(d).filter((function(t){return!!t})).map((function(t){return g[t]||t})):[v],"function"===typeof f?f.apply(void 0,Yt(x)):m.createElement.apply(void 0,[h,null].concat(Yt(x)))}}]),e}(m.Component);Xe.displayName="FormattedMessage",Xe.contextTypes={intl:le},Xe.defaultProps={values:{}};var qe=function(t){function e(t,n){Ut(this,e);var r=Vt(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return be(n),r}return Gt(e,t),Ht(e,[{key:"shouldComponentUpdate",value:function(t){var e=this.props.values,n=t.values;if(!ve(n,e))return!0;for(var r=Wt({},t,{values:e}),i=arguments.length,o=Array(i>1?i-1:0),a=1;a=0;r--){var i=e[r](t);if(i)return i}return function(e,r){throw new Error("Invalid value of type "+Mn(t)+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function jn(t,e){return t===e}function Nn(t){var e=void 0===t?{}:t,n=e.connectHOC,r=void 0===n?dn:n,i=e.mapStateToPropsFactories,o=void 0===i?_n:i,a=e.mapDispatchToPropsFactories,s=void 0===a?wn:a,l=e.mergePropsFactories,c=void 0===l?Sn:l,u=e.selectorFactory,h=void 0===u?On:u;return function(t,e,n,i){void 0===i&&(i={});var a=i,l=a.pure,u=void 0===l||l,f=a.areStatesEqual,d=void 0===f?jn:f,p=a.areOwnPropsEqual,m=void 0===p?gn:p,y=a.areStatePropsEqual,b=void 0===y?gn:y,v=a.areMergedPropsEqual,x=void 0===v?gn:v,w=Q(a,An),_=Pn(t,o,"mapStateToProps"),k=Pn(e,s,"mapDispatchToProps"),S=Pn(n,c,"mergeProps");return r(h,g({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:_,initMapDispatchToProps:k,initMergeProps:S,pure:u,areStatesEqual:d,areOwnPropsEqual:m,areStatePropsEqual:b,areMergedPropsEqual:x},w))}}var Ln=Nn();function Dn(){return(0,m.useContext)($e)}function Rn(t){void 0===t&&(t=$e);var e=t===$e?Dn:function(){return(0,m.useContext)(t)};return function(){return e().store}}var In=Rn();function Bn(t){void 0===t&&(t=$e);var e=t===$e?In:Rn(t);return function(){return e().dispatch}}var Fn=Bn(),zn=function(t,e){return t===e};function Un(t){void 0===t&&(t=$e);var e=t===$e?Dn:function(){return(0,m.useContext)(t)};return function(t,n){void 0===n&&(n=zn);var r=e(),i=function(t,e,n,r){var i,o=(0,m.useReducer)((function(t){return t+1}),0)[1],a=(0,m.useMemo)((function(){return Je(n,r)}),[n,r]),s=(0,m.useRef)(),l=(0,m.useRef)(),c=(0,m.useRef)(),u=(0,m.useRef)(),h=n.getState();try{if(t!==l.current||h!==c.current||s.current){var f=t(h);i=void 0!==u.current&&e(f,u.current)?u.current:f}else i=u.current}catch(d){throw s.current&&(d.message+="\nThe error may be correlated with this previous error:\n"+s.current.stack+"\n\n"),d}return tn((function(){l.current=t,c.current=h,u.current=i,s.current=void 0})),tn((function(){function t(){try{var t=n.getState();if(t===c.current)return;var r=l.current(t);if(e(r,u.current))return;u.current=r,c.current=t}catch(d){s.current=d}o()}return a.onStateChange=t,a.trySubscribe(),t(),function(){return a.tryUnsubscribe()}}),[n,a]),i}(t,n,r.store,r.subscription);return(0,m.useDebugValue)(i),i}}var Hn,Wn=Un(),Gn=n(5090);Hn=Gn.unstable_batchedUpdates,Ke=Hn;var Vn=n(3137),Yn=n.n(Vn),Xn=n(8046),qn=n.n(Xn),$n=n(4859),Kn=n.n($n);Yn().extend(qn()),Yn().extend(Kn());var Zn=function(t){return Yn()(new Date(t)).format("YYYY-MM-DD")},Qn=function(t,e){return Yn()(new Date(t)).isSame(new Date(e),"day")},Jn="MODAL_HID",tr="MODAL_SHOWN",er="2011-12-01T12:00:00.000Z",nr="M/D/YYYY",rr=Zn(new Date),ir=Zn(er),or="MODAL_TYPE_DATA_EXPORT",ar="MODAL_TYPE_MORE_ABOUT",sr="Map",lr="List",cr="Trends",ur="None",hr="Per 1000 pop.",fr="complaint_what_happened",dr="REQUERY_ALWAYS",pr="REQUERY_HITS_ONLY",mr="REQUERY_NEVER",gr=["company","company_public_response","company_response","consumer_consent_provided","consumer_disputed","issue","product","state","submitted_via","tags","timely","zip_code"],yr=["company_received_max","company_received_min","date_received_max","date_received_min"],br=["Day","Week","Month","Quarter","Year"],vr=["3m","6m","1y","3y","All"],xr=["has_narrative"],wr=["issue","product"],_r=["Overview","Company","Product"],kr={10:"10 results",25:"25 results",50:"50 results",100:"100 results"},Sr={created_date_desc:"Newest to oldest",created_date_asc:"Oldest to newest",relevance_desc:"Relevance",relevance_asc:"Relevance (asc)"},Cr="\u2022",Er={AA:"Armed Forces Americas",AE:"Armed Forces Europe",AL:"Alabama",AK:"Alaska",AS:"American Samoa",AP:"Armed Forces Pacific",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District Of Columbia",FM:"Federated States Of Micronesia",FL:"Florida",GA:"Georgia",GU:"Guam",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MH:"Marshall Islands",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",MP:"Northern Mariana Islands",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PW:"Palau",PA:"Pennsylvania",PR:"Puerto Rico",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VI:"Virgin Islands",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"},Tr=["AK","AL","AR","AZ","CA","CO","CT","DC","DE","FL","GA","HI","IA","ID","IL","IN","KS","KY","LA","MA","MD","ME","MI","MN","MO","MS","MT","NC","ND","NE","NH","NJ","NM","NV","NY","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VA","VT","WA","WI","WV","WY"],Or={AL:{abbr:"AL",name:"Alabama",population:"4850771",id:"01"},AK:{abbr:"AK",name:"Alaska",population:"738565",id:"02"},AZ:{abbr:"AZ",name:"Arizona",population:"6809946",id:"04"},AR:{abbr:"AR",name:"Arkansas",population:"2977944",id:"05"},CA:{abbr:"CA",name:"California",population:"38982847",id:"06"},CO:{abbr:"CO",name:"Colorado",population:"5436519",id:"08"},CT:{abbr:"CT",name:"Connecticut",population:"3594478",id:"09"},DE:{abbr:"DE",name:"Delaware",population:"943732",id:"10"},DC:{abbr:"DC",name:"District of Columbia",population:"672391",id:"11"},FL:{abbr:"FL",name:"Florida",population:"20278447",id:"12"},GA:{abbr:"GA",name:"Georgia",population:"10201635",id:"13"},HI:{abbr:"HI",name:"Hawaii",population:"1421658",id:"15"},ID:{abbr:"ID",name:"Idaho",population:"1657375",id:"16"},IL:{abbr:"IL",name:"Illinois",population:"12854526",id:"17"},IN:{abbr:"IN",name:"Indiana",population:"6614418",id:"18"},IA:{abbr:"IA",name:"Iowa",population:"3118102",id:"19"},KS:{abbr:"KS",name:"Kansas",population:"2903820",id:"20"},KY:{abbr:"KY",name:"Kentucky",population:"4424376",id:"21"},LA:{abbr:"LA",name:"Louisiana",population:"4663461",id:"22"},ME:{abbr:"ME",name:"Maine",population:"1330158",id:"23"},MD:{abbr:"MD",name:"Maryland",population:"5996079",id:"24"},MA:{abbr:"MA",name:"Massachusetts",population:"6789319",id:"25"},MI:{abbr:"MI",name:"Michigan",population:"9925568",id:"26"},MN:{abbr:"MN",name:"Minnesota",population:"5490726",id:"27"},MS:{abbr:"MS",name:"Mississippi",population:"2986220",id:"28"},MO:{abbr:"MO",name:"Missouri",population:"6075300",id:"29"},MT:{abbr:"MT",name:"Montana",population:"1029862",id:"30"},NE:{abbr:"NE",name:"Nebraska",population:"1893921",id:"31"},NV:{abbr:"NV",name:"Nevada",population:"2887725",id:"32"},NH:{abbr:"NH",name:"New Hampshire",population:"1331848",id:"33"},NJ:{abbr:"NJ",name:"New Jersey",population:"8960161",id:"34"},NM:{abbr:"NM",name:"New Mexico",population:"2084828",id:"35"},NY:{abbr:"NY",name:"New York",population:"19798228",id:"36"},NC:{abbr:"NC",name:"North Carolina",population:"10052564",id:"37"},ND:{abbr:"ND",name:"North Dakota",population:"745475",id:"38"},OH:{abbr:"OH",name:"Ohio",population:"11609756",id:"39"},OK:{abbr:"OK",name:"Oklahoma",population:"3896251",id:"40"},OR:{abbr:"OR",name:"Oregon",population:"4025127",id:"41"},PA:{abbr:"PA",name:"Pennsylvania",population:"12790505",id:"42"},PR:{abbr:"PR",name:"Puerto Rico",population:"3468963",id:"72"},RI:{abbr:"RI",name:"Rhode Island",population:"1056138",id:"44"},SC:{abbr:"SC",name:"South Carolina",population:"4893444",id:"45"},SD:{abbr:"SD",name:"South Dakota",population:"855444",id:"46"},TN:{abbr:"TN",name:"Tennessee",population:"6597381",id:"47"},TX:{abbr:"TX",name:"Texas",population:"27419612",id:"48"},UT:{abbr:"UT",name:"Utah",population:"2993941",id:"49"},VT:{abbr:"VT",name:"Vermont",population:"624636",id:"50"},VA:{abbr:"VA",name:"Virginia",population:"8365952",id:"51"},WA:{abbr:"WA",name:"Washington",population:"7169967",id:"53"},WV:{abbr:"WV",name:"West Virginia",population:"1836843",id:"54"},WI:{abbr:"WI",name:"Wisconsin",population:"5763217",id:"55"},WY:{abbr:"WY",name:"Wyoming",population:"583200",id:"56"}},Mr="AGGREGATIONS_API_CALLED",Ar="AGGREGATIONS_RECEIVED",Pr="AGGREGATIONS_FAILED",jr="COMPLAINTS_API_CALLED",Nr="COMPLAINTS_RECEIVED",Lr="COMPLAINTS_FAILED",Dr="COMPLAINT_DETAIL_RECEIVED",Rr="COMPLAINT_DETAIL_FAILED",Ir="STATES_API_CALLED",Br="STATES_RECEIVED",Fr="STATES_FAILED",zr="TRENDS_API_CALLED",Ur="TRENDS_RECEIVED",Hr="TRENDS_FAILED";function Wr(){return function(t,e){switch(e().query.tab){case sr:case lr:case cr:t(Vr());break;default:return}t(Gr())}}function Gr(){return function(t,e){switch(e().query.tab){case sr:t(qr());break;case cr:t($r());break;case lr:t(Yr())}}}function Vr(){return function(t,e){var n=e(),r="/data-research/consumer-complaints/search/api/v1/"+n.query.queryString+"&size=0";return n.results.loadingAggregations?null:(t(Kr(Mr,r)),fetch(r).then((function(t){return t.json()})).then((function(e){return t(Zr(e))})).catch((function(e){return t(Qr(e))})))}}function Yr(){return function(t,e){var n=e(),r="/data-research/consumer-complaints/search/api/v1/"+n.query.queryString;return r===n.results.activeCall?null:(t(Kr(jr,r)),fetch(r).then((function(t){return t.json()})).then((function(e){return t(Jr(e))})).catch((function(e){return t(ti(e))})))}}function Xr(t){return function(e){var n="/data-research/consumer-complaints/search/api/v1/"+t;e(Kr(jr,n)),fetch(n).then((function(t){return t.json()})).then((function(t){return e(ei(t))})).catch((function(t){return e(ni(t))}))}}function qr(){return function(t,e){var n=e(),r="/data-research/consumer-complaints/search/api/v1/"+("geo/states/"+n.query.queryString)+"&no_aggs=true";return r===n.map.activeCall?null:(t(Kr(Ir,r)),fetch(r).then((function(t){return t.json()})).then((function(e){return t(ri(e))})).catch((function(e){return t(ii(e))})))}}function $r(){return function(t,e){var n=e(),r=n.query,i=n.trends,o="/data-research/consumer-complaints/search/api/v1/"+("trends/"+r.queryString)+"&no_aggs=true";return o===i.activeCall?null:"Company"!==i.lens||r.company&&r.company.length?(t(Kr(zr,o)),fetch(o).then((function(t){return t.json()})).then((function(e){return t(oi(e))})).catch((function(e){return t(ai(e))}))):null}}function Kr(t,e){return{type:t,url:e}}function Zr(t){return{type:Ar,data:t}}function Qr(t){return{type:Pr,error:t}}function Jr(t){return{type:Nr,data:t}}function ti(t){return{type:Lr,error:t}}function ei(t){return{type:Dr,data:t}}function ni(t){return{type:Rr,error:t}}function ri(t){return{type:Br,data:t}}function ii(t){return{type:Fr,error:t}}function oi(t){return{type:Ur,data:t}}function ai(t){return{type:Hr,error:t}}var si={tagManagerIsLoaded:!1,EVENT_CATEGORY:"Consumer Complaint Search",getDataLayerOptions:function(t,e,n,r,i){return{event:n||si.EVENT_CATEGORY,action:t,label:e||"",eventCallback:r,eventTimeout:i||500}},init:function(){var t;Object.prototype.hasOwnProperty.call(window,"google_tag_manager")?si.tagManagerIsLoaded=!0:Object.defineProperty(window,"google_tag_manager",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e,si.tagManagerIsLoaded=!0}})},sendEvent:function(t){var e=t.eventCallback;si.tagManagerIsLoaded?window.dataLayer.push(t):e&&"function"===typeof e&&e()}};si.init();var li=si;function ci(t){return ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(t)}function ui(t){return Array.from(t||"").join(" ")}var hi=function(t,e,n){return tn&&(t=n),t},fi=function(t,e,n){return"object"!==ci(t)?n:e in t&&t[e]?t[e]:n};function di(t){return function(t){var e,n=String(t),r=0;if(0===n.length)return r;for(e=0;e366},Za=function(t,e){var n={chartType:{defaultVal:"line",values:["line","area"]},dataNormalization:{defaultVal:ur,values:[ur,hr]},dateInterval:{defaultVal:"Month",values:br},dateRange:{defaultVal:"3y",values:vr},lens:{defaultVal:"Overview",values:_r},searchField:{defaultVal:"all",values:["all","company","complaint_what_happened"]},size:{defaultVal:10,values:Object.keys(kr).map((function(t){return parseInt(t,10)}))},sort:{defaultVal:"created_date_desc",values:Object.keys(Sr)},tab:{defaultVal:cr,values:[cr,lr,sr]}};if(n[e]){var r=n[e];return r.values.includes(t)?t:r.defaultVal}return t},Qa=function(t){t.chartType=Za(t.chartType,"chartType"),t.chartType="Overview"===t.lens?"line":t.chartType;var e={Overview:[""],Company:["product"],Product:["sub_product","issue"]};return e[t.lens]&&!e[t.lens].includes(t.subLens)&&(t.subLens=function(t){if(!t)return"";switch(t){case"Overview":return"";case"Company":return"product";default:return"sub_"+t.toLowerCase()}}(t.lens)),t},Ja=n(7239),ts=n.n(Ja),es=n(1488),ns=n.n(es);function rs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function is(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);no&&(r=o),r}((n=t,Yn()(new Date(n)).utc().add(5.5,"hours").format()),e.from,e.to);return vi(r)},cs=function(t,e,n,r){e=e.toLowerCase();var i,o=ls(t,n);switch(e){case"day":i=Yn()(t).format();break;case"week":case"year":i=Yn()(t).add(1,e).subtract(1,"day").format();break;case"quarter":i=Yn()(t).utc().endOf(e).subtract(1,"day").format();break;default:i=Yn()(t).endOf(e).subtract(1,"day").format()}return i=ls(i,n),"day"===e?"Date: ".concat(i):r?"Date range: ".concat(o," - ").concat(i):"".concat(o," - ").concat(i)},us=function(t,e,n,r){if(t){var i=t,o=function(t,e,n){return t.map((function(t){if(!e)return"#20aa3f";var r=t.name.trim(),i=t.parent?t.parent.trim():"";return e[i]?e[i]:e[r]?e[r]:"Overview"===n?"#20aa3f":"#a2a3a4"}))}(i=i.filter((function(t){return t.isParent||r.includes(t.parent)})),e,n);return{colorScheme:o,data:i}}return{colorScheme:[],data:[]}},hs=function(t,e,n){return n.forEach((function(n){e.find((function(t){return t.key_as_string===n.key_as_string}))||e.push({name:t,doc_count:0,key_as_string:n.key_as_string})})),e.sort((function(t,e){return t.key_as_string>e.key_as_string?1:-1})).map((function(e){return{name:t,date:e.key_as_string,value:e.doc_count}}))},fs=function(t){if(!t)return t;var e=t.title.split(":");return is(is({},t),{},{heading:e[0]+":",date:e[1]?e[1].trim():""})},ds=function(t,e,n){var r=Yn()(e).utc().startOf(n.toLowerCase());return!Yn()(t).utc().isSame(r,"day")},ps=function(t,e,n){var r=Yn()(e).utc().endOf(n.toLowerCase()),i=Yn()(t).utc(),o=i.isSame(r,"day");return r.isAfter(i)&&!o};function ms(t){return function(t){if(Array.isArray(t))return gs(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return gs(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gs(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gs(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n");u.push({hasChildren:!1,isParent:!1,key:h,name:h,splitterText:h,value:"",parent:a.key,width:.5}),r.push(u)}}var f=[];return(n=[]).concat.apply(n,r).map((function(t){return function(t,e){for(var n=t.key;e[n];)n+=" ";return e[n]=!0,t.splitterText?t:{hasChildren:Boolean(t.hasChildren),isNotFilter:!1,isParent:Boolean(t.isParent),name:n,value:Number(t.doc_count),parent:t.parent||!1,width:t.parent?.4:.5}}(t,f)}))}(e,n[t][t].buckets))}))}function _s(t){var e=Ci(t);if(t[e])for(var n=t[e].buckets,r=0;r-1&&(s[i].value-=r.doc_count)},i=0;i0?l:l.filter((function(t){return"Other"!==t.name}))}(t,n)),a.dateRangeLine=function(t,e,n,r){var i=e.dateRangeArea.dateRangeArea.buckets,o=e.dateRangeBuckets.dateRangeBuckets.buckets,a=[];if("Overview"===t&&(a.push({topic:"Complaints",topicName:"Complaints",dashed:!1,show:!0,dates:i.map((function(t){return{date:t.key_as_string,value:t.doc_count}}))}),o.forEach((function(t){a[0].dates.find((function(e){return t.key_as_string===e.date}))||a[0].dates.push({date:t.key_as_string,value:0})})),a[0].dates.sort((function(t,e){return new Date(t.date)-new Date(e.date)}))),"Overview"!==t)for(var s=n?r.replace("_","-"):t.toLowerCase(),l=e[s][s].buckets,c=0;c0&&Tr.forEach((function(t){n.includes(t)||e.push({name:t,value:0,issue:"",product:""})})),e}(r),Fs(Fs({},t),{},{activeCall:"",isLoading:!1,results:i})}function Vs(t,e){return Fs(Fs({},t),{},{activeCall:"",error:Si(e.error),isLoading:!1,results:{product:[],state:[]}})}var Ys=function(){var t={};return t[Xa.STATES_API_CALLED]=Ws,t[Xa.STATES_RECEIVED]=Gs,t[Xa.STATES_FAILED]=Vs,t[Xa.TAB_CHANGED]=Hs,t}();function Xs(t,e){return e.type in Ys?Ys[e.type](t,e):t}var qs={modalType:null,modalProps:{}};function $s(t){return function(t){if(Array.isArray(t))return Ks(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return Ks(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ks(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ks(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;return-1===t.indexOf(e)?t.push(e):t=t.filter((function(t){return t!==e})),$s(t)}(t[e.filterName],e.filterValue.key)));return n}function gl(t,e){var n=fi(t,"state",[]),r=e.selectedState.abbr;return n.includes(r)||n.push(r),Qs(Qs({},t),{},{state:n})}function yl(t){return Qs(Qs({},t),{},{state:[]})}function bl(t){return Qs(Qs({},t),{},{tab:lr})}function vl(t,e){var n=fi(t,"state",[]),r=e.selectedState.abbr;return Qs(Qs({},t),{},{state:n.filter((function(t){return t!==r}))})}function xl(t){var e=Qs({},t),n=gr.concat(yr,xr);if(t.searchField===fr){var r=n.indexOf("has_narrative");n.splice(r,1)}return n.forEach((function(t){t in e&&delete e[t]})),e.dateRange="All",e.date_received_min=new Date(er),e.date_received_max=wi(),e.focus="",e}function wl(t,e){var n=Qs({},t);if("has_narrative"===e.filterName)n.has_narrative=!0;else if(e.filterName in n){-1===n[e.filterName].indexOf(e.filterValue)&&n[e.filterName].push(e.filterValue)}else n[e.filterName]=[e.filterValue];return n}function _l(t,e){var n=Qs({},t);if("has_narrative"===e.filterName)delete n.has_narrative;else if(e.filterName in n){var r=n[e.filterName].indexOf(e.filterValue);-1!==r&&n[e.filterName].splice(r,1)}return n}function kl(t,e){var n=Qs({},t);return n[e.filterName]=$s(new Set(e.values)),n}function Sl(t,e){var n=Qs({},t),r=n[e.filterName];return n.focus=e.values.includes(t.focus)?"":t.focus,r&&e.values.forEach((function(t){var e=r.indexOf(t);-1!==e&&r.splice(e,1)})),n}function Cl(t){return Qs(Qs({},t),{},{mapWarningEnabled:!1})}function El(t){return Qs(Qs({},t),{},{trendsDateWarningEnabled:!1})}function Tl(t,e){return{from:(t-1)*e.size,page:t,searchAfter:Al(e,t)}}function Ol(t){var e=Tl(hi(t.page-1,1,t.page),t);return Qs(Qs({},t),e)}function Ml(t){var e=Tl(hi(t.page+1,1,t.totalPages),t);return Qs(Qs({},t),e)}function Al(t,e){var n=t.breakPoints;return n&&n[e]?n[e].join("_"):""}function Pl(t,e){var n=Tl(1,t);return Qs(Qs(Qs({},t),n),{},{size:e.size})}function jl(t,e){var n=Tl(1,t),r=Za(e.sort,"sort");return Qs(Qs(Qs({},t),n),{},{sort:r})}function Nl(t,e){var n=Za(e.tab,"tab");return Qs(Qs({},t),{},{focus:n===cr?t.focus:"",tab:n})}function Ll(t,e){var n=e.data,r=n._meta,i=n.hits,o=Math.ceil(i.total.value/t.size),a=r.break_points,s=t.page>o?o:t.page;return Qs(Qs({},t),{},{breakPoints:a,page:s,totalPages:Object.keys(a).length+1})}function Dl(t,e){return Qs(Qs({},t),{},{trendDepth:e.depth})}function Rl(t){return Qs(Qs({},t),{},{trendDepth:5})}function Il(t,e){var n,r=e.focus,i=e.filterValues,o=e.lens,a=o.toLowerCase(),s=[];return"company"===a?s.push(r):i.forEach((function(t){s.push(t)})),Qs(Qs({},t),{},(Js(n={},a,s),Js(n,"focus",r),Js(n,"lens",o),Js(n,"tab",cr),Js(n,"trendDepth",25),n))}function Bl(t){var e,n=t.lens.toLowerCase();return Qs(Qs({},t),{},(Js(e={},n,[]),Js(e,"focus",""),Js(e,"tab",cr),Js(e,"trendDepth",5),e))}function Fl(t,e){var n=Za(e.lens,"lens");return Qs(Qs({},t),{},{focus:"",lens:n,trendDepth:"Company"===n?10:5})}function zl(t,e){return Qs(Qs({},t),{},{subLens:e.subLens.toLowerCase()})}function Ul(t,e){return Qs(Qs({},t),{},{chartType:e.chartType})}function Hl(t,e){var n=Za(e.value,"dataNormalization");return Qs(Qs({},t),{},{dataNormalization:n})}function Wl(t){gr.forEach((function(e){Array.isArray(t[e])&&0===t[e].length&&delete t[e]}))}function Gl(t){var e={};Object.keys(t).forEach((function(n){if(t[n]&&"queryString"!==n){var r=t[n];-1!==yr.indexOf(n)&&(r=xi(r));-1!==xr.indexOf(n)&&(r=["yes","true"].includes(String(r).toLowerCase())),nl[n]?e[nl[n]]=r:rl[n]?e[rl[n]]=r.toString().toLowerCase():e[n]=r}}));var n=[].concat(["search_term","field"],yr,gr,xr),r=[].concat(n,{List:["frm","search_after","size","sort","format","no_aggs","no_highlight"],Map:[],Trends:["lens","focus","sub_lens","sub_lens_depth","trend_interval","trend_depth"]}[e.tab]);if(Object.keys(e).includes("format")){["size","format","no_aggs"].forEach((function(t){r.includes(t)||r.push(t)}))}var i=Object.keys(e).filter((function(t){return r.includes(t)})).reduce((function(t,n){return t[n]=e[n],t}),{});return"?"+tl.stringify(i)}function Vl(t){t.enablePer1000=function(t){for(var e,n=[],r=gr.concat(xr),i=0;i749,width:e.screenWidth})}function pc(t){return oc(oc({},t),{},{hasFilters:!t.hasFilters})}function mc(t){return oc(oc({},t),{},{showTour:!1})}function gc(t){return oc(oc({},t),{},{expandedRows:[],hasAdvancedSearchTips:!1,showTour:!0})}function yc(t,e){var n=t.expandedRows,r=e.value;return oc(oc({},t),{},{expandedRows:n.filter((function(t){return t!==r}))})}function bc(t,e){var n=t.expandedRows,r=e.value;return n.includes(r)||n.push(r),oc(oc({},t),{},{expandedRows:n})}function vc(t){return oc(oc({},t),{},{expandedRows:[]})}var xc=function(){var t={};return t[Xa.DATA_LENS_CHANGED]=vc,t[Xa.PRINT_MODE_ON]=hc,t[Xa.PRINT_MODE_OFF]=fc,t[Xa.SCREEN_RESIZED]=dc,t[Xa.HIDE_ADVANCED_SEARCH_TIPS]=cc,t[Xa.SHOW_ADVANCED_SEARCH_TIPS]=uc,t[Xa.TOGGLE_FILTER_VISIBILITY]=pc,t[Xa.HIDE_TOUR]=mc,t[Xa.SHOW_TOUR]=gc,t[Xa.ROW_COLLAPSED]=yc,t[Xa.ROW_EXPANDED]=bc,t[Xa.URL_CHANGED]=lc,t}();function wc(t,e){return e.type in xc?xc[e.type](t,e):t}var _c=(0,f.UY)({aggs:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ji,e=arguments.length>1?arguments[1]:void 0,n=io(t,e);return n},detail:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oo,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Dr:return{data:e.data.hits.hits[0]._source,error:""};case Rr:return{data:{},error:e.error};default:return t}},map:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Us,e=arguments.length>1?arguments[1]:void 0,n=Xs(t,e);return n},modal:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qs,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case tr:return{modalType:e.modalType,modalProps:e.modalProps};case Jn:return qs;default:return t}},query:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:el,e=arguments.length>1?arguments[1]:void 0,n=ql(t,e),r=[Xa.DATE_INTERVAL_CHANGED,Xa.DATE_RANGE_CHANGED,Xa.DATES_CHANGED,Xa.FILTER_ALL_REMOVED,Xa.FILTER_CHANGED,Xa.FILTER_FLAG_CHANGED,Xa.FILTER_MULTIPLE_ADDED,Xa.FILTER_MULTIPLE_REMOVED,Xa.FILTER_ADDED,Xa.FILTER_REMOVED,Xa.FILTER_REPLACED,Xa.SEARCH_FIELD_CHANGED,Xa.SEARCH_TEXT_CHANGED,Xa.SIZE_CHANGED,Xa.SORT_CHANGED,Xa.TAB_CHANGED];r.includes(e.type)&&Yl(n),n.tab===sr&&Vl(n),n.tab===cr&&(ul(n),Qa(n)),Wl(n);var i=Gl(n);return n.queryString="?"===i?"":i,n},results:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ql,e=arguments.length>1?arguments[1]:void 0,n=rc(t,e);return n},trends:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xs,e=arguments.length>1?arguments[1]:void 0,n=Is(t,e);return Qa(n),n},view:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sc,e=arguments.length>1?arguments[1]:void 0,n=wc(t,e);return n}});n(2385);function kc(t){return kc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kc(t)}function Sc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cc(t,e){for(var n=0;n=e&&(n=e-1),n}},{key:"_callForOptions",value:function(){var t=this;if(this.state.phase===yu){var e=this.state.inputValue,n=this.props.onInputChange(e);"function"===typeof n.then?n.then((function(e){return t._setOptions(e)}),(function(e){return t._onOptionsError(e)})):this._setOptions(n)}}},{key:"_onOptionsError",value:function(){this.setState({phase:"ERROR"})}},{key:"_setOptions",value:function(t){var e=function(t,e){var n="RESULTS";return t&&0!==t.length?t.length>e.maxVisible&&(n="TOO_MANY"):n=bu,{phase:n,searchResults:t,selectedIndex:-1}}(t,this.props);this.setState(e)}},{key:"_selectOption",value:function(t){this.props.onOptionSelected(this.state.searchResults[t]);var e={phase:vu,searchResults:[],selectedIndex:-1};this.props.mode===gu&&(e.inputValue=""),this.setState(e)}},{key:"_closedChooseIndex",value:function(t){if(0!==this.state.searchResults.length){var e=this.state.selectedIndex;-1===e&&(e=0),this._selectOption(e),t.preventDefault()}}},{key:"_closedKeyCancel",value:function(t){t.preventDefault(),this.setState(xu("",this.props))}},{key:"_closedNav",value:function(t,e){e.preventDefault();var n=this._calculateNewIndex(t);n>=0&&this.setState({selectedIndex:n})}},{key:"_openClear",value:function(){this.setState(xu("",this.props)),this.props.onOptionSelected("")}},{key:"_openKeyEnter",value:function(t){t.preventDefault(),this.props.onOptionSelected(this.state.inputValue),this.setState({phase:vu})}},{key:"_openKeyCancel",value:function(t){t.preventDefault(),this.setState({phase:vu})}},{key:"_openNav",value:function(t,e){e.preventDefault();var n=this._calculateNewIndex(t);if(n>=0){var r=this.state.searchResults[n].key;this.setState({selectedIndex:n,inputValue:r})}}},{key:"_renderError",value:function(){return m.createElement("span",{className:"error"},"There was a problem retrieving the options")}},{key:"_renderEmpty",value:function(){return null}},{key:"_renderWaiting",value:function(){return this.props.isDisableTypeahead?null:m.createElement("span",{className:"waiting"},"waiting...")}},{key:"_renderNoResults",value:function(){return m.createElement("span",{className:"no-results"},"No results found")}},{key:"_renderResults",value:function(){return m.createElement(ru,{options:this.state.searchResults,onOptionSelected:this._selectOption,renderOption:this.props.renderOption,selectedIndex:this.state.selectedIndex})}},{key:"_renderTooManyResults",value:function(){var t=this.state.searchResults.slice(0,this.props.maxVisible);return m.createElement(ru,{options:t,onOptionSelected:this._selectOption,renderOption:this.props.renderOption,selectedIndex:this.state.selectedIndex,footer:"Continue typing for more results"})}}],n&&cu(e.prototype,n),r&&cu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(m.Component);function _u(t){return _u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_u(t)}function ku(t,e){for(var n=0;n-1&&wr.includes(o)){var l,c=s.split(Cr)[0],u=s.split(Cr)[1],h=r.find((function(t){return t.key===c}))["sub_"+o+".raw"].buckets.map((function(t){return t.key})).sort(),f=c+Cr,d=i.filter((function(t){return t.indexOf(f)>-1})).map((function(t){return t.replace(f,"")}));d.push(u),d.sort(),l=function(t,e){var n=t.length;if(n!==e.length)return!1;for(;n--;)if(t[n]!==e[n])return!1;return!0}(d,h)?i.filter((function(t){return-1===t.indexOf(f)})).concat(c):i.concat(s),t(Oo(o,l))}else t(wo(o,a))},removeFilter:function(n){var r=n.aggs,i=n.filters,o=e.fieldName,a=e.item;if(wr.includes(o)){var s=a.key,l=Pu(s,i,r,o);t(Oo(o,l))}else t(wo(o,a))}}}))(Fu);function Uu(t){return Uu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uu(t)}function Hu(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nrr&&i&&(y.current.value=rr,i=rr);var o=e!==r||n!==i;Yn()(i).isAfter(r)&&o&&h(vo(t,r,i))},w=(0,m.useMemo)((function(){var t=["a-text-input"];return(Yn()(a).isBefore(ir)||Yn()(a).isAfter(c))&&t.push("a-text-input__error"),t.join(" ")}),[a,c]),_=(0,m.useMemo)((function(){var t=["a-text-input"];return(Yn()(c).isAfter(rr)||Yn()(c).isBefore(a))&&t.push("a-text-input__error"),t.join(" ")}),[a,c]);return m.createElement(Fc,{title:"Date CFPB received the complaint",className:"aggregation date-filter"},m.createElement("div",null,m.createElement("ul",{className:"date-inputs"},m.createElement("li",null,m.createElement("label",{className:"a-label a-label__heading body-copy",htmlFor:"".concat(t,"-from")},"From"),m.createElement("div",{className:"m-btn-inside-input"},m.createElement("input",{id:"".concat(t,"-from"),className:w,onBlur:x,onChange:function(t){return s(t.target.value)},onKeyDown:function(t){"Enter"===t.key&&g.current.blur()},min:ir,max:rr,ref:g,placeholder:nr,type:"date",value:a}),m.createElement("button",{className:"a-btn a-btn__link",onClick:function(){return b("from")}},Pi.getIcon("delete"),m.createElement("span",{className:"u-visually-hidden"},"Clear date received from filter")))),m.createElement("li",null,m.createElement("label",{className:"a-label a-label__heading body-copy",htmlFor:"".concat(t,"-through")},"Through"),m.createElement("div",{className:"m-btn-inside-input"},m.createElement("input",{id:"".concat(t,"-through"),className:_,onBlur:x,onChange:function(t){return u(t.target.value)},onKeyDown:function(t){"Enter"===t.key&&y.current.blur()},min:ir,max:rr,placeholder:nr,ref:y,type:"date",value:c}),m.createElement("button",{className:"a-btn a-btn__link",onClick:function(){return b("through")}},Pi.getIcon("delete"),m.createElement("span",{className:"u-visually-hidden"},"Clear date received through filter"))))),m.createElement(kh,null),v?m.createElement(m.Fragment,null,v+" ",m.createElement("span",{"aria-hidden":"true"},Pi.getIcon("delete-round","cf-icon-delete-round"))):null,p?m.createElement("p",null," ","CFPB updated product and issue options available to consumers in April 2017 ",m.createElement("a",{href:"https://files.consumerfinance.gov/f/documents/201704_cfpb_Summary_of_Product_and_Sub-product_Changes.pdf",target:"_blank",rel:"noopener noreferrer","aria-label":"Learn more about Product and Issue changes (opens in new window)"},"Learn More")):null))};function Th(t){return Th="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Th(t)}function Oh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mh(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?a=cf:o.length>0&&(a=uf),{activeChildren:i,checkedState:a,filters:n,focus:t.query.focus,hasChildren:i.length>0}}),(function(t){return{uncheckParent:function(e,n){t(To(e,n))},checkParent:function(e){var n=e.fieldName,r=e.filters,i=e.item,o=r.filter((function(t){return-1===t.indexOf(i.key+Cr)}));o.push(i.key),t(Oo(n,o))}}}))(hf);function df(t){return df="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},df(t)}function pf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mf(t){for(var e=1;e5?e.slice(0,5):e,r=e.length-5;return m.createElement("div",null,m.createElement("ul",null,this.state.hasMore?e.map((function(e){return t._buildListComponent(e)})):n.map((function(e){return t._buildListComponent(e)}))),r>0?m.createElement("div",null,m.createElement("button",{className:"a-btn a-btn__link more",onClick:this._toggleShowMore},this.state.hasMore?"- Show ".concat(r," less"):"+ Show ".concat(r," more"))):null)}}])&&yf(e.prototype,n),r&&yf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(m.Component);kf.propTypes={listComponent:G().oneOfType([G().element,G().func,G().object]).isRequired,listComponentProps:G().object,options:G().array.isRequired,perBucketProps:G().func,hasMore:G().bool},kf.defaultProps={listComponentProps:{},perBucketProps:function(t,e){return e},hasMore:!1};var Sf=kf;function Cf(t){return Cf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cf(t)}function Ef(){return Ef=Object.assign?Object.assign.bind():function(t){for(var e=1;e0}}))(ad);function ld(t){return ld="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ld(t)}function cd(t,e){for(var n=0;n749}}))(Ld);Ld.propTypes={tab:G().string.isRequired,hasDesktopFilters:G().bool.isRequired};n(4685),n(7525),n(7489);function Rd(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=document.createElement("a");return n.href=t,n.target="_blank",n.rel="noopener noreferrer",e&&(n.download=e),n}function Id(t){document.body.appendChild(t),t.click(),document.body.removeChild(t)}function Bd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fd(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zd(t){return"https://files.consumerfinance.gov/ccdb/complaints."+t+".zip"}function Ud(t,e,n){var r=function(t){for(var e=1;e)?(.*?)(<\/em>)?/gi,"$2")}},{key:"_renderPossibleHighlight",value:function(t){return m.createElement("span",{className:"body-copy",dangerouslySetInnerHTML:{__html:t},tabIndex:"0"})}},{key:"_renderNarrative",value:function(t,e){var n=t.length>300;return(t=t.substring(0,300))?m.createElement("div",null,m.createElement("br",null),m.createElement("h4",{tabIndex:"0"},"Consumer Complaint Narrative"),this._renderPossibleHighlight(t),n?m.createElement("span",null," ",m.createElement("a",{href:e},"[...]")):null):null}}])&&up(e.prototype,n),r&&up(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(m.Component);mp.propTypes={row:G().object.isRequired};var gp=function(t){var e=t.text;return m.createElement("div",{className:"m-notification m-notification__visible m-notification__error"},Pi.getIcon("error-round"),m.createElement("div",{className:"m-notification_content"},m.createElement("div",{className:"h4 m-notification_message"},e)))},yp=gp;gp.propTypes={text:G().string.isRequired};n(7555);function bp(t){return bp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bp(t)}function vp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xp(t,e){for(var n=0;n=this.props.total},"Next",m.createElement("span",{className:"a-btn_icon a-btn_icon__on-right"},Pi.getIcon("right"))),m.createElement("div",{className:"m-pagination_form"},m.createElement("label",{className:"m-pagination_label"},"Page ",this.props.page))))}}])&&Pp(e.prototype,n),r&&Pp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(m.Component),Ip=Ln((function(t){return{page:t.query.page,size:t.query.size,total:t.query.totalPages}}),(function(t){return{nextPage:function(){t(Wo())},prevPage:function(){t(Go())}}}))(Rp);function Bp(t){return Bp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bp(t)}function Fp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zp(t,e){for(var n=0;n0&&(t="RESULTS"),t}},{key:"_renderError",value:function(){return m.createElement(yp,{text:"There was a problem executing your search"})}},{key:"_renderNoResults",value:function(){return m.createElement("h2",null,"No results were found for your search")}},{key:"_renderResults",value:function(){return m.createElement("ul",{className:"cards-panel"},this.props.items.map((function(t){return m.createElement(mp,{key:t.complaint_id,row:t})})))}}])&&im(e.prototype,n),r&&im(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(m.Component),hm=Ln((function(t){return{hasError:t.aggs.hasError,isLoading:t.results.isLoading,items:t.results.items,hasMobileFilters:t.view.width<750,size:t.query.size,sort:t.query.sort}}),(function(t){return{onSize:function(e){var n=parseInt(e.target.value,10);Oi("Dropdown",n+" results"),t(Vo(n))},onSort:function(e){var n=e.target.value;Oi("Dropdown",Sr[n]),t(Yo(n))}}}))(um);um.propTypes={hasMobileFilters:G().bool.isRequired,size:G().number,onSize:G().func.isRequired,sort:G().string,onSort:G().func.isRequired,isLoading:G().bool,hasError:G().bool,items:G().array.isRequired};n(3201);function fm(t){return fm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fm(t)}function dm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pm(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0)){for(var i,o=t.text().split(/\s+/).reverse(),a=t.attr("y")||0,s=parseFloat(t.attr("dy")||0),l=[],c=0,u=0,h=t.text(null).append("tspan").attr("x",r).attr("y",a).attr("dy",s+"em");i=o.pop();)l.push(i),h.text(l.join(" ")),h.node().getComputedTextLength()>e&&(l.pop(),h.text(l.join(" ")),l=[i],h=t.append("tspan").attr("x",r).attr("y",a).attr("dy",1.1*++c+s+"em").text(i),u++);if(u&&!window.document.documentMode){var f=_m.select(t.node().parentNode).select(".view-more-background"),d=f.attr("height"),p=parseFloat(d)+12*u;f.attr("height",p)}}}))}},{key:"componentDidMount",value:function(){this._redrawChart()}},{key:"componentDidUpdate",value:function(t){var e=this.props;di(t)!==di(e)&&this._redrawChart()}},{key:"_redrawChart",value:function(){var t=this.props,e=t.colorScheme,n=t.data,r=t.id,i=t.isPrintMode,o=t.total,a=yi(n).filter((function(t){return!t.name||!i||-1===t.name.indexOf("Visualize trends for")}));if(a&&a.length&&o){var s=(0,km.miniTooltip)();s.valueFormatter(this._formatTip);var l=o/(0,Sm.Fp)(a,(function(t){return t.value})),c="#row-chart-"+r;_m.selectAll(c+" .row-chart").remove();var u=_m.select(c),h=i?750:u.node().getBoundingClientRect().width+30,f=this._getHeight(a.length),d=(0,km.row)(),p=h/4,m=h<600?40:-65;d.margin({left:p,right:m,top:20,bottom:10}).colorSchema(e).backgroundColor("#f7f8f9").paddingBetweenGroups(25).enableLabels(!0).labelsTotalCount(o.toLocaleString()).labelsNumberFormat(",d").outerPadding(.1).percentageAxisToMaxRatio(l).yAxisLineWrapLimit(2).yAxisPaddingBetweenChart(20).width(h).wrapLabels(!0).height(f).on("customMouseOver",s.show).on("customMouseMove",s.update).on("customMouseOut",s.hide),u.datum(a).call(d),_m.selectAll(c+" .row-chart .metadata-group").datum([]).call(s),this._wrapText(_m.select(c).selectAll(".tick text"),p),this._wrapText(_m.select(c).selectAll(".view-more-label"),h/2,!0),u.selectAll(".y-axis-group .tick").on("click",this._toggleRow),u.selectAll(".view-more-label").on("click",this._selectFocus)}}},{key:"_selectFocus",value:function(t){var e="Overview"===this.props.lens?"Product":this.props.lens,n=fi(this.props.aggs,e.toLowerCase(),[]);this.props.selectFocus(t,e,n)}},{key:"_toggleRow",value:function(t){var e=this.props,n=e.data,r=e.expandedRows;n.filter((function(t){return t.isParent})).map((function(t){return t.name})).includes(t)&&(r.includes(t)?this.props.collapseRow(t):this.props.expandRow(t))}},{key:"render",value:function(){return this.props.total>0&&m.createElement("div",{className:"row-chart-section"},m.createElement("h3",null,this.props.title),m.createElement("p",null,this.props.helperText),m.createElement("div",{id:"row-chart-"+this.props.id}))}}])&&Om(e.prototype,n),r&&Om(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(m.Component),Dm=Ln((function(t){var e=t.query.tab,n=e===sr?"Product":t.query.lens,r=t.aggs,i=t.view;return{aggs:r,expandedRows:i.expandedRows,lens:n,isPrintMode:i.isPrintMode,tab:e,width:i.width}}),(function(t){return{selectFocus:function(e,n,r){!function(){var t=document.getElementById("search-summary");t&&t.scrollIntoView()}();var i=[];if("Company"===n)i.push(e.parent);else{var o=r.find((function(t){return t.key===e.parent})),a="sub_"+n.toLowerCase()+".raw";i=o?Ti(e.parent,o[a].buckets):[]}Oi("Trends click",e.parent),t(ua(e.parent,n,Em(i)))},collapseRow:function(e){Oi("Bar chart collapsed",e),t(Ia(e))},expandRow:function(e){Oi("Bar chart expanded",e),t(Ba(e))}}}))(Lm);Lm.propTypes={isPrintMode:G().bool,lens:G().string,aggs:G().object,selectFocus:G().func,expandedRows:G().array,collapseRow:G().func,expandRow:G().func,helperText:G().string,id:G().string.isRequired,colorScheme:G().oneOfType([G().array,G().bool]).isRequired,data:G().array.isRequired,title:G().string.isRequired,total:G().number.isRequired};n(7487);var Rm=n(729),Im=n.n(Rm),Bm=n(6411),Fm=n.n(Bm),zm={AL:"M550,-337L633,-337,633,-253,550,-253,550,-337",AK:"M92,-245L175,-245,175,-162,92,-162,92,-245",AZ:"M92,-428L175,-428,175,-345,92,-345,92,-428",AR:"M367,-428L450,-428,450,-345,367,-345,367,-428",CA:"M0,-520L83,-520,83,-437,0,-437,0,-520",CO:"M183,-520L267,-520,267,-437,183,-437,183,-520",CT:"M825,-612L908,-612,908,-528,825,-528,825,-612",DE:"M825,-520L908,-520,908,-437,825,-437,825,-520",DC:"M733,-428L817,-428,817,-345,733,-345,733,-428",FL:"M733,-245L817,-245,817,-162,733,-162,733,-245",GA:"M642,-337L725,-337,725,-253,642,-253,642,-337",HI:"M0,-245L83,-245,83,-162,0,-162,0,-245",ID:"M92,-703L175,-703,175,-620,92,-620,92,-703",IL:"M458,-703L542,-703,542,-620,458,-620,458,-703",IN:"M458,-612L542,-612,542,-528,458,-528,458,-612",IA:"M367,-612L450,-612,450,-528,367,-528,367,-612",KS:"M275,-428L358,-428,358,-345,275,-345,275,-428",KY:"M458,-520L542,-520,542,-437,458,-437,458,-520",LA:"M367,-337L450,-337,450,-253,367,-253,367,-337",ME:"M917,-887L1000,-887,1000,-803,917,-803,917,-887",MD:"M733,-520L817,-520,817,-437,733,-437,733,-520",MA:"M825,-703L908,-703,908,-620,825,-620,825,-703",MI:"M550,-703L633,-703,633,-620,550,-620,550,-703",MN:"M367,-703L450,-703,450,-620,367,-620,367,-703",MS:"M458,-337L542,-337,542,-253,458,-253,458,-337",MO:"M367,-520L450,-520,450,-437,367,-437,367,-520",MT:"M183,-703L267,-703,267,-620,183,-620,183,-703",NE:"M275,-520L358,-520,358,-437,275,-437,275,-520",NV:"M92,-612L175,-612,175,-528,92,-528,92,-612",NH:"M917,-795L1000,-795,1000,-712,917,-712,917,-795",NJ:"M733,-612L817,-612,817,-528,733,-528,733,-612",NM:"M183,-428L267,-428,267,-345,183,-345,183,-428",NY:"M733,-703L817,-703,817,-620,733,-620,733,-703",NC:"M550,-428L633,-428,633,-345,550,-345,550,-428",ND:"M275,-703L358,-703,358,-620,275,-620,275,-703",OH:"M550,-612L633,-612,633,-528,550,-528,550,-612",OK:"M275,-337L358,-337,358,-253,275,-253,275,-337",OR:"M0,-612L83,-612,83,-528,0,-528,0,-612",PA:"M642,-612L725,-612,725,-528,642,-528,642,-612",RI:"M917,-612L1000,-612,1000,-528,917,-528,917,-612",SC:"M642,-428L725,-428,725,-345,642,-345,642,-428",SD:"M275,-612L358,-612,358,-528,275,-528,275,-612",TN:"M458,-428L542,-428,542,-345,458,-345,458,-428",TX:"M275,-245L358,-245,358,-162,275,-162,275,-245",UT:"M92,-520L175,-520,175,-437,92,-437,92,-520",VT:"M825,-795L908,-795,908,-712,825,-712,825,-795",VA:"M642,-520L725,-520,725,-437,642,-437,642,-520",WA:"M0,-703L83,-703,83,-620,0,-620,0,-703",WV:"M550,-520L633,-520,633,-437,550,-437,550,-520",WI:"M458,-795L542,-795,542,-712,458,-712,458,-795",WY:"M183,-612L267,-612,267,-528,183,-528,183,-612"};function Um(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0})),o=[{from:0,color:Xm,name:"\u2265 0",shortName:"\u2265 0"}];return i.forEach((function(t){var i,a=n.indexOf(t),s=r[a]===t?"\u2265":">",l=t.toLocaleString(),c=(i=t)<1e3?i.toLocaleString():i<1e4?(Math.floor(i/100)/10).toFixed(1)+"K":i<1e6?Math.floor(i/1e3)+"K":(Math.floor(i/1e5)/10).toFixed(1)+"M";o.push({from:t,color:e(r[a]),name:"".concat(s," ").concat(l),shortName:"".concat(s," ").concat(c)})})),o}function $m(t,e){var n=t.map((function(t){return function(t){return Math.floor(100*t)/100}(t)})),r=Array.from(new Set(n)).filter((function(t){return t>0})),i=[{from:0,color:Xm,name:"\u2265 0",shortName:"\u2265 0"}];return r.forEach((function(r){var o=n.indexOf(r),a=n[o]===t[o]?"\u2265":">",s=r.toFixed(2),l="".concat(a," ").concat(s);i.push({from:r,color:e(t[o]),name:l,shortName:l})})),i}function Km(t,e){var n=(t=t.filter((function(t){return Boolean(t.name)}))).filter((function(t){return"selected"===t.className})).length;return t=t.map((function(t){var r=zm[t.name],i=function(t,e){return t?e(t):Xm}(t.displayValue,e);return n&&"deselected"===t.className&&(i=i.replace("1)","0.5)")),"selected"!==t.className&&i===Xm&&(t.className="empty"),Wm(Wm({},t),{},{color:i,path:r})})),t}function Zm(t){return"".concat(t.fullName," ").concat(t.displayValue)}function Qm(){var t=".tile-"+this.name;_m.select(t).classed("hover",!1)}function Jm(){var t=".tile-"+this.name;_m.select(t).classed("hover",!0)}function tg(){var t=this.point.displayValue.toLocaleString();return'
'+this.point.name+''+t+"
"}function eg(){var t=this.product?'

Product with highest complaint volume

'+this.product+"

":"",e=this.issue?'

Issue with highest complaint volume

'+this.issue+"

":"",n=this.value.toLocaleString(),r=this.perCapita?'

Per 1000 population

'+this.perCapita+"

":"";return'
'+this.fullName+'

Complaints

'+n+"

"+r+t+e}function ng(t){var e=t.options.bins,n=65,r=5,i=t.chartWidth<600;i&&(n=45,r=1);var o=t.renderer.g("legend-container").add(),a=t.renderer.g("legend-title").translate(r,0).add(o);t.renderer.label("Key",0,0,null,null,null,!0,!1,"legend-key").add(a);var s=e.length*(n+r);t.renderer.path(["M",0,0,"L",s,0]).attr({class:"separator","stroke-width":1,stroke:"gray"}).translate(0,25).add(a);var l='Map shading: '+t.options.legend.legendTitle+"";t.renderer.label(l,0,28,null,null,null,!0,!1,"legend-description").add(a);for(var c=t.renderer.g("legend__tile-map").translate(7,50).add(o),u=0;ut.length)&&(e=t.length);for(var n=0,r=new Array(e);n1);return{colorMap:t.trends.colorMap,data:e,dateRange:n,interval:r,lens:t.query.lens,isPrintMode:t.view.isPrintMode,processData:i,tooltip:t.trends.tooltip,hasChart:o,width:t.view.width}}),(function(t){return{tooltipUpdated:function(e){t(fa(e))}}}))(Hy);Hy.propTypes={data:G().oneOfType([G().object,G().array]).isRequired,width:G().number,isPrintMode:G().bool,tooltip:G().oneOfType([G().bool,G().object]),tooltipUpdated:G().func,dateRange:G().object,interval:G().string,lens:G().string,colorMap:G().object,processData:G().oneOfType([G().object,G().array]),hasChart:G().bool};n(7747);function Gy(t){return Gy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gy(t)}function Vy(t){return function(t){if(Array.isArray(t))return Yy(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return Yy(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yy(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yy(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1;return{colorMap:t.trends.colorMap,data:e,dateRange:n,filteredData:i,interval:r,lens:t.trends.lens,isPrintMode:t.view.isPrintMode,tooltip:t.trends.tooltip,hasChart:o,width:t.view.width}}),(function(t){return{tooltipUpdated:function(e){t(fa(e))}}}))(Jy);Jy.propTypes={data:G().array.isRequired,width:G().number,isPrintMode:G().bool,tooltip:G().oneOfType([G().bool,G().object]),tooltipUpdated:G().func,dateRange:G().object,interval:G().string,colorMap:G().object.isRequired,filteredData:G().array,hasChart:G().bool};n(9413);function eb(t){return eb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eb(t)}function nb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rb(t,e){for(var n=0;n5&&e!==n}},{key:"render",value:function(){var t=this.props,e=t.diff,n=t.increaseDepth,r=t.depthReset;return t.hasToggle?this._showMore()?m.createElement("div",{className:"trend-depth-toggle"},m.createElement("button",{className:"a-btn a-btn__link",id:"trend-depth-button",onClick:function(){n(e)}},m.createElement("span",{className:"plus"}),"Show more")):m.createElement("div",{className:"trend-depth-toggle"},m.createElement("button",{className:"a-btn a-btn__link",id:"trend-depth-button",onClick:function(){r()}},m.createElement("span",{className:"minus"}),"Show less")):null}}])&&rb(e.prototype,n),r&&rb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(m.Component),ub=function(t,e,n,r){return"Overview"!==t&&!e&&(n>5||r>5)},hb=Ln((function(t){var e=t.aggs,n=t.query,r=t.trends,i=n.focus,o=n.lens,a=lb[o],s=fi(r.results,a,[]).filter((function(t){return t.isParent})).length,l=0;l="product"===a?fi(e,a,[]).length:hi(fi(n,a,[]).length,0,10);var c=n[a]?n[a].filter((function(t){return-1===t.indexOf(Cr)})).length:l;return{diff:l-s,resultCount:s,queryCount:c,hasToggle:ub(o,i,s,c)}}),(function(t){return{increaseDepth:function(e){t(la(e+5))},depthReset:function(){t(ca())}}}))(cb);function fb(t){return fb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fb(t)}function db(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pb(t,e){for(var n=0;n0&&m.createElement("div",{className:"layout-row"},m.createElement("section",{className:"chart-description"},m.createElement("h2",{className:"area-chart-title"},this._areaChartTitle()),m.createElement("p",{className:"chart-helper-text"},"A time series graph of complaints for the selected date range. Hover on the chart to see the count for each date interval. Your filter selections will update what you see on the graph."))),!n&&!u&&f>0&&m.createElement("div",{className:"layout-row"},m.createElement("section",{className:"chart-description"},m.createElement("h2",{className:"area-chart-title"},this._areaChartTitle()),m.createElement("p",{className:"chart-helper-text"},"A time series graph of the (up to five) highest volume complaints for the selected date range. However, you can view all of your selections in the bar chart, below. Hover on the chart to see the count for each date interval. Your filter selections will update what you see on the graph."))),!n&&f>0&&m.createElement(m.Fragment,null,m.createElement("div",{className:"layout-row date-range-disclaimer"},m.createElement("strong",null,"Note:\xa0 Data from incomplete time intervals are not shown")),m.createElement("div",{className:"layout-row"},m.createElement("section",{className:"chart"},"line"===e&&m.createElement(Wy,null),"area"===e&&m.createElement(tb,null)),!u&&m.createElement(fy,null))),f>0&&this._phaseMap(),m.createElement(hb,null),m.createElement(Fi,{isLoading:a||!1}))}}],n&&pb(e.prototype,n),r&&pb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(m.Component),kb=Ln((function(t){var e,n,r=t.query,i=r.company,o=r.dateInterval,a=r.date_received_max,s=r.date_received_min,l=r.lens,c=r.subLens,u=r.isTrendsDateWarningEnabled,h=t.trends,f=h.chartType,d=h.colorMap,p=h.focus,m=h.isLoading,g=h.results,y=h.total,b=t.view.expandedRows,v=l.toLowerCase(),x=c.replace("_","-"),w=""===c?xb[v]:xb[c],_=""===c?wb[v]:wb[c];return{chartType:f,companyData:us(g.company,!1,l,b),hasCompanyOverlay:$a(l,i,m),dateInterval:o,focus:p,focusData:us(g[x],d,l,b),intervals:(e=s,n=a,br.map((function(t){return{name:t,disabled:Ka(e,n)&&"Day"===t}}))),isLoading:m,productData:us(g.product,!1,l,b),dataLensData:us(g[v],d,l,b),lens:l,minDate:vi(s),maxDate:vi(a),hasOverview:"Overview"===l,hasMobileFilters:t.view.width<750,subLens:c,subLensTitle:vb[c]+", by "+l.toLowerCase()+" from",lensHelperText:w,focusHelperText:_,total:y,isTrendsDateWarningEnabled:u}}),(function(t){return{onDismissWarning:function(){t(Wa())},onInterval:function(e){var n=e.target.value;Oi("Dropdown","Trends:"+n),t(bo(n))},onLens:function(e){var n=e.target.value;Oi("Dropdown","Trends:"+n),t(aa(n))}}}))(_b);function Sb(t){return Sb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sb(t)}function Cb(t,e){for(var n=0;n0,onClick:this._exportClicked},"Start export"),m.createElement("button",{className:"a-btn a-btn__link a-btn__warning","data-gtm_ignore":"true",onClick:this.props.onClose},"Cancel"))}},{key:"_renderFormatGroup",value:function(){return m.createElement("div",{className:"group"},m.createElement("div",{className:"group-title"},"Select a format for the exported file",m.createElement("span",{className:"required-helper"}," (required)")),m.createElement("div",{className:"body-copy"},m.createElement("div",{className:"m-form-field m-form-field__radio m-form-field__lg-target"},m.createElement("input",{checked:"csv"===this.state.format,className:"a-radio",id:"format_csv",onChange:this._chooseFormat,type:"radio",value:"csv"}),m.createElement("label",{className:"a-label",htmlFor:"format_csv"},"CSV")),m.createElement("div",{className:"m-form-field m-form-field__radio m-form-field__lg-target"},m.createElement("input",{checked:"json"===this.state.format,className:"a-radio",id:"format_json",onChange:this._chooseFormat,type:"radio",value:"json"}),m.createElement("label",{className:"a-label",htmlFor:"format_json"},"JSON"))))}},{key:"_renderDatasetGroup",value:function(){return m.createElement("div",{className:"group"},m.createElement("div",{className:"group-title"},"Select which complaints you'd like to export",m.createElement("span",{className:"required-helper"}," (required)")),m.createElement("div",{className:"body-copy"},m.createElement("div",{className:"m-form-field m-form-field__radio m-form-field__lg-target"},m.createElement("input",{checked:"filtered"===this.state.dataset,className:"a-radio",id:"dataset_filtered",onChange:this._chooseDataset,type:"radio",value:"filtered"}),m.createElement("label",{className:"a-label",htmlFor:"dataset_filtered"},m.createElement("div",{className:"multiline-label"},m.createElement("div",null,"Filtered dataset (",m.createElement(Ge,{value:this.props.someComplaints}),"\xa0complaints)"),m.createElement("div",{className:"body-copy"},"(only the results of the last search and/or filter)")))),m.createElement("div",{className:"m-form-field m-form-field__radio m-form-field__lg-target"},m.createElement("input",{checked:"full"===this.state.dataset,className:"a-radio",id:"dataset_full",onChange:this._chooseDataset,type:"radio",value:"full"}),m.createElement("label",{className:"a-label",htmlFor:"dataset_full"},m.createElement("div",{className:"multiline-label"},m.createElement("div",null,"Full dataset (",m.createElement(Ge,{value:this.props.allComplaints}),"\xa0complaints)"),m.createElement("div",{className:"body-copy"},"(not recommended due to very large file size)"))))))}}])&&Ib(e.prototype,n),r&&Ib(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(m.Component),Vb=Ln((function(t){var e=t.aggs.total;return{allComplaints:t.aggs.doc_count,queryState:Db({},t.query),someComplaints:e,tab:t.query.tab}}),(function(t){return{exportAll:function(e,n){Oi("Export All Data",n+":"+e),t(function(t){return function(){Id(Rd(zd(t),"download."+t))}}(e))},exportSome:function(e,n,r){Oi("Export Some Data",r+":"+e),t(function(t,e){return function(n,r){Id(Rd(Ud(t,e,r().query),"download."+t))}}(e,n))}}}))(Gb);function Yb(t){return Yb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yb(t)}function Xb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qb(t,e){for(var n=0;n"},qv="";Object.entries(Wv).slice(1).forEach((function(t,e){qv+=Xv(e,t)}));var $v="";Object.entries(Gv).slice(1).forEach((function(t,e){$v+=Xv(e,t)}));var Kv="";Object.entries(Vv).slice(1).forEach((function(t,e){Kv+=Xv(e,t)}));var Zv=(Yv(Rv={},"Document",[{element:Fv,intro:"Welcome to the Complaint Explorer! You can view a complaint in more detail on this page"},{element:zv,intro:"Click here to go to the next complaint in your search results"},{element:Uv,intro:"If you need to export a results set, click here. Remember exports of complaint data with PII should be stored securely on your hard drive and only shared with those who have the proper permissions."},{element:Hv,intro:"This link will take you back to the search results"}]),Yv(Rv,sr,[{element:Wv.STEP_1.selector,intro:'
Welcome to the Consumer Complaint Database!

Complaints the CFPB sends to companies for response are published in the Consumer Complaint Database after the company responds, confirming a commercial relationship with the consumer, or after 15 days, whichever comes first.

Complaints the CFPB refers to other regulators, such as complaints about depository institutions with less than $10 billion in assets, are not published in the database. This database is not a statistical sample of consumers\u2019 experiences in the marketplace.

Index

    '+qv+"
",tooltipClass:"wide"},{element:Wv.STEP_2.selector,intro:"These links provide more information about this database."},{element:Wv.STEP_3.selector,intro:"You can change how to view complaint data by selecting the three views we have available \u2014 Trends, List, and Map.

You are currently on the Map view, which displays complaints by state.

To read individual complaints, select List view

To visualize complaint data with product and issue breakdowns, select Trends view",position:"top"},{element:Wv.STEP_4.selector,intro:"The \u201cFilter results by\u201d panel lets you filter complaint data. To clear filters, uncheck individual selections in the filter panel or to select \u201cClear all filters\u201d under the Search bar."},{element:Wv.STEP_5.selector,intro:"You can adjust the date range of the complaint data showed using the \u201cDate CFPB received the complaint\u201d filter.
The default date range is three years from today\u2019s date."},{element:Wv.STEP_6.selector,intro:"You can filter complaints by the product and issue the consumer selected when they submitted their complaint.

Expand a product or issue to see its sub-products or sub-issues, where available. "},{element:Wv.STEP_7.selector,intro:"The blue show/hide icon allows you to expand or collapse specific filters."},{element:Wv.STEP_8.selector,intro:"Use the \u201cSearch within\u201d bar to find specific words or phrases in complaints. By default, this will search \u201cAll data\u201d, but you can change this using the gray dropdown menu.

Click \u201cShow advanced search tips\u201d to see some advanced ways to refine your word search."},{element:Wv.STEP_9.selector,intro:"As you apply filters and search terms, this will display how many complaints are included out of the total number of complaints published in the database."},{element:Wv.STEP_10.selector,intro:"You can export full or filtered results to CSV or JSON by selecting \u201cExport data\u201d."},{element:Wv.STEP_11.selector,intro:"Select \u201cPrint\u201d to generate a pdf of the current page."},{element:Wv.STEP_12.selector,intro:"Map shading defaults to total complaints, but you can change this to show complaints per 1,000 population in that state."},{element:Wv.STEP_13.selector,intro:"Hover over a tile on the map to view complaint information specific to that state. You can filter to see data specific to a state by selecting the state or using the filter panel."},{element:Wv.STEP_14.selector,intro:"View complaint volume by product in the bar chart. Use the blue arrow by each product to view breakdowns by sub-products.

Once the product is expanded, select the \u201cVisualize\u201d link as shown below, to view trends on sub-products and issues:"},{element:Wv.STEP_15.selector,intro:"To learn how to use Trends and List views, select the view and then start the tour."}]),Yv(Rv,lr,[{element:Gv.STEP_1.selector,intro:'
Welcome to the Consumer Complaint Database!

Complaints the CFPB sends to companies for response are published in the Consumer Complaint Database after the company responds, confirming a commercial relationship with the consumer, or after 15 days, whichever comes first.

Complaints the CFPB refers to other regulators, such as complaints about depository institutions with less than $10 billion in assets, are not published in the database. This database is not a statistical sample of consumers\u2019 experiences in the marketplace.

Index

    '+$v+"
",tooltipClass:"wide"},{element:Gv.STEP_2.selector,intro:"These links provide more information about this database."},{element:Gv.STEP_3.selector,intro:"You can change how to view complaint data by selecting the three views we have available \u2014 Trends, List, and Map.

You are currently on the List view, which shows individual complaints.

To visualize complaint data with product and issue breakdowns, select Trends view.

To view complaints by state, select Map view."},{element:Gv.STEP_4.selector,intro:"The \u201cFilter results by\u201d panel lets you filter complaint data. To clear filters, uncheck individual selections in the filter panel or to select \u201cClear all filters\u201d under the Search bar."},{element:Gv.STEP_5.selector,intro:"You can adjust the date range of the complaint data showed using the \u201cDate CFPB received the complaint\u201d filter.
The default date range is three years from today\u2019s date."},{element:Gv.STEP_6.selector,intro:"You can filter complaints by the product and issue the consumer selected when they submitted their complaint.

Expand a product or issue to see its sub-products or sub-issues, where available. "},{element:Gv.STEP_7.selector,intro:"The blue show/hide icon allows you to expand or collapse specific filters."},{element:Gv.STEP_8.selector,intro:"Use the \u201cSearch within\u201d bar to find specific words or phrases in complaints. By default, this will search \u201cAll data\u201d, but you can change this using the gray dropdown menu.

Click \u201cShow advanced search tips\u201d to see some advanced ways to refine your word search."},{element:Gv.STEP_9.selector,intro:"As you apply filters and search terms, this will display how many complaints are included out of the total number of complaints published in the database."},{element:Gv.STEP_10.selector,intro:"You can export full or filtered results to CSV or JSON by selecting \u201cExport data\u201d."},{element:Gv.STEP_11.selector,intro:"Select \u201cPrint\u201d to generate a pdf of the current page."},{element:Gv.STEP_12.selector,intro:"Select the number of complaints to view per page here."},{element:Gv.STEP_13.selector,intro:"Sort complaints in the list view by \u201cNewest to oldest,\u201d \u201cOldest to newest,\u201d \u201cRelevance,\u201d and \u201cRelevance (asc).\u201d

Relevancy are based on any applied search terms."},{element:Gv.STEP_14.selector,intro:"You can see all complaints or focus on those with consumer complaint narratives.

We publish the consumer\u2019s narrative description of what happened from their complaint if the consumer opts to share it publicly and after taking steps to remove personal information."},{element:Gv.STEP_15.selector,intro:"These are your search results. As you apply filters and search terms, your results will display here. This view shows a preview of the complaint."},{element:Gv.STEP_16.selector,intro:"Click the blue ID number to see more details about a particular complaint."},{element:Gv.STEP_17.selector,intro:"To learn how to use Map and Trend views, select the view and then start the tour."}]),Yv(Rv,cr,[{element:Vv.STEP_1.selector,intro:'
Welcome to the Consumer Complaint Database!

Complaints the CFPB sends to companies for response are published in the Consumer Complaint Database after the company responds, confirming a commercial relationship with the consumer, or after 15 days, whichever comes first.

Complaints the CFPB refers to other regulators, such as complaints about depository institutions with less than $10 billion in assets, are not published in the database. This database is not a statistical sample of consumers\u2019 experiences in the marketplace.

Index

    '+Kv+"
",tooltipClass:"wide"},{element:Vv.STEP_2.selector,intro:"These links provide more information about this database."},{element:Vv.STEP_3.selector,intro:"You can change how to view complaint data by selecting the three views we have available\u2014Trends, List, and Map.

You are currently on the Trends view, which visualizes complaint data using a trend line with product and issue breakdowns.

To read individual complaints, select List view.

To view complaints by state, select Map view.",position:"top"},{element:Vv.STEP_4.selector,intro:"The \u201cFilter results by\u201d panel lets you filter complaint data. To clear filters, uncheck individual selections in the filter panel or to select \u201cClear all filters\u201d under the Search bar."},{element:Vv.STEP_5.selector,intro:"You can adjust the date range of the complaint data showed using the \u201cDate CFPB received the complaint\u201d filter.
The default date range is three years from today\u2019s date."},{element:Vv.STEP_6.selector,intro:"You can filter complaints by the product and issue the consumer selected when they submitted their complaint.

Expand a product or issue to see its sub-products or sub-issues, where available. "},{element:Vv.STEP_7.selector,intro:"The blue show/hide icon allows you to expand or collapse specific filters."},{element:Vv.STEP_8.selector,intro:"Use the \u201cSearch within\u201d bar to find specific words or phrases in complaints. By default, this will search \u201cAll data\u201d, but you can change this using the gray dropdown menu.

Click \u201cShow advanced search tips\u201d to see some advanced ways to refine your word search."},{element:Vv.STEP_9.selector,intro:"As you apply filters and search terms, this will display how many complaints are included out of the total number of complaints published in the database."},{element:Vv.STEP_10.selector,intro:"You can export full or filtered results to CSV or JSON by selecting \u201cExport data\u201d."},{element:Vv.STEP_11.selector,intro:"Select \u201cPrint\u201d to generate a pdf of the current page."},{element:Vv.STEP_12.selector,intro:"Select the dropdown to aggregate the data by product or by the company to which the CFPB sent the complaint for response."},{element:Vv.STEP_13.selector,intro:"Select this dropdown to change the time interval displayed on the trend line."},{element:Vv.STEP_14.selector,intro:"View complaint volume by product in the bar chart. Use the blue arrow by each product to view breakdowns by sub-products.

Once the product is expanded, select the \u201cVisualize\u201d link as shown below, to view trends on sub-products and issues:"},{element:Vv.STEP_15.selector,intro:"To learn how to use List and Map views, select the view and then start the tour.",position:"top"}]),Rv),Qv=(n(9183),function(){var t=Fn();return m.createElement("button",{onClick:function(){return t(Ha())},className:"tour-button"},Pi.getIcon("help-round"),"Take a tour")}),Jv=function(){var t=Fn(),e=Wn(Iv),n=Wn(mh),r=(0,m.useMemo)((function(){return Zv[n]}),[Zv,n]),i=(0,m.useRef)(),o={disableInteraction:!0,scrollToElement:!0,scrollTo:"tooltip",showStepNumbers:!1,exitOnOverlayClick:!1,exitOnEsc:!0,nextLabel:"Next",prevLabel:"Previous",doneLabel:"End Tour",steps:r};return m.createElement(m.Fragment,null,m.createElement(Qv,null),m.createElement(Bv.Rg,{enabled:e,initialStep:0,steps:r,onExit:function(){return t(Ua())},options:o,onBeforeChange:function(){return function(t){var e=t.current.introJs.currentStep();r[e]&&(".row-chart-section"===r[e].element&&_m.select("#row-chart-product .tick.expandable").dispatch("click"),new MutationObserver((function(){r.forEach((function(e,n){null!==t.current&&t.current.updateStepElement(n)}))})).observe(document,{subtree:!0,childList:!0}))}(i)},onBeforeExit:function(){return null===(t=i).current||!(t.current.introJs.currentStep()+1=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var fx=n(7196);function dx(t){var e=cx({},t.params),n=(e.queryString,hx(e,ex));return yr.forEach((function(t){"undefined"!==typeof n[t]&&(n[t]=xi(n[t]))})),xr.forEach((function(t){"undefined"!==typeof n[t]&&(n[t]=n[t].toString())})),Object.keys(n).forEach((function(t){""===n[t]&&delete n[t]})),"?"+fx.stringify(n)}var px=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rx(t,e)}(o,t);var e,n,r,i=ix(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this,t)).history=L(),e.location=e.history.location,e.defaultQS=dx(t),e.currentQS=e.location.search,e.history.listen(e._onUrlChanged.bind(ax(e))),e}return e=o,(n=[{key:"componentDidMount",value:function(){this.props.onUrlChanged(this.location)}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){var e=dx(t);e!==this.currentQS&&(this.currentQS=e,this.history.push({search:e}))}},{key:"render",value:function(){return null}},{key:"_onUrlChanged",value:function(t,e){"POP"===e&&(this.currentQS=t.search,this.props.onUrlChanged(t))}}])&&nx(e.prototype,n),r&&nx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(m.Component),mx=Ln((function(t){var e=t.map,n=t.query,r=t.trends,i=t.view,o=cx(cx(cx(cx({},e),n),r),i),a=[].concat(["searchText","searchField","tab"],yr,gr,xr),s=[].concat(a,{List:["sort","size","page"],Map:["dataNormalization","dateRange","expandedRows"],Trends:["chartType","dateRange","dateInterval","expandedRows","lens","focus","subLens"]}[n.tab]),l=Object.keys(o).filter((function(t){return s.includes(t)})).reduce((function(t,e){return t[e]=o[e],t}),{});return{params:l}}),(function(t){return{onUrlChanged:function(e){t(ya(e))}}}))(px);function gx(t){return gx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gx(t)}function yx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bx(t,e){for(var n=0;n1024){for(var e=0,n=o.length-a;ee?1:t>=e?0:NaN},i=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return r(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)>0?i=o:r=o+1}return r}}},o=i(r),a=o.right,s=o.left,l=a,c=function(t,e){null==e&&(e=u);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);nt?1:e>=t?0:NaN},d=function(t){return null===t?NaN:+t},p=function(t,e){var n,r,i=t.length,o=0,a=-1,s=0,l=0;if(null==e)for(;++a1)return l/(o-1)},m=function(t,e){var n=p(t,e);return n?Math.sqrt(n):n},g=function(t,e){var n,r,i,o=t.length,a=-1;if(null==e){for(;++a=n)for(r=i=n;++an&&(r=n),i=n)for(r=i=n;++an&&(r=n),i0)return[t];if((r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s=0?(o>=k?10:o>=S?5:o>=C?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=k?10:o>=S?5:o>=C?2:1)}function O(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=k?i*=10:o>=S?i*=5:o>=C&&(i*=2),eh;)f.pop(),--d;var p,m=new Array(d+1);for(i=0;i<=d;++i)(p=m[i]=[]).x0=i>0?f[i-1]:u,p.x1=i=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}},j=function(t,e,n){return t=v.call(t,d).sort(r),Math.ceil((n-e)/(2*(P(t,.75)-P(t,.25))*Math.pow(t.length,-1/3)))},N=function(t,e,n){return Math.ceil((n-e)/(3.5*m(t)*Math.pow(t.length,-1/3)))},L=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o=n)for(r=n;++or&&(r=n)}else for(;++o=n)for(r=n;++or&&(r=n);return r},D=function(t,e){var n,r=t.length,i=r,o=-1,a=0;if(null==e)for(;++o=0;)for(e=(r=t[i]).length;--e>=0;)n[--a]=r[e];return n},B=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o=n)for(r=n;++on&&(r=n)}else for(;++o=n)for(r=n;++on&&(r=n);return r},F=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},z=function(t,e){if(n=t.length){var n,i,o=0,a=0,s=t[a];for(null==e&&(e=r);++o0))return a;do{a.push(o=new Date(+n)),e(n,i),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(s.count=function(e,o){return r.setTime(+e),i.setTime(+o),t(r),t(i),Math.floor(n(r,i))},s.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s.filter(a?function(e){return a(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}},function(t,e,n){"use strict";n.r(e);var r=n(29),i=n(64),o=function(t){return Object(i.a)(Object(r.a)(t).call(document.documentElement))},a=0;function s(){return new l}function l(){this._="@"+(++a).toString(36)}l.prototype=s.prototype={constructor:l,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var c=n(66),u=n(84),h=n(44),f=n(32),d=n(30),p=n(23),m=function(t){return"string"==typeof t?new p.a([document.querySelectorAll(t)],[document.documentElement]):new p.a([null==t?[]:t],p.c)},g=n(43),y=n(65),b=n(67),v=n(85),x=n(46),w=function(t,e){null==e&&(e=Object(x.a)().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n180||n<-180?n-360*Math.round(n/360):n):Object(r.a)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?s:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Object(r.a)(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?i(t,n):Object(r.a)(isNaN(t)?e:t)}},function(t,e,n){"use strict";n.d(e,"g",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"k",(function(){return l})),n.d(e,"m",(function(){return c})),n.d(e,"i",(function(){return u})),n.d(e,"a",(function(){return h})),n.d(e,"e",(function(){return f})),n.d(e,"h",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"l",(function(){return m})),n.d(e,"n",(function(){return g})),n.d(e,"j",(function(){return y})),n.d(e,"b",(function(){return b})),n.d(e,"f",(function(){return v}));var r=n(1),i=n(3);function o(t){return Object(r.a)((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.c)/i.e}))}var a=o(0),s=o(1),l=o(2),c=o(3),u=o(4),h=o(5),f=o(6),d=a.range,p=s.range,m=l.range,g=c.range,y=u.range,b=h.range,v=f.range},function(t,e,n){"use strict";n.d(e,"g",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"k",(function(){return l})),n.d(e,"m",(function(){return c})),n.d(e,"i",(function(){return u})),n.d(e,"a",(function(){return h})),n.d(e,"e",(function(){return f})),n.d(e,"h",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"l",(function(){return m})),n.d(e,"n",(function(){return g})),n.d(e,"j",(function(){return y})),n.d(e,"b",(function(){return b})),n.d(e,"f",(function(){return v}));var r=n(1),i=n(3);function o(t){return Object(r.a)((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/i.e}))}var a=o(0),s=o(1),l=o(2),c=o(3),u=o(4),h=o(5),f=o(6),d=a.range,p=s.range,m=l.range,g=c.range,y=u.range,b=h.range,v=f.range},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"e",(function(){return x})),n.d(e,"h",(function(){return k})),n.d(e,"g",(function(){return S})),n.d(e,"b",(function(){return C})),n.d(e,"f",(function(){return P}));var r=n(15);function i(){}var o=.7,a=1/o,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=new RegExp("^rgb\\("+[c,c,c]+"\\)$"),d=new RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),p=new RegExp("^rgba\\("+[c,c,c,l]+"\\)$"),m=new RegExp("^hsl\\("+[l,c,c]+"\\)$"),g=new RegExp("^hsla\\("+[l,c,c,l]+"\\)$"),y={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 b(){return this.rgb().formatHex()}function v(){return this.rgb().formatRgb()}function x(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=u.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?w(e):3===n?new C(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new C(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new C(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=h.exec(t))?new C(e[1],e[2],e[3],1):(e=f.exec(t))?new C(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?_(e[1],e[2],e[3],e[4]):(e=p.exec(t))?_(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=m.exec(t))?M(e[1],e[2]/100,e[3]/100,1):(e=g.exec(t))?M(e[1],e[2]/100,e[3]/100,e[4]):y.hasOwnProperty(t)?w(y[t]):"transparent"===t?new C(NaN,NaN,NaN,0):null}function w(t){return new C(t>>16&255,t>>8&255,255&t,1)}function _(t,e,n,r){return r<=0&&(t=e=n=NaN),new C(t,e,n,r)}function k(t){return t instanceof i||(t=x(t)),t?new C((t=t.rgb()).r,t.g,t.b,t.opacity):new C}function S(t,e,n,r){return 1===arguments.length?k(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function E(){return"#"+O(this.r)+O(this.g)+O(this.b)}function T(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function O(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function M(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new j(t,e,n,r)}function A(t){if(t instanceof j)return new j(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=x(t)),!t)return new j;if(t instanceof j)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,l=a-o,c=(a+o)/2;return l?(s=e===a?(n-r)/l+6*(n0&&c<1?0:s,new j(s,l,c,t.opacity)}function P(t,e,n,r){return 1===arguments.length?A(t):new j(t,e,n,null==r?1:r)}function j(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function N(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Object(r.a)(i,x,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:b,formatHex:b,formatHsl:function(){return A(this).formatHsl()},formatRgb:v,toString:v}),Object(r.a)(C,S,Object(r.b)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,formatHex:E,formatRgb:T,toString:T})),Object(r.a)(j,P,Object(r.b)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new j(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new j(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new C(N(t>=240?t-240:t+120,i,r),N(t,i,r),N(t<120?t+240:t-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},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e,n){"use strict";n.r(e);var r,i,o=n(23),a=n(79),l=0,c=0,u=0,h=0,f=0,d=0,p="object"==("undefined"===typeof performance?"undefined":s(performance))&&performance.now?performance:Date,m="object"==("undefined"===typeof window?"undefined":s(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function g(){return f||(m(y),f=p.now()+d)}function y(){f=0}function b(){this._call=this._time=this._next=null}function v(t,e,n){var r=new b;return r.restart(t,e,n),r}function x(){f=(h=p.now())+d,l=c=0;try{!function(){g(),++l;for(var t,e=r;e;)(t=f-e._time)>=0&&e._call.call(null,t),e=e._next;--l}()}finally{l=0,function(){for(var t,e,n=r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,_(o)}(),f=0}}function w(){var t=p.now(),e=t-h;e>1e3&&(d-=e,h=t)}function _(t){l||(c&&(c=clearTimeout(c)),t-f>24?(t<1/0&&(c=setTimeout(x,t-p.now()-d)),u&&(u=clearInterval(u))):(u||(h=p.now(),u=setInterval(w,1e3)),l=1,m(x)))}b.prototype=v.prototype={constructor:b,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?g():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,_()},stop:function(){this._call&&(this._call=null,this._time=1/0,_())}};var k=function(t,e,n){var r=new b;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},S=Object(a.a)("start","end","cancel","interrupt"),C=[],E=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(l){var c,u,h,f;if(1!==n.state)return s();for(c in i)if((f=i[c]).name===n.name){if(3===f.state)return k(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c0)throw new Error("too late; already scheduled");return n}function O(t,e){var n=M(t,e);if(n.state>3)throw new Error("too late; already running");return n}function M(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var A=function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}},P=n(77),j=n(44);function N(t,e){var n,r;return function(){var i=O(this,t),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?T:O;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var it=n(43),ot=n(65),at=o.b.prototype.constructor,st=n(67);function lt(t){return function(){this.style.removeProperty(t)}}function ct(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function ut(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&ct(t,o,n)),r}return o._value=e,o}function ht(t){return function(e){this.textContent=t.call(this,e)}}function ft(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&ht(r)),e}return r._value=t,r}var dt=0;function pt(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function mt(t){return Object(o.b)().transition(t)}function gt(){return++dt}var yt=o.b.prototype;pt.prototype=mt.prototype={constructor:pt,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(it.a)(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a1&&n.name===e)return new pt([[t]],xt,e,+r);return null};n.d(e,"transition",(function(){return mt})),n.d(e,"active",(function(){return wt})),n.d(e,"interrupt",(function(){return A}))},function(t,e,n){"use strict";n.r(e);var r=n(56);n.d(e,"formatDefaultLocale",(function(){return r.a})),n.d(e,"format",(function(){return r.b})),n.d(e,"formatPrefix",(function(){return r.c}));var i=n(68);n.d(e,"formatLocale",(function(){return i.a}));var o=n(40);n.d(e,"formatSpecifier",(function(){return o.b})),n.d(e,"FormatSpecifier",(function(){return o.a}));var a=n(80);n.d(e,"precisionFixed",(function(){return a.a}));var s=n(81);n.d(e,"precisionPrefix",(function(){return s.a}));var l=n(82);n.d(e,"precisionRound",(function(){return l.a}))},function(t,e,n){"use strict";var r;void 0===(r=function(){return{colorSchemas:{britecharts:["#6aedc7","#39c2c9","#ffce00","#ffa71a","#f866b9","#998ce3"],grey:["#F8F8FA","#EFF2F5","#D2D6DF","#C3C6CF","#ADB0B6","#666A73","#45494E","#363A43","#282C35"],orange:["#fcc870","#ffa71a","#fb8825","#f6682f","#db5a2c","#bf4c28","#a43b1c","#892a10","#f9e9c5"],blueGreen:["#ccf7f6","#70e4e0","#00d8d2","#00acaf","#007f8c","#005e66","#003c3f","#002d2f","#0d2223"],teal:["#ccfffe","#94f7f4","#00fff8","#1de1e1","#39c2c9","#2e9a9d","#227270","#1a5957","#133f3e"],green:["#edfff7","#d7ffef","#c0ffe7","#95f5d7","#6aedc7","#59c3a3","#479980","#34816a","#206953"],yellow:["#f9f2b3","#fbe986","#fce05a","#fed72d","#ffce00","#fcc11c","#f9b438","#eda629","#e09819"],pink:["#fdd1ea","#fb9cd2","#f866b9","#fc40b6","#ff1ab3","#e3239d","#c62c86","#a62073","#85135f"],purple:["#ddd6fc","#bbb1f0","#998ce3","#8e6bc1","#824a9e","#77337f","#6b1c60","#591650","#470f3f"],red:["#ffd8d4","#ffb5b0","#ff938c","#ff766c","#ff584c","#f04b42","#e03d38","#be2e29","#9c1e19"]},colorSchemasHuman:{britecharts:"Britecharts Default",grey:"Britecharts Grey",orange:"Orange",blueGreen:"Blue",teal:"Light Blue",green:"Green",yellow:"Yellow",pink:"Pink",purple:"Purple",red:"Red"},colorGradients:{greenBlue:["#39C7EA","#4CDCBA"],orangePink:["#FBC670","#F766B8"],bluePurple:["#3DC3C9","#824a9e"]},colorGradientsHuman:{greenBlue:"Green to Blue",orangePink:"Orange to Pink",bluePurple:"Blue to Purple"},singleColors:{aloeGreen:["#7bdcc0"],greenColor:["#6aedc7"],blueColor:["#39c2c9"],yellowColor:["#ffce00"],orangeColor:["#ffa71a"],pinkColor:["#f866b9"],purpleColor:["#998ce3"]},singleColorsHuman:{aloeGreen:"Aloe Green",greenColor:"Green",blueColor:"Blue",yellowColor:"Yellow",orangeColor:"Orange",pinkColor:"Pink",purpleColor:"Purple"}}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";function r(t){return+t}function i(t){return t*t}function o(t){return t*(2-t)}function a(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}n.r(e);var s=n(49),l=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),c=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),u=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),h=Math.PI,f=h/2;function d(t){return 1-Math.cos(t*f)}function p(t){return Math.sin(t*f)}function m(t){return(1-Math.cos(h*t))/2}function g(t){return Math.pow(2,10*t-10)}function y(t){return 1-Math.pow(2,-10*t)}function b(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function v(t){return 1-Math.sqrt(1-t*t)}function x(t){return Math.sqrt(1- --t*t)}function w(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var _=7.5625;function k(t){return 1-S(1-t)}function S(t){return(t=+t)<4/11?_*t*t:t<8/11?_*(t-=6/11)*t+3/4:t<10/11?_*(t-=9/11)*t+15/16:_*(t-=21/22)*t+63/64}function C(t){return((t*=2)<=1?1-S(1-t):S(t-1)+1)/2}var E=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),T=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),O=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158),M=2*Math.PI,A=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=M);function i(t){return e*Math.pow(2,10*--t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*M)},i.period=function(n){return t(e,n)},i}(1,.3),P=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=M);function i(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*M)},i.period=function(n){return t(e,n)},i}(1,.3),j=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=M);function i(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((r-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*M)},i.period=function(n){return t(e,n)},i}(1,.3);n.d(e,"easeLinear",(function(){return r})),n.d(e,"easeQuad",(function(){return a})),n.d(e,"easeQuadIn",(function(){return i})),n.d(e,"easeQuadOut",(function(){return o})),n.d(e,"easeQuadInOut",(function(){return a})),n.d(e,"easeCubic",(function(){return s.b})),n.d(e,"easeCubicIn",(function(){return s.a})),n.d(e,"easeCubicOut",(function(){return s.c})),n.d(e,"easeCubicInOut",(function(){return s.b})),n.d(e,"easePoly",(function(){return u})),n.d(e,"easePolyIn",(function(){return l})),n.d(e,"easePolyOut",(function(){return c})),n.d(e,"easePolyInOut",(function(){return u})),n.d(e,"easeSin",(function(){return m})),n.d(e,"easeSinIn",(function(){return d})),n.d(e,"easeSinOut",(function(){return p})),n.d(e,"easeSinInOut",(function(){return m})),n.d(e,"easeExp",(function(){return b})),n.d(e,"easeExpIn",(function(){return g})),n.d(e,"easeExpOut",(function(){return y})),n.d(e,"easeExpInOut",(function(){return b})),n.d(e,"easeCircle",(function(){return w})),n.d(e,"easeCircleIn",(function(){return v})),n.d(e,"easeCircleOut",(function(){return x})),n.d(e,"easeCircleInOut",(function(){return w})),n.d(e,"easeBounce",(function(){return S})),n.d(e,"easeBounceIn",(function(){return k})),n.d(e,"easeBounceOut",(function(){return S})),n.d(e,"easeBounceInOut",(function(){return C})),n.d(e,"easeBack",(function(){return O})),n.d(e,"easeBackIn",(function(){return E})),n.d(e,"easeBackOut",(function(){return T})),n.d(e,"easeBackInOut",(function(){return O})),n.d(e,"easeElastic",(function(){return P})),n.d(e,"easeElasticIn",(function(){return A})),n.d(e,"easeElasticOut",(function(){return P})),n.d(e,"easeElasticInOut",(function(){return j}))},function(t,e,n){"use strict";n.r(e);var r=n(0);function i(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function o(t,e){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(e).domain(t)}return this}var a=n(25),s=Array.prototype,l=s.map,c=s.slice,u={name:"implicit"};function h(){var t=Object(a.map)(),e=[],n=[],r=u;function o(i){var o=i+"",a=t.get(o);if(!a){if(r!==u)return r;t.set(o,a=e.push(i))}return n[(a-1)%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=Object(a.map)();for(var r,i,s=-1,l=n.length;++sr&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function k(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i2?S:k,i=o=null,d}function d(e){return isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(h(e)))}return d.invert=function(n){return h(e((o||(o=r(s,a.map(t),g.a)))(n)))},d.domain=function(t){return arguments.length?(a=l.call(t,b),h===x||(h=_(a)),f()):a.slice()},d.range=function(t){return arguments.length?(s=c.call(t),f()):s.slice()},d.rangeRound=function(t){return s=c.call(t),u=y.a,f()},d.clamp=function(t){return arguments.length?(h=t?_(a):x,d):h!==x},d.interpolate=function(t){return arguments.length?(u=t,f()):u},d.unknown=function(t){return arguments.length?(n=t,d):n},function(n,r){return t=n,e=r,f()}}function T(t,e){return E()(t,e)}var O=n(40),M=n(81),A=n(56),P=n(82),j=n(80),N=function(t,e,n,i){var o,a=Object(r.tickStep)(t,e,n);switch((i=Object(O.b)(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(o=Object(M.a)(a,s))||(i.precision=o),Object(A.c)(i,s);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=Object(P.a)(a,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=Object(j.a)(a))||(i.precision=o-2*("%"===i.type))}return Object(A.b)(i)};function L(t){var e=t.domain;return t.ticks=function(t){var n=e();return Object(r.ticks)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return N(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,o=e(),a=0,s=o.length-1,l=o[a],c=o[s];return c0?(l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i,i=Object(r.tickIncrement)(l,c,n)):i<0&&(l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i,i=Object(r.tickIncrement)(l,c,n)),i>0?(o[a]=Math.floor(l/i)*i,o[s]=Math.ceil(c/i)*i,e(o)):i<0&&(o[a]=Math.ceil(l*i)/i,o[s]=Math.floor(c*i)/i,e(o)),t},t}function D(){var t=T(x,x);return t.copy=function(){return C(t,D())},i.apply(t,arguments),L(t)}function R(t){var e;function n(t){return isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=l.call(e,b),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return R(t).unknown(e)},t=arguments.length?l.call(t,b):[0,1],L(n)}var I=function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a0){for(;dc)break;g.push(f)}}else for(;d=1;--h)if(!((f=u*h)c)break;g.push(f)}}else g=Object(r.ticks)(d,p,Math.min(p-d,m)).map(n);return i?g.reverse():g},i.tickFormat=function(t,r){if(null==r&&(r=10===a?".0e":","),"function"!=typeof r&&(r=Object(A.b)(r)),t===1/0)return r;null==t&&(t=10);var o=Math.max(1,a*t/i.ticks().length);return function(t){var i=t/n(Math.round(e(t)));return i*a0?o[r-1]:e[0],r=o?[a[o-1],n]:[a[r-1],a[r]]},l.unknown=function(e){return arguments.length?(t=e,l):l},l.thresholds=function(){return a.slice()},l.copy=function(){return rt().domain([e,n]).range(s).unknown(t)},i.apply(L(l),arguments)}function it(){var t,e=[.5],n=[0,1],o=1;function a(i){return i<=i?n[Object(r.bisect)(e,i,0,o)]:t}return a.domain=function(t){return arguments.length?(e=c.call(t),o=Math.min(e.length,n.length-1),a):e.slice()},a.range=function(t){return arguments.length?(n=c.call(t),o=Math.min(e.length,n.length-1),a):n.slice()},a.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return it().domain(e).range(n).unknown(t)},i.apply(a,arguments)}var ot=n(33),at=n(69),st=n(5),lt=n(53),ct=n(70),ut=n(71),ht=n(51),ft=n(52),dt=n(21);function pt(t){return new Date(t)}function mt(t){return t instanceof Date?+t:+new Date(+t)}function gt(t,e,n,i,o,a,s,c,u){var h=T(x,x),f=h.invert,d=h.domain,p=u(".%L"),m=u(":%S"),g=u("%I:%M"),y=u("%I %p"),b=u("%a %d"),v=u("%b %d"),w=u("%B"),_=u("%Y"),k=[[s,1,1e3],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[i,1,864e5],[i,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function S(r){return(s(r)svg{background:"+this.chartBackground+";padding: 20px;}"}};function s(t,e){if(t){t.attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg");var n=i.initializeSerializer()(t.node());return n=function(t){return navigator.userAgent.search("FireFox")>-1?t.replace(/url.*"\)/,'url("linearGradient[id*="-gradient-"]");'):t}(n),function(t){return t.replace(">",">"+a.styleBackgroundString)}(n=h.call(this,n,e,parseInt(t.attr("width"),10)))}}function l(t){var e=new Image;return e.src=""+a.imageSourceBase+o(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode("0x"+e)}))),e}function c(t,e){return e.getContext("2d").drawImage(t,0,0),e}function u(t,e,n){n.preventDefault(),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.defaultFilename,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"image/png",r=t.toDataURL(n),i=document.createElement("a");i.href=r,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i)}(c(this,t),e)}function h(t,e,n){if(!e||!n)return t;var i=r.grey;return t.replace(/ '+e+" \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',donut:'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',line:'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',row:'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',stackedArea:'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";n.r(e);var r=Array.prototype.slice,i=function(t){return t};function o(t){return"translate("+(t+.5)+",0)"}function a(t){return"translate(0,"+(t+.5)+")"}function s(t){return function(e){return+t(e)}}function l(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function c(){return!this.__axis}function u(t,e){var n=[],u=null,h=null,f=6,d=6,p=3,m=1===t||4===t?-1:1,g=4===t||2===t?"x":"y",y=1===t||3===t?o:a;function b(r){var o=null==u?e.ticks?e.ticks.apply(e,n):e.domain():u,a=null==h?e.tickFormat?e.tickFormat.apply(e,n):i:h,b=Math.max(f,0)+p,v=e.range(),x=+v[0]+.5,w=+v[v.length-1]+.5,_=(e.bandwidth?l:s)(e.copy()),k=r.selection?r.selection():r,S=k.selectAll(".domain").data([null]),C=k.selectAll(".tick").data(o,e).order(),E=C.exit(),T=C.enter().append("g").attr("class","tick"),O=C.select("line"),M=C.select("text");S=S.merge(S.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),C=C.merge(T),O=O.merge(T.append("line").attr("stroke","currentColor").attr(g+"2",m*f)),M=M.merge(T.append("text").attr("fill","currentColor").attr(g,m*b).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),r!==k&&(S=S.transition(r),C=C.transition(r),O=O.transition(r),M=M.transition(r),E=E.transition(r).attr("opacity",1e-6).attr("transform",(function(t){return isFinite(t=_(t))?y(t):this.getAttribute("transform")})),T.attr("opacity",1e-6).attr("transform",(function(t){var e=this.parentNode.__axis;return y(e&&isFinite(e=e(t))?e:_(t))}))),E.remove(),S.attr("d",4===t||2==t?d?"M"+m*d+","+x+"H0.5V"+w+"H"+m*d:"M0.5,"+x+"V"+w:d?"M"+x+","+m*d+"V0.5H"+w+"V"+m*d:"M"+x+",0.5H"+w),C.attr("opacity",1).attr("transform",(function(t){return y(_(t))})),O.attr(g+"2",m*f),M.attr(g,m*b).text(a),k.filter(c).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),k.each((function(){this.__axis=_}))}return b.scale=function(t){return arguments.length?(e=t,b):e},b.ticks=function(){return n=r.call(arguments),b},b.tickArguments=function(t){return arguments.length?(n=null==t?[]:r.call(t),b):n.slice()},b.tickValues=function(t){return arguments.length?(u=null==t?null:r.call(t),b):u&&u.slice()},b.tickFormat=function(t){return arguments.length?(h=t,b):h},b.tickSize=function(t){return arguments.length?(f=d=+t,b):f},b.tickSizeInner=function(t){return arguments.length?(f=+t,b):f},b.tickSizeOuter=function(t){return arguments.length?(d=+t,b):d},b.tickPadding=function(t){return arguments.length?(p=+t,b):p},b}function h(t){return u(1,t)}function f(t){return u(2,t)}function d(t){return u(3,t)}function p(t){return u(4,t)}n.d(e,"axisTop",(function(){return h})),n.d(e,"axisRight",(function(){return f})),n.d(e,"axisBottom",(function(){return d})),n.d(e,"axisLeft",(function(){return p}))},function(t,e,n){"use strict";n.r(e);var r=n(41),i=n(61),o=n(42),a=n(58),s=n(60),l=function(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}},c=n(4),u=function(t,e){var n=Object(c.c)(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}},h=n(14),f=n(31),d=n(62),p=n(83),m=n(59),g=n(77),y=Math.SQRT2;function b(t){return((t=Math.exp(t))+1/t)/2}var v=function(t,e){var n,r,i=t[0],o=t[1],a=t[2],s=e[0],l=e[1],c=e[2],u=s-i,h=l-o,f=u*u+h*h;if(f<1e-12)r=Math.log(c/a)/y,n=function(t){return[i+t*u,o+t*h,a*Math.exp(y*t*r)]};else{var d=Math.sqrt(f),p=(c*c-a*a+4*f)/(2*a*2*d),m=(c*c-a*a-4*f)/(2*c*2*d),g=Math.log(Math.sqrt(p*p+1)-p),v=Math.log(Math.sqrt(m*m+1)-m);r=(v-g)/y,n=function(t){var e,n=t*r,s=b(g),l=a/(2*d)*(s*(e=y*n+g,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(g));return[i+l*u,o+l*h,a*s/b(y*n+g)]}}return n.duration=1e3*r,n},x=n(36),w=n(7);function _(t){return function(e,n){var r=t((e=Object(w.f)(e)).h,(n=Object(w.f)(n)).h),i=Object(c.a)(e.s,n.s),o=Object(c.a)(e.l,n.l),a=Object(c.a)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}var k=_(c.c),S=_(c.a),C=n(50);function E(t,e){var n=Object(c.a)((t=Object(C.a)(t)).l,(e=Object(C.a)(e)).l),r=Object(c.a)(t.a,e.a),i=Object(c.a)(t.b,e.b),o=Object(c.a)(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=o(e),t+""}}function T(t){return function(e,n){var r=t((e=Object(C.c)(e)).h,(n=Object(C.c)(n)).h),i=Object(c.a)(e.c,n.c),o=Object(c.a)(e.l,n.l),a=Object(c.a)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=a(t),e+""}}}var O=T(c.c),M=T(c.a),A=n(78);function P(t){return function e(n){function r(e,r){var i=t((e=Object(A.a)(e)).h,(r=Object(A.a)(r)).h),o=Object(c.a)(e.s,r.s),a=Object(c.a)(e.l,r.l),s=Object(c.a)(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=a(Math.pow(t,n)),e.opacity=s(t),e+""}}return n=+n,r.gamma=e,r}(1)}var j=P(c.c),N=P(c.a);function L(t,e){for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);ne?1:t>=e?0:NaN}s.prototype={constructor:s,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var h=n(44);function f(t){return function(){this.removeAttribute(t)}}function d(t){return function(){this.removeAttributeNS(t.space,t.local)}}function p(t,e){return function(){this.setAttribute(t,e)}}function m(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function g(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function y(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var b=n(67);function v(t){return function(){delete this[t]}}function x(t,e){return function(){this[t]=e}}function w(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function _(t){return t.trim().split(/^|\s+/)}function k(t){return t.classList||new S(t)}function S(t){this._node=t,this._names=_(t.getAttribute("class")||"")}function C(t,e){for(var n=k(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var B=n(29);function F(){return null}function z(){var t=this.parentNode;t&&t.removeChild(this)}function U(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function H(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var W=n(37),G=n(45);function V(t,e,n){var r=Object(G.a)(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function Y(t,e){return function(){return V(this,t,e)}}function X(t,e){return function(){return V(this,t,e.apply(this,arguments))}}n.d(e,"c",(function(){return q})),n.d(e,"a",(function(){return $}));var q=[null];function $(t,e){this._groups=t,this._parents=e}function K(){return new $([[document.documentElement]],q)}$.prototype=K.prototype={constructor:$,select:function(t){"function"!=typeof t&&(t=Object(r.a)(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o=k&&(k=_+1);!(w=v[k])&&++k=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=u);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?v:"function"==typeof e?w:x)(t,e)):this.node()[t]},classed:function(t,e){var n=_(t+"");if(arguments.length<2){for(var r=k(this.node()),i=-1,o=n.length;++i=r.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var c,u,h,f=-1,d=n.length,p=r[i++],m=o(),g=s();++fr.length)return n;var a,s=i[o-1];return null!=e&&o>=r.length?a=n.entries():(a=[],n.each((function(e,n){a.push({key:n,values:t(e,o)})}))),null!=s?a.sort((function(t,e){return s(t.key,e.key)})):a}(a(t,0,c,u),0)},key:function(t){return r.push(t),n},sortKeys:function(t){return i[r.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}};function s(){return{}}function l(t,e,n){t[e]=n}function c(){return o()}function u(t,e,n){t.set(e,n)}function h(){}var f=o.prototype;function d(t,e){var n=new h;if(t instanceof h)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r1&&void 0!==arguments[1]?arguments[1]:12,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Arial",r=document.createElement("canvas"),i=r.getContext("2d");return i.font=e+"px "+n,i.measureText(t).width},wrapText:function(t,n,i,o){var a=e.select(o),s=a.text().split(/\s+/).reverse(),l=void 0,c=[],u=0,h=a.attr("y"),f=parseFloat(a.attr("dy")),d=.6*n,p=a.text(null).append("tspan").attr("x",t).attr("y",h-5).attr("dy",f+"em").classed("value",!0).style("font-size",n+"px");for(p.text(s.pop()),p=a.append("tspan").classed(r,!0).attr("x",t).attr("y",h+10).attr("dy",1.08*++u+f+"em").style("font-size",d+"px");l=s.pop();)c.push(l),p.text(c.join(" ")),p.node()&&p.node().getComputedTextLength()>i-50&&(c.pop(),p.text(c.join(" ")),c=[l],p=a.append("tspan").classed(r,!0).attr("x",t).attr("y",h+10).attr("dy",1.08*++u+f+"em").text(l).style("font-size",d+"px"))},wrapTextWithEllipses:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1.2;t.each((function(){var a,s,l,c,u,h,f;for(a=(t=e.select(this)).text().split(/\s+/).reverse(),l=[],c=0,u=t.attr("y"),h=parseFloat(t.attr("dy")),f=t.text(null).append("tspan").attr("x",r).attr("y",u).attr("dy",h+"em");s=a.pop();)if(l.push(s),f.text(l.join(" ")),f.node()&&f.node().getComputedTextLength()>n){if(l.pop(),f.text(l.join(" ")),!(c1e-6)if(Math.abs(h*l-c*u)>1e-6&&o){var d=n-a,p=i-s,m=l*l+c*c,g=d*d+p*p,y=Math.sqrt(m),b=Math.sqrt(f),v=o*Math.tan((r-Math.acos((m+f-g)/(2*y*b)))/2),x=v/b,w=v/y;Math.abs(x-1)>1e-6&&(this._+="L"+(t+x*u)+","+(e+x*h)),this._+="A"+o+","+o+",0,0,"+ +(h*d>u*p)+","+(this._x1=t+w*l)+","+(this._y1=e+w*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,a,s,l){t=+t,e=+e,l=!!l;var c=(n=+n)*Math.cos(a),u=n*Math.sin(a),h=t+c,f=e+u,d=1^l,p=l?a-s:s-a;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+h+","+f:(Math.abs(this._x1-h)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+h+","+f),n&&(p<0&&(p=p%i+i),p>o?this._+="A"+n+","+n+",0,1,"+d+","+(t-c)+","+(e-u)+"A"+n+","+n+",0,1,"+d+","+(this._x1=h)+","+(this._y1=f):p>1e-6&&(this._+="A"+n+","+n+",0,"+ +(p>=r)+","+d+","+(this._x1=t+n*Math.cos(s))+","+(this._y1=e+n*Math.sin(s))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var l=s,c=function(t){return function(){return t}},u=Math.abs,h=Math.atan2,f=Math.cos,d=Math.max,p=Math.min,m=Math.sin,g=Math.sqrt,y=Math.PI,b=y/2,v=2*y;function x(t){return t>1?0:t<-1?y:Math.acos(t)}function w(t){return t>=1?b:t<=-1?-b:Math.asin(t)}function _(t){return t.innerRadius}function k(t){return t.outerRadius}function S(t){return t.startAngle}function C(t){return t.endAngle}function E(t){return t&&t.padAngle}function T(t,e,n,r,i,o,a,s){var l=n-t,c=r-e,u=a-i,h=s-o,f=h*l-u*c;if(!(f*f<1e-12))return[t+(f=(u*(e-o)-h*(t-i))/f)*l,e+f*c]}function O(t,e,n,r,i,o,a){var s=t-n,l=e-r,c=(a?o:-o)/g(s*s+l*l),u=c*l,h=-c*s,f=t+u,p=e+h,m=n+u,y=r+h,b=(f+m)/2,v=(p+y)/2,x=m-f,w=y-p,_=x*x+w*w,k=i-o,S=f*y-m*p,C=(w<0?-1:1)*g(d(0,k*k*_-S*S)),E=(S*w-x*C)/_,T=(-S*x-w*C)/_,O=(S*w+x*C)/_,M=(-S*x+w*C)/_,A=E-b,P=T-v,j=O-b,N=M-v;return A*A+P*P>j*j+N*N&&(E=O,T=M),{cx:E,cy:T,x01:-u,y01:-h,x11:E*(i/k-1),y11:T*(i/k-1)}}var M=function(){var t=_,e=k,n=c(0),r=null,i=S,o=C,a=E,s=null;function d(){var c,d,_=+t.apply(this,arguments),k=+e.apply(this,arguments),S=i.apply(this,arguments)-b,C=o.apply(this,arguments)-b,E=u(C-S),M=C>S;if(s||(s=c=l()),k<_&&(d=k,k=_,_=d),k>1e-12)if(E>v-1e-12)s.moveTo(k*f(S),k*m(S)),s.arc(0,0,k,S,C,!M),_>1e-12&&(s.moveTo(_*f(C),_*m(C)),s.arc(0,0,_,C,S,M));else{var A,P,j=S,N=C,L=S,D=C,R=E,I=E,B=a.apply(this,arguments)/2,F=B>1e-12&&(r?+r.apply(this,arguments):g(_*_+k*k)),z=p(u(k-_)/2,+n.apply(this,arguments)),U=z,H=z;if(F>1e-12){var W=w(F/_*m(B)),G=w(F/k*m(B));(R-=2*W)>1e-12?(L+=W*=M?1:-1,D-=W):(R=0,L=D=(S+C)/2),(I-=2*G)>1e-12?(j+=G*=M?1:-1,N-=G):(I=0,j=N=(S+C)/2)}var V=k*f(j),Y=k*m(j),X=_*f(D),q=_*m(D);if(z>1e-12){var $,K=k*f(N),Z=k*m(N),Q=_*f(L),J=_*m(L);if(E1e-12?H>1e-12?(A=O(Q,J,V,Y,k,H,M),P=O(K,Z,X,q,k,H,M),s.moveTo(A.cx+A.x01,A.cy+A.y01),H1e-12&&R>1e-12?U>1e-12?(A=O(X,q,K,Z,_,-U,M),P=O(V,Y,Q,J,_,-U,M),s.lineTo(A.cx+A.x01,A.cy+A.y01),U=h;--f)s.point(y[f],b[f]);s.lineEnd(),s.areaEnd()}g&&(y[u]=+t(d,u,c),b[u]=+n(d,u,c),s.point(e?+e(d,u,c):y[u],r?+r(d,u,c):b[u]))}if(p)return s=null,p+""||null}function h(){return L().defined(i).curve(a).context(o)}return u.x=function(n){return arguments.length?(t="function"==typeof n?n:c(+n),e=null,u):t},u.x0=function(e){return arguments.length?(t="function"==typeof e?e:c(+e),u):t},u.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:c(+t),u):e},u.y=function(t){return arguments.length?(n="function"==typeof t?t:c(+t),r=null,u):n},u.y0=function(t){return arguments.length?(n="function"==typeof t?t:c(+t),u):n},u.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:c(+t),u):r},u.lineX0=u.lineY0=function(){return h().x(t).y(n)},u.lineY1=function(){return h().x(t).y(r)},u.lineX1=function(){return h().x(e).y(n)},u.defined=function(t){return arguments.length?(i="function"==typeof t?t:c(!!t),u):i},u.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),u):a},u.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),u):o},u},R=function(t,e){return et?1:e>=t?0:NaN},I=function(t){return t},B=function(){var t=I,e=R,n=null,r=c(0),i=c(v),o=c(0);function a(a){var s,l,c,u,h,f=a.length,d=0,p=new Array(f),m=new Array(f),g=+r.apply(this,arguments),y=Math.min(v,Math.max(-v,i.apply(this,arguments)-g)),b=Math.min(Math.abs(y)/f,o.apply(this,arguments)),x=b*(y<0?-1:1);for(s=0;s0&&(d+=h);for(null!=e?p.sort((function(t,n){return e(m[t],m[n])})):null!=n&&p.sort((function(t,e){return n(a[t],a[e])})),s=0,c=d?(y-f*x)/d:0;s0?h*c:0)+x,m[l]={data:a[l],index:s,value:h,startAngle:g,endAngle:u,padAngle:b};return m}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:c(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:c(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:c(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:c(+t),a):o},a},F=U(P);function z(t){this._curve=t}function U(t){function e(e){return new z(t(e))}return e._curve=t,e}function H(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(U(t)):e()._curve},t}z.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var W=function(){return H(L().curve(F))},G=function(){var t=D().curve(F),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return H(n())},delete t.lineX0,t.lineEndAngle=function(){return H(r())},delete t.lineX1,t.lineInnerRadius=function(){return H(i())},delete t.lineY0,t.lineOuterRadius=function(){return H(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(U(t)):e()._curve},t},V=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]},Y=Array.prototype.slice;function X(t){return t.source}function q(t){return t.target}function $(t){var e=X,n=q,r=j,i=N,o=null;function a(){var a,s=Y.call(arguments),c=e.apply(this,s),u=n.apply(this,s);if(o||(o=a=l()),t(o,+r.apply(this,(s[0]=c,s)),+i.apply(this,s),+r.apply(this,(s[0]=u,s)),+i.apply(this,s)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(t){return arguments.length?(n=t,a):n},a.x=function(t){return arguments.length?(r="function"==typeof t?t:c(+t),a):r},a.y=function(t){return arguments.length?(i="function"==typeof t?t:c(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function K(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function Z(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function Q(t,e,n,r,i){var o=V(e,n),a=V(e,n=(n+i)/2),s=V(r,n),l=V(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],s[0],s[1],l[0],l[1])}function J(){return $(K)}function tt(){return $(Z)}function et(){var t=$(Q);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var nt={draw:function(t,e){var n=Math.sqrt(e/y);t.moveTo(n,0),t.arc(0,0,n,0,v)}},rt={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},it=Math.sqrt(1/3),ot=2*it,at={draw:function(t,e){var n=Math.sqrt(e/ot),r=n*it;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},st=Math.sin(y/10)/Math.sin(7*y/10),lt=Math.sin(v/10)*st,ct=-Math.cos(v/10)*st,ut={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=lt*n,i=ct*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var a=v*o/5,s=Math.cos(a),l=Math.sin(a);t.lineTo(l*n,-s*n),t.lineTo(s*r-l*i,l*r+s*i)}t.closePath()}},ht={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},ft=Math.sqrt(3),dt={draw:function(t,e){var n=-Math.sqrt(e/(3*ft));t.moveTo(0,2*n),t.lineTo(-ft*n,-n),t.lineTo(ft*n,-n),t.closePath()}},pt=Math.sqrt(3)/2,mt=1/Math.sqrt(12),gt=3*(mt/2+1),yt={draw:function(t,e){var n=Math.sqrt(e/gt),r=n/2,i=n*mt,o=r,a=n*mt+n,s=-o,l=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,l),t.lineTo(-.5*r-pt*i,pt*r+-.5*i),t.lineTo(-.5*o-pt*a,pt*o+-.5*a),t.lineTo(-.5*s-pt*l,pt*s+-.5*l),t.lineTo(-.5*r+pt*i,-.5*i-pt*r),t.lineTo(-.5*o+pt*a,-.5*a-pt*o),t.lineTo(-.5*s+pt*l,-.5*l-pt*s),t.closePath()}},bt=[nt,rt,at,ht,ut,dt,yt],vt=function(){var t=c(nt),e=c(64),n=null;function r(){var r;if(n||(n=r=l()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:c(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:c(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r},xt=function(){};function wt(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function _t(t){this._context=t}_t.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:wt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:wt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var kt=function(t){return new _t(t)};function St(t){this._context=t}St.prototype={areaStart:xt,areaEnd:xt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:wt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Ct=function(t){return new St(t)};function Et(t){this._context=t}Et.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:wt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Tt=function(t){return new Et(t)};function Ot(t,e){this._basis=new _t(t),this._beta=e}Ot.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+r*a),this._beta*e[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Mt=function t(e){function n(t){return 1===e?new _t(t):new Ot(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function At(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Pt(t,e){this._context=t,this._k=(1-e)/6}Pt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:At(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:At(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var jt=function t(e){function n(t){return new Pt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Nt(t,e){this._context=t,this._k=(1-e)/6}Nt.prototype={areaStart:xt,areaEnd:xt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:At(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Lt=function t(e){function n(t){return new Nt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Dt(t,e){this._context=t,this._k=(1-e)/6}Dt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:At(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Rt=function t(e){function n(t){return new Dt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function It(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>1e-12){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/u,a=(a*c+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function Bt(t,e){this._context=t,this._alpha=e}Bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:It(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ft=function t(e){function n(t){return e?new Bt(t,e):new Pt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function zt(t,e){this._context=t,this._alpha=e}zt.prototype={areaStart:xt,areaEnd:xt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:It(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ut=function t(e){function n(t){return e?new zt(t,e):new Nt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Ht(t,e){this._context=t,this._alpha=e}Ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:It(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Wt=function t(e){function n(t){return e?new Ht(t,e):new Dt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Gt(t){this._context=t}Gt.prototype={areaStart:xt,areaEnd:xt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var Vt=function(t){return new Gt(t)};function Yt(t){return t<0?-1:1}function Xt(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Yt(o)+Yt(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function qt(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function $t(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function Kt(t){this._context=t}function Zt(t){this._context=new Qt(t)}function Qt(t){this._context=t}function Jt(t){return new Kt(t)}function te(t){return new Zt(t)}function ee(t){this._context=t}function ne(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var oe=function(t){return new ie(t,.5)};function ae(t){return new ie(t,0)}function se(t){return new ie(t,1)}var le=function(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o=0;)n[e]=e;return n};function ue(t,e){return t[e]}var he=function(){var t=c([]),e=ce,n=le,r=ue;function i(i){var o,a,s=t.apply(this,arguments),l=i.length,c=s.length,u=new Array(c);for(o=0;o0){for(var n,r,i,o=0,a=t[0].length;o0)for(var n,r,i,o,a,s,l=0,c=t[e[0]].length;l0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)},pe=function(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;ao&&(o=e,r=n);return r}var be=function(t){var e=t.map(ve);return ce(t).sort((function(t,n){return e[t]-e[n]}))};function ve(t){for(var e,n=0,r=-1,i=t.length;++r0?Object(r.a)((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null},e.a=i;var o=i.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n(1),i=Object(r.a)((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.a)((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null},e.a=i;var o=i.range},function(t,e,n){"use strict";var r;void 0===(r=function(){var t=n(27),e=n(39);return{axisTimeCombinations:{MINUTE_HOUR:"minute-hour",HOUR_DAY:"hour-daymonth",DAY_MONTH:"day-month",MONTH_YEAR:"month-year",CUSTOM:"custom"},curveMap:{linear:t.curveLinear,basis:t.curveBasis,cardinal:t.curveCardinal,catmullRom:t.curveCatmullRom,monotoneX:t.curveMonotoneX,monotoneY:t.curveMonotoneY,natural:t.curveNatural,step:t.curveStep,stepAfter:t.curveStepAfter,stepBefore:t.curveStepBefore},emptyDonutData:[{quantity:1,percentage:100}],timeBenchmarks:{ONE_AND_A_HALF_YEARS:47304e6,ONE_YEAR:31536000365,ONE_DAY:86400001},lineGradientId:"lineGradientId",timeIntervals:{timeMillisecond:e.timeMillisecond,utcMillisecond:e.utcMillisecond,timeSecond:e.timeSecond,utcSecond:e.utcSecond,timeMinute:e.timeMinute,utcMinute:e.utcMinute,timeHour:e.timeHour,utcHour:e.utcHour,timeDay:e.timeDay,utcDay:e.utcDay,timeWeek:e.timeWeek,utcWeek:e.utcWeek,timeSunday:e.timeSunday,utcSunday:e.utcSunday,timeMonday:e.timeMonday,utcMonday:e.utcMonday,timeTuesday:e.timeTuesday,utcTuesday:e.utcTuesday,timeWednesday:e.timeWednesday,utcWednesday:e.utcWednesday,timeThursday:e.timeThursday,utcThursday:e.utcThursday,timeFriday:e.timeFriday,utcFriday:e.utcFriday,timeSaturday:e.timeSaturday,utcSaturday:e.utcSaturday,timeMonth:e.timeMonth,utcMonth:e.utcMonth,timeYear:e.timeYear,utcYear:e.utcYear},FORMAT_LOCALE_URL:"https://cdn.jsdelivr.net/npm/d3-format/locale"}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return c}));var r=n(7),i=n(42),o=n(58),a=n(4);function s(t){return function(e){var n,i,o=e.length,a=new Array(o),s=new Array(o),l=new Array(o);for(n=0;n=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function l(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r1?r[0]+r.slice(2):r,+t.slice(n+1)]}},function(t,e,n){"use strict";n.r(e);var r=n(1);n.d(e,"timeInterval",(function(){return r.a}));var i=n(52);n.d(e,"timeMillisecond",(function(){return i.a})),n.d(e,"timeMilliseconds",(function(){return i.b})),n.d(e,"utcMillisecond",(function(){return i.a})),n.d(e,"utcMilliseconds",(function(){return i.b}));var o=n(51);n.d(e,"timeSecond",(function(){return o.a})),n.d(e,"timeSeconds",(function(){return o.b})),n.d(e,"utcSecond",(function(){return o.a})),n.d(e,"utcSeconds",(function(){return o.b}));var a=n(71);n.d(e,"timeMinute",(function(){return a.a})),n.d(e,"timeMinutes",(function(){return a.b}));var s=n(70);n.d(e,"timeHour",(function(){return s.a})),n.d(e,"timeHours",(function(){return s.b}));var l=n(53);n.d(e,"timeDay",(function(){return l.b})),n.d(e,"timeDays",(function(){return l.a}));var c=n(5);n.d(e,"timeWeek",(function(){return c.g})),n.d(e,"timeWeeks",(function(){return c.h})),n.d(e,"timeSunday",(function(){return c.g})),n.d(e,"timeSundays",(function(){return c.h})),n.d(e,"timeMonday",(function(){return c.c})),n.d(e,"timeMondays",(function(){return c.d})),n.d(e,"timeTuesday",(function(){return c.k})),n.d(e,"timeTuesdays",(function(){return c.l})),n.d(e,"timeWednesday",(function(){return c.m})),n.d(e,"timeWednesdays",(function(){return c.n})),n.d(e,"timeThursday",(function(){return c.i})),n.d(e,"timeThursdays",(function(){return c.j})),n.d(e,"timeFriday",(function(){return c.a})),n.d(e,"timeFridays",(function(){return c.b})),n.d(e,"timeSaturday",(function(){return c.e})),n.d(e,"timeSaturdays",(function(){return c.f}));var u=n(69);n.d(e,"timeMonth",(function(){return u.a})),n.d(e,"timeMonths",(function(){return u.b}));var h=n(33);n.d(e,"timeYear",(function(){return h.a})),n.d(e,"timeYears",(function(){return h.b}));var f=n(74);n.d(e,"utcMinute",(function(){return f.a})),n.d(e,"utcMinutes",(function(){return f.b}));var d=n(73);n.d(e,"utcHour",(function(){return d.a})),n.d(e,"utcHours",(function(){return d.b}));var p=n(54);n.d(e,"utcDay",(function(){return p.a})),n.d(e,"utcDays",(function(){return p.b}));var m=n(6);n.d(e,"utcWeek",(function(){return m.g})),n.d(e,"utcWeeks",(function(){return m.h})),n.d(e,"utcSunday",(function(){return m.g})),n.d(e,"utcSundays",(function(){return m.h})),n.d(e,"utcMonday",(function(){return m.c})),n.d(e,"utcMondays",(function(){return m.d})),n.d(e,"utcTuesday",(function(){return m.k})),n.d(e,"utcTuesdays",(function(){return m.l})),n.d(e,"utcWednesday",(function(){return m.m})),n.d(e,"utcWednesdays",(function(){return m.n})),n.d(e,"utcThursday",(function(){return m.i})),n.d(e,"utcThursdays",(function(){return m.j})),n.d(e,"utcFriday",(function(){return m.a})),n.d(e,"utcFridays",(function(){return m.b})),n.d(e,"utcSaturday",(function(){return m.e})),n.d(e,"utcSaturdays",(function(){return m.f}));var g=n(72);n.d(e,"utcMonth",(function(){return g.a})),n.d(e,"utcMonths",(function(){return g.b}));var y=n(34);n.d(e,"utcYear",(function(){return y.a})),n.d(e,"utcYears",(function(){return y.b}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(t,e,n){"use strict";var r=n(7),i=n(36),o=n(61),a=n(60),l=n(14),c=n(62),u=n(59),h=n(48),f=n(31);e.a=function(t,e){var n,d=s(e);return null==e||"boolean"===d?Object(h.a)(e):("number"===d?l.a:"string"===d?(n=Object(r.e)(e))?(e=n,i.a):u.a:e instanceof r.e?i.a:e instanceof Date?a.a:Object(f.b)(e)?f.a:Array.isArray(e)?o.b:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?c.a:l.a)(t,e)}},function(t,e,n){"use strict";function r(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}n.d(e,"a",(function(){return r})),e.b=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,l=i=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.a.hasOwnProperty(e)?{space:r.a[e],local:t}:t}},function(t,e,n){"use strict";e.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,e,n){"use strict";var r=n(37);e.a=function(){for(var t,e=r.c;t=e.sourceEvent;)e=t;return e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=Math.PI/180,i=180/Math.PI},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";function r(t){return t*t*t}function i(t){return--t*t*t+1}function o(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return u})),n.d(e,"d",(function(){return y})),n.d(e,"c",(function(){return b}));var r=n(15),i=n(7),o=n(47),a=6/29,s=3*a*a;function l(t){if(t instanceof h)return new h(t.l,t.a,t.b,t.opacity);if(t instanceof v)return x(t);t instanceof i.b||(t=Object(i.h)(t));var e,n,r=m(t.r),o=m(t.g),a=m(t.b),s=f((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?e=n=s:(e=f((.4360747*r+.3850649*o+.1430804*a)/.96422),n=f((.0139322*r+.0971045*o+.7141733*a)/.82521)),new h(116*s-16,500*(e-s),200*(s-n),t.opacity)}function c(t,e){return new h(t,0,0,null==e?1:e)}function u(t,e,n,r){return 1===arguments.length?l(t):new h(t,e,n,null==r?1:r)}function h(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function f(t){return t>.008856451679035631?Math.pow(t,1/3):t/s+4/29}function d(t){return t>a?t*t*t:s*(t-4/29)}function p(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function m(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function g(t){if(t instanceof v)return new v(t.h,t.c,t.l,t.opacity);if(t instanceof h||(t=l(t)),0===t.a&&0===t.b)return new v(NaN,00?t>1?Object(r.a)((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):i:null},e.a=i;var o=i.range},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(1),i=n(3),o=Object(r.a)((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.c)/i.a}),(function(t){return t.getDate()-1}));e.b=o;var a=o.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(1),i=n(3),o=Object(r.a)((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/i.a}),(function(t){return t.getUTCDate()-1}));e.a=o;var a=o.range},,function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return s}));var r,i,o,a=n(68);function s(t){return r=Object(a.a)(t),i=r.format,o=r.formatPrefix,r}s({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})},function(t,e){var n=/^(?:0|[1-9]\d*)$/;function r(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var i,o,a=Object.prototype,l=a.hasOwnProperty,c=a.toString,u=a.propertyIsEnumerable,h=(i=Object.keys,o=Object,function(t){return i(o(t))}),f=Math.max,d=!u.call({valueOf:1},"valueOf");function p(t,e,n){var r=t[e];l.call(t,e)&&y(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function m(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||n.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}(t.length)&&!function(t){var e=x(t)?c.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}(t)}function x(t){var e=s(t);return!!t&&("object"==e||"function"==e)}var w,_=(w=function(t,e){if(d||g(e)||v(e))!function(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i1?e[r-1]:void 0,o=r>2?e[2]:void 0;for(i=w.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(t,e,n){if(!x(n))return!1;var r=s(e);return!!("number"==r?v(n)&&m(e,n.length):"string"==r&&e in n)&&y(n[e],t)}(e[0],e[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++nl&&(s=e.slice(l,s),u[c]?u[c]+=s:u[++c]=s),(n=n[0])===(a=a[0])?u[c]?u[c]+=a:u[++c]=a:(u[++c]=null,h.push({i:c,x:Object(r.a)(n,a)})),l=o.lastIndex;return l=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:_t,s:kt,S:$,u:K,U:Z,V:Q,w:J,W:tt,x:null,X:null,y:et,Y:nt,Z:rt,"%":wt},Nt={a:function(t){return p[t.getUTCDay()]},A:function(t){return f[t.getUTCDay()]},b:function(t){return g[t.getUTCMonth()]},B:function(t){return m[t.getUTCMonth()]},c:null,d:it,e:it,f:ct,H:ot,I:at,j:st,L:lt,m:ut,M:ht,p:function(t){return l[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:_t,s:kt,S:ft,u:dt,U:pt,V:mt,w:gt,W:yt,x:null,X:null,y:bt,Y:vt,Z:xt,"%":wt},Lt={a:function(t,e,n){var r=Et.exec(e.slice(n));return r?(t.w=Tt[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=St.exec(e.slice(n));return r?(t.w=Ct[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=At.exec(e.slice(n));return r?(t.m=Pt[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=Ot.exec(e.slice(n));return r?(t.m=Mt[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return It(t,e,n,r)},d:P,e:P,f:I,H:N,I:N,j:j,L:R,m:A,M:L,p:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.p=b[r[0].toLowerCase()],n+r[0].length):-1},q:M,Q:F,s:z,S:D,u:_,U:k,V:S,w:w,W:C,x:function(t,e,r){return It(t,n,e,r)},X:function(t,e,n){return It(t,s,e,n)},y:T,Y:E,Z:O,"%":B};function Dt(t,e){return function(n){var r,i,o,a=[],s=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in f||(f.w=1),"Z"in f?(l=(s=u(h(f.y,0,1))).getUTCDay(),s=l>4||0===l?r.c.ceil(s):Object(r.c)(s),s=i.a.offset(s,7*(f.V-1)),f.y=s.getUTCFullYear(),f.m=s.getUTCMonth(),f.d=s.getUTCDate()+(f.w+6)%7):(l=(s=c(h(f.y,0,1))).getDay(),s=l>4||0===l?o.c.ceil(s):Object(o.c)(s),s=a.b.offset(s,7*(f.V-1)),f.y=s.getFullYear(),f.m=s.getMonth(),f.d=s.getDate()+(f.w+6)%7)}else("W"in f||"U"in f)&&("w"in f||(f.w="u"in f?f.u%7:"W"in f?1:0),l="Z"in f?u(h(f.y,0,1)).getUTCDay():c(h(f.y,0,1)).getDay(),f.m=0,f.d="W"in f?(f.w+6)%7+7*f.W-(l+5)%7:f.w+7*f.U-(l+6)%7);return"Z"in f?(f.H+=f.Z/100|0,f.M+=f.Z%100,u(f)):c(f)}}function It(t,e,n,r){for(var i,o,a=0,s=e.length,l=n.length;a=l)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=Lt[i in d?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return jt.x=Dt(n,jt),jt.X=Dt(s,jt),jt.c=Dt(e,jt),Nt.x=Dt(n,Nt),Nt.X=Dt(s,Nt),Nt.c=Dt(e,Nt),{format:function(t){var e=Dt(t+="",jt);return e.toString=function(){return t},e},parse:function(t){var e=Rt(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=Dt(t+="",Nt);return e.toString=function(){return t},e},utcParse:function(t){var e=Rt(t+="",!0);return e.toString=function(){return t},e}}}var d={"-":"",_:" ",0:"0"},p=/^\s*\d+/,m=/^%/,g=/[\\^$*+?|[\]().{}]/g;function y(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function O(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function M(t,e,n){var r=p.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function A(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function P(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function j(t,e,n){var r=p.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function N(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function L(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function D(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function R(t,e,n){var r=p.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function I(t,e,n){var r=p.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function B(t,e,n){var r=m.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function F(t,e,n){var r=p.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function z(t,e,n){var r=p.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function U(t,e){return y(t.getDate(),e,2)}function H(t,e){return y(t.getHours(),e,2)}function W(t,e){return y(t.getHours()%12||12,e,2)}function G(t,e){return y(1+a.b.count(Object(s.a)(t),t),e,3)}function V(t,e){return y(t.getMilliseconds(),e,3)}function Y(t,e){return V(t,e)+"000"}function X(t,e){return y(t.getMonth()+1,e,2)}function q(t,e){return y(t.getMinutes(),e,2)}function $(t,e){return y(t.getSeconds(),e,2)}function K(t){var e=t.getDay();return 0===e?7:e}function Z(t,e){return y(o.g.count(Object(s.a)(t)-1,t),e,2)}function Q(t,e){var n=t.getDay();return t=n>=4||0===n?Object(o.i)(t):o.i.ceil(t),y(o.i.count(Object(s.a)(t),t)+(4===Object(s.a)(t).getDay()),e,2)}function J(t){return t.getDay()}function tt(t,e){return y(o.c.count(Object(s.a)(t)-1,t),e,2)}function et(t,e){return y(t.getFullYear()%100,e,2)}function nt(t,e){return y(t.getFullYear()%1e4,e,4)}function rt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+y(e/60|0,"0",2)+y(e%60,"0",2)}function it(t,e){return y(t.getUTCDate(),e,2)}function ot(t,e){return y(t.getUTCHours(),e,2)}function at(t,e){return y(t.getUTCHours()%12||12,e,2)}function st(t,e){return y(1+i.a.count(Object(l.a)(t),t),e,3)}function lt(t,e){return y(t.getUTCMilliseconds(),e,3)}function ct(t,e){return lt(t,e)+"000"}function ut(t,e){return y(t.getUTCMonth()+1,e,2)}function ht(t,e){return y(t.getUTCMinutes(),e,2)}function ft(t,e){return y(t.getUTCSeconds(),e,2)}function dt(t){var e=t.getUTCDay();return 0===e?7:e}function pt(t,e){return y(r.g.count(Object(l.a)(t)-1,t),e,2)}function mt(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Object(r.i)(t):r.i.ceil(t),y(r.i.count(Object(l.a)(t),t)+(4===Object(l.a)(t).getUTCDay()),e,2)}function gt(t){return t.getUTCDay()}function yt(t,e){return y(r.c.count(Object(l.a)(t)-1,t),e,2)}function bt(t,e){return y(t.getUTCFullYear()%100,e,2)}function vt(t,e){return y(t.getUTCFullYear()%1e4,e,4)}function xt(){return"+0000"}function wt(){return"%"}function _t(t){return+t}function kt(t){return Math.floor(+t/1e3)}},function(t,e,n){"use strict";var r=n(23);e.a=function(t){return"string"==typeof t?new r.a([[document.querySelector(t)]],[document.documentElement]):new r.a([[t]],r.c)}},function(t,e,n){"use strict";function r(){return[]}e.a=function(t){return null==t?r:function(){return this.querySelectorAll(t)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return this.matches(t)}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return s}));var r=n(45);function i(t){return function(){this.style.removeProperty(t)}}function o(t,e,n){return function(){this.style.setProperty(t,e,n)}}function a(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function s(t,e){return t.style.getPropertyValue(e)||Object(r.a)(t).getComputedStyle(t,null).getPropertyValue(e)}e.a=function(t,e,n){return arguments.length>1?this.each((null==e?i:"function"==typeof e?a:o)(t,e,null==n?"":n)):s(this.node(),t)}},function(t,e,n){"use strict";var r,i=n(22),o=n(40),a=n(38),s=function(t,e){var n=Object(a.a)(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},l={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return s(100*t,e)},r:s,s:function(t,e){var n=Object(a.a)(t,e);if(!n)return t+"";var i=n[0],o=n[1],s=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,l=i.length;return s===l?i:s>l?i+new Array(s-l+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+Object(a.a)(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},c=function(t){return t},u=Array.prototype.map,h=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];e.a=function(t){var e,n,a=void 0===t.grouping||void 0===t.thousands?c:(e=u.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),s=void 0===t.currency?"":t.currency[0]+"",f=void 0===t.currency?"":t.currency[1]+"",d=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?c:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(u.call(t.numerals,String)),m=void 0===t.percent?"%":t.percent+"",g=void 0===t.minus?"-":t.minus+"",y=void 0===t.nan?"NaN":t.nan+"";function b(t){var e=(t=Object(o.b)(t)).fill,n=t.align,i=t.sign,c=t.symbol,u=t.zero,b=t.width,v=t.comma,x=t.precision,w=t.trim,_=t.type;"n"===_?(v=!0,_="g"):l[_]||(void 0===x&&(x=12),w=!0,_="g"),(u||"0"===e&&"="===n)&&(u=!0,e="0",n="=");var k="$"===c?s:"#"===c&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",S="$"===c?f:/[%p]/.test(_)?m:"",C=l[_],E=/[defgprs%]/.test(_);function T(t){var o,s,l,c=k,f=S;if("c"===_)f=C(t)+f,t="";else{var m=(t=+t)<0;if(t=isNaN(t)?y:C(Math.abs(t),x),w&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),m&&0==+t&&(m=!1),c=(m?"("===i?i:g:"-"===i||"("===i?"":i)+c,f=("s"===_?h[8+r/3]:"")+f+(m&&"("===i?")":""),E)for(o=-1,s=t.length;++o(l=t.charCodeAt(o))||l>57){f=(46===l?d+t.slice(o+1):t.slice(o))+f,t=t.slice(0,o);break}}v&&!u&&(t=a(t,1/0));var T=c.length+t.length+f.length,O=T>1)+c+t+f+O.slice(T);break;default:t=O+c+t+f}return p(t)}return x=void 0===x?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),T.toString=function(){return t+""},T}return{format:b,formatPrefix:function(t,e){var n=b(((t=Object(o.b)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Object(i.a)(e)/3))),a=Math.pow(10,-r),s=h[8+r/3];return function(t){return n(a*t)+s}}}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n(1),i=Object(r.a)((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));e.a=i;var o=i.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(1),i=n(3),o=Object(r.a)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.d-t.getMinutes()*i.c)}),(function(t,e){t.setTime(+t+e*i.b)}),(function(t,e){return(e-t)/i.b}),(function(t){return t.getHours()}));e.a=o;var a=o.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(1),i=n(3),o=Object(r.a)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.d)}),(function(t,e){t.setTime(+t+e*i.c)}),(function(t,e){return(e-t)/i.c}),(function(t){return t.getMinutes()}));e.a=o;var a=o.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n(1),i=Object(r.a)((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));e.a=i;var o=i.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(1),i=n(3),o=Object(r.a)((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*i.b)}),(function(t,e){return(e-t)/i.b}),(function(t){return t.getUTCHours()}));e.a=o;var a=o.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(1),i=n(3),o=Object(r.a)((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*i.c)}),(function(t,e){return(e-t)/i.c}),(function(t){return t.getUTCMinutes()}));e.a=o;var a=o.range},function(t,e,n){"use strict";var r,i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o="function"==typeof Symbol&&"symbol"==s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)};function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}void 0===(r=function(t){var e,r=n(39),s=n(28),l=n(35),c=l.axisTimeCombinations,u=l.timeBenchmarks,h=n(87),f=h.convertMillisecondsToDays,d=h.getLocaleDateFormatter,p={minute:s.timeFormat("%M m"),hour:s.timeFormat("%H %p"),day:s.timeFormat("%e"),daymonth:s.timeFormat("%d %b"),month:s.timeFormat("%b"),year:s.timeFormat("%Y")},m=(a(e={},c.MINUTE_HOUR,r.timeHour.every(1)),a(e,c.HOUR_DAY,r.timeDay.every(1)),a(e,c.DAY_MONTH,r.timeMonth.every(1)),a(e,c.MONTH_YEAR,r.timeYear.every(1)),e),g=function(t){var e=u.ONE_YEAR;return t2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=new Date(t[0].date),s=new Date(t[t.length-1].date),l=s-a;r&&("undefined"==typeof Intl||"object"===("undefined"==typeof Intl?"undefined":o(Intl))&&!Intl.DateTimeFormat)&&(r=null),n||(n=g(l));var c=n.split("-"),u=i(c,2),h=u[0],b=u[1],v=m[n],x=y(e,f(l));return{minor:{format:r?d(r,h):p[h],tick:x},major:{format:r?d(r,b):p[b],tick:v}}}}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r;void 0===(r=function(t){n(2);var e="highlight-filter";return{bounceCircleHighlight:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2*n,i=100,o=50;t.transition().ease(e).duration(i).attr("r",r).transition().ease(e).delay(o).duration(i).attr("r",n)},createFilterContainer:function(t){return t.append("defs").append("filter").attr("id",e)},createGausianBlur:function(t){return t.append("feGaussianBlur").attr("stdDeviation",1).attr("result","coloredBlur"),e},createWhiteGlow:function(t){t.attr("x","-5000%").attr("y","-5000%").attr("width","10000%").attr("height","10000%"),t.append("feFlood").attr("result","flood").attr("flood-color","#ffffff").attr("flood-opacity","1"),t.append("feComposite").attr("result","mask").attr("in2","SourceGraphic").attr("operator","in").attr("in","flood"),t.append("feMorphology").attr("result","dilated").attr("operator","dilate").attr("radius","2").attr("in","mask"),t.append("feGaussianBlur").attr("result","blurred").attr("stdDeviation","5").attr("in","dilated");var n=t.append("feMerge");return n.append("feMergeNode").attr("in","blurred"),n.append("feMergeNode").attr("in","SourceGraphic"),e},createGlow:function(t){t.attr("x","-30%").attr("y","-30%").attr("width","160%").attr("height","160%"),t.append("feGaussianBlur").attr("stdDeviation","0.9 0.9").attr("result","glow");var n=t.append("feMerge");return n.append("feMergeNode").attr("in","glow"),n.append("feMergeNode").attr("in","glow"),n.append("feMergeNode").attr("in","glow"),e},createGlowWithMatrix:function(t){t.attr("x","-500%").attr("y","-500%").attr("width","1800%").attr("height","1800%"),t.append("feColorMatrix").attr("type","matrix").attr("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"),t.append("feGaussianBlur").attr("stdDeviation","1").attr("result","coloredBlur").attr("in","SourceGraphic");var n=t.append("feMerge");return n.append("feMergeNode").attr("in","coloredBlur"),n.append("feMergeNode").attr("in","SourceGraphic"),e}}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i,o,a,s=n(14),l=180/Math.PI,c={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},u=function(t,e,n,r,i,o){var a,s,c;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Object(s.a)(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,l,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Object(s.a)(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,l,c),function(t,e,n,r,o,a){if(t!==n||e!==r){var l=o.push(i(o)+"scale(",null,",",null,")");a.push({i:l-4,x:Object(s.a)(t,n)},{i:l-2,x:Object(s.a)(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,l,c),o=a=null,function(t){for(var e,n=-1,r=c.length;++n=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function s(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),o=0;o=0))throw k(w,new Error(t.tagName+"@"+n));for(var i=e.length-1;r"==t&&">")||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function L(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(L(t,e))return!0}while(t=t.nextSibling)}function D(){}function R(t,e,n,r){t&&t._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete e._nsMap[n.prefix?n.localName:""]}function I(t,e,n){if(t&&t._inc){t._inc++;var r=e.childNodes;if(n)r[r.length++]=n;else{for(var i=e.firstChild,o=0;i;)r[o++]=i,i=i.nextSibling;r.length=o}}}function B(t,e){var n=e.previousSibling,r=e.nextSibling;return n?n.nextSibling=r:t.firstChild=r,r?r.previousSibling=n:t.lastChild=n,I(t.ownerDocument,t),e}function F(t,e,n){var r=e.parentNode;if(r&&r.removeChild(e),e.nodeType===g){var i=e.firstChild;if(null==i)return e;var o=e.lastChild}else i=o=e;var a=n?n.previousSibling:t.lastChild;i.previousSibling=a,o.nextSibling=n,a?a.nextSibling=i:t.firstChild=i,null==n?t.lastChild=o:n.previousSibling=o;do{i.parentNode=t}while(i!==o&&(i=i.nextSibling));return I(t.ownerDocument||t,t),e.nodeType==g&&(e.firstChild=e.lastChild=null),e}function z(){this._nsMap={}}function U(){}function H(){}function W(){}function G(){}function V(){}function Y(){}function X(){}function q(){}function $(){}function K(){}function Z(){}function Q(){}function J(t,e){var n=[],r=9==this.nodeType?this.documentElement:this,i=r.prefix,o=r.namespaceURI;if(o&&null==i&&null==(i=r.lookupPrefix(o)))var a=[{namespace:o,prefix:null}];return et(this,n,t,e,a),n.join("")}function tt(t,e,n){var r=t.prefix||"",i=t.namespaceURI;if(!r&&!i)return!1;if("xml"===r&&"http://www.w3.org/XML/1998/namespace"===i||"http://www.w3.org/2000/xmlns/"==i)return!1;for(var o=n.length;o--;){var a=n[o];if(a.prefix==r)return a.namespace!=i}return!0}function et(t,e,n,r,i){if(r){if(!(t=r(t)))return;if("string"==typeof t)return void e.push(t)}switch(t.nodeType){case o:i||(i=[]),i.length;var s=t.attributes,h=s.length,y=t.firstChild,b=t.tagName;n="http://www.w3.org/1999/xhtml"===t.namespaceURI||n,e.push("<",b);for(var v=0;v"),n&&/^script$/i.test(b))for(;y;)y.data?e.push(y.data):et(y,e,n,r,i),y=y.nextSibling;else for(;y;)et(y,e,n,r,i),y=y.nextSibling;e.push("")}else e.push("/>");return;case p:case g:for(y=t.firstChild;y;)et(y,e,n,r,i),y=y.nextSibling;return;case a:return e.push(" ",t.name,'="',t.value.replace(/[<&"]/g,N),'"');case l:return e.push(t.data.replace(/[<&]/g,N));case c:return e.push("");case d:return e.push("\x3c!--",t.data,"--\x3e");case m:var S=t.publicId,C=t.systemId;if(e.push("');else if(C&&"."!=C)e.push(' SYSTEM "',C,'">');else{var E=t.internalSubset;E&&e.push(" [",E,"]"),e.push(">")}return;case f:return e.push("");case u:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function nt(t,e,n){t[e]=n}b.INVALID_STATE_ERR=(v[11]="Invalid state",11),b.SYNTAX_ERR=(v[12]="Syntax error",12),b.INVALID_MODIFICATION_ERR=(v[13]="Invalid modification",13),b.NAMESPACE_ERR=(v[14]="Invalid namespace",14),b.INVALID_ACCESS_ERR=(v[15]="Invalid access",15),k.prototype=Error.prototype,n(b,k),S.prototype={length:0,item:function(t){return this[t]||null},toString:function(t,e){for(var n=[],r=0;r0},lookupPrefix:function(t){for(var e=this;e;){var n=e._nsMap;if(n)for(var r in n)if(n[r]==t)return r;e=e.nodeType==a?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var n=e._nsMap;if(n&&t in n)return n[t];e=e.nodeType==a?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},n(i,j),n(i,j.prototype),D.prototype={nodeName:"#document",nodeType:p,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==g){for(var n=t.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,e),n=r}return t}return null==this.documentElement&&t.nodeType==o&&(this.documentElement=t),F(this,t,e),t.ownerDocument=this,t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),B(this,t)},importNode:function(t,e){return function t(e,n,r){var i;switch(n.nodeType){case o:(i=n.cloneNode(!1)).ownerDocument=e;case g:break;case a:r=!0}if(i||(i=n.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,r)for(var s=n.firstChild;s;)i.appendChild(t(e,s,r)),s=s.nextSibling;return i}(this,t,e)},getElementById:function(t){var e=null;return L(this.documentElement,(function(n){if(n.nodeType==o&&n.getAttribute("id")==t)return e=n,!0})),e},createElement:function(t){var e=new z;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.childNodes=new S,(e.attributes=new T)._ownerElement=e,e},createDocumentFragment:function(){var t=new K;return t.ownerDocument=this,t.childNodes=new S,t},createTextNode:function(t){var e=new W;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new G;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new V;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var n=new Z;return n.ownerDocument=this,n.tagName=n.target=t,n.nodeValue=n.data=e,n},createAttribute:function(t){var e=new U;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new $;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var n=new z,r=e.split(":"),i=n.attributes=new T;return n.childNodes=new S,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=t,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=e,i._ownerElement=n,n},createAttributeNS:function(t,e){var n=new U,r=e.split(":");return n.ownerDocument=this,n.nodeName=e,n.name=e,n.namespaceURI=t,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=e,n}},r(D,j),z.prototype={nodeType:o,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var n=this.ownerDocument.createAttribute(t);n.value=n.nodeValue=""+e,this.setAttributeNode(n)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===g?this.insertBefore(t,null):function(t,e){var n=e.parentNode;if(n){var r=t.lastChild;n.removeChild(e),r=t.lastChild}return r=t.lastChild,e.parentNode=t,e.previousSibling=r,e.nextSibling=null,r?r.nextSibling=e:t.firstChild=e,t.lastChild=e,I(t.ownerDocument,t,e),e}(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);n&&this.removeAttributeNode(n)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);return n&&n.value||""},setAttributeNS:function(t,e,n){var r=this.ownerDocument.createAttributeNS(t,e);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new C(this,(function(e){var n=[];return L(e,(function(r){r===e||r.nodeType!=o||"*"!==t&&r.tagName!=t||n.push(r)})),n}))},getElementsByTagNameNS:function(t,e){return new C(this,(function(n){var r=[];return L(n,(function(i){i===n||i.nodeType!==o||"*"!==t&&i.namespaceURI!==t||"*"!==e&&i.localName!=e||r.push(i)})),r}))}},D.prototype.getElementsByTagName=z.prototype.getElementsByTagName,D.prototype.getElementsByTagNameNS=z.prototype.getElementsByTagNameNS,r(z,j),U.prototype.nodeType=a,r(U,j),H.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(v[x])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,n){n=this.data.substring(0,t)+n+this.data.substring(t+e),this.nodeValue=this.data=n,this.length=n.length}},r(H,j),W.prototype={nodeName:"#text",nodeType:l,splitText:function(t){var e=this.data,n=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},r(W,H),G.prototype={nodeName:"#comment",nodeType:d},r(G,H),V.prototype={nodeName:"#cdata-section",nodeType:c},r(V,H),Y.prototype.nodeType=m,r(Y,j),X.prototype.nodeType=y,r(X,j),q.prototype.nodeType=h,r(q,j),$.prototype.nodeType=u,r($,j),K.prototype.nodeName="#document-fragment",K.prototype.nodeType=g,r(K,j),Z.prototype.nodeType=f,r(Z,j),Q.prototype.serializeToString=function(t,e,n){return J.call(t,e,n)},j.prototype.toString=J;try{Object.defineProperty&&(Object.defineProperty(C.prototype,"length",{get:function(){return E(this),this.$$length}}),Object.defineProperty(j.prototype,"textContent",{get:function(){return function t(e){switch(e.nodeType){case o:case g:var n=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&n.push(t(e)),e=e.nextSibling;return n.join("");default:return e.nodeValue}}(this)},set:function(t){switch(this.nodeType){case o:case g:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),nt=function(t,e,n){t["$$"+e]=n})}catch(t){}e.DOMImplementation=P,e.XMLSerializer=Q},function(t,e,n){"use strict";var r;void 0===(r=function(t){return n(9),{addDays:function(t,e){var n=new Date(t);return n.setDate(n.getDate()+e),String(n)},convertMillisecondsToDays:function(t){return Math.ceil(t/864e5)},diffDays:function(t,e){return Math.ceil(Math.abs((new Date(t).getTime()-new Date(e).getTime())/864e5))},getLocaleDateFormatter:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"day",n=localeTimeMap[e],r=new Intl.DateTimeFormat(t,n);return function(t){return r.format(t)}}}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.colors=e.bullet=e.brush=e.step=e.heatmap=e.stackedBar=e.groupedRow=e.groupedBar=e.scatterPlot=e.stackedArea=e.sparkline=e.row=e.miniTooltip=e.tooltip=e.loadingStates=e.line=e.legend=e.donut=e.bar=void 0;var r=_(n(90)),i=_(n(101)),o=_(n(102)),a=_(n(103)),s=_(n(18)),l=_(n(104)),c=_(n(106)),u=_(n(107)),h=_(n(108)),f=_(n(109)),d=_(n(110)),p=_(n(111)),m=_(n(112)),g=_(n(113)),y=_(n(114)),b=_(n(115)),v=_(n(116)),x=_(n(117)),w=_(n(10));function _(t){return t&&t.__esModule?t:{default:t}}e.bar=r.default,e.donut=i.default,e.legend=o.default,e.line=a.default,e.loadingStates=s.default,e.tooltip=c.default,e.miniTooltip=u.default,e.row=l.default,e.sparkline=h.default,e.stackedArea=f.default,e.scatterPlot=d.default,e.groupedBar=p.default,e.groupedRow=m.default,e.stackedBar=g.default,e.heatmap=y.default,e.step=b.default,e.brush=v.default,e.bullet=x.default,e.colors=w.default},,function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;e~\.\[:]+)/g,0),n(/(\.[^\s\+>~\.\[:]+)/g,1),n(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,2),n(/(:[\w-]+\([^\)]*\))/gi,1),n(/(:[^\s\+>~\.\[:]+)/g,1),t=(t=t.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," "),n(/([^\s\+>~\.\[:]+)/g,2),e.join("")}n(94),t.exports=function t(e,n,a){if(null!=e||null!=n||null!=a){"string"==typeof e&&(e=document.getElementById(e)),null!=e.svg&&e.svg.stop();var s=function(e){var n={opts:e},a=function(){var t;return void 0!==Element.prototype.matches?t=function(t,e){return t.matches(e)}:void 0!==Element.prototype.webkitMatchesSelector?t=function(t,e){return t.webkitMatchesSelector(e)}:void 0!==Element.prototype.mozMatchesSelector?t=function(t,e){return t.mozMatchesSelector(e)}:void 0!==Element.prototype.msMatchesSelector?t=function(t,e){return t.msMatchesSelector(e)}:void 0!==Element.prototype.oMatchesSelector?t=function(t,e){return t.oMatchesSelector(e)}:("function"!=typeof jQuery&&"function"!=typeof Zepto||(t=function(t,e){return $(t).is(e)}),void 0===t&&(t=Sizzle.matchesSelector)),t}();"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.drawSvg=function(e,n,r,i,o,a){var s={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:n,offsetY:r,scaleWidth:i,scaleHeight:o};for(var l in a)a.hasOwnProperty(l)&&(s[l]=a[l]);t(this.canvas,e,s)}),n.FRAMERATE=30,n.MAX_VIRTUAL_PIXELS=3e4,n.log=function(t){},1==n.opts.log&&"undefined"!=typeof console&&(n.log=function(t){console.log(t)}),n.init=function(t){var e=0;n.UniqueId=function(){return"canvg"+ ++e},n.Definitions={},n.Styles={},n.StylesSpecificity={},n.Animations=[],n.Images=[],n.ctx=t,n.ViewPort=new function(){this.viewPorts=[],this.Clear=function(){this.viewPorts=[]},this.SetCurrent=function(t,e){this.viewPorts.push({width:t,height:e})},this.RemoveCurrent=function(){this.viewPorts.pop()},this.Current=function(){return this.viewPorts[this.viewPorts.length-1]},this.width=function(){return this.Current().width},this.height=function(){return this.Current().height},this.ComputeSize=function(t){return null!=t&&"number"==typeof t?t:"x"==t?this.width():"y"==t?this.height():Math.sqrt(Math.pow(this.width(),2)+Math.pow(this.height(),2))/Math.sqrt(2)}}},n.init(),n.ImagesLoaded=function(){for(var t=0;t]*>/,""),(e=new ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t),e)},n.Property=function(t,e){this.name=t,this.value=e},n.Property.prototype.getValue=function(){return this.value},n.Property.prototype.hasValue=function(){return null!=this.value&&""!=this.value},n.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var t=parseFloat(this.value);return(this.value+"").match(/%$/)&&(t/=100),t},n.Property.prototype.valueOrDefault=function(t){return this.hasValue()?this.value:t},n.Property.prototype.numValueOrDefault=function(t){return this.hasValue()?this.numValue():t},n.Property.prototype.addOpacity=function(t){var e=this.value;if(null!=t.value&&""!=t.value&&"string"==typeof this.value){var i=new r(this.value);i.ok&&(e="rgba("+i.r+", "+i.g+", "+i.b+", "+t.numValue()+")")}return new n.Property(this.name,e)},n.Property.prototype.getDefinition=function(){var t=this.value.match(/#([^\)'"]+)/);return t&&(t=t[1]),t||(t=this.value),n.Definitions[t]},n.Property.prototype.isUrlDefinition=function(){return 0==this.value.indexOf("url(")},n.Property.prototype.getFillStyleDefinition=function(t,e){var r=this.getDefinition();if(null!=r&&r.createGradient)return r.createGradient(n.ctx,t,e);if(null!=r&&r.createPattern){if(r.getHrefAttribute().hasValue()){var i=r.attribute("patternTransform");r=r.getHrefAttribute().getDefinition(),i.hasValue()&&(r.attribute("patternTransform",!0).value=i.value)}return r.createPattern(n.ctx,t)}return null},n.Property.prototype.getDPI=function(t){return 96},n.Property.prototype.getEM=function(t){var e=12,r=new n.Property("fontSize",n.Font.Parse(n.ctx.font).fontSize);return r.hasValue()&&(e=r.toPixels(t)),e},n.Property.prototype.getUnits=function(){return(this.value+"").replace(/[0-9\.\-]/g,"")},n.Property.prototype.toPixels=function(t,e){if(!this.hasValue())return 0;var r=this.value+"";if(r.match(/em$/))return this.numValue()*this.getEM(t);if(r.match(/ex$/))return this.numValue()*this.getEM(t)/2;if(r.match(/px$/))return this.numValue();if(r.match(/pt$/))return this.numValue()*this.getDPI(t)*(1/72);if(r.match(/pc$/))return 15*this.numValue();if(r.match(/cm$/))return this.numValue()*this.getDPI(t)/2.54;if(r.match(/mm$/))return this.numValue()*this.getDPI(t)/25.4;if(r.match(/in$/))return this.numValue()*this.getDPI(t);if(r.match(/%$/))return this.numValue()*n.ViewPort.ComputeSize(t);var i=this.numValue();return e&&i<1?i*n.ViewPort.ComputeSize(t):i},n.Property.prototype.toMilliseconds=function(){if(!this.hasValue())return 0;var t=this.value+"";return t.match(/s$/)?1e3*this.numValue():(t.match(/ms$/),this.numValue())},n.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var t=this.value+"";return t.match(/deg$/)?this.numValue()*(Math.PI/180):t.match(/grad$/)?this.numValue()*(Math.PI/200):t.match(/rad$/)?this.numValue():this.numValue()*(Math.PI/180)};var s={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};return n.Property.prototype.toTextBaseline=function(){return this.hasValue()?s[this.value]:null},n.Font=new function(){this.Styles="normal|italic|oblique|inherit",this.Variants="normal|small-caps|inherit",this.Weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",this.CreateFont=function(t,e,r,i,o,a){var s=null!=a?this.Parse(a):this.CreateFont("","","","","",n.ctx.font);return{fontFamily:o||s.fontFamily,fontSize:i||s.fontSize,fontStyle:t||s.fontStyle,fontWeight:r||s.fontWeight,fontVariant:e||s.fontVariant,toString:function(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var t=this;this.Parse=function(e){for(var r={},i=n.trim(n.compressSpaces(e||"")).split(" "),o={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1},a="",s=0;sthis.x2&&(this.x2=t)),null!=e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),ethis.y2&&(this.y2=e))},this.addX=function(t){this.addPoint(t,null)},this.addY=function(t){this.addPoint(null,t)},this.addBoundingBox=function(t){this.addPoint(t.x1,t.y1),this.addPoint(t.x2,t.y2)},this.addQuadraticCurve=function(t,e,n,r,i,o){var a=t+2/3*(n-t),s=e+2/3*(r-e),l=a+1/3*(i-t),c=s+1/3*(o-e);this.addBezierCurve(t,e,a,l,s,c,i,o)},this.addBezierCurve=function(t,e,n,r,i,o,a,s){var l=[t,e],c=[n,r],u=[i,o],h=[a,s];this.addPoint(l[0],l[1]),this.addPoint(h[0],h[1]);for(var f=0;f<=1;f++){var d=function(t){return Math.pow(1-t,3)*l[f]+3*Math.pow(1-t,2)*t*c[f]+3*(1-t)*Math.pow(t,2)*u[f]+Math.pow(t,3)*h[f]},p=6*l[f]-12*c[f]+6*u[f],m=-3*l[f]+9*c[f]-9*u[f]+3*h[f],g=3*c[f]-3*l[f];if(0!=m){var y=Math.pow(p,2)-4*g*m;if(!(y<0)){var b=(-p+Math.sqrt(y))/(2*m);0=0;e--)this.transforms[e].unapply(t)},this.applyToPoint=function(t){for(var e=0;es&&(this.styles[o]=r[o],this.stylesSpecificity[o]=i)}}},null!=t&&1==t.nodeType){for(var e=0;e0&&t.push([this.points[this.points.length-1],t[t.length-1][1]]),t}},n.Element.polyline.prototype=new n.Element.PathElementBase,n.Element.polygon=function(t){this.base=n.Element.polyline,this.base(t),this.basePath=this.path,this.path=function(t){var e=this.basePath(t);return null!=t&&(t.lineTo(this.points[0].x,this.points[0].y),t.closePath()),e}},n.Element.polygon.prototype=new n.Element.polyline,n.Element.path=function(t){this.base=n.Element.PathElementBase,this.base(t);var e=this.attribute("d").value;e=e.replace(/,/gm," ");for(var r=0;r<2;r++)e=e.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2");for(e=(e=e.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2")).replace(/([0-9])([+\-])/gm,"$1 $2"),r=0;r<2;r++)e=e.replace(/(\.[0-9]*)(\.)/gm,"$1 $2");e=e.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 "),e=n.compressSpaces(e),e=n.trim(e),this.PathParser=new function(t){this.tokens=t.split(" "),this.reset=function(){this.i=-1,this.command="",this.previousCommand="",this.start=new n.Point(0,0),this.control=new n.Point(0,0),this.current=new n.Point(0,0),this.points=[],this.angles=[]},this.isEnd=function(){return this.i>=this.tokens.length-1},this.isCommandOrEnd=function(){return!!this.isEnd()||null!=this.tokens[this.i+1].match(/^[A-Za-z]$/)},this.isRelativeCommand=function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0}return!1},this.getToken=function(){return this.i++,this.tokens[this.i]},this.getScalar=function(){return parseFloat(this.getToken())},this.nextCommand=function(){this.previousCommand=this.command,this.command=this.getToken()},this.getPoint=function(){var t=new n.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(t)},this.getAsControlPoint=function(){var t=this.getPoint();return this.control=t,t},this.getAsCurrentPoint=function(){var t=this.getPoint();return this.current=t,t},this.getReflectedControlPoint=function(){return"c"!=this.previousCommand.toLowerCase()&&"s"!=this.previousCommand.toLowerCase()&&"q"!=this.previousCommand.toLowerCase()&&"t"!=this.previousCommand.toLowerCase()?this.current:new n.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y)},this.makeAbsolute=function(t){return this.isRelativeCommand()&&(t.x+=this.current.x,t.y+=this.current.y),t},this.addMarker=function(t,e,n){null!=n&&this.angles.length>0&&null==this.angles[this.angles.length-1]&&(this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(n)),this.addMarkerAngle(t,null==e?null:e.angleTo(t))},this.addMarkerAngle=function(t,e){this.points.push(t),this.angles.push(e)},this.getMarkerPoints=function(){return this.points},this.getMarkerAngles=function(){for(var t=0;t1&&(h*=Math.sqrt(y),f*=Math.sqrt(y));var b=(p==m?-1:1)*Math.sqrt((Math.pow(h,2)*Math.pow(f,2)-Math.pow(h,2)*Math.pow(g.y,2)-Math.pow(f,2)*Math.pow(g.x,2))/(Math.pow(h,2)*Math.pow(g.y,2)+Math.pow(f,2)*Math.pow(g.x,2)));isNaN(b)&&(b=0);var v=new n.Point(b*h*g.y/f,b*-f*g.x/h),x=new n.Point((s.x+u.x)/2+Math.cos(d)*v.x-Math.sin(d)*v.y,(s.y+u.y)/2+Math.sin(d)*v.x+Math.cos(d)*v.y),w=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))},_=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(w(t)*w(e))},k=function(t,e){return(t[0]*e[1]=1&&(T=0);var O=1-m?1:-1,M=S+O*(T/2),A=new n.Point(x.x+h*Math.cos(M),x.y+f*Math.sin(M));if(e.addMarkerAngle(A,M-O*Math.PI/2),e.addMarkerAngle(u,M-O*Math.PI),r.addPoint(u.x,u.y),null!=t){_=h>f?h:f;var P=h>f?1:h/f,j=h>f?f/h:1;t.translate(x.x,x.y),t.rotate(d),t.scale(P,j),t.arc(0,0,_,S,S+T,1-m),t.scale(1/P,1/j),t.rotate(-d),t.translate(-x.x,-x.y)}}break;case"Z":case"z":null!=t&&t.closePath(),e.current=e.start}return r},this.getMarkers=function(){for(var t=this.PathParser.getMarkerPoints(),e=this.PathParser.getMarkerAngles(),n=[],r=0;r1&&(this.offset=1);var e=this.style("stop-color",!0);""==e.value&&(e.value="#000"),this.style("stop-opacity").hasValue()&&(e=e.addOpacity(this.style("stop-opacity"))),this.color=e.value},n.Element.stop.prototype=new n.Element.ElementBase,n.Element.AnimateBase=function(t){this.base=n.Element.ElementBase,this.base(t),n.Animations.push(this),this.duration=0,this.begin=this.attribute("begin").toMilliseconds(),this.maxDuration=this.begin+this.attribute("dur").toMilliseconds(),this.getProperty=function(){var t=this.attribute("attributeType").value,e=this.attribute("attributeName").value;return"CSS"==t?this.parent.style(e,!0):this.parent.attribute(e,!0)},this.initialValue=null,this.initialUnits="",this.removed=!1,this.calcValue=function(){return""},this.update=function(t){if(null==this.initialValue&&(this.initialValue=this.getProperty().value,this.initialUnits=this.getProperty().getUnits()),this.duration>this.maxDuration){if("indefinite"==this.attribute("repeatCount").value||"indefinite"==this.attribute("repeatDur").value)this.duration=0;else if("freeze"!=this.attribute("fill").valueOrDefault("remove")||this.frozen){if("remove"==this.attribute("fill").valueOrDefault("remove")&&!this.removed)return this.removed=!0,this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue,!0}else this.frozen=!0,this.parent.animationFrozen=!0,this.parent.animationFrozenValue=this.getProperty().value;return!1}this.duration=this.duration+t;var e=!1;if(this.beginn&&a.attribute("x").hasValue())break;i+=a.measureTextRecursive(t)}return-1*("end"==r?i:i/2)}return 0},this.renderChild=function(t,e,n,r){var i=n.children[r];for(i.attribute("x").hasValue()?(i.x=i.attribute("x").toPixels("x")+e.getAnchorDelta(t,n,r),i.attribute("dx").hasValue()&&(i.x+=i.attribute("dx").toPixels("x"))):(i.attribute("dx").hasValue()&&(e.x+=i.attribute("dx").toPixels("x")),i.x=e.x),e.x=i.x+i.measureText(t),i.attribute("y").hasValue()?(i.y=i.attribute("y").toPixels("y"),i.attribute("dy").hasValue()&&(i.y+=i.attribute("dy").toPixels("y"))):(i.attribute("dy").hasValue()&&(e.y+=i.attribute("dy").toPixels("y")),i.y=e.y),e.y=i.y,i.render(t),r=0;r0&&" "!=e[n-1]&&n0&&" "!=e[n-1]&&(n==e.length-1||" "==e[n+1])&&(o="initial"),void 0!==t.glyphs[r]&&null==(i=t.glyphs[r][o])&&"glyph"==t.glyphs[r].type&&(i=t.glyphs[r])}else i=t.glyphs[r];return null==i&&(i=t.missingGlyph),i},this.renderChildren=function(t){var e=this.parent.style("font-family").getDefinition();if(null==e)""!=t.fillStyle&&t.fillText(n.compressSpaces(this.getText()),this.x,this.y),""!=t.strokeStyle&&t.strokeText(n.compressSpaces(this.getText()),this.x,this.y);else{var r=this.parent.style("font-size").numValueOrDefault(n.Font.Parse(n.ctx.font).fontSize),i=this.parent.style("font-style").valueOrDefault(n.Font.Parse(n.ctx.font).fontStyle),o=this.getText();e.isRTL&&(o=o.split("").reverse().join(""));for(var a=n.ToNumberArray(this.parent.attribute("dx").value),s=0;s0?"":this.text}},n.Element.tspan.prototype=new n.Element.TextElementBase,n.Element.tref=function(t){this.base=n.Element.TextElementBase,this.base(t),this.getText=function(){var t=this.getHrefAttribute().getDefinition();if(null!=t)return t.children[0].getText()}},n.Element.tref.prototype=new n.Element.TextElementBase,n.Element.a=function(t){this.base=n.Element.TextElementBase,this.base(t),this.hasText=t.childNodes.length>0;for(var e=0;e0){var r=new n.Element.g;r.children=this.children,r.parent=this,r.render(t)}},this.onclick=function(){window.open(this.getHrefAttribute().value)},this.onmousemove=function(){n.ctx.canvas.style.cursor="pointer"}},n.Element.a.prototype=new n.Element.TextElementBase,n.Element.image=function(t){this.base=n.Element.RenderedElementBase,this.base(t);var e=this.getHrefAttribute().value;if(""!=e){var r=e.match(/\.svg$/);if(n.Images.push(this),this.loaded=!1,r)this.img=n.ajax(e),this.loaded=!0;else{this.img=document.createElement("img"),1==n.opts.useCORS&&(this.img.crossOrigin="Anonymous");var i=this;this.img.onload=function(){i.loaded=!0},this.img.onerror=function(){n.log('ERROR: image "'+e+'" not found'),i.loaded=!0},this.img.src=e}this.renderChildren=function(t){var e=this.attribute("x").toPixels("x"),i=this.attribute("y").toPixels("y"),o=this.attribute("width").toPixels("x"),a=this.attribute("height").toPixels("y");0!=o&&0!=a&&(t.save(),r?t.drawSvg(this.img,e,i,o,a):(t.translate(e,i),n.AspectRatio(t,this.attribute("preserveAspectRatio").value,o,this.img.width,a,this.img.height,0,0),t.drawImage(this.img,0,0)),t.restore())},this.getBoundingBox=function(){var t=this.attribute("x").toPixels("x"),e=this.attribute("y").toPixels("y"),r=this.attribute("width").toPixels("x"),i=this.attribute("height").toPixels("y");return new n.BoundingBox(t,e,t+r,e+i)}}},n.Element.image.prototype=new n.Element.RenderedElementBase,n.Element.g=function(t){this.base=n.Element.RenderedElementBase,this.base(t),this.getBoundingBox=function(){for(var t=new n.BoundingBox,e=0;e0)for(var v=y[b].indexOf("url"),x=y[b].indexOf(")",v),w=y[b].substr(v+5,x-v-6),_=n.parseXml(n.ajax(w)).getElementsByTagName("font"),k=0;k<_.length;k++){var S=n.CreateElement(_[k]);n.Definitions[g]=S}}}},n.Element.style.prototype=new n.Element.ElementBase,n.Element.use=function(t){this.base=n.Element.RenderedElementBase,this.base(t),this.baseSetContext=this.setContext,this.setContext=function(t){this.baseSetContext(t),this.attribute("x").hasValue()&&t.translate(this.attribute("x").toPixels("x"),0),this.attribute("y").hasValue()&&t.translate(0,this.attribute("y").toPixels("y"))};var e=this.getHrefAttribute().getDefinition();this.path=function(t){null!=e&&e.path(t)},this.getBoundingBox=function(){if(null!=e)return e.getBoundingBox()},this.renderChildren=function(t){if(null!=e){var r=e;"symbol"==e.type&&((r=new n.Element.svg).type="svg",r.attributes.viewBox=new n.Property("viewBox",e.attribute("viewBox").value),r.attributes.preserveAspectRatio=new n.Property("preserveAspectRatio",e.attribute("preserveAspectRatio").value),r.attributes.overflow=new n.Property("overflow",e.attribute("overflow").value),r.children=e.children),"svg"==r.type&&(this.attribute("width").hasValue()&&(r.attributes.width=new n.Property("width",this.attribute("width").value)),this.attribute("height").hasValue()&&(r.attributes.height=new n.Property("height",this.attribute("height").value)));var i=r.parent;r.parent=null,r.render(t),r.parent=i}}},n.Element.use.prototype=new n.Element.RenderedElementBase,n.Element.mask=function(t){this.base=n.Element.ElementBase,this.base(t),this.apply=function(t,e){var r=this.attribute("x").toPixels("x"),i=this.attribute("y").toPixels("y"),o=this.attribute("width").toPixels("x"),a=this.attribute("height").toPixels("y");if(0==o&&0==a){for(var s=new n.BoundingBox,l=0;l3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n},this.getHelpXML=function(){for(var t=new Array,r=0;r "+c.toRGB()+" -> "+c.toHex());l.appendChild(u),l.appendChild(h),s.appendChild(l)}catch(t){}return s}}},function(t,e){var n=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],r=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function i(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}t.exports=function(t,e,o,a){if(!(isNaN(a)||a<1)){var s,l,c,u,h,f,d,p,m,g,y,b,v,x,w,_,k,S,C,E,T,O,M,A,P=(a|=0)+a+1,j=e-1,N=o-1,L=a+1,D=L*(L+1)/2,R=new i,I=R;for(c=1;c>H,0!=M?(M=255/M,t[f]=(p*U>>H)*M,t[f+1]=(m*U>>H)*M,t[f+2]=(g*U>>H)*M):t[f]=t[f+1]=t[f+2]=0,p-=b,m-=v,g-=x,y-=w,b-=F.r,v-=F.g,x-=F.b,w-=F.a,u=d+((u=s+a+1)>H,M>0?(M=255/M,t[u]=(p*U>>H)*M,t[u+1]=(m*U>>H)*M,t[u+2]=(g*U>>H)*M):t[u]=t[u+1]=t[u+2]=0,p-=b,m-=v,g-=x,y-=w,b-=F.r,v-=F.g,x-=F.b,w-=F.a,u=s+((u=l+L)=e+n||e?new java.lang.String(t,e,n)+"":t}function l(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}r.prototype.parseFromString=function(t,e){var n=this.options,r=new c,o=n.domBuilder||new i,s=n.errorHandler,l=n.locator,u=n.xmlns||{},h={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return l&&o.setDocumentLocator(l),r.errorHandler=function(t,e,n){if(!t){if(e instanceof i)return e;t=e}var r={},o=t instanceof Function;function s(e){var i=t[e];!i&&o&&(i=2==t.length?function(n){t(e,n)}:t),r[e]=i&&function(t){i("[xmldom "+e+"]\t"+t+a(n))}||function(){}}return n=n||{},s("warning"),s("error"),s("fatalError"),r}(s,o,l),r.domBuilder=n.domBuilder||o,/\/x?html?$/.test(e)&&(h.nbsp="\xa0",h.copy="\xa9",u[""]="http://www.w3.org/1999/xhtml"),u.xml=u.xml||"http://www.w3.org/XML/1998/namespace",t?r.parse(t,u,h):r.errorHandler.error("invalid doc source"),o.doc},i.prototype={startDocument:function(){this.doc=(new u).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,n,r){var i=this.doc,a=i.createElementNS(t,n||e),s=r.length;l(this,a),this.currentElement=a,this.locator&&o(this.locator,a);for(var c=0;c":switch(l){case 0:n.setTagName(t.slice(e,s));case 5:case 6:case 7:break;case 4:case 1:"/"===(u=t.slice(e,s)).slice(-1)&&(n.closed=!0,u=u.slice(0,-1));case 2:2===l&&(u=a),4==l?(o.warning('attribute "'+u+'" missed quot(")!!'),n.add(a,u.replace(/&#?\w+;/g,i),e)):("http://www.w3.org/1999/xhtml"===r[""]&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),n.add(u,u,e));break;case 3:throw new Error("attribute value missed!!")}return s;case"\x80":c=" ";default:if(c<=" ")switch(l){case 0:n.setTagName(t.slice(e,s)),l=6;break;case 1:a=t.slice(e,s),l=2;break;case 4:var u=t.slice(e,s).replace(/&#?\w+;/g,i);o.warning('attribute "'+u+'" missed quot(")!!'),n.add(a,u,e);case 5:l=6}else switch(l){case 2:n.tagName,"http://www.w3.org/1999/xhtml"===r[""]&&a.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),n.add(a,a,e),e=s,l=1;break;case 5:o.warning('attribute space is required"'+a+'"!!');case 6:l=1,e=s;break;case 3:l=4,e=s;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}s++}}function l(t,e,n){for(var r=t.tagName,i=null,o=t.length;o--;){var a=t[o],s=a.qName,l=a.value;if((d=s.indexOf(":"))>0)var c=a.prefix=s.slice(0,d),u=s.slice(d+1),f="xmlns"===c&&u;else u=s,c=null,f="xmlns"===s&&"";a.localName=u,!1!==f&&(null==i&&(i={},h(n,n={})),n[f]=i[f]=l,a.uri="http://www.w3.org/2000/xmlns/",e.startPrefixMapping(f,l))}for(o=t.length;o--;)(c=(a=t[o]).prefix)&&("xml"===c&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==c&&(a.uri=n[c||""]));var d;(d=r.indexOf(":"))>0?(c=t.prefix=r.slice(0,d),u=t.localName=r.slice(d+1)):(c=null,u=t.localName=r);var p=t.uri=n[c||""];if(e.startElement(p,u,r,t),!t.closed)return t.currentNSMap=n,t.localNSMap=i,!0;if(e.endElement(p,u,r),i)for(c in i)e.endPrefixMapping(c)}function c(t,e,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=t.indexOf("",e),a=t.substring(e+1,o);if(/[&<]/.test(a))return/^script$/i.test(n)?(i.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,r),i.characters(a,0,a.length),o)}return e+1}function u(t,e,n,r){var i=r[n];return null==i&&((i=t.lastIndexOf(""))e?(n.comment(t,e+4,i-e-4),i+3):(r.error("Unclosed comment"),-1):-1;if("CDATA["==t.substr(e+3,6)){var i=t.indexOf("]]>",e+9);return n.startCDATA(),n.characters(t,e+9,i-e-9),n.endCDATA(),i+3}var o=function(t,e){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=e,i.exec(t);n=i.exec(t);)if(r.push(n),n[1])return r}(t,e),a=o.length;if(a>1&&/!doctype/i.test(o[0][0])){var s=o[1][0],l=a>3&&/^public$/i.test(o[2][0])&&o[3][0],c=a>4&&o[4][0],u=o[a-1];return n.startDTD(s,l&&l.replace(/^(['"])(.*?)\1$/,"$2"),c&&c.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),u.index+u[0].length}return-1}function d(t,e,n){var r=t.indexOf("?>",e);if(r){var i=t.substring(e,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return i?(i[0].length,n.processingInstruction(i[1],i[2]),r+2):-1}return-1}function p(t){}function m(t,e){return t.__proto__=e,t}o.prototype={parse:function(t,e,n){var r=this.domBuilder;r.startDocument(),h(e,e={}),function(t,e,n,r,i){function o(t){var e=t.slice(1,-1);return e in n?n[e]:"#"===e.charAt(0)?function(t){if(t>65535){var e=55296+((t-=65536)>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}(parseInt(e.substr(1).replace("x","0x"))):(i.error("entity not found:"+t),t)}function h(e){if(e>_){var n=t.substring(_,e).replace(/&#?\w+;/g,o);v&&m(_),r.characters(n,0,e-_),_=e}}function m(e,n){for(;e>=y&&(n=b.exec(t));)g=n.index,y=g+n[0].length,v.lineNumber++;v.columnNumber=e-g+1}for(var g=0,y=0,b=/.*(?:\r\n?|\n)|.*$/g,v=r.locator,x=[{currentNSMap:e}],w={},_=0;;){try{var k=t.indexOf("<",_);if(k<0){if(!t.substr(_).match(/^\s*$/)){var S=r.doc,C=S.createTextNode(t.substr(_));S.appendChild(C),r.currentElement=C}return}switch(k>_&&h(k),t.charAt(k+1)){case"/":var E=t.indexOf(">",k+3),T=t.substring(k+2,E),O=x.pop();E<0?(T=t.substring(k+2).replace(/[\s<].*/,""),i.error("end tag name: "+T+" is not complete:"+O.tagName),E=k+1+T.length):T.match(/\s_?_=E:h(Math.max(k,_)+1)}}(t,e,n,r,this.errorHandler),r.endDocument()}},p.prototype={setTagName:function(t){if(!i.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},add:function(t,e,n){if(!i.test(t))throw new Error("invalid attribute:"+t);this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},m({},m.prototype)instanceof m||(m=function(t,e){function n(){}for(e in n.prototype=e,n=new n,t)n[e]=t[e];return n}),e.XMLReader=o},function(t,e,n){"use strict";var r,i,o;t.exports=(r={BASE:!0,HEAD:!0,HTML:!0,META:!0,NOFRAME:!0,NOSCRIPT:!0,PARAM:!0,SCRIPT:!0,STYLE:!0,TITLE:!0},i=["A","ABBR","ADDRESS","AREA","ARTICLE","ASIDE","AUDIO","B","BASE","BDI","BDO","BLOCKQUOTE","BODY","BR","BUTTON","CANVAS","CAPTION","CENTER","CITE","CODE","COL","COLGROUP","COMMAND","DATALIST","DD","DEL","DETAILS","DFN","DIV","DL","DT","EM","EMBED","FIELDSET","FIGCAPTION","FIGURE","FONT","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEAD","HEADER","HGROUP","HR","HTML","I","IFRAME","IMG","INPUT","INS","KBD","LABEL","LEGEND","LI","LINK","MAP","MARK","MATH","MENU","META","METER","NAV","NOBR","NOSCRIPT","OBJECT","OL","OPTION","OPTGROUP","OUTPUT","P","PARAM","PRE","PROGRESS","Q","RP","RT","RUBY","S","SAMP","SCRIPT","SECTION","SELECT","SMALL","SOURCE","SPAN","STRONG","STYLE","SUB","SUMMARY","SUP","SVG","TABLE","TBODY","TD","TEXTAREA","TFOOT","TH","THEAD","TIME","TITLE","TR","TRACK","U","UL","VAR","VIDEO","WBR"],o=function(t){var e={},n=document.body.appendChild(document.createElement(t)),r=window.getComputedStyle(n);return[].forEach.call(r,(function(t){e[t]=r[t]})),document.body.removeChild(n),e},{initializeSerializer:function(){var t={};return[].forEach.call(i,(function(e){r[e]||(t[e]=o(e))})),function(e){var n,i=[],a=void 0,s=void 0,l=void 0;if(e&&e.nodeType===Node.ELEMENT_NODE)return i=[],a=e.querySelectorAll("*"),[].forEach.call(a,(function(e,n){var a;r[e.tagName]||(s=window.getComputedStyle(e),a=(a=e.tagName).toUpperCase(),t[a]||(t[a]=o(a)),l=t[a],i[n]=e.style.cssText,[].forEach.call(s,(function(t){s[t]!==l[t]&&(e.style[t]=s[t])})))})),n=(new XMLSerializer).serializeToString(e),a=[].map.call(a,(function(t,e){return t.style.cssText=i[e],t})),n}}})},function(t,e,n){(function(t,r){var i;!function(o){var a=(t&&t.exports,"object"==s(r)&&r);a.global!==a&&a.window;var l=function(t){this.message=t};(l.prototype=new Error).name="InvalidCharacterError";var c=function(t){throw new l(t)},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=/[\t\n\f\r ]/g,f={encode:function(t){t=String(t),/[^\0-\xFF]/.test(t)&&c("The string to be encoded contains characters outside of the Latin1 range.");for(var e,n,r,i,o=t.length%3,a="",s=-1,l=t.length-o;++s>18&63)+u.charAt(i>>12&63)+u.charAt(i>>6&63)+u.charAt(63&i);return 2==o?(e=t.charCodeAt(s)<<8,n=t.charCodeAt(++s),a+=u.charAt((i=e+n)>>10)+u.charAt(i>>4&63)+u.charAt(i<<2&63)+"="):1==o&&(i=t.charCodeAt(s),a+=u.charAt(i>>2)+u.charAt(i<<4&63)+"=="),a},decode:function(t){var e=(t=String(t).replace(h,"")).length;e%4==0&&(e=(t=t.replace(/==?$/,"")).length),(e%4==1||/[^+a-zA-Z0-9/]/.test(t))&&c("Invalid character: the string to be decoded is not correctly encoded.");for(var n,r,i=0,o="",a=-1;++a>(-2*i&6)));return o},version:"0.1.0"};void 0===(i=function(){return f}.call(e,n,e,t))||(t.exports=i)}()}).call(this,n(98)(t),n(99))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==("undefined"===typeof window?"undefined":s(window))&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r,i="function"==typeof Symbol&&"symbol"==s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)};void 0===(r=function(t){var e=n(9).formatDefaultLocale,r=["decimal","thousands","grouping","currency"];return{setDefaultLocale:function(t){if(function(t){return"object"==(void 0===t?"undefined":i(t))&&r.every((function(e){return t.hasOwnProperty(e)}))}(t))return e(t);throw new Error("Please pass in a valid locale object definition")}}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:0;l.select(t).transition().delay(n).attrTween("d",(function(t){var n=o.interpolate(t.outerRadius,e);return function(e){return t.outerRadius=n(e),E(t)}}))}function rt(t){var e=void 0;return t.innerRadius=0,e=o.interpolate({startAngle:0,endAngle:0},t),function(t){return E(e(t))}}function it(t,e){var n=_/5;u.wrapText.call(null,0,n,e,t.node())}return $.centeredTextFunction=function(t){return arguments.length?(H=t,this):H},$.colorSchema=function(t){return arguments.length?(U=t,this):U},$.emptyDataConfig=function(t){return arguments.length?(I=t,this):I},$.exportChart=function(t,e){c.call($,O,t,e)},$.externalRadius=function(t){return arguments.length?(_=t,this):_},$.hasHoverAnimation=function(t){return arguments.length?(L=t,this):L},$.hasFixedHighlightedSlice=function(t){return arguments.length?(N=t,this):N},$.hasLastHoverSliceHighlighted=function(t){return arguments.length?(D=t,this):D},$.height=function(t){return arguments.length?(m=t,this):m},$.highlightSliceById=function(t){return arguments.length?(P=t,this):P},$.internalRadius=function(t){return arguments.length?(k=t,this):k},$.isAnimated=function(t){return arguments.length?(M=t,this):M},$.loadingState=function(t){return arguments.length?(g=t,this):g},$.margin=function(e){return arguments.length?(t=i({},t,e),this):t},$.numberFormat=function(t){return arguments.length?(F=t,this):F},$.on=function(){var t=q.on.apply(q,arguments);return t===q?$:t},$.orderingFunction=function(t){return arguments.length?(V=t,this):V},$.percentageFormat=function(t){return arguments.length?(B=t,this):B},$.radiusHoverOffset=function(t){return arguments.length?(b=t,this):b},$.width=function(t){return arguments.length?(n=t,this):n},$}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;e0&&T.select("g.legend-container-group").attr("transform","translate("+N+",0)")):(T.select(".legend-group").selectAll("g").remove(),(k=T.select(".legend-group").selectAll("g.legend-line").data(E)).enter().append("g").classed("legend-line",!0).append("g").classed("legend-entry",!0).attr("data-item",b).attr("transform",(function(t,e){return"translate("+(c+P())+","+(e+1)*(C/(E.length+1))+")"})).merge(k).append("circle").classed("legend-circle",!0).attr("cx",c/2).attr("cy",-5).attr("r",c/2).style("fill",w).style("stroke-width",1),T.select(".legend-group").selectAll("g.legend-line").selectAll("g.legend-entry").append("text").classed("legend-entry-name",!0).text(v).attr("x",P()).style("font-size","12px").style("letter-spacing","0.5px"),m?T.select(".legend-group").selectAll("g.legend-line").selectAll("g.legend-entry").append("text").classed("legend-entry-value",!0).text(x).attr("x",S-40).style("font-size","12px").style("letter-spacing","0.8px").style("text-anchor","end").style("startOffset","100%"):function(){var t=T.select("g.legend-container-group").node().getBoundingClientRect().width,e=n-t,r=e/2-t/2;e>0&&T.select("g.legend-container-group").attr("transform","translate("+r+",0)")}(),T.select(".legend-group").selectAll("g.legend-line").exit().transition().style("opacity",0).remove()),p&&(M(),A(p))}))}function M(){T.select(".legend-group").selectAll("g.legend-entry").classed("is-faded",!1)}function A(t){var e=T.select('[data-item="'+t+'"]');e.nodes().length&&(T.select(".legend-group").selectAll("g.legend-entry").classed("is-faded",!0),e.classed("is-faded",!1))}function P(){return u*c}return O.clearHighlight=function(){M()},O.colorSchema=function(t){return arguments.length?(y=t,this):y},O.height=function(t){return arguments.length?(l=t,this):l},O.highlight=function(t){M(),A(t)},O.highlightEntryById=function(t){return arguments.length?(p=t,this):p},O.isHorizontal=function(t){return arguments.length?(d=t,this):d},O.margin=function(e){return arguments.length?(t=i({},t,e),this):t},O.marginRatio=function(t){return arguments.length?(u=t,this):u},O.markerSize=function(t){return arguments.length?(c=t,this):c},O.numberFormat=function(t){return arguments.length?(h=t,this):h},O.unit=function(t){return arguments.length?(f=t,this):f},O.width=function(t){return arguments.length?(n=t,this):n},O}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(e,["dates"]),o=n.map((function(t){return{date:new Date(t[ot]),value:+t[at]}}));return t.push(i({dates:o},r)),t}),[]),dataByDate:n,dataRange:r}}(s);nt=l.dataByTopic,rt=l.dataByDate,it=l.dataRange;var c,p,m,g=Z?300:0;N=n-t.left-t.right-g,L=v-t.top-t.bottom,function(){var t=e.min(nt,(function(t){var n=t.dates;return e.min(n,Et)})),n=e.max(nt,(function(t){var n=t.dates;return e.max(n,Et)})),r=e.max(nt,(function(t){var n=t.dates;return e.max(n,Tt)})),i=e.min(nt,(function(t){var n=t.dates;return e.min(n,Tt)})),o=i<0?i:0;D=u.scaleTime().domain([t,n]).rangeRound([0,N]),R=u.scaleLinear().domain([o,Math.abs(r)]).rangeRound([L,0]).nice();var a=(I=u.scaleOrdinal().range(U).domain(nt.map(Ot))).range();H=I.domain().reduce((function(t,e,n){return t[e]=a[n],t}),{})}(),function(e){P||(P=f.select(e).append("svg").classed("britechart line-chart",!0),function(){var e=P.append("g").classed("container-group",!0).attr("transform","translate("+t.left+","+t.top+")");e.append("g").classed("x-axis-group",!0).append("g").classed("axis x",!0),e.selectAll(".x-axis-group").append("g").classed("month-axis",!0),e.append("g").classed("y-axis-group",!0).append("g").classed("axis y",!0),e.append("g").classed("grid-lines-group",!0),e.append("g").classed("chart-group",!0),Z&&e.append("g").classed("legend-group",!0),e.append("g").classed("metadata-group",!0)}()),P.attr("width",n).attr("height",v)}(this),function(){var e=void 0,i=void 0;if("custom"===V&&"string"==typeof X)e={tick:Y,format:d.timeFormat(X)},i=null;else{var o=b(rt,n,V,q);e=o.minor,i=o.major,F=r.axisBottom(D).ticks(i.tick).tickSize(0,0).tickFormat(i.format)}B=r.axisBottom(D).ticks(e.tick).tickSize(10,0).tickPadding(5).tickFormat(e.format),z=r.axisLeft(R).ticks(dt).tickSize([0]).tickPadding(5).tickFormat(jt),function(e,n){P.select(".grid-lines-group").selectAll("line").remove(),("horizontal"===bt||"full"===bt)&&P.select(".grid-lines-group").selectAll("line.horizontal-grid-line").data(R.ticks(n)).enter().append("line").attr("class","horizontal-grid-line").attr("x1",-45).attr("x2",N).attr("y1",(function(t){return R(t)})).attr("y2",(function(t){return R(t)})),"vertical"!==bt&&"full"!==bt||P.select(".grid-lines-group").selectAll("line.vertical-grid-line").data(D.ticks(e)).enter().append("line").attr("class","vertical-grid-line").attr("y1",0).attr("y2",L).attr("x1",(function(t){return D(t)})).attr("x2",(function(t){return D(t)})),P.select(".grid-lines-group").selectAll("line.extended-x-line").data([0]).enter().append("line").attr("class","extended-x-line").attr("x1",-45).attr("x2",N).attr("y1",v-t.bottom-t.top).attr("y2",v-t.bottom-t.top)}(e.tick,dt)}(),function(){if(P.select(".x-axis-group .axis.x").attr("transform","translate(0, "+L+")").call(B),"custom"!==V&&P.select(".x-axis-group .month-axis").attr("transform","translate(0, "+(L+28)+")").call(F),lt){ct&&P.selectAll(".x-axis-label").remove();var t=N/2,e=L+28+36;ct=P.select(".x-axis-group").append("text").attr("x",t).attr("y",e).attr("text-anchor","middle").attr("class","x-axis-label").text(lt)}if(P.select(".y-axis-group .axis.y").attr("transform","translate(-15, 0)").call(z).call(Pt),ut){ht&&P.selectAll(".y-axis-label").remove();var n=-ft-15,r=-L/2;ht=P.select(".y-axis-group").append("text").attr("x",r).attr("y",n).attr("text-anchor","middle").attr("transform","rotate(270)").attr("class","y-axis-label").text(ut)}}(),function(){if(it){var t=h.area().curve(w[et]).x((function(t){var e=t.date;return D(e)})).y0((function(t){var e=t.min;return R(e)})).y1((function(t){var e=t.max;return R(e)}));P.select(".chart-group").append("g").attr("class","area").append("path").data([it]).attr("class","area").attr("d",t)}}(),c=void 0,p=void 0,p=h.line().curve(w[et]).x((function(t){var e=t.date;return D(e)})).y((function(t){var e=t.value;return R(e)})),c=P.select(".chart-group").selectAll(".line").data(nt,Ot),j=c.enter().append("g").attr("class","topic").append("path").attr("class","line").merge(c).attr("id",(function(t){return t.topic})).attr("d",(function(t){var e=t.dates;return p(e)})).style("stroke",(function(t){return e=t.topic,I(e);var e})).style("opacity",(function(t){return t.hasOwnProperty("show")?t.show?1:0:1})).style("stroke-dasharray",(function(t){return!!t.hasOwnProperty("show")&&!!t.dashed&&[.5,4]})),c.exit().remove(),function(){if(Z){var e=Number.parseInt(N)+Number.parseInt(t.right);wt=P.selectAll(".legend-group").append("g").attr("transform","translate("+e+", 0)").classed("tooltip-text",!0),kt=wt.append("text").classed("tooltip-title",!0).attr("x",-43).attr("dy",".35em").attr("y",16).style("fill","#282C35").style("font-size","12px"),wt.append("line").classed("tooltip-divider",!0).attr("x1",-43).attr("x2",225).attr("y1",31).attr("y2",31).style("stroke","#D2D6DF"),_t=wt.append("g").classed("tooltip-body",!0).style("transform","translateY(8px)").style("fill","#282C35");var n=void 0;n=nt[0].hasOwnProperty("show")?nt.filter((function(t){return t.show})):nt;for(var r=0;rA&&(pt||(pt=P.select(".metadata-group").append("rect").attr("class","overlay").attr("y1",0).attr("y2",v).attr("height",L).attr("width",N).attr("fill","rgba(0, 0, 0, 0)").style("display","none")),mt||(mt=P.select(".metadata-group").append("g").attr("class","hover-marker vertical-marker-container").attr("transform","translate(9999, 0)"),gt=mt.selectAll("path").data([{x1:0,y1:0,x2:0,y2:0}]).enter().append("line").classed("vertical-marker",!0).attr("x1",0).attr("y1",L).attr("x2",0).attr("y2",0)),P.on("mouseover",(function(t){!function(t,e){pt.style("display","block"),gt.classed("bc-is-active",!0),Mt.call("customMouseOver",t,e,f.mouse(t))}(this,t)})).on("mouseout",(function(t){!function(t,e){pt.style("display","none"),gt.classed("bc-is-active",!1),Mt.call("customMouseOut",t,e,f.mouse(t))}(this,t)})).on("mousemove",(function(e){var n,r,i,o,a;n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(f.mouse(this),2),r=n[0],i=n[1],a=void 0,(o=Dt(r+-t.left))&&(Bt(a=D(new Date(o.date))),It(o),Mt.call("customMouseMove",this,o,H,a,i))}))),$&&function(){P.select(".chart-group").selectAll(".data-points-container").remove();var t=j.nodes().reduce((function(t,e){return t[e.id]=e,t}),{});rt.reduce((function(e,n){var r=n.topics.map((function(e){return{topic:e,node:t[e.name]}}));return[].concat(o(e),o(r))}),[])}(),P.on("touchmove",(function(t){!function(t,e){Mt.call("customTouchMove",t,e,f.touch(t))}(this,t)})),Q&&(m=Dt(N))&&(Bt(D(new Date(m.date))),It(m))}))}function Pt(t){t.selectAll(".tick text").attr("transform","translate(0, -7)")}function jt(t){var e=void 0;return e=M(t)?T:O,yt&&(e=c.format(yt)),e(t)}function Nt(t){return new Date(t).toLocaleDateString()}function Lt(t){var e,n,r=void 0,i=void 0;e=t.topicName,n=t.sum.toLocaleString(),i=_t.append("text").classed("tooltip-left-text",!0).attr("dy","1em").attr("x",-15).attr("y",St).style("fill","#000000").style("font-size","12px").text(e).call(Rt,200,12,-25),r=_t.append("text").classed("tooltip-right-text",!0).attr("dy","1em").attr("x",-15).attr("y",St).style("fill","#000000").style("font-size","12px").text(n),Ct=i.node().getBBox().height?i.node().getBBox().height:Ct,xt=r.node().getBBox().width?r.node().getBBox().width:xt,r.attr("x",300-xt-75),_t.append("circle").classed("tooltip-circle",!0).attr("cx",-35).attr("cy",St+8).attr("r",5).style("fill",H[t.topic]).style("stroke-width",1),St+=Ct+7}function Dt(t){var n,r,i,o=D.invert(t),a=(0,e.bisector(Et).left)(rt,o,1),s=rt[a],l=rt[a-1],c=void 0;return l&&s?(n=o,r=s,i=l,c=new Date(n).getTime()-new Date(r.date).getTime()>new Date(i.date).getTime()-new Date(n).getTime()?r:i):c=s,c}function Rt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;t.each((function(){var i,o,a,s,l,c,u;for(i=(t=f.select(this)).text().split(/\s+/).reverse(),a=[],s=0,l=t.attr("y"),c=parseFloat(t.attr("dy")),u=t.text(null).append("tspan").attr("x",r).attr("y",l).attr("dy",c+"em");o=i.pop();)a.push(o),u.text(a.join(" ")),p.getTextWidth(a.join(" "),n,"Karla, sans-serif")>e&&(a.pop(),u.text(a.join(" ")),s<4&&(a=[o],u=t.append("tspan").attr("x",r).attr("y",l).attr("dy",1.2*++s+c+"em").text(o)))}))}function It(t){mt.selectAll(".circle-container").remove();var e=j.nodes().reduce((function(t,e){return t[e.id]=e,t}),{}),n=nt.filter((function(t){return!t.show})).map((function(t){return t.topicName})),r=t.topics.map((function(t){return{topic:t,node:e[t.name]}})).filter((function(t){return!!t.topic})).sort((function(t,e){return H[t.topic.name]s.x+r;){var c=(o+a)/2;if(t<(s=e.getPointAtLength(c)).x?a=c:o=c,100<(l+=1))break}return vt[i]=s.y,vt[i]}(D(new Date(t.topics[i].date)),a,e.name);o.attr("transform","translate( -12, "+s+" )")}))}function Bt(t){mt.attr("transform","translate("+t+",0)")}return At.aspectRatio=function(t){return arguments.length?(E=t,this):E},At.xAxisLabel=function(t){return arguments.length?(lt=t,this):lt},At.yAxisLabel=function(t){return arguments.length?(ut=t,this):ut},At.colorSchema=function(t){return arguments.length?(U=t,this):U},At.dateLabel=function(t){return arguments.length?(ot=t,this):ot},At.xAxisFormat=function(t){return arguments.length?(V=t,this):V},At.xAxisCustomFormat=function(t){return arguments.length?(X=t,this):X},At.xTicks=function(t){return arguments.length?(Y=t,this):Y},At.grid=function(t){return arguments.length?(bt=t,this):bt},At.height=function(t){return arguments.length?(E&&(n=Math.ceil(t/E)),v=t,this):v},At.initializeVerticalMarker=function(t){return arguments.length?(Q=t,this):Q},At.isAnimated=function(t){return arguments.length?(K=t,this):K},At.isPrintMode=function(t){return arguments.length?(Z=t,this):Z},At.loadingState=function(t){return arguments.length?(_=t,this):_},At.margin=function(e){return arguments.length?(t=i({},t,e),this):t},At.numberFormat=function(t){return arguments.length?(yt=t,this):yt},At.lineCurve=function(t){return arguments.length?(et=t,this):et},At.shouldShowAllDataPoints=function(t){return arguments.length?($=t,this):$},At.tooltipThreshold=function(t){return arguments.length?(A=t,this):A},At.topicLabel=function(t){return arguments.length?(st=t,this):st},At.valueLabel=function(t){return arguments.length?(at=t,this):at},At.yAxisLabelPadding=function(t){return arguments.length?(ft=t,this):ft},At.yTicks=function(t){return arguments.length?(dt=t,this):dt},At.width=function(t){return arguments.length?(E&&(v=Math.ceil(t*E)),n=t,this):n},At.locale=function(t){return arguments.length?(q=t,this):q},At.exportChart=function(t,e){m.call(At,P,t,e)},At.on=function(){var t=Mt.on.apply(Mt,arguments);return t===Mt?At:t},At.axisTimeCombinations=x,At}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;e0?"+":"")+u.format(R)(e)+"%"},dt=function(t){var e=t.parentCount,n=t.value;return e?S(e)+D:S(n)+D},pt=function(t){var e=t.name;return C(e)+B*(3/8)};function mt(i){i.each((function(i){var a=t.left+t.right;_=y>600?y-a-1.2*Y-100:y-a,k=b-t.top-t.bottom;var l=function(t){var e=t.reduce((function(t,e){return e.name=String(e[at]),e.pctOfSet=+e.pctOfSet,e.pctChange=+e[st],e.value=+e[it],e.width=+e.width,[].concat(o(t),[e])}),[]),n=e.slice();return{data:e,dataZeroed:n}}(i);x=l.data,w=l.dataZeroed,function(){bt=function(t,n){var r=t.length,i=e.sum(t,n),o=xt(t),a=(k-(r-1)*U*k/r-2*W*k/r)/i;if(0===o.length)return a;var s=h.scalePow().exponent(1/o.length).domain([0,100]).range([0,10*o.length])(r);return a-(lt?2*s:s)}(x,gt),vt=function(n,r,i){var o=yt(n,r,i),a=n.length,s=function(t,e){var n=[];return t.forEach((function(t){var r=e.map((function(e,n){return e.name===t||e.parent===t?n:null})).filter((function(t){return t}));n.push(r)})),n}(xt(n),n);return function(l,c){var u=U*k/a,h=W*k/a+e.sum(n.slice(0,c),r)*i+c*u+o(c)/2;return s.forEach((function(t){t[0]>1&&c>=t[0]&&(h+=lt?20:H),c>t[t.length-1]&&(h+=lt?20:H)})),h+t.top}}(x,gt,bt),yt(x,gt,bt);var n=Math.min(P*r.max(x,ht));S=h.scaleLinear().domain([0,n]).rangeRound([0,_]);var i=x.map(vt);C=h.scaleOrdinal().domain(x.map(ut)).range(i),T=x.map((function(t){return t})).map((function(t,e){return{name:t.name,color:E[e%E.length]}})),O=function(t){return T.filter((function(e){return e.name===t}))[0].color}}(),G=s.axisBottom(S).ticks(A,j).tickSizeInner([-k]),V=s.axisLeft(C),function(e){n=e,q||((q=f.select(e).append("svg").classed("britechart row-chart",!0)).append("rect").classed("export-wrapper",!0).attr("width",y).attr("height",b).attr("fill","white"),function(){var e=q.append("g").classed("container-group",!0).attr("transform","translate("+(t.left+Y)+", "+t.top+")");e.append("g").classed("chart-group",!0),e.append("g").classed("title-group",!0),e.append("g").classed("x-axis-group axis",!0),e.append("g").attr("transform","translate("+-1*Y+", 0)").classed("y-axis-group axis",!0),e.append("g").classed("metadata-group",!0)}()),q.attr("width",y).attr("height",b)}(this),function(){if(x&&x[0]){var e=x[0].parentCount?S(x[0].parentCount):1;e=e>0?e:1;var n=x[0].parentCount;q.select(".title-group").selectAll("g").remove(),q.select(".title-group").selectAll("text").remove();var r=window.navigator.userAgent,i=r.indexOf("Edge")>-1||r.indexOf("MSIE")>-1;if(tt&&n){for(var o=tt+" "+n.toLocaleString(),a=d.getTextWidth(o,F,"sans-serif"),s=lt?100:40,l=t.left+e-s-0,c=!1;a>l;)c=!0,o=(tt=tt.slice(0,-1))+"... "+n.toLocaleString(),a=d.getTextWidth(o,F,"sans-serif");var u=q.select(".title-group").append("text").text(null).attr("y",10);tt=c?tt+"...":tt;var h=u.append("tspan").text(tt).attr("font-size",F);u.append("tspan").text(n.toLocaleString()).classed("count",!0).attr("dx",5).attr("font-size",F).attr("font-weight",600);var f=h.node().getBoundingClientRect().width+10;lt&&i&&(f+=40);var p=e-f-5;u.attr("x",p)}if(nt){var m=nt.toLocaleString(),g=et+" "+m,b=d.getTextWidth(g,F,"Karla, sans-serif"),v=lt&&i?10:0,w=i?5:0,k=q.select(".title-group").append("text").text(null).attr("x",_-b-v-10-w-5).attr("y",10);k.append("tspan").text(et).attr("font-size",F),k.append("tspan").text(m).classed("count",!0).attr("dx",5).attr("font-size",F).attr("font-weight",600);var C=y>600?_-k.node().getBoundingClientRect().width-10-v:_-k.node().getBoundingClientRect().width-10;k.attr("x",C)}rt&&y>600&&q.select(".title-group").append("text").text("Change in past "+rt).attr("font-size",F).attr("x",_+5).attr("y",10)}}(),function(){var e=void 0;$?(Et(e=q.select(".chart-group").selectAll(".row").data(w)),x&&x[0]&&x[0].parentCount&&q.select(".chart-group").append("line").classed("focus-separator",!0).attr("y1",-10).attr("x1",S(x[0].parentCount)).attr("y2",k+t.top+t.bottom).attr("x2",S(x[0].parentCount)).style("stroke","#e7e8e9").style("stroke-width",1),q.select(".chart-group").append("line").classed("pct-separator",!0).attr("y1",-10).attr("x1",_).attr("y2",k).attr("x2",_).style("stroke","#000").style("stroke-width",1),function(t){t.attr("x",0).attr("y",(function(t,e){return C(t.name)-bt*t.width/2})).attr("height",(function(t){return bt*t.width})).attr("fill",(function(t){return O(t.name)})).attr("width",0).transition().duration(800).ease(K).attr("width",(function(t){var e=t.value;return S(e)}))}(e=q.select(".chart-group").selectAll(".row rect.pct").data(x))):Et(e=q.select(".chart-group").selectAll("rect").data(x)),e.exit().transition().style("opacity",0).remove()}(),function(){var e=t.left;q.select(".x-axis-group.axis").attr("transform","translate(0, "+k+")").call(G),q.select(".y-axis-group.axis").call(V),lt||(q.selectAll(".y-axis-group.axis .tick").call(St),e=t.left-Y-30),q.selectAll(".y-axis-group.axis .tick text").classed("child",(function(t){return x.find((function(e){return e.name===t})).parent})).classed("print-mode",lt).on("mouseover",Tt).on("mouseout",Ot).call(kt,e).selectAll("tspan").attr("font-size",_t),q.selectAll(".y-axis-group.axis .tick text").classed("hidden",(function(t){return x.find((function(e){return e.name===t})).splitterText})),lt||q.selectAll(".y-axis-group.axis .tick").classed("expandable",(function(t){return function(t,e){return t.find((function(t){return t.name===e})).hasChildren}(x,t)})).call(Ct)}(),function(){var t=q.selectAll(".row-wrapper"),e=Number(t.size())-1,n=q.select(".row_"+e).select(".bg-hover");if(n._groups[0]&&n._groups[0][0]){var r=Number(n.attr("y"))+Number(n.attr("height"))+40;q.select("line.pct-separator").attr("y2",r),q.select(".export-wrapper").attr("height",r),q.attr("height",r)}}()}))}function gt(t){return+t.width}function yt(t,e,n){return function(r){return e(t[r])*n}}var bt=void 0,vt=void 0;function xt(t){return[].concat(o(new Set(t.filter((function(t){return t.parent&&!1===t.isParent})).map((function(t){return t.parent})))))}function wt(t){return x.find((function(e){return(e.name===t.name||e.name===t)&&e.isParent}))}function _t(t){return wt(t)?B+"px":F+"px"}function kt(t,e){if(ot){var n=X>1?.8:1.2;d.wrapTextWithEllipses(t,e,0,X,n)}}function St(e){e.each((function(){var n=(e=f.select(this)).node().getBBox().height/2,r=e.append("svg").attr("class",(function(t){var e;return(e=t,x.find((function(t){return t.name===e}))).splitterText?"hidden":"visibility visibility-"+Mt(t)})).attr("x",30-t.left).attr("y",-n).attr("width","300").attr("height","300").attr("viewBox","0 0 600 600").attr("fill","none").attr("opacity",0);r.append("rect").attr("x",-10).attr("y",-10).attr("height","50").attr("width","50").attr("fill","#d6e8fa").on("mouseover",Tt).on("mouseout",Ot),r.append("path").attr("d","M 10,10 L 30,30 M 30,10 L 10,30").attr("stroke","#0072ce").attr("stroke-width","2")}))}function Ct(t){t.each((function(){f.select(this).selectAll("polygon").remove(),(t=f.select(this)).append("polygon").attr("transform",(function(t){return x.find((function(e){return e.parent===t}))?"translate("+(Y-5)+", 2.5) rotate(180)":"translate("+(Y-15)+", -2.5)"})).attr("points",(function(t){return"0,0 10,0 5,5"})).style("fill",(function(t){return"#0072ce"})).style("fill-opacity",(function(t){return x.find((function(e){return e.name===t&&e.hasChildren}))?1:0}))}))}function Et(e){var n=e.enter().append("g").attr("class",(function(t,e){return"row_"+e+" row-wrapper"})),r=n.filter((function(t){return t.splitterText}));n.append("rect").attr("class","bg").on("click",(function(t){At(this,t,_,k)})).attr("x",0).attr("y",(function(t,e){return C(t.name)-bt*t.width/2})).attr("height",(function(t){return bt*t.width})).attr("width",_).attr("fill",(function(t){return t.splitterText?"#fff":Z})),n.append("rect").attr("class","bg-hover").attr("x",-t.left).attr("y",(function(t,e){return C(t.name)-bt*t.width/2})).attr("width",y).attr("height",(function(t){return bt*t.width})).on("mouseover",Tt).on("mouseout",Ot).attr("fill-opacity",0).attr("fill",(function(t){return t.splitterText?"#fff":"#d6e8fa"})),n.append("rect").attr("class","focus-bar").attr("x",0).attr("y",(function(t,e){return C(t.name)-bt*t.width/2})).attr("height",(function(t){return bt*t.width})).attr("width",(function(t){var e=t.parentCount;return e?S(e):0})).attr("fill","#e7e8e9").attr("fill-opacity",(function(t){return t.parent?.5:1})),n.append("rect").attr("class","pct").on("mouseover",(function(t,e,n){!function(t,e,n,r,i){e.splitterText||(ct.call("customMouseOver",t,e,f.mouse(t),[r,i]),Tt(e),f.select(t).attr("fill",(function(t){var e=t.name;return e?l.color(O(e)).darker():""})))}(this,t,0,_,k)})).on("mousemove",(function(t){!function(t,e,n,r){e.splitterText||ct.call("customMouseMove",t,e,f.mouse(t),[n,r])}(this,t,_,k)})).on("mouseout",(function(t,e,n){!function(t,e,n,r,i){e.splitterText||(ct.call("customMouseOut",t,e,f.mouse(t),[r,i]),Ot(e),n.forEach((function(t){f.select(t).attr("fill",(function(t){var e=t.name;return e?O(e):""}))})))}(this,t,n,_,k)})).on("click",(function(t){At(this,t,_,k)})).attr("x",0).attr("y",(function(t,e){return C(t.name)-bt*t.width/2})).attr("height",(function(t){return bt*t.width})).attr("width",(function(t){var e=t.value;return S(e)})).attr("fill",(function(t){return O(t.name)})).attr("fill-opacity",(function(t){return t.parent?.5:1}));var i=f.select(".chart-group .bg");if(N&&i.node()){var o=i.node().getBBox().x||i.node().getBoundingClientRect().width;n.append("text").attr("class","percentage-label").classed("child",(function(t){return!wt(t)})).attr("x",dt).attr("y",pt).text((function(t){return function(t,e){var n=t.isNotFilter,r=t.pctOfSet,i=t.parent,o=t.value,a=t.isParent;if(!t.splitterText){var s="";if(n)return"";r&&!i&&y>600&&(s=" | "+r+"%"),1===Number(o)&&(I=I.replace(/s$/,""));var l=u.format(R)(o)+" "+I+s,c=a?B:F,h=d.getTextWidth(l,c,"sans-serif")+10,f=S(o);return h>f&&h>e-f?u.format(R)(o):l}}(t,o)})).attr("font-size",_t).attr("fill",(function(t,e){var r=S(t.value),i=n.selectAll("text")._groups[e][0].getComputedTextLength()+10;return o>0&&o-r0&&o-r600){var s=n.append("g").attr("transform","translate("+(_+10)+", 0)").attr("class","change-label-group");s.append("text").attr("y",pt).attr("font-size",_t).attr("font-weight","600").style("fill",(function(t){return 0===t.pctChange||isNaN(t.pctChange)?"#919395":t.pctChange>0?J:Q})).text(ft),s.append("polygon").attr("transform",(function(t){var e=pt(t);return wt(t)?t.pctChange<0?"translate(65, "+(e+5)+") rotate(180) scale(1.5)":"translate(50, "+(e-15)+") scale(1.5)":t.pctChange<0?"translate(50, "+(e+5)+") rotate(180)":"translate(40, "+(e-10)+")"})).attr("points",(function(t){return"2,8 2,13 8,13 8,8 10,8 5,0 0,8"})).style("fill",(function(t){return t.pctChange>0?J:Q})).attr("class",(function(t){return t.pctChange<0?"down":"up"})).attr("fill-opacity",(function(t){var e=t.pctChange;return isNaN(e)||0===e?0:1}))}}function Tt(t,e){if(!t.splitterText){var r=e;"string"!=typeof t.name&&"string"!=typeof t||(r=t.name?Mt(t.name):Mt(t)),f.select(n).select(".tick svg.visibility-"+r).attr("opacity",1),f.select(n).select("g.row_"+r+" .bg-hover").attr("fill-opacity",1)}}function Ot(t,e){if(!t.splitterText){var r=e;"string"!=typeof t.name&&"string"!=typeof t||(r=t.name?Mt(t.name):Mt(t)),f.select(n).select(".tick svg.visibility-"+r).attr("opacity",0),f.select(n).select("g.row_"+r+" .bg-hover").attr("fill-opacity",0)}}function Mt(t){return x.findIndex((function(e){return e.name===t}))}function At(t,e,n,r){ct.call("customClick",t,e,f.mouse(t),[n,r])}return mt.backgroundColor=function(t){return arguments.length?(Z=t,this):Z},mt.upArrowColor=function(t){return arguments.length?(J=t,this):J},mt.downArrowColor=function(t){return arguments.length?(Q=t,this):Q},mt.colorSchema=function(t){return arguments.length?(E=t,this):E},mt.enableLabels=function(t){return arguments.length?(N=t,this):N},mt.enableYAxisRight=function(t){return arguments.length?(L=t,this):L},mt.exportChart=function(t,e){p.call(mt,q,t,e)},mt.height=function(t){return arguments.length?(b=t,this):b},mt.isAnimated=function(t){return arguments.length?($=t,this):$},mt.labelsMargin=function(t){return arguments.length?(D=t,this):D},mt.labelsNumberFormat=function(t){return arguments.length?(R=t,this):R},mt.labelsSuffix=function(t){return arguments.length?(I=t,this):I},mt.labelsSize=function(t){return arguments.length?(B=t,this):B},mt.labelsSizeChild=function(t){return arguments.length?(F=t,this):F},mt.pctChangeLabelSize=function(t){return arguments.length?(z=t,this):z},mt.loadingState=function(t){return arguments.length?(v=t,this):v},mt.margin=function(e){return arguments.length?(t=i({},t,e),this):t},mt.nameLabel=function(t){return arguments.length?(at=t,this):at},mt.numberFormat=function(t){return arguments.length?(j=t,this):j},mt.on=function(){var t=ct.on.apply(ct,arguments);return t===ct?mt:t},mt.percentageAxisToMaxRatio=function(t){return arguments.length?(P=t,this):P},mt.isPrintMode=function(t){return arguments.length?(lt=t,this):lt},mt.outerPadding=function(t){return arguments.length?(W=t,this):W},mt.padding=function(t){return arguments.length?(U=t,this):U},mt.paddingBetweenGroups=function(t){return arguments.length?(H=t,this):H},mt.pctChangeLabel=function(t){return arguments.length?(st=t,this):st},mt.yAxisLineWrapLimit=function(t){return arguments.length?(X=t,this):X},mt.labelsFocusTitle=function(t){return arguments.length?(tt=t,this):tt},mt.labelsTotalCount=function(t){return arguments.length?(nt=t,this):nt},mt.labelsTotalText=function(t){return arguments.length?(et=t,this):et},mt.labelsInterval=function(t){return arguments.length?(rt=t,this):rt},mt.valueLabel=function(t){return arguments.length?(it=t,this):it},mt.width=function(t){return arguments.length?(y=t,this):y},mt.xTicks=function(t){return arguments.length?(A=t,this):A},mt.yAxisPaddingBetweenChart=function(t){return arguments.length?(Y=t,this):Y},mt.yTicks=function(t){return arguments.length?(M=t,this):M},mt.wrapLabels=function(t){return arguments.length?(ot=t,this):ot},mt}}.call(e,n,e,t))||(t.exports=r)},function(e,n){e.exports=t},function(t,e,n){"use strict";var r,i="function"==typeof Symbol&&"symbol"==s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)},o=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};void 0===(r=function(t){var e=n(11),r=n(9),a=n(2),s=(n(8),n(28)),l=n(35).axisTimeCombinations,c=n(24),u=c.formatIntegerValue,h=c.formatDecimalValue,f=c.isInteger,d=n(26).getTextWidth;return function(){var t="Tooltip title",n=!0,c=void 0,p={y:-55,x:0},m=void 0,g=void 0,y=void 0,b=void 0,v=48,x=0,w=37,_=void 0,k=void 0,S=e.easeQuadInOut,C=void 0,E="date",T="value",O="name",M="topics",A=l.DAY_MONTH,P=null,j=null,N=[],L=null,D=null,R=s.timeFormat("%b %d, %Y"),I=s.timeFormat("%b %d, %I %p"),B=void 0,F=void 0;function z(t){t.each((function(t){!function(t){F||((F=a.select(t).append("g").classed("britechart britechart-tooltip",!0).style("visibility","hidden")).append("g").classed("tooltip-container-group select-disable",!0).attr("transform","translate( 2, 2)").append("g").classed("tooltip-group",!0),m=F.selectAll(".tooltip-group").append("g").classed("tooltip-text",!0),c=m.append("rect").classed("tooltip-text-container",!0).attr("x",-54.5).attr("y",0).attr("width",250).attr("height",v).attr("rx",3).attr("ry",3).style("fill","#FFFFFF").style("stroke","#D2D6DF").style("stroke-width",1),b=m.append("text").classed("tooltip-title",!0).attr("x",-46.5).attr("dy",".35em").attr("y",16).style("fill","#6D717A"),g=m.append("line").classed("tooltip-divider",!0).attr("x1",-46.5).attr("x2",265).attr("y1",31).attr("y2",31).style("stroke","#D2D6DF"),y=m.append("g").classed("tooltip-body",!0).style("transform","translateY(8px)").style("fill","#282C35")),F.transition().attr("width",250).attr("height",45),z.hide()}(this)}))}function U(t){var e=t[T];return t.missingValue?"-":function(t){if(null!==D)return D(t);var e=h;return t?(null!==L?e=r.format(L):f(t)&&(e=u),e(t)):0}(e).toString()}function H(t){var e,n,r=t[O],i=void 0,o=void 0;e=t.topicName||r,n=U(t),o=y.append("text").classed("tooltip-left-text",!0).attr("dy","1em").attr("x",x).attr("y",w).style("fill","#000000").text(e).call(W,170,-25),i=y.append("text").classed("tooltip-right-text",!0).attr("dy","1em").attr("x",x).attr("y",w).style("fill","#000000").text(n),_=o.node().getBBox().height?o.node().getBBox().height:_,v+=_+5,k=i.node().getBBox().width?i.node().getBBox().width:k,i.attr("x",250-k-10-62.5),y.append("circle").classed("tooltip-circle",!0).attr("cx",-39.5).attr("cy",w+8).attr("r",5).style("fill",C[r]).style("stroke-width",1),w+=_+7}function W(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t.each((function(){var r,i,o,s,l,c,u;for(r=(t=a.select(this)).text().split(/\s+/).reverse(),o=[],s=0,l=t.attr("y"),c=parseFloat(t.attr("dy")),u=t.text(null).append("tspan").attr("x",n).attr("y",l).attr("dy",c+"em");i=r.pop();)o.push(i),u.text(o.join(" ")),d(o.join(" "),16,"Karla, sans-serif")>e&&(o.pop(),u.text(o.join(" ")),s<2&&(o=[i],u=t.append("tspan").attr("x",n).attr("y",l).attr("dy",1.2*++s+c+"em").text(i)))}))}function G(e){var r=e[M];N.length?r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N;return e.map((function(e){return t.filter((function(t){return t.name===e}))[0]}))}(r):r.length&&r[0].name&&(r=function(t){return t.map((function(t){return t})).sort((function(t,e){return t.name>e.name?1:t.name===e.name?0:-1}))}(r)),y.selectAll("text").remove(),y.selectAll("circle").remove(),function(e){var r=t,o=function(t){var e=P||A,n=null,r={month:"short",day:"numeric"};return e===l.DAY_MONTH||e===l.MONTH_YEAR?(n=R,r.year="numeric"):e===l.HOUR_DAY||e===l.MINUTE_HOUR?(n=I,r.hour="numeric"):e===l.CUSTOM&&"string"==typeof j&&(n=s.timeFormat(j)),B&&"undefined"!=typeof Intl&&"object"===("undefined"==typeof Intl?"undefined":i(Intl))&&Intl.DateTimeFormat?Intl.DateTimeFormat(B,r).format(t):n(t)}(new Date(e[E]));r.length?n&&(r=r+" - "+o):r=o,b.text(r)}(e),v=48,w=37,x=0,r.forEach(H)}function V(t,e,n){G(t),function(t,e,n){var r,i,a=(i=(r=o([e,n],2))[0],r[1],[i-250<0?65:-205,p.y]),s=o(a,2),l=s[0],u=s[1];c.attr("width",250).attr("height",v+10),m.transition().duration(100).ease(S).attr("transform","translate("+l+", "+u+")"),g.attr("x2",190)}(0,e,n)}return z.axisTimeCombinations=l,z.dateFormat=function(t){return arguments.length?(P=t,this):P||A},z.dateCustomFormat=function(t){return arguments.length?(j=t,this):j},z.dateLabel=function(t){return arguments.length?(E=t,this):E},z.hide=function(){return F.style("visibility","hidden"),this},z.locale=function(t){return arguments.length?(B=t,this):B},z.nameLabel=function(t){return arguments.length?(O=t,this):O},z.numberFormat=function(t){return arguments.length?(L=t,this):L},z.valueFormatter=function(t){return arguments.length?(D=t,this):D},z.shouldShowDateInTitle=function(t){return arguments.length?(n=t,this):n},z.show=function(){return F.style("visibility","visible"),this},z.title=function(e){return arguments.length?(t=e,this):t},z.tooltipOffset=function(t){return arguments.length?(p=t,this):p},z.topicsOrder=function(t){return arguments.length?(N=t,this):N},z.topicLabel=function(t){return arguments.length?(M=t,this):M},z.update=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return C=e,V(t,n,r),this},z.valueLabel=function(t){return arguments.length?(T=t,this):T},z}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};void 0===(r=function(t){var e=n(0),r=n(11),o=n(9),a=n(2);return n(8),function(){var t=12,n=12,s="",l="value",c="name",u=r.easeQuadInOut,h=void 0,f=void 0,d=".2f",p=function(t){return o.format(d)(t)},m=void 0,g=void 0,y=void 0;function b(e){e.each((function(){m=76,g=76,function(t){y||(y=a.select(t).append("g").classed("britechart britechart-mini-tooltip",!0)).append("g").classed("tooltip-container-group",!0).attr("transform","translate( 12, 12)").append("g").classed("tooltip-group",!0),y.transition().attr("width",100).attr("height",100),b.hide()}(this),f=y.selectAll(".tooltip-group").append("g").classed("tooltip-text select-disable",!0),h=f.append("rect").classed("tooltip-background",!0).attr("width",100).attr("height",100).attr("rx",1).attr("ry",1).attr("y",-t).attr("x",-n).style("fill","#43484e").style("stroke","#43484e").style("stroke-width",1).style("pointer-events","none").style("opacity",.9)}))}function v(){for(var t=arguments.length,n=Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},e=t[l]||"",n=t[c]||"",r=21,i=22*1.18,o="1em",a=0,u=void 0,h=void 0,d=void 0;f.selectAll("text").remove(),s&&(d=f.append("text").classed("mini-tooltip-title",!0).attr("dy",o).attr("y",0).style("fill","#43484e").style("font-size",14).text(s),a=r+a),n&&(h=f.append("text").classed("mini-tooltip-name",!0).attr("dy",o).attr("y",a||0).style("fill","#ffffff").style("font-size",14).text(n),a=r+a),e&&(u=f.append("text").classed("mini-tooltip-value",!0).attr("dy",o).attr("y",a||0).style("fill","#ffffff").style("font-size",22).style("font-weight",200).text(p(e)),a=i+a),m=v(h,d,u),g=a}function w(e,r,o){var a,s,l,c;x(e),a=function(e,r){var o=i(e,2),a=o[0],s=o[1],l=i(r,2),c=l[0],u=l[1];return[function(t,e){return t-n-12-m-e>0}(c,a)?a+20:a-m-20-12,function(e,n){return e-t-12-g-n>0}(u,s)?s+0:s-g-0-12]}(r,o),l=(s=i(a,2))[0],c=s[1],y.transition().duration(100).ease(u).attr("height",g+t+12).attr("width",m+n+12).attr("transform","translate("+l+","+c+")"),h.attr("height",g+t+12).attr("width",m+n+12)}return b.hide=function(){return y.style("visibility","hidden"),this},b.nameLabel=function(t){return arguments.length?(c=t,this):c},b.numberFormat=function(t){return arguments.length?(d=t,this):d},b.valueFormatter=function(t){return arguments.length?(p=t,this):p},b.show=function(){return x(void 0),y.style("visibility","visible"),this},b.title=function(t){return arguments.length?(s=t,this):s},b.update=function(t,e,n){return w(t,e,n),this},b.valueLabel=function(t){return arguments.length?(l=t,this):l},b}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;et[n]?-1:t[e]===t[n]?0:1})),n=e.indexOf("Other");if(n>=0){var r=e.splice(n,1);e=e.concat(r)}return e}(e);var n=h.stack().keys(K).order(h.stackOrderNone).offset(h.stackOffsetNone);ot=n(St),rt=n(kt)}(),g=Pt?At.maxY:(y=L(wt.map((function(t){return t.name}))),e.max(kt,(function(t){var n=y.map((function(e){return t[e]}));return e.sum(n)}))),E=u.scaleTime().domain(e.extent(_t,(function(t){return t.date}))).rangeRound([0,vt]),R=u.scaleLinear().domain([0,g]).rangeRound([xt,0]).nice(),q=K.reduce((function(t,e,n){return p({},t,a({},e,W[n]))}),{}),x=L(wt.map((function(t){return t.name}))),_={},x.forEach((function(t){var e=wt.find((function(e){return e.name===t}));e.hasOwnProperty("show")?_[t]=e.show:_[t]=!0})),$=_,function(e){bt||((bt=f.select(e).append("svg").classed("britechart stacked-area",!0)).append("rect").classed("export-wrapper",!0).attr("width",n).attr("height",v).attr("fill","white"),function(){var e=bt.append("g").classed("container-group",!0).attr("transform","translate("+t.left+","+t.top+")");e.append("g").classed("x-axis-group",!0).append("g").classed("x axis",!0),e.selectAll(".x-axis-group").append("g").classed("month-axis",!0),e.append("g").classed("y-axis-group axis",!0),e.append("g").classed("grid-lines-group",!0),e.append("g").classed("y-axis-label",!0),e.append("g").classed("chart-group",!0),mt&&e.append("g").classed("legend-group",!0),e.append("g").classed("metadata-group",!0)}()),bt.attr("width",n).attr("height",v)}(this),function(){var e=void 0,i=void 0;if("custom"===Q&&"string"==typeof tt)e={tick:J,format:d.timeFormat(tt)},i=null;else{var o=b(_t,n,Q,et);e=o.minor,i=o.major,D=r.axisBottom(E).ticks(i.tick).tickSize(0,0).tickFormat(i.format)}A=r.axisBottom(E).ticks(e.tick).tickSize(10,0).tickPadding(5).tickFormat(e.format),I=r.axisRight(R).ticks(F).tickSize([0]).tickPadding(5).tickFormat(Wt),function(e,n){bt.select(".grid-lines-group").selectAll("line").remove(),("horizontal"===Ct||"full"===Ct)&&bt.select(".grid-lines-group").selectAll("line.horizontal-grid-line").data(R.ticks(n)).enter().append("line").attr("class","horizontal-grid-line").attr("x1",-45).attr("x2",vt).attr("y1",(function(t){return R(t)})).attr("y2",(function(t){return R(t)})),"vertical"!==Ct&&"full"!==Ct||bt.select(".grid-lines-group").selectAll("line.vertical-grid-line").data(E.ticks(e)).enter().append("line").attr("class","vertical-grid-line").attr("y1",0).attr("y2",xt).attr("x1",(function(t){return E(t)})).attr("x2",(function(t){return E(t)})),bt.select(".grid-lines-group").selectAll("line.extended-x-line").data([0]).enter().append("line").attr("class","extended-x-line").attr("x1",-45).attr("x2",vt).attr("y1",v-t.bottom-t.top).attr("y2",v-t.bottom-t.top)}(e.tick,F)}(),bt.select(".x-axis-group .axis.x").attr("transform","translate( 0, "+xt+" )").call(A),"custom"!==Q&&bt.select(".x-axis-group .month-axis").attr("transform","translate(0, "+(xt+30)+")").call(D),bt.select(".y-axis-group.axis").attr("transform","translate( -15, 0)").call(I).call(Gt),z&&(U&&bt.selectAll(".y-axis-label-text").remove(),U=bt.select(".y-axis-label").append("text").classed("y-axis-label-text",!0).attr("x",-xt/2).attr("y",H).attr("text-anchor","middle").attr("transform","rotate(270 0 0)").text(z)),function(){if(it&&(bt.selectAll(".layer-container").remove(),bt.selectAll(".layer").remove(),bt.selectAll(".area-outline").remove()),Pt)return t=h.line().x((function(t){return E(t.date)})).y((function(){return R(0)-1})),(e=bt.select(".chart-group")).append("path").attr("class","empty-data-line").attr("d",t(kt)).style("stroke","url(#empty-data-line-gradient)"),void e.append("linearGradient").attr("id","empty-data-line-gradient").attr("gradientUnits","userSpaceOnUse").attr("x1",0).attr("x2",E(wt[wt.length-1].date)).attr("y1",0).attr("y2",0).selectAll("stop").data([{offset:"0%",color:G[0]},{offset:"100%",color:G[1]}]).enter().append("stop").attr("offset",(function(t){return t.offset})).attr("stop-color",(function(t){return t.color}));var t,e;at=h.area().curve(w[nt]).x((function(t){var e=t.data;return E(e.date)})).y0((function(t){return R(t[0])})).y1((function(t){return R(t[1])})),st=h.line().curve(at.curve()).x((function(t){var e=t.data;return E(e.date)})).y((function(t){return R(t[1])})),pt?((it=bt.select(".chart-group").selectAll(".layer").data(ot,Bt).enter().append("g").classed("layer-container",!0)).append("path").attr("class","layer").attr("d",at).style("opacity",(function(t){var e=t.key;return $[e]?X:0})).style("fill",(function(t){var e=t.key;return q[e]})),it.append("path").attr("class","area-outline").attr("d",st).style("stroke",(function(t){var e=t.key;return q[e]})).style("opacity",(function(t){var e=t.key;return $[e]?X:0})),bt.select(".chart-group").selectAll(".layer").data(rt).transition().delay((function(t,e){return lt[e]})).duration(1e3).ease(gt).attr("d",at).style("opacity",(function(t){var e=t.key;return $[e]?X:0})).style("fill",(function(t){var e=t.key;return q[e]})),bt.select(".chart-group").selectAll(".area-outline").data(rt).transition().delay((function(t,e){return lt[e]})).duration(1e3).ease(gt).attr("d",st).style("opacity",(function(t){var e=t.key;return $[e]?X:0}))):((it=bt.select(".chart-group").selectAll(".layer").data(rt).enter().append("g").classed("layer-container",!0)).append("path").attr("class","layer").attr("d",at).style("opacity",(function(t){var e=t.key;return $[e]?X:0})).style("fill",(function(t){var e=t.key;return q[e]})),it.append("path").attr("class","area-outline").attr("d",st).style("stroke",(function(t){var e=t.key;return q[e]})).style("opacity",(function(t){var e=t.key;return $[e]?X:0})),bt.select(".chart-group").selectAll(".layer").attr("d",at).style("opacity",(function(t){var e=t.key;return $[e]?X:0})).style("fill",(function(t){var e=t.key;return q[e]})),bt.select(".chart-group").selectAll(".area-outline").attr("class","area-outline").attr("d",st).style("stroke",(function(t){var e=t.key;return q[e]})).style("opacity",(function(t){var e=t.key;return $[e]?X:0}))),yt||bt.select(".chart-group").selectAll(".area-outline").style("display","none"),it.exit().transition().style("opacity",0).remove()}(),function(){if(mt){var e=Number.parseInt(vt)+Number.parseInt(t.right);Nt=bt.selectAll(".legend-group").append("g").attr("transform","translate("+e+", 0)").classed("tooltip-text",!0),Dt=Nt.append("text").classed("tooltip-title",!0).attr("x",-43).attr("dy",".35em").attr("y",16).style("fill","#282C35").style("font-size","12px"),Nt.append("line").classed("tooltip-divider",!0).attr("x1",-43).attr("x2",225).attr("y1",31).attr("y2",31).style("stroke","#D2D6DF"),Lt=Nt.append("g").classed("tooltip-body",!0).style("transform","translateY(8px)").style("fill","#282C35");for(var n=[].concat(o(new Set(wt.map((function(t){return t.name}))))),r=[],i=function(t){var e={},i=n[t];e.name=i,e.sum=wt.filter((function(e){return e.name===n[t]})).reduce((function(t,e){return t+e.value}),0),r.push(e)},a=0;aEt&&!Pt&&(ct&&bt.selectAll(".overlay").remove(),ct=bt.select(".metadata-group").append("rect").attr("class","overlay").attr("y1",0).attr("y2",xt).attr("height",xt).attr("width",vt).attr("fill","rgba(0, 0, 0, 0)").style("display","none"),ut&&bt.selectAll(".vertical-marker-container").remove(),ut=bt.select(".metadata-group").append("g").attr("class","vertical-marker-container").attr("transform","translate(9999, 0)"),ht=ut.selectAll("path").data([{x1:0,y1:0,x2:0,y2:0}]).enter().append("line").classed("vertical-marker",!0).attr("x1",0).attr("y1",xt).attr("x2",0).attr("y2",0),bt.on("mouseover",(function(t){!function(t,e){ct.style("display","block"),ht.classed("bc-is-active",!0),zt.call("customMouseOver",t,e,f.mouse(t))}(this,t)})).on("mouseout",(function(t){!function(t,e){ct.style("display","none"),ht.classed("bc-is-active",!1),zt.call("customMouseOut",t,e,f.mouse(t))}(this,t)})).on("mousemove",(function(e){!function(e){ft||$t();var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(f.mouse(e),2),r=n[0],i=n[1],o=qt(r-t.left),a=void 0;o&&(Zt(a=E(new Date(o.key))),Kt(o),zt.call("customMouseMove",e,o,q,a,i))}(this)}))),dt&&function(){ft||$t();var t=qt(vt);t&&(Zt(E(new Date(t.key))),Kt(t))}()}))}function Ht(){bt.on("touchmove",(function(t){!function(t,e){zt.call("customTouchMove",t,e,f.touch(t))}(this,t)}))}function Wt(t){return(C(t)?k:S)(t)}function Gt(t){t.selectAll(".tick text").attr("transform","translate(-20, -8)")}function Vt(t){return new Date(t).toLocaleDateString()}function Yt(t){var e,n,r=void 0,i=void 0;e=t.name,n=t.sum.toLocaleString(),i=Lt.append("text").classed("tooltip-left-text",!0).attr("dy","1em").attr("x",-15).attr("y",Rt).style("fill","#000000").style("font-size","12px").text(e).call(Xt,200,12,-25),r=Lt.append("text").classed("tooltip-right-text",!0).attr("dy","1em").attr("x",-15).attr("y",Rt).style("fill","#000000").style("font-size","12px").text(n),It=i.node().getBBox().height?i.node().getBBox().height:It,jt=r.node().getBBox().width?r.node().getBBox().width:jt,r.attr("x",300-jt-75),Lt.append("circle").classed("tooltip-circle",!0).attr("cx",-35).attr("cy",Rt+8).attr("r",5).style("fill",q[t.name]).style("stroke-width",1),Rt+=It+7}function Xt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;t.each((function(){var i,o,a,s,l,c,u;for(i=(t=f.select(this)).text().split(/\s+/).reverse(),a=[],s=0,l=t.attr("y"),c=parseFloat(t.attr("dy")),u=t.text(null).append("tspan").attr("x",r).attr("y",l).attr("dy",c+"em");o=i.pop();)a.push(o),u.text(a.join(" ")),m.getTextWidth(a.join(" "),n,"Karla, sans-serif")>e&&(a.pop(),u.text(a.join(" ")),s<4&&(a=[o],u=t.append("tspan").attr("x",r).attr("y",l).attr("dy",1.2*++s+c+"em").text(o)))}))}function qt(t){var e=_t.filter((function(e){var n=e.date;return Math.abs(E(n)-t)<=ft}));if(e.length)return e[0]}function $t(){var t=_t.map((function(t){return t.date}));ft=(E(t[1])-E(t[0]))/2}function Kt(t){var e=t.values,n=0;ut.selectAll(".circle-container").remove(),e=e.filter((function(t){return!!t}));var r=K.reduce((function(t,n){return[].concat(o(t),[e.find((function(t){return t.name===n}))])}),[]);r.forEach((function(t,e){var i=ut.append("g").classed("circle-container",!0).append("circle").classed("data-point-highlighter",!0).attr("cx",12).attr("cy",0).attr("r",5).style("stroke-width",1.2).style("stroke",q[t.name]).style("opacity",(function(t){var e=t.key;return $[e]?X:0})).style("cursor","pointer").on("click",(function(){!function(t){V||(V=T(bt.select(".metadata-group")),Y=O(V));var e=f.select(t);e.style("stroke-width",5).style("stroke-opacity",.6).attr("filter","url(#"+Y+")"),M(e,gt,7)}(this),function(t,e){zt.call("customDataEntryClick",t,e,f.mouse(t))}(this,t)})).on("mouseout",(function(){f.select(this).attr("filter","none")}));n+=r[e][Ot],i.attr("transform","translate( -12, "+R(n)+" )")}))}function Zt(t){ut.attr("transform","translate("+t+",0)")}return Ut.areaCurve=function(t){return arguments.length?(nt=t,this):nt},Ut.areaOpacity=function(t){return arguments.length?(X=t,this):X},Ut.aspectRatio=function(t){return arguments.length?(B=t,this):B},Ut.axisTimeCombinations=x,Ut.colorSchema=function(t){return arguments.length?(W=t,this):W},Ut.dateLabel=function(t){return arguments.length?(Tt=t,this):Tt},Ut.emptyDataConfig=function(t){return arguments.length?(At=t,this):At},Ut.grid=function(t){return arguments.length?(Ct=t,this):Ct},Ut.hasOutline=function(t){return arguments.length?(yt=t,this):yt},Ut.height=function(t){return arguments.length?(B&&(n=Math.ceil(t/B)),v=t,this):v},Ut.initializeVerticalMarker=function(t){return arguments.length?(dt=t,this):dt},Ut.isAnimated=function(t){return arguments.length?(pt=t,this):pt},Ut.isPrintMode=function(t){return arguments.length?(mt=t,this):mt},Ut.keyLabel=function(t){return arguments.length?(Mt=t,this):Mt},Ut.margin=function(e){return arguments.length?(t=i({},t,e),this):t},Ut.tooltipThreshold=function(t){return arguments.length?(Et=t,this):Et},Ut.topicsOrder=function(t){return arguments.length?(Z=t,this):Z},Ut.loadingState=function(t){return arguments.length?(_=t,this):_},Ut.locale=function(t){return arguments.length?(et=t,this):et},Ut.exportChart=function(t,e){g.call(Ut,bt,t,e)},Ut.on=function(){var t=zt.on.apply(zt,arguments);return t===zt?Ut:t},Ut.valueLabel=function(t){return arguments.length?(Ot=t,this):Ot},Ut.width=function(t){return arguments.length?(B&&(v=Math.ceil(t*B)),n=t,this):n},Ut.xAxisCustomFormat=function(t){return arguments.length?(tt=t,this):tt},Ut.xAxisFormat=function(t){return arguments.length?(Q=t,this):Q},Ut.xTicks=function(t){return arguments.length?(J=t,this):J},Ut.yAxisLabel=function(t){return arguments.length?(z=t,this):z},Ut.yAxisLabelOffset=function(t){return arguments.length?(H=t,this):H},Ut.yTicks=function(t){return arguments.length?(F=t,this):F},Ut}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]&&arguments[0],e=t?1:0;W.attr("opacity",e),G.attr("opacity",e)}return lt.aspectRatio=function(t){return arguments.length?(b=t,this):b},lt.circleOpacity=function(t){return arguments.length?(Y=t,this):Y},lt.colorSchema=function(t){return arguments.length?(K=t,this):K},lt.exportChart=function(t,e){f.call(lt,nt,t,e)},lt.grid=function(t){return arguments.length?(k=t,this):k},lt.hasCrossHairs=function(t){return arguments.length?(Q=t,this):Q},lt.hasHollowCircles=function(t){return arguments.length?(et=t,this):et},lt.hasTrendline=function(t){return arguments.length?(J=t,this):J},lt.height=function(t){return arguments.length?(b&&(n=Math.ceil(t/b)),p=t,this):p},lt.highlightTextLegendOffset=function(t){return arguments.length?(V=t,this):V},lt.isAnimated=function(t){return arguments.length?(Z=t,this):Z},lt.margin=function(e){return arguments.length?(t=i({},t,e),this):t},lt.maxCircleArea=function(t){return arguments.length?($=t,this):$},lt.on=function(){var t=ot.on.apply(ot,arguments);return t===ot?lt:t},lt.width=function(t){return arguments.length?(b&&(p=Math.ceil(t*b)),n=t,this):n},lt.xAxisLabel=function(t){return arguments.length?(R=t,this):R},lt.xAxisLabelOffset=function(t){return arguments.length?(B=t,this):B},lt.xAxisFormat=function(t){return arguments.length?(E=t,this):E},lt.xTicks=function(t){return arguments.length?(w=t,this):w},lt.yAxisFormat=function(t){return arguments.length?(M=t,this):M},lt.yAxisLabel=function(t){return arguments.length?(N=t,this):N},lt.yAxisLabelOffset=function(t){return arguments.length?(D=t,this):D},lt.yTicks=function(t){return arguments.length?(_=t,this):_},lt}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;eH&&D.on("mouseover",(function(t){!function(t,e){nt.call("customMouseOver",t,e,f.mouse(t))}(this,t)})).on("mouseout",(function(t){!function(t,e){D.select(".metadata-group").attr("transform","translate(9999, 0)"),nt.call("customMouseOut",t,e,f.mouse(t))}(this,t)})).on("mousemove",(function(e){var n,r,i,a,s,l,c,u,h;n=ot(this),i=(r=o(n,2))[0],a=r[1],l=void 0,c=void 0,(s=L?st(a):at(i))&&(L?(l=i-t.left,c=_(s.key)+_.bandwidth()/2):(l=v(s.key)+x(s[K]),c=a-t.bottom),u=l,h=c,D.select(".metadata-group").attr("transform","translate("+u+","+h+")"),nt.call("customMouseMove",this,s,P,l,c))})).on("click",(function(t){var e,n,r,i,a;e=ot(this),r=(n=o(e,2))[0],i=n[1],a=L?st(i):at(r),nt.call("customClick",this,a,f.mouse(this))})),D.selectAll(".bar").on("mouseover",(function(t){!function(t,e){f.select(t).attr("fill",(function(){return a.color(P[e.group]).darker()}))}(this,t)})).on("mouseout",(function(t){!function(t,e){f.select(t).attr("fill",(function(){return P[e.group]}))}(this,t)}))}))}function it(t){t.selectAll(".tick text").attr("transform","translate("+E.x+", "+E.y+")")}function ot(t){return f.mouse(t)}function at(e){var n=e-t.left,r=x.bandwidth(),i=[];return j.forEach((function(t){var e=t.values.find((function(t){return Math.abs(n>=v(t[q])+x(t[K]))&&Math.abs(n-x(t[K])-v(t[q])<=r)}));e&&(e.values=t.values,e.key=e.name,i.push(e))})),i.length?i[0]:void 0}function st(e){var n=e-t.bottom,r=_.bandwidth(),i=[];return j.map((function(t){var e=t.values.find((function(t){return Math.abs(n>=_(t[q]))&&Math.abs(n-_(t[q])<=2*r)}));e&&(e.values=t.values,e.key=e.name,i.push(e))})),i.length?i[0]:void 0}function lt(t){var e=f.select(this),n=u.interpolateRound(0,v(J(t))),r=u.interpolateNumber(0,1);return function(t){e.attr("width",n(t)).style("opacity",r(t))}}function ct(t){var e=f.select(this),n=u.interpolateRound(0,I-_(J(t))),r=u.interpolateRound(I,_(J(t))),i=u.interpolateNumber(0,1);return function(t){e.attr("y",r(t)).attr("height",n(t)).style("opacity",i(t))}}return rt.aspectRatio=function(t){return arguments.length?(C=t,this):C},rt.colorSchema=function(t){return arguments.length?(M=t,this):M},rt.exportChart=function(t,e){p.call(rt,D,t,e)},rt.groupLabel=function(t){return arguments.length?(K=t,this):K},rt.grid=function(t){return arguments.length?(X=t,this):X},rt.height=function(t){return arguments.length?(C&&(n=Math.ceil(t/C)),y=t,this):y},rt.isHorizontal=function(t){return arguments.length?(L=t,this):L},rt.isAnimated=function(t){return arguments.length?(et=t,this):et},rt.loadingState=function(t){return arguments.length?(b=t,this):b},rt.margin=function(e){return arguments.length?(t=i({},t,e),this):t},rt.nameLabel=function(t){return arguments.length?(q=t,this):q},rt.yTicks=function(t){return arguments.length?(T=t,this):T},rt.on=function(){var t=nt.on.apply(nt,arguments);return t===nt?rt:t},rt.tooltipThreshold=function(t){return arguments.length?(H=t,this):H},rt.valueLabel=function(t){return arguments.length?($=t,this):$},rt.valueLabelFormat=function(t){return arguments.length?(Z=t,this):Z},rt.width=function(t){return arguments.length?(C&&(y=Math.ceil(t*C)),n=t,this):n},rt.xTicks=function(t){return arguments.length?(O=t,this):O},rt.yAxisLabel=function(t){return arguments.length?(W=t,this):W},rt.yAxisLabelOffset=function(t){return arguments.length?(V=t,this):V},rt.yTickTextOffset=function(t){return arguments.length?(E=t,this):E},rt}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;eU?e-n-10:e})).attr("y",(function(t){return T(lt(t))+16})).text((function(t){return xt(at(t))+u(st(t))+"%"})),s.enter().append("rect").classed("striped",!0).attr("x",1).attr("y",(function(t){return T(lt(t))})).attr("height",T.bandwidth()).attr("fill","url(#diagonalHatch)"));i.enter().append("rect").classed("bg-hover",!0).on("click",(function(t){St(this)})).attr("x",-t.left).attr("y",(function(t){return T(lt(t))})).attr("height",T.bandwidth()*G.length+4*G.length).attr("width",U+t.left).attr("fill","#d6e8fa").attr("fill-opacity",0).on("mouseover",Ct).on("mouseout",Et),ut?(c.style("opacity",.24).transition().delay((function(t,e){return Q[e]})).duration(1e3).ease(I).tween("attr.width",Tt),F&&l.style("opacity",.24).transition().delay((function(t,e){return Q[e]})).duration(1e3).ease(I).tween("attr.width",Ot),f.style("opacity",.24).transition().delay((function(t,e){return Q[e]})).duration(1e3).ease(I).tween("attr.width",Tt)):(c.attr("width",(function(t){return S(F?ct(t):st(t))})),F&&l.attr("width",(function(t){return S(ot(t))})),f.attr("width",(function(t){return S(F?ct(t):st(t))})))}(n),n.exit().transition().style("opacity",0).remove()}(),z.select(".x-axis-group .axis.x").attr("transform","translate( 0, "+H+" )").call(C),z.select(".y-axis-group.axis").attr("transform","translate( 0, 0)").call(O),z.selectAll(".y-axis-group.axis .tick").call(Mt),z.selectAll(".y-axis-group.axis .tick text").on("mouseover",Ct).on("mouseout",Et).call(bt,t.left-50).selectAll("tspan"),$&&(K&&z.selectAll(".y-axis-label-text").remove(),K=z.select(".y-axis-label").append("text").classed("y-axis-label-text",!0).attr("x",-H/2).attr("y",Z).attr("text-anchor","middle").attr("transform","rotate(270 0 0)").text($)),function(){if(ht){var e=Number.parseInt(U)+Number.parseInt(t.right);ft=z.selectAll(".legend-group").append("g").attr("transform","translate("+e+", -30)").classed("tooltip-text",!0),dt=ft.append("g").classed("tooltip-body",!0).style("transform","translateY(8px)").style("fill","#282C35"),[].concat(a(new Set(W.map((function(t){return t.group}))))).reverse().forEach(vt)}}(),w>q&&z.on("mouseover",(function(t){!function(t,e){gt.call("customMouseOver",t,e,p.mouse(t)),Ct(e)}(this,t)})).on("mouseout",(function(t){!function(t,e){z.select(".metadata-group").attr("transform","translate(9999, 0)"),gt.call("customMouseOut",t,e,p.mouse(t))}(this,t)})).on("mousemove",(function(e){var n,r,i,a,s,l,c,u;n=_t(this),i=(r=o(n,2))[0],s=void 0,l=void 0,(a=kt(r[1]))&&(c=s=i-t.left,u=l=E(a.key)+E.bandwidth()/2,z.select(".metadata-group").attr("transform","translate("+c+","+u+")"),gt.call("customMouseMove",this,a,D,s,l))})).on("click",(function(t){St(this)})),z.selectAll(".row").on("mouseover",(function(t){!function(t,e){p.select(t).attr("fill",(function(){return s.color(D[e.group]).darker()}))}(this,t)})).on("mouseout",(function(t){!function(t,e){p.select(t).attr("fill",(function(){return D[e.group]}))}(this,t)}))}))}function bt(t,e){g.wrapTextWithEllipses(t,e,-10,2,.8)}function vt(t){var e,n=t,r=void 0;e=t,r=dt.append("text").classed("tooltip-left-text",!0).attr("dy","1em").attr("dx",0).attr("y",pt).style("fill","#000000").style("font-size","12px").text(e).call(wt,200,12,-25),mt=r.node().getBBox().height?r.node().getBBox().height:mt,dt.append("circle").classed("tooltip-circle",!0).attr("cx",-39.5).attr("cy",pt+10).attr("r",5).style("fill",D[n]).style("stroke-width",1),pt+=mt+7}function xt(t){return t?t+" | ":""}function wt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;t.each((function(){var i,o,a,s,l,c,u;for(i=(t=p.select(this)).text().split(/\s+/).reverse(),a=[],s=0,l=t.attr("y"),c=parseFloat(t.attr("dy")),u=t.text(null).append("tspan").attr("x",r).attr("y",l).attr("dy",c+"em");o=i.pop();)a.push(o),u.text(a.join(" ")),g.getTextWidth(a.join(" "),n,"Karla, sans-serif")>e&&(a.pop(),u.text(a.join(" ")),s<4&&(a=[o],u=t.append("tspan").attr("x",r).attr("y",l).attr("dy",1.2*++s+c+"em").text(o)))}))}function _t(t){return p.mouse(t)}function kt(e){var n=e-t.bottom,r=E.bandwidth(),i=[];return R.map((function(t){var e=t.values.find((function(t){return Math.abs(n>=E(t[tt]))&&Math.abs(n-E(t[tt])<=2*r)}));e&&(e.values=t.values,e.key=e.name,i.push(e))})),i.length?i[0]:void 0}function St(t,e){var n=_t(t),r=o(n,2),i=(r[0],kt(r[1]));gt.call("customClick",t,i,p.mouse(t))}function Ct(t,e){var r=null;this&&(r=p.select(this.parentNode).attr("class").replace("layer layer-","")),"string"==typeof t&&(r=At(t)),parseInt(r)>-1&&(p.select(n).select(".tick svg.visibility-"+r).attr("opacity",1),p.select(n).select("g .layer-"+r+" .bg-hover").attr("fill-opacity",.3))}function Et(t,e){var r=null;this&&(r=p.select(this.parentNode).attr("class").replace("layer layer-","")),"string"==typeof t&&(r=At(t)),parseInt(r)>-1&&(p.select(n).select(".tick svg.visibility-"+r).attr("opacity",0),p.select(n).select("g .layer-"+r+" .bg-hover").attr("fill-opacity",0))}function Tt(t){var e=p.select(this),n=f.interpolateNumber(0,1),r=F?f.interpolateRound(0,S(ct(t))):f.interpolateRound(0,S(st(t)));return function(t){e.attr("width",r(t)).style("opacity",n(t))}}function Ot(t){var e=p.select(this),n=f.interpolateRound(0,S(ot(t))),r=f.interpolateNumber(0,1);return function(t){e.attr("width",n(t)).style("opacity",r(t))}}function Mt(e){e.each((function(){var n=(e=p.select(this)).node().getBBox().height/2,r=e.append("svg").attr("class",(function(t){return"visibility visibility-"+At(t)})).attr("x",-(t.left-5)).attr("y",-n).attr("width","300").attr("height","300").attr("viewBox","0 0 600 600").attr("fill","none").attr("opacity",0);r.append("rect").attr("x",-10).attr("y",-10).attr("height","50").attr("width","50").attr("fill","#d6e8fa").on("mouseover",Ct).on("mouseout",Et).attr("opacity",0),r.append("path").attr("d","M 10,10 L 30,30 M 30,10 L 10,30").attr("stroke","#0072ce").attr("stroke-width","2").on("mouseover",Ct).on("mouseout",Et)}))}function At(t){return V.indexOf(t)}return yt.aspectRatio=function(t){return arguments.length?(M=t,this):M},yt.colorSchema=function(t){return arguments.length?(L=t,this):L},yt.exportChart=function(t,e){y.call(yt,z,t,e)},yt.groupLabel=function(t){return arguments.length?(nt=t,this):nt},yt.grid=function(t){return arguments.length?(J=t,this):J},yt.height=function(t){return arguments.length?(M&&(w=Math.ceil(t/M)),_=t,this):_},yt.isHorizontal=function(t){return arguments.length?(B=t,this):B},yt.isPrintMode=function(t){return arguments.length?(ht=t,this):ht},yt.isStacked=function(t){return arguments.length?(F=t,this):F},yt.isAnimated=function(t){return arguments.length?(ut=t,this):ut},yt.loadingState=function(t){return arguments.length?(k=t,this):k},yt.margin=function(e){return arguments.length?(t=i({},t,e),this):t},yt.nameLabel=function(t){return arguments.length?(tt=t,this):tt},yt.yTicks=function(t){return arguments.length?(P=t,this):P},yt.on=function(){var t=gt.on.apply(gt,arguments);return t===gt?yt:t},yt.percentageAxisToMaxRatio=function(t){return arguments.length?(N=t,this):N},yt.tooltipThreshold=function(t){return arguments.length?(q=t,this):q},yt.valueLabel=function(t){return arguments.length?(et=t,this):et},yt.valueLabelFormat=function(t){return arguments.length?(rt=t,this):rt},yt.width=function(t){return arguments.length?(M&&(_=Math.ceil(t*M)),w=t,this):w},yt.xTicks=function(t){return arguments.length?(j=t,this):j},yt.yAxisLabel=function(t){return arguments.length?($=t,this):$},yt.yAxisLabelOffset=function(t){return arguments.length?(Z=t,this):Z},yt.yTickTextOffset=function(t){return arguments.length?(A=t,this):A},yt}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;eG&&R.on("mouseover",(function(t){!function(t,e){it.call("customMouseOver",t,e,d.mouse(t))}(this,t)})).on("mouseout",(function(t){!function(t,e){R.select(".metadata-group").attr("transform","translate(9999, 0)"),it.call("customMouseOut",t,e,d.mouse(t))}(this,t)})).on("mousemove",(function(e){var n,r,i,a,s,l,c,u,h;n=lt(this),i=(r=o(n,2))[0],a=r[1],l=void 0,c=void 0,(s=D?ut(a):ct(i))&&(D?(l=i-t.left,c=_(s.key)+_.bandwidth()/2):(l=x(s.key)+t.left,c=a-t.bottom),u=l,h=c,R.select(".metadata-group").attr("transform","translate("+u+","+h+")"),it.call("customMouseMove",this,s,j,l,c))})).on("click",(function(t){var e,n,r,i,a;e=lt(this),r=(n=o(e,2))[0],i=n[1],a=D?ut(i):ct(r),it.call("customClick",this,a,d.mouse(this))})),R.selectAll(".bar").on("mouseover",ht).on("mouseout",ft)}))}function at(t){t.selectAll(".tick text").attr("transform","translate(-20, -8)")}function st(t){return t.map((function(t){for(var e=0;e=r&&n=r&&n=t[1]&&(t[0]=y[F].floor(n[0]),t[1]=y[F].offset(t[0])),h.select(this).transition().call(h.event.target.move,t.map(E))}z.call("customBrushEnd",this,t)}}function Y(t,e){var n=null;null!==t&&(n=[E(new Date(t)),E(new Date(e))]),N.move(L,n)}return W.axisTimeCombinations=g,W.dateRange=function(t){return arguments.length?(k=t,Array.isArray(k)&&Y.apply(void 0,o(k)),this):k},W.gradient=function(t){return arguments.length?(I=t,this):I},W.height=function(t){return arguments.length?(m=t,this):m},W.loadingState=function(t){return arguments.length?(x=t,this):x},W.locale=function(t){return arguments.length?(j=t,this):j},W.margin=function(e){return arguments.length?(t=i({},t,e),this):t},W.on=function(){var t=z.on.apply(z,arguments);return t===z?W:t},W.width=function(t){return arguments.length?(n=t,this):n},W.xAxisCustomFormat=function(t){return arguments.length?(P=t,this):P},W.xAxisFormat=function(t){return arguments.length?(M=t,this):M},W.xTicks=function(t){return arguments.length?(A=t,this):A},W.roundingTimeInterval=function(t){return arguments.length?(F=t,this):F},W}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;e0)){if(o/=f,f<0){if(o0){if(o>h)return;o>u&&(u=o)}if(o=r-l,f||!(o<0)){if(o/=f,f<0){if(o>h)return;o>u&&(u=o)}else if(f>0){if(o0)){if(o/=d,d<0){if(o0){if(o>h)return;o>u&&(u=o)}if(o=i-c,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>u&&(u=o)}else if(d>0){if(o0||h<1)||(u>0&&(t[0]=[l+u*f,c+u*d]),h<1&&(t[1]=[l+h*f,c+h*d]),!0)}}}}}function g(t,e,n,r,i){var o=t[1];if(o)return!0;var a,s,l=t[0],c=t.left,u=t.right,h=c[0],f=c[1],d=u[0],p=u[1],m=(h+d)/2,g=(f+p)/2;if(p===f){if(m=r)return;if(h>d){if(l){if(l[1]>=i)return}else l=[m,n];o=[m,i]}else{if(l){if(l[1]1)if(h>d){if(l){if(l[1]>=i)return}else l=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(l){if(l[1]=r)return}else l=[e,a*e+s];o=[r,a*r+s]}else{if(l){if(l[0]=-B)){var d=l*l+c*c,p=u*u+h*h,m=(h*d-c*p)/f,g=(l*p-u*d)/f,y=w.pop()||new _;y.arc=t,y.site=i,y.x=m+a,y.y=(y.cy=g+s)+Math.sqrt(m*m+g*g),t.circle=y;for(var b=null,v=D._;v;)if(y.yI)s=s.L;else{if(!((i=o-j(s,a))>I)){r>-I?(e=s.P,n=s):i>-I?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}!function(t){L[t.index]={site:t,halfedges:[]}}(t);var l=T(t);if(N.insert(e,l),e||n){if(e===n)return S(e),n=T(e.site),N.insert(l,n),l.edge=n.edge=f(e.site,l.site),k(e),void k(n);if(n){S(e),S(n);var c=e.site,u=c[0],h=c[1],d=t[0]-u,m=t[1]-h,g=n.site,y=g[0]-u,b=g[1]-h,v=2*(d*b-m*y),x=d*d+m*m,w=y*y+b*b,_=[(b*x-m*w)/v+u,(d*w-y*x)/v+h];p(n.edge,c,g,_),l.edge=f(c,t,null,_),n.edge=f(t,g,null,_),k(e),k(n)}else l.edge=f(e.site,l.site)}}function P(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;var s=(n=a.site)[0],l=n[1],c=l-e;if(!c)return s;var u=s-r,h=1/o-1/c,f=u/c;return h?(-f+Math.sqrt(f*f-2*h*(u*u/(-2*c)-l+c/2+i-o/2)))/h+r:(r+s)/2}function j(t,e){var n=t.N;if(n)return P(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var N,L,D,R,I=1e-6,B=1e-12;function F(t,e){return e[1]-t[1]||e[0]-t[0]}function z(t,e){var n,r,i,o=t.sort(F).pop();for(R=[],L=new Array(t.length),N=new h,D=new h;;)if(i=x,o&&(!i||o[1]I||Math.abs(i[0][1]-i[1][1])>I)||delete R[o]}(a,s,l,c),function(t,e,n,r){var i,o,a,s,l,c,u,h,f,p,m,g,y=L.length,x=!0;for(i=0;iI||Math.abs(g-f)>I)&&(l.splice(s,0,R.push(d(a,p,Math.abs(m-t)I?[t,Math.abs(h-t)I?[Math.abs(f-r)I?[n,Math.abs(h-n)I?[Math.abs(f-e)=s)return null;var l=t-i.site[0],c=e-i.site[1],u=l*l+c*c;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(n){var r=o.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var l=t-s[0],c=e-s[1],h=l*l+c*c;hMath.abs(t[1]-nt[1])?L=!0:N=!0),nt=t,j=!0,g(),lt()}function lt(){var t;switch(Z=nt[0]-et[0],Q=nt[1]-et[1],F){case b:case y:H&&(Z=Math.max(X-n,Math.min($-d,Z)),r=n+Z,p=d+Z),W&&(Q=Math.max(q-c,Math.min(K-_,Q)),u=c+Q,E=_+Q);break;case v:H<0?(Z=Math.max(X-n,Math.min($-n,Z)),r=n+Z,p=d):H>0&&(Z=Math.max(X-d,Math.min($-d,Z)),r=n,p=d+Z),W<0?(Q=Math.max(q-c,Math.min(K-c,Q)),u=c+Q,E=_):W>0&&(Q=Math.max(q-_,Math.min(K-_,Q)),u=c,E=_+Q);break;case x:H&&(r=Math.max(X,Math.min($,n-Z*H)),p=Math.max(X,Math.min($,d+Z*H))),W&&(u=Math.max(q,Math.min(K,c-Q*W)),E=Math.max(q,Math.min(K,_+Q*W)))}p0&&(n=r-Z),W<0?_=E-Q:W>0&&(c=u-Q),F=b,ot.attr("cursor",T.selection),lt());break;default:return}g()}function ht(){switch(o.c.keyCode){case 16:J&&(N=L=J=!1,lt());break;case 18:F===x&&(H<0?d=p:H>0&&(n=r),W<0?_=E:W>0&&(c=u),F=v,lt());break;case 32:F===b&&(o.c.altKey?(H&&(d=p-Z*H,n=r+Z*H),W&&(_=E-Q*W,c=u+Q*W),F=x):(H<0?d=p:H>0&&(n=r),W<0?_=E:W>0&&(c=u),F=v),ot.attr("cursor",T[B]),lt());break;default:return}g()}}function G(){U(this,arguments).moved()}function V(){U(this,arguments).ended()}function Y(){var e=this.__brush||{selection:null};return e.extent=_(n.apply(this,arguments)),e.dim=t,e}return F.move=function(e,n){e.selection?e.on("start.brush",(function(){U(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){U(this,arguments).end()})).tween("brush",(function(){var e=this,r=e.__brush,i=U(e,arguments),o=r.selection,a=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),s=Object(c.a)(o,a);function l(t){r.selection=1===t&&null===a?null:s(t),z.call(e),i.brush()}return null!==o&&null!==a?l:l(1)})):e.each((function(){var e=this,r=arguments,i=e.__brush,o=t.input("function"==typeof n?n.apply(e,r):n,i.extent),a=U(e,r).beforestart();Object(f.interrupt)(e),i.selection=null===o?null:o,z.call(e),a.start().brush().end()}))},F.clear=function(t){F.move(t,null)},H.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){Object(o.a)(new p(F,e,t.output(this.state.selection)),E.apply,E,[e,this.that,this.args])}},F.extent=function(t){return arguments.length?(n="function"==typeof t?t:d(_(t)),F):n},F.filter=function(t){return arguments.length?(a="function"==typeof t?t:d(!!t),F):a},F.touchable=function(t){return arguments.length?(u="function"==typeof t?t:d(!!t),F):u},F.handleSize=function(t){return arguments.length?(B=+t,F):B},F.keyModifiers=function(t){return arguments.length?(w=!!t,F):w},F.on=function(){var t=E.on.apply(E,arguments);return t===E?F:t},F}n.d(e,"brush",(function(){return U})),n.d(e,"brushX",(function(){return F})),n.d(e,"brushY",(function(){return z})),n.d(e,"brushSelection",(function(){return B}))}])},"object"==s(e)&&"object"==s(t)?t.exports=a(n(7029)):(i=[n(7029)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},8528:function(t,e,n){n(3473),n(3860),n(4488),n(3665),n(191),n(9194),n(8270),n(7816),n(2559),n(834),n(2820),n(5720),n(8668),n(4290),n(7389),n(8864),n(3082),n(1323),n(9338),n(1133),n(3540),n(947),n(5426).Array},8195:function(t,e,n){n(5259),n(3473),n(8826),n(7112),t.exports=n(5426).Map},930:function(t,e,n){n(4442),n(7584),n(6684),n(3100),n(2080),n(7934),n(9033),n(7974),n(3936),n(5647),n(1439),n(273),n(3941),n(6336),n(2068),n(4219),n(9155),n(5259),n(5426).Object},8132:function(t,e,n){n(5259),n(3473),n(8826),n(7557),t.exports=n(5426).Set},5559:function(t,e,n){n(3145),n(3805),n(2521),n(1400),n(8628),n(3764),n(4330),n(5426).Object},1118:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},1121:function(t,e,n){var r=n(3808)("unscopables"),i=Array.prototype;void 0==i[r]&&n(8556)(i,r,{}),t.exports=function(t){i[r][t]=!0}},1224:function(t){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},8392:function(t,e,n){var r=n(2772);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},5501:function(t,e,n){"use strict";var r=n(8728),i=n(6908),o=n(1689);t.exports=[].copyWithin||function(t,e){var n=r(this),a=o(n.length),s=i(t,a),l=i(e,a),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?a:i(c,a))-l,a-s),h=1;for(l0;)l in n?n[s]=n[l]:delete n[s],s+=h,l+=h;return n}},8800:function(t,e,n){"use strict";var r=n(8728),i=n(6908),o=n(1689);t.exports=function(t){for(var e=r(this),n=o(e.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:i(l,n);c>s;)e[s++]=t;return e}},23:function(t,e,n){var r=n(5379),i=n(1689),o=n(6908);t.exports=function(t){return function(e,n,a){var s,l=r(e),c=i(l.length),u=o(a,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},2203:function(t,e,n){var r=n(529),i=n(3069),o=n(8728),a=n(1689),s=n(3859);t.exports=function(t,e){var n=1==t,l=2==t,c=3==t,u=4==t,h=6==t,f=5==t||h,d=e||s;return function(e,s,p){for(var m,g,y=o(e),b=i(y),v=r(s,p,3),x=a(b.length),w=0,_=n?d(e,x):l?d(e,0):void 0;x>w;w++)if((f||w in b)&&(g=v(m=b[w],w,y),t))if(n)_[w]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return w;case 2:_.push(m)}else if(u)return!1;return h?-1:c||u?u:_}}},4388:function(t,e,n){var r=n(1118),i=n(8728),o=n(3069),a=n(1689);t.exports=function(t,e,n,s,l){r(e);var c=i(t),u=o(c),h=a(c.length),f=l?h-1:0,d=l?-1:1;if(n<2)for(;;){if(f in u){s=u[f],f+=d;break}if(f+=d,l?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;l?f>=0:h>f;f+=d)f in u&&(s=e(s,u[f],f,c));return s}},1337:function(t,e,n){var r=n(2772),i=n(3518),o=n(3808)("species");t.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},3859:function(t,e,n){var r=n(1337);t.exports=function(t,e){return new(r(t))(e)}},157:function(t,e,n){var r=n(7777),i=n(3808)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},7777:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},1216:function(t,e,n){"use strict";var r=n(240).f,i=n(7534),o=n(4730),a=n(529),s=n(1224),l=n(7075),c=n(7460),u=n(8967),h=n(7726),f=n(2220),d=n(8039).fastKey,p=n(6139),m=f?"_s":"size",g=function(t,e){var n,r=d(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var u=t((function(t,r){s(t,u,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[m]=0,void 0!=r&&l(r,n,t[c],t)}));return o(u.prototype,{clear:function(){for(var t=p(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var n=p(this,e),r=g(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[m]--}return!!r},forEach:function(t){p(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!g(p(this,e),t)}}),f&&r(u.prototype,"size",{get:function(){return p(this,e)[m]}}),u},def:function(t,e,n){var r,i,o=g(t,e);return o?o.v=n:(t._l=o={i:i=d(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[m]++,"F"!==i&&(t._i[i]=o)),t},getEntry:g,setStrong:function(t,e,n){c(t,e,(function(t,n){this._t=p(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?u(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v]):(t._t=void 0,u(1))}),n?"entries":"values",!n,!0),h(e)}}},8374:function(t,e,n){"use strict";var r=n(1298),i=n(1931),o=n(4065),a=n(4730),s=n(8039),l=n(7075),c=n(1224),u=n(2772),h=n(2912),f=n(3975),d=n(3607),p=n(9434);t.exports=function(t,e,n,m,g,y){var b=r[t],v=b,x=g?"set":"add",w=v&&v.prototype,_={},k=function(t){var e=w[t];o(w,t,"delete"==t||"has"==t?function(t){return!(y&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof v&&(y||w.forEach&&!h((function(){(new v).entries().next()})))){var S=new v,C=S[x](y?{}:-0,1)!=S,E=h((function(){S.has(1)})),T=f((function(t){new v(t)})),O=!y&&h((function(){for(var t=new v,e=5;e--;)t[x](e,e);return!t.has(-0)}));T||((v=e((function(e,n){c(e,v,t);var r=p(new b,e,v);return void 0!=n&&l(n,g,r[x],r),r}))).prototype=w,w.constructor=v),(E||O)&&(k("delete"),k("has"),g&&k("get")),(O||C)&&k(x),y&&w.clear&&delete w.clear}else v=m.getConstructor(e,t,g,x),a(v.prototype,n),s.NEED=!0;return d(v,t),_[t]=v,i(i.G+i.W+i.F*(v!=b),_),y||m.setStrong(v,t,g),v}},5426:function(t){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},3929:function(t,e,n){"use strict";var r=n(240),i=n(9395);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},529:function(t,e,n){var r=n(1118);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},3276:function(t){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},2220:function(t,e,n){t.exports=!n(2912)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},6891:function(t,e,n){var r=n(2772),i=n(1298).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},2532:function(t){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},5130:function(t,e,n){var r=n(4822),i=n(4874),o=n(6166);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),l=o.f,c=0;s.length>c;)l.call(t,a=s[c++])&&e.push(a);return e}},1931:function(t,e,n){var r=n(1298),i=n(5426),o=n(8556),a=n(4065),s=n(529),l=function t(e,n,l){var c,u,h,f,d=e&t.F,p=e&t.G,m=e&t.P,g=e&t.B,y=p?r:e&t.S?r[n]||(r[n]={}):(r[n]||{}).prototype,b=p?i:i[n]||(i[n]={}),v=b.prototype||(b.prototype={});for(c in p&&(l=n),l)h=((u=!d&&y&&void 0!==y[c])?y:l)[c],f=g&&u?s(h,r):m&&"function"==typeof h?s(Function.call,h):h,y&&a(y,c,h,e&t.U),b[c]!=h&&o(b,c,f),m&&v[c]!=h&&(v[c]=h)};r.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},2912:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},7075:function(t,e,n){var r=n(529),i=n(6914),o=n(4308),a=n(8392),s=n(1689),l=n(3002),c={},u={},h=t.exports=function(t,e,n,h,f){var d,p,m,g,y=f?function(){return t}:l(t),b=r(n,h,e?2:1),v=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(o(y)){for(d=s(t.length);d>v;v++)if((g=e?b(a(p=t[v])[0],p[1]):b(t[v]))===c||g===u)return g}else for(m=y.call(t);!(p=m.next()).done;)if((g=i(m,b,p.value,e))===c||g===u)return g};h.BREAK=c,h.RETURN=u},4299:function(t,e,n){t.exports=n(9490)("native-function-to-string",Function.toString)},1298:function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},1961:function(t){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},8556:function(t,e,n){var r=n(240),i=n(9395);t.exports=n(2220)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},4595:function(t,e,n){var r=n(1298).document;t.exports=r&&r.documentElement},337:function(t,e,n){t.exports=!n(2220)&&!n(2912)((function(){return 7!=Object.defineProperty(n(6891)("div"),"a",{get:function(){return 7}}).a}))},9434:function(t,e,n){var r=n(2772),i=n(6135).set;t.exports=function(t,e,n){var o,a=e.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},3069:function(t,e,n){var r=n(7777);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},4308:function(t,e,n){var r=n(905),i=n(3808)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},3518:function(t,e,n){var r=n(7777);t.exports=Array.isArray||function(t){return"Array"==r(t)}},2772:function(t){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}t.exports=function(t){return"object"===e(t)?null!==t:"function"===typeof t}},6914:function(t,e,n){var r=n(8392);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(a){var o=t.return;throw void 0!==o&&r(o.call(t)),a}}},4012:function(t,e,n){"use strict";var r=n(7534),i=n(9395),o=n(3607),a={};n(8556)(a,n(3808)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},7460:function(t,e,n){"use strict";var r=n(9445),i=n(1931),o=n(4065),a=n(8556),s=n(905),l=n(4012),c=n(3607),u=n(8243),h=n(3808)("iterator"),f=!([].keys&&"next"in[].keys()),d="keys",p="values",m=function(){return this};t.exports=function(t,e,n,g,y,b,v){l(n,e,g);var x,w,_,k=function(t){if(!f&&t in T)return T[t];switch(t){case d:case p:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",C=y==p,E=!1,T=t.prototype,O=T[h]||T["@@iterator"]||y&&T[y],M=O||k(y),A=y?C?k("entries"):M:void 0,P="Array"==e&&T.entries||O;if(P&&(_=u(P.call(new t)))!==Object.prototype&&_.next&&(c(_,S,!0),r||"function"==typeof _[h]||a(_,h,m)),C&&O&&O.name!==p&&(E=!0,M=function(){return O.call(this)}),r&&!v||!f&&!E&&T[h]||a(T,h,M),s[e]=M,s[S]=m,y)if(x={values:C?M:k(p),keys:b?M:k(d),entries:A},v)for(w in x)w in T||o(T,w,x[w]);else i(i.P+i.F*(f||E),e,x);return x}},3975:function(t,e,n){var r=n(3808)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(a){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(a){}return n}},8967:function(t){t.exports=function(t,e){return{value:e,done:!!t}}},905:function(t){t.exports={}},9445:function(t){t.exports=!1},8039:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var i=n(1207)("meta"),o=n(2772),a=n(1961),s=n(240).f,l=0,c=Object.isExtensible||function(){return!0},u=!n(2912)((function(){return c(Object.preventExtensions({}))})),h=function(t){s(t,i,{value:{i:"O"+ ++l,w:{}}})},f=t.exports={KEY:i,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==r(t)?t:("string"==typeof t?"S":"P")+t;if(!a(t,i)){if(!c(t))return"F";if(!e)return"E";h(t)}return t[i].i},getWeak:function(t,e){if(!a(t,i)){if(!c(t))return!0;if(!e)return!1;h(t)}return t[i].w},onFreeze:function(t){return u&&f.NEED&&c(t)&&!a(t,i)&&h(t),t}}},2111:function(t,e,n){"use strict";var r=n(2220),i=n(4822),o=n(4874),a=n(6166),s=n(8728),l=n(3069),c=Object.assign;t.exports=!c||n(2912)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){for(var n=s(t),c=arguments.length,u=1,h=o.f,f=a.f;c>u;)for(var d,p=l(arguments[u++]),m=h?i(p).concat(h(p)):i(p),g=m.length,y=0;g>y;)d=m[y++],r&&!f.call(p,d)||(n[d]=p[d]);return n}:c},7534:function(t,e,n){var r=n(8392),i=n(8320),o=n(2532),a=n(6434)("IE_PROTO"),s=function(){},l=function(){var t,e=n(6891)("iframe"),r=o.length;for(e.style.display="none",n(4595).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("