From 81567bd11f171fec60566e5b4c6591daf6158500 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 17 Oct 2021 08:58:35 +0200 Subject: [PATCH] update js dependencies except major versions of history, i18next and recharts --- fittrackee/dist/asset-manifest.json | 26 +- fittrackee/dist/index.html | 2 +- .../dist/static/css/main.98601af9.chunk.css | 2 - .../static/css/main.98601af9.chunk.css.map | 1 - .../dist/static/css/main.b0b9a9d7.chunk.css | 2 + .../static/css/main.b0b9a9d7.chunk.css.map | 1 + fittrackee/dist/static/js/2.08d2122d.chunk.js | 3 + ...SE.txt => 2.08d2122d.chunk.js.LICENSE.txt} | 0 .../dist/static/js/2.08d2122d.chunk.js.map | 1 + fittrackee/dist/static/js/2.ce83ecf7.chunk.js | 3 - .../dist/static/js/2.ce83ecf7.chunk.js.map | 1 - .../dist/static/js/main.18465477.chunk.js | 2 + .../dist/static/js/main.18465477.chunk.js.map | 1 + .../dist/static/js/main.e5cc087c.chunk.js | 2 - .../dist/static/js/main.e5cc087c.chunk.js.map | 1 - .../static/js/runtime-main.14e737bb.js.map | 1 - ...n.14e737bb.js => runtime-main.464ec2ca.js} | 2 +- .../static/js/runtime-main.464ec2ca.js.map | 1 + fittrackee_client/package.json | 14 +- fittrackee_client/yarn.lock | 1941 +++++++++-------- 20 files changed, 1037 insertions(+), 970 deletions(-) delete mode 100644 fittrackee/dist/static/css/main.98601af9.chunk.css delete mode 100644 fittrackee/dist/static/css/main.98601af9.chunk.css.map create mode 100644 fittrackee/dist/static/css/main.b0b9a9d7.chunk.css create mode 100644 fittrackee/dist/static/css/main.b0b9a9d7.chunk.css.map create mode 100644 fittrackee/dist/static/js/2.08d2122d.chunk.js rename fittrackee/dist/static/js/{2.ce83ecf7.chunk.js.LICENSE.txt => 2.08d2122d.chunk.js.LICENSE.txt} (100%) create mode 100644 fittrackee/dist/static/js/2.08d2122d.chunk.js.map delete mode 100644 fittrackee/dist/static/js/2.ce83ecf7.chunk.js delete mode 100644 fittrackee/dist/static/js/2.ce83ecf7.chunk.js.map create mode 100644 fittrackee/dist/static/js/main.18465477.chunk.js create mode 100644 fittrackee/dist/static/js/main.18465477.chunk.js.map delete mode 100644 fittrackee/dist/static/js/main.e5cc087c.chunk.js delete mode 100644 fittrackee/dist/static/js/main.e5cc087c.chunk.js.map delete mode 100644 fittrackee/dist/static/js/runtime-main.14e737bb.js.map rename fittrackee/dist/static/js/{runtime-main.14e737bb.js => runtime-main.464ec2ca.js} (96%) create mode 100644 fittrackee/dist/static/js/runtime-main.464ec2ca.js.map diff --git a/fittrackee/dist/asset-manifest.json b/fittrackee/dist/asset-manifest.json index c4aa2008..fb6c8f05 100644 --- a/fittrackee/dist/asset-manifest.json +++ b/fittrackee/dist/asset-manifest.json @@ -1,24 +1,24 @@ { "files": { - "main.css": "/static/css/main.98601af9.chunk.css", - "main.js": "/static/js/main.e5cc087c.chunk.js", - "main.js.map": "/static/js/main.e5cc087c.chunk.js.map", - "runtime-main.js": "/static/js/runtime-main.14e737bb.js", - "runtime-main.js.map": "/static/js/runtime-main.14e737bb.js.map", - "static/js/2.ce83ecf7.chunk.js": "/static/js/2.ce83ecf7.chunk.js", - "static/js/2.ce83ecf7.chunk.js.map": "/static/js/2.ce83ecf7.chunk.js.map", + "main.css": "/static/css/main.b0b9a9d7.chunk.css", + "main.js": "/static/js/main.18465477.chunk.js", + "main.js.map": "/static/js/main.18465477.chunk.js.map", + "runtime-main.js": "/static/js/runtime-main.464ec2ca.js", + "runtime-main.js.map": "/static/js/runtime-main.464ec2ca.js.map", + "static/js/2.08d2122d.chunk.js": "/static/js/2.08d2122d.chunk.js", + "static/js/2.08d2122d.chunk.js.map": "/static/js/2.08d2122d.chunk.js.map", "index.html": "/index.html", - "static/css/main.98601af9.chunk.css.map": "/static/css/main.98601af9.chunk.css.map", - "static/js/2.ce83ecf7.chunk.js.LICENSE.txt": "/static/js/2.ce83ecf7.chunk.js.LICENSE.txt", + "static/css/main.b0b9a9d7.chunk.css.map": "/static/css/main.b0b9a9d7.chunk.css.map", + "static/js/2.08d2122d.chunk.js.LICENSE.txt": "/static/js/2.08d2122d.chunk.js.LICENSE.txt", "static/media/en.9e6dbfb0.svg": "/static/media/en.9e6dbfb0.svg", "static/media/fr.d0f9280c.svg": "/static/media/fr.d0f9280c.svg", "static/media/mail-send.619079f0.svg": "/static/media/mail-send.619079f0.svg", "static/media/password.afe6a2a5.svg": "/static/media/password.afe6a2a5.svg" }, "entrypoints": [ - "static/js/runtime-main.14e737bb.js", - "static/js/2.ce83ecf7.chunk.js", - "static/css/main.98601af9.chunk.css", - "static/js/main.e5cc087c.chunk.js" + "static/js/runtime-main.464ec2ca.js", + "static/js/2.08d2122d.chunk.js", + "static/css/main.b0b9a9d7.chunk.css", + "static/js/main.18465477.chunk.js" ] } \ No newline at end of file diff --git a/fittrackee/dist/index.html b/fittrackee/dist/index.html index 96597739..1e6a7cc0 100644 --- a/fittrackee/dist/index.html +++ b/fittrackee/dist/index.html @@ -1 +1 @@ -FitTrackee
\ No newline at end of file +FitTrackee
\ No newline at end of file diff --git a/fittrackee/dist/static/css/main.98601af9.chunk.css b/fittrackee/dist/static/css/main.98601af9.chunk.css deleted file mode 100644 index 395541c4..00000000 --- a/fittrackee/dist/static/css/main.98601af9.chunk.css +++ /dev/null @@ -1,2 +0,0 @@ -html{height:100vh}body{background-color:#eaeaea;margin:0;min-height:100vh;padding-bottom:50px;position:relative}.App{padding-bottom:20px;text-align:center}.App-logo{-webkit-animation:App-logo-spin 20s linear infinite;animation:App-logo-spin 20s linear infinite;height:80px}.App-header{background-color:#222;height:150px;padding:20px;color:#fff}.App-title{font-size:1.5em}.App-intro{font-size:large}.App-nav-profile-img{max-width:32px;max-height:32px;border-radius:50%}.App-profile-img-small{max-width:150px;max-height:150px;border-radius:50%}@-webkit-keyframes App-logo-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes App-logo-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}a{color:#40578a}input[type=text],label,textarea{width:100%}.add-workout{margin-top:50px}.add-workout-radio{margin-right:10px}.admin-img{max-width:35px;max-height:35px}.admin-items{list-style-type:square}.admin-message{color:#7c7c7d;font-size:.9em;font-style:italic;margin-left:10px}.app-config-form label{font-weight:700}.btn{margin-right:10px}.card{text-align:left}.chart{font-size:.9em}.chart-workouts{margin-left:60px}.chart-arrows{margin-top:7px}.chart-filters{padding-bottom:10px}.chart-info{font-size:.8em;font-style:italic}.chart-radio{display:-webkit-flex;display:flex;font-size:.9em}.chart-radio input{margin-right:10px}.chart-stats{font-size:.8em}.chart-title{font-size:1.1em;margin-bottom:10px}.col-workout-logo{padding-right:0}.custom-modal{background-color:#fff;border-radius:5px;max-width:500px;margin:20% auto;z-index:1250}.custom-modal-backdrop{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.3);padding:50px;z-index:1240}.custom-fa{margin-right:5px}.custom-fa-small{font-size:.8em;margin-left:-.8em}@media only screen and (max-width:992px){.custom-fa-small{font-size:.6em}}.custom-tooltip{background-color:#fff;border:1px solid #d3d3d3;padding:10px}.custom-tooltip p{margin:5px}.custom-tooltip-label{font-weight:700}.dashboard{height:100%}.dashboard,.history{margin-top:30px}.dropdown-wrapper{width:50px}.dropdown-list{background-color:#f8f9fa;padding:5px 0;position:absolute;text-align:left;z-index:10}.dropdown-item{cursor:default;font-size:.9em}.dropdown-item-selected{font-weight:700}.dropdown-item-selected:after{content:" ✔"}.error-message{margin:10px 0}.fa-as-link{cursor:pointer;color:#40578a}.fa-as-link:hover{color:#0056b3}.fa-question-circle{color:#6c757d;margin-left:3px}.fa-trophy{color:#daa520}.fa-color{color:#405976}.footer{background-color:#f8f9fa;bottom:0;color:#8b8c8c;font-size:.9em;height:50px;line-height:50px;position:absolute;width:100%}.form-disabled .form-group input::-webkit-inner-spin-button,.form-disabled .form-group input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.form-disabled .form-group input[type=number]{-moz-appearance:textfield}.form-disabled .form-group input{border:none;pointer-events:none}.gpx-file{height:inherit}.huge{font-size:25px}.i18n-flag svg{height:100%;opacity:.9;width:15px}.inactive-link{color:#d3d3d3}.leaflet-container{height:400px}.loader{-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite;border:8px solid #f3f3f3;border-top-color:#3498db;border-radius:50%;height:60px;margin-left:41%;width:60px}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.map-attribution{bottom:0;font-size:11px;position:absolute}.map-attribution-text{background-color:hsla(0,0%,100%,.5);padding-left:2px;padding-right:2px}.no-picture{color:#405976}.page-title{font-size:2em;margin:1em;text-align:center}.password-forget{margin:10px;font-size:.9em;font-style:italic}.radioLabel{text-align:center}.record-logo{margin-right:5px;max-width:25px;max-height:25px}.record-table table,.record-table td,.record-table th{font-size:.9em;padding:.1em}.remaining-chars{font-size:.8em;font-style:italic}.sport-img{max-width:35px;max-height:35px}.sport-img-medium{max-width:45px;max-height:45px}.stats-disabled{opacity:.3;pointer-events:none}.svg-icon{fill:#405976;height:70px;margin-left:auto;margin-right:auto;width:70px}.time-frames{-webkit-align-items:center;align-items:center;display:-webkit-inline-flex;display:inline-flex}.time-frame label{float:left;padding:0 5px}.time-frame label input{display:none}.time-frame label span{border:1px solid #a9a9a9;border-radius:9%;color:#7b7b7b;display:block;font-size:.9em;padding:2px 6px;text-align:center}.time-frame input:checked+span{background-color:#a9a9a9;color:#fff}.timezone-custom{font-size:.9em!important;height:inherit!important}.timezone-custom input{border:0!important;padding:5px 1px!important}.timezone-custom ul{background:#fff}.timezone-picker{padding:0}.timezone-picker-textfield{font-size:15px}.unlink{color:#000}.user-bio,.workout-notes{white-space:pre-wrap}.user-filters{font-size:.9em;margin-bottom:10px}.user-label{font-weight:700}.weather-img{max-width:35px;max-height:35px}.weather-img-small{max-width:20px;max-height:20px}.weather-table{margin-bottom:0}.weather-table table,.weather-table td,.weather-table th{font-size:.9em;padding:.1em}.workouts-result{font-size:.85em}.workout-card{margin-bottom:15px}.workout-details{font-size:.95em}.workout-date{font-size:.75em}.workout-filter{font-size:.9em}.col-5,.workout-filter .col-2{padding:0}.workout-label{font-size:.8em;color:#666}.workout-logo{margin:0 5px;max-width:20px;max-height:20px}.workout-map{background-color:#eaeaea;height:225px;width:400px}.workout-no-map{background-color:#eaeaea;color:#666;font-style:italic;height:400px;line-height:400px}.actvity-segments,.workout-notes{font-size:.9em;font-style:italic;margin-top:10px;padding:5px}.workout-page{margin-top:20px}.workout-segments-list{list-style:square}.workout-sport{margin-right:1px;max-width:18px;max-height:18px}.workout-title .map-attribution-list,.workout-title img{display:none}.workout-title img{border:1px solid #d3d3d3;border-radius:4px;box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19)}.workout-title .map-attribution-list,.workout-title img{display:none;margin-left:20px;position:absolute;z-index:1000}.workout-title .map-attribution-list{font-size:11px}.workout-title:hover .map-attribution-list,.workout-title:hover img{display:block}.heading-span,.heading-span-absolute{background:#eee;color:#696969;display:none;font-size:10px;font-weight:700;padding:5px;text-transform:uppercase;top:0;left:0}.heading-span-absolute{position:absolute;display:none}@media(max-width:1024px){table thead{left:-9999px;position:absolute;visibility:hidden}table tr{border-bottom:0;display:-webkit-flex;display:flex;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin-bottom:40px}table td{border:1px solid #d3d3d3;margin:0 -1px -1px 0;padding-top:30px!important;position:relative;text-align:center;width:50%}.record-tr{margin-bottom:0}.record-td{padding-top:0!important}.heading-span,.heading-span-absolute{display:block}}:root{--main-color:#1a8fff;--text-color:#777;--text-color-light:#ccc;--border-color:#eee;--bg-color:#f9f9f9;--neutral-color:#fff}.calendar .col-start{-webkit-justify-content:flex-start;justify-content:flex-start;text-align:left}.calendar .col-center{-webkit-justify-content:center;justify-content:center;text-align:center}.calendar .col-end{-webkit-justify-content:flex-end;justify-content:flex-end;text-align:right}.calendar{display:block;position:relative;width:100%;background:#fff;background:var(--neutral-color);border:1px solid #eee;border:1px solid var(--border-color)}.calendar .header{text-transform:uppercase;font-weight:700;padding:.5em 0;border-bottom:1px solid #eee;border-bottom:1px solid var(--border-color)}.calendar .header .icon{cursor:pointer;transition:.15s ease-out}.calendar .header .icon:hover{-webkit-transform:scale(1.75);transform:scale(1.75);transition:.25s ease-out;color:#1a8fff;color:var(--main-color)}.calendar .header .icon:first-of-type{margin-left:1em}.calendar .header .icon:last-of-type{margin-right:1em}.calendar .days{text-transform:uppercase;font-weight:400;color:#ccc;color:var(--text-color-light);font-size:70%;padding:.75em 0;border-bottom:1px solid #eee;border-bottom:1px solid var(--border-color)}.calendar .body .cell{position:relative;height:3em;border-right:1px solid #eee;border-right:1px solid var(--border-color);background:#fff;background:var(--neutral-color)}.calendar .body .cell:hover{background:#f9f9f9;background:var(--bg-color)}.calendar .body .selected{border-left:10px solid transparent;border-image:linear-gradient(45deg,#1a8fff,#53cbf1 40%)}.calendar .body .row{border-bottom:1px solid #eee;border-bottom:1px solid var(--border-color);margin:0}.calendar .body .row:last-child{border-bottom:none}.calendar .body .cell:last-child{border-right:none}.calendar .body .cell .number{position:absolute;font-size:82.5%;line-height:1;top:.75em;right:.75em;font-weight:700}.calendar .body .disabled{color:#ccc;color:var(--text-color-light);pointer-events:none}.calendar .body .col{-webkit-flex-grow:0;flex-grow:0;-webkit-flex-basis:14.28571%;flex-basis:14.28571%;width:14.28571%}.calendar .body .img-disabled{opacity:.4}.calendar .body .weekend{background:#f5f5f5}.calendar .body .today{background:#eff1f3}.calendar-more,.calendar-workout{display:none}.calendar-more{color:#405976;font-size:.7em;margin-left:.3em}.calendar-display-more{background:#f5f5f5;border-radius:4px;box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);margin-bottom:10px;padding:10px 15px;position:absolute;min-width:52px;z-index:1000}.calendar-workout-more{display:none}@media only screen and (max-width:992px){.calendar-workout-more:nth-child(n+3),.calendar-workout:nth-child(-n+2),.calendar-workout:nth-child(n+3)~.calendar-more{display:inline-block}}@media only screen and (min-width:992px) and (max-width:1200px){.calendar-workout-more:nth-child(n+5),.calendar-workout:nth-child(-n+4),.calendar-workout:nth-child(n+5)~.calendar-more{display:inline-block}}@media only screen and (min-width:1200px){.calendar-workout-more:nth-child(n+7),.calendar-workout:nth-child(-n+6),.calendar-workout:nth-child(n+7)~.calendar-more{display:inline-block}} -/*# sourceMappingURL=main.98601af9.chunk.css.map */ \ No newline at end of file diff --git a/fittrackee/dist/static/css/main.98601af9.chunk.css.map b/fittrackee/dist/static/css/main.98601af9.chunk.css.map deleted file mode 100644 index ddaa4411..00000000 --- a/fittrackee/dist/static/css/main.98601af9.chunk.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://src/components/App.css"],"names":[],"mappings":"AAAA,KACE,YACF,CAEA,KACE,wBAAyB,CACzB,QAAS,CACT,gBAAiB,CACjB,mBAAoB,CACpB,iBACA,CAEF,KACE,mBAAoB,CACpB,iBACF,CAEA,UACE,mDAA4C,CAA5C,2CAA4C,CAC5C,WACF,CAEA,YACE,qBAAsB,CACtB,YAAa,CACb,YAAa,CACb,UACF,CAEA,WACE,eACF,CAEA,WACE,eACF,CAEA,qBACE,cAAe,CACf,eAAgB,CAChB,iBACF,CAEA,uBACE,eAAgB,CAChB,gBAAiB,CACjB,iBACF,CAEA,iCACE,GAAO,8BAAuB,CAAvB,sBAAyB,CAChC,GAAK,+BAAyB,CAAzB,uBAA2B,CAClC,CAHA,yBACE,GAAO,8BAAuB,CAAvB,sBAAyB,CAChC,GAAK,+BAAyB,CAAzB,uBAA2B,CAClC,CAEA,EACE,aACF,CAMA,gCACE,UACF,CAEA,aACE,eACF,CAEA,mBACE,iBACF,CAEA,WACE,cAAe,CACf,eACF,CAEA,aACE,sBACF,CAEA,eACE,aAAc,CACd,cAAgB,CAChB,iBAAkB,CAClB,gBACF,CAEA,uBACE,eACF,CAEA,KACE,iBACF,CAEA,MACE,eACF,CAEA,OACE,cACF,CAEA,gBACE,gBACF,CAEA,cACE,cACF,CAEA,eACE,mBACF,CAEA,YACE,cAAgB,CAChB,iBACF,CAEA,aACE,oBAAa,CAAb,YAAa,CACb,cACF,CAMA,mBACE,iBACF,CAEA,aACE,cACF,CAEA,aACE,eAAgB,CAChB,kBACF,CAEA,kBACE,eACF,CAEA,cACE,qBAAsB,CACtB,iBAAkB,CAClB,eAAgB,CAChB,eAAgB,CAChB,YACF,CAEA,uBACE,cAAe,CACf,KAAM,CACN,QAAS,CACT,MAAO,CACP,OAAQ,CACR,+BAAiC,CACjC,YAAa,CACb,YACF,CAEA,WACE,gBACF,CAEA,iBACE,cAAgB,CAChB,iBACF,CAEA,yCACE,iBACE,cACF,CACF,CAEA,gBACE,qBAAsB,CACtB,wBAA2B,CAC3B,YACF,CAEA,kBACE,UACF,CAEA,sBACE,eACF,CAEA,WACE,WACF,CACA,oBACE,eACF,CAEA,kBACE,UACF,CAEA,eACE,wBAAyB,CACzB,aAAc,CACd,iBAAkB,CAClB,eAAgB,CAChB,UACF,CAEA,eACE,cAAe,CACf,cACF,CAEA,wBACE,eACF,CAEA,8BACE,YACF,CAEA,eACE,aACF,CAEA,YACE,cAAc,CACd,aACF,CAEA,kBACE,aACF,CAEA,oBACE,aAAc,CACd,eACF,CAEA,WACE,aACF,CAEA,UACE,aACF,CAEA,QACE,wBAAyB,CACzB,QAAS,CACT,aAAc,CACd,cAAgB,CAChB,WAAY,CACZ,gBAAiB,CACjB,iBAAkB,CAClB,UACF,CAGA,wHAEE,uBAAwB,CACxB,QACF,CAGA,8CACE,yBACF,CAEA,iCACE,WAAY,CACZ,mBACF,CAGA,UACE,cACF,CAEA,MACE,cACF,CAEA,eACE,WAAY,CACZ,UAAW,CACX,UACF,CAEA,eACE,aACF,CAEA,mBACE,YACF,CAEA,QACE,yCAAkC,CAAlC,iCAAkC,CAElC,wBAA6B,CAA7B,wBAA6B,CAC7B,iBAAkB,CAClB,WAAY,CACZ,eAAgB,CAChB,UACF,CAEA,wBACE,GAAK,8BAAuB,CAAvB,sBAAyB,CAC9B,GAAO,+BAAyB,CAAzB,uBAA2B,CACpC,CAHA,gBACE,GAAK,8BAAuB,CAAvB,sBAAyB,CAC9B,GAAO,+BAAyB,CAAzB,uBAA2B,CACpC,CAEA,iBACE,QAAS,CACT,cAAe,CACf,iBACF,CAEA,sBACE,mCAAyC,CACzC,gBAAiB,CACjB,iBACF,CAEA,YACE,aACF,CAEA,YACE,aAAc,CACd,UAAW,CACX,iBACF,CAEA,iBACE,WAAY,CACZ,cAAe,CACf,iBACF,CAEA,YACE,iBACF,CAEA,aACE,gBAAiB,CACjB,cAAe,CACf,eACF,CAEA,sDACE,cAAgB,CAChB,YACF,CAEA,iBACE,cAAgB,CAChB,iBACF,CAEA,WACE,cAAe,CACf,eACF,CAEA,kBACE,cAAe,CACf,eACF,CAEA,gBACE,UAAY,CACZ,mBACF,CAEA,UACE,YAAa,CACb,WAAY,CACZ,gBAAiB,CACjB,iBAAkB,CAClB,UACF,CAEA,aACE,0BAAmB,CAAnB,kBAAmB,CACnB,2BAAoB,CAApB,mBACF,CAEA,kBACE,UAAW,CACX,aACF,CAEA,wBACE,YACF,CAEA,uBACE,wBAAyB,CACzB,gBAAiB,CACjB,aAAc,CACd,aAAc,CACd,cAAgB,CAChB,eAAgB,CAChB,iBACF,CAEA,+BACE,wBAAyB,CACzB,UACF,CAEA,iBACE,wBAA0B,CAC1B,wBACF,CAEA,uBACE,kBAAoB,CACpB,yBACF,CAEA,oBACE,eACF,CAEA,iBACE,SACF,CAEA,2BACE,cACF,CAEA,QACE,UACF,CAEA,yBACE,oBACF,CAEA,cACE,cAAgB,CAChB,kBACF,CAEA,YACE,eACF,CAEA,aACE,cAAe,CACf,eACF,CAEA,mBACE,cAAe,CACf,eACF,CAEA,eACE,eACF,CAEA,yDACE,cAAgB,CAChB,YACF,CAEA,iBACE,eACF,CAEA,cACE,kBACF,CAEA,iBACE,eACF,CACA,cACE,eACF,CAEA,gBACE,cACF,CAEA,8BACE,SACF,CAEA,eACE,cAAgB,CAChB,UACF,CAEA,cACE,YAAa,CACb,cAAe,CACf,eACF,CAEA,aACE,wBAAyB,CACzB,YAAa,CACb,WACF,CAEA,gBACE,wBAAyB,CACzB,UAAc,CACd,iBAAkB,CAClB,YAAa,CACb,iBACF,CAEA,iCACE,cAAgB,CAChB,iBAAkB,CAClB,eAAgB,CAChB,WACF,CAEA,cACE,eACF,CAEA,uBACE,iBACF,CAEA,eACE,gBAAiB,CACjB,cAAe,CACf,eACF,CAEA,wDACE,YACF,CAEA,mBACE,wBAA2B,CAC3B,iBAAkB,CAClB,kEAKF,CAEA,wDANE,YAAa,CACb,gBAAiB,CACjB,iBAAkB,CAClB,YASF,CANA,qCAEE,cAIF,CAEA,oEACE,aACF,CAIA,qCAEE,eAAgB,CAChB,aAAc,CACd,YAAa,CACb,cAAe,CACf,eAAiB,CACjB,WAAY,CACZ,wBAAyB,CACzB,KAAM,CACN,MACF,CAEA,uBACE,iBAAkB,CAClB,YACF,CAEA,yBACE,YACE,YAAa,CACb,iBAAkB,CAClB,iBACF,CACA,SACE,eAAgB,CAChB,oBAAa,CAAb,YAAa,CACb,0BAAmB,CAAnB,kBAAmB,CACnB,sBAAe,CAAf,cAAe,CACf,kBACF,CACA,SACE,wBAA2B,CAC3B,oBAAqB,CACrB,0BAA4B,CAC5B,iBAAkB,CAClB,iBAAkB,CAClB,SACF,CACA,WACE,eACF,CACA,WACE,uBACF,CACA,qCACE,aACF,CACF,CAGA,MACE,oBAAqB,CACrB,iBAAkB,CAClB,uBAAwB,CACxB,mBAAoB,CACpB,kBAAmB,CACnB,oBACF,CAEA,qBACE,kCAA2B,CAA3B,0BAA2B,CAC3B,eACF,CAEA,sBACE,8BAAuB,CAAvB,sBAAuB,CACvB,iBACF,CAEA,mBACE,gCAAyB,CAAzB,wBAAyB,CACzB,gBACF,CAEA,UACE,aAAc,CACd,iBAAkB,CAClB,UAAW,CACX,eAAgC,CAAhC,+BAAgC,CAChC,qBAAqC,CAArC,oCACF,CAEA,kBACE,wBAAyB,CACzB,eAAgB,CAEhB,cAAgB,CAChB,4BAA4C,CAA5C,2CACF,CAEA,wBACE,cAAe,CACf,wBACF,CAEA,8BACE,6BAAsB,CAAtB,qBAAsB,CACtB,wBAAyB,CACzB,aAAwB,CAAxB,uBACF,CAEA,sCACE,eACF,CAEA,qCACE,gBACF,CAEA,gBACE,wBAAyB,CACzB,eAAgB,CAChB,UAA8B,CAA9B,6BAA8B,CAC9B,aAAc,CACd,eAAgB,CAChB,4BAA4C,CAA5C,2CACF,CAEA,sBACE,iBAAkB,CAClB,UAAW,CACX,2BAA2C,CAA3C,0CAA2C,CAC3C,eAAgC,CAAhC,+BACF,CAEA,4BACE,kBAA2B,CAA3B,0BACF,CAEA,0BACE,kCAAmC,CACnC,uDACF,CAEA,qBACE,4BAA4C,CAA5C,2CAA4C,CAC5C,QACF,CAEA,gCACE,kBACF,CAEA,iCACE,iBACF,CAEA,8BACE,iBAAkB,CAClB,eAAgB,CAChB,aAAc,CACd,SAAU,CACV,WAAY,CACZ,eACF,CAEA,0BACE,UAA8B,CAA9B,6BAA8B,CAC9B,mBACF,CAEA,qBACE,mBAAY,CAAZ,WAAY,CACZ,4BAAwB,CAAxB,oBAAwB,CACxB,eACF,CAEA,8BACE,UACF,CAEA,yBACE,kBACF,CAEA,uBACE,kBACF,CAEA,iCAEE,YACF,CAEA,eACE,aAAc,CACd,cAAe,CACf,gBACF,CAEA,uBACE,kBAAsB,CACtB,iBAAkB,CAClB,kEAA4E,CAC5E,kBAAmB,CACnB,iBAAkB,CAClB,iBAAkB,CAClB,cAAe,CACf,YACF,CAEA,uBACE,YACF,CAEA,yCAEE,wHAGE,oBACF,CAEF,CAEA,gEAEE,wHAGE,oBACF,CAEF,CAEA,0CAEE,wHAGE,oBACF,CAEF","file":"main.98601af9.chunk.css","sourcesContent":["html {\n height: 100vh;\n}\n\nbody {\n background-color: #eaeaea;\n margin: 0;\n min-height: 100vh;\n padding-bottom: 50px;\n position: relative;\n }\n\n.App {\n padding-bottom: 20px;\n text-align: center;\n}\n\n.App-logo {\n animation: App-logo-spin infinite 20s linear;\n height: 80px;\n}\n\n.App-header {\n background-color: #222;\n height: 150px;\n padding: 20px;\n color: white;\n}\n\n.App-title {\n font-size: 1.5em;\n}\n\n.App-intro {\n font-size: large;\n}\n\n.App-nav-profile-img {\n max-width: 32px;\n max-height: 32px;\n border-radius: 50%;\n}\n\n.App-profile-img-small {\n max-width: 150px;\n max-height: 150px;\n border-radius: 50%;\n}\n\n@keyframes App-logo-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n}\n\na {\n color: #40578a;\n}\n\ninput[type=\"text\"], textarea {\n width: 100%;\n}\n\nlabel {\n width: 100%;\n}\n\n.add-workout {\n margin-top: 50px;\n}\n\n.add-workout-radio {\n margin-right: 10px;\n}\n\n.admin-img {\n max-width: 35px;\n max-height: 35px;\n}\n\n.admin-items {\n list-style-type: square;\n}\n\n.admin-message {\n color: #7c7c7d;\n font-size: 0.9em;\n font-style: italic;\n margin-left: 10px;\n}\n\n.app-config-form label {\n font-weight: bold;\n}\n\n.btn {\n margin-right: 10px;\n}\n\n.card {\n text-align: left;\n}\n\n.chart {\n font-size: 0.9em;\n}\n\n.chart-workouts {\n margin-left: 60px;\n}\n\n.chart-arrows {\n margin-top: 7px;\n}\n\n.chart-filters {\n padding-bottom: 10px;\n}\n\n.chart-info {\n font-size: 0.8em;\n font-style: italic;\n}\n\n.chart-radio {\n display: flex;\n font-size: 0.9em;\n}\n\n.chart-radio label {\n /* display: flex; */\n}\n\n.chart-radio input {\n margin-right: 10px;\n}\n\n.chart-stats {\n font-size: 0.8em;\n}\n\n.chart-title {\n font-size: 1.1em;\n margin-bottom: 10px;\n}\n\n.col-workout-logo{\n padding-right: 0;\n}\n\n.custom-modal {\n background-color: #fff;\n border-radius: 5px;\n max-width: 500px;\n margin: 20% auto;\n z-index: 1250;\n}\n\n.custom-modal-backdrop {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: rgba(0,0,0,0.3);\n padding: 50px;\n z-index: 1240;\n}\n\n.custom-fa {\n margin-right: 5px;\n}\n\n.custom-fa-small {\n font-size: 0.8em;\n margin-left: -0.8em;\n}\n\n@media only screen and (max-width: 992px) {\n .custom-fa-small {\n font-size: 0.6em;\n }\n}\n\n.custom-tooltip {\n background-color: #fff;\n border: 1px solid lightgrey;\n padding: 10px;\n}\n\n.custom-tooltip p {\n margin: 5px;\n}\n\n.custom-tooltip-label {\n font-weight: bold;\n}\n\n.dashboard {\n height: 100%;\n}\n.dashboard, .history {\n margin-top: 30px;\n}\n\n.dropdown-wrapper {\n width: 50px;\n}\n\n.dropdown-list {\n background-color: #f8f9fa;\n padding: 5px 0;\n position: absolute;\n text-align: left;\n z-index: 10;\n}\n\n.dropdown-item {\n cursor: default;\n font-size: 0.9em;\n}\n\n.dropdown-item-selected {\n font-weight: bold;\n}\n\n.dropdown-item-selected::after {\n content: \" ✔\";\n}\n\n.error-message {\n margin: 10px 0;\n}\n\n.fa-as-link {\n cursor:pointer;\n color: #40578a;\n}\n\n.fa-as-link:hover {\n color: #0056b3;\n}\n\n.fa-question-circle {\n color: #6c757d;\n margin-left: 3px;\n}\n\n.fa-trophy {\n color: goldenrod;\n}\n\n.fa-color {\n color: #405976;\n}\n\n.footer {\n background-color: #f8f9fa;\n bottom: 0;\n color: #8b8c8c;\n font-size: 0.9em;\n height: 50px;\n line-height: 50px;\n position: absolute;\n width: 100%;\n}\n\n/* Chrome, Safari, Edge, Opera */\n.form-disabled .form-group input::-webkit-outer-spin-button,\n.form-disabled .form-group input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n/* Firefox */\n.form-disabled .form-group input[type=number] {\n -moz-appearance: textfield;\n}\n\n.form-disabled .form-group input{\n border: none;\n pointer-events: none;\n}\n\n\n.gpx-file {\n height: inherit;\n}\n\n.huge {\n font-size: 25px;\n}\n\n.i18n-flag svg {\n height: 100%;\n opacity: .9;\n width: 15px;\n}\n\n.inactive-link {\n color: lightgrey;\n}\n\n.leaflet-container {\n height: 400px;\n}\n\n.loader {\n animation: spin 2s linear infinite;\n border: 8px solid #f3f3f3;\n border-top: 8px solid #3498db;\n border-radius: 50%;\n height: 60px;\n margin-left: 41%;\n width: 60px;\n}\n\n@keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n\n.map-attribution {\n bottom: 0;\n font-size: 11px;\n position: absolute;\n}\n\n.map-attribution-text {\n background-color: rgba(255, 255, 255, .5);\n padding-left: 2px;\n padding-right: 2px;\n}\n\n.no-picture {\n color: #405976;\n}\n\n.page-title {\n font-size: 2em;\n margin: 1em;\n text-align: center;\n}\n\n.password-forget {\n margin: 10px;\n font-size: .9em;\n font-style: italic;\n}\n\n.radioLabel {\n text-align: center;\n}\n\n.record-logo {\n margin-right: 5px;\n max-width: 25px;\n max-height: 25px;\n}\n\n.record-table table, .record-table th, .record-table td{\n font-size: 0.9em;\n padding: 0.1em;\n}\n\n.remaining-chars {\n font-size: 0.8em;\n font-style: italic;\n}\n\n.sport-img {\n max-width: 35px;\n max-height: 35px;\n}\n\n.sport-img-medium {\n max-width: 45px;\n max-height: 45px;\n}\n\n.stats-disabled {\n opacity: 0.3;\n pointer-events: none;\n}\n\n.svg-icon {\n fill: #405976;\n height: 70px;\n margin-left: auto;\n margin-right: auto;\n width: 70px;\n}\n\n.time-frames {\n align-items: center;\n display: inline-flex;\n}\n\n.time-frame label {\n float: left;\n padding: 0 5px;\n}\n\n.time-frame label input {\n display: none;\n}\n\n.time-frame label span {\n border: #a9a9a9 solid 1px;\n border-radius: 9%;\n color: #7b7b7b;\n display: block;\n font-size: 0.9em;\n padding: 2px 6px;\n text-align: center;\n}\n\n.time-frame input:checked + span {\n background-color: #a9a9a9;\n color: #ffffff;\n}\n\n.timezone-custom {\n font-size: .9em !important;\n height: inherit !important;\n}\n\n.timezone-custom input {\n border: 0 !important;\n padding: 5px 1px !important;\n}\n\n.timezone-custom ul {\n background: white;\n}\n\n.timezone-picker {\n padding: 0;\n}\n\n.timezone-picker-textfield {\n font-size: 15px;\n}\n\n.unlink {\n color: black;\n}\n\n.user-bio, .workout-notes {\n white-space: pre-wrap;\n}\n\n.user-filters {\n font-size: 0.9em;\n margin-bottom: 10px;\n}\n\n.user-label {\n font-weight: bold;\n}\n\n.weather-img {\n max-width: 35px;\n max-height: 35px;\n}\n\n.weather-img-small {\n max-width: 20px;\n max-height: 20px;\n}\n\n.weather-table {\n margin-bottom: 0;\n}\n\n.weather-table table, .weather-table th, .weather-table td{\n font-size: 0.9em;\n padding: 0.1em;\n}\n\n.workouts-result {\n font-size: 0.85em;\n}\n\n.workout-card {\n margin-bottom: 15px;\n}\n\n.workout-details {\n font-size: 0.95em;\n}\n.workout-date {\n font-size: 0.75em;\n}\n\n.workout-filter {\n font-size: 0.9em;\n}\n\n.workout-filter .col-2, .col-5{\n padding: 0;\n}\n\n.workout-label {\n font-size: 0.8em;\n color: #666\n}\n\n.workout-logo {\n margin: 0 5px;\n max-width: 20px;\n max-height: 20px;\n}\n\n.workout-map {\n background-color: #eaeaea;\n height: 225px;\n width: 400px;\n}\n\n.workout-no-map {\n background-color: #eaeaea;\n color: #666666;\n font-style: italic;\n height: 400px;\n line-height: 400px;\n}\n\n.workout-notes, .actvity-segments {\n font-size: 0.9em;\n font-style: italic;\n margin-top: 10px;\n padding: 5px;\n}\n\n.workout-page {\n margin-top: 20px;\n}\n\n.workout-segments-list {\n list-style: square;\n}\n\n.workout-sport {\n margin-right: 1px;\n max-width: 18px;\n max-height: 18px;\n}\n\n.workout-title img, .workout-title .map-attribution-list {\n display: none;\n}\n\n.workout-title img {\n border: 1px solid lightgrey;\n border-radius: 4px;\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n display: none;\n margin-left: 20px;\n position: absolute;\n z-index: 1000;\n}\n\n.workout-title .map-attribution-list {\n display: none;\n font-size: 11px;\n margin-left: 20px;\n position: absolute;\n z-index: 1000;\n}\n\n.workout-title:hover img, .workout-title:hover .map-attribution-list {\n display: block;\n}\n\n/* responsive table */\n/* adapted from https://uglyduck.ca/making-tables-responsive-with-minimal-css/ */\n.heading-span,\n.heading-span-absolute {\n background: #eee;\n color: dimgrey;\n display: none;\n font-size: 10px;\n font-weight: bold;\n padding: 5px;\n text-transform: uppercase;\n top: 0;\n left: 0;\n}\n\n.heading-span-absolute {\n position: absolute;\n display: none;\n}\n\n@media(max-width: 1024px) {\n table thead {\n left: -9999px;\n position: absolute;\n visibility: hidden;\n }\n table tr {\n border-bottom: 0;\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n margin-bottom: 40px;\n }\n table td {\n border: 1px solid lightgrey;\n margin: 0 -1px -1px 0;\n padding-top: 30px !important;\n position: relative;\n text-align: center;\n width: 50%;\n }\n .record-tr {\n margin-bottom: 0;\n }\n .record-td {\n padding-top: 0 !important;\n }\n .heading-span, .heading-span-absolute {\n display: block;\n }\n}\n\n/* calendar */\n:root {\n --main-color: #1a8fff;\n --text-color: #777;\n --text-color-light: #ccc;\n --border-color: #eee;\n --bg-color: #f9f9f9;\n --neutral-color: #fff;\n}\n\n.calendar .col-start {\n justify-content: flex-start;\n text-align: left;\n}\n\n.calendar .col-center {\n justify-content: center;\n text-align: center;\n}\n\n.calendar .col-end {\n justify-content: flex-end;\n text-align: right;\n}\n\n.calendar {\n display: block;\n position: relative;\n width: 100%;\n background: var(--neutral-color);\n border: 1px solid var(--border-color);\n}\n\n.calendar .header {\n text-transform: uppercase;\n font-weight: 700;\n /*font-size: 115%;*/\n padding: 0.5em 0;\n border-bottom: 1px solid var(--border-color);\n}\n\n.calendar .header .icon {\n cursor: pointer;\n transition: .15s ease-out;\n}\n\n.calendar .header .icon:hover {\n transform: scale(1.75);\n transition: .25s ease-out;\n color: var(--main-color);\n}\n\n.calendar .header .icon:first-of-type {\n margin-left: 1em;\n}\n\n.calendar .header .icon:last-of-type {\n margin-right: 1em;\n}\n\n.calendar .days {\n text-transform: uppercase;\n font-weight: 400;\n color: var(--text-color-light);\n font-size: 70%;\n padding: .75em 0;\n border-bottom: 1px solid var(--border-color);\n}\n\n.calendar .body .cell {\n position: relative;\n height: 3em;\n border-right: 1px solid var(--border-color);\n background: var(--neutral-color);\n}\n\n.calendar .body .cell:hover {\n background: var(--bg-color);\n}\n\n.calendar .body .selected {\n border-left: 10px solid transparent;\n border-image: linear-gradient(45deg, #1a8fff 0%,#53cbf1 40%);\n}\n\n.calendar .body .row {\n border-bottom: 1px solid var(--border-color);\n margin: 0;\n}\n\n.calendar .body .row:last-child {\n border-bottom: none;\n}\n\n.calendar .body .cell:last-child {\n border-right: none;\n}\n\n.calendar .body .cell .number {\n position: absolute;\n font-size: 82.5%;\n line-height: 1;\n top: .75em;\n right: .75em;\n font-weight: 700;\n}\n\n.calendar .body .disabled {\n color: var(--text-color-light);\n pointer-events: none;\n}\n\n.calendar .body .col {\n flex-grow: 0;\n flex-basis: calc(100%/7);\n width: calc(100%/7);\n}\n\n.calendar .body .img-disabled {\n opacity: .4;\n}\n\n.calendar .body .weekend {\n background: #f5f5f5;\n}\n\n.calendar .body .today {\n background: #eff1f3;\n}\n\n.calendar-workout,\n.calendar-more {\n display: none;\n}\n\n.calendar-more {\n color: #405976;\n font-size: .7em;\n margin-left: 0.3em;\n}\n\n.calendar-display-more {\n background: whitesmoke;\n border-radius: 4px;\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n margin-bottom: 10px;\n padding: 10px 15px;\n position: absolute;\n min-width: 52px;\n z-index: 1000;\n}\n\n.calendar-workout-more {\n display: none;\n}\n\n@media only screen and (max-width: 992px) {\n\n .calendar-workout:nth-child(-n+2),\n .calendar-workout:nth-child(n+3) ~ .calendar-more,\n .calendar-workout-more:nth-child(n+3) {\n display: inline-block;\n }\n\n}\n\n@media only screen and (min-width: 992px) and (max-width: 1200px) {\n\n .calendar-workout:nth-child(-n+4),\n .calendar-workout:nth-child(n+5) ~ .calendar-more,\n .calendar-workout-more:nth-child(n+5) {\n display: inline-block;\n }\n\n}\n\n@media only screen and (min-width: 1200px) {\n\n .calendar-workout:nth-child(-n+6),\n .calendar-workout:nth-child(n+7) ~ .calendar-more,\n .calendar-workout-more:nth-child(n+7) {\n display: inline-block;\n }\n\n}\n"]} \ No newline at end of file diff --git a/fittrackee/dist/static/css/main.b0b9a9d7.chunk.css b/fittrackee/dist/static/css/main.b0b9a9d7.chunk.css new file mode 100644 index 00000000..77824b9e --- /dev/null +++ b/fittrackee/dist/static/css/main.b0b9a9d7.chunk.css @@ -0,0 +1,2 @@ +html{height:100vh}body{background-color:#eaeaea;margin:0;min-height:100vh;padding-bottom:50px;position:relative}.App{padding-bottom:20px;text-align:center}.App-logo{-webkit-animation:App-logo-spin 20s linear infinite;animation:App-logo-spin 20s linear infinite;height:80px}.App-header{background-color:#222;height:150px;padding:20px;color:#fff}.App-title{font-size:1.5em}.App-intro{font-size:large}.App-nav-profile-img{max-width:32px;max-height:32px;border-radius:50%}.App-profile-img-small{max-width:150px;max-height:150px;border-radius:50%}@-webkit-keyframes App-logo-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes App-logo-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}a{color:#40578a}input[type=text],label,textarea{width:100%}.add-workout{margin-top:50px}.add-workout-radio{margin-right:10px}.admin-img{max-width:35px;max-height:35px}.admin-items{list-style-type:square}.admin-message{color:#7c7c7d;font-size:.9em;font-style:italic;margin-left:10px}.app-config-form label{font-weight:700}.btn{margin-right:10px}.card{text-align:left}.chart{font-size:.9em}.chart-workouts{margin-left:60px}.chart-arrows{margin-top:7px}.chart-filters{padding-bottom:10px}.chart-info{font-size:.8em;font-style:italic}.chart-radio{display:flex;font-size:.9em}.chart-radio input{margin-right:10px}.chart-stats{font-size:.8em}.chart-title{font-size:1.1em;margin-bottom:10px}.col-workout-logo{padding-right:0}.custom-modal{background-color:#fff;border-radius:5px;max-width:500px;margin:20% auto;z-index:1250}.custom-modal-backdrop{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.3);padding:50px;z-index:1240}.custom-fa{margin-right:5px}.custom-fa-small{font-size:.8em;margin-left:-.8em}@media only screen and (max-width:992px){.custom-fa-small{font-size:.6em}}.custom-tooltip{background-color:#fff;border:1px solid #d3d3d3;padding:10px}.custom-tooltip p{margin:5px}.custom-tooltip-label{font-weight:700}.dashboard{height:100%}.dashboard,.history{margin-top:30px}.dropdown-wrapper{width:50px}.dropdown-list{background-color:#f8f9fa;padding:5px 0;position:absolute;text-align:left;z-index:10}.dropdown-item{cursor:default;font-size:.9em}.dropdown-item-selected{font-weight:700}.dropdown-item-selected:after{content:" ✔"}.error-message{margin:10px 0}.fa-as-link{cursor:pointer;color:#40578a}.fa-as-link:hover{color:#0056b3}.fa-question-circle{color:#6c757d;margin-left:3px}.fa-trophy{color:#daa520}.fa-color{color:#405976}.footer{background-color:#f8f9fa;bottom:0;color:#8b8c8c;font-size:.9em;height:50px;line-height:50px;position:absolute;width:100%}.form-disabled .form-group input::-webkit-inner-spin-button,.form-disabled .form-group input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.form-disabled .form-group input[type=number]{-moz-appearance:textfield}.form-disabled .form-group input{border:none;pointer-events:none}.gpx-file{height:inherit}.huge{font-size:25px}.i18n-flag svg{height:100%;opacity:.9;width:15px}.inactive-link{color:#d3d3d3}.leaflet-container{height:400px}.loader{-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite;border:8px solid #f3f3f3;border-top-color:#3498db;border-radius:50%;height:60px;margin-left:41%;width:60px}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.map-attribution{bottom:0;font-size:11px;position:absolute}.map-attribution-text{background-color:hsla(0,0%,100%,.5);padding-left:2px;padding-right:2px}.no-picture{color:#405976}.page-title{font-size:2em;margin:1em;text-align:center}.password-forget{margin:10px;font-size:.9em;font-style:italic}.radioLabel{text-align:center}.record-logo{margin-right:5px;max-width:25px;max-height:25px}.record-table table,.record-table td,.record-table th{font-size:.9em;padding:.1em}.remaining-chars{font-size:.8em;font-style:italic}.sport-img{max-width:35px;max-height:35px}.sport-img-medium{max-width:45px;max-height:45px}.stats-disabled{opacity:.3;pointer-events:none}.svg-icon{fill:#405976;height:70px;margin-left:auto;margin-right:auto;width:70px}.time-frames{align-items:center;display:inline-flex}.time-frame label{float:left;padding:0 5px}.time-frame label input{display:none}.time-frame label span{border:1px solid #a9a9a9;border-radius:9%;color:#7b7b7b;display:block;font-size:.9em;padding:2px 6px;text-align:center}.time-frame input:checked+span{background-color:#a9a9a9;color:#fff}.timezone-custom{font-size:.9em!important;height:inherit!important}.timezone-custom input{border:0!important;padding:5px 1px!important}.timezone-custom ul{background:#fff}.timezone-picker{padding:0}.timezone-picker-textfield{font-size:15px}.unlink{color:#000}.user-bio,.workout-notes{white-space:pre-wrap}.user-filters{font-size:.9em;margin-bottom:10px}.user-label{font-weight:700}.weather-img{max-width:35px;max-height:35px}.weather-img-small{max-width:20px;max-height:20px}.weather-table{margin-bottom:0}.weather-table table,.weather-table td,.weather-table th{font-size:.9em;padding:.1em}.workouts-result{font-size:.85em}.workout-card{margin-bottom:15px}.workout-details{font-size:.95em}.workout-date{font-size:.75em}.workout-filter{font-size:.9em}.col-5,.workout-filter .col-2{padding:0}.workout-label{font-size:.8em;color:#666}.workout-logo{margin:0 5px;max-width:20px;max-height:20px}.workout-map{background-color:#eaeaea;height:225px;width:400px}.workout-no-map{background-color:#eaeaea;color:#666;font-style:italic;height:400px;line-height:400px}.actvity-segments,.workout-notes{font-size:.9em;font-style:italic;margin-top:10px;padding:5px}.workout-page{margin-top:20px}.workout-segments-list{list-style:square}.workout-sport{margin-right:1px;max-width:18px;max-height:18px}.workout-title .map-attribution-list,.workout-title img{display:none}.workout-title img{border:1px solid #d3d3d3;border-radius:4px;box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19)}.workout-title .map-attribution-list,.workout-title img{display:none;margin-left:20px;position:absolute;z-index:1000}.workout-title .map-attribution-list{font-size:11px}.workout-title:hover .map-attribution-list,.workout-title:hover img{display:block}.heading-span,.heading-span-absolute{background:#eee;color:#696969;display:none;font-size:10px;font-weight:700;padding:5px;text-transform:uppercase;top:0;left:0}.heading-span-absolute{position:absolute;display:none}@media(max-width:1024px){table thead{left:-9999px;position:absolute;visibility:hidden}table tr{border-bottom:0;display:flex;flex-direction:row;flex-wrap:wrap;margin-bottom:40px}table td{border:1px solid #d3d3d3;margin:0 -1px -1px 0;padding-top:30px!important;position:relative;text-align:center;width:50%}.record-tr{margin-bottom:0}.record-td{padding-top:0!important}.heading-span,.heading-span-absolute{display:block}}:root{--main-color:#1a8fff;--text-color:#777;--text-color-light:#ccc;--border-color:#eee;--bg-color:#f9f9f9;--neutral-color:#fff}.calendar .col-start{justify-content:flex-start;text-align:left}.calendar .col-center{justify-content:center;text-align:center}.calendar .col-end{justify-content:flex-end;text-align:right}.calendar{display:block;position:relative;width:100%;background:#fff;background:var(--neutral-color);border:1px solid #eee;border:1px solid var(--border-color)}.calendar .header{text-transform:uppercase;font-weight:700;padding:.5em 0;border-bottom:1px solid #eee;border-bottom:1px solid var(--border-color)}.calendar .header .icon{cursor:pointer;transition:.15s ease-out}.calendar .header .icon:hover{-webkit-transform:scale(1.75);transform:scale(1.75);transition:.25s ease-out;color:#1a8fff;color:var(--main-color)}.calendar .header .icon:first-of-type{margin-left:1em}.calendar .header .icon:last-of-type{margin-right:1em}.calendar .days{text-transform:uppercase;font-weight:400;color:#ccc;color:var(--text-color-light);font-size:70%;padding:.75em 0;border-bottom:1px solid #eee;border-bottom:1px solid var(--border-color)}.calendar .body .cell{position:relative;height:3em;border-right:1px solid #eee;border-right:1px solid var(--border-color);background:#fff;background:var(--neutral-color)}.calendar .body .cell:hover{background:#f9f9f9;background:var(--bg-color)}.calendar .body .selected{border-left:10px solid transparent;border-image:linear-gradient(45deg,#1a8fff,#53cbf1 40%)}.calendar .body .row{border-bottom:1px solid #eee;border-bottom:1px solid var(--border-color);margin:0}.calendar .body .row:last-child{border-bottom:none}.calendar .body .cell:last-child{border-right:none}.calendar .body .cell .number{position:absolute;font-size:82.5%;line-height:1;top:.75em;right:.75em;font-weight:700}.calendar .body .disabled{color:#ccc;color:var(--text-color-light);pointer-events:none}.calendar .body .col{flex-grow:0;flex-basis:14.28571%;width:14.28571%}.calendar .body .img-disabled{opacity:.4}.calendar .body .weekend{background:#f5f5f5}.calendar .body .today{background:#eff1f3}.calendar-more,.calendar-workout{display:none}.calendar-more{color:#405976;font-size:.7em;margin-left:.3em}.calendar-display-more{background:#f5f5f5;border-radius:4px;box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);margin-bottom:10px;padding:10px 15px;position:absolute;min-width:52px;z-index:1000}.calendar-workout-more{display:none}@media only screen and (max-width:992px){.calendar-workout-more:nth-child(n+3),.calendar-workout:nth-child(-n+2),.calendar-workout:nth-child(n+3)~.calendar-more{display:inline-block}}@media only screen and (min-width:992px) and (max-width:1200px){.calendar-workout-more:nth-child(n+5),.calendar-workout:nth-child(-n+4),.calendar-workout:nth-child(n+5)~.calendar-more{display:inline-block}}@media only screen and (min-width:1200px){.calendar-workout-more:nth-child(n+7),.calendar-workout:nth-child(-n+6),.calendar-workout:nth-child(n+7)~.calendar-more{display:inline-block}} +/*# sourceMappingURL=main.b0b9a9d7.chunk.css.map */ \ No newline at end of file diff --git a/fittrackee/dist/static/css/main.b0b9a9d7.chunk.css.map b/fittrackee/dist/static/css/main.b0b9a9d7.chunk.css.map new file mode 100644 index 00000000..1e06e891 --- /dev/null +++ b/fittrackee/dist/static/css/main.b0b9a9d7.chunk.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://src/components/App.css"],"names":[],"mappings":"AAAA,KACE,YACF,CAEA,KACE,wBAAyB,CACzB,QAAS,CACT,gBAAiB,CACjB,mBAAoB,CACpB,iBACA,CAEF,KACE,mBAAoB,CACpB,iBACF,CAEA,UACE,mDAA4C,CAA5C,2CAA4C,CAC5C,WACF,CAEA,YACE,qBAAsB,CACtB,YAAa,CACb,YAAa,CACb,UACF,CAEA,WACE,eACF,CAEA,WACE,eACF,CAEA,qBACE,cAAe,CACf,eAAgB,CAChB,iBACF,CAEA,uBACE,eAAgB,CAChB,gBAAiB,CACjB,iBACF,CAEA,iCACE,GAAO,8BAAuB,CAAvB,sBAAyB,CAChC,GAAK,+BAAyB,CAAzB,uBAA2B,CAClC,CAHA,yBACE,GAAO,8BAAuB,CAAvB,sBAAyB,CAChC,GAAK,+BAAyB,CAAzB,uBAA2B,CAClC,CAEA,EACE,aACF,CAMA,gCACE,UACF,CAEA,aACE,eACF,CAEA,mBACE,iBACF,CAEA,WACE,cAAe,CACf,eACF,CAEA,aACE,sBACF,CAEA,eACE,aAAc,CACd,cAAgB,CAChB,iBAAkB,CAClB,gBACF,CAEA,uBACE,eACF,CAEA,KACE,iBACF,CAEA,MACE,eACF,CAEA,OACE,cACF,CAEA,gBACE,gBACF,CAEA,cACE,cACF,CAEA,eACE,mBACF,CAEA,YACE,cAAgB,CAChB,iBACF,CAEA,aACE,YAAa,CACb,cACF,CAMA,mBACE,iBACF,CAEA,aACE,cACF,CAEA,aACE,eAAgB,CAChB,kBACF,CAEA,kBACE,eACF,CAEA,cACE,qBAAsB,CACtB,iBAAkB,CAClB,eAAgB,CAChB,eAAgB,CAChB,YACF,CAEA,uBACE,cAAe,CACf,KAAM,CACN,QAAS,CACT,MAAO,CACP,OAAQ,CACR,+BAAiC,CACjC,YAAa,CACb,YACF,CAEA,WACE,gBACF,CAEA,iBACE,cAAgB,CAChB,iBACF,CAEA,yCACE,iBACE,cACF,CACF,CAEA,gBACE,qBAAsB,CACtB,wBAA2B,CAC3B,YACF,CAEA,kBACE,UACF,CAEA,sBACE,eACF,CAEA,WACE,WACF,CACA,oBACE,eACF,CAEA,kBACE,UACF,CAEA,eACE,wBAAyB,CACzB,aAAc,CACd,iBAAkB,CAClB,eAAgB,CAChB,UACF,CAEA,eACE,cAAe,CACf,cACF,CAEA,wBACE,eACF,CAEA,8BACE,YACF,CAEA,eACE,aACF,CAEA,YACE,cAAc,CACd,aACF,CAEA,kBACE,aACF,CAEA,oBACE,aAAc,CACd,eACF,CAEA,WACE,aACF,CAEA,UACE,aACF,CAEA,QACE,wBAAyB,CACzB,QAAS,CACT,aAAc,CACd,cAAgB,CAChB,WAAY,CACZ,gBAAiB,CACjB,iBAAkB,CAClB,UACF,CAGA,wHAEE,uBAAwB,CACxB,QACF,CAGA,8CACE,yBACF,CAEA,iCACE,WAAY,CACZ,mBACF,CAGA,UACE,cACF,CAEA,MACE,cACF,CAEA,eACE,WAAY,CACZ,UAAW,CACX,UACF,CAEA,eACE,aACF,CAEA,mBACE,YACF,CAEA,QACE,yCAAkC,CAAlC,iCAAkC,CAElC,wBAA6B,CAA7B,wBAA6B,CAC7B,iBAAkB,CAClB,WAAY,CACZ,eAAgB,CAChB,UACF,CAEA,wBACE,GAAK,8BAAuB,CAAvB,sBAAyB,CAC9B,GAAO,+BAAyB,CAAzB,uBAA2B,CACpC,CAHA,gBACE,GAAK,8BAAuB,CAAvB,sBAAyB,CAC9B,GAAO,+BAAyB,CAAzB,uBAA2B,CACpC,CAEA,iBACE,QAAS,CACT,cAAe,CACf,iBACF,CAEA,sBACE,mCAAyC,CACzC,gBAAiB,CACjB,iBACF,CAEA,YACE,aACF,CAEA,YACE,aAAc,CACd,UAAW,CACX,iBACF,CAEA,iBACE,WAAY,CACZ,cAAe,CACf,iBACF,CAEA,YACE,iBACF,CAEA,aACE,gBAAiB,CACjB,cAAe,CACf,eACF,CAEA,sDACE,cAAgB,CAChB,YACF,CAEA,iBACE,cAAgB,CAChB,iBACF,CAEA,WACE,cAAe,CACf,eACF,CAEA,kBACE,cAAe,CACf,eACF,CAEA,gBACE,UAAY,CACZ,mBACF,CAEA,UACE,YAAa,CACb,WAAY,CACZ,gBAAiB,CACjB,iBAAkB,CAClB,UACF,CAEA,aACE,kBAAmB,CACnB,mBACF,CAEA,kBACE,UAAW,CACX,aACF,CAEA,wBACE,YACF,CAEA,uBACE,wBAAyB,CACzB,gBAAiB,CACjB,aAAc,CACd,aAAc,CACd,cAAgB,CAChB,eAAgB,CAChB,iBACF,CAEA,+BACE,wBAAyB,CACzB,UACF,CAEA,iBACE,wBAA0B,CAC1B,wBACF,CAEA,uBACE,kBAAoB,CACpB,yBACF,CAEA,oBACE,eACF,CAEA,iBACE,SACF,CAEA,2BACE,cACF,CAEA,QACE,UACF,CAEA,yBACE,oBACF,CAEA,cACE,cAAgB,CAChB,kBACF,CAEA,YACE,eACF,CAEA,aACE,cAAe,CACf,eACF,CAEA,mBACE,cAAe,CACf,eACF,CAEA,eACE,eACF,CAEA,yDACE,cAAgB,CAChB,YACF,CAEA,iBACE,eACF,CAEA,cACE,kBACF,CAEA,iBACE,eACF,CACA,cACE,eACF,CAEA,gBACE,cACF,CAEA,8BACE,SACF,CAEA,eACE,cAAgB,CAChB,UACF,CAEA,cACE,YAAa,CACb,cAAe,CACf,eACF,CAEA,aACE,wBAAyB,CACzB,YAAa,CACb,WACF,CAEA,gBACE,wBAAyB,CACzB,UAAc,CACd,iBAAkB,CAClB,YAAa,CACb,iBACF,CAEA,iCACE,cAAgB,CAChB,iBAAkB,CAClB,eAAgB,CAChB,WACF,CAEA,cACE,eACF,CAEA,uBACE,iBACF,CAEA,eACE,gBAAiB,CACjB,cAAe,CACf,eACF,CAEA,wDACE,YACF,CAEA,mBACE,wBAA2B,CAC3B,iBAAkB,CAClB,kEAKF,CAEA,wDANE,YAAa,CACb,gBAAiB,CACjB,iBAAkB,CAClB,YASF,CANA,qCAEE,cAIF,CAEA,oEACE,aACF,CAIA,qCAEE,eAAgB,CAChB,aAAc,CACd,YAAa,CACb,cAAe,CACf,eAAiB,CACjB,WAAY,CACZ,wBAAyB,CACzB,KAAM,CACN,MACF,CAEA,uBACE,iBAAkB,CAClB,YACF,CAEA,yBACE,YACE,YAAa,CACb,iBAAkB,CAClB,iBACF,CACA,SACE,eAAgB,CAChB,YAAa,CACb,kBAAmB,CACnB,cAAe,CACf,kBACF,CACA,SACE,wBAA2B,CAC3B,oBAAqB,CACrB,0BAA4B,CAC5B,iBAAkB,CAClB,iBAAkB,CAClB,SACF,CACA,WACE,eACF,CACA,WACE,uBACF,CACA,qCACE,aACF,CACF,CAGA,MACE,oBAAqB,CACrB,iBAAkB,CAClB,uBAAwB,CACxB,mBAAoB,CACpB,kBAAmB,CACnB,oBACF,CAEA,qBACE,0BAA2B,CAC3B,eACF,CAEA,sBACE,sBAAuB,CACvB,iBACF,CAEA,mBACE,wBAAyB,CACzB,gBACF,CAEA,UACE,aAAc,CACd,iBAAkB,CAClB,UAAW,CACX,eAAgC,CAAhC,+BAAgC,CAChC,qBAAqC,CAArC,oCACF,CAEA,kBACE,wBAAyB,CACzB,eAAgB,CAEhB,cAAgB,CAChB,4BAA4C,CAA5C,2CACF,CAEA,wBACE,cAAe,CACf,wBACF,CAEA,8BACE,6BAAsB,CAAtB,qBAAsB,CACtB,wBAAyB,CACzB,aAAwB,CAAxB,uBACF,CAEA,sCACE,eACF,CAEA,qCACE,gBACF,CAEA,gBACE,wBAAyB,CACzB,eAAgB,CAChB,UAA8B,CAA9B,6BAA8B,CAC9B,aAAc,CACd,eAAgB,CAChB,4BAA4C,CAA5C,2CACF,CAEA,sBACE,iBAAkB,CAClB,UAAW,CACX,2BAA2C,CAA3C,0CAA2C,CAC3C,eAAgC,CAAhC,+BACF,CAEA,4BACE,kBAA2B,CAA3B,0BACF,CAEA,0BACE,kCAAmC,CACnC,uDACF,CAEA,qBACE,4BAA4C,CAA5C,2CAA4C,CAC5C,QACF,CAEA,gCACE,kBACF,CAEA,iCACE,iBACF,CAEA,8BACE,iBAAkB,CAClB,eAAgB,CAChB,aAAc,CACd,SAAU,CACV,WAAY,CACZ,eACF,CAEA,0BACE,UAA8B,CAA9B,6BAA8B,CAC9B,mBACF,CAEA,qBACE,WAAY,CACZ,oBAAwB,CACxB,eACF,CAEA,8BACE,UACF,CAEA,yBACE,kBACF,CAEA,uBACE,kBACF,CAEA,iCAEE,YACF,CAEA,eACE,aAAc,CACd,cAAe,CACf,gBACF,CAEA,uBACE,kBAAsB,CACtB,iBAAkB,CAClB,kEAA4E,CAC5E,kBAAmB,CACnB,iBAAkB,CAClB,iBAAkB,CAClB,cAAe,CACf,YACF,CAEA,uBACE,YACF,CAEA,yCAEE,wHAGE,oBACF,CAEF,CAEA,gEAEE,wHAGE,oBACF,CAEF,CAEA,0CAEE,wHAGE,oBACF,CAEF","file":"main.b0b9a9d7.chunk.css","sourcesContent":["html {\n height: 100vh;\n}\n\nbody {\n background-color: #eaeaea;\n margin: 0;\n min-height: 100vh;\n padding-bottom: 50px;\n position: relative;\n }\n\n.App {\n padding-bottom: 20px;\n text-align: center;\n}\n\n.App-logo {\n animation: App-logo-spin infinite 20s linear;\n height: 80px;\n}\n\n.App-header {\n background-color: #222;\n height: 150px;\n padding: 20px;\n color: white;\n}\n\n.App-title {\n font-size: 1.5em;\n}\n\n.App-intro {\n font-size: large;\n}\n\n.App-nav-profile-img {\n max-width: 32px;\n max-height: 32px;\n border-radius: 50%;\n}\n\n.App-profile-img-small {\n max-width: 150px;\n max-height: 150px;\n border-radius: 50%;\n}\n\n@keyframes App-logo-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n}\n\na {\n color: #40578a;\n}\n\ninput[type=\"text\"], textarea {\n width: 100%;\n}\n\nlabel {\n width: 100%;\n}\n\n.add-workout {\n margin-top: 50px;\n}\n\n.add-workout-radio {\n margin-right: 10px;\n}\n\n.admin-img {\n max-width: 35px;\n max-height: 35px;\n}\n\n.admin-items {\n list-style-type: square;\n}\n\n.admin-message {\n color: #7c7c7d;\n font-size: 0.9em;\n font-style: italic;\n margin-left: 10px;\n}\n\n.app-config-form label {\n font-weight: bold;\n}\n\n.btn {\n margin-right: 10px;\n}\n\n.card {\n text-align: left;\n}\n\n.chart {\n font-size: 0.9em;\n}\n\n.chart-workouts {\n margin-left: 60px;\n}\n\n.chart-arrows {\n margin-top: 7px;\n}\n\n.chart-filters {\n padding-bottom: 10px;\n}\n\n.chart-info {\n font-size: 0.8em;\n font-style: italic;\n}\n\n.chart-radio {\n display: flex;\n font-size: 0.9em;\n}\n\n.chart-radio label {\n /* display: flex; */\n}\n\n.chart-radio input {\n margin-right: 10px;\n}\n\n.chart-stats {\n font-size: 0.8em;\n}\n\n.chart-title {\n font-size: 1.1em;\n margin-bottom: 10px;\n}\n\n.col-workout-logo{\n padding-right: 0;\n}\n\n.custom-modal {\n background-color: #fff;\n border-radius: 5px;\n max-width: 500px;\n margin: 20% auto;\n z-index: 1250;\n}\n\n.custom-modal-backdrop {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: rgba(0,0,0,0.3);\n padding: 50px;\n z-index: 1240;\n}\n\n.custom-fa {\n margin-right: 5px;\n}\n\n.custom-fa-small {\n font-size: 0.8em;\n margin-left: -0.8em;\n}\n\n@media only screen and (max-width: 992px) {\n .custom-fa-small {\n font-size: 0.6em;\n }\n}\n\n.custom-tooltip {\n background-color: #fff;\n border: 1px solid lightgrey;\n padding: 10px;\n}\n\n.custom-tooltip p {\n margin: 5px;\n}\n\n.custom-tooltip-label {\n font-weight: bold;\n}\n\n.dashboard {\n height: 100%;\n}\n.dashboard, .history {\n margin-top: 30px;\n}\n\n.dropdown-wrapper {\n width: 50px;\n}\n\n.dropdown-list {\n background-color: #f8f9fa;\n padding: 5px 0;\n position: absolute;\n text-align: left;\n z-index: 10;\n}\n\n.dropdown-item {\n cursor: default;\n font-size: 0.9em;\n}\n\n.dropdown-item-selected {\n font-weight: bold;\n}\n\n.dropdown-item-selected::after {\n content: \" ✔\";\n}\n\n.error-message {\n margin: 10px 0;\n}\n\n.fa-as-link {\n cursor:pointer;\n color: #40578a;\n}\n\n.fa-as-link:hover {\n color: #0056b3;\n}\n\n.fa-question-circle {\n color: #6c757d;\n margin-left: 3px;\n}\n\n.fa-trophy {\n color: goldenrod;\n}\n\n.fa-color {\n color: #405976;\n}\n\n.footer {\n background-color: #f8f9fa;\n bottom: 0;\n color: #8b8c8c;\n font-size: 0.9em;\n height: 50px;\n line-height: 50px;\n position: absolute;\n width: 100%;\n}\n\n/* Chrome, Safari, Edge, Opera */\n.form-disabled .form-group input::-webkit-outer-spin-button,\n.form-disabled .form-group input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n/* Firefox */\n.form-disabled .form-group input[type=number] {\n -moz-appearance: textfield;\n}\n\n.form-disabled .form-group input{\n border: none;\n pointer-events: none;\n}\n\n\n.gpx-file {\n height: inherit;\n}\n\n.huge {\n font-size: 25px;\n}\n\n.i18n-flag svg {\n height: 100%;\n opacity: .9;\n width: 15px;\n}\n\n.inactive-link {\n color: lightgrey;\n}\n\n.leaflet-container {\n height: 400px;\n}\n\n.loader {\n animation: spin 2s linear infinite;\n border: 8px solid #f3f3f3;\n border-top: 8px solid #3498db;\n border-radius: 50%;\n height: 60px;\n margin-left: 41%;\n width: 60px;\n}\n\n@keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n\n.map-attribution {\n bottom: 0;\n font-size: 11px;\n position: absolute;\n}\n\n.map-attribution-text {\n background-color: rgba(255, 255, 255, .5);\n padding-left: 2px;\n padding-right: 2px;\n}\n\n.no-picture {\n color: #405976;\n}\n\n.page-title {\n font-size: 2em;\n margin: 1em;\n text-align: center;\n}\n\n.password-forget {\n margin: 10px;\n font-size: .9em;\n font-style: italic;\n}\n\n.radioLabel {\n text-align: center;\n}\n\n.record-logo {\n margin-right: 5px;\n max-width: 25px;\n max-height: 25px;\n}\n\n.record-table table, .record-table th, .record-table td{\n font-size: 0.9em;\n padding: 0.1em;\n}\n\n.remaining-chars {\n font-size: 0.8em;\n font-style: italic;\n}\n\n.sport-img {\n max-width: 35px;\n max-height: 35px;\n}\n\n.sport-img-medium {\n max-width: 45px;\n max-height: 45px;\n}\n\n.stats-disabled {\n opacity: 0.3;\n pointer-events: none;\n}\n\n.svg-icon {\n fill: #405976;\n height: 70px;\n margin-left: auto;\n margin-right: auto;\n width: 70px;\n}\n\n.time-frames {\n align-items: center;\n display: inline-flex;\n}\n\n.time-frame label {\n float: left;\n padding: 0 5px;\n}\n\n.time-frame label input {\n display: none;\n}\n\n.time-frame label span {\n border: #a9a9a9 solid 1px;\n border-radius: 9%;\n color: #7b7b7b;\n display: block;\n font-size: 0.9em;\n padding: 2px 6px;\n text-align: center;\n}\n\n.time-frame input:checked + span {\n background-color: #a9a9a9;\n color: #ffffff;\n}\n\n.timezone-custom {\n font-size: .9em !important;\n height: inherit !important;\n}\n\n.timezone-custom input {\n border: 0 !important;\n padding: 5px 1px !important;\n}\n\n.timezone-custom ul {\n background: white;\n}\n\n.timezone-picker {\n padding: 0;\n}\n\n.timezone-picker-textfield {\n font-size: 15px;\n}\n\n.unlink {\n color: black;\n}\n\n.user-bio, .workout-notes {\n white-space: pre-wrap;\n}\n\n.user-filters {\n font-size: 0.9em;\n margin-bottom: 10px;\n}\n\n.user-label {\n font-weight: bold;\n}\n\n.weather-img {\n max-width: 35px;\n max-height: 35px;\n}\n\n.weather-img-small {\n max-width: 20px;\n max-height: 20px;\n}\n\n.weather-table {\n margin-bottom: 0;\n}\n\n.weather-table table, .weather-table th, .weather-table td{\n font-size: 0.9em;\n padding: 0.1em;\n}\n\n.workouts-result {\n font-size: 0.85em;\n}\n\n.workout-card {\n margin-bottom: 15px;\n}\n\n.workout-details {\n font-size: 0.95em;\n}\n.workout-date {\n font-size: 0.75em;\n}\n\n.workout-filter {\n font-size: 0.9em;\n}\n\n.workout-filter .col-2, .col-5{\n padding: 0;\n}\n\n.workout-label {\n font-size: 0.8em;\n color: #666\n}\n\n.workout-logo {\n margin: 0 5px;\n max-width: 20px;\n max-height: 20px;\n}\n\n.workout-map {\n background-color: #eaeaea;\n height: 225px;\n width: 400px;\n}\n\n.workout-no-map {\n background-color: #eaeaea;\n color: #666666;\n font-style: italic;\n height: 400px;\n line-height: 400px;\n}\n\n.workout-notes, .actvity-segments {\n font-size: 0.9em;\n font-style: italic;\n margin-top: 10px;\n padding: 5px;\n}\n\n.workout-page {\n margin-top: 20px;\n}\n\n.workout-segments-list {\n list-style: square;\n}\n\n.workout-sport {\n margin-right: 1px;\n max-width: 18px;\n max-height: 18px;\n}\n\n.workout-title img, .workout-title .map-attribution-list {\n display: none;\n}\n\n.workout-title img {\n border: 1px solid lightgrey;\n border-radius: 4px;\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n display: none;\n margin-left: 20px;\n position: absolute;\n z-index: 1000;\n}\n\n.workout-title .map-attribution-list {\n display: none;\n font-size: 11px;\n margin-left: 20px;\n position: absolute;\n z-index: 1000;\n}\n\n.workout-title:hover img, .workout-title:hover .map-attribution-list {\n display: block;\n}\n\n/* responsive table */\n/* adapted from https://uglyduck.ca/making-tables-responsive-with-minimal-css/ */\n.heading-span,\n.heading-span-absolute {\n background: #eee;\n color: dimgrey;\n display: none;\n font-size: 10px;\n font-weight: bold;\n padding: 5px;\n text-transform: uppercase;\n top: 0;\n left: 0;\n}\n\n.heading-span-absolute {\n position: absolute;\n display: none;\n}\n\n@media(max-width: 1024px) {\n table thead {\n left: -9999px;\n position: absolute;\n visibility: hidden;\n }\n table tr {\n border-bottom: 0;\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n margin-bottom: 40px;\n }\n table td {\n border: 1px solid lightgrey;\n margin: 0 -1px -1px 0;\n padding-top: 30px !important;\n position: relative;\n text-align: center;\n width: 50%;\n }\n .record-tr {\n margin-bottom: 0;\n }\n .record-td {\n padding-top: 0 !important;\n }\n .heading-span, .heading-span-absolute {\n display: block;\n }\n}\n\n/* calendar */\n:root {\n --main-color: #1a8fff;\n --text-color: #777;\n --text-color-light: #ccc;\n --border-color: #eee;\n --bg-color: #f9f9f9;\n --neutral-color: #fff;\n}\n\n.calendar .col-start {\n justify-content: flex-start;\n text-align: left;\n}\n\n.calendar .col-center {\n justify-content: center;\n text-align: center;\n}\n\n.calendar .col-end {\n justify-content: flex-end;\n text-align: right;\n}\n\n.calendar {\n display: block;\n position: relative;\n width: 100%;\n background: var(--neutral-color);\n border: 1px solid var(--border-color);\n}\n\n.calendar .header {\n text-transform: uppercase;\n font-weight: 700;\n /*font-size: 115%;*/\n padding: 0.5em 0;\n border-bottom: 1px solid var(--border-color);\n}\n\n.calendar .header .icon {\n cursor: pointer;\n transition: .15s ease-out;\n}\n\n.calendar .header .icon:hover {\n transform: scale(1.75);\n transition: .25s ease-out;\n color: var(--main-color);\n}\n\n.calendar .header .icon:first-of-type {\n margin-left: 1em;\n}\n\n.calendar .header .icon:last-of-type {\n margin-right: 1em;\n}\n\n.calendar .days {\n text-transform: uppercase;\n font-weight: 400;\n color: var(--text-color-light);\n font-size: 70%;\n padding: .75em 0;\n border-bottom: 1px solid var(--border-color);\n}\n\n.calendar .body .cell {\n position: relative;\n height: 3em;\n border-right: 1px solid var(--border-color);\n background: var(--neutral-color);\n}\n\n.calendar .body .cell:hover {\n background: var(--bg-color);\n}\n\n.calendar .body .selected {\n border-left: 10px solid transparent;\n border-image: linear-gradient(45deg, #1a8fff 0%,#53cbf1 40%);\n}\n\n.calendar .body .row {\n border-bottom: 1px solid var(--border-color);\n margin: 0;\n}\n\n.calendar .body .row:last-child {\n border-bottom: none;\n}\n\n.calendar .body .cell:last-child {\n border-right: none;\n}\n\n.calendar .body .cell .number {\n position: absolute;\n font-size: 82.5%;\n line-height: 1;\n top: .75em;\n right: .75em;\n font-weight: 700;\n}\n\n.calendar .body .disabled {\n color: var(--text-color-light);\n pointer-events: none;\n}\n\n.calendar .body .col {\n flex-grow: 0;\n flex-basis: calc(100%/7);\n width: calc(100%/7);\n}\n\n.calendar .body .img-disabled {\n opacity: .4;\n}\n\n.calendar .body .weekend {\n background: #f5f5f5;\n}\n\n.calendar .body .today {\n background: #eff1f3;\n}\n\n.calendar-workout,\n.calendar-more {\n display: none;\n}\n\n.calendar-more {\n color: #405976;\n font-size: .7em;\n margin-left: 0.3em;\n}\n\n.calendar-display-more {\n background: whitesmoke;\n border-radius: 4px;\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n margin-bottom: 10px;\n padding: 10px 15px;\n position: absolute;\n min-width: 52px;\n z-index: 1000;\n}\n\n.calendar-workout-more {\n display: none;\n}\n\n@media only screen and (max-width: 992px) {\n\n .calendar-workout:nth-child(-n+2),\n .calendar-workout:nth-child(n+3) ~ .calendar-more,\n .calendar-workout-more:nth-child(n+3) {\n display: inline-block;\n }\n\n}\n\n@media only screen and (min-width: 992px) and (max-width: 1200px) {\n\n .calendar-workout:nth-child(-n+4),\n .calendar-workout:nth-child(n+5) ~ .calendar-more,\n .calendar-workout-more:nth-child(n+5) {\n display: inline-block;\n }\n\n}\n\n@media only screen and (min-width: 1200px) {\n\n .calendar-workout:nth-child(-n+6),\n .calendar-workout:nth-child(n+7) ~ .calendar-more,\n .calendar-workout-more:nth-child(n+7) {\n display: inline-block;\n }\n\n}\n"]} \ No newline at end of file diff --git a/fittrackee/dist/static/js/2.08d2122d.chunk.js b/fittrackee/dist/static/js/2.08d2122d.chunk.js new file mode 100644 index 00000000..d27719b3 --- /dev/null +++ b/fittrackee/dist/static/js/2.08d2122d.chunk.js @@ -0,0 +1,3 @@ +/*! For license information please see 2.08d2122d.chunk.js.LICENSE.txt */ +(this.webpackJsonpfittrackee_client=this.webpackJsonpfittrackee_client||[]).push([[2],[function(t,e,n){t.exports=n(266)()},function(t,e,n){"use strict";t.exports=n(270)},function(t,e,n){"use strict";t.exports=n(262)},function(t,e,n){"use strict";function r(t,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}n.d(e,"a",(function(){return r}))},function(t,e){t.exports=function(t){return null==t}},function(t,e,n){var r=n(60),i=n(24);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n=0;r--){var i=e[r](t);if(i)return i}return function(e,r){throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function W(t,e){return t===e}function H(t){var e=void 0===t?{}:t,n=e.connectHOC,r=void 0===n?T:n,i=e.mapStateToPropsFactories,o=void 0===i?L:i,a=e.mapDispatchToPropsFactories,s=void 0===a?C:a,u=e.mergePropsFactories,c=void 0===u?I:u,l=e.selectorFactory,f=void 0===l?B:l;return function(t,e,n,i){void 0===i&&(i={});var a=i,u=a.pure,l=void 0===u||u,p=a.areStatesEqual,m=void 0===p?W:p,y=a.areOwnPropsEqual,v=void 0===y?P:y,g=a.areStatePropsEqual,b=void 0===g?P:g,w=a.areMergedPropsEqual,_=void 0===w?P:w,x=Object(d.a)(a,F),O=U(t,o,"mapStateToProps"),S=U(e,s,"mapDispatchToProps"),k=U(n,c,"mergeProps");return r(f,Object(h.a)({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:O,initMapDispatchToProps:S,initMergeProps:k,pure:l,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:_},x))}}var V=H();var q,Z=n(54);q=Z.unstable_batchedUpdates,a=q},function(t,e,n){"use strict";function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}n.d(e,"a",(function(){return a}));var i=n(211);function o(t,e){return!e||"object"!==Object(i.a)(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=r(t);if(e){var a=r(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return o(this,n)}}},function(t,e,n){"use strict";function r(t,e){return r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(t,e)}function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";function r(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e(s=(a=Math.ceil(h/7))>s?a+1:s+1)&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((s=c.length)-(o=l.length)<0&&(o=s,r=l,l=c,c=r),n=0;o;)n=(c[--o]=c[o]+l[o]+n)/m|0,c[o]%=m;for(n&&(c.unshift(n),++i),s=c.length;0==c[--s];)c.pop();return e.d=c,e.e=i,u?j(e,h):e}function w(t,e,n){if(t!==~~t||tn)throw Error(l+t)}function _(t){var e,n,r,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;et.e^o.s<0?1:-1;for(e=0,n=(r=o.d.length)<(i=t.d.length)?r:i;et.d[e]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},g.decimalPlaces=g.dp=function(){var t=this,e=t.d.length-1,n=7*(e-t.e);if(e=t.d[e])for(;e%10==0;e/=10)n--;return n<0?0:n},g.dividedBy=g.div=function(t){return x(this,new this.constructor(t))},g.dividedToIntegerBy=g.idiv=function(t){var e=this.constructor;return j(x(this,new e(t),0,1),e.precision)},g.equals=g.eq=function(t){return!this.cmp(t)},g.exponent=function(){return S(this)},g.greaterThan=g.gt=function(t){return this.cmp(t)>0},g.greaterThanOrEqualTo=g.gte=function(t){return this.cmp(t)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return 0===this.s},g.lessThan=g.lt=function(t){return this.cmp(t)<0},g.lessThanOrEqualTo=g.lte=function(t){return this.cmp(t)<1},g.logarithm=g.log=function(t){var e,n=this,r=n.constructor,i=r.precision,a=i+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(o))throw Error(c+"NaN");if(n.s<1)throw Error(c+(n.s?"NaN":"-Infinity"));return n.eq(o)?new r(0):(u=!1,e=x(E(n,a),E(t,a),a),u=!0,j(e,i))},g.minus=g.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?M(e,t):b(e,(t.s=-t.s,t))},g.modulo=g.mod=function(t){var e,n=this,r=n.constructor,i=r.precision;if(!(t=new r(t)).s)throw Error(c+"NaN");return n.s?(u=!1,e=x(n,t,0,1).times(t),u=!0,n.minus(e)):j(new r(n),i)},g.naturalExponential=g.exp=function(){return O(this)},g.naturalLogarithm=g.ln=function(){return E(this)},g.negated=g.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},g.plus=g.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?b(e,t):M(e,(t.s=-t.s,t))},g.precision=g.sd=function(t){var e,n,r,i=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(l+t);if(e=S(i)+1,n=7*(r=i.d.length-1)+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return t&&e>n?e:n},g.squareRoot=g.sqrt=function(){var t,e,n,r,i,o,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(c+"NaN")}for(t=S(s),u=!1,0==(i=Math.sqrt(+s))||i==1/0?(((e=_(s.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=h((t+1)/2)-(t<0||t%2),r=new l(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):r=new l(i.toString()),i=a=(n=l.precision)+3;;)if(r=(o=r).plus(x(s,o,a+2)).times(.5),_(o.d).slice(0,a)===(e=_(r.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(j(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if("9999"!=e)break;a+=4}return u=!0,j(r,n)},g.times=g.mul=function(t){var e,n,r,i,o,a,s,c,l,f=this,h=f.constructor,d=f.d,p=(t=new h(t)).d;if(!f.s||!t.s)return new h(0);for(t.s*=f.s,n=f.e+t.e,(c=d.length)<(l=p.length)&&(o=d,d=p,p=o,a=c,c=l,l=a),o=[],r=a=c+l;r--;)o.push(0);for(r=l;--r>=0;){for(e=0,i=c+r;i>r;)s=o[i]+p[r]*d[i-r-1]+e,o[i--]=s%m|0,e=s/m|0;o[i]=(o[i]+e)%m|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=n,u?j(t,h.precision):t},g.toDecimalPlaces=g.todp=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(w(t,0,a),void 0===e?e=r.rounding:w(e,0,8),j(n,t+S(n)+1,e))},g.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=A(r,!0):(w(t,0,a),void 0===e?e=i.rounding:w(e,0,8),n=A(r=j(new i(r),t+1,e),!0,t+1)),n},g.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?A(i):(w(t,0,a),void 0===e?e=o.rounding:w(e,0,8),n=A((r=j(new o(i),t+S(i)+1,e)).abs(),!1,t+S(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},g.toInteger=g.toint=function(){var t=this,e=t.constructor;return j(new e(t),S(t)+1,e.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(t){var e,n,r,i,a,s,l=this,f=l.constructor,d=+(t=new f(t));if(!t.s)return new f(o);if(!(l=new f(l)).s){if(t.s<1)throw Error(c+"Infinity");return l}if(l.eq(o))return l;if(r=f.precision,t.eq(o))return j(l,r);if(s=(e=t.e)>=(n=t.d.length-1),a=l.s,s){if((n=d<0?-d:d)<=y){for(i=new f(o),e=Math.ceil(r/7+4),u=!1;n%2&&C((i=i.times(l)).d,e),0!==(n=h(n/2));)C((l=l.times(l)).d,e);return u=!0,t.s<0?new f(o).div(i):j(i,r)}}else if(a<0)throw Error(c+"NaN");return a=a<0&&1&t.d[Math.max(e,n)]?-1:1,l.s=1,u=!1,i=t.times(E(l,r+12)),u=!0,(i=O(i)).s=a,i},g.toPrecision=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?r=A(i,(n=S(i))<=o.toExpNeg||n>=o.toExpPos):(w(t,1,a),void 0===e?e=o.rounding:w(e,0,8),r=A(i=j(new o(i),t,e),t<=(n=S(i))||n<=o.toExpNeg,t)),r},g.toSignificantDigits=g.tosd=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(w(t,1,a),void 0===e?e=n.rounding:w(e,0,8)),j(new n(this),t,e)},g.toString=g.valueOf=g.val=g.toJSON=function(){var t=this,e=S(t),n=t.constructor;return A(t,e<=n.toExpNeg||e>=n.toExpPos)};var x=function(){function t(t,e){var n,r=0,i=t.length;for(t=t.slice();i--;)n=t[i]*e+r,t[i]=n%m|0,r=n/m|0;return r&&t.unshift(r),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function n(t,e,n){for(var r=0;n--;)t[n]-=r,r=t[n]1;)t.shift()}return function(r,i,o,a){var s,u,l,f,h,d,p,y,v,g,b,w,_,x,O,k,T,E,P=r.constructor,M=r.s==i.s?1:-1,A=r.d,C=i.d;if(!r.s)return new P(r);if(!i.s)throw Error(c+"Division by zero");for(u=r.e-i.e,T=C.length,O=A.length,y=(p=new P(M)).d=[],l=0;C[l]==(A[l]||0);)++l;if(C[l]>(A[l]||0)&&--u,(w=null==o?o=P.precision:a?o+(S(r)-S(i))+1:o)<0)return new P(0);if(w=w/7+2|0,l=0,1==T)for(f=0,C=C[0],w++;(l1&&(C=t(C,f),A=t(A,f),T=C.length,O=A.length),x=T,g=(v=A.slice(0,T)).length;g=m/2&&++k;do{f=0,(s=e(C,v,T,g))<0?(b=v[0],T!=g&&(b=b*m+(v[1]||0)),(f=b/k|0)>1?(f>=m&&(f=m-1),1==(s=e(h=t(C,f),v,d=h.length,g=v.length))&&(f--,n(h,T16)throw Error(f+S(t));if(!t.s)return new h(o);for(null==e?(u=!1,s=p):s=e,a=new h(.03125);t.abs().gte(.1);)t=t.times(a),l+=5;for(s+=Math.log(d(2,l))/Math.LN10*2+5|0,n=r=i=new h(o),h.precision=s;;){if(r=j(r.times(t),s),n=n.times(++c),_((a=i.plus(x(r,n,s))).d).slice(0,s)===_(i.d).slice(0,s)){for(;l--;)i=j(i.times(i),s);return h.precision=p,null==e?(u=!0,j(i,p)):i}i=a}}function S(t){for(var e=7*t.e,n=t.d[0];n>=10;n/=10)e++;return e}function k(t,e,n){if(e>t.LN10.sd())throw u=!0,n&&(t.precision=n),Error(c+"LN10 precision limit exceeded");return j(new t(t.LN10),e)}function T(t){for(var e="";t--;)e+="0";return e}function E(t,e){var n,r,i,a,s,l,f,h,d,p=1,m=t,y=m.d,v=m.constructor,g=v.precision;if(m.s<1)throw Error(c+(m.s?"NaN":"-Infinity"));if(m.eq(o))return new v(0);if(null==e?(u=!1,h=g):h=e,m.eq(10))return null==e&&(u=!0),k(v,h);if(h+=10,v.precision=h,r=(n=_(y)).charAt(0),a=S(m),!(Math.abs(a)<15e14))return f=k(v,h+2,g).times(a+""),m=E(new v(r+"."+n.slice(1)),h-10).plus(f),v.precision=g,null==e?(u=!0,j(m,g)):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=_((m=m.times(t)).d)).charAt(0),p++;for(a=S(m),r>1?(m=new v("0."+n),a++):m=new v(r+"."+n.slice(1)),l=s=m=x(m.minus(o),m.plus(o),h),d=j(m.times(m),h),i=3;;){if(s=j(s.times(d),h),_((f=l.plus(x(s,new v(i),h))).d).slice(0,h)===_(l.d).slice(0,h))return l=l.times(2),0!==a&&(l=l.plus(k(v,h+2,g).times(a+""))),l=x(l,new v(p),h),v.precision=g,null==e?(u=!0,j(l,g)):l;l=f,i+=2}}function P(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);)++r;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(r,i)){if(i-=r,n=n-r-1,t.e=h(n/7),t.d=[],r=(n+1)%7,n<0&&(r+=7),rv||t.e<-v))throw Error(f+n)}else t.s=0,t.e=0,t.d=[0];return t}function j(t,e,n){var r,i,o,a,s,c,l,p,y=t.d;for(a=1,o=y[0];o>=10;o/=10)a++;if((r=e-a)<0)r+=7,i=e,l=y[p=0];else{if((p=Math.ceil((r+1)/7))>=(o=y.length))return t;for(l=o=y[p],a=1;o>=10;o/=10)a++;i=(r%=7)-7+a}if(void 0!==n&&(s=l/(o=d(10,a-i-1))%10|0,c=e<0||void 0!==y[p+1]||l%o,c=n<4?(s||c)&&(0==n||n==(t.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?i>0?l/d(10,a-i):0:y[p-1])%10&1||n==(t.s<0?8:7))),e<1||!y[0])return c?(o=S(t),y.length=1,e=e-o-1,y[0]=d(10,(7-e%7)%7),t.e=h(-e/7)||0):(y.length=1,y[0]=t.e=t.s=0),t;if(0==r?(y.length=p,o=1,p--):(y.length=p+1,o=d(10,7-r),y[p]=i>0?(l/d(10,a-i)%d(10,i)|0)*o:0),c)for(;;){if(0==p){(y[0]+=o)==m&&(y[0]=1,++t.e);break}if(y[p]+=o,y[p]!=m)break;y[p--]=0,o=1}for(r=y.length;0===y[--r];)y.pop();if(u&&(t.e>v||t.e<-v))throw Error(f+S(t));return t}function M(t,e){var n,r,i,o,a,s,c,l,f,h,d=t.constructor,p=d.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new d(t),u?j(e,p):e;if(c=t.d,h=e.d,r=e.e,l=t.e,c=c.slice(),a=l-r){for((f=a<0)?(n=c,a=-a,s=h.length):(n=h,r=l,s=c.length),a>(i=Math.max(Math.ceil(p/7),s)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((f=(i=c.length)<(s=h.length))&&(s=i),i=0;i0;--i)c[s++]=0;for(i=h.length;i>a;){if(c[--i]0?o=o.charAt(0)+"."+o.slice(1)+T(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+T(-i-1)+o,n&&(r=n-a)>0&&(o+=T(r))):i>=a?(o+=T(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+T(r))):((r=i+1)0&&(i+1===a&&(o+="."),o+=T(r))),t.s<0?"-"+o:o}function C(t,e){if(t.length>e)return t.length=e,!0}function L(t){if(!t||"object"!==typeof t)throw Error(c+"Object expected");var e,n,r,i=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e=i[e+1]&&r<=i[e+2]))throw Error(l+n+": "+r);this[n]=r}if(void 0!==(r=t[n="LN10"])){if(r!=Math.LN10)throw Error(l+n+": "+r);this[n]=new this(r)}return this}s=function t(e){var n,r,i;function o(t){var e=this;if(!(e instanceof o))return new o(t);if(e.constructor=o,t instanceof o)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"===typeof t){if(0*t!==0)throw Error(l+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):P(e,t.toString())}if("string"!==typeof t)throw Error(l+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!p.test(t))throw Error(l+t);P(e,t)}if(o.prototype=g,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=L,void 0===e&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},W=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e},H=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===e?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},V=function(t){var e=K(t,y.TITLE),n=K(t,L);if(n&&e)return n.replace(/%s/g,(function(){return Array.isArray(e)?e.join(""):e}));var r=K(t,j);return e||r||void 0},q=function(t){return K(t,C)||function(){}},Z=function(t,e){return e.filter((function(e){return"undefined"!==typeof e[t]})).map((function(e){return e[t]})).reduce((function(t,e){return F({},t,e)}),{})},G=function(t,e){return e.filter((function(t){return"undefined"!==typeof t[y.BASE]})).map((function(t){return t[y.BASE]})).reverse().reduce((function(e,n){if(!e.length)for(var r=Object.keys(n),i=0;i=0;n--){var r=t[n];if(r.hasOwnProperty(e))return r[e]}return null},$=function(){var t=Date.now();return function(e){var n=Date.now();n-t>16?(t=n,e(n)):setTimeout((function(){$(e)}),0)}}(),X=function(t){return clearTimeout(t)},J="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||$:t.requestAnimationFrame||$,Q="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||X:t.cancelAnimationFrame||X,tt=function(t){return console&&"function"===typeof console.warn&&console.warn(t)},et=null,nt=function(t,e){var n=t.baseTag,r=t.bodyAttributes,i=t.htmlAttributes,o=t.linkTags,a=t.metaTags,s=t.noscriptTags,u=t.onChangeClientState,c=t.scriptTags,l=t.styleTags,f=t.title,h=t.titleAttributes;ot(y.BODY,r),ot(y.HTML,i),it(f,h);var d={baseTag:at(y.BASE,n),linkTags:at(y.LINK,o),metaTags:at(y.META,a),noscriptTags:at(y.NOSCRIPT,s),scriptTags:at(y.SCRIPT,c),styleTags:at(y.STYLE,l)},p={},m={};Object.keys(d).forEach((function(t){var e=d[t],n=e.newTags,r=e.oldTags;n.length&&(p[t]=n),r.length&&(m[t]=d[t].oldTags)})),e&&e(),u(t,p,m)},rt=function(t){return Array.isArray(t)?t.join(""):t},it=function(t,e){"undefined"!==typeof t&&document.title!==t&&(document.title=rt(t)),ot(y.TITLE,e)},ot=function(t,e){var n=document.getElementsByTagName(t)[0];if(n){for(var r=n.getAttribute(D),i=r?r.split(","):[],o=[].concat(i),a=Object.keys(e),s=0;s=0;f--)n.removeAttribute(o[f]);i.length===o.length?n.removeAttribute(D):n.getAttribute(D)!==a.join(",")&&n.setAttribute(D,a.join(","))}},at=function(t,e){var n=document.head||document.querySelector(y.HEAD),r=n.querySelectorAll(t+"["+"data-react-helmet]"),i=Array.prototype.slice.call(r),o=[],a=void 0;return e&&e.length&&e.forEach((function(e){var n=document.createElement(t);for(var r in e)if(e.hasOwnProperty(r))if(r===_)n.innerHTML=e.innerHTML;else if(r===g)n.styleSheet?n.styleSheet.cssText=e.cssText:n.appendChild(document.createTextNode(e.cssText));else{var s="undefined"===typeof e[r]?"":e[r];n.setAttribute(r,s)}n.setAttribute(D,"true"),i.some((function(t,e){return a=e,n.isEqualNode(t)}))?i.splice(a,1):o.push(n)})),i.forEach((function(t){return t.parentNode.removeChild(t)})),o.forEach((function(t){return n.appendChild(t)})),{oldTags:i,newTags:o}},st=function(t){return Object.keys(t).reduce((function(e,n){var r="undefined"!==typeof t[n]?n+'="'+t[n]+'"':""+n;return e?e+" "+r:r}),"")},ut=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[P[n]||n]=t[n],e}),e)},ct=function(t,e,n){switch(t){case y.TITLE:return{toComponent:function(){return function(t,e,n){var r,i=((r={key:e})[D]=!0,r),o=ut(n,i);return[l.a.createElement(y.TITLE,o,e)]}(0,e.title,e.titleAttributes)},toString:function(){return function(t,e,n,r){var i=st(n),o=rt(e);return i?"<"+t+' data-react-helmet="true" '+i+">"+H(o,r)+"":"<"+t+' data-react-helmet="true">'+H(o,r)+""}(t,e.title,e.titleAttributes,n)}};case d:case p:return{toComponent:function(){return ut(e)},toString:function(){return st(e)}};default:return{toComponent:function(){return function(t,e){return e.map((function(e,n){var r,i=((r={key:n})[D]=!0,r);return Object.keys(e).forEach((function(t){var n=P[t]||t;if(n===_||n===g){var r=e.innerHTML||e.cssText;i.dangerouslySetInnerHTML={__html:r}}else i[n]=e[t]})),l.a.createElement(t,i)}))}(t,e)},toString:function(){return function(t,e,n){return e.reduce((function(e,r){var i=Object.keys(r).filter((function(t){return!(t===_||t===g)})).reduce((function(t,e){var i="undefined"===typeof r[e]?e:e+'="'+H(r[e],n)+'"';return t?t+" "+i:i}),""),o=r.innerHTML||r.cssText||"",a=-1===I.indexOf(t);return e+"<"+t+' data-react-helmet="true" '+i+(a?"/>":">"+o+"")}),"")}(t,e,n)}}}},lt=function(t){var e=t.baseTag,n=t.bodyAttributes,r=t.encode,i=t.htmlAttributes,o=t.linkTags,a=t.metaTags,s=t.noscriptTags,u=t.scriptTags,c=t.styleTags,l=t.title,f=void 0===l?"":l,h=t.titleAttributes;return{base:ct(y.BASE,e,r),bodyAttributes:ct(d,n,r),htmlAttributes:ct(p,i,r),link:ct(y.LINK,o,r),meta:ct(y.META,a,r),noscript:ct(y.NOSCRIPT,s,r),script:ct(y.SCRIPT,u,r),style:ct(y.STYLE,c,r),title:ct(y.TITLE,{title:f,titleAttributes:h},r)}},ft=function(t){var e,n;return n=e=function(e){function n(){return z(this,n),W(this,e.apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,e),n.prototype.shouldComponentUpdate=function(t){return!u()(this.props,t)},n.prototype.mapNestedChildrenToProps=function(t,e){if(!e)return null;switch(t.type){case y.SCRIPT:case y.NOSCRIPT:return{innerHTML:e};case y.STYLE:return{cssText:e}}throw new Error("<"+t.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(t){var e,n=t.child,r=t.arrayTypeChildren,i=t.newChildProps,o=t.nestedChildren;return F({},r,((e={})[n.type]=[].concat(r[n.type]||[],[F({},i,this.mapNestedChildrenToProps(n,o))]),e))},n.prototype.mapObjectTypeChildren=function(t){var e,n,r=t.child,i=t.newProps,o=t.newChildProps,a=t.nestedChildren;switch(r.type){case y.TITLE:return F({},i,((e={})[r.type]=a,e.titleAttributes=F({},o),e));case y.BODY:return F({},i,{bodyAttributes:F({},o)});case y.HTML:return F({},i,{htmlAttributes:F({},o)})}return F({},i,((n={})[r.type]=F({},o),n))},n.prototype.mapArrayTypeChildrenToProps=function(t,e){var n=F({},e);return Object.keys(t).forEach((function(e){var r;n=F({},n,((r={})[e]=t[e],r))})),n},n.prototype.warnOnInvalidChildren=function(t,e){return!0},n.prototype.mapChildrenToProps=function(t,e){var n=this,r={};return l.a.Children.forEach(t,(function(t){if(t&&t.props){var i=t.props,o=i.children,a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[N[n]||n]=t[n],e}),e)}(U(i,["children"]));switch(n.warnOnInvalidChildren(t,o),t.type){case y.LINK:case y.META:case y.NOSCRIPT:case y.SCRIPT:case y.STYLE:r=n.flattenArrayTypeChildren({child:t,arrayTypeChildren:r,newChildProps:a,nestedChildren:o});break;default:e=n.mapObjectTypeChildren({child:t,newProps:e,newChildProps:a,nestedChildren:o})}}})),e=this.mapArrayTypeChildrenToProps(r,e)},n.prototype.render=function(){var e=this.props,n=e.children,r=U(e,["children"]),i=F({},r);return n&&(i=this.mapChildrenToProps(n,i)),l.a.createElement(t,i)},B(n,null,[{key:"canUseDOM",set:function(e){t.canUseDOM=e}}]),n}(l.a.Component),e.propTypes={base:i.a.object,bodyAttributes:i.a.object,children:i.a.oneOfType([i.a.arrayOf(i.a.node),i.a.node]),defaultTitle:i.a.string,defer:i.a.bool,encodeSpecialCharacters:i.a.bool,htmlAttributes:i.a.object,link:i.a.arrayOf(i.a.object),meta:i.a.arrayOf(i.a.object),noscript:i.a.arrayOf(i.a.object),onChangeClientState:i.a.func,script:i.a.arrayOf(i.a.object),style:i.a.arrayOf(i.a.object),title:i.a.string,titleAttributes:i.a.object,titleTemplate:i.a.string},e.defaultProps={defer:!0,encodeSpecialCharacters:!0},e.peek=t.peek,e.rewind=function(){var e=t.rewind();return e||(e=lt({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},n}(a()((function(t){return{baseTag:G([b,E],t),bodyAttributes:Z(d,t),defer:K(t,M),encode:K(t,A),htmlAttributes:Z(p,t),linkTags:Y(y.LINK,[k,b],t),metaTags:Y(y.META,[O,v,w,S,x],t),noscriptTags:Y(y.NOSCRIPT,[_],t),onChangeClientState:q(t),scriptTags:Y(y.SCRIPT,[T,_],t),styleTags:Y(y.STYLE,[g],t),title:V(t),titleAttributes:Z(m,t)}}),(function(t){et&&Q(et),t.defer?et=J((function(){nt(t,(function(){et=null}))})):(nt(t),et=null)}),lt)((function(){return null})));ft.renderStatic=ft.rewind}).call(this,n(51))},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var r="@@router/LOCATION_CHANGE",i=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:r,payload:{location:t,action:e,isFirstRendering:n}}},o="@@router/CALL_HISTORY_METHOD",a=function(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0;h--){var d=a[h];"."===d?o(a,h):".."===d?(o(a,h),f++):f&&(o(a,h),f--)}if(!c)for(;f--;f)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var p=a.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function s(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}var u=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"===typeof e||"object"===typeof n){var r=s(e),i=s(n);return r!==e||i!==n?t(r,i):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1},c=n(35);function l(t){return"/"===t.charAt(0)?t:"/"+t}function f(t){return"/"===t.charAt(0)?t.substr(1):t}function h(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function d(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function p(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function m(t,e,n,i){var o;"string"===typeof t?(o=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t),o.state=e):(void 0===(o=Object(r.a)({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function y(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&u(t.state,e.state)}function v(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,i){if(null!=t){var o="function"===typeof t?t(e,n):t;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;re?n.splice(e,n.length-e,i):n.push(i),f({action:r,location:i,index:e,entries:n})}}))},replace:function(t,e){var r="REPLACE",i=m(t,e,h(),w.location);l.confirmTransitionTo(i,r,n,(function(t){t&&(w.entries[w.index]=i,f({action:r,location:i}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(t){var e=w.index+t;return e>=0&&e1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=function r(i){n<0&&(n=i),i-n>e?(t(i),n=-1):g()(r)};g()(r)}function w(t){return w="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function _(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function x(){var t=function(){return null},e=!1,n=function n(r){if(!e){if(Array.isArray(r)){if(!r.length)return;var i=_(r),o=i[0],a=i.slice(1);return"number"===typeof o?void b(n.bind(null,a),o):(n(o),void b(n.bind(null,a)))}"object"===w(r)&&t(r),"function"===typeof r&&r()}};return{stop:function(){e=!0},start:function(t){e=!1,n(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}var O=n(221),S=n.n(O);function k(t){for(var e=1;e=0&&t<=1}));var l=B(r,o),f=B(i,a),h=F(r,o),d=function(t){return t>1?1:t<0?0:t},p=function(t){for(var e=t>1?1:t,n=e,r=0;r<8;++r){var i=l(n)-e,o=h(n);if(Math.abs(i-e)0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,n=void 0===e?100:e,r=t.damping,i=void 0===r?8:r,o=t.dt,a=void 0===o?17:o,s=function(t,e,r){var o=r+(-(t-e)*n-r*i)*a/1e3,s=r*a/1e3+t;return Math.abs(s-e)=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function et(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e0?n[i-1]:r,h=c||Object.keys(u);if("function"===typeof s||"spring"===s)return et(t).concat([e.runJSAnimation.bind(e,{from:f.style,to:u,duration:o,easing:s}),o]);var d=L(h,o,s),p=nt({},f.style,u,{transition:d});return et(t).concat([p,o,l]).filter(M)}),[a,Math.max(u,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=x());var e=t.begin,n=t.duration,r=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,s=t.onAnimationEnd,u=t.steps,c=t.children,l=this.manager;if(this.unSubscribe=l.subscribe(this.handleStyleChange),"function"!==typeof o&&"function"!==typeof c&&"spring"!==o)if(u.length>1)this.runStepAnimation(t);else{var f=r?rt({},r,i):i,h=L(Object.keys(f),n,o);l.start([a,e,nt({},f,{transition:h}),n,s])}else this.runJSAnimation(t)}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"render",value:function(){var t=this.props,e=t.children,n=(t.begin,t.duration,t.attributeName,t.easing,t.isActive),r=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,tt(t,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),i=f.Children.count(e),o=C(this.state.style);if("function"===typeof e)return e(o);if(!n||0===i)return e;var a=function(t){var e=t.props,n=e.style,i=void 0===n?{}:n,a=e.className;return Object(f.cloneElement)(t,nt({},r,{style:nt({},i,o),className:a}))};return 1===i?a(f.Children.only(e)):h.a.createElement("div",null,f.Children.map(e,(function(t){return a(t)})))}}],r&&it(n.prototype,r),i&&it(n,i),e}(f.PureComponent);ct.displayName="Animate",ct.propTypes={from:p.a.oneOfType([p.a.object,p.a.string]),to:p.a.oneOfType([p.a.object,p.a.string]),attributeName:p.a.string,duration:p.a.number,begin:p.a.number,easing:p.a.oneOfType([p.a.string,p.a.func]),steps:p.a.arrayOf(p.a.shape({duration:p.a.number.isRequired,style:p.a.object.isRequired,easing:p.a.oneOfType([p.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),p.a.func]),properties:p.a.arrayOf("string"),onAnimationEnd:p.a.func})),children:p.a.oneOfType([p.a.node,p.a.func]),isActive:p.a.bool,canBegin:p.a.bool,onAnimationEnd:p.a.func,shouldReAnimate:p.a.bool,onAnimationStart:p.a.func,onAnimationReStart:p.a.func},ct.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};var lt=ct,ft=n(110),ht=n(70),dt=n.n(ht);function pt(t){return pt="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(t)}function mt(){return mt=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function vt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bt(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,n=t.duration;return e&&e.length?e.reduce((function(t,e){return t+(dt()(e.duration)&&e.duration>0?e.duration:0)}),0):dt()(n)?n:0},St=function(t){function e(){var t,n;gt(this,e);for(var r=arguments.length,i=new Array(r),o=0;o0?1:-1},Ut=function(t){return Bt()(t)&&t.indexOf("%")===t.length-1},Wt=function(t){return dt()(t)&&!Rt()(t)},Ht=function(t){return Wt(t)||Bt()(t)},Vt=0,qt=function(t){var e=++Vt;return"".concat(t||"").concat(e)},Zt=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Wt(t)&&!Bt()(t))return r;if(Ut(t)){var o=t.indexOf("%");n=e*parseFloat(t.slice(0,o))/100}else n=+t;return Rt()(n)&&(n=r),i&&n>e&&(n=e),n},Gt=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},Yt=function(t,e){return Wt(t)&&Wt(e)?function(n){return t+n*(e-t)}:function(){return e}},Kt=function(t,e,n){return t&&t.length?t.find((function(t){return t&&("function"===typeof e?e(t):It()(t,e))===n})):null};function $t(t){return $t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$t(t)}function Xt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t))&&"[object Arguments]"!==Object.prototype.toString.call(t))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Jt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qt(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var pe={"aria-current":p.a.string,"aria-details":p.a.any,"aria-disabled":p.a.any,"aria-hidden":p.a.any,"aria-invalid":p.a.any,"aria-keyshortcuts":p.a.any,"aria-label":p.a.any,"aria-roledescription":p.a.any,"aria-autocomplete":p.a.any,"aria-checked":p.a.any,"aria-expanded":p.a.any,"aria-haspopup":p.a.any,"aria-level":p.a.any,"aria-modal":p.a.any,"aria-multiline":p.a.any,"aria-multiselectable":p.a.any,"aria-orientation":p.a.any,"aria-placeholder":p.a.any,"aria-pressed":p.a.any,"aria-readonly":p.a.any,"aria-required":p.a.any,"aria-selected":p.a.any,"aria-sort":p.a.any,"aria-valuemax":p.a.any,"aria-valuemin":p.a.any,"aria-valuenow":p.a.any,"aria-valuetext":p.a.any,"aria-atomic":p.a.any,"aria-busy":p.a.any,"aria-live":p.a.any,"aria-relevant":p.a.any,"aria-dropeffect":p.a.any,"aria-grabbed":p.a.any,"aria-activedescendant":p.a.any,"aria-colcount":p.a.any,"aria-colindex":p.a.any,"aria-colspan":p.a.any,"aria-controls":p.a.any,"aria-describedby":p.a.any,"aria-errormessage":p.a.any,"aria-flowto":p.a.any,"aria-labelledby":p.a.any,"aria-owns":p.a.any,"aria-posinset":p.a.any,"aria-rowcount":p.a.any,"aria-rowindex":p.a.any,"aria-rowspan":p.a.any,"aria-setsize":p.a.any,alignmentBaseline:p.a.string,angle:p.a.number,baselineShift:p.a.string,clip:p.a.string,clipPath:p.a.string,clipRule:p.a.string,color:p.a.string,colorInterpolation:p.a.string,colorInterpolationFilters:p.a.string,colorProfile:p.a.string,colorRendering:p.a.string,cursor:p.a.string,direction:p.a.oneOf(["ltr","rtl","inherit"]),display:p.a.string,dominantBaseline:p.a.string,enableBackground:p.a.string,fill:p.a.string,fillOpacity:p.a.oneOfType([p.a.string,p.a.number]),fillRule:p.a.oneOf(["nonzero","evenodd","inherit"]),filter:p.a.string,floodColor:p.a.string,floodOpacity:p.a.oneOfType([p.a.string,p.a.number]),font:p.a.string,fontFamily:p.a.string,fontSize:p.a.oneOfType([p.a.number,p.a.string]),fontSizeAdjust:p.a.oneOfType([p.a.number,p.a.string]),fontStretch:p.a.oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:p.a.oneOf(["normal","italic","oblique","inherit"]),fontVariant:p.a.oneOf(["normal","small-caps","inherit"]),fontWeight:p.a.oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:p.a.string,glyphOrientationVertical:p.a.string,imageRendering:p.a.oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:p.a.oneOfType([p.a.number,p.a.string]),letterSpacing:p.a.oneOfType([p.a.number,p.a.string]),lightingColor:p.a.string,lineHeight:p.a.oneOfType([p.a.number,p.a.string]),markerEnd:p.a.string,markerMid:p.a.string,markerStart:p.a.string,mask:p.a.string,opacity:p.a.oneOfType([p.a.number,p.a.string]),overflow:p.a.oneOf(["visible","hidden","scroll","auto","inherit"]),pointerEvents:p.a.oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:p.a.oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:p.a.string,stopOpacity:p.a.oneOfType([p.a.number,p.a.string]),stroke:p.a.oneOfType([p.a.number,p.a.string]),strokeDasharray:p.a.string,strokeDashoffset:p.a.oneOfType([p.a.number,p.a.string]),strokeLinecap:p.a.oneOf(["butt","round","square","inherit"]),strokeLinejoin:p.a.oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:p.a.oneOfType([p.a.number,p.a.string]),strokeOpacity:p.a.oneOfType([p.a.number,p.a.string]),strokeWidth:p.a.oneOfType([p.a.number,p.a.string]),textAnchor:p.a.oneOf(["start","middle","end","inherit"]),textDecoration:p.a.oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:p.a.oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),unicodeBidi:p.a.oneOf(["normal","embed","bidi-override","inherit"]),visibility:p.a.oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:p.a.oneOfType([p.a.number,p.a.string]),writingMode:p.a.oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:p.a.string,role:p.a.string,focusable:p.a.string,tabIndex:p.a.string,style:p.a.object,width:p.a.number,height:p.a.number,dx:p.a.number,dy:p.a.number,x:p.a.number,y:p.a.number,r:p.a.number,radius:p.a.oneOfType([p.a.number,p.a.array])},me={onClick:p.a.func,onMouseDown:p.a.func,onMouseUp:p.a.func,onMouseOver:p.a.func,onMouseMove:p.a.func,onMouseOut:p.a.func,onMouseEnter:p.a.func,onMouseLeave:p.a.func,onTouchEnd:p.a.func,onTouchMove:p.a.func,onTouchStart:p.a.func,onTouchCancel:p.a.func},ye={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},ve=["plainline","line","square","rect","circle","cross","diamond","star","triangle","wye","none"],ge=["none"],be=function(t){return"string"===typeof t?t:t?t.displayName||t.name||"Component":""},we=function(t,e){var n=[],r=[];return r=Lt()(e)?e.map((function(t){return be(t)})):[be(e)],h.a.Children.forEach(t,(function(t){var e=t&&t.type&&(t.type.displayName||t.type.name);-1!==r.indexOf(e)&&n.push(t)})),n},_e=function(t,e){var n=we(t,e);return n&&n[0]},xe=function(t){if(!t||u()(t))return null;var e=h.a.isValidElement(t)?t.props:t;if(!le()(e))return null;var n=null;for(var r in e)({}).hasOwnProperty.call(e,r)&&pe[r]&&(n||(n={}),n[r]=e[r]);return n},Oe=function(t,e){return function(n){return t(e,n),null}},Se=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t||u()(t))return null;var r=h.a.isValidElement(t)?t.props:t;if(!le()(r))return null;var i=null;for(var o in r)({}).hasOwnProperty.call(r,o)&&me[o]&&(i||(i={}),i[o]=e||(n?Oe(r[o],r):r[o]));return i},ke=function(t,e,n){return function(r){return t(e,n,r),null}},Te=function(t,e,n){if(!le()(t))return null;var r=null;for(var i in t)({}).hasOwnProperty.call(t,i)&&me[i]&&u()(t[i])&&(r||(r={}),r[i]=ke(t[i],e,n));return r},Ee=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!(!Wt(n)||n<=0||!Wt(r)||r<=0)},Pe=function(){return!("undefined"!==typeof window&&window.document&&window.document.createElement&&window.setTimeout)},je=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Me=function(t,e){if(a()(t)&&a()(e))return!0;if(!a()(t)&&!a()(e)){var n=t.props||{},r=n.children,i=de(n,["children"]),o=e.props||{},s=o.children,u=de(o,["children"]);return r&&s?fe(i,u)&&Ae(r,s):!r&&!s&&fe(i,u)}return!1},Ae=function t(e,n){if(e===n)return!0;if(f.Children.count(e)!==f.Children.count(n))return!1;var r=f.Children.count(e);if(0===r)return!0;if(1===r)return Me(Lt()(e)?e[0]:e,Lt()(n)?n[0]:n);for(var i=0;i=0}(t))n.push(t);else if(t&&e[be(t.type)]){var o=be(t.type),a=e[o],s=a.handler,u=a.once;if(u&&!r[o]||!u){var c=s(t,o,i);Lt()(c)?n=[n].concat(he(c)):n.push(c),r[o]=!0}}})),n},Le=function(t,e){var n=-1;return f.Children.forEach(e,(function(e,r){e===t&&(n=r)})),n};function Ne(t){return Ne="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ne(t)}function Ie(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function De(t){for(var e=1;el[e]+i?Math.max(f,l[e]):Math.max(h,l[e])},n}var n,r,i;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&We(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-e)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===e&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var t,e,n,r=this,i=this.props,o=i.payload,s=i.isAnimationActive,c=i.animationDuration,f=i.animationEasing,d=i.filterNull,p=function(t,e){return!0===t?l()(e,Ve):u()(t)?l()(e,t):e}(i.paylodUniqBy,d&&o&&o.length?o.filter((function(t){return!a()(t.value)})):o),m=p&&p.length,y=this.props,v=y.content,g=y.viewBox,b=y.coordinate,w=y.position,_=y.active,x=De({pointerEvents:"none",visibility:_&&m?"visible":"hidden",position:"absolute",top:0},y.wrapperStyle);if(w&&Wt(w.x)&&Wt(w.y))e=w.x,n=w.y;else{var O=this.state,S=O.boxWidth,k=O.boxHeight;S>0&&k>0&&b?(e=this.getTranslate({key:"x",tooltipDimension:S,viewBoxDimension:g.width}),n=this.getTranslate({key:"y",tooltipDimension:k,viewBoxDimension:g.height})):x.visibility="hidden"}x=De({},C({transform:this.props.useTranslate3d?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")}),{},x),s&&_&&(x=De({},C({transition:"transform ".concat(c,"ms ").concat(f)}),{},x));var T=jt()(He,(Re(t={},"".concat(He,"-right"),Wt(e)&&b&&Wt(b.x)&&e>=b.x),Re(t,"".concat(He,"-left"),Wt(e)&&b&&Wt(b.x)&&e=b.y),Re(t,"".concat(He,"-top"),Wt(n)&&b&&Wt(b.y)&&n0?$e()(n.updateDimensionsImmediate,t.debounce):n.updateDimensionsImmediate,n}var n,r,i;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&rn(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.mounted=!0;var t=this.getContainerSize();t&&this.setState(t)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"getContainerSize",value:function(){return this.container?{containerWidth:this.container.clientWidth,containerHeight:this.container.clientHeight}:null}},{key:"renderChart",value:function(){var t=this.state,e=t.containerWidth,n=t.containerHeight;if(e<0||n<0)return null;var r=this.props,i=r.aspect,o=r.width,a=r.height,s=(r.minWidth,r.minHeight,r.maxHeight),u=r.children;Ut(o)||Ut(a);var c=Ut(o)?e:o,l=Ut(a)?n:a;return i&&i>0&&(c?l=c/i:l&&(c=l*i),s&&l>s&&(l=s)),h.a.cloneElement(u,{width:c,height:l})}},{key:"render",value:function(){var t=this,e=this.props,n=e.minWidth,r=e.minHeight,i=e.width,o=e.height,a=e.maxHeight,s=e.id,u=e.className,c={width:i,height:o,minWidth:n,minHeight:r,maxHeight:a};return h.a.createElement("div",{id:s,className:jt()("recharts-responsive-container",u),style:c,ref:function(e){t.container=e}},this.renderChart(),h.a.createElement(Je.a,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize}))}}])&&tn(n.prototype,r),i&&tn(n,i),e}(f.Component);on.displayName="ResponsiveContainer",on.propTypes={aspect:p.a.number,width:p.a.oneOfType([p.a.string,p.a.number]),height:p.a.oneOfType([p.a.string,p.a.number]),minHeight:p.a.oneOfType([p.a.string,p.a.number]),minWidth:p.a.oneOfType([p.a.string,p.a.number]),maxHeight:p.a.oneOfType([p.a.string,p.a.number]),children:p.a.node.isRequired,debounce:p.a.number,id:p.a.oneOfType([p.a.string,p.a.number]),className:p.a.oneOfType([p.a.string,p.a.number])},on.defaultProps={width:"100%",height:"100%",debounce:0};var an=on,sn=function(){};function un(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function cn(t){this._context=t}cn.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:un(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:un(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function ln(t){this._context=t}ln.prototype={areaStart:sn,areaEnd:sn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:un(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function fn(t){this._context=t}fn.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(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:un(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function hn(t){this._context=t}hn.prototype={areaStart:sn,areaEnd:sn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function dn(t){this._context=t}dn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var pn=function(t){return new dn(t)};function mn(t){return t<0?-1:1}function yn(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(mn(o)+mn(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function vn(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function gn(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function bn(t){this._context=t}function wn(t){this._context=new _n(t)}function _n(t){this._context=t}function xn(t){this._context=t}function On(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var kn=Math.PI,Tn=2*kn,En=1e-6,Pn=Tn-En;function jn(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Mn(){return new jn}jn.prototype=Mn.prototype={constructor:jn,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-t,u=r-e,c=o-t,l=a-e,f=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>En)if(Math.abs(l*s-u*c)>En&&i){var h=n-o,d=r-a,p=s*s+u*u,m=h*h+d*d,y=Math.sqrt(p),v=Math.sqrt(f),g=i*Math.tan((kn-Math.acos((p+f-m)/(2*y*v)))/2),b=g/v,w=g/y;Math.abs(b-1)>En&&(this._+="L"+(t+b*c)+","+(e+b*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>c*d)+","+(this._x1=t+w*s)+","+(this._y1=e+w*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=t+a,c=e+s,l=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>En||Math.abs(this._y1-c)>En)&&(this._+="L"+u+","+c),n&&(f<0&&(f=f%Tn+Tn),f>Pn?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):f>En&&(this._+="A"+n+","+n+",0,"+ +(f>=kn)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var An=Mn,Cn=function(t){return function(){return t}};function Ln(t){return t[0]}function Nn(t){return t[1]}var In=function(){var t=Ln,e=Nn,n=Cn(!0),r=null,i=pn,o=null;function a(a){var s,u,c,l=a.length,f=!1;for(null==r&&(o=i(c=An())),s=0;s<=l;++s)!(s=l;--f)s.point(y[f],v[f]);s.lineEnd(),s.areaEnd()}m&&(y[c]=+t(h,c,u),v[c]=+n(h,c,u),s.point(e?+e(h,c,u):y[c],r?+r(h,c,u):v[c]))}if(d)return s=null,d+""||null}function c(){return In().defined(i).curve(a).context(o)}return u.x=function(n){return arguments.length?(t="function"===typeof n?n:Cn(+n),e=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:Cn(+e),u):t},u.x1=function(t){return arguments.length?(e=null==t?null:"function"===typeof t?t:Cn(+t),u):e},u.y=function(t){return arguments.length?(n="function"===typeof t?t:Cn(+t),r=null,u):n},u.y0=function(t){return arguments.length?(n="function"===typeof t?t:Cn(+t),u):n},u.y1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:Cn(+t),u):r},u.lineX0=u.lineY0=function(){return c().x(t).y(n)},u.lineY1=function(){return c().x(t).y(r)},u.lineX1=function(){return c().x(e).y(n)},u.defined=function(t){return arguments.length?(i="function"===typeof t?t:Cn(!!t),u):i},u.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),u):a},u.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),u):o},u};function Rn(t){return Rn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rn(t)}function zn(){return zn=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var lr={className:p.a.string,children:p.a.oneOfType([p.a.arrayOf(p.a.node),p.a.node])};function fr(t){var e=t.children,n=t.className,r=cr(t,["children","className"]),i=jt()("recharts-layer",n);return h.a.createElement("g",ur({className:i},r),e)}fr.propTypes=lr;var hr=fr,dr=n(225),pr=n.n(dr),mr=n(116),yr=n.n(mr);function vr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function gr(t){for(var e=1;e=0&&i===+i?"".concat(i,"px"):i),";");var r,i,o}),"")},Tr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===t||null===t||Pe())return{width:0,height:0};var n="".concat(t),r=kr(e),i="".concat(n,"-").concat(r);if(_r.widthCache[i])return _r.widthCache[i];try{var o=document.getElementById(Sr);o||((o=document.createElement("span")).setAttribute("id",Sr),document.body.appendChild(o));var a=gr({},xr,{},e);Object.keys(a).map((function(t){return o.style[t]=a[t],t})),o.textContent=n;var s=o.getBoundingClientRect(),u={width:s.width,height:s.height};return _r.widthCache[i]=u,++_r.cacheCount>2e3&&(_r.cacheCount=0,_r.widthCache={}),u}catch(c){return{width:0,height:0}}};function Er(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Pr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jr(t){return jr="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jr(t)}function Mr(){return Mr=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Cr(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=e?n.apply(void 0,i):t(e-a,Jr((function(){for(var t=arguments.length,e=new Array(t),r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);nr&&(i=r,o=n),[i,o]}function hi(t,e,n){if(t.lte(0))return new Zr.a(0);var r=ai.getDigitCount(t.toNumber()),i=new Zr.a(10).pow(r),o=t.div(i),a=1!==r?.05:.1,s=new Zr.a(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return e?s:new Zr.a(Math.ceil(s))}function di(t,e,n){var r=1,i=new Zr.a(t);if(!i.isint()&&n){var o=Math.abs(t);o<1?(r=new Zr.a(10).pow(ai.getDigitCount(t)-1),i=new Zr.a(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new Zr.a(Math.floor(t)))}else 0===t?i=new Zr.a(Math.floor((e-1)/2)):n||(i=new Zr.a(Math.floor(t)));var a=Math.floor((e-1)/2);return ri(ni((function(t){return i.add(new Zr.a(t-a).mul(r)).toNumber()})),ei)(0,e)}function pi(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(n-1)))return{step:new Zr.a(0),tickMin:new Zr.a(0),tickMax:new Zr.a(0)};var o,a=hi(new Zr.a(e).sub(t).div(n-1),r,i);o=t<=0&&e>=0?new Zr.a(0):(o=new Zr.a(t).add(e).div(2)).sub(new Zr.a(o).mod(a));var s=Math.ceil(o.sub(t).div(a).toNumber()),u=Math.ceil(new Zr.a(e).sub(o).div(a).toNumber()),c=s+u+1;return c>n?pi(t,e,n,r,i+1):(c0?u+(n-c):u,s=e>0?s:s+(n-c)),{step:a,tickMin:o.sub(new Zr.a(s).mul(a)),tickMax:o.add(new Zr.a(u).mul(a))})}var mi=oi((function(t){var e=ui(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),s=fi([n,r]),u=ui(s,2),c=u[0],l=u[1];if(c===-1/0||l===1/0){var f=l===1/0?[c].concat(si(ei(0,i-1).map((function(){return 1/0})))):[].concat(si(ei(0,i-1).map((function(){return-1/0}))),[l]);return n>r?ii(f):f}if(c===l)return di(c,i,o);var h=pi(c,l,a,o),d=h.step,p=h.tickMin,m=h.tickMax,y=ai.rangeStep(p,m.add(new Zr.a(.1).mul(d)),d);return n>r?ii(y):y})),yi=(oi((function(t){var e=ui(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),s=fi([n,r]),u=ui(s,2),c=u[0],l=u[1];if(c===-1/0||l===1/0)return[n,r];if(c===l)return di(c,i,o);var f=hi(new Zr.a(l).sub(c).div(a-1),o,0),h=ri(ni((function(t){return new Zr.a(c).add(new Zr.a(t).mul(f)).toNumber()})),ei),d=h(0,a).filter((function(t){return t>=c&&t<=l}));return n>r?ii(d):d})),oi((function(t,e){var n=ui(t,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=fi([r,i]),s=ui(a,2),u=s[0],c=s[1];if(u===-1/0||c===1/0)return[r,i];if(u===c)return[u];var l=Math.max(e,2),f=hi(new Zr.a(c).sub(u).div(l-1),o,0),h=[].concat(si(ai.rangeStep(new Zr.a(u),new Zr.a(c).sub(new Zr.a(.99).mul(f)),f)),[c]);return r>i?ii(h):h}))),vi=function(t,e){return te?1:t>=e?0:NaN},gi=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return vi(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)>0?i=o:r=o+1}return r}}};var bi=gi(vi),wi=bi.right,_i=(bi.left,wi);var xi=function(t){return null===t?NaN:+t},Oi=Array.prototype,Si=(Oi.slice,Oi.map,function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r0)return[t];if((r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s=0?(o>=ki?10:o>=Ti?5:o>=Ei?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=ki?10:o>=Ti?5:o>=Ei?2:1)}function Mi(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=ki?i*=10:o>=Ti?i*=5:o>=Ei&&(i*=2),e=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}};function Ci(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Li(t,e){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(e).domain(t)}return this}var Ni="$";function Ii(){}function Di(t,e){var n=new Ii;if(t instanceof Ii)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)for(;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?yo(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?yo(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=io.exec(t))?new bo(e[1],e[2],e[3],1):(e=oo.exec(t))?new bo(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ao.exec(t))?yo(e[1],e[2],e[3],e[4]):(e=so.exec(t))?yo(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=uo.exec(t))?Oo(e[1],e[2]/100,e[3]/100,1):(e=co.exec(t))?Oo(e[1],e[2]/100,e[3]/100,e[4]):lo.hasOwnProperty(t)?mo(lo[t]):"transparent"===t?new bo(NaN,NaN,NaN,0):null}function mo(t){return new bo(t>>16&255,t>>8&255,255&t,1)}function yo(t,e,n,r){return r<=0&&(t=e=n=NaN),new bo(t,e,n,r)}function vo(t){return t instanceof Xi||(t=po(t)),t?new bo((t=t.rgb()).r,t.g,t.b,t.opacity):new bo}function go(t,e,n,r){return 1===arguments.length?vo(t):new bo(t,e,n,null==r?1:r)}function bo(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function wo(){return"#"+xo(this.r)+xo(this.g)+xo(this.b)}function _o(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function xo(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Oo(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ko(t,e,n,r)}function So(t){if(t instanceof ko)return new ko(t.h,t.s,t.l,t.opacity);if(t instanceof Xi||(t=po(t)),!t)return new ko;if(t instanceof ko)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&u<1?0:a,new ko(a,s,u,t.opacity)}function ko(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function To(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Eo(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}Ki(Xi,po,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:fo,formatHex:fo,formatHsl:function(){return So(this).formatHsl()},formatRgb:ho,toString:ho}),Ki(bo,go,$i(Xi,{brighter:function(t){return t=null==t?Qi:Math.pow(Qi,t),new bo(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Ji:Math.pow(Ji,t),new bo(this.r*t,this.g*t,this.b*t,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:wo,formatHex:wo,formatRgb:_o,toString:_o})),Ki(ko,(function(t,e,n,r){return 1===arguments.length?So(t):new ko(t,e,n,null==r?1:r)}),$i(Xi,{brighter:function(t){return t=null==t?Qi:Math.pow(Qi,t),new ko(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Ji:Math.pow(Ji,t),new ko(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new bo(To(t>=240?t-240:t+120,i,r),To(t,i,r),To(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Po=function(t){return function(){return t}};function jo(t,e){return function(n){return t+n*e}}function Mo(t){return 1===(t=+t)?Ao:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Po(isNaN(e)?n:e)}}function Ao(t,e){var n=e-t;return n?jo(t,n):Po(isNaN(t)?e:t)}var Co=function t(e){var n=Mo(e);function r(t,e){var r=n((t=go(t)).r,(e=go(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Ao(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Lo(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=ro&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:zo(n,r)})),o=Uo.lastIndex;return or&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function $o(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i2?Xo:$o,i=o=null,f}function f(e){return isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(c(e)))}return f.invert=function(n){return c(e((o||(o=r(s,a.map(t),zo)))(n)))},f.domain=function(t){return arguments.length?(a=Wi.call(t,qo),c===Go||(c=Ko(a)),l()):a.slice()},f.range=function(t){return arguments.length?(s=Hi.call(t),l()):s.slice()},f.rangeRound=function(t){return s=Hi.call(t),u=Vo,l()},f.clamp=function(t){return arguments.length?(c=t?Ko(a):Go,f):c!==Go},f.interpolate=function(t){return arguments.length?(u=t,l()):u},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,l()}}function ta(t,e){return Qo()(t,e)}var ea=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function na(t){if(!(e=ea.exec(t)))throw new Error("invalid format: "+t);var e;return new ra({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function ra(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}na.prototype=ra.prototype,ra.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 ia(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}var oa,aa,sa,ua,ca=function(t){return(t=ia(Math.abs(t)))?t[1]:NaN},la=function(t,e){var n=ia(t,e);if(!n)return t+"";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")},fa={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return la(100*t,e)},r:la,s:function(t,e){var n=ia(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(oa=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+ia(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},ha=function(t){return t},da=Array.prototype.map,pa=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];aa=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?ha:(e=da.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?ha:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(da.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=na(t)).fill,n=t.align,f=t.sign,h=t.symbol,d=t.zero,p=t.width,m=t.comma,y=t.precision,v=t.trim,g=t.type;"n"===g?(m=!0,g="g"):fa[g]||(void 0===y&&(y=12),v=!0,g="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",w="$"===h?o:/[%p]/.test(g)?u:"",_=fa[g],x=/[defgprs%]/.test(g);function O(t){var i,o,u,h=b,O=w;if("c"===g)O=_(t)+O,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:_(Math.abs(t),y),v&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),S&&0===+t&&"+"!==f&&(S=!1),h=(S?"("===f?f:c:"-"===f||"("===f?"":f)+h,O=("s"===g?pa[8+oa/3]:"")+O+(S&&"("===f?")":""),x)for(i=-1,o=t.length;++i(u=t.charCodeAt(i))||u>57){O=(46===u?a+t.slice(i+1):t.slice(i))+O,t=t.slice(0,i);break}}m&&!d&&(t=r(t,1/0));var k=h.length+t.length+O.length,T=k>1)+h+t+O+T.slice(k);break;default:t=T+h+t+O}return s(t)}return y=void 0===y?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),O.toString=function(){return t+""},O}return{format:f,formatPrefix:function(t,e){var n=f(((t=na(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(ca(e)/3))),i=Math.pow(10,-r),o=pa[8+r/3];return function(t){return n(i*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),sa=aa.format,ua=aa.formatPrefix;var ma=function(t,e,n,r){var i,o=Mi(t,e,n);switch((r=na(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ca(e)/3)))-ca(Math.abs(t)))}(o,a))||(r.precision=i),ua(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ca(e)-ca(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-ca(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return sa(r)};function ya(t){var e=t.domain;return t.ticks=function(t){var n=e();return Pi(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return ma(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),o=0,a=i.length-1,s=i[o],u=i[a];return u0?r=ji(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=ji(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,e(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,e(i)),t},t}function va(){var t=ta(Go,Go);return t.copy=function(){return Jo(t,va())},Ci.apply(t,arguments),ya(t)}function ga(t){var e;function n(t){return isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Wi.call(e,qo),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return ga(t).unknown(e)},t=arguments.length?Wi.call(t,qo):[0,1],ya(n)}var ba=function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a0){for(;hu)break;m.push(f)}}else for(;h=1;--l)if(!((f=c*l)u)break;m.push(f)}}else m=Pi(h,d,Math.min(d-h,p)).map(n);return r?m.reverse():m},r.tickFormat=function(t,i){if(null==i&&(i=10===o?".0e":","),"function"!==typeof i&&(i=sa(i)),t===1/0)return i;null==t&&(t=10);var a=Math.max(1,o*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*o0?r[i-1]:e[0],i=r?[i[r-1],n]:[i[a-1],i[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Ba().domain([e,n]).range(o).unknown(t)},Ci.apply(ya(a),arguments)}function Fa(){var t,e=[.5],n=[0,1],r=1;function i(i){return i<=i?n[_i(e,i,0,r)]:t}return i.domain=function(t){return arguments.length?(e=Hi.call(t),r=Math.min(e.length,n.length-1),i):e.slice()},i.range=function(t){return arguments.length?(n=Hi.call(t),r=Math.min(e.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return Fa().domain(e).range(n).unknown(t)},Ci.apply(i,arguments)}var Ua=new Date,Wa=new Date;function Ha(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Ua.setTime(+e),Wa.setTime(+r),t(Ua),t(Wa),Math.floor(n(Ua,Wa))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t===0}:function(e){return i.count(0,e)%t===0}):i:null}),i}var Va=Ha((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Va.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ha((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var qa=Va,Za=(Va.range,Ha((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),Ga=Za,Ya=(Za.range,1e3),Ka=6e4,$a=36e5,Xa=864e5,Ja=6048e5;function Qa(t){return Ha((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Ka)/Ja}))}var ts=Qa(0),es=Qa(1),ns=Qa(2),rs=Qa(3),is=Qa(4),os=Qa(5),as=Qa(6),ss=(ts.range,es.range,ns.range,rs.range,is.range,os.range,as.range,Ha((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Ka)/Xa}),(function(t){return t.getDate()-1}))),us=ss,cs=(ss.range,Ha((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ya-t.getMinutes()*Ka)}),(function(t,e){t.setTime(+t+e*$a)}),(function(t,e){return(e-t)/$a}),(function(t){return t.getHours()}))),ls=cs,fs=(cs.range,Ha((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ya)}),(function(t,e){t.setTime(+t+e*Ka)}),(function(t,e){return(e-t)/Ka}),(function(t){return t.getMinutes()}))),hs=fs,ds=(fs.range,Ha((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Ya)}),(function(t,e){return(e-t)/Ya}),(function(t){return t.getUTCSeconds()}))),ps=ds,ms=(ds.range,Ha((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));ms.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ha((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):ms:null};var ys=ms;ms.range;function vs(t){return Ha((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/Ja}))}var gs=vs(0),bs=vs(1),ws=vs(2),_s=vs(3),xs=vs(4),Os=vs(5),Ss=vs(6),ks=(gs.range,bs.range,ws.range,_s.range,xs.range,Os.range,Ss.range,Ha((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Xa}),(function(t){return t.getUTCDate()-1}))),Ts=ks,Es=(ks.range,Ha((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));Es.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ha((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var Ps=Es;Es.range;function js(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ms(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function As(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var Cs,Ls,Ns,Is={"-":"",_:" ",0:"0"},Ds=/^\s*\d+/,Rs=/^%/,zs=/[\\^$*+?|[\]().{}]/g;function Bs(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function $s(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Xs(t,e,n){var r=Ds.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Js(t,e,n){var r=Ds.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Qs(t,e,n){var r=Ds.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function tu(t,e,n){var r=Ds.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function eu(t,e,n){var r=Ds.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function nu(t,e,n){var r=Ds.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ru(t,e,n){var r=Ds.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function iu(t,e,n){var r=Ds.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function ou(t,e,n){var r=Ds.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function au(t,e,n){var r=Rs.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function su(t,e,n){var r=Ds.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function uu(t,e,n){var r=Ds.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function cu(t,e){return Bs(t.getDate(),e,2)}function lu(t,e){return Bs(t.getHours(),e,2)}function fu(t,e){return Bs(t.getHours()%12||12,e,2)}function hu(t,e){return Bs(1+us.count(qa(t),t),e,3)}function du(t,e){return Bs(t.getMilliseconds(),e,3)}function pu(t,e){return du(t,e)+"000"}function mu(t,e){return Bs(t.getMonth()+1,e,2)}function yu(t,e){return Bs(t.getMinutes(),e,2)}function vu(t,e){return Bs(t.getSeconds(),e,2)}function gu(t){var e=t.getDay();return 0===e?7:e}function bu(t,e){return Bs(ts.count(qa(t)-1,t),e,2)}function wu(t){var e=t.getDay();return e>=4||0===e?is(t):is.ceil(t)}function _u(t,e){return t=wu(t),Bs(is.count(qa(t),t)+(4===qa(t).getDay()),e,2)}function xu(t){return t.getDay()}function Ou(t,e){return Bs(es.count(qa(t)-1,t),e,2)}function Su(t,e){return Bs(t.getFullYear()%100,e,2)}function ku(t,e){return Bs((t=wu(t)).getFullYear()%100,e,2)}function Tu(t,e){return Bs(t.getFullYear()%1e4,e,4)}function Eu(t,e){var n=t.getDay();return Bs((t=n>=4||0===n?is(t):is.ceil(t)).getFullYear()%1e4,e,4)}function Pu(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Bs(e/60|0,"0",2)+Bs(e%60,"0",2)}function ju(t,e){return Bs(t.getUTCDate(),e,2)}function Mu(t,e){return Bs(t.getUTCHours(),e,2)}function Au(t,e){return Bs(t.getUTCHours()%12||12,e,2)}function Cu(t,e){return Bs(1+Ts.count(Ps(t),t),e,3)}function Lu(t,e){return Bs(t.getUTCMilliseconds(),e,3)}function Nu(t,e){return Lu(t,e)+"000"}function Iu(t,e){return Bs(t.getUTCMonth()+1,e,2)}function Du(t,e){return Bs(t.getUTCMinutes(),e,2)}function Ru(t,e){return Bs(t.getUTCSeconds(),e,2)}function zu(t){var e=t.getUTCDay();return 0===e?7:e}function Bu(t,e){return Bs(gs.count(Ps(t)-1,t),e,2)}function Fu(t){var e=t.getUTCDay();return e>=4||0===e?xs(t):xs.ceil(t)}function Uu(t,e){return t=Fu(t),Bs(xs.count(Ps(t),t)+(4===Ps(t).getUTCDay()),e,2)}function Wu(t){return t.getUTCDay()}function Hu(t,e){return Bs(bs.count(Ps(t)-1,t),e,2)}function Vu(t,e){return Bs(t.getUTCFullYear()%100,e,2)}function qu(t,e){return Bs((t=Fu(t)).getUTCFullYear()%100,e,2)}function Zu(t,e){return Bs(t.getUTCFullYear()%1e4,e,4)}function Gu(t,e){var n=t.getUTCDay();return Bs((t=n>=4||0===n?xs(t):xs.ceil(t)).getUTCFullYear()%1e4,e,4)}function Yu(){return"+0000"}function Ku(){return"%"}function $u(t){return+t}function Xu(t){return Math.floor(+t/1e3)}!function(t){Cs=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=Us(i),l=Ws(i),f=Us(o),h=Ws(o),d=Us(a),p=Ws(a),m=Us(s),y=Ws(s),v=Us(u),g=Ws(u),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:cu,e:cu,f:pu,g:ku,G:Eu,H:lu,I:fu,j:hu,L:du,m:mu,M:yu,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:$u,s:Xu,S:vu,u:gu,U:bu,V:_u,w:xu,W:Ou,x:null,X:null,y:Su,Y:Tu,Z:Pu,"%":Ku},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:ju,e:ju,f:Nu,g:qu,G:Gu,H:Mu,I:Au,j:Cu,L:Lu,m:Iu,M:Du,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:$u,s:Xu,S:Ru,u:zu,U:Bu,V:Uu,w:Wu,W:Hu,x:null,X:null,y:Vu,Y:Zu,Z:Yu,"%":Ku},_={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return S(t,e,n,r)},d:Qs,e:Qs,f:ou,g:Ks,G:Ys,H:eu,I:eu,j:tu,L:iu,m:Js,M:nu,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1},q:Xs,Q:su,s:uu,S:ru,u:Vs,U:qs,V:Zs,w:Hs,W:Gs,x:function(t,e,r){return S(t,n,e,r)},X:function(t,e,n){return S(t,r,e,n)},y:Ks,Y:Ys,Z:$s,"%":au};function x(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Ms(As(o.y,0,1))).getUTCDay(),r=i>4||0===i?bs.ceil(r):bs(r),r=Ts.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=js(As(o.y,0,1))).getDay(),r=i>4||0===i?es.ceil(r):es(r),r=us.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Ms(As(o.y,0,1)).getUTCDay():js(As(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Ms(o)):js(o)}}function S(t,e,n,r){for(var i,o,a=0,s=e.length,u=n.length;a=u)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=_[i in Is?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=x(n,b),b.X=x(r,b),b.c=x(e,b),w.x=x(n,w),w.X=x(r,w),w.c=x(e,w),{format:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=O(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=O(t+="",!0);return e.toString=function(){return t},e}}}(t),Ls=Cs.format,Cs.parse,Ns=Cs.utcFormat,Cs.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Ju=1e3,Qu=6e4,tc=36e5,ec=864e5,nc=2592e6,rc=31536e6;function ic(t){return new Date(t)}function oc(t){return t instanceof Date?+t:+new Date(+t)}function ac(t,e,n,r,i,o,a,s,u){var c=ta(Go,Go),l=c.invert,f=c.domain,h=u(".%L"),d=u(":%S"),p=u("%I:%M"),m=u("%I %p"),y=u("%a %d"),v=u("%b %d"),g=u("%B"),b=u("%Y"),w=[[a,1,Ju],[a,5,5e3],[a,15,15e3],[a,30,3e4],[o,1,Qu],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,tc],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,ec],[r,2,1728e5],[n,1,6048e5],[e,1,nc],[e,3,7776e6],[t,1,rc]];function _(s){return(a(s)1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o=0;)n[e]=e;return n};function Cc(t,e){return t[e]}function Lc(t){return Lc="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lc(t)}function Nc(){return Nc=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Rc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zc(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var Zc={width:p.a.number.isRequired,height:p.a.number.isRequired,viewBox:p.a.shape({x:p.a.number,y:p.a.number,width:p.a.number,height:p.a.number}),className:p.a.string,style:p.a.object,children:p.a.oneOfType([p.a.arrayOf(p.a.node),p.a.node])};function Gc(t){var e=t.children,n=t.width,r=t.height,i=t.viewBox,o=t.className,a=t.style,s=qc(t,["children","width","height","viewBox","className","style"]),u=i||{width:n,height:r,x:0,y:0},c=jt()("recharts-surface",o),l=xe(s);return h.a.createElement("svg",Vc({},l,{className:c,width:n,height:r,style:a,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height),version:"1.1"}),e)}Gc.propTypes=Zc;var Yc=Gc,Kc=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI),$c=2*Kc;var Xc={draw:function(t,e){var n=Math.sqrt(e/Kc);t.moveTo(n,0),t.arc(0,0,n,0,$c)}},Jc={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},Qc=Math.sqrt(1/3),tl=2*Qc,el={draw:function(t,e){var n=Math.sqrt(e/tl),r=n*Qc;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},nl={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},rl=Math.sin(Kc/10)/Math.sin(7*Kc/10),il=Math.sin($c/10)*rl,ol=-Math.cos($c/10)*rl,al={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=il*n,i=ol*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var a=$c*o/5,s=Math.cos(a),u=Math.sin(a);t.lineTo(u*n,-s*n),t.lineTo(s*r-u*i,u*r+s*i)}t.closePath()}},sl=Math.sqrt(3),ul={draw:function(t,e){var n=-Math.sqrt(e/(3*sl));t.moveTo(0,2*n),t.lineTo(-sl*n,-n),t.lineTo(sl*n,-n),t.closePath()}},cl=-.5,ll=Math.sqrt(3)/2,fl=1/Math.sqrt(12),hl=3*(fl/2+1),dl={draw:function(t,e){var n=Math.sqrt(e/hl),r=n/2,i=n*fl,o=r,a=n*fl+n,s=-o,u=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,u),t.lineTo(cl*r-ll*i,ll*r+cl*i),t.lineTo(cl*o-ll*a,ll*o+cl*a),t.lineTo(cl*s-ll*u,ll*s+cl*u),t.lineTo(cl*r+ll*i,cl*i-ll*r),t.lineTo(cl*o+ll*a,cl*a-ll*o),t.lineTo(cl*s+ll*u,cl*u-ll*s),t.closePath()}};function pl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ml(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yl(t){return yl="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yl(t)}function vl(){return vl=Object.assign||function(t){for(var e=1;e=0&&n>=0?{width:e,height:n}:null}},{key:"getDefaultPosition",value:function(t){var e,n,r=this.props,i=r.layout,o=r.align,a=r.verticalAlign,s=r.margin,u=r.chartWidth,c=r.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===o&&"vertical"===i?{left:((u||0)-(this.getBBox()||{width:0}).width)/2}:"right"===o?{right:s&&s.right||0}:{left:s&&s.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(n="middle"===a?{top:((c||0)-(this.getBBox()||{height:0}).height)/2}:"bottom"===a?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),Ul({},e,{},n)}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var i=this.wrapperNode.getBoundingClientRect();(Math.abs(i.width-e)>1||Math.abs(i.height-n)>1)&&this.setState({boxWidth:i.width,boxHeight:i.height},(function(){r&&r(i)}))}else-1===e&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,r=e.width,i=e.height,o=e.wrapperStyle,a=e.paylodUniqBy,s=e.payload,c=Ul({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(o),{},o);return h.a.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(e){t.wrapperNode=e}},function(t,e){return h.a.isValidElement(t)?h.a.cloneElement(t,e):u()(t)?t(e):h.a.createElement(zl,e)}(n,Ul({},this.props,{payload:Kl(a,s)})))}}])&&Vl(n.prototype,r),i&&Vl(n,i),e}(f.PureComponent);Xl.displayName="Legend",Xl.propTypes={content:p.a.oneOfType([p.a.element,p.a.func]),wrapperStyle:p.a.object,chartWidth:p.a.number,chartHeight:p.a.number,width:p.a.number,height:p.a.number,iconSize:p.a.number,iconType:p.a.oneOf($l),layout:p.a.oneOf(["horizontal","vertical"]),align:p.a.oneOf(["center","left","right"]),verticalAlign:p.a.oneOf(["top","bottom","middle"]),margin:p.a.shape({top:p.a.number,left:p.a.number,bottom:p.a.number,right:p.a.number}),payload:p.a.arrayOf(p.a.shape({value:p.a.any,id:p.a.any,type:p.a.oneOf(ve)})),paylodUniqBy:p.a.oneOfType([p.a.func,p.a.bool]),formatter:p.a.func,onMouseEnter:p.a.func,onMouseLeave:p.a.func,onClick:p.a.func,onBBoxUpdate:p.a.func},Xl.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"};var Jl=Xl;function Ql(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e=0}));if(o&&o.length){var s=o.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var r=rf(e,n,0),i=Lt()(r)?[Wr()(r),Fr()(r)]:[r,r],o=s.reduce((function(t,n){var r=rf(e,n,0),o=i[0]-Math.abs(Lt()(r)?r[0]:r),a=i[1]+Math.abs(Lt()(r)?r[1]:r);return[Math.min(o,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]}),[1/0,-1/0])}return null},cf=function(t,e,n,r){var i=e.map((function(e){var i=e.props.dataKey;return"number"===n&&i&&uf(t,e,i)||of(t,i,n,r)}));if("number"===n)return i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var o={};return i.reduce((function(t,e){for(var n=0,r=e.length;n=0||e.indexOf("AreaChart")>=0)?{scale:Yi(),realScaleType:"point"}:"category"===i?{scale:Zi(),realScaleType:"band"}:{scale:va(),realScaleType:"linear"};if(Bt()(n)){var s="scale".concat(n.slice(0,1).toUpperCase()).concat(n.slice(1));return{scale:(r[s]||Yi)(),realScaleType:r[s]?s:"point"}}return u()(n)?{scale:n}:{scale:Yi(),realScaleType:"point"}},mf=1e-4,yf=function(t){var e=t.domain();if(e&&!(e.length<=2)){var n=e.length,r=t.range(),i=Math.min(r[0],r[1])-mf,o=Math.max(r[0],r[1])+mf,a=t(e[0]),s=t(e[n-1]);(ao||so)&&t.domain([e[0],e[n-1]])}},vf={sign:function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n=0?(t[a][n][0]=i,t[a][n][1]=i+s,i=t[a][n][1]):(t[a][n][0]=o,t[a][n][1]=o+s,o=t[a][n][1])}},expand:function(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o0){for(var n,r=0,i=t[e[0]],o=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a=2){for(var n=At()(e,(function(t){return t.coordinate})),r=1/0,i=1,o=n.length;io&&(u=2*Math.PI-u),{radius:a,angle:Cf(u),angleInRadian:u}},If=function(t,e){var n=e.startAngle,r=e.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return t+360*Math.min(i,o)},Df=function(t,e){var n=t.x,r=t.y,i=Nf({x:n,y:r},e),o=i.radius,a=i.angle,s=e.innerRadius,u=e.outerRadius;if(ou)return!1;if(0===o)return!0;var c,l=function(t){var e=t.startAngle,n=t.endAngle,r=Math.floor(e/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:e-360*o,endAngle:n-360*o}}(e),f=l.startAngle,h=l.endAngle,d=a;if(f<=h){for(;d>h;)d-=360;for(;d=f&&d<=h}else{for(;d>f;)d-=360;for(;d=h&&d<=f}return c?jf({},e,{radius:o,angle:If(d,e)}):null};function Rf(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e=0?1:-1;"insideStart"===o?(r=m+w*u,i=v):"insideEnd"===o?(r=y-w*u,i=!v):"end"===o&&(r=y+w*u,i=v),i=b<=0?i:!i;var _=Lf(l,f,g,r),x=Lf(l,f,g,r+359*(i?1:-1)),O="M".concat(_.x,",").concat(_.y,"\n A").concat(g,",").concat(g,",0,1,").concat(i?0:1,",\n ").concat(x.x,",").concat(x.y),S=a()(t.id)?qt("recharts-radial-line-"):t.id;return h.a.createElement("text",zf({},n,{dominantBaseline:"central",className:jt()("recharts-radial-bar-label",c)}),h.a.createElement("defs",null,h.a.createElement("path",{id:S,d:O})),h.a.createElement("textPath",{xlinkHref:"#".concat(S)},e))};function qf(t){var e,n=t.viewBox,r=t.position,i=t.value,o=t.children,s=t.content,c=t.className,l=void 0===c?"":c;if(!n||a()(i)&&a()(o)&&!Object(f.isValidElement)(s)&&!u()(s))return null;if(Object(f.isValidElement)(s))return Object(f.cloneElement)(s,t);if(u()(s)){if(e=s(t),Object(f.isValidElement)(e))return e}else e=function(t){var e=t.value,n=t.formatter,r=a()(t.children)?e:t.children;return u()(n)?n(r):r}(t);var d=function(t){return Wt(t.cx)}(n),p=xe(t),m=Se(t);if(d&&("insideStart"===r||"insideEnd"===r||"end"===r))return Vf(t,e,p);var y=d?function(t){var e=t.viewBox,n=t.offset,r=t.position,i=e.cx,o=e.cy,a=e.innerRadius,s=e.outerRadius,u=(e.startAngle+e.endAngle)/2;if("outside"===r){var c=Lf(i,o,s+n,u),l=c.x;return{x:l,y:c.y,textAnchor:l>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"end"};var f=Lf(i,o,(a+s)/2,u);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}}(t):function(t){var e=t.viewBox,n=t.offset,r=t.position,i=e.x,o=e.y,a=e.width,s=e.height,u=s>=0?1:-1;return"top"===r?{x:i+a/2,y:o-u*n,textAnchor:"middle",verticalAnchor:u>0?"end":"start"}:"bottom"===r?{x:i+a/2,y:o+s+u*n,textAnchor:"middle",verticalAnchor:"start"}:"left"===r?{x:i-n,y:o+s/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===r?{x:i+a+n,y:o+s/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===r?{x:i+n,y:o+s/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===r?{x:i+a-n,y:o+s/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===r?{x:i+a/2,y:o+u*n,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===r?{x:i+a/2,y:o+s-u*n,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===r?{x:i+n,y:o+u*n,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===r?{x:i+a-n,y:o+u*n,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===r?{x:i+n,y:o+s-u*n,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===r?{x:i+a-n,y:o+s-u*n,textAnchor:"end",verticalAnchor:"end"}:le()(r)&&(Wt(r.x)||Ut(r.x))&&(Wt(r.y)||Ut(r.y))?{x:i+Zt(r.x,a),y:o+Zt(r.y,s),textAnchor:"end",verticalAnchor:"end"}:{x:i+a/2,y:o+s/2,textAnchor:"middle",verticalAnchor:"middle"}}(t);return h.a.createElement(zr,zf({className:jt()("recharts-label",l)},p,y,m),e)}qf.displayName="Label",qf.defaultProps={offset:5},qf.propTypes=Hf;var Zf=function(t){var e=t.cx,n=t.cy,r=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,s=t.radius,u=t.innerRadius,c=t.outerRadius,l=t.x,f=t.y,h=t.top,d=t.left,p=t.width,m=t.height,y=t.clockWise;if(Wt(p)&&Wt(m)){if(Wt(l)&&Wt(f))return{x:l,y:f,width:p,height:m};if(Wt(h)&&Wt(d))return{x:h,y:d,width:p,height:m}}return Wt(l)&&Wt(f)?{x:l,y:f,width:0,height:0}:Wt(e)&&Wt(n)?{cx:e,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:u||0,outerRadius:c||s||a||0,clockWise:y}:t.viewBox?t.viewBox:{}},Gf=function(t,e){return t?!0===t?h.a.createElement(qf,{key:"label-implicit",viewBox:e}):Ht(t)?h.a.createElement(qf,{key:"label-implicit",viewBox:e,value:t}):Object(f.isValidElement)(t)?t.type===qf?Object(f.cloneElement)(t,{key:"label-implicit",viewBox:e}):h.a.createElement(qf,{key:"label-implicit",content:t,viewBox:e}):u()(t)?h.a.createElement(qf,{key:"label-implicit",content:t,viewBox:e}):le()(t)?h.a.createElement(qf,zf({viewBox:e},t,{key:"label-implicit"})):null:null};qf.parseViewBox=Zf,qf.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var r=t.children,i=Zf(t),o=we(r,qf).map((function(t,n){return Object(f.cloneElement)(t,{viewBox:e||i,key:"label-".concat(n)})}));if(!n)return o;var a=Gf(t.label,e||i);return[a].concat(Rf(o))};var Yf=qf;function Kf(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var eh={id:p.a.string,data:p.a.arrayOf(p.a.object),valueAccessor:p.a.func,clockWise:p.a.bool,dataKey:p.a.oneOfType([p.a.string,p.a.number,p.a.func])},nh={valueAccessor:function(t){return Lt()(t.value)?pr()(t.value):t.value}};function rh(t){var e=t.data,n=t.valueAccessor,r=t.dataKey,i=t.clockWise,o=t.id,s=th(t,["data","valueAccessor","dataKey","clockWise","id"]);return e&&e.length?h.a.createElement(hr,{className:"recharts-label-list"},e.map((function(t,e){var u=a()(r)?n(t,e):rf(t&&t.payload,r),c=a()(o)?{}:{id:"".concat(o,"-").concat(e)};return h.a.createElement(Yf,$f({},xe(t),s,c,{index:e,value:u,viewBox:Yf.parseViewBox(a()(i)?t:Jf({},t,{clockWise:i})),key:"label-".concat(e)}))}))):null}rh.propTypes=eh,rh.displayName="LabelList";var ih=function(t,e){return t?!0===t?h.a.createElement(rh,{key:"labelList-implicit",data:e}):h.a.isValidElement(t)||u()(t)?h.a.createElement(rh,{key:"labelList-implicit",data:e,content:t}):le()(t)?h.a.createElement(rh,$f({data:e},t,{key:"labelList-implicit"})):null:null};rh.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var r=t.children,i=we(r,rh).map((function(t,n){return Object(f.cloneElement)(t,{data:e,key:"labelList-".concat(n)})}));if(!n)return i;var o=ih(t.label,e);return[o].concat(Kf(i))},rh.defaultProps=nh;var oh=rh;function ah(t){return ah="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ah(t)}function sh(){return sh=Object.assign||function(t){for(var e=1;eo){s=[].concat(fh(n.slice(0,u)),[o-c]);break}var l=s.length%2===0?[0,a]:[a];return[].concat(fh(this.constructor.repeat(n,i)),fh(s),l).map((function(t){return"".concat(t,"px")})).join(", ")}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,e=t.points,n=t.xAxis,r=t.yAxis,i=t.layout,o=t.children,a=we(o,Hc);if(!a)return null;function s(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:rf(t.payload,e)}}return a.map((function(t,o){return h.a.cloneElement(t,{key:o,data:e,xAxis:n,yAxis:r,layout:i,dataPointFormatter:s})}))}},{key:"renderDots",value:function(t,e){var n=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.dot,o=r.points,a=r.dataKey,s=xe(this.props),u=xe(i),c=Se(i),l=o.map((function(t,e){var r=ch({key:"dot-".concat(e),r:3},s,{},u,{},c,{value:t.value,dataKey:a,cx:t.x,cy:t.y,index:e,payload:t.payload});return n.constructor.renderDotItem(i,r)})),f={clipPath:t?"url(#clipPath-".concat(e,")"):null};return h.a.createElement(hr,sh({className:"recharts-line-dots",key:"dots"},f),l)}},{key:"renderCurveStatically",value:function(t,e,n,r){var i=this.props,o=i.type,a=i.layout,s=i.connectNulls,u=ch({},xe(this.props),{},Se(this.props),{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(n,")"):null,points:t},r,{type:o,layout:a,connectNulls:s});return h.a.createElement(Jn,sh({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var n=this,r=this.props,i=r.points,o=r.strokeDasharray,a=r.isAnimationActive,s=r.animationBegin,u=r.animationDuration,c=r.animationEasing,l=r.animationId,f=r.width,d=r.height,p=this.state,m=p.prevPoints,y=p.totalLength;return h.a.createElement(Et,{begin:s,duration:u,isActive:a,easing:c,from:{t:0},to:{t:1},key:"line-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var a=r.t;if(m){var s=m.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*s);if(m[r]){var i=m[r],o=Yt(i.x,t.x),u=Yt(i.y,t.y);return ch({},t,{x:o(a),y:u(a)})}if(n.animateNewValues){var c=Yt(2*f,t.x),l=Yt(d/2,t.y);return ch({},t,{x:c(a),y:l(a)})}return ch({},t,{x:t.x,y:t.y})}));return n.renderCurveStatically(u,t,e)}var c,l=Yt(0,y)(a);if(o){var h=o.split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));c=n.getStrokeDasharray(l,y,h)}else c="".concat(l,"px ").concat(y-l,"px");return n.renderCurveStatically(i,t,e,{strokeDasharray:c})}))}},{key:"renderCurve",value:function(t,e){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,s=o.totalLength;return i&&r&&r.length&&(!a&&s>0||!y()(a,r))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(r,t,e)}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.dot,r=t.points,i=t.className,o=t.xAxis,s=t.yAxis,u=t.top,c=t.left,l=t.width,f=t.height,d=t.isAnimationActive,p=t.id;if(e||!r||!r.length)return null;var m=this.state.isAnimationFinished,y=1===r.length,v=jt()("recharts-line",i),g=o&&o.allowDataOverflow||s&&s.allowDataOverflow,b=a()(p)?this.id:p;return h.a.createElement(hr,{className:v},g?h.a.createElement("defs",null,h.a.createElement("clipPath",{id:"clipPath-".concat(b)},h.a.createElement("rect",{x:c,y:u,width:l,height:f}))):null,!y&&this.renderCurve(g,b),this.renderErrorBar(),(y||n)&&this.renderDots(g,b),(!d||m)&&oh.renderCallByParent(this.props,r))}}])&&dh(n.prototype,r),i&&dh(n,i),e}(f.PureComponent);vh.displayName="Line",vh.propTypes=ch({},pe,{},me,{className:p.a.string,type:p.a.oneOfType([p.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),p.a.func]),unit:p.a.oneOfType([p.a.string,p.a.number]),name:p.a.oneOfType([p.a.string,p.a.number]),yAxisId:p.a.oneOfType([p.a.string,p.a.number]),xAxisId:p.a.oneOfType([p.a.string,p.a.number]),yAxis:p.a.object,xAxis:p.a.object,legendType:p.a.oneOf(ve),tooltipType:p.a.oneOf(ge),layout:p.a.oneOf(["horizontal","vertical"]),connectNulls:p.a.bool,hide:p.a.bool,activeDot:p.a.oneOfType([p.a.object,p.a.element,p.a.func,p.a.bool]),dot:p.a.oneOfType([p.a.object,p.a.element,p.a.func,p.a.bool]),top:p.a.number,left:p.a.number,width:p.a.number,height:p.a.number,points:p.a.arrayOf(p.a.shape({x:p.a.number,y:p.a.number,value:p.a.value})),onAnimationStart:p.a.func,onAnimationEnd:p.a.func,isAnimationActive:p.a.bool,animateNewValues:p.a.bool,animationBegin:p.a.number,animationDuration:p.a.number,animationEasing:p.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),animationId:p.a.number,id:p.a.string}),vh.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Pe(),animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,onAnimationStart:function(){},onAnimationEnd:function(){}},vh.getComposedData=function(t){var e=t.props,n=t.xAxis,r=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,s=t.dataKey,u=t.bandSize,c=t.displayedData,l=t.offset,f=e.layout;return ch({points:c.map((function(t,e){var c=rf(t,s);return"horizontal"===f?{x:wf({axis:n,ticks:i,bandSize:u,entry:t,index:e}),y:a()(c)?null:r.scale(c),value:c,payload:t}:{x:a()(c)?null:n.scale(c),y:wf({axis:r,ticks:o,bandSize:u,entry:t,index:e}),value:c,payload:t}})),layout:f},l)};var gh=vh;function bh(t){return bh="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bh(t)}function wh(){return wh=Object.assign||function(t){for(var e=1;e0||!y()(s,r)||!y()(u,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(r,i,t,e)}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.dot,r=t.points,i=t.className,o=t.top,s=t.left,u=t.xAxis,c=t.yAxis,l=t.width,f=t.height,d=t.isAnimationActive,p=t.id;if(e||!r||!r.length)return null;var m=this.state.isAnimationFinished,y=1===r.length,v=jt()("recharts-area",i),g=u&&u.allowDataOverflow||c&&c.allowDataOverflow,b=a()(p)?this.id:p;return h.a.createElement(hr,{className:v},g?h.a.createElement("defs",null,h.a.createElement("clipPath",{id:"clipPath-".concat(b)},h.a.createElement("rect",{x:s,y:o,width:l,height:parseInt(f,10)}))):null,y?null:this.renderArea(g,b),(n||y)&&this.renderDots(g,b),(!d||m)&&oh.renderCallByParent(this.props,r))}}])&&kh(n.prototype,r),i&&kh(n,i),e}(f.PureComponent);jh.displayName="Area",jh.propTypes=xh({},pe,{},me,{className:p.a.string,dataKey:p.a.oneOfType([p.a.string,p.a.number,p.a.func]).isRequired,type:p.a.oneOfType([p.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),p.a.func]),unit:p.a.oneOfType([p.a.string,p.a.number]),name:p.a.oneOfType([p.a.string,p.a.number]),yAxisId:p.a.oneOfType([p.a.string,p.a.number]),xAxisId:p.a.oneOfType([p.a.string,p.a.number]),yAxis:p.a.object,xAxis:p.a.object,stackId:p.a.oneOfType([p.a.number,p.a.string]),legendType:p.a.oneOf(ve),tooltipType:p.a.oneOf(ge),connectNulls:p.a.bool,activeDot:p.a.oneOfType([p.a.object,p.a.element,p.a.func,p.a.bool]),dot:p.a.oneOfType([p.a.func,p.a.element,p.a.object,p.a.bool]),label:p.a.oneOfType([p.a.func,p.a.element,p.a.object,p.a.bool]),hide:p.a.bool,layout:p.a.oneOf(["horizontal","vertical"]),baseLine:p.a.oneOfType([p.a.number,p.a.array]),isRange:p.a.bool,points:p.a.arrayOf(p.a.shape({x:p.a.number,y:p.a.number,value:p.a.oneOfType([p.a.number,p.a.array])})),onAnimationStart:p.a.func,onAnimationEnd:p.a.func,animationId:p.a.number,isAnimationActive:p.a.bool,animationBegin:p.a.number,animationDuration:p.a.number,animationEasing:p.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),id:p.a.string}),jh.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Pe(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},jh.getBaseValue=function(t,e,n){var r=t.layout,i=t.baseValue;if(Wt(i))return i;var o="horizontal"===r?n:e,a=o.scale.domain();if("number"===o.type){var s=Math.max(a[0],a[1]),u=Math.min(a[0],a[1]);return"dataMin"===i?u:"dataMax"===i||s<0?s:Math.max(Math.min(a[0],a[1]),0)}return"dataMin"===i?a[0]:"dataMax"===i?a[1]:a[0]},jh.getComposedData=function(t){var e,n=t.props,r=t.xAxis,i=t.yAxis,o=t.xAxisTicks,s=t.yAxisTicks,u=t.bandSize,c=t.dataKey,l=t.stackedData,f=t.dataStartIndex,h=t.displayedData,d=t.offset,p=n.layout,m=l&&l.length,y=jh.getBaseValue(n,r,i),v=!1,g=h.map((function(t,e){var n;return m?n=l[f+e]:(n=rf(t,c),Lt()(n)?v=!0:n=[y,n]),"horizontal"===p?{x:wf({axis:r,ticks:o,bandSize:u,entry:t,index:e}),y:a()(n[1])?null:i.scale(n[1]),value:n,payload:t}:{x:a()(n[1])?null:r.scale(n[1]),y:wf({axis:i,ticks:s,bandSize:u,entry:t,index:e}),value:n,payload:t}}));return e=m||v?g.map((function(t){return"horizontal"===p?{x:t.x,y:a()(It()(t,"value[0]"))?null:i.scale(It()(t,"value[0]"))}:{x:a()(It()(t,"value[0]"))?null:r.scale(It()(t,"value[0]")),y:t.y}})):"horizontal"===p?i.scale(y):r.scale(y),xh({points:g,baseLine:e,layout:p,isRange:v},d)},jh.renderDotItem=function(t,e){return h.a.isValidElement(t)?h.a.cloneElement(t,e):u()(t)?t(e):h.a.createElement(sr,wh({},e,{className:"recharts-area-dot"}))};var Mh=jh;function Ah(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ch(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Lh(t){return Lh="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lh(t)}function Nh(){return Nh=Object.assign||function(t){for(var e=1;e=0?1:-1,u=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var l=[],f=0;f<4;f++)l[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+s*l[0]),l[0]>0&&(o+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(t+u*l[0],",").concat(e)),o+="L ".concat(t+n-u*l[1],",").concat(e),l[1]>0&&(o+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,",\n ").concat(t+n,",").concat(e+s*l[1])),o+="L ".concat(t+n,",").concat(e+r-s*l[2]),l[2]>0&&(o+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,",\n ").concat(t+n-u*l[2],",").concat(e+r)),o+="L ".concat(t+u*l[3],",").concat(e+r),l[3]>0&&(o+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,",\n ").concat(t,",").concat(e+r-s*l[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var h=Math.min(a,i);o="M ".concat(t,",").concat(e+s*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(c,",").concat(t+u*h,",").concat(e,"\n L ").concat(t+n-u*h,",").concat(e,"\n A ").concat(h,",").concat(h,",0,0,").concat(c,",").concat(t+n,",").concat(e+s*h,"\n L ").concat(t+n,",").concat(e+r-s*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(c,",").concat(t+n-u*h,",").concat(e+r,"\n L ").concat(t+u*h,",").concat(e+r,"\n A ").concat(h,",").concat(h,",0,0,").concat(c,",").concat(t,",").concat(e+r-s*h," Z")}else o="M ".concat(t,",").concat(e," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},Uh=function(t){function e(){var t,n;Ih(this,e);for(var r=arguments.length,i=new Array(r),o=0;o0,from:{width:i,height:o,x:n,y:r},to:{width:i,height:o,x:n,y:r},duration:f,animationEasing:l,isActive:m},(function(e){var n=e.width,r=e.height,i=e.x,o=e.y;return h.a.createElement(Et,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:f,isActive:p,easing:l},h.a.createElement("path",Nh({},xe(t.props),Se(t.props),{className:y,d:Fh(i,o,n,r,a),ref:function(e){t.node=e}})))})):h.a.createElement("path",Nh({},xe(this.props),Se(this.props),{className:y,d:Fh(n,r,i,o,a)}))}}])&&Dh(n.prototype,r),i&&Dh(n,i),e}(f.PureComponent);Uh.displayName="Rectangle",Uh.propTypes=function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Kh(){return Kh=Object.assign||function(t){for(var e=1;e=0?0:i<0?i:r}return n[0]}({props:e,numericAxis:b}),x=we(v,Zh),O=f.map((function(t,e){var n,r,f,h,m,v;if(c?n=function(t,e){if(!e||2!==e.length||!Wt(e[0])||!Wt(e[1]))return t;var n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!Wt(t[0])||t[0]r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]0&&Math.abs(m)0&&Math.abs(h)180),",").concat(+(o>s),",\n ").concat(c.x,",").concat(c.y,"\n ");if(r>0){var f=Lf(e,n,r,o),h=Lf(e,n,r,s);l+="L ".concat(h.x,",").concat(h.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(e,",").concat(n," Z");return l},Jd=function(t){function e(){return qd(this,e),Gd(this,Yd(e).apply(this,arguments))}var n,r,i;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Kd(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,s=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,l=t.className;if(i0&&Math.abs(u-c)<360?function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,s=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,l=Ft(c-u),f=$d({cx:e,cy:n,radius:i,angle:u,sign:l,cornerRadius:o,cornerIsExternal:s}),h=f.circleTangency,d=f.lineTangency,p=f.theta,m=$d({cx:e,cy:n,radius:i,angle:c,sign:-l,cornerRadius:o,cornerIsExternal:s}),y=m.circleTangency,v=m.lineTangency,g=m.theta,b=Math.abs(u-c)-p-g;if(b<0)return a?"M ".concat(d.x,",").concat(d.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):Xd({cx:e,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:c});var w="M ".concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var _=$d({cx:e,cy:n,radius:r,angle:u,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),x=_.circleTangency,O=_.lineTangency,S=_.theta,k=$d({cx:e,cy:n,radius:r,angle:c,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),T=k.circleTangency,E=k.lineTangency,P=k.theta,j=Math.abs(u-c)-S-P;if(j<0)return"".concat(w,"L").concat(e,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(T.x,",").concat(T.y,"\n A").concat(r,",").concat(r,",0,").concat(+(j>180),",").concat(+(l>0),",").concat(x.x,",").concat(x.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(O.x,",").concat(O.y,"Z")}else w+="L".concat(e,",").concat(n,"Z");return w}({cx:e,cy:n,innerRadius:r,outerRadius:i,cornerRadius:Math.min(m,p/2),forceCornerRadius:a,cornerIsExternal:s,startAngle:u,endAngle:c}):Xd({cx:e,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:c}),h.a.createElement("path",Vd({},xe(this.props),Se(this.props),{className:d,d:f}))}}])&&Zd(n.prototype,r),i&&Zd(n,i),e}(f.PureComponent);Jd.displayName="Sector",Jd.propTypes=function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function ap(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sp(t,e){for(var n=0;n=2?Ft(y[1].coordinate-y[0].coordinate):1;if(1===b?(n="width"===m?f:h,r="width"===m?f+d:h+p):(n="width"===m?f+d:h+p,r="width"===m?f:h),e){var w=i[g-1],_=u()(o)?o(w.value):w.value,x=Tr(_)[m]+v,O=b*(w.coordinate+b*x/2-r);y[g-1]=w=rp({},w,{tickCoord:O>0?w.coordinate-O*b:w.coordinate}),b*(w.tickCoord-b*x/2-n)>=0&&b*(w.tickCoord+b*x/2-r)<=0&&(r=w.tickCoord-b*(x/2+c),y[g-1]=rp({},w,{isShow:!0}))}for(var S=e?g-1:g,k=0;k=0&&b*(T.tickCoord+b*P/2-r)<=0&&(n=T.tickCoord+b*(P/2+c),y[k]=rp({},T,{isShow:!0}))}return y.filter((function(t){return t.isShow}))}},{key:"getTicksEnd",value:function(t){var e,n,r=t.ticks,i=t.tickFormatter,o=t.viewBox,a=t.orientation,s=t.minTickGap,c=t.unit,l=o.x,f=o.y,h=o.width,d=o.height,p="top"===a||"bottom"===a?"width":"height",m=c&&"width"===p?Tr(c)[p]:0,y=(r||[]).slice(),v=y.length,g=v>=2?Ft(y[1].coordinate-y[0].coordinate):1;1===g?(e="width"===p?l:f,n="width"===p?l+h:f+d):(e="width"===p?l+h:f+d,n="width"===p?l:f);for(var b=v-1;b>=0;b--){var w=y[b],_=u()(i)?i(w.value):w.value,x=Tr(_)[p]+m;if(b===v-1){var O=g*(w.coordinate+g*x/2-n);y[b]=w=rp({},w,{tickCoord:O>0?w.coordinate-O*g:w.coordinate})}else y[b]=w=rp({},w,{tickCoord:w.coordinate});g*(w.tickCoord-g*x/2-e)>=0&&g*(w.tickCoord+g*x/2-n)<=0&&(n=w.tickCoord-g*(x/2+s),y[b]=rp({},w,{isShow:!0}))}return y.filter((function(t){return t.isShow}))}},{key:"renderTickItem",value:function(t,e,n){return h.a.isValidElement(t)?h.a.cloneElement(t,e):u()(t)?t(e):h.a.createElement(zr,ep({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(r=[{key:"shouldComponentUpdate",value:function(t,e){var n=t.viewBox,r=op(t,["viewBox"]),i=this.props,o=i.viewBox,a=op(i,["viewBox"]);return!fe(n,o)||!fe(r,a)||!fe(e,this.state)}},{key:"getTickLineCoord",value:function(t){var e,n,r,i,o,a,s=this.props,u=s.x,c=s.y,l=s.width,f=s.height,h=s.orientation,d=s.tickSize,p=s.mirror,m=s.tickMargin,y=p?-1:1,v=t.tickSize||d,g=Wt(t.tickCoord)?t.tickCoord:t.coordinate;switch(h){case"top":e=n=t.coordinate,a=(r=(i=c+!p*f)-y*v)-y*m,o=g;break;case"left":r=i=t.coordinate,o=(e=(n=u+!p*l)-y*v)-y*m,a=g;break;case"right":r=i=t.coordinate,o=(e=(n=u+p*l)+y*v)+y*m,a=g;break;default:e=n=t.coordinate,a=(r=(i=c+p*f)+y*v)+y*m,o=g}return{line:{x1:e,y1:r,x2:n,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,n=e.orientation,r=e.mirror;switch(n){case"left":t=r?"start":"end";break;case"right":t=r?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,n=t.mirror,r="end";switch(e){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.orientation,a=t.axisLine,s=t.mirror,u=rp({},xe(this.props),{fill:"none"},xe(a));if("top"===o||"bottom"===o){var c="top"===o&&!s||"bottom"===o&&s;u=rp({},u,{x1:e,y1:n+c*i,x2:e+r,y2:n+c*i})}else{var l="left"===o&&!s||"right"===o&&s;u=rp({},u,{x1:e+l*r,y1:n,x2:e+l*r,y2:n+i})}return h.a.createElement("line",ep({className:"recharts-cartesian-axis-line"},u))}},{key:"renderTicks",value:function(t){var n=this,r=this.props,i=r.tickLine,o=r.stroke,a=r.tick,s=r.tickFormatter,c=r.unit,l=e.getTicks(rp({},this.props,{ticks:t})),f=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),p=xe(this.props),m=xe(a),y=rp({},p,{fill:"none"},xe(i)),v=l.map((function(t,e){var r=n.getTickLineCoord(t),v=r.line,g=r.tick,b=rp({textAnchor:f,verticalAnchor:d},p,{stroke:"none",fill:o},m,{},g,{index:e,payload:t,visibleTicksCount:l.length});return h.a.createElement(hr,ep({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e)},Te(n.props,t,e)),i&&h.a.createElement("line",ep({className:"recharts-cartesian-axis-tick-line"},y,v)),a&&n.constructor.renderTickItem(a,b,"".concat(u()(s)?s(t.value):t.value).concat(c||"")))}));return h.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},v)}},{key:"render",value:function(){var t=this.props,e=t.axisLine,n=t.width,r=t.height,i=t.ticksGenerator,o=t.className;if(t.hide)return null;var a=this.props,s=a.ticks,c=op(a,["ticks"]),l=s;return u()(i)&&(l=s&&s.length>0?i(this.props):i(c)),n<=0||r<=0||!l||!l.length?null:h.a.createElement(hr,{className:jt()("recharts-cartesian-axis",o)},e&&this.renderAxisLine(),this.renderTicks(l),Yf.renderCallByParent(this.props))}}])&&sp(n.prototype,r),i&&sp(n,i),e}(f.Component);fp.displayName="CartesianAxis",fp.propTypes=rp({},pe,{},me,{className:p.a.string,x:p.a.number,y:p.a.number,width:p.a.number,height:p.a.number,orientation:p.a.oneOf(["top","bottom","left","right"]),viewBox:p.a.shape({x:p.a.number,y:p.a.number,width:p.a.number,height:p.a.number}),tick:p.a.oneOfType([p.a.bool,p.a.func,p.a.object,p.a.element]),axisLine:p.a.oneOfType([p.a.bool,p.a.object]),tickLine:p.a.oneOfType([p.a.bool,p.a.object]),mirror:p.a.bool,tickMargin:p.a.number.isRequired,minTickGap:p.a.number,ticks:p.a.array,tickSize:p.a.number,stroke:p.a.string,tickFormatter:p.a.func,ticksGenerator:p.a.func,interval:p.a.oneOfType([p.a.number,p.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])])}),fp.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};var hp=fp;function dp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mp=["Webkit","Moz","O","ms"],yp=function(t,e){if(!t)return null;var n=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),r=mp.reduce((function(t,r){return function(t){for(var e=1;e0&&n.handleDrag(t.changedTouches[0])},n.handleDragEnd=function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1})},n.handleLeaveWrapper=function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=setTimeout(n.handleDragEnd,n.props.leaveTimeOut))},n.handleEnterSlideOrTraveller=function(){n.setState({isTextActive:!0})},n.handleLeaveSlideOrTraveller=function(){n.setState({isTextActive:!1})},n.handleSlideDragStart=function(t){var e=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX})},n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(xp(n),"startX"),endX:n.handleTravellerDragStart.bind(xp(n),"endX")},n.state=t.data&&t.data.length?n.updateScale(t):{},n}var n,r,i;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Op(t,e)}(e,t),n=e,i=[{key:"getIndexInRange",value:function(t,e){for(var n=0,r=t.length-1;r-n>1;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i}return e>=t[r]?r:n}}],(r=[{key:"componentWillReceiveProps",value:function(t){var e=this,n=this.props,r=n.data,i=n.width,o=n.x,a=n.travellerWidth,s=n.updateId;(t.data!==r||t.updateId!==s)&&t.data&&t.data.length?this.setState(this.updateScale(t)):t.width===i&&t.x===o&&t.travellerWidth===a||(this.scale.range([t.x,t.x+t.width-t.travellerWidth]),this.scaleValues=this.scale.domain().map((function(t){return e.scale(t)})),this.setState({startX:this.scale(t.startIndex),endX:this.scale(t.endIndex)}))}},{key:"componentWillUnmount",value:function(){this.scale=null,this.scaleValues=null,this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null)}},{key:"getIndex",value:function(t){var e=t.startX,n=t.endX,r=this.props,i=r.gap,o=r.data.length-1,a=Math.min(e,n),s=Math.max(e,n),u=this.constructor.getIndexInRange(this.scaleValues,a),c=this.constructor.getIndexInRange(this.scaleValues,s);return{startIndex:u-u%i,endIndex:c===o?o:c-c%i}}},{key:"getTextOfTick",value:function(t){var e=this.props,n=e.data,r=e.tickFormatter,i=e.dataKey,o=rf(n[t],i,t);return u()(r)?r(o):o}},{key:"handleSlideDrag",value:function(t){var e=this.state,n=e.slideMoveStartX,r=e.startX,i=e.endX,o=this.props,a=o.x,s=o.width,u=o.travellerWidth,c=o.startIndex,l=o.endIndex,f=o.onChange,h=t.pageX-n;h>0?h=Math.min(h,a+s-u-i,a+s-u-r):h<0&&(h=Math.max(h,a-r,a-i));var d=this.getIndex({startX:r+h,endX:i+h});d.startIndex===c&&d.endIndex===l||!f||f(d),this.setState({startX:r+h,endX:i+h,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var n=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:n.pageX})}},{key:"handleTravellerMove",value:function(t){var e,n=this.state,r=n.brushMoveStartX,i=n.movingTravellerId,o=n.endX,a=n.startX,s=this.state[i],u=this.props,c=u.x,l=u.width,f=u.travellerWidth,h=u.onChange,d=u.gap,p=u.data,m={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,c+l-f-s):y<0&&(y=Math.max(y,c-s)),m[i]=s+y;var v=this.getIndex(m),g=v.startIndex,b=v.endIndex;this.setState((bp(e={},i,s+y),bp(e,"brushMoveStartX",t.pageX),e),(function(){h&&function(){var t=p.length-1;return"startX"===i&&(o>a?g%d===0:b%d===0)||oa?b%d===0:g%d===0)||o>a&&b===t}()&&h(v)}))}},{key:"updateScale",value:function(t){var e=this,n=t.data,r=t.startIndex,i=t.endIndex,o=t.x,a=t.width,s=t.travellerWidth,u=n.length;return this.scale=Yi().domain(Ed()(0,u)).range([o,o+a-s]),this.scaleValues=this.scale.domain().map((function(t){return e.scale(t)})),{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:this.scale(r),endX:this.scale(i)}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.fill,a=t.stroke;return h.a.createElement("rect",{stroke:a,fill:o,x:e,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.data,a=t.children,s=t.padding,u=f.Children.only(a);return u?h.a.cloneElement(u,{x:e,y:n,width:r,height:i,margin:s,compact:!0,data:o}):null}},{key:"renderTraveller",value:function(t,e){var n=this.props,r=n.y,i=n.travellerWidth,o=n.height,a=n.stroke,s=Math.floor(r+o/2)-1,u=Math.max(t,this.props.x);return h.a.createElement(hr,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],style:{cursor:"col-resize"}},h.a.createElement("rect",{x:u,y:r,width:i,height:o,fill:a,stroke:"none"}),h.a.createElement("line",{x1:u+1,y1:s,x2:u+i-1,y2:s,fill:"none",stroke:"#fff"}),h.a.createElement("line",{x1:u+1,y1:s+2,x2:u+i-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(t,e){var n=this.props,r=n.y,i=n.height,o=n.stroke;return h.a.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:Math.min(t,e),y:r,width:Math.abs(e-t),height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,n=t.endIndex,r=t.y,i=t.height,o=t.travellerWidth,a=t.stroke,s=this.state,u=s.startX,c=s.endX,l={pointerEvents:"none",fill:a};return h.a.createElement(hr,{className:"recharts-brush-texts"},h.a.createElement(zr,gp({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,c)-5,y:r+i/2},l),this.getTextOfTick(e)),h.a.createElement(zr,gp({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,c)+o+5,y:r+i/2},l),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.className,r=t.children,i=t.x,o=t.y,a=t.width,s=t.height,u=t.alwaysShowText,c=this.state,l=c.startX,f=c.endX,d=c.isTextActive,p=c.isSlideMoving,m=c.isTravellerMoving;if(!e||!e.length||!Wt(i)||!Wt(o)||!Wt(a)||!Wt(s)||a<=0||s<=0)return null;var y=jt()("recharts-brush",n),v=1===h.a.Children.count(r),g=yp("userSelect","none");return h.a.createElement(hr,{className:y,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(l,f),this.renderTraveller(l,"startX"),this.renderTraveller(f,"endX"),(d||p||m||u)&&this.renderText())}}])&&wp(n.prototype,r),i&&wp(n,i),e}(f.PureComponent);Sp.displayName="Brush",Sp.propTypes={className:p.a.string,fill:p.a.string,stroke:p.a.string,x:p.a.number,y:p.a.number,width:p.a.number,height:p.a.number.isRequired,travellerWidth:p.a.number,gap:p.a.number,padding:p.a.shape({top:p.a.number,right:p.a.number,bottom:p.a.number,left:p.a.number}),dataKey:p.a.oneOfType([p.a.string,p.a.number,p.a.func]),data:p.a.array,startIndex:p.a.number,endIndex:p.a.number,tickFormatter:p.a.func,children:p.a.node,onChange:p.a.func,updateId:p.a.oneOfType([p.a.string,p.a.number]),leaveTimeOut:p.a.number,alwaysShowText:p.a.bool},Sp.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1};var kp=Sp,Tp=function(t,e){var n=t.alwaysShow,r=t.ifOverflow;return n&&(r="extendDomain"),r===e},Ep=n(144),Pp=n.n(Ep);function jp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mp(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware,r=e.position;if(void 0!==t){if(r)switch(r){default:return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),n=e[0],r=e[e.length-1];return n<=r?t>=n&&t<=r:t>=r&&t<=n}},{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}}]),t}();Rp.EPS=1e-4;var zp=function(){function t(e){jp(this,t),this.scales=Pp()(e,Rp.create),Object.assign(this,this.scales)}return Ap(t,null,[{key:"create",value:function(t){return new this(t)}}]),Ap(t,[{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware,r=this.scales;return Pp()(t,(function(t,e){return r[e].apply(t,{bandAware:n})}))}},{key:"isInRange",value:function(t){var e=this.scales;return Od()(t,(function(t,n){return e[n].isInRange(t)}))}}]),t}();function Bp(t){return Bp="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bp(t)}function Fp(){return Fp=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Mm(){return Mm=Object.assign||function(t){for(var e=1;e0&&n.handleMouseMove(t.changedTouches[0])},n.handleTouchStart=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&n.handleMouseDown(t.changedTouches[0])},n.handleTouchEnd=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&n.handleMouseUp(t.changedTouches[0])},n.verticalCoordinatesGenerator=function(t){var e=t.xAxis,n=t.width,r=t.height,i=t.offset;return ff(hp.getTicks(Lm({},hp.defaultProps,{},e,{ticks:hf(e,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)},n.horizontalCoordinatesGenerator=function(t){var e=t.yAxis,n=t.width,r=t.height,i=t.offset;return ff(hp.getTicks(Lm({},hp.defaultProps,{},e,{ticks:hf(e,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)},n.axesTicksGenerator=function(t){return hf(t,!0)},n.tooltipTicksGenerator=function(t){var e=Gt(t),n=hf(e,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:At()(n,(function(t){return t.coordinate})),tooltipAxis:e,tooltipAxisBandSize:Tf(e)}},n.renderCursor=function(t){var r=n.state,i=r.isTooltipActive,o=r.activeCoordinate,a=r.activePayload,s=r.offset;if(!t||!t.props.cursor||!i||!o)return null;var u,c=n.props.layout,l=Jn;if("ScatterChart"===e)u=o,l=Fd;else if("BarChart"===e)u=n.getCursorRectangle(),l=Wh;else if("radial"===c){var h=n.getCursorPoints(),d=h.cx,p=h.cy,m=h.radius;u={cx:d,cy:p,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:m,outerRadius:m},l=Qd}else u={points:n.getCursorPoints()},l=Jn;var y=t.key||"_recharts-cursor",v=Lm({stroke:"#ccc",pointerEvents:"none"},s,{},u,{},xe(t.props.cursor),{payload:a,key:y,className:"recharts-tooltip-cursor"});return Object(f.isValidElement)(t.props.cursor)?Object(f.cloneElement)(t.props.cursor,v):Object(f.createElement)(l,v)},n.renderPolarAxis=function(t,e,r){var i=t.type.axisType,o=n.state["".concat(i,"Map")][t.props["".concat(i,"Id")]];return Object(f.cloneElement)(t,Lm({},o,{className:i,key:t.key||"".concat(e,"-").concat(r),ticks:hf(o,!0)}))},n.renderXAxis=function(t,e,r){var i=n.state.xAxisMap[t.props.xAxisId];return n.renderAxis(i,t,e,r)},n.renderYAxis=function(t,e,r){var i=n.state.yAxisMap[t.props.yAxisId];return n.renderAxis(i,t,e,r)},n.renderGrid=function(t){var e=n.state,r=e.xAxisMap,i=e.yAxisMap,o=e.offset,a=n.props,s=a.width,u=a.height,c=Gt(r),l=kd()(i,(function(t){return Od()(t.domain,Number.isFinite)}))||Gt(i),h=t.props||{};return Object(f.cloneElement)(t,{key:t.key||"grid",x:Wt(h.x)?h.x:o.left,y:Wt(h.y)?h.y:o.top,width:Wt(h.width)?h.width:o.width,height:Wt(h.height)?h.height:o.height,xAxis:c,yAxis:l,offset:o,chartWidth:s,chartHeight:u,verticalCoordinatesGenerator:h.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:h.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(t){var e=n.state,r=e.radiusAxisMap,i=e.angleAxisMap,o=Gt(r),a=Gt(i),s=a.cx,u=a.cy,c=a.innerRadius,l=a.outerRadius;return Object(f.cloneElement)(t,{polarAngles:hf(a,!0).map((function(t){return t.coordinate})),polarRadius:hf(o,!0).map((function(t){return t.coordinate})),cx:s,cy:u,innerRadius:c,outerRadius:l,key:t.key||"polar-grid"})},n.renderBrush=function(t){var e=n.props,r=e.margin,i=e.data,o=n.state,a=o.offset,s=o.dataStartIndex,u=o.dataEndIndex,c=o.updateId;return Object(f.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:df(n.handleBrushChange,null,t.props.onChange),data:i,x:Wt(t.props.x)?t.props.x:a.left,y:Wt(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Wt(t.props.width)?t.props.width:a.width,startIndex:s,endIndex:u,updateId:"brush-".concat(c)})},n.renderReferenceElement=function(t,e,r){if(!t)return null;var i=Rm(n).clipPathId,o=n.state,a=o.xAxisMap,s=o.yAxisMap,u=o.offset,c=t.props,l=c.xAxisId,h=c.yAxisId;return Object(f.cloneElement)(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[l],yAxis:s[h],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:i})},n.renderGraphicChild=function(t,e,r){var i=n.filterFormatItem(t,e,r);if(!i)return null;var o=Object(f.cloneElement)(t,i.props),s=n.state,u=s.isTooltipActive,c=s.tooltipAxis,l=s.activeTooltipIndex,h=s.activeLabel,d=n.props.children,p=_e(d,Ye),m=i.props,y=m.points,v=m.isRange,g=m.baseLine,b=i.item.props,w=b.activeDot;if(!b.hide&&u&&p&&w&&l>=0){var _,x;if(c.dataKey&&!c.allowDuplicatedCategory){var O="function"===typeof c.dataKey?function(t){return c.dataKey(t.payload)}:"payload.".concat(c.dataKey);_=Kt(y,O,h),x=v&&g&&Kt(g,O,h)}else _=y[l],x=v&&g&&g[l];if(!a()(_))return[o].concat(Am(n.renderActivePoints({item:i,activePoint:_,basePoint:x,childIndex:l,isRange:v})))}return v?[o,null,null]:[o,null]},n.renderCustomized=function(t){return Object(f.cloneElement)(t,Lm({},n.props,{},n.state))};var i=n.constructor.createDefaultState(t);return n.state=Lm({},i,{updateId:0},n.updateStateOfAxisMapsOffsetAndStackGroups(Lm({props:t},i,{updateId:0}))),n.uniqueChartId=a()(t.id)?qt("recharts"):t.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),t.throttleDelay&&(n.triggeredAfterMouseMove=jd()(n.triggeredAfterMouseMove,t.throttleDelay)),n}var l,d,p;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&zm(t,e)}(r,t),l=r,p=[{key:"getAxisNameByLayout",value:function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}}},{key:"renderActiveDot",value:function(t,e){var n;return n=Object(f.isValidElement)(t)?Object(f.cloneElement)(t,e):u()(t)?t(e):h.a.createElement(sr,e),h.a.createElement(hr,{className:"recharts-active-dot",key:e.key},n)}}],(d=[{key:"componentDidMount",value:function(){a()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(t){var e=this,n=this.props,r=n.data,i=n.children,o=n.width,s=n.height,u=n.layout,c=n.stackOffset,l=n.margin,f=this.state.updateId;if(t.data===r&&t.width===o&&t.height===s&&t.layout===u&&t.stackOffset===c&&fe(t.margin,l)){if(!Ae(t.children,i)){var h=a()(t.data)?f+1:f;this.setState((function(n){return Lm({updateId:h},e.updateStateOfAxisMapsOffsetAndStackGroups(Lm({props:t},n,{updateId:h})))}))}}else{var d=this.constructor.createDefaultState(t);this.setState(Lm({},d,{updateId:f+1},this.updateStateOfAxisMapsOffsetAndStackGroups(Lm({props:t},d,{updateId:f+1}))))}a()(this.props.syncId)&&!a()(t.syncId)&&this.addListener(),!a()(this.props.syncId)&&a()(t.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){a()(this.props.syncId)||this.removeListener(),"function"===typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getAxisMap",value:function(t,e){var n=e.axisType,r=void 0===n?"xAxis":n,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,s=e.dataStartIndex,u=e.dataEndIndex,c=t.children,l="".concat(r,"Id"),f=we(c,i),h={};return f&&f.length?h=this.getAxisMapByAxes(t,{axes:f,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(h=this.getAxisMapByItems(t,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:u})),h}},{key:"getAxisMapByAxes",value:function(t,e){var n=this,r=e.axes,i=e.graphicalItems,o=e.axisType,s=e.axisIdKey,u=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,f=t.layout,h=t.children,d=t.stackOffset,p=lf(f,o);return r.reduce((function(e,r){var m=r.props,y=m.type,v=m.dataKey,g=m.allowDataOverflow,b=m.allowDuplicatedCategory,w=m.scale,_=m.ticks,x=r.props[s],O=n.constructor.getDisplayedData(t,{graphicalItems:i.filter((function(t){return t.props[s]===x})),dataStartIndex:c,dataEndIndex:l}),S=O.length;if(!e[x]){var k,T,E;if(v){if(k=of(O,v,y),"category"===y&&p){var P=function(t){if(!Lt()(t))return!1;for(var e=t.length,n={},r=0;r=0?t:[].concat(Am(t),[e])}),[]))}else if("category"===y)k=b?k.filter((function(t){return""!==t&&!a()(t)})):Ef(r.props.domain,k,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||a()(e)?t:[].concat(Am(t),[e])}),[]);else if("number"===y){var j=function(t,e,n,r){var i=e.map((function(e){return uf(t,e,n,r)})).filter((function(t){return!a()(t)}));return i&&i.length?i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(O,i.filter((function(t){return t.props[s]===x&&!t.props.hide})),v,o);j&&(k=j)}!p||"number"!==y&&"auto"===w||(E=of(O,v,"category"))}else k=p?Ed()(0,S):u&&u[x]&&u[x].hasStack&&"number"===y?"expand"===d?[0,1]:xf(u[x].stackGroups,c,l):cf(O,i.filter((function(t){return t.props[s]===x&&!t.props.hide})),y,!0);return"number"===y&&(k=Sm(h,k,x,o,_),r.props.domain&&(k=kf(r.props.domain,k,g))),Lm({},e,Nm({},x,Lm({},r.props,{axisType:o,domain:k,categoricalDomain:E,duplicateDomain:T,originalDomain:r.props.domain,isCategorial:p,layout:f})))}return e}),{})}},{key:"getAxisMapByItems",value:function(t,e){var n=e.graphicalItems,r=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,s=e.dataStartIndex,u=e.dataEndIndex,c=t.layout,l=t.children,f=this.constructor.getDisplayedData(t,{graphicalItems:n,dataStartIndex:s,dataEndIndex:u}),h=f.length,d=lf(c,i),p=-1;return n.reduce((function(t,e){var m,y=e.props[o];return t[y]?t:(p++,d?m=Ed()(0,h):a&&a[y]&&a[y].hasStack?(m=xf(a[y].stackGroups,s,u),m=Sm(l,m,y,i)):(m=kf(r.defaultProps.domain,cf(f,n.filter((function(t){return t.props[o]===y&&!t.props.hide})),"number"),r.defaultProps.allowDataOverflow),m=Sm(l,m,y,i)),Lm({},t,Nm({},y,Lm({axisType:i},r.defaultProps,{hide:!0,orientation:Bm[i]&&Bm[i][p%2],domain:m,originalDomain:r.defaultProps.domain,isCategorial:d,layout:c}))))}),{})}},{key:"getActiveCoordinate",value:function(t,e,n){var r=this.props.layout,i=t.find((function(t){return t&&t.index===e}));if(i){if("horizontal"===r)return{x:i.coordinate,y:n.y};if("vertical"===r)return{x:n.x,y:i.coordinate};if("centric"===r){var o=i.coordinate,a=n.radius;return Lm({},n,{},Lf(n.cx,n.cy,a,o),{angle:o,radius:a})}var s=i.coordinate,u=n.angle;return Lm({},n,{},Lf(n.cx,n.cy,s,u),{angle:u,radius:s})}return Fm}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=function(t,e){return{chartX:Math.round(t.pageX-e.left),chartY:Math.round(t.pageY-e.top)}}(t,function(t){var e=t.ownerDocument.documentElement,n={top:0,left:0};return"undefined"!==typeof t.getBoundingClientRect&&(n=t.getBoundingClientRect()),{top:n.top+window.pageYOffset-e.clientTop,left:n.left+window.pageXOffset-e.clientLeft}}(this.container)),n=this.inRange(e.chartX,e.chartY);if(!n)return null;var r=this.state,o=r.xAxisMap,a=r.yAxisMap;if("axis"!==i&&o&&a){var s=Gt(o).scale,u=Gt(a).scale;return Lm({},e,{xValue:s&&s.invert?s.invert(e.chartX):null,yValue:u&&u.invert?u.invert(e.chartY):null})}var c=this.state,l=c.orderedTooltipTicks,f=c.tooltipAxis,h=c.tooltipTicks,d=function(t,e,n,r){var i=-1,o=e.length;if(o>1){if(r&&"angleAxis"===r.axisType&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var a=r.range,s=0;s0?n[s-1].coordinate:n[o-1].coordinate,c=n[s].coordinate,l=s>=o-1?n[0].coordinate:n[s+1].coordinate,f=void 0;if(Ft(c-u)!==Ft(l-c)){var h=[];if(Ft(l-c)===Ft(a[1]-a[0])){f=l;var d=c+a[1]-a[0];h[0]=Math.min(d,(d+u)/2),h[1]=Math.max(d,(d+u)/2)}else{f=u;var p=l+a[1]-a[0];h[0]=Math.min(c,(p+c)/2),h[1]=Math.max(c,(p+c)/2)}var m=[Math.min(c,(f+c)/2),Math.max(c,(f+c)/2)];if(t>m[0]&&t<=m[1]||t>=h[0]&&t<=h[1]){i=n[s].index;break}}else{var y=Math.min(u,l),v=Math.max(u,l);if(t>(y+c)/2&&t<=(v+c)/2){i=n[s].index;break}}}else for(var g=0;g0&&g(e[g].coordinate+e[g-1].coordinate)/2&&t<=(e[g].coordinate+e[g+1].coordinate)/2||g===o-1&&t>(e[g].coordinate+e[g-1].coordinate)/2){i=e[g].index;break}}else i=0;return i}(this.calculateTooltipPos(n),l,h,f);if(d>=0&&h){var p=h[d]&&h[d].value;return Lm({},e,{activeTooltipIndex:d,activeLabel:p,activePayload:this.getTooltipContent(d,p),activeCoordinate:this.getActiveCoordinate(l,d,n)})}return null}},{key:"getTooltipContent",value:function(t,e){var n=this.state,r=n.graphicalItems,i=n.tooltipAxis,o=this.constructor.getDisplayedData(this.props,this.state);return t<0||!r||!r.length||t>=o.length?null:r.reduce((function(n,r){if(r.props.hide)return n;var a,s=r.props,u=s.dataKey,c=s.name,l=s.unit,f=s.formatter,h=s.data,d=s.tooltipType;return(a=i.dataKey&&!i.allowDuplicatedCategory?Kt(h||o,i.dataKey,e):h&&h[t]||o[t])?[].concat(Am(n),[Lm({},xe(r),{dataKey:u,unit:l,formatter:f,name:c||u,color:af(r),value:rf(a,u),type:d,payload:a})]):n}),[])}},{key:"getFormatItems",value:function(t,e){var n=this,r=e.graphicalItems,i=e.stackGroups,s=e.offset,u=e.updateId,c=e.dataStartIndex,l=e.dataEndIndex,f=t.barSize,h=t.layout,d=t.barGap,p=t.barCategoryGap,m=t.maxBarSize,y=this.constructor.getAxisNameByLayout(h),v=y.numericAxisName,g=y.cateAxisName,b=this.constructor.hasBar(r),w=b&&function(t){var e=t.barSize,n=t.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),s=0,u=o.length;s=0}));if(y&&y.length){var v=y[0].props.barSize,g=y[0].props[m];i[g]||(i[g]=[]),i[g].push({item:y[0],stackList:y.slice(1),barSize:a()(v)?e:v})}}return i}({barSize:f,stackGroups:i}),_=[];return r.forEach((function(r,f){var y,x=n.constructor.getDisplayedData(t,{dataStartIndex:c,dataEndIndex:l},r),O=r.props,S=O.dataKey,k=O.maxBarSize,T=r.props["".concat(v,"Id")],E=r.props["".concat(g,"Id")],P=o.reduce((function(t,n){var i,o=e["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],s=o&&o[a];return Lm({},t,(Nm(i={},n.axisType,s),Nm(i,"".concat(n.axisType,"Ticks"),hf(s)),i))}),{}),j=P[g],M=P["".concat(g,"Ticks")],A=i&&i[T]&&i[T].hasStack&&function(t,e){var n=t.props.stackId;if(Ht(n)){var r=e[n];if(r&&r.items.length){for(var i=-1,o=0,a=r.items.length;o=0?r.stackedData[i]:null}}return null}(r,i[T].stackGroups),C=Tf(j,M),L=a()(k)?m:k,N=b&&function(t){var e=t.barGap,n=t.barCategoryGap,r=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,s=o.length;if(s<1)return null;var u,c=Zt(e,r,0,!0);if(o[0].barSize===+o[0].barSize){var l=!1,f=r/s,h=o.reduce((function(t,e){return t+e.barSize||0}),0);(h+=(s-1)*c)>=r&&(h-=(s-1)*c,c=0),h>=r&&f>0&&(l=!0,h=s*(f*=.9));var d={offset:((r-h)/2>>0)-c,size:0};u=o.reduce((function(t,e){var n=[].concat(Ql(t),[{item:e.item,position:{offset:d.offset+d.size+c,size:l?f:e.barSize}}]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:d})})),n}),[])}else{var p=Zt(n,r,0,!0);r-2*p-(s-1)*c<=0&&(c=0);var m=(r-2*p-(s-1)*c)/s;m>1&&(m>>=0);var y=a===+a?Math.min(m,a):m;u=o.reduce((function(t,e,n){var r=[].concat(Ql(t),[{item:e.item,position:{offset:p+(m+c)*n+(m-y)/2,size:y}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){r.push({item:t,position:r[r.length-1].position})})),r}),[])}return u}({barGap:d,barCategoryGap:p,bandSize:C,sizeList:w[E],maxBarSize:L}),I=r&&r.type&&r.type.getComposedData;I&&_.push({props:Lm({},I(Lm({},P,{displayedData:x,props:t,dataKey:S,item:r,bandSize:C,barPosition:N,offset:s,stackedData:A,layout:h,dataStartIndex:c,dataEndIndex:l,onItemMouseLeave:df(n.handleItemMouseLeave,null,r.props.onMouseLeave),onItemMouseEnter:df(n.handleItemMouseEnter,null,r.props.onMouseEnter)})),(y={key:r.key||"item-".concat(f)},Nm(y,v,P[v]),Nm(y,g,P[g]),Nm(y,"animationId",u),y)),childIndex:Le(r,t.children),item:r})})),_}},{key:"getCursorRectangle",value:function(){var t=this.props.layout,e=this.state,n=e.activeCoordinate,r=e.offset,i=e.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?n.x-o:r.left+.5,y:"horizontal"===t?r.top+.5:n.y-o,width:"horizontal"===t?i:r.width-1,height:"horizontal"===t?r.height-1:i}}},{key:"getCursorPoints",value:function(){var t,e,n,r,i=this.props.layout,o=this.state,s=o.activeCoordinate,u=o.offset;if("horizontal"===i)n=t=s.x,e=u.top,r=u.top+u.height;else if("vertical"===i)r=e=s.y,t=u.left,n=u.left+u.width;else if(!a()(s.cx)||!a()(s.cy)){if("centric"!==i){var c=s.cx,l=s.cy,f=s.radius,h=s.startAngle,d=s.endAngle;return{points:[Lf(c,l,f,h),Lf(c,l,f,d)],cx:c,cy:l,radius:f,startAngle:h,endAngle:d}}var p=s.cx,m=s.cy,y=s.innerRadius,v=s.outerRadius,g=s.angle,b=Lf(p,m,y,g),w=Lf(p,m,v,g);t=b.x,e=b.y,n=w.x,r=w.y}return[{x:t,y:e},{x:n,y:r}]}},{key:"calculateTooltipPos",value:function(t){var e=this.props.layout;return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}},{key:"inRange",value:function(t,e){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return t>=r.left&&t<=r.left+r.width&&e>=r.top&&e<=r.top+r.height?{x:t,y:e}:null}var i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var s=Gt(o);return Df({x:t,y:e},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=_e(t,Ye)&&"axis"===i?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}:{};return Lm({},Se(this.props,this.handleOuterEvent),{},e)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(t){var r=this,i=t.props,a=t.dataStartIndex,s=t.dataEndIndex,u=t.updateId;if(!Ee({props:i}))return null;var l=i.children,f=i.layout,h=i.stackOffset,d=i.data,p=i.reverseStackOrder,m=this.constructor.getAxisNameByLayout(f),y=m.numericAxisName,v=m.cateAxisName,g=we(l,n),b=function(t,e,n,r,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce((function(t,e){var i=e.props,o=i.stackId;if(i.hide)return t;var a=e.props[n],s=t[a]||{hasStack:!1,stackGroups:{}};if(Ht(o)){var u=s.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};u.items.push(e),s.hasStack=!0,s.stackGroups[o]=u}else s.stackGroups[qt("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[e]};return ef({},t,nf({},a,s))}),{});return Object.keys(a).reduce((function(e,o){var s=a[o];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(e,o){var a=s.stackGroups[o];return ef({},e,nf({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:gf(t,a.items,i)}))}),{})),ef({},e,nf({},o,s))}),{})}(d,g,"".concat(y,"Id"),"".concat(v,"Id"),h,p),w=o.reduce((function(t,e){return Lm({},t,Nm({},"".concat(e.axisType,"Map"),r.getAxisMap(i,Lm({},e,{graphicalItems:g,stackGroups:e.axisType===y&&b,dataStartIndex:a,dataEndIndex:s}))))}),{}),_=this.calculateOffset(Lm({},w,{props:i,graphicalItems:g}));Object.keys(w).forEach((function(t){w[t]=c(i,w[t],_,t.replace("Map",""),e)}));var x=w["".concat(v,"Map")],O=this.tooltipTicksGenerator(x),S=this.getFormatItems(i,Lm({},w,{dataStartIndex:a,dataEndIndex:s,updateId:u,graphicalItems:g,stackGroups:b,offset:_}));return Lm({formatedGraphicalItems:S,graphicalItems:g,offset:_,stackGroups:b},O,{},w)}},{key:"addListener",value:function(){Tm.on(Em,this.handleReceiveSyncEvent),Tm.setMaxListeners&&Tm._maxListeners&&Tm.setMaxListeners(Tm._maxListeners+1)}},{key:"removeListener",value:function(){Tm.removeListener(Em,this.handleReceiveSyncEvent),Tm.setMaxListeners&&Tm._maxListeners&&Tm.setMaxListeners(Tm._maxListeners-1)}},{key:"calculateOffset",value:function(t){var e=t.props,n=t.graphicalItems,r=t.xAxisMap,i=void 0===r?{}:r,o=t.yAxisMap,a=void 0===o?{}:o,s=e.width,u=e.height,c=e.children,l=e.margin||{},f=_e(c,kp),h=_e(c,Jl),d=Object.keys(a).reduce((function(t,e){var n=a[e],r=n.orientation;return n.mirror||n.hide?t:Lm({},t,Nm({},r,t[r]+n.width))}),{left:l.left||0,right:l.right||0}),p=Object.keys(i).reduce((function(t,e){var n=i[e],r=n.orientation;return n.mirror||n.hide?t:Lm({},t,Nm({},r,t[r]+n.height))}),{top:l.top||0,bottom:l.bottom||0}),m=Lm({},p,{},d),y=m.bottom;return f&&(m.bottom+=f.props.height||kp.defaultProps.height),h&&this.legendInstance&&(m=function(t,e,n,r){var i=n.children,o=n.width,a=n.height,s=n.margin,u=o-(s.left||0)-(s.right||0),c=a-(s.top||0)-(s.bottom||0),l=sf({children:i,items:e,legendWidth:u,legendHeight:c}),f=t;if(l){var h=r||{},d=l.align,p=l.verticalAlign,m=l.layout;("vertical"===m||"horizontal"===m&&"center"===p)&&Wt(t[d])&&(f=ef({},t,nf({},d,f[d]+(h.width||0)))),("horizontal"===m||"vertical"===m&&"center"===d)&&Wt(t[p])&&(f=ef({},t,nf({},p,f[p]+(h.height||0))))}return f}(m,n,e,this.legendInstance.getBBox())),Lm({brushBottom:y},m,{width:s-m.left-m.right,height:u-m.top-m.bottom})}},{key:"triggerSyncEvent",value:function(t){var e=this.props.syncId;a()(e)||Tm.emit(Em,e,this.uniqueChartId,t)}},{key:"filterFormatItem",value:function(t,e,n){for(var r=this.state.formatedGraphicalItems,i=0,o=r.length;i=0}))},m.getDisplayedData=function(t,e,n){var r=e.graphicalItems,i=e.dataStartIndex,o=e.dataEndIndex,a=(r||[]).reduce((function(t,e){var n=e.props.data;return n&&n.length?[].concat(Am(t),Am(n)):t}),[]);if(a&&a.length>0)return a;if(n&&n.props&&n.props.data&&n.props.data.length>0)return n.props.data;var s=t.data;return s&&s.length&&Wt(i)&&Wt(o)?s.slice(i,o+1):[]},m},Wm=Um({chartName:"BarChart",GraphicalChild:od,axisComponents:[{axisType:"xAxis",AxisComp:dd},{axisType:"yAxis",AxisComp:_d}],formatAxisMap:Ip});function Hm(t){return Hm="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hm(t)}function Vm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qm(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n");return t}},function(t,e,n){"use strict";function r(){if(console&&console.warn){for(var t,e=arguments.length,n=new Array(e),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};if(!e.languages||!e.languages.length)return o("i18n.languages were undefined or empty",e.languages),!0;var r=e.languages[0],i=!!e.options&&e.options.fallbackLng,a=e.languages[e.languages.length-1];if("cimode"===r.toLowerCase())return!0;var s=function(t,n){var r=e.services.backendConnector.state["".concat(t,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!s(e.isLanguageChangingTo,t))&&(!!e.hasResourceBundle(r,t)||(!e.services.backendConnector.backend||!(!s(r,t)||i&&!s(a,t))))}function u(t){return t.displayName||t.name||("string"===typeof t&&t.length>0?t:"Unknown")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(98);function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Object(r.a)(t,e)}},function(t,e,n){"use strict";var r="Invariant failed";e.a=function(t,e){if(!t)throw new Error(r)}},,function(t,e,n){"use strict";function r(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){return function(e,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,a=i.width?String(i.width):o;r=t.formattingValues[a]||t.formattingValues[o]}else{var s=t.defaultWidth,u=i.width?String(i.width):t.defaultWidth;r=t.values[u]||t.values[s]}return r[t.argumentCallback?t.argumentCallback(e):e]}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(a);if(!s)return null;var u,c=s[0],l=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],f=Array.isArray(l)?o(l,(function(t){return t.test(c)})):i(l,(function(t){return t.test(c)}));u=t.valueCallback?t.valueCallback(f):f,u=n.valueCallback?n.valueCallback(u):u;var h=e.slice(c.length);return{value:u,rest:h}}}function i(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function o(t,e){for(var n=0;n=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Object(i.a)(t),f=l.getUTCDay(),h=(f0?Math.floor(t):Math.ceil(t)};function I(t,e,n){return t instanceof C?t:v(t)?new C(t[0],t[1]):void 0===t||null===t?t:"object"===typeof t&&"x"in t&&"y"in t?new C(t.x,t.y):new C(t,e,n)}function D(t,e){if(t)for(var n=e?[t,e]:t,r=0,i=n.length;r=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=R(t);var e=this.min,n=this.max,r=t.min,i=t.max,o=i.x>=e.x&&r.x<=n.x,a=i.y>=e.y&&r.y<=n.y;return o&&a},overlaps:function(t){t=R(t);var e=this.min,n=this.max,r=t.min,i=t.max,o=i.x>e.x&&r.xe.y&&r.y=r.lat&&n.lat<=i.lat&&e.lng>=r.lng&&n.lng<=i.lng},intersects:function(t){t=B(t);var e=this._southWest,n=this._northEast,r=t.getSouthWest(),i=t.getNorthEast(),o=i.lat>=e.lat&&r.lat<=n.lat,a=i.lng>=e.lng&&r.lng<=n.lng;return o&&a},overlaps:function(t){t=B(t);var e=this._southWest,n=this._northEast,r=t.getSouthWest(),i=t.getNorthEast(),o=i.lat>e.lat&&r.late.lng&&r.lng1,Et=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",c,e),window.removeEventListener("testPassiveEventSupport",c,e)}catch(n){}return t}(),Pt=!!document.createElement("canvas").getContext,jt=!(!document.createElementNS||!$("svg").createSVGRect),Mt=!jt&&function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"===typeof e.adj}catch(n){return!1}}();function At(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Ct={ie:Q,ielt9:tt,edge:et,webkit:nt,android:rt,android23:it,androidStock:at,opera:st,chrome:ut,gecko:ct,safari:lt,phantom:ft,opera12:ht,win:dt,ie3d:pt,webkit3d:mt,gecko3d:yt,any3d:vt,mobile:gt,mobileWebkit:bt,mobileWebkit3d:wt,msPointer:_t,pointer:xt,touch:Ot,mobileOpera:St,mobileGecko:kt,retina:Tt,passiveEvents:Et,canvas:Pt,svg:jt,vml:Mt},Lt=_t?"MSPointerDown":"pointerdown",Nt=_t?"MSPointerMove":"pointermove",It=_t?"MSPointerUp":"pointerup",Dt=_t?"MSPointerCancel":"pointercancel",Rt={},zt=!1;function Bt(t,e,n,r){return"touchstart"===e?Ut(t,n,r):"touchmove"===e?Zt(t,n,r):"touchend"===e&&Gt(t,n,r),this}function Ft(t,e,n){var r=t["_leaflet_"+e+n];return"touchstart"===e?t.removeEventListener(Lt,r,!1):"touchmove"===e?t.removeEventListener(Nt,r,!1):"touchend"===e&&(t.removeEventListener(It,r,!1),t.removeEventListener(Dt,r,!1)),this}function Ut(t,e,n){var r=i((function(t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&He(t),qt(t,e)}));t["_leaflet_touchstart"+n]=r,t.addEventListener(Lt,r,!1),zt||(document.addEventListener(Lt,Wt,!0),document.addEventListener(Nt,Ht,!0),document.addEventListener(It,Vt,!0),document.addEventListener(Dt,Vt,!0),zt=!0)}function Wt(t){Rt[t.pointerId]=t}function Ht(t){Rt[t.pointerId]&&(Rt[t.pointerId]=t)}function Vt(t){delete Rt[t.pointerId]}function qt(t,e){for(var n in t.touches=[],Rt)t.touches.push(Rt[n]);t.changedTouches=[t],e(t)}function Zt(t,e,n){var r=function(t){t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")&&0===t.buttons||qt(t,e)};t["_leaflet_touchmove"+n]=r,t.addEventListener(Nt,r,!1)}function Gt(t,e,n){var r=function(t){qt(t,e)};t["_leaflet_touchend"+n]=r,t.addEventListener(It,r,!1),t.addEventListener(Dt,r,!1)}var Yt=_t?"MSPointerDown":xt?"pointerdown":"touchstart",Kt=_t?"MSPointerUp":xt?"pointerup":"touchend",$t="_leaflet_";function Xt(t,e,n){var r,i,o=!1,a=250;function s(t){if(xt){if(!t.isPrimary)return;if("mouse"===t.pointerType)return}else if(t.touches.length>1)return;var e=Date.now(),n=e-(r||e);i=t.touches?t.touches[0]:t,o=n>0&&n<=a,r=e}function u(t){if(o&&!i.cancelBubble){if(xt){if("mouse"===t.pointerType)return;var n,a,s={};for(a in i)n=i[a],s[a]=n&&n.bind?n.bind(i):n;i=s}i.type="dblclick",i.button=0,e(i),r=null}}return t[$t+Yt+n]=s,t[$t+Kt+n]=u,t[$t+"dblclick"+n]=e,t.addEventListener(Yt,s,!!Et&&{passive:!1}),t.addEventListener(Kt,u,!!Et&&{passive:!1}),t.addEventListener("dblclick",e,!1),this}function Jt(t,e){var n=t[$t+Yt+e],r=t[$t+Kt+e],i=t[$t+"dblclick"+e];return t.removeEventListener(Yt,n,!!Et&&{passive:!1}),t.removeEventListener(Kt,r,!!Et&&{passive:!1}),t.removeEventListener("dblclick",i,!1),this}var Qt,te,ee,ne,re,ie=_e(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),oe=_e(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ae="webkitTransition"===oe||"OTransition"===oe?oe+"End":"transitionend";function se(t){return"string"===typeof t?document.getElementById(t):t}function ue(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(t,null);n=r?r[e]:null}return"auto"===n?null:n}function ce(t,e,n){var r=document.createElement(t);return r.className=e||"",n&&n.appendChild(r),r}function le(t){var e=t.parentNode;e&&e.removeChild(t)}function fe(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function he(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function de(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function pe(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=ge(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function me(t,e){if(void 0!==t.classList)for(var n=h(e),r=0,i=n.length;rthis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,B(t));return n.equals(r)||this.panTo(r,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=I((e=e||{}).paddingTopLeft||e.padding||[0,0]),r=I(e.paddingBottomRight||e.padding||[0,0]),i=this.getCenter(),o=this.project(i),a=this.project(t),s=this.getPixelBounds(),u=s.getSize().divideBy(2),c=R([s.min.add(n),s.max.subtract(r)]);if(!c.contains(a)){this._enforcingBounds=!0;var l=o.subtract(a),f=I(a.x+l.x,a.y+l.y);(a.xc.max.x)&&(f.x=o.x-l.x,l.x>0?f.x+=u.x-n.x:f.x-=u.x-r.x),(a.yc.max.y)&&(f.y=o.y-l.y,l.y>0?f.y+=u.y-n.y:f.y-=u.y-r.y),this.panTo(this.unproject(f),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=n({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),o=e.divideBy(2).round(),a=r.divideBy(2).round(),s=o.subtract(a);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=n({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=i(this._handleGeolocationResponse,this),r=i(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,r,t):navigator.geolocation.getCurrentPosition(e,r,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(t){var e=new F(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),r=this._locateOptions;if(r.setView){var i=this.getBoundsZoom(n);this.setView(e,r.maxZoom?Math.min(i,r.maxZoom):i)}var o={latlng:e,bounds:n,timestamp:t.timestamp};for(var a in t.coords)"number"===typeof t.coords[a]&&(o[a]=t.coords[a]);this.fire("locationfound",o)},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(e){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),le(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(T(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)le(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=ce("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new z(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=B(t),n=I(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),o=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),u=this.getSize().subtract(n),c=R(this.project(s,r),this.project(a,r)).getSize(),l=vt?this.options.zoomSnap:1,f=u.x/c.x,h=u.y/c.y,d=e?Math.max(f,h):Math.min(f,h);return r=this.getScaleZoom(d,r),l&&(r=Math.round(r/(l/100))*(l/100),r=e?Math.ceil(r/l)*l:Math.floor(r/l)*l),Math.max(i,Math.min(o,r))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new C(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new D(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"===typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var r=n.zoom(t*n.scale(e));return isNaN(r)?1/0:r},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(U(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(I(t),e)},layerPointToLatLng:function(t){var e=I(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(U(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(U(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(B(t))},distance:function(t,e){return this.options.crs.distance(U(t),U(e))},containerPointToLayerPoint:function(t){return I(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return I(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(I(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(U(t)))},mouseEventToContainerPoint:function(t){return qe(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=se(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Le(e,"scroll",this._onScroll,this),this._containerId=a(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&vt,me(t,"leaflet-container"+(Ot?" leaflet-touch":"")+(Tt?" leaflet-retina":"")+(tt?" leaflet-oldie":"")+(lt?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ue(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Oe(this._mapPane,new C(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(me(t.markerPane,"leaflet-zoom-hide"),me(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){Oe(this._mapPane,new C(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var r=this._zoom!==e;this._moveStart(r,!1)._move(t,e)._moveEnd(r),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n){void 0===e&&(e=this._zoom);var r=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(r||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return T(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Oe(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[a(this._container)]=this;var e=t?Ie:Le;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),vt&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){T(this._resizeRequest),this._resizeRequest=k((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,r=[],i="mouseout"===e||"mouseover"===e,o=t.target||t.srcElement,s=!1;o;){if((n=this._targets[a(o)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(e,!0)){if(i&&!Xe(o,t))break;if(r.push(n),i)break}if(o===this._container)break;o=o.parentNode}return r.length||s||i||!Xe(o,t)||(r=[this]),r},_handleDOMEvent:function(t){if(this._loaded&&!$e(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||Pe(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,r){if("click"===t.type){var i=n({},t);i.type="preclick",this._fireDOMEvent(i,i.type,r)}if(!t._stopped&&(r=(r||[]).concat(this._findEventTargets(t,e))).length){var o=r[0];"contextmenu"===e&&o.listens(e,!0)&&He(t);var a={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var s=o.getLatLng&&(!o._radius||o._radius<=10);a.containerPoint=s?this.latLngToContainerPoint(o.getLatLng()):this.mouseEventToContainerPoint(t),a.layerPoint=this.containerPointToLayerPoint(a.containerPoint),a.latlng=s?o.getLatLng():this.layerPointToLatLng(a.layerPoint)}for(var u=0;u0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),r=vt?this.options.zoomSnap:1;return r&&(t=Math.round(t/r)*r),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ye(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n))&&(this.panBy(n,e),!0)},_createAnimProxy:function(){var t=this._proxy=ce("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=ie,n=this._proxy.style[e];xe(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){le(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();xe(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(e),i=this._getCenterOffset(t)._divideBy(1-1/r);return!(!0!==n.animate&&!this.getSize().contains(i))&&(k((function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)}),this),!0)},_animateZoom:function(t,e,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,me(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:r}),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ye(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),k((function(){this._moveEnd(!0)}),this))}});function en(t,e){return new tn(t,e)}var nn=P.extend({options:{position:"topright"},initialize:function(t){d(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),r=t._controlCorners[n];return me(e,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(e,r.firstChild):r.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(le(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),rn=function(t){return new nn(t)};tn.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=ce("div",e+"control-container",this._container);function r(r,i){var o=e+r+" "+e+i;t[r+i]=ce("div",o,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)le(this._controlCorners[t]);le(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var on=nn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,r){return n1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(a(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(t){var e,n=document.createElement("label"),r=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=r):e=this._createRadioElement("leaflet-base-layers_"+a(this),r),this._layerControlInputs.push(e),e.layerId=a(t.layer),Le(e,"click",this._onInputClick,this);var i=document.createElement("span");i.innerHTML=" "+t.name;var o=document.createElement("div");return n.appendChild(o),o.appendChild(e),o.appendChild(i),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var t,e,n=this._layerControlInputs,r=[],i=[];this._handlingClick=!0;for(var o=n.length-1;o>=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.checked?r.push(e):t.checked||i.push(e);for(o=0;o=0;i--)t=n[i],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&re.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),an=function(t,e,n){return new on(t,e,n)},sn=nn.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=ce("div",e+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,r,i){var o=ce("a",n,r);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),We(o),Le(o,"click",Ve),Le(o,"click",i,this),Le(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";ye(this._zoomInButton,e),ye(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMinZoom())&&me(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMaxZoom())&&me(this._zoomInButton,e)}});tn.mergeOptions({zoomControl:!0}),tn.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new sn,this.addControl(this.zoomControl))}));var un=function(t){return new sn(t)},cn=nn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=ce("div",e),r=this.options;return this._addScales(r,e+"-line",n),t.on(r.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=ce("div",e,n)),t.imperial&&(this._iScale=ce("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,r,i=3.2808399*t;i>5280?(e=i/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(r=this._getRoundNum(i),this._updateScale(this._iScale,r+" ft",r/i))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),ln=function(t){return new cn(t)},fn=nn.extend({options:{position:"bottomright",prefix:'Leaflet'},initialize:function(t){d(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=ce("div","leaflet-control-attribution"),We(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(" | ")}}});tn.mergeOptions({attributionControl:!0}),tn.addInitHook((function(){this.options.attributionControl&&(new fn).addTo(this)}));var hn=function(t){return new fn(t)};nn.Layers=on,nn.Zoom=sn,nn.Scale=cn,nn.Attribution=fn,rn.layers=an,rn.zoom=un,rn.scale=ln,rn.attribution=hn;var dn=P.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});dn.addTo=function(t,e){return t.addHandler(e,this),this};var pn,mn={Events:M},yn=Ot?"touchstart mousedown":"mousedown",vn={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},gn={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},bn=A.extend({options:{clickTolerance:3},initialize:function(t,e,n,r){d(this,r),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(Le(this._dragStartTarget,yn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(bn._dragging===this&&this.finishDrag(),Ie(this._dragStartTarget,yn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!pe(this._element,"leaflet-zoom-anim")&&!(bn._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches)&&(bn._dragging=this,this._preventOutline&&Pe(this._element),Te(),Qt(),!this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,n=Me(this._element);this._startPoint=new C(e.clientX,e.clientY),this._parentScale=Ae(n),Le(document,gn[t.type],this._onMove,this),Le(document,vn[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new C(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)u&&(o=a,u=s);u>n&&(e[o]=1,Sn(t,e,n,r,o),Sn(t,e,n,o,i))}function kn(t,e){for(var n=[t[0]],r=1,i=0,o=t.length;re&&(n.push(t[r]),i=r);return ie.max.x&&(n|=2),t.ye.max.y&&(n|=8),n}function jn(t,e){var n=e.x-t.x,r=e.y-t.y;return n*n+r*r}function Mn(t,e,n,r){var i,o=e.x,a=e.y,s=n.x-o,u=n.y-a,c=s*s+u*u;return c>0&&((i=((t.x-o)*s+(t.y-a)*u)/c)>1?(o=n.x,a=n.y):i>0&&(o+=s*i,a+=u*i)),s=t.x-o,u=t.y-a,r?s*s+u*u:new C(o,a)}function An(t){return!v(t[0])||"object"!==typeof t[0][0]&&"undefined"!==typeof t[0][0]}function Cn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),An(t)}var Ln={simplify:wn,pointToSegmentDistance:_n,closestPointOnSegment:xn,clipSegment:Tn,_getEdgeIntersection:En,_getBitCode:Pn,_sqClosestPointOnSegment:Mn,isFlat:An,_flat:Cn};function Nn(t,e,n){var r,i,o,a,s,u,c,l,f,h=[1,4,2,8];for(i=0,c=t.length;i1e-7;u++)e=o*Math.sin(s),e=Math.pow((1-e)/(1+e),o/2),s+=c=Math.PI/2-2*Math.atan(a*e)-s;return new F(s*n,t.x*n/r)}},zn={LonLat:Dn,Mercator:Rn,SphericalMercator:q},Bn=n({},H,{code:"EPSG:3395",projection:Rn,transformation:function(){var t=.5/(Math.PI*Rn.R);return G(t,.5,-t,.5)}()}),Fn=n({},H,{code:"EPSG:4326",projection:Dn,transformation:G(1/180,1,-1/180,.5)}),Un=n({},W,{projection:Dn,transformation:G(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,r=e.lat-t.lat;return Math.sqrt(n*n+r*r)},infinite:!0});W.Earth=H,W.EPSG3395=Bn,W.EPSG3857=Y,W.EPSG900913=K,W.EPSG4326=Fn,W.Simple=Un;var Wn=A.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[a(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[a(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",(function(){e.off(n,this)}),this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});tn.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=a(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=a(t);return this._layers[e]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&a(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?v(t)?t:[t]:[]).length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()e)return a=(r-e)/n,this._map.layerPointToLatLng([o.x-a*(o.x-i.x),o.y-a*(o.y-i.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=U(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new z,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return An(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=An(t),r=0,i=t.length;r=2&&e[0]instanceof F&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){ir.prototype._setLatLngs.call(this,t),An(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return An(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new C(e,e);if(t=new D(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var r,i=0,o=this._rings.length;it.y!==r.y>t.y&&t.x<(r.x-n.x)*(t.y-n.y)/(r.y-n.y)+n.x&&(c=!c);return c||ir.prototype._containsPoint.call(this,t,!0)}});function sr(t,e){return new ar(t,e)}var ur=qn.extend({initialize:function(t,e){d(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,r,i=v(t)?t:t.features;if(i){for(e=0,n=i.length;e0?r:[e.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted;for(var a=0;ai?(e.height=i+"px",me(t,o)):ye(t,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();Oe(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,e=parseInt(ue(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,r=this._containerWidth,i=new C(this._containerLeft,-n-this._containerBottom);i._add(Se(this._container));var o=t.layerPointToContainerPoint(i),a=I(this.options.autoPanPadding),s=I(this.options.autoPanPaddingTopLeft||a),u=I(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),l=0,f=0;o.x+r+u.x>c.x&&(l=o.x+r-c.x+u.x),o.x-l-s.x<0&&(l=o.x-s.x),o.y+n+u.y>c.y&&(f=o.y+n-c.y+u.y),o.y-f-s.y<0&&(f=o.y-s.y),(l||f)&&t.fire("autopanstart").panBy([l,f])}},_onCloseButtonClick:function(t){this._close(),Ve(t)},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Pr=function(t,e){return new Er(t,e)};tn.mergeOptions({closePopupOnClick:!0}),tn.include({openPopup:function(t,e,n){return t instanceof Er||(t=new Er(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Wn.include({bindPopup:function(t,e){return t instanceof Er?(d(t,e),this._popup=t,t._source=this):(this._popup&&!e||(this._popup=new Er(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(Ve(t),e instanceof Qn?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var jr=Tr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){Tr.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){Tr.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=Tr.prototype.getEvents.call(this);return Ot&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ce("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,r=this._map,i=this._container,o=r.latLngToContainerPoint(r.getCenter()),a=r.layerPointToContainerPoint(t),s=this.options.direction,u=i.offsetWidth,c=i.offsetHeight,l=I(this.options.offset),f=this._getAnchor();"top"===s?(e=u/2,n=c):"bottom"===s?(e=u/2,n=0):"center"===s?(e=u/2,n=c/2):"right"===s?(e=0,n=c/2):"left"===s?(e=u,n=c/2):a.xthis.options.maxZoom||nr&&this._retainParent(i,o,a,r))},_retainChildren:function(t,e,n,r){for(var i=2*t;i<2*t+2;i++)for(var o=2*e;o<2*e+2;o++){var a=new C(i,o);a.z=n+1;var s=this._tileCoordsToKey(a),u=this._tiles[s];u&&u.active?u.retain=!0:(u&&u.loaded&&(u.retain=!0),n+1this.options.maxZoom||void 0!==this.options.minZoom&&i1)this._setView(t,n);else{for(var f=i.min.y;f<=i.max.y;f++)for(var h=i.min.x;h<=i.max.x;h++){var d=new C(h,f);if(d.z=this._tileZoom,this._isValidTile(d)){var p=this._tiles[this._tileCoordsToKey(d)];p?p.current=!0:a.push(d)}}if(a.sort((function(t,e){return t.distanceTo(o)-e.distanceTo(o)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(h=0;hn.max.x)||!e.wrapLat&&(t.yn.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(t);return B(this.options.bounds).overlaps(r)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),r=t.scaleBy(n),i=r.add(n);return[e.unproject(r,t.z),e.unproject(i,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new z(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new C(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(le(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){me(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=c,t.onmousemove=c,tt&&this.options.opacity<1&&be(t,this.options.opacity),rt&&!it&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var n=this._getTilePos(t),r=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),i(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&k(i(this._tileReady,this,t,null,o)),Oe(o,n),this._tiles[r]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var r=this._tileCoordsToKey(t);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(be(n.el,0),T(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(me(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),tt||!this._map._fadeAnimated?k(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new C(this._wrapX?u(t.x,this._wrapX):t.x,this._wrapY?u(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new D(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Nr(t){return new Lr(t)}var Ir=Lr.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=d(this,e)).detectRetina&&Tt&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"===typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),rt||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return Le(n,"load",i(this._tileOnLoad,this,e,n)),Le(n,"error",i(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:Tt?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=r),e["-y"]=r}return y(this._url,n(e,this.options))},_tileOnLoad:function(t,e){tt?setTimeout(i(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var r=this.options.errorTileUrl;r&&e.getAttribute("src")!==r&&(e.src=r),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=c,e.onerror=c,e.complete||(e.src=b,le(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return at||e.el.setAttribute("src",b),Lr.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==b))return Lr.prototype._tileReady.call(this,t,e,n)}});function Dr(t,e){return new Ir(t,e)}var Rr=Ir.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var r=n({},this.defaultWmsParams);for(var i in e)i in this.options||(r[i]=e[i]);var o=(e=d(this,e)).detectRetina&&Tt?2:1,a=this.getTileSize();r.width=a.x*o,r.height=a.y*o,this.wmsParams=r},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Ir.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,r=R(n.project(e[0]),n.project(e[1])),i=r.min,o=r.max,a=(this._wmsVersion>=1.3&&this._crs===Fn?[i.y,i.x,o.y,o.x]:[i.x,i.y,o.x,o.y]).join(","),s=Ir.prototype.getTileUrl.call(this,t);return s+p(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,e){return n(this.wmsParams,t),e||this.redraw(),this}});function zr(t,e){return new Rr(t,e)}Ir.WMS=Rr,Dr.wms=zr;var Br=Wn.extend({options:{padding:.1,tolerance:0},initialize:function(t){d(this,t),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&me(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),r=Se(this._container),i=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),a=this._map.project(t,e).subtract(o),s=i.multiplyBy(-n).add(r).add(i).subtract(a);vt?xe(this._container,s,n):Oe(this._container,s)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new D(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Fr=Br.extend({getEvents:function(){var t=Br.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Br.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Le(t,"mousemove",this._onMouseMove,this),Le(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Le(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){T(this._redrawRequest),delete this._ctx,le(this._container),Ie(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Br.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),r=Tt?2:1;Oe(e,t.min),e.width=r*n.x,e.height=r*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",Tt&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Br.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[a(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,r=e.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete t._order,delete this._layers[a(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"===typeof t.options.dashArray){var e,n,r=t.options.dashArray.split(/[, ]+/),i=[];for(n=0;n')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),Hr={_initContainer:function(){this._container=ce("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Br.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Wr("shape");me(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Wr("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;le(e),t.removeInteractiveTarget(e),delete this._layers[a(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,r=t.options,i=t._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(e||(e=t._stroke=Wr("stroke")),i.appendChild(e),e.weight=r.weight+"px",e.color=r.color,e.opacity=r.opacity,r.dashArray?e.dashStyle=v(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=r.lineCap.replace("butt","flat"),e.joinstyle=r.lineJoin):e&&(i.removeChild(e),t._stroke=null),r.fill?(n||(n=t._fill=Wr("fill")),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),r=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+r+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){he(t._container)},_bringToBack:function(t){de(t._container)}},Vr=Mt?Wr:$,qr=Br.extend({getEvents:function(){var t=Br.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=Vr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Vr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){le(this._container),Ie(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){Br.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),Oe(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Vr("path");t.options.className&&me(e,t.options.className),t.options.interactive&&me(e,"leaflet-interactive"),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){le(t._path),t.removeInteractiveTarget(t._path),delete this._layers[a(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,X(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),r="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",i=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(t,i)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){he(t._path)},_bringToBack:function(t){de(t._path)}});function Zr(t){return jt||Mt?new qr(t):null}Mt&&qr.include(Hr),tn.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Ur(t)||Zr(t)}});var Gr=ar.extend({initialize:function(t,e){ar.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=B(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Yr(t,e){return new Gr(t,e)}qr.create=Vr,qr.pointsToPath=X,ur.geometryToLayer=cr,ur.coordsToLatLng=fr,ur.coordsToLatLngs=hr,ur.latLngToCoords=dr,ur.latLngsToCoords=pr,ur.getFeature=mr,ur.asFeature=yr,tn.mergeOptions({boxZoom:!0});var Kr=dn.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Le(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ie(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){le(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Qt(),Te(),this._startPoint=this._map.mouseEventToContainerPoint(t),Le(document,{contextmenu:Ve,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ce("div","leaflet-zoom-box",this._container),me(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new D(this._point,this._startPoint),n=e.getSize();Oe(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(le(this._box),ye(this._container,"leaflet-crosshair")),te(),Ee(),Ie(document,{contextmenu:Ve,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var e=new z(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});tn.addInitHook("addHandler","boxZoom",Kr),tn.mergeOptions({doubleClickZoom:!0});var $r=dn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),r=e.options.zoomDelta,i=t.originalEvent.shiftKey?n-r:n+r;"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}});tn.addInitHook("addHandler","doubleClickZoom",$r),tn.mergeOptions({dragging:!0,inertia:!it,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Xr=dn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new bn(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}me(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ye(this._map._container,"leaflet-grab"),ye(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=B(this._map.options.maxBounds);this._offsetLimit=R(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-e+n)%t+e-n,o=(r+e+n)%t-e-n,a=Math.abs(i+n)0?o:-o))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});tn.addInitHook("addHandler","scrollWheelZoom",Qr),tn.mergeOptions({tap:!0,tapTolerance:15});var ti=dn.extend({addHooks:function(){Le(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ie(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(He(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],n=e.target;this._startPos=this._newPos=new C(e.clientX,e.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&me(n,"leaflet-active"),this._holdTimeout=setTimeout(i((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))}),this),1e3),this._simulateEvent("mousedown",e),Le(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),Ie(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],n=e.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&ye(n,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new C(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var n=document.createEvent("MouseEvents");n._simulated=!0,e.target._simulatedClick=!0,n.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(n)}});!Ot||xt&&!lt||tn.addInitHook("addHandler","tap",ti),tn.mergeOptions({touchZoom:Ot&&!it,bounceAtZoomLimits:!0});var ei=dn.extend({addHooks:function(){me(this._map._container,"leaflet-touch-zoom"),Le(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ye(this._map._container,"leaflet-touch-zoom"),Ie(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Le(document,"touchmove",this._onTouchMove,this),Le(document,"touchend",this._onTouchEnd,this),He(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]),o=n.distanceTo(r)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var a=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),T(this._animRequest);var s=i(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=k(s,this,!0),He(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,T(this._animRequest),Ie(document,"touchmove",this._onTouchMove,this),Ie(document,"touchend",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});tn.addInitHook("addHandler","touchZoom",ei),tn.BoxZoom=Kr,tn.DoubleClickZoom=$r,tn.Drag=Xr,tn.Keyboard=Jr,tn.ScrollWheelZoom=Qr,tn.Tap=ti,tn.TouchZoom=ei,t.version=e,t.Control=nn,t.control=rn,t.Browser=Ct,t.Evented=A,t.Mixin=mn,t.Util=E,t.Class=P,t.Handler=dn,t.extend=n,t.bind=i,t.stamp=a,t.setOptions=d,t.DomEvent=Je,t.DomUtil=Ce,t.PosAnimation=Qe,t.Draggable=bn,t.LineUtil=Ln,t.PolyUtil=In,t.Point=C,t.point=I,t.Bounds=D,t.bounds=R,t.Transformation=Z,t.transformation=G,t.Projection=zn,t.LatLng=F,t.latLng=U,t.LatLngBounds=z,t.latLngBounds=B,t.CRS=W,t.GeoJSON=ur,t.geoJSON=gr,t.geoJson=br,t.Layer=Wn,t.LayerGroup=Hn,t.layerGroup=Vn,t.FeatureGroup=qn,t.featureGroup=Zn,t.ImageOverlay=wr,t.imageOverlay=_r,t.VideoOverlay=xr,t.videoOverlay=Or,t.SVGOverlay=Sr,t.svgOverlay=kr,t.DivOverlay=Tr,t.Popup=Er,t.popup=Pr,t.Tooltip=jr,t.tooltip=Mr,t.Icon=Gn,t.icon=Yn,t.DivIcon=Ar,t.divIcon=Cr,t.Marker=Xn,t.marker=Jn,t.TileLayer=Ir,t.tileLayer=Dr,t.GridLayer=Lr,t.gridLayer=Nr,t.SVG=qr,t.svg=Zr,t.Renderer=Br,t.Canvas=Fr,t.canvas=Ur,t.Path=Qn,t.CircleMarker=tr,t.circleMarker=er,t.Circle=nr,t.circle=rr,t.Polyline=ir,t.polyline=or,t.Polygon=ar,t.polygon=sr,t.Rectangle=Gr,t.rectangle=Yr,t.Map=tn,t.map=en;var ni=window.L;t.noConflict=function(){return window.L=ni,this},window.L=t}(e)},function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}n.d(e,"a",(function(){return r}))},function(t,e){function n(e){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?(t.exports=n=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=n=function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){(function(e){for(var r=n(403),i="undefined"===typeof window?e:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],u=i["cancel"+a]||i["cancelRequest"+a],c=0;!s&&c=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=new Date(0);d.setUTCFullYear(s+1,0,h),d.setUTCHours(0,0,0,0);var p=Object(o.a)(d,e),m=new Date(0);m.setUTCFullYear(s,0,h),m.setUTCHours(0,0,0,0);var y=Object(o.a)(m,e);return n.getTime()>=p.getTime()?s+1:n.getTime()>=y.getTime()?s:s-1}},function(t,e,n){var r=n(60),i=n(53);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},function(t,e,n){var r=n(186),i=n(425),o=n(179),a=n(96),s=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(12);function i(t,e){var n,i=null!==(n=t.pane)&&void 0!==n?n:e.pane;return i?Object(r.a)(Object(r.a)({},t),{},{pane:i}):t}},function(t,e,n){var r=n(48),i=n(397);t.exports=function(t,e){return t&&t.length?i(t,r(e,2)):[]}},function(t,e,n){var r=n(452)();t.exports=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return d})),n.d(e,"d",(function(){return f}));var r=n(68);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e2&&void 0!==arguments[2]&&arguments[2];n.inTimeTravelling?n.inTimeTravelling=!1:o(t,e,r)};return n.unlisten=i.listen(u),t.noInitialPop||u(i.location,i.action,!0),n}return r=c,(o=[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var t=this.props,e=t.omitRouter,n=t.history,r=t.children;return e?i.a.createElement(i.a.Fragment,null,r):i.a.createElement(u.c,{history:n},r)}}])&&y(r.prototype,o),a&&y(r,a),c}(r.PureComponent);n.propTypes={store:a.a.shape({getState:a.a.func.isRequired,subscribe:a.a.func.isRequired}).isRequired,history:a.a.shape({action:a.a.string.isRequired,listen:a.a.func.isRequired,location:a.a.object.isRequired,push:a.a.func.isRequired}).isRequired,basename:a.a.string,children:a.a.oneOfType([a.a.func,a.a.node]),onLocationChanged:a.a.func.isRequired,noInitialPop:a.a.bool,noTimeTravelDebugging:a.a.bool,stateCompareFunction:a.a.func,omitRouter:a.a.bool};var o=function(t){var e=t.context||s.b;if(null==e)throw"Please upgrade to react-redux v6";return i.a.createElement(e.Consumer,null,(function(e){var r=e.store;return i.a.createElement(n,m({store:r},t))}))};return o.propTypes={context:a.a.object},Object(s.c)(null,(function(t){return{onLocationChanged:function(e,n,r){return t(Object(f.c)(e,n,r))}}}))(o)};function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return O(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(t,e)}(t,e)||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 O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.type,a=i.payload;if(o===f.b){var s=a.location,u=a.action,c=a.isFirstRendering;return c?t:n(t,{location:e(E(s)),action:u})}return t}}};function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var A={fromJS:function(t){return t},getIn:function(t,e){if(!t)return t;var n=e.length;if(n){for(var r=t,i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";var r=n(50),i=n(68);function o(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};Object(a.a)(this,t),this.init(e,n)}return Object(s.a)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||m,this.options=e,this.debug=e.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n1?e-1:0),r=1;r-1?t.replace(/###/g,"."):t}function i(){return!t||"string"===typeof t}for(var o="string"!==typeof e?[].concat(e):e.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!t[a]&&n&&(t[a]=new n),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return i()?{}:{obj:t,k:r(o.shift())}}function O(t,e,n){var r=x(t,e,Object);r.obj[r.k]=n}function S(t,e){var n=x(t,e),r=n.obj,i=n.k;if(r)return r[i]}function k(t,e,n){var r=S(t,n);return void 0!==r?r:S(e,n)}function T(t,e,n){for(var r in e)"__proto__"!==r&&"constructor"!==r&&(r in t?"string"===typeof t[r]||t[r]instanceof String||"string"===typeof e[r]||e[r]instanceof String?n&&(t[r]=e[r]):T(t[r],e[r],n):t[r]=e[r]);return t}function E(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var P={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function j(t){return"string"===typeof t?t.replace(/[&<>"'\/]/g,(function(t){return P[t]})):t}var M="undefined"!==typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function A(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),i=t,o=0;oo+a;)a++,u=i[s=r.slice(o,o+a).join(n)];if(void 0===u)return;if("string"===typeof u)return u;if(s&&"string"===typeof u[s])return u[s];var c=r.slice(o+a).join(n);return c?A(u,c,n):void 0}i=i[r[o]]}return i}}var C=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Object(a.a)(this,e),n=f(this,h(e).call(this)),M&&g.call(l(n)),n.data=t||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return p(e,t),Object(s.a)(e,[{key:"addNamespaces",value:function(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function(t){var e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}},{key:"getResource",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[t,e];n&&"string"!==typeof n&&(a=a.concat(n)),n&&"string"===typeof n&&(a=a.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(a=t.split("."));var s=S(this.data,a);return s||!o||"string"!==typeof n?s:A(this.data&&this.data[t]&&this.data[t][e],n,i)}},{key:"addResource",value:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[t,e];n&&(a=a.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(r=e,e=(a=t.split("."))[1]),this.addNamespaces(e),O(this.data,a,r),i.silent||this.emit("added",t,e,n,r)}},{key:"addResources",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!==typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(t,e,i,n[i],{silent:!0});r.silent||this.emit("added",t,e,n)}},{key:"addResourceBundle",value:function(t,e,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[t,e];t.indexOf(".")>-1&&(r=n,n=e,e=(s=t.split("."))[1]),this.addNamespaces(e);var u=S(this.data,s)||{};r?T(u,n,i):u=o({},u,n),O(this.data,s,u),a.silent||this.emit("added",t,e,n)}},{key:"removeResourceBundle",value:function(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}},{key:"hasResourceBundle",value:function(t,e){return void 0!==this.getResource(t,e)}},{key:"getResourceBundle",value:function(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?o({},{},this.getResource(t,e)):this.getResource(t,e)}},{key:"getDataByLanguage",value:function(t){return this.data[t]}},{key:"toJSON",value:function(){return this.data}}]),e}(g),L={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,i){var o=this;return t.forEach((function(t){o.processors[t]&&(e=o.processors[t].process(e,n,r,i))})),e}},N={},I=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)(this,e),n=f(this,h(e).call(this)),M&&g.call(l(n)),_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,l(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=v.create("translator"),n}return p(e,t),Object(s.a)(e,[{key:"changeLanguage",value:function(t){t&&(this.language=t)}},{key:"exists",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(void 0===t||null===t)return!1;var n=this.resolve(t,e);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(t,e){var n=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,i=e.ns||this.options.defaultNS;if(n&&t.indexOf(n)>-1){var o=t.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:t,namespaces:i};var a=t.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),t=a.join(r)}return"string"===typeof i&&(i=[i]),{key:t,namespaces:i}}},{key:"translate",value:function(t,n,i){var a=this;if("object"!==Object(r.a)(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),void 0===t||null===t)return"";Array.isArray(t)||(t=[String(t)]);var s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,u=this.extractFromKey(t[t.length-1],n),c=u.key,l=u.namespaces,f=l[l.length-1],h=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h&&"cimode"===h.toLowerCase()){if(d){var p=n.nsSeparator||this.options.nsSeparator;return f+p+c}return c}var m=this.resolve(t,n),y=m&&m.res,v=m&&m.usedKey||c,g=m&&m.exactUsedKey||c,b=Object.prototype.toString.apply(y),w=["[object Number]","[object Function]","[object RegExp]"],_=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,O="string"!==typeof y&&"boolean"!==typeof y&&"number"!==typeof y;if(x&&y&&O&&w.indexOf(b)<0&&("string"!==typeof _||"[object Array]"!==b)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,y,o({},n,{ns:l})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(s){var S="[object Array]"===b,k=S?[]:{},T=S?g:v;for(var E in y)if(Object.prototype.hasOwnProperty.call(y,E)){var P="".concat(T).concat(s).concat(E);k[E]=this.translate(P,o({},n,{joinArrays:!1,ns:l})),k[E]===P&&(k[E]=y[E])}y=k}}else if(x&&"string"===typeof _&&"[object Array]"===b)(y=y.join(_))&&(y=this.extendTranslation(y,t,n,i));else{var j=!1,M=!1,A=void 0!==n.count&&"string"!==typeof n.count,C=e.hasDefaultValue(n),L=A?this.pluralResolver.getSuffix(h,n.count):"",N=n["defaultValue".concat(L)]||n.defaultValue;!this.isValidLookup(y)&&C&&(j=!0,y=N),this.isValidLookup(y)||(M=!0,y=c);var I=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,D=I&&M?void 0:y,R=C&&N!==y&&this.options.updateMissing;if(M||j||R){if(this.logger.log(R?"updateKey":"missingKey",h,f,c,R?N:y),s){var z=this.resolve(c,o({},n,{keySeparator:!1}));z&&z.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var B=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var U=0;U1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof t&&(t=[t]),t.forEach((function(t){if(!a.isValidLookup(e)){var u=a.extractFromKey(t,s),c=u.key;n=c;var l=u.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!==typeof s.count,h=void 0!==s.context&&("string"===typeof s.context||"number"===typeof s.context)&&""!==s.context,d=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(t){a.isValidLookup(e)||(o=t,!N["".concat(d[0],"-").concat(t)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(N["".concat(d[0],"-").concat(t)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(d.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach((function(n){if(!a.isValidLookup(e)){i=n;var o,u,l=c,d=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(d,c,n,t,s);else f&&(o=a.pluralResolver.getSuffix(n,s.count)),f&&h&&d.push(l+o),h&&d.push(l+="".concat(a.options.contextSeparator).concat(s.context)),f&&d.push(l+=o);for(;u=d.pop();)a.isValidLookup(e)||(r=u,e=a.getResource(n,t,u,s))}})))}))}})),{res:e,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(t){return void 0!==t&&!(!this.options.returnNull&&null===t)&&!(!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,r):this.resourceStore.getResource(t,e,n,r)}}],[{key:"hasDefaultValue",value:function(t){var e="defaultValue";for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e===n.substring(0,e.length)&&void 0!==t[n])return!0;return!1}}]),e}(g);function D(t){return t.charAt(0).toUpperCase()+t.slice(1)}var R=function(){function t(e){Object(a.a)(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=v.create("languageUtils")}return Object(s.a)(t,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var e=t.split("-");return this.formatLanguageCode(e[0])}},{key:"formatLanguageCode",value:function(t){if("string"===typeof t&&t.indexOf("-")>-1){var e=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map((function(t){return t.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=D(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=D(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=D(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var e,n=this;return t?(t.forEach((function(t){if(!e){var r=n.formatLanguageCode(t);n.options.supportedLngs&&!n.isSupportedCode(r)||(e=r)}})),!e&&this.options.supportedLngs&&t.forEach((function(t){if(!e){var r=n.getLanguagePartFromCode(t);if(n.isSupportedCode(r))return e=r;e=n.options.supportedLngs.find((function(t){if(0===t.indexOf(r))return t}))}})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e):null}},{key:"getFallbackCodes",value:function(t,e){if(!t)return[];if("function"===typeof t&&(t=t(e)),"string"===typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];var n=t[e];return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function(t,e){var n=this,r=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],o=function(t){t&&(n.isSupportedCode(t)?i.push(t):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"===typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(t))):"string"===typeof t&&o(this.formatLanguageCode(t)),r.forEach((function(t){i.indexOf(t)<0&&o(n.formatLanguageCode(t))})),i}}]),t}(),z=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],B={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};function F(){var t={};return z.forEach((function(e){e.lngs.forEach((function(n){t[n]={numbers:e.nr,plurals:B[e.fc]}}))})),t}var U=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(a.a)(this,t),this.languageUtils=e,this.options=n,this.logger=v.create("pluralResolver"),this.rules=F()}return Object(s.a)(t,[{key:"addRule",value:function(t,e){this.rules[t]=e}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var e=this.getRule(t);return e&&e.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,e){return this.getSuffixes(t).map((function(t){return e+t}))}},{key:"getSuffixes",value:function(t){var e=this,n=this.getRule(t);return n?n.numbers.map((function(n){return e.getSuffix(t,n)})):[]}},{key:"getSuffix",value:function(t,e){var n=this,r=this.getRule(t);if(r){var i=r.noAbs?r.plurals(e):r.plurals(Math.abs(e)),o=r.numbers[i];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"===typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),t}(),W=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(a.a)(this,t),this.logger=v.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(t){return t},this.init(e)}return Object(s.a)(t,[{key:"init",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var e=t.interpolation;this.escape=void 0!==e.escape?e.escape:j,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?E(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?E(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?E(e.nestingPrefix):e.nestingPrefixEscaped||E("$t("),this.nestingSuffix=e.nestingSuffix?E(e.nestingSuffix):e.nestingSuffixEscaped||E(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var e="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(e,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(t,e,n,r){var i,a,s,u=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(t){return t.replace(/\$/g,"$$$$")}var f=function(t){if(t.indexOf(u.formatSeparator)<0){var i=k(e,c,t);return u.alwaysFormat?u.format(i,void 0,n,o({},r,e,{interpolationkey:t})):i}var a=t.split(u.formatSeparator),s=a.shift().trim(),l=a.join(u.formatSeparator).trim();return u.format(k(e,c,s),l,n,o({},r,e,{interpolationkey:s}))};this.resetRegExp();var h=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(t){return l(t)}},{regex:this.regexp,safeValue:function(t){return u.escapeValue?l(u.escape(t)):l(t)}}].forEach((function(e){for(s=0;i=e.regex.exec(t);){if(void 0===(a=f(i[1].trim())))if("function"===typeof h){var n=h(t,i,r);a="string"===typeof n?n:""}else{if(d){a=i[0];continue}u.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(t)),a=""}else"string"===typeof a||u.useRawValueToEscape||(a=w(a));var o=e.safeValue(a);if(t=t.replace(i[0],o),d?(e.regex.lastIndex+=o.length,e.regex.lastIndex-=i[0].length):e.regex.lastIndex=0,++s>=u.maxReplaces)break}})),t}},{key:"nest",value:function(t,e){var n,r,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=o({},a);function u(t,e){var n=this.nestingOptionsSeparator;if(t.indexOf(n)<0)return t;var r=t.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);t=r[0],i=(i=this.interpolate(i,s)).replace(/'/g,'"');try{s=JSON.parse(i),e&&(s=o({},e,s))}catch(a){return this.logger.warn("failed parsing options string in nesting for key ".concat(t),a),"".concat(t).concat(n).concat(i)}return delete s.defaultValue,t}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(t);){var c=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map((function(t){return t.trim()}));n[1]=f.shift(),c=f,l=!0}if((r=e(u.call(this,n[1].trim(),s),s))&&n[0]===t&&"string"!==typeof r)return r;"string"!==typeof r&&(r=w(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(t)),r=""),l&&(r=c.reduce((function(t,e){return i.format(t,e,a.lng,o({},a,{interpolationkey:n[1].trim()}))}),r.trim())),t=t.replace(n[0],r),this.regexp.lastIndex=0}return t}}]),t}();var H=function(t){function e(t,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(a.a)(this,e),i=f(this,h(e).call(this)),M&&g.call(l(i)),i.backend=t,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=o,i.logger=v.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,o.backend,o),i}return p(e,t),Object(s.a)(e,[{key:"queueLoad",value:function(t,e,n,r){var i=this,o=[],a=[],s=[],u=[];return t.forEach((function(t){var r=!0;e.forEach((function(e){var s="".concat(t,"|").concat(e);!n.reload&&i.store.hasResourceBundle(t,e)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?a.indexOf(s)<0&&a.push(s):(i.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),o.indexOf(s)<0&&o.push(s),u.indexOf(e)<0&&u.push(e)))})),r||s.push(t)})),(o.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:o,pending:a,toLoadLanguages:s,toLoadNamespaces:u}}},{key:"loaded",value:function(t,e,n){var r=t.split("|"),i=r[0],o=r[1];e&&this.emit("failedLoading",i,o,e),n&&this.store.addResourceBundle(i,o,n),this.state[t]=e?-1:2;var a={};this.queue.forEach((function(n){!function(t,e,n,r){var i=x(t,e,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}(n.loaded,[i],o),function(t,e){for(var n=t.indexOf(e);-1!==n;)t.splice(n,1),n=t.indexOf(e)}(n.pending,t),e&&n.errors.push(e),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(t){a[t]||(a[t]=[]),n.loaded[t].length&&n.loaded[t].forEach((function(e){a[t].indexOf(e)<0&&a[t].push(e)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(t){return!t.done}))}},{key:"read",value:function(t,e,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return t.length?this.backend[n](t,e,(function(s,u){s&&u&&i<5?setTimeout((function(){r.read.call(r,t,e,n,i+1,2*o,a)}),o):a(s,u)})):a(null,{})}},{key:"prepareLoading",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"===typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"===typeof e&&(e=[e]);var o=this.queueLoad(t,e,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(t){n.loadOne(t)}))}},{key:"load",value:function(t,e,n){this.prepareLoading(t,e,{},n)}},{key:"reload",value:function(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}},{key:"loadOne",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(function(r,a){r&&e.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&e.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),e.loaded(t,r,a)}))}},{key:"saveMissing",value:function(t,e,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(e,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):void 0!==n&&null!==n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(t,e,n,r,null,o({},a,{isUpdate:i})),t&&t[0]&&this.store.addResource(t[0],e,n,r))}}]),e}(g);function V(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if("object"===Object(r.a)(t[1])&&(e=t[1]),"string"===typeof t[1]&&(e.defaultValue=t[1]),"string"===typeof t[2]&&(e.tDescription=t[2]),"object"===Object(r.a)(t[2])||"object"===Object(r.a)(t[3])){var n=t[3]||t[2];Object.keys(n).forEach((function(t){e[t]=n[t]}))}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function q(t){return"string"===typeof t.ns&&(t.ns=[t.ns]),"string"===typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"===typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function Z(){}var G=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(Object(a.a)(this,e),t=f(this,h(e).call(this)),M&&g.call(l(t)),t.options=q(n),t.services={},t.logger=v,t.modules={external:[]},r&&!t.isInitialized&&!n.isClone){if(!t.options.initImmediate)return t.init(n,r),f(t,l(t));setTimeout((function(){t.init(n,r)}),0)}return t}return p(e,t),Object(s.a)(e,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(t){return t?"function"===typeof t?new t:t:null}if("function"===typeof e&&(n=e,e={}),e.whitelist&&!e.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),e.nonExplicitWhitelist&&!e.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=o({},V(),this.options,q(e)),this.format=this.options.interpolation.format,n||(n=Z),!this.options.isClone){this.modules.logger?v.init(r(this.modules.logger),this.options):v.init(null,this.options);var i=new R(this.options);this.store=new C(this.options.resources,this.options);var a=this.services;a.logger=v,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new U(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new W(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new H(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments),t}}));var l=b(),f=function(){var e=function(e,r){t.isInitialized&&!t.initializedStoreOnce&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),l.resolve(r),n(e,r)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return e(null,t.t.bind(t));t.changeLanguage(t.options.lng,e)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),l}},{key:"loadResources",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z,r=n,i="string"===typeof t?t:this.language;if("function"===typeof t&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],a=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach((function(t){o.indexOf(t)<0&&o.push(t)}))};if(i)a(i);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(t){return a(t)}))}this.options.preload&&this.options.preload.forEach((function(t){return a(t)})),this.services.backendConnector.load(o,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(t,e,n){var r=b();return t||(t=this.languages),e||(e=this.options.ns),n||(n=Z),this.services.backendConnector.reload(t,e,(function(t){r.resolve(),n(t)})),r}},{key:"use",value:function(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&L.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function(t,e){var n=this;this.isLanguageChangingTo=t;var r=b();this.emit("languageChanging",t);var i=function(i){t||i||!n.services.languageDetector||(i=[]);var o="string"===typeof i?i:n.services.languageUtils.getBestMatchFromCodes(i);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(t){!function(t,i){i?(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),e&&e(t,(function(){return n.t.apply(n,arguments)}))}(t,o)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(t):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(t,e,n){var i=this,a=function t(e,a){var s;if("object"!==Object(r.a)(a)){for(var u=arguments.length,c=new Array(u>2?u-2:0),l=2;l1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(t,n){var r=e.services.backendConnector.state["".concat(t,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,t)||(!this.services.backendConnector.backend||!(!a(r,t)||i&&!a(o,t)))}},{key:"loadNamespaces",value:function(t,e){var n=this,r=b();return this.options.ns?("string"===typeof t&&(t=[t]),t.forEach((function(t){n.options.ns.indexOf(t)<0&&n.options.ns.push(t)})),this.loadResources((function(t){r.resolve(),e&&e(t)})),r):(e&&e(),Promise.resolve())}},{key:"loadLanguages",value:function(t,e){var n=b();"string"===typeof t&&(t=[t]);var r=this.options.preload||[],i=t.filter((function(t){return r.indexOf(t)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(t){n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}},{key:"dir",value:function(t){if(t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),!t)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new e(t,n)}},{key:"cloneInstance",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z,i=o({},this.options,n,{isClone:!0}),a=new e(i),s=["store","services","language"];return s.forEach((function(e){a[e]=t[e]})),a.services=o({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new I(a.services,a.options),a.translator.on("*",(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0?r:n)(t)}},function(t,e,n){var r=n(333),i=n(334),o=n(335),a=n(336),s=n(337);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e0?"in "+i:i+" ago":i}},function(t,e,n){"use strict";var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};e.a=function(t,e,n,i){return r[t]}},function(t,e,n){"use strict";var r=n(38),i={ordinalNumber:function(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Object(r.a)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Object(r.a)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Object(r.a)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Object(r.a)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Object(r.a)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};e.a=i},function(t,e,n){"use strict";var r=n(39),i=n(103),o={ordinalNumber:Object(i.a)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Object(r.a)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Object(r.a)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Object(r.a)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Object(r.a)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Object(r.a)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};e.a=o},function(t,e,n){"use strict";function r(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var i=r[0],o=e.match(t.parsePattern);if(!o)return null;var a=t.valueCallback?t.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;var s=e.slice(i.length);return{value:a,rest:s}}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(11),i=n(106),o=n(3);function a(t,e){Object(o.a)(2,arguments);var n=Object(r.a)(e);return Object(i.a)(t,-n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(11),i=n(13),o=n(3);function a(t,e){Object(o.a)(2,arguments);var n=Object(i.a)(t).getTime(),a=Object(r.a)(e);return new Date(n+a)}},function(t,e,n){"use strict";function r(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}}function i(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}}var o={p:i,P:function(t,e){var n,o=t.match(/(P+)(p+)?/),a=o[1],s=o[2];if(!s)return r(t,e);switch(a){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",r(a,e)).replace("{{time}}",i(s,e))}};e.a=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(13),i=n(44),o=n(3);function a(t){Object(o.a)(1,arguments);var e=Object(r.a)(t),n=e.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=Object(i.a)(a),u=new Date(0);u.setUTCFullYear(n,0,4),u.setUTCHours(0,0,0,0);var c=Object(i.a)(u);return e.getTime()>=s.getTime()?n+1:e.getTime()>=c.getTime()?n:n-1}},function(t,e,n){var r=n(271),i=n(272),o=n(273),a=n(275);t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";var r=s(n(417)),i=s(n(422)),o=s(n(185)),a=s(n(182));function s(t){return t&&t.__esModule?t:{default:t}}t.exports={Transition:a.default,TransitionGroup:o.default,ReplaceTransition:i.default,CSSTransition:r.default}},function(t,e,n){var r=n(447),i=n(448),o=n(48),a=n(16),s=n(96);t.exports=function(t,e,n){var u=a(t)?r:i;return n&&s(t,e,n)&&(e=void 0),u(t,o(e,3))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(11),i=n(13),o=n(3);function a(t,e){Object(o.a)(2,arguments);var n=Object(i.a)(t),a=Object(r.a)(e);if(isNaN(a))return new Date(NaN);if(!a)return n;var s=n.getDate(),u=new Date(n.getTime());u.setMonth(n.getMonth()+a+1,0);var c=u.getDate();return s>=c?u:(n.setFullYear(u.getFullYear(),u.getMonth(),s),n)}},function(t,e,n){"use strict";var r=n(99),i=n(37),o={date:Object(i.a)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Object(i.a)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Object(i.a)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a=n(100),s=n(101),u=n(102),c={code:"en-US",formatDistance:r.a,formatLong:o,formatRelative:a.a,localize:s.a,match:u.a,options:{weekStartsOn:0,firstWeekContainsDate:1}};e.a=c},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(13),i=n(40),o=n(11),a=n(69),s=n(3);function u(t,e){Object(s.a)(1,arguments);var n=e||{},r=n.locale,u=r&&r.options&&r.options.firstWeekContainsDate,c=null==u?1:Object(o.a)(u),l=null==n.firstWeekContainsDate?c:Object(o.a)(n.firstWeekContainsDate),f=Object(a.a)(t,e),h=new Date(0);h.setUTCFullYear(f,0,l),h.setUTCHours(0,0,0,0);var d=Object(i.a)(h,e);return d}var c=6048e5;function l(t,e){Object(s.a)(1,arguments);var n=Object(r.a)(t),o=Object(i.a)(n,e).getTime()-u(n,e).getTime();return Math.round(o/c)+1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(13),i=n(44),o=n(108),a=n(3);function s(t){Object(a.a)(1,arguments);var e=Object(o.a)(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=Object(i.a)(n);return r}var u=6048e5;function c(t){Object(a.a)(1,arguments);var e=Object(r.a)(t),n=Object(i.a)(e).getTime()-s(e).getTime();return Math.round(n/u)+1}},function(t,e,n){var r,i=n(439),o=n(440),a=n(442),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;t.exports=function(t,e){function n(t,o,u){if(r++>100)throw r=0,new Error("Call stack overflow for "+u);if(""===t)throw new Error(o+"(): '"+u+"' must contain a non-whitespace string");t=function(t,e){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");var r,o="",a=t;for(;r=s.exec(a);){r[0].index>0&&(o+=a.substring(0,r[0].index));var u=i("(",")",a.substring([0].index));if(""===u.body)throw new Error("'"+t+"' must contain a non-whitespace string");var c=n(u.body,"",e);o+=u.pre+c,a=u.post}return o+a}(t,u);var c=function(t){var e=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(t);for(;i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(e.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(t));return e}(t);if(c.length>1||t.indexOf("var(")>-1)return o+"("+t+")";var l=c[0]||"";"%"===l&&(t=t.replace(/\b[0-9\.]+%/g,(function(t){return.01*parseFloat(t.slice(0,-1))})));var f,h=t.replace(new RegExp(l,"gi"),"");try{f=a.eval(h)}catch(d){return o+"("+t+")"}return"%"===l&&(f*=100),(o.length||"%"===l)&&(f=Math.round(f*e)/e),f+=l}return r=0,e=Math.pow(10,void 0===e?5:e),t=t.replace(/\n+/g," "),o(t,/((?:\-[a-z]+\-)?calc)\(/,n)}},,function(t,e,n){var r=n(86),i=n(150),o=n(119),a=Object.defineProperty;e.f=n(64)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(63);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(306),i=n(124);t.exports=function(t){return r(i(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(18),i=n(124),o=n(52),a=n(127),s="["+a+"]",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),l=function(t,e,n){var i={},s=o((function(){return!!a[t]()||"\u200b\x85"!="\u200b\x85"[t]()})),u=i[t]=s?e(f):a[t];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},f=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(c,"")),t};t.exports=l},function(t,e){t.exports="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(t,e){t.exports=function(t,e){return t===e||t!==t&&e!==e}},function(t,e,n){var r=n(61)(n(43),"Map");t.exports=r},function(t,e,n){var r=n(347),i=n(354),o=n(356),a=n(357),s=n(358);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){var r=n(175),i=n(94);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n=e||n<0||y&&t-p>=l}function _(){var t=i();if(w(t))return x(t);h=setTimeout(_,function(t){var n=e-(t-d);return y?s(n,l-(t-p)):n}(t))}function x(t){return h=void 0,v&&u?g(t):(u=c=void 0,f)}function O(){var t=i(),n=w(t);if(u=arguments,c=this,d=t,n){if(void 0===h)return b(d);if(y)return clearTimeout(h),h=setTimeout(_,e),g(d)}return void 0===h&&(h=setTimeout(_,e)),f}return e=o(e)||0,r(n)&&(m=!!n.leading,l=(y="maxWait"in n)?a(o(n.maxWait)||0,e):l,v="trailing"in n?!!n.trailing:v),O.cancel=function(){void 0!==h&&clearTimeout(h),p=0,u=d=c=h=void 0},O.flush=function(){return void 0===h?f:x(i())},O}},function(t,e,n){var r=n(277);t.exports=d,t.exports.parse=o,t.exports.compile=function(t,e){return s(o(t,e),e)},t.exports.tokensToFunction=s,t.exports.tokensToRegExp=h;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(t,e){for(var n,r=[],o=0,a=0,s="",l=e&&e.delimiter||"/";null!=(n=i.exec(t));){var f=n[0],h=n[1],d=n.index;if(s+=t.slice(a,d),a=d+f.length,h)s+=h[1];else{var p=t[a],m=n[2],y=n[3],v=n[4],g=n[5],b=n[6],w=n[7];s&&(r.push(s),s="");var _=null!=m&&null!=p&&p!==m,x="+"===b||"*"===b,O="?"===b||"*"===b,S=n[2]||l,k=v||g;r.push({name:y||o++,prefix:m||"",delimiter:S,optional:O,repeat:x,partial:_,asterisk:!!w,pattern:k?c(k):w?".*":"[^"+u(S)+"]+?"})}}return a1)for(var n=1;n-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){var r=n(305),i=n(152),o=n(123),a=n(119),s=n(87),u=n(150),c=Object.getOwnPropertyDescriptor;e.f=n(64)?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(n){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(87),i=n(123),o=n(308)(!1),a=n(160)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){var r=n(155)("keys"),i=n(154);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(122);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(63),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(51))},function(t,e,n){var r=n(89),i=n(338),o=n(339),a=n(340),s=n(341),u=n(342);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,t.exports=c},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(e){}try{return t+""}catch(e){}}return""}},function(t,e,n){var r=n(132),i=n(167),o=n(133);t.exports=function(t,e,n,a,s,u){var c=1&n,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var h=u.get(t),d=u.get(e);if(h&&d)return h==e&&d==t;var p=-1,m=!0,y=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p-1}},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o=0||(i[n]=t[n]);return i}(e,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return n(t,r);var o=i.default.Children.only(n);return i.default.cloneElement(o,r)},r}(i.default.Component);function p(){}d.contextTypes={transitionGroup:r.object},d.childContextTypes={transitionGroup:function(){}},d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:p,onEntering:p,onEntered:p,onExit:p,onExiting:p,onExited:p},d.UNMOUNTED=0,d.EXITED=1,d.ENTERING=2,d.ENTERED=3,d.EXITING=4;var m=(0,a.polyfill)(d);e.default=m},function(t,e,n){"use strict";function r(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==t&&void 0!==t&&this.setState(t)}function i(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!==n&&void 0!==n?n:null}.bind(this))}function o(t,e){try{var n=this.props,r=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate)return t;var n=null,a=null,s=null;if("function"===typeof e.componentWillMount?n="componentWillMount":"function"===typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"===typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"===typeof e.componentWillUpdate?s="componentWillUpdate":"function"===typeof e.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var u=t.displayName||t.name,c="function"===typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof t.getDerivedStateFromProps&&(e.componentWillMount=r,e.componentWillReceiveProps=i),"function"===typeof e.getSnapshotBeforeUpdate){if("function"!==typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=o;var l=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,t,e,r)}}return t}n.r(e),n.d(e,"polyfill",(function(){return a})),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(t,e,n){"use strict";e.__esModule=!0,e.classNamesShape=e.timeoutsShape=void 0;var r;(r=n(0))&&r.__esModule;e.timeoutsShape=null;e.classNamesShape=null},function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r=s(n(0)),i=s(n(2)),o=n(183),a=n(423);function s(t){return t&&t.__esModule?t:{default:t}}function u(){return u=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,["component","childFactory"]),o=l(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===e?o:i.default.createElement(e,r,o)},r}(i.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(t){return t}};var h=(0,o.polyfill)(f);e.default=h,t.exports=e.default},function(t,e,n){var r=n(168),i=n(424);t.exports=function t(e,n,o,a,s){var u=-1,c=e.length;for(o||(o=i),s||(s=[]);++u0&&o(l)?n>1?t(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},function(t,e,n){var r=n(95),i=n(65);t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},function(t,e,n){var r=n(430),i=n(24),o=n(66),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},function(t,e,n){var r=n(66);t.exports=function(t,e,n){for(var i=-1,o=t.length;++it.length)&&(e=t.length);for(var n=0,r=new Array(e);n0){var o=r.maxAge-0;if(isNaN(o))throw new Error("maxAge should be a Number");i+="; Max-Age="+Math.floor(o)}if(r.domain){if(!c.test(r.domain))throw new TypeError("option domain is invalid");i+="; Domain="+r.domain}if(r.path){if(!c.test(r.path))throw new TypeError("option path is invalid");i+="; Path="+r.path}if(r.expires){if("function"!==typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");i+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch("string"===typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:case"strict":i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i},f=function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*n*1e3)),r&&(i.domain=r),document.cookie=l(t,encodeURIComponent(e),i)},h=function(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r0)n[r].substring(0,i)===t.lookupQuerystring&&(e=n[r].substring(i+1))}return e}},m=null,y=function(){if(null!==m)return m;try{m="undefined"!==window&&null!==window.localStorage;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch(e){m=!1}return m},v={name:"localStorage",lookup:function(t){var e;if(t.lookupLocalStorage&&y()){var n=window.localStorage.getItem(t.lookupLocalStorage);n&&(e=n)}return e},cacheUserLanguage:function(t,e){e.lookupLocalStorage&&y()&&window.localStorage.setItem(e.lookupLocalStorage,t)}},g=null,b=function(){if(null!==g)return g;try{g="undefined"!==window&&null!==window.sessionStorage;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch(e){g=!1}return g},w={name:"sessionStorage",lookup:function(t){var e;if(t.lookupSessionStorage&&b()){var n=window.sessionStorage.getItem(t.lookupSessionStorage);n&&(e=n)}return e},cacheUserLanguage:function(t,e){e.lookupSessionStorage&&b()&&window.sessionStorage.setItem(e.lookupSessionStorage,t)}},_={name:"navigator",lookup:function(t){var e=[];if("undefined"!==typeof navigator){if(navigator.languages)for(var n=0;n0?e:void 0}},x={name:"htmlTag",lookup:function(t){var e,n=t.htmlTag||("undefined"!==typeof document?document.documentElement:null);return n&&"function"===typeof n.getAttribute&&(e=n.getAttribute("lang")),e}},O={name:"path",lookup:function(t){var e;if("undefined"!==typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"===typeof t.lookupFromPathIndex){if("string"!==typeof n[t.lookupFromPathIndex])return;e=n[t.lookupFromPathIndex].replace("/","")}else e=n[0].replace("/","")}return e}},S={name:"subdomain",lookup:function(t){var e;if("undefined"!==typeof window){var n=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);n instanceof Array&&(e="number"===typeof t.lookupFromSubdomainIndex?n[t.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):n[0].replace("http://","").replace("https://","").replace(".",""))}return e}};var k=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(r.a)(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return Object(i.a)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=u(e,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(d),this.addDetector(p),this.addDetector(v),this.addDetector(w),this.addDetector(_),this.addDetector(x),this.addDetector(O),this.addDetector(S)}},{key:"addDetector",value:function(t){this.detectors[t.name]=t}},{key:"detect",value:function(t){var e=this;t||(t=this.options.order);var n=[];return t.forEach((function(t){if(e.detectors[t]){var r=e.detectors[t].lookup(e.options);r&&"string"===typeof r&&(r=[r]),r&&(n=n.concat(r))}})),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(t,e){var n=this;e||(e=this.options.caches),e&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||e.forEach((function(e){n.detectors[e]&&n.detectors[e].cacheUserLanguage(t,n.options)})))}}]),t}();k.type="languageDetector",e.a=k},function(t,e,n){"use strict";var r=n(29),i=n(30),o=n(68),a=n(50),s=[],u=s.forEach,c=s.slice;function l(t){return u.call(c.call(arguments,1),(function(e){if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n])})),t}function f(t,e){if(e&&"object"===Object(a.a)(e)){var n="",r=encodeURIComponent;for(var i in e)n+="&"+r(i)+"="+r(e[i]);if(!n)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+n.slice(1)}return t}function h(t,e,n,r,i){r&&"object"===Object(a.a)(r)&&(i||(r._t=new Date),r=f("",r).slice(1)),e.queryStringParams&&(t=f(t,e.queryStringParams));try{var o;(o=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0")).open(r?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,r&&o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var s=e.customHeaders;if(s="function"===typeof s?s():s)for(var u in s)o.setRequestHeader(u,s[u]);o.onreadystatechange=function(){o.readyState>3&&n&&n(o.responseText,o)},o.send(r)}catch(c){console&&console.log(c)}}function d(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:JSON.parse,parsePayload:function(t,e,n){return Object(o.a)({},e,n||"")},crossDomain:!1,ajax:h}}var p=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(r.a)(this,t),this.init(e,n),this.type="backend"}return Object(i.a)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.services=t,this.options=l(e,this.options||{},d())}},{key:"readMulti",value:function(t,e,n){var r=this.options.loadPath;"function"===typeof this.options.loadPath&&(r=this.options.loadPath(t,e));var i=this.services.interpolator.interpolate(r,{lng:t.join("+"),ns:e.join("+")});this.loadUrl(i,n)}},{key:"read",value:function(t,e,n){var r=this.options.loadPath;"function"===typeof this.options.loadPath&&(r=this.options.loadPath([t],[e]));var i=this.services.interpolator.interpolate(r,{lng:t,ns:e});this.loadUrl(i,n)}},{key:"loadUrl",value:function(t,e){var n=this;this.options.ajax(t,this.options,(function(r,i){if(i.status>=500&&i.status<600)return e("failed loading "+t,!0);if(i.status>=400&&i.status<500)return e("failed loading "+t,!1);var o,a;try{o=n.options.parse(r,t)}catch(s){a="failed parsing "+t+" to json"}if(a)return e(a,!1);e(null,o)}))}},{key:"create",value:function(t,e,n,r){var i=this;"string"===typeof t&&(t=[t]);var o=this.options.parsePayload(e,n,r);t.forEach((function(t){var n=i.services.interpolator.interpolate(i.options.addPath,{lng:t,ns:e});i.options.ajax(n,i.options,(function(t,e){}),o)}))}}]),t}();p.type="backend",e.a=p},,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r,i=n(2),o=(r=i)&&"object"===typeof r&&"default"in r?r.default:r;function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=!("undefined"===typeof window||!window.document||!window.document.createElement);t.exports=function(t,e,n){if("function"!==typeof t)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof e)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof n&&"function"!==typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!==typeof r)throw new Error("Expected WrappedComponent to be a React component.");var u,c=[];function l(){u=t(c.map((function(t){return t.props}))),f.canUseDOM?e(u):n&&(u=n(u))}var f=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i.peek=function(){return u},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var t=u;return u=void 0,c=[],t};var a=i.prototype;return a.UNSAFE_componentWillMount=function(){c.push(this),l()},a.componentDidUpdate=function(){l()},a.componentWillUnmount=function(){var t=c.indexOf(this);c.splice(t,1),l()},a.render=function(){return o.createElement(r,this.props)},i}(i.PureComponent);return a(f,"displayName","SideEffect("+function(t){return t.displayName||t.name||"Component"}(r)+")"),a(f,"canUseDOM",s),f}}},function(t,e){var n="undefined"!==typeof Element,r="function"===typeof Map,i="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var s,u,c,l;if(Array.isArray(t)){if((s=t.length)!=e.length)return!1;for(u=s;0!==u--;)if(!a(t[u],e[u]))return!1;return!0}if(r&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(l=t.entries();!(u=l.next()).done;)if(!e.has(u.value[0]))return!1;for(l=t.entries();!(u=l.next()).done;)if(!a(u.value[1],e.get(u.value[0])))return!1;return!0}if(i&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(l=t.entries();!(u=l.next()).done;)if(!e.has(u.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if((s=t.length)!=e.length)return!1;for(u=s;0!==u--;)if(t[u]!==e[u])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if((s=(c=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(u=s;0!==u--;)if(!Object.prototype.hasOwnProperty.call(e,c[u]))return!1;if(n&&t instanceof Element)return!1;for(u=s;0!==u--;)if(("_owner"!==c[u]&&"__v"!==c[u]&&"__o"!==c[u]||!t.$$typeof)&&!a(t[c[u]],e[c[u]]))return!1;return!0}return t!==t&&e!==e}t.exports=function(t,e){try{return a(t,e)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},function(t,e,n){"use strict";function r(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(e,"__esModule",{value:!0});var p=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e}(f(Error)),m=function(t){function e(e){return t.call(this,"Invalid DateTime: "+e.toMessage())||this}return a(e,t),e}(p),y=function(t){function e(e){return t.call(this,"Invalid Interval: "+e.toMessage())||this}return a(e,t),e}(p),v=function(t){function e(e){return t.call(this,"Invalid Duration: "+e.toMessage())||this}return a(e,t),e}(p),g=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e}(p),b=function(t){function e(e){return t.call(this,"Invalid unit "+e)||this}return a(e,t),e}(p),w=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e}(p),_=function(t){function e(){return t.call(this,"Zone is an abstract class")||this}return a(e,t),e}(p),x="numeric",O="short",S="long",k={year:x,month:x,day:x},T={year:x,month:O,day:x},E={year:x,month:O,day:x,weekday:O},P={year:x,month:S,day:x},j={year:x,month:S,day:x,weekday:S},M={hour:x,minute:x},A={hour:x,minute:x,second:x},C={hour:x,minute:x,second:x,timeZoneName:O},L={hour:x,minute:x,second:x,timeZoneName:S},N={hour:x,minute:x,hourCycle:"h23"},I={hour:x,minute:x,second:x,hourCycle:"h23"},D={hour:x,minute:x,second:x,hourCycle:"h23",timeZoneName:O},R={hour:x,minute:x,second:x,hourCycle:"h23",timeZoneName:S},z={year:x,month:x,day:x,hour:x,minute:x},B={year:x,month:x,day:x,hour:x,minute:x,second:x},F={year:x,month:O,day:x,hour:x,minute:x},U={year:x,month:O,day:x,hour:x,minute:x,second:x},W={year:x,month:O,day:x,weekday:O,hour:x,minute:x},H={year:x,month:S,day:x,hour:x,minute:x,timeZoneName:O},V={year:x,month:S,day:x,hour:x,minute:x,second:x,timeZoneName:O},q={year:x,month:S,day:x,weekday:S,hour:x,minute:x,timeZoneName:S},Z={year:x,month:S,day:x,weekday:S,hour:x,minute:x,second:x,timeZoneName:S};function G(t){return"undefined"===typeof t}function Y(t){return"number"===typeof t}function K(t){return"number"===typeof t&&t%1===0}function $(){try{return"undefined"!==typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function X(t,e,n){if(0!==t.length)return t.reduce((function(t,r){var i=[e(r),r];return t&&n(t[0],i[0])===t[0]?t:i}),null)[1]}function J(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Q(t,e,n){return K(t)&&t>=e&&t<=n}function tt(t,e){void 0===e&&(e=2);var n=t<0?"-":"",r=n?-1*t:t;return""+n+(r.toString().length=0&&(e=new Date(e)).setUTCFullYear(e.getUTCFullYear()-1900),+e}function ut(t){var e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===e||3===r?53:52}function ct(t){return t>99?t:t>60?1900+t:2e3+t}function lt(t,e,n,r){void 0===r&&(r=null);var i=new Date(t),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);var s=o({timeZoneName:e},a),u=new Intl.DateTimeFormat(n,s).formatToParts(i).find((function(t){return"timezonename"===t.type.toLowerCase()}));return u?u.value:null}function ft(t,e){var n=parseInt(t,10);Number.isNaN(n)&&(n=0);var r=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function ht(t){var e=Number(t);if("boolean"===typeof t||""===t||Number.isNaN(e))throw new w("Invalid unit value "+t);return e}function dt(t,e){var n={};for(var r in t)if(J(t,r)){var i=t[r];if(void 0===i||null===i)continue;n[e(r)]=ht(i)}return n}function pt(t,e){var n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),i=t>=0?"+":"-";switch(e){case"short":return""+i+tt(n,2)+":"+tt(r,2);case"narrow":return""+i+n+(r>0?":"+r:"");case"techie":return""+i+tt(n,2)+tt(r,2);default:throw new RangeError("Value format "+e+" is out of range for property format")}}function mt(t){return function(t,e){return e.reduce((function(e,n){return e[n]=t[n],e}),{})}(t,["hour","minute","second","millisecond"])}var yt=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/,vt=["January","February","March","April","May","June","July","August","September","October","November","December"],gt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],bt=["J","F","M","A","M","J","J","A","S","O","N","D"];function wt(t){switch(t){case"narrow":return[].concat(bt);case"short":return[].concat(gt);case"long":return[].concat(vt);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var _t=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],xt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ot=["M","T","W","T","F","S","S"];function St(t){switch(t){case"narrow":return[].concat(Ot);case"short":return[].concat(xt);case"long":return[].concat(_t);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var kt=["AM","PM"],Tt=["Before Christ","Anno Domini"],Et=["BC","AD"],Pt=["B","A"];function jt(t){switch(t){case"narrow":return[].concat(Pt);case"short":return[].concat(Et);case"long":return[].concat(Tt);default:return null}}function Mt(t,e){for(var n,r="",i=d(t);!(n=i()).done;){var o=n.value;o.literal?r+=o.val:r+=e(o.val)}return r}var At={D:k,DD:T,DDD:P,DDDD:j,t:M,tt:A,ttt:C,tttt:L,T:N,TT:I,TTT:D,TTTT:R,f:z,ff:F,fff:H,ffff:q,F:B,FF:U,FFF:V,FFFF:Z},Ct=function(){function t(t,e){this.opts=e,this.loc=t,this.systemLoc=null}t.create=function(e,n){return void 0===n&&(n={}),new t(e,n)},t.parseFormat=function(t){for(var e=null,n="",r=!1,i=[],o=0;o0&&i.push({literal:r,val:n}),e=null,n="",r=!r):r||a===e?n+=a:(n.length>0&&i.push({literal:!1,val:n}),n=a,e=a)}return n.length>0&&i.push({literal:r,val:n}),i},t.macroTokenToFormatOpts=function(t){return At[t]};var e=t.prototype;return e.formatWithSystemDefault=function(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,o({},this.opts,e)).format()},e.formatDateTime=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,o({},this.opts,e)).format()},e.formatDateTimeParts=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,o({},this.opts,e)).formatToParts()},e.resolvedOptions=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,o({},this.opts,e)).resolvedOptions()},e.num=function(t,e){if(void 0===e&&(e=0),this.opts.forceSimple)return tt(t,e);var n=o({},this.opts);return e>0&&(n.padTo=e),this.loc.numberFormatter(n).format(t)},e.formatDateTimeFromString=function(e,n){var r=this,i="en"===this.loc.listingMode(),o=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,a=function(t,n){return r.loc.extract(e,t,n)},s=function(t){return e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):""},u=function(){return i?function(t){return kt[t.hour<12?0:1]}(e):a({hour:"numeric",hourCycle:"h12"},"dayperiod")},c=function(t,n){return i?function(t,e){return wt(e)[t.month-1]}(e,t):a(n?{month:t}:{month:t,day:"numeric"},"month")},l=function(t,n){return i?function(t,e){return St(e)[t.weekday-1]}(e,t):a(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday")},f=function(t){return i?function(t,e){return jt(e)[t.year<0?0:1]}(e,t):a({era:t},"era")};return Mt(t.parseFormat(n),(function(n){switch(n){case"S":return r.num(e.millisecond);case"u":case"SSS":return r.num(e.millisecond,3);case"s":return r.num(e.second);case"ss":return r.num(e.second,2);case"m":return r.num(e.minute);case"mm":return r.num(e.minute,2);case"h":return r.num(e.hour%12===0?12:e.hour%12);case"hh":return r.num(e.hour%12===0?12:e.hour%12,2);case"H":return r.num(e.hour);case"HH":return r.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return s({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:r.loc.locale});case"z":return e.zoneName;case"a":return u();case"d":return o?a({day:"numeric"},"day"):r.num(e.day);case"dd":return o?a({day:"2-digit"},"day"):r.num(e.day,2);case"c":case"E":return r.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return o?a({month:"numeric",day:"numeric"},"month"):r.num(e.month);case"LL":return o?a({month:"2-digit",day:"numeric"},"month"):r.num(e.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return o?a({month:"numeric"},"month"):r.num(e.month);case"MM":return o?a({month:"2-digit"},"month"):r.num(e.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return o?a({year:"numeric"},"year"):r.num(e.year);case"yy":return o?a({year:"2-digit"},"year"):r.num(e.year.toString().slice(-2),2);case"yyyy":return o?a({year:"numeric"},"year"):r.num(e.year,4);case"yyyyyy":return o?a({year:"numeric"},"year"):r.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return r.num(e.weekYear.toString().slice(-2),2);case"kkkk":return r.num(e.weekYear,4);case"W":return r.num(e.weekNumber);case"WW":return r.num(e.weekNumber,2);case"o":return r.num(e.ordinal);case"ooo":return r.num(e.ordinal,3);case"q":return r.num(e.quarter);case"qq":return r.num(e.quarter,2);case"X":return r.num(Math.floor(e.ts/1e3));case"x":return r.num(e.ts);default:return function(n){var i=t.macroTokenToFormatOpts(n);return i?r.formatWithSystemDefault(e,i):n}(n)}}))},e.formatDurationFromString=function(e,n){var r,i=this,o=function(t){switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},a=t.parseFormat(n),s=a.reduce((function(t,e){var n=e.literal,r=e.val;return n?t:t.concat(r)}),[]),u=e.shiftTo.apply(e,s.map(o).filter((function(t){return t})));return Mt(a,(r=u,function(t){var e=o(t);return e?i.num(r.get(e),t.length):t}))},t}(),Lt=function(){function t(t,e){this.reason=t,this.explanation=e}return t.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},t}(),Nt=function(){function t(){}var e=t.prototype;return e.offsetName=function(t,e){throw new _},e.formatOffset=function(t,e){throw new _},e.offset=function(t){throw new _},e.equals=function(t){throw new _},i(t,[{key:"type",get:function(){throw new _}},{key:"name",get:function(){throw new _}},{key:"isUniversal",get:function(){throw new _}},{key:"isValid",get:function(){throw new _}}]),t}(),It=null,Dt=function(t){function e(){return t.apply(this,arguments)||this}a(e,t);var n=e.prototype;return n.offsetName=function(t,e){return lt(t,e.format,e.locale)},n.formatOffset=function(t,e){return pt(this.offset(t),e)},n.offset=function(t){return-new Date(t).getTimezoneOffset()},n.equals=function(t){return"system"===t.type},i(e,[{key:"type",get:function(){return"system"}},{key:"name",get:function(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===It&&(It=new e),It}}]),e}(Nt),Rt=RegExp("^"+yt.source+"$"),zt={};var Bt={year:0,month:1,day:2,hour:3,minute:4,second:5};var Ft={},Ut=function(t){function e(n){var r;return(r=t.call(this)||this).zoneName=n,r.valid=e.isValidZone(n),r}a(e,t),e.create=function(t){return Ft[t]||(Ft[t]=new e(t)),Ft[t]},e.resetCache=function(){Ft={},zt={}},e.isValidSpecifier=function(t){return!(!t||!t.match(Rt))},e.isValidZone=function(t){try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(e){return!1}},e.parseGMTOffset=function(t){if(t){var e=t.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(e)return-60*parseInt(e[1])}return null};var n=e.prototype;return n.offsetName=function(t,e){return lt(t,e.format,e.locale,this.name)},n.formatOffset=function(t,e){return pt(this.offset(t),e)},n.offset=function(t){var e=new Date(t);if(isNaN(e))return NaN;var n,r=(n=this.name,zt[n]||(zt[n]=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),zt[n]),i=r.formatToParts?function(t,e){for(var n=t.formatToParts(e),r=[],i=0;i=0?a:1e3+a))/6e4},n.equals=function(t){return"iana"===t.type&&t.name===this.name},i(e,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),e}(Nt),Wt=null,Ht=function(t){function e(e){var n;return(n=t.call(this)||this).fixed=e,n}a(e,t),e.instance=function(t){return 0===t?e.utcInstance:new e(t)},e.parseSpecifier=function(t){if(t){var n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new e(ft(n[1],n[2]))}return null};var n=e.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(t,e){return pt(this.fixed,e)},n.offset=function(){return this.fixed},n.equals=function(t){return"fixed"===t.type&&t.fixed===this.fixed},i(e,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+pt(this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){return null===Wt&&(Wt=new e(0)),Wt}}]),e}(Nt),Vt=function(t){function e(e){var n;return(n=t.call(this)||this).zoneName=e,n}a(e,t);var n=e.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},i(e,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),e}(Nt);function qt(t,e){var n;if(G(t)||null===t)return e;if(t instanceof Nt)return t;if("string"===typeof t){var r=t.toLowerCase();return"local"===r||"system"===r?e:"utc"===r||"gmt"===r?Ht.utcInstance:null!=(n=Ut.parseGMTOffset(t))?Ht.instance(n):Ut.isValidSpecifier(r)?Ut.create(t):Ht.parseSpecifier(r)||new Vt(t)}return Y(t)?Ht.instance(t):"object"===typeof t&&t.offset&&"number"===typeof t.offset?t:new Vt(t)}var Zt,Gt=function(){return Date.now()},Yt="system",Kt=null,$t=null,Xt=null,Jt=function(){function t(){}return t.resetCaches=function(){le.resetCache(),Ut.resetCache()},i(t,null,[{key:"now",get:function(){return Gt},set:function(t){Gt=t}},{key:"defaultZone",get:function(){return qt(Yt,Dt.instance)},set:function(t){Yt=t}},{key:"defaultLocale",get:function(){return Kt},set:function(t){Kt=t}},{key:"defaultNumberingSystem",get:function(){return $t},set:function(t){$t=t}},{key:"defaultOutputCalendar",get:function(){return Xt},set:function(t){Xt=t}},{key:"throwOnInvalid",get:function(){return Zt},set:function(t){Zt=t}}]),t}(),Qt=["base"],te={};function ee(t,e){void 0===e&&(e={});var n=JSON.stringify([t,e]),r=te[n];return r||(r=new Intl.DateTimeFormat(t,e),te[n]=r),r}var ne={};var re={};function ie(t,e){void 0===e&&(e={});var n=e;n.base;var r=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(n,Qt),i=JSON.stringify([t,r]),o=re[i];return o||(o=new Intl.RelativeTimeFormat(t,e),re[i]=o),o}var oe=null;function ae(t,e,n,r,i){var o=t.listingMode(n);return"error"===o?null:"en"===o?r(e):i(e)}var se=function(){function t(t,e,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!e){var r={useGrouping:!1};n.padTo>0&&(r.minimumIntegerDigits=n.padTo),this.inf=function(t,e){void 0===e&&(e={});var n=JSON.stringify([t,e]),r=ne[n];return r||(r=new Intl.NumberFormat(t,e),ne[n]=r),r}(t,r)}}return t.prototype.format=function(t){if(this.inf){var e=this.floor?Math.floor(t):t;return this.inf.format(e)}return tt(this.floor?Math.floor(t):rt(t,3),this.padTo)},t}(),ue=function(){function t(t,e,n){var r;if(this.opts=n,t.zone.isUniversal){var i=t.offset/60*-1,a=i>=0?"Etc/GMT+"+i:"Etc/GMT"+i,s=Ut.isValidZone(a);0!==t.offset&&s?(r=a,this.dt=t):(r="UTC",n.timeZoneName?this.dt=t:this.dt=0===t.offset?t:dr.fromMillis(t.ts+60*t.offset*1e3))}else"system"===t.zone.type?this.dt=t:(this.dt=t,r=t.zone.name);var u=o({},this.opts);r&&(u.timeZone=r),this.dtf=ee(e,u)}var e=t.prototype;return e.format=function(){return this.dtf.format(this.dt.toJSDate())},e.formatToParts=function(){return this.dtf.formatToParts(this.dt.toJSDate())},e.resolvedOptions=function(){return this.dtf.resolvedOptions()},t}(),ce=function(){function t(t,e,n){this.opts=o({style:"long"},n),!e&&$()&&(this.rtf=ie(t,n))}var e=t.prototype;return e.format=function(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&o){var a="days"===t;switch(e){case 1:return a?"tomorrow":"next "+i[t][0];case-1:return a?"yesterday":"last "+i[t][0];case 0:return a?"today":"this "+i[t][0]}}var s=Object.is(e,-0)||e<0,u=Math.abs(e),c=1===u,l=i[t],f=r?c?l[1]:l[2]||l[1]:c?i[t][0]:t;return s?u+" "+f+" ago":"in "+u+" "+f}(e,t,this.opts.numeric,"long"!==this.opts.style)},e.formatToParts=function(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]},t}(),le=function(){function t(t,e,n,r){var i=function(t){var e=t.indexOf("-u-");if(-1===e)return[t];var n,r=t.substring(0,e);try{n=ee(t).resolvedOptions()}catch(o){n=ee(r).resolvedOptions()}var i=n;return[r,i.numberingSystem,i.calendar]}(t),o=i[0],a=i[1],s=i[2];this.locale=o,this.numberingSystem=e||a||null,this.outputCalendar=n||s||null,this.intl=function(t,e,n){return n||e?(t+="-u",n&&(t+="-ca-"+n),e&&(t+="-nu-"+e),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}t.fromOpts=function(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)},t.create=function(e,n,r,i){void 0===i&&(i=!1);var o=e||Jt.defaultLocale;return new t(o||(i?"en-US":oe||(oe=(new Intl.DateTimeFormat).resolvedOptions().locale)),n||Jt.defaultNumberingSystem,r||Jt.defaultOutputCalendar,o)},t.resetCache=function(){oe=null,te={},ne={},re={}},t.fromObject=function(e){var n=void 0===e?{}:e,r=n.locale,i=n.numberingSystem,o=n.outputCalendar;return t.create(r,i,o)};var e=t.prototype;return e.listingMode=function(t){var e=this.isEnglish(),n=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return e&&n?"en":"intl"},e.clone=function(e){return e&&0!==Object.getOwnPropertyNames(e).length?t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this},e.redefaultToEN=function(t){return void 0===t&&(t={}),this.clone(o({},t,{defaultToEN:!0}))},e.redefaultToSystem=function(t){return void 0===t&&(t={}),this.clone(o({},t,{defaultToEN:!1}))},e.months=function(t,e,n){var r=this;return void 0===e&&(e=!1),void 0===n&&(n=!0),ae(this,t,n,wt,(function(){var n=e?{month:t,day:"numeric"}:{month:t},i=e?"format":"standalone";return r.monthsCache[i][t]||(r.monthsCache[i][t]=function(t){for(var e=[],n=1;n<=12;n++){var r=dr.utc(2016,n,1);e.push(t(r))}return e}((function(t){return r.extract(t,n,"month")}))),r.monthsCache[i][t]}))},e.weekdays=function(t,e,n){var r=this;return void 0===e&&(e=!1),void 0===n&&(n=!0),ae(this,t,n,St,(function(){var n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=e?"format":"standalone";return r.weekdaysCache[i][t]||(r.weekdaysCache[i][t]=function(t){for(var e=[],n=1;n<=7;n++){var r=dr.utc(2016,11,13+n);e.push(t(r))}return e}((function(t){return r.extract(t,n,"weekday")}))),r.weekdaysCache[i][t]}))},e.meridiems=function(t){var e=this;return void 0===t&&(t=!0),ae(this,void 0,t,(function(){return kt}),(function(){if(!e.meridiemCache){var t={hour:"numeric",hourCycle:"h12"};e.meridiemCache=[dr.utc(2016,11,13,9),dr.utc(2016,11,13,19)].map((function(n){return e.extract(n,t,"dayperiod")}))}return e.meridiemCache}))},e.eras=function(t,e){var n=this;return void 0===e&&(e=!0),ae(this,t,e,jt,(function(){var e={era:t};return n.eraCache[t]||(n.eraCache[t]=[dr.utc(-40,1,1),dr.utc(2017,1,1)].map((function(t){return n.extract(t,e,"era")}))),n.eraCache[t]}))},e.extract=function(t,e,n){var r=this.dtFormatter(t,e).formatToParts().find((function(t){return t.type.toLowerCase()===n}));return r?r.value:null},e.numberFormatter=function(t){return void 0===t&&(t={}),new se(this.intl,t.forceSimple||this.fastNumbers,t)},e.dtFormatter=function(t,e){return void 0===e&&(e={}),new ue(t,this.intl,e)},e.relFormatter=function(t){return void 0===t&&(t={}),new ce(this.intl,this.isEnglish(),t)},e.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},e.equals=function(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar},i(t,[{key:"fastNumbers",get:function(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),t}();function fe(){for(var t=arguments.length,e=new Array(t),n=0;n1?e-1:0),r=1;r3?_t.indexOf(t)+1:xt.indexOf(t)+1),s}var Le=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ne(t){var e,n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],c=t[8],l=t[9],f=t[10],h=t[11],d=Ce(n,o,i,r,a,s,u);return e=c?Ae[c]:l?0:ft(f,h),[d,new Ht(e)]}var Ie=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,De=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Re=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function ze(t){var e=t[1],n=t[2],r=t[3];return[Ce(e,t[4],r,n,t[5],t[6],t[7]),Ht.utcInstance]}function Be(t){var e=t[1],n=t[2],r=t[3],i=t[4],o=t[5],a=t[6];return[Ce(e,t[7],n,r,i,o,a),Ht.utcInstance]}var Fe=fe(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ge),Ue=fe(/(\d{4})-?W(\d\d)(?:-?(\d))?/,ge),We=fe(/(\d{4})-?(\d{3})/,ge),He=fe(ve),Ve=he(Se,ke,Te),qe=he(be,ke,Te),Ze=he(we,ke,Te),Ge=he(ke,Te);var Ye=he(ke);var Ke=fe(/(\d{4})-(\d\d)-(\d\d)/,xe),$e=fe(_e),Xe=he(Se,ke,Te,Ee),Je=he(ke,Te,Ee);var Qe={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},tn=o({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Qe),en=365.2425,nn=30.436875,rn=o({years:{quarters:4,months:12,weeks:52.1775,days:en,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:nn,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Qe),on=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],an=on.slice(0).reverse();function sn(t,e,n){void 0===n&&(n=!1);var r={values:n?e.values:o({},t.values,e.values||{}),loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new cn(r)}function un(t,e,n,r,i){var o=t[i][n],a=e[n]/o,s=!(Math.sign(a)===Math.sign(r[i]))&&0!==r[i]&&Math.abs(a)<=1?function(t){return t<0?Math.floor(t):Math.ceil(t)}(a):Math.trunc(a);r[i]+=s,e[n]-=s*o}var cn=function(){function t(t){var e="longterm"===t.conversionAccuracy||!1;this.values=t.values,this.loc=t.loc||le.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=e?rn:tn,this.isLuxonDuration=!0}t.fromMillis=function(e,n){return t.fromObject({milliseconds:e},n)},t.fromObject=function(e,n){if(void 0===n&&(n={}),null==e||"object"!==typeof e)throw new w("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new t({values:dt(e,t.normalizeUnit),loc:le.fromObject(n),conversionAccuracy:n.conversionAccuracy})},t.fromISO=function(e,n){var r=function(t){return de(t,[je,Me])}(e),i=r[0];return i?t.fromObject(i,n):t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.fromISOTime=function(e,n){var r=function(t){return de(t,[Pe,Ye])}(e),i=r[0];return i?t.fromObject(i,n):t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new w("need to specify a reason the Duration is invalid");var r=e instanceof Lt?e:new Lt(e,n);if(Jt.throwOnInvalid)throw new v(r);return new t({invalid:r})},t.normalizeUnit=function(t){var e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new b(t);return e},t.isDuration=function(t){return t&&t.isLuxonDuration||!1};var e=t.prototype;return e.toFormat=function(t,e){void 0===e&&(e={});var n=o({},e,{floor:!1!==e.round&&!1!==e.floor});return this.isValid?Ct.create(this.loc,n).formatDurationFromString(this,t):"Invalid Duration"},e.toObject=function(){return this.isValid?o({},this.values):{}},e.toISO=function(){if(!this.isValid)return null;var t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=rt(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t},e.toISOTime=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var e=this.toMillis();if(e<0||e>=864e5)return null;t=o({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},t);var n=this.shiftTo("hours","minutes","seconds","milliseconds"),r="basic"===t.format?"hhmm":"hh:mm";t.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===t.format?"ss":":ss",t.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));var i=n.toFormat(r);return t.includePrefix&&(i="T"+i),i},e.toJSON=function(){return this.toISO()},e.toString=function(){return this.toISO()},e.toMillis=function(){return this.as("milliseconds")},e.valueOf=function(){return this.toMillis()},e.plus=function(t){if(!this.isValid)return this;for(var e,n=ln(t),r={},i=d(on);!(e=i()).done;){var o=e.value;(J(n.values,o)||J(this.values,o))&&(r[o]=n.get(o)+this.get(o))}return sn(this,{values:r},!0)},e.minus=function(t){if(!this.isValid)return this;var e=ln(t);return this.plus(e.negate())},e.mapUnits=function(t){if(!this.isValid)return this;for(var e={},n=0,r=Object.keys(this.values);n=0){i=l;var f=0;for(var h in s)f+=this.matrix[h][l]*s[h],s[h]=0;Y(u[l])&&(f+=u[l]);var p=Math.trunc(f);for(var m in a[l]=p,s[l]=f-p,u)on.indexOf(m)>on.indexOf(l)&&un(this.matrix,u,m,a,l)}else Y(u[l])&&(s[l]=u[l])}for(var y in s)0!==s[y]&&(a[i]+=y===i?s[y]:s[y]/this.matrix[i][y]);return sn(this,{values:a},!0).normalize()},e.negate=function(){if(!this.isValid)return this;for(var t={},e=0,n=Object.keys(this.values);et},e.isBefore=function(t){return!!this.isValid&&this.e<=t},e.contains=function(t){return!!this.isValid&&(this.s<=t&&this.e>t)},e.set=function(e){var n=void 0===e?{}:e,r=n.start,i=n.end;return this.isValid?t.fromDateTimes(r||this.s,i||this.e):this},e.splitAt=function(){var e=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),i=0;i+this.e?this.e:c;a.push(t.fromDateTimes(s,l)),s=l,u+=1}return a},e.splitBy=function(e){var n=ln(e);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var r,i=this.s,o=1,a=[];i+this.e?this.e:s,a.push(t.fromDateTimes(i,r)),i=r,o+=1}return a},e.divideEqually=function(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]},e.overlaps=function(t){return this.e>t.s&&this.s=t.e)},e.equals=function(t){return!(!this.isValid||!t.isValid)&&(this.s.equals(t.s)&&this.e.equals(t.e))},e.intersection=function(e){if(!this.isValid)return this;var n=this.s>e.s?this.s:e.s,r=this.e=r?null:t.fromDateTimes(n,r)},e.union=function(e){if(!this.isValid)return this;var n=this.se.e?this.e:e.e;return t.fromDateTimes(n,r)},t.merge=function(t){var e=t.sort((function(t,e){return t.s-e.s})).reduce((function(t,e){var n=t[0],r=t[1];return r?r.overlaps(e)||r.abutsStart(e)?[n,r.union(e)]:[n.concat([r]),e]:[n,e]}),[[],null]),n=e[0],r=e[1];return r&&n.push(r),n},t.xor=function(e){for(var n,r,i=null,o=0,a=[],s=e.map((function(t){return[{time:t.s,type:"s"},{time:t.e,type:"e"}]})),u=d((n=Array.prototype).concat.apply(n,s).sort((function(t,e){return t.time-e.time})));!(r=u()).done;){var c=r.value;1===(o+="s"===c.type?1:-1)?i=c.time:(i&&+i!==+c.time&&a.push(t.fromDateTimes(i,c.time)),i=null)}return t.merge(a)},e.difference=function(){for(var e=this,n=arguments.length,r=new Array(n),i=0;i=0){var f;r=c;var h,d=l(t,e);(i=t.plus(((f={})[c]=d,f)))>e?(t=t.plus(((h={})[c]=d-1,h)),d-=1):t=i,o[c]=d}}return[t,o,i,r]}(t,e,n),o=i[0],a=i[1],s=i[2],u=i[3],c=e-o,l=n.filter((function(t){return["hours","minutes","seconds","milliseconds"].indexOf(t)>=0}));if(0===l.length){var f;if(s0?(h=cn.fromMillis(c,r)).shiftTo.apply(h,l).plus(d):d}var vn={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},gn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},bn=vn.hanidec.replace(/[\[|\]]/g,"").split("");function wn(t,e){var n=t.numberingSystem;return void 0===e&&(e=""),new RegExp(""+vn[n||"latn"]+e)}function _n(t,e){return void 0===e&&(e=function(t){return t}),{regex:t,deser:function(t){var n=t[0];return e(function(t){var e=parseInt(t,10);if(isNaN(e)){e="";for(var n=0;n=a&&r<=s&&(e+=r-a)}}return parseInt(e,10)}return e}(n))}}}var xn="( |"+String.fromCharCode(160)+")",On=new RegExp(xn,"g");function Sn(t){return t.replace(/\./g,"\\.?").replace(On,xn)}function kn(t){return t.replace(/\./g,"").replace(On," ").toLowerCase()}function Tn(t,e){return null===t?null:{regex:RegExp(t.map(Sn).join("|")),deser:function(n){var r=n[0];return t.findIndex((function(t){return kn(r)===kn(t)}))+e}}}function En(t,e){return{regex:t,deser:function(t){return ft(t[1],t[2])},groups:e}}function Pn(t){return{regex:t,deser:function(t){return t[0]}}}var jn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};var Mn=null;function An(t,e){if(t.literal)return t;var n=Ct.macroTokenToFormatOpts(t.val);if(!n)return t;var r=Ct.create(e,n).formatDateTimeParts((Mn||(Mn=dr.fromMillis(1555555555555)),Mn)).map((function(t){return function(t,e,n){var r=t.type,i=t.value;if("literal"===r)return{literal:!0,val:i};var o=n[r],a=jn[r];return"object"===typeof a&&(a=a[o]),a?{literal:!1,val:a}:void 0}(t,0,n)}));return r.includes(void 0)?t:r}function Cn(t,e,n){var r=function(t,e){var n;return(n=Array.prototype).concat.apply(n,t.map((function(t){return An(t,e)})))}(Ct.parseFormat(n),t),i=r.map((function(e){return function(t,e){var n=wn(e),r=wn(e,"{2}"),i=wn(e,"{3}"),o=wn(e,"{4}"),a=wn(e,"{6}"),s=wn(e,"{1,2}"),u=wn(e,"{1,3}"),c=wn(e,"{1,6}"),l=wn(e,"{1,9}"),f=wn(e,"{2,4}"),h=wn(e,"{4,6}"),d=function(t){return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(t){return t[0]},literal:!0};var e},p=function(p){if(t.literal)return d(p);switch(p.val){case"G":return Tn(e.eras("short",!1),0);case"GG":return Tn(e.eras("long",!1),0);case"y":return _n(c);case"yy":case"kk":return _n(f,ct);case"yyyy":case"kkkk":return _n(o);case"yyyyy":return _n(h);case"yyyyyy":return _n(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return _n(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return _n(r);case"MMM":return Tn(e.months("short",!0,!1),1);case"MMMM":return Tn(e.months("long",!0,!1),1);case"LLL":return Tn(e.months("short",!1,!1),1);case"LLLL":return Tn(e.months("long",!1,!1),1);case"o":case"S":return _n(u);case"ooo":case"SSS":return _n(i);case"u":return Pn(l);case"a":return Tn(e.meridiems(),0);case"E":case"c":return _n(n);case"EEE":return Tn(e.weekdays("short",!1,!1),1);case"EEEE":return Tn(e.weekdays("long",!1,!1),1);case"ccc":return Tn(e.weekdays("short",!0,!1),1);case"cccc":return Tn(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return En(new RegExp("([+-]"+s.source+")(?::("+r.source+"))?"),2);case"ZZZ":return En(new RegExp("([+-]"+s.source+")("+r.source+")?"),2);case"z":return Pn(/[a-z_+-/]{1,256}?/i);default:return d(p)}}(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return p.token=t,p}(e,t)})),o=i.find((function(t){return t.invalidReason}));if(o)return{input:e,tokens:r,invalidReason:o.invalidReason};var a=function(t){return["^"+t.map((function(t){return t.regex})).reduce((function(t,e){return t+"("+e.source+")"}),"")+"$",t]}(i),s=a[0],u=a[1],c=RegExp(s,"i"),l=function(t,e,n){var r=t.match(e);if(r){var i={},o=1;for(var a in n)if(J(n,a)){var s=n[a],u=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(r.slice(o,o+u))),o+=u}return[r,i]}return[r,{}]}(e,c,u),f=l[0],h=l[1],d=h?function(t){var e;return e=G(t.Z)?G(t.z)?null:Ut.create(t.z):new Ht(t.Z),G(t.q)||(t.M=3*(t.q-1)+1),G(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),G(t.u)||(t.S=nt(t.u)),[Object.keys(t).reduce((function(e,n){var r=function(t){switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(n);return r&&(e[r]=t[n]),e}),{}),e]}(h):[null,null],p=d[0],m=d[1];if(J(h,"a")&&J(h,"H"))throw new g("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:c,rawMatches:f,matches:h,result:p,zone:m}}var Ln=[0,31,59,90,120,151,181,212,243,273,304,334],Nn=[0,31,60,91,121,152,182,213,244,274,305,335];function In(t,e){return new Lt("unit out of range","you specified "+e+" (of type "+typeof e+") as a "+t+", which is invalid")}function Dn(t,e,n){var r=new Date(Date.UTC(t,e-1,n)).getUTCDay();return 0===r?7:r}function Rn(t,e,n){return n+(it(t)?Nn:Ln)[e-1]}function zn(t,e){var n=it(t)?Nn:Ln,r=n.findIndex((function(t){return tut(n)?(e=n+1,u=1):e=n,o({weekYear:e,weekNumber:u,weekday:s},mt(t))}function Fn(t){var e,n=t.weekYear,r=t.weekNumber,i=t.weekday,a=Dn(n,1,4),s=ot(n),u=7*r+i-a-3;u<1?u+=ot(e=n-1):u>s?(e=n+1,u-=ot(n)):e=n;var c=zn(e,u);return o({year:e,month:c.month,day:c.day},mt(t))}function Un(t){var e=t.year;return o({year:e,ordinal:Rn(e,t.month,t.day)},mt(t))}function Wn(t){var e=t.year,n=zn(e,t.ordinal);return o({year:e,month:n.month,day:n.day},mt(t))}function Hn(t){var e=K(t.year),n=Q(t.month,1,12),r=Q(t.day,1,at(t.year,t.month));return e?n?!r&&In("day",t.day):In("month",t.month):In("year",t.year)}function Vn(t){var e=t.hour,n=t.minute,r=t.second,i=t.millisecond,o=Q(e,0,23)||24===e&&0===n&&0===r&&0===i,a=Q(n,0,59),s=Q(r,0,59),u=Q(i,0,999);return o?a?s?!u&&In("millisecond",i):In("second",r):In("minute",n):In("hour",e)}var qn="Invalid DateTime",Zn=864e13;function Gn(t){return new Lt("unsupported zone",'the zone "'+t.name+'" is not supported')}function Yn(t){return null===t.weekData&&(t.weekData=Bn(t.c)),t.weekData}function Kn(t,e){var n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new dr(o({},n,e,{old:n}))}function $n(t,e,n){var r=t-60*e*1e3,i=n.offset(r);if(e===i)return[r,e];r-=60*(i-e)*1e3;var o=n.offset(r);return i===o?[r,i]:[t-60*Math.min(i,o)*1e3,Math.max(i,o)]}function Xn(t,e){var n=new Date(t+=60*e*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Jn(t,e,n){return $n(st(t),e,n)}function Qn(t,e){var n=t.o,r=t.c.year+Math.trunc(e.years),i=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),a=o({},t.c,{year:r,month:i,day:Math.min(t.c.day,at(r,i))+Math.trunc(e.days)+7*Math.trunc(e.weeks)}),s=cn.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),u=$n(st(a),n,t.zone),c=u[0],l=u[1];return 0!==s&&(c+=s,l=t.zone.offset(c)),{ts:c,o:l}}function tr(t,e,n,r,i){var a=n.setZone,s=n.zone;if(t&&0!==Object.keys(t).length){var u=e||s,c=dr.fromObject(t,o({},n,{zone:u}));return a?c:c.setZone(s)}return dr.invalid(new Lt("unparsable",'the input "'+i+"\" can't be parsed as "+r))}function er(t,e,n){return void 0===n&&(n=!0),t.isValid?Ct.create(le.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function nr(t,e){var n=e.suppressSeconds,r=void 0!==n&&n,i=e.suppressMilliseconds,o=void 0!==i&&i,a=e.includeOffset,s=e.includePrefix,u=void 0!==s&&s,c=e.includeZone,l=void 0!==c&&c,f=e.spaceZone,h=void 0!==f&&f,d=e.format,p=void 0===d?"extended":d,m="basic"===p?"HHmm":"HH:mm";r&&0===t.second&&0===t.millisecond||(m+="basic"===p?"ss":":ss",o&&0===t.millisecond||(m+=".SSS")),(l||a)&&h&&(m+=" "),l?m+="z":a&&(m+="basic"===p?"ZZZ":"ZZ");var y=er(t,m);return u&&(y="T"+y),y}var rr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ir={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},or={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ar=["year","month","day","hour","minute","second","millisecond"],sr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ur=["year","ordinal","hour","minute","second","millisecond"];function cr(t){var e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new b(t);return e}function lr(t,e){var n,r,i=qt(e.zone,Jt.defaultZone),o=le.fromObject(e),a=Jt.now();if(G(t.year))n=a;else{for(var s,u=d(ar);!(s=u()).done;){var c=s.value;G(t[c])&&(t[c]=rr[c])}var l=Hn(t)||Vn(t);if(l)return dr.invalid(l);var f=Jn(t,i.offset(a),i);n=f[0],r=f[1]}return new dr({ts:n,zone:i,loc:o,o:r})}function fr(t,e,n){var r=!!G(n.round)||n.round,i=function(t,i){return t=rt(t,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(t,i)},o=function(r){return n.calendary?e.hasSame(t,r)?0:e.startOf(r).diff(t.startOf(r),r).get(r):e.diff(t,r).get(r)};if(n.unit)return i(o(n.unit),n.unit);for(var a,s=d(n.units);!(a=s()).done;){var u=a.value,c=o(u);if(Math.abs(c)>=1)return i(c,u)}return i(t>e?-0:0,n.units[n.units.length-1])}function hr(t){var e,n={};return t.length>0&&"object"===typeof t[t.length-1]?(n=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[n,e]}var dr=function(){function t(t){var e=t.zone||Jt.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new Lt("invalid input"):null)||(e.isValid?null:Gn(e));this.ts=G(t.ts)?Jt.now():t.ts;var r=null,i=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e)){var o=[t.old.c,t.old.o];r=o[0],i=o[1]}else{var a=e.offset(this.ts);r=Xn(this.ts,a),r=(n=Number.isNaN(r.year)?new Lt("invalid input"):null)?null:r,i=n?null:a}this._zone=e,this.loc=t.loc||le.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}t.now=function(){return new t({})},t.local=function(){var t=hr(arguments),e=t[0],n=t[1],r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],c=n[6];return lr({year:r,month:i,day:o,hour:a,minute:s,second:u,millisecond:c},e)},t.utc=function(){var t=hr(arguments),e=t[0],n=t[1],r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],c=n[6];return e.zone=Ht.utcInstance,lr({year:r,month:i,day:o,hour:a,minute:s,second:u,millisecond:c},e)},t.fromJSDate=function(e,n){void 0===n&&(n={});var r,i=(r=e,"[object Date]"===Object.prototype.toString.call(r)?e.valueOf():NaN);if(Number.isNaN(i))return t.invalid("invalid input");var o=qt(n.zone,Jt.defaultZone);return o.isValid?new t({ts:i,zone:o,loc:le.fromObject(n)}):t.invalid(Gn(o))},t.fromMillis=function(e,n){if(void 0===n&&(n={}),Y(e))return e<-Zn||e>Zn?t.invalid("Timestamp out of range"):new t({ts:e,zone:qt(n.zone,Jt.defaultZone),loc:le.fromObject(n)});throw new w("fromMillis requires a numerical input, but received a "+typeof e+" with value "+e)},t.fromSeconds=function(e,n){if(void 0===n&&(n={}),Y(e))return new t({ts:1e3*e,zone:qt(n.zone,Jt.defaultZone),loc:le.fromObject(n)});throw new w("fromSeconds requires a numerical input")},t.fromObject=function(e,n){void 0===n&&(n={}),e=e||{};var r=qt(n.zone,Jt.defaultZone);if(!r.isValid)return t.invalid(Gn(r));var i=Jt.now(),o=r.offset(i),a=dt(e,cr),s=!G(a.ordinal),u=!G(a.year),c=!G(a.month)||!G(a.day),l=u||c,f=a.weekYear||a.weekNumber,h=le.fromObject(n);if((l||s)&&f)throw new g("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&s)throw new g("Can't mix ordinal dates with month/day");var p,m,y=f||a.weekday&&!l,v=Xn(i,o);y?(p=sr,m=ir,v=Bn(v)):s?(p=ur,m=or,v=Un(v)):(p=ar,m=rr);for(var b,w=!1,_=d(p);!(b=_()).done;){var x=b.value;G(a[x])?a[x]=w?m[x]:v[x]:w=!0}var O=y?function(t){var e=K(t.weekYear),n=Q(t.weekNumber,1,ut(t.weekYear)),r=Q(t.weekday,1,7);return e?n?!r&&In("weekday",t.weekday):In("week",t.week):In("weekYear",t.weekYear)}(a):s?function(t){var e=K(t.year),n=Q(t.ordinal,1,ot(t.year));return e?!n&&In("ordinal",t.ordinal):In("year",t.year)}(a):Hn(a),S=O||Vn(a);if(S)return t.invalid(S);var k=Jn(y?Fn(a):s?Wn(a):a,o,r),T=new t({ts:k[0],zone:r,o:k[1],loc:h});return a.weekday&&l&&e.weekday!==T.weekday?t.invalid("mismatched weekday","you can't specify both a weekday of "+a.weekday+" and a date of "+T.toISO()):T},t.fromISO=function(t,e){void 0===e&&(e={});var n=function(t){return de(t,[Fe,Ve],[Ue,qe],[We,Ze],[He,Ge])}(t);return tr(n[0],n[1],e,"ISO 8601",t)},t.fromRFC2822=function(t,e){void 0===e&&(e={});var n=function(t){return de(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[Le,Ne])}(t);return tr(n[0],n[1],e,"RFC 2822",t)},t.fromHTTP=function(t,e){void 0===e&&(e={});var n=function(t){return de(t,[Ie,ze],[De,ze],[Re,Be])}(t);return tr(n[0],n[1],e,"HTTP",e)},t.fromFormat=function(e,n,r){if(void 0===r&&(r={}),G(e)||G(n))throw new w("fromFormat requires an input string and a format");var i=r,o=i.locale,a=void 0===o?null:o,s=i.numberingSystem,u=void 0===s?null:s,c=function(t,e,n){var r=Cn(t,e,n);return[r.result,r.zone,r.invalidReason]}(le.fromOpts({locale:a,numberingSystem:u,defaultToEN:!0}),e,n),l=c[0],f=c[1],h=c[2];return h?t.invalid(h):tr(l,f,r,"format "+n,e)},t.fromString=function(e,n,r){return void 0===r&&(r={}),t.fromFormat(e,n,r)},t.fromSQL=function(t,e){void 0===e&&(e={});var n=function(t){return de(t,[Ke,Xe],[$e,Je])}(t);return tr(n[0],n[1],e,"SQL",t)},t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new w("need to specify a reason the DateTime is invalid");var r=e instanceof Lt?e:new Lt(e,n);if(Jt.throwOnInvalid)throw new m(r);return new t({invalid:r})},t.isDateTime=function(t){return t&&t.isLuxonDateTime||!1};var e=t.prototype;return e.get=function(t){return this[t]},e.resolvedLocaleOptions=function(t){void 0===t&&(t={});var e=Ct.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e.locale,numberingSystem:e.numberingSystem,outputCalendar:e.calendar}},e.toUTC=function(t,e){return void 0===t&&(t=0),void 0===e&&(e={}),this.setZone(Ht.instance(t),e)},e.toLocal=function(){return this.setZone(Jt.defaultZone)},e.setZone=function(e,n){var r=void 0===n?{}:n,i=r.keepLocalTime,o=void 0!==i&&i,a=r.keepCalendarTime,s=void 0!==a&&a;if((e=qt(e,Jt.defaultZone)).equals(this.zone))return this;if(e.isValid){var u=this.ts;if(o||s){var c=e.offset(this.ts);u=Jn(this.toObject(),c,e)[0]}return Kn(this,{ts:u,zone:e})}return t.invalid(Gn(e))},e.reconfigure=function(t){var e=void 0===t?{}:t,n=e.locale,r=e.numberingSystem,i=e.outputCalendar;return Kn(this,{loc:this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i})})},e.setLocale=function(t){return this.reconfigure({locale:t})},e.set=function(t){if(!this.isValid)return this;var e,n=dt(t,cr),r=!G(n.weekYear)||!G(n.weekNumber)||!G(n.weekday),i=!G(n.ordinal),a=!G(n.year),s=!G(n.month)||!G(n.day),u=a||s,c=n.weekYear||n.weekNumber;if((u||i)&&c)throw new g("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&i)throw new g("Can't mix ordinal dates with month/day");r?e=Fn(o({},Bn(this.c),n)):G(n.ordinal)?(e=o({},this.toObject(),n),G(n.day)&&(e.day=Math.min(at(e.year,e.month),e.day))):e=Wn(o({},Un(this.c),n));var l=Jn(e,this.o,this.zone);return Kn(this,{ts:l[0],o:l[1]})},e.plus=function(t){return this.isValid?Kn(this,Qn(this,ln(t))):this},e.minus=function(t){return this.isValid?Kn(this,Qn(this,ln(t).negate())):this},e.startOf=function(t){if(!this.isValid)return this;var e={},n=cn.normalizeUnit(t);switch(n){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0}if("weeks"===n&&(e.weekday=1),"quarters"===n){var r=Math.ceil(this.month/3);e.month=3*(r-1)+1}return this.set(e)},e.endOf=function(t){var e;return this.isValid?this.plus((e={},e[t]=1,e)).startOf(t).minus(1):this},e.toFormat=function(t,e){return void 0===e&&(e={}),this.isValid?Ct.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):qn},e.toLocaleString=function(t,e){return void 0===t&&(t=k),void 0===e&&(e={}),this.isValid?Ct.create(this.loc.clone(e),t).formatDateTime(this):qn},e.toLocaleParts=function(t){return void 0===t&&(t={}),this.isValid?Ct.create(this.loc.clone(t),t).formatDateTimeParts(this):[]},e.toISO=function(t){return void 0===t&&(t={}),this.isValid?this.toISODate(t)+"T"+this.toISOTime(t):null},e.toISODate=function(t){var e=(void 0===t?{}:t).format,n="basic"===(void 0===e?"extended":e)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(n="+"+n),er(this,n)},e.toISOWeekDate=function(){return er(this,"kkkk-'W'WW-c")},e.toISOTime=function(t){var e=void 0===t?{}:t,n=e.suppressMilliseconds,r=void 0!==n&&n,i=e.suppressSeconds,o=void 0!==i&&i,a=e.includeOffset,s=void 0===a||a,u=e.includePrefix,c=void 0!==u&&u,l=e.format;return nr(this,{suppressSeconds:o,suppressMilliseconds:r,includeOffset:s,includePrefix:c,format:void 0===l?"extended":l})},e.toRFC2822=function(){return er(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},e.toHTTP=function(){return er(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},e.toSQLDate=function(){return er(this,"yyyy-MM-dd")},e.toSQLTime=function(t){var e=void 0===t?{}:t,n=e.includeOffset,r=void 0===n||n,i=e.includeZone;return nr(this,{includeOffset:r,includeZone:void 0!==i&&i,spaceZone:!0})},e.toSQL=function(t){return void 0===t&&(t={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(t):null},e.toString=function(){return this.isValid?this.toISO():qn},e.valueOf=function(){return this.toMillis()},e.toMillis=function(){return this.isValid?this.ts:NaN},e.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},e.toJSON=function(){return this.toISO()},e.toBSON=function(){return this.toJSDate()},e.toObject=function(t){if(void 0===t&&(t={}),!this.isValid)return{};var e=o({},this.c);return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e},e.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},e.diff=function(t,e,n){if(void 0===e&&(e="milliseconds"),void 0===n&&(n={}),!this.isValid||!t.isValid)return cn.invalid("created by diffing an invalid DateTime");var r,i=o({locale:this.locale,numberingSystem:this.numberingSystem},n),a=(r=e,Array.isArray(r)?r:[r]).map(cn.normalizeUnit),s=t.valueOf()>this.valueOf(),u=yn(s?this:t,s?t:this,a,i);return s?u.negate():u},e.diffNow=function(e,n){return void 0===e&&(e="milliseconds"),void 0===n&&(n={}),this.diff(t.now(),e,n)},e.until=function(t){return this.isValid?dn.fromDateTimes(this,t):this},e.hasSame=function(t,e){if(!this.isValid)return!1;var n=t.valueOf(),r=this.setZone(t.zone,{keepLocalTime:!0});return r.startOf(e)<=n&&n<=r.endOf(e)},e.equals=function(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)},e.toRelative=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var n=e.base||t.fromObject({},{zone:this.zone}),r=e.padding?thisthis.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return it(this.year)}},{key:"daysInMonth",get:function(){return at(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?ot(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ut(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return k}},{key:"DATE_MED",get:function(){return T}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return E}},{key:"DATE_FULL",get:function(){return P}},{key:"DATE_HUGE",get:function(){return j}},{key:"TIME_SIMPLE",get:function(){return M}},{key:"TIME_WITH_SECONDS",get:function(){return A}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return C}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return L}},{key:"TIME_24_SIMPLE",get:function(){return N}},{key:"TIME_24_WITH_SECONDS",get:function(){return I}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return D}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return R}},{key:"DATETIME_SHORT",get:function(){return z}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return B}},{key:"DATETIME_MED",get:function(){return F}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return U}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return W}},{key:"DATETIME_FULL",get:function(){return H}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return V}},{key:"DATETIME_HUGE",get:function(){return q}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return Z}}]),t}();function pr(t){if(dr.isDateTime(t))return t;if(t&&t.valueOf&&Y(t.valueOf()))return dr.fromJSDate(t);if(t&&"object"===typeof t)return dr.fromObject(t);throw new w("Unknown datetime argument: "+t+", of type "+typeof t)}e.DateTime=dr,e.Duration=cn,e.FixedOffsetZone=Ht,e.IANAZone=Ut,e.Info=pn,e.Interval=dn,e.InvalidZone=Vt,e.Settings=Jt,e.SystemZone=Dt,e.VERSION="2.0.2",e.Zone=Nt},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(109),i=n.n(r),o=n(55),a=n.n(o),s=n(2),u=n(42),c=n(33);function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=e.i18n,r=Object(s.useContext)(u.a)||{},o=r.i18n,a=r.defaultNS,l=n||o||Object(u.d)();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new u.b),!l){Object(c.e)("You will need to pass in an i18next instance by using initReactI18next");var h=function(t){return Array.isArray(t)?t[t.length-1]:t},d=[h,{},!1];return d.t=h,d.i18n={},d.ready=!1,d}l.options.react&&void 0!==l.options.react.wait&&Object(c.e)("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var p=f(f(f({},Object(u.c)()),l.options.react),e),m=p.useSuspense,y=p.keyPrefix,v=t||a||l.options&&l.options.defaultNS;v="string"===typeof v?[v]:v||["translation"],l.reportNamespaces.addUsedNamespaces&&l.reportNamespaces.addUsedNamespaces(v);var g=(l.isInitialized||l.initializedStoreOnce)&&v.every((function(t){return Object(c.b)(t,l,p)}));function b(){return l.getFixedT(null,"fallback"===p.nsMode?v:v[0],y)}var w=Object(s.useState)(b),_=i()(w,2),x=_[0],O=_[1],S=Object(s.useRef)(!0);Object(s.useEffect)((function(){var t=p.bindI18n,e=p.bindI18nStore;function n(){S.current&&O(b)}return S.current=!0,g||m||Object(c.c)(l,v,(function(){S.current&&O(b)})),t&&l&&l.on(t,n),e&&l&&l.store.on(e,n),function(){S.current=!1,t&&l&&t.split(" ").forEach((function(t){return l.off(t,n)})),e&&l&&e.split(" ").forEach((function(t){return l.store.off(t,n)}))}}),[l,v.join()]);var k=Object(s.useRef)(!0);Object(s.useEffect)((function(){S.current&&!k.current&&O(b),k.current=!1}),[l]);var T=[x,l,g];if(T.t=x,T.i18n=l,T.ready=g,g)return T;if(!g&&!m)return T;throw new Promise((function(t){Object(c.c)(l,v,(function(){t()}))}))}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function n(t,e){for(var n=0;n0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function p(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[t];if(void 0===u)return!1;if("function"===typeof u)o(u,this,e);else{var c=u.length,l=y(u,c);for(n=0;n=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1=0;r--)this.removeListener(t,e[r]);return this},s.prototype.listeners=function(t){return p(this,t,!0)},s.prototype.rawListeners=function(t){return p(this,t,!1)},s.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,e,n){t.exports=function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){if(o)return o(a,!0);throw new Error("Cannot find module '"+a+"'")}var u=n[a]={exports:{}};e[a][0].call(u.exports,(function(t){return i(e[a][1][t]||t)}),u,u.exports,t,e,n,r)}return n[a].exports}for(var o=!1,a=0;a>16),l((65280&r)>>8),l(255&r);return 2==o?l(255&(r=c(t.charAt(n))<<2|c(t.charAt(n+1))>>4)):1==o&&(l((r=c(t.charAt(n))<<10|c(t.charAt(n+1))<<4|c(t.charAt(n+2))>>2)>>8&255),l(255&r)),a},t.fromByteArray=function(t){var e,n,r,i,o=t.length%3,a="";function s(t){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)}for(e=0,r=t.length-o;e>18&63)+s(i>>12&63)+s(i>>6&63)+s(63&i);switch(o){case 1:a+=s((n=t[t.length-1])>>2),a+=s(n<<4&63),a+="==";break;case 2:a+=s((n=(t[t.length-2]<<8)+t[t.length-1])>>10),a+=s(n>>4&63),a+=s(n<<2&63),a+="="}return a}}(void 0===n?this.base64js={}:n)}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(t,e,n){(function(e,r,i,o,a,s,u,c,l){var f=t("base64-js"),h=t("ieee754");function i(t,e,n){if(!(this instanceof i))return new i(t,e,n);var r,o,a,s,u,c=typeof t;if("base64"===e&&"string"==c)for(t=(r=t).trim?r.trim():r.replace(/^\s+|\s+$/g,"");t.length%4!=0;)t+="=";if("number"==c)o=M(t);else if("string"==c)o=i.byteLength(t,e);else{if("object"!=c)throw new Error("First argument needs to be a number, array or string.");o=M(t.length)}if(i._useTypedArrays?a=i._augment(new Uint8Array(o)):((a=this).length=o,a._isBuffer=!0),i._useTypedArrays&&"number"==typeof t.byteLength)a._set(t);else if(A(u=t)||i.isBuffer(u)||u&&"object"==typeof u&&"number"==typeof u.length)for(s=0;s>8,r=e%256,i.push(r),i.push(n);return i}(e),t,n,r)}function m(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i>>0)):(e+1>>0),i}function g(t,e,n,r){if(r||(F("boolean"==typeof n,"missing or invalid endian"),F(null!=e,"missing offset"),F(e+1>>8*(r?a:1-a)}function O(t,e,n,r,i){i||(F(null!=e,"missing value"),F("boolean"==typeof r,"missing or invalid endian"),F(null!=n,"missing offset"),F(n+3>>8*(r?a:3-a)&255}function S(t,e,n,r,i){i||(F(null!=e,"missing value"),F("boolean"==typeof r,"missing or invalid endian"),F(null!=n,"missing offset"),F(n+1this.length&&(r=this.length),t.length-e=this.length))return this[t]},i.prototype.readUInt16LE=function(t,e){return y(this,t,!0,e)},i.prototype.readUInt16BE=function(t,e){return y(this,t,!1,e)},i.prototype.readUInt32LE=function(t,e){return v(this,t,!0,e)},i.prototype.readUInt32BE=function(t,e){return v(this,t,!1,e)},i.prototype.readInt8=function(t,e){if(e||(F(null!=t,"missing offset"),F(t=this.length))return 128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){return g(this,t,!0,e)},i.prototype.readInt16BE=function(t,e){return g(this,t,!1,e)},i.prototype.readInt32LE=function(t,e){return b(this,t,!0,e)},i.prototype.readInt32BE=function(t,e){return b(this,t,!1,e)},i.prototype.readFloatLE=function(t,e){return w(this,t,!0,e)},i.prototype.readFloatBE=function(t,e){return w(this,t,!1,e)},i.prototype.readDoubleLE=function(t,e){return _(this,t,!0,e)},i.prototype.readDoubleBE=function(t,e){return _(this,t,!1,e)},i.prototype.writeUInt8=function(t,e,n){n||(F(null!=t,"missing value"),F(null!=e,"missing offset"),F(e=this.length||(this[e]=t)},i.prototype.writeUInt16LE=function(t,e,n){x(this,t,e,!0,n)},i.prototype.writeUInt16BE=function(t,e,n){x(this,t,e,!1,n)},i.prototype.writeUInt32LE=function(t,e,n){O(this,t,e,!0,n)},i.prototype.writeUInt32BE=function(t,e,n){O(this,t,e,!1,n)},i.prototype.writeInt8=function(t,e,n){n||(F(null!=t,"missing value"),F(null!=e,"missing offset"),F(e=this.length||(0<=t?this.writeUInt8(t,e,n):this.writeUInt8(255+t+1,e,n))},i.prototype.writeInt16LE=function(t,e,n){S(this,t,e,!0,n)},i.prototype.writeInt16BE=function(t,e,n){S(this,t,e,!1,n)},i.prototype.writeInt32LE=function(t,e,n){k(this,t,e,!0,n)},i.prototype.writeInt32BE=function(t,e,n){k(this,t,e,!1,n)},i.prototype.writeFloatLE=function(t,e,n){T(this,t,e,!0,n)},i.prototype.writeFloatBE=function(t,e,n){T(this,t,e,!1,n)},i.prototype.writeDoubleLE=function(t,e,n){E(this,t,e,!0,n)},i.prototype.writeDoubleBE=function(t,e,n){E(this,t,e,!1,n)},i.prototype.fill=function(t,e,n){if(t=t||0,e=e||0,n=n||this.length,"string"==typeof t&&(t=t.charCodeAt(0)),F("number"==typeof t&&!isNaN(t),"value is not a number"),F(e<=n,"end < start"),n!==e&&0!==this.length){F(0<=e&&e"},i.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(i._useTypedArrays)return new i(this).buffer;for(var t=new Uint8Array(this.length),e=0,n=t.length;e=e.length||i>=t.length);i++)e[i+n]=t[i];return i}function D(t){try{return decodeURIComponent(t)}catch(t){return String.fromCharCode(65533)}}function R(t,e){F("number"==typeof t,"cannot write a non-number as a number"),F(0<=t,"specified a negative value for writing an unsigned value"),F(t<=e,"value is larger than maximum value for type"),F(Math.floor(t)===t,"value has a fractional component")}function z(t,e,n){F("number"==typeof t,"cannot write a non-number as a number"),F(t<=e,"value larger than maximum allowed value"),F(n<=t,"value smaller than minimum allowed value"),F(Math.floor(t)===t,"value has a fractional component")}function B(t,e,n){F("number"==typeof t,"cannot write a non-number as a number"),F(t<=e,"value larger than maximum allowed value"),F(n<=t,"value smaller than minimum allowed value")}function F(t,e){if(!t)throw new Error(e||"Failed assertion")}i._augment=function(t){return t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=P.get,t.set=P.set,t.write=P.write,t.toString=P.toString,t.toLocaleString=P.toString,t.toJSON=P.toJSON,t.copy=P.copy,t.slice=P.slice,t.readUInt8=P.readUInt8,t.readUInt16LE=P.readUInt16LE,t.readUInt16BE=P.readUInt16BE,t.readUInt32LE=P.readUInt32LE,t.readUInt32BE=P.readUInt32BE,t.readInt8=P.readInt8,t.readInt16LE=P.readInt16LE,t.readInt16BE=P.readInt16BE,t.readInt32LE=P.readInt32LE,t.readInt32BE=P.readInt32BE,t.readFloatLE=P.readFloatLE,t.readFloatBE=P.readFloatBE,t.readDoubleLE=P.readDoubleLE,t.readDoubleBE=P.readDoubleBE,t.writeUInt8=P.writeUInt8,t.writeUInt16LE=P.writeUInt16LE,t.writeUInt16BE=P.writeUInt16BE,t.writeUInt32LE=P.writeUInt32LE,t.writeUInt32BE=P.writeUInt32BE,t.writeInt8=P.writeInt8,t.writeInt16LE=P.writeInt16LE,t.writeInt16BE=P.writeInt16BE,t.writeInt32LE=P.writeInt32LE,t.writeInt32BE=P.writeInt32BE,t.writeFloatLE=P.writeFloatLE,t.writeFloatBE=P.writeFloatBE,t.writeDoubleLE=P.writeDoubleLE,t.writeDoubleBE=P.writeDoubleBE,t.fill=P.fill,t.inspect=P.inspect,t.toArrayBuffer=P.toArrayBuffer,t}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(t,e,n){(function(n,r,i,o,a,s,u,c,l){i=t("buffer").Buffer;var f=4,h=new i(f);h.fill(0),e.exports={hash:function(t,e,n,r){return i.isBuffer(t)||(t=new i(t)),function(t,e,n){for(var r=new i(e),o=n?r.writeInt32BE:r.writeInt32LE,a=0;am?e=t(e):e.length>5]|=128<>>9<<4)]=e;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a>>32-s,n);var a,s}function p(t,e,n,r,i,o,a){return d(e&n|~e&r,t,e,i,o,a)}function m(t,e,n,r,i,o,a){return d(e&r|n&~r,t,e,i,o,a)}function y(t,e,n,r,i,o,a){return d(e^n^r,t,e,i,o,a)}function v(t,e,n,r,i,o,a){return d(n^(e|~r),t,e,i,o,a)}function g(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}e.exports=function(t){return f.hash(t,h,16)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(t,e,n){(function(t,n,r,i,o,a,s,u,c){var l,f;f=function(t){for(var e,n=new Array(t),r=0;r>>((3&r)<<3)&255;return n},e.exports=l||f}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(t,e,n){(function(n,r,i,o,a,s,u,c,l){var f=t("./helpers");function h(t,e){t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var n,r,i,o,a,s=Array(80),u=1732584193,c=-271733879,l=-1732584194,f=271733878,h=-1009589776,m=0;m>16)+(e>>16)+(n>>16)<<16|65535&n}function p(t,e){return t<>>32-e}e.exports=function(t){return f.hash(t,h,20,!0)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(t,e,n){(function(n,r,i,o,a,s,u,c,l){function f(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function h(t,e){return t>>>e|t<<32-e}function d(t,e){var n,r,i,o,a,s,u,c,l,d,p=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),m=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),y=new Array(64);t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var v,g,b,w,_,x,O,S,k=0;k>>10,y[T-7]),h(O=y[T-15],7)^h(O,18)^O>>>3),y[T-16]),l=f(f(f(f(c,h(x=a,6)^h(x,11)^h(x,25)),(_=a)&s^~_&u),p[T]),y[T]),d=f(h(w=n,2)^h(w,13)^h(w,22),(v=n)&(g=r)^v&(b=i)^g&b),c=u,u=s,s=a,a=f(o,l),o=i,i=r,r=n,n=f(l,d);m[0]=f(n,m[0]),m[1]=f(r,m[1]),m[2]=f(i,m[2]),m[3]=f(o,m[3]),m[4]=f(a,m[4]),m[5]=f(s,m[5]),m[6]=f(u,m[6]),m[7]=f(c,m[7])}return m}var p=t("./helpers");e.exports=function(t){return p.hash(t,d,32,!0)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(t,e,n){(function(t,n,r,i,o,a,s,u,c){function l(){}(t=e.exports={}).nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var n=[];return window.addEventListener("message",(function(t){var e=t.source;e!==window&&null!==e||"process-tick"!==t.data||(t.stopPropagation(),0>1,l=-7,f=n?i-1:0,h=n?-1:1,d=t[e+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;0>=-l,l+=r;0>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),2<=(e+=1<=a+f?h/u:h*Math.pow(2,1-f))*u&&(a++,u/=2),l<=a+f?(s=0,a=l):1<=a+f?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));8<=i;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";t.exports=!0},function(t,e,n){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var r=n(8),i=n(67),o=n(32),a=n(30)("IE_PROTO"),s=function(){},u=function(){var t,e=n(43)("iframe"),r=o.length;for(e.style.display="none",n(70).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("