diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 000000000..1d3f43460 Binary files /dev/null and b/.DS_Store differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..9f5d58974 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +frontend/node_modules +backend/node_modules +/data/ \ No newline at end of file diff --git a/README.md b/README.md index 88765ffde..e92ce704b 100644 --- a/README.md +++ b/README.md @@ -1,51 +1,90 @@ -# Final Project -*Due before the start of class, October 11th (final day of the term)* - -For your final project, you'll implement a web application that exhibits understanding of the course materials. -This project should provide an opportunity to both be creative and to pursue individual research and learning goals. - -## General description -Your project should consist of a complete Web application, exhibiting facets of the three main sections of the course material: - -- Static Web page content and design. You should have a project that is accessible, easily navigable, and features significant content. -- Dynamic behavior implemented with JavaScript (TypeScript is also allowed if your group wants to explore it). -- Server-side programming *using Node.js*. Typically this will take the form of some sort of persistent data (database), authentication, and possibly server-side computation. -- A video (less than five minutes) where each group member explains some aspect of the project. An easy way to produce this video is for you all the groups members to join a Zoom call that is recorded; each member can share their screen when they discuss the project or one member can "drive" the interface while other members narrate (this second option will probably work better.) The video should be posted on YouTube or some other accessible video hosting service. Make sure your video is less than five minutes, but long enough to successfully explain your project and show it in action. There is no minimum video length. - -## Project ideation -Excellent projects typically serve someone/some group; for this assignment you need to define your users and stakeholders. I encourage you to identify projects that will have impact, either artistically, politically, or in terms of productivity. - -## Logistics -### Team size -Students are will work in teams of 3-5 students for the project; teams of two can be approved with the permission of the instructor. Working in teams should help enable you to build a good project in a limited amount of time. Use the `#project-logistics` channel in Discord to pitch ideas for final projects and/or find fellow team members as needed. - -Teams must be in place by end of day on Saturday, September 25th. If you have not identified a team at this point, you will be assigned a team. You will be given some class time on Monday to work on your proposal, but please plan on reserving additional time as needed. - -### Deliverables - -__Proposal:__ -Provide an outline of your project direction and the names of associated team members. -The outline should have enough detail so that staff can determine if it meets the minimum expectations, or if it goes too far to be reasonable by the deadline. Please include a general description of a project, and list of key technologies/libraries you plan on using (e.g. React, Three.js, Svelte, TypeScript etc.). Name the file proposal.md and submit a pull request. -Submit a PR to turn it in by Monday, September 27th at11:59 PM. Only one pull request is required per team. - -There are no other scheduled checkpoints for your project. - -#### Turning in Your Outline / Project -Submit a second PR on the final project repo to turn in your app and code. Again, only one pull request per team. - -Deploy your app, in the form of a webpage, to Glitch/Heroku/Digital Ocean or some other service; it is critical that the application functions correctly wherever you post it. - -The README for your second pull request doesn’t need to be a formal report, but it should contain: - -1. A brief description of what you created, and a link to the project itself (two paragraphs of text) -2. Any additional instructions that might be needed to fully use your project (login information etc.) -3. An outline of the technologies you used and how you used them. -4. What challenges you faced in completing the project. -5. What each group member was responsible for designing / developing. -6. A link to your project video. - -Think of 1,3, and 4 in particular in a similar vein to the design / tech achievements for A1—A4… make a case for why what you did was challenging and why your implementation deserves a grade of 100%. - -## FAQs - -- **Can I use XYZ framework?** You can use any web-based frameworks or tools available, but for your server programming you need to use Node.js. Your client-side scripting language should be either JavaScript or TypeScript. +# Mental Health and Suicide Data Final Project + +Group Members: Alan Healy, Alex Kinley, Niko Pelletier, Jyalu Wu + +## Project Description +Website: https://group-14-final-project-2nrny.ondigitalocean.app/ + +Demo Video: https://www.youtube.com/watch?v=X7JrgC3JO-w + +Mental health is a broad and complicated subject. We wanted to present people with statistics and information about mental health and suicide in a way that is engaging and helps people relate to those numbers on a more personal level. Though the statistics themselves are important, it can be easy to forget numbers and thus an interactive overview of statistics on mental health and suicide may not be as impactful. Therefore, we want the site visitors to also have the ability to be more introspective. Site visitors have the opportunity to answer questions about their life and experiences, then see information about how they compare to the broader population, as well as how that might be relevant to mental health or sucide. + +As well as the more personal interactive form, the site also has an interactive overview of various statistics relating to mental health and suicide we aggregated from high quality sources. The site will anonymously record peoples’ responses to questions and provide some comparison of population level trends versus what people on the site responded with. + +On the site, visualizations and survey questions are divided into five main sections: + +1. Prevalence of Suicide +2. Factors That Contribute to Suicide and/or Mental Illness +3. How Mental Illnesses Are Treated +4. Suicide Prevention Methods +5. How Society and Different Organizations Like Colleges Can Address Mental Health in the Community + + + +## How to run locally +This project is broken up into two parts currently, the frontend and the backend. This project uses `yarn` instead of `npm` so make sure you install it with: +``` +yarn install // only the first time to install the dependancies +yarn start // starts the react dev server +``` +If you update the backend, you will have to stop the server and rerun it. This is only necessary when you change server.js, the actual frontend pages get served on their own. + +## Technologies We Used +### Frontend +- React +- Typescript +- Data visualizations + - Nivo, which is built on top of D3.js +- Visual Design + - Wireframe.cc + - Figma + - Skeleton CSS framework + +We used React as our web framework to organize and build the website. +We used Nivo to build strong data visualizations for each of our guiding questions. +We used Figma and Wireframe.cc to plan the layout and visuals of our website. +Then we implemented those visuals using the Skeleton CSS framework. +We used TypeScript in parts of our site to explore the technology. + +### Backend +- Node w/ Express server +- MongoDB for data storage +- Yarn +- Hosted on Digital Ocean + +We used Node.js with an express server to statically serve our front-end. We use MongoDB to store aggregate answers +to survey questions. We used yarn as our package manager in place of npm. We hosted the site on Digital Ocean. + +## Challenges Faced +- Most of the team had never used React, Typescript, Yarn, or Nivo before. It took some time to get used to the new technologies but once we got over the learning curve, they were pretty straightforward to use. +- This project was a race against time. All of us were very busy during finals week and our time management was affected as a result. Even so, we are pretty satisfied with the results. +- Since data visualization is the core of our project, we spent a lot of time gathering relevant data from a variety of sources. Finding data that was useful and well-formatted was difficult at times. +- Roughly half the effort of this project was spent determining what data and visualizations to use, then gathering and formatting the data. + +## Group Member Contributions +### Alan Healy +- Gathered data for the "Society and Colleges" guiding question +- Built the questions and visualizations for the "Society and Colleges" guiding question +- Took notes during meetings +- Set up the static server +- Contributed to project proposal and README + +### Alex Kinley +- Gathered data for the "prevalence" and "factors" guiding questions +- Built the questions and visualizations for the “prevalence” and "factors" guiding questions. +- Set up the boilerplate for the website +- Helped other group members with react, typescript, and nivo +- Set up most of the website functionality +- Acted as team leader for the project + +### Niko Pelletier +- Gathered data for the "treatments" guiding question +- Built the questions and visualizations for the “treatments” guiding question +- Contributed to the project proposal + +### Jyalu Wu +- Gathered data for the "prevention methods" guiding question +- Built the questions and visualizations for the “prevention methods” guiding question +- Visual design of the website, including creating wireframes for it +- Built the “welcome” and “thank you” pages +- Set up the MongoDB database diff --git a/backend/.env b/backend/.env new file mode 100644 index 000000000..46eed139c --- /dev/null +++ b/backend/.env @@ -0,0 +1,4 @@ +PORT=5000 +DB_USER=janaGroup +DB_PASS=PSDglcDcHqLQkrLf +DB_HOST=cluster0.y1zn9.mongodb.net/ \ No newline at end of file diff --git a/backend/build/asset-manifest.json b/backend/build/asset-manifest.json new file mode 100644 index 000000000..dcb4d3a49 --- /dev/null +++ b/backend/build/asset-manifest.json @@ -0,0 +1,22 @@ +{ + "files": { + "main.css": "/static/css/main.b375cd2b.chunk.css", + "main.js": "/static/js/main.20bab42b.chunk.js", + "main.js.map": "/static/js/main.20bab42b.chunk.js.map", + "runtime-main.js": "/static/js/runtime-main.c2a2cf82.js", + "runtime-main.js.map": "/static/js/runtime-main.c2a2cf82.js.map", + "static/js/2.642e8c97.chunk.js": "/static/js/2.642e8c97.chunk.js", + "static/js/2.642e8c97.chunk.js.map": "/static/js/2.642e8c97.chunk.js.map", + "static/js/3.9203943c.chunk.js": "/static/js/3.9203943c.chunk.js", + "static/js/3.9203943c.chunk.js.map": "/static/js/3.9203943c.chunk.js.map", + "index.html": "/index.html", + "static/css/main.b375cd2b.chunk.css.map": "/static/css/main.b375cd2b.chunk.css.map", + "static/js/2.642e8c97.chunk.js.LICENSE.txt": "/static/js/2.642e8c97.chunk.js.LICENSE.txt" + }, + "entrypoints": [ + "static/js/runtime-main.c2a2cf82.js", + "static/js/2.642e8c97.chunk.js", + "static/css/main.b375cd2b.chunk.css", + "static/js/main.20bab42b.chunk.js" + ] +} \ No newline at end of file diff --git a/backend/build/index.html b/backend/build/index.html new file mode 100644 index 000000000..168ef7bf9 --- /dev/null +++ b/backend/build/index.html @@ -0,0 +1 @@ +React App
\ No newline at end of file diff --git a/backend/build/manifest.json b/backend/build/manifest.json new file mode 100644 index 000000000..080d6c77a --- /dev/null +++ b/backend/build/manifest.json @@ -0,0 +1,25 @@ +{ + "short_name": "React App", + "name": "Create React App Sample", + "icons": [ + { + "src": "favicon.ico", + "sizes": "64x64 32x32 24x24 16x16", + "type": "image/x-icon" + }, + { + "src": "logo192.png", + "type": "image/png", + "sizes": "192x192" + }, + { + "src": "logo512.png", + "type": "image/png", + "sizes": "512x512" + } + ], + "start_url": ".", + "display": "standalone", + "theme_color": "#000000", + "background_color": "#ffffff" +} diff --git a/backend/build/robots.txt b/backend/build/robots.txt new file mode 100644 index 000000000..e9e57dc4d --- /dev/null +++ b/backend/build/robots.txt @@ -0,0 +1,3 @@ +# https://www.robotstxt.org/robotstxt.html +User-agent: * +Disallow: diff --git a/backend/build/static/css/main.b375cd2b.chunk.css b/backend/build/static/css/main.b375cd2b.chunk.css new file mode 100644 index 000000000..6d8de8c4b --- /dev/null +++ b/backend/build/static/css/main.b375cd2b.chunk.css @@ -0,0 +1,2 @@ +body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,"Courier New",monospace}.App{text-align:center}.App-logo{height:40vmin;pointer-events:none}@media (prefers-reduced-motion:no-preference){.App-logo{animation:App-logo-spin 20s linear infinite}}.App-header{background-color:#282c34;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:calc(10px + 2vmin);color:#fff}.App-link{color:#61dafb}@keyframes App-logo-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.section{display:flex;flex-direction:column;align-items:center;width:100%}.question-group{display:flex;flex-direction:row;justify-content:center;width:100%;margin-top:-2rem;margin-bottom:2rem}.radio-with-label{display:flex;flex-direction:column;align-items:center;margin-left:2em;margin-right:2em}.container{position:relative;max-width:960px;margin:0 auto;padding:0 20px}.column,.columns,.container{width:100%;box-sizing:border-box}.column,.columns{float:left}@media (min-width:400px){.container{width:85%;padding:0}}@media (min-width:550px){.container{width:80%}.column,.columns{margin-left:4%}.column:first-child,.columns:first-child{margin-left:0}.one.column,.one.columns{width:4.66666666667%}.two.columns{width:13.3333333333%}.three.columns{width:22%}.four.columns{width:30.6666666667%}.five.columns{width:39.3333333333%}.six.columns{width:48%}.seven.columns{width:56.6666666667%}.eight.columns{width:65.3333333333%}.nine.columns{width:74%}.ten.columns{width:82.6666666667%}.eleven.columns{width:91.3333333333%}.twelve.columns{width:100%;margin-left:0}.one-third.column{width:30.6666666667%}.two-thirds.column{width:65.3333333333%}.one-half.column{width:48%}.offset-by-one.column,.offset-by-one.columns{margin-left:8.66666666667%}.offset-by-two.column,.offset-by-two.columns{margin-left:17.3333333333%}.offset-by-three.column,.offset-by-three.columns{margin-left:26%}.offset-by-four.column,.offset-by-four.columns{margin-left:34.6666666667%}.offset-by-five.column,.offset-by-five.columns{margin-left:43.3333333333%}.offset-by-six.column,.offset-by-six.columns{margin-left:52%}.offset-by-seven.column,.offset-by-seven.columns{margin-left:60.6666666667%}.offset-by-eight.column,.offset-by-eight.columns{margin-left:69.3333333333%}.offset-by-nine.column,.offset-by-nine.columns{margin-left:78%}.offset-by-ten.column,.offset-by-ten.columns{margin-left:86.6666666667%}.offset-by-eleven.column,.offset-by-eleven.columns{margin-left:95.3333333333%}.offset-by-one-third.column,.offset-by-one-third.columns{margin-left:34.6666666667%}.offset-by-two-thirds.column,.offset-by-two-thirds.columns{margin-left:69.3333333333%}.offset-by-one-half.column,.offset-by-one-half.columns{margin-left:52%}}html{font-size:62.5%}body{font-size:1.5em;line-height:1.6;font-weight:400;font-family:"Raleway","HelveticaNeue","Helvetica Neue",Helvetica,Arial,sans-serif;color:#222}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:2rem;font-weight:300}h1{font-size:4rem;line-height:1.2}h1,h2{letter-spacing:-.1rem}h2{font-size:3.6rem;line-height:1.25}h3{font-size:3rem;line-height:1.3;letter-spacing:-.1rem}h4{font-size:2.4rem;line-height:1.35;letter-spacing:-.08rem}h5{font-size:1.8rem;line-height:1.5;letter-spacing:-.05rem}h6{font-size:1.5rem;line-height:1.6;letter-spacing:0}@media (min-width:550px){h1{font-size:5rem}h2{font-size:4.2rem}h3{font-size:3.6rem}h4{font-size:3rem}h5{font-size:2.4rem}h6{font-size:1.5rem}}p{margin-top:0}a{color:#1eaedb}a:hover{color:#0fa0ce}.button,button,input[type=button],input[type=reset],input[type=submit]{display:inline-block;height:38px;padding:0 30px;color:#555;text-align:center;font-size:11px;font-weight:600;line-height:38px;letter-spacing:.1rem;text-transform:uppercase;text-decoration:none;white-space:nowrap;background-color:transparent;border-radius:4px;border:1px solid #bbb;cursor:pointer;box-sizing:border-box}.button:focus,.button:hover,button:focus,button:hover,input[type=button]:focus,input[type=button]:hover,input[type=reset]:focus,input[type=reset]:hover,input[type=submit]:focus,input[type=submit]:hover{color:#333;border-color:#888;outline:0}.button.button-primary,button.button-primary,input[type=button].button-primary,input[type=reset].button-primary,input[type=submit].button-primary{color:#fff;background-color:#33c3f0;border-color:#33c3f0}.button.button-primary:focus,.button.button-primary:hover,button.button-primary:focus,button.button-primary:hover,input[type=button].button-primary:focus,input[type=button].button-primary:hover,input[type=reset].button-primary:focus,input[type=reset].button-primary:hover,input[type=submit].button-primary:focus,input[type=submit].button-primary:hover{color:#fff;background-color:#1eaedb;border-color:#1eaedb}input[type=email],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=url],select,textarea{height:38px;padding:6px 10px;background-color:#fff;border:1px solid #d1d1d1;border-radius:4px;box-shadow:none;box-sizing:border-box}input[type=email],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=url],textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none}textarea{min-height:65px;padding-top:6px;padding-bottom:6px}input[type=email]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=url]:focus,select:focus,textarea:focus{border:1px solid #33c3f0;outline:0}label,legend{display:block;margin-bottom:.5rem;font-weight:600}fieldset{padding:0;border-width:0}input[type=checkbox],input[type=radio]{display:inline}label>.label-body{display:inline-block;margin-left:.5rem;font-weight:400}ul{list-style:circle inside}ol{list-style:decimal inside}ol,ul{padding-left:0;margin-top:0}ol ol,ol ul,ul ol,ul ul{margin:1.5rem 0 1.5rem 3rem;font-size:90%}li{margin-bottom:1rem}code{padding:.2rem .5rem;margin:0 .2rem;font-size:90%;white-space:nowrap;background:#f1f1f1;border:1px solid #e1e1e1;border-radius:4px}pre>code{display:block;padding:1rem 1.5rem;white-space:pre}td,th{padding:12px 15px;text-align:left;border-bottom:1px solid #e1e1e1}td:first-child,th:first-child{padding-left:0}td:last-child,th:last-child{padding-right:0}.button,button{margin-bottom:1rem}fieldset,input,select,textarea{margin-bottom:1.5rem}blockquote,dl,figure,form,ol,p,pre,table,ul{margin-bottom:2.5rem}.u-full-width{width:100%;box-sizing:border-box}.u-max-full-width{max-width:100%;box-sizing:border-box}.u-pull-right{float:right}.u-pull-left{float:left}hr{margin-top:3rem;margin-bottom:3.5rem;border-width:0;border-top:1px solid #e1e1e1}.container:after,.row:after,.u-cf{content:"";display:table;clear:both} +/*# sourceMappingURL=main.b375cd2b.chunk.css.map */ \ No newline at end of file diff --git a/backend/build/static/css/main.b375cd2b.chunk.css.map b/backend/build/static/css/main.b375cd2b.chunk.css.map new file mode 100644 index 000000000..ebd39b1a7 --- /dev/null +++ b/backend/build/static/css/main.b375cd2b.chunk.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://src/index.css","webpack://src/App.css","webpack://src/skeleton/skeleton.css"],"names":[],"mappings":"AAAA,KACE,QAAS,CACT,mJAEY,CACZ,kCAAmC,CACnC,iCACF,CAEA,KACE,yEAEF,CCZA,KACI,iBACJ,CAEA,UACI,aAAc,CACd,mBACJ,CAEA,8CACI,UACI,2CACJ,CACJ,CAEA,YACI,wBAAyB,CACzB,gBAAiB,CACjB,YAAa,CACb,qBAAsB,CACtB,kBAAmB,CACnB,sBAAuB,CACvB,4BAA6B,CAC7B,UACJ,CAEA,UACI,aACJ,CAEA,yBACI,GACI,sBACJ,CACA,GACI,uBACJ,CACJ,CAEA,SACI,YAAa,CACb,qBAAsB,CACtB,kBAAmB,CACnB,UACJ,CAEA,gBACI,YAAa,CACb,kBAAmB,CACnB,sBAAuB,CACvB,UAAW,CACX,gBAAiB,CACjB,kBACJ,CAEA,kBACI,YAAa,CACb,qBAAsB,CACtB,kBAAmB,CACnB,eAAgB,CAChB,gBACJ,CC/BA,WACE,iBAAkB,CAElB,eAAgB,CAChB,aAAc,CACd,cACwB,CAC1B,4BALE,UAAW,CAIX,qBAKwB,CAJ1B,iBAGE,UACwB,CAG1B,yBACE,WACE,SAAU,CACV,SAAY,CAChB,CAGA,yBACE,WACE,SAAY,CACd,iBAEE,cAAiB,CACnB,yCAEE,aAAgB,CAElB,yBACkC,oBAAuB,CACzD,aAAkC,oBAAuB,CACzD,eAAkC,SAAuB,CACzD,cAAkC,oBAAuB,CACzD,cAAkC,oBAAuB,CACzD,aAAkC,SAAuB,CACzD,eAAkC,oBAAuB,CACzD,eAAkC,oBAAuB,CACzD,cAAkC,SAAuB,CACzD,aAAkC,oBAAuB,CACzD,gBAAkC,oBAAuB,CACzD,gBAAkC,UAAW,CAAE,aAAgB,CAE/D,kBAAkC,oBAAuB,CACzD,mBAAkC,oBAAuB,CAEzD,iBAAkC,SAAY,CAG9C,6CACkC,0BAA6B,CAC/D,6CACkC,0BAA6B,CAC/D,iDACkC,eAA6B,CAC/D,+CACkC,0BAA6B,CAC/D,+CACkC,0BAA6B,CAC/D,6CACkC,eAA6B,CAC/D,iDACkC,0BAA6B,CAC/D,iDACkC,0BAA6B,CAC/D,+CACkC,eAA6B,CAC/D,6CACkC,0BAA6B,CAC/D,mDACkC,0BAA6B,CAE/D,yDACkC,0BAA6B,CAC/D,2DACkC,0BAA6B,CAE/D,uDACkC,eAAkB,CAEtD,CAQA,KACE,eAAkB,CACpB,KACE,eAAgB,CAChB,eAAgB,CAChB,eAAgB,CAChB,iFAAuF,CACvF,UAAa,CAKf,kBACE,YAAa,CACb,kBAAmB,CACnB,eAAkB,CACpB,GAAK,cAAiB,CAAE,eAA0C,CAClE,MAD2C,qBACwB,CAAnE,GAAK,gBAAiB,CAAE,gBAA2C,CACnE,GAAK,cAAiB,CAAE,eAAgB,CAAG,qBAAwB,CACnE,GAAK,gBAAiB,CAAE,gBAAiB,CAAE,sBAAyB,CACpE,GAAK,gBAAiB,CAAE,eAAgB,CAAG,sBAAyB,CACpE,GAAK,gBAAiB,CAAE,eAAgB,CAAG,gBAAmB,CAG9D,yBACE,GAAK,cAAmB,CACxB,GAAK,gBAAmB,CACxB,GAAK,gBAAmB,CACxB,GAAK,cAAmB,CACxB,GAAK,gBAAmB,CACxB,GAAK,gBAAmB,CAC1B,CAEA,EACE,YAAe,CAKjB,EACE,aAAgB,CAClB,QACE,aAAgB,CAKlB,uEAKE,oBAAqB,CACrB,WAAY,CACZ,cAAe,CACf,UAAW,CACX,iBAAkB,CAClB,cAAe,CACf,eAAgB,CAChB,gBAAiB,CACjB,oBAAqB,CACrB,wBAAyB,CACzB,oBAAqB,CACrB,kBAAmB,CACnB,4BAA6B,CAC7B,iBAAkB,CAClB,qBAAsB,CACtB,cAAe,CACf,qBAAwB,CAC1B,0MAUE,UAAW,CACX,iBAAkB,CAClB,SAAY,CACd,kJAKE,UAAW,CACX,wBAAyB,CACzB,oBAAuB,CACzB,gWAUE,UAAW,CACX,wBAAyB,CACzB,oBAAuB,CAKzB,8IASE,WAAY,CACZ,gBAAiB,CACjB,qBAAsB,CACtB,wBAAyB,CACzB,iBAAkB,CAClB,eAAgB,CAChB,qBAAwB,CAE1B,uIAQE,uBAAwB,CACrB,oBAAqB,CAChB,eAAkB,CAC5B,SACE,eAAgB,CAChB,eAAgB,CAChB,kBAAqB,CACvB,oMASE,wBAAyB,CACzB,SAAY,CACd,aAEE,aAAc,CACd,mBAAoB,CACpB,eAAkB,CACpB,SACE,SAAU,CACV,cAAiB,CACnB,uCAEE,cAAiB,CACnB,kBACE,oBAAqB,CACrB,iBAAkB,CAClB,eAAqB,CAKvB,GACE,wBAA2B,CAC7B,GACE,yBAA4B,CAC9B,MACE,cAAe,CACf,YAAe,CACjB,wBAIE,2BAA4B,CAC5B,aAAgB,CAClB,GACE,kBAAqB,CAKvB,KACE,mBAAoB,CACpB,cAAe,CACf,aAAc,CACd,kBAAmB,CACnB,kBAAmB,CACnB,wBAAyB,CACzB,iBAAoB,CACtB,SACE,aAAc,CACd,mBAAoB,CACpB,eAAkB,CAKpB,MAEE,iBAAkB,CAClB,eAAgB,CAChB,+BAAkC,CACpC,8BAEE,cAAiB,CACnB,4BAEE,eAAkB,CAKpB,eAEE,kBAAqB,CACvB,+BAIE,oBAAuB,CACzB,4CASE,oBAAuB,CAKzB,cACE,UAAW,CACX,qBAAwB,CAC1B,kBACE,cAAe,CACf,qBAAwB,CAC1B,cACE,WAAc,CAChB,aACE,UAAa,CAKf,GACE,eAAgB,CAChB,oBAAqB,CACrB,cAAe,CACf,4BAA+B,CAOjC,kCAGE,UAAW,CACX,aAAc,CACd,UAAa","file":"main.b375cd2b.chunk.css","sourcesContent":["body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n",".App {\n text-align: center;\n}\n\n.App-logo {\n height: 40vmin;\n pointer-events: none;\n}\n\n@media (prefers-reduced-motion: no-preference) {\n .App-logo {\n animation: App-logo-spin infinite 20s linear;\n }\n}\n\n.App-header {\n background-color: #282c34;\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n font-size: calc(10px + 2vmin);\n color: white;\n}\n\n.App-link {\n color: #61dafb;\n}\n\n@keyframes App-logo-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n\n.section {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n}\n\n.question-group {\n display: flex;\n flex-direction: row;\n justify-content: center;\n width: 100%;\n margin-top: -2rem;\n margin-bottom: 2rem;\n}\n\n.radio-with-label {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-left: 2em;\n margin-right: 2em;\n}","/*\n* Skeleton V2.0.4\n* Copyright 2014, Dave Gamache\n* www.getskeleton.com\n* Free to use under the MIT license.\n* http://www.opensource.org/licenses/mit-license.php\n* 12/29/2014\n*/\n\n\n/* Table of contents\n––––––––––––––––––––––––––––––––––––––––––––––––––\n- Grid\n- Base Styles\n- Typography\n- Links\n- Buttons\n- Forms\n- Lists\n- Code\n- Tables\n- Spacing\n- Utilities\n- Clearing\n- Media Queries\n*/\n\n\n/* Grid\n–––––––––––––––––––––––––––––––––––––––––––––––––– */\n.container {\n position: relative;\n width: 100%;\n max-width: 960px;\n margin: 0 auto;\n padding: 0 20px;\n box-sizing: border-box; }\n.column,\n.columns {\n width: 100%;\n float: left;\n box-sizing: border-box; }\n\n/* For devices larger than 400px */\n@media (min-width: 400px) {\n .container {\n width: 85%;\n padding: 0; }\n}\n\n/* For devices larger than 550px */\n@media (min-width: 550px) {\n .container {\n width: 80%; }\n .column,\n .columns {\n margin-left: 4%; }\n .column:first-child,\n .columns:first-child {\n margin-left: 0; }\n\n .one.column,\n .one.columns { width: 4.66666666667%; }\n .two.columns { width: 13.3333333333%; }\n .three.columns { width: 22%; }\n .four.columns { width: 30.6666666667%; }\n .five.columns { width: 39.3333333333%; }\n .six.columns { width: 48%; }\n .seven.columns { width: 56.6666666667%; }\n .eight.columns { width: 65.3333333333%; }\n .nine.columns { width: 74.0%; }\n .ten.columns { width: 82.6666666667%; }\n .eleven.columns { width: 91.3333333333%; }\n .twelve.columns { width: 100%; margin-left: 0; }\n\n .one-third.column { width: 30.6666666667%; }\n .two-thirds.column { width: 65.3333333333%; }\n\n .one-half.column { width: 48%; }\n\n /* Offsets */\n .offset-by-one.column,\n .offset-by-one.columns { margin-left: 8.66666666667%; }\n .offset-by-two.column,\n .offset-by-two.columns { margin-left: 17.3333333333%; }\n .offset-by-three.column,\n .offset-by-three.columns { margin-left: 26%; }\n .offset-by-four.column,\n .offset-by-four.columns { margin-left: 34.6666666667%; }\n .offset-by-five.column,\n .offset-by-five.columns { margin-left: 43.3333333333%; }\n .offset-by-six.column,\n .offset-by-six.columns { margin-left: 52%; }\n .offset-by-seven.column,\n .offset-by-seven.columns { margin-left: 60.6666666667%; }\n .offset-by-eight.column,\n .offset-by-eight.columns { margin-left: 69.3333333333%; }\n .offset-by-nine.column,\n .offset-by-nine.columns { margin-left: 78.0%; }\n .offset-by-ten.column,\n .offset-by-ten.columns { margin-left: 86.6666666667%; }\n .offset-by-eleven.column,\n .offset-by-eleven.columns { margin-left: 95.3333333333%; }\n\n .offset-by-one-third.column,\n .offset-by-one-third.columns { margin-left: 34.6666666667%; }\n .offset-by-two-thirds.column,\n .offset-by-two-thirds.columns { margin-left: 69.3333333333%; }\n\n .offset-by-one-half.column,\n .offset-by-one-half.columns { margin-left: 52%; }\n\n}\n\n\n/* Base Styles\n–––––––––––––––––––––––––––––––––––––––––––––––––– */\n/* NOTE\nhtml is set to 62.5% so that all the REM measurements throughout Skeleton\nare based on 10px sizing. So basically 1.5rem = 15px :) */\nhtml {\n font-size: 62.5%; }\nbody {\n font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */\n line-height: 1.6;\n font-weight: 400;\n font-family: \"Raleway\", \"HelveticaNeue\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n color: #222; }\n\n\n/* Typography\n–––––––––––––––––––––––––––––––––––––––––––––––––– */\nh1, h2, h3, h4, h5, h6 {\n margin-top: 0;\n margin-bottom: 2rem;\n font-weight: 300; }\nh1 { font-size: 4.0rem; line-height: 1.2; letter-spacing: -.1rem;}\nh2 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; }\nh3 { font-size: 3.0rem; line-height: 1.3; letter-spacing: -.1rem; }\nh4 { font-size: 2.4rem; line-height: 1.35; letter-spacing: -.08rem; }\nh5 { font-size: 1.8rem; line-height: 1.5; letter-spacing: -.05rem; }\nh6 { font-size: 1.5rem; line-height: 1.6; letter-spacing: 0; }\n\n/* Larger than phablet */\n@media (min-width: 550px) {\n h1 { font-size: 5.0rem; }\n h2 { font-size: 4.2rem; }\n h3 { font-size: 3.6rem; }\n h4 { font-size: 3.0rem; }\n h5 { font-size: 2.4rem; }\n h6 { font-size: 1.5rem; }\n}\n\np {\n margin-top: 0; }\n\n\n/* Links\n–––––––––––––––––––––––––––––––––––––––––––––––––– */\na {\n color: #1EAEDB; }\na:hover {\n color: #0FA0CE; }\n\n\n/* Buttons\n–––––––––––––––––––––––––––––––––––––––––––––––––– */\n.button,\nbutton,\ninput[type=\"submit\"],\ninput[type=\"reset\"],\ninput[type=\"button\"] {\n display: inline-block;\n height: 38px;\n padding: 0 30px;\n color: #555;\n text-align: center;\n font-size: 11px;\n font-weight: 600;\n line-height: 38px;\n letter-spacing: .1rem;\n text-transform: uppercase;\n text-decoration: none;\n white-space: nowrap;\n background-color: transparent;\n border-radius: 4px;\n border: 1px solid #bbb;\n cursor: pointer;\n box-sizing: border-box; }\n.button:hover,\nbutton:hover,\ninput[type=\"submit\"]:hover,\ninput[type=\"reset\"]:hover,\ninput[type=\"button\"]:hover,\n.button:focus,\nbutton:focus,\ninput[type=\"submit\"]:focus,\ninput[type=\"reset\"]:focus,\ninput[type=\"button\"]:focus {\n color: #333;\n border-color: #888;\n outline: 0; }\n.button.button-primary,\nbutton.button-primary,\ninput[type=\"submit\"].button-primary,\ninput[type=\"reset\"].button-primary,\ninput[type=\"button\"].button-primary {\n color: #FFF;\n background-color: #33C3F0;\n border-color: #33C3F0; }\n.button.button-primary:hover,\nbutton.button-primary:hover,\ninput[type=\"submit\"].button-primary:hover,\ninput[type=\"reset\"].button-primary:hover,\ninput[type=\"button\"].button-primary:hover,\n.button.button-primary:focus,\nbutton.button-primary:focus,\ninput[type=\"submit\"].button-primary:focus,\ninput[type=\"reset\"].button-primary:focus,\ninput[type=\"button\"].button-primary:focus {\n color: #FFF;\n background-color: #1EAEDB;\n border-color: #1EAEDB; }\n\n\n/* Forms\n–––––––––––––––––––––––––––––––––––––––––––––––––– */\ninput[type=\"email\"],\ninput[type=\"number\"],\ninput[type=\"search\"],\ninput[type=\"text\"],\ninput[type=\"tel\"],\ninput[type=\"url\"],\ninput[type=\"password\"],\ntextarea,\nselect {\n height: 38px;\n padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */\n background-color: #fff;\n border: 1px solid #D1D1D1;\n border-radius: 4px;\n box-shadow: none;\n box-sizing: border-box; }\n/* Removes awkward default styles on some inputs for iOS */\ninput[type=\"email\"],\ninput[type=\"number\"],\ninput[type=\"search\"],\ninput[type=\"text\"],\ninput[type=\"tel\"],\ninput[type=\"url\"],\ninput[type=\"password\"],\ntextarea {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none; }\ntextarea {\n min-height: 65px;\n padding-top: 6px;\n padding-bottom: 6px; }\ninput[type=\"email\"]:focus,\ninput[type=\"number\"]:focus,\ninput[type=\"search\"]:focus,\ninput[type=\"text\"]:focus,\ninput[type=\"tel\"]:focus,\ninput[type=\"url\"]:focus,\ninput[type=\"password\"]:focus,\ntextarea:focus,\nselect:focus {\n border: 1px solid #33C3F0;\n outline: 0; }\nlabel,\nlegend {\n display: block;\n margin-bottom: .5rem;\n font-weight: 600; }\nfieldset {\n padding: 0;\n border-width: 0; }\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n display: inline; }\nlabel > .label-body {\n display: inline-block;\n margin-left: .5rem;\n font-weight: normal; }\n\n\n/* Lists\n–––––––––––––––––––––––––––––––––––––––––––––––––– */\nul {\n list-style: circle inside; }\nol {\n list-style: decimal inside; }\nol, ul {\n padding-left: 0;\n margin-top: 0; }\nul ul,\nul ol,\nol ol,\nol ul {\n margin: 1.5rem 0 1.5rem 3rem;\n font-size: 90%; }\nli {\n margin-bottom: 1rem; }\n\n\n/* Code\n–––––––––––––––––––––––––––––––––––––––––––––––––– */\ncode {\n padding: .2rem .5rem;\n margin: 0 .2rem;\n font-size: 90%;\n white-space: nowrap;\n background: #F1F1F1;\n border: 1px solid #E1E1E1;\n border-radius: 4px; }\npre > code {\n display: block;\n padding: 1rem 1.5rem;\n white-space: pre; }\n\n\n/* Tables\n–––––––––––––––––––––––––––––––––––––––––––––––––– */\nth,\ntd {\n padding: 12px 15px;\n text-align: left;\n border-bottom: 1px solid #E1E1E1; }\nth:first-child,\ntd:first-child {\n padding-left: 0; }\nth:last-child,\ntd:last-child {\n padding-right: 0; }\n\n\n/* Spacing\n–––––––––––––––––––––––––––––––––––––––––––––––––– */\nbutton,\n.button {\n margin-bottom: 1rem; }\ninput,\ntextarea,\nselect,\nfieldset {\n margin-bottom: 1.5rem; }\npre,\nblockquote,\ndl,\nfigure,\ntable,\np,\nul,\nol,\nform {\n margin-bottom: 2.5rem; }\n\n\n/* Utilities\n–––––––––––––––––––––––––––––––––––––––––––––––––– */\n.u-full-width {\n width: 100%;\n box-sizing: border-box; }\n.u-max-full-width {\n max-width: 100%;\n box-sizing: border-box; }\n.u-pull-right {\n float: right; }\n.u-pull-left {\n float: left; }\n\n\n/* Misc\n–––––––––––––––––––––––––––––––––––––––––––––––––– */\nhr {\n margin-top: 3rem;\n margin-bottom: 3.5rem;\n border-width: 0;\n border-top: 1px solid #E1E1E1; }\n\n\n/* Clearing\n–––––––––––––––––––––––––––––––––––––––––––––––––– */\n\n/* Self Clearing Goodness */\n.container:after,\n.row:after,\n.u-cf {\n content: \"\";\n display: table;\n clear: both; }\n\n\n/* Media Queries\n–––––––––––––––––––––––––––––––––––––––––––––––––– */\n/*\nNote: The best way to structure the use of media queries is to create the queries\nnear the relevant code. For example, if you wanted to change the styles for buttons\non small devices, paste the mobile query code up in the buttons section and style it\nthere.\n*/\n\n\n/* Larger than mobile */\n@media (min-width: 400px) {}\n\n/* Larger than phablet (also point when grid becomes active) */\n@media (min-width: 550px) {}\n\n/* Larger than tablet */\n@media (min-width: 750px) {}\n\n/* Larger than desktop */\n@media (min-width: 1000px) {}\n\n/* Larger than Desktop HD */\n@media (min-width: 1200px) {}\n"]} \ No newline at end of file diff --git a/backend/build/static/js/2.642e8c97.chunk.js b/backend/build/static/js/2.642e8c97.chunk.js new file mode 100644 index 000000000..9aa872f7c --- /dev/null +++ b/backend/build/static/js/2.642e8c97.chunk.js @@ -0,0 +1,3 @@ +/*! For license information please see 2.642e8c97.chunk.js.LICENSE.txt */ +(this["webpackJsonpmy-app"]=this["webpackJsonpmy-app"]||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(256)},function(e,t,n){"use strict";n.d(t,"w",(function(){return u})),n.d(t,"a",(function(){return je})),n.d(t,"b",(function(){return W})),n.d(t,"c",(function(){return _e})),n.d(t,"d",(function(){return xe})),n.d(t,"e",(function(){return X})),n.d(t,"f",(function(){return pe})),n.d(t,"g",(function(){return Ae})),n.d(t,"h",(function(){return S})),n.d(t,"i",(function(){return ze})),n.d(t,"j",(function(){return Ne})),n.d(t,"k",(function(){return E})),n.d(t,"l",(function(){return T})),n.d(t,"m",(function(){return A})),n.d(t,"n",(function(){return I})),n.d(t,"o",(function(){return B})),n.d(t,"p",(function(){return Oe})),n.d(t,"q",(function(){return me})),n.d(t,"r",(function(){return ge})),n.d(t,"s",(function(){return M})),n.d(t,"t",(function(){return We})),n.d(t,"u",(function(){return C})),n.d(t,"v",(function(){return k})),n.d(t,"x",(function(){return ke})),n.d(t,"y",(function(){return P})),n.d(t,"z",(function(){return qe})),n.d(t,"A",(function(){return Ye})),n.d(t,"B",(function(){return Be})),n.d(t,"C",(function(){return Fe})),n.d(t,"D",(function(){return He}));var r=n(10),i=n(14),o=n(49),a=x(),u=function(e){return y(e,a)},c=x();u.write=function(e){return y(e,c)};var l=x();u.onStart=function(e){return y(e,l)};var s=x();u.onFrame=function(e){return y(e,s)};var f=x();u.onFinish=function(e){return y(e,f)};var d=[];u.setTimeout=function(e,t){var n=u.now()+t,r={time:n,handler:e,cancel:function e(){var t=d.findIndex((function(t){return t.cancel==e}));~t&&d.splice(t,1),w.count-=~t?1:0}};return d.splice(h(n),0,r),w.count+=1,g(),r};var h=function(e){return~(~d.findIndex((function(t){return t.time>e}))||~d.length)};u.cancel=function(e){a.delete(e),c.delete(e)},u.sync=function(e){v=!0,u.batchedUpdates(e),v=!1},u.throttle=function(e){var t;function n(){try{e.apply(void 0,Object(o.a)(t))}finally{t=null}}function r(){for(var e=arguments.length,r=new Array(e),i=0;i1?t-1:0),r=1;re.priority?(F.add(e),u.onStart(H)):(Y(e),u($))},advance:$,sort:function(e){if(V)u.onFrame((function(){return B.sort(e)}));else{var t=U.indexOf(e);~t&&(U.splice(t,1),G(e))}},clear:function(){U=[],F.clear()}};function H(){F.forEach(Y),F.clear(),u($)}function Y(e){U.includes(e)||G(e)}function G(e){U.splice(function(e,t){var n=e.findIndex(t);return n<0?e.length:n}(U,(function(t){return t.priority>e.priority})),0,e)}function $(e){for(var t=q,n=0;n0}var X={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Q="[-+]?\\d*\\.?\\d+",K=Q+"%";function Z(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ce(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=ue(i,r,e+1/3),a=ue(i,r,e),u=ue(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*u)<<8}function le(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function se(e){return(parseFloat(e)%360+360)%360/360}function fe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function de(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function he(e){var t=function(e){var t;return"number"===typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=oe.exec(e))?parseInt(t[1]+"ff",16)>>>0:N&&void 0!==N[e]?N[e]:(t=J.exec(e))?(le(t[1])<<24|le(t[2])<<16|le(t[3])<<8|255)>>>0:(t=ee.exec(e))?(le(t[1])<<24|le(t[2])<<16|le(t[3])<<8|fe(t[4]))>>>0:(t=re.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ae.exec(e))?parseInt(t[1],16)>>>0:(t=ie.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=te.exec(e))?(255|ce(se(t[1]),de(t[2]),de(t[3])))>>>0:(t=ne.exec(e))?(ce(se(t[1]),de(t[2]),de(t[3]))|fe(t[4]))>>>0:null}(e);if(null===t)return e;var n=(16711680&(t=t||0))>>>16,r=(65280&t)>>>8,i=(255&t)/255;return"rgba(".concat((4278190080&t)>>>24,", ").concat(n,", ").concat(r,", ").concat(i,")")}var pe=function e(t,n,r){if(M.fun(t))return t;if(M.arr(t))return e({range:t,output:n,extrapolate:r});if(M.str(t.output[0]))return R(t);var i=t,o=i.output,a=i.range||[0,1],u=i.extrapolateLeft||i.extrapolate||"extend",c=i.extrapolateRight||i.extrapolate||"extend",l=i.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n=e);++n);return n-1}(e,a);return function(e,t,n,r,i,o,a,u,c){var l=c?c(e):e;if(ln){if("identity"===u)return l;"clamp"===u&&(l=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t);l=o(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r;return l}(e,a[t],a[t+1],o[t],o[t+1],l,u,c,i.map)}};function be(){return(be=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};return Object(r.useMemo)((function(){var r=tt(tt({},Pt),n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}}),[e,t,n.top,n.right,n.bottom,n.left])};function Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0},e.prototype.connect_=function(){Dt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ut?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Dt&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Ft.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Vt=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),tn="undefined"!==typeof WeakMap?new WeakMap:new Nt,nn=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=qt.getInstance(),r=new en(t,n,this);tn.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){nn.prototype[e]=function(){var t;return(t=tn.get(this))[e].apply(t,arguments)}}));var rn="undefined"!==typeof zt.ResizeObserver?zt.ResizeObserver:nn,on=function(){var e=Object(r.useRef)(null),t=It(Object(r.useState)({left:0,top:0,width:0,height:0}),2),n=t[0],i=t[1],o=Object(r.useState)((function(){return new rn((function(e){var t=It(e,1)[0];return i(t.contentRect)}))})),a=It(o,1)[0];return Object(r.useEffect)((function(){return e.current&&a.observe(e.current),function(){return a.disconnect()}}),[]),[e,n]},an=function(e){return Object(r.useMemo)((function(){return"function"===typeof(t=e)?t:"string"===typeof t?0===t.indexOf("time:")?Object(Ye.a)(t.slice("5")):Object(He.a)(t):function(e){return"".concat(e)};var t}),[e])},un=Object(r.createContext)(),cn={},ln=function(e){var t=e.theme,n=void 0===t?cn:t,i=e.children,o=function(e){return Object(r.useMemo)((function(){return ht(ft,e)}),[e])}(n);return Object(y.jsx)(un.Provider,{value:o,children:i})},sn=function(){return Object(r.useContext)(un)},fn=function(e){var t=e.children,n=e.condition,i=e.wrapper;return n?Object(r.cloneElement)(i,{},t):t},dn={position:"relative"},hn=function(e){var t=e.children,n=e.theme,o=e.renderWrapper,a=void 0===o||o,u=e.isInteractive,c=void 0===u||u,l=e.animate,s=e.motionStiffness,f=e.motionDamping,d=e.motionConfig,h=Object(r.useRef)(null);return Object(y.jsx)(ln,{theme:n,children:Object(y.jsx)(bt,{animate:l,stiffness:s,damping:f,config:d,children:Object(y.jsx)(i.d,{container:h,children:Object(y.jsxs)(fn,{condition:a,wrapper:Object(y.jsx)("div",{style:dn,ref:h}),children:[t,c&&Object(y.jsx)(i.b,{})]})})})})},pn=function(e){var t=e.children,n=It(on(),2),r=n[0],i=n[1],o=i.width>0&&i.height>0;return Object(y.jsx)("div",{ref:r,style:{width:"100%",height:"100%"},children:o&&t({width:i.width,height:i.height})})},bn={linearGradient:function(e){var t=e.id,n=e.colors;return Object(y.jsx)("linearGradient",{id:t,x1:0,x2:0,y1:0,y2:1,children:n.map((function(e){var t=e.offset,n=e.color,r=e.opacity;return Object(y.jsx)("stop",{offset:"".concat(t,"%"),stopColor:n,stopOpacity:void 0!==r?r:1},t)}))})}},vn=Object(r.memo)((function(e){var t=e.id,n=e.background,r=e.color,i=e.size,o=e.padding,a=e.stagger,u=i+o,c=i/2,l=o/2;return!0===a&&(u=2*i+2*o),Object(y.jsxs)("pattern",{id:t,width:u,height:u,patternUnits:"userSpaceOnUse",children:[Object(y.jsx)("rect",{width:u,height:u,fill:n}),Object(y.jsx)("circle",{cx:l+c,cy:l+c,r:c,fill:r}),a&&Object(y.jsx)("circle",{cx:1.5*o+i+c,cy:1.5*o+i+c,r:c,fill:r})]})}));vn.displayName="PatternDots",vn.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};Math.PI;var yn=function(e){return e*Math.PI/180},gn=function(e){return 180*e/Math.PI},mn=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},On=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},xn=function(e){var t=e%360;return t<0&&(t+=360),t},jn={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},wn=Object(r.memo)((function(e){var t=e.id,n=e.spacing,r=e.rotation,i=e.background,o=e.color,a=e.lineWidth,u=Math.round(r)%360,c=Math.abs(n);u>180?u-=360:u>90?u-=180:u<-180?u+=360:u<-90&&(u+=180);var l,s=c,f=c;return 0===u?l="\n M 0 0 L ".concat(s," 0\n M 0 ").concat(f," L ").concat(s," ").concat(f,"\n "):90===u?l="\n M 0 0 L 0 ".concat(f,"\n M ").concat(s," 0 L ").concat(s," ").concat(f,"\n "):(s=Math.abs(c/Math.sin(yn(u))),f=c/Math.sin(yn(90-u)),l=u>0?"\n M 0 ".concat(-f," L ").concat(2*s," ").concat(f,"\n M ").concat(-s," ").concat(-f," L ").concat(s," ").concat(f,"\n M ").concat(-s," 0 L ").concat(s," ").concat(2*f,"\n "):"\n M ".concat(-s," ").concat(f," L ").concat(s," ").concat(-f,"\n M ").concat(-s," ").concat(2*f," L ").concat(2*s," ").concat(-f,"\n M 0 ").concat(2*f," L ").concat(2*s," 0\n ")),Object(y.jsxs)("pattern",{id:t,width:s,height:f,patternUnits:"userSpaceOnUse",children:[Object(y.jsx)("rect",{width:s,height:f,fill:i,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),Object(y.jsx)("path",{d:l,strokeWidth:a,stroke:o,strokeLinecap:"square"})]})}));wn.displayName="PatternLines",wn.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var _n=Object(r.memo)((function(e){var t=e.id,n=e.background,r=e.color,i=e.size,o=e.padding,a=e.stagger,u=i+o,c=o/2;return!0===a&&(u=2*i+2*o),Object(y.jsxs)("pattern",{id:t,width:u,height:u,patternUnits:"userSpaceOnUse",children:[Object(y.jsx)("rect",{width:u,height:u,fill:n}),Object(y.jsx)("rect",{x:c,y:c,width:i,height:i,fill:r}),a&&Object(y.jsx)("rect",{x:1.5*o+i,y:1.5*o+i,width:i,height:i,fill:r})]})}));_n.displayName="PatternSquares",_n.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var kn={patternDots:vn,patternLines:wn,patternSquares:_n};function Sn(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Mn=tt(tt({},bn),kn),Cn=Object(r.memo)((function(e){var t=e.defs;return!t||t.length<1?null:Object(y.jsx)("defs",{"aria-hidden":!0,children:t.map((function(e){var t=e.type,n=Sn(e,["type"]);return Mn[t]?Object(r.createElement)(Mn[t],tt({key:n.id},n)):null}))})})),En=function(e){var t=e.width,n=e.height,r=e.margin,i=e.defs,o=e.children,a=e.role,u=e.ariaLabel,c=e.ariaLabelledBy,l=e.ariaDescribedBy,s=e.isFocusable,f=sn();return Object(y.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:a,"aria-label":u,"aria-labelledby":c,"aria-describedby":l,focusable:s,tabIndex:s?0:void 0,children:[Object(y.jsx)(Cn,{defs:i}),Object(y.jsx)("rect",{width:t,height:n,fill:f.background}),Object(y.jsx)("g",{transform:"translate(".concat(r.left,",").concat(r.top,")"),children:o})]})},Tn=Object(r.memo)((function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return Object(y.jsx)("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})})),Pn=(Object(r.memo)((function(e){var t=e.x,n=e.y,i=e.symbol,o=void 0===i?Tn:i,a=e.size,u=e.datum,c=e.color,l=e.borderWidth,s=e.borderColor,f=e.label,d=e.labelTextAnchor,h=void 0===d?"middle":d,b=e.labelYOffset,v=void 0===b?-12:b,g=sn(),m=vt(),O=m.animate,x=m.config,j=Object(p.useSpring)({transform:"translate(".concat(t,", ").concat(n,")"),config:x,immediate:!O});return Object(y.jsxs)(p.animated.g,{transform:j.transform,style:{pointerEvents:"none"},children:[Object(r.createElement)(o,{size:a,color:c,datum:u,borderWidth:l,borderColor:s}),f&&Object(y.jsx)("text",{textAnchor:h,y:v,style:g.dots.text,children:f})]})})),function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,o=e.value,a=e.lineStyle,u=e.textStyle,c=e.legend,l=e.legendPosition,s=e.legendOffsetX,f=e.legendOffsetY,d=e.legendOrientation,h=sn(),p=0,b=0,v=0,g=0;"y"===r?(v=i(o),b=t):(p=i(o),g=n);var m=null;if(c){var O=function(e){var t=e.axis,n=e.width,r=e.height,i=e.position,o=e.offsetX,a=e.offsetY,u=e.orientation,c=0,l=0,s="vertical"===u?-90:0,f="start";if("x"===t)switch(i){case"top-left":c=-o,l=a,f="end";break;case"top":l=-a,f="horizontal"===u?"middle":"start";break;case"top-right":c=o,l=a,f="horizontal"===u?"start":"end";break;case"right":c=o,l=r/2,f="horizontal"===u?"start":"middle";break;case"bottom-right":c=o,l=r-a,f="start";break;case"bottom":l=r+a,f="horizontal"===u?"middle":"end";break;case"bottom-left":l=r-a,c=-o,f="horizontal"===u?"end":"start";break;case"left":c=-o,l=r/2,f="horizontal"===u?"end":"middle"}else switch(i){case"top-left":c=o,l=-a,f="start";break;case"top":c=n/2,l=-a,f="horizontal"===u?"middle":"start";break;case"top-right":c=n-o,l=-a,f="horizontal"===u?"end":"start";break;case"right":c=n+o,f="horizontal"===u?"start":"middle";break;case"bottom-right":c=n-o,l=a,f="end";break;case"bottom":c=n/2,l=a,f="horizontal"===u?"middle":"end";break;case"bottom-left":c=o,l=a,f="horizontal"===u?"start":"end";break;case"left":c=-o,f="horizontal"===u?"end":"middle"}return{x:c,y:l,rotation:s,textAnchor:f}}({axis:r,width:t,height:n,position:l,offsetX:s,offsetY:f,orientation:d});m=Object(y.jsx)("text",{transform:"translate(".concat(O.x,", ").concat(O.y,") rotate(").concat(O.rotation,")"),textAnchor:O.textAnchor,dominantBaseline:"central",style:u,children:c})}return Object(y.jsxs)("g",{transform:"translate(".concat(p,", ").concat(v,")"),children:[Object(y.jsx)("line",{x1:0,x2:b,y1:0,y2:g,stroke:h.markers.lineColor,strokeWidth:h.markers.lineStrokeWidth,style:a}),m]})});Pn.defaultProps={legendPosition:"top-right",legendOffsetX:14,legendOffsetY:14,legendOrientation:"horizontal"};var An=Object(r.memo)(Pn),Rn=Object(r.memo)((function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,o=e.yScale;return t&&0!==t.length?t.map((function(e,t){return Object(y.jsx)(An,tt(tt({},e),{},{width:n,height:r,scale:"y"===e.axis?o:i}),t)})):null}));function Ln(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function In(e,t){for(var n=0;n0?i:2*Math.PI+i},Yn=function(e,t,n,r,i,o){return e<=i&&i<=e+n&&t<=o&&o<=t+r},Gn=function(e,t){var n=t.clientX,r=t.clientY,i=e.getBoundingClientRect();return[n-i.left,r-i.top]};function $n(e){return function(e){if(Array.isArray(e))return Rt(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Lt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Xn=Object.keys(bn),Qn=Object.keys(kn),Kn=function(e,t,n){if("*"===e)return!0;if(fe()(e))return e(t);if(Qe()(e)){var r=n?s()(t,n):t;return $e()(Ze()(r,Object.keys(e)),e)}return!1},Zn=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.dataKey,o=r.colorKey,a=void 0===o?"color":o,u=r.targetKey,c=void 0===u?"fill":u,l=[],f={};return e.length&&t.length&&(l=$n(e),t.forEach((function(t){for(var r=function(r){var o=n[r],u=o.id,h=o.match;if(Kn(h,t,i)){var p=e.find((function(e){return e.id===u}));if(p)if(Qn.includes(p.type))if("inherit"===p.background||"inherit"===p.color){var b=s()(t,a),v=p.background,y=p.color,g=u;"inherit"===p.background&&(g="".concat(g,".bg.").concat(b),v=b),"inherit"===p.color&&(g="".concat(g,".fg.").concat(b),y=b),d()(t,c,"url(#".concat(g,")")),f[g]||(l.push(tt(tt({},p),{},{id:g,background:v,color:y})),f[g]=1)}else d()(t,c,"url(#".concat(u,")"));else if(Xn.includes(p.type)){if(p.colors.map((function(e){return e.color})).includes("inherit")){var m=s()(t,a),O=u,x=tt(tt({},p),{},{colors:p.colors.map((function(e,t){return"inherit"!==e.color?e:(O="".concat(O,".").concat(t,".").concat(m),tt(tt({},e),{},{color:"inherit"===e.color?m:e.color}))}))});x.id=O,d()(t,c,"url(#".concat(O,")")),f[O]||(l.push(x),f[O]=1)}else d()(t,c,"url(#".concat(u,")"))}return"break"}},o=0;o1?0:e<-1?f:Math.acos(e)}function b(e){return e>=1?d:e<=-1?-d:Math.asin(e)}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){"use strict";var r=n(138);t.a=function(e){return Object(r.b)(e[e.length-1])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return Qn})),n.d(t,"b",(function(){return er}));var r=n(3),i=n(11),o=n(4),a=n(13),u=Object(a.a)((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));u.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Object(a.a)((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):u:null};var c=u,l=(u.range,n(16)),s=Object(a.a)((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*l.d)}),(function(e,t){return(t-e)/l.d}),(function(e){return e.getUTCSeconds()})),f=s,d=(s.range,Object(a.a)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*l.d)}),(function(e,t){e.setTime(+e+t*l.c)}),(function(e,t){return(t-e)/l.c}),(function(e){return e.getMinutes()}))),h=d,p=(d.range,Object(a.a)((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*l.c)}),(function(e,t){return(t-e)/l.c}),(function(e){return e.getUTCMinutes()}))),b=p,v=(p.range,Object(a.a)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*l.d-e.getMinutes()*l.c)}),(function(e,t){e.setTime(+e+t*l.b)}),(function(e,t){return(t-e)/l.b}),(function(e){return e.getHours()}))),y=v,g=(v.range,Object(a.a)((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*l.b)}),(function(e,t){return(t-e)/l.b}),(function(e){return e.getUTCHours()}))),m=g,O=(g.range,n(402)),x=n(401),j=Object(a.a)((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),w=j,_=(j.range,Object(a.a)((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}))),k=_,S=(_.range,n(403)),M=n(404),C=n(394),E=n(184),T=n(0),P=n(2),A=n.n(P);function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?(g=h.align[y?"left":"right"],m=h.baseline.center):("after"===i&&l>0||"before"===i&&l<0)&&(g=h.align[y?"right":"left"],m=h.baseline.center)):(t=function(e){var t;return{x:0,y:null!==(t=p(e))&&void 0!==t?t:0}},b.lineX=u*("after"===i?1:-1),v.textX=(u+c)*("after"===i?1:-1),g="after"===i?h.align.left:h.align.right),{ticks:d.map((function(e){return I(I(I({key:"number"===typeof e||"string"===typeof e?e:"".concat(e),value:e},t(e)),b),v)})),textAlign:g,textBaseline:m}},B=function(e,t){if("undefined"===typeof e||"function"===typeof e)return e;if("time"===t.type){var n=Object(C.a)(e);return function(e){return n(e instanceof Date?e:new Date(e))}}return Object(E.a)(e)},H=function(e){var t,n=e.width,r=e.height,i=e.scale,o=e.axis,a=e.values,u=(t=a,Array.isArray(t)?a:void 0)||q(i,a),c="bandwidth"in i?z(i):i;return"x"===o?u.map((function(e){var t,n;return{key:"".concat(e),x1:null!==(t=c(e))&&void 0!==t?t:0,x2:null!==(n=c(e))&&void 0!==n?n:0,y1:0,y2:r}})):u.map((function(e){var t,r;return{key:"".concat(e),x1:0,x2:n,y1:null!==(t=c(e))&&void 0!==t?t:0,y2:null!==(r=c(e))&&void 0!==r?r:0}}))},Y=Object(r.memo)((function(e){var t,n=e.value,a=e.format,u=e.lineX,c=e.lineY,l=e.onClick,s=e.textBaseline,f=e.textAnchor,d=e.animatedProps,h=Object(o.x)(),p=null!==(t=null===a||void 0===a?void 0:a(n))&&void 0!==t?t:n,b=Object(r.useMemo)((function(){var e={opacity:d.opacity};return l?{style:I(I({},e),{},{cursor:"pointer"}),onClick:function(e){return l(e,p)}}:{style:e}}),[d.opacity,l,p]);return Object(T.jsxs)(i.animated.g,I(I({transform:d.transform},b),{},{children:[Object(T.jsx)("line",{x1:0,x2:u,y1:0,y2:c,style:h.axis.ticks.line}),Object(T.jsx)(i.animated.text,{dominantBaseline:s,textAnchor:f,transform:d.textTransform,style:h.axis.ticks.text,children:p})]}))})),G=Object(r.memo)((function(e){var t=e.axis,n=e.scale,a=e.x,u=void 0===a?0:a,c=e.y,l=void 0===c?0:c,s=e.length,f=e.ticksPosition,d=e.tickValues,h=e.tickSize,p=void 0===h?5:h,b=e.tickPadding,v=void 0===b?5:b,y=e.tickRotation,g=void 0===y?0:y,m=e.format,O=e.renderTick,x=void 0===O?Y:O,j=e.legend,w=e.legendPosition,_=void 0===w?"end":w,k=e.legendOffset,S=void 0===k?0:k,M=e.onClick,C=e.ariaHidden,E=Object(o.x)(),P=Object(r.useMemo)((function(){return B(m,n)}),[m,n]),A=V({axis:t,scale:n,ticksPosition:f,tickValues:d,tickSize:p,tickPadding:v,tickRotation:g}),R=A.ticks,L=A.textAlign,N=A.textBaseline,D=null;if(void 0!==j){var z,W=0,F=0,U=0;"y"===t?(U=-90,W=S,"start"===_?(z="start",F=s):"middle"===_?(z="middle",F=s/2):"end"===_&&(z="end")):(F=S,"start"===_?z="start":"middle"===_?(z="middle",W=s/2):"end"===_&&(z="end",W=s)),D=Object(T.jsx)("text",{transform:"translate(".concat(W,", ").concat(F,") rotate(").concat(U,")"),textAnchor:z,style:I({dominantBaseline:"central"},E.axis.legend.text),children:j})}var q=Object(o.v)(),H=q.animate,G=q.config,$=Object(i.useSpring)({transform:"translate(".concat(u,",").concat(l,")"),lineX2:"x"===t?s:0,lineY2:"x"===t?0:s,config:G,immediate:!H}),X=Object(i.useTransition)(R,{keys:function(e){return e.key},initial:function(e){return{opacity:1,transform:"translate(".concat(e.x,",").concat(e.y,")"),textTransform:"translate(".concat(e.textX,",").concat(e.textY,") rotate(").concat(g,")")}},from:function(e){return{opacity:0,transform:"translate(".concat(e.x,",").concat(e.y,")"),textTransform:"translate(".concat(e.textX,",").concat(e.textY,") rotate(").concat(g,")")}},enter:function(e){return{opacity:1,transform:"translate(".concat(e.x,",").concat(e.y,")"),textTransform:"translate(".concat(e.textX,",").concat(e.textY,") rotate(").concat(g,")")}},update:function(e){return{opacity:1,transform:"translate(".concat(e.x,",").concat(e.y,")"),textTransform:"translate(".concat(e.textX,",").concat(e.textY,") rotate(").concat(g,")")}},leave:{opacity:0},config:G,immediate:!H});return Object(T.jsxs)(i.animated.g,{transform:$.transform,"aria-hidden":C,children:[X((function(e,t,n,i){return Object(r.createElement)(x,I(I({tickIndex:i,format:P,rotate:g,textBaseline:N,textAnchor:L,animatedProps:e},t),M?{onClick:M}:{}))})),Object(T.jsx)(i.animated.line,{style:E.axis.domain.line,x1:0,x2:$.lineX2,y1:0,y2:$.lineY2}),D]})})),$={ticksPosition:A.a.oneOf(["before","after"]),tickValues:A.a.oneOfType([A.a.number,A.a.arrayOf(A.a.oneOfType([A.a.number,A.a.string,A.a.instanceOf(Date)])),A.a.string]),tickSize:A.a.number,tickPadding:A.a.number,tickRotation:A.a.number,format:A.a.oneOfType([A.a.func,A.a.string]),renderTick:A.a.func,legend:A.a.node,legendPosition:A.a.oneOf(["start","middle","end"]),legendOffset:A.a.number,ariaHidden:A.a.bool},X=(A.a.shape($),["top","right","bottom","left"]),Q=Object(r.memo)((function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,o={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return Object(T.jsx)(T.Fragment,{children:X.map((function(e){var a=o[e];if(!a)return null;var u="top"===e||"bottom"===e,c="top"===e||"left"===e?"before":"after";return Object(T.jsx)(G,I(I({},a),{},{axis:u?"x":"y",x:"right"===e?r:0,y:"bottom"===e?i:0,scale:u?t:n,length:u?r:i,ticksPosition:c}),e)}))})})),K=Object(r.memo)((function(e){var t=e.animatedProps,n=Object(o.x)();return Object(T.jsx)(i.animated.line,I(I({},t),n.grid.line))})),Z=Object(r.memo)((function(e){var t=e.lines,n=Object(o.v)(),a=n.animate,u=n.config,c=Object(i.useTransition)(t,{keys:function(e){return e.key},initial:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},from:function(e){return{opacity:0,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},enter:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},update:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},leave:{opacity:0},config:u,immediate:!a});return Object(T.jsx)("g",{children:c((function(e,t){return Object(r.createElement)(K,I(I({},t),{},{key:t.key,animatedProps:e}))}))})})),J=Object(r.memo)((function(e){var t=e.width,n=e.height,i=e.xScale,o=e.yScale,a=e.xValues,u=e.yValues,c=Object(r.useMemo)((function(){return!!i&&H({width:t,height:n,scale:i,axis:"x",values:a})}),[i,a,t,n]),l=Object(r.useMemo)((function(){return!!o&&H({width:t,height:n,scale:o,axis:"y",values:u})}),[n,t,o,u]);return Object(T.jsxs)(T.Fragment,{children:[c&&Object(T.jsx)(Z,{lines:c}),l&&Object(T.jsx)(Z,{lines:l})]})})),ee=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,a=t.height,u=t.top,c=t.right,l=t.bottom,s=t.left,f=t.theme,d={top:u,right:c,bottom:l,left:s};X.forEach((function(t){var u=d[t];if(!u)return null;var c="top"===t||"bottom"===t,l="top"===t||"left"===t?"before":"after",s=c?n:r,h=B(u.format,s);!function(e,t){var n,r=t.axis,i=t.scale,a=t.x,u=void 0===a?0:a,c=t.y,l=void 0===c?0:c,s=t.length,f=t.ticksPosition,d=t.tickValues,h=t.tickSize,p=void 0===h?5:h,b=t.tickPadding,v=void 0===b?5:b,y=t.tickRotation,g=void 0===y?0:y,m=t.format,O=t.legend,x=t.legendPosition,j=void 0===x?"end":x,w=t.legendOffset,_=void 0===w?0:w,k=t.theme,S=V({axis:r,scale:i,ticksPosition:f,tickValues:d,tickSize:p,tickPadding:v,tickRotation:g,engine:"canvas"}),M=S.ticks,C=S.textAlign,E=S.textBaseline;e.save(),e.translate(u,l),e.textAlign=C,e.textBaseline=E,e.font="".concat(k.axis.ticks.text.fontSize,"px ").concat(k.axis.ticks.text.fontFamily),(null!==(n=k.axis.domain.line.strokeWidth)&&void 0!==n?n:0)>0&&(e.lineWidth=Number(k.axis.domain.line.strokeWidth),e.lineCap="square",k.axis.domain.line.stroke&&(e.strokeStyle=k.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo("x"===r?s:0,"x"===r?0:s),e.stroke());var T="function"===typeof m?m:function(e){return"".concat(e)};if(M.forEach((function(t){var n;(null!==(n=k.axis.ticks.line.strokeWidth)&&void 0!==n?n:0)>0&&(e.lineWidth=Number(k.axis.ticks.line.strokeWidth),e.lineCap="square",k.axis.ticks.line.stroke&&(e.strokeStyle=k.axis.ticks.line.stroke),e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(t.x+t.lineX,t.y+t.lineY),e.stroke());var r=T(t.value);e.save(),e.translate(t.x+t.textX,t.y+t.textY),e.rotate(Object(o.g)(g)),k.axis.ticks.text.fill&&(e.fillStyle=k.axis.ticks.text.fill),e.fillText(String(r),0,0),e.restore()})),void 0!==O){var P=0,A=0,R=0,L="center";"y"===r?(R=-90,P=_,"start"===j?(L="start",A=s):"middle"===j?(L="center",A=s/2):"end"===j&&(L="end")):(A=_,"start"===j?L="start":"middle"===j?(L="center",P=s/2):"end"===j&&(L="end",P=s)),e.translate(P,A),e.rotate(Object(o.g)(R)),e.font="".concat(k.axis.legend.text.fontWeight?"".concat(k.axis.legend.text.fontWeight," "):"").concat(k.axis.legend.text.fontSize,"px ").concat(k.axis.legend.text.fontFamily),k.axis.legend.text.fill&&(e.fillStyle=k.axis.legend.text.fill),e.textAlign=L,e.textBaseline="middle",e.fillText(O,0,0)}e.restore()}(e,I(I({},u),{},{axis:c?"x":"y",x:"right"===t?i:0,y:"bottom"===t?a:0,scale:s,format:h,length:c?i:a,ticksPosition:l,theme:f}))}))},te=function(e,t){var n=t.width,r=t.height,i=t.scale,o=t.axis,a=t.values;H({width:n,height:r,scale:i,axis:o,values:a}).forEach((function(t){e.beginPath(),e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.stroke()}))},ne=n(176),re=n.n(ne),ie=n(177),oe=n.n(ie),ae=n(230),ue=n.n(ae);function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n180?(y-=l,g-=l):g+=l,{points:[[d,h],[t,n],[g,n]],text:[y,n-f],angle:p+90}},je=function(e){var t=e.data,n=e.annotations,i=e.getPosition,o=e.getDimensions;return Object(r.useMemo)((function(){return function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce((function(e,n){var o=n.offset||0;return[].concat(pe(e),pe(ue()(t,n.match).map((function(e){var t=r(e),a=i(e);return(ge(n)||Oe(n))&&(a.size=a.size+2*o,a.width=a.width+2*o,a.height=a.height+2*o),se(se(se(se({},re()(n,["match","offset"])),t),a),{},{size:n.size||a.size,datum:e})}))))}),[])}({data:t,annotations:n,getPosition:i,getDimensions:o})}),[t,n,i,o])},we=function(e){var t=e.datum,n=e.x,a=e.y,u=e.note,c=Object(o.x)(),l=Object(o.v)(),s=l.animate,f=l.config,d=Object(i.useSpring)({x:n,y:a,config:f,immediate:!s});return"function"===typeof u?Object(r.createElement)(u,{x:n,y:a,datum:t}):Object(T.jsxs)(T.Fragment,{children:[c.annotations.text.outlineWidth>0&&Object(T.jsx)(i.animated.text,{x:d.x,y:d.y,style:se(se({},c.annotations.text),{},{strokeLinejoin:"round",strokeWidth:2*c.annotations.text.outlineWidth,stroke:c.annotations.text.outlineColor}),children:u}),Object(T.jsx)(i.animated.text,{x:d.x,y:d.y,style:re()(c.annotations.text,["outlineWidth","outlineColor"]),children:u})]})};function _e(e){if(Array.isArray(e))return e}function ke(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Se(e,t){return _e(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){i=!0,o=c}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}}(e,t)||he(e,t)||ke()}var Me=function(e){var t=e.points,n=e.isOutline,a=void 0!==n&&n,u=Object(o.x)(),c=Object(r.useMemo)((function(){var e,n=_e(e=t)||de(e)||he(e)||ke(),r=n[0];return n.slice(1).reduce((function(e,t){var n=Se(t,2),r=n[0],i=n[1];return"".concat(e," L").concat(r,",").concat(i)}),"M".concat(r[0],",").concat(r[1]))}),[t]),l=Object(o.s)(c);if(a&&u.annotations.link.outlineWidth<=0)return null;var s=se({},u.annotations.link);return a&&(s.strokeLinecap="square",s.strokeWidth=u.annotations.link.strokeWidth+2*u.annotations.link.outlineWidth,s.stroke=u.annotations.link.outlineColor),Object(T.jsx)(i.animated.path,{fill:"none",d:l,style:s})},Ce=function(e){var t=e.x,n=e.y,r=e.size,a=Object(o.x)(),u=Object(o.v)(),c=u.animate,l=u.config,s=Object(i.useSpring)({x:t,y:n,radius:r/2,config:l,immediate:!c});return Object(T.jsxs)(T.Fragment,{children:[a.annotations.outline.outlineWidth>0&&Object(T.jsx)(i.animated.circle,{cx:s.x,cy:s.y,r:s.radius,style:se(se({},a.annotations.outline),{},{fill:"none",strokeWidth:a.annotations.outline.strokeWidth+2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor})}),Object(T.jsx)(i.animated.circle,{cx:s.x,cy:s.y,r:s.radius,style:a.annotations.outline})]})},Ee=function(e){var t=e.x,n=e.y,r=e.size,a=void 0===r?be:r,u=Object(o.x)(),c=Object(o.v)(),l=c.animate,s=c.config,f=Object(i.useSpring)({x:t,y:n,radius:a/2,config:s,immediate:!l});return Object(T.jsxs)(T.Fragment,{children:[u.annotations.outline.outlineWidth>0&&Object(T.jsx)(i.animated.circle,{cx:f.x,cy:f.y,r:f.radius,style:se(se({},u.annotations.outline),{},{fill:"none",strokeWidth:2*u.annotations.outline.outlineWidth,stroke:u.annotations.outline.outlineColor})}),Object(T.jsx)(i.animated.circle,{cx:f.x,cy:f.y,r:f.radius,style:u.annotations.symbol})]})},Te=function(e){var t=e.x,n=e.y,r=e.width,a=e.height,u=Object(o.x)(),c=Object(o.v)(),l=c.animate,s=c.config,f=Object(i.useSpring)({x:t-r/2,y:n-a/2,width:r,height:a,config:s,immediate:!l});return Object(T.jsxs)(T.Fragment,{children:[u.annotations.outline.outlineWidth>0&&Object(T.jsx)(i.animated.rect,{x:f.x,y:f.y,width:f.width,height:f.height,style:se(se({},u.annotations.outline),{},{fill:"none",strokeWidth:u.annotations.outline.strokeWidth+2*u.annotations.outline.outlineWidth,stroke:u.annotations.outline.outlineColor})}),Object(T.jsx)(i.animated.rect,{x:f.x,y:f.y,width:f.width,height:f.height,style:u.annotations.outline})]})},Pe=function(e){var t=e.datum,n=e.x,i=e.y,o=e.note,a=function(e){return Object(r.useMemo)((function(){return xe(e)}),[e])}(e);if(!function(e){var t=typeof e;return Object(r.isValidElement)(e)||"string"===t||"function"===t||"object"===t}(o))throw new Error("note should be a valid react element");return Object(T.jsxs)(T.Fragment,{children:[Object(T.jsx)(Me,{points:a.points,isOutline:!0}),ge(e)&&Object(T.jsx)(Ce,{x:n,y:i,size:e.size}),me(e)&&Object(T.jsx)(Ee,{x:n,y:i,size:e.size}),Oe(e)&&Object(T.jsx)(Te,{x:n,y:i,width:e.width,height:e.height}),Object(T.jsx)(Me,{points:a.points}),Object(T.jsx)(we,{datum:t,x:a.text[0],y:a.text[1],note:o})]})},Ae=function(e,t){t.forEach((function(t,n){var r=Se(t,2),i=r[0],o=r[1];0===n?e.moveTo(i,o):e.lineTo(i,o)}))},Re=n(62),Le=(n(178),n(85)),Ie=n.n(Le),Ne=(n(231),n(7),n(232),n(52)),De=n(10),ze=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r0))return u;do{u.push(a=new Date(+n)),t(n,o),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return Ze.setTime(+t),Je.setTime(+r),e(Ze),e(Je),Math.floor(n(Ze,Je))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i:null}),i}var tt=et((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));tt.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?et((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):tt:null};var nt=tt,rt=(tt.range,et((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*He)}),(function(e,t){return(t-e)/He}),(function(e){return e.getUTCSeconds()}))),it=rt,ot=(rt.range,et((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*He)}),(function(e,t){e.setTime(+e+t*Ye)}),(function(e,t){return(t-e)/Ye}),(function(e){return e.getMinutes()}))),at=ot,ut=(ot.range,et((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*He-e.getMinutes()*Ye)}),(function(e,t){e.setTime(+e+t*Ge)}),(function(e,t){return(t-e)/Ge}),(function(e){return e.getHours()}))),ct=ut,lt=(ut.range,et((function(e){return e.setHours(0,0,0,0)}),(function(e,t){return e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ye)/$e}),(function(e){return e.getDate()-1}))),st=lt;lt.range;function ft(e){return et((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ye)/Xe}))}var dt=ft(0),ht=ft(1),pt=ft(2),bt=ft(3),vt=ft(4),yt=ft(5),gt=ft(6),mt=(dt.range,ht.range,pt.range,bt.range,vt.range,yt.range,gt.range,et((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),Ot=mt,xt=(mt.range,et((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));xt.every=function(e){return isFinite(e=Math.floor(e))&&e>0?et((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var jt=xt,wt=(xt.range,et((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Ye)}),(function(e,t){return(t-e)/Ye}),(function(e){return e.getUTCMinutes()}))),_t=wt,kt=(wt.range,et((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Ge)}),(function(e,t){return(t-e)/Ge}),(function(e){return e.getUTCHours()}))),St=kt,Mt=(kt.range,et((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/$e}),(function(e){return e.getUTCDate()-1}))),Ct=Mt;Mt.range;function Et(e){return et((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Xe}))}var Tt=Et(0),Pt=Et(1),At=Et(2),Rt=Et(3),Lt=Et(4),It=Et(5),Nt=Et(6),Dt=(Tt.range,Pt.range,At.range,Rt.range,Lt.range,It.range,Nt.range,et((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}))),zt=Dt,Wt=(Dt.range,et((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));Wt.every=function(e){return isFinite(e=Math.floor(e))&&e>0?et((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var Ft=Wt;Wt.range;function Ut(e,t,n,r,i,o){var a=[[it,1,He],[it,5,5e3],[it,15,15e3],[it,30,3e4],[o,1,Ye],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,Ge],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,$e],[r,2,1728e5],[n,1,Xe],[t,1,Qe],[t,3,7776e6],[e,1,Ke]];function u(t,n,r){var i=Math.abs(n-t)/r,o=Object(Ve.a)((function(e){return Object(De.a)(e,3)[2]})).right(a,i);if(o===a.length)return e.every(Object(Be.c)(t/Ke,n/Ke,r));if(0===o)return nt.every(Math.max(Object(Be.c)(t,n,r),1));var u=Object(De.a)(a[i/a[o-1][2]=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function mn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function On(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xn(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nt},Ln=function(e,t){return e0?"vertical"===r?zn.apply(void 0,R):Wn.apply(void 0,R):[]}},Un=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,_n(t))):t},qn=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,u=e.innerPadding,c=e.stackedData,l=e.xScale,s=e.yScale;return Un(c.map((function(e){return l.domain().map((function(c,f){var d,h,p=e[f],b=null!==(d=l(o(p.data)))&&void 0!==d?d:0,v=(null!==(h=function(e){return s(e[n?0:1])}(p))&&void 0!==h?h:0)+.5*u,y=function(e,t){var r;return(null!==(r=s(e[n?1:0]))&&void 0!==r?r:0)-t}(p,v)-u,g=kn(An(p.data[e.key]),2),m=g[0],O=g[1],x={id:e.key,value:null===m?m:O,formattedValue:r(O),hidden:!1,index:f,indexValue:c,data:Pn(p.data)};return{key:"".concat(e.key,".").concat(c),data:x,x:b,y:v,width:t,height:y,color:i(x),label:a(x)}}))})))},Vn=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,u=e.innerPadding,c=e.stackedData,l=e.xScale,s=e.yScale;return Un(c.map((function(e){return s.domain().map((function(c,f){var d,h,p=e[f],b=null!==(d=s(o(p.data)))&&void 0!==d?d:0,v=(null!==(h=function(e){return l(e[n?1:0])}(p))&&void 0!==h?h:0)+.5*u,y=function(e,t){var r;return(null!==(r=l(e[n?0:1]))&&void 0!==r?r:0)-t}(p,v)-u,g=kn(An(p.data[e.key]),2),m=g[0],O=g[1],x={id:e.key,value:null===m?m:O,formattedValue:r(O),hidden:!1,index:f,indexValue:c,data:Pn(p.data)};return{key:"".concat(e.key,".").concat(c),data:x,x:v,y:b,width:y,height:t,color:i(x),label:a(x)}}))})))},Bn=function(e){var t,n=e.data,r=e.layout,i=e.minValue,o=e.maxValue,a=e.reverse,u=e.width,c=e.height,l=e.padding,s=void 0===l?0:l,f=e.valueScale,d=e.indexScale,h=e.hiddenIds,p=void 0===h?[]:h,b=gn(e,["data","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale","hiddenIds"]),v=b.keys.filter((function(e){return!p.includes(e)})),y=function(){var e=Object(fn.a)([]),t=hn.a,n=dn.a,r=pn;function i(i){var o,a,u=e.apply(this,arguments),c=i.length,l=u.length,s=new Array(l);for(o=0;o0?b.innerPadding:0,T=j.bandwidth(),P=[xn(xn({},b),{},{innerPadding:E,stackedData:y,xScale:M,yScale:C}),T,w.reverse];return{xScale:M,yScale:C,bars:T>0?"vertical"===r?qn.apply(void 0,P):Vn.apply(void 0,P):[]}},Hn=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,a=e.layout,u=e.legendLabel,c=e.reverse,l=Object(o.j)(null!==u&&void 0!==u?u:"indexes"===r?"indexValue":"id");return"indexes"===r?function(e,t,n){var r=Ie()(e.map((function(e){var t,r;return{id:null!==(t=e.data.indexValue)&&void 0!==t?t:"",label:n(e.data),hidden:e.data.hidden,color:null!==(r=e.color)&&void 0!==r?r:"#000"}})),(function(e){return e.id}));return"horizontal"===t&&r.reverse(),r}(t,a,l):function(e,t,n,r,i,o){var a=Ie()(e.map((function(e){var t;return{id:e.data.id,label:o(e.data),hidden:e.data.hidden,color:null!==(t=e.color)&&void 0!==t?t:"#000"}})),(function(e){return e.id}));return("vertical"===t&&"stacked"===r&&"column"===n&&!0!==i||"horizontal"===t&&"stacked"===r&&!0===i)&&a.reverse(),a}(t,a,n,i,c,l)},Yn={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",reverse:!1,minValue:"auto",maxValue:"auto",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},padding:.1,innerPadding:0,axisBottom:{},axisLeft:{},enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:"theme",theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:function(e){var t=e.color,n=e.label,r=gn(e,["color","label"]);return Object(T.jsx)(vn.a,{id:n,value:r.formattedValue,enableChip:!0,color:t})},tooltipLabel:function(e){return"".concat(e.id," - ").concat(e.indexValue)},legends:[],annotations:[]},Gn=xn(xn({},Yn),{},{layers:["grid","axes","bars","markers","legends","annotations"],barComponent:function(e){var t,n=e.bar,a=n.data,u=gn(n,["data"]),c=e.style,l=c.borderColor,s=c.color,f=c.height,d=c.labelColor,h=c.labelOpacity,p=c.labelX,b=c.labelY,v=c.transform,y=c.width,g=e.borderRadius,m=e.borderWidth,O=e.label,x=e.shouldRenderLabel,j=e.isInteractive,w=e.onClick,_=e.onMouseEnter,k=e.onMouseLeave,S=e.tooltip,M=Object(o.x)(),C=Object(vn.f)(),E=C.showTooltipFromEvent,P=C.hideTooltip,A=Object(r.useCallback)((function(e){null===w||void 0===w||w(xn({color:u.color},a),e)}),[u,a,w]),R=Object(r.useCallback)((function(e){return E(Object(r.createElement)(S,xn(xn({},u),a)),e)}),[u,a,E,S]),L=Object(r.useCallback)((function(e){null===_||void 0===_||_(a,e),E(Object(r.createElement)(S,xn(xn({},u),a)),e)}),[u,a,_,E,S]),I=Object(r.useCallback)((function(e){null===k||void 0===k||k(a,e),P()}),[a,P,k]);return Object(T.jsxs)(i.animated.g,{transform:v,children:[Object(T.jsx)(i.animated.rect,{width:Object(i.to)(y,(function(e){return Math.max(e,0)})),height:Object(i.to)(f,(function(e){return Math.max(e,0)})),rx:g,ry:g,fill:null!==(t=a.fill)&&void 0!==t?t:s,strokeWidth:m,stroke:l,onMouseEnter:j?L:void 0,onMouseMove:j?R:void 0,onMouseLeave:j?I:void 0,onClick:j?A:void 0}),x&&Object(T.jsx)(i.animated.text,{x:p,y:b,textAnchor:"middle",dominantBaseline:"central",fillOpacity:h,style:xn(xn({},M.labels.text),{},{pointerEvents:"none",fill:d}),children:O})]})},defs:[],fill:[],animate:!0,motionConfig:"default",role:"img"}),$n=xn(xn({},Yn),{},{layers:["grid","axes","bars","legends","annotations"],pixelRatio:"undefined"!==typeof window&&null!==(Sn=window.devicePixelRatio)&&void 0!==Sn?Sn:1}),Xn=function(e){var t=e.data,n=e.indexBy,a=void 0===n?Gn.indexBy:n,u=e.keys,c=void 0===u?Gn.keys:u,l=e.margin,s=e.width,f=e.height,d=e.groupMode,h=void 0===d?Gn.groupMode:d,p=e.layout,b=void 0===p?Gn.layout:p,v=e.reverse,y=void 0===v?Gn.reverse:v,g=e.minValue,m=void 0===g?Gn.minValue:g,O=e.maxValue,x=void 0===O?Gn.maxValue:O,j=e.valueScale,w=void 0===j?Gn.valueScale:j,_=e.indexScale,k=void 0===_?Gn.indexScale:_,S=e.padding,M=void 0===S?Gn.padding:S,C=e.innerPadding,E=void 0===C?Gn.innerPadding:C,P=e.axisTop,A=e.axisRight,R=e.axisBottom,L=void 0===R?Gn.axisBottom:R,I=e.axisLeft,N=void 0===I?Gn.axisLeft:I,D=e.enableGridX,z=void 0===D?Gn.enableGridX:D,W=e.enableGridY,F=void 0===W?Gn.enableGridY:W,U=e.gridXValues,q=e.gridYValues,V=e.layers,B=void 0===V?Gn.layers:V,H=e.barComponent,Y=void 0===H?Gn.barComponent:H,G=e.enableLabel,$=void 0===G?Gn.enableLabel:G,X=e.label,K=void 0===X?Gn.label:X,Z=e.labelSkipWidth,ee=void 0===Z?Gn.labelSkipWidth:Z,te=e.labelSkipHeight,ne=void 0===te?Gn.labelSkipHeight:te,re=e.labelTextColor,ie=void 0===re?Gn.labelTextColor:re,oe=e.markers,ae=e.colorBy,ue=void 0===ae?Gn.colorBy:ae,ce=e.colors,le=void 0===ce?Gn.colors:ce,se=e.defs,fe=void 0===se?Gn.defs:se,de=e.fill,he=void 0===de?Gn.fill:de,pe=e.borderRadius,be=void 0===pe?Gn.borderRadius:pe,ve=e.borderWidth,ye=void 0===ve?Gn.borderWidth:ve,ge=e.borderColor,me=void 0===ge?Gn.borderColor:ge,Oe=e.annotations,xe=void 0===Oe?Gn.annotations:Oe,je=e.legendLabel,we=e.tooltipLabel,_e=void 0===we?Gn.tooltipLabel:we,ke=e.valueFormat,Se=e.isInteractive,Me=void 0===Se?Gn.isInteractive:Se,Ce=e.tooltip,Ee=void 0===Ce?Gn.tooltip:Ce,Te=e.onClick,Pe=e.onMouseEnter,Ae=e.onMouseLeave,Re=e.legends,Le=void 0===Re?Gn.legends:Re,Ie=e.role,Ne=void 0===Ie?Gn.role:Ie,De=e.initialHiddenIds,ze=kn(Object(r.useState)(null!==De&&void 0!==De?De:[]),2),We=ze[0],Fe=ze[1],Ue=Object(r.useCallback)((function(e){Fe((function(t){return t.indexOf(e)>-1?t.filter((function(t){return t!==e})):[].concat(_n(t),[e])}))}),[]),qe=Object(o.x)(),Ve=Object(o.v)(),Be=Ve.animate,He=Ve.config,Ye=Object(o.t)(s,f,l),Ge=Ye.outerWidth,$e=Ye.outerHeight,Xe=Ye.margin,Qe=Ye.innerWidth,Ke=Ye.innerHeight,Ze=Object(o.y)(ke),Je=Object(yn.b)(me,qe),et=Object(yn.c)(le,ue),tt=Object(o.w)(a),nt=Object(o.w)(K),rt=Object(yn.b)(ie,qe),it=Object(o.w)(_e),ot=("grouped"===h?Fn:Bn)({layout:b,reverse:y,data:t,getIndex:tt,keys:c,minValue:m,maxValue:x,width:Qe,height:Ke,getColor:et,padding:M,innerPadding:E,valueScale:w,indexScale:k,hiddenIds:We,formatValue:Ze,getTooltipLabel:it}),at=Object(r.useMemo)((function(){return c.map((function(e){var t=ot.bars.find((function(t){return t.data.id===e}));return xn(xn({},t),{},{data:xn(xn({id:e},null===t||void 0===t?void 0:t.data),{},{hidden:We.includes(e)})})}))}),[We,c,ot.bars]),ut=Object(r.useMemo)((function(){return ot.bars.filter((function(e){return null!==e.data.value}))}),[ot.bars]),ct=Object(i.useTransition)(ut,{keys:function(e){return e.key},from:function(e){return xn({borderColor:Je(e),color:e.color,height:0,labelColor:rt(e),labelOpacity:0,labelX:e.width/2,labelY:e.height/2,transform:"translate(".concat(e.x,", ").concat(e.y+e.height,")"),width:e.width},"vertical"===b?{}:{height:e.height,transform:"translate(".concat(e.x,", ").concat(e.y,")"),width:0})},enter:function(e){return{borderColor:Je(e),color:e.color,height:e.height,labelColor:rt(e),labelOpacity:1,labelX:e.width/2,labelY:e.height/2,transform:"translate(".concat(e.x,", ").concat(e.y,")"),width:e.width}},update:function(e){return{borderColor:Je(e),color:e.color,height:e.height,labelColor:rt(e),labelOpacity:1,labelX:e.width/2,labelY:e.height/2,transform:"translate(".concat(e.x,", ").concat(e.y,")"),width:e.width}},leave:function(e){return xn({borderColor:Je(e),color:e.color,height:0,labelColor:rt(e),labelOpacity:0,labelX:e.width/2,labelY:0,transform:"translate(".concat(e.x,", ").concat(e.y+e.height,")"),width:e.width},"vertical"===b?{}:{labelX:0,labelY:e.height/2,height:e.height,transform:"translate(".concat(e.x,", ").concat(e.y,")"),width:0})},config:He,immediate:!Be}),lt=Object(r.useCallback)((function(e){var t=e.width,n=e.height;return!!$&&(!(ee>0&&t0&&n0&&(e.strokeStyle=c,e.lineWidth=s),e.beginPath(),l>0){var p=Math.min(l,i);e.moveTo(a+p,u),e.lineTo(a+o-p,u),e.quadraticCurveTo(a+o,u,a+o,u+p),e.lineTo(a+o,u+i-p),e.quadraticCurveTo(a+o,u+i,a+o-p,u+i),e.lineTo(a+p,u+i),e.quadraticCurveTo(a,u+i,a,u+i-p),e.lineTo(a,u+p),e.quadraticCurveTo(a,u,a+p,u),e.closePath()}else e.rect(a,u,o,i);e.fill(),s>0&&e.stroke(),h&&(e.textBaseline="middle",e.textAlign="center",e.fillStyle=d,e.fillText(f,a+o/2,u+i/2))}:B,Y=e.enableLabel,G=void 0===Y?$n.enableLabel:Y,$=e.label,X=void 0===$?$n.label:$,Q=e.labelSkipWidth,K=void 0===Q?$n.labelSkipWidth:Q,Z=e.labelSkipHeight,J=void 0===Z?$n.labelSkipHeight:Z,ne=e.labelTextColor,re=void 0===ne?$n.labelTextColor:ne,ie=e.colorBy,oe=void 0===ie?$n.colorBy:ie,ae=e.colors,ue=void 0===ae?$n.colors:ae,ce=e.borderRadius,le=void 0===ce?$n.borderRadius:ce,fe=e.borderWidth,de=void 0===fe?$n.borderWidth:fe,he=e.borderColor,pe=void 0===he?$n.borderColor:he,be=e.annotations,ve=void 0===be?$n.annotations:be,ye=e.legendLabel,we=e.tooltipLabel,_e=void 0===we?$n.tooltipLabel:we,ke=e.valueFormat,Se=e.isInteractive,Me=void 0===Se?$n.isInteractive:Se,Ce=e.tooltip,Ee=void 0===Ce?$n.tooltip:Ce,Te=e.onClick,Pe=e.onMouseEnter,Le=e.onMouseLeave,Ie=e.legends,Ne=void 0===Ie?$n.legends:Ie,De=e.pixelRatio,ze=void 0===De?$n.pixelRatio:De,We=e.canvasRef,Fe=Object(r.useRef)(null),Ue=Object(o.x)(),qe=Object(o.t)(l,s,c),Ve=qe.margin,Be=qe.innerWidth,He=qe.innerHeight,Ye=qe.outerWidth,Ge=qe.outerHeight,$e=Object(vn.f)(),Xe=$e.showTooltipFromEvent,Qe=$e.hideTooltip,Ke=Object(o.y)(ke),Ze=Object(yn.b)(pe,Ue),Je=Object(yn.c)(ue,oe),et=Object(o.w)(i),tt=Object(o.w)(X),nt=Object(yn.b)(re,Ue),rt=Object(o.w)(_e),it={layout:p,reverse:v,data:t,getIndex:et,keys:u,minValue:g,maxValue:O,width:Be,height:He,getColor:Je,padding:S,innerPadding:C,valueScale:j,indexScale:_,formatValue:Ke,getTooltipLabel:rt},ot="grouped"===d?Fn(it):Bn(it),at=Object(r.useMemo)((function(){return u.map((function(e){var t=ot.bars.find((function(t){return t.data.id===e}));return xn(xn({},t),{},{data:xn(xn({id:e},null===t||void 0===t?void 0:t.data),{},{hidden:!1})})}))}),[u,ot.bars]),ut=Object(r.useMemo)((function(){return ot.bars.filter((function(e){return null!==e.data.value}))}),[ot.bars]),ct=Object(r.useCallback)((function(e){var t=e.width,n=e.height;return!!G&&(!(K>0&&t0&&n0&&(t.lineWidth=Ue.grid.line.strokeWidth,t.strokeStyle=Ue.grid.line.stroke,D&&te(t,{width:l,height:s,scale:ot.xScale,axis:"x",values:F}),W&&te(t,{width:l,height:s,scale:ot.yScale,axis:"y",values:U})):"axes"===e?ee(t,{xScale:ot.xScale,yScale:ot.yScale,width:Be,height:He,top:E,right:P,bottom:R,left:I,theme:Ue}):"bars"===e?ut.forEach((function(e){H(t,{bar:e,borderColor:Ze(e),borderRadius:le,borderWidth:de,label:tt(e.data),labelColor:nt(e),shouldRenderLabel:ct(e)})})):"legends"===e?Ne.forEach((function(e){var n=Hn({bars:at,direction:e.direction,from:e.dataFrom,groupMode:d,layout:p,legendLabel:ye,reverse:v});Object(Re.b)(t,xn(xn({},e),{},{data:n,containerWidth:Be,containerHeight:He,theme:Ue}))})):"annotations"===e?function(e,t){var n=t.annotations,r=t.theme;0!==n.length&&(e.save(),n.forEach((function(t){if(!function(e){var t=typeof e;return"string"===t||"function"===t}(t.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),Ae(e,t.computed.points),e.stroke(),e.lineCap="butt"),ge(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),me(t)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),Oe(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),Ae(e,t.computed.points),e.stroke(),ge(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),me(t)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.fill()),Oe(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),"function"===typeof t.note?t.note(e,{datum:t.datum,x:t.computed.text[0],y:t.computed.text[1],theme:r}):(e.font="".concat(r.annotations.text.fontSize,"px ").concat(r.annotations.text.fontFamily),e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(t.note,t.computed.text[0],t.computed.text[1]),e.lineJoin="miter"),e.fillText(t.note,t.computed.text[0],t.computed.text[1]))})),e.restore())}(t,{annotations:lt,theme:Ue}):"function"===typeof e&&e(t,st)})),t.save())}),[R,I,P,E,ut,le,de,lt,D,W,Ze,tt,nt,F,U,d,s,He,Be,st,V,p,at,ye,Ne,Ve.left,Ve.top,Ge,Ye,ze,H,ot.xScale,ot.yScale,v,ct,Ue,l]);var ft=Object(r.useCallback)((function(e){if(ot.bars&&Fe.current){var t=kn(Object(o.k)(Fe.current,e),2),n=t[0],i=t[1],a=Kn(ot.bars,Ve,n,i);void 0!==a?(Xe(Object(r.createElement)(Ee,xn(xn({},a.data),{},{color:a.color,label:a.label,value:Number(a.data.value)})),e),"mouseenter"===e.type&&(null===Pe||void 0===Pe||Pe(a.data,e))):Qe()}}),[Qe,Ve,Pe,ot.bars,Xe,Ee]),dt=Object(r.useCallback)((function(e){if(ot.bars&&Fe.current){Qe();var t=kn(Object(o.k)(Fe.current,e),2),n=t[0],r=t[1],i=Kn(ot.bars,Ve,n,r);i&&(null===Le||void 0===Le||Le(i.data,e))}}),[Qe,Ve,Le,ot.bars]),ht=Object(r.useCallback)((function(e){if(ot.bars&&Fe.current){var t=kn(Object(o.k)(Fe.current,e),2),n=t[0],r=t[1],i=Kn(ot.bars,Ve,n,r);void 0!==i&&(null===Te||void 0===Te||Te(xn(xn({},i.data),{},{color:i.color}),e))}}),[Ve,Te,ot.bars]);return Object(T.jsx)("canvas",{ref:function(e){Fe.current=e,We&&"current"in We&&(We.current=e)},width:Ye*ze,height:Ge*ze,style:{width:Ye,height:Ge,cursor:Me?"auto":"normal"},onMouseEnter:Me?ft:void 0,onMouseMove:Me?ft:void 0,onMouseLeave:Me?dt:void 0,onClick:Me?ht:void 0})},Jn=Object(r.forwardRef)((function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,a=gn(e,["isInteractive","renderWrapper","theme"]);return Object(T.jsx)(o.b,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:Object(T.jsx)(Zn,xn(xn({},a),{},{canvasRef:t}))})})),er=function(e){return Object(T.jsx)(o.c,{children:function(t){var n=t.width,r=t.height;return Object(T.jsx)(Qn,xn({width:n,height:r},e))}})};Object(r.forwardRef)((function(e,t){return Object(T.jsx)(o.c,{children:function(n){var r=n.width,i=n.height;return Object(T.jsx)(Jn,xn(xn({width:r,height:i},e),{},{ref:t}))}})}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(71);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){i=!0,o=c}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";n.d(t,"animated",(function(){return C}));var r=n(22),i=n(10),o=n(14),a=n(19),u=n(20),c=n(26);n.o(c,"to")&&n.d(t,"to",(function(){return c.to})),n.o(c,"useSpring")&&n.d(t,"useSpring",(function(){return c.useSpring})),n.o(c,"useTransition")&&n.d(t,"useTransition",(function(){return c.useTransition}));var l=n(39),s=n(1),f=n(12);function d(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var h=["style","children","scrollTop","scrollLeft"],p=/^--/;function b(e,t){return null==t||"boolean"===typeof t||""===t?"":"number"!==typeof t||0===t||p.test(e)||y.hasOwnProperty(e)&&y[e]?(""+t).trim():t+"px"}var v={};var y={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},g=["Webkit","Ms","Moz","O"];y=Object.keys(y).reduce((function(e,t){return g.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),y);var m=["x","y","z"],O=/^(matrix|translate|scale|rotate|skew)/,x=/^(translate)/,j=/^(rotate|skew)/,w=function(e,t){return s.s.num(e)&&0!==e?e+t:e},_=function e(t,n){return s.s.arr(t)?t.every((function(t){return e(t,n)})):s.s.num(t)?t===n:parseFloat(t)===n},k=function(e){Object(a.a)(n,e);var t=Object(u.a)(n);function n(e){Object(o.a)(this,n);var r=e.x,a=e.y,u=e.z,c=d(e,m),l=[],f=[];return(r||a||u)&&(l.push([r||0,a||0,u||0]),f.push((function(e){return["translate3d(".concat(e.map((function(e){return w(e,"px")})).join(","),")"),_(e,0)]}))),Object(s.l)(c,(function(e,t){if("transform"===t)l.push([e||""]),f.push((function(e){return[e,""===e]}));else if(O.test(t)){if(delete c[t],s.s.und(e))return;var n=x.test(t)?"px":j.test(t)?"deg":"";l.push(Object(s.y)(e)),f.push("rotate3d"===t?function(e){var t=Object(i.a)(e,4),r=t[0],o=t[1],a=t[2],u=t[3];return["rotate3d(".concat(r,",").concat(o,",").concat(a,",").concat(w(u,n),")"),_(u,0)]}:function(e){return["".concat(t,"(").concat(e.map((function(e){return w(e,n)})).join(","),")"),_(e,t.startsWith("scale")?1:0)]})}})),l.length&&(c.transform=new S(l,f)),t.call(this,c)}return n}(f.a),S=function(e){Object(a.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;return Object(o.a)(this,n),(i=t.call(this))._value=null,i.inputs=e,i.transforms=r,i}return Object(r.a)(n,[{key:"get",value:function(){return this._value||(this._value=this._get())}},{key:"_get",value:function(){var e=this,t="",n=!0;return Object(s.k)(this.inputs,(function(r,o){var a=Object(s.q)(r[0]),u=e.transforms[o](s.s.arr(a)?a:r.map(s.q)),c=Object(i.a)(u,2),l=c[0],f=c[1];t+=" "+l,n=n&&f})),n?"none":t}},{key:"observerAdded",value:function(e){var t=this;1==e&&Object(s.k)(this.inputs,(function(e){return Object(s.k)(e,(function(e){return Object(s.r)(e)&&Object(s.c)(e,t)}))}))}},{key:"observerRemoved",value:function(e){var t=this;0==e&&Object(s.k)(this.inputs,(function(e){return Object(s.k)(e,(function(e){return Object(s.r)(e)&&Object(s.x)(e,t)}))}))}},{key:"eventObserved",value:function(e){"change"==e.type&&(this._value=null),Object(s.d)(this,e)}}]),n}(s.a),M=["scrollTop","scrollLeft"];c.Globals.assign({batchedUpdates:l.unstable_batchedUpdates,createStringInterpolator:s.g,colors:s.e});var C=Object(f.d)(["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","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","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;var n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t,i=r.style,o=r.children,a=r.scrollTop,u=r.scrollLeft,c=d(r,h),l=Object.values(c),s=Object.keys(c).map((function(t){return n||e.hasAttribute(t)?t:v[t]||(v[t]=t.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})))}));for(var f in void 0!==o&&(e.textContent=o),i)if(i.hasOwnProperty(f)){var y=b(f,i[f]);p.test(f)?e.style.setProperty(f,y):e.style[f]=y}s.forEach((function(t,n){e.setAttribute(t,l[n])})),void 0!==a&&(e.scrollTop=a),void 0!==u&&(e.scrollLeft=u)},createAnimatedStyle:function(e){return new k(e)},getComponentProps:function(e){return d(e,M)}}).animated},function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return C})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return w})),n.d(t,"g",(function(){return b})),n.d(t,"h",(function(){return p}));var r=n(10),i=n(74),o=n(31),a=n(19),u=n(20),c=n(14),l=n(22),s=n(1),f=n(3),d=Symbol.for("Animated:node"),h=function(e){return e&&e[d]},p=function(e,t){return Object(s.h)(e,d,t)},b=function(e){return e&&e[d]&&e[d].getPayload()},v=function(){function e(){Object(c.a)(this,e),this.payload=void 0,p(this,this)}return Object(l.a)(e,[{key:"getPayload",value:function(){return this.payload||[]}}]),e}(),y=function(e){Object(a.a)(n,e);var t=Object(u.a)(n);function n(e){var r;return Object(c.a)(this,n),(r=t.call(this)).done=!0,r.elapsedTime=void 0,r.lastPosition=void 0,r.lastVelocity=void 0,r.v0=void 0,r.durationProgress=0,r._value=e,s.s.num(r._value)&&(r.lastPosition=r._value),r}return Object(l.a)(n,[{key:"getPayload",value:function(){return[this]}},{key:"getValue",value:function(){return this._value}},{key:"setValue",value:function(e,t){return s.s.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}},{key:"reset",value:function(){var e=this.done;this.done=!1,s.s.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}],[{key:"create",value:function(e){return new n(e)}}]),n}(v),g=function(e){Object(a.a)(n,e);var t=Object(u.a)(n);function n(e){var r;return Object(c.a)(this,n),(r=t.call(this,0))._string=null,r._toString=void 0,r._toString=Object(s.f)({output:[e,e]}),r}return Object(l.a)(n,[{key:"getValue",value:function(){var e=this._string;return null==e?this._string=this._toString(this._value):e}},{key:"setValue",value:function(e){if(s.s.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!Object(i.a)(Object(o.a)(n.prototype),"setValue",this).call(this,e))return!1;this._string=null}return!0}},{key:"reset",value:function(e){e&&(this._toString=Object(s.f)({output:[this.getValue(),e]})),this._value=0,Object(i.a)(Object(o.a)(n.prototype),"reset",this).call(this)}}],[{key:"create",value:function(e){return new n(e)}}]),n}(y),m={dependencies:null},O=function(e){Object(a.a)(n,e);var t=Object(u.a)(n);function n(e){var r;return Object(c.a)(this,n),(r=t.call(this)).source=e,r.setValue(e),r}return Object(l.a)(n,[{key:"getValue",value:function(e){var t={};return Object(s.l)(this.source,(function(n,r){var i;(i=n)&&i[d]===i?t[r]=n.getValue(e):Object(s.r)(n)?t[r]=Object(s.q)(n):e||(t[r]=n)})),t}},{key:"setValue",value:function(e){this.source=e,this.payload=this._makePayload(e)}},{key:"reset",value:function(){this.payload&&Object(s.k)(this.payload,(function(e){return e.reset()}))}},{key:"_makePayload",value:function(e){if(e){var t=new Set;return Object(s.l)(e,this._addToPayload,t),Array.from(t)}}},{key:"_addToPayload",value:function(e){var t=this;m.dependencies&&Object(s.r)(e)&&m.dependencies.add(e);var n=b(e);n&&Object(s.k)(n,(function(e){return t.add(e)}))}}]),n}(v),x=function(e){Object(a.a)(n,e);var t=Object(u.a)(n);function n(e){return Object(c.a)(this,n),t.call(this,e)}return Object(l.a)(n,[{key:"getValue",value:function(){return this.source.map((function(e){return e.getValue()}))}},{key:"setValue",value:function(e){var t=this.getPayload();return e.length==t.length?t.map((function(t,n){return t.setValue(e[n])})).some(Boolean):(Object(i.a)(Object(o.a)(n.prototype),"setValue",this).call(this,e.map(j)),!0)}}],[{key:"create",value:function(e){return new n(e)}}]),n}(O);function j(e){return(Object(s.t)(e)?g:y).create(e)}function w(e){var t=h(e);return t?t.constructor:s.s.arr(e)?x:Object(s.t)(e)?g:y}function _(){return(_=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.applyAnimatedValues,r=void 0===n?function(){return!1}:n,i=t.createAnimatedStyle,o=void 0===i?function(e){return new O(e)}:i,a=t.getComponentProps,u=void 0===a?function(e){return e}:a,c={applyAnimatedValues:r,createAnimatedStyle:o,getComponentProps:u},l=function e(t){var n=E(t)||"Anonymous";return(t=s.s.str(t)?e[t]||(e[t]=k(t,c)):t[M]||(t[M]=k(t,c))).displayName="Animated(".concat(n,")"),t};return Object(s.l)(e,(function(t,n){s.s.arr(e)&&(n=E(t)),l[n]=l(t)})),{animated:l}},E=function(e){return s.s.str(e)?e:e&&s.s.str(e.displayName)?e.displayName:s.s.fun(e)&&e.name||null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=new Date,i=new Date;function o(e,t,n,a){function u(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return u.floor=function(t){return e(t=new Date(+t)),t},u.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},u.round=function(e){var t=u(e),n=u.ceil(e);return e-t0))return a;do{a.push(o=new Date(+n)),t(n,i),e(n)}while(o=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(u.count=function(t,o){return r.setTime(+t),i.setTime(+o),e(r),e(i),Math.floor(n(r,i))},u.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?u.filter(a?function(t){return a(t)%e===0}:function(t){return u.count(0,t)%e===0}):u:null}),u}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(79);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return u}));var r=1e3,i=6e4,o=36e5,a=864e5,u=6048e5},function(e,t,n){"use strict";t.a=function(e){return function(){return e}}},function(e,t,n){"use strict";function r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function i(e,t){switch(arguments.length){case 0:break;case 1:"function"===typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"===typeof t?this.interpolator(t):this.range(t)}return this}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(72);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(r.a)(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(31),i=n(132);function o(e){return(o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=n(133);function u(e,t){return!t||"object"!==o(t)&&"function"!==typeof t?Object(a.a)(e):t}function c(e){var t=Object(i.a)();return function(){var n,i=Object(r.a)(e);if(t){var o=Object(r.a)(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return u(this,n)}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"b",(function(){return b}));var r=n(397),i=n(405),o=n(82),a=n(400);function u(e){return+e}var c=[0,1];function l(e){return e}function s(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function f(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return it&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(p[0],p[e-1])),r=e>2?d:f,s=h=null,m}function m(t){return null==t||isNaN(t=+t)?n:(s||(s=r(p.map(e),b,v)))(e(y(t)))}return m.invert=function(n){return y(t((h||(h=r(b,p.map(e),o.a)))(n)))},m.domain=function(e){return arguments.length?(p=Array.from(e,u),g()):p.slice()},m.range=function(e){return arguments.length?(b=Array.from(e),g()):b.slice()},m.rangeRound=function(e){return b=Array.from(e),v=a.a,g()},m.clamp=function(e){return arguments.length?(y=!!e||l,g()):y!==l},m.interpolate=function(e){return arguments.length?(v=e,g()):v},m.unknown=function(e){return arguments.length?(n=e,m):n},function(n,r){return e=n,t=r,g()}}function b(){return p()(l,l)}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}var h=["style","children","scrollTop","scrollLeft"],p=/^--/;function b(e,t){return null==t||"boolean"===typeof t||""===t?"":"number"!==typeof t||0===t||p.test(e)||y.hasOwnProperty(e)&&y[e]?(""+t).trim():t+"px"}var v={};var y={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},g=["Webkit","Ms","Moz","O"];y=Object.keys(y).reduce((function(e,t){return g.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),y);var m=["x","y","z"],O=/^(matrix|translate|scale|rotate|skew)/,x=/^(translate)/,j=/^(rotate|skew)/,w=function(e,t){return s.s.num(e)&&0!==e?e+t:e},_=function e(t,n){return s.s.arr(t)?t.every((function(t){return e(t,n)})):s.s.num(t)?t===n:parseFloat(t)===n},k=function(e){Object(a.a)(n,e);var t=Object(u.a)(n);function n(e){Object(o.a)(this,n);var r=e.x,a=e.y,u=e.z,c=d(e,m),l=[],f=[];return(r||a||u)&&(l.push([r||0,a||0,u||0]),f.push((function(e){return["translate3d(".concat(e.map((function(e){return w(e,"px")})).join(","),")"),_(e,0)]}))),Object(s.l)(c,(function(e,t){if("transform"===t)l.push([e||""]),f.push((function(e){return[e,""===e]}));else if(O.test(t)){if(delete c[t],s.s.und(e))return;var n=x.test(t)?"px":j.test(t)?"deg":"";l.push(Object(s.y)(e)),f.push("rotate3d"===t?function(e){var t=Object(i.a)(e,4),r=t[0],o=t[1],a=t[2],u=t[3];return["rotate3d(".concat(r,",").concat(o,",").concat(a,",").concat(w(u,n),")"),_(u,0)]}:function(e){return["".concat(t,"(").concat(e.map((function(e){return w(e,n)})).join(","),")"),_(e,t.startsWith("scale")?1:0)]})}})),l.length&&(c.transform=new S(l,f)),t.call(this,c)}return n}(f.a),S=function(e){Object(a.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;return Object(o.a)(this,n),(i=t.call(this))._value=null,i.inputs=e,i.transforms=r,i}return Object(r.a)(n,[{key:"get",value:function(){return this._value||(this._value=this._get())}},{key:"_get",value:function(){var e=this,t="",n=!0;return Object(s.k)(this.inputs,(function(r,o){var a=Object(s.q)(r[0]),u=e.transforms[o](s.s.arr(a)?a:r.map(s.q)),c=Object(i.a)(u,2),l=c[0],f=c[1];t+=" "+l,n=n&&f})),n?"none":t}},{key:"observerAdded",value:function(e){var t=this;1==e&&Object(s.k)(this.inputs,(function(e){return Object(s.k)(e,(function(e){return Object(s.r)(e)&&Object(s.c)(e,t)}))}))}},{key:"observerRemoved",value:function(e){var t=this;0==e&&Object(s.k)(this.inputs,(function(e){return Object(s.k)(e,(function(e){return Object(s.r)(e)&&Object(s.x)(e,t)}))}))}},{key:"eventObserved",value:function(e){"change"==e.type&&(this._value=null),Object(s.d)(this,e)}}]),n}(s.a),M=["scrollTop","scrollLeft"];c.Globals.assign({batchedUpdates:l.unstable_batchedUpdates,createStringInterpolator:s.g,colors:s.e});var C=Object(f.d)(["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","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","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;var n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t,i=r.style,o=r.children,a=r.scrollTop,u=r.scrollLeft,c=d(r,h),l=Object.values(c),s=Object.keys(c).map((function(t){return n||e.hasAttribute(t)?t:v[t]||(v[t]=t.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})))}));for(var f in void 0!==o&&(e.textContent=o),i)if(i.hasOwnProperty(f)){var y=b(f,i[f]);p.test(f)?e.style.setProperty(f,y):e.style[f]=y}s.forEach((function(t,n){e.setAttribute(t,l[n])})),void 0!==a&&(e.scrollTop=a),void 0!==u&&(e.scrollLeft=u)},createAnimatedStyle:function(e){return new k(e)},getComponentProps:function(e){return d(e,M)}}).animated},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return k})),n.d(t,"e",(function(){return x})),n.d(t,"f",(function(){return w})),n.d(t,"g",(function(){return j}));var r=n(3),i=n(11),o=n(4),a=n(0);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&m.height>0,_=Math.round(n[0]),k=Math.round(n[1]);w&&("top"===u?(_-=m.width/2,k-=m.height+14):"right"===u?(_+=14,k-=m.height/2):"bottom"===u?(_-=m.width/2,k+=14):"left"===u?(_-=m.width+14,k-=m.height/2):"center"===u&&(_-=m.width/2,k-=m.height/2),x={transform:h(_,k)},O.current||(j=!0),O.current=[_,k]);var S=Object(i.useSpring)({to:x,config:v,immediate:!b||j}),M=l(l(l({},d),s.tooltip),{},{transform:null!==(t=S.transform)&&void 0!==t?t:h(_,k)});return Object(a.jsx)(i.animated.div,{ref:g,style:M,children:c})}));p.displayName="TooltipWrapper";var b=Object(r.memo)((function(e){var t=e.size,n=void 0===t?12:t,r=e.color,i=e.style,o=void 0===i?{}:i;return Object(a.jsx)("span",{style:l({display:"block",width:n,height:n,background:r},o)})})),v=Object(r.memo)((function(e){var t,n=e.id,r=e.value,i=e.format,u=e.enableChip,c=void 0!==u&&u,l=e.color,s=e.renderContent,f=Object(o.x)(),d=Object(o.y)(i);if("function"===typeof s)t=s();else{var h=r;void 0!==d&&void 0!==h&&(h=d(h)),t=Object(a.jsxs)("div",{style:f.tooltip.basic,children:[c&&Object(a.jsx)(b,{color:l,style:f.tooltip.chip}),void 0!==h?Object(a.jsxs)("span",{children:[n,": ",Object(a.jsx)("strong",{children:"".concat(h)})]}):n]})}return Object(a.jsx)("div",{style:f.tooltip.container,children:t})})),y={width:"100%",borderCollapse:"collapse"};Object(r.memo)((function(e){var t,n=e.title,r=e.rows,i=void 0===r?[]:r,u=e.renderContent,c=Object(o.x)();return i.length?(t="function"===typeof u?u():Object(a.jsxs)("div",{children:[n&&n,Object(a.jsx)("table",{style:l(l({},y),c.tooltip.table),children:Object(a.jsx)("tbody",{children:i.map((function(e,t){return Object(a.jsx)("tr",{children:e.map((function(e,t){return Object(a.jsx)("td",{style:c.tooltip.tableCell,children:e},t)}))},t)}))})})]}),Object(a.jsx)("div",{style:c.tooltip.container,children:t})):null})).displayName="TableTooltip";var g=Object(r.memo)((function(e){var t=e.x0,n=e.x1,u=e.y0,c=e.y1,s=Object(o.x)(),f=Object(o.v)(),d=f.animate,h=f.config,p=Object(r.useMemo)((function(){return l(l({},s.crosshair.line),{},{pointerEvents:"none"})}),[s.crosshair.line]),b=Object(i.useSpring)({x1:t,x2:n,y1:u,y2:c,config:h,immediate:!d});return Object(a.jsx)(i.animated.line,l(l({},b),{},{fill:"none",style:p}))}));g.displayName="CrosshairLine",Object(r.memo)((function(e){var t,n,r=e.width,i=e.height,o=e.type,u=e.x,c=e.y;return"cross"===o?(t={x0:u,x1:u,y0:0,y1:i},n={x0:0,x1:r,y0:c,y1:c}):"top-left"===o?(t={x0:u,x1:u,y0:0,y1:c},n={x0:0,x1:u,y0:c,y1:c}):"top"===o?t={x0:u,x1:u,y0:0,y1:c}:"top-right"===o?(t={x0:u,x1:u,y0:0,y1:c},n={x0:u,x1:r,y0:c,y1:c}):"right"===o?n={x0:u,x1:r,y0:c,y1:c}:"bottom-right"===o?(t={x0:u,x1:u,y0:c,y1:i},n={x0:u,x1:r,y0:c,y1:c}):"bottom"===o?t={x0:u,x1:u,y0:c,y1:i}:"bottom-left"===o?(t={x0:u,x1:u,y0:c,y1:i},n={x0:0,x1:u,y0:c,y1:c}):"left"===o?n={x0:0,x1:u,y0:c,y1:c}:"x"===o?t={x0:u,x1:u,y0:0,y1:i}:"y"===o&&(n={x0:0,x1:r,y0:c,y1:c}),Object(a.jsxs)(a.Fragment,{children:[t&&Object(a.jsx)(g,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&Object(a.jsx)(g,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})})).displayName="Crosshair";var m=Object(r.createContext)({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),O={isVisible:!1,position:[null,null],content:null,anchor:null},x=Object(r.createContext)(O),j=function(e){var t=f(Object(r.useState)(O),2),n=t[0],i=t[1],o=Object(r.useCallback)((function(e,t){var n=f(t,2),r=n[0],o=n[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top";i({isVisible:!0,position:[r,o],anchor:a,content:e})}),[i]),a=Object(r.useCallback)((function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",o=e.current.getBoundingClientRect(),a=n.clientX-o.left,u=n.clientY-o.top;"left"!==r&&"right"!==r||(r=a1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:k,n=M;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));var r,i={},o=Object(v.a)(n);try{for(o.s();!(r=o.n()).done;){var a=r.value,u=t(e[a],a);y.s.und(u)||(i[a]=u)}}catch(c){o.e(c)}finally{o.f()}return i},M=["config","onProps","onStart","onChange","onPause","onResume","onRest"],C={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function E(e){var t=function(e){var t={},n=0;if(Object(y.l)(e,(function(e,r){C[r]||(t[r]=e,n++)})),n)return t}(e);if(t){var n={to:t};return Object(y.l)(e,(function(e,r){return r in t||(n[r]=e)})),n}return O({},e)}function T(e){return e=Object(y.q)(e),y.s.arr(e)?e.map(T):Object(y.t)(e)?y.b.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function P(e){for(var t in e)return!0;return!1}function A(e){return y.s.fun(e)||y.s.arr(e)&&y.s.obj(e[0])}function R(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}function L(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}var I={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},N=O({},I.default,{mass:1,damping:1,easing:function(e){return e},clamp:!1}),D=function e(){Object(b.a)(this,e),this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,N)};function z(e,t){if(y.s.und(t.decay)){var n=!y.s.und(t.tension)||!y.s.und(t.friction);!n&&y.s.und(t.frequency)&&y.s.und(t.damping)&&y.s.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var W=[],F=function e(){Object(b.a)(this,e),this.changed=!1,this.values=W,this.toValues=null,this.fromValues=W,this.to=void 0,this.from=void 0,this.config=new D,this.immediate=!1};function U(e,t){var n=t.key,r=t.props,i=t.defaultProps,o=t.state,a=t.actions;return new Promise((function(t,u){var c,l,s,f=j(null!=(c=r.cancel)?c:null==i?void 0:i.cancel,n);if(f)b();else{y.s.und(r.pause)||(o.paused=j(r.pause,n));var d=null==i?void 0:i.pause;!0!==d&&(d=o.paused||j(d,n)),l=x(r.delay||0,n),d?(o.resumeQueue.add(p),a.pause()):(a.resume(),p())}function h(){o.resumeQueue.add(p),o.timeouts.delete(s),s.cancel(),l=s.time-y.w.now()}function p(){l>0?(s=y.w.setTimeout(b,l),o.pauseQueue.add(h),o.timeouts.add(s)):b()}function b(){o.pauseQueue.delete(h),o.timeouts.delete(s),e<=(o.cancelId||0)&&(f=!0);try{a.start(O({},r,{callId:e,cancel:f}),t)}catch(n){u(n)}}}))}var q=function(e,t){return 1==t.length?t[0]:t.some((function(e){return e.cancelled}))?H(e.get()):t.every((function(e){return e.noop}))?V(e.get()):B(e.get(),t.every((function(e){return e.finished})))},V=function(e){return{value:e,noop:!0,finished:!0,cancelled:!1}},B=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{value:e,finished:t,cancelled:n}},H=function(e){return{value:e,cancelled:!0,finished:!1}};function Y(e,t,n,r){var i=t.callId,o=t.parentId,a=t.onRest,u=n.asyncTo,c=n.promise;return o||e!==u||t.reset?n.promise=Object(p.a)(h.a.mark((function l(){var s,f,d,b,g,m,x,j;return h.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(n.asyncId=i,n.asyncTo=e,s=S(t,(function(e,t){return"onRest"===t?void 0:e})),b=new Promise((function(e,t){return f=e,d=t})),g=function(e){var t=i<=(n.cancelId||0)&&H(r)||i!==n.asyncId&&B(r,!1);if(t)throw e.result=t,d(e),e},m=function(e,t){var o=new $,a=new X;return Object(p.a)(h.a.mark((function u(){var c,l;return h.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(!y.b.skipAnimation){u.next=5;break}throw G(n),a.result=B(r,!1),d(a),a;case 5:return g(o),(c=y.s.obj(e)?O({},e):O({},t,{to:e})).parentId=i,Object(y.l)(s,(function(e,t){y.s.und(c[t])&&(c[t]=e)})),u.next=11,r.start(c);case 11:if(l=u.sent,g(o),!n.paused){u.next=16;break}return u.next=16,new Promise((function(e){n.resumeQueue.add(e)}));case 16:return u.abrupt("return",l);case 17:case"end":return u.stop()}}),u)})))()},!y.b.skipAnimation){l.next=9;break}return G(n),l.abrupt("return",B(r,!1));case 9:return l.prev=9,j=y.s.arr(e)?function(){var e=Object(p.a)(h.a.mark((function e(t){var n,r,i;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=Object(v.a)(t),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=9;break}return i=r.value,e.next=7,m(i);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),n.e(e.t0);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])})));return function(t){return e.apply(this,arguments)}}()(e):Promise.resolve(e(m,r.stop.bind(r))),l.next=13,Promise.all([j.then(f),b]);case 13:x=B(r.get(),!0,!1),l.next=27;break;case 16:if(l.prev=16,l.t0=l.catch(9),!(l.t0 instanceof $)){l.next=22;break}x=l.t0.result,l.next=27;break;case 22:if(!(l.t0 instanceof X)){l.next=26;break}x=l.t0.result,l.next=27;break;case 26:throw l.t0;case 27:return l.prev=27,i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?u:void 0,n.promise=o?c:void 0),l.finish(27);case 30:return y.s.fun(a)&&y.w.batchedUpdates((function(){a(x,r,r.item)})),l.abrupt("return",x);case 32:case"end":return l.stop()}}),l,null,[[9,16,27,30]])})))():c}function G(e,t){Object(y.m)(e.timeouts,(function(e){return e.cancel()})),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var $=function(e){Object(l.a)(n,e);var t=Object(s.a)(n);function n(){var e;return Object(b.a)(this,n),(e=t.call(this,"An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")).result=void 0,e}return n}(Object(f.a)(Error)),X=function(e){Object(l.a)(n,e);var t=Object(s.a)(n);function n(){var e;return Object(b.a)(this,n),(e=t.call(this,"SkipAnimationSignal")).result=void 0,e}return n}(Object(f.a)(Error)),Q=function(e){return e instanceof Z},K=1,Z=function(e){Object(l.a)(n,e);var t=Object(s.a)(n);function n(){var e;Object(b.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o1&&void 0!==arguments[1]&&arguments[1];Object(y.d)(this,{type:"change",parent:this,value:e,idle:t})}},{key:"_onPriorityChange",value:function(e){this.idle||y.o.sort(this),Object(y.d)(this,{type:"priority",parent:this,priority:e})}}]),n}(y.a),J=Symbol.for("SpringPhase"),ee=function(e){return(1&e[J])>0},te=function(e){return(2&e[J])>0},ne=function(e){return(4&e[J])>0},re=function(e,t){return t?e[J]|=3:e[J]&=-3},ie=function(e,t){return t?e[J]|=4:e[J]&=-5},oe=function(e){Object(l.a)(n,e);var t=Object(s.a)(n);function n(e,r){var i;if(Object(b.a)(this,n),(i=t.call(this)).key=void 0,i.animation=new F,i.queue=void 0,i.defaultProps={},i._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},i._pendingCalls=new Set,i._lastCallId=0,i._lastToId=0,i._memoizedDuration=0,!y.s.und(e)||!y.s.und(r)){var o=y.s.obj(e)?O({},e):O({},r,{from:e});y.s.und(o.default)&&(o.default=!0),i.start(o)}return i}return Object(c.a)(n,[{key:"idle",get:function(){return!(te(this)||this._state.asyncTo)||ne(this)}},{key:"goal",get:function(){return Object(y.q)(this.animation.to)}},{key:"velocity",get:function(){var e=Object(m.e)(this);return e instanceof m.c?e.lastVelocity||0:e.getPayload().map((function(e){return e.lastVelocity||0}))}},{key:"hasAnimated",get:function(){return ee(this)}},{key:"isAnimating",get:function(){return te(this)}},{key:"isPaused",get:function(){return ne(this)}},{key:"advance",value:function(e){var t=this,n=!0,r=!1,i=this.animation,o=i.config,a=i.toValues,u=Object(m.g)(i.to);!u&&Object(y.r)(i.to)&&(a=Object(y.y)(Object(y.q)(i.to))),i.values.forEach((function(c,l){if(!c.done){var s=c.constructor==m.b?1:u?u[l].lastPosition:a[l],f=i.immediate,d=s;if(!f){if(d=c.lastPosition,o.tension<=0)return void(c.done=!0);var h,p=c.elapsedTime+=e,b=i.fromValues[l],v=null!=c.v0?c.v0:c.v0=y.s.arr(o.velocity)?o.velocity[l]:o.velocity;if(y.s.und(o.duration))if(o.decay){var g=!0===o.decay?.998:o.decay,O=Math.exp(-(1-g)*p);d=b+v/(1-g)*(1-O),f=Math.abs(c.lastPosition-d)<.1,h=v*O}else{h=null==c.lastVelocity?v:c.lastVelocity;for(var x=o.precision||(b==s?.005:Math.min(1,.001*Math.abs(s-b))),j=o.restVelocity||x/10,w=o.clamp?0:o.bounce,_=!y.s.und(w),k=b==s?c.v0>0:bj||!(f=Math.abs(s-d)<=x));++M){_&&(d==s||d>s==k)&&(h=-h*w,d=s),d+=1*(h+=1*((1e-6*-o.tension*(d-s)+.001*-o.friction*h)/o.mass))}}else{var C=1;o.duration>0&&(t._memoizedDuration!==o.duration&&(t._memoizedDuration=o.duration,c.durationProgress>0&&(c.elapsedTime=o.duration*c.durationProgress,p=c.elapsedTime+=e)),C=(C=(o.progress||0)+p/t._memoizedDuration)>1?1:C<0?0:C,c.durationProgress=C),h=((d=b+o.easing(C)*(s-b))-c.lastPosition)/e,f=1==C}c.lastVelocity=h,Number.isNaN(d)&&(console.warn("Got NaN while animating:",t),f=!0)}u&&!u[l].done&&(f=!1),f?c.done=!0:n=!1,c.setValue(d,o.round)&&(r=!0)}}));var c=Object(m.e)(this),l=c.getValue();if(n){var s=Object(y.q)(i.to);l===s&&!r||o.decay?r&&o.decay&&this._onChange(l):(c.setValue(s),this._onChange(s)),this._stop()}else r&&this._onChange(l)}},{key:"set",value:function(e){var t=this;return y.w.batchedUpdates((function(){t._stop(),t._focus(e),t._set(e)})),this}},{key:"pause",value:function(){this._update({pause:!0})}},{key:"resume",value:function(){this._update({pause:!1})}},{key:"finish",value:function(){var e=this;if(te(this)){var t=this.animation,n=t.to,r=t.config;y.w.batchedUpdates((function(){e._onStart(),r.decay||e._set(n,!1),e._stop()}))}return this}},{key:"update",value:function(e){return(this.queue||(this.queue=[])).push(e),this}},{key:"start",value:function(e,t){var n,r=this;return y.s.und(e)?(n=this.queue||[],this.queue=[]):n=[y.s.obj(e)?e:O({},t,{to:e})],Promise.all(n.map((function(e){return r._update(e)}))).then((function(e){return q(r,e)}))}},{key:"stop",value:function(e){var t=this,n=this.animation.to;return this._focus(this.get()),G(this._state,e&&this._lastCallId),y.w.batchedUpdates((function(){return t._stop(n,e)})),this}},{key:"reset",value:function(){this._update({reset:!0})}},{key:"eventObserved",value:function(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}},{key:"_prepareNode",value:function(e){var t=this.key||"",n=e.to,r=e.from;(null==(n=y.s.obj(n)?n[t]:n)||A(n))&&(n=void 0),null==(r=y.s.obj(r)?r[t]:r)&&(r=void 0);var i={to:n,from:r};if(!ee(this)){if(e.reverse){var o=[r,n];n=o[0],r=o[1]}r=Object(y.q)(r),y.s.und(r)?Object(m.e)(this)||this._set(n):this._set(r)}return i}},{key:"_update",value:function(e,t){var n=this,r=O({},e),i=this.key,o=this.defaultProps;r.default&&Object.assign(o,S(r,(function(e,t){return/^on/.test(t)?w(e,i):e}))),de(this,r,"onProps"),he(this,"onProps",r,this);var a=this._prepareNode(r);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");var u=this._state;return U(++this._lastCallId,{key:i,props:r,defaultProps:o,state:u,actions:{pause:function(){ne(n)||(ie(n,!0),Object(y.n)(u.pauseQueue),he(n,"onPause",B(n,ae(n,n.animation.to)),n))},resume:function(){ne(n)&&(ie(n,!1),te(n)&&n._resume(),Object(y.n)(u.resumeQueue),he(n,"onResume",B(n,ae(n,n.animation.to)),n))},start:this._merge.bind(this,a)}}).then((function(e){if(r.loop&&e.finished&&(!t||!e.noop)){var i=ue(r);if(i)return n._update(i,!0)}return e}))}},{key:"_merge",value:function(e,t,n){var r=this;if(t.cancel)return this.stop(!0),n(H(this));var i=!y.s.und(e.to),o=!y.s.und(e.from);if(i||o){if(!(t.callId>this._lastToId))return n(H(this));this._lastToId=t.callId}var a=this.key,u=this.defaultProps,c=this.animation,l=c.to,s=c.from,f=e.to,d=void 0===f?l:f,h=e.from,p=void 0===h?s:h;if(!o||i||t.default&&!y.s.und(d)||(d=p),t.reverse){var b=[p,d];d=b[0],p=b[1]}var v=!Object(y.u)(p,s);v&&(c.from=p),p=Object(y.q)(p);var g=!Object(y.u)(d,l);g&&this._focus(d);var w=A(t.to),_=c.config,k=_.decay,S=_.velocity;(i||o)&&(_.velocity=0),t.config&&!w&&function(e,t,n){for(var r in n&&(z(n=O({},n),t),t=O({},n,t)),z(e,t),Object.assign(e,t),N)null==e[r]&&(e[r]=N[r]);var i=e.mass,o=e.frequency,a=e.damping;y.s.und(o)||(o<.01&&(o=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/o,2)*i,e.friction=4*Math.PI*a*i/o)}(_,x(t.config,a),t.config!==u.config?x(u.config,a):void 0);var M=Object(m.e)(this);if(!M||y.s.und(d))return n(B(this,!0));var C=y.s.und(t.reset)?o&&!t.default:!y.s.und(p)&&j(t.reset,a),E=C?p:this.get(),P=T(d),R=y.s.num(P)||y.s.arr(P)||Object(y.t)(P),L=!w&&(!R||j(u.immediate||t.immediate,a));if(g){var I=Object(m.f)(d);if(I!==M.constructor){if(!L)throw Error("Cannot animate between ".concat(M.constructor.name," and ").concat(I.name,', as the "to" prop suggests'));M=this._set(P)}}var D=M.constructor,W=Object(y.r)(d),F=!1;if(!W){var U=C||!ee(this)&&v;(g||U)&&(W=!(F=Object(y.u)(T(E),P))),(Object(y.u)(c.immediate,L)||L)&&Object(y.u)(_.decay,k)&&Object(y.u)(_.velocity,S)||(W=!0)}if(F&&te(this)&&(c.changed&&!C?W=!0:W||this._stop(l)),!w&&((W||Object(y.r)(l))&&(c.values=M.getPayload(),c.toValues=Object(y.r)(d)?null:D==m.b?[1]:Object(y.y)(P)),c.immediate!=L&&(c.immediate=L,L||C||this._set(l)),W)){var q=c.onRest;Object(y.k)(fe,(function(e){return de(r,t,e)}));var G=B(this,ae(this,l));Object(y.n)(this._pendingCalls,G),this._pendingCalls.add(n),c.changed&&y.w.batchedUpdates((function(){c.changed=!C,null==q||q(G,r),C?x(u.onRest,G):null==c.onStart||c.onStart(G,r)}))}C&&this._set(E),w?n(Y(t.to,t,this._state,this)):W?this._start():te(this)&&!g?this._pendingCalls.add(n):n(V(E))}},{key:"_focus",value:function(e){var t=this.animation;e!==t.to&&(Object(y.p)(this)&&this._detach(),t.to=e,Object(y.p)(this)&&this._attach())}},{key:"_attach",value:function(){var e=0,t=this.animation.to;Object(y.r)(t)&&(Object(y.c)(t,this),Q(t)&&(e=t.priority+1)),this.priority=e}},{key:"_detach",value:function(){var e=this.animation.to;Object(y.r)(e)&&Object(y.x)(e,this)}},{key:"_set",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=Object(y.q)(e);if(!y.s.und(r)){var i=Object(m.e)(this);if(!i||!Object(y.u)(r,i.getValue())){var o=Object(m.f)(r);i&&i.constructor==o?i.setValue(r):Object(m.h)(this,o.create(r)),i&&y.w.batchedUpdates((function(){t._onChange(r,n)}))}}return Object(m.e)(this)}},{key:"_onStart",value:function(){var e=this.animation;e.changed||(e.changed=!0,he(this,"onStart",B(this,ae(this,e.to)),this))}},{key:"_onChange",value:function(e,t){t||(this._onStart(),x(this.animation.onChange,e,this)),x(this.defaultProps.onChange,e,this),Object(a.a)(Object(u.a)(n.prototype),"_onChange",this).call(this,e,t)}},{key:"_start",value:function(){var e=this.animation;Object(m.e)(this).reset(Object(y.q)(e.to)),e.immediate||(e.fromValues=e.values.map((function(e){return e.lastPosition}))),te(this)||(re(this,!0),ne(this)||this._resume())}},{key:"_resume",value:function(){y.b.skipAnimation?this.finish():y.o.start(this)}},{key:"_stop",value:function(e,t){if(te(this)){re(this,!1);var n=this.animation;Object(y.k)(n.values,(function(e){e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Object(y.d)(this,{type:"idle",parent:this});var r=t?H(this.get()):B(this.get(),ae(this,null!=e?e:n.to));Object(y.n)(this._pendingCalls,r),n.changed&&(n.changed=!1,he(this,"onRest",r,this))}}}]),n}(Z);function ae(e,t){var n=T(t),r=T(e.get());return Object(y.u)(r,n)}function ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.loop,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.to,r=x(t);if(r){var i=!0!==r&&E(r),o=(i||e).reverse,a=!i||i.reset;return ce(O({},e,{loop:t,default:!1,pause:void 0,to:!o||A(n)?n:void 0,from:a?e.from:void 0,reset:a},i))}}function ce(e){var t=e=E(e),n=t.to,r=t.from,i=new Set;return y.s.obj(n)&&se(n,i),y.s.obj(r)&&se(r,i),e.keys=i.size?Array.from(i):null,e}function le(e){var t=ce(e);return y.s.und(t.default)&&(t.default=S(t)),t}function se(e,t){Object(y.l)(e,(function(e,n){return null!=e&&t.add(n)}))}var fe=["onStart","onRest","onChange","onPause","onResume"];function de(e,t,n){e.animation[n]=t[n]!==_(t,n)?w(t[n],e.key):void 0}function he(e,t){for(var n,r,i,o,a,u,c=arguments.length,l=new Array(c>2?c-2:0),s=2;s0,u=this._changed.size>0;(a&&!this._started||u&&!this._started)&&(this._started=!0,Object(y.m)(n,(function(t){var n=Object(o.a)(t,2),r=n[0],i=n[1];i.value=e.get(),r(i,e,e._item)})));var c=!a&&this._started,l=u||c&&i.size?this.get():null;u&&r.size&&Object(y.m)(r,(function(t){var n=Object(o.a)(t,2),r=n[0],i=n[1];i.value=l,r(i,e,e._item)})),c&&(this._started=!1,Object(y.m)(i,(function(t){var n=Object(o.a)(t,2),r=n[0],i=n[1];i.value=l,r(i,e,e._item)})))}},{key:"eventObserved",value:function(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}y.w.onFrame(this._onFrame)}}]),e}();function ye(e,t){return Promise.all(t.map((function(t){return ge(e,t)}))).then((function(t){return q(e,t)}))}function ge(e,t,n){return me.apply(this,arguments)}function me(){return(me=Object(p.a)(h.a.mark((function e(t,n,r){var i,o,a,u,c,l,s,f,d,p,b,v,g;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.keys,o=n.to,a=n.from,u=n.loop,c=n.onRest,l=n.onResolve,s=y.s.obj(n.default)&&n.default,u&&(n.loop=!1),!1===o&&(n.to=null),!1===a&&(n.from=null),(f=y.s.arr(o)||y.s.fun(o)?o:void 0)?(n.to=void 0,n.onRest=void 0,s&&(s.onRest=void 0)):Object(y.k)(pe,(function(e){var r=n[e];if(y.s.fun(r)){var i=t._events[e];n[e]=function(e){var t=e.finished,n=e.cancelled,o=i.get(r);o?(t||(o.finished=!1),n&&(o.cancelled=!0)):i.set(r,{value:null,finished:t||!1,cancelled:n||!1})},s&&(s[e]=n[e])}})),d=t._state,n.pause===!d.paused?(d.paused=n.pause,Object(y.n)(n.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(n.pause=!0),p=(i||Object.keys(t.springs)).map((function(e){return t.springs[e].start(n)})),b=!0===n.cancel||!0===_(n,"cancel"),(f||b&&d.asyncId)&&p.push(U(++t._lastAsyncId,{props:n,state:d,actions:{pause:y.v,resume:y.v,start:function(e,n){b?(G(d,t._lastAsyncId),n(H(t))):(e.onRest=c,n(Y(f,e,d,t)))}}})),!d.paused){e.next=15;break}return e.next=15,new Promise((function(e){d.resumeQueue.add(e)}));case 15:return e.t0=q,e.t1=t,e.next=19,Promise.all(p);case 19:if(e.t2=e.sent,v=(0,e.t0)(e.t1,e.t2),!u||!v.finished||r&&v.noop){e.next=26;break}if(!(g=ue(n,u,o))){e.next=26;break}return _e(t,[g]),e.abrupt("return",ge(t,g,!0));case 26:return l&&y.w.batchedUpdates((function(){return l(v,t,t.item)})),e.abrupt("return",v);case 28:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Oe(e,t){var n=O({},e.springs);return t&&Object(y.k)(Object(y.y)(t),(function(e){y.s.und(e.keys)&&(e=ce(e)),y.s.obj(e.to)||(e=O({},e,{to:void 0})),we(n,e,(function(e){return je(e)}))})),xe(e,n),n}function xe(e,t){Object(y.l)(t,(function(t,n){e.springs[n]||(e.springs[n]=t,Object(y.c)(t,e))}))}function je(e,t){var n=new oe;return n.key=e,t&&Object(y.c)(n,t),n}function we(e,t,n){t.keys&&Object(y.k)(t.keys,(function(r){(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function _e(e,t){Object(y.k)(t,(function(t){we(e.springs,t,(function(t){return je(t,e)}))}))}function ke(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var Se,Me,Ce=["children"],Ee=function(e){var t=e.children,n=ke(e,Ce),r=Object(g.useContext)(Te),i=n.pause||!!r.pause,o=n.immediate||!!r.immediate;n=Object(y.B)((function(){return{pause:i,immediate:o}}),[i,o]);var a=Te.Provider;return g.createElement(a,{value:n},t)},Te=(Se=Ee,Me={},Object.assign(Se,g.createContext(Me)),Se.Provider._context=Se,Se.Consumer._context=Se,Se);Ee.Provider=Te.Provider,Ee.Consumer=Te.Consumer;var Pe=function(){var e=[],t=function(t){Object(y.i)();var r=[];return Object(y.k)(e,(function(e,i){if(y.s.und(t))r.push(e.start());else{var o=n(t,e,i);o&&r.push(e.start(o))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){var n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){var t=arguments;return Object(y.k)(e,(function(e){return e.pause.apply(e,Object(i.a)(t))})),this},t.resume=function(){var t=arguments;return Object(y.k)(e,(function(e){return e.resume.apply(e,Object(i.a)(t))})),this},t.set=function(t){Object(y.k)(e,(function(e){return e.set(t)}))},t.start=function(t){var n=this,r=[];return Object(y.k)(e,(function(e,i){if(y.s.und(t))r.push(e.start());else{var o=n._getProps(t,e,i);o&&r.push(e.start(o))}})),r},t.stop=function(){var t=arguments;return Object(y.k)(e,(function(e){return e.stop.apply(e,Object(i.a)(t))})),this},t.update=function(t){var n=this;return Object(y.k)(e,(function(e,r){return e.update(n._getProps(t,e,r))})),this};var n=function(e,t,n){return y.s.fun(e)?e(n,t):e};return t._getProps=n,t};function Ae(e,t,n){var r=arguments,o=y.s.fun(t)&&t;o&&!n&&(n=[]);var a=Object(g.useMemo)((function(){return o||3==r.length?Pe():void 0}),[]),u=Object(g.useRef)(0),c=Object(y.z)(),l=Object(g.useMemo)((function(){return{ctrls:[],queue:[],flush:function(e,t){var n=Oe(e,t);return u.current>0&&!l.queue.length&&!Object.keys(n).some((function(t){return!e.springs[t]}))?ye(e,t):new Promise((function(r){xe(e,n),l.queue.push((function(){r(ye(e,t))})),c()}))}}}),[]),s=Object(g.useRef)(Object(i.a)(l.ctrls)),f=[],d=Object(y.D)(e)||0;function h(e,n){for(var r=e;r0)return void(o<=2147483647&&(n.expirationId=setTimeout(N,o)))}}r&&t.some((function(e){return e.expired}))&&N()}};var S=Oe(e.ctrl,v);z.set(e,{phase:o,springs:S,payload:v})}));var W=Object(g.useContext)(Ee),F=Object(y.D)(W),U=W!==F&&P(W);Object(y.A)((function(){U&&Object(y.k)(m,(function(e){e.ctrl.start({default:W})}))}),[W]),Object(y.A)((function(){Object(y.k)(z,(function(e,t){var n=e.phase,r=e.payload,i=t.ctrl;t.phase=n,null==b||b.add(i),U&&n==Le.ENTER&&i.start({default:W}),r&&(L(i,r.ref),i.ref?i.update(r):i.start(r))}))}),a?void 0:n);var q=function(e){return g.createElement(g.Fragment,null,m.map((function(t,n){var r=(z.get(t)||t.ctrl).springs,i=e(O({},r),t.item,t,n);return i&&i.type?g.createElement(i.type,O({},i.props,{key:y.s.str(t.key)||y.s.num(t.key)?t.key:t.ctrl.id,ref:i.ref})):i})))};return b?[q,b]:q}!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(Le||(Le={}));var Ne=1;function De(e,t,n){var r=t.key,i=t.keys,o=void 0===i?r:i;if(null===o){var a=new Set;return e.map((function(e){var t=n&&n.find((function(t){return t.item===e&&t.phase!==Le.LEAVE&&!a.has(t)}));return t?(a.add(t),t.key):Ne++}))}return y.s.und(o)?e:y.s.fun(o)?e.map(o):Object(y.y)(o)}var ze=function(e){Object(l.a)(n,e);var t=Object(s.a)(n);function n(e,o){var a;Object(b.a)(this,n),(a=t.call(this)).key=void 0,a.idle=!0,a.calc=void 0,a._active=new Set,a.source=e,a.calc=y.f.apply(void 0,Object(i.a)(o));var u=a._get(),c=Object(m.f)(u);return Object(m.h)(Object(r.a)(a),c.create(u)),a}return Object(c.a)(n,[{key:"advance",value:function(e){var t=this._get(),n=this.get();Object(y.u)(t,n)||(Object(m.e)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Fe(this._active)&&Ue(this)}},{key:"_get",value:function(){var e=y.s.arr(this.source)?this.source.map(y.q):Object(y.y)(Object(y.q)(this.source));return this.calc.apply(this,Object(i.a)(e))}},{key:"_start",value:function(){var e=this;this.idle&&!Fe(this._active)&&(this.idle=!1,Object(y.k)(Object(m.g)(this),(function(e){e.done=!1})),y.b.skipAnimation?(y.w.batchedUpdates((function(){return e.advance()})),Ue(this)):y.o.start(this))}},{key:"_attach",value:function(){var e=this,t=1;Object(y.k)(Object(y.y)(this.source),(function(n){Object(y.r)(n)&&Object(y.c)(n,e),Q(n)&&(n.idle||e._active.add(n),t=Math.max(t,n.priority+1))})),this.priority=t,this._start()}},{key:"_detach",value:function(){var e=this;Object(y.k)(Object(y.y)(this.source),(function(t){Object(y.r)(t)&&Object(y.x)(t,e)})),this._active.clear(),Ue(this)}},{key:"eventObserved",value:function(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Object(y.y)(this.source).reduce((function(e,t){return Math.max(e,(Q(t)?t.priority:0)+1)}),0))}}]),n}(Z);function We(e){return!1!==e.idle}function Fe(e){return!e.size||Array.from(e).every(We)}function Ue(e){e.idle||(e.idle=!0,Object(y.k)(Object(m.g)(e),(function(e){e.done=!0})),Object(y.d)(e,{type:"idle",parent:e}))}var qe=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?j(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?j(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=f.exec(e))?new k(t[1],t[2],t[3],1):(t=d.exec(e))?new k(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?j(t[1],t[2],t[3],t[4]):(t=p.exec(e))?j(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=b.exec(e))?E(t[1],t[2]/100,t[3]/100,1):(t=v.exec(e))?E(t[1],t[2]/100,t[3]/100,t[4]):y.hasOwnProperty(e)?x(y[e]):"transparent"===e?new k(NaN,NaN,NaN,0):null}function x(e){return new k(e>>16&255,e>>8&255,255&e,1)}function j(e,t,n,r){return r<=0&&(e=t=n=NaN),new k(e,t,n,r)}function w(e){return e instanceof i||(e=O(e)),e?new k((e=e.rgb()).r,e.g,e.b,e.opacity):new k}function _(e,t,n,r){return 1===arguments.length?w(e):new k(e,t,n,null==r?1:r)}function k(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function S(){return"#"+C(this.r)+C(this.g)+C(this.b)}function M(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function C(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function E(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new P(e,t,n,r)}function T(e){if(e instanceof P)return new P(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=O(e)),!e)return new P;if(e instanceof P)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),u=NaN,c=a-o,l=(a+o)/2;return c?(u=t===a?(n-r)/c+6*(n0&&l<1?0:u,new P(u,c,l,e.opacity)}function P(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function A(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Object(r.a)(i,O,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:g,formatHex:g,formatHsl:function(){return T(this).formatHsl()},formatRgb:m,toString:m}),Object(r.a)(k,_,Object(r.b)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new k(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new k(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:S,formatHex:S,formatRgb:M,toString:M})),Object(r.a)(P,(function(e,t,n,r){return 1===arguments.length?T(e):new P(e,t,n,null==r?1:r)}),Object(r.b)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new P(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new P(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new k(A(e>=240?e-240:e+120,i,r),A(e,i,r),A(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return S})),n.d(t,"c",(function(){return M})),n.d(t,"d",(function(){return k}));var r=n(3);function i(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function a(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0;var u=function(e,t){return function(n){return n[e]=t,n}},c=Object.prototype.hasOwnProperty;function l(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function s(e,t){if(l(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i=0;)n[t]=t;return n}},function(e,t,n){"use strict";t.a=function(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],u=a.length;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}(e.modifiers);try{var u=function(){var e=ye(i.value,2),t=e[0],n=e[1];if("brighter"===t)o.push((function(e){return e.brighter(n)}));else if("darker"===t)o.push((function(e){return e.darker(n)}));else{if("opacity"!==t)throw new Error("Invalid color modifier: '".concat(t,"', must be one of: 'brighter', 'darker', 'opacity'"));o.push((function(e){return e.opacity=n,e}))}};for(a.s();!(i=a.n()).done;)u()}catch(c){a.e(c)}finally{a.f()}return 0===o.length?r:function(e){return o.reduce((function(e,t){return t(e)}),Object(Q.f)(r(e))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},me=function(e,t){return Object(X.useMemo)((function(){return ge(e,t)}),[e,t])},Oe=function(e,t){if("function"===typeof e)return e;var n,r="function"===typeof t?t:function(e){return $()(e,t)};if(Array.isArray(e)){var i=Object(K.a)(e),o=function(e){return i(r(e))};return o.scale=i,o}if(Y()(e)){if(function(e){return void 0!==e.datum}(e))return function(t){return $()(t,e.datum)};if(function(e){return void 0!==e.scheme}(e)){if(n=e.scheme,ie.includes(n)){var a=Object(K.a)(fe[e.scheme]),u=function(e){return a(r(e))};return u.scale=a,u}if(function(e){return ae.includes(e)}(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>11))throw new Error("Invalid size '".concat(e.size,"' for diverging color scheme '").concat(e.scheme,"', must be between 3~11"));var c=Object(K.a)(fe[e.scheme][e.size||11]),l=function(e){return c(r(e))};return l.scale=c,l}if(function(e){return le.includes(e)}(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>9))throw new Error("Invalid size '".concat(e.size,"' for sequential color scheme '").concat(e.scheme,"', must be between 3~9"));var s=Object(K.a)(fe[e.scheme][e.size||9]),f=function(e){return s(r(e))};return f.scale=s,f}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},xe=function(e,t){return Object(X.useMemo)((function(){return Oe(e,t)}),[e,t])},je=(J.a.oneOfType([J.a.func,J.a.arrayOf(J.a.string),J.a.shape({scheme:J.a.oneOf(de).isRequired,size:J.a.number}),J.a.shape({datum:J.a.string.isRequired}),J.a.string]),J.a.oneOfType([J.a.func,J.a.string]),J.a.oneOfType([J.a.string,J.a.func,J.a.shape({theme:J.a.string.isRequired}),J.a.shape({from:J.a.string.isRequired,modifiers:J.a.arrayOf(J.a.array)})]))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(53),i=n(18),o=Symbol("implicit");function a(){var e=new Map,t=[],n=[],u=o;function c(r){var i=r+"",a=e.get(i);if(!a){if(u!==o)return u;e.set(i,a=t.push(r))}return n[(a-1)%n.length]}return c.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;var i,o=Object(r.a)(n);try{for(o.s();!(i=o.n()).done;){var a=i.value,u=a+"";e.has(u)||e.set(u,t.push(a))}}catch(l){o.e(l)}finally{o.f()}return c},c.range=function(e){return arguments.length?(n=Array.from(e),c):n.slice()},c.unknown=function(e){return arguments.length?(u=e,c):u},c.copy=function(){return a(t,n).unknown(u)},i.b.apply(c,arguments),c}},function(e,t,n){var r=n(65),i=n(271),o=n(272),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},function(e,t,n){"use strict";function r(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.d(t,"b",(function(){return r})),t.a=function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}));var r=n(73);function i(e,t){return function(n){return e+n*t}}function o(e,t){var n=t-e;return n?i(e,n>180||n<-180?n-360*Math.round(n/360):n):Object(r.a)(isNaN(e)?t:e)}function a(e){return 1===(e=+e)?u:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Object(r.a)(isNaN(t)?n:t)}}function u(e,t){var n=t-e;return n?i(e,n):Object(r.a)(isNaN(e)?t:e)}},function(e,t,n){"use strict";function r(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}n.d(t,"b",(function(){return r})),t.a=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(81);var i=n(71);function o(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(48),i=n(35),o=Math.PI/180,a=180/Math.PI,u=-.14861,c=1.78277,l=-.29227,s=-.90649,f=1.97294,d=f*s,h=f*c,p=c*l-s*u;function b(e){if(e instanceof y)return new y(e.h,e.s,e.l,e.opacity);e instanceof i.b||(e=Object(i.g)(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(p*r+d*t-h*n)/(p+d-h),u=r-o,c=(f*(n-o)-l*u)/s,b=Math.sqrt(c*c+u*u)/(f*o*(1-o)),v=b?Math.atan2(c,u)*a-120:NaN;return new y(v<0?v+360:v,b,o,e.opacity)}function v(e,t,n,r){return 1===arguments.length?b(e):new y(e,t,n,null==r?1:r)}function y(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Object(r.a)(y,v,Object(r.b)(i.a,{brighter:function(e){return e=null==e?i.c:Math.pow(i.c,e),new y(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i.d:Math.pow(i.d,e),new y(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*o,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new i.b(255*(t+n*(u*r+c*a)),255*(t+n*(l*r+s*a)),255*(t+n*(f*r)),this.opacity)}}))},,function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return f}));var r=n(235),i=n(21),o=n(18),a=n(172),u=n(40),c=n(184);function l(e,t,n,i){var o,l=Object(r.c)(e,t,n);switch((i=Object(a.a)(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Object(u.a)(t)/3)))-Object(u.a)(Math.abs(e)))}(l,s))||(i.precision=o),Object(c.b)(i,s);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Object(u.a)(t)-Object(u.a)(e))+1}(l,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-Object(u.a)(Math.abs(e)))}(l))||(i.precision=o-2*("%"===i.type))}return Object(c.a)(i)}function s(e){var t=e.domain;return e.ticks=function(e){var n=t();return Object(r.a)(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return l(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var i,o,a=t(),u=0,c=a.length-1,l=a[u],s=a[c],f=10;for(s0;){if((o=Object(r.b)(l,s,n))===i)return a[u]=l,a[c]=s,t(a);if(o>0)l=Math.floor(l/o)*o,s=Math.ceil(s/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,s=Math.floor(s*o)/o}i=o}return e},e}function f(){var e=Object(i.b)();return e.copy=function(){return Object(i.a)(e,f())},o.b.apply(e,arguments),s(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(71);function i(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Object(r.a)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw a}}}}},function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function i(e){this._context=e}n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:r(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:r(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},t.b=function(e){return new i(e)}},function(e,t,n){var r=n(206);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return u}));var r=n(5);function i(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}t.a=i(Object(r.a)("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var o=i(Object(r.a)("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),a=i(Object(r.a)("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),u=i(Object(r.a)("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"))},function(e,t,n){var r=n(270),i=n(275);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function i(e,t){this._context=e,this._k=(1-t)/6}n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:r(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.b=function e(t){function n(e){return new i(e,t)}return n.tension=function(t){return e(+t)},n}(0)},function(e,t,n){"use strict";t.a=function(e,t,n,r,i){for(var o,a=e.children,u=-1,c=a.length,l=e.value&&(r-t)/e.value;++ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}var h=["style","children","scrollTop","scrollLeft"],p=/^--/;function b(e,t){return null==t||"boolean"===typeof t||""===t?"":"number"!==typeof t||0===t||p.test(e)||y.hasOwnProperty(e)&&y[e]?(""+t).trim():t+"px"}var v={};var y={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},g=["Webkit","Ms","Moz","O"];y=Object.keys(y).reduce((function(e,t){return g.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),y);var m=["x","y","z"],O=/^(matrix|translate|scale|rotate|skew)/,x=/^(translate)/,j=/^(rotate|skew)/,w=function(e,t){return s.s.num(e)&&0!==e?e+t:e},_=function e(t,n){return s.s.arr(t)?t.every((function(t){return e(t,n)})):s.s.num(t)?t===n:parseFloat(t)===n},k=function(e){Object(a.a)(n,e);var t=Object(u.a)(n);function n(e){Object(o.a)(this,n);var r=e.x,a=e.y,u=e.z,c=d(e,m),l=[],f=[];return(r||a||u)&&(l.push([r||0,a||0,u||0]),f.push((function(e){return["translate3d(".concat(e.map((function(e){return w(e,"px")})).join(","),")"),_(e,0)]}))),Object(s.l)(c,(function(e,t){if("transform"===t)l.push([e||""]),f.push((function(e){return[e,""===e]}));else if(O.test(t)){if(delete c[t],s.s.und(e))return;var n=x.test(t)?"px":j.test(t)?"deg":"";l.push(Object(s.y)(e)),f.push("rotate3d"===t?function(e){var t=Object(i.a)(e,4),r=t[0],o=t[1],a=t[2],u=t[3];return["rotate3d(".concat(r,",").concat(o,",").concat(a,",").concat(w(u,n),")"),_(u,0)]}:function(e){return["".concat(t,"(").concat(e.map((function(e){return w(e,n)})).join(","),")"),_(e,t.startsWith("scale")?1:0)]})}})),l.length&&(c.transform=new S(l,f)),t.call(this,c)}return n}(f.a),S=function(e){Object(a.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;return Object(o.a)(this,n),(i=t.call(this))._value=null,i.inputs=e,i.transforms=r,i}return Object(r.a)(n,[{key:"get",value:function(){return this._value||(this._value=this._get())}},{key:"_get",value:function(){var e=this,t="",n=!0;return Object(s.k)(this.inputs,(function(r,o){var a=Object(s.q)(r[0]),u=e.transforms[o](s.s.arr(a)?a:r.map(s.q)),c=Object(i.a)(u,2),l=c[0],f=c[1];t+=" "+l,n=n&&f})),n?"none":t}},{key:"observerAdded",value:function(e){var t=this;1==e&&Object(s.k)(this.inputs,(function(e){return Object(s.k)(e,(function(e){return Object(s.r)(e)&&Object(s.c)(e,t)}))}))}},{key:"observerRemoved",value:function(e){var t=this;0==e&&Object(s.k)(this.inputs,(function(e){return Object(s.k)(e,(function(e){return Object(s.r)(e)&&Object(s.x)(e,t)}))}))}},{key:"eventObserved",value:function(e){"change"==e.type&&(this._value=null),Object(s.d)(this,e)}}]),n}(s.a),M=["scrollTop","scrollLeft"];c.Globals.assign({batchedUpdates:l.unstable_batchedUpdates,createStringInterpolator:s.g,colors:s.e});var C=Object(f.d)(["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","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","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;var n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t,i=r.style,o=r.children,a=r.scrollTop,u=r.scrollLeft,c=d(r,h),l=Object.values(c),s=Object.keys(c).map((function(t){return n||e.hasAttribute(t)?t:v[t]||(v[t]=t.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})))}));for(var f in void 0!==o&&(e.textContent=o),i)if(i.hasOwnProperty(f)){var y=b(f,i[f]);p.test(f)?e.style.setProperty(f,y):e.style[f]=y}s.forEach((function(t,n){e.setAttribute(t,l[n])})),void 0!==a&&(e.scrollTop=a),void 0!==u&&(e.scrollLeft=u)},createAnimatedStyle:function(e){return new k(e)},getComponentProps:function(e){return d(e,M)}}).animated},,function(e,t,n){var r=n(37).Symbol;e.exports=r},function(e,t,n){var r=n(28),i=n(150);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(152),i=n(145);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var u=-1,c=t.length;++u1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return u.h=360*e-100,u.s=1.5-1.5*t,u.l=.8-.9*t,u+""}},,function(e,t){e.exports=function(e,t){return e===t||e!==e&&t!==t}},function(e,t,n){var r=n(202),i=n(296),o=n(66);e.exports=function(e){return o(e)?r(e,!0):i(e)}},function(e,t,n){var r=n(69),i=n(70);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nr.f){var c=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*c-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*c-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>r.f){var s=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,f=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*s+e._x1*e._l23_2a-t*e._l12_2a)/f,u=(u*s+e._y1*e._l23_2a-n*e._l12_2a)/f}e._context.bezierCurveTo(i,o,a,u,e._x2,e._y2)}function a(e,t){this._context=e,this._alpha=t}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:o(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.a=function e(t){function n(e){return t?new a(e,t):new i.a(e,0)}return n.alpha=function(t){return e(+t)},n}(.5)},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(41);function i(e){for(var t,n=0,r=-1,i=e.length;++r0?1:e<0?-1:0},T=Math.sqrt,P=Math.tan;function A(e){return e>1?0:e<-1?b:Math.acos(e)}function R(e){return e>1?v:e<-1?-v:Math.asin(e)}function L(e){return function(t,n){var r=_(t),i=_(n),o=e(r*i);return[o*i*C(t),o*C(n)]}}function I(e){return function(t,n){var r=T(t*t+n*n),i=e(r),o=C(i),a=_(i);return[w(t*o,r*a),R(r&&n*o/r)]}}function N(){}var D=function(){var e,t=[];return{point:function(t,n,r){e.push([t,n,r])},lineStart:function(){t.push(e=[])},lineEnd:N,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},z=function(e,t){return x(e[0]-t[0])=0;--o)i.point((s=l[o])[0],s[1]);else r(d.x,d.p.x,-1,i);d=d.p}l=(d=d.o).z,h=!h}while(!d.v);i.lineEnd()}}};function U(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r=0?1:-1,L=A*P,I=L>b,N=O*E;if(J.add(w(N*A*C(L),x*T+N*_(L))),a+=I?P+A*g:P,I^h>=n^S>=n){var D=X(G(d),G(k));Z(D);var z=X(o,D);Z(z);var W=(I^P>=0?-1:1)*R(z[2]);(r>W||r===W&&(D[0]||D[1]))&&(u+=I^P>=0?1:-1)}}return(a<-p||at?1:e>=t?0:NaN};var re=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return ne(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}(ne);re.right,re.left;var ie=Array.prototype,oe=(ie.slice,ie.map,function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r=0;)for(t=(r=e[i]).length;--t>=0;)n[--a]=r[t];return n};var ue=function(e,t,n,r){return function(i){var o,a,u,c=t(i),l=D(),s=t(l),f=!1,d={point:h,lineStart:b,lineEnd:v,polygonStart:function(){d.point=y,d.lineStart=g,d.lineEnd=m,a=[],o=[]},polygonEnd:function(){d.point=h,d.lineStart=b,d.lineEnd=v,a=ae(a);var e=te(o,r);a.length?(f||(i.polygonStart(),f=!0),F(a,le,e,n,i)):e&&(f||(i.polygonStart(),f=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),f&&(i.polygonEnd(),f=!1),a=o=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function h(t,n){e(t,n)&&i.point(t,n)}function p(e,t){c.point(e,t)}function b(){d.point=p,c.lineStart()}function v(){d.point=h,c.lineEnd()}function y(e,t){u.push([e,t]),s.point(e,t)}function g(){s.lineStart(),u=[]}function m(){y(u[0][0],u[0][1]),s.lineEnd();var e,t,n,r,c=s.clean(),d=l.result(),h=d.length;if(u.pop(),o.push(u),u=null,h)if(1&c){if((t=(n=d[0]).length-1)>0){for(f||(i.polygonStart(),f=!0),i.lineStart(),e=0;e1&&2&c&&d.push(d.pop().concat(d.shift())),a.push(d.filter(ce))}return d}};function ce(e){return e.length>1}function le(e,t){return((e=e.x)[0]<0?e[1]-v-p:v-e[1])-((t=t.x)[0]<0?t[1]-v-p:v-t[1])}var se=ue((function(){return!0}),(function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var u=o>0?b:-b,c=x(o-n);x(c-b)0?v:-v),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(u,r),e.point(o,r),t=0):i!==u&&c>=b&&(x(n-i)p?j((C(t)*(o=_(r))*C(n)-C(r)*(i=_(t))*C(e))/(i*o*a)):(t+r)/2}(n,r,o,a),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(u,r),t=0),e.point(n=o,r=a),i=u},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var i;if(null==e)i=n*v,r.point(-b,i),r.point(0,i),r.point(b,i),r.point(b,0),r.point(b,-i),r.point(0,-i),r.point(-b,-i),r.point(-b,0),r.point(-b,i);else if(x(e[0]-t[0])>p){var o=e[0]b?e+Math.round(-e/g)*g:e,t]}function he(e,t,n){return(e%=g)?t||n?fe(be(e),ve(t,n)):be(e):t||n?ve(t,n):de}function pe(e){return function(t,n){return[(t+=e)>b?t-g:t<-b?t+g:t,n]}}function be(e){var t=pe(e);return t.invert=pe(-e),t}function ve(e,t){var n=_(e),r=C(e),i=_(t),o=C(t);function a(e,t){var a=_(t),u=_(e)*a,c=C(e)*a,l=C(t),s=l*n+u*r;return[w(c*i-s*o,u*n-l*r),R(s*i+c*o)]}return a.invert=function(e,t){var a=_(t),u=_(e)*a,c=C(e)*a,l=C(t),s=l*i-c*o;return[w(c*i+l*o,u*n+s*r),R(s*n-u*r)]},a}de.invert=de;function ye(e,t,n,r,i,o){if(n){var a=_(t),u=C(t),c=r*n;null==i?(i=t+r*g,o=t-c/2):(i=ge(a,i),o=ge(a,o),(r>0?io)&&(i+=r*g));for(var l,s=i;r>0?s>o:s0,i=x(t)>p;function o(e,n){return _(e)*_(n)>t}function a(e,n,r){var i=[1,0,0],o=X(G(e),G(n)),a=$(o,o),u=o[0],c=a-u*u;if(!c)return!r&&e;var l=t*a/c,s=-t*u/c,f=X(i,o),d=K(i,l);Q(d,K(o,s));var h=f,v=$(d,h),y=$(h,h),g=v*v-y*($(d,d)-1);if(!(g<0)){var m=T(g),O=K(h,(-v-m)/y);if(Q(O,d),O=Y(O),!r)return O;var j,w=e[0],_=n[0],k=e[1],S=n[1];_0^O[1]<(x(O[0]-w)b^(w<=O[0]&&O[0]<=_)){var E=K(h,(-v+m)/y);return Q(E,d),[O,Y(E)]}}}function u(t,n){var i=r?e:b-e,o=0;return t<-i?o|=1:t>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return ue(o,(function(e){var t,n,c,l,s;return{lineStart:function(){l=c=!1,s=1},point:function(f,d){var h,p=[f,d],v=o(f,d),y=r?v?0:u(f,d):v?u(f+(f<0?b:-b),d):0;if(!t&&(l=c=v)&&e.lineStart(),v!==c&&(!(h=a(t,p))||z(t,h)||z(p,h))&&(p[2]=1),v!==c)s=0,v?(e.lineStart(),h=a(p,t),e.point(h[0],h[1])):(h=a(t,p),e.point(h[0],h[1],2),e.lineEnd()),t=h;else if(i&&t&&r^v){var g;y&n||!(g=a(p,t,!0))||(s=0,r?(e.lineStart(),e.point(g[0][0],g[0][1]),e.point(g[1][0],g[1][1]),e.lineEnd()):(e.point(g[1][0],g[1][1]),e.lineEnd(),e.lineStart(),e.point(g[0][0],g[0][1],3)))}!v||t&&z(t,p)||e.point(p[0],p[1]),t=p,c=v,n=y},lineEnd:function(){c&&e.lineEnd(),t=null},clean:function(){return s|(l&&c)<<1}}}),(function(t,r,i,o){ye(o,e,n,i,t,r)}),r?[0,-e]:[-b,e-b])},Oe=1e9,xe=-Oe;function je(e,t,n,r){function i(i,o){return e<=i&&i<=n&&t<=o&&o<=r}function o(i,o,u,l){var s=0,f=0;if(null==i||(s=a(i,u))!==(f=a(o,u))||c(i,o)<0^u>0)do{l.point(0===s||3===s?e:n,s>1?r:t)}while((s=(s+u+4)%4)!==f);else l.point(o[0],o[1])}function a(r,i){return x(r[0]-e)0?0:3:x(r[0]-n)0?2:1:x(r[1]-t)0?1:0:i>0?3:2}function u(e,t){return c(e.x,t.x)}function c(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){var c,l,s,f,d,h,p,b,v,y,g,m=a,O=D(),x={point:j,lineStart:function(){x.point=w,l&&l.push(s=[]);y=!0,v=!1,p=b=NaN},lineEnd:function(){c&&(w(f,d),h&&v&&O.rejoin(),c.push(O.result()));x.point=j,v&&m.lineEnd()},polygonStart:function(){m=O,c=[],l=[],g=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,i=l.length;nr&&(d-o)*(r-a)>(h-a)*(e-o)&&++t:h<=r&&(d-o)*(r-a)<(h-a)*(e-o)&&--t;return t}(),n=g&&t,i=(c=ae(c)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&F(c,u,t,o,a),a.polygonEnd());m=a,c=l=s=null}};function j(e,t){i(e,t)&&m.point(e,t)}function w(o,a){var u=i(o,a);if(l&&s.push([o,a]),y)f=o,d=a,h=u,y=!1,u&&(m.lineStart(),m.point(o,a));else if(u&&v)m.point(o,a);else{var c=[p=Math.max(xe,Math.min(Oe,p)),b=Math.max(xe,Math.min(Oe,b))],O=[o=Math.max(xe,Math.min(Oe,o)),a=Math.max(xe,Math.min(Oe,a))];!function(e,t,n,r,i,o){var a,u=e[0],c=e[1],l=0,s=1,f=t[0]-u,d=t[1]-c;if(a=n-u,f||!(a>0)){if(a/=f,f<0){if(a0){if(a>s)return;a>l&&(l=a)}if(a=i-u,f||!(a<0)){if(a/=f,f<0){if(a>s)return;a>l&&(l=a)}else if(f>0){if(a0)){if(a/=d,d<0){if(a0){if(a>s)return;a>l&&(l=a)}if(a=o-c,d||!(a<0)){if(a/=d,d<0){if(a>s)return;a>l&&(l=a)}else if(d>0){if(a0&&(e[0]=u+l*f,e[1]=c+l*d),s<1&&(t[0]=u+s*f,t[1]=c+s*d),!0}}}}}(c,O,e,t,n,r)?u&&(m.lineStart(),m.point(o,a),g=!1):(v||(m.lineStart(),m.point(c[0],c[1])),m.point(O[0],O[1]),u||m.lineEnd(),g=!1)}p=o,b=a,v=u}return x}}var we=function(e){return e};function _e(e){return function(t){var n=new ke;for(var r in e)n[r]=e[r];return n.stream=t,n}}function ke(){}function Se(e,t){e&&Ce.hasOwnProperty(e.type)&&Ce[e.type](e,t)}ke.prototype={constructor:ke,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Me={Feature:function(e,t){Se(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++rLe&&(Le=e);tIe&&(Ie=t)},lineStart:N,lineEnd:N,polygonStart:N,polygonEnd:N,result:function(){var e=[[Ae,Re],[Le,Ie]];return Le=Ie=-(Re=Ae=1/0),e}};function De(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),Pe(n,e.stream(Ne)),t(Ne.result()),null!=r&&e.clipExtent(r),e}function ze(e,t,n){return De(e,(function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+t[0][0]+(r-o*(n[1][0]+n[0][0]))/2,u=+t[0][1]+(i-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([a,u])}),n)}var We=_(30*O),Fe=function(e,t){return+t?function(e,t){function n(r,i,o,a,u,c,l,s,f,d,h,b,v,y){var g=l-r,m=s-i,O=g*g+m*m;if(O>4*t&&v--){var j=a+d,_=u+h,k=c+b,S=T(j*j+_*_+k*k),M=R(k/=S),C=x(x(k)-1)t||x((g*L+m*I)/O-.5)>.3||a*d+u*h+c*b2?e[2]%360*O:0,A()):[v*m,y*m,g*m]},E.angle=function(e){return arguments.length?(x=e%360*O,A()):x*m},E.reflectX=function(e){return arguments.length?(j=e?-1:1,A()):j<0},E.reflectY=function(e){return arguments.length?(w=e?-1:1,A()):w<0},E.precision=function(e){return arguments.length?(a=Fe(u,C=e*e),R()):T(C)},E.fitExtent=function(e,t){return ze(E,e,t)},E.fitSize=function(e,t){return function(e,t,n){return ze(e,[[0,0],t],n)}(E,e,t)},E.fitWidth=function(e,t){return function(e,t,n){return De(e,(function(n){var r=+t,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];e.scale(150*i).translate([o,a])}),n)}(E,e,t)},E.fitHeight=function(e,t){return function(e,t,n){return De(e,(function(n){var r=+t,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([o,a])}),n)}(E,e,t)},function(){return t=e.apply(this,arguments),E.invert=t.invert&&P,A()}}((function(){return e}))()}var He=L((function(e){return T(2/(1+e))}));He.invert=I((function(e){return 2*R(e/2)}));var Ye=L((function(e){return(e=A(e))&&e/C(e)}));Ye.invert=I((function(e){return e}));function Ge(e,t){var n=_(t),r=_(e)*n;return[n*C(e)/r,C(t)/r]}Ge.invert=I(j);function $e(e,t){return[_(t)*C(e),C(t)]}$e.invert=I(R);function Xe(e,t){var n=_(t),r=1+_(e)*n;return[n*C(e)/r,C(t)/r]}Xe.invert=I((function(e){return 2*j(e)}));var Qe=1.340264,Ke=-.081106,Ze=893e-6,Je=.003796,et=T(3)/2;function tt(e,t){var n=R(et*C(t)),r=n*n,i=r*r*r;return[e*_(n)/(et*(Qe+3*Ke*r+i*(7*Ze+9*Je*r))),n*(Qe+Ke*r+i*(Ze+Je*r))]}tt.invert=function(e,t){for(var n,r=t,i=r*r,o=i*i*i,a=0;a<12&&(o=(i=(r-=n=(r*(Qe+Ke*i+o*(Ze+Je*i))-t)/(Qe+3*Ke*i+o*(7*Ze+9*Je*i)))*r)*i*i,!(x(n)<1e-12));++a);return[et*e*(Qe+3*Ke*i+o*(7*Ze+9*Je*i))/_(r),R(C(r)/et)]};function nt(e,t){return[e,t]}nt.invert=nt;function rt(e,t){return[e,M(P((v+t)/2))]}rt.invert=function(e,t){return[e,2*j(S(t))-v]};function it(e){var t,n,r,i=Be(e),o=i.center,a=i.scale,u=i.translate,c=i.clipExtent,l=null;function s(){var o=b*a(),u=i(function(e){function t(t){return(t=e(t[0]*O,t[1]*O))[0]*=m,t[1]*=m,t}return e=he(e[0]*O,e[1]*O,e.length>2?e[2]*O:0),t.invert=function(t){return(t=e.invert(t[0]*O,t[1]*O))[0]*=m,t[1]*=m,t},t}(i.rotate()).invert([0,0]));return c(null==l?[[u[0]-o,u[1]-o],[u[0]+o,u[1]+o]]:e===rt?[[Math.max(u[0]-o,l),t],[Math.min(u[0]+o,n),r]]:[[l,Math.max(u[1]-o,t)],[n,Math.min(u[1]+o,r)]])}return i.scale=function(e){return arguments.length?(a(e),s()):a()},i.translate=function(e){return arguments.length?(u(e),s()):u()},i.center=function(e){return arguments.length?(o(e),s()):o()},i.clipExtent=function(e){return arguments.length?(null==e?l=t=n=r=null:(l=+e[0][0],t=+e[0][1],n=+e[1][0],r=+e[1][1]),s()):null==l?null:[[l,t],[n,r]]},s()}function ot(e,t){return[M(P((v+t)/2)),-e]}ot.invert=function(e,t){return[-t,2*j(S(e))-v]};function at(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),t*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}at.invert=function(e,t){var n,r=t,i=25;do{var o=r*r,a=o*o;r-=n=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-t)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(x(n)>p&&--i>0);return[e/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]};var ut,ct,lt,st,ft=q(),dt=q(),ht={point:N,lineStart:N,lineEnd:N,polygonStart:function(){ht.lineStart=pt,ht.lineEnd=yt},polygonEnd:function(){ht.lineStart=ht.lineEnd=ht.point=N,ft.add(x(dt)),dt.reset()},result:function(){var e=ft/2;return ft.reset(),e}};function pt(){ht.point=bt}function bt(e,t){ht.point=vt,ut=lt=e,ct=st=t}function vt(e,t){dt.add(st*e-lt*t),lt=e,st=t}function yt(){vt(ut,ct)}var gt,mt,Ot,xt,jt=ht,wt=0,_t=0,kt=0,St=0,Mt=0,Ct=0,Et=0,Tt=0,Pt=0,At={point:Rt,lineStart:Lt,lineEnd:Dt,polygonStart:function(){At.lineStart=zt,At.lineEnd=Wt},polygonEnd:function(){At.point=Rt,At.lineStart=Lt,At.lineEnd=Dt},result:function(){var e=Pt?[Et/Pt,Tt/Pt]:Ct?[St/Ct,Mt/Ct]:kt?[wt/kt,_t/kt]:[NaN,NaN];return wt=_t=kt=St=Mt=Ct=Et=Tt=Pt=0,e}};function Rt(e,t){wt+=e,_t+=t,++kt}function Lt(){At.point=It}function It(e,t){At.point=Nt,Rt(Ot=e,xt=t)}function Nt(e,t){var n=e-Ot,r=t-xt,i=T(n*n+r*r);St+=i*(Ot+e)/2,Mt+=i*(xt+t)/2,Ct+=i,Rt(Ot=e,xt=t)}function Dt(){At.point=Rt}function zt(){At.point=Ft}function Wt(){Ut(gt,mt)}function Ft(e,t){At.point=Ut,Rt(gt=Ot=e,mt=xt=t)}function Ut(e,t){var n=e-Ot,r=t-xt,i=T(n*n+r*r);St+=i*(Ot+e)/2,Mt+=i*(xt+t)/2,Ct+=i,Et+=(i=xt*e-Ot*t)*(Ot+e),Tt+=i*(xt+t),Pt+=3*i,Rt(Ot=e,xt=t)}var qt=At;function Vt(e){this._context=e}Vt.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,g)}},result:N};var Bt,Ht,Yt,Gt,$t,Xt=q(),Qt={point:N,lineStart:function(){Qt.point=Kt},lineEnd:function(){Bt&&Zt(Ht,Yt),Qt.point=N},polygonStart:function(){Bt=!0},polygonEnd:function(){Bt=null},result:function(){var e=+Xt;return Xt.reset(),e}};function Kt(e,t){Qt.point=Zt,Ht=Gt=e,Yt=$t=t}function Zt(e,t){Gt-=e,$t-=t,Xt.add(T(Gt*Gt+$t*$t)),Gt=e,$t=t}var Jt=Qt;function en(){this._string=[]}function tn(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}en.prototype={_radius:4.5,_circle:tn(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=tn(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}};function nn(e,t,n){var r=oe(e,t-p,n).concat(t);return function(e){return r.map((function(t){return[e,t]}))}}function rn(e,t,n){var r=oe(e,t-p,n).concat(t);return function(e){return r.map((function(t){return[t,e]}))}}function on(){var e,t,n,r,i,o,a,u,c,l,s,f,d=10,h=d,b=90,v=360,y=2.5;function g(){return{type:"MultiLineString",coordinates:m()}}function m(){return oe(k(r/b)*b,n,b).map(s).concat(oe(k(u/v)*v,a,v).map(f)).concat(oe(k(t/d)*d,e,d).filter((function(e){return x(e%b)>p})).map(c)).concat(oe(k(o/h)*h,i,h).filter((function(e){return x(e%v)>p})).map(l))}return g.lines=function(){return m().map((function(e){return{type:"LineString",coordinates:e}}))},g.outline=function(){return{type:"Polygon",coordinates:[s(r).concat(f(a).slice(1),s(n).reverse().slice(1),f(u).reverse().slice(1))]}},g.extent=function(e){return arguments.length?g.extentMajor(e).extentMinor(e):g.extentMinor()},g.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],u=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),u>a&&(e=u,u=a,a=e),g.precision(y)):[[r,u],[n,a]]},g.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],o=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),o>i&&(n=o,o=i,i=n),g.precision(y)):[[t,o],[e,i]]},g.step=function(e){return arguments.length?g.stepMajor(e).stepMinor(e):g.stepMinor()},g.stepMajor=function(e){return arguments.length?(b=+e[0],v=+e[1],g):[b,v]},g.stepMinor=function(e){return arguments.length?(d=+e[0],h=+e[1],g):[d,h]},g.precision=function(d){return arguments.length?(y=+d,c=nn(o,i,90),l=rn(t,e,y),s=nn(u,a,90),f=rn(r,n,y),g):y},g.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}var an,un,cn,ln=q(),sn={sphere:N,point:N,lineStart:function(){sn.point=dn,sn.lineEnd=fn},lineEnd:N,polygonStart:N,polygonEnd:N};function fn(){sn.point=sn.lineEnd=N}function dn(e,t){an=e*=O,un=C(t*=O),cn=_(t),sn.point=hn}function hn(e,t){e*=O;var n=C(t*=O),r=_(t),i=x(e-an),o=_(i),a=r*C(i),u=cn*n-un*r*o,c=un*n+cn*r*o;ln.add(w(T(a*a+u*u),c)),an=e,un=n,cn=r}var pn=[null,null],bn={type:"LineString",coordinates:pn},vn=function(e,t){return pn[0]=e,pn[1]=t,n=bn,ln.reset(),Pe(n,sn),+ln;var n},yn={Feature:function(e,t){return mn(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r0&&(i=vn(e[o],e[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<1e-12*i)return!0;n=r}return!1}function jn(e,t){return!!te(e.map(wn),_n(t))}function wn(e){return(e=e.map(_n)).pop(),e}function _n(e){return[e[0]*O,e[1]*O]}var kn=function(e,t){return(e&&yn.hasOwnProperty(e.type)?yn[e.type]:mn)(e,t)},Sn=n(62),Mn=n(0);function Cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function En(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tn(e){for(var t=1;t2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)},naturalEarth1:function(){return Be(at).scale(175.295)}},An=function(e){var t=e.width,n=e.height,o=e.projectionType,a=e.projectionScale,u=e.projectionTranslation,l=e.projectionRotation,s=e.fillColor,f=e.borderWidth,d=e.borderColor,h=Object(r.useMemo)((function(){return Pn[o]().scale(a).translate([t*u[0],n*u[1]]).rotate(l)}),[t,n,o,a,u[0],u[1],l[0],l[1],l[2]]),p=Object(r.useMemo)((function(){return function(e,t){var n,r,i=4.5;function o(e){return e&&("function"===typeof i&&r.pointRadius(+i.apply(this,arguments)),Pe(e,n(r))),r.result()}return o.area=function(e){return Pe(e,n(jt)),jt.result()},o.measure=function(e){return Pe(e,n(Jt)),Jt.result()},o.bounds=function(e){return Pe(e,n(Ne)),Ne.result()},o.centroid=function(e){return Pe(e,n(qt)),qt.result()},o.projection=function(t){return arguments.length?(n=null==t?(e=null,we):(e=t).stream,o):e},o.context=function(e){return arguments.length?(r=null==e?(t=null,new en):new Vt(t=e),"function"!==typeof i&&r.pointRadius(i),o):t},o.pointRadius=function(e){return arguments.length?(i="function"===typeof e?e:(r.pointRadius(+e),+e),o):i},o.projection(e).context(t)}(h)}),[h]),b=Object(r.useMemo)((function(){return on()})),v=Object(i.x)(),y=Object(r.useMemo)((function(){return"function"===typeof f?f:function(){return f}}),[f]),g=Object(c.b)(d,v),m=Object(r.useMemo)((function(){return"function"===typeof s?s:function(){return s}}),[s]);return{projection:h,path:p,graticule:b,getBorderWidth:y,getBorderColor:g,getFillColor:m}},Rn=function(e){var t=e.features,n=e.data,o=e.match,a=e.label,u=e.value,c=e.valueFormat,l=e.colors,f=e.unknownColor,p=e.domain,b=Object(r.useMemo)((function(){return d()(o)?o:function(e,t){var n=s()(e,o),r=s()(t,o);return n&&n===r}}),[o]),v=Object(r.useMemo)((function(){return d()(a)?a:function(e){return s()(e,a)}}),[a]),y=Object(r.useMemo)((function(){return d()(u)?u:function(e){return s()(e,u)}}),[u]),g=Object(r.useMemo)((function(){return void 0===c?function(e){return e}:d()(c)?c:Object(h.a)(c)}),[c]),m=Object(r.useMemo)((function(){return Object(i.l)(l).domain(p)}),[l,p]),O=Object(r.useMemo)((function(){return function(e){return void 0===e.value?f:m(e.value)}}),[m,f]),x=Object(r.useMemo)((function(){return t.map((function(e){var t=n.find((function(t){return b(e,t)})),r=y(t);if(t){var i=Tn(Tn({},e),{},{data:t,value:r,formattedValue:g(r)});return i.color=O(i),i.label=v(i),i}return e}))}),[t,n,b,y,g,O]),j=Object(Sn.c)({scale:m,valueFormat:g});return{colorScale:m,getFillColor:O,boundFeatures:x,valueFormatter:g,legendData:j}},Ln=Object(r.memo)((function(e){var t=e.feature;return void 0===t.data?null:Object(Mn.jsx)(o.a,{id:t.label,color:t.color,enableChip:!0,value:t.formattedValue})}));Ln.displayName="ChoroplethTooltip";var In={features:u.a.arrayOf(u.a.shape({id:u.a.string.isRequired,type:u.a.oneOf(["Feature"]).isRequired,properties:u.a.object,geometry:u.a.object.isRequired})).isRequired,projectionType:u.a.oneOf(Object.keys(Pn)).isRequired,projectionScale:u.a.number.isRequired,projectionTranslation:u.a.arrayOf(u.a.number).isRequired,projectionRotation:u.a.arrayOf(u.a.number).isRequired,fillColor:u.a.oneOfType([u.a.string,u.a.func]).isRequired,borderWidth:u.a.oneOfType([u.a.number,u.a.func]).isRequired,borderColor:c.a.isRequired,enableGraticule:u.a.bool.isRequired,graticuleLineWidth:u.a.number.isRequired,graticuleLineColor:u.a.string.isRequired,isInteractive:u.a.bool.isRequired,onMouseEnter:u.a.func.isRequired,onMouseMove:u.a.func.isRequired,onMouseLeave:u.a.func.isRequired,onClick:u.a.func.isRequired,tooltip:u.a.any,layers:u.a.arrayOf(u.a.oneOfType([u.a.oneOf(["graticule","features"]),u.a.func])).isRequired},Nn=Tn(Tn({},In),{},{role:u.a.string.isRequired}),Dn=Tn({pixelRatio:u.a.number.isRequired},In),zn={data:u.a.arrayOf(u.a.object).isRequired,match:u.a.oneOfType([u.a.string,u.a.func]).isRequired,label:u.a.oneOfType([u.a.string,u.a.func]).isRequired,value:u.a.oneOfType([u.a.string,u.a.func]).isRequired,valueFormat:u.a.oneOfType([u.a.string,u.a.func]),colors:i.p.isRequired,domain:u.a.arrayOf(u.a.number).isRequired,unknownColor:u.a.string.isRequired,layers:u.a.arrayOf(u.a.oneOfType([u.a.oneOf(["graticule","features","legends"]),u.a.func])).isRequired},Wn=(Tn(Tn(Tn({},Nn),zn),{},{role:u.a.string.isRequired}),Tn(Tn({},Dn),zn),{projectionType:"mercator",projectionScale:100,projectionTranslation:[.5,.5],projectionRotation:[0,0,0],enableGraticule:!1,graticuleLineWidth:.5,graticuleLineColor:"#999999",fillColor:"#dddddd",borderWidth:0,borderColor:"#000000",isInteractive:!0,onMouseEnter:function(){},onMouseLeave:function(){},onMouseMove:function(){},onClick:function(){},layers:["graticule","features"],legends:[]}),Fn=Tn(Tn({},Wn),{},{role:"img"}),Un=Tn(Tn({},Wn),{},{pixelRatio:"undefined"!==typeof window&&window.devicePixelRatio||1}),qn={match:"id",label:"id",value:"value",colors:"PuBuGn",unknownColor:"#999",tooltip:Ln,layers:["graticule","features","legends"]},Vn=Tn(Tn(Tn({},Fn),qn),{},{role:"img"}),Bn=Tn(Tn({},Un),qn),Hn=Object(r.memo)((function(e){var t=e.path,n=e.graticule,r=e.lineWidth,i=e.lineColor;return Object(Mn.jsx)("path",{fill:"none",strokeWidth:r,stroke:i,d:t(n())})}));Hn.displayName="GeoGraticule";var Yn=Object(r.memo)((function(e){var t=e.feature,n=e.path,r=e.fillColor,i=e.borderWidth,o=e.borderColor,a=e.onClick,u=e.onMouseEnter,c=e.onMouseMove,l=e.onMouseLeave;return Object(Mn.jsx)("path",{fill:r,strokeWidth:i,stroke:o,strokeLinejoin:"bevel",d:n(t),onMouseEnter:function(e){return u(t,e)},onMouseMove:function(e){return c(t,e)},onMouseLeave:function(e){return l(t,e)},onClick:function(e){return a(t,e)}},t.id)}));Yn.displayName="GeoMapFeature";var Gn=Object(r.memo)((function(e){var t=e.width,n=e.height,a=e.margin,u=e.features,c=e.layers,l=e.projectionType,s=e.projectionScale,f=e.projectionTranslation,d=e.projectionRotation,h=e.fillColor,p=e.borderWidth,b=e.borderColor,v=e.enableGraticule,y=e.graticuleLineWidth,g=e.graticuleLineColor,m=e.isInteractive,O=e.onClick,x=e.tooltip,j=e.role,w=Object(i.t)(t,n,a),_=w.margin,k=w.outerWidth,S=w.outerHeight,M=An({width:t,height:n,projectionType:l,projectionScale:s,projectionTranslation:f,projectionRotation:d,fillColor:h,borderWidth:p,borderColor:b}),C=M.graticule,E=M.path,T=M.getFillColor,P=M.getBorderWidth,A=M.getBorderColor,R=Object(i.x)(),L=Object(o.f)(),I=L.showTooltipFromEvent,N=L.hideTooltip,D=Object(r.useCallback)((function(e,t){return m&&O&&O(e,t)}),[m,O]),z=Object(r.useCallback)((function(e,t){return m&&x&&I(Object(Mn.jsx)(x,{feature:e}),t)}),[m,I,x]),W=Object(r.useCallback)((function(e,t){return m&&x&&I(Object(Mn.jsx)(x,{feature:e}),t)}),[m,I,x]),F=Object(r.useCallback)((function(){return m&&N()}),[m,N]);return Object(Mn.jsx)(i.d,{width:k,height:S,margin:_,theme:R,role:j,children:c.map((function(t,n){return"graticule"===t?!0!==v?null:Object(Mn.jsx)(Hn,{path:E,graticule:C,lineWidth:y,lineColor:g},"graticule"):"features"===t?Object(Mn.jsx)(r.Fragment,{children:u.map((function(e){return Object(Mn.jsx)(Yn,{feature:e,path:E,fillColor:T(e),borderWidth:P(e),borderColor:A(e),onMouseEnter:z,onMouseMove:W,onMouseLeave:F,onClick:D},e.id)}))},"features"):Object(Mn.jsx)(r.Fragment,{children:t(e)},n)}))})}));Gn.displayName="GeoMap",Gn.defaultProps=Fn;Object(i.z)(Gn);function $n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(t.strokeStyle=N(e),t.lineWidth=n,t.stroke())})):n(t,e)}))}}),[_,C,E,M,u,k,R,A,L,I,N,c,l]);var D=Object(o.f)(),z=D.showTooltipFromEvent,W=D.hideTooltip,F=Object(r.useCallback)((function(e){if(O&&w){var t=Qn(e,_.current,c,P);t?z(Object(Mn.jsx)(w,{feature:t}),e):W(),j&&j(t||null,e)}}),[z,W,O,w,_,c,P]),U=Object(r.useCallback)((function(){return O&&W()}),[O,W]),q=Object(r.useCallback)((function(e){if(O&&x){var t=Qn(e,_.current,c,P);t&&x(t,e)}}),[O,_,c,P,x]);return Object(Mn.jsx)("canvas",{ref:_,width:C*u,height:E*u,style:{width:C,height:E,cursor:O?"auto":"normal"},onMouseMove:F,onMouseLeave:U,onClick:q})}));Kn.displatName="GeoMapCanvas",Kn.defaultProps=Un;Object(i.z)(Kn);var Zn=Object(r.memo)((function(e){var t=e.width,n=e.height,a=e.margin,u=e.features,c=e.data,l=e.match,s=e.label,f=e.value,d=e.valueFormat,h=e.projectionType,p=e.projectionScale,b=e.projectionTranslation,v=e.projectionRotation,y=e.colors,g=e.domain,m=e.unknownColor,O=e.borderWidth,x=e.borderColor,j=e.enableGraticule,w=e.graticuleLineWidth,_=e.graticuleLineColor,k=e.layers,S=e.legends,M=e.isInteractive,C=e.onClick,E=e.tooltip,T=e.role,P=Object(i.t)(t,n,a),A=P.margin,R=P.outerWidth,L=P.outerHeight,I=An({width:t,height:n,projectionType:h,projectionScale:p,projectionTranslation:b,projectionRotation:v,fillColor:function(){},borderWidth:O,borderColor:x}),N=I.graticule,D=I.path,z=I.getBorderWidth,W=I.getBorderColor,F=Rn({features:u,data:c,match:l,label:s,value:f,valueFormat:d,colors:y,unknownColor:m,domain:g}),U=F.getFillColor,q=F.boundFeatures,V=F.legendData,B=Object(i.x)(),H=Object(o.f)(),Y=H.showTooltipFromEvent,G=H.hideTooltip,$=Object(r.useCallback)((function(e,t){return M&&C&&C(e,t)}),[M,C]),X=Object(r.useCallback)((function(e,t){return M&&E&&Y(Object(Mn.jsx)(E,{feature:e}),t)}),[M,Y,E]),Q=Object(r.useCallback)((function(e,t){return M&&E&&Y(Object(Mn.jsx)(E,{feature:e}),t)}),[M,Y,E]),K=Object(r.useCallback)((function(){return M&&G()}),[M,G]);return Object(Mn.jsx)(i.d,{width:R,height:L,margin:A,theme:B,role:T,children:k.map((function(e,i){return"graticule"===e?!0!==j?null:Object(Mn.jsx)(Hn,{path:D,graticule:N,lineWidth:w,lineColor:_},"graticule"):"features"===e?Object(Mn.jsx)(r.Fragment,{children:q.map((function(e){return Object(Mn.jsx)(Yn,{feature:e,path:D,fillColor:U(e),borderWidth:z(e),borderColor:W(e),onMouseEnter:X,onMouseMove:Q,onMouseLeave:K,onClick:$},e.id)}))},"features"):"legends"===e?S.map((function(e,r){return Object(Mn.jsx)(Sn.a,Tn({containerWidth:t,containerHeight:n,data:V},e),r)})):Object(Mn.jsx)(r.Fragment,{children:e({})},i)}))})}));Zn.displayName="Choropleth",Zn.defaultProps=Vn;var Jn=Object(i.z)(Zn),er=function(e){return Object(Mn.jsx)(i.c,{children:function(t){var n=t.width,r=t.height;return Object(Mn.jsx)(Jn,Tn({width:n,height:r},e))}})},tr=function(e,t,n,r){var o=Xn(Object(i.k)(t,e),2),a=o[0],u=o[1];return n.find((function(e){return kn(e,r.invert([a,u]))}))},nr=Object(r.memo)((function(e){var t=e.width,n=e.height,a=e.margin,u=e.pixelRatio,c=e.features,l=e.data,s=e.match,f=e.label,d=e.value,h=e.valueFormat,p=e.projectionType,b=e.projectionScale,v=e.projectionTranslation,y=e.projectionRotation,g=e.colors,m=e.domain,O=e.unknownColor,x=e.borderWidth,j=e.borderColor,w=e.enableGraticule,_=e.graticuleLineWidth,k=e.graticuleLineColor,S=e.layers,M=e.legends,C=e.isInteractive,E=e.onClick,T=e.onMouseMove,P=e.tooltip,A=Object(r.useRef)(null),R=Object(i.x)(),L=Object(i.t)(t,n,a),I=L.margin,N=L.outerWidth,D=L.outerHeight,z=An({width:t,height:n,projectionType:p,projectionScale:b,projectionTranslation:v,projectionRotation:y,fillColor:function(){},borderWidth:x,borderColor:j}),W=z.projection,F=z.graticule,U=z.path,q=z.getBorderWidth,V=z.getBorderColor,B=Rn({features:c,data:l,match:s,label:f,value:d,valueFormat:h,colors:g,unknownColor:O,domain:m}),H=B.getFillColor,Y=B.boundFeatures,G=B.legendData;Object(r.useEffect)((function(){if(A){A.current.width=N*u,A.current.height=D*u;var e=A.current.getContext("2d");e.scale(u,u),e.fillStyle=R.background,e.fillRect(0,0,N,D),e.translate(I.left,I.top),U.context(e),S.forEach((function(r){"graticule"===r?!0===w&&(e.lineWidth=_,e.strokeStyle=k,e.beginPath(),U(F()),e.stroke()):"features"===r?Y.forEach((function(t){e.beginPath(),U(t),e.fillStyle=H(t),e.fill();var n=q(t);n>0&&(e.strokeStyle=V(t),e.lineWidth=n,e.stroke())})):"legends"===r&&M.forEach((function(r){Object(Sn.b)(e,Tn(Tn({},r),{},{data:G,containerWidth:t,containerHeight:n,theme:R}))}))}))}}),[A,N,D,I,u,R,U,F,H,q,V,Y,M,S]);var $=Object(o.f)(),X=$.showTooltipFromEvent,Q=$.hideTooltip,K=Object(r.useCallback)((function(e){if(C&&P){var t=tr(e,A.current,Y,W);t?X(Object(Mn.jsx)(P,{feature:t}),e):Q(),T&&T(t||null,e)}}),[X,Q,C,P,A,Y,W]),Z=Object(r.useCallback)((function(){return C&&Q()}),[C,Q]),J=Object(r.useCallback)((function(e){if(C&&E){var t=tr(e,A.current,Y,W);t&&E(t,e)}}),[C,A,Y,W,E]);return Object(Mn.jsx)("canvas",{ref:A,width:N*u,height:D*u,style:{width:N,height:D,cursor:C?"auto":"normal"},onMouseMove:K,onMouseLeave:Z,onClick:J})}));nr.displayName="ChoroplethCanvas",nr.defaultProps=Bn;Object(i.z)(nr)},function(e,t,n){"use strict";n.d(t,"animated",(function(){return C}));var r=n(22),i=n(10),o=n(14),a=n(19),u=n(20),c=n(26);n.o(c,"useSpring")&&n.d(t,"useSpring",(function(){return c.useSpring}));var l=n(39),s=n(1),f=n(12);function d(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var h=["style","children","scrollTop","scrollLeft"],p=/^--/;function b(e,t){return null==t||"boolean"===typeof t||""===t?"":"number"!==typeof t||0===t||p.test(e)||y.hasOwnProperty(e)&&y[e]?(""+t).trim():t+"px"}var v={};var y={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},g=["Webkit","Ms","Moz","O"];y=Object.keys(y).reduce((function(e,t){return g.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),y);var m=["x","y","z"],O=/^(matrix|translate|scale|rotate|skew)/,x=/^(translate)/,j=/^(rotate|skew)/,w=function(e,t){return s.s.num(e)&&0!==e?e+t:e},_=function e(t,n){return s.s.arr(t)?t.every((function(t){return e(t,n)})):s.s.num(t)?t===n:parseFloat(t)===n},k=function(e){Object(a.a)(n,e);var t=Object(u.a)(n);function n(e){Object(o.a)(this,n);var r=e.x,a=e.y,u=e.z,c=d(e,m),l=[],f=[];return(r||a||u)&&(l.push([r||0,a||0,u||0]),f.push((function(e){return["translate3d(".concat(e.map((function(e){return w(e,"px")})).join(","),")"),_(e,0)]}))),Object(s.l)(c,(function(e,t){if("transform"===t)l.push([e||""]),f.push((function(e){return[e,""===e]}));else if(O.test(t)){if(delete c[t],s.s.und(e))return;var n=x.test(t)?"px":j.test(t)?"deg":"";l.push(Object(s.y)(e)),f.push("rotate3d"===t?function(e){var t=Object(i.a)(e,4),r=t[0],o=t[1],a=t[2],u=t[3];return["rotate3d(".concat(r,",").concat(o,",").concat(a,",").concat(w(u,n),")"),_(u,0)]}:function(e){return["".concat(t,"(").concat(e.map((function(e){return w(e,n)})).join(","),")"),_(e,t.startsWith("scale")?1:0)]})}})),l.length&&(c.transform=new S(l,f)),t.call(this,c)}return n}(f.a),S=function(e){Object(a.a)(n,e);var t=Object(u.a)(n);function n(e,r){var i;return Object(o.a)(this,n),(i=t.call(this))._value=null,i.inputs=e,i.transforms=r,i}return Object(r.a)(n,[{key:"get",value:function(){return this._value||(this._value=this._get())}},{key:"_get",value:function(){var e=this,t="",n=!0;return Object(s.k)(this.inputs,(function(r,o){var a=Object(s.q)(r[0]),u=e.transforms[o](s.s.arr(a)?a:r.map(s.q)),c=Object(i.a)(u,2),l=c[0],f=c[1];t+=" "+l,n=n&&f})),n?"none":t}},{key:"observerAdded",value:function(e){var t=this;1==e&&Object(s.k)(this.inputs,(function(e){return Object(s.k)(e,(function(e){return Object(s.r)(e)&&Object(s.c)(e,t)}))}))}},{key:"observerRemoved",value:function(e){var t=this;0==e&&Object(s.k)(this.inputs,(function(e){return Object(s.k)(e,(function(e){return Object(s.r)(e)&&Object(s.x)(e,t)}))}))}},{key:"eventObserved",value:function(e){"change"==e.type&&(this._value=null),Object(s.d)(this,e)}}]),n}(s.a),M=["scrollTop","scrollLeft"];c.Globals.assign({batchedUpdates:l.unstable_batchedUpdates,createStringInterpolator:s.g,colors:s.e});var C=Object(f.d)(["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","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","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;var n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t,i=r.style,o=r.children,a=r.scrollTop,u=r.scrollLeft,c=d(r,h),l=Object.values(c),s=Object.keys(c).map((function(t){return n||e.hasAttribute(t)?t:v[t]||(v[t]=t.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})))}));for(var f in void 0!==o&&(e.textContent=o),i)if(i.hasOwnProperty(f)){var y=b(f,i[f]);p.test(f)?e.style.setProperty(f,y):e.style[f]=y}s.forEach((function(t,n){e.setAttribute(t,l[n])})),void 0!==a&&(e.scrollTop=a),void 0!==u&&(e.scrollLeft=u)},createAnimatedStyle:function(e){return new k(e)},getComponentProps:function(e){return d(e,M)}}).animated},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(r.a);t.a=Object(i.a)(o)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(5),i=n(8),o=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(r.a);t.a=Object(i.a)(o)},,,,function(e,t,n){var r=n(119),i=n(265),o=n(266),a=n(267),u=n(268),c=n(269);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=u,l.prototype.set=c,e.exports=l},function(e,t,n){var r=n(260),i=n(261),o=n(262),a=n(263),u=n(264);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&et?1:e>=t?0:NaN}},function(e,t,n){"use strict";function r(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return ap&&(p=l),g=d*d*y,(b=Math.max(p/g,g/h))>v){d-=l;break}v=b}m.push(c={value:d,dice:s1?t:1)},n}(o)},function(e,t,n){"use strict";n.d(t,"a",(function(){return kn}));var r=n(3),i=n(4),o=n(236),a=n(237),u=n(238),c=n(239),l=n(240),s=n(241),f=n(242),d=n(243),h=n(181),p=n(88),b=n(89),v=n(90),y=n(91),g=n(92),m=n(93),O=n(94),x=n(95),j=n(96),w=n(97),_=n(98),k=n(99),S=n(100),M=n(101),C=n(102),E=n(103),T=n(104),P=n(105),A=n(106),R=n(107),L=n(108),I=n(109),N=n(110),D=n(111),z=n(112),W=n(113),F=n(114),U=n(392),q=n(56),V=n(393),B=n(75),H=n(244),Y=n(245),G=n(30),$=n.n(G),X=n(15),Q=n.n(X),K=n(35),Z=(n(34),n(44)),J=n(2),ee=n.n(J);function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function re(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}(e.modifiers);try{var u=function(){var e=be(i.value,2),t=e[0],n=e[1];if("brighter"===t)o.push((function(e){return e.brighter(n)}));else if("darker"===t)o.push((function(e){return e.darker(n)}));else{if("opacity"!==t)throw new Error("Invalid color modifier: '".concat(t,"', must be one of: 'brighter', 'darker', 'opacity'"));o.push((function(e){return e.opacity=n,e}))}};for(a.s();!(i=a.n()).done;)u()}catch(c){a.e(c)}finally{a.f()}return 0===o.length?r:function(e){return o.reduce((function(e,t){return t(e)}),Object(K.f)(r(e))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},ye=function(e,t){return Object(r.useMemo)((function(){return ve(e,t)}),[e,t])},ge=(ee.a.oneOfType([ee.a.func,ee.a.arrayOf(ee.a.string),ee.a.shape({scheme:ee.a.oneOf(se).isRequired,size:ee.a.number}),ee.a.shape({datum:ee.a.string.isRequired}),ee.a.string]),ee.a.oneOfType([ee.a.func,ee.a.string]),ee.a.oneOfType([ee.a.string,ee.a.func,ee.a.shape({theme:ee.a.string.isRequired}),ee.a.shape({from:ee.a.string.isRequired,modifiers:ee.a.arrayOf(ee.a.array)})]),n(23)),me=n(0),Oe=Math.PI,xe=2*Oe,je=1e-6,we=xe-je;function _e(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ke(){return new _e}_e.prototype=ke.prototype={constructor:_e,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,u=n-e,c=r-t,l=o-e,s=a-t,f=l*l+s*s;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>je)if(Math.abs(s*u-c*l)>je&&i){var d=n-o,h=r-a,p=u*u+c*c,b=d*d+h*h,v=Math.sqrt(p),y=Math.sqrt(f),g=i*Math.tan((Oe-Math.acos((p+f-b)/(2*v*y)))/2),m=g/y,O=g/v;Math.abs(m-1)>je&&(this._+="L"+(e+m*l)+","+(t+m*s)),this._+="A"+i+","+i+",0,0,"+ +(s*d>l*h)+","+(this._x1=e+O*u)+","+(this._y1=t+O*c)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t,o=!!o;var a=(n=+n)*Math.cos(r),u=n*Math.sin(r),c=e+a,l=t+u,s=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>je||Math.abs(this._y1-l)>je)&&(this._+="L"+c+","+l),n&&(f<0&&(f=f%xe+xe),f>we?this._+="A"+n+","+n+",0,1,"+s+","+(e-a)+","+(t-u)+"A"+n+","+n+",0,1,"+s+","+(this._x1=c)+","+(this._y1=l):f>je&&(this._+="A"+n+","+n+",0,"+ +(f>=Oe)+","+s+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Se=ke,Me=n(17),Ce=n(175);function Ee(e){return e[0]}function Te(e){return e[1]}var Pe=n(6);function Ae(e){return e.innerRadius}function Re(e){return e.outerRadius}function Le(e){return e.startAngle}function Ie(e){return e.endAngle}function Ne(e){return e&&e.padAngle}function De(e,t,n,r,i,o,a,u){var c=n-e,l=r-t,s=a-i,f=u-o,d=f*c-s*l;if(!(d*dT*T+P*P&&(_=S,k=M),{cx:_,cy:k,x01:-s,y01:-f,x11:_*(i/x-1),y11:k*(i/x-1)}}var We=function(){var e=Ae,t=Re,n=Object(Me.a)(0),r=null,i=Le,o=Ie,a=Ne,u=null;function c(){var c,l,s=+e.apply(this,arguments),f=+t.apply(this,arguments),d=i.apply(this,arguments)-Pe.g,h=o.apply(this,arguments)-Pe.g,p=Object(Pe.a)(h-d),b=h>d;if(u||(u=c=Se()),fPe.f)if(p>Pe.m-Pe.f)u.moveTo(f*Object(Pe.e)(d),f*Object(Pe.k)(d)),u.arc(0,0,f,d,h,!b),s>Pe.f&&(u.moveTo(s*Object(Pe.e)(h),s*Object(Pe.k)(h)),u.arc(0,0,s,h,d,b));else{var v,y,g=d,m=h,O=d,x=h,j=p,w=p,_=a.apply(this,arguments)/2,k=_>Pe.f&&(r?+r.apply(this,arguments):Object(Pe.l)(s*s+f*f)),S=Object(Pe.i)(Object(Pe.a)(f-s)/2,+n.apply(this,arguments)),M=S,C=S;if(k>Pe.f){var E=Object(Pe.c)(k/s*Object(Pe.k)(_)),T=Object(Pe.c)(k/f*Object(Pe.k)(_));(j-=2*E)>Pe.f?(O+=E*=b?1:-1,x-=E):(j=0,O=x=(d+h)/2),(w-=2*T)>Pe.f?(g+=T*=b?1:-1,m-=T):(w=0,g=m=(d+h)/2)}var P=f*Object(Pe.e)(g),A=f*Object(Pe.k)(g),R=s*Object(Pe.e)(x),L=s*Object(Pe.k)(x);if(S>Pe.f){var I,N=f*Object(Pe.e)(m),D=f*Object(Pe.k)(m),z=s*Object(Pe.e)(O),W=s*Object(Pe.k)(O);if(pPe.f?C>Pe.f?(v=ze(z,W,P,A,f,C,b),y=ze(N,D,R,L,f,C,b),u.moveTo(v.cx+v.x01,v.cy+v.y01),CPe.f&&j>Pe.f?M>Pe.f?(v=ze(R,L,N,D,s,-M,b),y=ze(P,A,z,W,s,-M,b),u.lineTo(v.cx+v.x01,v.cy+v.y01),M=t}))},He={startAngle:{enter:function(e){return qe(qe({},e),{},{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return qe(qe({},e),{},{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return qe(qe({},e),{},{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return qe(qe({},e),{},{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return qe(qe({},e),{},{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return qe(qe({},e),{},{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return qe(qe({},e),{},{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return qe(qe({},e),{},{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return qe(qe({},e),{},{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return qe(qe({},e),{},{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return qe(qe({},e),{},{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return qe(qe({},e),{},{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return qe(qe({},e),{},{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return qe(qe({},e),{},{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return qe(qe({},e),{},{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return qe(qe({},e),{},{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},Ye=function(e,t){return Object(r.useMemo)((function(){var n=He[e];return{enter:function(e){return qe(qe({progress:0},n.enter(e.arc)),t?t.enter(e):{})},update:function(e){return qe(qe({progress:1},n.update(e.arc)),t?t.update(e):{})},leave:function(e){return qe(qe({progress:0},n.leave(e.arc)),t?t.leave(e):{})}}}),[e,t])},Ge=function(e,t){var n=Object(i.n)(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return Object(i.o)(n,r)},$e=function(e){return function(t,n,r,i){return Object(ge.to)([t,n,r,i],(function(t,n,r,i){var o=Ge({startAngle:t,endAngle:n,innerRadius:r,outerRadius:i},e);return"translate(".concat(o.x,",").concat(o.y,")")}))}},Xe={pointerEvents:"none"},Qe=function(e){var t=e.label,n=e.style,r=Object(i.x)();return Object(me.jsx)(ge.animated.g,{transform:n.transform,opacity:n.progress,style:Xe,children:Object(me.jsx)(ge.animated.text,{textAnchor:"middle",dominantBaseline:"central",style:qe(qe({},r.labels.text),{},{fill:n.textColor}),children:t})})},Ke=function(e){var t=e.center,n=e.data,o=e.transitionMode,a=e.label,u=e.radiusOffset,c=e.skipAngle,l=e.textColor,s=e.component,f=void 0===s?Qe:s,d=Object(i.w)(a),h=Object(i.x)(),p=ye(l,h),b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"innerRadius",r=arguments.length>3?arguments[3]:void 0,o=Object(i.v)(),a=o.animate,u=o.config,c=Ye(n,r);return{transition:Object(ge.useTransition)(e,{keys:function(e){return e.id},initial:c.update,from:c.enter,enter:c.update,update:c.update,leave:c.leave,config:u,immediate:!a}),interpolate:$e(t)}}(Object(r.useMemo)((function(){return n.filter((function(e){return Math.abs(Object(i.q)(e.arc.endAngle-e.arc.startAngle))>=c}))}),[n,c]),u,o),v=b.transition,y=b.interpolate,g=f;return Object(me.jsx)("g",{transform:"translate(".concat(t[0],",").concat(t[1],")"),children:v((function(e,t){return Object(r.createElement)(g,{key:t.id,datum:t,label:d(t),style:qe(qe({},e),{},{transform:y(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textColor:p(t)})})}))})},Ze=function(e,t,n,r){var o,a,u=Ve(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),c=Object(i.o)(u,e.outerRadius+t),l=Object(i.o)(u,e.outerRadius+t+n);return u1.5*Math.PI?(o="after",a={x:l.x+r,y:l.y}):(o="before",a={x:l.x-r,y:l.y}),{side:o,points:[c,l,a]}},Je=function(){var e=Ee,t=Te,n=Object(Me.a)(!0),r=null,i=Ce.a,o=null;function a(a){var u,c,l,s=a.length,f=!1;for(null==r&&(o=i(l=Se())),u=0;u<=s;++u)!(u1.5*Math.PI?"start":"end"}({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r})}))},nt=function(e,t,n,r,i,o,a,u){return Object(ge.to)([e,t,n,r,i,o,a,u],(function(e,t,n,r,i,o,a,u){var c=Ze({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},i,o,a),l=c.points,s=c.side,f=l[2];return"before"===s?f.x-=u:f.x+=u,"translate(".concat(f.x,",").concat(f.y,")")}))},rt=function(e){var t=e.data,n=e.offset,o=void 0===n?0:n,a=e.diagonalLength,u=e.straightLength,c=e.skipAngle,l=void 0===c?0:c,s=e.textOffset,f=e.linkColor,d=e.textColor,h=Object(i.v)(),p=h.animate,b=h.config,v=Object(i.x)(),y=ye(f,v),g=ye(d,v),m=function(e,t){return Object(r.useMemo)((function(){return Be(e,t)}),[e,t])}(t,l),O=function(e){var t=e.offset,n=e.diagonalLength,i=e.straightLength,o=e.textOffset,a=e.getLinkColor,u=e.getTextColor;return Object(r.useMemo)((function(){return{enter:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:0,straightLength:0,textOffset:o,linkColor:a(e),textColor:u(e),opacity:0}},update:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:n,straightLength:i,textOffset:o,linkColor:a(e),textColor:u(e),opacity:1}},leave:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:0,straightLength:0,textOffset:o,linkColor:a(e),textColor:u(e),opacity:0}}}}),[n,i,o,a,u])}({offset:o,diagonalLength:a,straightLength:u,textOffset:s,getLinkColor:y,getTextColor:g});return{transition:Object(ge.useTransition)(m,{keys:function(e){return e.id},initial:O.update,from:O.enter,enter:O.update,update:O.update,leave:O.leave,config:b,immediate:!p}),interpolateLink:et,interpolateTextAnchor:tt,interpolateTextPosition:nt}},it=function(e){var t=e.label,n=e.style,r=Object(i.x)();return Object(me.jsxs)(ge.animated.g,{opacity:n.opacity,children:[Object(me.jsx)(ge.animated.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),Object(me.jsx)(ge.animated.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:qe(qe({},r.labels.text),{},{fill:n.textColor}),children:t})]})},ot=function(e){var t=e.center,n=e.data,o=e.label,a=e.skipAngle,u=e.offset,c=e.diagonalLength,l=e.straightLength,s=e.strokeWidth,f=e.textOffset,d=e.textColor,h=e.linkColor,p=e.component,b=void 0===p?it:p,v=Object(i.w)(o),y=rt({data:n,skipAngle:a,offset:u,diagonalLength:c,straightLength:l,textOffset:f,linkColor:h,textColor:d}),g=y.transition,m=y.interpolateLink,O=y.interpolateTextAnchor,x=y.interpolateTextPosition,j=b;return Object(me.jsx)("g",{transform:"translate(".concat(t[0],",").concat(t[1],")"),children:g((function(e,t){return Object(r.createElement)(j,{key:t.id,datum:t,label:v(t),style:qe(qe({},e),{},{thickness:s,path:m(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength),textAnchor:O(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textPosition:x(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength,e.textOffset)})})}))})};var at=function(e){var t=e.datum,n=e.style,i=e.onClick,o=e.onMouseEnter,a=e.onMouseMove,u=e.onMouseLeave,c=Object(r.useCallback)((function(e){return null===i||void 0===i?void 0:i(t,e)}),[i,t]),l=Object(r.useCallback)((function(e){return null===o||void 0===o?void 0:o(t,e)}),[o,t]),s=Object(r.useCallback)((function(e){return null===a||void 0===a?void 0:a(t,e)}),[a,t]),f=Object(r.useCallback)((function(e){return null===u||void 0===u?void 0:u(t,e)}),[u,t]);return Object(me.jsx)(ge.animated.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:i?c:void 0,onMouseEnter:o?l:void 0,onMouseMove:a?s:void 0,onMouseLeave:u?f:void 0})},ut=function(e,t,n,r,i){return Object(ge.to)([e,t,n,r],(function(e,t,n,r){return i({startAngle:e,endAngle:t,innerRadius:Math.max(0,n),outerRadius:Math.max(0,r)})}))},ct=function(e){var t=e.center,n=e.data,o=e.arcGenerator,a=e.borderWidth,u=e.borderColor,c=e.onClick,l=e.onMouseEnter,s=e.onMouseMove,f=e.onMouseLeave,d=e.transitionMode,h=e.component,p=void 0===h?at:h,b=Object(i.x)(),v=ye(u,b),y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"innerRadius",n=arguments.length>2?arguments[2]:void 0,r=Object(i.v)(),o=r.animate,a=r.config,u=Ye(t,n);return{transition:Object(ge.useTransition)(e,{keys:function(e){return e.id},initial:u.update,from:u.enter,enter:u.update,update:u.update,leave:u.leave,config:a,immediate:!o}),interpolate:ut}}(n,d,{enter:function(e){return{opacity:0,color:e.color,borderColor:v(e)}},update:function(e){return{opacity:1,color:e.color,borderColor:v(e)}},leave:function(e){return{opacity:0,color:e.color,borderColor:v(e)}}}),g=y.transition,m=y.interpolate,O=p;return Object(me.jsx)("g",{transform:"translate(".concat(t[0],",").concat(t[1],")"),children:g((function(e,t){return Object(r.createElement)(O,{key:t.id,datum:t,style:qe(qe({},e),{},{borderWidth:a,path:m(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,o)}),onClick:c,onMouseEnter:l,onMouseMove:s,onMouseLeave:f})}))})};function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.cornerRadius,n=void 0===t?0:t,i=e.padAngle,o=void 0===i?0:i;return Object(r.useMemo)((function(){return We().innerRadius((function(e){return e.innerRadius})).outerRadius((function(e){return e.outerRadius})).cornerRadius(n).padAngle(o)}),[n,o])};function pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vt(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne?1:t>=e?0:NaN}),Ct=function(e){return e};function Et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;t11))throw new Error("Invalid size '".concat(e.size,"' for diverging color scheme '").concat(e.scheme,"', must be between 3~11"));var c=Object(Z.a)(Ft[e.scheme][e.size||11]),l=function(e){return c(r(e))};return l.scale=c,l}if(function(e){return zt.includes(e)}(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>9))throw new Error("Invalid size '".concat(e.size,"' for sequential color scheme '").concat(e.scheme,"', must be between 3~9"));var s=Object(Z.a)(Ft[e.scheme][e.size||9]),f=function(e){return s(r(e))};return f.scale=s,f}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},Ht=(ee.a.oneOfType([ee.a.func,ee.a.arrayOf(ee.a.string),ee.a.shape({scheme:ee.a.oneOf(Ut).isRequired,size:ee.a.number}),ee.a.shape({datum:ee.a.string.isRequired}),ee.a.string]),ee.a.oneOfType([ee.a.func,ee.a.string]),ee.a.oneOfType([ee.a.string,ee.a.func,ee.a.shape({theme:ee.a.string.isRequired}),ee.a.shape({from:ee.a.string.isRequired,modifiers:ee.a.arrayOf(ee.a.array)})]),n(87));function Yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $t(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&h.height>0,g=Math.round(n[0]),m=Math.round(n[1]);y&&("top"===o?(g-=h.width/2,m-=h.height+14):"right"===o?(g+=14,m-=h.height/2):"bottom"===o?(g-=h.width/2,m+=14):"left"===o?(g-=h.width+14,m-=h.height/2):"center"===o&&(g-=h.width/2,m-=h.height/2),b={transform:Zt(g,m)},p.current||(v=!0),p.current=[g,m]);var O=Object(Ht.useSpring)({to:b,config:s,immediate:!l||v}),x=$t($t($t({},Kt),u.tooltip),{},{transform:null!==(t=O.transform)&&void 0!==t?t:Zt(g,m)});return Object(me.jsx)(Ht.animated.div,{ref:d,style:x,children:a})}));Jt.displayName="TooltipWrapper";var en=Object(r.memo)((function(e){var t=e.size,n=void 0===t?12:t,r=e.color,i=e.style,o=void 0===i?{}:i;return Object(me.jsx)("span",{style:$t({display:"block",width:n,height:n,background:r},o)})})),tn=Object(r.memo)((function(e){var t,n=e.id,r=e.value,o=e.format,a=e.enableChip,u=void 0!==a&&a,c=e.color,l=e.renderContent,s=Object(i.x)(),f=Object(i.y)(o);if("function"===typeof l)t=l();else{var d=r;void 0!==f&&void 0!==d&&(d=f(d)),t=Object(me.jsxs)("div",{style:s.tooltip.basic,children:[u&&Object(me.jsx)(en,{color:c,style:s.tooltip.chip}),void 0!==d?Object(me.jsxs)("span",{children:[n,": ",Object(me.jsx)("strong",{children:"".concat(d)})]}):n]})}return Object(me.jsx)("div",{style:s.tooltip.container,children:t})})),nn={width:"100%",borderCollapse:"collapse"};Object(r.memo)((function(e){var t,n=e.title,r=e.rows,o=void 0===r?[]:r,a=e.renderContent,u=Object(i.x)();return o.length?(t="function"===typeof a?a():Object(me.jsxs)("div",{children:[n&&n,Object(me.jsx)("table",{style:$t($t({},nn),u.tooltip.table),children:Object(me.jsx)("tbody",{children:o.map((function(e,t){return Object(me.jsx)("tr",{children:e.map((function(e,t){return Object(me.jsx)("td",{style:u.tooltip.tableCell,children:e},t)}))},t)}))})})]}),Object(me.jsx)("div",{style:u.tooltip.container,children:t})):null})).displayName="TableTooltip";var rn=Object(r.memo)((function(e){var t=e.x0,n=e.x1,o=e.y0,a=e.y1,u=Object(i.x)(),c=Object(i.v)(),l=c.animate,s=c.config,f=Object(r.useMemo)((function(){return $t($t({},u.crosshair.line),{},{pointerEvents:"none"})}),[u.crosshair.line]),d=Object(Ht.useSpring)({x1:t,x2:n,y1:o,y2:a,config:s,immediate:!l});return Object(me.jsx)(Ht.animated.line,$t($t({},d),{},{fill:"none",style:f}))}));rn.displayName="CrosshairLine",Object(r.memo)((function(e){var t,n,r=e.width,i=e.height,o=e.type,a=e.x,u=e.y;return"cross"===o?(t={x0:a,x1:a,y0:0,y1:i},n={x0:0,x1:r,y0:u,y1:u}):"top-left"===o?(t={x0:a,x1:a,y0:0,y1:u},n={x0:0,x1:a,y0:u,y1:u}):"top"===o?t={x0:a,x1:a,y0:0,y1:u}:"top-right"===o?(t={x0:a,x1:a,y0:0,y1:u},n={x0:a,x1:r,y0:u,y1:u}):"right"===o?n={x0:a,x1:r,y0:u,y1:u}:"bottom-right"===o?(t={x0:a,x1:a,y0:u,y1:i},n={x0:a,x1:r,y0:u,y1:u}):"bottom"===o?t={x0:a,x1:a,y0:u,y1:i}:"bottom-left"===o?(t={x0:a,x1:a,y0:u,y1:i},n={x0:0,x1:a,y0:u,y1:u}):"left"===o?n={x0:0,x1:a,y0:u,y1:u}:"x"===o?t={x0:a,x1:a,y0:0,y1:i}:"y"===o&&(n={x0:0,x1:r,y0:u,y1:u}),Object(me.jsxs)(me.Fragment,{children:[t&&Object(me.jsx)(rn,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&Object(me.jsx)(rn,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})})).displayName="Crosshair";var on=Object(r.createContext)({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),an={isVisible:!1,position:[null,null],content:null,anchor:null},un=(Object(r.createContext)(an),function(){var e=Object(r.useContext)(on);if(void 0===e)throw new Error("useTooltip must be used within a TooltipProvider");return e});function cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sn(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var dn=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,o=e.toggleSerie;return Object(me.jsx)(me.Fragment,{children:r.map((function(e,r){var a;return Object(me.jsx)(St,sn(sn({},e),{},{containerWidth:t,containerHeight:n,data:null!==(a=e.data)&&void 0!==a?a:i,toggleSerie:e.toggleSerie?o:void 0}),r)}))})};function hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(h+=f);for(null!=t?p.sort((function(e,n){return t(b[e],b[n])})):null!=n&&p.sort((function(e,t){return n(a[e],a[t])})),u=0,l=h?(y-d*m)/h:0;u0?f*l:0)+m,b[c]={data:a[c],index:u,value:f,startAngle:v,endAngle:s,padAngle:g};return b}return a.value=function(t){return arguments.length?(e="function"===typeof t?t:Object(Me.a)(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"===typeof e?e:Object(Me.a)(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"===typeof e?e:Object(Me.a)(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"===typeof e?e:Object(Me.a)(+e),a):o},a}().value((function(e){return e.value})).startAngle(Object(i.g)(n)).endAngle(Object(i.g)(o)).padAngle(Object(i.g)(c));return l||e.sortValues(null),e}),[n,o,c,l]);return Object(r.useMemo)((function(){var e=t.filter((function(e){return!h.includes(e.id)}));return{dataWithArc:p(e).map((function(e){var t=Math.abs(e.endAngle-e.startAngle);return sn(sn({},e.data),{},{arc:{index:e.index,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:s===e.data.id?a-f:a,outerRadius:s===e.data.id?u+d:u,thickness:u-a,padAngle:e.padAngle,angle:t,angleDeg:Object(i.q)(t)}})})),legendData:t.map((function(e){return sn(sn({},e),{},{hidden:h.includes(e.id)})}))}}),[p,t,h,s,a,f,u,d])},xn=function(e){var t=e.data,n=e.width,o=e.height,a=e.innerRadius,u=void 0===a?gn.innerRadius:a,c=e.startAngle,l=void 0===c?gn.startAngle:c,s=e.endAngle,f=void 0===s?gn.endAngle:s,d=e.padAngle,h=void 0===d?gn.padAngle:d,p=e.sortByValue,b=void 0===p?gn.sortByValue:p,v=e.cornerRadius,y=void 0===v?gn.cornerRadius:v,g=e.fit,m=void 0===g?gn.fit:g,O=e.activeInnerRadiusOffset,x=void 0===O?gn.activeInnerRadiusOffset:O,j=e.activeOuterRadiusOffset,w=void 0===j?gn.activeOuterRadiusOffset:j,_=vn(Object(r.useState)(null),2),k=_[0],S=_[1],M=vn(Object(r.useState)([]),2),C=M[0],E=M[1],T=Object(r.useMemo)((function(){var e,t=Math.min(n,o)/2,r=t*Math.min(u,1),a=n/2,c=o/2;if(m){var s=function(e,t,n,r,o){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],u=[],c=Object(i.o)(Object(i.g)(r),n);u.push([c.x,c.y]);var l=Object(i.o)(Object(i.g)(o),n);u.push([l.x,l.y]);for(var s=Math.round(Math.min(r,o));s<=Math.round(Math.max(r,o));s++)if(s%90===0){var f=Object(i.o)(Object(i.g)(s),n);u.push([f.x,f.y])}u=u.map((function(n){var r=dt(n,2),i=r[0],o=r[1];return[e+i,t+o]})),a&&u.push([e,t]);var d=u.map((function(e){return dt(e,1)[0]})),h=u.map((function(e){return dt(e,2)[1]})),p=Math.min.apply(Math,ft(d)),b=Math.max.apply(Math,ft(d)),v=Math.min.apply(Math,ft(h)),y=Math.max.apply(Math,ft(h));return{points:u,x:p,y:v,width:b-p,height:y-v}}(a,c,t,l-90,f-90),d=s.points,h=fn(s,["points"]),p=Math.min(n/h.width,o/h.height),b={width:h.width*p,height:h.height*p};b.x=(n-b.width)/2,b.y=(o-b.height)/2,a=(a-h.x)/h.width*h.width*p+b.x,c=(c-h.y)/h.height*h.height*p+b.y,e={box:h,ratio:p,points:d},t*=p,r*=p}return{centerX:a,centerY:c,radius:t,innerRadius:r,debug:e}}),[n,o,u,l,f,m,y]),P=On({data:t,startAngle:l,endAngle:f,innerRadius:T.innerRadius,outerRadius:T.radius,padAngle:h,sortByValue:b,activeId:k,activeInnerRadiusOffset:x,activeOuterRadiusOffset:w,hiddenIds:C}),A=Object(r.useCallback)((function(e){E((function(t){return t.indexOf(e)>-1?t.filter((function(t){return t!==e})):[].concat(bn(t),[e])}))}),[]);return sn(sn({arcGenerator:ht({cornerRadius:y,padAngle:Object(i.g)(h)}),setActiveId:S,toggleSerie:A},P),T)},jn=function(e){var t=e.center,n=e.data,i=e.arcGenerator,o=e.borderWidth,a=e.borderColor,u=e.isInteractive,c=e.onClick,l=e.onMouseEnter,s=e.onMouseMove,f=e.onMouseLeave,d=e.setActiveId,h=e.tooltip,p=e.transitionMode,b=un(),v=b.showTooltipFromEvent,y=b.hideTooltip,g=Object(r.useMemo)((function(){if(u)return function(e,t){null===c||void 0===c||c(e,t)}}),[u,c]),m=Object(r.useMemo)((function(){if(u)return function(e,t){v(Object(r.createElement)(h,{datum:e}),t),d(e.id),null===l||void 0===l||l(e,t)}}),[u,v,d,l]),O=Object(r.useMemo)((function(){if(u)return function(e,t){v(Object(r.createElement)(h,{datum:e}),t),null===s||void 0===s||s(e,t)}}),[u,v,s]),x=Object(r.useMemo)((function(){if(u)return function(e,t){y(),d(null),null===f||void 0===f||f(e,t)}}),[u,y,d,f]);return Object(me.jsx)(ct,{center:t,data:n,arcGenerator:i,borderWidth:o,borderColor:a,transitionMode:p,onClick:g,onMouseEnter:m,onMouseMove:O,onMouseLeave:x})},wn=function(e){var t=e.data,n=e.id,o=void 0===n?gn.id:n,a=e.value,u=void 0===a?gn.value:a,c=e.valueFormat,l=e.sortByValue,s=void 0===l?gn.sortByValue:l,f=e.layers,d=void 0===f?gn.layers:f,h=e.startAngle,p=void 0===h?gn.startAngle:h,b=e.endAngle,v=void 0===b?gn.endAngle:b,y=e.padAngle,g=void 0===y?gn.padAngle:y,m=e.fit,O=void 0===m?gn.fit:m,x=e.innerRadius,j=void 0===x?gn.innerRadius:x,w=e.cornerRadius,_=void 0===w?gn.cornerRadius:w,k=e.activeInnerRadiusOffset,S=void 0===k?gn.activeInnerRadiusOffset:k,M=e.activeOuterRadiusOffset,C=void 0===M?gn.activeOuterRadiusOffset:M,E=e.width,T=e.height,P=e.margin,A=e.colors,R=void 0===A?gn.colors:A,L=e.borderWidth,I=void 0===L?gn.borderWidth:L,N=e.borderColor,D=void 0===N?gn.borderColor:N,z=e.enableArcLabels,W=void 0===z?gn.enableArcLabels:z,F=e.arcLabel,U=void 0===F?gn.arcLabel:F,q=e.arcLabelsSkipAngle,V=void 0===q?gn.arcLabelsSkipAngle:q,B=e.arcLabelsTextColor,H=void 0===B?gn.arcLabelsTextColor:B,Y=e.arcLabelsRadiusOffset,G=void 0===Y?gn.arcLabelsRadiusOffset:Y,$=e.arcLabelsComponent,X=e.enableArcLinkLabels,Q=void 0===X?gn.enableArcLinkLabels:X,K=e.arcLinkLabel,Z=void 0===K?gn.arcLinkLabel:K,J=e.arcLinkLabelsSkipAngle,ee=void 0===J?gn.arcLinkLabelsSkipAngle:J,te=e.arcLinkLabelsOffset,ne=void 0===te?gn.arcLinkLabelsOffset:te,re=e.arcLinkLabelsDiagonalLength,ie=void 0===re?gn.arcLinkLabelsDiagonalLength:re,oe=e.arcLinkLabelsStraightLength,ae=void 0===oe?gn.arcLinkLabelsStraightLength:oe,ue=e.arcLinkLabelsThickness,ce=void 0===ue?gn.arcLinkLabelsThickness:ue,le=e.arcLinkLabelsTextOffset,se=void 0===le?gn.arcLinkLabelsTextOffset:le,fe=e.arcLinkLabelsTextColor,de=void 0===fe?gn.arcLinkLabelsTextColor:fe,he=e.arcLinkLabelsColor,pe=void 0===he?gn.arcLinkLabelsColor:he,be=e.arcLinkLabelComponent,ve=e.defs,ye=void 0===ve?gn.defs:ve,ge=e.fill,Oe=void 0===ge?gn.fill:ge,xe=e.isInteractive,je=void 0===xe?gn.isInteractive:xe,we=e.onClick,_e=e.onMouseEnter,ke=e.onMouseMove,Se=e.onMouseLeave,Me=e.tooltip,Ce=void 0===Me?gn.tooltip:Me,Ee=e.transitionMode,Te=void 0===Ee?gn.transitionMode:Ee,Pe=e.legends,Ae=void 0===Pe?gn.legends:Pe,Re=e.role,Le=void 0===Re?gn.role:Re,Ie=Object(i.t)(E,T,P),Ne=Ie.outerWidth,De=Ie.outerHeight,ze=Ie.margin,We=Ie.innerWidth,Fe=Ie.innerHeight,Ue=mn({data:t,id:o,value:u,valueFormat:c,colors:R}),qe=xn({data:Ue,width:We,height:Fe,fit:O,innerRadius:j,startAngle:p,endAngle:v,padAngle:g,sortByValue:s,cornerRadius:_,activeInnerRadiusOffset:S,activeOuterRadiusOffset:C}),Ve=qe.dataWithArc,Be=qe.legendData,He=qe.arcGenerator,Ye=qe.centerX,Ge=qe.centerY,$e=qe.radius,Xe=qe.innerRadius,Qe=qe.setActiveId,Ze=qe.toggleSerie,Je=Object(i.f)(ye,Ve,Oe),et={arcLinkLabels:null,arcs:null,arcLabels:null,legends:null};Q&&d.includes("arcLinkLabels")&&(et.arcLinkLabels=Object(me.jsx)(ot,{center:[Ye,Ge],data:Ve,label:Z,skipAngle:ee,offset:ne,diagonalLength:ie,straightLength:ae,strokeWidth:ce,textOffset:se,textColor:de,linkColor:pe,component:be},"arcLinkLabels")),d.includes("arcs")&&(et.arcs=Object(me.jsx)(jn,{center:[Ye,Ge],data:Ve,arcGenerator:He,borderWidth:I,borderColor:D,isInteractive:je,onClick:we,onMouseEnter:_e,onMouseMove:ke,onMouseLeave:Se,setActiveId:Qe,tooltip:Ce,transitionMode:Te},"arcs")),W&&d.includes("arcLabels")&&(et.arcLabels=Object(me.jsx)(Ke,{center:[Ye,Ge],data:Ve,label:U,radiusOffset:G,skipAngle:V,textColor:H,transitionMode:Te,component:$},"arcLabels")),Ae.length>0&&d.includes("legends")&&(et.legends=Object(me.jsx)(dn,{width:We,height:Fe,data:Be,legends:Ae,toggleSerie:Ze},"legends"));var tt=function(e){var t=e.dataWithArc,n=e.arcGenerator,i=e.centerX,o=e.centerY,a=e.radius,u=e.innerRadius;return Object(r.useMemo)((function(){return{dataWithArc:t,arcGenerator:n,centerX:i,centerY:o,radius:a,innerRadius:u}}),[t,n,i,o,a,u])}({dataWithArc:Ve,arcGenerator:He,centerX:Ye,centerY:Ge,radius:$e,innerRadius:Xe});return Object(me.jsx)(i.d,{width:Ne,height:De,margin:ze,defs:Je,role:Le,children:d.map((function(e,t){return void 0!==et[e]?et[e]:"function"===typeof e?Object(me.jsx)(r.Fragment,{children:Object(r.createElement)(e,tt)},t):null}))})},_n=function(e){var t=e.isInteractive,n=void 0===t?gn.isInteractive:t,r=e.animate,o=void 0===r?gn.animate:r,a=e.motionConfig,u=void 0===a?gn.motionConfig:a,c=e.theme,l=e.renderWrapper,s=fn(e,["isInteractive","animate","motionConfig","theme","renderWrapper"]);return Object(me.jsx)(i.b,{animate:o,isInteractive:n,motionConfig:u,renderWrapper:l,theme:c,children:Object(me.jsx)(wn,sn({isInteractive:n},s))})},kn=function(e){return Object(me.jsx)(i.c,{children:function(t){var n=t.width,r=t.height;return Object(me.jsx)(_n,sn({width:n,height:r},e))}})}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u}));var r=n(35);function i(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}var o=n(47);t.a=function e(t){var n=Object(o.b)(t);function i(e,t){var i=n((e=Object(r.f)(e)).r,(t=Object(r.f)(t)).r),a=n(e.g,t.g),u=n(e.b,t.b),c=Object(o.a)(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=a(t),e.b=u(t),e.opacity=c(t),e+""}}return i.gamma=e,i}(1);function a(e){return function(t){var n,i,o=t.length,a=new Array(o),u=new Array(o),c=new Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],u=r>0?e[r-1]:2*o-a,c=r-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(293),i=n(67),o=n(125),a=o&&o.isTypedArray,u=a?i(a):r;e.exports=u},function(e,t,n){var r=n(145),i=n(77),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(127),i=n(203),o=n(204);e.exports=function(e,t){return o(i(e,t,r),e+"")}},function(e,t,n){var r=n(24),i=n(128),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(144),i=n(309),o=n(310);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++tc&&(u=t.slice(c,u),s[l]?s[l]+=u:s[++l]=u),(n=n[0])===(a=a[0])?s[l]?s[l]+=a:s[++l]=a:(s[++l]=null,f.push({i:l,x:Object(r.a)(n,a)})),c=o.lastIndex;return c>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=function(t,n){return e(t)-n},n=function(e){return function(t,n){return Object(r.a)(e(t),n)}}(e)),{left:i,center:function(e,n,r,o){null==r&&(r=0),null==o&&(o=e.length);var a=i(e,n,r,o-1);return a>r&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){if(!(t=r.exec(e)))throw new Error("invalid format: "+e);var t;return new o({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(33),i=n(58);function o(e,t){this._context=e,this._k=(1-t)/6}o.prototype={areaStart:r.a,areaEnd:r.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Object(i.c)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.b=function e(t){function n(e){return new o(e,t)}return n.tension=function(t){return e(+t)},n}(0)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(58);function i(e,t){this._context=e,this._k=(1-t)/6}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(r.c)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.b=function e(t){function n(e){return new i(e,t)}return n.tension=function(t){return e(+t)},n}(0)},function(e,t,n){"use strict";function r(e){this._context=e}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},t.a=function(e){return new r(e)}},function(e,t,n){var r=n(129),i=n(331),o=n(346),a=n(69),u=n(68),c=n(349),l=n(216),s=n(219),f=l((function(e,t){var n={};if(null==e)return n;var l=!1;t=r(t,(function(t){return t=a(t,e),l||(l=t.length>1),t})),u(e,s(e),n),l&&(n=i(n,7,c));for(var f=t.length;f--;)o(n,t[f]);return n}));e.exports=f},function(e,t,n){var r=n(45),i=n(32);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},function(e,t,n){var r=n(223);e.exports=function(e){return e&&e.length?r(e):[]}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(31),i=n(72);var o=n(132);function a(e,t,n){return(a=Object(o.a)()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Object(i.a)(o,n.prototype),o}).apply(null,arguments)}function u(e){var t="function"===typeof Map?new Map:void 0;return(u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return a(e,arguments,Object(r.a)(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Object(i.a)(o,e)})(e)}},function(e,t,n){"use strict";var r=n(5);t.a=Object(r.a)("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f")},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(50),i=n(47);function o(e){return function t(n){function o(t,o){var a=e((t=Object(r.a)(t)).h,(o=Object(r.a)(o)).h),u=Object(i.a)(t.s,o.s),c=Object(i.a)(t.l,o.l),l=Object(i.a)(t.opacity,o.opacity);return function(e){return t.h=a(e),t.s=u(e),t.l=c(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,o.gamma=t,o}(1)}o(i.c);var a=o(i.a)},function(e,t,n){"use strict";function r(e,t){this._context=e,this._t=t}function i(e){return new r(e,0)}function o(e){return new r(e,1)}n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}},t.a=function(e){return new r(e,.5)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r,i,o,a,u=n(40),c=n(172),l=n(46),s=function(e,t){var n=Object(l.b)(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},f={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:l.a,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return s(100*e,t)},r:s,s:function(e,t){var n=Object(l.b)(e,t);if(!n)return e+"";var i=n[0],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return a===u?i:a>u?i+new Array(a-u+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+Object(l.b)(e,Math.max(0,t+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},d=function(e){return e},h=Array.prototype.map,p=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];i=function(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?d:(t=h.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,u=t[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=t[a=(a+1)%t.length];return o.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",l=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?d:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(h.call(e.numerals,String)),b=void 0===e.percent?"%":e.percent+"",v=void 0===e.minus?"-":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function g(e){var t=(e=Object(c.a)(e)).fill,n=e.align,u=e.sign,d=e.symbol,h=e.zero,g=e.width,m=e.comma,O=e.precision,x=e.trim,j=e.type;"n"===j?(m=!0,j="g"):f[j]||(void 0===O&&(O=12),x=!0,j="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var w="$"===d?o:"#"===d&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",_="$"===d?a:/[%p]/.test(j)?b:"",k=f[j],S=/[defgprs%]/.test(j);function M(e){var o,a,c,f=w,d=_;if("c"===j)d=k(e)+d,e="";else{var b=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:k(Math.abs(e),O),x&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),b&&0===+e&&"+"!==u&&(b=!1),f=(b?"("===u?u:v:"-"===u||"("===u?"":u)+f,d=("s"===j?p[8+r/3]:"")+d+(b&&"("===u?")":""),S)for(o=-1,a=e.length;++o(c=e.charCodeAt(o))||c>57){d=(46===c?l+e.slice(o+1):e.slice(o))+d,e=e.slice(0,o);break}}m&&!h&&(e=i(e,1/0));var M=f.length+e.length+d.length,C=M>1)+f+e+d+C.slice(M);break;default:e=C+f+e+d}return s(e)}return O=void 0===O?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O)),M.toString=function(){return e+""},M}return{format:g,formatPrefix:function(e,t){var n=g(((e=Object(c.a)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Object(u.a)(t)/3))),i=Math.pow(10,-r),o=p[8+r/3];return function(e){return n(i*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),o=i.format,a=i.formatPrefix},,,function(e,t){},function(e,t){},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(142))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}},function(e,t,n){var r=n(145),i=n(77);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},function(e,t,n){var r=n(57),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},function(e,t,n){var r=n(288)();e.exports=r},function(e,t,n){(function(e){var r=n(37),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,u=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=u?u(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(146)(e))},function(e,t,n){var r=n(147);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(37).Uint8Array;e.exports=r},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++rs))return!1;var d=c.get(e),h=c.get(t);if(d&&h)return d==t&&h==e;var p=-1,b=!0,v=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++p0&&o(s)?n>1?e(s,n-1,o,a,u):r(u,s):a||(u[u.length]=s)}return u}},function(e,t,n){var r=n(159),i=n(148),o=n(160),a=n(213),u=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=u},function(e,t,n){var r=n(211),i=n(218),o=n(78);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(351),i=n(352)(r);e.exports=i},function(e,t,n){var r=n(38);e.exports=function(e){return e===e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(155),i=n(207),o=n(208),a=n(156),u=n(360),c=n(158);e.exports=function(e,t,n){var l=-1,s=i,f=e.length,d=!0,h=[],p=h;if(n)d=!1,s=o;else if(f>=200){var b=t?null:u(e);if(b)return c(b);d=!1,s=a,p=new r}else p=t?[]:h;e:for(;++l1)for(var n=1;n0){for(;d<=h;++d)for(s=1,l=n(d);sc)break;v.push(f)}}else for(;d<=h;++d)for(s=p-1,l=n(d);s>=1;--s)if(!((f=l*s)c)break;v.push(f)}2*v.length1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=u},function(e,t,n){var r=n(367),i=n(67),o=n(125),a=o&&o.isDate,u=a?i(a):r;e.exports=u},,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(10),i=n(397),o=n(52),a=n(18);function u(){var e,t=0,n=1,c=1,l=[.5],s=[0,1];function f(t){return null!=t&&t<=t?s[Object(i.a)(l,t,0,c)]:e}function d(){var e=-1;for(l=new Array(c);++e=c?[l[c-1],n]:[l[r-1],l[r]]},f.unknown=function(t){return arguments.length?(e=t,f):f},f.thresholds=function(){return l.slice()},f.copy=function(){return u().domain([t,n]).range(s).unknown(e)},a.b.apply(Object(o.b)(f),arguments)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u}));var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var a=(t-e)/Math.max(0,n),u=Math.floor(Math.log(a)/Math.LN10),c=a/Math.pow(10,u);return u>=0?(c>=r?10:c>=i?5:c>=o?2:1)*Math.pow(10,u):-Math.pow(10,-u)/(c>=r?10:c>=i?5:c>=o?2:1)}function u(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),u=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),c=a/u;return c>=r?u*=10:c>=i?u*=5:c>=o&&(u*=2),t0)return[e];if((r=t0){var l=Math.round(e/u),s=Math.round(t/u);for(l*ut&&--s,o=new Array(i=s-l+1);++ct&&--d,o=new Array(i=d-f+1);++c