@statisticsfinland/pxvisualizer 0.1.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.
Files changed (65) hide show
  1. package/LICENSE.md +202 -0
  2. package/README.md +77 -0
  3. package/dist/pxv.cjs +2 -0
  4. package/dist/pxv.cjs.map +1 -0
  5. package/dist/pxv.modern.js +165 -0
  6. package/dist/pxv.modern.js.map +1 -0
  7. package/dist/pxv.module.js +2 -0
  8. package/dist/pxv.module.js.map +1 -0
  9. package/dist/pxv.umd.js +2 -0
  10. package/dist/pxv.umd.js.map +1 -0
  11. package/dist/types/core/chartOptions/Utility/formatters.d.ts +14 -0
  12. package/dist/types/core/chartOptions/Utility/ordinalIntervals.d.ts +3 -0
  13. package/dist/types/core/chartOptions/Utility/seriesDataBuilder.d.ts +15 -0
  14. package/dist/types/core/chartOptions/Utility/tickPositionerUtilities.d.ts +9 -0
  15. package/dist/types/core/chartOptions/Utility/tickPositioners.d.ts +7 -0
  16. package/dist/types/core/chartOptions/Utility/timeIntervals.d.ts +5 -0
  17. package/dist/types/core/chartOptions/basicHorizontalBarchartOptions.d.ts +3 -0
  18. package/dist/types/core/chartOptions/basicVerticalBarChartOptions.d.ts +3 -0
  19. package/dist/types/core/chartOptions/groupHorizontalBarChartOptions.d.ts +3 -0
  20. package/dist/types/core/chartOptions/groupVerticalBarChartOptions.d.ts +3 -0
  21. package/dist/types/core/chartOptions/lineChartOptions.d.ts +3 -0
  22. package/dist/types/core/chartOptions/percentHorizontalBarChartOptions.d.ts +3 -0
  23. package/dist/types/core/chartOptions/percentVerticalBarChartOptions.d.ts +3 -0
  24. package/dist/types/core/chartOptions/pieChartOptions.d.ts +3 -0
  25. package/dist/types/core/chartOptions/pyramidChartOptions.d.ts +3 -0
  26. package/dist/types/core/chartOptions/scatterPlotOptions.d.ts +3 -0
  27. package/dist/types/core/chartOptions/stackedHorizontalBarChartOptions.d.ts +3 -0
  28. package/dist/types/core/chartOptions/stackedVerticalBarChartOptions.d.ts +3 -0
  29. package/dist/types/core/conversion/helpers.d.ts +7 -0
  30. package/dist/types/core/conversion/index.d.ts +4 -0
  31. package/dist/types/core/conversion/pxGrafDataConverter.d.ts +3 -0
  32. package/dist/types/core/conversion/translations/defaultTranslations.d.ts +3 -0
  33. package/dist/types/core/conversion/translations/index.d.ts +7 -0
  34. package/dist/types/core/conversion/translations/translationManager.d.ts +8 -0
  35. package/dist/types/core/conversion/utilityFunctions.d.ts +5 -0
  36. package/dist/types/core/conversion/viewSorting.d.ts +10 -0
  37. package/dist/types/core/conversion/viewUtils.d.ts +10 -0
  38. package/dist/types/core/highcharts/drawChart.d.ts +4 -0
  39. package/dist/types/core/highcharts/index.d.ts +2 -0
  40. package/dist/types/core/highcharts/themes.d.ts +1 -0
  41. package/dist/types/core/index.d.ts +4 -0
  42. package/dist/types/core/tables/csvTable.d.ts +6 -0
  43. package/dist/types/core/tables/exportingUtils.d.ts +6 -0
  44. package/dist/types/core/tables/htmlTable.d.ts +3 -0
  45. package/dist/types/core/tables/index.d.ts +5 -0
  46. package/dist/types/core/tables/tableUtils.d.ts +3 -0
  47. package/dist/types/core/tables/xlsxTable.d.ts +7 -0
  48. package/dist/types/core/types/icon.d.ts +2 -0
  49. package/dist/types/core/types/index.d.ts +1 -0
  50. package/dist/types/core/types/queryVisualizationResponse.d.ts +96 -0
  51. package/dist/types/core/types/view.d.ts +40 -0
  52. package/dist/types/index.d.ts +2 -0
  53. package/dist/types/react/components/ErrorBoundary/ErrorBoundary.d.ts +17 -0
  54. package/dist/types/react/components/burgerMenu/burgerMenu.d.ts +36 -0
  55. package/dist/types/react/components/burgerMenu/menuItem/menuItem.d.ts +17 -0
  56. package/dist/types/react/components/chart/ErrorInfo.d.ts +5 -0
  57. package/dist/types/react/components/chart/chart.d.ts +19 -0
  58. package/dist/types/react/components/chart/index.d.ts +1 -0
  59. package/dist/types/react/components/chart/tableView.d.ts +11 -0
  60. package/dist/types/react/components/globalStyle/globalStyle.d.ts +2 -0
  61. package/dist/types/react/components/globalStyle/index.d.ts +1 -0
  62. package/dist/types/react/components/icon/icon.d.ts +8 -0
  63. package/dist/types/react/components/index.d.ts +1 -0
  64. package/dist/types/react/index.d.ts +1 -0
  65. package/package.json +99 -0
