diff --git a/src/jsviz/bar.js b/src/jsviz/bar.js deleted file mode 100644 index 287eca7..0000000 --- a/src/jsviz/bar.js +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright (c) 2010-2016, MIT Probabilistic Computing Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -function bar(df) { - var myCell = element.is('.output_subarea') ? element : element.next(); - - // Validate input format. It should be a pandas dataframe in "split" format: - // df.to_json(orient="split") - - if (!(df.columns && df.index && df.data)) { - throw new Error("Incorrect data format"); - } - - if (df.columns.length !== 2) { - throw new Error("There must be exactly two columns"); - } - - // restrict data to only numeric data - const rows = df.data.filter( ([,number]) => typeof number === 'number' ); - - if (!rows.length) { - throw new Error("No rows contain numbers in the second column"); - } - - const [ xName, yName ] = df.columns; - - const container = $("
").css({ display: 'flex', flexDiection: 'row' }).appendTo(myCell.empty()); - - function $s(elem) { - return $(document.createElementNS('http://www.w3.org/2000/svg', elem)); - } - const svg = $s('svg').attr({ width: 15, height: 500 }) - .append($s('text').attr({transform: "rotate(270) translate(-250 12)", size:"12", style: "fill: #000000", 'text-anchor': "middle", 'font-weight': 'bold'}).text(yName)); - - $('
').append(svg).appendTo(container); - - const middleContainer = $('
').appendTo(container); - middleContainer.append($('
').text(xName)); - - VizGPMReady - .then(VizGPM => { - const _ = VizGPM._; - const root = $("
").prependTo(middleContainer)[0]; - - const xValue = d => d[0]; - const yValue = d => d[1]; - - class CustomBarChart extends VizGPM.Charts.Histogram { - _calculateData() { - if (!this._.aesthetics) return; - if (this.hasChanged('rows', 'scales')) { - const { - rows, - scales: {x: xScale, y: yScale}, - aesthetics: [ - {value, name: axisName, bins}, - {value: yValue} = {}, - ], - width, - } = this._; - - // the histogram chart works as a bar, but it's internal represntation - // has "x" and "value" so needs a little customization - this._.chartData = rows.map(row => ({ - x: value(row), - value: yValue(row), - rows: new Set([ row ]), - query: { [axisName]: { $in: [value(row)] } }, - })) - - xScale.domain(this._.chartData.map( d => d.x )); - yScale.domain([0, _.max(this._.chartData.map(d => d.value))]).nice(); - } - } - } - - const size = 500; - - var bar = new CustomBarChart({ - root, - rows, - size, - margin: { - bottom: Math.max(size/6, 35), - left: Math.max(size/12, 35), - top: 0, - right: 0, - }, - aesthetics: [{ - name: xName, - value: xValue, - }, { - name: yName, - value: yValue, - }], - scales: { - x: VizGPM.Charts.Scales.SCALE_METHOD.band(), - y: VizGPM.Charts.Scales.SCALE_METHOD.linear(), - }, - }); - - bar.render(); - }) - .catch(e => { - const stack = $("") - .css({ whiteSpace: "pre", display: "block", color: "red", overflow: "auto" }) - .text(e.stack); - debugger; - myCell.append("Error initializing chart:", stack); - }) -} diff --git a/src/jsviz/depprob.js b/src/jsviz/depprob.js deleted file mode 100644 index e75b87d..0000000 --- a/src/jsviz/depprob.js +++ /dev/null @@ -1,245 +0,0 @@ -// Copyright (c) 2010-2016, MIT Probabilistic Computing Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -function depprob_demo(depprob, rows, schema) { - var myCell = element.is('.output_subarea') ? element : element.next(); - if (typeof VizGPMReady === 'undefined') { - throw new Error('VizGPM Display Library not loaded') - } - - // double check that it looks like the data frame we want - if (!(depprob.name0 && depprob.name1 && depprob.value)) { - throw new Error('Unknown depprob data format, expected { name0: [], name1: [], value: [] }') - } - - const toggleClass = (element, className, state) => { - element.classList[state ? 'add' : 'remove'](className) - } - - - if (schema) { - for (const col of schema) { - if (col.stat_type == 'numerical') { - col.stat_type = 'realAdditive'; - } - - if (col.stat_type == 'nominal') { - col.stat_type = 'categorical'; - } - } - } - - // convert the data to an MI object for VizGPM - var associations = {} - // very strangely, the pandas data frame json looks like an object - // with indexes and has no "length" propery - for (var index in depprob.name0) { - if (!associations[depprob.name0[index]]) { - associations[depprob.name0[index]] = {} - } - associations[depprob.name0[index]][depprob.name1[index]] = - depprob.value[index] - } - - function between(col1, col2) { - return associations[col1][col2] - } - - var columns = Object.keys(associations) - // This is what VizGPM expects for the mutual info charts - var mi = { target: columns, between: between } - - var container = $('
') - .appendTo(myCell); - - var depProbContainer = $('
').appendTo(container); - var pairContainer = $('
').appendTo(container); - $("").appendTo(container); - - VizGPMReady.then(function(VizGPM) { - - const _ = VizGPM._; - - const SP = VizGPM.StateProperty - - var clustered = VizGPM.util.treecluster(mi) - mi.target = clustered - // The GPMStateManager actually assumes a JS remoteGPM, so we should - // create our own stateManager with a `getColumn` method - - var stateManager = new VizGPM.StateManager({ - [SP.SCHEMA]: {columns: schema}, - [SP.SELECTED_COLUMN_NAMES]: [], - [SP.GET_COLUMN_FUNCTION]: col => - VizGPM.GpmHandler.prototype._getColumn.call(stateManager, col), - [SP.DISPLAYED_ROWS]: rows, - }); - - // var debug = $('
').appendTo(element);
-    // stateManager.subscribe(function(newState) {
-    //   const showState = Object.assign({}, newState.state);
-    //   delete showState.schema;
-    //   delete showState.rows;
-    //   debug.text(JSON.stringify(showState, false, '  '))
-    // })
-
-    class SingleSelectSubgrid extends VizGPM.Charts.ColumnAssociationSubgrid {
-      // I used to have these sorts of events as parameters to the constructor,
-      // this is a private API but the only way I can handle making a "single
-      // select subgrid"
-      _handleGridMouseDown(event) {
-        return this._handleAllMouseEvents(event)
-      }
-
-      _handleGridMouseUp() {
-        // Doesn't actually get the event?  It's okay - we don't want to do anything anyway
-        return
-      }
-
-      _handleGridMouseMove(event) {
-        return this._handleAllMouseEvents(event)
-      }
-
-      _handleAllMouseEvents(event) {
-        const { x, y, error } = this._gridEventCoords(event) || { error: true };
-        if (!error && event.which) {
-          // if there was a button pressed, we want to set selected columns
-          const selectedColumns = [...new Set([
-              this._columnNameAtXIndex(x), this._columnNameAtYIndex(y)
-            ])]
-
-          // TODO: Don't thrash state so much when they are deep equal
-          this.setState({[SP.FOCUSED_COLUMN_NAMES]: selectedColumns})
-          this.setState({[SP.SELECTED_COLUMN_NAMES]: selectedColumns})
-        } else if (event.type === 'mousemove') {
-          // Otherwise, we want to still handle focused columns as we used to
-          super._handleGridMouseMove(event)
-        }
-      }
-
-      _handleXLabelClick(xIndex) {
-        this.setState({[SP.SELECTED_COLUMN_NAMES]: [this._columnNameAtXIndex(xIndex)]});
-      }
-
-      _handleYLabelClick(yIndex) {
-        this.setState({[SP.SELECTED_COLUMN_NAMES]: [this._columnNameAtXIndex(yIndex)]});
-      }
-
-      // customize the painting of selection to be [x, y] like focus is.
-      _updateSelectedAndFocusedColumns(state) {
-        const {
-          [SP.SELECTED_COLUMN_NAMES]: selected = [],
-          [SP.FOCUSED_COLUMN_NAMES]: focused = [],
-        } = state
-
-        for (const cell of this._grid.querySelectorAll('.grid-cell.focused,.grid-cell.selected')) {
-          cell.classList.remove('focused');
-          cell.classList.remove('selected');
-        }
-
-        // Make [x] into [x, x]
-        const [selX, selY = selX] = selected;
-        const [focX, focY = focX] = focused;
-        const indexer = {}
-        this._columnXLabels.forEach((label, index) => {
-          const name = this._columnNameAtXIndex(index)
-          if (selX === name) {
-            label.classList.add('selected')
-            indexer.selX = index;
-          } else {
-            label.classList.remove('selected')
-          }
-
-          if (focX === name) {
-            label.classList.add('focused')
-            indexer.focX = index;
-          } else {
-            label.classList.remove('focused')
-          }
-        })
-
-        this._columnYLabels.forEach((label, index) => {
-          const name = this._columnNameAtYIndex(index)
-          if (selY === name) {
-            label.classList.add('selected')
-            indexer.selY = index;
-          } else {
-            label.classList.remove('selected')
-          }
-
-          if (focY === name) {
-            label.classList.add('focused')
-            indexer.focY = index;
-          } else {
-            label.classList.remove('focused')
-          }
-        })
-
-        if ('selX' in indexer && 'selY' in indexer) {
-          this._gridCells[indexer.selY][indexer.selX].classList.add('selected');
-        }
-
-        if ('focX' in indexer && 'focY' in indexer && !_.isEqual(selected, focused)) {
-          this._gridCells[indexer.focY][indexer.focX].classList.add('focused');
-        }
-      }
-    }
-
-    const chart = new VizGPM.ZoomableColumnAssociation({
-      root: depProbContainer[0],
-      stateManager: stateManager,
-      subgridClass: SingleSelectSubgrid,
-      associationFn: function() {
-        return mi
-      },
-      subgridConfig: {
-        cellSelectedFn: ({ xColumn, yColumn, selectedColumns: [x, y = x] = [] }) =>
-          xColumn === x && yColumn === y,
-      },
-      miniMapConfig: {
-        cellSelectedFn: ({ xColumn, yColumn, selectedColumns: [x, y = x] = [] }) =>
-          xColumn === x || yColumn === y,
-      },
-    })
-
-    class SingleCellPairPlot extends VizGPM.PairPlot {
-      _buildPairPlot() {
-        const {registry, axisLabelFn, axisDescriptionFn} = this._;
-        const state = this.getState();
-        const rows = state[SP.DISPLAYED_ROWS] || [];
-        const schema = state[SP.SCHEMA];
-        const selectedColumns = state[SP.SELECTED_COLUMN_NAMES] || [];
-
-        if (!(registry && schema &&
-            selectedColumns[0] && rows[0] && selectedColumns[0] in rows[0])) {
-          return document.createElement('div');
-        }
-
-        const [ rowName, colName = rowName ] = selectedColumns;
-        // flip x,y so that the axis labels are correct
-        const chart = this.getChartForIntersection(colName, rowName);
-        this._charts.push(chart);
-
-        return chart.getRoot();
-      }
-    }
-
-    if (rows && schema) {
-      const plot = new SingleCellPairPlot({
-        root: pairContainer[0],
-        stateManager: stateManager,
-      })
-    }
-  })
-}
diff --git a/src/jsviz/heatmap.js b/src/jsviz/heatmap.js
deleted file mode 100644
index feaa457..0000000
--- a/src/jsviz/heatmap.js
+++ /dev/null
@@ -1,102 +0,0 @@
-//   Copyright (c) 2010-2016, MIT Probabilistic Computing Project
-//
-//   Licensed under the Apache License, Version 2.0 (the "License");
-//   you may not use this file except in compliance with the License.
-//   You may obtain a copy of the License at
-//
-//       http://www.apache.org/licenses/LICENSE-2.0
-//
-//   Unless required by applicable law or agreed to in writing, software
-//   distributed under the License is distributed on an "AS IS" BASIS,
-//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//   See the License for the specific language governing permissions and
-//   limitations under the License.
-
-
-function heatmap(df, labels) {
-  var myCell = element.is('.output_subarea') ? element : element.next();
-  if (typeof VizGPMReady === 'undefined') {
-    throw new Error('VizGPM Display Library not loaded')
-  }
-
-  if (df.columns.length !== 3) {
-    throw new Error('Must be 3 columns of data');
-  }
-
-  const toggleClass = (element, className, state) => {
-    element.classList[state ? 'add' : 'remove'](className)
-  }
-
-  // convert the data to an MI object for VizGPM
-  var associations = {}
-  const columns = new Set();
-  for (const [col0, col1, value] of df.data) {
-    columns.add(col0);
-    columns.add(col1);
-    if (!associations[col0]) {
-      associations[col0] = {}
-    }
-    associations[col0][col1] = value
-  }
-
-  function between(col1, col2) {
-    return associations[col1][col2]
-  }
-
-  // This is what VizGPM expects for the mutual info charts
-  var mi = { target: labels || [...columns], between: between }
-
-  var container = $('
') - .appendTo(myCell); - - var depProbContainer = $('
').appendTo(container); - var columnListContainer = $('
').appendTo(container); - - $("").appendTo(container); - - VizGPMReady.then(function(VizGPM) { - const _ = VizGPM._; - - const SP = VizGPM.StateProperty - - const schema = [...columns].map(name => ({name})); - - var stateManager = new VizGPM.StateManager({ - [SP.SCHEMA]: {columns: schema}, - columns: [...columns], - [SP.SELECTED_COLUMN_NAMES]: [], - [SP.GET_COLUMN_FUNCTION]: col => - VizGPM.GpmHandler.prototype._getColumn.call(stateManager, col), - }); - - // var debug = $('
').appendTo(element);
-    // stateManager.subscribe(function(newState) {
-    //   const showState = Object.assign({}, newState.state);
-    //   delete showState.schema;
-    //   delete showState.rows;
-    //   debug.text(JSON.stringify(showState, false, '  '))
-    // })
-
-    const chart = new VizGPM.ZoomableColumnAssociation({
-      root: depProbContainer[0],
-      stateManager: stateManager,
-      // subgridClass: SingleSelectSubgrid,
-      associationFn: function() {
-        return mi
-      },
-      // subgridConfig: {
-        // cellSelectedFn: ({ xColumn, yColumn, selectedColumns: [x, y = x] = [] }) =>
-          // xColumn === x && yColumn === y,
-      // },
-      // miniMapConfig: {
-        // cellSelectedFn: ({ xColumn, yColumn, selectedColumns: [x, y = x] = [] }) =>
-          // xColumn === x || yColumn === y,
-      // },
-    })
-
-    const columnList = new VizGPM.UI.ColumnList({
-      root: columnListContainer[0],
-      stateManager,
-    })
-  })
-}
diff --git a/src/jsviz/iventure-jsviz.js b/src/jsviz/iventure-jsviz.js
new file mode 100644
index 0000000..64f8af7
--- /dev/null
+++ b/src/jsviz/iventure-jsviz.js
@@ -0,0 +1,19 @@
+!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=605)}([function(t,e,n){"use strict";function r(t){return t>1?0:t<-1?s:Math.acos(t)}function i(t){return t>1?c:t<-1?-c:Math.asin(t)}function o(t){return(t=w(t/2))*t}n.d(e,"p",function(){return a}),n.d(e,"w",function(){return u}),n.d(e,"a",function(){return s}),n.d(e,"k",function(){return c}),n.d(e,"q",function(){return l}),n.d(e,"b",function(){return f}),n.d(e,"h",function(){return h}),n.d(e,"g",function(){return d}),n.d(e,"o",function(){return p}),n.d(e,"l",function(){return v}),n.d(e,"e",function(){return _}),n.d(e,"c",function(){return y}),n.d(e,"v",function(){return g}),n.d(e,"m",function(){return m}),n.d(e,"i",function(){return b}),n.d(e,"t",function(){return x}),n.d(e,"d",function(){return w}),n.d(e,"s",function(){return S}),n.d(e,"n",function(){return M}),n.d(e,"j",function(){return E}),e.r=r,e.f=i,e.u=o;var a=1e-6,u=1e-12,s=Math.PI,c=s/2,l=s/4,f=2*s,h=180/s,d=s/180,p=Math.abs,v=Math.atan,_=Math.atan2,y=Math.cos,g=Math.ceil,m=Math.exp,b=(Math.floor,Math.log),x=Math.pow,w=Math.sin,S=Math.sign||function(t){return t>0?1:t<0?-1:0},M=Math.sqrt,E=Math.tan},function(t,e,n){"use strict";var r=(n(119),n(486),n(221));n.d(e,"i",function(){return r.a});var i=n(487);n.d(e,"c",function(){return i.a});var o=n(120);n.d(e,"h",function(){return o.a});var a=(n(121),n(488));n.d(e,"d",function(){return a.a});var u=(n(489),n(9));n.d(e,"f",function(){return u.c});var s=n(124);n.d(e,"k",function(){return s.a});var c=n(225);n.d(e,"j",function(){return c.a});var l=n(224);n.d(e,"g",function(){return l.b});var f=n(516);n.d(e,"e",function(){return f.a});var h=(n(517),n(126),n(123));n.d(e,"a",function(){return h.a}),n.d(e,"b",function(){return h.b})},function(t,e,n){var r=n(151),i=n(45),o=n(731),a=n(35),u=n(88),s=n(28),c=Object.prototype,l=c.hasOwnProperty,f=o(function(t,e){if(u(e)||a(e))return void i(e,s(e),t);for(var n in e)l.call(e,n)&&r(t,n,e[n])});t.exports=f},function(t,e,n){"use strict";function r(t,e,n,a){function u(e){return t(e=new Date(+e)),e}return u.floor=u,u.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},u.round=function(t){var e=u(t),n=u.ceil(t);return t-e0))return o;do{o.push(new Date(+n))}while(e(n,i),t(n),n=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(u.count=function(e,r){return i.setTime(+e),o.setTime(+r),t(i),t(o),Math.floor(n(i,o))},u.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?u.filter(a?function(e){return a(e)%t==0}:function(e){return u.count(0,e)%t==0}):u:null}),u}e.a=r;var i=new Date,o=new Date},function(t,e,n){"use strict";var r=n(171);n.d(e,"c",function(){return r.a});var i=n(37);n.d(e,"g",function(){return i.a});var o=n(172);n.d(e,"e",function(){return o.a});var a=(n(309),n(310),n(173),n(174));n.d(e,"j",function(){return a.a});var u=n(311);n.d(e,"k",function(){return u.a});var s=(n(321),n(322),n(178),n(313));n.d(e,"l",function(){return s.a});var c=(n(314),n(315),n(316));n.d(e,"i",function(){return c.a});var l=(n(175),n(176),n(317),n(95));n.d(e,"f",function(){return l.a});var f=n(177);n.d(e,"h",function(){return f.a});var h=(n(318),n(319),n(320),n(179));n.d(e,"a",function(){return h.a}),n.d(e,"b",function(){return h.b}),n.d(e,"d",function(){return h.c});n(180),n(181),n(323)},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(592),u=n(2),s=n.n(u),c=n(293),l=n.n(c),f=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};r(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n._.root&&n.setRoot(n._.root),n}return o(e,t),f(e,[{key:"defaults",value:function(){return s()(h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"defaults",this).call(this),{classNames:["vizgpm-component"]})}},{key:"setClassNames",value:function(t){var e=this._,n=e.classNames,r=e.root;e.classNames=t,r&&(n.forEach(function(e){-1===t.indexOf(e)&&r.classList.remove(e)}),t.forEach(function(t){r.classList.add(t)}))}},{key:"getClassNames",value:function(){return this._.classNames.slice()}},{key:"setAdditionalClassNames",value:function(t){var e=this.getClassNames().concat(t);this.setClassNames(e)}},{key:"setRoot",value:function(t){if(!(t instanceof Element))throw new Error("root must be an Element");this._.root=t;var e=!0,n=!1,r=void 0;try{for(var i,o=this._.classNames[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var a=i.value;t.classList.add(a)}}catch(t){n=!0,r=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw r}}t.hidden=this._.hidden}},{key:"getRoot",value:function(){return this._.root}},{key:"triggerRender",value:function(){if(!this._.hidden){d(this)()}}},{key:"flushRender",value:function(){d(this).flush()}},{key:"cancelRender",value:function(){d(this).cancel()}},{key:"render",value:function(){throw new Error("This class does not yet know how to render")}},{key:"setHidden",value:function(t){this._.hidden=Boolean(t);var e=this._.root;e&&"hidden"in e&&(this._.root.hidden=t),t?this.cancelRender():this.triggerRender()}},{key:"getHidden",value:function(){return Boolean(this._.hidden)}}]),e}(a.a);e.a=p},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict";var r=n(115);n.d(e,"a",function(){return r.a});var i=(n(208),n(114),n(209),n(211),n(66));n.d(e,"d",function(){return i.a});var o=(n(212),n(432));n.d(e,"h",function(){return o.a});var a=n(214);n.d(e,"f",function(){return a.a});var u=n(434);n.d(e,"c",function(){return u.a}),n.d(e,"g",function(){return u.b});var s=n(436);n.d(e,"b",function(){return s.a});var c=n(213);n.d(e,"e",function(){return c.a});var l=(n(429),n(430),n(428),n(427));n.d(e,"i",function(){return l.a});n(431)},function(t,e,n){"use strict";function r(t,e){this._groups=t,this._parents=e}function i(){return new r([[document.documentElement]],I)}n.d(e,"b",function(){return I}),e.a=r;var o=n(511),a=n(512),u=n(500),s=n(494),c=n(222),l=n(499),f=n(504),h=n(507),d=n(514),p=n(492),v=n(506),_=n(505),y=n(513),g=n(498),m=n(497),b=n(491),x=n(224),w=n(508),S=n(493),M=n(515),E=n(501),C=n(509),O=n(503),A=n(490),k=n(502),N=n(510),T=n(495),j=n(123),D=n(496),I=[null];r.prototype=i.prototype={constructor:r,select:o.a,selectAll:a.a,filter:u.a,data:s.a,enter:c.a,exit:l.a,merge:f.a,order:h.a,sort:d.a,call:p.a,nodes:v.a,node:_.a,size:y.a,empty:g.a,each:m.a,attr:b.a,style:x.a,property:w.a,classed:S.a,text:M.a,html:E.a,raise:C.a,lower:O.a,append:A.a,insert:k.a,remove:N.a,datum:T.a,on:j.c,dispatch:D.a},e.c=i},function(t,e,n){"use strict";function r(t,e){var n=t.__transition;if(!n||!(n=n[e])||n.state>f)throw new Error("too late");return n}function i(t,e){var n=t.__transition;if(!n||!(n=n[e])||n.state>d)throw new Error("too late");return n}function o(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("too late");return n}function a(t,e,r){function i(t){r.state=h,r.timer.restart(o,r.delay,r.time),r.delay<=t&&o(t-r.delay)}function o(i){var f,_,g,m;if(r.state!==h)return u();for(f in l)if(m=l[f],m.name===r.name){if(m.state===p)return n.i(s.b)(o);m.state===v?(m.state=y,m.timer.stop(),m.on.call("interrupt",t,t.__data__,m.index,m.group),delete l[f]):+f=0&&m.splice(e,1)}function u(t){var e=document.createElement("style");return t.attrs.type="text/css",c(e,t.attrs),o(t,e),e}function s(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",c(e,t.attrs),o(t,e),e}function c(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function l(t,e){var n,r,i,o;if(e.transform&&t.css){if(!(o=e.transform(t.css)))return function(){};t.css=o}if(e.singleton){var c=g++;n=y||(y=u(e)),r=f.bind(null,n,c,!1),i=f.bind(null,n,c,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(e),r=d.bind(null,n,e),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=u(e),r=h.bind(null,n),i=function(){a(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function f(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=x(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function h(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function d(t,e,n){var r=n.css,i=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||o)&&(r=b(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),u=t.href;t.href=URL.createObjectURL(a),u&&URL.revokeObjectURL(u)}var p={},v=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),_=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t.call(this,n)),e[n]}}(function(t){return document.querySelector(t)}),y=null,g=0,m=[],b=n(821);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=v()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=i(t,e);return r(n,e),function(t){for(var o=[],a=0;a2?t[2]%360*l.g:0,h()):[j*l.h,D*l.h,I*l.h]},e.precision=function(t){return arguments.length?(F=n.i(p.a)(i,$=t*t),_()):n.i(l.n)($)},e.fitExtent=function(t,r){return n.i(d.a)(e,t,r)},e.fitSize=function(t,r){return n.i(d.b)(e,t,r)},function(){return y=t.apply(this,arguments),e.invert=y.invert&&r,h()}}e.a=r,e.b=i;var o=n(380),a=n(381),u=n(105),s=n(197),c=n(106),l=n(0),f=n(63),h=n(64),d=n(109),p=n(402),v=n.i(h.a)({point:function(t,e){this.stream.point(t*l.g,e*l.g)}})},function(t,e,n){"use strict";n.d(e,"e",function(){return r}),n.d(e,"d",function(){return i}),n.d(e,"c",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"a",function(){return u});var r=1e3,i=6e4,o=36e5,a=864e5,u=6048e5},function(t,e,n){"use strict";e.a={SCHEMA:"schema",MODELED_COLUMN_NAMES:"columns",GET_COLUMN_FUNCTION:"getColumn",CONSTRAINT_QUERY:"constrainedQuery",DATA_ROWS:"dataRows",DATA_ROWS_STATUS:"dataRowsStatus",FILTERED_DATA_ROWS:"filteredDataRows",ROW_SAMPLE_SIZE:"rowSampleSize",SAMPLED_DATA_ROWS:"sampledDataRows",SIMULATED_ROWS:"simulatedRows",FILTERED_SIMULATED_ROWS:"filteredSimulatedRows",DISPLAYED_ROWS:"rows",SELECTION_QUERY:"selectionQuery",DISPLAYED_SELECTION_QUERY:"displayedSelectionQuery",SELECTED_COLUMN_NAMES:"selectedColumns",SELECTED_ROWS:"selectedRows",FOCUS_QUERY:"focusQuery",FOCUSED_COLUMN_NAMES:"focusColumns",FOCUSED_ROWS:"focusRows",COLUMN_ASSOCIATION_TYPES:"columnAssociationTypes",COLUMN_ASSOCIATION_VISIBLE:"columnAssociationVisible",DATA_TABLE_VISIBLE:"dataTableVisible",PAIR_PLOT_VISIBLE:"pairPlotVisible",SIMULATE_REQUEST:"simulation",DISPLAYED_ROWS_SOURCE:"rowSource",ASSOCIATION_COLUMN_ORDER:"associationColumnOrder",COLUMN_METADATA_SERVICE:"columnMetadataService",CAPABILITIES:"capabilities"}},function(t,e,n){"use strict";var r,i=n(141),o=n(262),a=n(639),u=n(142);r=t.exports=function(t,e){var n,r,a,s,c;return arguments.length<2||"string"!=typeof t?(s=e,e=t,t=null):s=arguments[2],null==t?(n=a=!0,r=!1):(n=u.call(t,"c"),r=u.call(t,"e"),a=u.call(t,"w")),c={value:e,configurable:n,enumerable:r,writable:a},s?i(o(s),c):c},r.gs=function(t,e,n){var r,s,c,l;return"string"!=typeof t?(c=n,n=e,e=t,t=null):c=arguments[3],null==e?e=void 0:a(e)?null==n?n=void 0:a(n)||(c=n,n=void 0):(c=e,e=n=void 0),null==t?(r=!0,s=!1):(r=u.call(t,"c"),s=u.call(t,"e")),l={get:e,set:n,configurable:r,enumerable:s},c?i(o(c),l):l}},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(345);n.d(e,"dispatch",function(){return r.a})},function(t,e,n){"use strict";function r(){}e.a=r},function(t,e,n){"use strict";function r(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function i(t){return n.i(a.f)().transition(t)}function o(){return++M}e.a=r,e.b=o;var a=n(1),u=n(565),s=n(566),c=n(567),l=n(568),f=n(569),h=n(570),d=n(571),p=n(572),v=n(573),_=n(574),y=n(575),g=n(576),m=n(577),b=n(578),x=n(579),w=n(580),S=n(74),M=0,E=a.f.prototype;r.prototype=i.prototype={constructor:r,select:_.a,selectAll:y.a,filter:h.a,merge:d.a,selection:g.a,transition:w.a,call:E.call,nodes:E.nodes,node:E.node,size:E.size,empty:E.empty,each:E.each,on:p.a,attr:u.a,attrTween:s.a,style:m.a,styleTween:b.a,text:x.a,remove:v.a,tween:S.a,delay:c.a,duration:l.a,ease:f.a}},function(t,e,n){"use strict";t.exports=n(661)()?Symbol:n(663)},function(t,e,n){function r(t){return a(t)?i(t):o(t)}var i=n(270),o=n(705),a=n(35);t.exports=r},function(t,e,n){"use strict";function r(t,e){t&&u.hasOwnProperty(t.type)&&u[t.type](t,e)}function i(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++ie?1:t>=e?0:NaN}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(340);n.d(e,"nest",function(){return r.a});var i=n(341);n.d(e,"set",function(){return i.a});var o=n(96);n.d(e,"map",function(){return o.a});var a=n(339);n.d(e,"keys",function(){return a.a});var u=n(342);n.d(e,"values",function(){return u.a});var s=n(338);n.d(e,"entries",function(){return s.a})},function(t,e,n){"use strict";function r(){this.reset()}function i(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}e.a=function(){return new r},r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(t){i(o,t,this.t),i(this,o.s,this.s),this.s?this.t+=o.t:this.s=o.t},valueOf:function(){return this.s}};var o=new r},function(t,e,n){"use strict";e.a=function(){return Math.random()}},function(t,e,n){"use strict";t.exports=n(263)()?Object.setPrototypeOf:n(264)},function(t,e,n){var r=n(12),i=r.Symbol;t.exports=i},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n180||i<-180?i-360*Math.round(i/360):i):n.i(s.a)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?u:function(e,r){return r-e?i(e,r,t):n.i(s.a)(isNaN(e)?r:e)}}function u(t,e){var i=e-t;return i?r(t,i):n.i(s.a)(isNaN(t)?e:t)}e.b=o,e.c=a,e.a=u;var s=n(210)},function(t,e,n){"use strict";e.a=function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})}},function(t,e,n){"use strict";function r(t){var e=t.domain;return t.ticks=function(t){var r=e();return n.i(o.a)(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){return n.i(s.a)(e(),t,r)},t.nice=function(r){null==r&&(r=10);var i,a=e(),u=0,s=a.length-1,c=a[u],l=a[s];return l0?(c=Math.floor(c/i)*i,l=Math.ceil(l/i)*i,i=n.i(o.b)(c,l,r)):i<0&&(c=Math.ceil(c*i)/i,l=Math.floor(l*i)/i,i=n.i(o.b)(c,l,r)),i>0?(a[u]=Math.floor(c/i)*i,a[s]=Math.ceil(l/i)*i,e(a)):i<0&&(a[u]=Math.ceil(c*i)/i,a[s]=Math.floor(l*i)/i,e(a)),t},t}function i(){var t=n.i(u.a)(u.b,a.d);return t.copy=function(){return n.i(u.c)(t,i())},r(t)}e.b=r,e.a=i;var o=n(4),a=n(8),u=n(67),s=n(482)},function(t,e,n){"use strict";function r(t){return t>1?0:t<-1?d:Math.acos(t)}function i(t){return t>=1?p:t<=-1?-p:Math.asin(t)}n.d(e,"g",function(){return o}),n.d(e,"m",function(){return a}),n.d(e,"h",function(){return u}),n.d(e,"e",function(){return s}),n.d(e,"j",function(){return c}),n.d(e,"i",function(){return l}),n.d(e,"d",function(){return f}),n.d(e,"a",function(){return h}),n.d(e,"b",function(){return d}),n.d(e,"f",function(){return p}),n.d(e,"c",function(){return v}),e.l=r,e.k=i;var o=Math.abs,a=Math.atan2,u=Math.cos,s=Math.max,c=Math.min,l=Math.sin,f=Math.sqrt,h=1e-12,d=Math.PI,p=d/2,v=2*d},function(t,e,n){"use strict";e.a=function(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],u=a.length;o=0;)n[e]=e;return n}},function(t,e,n){"use strict";function r(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function i(t,e){return e[1]-t[1]||e[0]-t[0]}function o(t,e){var r,o,v,_=t.sort(i).pop();for(c=[],u=new Array(t.length),a=new p.a,s=new p.a;;)if(v=h.a,_&&(!v||_[1]=u)return null;var s=t-i.site[0],c=e-i.site[1],l=s*s+c*c;do{i=o.cells[r=a],a=null,i.halfedges.forEach(function(n){var r=o.edges[n],u=r.left;if(u!==i.site&&u||(u=r.right)){var s=t-u[0],c=e-u[1],f=s*s+c*c;fc.a?t-c.b:t<-c.a?t+c.b:t,e]}function i(t,e,i){return(t%=c.b)?e||i?n.i(s.a)(a(t),u(e,i)):a(t):e||i?u(e,i):r}function o(t){return function(e,n){return e+=t,[e>c.a?e-c.b:e<-c.a?e+c.b:e,n]}}function a(t){var e=o(t);return e.invert=o(-t),e}function u(t,e){function r(t,e){var r=n.i(c.c)(e),s=n.i(c.c)(t)*r,l=n.i(c.d)(t)*r,f=n.i(c.d)(e),h=f*i+s*o;return[n.i(c.e)(l*a-h*u,s*i-f*o),n.i(c.f)(h*a+l*u)]}var i=n.i(c.c)(t),o=n.i(c.d)(t),a=n.i(c.c)(e),u=n.i(c.d)(e);return r.invert=function(t,e){var r=n.i(c.c)(e),s=n.i(c.c)(t)*r,l=n.i(c.d)(t)*r,f=n.i(c.d)(e),h=f*a-l*u;return[n.i(c.e)(l*a+f*u,s*i+h*o),n.i(c.f)(h*i-s*o)]},r}e.b=i;var s=n(197),c=n(0);r.invert=r,e.a=function(t){function e(e){return e=t(e[0]*c.g,e[1]*c.g),e[0]*=c.h,e[1]*=c.h,e}return t=i(t[0]*c.g,t[1]*c.g,t.length>2?t[2]*c.g:0),e.invert=function(e){return e=t.invert(e[0]*c.g,e[1]*c.g),e[0]*=c.h,e[1]*=c.h,e},e}},function(t,e,n){"use strict";function r(t){return function(e){var n=new i;for(var r in t)n[r]=t[r];return n.stream=e,n}}function i(){}e.a=r;i.prototype={constructor:i,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}}},function(t,e,n){"use strict";e.a=function(t,e,n,r,i){for(var o,a=t.children,u=-1,s=a.length,c=t.value&&(i-n)/t.value;++u=n?1:r(t)}}}function o(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}function a(t,e,n,r){var i=t[0],o=t[1],a=e[0],u=e[1];return o2?u:a,l=d=null,s}function s(e){return(l||(l=c(_,y,m?i(t):t,g)))(+e)}var c,l,d,_=v,y=v,g=f.a,m=!1;return s.invert=function(t){return(d||(d=c(y,_,r,m?o(e):e)))(+t)},s.domain=function(t){return arguments.length?(_=h.a.call(t,p.a),n()):_.slice()},s.range=function(t){return arguments.length?(y=h.b.call(t),n()):y.slice()},s.rangeRound=function(t){return y=h.b.call(t),g=f.h,n()},s.clamp=function(t){return arguments.length?(m=!!t,n()):m},s.interpolate=function(t){return arguments.length?(g=t,n()):g},n()}e.b=r,e.c=s,e.a=c;var l=n(4),f=n(8),h=n(31),d=n(118),p=n(218),v=[0,1]},function(t,e,n){"use strict";function r(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 i(t){this._context=t}n.d(e,"b",function(){return r}),e.a=i,i.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:r(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:r(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}}},function(t,e,n){"use strict";function r(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 i(t,e){this._context=t,this._k=(1-e)/6}n.d(e,"b",function(){return r}),e.a=i,i.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:r(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:r(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}};!function t(e){function n(t){return new i(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){"use strict";function r(t){this._context=t}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(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;default:this._context.lineTo(t,e)}}},e.a=function(t){return new r(t)}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";var r=(n(3),n(547));n.d(e,"t",function(){return r.a}),n.d(e,"n",function(){return r.a});var i=n(550);n.d(e,"s",function(){return i.a}),n.d(e,"m",function(){return i.a});var o=n(548);n.d(e,"r",function(){return o.a});var a=n(546);n.d(e,"q",function(){return a.a});var u=n(545);n.d(e,"a",function(){return u.a});var s=n(557);n.d(e,"p",function(){return s.a}),n.d(e,"c",function(){return s.a}),n.d(e,"d",function(){return s.b});var c=n(549);n.d(e,"o",function(){return c.a});var l=n(558);n.d(e,"b",function(){return l.a});var f=n(553);n.d(e,"l",function(){return f.a});var h=n(552);n.d(e,"k",function(){return h.a});var d=n(551);n.d(e,"e",function(){return d.a});var p=n(555);n.d(e,"j",function(){return p.a}),n.d(e,"g",function(){return p.a}),n.d(e,"h",function(){return p.b});var v=n(554);n.d(e,"i",function(){return v.a});var _=n(556);n.d(e,"f",function(){return _.a})},function(t,e,n){"use strict";var r=n(133);n.d(e,"c",function(){return r.c}),n.d(e,"a",function(){return r.a});var i=n(560);n.d(e,"b",function(){return i.a});n(559)},function(t,e,n){"use strict";function r(t,e){var r,i;return function(){var o=n.i(a.e)(this,t),u=o.tween;if(u!==r){i=r=u;for(var s=0,c=i.length;s element");return h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setRoot",this).call(this,t)}},{key:"setPosition",value:function(t){if(!(t in d))throw new TypeError("Invalid position");this._.position=t}},{key:"render",value:function(){var t=this._,e=t.root,n=t.hidden;e&&!n&&(this.updateSelection(),this.updatePosition(),this.updateTransform(),this.updateScale(),this.updateTickFormat(),this.updateTicks(),this.drawAxis(),this.clearChanged(),this.cancelRender())}},{key:"updateSelection",value:function(){var t=this._.root;this.hasChanged("root")&&(this._.selection=n.i(c.select)(t))}},{key:"updatePosition",value:function(){var t=this.hasChanged("root","position");if(t){var e=this._,n=e.root,r=e.position;t.position&&n.classList.remove(t.position),n.classList.add(r),this._.d3Axis=d[r]()}}},{key:"updateScale",value:function(){var t=this.hasChanged("d3Axis","scale"),e=this._,n=e.d3Axis,r=e.scale;t&&n&&r&&n.scale(r)}},{key:"updateTransform",value:function(){var t=this.hasChanged("selection","transform"),e=this._,n=e.selection,r=e.transform;t&&n.attr("transform",r)}},{key:"updateTickFormat",value:function(){var t=this.hasChanged("d3Axis","tickFormat"),e=this._,n=e.d3Axis,r=e.tickFormat;t&&n&&r&&n.tickFormat(r)}},{key:"updateTicks",value:function(){var t=this.hasChanged("d3Axis","ticks"),e=this._,n=e.d3Axis,r=e.ticks;t&&n&&r&&n.ticks(r)}},{key:"drawAxis",value:function(){if(this.hasChanged("selection","d3Axis","ticks","tickFormat","scale","forceRender")){var t=this._,e=t.selection,n=t.d3Axis;e.call(n),this.updateGridLines(),this.fixTicks(),this._.forceRender=!1}}},{key:"updateGridLines",value:function(){var t=this._,e=t.selection,n=t.scale,r=t.position,i=t.gridLineSpace;if(i&&n&&r){var o=n.range(),a=o[1]a)for(;s.getComputedTextLength()>a;)s.textContent=s.textContent.substr(0,s.textContent.length-2)+"…"}})}}],[{key:"defaultForXAxis",value:function(){var t=new e;return t.setPosition("bottom"),t.setAdditionalClassNames(["x"]),t}},{key:"defaultForYAxis",value:function(){var t=new e;return t.setPosition("left"),t.setAdditionalClassNames(["y"]),t}}]),e}(a.a);e.a=p},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(6),u=n(2),s=n.n(u),c=n(11),l=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};r(this,t),this._state=c()({},e),this._lastState={},this._handlers=new u.a,this._triggerChanged=null,this.triggerChanged()}return p(t,[{key:"getState",value:function(){return c()({},this._state)}},{key:"getStateProperty",value:function(t){return this._state[t]}},{key:"set",value:function(t){c()(this._state,t),this.triggerChanged()}},{key:"subscribe",value:function(t){var e=this;return this._handlers.add(t),function(){return e._handlers.delete(t)}}},{key:"triggerChanged",value:function(){o(this)()}},{key:"flushChanged",value:function(){o(this).flush()}},{key:"flushChangedUntilStable",value:function(){for(var t=0;!d()(this._lastState,this._state);)if(t+=1,this.flushChanged(),t>=20){console.warn("flushChangedUntilStable: not stable after "+t+" cycles");break}}},{key:"clearChanged",value:function(){o(this).clear()}}]),t}();e.a=v},function(t,e,n){"use strict";var r=Object.prototype.toString,i=r.call(function(){return arguments}());t.exports=function(t){return r.call(t)===i}},function(t,e,n){"use strict";var r=Object.prototype.toString,i=r.call("");t.exports=function(t){return"string"==typeof t||t&&"object"==typeof t&&(t instanceof String||r.call(t)===i)||!1}},function(t,e,n){"use strict";var r,i=n(140),o=n(141),a=n(15),u=n(16),s=n(22),c=n(623),l=n(27),f=Object.defineProperty,h=Object.defineProperties;t.exports=r=function(t,e){if(!(this instanceof r))return new r(t,e);h(this,{__list__:s("w",u(t)),__context__:s("w",e),__nextIndex__:s("w",0)}),e&&(a(e.on),e.on("_add",this._onAdd),e.on("_delete",this._onDelete),e.on("_clear",this._onClear))},h(r.prototype,o({constructor:s(r),_next:s(function(){var t;if(this.__list__)return this.__redo__&&void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__)return void f(this,"__redo__",s("c",[t]));this.__redo__.forEach(function(e,n){e>=t&&(this.__redo__[n]=++e)},this),this.__redo__.push(t)}}),_onDelete:s(function(t){var e;t>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(e=this.__redo__.indexOf(t),-1!==e&&this.__redo__.splice(e,1),this.__redo__.forEach(function(e,n){e>t&&(this.__redo__[n]=--e)},this)))}),_onClear:s(function(){this.__redo__&&i.call(this.__redo__),this.__nextIndex__=0})}))),f(r.prototype,l.iterator,s(function(){return this})),f(r.prototype,l.toStringTag,s("","Iterator"))},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=1)return+n(t[i-1],i-1,t);var i,o=(i-1)*e,a=Math.floor(o),u=+n(t[a],a,t);return u+(+n(t[a+1],a+1,t)-u)*(o-a)}}},function(t,e,n){"use strict";function r(){}function i(t,e){var n=new r;if(t instanceof r)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var i,o=-1,a=t.length;if(null==e)for(;++o>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1)):(e=w.exec(t))?o(parseInt(e[1],16)):(e=S.exec(t))?new c(e[1],e[2],e[3],1):(e=M.exec(t))?new c(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=E.exec(t))?a(e[1],e[2],e[3],e[4]):(e=C.exec(t))?a(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=O.exec(t))?l(e[1],e[2]/100,e[3]/100,1):(e=A.exec(t))?l(e[1],e[2]/100,e[3]/100,e[4]):k.hasOwnProperty(t)?o(k[t]):"transparent"===t?new c(NaN,NaN,NaN,0):null}function o(t){return new c(t>>16&255,t>>8&255,255&t,1)}function a(t,e,n,r){return r<=0&&(t=e=n=NaN),new c(t,e,n,r)}function u(t){return t instanceof r||(t=i(t)),t?(t=t.rgb(),new c(t.r,t.g,t.b,t.opacity)):new c}function s(t,e,n,r){return 1===arguments.length?u(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 l(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new d(t,e,n,r)}function f(t){if(t instanceof d)return new d(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=i(t)),!t)return new d;if(t instanceof d)return t;t=t.rgb();var e=t.r/255,n=t.g/255,o=t.b/255,a=Math.min(e,n,o),u=Math.max(e,n,o),s=NaN,c=u-a,l=(u+a)/2;return c?(s=e===u?(n-o)/c+6*(n0&&l<1?0:s,new d(s,c,l,t.opacity)}function h(t,e,n,r){return 1===arguments.length?f(t):new d(t,e,n,null==r?1:r)}function d(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function p(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}e.d=r,n.d(e,"f",function(){return _}),n.d(e,"e",function(){return y}),e.a=i,e.c=u,e.h=s,e.b=c,e.g=h;var v=n(98),_=.7,y=1/_,g="\\s*([+-]?\\d+)\\s*",m="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",b="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",x=/^#([0-9a-f]{3})$/,w=/^#([0-9a-f]{6})$/,S=new RegExp("^rgb\\("+[g,g,g]+"\\)$"),M=new RegExp("^rgb\\("+[b,b,b]+"\\)$"),E=new RegExp("^rgba\\("+[g,g,g,m]+"\\)$"),C=new RegExp("^rgba\\("+[b,b,b,m]+"\\)$"),O=new RegExp("^hsl\\("+[m,b,b]+"\\)$"),A=new RegExp("^hsla\\("+[m,b,b,m]+"\\)$"),k={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};n.i(v.a)(r,i,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),n.i(v.a)(c,s,n.i(v.b)(r,{brighter:function(t){return t=null==t?y:Math.pow(y,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?_:Math.pow(_,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(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+")")}})),n.i(v.a)(d,h,n.i(v.b)(r,{brighter:function(t){return t=null==t?y:Math.pow(y,t),new d(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?_:Math.pow(_,t),new d(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(p(t>=240?t-240:t+120,i,r),p(t,i,r),p(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}}))},function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}e.b=r,e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";var r=(n(347),n(184));n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(101);n.d(e,"dsvFormat",function(){return r.a});var i=n(349);n.d(e,"csvParse",function(){return i.a}),n.d(e,"csvParseRows",function(){return i.b}),n.d(e,"csvFormat",function(){return i.c}),n.d(e,"csvFormatRows",function(){return i.d});var o=n(350);n.d(e,"tsvParse",function(){return o.a}),n.d(e,"tsvParseRows",function(){return o.b}),n.d(e,"tsvFormat",function(){return o.c}),n.d(e,"tsvFormatRows",function(){return o.d})},function(t,e,n){"use strict";function r(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}")}function i(t,e){var n=r(t);return function(r,i){return e(n(r),i,t)}}function o(t){var e=Object.create(null),n=[];return t.forEach(function(t){for(var r in t)r in e||n.push(e[r]=r)}),n}e.a=function(t){function e(t,e){var o,a,u=n(t,function(t,n){if(o)return o(t,n-1);a=t,o=e?i(t,e):r(t)});return u.columns=a,u}function n(t,e){function n(){if(c>=s)return a;if(i)return i=!1,o;var e,n=c;if(34===t.charCodeAt(n)){for(var r=n;r++1?r[0]+r.slice(2):r,+t.slice(n+1)]}},function(t,e,n){"use strict";function r(t,e,r,f){function h(n,i){return t<=n&&n<=r&&e<=i&&i<=f}function d(n,i,o,a){var u=0,s=0;if(null==n||(u=p(n,o))!==(s=p(i,o))||_(n,i)<0^o>0)do{a.point(0===u||3===u?t:r,u>1?f:e)}while((u=(u+o+4)%4)!==s);else a.point(i[0],i[1])}function p(o,a){return n.i(i.o)(o[0]-t)0?0:3:n.i(i.o)(o[0]-r)0?2:1:n.i(i.o)(o[1]-e)0?1:0:a>0?3:2}function v(t,e){return _(t.x,e.x)}function _(t,e){var n=p(t,1),r=p(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(i){function p(t,e){h(t,e)&&D.point(t,e)}function _(){for(var e=0,n=0,r=S.length;nf&&(l-i)*(f-o)>(h-o)*(t-i)&&++e:h<=f&&(l-i)*(f-o)<(h-o)*(t-i)&&--e;return e}function y(){D=I,w=[],S=[],j=!0}function g(){var t=_(),e=j&&t,r=(w=n.i(s.i)(w)).length;(e||r)&&(i.polygonStart(),e&&(i.lineStart(),d(null,null,1,i),i.lineEnd()),r&&n.i(u.a)(w,v,t,d,i),i.polygonEnd()),D=i,w=S=M=null}function m(){L.point=x,S&&S.push(M=[]),T=!0,N=!1,A=k=NaN}function b(){w&&(x(E,C),O&&N&&I.rejoin(),w.push(I.result())),L.point=p,N&&D.lineEnd()}function x(i,o){var u=h(i,o);if(S&&M.push([i,o]),T)E=i,C=o,O=u,T=!1,u&&(D.lineStart(),D.point(i,o));else if(u&&N)D.point(i,o);else{var s=[A=Math.max(l,Math.min(c,A)),k=Math.max(l,Math.min(c,k))],d=[i=Math.max(l,Math.min(c,i)),o=Math.max(l,Math.min(c,o))];n.i(a.a)(s,d,t,e,r,f)?(N||(D.lineStart(),D.point(s[0],s[1])),D.point(d[0],d[1]),u||D.lineEnd(),j=!1):u&&(D.lineStart(),D.point(i,o),j=!1)}A=i,k=o,N=u}var w,S,M,E,C,O,A,k,N,T,j,D=i,I=n.i(o.a)(),L={point:p,lineStart:m,lineEnd:b,polygonStart:y,polygonEnd:g};return L}}e.a=r;var i=n(0),o=n(194),a=n(382),u=n(196),s=n(4),c=1e9,l=-c},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";function r(t){var e=0,r=i.a/3,a=n.i(o.b)(t),u=a(e,r);return u.parallels=function(t){return arguments.length?a(e=t[0]*i.g,r=t[1]*i.g):[e*i.h,r*i.h]},u}e.a=r;var i=n(0),o=n(19)},function(t,e,n){"use strict";function r(t,e){function r(t,e){var r=n.i(i.n)(s-2*u*n.i(i.d)(e))/u;return[r*n.i(i.d)(t*=u),c-r*n.i(i.c)(t)]}var o=n.i(i.d)(t),u=(o+n.i(i.d)(e))/2;if(n.i(i.o)(u)=0;--a)h.push(r=n.children[a]=new s(i[a])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(u)}function i(){return r(this).eachBefore(a)}function o(t){return t.children}function a(t){t.data=t.data.data}function u(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function s(t){this.data=t,this.depth=this.height=0,this.parent=null}e.b=u,e.a=s;var c=n(408),l=n(410),f=n(412),h=n(411),d=n(417),p=n(416),v=n(415),_=n(407),y=n(409),g=n(413),m=n(414);s.prototype=r.prototype={constructor:s,count:c.a,each:l.a,eachAfter:h.a,eachBefore:f.a,sum:d.a,sort:p.a,path:v.a,ancestors:_.a,descendants:y.a,leaves:g.a,links:m.a,copy:i}},function(t,e,n){"use strict";function r(t,e,r,a,u,s){for(var c,l,f,h,d,p,v,_,y,g,m,b=[],x=e.children,w=0,S=0,M=x.length,E=e.value;wv&&(v=l),m=d*d*g,(_=Math.max(v/m,m/p))>y){d-=l;break}y=_}b.push(c={value:d,dice:f1?e:1)},n}(a)},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}e.b=r,e.a=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],u=i>0?t[i-1]:2*o-a,s=i=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.b.hasOwnProperty(e)?{space:r.b[e],local:t}:t}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="http://www.w3.org/1999/xhtml";e.b={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,e,n){"use strict";e.a=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}},function(t,e,n){"use strict";function r(t,e,n){return t=i(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function i(t,e,n){return function(r){var i=l;l=r;try{t.call(this,this.__data__,e,n)}finally{l=i}}}function o(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function a(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;ro.a){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>o.a){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/f,u=(u*l+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(r,i,a,u,t._x2,t._y2)}function i(t,e){this._context=t,this._alpha=e}n.d(e,"a",function(){return r});var o=n(54),a=n(69);i.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,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,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:r(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}};!function t(e){function n(t){return e?new i(t,e):new a.a(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},function(t,e,n){"use strict";var r=n(30),i=n(32),o=n(70),a=n(130);e.a=function(){function t(t){var i,o,a,h=t.length,d=!1;for(null==c&&(f=l(a=n.i(r.a)())),i=0;i<=h;++i)!(i=0&&e._call.call(null,t),e=e._next;--v}function s(){b=(m=w.now())+x,v=_=0;try{u()}finally{v=0,l(),b=0}}function c(){var t=w.now(),e=t-m;e>g&&(x-=e,m=t)}function l(){for(var t,e,n=h,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:h=e);d=t,f(r)}function f(t){if(!v){_&&(_=clearTimeout(_));var e=t-b;e>24?(t<1/0&&(_=setTimeout(s,e)),y&&(y=clearInterval(y))):(y||(m=b,y=setInterval(c,g)),v=1,S(s))}}e.c=r,e.b=o,e.a=a;var h,d,p="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},v=0,_=0,y=0,g=1e3,m=0,b=0,x=0,w="object"===("undefined"==typeof performance?"undefined":p(performance))&&performance.now?performance:Date,S="function"==typeof requestAnimationFrame?requestAnimationFrame:function(t){setTimeout(t,17)};o.prototype=a.prototype={constructor:o,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?r():+n)+(null==e?0:+e),this._next||d===this||(d?d._next=this:h=this,d=this),this._call=t,this._time=n,f()},stop:function(){this._call&&(this._call=null,this._time=1/0,f())}}},function(t,e,n){"use strict";var r=(n(562),n(26),n(561),n(241));n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";function r(t,e,n,r){var i=[null,null],a=c.d.push(i)-1;return i.left=t,i.right=e,n&&o(i,t,e,n),r&&o(i,e,t,r),c.c[t.index].halfedges.push(a),c.c[e.index].halfedges.push(a),i}function i(t,e,n){var r=[e,n];return r.left=t,r}function o(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function a(t,e,n,r,i){var o,a=t[0],u=t[1],s=a[0],c=a[1],l=u[0],f=u[1],h=0,d=1,p=l-s,v=f-c;if(o=e-s,p||!(o>0)){if(o/=p,p<0){if(o0){if(o>d)return;o>h&&(h=o)}if(o=r-s,p||!(o<0)){if(o/=p,p<0){if(o>d)return;o>h&&(h=o)}else if(p>0){if(o0)){if(o/=v,v<0){if(o0){if(o>d)return;o>h&&(h=o)}if(o=i-c,v||!(o<0)){if(o/=v,v<0){if(o>d)return;o>h&&(h=o)}else if(v>0){if(o0||d<1)||(h>0&&(t[0]=[s+h*p,c+h*v]),d<1&&(t[1]=[s+d*p,c+d*v]),!0)}}}}}function u(t,e,n,r,i){var o=t[1];if(o)return!0;var a,u,s=t[0],c=t.left,l=t.right,f=c[0],h=c[1],d=l[0],p=l[1],v=(f+d)/2,_=(h+p)/2;if(p===h){if(v=r)return;if(f>d){if(s){if(s[1]>=i)return}else s=[v,n];o=[v,i]}else{if(s){if(s[1]1)if(f>d){if(s){if(s[1]>=i)return}else s=[(n-u)/a,n];o=[(i-u)/a,i]}else{if(s){if(s[1]=r)return}else s=[e,a*e+u];o=[r,a*r+u]}else{if(s){if(s[0]c.b||Math.abs(i[0][1]-i[1][1])>c.b)||delete c.d[o]}e.d=r,e.b=i,e.c=o,e.a=s;var c=n(57)},function(t,e,n){"use strict";function r(){this._=null}function i(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function o(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function a(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function u(t){for(;t.L;)t=t.L;return t}e.b=i,r.prototype={constructor:r,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=u(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)r=n.U,n===r.L?(i=r.R,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(o(this,n),t=n,n=t.U),n.C=!1,r.C=!0,a(this,r))):(i=r.L,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(a(this,n),t=n,n=t.U),n.C=!1,r.C=!0,o(this,r))),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,s=t.L,c=t.R;if(n=s?c?u(c):s:c,i?i.L===t?i.L=n:i.R=n:this._=n,s&&c?(r=n.C,n.C=t.C,n.L=s,s.U=n,n!==c?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=c,c.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(e=i.R,e.C&&(e.C=!1,i.C=!0,o(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,a(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,o(this,i),t=this._;break}}else if(e=i.L,e.C&&(e.C=!1,i.C=!0,a(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,o(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,a(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},e.a=r},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.padZeroWidth,a=void 0===r?10:r,u=n.i(i.extent)(t),s=o(u,2);return s[0]===s[1]&&(u[0]-=a,u[1]+=a),u}e.a=r;var i=n(11),o=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:{},n=I(e),r=this.getStateProperty(N.a.MODELED_COLUMN_NAMES),o=l()(r,Object.keys(n)),a=this.getStateProperty(N.a.COLUMN_ASSOCIATION_TYPES),u=[],s=!0,c=!1,f=void 0;try{for(var h,d=a[Symbol.iterator]();!(s=(h=d.next()).done);s=!0){var p=h.value;!function(e){t._stateManager.set(i({},e.statusStateProperty,A.a.IN_PROGRESS));var r=t._gpm.columnAssociation(e.statistic,o,e.allowsGivens?n:{},null!=e.distribution?e.distribution:null).then(function(n){if(null!=e.distribution){var i=n;n={target:i.target,between:function(t,e){return 1-i.between(t,e)}}}return(r===u[0]||t._associationColumnOrder?Promise.resolve():u[0]).then(function(){return t._reorderColumnsInAssociation(n)})}).then(function(n){var r;t._stateManager.set((r={},i(r,e.associationStateProperty,n),i(r,e.statusStateProperty,A.a.COMPLETED),r))}).catch(function(n){throw t._stateManager.set(i({},e.statusStateProperty,A.a.FAILED)),n});u.push(r)}(p)}}catch(t){c=!0,f=t}finally{try{!s&&d.return&&d.return()}finally{if(c)throw f}}}},{key:"_addMissingColumns",value:function(t){var e=this._stateManager.getStateProperty(N.a.MODELED_COLUMN_NAMES),n=l()(e,t).sort();return[].concat(r(t),r(n))}},{key:"_reorderColumnsInAssociation",value:function(t){return this._associationColumnOrder||(this._associationColumnOrder=this._addMissingColumns(n.i(s.a)(t)),this._stateManager.set(i({},N.a.ASSOCIATION_COLUMN_ORDER,this._associationColumnOrder))),E.a.withReorderedColumns(t,this._associationColumnOrder)}},{key:"_setAssociationColumnOrder",value:function(t){this._associationColumnOrder=this._addMissingColumns(t);var e=!0,n=!1,r=void 0;try{for(var o,a=(this.getStateProperty(N.a.COLUMN_ASSOCIATION_TYPES)||[])[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){var u=o.value,s=this.getStateProperty(u.associationStateProperty);if(s){var c=this._reorderColumnsInAssociation(s);this._stateManager.set(i({},u.associationStateProperty,c))}}}catch(t){n=!0,r=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw r}}}},{key:"_setInitialSchema",value:function(t){var e,n=!0,r=!1,o=void 0;try{for(var a,u=t.columns[Symbol.iterator]();!(n=(a=u.next()).done);n=!0){var s=a.value;s.display_name||(s.display_name=s.name)}}catch(t){r=!0,o=t}finally{try{!n&&u.return&&u.return()}finally{if(r)throw o}}this._memoizedGetColumn=g()(this._getColumn.bind(this)),this._lastUsedSchema=t;var c=t.columns.filter(function(t){return"void"!==t.stat_type}).map(function(t){return t.name}),l=this.getStateProperty(N.a.CAPABILITIES),f=(l||{}).miDepProbMaxColumns,h=C.a.filter(function(t){return"mutual information"===t.statistic?f&&f>=c.length:"data R squared"!==t.statistic||!!window.localStorage.enableDataRSquared});this._stateManager.set((e={},i(e,N.a.SCHEMA,t),i(e,N.a.MODELED_COLUMN_NAMES,c),i(e,N.a.COLUMN_ASSOCIATION_TYPES,h),i(e,N.a.GET_COLUMN_FUNCTION,this.getColumn.bind(this)),i(e,N.a.COLUMN_METADATA_SERVICE,new O.a(this._gpm,this._stateManager)),e)),this.fetchRows(),this._stateManager.flushChangedUntilStable(),this.getStateProperty(h[0].statusStateProperty)||this.fetchAssociations(this.getStateProperty(N.a.CONSTRAINT_QUERY))}},{key:"handleSelectResponse",value:function(e){var n,r=t.makeRows(e);this._stateManager.set((n={},i(n,N.a.DATA_ROWS,r),i(n,N.a.ROW_SAMPLE_SIZE,1e3),n))}},{key:"runSimulation",value:function(t){var e=this,n=I(this.getStateProperty(N.a.CONSTRAINT_QUERY));this._gpm.simulateRow({target:this.getStateProperty(N.a.MODELED_COLUMN_NAMES),n:t.count||100,given:n}).then(function(t){return e.handleSimulateResponse(t)})}},{key:"handleSimulateResponse",value:function(e){var n=this.getState(),o=t.makeRows(e),a=n[N.a.SIMULATED_ROWS]||new b.a;this._stateManager.set(i({},N.a.SIMULATED_ROWS,new b.a([].concat(r(a),r(o)))))}},{key:"_handleStateChange",value:function(t){var e=t.changed,n=t.state,r=t.lastState;if(-1!==e.indexOf(N.a.CONSTRAINT_QUERY)){var o=n[N.a.CONSTRAINT_QUERY];p()(o,r[N.a.CONSTRAINT_QUERY])||this.fetchAssociations(o)}if(-1!==e.indexOf(N.a.SIMULATE_REQUEST)){var a=n[N.a.SIMULATE_REQUEST];a&&this.runSimulation(a)}if(-1===e.indexOf(N.a.DISPLAYED_ROWS_SOURCE)&&-1===e.indexOf(N.a.CONSTRAINT_QUERY)&&-1===e.indexOf(N.a.DATA_ROWS)&&-1===e.indexOf(N.a.SIMULATED_ROWS)&&-1===e.indexOf(N.a.ROW_SAMPLE_SIZE)||this._updateFilteredAndDisplayedRows(n,e),-1!==e.indexOf(N.a.ASSOCIATION_COLUMN_ORDER)){var u=n[N.a.ASSOCIATION_COLUMN_ORDER];p()(u,this._associationColumnOrder)||this._setAssociationColumnOrder(u)}if(-1!==e.indexOf(N.a.SELECTION_QUERY)){var s;this._stateManager.set((s={},i(s,N.a.DISPLAYED_SELECTION_QUERY,n[N.a.SELECTION_QUERY]),i(s,N.a.SELECTED_ROWS,this._getSelectedRows(n,n[N.a.SELECTION_QUERY])),s))}}},{key:"_getSelectedRows",value:function(t,e){if(0===Object.keys(e||{}).length)return new b.a;var n=[].concat(r(t[N.a.DATA_ROWS]||[]),r(t[N.a.SIMULATED_ROWS]||[]));return new b.a(D(n,e))}},{key:"_updateFilteredAndDisplayedRows",value:function(t,e){var n,r=t[N.a.CONSTRAINT_QUERY]||{},o=t[N.a.DATA_ROWS]||[],a=t[N.a.SIMULATED_ROWS]||new b.a,u=t[N.a.SAMPLED_DATA_ROWS]||[],s=D(o,r),c=D(a,r),f=t[N.a.ROW_SAMPLE_SIZE],d=void 0;if(!f||f>=s.length)d=s;else{if(d=-1===e.indexOf(N.a.DATA_ROWS)&&-1===e.indexOf(N.a.CONSTRAINT_QUERY)?h()(u,s):[],f>d.length){var p=f-d.length,v=l()(s,d);d=d.concat(w()(v).slice(0,p))}else f=n.size)return{bins:n.size,values:[].concat(r(n.keys())).sort(),value:i};var h=[].concat(r(n.values())).sort(function(t,e){var n=t.count;return e.count-n}).map(function(t){return t.value}),d=Math.floor(e),p=h.slice(0,d-1),v=new b.a(p);return{bins:Math.floor(e),values:[].concat(r(p),["Other"]),value:function(t){var e=i(t);return null==e?null:v.has(e)?e:"Other"}}}),o}}],[{key:"makeRows",value:function(t){for(var e=t.columns,n=t.rowids,r=Object.keys(e),i=e[r[0]].length,o=[],a=0;ae.$gt)&&((!("$gte"in e)||t>=e.$gte)&&(!("$in"in e)||e.$in.indexOf(t)>=0)))))}(g,m)){f=!1;break}}}catch(t){d=!0,p=t}finally{try{!h&&_.return&&_.return()}finally{if(d)throw p}}f&&i.push(l)}}catch(t){a=!0,u=t}finally{try{!o&&c.return&&c.return()}finally{if(a)throw u}}return i},I=function(t){if(!t)return{};var e={},n=!0,r=!1,i=void 0;try{for(var o,a=Object.keys(t)[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var u=o.value,s=t[u];"$eq"in s?e[u]=s.$eq:"$in"in s&&1===s.$in.length?e[u]=s.$in[0]:function(t){return("$lt"in t||"$lte"in t)&&("$gt"in t||"$gte"in t)}(s)&&(e[u]=function(t){return(("$lt"in t?t.$lt:t.$lte)+("$gt"in t?t.$gt:t.$gte))/2}(s))}}catch(t){r=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return e},L=0,P=function(){return"generated"+(L+=1)};e.a=j},function(t,e,n){"use strict";(function(e){function r(t,e,n,r){return t.addEventListener(e,n,r)}function i(t,e,n){return t.attachEvent("on"+e,c(t,e,n))}function o(t,e,n,r){return t.removeEventListener(e,n,r)}function a(t,e,n){var r=l(t,e,n);if(r)return t.detachEvent("on"+e,r)}function u(t,e,n){var r=-1===d.indexOf(e)?function(){return new h(e,{detail:n})}():function(){var t;return p.createEvent?(t=p.createEvent("Event"),t.initEvent(e,!0,!0)):p.createEventObject&&(t=p.createEventObject()),t}();t.dispatchEvent?t.dispatchEvent(r):t.fireEvent("on"+e,r)}function s(t,n,r){return function(n){var i=n||e.event;i.target=i.target||i.srcElement,i.preventDefault=i.preventDefault||function(){i.returnValue=!1},i.stopPropagation=i.stopPropagation||function(){i.cancelBubble=!0},i.which=i.which||i.keyCode,r.call(t,i)}}function c(t,e,n){var r=l(t,e,n)||s(t,e,n);return y.push({wrapper:r,element:t,type:e,fn:n}),r}function l(t,e,n){var r=f(t,e,n);if(r){var i=y[r].wrapper;return y.splice(r,1),i}}function f(t,e,n){var r,i;for(r=0;r-1}var i=n(697);t.exports=r},function(t,e){function n(t,e,n){for(var r=-1,i=null==t?0:t.length;++r0&&n(l)?e>1?r(l,e-1,n,a,u):i(u,l):a||(u[u.length]=l)}return u}var i=n(150),o=n(752);t.exports=r},function(t,e,n){function r(t,e){e=i(e,t);for(var n=0,r=e.length;null!=t&&n-1&&t%1==0&&t-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},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,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o});var r=Array.prototype,i=r.slice,o=r.map},function(t,e,n){"use strict";var r=n(37),i=n(172),o=n.i(i.a)(r.a),a=o.right;o.left;e.a=a},function(t,e,n){"use strict";function r(t){return function(e,r){return n.i(i.a)(t(e),r)}}var i=n(37);e.a=function(t){return 1===t.length&&(t=r(t)),{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}}}},function(t,e,n){"use strict";var r=n(181);e.a=function(t,e){var i=n.i(r.a)(t,e);return i?Math.sqrt(i):i}},function(t,e,n){"use strict";e.a=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),i=n)for(r=n;++on&&(r=n)}else for(;++o=n)for(r=n;++on&&(r=n);return r}},function(t,e,n){"use strict";function r(t,e){return[t,e]}e.a=r},function(t,e,n){"use strict";e.a=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r=0?(s>=o?10:s>=a?5:s>=u?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(s>=o?10:s>=a?5:s>=u?2:1)}function i(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),s=r/i;return s>=o?i*=10:s>=a?i*=5:s>=u&&(i*=2),e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s1)return l/(u-1)}},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"a",function(){return a}),n.d(e,"e",function(){return u}),n.d(e,"d",function(){return s});var r=Math.cos,i=Math.sin,o=Math.PI,a=o/2,u=2*o,s=Math.max},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i});var r=Math.PI/180,i=180/Math.PI},function(t,e,n){"use strict";function r(t,e){var r=t.document.documentElement,a=n.i(i.d)(t).on("dragstart.drag",null);e&&(a.on("click.drag",o.a,!0),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in r?a.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}e.b=r;var i=n(1),o=n(185);e.a=function(t){var e=t.document.documentElement,r=n.i(i.d)(t).on("dragstart.drag",o.a,!0);"onselectstart"in e?r.on("selectstart.drag",o.a,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}},function(t,e,n){"use strict";function r(){i.a.stopImmediatePropagation()}e.b=r;var i=n(1);e.a=function(){i.a.preventDefault(),i.a.stopImmediatePropagation()}},function(t,e,n){"use strict";var r=(n(357),n(359),n(354));n.d(e,"a",function(){return r.a});n(358),n(360),n(356),n(353),n(352),n(351),n(355)},function(t,e,n){"use strict";function r(t){return t.x}function i(t){return t.y}e.a=r,e.b=i;n(24),n(38),n(73),Math.PI,Math.sqrt(5)},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var r,i=n(104);e.a=function(t,e){var o=n.i(i.a)(t,e);if(!o)return t+"";var a=o[0],u=o[1],s=u-(r=3*Math.max(-8,Math.min(8,Math.floor(u/3))))+1,c=a.length;return s===c?a:s>c?a+new Array(s-c+1).join("0"):s>0?a.slice(0,s)+"."+a.slice(s):"0."+new Array(1-s).join("0")+n.i(i.a)(t,Math.max(0,e+s-1))[0]}},function(t,e,n){"use strict";function r(t){return new i(t)}function i(t){if(!(e=a.exec(t)))throw new Error("invalid format: "+t);var e,n=e[1]||" ",r=e[2]||">",i=e[3]||"-",u=e[4]||"",s=!!e[5],c=e[6]&&+e[6],l=!!e[7],f=e[8]&&+e[8].slice(1),h=e[9]||"";"n"===h?(l=!0,h="g"):o.a[h]||(h=""),(s||"0"===n&&"="===r)&&(s=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=i,this.symbol=u,this.zero=s,this.width=c,this.comma=l,this.precision=f,this.type=h}e.a=r;var o=n(190),a=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;r.prototype=i.prototype,i.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type}},function(t,e,n){"use strict";var r=n(369),i=n(188),o=n(372);e.a={"":r.a,"%":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 n.i(o.a)(100*t,e)},r:o.a,s:i.a,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}}},function(t,e,n){"use strict";var r=n(62),i=n(370),o=n(371),a=n(189),u=n(190),s=n(188),c=n(373),l=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];e.a=function(t){function e(t){function e(t){var e,n,a,u=x,c=w;if("c"===b)c=S(t)+c,t="";else{t=+t;var d=t<0;if(t=S(Math.abs(t),m),d&&0==+t&&(d=!1),u=(d?"("===o?o:"-":"-"===o||"("===o?"":o)+u,c=c+("s"===b?l[8+s.b/3]:"")+(d&&"("===o?")":""),M)for(e=-1,n=t.length;++e(a=t.charCodeAt(e))||a>57){c=(46===a?p+t.slice(e+1):t.slice(e))+c,t=t.slice(0,e);break}}g&&!f&&(t=h(t,1/0));var _=u.length+t.length+c.length,E=_>1)+u+t+c+E.slice(_);break;default:t=E+u+t+c}return v(t)}t=n.i(a.a)(t);var r=t.fill,i=t.align,o=t.sign,c=t.symbol,f=t.zero,y=t.width,g=t.comma,m=t.precision,b=t.type,x="$"===c?d[0]:"#"===c&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===c?d[1]:/[%p]/.test(b)?_:"",S=u.a[b],M=!b||/[defgprs%]/.test(b);return m=null==m?b?6:12:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),e.toString=function(){return t+""},e}function f(t,i){var o=e((t=n.i(a.a)(t),t.type="f",t)),u=3*Math.max(-8,Math.min(8,Math.floor(n.i(r.a)(i)/3))),s=Math.pow(10,-u),c=l[8+u/3];return function(t){return o(s*t)+c}}var h=t.grouping&&t.thousands?n.i(i.a)(t.grouping,t.thousands):c.a,d=t.currency,p=t.decimal,v=t.numerals?n.i(o.a)(t.numerals):c.a,_=t.percent||"%";return{format:e,formatPrefix:f}}},function(t,e,n){"use strict";function r(){y.point=o}function i(){a(u,s)}function o(t,e){y.point=a,u=t,s=e,t*=d.g,e*=d.g,c=t,l=n.i(d.c)(e=e/2+d.q),f=n.i(d.d)(e)}function a(t,e){t*=d.g,e*=d.g,e=e/2+d.q;var r=t-c,i=r>=0?1:-1,o=i*r,a=n.i(d.c)(e),u=n.i(d.d)(e),s=f*u,h=l*a+s*n.i(d.c)(o),p=s*i*n.i(d.d)(o);v.add(n.i(d.e)(p,h)),c=t,l=a,f=u}n.d(e,"b",function(){return v}),n.d(e,"a",function(){return y});var u,s,c,l,f,h=n(39),d=n(0),p=n(25),v=(n(29),n.i(h.a)()),_=n.i(h.a)(),y={point:p.a,lineStart:p.a,lineEnd:p.a,polygonStart:function(){v.reset(),y.lineStart=r,y.lineEnd=i},polygonEnd:function(){var t=+v;_.add(t<0?d.b+t:t),this.lineStart=this.lineEnd=this.point=p.a},sphere:function(){_.add(d.b)}}},function(t,e,n){"use strict";function r(t,e,r,u,s,c){if(r){var l=n.i(a.c)(e),f=n.i(a.d)(e),h=u*r;null==s?(s=e+u*a.b,c=e-h/2):(s=i(l,s),c=i(l,c),(u>0?sc)&&(s+=u*a.b));for(var d,p=s;u>0?p>c:p1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}},function(t,e,n){"use strict";function r(t){return t.length>1}function i(t,e){return((t=t.x)[0]<0?t[1]-u.k-u.p:u.k-t[1])-((e=e.x)[0]<0?e[1]-u.k-u.p:u.k-e[1])}var o=n(194),a=n(196),u=n(0),s=n(201),c=n(4);e.a=function(t,e,u,l){return function(f,h){function d(e,n){var r=f(e,n);t(e=r[0],n=r[1])&&h.point(e,n)}function p(t,e){var n=f(t,e);S.point(n[0],n[1])}function v(){A.point=p,S.lineStart()}function _(){A.point=d,S.lineEnd()}function y(t,e){w.push([t,e]);var n=f(t,e);C.point(n[0],n[1])}function g(){C.lineStart(),w=[]}function m(){y(w[0][0],w[0][1]),C.lineEnd();var t,e,n,i,o=C.clean(),a=E.result(),u=a.length;if(w.pop(),b.push(w),w=null,u)if(1&o){if(n=a[0],(e=n.length-1)>0){for(O||(h.polygonStart(),O=!0),h.lineStart(),t=0;t1&&2&o&&a.push(a.pop().concat(a.shift())),x.push(a.filter(r))}var b,x,w,S=e(h),M=f.invert(l[0],l[1]),E=n.i(o.a)(),C=e(E),O=!1,A={point:d,lineStart:v,lineEnd:_,polygonStart:function(){A.point=y,A.lineStart=g,A.lineEnd=m,x=[],b=[]},polygonEnd:function(){A.point=d,A.lineStart=v,A.lineEnd=_,x=n.i(c.i)(x);var t=n.i(s.a)(b,M);x.length?(O||(h.polygonStart(),O=!0),n.i(a.a)(x,i,t,u,h)):t&&(O||(h.polygonStart(),O=!0),h.lineStart(),u(null,null,1,h),h.lineEnd()),O&&(h.polygonEnd(),O=!1),x=b=null},sphere:function(){h.polygonStart(),h.lineStart(),u(null,null,1,h),h.lineEnd(),h.polygonEnd()}};return A}}},function(t,e,n){"use strict";function r(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function i(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0;--c)s.point((p=d[c])[0],p[1]);else u(_.x,_.p.x,-1,s);_=_.p}_=_.o,d=_.z,y=!y}while(!_.v);s.lineEnd()}}}},function(t,e,n){"use strict";e.a=function(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}},function(t,e,n){"use strict";function r(){v.point=o,v.lineEnd=i}function i(){v.point=v.lineEnd=h.a}function o(t,e){t*=f.g,e*=f.g,u=t,s=n.i(f.d)(e),c=n.i(f.c)(e),v.point=a}function a(t,e){t*=f.g,e*=f.g;var r=n.i(f.d)(e),i=n.i(f.c)(e),o=n.i(f.o)(t-u),a=n.i(f.c)(o),l=n.i(f.d)(o),h=i*l,d=c*r-s*i*a,v=s*r+c*i*a;p.add(n.i(f.e)(n.i(f.n)(h*h+d*d),v)),u=t,s=r,c=i}var u,s,c,l=n(39),f=n(0),h=n(25),d=n(29),p=n.i(l.a)(),v={sphere:h.a,point:h.a,lineStart:r,lineEnd:h.a,polygonStart:h.a,polygonEnd:h.a};e.a=function(t){return p.reset(),n.i(d.a)(t,v),+p}},function(t,e,n){"use strict";function r(t,e){tu&&(u=t),es&&(s=e)}var i=n(25),o=1/0,a=o,u=-o,s=u,c={point:r,lineStart:i.a,lineEnd:i.a,polygonStart:i.a,polygonEnd:i.a,result:function(){var t=[[o,a],[u,s]];return u=s=-(a=o=1/0),t}};e.a=c},function(t,e,n){"use strict";var r=n(0);e.a=function(t,e){return n.i(r.o)(t[0]-e[0])=0?1:-1,A=O*C,k=A>o.a,N=g*M;if(a.add(n.i(o.e)(N*O*n.i(o.d)(A),m*E+N*n.i(o.c)(A))),c+=k?C+O*o.b:C,k^_>=r^w>=r){var T=n.i(i.b)(n.i(i.a)(v),n.i(i.a)(x));n.i(i.g)(T);var j=n.i(i.b)(s,T);n.i(i.g)(j);var D=(k^C>=0?-1:1)*n.i(o.f)(j[2]);(u>D||u===D&&(T[0]||T[1]))&&(l+=k^C>=0?1:-1)}}return(c<-o.p||cn*n+r*r}function i(t,e){var n,s,c,l=null,f=t.head;switch(e.length){case 1:n=o(e[0]);break;case 2:n=a(e[0],e[1]);break;case 3:n=u(e[0],e[1],e[2])}for(;f;)c=f._,s=f.next,n&&r(n,c)?l=f:(l?(t.tail=l,l.next=null):t.head=t.tail=null,e.push(c),n=i(t,e),e.pop(),t.head?(f.next=t.head,t.head=f):(f.next=null,t.head=t.tail=f),l=t.tail,l.next=s),f=s;return t.tail=l,n}function o(t){return{x:t.x,y:t.y,r:t.r}}function a(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,u=e.r,s=o-n,c=a-r,l=u-i,f=Math.sqrt(s*s+c*c);return{x:(n+o+s/f*l)/2,y:(r+a+c/f*l)/2,r:(f+i+u)/2}}function u(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,u=e.y,s=e.r,c=n.x,l=n.y,f=n.r,h=2*(r-a),d=2*(i-u),p=2*(s-o),v=r*r+i*i-o*o-a*a-u*u+s*s,_=2*(r-c),y=2*(i-l),g=2*(f-o),m=r*r+i*i-o*o-c*c-l*l+f*f,b=_*d-h*y,x=(d*m-y*v)/b-r,w=(y*p-d*g)/b,S=(_*v-h*m)/b-i,M=(h*g-_*p)/b,E=w*w+M*M-1,C=2*(x*w+S*M+o),O=x*x+S*S-o*o,A=(-C-Math.sqrt(C*C-4*E*O))/(2*E);return{x:x+w*A+r,y:S+M*A+i,r:A}}var s=n(419);e.a=function(t){return i(n.i(s.a)(t),[])}},function(t,e,n){"use strict";function r(t,e,n){var r=t.x,i=t.y,o=e.r+n.r,a=t.r+n.r,u=e.x-r,s=e.y-i,c=u*u+s*s;if(c){var l=.5+((a*=a)-(o*=o))/(2*c),f=Math.sqrt(Math.max(0,2*o*(a+c)-(a-=c)*a-o*o))/(2*c);n.x=r+l*u+f*s,n.y=i+l*s-f*u}else n.x=r+a,n.y=i}function i(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return i*i-1e-6>n*n+r*r}function o(t,e,n){var r=t._,i=t.next._,o=r.r+i.r,a=(r.x*i.r+i.x*r.r)/o-e,u=(r.y*i.r+i.y*r.r)/o-n;return a*a+u*u}function a(t){this._=t,this.next=null,this.previous=null}function u(t){if(!(l=t.length))return 0;var e,u,c,l;if(e=t[0],e.x=0,e.y=0,!(l>1))return e.r;if(u=t[1],e.x=-u.r,u.x=e.r,u.y=0,!(l>2))return e.r+u.r;r(u,e,c=t[2]);var f,h,d,p,v,_,y,g=e.r*e.r,m=u.r*u.r,b=c.r*c.r,x=g+m+b,w=g*e.x+m*u.x+b*c.x,S=g*e.y+m*u.y+b*c.y;e=new a(e),u=new a(u),c=new a(c),e.next=c.previous=u,u.next=e.previous=c,c.next=u.previous=e;t:for(d=3;df&&(l=e.slice(f,l),d[h]?d[h]+=l:d[++h]=l),(s=s[0])===(c=c[0])?d[h]?d[h]+=c:d[++h]=c:(d[++h]=null,p.push({i:h,x:n.i(o.a)(s,c)})),f=u.lastIndex;return f1);return t+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(r.a)},function(t,e,n){"use strict";e.a=function(t,e){t=t.slice();var n,r=0,i=t.length-1,o=t[r],a=t[i];return a1?this.each((null==e?r:"function"==typeof e?o:i)(t,e,null==n?"":n)):a(this.node(),t)}},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";var r=n(30),i=n(32),o=n(70),a=n(128),u=n(130);e.a=function(){function t(t){var e,i,o,a,u,_=t.length,y=!1,g=new Array(_),m=new Array(_);for(null==d&&(v=p(u=n.i(r.a)())),e=0;e<=_;++e){if(!(e<_&&h(a=t[e],e,t))===y)if(y=!y)i=e,v.areaStart(),v.lineStart();else{for(v.lineEnd(),v.lineStart(),o=e-1;o>=i;--o)v.point(g[o],m[o]);v.lineEnd(),v.areaEnd()}y&&(g[e]=+s(a,e,t),m[e]=+l(a,e,t),v.point(c?+c(a,e,t):g[e],f?+f(a,e,t):m[e]))}if(u)return v=null,u+""||null}function e(){return n.i(a.a)().defined(h).curve(p).context(d)}var s=u.a,c=null,l=n.i(i.a)(0),f=u.b,h=n.i(i.a)(!0),d=null,p=o.a,v=null;return t.x=function(e){return arguments.length?(s="function"==typeof e?e:n.i(i.a)(+e),c=null,t):s},t.x0=function(e){return arguments.length?(s="function"==typeof e?e:n.i(i.a)(+e),t):s},t.x1=function(e){return arguments.length?(c=null==e?null:"function"==typeof e?e:n.i(i.a)(+e),t):c},t.y=function(e){return arguments.length?(l="function"==typeof e?e:n.i(i.a)(+e),f=null,t):l},t.y0=function(e){return arguments.length?(l="function"==typeof e?e:n.i(i.a)(+e),t):l},t.y1=function(e){return arguments.length?(f=null==e?null:"function"==typeof e?e:n.i(i.a)(+e),t):f},t.lineX0=t.lineY0=function(){return e().x(s).y(l)},t.lineY1=function(){return e().x(s).y(f)},t.lineX1=function(){return e().x(c).y(l)},t.defined=function(e){return arguments.length?(h="function"==typeof e?e:n.i(i.a)(!!e),t):h},t.curve=function(e){return arguments.length?(p=e,null!=d&&(v=p(d)),t):p},t.context=function(e){return arguments.length?(null==e?d=v=null:v=p(d=e),t):d},t}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.prototype.slice},function(t,e,n){"use strict";function r(t,e){this._context=t,this._k=(1-e)/6}e.a=r;var i=n(71),o=n(69);r.prototype={areaStart:i.a,areaEnd:i.a,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:n.i(o.b)(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}};!function t(e){function n(t){return new r(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){"use strict";function r(t,e){this._context=t,this._k=(1-e)/6}e.a=r;var i=n(69);r.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:n.i(i.b)(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}};!function t(e){function n(t){return new r(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){"use strict";function r(t){this._curve=t}function i(t){function e(e){return new r(t(e))}return e._curve=t,e}n.d(e,"b",function(){return a}),e.a=i;var o=n(70),a=i(o.a);r.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))}}},function(t,e,n){"use strict";function r(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(n.i(i.a)(t)):e()._curve},t}e.a=r;var i=n(230);n(128)},function(t,e,n){"use strict";var r=n(54);e.a={draw:function(t,e){var n=Math.sqrt(e/r.b);t.moveTo(n,0),t.arc(0,0,n,0,r.c)}}},function(t,e,n){"use strict";e.a={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()}}},function(t,e,n){"use strict";var r=Math.sqrt(1/3),i=2*r;e.a={draw:function(t,e){var n=Math.sqrt(e/i),o=n*r;t.moveTo(0,-n),t.lineTo(o,0),t.lineTo(0,n),t.lineTo(-o,0),t.closePath()}}},function(t,e,n){"use strict";e.a={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}}},function(t,e,n){"use strict";var r=n(54),i=Math.sin(r.b/10)/Math.sin(7*r.b/10),o=Math.sin(r.c/10)*i,a=-Math.cos(r.c/10)*i;e.a={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),i=o*n,u=a*n;t.moveTo(0,-n),t.lineTo(i,u);for(var s=1;s<5;++s){var c=r.c*s/5,l=Math.cos(c),f=Math.sin(c);t.lineTo(f*n,-l*n),t.lineTo(l*i-f*u,f*i+l*u)}t.closePath()}}},function(t,e,n){"use strict";var r=Math.sqrt(3);e.a={draw:function(t,e){var n=-Math.sqrt(e/(3*r));t.moveTo(0,2*n),t.lineTo(-r*n,-n),t.lineTo(r*n,-n),t.closePath()}}},function(t,e,n){"use strict";var r=-.5,i=Math.sqrt(3)/2,o=1/Math.sqrt(12),a=3*(o/2+1);e.a={draw:function(t,e){var n=Math.sqrt(e/a),u=n/2,s=n*o,c=u,l=n*o+n,f=-c,h=l;t.moveTo(u,s),t.lineTo(c,l),t.lineTo(f,h),t.lineTo(r*u-i*s,i*u+r*s),t.lineTo(r*c-i*l,i*c+r*l),t.lineTo(r*f-i*h,i*f+r*h),t.lineTo(r*u+i*s,r*s-i*u),t.lineTo(r*c+i*l,r*l-i*c),t.lineTo(r*f+i*h,r*h-i*f),t.closePath()}}},function(t,e,n){"use strict";function r(t){return t.toISOString()}n.d(e,"a",function(){return o});var i=n(132),o="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||n.i(i.b)(o)},function(t,e,n){"use strict";function r(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function i(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function o(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function a(t){function e(t,e){return function(n){var r,i,o,a=[],u=-1,s=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++u=s)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=Rt[i in et?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function u(t,e,n){var r=Et.exec(e.slice(n));return r?(t.p=Ct[r[0].toLowerCase()],n+r[0].length):-1}function s(t,e,n){var r=kt.exec(e.slice(n));return r?(t.w=Nt[r[0].toLowerCase()],n+r[0].length):-1}function tt(t,e,n){var r=Ot.exec(e.slice(n));return r?(t.w=At[r[0].toLowerCase()],n+r[0].length):-1}function nt(t,e,n){var r=Dt.exec(e.slice(n));return r?(t.m=It[r[0].toLowerCase()],n+r[0].length):-1}function rt(t,e,n){var r=Tt.exec(e.slice(n));return r?(t.m=jt[r[0].toLowerCase()],n+r[0].length):-1}function it(t,e,n){return a(t,yt,e,n)}function ot(t,e,n){return a(t,gt,e,n)}function at(t,e,n){return a(t,mt,e,n)}function ut(t){return wt[t.getDay()]}function st(t){return xt[t.getDay()]}function ct(t){return Mt[t.getMonth()]}function lt(t){return St[t.getMonth()]}function ft(t){return bt[+(t.getHours()>=12)]}function ht(t){return wt[t.getUTCDay()]}function dt(t){return xt[t.getUTCDay()]}function pt(t){return Mt[t.getUTCMonth()]}function vt(t){return St[t.getUTCMonth()]}function _t(t){return bt[+(t.getUTCHours()>=12)]}var yt=t.dateTime,gt=t.date,mt=t.time,bt=t.periods,xt=t.days,wt=t.shortDays,St=t.months,Mt=t.shortMonths,Et=c(bt),Ct=l(bt),Ot=c(xt),At=l(xt),kt=c(wt),Nt=l(wt),Tt=c(St),jt=l(St),Dt=c(Mt),It=l(Mt),Lt={a:ut,A:st,b:ct,B:lt,c:null,d:E,e:E,H:C,I:O,j:A,L:k,m:N,M:T,p:ft,S:j,U:D,w:I,W:L,x:null,X:null,y:P,Y:R,Z:z,"%":K},Pt={a:ht,A:dt,b:pt,B:vt,c:null,d:$,e:$,H:F,I:U,j:V,L:Y,m:q,M:H,p:_t,S:B,U:W,w:X,W:G,x:null,X:null,y:Q,Y:Z,Z:J,"%":K},Rt={a:s,A:tt,b:nt,B:rt,c:it,d:g,e:g,H:b,I:b,j:m,L:S,m:y,M:x,p:u,S:w,U:h,w:f,W:d,x:ot,X:at,y:v,Y:p,Z:_,"%":M};return Lt.x=e(gt,Lt),Lt.X=e(mt,Lt),Lt.c=e(yt,Lt),Pt.x=e(gt,Pt),Pt.X=e(mt,Pt),Pt.c=e(yt,Pt),{format:function(t){var n=e(t+="",Lt);return n.toString=function(){return t},n},parse:function(t){var e=n(t+="",r);return e.toString=function(){return t},e},utcFormat:function(t){var n=e(t+="",Pt);return n.toString=function(){return t},n},utcParse:function(t){var e=n(t,i);return e.toString=function(){return t},e}}}function u(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 _(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 y(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function g(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function m(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function b(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function x(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function w(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function S(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function M(t,e,n){var r=rt.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function E(t,e){return u(t.getDate(),e,2)}function C(t,e){return u(t.getHours(),e,2)}function O(t,e){return u(t.getHours()%12||12,e,2)}function A(t,e){return u(1+tt.a.count(n.i(tt.b)(t),t),e,3)}function k(t,e){return u(t.getMilliseconds(),e,3)}function N(t,e){return u(t.getMonth()+1,e,2)}function T(t,e){return u(t.getMinutes(),e,2)}function j(t,e){return u(t.getSeconds(),e,2)}function D(t,e){return u(tt.c.count(n.i(tt.b)(t),t),e,2)}function I(t){return t.getDay()}function L(t,e){return u(tt.d.count(n.i(tt.b)(t),t),e,2)}function P(t,e){return u(t.getFullYear()%100,e,2)}function R(t,e){return u(t.getFullYear()%1e4,e,4)}function z(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+u(e/60|0,"0",2)+u(e%60,"0",2)}function $(t,e){return u(t.getUTCDate(),e,2)}function F(t,e){return u(t.getUTCHours(),e,2)}function U(t,e){return u(t.getUTCHours()%12||12,e,2)}function V(t,e){return u(1+tt.e.count(n.i(tt.f)(t),t),e,3)}function Y(t,e){return u(t.getUTCMilliseconds(),e,3)}function q(t,e){return u(t.getUTCMonth()+1,e,2)}function H(t,e){return u(t.getUTCMinutes(),e,2)}function B(t,e){return u(t.getUTCSeconds(),e,2)}function W(t,e){return u(tt.g.count(n.i(tt.f)(t),t),e,2)}function X(t){return t.getUTCDay()}function G(t,e){return u(tt.h.count(n.i(tt.f)(t),t),e,2)}function Q(t,e){return u(t.getUTCFullYear()%100,e,2)}function Z(t,e){return u(t.getUTCFullYear()%1e4,e,4)}function J(){return"+0000"}function K(){return"%"}e.a=a;var tt=n(72),et={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,rt=/^%/,it=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g},function(t,e,n){"use strict";var r=n(10);e.a=function(t,e){var n,i,o,a=t.__transition,u=!0;if(a){e=null==e?null:e+"";for(o in a)(n=a[o]).name===e?(i=n.state>r.a&&n.statel.b||Math.abs(b-y)>l.b)&&(d.splice(h,0,l.d.push(n.i(c.b)(f,g,Math.abs(m-t)l.b?[t,Math.abs(_-t)l.b?[Math.abs(y-i)l.b?[r,Math.abs(_-r)l.b?[Math.abs(y-e)=-s.f)){var y=h*h+d*d,g=p*p+v*v,m=(v*y-d*g)/_,b=(h*g-p*y)/_,x=c.pop()||new r;x.arc=t,x.site=o,x.x=m+l,x.y=(x.cy=b+f)+Math.sqrt(m*m+b*b),t.circle=x;for(var w=null,S=s.g._;S;)if(x.y0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));if(!n._.root||!n._.stateManager||!n._.associationFn)throw new Error("Must specify root, stateManager, and associationFn");return n._.stateManager.subscribe(function(t){return n._handleStateChange(t)}),n._associations=n._.associationFn(n._.stateManager.getState()),n._columnXIndices=[],n._columnYIndices=[],n._showAllColumns=!1,n._grid=null,n._gridCells=[],n._columnXLabels=[],n._columnYLabels=[],n._selectionState=M.NONE,n._selectionStartX=null,n._selectionStartY=null,n._selectionRangeRow=[],n._selectionRangeCol=[],n}return u(e,t),x(e,[{key:"defaults",value:function(){return h()(w(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"defaults",this).call(this),{gridWidth:500,labelWidth:null,labelPaddingPx:5,minPreferredLabelFontSize:12,cellColorFn:c.h,noValueCellColor:"#ddd",normalizeFn:function(t){return t},axisLabelFn:function(t){return t},cellSelectedFn:function(t){var e=t.xColumn,n=t.yColumn,r=t.selectedSet;return r.has(e)&&r.has(n)}})}},{key:"getState",value:function(){return this._.stateManager.getState()}},{key:"getStateProperty",value:function(t){return this._.stateManager.getStateProperty(t)}},{key:"setState",value:function(t){this._.stateManager.set(t)}},{key:"showColumnsAtIndices",value:function(t,e){this._columnXIndices=t,this._columnYIndices=e,this._showAllColumns=!1,this.triggerRender()}},{key:"showAllColumns",value:function(){this._showAllColumns||(this._showAllColumns=!0,this.triggerRender())}},{key:"setGridWidth",value:function(t){this._.gridWidth!==t&&(this._.gridWidth=t,this.triggerRender())}},{key:"setLabelWidth",value:function(t){this._.labelWidth!==t&&(this._.labelWidth=t,this.triggerRender())}},{key:"updateAssociations",value:function(){this._associations=this._.associationFn(this.getState()),this.triggerRender()}},{key:"setNormalizeFunction",value:function(t){this._.normalizeFn=t,this.triggerRender()}},{key:"_handleStateChange",value:function(t){var e=t.state,n=t.changed;if(0===p()(n,["focusColumns","focusQuery","focusRows"]).length)return void this._updateSelectedAndFocusedColumns(e);this._associations=this._.associationFn(e),this.triggerRender()}},{key:"_canDrawGrid",value:function(){if(!this._associations||0===this._associations.target.length)return!1;if(this._showAllColumns)return!0;if(!this._columnXIndices||0===this._columnXIndices.length||!this._columnYIndices||0===this._columnYIndices.length)return!1;var t=this._associations.target.length-1,e=!0,n=!1,r=void 0;try{for(var i,o=this._columnXIndices[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var a=i.value;if(a<0||a>t)return!1}}catch(t){n=!0,r=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw r}}var u=!0,s=!1,c=void 0;try{for(var l,f=this._columnYIndices[Symbol.iterator]();!(u=(l=f.next()).done);u=!0){var h=l.value;if(h<0||h>t)return!1}}catch(t){s=!0,c=t}finally{try{!u&&f.return&&f.return()}finally{if(s)throw c}}return!0}},{key:"_numberOfXAxisCells",value:function(){return this._associations&&0!==this._associations.target.length?this._showAllColumns?this._associations.target.length:this._columnXIndices.length:0}},{key:"_numberOfYAxisCells",value:function(){return this._associations&&0!==this._associations.target.length?this._showAllColumns?this._associations.target.length:this._columnYIndices.length:0}},{key:"_gridPixelsPerCell",value:function(){return Math.floor(this._.gridWidth/this._numberOfXAxisCells())}},{key:"_cellBackground",value:function(t){return null==t?this._.noValueCellColor:this._.cellColorFn(this._.normalizeFn(t))}},{key:"_columnNameAtXIndex",value:function(t){var e=this._showAllColumns?t:this._columnXIndices[t];return this._associations.target[e]}},{key:"_columnNameAtYIndex",value:function(t){var e=this._showAllColumns?t:this._columnYIndices[t];return this._associations.target[e]}},{key:"_associationValueAtCoordinates",value:function(t,e){return this._associations.between(this._columnNameAtXIndex(t),this._columnNameAtYIndex(e))}},{key:"_toggleSelectedColumn",value:function(t){var e=this.getStateProperty(l.a.SELECTED_COLUMN_NAMES),n=(e||[]).slice(),r=n.indexOf(t);-1===r?n.push(t):n.splice(r,1),this.setState(i({},l.a.SELECTED_COLUMN_NAMES,n))}},{key:"_handleXLabelClick",value:function(t){this._toggleSelectedColumn(this._columnNameAtXIndex(t))}},{key:"_handleXLabelMouseOver",value:function(t){this.setState({focusColumns:[this._columnNameAtXIndex(t)]})}},{key:"_handleYLabelClick",value:function(t){this._toggleSelectedColumn(this._columnNameAtYIndex(t))}},{key:"_handleYLabelMouseOver",value:function(t){this.setState({focusColumns:[this._columnNameAtYIndex(t)]})}},{key:"_gridEventCoords",value:function(t){var e=this._grid.querySelector(".grid-cell"),n=e.getBoundingClientRect(),r=t.clientX-n.left,i=t.clientY-n.top,o=this._gridPixelsPerCell(),a=Math.floor(r/o),u=Math.floor(i/o);return a>=0&&a=0&&u=0&&i.indexOf(r)>=0;this._selectionState=o?M.DESELECTING:M.SELECTING,this._drawGrid()}}},{key:"_handleGridMouseUp",value:function(){if(this._selectionState!==M.NONE){for(var t=new b.a,e=this._selectionRangeX[0];e<=this._selectionRangeX[1];e++)t.add(this._columnNameAtXIndex(e));for(var n=this._selectionRangeY[0];n<=this._selectionRangeY[1];n++)t.add(this._columnNameAtYIndex(n));var o=this.getStateProperty(l.a.SELECTED_COLUMN_NAMES)||[],a=this._selectionState===M.SELECTING?g()(o,[].concat(r(t))):p()(o,[].concat(r(t)));this._selectionState=M.NONE,this.setState(i({},l.a.SELECTED_COLUMN_NAMES,a))}}},{key:"_handleGridMouseMove",value:function(t){var e=this._gridEventCoords(t);if(e)if(this._selectionState!==M.NONE)this._selectionRangeX=A(this._selectionStartX,e.x),this._selectionRangeY=A(this._selectionStartY,e.y),this._drawGrid();else{var n=this._columnNameAtXIndex(e.x),r=this._columnNameAtYIndex(e.y),o=n===r?[n]:[n,r],a=this.getStateProperty(l.a.FOCUSED_COLUMN_NAMES)||[];_()(a,o)||this.setState(i({},l.a.FOCUSED_COLUMN_NAMES,o))}}},{key:"_handleGridMouseLeave",value:function(){this._selectionState!==M.NONE&&(this._selectionState=M.NONE,this._drawGrid())}},{key:"_createDomElementsIfNeeded",value:function(){var t=this;if(!this._grid){var e=document.createElement("div");e.classList.add("zoomed-grid"),e.addEventListener("mousedown",function(e){return t._handleGridMouseDown(e)}),e.addEventListener("mouseup",function(){return t._handleGridMouseUp()}),e.addEventListener("mousemove",function(e){return t._handleGridMouseMove(e)}),e.addEventListener("mouseleave",function(){return t._handleGridMouseLeave()}),this.getRoot().appendChild(e),this._grid=e,this._gridCells=null}var n=this._numberOfXAxisCells(),r=this._numberOfYAxisCells();if(!this._gridCells||this._gridCells.length!==r||this._gridCells[0].length!==n){this._grid.innerHTML="",this._gridCells=[],this._columnXLabels=[],this._columnYLabels=[];for(var i=0;i=0;E(u,"focused",c),c&&(i=a)}for(var f=0;f=0;E(h,"focused",p),p&&(o=f)}var v=!0,_=!1,y=void 0;try{for(var g,m=this._grid.querySelectorAll(".grid-cell.focused")[Symbol.iterator]();!(v=(g=m.next()).done);v=!0){g.value.classList.remove("focused")}}catch(t){_=!0,y=t}finally{try{!v&&m.return&&m.return()}finally{if(_)throw y}}n.length<=2&&null!=i&&null!=o&&this._gridCells[o][i].classList.add("focused")}},{key:"_drawGrid",value:function(){this._createDomElementsIfNeeded();for(var t=this.getState(),e=[].concat(r(t[l.a.SELECTED_COLUMN_NAMES]||[])),n=new b.a(e),i=this._gridPixelsPerCell(),o=i+"px",a=this._gridCells,u=0;u=e[0]&&t<=e[1]};e.a=S},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=n(6),s=n(783),c=n.n(s),l=n(2),f=n.n(l),h=n(60),d=n.n(h),p=n(17),v=n.n(p),_=n(76),y=n(75),g=n(33),m=n(137),b=n(11),x=n(58);n(816);var w=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),S=function(){function t(t,e){for(var n=0;n=0&&o=t.x0&&r0&&void 0!==arguments[0]?arguments[0]:{};r(this,e);var o=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o._brush=n.i(y.brush)().handleSize(1).on("start",function(){return o.handleBrush("start")}).on("brush",function(){return o.handleBrush("brush")}).on("end",function(){return o.handleBrush("end")}),o}return o(e,t),b(e,[{key:"defaults",value:function(){var t=this,r=function(e){var n=t._,r=n.selectedRows,i=n.simulatedRows;return r.has(e)?v.a:i.has(e)?v.b:v.c};return l()(x(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"defaults",this).call(this),{classNames:["vizgpm-scatter-plot-chart"],selectedRows:new s.a,simulatedRows:new s.a,marginFraction:{top:.05,right:.05,bottom:.2,left:.2},maxMargin:{top:20,right:20,bottom:80,left:80},pointRadiusFn:function(t){return t._calculatePointRadius()},size:200,axisArea:{x:d.a.defaultForXAxis(),y:d.a.defaultForYAxis()},scales:{x:n.i(y.scaleLinear)(),y:n.i(y.scaleLinear)()},brushArea:new p.a({onSelect:function(e){return t.handleBrushSelect(e)},onFocus:function(e){return t.handleBrushFocus(e)}}),brushAreaPadding:1,onSelect:function(e){var n=e.rows;return t.set({selectedRows:n})},onFocus:function(){},colorByFn:r})}},{key:"setRoot",value:function(t){x(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setRoot",this).call(this,t);var r=document.createElement("canvas");return this._.context=r.getContext("2d"),this._.canvas=n.i(y.select)(t).append(function(){return r}),this._.svg=n.i(y.select)(t).append("svg"),this._.chartArea=this._.svg.append("g").attr("class","chart-area"),this._.axisArea.x.setRoot(this._.chartArea.append("g").node()),this._.axisArea.y.setRoot(this._.chartArea.append("g").node()),this._.brushArea.setRoot(this._.chartArea.append("g").node()),this}},{key:"clearSelection",value:function(){this._.selectedRows=new s.a,this._.brushArea.clear(),this.triggerRender()}},{key:"handleBrushSelect",value:function(t){var e=t.type,n=t.query,r="click"===e?10:0,i=this.brushQuery(n,r),o=i.query,a=i.rows;this._.onSelect({target:this,type:e,query:o,rows:a})}},{key:"handleBrushFocus",value:function(t){var e=t.type,n=t.query,r=n?this.brushQuery(n,10):{},i=r.query,o=r.rows;this._.onFocus({target:this,type:e,query:i,rows:o})}},{key:"brushQuery",value:function(t){var e=t.x,n=t.y,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this._,o=m(i.aesthetics,2),a=o[0],u=a.name,c=a.value,l=o[1],f=l.name,h=l.value,d=i.rows,p=i.scales,v=p.x,_=p.y,y="$eq"in e?[e.$eq,e.$eq]:[e.$gte,e.$lte],g="$eq"in n?[n.$eq,n.$eq]:[n.$gte,n.$lte],b={},x=new s.a,w=r,S=!0,M=!1,E=void 0;try{for(var C,O=d[Symbol.iterator]();!(S=(C=O.next()).done);S=!0){var A=C.value,k=c(A),N=h(A);if(null!=k&&null!=N){var T=v(k),j=_(N),D=Math.max(y[0]-T,T-y[1],0),I=Math.max(g[0]-j,j-g[1],0),L=Math.ceil(Math.max(D,I));L3)return!1;var n=m(t,3),r=n[0],i=n[1],o=n[2],a=Array.from(g.a),u=Array.from(g.b),s=h()(a,r)[0],c=h()(a,i)[0],l={x:s,y:c},f=o?h()(u,o)[0]:void 0;return o&&f&&(l.color=f),s&&c?l:void 0},e.a=w},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));if(!n._.root||!n._.stateManager)throw new Error("Must specify root and stateManager");return n._controlDiv=null,n._chartDiv=null,n._charts=[],n._showDifferenceFromExpected=!1,n._forceFullUpdate=!1,n._axis=b()(n._axis.bind(n)),n.getChartForIntersection=b()(n.getChartForIntersection.bind(n),function(t,e){return t+","+e}),n._.stateManager.subscribe(function(t){return n.handleStateChange(t)}),n._resizeHandler=function(){return n.triggerRender()},window.addEventListener("resize",n._resizeHandler),n._lastChartSize=null,n}return u(e,t),O(e,[{key:"defaults",value:function(){var t=new c.a;return t.add(k),g()(A(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"defaults",this).call(this),{registry:t,classNames:["vizgpm-pair-plot"],stateManager:new v.a,axisLabelFn:function(t){return t},axisDescriptionFn:function(){return""},titleFn:function(t){return t},minChartSize:200,maxChartSize:800,preferredMaxTotalChartSize:1200,containerHeightFn:function(){return window.innerHeight}})}},{key:"getState",value:function(){return this._.stateManager.getState()}},{key:"getStateProperty",value:function(t){return this._.stateManager.getStateProperty(t)}},{key:"setState",value:function(t){this._.stateManager.set(t)}},{key:"handleStateChange",value:function(t){var e=t.changed,n=t.state;g()(this._,n),-1!==e.indexOf(_.a.SCHEMA)&&(this._axis.cache.clear(),this.getChartForIntersection.cache.clear(),this._forceFullUpdate=!0),this.triggerRender(),this.flushRender()}},{key:"refreshCharts",value:function(){var t=this,e=this.getState();(this._charts||[]).forEach(function(n){var r=n===t._.selectingComponent?w()(e,["selectedRows"]):e;n.set(r),n.triggerRender(),n.flushRender()})}},{key:"setAdditionalCharts",value:function(t){this._.registry.add(t)}},{key:"_axis",value:function(t){return this.getState().getColumn(t)}},{key:"clearSelection",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.ignore;this.setState((t={},i(t,_.a.SELECTED_ROWS,new M.a),i(t,_.a.FOCUS_QUERY,null),i(t,v.a.FOCUSED_ROWS,new M.a),t)),this._charts.forEach(function(t){t.clearSelection&&t!==n&&t.clearSelection()})}},{key:"_handleChartSelection",value:function(t){var e=t.target,n=t.type,r=t.rows,o=t.query;this.setState(i({},_.a.DISPLAYED_SELECTION_QUERY,o)),"start"===n&&(this.clearSelection({ignore:e}),this._.selectingComponent=e),"end"===n||"click"===n?(this.setState(i({},_.a.SELECTION_QUERY,o)),this._.selectingComponent=null):e.set({selectedRows:r})}},{key:"_handleChartFocus",value:function(t){var e,n=t.rows,r=t.query;this.setState((e={},i(e,_.a.FOCUS_QUERY,r),i(e,_.a.FOCUSED_ROWS,n),e))}},{key:"_setShowDifferenceFromExpected",value:function(t){this._showDifferenceFromExpected=t;var e=!0,n=!1,r=void 0;try{for(var i,o=this._charts[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){i.value.set({showDifferenceFromExpected:this._showDifferenceFromExpected})}}catch(t){n=!0,r=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw r}}this.refreshCharts()}},{key:"_getChartSize",value:function(){var t=this.getStateProperty(_.a.SELECTED_COLUMN_NAMES);if(!t||0===t.length)return 0;var e=this._controlDiv?this._controlDiv.getBoundingClientRect().height:0,n=this._.containerHeightFn()-e-150,r=this.getRoot().getBoundingClientRect().width-250,i=Math.min(n,r,this._.preferredMaxTotalChartSize),o=i/t.length;return Math.min(this._.maxChartSize,Math.max(this._.minChartSize,o))}},{key:"getChartForIntersection",value:function(t,e){var o=this,a=[this._axis(e)];e!==t&&a.push(this._axis(t));var u=this._.registry,s=u.getChart.apply(u,r(a.map(function(t){return t.stat_type}))),c=s.ChartFactory,l=s.supportedScales,f=document.createElement("div");if(f.addEventListener("mouseenter",function(){o.setState(i({},_.a.FOCUSED_COLUMN_NAMES,a.map(function(t){return t.name})))}),f.addEventListener("mouseleave",function(){o.setState(i({},_.a.FOCUSED_COLUMN_NAMES,[]))}),c){var h=new c({aesthetics:a,onSelect:function(t){return o._handleChartSelection(t)},onFocus:function(t){return o._handleChartFocus(t)},scales:n.i(p.c)(l),showDifferenceFromExpected:this._showDifferenceFromExpected,size:this._chartSize});return h.setRoot(f),h}}},{key:"_buildPairPlot",value:function(){var t=this,e=document.createElement("table"),n=this._,r=n.registry,i=n.axisLabelFn,o=n.axisDescriptionFn,a=this.getState(),u=a[_.a.DISPLAYED_ROWS]||[],s=a[_.a.SCHEMA],c=a[_.a.SELECTED_COLUMN_NAMES],l=c||[];if(!(r&&s&&l[0]&&u[0]&&l[0]in u[0]))return e;var f=document.createElement("tr");f.appendChild(function(){return document.createElement("th")}());var h=function(t,e){var n=document.createElement("th");return n.textContent=i(t),n.className=e,n.setAttribute("title",o(t)),n},d=!0,p=!1,v=void 0;try{for(var y,g=l[Symbol.iterator]();!(d=(y=g.next()).done);d=!0){var m=y.value;f.appendChild(h(m,"horizontal-label"))}}catch(t){p=!0,v=t}finally{try{!d&&g.return&&g.return()}finally{if(p)throw v}}return l.forEach(function(n){var r=document.createElement("tr");r.appendChild(h(n,"vertical-label")),l.forEach(function(e){var i=document.createElement("td"),o=t.getChartForIntersection(n,e);o?(i.className="plot",i.appendChild(o.getRoot()),o.setHidden(!1),t._charts.push(o)):i.textContent="Missing Chart",r.appendChild(i)}),e.appendChild(r)}),e.appendChild(f),e}},{key:"_createControlDiv",value:function(){var t=this,e=document.createElement("div");this._.root.appendChild(e);return this._vueInstance=new C.a({el:e,template:'\n      
\n
\n
Pair Plot
\n
\n Heatmap values: \n \n
\n
\n
\n
\n This grid contains a column and a row for each variable in the\n query. On the diagonal are histograms for each variable. Off the\n diagonal are appropriate plots to compare each variable to each\n other variable. Clicking, or clicking and dragging, will select data\n points, and highlight them in the other plots. Once you have made\n your selection, click “Constrain to Selection” to modify the query.\n
\n
\n Select one or more columns in the heat map to show pair plots.\n
\n
\n
\n ',methods:{updateHeatmapValues:function(e){t._setShowDifferenceFromExpected("difference"===e)}}}),this._.root.querySelector(".vizgpm-pair-plot-header")}},{key:"render",value:function(){var t=this._.root,e=this.getStateProperty(_.a.DISPLAYED_ROWS);if(t&&e){this._controlDiv||(this._controlDiv=this._createControlDiv(),this._chartDiv=document.createElement("div"),t.appendChild(this._chartDiv));var n=this.getStateProperty(_.a.SELECTED_COLUMN_NAMES)||[];if(t.querySelector(".vizgpm-pair-plot-description").hidden=0===n.length,t.querySelector(".vizgpm-pair-plot-no-columns-text").hidden=n.length>0,t.querySelector(".vizgpm-pair-plot-controls").style.display=0===n.length?"none":"",this._chartSize=this._getChartSize(),this._chartSize!==this._lastChartSize&&(this._forceFullUpdate=!0,this.getChartForIntersection.cache.clear()),this._lastChartSize=this._chartSize,(this._forceFullUpdate||this.hasChanged("root","selectedColumns","rows"))&&(this._charts=[],this._chartDiv.innerHTML="",this._.table=this._buildPairPlot(),this._.table.hidden=0===n.length,this._chartDiv.appendChild(this._.table),this._forceFullUpdate=!1),this.hasChanged("focusColumns","table")){var i=this._.table,o=this.getStateProperty(_.a.FOCUSED_COLUMN_NAMES)||[];if([].concat(r(i.querySelectorAll(".focus-column"))).forEach(function(t){return t.classList.remove("focus-column")}),o&&o.length){var a=n.indexOf(o[0]),u=o.length>1?n.indexOf(o[1]):a,s="tr:nth-of-type("+(u+1)+") td",c="td:nth-of-type("+(a+1)+")",l=s+","+c;[].concat(r(i.querySelectorAll(l))).forEach(function(t){return t.classList.add("focus-column")})}}this.refreshCharts(),this.clearChanged()}}}]),e}(s.a);e.a=N},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(594),u=n(246),s=n(6),c=n(33),l=n(2),f=n.n(l);n(819);var h=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};r(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));if(!n._.root||!n._.stateManager||!n._.associationFn)throw new Error("Must specify root, stateManager, and associationFn");return n._associations=n._.associationFn(n._.stateManager.getState()),n._containerDiv=null,n._miniMap=null,n._subgrid=null,n._stateUnsubscribeFn=n._.stateManager.subscribe(function(t){return n.handleStateChange(t)}),n.triggerRender(),n}return o(e,t),h(e,[{key:"defaults",value:function(){return f()(d(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"defaults",this).call(this),{miniMapWidthFraction:1/3,alwaysShowMiniMapColumnCount:55,neverShowMiniMapColumnCount:20,preferredMinSizePerColumn:20,maxZoomedColumnCount:25,labelWidthFractionWithoutMinimap:.25,cellColorFn:c.h,normalizeFn:function(t){return t},axisLabelFn:function(t){return t},subgridClass:u.a,subgridConfig:{},miniMapClass:a.a,miniMapConfig:{}})}},{key:"handleStateChange",value:function(t){var e=t.state,n=this._.associationFn(e);n!==this._associations&&(this._associations=n,this.triggerRender())}},{key:"getMiniMap",value:function(){return this._miniMap}},{key:"getSubgrid",value:function(){return this._subgrid}},{key:"removeComponents",value:function(){this._stateUnsubscribeFn(),this._.root.innerHTML=""}},{key:"updateAssociations",value:function(){this._miniMap&&this._miniMap.updateAssociations(),this._subgrid&&this._subgrid.updateAssociations()}},{key:"setNormalizeFunction",value:function(t){this._.normalizeFn=t,this._miniMap&&this._miniMap.setNormalizeFunction(t),this._subgrid&&this._subgrid.setNormalizeFunction(t)}},{key:"_showMiniMap",value:function(){var t=this._associations?this._associations.target.length:0;return t>=this._.alwaysShowMiniMapColumnCount||!(t<=this._.neverShowMiniMapColumnCount)&&this.getRoot().getBoundingClientRect().width/t").css({display:"flex",flexDiection:"row"}).appendTo(t.empty()),y=u("svg").attr({width:15,height:500}).append(u("text").attr({transform:"rotate(270) translate(-250 12)",size:"12",style:"fill: #000000","text-anchor":"middle","font-weight":"bold"}).text(v));$('
').append(y).appendTo(_);var g=$('
').appendTo(_);g.append($('
').text(p));var m=$("
").prependTo(g)[0],b=function(t){return t[0]},x=function(t){return t[1]},w=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),l(e,[{key:"_calculateData",value:function(){if(this._.aesthetics&&this.hasChanged("rows","scales")){var t=this._,e=t.rows,i=t.scales,o=i.x,a=i.y,u=f(t.aesthetics,2),s=u[0],l=s.value,h=s.name,d=(s.bins,u[1]);d=void 0===d?{}:d;var p=d.value;t.width;this._.chartData=e.map(function(t){return{x:l(t),value:p(t),rows:new Set([t]),query:r({},h,{$in:[l(t)]})}}),o.domain(this._.chartData.map(function(t){return t.x})),a.domain([0,n.i(c.max)(this._.chartData.map(function(t){return t.value}))]).nice()}}}]),e}(s.a);new w({root:m,rows:h,size:500,margin:{bottom:Math.max(500/6,35),left:Math.max(500/12,35),top:0,right:0},aesthetics:[{name:p,value:b},{name:v,value:x}],scales:{x:n.i(c.scaleBand)(),y:n.i(c.scaleLinear)()}}).render()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var s=n(247),c=n(11),l=function(){function t(t,e){for(var n=0;n').appendTo(t),z=$('
').appendTo(R),F=$('
').appendTo(R);$("").appendTo(R);var U=n.i(v.a)(P);P.target=U;var V=new c.a((S={},u(S,p.a.SCHEMA,{columns:_}),u(S,p.a.SELECTED_COLUMN_NAMES,[]),u(S,p.a.GET_COLUMN_FUNCTION,function(t){return l.a.prototype._getColumn.call(V,t)}),u(S,p.a.DISPLAYED_ROWS,s),S)),Y=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),m(e,[{key:"_handleGridMouseDown",value:function(t){return this._handleAllMouseEvents(t)}},{key:"_handleGridMouseUp",value:function(){}},{key:"_handleGridMouseMove",value:function(t){return this._handleAllMouseEvents(t)}},{key:"_handleAllMouseEvents",value:function(t){var n=this._gridEventCoords(t)||{error:!0},i=n.x,o=n.y;if(!n.error&&t.which){var a=[].concat(r(new Set([this._columnNameAtXIndex(i),this._columnNameAtYIndex(o)])));this.setState(u({},p.a.FOCUSED_COLUMN_NAMES,a)),this.setState(u({},p.a.SELECTED_COLUMN_NAMES,a))}else"mousemove"===t.type&&b(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_handleGridMouseMove",this).call(this,t)}},{key:"_handleXLabelClick",value:function(t){this.setState(u({},p.a.SELECTED_COLUMN_NAMES,[this._columnNameAtXIndex(t)]))}},{key:"_handleYLabelClick",value:function(t){this.setState(u({},p.a.SELECTED_COLUMN_NAMES,[this._columnNameAtXIndex(t)]))}},{key:"_updateSelectedAndFocusedColumns",value:function(t){var e=this,n=t[p.a.SELECTED_COLUMN_NAMES],r=void 0===n?[]:n,i=t[p.a.FOCUSED_COLUMN_NAMES],o=void 0===i?[]:i,a=!0,u=!1,s=void 0;try{for(var c,l=this._grid.querySelectorAll(".grid-cell.focused,.grid-cell.selected")[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=c.value;f.classList.remove("focused"),f.classList.remove("selected")}}catch(t){u=!0,s=t}finally{try{!a&&l.return&&l.return()}finally{if(u)throw s}}var h=x(r,2),d=h[0],v=h[1],_=void 0===v?d:v,g=x(o,2),m=g[0],b=g[1],w=void 0===b?m:b,S={};this._columnXLabels.forEach(function(t,n){var r=e._columnNameAtXIndex(n);d===r?(t.classList.add("selected"),S.selX=n):t.classList.remove("selected"),m===r?(t.classList.add("focused"),S.focX=n):t.classList.remove("focused")}),this._columnYLabels.forEach(function(t,n){var r=e._columnNameAtYIndex(n);_===r?(t.classList.add("selected"),S.selY=n):t.classList.remove("selected"),w===r?(t.classList.add("focused"),S.focY=n):t.classList.remove("focused")}),"selX"in S&&"selY"in S&&this._gridCells[S.selY][S.selX].classList.add("selected"),"focX"in S&&"focY"in S&&!y()(r,o)&&this._gridCells[S.focY][S.focX].classList.add("focused")}}]),e}(h.a),q=(new f.a({root:z[0],stateManager:V,subgridClass:Y,associationFn:function(){return P},subgridConfig:{cellSelectedFn:function(t){var e=t.xColumn,n=t.yColumn,r=t.selectedColumns;r=void 0===r?[]:r;var i=x(r,2),o=i[0],a=i[1],u=void 0===a?o:a;return e===o&&n===u}},miniMapConfig:{cellSelectedFn:function(t){var e=t.xColumn,n=t.yColumn,r=t.selectedColumns;r=void 0===r?[]:r;var i=x(r,2),o=i[0],a=i[1],u=void 0===a?o:a;return e===o||n===u}}}),function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),m(e,[{key:"_buildPairPlot",value:function(){var t=this._,e=t.registry,n=(t.axisLabelFn,t.axisDescriptionFn,this.getState()),r=n[p.a.DISPLAYED_ROWS]||[],i=n[p.a.SCHEMA],o=n[p.a.SELECTED_COLUMN_NAMES]||[];if(!(e&&i&&o[0]&&r[0]&&o[0]in r[0]))return document.createElement("div");var a=x(o,2),u=a[0],s=a[1],c=void 0===s?u:s,l=this.getChartForIntersection(c,u);return this._charts.push(l),l.getRoot()}}]),e}(d.a));if(s&&_){new q({root:F[0],stateManager:V})}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var c=n(77),l=n(138),f=n(250),h=n(246),d=n(249),p=n(21),v=n(251),_=n(61),y=n.n(_),g=n(257),m=function(){function t(t,e){for(var n=0;n').appendTo(t),O=$('
').appendTo(C),A=$('
').appendTo(C);$("").appendTo(C);var k=[].concat(i(p)).map(function(t){return{name:t}}),N=new u.a((h={},r(h,a.a.SCHEMA,{columns:k}),r(h,"columns",[].concat(i(p))),r(h,a.a.SELECTED_COLUMN_NAMES,[]),r(h,a.a.GET_COLUMN_FUNCTION,function(t){return s.a.prototype._getColumn.call(N,t)}),h));new c.a({root:O[0],stateManager:N,associationFn:function(){return E}}),new l.a({root:A[0],stateManager:N})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var a=n(21),u=n(77),s=n(138),c=n(250),l=n(604),f=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e").appendTo(t);n.i(c.a)(o);for(var d=[],p=0;p3)throw new Error("There must be two or three columns");if(!e.data.length)throw new Error("No data in the table");if("number"!=typeof e.data[0][1])throw new Error("Expected second column to contain a number");var i=l(e.columns,3),o=i[0],f=i[1],h=i[2],d=a()("
").css({display:"flex",flexDiection:"row"}).appendTo(t.empty()),p=n.i(c.a)("svg").attr({width:15,height:500});n.i(c.a)("text").attr({transform:"rotate(270) translate(-250 12)",size:"12",style:"fill: #000000","text-anchor":"middle","font-weight":"bold"}).text(f).appendTo(p),a()('
').append(p).appendTo(d);var v=a()('
').appendTo(d);v.append(a()('
').text(o));var _=a()("
").css({display:"inline-block",width:500,verticalAlign:"top"}).prependTo(v)[0],y=function(t){return t[0]},g=function(t){return t[1]},m=function(t){return t[2]},b=e.data,x=new Set(b.map(m)),w=Boolean(h),S=n.i(u.scaleOrdinal)(x.size>10?u.schemeCategory20:u.schemeCategory10).domain([].concat(r(x)));if(w){var M=a()("
    ").css({margin:0,padding:0,listStyle:"none"}).appendTo(d);a()("").text(e.columns[2]).wrap("
  • ").parent().appendTo(M);var E=!0,C=!1,O=void 0;try{for(var A,k=x[Symbol.iterator]();!(E=(A=k.next()).done);E=!0){var N=A.value,T=n.i(u.interpolate)("transparent",S(N))(.5),j=a()("
  • ").appendTo(M);a()("
    ").css({width:"20px",height:"20px",display:"inline-block",background:T,border:"1px solid #000",verticalAlign:"middle",margin:"0.25em 0.75em"}).appendTo(j),a()("").text(N).appendTo(j)}}catch(t){C=!0,O=t}finally{try{!E&&k.return&&k.return()}finally{if(C)throw O}}}var D=w?{colorByFn:function(t){return n.i(u.interpolate)("transparent",S(m(t)))(.5)||"#000000"}}:{};new s.a(Object.assign(D,{root:_,rows:b,size:500,pointRadius:3,margin:{bottom:Math.floor(Math.max(500/6,35)),left:Math.floor(Math.max(500/12,35)),top:0,right:0},aesthetics:[{name:o,value:y},{name:f,value:g}],scales:{x:n.i(u.scaleLinear)(),y:n.i(u.scaleLinear)()}})).render()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var o=n(94),a=n.n(o),u=n(11),s=n(248),c=n(606),l=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,e,n){"use strict";function r(t){var e=!0,n=!1,r=void 0;try{for(var i,o=t[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var a=i.value;"numerical"===a.stat_type&&(a.stat_type="realAdditive"),"nominal"===a.stat_type&&(a.stat_type="categorical")}}catch(t){n=!0,r=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw r}}return t}e.a=r},function(t,e,n){"use strict";function r(t,e){var n,r=-1/0;return function(){function i(){clearTimeout(n),n=null;var o=r+e,a=Date.now();a>o?(r=a,t()):n=setTimeout(i,o-a)}n||i()}}t.exports=r},function(t,e,n){"use strict";var r=n(198),i=[null,null],o={type:"LineString",coordinates:i};e.a=function(t,e){return i[0]=t,i[1]=e,n.i(r.a)(o)}},function(t,e,n){"use strict";var r=n(261),i=n(16),o=Array.prototype.indexOf,a=Object.prototype.hasOwnProperty,u=Math.abs,s=Math.floor;t.exports=function(t){var e,n,c,l;if(t===t)return o.apply(this,arguments);for(n=r(i(this).length),c=arguments[1],c=isNaN(c)?0:c>=0?s(c):r(this.length)-s(u(c)),e=c;e=55296&&_<=56319&&(v+=t[++d]),s.call(e,y,v,f),!h);++d);}},function(t,e,n){"use strict";t.exports=n(652)()?Map:n(656)},function(t,e,n){"use strict";var r,i,o,a,u,s,c,l=n(22),f=n(15),h=Function.prototype.apply,d=Function.prototype.call,p=Object.create,v=Object.defineProperty,_=Object.defineProperties,y=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};r=function(t,e){var n;return f(e),y.call(this,"__ee__")?n=this.__ee__:(n=g.value=p(null),v(this,"__ee__",g),g.value=null),n[t]?"object"==typeof n[t]?n[t].push(e):n[t]=[n[t],e]:n[t]=e,this},i=function(t,e){var n,i;return f(e),i=this,r.call(this,t,n=function(){o.call(i,t,n),h.call(e,this,arguments)}),n.__eeOnceListener__=e,this},o=function(t,e){var n,r,i,o;if(f(e),!y.call(this,"__ee__"))return this;if(n=this.__ee__,!n[t])return this;if("object"==typeof(r=n[t]))for(o=0;i=r[o];++o)i!==e&&i.__eeOnceListener__!==e||(2===r.length?n[t]=r[o?0:1]:r.splice(o,1));else r!==e&&r.__eeOnceListener__!==e||delete n[t];return this},a=function(t){var e,n,r,i,o;if(y.call(this,"__ee__")&&(i=this.__ee__[t]))if("object"==typeof i){for(n=arguments.length,o=new Array(n-1),e=1;e=l){var _=e?null:s(t);if(_)return c(_);d=!1,f=u,v=new i}else v=e?[]:p;t:for(;++rh))return!1;var p=l.get(t);if(p&&l.get(e))return p==e;var v=-1,_=!0,y=n&s?new i:void 0;for(l.set(t,e),l.set(e,t);++v=e||n<0||C&&r>=b}function d(){var t=o();if(h(t))return p(t);w=setTimeout(d,f(t))}function p(t){return w=void 0,O&&g?r(t):(g=m=void 0,x)}function v(){void 0!==w&&clearTimeout(w),M=0,g=S=m=w=void 0}function _(){return void 0===w?x:p(o())}function y(){var t=o(),n=h(t);if(g=arguments,m=this,S=t,n){if(void 0===w)return l(S);if(C)return w=setTimeout(d,e),r(S)}return void 0===w&&(w=setTimeout(d,e)),x}var g,m,b,x,w,S,M=0,E=!1,C=!1,O=!0;if("function"!=typeof t)throw new TypeError(u);return e=a(e)||0,i(n)&&(E=!!n.leading,C="maxWait"in n,b=C?s(a(n.maxWait)||0,e):b,O="trailing"in n?!!n.trailing:O),y.cancel=v,y.flush=_,y}var i=n(23),o=n(791),a=n(299),u="Expected a function",s=Math.max,c=Math.min;t.exports=r},function(t,e,n){function r(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var s=null==n?0:a(n);return s<0&&(s=u(r+s,0)),i(t,o(e,3),s)}var i=n(273),o=n(156),a=n(797),u=Math.max;t.exports=r},function(t,e,n){function r(t){if(!o(t))return!1;var e=i(t);return e==u||e==s||e==a||e==c}var i=n(44),o=n(23),a="[object AsyncFunction]",u="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";t.exports=r},function(t,e,n){var r=n(704),i=n(157),o=n(769),a=o&&o.isTypedArray,u=a?i(a):r;t.exports=u},function(t,e,n){function r(t){return a(t)?i(t,!0):o(t)}var i=n(270),o=n(706),a=n(35);t.exports=r},function(t,e){function n(){return[]}t.exports=n},function(t,e,n){function r(t){if("number"==typeof t)return t;if(o(t))return a;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(u,"");var n=c.test(t);return n||l.test(t)?f(t.slice(2),n?2:8):s.test(t)?a:+t}var i=n(23),o=n(92),a=NaN,u=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,f=parseInt;t.exports=r},function(t,e,n){function r(t){return t&&t.length?i(t):[]}var i=n(275);t.exports=r},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){v&&d&&(v=!1,d.length?p=d.concat(p):_=-1,p.length&&u())}function u(){if(!v){var t=i(a);v=!0;for(var e=p.length;e;){for(d=p,p=[];++_1)for(var n=1;n-1)return t.splice(n,1)}}function v(t,e){return Hi.call(t,e)}function _(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function y(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function g(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function m(t,e){for(var n in e)t[n]=e[n];return t}function b(t){for(var e={},n=0;nia)){oo("You may have an infinite update loop "+(t.user?'in watcher with expression "'+t.expression+'"':"in a component render function."),t.vm);break}var r=aa.slice(),i=oa.slice();At(),jt(r),Nt(i),Ao&&no.devtools&&Ao.emit("flush")}function Nt(t){for(var e=t.length;e--;){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&Ot(r,"updated")}}function Tt(t){t._inactive=!1,aa.push(t)}function jt(t){for(var e=0;efa&&oa[n].id>t.id;)n--;oa.splice(n+1,0,t)}else oa.push(t);ca||(ca=!0,No(kt))}}function It(t){pa.clear(),Lt(t,pa)}function Lt(t,e){var n,r,i=Array.isArray(t);if((i||s(t))&&Object.isExtensible(t)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i)for(n=t.length;n--;)Lt(t[n],e);else for(r=Object.keys(t),n=r.length;n--;)Lt(t[r[n]],e)}}function Pt(t,e,n){va.get=function(){return this[e][n]},va.set=function(t){this[e][n]=t},Object.defineProperty(t,n,va)}function Rt(t){t._watchers=[];var e=t.$options;e.props&&zt(t,e.props),e.methods&&qt(t,e.methods),e.data?$t(t):I(t._data={},!0),e.computed&&Ut(t,e.computed),e.watch&&Ht(t,e.watch)}function zt(t,n){var r=t.$options.propsData||{},i=t._props={},o=t.$options._propKeys=[],a=!t.$parent;Ro.shouldConvert=a;for(var u in n)!function(a){o.push(a);var u=W(a,n,r,t);"production"!==e.env.NODE_ENV?((_a[a]||no.isReservedAttr(a))&&oo('"'+a+'" is a reserved attribute and cannot be used as component prop.',t),L(i,a,u,function(){t.$parent&&!Ro.isSettingProps&&oo("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+a+'"',t)})):L(i,a,u),a in t||Pt(t,"_props",a)}(u);Ro.shouldConvert=!0}function $t(t){var n=t.$options.data;n=t._data="function"==typeof n?Ft(n,t):n||{},c(n)||(n={},"production"!==e.env.NODE_ENV&&oo("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",t));for(var r=Object.keys(n),i=t.$options.props,o=r.length;o--;)i&&v(i,r[o])?"production"!==e.env.NODE_ENV&&oo('The data property "'+r[o]+'" is already declared as a prop. Use prop default value instead.',t):E(r[o])||Pt(t,"_data",r[o]);I(n,!0)}function Ft(t,e){try{return t.call(e)}catch(t){return A(t,e,"data()"),{}}}function Ut(t,n){var r=t._computedWatchers=Object.create(null);for(var i in n){var o=n[i],a="function"==typeof o?o:o.get;"production"!==e.env.NODE_ENV&&void 0===a&&(oo('No getter function has been defined for computed property "'+i+'".',t),a=x),r[i]=new da(t,a,x,ya),i in t?"production"!==e.env.NODE_ENV&&(i in t.$data?oo('The computed property "'+i+'" is already defined in data.',t):t.$options.props&&i in t.$options.props&&oo('The computed property "'+i+'" is already defined as a prop.',t)):Vt(t,i,o)}}function Vt(t,e,n){"function"==typeof n?(va.get=Yt(e),va.set=x):(va.get=n.get?!1!==n.cache?Yt(e):n.get:x,va.set=n.set?n.set:x),Object.defineProperty(t,e,va)}function Yt(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),jo.target&&e.depend(),e.value}}function qt(t,n){var r=t.$options.props;for(var i in n)t[i]=null==n[i]?x:y(n[i],t),"production"!==e.env.NODE_ENV&&(null==n[i]&&oo('method "'+i+'" has an undefined value in the component definition. Did you reference the function correctly?',t),r&&v(r,i)&&oo('method "'+i+'" has already been defined as a prop.',t))}function Ht(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i=0||n.indexOf(t[i])<0)&&r.push(t[i]);return r}return t}function be(t){"production"===e.env.NODE_ENV||this instanceof be||oo("Vue is a constructor and should be called with the `new` keyword"),this._init(t)}function xe(t){t.use=function(t){if(t.installed)return this;var e=g(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):"function"==typeof t&&t.apply(null,e),t.installed=!0,this}}function we(t){t.mixin=function(t){return this.options=H(this.options,t),this}}function Se(t){t.cid=0;var n=1;t.extend=function(t){t=t||{};var r=this,i=r.cid,o=t._Ctor||(t._Ctor={});if(o[i])return o[i];var a=t.name||r.options.name;"production"!==e.env.NODE_ENV&&(/^[a-zA-Z][\w-]*$/.test(a)||oo('Invalid component name: "'+a+'". Component names can only contain alphanumeric characters and the hyphen, and must start with a letter.'));var u=function(t){this._init(t)};return u.prototype=Object.create(r.prototype),u.prototype.constructor=u,u.cid=n++,u.options=H(r.options,t),u.super=r,u.options.props&&Me(u),u.options.computed&&Ee(u),u.extend=r.extend,u.mixin=r.mixin,u.use=r.use,to.forEach(function(t){u[t]=r[t]}),a&&(u.options.components[a]=u),u.superOptions=r.options,u.extendOptions=t,u.sealedOptions=m({},u.options),o[i]=u,u}}function Me(t){var e=t.options.props;for(var n in e)Pt(t.prototype,"_props",n)}function Ee(t){var e=t.options.computed;for(var n in e)Vt(t.prototype,n,e[n])}function Ce(t){to.forEach(function(n){t[n]=function(t,r){return r?("production"!==e.env.NODE_ENV&&"component"===n&&no.isReservedTag(t)&&oo("Do not use built-in or reserved HTML elements as component id: "+t),"component"===n&&c(r)&&(r.name=r.name||t,r=this.options._base.extend(r)),"directive"===n&&"function"==typeof r&&(r={bind:r,update:r}),this.options[n+"s"][t]=r,r):this.options[n+"s"][t]}})}function Oe(t){return t&&(t.Ctor.options.name||t.tag)}function Ae(t,e){return"string"==typeof t?t.split(",").indexOf(e)>-1:!!l(t)&&t.test(e)}function ke(t,e,n){for(var r in t){var i=t[r];if(i){var o=Oe(i.componentOptions);o&&!n(o)&&(i!==e&&Ne(i),t[r]=null)}}}function Ne(t){t&&t.componentInstance.$destroy()}function Te(t){for(var e=t.data,n=t,r=t;i(r.componentInstance);)r=r.componentInstance._vnode,r.data&&(e=je(r.data,e));for(;i(n=n.parent);)n.data&&(e=je(e,n.data));return De(e)}function je(t,e){return{staticClass:Ie(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function De(t){var e=t.class,n=t.staticClass;return i(n)||i(e)?Ie(n,Le(e)):""}function Ie(t,e){return t?e?t+" "+e:t:e||""}function Le(t){if(r(t))return"";if("string"==typeof t)return t;var e="";if(Array.isArray(t)){for(var n,o=0,a=t.length;o-1?Ga[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Ga[t]=/HTMLUnknownElement/.test(e.toString())}function ze(t){if("string"==typeof t){var n=document.querySelector(t);return n||("production"!==e.env.NODE_ENV&&oo("Cannot find element: "+t),document.createElement("div"))}return t}function $e(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function Fe(t,e){return document.createElementNS(qa[t],e)}function Ue(t){return document.createTextNode(t)}function Ve(t){return document.createComment(t)}function Ye(t,e,n){t.insertBefore(e,n)}function qe(t,e){t.removeChild(e)}function He(t,e){t.appendChild(e)}function Be(t){return t.parentNode}function We(t){return t.nextSibling}function Xe(t){return t.tagName}function Ge(t,e){t.textContent=e}function Qe(t,e,n){t.setAttribute(e,n)}function Ze(t,e){var n=t.data.ref;if(n){var r=t.context,i=t.componentInstance||t.elm,o=r.$refs;e?Array.isArray(o[n])?p(o[n],i):o[n]===i&&(o[n]=void 0):t.data.refInFor?Array.isArray(o[n])&&o[n].indexOf(i)<0?o[n].push(i):o[n]=[i]:o[n]=i}}function Je(t,e){return t.key===e.key&&t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&Ke(t,e)}function Ke(t,e){if("input"!==t.tag)return!0;var n;return(i(n=t.data)&&i(n=n.attrs)&&n.type)===(i(n=e.data)&&i(n=n.attrs)&&n.type)}function tn(t,e,n){var r,o,a={};for(r=e;r<=n;++r)o=t[r].key,i(o)&&(a[o]=r);return a}function en(t,e){(t.data.directives||e.data.directives)&&nn(t,e)}function nn(t,e){var n,r,i,o=t===Ja,a=e===Ja,u=rn(t.data.directives,t.context),s=rn(e.data.directives,e.context),c=[],l=[];for(n in s)r=u[n],i=s[n],r?(i.oldValue=r.value,an(i,"update",e,t),i.def&&i.def.componentUpdated&&l.push(i)):(an(i,"bind",e,t),i.def&&i.def.inserted&&c.push(i));if(c.length){var f=function(){for(var n=0;n=0&&" "===(_=t.charAt(v));v--);_&&ou.test(_)||(l=!0)}}else void 0===o?(p=i+1,o=t.slice(0,i).trim()):e();if(void 0===o?o=t.slice(0,i).trim():0!==p&&e(),a)for(i=0;i=Ca}function En(t){return 34===t||39===t}function Cn(t){var e=1;for(Na=ka;!Mn();)if(t=Sn(),En(t))On(t);else if(91===t&&e++,93===t&&e--,0===e){Ta=ka;break}}function On(t){for(var e=t;!Mn()&&(t=Sn())!==e;);}function An(t,n,r){ja=r;var i=n.value,o=n.modifiers,a=t.tag,u=t.attrsMap.type;if("production"!==e.env.NODE_ENV){var s=t.attrsMap["v-bind:type"]||t.attrsMap[":type"];"input"===a&&s&&ja(':\nv-model does not support dynamic input types. Use v-if branches instead.'),"input"===a&&"file"===u&&ja("<"+t.tag+' v-model="'+i+'" type="file">:\nFile inputs are read only. Use a v-on:change listener instead.')}if("select"===a)Tn(t,i,o);else if("input"===a&&"checkbox"===u)kn(t,i,o);else if("input"===a&&"radio"===u)Nn(t,i,o);else if("input"===a||"textarea"===a)jn(t,i,o);else{if(!no.isReservedTag(a))return bn(t,i,o),!1;"production"!==e.env.NODE_ENV&&ja("<"+t.tag+' v-model="'+i+"\">: v-model is not supported on this element type. If you are working with contenteditable, it's recommended to wrap a library dedicated for that purpose inside a custom component.")}return!0}function kn(t,e,n){var r=n&&n.number,i=gn(t,"value")||"null",o=gn(t,"true-value")||"true",a=gn(t,"false-value")||"false";pn(t,"checked","Array.isArray("+e+")?_i("+e+","+i+")>-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),yn(t,uu,"var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$c){$$i<0&&("+e+"=$$a.concat($$v))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+xn(e,"$$c")+"}",null,!0)}function Nn(t,e,n){var r=n&&n.number,i=gn(t,"value")||"null";i=r?"_n("+i+")":i,pn(t,"checked","_q("+e+","+i+")"),yn(t,uu,xn(e,i),null,!0)}function Tn(t,e,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})",o="var $$selectedVal = "+i+";";o=o+" "+xn(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),yn(t,"change",o,null,!0)}function jn(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,a=i.number,u=i.trim,s=!o&&"range"!==r,c=o?"change":"range"===r?au:"input",l="$event.target.value";u&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=xn(e,l);s&&(f="if($event.target.composing)return;"+f),pn(t,"value","("+e+")"),yn(t,c,f,null,!0),(u||a||"number"===r)&&yn(t,"blur","$forceUpdate()")}function Dn(t){var e;i(t[au])&&(e=yo?"change":"input",t[e]=[].concat(t[au],t[e]||[]),delete t[au]),i(t[uu])&&(e=wo?"click":"change",t[e]=[].concat(t[uu],t[e]||[]),delete t[uu])}function In(t,e,n,r,i){if(n){var o=e,a=Da;e=function(n){null!==(1===arguments.length?o(n):o.apply(null,arguments))&&Ln(t,e,r,a)}}Da.addEventListener(t,e,So?{capture:r,passive:i}:r)}function Ln(t,e,n,r){(r||Da).removeEventListener(t,e,n)}function Pn(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};Da=e.elm,Dn(n),rt(n,i,In,Ln,e.context)}}function Rn(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,o,a=e.elm,u=t.data.domProps||{},s=e.data.domProps||{};i(s.__ob__)&&(s=e.data.domProps=m({},s));for(n in u)r(s[n])&&(a[n]="");for(n in s)if(o=s[n],"textContent"!==n&&"innerHTML"!==n||(e.children&&(e.children.length=0),o!==u[n]))if("value"===n){a._value=o;var c=r(o)?"":String(o);zn(a,e,c)&&(a.value=c)}else a[n]=o}}function zn(t,e,n){return!t.composing&&("option"===e.tag||$n(t,n)||Fn(t,n))}function $n(t,e){return document.activeElement!==t&&t.value!==e}function Fn(t,e){var n=t.value,r=t._vModifiers;return i(r)&&r.number||"number"===t.type?h(n)!==h(e):i(r)&&r.trim?n.trim()!==e.trim():n!==e}function Un(t){var e=Vn(t.style);return t.staticStyle?m(t.staticStyle,e):e}function Vn(t){return Array.isArray(t)?b(t):"string"==typeof t?lu(t):t}function Yn(t,e){var n,r={};if(e)for(var i=t;i.componentInstance;)i=i.componentInstance._vnode,i.data&&(n=Un(i.data))&&m(r,n);(n=Un(t.data))&&m(r,n);for(var o=t;o=o.parent;)o.data&&(n=Un(o.data))&&m(r,n);return r}function qn(t,e){var n=e.data,o=t.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var a,u,s=e.elm,c=o.staticStyle,l=o.normalizedStyle||o.style||{},f=c||l,h=Vn(e.data.style)||{};e.data.normalizedStyle=i(h.__ob__)?m({},h):h;var d=Yn(e,!0);for(u in f)r(d[u])&&du(s,u,"");for(u in d)(a=d[u])!==f[u]&&du(s,u,null==a?"":a)}}function Hn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Bn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e);else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");t.setAttribute("class",n.trim())}}function Wn(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&m(e,yu(t.name||"v")),m(e,t),e}return"string"==typeof t?yu(t):void 0}}function Xn(t){Eu(function(){Eu(t)})}function Gn(t,e){(t._transitionClasses||(t._transitionClasses=[])).push(e),Hn(t,e)}function Qn(t,e){t._transitionClasses&&p(t._transitionClasses,e),Bn(t,e)}function Zn(t,e,n){var r=Jn(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var u=i===mu?wu:Mu,s=0,c=function(){t.removeEventListener(u,l),n()},l=function(e){e.target===t&&++s>=a&&c()};setTimeout(function(){s0&&(n=mu,l=a,f=o.length):e===bu?c>0&&(n=bu,l=c,f=s.length):(l=Math.max(a,c),n=l>0?a>c?mu:bu:null,f=n?n===mu?o.length:s.length:0),{type:n,timeout:l,propCount:f,hasTransform:n===mu&&Cu.test(r[xu+"Property"])}}function Kn(t,e){for(;t.length explicit "+e+" duration is not a valid number - got "+JSON.stringify(t)+".",n.context):isNaN(t)&&oo(" explicit "+e+" duration is NaN - the duration expression might be incorrect.",n.context)}function ir(t){return"number"==typeof t&&!isNaN(t)}function or(t){if(r(t))return!1;var e=t.fns;return i(e)?or(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function ar(t,e){!0!==e.data.show&&er(e)}function ur(t,n,r){var i=n.value,o=t.multiple;if(o&&!Array.isArray(i))return void("production"!==e.env.NODE_ENV&&oo('