@cdc/waffle-chart 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +33 -0
- package/dist/cdcwafflechart.js +6 -0
- package/examples/example-config.json +10 -0
- package/examples/example-data-2.json +32 -0
- package/examples/example-data.json +90 -0
- package/package.json +43 -0
- package/src/CdcWaffleChart.tsx +502 -0
- package/src/components/EditorPanel.js +510 -0
- package/src/context.js +5 -0
- package/src/data/initial-state.js +27 -0
- package/src/index.html +11 -0
- package/src/index.js +16 -0
- package/src/scss/editor-panel.scss +710 -0
- package/src/scss/main.scss +52 -0
- package/src/scss/responsive.scss +1 -0
- package/src/scss/variables.scss +29 -0
- package/src/scss/waffle-chart.scss +127 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# @cdc/waffle-chart
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@cdc/waffle-chart)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
`<CdcWaffleChart />` is a React component produced by the CDC for highlighting/displaying a single piece of data in a card format. This package is part of the larger [CDC Open Visualization](https://github.com/CDCgov/cdc-open-viz) project.
|
|
7
|
+
|
|
8
|
+
### Installation and Usage
|
|
9
|
+
|
|
10
|
+
1. Install the package in your React project `npm install @cdc/waffle-chart`
|
|
11
|
+
2. Import the component and begin using in your code.
|
|
12
|
+
```JSX
|
|
13
|
+
import CdcWaffleChart from '@cdc/waffle-chart'
|
|
14
|
+
|
|
15
|
+
function App() {
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<div className="App">
|
|
19
|
+
<CdcWaffleChart config={configObj} />
|
|
20
|
+
</div>
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export default App;
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Note, you must pass in a configuration object. Configuration objects can be created with the [Editor package](https://github.com/CDCgov/cdc-open-viz/tree/main/packages/editor).
|
|
28
|
+
|
|
29
|
+
### Properties
|
|
30
|
+
|
|
31
|
+
| Property | Type | Description |
|
|
32
|
+
|-------------------|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
33
|
+
| config | String | A JavaScript object with the configuration for the waffle chart. Pass either this or the configUrl property to setup your chart. |
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.CdcWaffleChart=t(require("react")):e.CdcWaffleChart=t(e.react)}(self,(function(e){return function(){var t={13:function(e,t,n){"use strict";n.r(t);var r=n(609),o=n.n(r)()(!1);o.push([e.id,"/*!\n * Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)\n * Copyright 2015 Daniel Cardoso <@DanielCardoso>\n * Licensed under MIT\n */@keyframes ball-beat{50%{opacity:.2;-webkit-transform:scale(0.75);-moz-transform:scale(0.75);-o-transform:scale(0.75);transform:scale(0.75)}100%{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}.cdc-open-viz-module .loading{text-align:center;position:absolute;z-index:3;background:rgba(255,255,255,.5);left:0;right:0;bottom:0;top:0;min-height:30%}.cdc-open-viz-module .loading span{display:block;margin-bottom:1em;font-size:1.3em}.cdc-open-viz-module .loading .la-ball-beat{position:relative;box-sizing:border-box;margin:0 auto;transform:scale(1.3);font-size:0;color:#777;display:flex;justify-content:center;align-items:center;width:108px;height:36px}.cdc-open-viz-module .loading .la-ball-beat.sm,.cdc-open-viz-module .loading .la-ball-beat.xs,.cdc-open-viz-module .loading .la-ball-beat.xxs{transform:scale(0.7)}.cdc-open-viz-module .loading .la-ball-beat div+div{margin-left:10px}.cdc-open-viz-module .loading .la-ball-beat>div{position:relative;box-sizing:border-box;width:20px;height:20px;border-radius:100%;animation:ball-beat .7s -0.15s infinite linear;display:inline-block;background-color:currentColor;border:0 solid currentColor}.cdc-open-viz-module .loading .la-ball-beat>div:nth-child(2n-1){animation-delay:-0.5s}",""]),t.default=o},942:function(e,t,n){"use strict";n.r(t);var r=n(609),o=n.n(r),a=n(991),i=n.n(a),c=n(417),l=n(530),d=n(613),u=n(29),s=o()(!1),p=i()(c.Z),f=i()(l.Z),m=i()(d.Z),h=i()(u.Z);s.push([e.id,".cdc-open-viz-module{margin:0;font:1em/1.6 system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Droid Sans,Helvetica Neue,Fira Sans,sans-serif;font-weight:400;font-style:normal;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#111}.cdc-open-viz-module div,.cdc-open-viz-module span,.cdc-open-viz-module applet,.cdc-open-viz-module object,.cdc-open-viz-module iframe,.cdc-open-viz-module h1,.cdc-open-viz-module h2,.cdc-open-viz-module h3,.cdc-open-viz-module h4,.cdc-open-viz-module h5,.cdc-open-viz-module h6,.cdc-open-viz-module p,.cdc-open-viz-module blockquote,.cdc-open-viz-module pre,.cdc-open-viz-module a,.cdc-open-viz-module abbr,.cdc-open-viz-module acronym,.cdc-open-viz-module address,.cdc-open-viz-module big,.cdc-open-viz-module cite,.cdc-open-viz-module code,.cdc-open-viz-module del,.cdc-open-viz-module dfn,.cdc-open-viz-module em,.cdc-open-viz-module img,.cdc-open-viz-module ins,.cdc-open-viz-module kbd,.cdc-open-viz-module q,.cdc-open-viz-module s,.cdc-open-viz-module samp,.cdc-open-viz-module small,.cdc-open-viz-module strike,.cdc-open-viz-module strong,.cdc-open-viz-module sub,.cdc-open-viz-module sup,.cdc-open-viz-module tt,.cdc-open-viz-module var,.cdc-open-viz-module b,.cdc-open-viz-module u,.cdc-open-viz-module i,.cdc-open-viz-module center,.cdc-open-viz-module dl,.cdc-open-viz-module dt,.cdc-open-viz-module dd,.cdc-open-viz-module ol,.cdc-open-viz-module ul,.cdc-open-viz-module li,.cdc-open-viz-module fieldset,.cdc-open-viz-module form,.cdc-open-viz-module label,.cdc-open-viz-module legend,.cdc-open-viz-module table,.cdc-open-viz-module caption,.cdc-open-viz-module tbody,.cdc-open-viz-module tfoot,.cdc-open-viz-module thead,.cdc-open-viz-module tr,.cdc-open-viz-module th,.cdc-open-viz-module td,.cdc-open-viz-module article,.cdc-open-viz-module aside,.cdc-open-viz-module canvas,.cdc-open-viz-module details,.cdc-open-viz-module embed,.cdc-open-viz-module figure,.cdc-open-viz-module figcaption,.cdc-open-viz-module footer,.cdc-open-viz-module header,.cdc-open-viz-module hgroup,.cdc-open-viz-module menu,.cdc-open-viz-module nav,.cdc-open-viz-module output,.cdc-open-viz-module ruby,.cdc-open-viz-module section,.cdc-open-viz-module summary,.cdc-open-viz-module time,.cdc-open-viz-module mark,.cdc-open-viz-module audio,.cdc-open-viz-module video{margin:0;padding:0;border:0;font-family:sans-serif;font-weight:normal;vertical-align:baseline}.cdc-open-viz-module button{border:0;cursor:pointer}.cdc-open-viz-module button:focus{outline:0}.cdc-open-viz-module *{box-sizing:border-box}.cdc-open-viz-module sub,.cdc-open-viz-module sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.cdc-open-viz-module sup{top:-0.5em}.cdc-open-viz-module sub{bottom:-0.25em}.cdc-open-viz-module{position:relative;color:#333;font-size:14px !important;line-height:1.4}.cdc-open-viz-module.md,.cdc-open-viz-module.lg{font-size:16px !important}.cdc-open-viz-module .collapsed+.table-container{border-bottom:none}.cdc-open-viz-module .table-container{overflow-x:auto;border-right:1px solid #c7c7c7;border-left:1px solid #c7c7c7;border-bottom:1px solid #c7c7c7}.cdc-open-viz-module div.data-table-heading{background:rgba(0,0,0,.05);padding:.5em .7em;border:#c7c7c7 1px solid;border-bottom:0;cursor:pointer;background-image:url("+p+");background-size:15px 15px;background-position:right .7em center;background-repeat:no-repeat}.cdc-open-viz-module div.data-table-heading:focus{z-index:2;position:relative}.cdc-open-viz-module div.data-table-heading.collapsed{background-image:url("+f+");background-size:15px 15px;background-position:right .7em center;background-repeat:no-repeat;border-bottom:#c7c7c7 1px solid}.cdc-open-viz-module table.data-table{width:100%;background:#fff;position:relative;border:none;overflow-x:auto;border-collapse:collapse;overflow:auto;appearance:none}.cdc-open-viz-module table.data-table *{box-sizing:border-box}.cdc-open-viz-module table.data-table thead{user-select:none;-moz-user-select:none;user-select:none}.cdc-open-viz-module table.data-table thead tr{background:none}.cdc-open-viz-module table.data-table thead{color:#fff;background-color:#565656}.cdc-open-viz-module table.data-table thead .resizer{cursor:e-resize;width:10px;position:absolute;top:0;bottom:0;right:0;touch-action:none}.cdc-open-viz-module table.data-table thead tr{text-align:left}.cdc-open-viz-module table.data-table thead th,.cdc-open-viz-module table.data-table thead td{padding:.5em 1.3em .5em .7em;line-height:normal;position:relative;text-align:left;cursor:pointer;border-right:1px solid #c7c7c7 !important}.cdc-open-viz-module table.data-table thead th svg,.cdc-open-viz-module table.data-table thead td svg{margin-left:1rem}.cdc-open-viz-module table.data-table thead th.sort{background-color:#3d3d3d;background-repeat:no-repeat;background-position:right .5em center;background-size:10px 5px}.cdc-open-viz-module table.data-table thead th.sort-asc,.cdc-open-viz-module table.data-table thead td.sort-asc{background-image:url("+m+")}.cdc-open-viz-module table.data-table thead th.sort-desc,.cdc-open-viz-module table.data-table thead td.sort-desc{background-image:url("+h+')}.cdc-open-viz-module table.data-table thead th:last-child,.cdc-open-viz-module table.data-table thead td:last-child{border-right:0}.cdc-open-viz-module table.data-table tbody tr{width:100%}.cdc-open-viz-module table.data-table tbody tr:hover{background:rgba(0,0,0,.05)}.cdc-open-viz-module table.data-table tr{border-bottom:solid 1px #e5e5e5;min-width:100%}.cdc-open-viz-module table.data-table tr:last-child{border-bottom:0}.cdc-open-viz-module table.data-table td{padding:.3em .7em;border-right:1px solid rgba(0,0,0,.1)}.cdc-open-viz-module table.data-table th,.cdc-open-viz-module table.data-table td{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.cdc-open-viz-module table.data-table th:last-child,.cdc-open-viz-module table.data-table td:last-child{border-right:0 !important}.cdc-open-viz-module table.data-table th:first-child,.cdc-open-viz-module table.data-table td:first-child{flex-grow:1}.cdc-open-viz-module table.data-table td{position:relative}.cdc-open-viz-module table.data-table td a{padding:.3em .7em;position:absolute;top:0;bottom:0;right:0;left:0;display:block;color:inherit;text-decoration:none}.cdc-open-viz-module table.data-table td span.table-link{text-decoration:underline;cursor:pointer;color:#075290}.cdc-open-viz-module table.data-table td span.table-link svg{max-width:13px;vertical-align:baseline;margin-left:5px}.cdc-open-viz-module .no-data{position:relative}.cdc-open-viz-module .no-data .no-data-message{background:rgba(255,255,255,.5);top:0;left:0;right:0;bottom:0;position:absolute;text-align:center;display:flex;align-items:center;justify-content:center;z-index:7}.cdc-open-viz-module .no-data .no-data-message h3{font-size:1.3rem;font-weight:600;margin-bottom:.3rem}.cdc-open-viz-module .no-data tr:hover{background:#fff}.cdc-open-viz-module .no-data th,.cdc-open-viz-module .no-data td{width:50%}.cdc-open-viz-module .no-data th::before,.cdc-open-viz-module .no-data td::before{content:" "}.cdc-open-viz-module .data-table-pagination{margin:1rem 0;display:flex;align-items:center}.cdc-open-viz-module .data-table-pagination ul{list-style:none;margin:0 1rem 0 0;display:flex}.cdc-open-viz-module .data-table-pagination ul li+li{margin-left:.3rem}.cdc-open-viz-module .data-table-pagination ul button{background:#565656;padding:.6rem .8rem}.cdc-open-viz-module .data-table-pagination ul button:hover{background:#636363}.cdc-open-viz-module .data-table-pagination ul button.btn-next::before{content:" ";background-image:url('+m+');background-size:10px 5px;width:10px;height:5px;display:block;transform:rotate(90deg)}.cdc-open-viz-module .data-table-pagination ul button.btn-prev::before{content:" ";background-image:url('+m+');background-size:10px 5px;width:10px;height:5px;display:block;transform:rotate(-90deg)}.cdc-open-viz-module .data-table-pagination ul button[disabled]{background:#565656;opacity:.3;cursor:default}.cdc-open-viz-module .data-table-pagination ul button[disabled]:hover{background:#565656}.cdc-open-viz-module .btn-download{color:#fff;float:right;text-decoration:none;transition:.3s all;margin:1em 0}.cdc-open-viz-module .btn-download:hover{transition:.3s all}.cdc-open-viz-module strong{font-weight:600}.cdc-open-viz-module .subtext{margin-top:1em}.cdc-open-viz-module .error-box{background:#ffc2c2;display:flex;justify-content:space-between;padding:.3rem 1rem;font-size:.9rem}.cdc-open-viz-module .error-box strong{font-weight:600}.cdc-open-viz-module .error-box p{margin:0}.cdc-open-viz-module .error-box .dismiss-error{flex-shrink:0;font-size:.8rem;cursor:pointer}.cdc-open-viz-module .cdcdataviz-sr-only,.cdc-open-viz-module .cdcdataviz-sr-only-focusable:not(:focus){position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important;display:flex}.cdc-open-viz-module .inline-icon{width:1em !important;height:auto !important;font-size:1rem;color:inherit}@media all and (-ms-high-contrast: none){.cdc-open-viz-module .inline-icon{height:30px !important}}.cdc-open-viz-module .inline-icon path{fill:currentColor}.cdc-open-viz-module .btn{background:#005eaa;color:#fff;border:0;padding:.4em .8em;font-size:1em;display:block;border-radius:.3em;transition:.1s background-color;cursor:pointer}.cdc-open-viz-module .btn.full-width{width:100%}.cdc-open-viz-module .btn:hover{transition:.1s background-color}.cdc-open-viz-module .btn.secondary{font-size:.8em;padding:.3em 1em;background:rgba(0,0,0,.3);display:inline-block;margin-bottom:1em}.cdc-open-viz-module .btn.secondary:hover{background:rgba(0,0,0,.5)}.cdc-open-viz-module .btn.danger{background-color:#d8000c;color:#fff}.cdc-open-viz-module .btn.danger:hover{background-color:#bf000b}.cdc-open-viz-module .btn:hover{transition:.1s all;background:#006cc4}.cdc-open-viz-module .btn svg{width:16px;height:16px;position:relative;top:2px;margin-left:5px}.cdc-open-viz-module input[type=text],.cdc-open-viz-module input[type=date],.cdc-open-viz-module input[role=combobox],.cdc-open-viz-module input[type=number],.cdc-open-viz-module input[type=search],.cdc-open-viz-module textarea{padding:.5em .5em;font-size:1em;font-family:sans-serif;border:rgba(0,0,0,.3) 1px solid !important}.cdc-open-viz-module input[type=text]:focus,.cdc-open-viz-module input[type=date]:focus,.cdc-open-viz-module input[role=combobox]:focus,.cdc-open-viz-module input[type=number]:focus,.cdc-open-viz-module input[type=search]:focus,.cdc-open-viz-module textarea:focus{border:rgba(0,0,0,.7) 1px solid !important;outline:0}.cdc-open-viz-module textarea{min-height:140px}.cdc-open-viz-module select{width:100%;font-size:1em;text-transform:none;border:rgba(0,0,0,.3) 1px solid !important}.cdc-open-viz-module .input-group-text{border-top-left-radius:0;border-bottom-left-radius:0}.cdc-open-viz-module .guidance-link{margin:2em 0 1em;padding:.75em 1em;display:flex;text-decoration:none;color:#444;border:#c7c7c7 1px solid;position:relative;transition:.2s all;font-size:1em}.cdc-open-viz-module .guidance-link:before{content:" ";width:5px;background:#005eaa;left:-1px;top:-1px;bottom:-1px;position:absolute}.cdc-open-viz-module .guidance-link:hover{background:#f2f2f2;transition:.2s all;color:#444}.cdc-open-viz-module .guidance-link>div{font-size:.9em}.cdc-open-viz-module .guidance-link svg{width:60px;color:#005eaa;margin-right:1rem}.cdc-open-viz-module .guidance-link svg path{fill:currentColor}.cdc-open-viz-module .guidance-link h3{font-weight:600;font-size:1.2rem}div.dashboard-title.theme-purple,div.chart-title.theme-purple,div.map-title.theme-purple,.color-palette li.theme-purple,.btn.theme-purple{background:#712177;border-bottom-color:#b890bb}div.dashboard-title.theme-brown,div.chart-title.theme-brown,div.map-title.theme-brown,.color-palette li.theme-brown,.btn.theme-brown{background:#705043;border-bottom-color:#ad907b}div.dashboard-title.theme-teal,div.chart-title.theme-teal,div.map-title.theme-teal,.color-palette li.theme-teal,.btn.theme-teal{background:#00695c;border-bottom-color:#4ebaaa}div.dashboard-title.theme-pink,div.chart-title.theme-pink,div.map-title.theme-pink,.color-palette li.theme-pink,.btn.theme-pink{background:#af4448;border-bottom-color:#e57373}div.dashboard-title.theme-orange,div.chart-title.theme-orange,div.map-title.theme-orange,.color-palette li.theme-orange,.btn.theme-orange{background:#bb4d00;border-bottom-color:#ffad42}div.dashboard-title.theme-slate,div.chart-title.theme-slate,div.map-title.theme-slate,.color-palette li.theme-slate,.btn.theme-slate{background:#29434e;border-bottom-color:#7e9ba5}div.dashboard-title.theme-indigo,div.chart-title.theme-indigo,div.map-title.theme-indigo,.color-palette li.theme-indigo,.btn.theme-indigo{background:#26418f;border-bottom-color:#92a6dd}div.dashboard-title.theme-cyan,div.chart-title.theme-cyan,div.map-title.theme-cyan,.color-palette li.theme-cyan,.btn.theme-cyan{background:#007b91;border-bottom-color:#65b0bd}div.dashboard-title.theme-green,div.chart-title.theme-green,div.map-title.theme-green,.color-palette li.theme-green,.btn.theme-green{background:#4b830d;border-bottom-color:#84bc49}div.dashboard-title.theme-amber,div.chart-title.theme-amber,div.map-title.theme-amber,.color-palette li.theme-amber,.btn.theme-amber{background:#fbab18;border-bottom-color:#ffd54f}div.dashboard-title.theme-blue,div.chart-title.theme-blue,div.map-title.theme-blue,.color-palette li.theme-blue,.btn.theme-blue{background:#005eaa;border-bottom-color:#88c3ea}.cdc-waffle-chart{position:relative;border:solid 1px #ccc;border-top:none;box-shadow:rgba(0,0,0,.2) 3px 6px 10px;background:#f2f2f2;overflow:hidden}.is-editor .cdc-waffle-chart{margin:3em auto 0;max-width:35em}.cdc-waffle-chart .cdc-waffle-chart__inner-container{display:flex;flex-wrap:wrap;padding:1em 1em 0;justify-content:flex-start}.cdc-waffle-chart .cdc-waffle-chart__inner-container.cdc-waffle-chart--verical{align-items:center;flex-flow:column}.cdc-waffle-chart .cdc-waffle-chart__inner-container.cdc-waffle-chart--verical .cdc-waffle-chart__chart{padding-right:0}.cdc-waffle-chart .cdc-waffle-chart__inner-container.cdc-waffle-chart--verical .cdc-waffle-chart__data{text-align:center}.cdc-waffle-chart .cdc-waffle-chart__chart{padding-right:1rem;margin-bottom:1rem;box-sizing:content-box}.cdc-waffle-chart .cdc-waffle-chart__data{flex:1 1 0;min-width:175px;margin-bottom:1rem}.cdc-waffle-chart .cdc-waffle-chart__subtext{font-style:italic;font-weight:bold;font-size:.75em;padding:0 1em 1em}.cdc-waffle-chart .cdc-waffle-chart__header{width:100%;padding:.6em .8em;margin:0 !important;border-bottom-width:3px;border-bottom-style:solid;font-size:1.1em;color:#fff}.cdc-waffle-chart.theme-blue .cdc-waffle-chart__header{background-color:#005eaa}.cdc-waffle-chart.theme-purple .cdc-waffle-chart__header{background-color:#712177}.cdc-waffle-chart.theme-brown .cdc-waffle-chart__header{background-color:#705043}.cdc-waffle-chart.theme-teal .cdc-waffle-chart__header{background-color:#00695c}.cdc-waffle-chart.theme-pink .cdc-waffle-chart__header{background-color:#af4448}.cdc-waffle-chart.theme-orange .cdc-waffle-chart__header{background-color:#bb4d00}.cdc-waffle-chart.theme-slate .cdc-waffle-chart__header{background-color:#29434e}.cdc-waffle-chart.theme-indigo .cdc-waffle-chart__header{background-color:#26418f}.cdc-waffle-chart.theme-cyan .cdc-waffle-chart__header{background-color:#006778}.cdc-waffle-chart.theme-green .cdc-waffle-chart__header{background-color:#4b830d}.cdc-waffle-chart.theme-amber .cdc-waffle-chart__header{background-color:#fbab18}.cdc-waffle-chart.theme-blue .cdc-waffle-chart__header{border-color:#88c3ea}.cdc-waffle-chart.theme-purple .cdc-waffle-chart__header{border-color:#b890bb}.cdc-waffle-chart.theme-brown .cdc-waffle-chart__header{border-color:#ad907b}.cdc-waffle-chart.theme-teal .cdc-waffle-chart__header{border-color:#4ebaaa}.cdc-waffle-chart.theme-pink .cdc-waffle-chart__header{border-color:#e57373}.cdc-waffle-chart.theme-orange .cdc-waffle-chart__header{border-color:#ffad42}.cdc-waffle-chart.theme-slate .cdc-waffle-chart__header{border-color:#7e9ba5}.cdc-waffle-chart.theme-indigo .cdc-waffle-chart__header{border-color:#92a6dd}.cdc-waffle-chart.theme-cyan .cdc-waffle-chart__header{border-color:#65b0bd}.cdc-waffle-chart.theme-green .cdc-waffle-chart__header{border-color:#84bc49}.cdc-waffle-chart.theme-amber .cdc-waffle-chart__header{border-color:#ffd54f}.cdc-waffle-chart.theme-blue .cdc-waffle-chart__data{color:#005eaa}.cdc-waffle-chart.theme-purple .cdc-waffle-chart__data{color:#712177}.cdc-waffle-chart.theme-brown .cdc-waffle-chart__data{color:#705043}.cdc-waffle-chart.theme-teal .cdc-waffle-chart__data{color:#00695c}.cdc-waffle-chart.theme-pink .cdc-waffle-chart__data{color:#af4448}.cdc-waffle-chart.theme-orange .cdc-waffle-chart__data{color:#bb4d00}.cdc-waffle-chart.theme-slate .cdc-waffle-chart__data{color:#29434e}.cdc-waffle-chart.theme-indigo .cdc-waffle-chart__data{color:#26418f}.cdc-waffle-chart.theme-cyan .cdc-waffle-chart__data{color:#006778}.cdc-waffle-chart.theme-green .cdc-waffle-chart__data{color:#4b830d}.cdc-waffle-chart.theme-amber .cdc-waffle-chart__data{color:#fbab18}.cdc-waffle-chart.font-small .cdc-waffle-chart__data .cdc-waffle-chart__data--primary{font-size:35px}.cdc-waffle-chart.font-small .cdc-waffle-chart__data .cdc-waffle-chart__data--text{font-size:14px}.cdc-waffle-chart.font-medium .cdc-waffle-chart__data .cdc-waffle-chart__data--primary{font-size:50px}.cdc-waffle-chart.font-medium .cdc-waffle-chart__data .cdc-waffle-chart__data--text{font-size:18px}.cdc-waffle-chart.font-large .cdc-waffle-chart__data .cdc-waffle-chart__data--primary{font-size:80px}.cdc-waffle-chart.font-large .cdc-waffle-chart__data .cdc-waffle-chart__data--text{font-size:20px}.cdc-waffle-chart__data .cdc-waffle-chart__data--primary{font-size:70px;font-weight:400;line-height:1em}.cdc-waffle-chart__data .cdc-waffle-chart__data--text{font-weight:300;line-height:1.25em}.cdc-waffle-chart__node{transition:all 300ms cubic-bezier(0.16, 1, 0.3, 1)}.cdc-open-viz-module.type-waffle-chart .spacing-wrapper{padding-left:350px}.cdc-open-viz-module.type-waffle-chart .editor-panel.hidden+.spacing-wrapper{padding-left:0}.cdc-open-viz-module.type-waffle-chart .editor-panel{display:flex;flex-direction:column;position:fixed;top:0;bottom:0;left:0;width:350px;background:#fff;overflow-x:hidden;overflow-y:auto;z-index:8}.cdc-open-viz-module.type-waffle-chart .editor-panel .heading{font-size:1.2em}.cdc-open-viz-module.type-waffle-chart .editor-panel .two-col-inputs{display:flex;margin-top:1em;justify-content:space-between}.cdc-open-viz-module.type-waffle-chart .editor-panel .two-col-inputs>label{width:48%;margin-top:0 !important}.cdc-open-viz-module.type-waffle-chart .editor-panel .divider-heading{display:block;font-size:1em;margin-top:1em}.cdc-open-viz-module.type-waffle-chart .editor-panel .series-list{list-style:none;border:#c7c7c7 1px solid}.cdc-open-viz-module.type-waffle-chart .editor-panel .series-list:empty{border:none !important}.cdc-open-viz-module.type-waffle-chart .editor-panel .series-list li{padding:.3em .5em;display:flex;align-items:center;justify-content:space-between;font-size:.9em}.cdc-open-viz-module.type-waffle-chart .editor-panel .series-list li:hover{background-color:#f2f2f2}.cdc-open-viz-module.type-waffle-chart .editor-panel .series-list li span{font-size:.8em;color:red;cursor:pointer}.cdc-open-viz-module.type-waffle-chart .editor-panel .series-list li+li{border-top:#c7c7c7 1px solid}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__heading{background:#f2f2f2}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__item select{text-transform:capitalize}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__item .number-narrow{min-width:auto;width:75px}.cdc-open-viz-module.type-waffle-chart .editor-panel .form-container{border-right:#c7c7c7 1px solid;flex-grow:1}.cdc-open-viz-module.type-waffle-chart .editor-panel .guidance-link{margin:2em 1em 0;padding:.75em 1em}.cdc-open-viz-module.type-waffle-chart .editor-panel .guidance-link svg{width:60px;color:#005eaa;margin-right:1rem;height:60px}.cdc-open-viz-module.type-waffle-chart .editor-panel .guidance-link svg path{fill:currentColor}.cdc-open-viz-module.type-waffle-chart .editor-panel .warning{color:#d8000c;background-color:#ffd2d2;border:#d8000c 1px solid;padding:.75em 1em;margin:1em 0;font-size:.8em;border-radius:.4em}.cdc-open-viz-module.type-waffle-chart .editor-panel .warning strong{font-weight:600;display:block}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__button{cursor:pointer;font-size:1em;padding:.3em 1em;width:100%;text-align:left;position:relative;border-bottom:1px solid rgba(0,0,0,.2)}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__button::before{display:inline-block;content:"";height:7px;width:7px;margin-right:1em;border-bottom:2px solid currentColor;border-right:2px solid currentColor;right:0;position:absolute;top:50%;transform:rotate(-45deg) translateY(-50%);transition:.1s all}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__button[aria-expanded=true]::before,.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__button[aria-selected=true]::before{transform:rotate(45deg) translateY(-50%);margin-right:1.3em;transition:.1s all}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__panel{border-bottom:1px solid rgba(0,0,0,.2);padding:1em 1.25em 2em;animation:fadein .2s ease-in}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__panel:first-child{margin-top:0}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__panel h5{font-size:.8em}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__panel .accordion__panel-section{padding:16px;border:1px solid #c4c4c4;border-radius:8px;margin-top:8px;margin-bottom:24px}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__panel .accordion__panel-row{display:flex;justify-content:flex-start;margin-left:-4px;margin-right:-4px}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__panel .accordion__panel-col{flex:1 1 0;padding-left:4px;padding-right:4px}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__panel .accordion__small-inputs input[type=text]{display:block;width:100%;height:22px;min-width:unset !important;padding-top:0;padding-bottom:0;font-size:1.1em;line-height:1em;box-sizing:border-box}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__panel .accordion__panel-label,.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__panel .accordion__panel-label--muted,.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__panel .accordion__panel-label--inline{font-size:14px;text-transform:unset;font-weight:normal;line-height:16px;user-select:none}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__panel .accordion__panel-label--inline{text-align:right;margin-right:8px}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__panel .accordion__panel-label--muted{color:#6f6f6f}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__panel .d-flex{display:flex}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__panel .align-center{align-items:center}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__panel .justify-end{justify-content:flex-end}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__panel .accordion__panel-checkbox{display:block;width:18px;height:18px;border:1px solid #c4c4c4;cursor:pointer}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__panel .accordion__panel-checkbox.checked::after{content:"L";display:block;position:relative;top:-7px;left:-3px;transform:scaleX(-1) rotate(-35deg);font-size:16px;font-weight:bold;color:#025eaa;pointer-events:none}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__panel .accordion__input-error{color:#d8000c;border:#d8000c 1px solid}.cdc-open-viz-module.type-waffle-chart .editor-panel .accordion__panel .accordion__panel-error{color:#d8000c;background-color:#ffd2d2;border:#d8000c 1px solid;margin-top:12px;padding:4px 8px;line-height:1.2em;font-size:14px;border-radius:4px}.cdc-open-viz-module.type-waffle-chart .editor-panel .advanced{padding:0 1em 1em;text-align:left}.cdc-open-viz-module.type-waffle-chart .editor-panel .advanced p{font-size:.8rem}.cdc-open-viz-module.type-waffle-chart .editor-panel .advanced .advanced-toggle-link{padding-top:1em;display:block;text-align:left;cursor:pointer;color:rgba(0,0,0,.5);text-decoration:underline}.cdc-open-viz-module.type-waffle-chart .editor-panel .advanced .advanced-toggle-link span{text-decoration:none;display:inline-block;font-family:monospace;padding-right:5px}.cdc-open-viz-module.type-waffle-chart .editor-panel .advanced .advanced-toggle-link:hover{color:rgba(0,0,0,.7)}.cdc-open-viz-module.type-waffle-chart .editor-panel .advanced textarea{height:400px;width:100%;font-size:.9em;padding:.5em;font-family:monospace;box-sizing:border-box}@keyframes fadein{0%{opacity:0}100%{opacity:1}}.cdc-open-viz-module.type-waffle-chart .editor-panel h2{background:#565656;color:#fff;font-size:1.1em;padding:.6em 1em;position:relative;border-bottom:#565656 3px solid;z-index:3}.cdc-open-viz-module.type-waffle-chart .editor-panel label{text-transform:uppercase;display:block;font-size:.8em;font-weight:600}.cdc-open-viz-module.type-waffle-chart .editor-panel label:not(:first-child){margin-top:1em}.cdc-open-viz-module.type-waffle-chart .editor-panel label span.edit-label{margin-bottom:.3em;display:block}.cdc-open-viz-module.type-waffle-chart .editor-panel label span.column-heading{font-size:1em}.cdc-open-viz-module.type-waffle-chart .editor-panel label.checkbox{display:flex}.cdc-open-viz-module.type-waffle-chart .editor-panel label.checkbox span{display:inline}.cdc-open-viz-module.type-waffle-chart .editor-panel label.checkbox input{margin-left:0;width:inherit;display:inline}.cdc-open-viz-module.type-waffle-chart .editor-panel input[type=text],.cdc-open-viz-module.type-waffle-chart .editor-panel input[role=combobox],.cdc-open-viz-module.type-waffle-chart .editor-panel input[type=number],.cdc-open-viz-module.type-waffle-chart .editor-panel textarea{width:100%;min-width:100%;max-width:100%}.cdc-open-viz-module.type-waffle-chart .editor-panel textarea{min-height:140px}.cdc-open-viz-module.type-waffle-chart .editor-panel .color-palette{display:flex;max-width:100%;padding:0;margin:.5em 0 0 0;list-style:none;flex-wrap:wrap}.cdc-open-viz-module.type-waffle-chart .editor-panel .color-palette li{display:flex;width:21px;height:21px;border-radius:40px;margin-right:4px;margin-bottom:10px;overflow:hidden;cursor:pointer;position:relative}.cdc-open-viz-module.type-waffle-chart .editor-panel .color-palette li .click-target{position:absolute;top:0;left:0;right:0;bottom:0}.cdc-open-viz-module.type-waffle-chart .editor-panel .color-palette li.selected{border:rgba(0,0,0,.8) 2px solid}.cdc-open-viz-module.type-waffle-chart .editor-panel .color-palette li span{width:33.3%}.header .cdc-open-viz-module.type-waffle-chart .editor-panel .color-palette li{width:21px;height:21px;border-radius:40px;margin-right:2.8px}.cdc-open-viz-module.type-waffle-chart .editor-panel fieldset{display:block}.cdc-open-viz-module.type-waffle-chart .editor-panel .primary-fieldset{padding:0;margin:0;border:0}.cdc-open-viz-module.type-waffle-chart .editor-panel ul.column-edit{list-style:none}.cdc-open-viz-module.type-waffle-chart .editor-panel ul.column-edit li{margin-top:1em}.cdc-open-viz-module.type-waffle-chart .editor-panel ul.column-edit .three-col{display:flex;justify-content:space-between}.cdc-open-viz-module.type-waffle-chart .editor-panel ul.column-edit .three-col>label{margin-top:0;width:30%;display:inline-block}.cdc-open-viz-module.type-waffle-chart .editor-panel ul.column-edit .three-col>label input[type=text],.cdc-open-viz-module.type-waffle-chart .editor-panel ul.column-edit .three-col>label input[type=number]{width:50px}.cdc-open-viz-module.type-waffle-chart .editor-panel.hidden{display:none}.cdc-open-viz-module.type-waffle-chart .editor-panel .remove-column{float:right;text-transform:uppercase;color:#c32b2b;font-size:.7em;line-height:1.6em;border-radius:5px;margin:0 auto;transition:.1s all;border:0;text-decoration:underline;outline:0;cursor:pointer;font-weight:bold}.cdc-open-viz-module.type-waffle-chart .editor-panel .edit-block{padding-left:1em;border-left:rgba(0,0,0,.2) 4px solid;transition:.2s all}.cdc-open-viz-module.type-waffle-chart .editor-panel .edit-block:not(:first-child){margin-top:2em}.cdc-open-viz-module.type-waffle-chart .editor-panel .edit-block input[type=text],.cdc-open-viz-module.type-waffle-chart .editor-panel .edit-block input[type=number]{font-size:1em}.cdc-open-viz-module.type-waffle-chart .editor-panel .edit-block label{margin-top:0}.cdc-open-viz-module.type-waffle-chart .editor-panel .edit-block label+label{margin-top:1em}.cdc-open-viz-module.type-waffle-chart .editor-panel .edit-block:hover{border-left:rgba(0,0,0,.7) 4px solid;transition:.2s all}.cdc-open-viz-module.type-waffle-chart .editor-panel span.subtext{display:block;color:rgba(0,0,0,.5);text-transform:none;font-weight:normal}.cdc-open-viz-module.type-waffle-chart .editor-panel .btn{margin-top:1em}.cdc-open-viz-module.type-waffle-chart .editor-panel .sort-list{list-style:none}.cdc-open-viz-module.type-waffle-chart .editor-panel .sort-list>li{margin-right:.3em;margin-bottom:.3em}.cdc-open-viz-module.type-waffle-chart .editor-panel .sort-list li>div{display:block;box-sizing:border-box;border:1px solid #d1d1d1;border-radius:2px;background:#f1f1f1;padding:.4em .6em;font-size:.8em;margin-bottom:.3em;cursor:move}.cdc-open-viz-module.type-waffle-chart .editor-panel .info{font-size:.8em;line-height:1.4em;font-style:italic;padding-top:10px}.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags__search{width:100%}.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags{position:relative;cursor:text}.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags input.react-tags__search-input{font-size:.8rem}.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags span{display:inline}.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags.is-focused{border-color:rgba(0,0,0,.7)}.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags__selected{display:inline}.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags__selected-tag{display:inline-block;box-sizing:border-box;border:1px solid #d1d1d1;border-radius:2px;background:#f1f1f1;padding:.4em .6em;font-size:.8em;margin-right:.3em;margin-bottom:.3em}.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags__selected-tag::after{content:"✕";color:#aaa;margin-left:8px}.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags__selected-tag:hover,.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags__selected-tag:focus{border-color:#b1b1b1}.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags__search{display:inline-block;max-width:100%}.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags__search input{max-width:100%;margin:0;outline:none;padding:.5em .3em;font-size:inherit;line-height:inherit}.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags__search input::-ms-clear{display:none}@media screen and (min-width: 30em){.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags__search{position:relative}}.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags__suggestions{position:absolute;top:100%;left:0;width:100%}.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags__suggestions ul{margin:4px -1px;padding:0;list-style:none;background:#fff;border:1px solid #d1d1d1;border-radius:2px;box-shadow:0 2px 6px rgba(0,0,0,.2)}.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags__suggestions li{border-bottom:1px solid #ddd;padding:6px 8px}.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags__suggestions li:hover{cursor:pointer;background:#eee}.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags__suggestions li.is-active{background:#b7cfe0}.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags__suggestions li.is-disabled{opacity:.5;cursor:auto}.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags__suggestions li mark{text-decoration:underline;background:none;font-weight:600}@media screen and (min-width: 30em){.cdc-open-viz-module.type-waffle-chart .editor-panel .react-tags__suggestions{width:240px}}.cdc-open-viz-module.type-waffle-chart .editor-toggle{background:#f2f2f2;border-radius:60px;color:#000;font-size:1em;border:0;position:fixed;z-index:100;transition:.1s background;cursor:pointer;width:25px;height:25px;left:307px;top:10px;box-shadow:rgba(0,0,0,.5) 0 1px 2px}.cdc-open-viz-module.type-waffle-chart .editor-toggle:before{top:43%;left:50%;transform:translate(-50%, -50%);position:absolute;content:"«"}.cdc-open-viz-module.type-waffle-chart .editor-toggle.collapsed{left:1em;margin-left:0}.cdc-open-viz-module.type-waffle-chart .editor-toggle.collapsed:before{content:"»"}.cdc-open-viz-module.type-waffle-chart .editor-toggle:hover{background:#fff}.cdc-open-viz-module.type-waffle-chart.md .editor-panel:not(.hidden)+.cdc-data-bite-inner-container,.cdc-open-viz-module.type-waffle-chart.lg .editor-panel:not(.hidden)+.cdc-data-bite-inner-container{padding-left:350px}.cdc-open-viz-module.type-waffle-chart.md .waiting,.cdc-open-viz-module.type-waffle-chart.lg .waiting{padding-left:350px}.cdc-open-viz-module.type-waffle-chart .loader{width:100%;text-align:center;display:inline-block;animation:spin 1s linear infinite}.cdc-open-viz-module.type-waffle-chart .loader::before{content:"↻"}.cdc-open-viz-module.type-waffle-chart.xs.font-small,.cdc-open-viz-module.type-waffle-chart.xxs.font-small{font-size:.8em}.cdc-open-viz-module.type-waffle-chart.xs.font-medium,.cdc-open-viz-module.type-waffle-chart.xxs.font-medium{font-size:.9em}.cdc-open-viz-module.type-waffle-chart.xs.font-large,.cdc-open-viz-module.type-waffle-chart.xxs.font-large{font-size:1em}.cdc-open-viz-module.type-waffle-chart.md.font-small,.cdc-open-viz-module.type-waffle-chart.lg.font-small{font-size:.9em}.cdc-open-viz-module.type-waffle-chart.md.font-large,.cdc-open-viz-module.type-waffle-chart.lg.font-large{font-size:1.1em}.cdc-open-viz-module.type-waffle-chart.lg.font-small{font-size:1em}.cdc-open-viz-module.type-waffle-chart.lg.font-medium{font-size:1.1em}.cdc-open-viz-module.type-waffle-chart.lg.font-large{font-size:1.2em}',""]),t.default=s},609:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(i=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(l," */")),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([o]).join("\n")}var i,c,l;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},991:function(e){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},291:function(e,t,n){var r=n(62),o=n(13);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:"head",singleton:!1};r(o,a);e.exports=o.locals||{}},874:function(e,t,n){var r=n(62),o=n(942);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:"head",singleton:!1};r(o,a);e.exports=o.locals||{}},62:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function c(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],o=0;o<e.length;o++){var a=e[o],l=t.base?a[0]+t.base:a[0],d=n[l]||0,u="".concat(l," ").concat(d);n[l]=d+1;var s=c(u),p={css:a[1],media:a[2],sourceMap:a[3]};-1!==s?(i[s].references++,i[s].updater(p)):i.push({identifier:u,updater:b(p,t),references:1}),r.push(u)}return r}function d(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var u,s=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function p(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=s(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function f(e,t,n){var r=n.css,o=n.media,a=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var m=null,h=0;function b(e,t){var n,r,o;if(t.singleton){var a=h++;n=m||(m=d(t)),r=p.bind(null,n,a,!1),o=p.bind(null,n,a,!0)}else n=d(t),r=f.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(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()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=c(n[r]);i[o].references--}for(var a=l(e,t),d=0;d<n.length;d++){var u=c(n[d]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}n=a}}}},613:function(e,t){"use strict";t.Z="data:image/svg+xml,%3csvg viewBox='0 0 10 5' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0 5l5-5 5 5z' fill='white' fill-rule='nonzero'/%3e%3c/svg%3e"},29:function(e,t){"use strict";t.Z="data:image/svg+xml,%3csvg viewBox='0 0 10 5' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0 0l5 5 5-5z' fill='white' fill-rule='nonzero'/%3e%3c/svg%3e"},417:function(e,t){"use strict";t.Z="data:image/svg+xml,%3csvg viewBox='0 0 10 2' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4 0H0v2h10V0H6z' fill-rule='nonzero'/%3e%3c/svg%3e"},530:function(e,t){"use strict";t.Z="data:image/svg+xml,%3csvg viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6 0H4v4H0v2h4v4h2V6h4V4H6z' fill-rule='nonzero'/%3e%3c/svg%3e"},184:function(e,t){var n;
|
|
2
|
+
/*!
|
|
3
|
+
Copyright (c) 2018 Jed Watson.
|
|
4
|
+
Licensed under the MIT License (MIT), see
|
|
5
|
+
http://jedwatson.github.io/classnames
|
|
6
|
+
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var c in n)r.call(n,c)&&n[c]&&e.push(c);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},804:function(e){e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},982:function(e,t,n){var r=n(412),o="html",a="head",i="body",c=/<([a-zA-Z]+[0-9]?)/,l=/<head.*>/i,d=/<body.*>/i,u=/<(area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)(.*?)\/?>/gi,s=r.isIE(9),p=s||r.isIE(),f=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},m=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var h=new window.DOMParser,b=s?"text/xml":"text/html";f=m=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),s&&(e=e.replace(u,"<$1$2$3/>")),h.parseFromString(e,b)}}if(document.implementation){var v=document.implementation.createHTMLDocument(p?"html-dom-parser":void 0);f=function(e,t){if(t)return v.documentElement.getElementsByTagName(t)[0].innerHTML=e,v;try{return v.documentElement.innerHTML=e,v}catch(t){if(m)return m(e)}}}var g,y=document.createElement("template");y.content&&(g=function(e){return y.innerHTML=e,y.content.childNodes}),e.exports=function(e){var t,n,r,u,s=e.match(c);switch(s&&s[1]&&(t=s[1].toLowerCase()),t){case o:return n=m(e),l.test(e)||(r=n.getElementsByTagName(a)[0])&&r.parentNode.removeChild(r),d.test(e)||(r=n.getElementsByTagName(i)[0])&&r.parentNode.removeChild(r),n.getElementsByTagName(o);case a:case i:return u=f(e).getElementsByTagName(t),d.test(e)&&l.test(e)?u[0].parentNode.childNodes:u;default:return g?g(e):f(e,i).getElementsByTagName(i)[0].childNodes}}},57:function(e,t,n){var r=n(982),o=n(412),a=o.formatDOM,i=o.isIE(9),c=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t,n=e.match(c);return n&&n[1]&&(t=n[1],i&&(e=e.replace(n[0],""))),a(r(e),null,t)}},412:function(e,t,n){for(var r,o=n(804).CASE_SENSITIVE_TAG_NAMES,a={},i=0,c=o.length;i<c;i++)r=o[i],a[r.toLowerCase()]=r;function l(e){for(var t,n={},r=0,o=e.length;r<o;r++)n[(t=e[r]).name]=t.value;return n}function d(e){var t=function(e){return a[e]}(e=e.toLowerCase());return t||e}e.exports={formatAttributes:l,formatDOM:function e(t,n,r){n=n||null;for(var o,a,i,c=[],u=0,s=t.length;u<s;u++){switch(o=t[u],i={next:null,prev:c[u-1]||null,parent:n},(a=c[u-1])&&(a.next=i),"#"!==o.nodeName[0]&&(i.name=d(o.nodeName),i.attribs={},o.attributes&&o.attributes.length&&(i.attribs=l(o.attributes))),o.nodeType){case 1:"script"===i.name||"style"===i.name?i.type=i.name:i.type="tag",i.children=e(o.childNodes,i);break;case 3:i.type="text",i.data=o.nodeValue;break;case 8:i.type="comment",i.data=o.nodeValue}c.push(i)}return r&&(c.unshift({name:r.substring(0,r.indexOf(" ")).toLowerCase(),data:r,type:"directive",next:c[0]?c[0]:null,prev:null,parent:n}),c[1]&&(c[1].prev=c[0])),c},isIE:function(e){return e?document.documentMode===e:/(MSIE |Trident\/|Edge\/)/.test(navigator.userAgent)}}},488:function(e,t,n){var r=n(670),o=n(484),a=n(57),i={decodeEntities:!0,lowerCaseAttributeNames:!1};function c(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:r(a(e,(t=t||{}).htmlparser2||i),t)}c.domToReact=r,c.htmlToDOM=a,c.attributesToProps=o,e.exports=c,e.exports.default=c},484:function(e,t,n){var r=n(686),o=n(606),a=o.setStyleProp,i=r.html,c=r.svg,l=r.isCustomAttribute,d=Object.prototype.hasOwnProperty;e.exports=function(e){var t,n,r,u;e=e||{};var s={};for(t in e)r=e[t],l(t)?s[t]=r:(n=t.toLowerCase(),d.call(i,n)?s[(u=i[n]).propertyName]=!!(u.hasBooleanValue||u.hasOverloadedBooleanValue&&!r)||r:d.call(c,t)?s[(u=c[t]).propertyName]=r:o.PRESERVE_CUSTOM_ATTRIBUTES&&(s[t]=r));return a(e.style,s),s}},670:function(e,t,n){var r=n(297),o=n(484),a=n(606),i=a.setStyleProp;function c(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&a.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var a,l,d,u,s=(n=n||{}).library||r,p=s.cloneElement,f=s.createElement,m=s.isValidElement,h=[],b="function"==typeof n.replace,v=n.trim,g=0,y=t.length;g<y;g++)if(a=t[g],b&&m(l=n.replace(a)))y>1&&(l=p(l,{key:l.key||g})),h.push(l);else if("text"!==a.type){switch(d=a.attribs,c(a)?i(d.style,d):d&&(d=o(d)),u=null,a.type){case"script":case"style":a.children[0]&&(d.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":"textarea"===a.name&&a.children[0]?d.defaultValue=a.children[0].data:a.children&&a.children.length&&(u=e(a.children,n));break;default:continue}y>1&&(d.key=g),h.push(f(a.name,d,u))}else v?a.data.trim()&&h.push(a.data):h.push(a.data);return 1===h.length?h[0]:h}},606:function(e,t,n){var r=n(297),o=n(476).default;var a={reactCompat:!0};var i=r.version.split(".")[0]>=16;e.exports={PRESERVE_CUSTOM_ATTRIBUTES:i,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,o="function"==typeof t,a={},i={};for(n in e)r=e[n],o&&(a=t(n,r))&&2===a.length?i[a[0]]=a[1]:"string"==typeof r&&(i[r]=n);return i},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){null!=e&&(t.style=o(e,a))}}},139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,d="";function u(e){return e?e.replace(l,d):d}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var s=1,p=1;function f(e){var t=e.match(n);t&&(s+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function m(){var e={line:s,column:p};return function(t){return t.position=new h(e),y(),t}}function h(e){this.start=e,this.end={line:s,column:p},this.source=l.source}h.prototype.content=e;var b=[];function v(t){var n=new Error(l.source+":"+s+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=s,n.column=p,n.source=e,!l.silent)throw n;b.push(n)}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function y(){g(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;d!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,d===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return p+=2,f(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function _(){var e=m(),n=g(o);if(n){if(x(),!g(a))return v("property missing ':'");var r=g(i),l=e({type:"declaration",property:u(n[0].replace(t,d)),value:r?u(r[0].replace(t,d)):d});return g(c),l}}return y(),function(){var e,t=[];for(w(t);e=_();)!1!==e&&(t.push(e),w(t));return t}()}},703:function(e,t,n){"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var c=new Error("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");throw c.name="Invariant Violation",c}}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,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},697:function(e,t,n){e.exports=n(703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},686:function(e,t,n){var r=n(888),o=n(138),a=n(855),i=a.MUST_USE_PROPERTY,c=a.HAS_BOOLEAN_VALUE,l=a.HAS_NUMERIC_VALUE,d=a.HAS_POSITIVE_NUMERIC_VALUE,u=a.HAS_OVERLOADED_BOOLEAN_VALUE;function s(e,t){return(e&t)===t}function p(e,t,n){var r,o,a,p=e.Properties,f=e.DOMAttributeNames;for(o in p)r=f[o]||(n?o:o.toLowerCase()),a=p[o],t[r]={attributeName:r,propertyName:o,mustUseProperty:s(a,i),hasBooleanValue:s(a,c),hasNumericValue:s(a,l),hasPositiveNumericValue:s(a,d),hasOverloadedBooleanValue:s(a,u)}}var f={};p(r,f);var m={};p(o,m,!0);var h={};p(r,h),p(o,h,!0);e.exports={html:f,svg:m,properties:h,isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"))}},888:function(e){e.exports={Properties:{autoFocus:4,accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:4,allowTransparency:0,alt:0,as:0,async:4,autoComplete:0,autoPlay:4,capture:4,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:5,cite:0,classID:0,className:0,cols:24,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:4,controlsList:0,coords:0,crossOrigin:0,data:0,dateTime:0,default:4,defer:4,dir:0,disabled:4,download:32,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:4,formTarget:0,frameBorder:0,headers:0,height:0,hidden:4,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:4,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:5,muted:5,name:0,nonce:0,noValidate:4,open:4,optimum:0,pattern:0,placeholder:0,playsInline:4,poster:0,preload:0,profile:0,radioGroup:0,readOnly:4,referrerPolicy:0,rel:0,required:4,reversed:4,role:0,rows:24,rowSpan:8,sandbox:0,scope:0,scoped:4,scrolling:0,seamless:4,selected:5,shape:0,size:24,sizes:0,span:24,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:8,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:4,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"}}},138:function(e){e.exports={Properties:{accentHeight:0,accumulate:0,additive:0,alignmentBaseline:0,allowReorder:0,alphabetic:0,amplitude:0,arabicForm:0,ascent:0,attributeName:0,attributeType:0,autoReverse:0,azimuth:0,baseFrequency:0,baseProfile:0,baselineShift:0,bbox:0,begin:0,bias:0,by:0,calcMode:0,capHeight:0,clip:0,clipPath:0,clipRule:0,clipPathUnits:0,colorInterpolation:0,colorInterpolationFilters:0,colorProfile:0,colorRendering:0,contentScriptType:0,contentStyleType:0,cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:0,direction:0,display:0,divisor:0,dominantBaseline:0,dur:0,dx:0,dy:0,edgeMode:0,elevation:0,enableBackground:0,end:0,exponent:0,externalResourcesRequired:0,fill:0,fillOpacity:0,fillRule:0,filter:0,filterRes:0,filterUnits:0,floodColor:0,floodOpacity:0,focusable:0,fontFamily:0,fontSize:0,fontSizeAdjust:0,fontStretch:0,fontStyle:0,fontVariant:0,fontWeight:0,format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:0,glyphOrientationHorizontal:0,glyphOrientationVertical:0,glyphRef:0,gradientTransform:0,gradientUnits:0,hanging:0,horizAdvX:0,horizOriginX:0,ideographic:0,imageRendering:0,in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:0,kernelUnitLength:0,kerning:0,keyPoints:0,keySplines:0,keyTimes:0,lengthAdjust:0,letterSpacing:0,lightingColor:0,limitingConeAngle:0,local:0,markerEnd:0,markerMid:0,markerStart:0,markerHeight:0,markerUnits:0,markerWidth:0,mask:0,maskContentUnits:0,maskUnits:0,mathematical:0,mode:0,numOctaves:0,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:0,overlineThickness:0,paintOrder:0,panose1:0,pathLength:0,patternContentUnits:0,patternTransform:0,patternUnits:0,pointerEvents:0,points:0,pointsAtX:0,pointsAtY:0,pointsAtZ:0,preserveAlpha:0,preserveAspectRatio:0,primitiveUnits:0,r:0,radius:0,refX:0,refY:0,renderingIntent:0,repeatCount:0,repeatDur:0,requiredExtensions:0,requiredFeatures:0,restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:0,slope:0,spacing:0,specularConstant:0,specularExponent:0,speed:0,spreadMethod:0,startOffset:0,stdDeviation:0,stemh:0,stemv:0,stitchTiles:0,stopColor:0,stopOpacity:0,strikethroughPosition:0,strikethroughThickness:0,string:0,stroke:0,strokeDasharray:0,strokeDashoffset:0,strokeLinecap:0,strokeLinejoin:0,strokeMiterlimit:0,strokeOpacity:0,strokeWidth:0,surfaceScale:0,systemLanguage:0,tableValues:0,targetX:0,targetY:0,textAnchor:0,textDecoration:0,textRendering:0,textLength:0,to:0,transform:0,u1:0,u2:0,underlinePosition:0,underlineThickness:0,unicode:0,unicodeBidi:0,unicodeRange:0,unitsPerEm:0,vAlphabetic:0,vHanging:0,vIdeographic:0,vMathematical:0,values:0,vectorEffect:0,version:0,vertAdvY:0,vertOriginX:0,vertOriginY:0,viewBox:0,viewTarget:0,visibility:0,widths:0,wordSpacing:0,writingMode:0,x:0,xHeight:0,x1:0,x2:0,xChannelSelector:0,xlinkActuate:0,xlinkArcrole:0,xlinkHref:0,xlinkRole:0,xlinkShow:0,xlinkTitle:0,xlinkType:0,xmlBase:0,xmlns:0,xmlnsXlink:0,xmlLang:0,xmlSpace:0,y:0,y1:0,y2:0,yChannelSelector:0,z:0,zoomAndPan:0},DOMAttributeNames:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space"}}},855:function(e){e.exports={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32}},476:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var o=r(n(848)),a=n(678);t.default=function(e,t){var n={};return e&&"string"==typeof e?(o.default(e,(function(e,r){e&&r&&(n[a.camelCase(e,t)]=r)})),n):n}},678:function(e,t){"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,i=function(e,t){return t.toUpperCase()},c=function(e,t){return t+"-"};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),t.reactCompat||(e=e.replace(a,c)),e.replace(r,i))}},848:function(e,t,n){var r=n(139);e.exports=function(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var a,i,c=r(e),l="function"==typeof t,d=0,u=c.length;d<u;d++)a=(n=c[d]).property,i=n.value,l?t(a,i,n):i&&(o||(o={}),o[a]=i);return o}},297:function(t){"use strict";t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={id:e,exports:{}};return t[e].call(a.exports,a,a.exports,r),a.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";r.r(o),r.d(o,{DATA_FUNCTIONS:function(){return Et},DATA_FUNCTION_COUNT:function(){return gt},DATA_FUNCTION_MAX:function(){return vt},DATA_FUNCTION_MEAN:function(){return yt},DATA_FUNCTION_MEDIAN:function(){return wt},DATA_FUNCTION_MIN:function(){return xt},DATA_FUNCTION_MODE:function(){return _t},DATA_FUNCTION_SUM:function(){return zt},DATA_OPERATORS:function(){return Tt},DATA_OPERATOR_EQUAL:function(){return St},DATA_OPERATOR_GREATER:function(){return Ot},DATA_OPERATOR_GREATEREQUAL:function(){return Nt},DATA_OPERATOR_LESS:function(){return kt},DATA_OPERATOR_LESSEQUAL:function(){return At},DATA_OPERATOR_NOTEQUAL:function(){return Ct},default:function(){return bt}});var e=r(297),t=r.n(e),n=r(488),a=r.n(n),i=r(697),c=r.n(i),l=r(184),d=r.n(l);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function s(e){var n=e.top,r=void 0===n?0:n,o=e.left,a=void 0===o?0:o,i=e.transform,c=e.className,l=e.children,s=e.innerRef,p=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["top","left","transform","className","children","innerRef"]);return t().createElement("g",u({ref:s,className:d()("visx-group",c),transform:i||"translate("+a+", "+r+")"},p),l)}s.propTypes={top:c().number,left:c().number,transform:c().string,className:c().string,children:c().node,innerRef:c().oneOfType([c().string,c().func,c().object])};var p=["className","innerRef"];function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function m(e){var n=e.className,r=e.innerRef,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,p);return t().createElement("rect",f({ref:r,className:d()("visx-bar",n)},o))}var h=["className","innerRef"];function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}function v(e){var n=e.className,r=e.innerRef,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,h);return t().createElement("circle",b({ref:r,className:d()("visx-circle",n)},o))}var g=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),y="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,w=void 0!==r.g&&r.g.Math===Math?r.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),x="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(w):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var _=["top","right","bottom","left","width","height","size","weight"],z="undefined"!=typeof MutationObserver,E=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&c()}function i(){x(a)}function c(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=e}return c}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){y&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),z?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){y&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;_.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),k=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},O=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||w},A=D(0,0,0,0);function N(e){return parseFloat(e)||0}function S(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+N(e["border-"+n+"-width"])}),0)}function C(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return A;var r=O(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],a=e["padding-"+o];t[o]=N(a)}return t}(r),a=o.left+o.right,i=o.top+o.bottom,c=N(r.width),l=N(r.height);if("border-box"===r.boxSizing&&(Math.round(c+a)!==t&&(c-=S(r,"left","right")+a),Math.round(l+i)!==n&&(l-=S(r,"top","bottom")+i)),!function(e){return e===O(e).document.documentElement}(e)){var d=Math.round(c+a)-t,u=Math.round(l+i)-n;1!==Math.abs(d)&&(c-=d),1!==Math.abs(u)&&(l-=u)}return D(o.left,o.top,c,l)}var T="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof O(e).SVGGraphicsElement}:function(e){return e instanceof O(e).SVGElement&&"function"==typeof e.getBBox};function M(e){return y?T(e)?function(e){var t=e.getBBox();return D(0,0,t.width,t.height)}(e):C(e):A}function D(e,t,n,r){return{x:e,y:t,width:n,height:r}}var P=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=D(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=M(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),j=function(e,t){var n,r,o,a,i,c,l,d=(r=(n=t).x,o=n.y,a=n.width,i=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(c.prototype),k(l,{x:r,y:o,width:a,height:i,top:o,right:r+a,bottom:i+o,left:r}),l);k(this,{target:e,contentRect:d})},F=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new g,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof O(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new P(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof O(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new j(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),R="undefined"!=typeof WeakMap?new WeakMap:new g,I=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=E.getInstance(),r=new F(t,n,this);R.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){I.prototype[e]=function(){var t;return(t=R.get(this))[e].apply(t,arguments)}}));var L=void 0!==w.ResizeObserver?w.ResizeObserver:I;function B(e){var t="lg",n={lg:1200,md:992,sm:768,xs:576,xxs:350};if(e>1200)return t;for(var r in n)e<=n[r]&&(t=r);return t}function U(e){return U="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},U(e)}function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function H(e,t){return H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},H(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=q(e);if(t){var o=q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Z(this,n)}}function Z(e,t){if(t&&("object"===U(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function q(e){return q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},q(e)}var G=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&H(e,t)}(i,e);var n,r,o,a=W(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).state={hasError:!1},t}return n=i,o=[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0}}}],(r=[{key:"componentDidCatch",value:function(e,t){console.warn(e,t)}},{key:"render",value:function(){return this.state.hasError?this.props.component?t().createElement("h1",null,"Something went wrong with component ",this.props.component,"."):t().createElement("h1",null,"Something went wrong."):this.props.children}}])&&V(n.prototype,r),o&&V(n,o),Object.defineProperty(n,"prototype",{writable:!1}),i}(t().Component);r(291);function X(e){var n=e.viewport,r=void 0===n?"lg":n;return t().createElement("section",{className:"loading","aria-hidden":"true"},t().createElement("div",{className:"la-ball-beat la-dark ".concat(r)},t().createElement("div",null),t().createElement("div",null),t().createElement("div",null)))}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Q(e,t,n){return t&&$(e.prototype,t),n&&$(e,n),e}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(){return K=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K.apply(this,arguments)}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&re(e,t)}function ne(e){return ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ne(e)}function re(e,t){return re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},re(e,t)}function oe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ae(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ie(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?ae(e):t}function ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ne(e);if(t){var o=ne(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ie(this,n)}}function le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}(e,t)||ue(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function de(e){return function(e){if(Array.isArray(e))return se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ue(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ue(e,t){if(e){if("string"==typeof e)return se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?se(e,t):void 0}}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var pe=function e(t){var n=this,r=t.expanded,o=void 0===r?[]:r,a=t.allowMultipleExpanded,i=void 0!==a&&a,c=t.allowZeroExpanded,l=void 0!==c&&c;Y(this,e),J(this,"expanded",void 0),J(this,"allowMultipleExpanded",void 0),J(this,"allowZeroExpanded",void 0),J(this,"toggleExpanded",(function(e){return n.isItemDisabled(e)?n:n.isItemExpanded(e)?n.augment({expanded:n.expanded.filter((function(t){return t!==e}))}):n.augment({expanded:n.allowMultipleExpanded?[].concat(de(n.expanded),[e]):[e]})})),J(this,"isItemDisabled",(function(e){var t=n.isItemExpanded(e),r=1===n.expanded.length;return Boolean(t&&!n.allowZeroExpanded&&r)})),J(this,"isItemExpanded",(function(e){return-1!==n.expanded.indexOf(e)})),J(this,"getPanelAttributes",(function(e,t){var r=null!=t?t:n.isItemExpanded(e);return{role:n.allowMultipleExpanded?void 0:"region","aria-hidden":n.allowMultipleExpanded?!r:void 0,"aria-labelledby":n.getButtonId(e),id:n.getPanelId(e),hidden:!r||void 0}})),J(this,"getHeadingAttributes",(function(){return{role:"heading"}})),J(this,"getButtonAttributes",(function(e,t){var r=null!=t?t:n.isItemExpanded(e),o=n.isItemDisabled(e);return{id:n.getButtonId(e),"aria-disabled":o,"aria-expanded":r,"aria-controls":n.getPanelId(e),role:"button",tabIndex:0}})),J(this,"getPanelId",(function(e){return"accordion__panel-".concat(e)})),J(this,"getButtonId",(function(e){return"accordion__heading-".concat(e)})),J(this,"augment",(function(t){return new e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({expanded:n.expanded,allowMultipleExpanded:n.allowMultipleExpanded,allowZeroExpanded:n.allowZeroExpanded},t))})),this.expanded=o,this.allowMultipleExpanded=i,this.allowZeroExpanded=l},fe=(0,e.createContext)(null),me=function(t){te(r,t);var n=ce(r);function r(){var e;Y(this,r);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return J(ae(e=n.call.apply(n,[this].concat(o))),"state",new pe({expanded:e.props.preExpanded,allowMultipleExpanded:e.props.allowMultipleExpanded,allowZeroExpanded:e.props.allowZeroExpanded})),J(ae(e),"toggleExpanded",(function(t){e.setState((function(e){return e.toggleExpanded(t)}),(function(){e.props.onChange&&e.props.onChange(e.state.expanded)}))})),J(ae(e),"isItemDisabled",(function(t){return e.state.isItemDisabled(t)})),J(ae(e),"isItemExpanded",(function(t){return e.state.isItemExpanded(t)})),J(ae(e),"getPanelAttributes",(function(t,n){return e.state.getPanelAttributes(t,n)})),J(ae(e),"getHeadingAttributes",(function(){return e.state.getHeadingAttributes()})),J(ae(e),"getButtonAttributes",(function(t,n){return e.state.getButtonAttributes(t,n)})),e}return Q(r,[{key:"render",value:function(){var t=this.state,n=t.allowZeroExpanded,r=t.allowMultipleExpanded;return(0,e.createElement)(fe.Provider,{value:{allowMultipleExpanded:r,allowZeroExpanded:n,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),r}(e.PureComponent);J(me,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var he,be=function(t){te(r,t);var n=ce(r);function r(){var e;Y(this,r);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return J(ae(e=n.call.apply(n,[this].concat(o))),"renderChildren",(function(t){return t?e.props.children(t):null})),e}return Q(r,[{key:"render",value:function(){return(0,e.createElement)(fe.Consumer,null,this.renderChildren)}}]),r}(e.PureComponent),ve=function(t){var n=t.className,r=void 0===n?"accordion":n,o=t.allowMultipleExpanded,a=t.allowZeroExpanded,i=t.onChange,c=t.preExpanded,l=oe(t,["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"]);return(0,e.createElement)(me,{preExpanded:c,allowMultipleExpanded:o,allowZeroExpanded:a,onChange:i},(0,e.createElement)("div",K({"data-accordion-component":"Accordion",className:r},l)))};!function(e){e.Accordion="Accordion",e.AccordionItem="AccordionItem",e.AccordionItemButton="AccordionItemButton",e.AccordionItemHeading="AccordionItemHeading",e.AccordionItemPanel="AccordionItemPanel"}(he||(he={}));var ge=he,ye=0;var we=/[\u0009\u000a\u000c\u000d\u0020]/g;function xe(e){return""!==e&&!we.test(e)||(console.error('uuid must be a valid HTML5 id but was given "'.concat(e,'", ASCII whitespaces are forbidden')),!1)}var _e=(0,e.createContext)(null),ze=function(t){var n=t.children,r=t.uuid,o=t.accordionContext,a=t.dangerouslySetExpanded,i=function(){o.toggleExpanded(r)},c=function(t){var o=null!=a?a:t.isItemExpanded(r),c=t.isItemDisabled(r),l=t.getPanelAttributes(r,a),d=t.getHeadingAttributes(r),u=t.getButtonAttributes(r,a);return(0,e.createElement)(_e.Provider,{value:{uuid:r,expanded:o,disabled:c,toggleExpanded:i,panelAttributes:l,headingAttributes:d,buttonAttributes:u}},n)};return(0,e.createElement)(be,null,c)},Ee=function(t){return(0,e.createElement)(be,null,(function(n){return(0,e.createElement)(ze,K({},t,{accordionContext:n}))}))},ke=function(t){var n=t.children,r=function(e){return e?n(e):null};return(0,e.createElement)(_e.Consumer,null,r)},Oe=function(t){var n,r=t.uuid,o=t.dangerouslySetExpanded,a=t.className,i=void 0===a?"accordion__item":a,c=t.activeClassName,l=oe(t,["uuid","dangerouslySetExpanded","className","activeClassName"]),d=le((0,e.useState)((n=ye,ye+=1,"raa-".concat(n))),1)[0],u=null!=r?r:d,s=function(t){var n=t.expanded&&c?c:i;return(0,e.createElement)("div",K({"data-accordion-component":"AccordionItem",className:n},l))};return xe(u.toString()),l.id&&xe(l.id),(0,e.createElement)(Ee,{uuid:u,dangerouslySetExpanded:o},(0,e.createElement)(ke,null,s))};function Ae(e){return e&&(e.matches('[data-accordion-component="Accordion"]')?e:Ae(e.parentElement))}function Ne(e){var t=Ae(e);return t&&Array.from(t.querySelectorAll('[data-accordion-component="AccordionItemButton"]'))}Oe.displayName=ge.AccordionItem;var Se="End",Ce="Enter",Te="Home",Me=" ",De="Spacebar",Pe="ArrowUp",je="ArrowDown",Fe="ArrowLeft",Re="ArrowRight",Ie=function(t){var n=t.toggleExpanded,r=t.className,o=void 0===r?"accordion__button":r,a=oe(t,["toggleExpanded","className"]);return a.id&&xe(a.id),(0,e.createElement)("div",K({className:o},a,{role:"button",tabIndex:0,onClick:n,onKeyDown:function(e){var t,r,o=e.key;if(o!==Ce&&o!==Me&&o!==De||(e.preventDefault(),n()),e.target instanceof HTMLElement)switch(o){case Te:e.preventDefault(),t=e.target,(r=(Ne(t)||[])[0])&&r.focus();break;case Se:e.preventDefault(),function(e){var t=Ne(e)||[],n=t[t.length-1];n&&n.focus()}(e.target);break;case Fe:case Pe:e.preventDefault(),function(e){var t=Ne(e)||[],n=t.indexOf(e);if(-1!==n){var r=t[n-1];r&&r.focus()}}(e.target);break;case Re:case je:e.preventDefault(),function(e){var t=Ne(e)||[],n=t.indexOf(e);if(-1!==n){var r=t[n+1];r&&r.focus()}}(e.target)}},"data-accordion-component":"AccordionItemButton"}))},Le=function(t){return(0,e.createElement)(ke,null,(function(n){var r=n.toggleExpanded,o=n.buttonAttributes;return(0,e.createElement)(Ie,K({toggleExpanded:r},t,o))}))},Be=function(t){te(r,t);var n=ce(r);function r(){var e;Y(this,r);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return J(ae(e=n.call.apply(n,[this].concat(o))),"ref",void 0),J(ae(e),"setRef",(function(t){e.ref=t})),e}return Q(r,[{key:"componentDidUpdate",value:function(){r.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){r.VALIDATE(this.ref)}},{key:"render",value:function(){return(0,e.createElement)("div",K({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(e){if(void 0===e)throw new Error("ref is undefined");if(1!==e.childElementCount||!e.firstElementChild||"AccordionItemButton"!==e.firstElementChild.getAttribute("data-accordion-component"))throw new Error("AccordionItemButton may contain only one child element, which must be an instance of AccordionItemButton.\n\nFrom the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion):\n\n“The button element is the only element inside the heading element. That is, if there are other visually persistent elements, they are not included inside the heading element.”\n\n")}}]),r}(e.PureComponent);J(Be,"defaultProps",{className:"accordion__heading","aria-level":3});var Ue=function(t){return(0,e.createElement)(ke,null,(function(n){var r=n.headingAttributes;return t.id&&xe(t.id),(0,e.createElement)(Be,K({},t,r))}))};Ue.displayName=ge.AccordionItemHeading;var Ve=function(t){var n=t.className,r=void 0===n?"accordion__panel":n,o=t.id,a=oe(t,["className","id"]),i=function(t){var n=t.panelAttributes;return o&&xe(o),(0,e.createElement)("div",K({"data-accordion-component":"AccordionItemPanel",className:r},a,n))};return(0,e.createElement)(ke,null,i)};function He(e,t){return e===t}function We(e){return"function"==typeof e?function(){return e}:e}function Ze(t,n,r){var o=r&&r.equalityFn||He,a=function(t){var n=(0,e.useState)(We(t)),r=n[0],o=n[1];return[r,(0,e.useCallback)((function(e){return o(We(e))}),[])]}(t),i=a[0],c=a[1],l=function(t,n,r){var o=this,a=(0,e.useRef)(null),i=(0,e.useRef)(0),c=(0,e.useRef)(null),l=(0,e.useRef)([]),d=(0,e.useRef)(),u=(0,e.useRef)(),s=(0,e.useRef)(t),p=(0,e.useRef)(!0);s.current=t;var f=!n&&0!==n&&"undefined"!=typeof window;if("function"!=typeof t)throw new TypeError("Expected a function");n=+n||0;var m=!!(r=r||{}).leading,h=!("trailing"in r)||!!r.trailing,b="maxWait"in r,v=b?Math.max(+r.maxWait||0,n):null;(0,e.useEffect)((function(){return p.current=!0,function(){p.current=!1}}),[]);var g=(0,e.useMemo)((function(){var e=function(e){var t=l.current,n=d.current;return l.current=d.current=null,i.current=e,u.current=s.current.apply(n,t)},t=function(e,t){f&&cancelAnimationFrame(c.current),c.current=f?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!p.current)return!1;var t=e-a.current,r=e-i.current;return!a.current||t>=n||t<0||b&&r>=v},g=function(t){return c.current=null,h&&l.current?e(t):(l.current=d.current=null,u.current)},y=function(){var e=Date.now();if(r(e))return g(e);if(p.current){var o=e-a.current,c=e-i.current,l=n-o,d=b?Math.min(l,v-c):l;t(y,d)}},w=function(){for(var s=[],f=0;f<arguments.length;f++)s[f]=arguments[f];var h=Date.now(),v=r(h);if(l.current=s,d.current=o,a.current=h,v){if(!c.current&&p.current)return i.current=a.current,t(y,n),m?e(a.current):u.current;if(b)return t(y,n),e(a.current)}return c.current||t(y,n),u.current};return w.cancel=function(){c.current&&(f?cancelAnimationFrame(c.current):clearTimeout(c.current)),i.current=0,l.current=a.current=d.current=c.current=null},w.isPending=function(){return!!c.current},w.flush=function(){return c.current?g(Date.now()):u.current},w}),[m,b,n,v,h,f]);return g}((0,e.useCallback)((function(e){return c(e)}),[c]),n,r),d=(0,e.useRef)(t);return(0,e.useEffect)((function(){o(d.current,t)||(l(t),d.current=t)}),[t,l,o]),[i,{cancel:l.cancel,isPending:l.isPending,flush:l.flush}]}var qe=(0,e.createContext)({}),Ge=["label","section","subsection","fieldName","updateField","value","type","i","min","max"],Xe=["label","value","options","fieldName","section","subsection","required","updateField","initial"];function Ye(e){return function(e){if(Array.isArray(e))return nt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||tt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){Je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ke(){return Ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ke.apply(this,arguments)}function et(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||tt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tt(e,t){if(e){if("string"==typeof e)return nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nt(e,t):void 0}}function nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ot=(0,e.memo)((function(n){var r=n.label,o=n.section,a=void 0===o?null:o,i=n.subsection,c=void 0===i?null:i,l=n.fieldName,d=n.updateField,u=n.value,s=n.type,p=void 0===s?"input":s,f=n.i,m=void 0===f?null:f,h=n.min,b=void 0===h?null:h,v=n.max,g=void 0===v?null:v,y=rt(n,Ge),w=et((0,e.useState)(u),2),x=w[0],_=w[1],z=et(Ze(x,500),1)[0];(0,e.useEffect)((function(){"string"==typeof z&&u!==z&&d(a,c,l,z,m)}),[z,a,c,l,m,u,d]);var E="".concat(a,"-").concat(c,"-").concat(l),k=function(e){"number"!==p||null===b||!e.target.value||parseFloat(b)<=parseFloat(e.target.value)&parseFloat(g)>=parseFloat(e.target.value)?_(e.target.value):_(b.toString())},O=t().createElement("input",Ke({type:"text",name:E,onChange:k},y,{value:x}));return"textarea"===p&&(O=t().createElement("textarea",Ke({name:E,onChange:k},y,{value:x}))),"number"===p&&(O=t().createElement("input",Ke({type:"number",name:E,onChange:k},y,{value:x}))),t().createElement("label",null,r&&t().createElement("span",{className:"edit-label column-heading"},r),O)})),at=(0,e.memo)((function(e){var n=e.label,r=e.value,o=e.options,a=e.fieldName,i=e.section,c=void 0===i?null:i,l=e.subsection,d=void 0===l?null:l,u=e.required,s=void 0!==u&&u,p=e.updateField,f=e.initial,m=rt(e,Xe),h="";if(Array.isArray(o))h=o.map((function(e){return t().createElement("option",{value:e,key:e},e)}));else{h=[];for(var b=0,v=Object.entries(o);b<v.length;b++){var g=et(v[b],2),y=g[0],w=g[1];h.push(t().createElement("option",{value:y,key:y},w))}}return f&&h.unshift(t().createElement("option",{value:"",key:"initial"},f)),t().createElement("label",null,n&&t().createElement("span",{className:"edit-label"},n),t().createElement("select",Ke({className:s&&!r?"warning":"",name:a,value:r,onChange:function(e){p(c,d,a,e.target.value)}},m),h))})),it=["theme-blue","theme-purple","theme-brown","theme-teal","theme-pink","theme-orange","theme-slate","theme-indigo","theme-cyan","theme-green","theme-amber"],ct=(0,e.memo)((function(){var n=(0,e.useContext)(qe),r=n.config,o=n.updateConfig,a=n.loading,i=n.data,c=n.setParentConfig,l=n.isDashboard,d=et((0,e.useState)(!0),2),u=d[0],s=d[1],p=function(e,t,n,a){if(null===e&&null===t){var i=Qe(Qe({},r),{},Je({},n,a));return"filterColumn"===n&&(i.filterValue=""),void o(i)}var c=Array.isArray(r[e]),l=c?[].concat(Ye(r[e]),[a]):Qe(Qe({},r[e]),{},Je({},n,a));null!==t&&(c?(l=Ye(r[e]))[t]=Qe(Qe({},l[t]),{},Je({},n,a)):"string"==typeof a?l[t]=a:l=Qe(Qe({},r[e]),{},Je({},t,Qe(Qe({},r[e][t]),{},Je({},n,a)))));var d=Qe(Qe({},r),{},Je({},e,l));o(d)};(0,e.useEffect)((function(){if(c){var e=h();c(e)}}),[r]),(0,e.useEffect)((function(){""!==r.dataConditionalComparate?["<",">","<=",">="].indexOf(r.dataConditionalOperator)>-1&&isNaN(r.dataConditionalComparate)?o(Qe(Qe({},r),{},{invalidComparate:!0})):r.invalidComparate&&o(Qe(Qe({},r),{},{invalidComparate:!1})):o(Qe(Qe({},r),{},{invalidComparate:!1}))}),[r.dataConditionalOperator,r.dataConditionalComparate]);var f=function(){return t().createElement("section",{className:"waiting"},t().createElement("section",{className:"waiting-container"},t().createElement("h3",null,"Error With Configuration"),t().createElement("p",null,r.runtime.editorErrorMessage)))},m=function(){return t().createElement("section",{className:"waiting"},t().createElement("section",{className:"waiting-container"},t().createElement("h3",null,"Finish Configuring"),t().createElement("p",null,"Set all required options to the left and confirm below to display a preview of the chart."),t().createElement("button",{className:"btn",style:{margin:"1em auto"},disabled:!1,onClick:function(e){e.preventDefault();var t=Qe({},r);delete t.newViz,o(t)}},"I'm Done")))},h=function(){var e=JSON.parse(JSON.stringify(r));return delete e.newViz,delete e.runtime,e},b=function(e,t,n){var a=Ye(r.filters);a[t][e]=n,o(Qe(Qe({},r),{},{filters:a}))},v=function(){var e={};return i.map((function(t){return Object.keys(t).forEach((function(t){return e[t]=!0}))})),Object.keys(e)};return a?null:t().createElement(G,{component:"EditorPanel"},!r.newViz&&r.runtime&&r.runtime.editorErrorMessage&&t().createElement(f,null),r.newViz&&t().createElement(m,null),t().createElement("button",{className:u?"editor-toggle":"editor-toggle collapsed",title:u?"Collapse Editor":"Expand Editor",onClick:function(){l?o(Qe(Qe({},r),{},{editing:!1})):s(!u)}}),t().createElement("section",{className:u?"editor-panel":"hidden editor-panel"},t().createElement("h2",null,"Configure Waffle Chart"),t().createElement("section",{className:"form-container"},t().createElement("form",null,t().createElement(ve,{allowZeroExpanded:!0},t().createElement(Oe,null," ",t().createElement(Ue,null,t().createElement(Le,null,"General")),t().createElement(Ve,null,t().createElement(ot,{value:r.title,fieldName:"title",label:"Title",placeholder:"Waffle Chart Title",updateField:p}),t().createElement(ot,{type:"textarea",value:r.content,fieldName:"content",label:"Message",updateField:p}),t().createElement(ot,{value:r.subtext,fieldName:"subtext",label:"Subtext/Citation",placeholder:"Waffle Chart Subtext or Citation",updateField:p}))),t().createElement(Oe,null,t().createElement(Ue,null,t().createElement(Le,null,"Data")),t().createElement(Ve,null,t().createElement("h4",{style:{fontWeight:"600"}},"Numerator"),t().createElement("div",{className:"accordion__panel-section"},t().createElement(at,{value:r.dataColumn||"",fieldName:"dataColumn",label:"Data Column",updateField:p,initial:"Select",options:v()}),t().createElement(at,{value:r.dataFunction||"",fieldName:"dataFunction",label:"Data Function",updateField:p,initial:"Select",options:Et}),t().createElement("label",null,t().createElement("span",{className:"edit-label"},"Data Conditional")),t().createElement("div",{className:"accordion__panel-row accordion__small-inputs"},t().createElement("div",{className:"accordion__panel-col"},t().createElement(at,{value:r.dataConditionalColumn||"",fieldName:"dataConditionalColumn",updateField:p,initial:"Select",options:v()})),t().createElement("div",{className:"accordion__panel-col"},t().createElement(at,{value:r.dataConditionalOperator||"",fieldName:"dataConditionalOperator",updateField:p,initial:"Select",options:Tt})),t().createElement("div",{className:"accordion__panel-col"},t().createElement(ot,{value:r.dataConditionalComparate,fieldName:"dataConditionalComparate",updateField:p,className:r.invalidComparate?"accordion__input-error":""}))),r.invalidComparate&&t().createElement("div",{className:"accordion__panel-error"},"Non-numerical comparate values can only be used with = or ≠.")),t().createElement("div",{className:"accordion__panel-row align-center"},t().createElement("div",{className:"accordion__panel-col"},t().createElement("h4",{style:{fontWeight:"600"}},"Denominator")),t().createElement("div",{className:"accordion__panel-col"},t().createElement("div",{className:"d-flex justify-end"},t().createElement("label",{className:"accordion__panel-label--inline"},"Select from data"),t().createElement("div",{className:"accordion__panel-checkbox".concat(r.customDenom?" checked":""),onClick:function(){return e=Qe({},r),void o(Qe(Qe({},r),{},{customDenom:!e.customDenom}));var e}})))),t().createElement("div",{className:"accordion__panel-section"},!r.customDenom&&t().createElement("div",{className:"accordion__panel-row align-center"},t().createElement("div",{className:"accordion__panel-col"},t().createElement(ot,{value:r.dataDenom,fieldName:"dataDenom",updateField:p})),t().createElement("div",{className:"accordion__panel-col"},t().createElement("label",{className:"accordion__panel-label--muted"},"default (100)"))),r.customDenom&&t().createElement(t().Fragment,null,t().createElement(at,{value:r.dataDenomColumn||"",fieldName:"dataDenomColumn",label:"Data Column",updateField:p,initial:"Select",options:v()}),t().createElement(at,{value:r.dataDenomFunction||"",fieldName:"dataDenomFunction",label:"Data Function",updateField:p,initial:"Select",options:Et}))),t().createElement("ul",{className:"column-edit"},t().createElement("li",{className:"three-col"},t().createElement(ot,{value:r.prefix,fieldName:"prefix",label:"Prefix",updateField:p}),t().createElement(ot,{value:r.suffix,fieldName:"suffix",label:"Suffix",updateField:p}),t().createElement(ot,{type:"number",value:r.roundToPlace,fieldName:"roundToPlace",label:"Round",updateField:p}))))),t().createElement(Oe,null,t().createElement(Ue,null,t().createElement(Le,null,"Filters")),t().createElement(Ve,null,t().createElement("ul",{className:"filters-list"},r.filters&&r.filters.map((function(e,n){return t().createElement("fieldset",{className:"edit-block",key:n},t().createElement("button",{type:"button",className:"remove-column",onClick:function(){!function(e){var t=Ye(r.filters);t.splice(e,1),o(Qe(Qe({},r),{},{filters:t}))}(n)}},"Remove"),t().createElement("label",null,t().createElement("span",{className:"edit-label column-heading"},"Column"),t().createElement("select",{value:e.columnName,onChange:function(e){b("columnName",n,e.target.value)}},t().createElement("option",{value:""},"- Select Option -"),v().map((function(e,n){return t().createElement("option",{value:e,key:n},e)})))),t().createElement("label",null,t().createElement("span",{className:"edit-label column-heading"},"Column Value"),t().createElement("select",{value:e.columnValue,onChange:function(e){b("columnValue",n,e.target.value)}},t().createElement("option",{value:""},"- Select Option -"),function(e){var t=[],n=r.filters[e].columnName;return i&&n&&(i.forEach((function(e){void 0!==e[n]&&-1===t.indexOf(e[n])&&t.push(e[n])})),t.sort()),t}(n).map((function(e,n){return t().createElement("option",{value:e,key:n},e)})))))}))),t().createElement("button",{type:"button",onClick:function(){var e=r.filters?Ye(r.filters):[];e.push({values:[]}),o(Qe(Qe({},r),{},{filters:e}))},className:"btn btn-primary"},"Add Filter"))),t().createElement(Oe,null,t().createElement(Ue,null,t().createElement(Le,null,"Visual")),t().createElement(Ve,null,t().createElement(at,{value:r.shape,fieldName:"shape",label:"Shape",updateField:p,options:["circle","square","person"]}),t().createElement("div",{className:"accordion__panel-row accordion__small-inputs",style:{marginTop:"1em"}},t().createElement("div",{className:"accordion__panel-col"},t().createElement(ot,{type:"number",value:r.nodeWidth,fieldName:"nodeWidth",label:"Width",updateField:p})),t().createElement("div",{className:"accordion__panel-col"},t().createElement(ot,{type:"number",value:r.nodeSpacer,fieldName:"nodeSpacer",label:"Spacer",updateField:p}))),t().createElement(at,{value:r.orientation,fieldName:"orientation",label:"Layout",updateField:p,options:["horizontal","vertical"]}),t().createElement("label",null,t().createElement("span",{className:"edit-label column-heading"},"Data Point Font Size")),t().createElement("div",{className:"accordion__panel-row accordion__small-inputs align-center"},t().createElement("div",{className:"accordion__panel-col"},t().createElement(ot,{type:"number",value:r.fontSize,fieldName:"fontSize",updateField:p})),t().createElement("div",{className:"accordion__panel-col"},t().createElement("label",{className:"accordion__panel-label--muted"},"default (50px)"))),t().createElement(at,{value:r.overallFontSize,fieldName:"overallFontSize",label:"Overall Font Size",updateField:p,options:["small","medium","large"]}),t().createElement("label",{className:"header"},t().createElement("span",{className:"edit-label"},"Theme"),t().createElement("ul",{className:"color-palette"},it.map((function(e){return t().createElement("li",{title:e,key:e,onClick:function(){o(Qe(Qe({},r),{},{theme:e}))},className:r.theme===e?"selected "+e:e})})))))))))))})),lt=ct,dt={title:"Waffle Chart",content:"",subtext:"",orientation:"horizontal",data:"",filters:[],fontSize:"",overallFontSize:"medium",dataColumn:"",dataFunction:"",dataConditionalColumn:"",dataConditionalOperator:"",dataConditionalComparate:"",invalidComparate:!1,customDenom:!1,dataDenom:"100",dataDenomColumn:"",dataDenomFunction:"",suffix:"%",roundToPlace:"0",shape:"circle",nodeWidth:"10",nodeSpacer:"2",theme:"theme-blue",type:"waffle-chart"},ut=(r(874),function(){return ut=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ut.apply(this,arguments)}),st=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function c(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}l((r=r.apply(e,t||[])).next())}))},pt=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},ft=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},mt={"theme-blue":"#005eaa","theme-purple":"#712177","theme-brown":"#705043","theme-teal":"#00695c","theme-pink":"#af4448","theme-orange":"#bb4d00","theme-slate":"#29434e","theme-indigo":"#26418f","theme-cyan":"#006778","theme-green":"#4b830d","theme-amber":"#fbab18"},ht=function(n){var r=n.config,o=n.isEditor,i=r.title,c=r.theme,l=r.shape,d=r.nodeWidth,u=r.nodeSpacer,p=r.prefix,f=r.suffix,h=r.subtext,b=r.content,g=r.orientation,y=r.filters,w=r.dataColumn,x=r.dataFunction,_=r.dataConditionalColumn,z=r.dataConditionalOperator,E=r.dataConditionalComparate,k=r.customDenom,O=r.dataDenom,A=r.dataDenomColumn,N=r.dataDenomFunction,S=r.roundToPlace,C=(0,e.useCallback)((function(){if(!w||!x)return"";var e=function(e){if(Array.isArray(e)&&e.length>0){var t=e.reduce((function(e,t){return e+t}));return a(t)}},t=function(e){var t=e.length>1?e.reduce((function(e,t){return e+t}))/e.length:e[0];return a(t)},n=function(e){for(var t={},n=-1/0,r=0;r<e.length;r++)t[e[r]]?t[e[r]]+=1:t[e[r]]=1,t[e[r]]>n&&(n=t[e[r]]);var o=[];for(var a in t)t[a]===n&&o.push(a);return o},o=function(e){var t=Math.floor(e.length/2),n=ft([],e,!0).sort((function(e,t){return e-t})),r=e.length%2!=0?n[t]:(n[t-1]+n[t])/2;return a(r)},a=function(e){return""!==S&&!isNaN(S)&&Number(S)>-1&&(e=Number(e).toFixed(Number(S))),e},i=r.data;y.map((function(e){if(!e.columnName||!e.columnValue)return!1;i=i.filter((function(t){return t[e.columnName]===e.columnValue}))}));var c=[];if(""!==_&&""!==z&&""!==E)switch(z){case"<":c=i.filter((function(e){return e[_]<E}));break;case">":c=i.filter((function(e){return e[_]>E}));break;case"<=":c=i.filter((function(e){return e[_]<=E}));break;case">=":c=i.filter((function(e){return e[_]>=E}));break;case"=":c=isNaN(Number(E))?i.filter((function(e){return String(e[_])===E})):i.filter((function(e){return e[_]===E}));break;case"≠":c=isNaN(Number(E))?i.filter((function(e){return String(e[_])!==E})):i.filter((function(e){return e[_]!==E}));break;default:c=[]}var l=c.length>0?c.map((function(e){return e[w]})):i.map((function(e){return e[w]})),d=i.map((function(e){return e[A]})),u=l.filter((function(e){var t=!1;return(Number(e)||Number.isFinite(Number(e)))&&(t=!0),t})).map(Number),s=d.filter((function(e){var t=!1;return(Number(e)||Number.isFinite(Number(e)))&&(t=!0),t})).map(Number),p="";switch(x){case gt:p=String(u.length);break;case zt:p=String(e(u));break;case yt:p=String(t(u));break;case wt:p=o(u).toString();break;case vt:p=Math.max.apply(Math,u).toString();break;case xt:p=Math.min.apply(Math,u).toString();break;case _t:p=n(u).join(", ");break;default:console.log("Function not recognized: "+x)}var f=null;if(k&&A&&N)switch(N){case gt:f=String(s.length);break;case zt:f=String(e(s));break;case yt:f=String(t(s));break;case wt:f=o(s).toString();break;case vt:f=Math.max.apply(Math,s).toString();break;case xt:f=Math.min.apply(Math,s).toString();break;case _t:f=n(s).join(", ");break;default:console.log("Function not recognized: "+x)}else f=O>0?O:100;return a(p/f*100)}),[w,x,r.data,y,_,z,E,k,A,N,S,O])(),T=(0,e.useCallback)((function(){for(var e=[],n=parseInt(d,10),r=parseInt(u,10),o=function(e,t,n,r,o){var a="x"===t?n%10:"y"===t?Math.floor(n/10):null;return"circle"===e?a*(r+o)+r/2:a*(r+o)},a=0;a<100;a++){var i={shape:l,x:o(l,"x",a,n,r),y:o(l,"y",a,n,r),color:mt[c],opacity:a+1>100-Math.round(C)?1:.35};e.push(i)}return e.map((function(e,r){return"square"===e.shape?t().createElement(m,{className:"cdc-waffle-chart__node",style:{transitionDelay:"".concat(.1*r,"ms")},x:e.x,y:e.y,width:n,height:n,fill:e.color,fillOpacity:e.opacity,key:r}):"person"===e.shape?t().createElement("path",{style:{transform:"translateX(".concat(e.x+n/4,"px) translateY(").concat(e.y,"px) scale(").concat(n/20,")")},fill:e.color,fillOpacity:e.opacity,key:r,d:"M3.75,0a2.5,2.5,0,1,1-2.5,2.5A2.5,2.5,0,0,1,3.75,0M5.625,5.625H5.18125a3.433,3.433,0,0,1-2.8625,0H1.875A1.875,1.875,\n 0,0,0,0,7.5v5.3125a.9375.9375,0,0,0,.9375.9375h.625v5.3125A.9375.9375,0,0,0,2.5,20H5a.9375.9375,0,0,0,\n .9375-.9375V13.75h.625A.9375.9375,0,0,0,7.5,12.8125V7.5A1.875,1.875,0,0,0,5.625,5.625Z"}):t().createElement(v,{className:"cdc-waffle-chart__node",style:{transitionDelay:"".concat(.1*r,"ms")},cx:e.x,cy:e.y,r:n/2,fill:e.color,fillOpacity:e.opacity,key:r})}))}),[c,C,l,d,u]),M=(0,e.useCallback)((function(){return 10*d+9*u}),[d,u]),D=r.fontSize?{fontSize:r.fontSize+"px"}:null;return t().createElement("div",{className:o?"spacing-wrapper":""},t().createElement("section",{className:"cdc-waffle-chart ".concat(c).concat(r.overallFontSize?" font-"+r.overallFontSize:"")},t().createElement("div",{className:"cdc-waffle-chart__container"},i&&t().createElement("header",{"aria-hidden":"true"},t().createElement("div",{className:"cdc-waffle-chart__header"},a()(i))),t().createElement("div",{className:"cdc-waffle-chart__inner-container".concat("vertical"===g?" cdc-waffle-chart--verical":"")},t().createElement("div",{className:"cdc-waffle-chart__chart",style:{width:M()}},t().createElement("svg",{width:M(),height:M()},t().createElement(s,null,T()))),(C||b)&&t().createElement("div",{className:"cdc-waffle-chart__data"},C&&t().createElement("div",{className:"cdc-waffle-chart__data--primary",style:D},p||null,C,f||null),t().createElement("div",{className:"cdc-waffle-chart__data--text"},a()(b)))),h&&t().createElement("div",{className:"cdc-waffle-chart__subtext"},a()(h)))))},bt=function(n){var r=n.configUrl,o=n.config,a=n.isDashboard,i=void 0!==a&&a,c=n.isEditor,l=void 0!==c&&c,d=n.setConfig,u=(0,e.useState)(ut({},dt)),s=u[0],p=u[1],f=(0,e.useState)(!0),m=f[0],h=f[1],b=(0,e.useState)("lg"),v=b[0],g=b[1],y=new L((function(e){for(var t=0,n=e;t<n.length;t++){var r=B(2*n[t].contentRect.width);g(r)}})),w=function(e){Object.keys(dt).forEach((function(t){e[t]&&"object"==typeof e[t]&&!Array.isArray(e[t])&&(e[t]=ut(ut({},dt[t]),e[t]))})),e.runtime={},e.runtime.uniqueId=Date.now(),e.runtime.editorErrorMessage="",p(e)},x=function(){return st(void 0,void 0,void 0,(function(){var e,t,n,a;return pt(this,(function(i){switch(i.label){case 0:return(t=o)?[3,3]:[4,fetch(r)];case 1:return[4,i.sent().json()];case 2:t=i.sent(),i.label=3;case 3:return n=null!==(a=(e=t).data)&&void 0!==a?a:{},e.dataUrl?[4,fetch(e.dataUrl)]:[3,6];case 4:return[4,i.sent().json()];case 5:n=i.sent(),i.label=6;case 6:return e.data=n,w(ut(ut({},dt),e)),h(!1),[2]}}))}))},_=(0,e.useCallback)((function(e){null!==e&&y.observe(e)}),[]);(0,e.useEffect)((function(){console.log("Running empty useEFfect"),x()}),[]),o&&(0,e.useEffect)((function(){console.log("Running last useEFfect"),x()}),[o.data]),(0,e.useEffect)((function(){x()}),[]),o&&(0,e.useEffect)((function(){x()}),[o.data]);var z=t().createElement(X,null);if(!1===m){var E=["cdc-open-viz-module","type-waffle-chart",v,s.theme,"font-"+s.overallFontSize];l&&E.push("is-editor"),z=t().createElement(t().Fragment,null,t().createElement("div",{className:E.join(" "),ref:_},l&&t().createElement(lt,null),t().createElement(ht,{config:s,isEditor:l})))}return t().createElement(G,{component:"WaffleChart"},t().createElement(qe.Provider,{value:{config:s,updateConfig:w,loading:m,data:s.data,setParentConfig:d,isDashboard:i,outerContainerRef:_}},z))},vt="Max",gt="Count",yt="Mean (Average)",wt="Median",xt="Min",_t="Mode",zt="Sum",Et=[gt,vt,yt,wt,xt,_t,zt],kt="<",Ot=">",At="<=",Nt=">=",St="=",Ct="≠",Tt=[kt,Ot,At,Nt,St,Ct]}(),o}()}));
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"Resulted in Death": 25,
|
|
4
|
+
"Number of Overdoses": 600,
|
|
5
|
+
"state": "Alabama",
|
|
6
|
+
"Year": "2010"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"Resulted in Death": 7,
|
|
10
|
+
"Number of Overdoses": 80,
|
|
11
|
+
"state": "Alaska",
|
|
12
|
+
"Year": "2008"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"Resulted in Death": 14,
|
|
16
|
+
"Number of Overdoses": 100,
|
|
17
|
+
"state": "Alaska",
|
|
18
|
+
"Year": "2010"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"Resulted in Death": 17,
|
|
22
|
+
"Number of Overdoses": 400,
|
|
23
|
+
"state": "Alaska",
|
|
24
|
+
"Year": "2012"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"Resulted in Death": 82,
|
|
28
|
+
"Number of Overdoses": 400,
|
|
29
|
+
"state": "Arizona",
|
|
30
|
+
"Year": "2010"
|
|
31
|
+
}
|
|
32
|
+
]
|