package/LICENSE.md ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2024 Statistics Finland
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,77 @@
1
+ # PxVisualizer
2
+
3
+ PxVisualizer is used to draw visualizations of PxGraf visualization API responses. The visualizations can be drawn using the provided react components or by using the core functions to draw the visualizations in any javascript enabled environment. The visualizations are drawn using HighCharts library.
4
+
5
+ The software is provided as is and Statistics Finland will **not** offer any support for setting up PxVisualizer or solving issues related to it.
6
+
7
+ **IMPORTANT:** PxVisualizer package uses HighCharts for rendering the visualizations. Please note that commercial use of HighCharts requires a commercial license. Non-commercial use may qualify for a free educational or personal license. Read more about licenses
8
+ in the [HighCharts shop](https://shop.highsoft.com/?utm_source=npmjs&utm_medium=referral&utm_campaign=highchartspage&utm_content=licenseinfo).
9
+
10
+ ## Getting Started
11
+ 1. Installation process
12
+ - npm run build to build a working package, or npm run dev if you intend to develop the package using npm link
13
+ - run npm link in the root folder
14
+ - navigate to the project working directory root folder (the place where package.json resides)
15
+ - run npm link pxvisualizer
16
+ - you will have a symlink created for this project package, you can the import the package as usual in the separate project files (e.g. import {MyAwesomeComponent} from 'pxvisualizer')
17
+ - note that npm install in the projects folder will destroy the symlinks, and you will need to link it again
18
+ - symlink will overwrite the package import from node_modules if a released version of the package is available in package.json to make development easy and fun
19
+ - NOT RECOMMENDED FOR DEVELOPMENT PURPOSES, REACT HAS PROBLEMS WITH LINK WHILE TWO DIFFERENT PROJECTS HAVE REACT THAT THEY DEPEND ON
20
+ 2. Development process using Storybook
21
+ - run npm install if you have not touched this project at all / in a while
22
+ - run npm run storybook
23
+ - Storybook will start in your localhost:6006
24
+ - If you develop a completely new component or add differing configurations to existing components, make a new story for them, visit ./src/stories/verticalBarChart for reference (or see storybook documentation)
25
+ 3. Software dependencies
26
+ - check package.json for dependencies
27
+
28
+ ## Structure
29
+ 1. react
30
+ - contains react specific files, mainly components that can be used in a specific react based projects for visualizing pxgraf data. Depends on React and core folder functionality.
31
+ 2. core
32
+ - contains specific highcharts draw function wrappers and conversion functions necessary to use pxgraf data and highcharts, and can be used anywhere were javascript is enabled. Depends on HighCharts.
33
+ 3. stories
34
+ - contains storybook stories to enable independent development of the library
35
+ - not related to build in any way, all dependencies are dev dependencies
36
+
37
+ \* Do not mix this structure! It will be easier to split to separate projects if needed if we maintain this kind of structure in the files. Possible to split core as a separate package and make specific libraries (e.g. React component library) depend on the core package.
38
+
39
+ ## Build and Test
40
+ - Project is built using microbundle.
41
+ - npm run build will build a working library in ./dist folder
42
+ - npm run dev will build a working library in ./dist folder in watch mode, meaning when changes occur the package will be rebuilt
43
+ - npm run test will run the test cycle (WIP)
44
+
45
+ ## Published NPM module
46
+
47
+ TBA Once the module has been published to NPM registry.
48
+
49
+ ## Versioning
50
+
51
+ The next version you want to publish as @latest, should be set with `npm version major|minor|patch`.
52
+
53
+ Pipeline validates that version you have set is greater than latest already published.
54
+
55
+ ### Versioning in a pipeline explained
56
+
57
+ ```sh
58
+ // PR version 0.0.4 - we are here
59
+ // d version 0.0.3-d.2
60
+ // t version 0.0.3-t.2
61
+ // Latest version 0.0.3
62
+
63
+ // PR version 0.0.4
64
+ // d version 0.0.4-d.0 - now we are here
65
+ // t version 0.0.3-t.2
66
+ // Latest version 0.0.3
67
+
68
+ // PR version 0.0.4
69
+ // d version 0.0.4-d.0
70
+ // t version 0.0.4-t.0 - now we are here
71
+ // Latest version 0.0.3
72
+
73
+ // PR version 0.0.4
74
+ // d version 0.0.4-d.0
75
+ // t version 0.0.4-t.0
76
+ // Latest version 0.0.4 - now we are here
77
+ ```
package/dist/pxv.cjs ADDED
@@ -0,0 +1,2 @@
1
+ var e=require("react"),t=require("decimal.js"),n=require("highcharts"),r=require("highcharts/modules/accessibility.js"),i=require("highcharts/modules/exporting.js"),a=require("highcharts/modules/export-data.js"),o=require("highcharts/modules/offline-exporting.js"),s=require("xlsx"),l=require("highcharts-react-official"),u=require("uuid");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function d(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,t}var f=/*#__PURE__*/c(e),p=/*#__PURE__*/c(t),m=/*#__PURE__*/c(n),h=/*#__PURE__*/d(n),g=/*#__PURE__*/c(r),v=/*#__PURE__*/c(i),y=/*#__PURE__*/c(a),b=/*#__PURE__*/c(o),x=/*#__PURE__*/d(s);function w(){return w=Object.assign?Object.assign.bind():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},w.apply(this,arguments)}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}function C(e,t){return t||(t=e.slice(0)),e.raw=t,e}function k(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 E(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A(e){var t={exports:{}};return e(t,t.exports),t.exports}var T,N=Symbol.for("react.element"),P=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),z=Symbol.for("react.provider"),O=Symbol.for("react.context"),D=Symbol.for("react.server_context"),I=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),G=Symbol.for("react.offscreen");function q(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case N:switch(e=e.type){case j:case M:case V:case L:case $:return e;default:switch(e=e&&e.$$typeof){case D:case O:case I:case _:case R:case z:return e;default:return t}}case P:return t}}}T=Symbol.for("react.module.reference");var B={ContextConsumer:O,ContextProvider:z,Element:N,ForwardRef:I,Fragment:j,Lazy:_,Memo:R,Portal:P,Profiler:M,StrictMode:V,Suspense:L,SuspenseList:$,isAsyncMode:function(){return!1},isConcurrentMode:function(){return!1},isContextConsumer:function(e){return q(e)===O},isContextProvider:function(e){return q(e)===z},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===N},isForwardRef:function(e){return q(e)===I},isFragment:function(e){return q(e)===j},isLazy:function(e){return q(e)===_},isMemo:function(e){return q(e)===R},isPortal:function(e){return q(e)===P},isProfiler:function(e){return q(e)===M},isStrictMode:function(e){return q(e)===V},isSuspense:function(e){return q(e)===L},isSuspenseList:function(e){return q(e)===$},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===j||e===M||e===V||e===L||e===$||e===G||"object"==typeof e&&null!==e&&(e.$$typeof===_||e.$$typeof===R||e.$$typeof===z||e.$$typeof===O||e.$$typeof===I||e.$$typeof===T||void 0!==e.getModuleId)},typeOf:q},F=A(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var h=e.type;switch(h){case i:case o:case a:case d:case f:return h;default:var g=h&&h.$$typeof;switch(g){case u:case l:case c:case m:case p:case s:return g;default:return t}}case r:return t}}}e=Symbol.for("react.module.reference");var v=s,y=n,b=c,x=i,w=m,S=p,C=r,k=o,E=a,A=d,T=f,N=!1,P=!1;t.ContextConsumer=l,t.ContextProvider=v,t.Element=y,t.ForwardRef=b,t.Fragment=x,t.Lazy=w,t.Memo=S,t.Portal=C,t.Profiler=k,t.StrictMode=E,t.Suspense=A,t.SuspenseList=T,t.isAsyncMode=function(e){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},t.isConcurrentMode=function(e){return P||(P=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},t.isContextConsumer=function(e){return g(e)===l},t.isContextProvider=function(e){return g(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return g(e)===c},t.isFragment=function(e){return g(e)===i},t.isLazy=function(e){return g(e)===m},t.isMemo=function(e){return g(e)===p},t.isPortal=function(e){return g(e)===r},t.isProfiler=function(e){return g(e)===o},t.isStrictMode=function(e){return g(e)===a},t.isSuspense=function(e){return g(e)===d},t.isSuspenseList=function(e){return g(e)===f},t.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===o||t===a||t===d||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===p||t.$$typeof===s||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},t.typeOf=g}()}),H=A(function(e){e.exports="production"===process.env.NODE_ENV?B:F});function W(e){function t(e,r,l,u,f){for(var p,m,h,g,x,S=0,C=0,k=0,E=0,A=0,M=0,O=h=p=0,I=0,L=0,$=0,R=0,_=l.length,G=_-1,q="",B="",F="",H="";I<_;){if(m=l.charCodeAt(I),I===G&&0!==C+E+k+S&&(0!==C&&(m=47===C?10:47),E=k=S=0,_++,G++),0===C+E+k+S){if(I===G&&(0<L&&(q=q.replace(d,"")),0<q.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:q+=l.charAt(I)}m=59}switch(m){case 123:for(p=(q=q.trim()).charCodeAt(0),h=1,R=++I;I<_;){switch(m=l.charCodeAt(I)){case 123:h++;break;case 125:h--;break;case 47:switch(m=l.charCodeAt(I+1)){case 42:case 47:e:{for(O=I+1;O<G;++O)switch(l.charCodeAt(O)){case 47:if(42===m&&42===l.charCodeAt(O-1)&&I+2!==O){I=O+1;break e}break;case 10:if(47===m){I=O+1;break e}}I=O}}break;case 91:m++;case 40:m++;case 34:case 39:for(;I++<G&&l.charCodeAt(I)!==m;);}if(0===h)break;I++}if(h=l.substring(R,I),0===p&&(p=(q=q.replace(c,"").trim()).charCodeAt(0)),64===p){switch(0<L&&(q=q.replace(d,"")),m=q.charCodeAt(1)){case 100:case 109:case 115:case 45:L=r;break;default:L=V}if(R=(h=t(r,L,h,m,f+1)).length,0<z&&(x=s(3,h,L=n(V,q,$),r,N,T,R,m,f,u),q=L.join(""),void 0!==x&&0===(R=(h=x.trim()).length)&&(m=0,h="")),0<R)switch(m){case 115:q=q.replace(w,o);case 100:case 109:case 45:h=q+"{"+h+"}";break;case 107:h=(q=q.replace(v,"$1 $2"))+"{"+h+"}",h=1===j||2===j&&a("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=q+h,112===u&&(B+=h,h="")}else h=""}else h=t(r,n(r,q,$),h,u,f+1);F+=h,h=$=L=O=p=0,q="",m=l.charCodeAt(++I);break;case 125:case 59:if(1<(R=(q=(0<L?q.replace(d,""):q).trim()).length))switch(0===O&&(p=q.charCodeAt(0),45===p||96<p&&123>p)&&(R=(q=q.replace(" ",":")).length),0<z&&void 0!==(x=s(1,q,r,e,N,T,B.length,u,f,u))&&0===(R=(q=x.trim()).length)&&(q="\0\0"),p=q.charCodeAt(0),m=q.charCodeAt(1),p){case 0:break;case 64:if(105===m||99===m){H+=q+l.charAt(I);break}default:58!==q.charCodeAt(R-1)&&(B+=i(q,p,m,q.charCodeAt(2)))}$=L=O=p=0,q="",m=l.charCodeAt(++I)}}switch(m){case 13:case 10:47===C?C=0:0===1+p&&107!==u&&0<q.length&&(L=1,q+="\0"),0<z*D&&s(0,q,r,e,N,T,B.length,u,f,u),T=1,N++;break;case 59:case 125:if(0===C+E+k+S){T++;break}default:switch(T++,g=l.charAt(I),m){case 9:case 32:if(0===E+S+C)switch(A){case 44:case 58:case 9:case 32:g="";break;default:32!==m&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===E+C+S&&(L=$=1,g="\f"+g);break;case 108:if(0===E+C+S+P&&0<O)switch(I-O){case 2:112===A&&58===l.charCodeAt(I-3)&&(P=A);case 8:111===M&&(P=M)}break;case 58:0===E+C+S&&(O=I);break;case 44:0===C+k+E+S&&(L=1,g+="\r");break;case 34:case 39:0===C&&(E=E===m?0:0===E?m:E);break;case 91:0===E+C+k&&S++;break;case 93:0===E+C+k&&S--;break;case 41:0===E+C+S&&k--;break;case 40:0===E+C+S&&(0===p&&(2*A+3*M==533||(p=1)),k++);break;case 64:0===C+k+E+S+O+h&&(h=1);break;case 42:case 47:if(!(0<E+S+k))switch(C){case 0:switch(2*m+3*l.charCodeAt(I+1)){case 235:C=47;break;case 220:R=I,C=42}break;case 42:47===m&&42===A&&R+2!==I&&(33===l.charCodeAt(R+2)&&(B+=l.substring(R,I+1)),g="",C=0)}}0===C&&(q+=g)}M=A,A=m,I++}if(0<(R=B.length)){if(L=r,0<z&&void 0!==(x=s(2,B,L,e,N,T,R,u,f,u))&&0===(B=x).length)return H+B+F;if(B=L.join(",")+"{"+B+"}",0!=j*P){switch(2!==j||a(B,2)||(P=0),P){case 111:B=B.replace(b,":-moz-$1")+B;break;case 112:B=B.replace(y,"::-webkit-input-$1")+B.replace(y,"::-moz-$1")+B.replace(y,":-ms-input-$1")+B}P=0}}return H+B+F}function n(e,t,n){var i=t.trim().split(h);t=i;var a=i.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";s<a;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<a;++s)for(var u=0;u<o;++u)t[l++]=r(e[u]+" ",i[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var o=e+";",s=2*t+3*n+4*r;if(944===s){e=o.indexOf(":",9)+1;var l=o.substring(e,o.length-1).trim();return l=o.substring(0,e).trim()+l+";",1===j||2===j&&a(l,1)?"-webkit-"+l+l:l}if(0===j||2===j&&!a(o,1))return o;switch(s){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(A,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(l=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+l+o;case 1005:return p.test(o)?o.replace(f,":-webkit-")+o.replace(f,":-moz-")+o:o;case 1e3:switch(t=(l=o.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=o.replace(x,"tb");break;case 232:l=o.replace(x,"tb-rl");break;case 220:l=o.replace(x,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+l+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,s=(l=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+o.replace(l,"-webkit-"+l)+";"+o.replace(l,"-ms-"+l+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return l=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+l+"-ms-flex-"+l+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(C,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(C,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):o.replace(l,"-webkit-"+l)+o.replace(l,"-moz-"+l.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===n+r&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+o}return o}function a(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),O(2!==t?r:r.replace(k,"$1"),n,t)}function o(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,a,o,s,l,c){for(var d,f=0,p=t;f<z;++f)switch(d=M[f].call(u,e,p,n,r,i,a,o,s,l,c)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(O=null,e?"function"!=typeof e?j=1:(j=2,O=e):j=0),l}function u(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<z){var i=s(-1,n,r,r,N,T,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var a=t(V,r,n,0,0);return 0<z&&void 0!==(i=s(-2,a,r,r,N,T,a.length,0,0,0))&&(a=i),P=0,T=N=1,a}var c=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,m=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,C=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,A=/([^-])(image-set\()/,T=1,N=1,P=0,j=1,V=[],M=[],z=0,O=null,D=0;return u.use=function e(t){switch(t){case void 0:case null:z=M.length=0;break;default:if("function"==typeof t)M[z++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else D=0|!!t}return e},u.set=l,void 0!==e&&l(e),u}var U={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Y(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Z=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,X=/* #__PURE__ */Y(function(e){return Z.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),K="function"==typeof Symbol&&Symbol.for,J=K?Symbol.for("react.element"):60103,Q=K?Symbol.for("react.portal"):60106,ee=K?Symbol.for("react.fragment"):60107,te=K?Symbol.for("react.strict_mode"):60108,ne=K?Symbol.for("react.profiler"):60114,re=K?Symbol.for("react.provider"):60109,ie=K?Symbol.for("react.context"):60110,ae=K?Symbol.for("react.async_mode"):60111,oe=K?Symbol.for("react.concurrent_mode"):60111,se=K?Symbol.for("react.forward_ref"):60112,le=K?Symbol.for("react.suspense"):60113,ue=K?Symbol.for("react.suspense_list"):60120,ce=K?Symbol.for("react.memo"):60115,de=K?Symbol.for("react.lazy"):60116,fe=K?Symbol.for("react.block"):60121,pe=K?Symbol.for("react.fundamental"):60117,me=K?Symbol.for("react.responder"):60118,he=K?Symbol.for("react.scope"):60119;function ge(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case J:switch(e=e.type){case ae:case oe:case ee:case ne:case te:case le:return e;default:switch(e=e&&e.$$typeof){case ie:case se:case de:case ce:case re:return e;default:return t}}case Q:return t}}}function ve(e){return ge(e)===oe}var ye={AsyncMode:ae,ConcurrentMode:oe,ContextConsumer:ie,ContextProvider:re,Element:J,ForwardRef:se,Fragment:ee,Lazy:de,Memo:ce,Portal:Q,Profiler:ne,StrictMode:te,Suspense:le,isAsyncMode:function(e){return ve(e)||ge(e)===ae},isConcurrentMode:ve,isContextConsumer:function(e){return ge(e)===ie},isContextProvider:function(e){return ge(e)===re},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===J},isForwardRef:function(e){return ge(e)===se},isFragment:function(e){return ge(e)===ee},isLazy:function(e){return ge(e)===de},isMemo:function(e){return ge(e)===ce},isPortal:function(e){return ge(e)===Q},isProfiler:function(e){return ge(e)===ne},isStrictMode:function(e){return ge(e)===te},isSuspense:function(e){return ge(e)===le},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===ee||e===oe||e===ne||e===te||e===le||e===ue||"object"==typeof e&&null!==e&&(e.$$typeof===de||e.$$typeof===ce||e.$$typeof===re||e.$$typeof===ie||e.$$typeof===se||e.$$typeof===pe||e.$$typeof===me||e.$$typeof===he||e.$$typeof===fe)},typeOf:ge},be=A(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case u:case c:case i:case o:case a:case f:return p;default:var g=p&&p.$$typeof;switch(g){case l:case d:case h:case m:case s:return g;default:return t}}case r:return t}}}var w=c,S=l,C=s,k=n,E=d,A=i,T=h,N=m,P=r,j=o,V=a,M=f,z=!1;function O(e){return x(e)===c}t.AsyncMode=u,t.ConcurrentMode=w,t.ContextConsumer=S,t.ContextProvider=C,t.Element=k,t.ForwardRef=E,t.Fragment=A,t.Lazy=T,t.Memo=N,t.Portal=P,t.Profiler=j,t.StrictMode=V,t.Suspense=M,t.isAsyncMode=function(e){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(e)||x(e)===u},t.isConcurrentMode=O,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===h},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===r},t.isProfiler=function(e){return x(e)===o},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===c||e===o||e===a||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===y||e.$$typeof===b||e.$$typeof===g)},t.typeOf=x}()}),xe=A(function(e){e.exports="production"===process.env.NODE_ENV?ye:be}),we={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Se={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ce={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ke={};function Ee(e){return xe.isMemo(e)?Ce:ke[e.$$typeof]||we}ke[xe.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ke[xe.Memo]=Ce;var Ae=Object.defineProperty,Te=Object.getOwnPropertyNames,Ne=Object.getOwnPropertySymbols,Pe=Object.getOwnPropertyDescriptor,je=Object.getPrototypeOf,Ve=Object.prototype,Me=function e(t,n,r){if("string"!=typeof n){if(Ve){var i=je(n);i&&i!==Ve&&e(t,i,r)}var a=Te(n);Ne&&(a=a.concat(Ne(n)));for(var o=Ee(t),s=Ee(n),l=0;l<a.length;++l){var u=a[l];if(!(Se[u]||r&&r[u]||s&&s[u]||o&&o[u])){var c=Pe(n,u);try{Ae(t,u,c)}catch(e){}}}}return t};function ze(){return(ze=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}).apply(this,arguments)}var Oe=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},De=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!H.typeOf(e)},Ie=Object.freeze([]),Le=Object.freeze({});function $e(e){return"function"==typeof e}function Re(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function _e(e){return e&&"string"==typeof e.styledComponentId}var Ge="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",qe="undefined"!=typeof window&&"HTMLElement"in window,Be=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV)),Fe={},He="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function We(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach(function(t){e=e.replace(/%[a-z]/,t)}),e}function Ue(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw"production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(We.apply(void 0,[He[e]].concat(n)).trim())}var Ye=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&Ue(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=r;a<i;a++)this.groupSizes[a]=0}for(var o=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(o,t[s])&&(this.groupSizes[e]++,o++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,a=r;a<i;a++)t+=this.tag.getRule(a)+"/*!sc*/\n";return t},e}(),Ze=new Map,Xe=new Map,Ke=1,Je=function(e){if(Ze.has(e))return Ze.get(e);for(;Xe.has(Ke);)Ke++;var t=Ke++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&Ue(16,""+t),Ze.set(e,t),Xe.set(t,e),t},Qe=function(e){return Xe.get(e)},et=function(e,t){t>=Ke&&(Ke=t+1),Ze.set(e,t),Xe.set(t,e)},tt="style["+Ge+'][data-styled-version="5.3.11"]',nt=new RegExp("^"+Ge+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),rt=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a<o;a++)(r=i[a])&&e.registerName(t,r)},it=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],i=0,a=n.length;i<a;i++){var o=n[i].trim();if(o){var s=o.match(nt);if(s){var l=0|parseInt(s[1],10),u=s[2];0!==l&&(et(u,l),rt(e,u,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(o)}}},at=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(Ge))return r}}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(Ge,"active"),r.setAttribute("data-styled-version","5.3.11");var o="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},ot=function(){function e(e){var t=this.element=at(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}Ue(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),st=function(){function e(e){var t=this.element=at(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),lt=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),ut=qe,ct={isServer:!qe,useCSSOMInjection:!Be},dt=function(){function e(e,t,n){void 0===e&&(e=Le),void 0===t&&(t={}),this.options=ze({},ct,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&qe&&ut&&(ut=!1,function(e){for(var t=document.querySelectorAll(tt),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(Ge)&&(it(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return Je(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(ze({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new lt(i):r?new ot(i):new st(i),new Ye(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Je(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Je(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Je(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var a=Qe(i);if(void 0!==a){var o=e.names.get(a),s=t.getGroup(i);if(o&&s&&o.size){var l=Ge+".g"+i+'[id="'+a+'"]',u="";void 0!==o&&o.forEach(function(e){e.length>0&&(u+=e+",")}),r+=""+s+l+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),ft=/(a)(d)/gi,pt=function(e){return String.fromCharCode(e+(e>25?39:97))};function mt(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=pt(t%52)+n;return(pt(t%52)+n).replace(ft,"$1-$2")}var ht=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},gt=function(e){return ht(5381,e)};function vt(e){for(var t=0;t<e.length;t+=1){var n=e[t];if($e(n)&&!_e(n))return!1}return!0}var yt=gt("5.3.11"),bt=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&vt(e),this.componentId=t,this.baseHash=ht(yt,t),this.baseStyle=n,dt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var a=Dt(this.rules,e,t,n).join(""),o=mt(ht(this.baseHash,a)>>>0);if(!t.hasNameForId(r,o)){var s=n(a,"."+o,void 0,r);t.insertRules(r,o,s)}i.push(o),this.staticRulesId=o}else{for(var l=this.rules.length,u=ht(this.baseHash,n.hash),c="",d=0;d<l;d++){var f=this.rules[d];if("string"==typeof f)c+=f,"production"!==process.env.NODE_ENV&&(u=ht(u,f+d));else if(f){var p=Dt(f,e,t,n),m=Array.isArray(p)?p.join(""):p;u=ht(u,m+d),c+=m}}if(c){var h=mt(u>>>0);if(!t.hasNameForId(r,h)){var g=n(c,"."+h,void 0,r);t.insertRules(r,h,g)}i.push(h)}}return i.join(" ")},e}(),xt=/^\s*\/\/.*$/gm,wt=[":","[",".","#"],St=f.default.createContext(),Ct=f.default.createContext(),kt=new dt,Et=function(e){var t,n,r,i,a=Le.options,o=Le.plugins,s=void 0===o?Ie:o,l=new W(void 0===a?Le:a),u=[],c=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,a,o,s,l,u,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(i[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}(function(e){u.push(e)}),d=function(e,r,a){return 0===r&&-1!==wt.indexOf(a[n.length])||a.match(i)?e:"."+t};function f(e,a,o,s){void 0===s&&(s="&");var u=e.replace(xt,""),c=a&&o?o+" "+a+" { "+u+" }":u;return t=s,n=a,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),l(o||!a?"":a,c)}return l.use([].concat(s,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,d))},c,function(e){if(-2===e){var t=u;return u=[],t}}])),f.hash=s.length?s.reduce(function(e,t){return t.name||Ue(15),ht(e,t.name)},5381).toString():"",f}();function At(){return e.useContext(St)||kt}function Tt(){return e.useContext(Ct)||Et}var Nt=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Et);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return Ue(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Et),this.name+e.hash},e}(),Pt=/([A-Z])/,jt=/([A-Z])/g,Vt=/^ms-/,Mt=function(e){return"-"+e.toLowerCase()};function zt(e){return Pt.test(e)?e.replace(jt,Mt).replace(Vt,"-ms-"):e}var Ot=function(e){return null==e||!1===e||""===e};function Dt(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o<s;o+=1)""!==(i=Dt(e[o],t,n,r))&&(Array.isArray(i)?a.push.apply(a,i):a.push(i));return a}if(Ot(e))return"";if(_e(e))return"."+e.styledComponentId;if($e(e)){if("function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t)return e;var l=e(t);return"production"!==process.env.NODE_ENV&&H.isElement(l)&&console.warn(Re(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),Dt(l,t,n,r)}var u;return e instanceof Nt?n?(e.inject(n,r),e.getName(r)):e:De(e)?function e(t,n){var r,i,a=[];for(var o in t)t.hasOwnProperty(o)&&!Ot(t[o])&&(Array.isArray(t[o])&&t[o].isCss||$e(t[o])?a.push(zt(o)+":",t[o],";"):De(t[o])?a.push.apply(a,e(t[o],o)):a.push(zt(o)+": "+(r=o,(null==(i=t[o])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in U||r.startsWith("--")?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(a,["}"]):a}(e):e.toString()}var It=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Lt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return $e(e)||De(e)?It(Dt(Oe(Ie,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:It(Dt(Oe(e,n)))}var $t=/invalid hook call/i,Rt=new Set,_t=function(t,n){if("production"!==process.env.NODE_ENV){var r="The component "+t+(n?' with the id of "'+n+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(e){if($t.test(e))a=!1,Rt.delete(r);else{for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];i.apply(void 0,[e].concat(n))}},e.useRef(),a&&!Rt.has(r)&&(console.warn(r),Rt.add(r))}catch(t){$t.test(t.message)&&Rt.delete(r)}finally{console.error=i}}},Gt=function(e,t,n){return void 0===n&&(n=Le),e.theme!==n.theme&&e.theme||t||n.theme},qt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Bt=/(^-|-$)/g;function Ft(e){return e.replace(qt,"-").replace(Bt,"")}var Ht=function(e){return mt(gt(e)>>>0)};function Wt(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Ut=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Yt=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Zt(e,t,n){var r=e[n];Ut(t)&&Ut(r)?Xt(r,t):e[n]=t}function Xt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];if(Ut(o))for(var s in o)Yt(s)&&Zt(e,o[s],s)}return e}var Kt=f.default.createContext(),Jt={};function Qt(t,n,r){var i=_e(t),a=!Wt(t),o=n.attrs,s=void 0===o?Ie:o,l=n.componentId,u=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Ft(e);Jt[n]=(Jt[n]||0)+1;var r=n+"-"+Ht("5.3.11"+n+Jt[n]);return t?t+"-"+r:r}(n.displayName,n.parentComponentId):l,c=n.displayName,d=void 0===c?function(e){return Wt(e)?"styled."+e:"Styled("+Re(e)+")"}(t):c,p=n.displayName&&n.componentId?Ft(n.displayName)+"-"+n.componentId:n.componentId||u,m=i&&t.attrs?Array.prototype.concat(t.attrs,s).filter(Boolean):s,h=n.shouldForwardProp;i&&t.shouldForwardProp&&(h=n.shouldForwardProp?function(e,r,i){return t.shouldForwardProp(e,r,i)&&n.shouldForwardProp(e,r,i)}:t.shouldForwardProp);var g,v=new bt(r,p,i?t.componentStyle:void 0),y=v.isStatic&&0===s.length,b=function(t,n){return function(t,n,r,i){var a=t.attrs,o=t.componentStyle,s=t.defaultProps,l=t.foldedComponentIds,u=t.shouldForwardProp,c=t.styledComponentId,d=t.target,f=function(e,t,n){void 0===e&&(e=Le);var r=ze({},t,{theme:e}),i={};return n.forEach(function(e){var t,n,a,o=e;for(t in $e(o)&&(o=o(r)),o)r[t]=i[t]="className"===t?(a=o[t],(n=i[t])&&a?n+" "+a:n||a):o[t]}),[r,i]}(Gt(n,e.useContext(Kt),s)||Le,n,a),p=f[1],m=function(e,t,n,r){var i=At(),a=Tt(),o=e.generateAndInjectStyles(t?Le:n,i,a);return"production"!==process.env.NODE_ENV&&!t&&r&&r(o),o}(o,i,f[0],"production"!==process.env.NODE_ENV?t.warnTooManyClasses:void 0),h=r,g=p.$as||n.$as||p.as||n.as||d,v=Wt(g),y=p!==n?ze({},n,{},p):n,b={};for(var x in y)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?b.as=y[x]:(u?u(x,X,g):!v||X(x))&&(b[x]=y[x]));return n.style&&p.style!==n.style&&(b.style=ze({},n.style,{},p.style)),b.className=Array.prototype.concat(l,c,m!==c?m:null,n.className,p.className).filter(Boolean).join(" "),b.ref=h,e.createElement(g,b)}(g,t,n,y)};return b.displayName=d,(g=f.default.forwardRef(b)).attrs=m,g.componentStyle=v,g.displayName=d,g.shouldForwardProp=h,g.foldedComponentIds=i?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):Ie,g.styledComponentId=p,g.target=i?t.target:t,g.withComponent=function(e){var t=n.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i}(n,["componentId"]),a=t&&t+"-"+(Wt(e)?e:Ft(Re(e)));return Qt(e,ze({},i,{attrs:m,componentId:a}),r)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?Xt({},t.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(_t(d,p),g.warnTooManyClasses=function(e,t){var n={},r=!1;return function(i){!r&&(n[i]=!0,Object.keys(n).length>=200)&&(console.warn("Over 200 classes were generated for component "+e+(t?' with the id of "'+t+'"':"")+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={})}}(d,p)),Object.defineProperty(g,"toString",{value:function(){return"."+g.styledComponentId}}),a&&Me(g,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var en=function(e){return function e(t,n,r){if(void 0===r&&(r=Le),!H.isValidElementType(n))return Ue(1,String(n));var i=function(){return t(n,r,Lt.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,ze({},r,{},i))},i.attrs=function(i){return e(t,n,ze({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(Qt,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){en[e]=en(e)});var tn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=vt(e),dt.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(Dt(this.rules,t,n,r).join(""),""),a=this.componentId+e;n.insertRules(a,a,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&dt.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);var nn,rn,an,on=en;exports.EVisualizationType=void 0,(nn=exports.EVisualizationType||(exports.EVisualizationType={})).VerticalBarChart="VerticalBarChart",nn.GroupVerticalBarChart="GroupVerticalBarChart",nn.StackedVerticalBarChart="StackedVerticalBarChart",nn.PercentVerticalBarChart="PercentVerticalBarChart",nn.HorizontalBarChart="HorizontalBarChart",nn.GroupHorizontalBarChart="GroupHorizontalBarChart",nn.StackedHorizontalBarChart="StackedHorizontalBarChart",nn.PercentHorizontalBarChart="PercentHorizontalBarChart",nn.PyramidChart="PyramidChart",nn.PieChart="PieChart",nn.LineChart="LineChart",nn.ScatterPlot="ScatterPlot",nn.Table="Table",exports.EVariableType=void 0,(rn=exports.EVariableType||(exports.EVariableType={})).Unknown="N",rn.Time="T",rn.Ordinal="P",rn.Geological="G",rn.Content="C",rn.OtherClassificatory="F",exports.ETimeVariableInterval=void 0,(an=exports.ETimeVariableInterval||(exports.ETimeVariableInterval={})).Week="Week",an.Month="Month",an.Quarter="Quarter",an.HalfYear="HalfYear",an.Year="Year",an.Decade="Decade",an.Irregular="Irregular";var sn={empty:{fi:"",sv:"",en:""},preliminaryData:{fi:"Ennakko",sv:"Preliminär",en:"Preliminary data"},source:{fi:"Lähde",sv:"Källa",en:"Source"},unit:{fi:"Yksikkö",sv:"Enhet",en:"Unit"},graphCreationError:{fi:"Kuviota ei voitu muodostaa",sv:"Diagrammet kunde inte skapas",en:"The graph could not be created"},thousandsSep:{fi:" ",sv:" ",en:","},thousandsSepAccessibility:{fi:"",sv:"",en:","},decimalPoint:{fi:",",sv:",",en:"."},barMultiple:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Flerdimensionellt vertikalt stapeldiagram.",en:"Bar chart with {numSeries} data series."},barSingle:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Vertikalt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnSingle:{fi:"Vaakapylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Horisontellt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnMultiple:{fi:"Vaakapylväskuvio, jossa {numSeries} muuttujaa.",sv:"Flerdimensionellt horisontellt stapeldiagram.",en:"Bar chart with {numSeries} data series."},lineSingle:{fi:"Viivakuvio, jossa {numPoints} havainto{#eq numPoints 1}arvo{else}arvoa{/eq}.",sv:"Linjediagram.",en:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},lineMultiple:{fi:"Viivakuvio, jossa {numSeries} viivaa.",sv:"Flerdimensionellt linjediagram.",en:"Line chart with {numSeries} lines."},pieSingle:{fi:"Piirakkakuvio, jossa {numPoints} {#eq numPoints 1}lohko{else}lohkoa{/eq}.",sv:"Cirkeldiagram.",en:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}."},pieMultiple:{fi:"Piirakkakuvio, jossa {numSeries} piirakkaa.",sv:"Flerdimensionellt cirkeldiagram.",en:"Pie chart with {numSeries} pies."},scatterSingle:{fi:"Hajontakuvio, jossa {numPoints} {#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Spridningsdiagram.",en:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}."},scatterMultiple:{fi:"Hajontakuvio,jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt spridningsdiagram.",en:"Scatter chart with {numSeries} data series."},defaultSingle:{fi:"Kuvio, jossa {numPoints} data{#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Endimensionellt diagram.",en:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},defaultMultiple:{fi:"Kuvio, jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt diagram.",en:"Chart with {numSeries} data series."},defaultChartTitle:{fi:"Kuvio",sv:"Diagrammets rubrik",en:"Chart"},chartMenuLabel:{fi:"Kuvion valikko",sv:"Diagrammets meny",en:"Chart menu"},menuButtonLabel:{fi:"Katso valikko kuviosta {chartTitle}",sv:"Visa diagrammets meny",en:"View chart menu, {chartTitle}"},credits:{fi:"{creditsStr}",sv:"{creditsStr}",en:"{creditsStr}"},legendItem:{fi:"Näytä {itemName}",sv:"Variabelvärde",en:"Show {itemName}"},legendLabel:{fi:"Kuvion selite: {legendTitle}",sv:"Bläddra visuellt i variabelvärden",en:"Chart legend: {legendTitle}"},legendLabelNoTitle:{fi:"Vaihda sarjojen näkyvyyttä, {chartTitle}",sv:"Ingen etikett",en:"Toggle series visibility, {chartTitle}"},contextButtonTitle:{fi:"Kuvion valintamenu",sv:"Diagrammets valmeny",en:"Chart context menu"},downloadPNG:{fi:"Lataa kuvio (png)",sv:"Ladda ner figuren (png)",en:"Download figure (png)"},downloadSVG:{fi:"Lataa kuvio (svg)",sv:"Ladda ner figuren (svg)",en:"Download figure (svg)"},downloadXLSX:{fi:"Lataa taulukko (xlsx)",sv:"Ladda ner tabellen (xlsx)",en:"Download table (xlsx)"},downloadCSV:{fi:"Lataa taulukko (csv)",sv:"Ladda ner tabellen (csv)",en:"Download table (csv)"},rangeCategories:{fi:"Datan arvoalue: {numCategories} luokkaa.",sv:"Diagrammets värdeområde.",en:"Data range: {numCategories} categories."},rangeFromTo:{fi:"Arvot alkavat {rangeFrom} ja päättyvät {rangeTo}.",sv:"Värdena börjar från {rangeFrom} och slutar vid {rangeTo}.",en:"Data ranges from {rangeFrom} to {rangeTo}."},timeRangeDays:{fi:"Arvoja päiviltä {range}.",sv:"Värden för dagarna {range}.",en:"Data range: {range} days."},timeRangeHours:{fi:"Arvoja tunneilta {range}",sv:"Värden för timmarna {range}",en:"Data range: {range} hours."},timeRangeMinutes:{fi:"Arvoja minuuteilta {range}",sv:"Värden för minuterna {range}",en:"Data range: {range} minutes."},timeRangeSeconds:{fi:"Arvoja sekunneilta {range}",sv:"Värden för sekunderna {range}",en:"Data range: {range} seconds."},xAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} x-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} x-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},xAxisDescriptionSingular:{fi:"Kuviolla on 1 x-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en x-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}"},yAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} y-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} y-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},yAxisDescriptionSingular:{fi:"Kuviolla on 1 y-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en y-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}"},seriesSummaryBar:{fi:"{series.name}muuttujan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryBarCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumn:{fi:"{series.name}muuttuja, pylvässarja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumnCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryDefault:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryDefaultCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. diagram, ..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLine:{fi:"{series.name}, viiva {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Linje",en:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLineCombination:{fi:"{series.name}, aikasarja {seriesNumber}/{chart.series.length}. Viivassa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. linje, ..variabelns .. Linje",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryPie:{fi:"{series.name}, piirakan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1} lohko {else}lohkoa{/eq}.",sv:"..variabelns .. Sektor",en:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryPieCombination:{fi:"{series.name}, sarja {seriesNumber}/{chart.series.length}. Piirakasta, jossa {series.points.length} {#eq series.points.length 1} lohko{else}lohkoa{/eq}.",sv:"..variabelns .. sektor, ..variabelns .. Sektor",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryScatter:{fi:"{series.name}, hajontakuvio {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. Punkt",en:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryScatterCombination:{fi:"{series.name}, datasarja {seriesNumber}/{chart.series.length}, hajontakuviosta {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. punkt, ..variabelns .. Punkt",en:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},xAxisDescription:{fi:"Toisen X-akselin kuvaus, {name}",sv:"Beskrivning av andra X-axeln, {name}",en:"X axis, {name}"},yAxisDescription:{fi:"Toisen Y-akselin kuvaus, {name}",sv:"Beskrivning av andra Y-axeln, {name}",en:"Y axis, {name}"},endOfChartMarker:{fi:"Kuvion loppu.",sv:"Diagrammets slut.",en:"End of interactive chart."},loading:{fi:"Ladataan...",sv:"Laddar...",en:"Loading..."},chartContainerLabel:{fi:"{title}. Highcharts interactive chart.",sv:"{title}. Highcharts interactive chart.",en:"{title}. Highcharts interactive chart."},toggleTableModeOnText:{fi:"Näytä taulukko",sv:"Visa tabell",en:"View table"},toggleTableModeOffText:{fi:"Näytä kuvio",sv:"Visa figur",en:"View chart"},externalLink:{fi:"Ulkoinen linkki",sv:"Ulkoinen linkki",en:"External link"},quarter:{fi:"vuosineljännes",sv:"kvartal",en:"quarter"},dataMissing:{fi:"Tieto on puuttuva",sv:"Uppgift saknas",en:"Data missing"}},ln={months:{fi:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],sv:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],en:["January","February","March","April","May","June","July","August","September","October","November","December"]},shortMonths:{fi:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],sv:["jan.","febr.","mars","april","maj","juni","juli","aug.","sept.","okt.","nov.","dec."],en:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},numericSymbols:{fi:["k","M","G","T","P","E"],sv:["k","M","G","T","P","E"],en:["k","M","G","T","P","E"]},weekdays:{fi:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],sv:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],en:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ordinalSuffices:{en:["st.","nd.","rd.","th."]}},un=new(/*#__PURE__*/function(){function e(){var e=this;this.Translations=void 0,this.ArrayTranslations=void 0,this.GetAllLanguages=function(){return Object.keys(e.Translations.empty)},this.Translations=sn,this.ArrayTranslations=ln}return e.prototype.AddTranslations=function(e){for(var t in e.Translations)t in this.Translations&&(this.Translations[t]=w({},this.Translations[t],e.Translations[t]));for(var n in e.ArrayTranslations)n in this.ArrayTranslations&&(this.ArrayTranslations[n]=w({},this.ArrayTranslations[n],e.ArrayTranslations[n]))},e}()),cn=un.Translations,dn=un.ArrayTranslations,fn=un.GetAllLanguages,pn=function(e){return e.reduce(function(e,t){return e.map(function(e){return t.map(function(t){return e.concat([t])})}).reduce(function(e,t){return e.concat(t)},[])},[[]])};function mn(e,t,n){return n.findIndex(function(t){return JSON.stringify(t)===JSON.stringify(e)})===t}function hn(e,t){return function(){var n,r,i,a=[];return e.rowVarNames&&e.rowVarNames.length>0&&this.series.name&&a.push((null==(r=e.rowVarNames)?void 0:r.map(function(e){return e[t]}).join(", "))+": "+this.series.name),e.colVarNames&&e.colVarNames.length>0&&this.point.name&&a.push((null==(i=e.colVarNames)?void 0:i.map(function(e){return e[t]}).join(", "))+": "+this.point.name),a.push(En(e,this,t)),null!=(n=this.point.options.custom)&&n.preliminary&&a.push(cn.preliminaryData[t]),a.join("<br/>")}}function gn(e,t){return function(n){var r,i,a,o=[];return e.rowVarNames&&e.rowVarNames.length>0&&n.series.name&&o.push((null==(i=e.rowVarNames)?void 0:i.map(function(e){return e[t]}).join(", "))+": "+An(n.series.name,t)),e.colVarNames&&e.colVarNames.length>0&&n.name&&o.push((null==(a=e.colVarNames)?void 0:a.map(function(e){return e[t]}).join(", "))+": "+An(n.name,t)),o.push(En(e,n,t)),null!=(r=n.options.custom)&&r.preliminary&&o.push(cn.preliminaryData[t]),o.join(", ")}}function vn(e){return function(){return this.value.toLocaleString(e)}}var yn=function(e){return fn().indexOf(e.toLowerCase().trim())>-1?e.toLowerCase().trim():fn()[0]};function bn(e){void 0===e&&(e=null);var t=e&&e>=15?25:50;return function(){return wn(this.value,t)}}function xn(){return function(){return wn(this.name,200)}}var wn=function(e,t){void 0===t&&(t=50);var n=e.toString().length;return e.toString().slice(0,t).trim()+(n>t?"...":"")};function Sn(e,t){return function(n){var r,i,a=e.series[1].rowNameGroup.map(function(e){return e[t]}).join(", "),o=e.series[0].rowNameGroup.map(function(e){return e[t]}).join(", "),s=null==(r=e.colVarNames)?void 0:r.map(function(e){return e[t]}).join(", "),l="";return a&&a.length>0&&n.series.name&&(l+=a+": "+An(n.x.toLocaleString(t),t)+", "),o&&o.length>0&&(l+=o+": "+(n.y&&An(n.y.toLocaleString(t),t))+", "),s&&s.length>0&&e.columnNameGroups&&e.columnNameGroups.length>0&&(l+=s+": "+An(e.columnNameGroups[n.index].map(function(e){return e[t]}).join(", "),t)),null!=(i=n.options.custom)&&i.preliminary&&(l+=", "+cn.preliminaryData[t]),l}}function Cn(e,t){return function(){var n,r,i,a=e.series[1].rowNameGroup.map(function(e){return e[t]}).join(", "),o=e.series[0].rowNameGroup.map(function(e){return e[t]}).join(", "),s=null==(n=e.colVarNames)?void 0:n.map(function(e){return e[t]}).join(", "),l="";return a&&a.length>0&&this.series.name&&(l+=a+": "+this.point.x.toLocaleString(t)+"<br />"),o&&o.length>0&&this.key&&(l+=o+": "+(null==(i=this.point.y)?void 0:i.toLocaleString(t))+"<br />"),s&&s.length>0&&e.columnNameGroups&&e.columnNameGroups.length>0&&(l+=s+": "+e.columnNameGroups[this.point.index].map(function(e){return e[t]}).join(", ")),null!=(r=this.point.options.custom)&&r.preliminary&&(l+="<br />"+cn.preliminaryData[t]),l}}function kn(e,t){var n=e.map(function(e){return e.unit}).filter(mn);if(1===n.length)return n[0][t];if(n.length>1)return e.map(function(e){return e.name[t]+": "+e.unit[t]}).join(", ");throw new Error("Missing required unit data")}function En(e,t,n){return e.visualizationSettings.visualizationType===exports.EVisualizationType.PyramidChart?Math.abs(t.y).toLocaleString(n):e.visualizationSettings.visualizationType==exports.EVisualizationType.PercentHorizontalBarChart||e.visualizationSettings.visualizationType==exports.EVisualizationType.PercentVerticalBarChart?(null==(r=t.percentage)?void 0:r.toFixed(1))+" ("+(null==(i=t.y)?void 0:i.toLocaleString(n))+" "+kn(e.units,n)+")":null!=(a=null==(o=t.y)?void 0:o.toLocaleString(n))?a:"";var r,i,a,o}function An(e,t){if(/^\d{4}[M,Q]\d{1,2}\*?$/.test(e)){var n=e.split("*")[0];if(/^\d{4}M\d{1,2}$/.test(n)){var r=n.split("M");return r[0]+" "+dn.months[t][Number(r[1])-1]}if(/^\d{4}Q\d{1,2}$/.test(n)){var i=n.split("Q");return i[0]+" "+function(e,t){var n=dn.ordinalSuffices[t],r=parseInt(e)-1;return null!=n&&n[r]?""+e+n[r]:e+"."}(i[1],t)+" "+cn.quarter[t]}console.log("Unsupported time pattern")}return e}var Tn=function(e,t,n,r){return void 0===r&&(r=!1),e.series.map(function(i,a){return{index:r?e.series.length-1-a:a,animation:!1,type:t,name:i.rowNameGroup.map(function(e){return e[n]}).join(", "),data:i.series.map(function(t,r){return{y:t.value,name:e.columnNameGroups[r].map(function(e){return e[n]}).join(", "),custom:{preliminary:t.preliminary}}})}})},Nn=1.5,Pn=3,jn=8,Vn=.5;function Mn(e,t,n){return function(){var r,i,a,o=function(e,t,n,r){var i;if(void 0===r&&(r=new p.default(0)),e.greaterThan(t))throw new Error("dataMinValue must me smaller or equal than dataMaxValue");if((e.lessThan(0)&&t.greaterThan(0)?t.minus(e):p.default.max(e.abs(),t.abs())).div(n).lessThanOrEqualTo(r))return r;var a=function(e){var t=Array.from({length:n},function(e,t){return n-t}).reduce(function(t,n){var i,a=function(e){if(e.equals(0))return new p.default(0);var t=p.default.pow(10,p.default.log10(e).floor());return e.div(t).lessThan(Nn)?t.div(10).mul(e.div(t.div(10)).ceil()):e.div(t).lessThan(Pn)?e.mul(2).div(t).ceil().mul(t).div(2):e.div(t).lessThan(jn)?e.div(t).ceil().mul(t):e.div(t.mul(10)).ceil().mul(10).mul(t)}(e.div(n));return a.greaterThanOrEqualTo(r)&&t.push([(i=a,i.equals(0)?0:i.isInteger()?function(e){for(var t=0,n=5;t<50&&e.mod(n).equals(0)&&(t++,e.mod(n*=2).equals(0));)t++,n*=5;return t}(i):function(e){var t=e.toString();if(t.includes("e-")){var n=t.split("e-"),r=Number.parseInt(n[1]);return n[0].endsWith("5")?-2*r+1:-2*r}var i=t.split(".")[1];return i.endsWith("5")?-2*i.length+1:-2*i.length}(i)),a]),t},[]).sort(function(e,t){return t[0]-e[0]});return t.slice(0,Math.max(2,Math.ceil(t.length*Vn))).sort(function(e,t){return e[1].minus(t[1]).toNumber()})}(p.default.max(e.abs(),t.abs()));return e.lessThan(0)&&t.greaterThan(0)?null!=(i=a.map(function(e){return e[1]}).find(function(r){return e.abs().div(r).ceil().plus(t.div(r).ceil()).lessThanOrEqualTo(n)}))?i:new p.default(NaN):a[0][1]}(e,t,(r=this.chart.plotWidth,i=p.default.pow(10,p.default.log10(p.default.max(e.abs(),t.abs())).floor()),a=Math.ceil(r/(12*(i.toString().length+(e.isNeg()?1:0))+25)-1),Math.max(a,e.isNegative()&&t.isPositive()?2:1)),n),s=e.greaterThanOrEqualTo(0)?new p.default(0):e.div(o).floor().mul(o),l=t.lessThanOrEqualTo(0)?new p.default(0):t.div(o).ceil().mul(o);return Array.from({length:l.minus(s).div(o).plus(1).toNumber()},function(e,t){return o.mul(t).plus(s).toNumber()})}}function zn(e){var t=null,n=null,r=0;return e.forEach(function(e){e.forEach(function(e){e.value&&(!t||e.value<t)&&(t=e.value),e.value&&(!n||e.value>n)&&(n=e.value),e.precision>r&&(r=e.precision)})}),t&&n?Mn(new p.default(t),new p.default(n),new p.default(Math.pow(10,-r))):function(){return[]}}var On,Dn=function(e){return{accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}}},responsive:{rules:[{condition:{maxHeight:600},chartOptions:{chart:{height:600}}}]},exporting:{enabled:!1,fallbackToExportServer:!1},lang:{accessibility:{thousandsSep:cn.thousandsSepAccessibility[e],credits:cn.credits[e],chartTypes:{barMultiple:cn.barMultiple[e],barSingle:cn.barSingle[e],columnMultiple:cn.columnMultiple[e],columnSingle:cn.columnSingle[e],lineSingle:cn.lineSingle[e],lineMultiple:cn.lineMultiple[e],pieSingle:cn.pieSingle[e],scatterSingle:cn.scatterSingle[e],scatterMultiple:cn.scatterMultiple[e],defaultSingle:cn.defaultSingle[e],defaultMultiple:cn.defaultMultiple[e]},defaultChartTitle:cn.defaultChartTitle[e],exporting:{chartMenuLabel:cn.chartMenuLabel[e],menuButtonLabel:cn.menuButtonLabel[e]},legend:{legendItem:cn.legendItem[e],legendLabel:cn.legendLabel[e],legendLabelNoTitle:cn.legendLabelNoTitle[e]},axis:{rangeCategories:cn.rangeCategories[e],rangeFromTo:cn.rangeFromTo[e],timeRangeDays:cn.timeRangeDays[e],timeRangeHours:cn.timeRangeHours[e],timeRangeMinutes:cn.timeRangeMinutes[e],timeRangeSeconds:cn.timeRangeSeconds[e],xAxisDescriptionPlural:cn.xAxisDescriptionPlural[e],xAxisDescriptionSingular:cn.xAxisDescriptionSingular[e],yAxisDescriptionPlural:cn.yAxisDescriptionPlural[e],yAxisDescriptionSingular:cn.yAxisDescriptionSingular[e]},series:{summary:{bar:cn.seriesSummaryBar[e],barCombination:cn.seriesSummaryBarCombination[e],column:cn.seriesSummaryColumn[e],columnCombination:cn.seriesSummaryColumnCombination[e],default:cn.seriesSummaryDefault[e],defaultCombination:cn.seriesSummaryDefaultCombination[e],line:cn.seriesSummaryLine[e],lineCombination:cn.seriesSummaryLineCombination[e],pie:cn.seriesSummaryPie[e],pieCombination:cn.seriesSummaryPieCombination[e],scatter:cn.seriesSummaryScatter[e],scatterCombination:cn.seriesSummaryScatterCombination[e]},xAxisDescription:cn.xAxisDescription[e],yAxisDescription:cn.yAxisDescription[e]},screenReaderSection:{endOfChartMarker:cn.endOfChartMarker[e]},chartContainerLabel:cn.chartContainerLabel[e]},thousandsSep:cn.thousandsSep[e],decimalPoint:cn.decimalPoint[e],contextButtonTitle:cn.contextButtonTitle[e],downloadCSV:cn.downloadCSV[e],downloadPNG:cn.downloadPNG[e],downloadSVG:cn.downloadSVG[e],months:dn.months[e],shortMonths:dn.shortMonths[e],weekdays:dn.weekdays[e],loading:cn.loading[e],numericSymbols:null},colors:["#1a56ec","#f2644c","#1b3160","#9c8d87","#26625d","#7791e8","#8c1131","#878eaf","#c73268","#288c72"],chart:{style:{fontFamily:'"Barlow Semi Condensed", Verdana, sans-serif'},spacingBottom:30,spacingLeft:20,height:"56.25%"},tooltip:{enabled:!0,headerFormat:"{point.key}<br/>",pointFormat:"{point.y}",backgroundColor:"#ffffff",outside:!0,style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},title:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"500",textAlign:"left"},align:"left",margin:45},subtitle:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"400"},align:"left"},credits:{position:{align:"left",x:5},style:{color:"#000",fontSize:"1rem",fontWeight:"400",textAlign:"left",cursor:"default"},href:""},yAxis:{title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400",left:0,textAlign:"left",textOverflow:"ellipsis"},align:"high",rotation:0,textAlign:"left",offset:0,y:-15,x:55,reserveSpace:!1},lineColor:"#000",lineWidth:1,gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},autoRotation:[0],allowOverlap:!1,formatter:vn(e)}},xAxis:{labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},allowOverlap:!1,autoRotation:[0]},title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},lineColor:"#000",lineWidth:1,crosshair:!0},legend:{enabled:!1,itemStyle:{fontSize:"1rem",fontWeight:"400",color:"#000"},align:"center"},plotOptions:{pie:{dataLabels:{enabled:!0,useHTML:!0,connectorShape:"crookedLine",connectorColor:"#000000",style:{fontSize:"1rem",fontWeight:"400",color:"#000",textOverflow:"crop"}}},column:{groupPadding:.2,pointPadding:.01},bar:{groupPadding:.2,pointPadding:.01},series:{animation:!1}}}};function In(e,t){if(t){var n=new Date(t);switch(e){case exports.ETimeVariableInterval.Irregular:case exports.ETimeVariableInterval.Week:return;case exports.ETimeVariableInterval.Month:return{pointStart:n.getTime(),pointIntervalUnit:"month"};case exports.ETimeVariableInterval.Quarter:case exports.ETimeVariableInterval.HalfYear:return;case exports.ETimeVariableInterval.Year:return{pointStart:n.getTime(),pointIntervalUnit:"year"}}}}function Ln(e,t){if(e.seriesType!==On.Time)return e.seriesType===On.Ordinal?function(e,t){return{type:"category",categories:e.columnNameGroups.map(function(e){return e.map(function(e){return e[t]}).join(", ")}),ordinal:!0,tickPositioner:(n=Math.max.apply(Math,e.series.map(function(e){return e.series.length})),r=Math.max.apply(Math,e.columnNameGroups.map(function(e){return e.reduce(function(e,n){return(e>0?1:0)+e+n[t].length},0)})),function(){var e=Math.ceil(n*r*10/this.chart.plotWidth),t=Math.ceil(n/e);return Array.from({length:t},function(t,n){return n*e})})};var n,r}(e,t):{type:"category",categories:e.columnNameGroups.map(function(e){return e.map(function(e){return e[t]}).join(", ")}),labels:{autoRotation:[-45]}};switch(e.visualizationSettings.timeVariableIntervals){case exports.ETimeVariableInterval.Week:return $n(e,t);case exports.ETimeVariableInterval.Month:return Rn();case exports.ETimeVariableInterval.Quarter:return _n(e,t);case exports.ETimeVariableInterval.HalfYear:return Gn(e,t);case exports.ETimeVariableInterval.Year:return{type:"datetime"};default:return{type:"category",categories:e.columnNameGroups.map(function(e){return e.map(function(e){return e[t]}).join(", ")})}}}!function(e){e[e.Time=0]="Time",e[e.Ordinal=1]="Ordinal",e[e.Nominal=2]="Nominal"}(On||(On={}));var $n=function(e,t){return{type:"linear",ordinal:!1,labels:{formatter:function(){return e.columnNameGroups[Number(this.value)].map(function(e){return e[t]}).join(", ")}}}},Rn=function(e,t){return{type:"datetime",ordinal:!1,labels:{formatter:function(){return m.default.dateFormat("%YM%m",Number(this.value))}}}},_n=function(e,t){var n,r,i;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(function(e){return e[t]}).join(", "):""}},tickPositioner:(r=Math.max.apply(Math,e.series.map(function(e){return e.series.length})),i=new Date(null!=(n=e.visualizationSettings.timeSeriesStartingPoint)?n:""),function(){var e=function(e){return e<=2?Math.ceil(e):e<=4?4:e<=20?4*Math.ceil(e/4):e<=40?20*Math.ceil(e/20):40*Math.ceil(e/40)}(60*r/this.chart.plotWidth),t=function(e,t){var n=(4*t.getFullYear()+Math.floor(t.getMonth()/3))%e;return n>0?e-n:0}(e,i),n=Math.ceil((r-t)/e);return Array.from({length:n},function(n,r){return t+r*e})})}},Gn=function(e,t){var n,r,i;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(function(e){return e[t]}).join(", "):""}},tickPositioner:(r=Math.max.apply(Math,e.series.map(function(e){return e.series.length})),i=new Date(null!=(n=e.visualizationSettings.timeSeriesStartingPoint)?n:""),function(){var e=function(e){return e<=2?Math.ceil(e):e<=10?2*Math.ceil(e/2):e<=20?10*Math.ceil(e/10):20*Math.ceil(e/20)}(60*r/this.chart.plotWidth),t=function(e,t){var n=(2*t.getFullYear()+Math.floor(t.getMonth()/6))%e;return n>0?e-n:0}(e,i),n=Math.ceil((r-t)/e);return Array.from({length:n},function(n,r){return t+r*e})})}},qn=function(e,t){return"\n "+e[1].rowNameGroup.map(function(e){return e[t]}).join(", ")+": {point.x}<br/>\n "+e[0].rowNameGroup.map(function(e){return e[t]}).join(", ")+": {point.y}\n "},Bn=function(e,t){switch(t.visualizationSettings.visualizationType){case exports.EVisualizationType.LineChart:return function(e,t){var n,r,i=null==(n=Dn(t).tooltip)?void 0:n.style,a=null!=(r=e.visualizationSettings)&&r.cutValueAxis?void 0:0;return{accessibility:{point:{descriptionFormatter:gn(e,t)}},chart:{type:"line"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(function(e){return e[t]}).join(" | ")},xAxis:w({},Ln(e,t),{gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5}),yAxis:{softMin:a,softMax:a,title:{text:kn(e.units,t)},plotLines:[{value:0,color:"#000",width:1}]},tooltip:{formatter:hn(e,t)},plotOptions:{line:{dataLabels:{enabled:e.visualizationSettings.showDataPoints,format:"{point.y}",style:i},marker:{enabled:!1}},series:In(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:{enabled:e.series.length>1,labelFormatter:xn()},credits:{text:cn.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ")},series:Tn(e,"line",t),exporting:{enabled:!1}}}(t,e);case exports.EVisualizationType.VerticalBarChart:return function(e,t){var n,r=null==(n=Dn(t).tooltip)?void 0:n.style;return{accessibility:{point:{descriptionFormatter:gn(e,t)}},chart:{type:"column"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(function(e){return e[t]}).join(" | ")},xAxis:Ln(e,t),yAxis:{softMin:0,softMax:0,title:{text:kn(e.units,t)},plotLines:[{value:0,color:"#000",width:1}]},plotOptions:{series:w({},In(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:r,useHTML:!0,formatter:function(){var e=this.point;return'<span style="background-color: '+(e.updateNeeded?"rgb(255, 255, 255)":"rgba(0, 0, 0, 0)")+"; border: 1px solid "+(e.updateNeeded?"rgba(0, 0, 0, 1)":"rgba(0, 0, 0, 0)")+';">'+this.y+"</span>"}}})},credits:{text:cn.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ")},series:Tn(e,"column",t),tooltip:{formatter:hn(e,t)},exporting:{enabled:!1}}}(t,e);case exports.EVisualizationType.HorizontalBarChart:return function(e,t){var n,r=null==(n=Dn(t).tooltip)?void 0:n.style,i={accessibility:{point:{descriptionFormatter:gn(e,t)}},chart:{type:"bar",spacingBottom:60},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(function(e){return e[t]}).join(" | ")},xAxis:{categories:e.columnNameGroups.map(function(e){return e.map(function(e){return e[t]}).join(", ")}),labels:{formatter:bn(e.columnNameGroups.length),style:{width:200}}},yAxis:{softMin:0,max:100,tickPositioner:zn(e.series.map(function(e){return e.series})),title:{text:kn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},plotLines:[{value:0,color:"#000",width:1}]},legend:{enabled:!1},series:Tn(e,"bar",t),credits:{text:cn.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ")},tooltip:{formatter:hn(e,t)},plotOptions:{series:{dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:r,useHTML:!0,formatter:function(){var e=this.point;return'<span style="background-color: '+(e.updateNeeded?"rgb(255, 255, 255)":"rgba(0, 0, 0, 0)")+"; border: 1px solid "+(e.updateNeeded?"rgba(0, 0, 0, 1)":"rgba(0, 0, 0, 0)")+';">'+this.y+"</span>"}}}}};return i}(t,e);case exports.EVisualizationType.GroupVerticalBarChart:return function(e,t){var n,r=null==(n=Dn(t).tooltip)?void 0:n.style;return{accessibility:{point:{descriptionFormatter:gn(e,t)}},chart:{type:"column"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(function(e){return e[t]}).join(" | ")},xAxis:Ln(e,t),yAxis:{softMin:0,softMax:0,title:{text:kn(e.units,t)},plotLines:[{value:0,color:"#000",width:1}]},plotOptions:{series:w({},In(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:r,useHTML:!0,formatter:function(){var e=this.point;return'<span style="background-color: '+(e.updateNeeded?"rgb(255, 255, 255)":"rgba(0, 0, 0, 0)")+"; border: 1px solid "+(e.updateNeeded?"rgba(0, 0, 0, 1)":"rgba(0, 0, 0, 0)")+';">'+this.y+"</span>"}}})},legend:{enabled:!0,labelFormatter:xn()},series:Tn(e,"column",t),credits:{text:cn.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ")},tooltip:{formatter:hn(e,t)}}}(t,e);case exports.EVisualizationType.GroupHorizontalBarChart:return function(e,t){var n,r=null==(n=Dn(t).tooltip)?void 0:n.style,i={accessibility:{point:{descriptionFormatter:gn(e,t)}},chart:{type:"bar"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(function(e){return e[t]}).join(" | ")},xAxis:{categories:e.columnNameGroups.map(function(e){return e.map(function(e){return e[t]}).join(", ")}),labels:{formatter:bn(e.columnNameGroups.length),style:{width:200}}},yAxis:{softMin:0,softMax:0,tickPositioner:zn(e.series.map(function(e){return e.series})),title:{text:kn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},plotLines:[{value:0,color:"#000",width:1}]},legend:{enabled:!0,layout:"vertical",margin:30},series:Tn(e,"bar",t),credits:{text:cn.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ")},tooltip:{formatter:hn(e,t)},plotOptions:{series:{dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:r,useHTML:!0,formatter:function(){var e=this.point;return'<span style="background-color: '+(e.updateNeeded?"rgb(255, 255, 255)":"rgba(0, 0, 0, 0)")+"; border: 1px solid "+(e.updateNeeded?"rgba(0, 0, 0, 1)":"rgba(0, 0, 0, 0)")+';">'+this.y+"</span>"}}}}};return i}(t,e);case exports.EVisualizationType.StackedVerticalBarChart:return function(e,t){var n,r=null==(n=Dn(t).tooltip)?void 0:n.style;return{accessibility:{point:{descriptionFormatter:gn(e,t)}},chart:{type:"column"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(function(e){return e[t]}).join(" | ")},xAxis:Ln(e,t),yAxis:{softMin:0,softMax:0,title:{text:kn(e.units,t)},plotLines:[{value:0,color:"#000",width:1}]},plotOptions:{column:{stacking:"normal",dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:r,useHTML:!0,formatter:function(){return'<span style="background-color: rgb(255, 255, 255); border: 1px solid rgba(0, 0, 0, 1);">'+this.y+"</span>"}}},series:In(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:{enabled:!0,layout:"vertical"},series:Tn(e,"column",t,!0),credits:{text:cn.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ")},tooltip:{formatter:hn(e,t)}}}(t,e);case exports.EVisualizationType.StackedHorizontalBarChart:return function(e,t){var n,r,i,a,o,s=null==(n=Dn(t).tooltip)?void 0:n.style;return{accessibility:{point:{descriptionFormatter:gn(e,t)}},chart:{type:"bar"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(function(e){return e[t]}).join(" | ")},xAxis:{categories:e.columnNameGroups.map(function(e){return e.map(function(e){return e[t]}).join(", ")}),labels:{formatter:bn(e.columnNameGroups.length),style:{width:200}}},yAxis:{softMin:0,softMax:0,tickPositioner:(r=e.series.map(function(e){return e.series}),i=null,a=null,o=0,r[0].forEach(function(e,t){var n=r.reduce(function(e,n){var r;return e+(null!=(r=n[t].value)?r:0)},0);n&&(!i||n<i)&&(i=n),n&&(!a||n>a)&&(a=n),e.precision>o&&(o=e.precision)}),i&&a?Mn(new p.default(i),new p.default(a),new p.default(Math.pow(10,-o))):function(){return[]}),title:{text:kn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},plotLines:[{value:0,color:"#000",width:1}]},plotOptions:{bar:{stacking:"normal",dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:s,useHTML:!0,formatter:function(){return'<span style="background-color: rgb(255, 255, 255); border: 1px solid rgba(0, 0, 0, 1);">'+this.y+"</span>"}}}},legend:{enabled:!0,layout:"horizontal",reversed:!0,margin:30},series:Tn(e,"bar",t,!0),credits:{text:cn.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ")},tooltip:{formatter:hn(e,t)}}}(t,e);case exports.EVisualizationType.PercentVerticalBarChart:return function(e,t){var n,r=null==(n=Dn(t).tooltip)?void 0:n.style;return{accessibility:{point:{descriptionFormatter:gn(e,t)}},chart:{type:"column"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(function(e){return e[t]}).join(" | ")},xAxis:Ln(e,t),yAxis:{min:0,title:{text:"%"},plotLines:[{value:0,color:"#000",width:1}]},plotOptions:{column:{stacking:"percent",dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:r,useHTML:!0,formatter:function(){return'<span style="background-color: rgb(255, 255, 255); border: 1px solid rgba(0, 0, 0, 1);">'+this.y+"</span>"}}},series:In(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:{enabled:!0,layout:"vertical"},series:Tn(e,"column",t,!0),credits:{text:cn.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ")},tooltip:{formatter:hn(e,t)}}}(t,e);case exports.EVisualizationType.PercentHorizontalBarChart:return function(e,t){var n,r=null==(n=Dn(t).tooltip)?void 0:n.style,i={accessibility:{point:{descriptionFormatter:gn(e,t)}},chart:{type:"bar"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(function(e){return e[t]}).join(" | ")},xAxis:{categories:e.columnNameGroups.map(function(e){return e.map(function(e){return e[t]}).join(", ")}),labels:{formatter:bn(e.columnNameGroups.length),style:{width:200}}},yAxis:{min:0,title:{text:"%",style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},plotLines:[{value:0,color:"#000",width:1}]},plotOptions:{bar:{stacking:"percent",dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:r,useHTML:!0,formatter:function(){return'<span style="background-color: rgb(255, 255, 255); border: 1px solid rgba(0, 0, 0, 1);">'+this.y+"</span>"}}}},legend:{enabled:!0,layout:"horizontal",reversed:!0,margin:30},series:Tn(e,"bar",t,!0),credits:{text:cn.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ")},tooltip:{formatter:hn(e,t)}};return i}(t,e);case exports.EVisualizationType.PieChart:return function(e,t){var n,r;return{accessibility:{point:{descriptionFormatter:gn(e,t)}},chart:{type:"pie"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(function(e){return e[t]}).join(" | ")},plotOptions:{pie:{dataLabels:{formatter:(r=null!=(n=e.visualizationSettings.showDataPoints)&&n,function(){var e=r?" ("+Math.round(this.percentage)+"%)":"";return wn(this.point.name,20)+e})}}},tooltip:{formatter:hn(e,t)},series:e.series.map(function(n){return{animation:!1,type:"pie",name:n.rowNameGroup.map(function(e){return e[t]}).join(", "),data:n.series.map(function(n,r){return{y:n.value,name:e.columnNameGroups[r].map(function(e){return e[t]}).join(", "),unit:kn(e.units,t),custom:{preliminary:n.preliminary}}})}}),credits:{text:cn.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ")}}}(t,e);case exports.EVisualizationType.PyramidChart:return function(e,t){var n,r=e.columnNameGroups.map(function(e){return e.map(function(e){return e[t]}).join(", ")}),i=Math.max.apply(Math,e.series.map(function(e){return Math.max.apply(Math,e.series.map(function(e){var t;return null!=(t=e.value)?t:0}))})),a=null==(n=Dn(t).tooltip)?void 0:n.style;return{accessibility:{point:{descriptionFormatter:gn(e,t)}},chart:{type:"bar"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(function(e){return e[t]}).join(" | ")},xAxis:{categories:r,reversed:!1,labels:{style:{width:200}}},yAxis:{min:-Math.abs(i),max:Math.abs(i),title:{text:kn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},labels:{formatter:function(){return Math.abs(this.value).toLocaleString(t)}},plotLines:[{value:0,color:"#000",width:1}]},legend:{enabled:!0,margin:30},series:e.series.map(function(n,r){return{animation:!1,type:"bar",name:n.rowNameGroup.map(function(e){return e[t]}).join(", "),data:n.series.map(function(n,i){return{y:0===r&&n.value?-n.value:n.value,name:e.columnNameGroups[i].map(function(e){return e[t]}).join(", "),custom:{preliminary:n.preliminary}}})}}),credits:{text:cn.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ")},plotOptions:{series:{stacking:"normal",dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:a,useHTML:!0,formatter:function(){return'<span style="background-color: rgb(255, 255, 255); border: 1px solid rgba(0, 0, 0, 1);">'+this.y+"</span>"}}}},tooltip:{formatter:hn(e,t)},exporting:{enabled:!1}}}(t,e);case exports.EVisualizationType.ScatterPlot:return function(e,t){var n,r=null!=(n=e.visualizationSettings)&&n.cutValueAxis?void 0:0;return{accessibility:{point:{descriptionFormatter:Sn(e,t)}},chart:{type:"scatter"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(function(e){return e[t]}).join(" | ")},xAxis:{softMin:0,softMax:0,title:{text:e.series[1].rowNameGroup.map(function(e){return e[t]}).join(", ")},gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,plotLines:[{value:0,color:"#000",width:1}]},yAxis:{softMin:r,softMax:r,title:{text:e.series[0].rowNameGroup.map(function(e){return e[t]}).join(", ")},plotLines:[{value:0,color:"#000",width:1}]},credits:{text:cn.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ")},series:[{animation:!1,type:"scatter",data:e.series[0].series.map(function(t,n){var r,i;return{x:null!=(r=e.series[1].series[n].value)?r:void 0,y:null!=(i=e.series[0].series[n].value)?i:void 0,marker:{symbol:"circle"},custom:{preliminary:e.series[1].series[n].preliminary||e.series[0].series[n].preliminary}}})}],tooltip:{headerFormat:"",pointFormat:qn(e.series,t),formatter:Cn(e,t)},plotOptions:{scatter:{marker:{radius:5*(e.visualizationSettings.markerSize?.01*e.visualizationSettings.markerSize:1)}}},exporting:{enabled:!1}}}(t,e);default:throw new Error("Unsupported chart type")}},Fn=function(e,t,n,r){if(0===e.length)return{};var i=e,a={};if(r){var o=Hn(i,r);if(i=o.updatedArray,a=w({},a,o.parsedValues),0===i.length)return a}if(n){var s=Wn(i,n);if(i=s.updatedArray,a=w({},a,s.parsedValues),0===i.length)return a}return i.forEach(function(e){var n=t.findIndex(function(t){return t.code===e});n>-1&&(a[e]=t[n].type===exports.EVariableType.Time?[t[n].values[t[n].values.length-1].code]:[t[n].values[0].code])}),a},Hn=function(e,t){var n=Object.keys(t),r={},i=e.map(function(e){return n.findIndex(function(t){return t===e})>-1&&t[e].length>0?(r[e]=t[e],""):e}).filter(function(e){return e.length>0});return{parsedValues:r,updatedArray:i}},Wn=function(e,t){var n=Object.keys(t),r={},i=e.map(function(e){var i=n.findIndex(function(t){return t===e});return i>-1?(r[e]=t[n[i]],""):e}).filter(function(e){return e.length>0});return{parsedValues:r,updatedArray:i}},Un=function(e,t){var n,r;return(null!=(n=e.value)?n:0)-(null!=(r=t.value)?r:0)},Yn=function(e,t){var n,r;return(null!=(n=t.value)?n:0)-(null!=(r=e.value)?r:0)};function Zn(e,t,n){return Kn(Xn(e,e.series[t].series,n),t)}function Xn(e,t,n){var r=function(e,t){var n=[].concat(Array(e.length).keys());return n.sort(function(n,r){return t(e[n],e[r])}),n}(t,n),i=r.map(function(t){return e.columnNameGroups[t]}),a=e.series.map(function(e){return function(e,t){return w({},e,{series:t.map(function(t){return e.series[t]})})}(e,r)});return w({},e,{columnNameGroups:i,series:a})}function Kn(e,t){var n=[];return n.push(e.series[t]),e.series.forEach(function(e,r){r!==t&&n.push(e)}),w({},e,{series:n})}function Jn(e,t){var n,r,i,a,o,s,l,u=null!=(n=e.visualizationSettings)&&n.multiselectableVariableCode?function(e,t){var n,r,i=null!=(n=null==(r=e.visualizationSettings)?void 0:r.multiselectableVariableCode)?n:"",a=er(t),o=ur(t),s=t[i].map(function(t){var n,r,s,l=tr(e,w({},o,((n={})[i]=t,n)),a);return function(e,t){return w({},t,{series:t.series.map(function(t){return w({},t,{rowNameGroup:[e].concat(t.rowNameGroup)})})})}(null!=(r=null==(s=e.metaData.find(function(e){return e.code===i}))||null==(s=s.values.find(function(e){return e.code===t}))?void 0:s.name)?r:cn.empty,l)});return function(e){return{header:e[0].header,tableReferenceName:e[0].tableReferenceName,subheaderValues:e[0].subheaderValues,units:e.reduce(function(e,t){return e.concat(t.units)},[]).filter(mn),sources:e.reduce(function(e,t){return e.concat(t.sources)},[]).filter(mn),colVarNames:e[0].colVarNames,rowVarNames:e[0].rowVarNames,selectableVarNames:e[0].selectableVarNames,columnNameGroups:e[0].columnNameGroups,series:e.reduce(function(e,t){return e.concat(t.series)},[]),visualizationSettings:e[0].visualizationSettings,seriesType:e[0].seriesType}}(s)}(e,t):tr(e,ur(t),er(t)),c=(null==(r=u.visualizationSettings)?void 0:r.visualizationType)===exports.EVisualizationType.PercentHorizontalBarChart||(null==(i=u.visualizationSettings)?void 0:i.visualizationType)===exports.EVisualizationType.PercentVerticalBarChart;switch(null==(a=e.visualizationSettings)?void 0:a.sorting){case null:case void 0:case"no_sorting":return u;case"sum":return function(e,t){var n=e.columnNameGroups.map(function(t,n){return{value:e.series.map(function(e){return e.series[n]}).reduce(function(e,t){var n;return e+(null!=(n=t.value)?n:0)},0),precision:0,preliminary:!1}});return Xn(e,n,t)}(u,Yn);case"ascending":return Zn(u,0,Un);case"descending":return Zn(u,0,Yn);default:return c?(o=u,s=Qn(u),l=ir(e),Kn(Xn(o,s.series[l].series,Yn),l)):Zn(u,ir(e),Yn)}}function Qn(e){var t=e.series.map(function(t){return w({},t,{series:t.series.map(function(t,n){var r,i=e.series.reduce(function(e,t){var r;return e+(null!=(r=t.series[n].value)?r:0)},0),a=i&&0!==i?Math.round(100*(null!=(r=t.value)?r:0)/i*10)/10:null,o={value:a,precision:1,preliminary:t.preliminary};return null===a&&(o.missingCode=t.missingCode),o})})});return w({},e,{units:e.units.map(function(e){return{name:e.name,unit:(t=e.unit,Object.keys(t).reduce(function(e,t){return e[t]="%",e},{}))};var t}),series:t})}function er(e){var t={};return Object.entries(e).forEach(function(e){return t[e[0]]=e[1].length}),t}function tr(e,t,n){var r=e.metaData,i=rr(r,e.selectableVariableCodes),a=ar(r),o=function(e,t){var n=rr(e.metaData,e.selectableVariableCodes),r=e.metaData.filter(function(t){return e.rowVariableCodes.includes(t.code)}).filter(function(e){return e.values.length>1}).map(function(e){return e.values}),i=e.metaData.filter(function(t){return e.columnVariableCodes.includes(t.code)}).filter(function(e){return e.values.length>1}).map(function(e){return e.values}),a=pn(i),o=pn(r),s=function(e,t,n){for(var r=0,i=1,a=function(a){var o=e[a].values.findIndex(function(n){return n.code===t[e[a].code]});if(o<0)throw new Error("Provided selected value code can not be found from the metadata");r+=o*n*i,i*=e[a].values.length},o=e.length-1;o>=0;o--)a(o);return r}(n,t,function(e){var t=e.selectableVariableCodes;return e.metaData.filter(function(e){return!t.includes(e.code)}).map(function(e){return e.values.length}).reduce(function(e,t){return e*t},1)}(e)),l=function(e,t){var n,r,i,a,o=ar(e.metaData);return 1===o.values.length?null!=(n=null==(r=o.values[0].contentComponent)?void 0:r.numberOfDecimals)?n:null:e.selectableVariableCodes.includes(o.code)&&e.visualizationSettings.multiselectableVariableCode!==o.code&&null!=(i=null==(a=o.values.find(function(e){return e.code===t[o.code]}))||null==(a=a.contentComponent)?void 0:a.numberOfDecimals)?i:null}(e,t),u=0,c=o.map(function(t){var n,r,i=t.some(function(e){return Object.values(e.name)[0].trim().endsWith("*")}),o=null!=(n=null!=l?l:null==(r=t.find(function(e){return e.contentComponent}))||null==(r=r.contentComponent)?void 0:r.numberOfDecimals)?n:null,c=a.map(function(t){var n,r,a={value:e.data[s+u],precision:null!=(n=null!=o?o:null==(r=t.find(function(e){return e.contentComponent}))||null==(r=r.contentComponent)?void 0:r.numberOfDecimals)?n:0,preliminary:i||t.some(function(e){return Object.values(e.name)[0].trim().endsWith("*")})};return a.value||(a.missingCode=e.missingDataInfo[s+u]),u++,a});return{rowNameGroup:t.map(function(e){return e.name}),series:c}});return{columnNameGroups:a.map(function(e){return e.map(function(e){return e.name})}),series:c}}(e,t);return{header:e.header,tableReferenceName:e.tableReference.name,subheaderValues:or(i,t,n),units:sr(a,t),sources:lr(a,t,function(e){var t;return null!=(t=null==e?void 0:e.source)?t:cn.empty}),columnNameGroups:o.columnNameGroups,series:o.series,colVarNames:nr(e.columnVariableCodes,e.metaData),rowVarNames:nr(e.rowVariableCodes,e.metaData),selectableVarNames:nr(e.selectableVariableCodes,e.metaData),visualizationSettings:e.visualizationSettings,seriesType:cr(e.columnVariableCodes,e.metaData)}}function nr(e,t){return e.reduce(function(e,n){var r,i=null==(r=t.find(function(e){return e.code===n}))?void 0:r.name;return i&&e.push(i),e},[])}function rr(e,t){return e.filter(function(e){return t.includes(e.code)})}function ir(e){var t=e.metaData.find(function(t){return t.code==e.rowVariableCodes[0]}),n=null==t?void 0:t.values.findIndex(function(t){var n;return t.code===(null==(n=e.visualizationSettings)?void 0:n.sorting)});return!n||n<0?0:n}function ar(e){var t=e.find(function(e){return e.type===exports.EVariableType.Content});if(t)return t;throw new Error("Content variable is not defined")}function or(e,t,n){var r=[];return e.forEach(function(e){var i,a;1==n[e.code]&&r.push(null!=(i=null==(a=e.values.find(function(n){return n.code===t[e.code]}))?void 0:a.name)?i:{})}),r}function sr(e,t){var n=e.code in t?e.values.filter(function(n){return t[e.code]===n.code}):e.values;return n.reduce(function(e,t){return t.contentComponent&&e.push({name:t.name,unit:t.contentComponent.unit}),e},[])}function lr(e,t,n){return e.code in t?e.values.filter(function(n){return t[e.code]===n.code}).map(function(e){return n(e.contentComponent)}).filter(mn):e.values.map(function(e){return n(e.contentComponent)}).filter(mn)}function ur(e){var t={};return Object.entries(e).forEach(function(e){return t[e[0]]=e[1][0]}),t}function cr(e,t){var n;if(e.length>1||0===e.length)return On.Nominal;var r=null==(n=t.find(function(t){return t.code===e[0]}))?void 0:n.type;switch(r){case exports.EVariableType.Time:return On.Time;case exports.EVariableType.Ordinal:return On.Ordinal;default:return On.Nominal}}var dr=["",".","..","...","....",".....","......","-"];function fr(e,t,n){if(void 0===n&&(n=!1),null==e.value)throw new Error("Can not produce a localized numeric formatting for missing data");return new Intl.NumberFormat(t,{maximumFractionDigits:e.precision,minimumFractionDigits:e.precision,useGrouping:n}).format(e.value)}function pr(e,t,n){if(void 0===n&&(n=!1),e)return n?cn.dataMissing[t]:dr[e];throw new Error("Invalid missing code. Can not generate table presentation")}function mr(e,t,n,r,i,a,o){var s=document.getElementById(a);if(!s)throw new Error("No container with matching id found in the DOM tree");try{if(n){var l=document.createElement("span");if(l.classList.add("title"),l.append(e.header[t]),s.append(l),e.subheaderValues.length>0){var u=document.createElement("span");u.classList.add("subtitle"),u.append(e.subheaderValues.map(function(e){return e[t]}).join(" | ")),s.append(u)}}var c=function(e,t){var n,r,i=null!=(n=e.columnNameGroups[0].length)?n:0,a=null!=(r=e.series[0].rowNameGroup.length)?r:0,o=document.createElement("table");if(i>0){var s=function(e,t){for(var n=yr(e),r=[],i=0;i<e[0].length;i++){for(var a=document.createElement("tr"),o=0;o<e.length;o+=n[i]){var s=document.createElement("th");s.setAttribute("colSpan",n[i].toString()),s.setAttribute("scope","col"),s.textContent=e[o][i][t],a.append(s)}r.push(a)}return r}(e.columnNameGroups,t);if(a>0){var l=document.createElement("td");l.setAttribute("colSpan",a.toString()),l.setAttribute("rowSpan",i.toString()),s[0].prepend(l)}var u=document.createElement("thead");u.append.apply(u,s),o.append(u)}if(e.series.length>0){var c=document.createElement("tbody");c.append.apply(c,function(e,t){for(var n=[],r=vr(e),i=0;i<e.length;i++){for(var a=document.createElement("tr"),o=0;o<e[i].rowNameGroup.length;o++)if(i%r[o]==0){var s=document.createElement("th");s.setAttribute("rowSpan",r[o].toString()),s.setAttribute("scope","row"),s.textContent=e[i].rowNameGroup[o][t],a.append(s)}for(var l,u=E(e[i].series);!(l=u()).done;){var c=l.value,d=document.createElement("td");d.textContent=null===c.value?pr(c.missingCode,t,!0):fr(c,t,!0),a.append(d)}n.push(a)}return n}(e.series,t)),o.append(c)}return o}(e,t);if(s.append(c),r){var d=document.createElement("p"),f=kn(e.units,t);d.append(cn.unit[t]+": "+f),s.append(d)}if(i){var p=document.createElement("p"),m=cn.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ");p.append(m),s.append(p)}if(o){var h=document.createElement("p");h.append(o),s.append(h)}}catch(e){console.error(e),s.replaceChildren();var g=document.createElement("h1");g.append(cn.graphCreationError[t]),s.append(g)}}var hr,gr=function(e,t){return Object.keys(e).every(function(n){return e[n]==t[n]})},vr=function(e){if(!e[0].rowNameGroup||0===e[0].rowNameGroup.length)return[];for(var t=Array(e[0].rowNameGroup.length).fill(1),n=0;n<e[0].rowNameGroup.length;n++)for(var r=0;r<e.length-1&&gr(e[r].rowNameGroup[n],e[r+1].rowNameGroup[n]);r++)t[n]++;return t},yr=function(e){if(!e||0===e.length)return[];for(var t=Array(e[0].length).fill(1),n=0;n<e[0].length;n++)for(var r=0;r<e.length-1&&gr(e[r][n],e[r+1][n]);r++)t[n]++;return t};!function(e){e[e.Csv=0]="Csv",e[e.Excel=1]="Excel"}(hr||(hr={}));var br=function(e,t){return t===hr.Csv?new Blob(["\ufeff",e],{type:"text/csv;charset=utf-8;"}):new Blob([xr(e)],{type:"application/octet-stream"})},xr=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;r++)n[r]=255&e.charCodeAt(r);return t},wr=function(e){var t=e?e.split(".")[0]:"",n=new Date;return t+"_"+n.getFullYear()+(n.getMonth()+1).toString().padStart(2,"0")+n.getDate().toString().padStart(2,"0")+"_"+n.getHours().toString().padStart(2,"0")+n.getMinutes().toString().padStart(2,"0")+n.getSeconds().toString().padStart(2,"0")},Sr=function(e,t){var n,r,i,a,o,s,l,u;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===exports.EVisualizationType.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===exports.EVisualizationType.PercentVerticalBarChart)&&(e=Qn(e));var c=null!=(i=null==(a=e.columnNameGroups[0])?void 0:a.length)?i:0,d=null!=(o=null==(s=e.series[0])?void 0:s.rowNameGroup.length)?o:0,f=(null!=(l=null==(u=e.series[0])?void 0:u.series.length)?l:0)+d,p=","==cn.decimalPoint[t]?";":",",m="\n",h=kr(['"'+e.header[t]+'"'],0,f,p,m);e.subheaderValues.length>0&&(h+=kr(['"'+e.subheaderValues.map(function(e){return e[t]}).join(" | ")+'"'],0,f,p,m));for(var g=function(n){h+=kr(e.columnNameGroups.map(function(e){return'"'+e[n][t]+'"'}),d,f,p,m)},v=0;v<c;v++)g(v);return e.series.forEach(function(e){var n=[];e.rowNameGroup.length>0&&(n=e.rowNameGroup.map(function(e){return'"'+e[t]+'"'})),n=n.concat(e.series.map(function(e){return null===e.value?pr(e.missingCode,t):fr(e,t)})),h+=kr(n,0,f,p,m)}),h+=kr(['"'+cn.unit[t]+": "+kn(e.units,t)+'"'],0,f,p,m),h+=kr(['"'+cn.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ")+'"'],0,f,p)},Cr=function(e,t){return{onClick:function(){var n=Sr(e,t),r=br(n,hr.Csv),i=URL.createObjectURL(r),a=document.createElement("a");a.setAttribute("href",i),a.setAttribute("download",wr(e.tableReferenceName)+".csv"),document.body.appendChild(a),a.click()},text:cn.downloadCSV[t]}};function kr(e,t,n,r,i){void 0===i&&(i="");for(var a="",o=0;o<n;o++)o>=t&&o<t+e.length&&(a+=e[o-t]),o<n-1&&(a+=r);return a+i}var Er=function(e,t){var n=x.utils.book_new(),r=x.utils.aoa_to_sheet(Ar(e,t));return x.utils.book_append_sheet(n,r,"Sheet1"),x.write(n,{bookType:"xlsx",type:"binary"})},Ar=function(e,t){var n,r,i,a,o,s,l,u;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===exports.EVisualizationType.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===exports.EVisualizationType.PercentVerticalBarChart)&&(e=Qn(e));var c=null!=(i=null==(a=e.columnNameGroups[0])?void 0:a.length)?i:0,d=null!=(o=null==(s=e.series[0])?void 0:s.rowNameGroup.length)?o:0,f=(null!=(l=null==(u=e.series[0])?void 0:u.series.length)?l:0)+d,p=[Nr([e.header[t]],0,f)];e.subheaderValues.length>0&&p.push(Nr([e.subheaderValues.map(function(e){return e[t]}).join(" | ")],0,f));for(var m=function(n){p.push(Nr(e.columnNameGroups.map(function(e){return e[n][t]}),d,f))},h=0;h<c;h++)m(h);return e.series.forEach(function(e){var n=[];e.rowNameGroup.length>0&&(n=e.rowNameGroup.map(function(e){return e[t]})),n=n.concat(e.series.map(function(e){return null===e.value?pr(e.missingCode,t):fr(e,t)})),p.push(Nr(n,0,f))}),p.push(Nr([cn.unit[t]+": "+kn(e.units,t)],0,f)),p.push(Nr([cn.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ")],0,f)),p},Tr=function(e,t){return{onClick:function(){var n=Er(e,t),r=br(n,hr.Excel),i=URL.createObjectURL(r),a=document.createElement("a");a.setAttribute("href",i),a.setAttribute("download",wr(e.tableReferenceName)+".xlsx"),document.body.appendChild(a),a.click()},text:cn.downloadXLSX[t]}};function Nr(e,t,n){for(var r=Array(n),i=0;i<n;i++)r[i]=i>=t&&i<t+e.length?e[i-t]:null;return r}var Pr,jr,Vr,Mr,zr,Or,Dr,Ir,Lr,$r,Rr,_r,Gr=["Bars","Times","Download","ExternalLink","Copy"],qr=function(e){var t=e.icon,n=e.inheritColor,r=void 0!==n&&n;switch(t){case"Bars":return f.default.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"39.91mm",height:"29.92mm",viewBox:"0 0 113.12 84.82"},f.default.createElement("path",w({},r?{}:{style:{fill:"#1A3061"}},{d:"m56.51,14.13c-16.33,0-32.67.01-49,0-5.37,0-8.89-4.83-6.99-9.59C1.63,1.76,3.77.26,6.76.01c.22-.02.44,0,.66,0,32.74,0,65.49,0,98.23,0,4.3,0,7.45,2.99,7.47,7.01.02,4.11-3.15,7.1-7.6,7.11-16.33.01-32.67,0-49,0Z"})),f.default.createElement("path",w({},r?{}:{style:{fill:"#1A3061"}},{d:"m56.55,49.47c-16.41,0-32.82.01-49.22,0-3.78,0-6.77-2.56-7.26-6.09-.49-3.53,1.78-6.9,5.35-7.81.77-.2,1.6-.21,2.4-.21,32.52,0,65.04-.01,97.57,0,4.51,0,7.69,2.89,7.74,6.97.04,4.19-3.16,7.14-7.79,7.15-16.26,0-32.52,0-48.78,0Z"})),f.default.createElement("path",w({},r?{}:{style:{fill:"#1A3061"}},{d:"m56.43,84.82c-16.33,0-32.67,0-49,0-3.68,0-6.45-2.17-7.25-5.56-.73-3.09.92-6.54,3.92-7.84,1.04-.45,2.27-.69,3.41-.69,32.74-.04,65.49-.03,98.23-.02,4.27,0,7.41,3.06,7.39,7.09-.02,4.02-3.17,7.02-7.47,7.02-16.41.02-32.82,0-49.22,0Z"})));case"Times":return f.default.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"26.97mm",height:"26.97mm",viewBox:"0 0 76.44 76.44"},f.default.createElement("path",w({},r?{}:{style:{fill:"#1A3061"}},{d:"m0,38.09C.02,17.02,17.22-.04,38.39,0c21.08.04,38.09,17.21,38.05,38.42-.04,21-17.21,38.04-38.31,38.01C17.04,76.41-.02,59.26,0,38.09ZM38.25,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),f.default.createElement("path",w({},r?{}:{style:{fill:"#1A3061"}},{d:"m38.4,34c2.9-2.94,5.58-5.67,8.27-8.39.93-.94,2.13-1.38,3.25-.73.8.47,1.7,1.46,1.78,2.29.09.92-.48,2.12-1.14,2.85-2.18,2.38-4.54,4.6-6.83,6.89-.35.35-.68.71-1.07,1.12,2.67,2.68,5.35,5.26,7.88,7.99.67.72,1.28,1.95,1.16,2.84-.12.88-1.05,1.9-1.89,2.37-1.03.57-2.22.16-3.12-.75-2.31-2.33-4.65-4.63-6.96-6.97-.38-.39-.66-.87-1.36-1.8-.71.95-1.11,1.64-1.65,2.19-2.12,2.17-4.27,4.32-6.44,6.44-1.41,1.38-3.16,1.46-4.38.28-1.26-1.22-1.2-3.02.24-4.48,2.27-2.31,4.56-4.58,6.87-6.85.38-.38.88-.64,1.42-1.03-2.89-2.89-5.5-5.47-8.07-8.1-.53-.55-1.05-1.24-1.24-1.96-.35-1.32.14-2.48,1.38-3.16,1.28-.71,2.53-.5,3.56.5,2.32,2.26,4.59,4.55,6.88,6.84.46.46.86.96,1.47,1.64Z"})));case"Download":return f.default.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"33.64mm",height:"33.64mm",viewBox:"0 0 95.35 95.37"},f.default.createElement("path",w({},r?{}:{style:{fill:"#1A3061"}},{d:"m41.74,51.99c0-1.25,0-1.92,0-2.59,0-14.4,0-28.79,0-43.19,0-3.27,2.24-5.84,5.28-6.17,3.01-.33,5.8,1.65,6.48,4.66.16.71.14,1.48.14,2.22,0,14.15,0,28.29,0,42.44v2.34c.53-.42.91-.67,1.23-.98,3.12-3.11,6.23-6.23,9.35-9.34,2.74-2.72,6.26-2.87,8.75-.4,2.49,2.46,2.39,6.06-.3,8.75-6.79,6.81-13.59,13.61-20.4,20.4-2.92,2.91-6.25,2.92-9.15.03-6.81-6.79-13.61-13.59-20.4-20.4-2.71-2.72-2.84-6.26-.35-8.75,2.48-2.49,6.03-2.36,8.75.34,3.42,3.4,6.82,6.83,10.61,10.64Z"})),f.default.createElement("path",w({},r?{}:{style:{fill:"#1A3061"}},{d:"m47.67,95.37c-13.83,0-27.66,0-41.49,0-3.18,0-5.7-2.16-6.12-5.13-.42-2.98,1.5-5.82,4.51-6.59.65-.17,1.35-.18,2.02-.18,27.41,0,54.83,0,82.24,0,3.8,0,6.48,2.43,6.52,5.88.04,3.53-2.66,6.02-6.56,6.03-13.71,0-27.41,0-41.12,0Z"})));case"ExternalLink":return f.default.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"88.84mm",height:"79.62mm",viewBox:"0 0 251.84 225.69"},f.default.createElement("path",w({},r?{}:{style:{fill:"#1A3061"}},{d:"m125.89,225.68c-22.84,0-45.67.03-68.51,0C23.18,225.63.03,202.4.01,168.14,0,131.14,0,94.13.01,57.13.04,23.53,23.35.14,56.85.1c23.67-.03,21.34.02,45.01-.03,4.75,0,8.96,1.04,11.87,5.09,2.64,3.67,3.08,7.7,1.25,11.83-2.01,4.53-5.59,7-10.57,7.06-9,.11-12,.07-21,.07-15.84,0-11.67-.05-27.5.02-18.82.08-31.81,12.98-31.84,31.74-.06,38-.06,76.01,0,114.01.03,18.74,13.04,31.7,31.86,31.72,46.67.05,93.34.06,140.01,0,18.79-.02,31.71-12.99,31.79-31.8.07-17,0-14,.03-31.01.02-8.3,4.75-13.75,11.83-13.81,7.07-.06,12.12,5.48,12.16,13.61.07,17.5.18,15.01-.02,32.51-.34,30.71-23.87,54.02-54.81,54.56h-71.01l-.02.02Z"})),f.default.createElement("path",w({},r?{}:{style:{fill:"#1A3061"}},{d:"m207.19,24.08c-6.95,0-23.9.04-30.85,0-8.12-.06-13.27-4.55-13.44-11.6-.17-7.19,5.18-12.33,13.32-12.38,17.33-.11,44.67-.12,62,0,8.48.06,13.45,4.99,13.5,13.37.12,16.83.12,43.67,0,60.5-.06,7.69-5.4,13.04-12.34,12.87-6.83-.17-11.53-5.35-11.61-12.97-.08-7.63-.02-25.26-.02-34.12-2.09,1.8-3.42,2.88-4.68,4.03-26.76,24.57-53.52,49.15-80.28,73.72-1.6,1.47-3.13,3-4.82,4.36-5.57,4.47-12.54,3.94-16.98-1.2-4.31-4.98-4.06-11.78,1.06-16.6,10.92-10.28,22.03-20.36,33.07-30.51,16.56-15.23,33.13-30.45,49.72-45.65.97-.89,2.15-1.56,3.23-2.33-.29-.5-.58-.99-.87-1.49h0Z"})));case"Copy":return f.default.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"31.19mm",height:"31.21mm",viewBox:"0 0 88.41 88.48"},f.default.createElement("path",w({},r?{}:{style:{fill:"#1A3061"}},{d:"m20.67,54.61c0-7.55,0-15.1,0-22.65,0-6.79,4.38-11.2,11.13-11.21,15.16-.01,30.33-.01,45.49,0,6.75,0,11.12,4.42,11.12,11.22,0,15.1,0,30.2,0,45.3,0,6.79-4.39,11.21-11.13,11.21-15.16,0-30.33,0-45.49,0-6.66,0-11.1-4.41-11.12-11.03-.02-7.61,0-15.22,0-22.83Zm60.78.1c0-7.67,0-15.34,0-23.01,0-2.72-1.23-3.98-3.89-3.99-15.34,0-30.68,0-46.02,0-2.67,0-3.89,1.26-3.89,3.98,0,15.28,0,30.55,0,45.83,0,2.79,1.23,3.99,4.07,3.99,15.22,0,30.44,0,45.65,0,2.91,0,4.08-1.21,4.08-4.17,0-7.55,0-15.09,0-22.64Z"})),f.default.createElement("path",w({},r?{}:{style:{fill:"#1A3061"}},{d:"m13.66,60.85v6.64C6.35,69.22.02,64.29.01,56.9c-.02-15.34-.02-30.69,0-46.03C.02,4.48,4.36.11,10.73.1c15.1-.02,30.21.19,45.3-.1,6.89-.13,12.81,4.89,11.49,13.58h-6.74c0-.95.03-1.91,0-2.86-.08-2.34-1.35-3.69-3.66-3.69-15.53-.02-31.06-.02-46.59,0-2.36,0-3.58,1.27-3.58,3.7-.02,15.4-.02,30.81,0,46.21,0,2.65,1.32,3.87,4.01,3.91.85.01,1.7,0,2.71,0Z"})));default:return f.default.createElement("span",null,"No icon for ",t,f.default.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"26.97mm",height:"26.97mm",viewBox:"0 0 76.45 76.44"},f.default.createElement("path",w({},r?{}:{style:{fill:"#1A3061"}},{d:"m0,38.1C.02,17.02,17.22-.04,38.4,0c21.08.04,38.1,17.21,38.06,38.43-.04,21-17.21,38.05-38.32,38.02C17.04,76.42-.02,59.27,0,38.1ZM38.26,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),f.default.createElement("path",w({},r?{}:{style:{fill:"#1A3061"}},{d:"m34.1,43.95c-.12-.12-.18-.26-.18-.43v-1.62c0-1.68.43-3.04,1.29-4.07.86-1.03,2.1-2.11,3.71-3.26,1.31-.91,2.29-1.72,2.93-2.42s.96-1.57.96-2.58c0-1.08-.4-1.95-1.21-2.6-.81-.66-1.87-.99-3.18-.99-1.42,0-2.55.35-3.41,1.06-.86.71-1.29,1.62-1.29,2.73v.81c0,.37-.2.56-.61.56l-5.91-.25c-.17,0-.31-.06-.43-.18-.12-.12-.18-.26-.18-.43v-.5c0-2.02.51-3.81,1.52-5.38,1.01-1.57,2.42-2.78,4.22-3.64,1.8-.86,3.88-1.29,6.24-1.29s4.3.41,6.04,1.24c1.73.83,3.07,1.98,4.02,3.46.94,1.48,1.41,3.2,1.41,5.15,0,1.48-.26,2.75-.78,3.81-.52,1.06-1.15,1.93-1.89,2.6-.74.67-1.68,1.42-2.83,2.22-1.21.84-2.11,1.57-2.68,2.17s-.86,1.35-.86,2.22v1.16c0,.17-.06.31-.18.43-.12.12-.26.18-.43.18h-5.86c-.17,0-.31-.06-.43-.18Zm.3,10.36c-.76-.76-1.14-1.71-1.14-2.85s.37-2.09,1.11-2.83,1.7-1.11,2.88-1.11,2.13.36,2.85,1.09c.72.72,1.09,1.68,1.09,2.85s-.37,2.1-1.11,2.85c-.74.76-1.68,1.14-2.83,1.14s-2.1-.38-2.85-1.14Z"}))))}},Br=on.button(Pr||(Pr=C(['\n background-color: transparent;\n text-align: left;\n border: none;\n margin: 0;\n padding: 0.5rem 0.7rem 0.5rem 0.7rem;\n cursor: pointer;\n display: inline;\n font-family: "Barlow Semi Condensed", Verdana, sans-serif;\n min-width: 14rem;\n border-bottom: ',";\n color: #1a3061;\n min-height: 3rem;\n :hover {\n text-decoration: underline;\n }\n"])),function(e){return e.$separator?"1px solid #bdbdbd":"0px"}),Fr=on.a(jr||(jr=C(["\n text-decoration: none;\n :hover {\n text-decoration: underline;\n }\n"]))),Hr=on.li(Vr||(Vr=C(["\n border-top-right-radius: ",";\n border-top-left-radius: ",";\n border-bottom-right-radius: ",";\n border-bottom-left-radius: ",";\n :hover {\n background-color: #f2f2f2;\n }\n"])),function(e){return e.$isFirst?"18px":"0px"},function(e){return e.$isFirst?"18px":"0px"},function(e){return e.$isLast?"18px":"0px"},function(e){return e.$isLast?"18px":"0px"}),Wr=on.div(Mr||(Mr=C(["\n height: 100%;\n width: 100%;\n display: flex;\n flex-direction: row;\n align-content: center;\n justify-content: left;\n align-items: center;\n justify-items: center;\n"]))),Ur=on.div(zr||(zr=C(["\n height: 1rem;\n width: 1rem;\n svg {\n height: 1rem;\n width: 1rem;\n fill: #1a3061;\n }\n"]))),Yr=on.span(Or||(Or=C(["\n margin-left: ",";\n margin-right: ",";\n"])),function(e){return e.$hasPrefixIcon?"0.5rem":"0px"},function(e){return e.$hasSuffixIcon?"0.5rem":"0px"}),Zr=on.span(Dr||(Dr=C(["\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n"]))),Xr=function(e){var t,n,r=e.text,i=e.onClick,a=e.url,o=e.openNewTab,s=e.isExternal,l=e.prefixIcon,u=e.suffixIcon,c=e.locale,d=e.bottomSeparator,p=void 0!==d&&d,m=e.isFirst,h=void 0!==m&&m,g=e.isLast,v=void 0!==g&&g;l&&(t="string"==typeof l&&Gr.includes(l)?f.default.createElement(qr,{inheritColor:!0,icon:l}):l),u&&(n="string"==typeof u&&Gr.includes(u)?f.default.createElement(qr,{inheritColor:!0,icon:u}):l);var y=f.default.createElement(Wr,null,t&&f.default.createElement(Ur,null,t),f.default.createElement(Yr,{$hasPrefixIcon:!!l,$hasSuffixIcon:!!u||s},r),u&&f.default.createElement(Ur,null,n),s&&f.default.createElement(f.default.Fragment,null,f.default.createElement(Zr,null,cn.externalLink[c]),f.default.createElement(Ur,null,f.default.createElement(qr,{inheritColor:!0,icon:"ExternalLink"}))));return i?f.default.createElement(Hr,{$isFirst:h,$isLast:v},f.default.createElement(Br,{$separator:p,onClick:function(){return i()}},y)):a?f.default.createElement(Hr,{$isFirst:h,$isLast:v},f.default.createElement(Fr,o?{href:a,target:"_blank"}:{href:a},f.default.createElement(Br,{$separator:p},y))):f.default.createElement(f.default.Fragment,null)},Kr=on.div(Ir||(Ir=C(["\n width: 2.5rem;\n height: 2.5rem;\n"]))),Jr=on.button(Lr||(Lr=C(["\n width: 100%;\n height: 100%;\n svg {\n height: 1.5rem;\n width: 1.5rem;\n }\n background-color: transparent;\n border: none;\n cursor: pointer;\n"]))),Qr=on.div($r||($r=C(["\n width: 100%;\n height: 0;\n position: relative;\n"]))),ei=on.div(Rr||(Rr=C(["\n display: flex;\n flex-flow: column;\n position: absolute;\n background-color: #fff;\n border-radius: 18px;\n top: 0.2rem;\n right: 0.2rem;\n border: 1px solid #bdbdbd;\n"]))),ti=on.ul(_r||(_r=C(["\n list-style-type: none;\n margin: 0;\n padding: 0;\n"])));function ni(e,t){var n,r,i=600;e=null!=(n=e)?n:i,t=null!=(r=t)?r:i;var a,o,s=Math.max(.5,Math.min(2,e/t));return s<1?(a=(o=Math.max(i,Math.min(3e3,t)))*s)<i&&(o=(a=i)/s):(o=(a=Math.max(i,Math.min(3e3,e)))/s)<i&&(a=(o=i)*s),{finalWidth:a,finalHeight:o}}var ri,ii,ai,oi,si,li,ui=function(e){var t=e.viewData,n=e.currentChartRef,r=e.tableToggle,i=e.menuItemDefinitions,a=e.locale,o=e.menuIconInheritColor,s=void 0!==o&&o,l=f.default.useState(!1),u=l[0],c=l[1],d=f.default.useRef(null);document.addEventListener("mousedown",function(e){d.current&&u&&!d.current.contains(e.target)&&c(!1)});var p=Cr(t,a),m=Tr(t,a),h=null==i?void 0:i.map(function(e,t){return"onClick"in e?f.default.createElement(Xr,{isFirst:0===t,bottomSeparator:t+1===i.length,locale:a,prefixIcon:e.prefixIcon,suffixIcon:e.suffixIcon,key:"customfmenuitem-"+t,text:e.text,onClick:e.onClick}):"url"in e?f.default.createElement(Xr,{isFirst:0===t,bottomSeparator:t+1===i.length,locale:a,prefixIcon:e.prefixIcon,suffixIcon:e.suffixIcon,isExternal:e.isExternal,key:"customlmenuitem-"+t,text:""+e.text,url:e.url,openNewTab:e.openNewTab}):void 0});return f.default.createElement(Kr,{ref:d},f.default.createElement(Jr,{"aria-label":""+cn.chartMenuLabel[a],"aria-expanded":u,onClick:function(){c(!u)}},f.default.createElement(qr,{inheritColor:s,icon:u?"Times":"Bars"})),f.default.createElement(Qr,null,u&&f.default.createElement(ei,null,f.default.createElement(ti,null,i&&h,f.default.createElement(Xr,{isFirst:!i,locale:a,prefixIcon:"Download",text:m.text,onClick:function(){return m.onClick()}}),f.default.createElement(Xr,{isLast:!n,bottomSeparator:!!n,locale:a,prefixIcon:"Download",text:p.text,onClick:function(){return p.onClick()}}),n&&f.default.createElement(f.default.Fragment,null,f.default.createElement(Xr,{locale:a,prefixIcon:"Download",text:cn.downloadSVG[a],onClick:function(){return n.chart.exportChartLocal({filename:""+wr(t.tableReferenceName),type:"image/svg+xml",sourceWidth:ni(n.chart.chartHeight,n.chart.chartHeight).finalWidth,sourceHeight:ni(n.chart.chartWidth,n.chart.chartHeight).finalHeight,scale:1},{})}}),f.default.createElement(Xr,{isLast:!r,bottomSeparator:!!r,locale:a,prefixIcon:"Download",text:cn.downloadPNG[a],onClick:function(){return n.chart.exportChartLocal({filename:""+wr(t.tableReferenceName),sourceWidth:ni(n.chart.chartWidth,n.chart.chartHeight).finalWidth,sourceHeight:ni(n.chart.chartWidth,n.chart.chartHeight).finalHeight,scale:1},{})}})),r&&f.default.createElement(Xr,{isLast:!0,locale:a,text:r.tableMode?cn.toggleTableModeOffText[a]:cn.toggleTableModeOnText[a],onClick:function(){return r.toggleHandler()}})))))},ci=function(t){var n=t.view,r=t.locale,i=t.footnote,a=t.showTitles,o=void 0===a||a,s=t.showUnits,l=void 0===s||s,c=t.showSources,d=void 0===c||c,p=e.useMemo(function(){return u.v4()},[n,r]);return f.default.useEffect(function(){var e;null==(e=document.getElementById(p))||e.replaceChildren(),mr(n,r,o,l,d,p,i)},[n,r,o,l,d,i]),f.default.createElement("div",{className:"tableChart",id:p})},di=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=Lt.apply(void 0,[t].concat(r)),o="sc-global-"+Ht(JSON.stringify(a)),s=new tn(a,o);function l(t){var n=At(),r=Tt(),i=e.useContext(Kt),l=e.useRef(n.allocateGSInstance(o)).current;return"production"!==process.env.NODE_ENV&&f.default.Children.count(t.children)&&console.warn("The global style component "+o+" was given child JSX. createGlobalStyle does not render children."),"production"!==process.env.NODE_ENV&&a.some(function(e){return"string"==typeof e&&-1!==e.indexOf("@import")})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),n.server&&u(l,t,n,i,r),e.useLayoutEffect(function(){if(!n.server)return u(l,t,n,i,r),function(){return s.removeStyles(l,n)}},[l,t,n,i,r]),null}function u(e,t,n,r,i){if(s.isStatic)s.renderStyles(e,Fe,n,i);else{var a=ze({},t,{theme:Gt(t,r,l.defaultProps)});s.renderStyles(e,a,n,i)}}return"production"!==process.env.NODE_ENV&&_t(o),f.default.memo(l)}(ri||(ri=C(["\n /* @font-face {\n font-family: 'Barlow Semi Condensed';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(./fonts/BarlowSemiCondensed-Medium.ttf) format('truetype');\n }\n\n @font-face {\n font-family: 'Barlow Semi Condensed';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(./fonts/BarlowSemiCondensed-Regular.ttf) format('truetype');\n } */\n\n .highcharts-root {\n font-family: \"Barlow Semi Condensed\", Verdana, sans-serif;\n }\n\n .highcharts-tooltip-container {\n z-index: 999 !important;\n }\n\n .tableChart {\n font-family: \"Barlow Semi Condensed\", Verdana, sans-serif;\n overflow-x: auto;\n padding-left: 20px;\n padding-top: 38px;\n padding-right: 20px;\n }\n\n .tableChart:has(.title) {\n padding-top: 14px;\n }\n\n .tableChart table,\n .tableChart th,\n .tableChart td {\n border: 1px solid black;\n }\n\n .tableChart .title {\n margin-top: 0;\n font-size: 1.25rem;\n font-weight: 500;\n margin-bottom: 0rem;\n width: 90%;\n display: block;\n }\n\n .tableChart .subtitle {\n font-size: 1.25rem;\n font-weight: 400;\n margin-bottom: 2rem;\n margin-top: 6px;\n width: 90%;\n display: block;\n }\n"]))),fi=on.div(ii||(ii=C(["\n width: 100%;\n position: relative;\n font-family: 'Barlow Semi Condensed';\n"]))),pi=function(e){return f.default.createElement(fi,null,f.default.createElement("h1",null,cn.graphCreationError[e.locale]))},mi=/*#__PURE__*/function(e){function t(t){var n;return(n=e.call(this,t)||this).state={hasError:!1},n}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,S(n,r),t.getDerivedStateFromError=function(){return{hasError:!0}};var i=t.prototype;return i.componentDidCatch=function(e,t){console.error(e,t.componentStack)},i.render=function(){return this.state.hasError?this.props.fallback:this.props.children},t}(e.Component),hi=on.div(ai||(ai=C(["\n width: 100%;\n position: relative;\n"]))),gi=on.div(oi||(oi=C(["\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n"]))),vi=on.div(si||(si=C(["\n display: ",";\n"])),function(e){return e.$tableMode?"none":"block"}),yi=on.div(li||(li=C(["\n display: ",";\n"])),function(e){return e.$tableMode?"block":"none"}),bi=function(t){var n,r=t.pxGraphData,i=t.footnote,a=t.menuItemDefinitions,o=t.selectedVariableCodes,s=void 0===o?null:o,u=t.showContextMenu,c=void 0===u||u,d=t.menuIconInheritColor,p=void 0!==d&&d,h=t.showTableTitles,x=t.showTableUnits,w=t.showTableSources,S=yn(t.locale);n=S,"object"==typeof m.default&&(m.default.wrap(m.default.SVGRenderer.prototype,"init",function(e){e.apply(this,Array.prototype.slice.call(arguments,1)),this.box.children[0]&&/Created with Highcharts/.test(this.box.children[0].innerHTML)&&this.box.children[0].remove()}),g.default(m.default),v.default(m.default),y.default(m.default),b.default(m.default),m.default.setOptions(Dn(n)));var C,k=f.default.useRef(null),E=f.default.useState(k.current),A=E[0],T=E[1],N=f.default.useState(!1),P=N[0],j=N[1],V=f.default.useState(0),M=V[0],z=V[1],O=e.useMemo(function(){try{return Fn(r.selectableVariableCodes,r.metaData,r.visualizationSettings.defaultSelectableVariableCodes,s)}catch(e){return console.error(e),{}}},[s,r]),D=e.useMemo(function(){try{return Jn(r,O)}catch(e){return console.error(e),null}},[O,r]);function I(){M!==window.innerWidth&&z(window.innerWidth)}window&&window.addEventListener("resize",function(){clearTimeout(C),C=setTimeout(I,100)}),f.default.useEffect(function(){k.current&&T(k.current)},[k.current]);try{if(D&&r.visualizationSettings.visualizationType!==exports.EVisualizationType.Table){var L=Bn(S,D);return f.default.createElement(hi,null,c&&f.default.createElement(gi,null,f.default.createElement(ui,{menuItemDefinitions:a,viewData:D,currentChartRef:A,locale:S,tableToggle:{tableMode:P,toggleHandler:function(){j(!P)}},menuIconInheritColor:p})),f.default.createElement(vi,{$tableMode:P},f.default.createElement(l.HighchartsReact,{ref:k,immutable:!0,highcharts:m.default,options:L,callback:function(e){!function(e){if((r.visualizationSettings.visualizationType===exports.EVisualizationType.GroupHorizontalBarChart||r.visualizationSettings.visualizationType===exports.EVisualizationType.GroupVerticalBarChart||r.visualizationSettings.visualizationType===exports.EVisualizationType.HorizontalBarChart||r.visualizationSettings.visualizationType===exports.EVisualizationType.VerticalBarChart||r.visualizationSettings.visualizationType===exports.EVisualizationType.PercentVerticalBarChart||r.visualizationSettings.visualizationType===exports.EVisualizationType.PercentHorizontalBarChart)&&r.visualizationSettings.showDataPoints){var t=!1;e.series.map(function(e){return e.data.forEach(function(e){e.dataLabel&&e.dataLabel.alignOptions.inside&&(e.update({updateNeeded:!0}),t=!0)})}),t&&e.redraw()}}(e)}})),f.default.createElement(yi,{$tableMode:P},f.default.createElement(ci,{showTitles:null==h||h,footnote:i,showUnits:!!x,showSources:!!w,view:D,locale:S})))}if(D&&r.visualizationSettings.visualizationType===exports.EVisualizationType.Table)return f.default.createElement(hi,null,c&&f.default.createElement(gi,null,f.default.createElement(ui,{menuItemDefinitions:a,viewData:D,locale:S,menuIconInheritColor:p})),f.default.createElement(ci,{showTitles:null!=h&&h,footnote:i,showUnits:!!x,showSources:!!w,view:D,locale:S}))}catch(e){return console.error(e),f.default.createElement(pi,{locale:S})}return f.default.createElement(pi,{locale:S})};exports.AddTranslations=function(e){un.AddTranslations(e)},exports.Chart=function(e){var t=yn(e.locale);return f.default.createElement(mi,{fallback:f.default.createElement(pi,{locale:t})},f.default.createElement(di,null),f.default.createElement(bi,w({},e)))},exports.convertPxGrafResponseToView=Jn,exports.convertPxGraphDataToChartOptions=Bn,exports.defaultTheme=Dn,exports.drawChart=function(e,t,n,r){void 0===r&&(r=null);var i=yn(n);"object"==typeof h&&(g.default(h),v.default(h),y.default(h),b.default(h)),h.setOptions(Dn(i));var a=Jn(t,Fn(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,r)),o=Bn(i,a);return h.chart(e,o)},exports.extractSelectableVariableValues=Fn,exports.generateCsv=Sr,exports.generateExcel=Er,exports.renderHtmlTable=mr,exports.viewToDownloadCSVOption=Cr,exports.viewToDownloadXLSOption=Tr;
2
+ //# sourceMappingURL=pxv.cjs.map