From 3fe9333eafda3cbef715c70eade60f8417858352 Mon Sep 17 00:00:00 2001 From: Carson Sievert Date: Thu, 21 Dec 2017 14:49:00 -0600 Subject: [PATCH 1/8] add ability to install R :package: --- .Rbuildignore | 29 +++ .gitignore | 1 + DESCRIPTION | 16 ++ LICENSE | 2 + NAMESPACE | 5 + R/components.R | 227 ++++++++++++++++++ dash-table-experiments.Rproj | 13 + dash_table_experiments/metadata.json | 10 + inst/dash_table_experiments/bundle.js | 1 + .../dash_table_experiments.css | 1 + inst/dasher_deps.rds | Bin 0 -> 294 bytes inst/transpile.R | 4 + man/DataTable.Rd | 55 +++++ man/EditableTable.Rd | 41 ++++ man/VirtualizedTable.Rd | 46 ++++ package.json | 5 +- 16 files changed, 455 insertions(+), 1 deletion(-) create mode 100644 .Rbuildignore create mode 100644 DESCRIPTION create mode 100644 LICENSE create mode 100644 NAMESPACE create mode 100644 R/components.R create mode 100644 dash-table-experiments.Rproj create mode 120000 inst/dash_table_experiments/bundle.js create mode 120000 inst/dash_table_experiments/dash_table_experiments.css create mode 100644 inst/dasher_deps.rds create mode 100644 inst/transpile.R create mode 100644 man/DataTable.Rd create mode 100644 man/EditableTable.Rd create mode 100644 man/VirtualizedTable.Rd diff --git a/.Rbuildignore b/.Rbuildignore new file mode 100644 index 0000000..301e67d --- /dev/null +++ b/.Rbuildignore @@ -0,0 +1,29 @@ +# ignore JS config files/folders +node_modules/ +coverage/ +src/ +lib/ +.babelrc +.builderrc +.eslintrc +.npmignore + +# demo folder has special meaning in R +# this should hopefully make it still +# allow for the possibility to make R demos +demo/*.js +demo/*.html +demo/*.css + +# ignore python files/folders +setup.py +usage.py +setup.py +requirements.txt +MANIFEST.in +CHANGELOG.md +test/ +# CRAN has weird LICENSE requirements +LICENSE.txt +^.*\.Rproj$ +^\.Rproj\.user$ diff --git a/.gitignore b/.gitignore index d27b231..a91c319 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ venv/ *.egg-info *.log .DS_Store +.Rproj.user diff --git a/DESCRIPTION b/DESCRIPTION new file mode 100644 index 0000000..2728210 --- /dev/null +++ b/DESCRIPTION @@ -0,0 +1,16 @@ +Package: dashTable +Title: An experimental dasher table component +Version: 0.0.1 +Authors@R: c( + person(family = "plotly", role = c("aut", "cre"), email = "chris@plot.ly"), + person("Carson", "Sievert", role = "aut")) +Description: An experimental dasher table component +Suggests: + testthat, + roxygen2 +License: MIT + file LICENSE +URL: https://github.com/plotly/dash-table-experiments +BugReports: https://github.com/plotly/dash-table-experiments/issues +Encoding: UTF-8 +LazyData: true +RoxygenNote: 6.0.1 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..a2a2bbd --- /dev/null +++ b/LICENSE @@ -0,0 +1,2 @@ +YEAR: 2017 +COPYRIGHT HOLDER: plotly diff --git a/NAMESPACE b/NAMESPACE new file mode 100644 index 0000000..ae4b9ef --- /dev/null +++ b/NAMESPACE @@ -0,0 +1,5 @@ +# Generated by roxygen2: do not edit by hand + +export(DataTable) +export(EditableTable) +export(VirtualizedTable) diff --git a/R/components.R b/R/components.R new file mode 100644 index 0000000..a3bba7c --- /dev/null +++ b/R/components.R @@ -0,0 +1,227 @@ +# Auto-generated by dashTranspileR -- do not edit by hand + +#' DataTable dash-table-experiments component +#' @description +#' @export +#' @param id +#' @param editable +#' @param filterable +#' @param sortable +#' @param columns Order of columns. Note that the column names are specified in `rows` but without order. This attribute allows you to specify a custom order for your columns. +#' @param row_selectable +#' @param selected_row_indices +#' @param enable_drag_and_drop +#' @param header_row_height +#' @param min_height +#' @param min_width +#' @param row_height +#' @param row_scroll_timeout +#' @param tab_index +#' @param filters +#' @param rows +#' @param row_update +#' @param sortColumn +#' @param sortDirection +#' @param setProps + +DataTable <- function(id = NULL, editable = TRUE, filterable = FALSE, sortable = TRUE, columns = NULL, row_selectable = FALSE, selected_row_indices = list(), enable_drag_and_drop = NULL, header_row_height = NULL, min_height = NULL, min_width = NULL, row_height = NULL, row_scroll_timeout = NULL, tab_index = NULL, filters = list(), rows = NULL, row_update = NULL, sortColumn = NULL, sortDirection = NULL, setProps = NULL) { + +component <- list( + props = list( + id=id, + editable=editable, + filterable=filterable, + sortable=sortable, + columns=columns, + row_selectable=row_selectable, + selected_row_indices=selected_row_indices, + enable_drag_and_drop=enable_drag_and_drop, + header_row_height=header_row_height, + min_height=min_height, + min_width=min_width, + row_height=row_height, + row_scroll_timeout=row_scroll_timeout, + tab_index=tab_index, + filters=filters, + rows=rows, + row_update=row_update, + sortColumn=sortColumn, + sortDirection=sortDirection, + setProps=setProps + ), + type = 'DataTable', + namespace = 'dash_table_experiments', + propNames = c('id', 'editable', 'filterable', 'sortable', 'columns', 'row_selectable', 'selected_row_indices', 'enable_drag_and_drop', 'header_row_height', 'min_height', 'min_width', 'row_height', 'row_scroll_timeout', 'tab_index', 'filters', 'rows', 'row_update', 'sortColumn', 'sortDirection', 'setProps'), + package = 'dashTable' +) + +component$props <- filter_null(component$props) + +structure(component, class = c('dash_component', 'list')) +} + + +filter_null <- function(x) { + if (length(x) == 0 || !is.list(x)) return(x) + x[!vapply(x, is.null, logical(1))] +} + +assert_valid_children <- function(...) { + kids <- list(...) + if (length(kids) == 0) return(NULL) + assert_no_names(kids) +} + +assert_no_names <- function(x) { + nms <- names(x) + if (!is.null(nms)) { + stop( + sprintf( + "Didn't recognize the following named arguments: '%s'", + paste(nms, collapse = "', '") + ), call. = FALSE + ) + } + names(x) <- NULL + x +} +# Auto-generated by dashTranspileR -- do not edit by hand + +#' EditableTable dash-table-experiments component +#' @description +#' @export +#' @param id The ID of the component, used to identify the component in Dash callbacks +#' @param changed_data +#' @param dataframe The data of this table, in the form of a Pandas DataFrame.to_dict() The keys of the dict are the column names and the values are a dict that represents the column where the keys of the column are the values of the index and the values are the rows. For example, { "Column 1": {"0": "Value A", "1": "Value B"}, "Column 2": {"0": 3129, "1": 4931}, } If `editable=True`, then this `dataframe` will be updated when the user changes values +#' @param column_order Order of the columns +#' @param index_name The name of the index column. This name is not included in the `dataframe` object +#' @param editable Whether or not this table is editable +#' @param base_styles CSS styles for all of the different elements in this table. The `base_styles` have a default value. If you want to remove all default styles, set `base_styles` to `{}`. +#' @param merged_styles `merged_styles` is recursively merged into `base_styles`. Use `merged_styles` if you want to update or overwrite a small set of the base styles. +#' @param types +#' @param setProps Dash supplied function + +EditableTable <- function(id = NULL, changed_data = list(), dataframe = NULL, column_order = NULL, index_name = '', editable = FALSE, base_styles = list(numeric = list(`text-align` = "right", `font-family` = "'Droid Sans Mono', Courier, monospace"), string = list(`text-align` = "left"), input = list(padding = 0, margin = 0, width = "80px", border = "none", `font-size` = "1rem"), `input-active` = list(outline = "#7FDBFF auto 3px"), table = list(`border-collapse` = "collapse", `box-sizing` = "border-box", `font-size` = "1rem"), thead = list(display = "table-row-group"), th = list(`text-align` = "left", `font-weight` = "normal", border = "thin lightgrey solid", + width = "80px"), td = list(`white-space` = "nowrap", border = "thin lightgrey solid", width = "80px", `max-width` = "80px", `text-overflow` = "ellipsis", `overflow-x` = "hidden")), merged_styles = list(), types = list(), setProps = NULL) { + +component <- list( + props = list( + id=id, + changed_data=changed_data, + dataframe=dataframe, + column_order=column_order, + index_name=index_name, + editable=editable, + base_styles=base_styles, + merged_styles=merged_styles, + types=types, + setProps=setProps + ), + type = 'EditableTable', + namespace = 'dash_table_experiments', + propNames = c('id', 'changed_data', 'dataframe', 'column_order', 'index_name', 'editable', 'base_styles', 'merged_styles', 'types', 'setProps'), + package = 'dashTable' +) + +component$props <- filter_null(component$props) + +structure(component, class = c('dash_component', 'list')) +} + + +filter_null <- function(x) { + if (length(x) == 0 || !is.list(x)) return(x) + x[!vapply(x, is.null, logical(1))] +} + +assert_valid_children <- function(...) { + kids <- list(...) + if (length(kids) == 0) return(NULL) + assert_no_names(kids) +} + +assert_no_names <- function(x) { + nms <- names(x) + if (!is.null(nms)) { + stop( + sprintf( + "Didn't recognize the following named arguments: '%s'", + paste(nms, collapse = "', '") + ), call. = FALSE + ) + } + names(x) <- NULL + x +} +# Auto-generated by dashTranspileR -- do not edit by hand + +#' VirtualizedTable dash-table-experiments component +#' @description +#' @export +#' @param id The ID of the component, used to identify the component in Dash callbacks +#' @param changed_data +#' @param dataframe The data of this table, in the form of a Pandas DataFrame.to_dict('split') For example, { 'columns': ['Column 1', 'Column 2', 'Column 3'], 'data': [[1, 2, 3], [4, 3, 1]], 'index': [1, 2, 3] } If `editable=True`, then this `dataframe` will be updated when the user changes values +#' @param display_index Whether or not to show the index column +#' @param index_name The name of the index column. This name is not included in the `dataframe` object +#' @param editable Whether or not this table is editable +#' @param styles CSS styles for all of the different elements in this table. The `styles` have a default value. If you want to remove all default styles, set `styles` to `{}`. +#' @param column_width Column width (in pixels) +#' @param row_height Row height (in pixels) +#' @param height Height of entire table (in pixels) +#' @param width Width of entire table (in pixels) +#' @param setProps Dash supplied function + +VirtualizedTable <- function(id = NULL, changed_data = NULL, dataframe = NULL, display_index = TRUE, index_name = '', editable = TRUE, styles = list(container = list(`font-size` = "1rem"), cell = list(`white-space` = "nowrap", `border-left` = "'thin lightgrey solid'", `border-bottom` = "'thin lightgrey solid'", `border-top` = "none", `border-right` = "none", `text-overflow` = "ellipsis", `overflow-x` = "hidden", `box-sizing` = "border-box"), `cell-rightmost` = list(`border-right` = "'thin lightgrey solid'"), header = list(`text-align` = "left", `border-left` = "'thin lightgrey solid'", `border-bottom` = "'thin lightgrey solid'", `border-top` = "'thin lightgrey solid'", + `font-weight` = 600, display = "inline-block", `box-sizing` = "border-box"), `header-rightmost` = list(`border-right` = "'thin lightgrey solid'")), column_width = 80, row_height = 20, height = 500, width = 600, setProps = NULL) { + +component <- list( + props = list( + id=id, + changed_data=changed_data, + dataframe=dataframe, + display_index=display_index, + index_name=index_name, + editable=editable, + styles=styles, + column_width=column_width, + row_height=row_height, + height=height, + width=width, + setProps=setProps + ), + type = 'VirtualizedTable', + namespace = 'dash_table_experiments', + propNames = c('id', 'changed_data', 'dataframe', 'display_index', 'index_name', 'editable', 'styles', 'column_width', 'row_height', 'height', 'width', 'setProps'), + package = 'dashTable' +) + +component$props <- filter_null(component$props) + +structure(component, class = c('dash_component', 'list')) +} + + +filter_null <- function(x) { + if (length(x) == 0 || !is.list(x)) return(x) + x[!vapply(x, is.null, logical(1))] +} + +assert_valid_children <- function(...) { + kids <- list(...) + if (length(kids) == 0) return(NULL) + assert_no_names(kids) +} + +assert_no_names <- function(x) { + nms <- names(x) + if (!is.null(nms)) { + stop( + sprintf( + "Didn't recognize the following named arguments: '%s'", + paste(nms, collapse = "', '") + ), call. = FALSE + ) + } + names(x) <- NULL + x +} diff --git a/dash-table-experiments.Rproj b/dash-table-experiments.Rproj new file mode 100644 index 0000000..8e3c2eb --- /dev/null +++ b/dash-table-experiments.Rproj @@ -0,0 +1,13 @@ +Version: 1.0 + +RestoreWorkspace: Default +SaveWorkspace: Default +AlwaysSaveHistory: Default + +EnableCodeIndexing: Yes +UseSpacesForTab: Yes +NumSpacesForTab: 2 +Encoding: UTF-8 + +RnwWeave: Sweave +LaTeX: pdfLaTeX diff --git a/dash_table_experiments/metadata.json b/dash_table_experiments/metadata.json index 7070f4d..3a8b99b 100644 --- a/dash_table_experiments/metadata.json +++ b/dash_table_experiments/metadata.json @@ -1,6 +1,7 @@ { "src/components/DataTable.react.js": { "description": "", + "displayName": "DataTable", "methods": [ { "name": "propsToState", @@ -91,6 +92,13 @@ "params": [], "returns": null }, + { + "name": "getMinHeight", + "docblock": null, + "modifiers": [], + "params": [], + "returns": null + }, { "name": "onRowsSelected", "docblock": null, @@ -322,6 +330,7 @@ }, "src/components/EditableTable.react.js": { "description": "", + "displayName": "EditableTable", "methods": [], "props": { "id": { @@ -431,6 +440,7 @@ }, "src/components/VirtualizedTable.react.js": { "description": "", + "displayName": "VirtualizedTable", "methods": [ { "name": "cellRenderer", diff --git a/inst/dash_table_experiments/bundle.js b/inst/dash_table_experiments/bundle.js new file mode 120000 index 0000000..1708425 --- /dev/null +++ b/inst/dash_table_experiments/bundle.js @@ -0,0 +1 @@ +../../dash_table_experiments/bundle.js \ No newline at end of file diff --git a/inst/dash_table_experiments/dash_table_experiments.css b/inst/dash_table_experiments/dash_table_experiments.css new file mode 120000 index 0000000..31e399e --- /dev/null +++ b/inst/dash_table_experiments/dash_table_experiments.css @@ -0,0 +1 @@ +../../dash_table_experiments/dash_table_experiments.css \ No newline at end of file diff --git a/inst/dasher_deps.rds b/inst/dasher_deps.rds new file mode 100644 index 0000000000000000000000000000000000000000..3ccaa4c892180506bca42636a08309a9bfeabd22 GIT binary patch literal 294 zcmV+>0ondST4*^jL0KkKS&mt1zyJWVe}Mn6$q)bo!Vp3L1VF$4-(Ua%umKo`83>g2 zqtP;LO%u?bp`qwx4MPE=A)vwmpc-fZ1d%4ACPAP83_t)HY2+CyAn~<2OKqsZcltE5 zI{grdRG+9ww!xi=1`-w4BxAe#zh&xGaft(r9TOpA5*P$9%*dJDAw2Gc6|zbYbt%l= zU^&woyhghASn5$2-IPi(mIx1b_P>a@7;xYV{3zF5X$N5`)p@@Zh~097uv1l&0;)%* zm`QQcQNEhpas|oBamxWw6DIF!snp%Ops@<{)#WX53tjJDi$|b<#(yoD9CSZr6A?N+ s*{d=rl4npZ+ml1}^g(YIoiwDxL8#lx%>+>nWO)2t$rRy2LOErt01ZlkPyhe` literal 0 HcmV?d00001 diff --git a/inst/transpile.R b/inst/transpile.R new file mode 100644 index 0000000..1017274 --- /dev/null +++ b/inst/transpile.R @@ -0,0 +1,4 @@ +if (!require(dashTranspileR)) remotes::install_github("plotly/dashTranspileR") + +library(dashTranspileR) +transpile_write(transpile()) diff --git a/man/DataTable.Rd b/man/DataTable.Rd new file mode 100644 index 0000000..e2b7a05 --- /dev/null +++ b/man/DataTable.Rd @@ -0,0 +1,55 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/components.R +\name{DataTable} +\alias{DataTable} +\title{DataTable dash-table-experiments component} +\usage{ +DataTable(id = NULL, editable = TRUE, filterable = FALSE, + sortable = TRUE, columns = NULL, row_selectable = FALSE, + selected_row_indices = list(), enable_drag_and_drop = NULL, + header_row_height = NULL, min_height = NULL, min_width = NULL, + row_height = NULL, row_scroll_timeout = NULL, tab_index = NULL, + filters = list(), rows = NULL, row_update = NULL, sortColumn = NULL, + sortDirection = NULL, setProps = NULL) +} +\arguments{ +\item{id}{} + +\item{editable}{} + +\item{filterable}{} + +\item{sortable}{} + +\item{columns}{Order of columns. Note that the column names are specified in `rows` but without order. This attribute allows you to specify a custom order for your columns.} + +\item{row_selectable}{} + +\item{selected_row_indices}{} + +\item{enable_drag_and_drop}{} + +\item{header_row_height}{} + +\item{min_height}{} + +\item{min_width}{} + +\item{row_height}{} + +\item{row_scroll_timeout}{} + +\item{tab_index}{} + +\item{filters}{} + +\item{rows}{} + +\item{row_update}{} + +\item{sortColumn}{} + +\item{sortDirection}{} + +\item{setProps}{} +} diff --git a/man/EditableTable.Rd b/man/EditableTable.Rd new file mode 100644 index 0000000..06d23a4 --- /dev/null +++ b/man/EditableTable.Rd @@ -0,0 +1,41 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/components.R +\name{EditableTable} +\alias{EditableTable} +\title{EditableTable dash-table-experiments component} +\usage{ +EditableTable(id = NULL, changed_data = list(), dataframe = NULL, + column_order = NULL, index_name = "", editable = FALSE, + base_styles = list(numeric = list(`text-align` = "right", `font-family` = + "'Droid Sans Mono', Courier, monospace"), string = list(`text-align` = + "left"), input = list(padding = 0, margin = 0, width = "80px", border = + "none", `font-size` = "1rem"), `input-active` = list(outline = + "#7FDBFF auto 3px"), table = list(`border-collapse` = "collapse", `box-sizing` + = "border-box", `font-size` = "1rem"), thead = list(display = + "table-row-group"), th = list(`text-align` = "left", `font-weight` = "normal", + border = "thin lightgrey solid", width = "80px"), td = list(`white-space` + = "nowrap", border = "thin lightgrey solid", width = "80px", `max-width` = + "80px", `text-overflow` = "ellipsis", `overflow-x` = "hidden")), + merged_styles = list(), types = list(), setProps = NULL) +} +\arguments{ +\item{id}{The ID of the component, used to identify the component in Dash callbacks} + +\item{changed_data}{} + +\item{dataframe}{The data of this table, in the form of a Pandas DataFrame.to_dict() The keys of the dict are the column names and the values are a dict that represents the column where the keys of the column are the values of the index and the values are the rows. For example, { "Column 1": {"0": "Value A", "1": "Value B"}, "Column 2": {"0": 3129, "1": 4931}, } If `editable=True`, then this `dataframe` will be updated when the user changes values} + +\item{column_order}{Order of the columns} + +\item{index_name}{The name of the index column. This name is not included in the `dataframe` object} + +\item{editable}{Whether or not this table is editable} + +\item{base_styles}{CSS styles for all of the different elements in this table. The `base_styles` have a default value. If you want to remove all default styles, set `base_styles` to `{}`.} + +\item{merged_styles}{`merged_styles` is recursively merged into `base_styles`. Use `merged_styles` if you want to update or overwrite a small set of the base styles.} + +\item{types}{} + +\item{setProps}{Dash supplied function} +} diff --git a/man/VirtualizedTable.Rd b/man/VirtualizedTable.Rd new file mode 100644 index 0000000..87d0412 --- /dev/null +++ b/man/VirtualizedTable.Rd @@ -0,0 +1,46 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/components.R +\name{VirtualizedTable} +\alias{VirtualizedTable} +\title{VirtualizedTable dash-table-experiments component} +\usage{ +VirtualizedTable(id = NULL, changed_data = NULL, dataframe = NULL, + display_index = TRUE, index_name = "", editable = TRUE, + styles = list(container = list(`font-size` = "1rem"), cell = + list(`white-space` = "nowrap", `border-left` = "'thin lightgrey solid'", + `border-bottom` = "'thin lightgrey solid'", `border-top` = "none", + `border-right` = "none", `text-overflow` = "ellipsis", `overflow-x` = + "hidden", `box-sizing` = "border-box"), `cell-rightmost` = list(`border-right` + = "'thin lightgrey solid'"), header = list(`text-align` = "left", + `border-left` = "'thin lightgrey solid'", `border-bottom` = + "'thin lightgrey solid'", `border-top` = "'thin lightgrey solid'", + `font-weight` = 600, display = "inline-block", `box-sizing` = "border-box"), + `header-rightmost` = list(`border-right` = "'thin lightgrey solid'")), + column_width = 80, row_height = 20, height = 500, width = 600, + setProps = NULL) +} +\arguments{ +\item{id}{The ID of the component, used to identify the component in Dash callbacks} + +\item{changed_data}{} + +\item{dataframe}{The data of this table, in the form of a Pandas DataFrame.to_dict('split') For example, { 'columns': ['Column 1', 'Column 2', 'Column 3'], 'data': [[1, 2, 3], [4, 3, 1]], 'index': [1, 2, 3] } If `editable=True`, then this `dataframe` will be updated when the user changes values} + +\item{display_index}{Whether or not to show the index column} + +\item{index_name}{The name of the index column. This name is not included in the `dataframe` object} + +\item{editable}{Whether or not this table is editable} + +\item{styles}{CSS styles for all of the different elements in this table. The `styles` have a default value. If you want to remove all default styles, set `styles` to `{}`.} + +\item{column_width}{Column width (in pixels)} + +\item{row_height}{Row height (in pixels)} + +\item{height}{Height of entire table (in pixels)} + +\item{width}{Width of entire table (in pixels)} + +\item{setProps}{Dash supplied function} +} diff --git a/package.json b/package.json index a62e818..0fd1715 100644 --- a/package.json +++ b/package.json @@ -16,15 +16,18 @@ "copy-lib": "cp lib/* dash_table_experiments", "demo": "builder run demo", "install-local": "npm run copy-lib && python setup.py install", + "install-local-r": "npm run copy-lib && Rscript inst/transpile.R && Rscript -e 'roxygen2::roxygenise()' && R CMD install .", "prepublish": "npm test && builder run build-dist && npm run copy-lib", "build-local": "builder run build-dist && npm run copy-lib", "publish-all": "npm publish && python setup.py sdist upload", "publish-pypi": "npm run prepublish && python setup.py sdist upload", + "publish-cran": "npm run prepublish && Rscript -e 'devtools::release()'", "start": "builder run build-dev", "test": "builder run check", "test-watch": "builder run test-frontend-watch", "test-debug": "builder run test-frontend-debug", - "uninstall-local": "pip uninstall dash-table-experiments -y" + "uninstall-local": "pip uninstall dash-table-experiments -y", + "uninstall-local-r": "Rscript -e \"utils::remove.packages(read.dcf('DESCRIPTION')[, 'Package'])\"" }, "dependencies": { "builder": "3.2.2", From 96d2a16a841a136ae57c63d607aa211c7c42f9b1 Mon Sep 17 00:00:00 2001 From: Carson Sievert Date: Thu, 21 Dec 2017 16:03:08 -0600 Subject: [PATCH 2/8] RStudio project --- .gitignore | 1 + dash-table-experiments.Rproj | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index a91c319..dea45d4 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ venv/ *.log .DS_Store .Rproj.user +.Rhistory diff --git a/dash-table-experiments.Rproj b/dash-table-experiments.Rproj index 8e3c2eb..21a4da0 100644 --- a/dash-table-experiments.Rproj +++ b/dash-table-experiments.Rproj @@ -11,3 +11,7 @@ Encoding: UTF-8 RnwWeave: Sweave LaTeX: pdfLaTeX + +BuildType: Package +PackageUseDevtools: Yes +PackageInstallArgs: --no-multiarch --with-keep.source From 28048ab654176df14ca9b8410b198ef143693135 Mon Sep 17 00:00:00 2001 From: Carson Sievert Date: Thu, 21 Dec 2017 16:03:27 -0600 Subject: [PATCH 3/8] add usage.R --- usage.R | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 usage.R diff --git a/usage.R b/usage.R new file mode 100644 index 0000000..49e4289 --- /dev/null +++ b/usage.R @@ -0,0 +1,75 @@ +library(dasher) + +gapminder <- read.csv( + 'https://raw.githubusercontent.com/plotly/datasets/master/gapminderDataFiveYear.csv' +) +gapminder <- gapminder[gapminder$year == 2007, ] + +app <- Dash$new() + +app$layout_set(htmlDiv( + className = "container", + htmlH4('Gapminder 2007 DataTable'), + dashTable::DataTable( + rows = gapminder, + # optional - sets the order of columns + columns = setdiff(names(gapminder), "year"), + editable = FALSE, + row_selectable = TRUE, + filterable = TRUE, + id = 'datatable-gapminder' + ), + htmlDiv(id = 'selected-indexes'), + coreGraph( + id = 'graph-gapminder' + ) +)) + + +app$callback( + function(selectedData = input('graph-gapminder', 'selectedData'), + selected_rows = state('datatable-gapminder', 'selected_row_indices')) { + + if (length(selectedData)) { + countries <- selectedData$points[[1]]$customdata + row_idx <- which(gapminder$country %in% countries) + selected_rows <- unique(c(row_idx, unlist(selected_rows))) + } + + selected_rows + + }, output('datatable-gapminder', 'selected_row_indices') +) + +app$callback( + function(rows = input('datatable-gapminder', 'rows'), + selected_rows = input('datatable-gapminder', 'selected_row_indices')) { + + g <- gapminder[gapminder$country %in% rows[[1]]$country, ] + colors <- rep("black", nrow(g)) + row_idx <- unlist(selected_rows) + if (length(row_idx)) colors[row_idx] <- "red" + + + list( + data = list(list( + x = g$gdpPercap, + y = g$lifeExp, + text = g$country, + customdata = g$country, + mode = "markers", + marker = list(color = colors) + )), + layout = list( + title = "Click and drag to select countries (i.e., rows)", + xaxis = list(title = "GDP Per Capita"), + yaxis = list(title = "Life Expectancy"), + dragmode = "select" + ) + ) + + }, output('graph-gapminder', 'figure') +) + +app$dependencies_set(dash_css()) +app$run_server(showcase = TRUE) From 7ea13e48c67d72044171a24068349ff5a868bf6b Mon Sep 17 00:00:00 2001 From: Carson Sievert Date: Fri, 22 Dec 2017 15:25:43 -0600 Subject: [PATCH 4/8] upgrade to v0.5.3 --- R/components.R | 14 +++++++++----- inst/dasher_deps.rds | Bin 294 -> 294 bytes man/DataTable.Rd | 21 +++++++++++++-------- 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/R/components.R b/R/components.R index a3bba7c..7239a2f 100644 --- a/R/components.R +++ b/R/components.R @@ -4,9 +4,11 @@ #' @description #' @export #' @param id -#' @param editable -#' @param filterable -#' @param sortable +#' @param editable Are the cells in the table editable? If `True`, you can listen to `rows` or `row_update` to get the updated data. +#' @param filterable Should the filtering UI in the Table appear? If `True`, you can listen to `rows` or `row_update` to get the updated data. +#' @param sortable Is the table sortable? If `True`, click on the column headers to sort by that column. If `True`, you can listen to `rows` or `row_update` to get the updated data. +#' @param resizable Are the columns resizble? If `True`, then the columns can be resized by clicking and dragging on the border on the edge of the column header. If `False`, they cannot be resized. +#' @param column_widths Column widths (in pixels) of each column #' @param columns Order of columns. Note that the column names are specified in `rows` but without order. This attribute allows you to specify a custom order for your columns. #' @param row_selectable #' @param selected_row_indices @@ -24,7 +26,7 @@ #' @param sortDirection #' @param setProps -DataTable <- function(id = NULL, editable = TRUE, filterable = FALSE, sortable = TRUE, columns = NULL, row_selectable = FALSE, selected_row_indices = list(), enable_drag_and_drop = NULL, header_row_height = NULL, min_height = NULL, min_width = NULL, row_height = NULL, row_scroll_timeout = NULL, tab_index = NULL, filters = list(), rows = NULL, row_update = NULL, sortColumn = NULL, sortDirection = NULL, setProps = NULL) { +DataTable <- function(id = NULL, editable = TRUE, filterable = FALSE, sortable = TRUE, resizable = TRUE, column_widths = NULL, columns = NULL, row_selectable = FALSE, selected_row_indices = list(), enable_drag_and_drop = NULL, header_row_height = NULL, min_height = NULL, min_width = NULL, row_height = NULL, row_scroll_timeout = NULL, tab_index = NULL, filters = list(), rows = NULL, row_update = NULL, sortColumn = NULL, sortDirection = NULL, setProps = NULL) { component <- list( props = list( @@ -32,6 +34,8 @@ component <- list( editable=editable, filterable=filterable, sortable=sortable, + resizable=resizable, + column_widths=column_widths, columns=columns, row_selectable=row_selectable, selected_row_indices=selected_row_indices, @@ -51,7 +55,7 @@ component <- list( ), type = 'DataTable', namespace = 'dash_table_experiments', - propNames = c('id', 'editable', 'filterable', 'sortable', 'columns', 'row_selectable', 'selected_row_indices', 'enable_drag_and_drop', 'header_row_height', 'min_height', 'min_width', 'row_height', 'row_scroll_timeout', 'tab_index', 'filters', 'rows', 'row_update', 'sortColumn', 'sortDirection', 'setProps'), + propNames = c('id', 'editable', 'filterable', 'sortable', 'resizable', 'column_widths', 'columns', 'row_selectable', 'selected_row_indices', 'enable_drag_and_drop', 'header_row_height', 'min_height', 'min_width', 'row_height', 'row_scroll_timeout', 'tab_index', 'filters', 'rows', 'row_update', 'sortColumn', 'sortDirection', 'setProps'), package = 'dashTable' ) diff --git a/inst/dasher_deps.rds b/inst/dasher_deps.rds index 3ccaa4c892180506bca42636a08309a9bfeabd22..7f850731585e48edf12bc58f128499899e5c3d43 100644 GIT binary patch literal 294 zcmV+>0ondST4*^jL0KkKS!S~OdH?{ke}Mn6$q)bo$`C>T1VF$4-(Ua%umKE)833Ex^$#G*7yueH&<0HbpvVmYBuI>aXwU|RjEw*SMppzTW>>;eP7r$>vhK;qJ6VYv5Dz2~3?wV;M8|jchP)Fhql|&d4vA2w5*P$9%*d79AwAbZ3YjGcI*_oW zq_SxE_@1gOtRxf9%Q=cMw-g7n`ug)6fsOZq{^~c?QbpL=BCq4}NrxXb2GK<|z!g$7 zXbTr9N;kV*zQA0c3zm3_NP=BxmBvXY625T>;pmxT6lmGw# literal 294 zcmV+>0ondST4*^jL0KkKS&mt1zyJWVe}Mn6$q)bo!Vp3L1VF$4-(Ua%umKo`83>g2 zqtP;LO%u?bp`qwx4MPE=A)vwmpc-fZ1d%4ACPAP83_t)HY2+CyAn~<2OKqsZcltE5 zI{grdRG+9ww!xi=1`-w4BxAe#zh&xGaft(r9TOpA5*P$9%*dJDAw2Gc6|zbYbt%l= zU^&woyhghASn5$2-IPi(mIx1b_P>a@7;xYV{3zF5X$N5`)p@@Zh~097uv1l&0;)%* zm`QQcQNEhpas|oBamxWw6DIF!snp%Ops@<{)#WX53tjJDi$|b<#(yoD9CSZr6A?N+ s*{d=rl4npZ+ml1}^g(YIoiwDxL8#lx%>+>nWO)2t$rRy2LOErt01ZlkPyhe` diff --git a/man/DataTable.Rd b/man/DataTable.Rd index e2b7a05..69beed6 100644 --- a/man/DataTable.Rd +++ b/man/DataTable.Rd @@ -5,21 +5,26 @@ \title{DataTable dash-table-experiments component} \usage{ DataTable(id = NULL, editable = TRUE, filterable = FALSE, - sortable = TRUE, columns = NULL, row_selectable = FALSE, - selected_row_indices = list(), enable_drag_and_drop = NULL, - header_row_height = NULL, min_height = NULL, min_width = NULL, - row_height = NULL, row_scroll_timeout = NULL, tab_index = NULL, - filters = list(), rows = NULL, row_update = NULL, sortColumn = NULL, + sortable = TRUE, resizable = TRUE, column_widths = NULL, + columns = NULL, row_selectable = FALSE, selected_row_indices = list(), + enable_drag_and_drop = NULL, header_row_height = NULL, + min_height = NULL, min_width = NULL, row_height = NULL, + row_scroll_timeout = NULL, tab_index = NULL, filters = list(), + rows = NULL, row_update = NULL, sortColumn = NULL, sortDirection = NULL, setProps = NULL) } \arguments{ \item{id}{} -\item{editable}{} +\item{editable}{Are the cells in the table editable? If `True`, you can listen to `rows` or `row_update` to get the updated data.} -\item{filterable}{} +\item{filterable}{Should the filtering UI in the Table appear? If `True`, you can listen to `rows` or `row_update` to get the updated data.} -\item{sortable}{} +\item{sortable}{Is the table sortable? If `True`, click on the column headers to sort by that column. If `True`, you can listen to `rows` or `row_update` to get the updated data.} + +\item{resizable}{Are the columns resizble? If `True`, then the columns can be resized by clicking and dragging on the border on the edge of the column header. If `False`, they cannot be resized.} + +\item{column_widths}{Column widths (in pixels) of each column} \item{columns}{Order of columns. Note that the column names are specified in `rows` but without order. This attribute allows you to specify a custom order for your columns.} From 4f5d57412fb86c975776090e173ff33e7f792432 Mon Sep 17 00:00:00 2001 From: Carson Sievert Date: Fri, 2 Mar 2018 11:34:13 -0500 Subject: [PATCH 5/8] update R package (npm run install-local-r) --- R/components.R | 6 ++++-- inst/dasher_deps.rds | Bin 294 -> 294 bytes man/DataTable.Rd | 8 +++++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/R/components.R b/R/components.R index 7239a2f..9bf485a 100644 --- a/R/components.R +++ b/R/components.R @@ -16,6 +16,7 @@ #' @param header_row_height #' @param min_height #' @param min_width +#' @param max_rows_in_viewport Maximum number of of rows to display in the viewport. If `max_rows_in_viewport` is 10, then if there are 15 rows, only 10 will be displayed in the viewport but if there are 5 rows, then the viewport will shrink to only show those 5 rows. This takes precedence over `min_height`. #' @param row_height #' @param row_scroll_timeout #' @param tab_index @@ -26,7 +27,7 @@ #' @param sortDirection #' @param setProps -DataTable <- function(id = NULL, editable = TRUE, filterable = FALSE, sortable = TRUE, resizable = TRUE, column_widths = NULL, columns = NULL, row_selectable = FALSE, selected_row_indices = list(), enable_drag_and_drop = NULL, header_row_height = NULL, min_height = NULL, min_width = NULL, row_height = NULL, row_scroll_timeout = NULL, tab_index = NULL, filters = list(), rows = NULL, row_update = NULL, sortColumn = NULL, sortDirection = NULL, setProps = NULL) { +DataTable <- function(id = NULL, editable = TRUE, filterable = FALSE, sortable = TRUE, resizable = TRUE, column_widths = NULL, columns = NULL, row_selectable = FALSE, selected_row_indices = list(), enable_drag_and_drop = NULL, header_row_height = NULL, min_height = NULL, min_width = NULL, max_rows_in_viewport = NULL, row_height = 35, row_scroll_timeout = NULL, tab_index = NULL, filters = list(), rows = NULL, row_update = NULL, sortColumn = NULL, sortDirection = NULL, setProps = NULL) { component <- list( props = list( @@ -43,6 +44,7 @@ component <- list( header_row_height=header_row_height, min_height=min_height, min_width=min_width, + max_rows_in_viewport=max_rows_in_viewport, row_height=row_height, row_scroll_timeout=row_scroll_timeout, tab_index=tab_index, @@ -55,7 +57,7 @@ component <- list( ), type = 'DataTable', namespace = 'dash_table_experiments', - propNames = c('id', 'editable', 'filterable', 'sortable', 'resizable', 'column_widths', 'columns', 'row_selectable', 'selected_row_indices', 'enable_drag_and_drop', 'header_row_height', 'min_height', 'min_width', 'row_height', 'row_scroll_timeout', 'tab_index', 'filters', 'rows', 'row_update', 'sortColumn', 'sortDirection', 'setProps'), + propNames = c('id', 'editable', 'filterable', 'sortable', 'resizable', 'column_widths', 'columns', 'row_selectable', 'selected_row_indices', 'enable_drag_and_drop', 'header_row_height', 'min_height', 'min_width', 'max_rows_in_viewport', 'row_height', 'row_scroll_timeout', 'tab_index', 'filters', 'rows', 'row_update', 'sortColumn', 'sortDirection', 'setProps'), package = 'dashTable' ) diff --git a/inst/dasher_deps.rds b/inst/dasher_deps.rds index 7f850731585e48edf12bc58f128499899e5c3d43..17a1bf283ec4aea18163580ef0d341dcb4968b20 100644 GIT binary patch literal 294 zcmV+>0ondST4*^jL0KkKS(zY4cmM#ie}Mn6$q)bo!4N_K1VF$4-(Ua%umKo`83>g2 zqtP;LO%u?bp`qwx4MPE=A)vwmpc-fZ1d%4ACPAP83_t)HY2+CyAn~<2OKqsZcltE5 zI{grdRG+9ww!xi=1`-w4BxAe#zh&xGaft(r9TOpA5*P$9%*dJDAw2Gc6|zbYbt%l= zU^&woyhghASn5$2-IPi(mIx1b_P>a@7;xYV{3zF5X$N5`)p@@Zh~097uv1l&0;)%* zm`QQcQNEhpas|oBamxWw6DIF!snp%Ops@<{)#WX53tjJDi$|b<#(yoD9CSZr6A?N+ s*{d=rl4npZ+ml1}^g(YIoiwDxL8#lx%>+>nWO)2t$rRy2LS%s%;A3lnN&o-= literal 294 zcmV+>0ondST4*^jL0KkKS!S~OdH?{ke}Mn6$q)bo$`C>T1VF$4-(Ua%umKE)833Ex^$#G*7yueH&<0HbpvVmYBuI>aXwU|RjEw*SMppzTW>>;eP7r$>vhK;qJ6VYv5Dz2~3?wV;M8|jchP)Fhql|&d4vA2w5*P$9%*d79AwAbZ3YjGcI*_oW zq_SxE_@1gOtRxf9%Q=cMw-g7n`ug)6fsOZq{^~c?QbpL=BCq4}NrxXb2GK<|z!g$7 zXbTr9N;kV*zQA0c3zm3_NP=BxmBvXY625T>;pmxT6lmGw# diff --git a/man/DataTable.Rd b/man/DataTable.Rd index 69beed6..716c3d9 100644 --- a/man/DataTable.Rd +++ b/man/DataTable.Rd @@ -8,9 +8,9 @@ DataTable(id = NULL, editable = TRUE, filterable = FALSE, sortable = TRUE, resizable = TRUE, column_widths = NULL, columns = NULL, row_selectable = FALSE, selected_row_indices = list(), enable_drag_and_drop = NULL, header_row_height = NULL, - min_height = NULL, min_width = NULL, row_height = NULL, - row_scroll_timeout = NULL, tab_index = NULL, filters = list(), - rows = NULL, row_update = NULL, sortColumn = NULL, + min_height = NULL, min_width = NULL, max_rows_in_viewport = NULL, + row_height = 35, row_scroll_timeout = NULL, tab_index = NULL, + filters = list(), rows = NULL, row_update = NULL, sortColumn = NULL, sortDirection = NULL, setProps = NULL) } \arguments{ @@ -40,6 +40,8 @@ DataTable(id = NULL, editable = TRUE, filterable = FALSE, \item{min_width}{} +\item{max_rows_in_viewport}{Maximum number of of rows to display in the viewport. If `max_rows_in_viewport` is 10, then if there are 15 rows, only 10 will be displayed in the viewport but if there are 5 rows, then the viewport will shrink to only show those 5 rows. This takes precedence over `min_height`.} + \item{row_height}{} \item{row_scroll_timeout}{} From 630a8618498f170d99f5e8d58ede21d85d846428 Mon Sep 17 00:00:00 2001 From: Carson Sievert Date: Thu, 10 May 2018 11:02:24 -0500 Subject: [PATCH 6/8] dashTranspileR -> dashRtranspile --- inst/transpile.R | 4 ---- package.json | 2 +- tools/transpile.R | 4 ++++ 3 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 inst/transpile.R create mode 100644 tools/transpile.R diff --git a/inst/transpile.R b/inst/transpile.R deleted file mode 100644 index 1017274..0000000 --- a/inst/transpile.R +++ /dev/null @@ -1,4 +0,0 @@ -if (!require(dashTranspileR)) remotes::install_github("plotly/dashTranspileR") - -library(dashTranspileR) -transpile_write(transpile()) diff --git a/package.json b/package.json index 8b5f347..8626189 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "copy-lib": "cp lib/* dash_table_experiments", "demo": "builder run demo", "install-local": "npm run copy-lib && python setup.py install", - "install-local-r": "npm run copy-lib && Rscript inst/transpile.R && Rscript -e 'roxygen2::roxygenise()' && R CMD install .", + "install-local-r": "npm run copy-lib && Rscript tools/transpile.R && Rscript -e 'roxygen2::roxygenise()' && R CMD install .", "prepublish": "npm test && builder run build-dist && npm run copy-lib", "build-local": "builder run build-dist && npm run copy-lib", "publish-all": "npm publish && python setup.py sdist upload", diff --git a/tools/transpile.R b/tools/transpile.R new file mode 100644 index 0000000..adec214 --- /dev/null +++ b/tools/transpile.R @@ -0,0 +1,4 @@ +if (!require(dashRtranspile)) remotes::install_github("plotly/dashRtranspile") + +library(dashRtranspile) +transpile_write(transpile()) From bd98062ea9cc28e291e06cb50758f94f7f58cfde Mon Sep 17 00:00:00 2001 From: Carson Sievert Date: Thu, 10 May 2018 11:11:27 -0500 Subject: [PATCH 7/8] new transpile method --- R/components.R | 92 ++++++++++++++-------------------------- inst/dashR_deps.rds | Bin 0 -> 297 bytes inst/dasher_deps.rds | Bin 294 -> 0 bytes man/DataTable.Rd | 2 +- man/EditableTable.Rd | 2 +- man/VirtualizedTable.Rd | 19 ++++----- 6 files changed, 43 insertions(+), 72 deletions(-) create mode 100644 inst/dashR_deps.rds delete mode 100644 inst/dasher_deps.rds diff --git a/R/components.R b/R/components.R index 9bf485a..7e533b6 100644 --- a/R/components.R +++ b/R/components.R @@ -1,6 +1,6 @@ -# Auto-generated by dashTranspileR -- do not edit by hand +# Auto-generated by dashRtranspile -- do not edit by hand -#' DataTable dash-table-experiments component +#' DataTable component #' @description #' @export #' @param id @@ -63,37 +63,13 @@ component <- list( component$props <- filter_null(component$props) -structure(component, class = c('dash_component', 'list')) -} - -filter_null <- function(x) { - if (length(x) == 0 || !is.list(x)) return(x) - x[!vapply(x, is.null, logical(1))] +structure(component, class = c('dash_component', 'list')) } -assert_valid_children <- function(...) { - kids <- list(...) - if (length(kids) == 0) return(NULL) - assert_no_names(kids) -} +# Auto-generated by dashRtranspile -- do not edit by hand -assert_no_names <- function(x) { - nms <- names(x) - if (!is.null(nms)) { - stop( - sprintf( - "Didn't recognize the following named arguments: '%s'", - paste(nms, collapse = "', '") - ), call. = FALSE - ) - } - names(x) <- NULL - x -} -# Auto-generated by dashTranspileR -- do not edit by hand - -#' EditableTable dash-table-experiments component +#' EditableTable component #' @description #' @export #' @param id The ID of the component, used to identify the component in Dash callbacks @@ -131,37 +107,13 @@ component <- list( component$props <- filter_null(component$props) -structure(component, class = c('dash_component', 'list')) -} - -filter_null <- function(x) { - if (length(x) == 0 || !is.list(x)) return(x) - x[!vapply(x, is.null, logical(1))] +structure(component, class = c('dash_component', 'list')) } -assert_valid_children <- function(...) { - kids <- list(...) - if (length(kids) == 0) return(NULL) - assert_no_names(kids) -} +# Auto-generated by dashRtranspile -- do not edit by hand -assert_no_names <- function(x) { - nms <- names(x) - if (!is.null(nms)) { - stop( - sprintf( - "Didn't recognize the following named arguments: '%s'", - paste(nms, collapse = "', '") - ), call. = FALSE - ) - } - names(x) <- NULL - x -} -# Auto-generated by dashTranspileR -- do not edit by hand - -#' VirtualizedTable dash-table-experiments component +#' VirtualizedTable component #' @description #' @export #' @param id The ID of the component, used to identify the component in Dash callbacks @@ -177,8 +129,8 @@ assert_no_names <- function(x) { #' @param width Width of entire table (in pixels) #' @param setProps Dash supplied function -VirtualizedTable <- function(id = NULL, changed_data = NULL, dataframe = NULL, display_index = TRUE, index_name = '', editable = TRUE, styles = list(container = list(`font-size` = "1rem"), cell = list(`white-space` = "nowrap", `border-left` = "'thin lightgrey solid'", `border-bottom` = "'thin lightgrey solid'", `border-top` = "none", `border-right` = "none", `text-overflow` = "ellipsis", `overflow-x` = "hidden", `box-sizing` = "border-box"), `cell-rightmost` = list(`border-right` = "'thin lightgrey solid'"), header = list(`text-align` = "left", `border-left` = "'thin lightgrey solid'", `border-bottom` = "'thin lightgrey solid'", `border-top` = "'thin lightgrey solid'", - `font-weight` = 600, display = "inline-block", `box-sizing` = "border-box"), `header-rightmost` = list(`border-right` = "'thin lightgrey solid'")), column_width = 80, row_height = 20, height = 500, width = 600, setProps = NULL) { +VirtualizedTable <- function(id = NULL, changed_data = NULL, dataframe = NULL, display_index = TRUE, index_name = '', editable = TRUE, styles = list(container = list(`font-size` = "1rem"), cell = list(`white-space` = "nowrap", `border-left` = "thin lightgrey solid", `border-bottom` = "thin lightgrey solid", `border-top` = "none", `border-right` = "none", `text-overflow` = "ellipsis", `overflow-x` = "hidden", `box-sizing` = "border-box"), `cell-rightmost` = list(`border-right` = "thin lightgrey solid"), header = list(`text-align` = "left", `border-left` = "thin lightgrey solid", `border-bottom` = "thin lightgrey solid", `border-top` = "thin lightgrey solid", + `font-weight` = 600, display = "inline-block", `box-sizing` = "border-box"), `header-rightmost` = list(`border-right` = "thin lightgrey solid")), column_width = 80, row_height = 20, height = 500, width = 600, setProps = NULL) { component <- list( props = list( @@ -203,6 +155,7 @@ component <- list( component$props <- filter_null(component$props) + structure(component, class = c('dash_component', 'list')) } @@ -212,12 +165,31 @@ filter_null <- function(x) { x[!vapply(x, is.null, logical(1))] } -assert_valid_children <- function(...) { +assert_valid_children <- function(..., wildcards = NULL) { kids <- list(...) - if (length(kids) == 0) return(NULL) + if (length(wildcards)) { + pattern <- paste(paste0('^', wildcards), collapse = '|') + kids <- kids[!grepl(pattern, names2(kids))] + } + if (!length(kids)) return(NULL) assert_no_names(kids) } +append_wildcard_props <- function(component, wildcards = NULL, ...) { + attrs <- list(...) + if (!length(attrs) || !length(wildcards)) return(component) + pattern <- paste(paste0('^', wildcards), collapse = '|') + attrs_wild <- attrs[grepl(pattern, names2(attrs))] + if (!length(attrs_wild)) return(component) + component[['props']] <- c(component[['props']] %||% list(), attrs_wild) + component[['propNames']] <- c(component[['propNames']], names(attrs_wild)) + component +} + +names2 <- function(x) names(x) %||% rep('', length(x)) + +`%||%` <- function(x, y) if (length(x)) x else y + assert_no_names <- function(x) { nms <- names(x) if (!is.null(nms)) { diff --git a/inst/dashR_deps.rds b/inst/dashR_deps.rds new file mode 100644 index 0000000000000000000000000000000000000000..d63891468a29ead511703f05c5991de3506fc3e8 GIT binary patch literal 297 zcmV+^0oMLPT4*^jL0KkKS&eDW!2kfWe}Mn6$q)bo!4N_K1VF$4-(Ua%umKo`83>g2 zqtP;LO%u?bp`qwx4MPE=A)vwmpc-fZ1d1oBGM<2pm;h*)nq}k5>{cwSDDe4FXg%tiSK@z4EMxCUKmRQWh~GfQB~FQ%Fst8vrb6Db7lh zk+i^a!yEsi%Rcx?QX?C(iAFNP0q*|S@fQOQ907lY8tbhf>?Jy{H{y{Su26OgYO-Ke zNc7VQE;>p#(_5}Uxj8O5U@9VH-R)I6o40fpAzqrirLG}sz3cI4^bi=&<+CG>hwP$a vCr7(AWIK_!XnwwkE#mX0l$eM$8+loviXqI8AB(vnoG3^}wCCV}J?n(6 literal 0 HcmV?d00001 diff --git a/inst/dasher_deps.rds b/inst/dasher_deps.rds deleted file mode 100644 index 17a1bf283ec4aea18163580ef0d341dcb4968b20..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 294 zcmV+>0ondST4*^jL0KkKS(zY4cmM#ie}Mn6$q)bo!4N_K1VF$4-(Ua%umKo`83>g2 zqtP;LO%u?bp`qwx4MPE=A)vwmpc-fZ1d%4ACPAP83_t)HY2+CyAn~<2OKqsZcltE5 zI{grdRG+9ww!xi=1`-w4BxAe#zh&xGaft(r9TOpA5*P$9%*dJDAw2Gc6|zbYbt%l= zU^&woyhghASn5$2-IPi(mIx1b_P>a@7;xYV{3zF5X$N5`)p@@Zh~097uv1l&0;)%* zm`QQcQNEhpas|oBamxWw6DIF!snp%Ops@<{)#WX53tjJDi$|b<#(yoD9CSZr6A?N+ s*{d=rl4npZ+ml1}^g(YIoiwDxL8#lx%>+>nWO)2t$rRy2LS%s%;A3lnN&o-= diff --git a/man/DataTable.Rd b/man/DataTable.Rd index 716c3d9..ad73cdd 100644 --- a/man/DataTable.Rd +++ b/man/DataTable.Rd @@ -2,7 +2,7 @@ % Please edit documentation in R/components.R \name{DataTable} \alias{DataTable} -\title{DataTable dash-table-experiments component} +\title{DataTable component} \usage{ DataTable(id = NULL, editable = TRUE, filterable = FALSE, sortable = TRUE, resizable = TRUE, column_widths = NULL, diff --git a/man/EditableTable.Rd b/man/EditableTable.Rd index 06d23a4..8fade08 100644 --- a/man/EditableTable.Rd +++ b/man/EditableTable.Rd @@ -2,7 +2,7 @@ % Please edit documentation in R/components.R \name{EditableTable} \alias{EditableTable} -\title{EditableTable dash-table-experiments component} +\title{EditableTable component} \usage{ EditableTable(id = NULL, changed_data = list(), dataframe = NULL, column_order = NULL, index_name = "", editable = FALSE, diff --git a/man/VirtualizedTable.Rd b/man/VirtualizedTable.Rd index 87d0412..09d89ba 100644 --- a/man/VirtualizedTable.Rd +++ b/man/VirtualizedTable.Rd @@ -2,22 +2,21 @@ % Please edit documentation in R/components.R \name{VirtualizedTable} \alias{VirtualizedTable} -\title{VirtualizedTable dash-table-experiments component} +\title{VirtualizedTable component} \usage{ VirtualizedTable(id = NULL, changed_data = NULL, dataframe = NULL, display_index = TRUE, index_name = "", editable = TRUE, styles = list(container = list(`font-size` = "1rem"), cell = - list(`white-space` = "nowrap", `border-left` = "'thin lightgrey solid'", - `border-bottom` = "'thin lightgrey solid'", `border-top` = "none", + list(`white-space` = "nowrap", `border-left` = "thin lightgrey solid", + `border-bottom` = "thin lightgrey solid", `border-top` = "none", `border-right` = "none", `text-overflow` = "ellipsis", `overflow-x` = "hidden", `box-sizing` = "border-box"), `cell-rightmost` = list(`border-right` - = "'thin lightgrey solid'"), header = list(`text-align` = "left", - `border-left` = "'thin lightgrey solid'", `border-bottom` = - "'thin lightgrey solid'", `border-top` = "'thin lightgrey solid'", - `font-weight` = 600, display = "inline-block", `box-sizing` = "border-box"), - `header-rightmost` = list(`border-right` = "'thin lightgrey solid'")), - column_width = 80, row_height = 20, height = 500, width = 600, - setProps = NULL) + = "thin lightgrey solid"), header = list(`text-align` = "left", `border-left` + = "thin lightgrey solid", `border-bottom` = "thin lightgrey solid", + `border-top` = "thin lightgrey solid", `font-weight` = 600, display = + "inline-block", `box-sizing` = "border-box"), `header-rightmost` = + list(`border-right` = "thin lightgrey solid")), column_width = 80, + row_height = 20, height = 500, width = 600, setProps = NULL) } \arguments{ \item{id}{The ID of the component, used to identify the component in Dash callbacks} From 95fe2055fc305fd78f1d74f94d4868d1150d99ee Mon Sep 17 00:00:00 2001 From: Carson Sievert Date: Sat, 16 Jun 2018 20:10:54 -0500 Subject: [PATCH 8/8] unignore bundle so we can install from GH --- .gitignore | 1 - dash_table_experiments/bundle.js | 61 ++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 dash_table_experiments/bundle.js diff --git a/.gitignore b/.gitignore index e3517fd..369aaec 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,6 @@ dist/ lib/ lib/bundle.js* node_modules/ -dash_table_experiments/bundle.js* .npm vv/ venv/ diff --git a/dash_table_experiments/bundle.js b/dash_table_experiments/bundle.js new file mode 100644 index 0000000..ae543b9 --- /dev/null +++ b/dash_table_experiments/bundle.js @@ -0,0 +1,61 @@ +this.dash_table_experiments=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.VirtualizedTable=t.EditableTable=t.DataTable=void 0;var o=n(204),i=r(o),a=n(205),s=r(a),u=n(203),l=r(u);t.DataTable=l.default,t.EditableTable=i.default,t.VirtualizedTable=s.default},function(e,t,n){var r=n(3),o=n(71);e.exports=function(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return o(n)?t:r(function(t){return e(n,t)});default:return o(n)&&o(i)?t:o(n)?r(function(t){return e(t,i)}):o(i)?r(function(t){return e(n,t)}):e(n,i)}}}},function(e,t,n){e.exports=n(265)()},function(e,t,n){var r=n(71);e.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},function(e,t,n){var r=n(3),o=n(1),i=n(71);e.exports=function(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return i(n)?t:o(function(t,r){return e(n,t,r)});case 2:return i(n)&&i(a)?t:i(n)?o(function(t,n){return e(t,a,n)}):i(a)?o(function(t,r){return e(n,t,r)}):r(function(t){return e(n,a,t)});default:return i(n)&&i(a)&&i(s)?t:i(n)&&i(a)?o(function(t,n){return e(t,n,s)}):i(n)&&i(s)?o(function(t,n){return e(t,a,n)}):i(a)&&i(s)?o(function(t,r){return e(n,t,r)}):i(n)?r(function(t){return e(t,a,s)}):i(a)?r(function(t){return e(n,t,s)}):i(s)?r(function(t){return e(n,a,t)}):e(n,a,s)}}}},function(e,t){!function(){e.exports=this.React}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var i=n(5),a=(o(i),n(118));r(a)},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(213),i=r(o);t.default=function(){function e(e,t){for(var n=0;n=0;)s=t[u],o(s,r)&&!a(l,s)&&(l[l.length]=s),u-=1;return l}:function(e){return Object(e)!==e?[]:Object.keys(e)})}()},function(e,t,n){var r=n(4),o=n(20);e.exports=r(o)},function(e,t,n){var r=n(91)("wks"),o=n(62),i=n(27).Symbol,a="function"==typeof i,s=e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))};s.store=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t){e.exports=function(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}},function(e,t,n){e.exports=!n(40)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(27),o=n(14),i=n(125),a=n(41),s=n(32),u="prototype",l=function(e,t,n){var c,f,d,p=e&l.F,h=e&l.G,v=e&l.S,g=e&l.P,y=e&l.B,m=e&l.W,b=h?o:o[t]||(o[t]={}),w=b[u],_=h?r:v?r[t]:(r[t]||{})[u];h&&(n=t);for(c in n)f=!p&&_&&void 0!==_[c],f&&s(b,c)||(d=f?_[c]:n[c],b[c]=h&&"function"!=typeof _[c]?n[c]:y&&f?i(d,r):m&&_[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[u]=e[u],t}(d):g&&"function"==typeof d?i(Function.call,d):d,g&&((b.virtual||(b.virtual={}))[c]=d,e&l.R&&w&&!w[c]&&a(w,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(39),o=n(127),i=n(93),a=Object.defineProperty;t.f=n(30)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(128),o=n(83);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(156);e.exports=function(e,t){return r(t,e,0)>=0}},function(e,t,n){var r=n(49),o=n(4);e.exports=o(r("slice",function(e,t,n){return Array.prototype.slice.call(n,e,t)}))},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t,n){var r,o;/*! + Copyright (c) 2016 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames + */ +!function(){"use strict";function n(){for(var e=[],t=0;te?t:e})},function(e,t,n){"use strict"},function(e,t){e.exports={}},function(e,t,n){var r=n(132),o=n(84);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(28);e.exports=function(e,t){return function(){var n=arguments.length;if(0===n)return t();var o=arguments[n-1];return r(o)||"function"!=typeof o[e]?t.apply(this,arguments):o[e].apply(o,Array.prototype.slice.call(arguments,0,n-1))}}},function(e,t){e.exports=function(e){return"[object String]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(1),o=n(70),i=n(15),a=n(55);e.exports=r(function(e,t){return i(e+1,function(){var n=arguments[e];if(null!=n&&o(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(a(n)+' does not have a method named "'+t+'"')})})},function(e,t,n){var r=n(1),o=n(50);e.exports=r(function(e,t){var n=e<0?t.length+e:e;return o(t)?t.charAt(n):t[n]})},function(e,t,n){var r=n(1);e.exports=r(function(e,t){for(var n=t,r=0;r=t?e.call():i.id=(0,r.raf)(o)},i={id:(0,r.raf)(o)};return i}},function(e,t){e.exports=!0},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(83);e.exports=function(e){return Object(r(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(1);e.exports=r(function(e,t){return Number(e)+Number(t)})},function(e,t,n){var r=n(4);e.exports=r(function(e,t,n){var r={};for(var o in n)r[o]=n[o];return r[e]=t,r})},function(e,t,n){var r=n(3),o=n(15);e.exports=r(function(e){return o(e.length,e)})},function(e,t,n){var r=n(3),o=n(65);e.exports=r(function(e){return o(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)})})},function(e,t){e.exports=function(e,t,n){for(var r=0,o=n.length;r=arguments.length)?c=n[l]:(c=arguments[s],s+=1),a[l]=c,o(c)||(u-=1),l+=1}return u<=0?i.apply(this,a):r(u,e(t,a,i))}}},function(e,t,n){var r=n(3),o=n(28),i=n(50);e.exports=r(function(e){return!!o(e)||!!e&&("object"==typeof e&&(!i(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})},function(e,t){e.exports=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e&&e["@@functional/placeholder"]===!0}},function(e,t){e.exports=function(e,t){for(var n=0,r=t.length,o=Array(r);n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(39),o=n(240),i=n(84),a=n(90)("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=n(126)("iframe"),r=i.length,o="<",a=">";for(t.style.display="none",n(234).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+a+"document.F=Object"+o+"/script"+a),e.close(),l=e.F;r--;)delete l[u][i[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[a]=e):n=l(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(59),o=n(60),i=n(34),a=n(93),s=n(32),u=n(127),l=Object.getOwnPropertyDescriptor;t.f=n(30)?l:function(e,t){if(e=i(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(31),o=n(14),i=n(40);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(33).f,o=n(32),i=n(26)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(91)("keys"),o=n(62);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(14),o=n(27),i="__core-js_shared__",a=o[i]||(o[i]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(58)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(42);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(27),o=n(14),i=n(58),a=n(95),s=n(33).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(26)},function(e,t,n){"use strict";var r=n(243)(!0);n(129)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){n(249);for(var r=n(27),o=n(41),i=n(47),a=n(26)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;uthis._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(o-r))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,o=e.currentOffset,i=e.targetIndex;o=this._safeOffsetToOffset({containerSize:r,offset:o});var a=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:r,currentOffset:o,targetIndex:i});return this._offsetToSafeOffset({containerSize:r,offset:a})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,r=e.totalSize;return r<=t?0:n/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(r===o)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(r===o)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}}]),e}());t.default=p},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var o=n(5);r(o)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return e}function i(){}Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_SCROLLING_RESET_TIME_INTERVAL=void 0;var a=n(22),s=r(a),u=n(11),l=r(u),c=n(7),f=r(c),d=n(8),p=r(d),h=n(13),v=r(h),g=n(12),y=r(g),m=n(5),b=r(m),w=n(38),_=r(w),x=n(493),C=r(x),S=n(57),O=(n(57).babelPluginFlowReactPropTypes_proptype_AnimationTimeoutId||n(2).any,{}),R=t.DEFAULT_SCROLLING_RESET_TIME_INTERVAL=150,E=function(e){function t(e,n){(0,f.default)(this,t);var r=(0,v.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e,n));return r._invalidateOnUpdateStartIndex=null,r._invalidateOnUpdateStopIndex=null,r._positionCache=new C.default,r._startIndex=null,r._startIndexMemoized=null,r._stopIndex=null,r._stopIndexMemoized=null,r.state={isScrolling:!1,scrollTop:0},r._debounceResetIsScrollingCallback=r._debounceResetIsScrollingCallback.bind(r),r._setScrollingContainerRef=r._setScrollingContainerRef.bind(r),r._onScroll=r._onScroll.bind(r),r}return(0,y.default)(t,e),(0,p.default)(t,[{key:"clearCellPositions",value:function(){this._positionCache=new C.default,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new C.default,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&(0,S.cancelAnimationTimeout)(this._debounceResetIsScrollingId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollTop;t!==e.scrollTop&&(this._debounceResetIsScrolling(),this.setState({isScrolling:!0,scrollTop:e.scrollTop}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.autoHeight,r=t.cellCount,o=t.cellMeasurerCache,i=t.cellRenderer,a=t.className,u=t.height,l=t.id,c=t.keyMapper,f=t.overscanByPixels,d=t.role,p=t.style,h=t.tabIndex,v=t.width,g=this.state,y=g.isScrolling,m=g.scrollTop,w=[],x=this._getEstimatedTotalHeight(),C=this._positionCache.shortestColumnSize,S=this._positionCache.count,O=0,R=void 0;if(this._positionCache.range(Math.max(0,m-f),u+2*f,function(t,n,r){"undefined"==typeof R?(O=t,R=t):(O=Math.min(O,t),R=Math.max(R,t)),w.push(i({index:t,isScrolling:y,key:c(t),parent:e,style:{height:o.getHeight(t),left:n,position:"absolute",top:r,width:o.getWidth(t)}}))}),C0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var r=n.callback,o=n.indices,i=(0,a.default)(o),s=!e||i.every(function(e){var t=o[e];return Array.isArray(t)?t.length>0:t>=0}),u=i.length!==(0,a.default)(t).length||i.some(function(e){var n=t[e],r=o[e];return Array.isArray(r)?n.join(",")!==r.join(","):n!==r});t=o,s&&u&&r(o)}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(122),a=r(i);t.default=o},function(e,t,n){e.exports={default:n(226),__esModule:!0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(217),i=r(o),a=n(216),s=r(a),u="function"==typeof s.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===u(i.default)?function(e){return"undefined"==typeof e?"undefined":u(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"==typeof e?"undefined":u(e)}},function(e,t,n){var r=n(82),o=n(26)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),o))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){var r=n(230);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(42),o=n(27).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){e.exports=!n(30)&&!n(40)(function(){return 7!=Object.defineProperty(n(126)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(82);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var r=n(58),o=n(31),i=n(133),a=n(41),s=n(47),u=n(236),l=n(89),c=n(131),f=n(26)("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",v="values",g=function(){return this};e.exports=function(e,t,n,y,m,b,w){u(n,t,y);var _,x,C,S=function(e){if(!d&&e in I)return I[e];switch(e){case h:return function(){return new n(this,e)};case v:return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",R=m==v,E=!1,I=e.prototype,D=I[f]||I[p]||m&&I[m],M=D||S(m),T=m?R?S("entries"):M:void 0,k="Array"==t?I.entries||D:D;if(k&&(C=c(k.call(new e)),C!==Object.prototype&&C.next&&(l(C,O,!0),r||"function"==typeof C[f]||a(C,f,g))),R&&D&&D.name!==v&&(E=!0,M=function(){return D.call(this)}),r&&!w||!d&&!E&&I[f]||a(I,f,M),s[t]=M,s[O]=g,m)if(_={values:R?M:S(v),keys:b?M:S(h),entries:T},w)for(x in _)x in I||i(I,x,_[x]);else o(o.P+o.F*(d||E),t,_);return _}},function(e,t,n){var r=n(132),o=n(84).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(32),o=n(61),i=n(90)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(32),o=n(34),i=n(232)(!1),a=n(90)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){e.exports=n(41)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((!a&&0!==a||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return a};var o=n(261),i=r(o),a=void 0;e.exports=t.default},function(e,t,n){var r=n(21),o=n(4);e.exports=o(function(e,t,n){if(t>=n.length||t<-n.length)return n;var o=t<0?n.length:0,i=o+t,a=r(n);return a[i]=e(n[i]),a})},function(e,t,n){var r=n(1);e.exports=r(function(e,t){return e&&t})},function(e,t,n){var r=n(1),o=n(9),i=n(160);e.exports=r(o(["any"],i,function(e,t){for(var n=0;n1){var c=!u(r)&&o(l,r)?r[l]:a(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,c)}if(a(l)&&i(r)){var f=[].concat(r);return f[l]=n,f}return s(l,n,r)})},function(e,t,n){var r=n(23),o=n(1);e.exports=o(function(e,t){return r(e.length,function(){return e.apply(t,arguments)})})},function(e,t,n){var r=n(99),o=n(100),i=n(18);e.exports=function(){if(0===arguments.length)throw new Error("composeK requires at least one argument");var e=Array.prototype.slice.call(arguments),t=e.pop();return o(o.apply(this,i(r,e)),t)}},function(e,t,n){var r=n(1),o=n(65),i=n(76);e.exports=r(function(e,t){if(e>10)throw new Error("Constructor with greater than ten arguments");return 0===e?function(){return new t}:o(i(e,function(e,n,r,o,i,a,s,u,l,c){switch(arguments.length){case 1:return new t(e);case 2:return new t(e,n);case 3:return new t(e,n,r);case 4:return new t(e,n,r,o);case 5:return new t(e,n,r,o,i);case 6:return new t(e,n,r,o,i,a);case 7:return new t(e,n,r,o,i,a,s);case 8:return new t(e,n,r,o,i,a,s,u);case 9:return new t(e,n,r,o,i,a,s,u,l);case 10:return new t(e,n,r,o,i,a,s,u,l,c)}}))})},function(e,t,n){var r=n(1),o=n(72),i=n(15),a=n(45),s=n(54),u=n(25);e.exports=r(function(e,t){return i(u(a,0,s("length",t)),function(){var n=arguments,r=this;return e.apply(r,o(function(e){return e.apply(r,n)},t))})})},function(e,t,n){var r=n(1);e.exports=r(function(e,t){return null==t||t!==t?e:t})},function(e,t,n){var r=n(35),o=n(1);e.exports=o(function(e,t){for(var n=[],o=0,i=e.length;o=0;)t=e(n[r],t),r-=1;return t})},function(e,t,n){var r=n(4);e.exports=r(function(e,t,n){var r=Array.prototype.slice.call(n,0);return r.splice(e,t),r})},function(e,t,n){var r=n(1),o=n(98),i=n(18),a=n(179),s=n(180);e.exports=r(function(e,t){return"function"==typeof t.sequence?t.sequence(e):s(function(e,t){return o(i(a,e),t)},e([]),t)})},function(e,t,n){var r=n(63),o=n(25);e.exports=o(r,0)},function(e,t,n){var r=n(1),o=n(148);e.exports=r(function(e,t){return o(e>=0?t.length-e:0,t)})},function(e,t,n){var r=n(1);e.exports=r(function(e,t){var n,r=Number(t),o=0;if(r<0||isNaN(r))throw new RangeError("n must be a non-negative number");for(n=new Array(r);o0&&void 0!==arguments[0]?arguments[0]:{};(0,a.default)(this,e),this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._columnCount=0,this._rowCount=0,this.columnWidth=function(e){var n=e.index,r=t._keyMapper(0,n);return t._columnWidthCache.hasOwnProperty(r)?t._columnWidthCache[r]:t._defaultWidth},this.rowHeight=function(e){var n=e.index,r=t._keyMapper(n,0);return t._rowHeightCache.hasOwnProperty(r)?t._rowHeightCache[r]:t._defaultHeight};var r=n.defaultHeight,i=n.defaultWidth,s=n.fixedHeight,u=n.fixedWidth,f=n.keyMapper,d=n.minHeight,p=n.minWidth;this._hasFixedHeight=s===!0,this._hasFixedWidth=u===!0,this._minHeight=d||0,this._minWidth=p||0,this._keyMapper=f||o,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:l),this._defaultWidth=Math.max(this._minWidth,"number"==typeof i?i:c)}return(0,u.default)(e,[{key:"clear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var n=this._keyMapper(e,t);return this._cellWidthCache.hasOwnProperty(n)?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);return this._cellHeightCache.hasOwnProperty(n)}},{key:"set",value:function(e,t,n,r){var o=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[o]=r,this._cellWidthCache[o]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){if(!this._hasFixedWidth){for(var n=0,r=0;r=v.start&&x<=v.stop&&w>=g.start&&w<=g.stop,O=w+"-"+x,R=void 0;b&&p[O]?R=p[O]:a&&!a.has(w,x)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:_.size,left:C.offset+s,position:"absolute",top:_.offset+h,width:C.size},p[O]=R);var E={columnIndex:x,isScrolling:u,isVisible:S,key:O,parent:l,rowIndex:w,style:R},I=void 0;!u||s||h?I=n(E):(t[O]||(t[O]=n(E)),I=t[O]),null!=I&&I!==!1&&y.push(I)}return y}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;n(6).babelPluginFlowReactPropTypes_proptype_CellRangeRendererParams||n(2).any},function(e,t,n){"use strict";function r(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,a=e.stopIndex;return r===o?{overscanStartIndex:Math.max(0,i),overscanStopIndex:Math.min(t-1,a+n)}:{overscanStartIndex:Math.max(0,i-n),overscanStopIndex:Math.min(t-1,a)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=(n(6).babelPluginFlowReactPropTypes_proptype_OverscanIndices||n(2).any,n(6).babelPluginFlowReactPropTypes_proptype_OverscanIndicesGetterParams||n(2).any,t.SCROLL_DIRECTION_BACKWARD=-1,t.SCROLL_DIRECTION_FORWARD=1);t.SCROLL_DIRECTION_HORIZONTAL="horizontal",t.SCROLL_DIRECTION_VERTICAL="vertical"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(11),i=r(o),a=n(7),s=r(a),u=n(13),l=r(u),c=n(12),f=r(c),d=n(2),p=(r(d),n(5)),h=n(198),v=r(h),g=n(197),y=r(g),m=n(196),b=r(m),w=n(80),_=r(w),x=function(e){function t(){return(0,s.default)(this,t),(0,l.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),t}(p.Component);x.defaultProps={cellDataGetter:b.default,cellRenderer:y.default,defaultSortDirection:_.default.ASC,flexGrow:0,flexShrink:1,headerRenderer:v.default,style:{}},t.default=x,x.propTypes={}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.sortDirection,n=(0,a.default)("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===f.default.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===f.default.DESC});return l.default.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},t===f.default.ASC?l.default.createElement("path",{d:"M7 14l5-5 5 5z"}):l.default.createElement("path",{d:"M7 10l5 5 5-5z"}),l.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(38),a=r(i),s=n(2),u=(r(s),n(5)),l=r(u),c=n(80),f=r(c);o.propTypes={}},function(e,t,n){"use strict";function r(e){var t=e.dataKey,n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;n(56).babelPluginFlowReactPropTypes_proptype_CellDataGetterParams||n(2).any},function(e,t,n){"use strict";function r(e){var t=e.cellData;return null==t?"":String(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;n(56).babelPluginFlowReactPropTypes_proptype_CellRendererParams||n(2).any},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.dataKey,n=e.label,r=e.sortBy,o=e.sortDirection,i=r===t,s=[a.default.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:n},n)];return i&&s.push(a.default.createElement(u.default,{key:"SortIndicator",sortDirection:o})),s}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(5),a=r(i),s=n(195),u=r(s);n(56).babelPluginFlowReactPropTypes_proptype_HeaderRendererParams||n(2).any;o.propTypes=null},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.className,n=e.columns,r=e.style;return a.default.createElement("div",{className:t,role:"row",style:r},n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(5),a=r(i);n(56).babelPluginFlowReactPropTypes_proptype_HeaderRowRendererParams||n(2).any;o.propTypes=null},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.className,n=e.columns,r=e.index,o=e.key,i=e.onRowClick,s=e.onRowDoubleClick,l=e.onRowMouseOut,c=e.onRowMouseOver,f=e.onRowRightClick,d=e.rowData,p=e.style,h={};return(i||s||l||c||f)&&(h["aria-label"]="row",h.tabIndex=0,i&&(h.onClick=function(e){return i({event:e,index:r,rowData:d})}),s&&(h.onDoubleClick=function(e){return s({event:e,index:r,rowData:d})}),l&&(h.onMouseOut=function(e){return l({event:e,index:r,rowData:d})}),c&&(h.onMouseOver=function(e){return c({event:e,index:r,rowData:d})}),f&&(h.onContextMenu=function(e){return f({event:e,index:r,rowData:d})})),u.default.createElement("div",(0,a.default)({},h,{className:t,key:o,role:"row",style:p}),n)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),a=r(i);t.default=o;var s=n(5),u=r(s);n(56).babelPluginFlowReactPropTypes_proptype_RowRendererParams||n(2).any;o.propTypes=null},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.IS_SCROLLING_TIMEOUT=void 0;var i=n(22),a=o(i),s=n(11),u=o(s),l=n(7),c=o(l),f=n(8),d=o(f),p=n(13),h=o(p),v=n(12),g=o(v),y=n(5),m=r(y),b=n(37),w=o(b),_=n(506),x=n(505),C=n(202),S=o(C),O=t.IS_SCROLLING_TIMEOUT=150,R=function(){return"undefined"!=typeof window?window:void 0},E=function(e){function t(){var e,n,r,o;(0,c.default)(this,t);for(var i=arguments.length,s=Array(i),l=0;l0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props,n=this.props.onResize,r=this.state,o=r.height,i=r.width,a=this._child||w.default.findDOMNode(this);if(a instanceof Element&&e){var s=(0,x.getPositionOffset)(a,e);this._positionFromTop=s.top,this._positionFromLeft=s.left}var u=(0,x.getDimensions)(e,t);o===u.height&&i===u.width||(this.setState({height:u.height,width:u.width}),n({height:u.height,width:u.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=(0,S.default)(),this.updatePosition(e),e&&((0,_.registerScrollListener)(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.scrollElement,n=e.scrollElement;t!==n&&t&&n&&(this.updatePosition(n,e),(0,_.unregisterScrollListener)(this,t),(0,_.registerScrollListener)(this,n),this._unregisterResizeListener(t),this._registerResizeListener(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&((0,_.unregisterScrollListener)(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,r=t.scrollTop,o=t.scrollLeft,i=t.height,a=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:n,scrollLeft:o,scrollTop:r,width:a})}}]),t}(m.PureComponent);E.defaultProps={onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:O,scrollElement:R(),serverHeight:0,serverWidth:0},E.propTypes=null,t.default=E},function(e,t){(function(e){"use strict";function n(t){var n;n="undefined"!=typeof window?window:"undefined"!=typeof self?self:e;var r="undefined"!=typeof document&&document.attachEvent;if(!r){var o=function(){var e=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)};return function(t){return e(t)}}(),i=function(){var e=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout;return function(t){return e(t)}}(),a=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},s=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height},u=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;a(this),this.__resizeRAF__&&i(this.__resizeRAF__),this.__resizeRAF__=o(function(){s(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}},l=!1,c="",f="animationstart",d="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h="",v=document.createElement("fakeelement");if(void 0!==v.style.animationName&&(l=!0),l===!1)for(var g=0;g div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=e.head||e.getElementsByTagName("head")[0],o=e.createElement("style");o.id="detectElementResize",o.type="text/css",null!=t&&o.setAttribute("nonce",t),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(e.createTextNode(n)),r.appendChild(o)}},_=function(e,t){if(r)e.attachEvent("onresize",t);else{if(!e.__resizeTriggers__){var o=e.ownerDocument,i=n.getComputedStyle(e);i&&"static"==i.position&&(e.style.position="relative"),w(o),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=o.createElement("div")).className="resize-triggers",e.__resizeTriggers__.innerHTML='
',e.appendChild(e.__resizeTriggers__),a(e),e.addEventListener("scroll",u,!0),f&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==y&&a(e)},e.__resizeTriggers__.addEventListener(f,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(t)}},x=function(e,t){if(r)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",u,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(f,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}};return{addResizeListener:_,removeResizeListener:x}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t0&&!v.default.has("columns",e)?v.default.keys(r.rows[0]):v.default.pluck("name",this.state.columns),r.columns=o.map(function(t){return{key:t,name:t,editable:Boolean(e.editable),sortable:Boolean(e.sortable),resizable:Boolean(e.resizable),filterable:Boolean(e.filterable)}}),e.column_widths&&r.columns.forEach(function(t,n){t.width=e.column_widths[n]}),this.setState(r)}},{key:"componentWillMount",value:function(){this.propsToState(this.props,{})}},{key:"componentWillReceiveProps",value:function(e){this.propsToState(e,this.props)}},{key:"updateProps",value:function(e){this.props.setProps?(v.default.has("rows",e)&&(this._view.rows=e.rows),v.default.has("selected_row_indices",e)&&(this._view.selected_row_indices=e.selected_row_indices),this.props.setProps(e)):this.setState(e)}},{key:"onClearFilters",value:function(){this.updateProps({filters:{}})}},{key:"handleFilterChange",value:function(e){var t=v.default.merge({},this.state.filters);e.filterTerm?t[e.column.key]=e:delete t[e.column.key];var n=(0,b.default)((0,y.default)(t,this._absolute.rows),this.state.sortColumn,this.state.sortDirection),r={filters:t,rows:n};this.props.row_selectable&&(r.selected_row_indices=(0,_.default)(this._absolute.selected_row_objects,n)),this.updateProps(r)}},{key:"handleGridSort",value:function(e,t){var n=(0,b.default)(this.state.rows,e,t),r={rows:n,sortColumn:e,sortDirection:t};this.props.row_selectable&&(r.selected_row_indices=(0,_.default)(this._absolute.selected_row_objects,n)),this.updateProps(r)}},{key:"handleGridRowsUpdated",value:function(e){for(var t=e.fromRow,n=e.toRow,r=e.updated,o=this.state.rows,i=t;i<=n;i++)o[i]=v.default.merge(o[i],r);this.updateProps({row_update:v.default.append(this.props.row_update,[{from_row:t,to_row:n,updated:r}]),rows:o})}},{key:"getSize",value:function(){return this.getRows().length}},{key:"getRows",value:function(){return this.state.rows}},{key:"getMinHeight",value:function(){var e=v.default.has("row_height",this.props)?this.props.row_height:t.defaultProps.row_height,n=this.props.filterable,r=this.getSize();if(v.default.has("max_rows_in_viewport",this.props)||!v.default.has("min_height",this.props)){var o=e,i=2,a=n?45:0,s=v.default.propOr(10,"max_rows_in_viewport",this.props);return v.default.min(r,s)*e+a+o+i}return this.props.min_height}},{key:"onRowsSelected",value:function(e){this._absolute.selected_row_objects=v.default.union(v.default.pluck("row",e),this._absolute.selected_row_objects),this.updateProps({selected_row_indices:(0,_.default)(this._absolute.selected_row_objects,this.state.rows)})}},{key:"onRowsDeselected",value:function(e){var t=v.default.pluck("row",e);this._absolute.selected_row_objects=v.default.reject(v.default.flip(v.default.contains)(t),this._absolute.selected_row_objects),this.updateProps({selected_row_indices:(0,_.default)(this._absolute.selected_row_objects,this.state.rows)})}},{key:"rowGetter",value:function(e){var t=this.getRows();return t[e]}},{key:"render",value:function(){var e=this.props,t=e.editable,n=e.enable_drag_and_drop,r=e.filterable,o=e.header_row_height,i=e.min_width,a=e.row_height,u=e.row_scroll_timeout,l=e.row_selectable,f=e.sortable,h=e.tab_index,v=this.state,g=v.columns,y=v.selected_row_indices,m={};return f&&(m.onGridSort=this.handleGridSort),r&&(m.onAddFilter=this.handleFilterChange,m.toolbar=c.default.createElement(p.Toolbar,{enableFilter:!0}),m.onClearFilters=this.onClearFilters),m.enableCellSelect=Boolean(t),t&&(m.onGridRowsUpdated=this.handleGridRowsUpdated),l&&(m.rowSelection={showCheckbox:!0,enableShiftSelect:!0,onRowsSelected:this.onRowsSelected,onRowsDeselected:this.onRowsDeselected,selectBy:{indexes:y}}),c.default.createElement(d.default,s({enableDragAndDrop:n,headerRowHeight:o,minHeight:this.getMinHeight(),minWidth:i,rowHeight:a,row_scroll_timeout:u,tab_index:h,columns:g,rowGetter:this.rowGetter,rowsCount:this.getSize()},m))}}]),t}(l.Component);C.propTypes={id:l.PropTypes.string,editable:l.PropTypes.bool,filterable:l.PropTypes.bool,sortable:l.PropTypes.bool,resizable:l.PropTypes.bool,column_widths:l.PropTypes.arrayOf(l.PropTypes.number),columns:l.PropTypes.arrayOf(l.PropTypes.string),row_selectable:l.PropTypes.bool,selected_row_indices:l.PropTypes.array,enable_drag_and_drop:l.PropTypes.bool,header_row_height:l.PropTypes.number,min_height:l.PropTypes.number,min_width:l.PropTypes.number,max_rows_in_viewport:l.PropTypes.number,row_height:l.PropTypes.number,row_scroll_timeout:l.PropTypes.number,tab_index:l.PropTypes.number,filters:l.PropTypes.object,rows:l.PropTypes.arrayOf(l.PropTypes.shape),row_update:l.PropTypes.shape({from_row:l.PropTypes.number,to_row:l.PropTypes.number,updated:l.PropTypes.arrayOf(l.PropTypes.shape)}),sortColumn:l.PropTypes.object,sortDirection:l.PropTypes.object,setProps:l.PropTypes.func},C.defaultProps={editable:!0,filterable:!1,sortable:!0,resizable:!0,filters:{},selected_row_indices:[],row_selectable:!1,row_height:35},t.default=C},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t); +e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){return y.default.is(Object,e)&&y.default.is(Object,t)?y.default.mergeWith(u,e,t):t}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n":function(e,t){return e>t},">=":function(e,t){return e>=t}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=[];return e.forEach(function(e){var r=a.default.findIndex(a.default.equals(e),t);r!==-1&&n.push(r)}),n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(43),a=r(i)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){function r(e,r){return"ASC"===n?e[t]>r[t]?1:-1:"DESC"===n?e[t]c;)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(48),o=n(87),i=n(59);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,s=n(e),u=i.f,l=0;s.length>l;)u.call(e,a=s[l++])&&t.push(a);return t}},function(e,t,n){var r=n(27).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(82);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(85),o=n(60),i=n(89),a={};n(41)(a,n(26)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(62)("meta"),o=n(42),i=n(32),a=n(33).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(40)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},d=function(e,t){if(!i(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},p=function(e){return l&&h.NEED&&u(e)&&!i(e,r)&&c(e),e},h=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:p}},function(e,t,n){"use strict";var r=n(48),o=n(87),i=n(59),a=n(61),s=n(128),u=Object.assign;e.exports=!u||n(40)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n=a(e),u=arguments.length,l=1,c=o.f,f=i.f;u>l;)for(var d,p=s(arguments[l++]),h=c?r(p).concat(c(p)):r(p),v=h.length,g=0;v>g;)f.call(p,d=h[g++])&&(n[d]=p[d]);return n}:u},function(e,t,n){var r=n(33),o=n(39),i=n(48);e.exports=n(30)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(34),o=n(130).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?s(e):o(r(e))}},function(e,t,n){var r=n(42),o=n(39),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(125)(Function.call,n(86).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var r=n(92),o=n(83);e.exports=function(e){return function(t,n){var i,a,s=String(o(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(i=s.charCodeAt(u),i<55296||i>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):i:e?s.slice(u,u+2):(i-55296<<10)+(a-56320)+65536)}}},function(e,t,n){var r=n(92),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(92),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(124),o=n(26)("iterator"),i=n(47);e.exports=n(14).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(39),o=n(246);e.exports=n(14).getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){var r=n(124),o=n(26)("iterator"),i=n(47);e.exports=n(14).isIterable=function(e){var t=Object(e);return void 0!==t[o]||"@@iterator"in t||i.hasOwnProperty(r(t))}},function(e,t,n){"use strict";var r=n(231),o=n(237),i=n(47),a=n(34);e.exports=n(129)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(31);r(r.S+r.F,"Object",{assign:n(239)})},function(e,t,n){var r=n(31);r(r.S,"Object",{create:n(85)})},function(e,t,n){var r=n(31);r(r.S+r.F*!n(30),"Object",{defineProperty:n(33).f})},function(e,t,n){var r=n(34),o=n(86).f;n(88)("getOwnPropertyDescriptor",function(){return function(e,t){return o(r(e),t)}})},function(e,t,n){var r=n(61),o=n(131);n(88)("getPrototypeOf",function(){return function(e){return o(r(e))}})},function(e,t,n){var r=n(61),o=n(48);n(88)("keys",function(){return function(e){return o(r(e))}})},function(e,t,n){var r=n(31);r(r.S,"Object",{setPrototypeOf:n(242).set})},function(e,t){},function(e,t,n){"use strict";var r=n(27),o=n(32),i=n(30),a=n(31),s=n(133),u=n(238).KEY,l=n(40),c=n(91),f=n(89),d=n(62),p=n(26),h=n(95),v=n(94),g=n(233),y=n(235),m=n(39),b=n(42),w=n(34),_=n(93),x=n(60),C=n(85),S=n(241),O=n(86),R=n(33),E=n(48),I=O.f,D=R.f,M=S.f,T=r.Symbol,k=r.JSON,P=k&&k.stringify,A="prototype",j=p("_hidden"),z=p("toPrimitive"),N={}.propertyIsEnumerable,L=c("symbol-registry"),F=c("symbols"),H=c("op-symbols"),G=Object[A],W="function"==typeof T,q=r.QObject,V=!q||!q[A]||!q[A].findChild,U=i&&l(function(){return 7!=C(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=I(G,t);r&&delete G[t],D(e,t,n),r&&e!==G&&D(G,t,r)}:D,B=function(e){var t=F[e]=C(T[A]);return t._k=e,t},K=W&&"symbol"==typeof T.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof T},Y=function(e,t,n){return e===G&&Y(H,t,n),m(e),t=_(t,!0),m(n),o(F,t)?(n.enumerable?(o(e,j)&&e[j][t]&&(e[j][t]=!1),n=C(n,{enumerable:x(0,!1)})):(o(e,j)||D(e,j,x(1,{})),e[j][t]=!0),U(e,t,n)):D(e,t,n)},J=function(e,t){m(e);for(var n,r=g(t=w(t)),o=0,i=r.length;i>o;)Y(e,n=r[o++],t[n]);return e},X=function(e,t){return void 0===t?C(e):J(C(e),t)},Z=function(e){var t=N.call(this,e=_(e,!0));return!(this===G&&o(F,e)&&!o(H,e))&&(!(t||!o(this,e)||!o(F,e)||o(this,j)&&this[j][e])||t)},Q=function(e,t){if(e=w(e),t=_(t,!0),e!==G||!o(F,t)||o(H,t)){var n=I(e,t);return!n||!o(F,t)||o(e,j)&&e[j][t]||(n.enumerable=!0),n}},$=function(e){for(var t,n=M(w(e)),r=[],i=0;n.length>i;)o(F,t=n[i++])||t==j||t==u||r.push(t);return r},ee=function(e){for(var t,n=e===G,r=M(n?H:w(e)),i=[],a=0;r.length>a;)!o(F,t=r[a++])||n&&!o(G,t)||i.push(F[t]);return i};W||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===G&&t.call(H,n),o(this,j)&&o(this[j],e)&&(this[j][e]=!1),U(this,e,x(1,n))};return i&&V&&U(G,e,{configurable:!0,set:t}),B(e)},s(T[A],"toString",function(){return this._k}),O.f=Q,R.f=Y,n(130).f=S.f=$,n(59).f=Z,n(87).f=ee,i&&!n(58)&&s(G,"propertyIsEnumerable",Z,!0),h.f=function(e){return B(p(e))}),a(a.G+a.W+a.F*!W,{Symbol:T});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)p(te[ne++]);for(var re=E(p.store),oe=0;re.length>oe;)v(re[oe++]);a(a.S+a.F*!W,"Symbol",{for:function(e){return o(L,e+="")?L[e]:L[e]=T(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in L)if(L[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!W,"Object",{create:X,defineProperty:Y,defineProperties:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:$,getOwnPropertySymbols:ee}),k&&a(a.S+a.F*(!W||l(function(){var e=T();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!K(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,P.apply(k,r)}}),T[A][z]||n(41)(T[A],z,T[A].valueOf),f(T,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){n(94)("asyncIterator")},function(e,t,n){n(94)("observable")},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},function(e,t){"use strict";function n(e){for(var t,n=e.length,r=0;r13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}e.exports=function(e){var t=typeof e;if("string"===t){var r=e;if(e=+e,0===e&&n(r))return!1}else if("number"!==t)return!1;return e-e<1}},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,u){if(o(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,s,u],f=0;l=new Error(t.replace(/%s/g,function(){return c[f++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";var r=n(263),o=n(264),i=n(266);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){var r=n(44);e.exports=r(!1)},function(e,t,n){var r=n(44);e.exports=r(!0)},function(e,t){e.exports={"@@functional/placeholder":!0}},function(e,t,n){var r=n(21),o=n(3),i=n(15);e.exports=o(function(e){return i(e.length,function(){var t=0,n=arguments[0],o=arguments[arguments.length-1],i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var e=n.apply(this,r(arguments,[t,o]));return t+=1,e},e.apply(this,i)})})},function(e,t,n){var r=n(1),o=n(9),i=n(344);e.exports=r(o(["all"],i,function(e,t){for(var n=0;no?1:0})},function(e,t,n){var r=n(3),o=n(76);e.exports=r(function(e){return o(2,e)})},function(e,t,n){var r=n(1),o=n(70),i=n(136),a=n(74);e.exports=r(function(e,t){return o(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:a(i)(e,t)})},function(e,t,n){var r=n(65);e.exports=r(function(e){return e.apply(this,Array.prototype.slice.call(arguments,1))})},function(e,t,n){var r=n(4);e.exports=r(function(e,t,n){if(e>t)throw new Error("min must not be greater than max in clamp(min, max, value)");return nt?t:n})},function(e,t,n){var r=n(152),o=n(3);e.exports=o(function(e){return null!=e&&"function"==typeof e.clone?e.clone():r(e,[],[],!0)})},function(e,t,n){var r=n(3);e.exports=r(function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}})},function(e,t,n){var r=n(74),o=n(172);e.exports=r(o)},function(e,t,n){var r=n(178),o=n(79);e.exports=function(){if(0===arguments.length)throw new Error("composeP requires at least one argument");return r.apply(this,o(arguments))}},function(e,t,n){var r=n(23),o=n(3),i=n(18),a=n(45),s=n(25);e.exports=o(function(e){var t=s(a,0,i(function(e){return e[0].length},e));return r(t,function(){for(var t=0;to?-1:r=0;){if(e(t[n]))return t[n];n-=1}}))},function(e,t,n){var r=n(1),o=n(9),i=n(355);e.exports=r(o([],i,function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return n;n-=1}return-1}))},function(e,t,n){var r=n(3),o=n(159);e.exports=r(o(!0))},function(e,t,n){var r=n(49),o=n(1);e.exports=o(r("forEach",function(e,t){for(var n=t.length,r=0;rt})},function(e,t,n){var r=n(1);e.exports=r(function(e,t){return e>=t})},function(e,t,n){var r=n(1),o=n(16);e.exports=r(o)},function(e,t,n){var r=n(1);e.exports=r(function(e,t){return e in t})},function(e,t,n){var r=n(52);e.exports=r(0)},function(e,t,n){var r=n(4),o=n(15);e.exports=r(function(e,t,n){return o(Math.max(e.length,t.length,n.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)})})},function(e,t,n){var r=n(63);e.exports=r(1)},function(e,t,n){var r=n(77);e.exports=r(function(e,t){return t},null)},function(e,t,n){var r=n(1),o=n(156),i=n(28);e.exports=r(function(e,t){return"function"!=typeof t.indexOf||i(t)?o(t,e,0):t.indexOf(e)})},function(e,t,n){var r=n(36);e.exports=r(0,-1)},function(e,t,n){var r=n(67),o=n(4),i=n(105);e.exports=o(function(e,t,n){return i(function(t){return r(e,t,n)},t)})},function(e,t,n){var r=n(4);e.exports=r(function(e,t,n){e=e=0?e:n.length;var r=Array.prototype.slice.call(n,0);return r.splice(e,0,t),r})},function(e,t,n){var r=n(4);e.exports=r(function(e,t,n){return e=e=0?e:n.length,[].concat(Array.prototype.slice.call(n,0,e),t,Array.prototype.slice.call(n,e))})},function(e,t,n){var r=n(35);e.exports=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}function t(e,t,n){var o,i,a=typeof e;switch(a){case"string":case"number":return 0===e&&1/e===-(1/0)?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(o=n._nativeSet.size,n._nativeSet.add(e),i=n._nativeSet.size,i===o):n._nativeSet.has(e):a in n._items?e in n._items[a]||(t&&(n._items[a][e]=!0),!1):(t&&(n._items[a]={},n._items[a][e]=!0),!1);case"boolean":if(a in n._items){var s=e?1:0;return!!n._items[a][s]||(t&&(n._items[a][s]=!0),!1)}return t&&(n._items[a]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(o=n._nativeSet.size,n._nativeSet.add(e),i=n._nativeSet.size,i===o):n._nativeSet.has(e):a in n._items?!!r(e,n._items[a])||(t&&n._items[a].push(e),!1):(t&&(n._items[a]=[e]),!1);case"undefined":return!!n._items[a]||(t&&(n._items[a]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return a=Object.prototype.toString.call(e),a in n._items?!!r(e,n._items[a])||(t&&n._items[a].push(e),!1):(t&&(n._items[a]=[e]),!1)}}return e.prototype.add=function(e){return!t(e,!0,this)},e.prototype.has=function(e){return t(e,!1,this)},e}()},function(e,t){e.exports=function(e,t){for(var n=0,r=t.length-(e-1),o=new Array(r>=0?r:0);n=0&&e(t[n]);)n-=1;return Array.prototype.slice.call(t,0,n+1)}},function(e,t,n){var r=n(328),o=n(334),i=n(16),a=n(151),s=n(24),u=n(114);e.exports=function e(t,n,l,c){if(a(t,n))return!0;if(u(t)!==u(n))return!1;if(null==t||null==n)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof n.equals)return"function"==typeof t.equals&&t.equals(n)&&"function"==typeof n.equals&&n.equals(t);switch(u(t)){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===o(t.constructor))return t===n;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof n||!a(t.valueOf(),n.valueOf()))return!1;break;case"Date":if(!a(t.valueOf(),n.valueOf()))return!1;break;case"Error":return t.name===n.name&&t.message===n.message;case"RegExp":if(t.source!==n.source||t.global!==n.global||t.ignoreCase!==n.ignoreCase||t.multiline!==n.multiline||t.sticky!==n.sticky||t.unicode!==n.unicode)return!1;break;case"Map":case"Set":if(!e(r(t.entries()),r(n.entries()),l,c))return!1;break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":break;case"ArrayBuffer":break;default: +return!1}var f=s(t);if(f.length!==s(n).length)return!1;for(var d=l.length-1;d>=0;){if(l[d]===t)return c[d]===n;d-=1}for(l.push(t),c.push(n),d=f.length-1;d>=0;){var p=f[d];if(!i(p,n)||!e(n[p],t[p],l,c))return!1;d-=1}return l.pop(),c.pop(),!0}},function(e,t,n){var r=n(333),o=n(69),i=n(20),a=n(10);e.exports=function(){var e=function(e){return{"@@transducer/init":a.init,"@@transducer/result":function(t){return e["@@transducer/result"](t)},"@@transducer/step":function(t,n){var o=e["@@transducer/step"](t,n);return o["@@transducer/reduced"]?r(o):o}}};return function(t){var n=e(t);return{"@@transducer/init":a.init,"@@transducer/result":function(e){return n["@@transducer/result"](e)},"@@transducer/step":function(e,t){return o(t)?i(n,e,t):i(n,e,[t])}}}}()},function(e,t){e.exports=function(e){return{"@@transducer/value":e,"@@transducer/reduced":!0}}},function(e,t){e.exports=function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}},function(e,t){e.exports=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(16);e.exports=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,o=arguments.length;n":e(o,i)},c=function(e,t){return o(function(t){return i(t)+": "+l(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+o(l,t).join(", ")+"))";case"[object Array]":return"["+o(l,t).concat(c(t,u(function(e){return/^\d+$/.test(e)},s(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+l(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?l(NaN):i(a(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+l(t.valueOf())+")":1/t===-(1/0)?"-0":t.toString(10);case"[object String]":return"object"==typeof t?"new String("+l(t.valueOf())+")":i(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var f=t.toString();if("[object Object]"!==f)return f}return"{"+c(t,s(t)).join(", ")+"}"}}},function(e,t,n){var r=n(1),o=n(29),i=n(10);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=o(this.xf["@@transducer/step"](e,!1))),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(21),o=n(1),i=n(10);e.exports=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.store(t),this.full?this.xf["@@transducer/step"](e,this.getCopy()):e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e.prototype.getCopy=function(){return r(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},o(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(1),o=n(332),i=n(18);e.exports=r(function(e,t){return i(e,o(t))})},function(e,t,n){var r=n(1),o=n(10);e.exports=function(){function e(e,t){this.xf=t,this.n=e}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=o.result,e.prototype["@@transducer/step"]=function(e,t){return this.n>0?(this.n-=1,e):this.xf["@@transducer/step"](e,t)},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(1),o=n(10);e.exports=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.full&&(e=this.xf["@@transducer/step"](e,this.acc[this.pos])),this.store(t),e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(1),o=n(20),i=n(10);e.exports=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.retain(e,t):this.flush(e,t)},e.prototype.flush=function(e,t){return e=o(this.xf["@@transducer/step"],e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,t)},e.prototype.retain=function(e,t){return this.retained.push(t),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(1),o=n(10);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=o.result,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(1),o=n(10);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=o.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(1),o=n(29),i=n(10);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.found=!1}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.found=!0,e=o(this.xf["@@transducer/step"](e,t))),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(1),o=n(29),i=n(10);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.found=!1}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.found=!0,e=o(this.xf["@@transducer/step"](e,this.idx))),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(1),o=n(10);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.last))},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.last=t),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(1),o=n(10);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.lastIdx))},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(1),o=n(10);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=o.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(68),o=n(16),i=n(10);e.exports=function(){function e(e,t,n,r){this.valueFn=e,this.valueAcc=t,this.keyFn=n,this.xf=r,this.inputs={}}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(o(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var n=this.keyFn(t);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},r(4,[],function(t,n,r,o){return new e(t,n,r,o)})}()},function(e,t,n){var r=n(1),o=n(29),i=n(10);e.exports=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?o(n):n},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(1),o=n(29),i=n(10);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):o(e)},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(35),o=n(1),i=n(105),a=n(66),s=n(115);e.exports=o(function(e,t){var n,o;return e.length>t.length?(n=e,o=t):(n=t,o=e),s(i(a(r)(n),o))})},function(e,t,n){var r=n(67),o=n(4),i=n(116);e.exports=o(function(e,t,n){var o,a;t.length>n.length?(o=t,a=n):(o=n,a=t);for(var s=[],u=0;u=0;){if(i(t[n],e))return n;n-=1}return-1}return t.lastIndexOf(e)})},function(e,t,n){var r=n(3),o=n(73),i=n(52),a=n(117);e.exports=r(function(e){return o(i(e),a(e))})},function(e,t,n){var r=n(3),o=n(139),i=n(73),a=n(53);e.exports=r(function(e){return i(a(e),o(e))})},function(e,t,n){var r=n(3),o=n(64),i=n(73),a=n(111);e.exports=r(function(e){return i(a(e),o(e))})},function(e,t,n){var r=n(1);e.exports=r(function(e,t){return e=0;)i=e(n[r],i[0]),o[r]=i[1],r-=1;return[o,i[0]]})},function(e,t,n){var r=n(1),o=n(20),i=n(24);e.exports=r(function(e,t){return o(function(n,r){return n[r]=e(t[r],r,t),n},{},i(t))})},function(e,t,n){var r=n(1);e.exports=r(function(e,t){return t.match(e)||[]})},function(e,t,n){var r=n(1),o=n(107);e.exports=r(function(e,t){return o(e)?!o(t)||t<1?NaN:(e%t+t)%t:NaN})},function(e,t,n){var r=n(4);e.exports=r(function(e,t,n){return e(n)>e(t)?n:t})},function(e,t,n){var r=n(3),o=n(169);e.exports=r(function(e){var t=e.length;if(0===t)return NaN;var n=2-t%2,r=(t-n)/2;return o(Array.prototype.slice.call(e,0).sort(function(e,t){return et?1:0}).slice(r,r+n))})},function(e,t,n){var r=n(170),o=n(55);e.exports=r(function(){return o(arguments)})},function(e,t,n){var r=n(104),o=n(1);e.exports=o(function(e,t){return r({},e,t)})},function(e,t,n){var r=n(104),o=n(3);e.exports=o(function(e){return r.apply(null,[{}].concat(e))})},function(e,t,n){var r=n(1),o=n(75);e.exports=r(function(e,t){return o(function(e,t,n){return t},e,t)})},function(e,t,n){var r=n(1),o=n(75);e.exports=r(function(e,t){return o(function(e,t,n){return n},e,t)})},function(e,t,n){var r=n(4),o=n(75);e.exports=r(function(e,t,n){return o(function(t,n,r){return e(n,r)},t,n)})},function(e,t,n){var r=n(4),o=n(110);e.exports=r(function(e,t,n){return o(function(t,n,r){return e(n,r)},t,n)})},function(e,t,n){var r=n(1);e.exports=r(function(e,t){return t0&&e(o(t,n))})},function(e,t,n){var r=n(1);e.exports=r(function(e,t){for(var n={},r=0;ro?1:0})})},function(e,t,n){var r=n(1);e.exports=r(function(e,t){return Array.prototype.slice.call(t,0).sort(function(t,n){for(var r=0,o=0;0===r&&o=0&&e(t[n]);)n-=1;return Array.prototype.slice.call(t,n+1)})},function(e,t,n){var r=n(1),o=n(9),i=n(359);e.exports=r(o(["takeWhile"],i,function(e,t){for(var n=0,r=t.length;n=0&&b.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function u(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function l(e,t){var n,r,o;if(t.singleton){var i=m++;n=y||(y=s(t)),r=c.bind(null,n,i,!1),o=c.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(t),r=d.bind(null,n),o=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=f.bind(null,n),o=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function c(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function f(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var p={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},v=h(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),g=h(function(){return document.head||document.getElementsByTagName("head")[0]}),y=null,m=0,b=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=v()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var i=[],a=0;a=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}var s=a;e[s]&&(n[s]=e[s])}return n}e.exports=n},function(e,t,n){!function(t,n){e.exports=n()}(this,function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return i(e)?e:D(e)}function n(e){return a(e)?e:M(e)}function r(e){return s(e)?e:T(e)}function o(e){return i(e)&&!u(e)?e:k(e)}function i(e){return!(!e||!e[ln])}function a(e){return!(!e||!e[cn])}function s(e){return!(!e||!e[fn])}function u(e){return a(e)||s(e)}function l(e){return!(!e||!e[dn])}function c(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function d(){}function p(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?h(e)+t:t}function g(){return!0}function y(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function m(e,t){return w(e,t,0)}function b(e,t){return w(e,t,t)}function w(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function _(e){this.next=e}function x(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function C(){return{value:void 0,done:!0}}function S(e){return!!E(e)}function O(e){return e&&"function"==typeof e.next}function R(e){var t=E(e);return t&&t.call(e)}function E(e){var t=e&&(Cn&&e[Cn]||e[Sn]);if("function"==typeof t)return t}function I(e){return e&&"number"==typeof e.length}function D(e){return null===e||void 0===e?L():i(e)?e.toSeq():G(e)}function M(e){return null===e||void 0===e?L().toKeyedSeq():i(e)?a(e)?e.toSeq():e.fromEntrySeq():F(e)}function T(e){return null===e||void 0===e?L():i(e)?a(e)?e.entrySeq():e.toIndexedSeq():H(e)}function k(e){return(null===e||void 0===e?L():i(e)?a(e)?e.entrySeq():e:H(e)).toSetSeq()}function P(e){this._array=e,this.size=e.length}function A(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function j(e){this._iterable=e,this.size=e.length||e.size}function z(e){this._iterator=e,this._iteratorCache=[]}function N(e){return!(!e||!e[Rn])}function L(){return En||(En=new P([]))}function F(e){var t=Array.isArray(e)?new P(e).fromEntrySeq():O(e)?new z(e).fromEntrySeq():S(e)?new j(e).fromEntrySeq():"object"==typeof e?new A(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function H(e){var t=W(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function G(e){var t=W(e)||"object"==typeof e&&new A(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function W(e){return I(e)?new P(e):O(e)?new z(e):S(e)?new j(e):void 0}function q(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(t(s[1],r?s[0]:a,e)===!1)return a+1}return a}return e.__iterateUncached(t,n)}function V(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new _(function(){var e=o[n?i-a:a];return a++>i?C():x(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function U(e,t){return t?B(t,e,"",{"":e}):K(e)}function B(e,t,n,r){return Array.isArray(t)?e.call(r,n,T(t).map(function(n,r){return B(e,n,r,t)})):Y(t)?e.call(r,n,M(t).map(function(n,r){return B(e,n,r,t)})):t}function K(e){return Array.isArray(e)?T(e).map(K).toList():Y(e)?M(e).map(K).toMap():e}function Y(e){return e&&(e.constructor===Object||void 0===e.constructor)}function J(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function X(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&J(o[1],e)&&(n||J(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var c=e;e=t,t=c}var f=!0,d=t.__iterate(function(t,r){if(n?!e.has(t):o?!J(t,e.get(r,yn)):!J(e.get(r,yn),t))return f=!1,!1});return f&&e.size===d}function Z(e,t){if(!(this instanceof Z))return new Z(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(In)return In;In=this}}function Q(e,t){if(!e)throw new Error(t)}function $(e,t,n){if(!(this instanceof $))return new $(e,t,n);if(Q(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function ie(e){if(e===!1||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(e=e.valueOf(),e===!1||null===e||void 0===e))return 0;if(e===!0)return 1;var t=typeof e;if("number"===t){if(e!==e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)e/=4294967295,n^=e;return oe(n)}if("string"===t)return e.length>Nn?ae(e):se(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return ue(e);if("function"==typeof e.toString)return se(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ae(e){var t=Hn[e];return void 0===t&&(t=se(e),Fn===Ln&&(Fn=0,Hn={}),Fn++,Hn[e]=t),t}function se(e){for(var t=0,n=0;n0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function ce(e){Q(e!==1/0,"Cannot perform this action with an infinite size.")}function fe(e){return null===e||void 0===e?xe():de(e)&&!l(e)?e:xe().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function de(e){return!(!e||!e[Gn])}function pe(e,t){this.ownerID=e,this.entries=t}function he(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function ve(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function ge(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function ye(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function me(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&we(e._root)}function be(e,t){return x(e,t[0],t[1])}function we(e,t){return{node:e,index:0,__prev:t}}function _e(e,t,n,r){var o=Object.create(Wn);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function xe(){return qn||(qn=_e(0))}function Ce(e,t,n){var r,o;if(e._root){var i=c(mn),a=c(bn);if(r=Se(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===yn?-1:1:0)}else{if(n===yn)return e;o=1,r=new pe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?_e(o,r):xe()}function Se(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===yn?e:(f(s),f(a),new ye(t,r,[o,i]))}function Oe(e){return e.constructor===ye||e.constructor===ge}function Re(e,t,n,r,o){if(e.keyHash===r)return new ge(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&gn,s=(0===n?r:r>>>n)&gn,u=a===s?[Re(e,t,n+hn,r,o)]:(i=new ye(t,r,o),a>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new ve(e,i+1,a)}function Me(e,t,r){for(var o=[],a=0;a>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,127&e}function ze(e,t,n,r){var o=r?e:p(e);return o[t]=n,o}function Ne(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s0&&oi?0:i-n,l=a-n;return l>vn&&(l=vn),function(){if(o===l)return Xn;var e=t?--l:o++;return r&&r[e]}}function o(e,r,o){var s,u=e&&e.array,l=o>i?0:i-o>>r,c=(a-o>>r)+1;return c>vn&&(c=vn),function(){for(;;){if(s){var e=s();if(e!==Xn)return e;s=null}if(l===c)return Xn;var i=t?--c:l++;s=n(u&&u[i],r-hn,o+(i<=e.size||t<0)return e.withMutations(function(e){t<0?Je(e,t).set(0,n):Je(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=c(bn);return t>=Ze(e._capacity)?r=Be(r,e.__ownerID,0,t,n,i):o=Be(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):qe(e._origin,e._capacity,e._level,o,r):e}function Be(e,t,n,r,o,i){var a=r>>>n&gn,s=e&&a0){var l=e&&e.array[a],c=Be(l,t,n-hn,r,o,i);return c===l?e:(u=Ke(e,t),u.array[a]=c,u)}return s&&e.array[a]===o?e:(f(i),u=Ke(e,t),void 0===o&&a===u.array.length-1?u.array.pop():u.array[a]=o,u)}function Ke(e,t){return t&&e&&t===e.ownerID?e:new Ge(e?e.array.slice():[],t)}function Ye(e,t){if(t>=Ze(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&gn],r-=hn;return n}}function Je(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new d,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new Ge(l&&l.array.length?[void 0,l]:[],r),u+=hn,c+=1<=1<f?new Ge([],r):h;if(h&&p>f&&ahn;y-=hn){var m=f>>>y&gn;g=g.array[m]=Ke(g.array[m],r)}g.array[f>>>hn&gn]=h}if(s=p)a-=p,s-=p,u=hn,l=null,v=v&&v.removeBefore(r,0,a);else if(a>o||p>>u&gn;if(b!==p>>>u&gn)break;b&&(c+=(1<o&&(l=l.removeBefore(r,u,a-c)),l&&pa&&(a=l.size),i(u)||(l=l.map(function(e){return U(e)})),o.push(l)}return a>e.size&&(e=e.setSize(a)),Pe(e,t,o)}function Ze(e){return e>>hn<=vn&&a.size>=2*i.size?(o=a.filter(function(e,t){return void 0!==e&&s!==t}),r=o.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):et(r,o)}function rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function ot(e){this._iter=e,this.size=e.size}function it(e){this._iter=e,this.size=e.size}function at(e){this._iter=e,this.size=e.size}function st(e){var t=It(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Dt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return t(n,e,r)!==!1},n)},t.__iteratorUncached=function(t,n){if(t===xn){var r=e.__iterator(t,n);return new _(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===_n?wn:_n,n)},t}function ut(e,t,n){var r=It(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,yn);return i===yn?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,a){return r(t.call(n,e,o,a),o,i)!==!1},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(xn,o);return new _(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return x(r,s,t.call(n,a[1],s,e),o)})},r}function lt(e,t){var n=It(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=st(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Dt,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function ct(e,t,n,r){var o=It(e);return r&&(o.has=function(r){var o=e.get(r,yn);return o!==yn&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,yn);return i!==yn&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,u){if(t.call(n,e,i,u))return s++,o(e,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(xn,i),s=0;return new _(function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return x(o,r?l:s++,c,i)}})},o}function ft(e,t,n){var r=fe().asMutable();return e.__iterate(function(o,i){r.update(t.call(n,o,i,e),0,function(e){return e+1})}),r.asImmutable()}function dt(e,t,n){var r=a(e),o=(l(e)?Qe():fe()).asMutable();e.__iterate(function(i,a){o.update(t.call(n,i,a,e),function(e){return e=e||[],e.push(r?[a,i]:i),e})});var i=Et(e);return o.map(function(t){return St(e,i(t))})}function pt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=o:n|=0),y(t,n,o))return e;var i=m(t,o),a=b(n,o);if(i!==i||a!==a)return pt(e.toSeq().cacheResult(),t,n,r);var s,u=a-i;u===u&&(s=u<0?0:u);var l=It(e);return l.size=0===s?s:e.size&&s||void 0,!r&&N(e)&&s>=0&&(l.get=function(t,n){return t=v(this,t),t>=0&&ts)return C();var e=o.next();return r||t===_n?e:t===wn?x(t,u-1,void 0,e):x(t,u-1,e.value[1],e)})},l}function ht(e,t,n){var r=It(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate(function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(xn,o),s=!0;return new _(function(){if(!s)return C();var e=a.next();if(e.done)return e;var o=e.value,u=o[0],l=o[1];return t.call(n,l,u,i)?r===xn?e:x(r,u,l,e):(s=!1,C())})},r}function vt(e,t,n,r){var o=It(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return e.__iterate(function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return u++,o(e,r?i:u-1,a)}),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(xn,i),u=!0,l=0;return new _(function(){var e,i,c;do{if(e=s.next(),e.done)return r||o===_n?e:o===wn?x(o,l++,void 0,e):x(o,l++,e.value[1],e);var f=e.value;i=f[0],c=f[1],u&&(u=t.call(n,c,i,a))}while(u);return o===xn?e:x(o,i,c,e)})},o}function gt(e,t){var r=a(e),o=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?F(e):H(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var u=o[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var l=new P(o);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),l=l.flatten(!0),l.size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),l}function yt(e,t,n){var r=It(e);return r.__iterateUncached=function(r,o){function a(e,l){var c=this;e.__iterate(function(e,o){return(!t||l0}function Ct(e,n,r){var o=It(e);return o.size=new P(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(_n,t),o=0;!(n=r.next()).done&&e(n.value,o++,this)!==!1;);return o},o.__iteratorUncached=function(e,o){var i=r.map(function(e){return e=t(e),R(o?e.reverse():e)}),a=0,s=!1;return new _(function(){var t;return s||(t=i.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?C():x(e,a++,n.apply(null,t.map(function(e){return e.value})))})},o}function St(e,t){return N(e)?t:e.constructor(t)}function Ot(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Rt(e){return ce(e.size),h(e)}function Et(e){return a(e)?n:s(e)?r:o}function It(e){return Object.create((a(e)?M:s(e)?T:k).prototype)}function Dt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):D.prototype.cacheResult.call(this)}function Mt(e,t){return e>t?1:et?-1:0}function on(e){if(e.size===1/0)return 0;var t=l(e),n=a(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+sn(ie(e),ie(t))|0}:function(e,t){r=r+sn(ie(e),ie(t))|0}:t?function(e){r=31*r+ie(e)|0}:function(e){r=r+ie(e)|0});return an(o,r)}function an(e,t){return t=Tn(t,3432918353),t=Tn(t<<15|t>>>-15,461845907),t=Tn(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Tn(t^t>>>16,2246822507),t=Tn(t^t>>>13,3266489909),t=oe(t^t>>>16)}function sn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var un=Array.prototype.slice;e(n,t),e(r,t),e(o,t),t.isIterable=i,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=l,t.Keyed=n,t.Indexed=r,t.Set=o;var ln="@@__IMMUTABLE_ITERABLE__@@",cn="@@__IMMUTABLE_KEYED__@@",fn="@@__IMMUTABLE_INDEXED__@@",dn="@@__IMMUTABLE_ORDERED__@@",pn="delete",hn=5,vn=1<r?C():x(e,o,n[t?r-o++:o++])})},e(A,M),A.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},A.prototype.has=function(e){return this._object.hasOwnProperty(e)},A.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(e(n[a],a,this)===!1)return i+1}return i},A.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new _(function(){var a=r[t?o-i:i];return i++>o?C():x(e,a,n[a])})},A.prototype[dn]=!0,e(j,T),j.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=R(n),o=0;if(O(r))for(var i;!(i=r.next()).done&&e(i.value,o++,this)!==!1;);return o},j.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=R(n);if(!O(r))return new _(C);var o=0;return new _(function(){var t=r.next();return t.done?t:x(e,o++,t.value)})},e(z,T),z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,o=0;o=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return x(e,o,r[o++])})};var En;e(Z,T),Z.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Z.prototype.get=function(e,t){return this.has(e)?this._value:t},Z.prototype.includes=function(e){return J(this._value,e)},Z.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:new Z(this._value,b(t,n)-m(e,n))},Z.prototype.reverse=function(){return this},Z.prototype.indexOf=function(e){return J(this._value,e)?0:-1},Z.prototype.lastIndexOf=function(e){return J(this._value,e)?this.size:-1},Z.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?C():x(e,i++,a)})},$.prototype.equals=function(e){return e instanceof $?this._start===e._start&&this._end===e._end&&this._step===e._step:X(this,e)};var Dn;e(ee,t),e(te,ee),e(ne,ee),e(re,ee),ee.Keyed=te,ee.Indexed=ne,ee.Set=re;var Mn,Tn="function"==typeof Math.imul&&Math.imul(4294967295,2)===-2?Math.imul:function(e,t){e|=0,t|=0;var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},kn=Object.isExtensible,Pn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),An="function"==typeof WeakMap;An&&(Mn=new WeakMap);var jn=0,zn="__immutablehash__";"function"==typeof Symbol&&(zn=Symbol(zn));var Nn=16,Ln=255,Fn=0,Hn={};e(fe,te),fe.of=function(){var e=un.call(arguments,0);return xe().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},fe.prototype.toString=function(){return this.__toString("Map {","}")},fe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},fe.prototype.set=function(e,t){return Ce(this,e,t)},fe.prototype.setIn=function(e,t){return this.updateIn(e,yn,function(){return t})},fe.prototype.remove=function(e){return Ce(this,e,yn)},fe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return yn})},fe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},fe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=Ae(this,Tt(e),t,n);return r===yn?void 0:r},fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):xe()},fe.prototype.merge=function(){return Me(this,void 0,arguments)},fe.prototype.mergeWith=function(e){var t=un.call(arguments,1);return Me(this,e,t)},fe.prototype.mergeIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,xe(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},fe.prototype.mergeDeep=function(){return Me(this,Te,arguments)},fe.prototype.mergeDeepWith=function(e){var t=un.call(arguments,1);return Me(this,ke(e),t)},fe.prototype.mergeDeepIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,xe(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},fe.prototype.sort=function(e){return Qe(wt(this,e))},fe.prototype.sortBy=function(e,t){return Qe(wt(this,t,e))},fe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},fe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new d)},fe.prototype.asImmutable=function(){return this.__ensureOwner()},fe.prototype.wasAltered=function(){return this.__altered},fe.prototype.__iterator=function(e,t){return new me(this,e,t)},fe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},fe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?_e(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},fe.isMap=de;var Gn="@@__IMMUTABLE_MAP__@@",Wn=fe.prototype;Wn[Gn]=!0,Wn[pn]=Wn.remove,Wn.removeIn=Wn.deleteIn,pe.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=Vn)return Ee(e,u,r,o);var h=e&&e===this.ownerID,v=h?u:p(u);return d?s?l===c-1?v.pop():v[l]=v.pop():v[l]=[r,o]:v.push([r,o]),h?(this.entries=v,this):new pe(e,v)}},he.prototype.get=function(e,t,n,r){void 0===t&&(t=ie(n));var o=1<<((0===e?t:t>>>e)&gn),i=this.bitmap;return 0===(i&o)?r:this.nodes[je(i&o-1)].get(e+hn,t,n,r)},he.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var s=(0===t?n:n>>>t)&gn,u=1<=Un)return De(e,d,l,s,h);if(c&&!h&&2===d.length&&Oe(d[1^f]))return d[1^f];if(c&&h&&1===d.length&&Oe(h))return h;var v=e&&e===this.ownerID,g=c?h?l:l^u:l|u,y=c?h?ze(d,f,h,v):Le(d,f,v):Ne(d,f,h,v);return v?(this.bitmap=g,this.nodes=y,this):new he(e,g,y)},ve.prototype.get=function(e,t,n,r){void 0===t&&(t=ie(n));var o=(0===e?t:t>>>e)&gn,i=this.nodes[o];return i?i.get(e+hn,t,n,r):r},ve.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var s=(0===t?n:n>>>t)&gn,u=o===yn,l=this.nodes,c=l[s];if(u&&!c)return this;var f=Se(c,e,t+hn,n,r,o,i,a);if(f===c)return this;var d=this.count;if(c){if(!f&&(d--,d=0&&e>>t&gn;if(r>=this.array.length)return new Ge([],e);var o,i=0===r;if(t>0){var a=this.array[r];if(o=a&&a.removeBefore(e,t-hn,n),o===a&&i)return this}if(i&&!o)return this;var s=Ke(this,e);if(!i)for(var u=0;u>>t&gn;if(r>=this.array.length)return this;var o;if(t>0){var i=this.array[r];if(o=i&&i.removeAfter(e,t-hn,n),o===i&&r===this.array.length-1)return this}var a=Ke(this,e);return a.array.splice(r+1),o&&(a.array[r]=o),a};var Jn,Xn={};e(Qe,fe),Qe.of=function(){return this(arguments)},Qe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Qe.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Qe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tt()},Qe.prototype.set=function(e,t){return nt(this,e,t)},Qe.prototype.remove=function(e){return nt(this,e,yn)},Qe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Qe.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Qe.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Qe.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?et(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Qe.isOrderedMap=$e,Qe.prototype[dn]=!0,Qe.prototype[pn]=Qe.prototype.remove;var Zn;e(rt,M),rt.prototype.get=function(e,t){return this._iter.get(e,t)},rt.prototype.has=function(e){return this._iter.has(e)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var e=this,t=lt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var n=this,r=ut(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},rt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Rt(this):0,function(o){return e(o,t?--n:n++,r)}),t)},rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(_n,t),r=t?Rt(this):0;return new _(function(){var o=n.next();return o.done?o:x(e,t?--r:r++,o.value,o)})},rt.prototype[dn]=!0,e(ot,T),ot.prototype.includes=function(e){return this._iter.includes(e)},ot.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},ot.prototype.__iterator=function(e,t){var n=this._iter.__iterator(_n,t),r=0;return new _(function(){var t=n.next();return t.done?t:x(e,r++,t.value,t)})},e(it,k),it.prototype.has=function(e){return this._iter.includes(e)},it.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},it.prototype.__iterator=function(e,t){var n=this._iter.__iterator(_n,t);return new _(function(){var t=n.next();return t.done?t:x(e,t.value,t.value,t)})},e(at,M),at.prototype.entrySeq=function(){return this._iter.toSeq()},at.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){Ot(t);var r=i(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},at.prototype.__iterator=function(e,t){var n=this._iter.__iterator(_n,t);return new _(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Ot(r);var o=i(r);return x(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},ot.prototype.cacheResult=rt.prototype.cacheResult=it.prototype.cacheResult=at.prototype.cacheResult=Dt,e(kt,te),kt.prototype.toString=function(){return this.__toString(At(this)+" {","}")},kt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},kt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},kt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Pt(this,xe()))},kt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+At(this));if(this._map&&!this._map.has(e)){var n=this._defaultValues[e];if(t===n)return this}var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:Pt(this,r)},kt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Pt(this,t)},kt.prototype.wasAltered=function(){return this._map.wasAltered()},kt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},kt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},kt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Pt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Qn=kt.prototype;Qn[pn]=Qn.remove,Qn.deleteIn=Qn.removeIn=Wn.removeIn,Qn.merge=Wn.merge,Qn.mergeWith=Wn.mergeWith,Qn.mergeIn=Wn.mergeIn,Qn.mergeDeep=Wn.mergeDeep,Qn.mergeDeepWith=Wn.mergeDeepWith,Qn.mergeDeepIn=Wn.mergeDeepIn,Qn.setIn=Wn.setIn,Qn.update=Wn.update,Qn.updateIn=Wn.updateIn,Qn.withMutations=Wn.withMutations,Qn.asMutable=Wn.asMutable,Qn.asImmutable=Wn.asImmutable,e(Nt,re),Nt.of=function(){return this(arguments)},Nt.fromKeys=function(e){return this(n(e).keySeq())},Nt.prototype.toString=function(){return this.__toString("Set {","}")},Nt.prototype.has=function(e){return this._map.has(e)},Nt.prototype.add=function(e){return Ft(this,this._map.set(e,!0))},Nt.prototype.remove=function(e){return Ft(this,this._map.remove(e))},Nt.prototype.clear=function(){return Ft(this,this._map.clear())},Nt.prototype.union=function(){var e=un.call(arguments,0);return e=e.filter(function(e){return 0!==e.size}),0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Yt(e,t)},Bt.prototype.pushAll=function(e){if(e=r(e),0===e.size)return this;ce(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Yt(t,n)},Bt.prototype.pop=function(){return this.slice(1)},Bt.prototype.unshift=function(){return this.push.apply(this,arguments)},Bt.prototype.unshiftAll=function(e){return this.pushAll(e)},Bt.prototype.shift=function(){return this.pop.apply(this,arguments)},Bt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Jt()},Bt.prototype.slice=function(e,t){if(y(e,t,this.size))return this;var n=m(e,this.size),r=b(t,this.size);if(r!==this.size)return ne.prototype.slice.call(this,e,t);for(var o=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):Yt(o,i)},Bt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Yt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Bt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&e(r.value,n++,this)!==!1;)r=r.next;return n},Bt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new _(function(){if(r){var t=r.value;return r=r.next,x(e,n++,t)}return C()})},Bt.isStack=Kt;var or="@@__IMMUTABLE_STACK__@@",ir=Bt.prototype;ir[or]=!0,ir.withMutations=Wn.withMutations,ir.asMutable=Wn.asMutable,ir.asImmutable=Wn.asImmutable,ir.wasAltered=Wn.wasAltered;var ar;t.Iterator=_,Xt(t,{toArray:function(){ce(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new ot(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new rt(this,!0)},toMap:function(){return fe(this.toKeyedSeq())},toObject:function(){ce(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Qe(this.toKeyedSeq())},toOrderedSet:function(){return Wt(a(this)?this.valueSeq():this)},toSet:function(){return Nt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new it(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Bt(a(this)?this.valueSeq():this)},toList:function(){return Fe(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=un.call(arguments,0);return St(this,gt(this,e))},includes:function(e){return this.some(function(t){return J(t,e)})},entries:function(){return this.__iterator(xn)},every:function(e,t){ce(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1}),n},filter:function(e,t){return St(this,ct(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return ce(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ce(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(wn)},map:function(e,t){return St(this,ut(this,e,t))},reduce:function(e,t,n){ce(this.size);var r,o;return arguments.length<2?o=!0:r=t,this.__iterate(function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return St(this,lt(this,!0))},slice:function(e,t){return St(this,pt(this,e,t,!0))},some:function(e,t){return!this.every($t(e),t)},sort:function(e){return St(this,wt(this,e))},values:function(){return this.__iterator(_n)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return h(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return ft(this,e,t)},equals:function(e){return X(this,e)},entrySeq:function(){var e=this;if(e._cache)return new P(e._cache);var t=e.toSeq().map(Qt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter($t(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(g)},flatMap:function(e,t){return St(this,mt(this,e,t))},flatten:function(e){return St(this,yt(this,e,!0))},fromEntrySeq:function(){return new at(this)},get:function(e,t){return this.find(function(t,n){return J(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,o=Tt(e);!(n=o.next()).done;){var i=n.value;if(r=r&&r.get?r.get(i,yn):yn,r===yn)return t}return r},groupBy:function(e,t){return dt(this,e,t)},has:function(e){return this.get(e,yn)!==yn},hasIn:function(e){return this.getIn(e,yn)!==yn},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e="function"==typeof e.isSubset?e:t(e),e.isSubset(this)},keyOf:function(e){return this.findKey(function(t){return J(t,e)})},keySeq:function(){return this.toSeq().map(Zt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return _t(this,e)},maxBy:function(e,t){return _t(this,t,e)},min:function(e){return _t(this,e?en(e):rn)},minBy:function(e,t){return _t(this,t?en(t):rn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return St(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return St(this,vt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile($t(e),t)},sortBy:function(e,t){return St(this,wt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return St(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return St(this,ht(this,e,t))},takeUntil:function(e,t){return this.takeWhile($t(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var sr=t.prototype;sr[ln]=!0,sr[On]=sr.values,sr.__toJS=sr.toArray,sr.__toStringMapper=tn,sr.inspect=sr.toSource=function(){return this.toString()},sr.chain=sr.flatMap,sr.contains=sr.includes,Xt(n,{flip:function(){return St(this,st(this))},mapEntries:function(e,t){var n=this,r=0;return St(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return St(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var ur=n.prototype;ur[cn]=!0,ur[On]=sr.entries,ur.__toJS=sr.toObject,ur.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+tn(e)},Xt(r,{toKeyedSeq:function(){return new rt(this,!1)},filter:function(e,t){return St(this,ct(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return St(this,lt(this,!1))},slice:function(e,t){return St(this,pt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=m(e,e<0?this.count():this.size);var r=this.slice(0,e);return St(this,1===n?r:r.concat(p(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return St(this,yt(this,e,!1))},get:function(e,t){return e=v(this,e),e<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return e=v(this,e),e>=0&&(void 0!==this.size?this.size===1/0||e-1){t.components.splice(n,1);var r=void 0,o={};for(r in t.metrics)t.metrics[r].component===e&&(o[r]=!0);for(r in o)o.hasOwnProperty(r)&&delete t.metrics[r]}},updateMetrics:function(){var e=this._DOMMetrics,t=!1;for(var n in e.metrics)if(e.metrics.hasOwnProperty(n)){var r=e.metrics[n].computator();r!==e.metrics[n].value&&(t=!0),e.metrics[n].value=r}if(t)for(var o=0,i=e.components.length;ou)&&!v)return h.createElement(l.default,s({ref:function(e){return r[d]=e}},g));var y=this.props,m=y.row,b=y.isSelected,w={ref:function(e){return r[d]=e},value:this.getCellValue(d||t),rowData:m,isRowSelected:b,expandableOptions:this.getExpandableOptions(d),selectedColumn:n,formatter:p,isScrolling:this.props.isScrolling};return h.createElement(o,s({},g,w))},getCells:function(){var e=this,t=[],n=[],r=this.getSelectedColumn(),o=this.props.columns.size-1;return this.props.columns&&this.props.columns.forEach(function(i,a){a===o&&(i.isLastColumn=!0);var s=e.getCell(i,a,r);i.locked?n.push(s):t.push(s)}),t.concat(n)},getRowHeight:function(){var e=this.props.expandedRows||null;if(e&&this.props.idx){var t=e[this.props.idx]||null;if(t)return t.height}return this.props.height},getCellValue:function(e){var t=void 0;return"select-row"===e?this.props.isSelected:t="function"==typeof this.props.row.get?this.props.row.get(e):this.props.row[e]},isContextMenuDisplayed:function(){if(this.props.cellMetaData){var e=this.props.cellMetaData.selected;if(e&&e.contextMenuDisplayed&&e.rowIdx===this.props.idx)return!0}return!1},getExpandableOptions:function(e){var t=this.props.subRowDetails;return t?{canExpand:t&&t.field===e&&(t.children&&t.children.length>0||t.group===!0),field:t.field,expanded:t&&t.expanded,children:t&&t.children,treeDepth:t?t.treeDepth:0,subRowDetails:t}:{}},setScrollLeft:function(e){var t=this;this.props.columns.forEach(function(n){if(n.locked){if(!t[n.key])return;t[n.key].setScrollLeft(e)}})},getKnownDivProps:function(){return w(this.props,x)},renderCell:function(e){return"function"==typeof this.props.cellRenderer&&this.props.cellRenderer.call(this,e),h.isValidElement(this.props.cellRenderer)?h.cloneElement(this.props.cellRenderer,e):this.props.cellRenderer(e)},render:function(){var e=g("react-grid-Row","react-grid-Row--"+(this.props.idx%2===0?"even":"odd"),{"row-selected":this.props.isSelected,"row-context-menu":this.isContextMenuDisplayed()},this.props.extraClasses),t={height:this.getRowHeight(this.props),overflow:"hidden",contain:"layout"},n=this.getCells();return h.createElement("div",s({},this.getKnownDivProps(),{className:e,style:t,onDragEnter:this.handleDragEnter}),h.isValidElement(this.props.row)?this.props.row:n)}});e.exports=C},function(e,t){"use strict";function n(){if(void 0===r){var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.position="absolute",e.style.top="-200px",e.style.left="-200px";var t=document.createElement("div");t.style.height="100px",t.style.width="100%",e.appendChild(t),document.body.appendChild(e);var n=e.clientWidth;e.style.overflowY="scroll";var o=t.clientWidth;document.body.removeChild(e),r=n-o}return r}var r=void 0;e.exports=n},function(e,t){"use strict";function n(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}e.exports=n},function(e,t,n){var r=n(236);"string"==typeof r&&(r=[[e.id,r,""]]);n(11)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(326),i=n(292),a=r(i);t.default=(0,o.createStore)(a.default)},[1812,45],[1852,154,395,398],[1883,379],[1887,359,371],[1968,43],function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},32,function(e,t,n){"use strict";function r(e,t){}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0,clientOffset:null},n=t.publishSource,r=t.clientOffset,o=t.getSourceClientOffset;(0,f.default)((0,p.default)(e),"Expected sourceIds to be an array.");var i=this.getMonitor(),a=this.getRegistry();(0,f.default)(!i.isDragging(),"Cannot call beginDrag while dragging.");for(var s=0;s=0;l--)if(i.canDragSource(e[l])){u=e[l];break}if(null!==u){var c=null;r&&((0,f.default)("function"==typeof o,"When clientOffset is provided, getSourceClientOffset must be a function."),c=o(u));var d=a.getSource(u),h=d.beginDrag(i,u);(0,f.default)((0,v.default)(h),"Item must be an object."),a.pinSource(u);var g=a.getSourceType(u);return{type:m,itemType:g,item:h,sourceId:u,clientOffset:r,sourceClientOffset:c,isSourcePublic:n}}}function i(){var e=this.getMonitor();if(e.isDragging())return{type:b}}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.clientOffset,r=void 0===n?null:n;(0,f.default)((0,p.default)(e),"Expected targetIds to be an array.");var o=e.slice(0),i=this.getMonitor(),a=this.getRegistry();(0,f.default)(i.isDragging(),"Cannot call hover while not dragging."),(0,f.default)(!i.didDrop(),"Cannot call hover after drop.");for(var s=0;s=0;d--){var h=o[d],v=a.getTargetType(h);(0,y.default)(v,c)||o.splice(d,1)}for(var g=0;g0&&void 0!==arguments[0]?arguments[0]:{},n=this.getMonitor(),r=this.getRegistry();(0,f.default)(n.isDragging(),"Cannot call drop while not dragging."),(0,f.default)(!n.didDrop(),"Cannot call drop twice during one drag operation.");var o=n.getTargetIds().filter(n.canDropOnTarget,n);o.reverse(),o.forEach(function(o,i){var a=r.getTarget(o),s=a.drop(n,o);(0,f.default)("undefined"==typeof s||(0,v.default)(s),"Drop result must either be an object or undefined."),"undefined"==typeof s&&(s=0===i?{}:n.getDropResult()),e.store.dispatch({type:_,dropResult:l({},t,s)})})}function u(){var e=this.getMonitor(),t=this.getRegistry();(0,f.default)(e.isDragging(),"Cannot call endDrag while not dragging.");var n=e.getSourceId(),r=t.getSource(n,!0);return r.endDrag(e,n),t.unpinSource(),{type:x}}Object.defineProperty(t,"__esModule",{value:!0}),t.END_DRAG=t.DROP=t.HOVER=t.PUBLISH_DRAG_SOURCE=t.BEGIN_DRAG=void 0;var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;ta||if.bottom?l.scrollTop=u.offsetTop+u.clientHeight-l.offsetHeight:c.topt.offsetHeight&&t.scrollHeight-t.offsetHeight-t.scrollTop<=0&&this.props.onMenuScrollToBottom()}}},{key:"getOptionLabel",value:function(e){return e[this.props.labelKey]}},{key:"getValueArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n="object"===("undefined"==typeof t?"undefined":f(t))?t:this.props;if(n.multi){if("string"==typeof e&&(e=e.split(n.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return F(e,n)}).filter(function(e){return e})}var r=F(e,n);return r?[r]:[]}},{key:"setValue",value:function(e){var t=this;if(this.props.autoBlur&&this.blurInput(),this.props.required){var n=H(e,this.props.multi);this.setState({required:n})}this.props.simpleValue&&e&&(e=this.props.multi?e.map(function(e){return e[t.props.valueKey]}).join(this.props.delimiter):e[this.props.valueKey]),this.props.onChange&&this.props.onChange(e)}},{key:"selectValue",value:function(e){var t=this;this.props.closeOnSelect&&(this.hasScrolledToOption=!1);var n=this.props.onSelectResetsInput?"":this.state.inputValue;this.props.multi?this.setState({focusedIndex:null,inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect},function(){var n=t.getValueArray(t.props.value);n.some(function(n){return n[t.props.valueKey]===e[t.props.valueKey]})?t.removeValue(e):t.addValue(e)}):this.setState({inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect,isPseudoFocused:this.state.isFocused},function(){t.setValue(e)})}},{key:"addValue",value:function(e){var t=this.getValueArray(this.props.value),n=this._visibleOptions.filter(function(e){return!e.disabled}),r=n.indexOf(e);this.setValue(t.concat(e)),n.length-1===r?this.focusOption(n[r-1]):n.length>r&&this.focusOption(n[r+1])}},{key:"popValue",value:function(){var e=this.getValueArray(this.props.value);e.length&&e[e.length-1].clearableValue!==!1&&this.setValue(this.props.multi?e.slice(0,e.length-1):null)}},{key:"removeValue",value:function(e){var t=this,n=this.getValueArray(this.props.value);this.setValue(n.filter(function(n){return n[t.props.valueKey]!==e[t.props.valueKey]})),this.focus()}},{key:"clearValue",value:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.preventDefault(),this.setValue(this.getResetValue()),this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1},this.focus),this._focusAfterClear=!0)}},{key:"getResetValue",value:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null}},{key:"focusOption",value:function(e){this.setState({focusedOption:e})}},{key:"focusNextOption",value:function(){this.focusAdjacentOption("next")}},{key:"focusPreviousOption",value:function(){this.focusAdjacentOption("previous")}},{key:"focusPageUpOption",value:function(){this.focusAdjacentOption("page_up")}},{key:"focusPageDownOption",value:function(){this.focusAdjacentOption("page_down")}},{key:"focusStartOption",value:function(){this.focusAdjacentOption("start")}},{key:"focusEndOption",value:function(){this.focusAdjacentOption("end")}},{key:"focusAdjacentOption",value:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen){var n={focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null),isOpen:!0};return this.props.onSelectResetsInput&&(n.inputValue=""),void this.setState(n)}if(t.length){for(var r=-1,o=0;o0?r-=1:r=t.length-1;else if("start"===e)r=0;else if("end"===e)r=t.length-1;else if("page_up"===e){var i=r-this.props.pageSize;r=i<0?0:i}else if("page_down"===e){var a=r+this.props.pageSize;r=a>t.length-1?t.length-1:a}r===-1&&(r=0),this.setState({focusedIndex:t[r].index,focusedOption:t[r].option})}}},{key:"getFocusedOption",value:function(){return this._focusedOption}},{key:"selectFocusedOption",value:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)}},{key:"renderLoading",value:function(){if(this.props.isLoading)return b.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},b.default.createElement("span",{className:"Select-loading"}))}},{key:"renderValue",value:function(e,t){var n=this,r=this.props.valueRenderer||this.getOptionLabel,o=this.props.valueComponent;if(!e.length){var i=L(this.state,this.props,t);return i?b.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder):null}var a=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return b.default.createElement(o,{disabled:n.props.disabled||e.clearableValue===!1,id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,key:"value-"+t+"-"+e[n.props.valueKey],onClick:a,onRemove:n.removeValue,placeholder:n.props.placeholder,value:e},r(e,t),b.default.createElement("span",{className:"Select-aria-only"}," "))}):N(this.state,this.props)?(t&&(a=null),b.default.createElement(o,{disabled:this.props.disabled,id:this._instancePrefix+"-value-item",instancePrefix:this._instancePrefix,onClick:a,placeholder:this.props.placeholder,value:e[0]},r(e[0]))):void 0}},{key:"renderInput",value:function(e,t){var n,r=this,a=(0,v.default)("Select-input",this.props.inputProps.className),s=this.state.isOpen,u=(0,v.default)((n={},i(n,this._instancePrefix+"-list",s),i(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),c=this.state.inputValue;!c||this.props.onSelectResetsInput||this.state.isFocused||(c="");var f=l({},this.props.inputProps,{"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-expanded":""+s,"aria-haspopup":""+s,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-owns":u,className:a,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",required:this.state.required,tabIndex:this.props.tabIndex,value:c});if(this.props.inputRenderer)return this.props.inputRenderer(f);if(this.props.disabled||!this.props.searchable){var d=o(this.props.inputProps,[]),h=(0,v.default)(i({},this._instancePrefix+"-list",s));return b.default.createElement("div",l({},d,{"aria-expanded":s,"aria-owns":h,"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-disabled":""+this.props.disabled,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],className:a,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",style:{border:0,width:1,display:"inline-block"},tabIndex:this.props.tabIndex||0}))}return this.props.autosize?b.default.createElement(p.default,l({id:this.props.id},f,{minWidth:"5"})):b.default.createElement("div",{className:a,key:"input-wrap"},b.default.createElement("input",l({id:this.props.id},f)))}},{key:"renderClear",value:function(){var e=this.getValueArray(this.props.value); +if(this.props.clearable&&e.length&&!this.props.disabled&&!this.props.isLoading){var t=this.props.multi?this.props.clearAllText:this.props.clearValueText,n=this.props.clearRenderer();return b.default.createElement("span",{"aria-label":t,className:"Select-clear-zone",onMouseDown:this.clearValue,onTouchEnd:this.handleTouchEndClearValue,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,title:t},n)}}},{key:"renderArrow",value:function(){if(this.props.arrowRenderer){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return n?b.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n):null}}},{key:"filterOptions",value:function e(t){var n=this.state.inputValue,r=this.props.options||[];if(this.props.filterOptions){var e="function"==typeof this.props.filterOptions?this.props.filterOptions:R.default;return e(r,n,t,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,trimFilter:this.props.trimFilter,valueKey:this.props.valueKey})}return r}},{key:"onOptionRef",value:function(e,t){t&&(this.focused=e)}},{key:"renderMenu",value:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,inputValue:this.state.inputValue,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onOptionRef:this.onOptionRef,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,removeValue:this.removeValue,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey}):this.props.noResultsText?b.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null}},{key:"renderHiddenField",value:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return P(e[t.props.valueKey])}).join(this.props.delimiter);return b.default.createElement("input",{disabled:this.props.disabled,name:this.props.name,ref:function(e){return t.value=e},type:"hidden",value:n})}return e.map(function(e,n){return b.default.createElement("input",{disabled:t.props.disabled,key:"hidden."+n,name:t.props.name,ref:"value"+n,type:"hidden",value:P(e[t.props.valueKey])})})}}},{key:"getFocusableOptionIndex",value:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,r=this.state.focusedOption||e;if(r&&!r.disabled){var o=-1;if(t.some(function(e,t){var i=e[n]===r[n];return i&&(o=t),i}),o!==-1)return o}for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:r.props;return e.rowData.toJSON?e.rowData.toJSON():e.rowData},r.getFormatterDependencies=function(){if("function"==typeof r.props.column.getRowMetaData)return r.props.column.getRowMetaData(r.getRowData(),r.props.column)},r.getCellClass=function(){var e=b(r.props.column.cellClass,"react-grid-Cell",r.props.className,r.props.column.locked?"react-grid-Cell--locked":null),t=b({"row-selected":r.props.isRowSelected,editing:r.isActive(),copied:r.isCopied()||r.wasDraggedOver()||r.isDraggedOverUpwards()||r.isDraggedOverDownwards(),"is-dragged-over-up":r.isDraggedOverUpwards(),"is-dragged-over-down":r.isDraggedOverDownwards(),"was-dragged-over":r.wasDraggedOver(),"cell-tooltip":!!r.props.tooltip,"rdg-child-cell":r.props.expandableOptions&&r.props.expandableOptions.subRowDetails&&r.props.expandableOptions.treeDepth>0,"last-column":r.props.column.isLastColumn});return b(e,t)},r.getUpdateCellClass=function(){return r.props.column.getUpdateCellClass?r.props.column.getUpdateCellClass(r.props.selectedColumn,r.props.column,r.state.isCellValueChanging):""},r.isColumnSelected=function(){var e=r.props.cellMetaData;return null!=e&&(e.selected&&e.selected.idx===r.props.idx)},r.isSelected=function(){var e=r.props.cellMetaData;return null!=e&&(e.selected&&e.selected.rowIdx===r.props.rowIdx&&e.selected.idx===r.props.idx)},r.isActive=function(){var e=r.props.cellMetaData;return null!=e&&(r.isSelected()&&e.selected.active===!0)},r.isCellSelectionChanging=function(e){var t=r.props.cellMetaData;if(null==t)return!1;var n=e.cellMetaData.selected;return!t.selected||!n||(r.props.idx===n.idx||r.props.idx===t.selected.idx)},r.isCellSelectEnabled=function(){var e=r.props.cellMetaData;return null!=e&&e.enableCellSelect},r.hasChangedDependentValues=function(e){var t=r.props.column,n=!1;if(t.getRowMetaData){var o=t.getRowMetaData(r.getRowData(),t),i=e.column,a=i.getRowMetaData(r.getRowData(e),i);n=!l.default.isEqual(o,a)}return n},r.applyUpdateClass=function(){var e=r.getUpdateCellClass();if(null!=e&&""!==e){var t=r.node;t.classList?(t.classList.remove(e),t.classList.add(e)):t.className.indexOf(e)===-1&&(t.className=t.className+" "+e)}},r.setScrollLeft=function(e){var t=r.node;if(t){var n="translate3d("+e+"px, 0px, 0px)";t.style.webkitTransform=n,t.style.transform=n}},r.removeScroll=function(){var e=r.node;e&&(e.style.webkitTransform=null,e.style.transform=null)},r.isCopied=function(){var e=r.props.cellMetaData.copied;return e&&e.rowIdx===r.props.rowIdx&&e.idx===r.props.idx},r.isDraggedOver=function(){var e=r.props.cellMetaData.dragged;return e&&e.overRowIdx===r.props.rowIdx&&e.idx===r.props.idx},r.wasDraggedOver=function(){var e=r.props.cellMetaData.dragged;return e&&(e.overRowIdxr.props.rowIdx&&r.props.rowIdx>e.rowIdx)&&e.idx===r.props.idx},r.isDraggedCellChanging=function(e){var t=void 0,n=r.props.cellMetaData.dragged,o=e.cellMetaData.dragged;return!!n&&(t=o&&r.props.idx===o.idx||n&&r.props.idx===n.idx)},r.isCopyCellChanging=function(e){var t=void 0,n=r.props.cellMetaData.copied,o=e.cellMetaData.copied;return!!n&&(t=o&&r.props.idx===o.idx||n&&r.props.idx===n.idx)},r.isDraggedOverUpwards=function(){var e=r.props.cellMetaData.dragged;return!r.isSelected()&&r.isDraggedOver()&&r.props.rowIdxe.rowIdx},r.isFocusedOnBody=function(){return null==document.activeElement||document.activeElement.nodeName&&"string"==typeof document.activeElement.nodeName&&"body"===document.activeElement.nodeName.toLowerCase()},r.isFocusedOnCell=function(){return document.activeElement&&"react-grid-Cell"===document.activeElement.className},r.checkFocus=function(){if(r.isSelected()&&!r.isActive()){if(r.props.isScrolling&&!r.props.cellMetaData.isScrollingVerticallyWithKeyboard&&!r.props.cellMetaData.isScrollingHorizontallyWithKeyboard)return;var e=r.props.cellMetaData&&r.props.cellMetaData.enableCellAutoFocus,t=r.props.cellMetaData&&r.props.cellMetaData.getDataGridDOMNode?r.props.cellMetaData.getDataGridDOMNode():null;if(r.isFocusedOnCell()||e&&r.isFocusedOnBody()||t&&t.contains(document.activeElement)){var n=r.node;n&&n.focus()}}},r.canEdit=function(){return null!=r.props.column.editor||r.props.column.editable},r.canExpand=function(){return r.props.expandableOptions&&r.props.expandableOptions.canExpand},r.createColumEventCallBack=function(e,t){return function(n){e(n,t)}},r.createCellEventCallBack=function(e,t){return function(n){e(n),t(n)}},r.createEventDTO=function(e,t,n){var o=Object.assign({},e);for(var i in t)if(t.hasOwnProperty(i)){var a=t[a],s={idx:r.props.idx,rowIdx:r.props.rowIdx,rowId:r.props.rowData[r.props.cellMetaData.rowKey],name:i},u=r.createColumEventCallBack(n,s);if(o.hasOwnProperty(i)){var l=o[i];o[i]=r.createCellEventCallBack(l,u)}else o[i]=u}return o},r.getEvents=function(){var e=r.props.column?Object.assign({},r.props.column.events):void 0,t=r.props.cellMetaData?r.props.cellMetaData.onColumnEvent:void 0,n={onClick:r.onCellClick,onDoubleClick:r.onCellDoubleClick,onContextMenu:r.onCellContextMenu,onDragOver:r.onDragOver};return e&&t?r.createEventDTO(n,e,t):n},r.getKnownDivProps=function(){return R(r.props,E)},r.renderCellContent=function(e){var t=void 0,n=r.getFormatter();m.isValidElement(n)?(e.dependentValues=r.getFormatterDependencies(),t=m.cloneElement(n,e)):t=x(n)?m.createElement(n,{value:r.props.value,dependentValues:r.getFormatterDependencies()}):m.createElement(S,{value:r.props.value});var o=!!r.props.expandableOptions&&r.props.expandableOptions.field===r.props.column.key,i=r.props.expandableOptions?r.props.expandableOptions.treeDepth:0,a=r.props.expandableOptions&&o?30*r.props.expandableOptions.treeDepth:0,s=void 0,u=void 0;r.canExpand()&&(s=m.createElement(v.default,{expandableOptions:r.props.expandableOptions,onCellExpand:r.onCellExpand}));var l=!!r.props.cellMetaData.onDeleteSubRow;return i>0&&o&&(u=m.createElement(y.default,{treeDepth:i,cellHeight:r.props.height,siblingIndex:r.props.expandableOptions.subRowDetails.siblingIndex,numberSiblings:r.props.expandableOptions.subRowDetails.numberSiblings,onDeleteSubRow:r.onDeleteSubRow,isDeleteSubRowEnabled:l})),m.createElement("div",{className:"react-grid-Cell__value"},u,m.createElement("div",{style:{marginLeft:a}},m.createElement("span",null,t)," ",r.props.cellControls," ",s))},a=n,i(r,a)}return a(t,e),t.prototype.componentDidMount=function(){this.checkFocus()},t.prototype.componentWillReceiveProps=function(e){this.setState({isCellValueChanging:this.props.isCellValueChanging(this.props.value,e.value),isLockChanging:this.props.column.locked!==e.column.locked})},t.prototype.componentDidUpdate=function(){this.checkFocus();var e=this.props.cellMetaData.dragged;e&&e.complete===!0&&this.props.cellMetaData.handleTerminateDrag(),this.state.isCellValueChanging&&null!=this.props.selectedColumn&&this.applyUpdateClass(),this.state.isLockChanging&&!this.props.column.locked&&this.removeScroll()},t.prototype.shouldComponentUpdate=function(e){var t=this.props.column.width!==e.column.width||this.props.column.left!==e.column.left||this.props.column.cellClass!==e.column.cellClass||this.props.height!==e.height||this.props.rowIdx!==e.rowIdx||this.isCellSelectionChanging(e)||this.isDraggedCellChanging(e)||this.isCopyCellChanging(e)||this.props.isRowSelected!==e.isRowSelected||this.isSelected()||this.props.isCellValueChanging(this.props.value,e.value)||this.props.forceUpdate===!0||this.props.className!==e.className||this.props.expandableOptions!==e.expandableOptions||this.hasChangedDependentValues(e)||this.props.column.locked!==e.column.locked;return t},t.prototype.getCellActions=function(){var e=this.props,t=e.cellMetaData,n=e.column,r=e.rowData;if(t&&t.getCellActions){var o=t.getCellActions(n,r);return o&&o.length?o.map(function(e,t){return m.createElement(p.default,{key:t,action:e,isFirst:0===t})}):null}return null},t.prototype.render=function(){var e=this;if(this.props.column.hidden)return null;var t=this.getStyle(),n=this.getCellClass(),r=this.getCellActions(),o=this.props.children||this.renderCellContent({value:this.props.value,column:this.props.column,rowIdx:this.props.rowIdx,isExpanded:this.props.isExpanded}),i=!this.isActive()&&O.canEdit(this.props.column,this.props.rowData,this.props.cellMetaData.enableCellSelect)?m.createElement("div",{className:"drag-handle",draggable:"true",onDoubleClick:this.onDragHandleDoubleClick},m.createElement("span",{style:{display:"none"}})):null,a=this.getEvents(),u=this.props.tooltip?m.createElement("span",{className:"cell-tooltip-text"},this.props.tooltip):null;return m.createElement("div",s({},this.getKnownDivProps(),{className:n,style:t},a,{ref:function(t){e.node=t}}),r,o,i,u)},t}(m.Component);I.propTypes={rowIdx:f.default.number.isRequired,idx:f.default.number.isRequired,selected:f.default.shape({idx:f.default.number.isRequired}),selectedColumn:f.default.object,height:f.default.number,tabIndex:f.default.number,column:f.default.shape(_).isRequired,value:f.default.oneOfType([f.default.string,f.default.number,f.default.object,f.default.bool]),isExpanded:f.default.bool,isRowSelected:f.default.bool,cellMetaData:f.default.shape(C).isRequired,handleDragStart:f.default.func,className:f.default.string,cellControls:f.default.any,rowData:f.default.object.isRequired,forceUpdate:f.default.bool,expandableOptions:f.default.object.isRequired,isScrolling:f.default.bool.isRequired,tooltip:f.default.string,isCellValueChanging:f.default.func,children:f.default.oneOfType([f.default.arrayOf(f.default.node),f.default.node])},I.defaultProps={tabIndex:-1,isExpanded:!1,value:"",isCellValueChanging:function(e,t){return e!==t}},e.exports=I},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t="header"===e.column.rowType?e.column.name:"";return c.createElement("div",{className:"widget-HeaderCell__value"},t)}var u=n(3),l=r(u),c=n(2),f=n(5),d=n(7),p=n(14),h=n(217);n(21);var v=function(e){function t(){var n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),l=0;l0&&t(r.props.column,n)}},r.onDragEnd=function(e){var t=r.getWidthFromMouseEvent(e);r.props.onResizeEnd(r.props.column,t),r.setState({resizing:!1})},r.getWidthFromMouseEvent=function(e){var t=e.pageX||e.touches&&e.touches[0]&&e.touches[0].pageX||e.changedTouches&&e.changedTouches[e.changedTouches.length-1].pageX,n=f.findDOMNode(r).getBoundingClientRect().left;return t-n},r.getCell=function(){return c.isValidElement(r.props.renderer)?"string"==typeof r.props.renderer.type?c.cloneElement(r.props.renderer,{height:r.props.height}):c.cloneElement(r.props.renderer,{column:r.props.column,height:r.props.height}):r.props.renderer({column:r.props.column})},r.getStyle=function(){return{width:r.props.column.width,left:r.props.column.left,display:"inline-block",position:"absolute",height:r.props.height,margin:0,textOverflow:"ellipsis",whiteSpace:"nowrap"}},r.setScrollLeft=function(e){var t=f.findDOMNode(r);t.style.webkitTransform="translate3d("+e+"px, 0px, 0px)",t.style.transform="translate3d("+e+"px, 0px, 0px)"},r.removeScroll=function(){var e=f.findDOMNode(r);if(e){var t="none";e.style.webkitTransform=t,e.style.transform=t}},a=n,i(r,a)}return a(t,e),t.prototype.render=function(){var e=void 0;this.props.column.resizable&&(e=c.createElement(h,{onDrag:this.onDrag,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd}));var t=d({"react-grid-HeaderCell":!0,"react-grid-HeaderCell--resizing":this.state.resizing,"react-grid-HeaderCell--locked":this.props.column.locked});t=d(t,this.props.className,this.props.column.cellClass);var n=this.getCell();return c.createElement("div",{className:t,style:this.getStyle()},n,e)},t}(c.Component);v.propTypes={renderer:l.default.oneOfType([l.default.func,l.default.element]).isRequired,column:l.default.shape(p).isRequired,onResize:l.default.func.isRequired,height:l.default.number.isRequired,onResizeEnd:l.default.func.isRequired,className:l.default.string},v.defaultProps={renderer:s},e.exports=v},function(e,t){"use strict";var n={onKeyDown:function(e){if(this.isCtrlKeyHeldDown(e))this.checkAndCall("onPressKeyWithCtrl",e);else if(this.isKeyExplicitlyHandled(e.key)){var t="onPress"+e.key;this.checkAndCall(t,e)}else this.isKeyPrintable(e.keyCode)&&this.checkAndCall("onPressChar",e);this._keysDown=this._keysDown||{},this._keysDown[e.keyCode]=!0,this.props.onGridKeyDown&&"function"==typeof this.props.onGridKeyDown&&this.props.onGridKeyDown(e)},onKeyUp:function(e){this._keysDown=this._keysDown||{},delete this._keysDown[e.keyCode],this.props.onGridKeyUp&&"function"==typeof this.props.onGridKeyUp&&this.props.onGridKeyUp(e)},isKeyDown:function(e){return!!this._keysDown&&e in this._keysDown},isSingleKeyDown:function(e){return!!this._keysDown&&(e in this._keysDown&&1===Object.keys(this._keysDown).length)},isKeyPrintable:function(e){var t=e>47&&e<58||32===e||13===e||e>64&&e<91||e>95&&e<112||e>185&&e<193||e>218&&e<223;return t},isKeyExplicitlyHandled:function(e){return"function"==typeof this["onPress"+e]},isCtrlKeyHeldDown:function(e){return(e.ctrlKey===!0||e.metaKey===!0)&&"Control"!==e.key},checkAndCall:function(e,t){"function"==typeof this[e]&&this[e](t)}};e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.cellMetaData.selected;return!(!t||t.rowIdx!==e.idx)}function i(e){var t=e.cellMetaData.dragged;return null!=t&&(t.rowIdx>=0||t.complete===!0)}function a(e){var t=e.cellMetaData.copied;return null!=t&&t.rowIdx===e.idx}t.__esModule=!0,t.shouldRowUpdate=void 0;var s=n(34),u=r(s),l=t.shouldRowUpdate=function(e,t){return!u.default.sameColumns(t.columns,e.columns,u.default.sameColumn)||o(t)||o(e)||i(e)||e.row!==t.row||t.colDisplayStart!==e.colDisplayStart||t.colDisplayEnd!==e.colDisplayEnd||t.colVisibleStart!==e.colVisibleStart||t.colVisibleEnd!==e.colVisibleEnd||a(t)||t.isSelected!==e.isSelected||e.height!==t.height||t.isOver!==e.isOver||t.expandedRows!==e.expandedRows||t.canDrop!==e.canDrop||t.forceUpdate===!0||t.extraClasses!==e.extraClasses};t.default=l},function(e,t){"use strict";var n={get:function(e,t){return"function"==typeof e.get?e.get(t):e[t]},isRowSelected:function(e,t,n,r,o){return t&&"[object Array]"===Object.prototype.toString.call(t)?t.indexOf(o)>-1:e&&e.rowKey&&e.values&&"[object Array]"===Object.prototype.toString.call(e.values)?e.values.indexOf(r[e.rowKey])>-1:!(!n||!r||"string"!=typeof n)&&r[n]}};e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.SimpleRowsContainer=void 0;var s=n(2),u=r(s),l=n(3),c=r(l),f=function(e){return u.default.createElement("div",{key:"rows-container"},e.rows)};f.propTypes={width:c.default.number,rows:c.default.array};var d=function(e){function t(n){o(this,t);var r=i(this,e.call(this,n));return r.plugins=n.window?n.window.ReactDataGridPlugins:window.ReactDataGridPlugins,r.hasContextMenu=r.hasContextMenu.bind(r),r.renderRowsWithContextMenu=r.renderRowsWithContextMenu.bind(r),r.getContextMenuContainer=r.getContextMenuContainer.bind(r),r.state={ContextMenuContainer:r.getContextMenuContainer(n)},r}return a(t,e),t.prototype.getContextMenuContainer=function(){if(this.hasContextMenu()){if(!this.plugins)throw new Error("You need to include ReactDataGrid UiPlugins in order to initialise context menu");return this.plugins.Menu.ContextMenuLayer("reactDataGridContextMenu")(f)}},t.prototype.hasContextMenu=function(){return this.props.contextMenu&&u.default.isValidElement(this.props.contextMenu)},t.prototype.renderRowsWithContextMenu=function(){var e=this.state.ContextMenuContainer,t={rowIdx:this.props.rowIdx,idx:this.props.idx},n=u.default.cloneElement(this.props.contextMenu,t);return u.default.createElement("div",null,u.default.createElement(e,this.props),n)},t.prototype.render=function(){return this.hasContextMenu()?this.renderRowsWithContextMenu():u.default.createElement(f,this.props)},t}(u.default.Component);d.propTypes={contextMenu:c.default.element,rowIdx:c.default.number,idx:c.default.number,window:c.default.object},t.default=d,t.SimpleRowsContainer=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(3),u=r(s),l=n(2);n(80);var c=function(e){function t(){var n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),l=0;l-1)return!1;if(r.filterOption)return r.filterOption.call(void 0,e,t);if(!t)return!0;var o=e[r.valueKey],a=e[r.labelKey],s=u(o),l=u(a);if(!s&&!l)return!1;var c=s?String(o):null,f=l?String(a):null;return r.ignoreAccents&&(c&&"label"!==r.matchProp&&(c=(0,i.default)(c)),f&&"value"!==r.matchProp&&(f=(0,i.default)(f))),r.ignoreCase&&(c&&"label"!==r.matchProp&&(c=c.toLowerCase()),f&&"value"!==r.matchProp&&(f=f.toLowerCase())),"start"===r.matchPos?c&&"label"!==r.matchProp&&c.substr(0,t.length)===t||f&&"value"!==r.matchProp&&f.substr(0,t.length)===t:c&&"label"!==r.matchProp&&c.indexOf(t)>=0||f&&"value"!==r.matchProp&&f.indexOf(t)>=0})};t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(58),i=r(o),a=n(3),s=r(a),u=n(2),l=r(u),c=function(e){var t=e.focusedOption,n=e.focusOption,r=e.inputValue,o=e.instancePrefix,a=e.onFocus,s=e.onOptionRef,u=e.onSelect,c=e.optionClassName,f=e.optionComponent,d=e.optionRenderer,p=e.options,h=e.removeValue,v=e.selectValue,g=e.valueArray,y=e.valueKey,m=f;return p.map(function(e,f){var p=g&&g.some(function(t){return t[y]===e[y]}),b=e===t,w=(0,i.default)(c,{"Select-option":!0,"is-selected":p,"is-focused":b,"is-disabled":e.disabled});return l.default.createElement(m,{className:w,focusOption:n,inputValue:r,instancePrefix:o,isDisabled:e.disabled,isFocused:b,isSelected:p,key:"option-"+f+"-"+e[y],onFocus:a,onSelect:u,option:e,optionIndex:f,ref:function(e){s(e,b)},removeValue:h,selectValue:v},d(e,f,r))})};c.propTypes={focusOption:s.default.func,focusedOption:s.default.object,inputValue:s.default.string,instancePrefix:s.default.string,onFocus:s.default.func,onOptionRef:s.default.func,onSelect:s.default.func,optionClassName:s.default.string,optionComponent:s.default.func,optionRenderer:s.default.func,options:s.default.array,removeValue:s.default.func,selectValue:s.default.func,valueArray:s.default.array,valueKey:s.default.string},t.default=c},[1786,23,15],[1790,582,583,584,585,586],function(e,t,n){function r(e,t){if(o(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(s.test(e)||!a.test(e)||null!=t&&e in Object(t))}var o=n(16),i=n(108),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=r},function(e,t){function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},46,function(e,t,n){function r(e){return"symbol"==typeof e||i(e)&&o(e)==a}var o=n(31),i=n(32),a="[object Symbol]";e.exports=r},function(e,t,n){function r(e){return a(e)?o(e):i(e)}var o=n(529),i=n(546),a=n(195);e.exports=r},,,function(e,t,n){var r,o;(function(){function n(e){function t(t,n,r,o,i,a){for(;i>=0&&i0?0:s-1;return arguments.length<3&&(o=n[a?a[u]:u],u+=e),t(n,r,o,a,u,s)}}function i(e){return function(t,n,r){n=S(n,r);for(var o=D(t),i=e>0?0:o-1;i>=0&&i0?a=i>=0?i:Math.max(i+s,a):s=i>=0?Math.min(i+1,s):i+s+1;else if(n&&i&&s)return i=n(r,o),r[i]===o?i:-1;if(o!==o)return i=t(h.call(r,a,s),x.isNaN),i>=0?i+a:-1;for(i=e>0?a:s-1;i>=0&&i=0&&t<=I};x.each=x.forEach=function(e,t,n){t=C(t,n);var r,o;if(M(e))for(r=0,o=e.length;r=0},x.invoke=function(e,t){var n=h.call(arguments,2),r=x.isFunction(t);return x.map(e,function(e){var o=r?t:e[t];return null==o?o:o.apply(e,n)})},x.pluck=function(e,t){return x.map(e,x.property(t))},x.where=function(e,t){return x.filter(e,x.matcher(t))},x.findWhere=function(e,t){return x.find(e,x.matcher(t))},x.max=function(e,t,n){var r,o,i=-(1/0),a=-(1/0);if(null==t&&null!=e){e=M(e)?e:x.values(e);for(var s=0,u=e.length;si&&(i=r)}else t=S(t,n),x.each(e,function(e,n,r){o=t(e,n,r),(o>a||o===-(1/0)&&i===-(1/0))&&(i=e,a=o)});return i},x.min=function(e,t,n){var r,o,i=1/0,a=1/0;if(null==t&&null!=e){e=M(e)?e:x.values(e);for(var s=0,u=e.length;sr||void 0===n)return 1;if(nt?(a&&(clearTimeout(a),a=null),s=l,i=e.apply(r,o),a||(r=o=null)):a||n.trailing===!1||(a=setTimeout(u,c)),i}},x.debounce=function(e,t,n){var r,o,i,a,s,u=function(){var l=x.now()-a;l=0?r=setTimeout(u,t-l):(r=null,n||(s=e.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,a=x.now();var l=n&&!r;return r||(r=setTimeout(u,t)),l&&(s=e.apply(i,o),i=o=null),s}},x.wrap=function(e,t){return x.partial(t,e)},x.negate=function(e){return function(){return!e.apply(this,arguments)}},x.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},x.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},x.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},x.once=x.partial(x.before,2);var A=!{toString:null}.propertyIsEnumerable("toString"),j=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];x.keys=function(e){if(!x.isObject(e))return[];if(m)return m(e);var t=[];for(var n in e)x.has(e,n)&&t.push(n);return A&&s(e,t),t},x.allKeys=function(e){if(!x.isObject(e))return[];var t=[];for(var n in e)t.push(n);return A&&s(e,t),t},x.values=function(e){for(var t=x.keys(e),n=t.length,r=Array(n),o=0;o":">",'"':""","'":"'","`":"`"},L=x.invert(N),F=function(e){var t=function(t){return e[t]},n="(?:"+x.keys(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}};x.escape=F(N),x.unescape=F(L),x.result=function(e,t,n){var r=null==e?void 0:e[t];return void 0===r&&(r=n),x.isFunction(r)?r.call(e):r};var H=0;x.uniqueId=function(e){var t=++H+"";return e?e+t:t},x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var G=/(.)^/,W={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},q=/\\|'|\r|\n|\u2028|\u2029/g,V=function(e){return"\\"+W[e]};x.template=function(e,t,n){!t&&n&&(t=n),t=x.defaults({},t,x.templateSettings);var r=RegExp([(t.escape||G).source,(t.interpolate||G).source,(t.evaluate||G).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,function(t,n,r,a,s){return i+=e.slice(o,s).replace(q,V),o=s+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var a=new Function(t.variable||"obj","_",i)}catch(e){throw e.source=i,e}var s=function(e){return a.call(this,e,x)},u=t.variable||"obj";return s.source="function("+u+"){\n"+i+"}",s},x.chain=function(e){var t=x(e);return t._chain=!0,t};var U=function(e,t){return e._chain?x(t).chain():t};x.mixin=function(e){x.each(x.functions(e),function(t){var n=x[t]=e[t];x.prototype[t]=function(){var e=[this._wrapped];return p.apply(e,arguments),U(this,n.apply(x,e))}})},x.mixin(x),x.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=c[e];x.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],U(this,n)}}),x.each(["concat","join","slice"],function(e){var t=c[e];x.prototype[e]=function(){return U(this,t.apply(this._wrapped,arguments))}}),x.prototype.value=function(){return this._wrapped},x.prototype.valueOf=x.prototype.toJSON=x.prototype.value,x.prototype.toString=function(){return""+this._wrapped},r=[],o=function(){return x}.apply(t,r),!(void 0!==o&&(e.exports=o))}).call(this)},,function(e,t,n){"use strict";function r(e){return e}function o(e,t,n){function o(e,t){var n=m.hasOwnProperty(t)?m[t]:null;x.hasOwnProperty(t)&&u("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&u("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function i(e,n){if(n){u("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),u(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,i=r.__reactAutoBindPairs;n.hasOwnProperty(l)&&b.mixins(e,n.mixins);for(var a in n)if(n.hasOwnProperty(a)&&a!==l){var s=n[a],c=r.hasOwnProperty(a);if(o(c,a),b.hasOwnProperty(a))b[a](e,s);else{var f=m.hasOwnProperty(a),h="function"==typeof s,v=h&&!f&&!c&&n.autobind!==!1;if(v)i.push(a,s),r[a]=s;else if(c){var g=m[a];u(f&&("DEFINE_MANY_MERGED"===g||"DEFINE_MANY"===g),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",g,a),"DEFINE_MANY_MERGED"===g?r[a]=d(r[a],s):"DEFINE_MANY"===g&&(r[a]=p(r[a],s))}else r[a]=s}}}else;}function c(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in b;u(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in e;u(!i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=r}}}function f(e,t){u(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(u(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function d(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return f(o,n),f(o,r),o}}function p(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){var n=t.bind(e);return n}function v(e){for(var t=e.__reactAutoBindPairs,n=0;n1&&void 0!==arguments[1]?arguments[1]:[];return!e||a(e)?t:u(e,t)}),p=function(e){return e.sortColumn},h=function(e){return e.sortDirection},v=(0,r.createSelector)([d,p,h],function(e,t,n){return n||t?l(e,t,n):e}),g=function(e){return e.groupBy},y=function(e){return e.expandedRows},m=(0,r.createSelector)([v,g,y],function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return!t||a(t)||i(t)?e:s(e,t,n)}),b=function(e){return e.selectedKeys},w=function(e){return e.rowKey},_=(0,r.createSelector)([w,b,c],function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t.map(function(t){return n.filter(function(n){return n[e]===t})[0]})}),x={getRows:m,getSelectedRowsByKey:_};e.exports=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging(),connectDragPreview:e.dragPreview()}}t.__esModule=!0;var u=n(17),l=n(2),c=r(l),f=n(3),d=r(f),p=n(4),h=p._constants.DragItemTypes,v=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.componentDidMount=function(){var e=this.props.connectDragPreview,t=new Image;t.src="./assets/images/drag_column_full.png",t.onload=function(){e(t)}},t.prototype.setScrollLeft=function(e){var t=ReactDOM.findDOMNode(this);t.style.webkitTransform="translate3d("+e+"px, 0px, 0px)",t.style.transform="translate3d("+e+"px, 0px, 0px)"},t.prototype.render=function(){var e=this.props,t=e.connectDragSource,n=e.isDragging;return n?null:t(c.default.createElement("div",{style:{cursor:"move"}},c.default.createElement(p.HeaderCell,this.props)))},t}(l.Component);v.propTypes={connectDragSource:d.default.func.isRequired,connectDragPreview:d.default.func.isRequired,isDragging:d.default.bool.isRequired};var g={beginDrag:function(e){return e.column},endDrag:function(e){return e.column}};t.default=(0,u.DragSource)(h.Column,g,s)(v)},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o="Owner > component",i="Wasted time (ms)",a="Instances",s=function(){function e(t){n(this,e),"object"===("undefined"==typeof t?"undefined":r(t))?this._createModel(t):this._createEmptyModel(t)}return e.prototype._createModel=function(e){var t=this._getComponentAndOwner(e),n=t.owner,r=t.component;this.owner=n,this.component=r,this.wastedInstances=e[a],this.wastedTime=e[i]},e.prototype._createEmptyModel=function(e){this.owner=e,this.component=e,this.wastedInstances=0,this.wastedTime=0},e.prototype._getComponentAndOwner=function(e){var t=e[o],n=t.split(">");return{owner:n[0].trim(),component:n[1].trim()}},e}();t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(288);Object.defineProperty(t,"ContextMenu",{enumerable:!0,get:function(){return r(o).default}});var i=n(290);Object.defineProperty(t,"ContextMenuLayer",{enumerable:!0,get:function(){return r(i).default}});var a=n(291);Object.defineProperty(t,"MenuItem",{enumerable:!0,get:function(){return r(a).default}});var s=n(82);Object.defineProperty(t,"monitor",{enumerable:!0,get:function(){return r(s).default}});var u=n(293);Object.defineProperty(t,"SubMenu",{enumerable:!0,get:function(){return r(u).default}});var l=n(287);Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return r(l).default}})},58,117,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return e="function"==typeof e?e():e,a.default.findDOMNode(e)||t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(5),a=r(i);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.default)(i.default.findDOMNode(e))};var o=n(5),i=r(o),a=n(83),s=r(a);e.exports=t.default},function(e,t){"use strict";function n(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return(0,a.default)(e.replace(s,"ms-"))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(317),a=r(i),s=/^-ms-/;e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,o){var a=e[t],u="undefined"==typeof a?"undefined":i(a);return s.default.isValidElement(a)?new Error("Invalid "+r+" `"+o+"` of type ReactElement "+("supplied to `"+n+"`, expected a ReactComponent or a ")+"DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===u&&"function"==typeof a.render||1===a.nodeType?null:new Error("Invalid "+r+" `"+o+"` of value `"+a+"` "+("supplied to `"+n+"`, expected a ReactComponent or a ")+"DOMElement.")}t.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=n(2),s=r(a),u=n(134),l=r(u);t.default=(0,l.default)(o)},function(e,t){"use strict";function n(e){function t(t,n,r,o,i,a){var s=o||"<>",u=a||r;if(null==n[r])return t?new Error("Required "+i+" `"+u+"` was not specified "+("in `"+s+"`.")):null;for(var l=arguments.length,c=Array(l>6?l-6:0),f=6;f-1&&e%1==0&&e, or turn it into a ")+"drag source or a drop target itself.")}}function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,s.isValidElement)(t)){var r=t;return void e(r,n)}var i=t;o(i);var a=n?function(t){return e(t,n)}:e;return(0,l.default)(i,a)}}function a(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n],o=i(r);t[n]=function(){return o}}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var s=n(2),u=n(425),l=r(u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,arguments[1]),t=arguments[2];switch(e.type){case c.HOVER:break;case f.ADD_SOURCE:case f.ADD_TARGET:case f.REMOVE_TARGET:case f.REMOVE_SOURCE:return d;case c.BEGIN_DRAG:case c.PUBLISH_DRAG_SOURCE:case c.END_DRAG:case c.DROP:default:return p}var n=e.targetIds,r=t.targetIds,o=(0,s.default)(n,r),i=!1;if(0===o.length){for(var a=0;a0)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,t.areDirty=i;var a=n(508),s=r(a),u=n(503),l=r(u),c=n(49),f=n(50),d=[],p=[]},function(e,t,n){"use strict";function r(e,t){return e===t||e&&t&&e.x===t.x&&e.y===t.y}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments[1];switch(t.type){case u.BEGIN_DRAG:return{initialSourceClientOffset:t.sourceClientOffset,initialClientOffset:t.clientOffset,clientOffset:t.clientOffset};case u.HOVER:return r(e.clientOffset,t.clientOffset)?e:s({},e,{clientOffset:t.clientOffset});case u.END_DRAG:case u.DROP:return l;default:return e}}function i(e){var t=e.clientOffset,n=e.initialClientOffset,r=e.initialSourceClientOffset;return t&&n&&r?{x:t.x+r.x-n.x,y:t.y+r.y-n.y}:null}function a(e){var t=e.clientOffset,n=e.initialClientOffset;return t&&n?{x:t.x-n.x,y:t.y-n.y}:null}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;td))return!1;var h=c.get(e);if(h&&c.get(t))return h==t;var v=-1,g=!0,y=n&u?new o:void 0;for(c.set(e,t),c.set(t,e);++v0&&r[0].isSelected}if(this.props.rowSelection){var o=this.props.rowSelection,i=o.keys,a=o.indexes,s=o.isSelectedKey;return w.isRowSelected(i,a,s,t,e)}return!1},_currentRowsLength:0,_currentRowsRange:{start:0,end:0},_scroll:{scrollTop:0,scrollLeft:0},setScrollLeft:function(e){if(0!==this._currentRowsLength){if(!this.rows)return;for(var t=0,n=this._currentRowsLength;t0&&s.unshift(this.renderPlaceholder("top",n*i)),a-r>0&&s.push(this.renderPlaceholder("bottom",(a-r)*i));var u={position:"absolute",top:0,left:0,overflowX:"auto",overflowY:"scroll",width:this.props.totalWidth,height:this.props.height};return p.createElement("div",{ref:function(t){e.div=t},style:u,onScroll:this.onScroll,className:g("react-grid-Canvas",this.props.className,{opaque:this.props.cellMetaData.selected&&this.props.cellMetaData.selected.active})},p.createElement(c.default,{width:this.props.width,rows:s,contextMenu:this.props.contextMenu,rowIdx:this.props.cellMetaData.selected.rowIdx,idx:this.props.cellMetaData.selected.idx}))}});e.exports=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(7),u=r(s),l=n(2),c=r(l),f=n(3),d=r(f),p=n(214),h=r(p),v=function(e){function t(){var n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),l=0;l0&&void 0!==arguments[0]?arguments[0]:this.props,t=this.setupGridColumns(e);return this.getColumnMetricsType({columns:t,minColumnWidth:this.props.minColumnWidth,totalWidth:e.minWidth})},onColumnResize:function(e,t){var n=l.resizeColumn(this.state.columnMetrics,e,t);this.setState({columnMetrics:n}),this.props.onColumnResize&&this.props.onColumnResize(e,t)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=Object.assign||function(e){for(var t=1;t=1||0===this.props.rowsCount&&!this.props.emptyRowsView?a.createElement("div",{ref:function(t){e.viewPortContainer=t},tabIndex:this.props.tabIndex,onKeyDown:this.props.onViewportKeydown,onKeyUp:this.props.onViewportKeyup,onClick:this.props.onViewportClick,onDoubleClick:this.props.onViewportDoubleClick,onDragStart:this.props.onViewportDragStart,onDragEnd:this.props.onViewportDragEnd},a.createElement(l,{ref:function(t){e.viewport=t},rowKey:this.props.rowKey,width:this.props.columnMetrics.width,rowHeight:this.props.rowHeight,rowRenderer:this.props.rowRenderer,rowGetter:this.props.rowGetter,rowsCount:this.props.rowsCount,selectedRows:this.props.selectedRows,expandedRows:this.props.expandedRows,columnMetrics:this.props.columnMetrics,totalWidth:this.props.totalWidth,onScroll:this.onScroll,onRows:this.props.onRows,cellMetaData:this.props.cellMetaData,rowOffsetHeight:this.props.rowOffsetHeight||this.props.rowHeight*t.length,minHeight:this.props.minHeight,rowScrollTimeout:this.props.rowScrollTimeout,scrollToRowIndex:this.props.scrollToRowIndex,contextMenu:this.props.contextMenu,rowSelection:this.props.rowSelection,getSubRowDetails:this.props.getSubRowDetails,rowGroupRenderer:this.props.rowGroupRenderer,overScan:this.props.overScan})):a.createElement("div",{ref:function(t){e.emptyView=t},className:"react-grid-Empty"},a.createElement(n,null)))}});e.exports=p},function(e,t,n){"use strict";var r=n(5);e.exports={componentDidMount:function(){this._scrollLeft=this.viewport?this.viewport.getScroll().scrollLeft:0,this._onScroll()},componentDidUpdate:function(){this._onScroll()},componentWillMount:function(){this._scrollLeft=void 0},componentWillUnmount:function(){this._scrollLeft=void 0},onScroll:function(e){this._scrollLeft!==e.scrollLeft&&(this._scrollLeft=e.scrollLeft,this._onScroll())},onHeaderScroll:function(e){var t=e.target.scrollLeft;if(this._scrollLeft!==t){this._scrollLeft=t,this.header.setScrollLeft(t);var n=r.findDOMNode(this.viewport.canvas);n.scrollLeft=t,this.viewport.canvas.setScrollLeft(t)}},_onScroll:function(){void 0!==this._scrollLeft&&(this.header.setScrollLeft(this._scrollLeft),this.viewport&&this.viewport.setScrollLeft(this._scrollLeft))}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=Object.assign||function(e){for(var t=1;t0?y():0,u=isNaN(r.props.totalWidth-s)?r.props.totalWidth:r.props.totalWidth-s,l={position:"absolute",top:r.getCombinedHeaderHeights(i),left:0,width:u,overflowX:"hidden",minHeight:a};n.push(c.createElement(g,{key:o.ref,ref:function(e){return"filter"===o.rowType?r.filterRow=e:r.row=e},rowType:o.rowType,style:l,onColumnResize:r.onColumnResize,onColumnResizeEnd:r.onColumnResizeEnd,width:e.width,height:o.height||r.props.height,columns:e.columns,resizing:t,draggableHeaderCell:r.props.draggableHeaderCell,filterable:o.filterable,onFilterChange:o.onFilterChange,onHeaderDrop:r.props.onHeaderDrop,sortColumn:r.props.sortColumn,sortDirection:r.props.sortDirection,onSort:r.props.onSort,onScroll:r.props.onScroll,getValidFilterValues:r.props.getValidFilterValues}))}),n},r.getColumnMetrics=function(){var e=void 0;return e=r.state.resizing?r.state.resizing.columnMetrics:r.props.columnMetrics},r.getColumnPosition=function(e){var t=r.getColumnMetrics(),n=-1;return t.columns.forEach(function(t,r){t.key===e.key&&(n=r)}),n===-1?null:n},r.getCombinedHeaderHeights=function(e){var t=r.props.headerRows.length;"undefined"!=typeof e&&(t=e);for(var n=0,o=0;o=0)return void this.exitGrid({idx:t,rowIdx:n},{idx:-1,rowIdx:n,exitedLeft:!0});if(!r&&t>=0)return void this.exitGrid({idx:t,rowIdx:n},{idx:-1,rowIdx:n})}return this.isFocusedOnTable()&&!this.isFocusedOnCell()&&r&&this.state.selected.exitedLeft?void this.enterGrid({idx:t,rowIdx:n}):this.isFocusedOnCell()?void this.moveSelectedCell(e,0,e.shiftKey?-1:1):t===-1?void this.moveSelectedCell(e,n===-1?1:0,r?this.getNbrColumns():1):(this.enterGrid({idx:t,rowIdx:n,changeSomething:!0}),void e.preventDefault())}},onPressEnter:function(e){this.setActive(e.key)},onPressDelete:function(e){this.setActive(e.key)},onPressEscape:function(e){this.setInactive(e.key),this.handleCancelCopy()},onPressBackspace:function(e){this.setActive(e.key)},onPressChar:function(e){this.isKeyPrintable(e.keyCode)&&this.setActive(e.keyCode)},onPressKeyWithCtrl:function(e){var t={KeyCode_c:99,KeyCode_C:67,KeyCode_V:86,KeyCode_v:118},n=this.state.selected.rowIdx,r=this.props.rowGetter(n),o=this.state.selected.idx,i=this.getColumn(o);if(m.canEdit(i,r,this.props.enableCellSelect))if(e.keyCode===t.KeyCode_c||e.keyCode===t.KeyCode_C){var a=this.getSelectedValue();this.handleCopy({value:a})}else e.keyCode!==t.KeyCode_v&&e.keyCode!==t.KeyCode_V||this.handlePaste()},onGridRowsUpdated:function(e,t,n,r,o,i){for(var a=[],s=t;s<=n;s++)a.push(this.props.rowGetter(s)[this.props.rowKey]);var u=this.props.rowGetter("COPY_PASTE"===o?i:t),l=u[this.props.rowKey],c=this.props.rowGetter(n)[this.props.rowKey];this.props.onGridRowsUpdated({cellKey:e,fromRow:t,toRow:n,fromRowId:l,toRowId:c,rowIds:a,updated:r,action:o,fromRowData:u})},onCellCommit:function(e){var t=Object.assign({},this.state.selected);t.active=!1;var n=this.state.expandedRows;this.setState({selected:t,expandedRows:n}),this.props.onRowUpdated&&this.props.onRowUpdated(e);var r=e.rowIdx;this.props.onGridRowsUpdated&&this.onGridRowsUpdated(e.cellKey,r,r,e.updated,u.default.UpdateActions.CELL_UPDATE)},onDragStart:function(e){var t=this.state.selected.idx,n=e&&e.target&&e.target.className;if(t>-1&&n){var r=this.getSelectedValue();this.handleDragStart({idx:this.state.selected.idx,rowIdx:this.state.selected.rowIdx,value:r}),e&&e.dataTransfer&&e.dataTransfer.setData&&(e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",""))}},onToggleFilter:function(){var e=this;this.setState({canFilter:!this.state.canFilter},function(){e.state.canFilter===!1&&e.props.onClearFilters&&e.props.onClearFilters()})},onDragHandleDoubleClick:function(e){if(this.props.onDragHandleDoubleClick&&this.props.onDragHandleDoubleClick(e),this.props.onGridRowsUpdated){var t,n=this.getColumn(e.idx).key;this.onGridRowsUpdated(n,e.rowIdx,this.props.rowsCount-1,(t={},t[n]=e.rowData[n],t),u.default.UpdateActions.COLUMN_FILL)}},onCellExpand:function(e){this.props.onCellExpand&&this.props.onCellExpand(e)},onRowExpandToggle:function(e){"function"==typeof this.props.onRowExpandToggle&&this.props.onRowExpandToggle(e)},isCellWithinBounds:function(e){var t=e.idx,n=e.rowIdx;return t>=0&&n>=0&&tn.overRowIdx?t.rowIdx:n.overRowIdx;if(this.props.onCellsDragged&&this.props.onCellsDragged({cellKey:o,fromRow:i,toRow:a,value:n.value}),this.props.onGridRowsUpdated){var s;this.onGridRowsUpdated(o,i,a,(s={},s[o]=n.value,s),u.default.UpdateActions.CELL_DRAG)}}this.setState({dragged:{complete:!0}})}},handleDragEnter:function(e){if(this.dragEnabled()&&null!=this.state.dragged){var t=this.state.dragged;t.overRowIdx=e,this.setState({dragged:t})}},handleTerminateDrag:function(){this.dragEnabled()&&this.setState({dragged:null})},handlePaste:function(){if(this.copyPasteEnabled()&&this.state.copied){var e=this.state.selected,t=this.getColumn(this.state.selected.idx).key,n=this.state.textToCopy,r=this.state.copied.rowIdx,o=e.rowIdx;if(this.props.onCellCopyPaste&&this.props.onCellCopyPaste({cellKey:t,rowIdx:o,value:n,fromRow:r,toRow:o}),this.props.onGridRowsUpdated){var i;this.onGridRowsUpdated(t,o,o,(i={},i[t]=n,i),u.default.UpdateActions.COPY_PASTE,r)}}},handleCancelCopy:function(){this.setState({copied:null})},handleCopy:function(e){if(this.copyPasteEnabled()){var t=e.value,n=this.state.selected,r={idx:n.idx,rowIdx:n.rowIdx};this.setState({textToCopy:t,copied:r})}},handleSort:function(e,t){this.setState({sortDirection:t,sortColumn:e},function(){this.props.onGridSort(e,t)})},getSelectedRow:function(e,t){var n=this,r=e.filter(function(e){return e[n.props.rowKey]===t});if(r.length>0)return r[0]},useNewRowSelection:function(){return this.props.rowSelection&&this.props.rowSelection.selectBy},handleShiftSelect:function(e){if(this.state.lastRowIdxUiSelected>-1&&this.isSingleKeyDown(b.Shift)){var t=this.props.rowSelection.selectBy,n=t.keys,r=t.indexes,o=t.isSelectedKey,i=y.isRowSelected(n,r,o,this.props.rowGetter(e),e);if(i)return!1;var a=!1;if(e>this.state.lastRowIdxUiSelected){for(var s=[],u=this.state.lastRowIdxUiSelected+1;u<=e;u++)s.push({rowIdx:u,row:this.props.rowGetter(u)});"function"==typeof this.props.rowSelection.onRowsSelected&&this.props.rowSelection.onRowsSelected(s),a=!0}else if(e0&&this.props.rowSelection.onRowsSelected(a)}else if(!t&&"function"==typeof this.props.rowSelection.onRowsDeselected){for(var l=[],c=0;c0&&this.props.rowSelection.onRowsDeselected(l)}}else{for(var d=[],p=0;p0?this.isAtLastCellInRow(i)&&("changeRow"===e?(r=this.isAtLastRow()?n:n+1,o=this.isAtLastRow()?o:0):o=0):t<0&&this.isAtFirstCellInRow()&&("changeRow"===e?(r=this.isAtFirstRow()?n:n-1,o=this.isAtFirstRow()?0:i-1):o=i-1);var a=this.state.selected.rowIdx+r;return{idx:o,rowIdx:a}},isAtLastCellInRow:function(e){return this.state.selected.idx===e-1},isAtLastRow:function(){return this.state.selected.rowIdx===this.props.rowsCount-1},isAtFirstCellInRow:function(){return 0===this.state.selected.idx},isAtFirstRow:function(){return 0===this.state.selected.rowIdx},openCellEditor:function(e,t){var n=this,r=this.props.rowGetter(e),o=this.getColumn(t);if(m.canEdit(o,r,this.props.enableCellSelect)){var i={rowIdx:e,idx:t};this.hasSelectedCellChanged(i)?this.setState({selected:i},function(){n.setActive("Enter")}):this.setActive("Enter")}},scrollToColumn:function(e){var t=f.findDOMNode(this).querySelector(".react-grid-Canvas");if(t){for(var n=0,r=0,o=0;ot.clientWidth){var l=u-t.clientWidth;t.scrollLeft+=l}}}},deselect:function(){var e={rowIdx:-1,idx:-1};this.setState({selected:e})},setActive:function(e){var t=this,n=this.state.selected.rowIdx,r=this.props.rowGetter(n),o=this.state.selected.idx,i=this.getColumn(o);if(m.canEdit(i,r,this.props.enableCellSelect)&&!this.isActive()){var a=Object.assign({},this.state.selected,{idx:o,rowIdx:n,active:!0,initialKeyCode:e}),s=!0;if("function"==typeof this.props.onCheckCellIsEditable){var u=Object.assign({},{row:r,column:i},a);s=this.props.onCheckCellIsEditable(u)}s!==!1&&(i.locked?this.setState({selected:a}):this.setState({selected:a},function(){t.scrollToColumn(o)}),this.props.onBeforeEdit(),this.handleCancelCopy())}},setInactive:function(){var e=this.state.selected.rowIdx,t=this.props.rowGetter(e),n=this.state.selected.idx,r=this.getColumn(n);if(m.canEdit(r,t,this.props.enableCellSelect)&&this.isActive()){var o=Object.assign({},this.state.selected,{idx:n,rowIdx:e,active:!1});this.setState({selected:o})}},isActive:function(){return this.state.selected.active===!0},setupGridColumns:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=t.columns;if(this._cachedColumns===n)return this._cachedComputedColumns;this._cachedColumns=n;var r=n.slice(0),o={};if(this.props.rowActionsCell||t.enableRowSelect&&!this.props.rowSelection||t.rowSelection&&t.rowSelection.showCheckbox!==!1){var i="single"===t.enableRowSelect?null:l.createElement("div",{className:"react-grid-checkbox-container checkbox-align"},l.createElement("input",{className:"react-grid-checkbox",type:"checkbox",name:"select-all-checkbox",id:"select-all-checkbox",ref:function(t){return e.selectAllCheckbox=t},onChange:this.handleCheckboxChange}),l.createElement("label",{htmlFor:"select-all-checkbox",className:"react-grid-checkbox-label"})),a=this.props.rowActionsCell?this.props.rowActionsCell:h,s={key:"select-row",name:"",formatter:l.createElement(a,{rowSelection:this.props.rowSelection}),onCellChange:this.handleRowSelect,filterable:!1,headerRenderer:i,width:60,locked:!0,getRowMetaData:function(e){return e},cellClass:this.props.rowActionsCell?"rdg-row-actions-cell":""};o=r.unshift(s),r=o>0?r:o}return this._cachedComputedColumns=r,this._cachedComputedColumns},copyPasteEnabled:function(){return null!==this.props.onCellCopyPaste},dragEnabled:function(){return void 0!==this.props.onGridRowsUpdated||void 0!==this.props.onCellsDragged},renderToolbar:function(){var e=this.props.toolbar,t={columns:this.props.columns,onToggleFilter:this.onToggleFilter,numberOfRows:this.props.rowsCount};return l.isValidElement(e)?l.cloneElement(e,t):w(e)?l.createElement(e,t):void 0},render:function(){var e=this,t={rowKey:this.props.rowKey,selected:this.state.selected,dragged:this.state.dragged,hoveredRowIdx:this.state.hoveredRowIdx,onCellClick:this.onCellClick,onCellContextMenu:this.onCellContextMenu,onCellDoubleClick:this.onCellDoubleClick,onCommit:this.onCellCommit,onCommitCancel:this.setInactive,copied:this.state.copied,handleDragEnterRow:this.handleDragEnter,handleTerminateDrag:this.handleTerminateDrag,enableCellSelect:this.props.enableCellSelect,onColumnEvent:this.onColumnEvent,openCellEditor:this.openCellEditor,onDragHandleDoubleClick:this.onDragHandleDoubleClick,onCellExpand:this.onCellExpand,onRowExpandToggle:this.onRowExpandToggle,onRowHover:this.onRowHover,getDataGridDOMNode:this.getDataGridDOMNode,getCellActions:this.props.getCellActions,onDeleteSubRow:this.props.onDeleteSubRow,onAddSubRow:this.props.onAddSubRow,isScrollingVerticallyWithKeyboard:this.isKeyDown(b.DownArrow)||this.isKeyDown(b.UpArrow),isScrollingHorizontallyWithKeyboard:this.isKeyDown(b.LeftArrow)||this.isKeyDown(b.RightArrow)||this.isKeyDown(b.Tab),enableCellAutoFocus:this.props.enableCellAutoFocus},n=this.renderToolbar(),r=this.props.minWidth||this.DOMMetrics.gridWidth(),i=r-this.state.scrollOffset;return("undefined"==typeof r||isNaN(r)||0===r)&&(r="100%"),("undefined"==typeof i||isNaN(i)||0===i)&&(i="100%"),l.createElement("div",{className:"react-grid-Container",style:{width:r}},n,l.createElement("div",{className:"react-grid-Main"},l.createElement(d,o({ref:function(t){return e.base=t}},this.props,{rowKey:this.props.rowKey,headerRows:this.getHeaderRows(),columnMetrics:this.state.columnMetrics,rowGetter:this.props.rowGetter,rowsCount:this.props.rowsCount,rowHeight:this.props.rowHeight,cellMetaData:t,selectedRows:this.getSelectedRows(),rowSelection:this.getRowSelectionProps(),expandedRows:this.state.expandedRows,rowOffsetHeight:this.getRowOffsetHeight(),sortColumn:this.state.sortColumn,sortDirection:this.state.sortDirection,onSort:this.handleSort,minHeight:this.props.minHeight,totalWidth:i,onViewportKeydown:this.onKeyDown,onViewportKeyup:this.onKeyUp,onViewportDragStart:this.onDragStart,onViewportDragEnd:this.handleDragEnd,onViewportClick:this.deselect,onViewportDoubleClick:this.deselect,onColumnResize:this.onColumnResize,rowScrollTimeout:this.props.rowScrollTimeout,scrollToRowIndex:this.props.scrollToRowIndex,contextMenu:this.props.contextMenu,overScan:this.props.overScan}))))}});e.exports=_},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t0?t:this.props.columnMetrics.totalWidth;0===n&&(n=u.findDOMNode(this).offsetWidth);for(var r=e,o=0;n>0;){var a=i.default.getColumn(this.props.columnMetrics.columns,r);if(!a)break;o++,r++,n-=a.width}return o},getVisibleColStart:function(e){for(var t=e,n=-1;t>=0;)n++,t-=i.default.getColumn(this.props.columnMetrics.columns,n).width;return n},clearScrollTimer:function(){this.resetScrollStateTimeoutId&&clearTimeout(this.resetScrollStateTimeoutId)},resetScrollStateAfterDelay:function(){this.clearScrollTimer(),this.resetScrollStateTimeoutId=setTimeout(this.resetScrollStateAfterDelayCallback,500)},resetScrollStateAfterDelayCallback:function(){this.resetScrollStateTimeoutId=null,this.setState({isScrolling:!1})},updateScroll:function(e,t,n,r,o,a){var s=!0;this.resetScrollStateAfterDelay();var u=p(n/r),l=f(0,d(e/r)),h=c(l+u,o),v=f(0,l-this.props.overScan.rowsStart),g=c(h+this.props.overScan.rowsEnd,o),y=i.default.getSize(this.props.columnMetrics.columns),m=y>0?f(0,this.getVisibleColStart(t)):0,b=this.getRenderedColumnCount(m,a),w=0!==b?m+b:y,_=f(0,m-this.props.overScan.colsStart),x=c(w+this.props.overScan.colsEnd,y),C={visibleStart:l,visibleEnd:h,displayStart:v,displayEnd:g,height:n,scrollTop:e,scrollLeft:t,colVisibleStart:m,colVisibleEnd:w,colDisplayStart:_,colDisplayEnd:x,isScrolling:s};this.setState(C)},metricsUpdated:function(){var e=this.DOMMetrics.viewportHeight(),t=this.DOMMetrics.viewportWidth();e&&this.updateScroll(this.state.scrollTop,this.state.scrollLeft,e,this.props.rowHeight,this.props.rowsCount,t)},componentWillReceiveProps:function(e){if(this.props.rowHeight!==e.rowHeight||this.props.minHeight!==e.minHeight){var t=this.getGridState(e);this.updateScroll(t.scrollTop,t.scrollLeft,t.height,e.rowHeight,e.rowsCount)}else if(i.default.getSize(this.props.columnMetrics.columns)!==i.default.getSize(e.columnMetrics.columns))this.setState(this.getGridState(e));else if(this.props.rowsCount!==e.rowsCount)this.updateScroll(this.state.scrollTop,this.state.scrollLeft,this.state.height,e.rowHeight,e.rowsCount);else if(this.props.rowOffsetHeight!==e.rowOffsetHeight){var n=this.props.rowOffsetHeight-e.rowOffsetHeight;this.updateScroll(this.state.scrollTop,this.state.scrollLeft,this.state.height+n,e.rowHeight,e.rowsCount)}},componentWillUnmount:function(){this.clearScrollTimer()}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(3),u=r(s),l=n(2),c=n(14),f=function(e){function t(){var n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),c=0;c-1},isClickInsideEditor:function(e){var t=this.getRelatedTarget(e);return e.currentTarget.contains(t)||t.className.indexOf("editing")>-1||t.className.indexOf("react-grid-Cell")>-1},getRelatedTarget:function(e){return e.relatedTarget||e.explicitOriginalTarget||document.activeElement},handleRightClick:function(e){e.stopPropagation()},handleBlur:function(e){e.stopPropagation(),this.isBodyClicked(e)&&this.commit(e),this.isBodyClicked(e)||!this.isViewportClicked(e)&&this.isClickInsideEditor(e)||this.commit(e)},setTextInputFocus:function(){var e=this.props.cellMetaData.selected,t=e.initialKeyCode,n=this.getInputNode();n.focus(),"INPUT"===n.tagName&&(this.isKeyPrintable(t)?n.select():(n.focus(),n.select()))},renderStatusIcon:function(){if(this.state.isInvalid===!0)return s.createElement("span",{className:"glyphicon glyphicon-remove form-control-feedback"})},render:function(){return s.createElement("div",{className:this.getContainerClass(),onBlur:this.handleBlur,onKeyDown:this.onKeyDown,onContextMenu:this.handleRightClick},this.createEditor(),this.renderStatusIcon())}});e.exports=p},function(e,t,n){"use strict";e.exports={CheckboxEditor:n(71),EditorBase:n(72),SimpleTextEditor:n(73)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;tspan{display:table-cell;vertical-align:middle}.rdg-cell-action-button:hover{background-color:#fff}.rdg-cell-action-button-toggled{background-color:#fff;border-right:1px solid #ccc;border-left:1px solid #ccc}.rdg-cell-action-button-toggled:after{content:"";height:1px;position:absolute;bottom:-1px;left:0;right:0;background:inherit;z-index:10001}.rdg-cell-action-menu{position:absolute;top:100%;right:0;z-index:1000;float:left;min-width:160px;padding:5px 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc}.rdg-cell-action-menu>span{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.rdg-cell-action-menu>span:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}',""])},function(e,t,n){t=e.exports=n(9)(),t.push([e.id,'.radio-custom,.react-grid-checkbox{opacity:0;position:absolute}.radio-custom,.radio-custom-label,.react-grid-checkbox,.react-grid-checkbox-label{display:inline-block;vertical-align:middle;cursor:pointer}.radio-custom-label,.react-grid-checkbox-label{position:relative}.radio-custom+.radio-custom-label:before,.react-grid-checkbox+.react-grid-checkbox-label:before{content:"";background:#fff;border:2px solid #ddd;display:inline-block;vertical-align:middle;width:20px;height:20px;text-align:center}.react-grid-checkbox:checked+.react-grid-checkbox-label:before{background:#005295;box-shadow:inset 0 0 0 4px #fff}.radio-custom:focus+.radio-custom-label,.react-grid-checkbox:focus+.react-grid-checkbox-label{outline:1px solid #ddd}.react-grid-HeaderCell input[type=checkbox]{z-index:99999}.react-grid-HeaderCell>.react-grid-checkbox-container{padding:0 10px;height:100%}.react-grid-HeaderCell>.react-grid-checkbox-container>.react-grid-checkbox-label{margin:0;position:relative;top:50%;transform:translateY(-50%)}.radio-custom+.radio-custom-label:before{border-radius:50%}.radio-custom:checked+.radio-custom-label:before{background:#ccc;box-shadow:inset 0 0 0 4px #fff}.checkbox-align{text-align:center}',""])},function(e,t,n){t=e.exports=n(9)(),t.push([e.id,".react-grid-Container{clear:both;margin-top:0;padding:0}.react-grid-Main{background-color:#fff;color:inherit;padding:0;outline:1px solid #e7eaec;clear:both}.react-grid-Grid{border:1px solid #ddd}.react-grid-Canvas,.react-grid-Grid{background-color:#fff}.react-grid-Cell input.editor-main,select.editor-main{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}input.editor-main:focus,select.editor-main:focus{border-color:#66afe9;border:2px solid #66afe9;background:#eee;border-radius:4px}.react-grid-Cell input.editor-main::-moz-placeholder,select.editor-main::-moz-placeholder{color:#999;opacity:1}.react-grid-Cell input.editor-main:-ms-input-placeholder,select.editor-main:-ms-input-placeholder{color:#999}.react-grid-Cell input.editor-main::-webkit-input-placeholder,select.editor-main::-webkit-input-placeholder{color:#999}.react-grid-Cell input.editor-main[disabled],.react-grid-Cell input.editor-main[readonly],fieldset[disabled] .react-grid-Cell input.editor-main,fieldset[disabled] select.editor-main,select.editor-main[disabled],select.editor-main[readonly]{cursor:not-allowed;background-color:#eee;opacity:1}textarea.react-grid-Cell input.editor-main,textareaselect.editor-main{height:auto}.react-grid-ScrollShim{z-index:10002}",""])},function(e,t,n){t=e.exports=n(9)(),t.push([e.id,".react-grid-Header{box-shadow:0 0 4px 0 #ddd;background:#f9f9f9}.react-grid-Header--resizing{cursor:ew-resize}.react-grid-HeaderCell,.react-grid-HeaderRow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.react-grid-HeaderCell{background:#f9f9f9;padding:8px;font-weight:700;border-right:1px solid #ddd;border-bottom:1px solid #ddd}.react-grid-HeaderCell__value{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;position:relative;top:50%;transform:translateY(-50%)}.react-grid-HeaderCell__resizeHandle:hover{cursor:ew-resize;background:#ddd}.react-grid-HeaderCell--locked:last-of-type{box-shadow:none}.react-grid-HeaderCell--resizing .react-grid-HeaderCell__resizeHandle{background:#ddd}.react-grid-HeaderCell__draggable{cursor:col-resize}.rdg-can-drop>.react-grid-HeaderCell{background:#ececec}.react-grid-HeaderCell .Select{max-height:30px;font-size:12px;font-weight:400}.react-grid-HeaderCell .Select-control{max-height:30px;border:1px solid #ccc;color:#555;border-radius:3px}.react-grid-HeaderCell .is-focused:not(.is-open)>.Select-control{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.react-grid-HeaderCell .Select-control .Select-placeholder{line-height:20px;color:#999;padding:4px}.react-grid-HeaderCell .Select-control .Select-input{max-height:28px;padding:4px;margin-left:0}.react-grid-HeaderCell .Select-control .Select-input input{padding:0;height:100%}.react-grid-HeaderCell .Select-control .Select-arrow-zone .Select-arrow{border-color:gray transparent transparent;border-width:4px 4px 2.5px}.react-grid-HeaderCell .Select-control .Select-value{padding:4px;line-height:20px!important}.react-grid-HeaderCell .Select--multi .Select-control .Select-value{padding:0;line-height:16px!important;max-height:20px}.react-grid-HeaderCell .Select--multi .Select-control .Select-value .Select-value-icon,.react-grid-HeaderCell .Select--multi .Select-control .Select-value .Select-value-label{max-height:20px}.react-grid-HeaderCell .Select-control .Select-value .Select-value-label{color:#555!important}.react-grid-HeaderCell .Select-menu-outer .Select-option{padding:4px;line-height:20px}.react-grid-HeaderCell .Select-menu-outer .Select-menu .Select-option.is-focused,.react-grid-HeaderCell .Select-menu-outer .Select-menu .Select-option.is-selected{color:#555}",""])},function(e,t,n){t=e.exports=n(9)(),t.push([e.id,'.react-grid-Row.row-context-menu .react-grid-Cell,.react-grid-Row:hover .react-grid-Cell{background-color:#f9f9f9}.react-grid-Row:hover .rdg-row-index{display:none}.react-grid-Row:hover .rdg-actions-checkbox{display:block}.react-grid-Row:hover .rdg-drag-row-handle{cursor:move;cursor:grab;cursor:-moz-grab;cursor:-webkit-grab;width:12px;height:30px;margin-left:0;background-image:url("data:image/svg+xml;base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjlweCIgaGVpZ2h0PSIyOXB4IiB2aWV3Qm94PSIwIDAgOSAyOSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDwhLS0gR2VuZXJhdG9yOiBTa2V0Y2ggMzkgKDMxNjY3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5kcmFnIGljb248L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iQWN0dWFsaXNhdGlvbi12MiIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkRlc2t0b3AiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNS4wMDAwMDAsIC0yNjIuMDAwMDAwKSIgZmlsbD0iI0Q4RDhEOCI+CiAgICAgICAgICAgIDxnIGlkPSJJbnRlcmFjdGlvbnMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE1LjAwMDAwMCwgMjU4LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9IlJvdy1Db250cm9scyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsIDIuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPGcgaWQ9ImRyYWctaWNvbiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsIDIuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iMiIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSI3IiBjeT0iMiIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iNyIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSI3IiBjeT0iNyIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iMTIiIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTMwIiBjeD0iNyIgY3k9IjEyIiByPSIyIj48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0zMCIgY3g9IjIiIGN5PSIxNyIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSI3IiBjeT0iMTciIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTMwIiBjeD0iMiIgY3k9IjIyIiByPSIyIj48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0zMCIgY3g9IjciIGN5PSIyMiIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iMjciIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTMwIiBjeD0iNyIgY3k9IjI3IiByPSIyIj48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==");background-repeat:no-repeat}.react-grid-Row.row-selected,.react-grid-Row .row-selected{background-color:#dbecfa}.react-grid-row-group .row-expand-icon:hover{color:#777}.react-grid-row-index{padding:0 18px}.rdg-row-index{display:block;text-align:center}.rdg-row-actions-cell{padding:0}.rdg-actions-checkbox{display:none;text-align:center}.rdg-actions-checkbox.selected{display:block}.rdg-dragging{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.rdg-dragged-row{border-bottom:1px solid #000}',""])},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,s],c=0;u=new Error(t.replace(/%s/g,function(){return l[c++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}e.exports=r},function(e,t,n){"use strict";var r=n(241),o=function(e){var t,n={};e instanceof Object&&!Array.isArray(e)?void 0:r(!1);for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};e.exports=o},,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t=o&&(r=!0);break;case p.Range:a.begin<=o&&a.end>=o&&(r=!0)}}return r},t.prototype.getRules=function(e){var t=[];if(""===e)return t;var n=e.split(",");if(n.length>0)for(var r in n)if(n.hasOwnProperty(r)){var o=n[r];if(o.indexOf("-")>0){var i=parseInt(o.split("-")[0],10),a=parseInt(o.split("-")[1],10);t.push({type:p.Range,begin:i,end:a})}else if(o.indexOf(">")>-1){var s=parseInt(o.split(">")[1],10);t.push({type:p.GreaterThen,value:s})}else if(o.indexOf("<")>-1){var u=parseInt(o.split("<")[1],10);t.push({type:p.LessThen,value:u})}else{var l=parseInt(o,10);t.push({type:p.Number,value:l})}}return t},t.prototype.handleKeyPress=function(e){var t=">|<|-|,|([0-9])",n=RegExp(t).test(e.key);n===!1&&e.preventDefault()},t.prototype.handleChange=function(e){var t=e.target.value,n=this.getRules(t);this.props.onChange({filterTerm:n.length>0?n:null,column:this.props.column,rawValue:t,filterValues:this.filterValues})},t.prototype.render=function(){var e="header-filter-"+this.props.column.key,t={float:"left",marginRight:5,maxWidth:"80%"},n={cursor:"help"},r="Input Methods: Range (x-y), Greater Then (>x), Less Then (20",className:"form-control input-sm",onChange:this.handleChange,onKeyPress:this.handleKeyPress})),u.default.createElement("div",{className:"input-sm"},u.default.createElement("span",{className:"badge",style:n,title:r},"?")))},t}(u.default.Component);h.propTypes={onChange:c.default.func.isRequired,column:c.default.shape(d)},e.exports=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[];return t.filter(function(t){var n=o(i(t)),r=!0;for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];if(s.filterValues&&"function"==typeof s.filterValues)r&=s.filterValues(t,s,a);else if("string"==typeof s.filterTerm){var u=n.getValue(t,a);void 0!==u?u.toString().toLowerCase().indexOf(s.filterTerm.toLowerCase())===-1&&(r&=!1):r&=!1}}return Boolean(r)})};e.exports=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(4),a=n(252),s=r(a),u=i.utils.isImmutableCollection,l=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];o(this,e),this.columns=t.slice(0),this.expandedRows=n,this.resolver=new s.default(r)}return e.prototype.isRowExpanded=function(e,t){var n=!0,r=this.expandedRows[e];return r&&r[t]&&(n=r[t].isExpanded),n},e.prototype.groupRowsByColumn=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t,r=this.columns.length>0&&"string"==typeof this.columns[t]?this.columns[t]:this.columns[t].key,o=this.resolver.getGroupedRows(e,r),i=this.resolver.getGroupKeys(o),a=this.resolver.initRowsCollection(),s=0;sn?(a=a.concat(this.groupRowsByColumn(this.resolver.getRowObj(o,u),n)),n=t-1):a=a.concat(this.resolver.getRowObj(o,u)))}return a},e}(),c=function(e,t,n){var r=new l(t,n,u(e));return r.groupRowsByColumn(e,0)};e.exports=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=n(20),a=n(603),s=r(a),u=n(4),l=u.utils.getMixedTypeValueRetriever,c=u.utils.isImmutableMap,f=function(){function e(t){o(this,e),this.isImmutable=t,this.getRowObj=l(t).getValue}return e.prototype.initRowsCollection=function(){return this.isImmutable?new i.List:[]},e.prototype.getGroupedRows=function(e,t){return this.isImmutable?e.groupBy(function(e){return c(e)?e.get(t):e[t]}):(0,s.default)(e,t)},e.prototype.getGroupKeys=function(e){var t=Object.keys;return this.isImmutable&&(t=function(e){for(var t=[],n=e.keys(),r=n.next();!r.done;)t.push(r.value),r=n.next();return t}),t(e)},e.prototype.addHeaderRow=function(e,t){var n=t,r=n.push(e);return this.isImmutable?r:n},e}();t.default=f},function(e,t,n){"use strict";var r=n(4),o=r.utils.getMixedTypeValueRetriever,i=r.utils.isImmutableCollection,a=function(e,t){return e>t?1:e0){var o=r.selectBy.keys.rowKey;return e.filter(function(e){return e[o]===n.data[o]}).length>0}return!1},t.prototype.getDraggedRows=function(){var e=void 0,t=this.props.rowSelection;if(t&&t.selectBy.keys){var n=this.props.rows,r=t.selectBy.keys,o=r.rowKey,i=r.values,a=v.default.getSelectedRowsByKey({rowKey:o,selectedKeys:i,rows:n});e=this.isDraggedRowSelected(a)?a:[this.props.rows[this.props.item.idx]]}else e=[this.props.rows[this.props.item.idx]];return e},t.prototype.renderDraggedRows=function(){var e=this,t=this.props.columns;return this.getDraggedRows().map(function(n,r){return c.default.createElement("tr",{key:"dragged-row-"+r},e.renderDraggedCells(n,r,t))})},t.prototype.renderDraggedCells=function(e,t,n){var r=[];return null!=e&&n.forEach(function(n){if(e.hasOwnProperty(n.key))if(n.formatter){var o=n.formatter,i="function"==typeof n.getRowMetaData?n.getRowMetaData(e,n):{};r.push(c.default.createElement("td",{key:"dragged-cell-"+t+"-"+n.key,className:"react-grid-Cell",style:{padding:"5px"}},c.default.createElement(o,{dependentValues:i,value:e[n.key]})))}else r.push(c.default.createElement("td",{key:"dragged-cell-"+t+"-"+n.key,className:"react-grid-Cell",style:{padding:"5px"}},e[n.key]))}),r},t.prototype.render=function(){var e=this.props.isDragging;if(!e)return null;var t=this.renderDraggedRows();return c.default.createElement("div",{style:g,className:"rdg-dragging"},c.default.createElement("div",{style:s(this.props),className:"rdg-dragging"},c.default.createElement("table",null,c.default.createElement("tbody",null,t))))},t}(l.Component);y.propTypes={item:d.default.object,itemType:d.default.string,currentOffset:d.default.shape({x:d.default.number.isRequired,y:d.default.number.isRequired}),isDragging:d.default.bool.isRequired,rowSelection:d.default.object,rows:d.default.array.isRequired,columns:d.default.array.isRequired},t.default=(0,p.DragLayer)(u)(y)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(258),i=r(o),a=n(124),s=r(a),u=n(260),l=r(u),c=n(259),f=r(c);e.exports={Container:i.default,DraggableHeaderCell:s.default,RowActionsCell:l.default,DropTargetRowContainer:f.default}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(3),u=r(s),l=n(2),c=n(5),f=n(515),d=n(4),p=d.shapes.ExcelColumn;n(519);var h=u.default.shape({id:u.default.required,title:u.default.string}),v=function(e){function t(){var n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),l=0;l0},r.isFocusedOnSuggestion=function(){var e=r.autoComplete;return null!=e.state.focusedValue},r.constuctValueFromParams=function(e,t){if(!t)return"";for(var n=[],r=0,o=t.length;r1)throw new Error("More then 1 result retrived for "+e);if(0===t.length){var n=new a.default(e);t=[n]}return t[0]},e}();t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(274),i=r(o),a=n(125),s=r(a),u=n(276),l=r(u);t.default={SummaryParser:i.default,SummaryItemModel:s.default,whyDidYouUpdate:l.default}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.NOTIFY_LEVELS=void 0;var s=Object.assign||function(e){for(var t=1;t=s.length)break;f=s[c++]}else{if(c=s.next(),c.done)break;f=c.value}var h=f;e(t[h],n[h],h)}console.groupEnd()}}else{if(console.group(r),[t,n].every(l.default.isFunction))i("avoidable?",p.WARNING);else if([t,n].every(d))for(var g=l.default.union(l.default.keys(t),l.default.keys(n)),y=g,m=Array.isArray(y),b=0,y=m?y:y[Symbol.iterator]();;){var w;if(m){if(b>=y.length)break;w=y[b++]}else{if(b=y.next(),b.done)break;w=b.value}var _=w;e(t[_],n[_],_)}else i("required.",p.DEBUG);console.groupEnd()}},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.NONE;return function(n){function r(){return o(this,r),i(this,n.apply(this,arguments))}return a(r,n),r.prototype.componentDidUpdate=function(n,r){h(t)&&g({props:n,state:r},{props:this.props,state:this.state},e.displayName,t)},r.prototype.render=function(){return f.default.createElement(e,s({},this.props,this.state))},r}(c.Component)};t.default=y,t.NOTIFY_LEVELS=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(2),u=r(s),l=n(3),c=r(l);n(182);var f={children:c.default.array},d={enableAddRow:!0},p=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){return u.default.createElement("div",{className:"react-grid-Toolbar"},this.props.children,u.default.createElement("div",{className:"tools"}))},t}(s.Component);p.defaultProps=d,p.propTypes=f,t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(2),u=r(s),l=n(3),c=r(l),f=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e={width:"80px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};return u.default.createElement("button",{className:"btn grouped-col-btn btn-sm"},u.default.createElement("span",{style:e},this.props.name),u.default.createElement("span",{className:"glyphicon glyphicon-trash",style:{float:"right",paddingLeft:"5px"},onClick:this.props.onColumnGroupDeleted.bind(null,this.props.columnKey)}))},t}(s.Component);t.default=f,f.propTypes={name:c.default.string.isRequired,onColumnGroupDeleted:c.default.func,columnKey:c.default.string.isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver(),canDrop:t.canDrop(),draggedolumn:t.getItem()}}t.__esModule=!0;var u=n(2),l=r(u),c=n(3),f=r(c),d=n(17),p=n(278),h=r(p),v=n(4),g=v._constants.DragItemTypes,y={isOver:f.default.bool.isRequired,connectDropTarget:f.default.func,canDrop:f.default.bool.isRequired,groupBy:f.default.array,noColumnsSelectedMessage:f.default.string,panelDescription:f.default.string,onColumnGroupDeleted:f.default.func},m={noColumnsSelectedMessage:"Drag a column header here to group by that column",panelDescription:"Drag a column header here to group by that column"},b=function(e){function t(){return o(this,t),i(this,e.call(this))}return a(t,e),t.prototype.getPanelInstructionMessage=function(){var e=this.props.groupBy;return e&&e.length>0?this.props.panelDescription:this.props.noColumnsSelectedMessage},t.prototype.renderGroupedColumns=function(){var e=this;return this.props.groupBy.map(function(t){var n={columnKey:"string"==typeof t?t:t.key,name:"string"==typeof t?t:t.name,onColumnGroupDeleted:e.props.onColumnGroupDeleted,key:"string"==typeof t?t:t.key};return l.default.createElement(h.default,n)})},t.prototype.renderOverlay=function(e){return l.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:1,opacity:.5,backgroundColor:e}})},t.prototype.render=function(){var e=this.props,t=e.connectDropTarget,n=e.isOver,r=e.canDrop;return t(l.default.createElement("div",{style:{padding:"2px",position:"relative",margin:"-10px",display:"inline-block",border:"1px solid #eee"}},this.renderGroupedColumns()," ",l.default.createElement("span",null,this.getPanelInstructionMessage()),n&&r&&this.renderOverlay("yellow"),!n&&r&&this.renderOverlay("#DBECFA")))},t}(u.Component);b.defaultProps=m,b.propTypes=y;var w={drop:function(e,t){var n=t.getItem();"function"==typeof e.onColumnGroupAdded&&e.onColumnGroupAdded(n.key)}};t.default=(0,d.DropTarget)(g.Column,w,s)(b)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(3),u=r(s),l=n(2);n(182);var c=function(e){function t(){var n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),c=0;c.Select-control{background-color:#f9f9f9}.Select.is-disabled>.Select-control:hover{box-shadow:none}.Select.is-open>.Select-control{border-bottom-right-radius:0;border-bottom-left-radius:0;background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.Select.is-open>.Select-control .Select-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.Select.is-searchable.is-focused:not(.is-open)>.Select-control,.Select.is-searchable.is-open>.Select-control{cursor:text}.Select.is-focused>.Select-control{background:#fff}.Select.is-focused:not(.is-open)>.Select-control{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 0 3px rgba(0,126,255,.1);background:#fff}.Select.has-value.is-clearable.Select--single>.Select-control .Select-value{padding-right:42px}.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value .Select-value-label,.Select.has-value.Select--single>.Select-control .Select-value .Select-value-label{color:#333}.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label,.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label{cursor:pointer;text-decoration:none}.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus,.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:hover,.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus,.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:hover{color:#007eff;outline:none;text-decoration:underline}.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus,.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus{background:#fff}.Select.has-value.is-pseudo-focused .Select-input{opacity:0}.Select.is-open .Select-arrow,.Select .Select-arrow-zone:hover>.Select-arrow{border-top-color:#666}.Select.Select--rtl{direction:rtl;text-align:right}.Select-control{background-color:#fff;border-color:#d9d9d9 #ccc #b3b3b3;border-radius:4px;border:1px solid #ccc;color:#333;cursor:default;display:table;border-spacing:0;border-collapse:separate;height:36px;outline:none;overflow:hidden;position:relative;width:100%}.Select-control:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.Select-control .Select-input:focus{outline:none;background:#fff}.Select--single>.Select-control .Select-value,.Select-placeholder{bottom:0;color:#aaa;left:0;line-height:34px;padding-left:10px;padding-right:10px;position:absolute;right:0;top:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Select-input{height:34px;padding-left:10px;padding-right:10px;vertical-align:middle}.Select-input>input{width:100%;background:none transparent;border:0 none;box-shadow:none;cursor:default;display:inline-block;font-family:inherit;font-size:inherit;margin:0;outline:none;line-height:17px;padding:8px 0 12px;-webkit-appearance:none}.is-focused .Select-input>input{cursor:text}.has-value.is-pseudo-focused .Select-input{opacity:0}.Select-control:not(.is-searchable)>.Select-input{outline:none}.Select-loading-zone{cursor:pointer;display:table-cell;text-align:center}.Select-loading,.Select-loading-zone{position:relative;vertical-align:middle;width:16px}.Select-loading{-webkit-animation:Select-animation-spin .4s infinite linear;-o-animation:Select-animation-spin .4s infinite linear;animation:Select-animation-spin .4s infinite linear;height:16px;box-sizing:border-box;border-radius:50%;border:2px solid #ccc;border-right-color:#333;display:inline-block}.Select-clear-zone{-webkit-animation:Select-animation-fadeIn .2s;-o-animation:Select-animation-fadeIn .2s;animation:Select-animation-fadeIn .2s;color:#999;cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:17px}.Select-clear-zone:hover{color:#d0021b}.Select-clear{display:inline-block;font-size:18px;line-height:1}.Select--multi .Select-clear-zone{width:17px}.Select-arrow-zone{cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:25px;padding-right:5px}.Select--rtl .Select-arrow-zone{padding-right:0;padding-left:5px}.Select-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px;display:inline-block;height:0;width:0;position:relative}.Select-control>:last-child{padding-right:5px}.Select--multi .Select-multi-value-wrapper{display:inline-block}.Select .Select-aria-only{position:absolute;display:inline-block;height:1px;width:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;float:left}@-webkit-keyframes Select-animation-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes Select-animation-fadeIn{0%{opacity:0}to{opacity:1}}.Select-menu-outer{border-bottom-right-radius:4px;border-bottom-left-radius:4px;background-color:#fff;border:1px solid #ccc;border-top-color:#e6e6e6;box-shadow:0 1px 0 rgba(0,0,0,.06);box-sizing:border-box;margin-top:-1px;max-height:200px;position:absolute;top:100%;width:100%;z-index:1;-webkit-overflow-scrolling:touch}.Select-menu{max-height:198px;overflow-y:auto}.Select-option{box-sizing:border-box;background-color:#fff;color:#666;cursor:pointer;display:block;padding:8px 10px}.Select-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.Select-option.is-selected{background-color:#f5faff;background-color:rgba(0,126,255,.04);color:#333}.Select-option.is-focused{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);color:#333}.Select-option.is-disabled{color:#ccc;cursor:default}.Select-noresults{box-sizing:border-box;color:#999;cursor:default;display:block;padding:8px 10px}.Select--multi .Select-input{vertical-align:middle;margin-left:10px;padding:0}.Select--multi.Select--rtl .Select-input{margin-left:0;margin-right:10px}.Select--multi.has-value .Select-input{margin-left:5px}.Select--multi .Select-value{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);border-radius:2px;border:1px solid #c2e0ff;border:1px solid rgba(0,126,255,.24);color:#007eff;display:inline-block;font-size:.9em;line-height:1.4;margin-left:5px;margin-top:5px;vertical-align:top}.Select--multi .Select-value-icon,.Select--multi .Select-value-label{display:inline-block;vertical-align:middle}.Select--multi .Select-value-label{border-bottom-right-radius:2px;border-top-right-radius:2px;cursor:default;padding:2px 5px}.Select--multi a.Select-value-label{color:#007eff;cursor:pointer;text-decoration:none}.Select--multi a.Select-value-label:hover{text-decoration:underline}.Select--multi .Select-value-icon{cursor:pointer;border-bottom-left-radius:2px;border-top-left-radius:2px;border-right:1px solid #c2e0ff;border-right:1px solid rgba(0,126,255,.24);padding:1px 5px 3px}.Select--multi .Select-value-icon:focus,.Select--multi .Select-value-icon:hover{background-color:#d8eafd;background-color:rgba(0,113,230,.08);color:#0071e6}.Select--multi .Select-value-icon:active{background-color:#c2e0ff;background-color:rgba(0,126,255,.24)}.Select--multi.Select--rtl .Select-value{margin-left:0;margin-right:5px}.Select--multi.Select--rtl .Select-value-icon{border-right:none;border-left:1px solid #c2e0ff;border-left:1px solid rgba(0,126,255,.24)}.Select--multi.is-disabled .Select-value{background-color:#fcfcfc;border:1px solid #e3e3e3;color:#333}.Select--multi.is-disabled .Select-value-icon{cursor:not-allowed;border-right:1px solid #e3e3e3}.Select--multi.is-disabled .Select-value-icon:active,.Select--multi.is-disabled .Select-value-icon:focus,.Select--multi.is-disabled .Select-value-icon:hover{background-color:#fcfcfc}@keyframes Select-animation-spin{to{transform:rotate(1turn)}}@-webkit-keyframes Select-animation-spin{to{-webkit-transform:rotate(1turn)}}",""]); +},function(e,t,n){t=e.exports=n(9)(),t.push([e.id,".slideUp{animation-name:slideUp;-webkit-animation-name:slideUp;animation-duration:1s;-webkit-animation-duration:1s;animation-timing-function:ease;-webkit-animation-timing-function:ease;visibility:visible!important}@keyframes slideUp{0%{transform:translateY(100%)}50%{transform:translateY(-8%)}65%{transform:translateY(4%)}80%{transform:translateY(-4%)}95%{transform:translateY(2%)}to{transform:translateY(0)}}@-webkit-keyframes slideUp{0%{-webkit-transform:translateY(100%)}50%{-webkit-transform:translateY(-8%)}65%{-webkit-transform:translateY(4%)}80%{-webkit-transform:translateY(-4%)}95%{-webkit-transform:translateY(2%)}to{-webkit-transform:translateY(0)}}",""])},function(e,t,n){t=e.exports=n(9)(),t.push([e.id,".react-grid-image{background:#efefef;background-size:100%;display:inline-block;height:40px;width:40px}",""])},function(e,t,n){t=e.exports=n(9)(),t.push([e.id,".react-grid-Toolbar{background-color:#fff;border-color:#e7eaec;border-image:none;border-style:solid solid none;border-width:1px;color:inherit;margin-bottom:0;padding:14px 15px 7px;height:48px}.react-grid-Toolbar .btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;color:inherit;background:#fff;border:1px solid #e7eaec}.react-grid-Toolbar .btn:hover{color:inherit;border:1px solid #d2d2d2}.react-grid-Toolbar .grouped-col-btn{background-color:#428bca;color:#fff}.react-grid-Toolbar .grouped-col-btn:hover{color:#fff}.react-grid-Toolbar .tools{display:inline-block;float:right;margin-top:0;position:relative;padding:0;margin-top:-6px}",""])},function(e,t,n){t=e.exports=n(9)(),t.push([e.id,".react-autocomplete-Autocomplete__search{display:block;width:100%;height:36px;padding:6px 12px;font-size:14px;line-height:1.6;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.react-autocomplete-Autocomplete__search:focus{border-color:#a21618;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(162,22,24,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(162,22,24,.6)}.react-autocomplete-Autocomplete__search::-moz-placeholder{color:#777;opacity:1}.react-autocomplete-Autocomplete__search:-ms-input-placeholder{color:#777}.react-autocomplete-Autocomplete__search::-webkit-input-placeholder{color:#777}.react-autocomplete-Autocomplete__search[disabled],.react-autocomplete-Autocomplete__search[readonly],fieldset[disabled] .react-autocomplete-Autocomplete__search{cursor:not-allowed;background-color:#eee;opacity:1}textarea.react-autocomplete-Autocomplete__search{height:auto}.react-autocomplete-Autocomplete__results{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:14px;text-align:left;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box;min-width:250px;width:100%;max-height:200px;overflow:auto}.react-autocomplete-Autocomplete__results.pull-right{right:0;left:auto}.react-autocomplete-Autocomplete__results .divider{height:1px;margin:10px 0;overflow:hidden;background-color:#e5e5e5}.react-autocomplete-Autocomplete__results>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.6;color:#333;white-space:nowrap}.react-autocomplete-Autocomplete__results div.action-button{display:block!important;padding:4px}.react-autocomplete-Result{cursor:pointer}.react-autocomplete-Result>a{text-decoration:none}.react-autocomplete-Result--active{color:#262626;background-color:#f5f5f5}",""])},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;ta&&(u.top-=s.height),e+s.width>i&&(u.left-=s.width),u},render:function(){var e=this,t=this.props,n=t.isVisible,r=t.identifier,i=t.children,s=o({},p,this.state);return a.default.createElement(c.default,{style:f,backdropStyle:d,show:n===r,onHide:function(){return u.default.hideMenu()}},a.default.createElement("nav",{ref:function(t){return e.menu=t},style:s,className:"react-context-menu"},i))}});t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.default=function(e,t){return function(n){var r=n.displayName||n.name||"Component";return(0,l.default)(e&&("string"==typeof e||"symbol"===("undefined"==typeof e?"undefined":i(e))||"function"==typeof e),"Expected identifier to be string, symbol or function. See %s",r),t&&(0,l.default)("function"==typeof t,"Expected configure to be a function. See %s",r),s.default.createClass({displayName:r+"ContextMenuLayer",getDefaultProps:function(){return{renderTag:"div",attributes:{}}},mouseDown:!1,handleMouseDown:function(e){var t=this;this.props.holdToDisplay>=0&&0===e.button&&(e.persist(),this.mouseDown=!0,setTimeout(function(){t.mouseDown&&t.handleContextClick(e)},this.props.holdToDisplay))},handleTouchstart:function(e){var t=this;e.persist(),this.mouseDown=!0,setTimeout(function(){t.mouseDown&&t.handleContextClick(e)},this.props.holdToDisplay)},handleTouchEnd:function(e){e.preventDefault(),this.mouseDown=!1},handleMouseUp:function(e){0===e.button&&(this.mouseDown=!1)},handleContextClick:function(n){var o="function"==typeof t?t(this.props):{};(0,l.default)((0,f.default)(o),"Expected configure to return an object. See %s",r),n.preventDefault();var i=n.clientX||n.touches&&n.touches[0].pageX,a=n.clientY||n.touches&&n.touches[0].pageY;p.default.dispatch({type:"SET_PARAMS",data:{x:i,y:a,currentItem:o,isVisible:"function"==typeof e?e(this.props):e}})},render:function(){var e=this.props,t=e.attributes,r=t.className,i=void 0===r?"":r,a=o(t,["className"]),u=e.renderTag,l=o(e,["attributes","renderTag"]);return a.className="react-context-menu-wrapper "+i,a.onContextMenu=this.handleContextClick,a.onMouseDown=this.handleMouseDown,a.onMouseUp=this.handleMouseUp,a.onTouchStart=this.handleTouchstart,a.onTouchEnd=this.handleTouchEnd,a.onMouseOut=this.handleMouseUp,s.default.createElement(u,a,s.default.createElement(n,l))}})}};var a=n(2),s=r(a),u=n(295),l=r(u),c=n(296),f=r(c),d=n(39),p=r(d)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;tn?o.bottom=!0:o.top=!0,r.right>t?o.left=!0:o.right=!0,{position:o}},getPositionStyles:function(){var e={},t=this.state.position;return t.top&&(e.top=0),t.bottom&&(e.bottom=0),t.right&&(e.left="100%"),t.left&&(e.right="100%"),e},render:function(){var e=this,t=this.props,n=t.children,r=t.visible,i=o({display:r?"block":"none",position:"absolute"},this.getPositionStyles());return a.default.createElement("nav",{ref:function(t){return e.menu=t},style:i,className:"react-context-menu"},n)}});t.default=s},10,function(e,t){function n(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=t.hideSiblingNodes,r=void 0===n||n,i=t.handleContainerOverflow,a=void 0===i||i;o(this,e),this.hideSiblingNodes=r,this.handleContainerOverflow=a,this.modals=[],this.containers=[],this.data=[]}return l(e,[{key:"add",value:function(e,t,n){var r=this.modals.indexOf(e),o=this.containers.indexOf(t);if(r!==-1)return r;if(r=this.modals.length,this.modals.push(e),this.hideSiblingNodes&&(0,m.hideSiblings)(t,e.mountNode),o!==-1)return this.data[o].modals.push(e),r;var i={modals:[e],classes:n?n.split(/\s+/):[],overflowing:(0,y.default)(t)};return this.handleContainerOverflow&&s(i,t),i.classes.forEach(p.default.addClass.bind(null,t)),this.containers.push(t),this.data.push(i),r}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(t!==-1){var n=a(this.data,e),r=this.data[n],o=this.containers[n];r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length?(r.classes.forEach(p.default.removeClass.bind(null,o)),this.handleContainerOverflow&&u(r,o),this.hideSiblingNodes&&(0,m.showSiblings)(o,e.mountNode),this.containers.splice(n,1),this.data.splice(n,1)):this.hideSiblingNodes&&(0,m.ariaHidden)(!1,r.modals[r.modals.length-1].mountNode)}}},{key:"isTopModal",value:function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}]),e}();t.default=b,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=r(o),a=n(5),s=r(a),u=n(133),l=r(u),c=n(130),f=r(c),d=n(129),p=r(d),h=i.default.createClass({displayName:"Portal",propTypes:{container:i.default.PropTypes.oneOfType([l.default,i.default.PropTypes.func])},componentDidMount:function(){this._renderOverlay()},componentDidUpdate:function(){this._renderOverlay()},componentWillReceiveProps:function(e){this._overlayTarget&&e.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=(0,p.default)(e.container,(0,f.default)(this).body),this._portalContainerNode.appendChild(this._overlayTarget))},componentWillUnmount:function(){this._unrenderOverlay(),this._unmountOverlayTarget()},_mountOverlayTarget:function(){this._overlayTarget||(this._overlayTarget=document.createElement("div"),this._portalContainerNode=(0,p.default)(this.props.container,(0,f.default)(this).body),this._portalContainerNode.appendChild(this._overlayTarget))},_unmountOverlayTarget:function(){this._overlayTarget&&(this._portalContainerNode.removeChild(this._overlayTarget),this._overlayTarget=null),this._portalContainerNode=null},_renderOverlay:function(){var e=this.props.children?i.default.Children.only(this.props.children):null;null!==e?(this._mountOverlayTarget(),this._overlayInstance=s.default.unstable_renderSubtreeIntoContainer(this,e,this._overlayTarget)):(this._unrenderOverlay(),this._unmountOverlayTarget())},_unrenderOverlay:function(){this._overlayTarget&&(s.default.unmountComponentAtNode(this._overlayTarget),this._overlayInstance=null)},render:function(){return null},getMountNode:function(){return this._overlayTarget},getOverlayDOMNode:function(){if(!this.isMounted())throw new Error("getOverlayDOMNode(): A component must be mounted to have a DOM node.");return this._overlayInstance?s.default.findDOMNode(this._overlayInstance):null}});t.default=h,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){return(0,i.default)(e,t,n,r),{remove:function(){(0,s.default)(e,t,n,r)}}};var o=n(309),i=r(o),a=n(308),s=r(a);e.exports=t.default},function(e,t){"use strict";function n(e){var t=!document.addEventListener,n=void 0;return t?(document.attachEvent("onfocusin",e),n=function(){return document.detachEvent("onfocusin",e)}):(document.addEventListener("focus",e,!0),n=function(){return document.removeEventListener("focus",e,!0)}),{remove:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return e&&"body"===e.tagName.toLowerCase()}function i(e){var t=(0,c.default)(e),n=(0,u.default)(t),r=n.innerWidth;if(!r){var o=t.documentElement.getBoundingClientRect();r=o.right-Math.abs(o.left)}return t.body.clientWidthe.clientHeight}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var s=n(311),u=r(s),l=n(83),c=r(l);e.exports=t.default},function(e,t){"use strict";function n(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}function r(e,t){s(e,t,function(e){return n(!0,e)})}function o(e,t){s(e,t,function(e){return n(!1,e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.ariaHidden=n,t.hideSiblings=r,t.showSiblings=o;var i=["template","script","style"],a=function(e){var t=e.nodeType,n=e.tagName;return 1===t&&i.indexOf(n.toLowerCase())===-1},s=function(e,t,n){t=[].concat(t),[].forEach.call(e.children,function(e){t.indexOf(e)===-1&&a(e)&&n(e)})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,a.default)();try{return e.activeElement}catch(e){}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(83),a=r(i);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){e.classList?e.classList.add(t):(0,a.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(131),a=r(i);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.hasClass=t.removeClass=t.addClass=void 0;var o=n(305),i=r(o),a=n(307),s=r(a),u=n(131),l=r(u);t.addClass=i.default,t.removeClass=s.default,t.hasClass=l.default,t.default={addClass:i.default,removeClass:s.default,hasClass:l.default}},function(e,t){"use strict";function n(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=n(e.className,t):e.setAttribute("class",n(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(26),i=r(o),a=function(){};i.default&&(a=function(){return document.addEventListener?function(e,t,n,r){return e.removeEventListener(t,n,r||!1)}:document.attachEvent?function(e,t,n){return e.detachEvent("on"+t,n)}:void 0}()),t.default=a,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(26),i=r(o),a=function(){};i.default&&(a=function(){return document.addEventListener?function(e,t,n,r){return e.addEventListener(t,n,r||!1)}:document.attachEvent?function(e,t,n){return e.attachEvent("on"+t,function(t){t=t||window.event,t.target=t.target||t.srcElement,t.currentTarget=e,n.call(e,t)})}:void 0}()),t.default=a,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(t)do if(t===e)return!0;while(t=t.parentNode);return!1}Object.defineProperty(t,"__esModule",{value:!0});var i=n(26),a=r(i);t.default=function(){return a.default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):o(e,t)}:o}(),e.exports=t.default},function(e,t){"use strict";function n(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var n=e.style;t=(0,a.default)(t),"float"==t&&(t="styleFloat");var r=e.currentStyle[t]||null;if(null==r&&n&&n[t]&&(r=n[t]),u.test(r)&&!s.test(t)){var o=n.left,i=e.runtimeStyle,l=i&&i.left;l&&(i.left=e.currentStyle.left),n.left="fontSize"===t?"1em":r,r=n.pixelLeft+"px",n.left=o,l&&(i.left=l)}return r}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(132),a=r(i),s=/^(top|right|bottom|left)$/,u=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){var r="",o="",i=t;if("string"==typeof t){if(void 0===n)return e.style[(0,a.default)(t)]||(0,c.default)(e).getPropertyValue((0,u.default)(t));(i={})[t]=n}Object.keys(i).forEach(function(t){var n=i[t];n||0===n?(0,v.default)(t)?o+=t+"("+n+") ":r+=(0,u.default)(t)+": "+n+";":(0,d.default)(e,(0,u.default)(t))}),o&&(r+=p.transform+": "+o+";"),e.style.cssText+=";"+r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(132),a=r(i),s=n(319),u=r(s),l=n(312),c=r(l),f=n(314),d=r(f),p=n(316),h=n(315),v=r(h);e.exports=t.default},function(e,t){"use strict";function n(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t){"use strict";function n(e){return!(!e||!r.test(e))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){for(var e=document.createElement("div").style,t={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},n=Object.keys(t),r=void 0,o=void 0,i="",a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(u)throw u;for(var r=!1,i={},a=0;a0}},{key:"leave",value:function(e){var t=this.entered.length;return this.entered=(0,l.default)(this.entered.filter(function(e){return document.documentElement.contains(e)}),e),t>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}]),e}();t.default=c},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;ne))return n[l];u=l-1}}a=Math.max(0,u);var f=e-t[a],d=f*f;return n[a]+r[a]*f+o[a]*d+i[a]*f*d}}]),e}();t.default=o},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e,t){for(var n in t){var r=t[n];r.configurable=r.enumerable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n,r)}return e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t,n){var r=t.reduce(function(t,n){return t||e.getData(n)},null);return null!=r?r:n}function u(e){var t=h[e],n=t.exposeProperty,r=t.matchesTypes,a=t.getData;return function(){function e(){var t,r;i(this,e),this.item=(t={},r={},r[n]=r[n]||{},r[n].get=function(){return console.warn("Browser doesn't allow reading \""+n+'" until the drop event.'),null},o(t,r),t)}return f(e,[{key:"mutateItemByReadingDataTransfer",value:function(e){delete this.item[n],this.item[n]=a(e,r)}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}]),e}()}function l(e){var t=Array.prototype.slice.call(e.types||[]);return Object.keys(h).filter(function(e){var n=h[e].matchesTypes;return n.some(function(e){return t.indexOf(e)>-1})})[0]||null}Object.defineProperty(t,"__esModule",{value:!0});var c,f=function(){function e(e,t){for(var n=0;n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var r=800,o=16,i=Date.now;e.exports=n},function(e,t){function n(e,t,n){for(var r=n-1,o=e.length;++r1&&void 0!==arguments[1]?arguments[1]:{};return R.default.apply(void 0,["DragLayer","collect[, options]"].concat(Array.prototype.slice.call(arguments))),(0,w.default)("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html",e), +(0,w.default)((0,m.default)(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html',t),function(n){var r,s,p=t.arePropsEqual,v=void 0===p?S.default:p,y=n.displayName||n.name||"Component",m=(s=r=function(t){function r(e,t){o(this,r);var n=i(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return n.handleChange=n.handleChange.bind(n),n.manager=t.dragDropManager,(0,w.default)("object"===l(n.manager),"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",y,y),n.state=n.getCurrentState(),n}return a(r,t),c(r,[{key:"getDecoratedComponentInstance",value:function(){return(0,w.default)(this.child,"In order to access an instance of the decorated component it can not be a stateless component."),this.child}},{key:"shouldComponentUpdate",value:function(e,t){return!v(e,this.props)||!(0,x.default)(t,this.state)}}]),c(r,[{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0;var e=this.manager.getMonitor();this.unsubscribeFromOffsetChange=e.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=e.subscribeToStateChange(this.handleChange),this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange(),this.unsubscribeFromStateChange()}},{key:"handleChange",value:function(){if(this.isCurrentlyMounted){var e=this.getCurrentState();(0,x.default)(e,this.state)||this.setState(e)}}},{key:"getCurrentState",value:function(){var t=this.manager.getMonitor();return e(t)}},{key:"render",value:function(){var e=this;return d.default.createElement(n,u({},this.props,this.state,{ref:function(t){e.child=t}}))}}]),r}(f.Component),r.DecoratedComponent=n,r.displayName="DragLayer("+y+")",r.contextTypes={dragDropManager:h.default.object.isRequired},s);return(0,g.default)(m,n)}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};c.default.apply(void 0,["DragSource","type, spec, collect[, options]"].concat(Array.prototype.slice.call(arguments)));var o=e;"function"!=typeof e&&((0,a.default)((0,x.default)(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',e),o=function(){return e}),(0,a.default)((0,u.default)(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',t);var i=(0,g.default)(t);return(0,a.default)("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',n),(0,a.default)((0,u.default)(r),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',n),function(e){return(0,d.default)({connectBackend:function(e,t){return e.connectDragSource(t)},containerDisplayName:"DragSource",createHandler:i,registerHandler:h.default,createMonitor:m.default,createConnector:w.default,DecoratedComponent:e,getType:o,collect:n,options:r})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(10),a=r(i),s=n(22),u=r(s),l=n(48),c=r(l),f=n(162),d=r(f),p=n(423),h=r(p),v=n(418),g=r(v),y=n(419),m=r(y),b=n(417),w=r(b),_=n(163),x=r(_)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};c.default.apply(void 0,["DropTarget","type, spec, collect[, options]"].concat(Array.prototype.slice.call(arguments)));var o=e;"function"!=typeof e&&((0,a.default)((0,x.default)(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',e),o=function(){return e}),(0,a.default)((0,u.default)(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',t);var i=(0,g.default)(t);return(0,a.default)("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',n),(0,a.default)((0,u.default)(r),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',n),function(e){return(0,d.default)({connectBackend:function(e,t){return e.connectDropTarget(t)},containerDisplayName:"DropTarget",createHandler:i,registerHandler:h.default,createMonitor:m.default,createConnector:w.default,DecoratedComponent:e,getType:o,collect:n,options:r})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(10),a=r(i),s=n(22),u=r(s),l=n(48),c=r(l),f=n(162),d=r(f),p=n(424),h=r(p),v=n(421),g=r(v),y=n(422),m=r(y),b=n(420),w=r(b),_=n(163),x=r(_)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){function t(){l&&(l(),l=null),o&&i&&(l=e.connectDragSource(o,i,s))}function n(){d&&(d(),d=null),o&&c&&(d=e.connectDragPreview(o,c,f))}function r(e){e!==o&&(o=e,t(),n())}var o=void 0,i=void 0,s=void 0,l=void 0,c=void 0,f=void 0,d=void 0,p=(0,a.default)({dragSource:function(e,n){e===i&&(0,u.default)(n,s)||(i=e,s=n,t())},dragPreview:function(e,t){e===c&&(0,u.default)(t,f)||(c=e,f=t,n())}});return{receiveHandlerId:r,hooks:p}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(165),a=r(i),s=n(161),u=r(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){Object.keys(e).forEach(function(t){(0,u.default)(c.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',c.join(", "),t),(0,u.default)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",t,t,e[t])}),f.forEach(function(t){(0,u.default)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",t,t,e[t])});var t=function(){function t(e){o(this,t),this.monitor=e,this.props=null,this.component=null}return a(t,[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveComponent",value:function(e){this.component=e}},{key:"canDrag",value:function(){return!e.canDrag||e.canDrag(this.props,this.monitor)}},{key:"isDragging",value:function(t,n){return e.isDragging?e.isDragging(this.props,this.monitor):n===t.getSourceId()}},{key:"beginDrag",value:function(){var t=e.beginDrag(this.props,this.monitor,this.component);return t}},{key:"endDrag",value:function(){e.endDrag&&e.endDrag(this.props,this.monitor,this.component)}}]),t}();return function(e){return new t(e)}}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',c.join(", "),t),(0,u.default)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html",t,t,e[t])});var t=function(){function t(e){o(this,t),this.monitor=e,this.props=null,this.component=null}return a(t,[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"receiveComponent",value:function(e){this.component=e}},{key:"canDrop",value:function(){return!e.canDrop||e.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){e.hover&&e.hover(this.props,this.monitor,this.component)}},{key:"drop",value:function(){if(e.drop){var t=e.drop(this.props,this.monitor,this.component);return t}}}]),t}();return function(e){return new t(e)}}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n or
. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?(0,s.cloneElement)(e,{ref:function(e){t(e),n&&n(e)}}):(0,s.cloneElement)(e,{ref:t})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(10),a=r(i),s=n(2)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=n(89),a=r(i),s=function(){function e(){for(var t=arguments.length,n=Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};i(this,e);var r=(0,u.default)(c.default);this.context=n,this.store=r,this.monitor=new h.default(r),this.registry=this.monitor.registry,this.backend=t(this),r.subscribe(this.handleRefCountChange.bind(this))}return a(e,[{key:"handleRefCountChange",value:function(){var e=this.store.getState().refCount>0;e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1)}},{key:"getContext",value:function(){return this.context}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.registry}},{key:"getActions",value:function(){function e(e){return function(){for(var r=arguments.length,o=Array(r),i=0;i1&&void 0!==arguments[1]?arguments[1]:{},r=n.handlerIds;(0,s.default)("function"==typeof e,"listener must be a function."),(0,s.default)("undefined"==typeof r||(0,l.default)(r),"handlerIds, when specified, must be an array of strings.");var o=this.store.getState().stateId,i=function(){var n=t.store.getState(),i=n.stateId;try{var a=i===o||i===o+1&&!(0,v.areDirty)(n.dirtyHandlerIds,r);a||e()}finally{o=i}};return this.store.subscribe(i)}},{key:"subscribeToOffsetChange",value:function(e){var t=this;(0,s.default)("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset,r=function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())};return this.store.subscribe(r)}},{key:"canDragSource",value:function(e){var t=this.registry.getSource(e);return(0,s.default)(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){var t=this.registry.getTarget(e);if((0,s.default)(t,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var n=this.registry.getTargetType(e),r=this.getItemType();return(0,f.default)(n,r)&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){var t=this.registry.getSource(e,!0);if((0,s.default)(t,"Expected to find a valid source."),!this.isDragging()||!this.isSourcePublic())return!1;var n=this.registry.getSourceType(e),r=this.getItemType();return n===r&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1},n=t.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(e),o=this.getItemType();if(!(0,f.default)(r,o))return!1;var i=this.getTargetIds();if(!i.length)return!1;var a=i.indexOf(e);return n?a===i.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return(0,h.getSourceClientOffset)(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return(0,h.getDifferenceFromInitialOffset)(this.store.getState().dragOffset)}}]),e}();t.default=g},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:c,t=arguments[1];switch(t.type){case u.BEGIN_DRAG:return i({},e,{itemType:t.itemType, +item:t.item,sourceId:t.sourceId,isSourcePublic:t.isSourcePublic,dropResult:null,didDrop:!1});case u.PUBLISH_DRAG_SOURCE:return i({},e,{isSourcePublic:!0});case u.HOVER:return i({},e,{targetIds:t.targetIds});case l.REMOVE_TARGET:return e.targetIds.indexOf(t.targetId)===-1?e:i({},e,{targetIds:(0,s.default)(e.targetIds,t.targetId)});case u.DROP:return i({},e,{dropResult:t.dropResult,didDrop:!0,targetIds:[]});case u.END_DRAG:return i({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return{dirtyHandlerIds:(0,d.default)(e.dirtyHandlerIds,t,e.dragOperation),dragOffset:(0,a.default)(e.dragOffset,t),refCount:(0,c.default)(e.refCount,t),dragOperation:(0,u.default)(e.dragOperation,t),stateId:(0,h.default)(e.stateId)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(167),a=r(i),s=n(437),u=r(s),l=n(439),c=r(l),f=n(166),d=r(f),p=n(440),h=r(p)},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments[1];switch(t.type){case o.ADD_SOURCE:case o.ADD_TARGET:return e+1;case o.REMOVE_SOURCE:case o.REMOVE_TARGET:return e-1;default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(50)},function(e,t){"use strict";function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(){return r++}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=0},function(e,t,n){"use strict";function r(){if(u.length)throw u.shift()}function o(e){var t;t=s.length?s.pop():new i,t.task=e,a(t)}function i(){this.task=null}var a=n(443),s=[],u=[],l=a.makeRequestCallFromTimer(r);e.exports=o,i.prototype.call=function(){try{this.task.call()}catch(e){o.onerror?o.onerror(e):(u.push(e),l())}finally{this.task=null,s[s.length]=this}}},function(e,t,n){"use strict";function r(e){u.length||(s(),l=!0),u[u.length]=e}function o(){for(;cf){for(var t=0,n=u.length-c;t=120&&y.length>=120)?new o(p&&y):void 0}y=e[0];var m=-1,b=h[0];e:for(;++m=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t1?t-1:0),o=1;o2?r-2:0),i=2;ir&&(i.ignoreFocus=!0,t.scrollTop=s-r)}},i.onMouseEnterResult=function(e,t){if(i.ignoreFocus)i.ignoreFocus=!1;else{var n=c.findDOMNode(i),r=n.scrollTop,o=n.offsetHeight,a=e.target,s=a.offsetTop,u=s+a.offsetHeight;u>r&&s-1}var i=n(r);e.exports=o},,,,,function(e,t,n,r,o,i,a,s,u){function l(e,t){var n=d(e),r=!n&&f(e),o=!n&&!r&&p(e),i=!n&&!r&&!o&&v(e),a=n||r||o||i,s=a?c(e.length,String):[],u=s.length;for(var l in e)!t&&!y.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||h(l,u))||s.push(l);return s}var c=n(r),f=n(o),d=n(i),p=n(a),h=n(s),v=n(u),g=Object.prototype,y=g.hasOwnProperty;e.exports=l},,,,function(e,t,n,r){function o(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}var i=n(r);e.exports=o},,,,,,,,function(e,t,n,r){function o(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var i=n(r);e.exports=o},,,,,,function(e,t,n,r,o,i,a,s,u){function l(e,t,n,r){var o=-1,i=f,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=p(t,h(n))),r?(i=d,a=!1):t.length>=g&&(i=v,a=!1,t=new c(t));e:for(;++o0&&n(c)?t>1?i(c,t-1,n,r,o):a(o,c):r||(o[o.length]=c)}return o}var a=n(r),s=n(o);e.exports=i},,,,,,,function(e,t,n,r,o,i){function a(e,t,n){return t===t?l(e,t,n):s(e,u,n)}var s=n(r),u=n(o),l=n(i);e.exports=a},,,function(e,t,n,r,o){function i(e){return s(e)&&a(e)==u}var a=n(r),s=n(o),u="[object Arguments]";e.exports=i},,,,,,,function(e,t,n,r,o,i,a){function s(e){if(!c(e)||l(e))return!1;var t=u(e)?m:p;return t.test(f(e))}var u=n(r),l=n(o),c=n(i),f=n(a),d=/[\\^$.*+?()[\]{}|]/g,p=/^\[object .+?Constructor\]$/,h=Function.prototype,v=Object.prototype,g=h.toString,y=v.hasOwnProperty,m=RegExp("^"+g.call(y).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=s},,,,function(e,t,n,r,o,i){function a(e){return l(e)&&u(e.length)&&!!A[s(e)]}var s=n(r),u=n(o),l=n(i),c="[object Arguments]",f="[object Array]",d="[object Boolean]",p="[object Date]",h="[object Error]",v="[object Function]",g="[object Map]",y="[object Number]",m="[object Object]",b="[object RegExp]",w="[object Set]",_="[object String]",x="[object WeakMap]",C="[object ArrayBuffer]",S="[object DataView]",O="[object Float32Array]",R="[object Float64Array]",E="[object Int8Array]",I="[object Int16Array]",D="[object Int32Array]",M="[object Uint8Array]",T="[object Uint8ClampedArray]",k="[object Uint16Array]",P="[object Uint32Array]",A={};A[O]=A[R]=A[E]=A[I]=A[D]=A[M]=A[T]=A[k]=A[P]=!0,A[c]=A[f]=A[C]=A[d]=A[S]=A[p]=A[h]=A[v]=A[g]=A[y]=A[m]=A[b]=A[w]=A[_]=A[x]=!1,e.exports=a},,,function(e,t,n,r,o,i){function a(e,t){return l(u(e,t,s),e+"")}var s=n(r),u=n(o),l=n(i);e.exports=a},,,,,function(e,t,n,r,o,i){var a=n(r),s=n(o),u=n(i),l=s?function(e,t){return s(e,"toString",{configurable:!0,enumerable:!1,value:a(t),writable:!0})}:u;e.exports=l},,,,,,,function(e,t,n,r,o,i,a,s,u){function l(e,t,n){var r=-1,o=f,i=e.length,a=!0,s=[],u=s;if(n)a=!1,o=d;else if(i>=g){var l=t?null:h(e);if(l)return v(l);a=!1,o=p,u=new c}else u=t?[]:s;e:for(;++r-1}var i=n(r);e.exports=o},,,,,function(e,t,n,r){function o(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var i=n(r);e.exports=o},,,,,,,function(e,t,n,r,o,i){function a(){this.size=0,this.__data__={hash:new s,map:new(l||u),string:new s}}var s=n(r),u=n(o),l=n(i);e.exports=a},,,,function(e,t,n,r){function o(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}var i=n(r);e.exports=o},,,,,,,function(e,t,n,r){function o(e){return i(this,e).get(e)}var i=n(r);e.exports=o},,,function(e,t,n,r){function o(e){return i(this,e).has(e)}var i=n(r);e.exports=o},,,,,function(e,t,n,r){function o(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var i=n(r);e.exports=o},,,,function(e,t,n,r){var o=n(r),i=o(Object,"create");e.exports=i},,,,function(e,t,n,r){(function(e){var o=n(r),i="object"==typeof t&&t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i,u=s&&o.process,l=function(){try{return u&&u.binding&&u.binding("util")}catch(e){}}();e.exports=l}).call(t,n(1)(e))},,,,,function(e,t,n,r){function o(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,s=a(r.length-t,0),u=Array(s);++o=0&&b.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function u(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function l(e,t){var n,r,o;if(t.singleton){var i=m++;n=y||(y=s(t)),r=c.bind(null,n,i,!1),o=c.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(t),r=d.bind(null,n),o=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=f.bind(null,n),o=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function c(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function f(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var p={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},v=h(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),g=h(function(){return document.head||document.getElementsByTagName("head")[0]}),y=null,m=0,b=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=v()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var i=[],a=0;a=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}var s=a;e[s]&&(n[s]=e[s])}return n}e.exports=n},function(e,t,n){!function(t,n){e.exports=n()}(this,function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return i(e)?e:D(e)}function n(e){return a(e)?e:M(e)}function r(e){return s(e)?e:T(e)}function o(e){return i(e)&&!u(e)?e:k(e)}function i(e){return!(!e||!e[ln])}function a(e){return!(!e||!e[cn])}function s(e){return!(!e||!e[fn])}function u(e){return a(e)||s(e)}function l(e){return!(!e||!e[dn])}function c(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function d(){}function p(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?h(e)+t:t}function g(){return!0}function y(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function m(e,t){return w(e,t,0)}function b(e,t){return w(e,t,t)}function w(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function _(e){this.next=e}function x(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function C(){return{value:void 0,done:!0}}function S(e){return!!E(e)}function O(e){return e&&"function"==typeof e.next}function R(e){var t=E(e);return t&&t.call(e)}function E(e){var t=e&&(Cn&&e[Cn]||e[Sn]);if("function"==typeof t)return t}function I(e){return e&&"number"==typeof e.length}function D(e){return null===e||void 0===e?L():i(e)?e.toSeq():G(e)}function M(e){return null===e||void 0===e?L().toKeyedSeq():i(e)?a(e)?e.toSeq():e.fromEntrySeq():F(e)}function T(e){return null===e||void 0===e?L():i(e)?a(e)?e.entrySeq():e.toIndexedSeq():H(e)}function k(e){return(null===e||void 0===e?L():i(e)?a(e)?e.entrySeq():e:H(e)).toSetSeq()}function P(e){this._array=e,this.size=e.length}function A(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function j(e){this._iterable=e,this.size=e.length||e.size}function z(e){this._iterator=e,this._iteratorCache=[]}function N(e){return!(!e||!e[Rn])}function L(){return En||(En=new P([]))}function F(e){var t=Array.isArray(e)?new P(e).fromEntrySeq():O(e)?new z(e).fromEntrySeq():S(e)?new j(e).fromEntrySeq():"object"==typeof e?new A(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function H(e){var t=W(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function G(e){var t=W(e)||"object"==typeof e&&new A(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function W(e){return I(e)?new P(e):O(e)?new z(e):S(e)?new j(e):void 0}function q(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(t(s[1],r?s[0]:a,e)===!1)return a+1}return a}return e.__iterateUncached(t,n)}function V(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new _(function(){var e=o[n?i-a:a];return a++>i?C():x(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function U(e,t){return t?B(t,e,"",{"":e}):K(e)}function B(e,t,n,r){return Array.isArray(t)?e.call(r,n,T(t).map(function(n,r){return B(e,n,r,t)})):Y(t)?e.call(r,n,M(t).map(function(n,r){return B(e,n,r,t)})):t}function K(e){return Array.isArray(e)?T(e).map(K).toList():Y(e)?M(e).map(K).toMap():e}function Y(e){return e&&(e.constructor===Object||void 0===e.constructor)}function J(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function X(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&J(o[1],e)&&(n||J(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var c=e;e=t,t=c}var f=!0,d=t.__iterate(function(t,r){if(n?!e.has(t):o?!J(t,e.get(r,yn)):!J(e.get(r,yn),t))return f=!1,!1});return f&&e.size===d}function Z(e,t){if(!(this instanceof Z))return new Z(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(In)return In;In=this}}function Q(e,t){if(!e)throw new Error(t)}function $(e,t,n){if(!(this instanceof $))return new $(e,t,n);if(Q(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function ie(e){if(e===!1||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(e=e.valueOf(),e===!1||null===e||void 0===e))return 0;if(e===!0)return 1;var t=typeof e;if("number"===t){if(e!==e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)e/=4294967295,n^=e;return oe(n)}if("string"===t)return e.length>Nn?ae(e):se(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return ue(e);if("function"==typeof e.toString)return se(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ae(e){var t=Hn[e];return void 0===t&&(t=se(e),Fn===Ln&&(Fn=0,Hn={}),Fn++,Hn[e]=t),t}function se(e){for(var t=0,n=0;n0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function ce(e){Q(e!==1/0,"Cannot perform this action with an infinite size.")}function fe(e){return null===e||void 0===e?xe():de(e)&&!l(e)?e:xe().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function de(e){return!(!e||!e[Gn])}function pe(e,t){this.ownerID=e,this.entries=t}function he(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function ve(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function ge(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function ye(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function me(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&we(e._root)}function be(e,t){return x(e,t[0],t[1])}function we(e,t){return{node:e,index:0,__prev:t}}function _e(e,t,n,r){var o=Object.create(Wn);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function xe(){return qn||(qn=_e(0))}function Ce(e,t,n){var r,o;if(e._root){var i=c(mn),a=c(bn);if(r=Se(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===yn?-1:1:0)}else{if(n===yn)return e;o=1,r=new pe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?_e(o,r):xe()}function Se(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===yn?e:(f(s),f(a),new ye(t,r,[o,i]))}function Oe(e){return e.constructor===ye||e.constructor===ge}function Re(e,t,n,r,o){if(e.keyHash===r)return new ge(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&gn,s=(0===n?r:r>>>n)&gn,u=a===s?[Re(e,t,n+hn,r,o)]:(i=new ye(t,r,o),a>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new ve(e,i+1,a)}function Me(e,t,r){for(var o=[],a=0;a>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,127&e}function ze(e,t,n,r){var o=r?e:p(e);return o[t]=n,o}function Ne(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s0&&oi?0:i-n,l=a-n;return l>vn&&(l=vn),function(){if(o===l)return Xn;var e=t?--l:o++;return r&&r[e]}}function o(e,r,o){var s,u=e&&e.array,l=o>i?0:i-o>>r,c=(a-o>>r)+1;return c>vn&&(c=vn),function(){for(;;){if(s){var e=s();if(e!==Xn)return e;s=null}if(l===c)return Xn;var i=t?--c:l++;s=n(u&&u[i],r-hn,o+(i<=e.size||t<0)return e.withMutations(function(e){t<0?Je(e,t).set(0,n):Je(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=c(bn);return t>=Ze(e._capacity)?r=Be(r,e.__ownerID,0,t,n,i):o=Be(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):qe(e._origin,e._capacity,e._level,o,r):e}function Be(e,t,n,r,o,i){var a=r>>>n&gn,s=e&&a0){var l=e&&e.array[a],c=Be(l,t,n-hn,r,o,i);return c===l?e:(u=Ke(e,t),u.array[a]=c,u)}return s&&e.array[a]===o?e:(f(i),u=Ke(e,t),void 0===o&&a===u.array.length-1?u.array.pop():u.array[a]=o,u)}function Ke(e,t){return t&&e&&t===e.ownerID?e:new Ge(e?e.array.slice():[],t)}function Ye(e,t){if(t>=Ze(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&gn],r-=hn;return n}}function Je(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new d,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new Ge(l&&l.array.length?[void 0,l]:[],r),u+=hn,c+=1<=1<f?new Ge([],r):h;if(h&&p>f&&ahn;y-=hn){var m=f>>>y&gn;g=g.array[m]=Ke(g.array[m],r)}g.array[f>>>hn&gn]=h}if(s=p)a-=p,s-=p,u=hn,l=null,v=v&&v.removeBefore(r,0,a);else if(a>o||p>>u&gn;if(b!==p>>>u&gn)break;b&&(c+=(1<o&&(l=l.removeBefore(r,u,a-c)),l&&pa&&(a=l.size),i(u)||(l=l.map(function(e){return U(e)})),o.push(l)}return a>e.size&&(e=e.setSize(a)),Pe(e,t,o)}function Ze(e){return e>>hn<=vn&&a.size>=2*i.size?(o=a.filter(function(e,t){return void 0!==e&&s!==t}),r=o.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):et(r,o)}function rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function ot(e){this._iter=e,this.size=e.size}function it(e){this._iter=e,this.size=e.size}function at(e){this._iter=e,this.size=e.size}function st(e){var t=It(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Dt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return t(n,e,r)!==!1},n)},t.__iteratorUncached=function(t,n){if(t===xn){var r=e.__iterator(t,n);return new _(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===_n?wn:_n,n)},t}function ut(e,t,n){var r=It(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,yn);return i===yn?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,a){return r(t.call(n,e,o,a),o,i)!==!1},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(xn,o);return new _(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return x(r,s,t.call(n,a[1],s,e),o)})},r}function lt(e,t){var n=It(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=st(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Dt,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function ct(e,t,n,r){var o=It(e);return r&&(o.has=function(r){var o=e.get(r,yn);return o!==yn&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,yn);return i!==yn&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,u){if(t.call(n,e,i,u))return s++,o(e,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(xn,i),s=0;return new _(function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return x(o,r?l:s++,c,i)}})},o}function ft(e,t,n){var r=fe().asMutable();return e.__iterate(function(o,i){r.update(t.call(n,o,i,e),0,function(e){return e+1})}),r.asImmutable()}function dt(e,t,n){var r=a(e),o=(l(e)?Qe():fe()).asMutable();e.__iterate(function(i,a){o.update(t.call(n,i,a,e),function(e){return e=e||[],e.push(r?[a,i]:i),e})});var i=Et(e);return o.map(function(t){return St(e,i(t))})}function pt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=o:n|=0),y(t,n,o))return e;var i=m(t,o),a=b(n,o);if(i!==i||a!==a)return pt(e.toSeq().cacheResult(),t,n,r);var s,u=a-i;u===u&&(s=u<0?0:u);var l=It(e);return l.size=0===s?s:e.size&&s||void 0,!r&&N(e)&&s>=0&&(l.get=function(t,n){return t=v(this,t),t>=0&&ts)return C();var e=o.next();return r||t===_n?e:t===wn?x(t,u-1,void 0,e):x(t,u-1,e.value[1],e)})},l}function ht(e,t,n){var r=It(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate(function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(xn,o),s=!0;return new _(function(){if(!s)return C();var e=a.next();if(e.done)return e;var o=e.value,u=o[0],l=o[1];return t.call(n,l,u,i)?r===xn?e:x(r,u,l,e):(s=!1,C())})},r}function vt(e,t,n,r){var o=It(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return e.__iterate(function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return u++,o(e,r?i:u-1,a)}),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(xn,i),u=!0,l=0;return new _(function(){var e,i,c;do{if(e=s.next(),e.done)return r||o===_n?e:o===wn?x(o,l++,void 0,e):x(o,l++,e.value[1],e);var f=e.value;i=f[0],c=f[1],u&&(u=t.call(n,c,i,a))}while(u);return o===xn?e:x(o,i,c,e)})},o}function gt(e,t){var r=a(e),o=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?F(e):H(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var u=o[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var l=new P(o);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),l=l.flatten(!0),l.size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),l}function yt(e,t,n){var r=It(e);return r.__iterateUncached=function(r,o){function a(e,l){var c=this;e.__iterate(function(e,o){return(!t||l0}function Ct(e,n,r){var o=It(e);return o.size=new P(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(_n,t),o=0;!(n=r.next()).done&&e(n.value,o++,this)!==!1;);return o},o.__iteratorUncached=function(e,o){var i=r.map(function(e){return e=t(e),R(o?e.reverse():e)}),a=0,s=!1;return new _(function(){var t;return s||(t=i.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?C():x(e,a++,n.apply(null,t.map(function(e){return e.value})))})},o}function St(e,t){return N(e)?t:e.constructor(t)}function Ot(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Rt(e){return ce(e.size),h(e)}function Et(e){return a(e)?n:s(e)?r:o}function It(e){return Object.create((a(e)?M:s(e)?T:k).prototype)}function Dt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):D.prototype.cacheResult.call(this)}function Mt(e,t){return e>t?1:et?-1:0}function on(e){if(e.size===1/0)return 0;var t=l(e),n=a(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+sn(ie(e),ie(t))|0}:function(e,t){r=r+sn(ie(e),ie(t))|0}:t?function(e){r=31*r+ie(e)|0}:function(e){r=r+ie(e)|0});return an(o,r)}function an(e,t){return t=Tn(t,3432918353),t=Tn(t<<15|t>>>-15,461845907),t=Tn(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Tn(t^t>>>16,2246822507),t=Tn(t^t>>>13,3266489909),t=oe(t^t>>>16)}function sn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var un=Array.prototype.slice;e(n,t),e(r,t),e(o,t),t.isIterable=i,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=l,t.Keyed=n,t.Indexed=r,t.Set=o;var ln="@@__IMMUTABLE_ITERABLE__@@",cn="@@__IMMUTABLE_KEYED__@@",fn="@@__IMMUTABLE_INDEXED__@@",dn="@@__IMMUTABLE_ORDERED__@@",pn="delete",hn=5,vn=1<r?C():x(e,o,n[t?r-o++:o++]); +})},e(A,M),A.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},A.prototype.has=function(e){return this._object.hasOwnProperty(e)},A.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(e(n[a],a,this)===!1)return i+1}return i},A.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new _(function(){var a=r[t?o-i:i];return i++>o?C():x(e,a,n[a])})},A.prototype[dn]=!0,e(j,T),j.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=R(n),o=0;if(O(r))for(var i;!(i=r.next()).done&&e(i.value,o++,this)!==!1;);return o},j.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=R(n);if(!O(r))return new _(C);var o=0;return new _(function(){var t=r.next();return t.done?t:x(e,o++,t.value)})},e(z,T),z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,o=0;o=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return x(e,o,r[o++])})};var En;e(Z,T),Z.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Z.prototype.get=function(e,t){return this.has(e)?this._value:t},Z.prototype.includes=function(e){return J(this._value,e)},Z.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:new Z(this._value,b(t,n)-m(e,n))},Z.prototype.reverse=function(){return this},Z.prototype.indexOf=function(e){return J(this._value,e)?0:-1},Z.prototype.lastIndexOf=function(e){return J(this._value,e)?this.size:-1},Z.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?C():x(e,i++,a)})},$.prototype.equals=function(e){return e instanceof $?this._start===e._start&&this._end===e._end&&this._step===e._step:X(this,e)};var Dn;e(ee,t),e(te,ee),e(ne,ee),e(re,ee),ee.Keyed=te,ee.Indexed=ne,ee.Set=re;var Mn,Tn="function"==typeof Math.imul&&Math.imul(4294967295,2)===-2?Math.imul:function(e,t){e|=0,t|=0;var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},kn=Object.isExtensible,Pn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),An="function"==typeof WeakMap;An&&(Mn=new WeakMap);var jn=0,zn="__immutablehash__";"function"==typeof Symbol&&(zn=Symbol(zn));var Nn=16,Ln=255,Fn=0,Hn={};e(fe,te),fe.of=function(){var e=un.call(arguments,0);return xe().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},fe.prototype.toString=function(){return this.__toString("Map {","}")},fe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},fe.prototype.set=function(e,t){return Ce(this,e,t)},fe.prototype.setIn=function(e,t){return this.updateIn(e,yn,function(){return t})},fe.prototype.remove=function(e){return Ce(this,e,yn)},fe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return yn})},fe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},fe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=Ae(this,Tt(e),t,n);return r===yn?void 0:r},fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):xe()},fe.prototype.merge=function(){return Me(this,void 0,arguments)},fe.prototype.mergeWith=function(e){var t=un.call(arguments,1);return Me(this,e,t)},fe.prototype.mergeIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,xe(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},fe.prototype.mergeDeep=function(){return Me(this,Te,arguments)},fe.prototype.mergeDeepWith=function(e){var t=un.call(arguments,1);return Me(this,ke(e),t)},fe.prototype.mergeDeepIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,xe(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},fe.prototype.sort=function(e){return Qe(wt(this,e))},fe.prototype.sortBy=function(e,t){return Qe(wt(this,t,e))},fe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},fe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new d)},fe.prototype.asImmutable=function(){return this.__ensureOwner()},fe.prototype.wasAltered=function(){return this.__altered},fe.prototype.__iterator=function(e,t){return new me(this,e,t)},fe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},fe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?_e(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},fe.isMap=de;var Gn="@@__IMMUTABLE_MAP__@@",Wn=fe.prototype;Wn[Gn]=!0,Wn[pn]=Wn.remove,Wn.removeIn=Wn.deleteIn,pe.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=Vn)return Ee(e,u,r,o);var h=e&&e===this.ownerID,v=h?u:p(u);return d?s?l===c-1?v.pop():v[l]=v.pop():v[l]=[r,o]:v.push([r,o]),h?(this.entries=v,this):new pe(e,v)}},he.prototype.get=function(e,t,n,r){void 0===t&&(t=ie(n));var o=1<<((0===e?t:t>>>e)&gn),i=this.bitmap;return 0===(i&o)?r:this.nodes[je(i&o-1)].get(e+hn,t,n,r)},he.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var s=(0===t?n:n>>>t)&gn,u=1<=Un)return De(e,d,l,s,h);if(c&&!h&&2===d.length&&Oe(d[1^f]))return d[1^f];if(c&&h&&1===d.length&&Oe(h))return h;var v=e&&e===this.ownerID,g=c?h?l:l^u:l|u,y=c?h?ze(d,f,h,v):Le(d,f,v):Ne(d,f,h,v);return v?(this.bitmap=g,this.nodes=y,this):new he(e,g,y)},ve.prototype.get=function(e,t,n,r){void 0===t&&(t=ie(n));var o=(0===e?t:t>>>e)&gn,i=this.nodes[o];return i?i.get(e+hn,t,n,r):r},ve.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var s=(0===t?n:n>>>t)&gn,u=o===yn,l=this.nodes,c=l[s];if(u&&!c)return this;var f=Se(c,e,t+hn,n,r,o,i,a);if(f===c)return this;var d=this.count;if(c){if(!f&&(d--,d=0&&e>>t&gn;if(r>=this.array.length)return new Ge([],e);var o,i=0===r;if(t>0){var a=this.array[r];if(o=a&&a.removeBefore(e,t-hn,n),o===a&&i)return this}if(i&&!o)return this;var s=Ke(this,e);if(!i)for(var u=0;u>>t&gn;if(r>=this.array.length)return this;var o;if(t>0){var i=this.array[r];if(o=i&&i.removeAfter(e,t-hn,n),o===i&&r===this.array.length-1)return this}var a=Ke(this,e);return a.array.splice(r+1),o&&(a.array[r]=o),a};var Jn,Xn={};e(Qe,fe),Qe.of=function(){return this(arguments)},Qe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Qe.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Qe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tt()},Qe.prototype.set=function(e,t){return nt(this,e,t)},Qe.prototype.remove=function(e){return nt(this,e,yn)},Qe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Qe.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Qe.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Qe.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?et(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Qe.isOrderedMap=$e,Qe.prototype[dn]=!0,Qe.prototype[pn]=Qe.prototype.remove;var Zn;e(rt,M),rt.prototype.get=function(e,t){return this._iter.get(e,t)},rt.prototype.has=function(e){return this._iter.has(e)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var e=this,t=lt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var n=this,r=ut(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},rt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Rt(this):0,function(o){return e(o,t?--n:n++,r)}),t)},rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(_n,t),r=t?Rt(this):0;return new _(function(){var o=n.next();return o.done?o:x(e,t?--r:r++,o.value,o)})},rt.prototype[dn]=!0,e(ot,T),ot.prototype.includes=function(e){return this._iter.includes(e)},ot.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},ot.prototype.__iterator=function(e,t){var n=this._iter.__iterator(_n,t),r=0;return new _(function(){var t=n.next();return t.done?t:x(e,r++,t.value,t)})},e(it,k),it.prototype.has=function(e){return this._iter.includes(e)},it.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},it.prototype.__iterator=function(e,t){var n=this._iter.__iterator(_n,t);return new _(function(){var t=n.next();return t.done?t:x(e,t.value,t.value,t)})},e(at,M),at.prototype.entrySeq=function(){return this._iter.toSeq()},at.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){Ot(t);var r=i(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},at.prototype.__iterator=function(e,t){var n=this._iter.__iterator(_n,t);return new _(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Ot(r);var o=i(r);return x(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},ot.prototype.cacheResult=rt.prototype.cacheResult=it.prototype.cacheResult=at.prototype.cacheResult=Dt,e(kt,te),kt.prototype.toString=function(){return this.__toString(At(this)+" {","}")},kt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},kt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},kt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Pt(this,xe()))},kt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+At(this));if(this._map&&!this._map.has(e)){var n=this._defaultValues[e];if(t===n)return this}var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:Pt(this,r)},kt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Pt(this,t)},kt.prototype.wasAltered=function(){return this._map.wasAltered()},kt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},kt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},kt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Pt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Qn=kt.prototype;Qn[pn]=Qn.remove,Qn.deleteIn=Qn.removeIn=Wn.removeIn,Qn.merge=Wn.merge,Qn.mergeWith=Wn.mergeWith,Qn.mergeIn=Wn.mergeIn,Qn.mergeDeep=Wn.mergeDeep,Qn.mergeDeepWith=Wn.mergeDeepWith,Qn.mergeDeepIn=Wn.mergeDeepIn,Qn.setIn=Wn.setIn,Qn.update=Wn.update,Qn.updateIn=Wn.updateIn,Qn.withMutations=Wn.withMutations,Qn.asMutable=Wn.asMutable,Qn.asImmutable=Wn.asImmutable,e(Nt,re),Nt.of=function(){return this(arguments)},Nt.fromKeys=function(e){return this(n(e).keySeq())},Nt.prototype.toString=function(){return this.__toString("Set {","}")},Nt.prototype.has=function(e){return this._map.has(e)},Nt.prototype.add=function(e){return Ft(this,this._map.set(e,!0))},Nt.prototype.remove=function(e){return Ft(this,this._map.remove(e))},Nt.prototype.clear=function(){return Ft(this,this._map.clear())},Nt.prototype.union=function(){var e=un.call(arguments,0);return e=e.filter(function(e){return 0!==e.size}),0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Yt(e,t)},Bt.prototype.pushAll=function(e){if(e=r(e),0===e.size)return this;ce(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Yt(t,n)},Bt.prototype.pop=function(){return this.slice(1)},Bt.prototype.unshift=function(){return this.push.apply(this,arguments)},Bt.prototype.unshiftAll=function(e){return this.pushAll(e)},Bt.prototype.shift=function(){return this.pop.apply(this,arguments)},Bt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Jt()},Bt.prototype.slice=function(e,t){if(y(e,t,this.size))return this;var n=m(e,this.size),r=b(t,this.size);if(r!==this.size)return ne.prototype.slice.call(this,e,t);for(var o=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):Yt(o,i)},Bt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Yt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Bt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&e(r.value,n++,this)!==!1;)r=r.next;return n},Bt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new _(function(){if(r){var t=r.value;return r=r.next,x(e,n++,t)}return C()})},Bt.isStack=Kt;var or="@@__IMMUTABLE_STACK__@@",ir=Bt.prototype;ir[or]=!0,ir.withMutations=Wn.withMutations,ir.asMutable=Wn.asMutable,ir.asImmutable=Wn.asImmutable,ir.wasAltered=Wn.wasAltered;var ar;t.Iterator=_,Xt(t,{toArray:function(){ce(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new ot(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new rt(this,!0)},toMap:function(){return fe(this.toKeyedSeq())},toObject:function(){ce(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Qe(this.toKeyedSeq())},toOrderedSet:function(){return Wt(a(this)?this.valueSeq():this)},toSet:function(){return Nt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new it(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Bt(a(this)?this.valueSeq():this)},toList:function(){return Fe(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=un.call(arguments,0);return St(this,gt(this,e))},includes:function(e){return this.some(function(t){return J(t,e)})},entries:function(){return this.__iterator(xn)},every:function(e,t){ce(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1}),n},filter:function(e,t){return St(this,ct(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return ce(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ce(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(wn)},map:function(e,t){return St(this,ut(this,e,t))},reduce:function(e,t,n){ce(this.size);var r,o;return arguments.length<2?o=!0:r=t,this.__iterate(function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return St(this,lt(this,!0))},slice:function(e,t){return St(this,pt(this,e,t,!0))},some:function(e,t){return!this.every($t(e),t)},sort:function(e){return St(this,wt(this,e))},values:function(){return this.__iterator(_n)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return h(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return ft(this,e,t)},equals:function(e){return X(this,e)},entrySeq:function(){var e=this;if(e._cache)return new P(e._cache);var t=e.toSeq().map(Qt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter($t(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(g)},flatMap:function(e,t){return St(this,mt(this,e,t))},flatten:function(e){return St(this,yt(this,e,!0))},fromEntrySeq:function(){return new at(this)},get:function(e,t){return this.find(function(t,n){return J(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,o=Tt(e);!(n=o.next()).done;){var i=n.value;if(r=r&&r.get?r.get(i,yn):yn,r===yn)return t}return r},groupBy:function(e,t){return dt(this,e,t)},has:function(e){return this.get(e,yn)!==yn},hasIn:function(e){return this.getIn(e,yn)!==yn},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e="function"==typeof e.isSubset?e:t(e),e.isSubset(this)},keyOf:function(e){return this.findKey(function(t){return J(t,e)})},keySeq:function(){return this.toSeq().map(Zt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return _t(this,e)},maxBy:function(e,t){return _t(this,t,e)},min:function(e){return _t(this,e?en(e):rn)},minBy:function(e,t){return _t(this,t?en(t):rn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return St(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return St(this,vt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile($t(e),t)},sortBy:function(e,t){return St(this,wt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return St(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return St(this,ht(this,e,t))},takeUntil:function(e,t){return this.takeWhile($t(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var sr=t.prototype;sr[ln]=!0,sr[On]=sr.values,sr.__toJS=sr.toArray,sr.__toStringMapper=tn,sr.inspect=sr.toSource=function(){return this.toString()},sr.chain=sr.flatMap,sr.contains=sr.includes,Xt(n,{flip:function(){return St(this,st(this))},mapEntries:function(e,t){var n=this,r=0;return St(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return St(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var ur=n.prototype;ur[cn]=!0,ur[On]=sr.entries,ur.__toJS=sr.toObject,ur.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+tn(e)},Xt(r,{toKeyedSeq:function(){return new rt(this,!1)},filter:function(e,t){return St(this,ct(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return St(this,lt(this,!1))},slice:function(e,t){return St(this,pt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=m(e,e<0?this.count():this.size);var r=this.slice(0,e);return St(this,1===n?r:r.concat(p(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return St(this,yt(this,e,!1))},get:function(e,t){return e=v(this,e),e<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return e=v(this,e),e>=0&&(void 0!==this.size?this.size===1/0||e-1){t.components.splice(n,1);var r=void 0,o={};for(r in t.metrics)t.metrics[r].component===e&&(o[r]=!0);for(r in o)o.hasOwnProperty(r)&&delete t.metrics[r]}},updateMetrics:function(){var e=this._DOMMetrics,t=!1;for(var n in e.metrics)if(e.metrics.hasOwnProperty(n)){var r=e.metrics[n].computator();r!==e.metrics[n].value&&(t=!0),e.metrics[n].value=r}if(t)for(var o=0,i=e.components.length;ou)&&!v)return h.createElement(l.default,s({ref:function(e){return r[d]=e}},g));var y=this.props,m=y.row,b=y.isSelected,w={ref:function(e){return r[d]=e},value:this.getCellValue(d||t),rowData:m,isRowSelected:b,expandableOptions:this.getExpandableOptions(d),selectedColumn:n,formatter:p,isScrolling:this.props.isScrolling};return h.createElement(o,s({},g,w))},getCells:function(){var e=this,t=[],n=[],r=this.getSelectedColumn(),o=this.props.columns.size-1;return this.props.columns&&this.props.columns.forEach(function(i,a){a===o&&(i.isLastColumn=!0);var s=e.getCell(i,a,r);i.locked?n.push(s):t.push(s)}),t.concat(n)},getRowHeight:function(){var e=this.props.expandedRows||null;if(e&&this.props.idx){var t=e[this.props.idx]||null;if(t)return t.height}return this.props.height},getCellValue:function(e){var t=void 0;return"select-row"===e?this.props.isSelected:t="function"==typeof this.props.row.get?this.props.row.get(e):this.props.row[e]},isContextMenuDisplayed:function(){if(this.props.cellMetaData){var e=this.props.cellMetaData.selected;if(e&&e.contextMenuDisplayed&&e.rowIdx===this.props.idx)return!0}return!1},getExpandableOptions:function(e){var t=this.props.subRowDetails;return t?{canExpand:t&&t.field===e&&(t.children&&t.children.length>0||t.group===!0),field:t.field,expanded:t&&t.expanded,children:t&&t.children,treeDepth:t?t.treeDepth:0,subRowDetails:t}:{}},setScrollLeft:function(e){var t=this;this.props.columns.forEach(function(n){if(n.locked){if(!t[n.key])return;t[n.key].setScrollLeft(e)}})},getKnownDivProps:function(){return w(this.props,x)},renderCell:function(e){return"function"==typeof this.props.cellRenderer&&this.props.cellRenderer.call(this,e),h.isValidElement(this.props.cellRenderer)?h.cloneElement(this.props.cellRenderer,e):this.props.cellRenderer(e)},render:function(){var e=g("react-grid-Row","react-grid-Row--"+(this.props.idx%2===0?"even":"odd"),{"row-selected":this.props.isSelected,"row-context-menu":this.isContextMenuDisplayed()},this.props.extraClasses),t={height:this.getRowHeight(this.props),overflow:"hidden",contain:"layout"},n=this.getCells();return h.createElement("div",s({},this.getKnownDivProps(),{className:e,style:t,onDragEnter:this.handleDragEnter}),h.isValidElement(this.props.row)?this.props.row:n)}});e.exports=C},function(e,t){"use strict";function n(){if(void 0===r){var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.position="absolute",e.style.top="-200px",e.style.left="-200px";var t=document.createElement("div");t.style.height="100px",t.style.width="100%",e.appendChild(t),document.body.appendChild(e);var n=e.clientWidth;e.style.overflowY="scroll";var o=t.clientWidth;document.body.removeChild(e),r=n-o}return r}var r=void 0;e.exports=n},function(e,t){"use strict";function n(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}e.exports=n},function(e,t,n){var r=n(236);"string"==typeof r&&(r=[[e.id,r,""]]);n(11)(r,{});r.locals&&(e.exports=r.locals)},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:r.props;return e.rowData.toJSON?e.rowData.toJSON():e.rowData},r.getFormatterDependencies=function(){if("function"==typeof r.props.column.getRowMetaData)return r.props.column.getRowMetaData(r.getRowData(),r.props.column)},r.getCellClass=function(){var e=b(r.props.column.cellClass,"react-grid-Cell",r.props.className,r.props.column.locked?"react-grid-Cell--locked":null),t=b({"row-selected":r.props.isRowSelected,editing:r.isActive(),copied:r.isCopied()||r.wasDraggedOver()||r.isDraggedOverUpwards()||r.isDraggedOverDownwards(),"is-dragged-over-up":r.isDraggedOverUpwards(),"is-dragged-over-down":r.isDraggedOverDownwards(),"was-dragged-over":r.wasDraggedOver(),"cell-tooltip":!!r.props.tooltip,"rdg-child-cell":r.props.expandableOptions&&r.props.expandableOptions.subRowDetails&&r.props.expandableOptions.treeDepth>0,"last-column":r.props.column.isLastColumn});return b(e,t)},r.getUpdateCellClass=function(){return r.props.column.getUpdateCellClass?r.props.column.getUpdateCellClass(r.props.selectedColumn,r.props.column,r.state.isCellValueChanging):""},r.isColumnSelected=function(){var e=r.props.cellMetaData;return null!=e&&(e.selected&&e.selected.idx===r.props.idx)},r.isSelected=function(){var e=r.props.cellMetaData;return null!=e&&(e.selected&&e.selected.rowIdx===r.props.rowIdx&&e.selected.idx===r.props.idx)},r.isActive=function(){var e=r.props.cellMetaData;return null!=e&&(r.isSelected()&&e.selected.active===!0)},r.isCellSelectionChanging=function(e){var t=r.props.cellMetaData;if(null==t)return!1;var n=e.cellMetaData.selected;return!t.selected||!n||(r.props.idx===n.idx||r.props.idx===t.selected.idx)},r.isCellSelectEnabled=function(){var e=r.props.cellMetaData;return null!=e&&e.enableCellSelect},r.hasChangedDependentValues=function(e){var t=r.props.column,n=!1;if(t.getRowMetaData){var o=t.getRowMetaData(r.getRowData(),t),i=e.column,a=i.getRowMetaData(r.getRowData(e),i);n=!l.default.isEqual(o,a)}return n},r.applyUpdateClass=function(){var e=r.getUpdateCellClass();if(null!=e&&""!==e){var t=r.node;t.classList?(t.classList.remove(e),t.classList.add(e)):t.className.indexOf(e)===-1&&(t.className=t.className+" "+e)}},r.setScrollLeft=function(e){var t=r.node;if(t){var n="translate3d("+e+"px, 0px, 0px)";t.style.webkitTransform=n,t.style.transform=n}},r.removeScroll=function(){var e=r.node;e&&(e.style.webkitTransform=null,e.style.transform=null)},r.isCopied=function(){var e=r.props.cellMetaData.copied;return e&&e.rowIdx===r.props.rowIdx&&e.idx===r.props.idx},r.isDraggedOver=function(){var e=r.props.cellMetaData.dragged;return e&&e.overRowIdx===r.props.rowIdx&&e.idx===r.props.idx},r.wasDraggedOver=function(){var e=r.props.cellMetaData.dragged;return e&&(e.overRowIdxr.props.rowIdx&&r.props.rowIdx>e.rowIdx)&&e.idx===r.props.idx},r.isDraggedCellChanging=function(e){var t=void 0,n=r.props.cellMetaData.dragged,o=e.cellMetaData.dragged;return!!n&&(t=o&&r.props.idx===o.idx||n&&r.props.idx===n.idx)},r.isCopyCellChanging=function(e){var t=void 0,n=r.props.cellMetaData.copied,o=e.cellMetaData.copied;return!!n&&(t=o&&r.props.idx===o.idx||n&&r.props.idx===n.idx)},r.isDraggedOverUpwards=function(){var e=r.props.cellMetaData.dragged;return!r.isSelected()&&r.isDraggedOver()&&r.props.rowIdxe.rowIdx},r.isFocusedOnBody=function(){return null==document.activeElement||document.activeElement.nodeName&&"string"==typeof document.activeElement.nodeName&&"body"===document.activeElement.nodeName.toLowerCase()},r.isFocusedOnCell=function(){return document.activeElement&&"react-grid-Cell"===document.activeElement.className},r.checkFocus=function(){if(r.isSelected()&&!r.isActive()){if(r.props.isScrolling&&!r.props.cellMetaData.isScrollingVerticallyWithKeyboard&&!r.props.cellMetaData.isScrollingHorizontallyWithKeyboard)return;var e=r.props.cellMetaData&&r.props.cellMetaData.enableCellAutoFocus,t=r.props.cellMetaData&&r.props.cellMetaData.getDataGridDOMNode?r.props.cellMetaData.getDataGridDOMNode():null;if(r.isFocusedOnCell()||e&&r.isFocusedOnBody()||t&&t.contains(document.activeElement)){var n=r.node;n&&n.focus()}}},r.canEdit=function(){return null!=r.props.column.editor||r.props.column.editable},r.canExpand=function(){return r.props.expandableOptions&&r.props.expandableOptions.canExpand},r.createColumEventCallBack=function(e,t){return function(n){e(n,t)}},r.createCellEventCallBack=function(e,t){return function(n){e(n),t(n)}},r.createEventDTO=function(e,t,n){var o=Object.assign({},e);for(var i in t)if(t.hasOwnProperty(i)){var a=t[a],s={idx:r.props.idx,rowIdx:r.props.rowIdx,rowId:r.props.rowData[r.props.cellMetaData.rowKey],name:i},u=r.createColumEventCallBack(n,s);if(o.hasOwnProperty(i)){var l=o[i];o[i]=r.createCellEventCallBack(l,u)}else o[i]=u}return o},r.getEvents=function(){var e=r.props.column?Object.assign({},r.props.column.events):void 0,t=r.props.cellMetaData?r.props.cellMetaData.onColumnEvent:void 0,n={onClick:r.onCellClick,onDoubleClick:r.onCellDoubleClick,onContextMenu:r.onCellContextMenu,onDragOver:r.onDragOver};return e&&t?r.createEventDTO(n,e,t):n},r.getKnownDivProps=function(){return R(r.props,E)},r.renderCellContent=function(e){var t=void 0,n=r.getFormatter();m.isValidElement(n)?(e.dependentValues=r.getFormatterDependencies(),t=m.cloneElement(n,e)):t=x(n)?m.createElement(n,{value:r.props.value,dependentValues:r.getFormatterDependencies()}):m.createElement(S,{value:r.props.value});var o=!!r.props.expandableOptions&&r.props.expandableOptions.field===r.props.column.key,i=r.props.expandableOptions?r.props.expandableOptions.treeDepth:0,a=r.props.expandableOptions&&o?30*r.props.expandableOptions.treeDepth:0,s=void 0,u=void 0;r.canExpand()&&(s=m.createElement(v.default,{expandableOptions:r.props.expandableOptions,onCellExpand:r.onCellExpand}));var l=!!r.props.cellMetaData.onDeleteSubRow;return i>0&&o&&(u=m.createElement(y.default,{treeDepth:i,cellHeight:r.props.height,siblingIndex:r.props.expandableOptions.subRowDetails.siblingIndex,numberSiblings:r.props.expandableOptions.subRowDetails.numberSiblings,onDeleteSubRow:r.onDeleteSubRow,isDeleteSubRowEnabled:l})),m.createElement("div",{className:"react-grid-Cell__value"},u,m.createElement("div",{style:{marginLeft:a}},m.createElement("span",null,t)," ",r.props.cellControls," ",s))},a=n,i(r,a)}return a(t,e),t.prototype.componentDidMount=function(){this.checkFocus()},t.prototype.componentWillReceiveProps=function(e){this.setState({isCellValueChanging:this.props.isCellValueChanging(this.props.value,e.value),isLockChanging:this.props.column.locked!==e.column.locked})},t.prototype.componentDidUpdate=function(){this.checkFocus();var e=this.props.cellMetaData.dragged;e&&e.complete===!0&&this.props.cellMetaData.handleTerminateDrag(),this.state.isCellValueChanging&&null!=this.props.selectedColumn&&this.applyUpdateClass(),this.state.isLockChanging&&!this.props.column.locked&&this.removeScroll()},t.prototype.shouldComponentUpdate=function(e){var t=this.props.column.width!==e.column.width||this.props.column.left!==e.column.left||this.props.column.cellClass!==e.column.cellClass||this.props.height!==e.height||this.props.rowIdx!==e.rowIdx||this.isCellSelectionChanging(e)||this.isDraggedCellChanging(e)||this.isCopyCellChanging(e)||this.props.isRowSelected!==e.isRowSelected||this.isSelected()||this.props.isCellValueChanging(this.props.value,e.value)||this.props.forceUpdate===!0||this.props.className!==e.className||this.props.expandableOptions!==e.expandableOptions||this.hasChangedDependentValues(e)||this.props.column.locked!==e.column.locked;return t},t.prototype.getCellActions=function(){var e=this.props,t=e.cellMetaData,n=e.column,r=e.rowData;if(t&&t.getCellActions){var o=t.getCellActions(n,r);return o&&o.length?o.map(function(e,t){return m.createElement(p.default,{key:t,action:e,isFirst:0===t})}):null}return null},t.prototype.render=function(){var e=this;if(this.props.column.hidden)return null;var t=this.getStyle(),n=this.getCellClass(),r=this.getCellActions(),o=this.props.children||this.renderCellContent({value:this.props.value,column:this.props.column,rowIdx:this.props.rowIdx,isExpanded:this.props.isExpanded}),i=!this.isActive()&&O.canEdit(this.props.column,this.props.rowData,this.props.cellMetaData.enableCellSelect)?m.createElement("div",{className:"drag-handle",draggable:"true",onDoubleClick:this.onDragHandleDoubleClick},m.createElement("span",{style:{display:"none"}})):null,a=this.getEvents(),u=this.props.tooltip?m.createElement("span",{className:"cell-tooltip-text"},this.props.tooltip):null;return m.createElement("div",s({},this.getKnownDivProps(),{className:n,style:t},a,{ref:function(t){e.node=t}}),r,o,i,u)},t}(m.Component);I.propTypes={rowIdx:f.default.number.isRequired,idx:f.default.number.isRequired,selected:f.default.shape({idx:f.default.number.isRequired}),selectedColumn:f.default.object,height:f.default.number,tabIndex:f.default.number,column:f.default.shape(_).isRequired,value:f.default.oneOfType([f.default.string,f.default.number,f.default.object,f.default.bool]),isExpanded:f.default.bool,isRowSelected:f.default.bool,cellMetaData:f.default.shape(C).isRequired,handleDragStart:f.default.func,className:f.default.string,cellControls:f.default.any,rowData:f.default.object.isRequired,forceUpdate:f.default.bool,expandableOptions:f.default.object.isRequired,isScrolling:f.default.bool.isRequired,tooltip:f.default.string,isCellValueChanging:f.default.func,children:f.default.oneOfType([f.default.arrayOf(f.default.node),f.default.node])},I.defaultProps={tabIndex:-1,isExpanded:!1,value:"",isCellValueChanging:function(e,t){return e!==t}},e.exports=I},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t="header"===e.column.rowType?e.column.name:"";return c.createElement("div",{className:"widget-HeaderCell__value"},t)}var u=n(3),l=r(u),c=n(2),f=n(5),d=n(7),p=n(14),h=n(217);n(21);var v=function(e){function t(){var n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),l=0;l0&&t(r.props.column,n)}},r.onDragEnd=function(e){var t=r.getWidthFromMouseEvent(e);r.props.onResizeEnd(r.props.column,t),r.setState({resizing:!1})},r.getWidthFromMouseEvent=function(e){var t=e.pageX||e.touches&&e.touches[0]&&e.touches[0].pageX||e.changedTouches&&e.changedTouches[e.changedTouches.length-1].pageX,n=f.findDOMNode(r).getBoundingClientRect().left;return t-n},r.getCell=function(){return c.isValidElement(r.props.renderer)?"string"==typeof r.props.renderer.type?c.cloneElement(r.props.renderer,{height:r.props.height}):c.cloneElement(r.props.renderer,{column:r.props.column,height:r.props.height}):r.props.renderer({column:r.props.column})},r.getStyle=function(){return{width:r.props.column.width,left:r.props.column.left,display:"inline-block",position:"absolute",height:r.props.height,margin:0,textOverflow:"ellipsis",whiteSpace:"nowrap"}},r.setScrollLeft=function(e){var t=f.findDOMNode(r);t.style.webkitTransform="translate3d("+e+"px, 0px, 0px)",t.style.transform="translate3d("+e+"px, 0px, 0px)"},r.removeScroll=function(){var e=f.findDOMNode(r);if(e){var t="none";e.style.webkitTransform=t,e.style.transform=t}},a=n,i(r,a)}return a(t,e),t.prototype.render=function(){var e=void 0;this.props.column.resizable&&(e=c.createElement(h,{onDrag:this.onDrag,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd}));var t=d({"react-grid-HeaderCell":!0,"react-grid-HeaderCell--resizing":this.state.resizing,"react-grid-HeaderCell--locked":this.props.column.locked});t=d(t,this.props.className,this.props.column.cellClass);var n=this.getCell();return c.createElement("div",{className:t,style:this.getStyle()},n,e)},t}(c.Component);v.propTypes={renderer:l.default.oneOfType([l.default.func,l.default.element]).isRequired,column:l.default.shape(p).isRequired,onResize:l.default.func.isRequired,height:l.default.number.isRequired,onResizeEnd:l.default.func.isRequired,className:l.default.string},v.defaultProps={renderer:s},e.exports=v},function(e,t){"use strict";var n={onKeyDown:function(e){if(this.isCtrlKeyHeldDown(e))this.checkAndCall("onPressKeyWithCtrl",e);else if(this.isKeyExplicitlyHandled(e.key)){var t="onPress"+e.key;this.checkAndCall(t,e)}else this.isKeyPrintable(e.keyCode)&&this.checkAndCall("onPressChar",e);this._keysDown=this._keysDown||{},this._keysDown[e.keyCode]=!0,this.props.onGridKeyDown&&"function"==typeof this.props.onGridKeyDown&&this.props.onGridKeyDown(e)},onKeyUp:function(e){this._keysDown=this._keysDown||{},delete this._keysDown[e.keyCode],this.props.onGridKeyUp&&"function"==typeof this.props.onGridKeyUp&&this.props.onGridKeyUp(e)},isKeyDown:function(e){return!!this._keysDown&&e in this._keysDown},isSingleKeyDown:function(e){return!!this._keysDown&&(e in this._keysDown&&1===Object.keys(this._keysDown).length)},isKeyPrintable:function(e){var t=e>47&&e<58||32===e||13===e||e>64&&e<91||e>95&&e<112||e>185&&e<193||e>218&&e<223;return t},isKeyExplicitlyHandled:function(e){return"function"==typeof this["onPress"+e]},isCtrlKeyHeldDown:function(e){return(e.ctrlKey===!0||e.metaKey===!0)&&"Control"!==e.key},checkAndCall:function(e,t){"function"==typeof this[e]&&this[e](t)}};e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.cellMetaData.selected;return!(!t||t.rowIdx!==e.idx)}function i(e){var t=e.cellMetaData.dragged;return null!=t&&(t.rowIdx>=0||t.complete===!0)}function a(e){var t=e.cellMetaData.copied;return null!=t&&t.rowIdx===e.idx}t.__esModule=!0,t.shouldRowUpdate=void 0;var s=n(34),u=r(s),l=t.shouldRowUpdate=function(e,t){return!u.default.sameColumns(t.columns,e.columns,u.default.sameColumn)||o(t)||o(e)||i(e)||e.row!==t.row||t.colDisplayStart!==e.colDisplayStart||t.colDisplayEnd!==e.colDisplayEnd||t.colVisibleStart!==e.colVisibleStart||t.colVisibleEnd!==e.colVisibleEnd||a(t)||t.isSelected!==e.isSelected||e.height!==t.height||t.isOver!==e.isOver||t.expandedRows!==e.expandedRows||t.canDrop!==e.canDrop||t.forceUpdate===!0||t.extraClasses!==e.extraClasses};t.default=l},function(e,t){"use strict";var n={get:function(e,t){return"function"==typeof e.get?e.get(t):e[t]},isRowSelected:function(e,t,n,r,o){return t&&"[object Array]"===Object.prototype.toString.call(t)?t.indexOf(o)>-1:e&&e.rowKey&&e.values&&"[object Array]"===Object.prototype.toString.call(e.values)?e.values.indexOf(r[e.rowKey])>-1:!(!n||!r||"string"!=typeof n)&&r[n]}};e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.SimpleRowsContainer=void 0;var s=n(2),u=r(s),l=n(3),c=r(l),f=function(e){return u.default.createElement("div",{key:"rows-container"},e.rows)};f.propTypes={width:c.default.number,rows:c.default.array};var d=function(e){function t(n){o(this,t);var r=i(this,e.call(this,n));return r.plugins=n.window?n.window.ReactDataGridPlugins:window.ReactDataGridPlugins,r.hasContextMenu=r.hasContextMenu.bind(r),r.renderRowsWithContextMenu=r.renderRowsWithContextMenu.bind(r),r.getContextMenuContainer=r.getContextMenuContainer.bind(r),r.state={ContextMenuContainer:r.getContextMenuContainer(n)},r}return a(t,e),t.prototype.getContextMenuContainer=function(){if(this.hasContextMenu()){if(!this.plugins)throw new Error("You need to include ReactDataGrid UiPlugins in order to initialise context menu");return this.plugins.Menu.ContextMenuLayer("reactDataGridContextMenu")(f)}},t.prototype.hasContextMenu=function(){return this.props.contextMenu&&u.default.isValidElement(this.props.contextMenu)},t.prototype.renderRowsWithContextMenu=function(){var e=this.state.ContextMenuContainer,t={rowIdx:this.props.rowIdx,idx:this.props.idx},n=u.default.cloneElement(this.props.contextMenu,t);return u.default.createElement("div",null,u.default.createElement(e,this.props),n)},t.prototype.render=function(){return this.hasContextMenu()?this.renderRowsWithContextMenu():u.default.createElement(f,this.props)},t}(u.default.Component);d.propTypes={contextMenu:c.default.element,rowIdx:c.default.number,idx:c.default.number,window:c.default.object},t.default=d,t.SimpleRowsContainer=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(3),u=r(s),l=n(2);n(80);var c=function(e){function t(){var n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),l=0;l=0&&i0?0:s-1;return arguments.length<3&&(o=n[a?a[u]:u],u+=e),t(n,r,o,a,u,s)}}function i(e){return function(t,n,r){n=S(n,r);for(var o=D(t),i=e>0?0:o-1;i>=0&&i0?a=i>=0?i:Math.max(i+s,a):s=i>=0?Math.min(i+1,s):i+s+1;else if(n&&i&&s)return i=n(r,o),r[i]===o?i:-1;if(o!==o)return i=t(h.call(r,a,s),x.isNaN),i>=0?i+a:-1;for(i=e>0?a:s-1;i>=0&&i=0&&t<=I};x.each=x.forEach=function(e,t,n){t=C(t,n);var r,o;if(M(e))for(r=0,o=e.length;r=0},x.invoke=function(e,t){var n=h.call(arguments,2),r=x.isFunction(t);return x.map(e,function(e){var o=r?t:e[t];return null==o?o:o.apply(e,n)})},x.pluck=function(e,t){return x.map(e,x.property(t))},x.where=function(e,t){return x.filter(e,x.matcher(t))},x.findWhere=function(e,t){return x.find(e,x.matcher(t))},x.max=function(e,t,n){var r,o,i=-(1/0),a=-(1/0);if(null==t&&null!=e){e=M(e)?e:x.values(e);for(var s=0,u=e.length;si&&(i=r)}else t=S(t,n),x.each(e,function(e,n,r){o=t(e,n,r),(o>a||o===-(1/0)&&i===-(1/0))&&(i=e,a=o)});return i},x.min=function(e,t,n){var r,o,i=1/0,a=1/0;if(null==t&&null!=e){e=M(e)?e:x.values(e);for(var s=0,u=e.length;sr||void 0===n)return 1;if(nt?(a&&(clearTimeout(a),a=null),s=l,i=e.apply(r,o),a||(r=o=null)):a||n.trailing===!1||(a=setTimeout(u,c)),i}},x.debounce=function(e,t,n){var r,o,i,a,s,u=function(){var l=x.now()-a;l=0?r=setTimeout(u,t-l):(r=null,n||(s=e.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,a=x.now();var l=n&&!r;return r||(r=setTimeout(u,t)),l&&(s=e.apply(i,o),i=o=null),s}},x.wrap=function(e,t){return x.partial(t,e)},x.negate=function(e){return function(){return!e.apply(this,arguments)}},x.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},x.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},x.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},x.once=x.partial(x.before,2);var A=!{toString:null}.propertyIsEnumerable("toString"),j=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];x.keys=function(e){if(!x.isObject(e))return[];if(m)return m(e);var t=[];for(var n in e)x.has(e,n)&&t.push(n);return A&&s(e,t),t},x.allKeys=function(e){if(!x.isObject(e))return[];var t=[];for(var n in e)t.push(n);return A&&s(e,t),t},x.values=function(e){for(var t=x.keys(e),n=t.length,r=Array(n),o=0;o":">",'"':""","'":"'","`":"`"},L=x.invert(N),F=function(e){var t=function(t){return e[t]},n="(?:"+x.keys(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}};x.escape=F(N),x.unescape=F(L),x.result=function(e,t,n){var r=null==e?void 0:e[t];return void 0===r&&(r=n),x.isFunction(r)?r.call(e):r};var H=0;x.uniqueId=function(e){var t=++H+"";return e?e+t:t},x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var G=/(.)^/,W={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},q=/\\|'|\r|\n|\u2028|\u2029/g,V=function(e){return"\\"+W[e]};x.template=function(e,t,n){!t&&n&&(t=n),t=x.defaults({},t,x.templateSettings);var r=RegExp([(t.escape||G).source,(t.interpolate||G).source,(t.evaluate||G).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,function(t,n,r,a,s){return i+=e.slice(o,s).replace(q,V),o=s+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var a=new Function(t.variable||"obj","_",i)}catch(e){throw e.source=i,e}var s=function(e){return a.call(this,e,x)},u=t.variable||"obj";return s.source="function("+u+"){\n"+i+"}",s},x.chain=function(e){var t=x(e);return t._chain=!0,t};var U=function(e,t){return e._chain?x(t).chain():t};x.mixin=function(e){x.each(x.functions(e),function(t){var n=x[t]=e[t];x.prototype[t]=function(){var e=[this._wrapped];return p.apply(e,arguments),U(this,n.apply(x,e))}})},x.mixin(x),x.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=c[e];x.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],U(this,n)}}),x.each(["concat","join","slice"],function(e){var t=c[e];x.prototype[e]=function(){return U(this,t.apply(this._wrapped,arguments))}}),x.prototype.value=function(){return this._wrapped},x.prototype.valueOf=x.prototype.toJSON=x.prototype.value,x.prototype.toString=function(){return""+this._wrapped},r=[],o=function(){return x}.apply(t,r),!(void 0!==o&&(e.exports=o))}).call(this)},,function(e,t,n){"use strict";function r(e){return e}function o(e,t,n){function o(e,t){var n=m.hasOwnProperty(t)?m[t]:null;x.hasOwnProperty(t)&&u("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&u("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function i(e,n){if(n){u("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),u(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,i=r.__reactAutoBindPairs;n.hasOwnProperty(l)&&b.mixins(e,n.mixins);for(var a in n)if(n.hasOwnProperty(a)&&a!==l){var s=n[a],c=r.hasOwnProperty(a);if(o(c,a),b.hasOwnProperty(a))b[a](e,s);else{var f=m.hasOwnProperty(a),h="function"==typeof s,v=h&&!f&&!c&&n.autobind!==!1;if(v)i.push(a,s),r[a]=s;else if(c){var g=m[a];u(f&&("DEFINE_MANY_MERGED"===g||"DEFINE_MANY"===g),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",g,a),"DEFINE_MANY_MERGED"===g?r[a]=d(r[a],s):"DEFINE_MANY"===g&&(r[a]=p(r[a],s))}else r[a]=s}}}else;}function c(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in b;u(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in e;u(!i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=r}}}function f(e,t){u(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(u(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function d(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return f(o,n),f(o,r),o}}function p(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){var n=t.bind(e);return n}function v(e){for(var t=e.__reactAutoBindPairs,n=0;n0&&r[0].isSelected}if(this.props.rowSelection){var o=this.props.rowSelection,i=o.keys,a=o.indexes,s=o.isSelectedKey;return w.isRowSelected(i,a,s,t,e)}return!1},_currentRowsLength:0,_currentRowsRange:{start:0,end:0},_scroll:{scrollTop:0,scrollLeft:0},setScrollLeft:function(e){if(0!==this._currentRowsLength){if(!this.rows)return;for(var t=0,n=this._currentRowsLength;t0&&s.unshift(this.renderPlaceholder("top",n*i)),a-r>0&&s.push(this.renderPlaceholder("bottom",(a-r)*i));var u={position:"absolute",top:0,left:0,overflowX:"auto",overflowY:"scroll",width:this.props.totalWidth,height:this.props.height};return p.createElement("div",{ref:function(t){e.div=t},style:u,onScroll:this.onScroll,className:g("react-grid-Canvas",this.props.className,{opaque:this.props.cellMetaData.selected&&this.props.cellMetaData.selected.active})},p.createElement(c.default,{width:this.props.width,rows:s,contextMenu:this.props.contextMenu,rowIdx:this.props.cellMetaData.selected.rowIdx,idx:this.props.cellMetaData.selected.idx}))}});e.exports=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(7),u=r(s),l=n(2),c=r(l),f=n(3),d=r(f),p=n(214),h=r(p),v=function(e){function t(){var n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),l=0;l0&&void 0!==arguments[0]?arguments[0]:this.props,t=this.setupGridColumns(e);return this.getColumnMetricsType({columns:t,minColumnWidth:this.props.minColumnWidth,totalWidth:e.minWidth})},onColumnResize:function(e,t){var n=l.resizeColumn(this.state.columnMetrics,e,t);this.setState({columnMetrics:n}),this.props.onColumnResize&&this.props.onColumnResize(e,t)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=Object.assign||function(e){for(var t=1;t=1||0===this.props.rowsCount&&!this.props.emptyRowsView?a.createElement("div",{ref:function(t){e.viewPortContainer=t},tabIndex:this.props.tabIndex,onKeyDown:this.props.onViewportKeydown,onKeyUp:this.props.onViewportKeyup,onClick:this.props.onViewportClick,onDoubleClick:this.props.onViewportDoubleClick,onDragStart:this.props.onViewportDragStart,onDragEnd:this.props.onViewportDragEnd},a.createElement(l,{ref:function(t){e.viewport=t},rowKey:this.props.rowKey,width:this.props.columnMetrics.width,rowHeight:this.props.rowHeight,rowRenderer:this.props.rowRenderer,rowGetter:this.props.rowGetter,rowsCount:this.props.rowsCount,selectedRows:this.props.selectedRows,expandedRows:this.props.expandedRows,columnMetrics:this.props.columnMetrics,totalWidth:this.props.totalWidth,onScroll:this.onScroll,onRows:this.props.onRows,cellMetaData:this.props.cellMetaData,rowOffsetHeight:this.props.rowOffsetHeight||this.props.rowHeight*t.length,minHeight:this.props.minHeight,rowScrollTimeout:this.props.rowScrollTimeout,scrollToRowIndex:this.props.scrollToRowIndex,contextMenu:this.props.contextMenu,rowSelection:this.props.rowSelection,getSubRowDetails:this.props.getSubRowDetails,rowGroupRenderer:this.props.rowGroupRenderer,overScan:this.props.overScan})):a.createElement("div",{ref:function(t){e.emptyView=t},className:"react-grid-Empty"},a.createElement(n,null)))}});e.exports=p},function(e,t,n){"use strict";var r=n(5);e.exports={componentDidMount:function(){this._scrollLeft=this.viewport?this.viewport.getScroll().scrollLeft:0,this._onScroll()},componentDidUpdate:function(){this._onScroll()},componentWillMount:function(){this._scrollLeft=void 0},componentWillUnmount:function(){this._scrollLeft=void 0},onScroll:function(e){this._scrollLeft!==e.scrollLeft&&(this._scrollLeft=e.scrollLeft,this._onScroll())},onHeaderScroll:function(e){var t=e.target.scrollLeft;if(this._scrollLeft!==t){this._scrollLeft=t,this.header.setScrollLeft(t);var n=r.findDOMNode(this.viewport.canvas);n.scrollLeft=t,this.viewport.canvas.setScrollLeft(t)}},_onScroll:function(){void 0!==this._scrollLeft&&(this.header.setScrollLeft(this._scrollLeft),this.viewport&&this.viewport.setScrollLeft(this._scrollLeft))}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=Object.assign||function(e){for(var t=1;t0?y():0,u=isNaN(r.props.totalWidth-s)?r.props.totalWidth:r.props.totalWidth-s,l={position:"absolute",top:r.getCombinedHeaderHeights(i),left:0,width:u,overflowX:"hidden",minHeight:a};n.push(c.createElement(g,{key:o.ref,ref:function(e){return"filter"===o.rowType?r.filterRow=e:r.row=e},rowType:o.rowType,style:l,onColumnResize:r.onColumnResize,onColumnResizeEnd:r.onColumnResizeEnd,width:e.width,height:o.height||r.props.height,columns:e.columns,resizing:t,draggableHeaderCell:r.props.draggableHeaderCell,filterable:o.filterable,onFilterChange:o.onFilterChange,onHeaderDrop:r.props.onHeaderDrop,sortColumn:r.props.sortColumn,sortDirection:r.props.sortDirection,onSort:r.props.onSort,onScroll:r.props.onScroll,getValidFilterValues:r.props.getValidFilterValues}))}),n},r.getColumnMetrics=function(){var e=void 0;return e=r.state.resizing?r.state.resizing.columnMetrics:r.props.columnMetrics},r.getColumnPosition=function(e){var t=r.getColumnMetrics(),n=-1;return t.columns.forEach(function(t,r){t.key===e.key&&(n=r)}),n===-1?null:n},r.getCombinedHeaderHeights=function(e){var t=r.props.headerRows.length;"undefined"!=typeof e&&(t=e);for(var n=0,o=0;o=0)return void this.exitGrid({idx:t,rowIdx:n},{idx:-1,rowIdx:n,exitedLeft:!0});if(!r&&t>=0)return void this.exitGrid({idx:t,rowIdx:n},{idx:-1,rowIdx:n})}return this.isFocusedOnTable()&&!this.isFocusedOnCell()&&r&&this.state.selected.exitedLeft?void this.enterGrid({idx:t,rowIdx:n}):this.isFocusedOnCell()?void this.moveSelectedCell(e,0,e.shiftKey?-1:1):t===-1?void this.moveSelectedCell(e,n===-1?1:0,r?this.getNbrColumns():1):(this.enterGrid({idx:t,rowIdx:n,changeSomething:!0}),void e.preventDefault())}},onPressEnter:function(e){this.setActive(e.key)},onPressDelete:function(e){this.setActive(e.key)},onPressEscape:function(e){this.setInactive(e.key),this.handleCancelCopy()},onPressBackspace:function(e){this.setActive(e.key)},onPressChar:function(e){this.isKeyPrintable(e.keyCode)&&this.setActive(e.keyCode)},onPressKeyWithCtrl:function(e){var t={KeyCode_c:99,KeyCode_C:67,KeyCode_V:86,KeyCode_v:118},n=this.state.selected.rowIdx,r=this.props.rowGetter(n),o=this.state.selected.idx,i=this.getColumn(o);if(m.canEdit(i,r,this.props.enableCellSelect))if(e.keyCode===t.KeyCode_c||e.keyCode===t.KeyCode_C){var a=this.getSelectedValue();this.handleCopy({value:a})}else e.keyCode!==t.KeyCode_v&&e.keyCode!==t.KeyCode_V||this.handlePaste()},onGridRowsUpdated:function(e,t,n,r,o,i){for(var a=[],s=t;s<=n;s++)a.push(this.props.rowGetter(s)[this.props.rowKey]);var u=this.props.rowGetter("COPY_PASTE"===o?i:t),l=u[this.props.rowKey],c=this.props.rowGetter(n)[this.props.rowKey];this.props.onGridRowsUpdated({cellKey:e,fromRow:t,toRow:n,fromRowId:l,toRowId:c,rowIds:a,updated:r,action:o,fromRowData:u})},onCellCommit:function(e){var t=Object.assign({},this.state.selected);t.active=!1;var n=this.state.expandedRows;this.setState({selected:t,expandedRows:n}),this.props.onRowUpdated&&this.props.onRowUpdated(e);var r=e.rowIdx;this.props.onGridRowsUpdated&&this.onGridRowsUpdated(e.cellKey,r,r,e.updated,u.default.UpdateActions.CELL_UPDATE)},onDragStart:function(e){var t=this.state.selected.idx,n=e&&e.target&&e.target.className;if(t>-1&&n){var r=this.getSelectedValue();this.handleDragStart({idx:this.state.selected.idx,rowIdx:this.state.selected.rowIdx,value:r}),e&&e.dataTransfer&&e.dataTransfer.setData&&(e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",""))}},onToggleFilter:function(){var e=this;this.setState({canFilter:!this.state.canFilter},function(){e.state.canFilter===!1&&e.props.onClearFilters&&e.props.onClearFilters()})},onDragHandleDoubleClick:function(e){if(this.props.onDragHandleDoubleClick&&this.props.onDragHandleDoubleClick(e),this.props.onGridRowsUpdated){var t,n=this.getColumn(e.idx).key;this.onGridRowsUpdated(n,e.rowIdx,this.props.rowsCount-1,(t={},t[n]=e.rowData[n],t),u.default.UpdateActions.COLUMN_FILL)}},onCellExpand:function(e){this.props.onCellExpand&&this.props.onCellExpand(e)},onRowExpandToggle:function(e){"function"==typeof this.props.onRowExpandToggle&&this.props.onRowExpandToggle(e)},isCellWithinBounds:function(e){var t=e.idx,n=e.rowIdx;return t>=0&&n>=0&&tn.overRowIdx?t.rowIdx:n.overRowIdx;if(this.props.onCellsDragged&&this.props.onCellsDragged({cellKey:o,fromRow:i,toRow:a,value:n.value}),this.props.onGridRowsUpdated){var s;this.onGridRowsUpdated(o,i,a,(s={},s[o]=n.value,s),u.default.UpdateActions.CELL_DRAG)}}this.setState({dragged:{complete:!0}})}},handleDragEnter:function(e){if(this.dragEnabled()&&null!=this.state.dragged){var t=this.state.dragged;t.overRowIdx=e,this.setState({dragged:t})}},handleTerminateDrag:function(){this.dragEnabled()&&this.setState({dragged:null})},handlePaste:function(){if(this.copyPasteEnabled()&&this.state.copied){var e=this.state.selected,t=this.getColumn(this.state.selected.idx).key,n=this.state.textToCopy,r=this.state.copied.rowIdx,o=e.rowIdx;if(this.props.onCellCopyPaste&&this.props.onCellCopyPaste({cellKey:t,rowIdx:o,value:n,fromRow:r,toRow:o}),this.props.onGridRowsUpdated){var i;this.onGridRowsUpdated(t,o,o,(i={},i[t]=n,i),u.default.UpdateActions.COPY_PASTE,r)}}},handleCancelCopy:function(){this.setState({copied:null})},handleCopy:function(e){if(this.copyPasteEnabled()){var t=e.value,n=this.state.selected,r={idx:n.idx,rowIdx:n.rowIdx};this.setState({textToCopy:t,copied:r})}},handleSort:function(e,t){this.setState({sortDirection:t,sortColumn:e},function(){this.props.onGridSort(e,t)})},getSelectedRow:function(e,t){var n=this,r=e.filter(function(e){return e[n.props.rowKey]===t});if(r.length>0)return r[0]},useNewRowSelection:function(){return this.props.rowSelection&&this.props.rowSelection.selectBy},handleShiftSelect:function(e){if(this.state.lastRowIdxUiSelected>-1&&this.isSingleKeyDown(b.Shift)){var t=this.props.rowSelection.selectBy,n=t.keys,r=t.indexes,o=t.isSelectedKey,i=y.isRowSelected(n,r,o,this.props.rowGetter(e),e);if(i)return!1;var a=!1;if(e>this.state.lastRowIdxUiSelected){for(var s=[],u=this.state.lastRowIdxUiSelected+1;u<=e;u++)s.push({rowIdx:u,row:this.props.rowGetter(u)});"function"==typeof this.props.rowSelection.onRowsSelected&&this.props.rowSelection.onRowsSelected(s),a=!0}else if(e0&&this.props.rowSelection.onRowsSelected(a)}else if(!t&&"function"==typeof this.props.rowSelection.onRowsDeselected){for(var l=[],c=0;c0&&this.props.rowSelection.onRowsDeselected(l)}}else{for(var d=[],p=0;p0?this.isAtLastCellInRow(i)&&("changeRow"===e?(r=this.isAtLastRow()?n:n+1,o=this.isAtLastRow()?o:0):o=0):t<0&&this.isAtFirstCellInRow()&&("changeRow"===e?(r=this.isAtFirstRow()?n:n-1,o=this.isAtFirstRow()?0:i-1):o=i-1);var a=this.state.selected.rowIdx+r;return{idx:o,rowIdx:a}},isAtLastCellInRow:function(e){return this.state.selected.idx===e-1},isAtLastRow:function(){return this.state.selected.rowIdx===this.props.rowsCount-1},isAtFirstCellInRow:function(){return 0===this.state.selected.idx},isAtFirstRow:function(){return 0===this.state.selected.rowIdx},openCellEditor:function(e,t){var n=this,r=this.props.rowGetter(e),o=this.getColumn(t);if(m.canEdit(o,r,this.props.enableCellSelect)){var i={rowIdx:e,idx:t};this.hasSelectedCellChanged(i)?this.setState({selected:i},function(){n.setActive("Enter")}):this.setActive("Enter")}},scrollToColumn:function(e){var t=f.findDOMNode(this).querySelector(".react-grid-Canvas");if(t){for(var n=0,r=0,o=0;ot.clientWidth){var l=u-t.clientWidth;t.scrollLeft+=l}}}},deselect:function(){var e={rowIdx:-1,idx:-1};this.setState({selected:e})},setActive:function(e){var t=this,n=this.state.selected.rowIdx,r=this.props.rowGetter(n),o=this.state.selected.idx,i=this.getColumn(o);if(m.canEdit(i,r,this.props.enableCellSelect)&&!this.isActive()){var a=Object.assign({},this.state.selected,{idx:o,rowIdx:n,active:!0,initialKeyCode:e}),s=!0;if("function"==typeof this.props.onCheckCellIsEditable){var u=Object.assign({},{row:r,column:i},a);s=this.props.onCheckCellIsEditable(u)}s!==!1&&(i.locked?this.setState({selected:a}):this.setState({selected:a},function(){t.scrollToColumn(o)}),this.props.onBeforeEdit(),this.handleCancelCopy())}},setInactive:function(){var e=this.state.selected.rowIdx,t=this.props.rowGetter(e),n=this.state.selected.idx,r=this.getColumn(n);if(m.canEdit(r,t,this.props.enableCellSelect)&&this.isActive()){var o=Object.assign({},this.state.selected,{idx:n,rowIdx:e,active:!1});this.setState({selected:o})}},isActive:function(){return this.state.selected.active===!0},setupGridColumns:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=t.columns;if(this._cachedColumns===n)return this._cachedComputedColumns;this._cachedColumns=n;var r=n.slice(0),o={};if(this.props.rowActionsCell||t.enableRowSelect&&!this.props.rowSelection||t.rowSelection&&t.rowSelection.showCheckbox!==!1){var i="single"===t.enableRowSelect?null:l.createElement("div",{className:"react-grid-checkbox-container checkbox-align"},l.createElement("input",{className:"react-grid-checkbox",type:"checkbox",name:"select-all-checkbox",id:"select-all-checkbox",ref:function(t){return e.selectAllCheckbox=t},onChange:this.handleCheckboxChange}),l.createElement("label",{htmlFor:"select-all-checkbox",className:"react-grid-checkbox-label"})),a=this.props.rowActionsCell?this.props.rowActionsCell:h,s={key:"select-row",name:"",formatter:l.createElement(a,{rowSelection:this.props.rowSelection}),onCellChange:this.handleRowSelect,filterable:!1,headerRenderer:i,width:60,locked:!0,getRowMetaData:function(e){return e},cellClass:this.props.rowActionsCell?"rdg-row-actions-cell":""};o=r.unshift(s),r=o>0?r:o}return this._cachedComputedColumns=r,this._cachedComputedColumns},copyPasteEnabled:function(){return null!==this.props.onCellCopyPaste},dragEnabled:function(){return void 0!==this.props.onGridRowsUpdated||void 0!==this.props.onCellsDragged},renderToolbar:function(){var e=this.props.toolbar,t={columns:this.props.columns,onToggleFilter:this.onToggleFilter,numberOfRows:this.props.rowsCount};return l.isValidElement(e)?l.cloneElement(e,t):w(e)?l.createElement(e,t):void 0},render:function(){var e=this,t={rowKey:this.props.rowKey,selected:this.state.selected,dragged:this.state.dragged,hoveredRowIdx:this.state.hoveredRowIdx,onCellClick:this.onCellClick,onCellContextMenu:this.onCellContextMenu,onCellDoubleClick:this.onCellDoubleClick,onCommit:this.onCellCommit,onCommitCancel:this.setInactive,copied:this.state.copied,handleDragEnterRow:this.handleDragEnter,handleTerminateDrag:this.handleTerminateDrag,enableCellSelect:this.props.enableCellSelect,onColumnEvent:this.onColumnEvent,openCellEditor:this.openCellEditor,onDragHandleDoubleClick:this.onDragHandleDoubleClick,onCellExpand:this.onCellExpand,onRowExpandToggle:this.onRowExpandToggle,onRowHover:this.onRowHover,getDataGridDOMNode:this.getDataGridDOMNode,getCellActions:this.props.getCellActions,onDeleteSubRow:this.props.onDeleteSubRow,onAddSubRow:this.props.onAddSubRow,isScrollingVerticallyWithKeyboard:this.isKeyDown(b.DownArrow)||this.isKeyDown(b.UpArrow),isScrollingHorizontallyWithKeyboard:this.isKeyDown(b.LeftArrow)||this.isKeyDown(b.RightArrow)||this.isKeyDown(b.Tab),enableCellAutoFocus:this.props.enableCellAutoFocus},n=this.renderToolbar(),r=this.props.minWidth||this.DOMMetrics.gridWidth(),i=r-this.state.scrollOffset;return("undefined"==typeof r||isNaN(r)||0===r)&&(r="100%"),("undefined"==typeof i||isNaN(i)||0===i)&&(i="100%"),l.createElement("div",{className:"react-grid-Container",style:{width:r}},n,l.createElement("div",{className:"react-grid-Main"},l.createElement(d,o({ref:function(t){return e.base=t}},this.props,{rowKey:this.props.rowKey,headerRows:this.getHeaderRows(),columnMetrics:this.state.columnMetrics,rowGetter:this.props.rowGetter,rowsCount:this.props.rowsCount,rowHeight:this.props.rowHeight,cellMetaData:t,selectedRows:this.getSelectedRows(),rowSelection:this.getRowSelectionProps(),expandedRows:this.state.expandedRows,rowOffsetHeight:this.getRowOffsetHeight(),sortColumn:this.state.sortColumn,sortDirection:this.state.sortDirection,onSort:this.handleSort,minHeight:this.props.minHeight,totalWidth:i,onViewportKeydown:this.onKeyDown,onViewportKeyup:this.onKeyUp,onViewportDragStart:this.onDragStart,onViewportDragEnd:this.handleDragEnd,onViewportClick:this.deselect,onViewportDoubleClick:this.deselect,onColumnResize:this.onColumnResize,rowScrollTimeout:this.props.rowScrollTimeout,scrollToRowIndex:this.props.scrollToRowIndex,contextMenu:this.props.contextMenu,overScan:this.props.overScan}))))}});e.exports=_},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t0?t:this.props.columnMetrics.totalWidth;0===n&&(n=u.findDOMNode(this).offsetWidth);for(var r=e,o=0;n>0;){var a=i.default.getColumn(this.props.columnMetrics.columns,r);if(!a)break;o++,r++,n-=a.width}return o},getVisibleColStart:function(e){for(var t=e,n=-1;t>=0;)n++,t-=i.default.getColumn(this.props.columnMetrics.columns,n).width;return n},clearScrollTimer:function(){this.resetScrollStateTimeoutId&&clearTimeout(this.resetScrollStateTimeoutId)},resetScrollStateAfterDelay:function(){this.clearScrollTimer(),this.resetScrollStateTimeoutId=setTimeout(this.resetScrollStateAfterDelayCallback,500)},resetScrollStateAfterDelayCallback:function(){this.resetScrollStateTimeoutId=null,this.setState({isScrolling:!1})},updateScroll:function(e,t,n,r,o,a){var s=!0;this.resetScrollStateAfterDelay();var u=p(n/r),l=f(0,d(e/r)),h=c(l+u,o),v=f(0,l-this.props.overScan.rowsStart),g=c(h+this.props.overScan.rowsEnd,o),y=i.default.getSize(this.props.columnMetrics.columns),m=y>0?f(0,this.getVisibleColStart(t)):0,b=this.getRenderedColumnCount(m,a),w=0!==b?m+b:y,_=f(0,m-this.props.overScan.colsStart),x=c(w+this.props.overScan.colsEnd,y),C={visibleStart:l,visibleEnd:h,displayStart:v,displayEnd:g,height:n,scrollTop:e,scrollLeft:t,colVisibleStart:m,colVisibleEnd:w,colDisplayStart:_,colDisplayEnd:x,isScrolling:s};this.setState(C)},metricsUpdated:function(){var e=this.DOMMetrics.viewportHeight(),t=this.DOMMetrics.viewportWidth();e&&this.updateScroll(this.state.scrollTop,this.state.scrollLeft,e,this.props.rowHeight,this.props.rowsCount,t)},componentWillReceiveProps:function(e){if(this.props.rowHeight!==e.rowHeight||this.props.minHeight!==e.minHeight){var t=this.getGridState(e);this.updateScroll(t.scrollTop,t.scrollLeft,t.height,e.rowHeight,e.rowsCount)}else if(i.default.getSize(this.props.columnMetrics.columns)!==i.default.getSize(e.columnMetrics.columns))this.setState(this.getGridState(e));else if(this.props.rowsCount!==e.rowsCount)this.updateScroll(this.state.scrollTop,this.state.scrollLeft,this.state.height,e.rowHeight,e.rowsCount);else if(this.props.rowOffsetHeight!==e.rowOffsetHeight){var n=this.props.rowOffsetHeight-e.rowOffsetHeight;this.updateScroll(this.state.scrollTop,this.state.scrollLeft,this.state.height+n,e.rowHeight,e.rowsCount)}},componentWillUnmount:function(){this.clearScrollTimer()}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(3),u=r(s),l=n(2),c=n(14),f=function(e){function t(){var n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),c=0;c-1},isClickInsideEditor:function(e){var t=this.getRelatedTarget(e);return e.currentTarget.contains(t)||t.className.indexOf("editing")>-1||t.className.indexOf("react-grid-Cell")>-1},getRelatedTarget:function(e){return e.relatedTarget||e.explicitOriginalTarget||document.activeElement},handleRightClick:function(e){e.stopPropagation()},handleBlur:function(e){e.stopPropagation(),this.isBodyClicked(e)&&this.commit(e),this.isBodyClicked(e)||!this.isViewportClicked(e)&&this.isClickInsideEditor(e)||this.commit(e)},setTextInputFocus:function(){var e=this.props.cellMetaData.selected,t=e.initialKeyCode,n=this.getInputNode();n.focus(),"INPUT"===n.tagName&&(this.isKeyPrintable(t)?n.select():(n.focus(),n.select()))},renderStatusIcon:function(){if(this.state.isInvalid===!0)return s.createElement("span",{className:"glyphicon glyphicon-remove form-control-feedback"})},render:function(){return s.createElement("div",{className:this.getContainerClass(),onBlur:this.handleBlur,onKeyDown:this.onKeyDown,onContextMenu:this.handleRightClick},this.createEditor(),this.renderStatusIcon())}});e.exports=p},function(e,t,n){"use strict";e.exports={CheckboxEditor:n(71),EditorBase:n(72),SimpleTextEditor:n(73)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;tspan{display:table-cell;vertical-align:middle}.rdg-cell-action-button:hover{background-color:#fff}.rdg-cell-action-button-toggled{background-color:#fff;border-right:1px solid #ccc;border-left:1px solid #ccc}.rdg-cell-action-button-toggled:after{content:"";height:1px;position:absolute;bottom:-1px;left:0;right:0;background:inherit;z-index:10001}.rdg-cell-action-menu{position:absolute;top:100%;right:0;z-index:1000;float:left;min-width:160px;padding:5px 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc}.rdg-cell-action-menu>span{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.rdg-cell-action-menu>span:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}',""])},function(e,t,n){t=e.exports=n(9)(),t.push([e.id,'.radio-custom,.react-grid-checkbox{opacity:0;position:absolute}.radio-custom,.radio-custom-label,.react-grid-checkbox,.react-grid-checkbox-label{display:inline-block;vertical-align:middle;cursor:pointer}.radio-custom-label,.react-grid-checkbox-label{position:relative}.radio-custom+.radio-custom-label:before,.react-grid-checkbox+.react-grid-checkbox-label:before{content:"";background:#fff;border:2px solid #ddd;display:inline-block;vertical-align:middle;width:20px;height:20px;text-align:center}.react-grid-checkbox:checked+.react-grid-checkbox-label:before{background:#005295;box-shadow:inset 0 0 0 4px #fff}.radio-custom:focus+.radio-custom-label,.react-grid-checkbox:focus+.react-grid-checkbox-label{outline:1px solid #ddd}.react-grid-HeaderCell input[type=checkbox]{z-index:99999}.react-grid-HeaderCell>.react-grid-checkbox-container{padding:0 10px;height:100%}.react-grid-HeaderCell>.react-grid-checkbox-container>.react-grid-checkbox-label{margin:0;position:relative;top:50%;transform:translateY(-50%)}.radio-custom+.radio-custom-label:before{border-radius:50%}.radio-custom:checked+.radio-custom-label:before{background:#ccc;box-shadow:inset 0 0 0 4px #fff}.checkbox-align{text-align:center}',""])},function(e,t,n){t=e.exports=n(9)(),t.push([e.id,".react-grid-Container{clear:both;margin-top:0;padding:0}.react-grid-Main{background-color:#fff;color:inherit;padding:0;outline:1px solid #e7eaec;clear:both}.react-grid-Grid{border:1px solid #ddd}.react-grid-Canvas,.react-grid-Grid{background-color:#fff}.react-grid-Cell input.editor-main,select.editor-main{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}input.editor-main:focus,select.editor-main:focus{border-color:#66afe9;border:2px solid #66afe9;background:#eee;border-radius:4px}.react-grid-Cell input.editor-main::-moz-placeholder,select.editor-main::-moz-placeholder{color:#999;opacity:1}.react-grid-Cell input.editor-main:-ms-input-placeholder,select.editor-main:-ms-input-placeholder{color:#999}.react-grid-Cell input.editor-main::-webkit-input-placeholder,select.editor-main::-webkit-input-placeholder{color:#999}.react-grid-Cell input.editor-main[disabled],.react-grid-Cell input.editor-main[readonly],fieldset[disabled] .react-grid-Cell input.editor-main,fieldset[disabled] select.editor-main,select.editor-main[disabled],select.editor-main[readonly]{cursor:not-allowed;background-color:#eee;opacity:1}textarea.react-grid-Cell input.editor-main,textareaselect.editor-main{height:auto}.react-grid-ScrollShim{z-index:10002}",""])},function(e,t,n){t=e.exports=n(9)(),t.push([e.id,".react-grid-Header{box-shadow:0 0 4px 0 #ddd;background:#f9f9f9}.react-grid-Header--resizing{cursor:ew-resize}.react-grid-HeaderCell,.react-grid-HeaderRow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.react-grid-HeaderCell{background:#f9f9f9;padding:8px;font-weight:700;border-right:1px solid #ddd;border-bottom:1px solid #ddd}.react-grid-HeaderCell__value{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;position:relative;top:50%;transform:translateY(-50%)}.react-grid-HeaderCell__resizeHandle:hover{cursor:ew-resize;background:#ddd}.react-grid-HeaderCell--locked:last-of-type{box-shadow:none}.react-grid-HeaderCell--resizing .react-grid-HeaderCell__resizeHandle{background:#ddd}.react-grid-HeaderCell__draggable{cursor:col-resize}.rdg-can-drop>.react-grid-HeaderCell{background:#ececec}.react-grid-HeaderCell .Select{max-height:30px;font-size:12px;font-weight:400}.react-grid-HeaderCell .Select-control{max-height:30px;border:1px solid #ccc;color:#555;border-radius:3px}.react-grid-HeaderCell .is-focused:not(.is-open)>.Select-control{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.react-grid-HeaderCell .Select-control .Select-placeholder{line-height:20px;color:#999;padding:4px}.react-grid-HeaderCell .Select-control .Select-input{max-height:28px;padding:4px;margin-left:0}.react-grid-HeaderCell .Select-control .Select-input input{padding:0;height:100%}.react-grid-HeaderCell .Select-control .Select-arrow-zone .Select-arrow{border-color:gray transparent transparent;border-width:4px 4px 2.5px}.react-grid-HeaderCell .Select-control .Select-value{padding:4px;line-height:20px!important}.react-grid-HeaderCell .Select--multi .Select-control .Select-value{padding:0;line-height:16px!important;max-height:20px}.react-grid-HeaderCell .Select--multi .Select-control .Select-value .Select-value-icon,.react-grid-HeaderCell .Select--multi .Select-control .Select-value .Select-value-label{max-height:20px}.react-grid-HeaderCell .Select-control .Select-value .Select-value-label{color:#555!important}.react-grid-HeaderCell .Select-menu-outer .Select-option{padding:4px;line-height:20px}.react-grid-HeaderCell .Select-menu-outer .Select-menu .Select-option.is-focused,.react-grid-HeaderCell .Select-menu-outer .Select-menu .Select-option.is-selected{color:#555}",""])},function(e,t,n){t=e.exports=n(9)(),t.push([e.id,'.react-grid-Row.row-context-menu .react-grid-Cell,.react-grid-Row:hover .react-grid-Cell{background-color:#f9f9f9}.react-grid-Row:hover .rdg-row-index{display:none}.react-grid-Row:hover .rdg-actions-checkbox{display:block}.react-grid-Row:hover .rdg-drag-row-handle{cursor:move;cursor:grab;cursor:-moz-grab;cursor:-webkit-grab;width:12px;height:30px;margin-left:0;background-image:url("data:image/svg+xml;base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjlweCIgaGVpZ2h0PSIyOXB4IiB2aWV3Qm94PSIwIDAgOSAyOSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDwhLS0gR2VuZXJhdG9yOiBTa2V0Y2ggMzkgKDMxNjY3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5kcmFnIGljb248L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iQWN0dWFsaXNhdGlvbi12MiIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkRlc2t0b3AiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNS4wMDAwMDAsIC0yNjIuMDAwMDAwKSIgZmlsbD0iI0Q4RDhEOCI+CiAgICAgICAgICAgIDxnIGlkPSJJbnRlcmFjdGlvbnMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE1LjAwMDAwMCwgMjU4LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9IlJvdy1Db250cm9scyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsIDIuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPGcgaWQ9ImRyYWctaWNvbiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsIDIuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iMiIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSI3IiBjeT0iMiIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iNyIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSI3IiBjeT0iNyIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iMTIiIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTMwIiBjeD0iNyIgY3k9IjEyIiByPSIyIj48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0zMCIgY3g9IjIiIGN5PSIxNyIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSI3IiBjeT0iMTciIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTMwIiBjeD0iMiIgY3k9IjIyIiByPSIyIj48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0zMCIgY3g9IjciIGN5PSIyMiIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iMjciIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTMwIiBjeD0iNyIgY3k9IjI3IiByPSIyIj48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==");background-repeat:no-repeat}.react-grid-Row.row-selected,.react-grid-Row .row-selected{background-color:#dbecfa}.react-grid-row-group .row-expand-icon:hover{color:#777}.react-grid-row-index{padding:0 18px}.rdg-row-index{display:block;text-align:center}.rdg-row-actions-cell{padding:0}.rdg-actions-checkbox{display:none;text-align:center}.rdg-actions-checkbox.selected{display:block}.rdg-dragging{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.rdg-dragged-row{border-bottom:1px solid #000}',""]); +},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,s],c=0;u=new Error(t.replace(/%s/g,function(){return l[c++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}e.exports=r},function(e,t,n){"use strict";var r=n(241),o=function(e){var t,n={};e instanceof Object&&!Array.isArray(e)?void 0:r(!1);for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};e.exports=o}]))})},function(e,t,n){e.exports=n(467)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(11),a=o(i),s=n(7),u=o(s),l=n(8),c=o(l),f=n(13),d=o(f),p=n(12),h=o(p),v=n(5),g=r(v),y=(n(17).babelPluginFlowReactPropTypes_proptype_RenderedSection||n(2).any,n(471).babelPluginFlowReactPropTypes_proptype_ScrollIndices||n(2).any,function(e){function t(e){(0,u.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,a.default)(t)).call(this,e));return n._columnStartIndex=0,n._columnStopIndex=0,n._rowStartIndex=0,n._rowStopIndex=0,n._onKeyDown=function(e){var t=n.props,r=t.columnCount,o=t.disabled,i=t.mode,a=t.rowCount;if(!o){var s=n._getScrollState(),u=s.scrollToColumn,l=s.scrollToRow,c=n._getScrollState(),f=c.scrollToColumn,d=c.scrollToRow;switch(e.key){case"ArrowDown":d="cells"===i?Math.min(d+1,a-1):Math.min(n._rowStopIndex+1,a-1);break;case"ArrowLeft":f="cells"===i?Math.max(f-1,0):Math.max(n._columnStartIndex-1,0);break;case"ArrowRight":f="cells"===i?Math.min(f+1,r-1):Math.min(n._columnStopIndex+1,r-1);break;case"ArrowUp":d="cells"===i?Math.max(d-1,0):Math.max(n._rowStartIndex-1,0)}f===u&&d===l||(e.preventDefault(),n._updateScrollState({scrollToColumn:f,scrollToRow:d}))}},n._onSectionRendered=function(e){var t=e.columnStartIndex,r=e.columnStopIndex,o=e.rowStartIndex,i=e.rowStopIndex;n._columnStartIndex=t,n._columnStopIndex=r,n._rowStartIndex=o,n._rowStopIndex=i},n.state={scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow},n}return(0,h.default)(t,e),(0,c.default)(t,[{key:"componentWillReceiveProps",value:function(e){if(!this.props.isControlled){var t=e.scrollToColumn,n=e.scrollToRow,r=this.props,o=r.scrollToColumn,i=r.scrollToRow;o!==t&&i!==n?this.setState({scrollToColumn:t,scrollToRow:n}):o!==t?this.setState({scrollToColumn:t}):i!==n&&this.setState({scrollToRow:n})}}},{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow;this.setState({scrollToRow:n,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,r=this._getScrollState(),o=r.scrollToColumn,i=r.scrollToRow;return g.createElement("div",{className:t,onKeyDown:this._onKeyDown},n({onSectionRendered:this._onSectionRendered,scrollToColumn:o,scrollToRow:i}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow,r=this.props,o=r.isControlled,i=r.onScrollToChange;"function"==typeof i&&i({scrollToColumn:t,scrollToRow:n}),o||this.setState({scrollToColumn:t,scrollToRow:n})}}]),t}(g.PureComponent));y.defaultProps={disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0},y.propTypes=null,t.default=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(469);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r(o).default}}),Object.defineProperty(t,"ArrowKeyStepper",{enumerable:!0,get:function(){return r(o).default}})},function(e,t,n){"use strict"},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),a=o(i),s=n(11),u=o(s),l=n(7),c=o(l),f=n(8),d=o(f),p=n(13),h=o(p),v=n(12),g=o(v),y=n(5),m=r(y),b=n(202),w=o(b),_=function(e){function t(){var e,n,r,o;(0,c.default)(this,t);for(var i=arguments.length,a=Array(i),s=0;s=0&&n=0?this._updateScrollPositionForScrollToCell():(n>=0||o>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:o}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,s=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:o||0,totalHeight:a,totalWidth:s})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.height,o=n.scrollToAlignment,i=n.scrollToCell,a=n.width,s=this.state,u=s.scrollLeft,l=s.scrollPositionChangeReason,c=s.scrollTop;l===R.REQUESTED&&(u>=0&&u!==t.scrollLeft&&u!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=u),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),r===e.height&&o===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillMount",value:function(){var e=this.props.cellLayoutManager;e.calculateSizeAndPositionData(),this._scrollbarSize=(0,S.default)(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.scrollLeft,r=t.scrollTop;0!==e.cellCount||0===n&&0===r?e.scrollLeft===this.props.scrollLeft&&e.scrollTop===this.props.scrollTop||this._setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}):this._setScrollPosition({scrollLeft:0,scrollTop:0}),(e.cellCount!==this.props.cellCount||e.cellLayoutManager!==this.props.cellLayoutManager||this._calculateSizeAndPositionDataOnNextUpdate)&&e.cellLayoutManager.calculateSizeAndPositionData(),this._calculateSizeAndPositionDataOnNextUpdate&&(this._calculateSizeAndPositionDataOnNextUpdate=!1)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,r=e.cellLayoutManager,o=e.className,a=e.height,s=e.horizontalOverscanSize,u=e.id,l=e.noContentRenderer,c=e.style,f=e.verticalOverscanSize,d=e.width,p=this.state,h=p.isScrolling,v=p.scrollLeft,g=p.scrollTop,y=r.getTotalSize(),b=y.height,_=y.width,x=Math.max(0,v-s),C=Math.max(0,g-f),S=Math.min(_,v+d+s),O=Math.min(b,g+a+f),R=a>0&&d>0?r.cellRenderers({height:O-C,isScrolling:h,width:S-x,x:x,y:C}):[],E={boxSizing:"border-box",direction:"ltr",height:t?"auto":a,position:"relative",WebkitOverflowScrolling:"touch",width:d,willChange:"transform"},I=b>a?this._scrollbarSize:0,D=_>d?this._scrollbarSize:0;return E.overflowX=_+I<=d?"hidden":"auto",E.overflowY=b+D<=a?"hidden":"auto",m.default.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:(0,w.default)("ReactVirtualized__Collection",o),id:u,onScroll:this._onScroll,role:"grid",style:(0,i.default)({},E,c),tabIndex:0},n>0&&m.default.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:b,maxHeight:b,maxWidth:_,overflow:"hidden",pointerEvents:h?"none":"",width:_}},R),0===n&&l())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){var t=e.props.isScrollingChange;t(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},O)}},{key:"_invokeOnSectionRenderedHelper",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.onSectionRendered;this._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,o=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,s=a.height,u=a.onScroll,l=a.width;u({clientHeight:s,clientWidth:l,scrollHeight:o,scrollLeft:n,scrollTop:r,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_setScrollingContainerRef",value:function(e){this._scrollingContainer=e}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,r={scrollPositionChangeReason:R.REQUESTED};t>=0&&(r.scrollLeft=t),n>=0&&(r.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(r)}},{key:"_updateScrollPositionForScrollToCell",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.height,r=e.scrollToAlignment,o=e.scrollToCell,i=e.width,a=this.state,s=a.scrollLeft,u=a.scrollTop;if(o>=0){var l=t.getScrollPositionForCell({align:r,cellIndex:o,height:n,scrollLeft:s,scrollTop:u,width:i});l.scrollLeft===s&&l.scrollTop===u||this._setScrollPosition(l)}}},{key:"_onScroll",value:function(e){if(e.target===this._scrollingContainer){this._enablePointerEventsAfterDelay();var t=this.props,n=t.cellLayoutManager,r=t.height,o=t.isScrollingChange,i=t.width,a=this._scrollbarSize,s=n.getTotalSize(),u=s.height,l=s.width,c=Math.max(0,Math.min(l-i+a,e.target.scrollLeft)),f=Math.max(0,Math.min(u-r+a,e.target.scrollTop));if(this.state.scrollLeft!==c||this.state.scrollTop!==f){var d=e.cancelable?R.OBSERVED:R.REQUESTED;this.state.isScrolling||o(!0),this.setState({isScrolling:!0,scrollLeft:c,scrollPositionChangeReason:d,scrollTop:f})}this._invokeOnScrollMemoizer({scrollLeft:c,scrollTop:f,totalWidth:l,totalHeight:u})}}}]),t}(y.PureComponent);E.defaultProps={"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0},t.default=E,E.propTypes={}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),i=r(o),a=n(8),s=r(a),u=(n(46).babelPluginFlowReactPropTypes_proptype_SizeAndPositionInfo||n(2).any,n(46).babelPluginFlowReactPropTypes_proptype_Index||n(2).any,function(){function e(t){var n=t.height,r=t.width,o=t.x,a=t.y;(0,i.default)(this,e),this.height=n,this.width=r,this.x=o,this.y=a,this._indexMap={},this._indices=[]}return(0,s.default)(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return this.x+","+this.y+" "+this.width+"x"+this.height}}]),e}());t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(122),i=r(o),a=n(7),s=r(a),u=n(8),l=r(u),c=n(477),f=r(c),d=(n(46).babelPluginFlowReactPropTypes_proptype_SizeAndPositionInfo||n(2).any,n(46).babelPluginFlowReactPropTypes_proptype_Index||n(2).any,100),p=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;(0,s.default)(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return(0,l.default)(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,r=e.x,o=e.y,a={};return this.getSections({height:t,width:n,x:r,y:o}).forEach(function(e){return e.getCellIndices().forEach(function(e){a[e]=e})}),(0,i.default)(a).map(function(e){return a[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,r=e.x,o=e.y,i=Math.floor(r/this._sectionSize),a=Math.floor((r+n-1)/this._sectionSize),s=Math.floor(o/this._sectionSize),u=Math.floor((o+t-1)/this._sectionSize),l=[],c=i;c<=a;c++)for(var d=s;d<=u;d++){var p=c+"."+d;this._sections[p]||(this._sections[p]=new f.default({height:this._sectionSize,width:this._sectionSize,x:c*this._sectionSize,y:d*this._sectionSize})),l.push(this._sections[p])}return l}},{key:"getTotalSectionCount",value:function(){return(0,i.default)(this._sections).length}},{key:"toString",value:function(){var e=this;return(0,i.default)(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:n})})}}]),e}();t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Collection=void 0;var o=n(475),i=r(o);t.default=i.default,t.Collection=i.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,r=e.sectionSize,o=[],i=new a.default(r),s=0,u=0,l=0;l0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?this.props.scrollToAlignment:t,r=e.columnIndex,o=void 0===r?this.props.scrollToColumn:r,i=e.rowIndex,s=void 0===i?this.props.scrollToRow:i,u=(0,a.default)({},this.props,{scrollToAlignment:n,scrollToColumn:o,scrollToRow:s});return{scrollLeft:this._getCalculatedScrollLeft(u),scrollTop:this._getCalculatedScrollTop(u)}}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,o=void 0===r?0:r;if(!(o<0)){this._debounceScrollEnded();var i=this.props,a=i.autoHeight,s=i.autoWidth,u=i.height,l=i.width,c=this._scrollbarSize,f=this._rowSizeAndPositionManager.getTotalSize(),d=this._columnSizeAndPositionManager.getTotalSize(),p=Math.min(Math.max(0,d-l+c),n),h=Math.min(Math.max(0,f-u+c),o);if(this.state.scrollLeft!==p||this.state.scrollTop!==h){var v=p!==this.state.scrollLeft?p>this.state.scrollLeft?E.SCROLL_DIRECTION_FORWARD:E.SCROLL_DIRECTION_BACKWARD:this.state.scrollDirectionHorizontal,g=h!==this.state.scrollTop?h>this.state.scrollTop?E.SCROLL_DIRECTION_FORWARD:E.SCROLL_DIRECTION_BACKWARD:this.state.scrollDirectionVertical,y={isScrolling:!0,scrollDirectionHorizontal:v,scrollDirectionVertical:g,scrollPositionChangeReason:N.OBSERVED};a||(y.scrollTop=h),s||(y.scrollLeft=p),this.setState(y)}this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:h,totalColumnsWidth:d,totalRowsHeight:f})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount;this._columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),this._rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r,i=this.props,a=i.scrollToColumn,s=i.scrollToRow;this._columnSizeAndPositionManager.resetCell(n),this._rowSizeAndPositionManager.resetCell(o),this._recomputeScrollLeftFlag=a>=0&&n<=a,this._recomputeScrollTopFlag=s>=0&&o<=s,this._cellCache={},this._styleCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,r=this.props.columnCount,o=this.props;r>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn((0,a.default)({},o,{scrollToColumn:t})),void 0!==n&&this._updateScrollTopForScrollToRow((0,a.default)({},o,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,n=e.height,r=e.scrollLeft,o=e.scrollToColumn,i=e.scrollTop,a=e.scrollToRow,s=e.width;this._handleInvalidatedGridSize(),this._scrollbarSizeMeasured||(this._scrollbarSize=t(),this._scrollbarSizeMeasured=!0,this.setState({})),("number"==typeof r&&r>=0||"number"==typeof i&&i>=0)&&this.scrollToPosition({scrollLeft:r,scrollTop:i});var u=n>0&&s>0;o>=0&&u&&this._updateScrollLeftForScrollToColumn(),a>=0&&u&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:i||0,totalColumnsWidth:this._columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:this._rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,o=r.autoHeight,i=r.autoWidth,a=r.columnCount,s=r.height,u=r.rowCount,l=r.scrollToAlignment,c=r.scrollToColumn,f=r.scrollToRow,d=r.width,p=this.state,h=p.scrollLeft,v=p.scrollPositionChangeReason,g=p.scrollTop;this._handleInvalidatedGridSize();var y=a>0&&0===e.columnCount||u>0&&0===e.rowCount;v===N.REQUESTED&&(!i&&h>=0&&(h!==t.scrollLeft&&h!==this._scrollingContainer.scrollLeft||y)&&(this._scrollingContainer.scrollLeft=h),!o&&g>=0&&(g!==t.scrollTop&&g!==this._scrollingContainer.scrollTop||y)&&(this._scrollingContainer.scrollTop=g));var m=(0===e.width||0===e.height)&&s>0&&d>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):(0,M.default)({cellSizeAndPositionManager:this._columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth, +previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:l,scrollToIndex:c,size:d,sizeJustIncreasedFromZero:m,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):(0,M.default)({cellSizeAndPositionManager:this._rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:l,scrollToIndex:f,size:s,sizeJustIncreasedFromZero:m,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||g!==t.scrollTop){var b=this._rowSizeAndPositionManager.getTotalSize(),w=this._columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:g,totalColumnsWidth:w,totalRowsHeight:b})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillMount",value:function(){var e=this.props.getScrollbarSize;this._scrollbarSize=e(),void 0===this._scrollbarSize?(this._scrollbarSizeMeasured=!1,this._scrollbarSize=0):this._scrollbarSizeMeasured=!0,this._calculateChildrenToRender()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&(0,j.cancelAnimationTimeout)(this._disablePointerEventsTimeoutId)}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.state,r=n.scrollLeft,o=n.scrollTop;if(0===e.columnCount&&0!==r||0===e.rowCount&&0!==o)this.scrollToPosition({scrollLeft:0,scrollTop:0});else if(e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var i={};null!=e.scrollLeft&&(i.scrollLeft=e.scrollLeft),null!=e.scrollTop&&(i.scrollTop=e.scrollTop),this.scrollToPosition(i)}e.columnWidth===this.props.columnWidth&&e.rowHeight===this.props.rowHeight||(this._styleCache={}),this._columnWidthGetter=this._wrapSizeGetter(e.columnWidth),this._rowHeightGetter=this._wrapSizeGetter(e.rowHeight),this._columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:this._getEstimatedColumnSize(e)}),this._rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:this._getEstimatedRowSize(e)});var a=this.props,s=a.columnCount,u=a.rowCount;0!==s&&0!==u||(s=0,u=0),e.autoHeight&&e.isScrolling===!1&&this.props.isScrolling===!0&&this._resetStyleCache(),(0,x.default)({cellCount:s,cellSize:"number"==typeof this.props.columnWidth?this.props.columnWidth:null,computeMetadataCallback:function(){return t._columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:this.props.scrollToColumn,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollLeftForScrollToColumn(e,t.state)}}),(0,x.default)({cellCount:u,cellSize:"number"==typeof this.props.rowHeight?this.props.rowHeight:null,computeMetadataCallback:function(){return t._rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:this.props.scrollToRow,updateScrollOffsetForScrollToIndex:function(){return t._updateScrollTopForScrollToRow(e,t.state)}})}},{key:"componentWillUpdate",value:function(e,t){this._calculateChildrenToRender(e,t)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,r=e.autoWidth,o=e.className,i=e.containerProps,s=e.containerRole,u=e.containerStyle,l=e.height,c=e.id,f=e.noContentRenderer,d=e.role,p=e.style,h=e.tabIndex,v=e.width,g=this._isScrolling(),y={boxSizing:"border-box",direction:"ltr",height:n?"auto":l,position:"relative",width:r?"auto":v,WebkitOverflowScrolling:"touch",willChange:"transform"},b=this._columnSizeAndPositionManager.getTotalSize(),_=this._rowSizeAndPositionManager.getTotalSize(),x=_>l?this._scrollbarSize:0,C=b>v?this._scrollbarSize:0;C===this._horizontalScrollBarSize&&x===this._verticalScrollBarSize||(this._horizontalScrollBarSize=C,this._verticalScrollBarSize=x,this._scrollbarPresenceChanged=!0),y.overflowX=b+x<=v?"hidden":"auto",y.overflowY=_+C<=l?"hidden":"auto";var S=this._childrenToDisplay,O=0===S.length&&l>0&&v>0;return m.createElement("div",(0,a.default)({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:(0,w.default)("ReactVirtualized__Grid",o),id:c,onScroll:this._onScroll,role:d,style:(0,a.default)({},y,p),tabIndex:h}),S.length>0&&m.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:s,style:(0,a.default)({width:t?"auto":b,height:_,maxWidth:b,maxHeight:_,overflow:"hidden",pointerEvents:g?"none":"",position:"relative"},u)},S),O&&f())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,r=e.cellRangeRenderer,o=e.columnCount,i=e.deferredMeasurementCache,a=e.height,s=e.overscanColumnCount,u=e.overscanIndicesGetter,l=e.overscanRowCount,c=e.rowCount,f=e.width,d=t.scrollDirectionHorizontal,p=t.scrollDirectionVertical,h=t.scrollLeft,v=t.scrollTop,g=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&f>0){var y=this._columnSizeAndPositionManager.getVisibleCellRange({containerSize:f,offset:h}),m=this._rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),b=this._columnSizeAndPositionManager.getOffsetAdjustment({containerSize:f,offset:h}),w=this._rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=y.start,this._renderedColumnStopIndex=y.stop,this._renderedRowStartIndex=m.start,this._renderedRowStopIndex=m.stop;var _=u({direction:"horizontal",cellCount:o,overscanCellsCount:s,scrollDirection:d,startIndex:"number"==typeof y.start?y.start:0,stopIndex:"number"==typeof y.stop?y.stop:-1}),x=u({direction:"vertical",cellCount:c,overscanCellsCount:l,scrollDirection:p,startIndex:"number"==typeof m.start?m.start:0,stopIndex:"number"==typeof m.stop?m.stop:-1});if(this._columnStartIndex=_.overscanStartIndex,this._columnStopIndex=_.overscanStopIndex,this._rowStartIndex=x.overscanStartIndex,this._rowStopIndex=x.overscanStopIndex,i){if(!i.hasFixedHeight())for(var C=this._rowStartIndex;C<=this._rowStopIndex;C++)if(!i.has(C,0)){this._columnStartIndex=0,this._columnStopIndex=o-1;break}if(!i.hasFixedWidth())for(var S=this._columnStartIndex;S<=this._columnStopIndex;S++)if(!i.has(0,S)){this._rowStartIndex=0,this._rowStopIndex=c-1;break}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:this._columnSizeAndPositionManager,columnStartIndex:this._columnStartIndex,columnStopIndex:this._columnStopIndex,deferredMeasurementCache:i,horizontalOffsetAdjustment:b,isScrolling:g,parent:this,rowSizeAndPositionManager:this._rowSizeAndPositionManager,rowStartIndex:this._rowStartIndex,rowStopIndex:this._rowStopIndex,scrollLeft:h,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:w,visibleColumnIndices:y,visibleRowIndices:m})}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&(0,j.cancelAnimationTimeout)(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=(0,j.requestAnimationTimeout)(this._debounceScrollEndedCallback,e)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,o=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,s=a.height,u=a.onScroll,l=a.width;u({clientHeight:s,clientWidth:l,scrollHeight:i,scrollLeft:n,scrollTop:r,scrollWidth:o})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this._scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,r={scrollPositionChangeReason:N.REQUESTED};"number"==typeof t&&t>=0&&(r.scrollDirectionHorizontal=t>this.state.scrollLeft?E.SCROLL_DIRECTION_FORWARD:E.SCROLL_DIRECTION_BACKWARD,r.scrollLeft=t),"number"==typeof n&&n>=0&&(r.scrollDirectionVertical=n>this.state.scrollTop?E.SCROLL_DIRECTION_FORWARD:E.SCROLL_DIRECTION_BACKWARD,r.scrollTop=n),("number"==typeof t&&t>=0&&t!==this.state.scrollLeft||"number"==typeof n&&n>=0&&n!==this.state.scrollTop)&&this.setState(r)}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.columnCount,r=e.height,o=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,s=t.scrollLeft;if(n>0){var u=n-1,l=i<0?u:Math.min(u,i),c=this._rowSizeAndPositionManager.getTotalSize(),f=c>r?this._scrollbarSize:0;return this._columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:a-f,currentOffset:s,targetIndex:l})}}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=t.scrollLeft,r=this._getCalculatedScrollLeft(e,t);"number"==typeof r&&r>=0&&n!==r&&this.scrollToPosition({scrollLeft:r,scrollTop:-1})}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.height,r=e.rowCount,o=e.scrollToAlignment,i=e.scrollToRow,a=e.width,s=t.scrollTop;if(r>0){var u=r-1,l=i<0?u:Math.min(u,i),c=this._columnSizeAndPositionManager.getTotalSize(),f=c>a?this._scrollbarSize:0;return this._rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:n-f,currentOffset:s,targetIndex:l})}}},{key:"_resetStyleCache",value:function(){var e=this._styleCache;this._cellCache={},this._styleCache={};for(var t=this._rowStartIndex;t<=this._rowStopIndex;t++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var r=t+"-"+n;this._styleCache[r]=e[r]}this.setState({isScrolling:!1})}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=t.scrollTop,r=this._getCalculatedScrollTop(e,t);"number"==typeof r&&r>=0&&n!==r&&this.scrollToPosition({scrollLeft:-1,scrollTop:r})}}]),t}(m.PureComponent);F.defaultProps={"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:k.default,containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:A.default,noContentRenderer:L,onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:I.default,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:z,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0},F.propTypes=null,t.default=F},function(e,t,n){"use strict";function r(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,a=e.stopIndex;return n=Math.max(1,n),r===o?{overscanStartIndex:Math.max(0,i-1),overscanStopIndex:Math.min(t-1,a+n)}:{overscanStartIndex:Math.max(0,i-n),overscanStopIndex:Math.min(t-1,a+1)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=(n(6).babelPluginFlowReactPropTypes_proptype_OverscanIndices||n(2).any,n(6).babelPluginFlowReactPropTypes_proptype_OverscanIndicesGetterParams||n(2).any,t.SCROLL_DIRECTION_BACKWARD=-1,t.SCROLL_DIRECTION_FORWARD=1);t.SCROLL_DIRECTION_HORIZONTAL="horizontal",t.SCROLL_DIRECTION_VERTICAL="vertical"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),i=r(o),a=n(8),s=r(a),u=(n(6).babelPluginFlowReactPropTypes_proptype_VisibleCellRange||n(2).any,n(6).babelPluginFlowReactPropTypes_proptype_CellSizeGetter||n(2).any,n(6).babelPluginFlowReactPropTypes_proptype_Alignment||n(2).any,function(){function e(t){var n=t.cellCount,r=t.cellSizeGetter,o=t.estimatedCellSize;(0,i.default)(this,e),this._cellSizeAndPositionData={},this._lastMeasuredIndex=-1,this._lastBatchedIndex=-1,this._cellSizeGetter=r,this._cellCount=n,this._estimatedCellSize=o}return(0,s.default)(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,n=e.estimatedCellSize;this._cellCount=t,this._estimatedCellSize=n}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var o=this._cellSizeGetter({index:r});if(void 0===o||isNaN(o))throw Error("Invalid size returned for cell "+r+" of value "+o);null===o?(this._cellSizeAndPositionData[r]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:n,size:o},n+=o,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell(),t=e.offset+e.size,n=this._cellCount-this._lastMeasuredIndex-1,r=n*this._estimatedCellSize;return t+r}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,o=e.currentOffset,i=e.targetIndex;if(r<=0)return 0;var a=this.getSizeAndPositionOfCell(i),s=a.offset,u=s-r+a.size,l=void 0;switch(n){case"start":l=s;break;case"end":l=u;break;case"center":l=s-(r-a.size)/2;break;default:l=Math.max(u,Math.min(s,o))}var c=this.getTotalSize();return Math.max(0,Math.min(c-r,l))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset,r=this.getTotalSize();if(0===r)return{};var o=n+t,i=this._findNearestCell(n),a=this.getSizeAndPositionOfCell(i);n=a.offset+a.size;for(var s=i;nn&&(e=r-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var n=1;e=e?this._binarySearch(n,0,e):this._exponentialSearch(n,e)}}]),e}());t.default=u},function(e,t){"use strict";function n(e){var t=e.cellCount,n=e.cellSize,r=e.computeMetadataCallback,o=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,s=e.nextScrollToIndex,u=e.scrollToIndex,l=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(r(o),u>=0&&u===s&&l())}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=15e5,r=16777100,o=function(){return"undefined"!=typeof window},i=function(){return!!window.chrome&&!!window.chrome.webstore};t.getMaxElementSize=function(){return o()&&i()?r:n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,r=e.previousCellsCount,o=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,s=e.previousSize,u=e.scrollOffset,l=e.scrollToAlignment,c=e.scrollToIndex,f=e.size,d=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,h=n.getCellCount(),v=c>=0&&c0&&(fn.getTotalSize()-f&&p(h-1)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(118);r(i),n(6).babelPluginFlowReactPropTypes_proptype_CellSize||n(2).any,n(6).babelPluginFlowReactPropTypes_proptype_Alignment||n(2).any},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,o=e.stopIndex;return!(r>n||o0;){var h=p.startIndex-1;if(t({index:h}))break;p.startIndex=h}return a}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;n?n.call(e,t):e.forceUpdate()}Object.defineProperty(t,"__esModule",{value:!0});var s=n(11),u=r(s),l=n(7),c=r(l),f=n(8),d=r(f),p=n(13),h=r(p),v=n(12),g=r(v);t.isRangeVisible=o,t.scanForUnloadedRanges=i,t.forceUpdateReactVirtualizedComponent=a;var y=n(5),m=n(2),b=(r(m),n(121)),w=r(b),_=function(e){function t(e,n){(0,c.default)(this,t);var r=(0,h.default)(this,(t.__proto__||(0,u.default)(t)).call(this,e,n));return r._loadMoreRowsMemoizer=(0,w.default)(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return(0,g.default)(t,e),(0,d.default)(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=(0,w.default)(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){var e=this.props.children;return e({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach(function(e){var r=n(e);r&&r.then(function(){o({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex})&&t._registeredChild&&a(t._registeredChild,t._lastRenderedStartIndex)})})}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,n=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=n,this._doStuff(t,n)}},{key:"_doStuff",value:function(e,t){var n=this,r=this.props,o=r.isRowLoaded,a=r.minimumBatchSize,s=r.rowCount,u=r.threshold,l=i({isRowLoaded:o,minimumBatchSize:a,rowCount:s,startIndex:Math.max(0,e-u),stopIndex:Math.min(s-1,t+u)}),c=l.reduce(function(e,t){return e.concat([t.startIndex,t.stopIndex])},[]);this._loadMoreRowsMemoizer({callback:function(){n._loadUnloadedRanges(l)},indices:{squashedUnloadedRanges:c}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(y.PureComponent);_.defaultProps={minimumBatchSize:10,rowCount:0,threshold:15},t.default=_,_.propTypes={}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.InfiniteLoader=void 0;var o=n(489),i=r(o);t.default=i.default,t.InfiniteLoader=i.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),a=o(i),s=n(214),u=o(s),l=n(11),c=o(l),f=n(7),d=o(f),p=n(8),h=o(p),v=n(13),g=o(v),y=n(12),m=o(y),b=n(17),w=o(b),_=n(5),x=r(_),C=n(38),S=o(C),O=(n(17).babelPluginFlowReactPropTypes_proptype_Scroll||n(2).any,n(17).babelPluginFlowReactPropTypes_proptype_CellRendererParams||n(2).any,n(17).babelPluginFlowReactPropTypes_proptype_RenderedSection||n(2).any,n(17).babelPluginFlowReactPropTypes_proptype_OverscanIndicesGetter||n(2).any,n(17).babelPluginFlowReactPropTypes_proptype_CellPosition||n(2).any,n(17).babelPluginFlowReactPropTypes_proptype_CellSize||n(2).any,n(17).babelPluginFlowReactPropTypes_proptype_Alignment||n(2).any,n(17).babelPluginFlowReactPropTypes_proptype_NoContentRenderer||n(2).any,n(119).babelPluginFlowReactPropTypes_proptype_Scroll||n(2).any,n(119).babelPluginFlowReactPropTypes_proptype_RenderedRows||n(2).any,n(119).babelPluginFlowReactPropTypes_proptype_RowRenderer||n(2).any,function(e){function t(){var e,n,r,o;(0,d.default)(this,t);for(var i=arguments.length,a=Array(i),s=0;s0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,r=e.scrollToIndex,o=e.width,i=(0,S.default)("ReactVirtualized__List",t);return x.createElement(w.default,(0,a.default)({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:o,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}]),t}(x.PureComponent));O.defaultProps={autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:b.accessibilityOverscanIndicesGetter,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}},O.propTypes=null,t.default=O},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(491);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r(o).default}}),Object.defineProperty(t,"List",{enumerable:!0,get:function(){return r(o).default}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(218),i=r(o),a=n(7),s=r(a),u=n(8),l=r(u),c=n(511),f=r(c),d=function(){function e(){(0,s.default)(this,e),this._columnSizeMap={},this._intervalTree=(0,f.default)(),this._leftMap={}}return(0,l.default)(e,[{key:"estimateTotalHeight",value:function(e,t,n){var r=e-this.count;return this.tallestColumnSize+Math.ceil(r/t)*n}},{key:"range",value:function(e,t,n){var r=this;this._intervalTree.queryInterval(e,e+t,function(e){var t=(0,i.default)(e,3),o=t[0],a=(t[1],t[2]);return n(a,r._leftMap[a],o)})}},{key:"setPosition",value:function(e,t,n,r){this._intervalTree.insert([n,n+r,e]),this._leftMap[e]=t;var o=this._columnSizeMap,i=o[t];void 0===i?o[t]=n+r:o[t]=Math.max(i,n+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=0===t?r:Math.min(t,r)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=Math.max(t,r)}return t}}]),e}();t.default=d},function(e,t,n){"use strict";function r(e){function t(e){for(var t=0,n=1;n0&&void 0!==arguments[0]?arguments[0]:{};(0,i.default)(this,e),this.columnWidth=function(e){var n=e.index;t._cellMeasurerCache.columnWidth({index:n+t._columnIndexOffset})},this.rowHeight=function(e){var n=e.index;t._cellMeasurerCache.rowHeight({index:n+t._rowIndexOffset})};var r=n.cellMeasurerCache,o=n.columnIndexOffset,a=void 0===o?0:o,s=n.rowIndexOffset,u=void 0===s?0:s;this._cellMeasurerCache=r,this._columnIndexOffset=a,this._rowIndexOffset=u}return(0,s.default)(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,n,r){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,n,r)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}());t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(22),i=r(o),a=n(81),s=r(a),u=n(11),l=r(u),c=n(7),f=r(c),d=n(8),p=r(d),h=n(13),v=r(h),g=n(12),y=r(g),m=n(2),b=(r(m),n(5)),w=r(b),_=n(496),x=r(_),C=n(17),S=r(C),O=20,R=function(e){function t(e,n){(0,f.default)(this,t);var r=(0,v.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e,n));return r.state={scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1},r._deferredInvalidateColumnIndex=null,r._deferredInvalidateRowIndex=null,r._bottomLeftGridRef=r._bottomLeftGridRef.bind(r),r._bottomRightGridRef=r._bottomRightGridRef.bind(r),r._cellRendererBottomLeftGrid=r._cellRendererBottomLeftGrid.bind(r),r._cellRendererBottomRightGrid=r._cellRendererBottomRightGrid.bind(r),r._cellRendererTopRightGrid=r._cellRendererTopRightGrid.bind(r),r._columnWidthRightGrid=r._columnWidthRightGrid.bind(r),r._onScroll=r._onScroll.bind(r),r._onScrollbarPresenceChange=r._onScrollbarPresenceChange.bind(r),r._onScrollLeft=r._onScrollLeft.bind(r),r._onScrollTop=r._onScrollTop.bind(r),r._rowHeightBottomGrid=r._rowHeightBottomGrid.bind(r),r._topLeftGridRef=r._topLeftGridRef.bind(r),r._topRightGridRef=r._topRightGridRef.bind(r),r}return(0,y.default)(t,e),(0,p.default)(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){ +var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r,i=this.props,a=i.fixedColumnCount,s=i.fixedRowCount,u=Math.max(0,n-a),l=Math.max(0,o-s);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:l}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:u,rowIndex:l}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:o}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:u,rowIndex:o}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(null,this.props,null,this.state)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,n=e.scrollTop;if(t>0||n>0){var r={};t>0&&(r.scrollLeft=t),n>0&&(r.scrollTop=n),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"componentWillMount",value:function(){var e=this.props,t=e.deferredMeasurementCache,n=e.fixedColumnCount,r=e.fixedRowCount;this._maybeCalculateCachedStyles(null,this.props,null,this.state),t&&(this._deferredMeasurementCacheBottomLeftGrid=r>0?new x.default({cellMeasurerCache:t,columnIndexOffset:0,rowIndexOffset:r}):t,this._deferredMeasurementCacheBottomRightGrid=n>0||r>0?new x.default({cellMeasurerCache:t,columnIndexOffset:n,rowIndexOffset:r}):t,this._deferredMeasurementCacheTopRightGrid=n>0?new x.default({cellMeasurerCache:t,columnIndexOffset:n,rowIndexOffset:0}):t)}},{key:"componentWillReceiveProps",value:function(e,t){var n=this.props,r=n.columnWidth,o=n.fixedColumnCount,i=n.fixedRowCount,a=n.rowHeight;if(r===e.columnWidth&&o===e.fixedColumnCount||(this._leftGridWidth=null),i===e.fixedRowCount&&a===e.rowHeight||(this._topGridHeight=null),e.scrollLeft!==this.props.scrollLeft||e.scrollTop!==this.props.scrollTop){var s={};null!=e.scrollLeft&&e.scrollLeft>=0&&(s.scrollLeft=e.scrollLeft),null!=e.scrollTop&&e.scrollTop>=0&&(s.scrollTop=e.scrollTop),this.setState(s)}this._maybeCalculateCachedStyles(this.props,e,this.state,t)}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,r=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),o=(e.scrollTop,e.scrollToRow),a=(0,s.default)(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(0===this.props.width||0===this.props.height)return null;var u=this.state,l=u.scrollLeft,c=u.scrollTop;return w.default.createElement("div",{style:this._containerOuterStyle},w.default.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(a),this._renderTopRightGrid((0,i.default)({},a,{onScroll:t,scrollLeft:l}))),w.default.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid((0,i.default)({},a,{onScroll:t,scrollTop:c})),this._renderBottomRightGrid((0,i.default)({},a,{onScroll:t,onSectionRendered:n,scrollLeft:l,scrollToColumn:r,scrollToRow:o,scrollTop:c}))))}},{key:"_bottomLeftGridRef",value:function(e){this._bottomLeftGrid=e}},{key:"_bottomRightGridRef",value:function(e){this._bottomRightGrid=e}},{key:"_cellRendererBottomLeftGrid",value:function(e){var t=e.rowIndex,n=(0,s.default)(e,["rowIndex"]),r=this.props,o=r.cellRenderer,a=r.fixedRowCount,u=r.rowCount;return t===u-a?w.default.createElement("div",{key:n.key,style:(0,i.default)({},n.style,{height:O})}):o((0,i.default)({},n,{parent:this,rowIndex:t+a}))}},{key:"_cellRendererBottomRightGrid",value:function(e){var t=e.columnIndex,n=e.rowIndex,r=(0,s.default)(e,["columnIndex","rowIndex"]),o=this.props,a=o.cellRenderer,u=o.fixedColumnCount,l=o.fixedRowCount;return a((0,i.default)({},r,{columnIndex:t+u,parent:this,rowIndex:n+l}))}},{key:"_cellRendererTopRightGrid",value:function(e){var t=e.columnIndex,n=(0,s.default)(e,["columnIndex"]),r=this.props,o=r.cellRenderer,a=r.columnCount,u=r.fixedColumnCount;return t===a-u?w.default.createElement("div",{key:n.key,style:(0,i.default)({},n.style,{width:O})}):o((0,i.default)({},n,{columnIndex:t+u,parent:this}))}},{key:"_columnWidthRightGrid",value:function(e){var t=e.index,n=this.props,r=n.columnCount,o=n.fixedColumnCount,i=n.columnWidth,a=this.state,s=a.scrollbarSize,u=a.showHorizontalScrollbar;return u&&t===r-o?s:"function"==typeof i?i({index:t+o}):i}},{key:"_getBottomGridHeight",value:function(e){var t=e.height,n=this._getTopGridHeight(e);return t-n}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var r=0,o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,o=t.disableHeader,a=t.gridClassName,s=t.gridStyle,u=t.headerHeight,l=t.headerRowRenderer,c=t.height,f=t.id,d=t.noRowsRenderer,p=t.rowClassName,h=t.rowStyle,v=t.scrollToIndex,g=t.style,m=t.width,b=this.state.scrollbarWidth,w=o?c:c-u,x="function"==typeof p?p({index:-1}):p,C="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],_.default.Children.toArray(n).forEach(function(t,n){var r=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=(0,i.default)({},r,{overflow:"hidden"})}),_.default.createElement("div",{className:(0,y.default)("ReactVirtualized__Table",r),id:f,role:"grid",style:g},!o&&l({className:(0,y.default)("ReactVirtualized__Table__headerRow",x),columns:this._getHeaderColumns(),style:(0,i.default)({},C,{height:u,overflow:"hidden",paddingRight:b,width:m})}),_.default.createElement(S.default,(0,i.default)({},this.props,{autoContainerWidth:!0,className:(0,y.default)("ReactVirtualized__Table__Grid",a),cellRenderer:this._createRow,columnWidth:m,columnCount:1,height:w,id:void 0,noContentRenderer:d,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:b,scrollToRow:v,style:(0,i.default)({},s,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,r=e.isScrolling,o=e.parent,i=e.rowData,a=e.rowIndex,s=t.props,u=s.cellDataGetter,l=s.cellRenderer,c=s.className,f=s.columnData,d=s.dataKey,p=s.id,h=u({columnData:f,dataKey:d,rowData:i}),v=l({cellData:h,columnData:f,columnIndex:n,dataKey:d,isScrolling:r,parent:o,rowData:i,rowIndex:a}),g=this._cachedColumnStyles[n],m="string"==typeof v?v:null;return _.default.createElement("div",{"aria-describedby":p,className:(0,y.default)("ReactVirtualized__Table__rowColumn",c),key:"Row"+a+"-Col"+n,role:"gridcell",style:g,title:m},v)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,r=this.props,o=r.headerClassName,a=r.headerStyle,s=r.onHeaderClick,u=r.sort,l=r.sortBy,c=r.sortDirection,f=t.props,d=f.columnData,p=f.dataKey,h=f.defaultSortDirection,v=f.disableSort,g=f.headerRenderer,m=f.id,b=f.label,w=!v&&u,x=(0,y.default)("ReactVirtualized__Table__headerColumn",o,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:w}),C=this._getFlexStyleForColumn(t,(0,i.default)({},a,t.props.headerStyle)),S=g({columnData:d,dataKey:p,disableSort:v,label:b,sortBy:l,sortDirection:c}),O=void 0,R=void 0,E=void 0,I=void 0,D=void 0;if(w||s){var T=l!==p,k=T?h:c===M.default.DESC?M.default.ASC:M.default.DESC,P=function(e){w&&u({defaultSortDirection:h,event:e,sortBy:p,sortDirection:k}),s&&s({columnData:d,dataKey:p,event:e})},A=function(e){"Enter"!==e.key&&" "!==e.key||P(e)};D=t.props["aria-label"]||b||p,E=0,O=P,R=A}return l===p&&(I=c===M.default.ASC?"ascending":"descending"),_.default.createElement("div",{"aria-label":D,"aria-sort":I,className:x,id:m,key:"Header-Col"+n,onClick:O,onKeyDown:R,role:"columnheader",style:C,tabIndex:E},S)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,r=e.isScrolling,o=e.key,a=e.parent,s=e.style,u=this.props,l=u.children,c=u.onRowClick,f=u.onRowDoubleClick,d=u.onRowRightClick,p=u.onRowMouseOver,h=u.onRowMouseOut,v=u.rowClassName,g=u.rowGetter,m=u.rowRenderer,b=u.rowStyle,w=this.state.scrollbarWidth,x="function"==typeof v?v({index:n}):v,C="function"==typeof b?b({index:n}):b,S=g({index:n}),O=_.default.Children.toArray(l).map(function(e,o){return t._createColumn({column:e,columnIndex:o,isScrolling:r,parent:a,rowData:S,rowIndex:n,scrollbarWidth:w})}),R=(0,y.default)("ReactVirtualized__Table__row",x),E=(0,i.default)({},s,C,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:w});return m({className:R,columns:O,index:n,isScrolling:r,key:o,onRowClick:c,onRowDoubleClick:f,onRowRightClick:d,onRowMouseOver:p,onRowMouseOut:h,rowData:S,style:E})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",r=(0,i.default)({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children,r=t.disableHeader,o=r?[]:_.default.Children.toArray(n);return o.map(function(t,n){return e._createHeader({column:t,index:n})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop,o=this.props.onScroll;o({clientHeight:t,scrollHeight:n,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,o=e.rowStopIndex,i=this.props.onRowsRendered;i({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:o})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){if(this.Grid){var e=(0,x.findDOMNode)(this.Grid),t=e.clientWidth||0,n=e.offsetWidth||0,r=n-t;this.setState({scrollbarWidth:r})}}}]),t}(w.PureComponent));T.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:C.accessibilityOverscanIndicesGetter,overscanRowCount:10,rowRenderer:R.default,headerRowRenderer:I.default,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}},t.default=T,T.propTypes={}},function(e,t){"use strict";function n(e){function t(t){var n=t.defaultSortDirection,r=t.event,o=t.sortBy;if(r.shiftKey)s.hasOwnProperty(o)?s[o]="ASC"===s[o]?"DESC":"ASC":(s[o]=n,a.push(o));else if(r.ctrlKey||r.metaKey){var i=a.indexOf(o);i>=0&&(a.splice(i,1),delete s[o])}else a.length=0,a.push(o),s.hasOwnProperty(o)?s[o]="ASC"===s[o]?"DESC":"ASC":s[o]=n;e({sortBy:a,sortDirection:s})}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.defaultSortBy,o=n.defaultSortDirection,i=void 0===o?{}:o;if(!e)throw Error('Required parameter "sortCallback" not specified');var a=r||[],s={};return a.forEach(function(e){s[e]=i.hasOwnProperty(e)?i[e]:"ASC"}),{sort:t,sortBy:a,sortDirection:s}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Table=t.SortIndicator=t.SortDirection=t.Column=t.defaultRowRenderer=t.defaultHeaderRenderer=t.defaultHeaderRowRenderer=t.defaultCellRenderer=t.defaultCellDataGetter=t.createMultiSort=void 0;var o=n(502),i=r(o),a=n(196),s=r(a),u=n(197),l=r(u),c=n(199),f=r(c),d=n(198),p=r(d),h=n(200),v=r(h),g=n(194),y=r(g),m=n(80),b=r(m),w=n(195),_=r(w),x=n(501),C=r(x);t.default=C.default,t.createMultiSort=i.default,t.defaultCellDataGetter=s.default,t.defaultCellRenderer=l.default,t.defaultHeaderRowRenderer=f.default,t.defaultHeaderRenderer=p.default,t.defaultRowRenderer=v.default,t.Column=y.default,t.SortDirection=b.default,t.SortIndicator=_.default,t.Table=C.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.IS_SCROLLING_TIMEOUT=t.WindowScroller=void 0;var o=n(201),i=r(o);t.default=i.default,t.WindowScroller=i.default,t.IS_SCROLLING_TIMEOUT=o.IS_SCROLLING_TIMEOUT},function(e,t){"use strict";function n(e,t){if(e){if(i(e)){var n=window,r=n.innerHeight,o=n.innerWidth;return{height:"number"==typeof r?r:0,width:"number"==typeof o?o:0}}return a(e)}return{height:t.serverHeight,width:t.serverWidth}}function r(e,t){if(i(t)&&document.documentElement){var n=document.documentElement,r=a(e),s=a(n);return{top:r.top-s.top,left:r.left-s.left}}var u=o(t),l=a(e),c=a(t);return{top:l.top+u.top-c.top,left:l.left+u.left-c.left}}function o(e){return i(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}Object.defineProperty(t,"__esModule",{value:!0}),t.getDimensions=n,t.getPositionOffset=r,t.getScrollOffset=o;var i=function(e){return e===window},a=function(e){return e.getBoundingClientRect()}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){h&&(h=null,document.body&&null!=p&&(document.body.style.pointerEvents=p),p=null)}function i(){o(),d.forEach(function(e){return e.__resetIsScrolling()})}function a(){h&&(0,c.cancelAnimationTimeout)(h);var e=0;d.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),h=(0,c.requestAnimationTimeout)(i,e)}function s(e){e.currentTarget===window&&null==p&&document.body&&(p=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),a(),d.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function u(e,t){d.some(function(e){return e.props.scrollElement===t})||t.addEventListener("scroll",s),d.push(e)}function l(e,t){d=d.filter(function(t){return t!==e}),d.length||(t.removeEventListener("scroll",s),h&&((0,c.cancelAnimationTimeout)(h),o()))}Object.defineProperty(t,"__esModule",{value:!0}),t.registerScrollListener=u,t.unregisterScrollListener=l;var c=n(57),f=n(201),d=(r(f),[]),p=null,h=null},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(470);Object.defineProperty(t,"ArrowKeyStepper",{enumerable:!0,get:function(){return r.ArrowKeyStepper}});var o=n(473);Object.defineProperty(t,"AutoSizer",{enumerable:!0,get:function(){return o.AutoSizer}});var i=n(191);Object.defineProperty(t,"CellMeasurer",{enumerable:!0,get:function(){return i.CellMeasurer}}),Object.defineProperty(t,"CellMeasurerCache",{enumerable:!0,get:function(){return i.CellMeasurerCache}});var a=n(479);Object.defineProperty(t,"Collection",{enumerable:!0,get:function(){return a.Collection}});var s=n(482);Object.defineProperty(t,"ColumnSizer",{enumerable:!0,get:function(){return s.ColumnSizer}});var u=n(17);Object.defineProperty(t,"accessibilityOverscanIndicesGetter",{enumerable:!0,get:function(){return u.accessibilityOverscanIndicesGetter}}),Object.defineProperty(t,"defaultCellRangeRenderer",{enumerable:!0,get:function(){return u.defaultCellRangeRenderer}}),Object.defineProperty(t,"defaultOverscanIndicesGetter",{enumerable:!0,get:function(){return u.defaultOverscanIndicesGetter}}),Object.defineProperty(t,"Grid",{enumerable:!0,get:function(){return u.Grid}});var l=n(490);Object.defineProperty(t,"InfiniteLoader",{enumerable:!0,get:function(){return l.InfiniteLoader}});var c=n(492);Object.defineProperty(t,"List",{enumerable:!0,get:function(){return c.List}});var f=n(495);Object.defineProperty(t,"createMasonryCellPositioner",{enumerable:!0,get:function(){return f.createCellPositioner}}),Object.defineProperty(t,"Masonry",{enumerable:!0,get:function(){return f.Masonry}});var d=n(498);Object.defineProperty(t,"MultiGrid",{enumerable:!0,get:function(){return d.MultiGrid}});var p=n(500);Object.defineProperty(t,"ScrollSync",{enumerable:!0,get:function(){return p.ScrollSync}});var h=n(503);Object.defineProperty(t,"createTableMultiSort",{enumerable:!0,get:function(){return h.createMultiSort}}),Object.defineProperty(t,"defaultTableCellDataGetter",{enumerable:!0,get:function(){return h.defaultCellDataGetter}}),Object.defineProperty(t,"defaultTableCellRenderer",{enumerable:!0,get:function(){return h.defaultCellRenderer}}),Object.defineProperty(t,"defaultTableHeaderRenderer",{enumerable:!0,get:function(){return h.defaultHeaderRenderer}}),Object.defineProperty(t,"defaultTableHeaderRowRenderer",{enumerable:!0,get:function(){return h.defaultHeaderRowRenderer}}),Object.defineProperty(t,"defaultTableRowRenderer",{enumerable:!0,get:function(){return h.defaultRowRenderer}}),Object.defineProperty(t,"Table",{enumerable:!0,get:function(){return h.Table}}),Object.defineProperty(t,"Column",{enumerable:!0,get:function(){return h.Column}}),Object.defineProperty(t,"SortDirection",{enumerable:!0,get:function(){return h.SortDirection}}),Object.defineProperty(t,"SortIndicator",{enumerable:!0,get:function(){return h.SortIndicator}});var v=n(504);Object.defineProperty(t,"WindowScroller",{enumerable:!0,get:function(){return v.WindowScroller}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;n="undefined"!=typeof window?window:"undefined"!=typeof self?self:{};var r=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.oRequestAnimationFrame||n.msRequestAnimationFrame||function(e){return n.setTimeout(e,1e3/60)},o=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.mozCancelAnimationFrame||n.oCancelAnimationFrame||n.msCancelAnimationFrame||function(e){n.clearTimeout(e)};t.raf=r,t.caf=o},function(e,t){"use strict";function n(e){var t=e.align,n=void 0===t?"auto":t,r=e.cellOffset,o=e.cellSize,i=e.containerSize,a=e.currentOffset,s=r,u=s-i+o;switch(n){case"start":return s;case"end":return u;case"center":return s-(i-o)/2;default:return Math.max(u,Math.min(s,a))}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e,t,n,r){for(var o=n+1;t<=n;){var i=t+n>>>1,a=e[i];a>=r?(o=i,n=i-1):t=i+1}return o}function r(e,t,n,r,o){for(var i=n+1;t<=n;){var a=t+n>>>1,s=e[a];o(s,r)>=0?(i=a,n=a-1):t=a+1}return i}function o(e,t,o,i,a){return"function"==typeof o?r(e,void 0===i?0:0|i,void 0===a?e.length-1:0|a,t,o):n(e,void 0===o?0:0|o,void 0===i?e.length-1:0|i,t)}function i(e,t,n,r){for(var o=n+1;t<=n;){var i=t+n>>>1,a=e[i];a>r?(o=i,n=i-1):t=i+1}return o}function a(e,t,n,r,o){for(var i=n+1;t<=n;){var a=t+n>>>1,s=e[a];o(s,r)>0?(i=a,n=a-1):t=a+1}return i}function s(e,t,n,r,o){return"function"==typeof n?a(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):i(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)}function u(e,t,n,r){for(var o=t-1;t<=n;){var i=t+n>>>1,a=e[i];a>>1,s=e[a];o(s,r)<0?(i=a,t=a+1):n=a-1}return i}function c(e,t,n,r,o){return"function"==typeof n?l(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):u(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)}function f(e,t,n,r){for(var o=t-1;t<=n;){var i=t+n>>>1,a=e[i];a<=r?(o=i,t=i+1):n=i-1}return o}function d(e,t,n,r,o){for(var i=t-1;t<=n;){var a=t+n>>>1,s=e[a];o(s,r)<=0?(i=a,t=a+1):n=a-1}return i}function p(e,t,n,r,o){return"function"==typeof n?d(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):f(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)}function h(e,t,n,r){for(;t<=n;){var o=t+n>>>1,i=e[o];if(i===r)return o;i<=r?t=o+1:n=o-1}return-1}function v(e,t,n,r,o){for(;t<=n;){var i=t+n>>>1,a=e[i],s=o(a,r);if(0===s)return i;s<=0?t=i+1:n=i-1}return-1}function g(e,t,n,r,o){return"function"==typeof n?v(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):h(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default={ge:o,gt:s,lt:c,le:p,eq:g}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,o){this.mid=e,this.left=t,this.right=n,this.leftPoints=r,this.rightPoints=o,this.count=(t?t.count:0)+(n?n.count:0)+r.length}function i(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function a(e,t){var n=v(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function s(e,t){var n=e.intervals([]);n.push(t),a(e,n)}function u(e,t){var n=e.intervals([]),r=n.indexOf(t);return r<0?w:(n.splice(r,1),a(e,n),_)}function l(e,t,n){for(var r=0;r=0&&e[r][1]>=t;--r){var o=n(e[r]);if(o)return o}}function f(e,t){for(var n=0;n>1],i=[],a=[],s=[],n=0;n3*(t+1)?s(this,e):this.left.insert(e):this.left=v([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?s(this,e):this.right.insert(e):this.right=v([e]);else{var n=b.default.ge(this.leftPoints,e,p),r=b.default.ge(this.rightPoints,e,h);this.leftPoints.splice(n,0,e),this.rightPoints.splice(r,0,e)}},C.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1))return u(this,e);var r=this.left.remove(e);return r===x?(this.left=null,this.count-=1,_):(r===_&&(this.count-=1),r)}if(e[0]>this.mid){if(!this.right)return w;var o=this.left?this.left.count:0;if(4*o>3*(t-1))return u(this,e);var r=this.right.remove(e); +return r===x?(this.right=null,this.count-=1,_):(r===_&&(this.count-=1),r)}if(1===this.count)return this.leftPoints[0]===e?x:w;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var a=this,s=this.left;s.right;)a=s,s=s.right;if(a===this)s.right=this.right;else{var l=this.left,r=this.right;a.count-=s.count,a.right=s.left,s.left=l,s.right=r}i(this,s),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?i(this,this.left):i(this,this.right);return _}for(var l=b.default.ge(this.leftPoints,e,p);lthis.mid){if(this.right){var n=this.right.queryPoint(e,t);if(n)return n}return c(this.rightPoints,e,t)}return f(this.leftPoints,t)},C.queryInterval=function(e,t,n){if(ethis.mid&&this.right){var r=this.right.queryInterval(e,t,n);if(r)return r}return tthis.mid?c(this.rightPoints,e,n):f(this.leftPoints,n)};var S=g.prototype;S.insert=function(e){this.root?this.root.insert(e):this.root=new o(e[0],null,null,[e],[e])},S.remove=function(e){if(this.root){var t=this.root.remove(e);return t===x&&(this.root=null),t!==w}return!1},S.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},S.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)},Object.defineProperty(S,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(S,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}})}]); \ No newline at end of file