@careevolution/mydatahelps-ui 1.9.2-DarkMode.6 → 1.9.2-DarkMode.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/cjs/index.js +3 -3
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/presentational/ActivityMeter/ActivityMeter.d.ts +1 -0
  4. package/dist/cjs/types/components/presentational/Button/Button.d.ts +2 -0
  5. package/dist/cjs/types/components/presentational/DateRangeNavigator/DateRangeNavigator.d.ts +1 -0
  6. package/dist/cjs/types/components/presentational/DayTrackerSymbol/DayTrackerSymbol.d.ts +1 -0
  7. package/dist/cjs/types/components/presentational/NavigationBar/NavigationBar.d.ts +1 -0
  8. package/dist/cjs/types/components/presentational/Section/Section.d.ts +1 -0
  9. package/dist/cjs/types/components/presentational/SegmentedControl/SegmentedControl.d.ts +2 -0
  10. package/dist/cjs/types/components/presentational/Switch/Switch.d.ts +1 -0
  11. package/dist/cjs/types/components/presentational/TextBlock/TextBlock.d.ts +1 -0
  12. package/dist/cjs/types/components/presentational/TrackerItem/TrackerItem.d.ts +1 -0
  13. package/dist/esm/index.js +2 -2
  14. package/dist/esm/index.js.map +1 -1
  15. package/dist/esm/types/components/presentational/ActivityMeter/ActivityMeter.d.ts +1 -0
  16. package/dist/esm/types/components/presentational/Button/Button.d.ts +2 -0
  17. package/dist/esm/types/components/presentational/DateRangeNavigator/DateRangeNavigator.d.ts +1 -0
  18. package/dist/esm/types/components/presentational/DayTrackerSymbol/DayTrackerSymbol.d.ts +1 -0
  19. package/dist/esm/types/components/presentational/NavigationBar/NavigationBar.d.ts +1 -0
  20. package/dist/esm/types/components/presentational/Section/Section.d.ts +1 -0
  21. package/dist/esm/types/components/presentational/SegmentedControl/SegmentedControl.d.ts +2 -0
  22. package/dist/esm/types/components/presentational/Switch/Switch.d.ts +1 -0
  23. package/dist/esm/types/components/presentational/TextBlock/TextBlock.d.ts +1 -0
  24. package/dist/esm/types/components/presentational/TrackerItem/TrackerItem.d.ts +1 -0
  25. package/dist/index.d.ts +12 -0
  26. package/package.json +1 -1
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import e,{forwardRef as t,createElement as r,Fragment as n,createContext as o,useContext as i,useRef as a,useLayoutEffect as l,useState as c,useEffect as s,useMemo as u}from"react";import f from"@careevolution/mydatahelps-js";import p from"punycode";var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m={};function y(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="chevron-right",r=[9002],n="f054",o="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z";e.definition={prefix:"fas",iconName:t,icon:[320,512,r,n,o]},e.faChevronRight=e.definition,e.prefix="fas",e.iconName=t,e.width=320,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(m);y(".mdhui-action\n{\n padding: 16px 32px 16px 16px;\n position: relative;\n cursor: pointer;\n background: inherit;\n width: 100%;\n}\n\n .mdhui-action .title\n {\n font-size: 1em;\n font-weight: bold;\n }\n\n .mdhui-action .subtitle\n {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n }\n\n .mdhui-action .indicator\n {\n position: absolute;\n top: calc(50% - 9px);\n right: 16px;\n font-size: 16px;\n color: var(--mdhui-text-color-3);\n }\n");var v=["icon","size","className","title","border","fixedWidth","flip","spin","pulse","inverse","listItem","pull","swapOpacity","rotation","role","symbol"],g={style:{display:"none"}},b=t((function(e,t){var o=e.icon;if(!o)return null;var i=o.icon,a=i[0],l=i[1],c=i[4],s=e.title?Math.random().toString(36).substr(2):void 0,u=function(e,t){var r={};for(var n in e)Object.hasOwnProperty.call(e,n)&&!t.includes(n)&&(r[n]=e[n]);return r}(e,v);u.className=function(e){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}("svg-inline--fa","fa-".concat(e.icon.iconName),"fa-w-".concat(Math.ceil(e.icon.icon[0]/e.icon.icon[1]*16)),e.size&&"fa-".concat(e.size),e.border&&"fa-border",e.fixedWidth&&"fa-fw",e.flip&&"fa-flip-".concat(e.flip),e.spin&&"fa-spin",e.pulse&&"fa-pulse",e.inverse&&"fa-inverse",e.listItem&&"fa-li",e.pull&&"fa-pull-".concat(e.pull),e.swapOpacity&&"fa-swap-opacity",e.rotation&&"fa-rotate-".concat(e.rotation),e.className)}(e),u.xmlns="http://www.w3.org/2000/svg",u["aria-labelledby"]=s,u["aria-hidden"]=!s||void 0,u.focusable=!!s&&void 0,u.ref=t,u.viewBox="0 0 ".concat(a," ").concat(l),u.role=e.role||"img";var f=e.symbol||!1,p=r(n,null,s&&r("title",{id:s},e.title),r("path",{fill:"currentColor",d:c.toString()}));return f?(u.id=!0===f?"".concat(o.prefix,"-").concat(o.iconName):f,r("svg",g,r("symbol",u,p))):r("svg",u,p)}));b.displayName="FontAwesomeSvgIcon";function w(t){var r,n=null!==(r=t.indicatorIcon)&&void 0!==r?r:m.faChevronRight;return e.createElement("button",{className:(t.className||"")+" mdhui-action",onClick:function(){return t.onClick()}},t.title&&e.createElement("div",{className:"title"},t.title),t.subtitle&&e.createElement("div",{className:"subtitle"},t.subtitle),t.children,e.createElement("div",{className:"indicator"},e.createElement(b,{icon:n})))}y(":root, :host {\n --fa-font-solid: normal 900 1em/1 'Font Awesome 6 Solid';\n --fa-font-regular: normal 400 1em/1 'Font Awesome 6 Regular';\n --fa-font-light: normal 300 1em/1 'Font Awesome 6 Light';\n --fa-font-thin: normal 100 1em/1 'Font Awesome 6 Thin';\n --fa-font-duotone: normal 900 1em/1 'Font Awesome 6 Duotone';\n --fa-font-sharp-solid: normal 900 1em/1 'Font Awesome 6 Sharp';\n --fa-font-sharp-regular: normal 400 1em/1 'Font Awesome 6 Sharp';\n --fa-font-sharp-light: normal 300 1em/1 'Font Awesome 6 Sharp';\n --fa-font-brands: normal 400 1em/1 'Font Awesome 6 Brands'; }\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box; }\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -.125em; }\n .svg-inline--fa.fa-2xs {\n vertical-align: 0.1em; }\n .svg-inline--fa.fa-xs {\n vertical-align: 0em; }\n .svg-inline--fa.fa-sm {\n vertical-align: -0.07143em; }\n .svg-inline--fa.fa-lg {\n vertical-align: -0.2em; }\n .svg-inline--fa.fa-xl {\n vertical-align: -0.25em; }\n .svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em; }\n .svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto; }\n .svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto; }\n .svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em; }\n .svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em); }\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0; }\n\n.fa-layers-text, .fa-layers-counter {\n display: inline-block;\n position: absolute;\n text-align: center; }\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -.125em;\n width: 1em; }\n .fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center; }\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center; }\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right; }\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right; }\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left; }\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right; }\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left; }\n\n.fa-1x {\n font-size: 1em; }\n\n.fa-2x {\n font-size: 2em; }\n\n.fa-3x {\n font-size: 3em; }\n\n.fa-4x {\n font-size: 4em; }\n\n.fa-5x {\n font-size: 5em; }\n\n.fa-6x {\n font-size: 6em; }\n\n.fa-7x {\n font-size: 7em; }\n\n.fa-8x {\n font-size: 8em; }\n\n.fa-9x {\n font-size: 9em; }\n\n.fa-10x {\n font-size: 10em; }\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em; }\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.08333em;\n vertical-align: 0.125em; }\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.07143em;\n vertical-align: 0.05357em; }\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em; }\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.04167em;\n vertical-align: -0.125em; }\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em; }\n\n.fa-fw {\n text-align: center;\n width: 1.25em; }\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0; }\n .fa-ul > li {\n position: relative; }\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit; }\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); }\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em); }\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em); }\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out); }\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); }\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); }\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); }\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out); }\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear); }\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear); }\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse; }\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8)); }\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n .fa-bounce,\n .fa-fade,\n .fa-beat-fade,\n .fa-flip,\n .fa-pulse,\n .fa-shake,\n .fa-spin,\n .fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s; } }\n\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1); }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25)); } }\n\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1); }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25)); } }\n\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0); }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0); }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0); } }\n\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0); }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0); }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0); } }\n\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4); } }\n\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4); } }\n\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1); }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125)); } }\n\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1); }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125)); } }\n\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); } }\n\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); } }\n\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg); }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg); }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg); }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg); }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg); }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg); }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg); }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg); }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); } }\n\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg); }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg); }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg); }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg); }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg); }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg); }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg); }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg); }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); } }\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg); }\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg); }\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg); }\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1); }\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1); }\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1); }\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none)); }\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em; }\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto); }\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em; }\n\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em; }\n\n.fa-inverse {\n color: var(--fa-inverse, #fff); }\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0; }\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0; }\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1); }\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4); }\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4); }\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1); }\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black; }\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff); }\n");function O(t){return e.createElement("div",{className:"mdhui-activity-meter"},e.createElement("div",{className:"mdhui-activity-meter-label"},t.label),e.createElement("span",{className:"mdhui-activity-meter-value"},e.createElement("span",{style:{color:t.color}},t.icon)," ",t.value),e.createElement("div",{className:"mdhui-activity-meter-meter"},e.createElement("div",{className:"mdhui-activity-meter-fill",style:{width:100*t.fillPercent+"%",backgroundColor:t.color}},e.createElement(Cu,null)),e.createElement("div",{className:"mdhui-activity-meter-average-marker",style:{left:100*t.averageFillPercent+"%"}})),null!=t.message&&e.createElement("div",{style:{color:t.color},className:"mdhui-activity-meter-message"},!t.message&&e.createElement(e.Fragment,null," "),t.message))}y(".mdhui-activity-meter {\n position: relative;\n box-sizing: border-box;\n padding-bottom: 0;\n vertical-align: top;\n}\n\n.mdhui-activity-meter .mdhui-activity-meter-icon {\n position: absolute;\n line-height: 32px;\n text-align: center;\n left: 16px;\n top: calc(50% - 8px);\n color: var(--mdhui-color-primary);\n font-size: 1em;\n}\n\n.mdhui-activity-meter .mdhui-activity-meter-value {\n font-weight: bold;\n margin-bottom: 4px;\n margin-top: 4px;\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mdhui-activity-meter .mdhui-activity-meter-label {\n font-size: .7em;\n color: var(--mdhui-text-color-2);\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-transform: uppercase;\n}\n\n.mdhui-activity-meter .mdhui-activity-meter-meter {\n border-radius: 8px;\n background: var(--mdhui-background-color-1);\n position: relative;\n height: 16px;\n}\n\n.mdhui-activity-meter .mdhui-activity-meter-meter .mdhui-activity-meter-average-marker {\n position: absolute;\n top: -4px;\n bottom: -4px;\n border-left: dashed 1px var(--mdhui-border-color-2);\n}\n\n.mdhui-activity-meter .mdhui-activity-meter-meter .mdhui-activity-meter-fill {\n height: 16px;\n background: var(--mdhui-color-primary);\n position: relative;\n border-radius: 8px;\n}\n\n.mdhui-activity-meter .mdhui-activity-meter-message {\n font-size: .7em;\n margin-top: 4px;\n}");function x(t){var r;return e.createElement("button",{className:"mdhui-button",disabled:null!==(r=t.disabled)&&void 0!==r&&r,onClick:function(){return t.onClick()}},t.children)}function k(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}function E(e){return function(t,r){var n;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=r&&r.width?String(r.width):o;n=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,l=null!=r&&r.width?String(r.width):e.defaultWidth;n=e.values[l]||e.values[a]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function j(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,l=i[0],c=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(c)?T(c,(function(e){return e.test(l)})):S(c,(function(e){return e.test(l)}));a=e.valueCallback?e.valueCallback(s):s,a=r.valueCallback?r.valueCallback(a):a;var u=t.slice(l.length);return{value:a,rest:u}}}function S(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function T(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function P(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var o=n[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=r.valueCallback?r.valueCallback(a):a;var l=t.slice(o.length);return{value:a,rest:l}}}function C(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function z(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function D(e){z(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===_(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function L(e,t){z(2,arguments);var r=D(e),n=C(t);return isNaN(n)?new Date(NaN):n?(r.setDate(r.getDate()+n),r):r}function A(e,t){z(2,arguments);var r=D(e),n=C(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var o=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+n+1,0);var a=i.getDate();return o>=a?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function M(e,t){if(z(2,arguments),!t||"object"!==N(t))return new Date(NaN);var r=t.years?C(t.years):0,n=t.months?C(t.months):0,o=t.weeks?C(t.weeks):0,i=t.days?C(t.days):0,a=t.hours?C(t.hours):0,l=t.minutes?C(t.minutes):0,c=t.seconds?C(t.seconds):0,s=D(e),u=n||r?A(s,n+12*r):s,f=i||o?L(u,i+7*o):u,p=l+60*a,d=c+60*p,h=1e3*d,m=new Date(f.getTime()+h);return m}function I(e,t){z(2,arguments);var r=D(e).getTime(),n=C(t);return new Date(r+n)}y(".mdhui-button {\n width: 100%;\n box-sizing: border-box;\n padding: 16px;\n background: var(--mdhui-color-theme);\n font-size: 17px;\n line-height: 17px;\n color: #FFF;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n font-weight: bold;\n text-align: center;\n}\n\n.mdhui-button:disabled {\n color: var(--mdhui-text-color-3);\n background: var(--mdhui-background-color-2);\n cursor: default;\n}");var B={};function R(){return B}function F(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function q(e){z(1,arguments);var t=D(e);return t.setHours(0,0,0,0),t}function H(e,t){z(2,arguments);var r=q(e),n=q(t),o=r.getTime()-F(r),i=n.getTime()-F(n);return Math.round((o-i)/864e5)}function W(e,t){z(2,arguments);var r=D(e),n=D(t),o=r.getTime()-n.getTime();return o<0?-1:o>0?1:o}function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}function U(e){return z(1,arguments),e instanceof Date||"object"===V(e)&&"[object Date]"===Object.prototype.toString.call(e)}function G(e){if(z(1,arguments),!U(e)&&"number"!=typeof e)return!1;var t=D(e);return!isNaN(Number(t))}function $(e,t){z(2,arguments);var r=D(e),n=D(t),o=r.getFullYear()-n.getFullYear(),i=r.getMonth()-n.getMonth();return 12*o+i}function Y(e,t){return z(2,arguments),D(e).getTime()-D(t).getTime()}var Z={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function X(e){return e?Z[e]:Z.trunc}function Q(e){z(1,arguments);var t=D(e);return t.setHours(23,59,59,999),t}function J(e){z(1,arguments);var t=D(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function K(e){z(1,arguments);var t=D(e);return Q(t).getTime()===J(t).getTime()}function ee(e,t){z(2,arguments);var r,n=D(e),o=D(t),i=W(n,o),a=Math.abs($(n,o));if(a<1)r=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*a);var l=W(n,o)===-i;K(D(e))&&1===a&&1===W(e,o)&&(l=!1),r=i*(a-Number(l))}return 0===r?0:r}function te(e,t,r){z(2,arguments);var n=Y(e,t)/1e3;return X(null==r?void 0:r.roundingMethod)(n)}function re(e,t){z(2,arguments);var r=C(t);return I(e,-r)}function ne(e){z(1,arguments);var t=1,r=D(e),n=r.getUTCDay(),o=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-o),r.setUTCHours(0,0,0,0),r}function oe(e){z(1,arguments);var t=D(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var o=ne(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var a=ne(i);return t.getTime()>=o.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function ie(e){z(1,arguments);var t=oe(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=ne(r);return n}function ae(e){z(1,arguments);var t=D(e),r=ne(t).getTime()-ie(t).getTime();return Math.round(r/6048e5)+1}function le(e,t){var r,n,o,i,a,l,c,s;z(1,arguments);var u=R(),f=C(null!==(r=null!==(n=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==n?n:null===(c=u.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==r?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=D(e),d=p.getUTCDay(),h=(d<f?7:0)+d-f;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function ce(e,t){var r,n,o,i,a,l,c,s;z(1,arguments);var u=D(e),f=u.getUTCFullYear(),p=R(),d=C(null!==(r=null!==(n=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==n?n:null===(c=p.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==r?r:1);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,d),h.setUTCHours(0,0,0,0);var m=le(h,t),y=new Date(0);y.setUTCFullYear(f,0,d),y.setUTCHours(0,0,0,0);var v=le(y,t);return u.getTime()>=m.getTime()?f+1:u.getTime()>=v.getTime()?f:f-1}function se(e,t){var r,n,o,i,a,l,c,s;z(1,arguments);var u=R(),f=C(null!==(r=null!==(n=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==n?n:null===(c=u.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==r?r:1),p=ce(e,t),d=new Date(0);d.setUTCFullYear(p,0,f),d.setUTCHours(0,0,0,0);var h=le(d,t);return h}function ue(e,t){z(1,arguments);var r=D(e),n=le(r,t).getTime()-se(r,t).getTime();return Math.round(n/6048e5)+1}function fe(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var pe=function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return fe("yy"===t?n%100:n,t.length)},de=function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):fe(r+1,2)},he=function(e,t){return fe(e.getUTCDate(),t.length)},me=function(e,t){return fe(e.getUTCHours()%12||12,t.length)},ye=function(e,t){return fe(e.getUTCHours(),t.length)},ve=function(e,t){return fe(e.getUTCMinutes(),t.length)},ge=function(e,t){return fe(e.getUTCSeconds(),t.length)},be=function(e,t){var r=t.length,n=e.getUTCMilliseconds();return fe(Math.floor(n*Math.pow(10,r-3)),t.length)},we="midnight",Oe="noon",xe="morning",ke="afternoon",Ee="evening",je="night",Se={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return pe(e,t)},Y:function(e,t,r,n){var o=ce(e,n),i=o>0?o:1-o;return"YY"===t?fe(i%100,2):"Yo"===t?r.ordinalNumber(i,{unit:"year"}):fe(i,t.length)},R:function(e,t){return fe(oe(e),t.length)},u:function(e,t){return fe(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return fe(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return fe(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return de(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return fe(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var o=ue(e,n);return"wo"===t?r.ordinalNumber(o,{unit:"week"}):fe(o,t.length)},I:function(e,t,r){var n=ae(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):fe(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):he(e,t)},D:function(e,t,r){var n=function(e){z(1,arguments);var t=D(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),o=r-n;return Math.floor(o/864e5)+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):fe(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var o=e.getUTCDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return fe(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var o=e.getUTCDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return fe(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),o=0===n?7:n;switch(t){case"i":return String(o);case"ii":return fe(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,o=e.getUTCHours();switch(n=12===o?Oe:0===o?we:o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,o=e.getUTCHours();switch(n=o>=17?Ee:o>=12?ke:o>=4?xe:je,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return me(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ye(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):fe(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):fe(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ve(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ge(e,t)},S:function(e,t){return be(e,t)},X:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return Pe(o);case"XXXX":case"XX":return Ce(o);default:return Ce(o,":")}},x:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return Pe(o);case"xxxx":case"xx":return Ce(o);default:return Ce(o,":")}},O:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Te(o,":");default:return"GMT"+Ce(o,":")}},z:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Te(o,":");default:return"GMT"+Ce(o,":")}},t:function(e,t,r,n){var o=n._originalDate||e;return fe(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,r,n){return fe((n._originalDate||e).getTime(),t.length)}};function Te(e,t){var r=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),i=n%60;if(0===i)return r+String(o);var a=t||"";return r+String(o)+a+fe(i,2)}function Pe(e,t){return e%60==0?(e>0?"-":"+")+fe(Math.abs(e)/60,2):Ce(e,t)}function Ce(e,t){var r=t||"",n=e>0?"-":"+",o=Math.abs(e);return n+fe(Math.floor(o/60),2)+r+fe(o%60,2)}var ze=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},_e=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},De={p:_e,P:function(e,t){var r,n=e.match(/(P+)(p+)?/)||[],o=n[1],i=n[2];if(!i)return ze(e,t);switch(o){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",ze(o,t)).replace("{{time}}",_e(i,t))}},Le=["D","DD"],Ae=["YY","YYYY"];function Ne(e){return-1!==Le.indexOf(e)}function Me(e){return-1!==Ae.indexOf(e)}function Ie(e,t,r){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Be={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Re={date:k({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:k({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:k({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Fe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qe={code:"en-US",formatDistance:function(e,t,r){var n,o=Be[e];return n="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:Re,formatRelative:function(e,t,r,n){return Fe[e]},localize:{ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:E({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:E({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:E({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:E({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:E({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"})},match:{ordinalNumber:P({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:j({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:j({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(e){return e+1}}),month:j({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:j({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:j({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"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},He=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,We=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ve=/^'([^]*?)'?$/,Ue=/''/g,Ge=/[a-zA-Z]/;function $e(e,t,r){var n,o,i,a,l,c,s,u,f,p,d,h,m,y,v,g,b,w;z(2,arguments);var O=String(t),x=R(),k=null!==(n=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:x.locale)&&void 0!==n?n:qe,E=C(null!==(i=null!==(a=null!==(l=null!==(c=null==r?void 0:r.firstWeekContainsDate)&&void 0!==c?c:null==r||null===(s=r.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==l?l:x.firstWeekContainsDate)&&void 0!==a?a:null===(f=x.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=C(null!==(d=null!==(h=null!==(m=null!==(y=null==r?void 0:r.weekStartsOn)&&void 0!==y?y:null==r||null===(v=r.locale)||void 0===v||null===(g=v.options)||void 0===g?void 0:g.weekStartsOn)&&void 0!==m?m:x.weekStartsOn)&&void 0!==h?h:null===(b=x.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==d?d:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var S=D(e);if(!G(S))throw new RangeError("Invalid time value");var T=F(S),P=re(S,T),_={firstWeekContainsDate:E,weekStartsOn:j,locale:k,_originalDate:S},L=O.match(We).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,De[t])(e,k.formatLong):e})).join("").match(He).map((function(n){if("''"===n)return"'";var o=n[0];if("'"===o)return Ye(n);var i=Se[o];if(i)return null!=r&&r.useAdditionalWeekYearTokens||!Me(n)||Ie(n,t,String(e)),null!=r&&r.useAdditionalDayOfYearTokens||!Ne(n)||Ie(n,t,String(e)),i(P,n,k.localize,_);if(o.match(Ge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return n})).join("");return L}function Ye(e){var t=e.match(Ve);return t?t[1].replace(Ue,"'"):e}function Ze(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Xe(e){return Ze({},e)}function Qe(e,t,r){var n,o;z(2,arguments);var i=R(),a=null!==(n=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:i.locale)&&void 0!==n?n:qe;if(!a.formatDistance)throw new RangeError("locale must contain formatDistance property");var l=W(e,t);if(isNaN(l))throw new RangeError("Invalid time value");var c,s,u=Ze(Xe(r),{addSuffix:Boolean(null==r?void 0:r.addSuffix),comparison:l});l>0?(c=D(t),s=D(e)):(c=D(e),s=D(t));var f,p=te(s,c),d=(F(s)-F(c))/1e3,h=Math.round((p-d)/60);if(h<2)return null!=r&&r.includeSeconds?p<5?a.formatDistance("lessThanXSeconds",5,u):p<10?a.formatDistance("lessThanXSeconds",10,u):p<20?a.formatDistance("lessThanXSeconds",20,u):p<40?a.formatDistance("halfAMinute",0,u):p<60?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",1,u):0===h?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",h,u);if(h<45)return a.formatDistance("xMinutes",h,u);if(h<90)return a.formatDistance("aboutXHours",1,u);if(h<1440){var m=Math.round(h/60);return a.formatDistance("aboutXHours",m,u)}if(h<2520)return a.formatDistance("xDays",1,u);if(h<43200){var y=Math.round(h/1440);return a.formatDistance("xDays",y,u)}if(h<86400)return f=Math.round(h/43200),a.formatDistance("aboutXMonths",f,u);if((f=ee(s,c))<12){var v=Math.round(h/43200);return a.formatDistance("xMonths",v,u)}var g=f%12,b=Math.floor(f/12);return g<3?a.formatDistance("aboutXYears",b,u):g<9?a.formatDistance("overXYears",b,u):a.formatDistance("almostXYears",b+1,u)}function Je(e,t){var r,n;z(1,arguments);var o=D(e);if(isNaN(o.getTime()))throw new RangeError("Invalid time value");var i=String(null!==(r=null==t?void 0:t.format)&&void 0!==r?r:"extended"),a=String(null!==(n=null==t?void 0:t.representation)&&void 0!==n?n:"complete");if("extended"!==i&&"basic"!==i)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==a&&"time"!==a&&"complete"!==a)throw new RangeError("representation must be 'date', 'time', or 'complete'");var l="",c="",s="extended"===i?"-":"",u="extended"===i?":":"";if("time"!==a){var f=fe(o.getDate(),2),p=fe(o.getMonth()+1,2),d=fe(o.getFullYear(),4);l="".concat(d).concat(s).concat(p).concat(s).concat(f)}if("date"!==a){var h=o.getTimezoneOffset();if(0!==h){var m=Math.abs(h),y=fe(Math.floor(m/60),2),v=fe(m%60,2),g=h<0?"+":"-";c="".concat(g).concat(y,":").concat(v)}else c="Z";var b=fe(o.getHours(),2),w=fe(o.getMinutes(),2),O=fe(o.getSeconds(),2),x=""===l?"":"T",k=[b,w,O].join(u);l="".concat(l).concat(x).concat(k).concat(c)}return l}function Ke(e,t,r){var n,o,i,a,l,c,s,u,f,p;z(2,arguments);var d=D(e),h=D(t),m=R(),y=null!==(n=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:m.locale)&&void 0!==n?n:qe,v=C(null!==(i=null!==(a=null!==(l=null!==(c=null==r?void 0:r.weekStartsOn)&&void 0!==c?c:null==r||null===(s=r.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==l?l:m.weekStartsOn)&&void 0!==a?a:null===(f=m.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==i?i:0);if(!y.localize)throw new RangeError("locale must contain localize property");if(!y.formatLong)throw new RangeError("locale must contain formatLong property");if(!y.formatRelative)throw new RangeError("locale must contain formatRelative property");var g,b=H(d,h);if(isNaN(b))throw new RangeError("Invalid time value");g=b<-6?"other":b<-1?"lastWeek":b<0?"yesterday":b<1?"today":b<2?"tomorrow":b<7?"nextWeek":"other";var w=re(d,F(d)),O=re(h,F(h)),x=y.formatRelative(g,w,O,{locale:y,weekStartsOn:v});return $e(d,x,{locale:y,weekStartsOn:v})}function et(e,t){z(2,arguments);var r=D(e),n=D(t);return r.getTime()>n.getTime()}function tt(e){return tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tt(e)}function rt(e,t){return rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rt(e,t)}function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=it(e);if(t){var o=it(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ot(this,r)}}function ot(e,t){return!t||"object"!==tt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function it(e){return it=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},it(e)}function at(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ct(e,t,r){return t&&lt(e.prototype,t),r&&lt(e,r),e}var st=function(){function e(){var t,r,n;at(this,e),n=0,(r="subPriority")in(t=this)?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n}return ct(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),ut=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rt(e,t)}(r,st);var t=nt(r);function r(e,n,o,i,a){var l;return at(this,r),(l=t.call(this)).value=e,l.validateValue=n,l.setValue=o,l.priority=i,a&&(l.subPriority=a),l}return ct(r,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,r){return this.setValue(e,t,this.value,r)}}]),r}();function ft(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var pt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,r=[{key:"run",value:function(e,t,r,n){var o=this.parse(e,t,r,n);return o?{setter:new ut(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,r){return!0}}],r&&ft(t.prototype,r),n&&ft(t,n),e}();function dt(e){return dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dt(e)}function ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function yt(e,t){return yt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yt(e,t)}function vt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=wt(e);if(t){var o=wt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return gt(this,r)}}function gt(e,t){return!t||"object"!==dt(t)&&"function"!=typeof t?bt(e):t}function bt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wt(e){return wt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wt(e)}function Ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yt(e,t)}(i,pt);var t,r,n,o=vt(i);function i(){var e;ht(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ot(bt(e=o.call.apply(o,[this].concat(r))),"priority",140),Ot(bt(e),"incompatibleTokens",["R","u","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,r){return t.era=r,e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e}}],r&&mt(t.prototype,r),n&&mt(t,n),i}(),kt=/^(1[0-2]|0?\d)/,Et=/^(3[0-1]|[0-2]?\d)/,jt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,St=/^(5[0-3]|[0-4]?\d)/,Tt=/^(2[0-3]|[0-1]?\d)/,Pt=/^(2[0-4]|[0-1]?\d)/,Ct=/^(1[0-1]|0?\d)/,zt=/^(1[0-2]|0?\d)/,_t=/^[0-5]?\d/,Dt=/^[0-5]?\d/,Lt=/^\d/,At=/^\d{1,2}/,Nt=/^\d{1,3}/,Mt=/^\d{1,4}/,It=/^-?\d+/,Bt=/^-?\d/,Rt=/^-?\d{1,2}/,Ft=/^-?\d{1,3}/,qt=/^-?\d{1,4}/,Ht=/^([+-])(\d{2})(\d{2})?|Z/,Wt=/^([+-])(\d{2})(\d{2})|Z/,Vt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Ut=/^([+-])(\d{2}):(\d{2})|Z/,Gt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function $t(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Yt(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Zt(e,t){var r=t.match(e);return r?"Z"===r[0]?{value:0,rest:t.slice(1)}:{value:("+"===r[1]?1:-1)*(36e5*(r[2]?parseInt(r[2],10):0)+6e4*(r[3]?parseInt(r[3],10):0)+1e3*(r[5]?parseInt(r[5],10):0)),rest:t.slice(r[0].length)}:null}function Xt(e){return Yt(It,e)}function Qt(e,t){switch(e){case 1:return Yt(Lt,t);case 2:return Yt(At,t);case 3:return Yt(Nt,t);case 4:return Yt(Mt,t);default:return Yt(new RegExp("^\\d{1,"+e+"}"),t)}}function Jt(e,t){switch(e){case 1:return Yt(Bt,t);case 2:return Yt(Rt,t);case 3:return Yt(Ft,t);case 4:return Yt(qt,t);default:return Yt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Kt(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function er(e,t){var r,n=t>0,o=n?t:1-t;if(o<=50)r=e||100;else{var i=o+50;r=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return n?r:1-r}function tr(e){return e%400==0||e%4==0&&e%100!=0}function rr(e){return rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rr(e)}function nr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function or(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ir(e,t){return ir=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ir(e,t)}function ar(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=sr(e);if(t){var o=sr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return lr(this,r)}}function lr(e,t){return!t||"object"!==rr(t)&&"function"!=typeof t?cr(e):t}function cr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sr(e){return sr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sr(e)}function ur(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var fr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ir(e,t)}(i,pt);var t,r,n,o=ar(i);function i(){var e;nr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ur(cr(e=o.call.apply(o,[this].concat(r))),"priority",130),ur(cr(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){var n=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return $t(Qt(4,e),n);case"yo":return $t(r.ordinalNumber(e,{unit:"year"}),n);default:return $t(Qt(t.length,e),n)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,r){var n=e.getUTCFullYear();if(r.isTwoDigitYear){var o=er(r.year,n);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-r.year:r.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}],r&&or(t.prototype,r),n&&or(t,n),i}();function pr(e){return pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pr(e)}function dr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mr(e,t){return mr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mr(e,t)}function yr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=br(e);if(t){var o=br(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return vr(this,r)}}function vr(e,t){return!t||"object"!==pr(t)&&"function"!=typeof t?gr(e):t}function gr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function br(e){return br=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},br(e)}function wr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Or=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mr(e,t)}(i,pt);var t,r,n,o=yr(i);function i(){var e;dr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return wr(gr(e=o.call.apply(o,[this].concat(r))),"priority",130),wr(gr(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){var n=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return $t(Qt(4,e),n);case"Yo":return $t(r.ordinalNumber(e,{unit:"year"}),n);default:return $t(Qt(t.length,e),n)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,r,n){var o=ce(e,n);if(r.isTwoDigitYear){var i=er(r.year,o);return e.setUTCFullYear(i,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),le(e,n)}var a="era"in t&&1!==t.era?1-r.year:r.year;return e.setUTCFullYear(a,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),le(e,n)}}],r&&hr(t.prototype,r),n&&hr(t,n),i}();function xr(e){return xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xr(e)}function kr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Er(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function jr(e,t){return jr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jr(e,t)}function Sr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Cr(e);if(t){var o=Cr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Tr(this,r)}}function Tr(e,t){return!t||"object"!==xr(t)&&"function"!=typeof t?Pr(e):t}function Pr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cr(e){return Cr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Cr(e)}function zr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _r=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jr(e,t)}(i,pt);var t,r,n,o=Sr(i);function i(){var e;kr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return zr(Pr(e=o.call.apply(o,[this].concat(r))),"priority",130),zr(Pr(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t){return Jt("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,r){var n=new Date(0);return n.setUTCFullYear(r,0,4),n.setUTCHours(0,0,0,0),ne(n)}}],r&&Er(t.prototype,r),n&&Er(t,n),i}();function Dr(e){return Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dr(e)}function Lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ar(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Nr(e,t){return Nr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Nr(e,t)}function Mr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Rr(e);if(t){var o=Rr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ir(this,r)}}function Ir(e,t){return!t||"object"!==Dr(t)&&"function"!=typeof t?Br(e):t}function Br(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rr(e){return Rr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Rr(e)}function Fr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nr(e,t)}(i,pt);var t,r,n,o=Mr(i);function i(){var e;Lr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Fr(Br(e=o.call.apply(o,[this].concat(r))),"priority",130),Fr(Br(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t){return Jt("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,r){return e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e}}],r&&Ar(t.prototype,r),n&&Ar(t,n),i}();function Hr(e){return Hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hr(e)}function Wr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ur(e,t){return Ur=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ur(e,t)}function Gr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Zr(e);if(t){var o=Zr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return $r(this,r)}}function $r(e,t){return!t||"object"!==Hr(t)&&"function"!=typeof t?Yr(e):t}function Yr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zr(e){return Zr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zr(e)}function Xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Qr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ur(e,t)}(i,pt);var t,r,n,o=Gr(i);function i(){var e;Wr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Xr(Yr(e=o.call.apply(o,[this].concat(r))),"priority",120),Xr(Yr(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"Q":case"QQ":return Qt(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,r){return e.setUTCMonth(3*(r-1),1),e.setUTCHours(0,0,0,0),e}}],r&&Vr(t.prototype,r),n&&Vr(t,n),i}();function Jr(e){return Jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jr(e)}function Kr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function en(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function tn(e,t){return tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},tn(e,t)}function rn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=an(e);if(t){var o=an(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return nn(this,r)}}function nn(e,t){return!t||"object"!==Jr(t)&&"function"!=typeof t?on(e):t}function on(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function an(e){return an=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},an(e)}function ln(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var cn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tn(e,t)}(i,pt);var t,r,n,o=rn(i);function i(){var e;Kr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ln(on(e=o.call.apply(o,[this].concat(r))),"priority",120),ln(on(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"q":case"qq":return Qt(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,r){return e.setUTCMonth(3*(r-1),1),e.setUTCHours(0,0,0,0),e}}],r&&en(t.prototype,r),n&&en(t,n),i}();function sn(e){return sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sn(e)}function un(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function pn(e,t){return pn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},pn(e,t)}function dn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=yn(e);if(t){var o=yn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return hn(this,r)}}function hn(e,t){return!t||"object"!==sn(t)&&"function"!=typeof t?mn(e):t}function mn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yn(e){return yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yn(e)}function vn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var gn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pn(e,t)}(i,pt);var t,r,n,o=dn(i);function i(){var e;un(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return vn(mn(e=o.call.apply(o,[this].concat(r))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),vn(mn(e),"priority",110),e}return t=i,r=[{key:"parse",value:function(e,t,r){var n=function(e){return e-1};switch(t){case"M":return $t(Yt(kt,e),n);case"MM":return $t(Qt(2,e),n);case"Mo":return $t(r.ordinalNumber(e,{unit:"month"}),n);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,r){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e}}],r&&fn(t.prototype,r),n&&fn(t,n),i}();function bn(e){return bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bn(e)}function wn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function On(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xn(e,t){return xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},xn(e,t)}function kn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Sn(e);if(t){var o=Sn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return En(this,r)}}function En(e,t){return!t||"object"!==bn(t)&&"function"!=typeof t?jn(e):t}function jn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sn(e){return Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sn(e)}function Tn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Pn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xn(e,t)}(i,pt);var t,r,n,o=kn(i);function i(){var e;wn(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Tn(jn(e=o.call.apply(o,[this].concat(r))),"priority",110),Tn(jn(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){var n=function(e){return e-1};switch(t){case"L":return $t(Yt(kt,e),n);case"LL":return $t(Qt(2,e),n);case"Lo":return $t(r.ordinalNumber(e,{unit:"month"}),n);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,r){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e}}],r&&On(t.prototype,r),n&&On(t,n),i}();function Cn(e){return Cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cn(e)}function zn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Dn(e,t){return Dn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dn(e,t)}function Ln(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Mn(e);if(t){var o=Mn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return An(this,r)}}function An(e,t){return!t||"object"!==Cn(t)&&"function"!=typeof t?Nn(e):t}function Nn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mn(e){return Mn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mn(e)}function In(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Bn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Dn(e,t)}(i,pt);var t,r,n,o=Ln(i);function i(){var e;zn(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return In(Nn(e=o.call.apply(o,[this].concat(r))),"priority",100),In(Nn(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"w":return Yt(St,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,r,n){return le(function(e,t,r){z(2,arguments);var n=D(e),o=C(t),i=ue(n,r)-o;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,r,n),n)}}],r&&_n(t.prototype,r),n&&_n(t,n),i}();function Rn(e){return Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rn(e)}function Fn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Hn(e,t){return Hn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Hn(e,t)}function Wn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Gn(e);if(t){var o=Gn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Vn(this,r)}}function Vn(e,t){return!t||"object"!==Rn(t)&&"function"!=typeof t?Un(e):t}function Un(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gn(e){return Gn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Gn(e)}function $n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Yn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hn(e,t)}(i,pt);var t,r,n,o=Wn(i);function i(){var e;Fn(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return $n(Un(e=o.call.apply(o,[this].concat(r))),"priority",100),$n(Un(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"I":return Yt(St,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,r){return ne(function(e,t){z(2,arguments);var r=D(e),n=C(t),o=ae(r)-n;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,r))}}],r&&qn(t.prototype,r),n&&qn(t,n),i}();function Zn(e){return Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zn(e)}function Xn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Jn(e,t){return Jn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jn(e,t)}function Kn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ro(e);if(t){var o=ro(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return eo(this,r)}}function eo(e,t){return!t||"object"!==Zn(t)&&"function"!=typeof t?to(e):t}function to(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ro(e){return ro=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ro(e)}function no(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var oo=[31,28,31,30,31,30,31,31,30,31,30,31],io=[31,29,31,30,31,30,31,31,30,31,30,31],ao=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jn(e,t)}(i,pt);var t,r,n,o=Kn(i);function i(){var e;Xn(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return no(to(e=o.call.apply(o,[this].concat(r))),"priority",90),no(to(e),"subPriority",1),no(to(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"d":return Yt(Et,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){var r=tr(e.getUTCFullYear()),n=e.getUTCMonth();return r?t>=1&&t<=io[n]:t>=1&&t<=oo[n]}},{key:"set",value:function(e,t,r){return e.setUTCDate(r),e.setUTCHours(0,0,0,0),e}}],r&&Qn(t.prototype,r),n&&Qn(t,n),i}();function lo(e){return lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lo(e)}function co(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function so(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function uo(e,t){return uo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},uo(e,t)}function fo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=mo(e);if(t){var o=mo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return po(this,r)}}function po(e,t){return!t||"object"!==lo(t)&&"function"!=typeof t?ho(e):t}function ho(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mo(e){return mo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mo(e)}function yo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var vo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&uo(e,t)}(i,pt);var t,r,n,o=fo(i);function i(){var e;co(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return yo(ho(e=o.call.apply(o,[this].concat(r))),"priority",90),yo(ho(e),"subpriority",1),yo(ho(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"D":case"DD":return Yt(jt,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){return tr(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,r){return e.setUTCMonth(0,r),e.setUTCHours(0,0,0,0),e}}],r&&so(t.prototype,r),n&&so(t,n),i}();function go(e,t,r){var n,o,i,a,l,c,s,u;z(2,arguments);var f=R(),p=C(null!==(n=null!==(o=null!==(i=null!==(a=null==r?void 0:r.weekStartsOn)&&void 0!==a?a:null==r||null===(l=r.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:f.weekStartsOn)&&void 0!==o?o:null===(s=f.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=D(e),h=C(t),m=d.getUTCDay(),y=h%7,v=(y+7)%7,g=(v<p?7:0)+h-m;return d.setUTCDate(d.getUTCDate()+g),d}function bo(e){return bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bo(e)}function wo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xo(e,t){return xo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},xo(e,t)}function ko(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=So(e);if(t){var o=So(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Eo(this,r)}}function Eo(e,t){return!t||"object"!==bo(t)&&"function"!=typeof t?jo(e):t}function jo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function So(e){return So=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},So(e)}function To(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Po=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xo(e,t)}(i,pt);var t,r,n,o=ko(i);function i(){var e;wo(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return To(jo(e=o.call.apply(o,[this].concat(r))),"priority",90),To(jo(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,r,n){return(e=go(e,r,n)).setUTCHours(0,0,0,0),e}}],r&&Oo(t.prototype,r),n&&Oo(t,n),i}();function Co(e){return Co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Co(e)}function zo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Do(e,t){return Do=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Do(e,t)}function Lo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Mo(e);if(t){var o=Mo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ao(this,r)}}function Ao(e,t){return!t||"object"!==Co(t)&&"function"!=typeof t?No(e):t}function No(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mo(e){return Mo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mo(e)}function Io(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Bo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Do(e,t)}(i,pt);var t,r,n,o=Lo(i);function i(){var e;zo(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Io(No(e=o.call.apply(o,[this].concat(r))),"priority",90),Io(No(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r,n){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+n.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return $t(Qt(t.length,e),o);case"eo":return $t(r.ordinalNumber(e,{unit:"day"}),o);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,r,n){return(e=go(e,r,n)).setUTCHours(0,0,0,0),e}}],r&&_o(t.prototype,r),n&&_o(t,n),i}();function Ro(e){return Ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ro(e)}function Fo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ho(e,t){return Ho=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ho(e,t)}function Wo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Go(e);if(t){var o=Go(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Vo(this,r)}}function Vo(e,t){return!t||"object"!==Ro(t)&&"function"!=typeof t?Uo(e):t}function Uo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Go(e){return Go=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Go(e)}function $o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Yo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ho(e,t)}(i,pt);var t,r,n,o=Wo(i);function i(){var e;Fo(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return $o(Uo(e=o.call.apply(o,[this].concat(r))),"priority",90),$o(Uo(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r,n){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+n.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return $t(Qt(t.length,e),o);case"co":return $t(r.ordinalNumber(e,{unit:"day"}),o);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,r,n){return(e=go(e,r,n)).setUTCHours(0,0,0,0),e}}],r&&qo(t.prototype,r),n&&qo(t,n),i}();function Zo(e){return Zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zo(e)}function Xo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Jo(e,t){return Jo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jo(e,t)}function Ko(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ri(e);if(t){var o=ri(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ei(this,r)}}function ei(e,t){return!t||"object"!==Zo(t)&&"function"!=typeof t?ti(e):t}function ti(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ri(e){return ri=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ri(e)}function ni(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var oi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jo(e,t)}(i,pt);var t,r,n,o=Ko(i);function i(){var e;Xo(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ni(ti(e=o.call.apply(o,[this].concat(r))),"priority",90),ni(ti(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){var n=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Qt(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return $t(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n);case"iiiii":return $t(r.day(e,{width:"narrow",context:"formatting"}),n);case"iiiiii":return $t(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n);default:return $t(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,r){return e=function(e,t){z(2,arguments);var r=C(t);r%7==0&&(r-=7);var n=1,o=D(e),i=o.getUTCDay(),a=((r%7+7)%7<n?7:0)+r-i;return o.setUTCDate(o.getUTCDate()+a),o}(e,r),e.setUTCHours(0,0,0,0),e}}],r&&Qo(t.prototype,r),n&&Qo(t,n),i}();function ii(e){return ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ii(e)}function ai(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function li(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ci(e,t){return ci=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ci(e,t)}function si(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=pi(e);if(t){var o=pi(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ui(this,r)}}function ui(e,t){return!t||"object"!==ii(t)&&"function"!=typeof t?fi(e):t}function fi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pi(e){return pi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pi(e)}function di(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var hi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ci(e,t)}(i,pt);var t,r,n,o=si(i);function i(){var e;ai(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return di(fi(e=o.call.apply(o,[this].concat(r))),"priority",80),di(fi(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,r){return e.setUTCHours(Kt(r),0,0,0),e}}],r&&li(t.prototype,r),n&&li(t,n),i}();function mi(e){return mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mi(e)}function yi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function gi(e,t){return gi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gi(e,t)}function bi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=xi(e);if(t){var o=xi(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return wi(this,r)}}function wi(e,t){return!t||"object"!==mi(t)&&"function"!=typeof t?Oi(e):t}function Oi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xi(e){return xi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xi(e)}function ki(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ei=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gi(e,t)}(i,pt);var t,r,n,o=bi(i);function i(){var e;yi(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ki(Oi(e=o.call.apply(o,[this].concat(r))),"priority",80),ki(Oi(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,r){return e.setUTCHours(Kt(r),0,0,0),e}}],r&&vi(t.prototype,r),n&&vi(t,n),i}();function ji(e){return ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ji(e)}function Si(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ti(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Pi(e,t){return Pi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Pi(e,t)}function Ci(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Di(e);if(t){var o=Di(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return zi(this,r)}}function zi(e,t){return!t||"object"!==ji(t)&&"function"!=typeof t?_i(e):t}function _i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Di(e){return Di=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Di(e)}function Li(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ai=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pi(e,t)}(i,pt);var t,r,n,o=Ci(i);function i(){var e;Si(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Li(_i(e=o.call.apply(o,[this].concat(r))),"priority",80),Li(_i(e),"incompatibleTokens",["a","b","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,r){return e.setUTCHours(Kt(r),0,0,0),e}}],r&&Ti(t.prototype,r),n&&Ti(t,n),i}();function Ni(e){return Ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ni(e)}function Mi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ii(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Bi(e,t){return Bi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Bi(e,t)}function Ri(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Hi(e);if(t){var o=Hi(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Fi(this,r)}}function Fi(e,t){return!t||"object"!==Ni(t)&&"function"!=typeof t?qi(e):t}function qi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hi(e){return Hi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hi(e)}function Wi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Vi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bi(e,t)}(i,pt);var t,r,n,o=Ri(i);function i(){var e;Mi(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Wi(qi(e=o.call.apply(o,[this].concat(r))),"priority",70),Wi(qi(e),"incompatibleTokens",["H","K","k","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"h":return Yt(zt,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,r){var n=e.getUTCHours()>=12;return n&&r<12?e.setUTCHours(r+12,0,0,0):n||12!==r?e.setUTCHours(r,0,0,0):e.setUTCHours(0,0,0,0),e}}],r&&Ii(t.prototype,r),n&&Ii(t,n),i}();function Ui(e){return Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ui(e)}function Gi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Yi(e,t){return Yi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yi(e,t)}function Zi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ji(e);if(t){var o=Ji(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Xi(this,r)}}function Xi(e,t){return!t||"object"!==Ui(t)&&"function"!=typeof t?Qi(e):t}function Qi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ji(e){return Ji=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ji(e)}function Ki(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ea=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yi(e,t)}(i,pt);var t,r,n,o=Zi(i);function i(){var e;Gi(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ki(Qi(e=o.call.apply(o,[this].concat(r))),"priority",70),Ki(Qi(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"H":return Yt(Tt,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,r){return e.setUTCHours(r,0,0,0),e}}],r&&$i(t.prototype,r),n&&$i(t,n),i}();function ta(e){return ta="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ta(e)}function ra(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function na(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function oa(e,t){return oa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},oa(e,t)}function ia(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ca(e);if(t){var o=ca(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return aa(this,r)}}function aa(e,t){return!t||"object"!==ta(t)&&"function"!=typeof t?la(e):t}function la(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ca(e){return ca=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ca(e)}function sa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ua=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oa(e,t)}(i,pt);var t,r,n,o=ia(i);function i(){var e;ra(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return sa(la(e=o.call.apply(o,[this].concat(r))),"priority",70),sa(la(e),"incompatibleTokens",["h","H","k","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"K":return Yt(Ct,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,r){return e.getUTCHours()>=12&&r<12?e.setUTCHours(r+12,0,0,0):e.setUTCHours(r,0,0,0),e}}],r&&na(t.prototype,r),n&&na(t,n),i}();function fa(e){return fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fa(e)}function pa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function da(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ha(e,t){return ha=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ha(e,t)}function ma(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ga(e);if(t){var o=ga(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ya(this,r)}}function ya(e,t){return!t||"object"!==fa(t)&&"function"!=typeof t?va(e):t}function va(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ga(e){return ga=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ga(e)}function ba(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ha(e,t)}(i,pt);var t,r,n,o=ma(i);function i(){var e;pa(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ba(va(e=o.call.apply(o,[this].concat(r))),"priority",70),ba(va(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"k":return Yt(Pt,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,r){var n=r<=24?r%24:r;return e.setUTCHours(n,0,0,0),e}}],r&&da(t.prototype,r),n&&da(t,n),i}();function Oa(e){return Oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oa(e)}function xa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ka(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ea(e,t){return Ea=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ea(e,t)}function ja(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Pa(e);if(t){var o=Pa(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Sa(this,r)}}function Sa(e,t){return!t||"object"!==Oa(t)&&"function"!=typeof t?Ta(e):t}function Ta(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pa(e){return Pa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pa(e)}function Ca(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var za=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ea(e,t)}(i,pt);var t,r,n,o=ja(i);function i(){var e;xa(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ca(Ta(e=o.call.apply(o,[this].concat(r))),"priority",60),Ca(Ta(e),"incompatibleTokens",["t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"m":return Yt(_t,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,r){return e.setUTCMinutes(r,0,0),e}}],r&&ka(t.prototype,r),n&&ka(t,n),i}();function _a(e){return _a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_a(e)}function Da(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function La(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Aa(e,t){return Aa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Aa(e,t)}function Na(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ba(e);if(t){var o=Ba(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ma(this,r)}}function Ma(e,t){return!t||"object"!==_a(t)&&"function"!=typeof t?Ia(e):t}function Ia(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ba(e){return Ba=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ba(e)}function Ra(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Fa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Aa(e,t)}(i,pt);var t,r,n,o=Na(i);function i(){var e;Da(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ra(Ia(e=o.call.apply(o,[this].concat(r))),"priority",50),Ra(Ia(e),"incompatibleTokens",["t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"s":return Yt(Dt,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,r){return e.setUTCSeconds(r,0),e}}],r&&La(t.prototype,r),n&&La(t,n),i}();function qa(e){return qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qa(e)}function Ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wa(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Va(e,t){return Va=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Va(e,t)}function Ua(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ya(e);if(t){var o=Ya(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ga(this,r)}}function Ga(e,t){return!t||"object"!==qa(t)&&"function"!=typeof t?$a(e):t}function $a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ya(e){return Ya=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ya(e)}function Za(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Va(e,t)}(i,pt);var t,r,n,o=Ua(i);function i(){var e;Ha(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Za($a(e=o.call.apply(o,[this].concat(r))),"priority",30),Za($a(e),"incompatibleTokens",["t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t){return $t(Qt(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,r){return e.setUTCMilliseconds(r),e}}],r&&Wa(t.prototype,r),n&&Wa(t,n),i}();function Qa(e){return Qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qa(e)}function Ja(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ka(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function el(e,t){return el=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},el(e,t)}function tl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ol(e);if(t){var o=ol(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return rl(this,r)}}function rl(e,t){return!t||"object"!==Qa(t)&&"function"!=typeof t?nl(e):t}function nl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ol(e){return ol=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ol(e)}function il(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var al=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&el(e,t)}(i,pt);var t,r,n,o=tl(i);function i(){var e;Ja(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return il(nl(e=o.call.apply(o,[this].concat(r))),"priority",10),il(nl(e),"incompatibleTokens",["t","T","x"]),e}return t=i,r=[{key:"parse",value:function(e,t){switch(t){case"X":return Zt(Ht,e);case"XX":return Zt(Wt,e);case"XXXX":return Zt(Vt,e);case"XXXXX":return Zt(Gt,e);default:return Zt(Ut,e)}}},{key:"set",value:function(e,t,r){return t.timestampIsSet?e:new Date(e.getTime()-r)}}],r&&Ka(t.prototype,r),n&&Ka(t,n),i}();function ll(e){return ll="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ll(e)}function cl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ul(e,t){return ul=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ul(e,t)}function fl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=hl(e);if(t){var o=hl(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return pl(this,r)}}function pl(e,t){return!t||"object"!==ll(t)&&"function"!=typeof t?dl(e):t}function dl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hl(e){return hl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hl(e)}function ml(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var yl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ul(e,t)}(i,pt);var t,r,n,o=fl(i);function i(){var e;cl(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ml(dl(e=o.call.apply(o,[this].concat(r))),"priority",10),ml(dl(e),"incompatibleTokens",["t","T","X"]),e}return t=i,r=[{key:"parse",value:function(e,t){switch(t){case"x":return Zt(Ht,e);case"xx":return Zt(Wt,e);case"xxxx":return Zt(Vt,e);case"xxxxx":return Zt(Gt,e);default:return Zt(Ut,e)}}},{key:"set",value:function(e,t,r){return t.timestampIsSet?e:new Date(e.getTime()-r)}}],r&&sl(t.prototype,r),n&&sl(t,n),i}();function vl(e){return vl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vl(e)}function gl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function wl(e,t){return wl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wl(e,t)}function Ol(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=El(e);if(t){var o=El(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return xl(this,r)}}function xl(e,t){return!t||"object"!==vl(t)&&"function"!=typeof t?kl(e):t}function kl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function El(e){return El=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},El(e)}function jl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Sl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wl(e,t)}(i,pt);var t,r,n,o=Ol(i);function i(){var e;gl(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return jl(kl(e=o.call.apply(o,[this].concat(r))),"priority",40),jl(kl(e),"incompatibleTokens","*"),e}return t=i,(r=[{key:"parse",value:function(e){return Xt(e)}},{key:"set",value:function(e,t,r){return[new Date(1e3*r),{timestampIsSet:!0}]}}])&&bl(t.prototype,r),n&&bl(t,n),i}();function Tl(e){return Tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tl(e)}function Pl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function zl(e,t){return zl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zl(e,t)}function _l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Al(e);if(t){var o=Al(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Dl(this,r)}}function Dl(e,t){return!t||"object"!==Tl(t)&&"function"!=typeof t?Ll(e):t}function Ll(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Al(e){return Al=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Al(e)}function Nl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ml=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zl(e,t)}(i,pt);var t,r,n,o=_l(i);function i(){var e;Pl(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Nl(Ll(e=o.call.apply(o,[this].concat(r))),"priority",20),Nl(Ll(e),"incompatibleTokens","*"),e}return t=i,(r=[{key:"parse",value:function(e){return Xt(e)}},{key:"set",value:function(e,t,r){return[new Date(r),{timestampIsSet:!0}]}}])&&Cl(t.prototype,r),n&&Cl(t,n),i}();function Il(e,t){z(2,arguments);var r=C(t);return L(e,-r)}function Bl(e,t){var r;z(1,arguments);var n=C(null!==(r=null==t?void 0:t.additionalDigits)&&void 0!==r?r:2);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,i=Wl(e);if(i.date){var a=Vl(i.date,n);o=Ul(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var l,c=o.getTime(),s=0;if(i.time&&(s=$l(i.time),isNaN(s)))return new Date(NaN);if(!i.timezone){var u=new Date(c+s),f=new Date(0);return f.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),f.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),f}return l=Zl(i.timezone),isNaN(l)?new Date(NaN):new Date(c+s+l)}new xt,new fr,new Or,new _r,new qr,new Qr,new cn,new gn,new Pn,new Bn,new Yn,new ao,new vo,new Po,new Bo,new Yo,new oi,new hi,new Ei,new Ai,new Vi,new ea,new ua,new wa,new za,new Fa,new Xa,new al,new yl,new Sl,new Ml;var Rl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Fl=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ql=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Hl=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Wl(e){var t,r={},n=e.split(Rl.dateTimeDelimiter);if(n.length>2)return r;if(/:/.test(n[0])?t=n[0]:(r.date=n[0],t=n[1],Rl.timeZoneDelimiter.test(r.date)&&(r.date=e.split(Rl.timeZoneDelimiter)[0],t=e.substr(r.date.length,e.length))),t){var o=Rl.timezone.exec(t);o?(r.time=t.replace(o[1],""),r.timezone=o[1]):r.time=t}return r}function Vl(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var o=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((n[1]||n[2]).length)}}function Ul(e,t){if(null===t)return new Date(NaN);var r=e.match(Fl);if(!r)return new Date(NaN);var n=!!r[4],o=Gl(r[1]),i=Gl(r[2])-1,a=Gl(r[3]),l=Gl(r[4]),c=Gl(r[5])-1;if(n)return function(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}(0,l,c)?function(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var o=n.getUTCDay()||7,i=7*(t-1)+r+1-o;return n.setUTCDate(n.getUTCDate()+i),n}(t,l,c):new Date(NaN);var s=new Date(0);return function(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(Xl[t]||(Ql(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(Ql(e)?366:365)}(t,o)?(s.setUTCFullYear(t,i,Math.max(o,a)),s):new Date(NaN)}function Gl(e){return e?parseInt(e):1}function $l(e){var t=e.match(ql);if(!t)return NaN;var r=Yl(t[1]),n=Yl(t[2]),o=Yl(t[3]);return function(e,t,r){if(24===e)return 0===t&&0===r;return r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}(r,n,o)?36e5*r+6e4*n+1e3*o:NaN}function Yl(e){return e&&parseFloat(e.replace(",","."))||0}function Zl(e){if("Z"===e)return 0;var t=e.match(Hl);if(!t)return 0;var r="+"===t[1]?-1:1,n=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?r*(36e5*n+6e4*o):NaN}var Xl=[31,null,31,30,31,30,31,31,30,31,30,31];function Ql(e){return e%400==0||e%4==0&&e%100!=0}function Jl(e,t){z(2,arguments);var r=C(t);return A(e,-r)}function Kl(e){return Kl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kl(e)}function ec(e,t){if(z(2,arguments),!t||"object"!==Kl(t))return new Date(NaN);var r=t.years?C(t.years):0,n=t.months?C(t.months):0,o=t.weeks?C(t.weeks):0,i=t.days?C(t.days):0,a=t.hours?C(t.hours):0,l=t.minutes?C(t.minutes):0,c=t.seconds?C(t.seconds):0,s=Jl(e,n+12*r),u=Il(s,i+7*o),f=l+60*a,p=c+60*f,d=1e3*p,h=new Date(u.getTime()-d);return h}var tc={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},rc={date:k({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:k({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:k({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},nc={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},oc={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},ic={code:"es",formatDistance:function(e,t,r){var n,o=tc[e];return n="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"en "+n:"hace "+n:n},formatLong:rc,formatRelative:function(e,t,r,n){return 1!==t.getUTCHours()?oc[e]:nc[e]},localize:{ordinalNumber:function(e,t){return Number(e)+"º"},era:E({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:E({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:E({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:E({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},defaultWidth:"wide"}),dayPeriod:E({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:P({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:j({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:j({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:j({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:j({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:j({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}};function ac(t){var r=[],n=f.getCurrentLanguage().toLowerCase().startsWith("es")?ic:qe,o=Array.from(Array(7).keys()),i=t.weekStartsOn&&t.weekStartsOn<7?t.weekStartsOn:0;if(i)for(;o[0]!==i;)o.push(o.shift());var a=o.map((function(e){var t;return null===(t=n.localize)||void 0===t?void 0:t.day(e,{width:"narrow"})}));return function(){var e=new Date(t.year,t.month).getDay()-i;e<0&&(e=7+e);for(var n,o,a=[],l=1,c=0;c<6;c++){for(var s={days:[]},u=0;u<7;u++)if(0===c&&u<e)s.days[u]={day:void 0};else{if(l>(n=t.month,o=t.year,32-new Date(o,n,32).getDate()))break;s.days[u]={day:l},l++}a.push(s)}r=a}(),e.createElement("div",{className:"mdhui-calendar"},e.createElement("table",{cellPadding:"0",cellSpacing:"0"},e.createElement("thead",null,e.createElement("tr",null,a.map((function(t,r){return e.createElement("th",{key:r},t)})))),e.createElement("tbody",null,r.map((function(r,n){return e.createElement("tr",{key:n},r.days.map((function(r,n){return e.createElement("td",{key:n},t.dayRenderer(t.year,t.month,r.day))})))})))))}y(".mdhui-calendar {\n padding-bottom: 16px;\n}\n\n.mdhui-calendar table {\n width: 100%;\n font-size: 14px;\n}\n\n.mdhui-calendar table tr th {\n font-size: 14px;\n font-weight: bold;\n color: var(--mdhui-text-color-2);\n padding-bottom: 16px;\n padding-top: 16px;\n border-bottom: solid 1px var(--mdhui-border-color-0);\n text-align: center;\n}\n\n.mdhui-calendar table tr td {\n padding-top: 16px;\n vertical-align: top;\n text-align: center;\n height: 50px;\n padding-bottom: 0;\n position: relative;\n}");function lc(t){return t.children?e.createElement("div",{className:(t.allowOverflow?"allow-overflow ":"")+(t.className||"")+" mdhui-card"},t.children):null}y(".mdhui-card {\n border-radius: 5px;\n margin: 16px;\n background: var(--mdhui-background-color-0);\n box-shadow: var(--mdhui-box-shadow-0);\n animation: var(--mdhui-fadein-animation);\n -moz-animation: var(--mdhui-fadein-animation);\n -webkit-animation: var(--mdhui-fadein-animation);\n position: relative;\n overflow: hidden;\n\n}\n\n.mdhui-card:empty {\n display: none;\n}\n\n.mdhui-card.allow-overflow {\n overflow: visible;\n display: flow-root;\n}");function cc(t){return e.createElement("div",{className:"mdhui-card-title"},t.title,t.onDetailClick&&t.detailLinkText&&e.createElement("a",{className:"detail-link",onClick:function(){return t.onDetailClick?t.onDetailClick():null}},t.detailLinkText))}y(".mdhui-card-title\n{\n padding: 16px;\n font-weight: bold;\n padding-bottom: 0;\n position: relative;\n}\n\n .mdhui-card-title .detail-link\n {\n position: absolute;\n right: 16px;\n bottom: 0;\n font-size: .88em;\n cursor: pointer;\n }\n");var sc={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="chevron-left",r=[9001],n="f053",o="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z";e.definition={prefix:"fas",iconName:t,icon:[320,512,r,n,o]},e.faChevronLeft=e.definition,e.prefix="fas",e.iconName=t,e.width=320,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(sc);function uc(t){var r,n,o="Month"==t.intervalType?{months:1}:{weeks:1},i=M(t.intervalStart,o),a=!1,l=new Date;return t.intervalStart<=l&&l<i&&(a=!0),e.createElement("div",{className:"mdhui-date-range-navigator"+("rounded"==t.variant?" mdhui-date-range-navigator-rounded":"")},e.createElement("button",{title:"Previous",className:"navigator-button navigate-previous",onClick:function(){return e=ec(t.intervalStart,o),void t.onIntervalChange(e,M(e,o));var e}},e.createElement(b,{icon:sc.faChevronLeft})),"Month"==t.intervalType&&1==t.intervalStart.getDate()&&e.createElement("div",null,(n=f.getCurrentLanguage().toLowerCase().startsWith("es")?ic:qe,(r=$e(new Date(t.intervalStart.getFullYear(),t.intervalStart.getMonth(),1,0,0,0,0),"MMMM",{locale:n})).charAt(0).toUpperCase()+r.slice(1))," ",t.intervalStart.getFullYear()),("Week"==t.intervalType||1!=t.intervalStart.getDate())&&e.createElement("div",null,$e(t.intervalStart,"MM/dd/yyyy")," - ",$e(ec(i,{days:1}),"MM/dd/yyyy")),!a&&e.createElement("button",{title:"Next",className:"navigator-button navigate-next",onClick:function(){return e=M(t.intervalStart,o),void t.onIntervalChange(e,M(e,o));var e}},e.createElement(b,{icon:m.faChevronRight})))}y(".mdhui-card .mdhui-date-range-navigator:first-child {\n border-radius: 5px 5px 0px 0px;\n}\n\n.mdhui-date-range-navigator {\n padding: 16px;\n text-align: center;\n font-weight: bold;\n border-bottom: solid 1px var(--mdhui-border-color-0);\n position: sticky;\n position: -webkit-sticky;\n top: 0;\n background: var(--mdhui-background-color-0);\n z-index: 1;\n}\n\n.mdhui-date-range-navigator>.navigator-button {\n position: absolute;\n top: 0;\n padding: 16px;\n color: var(--mdhui-color-primary);\n height: 100%;\n}\n\n.mdhui-date-range-navigator>.navigate-previous {\n left: 0;\n}\n\n.mdhui-date-range-navigator>.navigate-next {\n right: 0;\n}\n\n.mdhui-date-range-navigator-rounded {\n padding: 0;\n line-height: 40px;\n border-radius: 32px;\n background: var(--mdhui-background-color-2);\n margin: 16px;\n position: relative;\n border: none;\n}\n\n.mdhui-date-range-navigator-rounded>.navigator-button {\n padding: 0;\n width: 36px;\n height: 36px;\n background: var(--mdhui-background-color-0);\n color: var(--mdhui-color-primary);\n border-radius: 31px;\n cursor: pointer;\n position: absolute;\n top: 2px;\n line-height: 36px;\n display: flex;\n align-items: center;\n}\n\n.mdhui-date-range-navigator-rounded .navigator-button.navigate-previous {\n left: 2px;\n}\n\n.mdhui-date-range-navigator-rounded .navigator-button.navigate-next {\n right: 2px;\n}\n\n.mdhui-date-range-navigator-rounded .navigator-button svg {\n margin: 0 auto;\n}\n\n.mdhui-navigation-bar .mdhui-date-range-navigator-rounded {\n margin: 0;\n}");function fc(t){for(var r=100/t.primaryColors.length,n="conic-gradient(",o=0,i=0;i<t.primaryColors.length;i++)n=n+t.primaryColors[i]+" "+o+"%, ",o+=r,n=n+t.primaryColors[i]+" "+o+"%",i!=t.primaryColors.length-1&&(n+=", ");var a={background:n+=")"};return e.createElement("div",{className:"mdhui-day-tracker-symbol"},e.createElement("div",{className:"day-circle",style:a},t.secondaryColors.slice(0,3).map((function(t,r){return e.createElement("div",{key:r,className:"secondary-color",style:{background:t}})})),t.secondaryColors.length>3&&e.createElement("div",{className:"more-items"},"+")))}y(".mdhui-day-tracker-symbol\n{\n padding: 10px;\n}\n\n .mdhui-day-tracker-symbol .day-circle\n {\n font-size: 12px;\n height: 30px;\n width: 30px;\n display: inline-block;\n border-radius: 17px;\n line-height: 30px;\n background: var(--mdhui-background-color-2);\n position: relative;\n }\n\n .mdhui-day-tracker-symbol .day-circle .secondary-color\n {\n position: absolute;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n\n .mdhui-day-tracker-symbol .day-circle .secondary-color:first-child\n {\n left: 36.6%;\n top: -33.33%;\n }\n\n .mdhui-day-tracker-symbol .day-circle .secondary-color:nth-child(2)\n {\n left: 0%;\n top: -23.333%;\n }\n\n .mdhui-day-tracker-symbol .day-circle .secondary-color:nth-child(3)\n {\n left: 73%;\n top: -23.333%;\n }\n\n .mdhui-day-tracker-symbol .day-circle .more-items\n {\n position: absolute;\n left: 30px;\n top: 0px;\n font-size: 10px;\n height: 8px;\n width: 7px;\n line-height: 6px;\n }\n");y(".mdhui-face\n{\n width: 40px;\n height: 40px;\n display: inline-block;\n border-radius: 50%;\n overflow: hidden;\n position: relative;\n}\n\n .mdhui-face img\n {\n width: 100%;\n height: 100%;\n opacity: .7;\n }\n\n .mdhui-face.mdhui-face-selected\n {\n background: #eec04c;\n }");var pc=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var r=64===e.charCodeAt(0)&&105===e.charCodeAt(1);r&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!r}if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),dc="-ms-",hc="-moz-",mc="-webkit-",yc=Math.abs,vc=String.fromCharCode,gc=Object.assign;function bc(e){return e.trim()}function wc(e,t,r){return e.replace(t,r)}function Oc(e,t){return e.indexOf(t)}function xc(e,t){return 0|e.charCodeAt(t)}function kc(e,t,r){return e.slice(t,r)}function Ec(e){return e.length}function jc(e){return e.length}function Sc(e,t){return t.push(e),e}var Tc=1,Pc=1,Cc=0,zc=0,_c=0,Dc="";function Lc(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Tc,column:Pc,length:a,return:""}}function Ac(e,t){return gc(Lc("",null,null,"",null,null,0),e,{length:-e.length},t)}function Nc(){return _c=zc>0?xc(Dc,--zc):0,Pc--,10===_c&&(Pc=1,Tc--),_c}function Mc(){return _c=zc<Cc?xc(Dc,zc++):0,Pc++,10===_c&&(Pc=1,Tc++),_c}function Ic(){return xc(Dc,zc)}function Bc(){return zc}function Rc(e,t){return kc(Dc,e,t)}function Fc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function qc(e){return Tc=Pc=1,Cc=Ec(Dc=e),zc=0,[]}function Hc(e){return Dc="",e}function Wc(e){return bc(Rc(zc-1,Gc(91===e?e+2:40===e?e+1:e)))}function Vc(e){for(;(_c=Ic())&&_c<33;)Mc();return Fc(e)>2||Fc(_c)>3?"":" "}function Uc(e,t){for(;--t&&Mc()&&!(_c<48||_c>102||_c>57&&_c<65||_c>70&&_c<97););return Rc(e,Bc()+(t<6&&32==Ic()&&32==Mc()))}function Gc(e){for(;Mc();)switch(_c){case e:return zc;case 34:case 39:34!==e&&39!==e&&Gc(_c);break;case 40:41===e&&Gc(e);break;case 92:Mc()}return zc}function $c(e,t){for(;Mc()&&e+_c!==57&&(e+_c!==84||47!==Ic()););return"/*"+Rc(t,zc-1)+"*"+vc(47===e?e:Mc())}function Yc(e){for(;!Fc(Ic());)Mc();return Rc(e,zc)}function Zc(e){return Hc(Xc("",null,null,null,[""],e=qc(e),0,[0],e))}function Xc(e,t,r,n,o,i,a,l,c){for(var s=0,u=0,f=a,p=0,d=0,h=0,m=1,y=1,v=1,g=0,b="",w=o,O=i,x=n,k=b;y;)switch(h=g,g=Mc()){case 40:if(108!=h&&58==xc(k,f-1)){-1!=Oc(k+=wc(Wc(g),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=Wc(g);break;case 9:case 10:case 13:case 32:k+=Vc(h);break;case 92:k+=Uc(Bc()-1,7);continue;case 47:switch(Ic()){case 42:case 47:Sc(Jc($c(Mc(),Bc()),t,r),c);break;default:k+="/"}break;case 123*m:l[s++]=Ec(k)*v;case 125*m:case 59:case 0:switch(g){case 0:case 125:y=0;case 59+u:d>0&&Ec(k)-f&&Sc(d>32?Kc(k+";",n,r,f-1):Kc(wc(k," ","")+";",n,r,f-2),c);break;case 59:k+=";";default:if(Sc(x=Qc(k,t,r,s,u,o,l,b,w=[],O=[],f),i),123===g)if(0===u)Xc(k,t,x,x,w,i,f,l,O);else switch(99===p&&110===xc(k,3)?100:p){case 100:case 109:case 115:Xc(e,x,x,n&&Sc(Qc(e,x,x,0,0,o,l,b,o,w=[],f),O),o,O,f,l,n?w:O);break;default:Xc(k,x,x,x,[""],O,0,l,O)}}s=u=d=0,m=v=1,b=k="",f=a;break;case 58:f=1+Ec(k),d=h;default:if(m<1)if(123==g)--m;else if(125==g&&0==m++&&125==Nc())continue;switch(k+=vc(g),g*m){case 38:v=u>0?1:(k+="\f",-1);break;case 44:l[s++]=(Ec(k)-1)*v,v=1;break;case 64:45===Ic()&&(k+=Wc(Mc())),p=Ic(),u=f=Ec(b=k+=Yc(Bc())),g++;break;case 45:45===h&&2==Ec(k)&&(m=0)}}return i}function Qc(e,t,r,n,o,i,a,l,c,s,u){for(var f=o-1,p=0===o?i:[""],d=jc(p),h=0,m=0,y=0;h<n;++h)for(var v=0,g=kc(e,f+1,f=yc(m=a[h])),b=e;v<d;++v)(b=bc(m>0?p[v]+" "+g:wc(g,/&\f/g,p[v])))&&(c[y++]=b);return Lc(e,t,r,0===o?"rule":l,c,s,u)}function Jc(e,t,r){return Lc(e,t,r,"comm",vc(_c),kc(e,2,-2),0)}function Kc(e,t,r,n){return Lc(e,t,r,"decl",kc(e,0,n),kc(e,n+1,-1),n)}function es(e,t){for(var r="",n=jc(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function ts(e,t,r,n){switch(e.type){case"@import":case"decl":return e.return=e.return||e.value;case"comm":return"";case"@keyframes":return e.return=e.value+"{"+es(e.children,n)+"}";case"rule":e.value=e.props.join(",")}return Ec(r=es(e.children,n))?e.return=e.value+"{"+r+"}":""}function rs(e){var t=jc(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}function ns(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var os=function(e,t,r){for(var n=0,o=0;n=o,o=Ic(),38===n&&12===o&&(t[r]=1),!Fc(o);)Mc();return Rc(e,zc)},is=function(e,t){return Hc(function(e,t){var r=-1,n=44;do{switch(Fc(n)){case 0:38===n&&12===Ic()&&(t[r]=1),e[r]+=os(zc-1,t,r);break;case 2:e[r]+=Wc(n);break;case 4:if(44===n){e[++r]=58===Ic()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=vc(n)}}while(n=Mc());return e}(qc(e),t))},as=new WeakMap,ls=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||as.get(r))&&!n){as.set(e,!0);for(var o=[],i=is(t,o),a=r.props,l=0,c=0;l<i.length;l++)for(var s=0;s<a.length;s++,c++)e.props[c]=o[l]?i[l].replace(/&\f/g,a[s]):a[s]+" "+i[l]}}},cs=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},ss=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},us=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},fs=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},ps=function(e,t,r){us(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),fs(e)):function(e,t){for(var r=e-1;r>=0;r--)if(!us(t[r]))return!0;return!1}(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),fs(e)))};function ds(e,t){switch(function(e,t){return 45^xc(e,0)?(((t<<2^xc(e,0))<<2^xc(e,1))<<2^xc(e,2))<<2^xc(e,3):0}(e,t)){case 5103:return mc+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return mc+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return mc+e+hc+e+dc+e+e;case 6828:case 4268:return mc+e+dc+e+e;case 6165:return mc+e+dc+"flex-"+e+e;case 5187:return mc+e+wc(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return mc+e+dc+"flex-item-"+wc(e,/flex-|-self/,"")+e;case 4675:return mc+e+dc+"flex-line-pack"+wc(e,/align-content|flex-|-self/,"")+e;case 5548:return mc+e+dc+wc(e,"shrink","negative")+e;case 5292:return mc+e+dc+wc(e,"basis","preferred-size")+e;case 6060:return mc+"box-"+wc(e,"-grow","")+mc+e+dc+wc(e,"grow","positive")+e;case 4554:return mc+wc(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return wc(wc(wc(e,/(zoom-|grab)/,mc+"$1"),/(image-set)/,mc+"$1"),e,"")+e;case 5495:case 3959:return wc(e,/(image-set\([^]*)/,mc+"$1$`$1");case 4968:return wc(wc(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+mc+e+e;case 4095:case 3583:case 4068:case 2532:return wc(e,/(.+)-inline(.+)/,mc+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ec(e)-1-t>6)switch(xc(e,t+1)){case 109:if(45!==xc(e,t+4))break;case 102:return wc(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+hc+(108==xc(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Oc(e,"stretch")?ds(wc(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==xc(e,t+1))break;case 6444:switch(xc(e,Ec(e)-3-(~Oc(e,"!important")&&10))){case 107:return wc(e,":",":"+mc)+e;case 101:return wc(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+mc+(45===xc(e,14)?"inline-":"")+"box$3$1"+mc+"$2$3$1"+dc+"$2box$3")+e}break;case 5936:switch(xc(e,t+11)){case 114:return mc+e+dc+wc(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return mc+e+dc+wc(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return mc+e+dc+wc(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return mc+e+dc+e+e}return e}var hs,ms,ys,vs="undefined"!=typeof document,gs=vs?void 0:(hs=function(){return ns((function(){var e={};return function(t){return e[t]}}))},ms=new WeakMap,function(e){if(ms.has(e))return ms.get(e);var t=hs(e);return ms.set(e,t),t}),bs=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=ds(e.value,e.length);break;case"@keyframes":return es([Ac(e,{value:wc(e.value,"@","@"+mc)})],n);case"rule":if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return es([Ac(e,{props:[wc(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return es([Ac(e,{props:[wc(t,/:(plac\w+)/,":-webkit-input-$1")]}),Ac(e,{props:[wc(t,/:(plac\w+)/,":-moz-$1")]}),Ac(e,{props:[wc(t,/:(plac\w+)/,dc+"input-$1")]})],n)}return""}))}}],ws=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(vs&&"css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n=e.stylisPlugins||bs;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,a={},l=[];vs&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)a[t[r]]=!0;l.push(e)})));var c,s=[ls,cs];if("production"!==process.env.NODE_ENV&&s.push(function(e){return function(t,r,n){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent===n[0]?n[0].children:n,a=i.length-1;a>=0;a--){var l=i[a];if(l.line<t.line)break;if(l.column<t.column){if(ss(l))return;break}}o.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return v.compat}}),ps),vs){var u,f=[ts,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?u.insert(e.return):e.value&&"comm"!==e.type&&u.insert(e.value+"{}"))}:(c=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],p=rs(s.concat(n,f));i=function(e,t,r,n){u=r,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(u={insert:function(e){r.insert(e+t.map)}}),es(Zc(e?e+"{"+t.styles+"}":t.styles),p),n&&(v.inserted[t.name]=!0)}}else{var d=[ts],h=rs(s.concat(n,d)),m=gs(n)(t),y=function(e,t){var r=t.name;return void 0===m[r]&&(m[r]=es(Zc(e?e+"{"+t.styles+"}":t.styles),h)),m[r]};i=function(e,t,r,n){var o=t.name,i=y(e,t);return void 0===v.compat?(n&&(v.inserted[o]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?i+t.map:i):n?void(v.inserted[o]=i):i}}var v={key:t,sheet:new pc({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return v.sheet.hydrate(l),v},Os={},xs={};var ks,Es,js={};
1
+ import e,{forwardRef as t,createElement as r,Fragment as n,createContext as o,useContext as i,useRef as a,useLayoutEffect as l,useState as c,useEffect as s,useMemo as u}from"react";import f from"@careevolution/mydatahelps-js";import p from"punycode";var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m={};function y(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="chevron-right",r=[9002],n="f054",o="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z";e.definition={prefix:"fas",iconName:t,icon:[320,512,r,n,o]},e.faChevronRight=e.definition,e.prefix="fas",e.iconName=t,e.width=320,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(m);y(".mdhui-action\n{\n padding: 16px 32px 16px 16px;\n position: relative;\n cursor: pointer;\n background: inherit;\n width: 100%;\n}\n\n .mdhui-action .title\n {\n font-size: 1em;\n font-weight: bold;\n }\n\n .mdhui-action .subtitle\n {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n }\n\n .mdhui-action .indicator\n {\n position: absolute;\n top: calc(50% - 9px);\n right: 16px;\n font-size: 16px;\n color: var(--mdhui-text-color-3);\n }\n");var v=["icon","size","className","title","border","fixedWidth","flip","spin","pulse","inverse","listItem","pull","swapOpacity","rotation","role","symbol"],g={style:{display:"none"}},b=t((function(e,t){var o=e.icon;if(!o)return null;var i=o.icon,a=i[0],l=i[1],c=i[4],s=e.title?Math.random().toString(36).substr(2):void 0,u=function(e,t){var r={};for(var n in e)Object.hasOwnProperty.call(e,n)&&!t.includes(n)&&(r[n]=e[n]);return r}(e,v);u.className=function(e){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}("svg-inline--fa","fa-".concat(e.icon.iconName),"fa-w-".concat(Math.ceil(e.icon.icon[0]/e.icon.icon[1]*16)),e.size&&"fa-".concat(e.size),e.border&&"fa-border",e.fixedWidth&&"fa-fw",e.flip&&"fa-flip-".concat(e.flip),e.spin&&"fa-spin",e.pulse&&"fa-pulse",e.inverse&&"fa-inverse",e.listItem&&"fa-li",e.pull&&"fa-pull-".concat(e.pull),e.swapOpacity&&"fa-swap-opacity",e.rotation&&"fa-rotate-".concat(e.rotation),e.className)}(e),u.xmlns="http://www.w3.org/2000/svg",u["aria-labelledby"]=s,u["aria-hidden"]=!s||void 0,u.focusable=!!s&&void 0,u.ref=t,u.viewBox="0 0 ".concat(a," ").concat(l),u.role=e.role||"img";var f=e.symbol||!1,p=r(n,null,s&&r("title",{id:s},e.title),r("path",{fill:"currentColor",d:c.toString()}));return f?(u.id=!0===f?"".concat(o.prefix,"-").concat(o.iconName):f,r("svg",g,r("symbol",u,p))):r("svg",u,p)}));b.displayName="FontAwesomeSvgIcon";function w(t){var r,n=null!==(r=t.indicatorIcon)&&void 0!==r?r:m.faChevronRight;return e.createElement("button",{className:(t.className||"")+" mdhui-action",onClick:function(){return t.onClick()}},t.title&&e.createElement("div",{className:"title"},t.title),t.subtitle&&e.createElement("div",{className:"subtitle"},t.subtitle),t.children,e.createElement("div",{className:"indicator"},e.createElement(b,{icon:n})))}y(":root, :host {\n --fa-font-solid: normal 900 1em/1 'Font Awesome 6 Solid';\n --fa-font-regular: normal 400 1em/1 'Font Awesome 6 Regular';\n --fa-font-light: normal 300 1em/1 'Font Awesome 6 Light';\n --fa-font-thin: normal 100 1em/1 'Font Awesome 6 Thin';\n --fa-font-duotone: normal 900 1em/1 'Font Awesome 6 Duotone';\n --fa-font-sharp-solid: normal 900 1em/1 'Font Awesome 6 Sharp';\n --fa-font-sharp-regular: normal 400 1em/1 'Font Awesome 6 Sharp';\n --fa-font-sharp-light: normal 300 1em/1 'Font Awesome 6 Sharp';\n --fa-font-brands: normal 400 1em/1 'Font Awesome 6 Brands'; }\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box; }\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -.125em; }\n .svg-inline--fa.fa-2xs {\n vertical-align: 0.1em; }\n .svg-inline--fa.fa-xs {\n vertical-align: 0em; }\n .svg-inline--fa.fa-sm {\n vertical-align: -0.07143em; }\n .svg-inline--fa.fa-lg {\n vertical-align: -0.2em; }\n .svg-inline--fa.fa-xl {\n vertical-align: -0.25em; }\n .svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em; }\n .svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto; }\n .svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto; }\n .svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em; }\n .svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em); }\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0; }\n\n.fa-layers-text, .fa-layers-counter {\n display: inline-block;\n position: absolute;\n text-align: center; }\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -.125em;\n width: 1em; }\n .fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center; }\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center; }\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right; }\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right; }\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left; }\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right; }\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left; }\n\n.fa-1x {\n font-size: 1em; }\n\n.fa-2x {\n font-size: 2em; }\n\n.fa-3x {\n font-size: 3em; }\n\n.fa-4x {\n font-size: 4em; }\n\n.fa-5x {\n font-size: 5em; }\n\n.fa-6x {\n font-size: 6em; }\n\n.fa-7x {\n font-size: 7em; }\n\n.fa-8x {\n font-size: 8em; }\n\n.fa-9x {\n font-size: 9em; }\n\n.fa-10x {\n font-size: 10em; }\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em; }\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.08333em;\n vertical-align: 0.125em; }\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.07143em;\n vertical-align: 0.05357em; }\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em; }\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.04167em;\n vertical-align: -0.125em; }\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em; }\n\n.fa-fw {\n text-align: center;\n width: 1.25em; }\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0; }\n .fa-ul > li {\n position: relative; }\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit; }\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); }\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em); }\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em); }\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out); }\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); }\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); }\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); }\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out); }\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear); }\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear); }\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse; }\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8)); }\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n .fa-bounce,\n .fa-fade,\n .fa-beat-fade,\n .fa-flip,\n .fa-pulse,\n .fa-shake,\n .fa-spin,\n .fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s; } }\n\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1); }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25)); } }\n\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1); }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25)); } }\n\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0); }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0); }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0); } }\n\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0); }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0); }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0); } }\n\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4); } }\n\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4); } }\n\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1); }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125)); } }\n\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1); }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125)); } }\n\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); } }\n\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); } }\n\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg); }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg); }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg); }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg); }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg); }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg); }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg); }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg); }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); } }\n\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg); }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg); }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg); }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg); }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg); }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg); }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg); }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg); }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); } }\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg); }\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg); }\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg); }\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1); }\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1); }\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1); }\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none)); }\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em; }\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto); }\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em; }\n\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em; }\n\n.fa-inverse {\n color: var(--fa-inverse, #fff); }\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0; }\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0; }\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1); }\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4); }\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4); }\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1); }\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black; }\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff); }\n");function O(t){return e.createElement("div",{className:"mdhui-activity-meter "+(t.className||"")},e.createElement("div",{className:"mdhui-activity-meter-label"},t.label),e.createElement("span",{className:"mdhui-activity-meter-value"},e.createElement("span",{style:{color:t.color}},t.icon)," ",t.value),e.createElement("div",{className:"mdhui-activity-meter-meter"},e.createElement("div",{className:"mdhui-activity-meter-fill",style:{width:100*t.fillPercent+"%",backgroundColor:t.color}},e.createElement(Cu,null)),e.createElement("div",{className:"mdhui-activity-meter-average-marker",style:{left:100*t.averageFillPercent+"%"}})),null!=t.message&&e.createElement("div",{style:{color:t.color},className:"mdhui-activity-meter-message"},!t.message&&e.createElement(e.Fragment,null," "),t.message))}y(".mdhui-activity-meter {\n position: relative;\n box-sizing: border-box;\n padding-bottom: 0;\n vertical-align: top;\n}\n\n.mdhui-activity-meter .mdhui-activity-meter-icon {\n position: absolute;\n line-height: 32px;\n text-align: center;\n left: 16px;\n top: calc(50% - 8px);\n color: var(--mdhui-color-primary);\n font-size: 1em;\n}\n\n.mdhui-activity-meter .mdhui-activity-meter-value {\n font-weight: bold;\n margin-bottom: 4px;\n margin-top: 4px;\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mdhui-activity-meter .mdhui-activity-meter-label {\n font-size: .7em;\n color: var(--mdhui-text-color-2);\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-transform: uppercase;\n}\n\n.mdhui-activity-meter .mdhui-activity-meter-meter {\n border-radius: 8px;\n background: var(--mdhui-background-color-1);\n position: relative;\n height: 16px;\n}\n\n.mdhui-activity-meter .mdhui-activity-meter-meter .mdhui-activity-meter-average-marker {\n position: absolute;\n top: -4px;\n bottom: -4px;\n border-left: dashed 1px var(--mdhui-border-color-2);\n}\n\n.mdhui-activity-meter .mdhui-activity-meter-meter .mdhui-activity-meter-fill {\n height: 16px;\n background: var(--mdhui-color-primary);\n position: relative;\n border-radius: 8px;\n}\n\n.mdhui-activity-meter .mdhui-activity-meter-message {\n font-size: .7em;\n margin-top: 4px;\n}");function x(t){var r;return e.createElement("button",{style:{backgroundColor:t.disabled?void 0:t.color},className:"mdhui-button "+(t.className||""),disabled:null!==(r=t.disabled)&&void 0!==r&&r,onClick:function(){return t.onClick()}},t.children)}function k(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}function E(e){return function(t,r){var n;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=r&&r.width?String(r.width):o;n=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,l=null!=r&&r.width?String(r.width):e.defaultWidth;n=e.values[l]||e.values[a]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function j(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,l=i[0],c=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(c)?T(c,(function(e){return e.test(l)})):S(c,(function(e){return e.test(l)}));a=e.valueCallback?e.valueCallback(s):s,a=r.valueCallback?r.valueCallback(a):a;var u=t.slice(l.length);return{value:a,rest:u}}}function S(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function T(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function P(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var o=n[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=r.valueCallback?r.valueCallback(a):a;var l=t.slice(o.length);return{value:a,rest:l}}}function C(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function z(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function D(e){z(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===_(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function L(e,t){z(2,arguments);var r=D(e),n=C(t);return isNaN(n)?new Date(NaN):n?(r.setDate(r.getDate()+n),r):r}function A(e,t){z(2,arguments);var r=D(e),n=C(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var o=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+n+1,0);var a=i.getDate();return o>=a?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function M(e,t){if(z(2,arguments),!t||"object"!==N(t))return new Date(NaN);var r=t.years?C(t.years):0,n=t.months?C(t.months):0,o=t.weeks?C(t.weeks):0,i=t.days?C(t.days):0,a=t.hours?C(t.hours):0,l=t.minutes?C(t.minutes):0,c=t.seconds?C(t.seconds):0,s=D(e),u=n||r?A(s,n+12*r):s,f=i||o?L(u,i+7*o):u,p=l+60*a,d=c+60*p,h=1e3*d,m=new Date(f.getTime()+h);return m}function I(e,t){z(2,arguments);var r=D(e).getTime(),n=C(t);return new Date(r+n)}y(".mdhui-button {\n width: 100%;\n box-sizing: border-box;\n padding: 16px;\n background: var(--mdhui-color-theme);\n font-size: 17px;\n line-height: 17px;\n color: #FFF;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n font-weight: bold;\n text-align: center;\n}\n\n.mdhui-button:disabled {\n color: var(--mdhui-text-color-3);\n background: var(--mdhui-background-color-2);\n cursor: default;\n}");var B={};function R(){return B}function F(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function q(e){z(1,arguments);var t=D(e);return t.setHours(0,0,0,0),t}function H(e,t){z(2,arguments);var r=q(e),n=q(t),o=r.getTime()-F(r),i=n.getTime()-F(n);return Math.round((o-i)/864e5)}function W(e,t){z(2,arguments);var r=D(e),n=D(t),o=r.getTime()-n.getTime();return o<0?-1:o>0?1:o}function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}function U(e){return z(1,arguments),e instanceof Date||"object"===V(e)&&"[object Date]"===Object.prototype.toString.call(e)}function G(e){if(z(1,arguments),!U(e)&&"number"!=typeof e)return!1;var t=D(e);return!isNaN(Number(t))}function $(e,t){z(2,arguments);var r=D(e),n=D(t),o=r.getFullYear()-n.getFullYear(),i=r.getMonth()-n.getMonth();return 12*o+i}function Y(e,t){return z(2,arguments),D(e).getTime()-D(t).getTime()}var Z={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function X(e){return e?Z[e]:Z.trunc}function Q(e){z(1,arguments);var t=D(e);return t.setHours(23,59,59,999),t}function J(e){z(1,arguments);var t=D(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function K(e){z(1,arguments);var t=D(e);return Q(t).getTime()===J(t).getTime()}function ee(e,t){z(2,arguments);var r,n=D(e),o=D(t),i=W(n,o),a=Math.abs($(n,o));if(a<1)r=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*a);var l=W(n,o)===-i;K(D(e))&&1===a&&1===W(e,o)&&(l=!1),r=i*(a-Number(l))}return 0===r?0:r}function te(e,t,r){z(2,arguments);var n=Y(e,t)/1e3;return X(null==r?void 0:r.roundingMethod)(n)}function re(e,t){z(2,arguments);var r=C(t);return I(e,-r)}function ne(e){z(1,arguments);var t=1,r=D(e),n=r.getUTCDay(),o=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-o),r.setUTCHours(0,0,0,0),r}function oe(e){z(1,arguments);var t=D(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var o=ne(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var a=ne(i);return t.getTime()>=o.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function ie(e){z(1,arguments);var t=oe(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=ne(r);return n}function ae(e){z(1,arguments);var t=D(e),r=ne(t).getTime()-ie(t).getTime();return Math.round(r/6048e5)+1}function le(e,t){var r,n,o,i,a,l,c,s;z(1,arguments);var u=R(),f=C(null!==(r=null!==(n=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==n?n:null===(c=u.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==r?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=D(e),d=p.getUTCDay(),h=(d<f?7:0)+d-f;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function ce(e,t){var r,n,o,i,a,l,c,s;z(1,arguments);var u=D(e),f=u.getUTCFullYear(),p=R(),d=C(null!==(r=null!==(n=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==n?n:null===(c=p.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==r?r:1);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,d),h.setUTCHours(0,0,0,0);var m=le(h,t),y=new Date(0);y.setUTCFullYear(f,0,d),y.setUTCHours(0,0,0,0);var v=le(y,t);return u.getTime()>=m.getTime()?f+1:u.getTime()>=v.getTime()?f:f-1}function se(e,t){var r,n,o,i,a,l,c,s;z(1,arguments);var u=R(),f=C(null!==(r=null!==(n=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==n?n:null===(c=u.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==r?r:1),p=ce(e,t),d=new Date(0);d.setUTCFullYear(p,0,f),d.setUTCHours(0,0,0,0);var h=le(d,t);return h}function ue(e,t){z(1,arguments);var r=D(e),n=le(r,t).getTime()-se(r,t).getTime();return Math.round(n/6048e5)+1}function fe(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var pe=function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return fe("yy"===t?n%100:n,t.length)},de=function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):fe(r+1,2)},he=function(e,t){return fe(e.getUTCDate(),t.length)},me=function(e,t){return fe(e.getUTCHours()%12||12,t.length)},ye=function(e,t){return fe(e.getUTCHours(),t.length)},ve=function(e,t){return fe(e.getUTCMinutes(),t.length)},ge=function(e,t){return fe(e.getUTCSeconds(),t.length)},be=function(e,t){var r=t.length,n=e.getUTCMilliseconds();return fe(Math.floor(n*Math.pow(10,r-3)),t.length)},we="midnight",Oe="noon",xe="morning",ke="afternoon",Ee="evening",je="night",Se={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return pe(e,t)},Y:function(e,t,r,n){var o=ce(e,n),i=o>0?o:1-o;return"YY"===t?fe(i%100,2):"Yo"===t?r.ordinalNumber(i,{unit:"year"}):fe(i,t.length)},R:function(e,t){return fe(oe(e),t.length)},u:function(e,t){return fe(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return fe(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return fe(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return de(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return fe(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var o=ue(e,n);return"wo"===t?r.ordinalNumber(o,{unit:"week"}):fe(o,t.length)},I:function(e,t,r){var n=ae(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):fe(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):he(e,t)},D:function(e,t,r){var n=function(e){z(1,arguments);var t=D(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),o=r-n;return Math.floor(o/864e5)+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):fe(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var o=e.getUTCDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return fe(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var o=e.getUTCDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return fe(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),o=0===n?7:n;switch(t){case"i":return String(o);case"ii":return fe(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,o=e.getUTCHours();switch(n=12===o?Oe:0===o?we:o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,o=e.getUTCHours();switch(n=o>=17?Ee:o>=12?ke:o>=4?xe:je,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return me(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ye(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):fe(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):fe(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ve(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ge(e,t)},S:function(e,t){return be(e,t)},X:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return Pe(o);case"XXXX":case"XX":return Ce(o);default:return Ce(o,":")}},x:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return Pe(o);case"xxxx":case"xx":return Ce(o);default:return Ce(o,":")}},O:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Te(o,":");default:return"GMT"+Ce(o,":")}},z:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Te(o,":");default:return"GMT"+Ce(o,":")}},t:function(e,t,r,n){var o=n._originalDate||e;return fe(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,r,n){return fe((n._originalDate||e).getTime(),t.length)}};function Te(e,t){var r=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),i=n%60;if(0===i)return r+String(o);var a=t||"";return r+String(o)+a+fe(i,2)}function Pe(e,t){return e%60==0?(e>0?"-":"+")+fe(Math.abs(e)/60,2):Ce(e,t)}function Ce(e,t){var r=t||"",n=e>0?"-":"+",o=Math.abs(e);return n+fe(Math.floor(o/60),2)+r+fe(o%60,2)}var ze=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},_e=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},De={p:_e,P:function(e,t){var r,n=e.match(/(P+)(p+)?/)||[],o=n[1],i=n[2];if(!i)return ze(e,t);switch(o){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",ze(o,t)).replace("{{time}}",_e(i,t))}},Le=["D","DD"],Ae=["YY","YYYY"];function Ne(e){return-1!==Le.indexOf(e)}function Me(e){return-1!==Ae.indexOf(e)}function Ie(e,t,r){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Be={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Re={date:k({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:k({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:k({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Fe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qe={code:"en-US",formatDistance:function(e,t,r){var n,o=Be[e];return n="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:Re,formatRelative:function(e,t,r,n){return Fe[e]},localize:{ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:E({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:E({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:E({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:E({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:E({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"})},match:{ordinalNumber:P({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:j({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:j({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(e){return e+1}}),month:j({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:j({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:j({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"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},He=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,We=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ve=/^'([^]*?)'?$/,Ue=/''/g,Ge=/[a-zA-Z]/;function $e(e,t,r){var n,o,i,a,l,c,s,u,f,p,d,h,m,y,v,g,b,w;z(2,arguments);var O=String(t),x=R(),k=null!==(n=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:x.locale)&&void 0!==n?n:qe,E=C(null!==(i=null!==(a=null!==(l=null!==(c=null==r?void 0:r.firstWeekContainsDate)&&void 0!==c?c:null==r||null===(s=r.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==l?l:x.firstWeekContainsDate)&&void 0!==a?a:null===(f=x.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=C(null!==(d=null!==(h=null!==(m=null!==(y=null==r?void 0:r.weekStartsOn)&&void 0!==y?y:null==r||null===(v=r.locale)||void 0===v||null===(g=v.options)||void 0===g?void 0:g.weekStartsOn)&&void 0!==m?m:x.weekStartsOn)&&void 0!==h?h:null===(b=x.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==d?d:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var S=D(e);if(!G(S))throw new RangeError("Invalid time value");var T=F(S),P=re(S,T),_={firstWeekContainsDate:E,weekStartsOn:j,locale:k,_originalDate:S},L=O.match(We).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,De[t])(e,k.formatLong):e})).join("").match(He).map((function(n){if("''"===n)return"'";var o=n[0];if("'"===o)return Ye(n);var i=Se[o];if(i)return null!=r&&r.useAdditionalWeekYearTokens||!Me(n)||Ie(n,t,String(e)),null!=r&&r.useAdditionalDayOfYearTokens||!Ne(n)||Ie(n,t,String(e)),i(P,n,k.localize,_);if(o.match(Ge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return n})).join("");return L}function Ye(e){var t=e.match(Ve);return t?t[1].replace(Ue,"'"):e}function Ze(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Xe(e){return Ze({},e)}function Qe(e,t,r){var n,o;z(2,arguments);var i=R(),a=null!==(n=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:i.locale)&&void 0!==n?n:qe;if(!a.formatDistance)throw new RangeError("locale must contain formatDistance property");var l=W(e,t);if(isNaN(l))throw new RangeError("Invalid time value");var c,s,u=Ze(Xe(r),{addSuffix:Boolean(null==r?void 0:r.addSuffix),comparison:l});l>0?(c=D(t),s=D(e)):(c=D(e),s=D(t));var f,p=te(s,c),d=(F(s)-F(c))/1e3,h=Math.round((p-d)/60);if(h<2)return null!=r&&r.includeSeconds?p<5?a.formatDistance("lessThanXSeconds",5,u):p<10?a.formatDistance("lessThanXSeconds",10,u):p<20?a.formatDistance("lessThanXSeconds",20,u):p<40?a.formatDistance("halfAMinute",0,u):p<60?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",1,u):0===h?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",h,u);if(h<45)return a.formatDistance("xMinutes",h,u);if(h<90)return a.formatDistance("aboutXHours",1,u);if(h<1440){var m=Math.round(h/60);return a.formatDistance("aboutXHours",m,u)}if(h<2520)return a.formatDistance("xDays",1,u);if(h<43200){var y=Math.round(h/1440);return a.formatDistance("xDays",y,u)}if(h<86400)return f=Math.round(h/43200),a.formatDistance("aboutXMonths",f,u);if((f=ee(s,c))<12){var v=Math.round(h/43200);return a.formatDistance("xMonths",v,u)}var g=f%12,b=Math.floor(f/12);return g<3?a.formatDistance("aboutXYears",b,u):g<9?a.formatDistance("overXYears",b,u):a.formatDistance("almostXYears",b+1,u)}function Je(e,t){var r,n;z(1,arguments);var o=D(e);if(isNaN(o.getTime()))throw new RangeError("Invalid time value");var i=String(null!==(r=null==t?void 0:t.format)&&void 0!==r?r:"extended"),a=String(null!==(n=null==t?void 0:t.representation)&&void 0!==n?n:"complete");if("extended"!==i&&"basic"!==i)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==a&&"time"!==a&&"complete"!==a)throw new RangeError("representation must be 'date', 'time', or 'complete'");var l="",c="",s="extended"===i?"-":"",u="extended"===i?":":"";if("time"!==a){var f=fe(o.getDate(),2),p=fe(o.getMonth()+1,2),d=fe(o.getFullYear(),4);l="".concat(d).concat(s).concat(p).concat(s).concat(f)}if("date"!==a){var h=o.getTimezoneOffset();if(0!==h){var m=Math.abs(h),y=fe(Math.floor(m/60),2),v=fe(m%60,2),g=h<0?"+":"-";c="".concat(g).concat(y,":").concat(v)}else c="Z";var b=fe(o.getHours(),2),w=fe(o.getMinutes(),2),O=fe(o.getSeconds(),2),x=""===l?"":"T",k=[b,w,O].join(u);l="".concat(l).concat(x).concat(k).concat(c)}return l}function Ke(e,t,r){var n,o,i,a,l,c,s,u,f,p;z(2,arguments);var d=D(e),h=D(t),m=R(),y=null!==(n=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:m.locale)&&void 0!==n?n:qe,v=C(null!==(i=null!==(a=null!==(l=null!==(c=null==r?void 0:r.weekStartsOn)&&void 0!==c?c:null==r||null===(s=r.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==l?l:m.weekStartsOn)&&void 0!==a?a:null===(f=m.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==i?i:0);if(!y.localize)throw new RangeError("locale must contain localize property");if(!y.formatLong)throw new RangeError("locale must contain formatLong property");if(!y.formatRelative)throw new RangeError("locale must contain formatRelative property");var g,b=H(d,h);if(isNaN(b))throw new RangeError("Invalid time value");g=b<-6?"other":b<-1?"lastWeek":b<0?"yesterday":b<1?"today":b<2?"tomorrow":b<7?"nextWeek":"other";var w=re(d,F(d)),O=re(h,F(h)),x=y.formatRelative(g,w,O,{locale:y,weekStartsOn:v});return $e(d,x,{locale:y,weekStartsOn:v})}function et(e,t){z(2,arguments);var r=D(e),n=D(t);return r.getTime()>n.getTime()}function tt(e){return tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tt(e)}function rt(e,t){return rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rt(e,t)}function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=it(e);if(t){var o=it(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ot(this,r)}}function ot(e,t){return!t||"object"!==tt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function it(e){return it=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},it(e)}function at(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ct(e,t,r){return t&&lt(e.prototype,t),r&&lt(e,r),e}var st=function(){function e(){var t,r,n;at(this,e),n=0,(r="subPriority")in(t=this)?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n}return ct(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),ut=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rt(e,t)}(r,st);var t=nt(r);function r(e,n,o,i,a){var l;return at(this,r),(l=t.call(this)).value=e,l.validateValue=n,l.setValue=o,l.priority=i,a&&(l.subPriority=a),l}return ct(r,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,r){return this.setValue(e,t,this.value,r)}}]),r}();function ft(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var pt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,r=[{key:"run",value:function(e,t,r,n){var o=this.parse(e,t,r,n);return o?{setter:new ut(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,r){return!0}}],r&&ft(t.prototype,r),n&&ft(t,n),e}();function dt(e){return dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dt(e)}function ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function yt(e,t){return yt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yt(e,t)}function vt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=wt(e);if(t){var o=wt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return gt(this,r)}}function gt(e,t){return!t||"object"!==dt(t)&&"function"!=typeof t?bt(e):t}function bt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wt(e){return wt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wt(e)}function Ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yt(e,t)}(i,pt);var t,r,n,o=vt(i);function i(){var e;ht(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ot(bt(e=o.call.apply(o,[this].concat(r))),"priority",140),Ot(bt(e),"incompatibleTokens",["R","u","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,r){return t.era=r,e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e}}],r&&mt(t.prototype,r),n&&mt(t,n),i}(),kt=/^(1[0-2]|0?\d)/,Et=/^(3[0-1]|[0-2]?\d)/,jt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,St=/^(5[0-3]|[0-4]?\d)/,Tt=/^(2[0-3]|[0-1]?\d)/,Pt=/^(2[0-4]|[0-1]?\d)/,Ct=/^(1[0-1]|0?\d)/,zt=/^(1[0-2]|0?\d)/,_t=/^[0-5]?\d/,Dt=/^[0-5]?\d/,Lt=/^\d/,At=/^\d{1,2}/,Nt=/^\d{1,3}/,Mt=/^\d{1,4}/,It=/^-?\d+/,Bt=/^-?\d/,Rt=/^-?\d{1,2}/,Ft=/^-?\d{1,3}/,qt=/^-?\d{1,4}/,Ht=/^([+-])(\d{2})(\d{2})?|Z/,Wt=/^([+-])(\d{2})(\d{2})|Z/,Vt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Ut=/^([+-])(\d{2}):(\d{2})|Z/,Gt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function $t(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Yt(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Zt(e,t){var r=t.match(e);return r?"Z"===r[0]?{value:0,rest:t.slice(1)}:{value:("+"===r[1]?1:-1)*(36e5*(r[2]?parseInt(r[2],10):0)+6e4*(r[3]?parseInt(r[3],10):0)+1e3*(r[5]?parseInt(r[5],10):0)),rest:t.slice(r[0].length)}:null}function Xt(e){return Yt(It,e)}function Qt(e,t){switch(e){case 1:return Yt(Lt,t);case 2:return Yt(At,t);case 3:return Yt(Nt,t);case 4:return Yt(Mt,t);default:return Yt(new RegExp("^\\d{1,"+e+"}"),t)}}function Jt(e,t){switch(e){case 1:return Yt(Bt,t);case 2:return Yt(Rt,t);case 3:return Yt(Ft,t);case 4:return Yt(qt,t);default:return Yt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Kt(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function er(e,t){var r,n=t>0,o=n?t:1-t;if(o<=50)r=e||100;else{var i=o+50;r=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return n?r:1-r}function tr(e){return e%400==0||e%4==0&&e%100!=0}function rr(e){return rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rr(e)}function nr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function or(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ir(e,t){return ir=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ir(e,t)}function ar(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=sr(e);if(t){var o=sr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return lr(this,r)}}function lr(e,t){return!t||"object"!==rr(t)&&"function"!=typeof t?cr(e):t}function cr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sr(e){return sr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sr(e)}function ur(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var fr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ir(e,t)}(i,pt);var t,r,n,o=ar(i);function i(){var e;nr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ur(cr(e=o.call.apply(o,[this].concat(r))),"priority",130),ur(cr(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){var n=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return $t(Qt(4,e),n);case"yo":return $t(r.ordinalNumber(e,{unit:"year"}),n);default:return $t(Qt(t.length,e),n)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,r){var n=e.getUTCFullYear();if(r.isTwoDigitYear){var o=er(r.year,n);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-r.year:r.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}],r&&or(t.prototype,r),n&&or(t,n),i}();function pr(e){return pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pr(e)}function dr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mr(e,t){return mr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mr(e,t)}function yr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=br(e);if(t){var o=br(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return vr(this,r)}}function vr(e,t){return!t||"object"!==pr(t)&&"function"!=typeof t?gr(e):t}function gr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function br(e){return br=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},br(e)}function wr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Or=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mr(e,t)}(i,pt);var t,r,n,o=yr(i);function i(){var e;dr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return wr(gr(e=o.call.apply(o,[this].concat(r))),"priority",130),wr(gr(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){var n=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return $t(Qt(4,e),n);case"Yo":return $t(r.ordinalNumber(e,{unit:"year"}),n);default:return $t(Qt(t.length,e),n)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,r,n){var o=ce(e,n);if(r.isTwoDigitYear){var i=er(r.year,o);return e.setUTCFullYear(i,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),le(e,n)}var a="era"in t&&1!==t.era?1-r.year:r.year;return e.setUTCFullYear(a,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),le(e,n)}}],r&&hr(t.prototype,r),n&&hr(t,n),i}();function xr(e){return xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xr(e)}function kr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Er(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function jr(e,t){return jr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jr(e,t)}function Sr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Cr(e);if(t){var o=Cr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Tr(this,r)}}function Tr(e,t){return!t||"object"!==xr(t)&&"function"!=typeof t?Pr(e):t}function Pr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cr(e){return Cr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Cr(e)}function zr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _r=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jr(e,t)}(i,pt);var t,r,n,o=Sr(i);function i(){var e;kr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return zr(Pr(e=o.call.apply(o,[this].concat(r))),"priority",130),zr(Pr(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t){return Jt("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,r){var n=new Date(0);return n.setUTCFullYear(r,0,4),n.setUTCHours(0,0,0,0),ne(n)}}],r&&Er(t.prototype,r),n&&Er(t,n),i}();function Dr(e){return Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dr(e)}function Lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ar(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Nr(e,t){return Nr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Nr(e,t)}function Mr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Rr(e);if(t){var o=Rr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ir(this,r)}}function Ir(e,t){return!t||"object"!==Dr(t)&&"function"!=typeof t?Br(e):t}function Br(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rr(e){return Rr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Rr(e)}function Fr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nr(e,t)}(i,pt);var t,r,n,o=Mr(i);function i(){var e;Lr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Fr(Br(e=o.call.apply(o,[this].concat(r))),"priority",130),Fr(Br(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t){return Jt("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,r){return e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e}}],r&&Ar(t.prototype,r),n&&Ar(t,n),i}();function Hr(e){return Hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hr(e)}function Wr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ur(e,t){return Ur=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ur(e,t)}function Gr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Zr(e);if(t){var o=Zr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return $r(this,r)}}function $r(e,t){return!t||"object"!==Hr(t)&&"function"!=typeof t?Yr(e):t}function Yr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zr(e){return Zr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zr(e)}function Xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Qr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ur(e,t)}(i,pt);var t,r,n,o=Gr(i);function i(){var e;Wr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Xr(Yr(e=o.call.apply(o,[this].concat(r))),"priority",120),Xr(Yr(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"Q":case"QQ":return Qt(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,r){return e.setUTCMonth(3*(r-1),1),e.setUTCHours(0,0,0,0),e}}],r&&Vr(t.prototype,r),n&&Vr(t,n),i}();function Jr(e){return Jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jr(e)}function Kr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function en(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function tn(e,t){return tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},tn(e,t)}function rn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=an(e);if(t){var o=an(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return nn(this,r)}}function nn(e,t){return!t||"object"!==Jr(t)&&"function"!=typeof t?on(e):t}function on(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function an(e){return an=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},an(e)}function ln(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var cn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tn(e,t)}(i,pt);var t,r,n,o=rn(i);function i(){var e;Kr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ln(on(e=o.call.apply(o,[this].concat(r))),"priority",120),ln(on(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"q":case"qq":return Qt(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,r){return e.setUTCMonth(3*(r-1),1),e.setUTCHours(0,0,0,0),e}}],r&&en(t.prototype,r),n&&en(t,n),i}();function sn(e){return sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sn(e)}function un(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function pn(e,t){return pn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},pn(e,t)}function dn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=yn(e);if(t){var o=yn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return hn(this,r)}}function hn(e,t){return!t||"object"!==sn(t)&&"function"!=typeof t?mn(e):t}function mn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yn(e){return yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yn(e)}function vn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var gn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pn(e,t)}(i,pt);var t,r,n,o=dn(i);function i(){var e;un(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return vn(mn(e=o.call.apply(o,[this].concat(r))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),vn(mn(e),"priority",110),e}return t=i,r=[{key:"parse",value:function(e,t,r){var n=function(e){return e-1};switch(t){case"M":return $t(Yt(kt,e),n);case"MM":return $t(Qt(2,e),n);case"Mo":return $t(r.ordinalNumber(e,{unit:"month"}),n);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,r){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e}}],r&&fn(t.prototype,r),n&&fn(t,n),i}();function bn(e){return bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bn(e)}function wn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function On(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xn(e,t){return xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},xn(e,t)}function kn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Sn(e);if(t){var o=Sn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return En(this,r)}}function En(e,t){return!t||"object"!==bn(t)&&"function"!=typeof t?jn(e):t}function jn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sn(e){return Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sn(e)}function Tn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Pn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xn(e,t)}(i,pt);var t,r,n,o=kn(i);function i(){var e;wn(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Tn(jn(e=o.call.apply(o,[this].concat(r))),"priority",110),Tn(jn(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){var n=function(e){return e-1};switch(t){case"L":return $t(Yt(kt,e),n);case"LL":return $t(Qt(2,e),n);case"Lo":return $t(r.ordinalNumber(e,{unit:"month"}),n);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,r){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e}}],r&&On(t.prototype,r),n&&On(t,n),i}();function Cn(e){return Cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cn(e)}function zn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Dn(e,t){return Dn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dn(e,t)}function Ln(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Mn(e);if(t){var o=Mn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return An(this,r)}}function An(e,t){return!t||"object"!==Cn(t)&&"function"!=typeof t?Nn(e):t}function Nn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mn(e){return Mn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mn(e)}function In(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Bn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Dn(e,t)}(i,pt);var t,r,n,o=Ln(i);function i(){var e;zn(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return In(Nn(e=o.call.apply(o,[this].concat(r))),"priority",100),In(Nn(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"w":return Yt(St,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,r,n){return le(function(e,t,r){z(2,arguments);var n=D(e),o=C(t),i=ue(n,r)-o;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,r,n),n)}}],r&&_n(t.prototype,r),n&&_n(t,n),i}();function Rn(e){return Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rn(e)}function Fn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Hn(e,t){return Hn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Hn(e,t)}function Wn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Gn(e);if(t){var o=Gn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Vn(this,r)}}function Vn(e,t){return!t||"object"!==Rn(t)&&"function"!=typeof t?Un(e):t}function Un(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gn(e){return Gn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Gn(e)}function $n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Yn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hn(e,t)}(i,pt);var t,r,n,o=Wn(i);function i(){var e;Fn(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return $n(Un(e=o.call.apply(o,[this].concat(r))),"priority",100),$n(Un(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"I":return Yt(St,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,r){return ne(function(e,t){z(2,arguments);var r=D(e),n=C(t),o=ae(r)-n;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,r))}}],r&&qn(t.prototype,r),n&&qn(t,n),i}();function Zn(e){return Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zn(e)}function Xn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Jn(e,t){return Jn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jn(e,t)}function Kn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ro(e);if(t){var o=ro(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return eo(this,r)}}function eo(e,t){return!t||"object"!==Zn(t)&&"function"!=typeof t?to(e):t}function to(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ro(e){return ro=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ro(e)}function no(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var oo=[31,28,31,30,31,30,31,31,30,31,30,31],io=[31,29,31,30,31,30,31,31,30,31,30,31],ao=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jn(e,t)}(i,pt);var t,r,n,o=Kn(i);function i(){var e;Xn(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return no(to(e=o.call.apply(o,[this].concat(r))),"priority",90),no(to(e),"subPriority",1),no(to(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"d":return Yt(Et,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){var r=tr(e.getUTCFullYear()),n=e.getUTCMonth();return r?t>=1&&t<=io[n]:t>=1&&t<=oo[n]}},{key:"set",value:function(e,t,r){return e.setUTCDate(r),e.setUTCHours(0,0,0,0),e}}],r&&Qn(t.prototype,r),n&&Qn(t,n),i}();function lo(e){return lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lo(e)}function co(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function so(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function uo(e,t){return uo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},uo(e,t)}function fo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=mo(e);if(t){var o=mo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return po(this,r)}}function po(e,t){return!t||"object"!==lo(t)&&"function"!=typeof t?ho(e):t}function ho(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mo(e){return mo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mo(e)}function yo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var vo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&uo(e,t)}(i,pt);var t,r,n,o=fo(i);function i(){var e;co(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return yo(ho(e=o.call.apply(o,[this].concat(r))),"priority",90),yo(ho(e),"subpriority",1),yo(ho(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"D":case"DD":return Yt(jt,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){return tr(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,r){return e.setUTCMonth(0,r),e.setUTCHours(0,0,0,0),e}}],r&&so(t.prototype,r),n&&so(t,n),i}();function go(e,t,r){var n,o,i,a,l,c,s,u;z(2,arguments);var f=R(),p=C(null!==(n=null!==(o=null!==(i=null!==(a=null==r?void 0:r.weekStartsOn)&&void 0!==a?a:null==r||null===(l=r.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:f.weekStartsOn)&&void 0!==o?o:null===(s=f.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=D(e),h=C(t),m=d.getUTCDay(),y=h%7,v=(y+7)%7,g=(v<p?7:0)+h-m;return d.setUTCDate(d.getUTCDate()+g),d}function bo(e){return bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bo(e)}function wo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xo(e,t){return xo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},xo(e,t)}function ko(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=So(e);if(t){var o=So(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Eo(this,r)}}function Eo(e,t){return!t||"object"!==bo(t)&&"function"!=typeof t?jo(e):t}function jo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function So(e){return So=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},So(e)}function To(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Po=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xo(e,t)}(i,pt);var t,r,n,o=ko(i);function i(){var e;wo(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return To(jo(e=o.call.apply(o,[this].concat(r))),"priority",90),To(jo(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,r,n){return(e=go(e,r,n)).setUTCHours(0,0,0,0),e}}],r&&Oo(t.prototype,r),n&&Oo(t,n),i}();function Co(e){return Co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Co(e)}function zo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Do(e,t){return Do=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Do(e,t)}function Lo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Mo(e);if(t){var o=Mo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ao(this,r)}}function Ao(e,t){return!t||"object"!==Co(t)&&"function"!=typeof t?No(e):t}function No(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mo(e){return Mo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mo(e)}function Io(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Bo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Do(e,t)}(i,pt);var t,r,n,o=Lo(i);function i(){var e;zo(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Io(No(e=o.call.apply(o,[this].concat(r))),"priority",90),Io(No(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r,n){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+n.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return $t(Qt(t.length,e),o);case"eo":return $t(r.ordinalNumber(e,{unit:"day"}),o);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,r,n){return(e=go(e,r,n)).setUTCHours(0,0,0,0),e}}],r&&_o(t.prototype,r),n&&_o(t,n),i}();function Ro(e){return Ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ro(e)}function Fo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ho(e,t){return Ho=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ho(e,t)}function Wo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Go(e);if(t){var o=Go(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Vo(this,r)}}function Vo(e,t){return!t||"object"!==Ro(t)&&"function"!=typeof t?Uo(e):t}function Uo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Go(e){return Go=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Go(e)}function $o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Yo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ho(e,t)}(i,pt);var t,r,n,o=Wo(i);function i(){var e;Fo(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return $o(Uo(e=o.call.apply(o,[this].concat(r))),"priority",90),$o(Uo(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r,n){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+n.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return $t(Qt(t.length,e),o);case"co":return $t(r.ordinalNumber(e,{unit:"day"}),o);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,r,n){return(e=go(e,r,n)).setUTCHours(0,0,0,0),e}}],r&&qo(t.prototype,r),n&&qo(t,n),i}();function Zo(e){return Zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zo(e)}function Xo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Jo(e,t){return Jo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jo(e,t)}function Ko(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ri(e);if(t){var o=ri(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ei(this,r)}}function ei(e,t){return!t||"object"!==Zo(t)&&"function"!=typeof t?ti(e):t}function ti(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ri(e){return ri=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ri(e)}function ni(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var oi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jo(e,t)}(i,pt);var t,r,n,o=Ko(i);function i(){var e;Xo(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ni(ti(e=o.call.apply(o,[this].concat(r))),"priority",90),ni(ti(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){var n=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Qt(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return $t(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n);case"iiiii":return $t(r.day(e,{width:"narrow",context:"formatting"}),n);case"iiiiii":return $t(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n);default:return $t(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,r){return e=function(e,t){z(2,arguments);var r=C(t);r%7==0&&(r-=7);var n=1,o=D(e),i=o.getUTCDay(),a=((r%7+7)%7<n?7:0)+r-i;return o.setUTCDate(o.getUTCDate()+a),o}(e,r),e.setUTCHours(0,0,0,0),e}}],r&&Qo(t.prototype,r),n&&Qo(t,n),i}();function ii(e){return ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ii(e)}function ai(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function li(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ci(e,t){return ci=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ci(e,t)}function si(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=pi(e);if(t){var o=pi(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ui(this,r)}}function ui(e,t){return!t||"object"!==ii(t)&&"function"!=typeof t?fi(e):t}function fi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pi(e){return pi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pi(e)}function di(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var hi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ci(e,t)}(i,pt);var t,r,n,o=si(i);function i(){var e;ai(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return di(fi(e=o.call.apply(o,[this].concat(r))),"priority",80),di(fi(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,r){return e.setUTCHours(Kt(r),0,0,0),e}}],r&&li(t.prototype,r),n&&li(t,n),i}();function mi(e){return mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mi(e)}function yi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function gi(e,t){return gi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gi(e,t)}function bi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=xi(e);if(t){var o=xi(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return wi(this,r)}}function wi(e,t){return!t||"object"!==mi(t)&&"function"!=typeof t?Oi(e):t}function Oi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xi(e){return xi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xi(e)}function ki(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ei=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gi(e,t)}(i,pt);var t,r,n,o=bi(i);function i(){var e;yi(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ki(Oi(e=o.call.apply(o,[this].concat(r))),"priority",80),ki(Oi(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,r){return e.setUTCHours(Kt(r),0,0,0),e}}],r&&vi(t.prototype,r),n&&vi(t,n),i}();function ji(e){return ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ji(e)}function Si(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ti(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Pi(e,t){return Pi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Pi(e,t)}function Ci(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Di(e);if(t){var o=Di(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return zi(this,r)}}function zi(e,t){return!t||"object"!==ji(t)&&"function"!=typeof t?_i(e):t}function _i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Di(e){return Di=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Di(e)}function Li(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ai=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pi(e,t)}(i,pt);var t,r,n,o=Ci(i);function i(){var e;Si(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Li(_i(e=o.call.apply(o,[this].concat(r))),"priority",80),Li(_i(e),"incompatibleTokens",["a","b","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,r){return e.setUTCHours(Kt(r),0,0,0),e}}],r&&Ti(t.prototype,r),n&&Ti(t,n),i}();function Ni(e){return Ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ni(e)}function Mi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ii(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Bi(e,t){return Bi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Bi(e,t)}function Ri(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Hi(e);if(t){var o=Hi(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Fi(this,r)}}function Fi(e,t){return!t||"object"!==Ni(t)&&"function"!=typeof t?qi(e):t}function qi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hi(e){return Hi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hi(e)}function Wi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Vi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bi(e,t)}(i,pt);var t,r,n,o=Ri(i);function i(){var e;Mi(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Wi(qi(e=o.call.apply(o,[this].concat(r))),"priority",70),Wi(qi(e),"incompatibleTokens",["H","K","k","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"h":return Yt(zt,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,r){var n=e.getUTCHours()>=12;return n&&r<12?e.setUTCHours(r+12,0,0,0):n||12!==r?e.setUTCHours(r,0,0,0):e.setUTCHours(0,0,0,0),e}}],r&&Ii(t.prototype,r),n&&Ii(t,n),i}();function Ui(e){return Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ui(e)}function Gi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Yi(e,t){return Yi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yi(e,t)}function Zi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ji(e);if(t){var o=Ji(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Xi(this,r)}}function Xi(e,t){return!t||"object"!==Ui(t)&&"function"!=typeof t?Qi(e):t}function Qi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ji(e){return Ji=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ji(e)}function Ki(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ea=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yi(e,t)}(i,pt);var t,r,n,o=Zi(i);function i(){var e;Gi(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ki(Qi(e=o.call.apply(o,[this].concat(r))),"priority",70),Ki(Qi(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"H":return Yt(Tt,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,r){return e.setUTCHours(r,0,0,0),e}}],r&&$i(t.prototype,r),n&&$i(t,n),i}();function ta(e){return ta="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ta(e)}function ra(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function na(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function oa(e,t){return oa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},oa(e,t)}function ia(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ca(e);if(t){var o=ca(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return aa(this,r)}}function aa(e,t){return!t||"object"!==ta(t)&&"function"!=typeof t?la(e):t}function la(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ca(e){return ca=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ca(e)}function sa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ua=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oa(e,t)}(i,pt);var t,r,n,o=ia(i);function i(){var e;ra(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return sa(la(e=o.call.apply(o,[this].concat(r))),"priority",70),sa(la(e),"incompatibleTokens",["h","H","k","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"K":return Yt(Ct,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,r){return e.getUTCHours()>=12&&r<12?e.setUTCHours(r+12,0,0,0):e.setUTCHours(r,0,0,0),e}}],r&&na(t.prototype,r),n&&na(t,n),i}();function fa(e){return fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fa(e)}function pa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function da(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ha(e,t){return ha=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ha(e,t)}function ma(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ga(e);if(t){var o=ga(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ya(this,r)}}function ya(e,t){return!t||"object"!==fa(t)&&"function"!=typeof t?va(e):t}function va(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ga(e){return ga=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ga(e)}function ba(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ha(e,t)}(i,pt);var t,r,n,o=ma(i);function i(){var e;pa(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ba(va(e=o.call.apply(o,[this].concat(r))),"priority",70),ba(va(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"k":return Yt(Pt,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,r){var n=r<=24?r%24:r;return e.setUTCHours(n,0,0,0),e}}],r&&da(t.prototype,r),n&&da(t,n),i}();function Oa(e){return Oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oa(e)}function xa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ka(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ea(e,t){return Ea=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ea(e,t)}function ja(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Pa(e);if(t){var o=Pa(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Sa(this,r)}}function Sa(e,t){return!t||"object"!==Oa(t)&&"function"!=typeof t?Ta(e):t}function Ta(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pa(e){return Pa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pa(e)}function Ca(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var za=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ea(e,t)}(i,pt);var t,r,n,o=ja(i);function i(){var e;xa(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ca(Ta(e=o.call.apply(o,[this].concat(r))),"priority",60),Ca(Ta(e),"incompatibleTokens",["t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"m":return Yt(_t,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,r){return e.setUTCMinutes(r,0,0),e}}],r&&ka(t.prototype,r),n&&ka(t,n),i}();function _a(e){return _a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_a(e)}function Da(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function La(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Aa(e,t){return Aa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Aa(e,t)}function Na(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ba(e);if(t){var o=Ba(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ma(this,r)}}function Ma(e,t){return!t||"object"!==_a(t)&&"function"!=typeof t?Ia(e):t}function Ia(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ba(e){return Ba=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ba(e)}function Ra(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Fa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Aa(e,t)}(i,pt);var t,r,n,o=Na(i);function i(){var e;Da(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ra(Ia(e=o.call.apply(o,[this].concat(r))),"priority",50),Ra(Ia(e),"incompatibleTokens",["t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"s":return Yt(Dt,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return Qt(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,r){return e.setUTCSeconds(r,0),e}}],r&&La(t.prototype,r),n&&La(t,n),i}();function qa(e){return qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qa(e)}function Ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wa(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Va(e,t){return Va=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Va(e,t)}function Ua(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ya(e);if(t){var o=Ya(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ga(this,r)}}function Ga(e,t){return!t||"object"!==qa(t)&&"function"!=typeof t?$a(e):t}function $a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ya(e){return Ya=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ya(e)}function Za(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Va(e,t)}(i,pt);var t,r,n,o=Ua(i);function i(){var e;Ha(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Za($a(e=o.call.apply(o,[this].concat(r))),"priority",30),Za($a(e),"incompatibleTokens",["t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t){return $t(Qt(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,r){return e.setUTCMilliseconds(r),e}}],r&&Wa(t.prototype,r),n&&Wa(t,n),i}();function Qa(e){return Qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qa(e)}function Ja(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ka(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function el(e,t){return el=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},el(e,t)}function tl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ol(e);if(t){var o=ol(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return rl(this,r)}}function rl(e,t){return!t||"object"!==Qa(t)&&"function"!=typeof t?nl(e):t}function nl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ol(e){return ol=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ol(e)}function il(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var al=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&el(e,t)}(i,pt);var t,r,n,o=tl(i);function i(){var e;Ja(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return il(nl(e=o.call.apply(o,[this].concat(r))),"priority",10),il(nl(e),"incompatibleTokens",["t","T","x"]),e}return t=i,r=[{key:"parse",value:function(e,t){switch(t){case"X":return Zt(Ht,e);case"XX":return Zt(Wt,e);case"XXXX":return Zt(Vt,e);case"XXXXX":return Zt(Gt,e);default:return Zt(Ut,e)}}},{key:"set",value:function(e,t,r){return t.timestampIsSet?e:new Date(e.getTime()-r)}}],r&&Ka(t.prototype,r),n&&Ka(t,n),i}();function ll(e){return ll="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ll(e)}function cl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ul(e,t){return ul=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ul(e,t)}function fl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=hl(e);if(t){var o=hl(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return pl(this,r)}}function pl(e,t){return!t||"object"!==ll(t)&&"function"!=typeof t?dl(e):t}function dl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hl(e){return hl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hl(e)}function ml(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var yl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ul(e,t)}(i,pt);var t,r,n,o=fl(i);function i(){var e;cl(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ml(dl(e=o.call.apply(o,[this].concat(r))),"priority",10),ml(dl(e),"incompatibleTokens",["t","T","X"]),e}return t=i,r=[{key:"parse",value:function(e,t){switch(t){case"x":return Zt(Ht,e);case"xx":return Zt(Wt,e);case"xxxx":return Zt(Vt,e);case"xxxxx":return Zt(Gt,e);default:return Zt(Ut,e)}}},{key:"set",value:function(e,t,r){return t.timestampIsSet?e:new Date(e.getTime()-r)}}],r&&sl(t.prototype,r),n&&sl(t,n),i}();function vl(e){return vl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vl(e)}function gl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function wl(e,t){return wl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wl(e,t)}function Ol(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=El(e);if(t){var o=El(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return xl(this,r)}}function xl(e,t){return!t||"object"!==vl(t)&&"function"!=typeof t?kl(e):t}function kl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function El(e){return El=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},El(e)}function jl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Sl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wl(e,t)}(i,pt);var t,r,n,o=Ol(i);function i(){var e;gl(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return jl(kl(e=o.call.apply(o,[this].concat(r))),"priority",40),jl(kl(e),"incompatibleTokens","*"),e}return t=i,(r=[{key:"parse",value:function(e){return Xt(e)}},{key:"set",value:function(e,t,r){return[new Date(1e3*r),{timestampIsSet:!0}]}}])&&bl(t.prototype,r),n&&bl(t,n),i}();function Tl(e){return Tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tl(e)}function Pl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function zl(e,t){return zl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zl(e,t)}function _l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Al(e);if(t){var o=Al(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Dl(this,r)}}function Dl(e,t){return!t||"object"!==Tl(t)&&"function"!=typeof t?Ll(e):t}function Ll(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Al(e){return Al=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Al(e)}function Nl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ml=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zl(e,t)}(i,pt);var t,r,n,o=_l(i);function i(){var e;Pl(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Nl(Ll(e=o.call.apply(o,[this].concat(r))),"priority",20),Nl(Ll(e),"incompatibleTokens","*"),e}return t=i,(r=[{key:"parse",value:function(e){return Xt(e)}},{key:"set",value:function(e,t,r){return[new Date(r),{timestampIsSet:!0}]}}])&&Cl(t.prototype,r),n&&Cl(t,n),i}();function Il(e,t){z(2,arguments);var r=C(t);return L(e,-r)}function Bl(e,t){var r;z(1,arguments);var n=C(null!==(r=null==t?void 0:t.additionalDigits)&&void 0!==r?r:2);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,i=Wl(e);if(i.date){var a=Vl(i.date,n);o=Ul(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var l,c=o.getTime(),s=0;if(i.time&&(s=$l(i.time),isNaN(s)))return new Date(NaN);if(!i.timezone){var u=new Date(c+s),f=new Date(0);return f.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),f.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),f}return l=Zl(i.timezone),isNaN(l)?new Date(NaN):new Date(c+s+l)}new xt,new fr,new Or,new _r,new qr,new Qr,new cn,new gn,new Pn,new Bn,new Yn,new ao,new vo,new Po,new Bo,new Yo,new oi,new hi,new Ei,new Ai,new Vi,new ea,new ua,new wa,new za,new Fa,new Xa,new al,new yl,new Sl,new Ml;var Rl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Fl=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ql=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Hl=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Wl(e){var t,r={},n=e.split(Rl.dateTimeDelimiter);if(n.length>2)return r;if(/:/.test(n[0])?t=n[0]:(r.date=n[0],t=n[1],Rl.timeZoneDelimiter.test(r.date)&&(r.date=e.split(Rl.timeZoneDelimiter)[0],t=e.substr(r.date.length,e.length))),t){var o=Rl.timezone.exec(t);o?(r.time=t.replace(o[1],""),r.timezone=o[1]):r.time=t}return r}function Vl(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var o=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((n[1]||n[2]).length)}}function Ul(e,t){if(null===t)return new Date(NaN);var r=e.match(Fl);if(!r)return new Date(NaN);var n=!!r[4],o=Gl(r[1]),i=Gl(r[2])-1,a=Gl(r[3]),l=Gl(r[4]),c=Gl(r[5])-1;if(n)return function(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}(0,l,c)?function(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var o=n.getUTCDay()||7,i=7*(t-1)+r+1-o;return n.setUTCDate(n.getUTCDate()+i),n}(t,l,c):new Date(NaN);var s=new Date(0);return function(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(Xl[t]||(Ql(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(Ql(e)?366:365)}(t,o)?(s.setUTCFullYear(t,i,Math.max(o,a)),s):new Date(NaN)}function Gl(e){return e?parseInt(e):1}function $l(e){var t=e.match(ql);if(!t)return NaN;var r=Yl(t[1]),n=Yl(t[2]),o=Yl(t[3]);return function(e,t,r){if(24===e)return 0===t&&0===r;return r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}(r,n,o)?36e5*r+6e4*n+1e3*o:NaN}function Yl(e){return e&&parseFloat(e.replace(",","."))||0}function Zl(e){if("Z"===e)return 0;var t=e.match(Hl);if(!t)return 0;var r="+"===t[1]?-1:1,n=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?r*(36e5*n+6e4*o):NaN}var Xl=[31,null,31,30,31,30,31,31,30,31,30,31];function Ql(e){return e%400==0||e%4==0&&e%100!=0}function Jl(e,t){z(2,arguments);var r=C(t);return A(e,-r)}function Kl(e){return Kl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kl(e)}function ec(e,t){if(z(2,arguments),!t||"object"!==Kl(t))return new Date(NaN);var r=t.years?C(t.years):0,n=t.months?C(t.months):0,o=t.weeks?C(t.weeks):0,i=t.days?C(t.days):0,a=t.hours?C(t.hours):0,l=t.minutes?C(t.minutes):0,c=t.seconds?C(t.seconds):0,s=Jl(e,n+12*r),u=Il(s,i+7*o),f=l+60*a,p=c+60*f,d=1e3*p,h=new Date(u.getTime()-d);return h}var tc={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},rc={date:k({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:k({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:k({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},nc={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},oc={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},ic={code:"es",formatDistance:function(e,t,r){var n,o=tc[e];return n="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"en "+n:"hace "+n:n},formatLong:rc,formatRelative:function(e,t,r,n){return 1!==t.getUTCHours()?oc[e]:nc[e]},localize:{ordinalNumber:function(e,t){return Number(e)+"º"},era:E({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:E({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:E({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:E({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},defaultWidth:"wide"}),dayPeriod:E({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:P({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:j({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:j({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:j({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:j({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:j({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}};function ac(t){var r=[],n=f.getCurrentLanguage().toLowerCase().startsWith("es")?ic:qe,o=Array.from(Array(7).keys()),i=t.weekStartsOn&&t.weekStartsOn<7?t.weekStartsOn:0;if(i)for(;o[0]!==i;)o.push(o.shift());var a=o.map((function(e){var t;return null===(t=n.localize)||void 0===t?void 0:t.day(e,{width:"narrow"})}));return function(){var e=new Date(t.year,t.month).getDay()-i;e<0&&(e=7+e);for(var n,o,a=[],l=1,c=0;c<6;c++){for(var s={days:[]},u=0;u<7;u++)if(0===c&&u<e)s.days[u]={day:void 0};else{if(l>(n=t.month,o=t.year,32-new Date(o,n,32).getDate()))break;s.days[u]={day:l},l++}a.push(s)}r=a}(),e.createElement("div",{className:"mdhui-calendar"},e.createElement("table",{cellPadding:"0",cellSpacing:"0"},e.createElement("thead",null,e.createElement("tr",null,a.map((function(t,r){return e.createElement("th",{key:r},t)})))),e.createElement("tbody",null,r.map((function(r,n){return e.createElement("tr",{key:n},r.days.map((function(r,n){return e.createElement("td",{key:n},t.dayRenderer(t.year,t.month,r.day))})))})))))}y(".mdhui-calendar {\n padding-bottom: 16px;\n}\n\n.mdhui-calendar table {\n width: 100%;\n font-size: 14px;\n}\n\n.mdhui-calendar table tr th {\n font-size: 14px;\n font-weight: bold;\n color: var(--mdhui-text-color-2);\n padding-bottom: 16px;\n padding-top: 16px;\n border-bottom: solid 1px var(--mdhui-border-color-0);\n text-align: center;\n}\n\n.mdhui-calendar table tr td {\n padding-top: 16px;\n vertical-align: top;\n text-align: center;\n height: 50px;\n padding-bottom: 0;\n position: relative;\n}");function lc(t){if(!t.children)return null;var r=["mdhui-card"];return t.allowOverflow&&r.push("allow-overflow"),t.className&&r.push(t.className),e.createElement("div",{className:r.join(" ")},t.children)}y(".mdhui-card {\n border-radius: 5px;\n margin: 16px;\n background: var(--mdhui-background-color-0);\n box-shadow: var(--mdhui-box-shadow-0);\n animation: var(--mdhui-fadein-animation);\n -moz-animation: var(--mdhui-fadein-animation);\n -webkit-animation: var(--mdhui-fadein-animation);\n position: relative;\n overflow: hidden;\n\n}\n\n.mdhui-card:empty {\n display: none;\n}\n\n.mdhui-card.allow-overflow {\n overflow: visible;\n display: flow-root;\n}");function cc(t){return e.createElement("div",{className:"mdhui-card-title"},t.title,t.onDetailClick&&t.detailLinkText&&e.createElement("a",{className:"detail-link",onClick:function(){return t.onDetailClick?t.onDetailClick():null}},t.detailLinkText))}y(".mdhui-card-title\n{\n padding: 16px;\n font-weight: bold;\n padding-bottom: 0;\n position: relative;\n}\n\n .mdhui-card-title .detail-link\n {\n position: absolute;\n right: 16px;\n bottom: 0;\n font-size: .88em;\n cursor: pointer;\n }\n");var sc={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="chevron-left",r=[9001],n="f053",o="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z";e.definition={prefix:"fas",iconName:t,icon:[320,512,r,n,o]},e.faChevronLeft=e.definition,e.prefix="fas",e.iconName=t,e.width=320,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(sc);function uc(t){var r="Month"==t.intervalType?{months:1}:{weeks:1},n=M(t.intervalStart,r),o=!1,i=new Date;t.intervalStart<=i&&i<n&&(o=!0);var a,l,c=["mdhui-date-range-navigator"];return"rounded"==t.variant&&c.push("mdhui-date-range-navigator-rounded"),t.className&&c.push(t.className),e.createElement("div",{className:c.join(" ")},e.createElement("button",{title:"Previous",className:"navigator-button navigate-previous",onClick:function(){return e=ec(t.intervalStart,r),void t.onIntervalChange(e,M(e,r));var e}},e.createElement(b,{icon:sc.faChevronLeft})),"Month"==t.intervalType&&1==t.intervalStart.getDate()&&e.createElement("div",null,(l=f.getCurrentLanguage().toLowerCase().startsWith("es")?ic:qe,(a=$e(new Date(t.intervalStart.getFullYear(),t.intervalStart.getMonth(),1,0,0,0,0),"MMMM",{locale:l})).charAt(0).toUpperCase()+a.slice(1))," ",t.intervalStart.getFullYear()),("Week"==t.intervalType||1!=t.intervalStart.getDate())&&e.createElement("div",null,$e(t.intervalStart,"MM/dd/yyyy")," - ",$e(ec(n,{days:1}),"MM/dd/yyyy")),!o&&e.createElement("button",{title:"Next",className:"navigator-button navigate-next",onClick:function(){return e=M(t.intervalStart,r),void t.onIntervalChange(e,M(e,r));var e}},e.createElement(b,{icon:m.faChevronRight})))}y(".mdhui-card .mdhui-date-range-navigator:first-child {\n border-radius: 5px 5px 0px 0px;\n}\n\n.mdhui-date-range-navigator {\n padding: 16px;\n text-align: center;\n font-weight: bold;\n border-bottom: solid 1px var(--mdhui-border-color-0);\n position: sticky;\n position: -webkit-sticky;\n top: 0;\n background: var(--mdhui-background-color-0);\n z-index: 1;\n}\n\n.mdhui-date-range-navigator>.navigator-button {\n position: absolute;\n top: 0;\n padding: 16px;\n color: var(--mdhui-color-primary);\n height: 100%;\n}\n\n.mdhui-date-range-navigator>.navigate-previous {\n left: 0;\n}\n\n.mdhui-date-range-navigator>.navigate-next {\n right: 0;\n}\n\n.mdhui-date-range-navigator-rounded {\n padding: 0;\n line-height: 40px;\n border-radius: 32px;\n background: var(--mdhui-background-color-2);\n margin: 16px;\n position: relative;\n border: none;\n}\n\n.mdhui-date-range-navigator-rounded>.navigator-button {\n padding: 0;\n width: 36px;\n height: 36px;\n background: var(--mdhui-background-color-0);\n color: var(--mdhui-color-primary);\n border-radius: 31px;\n cursor: pointer;\n position: absolute;\n top: 2px;\n line-height: 36px;\n display: flex;\n align-items: center;\n}\n\n.mdhui-date-range-navigator-rounded .navigator-button.navigate-previous {\n left: 2px;\n}\n\n.mdhui-date-range-navigator-rounded .navigator-button.navigate-next {\n right: 2px;\n}\n\n.mdhui-date-range-navigator-rounded .navigator-button svg {\n margin: 0 auto;\n}\n\n.mdhui-navigation-bar .mdhui-date-range-navigator-rounded {\n margin: 0;\n}");function fc(t){for(var r=100/t.primaryColors.length,n="conic-gradient(",o=0,i=0;i<t.primaryColors.length;i++)n=n+t.primaryColors[i]+" "+o+"%, ",o+=r,n=n+t.primaryColors[i]+" "+o+"%",i!=t.primaryColors.length-1&&(n+=", ");var a={background:n+=")"};return e.createElement("div",{className:"mdhui-day-tracker-symbol"},e.createElement("div",{className:"day-circle",style:a},t.secondaryColors.slice(0,3).map((function(t,r){return e.createElement("div",{key:r,className:"secondary-color",style:{background:t}})})),t.secondaryColors.length>3&&e.createElement("div",{className:"more-items"},"+")))}y(".mdhui-day-tracker-symbol\n{\n padding: 10px;\n}\n\n .mdhui-day-tracker-symbol .day-circle\n {\n font-size: 12px;\n height: 30px;\n width: 30px;\n display: inline-block;\n border-radius: 17px;\n line-height: 30px;\n background: var(--mdhui-background-color-2);\n position: relative;\n }\n\n .mdhui-day-tracker-symbol .day-circle .secondary-color\n {\n position: absolute;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n\n .mdhui-day-tracker-symbol .day-circle .secondary-color:first-child\n {\n left: 36.6%;\n top: -33.33%;\n }\n\n .mdhui-day-tracker-symbol .day-circle .secondary-color:nth-child(2)\n {\n left: 0%;\n top: -23.333%;\n }\n\n .mdhui-day-tracker-symbol .day-circle .secondary-color:nth-child(3)\n {\n left: 73%;\n top: -23.333%;\n }\n\n .mdhui-day-tracker-symbol .day-circle .more-items\n {\n position: absolute;\n left: 30px;\n top: 0px;\n font-size: 10px;\n height: 8px;\n width: 7px;\n line-height: 6px;\n }\n");y(".mdhui-face\n{\n width: 40px;\n height: 40px;\n display: inline-block;\n border-radius: 50%;\n overflow: hidden;\n position: relative;\n}\n\n .mdhui-face img\n {\n width: 100%;\n height: 100%;\n opacity: .7;\n }\n\n .mdhui-face.mdhui-face-selected\n {\n background: #eec04c;\n }");var pc=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var r=64===e.charCodeAt(0)&&105===e.charCodeAt(1);r&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!r}if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),dc="-ms-",hc="-moz-",mc="-webkit-",yc=Math.abs,vc=String.fromCharCode,gc=Object.assign;function bc(e){return e.trim()}function wc(e,t,r){return e.replace(t,r)}function Oc(e,t){return e.indexOf(t)}function xc(e,t){return 0|e.charCodeAt(t)}function kc(e,t,r){return e.slice(t,r)}function Ec(e){return e.length}function jc(e){return e.length}function Sc(e,t){return t.push(e),e}var Tc=1,Pc=1,Cc=0,zc=0,_c=0,Dc="";function Lc(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Tc,column:Pc,length:a,return:""}}function Ac(e,t){return gc(Lc("",null,null,"",null,null,0),e,{length:-e.length},t)}function Nc(){return _c=zc>0?xc(Dc,--zc):0,Pc--,10===_c&&(Pc=1,Tc--),_c}function Mc(){return _c=zc<Cc?xc(Dc,zc++):0,Pc++,10===_c&&(Pc=1,Tc++),_c}function Ic(){return xc(Dc,zc)}function Bc(){return zc}function Rc(e,t){return kc(Dc,e,t)}function Fc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function qc(e){return Tc=Pc=1,Cc=Ec(Dc=e),zc=0,[]}function Hc(e){return Dc="",e}function Wc(e){return bc(Rc(zc-1,Gc(91===e?e+2:40===e?e+1:e)))}function Vc(e){for(;(_c=Ic())&&_c<33;)Mc();return Fc(e)>2||Fc(_c)>3?"":" "}function Uc(e,t){for(;--t&&Mc()&&!(_c<48||_c>102||_c>57&&_c<65||_c>70&&_c<97););return Rc(e,Bc()+(t<6&&32==Ic()&&32==Mc()))}function Gc(e){for(;Mc();)switch(_c){case e:return zc;case 34:case 39:34!==e&&39!==e&&Gc(_c);break;case 40:41===e&&Gc(e);break;case 92:Mc()}return zc}function $c(e,t){for(;Mc()&&e+_c!==57&&(e+_c!==84||47!==Ic()););return"/*"+Rc(t,zc-1)+"*"+vc(47===e?e:Mc())}function Yc(e){for(;!Fc(Ic());)Mc();return Rc(e,zc)}function Zc(e){return Hc(Xc("",null,null,null,[""],e=qc(e),0,[0],e))}function Xc(e,t,r,n,o,i,a,l,c){for(var s=0,u=0,f=a,p=0,d=0,h=0,m=1,y=1,v=1,g=0,b="",w=o,O=i,x=n,k=b;y;)switch(h=g,g=Mc()){case 40:if(108!=h&&58==xc(k,f-1)){-1!=Oc(k+=wc(Wc(g),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=Wc(g);break;case 9:case 10:case 13:case 32:k+=Vc(h);break;case 92:k+=Uc(Bc()-1,7);continue;case 47:switch(Ic()){case 42:case 47:Sc(Jc($c(Mc(),Bc()),t,r),c);break;default:k+="/"}break;case 123*m:l[s++]=Ec(k)*v;case 125*m:case 59:case 0:switch(g){case 0:case 125:y=0;case 59+u:d>0&&Ec(k)-f&&Sc(d>32?Kc(k+";",n,r,f-1):Kc(wc(k," ","")+";",n,r,f-2),c);break;case 59:k+=";";default:if(Sc(x=Qc(k,t,r,s,u,o,l,b,w=[],O=[],f),i),123===g)if(0===u)Xc(k,t,x,x,w,i,f,l,O);else switch(99===p&&110===xc(k,3)?100:p){case 100:case 109:case 115:Xc(e,x,x,n&&Sc(Qc(e,x,x,0,0,o,l,b,o,w=[],f),O),o,O,f,l,n?w:O);break;default:Xc(k,x,x,x,[""],O,0,l,O)}}s=u=d=0,m=v=1,b=k="",f=a;break;case 58:f=1+Ec(k),d=h;default:if(m<1)if(123==g)--m;else if(125==g&&0==m++&&125==Nc())continue;switch(k+=vc(g),g*m){case 38:v=u>0?1:(k+="\f",-1);break;case 44:l[s++]=(Ec(k)-1)*v,v=1;break;case 64:45===Ic()&&(k+=Wc(Mc())),p=Ic(),u=f=Ec(b=k+=Yc(Bc())),g++;break;case 45:45===h&&2==Ec(k)&&(m=0)}}return i}function Qc(e,t,r,n,o,i,a,l,c,s,u){for(var f=o-1,p=0===o?i:[""],d=jc(p),h=0,m=0,y=0;h<n;++h)for(var v=0,g=kc(e,f+1,f=yc(m=a[h])),b=e;v<d;++v)(b=bc(m>0?p[v]+" "+g:wc(g,/&\f/g,p[v])))&&(c[y++]=b);return Lc(e,t,r,0===o?"rule":l,c,s,u)}function Jc(e,t,r){return Lc(e,t,r,"comm",vc(_c),kc(e,2,-2),0)}function Kc(e,t,r,n){return Lc(e,t,r,"decl",kc(e,0,n),kc(e,n+1,-1),n)}function es(e,t){for(var r="",n=jc(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function ts(e,t,r,n){switch(e.type){case"@import":case"decl":return e.return=e.return||e.value;case"comm":return"";case"@keyframes":return e.return=e.value+"{"+es(e.children,n)+"}";case"rule":e.value=e.props.join(",")}return Ec(r=es(e.children,n))?e.return=e.value+"{"+r+"}":""}function rs(e){var t=jc(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}function ns(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var os=function(e,t,r){for(var n=0,o=0;n=o,o=Ic(),38===n&&12===o&&(t[r]=1),!Fc(o);)Mc();return Rc(e,zc)},is=function(e,t){return Hc(function(e,t){var r=-1,n=44;do{switch(Fc(n)){case 0:38===n&&12===Ic()&&(t[r]=1),e[r]+=os(zc-1,t,r);break;case 2:e[r]+=Wc(n);break;case 4:if(44===n){e[++r]=58===Ic()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=vc(n)}}while(n=Mc());return e}(qc(e),t))},as=new WeakMap,ls=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||as.get(r))&&!n){as.set(e,!0);for(var o=[],i=is(t,o),a=r.props,l=0,c=0;l<i.length;l++)for(var s=0;s<a.length;s++,c++)e.props[c]=o[l]?i[l].replace(/&\f/g,a[s]):a[s]+" "+i[l]}}},cs=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},ss=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},us=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},fs=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},ps=function(e,t,r){us(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),fs(e)):function(e,t){for(var r=e-1;r>=0;r--)if(!us(t[r]))return!0;return!1}(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),fs(e)))};function ds(e,t){switch(function(e,t){return 45^xc(e,0)?(((t<<2^xc(e,0))<<2^xc(e,1))<<2^xc(e,2))<<2^xc(e,3):0}(e,t)){case 5103:return mc+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return mc+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return mc+e+hc+e+dc+e+e;case 6828:case 4268:return mc+e+dc+e+e;case 6165:return mc+e+dc+"flex-"+e+e;case 5187:return mc+e+wc(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return mc+e+dc+"flex-item-"+wc(e,/flex-|-self/,"")+e;case 4675:return mc+e+dc+"flex-line-pack"+wc(e,/align-content|flex-|-self/,"")+e;case 5548:return mc+e+dc+wc(e,"shrink","negative")+e;case 5292:return mc+e+dc+wc(e,"basis","preferred-size")+e;case 6060:return mc+"box-"+wc(e,"-grow","")+mc+e+dc+wc(e,"grow","positive")+e;case 4554:return mc+wc(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return wc(wc(wc(e,/(zoom-|grab)/,mc+"$1"),/(image-set)/,mc+"$1"),e,"")+e;case 5495:case 3959:return wc(e,/(image-set\([^]*)/,mc+"$1$`$1");case 4968:return wc(wc(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+mc+e+e;case 4095:case 3583:case 4068:case 2532:return wc(e,/(.+)-inline(.+)/,mc+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ec(e)-1-t>6)switch(xc(e,t+1)){case 109:if(45!==xc(e,t+4))break;case 102:return wc(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+hc+(108==xc(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Oc(e,"stretch")?ds(wc(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==xc(e,t+1))break;case 6444:switch(xc(e,Ec(e)-3-(~Oc(e,"!important")&&10))){case 107:return wc(e,":",":"+mc)+e;case 101:return wc(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+mc+(45===xc(e,14)?"inline-":"")+"box$3$1"+mc+"$2$3$1"+dc+"$2box$3")+e}break;case 5936:switch(xc(e,t+11)){case 114:return mc+e+dc+wc(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return mc+e+dc+wc(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return mc+e+dc+wc(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return mc+e+dc+e+e}return e}var hs,ms,ys,vs="undefined"!=typeof document,gs=vs?void 0:(hs=function(){return ns((function(){var e={};return function(t){return e[t]}}))},ms=new WeakMap,function(e){if(ms.has(e))return ms.get(e);var t=hs(e);return ms.set(e,t),t}),bs=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=ds(e.value,e.length);break;case"@keyframes":return es([Ac(e,{value:wc(e.value,"@","@"+mc)})],n);case"rule":if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return es([Ac(e,{props:[wc(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return es([Ac(e,{props:[wc(t,/:(plac\w+)/,":-webkit-input-$1")]}),Ac(e,{props:[wc(t,/:(plac\w+)/,":-moz-$1")]}),Ac(e,{props:[wc(t,/:(plac\w+)/,dc+"input-$1")]})],n)}return""}))}}],ws=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(vs&&"css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n=e.stylisPlugins||bs;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,a={},l=[];vs&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)a[t[r]]=!0;l.push(e)})));var c,s=[ls,cs];if("production"!==process.env.NODE_ENV&&s.push(function(e){return function(t,r,n){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent===n[0]?n[0].children:n,a=i.length-1;a>=0;a--){var l=i[a];if(l.line<t.line)break;if(l.column<t.column){if(ss(l))return;break}}o.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return v.compat}}),ps),vs){var u,f=[ts,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?u.insert(e.return):e.value&&"comm"!==e.type&&u.insert(e.value+"{}"))}:(c=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],p=rs(s.concat(n,f));i=function(e,t,r,n){u=r,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(u={insert:function(e){r.insert(e+t.map)}}),es(Zc(e?e+"{"+t.styles+"}":t.styles),p),n&&(v.inserted[t.name]=!0)}}else{var d=[ts],h=rs(s.concat(n,d)),m=gs(n)(t),y=function(e,t){var r=t.name;return void 0===m[r]&&(m[r]=es(Zc(e?e+"{"+t.styles+"}":t.styles),h)),m[r]};i=function(e,t,r,n){var o=t.name,i=y(e,t);return void 0===v.compat?(n&&(v.inserted[o]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?i+t.map:i):n?void(v.inserted[o]=i):i}}var v={key:t,sheet:new pc({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return v.sheet.hydrate(l),v},Os={},xs={};var ks,Es,js={};
2
2
  /** @license React v16.13.1
3
3
  * react-is.development.js
4
4
  *
@@ -6,7 +6,7 @@ import e,{forwardRef as t,createElement as r,Fragment as n,createContext as o,us
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */Es={get exports(){return Os},set exports(e){Os=e}},"production"===process.env.NODE_ENV?Es.exports=function(){if(ys)return xs;ys=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case c:case s:case n:case i:case o:case f:return e;default:switch(e=e&&e.$$typeof){case l:case u:case h:case d:case a:return e;default:return p}}case r:return p}}}function w(e){return b(e)===s}return xs.AsyncMode=c,xs.ConcurrentMode=s,xs.ContextConsumer=l,xs.ContextProvider=a,xs.Element=t,xs.ForwardRef=u,xs.Fragment=n,xs.Lazy=h,xs.Memo=d,xs.Portal=r,xs.Profiler=i,xs.StrictMode=o,xs.Suspense=f,xs.isAsyncMode=function(e){return w(e)||b(e)===c},xs.isConcurrentMode=w,xs.isContextConsumer=function(e){return b(e)===l},xs.isContextProvider=function(e){return b(e)===a},xs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},xs.isForwardRef=function(e){return b(e)===u},xs.isFragment=function(e){return b(e)===n},xs.isLazy=function(e){return b(e)===h},xs.isMemo=function(e){return b(e)===d},xs.isPortal=function(e){return b(e)===r},xs.isProfiler=function(e){return b(e)===i},xs.isStrictMode=function(e){return b(e)===o},xs.isSuspense=function(e){return b(e)===f},xs.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===s||e===i||e===o||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===a||e.$$typeof===l||e.$$typeof===u||e.$$typeof===y||e.$$typeof===v||e.$$typeof===g||e.$$typeof===m)},xs.typeOf=b,xs}():Es.exports=(ks||(ks=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case c:case s:case n:case i:case o:case f:return m;default:var y=m&&m.$$typeof;switch(y){case l:case u:case h:case d:case a:return y;default:return p}}case r:return p}}}var w=c,O=s,x=l,k=a,E=t,j=u,S=n,T=h,P=d,C=r,z=i,_=o,D=f,L=!1;function A(e){return b(e)===s}js.AsyncMode=w,js.ConcurrentMode=O,js.ContextConsumer=x,js.ContextProvider=k,js.Element=E,js.ForwardRef=j,js.Fragment=S,js.Lazy=T,js.Memo=P,js.Portal=C,js.Profiler=z,js.StrictMode=_,js.Suspense=D,js.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(e)||b(e)===c},js.isConcurrentMode=A,js.isContextConsumer=function(e){return b(e)===l},js.isContextProvider=function(e){return b(e)===a},js.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},js.isForwardRef=function(e){return b(e)===u},js.isFragment=function(e){return b(e)===n},js.isLazy=function(e){return b(e)===h},js.isMemo=function(e){return b(e)===d},js.isPortal=function(e){return b(e)===r},js.isProfiler=function(e){return b(e)===i},js.isStrictMode=function(e){return b(e)===o},js.isSuspense=function(e){return b(e)===f},js.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===s||e===i||e===o||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===a||e.$$typeof===l||e.$$typeof===u||e.$$typeof===y||e.$$typeof===v||e.$$typeof===g||e.$$typeof===m)},js.typeOf=b}()),js);var Ss=Os,Ts={};Ts[Ss.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ts[Ss.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Ps="undefined"!=typeof document;function Cs(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var zs=function(e,t,r){!function(e,t,r){var n=e.key+"-"+t.name;(!1===r||!1===Ps&&void 0!==e.compat)&&void 0===e.registered[n]&&(e.registered[n]=t.styles)}(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+n:"",i,e.sheet,!0);Ps||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!Ps&&0!==o.length)return o}};var _s={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ds="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Ls="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",As=/[A-Z]|^ms/g,Ns=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ms=function(e){return 45===e.charCodeAt(1)},Is=function(e){return null!=e&&"boolean"!=typeof e},Bs=ns((function(e){return Ms(e)?e:e.replace(As,"-$&").toLowerCase()})),Rs=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ns,(function(e,t,r){return Zs={name:t,styles:r,next:Zs},t}))}return 1===_s[e]||Ms(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var Fs=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,qs=["normal","none","initial","inherit","unset"],Hs=Rs,Ws=/^-ms-/,Vs=/-(.)/g,Us={};Rs=function(e,t){if("content"===e&&("string"!=typeof t||-1===qs.indexOf(t)&&!Fs.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=Hs(e,t);return""===r||Ms(e)||-1===e.indexOf("-")||void 0!==Us[e]||(Us[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Ws,"ms-").replace(Vs,(function(e,t){return t.toUpperCase()}))+"?")),r}}var Gs="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function $s(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===r.toString())throw new Error(Gs);return r}switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return Zs={name:r.name,styles:r.styles,next:Zs},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)Zs={name:n.name,styles:n.styles,next:Zs},n=n.next;var o=r.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==r.map&&(o+=r.map),o}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=$s(e,t,r[o])+";";else for(var i in r){var a=r[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=i+"{"+t[a]+"}":Is(a)&&(n+=Bs(i)+":"+Rs(i,a)+";");else{if("NO_COMPONENT_SELECTOR"===i&&"production"!==process.env.NODE_ENV)throw new Error(Gs);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=$s(e,t,a);switch(i){case"animation":case"animationName":n+=Bs(i)+":"+l+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===i&&console.error(Ls),n+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)Is(a[c])&&(n+=Bs(i)+":"+Rs(i,a[c])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var i=Zs,a=r(e);return Zs=i,$s(e,t,a)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],c=r.replace(Ns,(function(e,t,r){var n="animation"+l.length;return l.push("const "+n+" = keyframes`"+r.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+n+"}"}));l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var Ys,Zs,Xs=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Ys=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Qs=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";Zs=void 0;var i,a=e[0];null==a||void 0===a.raw?(n=!1,o+=$s(r,t,a)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(Ds),o+=a[0]);for(var l=1;l<e.length;l++)o+=$s(r,t,e[l]),n&&("production"!==process.env.NODE_ENV&&void 0===a[l]&&console.error(Ds),o+=a[l]);"production"!==process.env.NODE_ENV&&(o=o.replace(Ys,(function(e){return i=e,""}))),Xs.lastIndex=0;for(var c,s="";null!==(c=Xs.exec(o));)s+="-"+c[1];var u=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+s;return"production"!==process.env.NODE_ENV?{name:u,styles:o,map:i,next:Zs,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:o,next:Zs}},Js="undefined"!=typeof document,Ks={}.hasOwnProperty,eu=o("undefined"!=typeof HTMLElement?ws({key:"css"}):null);"production"!==process.env.NODE_ENV&&(eu.displayName="EmotionCacheContext"),eu.Provider;var tu=function(e){return t((function(t,r){var n=i(eu);return e(t,n,r)}))};Js||(tu=function(e){return function(t){var n=i(eu);return null===n?(n=ws({key:"css"}),r(eu.Provider,{value:n},e(t,n))):e(t,n)}});var ru=o({});"production"!==process.env.NODE_ENV&&(ru.displayName="EmotionThemeContext");var nu=function(){return null},ou=tu((function(e,t,o){var a=e.css;"string"==typeof a&&void 0!==t.registered[a]&&(a=t.registered[a]);var l=e.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,c=[a],s="";"string"==typeof e.className?s=Cs(t.registered,c,e.className):null!=e.className&&(s=e.className+" ");var u=Qs(c,void 0,i(ru));if("production"!==process.env.NODE_ENV&&-1===u.name.indexOf("-")){var f=e.__EMOTION_LABEL_PLEASE_DO_NOT_USE__;f&&(u=Qs([u,"label:"+f+";"]))}var p=zs(t,u,"string"==typeof l);s+=t.key+"-"+u.name;var d={};for(var h in e)!Ks.call(e,h)||"css"===h||"__EMOTION_TYPE_PLEASE_DO_NOT_USE__"===h||"production"!==process.env.NODE_ENV&&"__EMOTION_LABEL_PLEASE_DO_NOT_USE__"===h||(d[h]=e[h]);d.ref=o,d.className=s;var m=r(l,d),y=r(nu,null);if(!Js&&void 0!==p){for(var v,g=u.name,b=u.next;void 0!==b;)g+=" "+b.name,b=b.next;y=r("style",((v={})["data-emotion"]=t.key+" "+g,v.dangerouslySetInnerHTML={__html:p},v.nonce=t.sheet.nonce,v))}return r(n,null,y,m)}));"production"!==process.env.NODE_ENV&&(ou.displayName="EmotionCssPropInternal");var iu=!1,au=tu((function(e,t){"production"===process.env.NODE_ENV||iu||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),iu=!0);var n=e.styles,o=Qs([n],void 0,i(ru));if(!Js){for(var c,s=o.name,u=o.styles,f=o.next;void 0!==f;)s+=" "+f.name,u+=f.styles,f=f.next;var p=!0===t.compat,d=t.insert("",{name:s,styles:u},t.sheet,p);return p?null:r("style",((c={})["data-emotion"]=t.key+"-global "+s,c.dangerouslySetInnerHTML={__html:d},c.nonce=t.sheet.nonce,c))}var h=a();return l((function(){var e=t.key+"-global",r=new pc({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,i=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(n=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),h.current=[r,n],function(){r.flush()}}),[t]),l((function(){var e=h.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&zs(t,o.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",o,r,!1)}}),[t,o.name]),null}));function lu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Qs(t)}"production"!==process.env.NODE_ENV&&(au.displayName="EmotionGlobal");var cu=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var i=t[n];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var l in"production"!==process.env.NODE_ENV&&void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",i)i[l]&&l&&(a&&(a+=" "),a+=l);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function su(e,t,r){var n=[],o=Cs(e,n,r);return n.length<2?r:o+t(n)}var uu=function(){return null},fu=tu((function(e,t){var o="",a="",l=!1,c=function(){if(l&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=Qs(r,t.registered);if(Js)zs(t,i,!1);else{var c=zs(t,i,!1);void 0!==c&&(o+=c)}return Js||(a+=" "+i.name),t.key+"-"+i.name},s={css:c,cx:function(){if(l&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return su(t.registered,c,cu(r))},theme:i(ru)},u=e.children(s);l=!0;var f,p=r(uu,null);Js||0===o.length||(p=r("style",((f={})["data-emotion"]=t.key+" "+a.substring(1),f.dangerouslySetInnerHTML={__html:o},f.nonce=t.sheet.nonce,f)));return r(n,null,p,u)}));if("production"!==process.env.NODE_ENV&&(fu.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV){var pu="undefined"!=typeof document,du="undefined"!=typeof jest;if(pu&&!du){var hu="undefined"!=typeof globalThis?globalThis:pu?window:global,mu="__EMOTION_REACT_"+"11.7.1".split(".")[0]+"__";hu[mu]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),hu[mu]=!0}}y("\n\n.mdhui-layout {\n padding-bottom: env(safe-area-inset-bottom);\n color: var(--mdhui-text-color-1);\n}");var yu=function(){return yu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yu.apply(this,arguments)};function vu(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function l(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,l)}c((n=n.apply(e,t||[])).next())}))}function gu(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function bu(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var wu,Ou,xu,ku=lu(wu||(wu=bu(["\n:root {\n --main-bg-color: #f5f5f5;\n\n --mdhui-background-color-0: #fff;\n --mdhui-background-color-1: #f5f5f5;\n --mdhui-background-color-2: #ddd;\n --mdhui-background-color-3: #eee;\n\n --mdhui-border-color-0: #eee;\n --mdhui-border-color-1: #ddd;\n --mdhui-border-color-2: #bbb;\n --mdhui-border-color-3: #000;\n\n --mdhui-text-color-0: #000;\n --mdhui-text-color-1: #333;\n --mdhui-text-color-2: #555;\n --mdhui-text-color-3: #999;\n --mdhui-text-color-4: #bbb;\n\n --mdhui-color-theme: #5381c3;\n --mdhui-color-primary: #5381c3;\n --mdhui-color-success: #00AE42;\n --mdhui-color-warning: #FF671D;\n --mdhui-color-danger: #C40D3C;\n\n --mdhui-box-shadow-color-0: #ddd;\n --mdhui-box-shadow-color-1: #aaa;\n\n --mdhui-box-shadow-0: 0px 9px 9px 0px var(--mdhui-box-shadow-color-0);\n --mdhui-box-shadow-1: 0px 0px 5px 0px var(--mdhui-box-shadow-color-1);\n\n --mdhui-overlay-gradient:linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 244, 240, 0.2) 100%);\n\n --mdhui-fadein-animation: fadein 1s;\n}\n\n@keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@-moz-keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@-webkit-keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}"],["\n:root {\n --main-bg-color: #f5f5f5;\n\n --mdhui-background-color-0: #fff;\n --mdhui-background-color-1: #f5f5f5;\n --mdhui-background-color-2: #ddd;\n --mdhui-background-color-3: #eee;\n\n --mdhui-border-color-0: #eee;\n --mdhui-border-color-1: #ddd;\n --mdhui-border-color-2: #bbb;\n --mdhui-border-color-3: #000;\n\n --mdhui-text-color-0: #000;\n --mdhui-text-color-1: #333;\n --mdhui-text-color-2: #555;\n --mdhui-text-color-3: #999;\n --mdhui-text-color-4: #bbb;\n\n --mdhui-color-theme: #5381c3;\n --mdhui-color-primary: #5381c3;\n --mdhui-color-success: #00AE42;\n --mdhui-color-warning: #FF671D;\n --mdhui-color-danger: #C40D3C;\n\n --mdhui-box-shadow-color-0: #ddd;\n --mdhui-box-shadow-color-1: #aaa;\n\n --mdhui-box-shadow-0: 0px 9px 9px 0px var(--mdhui-box-shadow-color-0);\n --mdhui-box-shadow-1: 0px 0px 5px 0px var(--mdhui-box-shadow-color-1);\n\n --mdhui-overlay-gradient:linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 244, 240, 0.2) 100%);\n\n --mdhui-fadein-animation: fadein 1s;\n}\n\n@keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@-moz-keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@-webkit-keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}"]))),Eu=lu(Ou||(Ou=bu(["\n@media (prefers-color-scheme: dark) {\n :root {\n --mdhui-background-color-0: #1a1b1e;\n --mdhui-background-color-1: #141517;\n --mdhui-background-color-2: #000;\n\n --mdhui-border-color-0: #333;\n --mdhui-border-color-1: #444;\n --mdhui-border-color-2: #555;\n --mdhui-border-color-3: #FFF;\n\n --mdhui-text-color-0: #FFF;\n --mdhui-text-color-1: #a6a7ab;\n --mdhui-text-color-2: #aaa;\n --mdhui-text-color-3: #777;\n --mdhui-text-color-4: #444;\n\n --mdhui-box-shadow-color-0: #333;\n --mdhui-box-shadow-color-1: #666;\n \n --mdhui-box-shadow-0: none;\n --mdhui-box-shadow-1: none;\n --mdhui-overlay-gradient:linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 11, 15, 0.2) 100%) !important;\n }\n}"],["\n@media (prefers-color-scheme: dark) {\n :root {\n --mdhui-background-color-0: #1a1b1e;\n --mdhui-background-color-1: #141517;\n --mdhui-background-color-2: #000;\n\n --mdhui-border-color-0: #333;\n --mdhui-border-color-1: #444;\n --mdhui-border-color-2: #555;\n --mdhui-border-color-3: #FFF;\n\n --mdhui-text-color-0: #FFF;\n --mdhui-text-color-1: #a6a7ab;\n --mdhui-text-color-2: #aaa;\n --mdhui-text-color-3: #777;\n --mdhui-text-color-4: #444;\n\n --mdhui-box-shadow-color-0: #333;\n --mdhui-box-shadow-color-1: #666;\n \n --mdhui-box-shadow-0: none;\n --mdhui-box-shadow-1: none;\n --mdhui-overlay-gradient:linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 11, 15, 0.2) 100%) !important;\n }\n}"]))),ju=lu(xu||(xu=bu(["\na {\n color: var(--mdhui-color-theme);\n}\n\nhtml {\n font-size: 17px;\n line-height: 1.3em;\n}\n\n/* this needs to be moved to a component called unstyledButton */\nbutton {\n color: inherit;\n font: inherit;\n text-align: inherit;\n line-height: inherit;\n -webkit-font-smoothing: inherit;\n -moz-osx-font-smoothing: inherit;\n -webkit-appearance: none;\n background: none;\n border: none;\n display: block;\n box-sizing: border-box;\n padding: 0;\n cursor: pointer;\n margin: 0;\n}\n\n@@supports (font: -apple-system-body) {\n html {\n font: -apple-system-body;\n }\n}\n\nbody {\n padding: 0;\n margin: 0;\n font-family: ui-rounded, -apple-system, Helvetica, Arial, sans-serif;\n background: var(--mdhui-background-color-1);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}"],["\na {\n color: var(--mdhui-color-theme);\n}\n\nhtml {\n font-size: 17px;\n line-height: 1.3em;\n}\n\n/* this needs to be moved to a component called unstyledButton */\nbutton {\n color: inherit;\n font: inherit;\n text-align: inherit;\n line-height: inherit;\n -webkit-font-smoothing: inherit;\n -moz-osx-font-smoothing: inherit;\n -webkit-appearance: none;\n background: none;\n border: none;\n display: block;\n box-sizing: border-box;\n padding: 0;\n cursor: pointer;\n margin: 0;\n}\n\n@@supports (font: -apple-system-body) {\n html {\n font: -apple-system-body;\n }\n}\n\nbody {\n padding: 0;\n margin: 0;\n font-family: ui-rounded, -apple-system, Helvetica, Arial, sans-serif;\n background: var(--mdhui-background-color-1);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}"]))),Su=o({darkMode:!1});function Tu(t){var r="mdhui-layout";t.className&&(r+=" "+t.className),t.bodyBackgroundColor?document.body.style.backgroundColor=t.bodyBackgroundColor:document.body.style.removeProperty("background-color"),t.statusBarStyle&&f.setStatusBarStyle(t.statusBarStyle);var n={darkMode:!1};return t.autoDarkMode&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(n.darkMode=!0),e.createElement(Su.Provider,{value:n},e.createElement(au,{styles:ku}),!t.noGlobalStyles&&e.createElement(au,{styles:ju}),t.autoDarkMode&&e.createElement(au,{styles:Eu}),e.createElement("div",{className:r},t.stylesheetPath&&e.createElement("link",{rel:"stylesheet",type:"text/css",href:t.stylesheetPath}),t.children))}function Pu(t){var r={};i(Su).darkMode&&!t.selected&&(r.filter="invert(1)");var n="mdhui-face";function o(){return 1==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M184%2c224c-29.824%2c0-58.232%2c12.632-77.96%2c34.664c-2.944%2c3.296-2.664%2c8.344%2c0.624%2c11.296c1.52%2c1.368%2c3.432%2c2.04%2c5.336%2c2.04 c2.192%2c0%2c4.384-0.896%2c5.96-2.664C134.656%2c250.688%2c158.728%2c240%2c184%2c240c25.28%2c0%2c49.352%2c10.688%2c66.04%2c29.336 c2.944%2c3.296%2c8.008%2c3.568%2c11.296%2c0.624c3.288-2.944%2c3.568-8%2c0.624-11.296C242.24%2c236.64%2c213.832%2c224%2c184%2c224z'/%3e %3cpath d='M184%2c0C82.536%2c0%2c0%2c82.544%2c0%2c184s82.536%2c184%2c184%2c184s184-82.544%2c184-184S285.464%2c0%2c184%2c0z M184%2c352 c-92.632%2c0-168-75.36-168-168S91.368%2c16%2c184%2c16s168%2c75.36%2c168%2c168S276.632%2c352%2c184%2c352z'/%3e %3cpath d='M280%2c128c-4.424%2c0-8%2c3.584-8%2c8c0%2c13.232-10.768%2c24-24%2c24s-24-10.768-24-24c0-4.416-3.576-8-8-8s-8%2c3.584-8%2c8 c0%2c22.056%2c17.944%2c40%2c40%2c40c22.056%2c0%2c40-17.944%2c40-40C288%2c131.584%2c284.424%2c128%2c280%2c128z'/%3e %3cpath d='M160%2c136c0-4.416-3.576-8-8-8s-8%2c3.584-8%2c8c0%2c13.232-10.768%2c24-24%2c24s-24-10.768-24-24c0-4.416-3.576-8-8-8s-8%2c3.584-8%2c8 c0%2c22.056%2c17.944%2c40%2c40%2c40C142.056%2c176%2c160%2c158.056%2c160%2c136z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":2==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M184%2c0C82.544%2c0%2c0%2c82.544%2c0%2c184s82.544%2c184%2c184%2c184c101.464%2c0%2c184-82.544%2c184-184S285.464%2c0%2c184%2c0z M184%2c352 c-92.64%2c0-168-75.36-168-168S91.36%2c16%2c184%2c16c92.632%2c0%2c168%2c75.36%2c168%2c168S276.632%2c352%2c184%2c352z'/%3e %3cpath d='M144%2c152c0-13.232-10.768-24-24-24s-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24S144%2c165.232%2c144%2c152z M112%2c152c0-4.408%2c3.592-8%2c8-8 s8%2c3.592%2c8%2c8s-3.592%2c8-8%2c8S112%2c156.408%2c112%2c152z'/%3e %3cpath d='M248%2c128c-13.232%2c0-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24s24-10.768%2c24-24S261.232%2c128%2c248%2c128z M248%2c160 c-4.416%2c0-8-3.592-8-8s3.584-8%2c8-8c4.416%2c0%2c8%2c3.592%2c8%2c8S252.416%2c160%2c248%2c160z'/%3e %3cpath d='M184%2c224c-29.824%2c0-58.24%2c12.632-77.96%2c34.664c-2.944%2c3.296-2.664%2c8.352%2c0.624%2c11.296 c3.296%2c2.952%2c8.352%2c2.664%2c11.296-0.624C134.648%2c250.688%2c158.72%2c240%2c184%2c240c25.28%2c0%2c49.352%2c10.688%2c66.04%2c29.336 c1.576%2c1.768%2c3.768%2c2.664%2c5.96%2c2.664c1.896%2c0%2c3.816-0.672%2c5.336-2.04c3.288-2.944%2c3.568-8%2c0.624-11.296 C242.24%2c236.64%2c213.832%2c224%2c184%2c224z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":3==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M184%2c0C82.544%2c0%2c0%2c82.544%2c0%2c184s82.544%2c184%2c184%2c184s184-82.544%2c184-184S285.456%2c0%2c184%2c0z M184%2c352 c-92.64%2c0-168-75.36-168-168S91.36%2c16%2c184%2c16s168%2c75.36%2c168%2c168S276.64%2c352%2c184%2c352z'/%3e %3cpath d='M120%2c176c13.232%2c0%2c24-10.768%2c24-24s-10.768-24-24-24s-24%2c10.768-24%2c24S106.768%2c176%2c120%2c176z M120%2c144 c4.408%2c0%2c8%2c3.592%2c8%2c8s-3.592%2c8-8%2c8s-8-3.592-8-8S115.592%2c144%2c120%2c144z'/%3e %3cpath d='M248%2c128c-13.232%2c0-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24s24-10.768%2c24-24S261.232%2c128%2c248%2c128z M248%2c160 c-4.408%2c0-8-3.592-8-8s3.592-8%2c8-8c4.408%2c0%2c8%2c3.592%2c8%2c8S252.408%2c160%2c248%2c160z'/%3e %3cpath d='M264%2c224H104c-4.416%2c0-8%2c3.584-8%2c8c0%2c4.416%2c3.584%2c8%2c8%2c8h160c4.416%2c0%2c8-3.584%2c8-8C272%2c227.584%2c268.416%2c224%2c264%2c224z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":4==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M184%2c0C82.544%2c0%2c0%2c82.544%2c0%2c184s82.544%2c184%2c184%2c184s184-82.544%2c184-184S285.456%2c0%2c184%2c0z M184%2c352 c-92.64%2c0-168-75.36-168-168S91.36%2c16%2c184%2c16s168%2c75.36%2c168%2c168S276.64%2c352%2c184%2c352z'/%3e %3cpath d='M144%2c152c0-13.232-10.768-24-24-24s-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24S144%2c165.232%2c144%2c152z M112%2c152c0-4.408%2c3.592-8%2c8-8 s8%2c3.592%2c8%2c8s-3.592%2c8-8%2c8S112%2c156.408%2c112%2c152z'/%3e %3cpath d='M248%2c128c-13.232%2c0-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24s24-10.768%2c24-24S261.232%2c128%2c248%2c128z M248%2c160 c-4.408%2c0-8-3.592-8-8s3.592-8%2c8-8c4.408%2c0%2c8%2c3.592%2c8%2c8S252.408%2c160%2c248%2c160z'/%3e %3cpath d='M261.336%2c226.04c-3.296-2.952-8.36-2.664-11.296%2c0.624C233.352%2c245.312%2c209.288%2c256%2c184%2c256 c-25.28%2c0-49.352-10.688-66.04-29.336c-2.952-3.288-8-3.576-11.296-0.624c-3.296%2c2.944-3.568%2c8-0.624%2c11.296 C125.76%2c259.368%2c154.176%2c272%2c184%2c272c29.832%2c0%2c58.248-12.64%2c77.96-34.664C264.904%2c234.04%2c264.624%2c228.984%2c261.336%2c226.04z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":5==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M261.336%2c226.04c-3.296-2.952-8.36-2.664-11.296%2c0.624C233.352%2c245.312%2c209.288%2c256%2c184%2c256 c-25.28%2c0-49.352-10.688-66.04-29.336c-2.952-3.288-8-3.576-11.296-0.624c-3.296%2c2.944-3.568%2c8-0.624%2c11.296 C125.76%2c259.368%2c154.176%2c272%2c184%2c272c29.832%2c0%2c58.248-12.64%2c77.96-34.664C264.904%2c234.04%2c264.624%2c228.984%2c261.336%2c226.04z'/%3e %3cpath d='M184%2c0C82.544%2c0%2c0%2c82.544%2c0%2c184s82.544%2c184%2c184%2c184s184-82.544%2c184-184S285.456%2c0%2c184%2c0z M184%2c352 c-92.64%2c0-168-75.36-168-168S91.36%2c16%2c184%2c16s168%2c75.36%2c168%2c168S276.64%2c352%2c184%2c352z'/%3e %3cpath d='M248%2c128c-22.056%2c0-40%2c17.944-40%2c40c0%2c4.416%2c3.584%2c8%2c8%2c8c4.416%2c0%2c8-3.584%2c8-8c0-13.232%2c10.768-24%2c24-24s24%2c10.768%2c24%2c24 c0%2c4.416%2c3.584%2c8%2c8%2c8c4.416%2c0%2c8-3.584%2c8-8C288%2c145.944%2c270.056%2c128%2c248%2c128z'/%3e %3cpath d='M144%2c168c0%2c4.416%2c3.584%2c8%2c8%2c8s8-3.584%2c8-8c0-22.056-17.944-40-40-40c-22.056%2c0-40%2c17.944-40%2c40c0%2c4.416%2c3.584%2c8%2c8%2c8 s8-3.584%2c8-8c0-13.232%2c10.768-24%2c24-24S144%2c154.768%2c144%2c168z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":void 0}return t.selected&&(n+=" mdhui-face-selected"),t.className&&(n+=" "+t.className),t.onClick?e.createElement("button",{className:n,onClick:t.onClick},e.createElement("img",{src:o(),style:r}),e.createElement(Cu,null)):e.createElement("div",{className:n},e.createElement("img",{src:o(),style:r}),e.createElement(Cu,null))}function Cu(){return e.createElement("div",{className:"mdhui-shiny-overlay"})}y(".mdhui-shiny-overlay\n{\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n background: var(--mdhui-overlay-gradient);\n pointer-events: none;\n}\n");function zu(t){var r=0;t.entries.forEach((function(e){e.value>r&&(r=e.value)}));var n=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([],t.entries,!0).sort((function(e,t){return t.value-e.value||(e.label>t.label?1:t.label>e.label?-1:0)}));return e.createElement("div",{className:"mdhui-histogram"},n.map((function(t,n){return e.createElement("div",{className:"mdhui-histogram-entry"+(t.onSelect?" mdhui-histogram-entry-clickable":""),key:n,onClick:function(){var e;return null===(e=t.onSelect)||void 0===e?void 0:e.call(t)}},e.createElement("div",{className:"mdhui-histogram-entry-bar-wrapper"},e.createElement("div",{className:"mdhui-histogram-entry-bar",style:{background:t.color,width:t.value/r*100+"%"}},e.createElement(Cu,null)),e.createElement("div",{className:"mdhui-histogram-entry-value",style:{width:8*r.toString().length+"px"}},t.value)),e.createElement("div",{className:"mdhui-histogram-entry-label"},t.label))})))}y(".mdhui-histogram\n{\n padding: 16px;\n}\n\n .mdhui-histogram .mdhui-histogram-entry\n {\n padding-top: 8px;\n font-size: 15px;\n }\n\n .mdhui-histogram .mdhui-histogram-entry.mdhui-histogram-entry-clickable\n {\n cursor: pointer;\n }\n\n .mdhui-histogram .mdhui-histogram-entry.mdhui-histogram-entry-clickable .mdhui-histogram-entry-label\n {\n text-decoration: underline;\n color: var(--mdhui-color-theme);\n }\n\n .mdhui-histogram .mdhui-histogram-entry-bar-wrapper\n {\n display: flex;\n }\n\n .mdhui-histogram .mdhui-histogram-entry-bar\n {\n position: relative;\n height: 16px;\n border-radius: 8px;\n }\n\n .mdhui-histogram .mdhui-histogram-entry-value\n {\n padding-left: 4px;\n line-height: 16px;\n font-size: 12px;\n font-weight: bold;\n }\n");var _u={},Du={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="arrows-rotate",r=[128472,"refresh","sync"],n="f021",o="M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V448c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H176c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z";e.definition={prefix:"fas",iconName:t,icon:[512,512,r,n,o]},e.faArrowsRotate=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(Du),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Du;e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faRefresh=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(_u);function Lu(){return e.createElement("div",{className:"mdhui-loading-indicator"},e.createElement(b,{icon:_u.faRefresh,spin:!0}))}y(".mdhui-loading-indicator {\n padding: 16px;\n color: var(--mdhui-text-color-4);\n text-align: center;\n}");y(".mdhui-navigation-bar {\n text-align: left;\n padding: 16px;\n padding-top: calc(56px + env(safe-area-inset-top, 0px));\n font-size: 1.2em;\n box-sizing: border-box;\n padding-bottom: 16px;\n position: -webkit-sticky;\n position: sticky;\n z-index: 2;\n top: 0;\n font-weight: bold;\n background: var(--mdhui-background-color-1);\n}\n\n.mdhui-navigation-bar.scroll-shadow {\n box-shadow: var(--mdhui-box-shadow-1);\n}\n\n.mdhui-navigation-bar .icon {\n width: 32px;\n vertical-align: middle;\n}\n\n.mdhui-navigation-bar .close-button {\n position: absolute;\n right: 16px;\n top: calc(16px + env(safe-area-inset-top, 0px));\n font-weight: normal;\n font-size: .8em;\n text-decoration: none;\n cursor: pointer;\n}\n\n.mdhui-navigation-bar .back-button {\n position: absolute;\n left: 16px;\n top: calc(16px + env(safe-area-inset-top, 0px));\n font-weight: normal;\n font-size: .8em;\n text-decoration: none;\n cursor: pointer;\n}");var Au={back:"Back",close:"Close","connect-ehr-title-prefix":"Connect ","connect-ehr-title-divider":" or ","connect-ehr-title-providers":"Provider","connect-ehr-title-health-plans":"Health Plan","connect-ehr-connected":"We are receiving your EHR data!","connect-ehr-needs-attention":"One of your accounts requires attention.","connect-ehr-text":"Your electronic health records are an important source of information. They could help researchers make new discoveries. Connect your provider or health plan (ex: Medicare) with @@PROJECT_NAME@@.","connect-ehr-text-connected":"Thank you for sharing your EHR data with @@PROJECT_NAME@@. Connect another provider to share more data or manage your EHR connections.","connect-ehr-not-enabled":"EHR linking is not enabled for this project.","search-for-provider":"Search for Provider or Health Plan",reconnect:"Connection expired. Please reconnect.",connected:"Connected",search:"Search","connect-fitbit-intro":"You can share data from your Fitbit account if you have one. To begin, click or tap below to log in with your Fitbit credentials.","connect-fitbit-button":"Connect Fitbit","received-fitbit-data":"We are receiving your Fitbit data!","downloading-data":"Downloading data...","all-tasks-complete":"All Tasks Complete!","view-all":"View All",tasks:"Tasks","incomplete-tasks":"Incomplete Tasks","completed-tasks":"Completed Tasks",overdue:"Overdue","due-today":"Due Today","due-tomorrow":"Due Tomorrow",due:"Due","due-in":"Due in",days:"days",notifications:"Notifications",support:"Support","all-notifications":"All Notifications",steps:"Steps","resting-heart-rate":"Resting Heart Rate","distance-traveled":"Distance Traveled","google-fit-share":"Tap to share fitness data",devices:"Devices","last-sync":"Last synced",completed:"Completed","ehr-intro":"Your electronic health records (EHR) are an important source of information. If you help us gather your EHR, researchers will use this data to make discoveries.","external-accounts-title-divider":" / ","external-accounts-title-providers":"Providers","external-accounts-title-health-plans":"Health Plans","external-accounts-title-devices":"Devices","external-accounts-error":"One of your accounts requires attention","external-accounts-loading":"Your data is currently being downloaded from your linked health plans and providers. Please check back in a few moments to view your data.","external-account-authorization-expired":"Authorization expired","external-account-fetching-data":"Retrieving data...","external-account-deleting":"Removing...","external-account-last-updated":"Last updated","external-account-error":"Unexpected error","external-account-reconnect":"Reconnect","external-account-refresh":"Refresh","external-account-remove":"Remove","device-data-no-data":"If you have connected Apple Health, Google Fit, or Fitbit, check back later to view your data.","no-notifications-received":"No notifications received","next-button-text":"Next"},Nu={back:"Atrás",close:"Cerrar","connect-ehr-title-prefix":"Conectar ","connect-ehr-title-divider":" o ","connect-ehr-title-providers":"proveedor","connect-ehr-title-health-plans":"plan de salud","connect-ehr-connected":"¡Estamos recibiendo su información de EHR!","connect-ehr-needs-attention":"Una de tus cuentas requiere atención.","connect-ehr-text":"Sus registros electrónicos de salud son una fuente de información importante. Con ellos, usted podría ayudar a los investigadores de la salud a realizar nuevos descubrimientos. Conecte a su proveedor o a su plan de salud (por ejemplo: Medicare) con @@PROJECT_NAME@@.","connect-ehr-text-connected":"Gracias por compartir tus datos de EHR con @@PROJECT_NAME@@. Conecta a otro proveedor para compartir más datos o administrar tus conexiones de EHR.","connect-ehr-not-enabled":"EHR enlacando no está habilitado para este proyecto.","search-for-provider":"Encontrar a mi Proveedor",reconnect:"Volver a conectar",connected:"Conectado",search:"Buscar","connect-fitbit-intro":"Si ya tiene una cuenta Fitbit, puede compartir información desde allí. Para empezar, presione el siguiente botón para ingresar a su cuenta de Fitbit:","connect-fitbit-button":"Conectar a Fitbit","received-fitbit-data":"¡Estamos recibiendo su información de Fitbit!","downloading-data":"Descargando datos...","all-tasks-complete":"¡Todas las tareas terminadas!","view-all":"Ver todo",tasks:"Tareas","incomplete-tasks":"Tareas incompletas","completed-tasks":"Tareas completadas",overdue:"Vencidos","due-today":"Vence hoy","due-tomorrow":"Vence mañana",due:"Vence","due-in":"Vencido en",days:"dias",notifications:"Notificaciones",support:"Soporte","all-notifications":"Todas las notificaciones",steps:"Pasos","resting-heart-rate":"Ritmo cardíaco en reposo","distance-traveled":"Distancia Viajada","google-fit-share":"Toca para compartir datos de condición físic",devices:"Dispositivos","last-sync":"Última sincronización",completed:"Completadas","ehr-intro":"Sus registros de salud electrónicos son fuentes importantes de información. Pueden ayudar a investigadores hacer nuevos descubrimientos.","external-accounts-title-divider":" / ","external-accounts-title-providers":"Proveedores","external-accounts-title-health-plans":"Planes de Salud","external-accounts-title-devices":"Dispositivos","external-accounts-error":"Una de tus cuentas requiere atención","external-accounts-loading":"Actualmente tus datos se están descargando de tus planes de salud y proveedores vinculados. Por favor, vuelve a consultar en unos momentos para ver tus datos.","external-account-authorization-expired":"Venció la autorización","external-account-fetching-data":"Recuperando datos","external-account-deleting":"Eliminando...","external-account-last-updated":"Última actualización","external-account-error":"Error imprevisto","external-account-reconnect":"Volver a conectar","external-account-refresh":"Actualizar","external-account-remove":"Eliminar","device-data-no-data":"Si ha conectado Apple Health, Google Fit o Fitbit, vuelva más tarde para ver sus datos.","no-notifications-received":"No se recibieron notificaciones.","next-button-text":"Siguiente"},Mu=f.getCurrentLanguage().toLowerCase().startsWith("es")?Nu:Au;function Iu(t){var r=a(null);return l((function(){var e=r.current;function t(){window.scrollY>0?null==e||e.classList.add("scroll-shadow"):null==e||e.classList.remove("scroll-shadow")}return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t)}})),e.createElement("div",{className:"mdhui-navigation-bar",ref:r},t.showBackButton&&e.createElement("a",{className:"back-button",href:"javascript:{}",onClick:function(){f.back()}},e.createElement(b,{icon:sc.faChevronLeft}),t.backButtonText?t.backButtonText:Mu.back),t.title&&e.createElement("div",{className:"title"},e.createElement("span",null,t.title)),t.showCloseButton&&e.createElement("a",{className:"close-button",href:"javascript:{}",onClick:function(){f.dismiss()}},t.closeButtonText?t.closeButtonText:Mu.close),t.children)}function Bu(t){return t.children?e.createElement("div",{className:"mdhui-section"},t.children):null}y(".mdhui-section {\n margin-top: 16px;\n margin-bottom: 16px;\n background: var(--mdhui-background-color-0);\n box-shadow: var(--mdhui-box-shadow-0);\n animation: var(--mdhui-fadein-animation);\n -moz-animation: var(--mdhui-fadein-animation);\n -webkit-animation: var(--mdhui-fadein-animation);\n position: relative;\n}\n\n.mdhui-section:empty {\n display: none;\n}");function Ru(t){var r=100/t.segments.length;return e.createElement("div",{className:"mdhui-segmented-control"},t.segments.map((function(n){return e.createElement("button",{className:"mdhui-segment "+(n.key==t.selectedSegment?"mdhui-segment-selected":""),key:n.key,onClick:function(){return t.onSegmentSelected(n.key)},style:{width:r+"%"}},n.key==t.selectedSegment&&e.createElement(Cu,null),n.title)})))}y(".mdhui-segmented-control\n{\n border-radius: 32px;\n border: solid 1px var(--mdhui-color-primary);\n background: var(--mdhui-background-color-0);\n overflow: hidden;\n padding: 1px;\n}\n\n .mdhui-segmented-control .mdhui-segment\n {\n display: inline-block;\n font-size: .7em;\n cursor: pointer;\n text-align: center;\n padding: 8px;\n box-sizing: border-box;\n font-weight: bold;\n color: var(--mdhui-color-primary);\n position: relative;\n border-radius: 32px;\n overflow: hidden;\n vertical-align: top;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .mdhui-segmented-control .mdhui-segment:last-child\n {\n border: none;\n }\n\n .mdhui-segmented-control .mdhui-segment.mdhui-segment-selected\n {\n background: var(--mdhui-color-primary);\n color: #FFF;\n }\n");var Fu={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="repeat",r=[128257],n="f363",o="M0 224c0 17.7 14.3 32 32 32s32-14.3 32-32c0-53 43-96 96-96H320v32c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-9.2-9.2-22.9-11.9-34.9-6.9S320 19.1 320 32V64H160C71.6 64 0 135.6 0 224zm512 64c0-17.7-14.3-32-32-32s-32 14.3-32 32c0 53-43 96-96 96H192V352c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V448H352c88.4 0 160-71.6 160-160z";e.definition={prefix:"fas",iconName:t,icon:[512,512,r,n,o]},e.faRepeat=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(Fu);var qu={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="trash",r=[],n="f1f8",o="M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z";e.definition={prefix:"fas",iconName:t,icon:[448,512,r,n,o]},e.faTrash=e.definition,e.prefix="fas",e.iconName=t,e.width=448,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(qu);function Hu(t){var r=f.getCurrentLanguage().toLowerCase().startsWith("es")?ic:qe,n=c(""),o=n[0],i=n[1];function a(){return o||t.externalAccount.status}return e.createElement("div",{className:"mdhui-single-external-account"},e.createElement("div",{className:"external-account-header"},t.externalAccount.provider.logoUrl&&e.createElement("img",{alt:t.externalAccount.provider.name,src:t.externalAccount.provider.logoUrl,className:"external-account-provider-logo"}),!t.externalAccount.provider.logoUrl&&e.createElement("div",{className:"external-account-provider-name"},t.externalAccount.provider.name),"deleting"!==a()&&"fetchingData"!==a()&&e.createElement("button",{className:"delete-button",onClick:function(){i("deleting"),f.deleteExternalAccount(t.externalAccount.id).then((function(){t.onAccountRemoved(t.externalAccount)})).catch((function(){i("")}))},title:Mu["external-account-remove"]},e.createElement(b,{icon:qu.faTrash}))),e.createElement("div",{className:"external-account-status"},"unauthorized"===a()&&e.createElement("p",null,e.createElement("span",{className:"error"},Mu["external-account-authorization-expired"])),"fetchingData"===a()&&e.createElement("p",null,e.createElement(b,{icon:_u.faRefresh,spin:!0})," ",Mu["external-account-fetching-data"]),"fetchComplete"===a()&&e.createElement("p",null,Mu["external-account-last-updated"]," ",e.createElement("strong",null,Ke(Bl(t.externalAccount.lastRefreshDate),new Date,{locale:r}))),"error"===a()&&e.createElement("p",{className:"error"},Mu["external-account-error"]),("fetchComplete"===a()||"error"===a())&&e.createElement("p",null,e.createElement("a",{href:"javascript:{}",onClick:function(){i("fetchingData"),f.refreshExternalAccount(t.externalAccount.id).then()}},e.createElement(b,{icon:Fu.faRepeat})," ",Mu["external-account-refresh"])),"unauthorized"===a()&&e.createElement("p",null,e.createElement("a",{href:"javascript:{}",onClick:function(){return t.onReconnectAccount(t.externalAccount)}},e.createElement(b,{icon:Fu.faRepeat})," ",Mu["external-account-reconnect"])),"deleting"===a()&&e.createElement("p",null,e.createElement(b,{icon:_u.faRefresh,spin:!0})," ",Mu["external-account-deleting"])))}y(".mdhui-single-external-account {\n position: relative;\n overflow: hidden;\n background: var(--mdhui-background-color-0);\n}\n\n.mdhui-single-external-account .external-account-header {\n position: relative;\n padding: 8px;\n font-weight: bold;\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-single-external-account .external-account-header .delete-button {\n position: absolute;\n right: 0;\n top: 0;\n cursor: pointer;\n padding: 16px;\n color: var(--mdhui-text-color-4);\n width: auto;\n font-size: .88em;\n border: none;\n background: none;\n height: 100%;\n}\n\n.mdhui-single-external-account .external-account-header .external-account-provider-logo {\n height: 24px;\n display: block;\n background: #FFF;\n padding: 8px;\n border-radius: 8px;\n}\n\n.mdhui-single-external-account .external-account-header .external-account-provider-name {\n font-size: 1em;\n font-weight: bold;\n}\n\n.mdhui-single-external-account .external-account-status {\n padding: 16px;\n padding-bottom: 0;\n padding-top: 0;\n font-size: .88em;\n}\n\n.mdhui-single-external-account .external-account-status p {\n margin-bottom: 16px;\n margin-top: 16px;\n}\n\n.mdhui-single-external-account .external-account-status a {\n cursor: pointer;\n text-decoration: none;\n}\n\n.mdhui-single-external-account .external-account-status .error {\n color: var(--mdhui-color-danger);\n}");function Wu(t){var r,n;var o,i=f.getCurrentLanguage().toLowerCase().startsWith("es")?ic:qe;return e.createElement("div",{className:"mdhui-single-notification"},(null===(r=t.notification.content)||void 0===r?void 0:r.title)&&e.createElement("div",{className:"notification-title"},t.notification.content.title),(null===(n=t.notification.content)||void 0===n?void 0:n.body)&&e.createElement("div",{className:"notification-body"},t.notification.content.body),e.createElement("div",{className:"notification-date"},(o=Ke(Bl(t.notification.sentDate),new Date,{locale:i})).charAt(0).toUpperCase()+o.slice(1)))}y(".mdhui-single-notification\n{\n padding: 16px;\n border-bottom: solid 1px var(--mdhui-border-color-0);\n position: relative;\n}\n\n .mdhui-single-notification:last-child\n {\n border: none;\n }\n\n .mdhui-single-notification > .notification-title\n {\n font-weight: bold;\n }\n\n .mdhui-single-notification > .notification-body\n {\n font-size: .88em;\n }\n\n .mdhui-single-notification > .notification-date\n {\n color: var(--mdhui-text-color-2);\n margin-top: 16px;\n font-size: .75em;\n }\n");y(".mdhui-single-survey-task\n{\n padding: 16px;\n display: grid;\n grid-template-columns: max-content auto max-content;\n grid-column-gap: 16px;\n align-items: center;\n width: 100%;\n}\n\n .mdhui-single-survey-task .status-icon\n {\n color: var(--mdhui-text-color-3);\n }\n\n .mdhui-single-survey-task.complete .status-icon\n {\n color: var(--mdhui-color-success);\n }\n\n .mdhui-single-survey-task .survey-name\n {\n font-size: .88em;\n font-weight: bold;\n }\n\n .mdhui-single-survey-task .survey-description,\n .mdhui-single-survey-task .completed-date\n {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n }\n\n .mdhui-single-survey-task .due-date\n {\n font-size: .88em;\n color: var(--mdhui-color-primary);\n }\n\n .mdhui-single-survey-task .due-date.warning\n {\n color: var(--mdhui-color-warning);\n font-weight: bold;\n }\n\n .mdhui-single-survey-task .due-date.danger\n {\n color: var(--mdhui-color-danger);\n font-weight: bold;\n }\n\n .mdhui-single-survey-task .indicator\n {\n font-size: 16px;\n color: var(--mdhui-text-color-3);\n }\n\n .mdhui-single-survey-task.incomplete\n {\n cursor: pointer;\n }\n");var Vu={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="circle-check",r=[61533,"check-circle"],n="f058",o="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z";e.definition={prefix:"fas",iconName:t,icon:[512,512,r,n,o]},e.faCircleCheck=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(Vu);var Uu={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="circle-half-stroke",r=[9680,"adjust"],n="f042",o="M448 256c0-106-86-192-192-192V448c106 0 192-86 192-192zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z";e.definition={prefix:"fas",iconName:t,icon:[512,512,r,n,o]},e.faCircleHalfStroke=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(Uu);var Gu={};function $u(t){var r=function(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()},n=new Date,o=M(new Date,{days:1}),i="",a="",l=f.getCurrentLanguage().toLowerCase().startsWith("es")?ic:qe;if(t.task.dueDate){var c=Bl(t.task.dueDate);if(r(c,o))i=Mu["due-tomorrow"],a="warning";else if(r(c,n))i=Mu["due-today"],a="warning";else if(et(n,c))i=Mu.overdue,a="danger";else{var s;s=function(e,t){return z(1,arguments),Qe(e,Date.now(),t)}(new Date(t.task.dueDate),{locale:l}),i=Mu["due-in"]+" "+s}}return"incomplete"==t.task.status?e.createElement("button",{className:"mdhui-single-survey-task incomplete",onClick:function(){return e=t.task.surveyName,void(t.disableClick||f.startSurvey(e));var e}},e.createElement("div",{className:"status-icon"},t.task.hasSavedProgress&&e.createElement(b,{icon:Uu.faCircleHalfStroke}),!t.task.hasSavedProgress&&e.createElement(b,{icon:Gu.faCircle})),e.createElement("div",null,e.createElement("div",{className:"survey-name"},t.task.surveyDisplayName),e.createElement("div",{className:"survey-description"},t.descriptionIcon," ",t.task.surveyDescription),!t.hideDueDate&&i&&e.createElement("div",{className:"due-date "+a},i)),e.createElement("div",{className:"indicator"},e.createElement(b,{icon:m.faChevronRight}))):"complete"==t.task.status&&t.task.endDate?e.createElement("div",{className:"mdhui-single-survey-task complete"},e.createElement("div",{className:"status-icon"},e.createElement(b,{icon:Vu.faCircleCheck})),e.createElement("div",null,e.createElement("div",{className:"survey-name"},t.task.surveyDisplayName),e.createElement("div",{className:"completed-date"},Mu.completed," ",Ke(Bl(t.task.endDate),new Date,{locale:l})))):null}!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="circle",r=[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],n="f111",o="M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z";e.definition={prefix:"far",iconName:t,icon:[512,512,r,n,o]},e.faCircle=e.definition,e.prefix="far",e.iconName=t,e.width=512,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(Gu);function Yu(t){var r=100/t.bars.length;return e.createElement("div",{className:"mdhui-spark-bar-chart"},e.createElement("div",{className:"mdhui-spark-bar-chart-average",style:{bottom:100*t.averageFillPercent+"%"}}),e.createElement("div",{className:"mdhui-spark-bar-chart-bars"},t.bars.map((function(t,n){return e.createElement("div",{key:n,className:"mdhui-spark-bar-chart-bar",style:{backgroundColor:t.color,height:100*t.barFillPercent+"%",width:r+"%",left:r*n+"%"}},e.createElement(Cu,null))}))))}y(".mdhui-spark-bar-chart\n{\n position: relative;\n height: 72px;\n}\n\n .mdhui-spark-bar-chart .mdhui-spark-bar-chart-bars\n {\n margin-left: 8px;\n width: calc( 100% - 16px);\n position: relative;\n height: 100%;\n }\n\n .mdhui-spark-bar-chart .mdhui-spark-bar-chart-bars .mdhui-spark-bar-chart-bar\n {\n position: absolute;\n bottom: 0;\n z-index: 2;\n }\n\n .mdhui-spark-bar-chart .mdhui-spark-bar-chart-average\n {\n border-top: dashed 1px #ddd;\n position: absolute;\n left: 0px;\n right: 0px;\n z-index: 1;\n }\n");function Zu(t){return e.createElement("button",{onClick:function(){return t.onValueChanged(!t.isOn)},className:"mdhui-switch"+(t.isOn?" mdhui-switch-on":""),style:{backgroundColor:t.isOn?t.onBackgroundColor:"#eee"}},e.createElement("div",{className:"mdhui-switch-circle"}))}y(".mdhui-switch\n{\n border: 1px solid #dfdfdf;\n border-radius: 20px;\n cursor: pointer;\n display: inline-block;\n height: 30px;\n position: relative;\n vertical-align: middle;\n width: 50px;\n background: #eee;\n -webkit-box-sizing: content-box;\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n -webkit-background-clip: content-box;\n background-clip: content-box;\n}\n\n .mdhui-switch.mdhui-switch-on\n {\n background: var(--mdhui-color-primary);\n }\n\n .mdhui-switch .mdhui-switch-circle\n {\n background: #fff;\n border-radius: 100%;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);\n height: 30px;\n position: absolute;\n top: 0;\n width: 30px;\n }\n\n .mdhui-switch.mdhui-switch-on .mdhui-switch-circle\n {\n right: 0;\n }\n");function Xu(t){var r=i(Su),n={};return t.color&&(n={backgroundColor:t.color}),!t.color&&r.darkMode&&f.setStatusBarStyle("lightContent"),e.createElement("div",{className:"mdhui-status-bar-background",style:n})}y(".mdhui-status-bar-background {\n position: sticky;\n position: -webkit-sticky;\n left: 0;\n top: 0;\n right: 0;\n height: env(safe-area-inset-top);\n width: 100%;\n z-index: 1;\n background: var(--mdhui-background-color-0);\n}");function Qu(t){return t.children?e.createElement("div",{className:"mdhui-text-block"},t.children):null}y(".mdhui-text-block\n{\n margin: 16px;\n font-size: .88em;\n}\n");function Ju(t){var r=["mdhui-tracker-item"];t.onClick&&r.push("selectable"),t.selected?r.push("selected"):r.push("unselected"),t.bordered&&r.push("bordered");var n={borderColor:t.color,color:t.color,backgroundColor:t.color};return e.createElement("button",{className:r.join(" "),style:n,onClick:function(){return t.onClick?t.onClick():null}},t.text,e.createElement(Cu,null),t.badge&&t.selected&&e.createElement("div",{className:"badge"},t.badge))}y(".mdhui-tracker-item {\n padding: 8px;\n padding-right: 16px;\n padding-left: 16px;\n color: var(--mdhui-background-color-0);\n border-radius: 32px;\n font-size: .88em;\n display: inline-block;\n margin: 8px;\n position: relative;\n border: solid 1px #000;\n user-select: none;\n}\n\n.mdhui-tracker-item.selectable {\n cursor: pointer;\n}\n\n.mdhui-tracker-item.selected {\n box-shadow: var(--mdhui-box-shadow-1);\n color: #FFF !important;\n background-color: inherit;\n}\n\n.mdhui-tracker-item.unselected {\n background-color: var(--mdhui-background-color-0) !important;\n}\n\n.mdhui-tracker-item.mdhui-shiny-overlay {\n border-radius: 16px;\n}\n\n.mdhui-tracker-item.bordered .mdhui-shiny-overlay {\n left: 1px;\n right: 1px;\n bottom: 1px;\n top: 1px;\n border: solid 2px #FFF;\n border-radius: 32px;\n}\n\n.mdhui-tracker-item .badge {\n position: absolute;\n right: -4px;\n top: -4px;\n border-radius: 32px;\n padding: 3px;\n background: linear-gradient(to bottom, #555 0%, #888 100%);\n font-size: .5em;\n font-weight: bold;\n text-align: center;\n min-width: 10px;\n user-select: none;\n font-size: .62em;\n}");function Ku(t){var r=a(null);s((function(){var e;if(t.onStartDateChange){var n=function(e){var o,i,a,l;0==(null===(o=r.current)||void 0===o?void 0:o.scrollLeft)?(t.onStartDateChange(M(t.startDate,{weeks:-1})),null===(i=r.current)||void 0===i||i.removeEventListener("scroll",n)):(null===(a=r.current)||void 0===a?void 0:a.scrollLeft)==2*window.innerWidth&&(t.onStartDateChange(M(t.startDate,{weeks:1})),null===(l=r.current)||void 0===l||l.removeEventListener("scroll",n))};return null===(e=r.current)||void 0===e||e.addEventListener("scroll",n),function(){var e;null===(e=r.current)||void 0===e||e.removeEventListener("scroll",n)}}}),[t.startDate]);for(var n=[],o=[],i=[],l=M(t.startDate,{days:-7}),c=0;c<21;c++)c<7?n.push(l):c<14?o.push(l):i.push(l),l=M(l,{days:1});function u(t){return e.createElement("div",{className:"mdhui-week-calendar-date-label"},e.createElement("div",{className:"mdhui-week-calendar-day-of-week"}," ",$e(t,"E").substr(0,1)),e.createElement("div",{className:"mdhui-week-calendar-day-of-month"},$e(t,"d")))}function f(e){var r=["mdhui-week-calendar-day"];return e>new Date?r.push("mdhui-week-calendar-day-future"):t.onDateSelected&&r.push("mdhui-week-calendar-day-selectable"),t.selectedDate&&Je(e).substr(0,10)==Je(t.selectedDate).substr(0,10)&&r.push("mdhui-week-calendar-day-selected"),r}return s((function(){r.current&&(r.current.scrollLeft=window.innerWidth)})),r.current&&(r.current.scrollLeft=window.innerWidth),e.createElement("div",{className:"mdhui-week-calendar",ref:r},t.loading&&e.createElement("div",{className:"mdhui-week-calendar-loading"},e.createElement(Lu,null)),e.createElement("div",{className:"mdhui-week-calendar-week"},n.map((function(r){return e.createElement("div",{key:r.getTime(),className:"mdhui-week-calendar-day"},t.dayRenderer(r.getFullYear(),r.getMonth(),r.getDate(),!1),!t.hideDateLabel&&u(r))}))),e.createElement("div",{className:"mdhui-week-calendar-week"},o.map((function(r){return e.createElement("button",{key:r.getTime(),className:f(r).join(" "),onClick:function(){var e;(e=r)>new Date||t.onDateSelected&&t.onDateSelected(e)}},t.dayRenderer(r.getFullYear(),r.getMonth(),r.getDate(),!0),!t.hideDateLabel&&u(r))}))),M(t.startDate,{days:7})<new Date&&e.createElement("div",{className:"mdhui-week-calendar-week"},i.map((function(r){return e.createElement("div",{key:r.getTime(),className:f(r).join(" ")},t.dayRenderer(r.getFullYear(),r.getMonth(),r.getDate(),!1),!t.hideDateLabel&&u(r))}))))}y(".mdhui-week-calendar {\n background: var(--mdhui-background-color-0);\n overflow-x: scroll;\n overflow-y: hidden;\n z-index: 0;\n position: relative;\n display: flex;\n scroll-snap-type: x mandatory;\n scrollbar-width: none;\n border-top: solid 1px var(--mdhui-border-color-1);\n border-bottom: solid 1px var(--mdhui-border-color-1);\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-loading {\n position: absolute;\n width: 100%;\n left: 100%;\n top: calc(50% - 10px);\n}\n\n.mdhui-week-calendar * {\n user-select: none;\n}\n\n.mdhui-week-calendar::-webkit-scrollbar {\n display: none;\n /* Safari and Chrome */\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-week {\n min-width: 100%;\n scroll-snap-align: start;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day {\n width: calc(14.28% - 1px);\n border-left: solid 1px var(--mdhui-border-color-1);\n overflow: hidden;\n position: relative;\n display: inline-block;\n vertical-align: top;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day:first-child {\n width: 14.28%;\n border-left: none;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-date-label {\n padding-top: 4px;\n line-height: 16px;\n padding-bottom: 8px;\n text-align: center;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-week {\n font-size: 10px;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-month {\n font-size: 14px;\n display: inline-block;\n text-align: center;\n width: 24px;\n height: 24px;\n border-radius: 24px;\n line-height: 24px;\n margin-top: 2px;\n margin-bottom: 2px;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-selectable {\n cursor: pointer;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-selected {\n background: var(--mdhui-background-color-2);\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-selected .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-month {\n background-color: var(--mdhui-color-theme);\n color: #FFF;\n font-weight: bold;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-future>* {\n opacity: .4;\n}");y(".mdhui-connect-ehr {\n background: var(--mdhui-background-color-0);\n position: relative;\n width: 100%;\n text-align: left;\n border: none;\n font-size: 1em;\n line-height: 1.2em;\n cursor: pointer;\n}\n\n.mdhui-connect-ehr .error-content {\n padding: 16px;\n}\n\n.mdhui-connect-ehr .content {\n padding: 16px 42px 16px 16px;\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-connect-ehr .connection-status {\n padding: 16px 42px 0 16px;\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-connect-ehr .connection-status .success svg {\n color: var(--mdhui-color-success);\n}\n\n.mdhui-connect-ehr .connection-status .warning {\n color: var(--mdhui-color-danger);\n}\n\n.mdhui-connect-ehr .indicator {\n position: absolute;\n top: calc(50% - 8px);\n right: 16px;\n font-size: 16px;\n color: var(--mdhui-text-color-2);\n}");var ef={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Vu;e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faCheckCircle=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(ef);var tf={};function rf(t){var r=c(!0),n=r[0],o=r[1],i=c(!1),a=i[0],l=i[1],u=c(null),p=u[0],d=u[1],h=c(!1),y=h[0],v=h[1],g=c(!1),w=g[0],O=g[1];function x(){if(t.previewState){if("notEnabled"==t.previewState)return;return l(!0),d("PROJECT"),"enabledConnected"==t.previewState?(v(!0),O(!1)):"enabledNeedsAttention"==t.previewState&&(v(!0),O(!0)),void o(!1)}f.getDataCollectionSettings().then((function(e){l(e.ehrEnabled),e.ehrEnabled&&f.getProjectInfo().then((function(e){d(e.name),f.getExternalAccounts().then((function(e){e=e.filter((function(e){return-1!=["Provider","Health Plan"].indexOf(e.provider.category)})),v(e.length>0),O(e.some((function(e){return"unauthorized"==e.status||"error"==e.status}))),o(!1)}))}))}))}return s((function(){return x(),f.on("applicationDidBecomeVisible",x),f.on("externalAccountSyncComplete",x),function(){f.off("applicationDidBecomeVisible",x),f.off("externalAccountSyncComplete",x)}}),[]),a?n?null:e.createElement("button",{className:"mdhui-connect-ehr",onClick:function(){"preview"==t.applicationUrl?console.log("PREVIEW: Opening the connect EHR application."):f.openApplication(t.applicationUrl)}},e.createElement(cc,{title:Mu["connect-ehr-title-prefix"]+Mu["connect-ehr-title-providers"]+Mu["connect-ehr-title-divider"]+Mu["connect-ehr-title-health-plans"]}),y?e.createElement("div",null,e.createElement("div",{className:"connection-status"},w?e.createElement("div",{className:"warning"},e.createElement(b,{icon:tf.faTriangleExclamation})," ",Mu["connect-ehr-needs-attention"]):e.createElement("div",{className:"success"},e.createElement(b,{icon:ef.faCheckCircle})," ",Mu["connect-ehr-connected"])),e.createElement("div",{className:"content"},Mu["connect-ehr-text-connected"].replace("@@PROJECT_NAME@@",p))):e.createElement("div",{className:"content"},Mu["connect-ehr-text"].replace("@@PROJECT_NAME@@",p)),e.createElement("div",{className:"indicator"},e.createElement(b,{icon:m.faChevronRight})),e.createElement(Cu,null)):"displayError"==t.disabledBehavior?e.createElement("div",{className:"mdhui-connect-ehr"},e.createElement("div",{className:"error-content"},Mu["connect-ehr-not-enabled"])):null}!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="triangle-exclamation",r=[9888,"exclamation-triangle","warning"],n="f071",o="M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z";e.definition={prefix:"fas",iconName:t,icon:[512,512,r,n,o]},e.faTriangleExclamation=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(tf);var nf={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=tf;e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faExclamationTriangle=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(nf);function of(t){var r=c(!0),n=r[0],o=r[1],i=c(!1),a=i[0],l=i[1],u=c(null),p=u[0],d=u[1];function h(){var e=564;return f.baseUrl&&!f.baseUrl.startsWith("https://mdhorg.ce.dev")||(e=2),t.fitbitProviderID&&(e=t.fitbitProviderID),e}function m(){if(t.previewState){if("notEnabled"==t.previewState)return;return l(!0),"notConnected"==t.previewState?void o(!1):(d({id:1,lastRefreshDate:Je(M(new Date,{hours:-1})),status:t.previewState,provider:{name:"Fitbit",category:"Device Manufacturer",id:h(),logoUrl:""}}),void o(!1))}f.getDataCollectionSettings().then((function(e){l(e.fitbitEnabled),e.fitbitEnabled?f.getExternalAccounts().then((function(e){for(var t=0;t<e.length;t++)e[t].provider.id==h()&&d(e[t]);o(!1)})):o(!1)}))}function y(){f.connectExternalAccount(h())}s((function(){return m(),f.on("applicationDidBecomeVisible",m),f.on("externalAccountSyncComplete",m),function(){f.off("applicationDidBecomeVisible",m),f.off("externalAccountSyncComplete",m)}}),[]);var v=null==p?void 0:p.status;if("fetchComplete"==(null==p?void 0:p.status)){var g=M(Bl(p.lastRefreshDate),{hours:3});et(new Date,g)&&(f.refreshExternalAccount(p.id),v="fetchingData")}return a?e.createElement("div",{className:"mdhui-connect-fitbit"},t.title&&e.createElement(cc,{title:t.title}),n&&e.createElement(Lu,null),!n&&e.createElement("div",{className:"content"},!p&&e.createElement("div",null,e.createElement("div",{className:"subtitle"},Mu["connect-fitbit-intro"]),e.createElement(x,{onClick:function(){return y()}},Mu["connect-fitbit-button"])),p&&"fetchComplete"==v&&e.createElement("div",{className:"subtitle success"},e.createElement(b,{icon:ef.faCheckCircle})," ",Mu["received-fitbit-data"]),p&&"fetchingData"==v&&e.createElement("div",{className:"subtitle downloading"},e.createElement(b,{icon:_u.faRefresh,spin:!0})," ",Mu["downloading-data"]),p&&"unauthorized"==v&&e.createElement("div",null,e.createElement("div",{className:"subtitle reconnect"},e.createElement(b,{icon:nf.faExclamationTriangle})," ",Mu.reconnect),e.createElement(x,{onClick:function(){return y()}},Mu["connect-fitbit-button"])))):"displayError"!=t.disabledBehavior||n?null:e.createElement("div",{className:"mdhui-connect-fitbit"},e.createElement("div",{className:"content"},"Fitbit is not enabled for this project."))}y(".mdhui-connect-fitbit .title {\n font-weight: bold;\n}\n\n.mdhui-connect-fitbit .subtitle {\n font-size: .88em;\n font-weight: normal;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-connect-fitbit .subtitle.reconnect {\n color: var(--mdhui-color-danger);\n font-weight: bold;\n}\n\n.mdhui-connect-fitbit .subtitle.success svg {\n color: var(--mdhui-color-success);\n}\n\n.mdhui-connect-fitbit .mdhui-button {\n margin-top: 16px;\n}\n\n.mdhui-connect-fitbit .content {\n padding: 16px;\n}");y(".mdhui-device-data-month-chart {\n position: relative;\n}\n\n.mdhui-device-data-month-chart .title {\n padding: 16px;\n padding-bottom: 0;\n position: relative;\n font-weight: bold;\n float: left;\n}\n\n.mdhui-device-data-month-chart .average {\n font-weight: normal;\n float: right;\n font-size: .7em;\n padding: 16px;\n padding-top: 21px;\n padding-bottom: 0;\n}\n\n.mdhui-device-data-month-chart .average .average-value {\n font-weight: bold;\n}\n\n\n.mdhui-device-data-month-chart .chart-container {\n padding: 16px;\n height: 150px;\n position: relative;\n}\n\n.mdhui-device-data-month-chart .no-data-label,\n.mdhui-device-data-month-chart .mdhui-loading-indicator {\n position: absolute;\n left: 0;\n top: calc(50% - 40px);\n text-align: center;\n width: 100%;\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n box-sizing: border-box;\n padding: 16px;\n}\n\n.mdhui-device-data-month-chart .recharts-cartesian-axis-tick {\n font-size: 11px;\n}\n\n.mdhui-device-data-month-chart .graph-tooltip {\n padding: 4px;\n font-size: 12px;\n background: var(--mdhui-background-color-0);\n border-radius: 5px;\n box-shadow: var(--mdhui-box-shadow-0);\n animation: fadein 1s;\n -moz-animation: fadein 1s;\n -webkit-animation: fadein 1s;\n border: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-device-data-month-chart .graph-tooltip .graph-date {\n padding: 4px;\n}\n\n.mdhui-device-data-month-chart .graph-tooltip table {\n border-spacing: 0;\n border-collapse: collapse;\n}\n\n.mdhui-device-data-month-chart .graph-tooltip table tr:nth-child(odd) {\n background: var(--mdhui-background-color-2);\n}\n\n.mdhui-device-data-month-chart .graph-tooltip table th {\n padding: 4px;\n padding-right: 8px;\n text-align: left;\n font-weight: normal;\n}\n\n.mdhui-device-data-month-chart .graph-tooltip table td {\n padding: 4px;\n text-align: left;\n font-weight: bold;\n}\n\n.mdhui-device-data-month-chart .recharts-cartesian-axis-tick {\n fill: var(--mdhui-text-color-1);\n}");var af=require("recharts/es6/chart/LineChart").LineChart,lf=require("recharts/es6/component/ResponsiveContainer").ResponsiveContainer,cf=require("recharts/es6/cartesian/XAxis").XAxis,sf=require("recharts/es6/cartesian/YAxis").YAxis,uf=require("recharts/es6/component/Tooltip").Tooltip,ff=require("recharts/es6/cartesian/CartesianGrid").CartesianGrid,pf=require("recharts/es6/cartesian/Line").Line;function df(e){return Je(e).substr(0,10)}function hf(e,t,r){return"FitbitSteps"==e?mf(t,r):"FitbitRestingHeartRates"==e||"AppleHealthSteps"==e?yf(t,r):"AppleHealthDistanceRunningWalking"==e?function(e,t){var r=new Date(e,t,1,0,0,0,0),n=M(r,{months:1}),o={};for(;r<n;)o[df(r)]=Math.floor(500*Math.random()),r=M(r,{hours:1});return o}(t,r):"GoogleFitSteps"==e?function(e,t){var r=new Date(e,t,1,0,0,0,0),n=M(r,{months:1}),o={};for(;r<n;)o[df(r)]=Math.floor(500*Math.random()),r=M(r,{hours:1});return o}(t,r):mf(t,r)}function mf(e,t){for(var r=new Date(e,t,1,0,0,0,0),n=M(r,{months:1}),o={};r<n;)o[df(r)]=3e3+Math.floor(1e4*Math.random()),r=M(r,{days:1});return o}function yf(e,t){for(var r=new Date(e,t,1,0,0,0,0),n=M(r,{months:1}),o={};r<n;)o[df(r)]=60+Math.floor(5*Math.random()),r=M(r,{days:1});return o}function vf(e){var t=[],r=function(n){var o=yu({},e);return n&&(o.pageID=n),f.queryDeviceData(o).then((function(e){return t=t.concat(e.deviceDataPoints),e.nextPageID?r(e.nextPageID):t}))};return r()}function gf(e,t){var r=e.startDate;t.startDate<r&&(r=t.startDate);var n=e.endDate;return t.endDate>n&&(n=t.endDate),{startDate:r,endDate:n}}function bf(e){for(var t,r,n=[],o=(e=e.sort((function(e,t){return e.startDate.getTime()-t.startDate.getTime()})))[0],i=1;i<e.length;i++)t=o,(r=e[i]).startDate>=t.startDate&&r.startDate<=t.endDate||r.endDate>=t.startDate&&r.endDate<=t.endDate||t.startDate>=r.startDate&&t.startDate<=r.endDate||t.endDate>=r.startDate&&t.endDate<=r.endDate?o=gf(o,e[i]):(n.push(o),o=e[i]);n.push(o);var a=0;return n.forEach((function(e){a+=function(e,t,r){z(2,arguments);var n=Y(e,t)/6e4;return X(null==r?void 0:r.roundingMethod)(n)}(e.endDate,e.startDate)})),a}function wf(e,t,r){return vf({namespace:"AppleHealth",type:"SleepAnalysisInterval",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(n){var o={};n.forEach((function(e){if(e.observationDate&&e.startDate&&e.value==r)for(var t=function(e){for(var t=[],r=Bl(e.startDate),n=Bl(e.observationDate),o=M(new Date(r.getFullYear(),r.getMonth(),r.getDate(),18,0,0,0),{days:-1});o<n;){var i=M(o,{days:1});if(i>r){var a=new Date(o),l=new Date(i);r>=o&&r<i&&(a=r),n>=o&&n<i&&(l=n),t.push({startDate:a,endDate:l})}o=i}return t}(e),n=0;n<t.length;n++){var i=Je(M(t[n].startDate,{hours:6})).substring(0,10);o[i]||(o[i]=[]),o[i].push(t[n])}}));for(var i={};e<t;){var a=e.toISOString().substr(0,10),l=o[a];l&&(i[a]=bf(l)),e=M(e,{days:1})}return i}))}function Of(e,t){return vf({namespace:"AppleHealth",type:"HourlySteps",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=df(Bl(e.startDate));t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}function xf(e,t,r){return vf({namespace:"Fitbit",type:r,observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=e.startDate.substr(0,10);t[r]||(t[r]=0),t[r]+=parseInt(e.value)}})),t}))}function kf(e,t,r){return vf({namespace:"Fitbit",type:"HeartRateZone",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if("Out of Range"!=e.value&&(!r||e.value==r)&&e.properties&&e.properties.Minutes&&e.startDate){var n=e.startDate.substr(0,10);t[n]||(t[n]=0),t[n]+=parseInt(e.properties.Minutes)}})),t}))}function Ef(e,t,r){return vf({namespace:"Fitbit",type:e,observedAfter:M(t,{days:-1}).toISOString(),observedBefore:M(r,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate&&0!=parseInt(e.value)){var r=e.startDate.substr(0,10);t[r]=Math.round(parseFloat(e.value))}})),t}))}function jf(e,t){return Ef("RestingHeartRate",e,t)}function Sf(e,t,r){return vf({namespace:"Fitbit",type:r,observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.observationDate){var r=Je(M(Bl(e.observationDate),{hours:6})).substr(0,10);t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}function Tf(e,t){return Ef("Steps",e,t)}cf.displayName="XAxis",sf.displayName="YAxis";var Pf,Cf={};function zf(e,t,r){Cf[e]={provider:t,availabilityCheck:r}}function _f(e,t){var r=Cf[e];if(!r)throw"Unknown data type:"+e;return r.availabilityCheck(t)}function Df(e,t,r){return Cf[e].provider(t,r).then((function(e){for(var n={};t<r;){var o=df(t);e[o]&&(n[o]=e[o]),t=M(t,{days:1})}return n}))}function Lf(e,t){return function(r){var n={namespace:e,type:t,limit:1};return r&&(n.modifiedAfter=r.toISOString()),f.queryDeviceData(n).then((function(e){return e.deviceDataPoints.length>0})).catch((function(){return!1}))}}function Af(t){var r=t.x,n=t.y;t.stroke;var o=t.payload.value;return e.createElement("text",{x:r,y:n+15,textAnchor:"middle",fontSize:"12"},o)}function Nf(t){var r=c(null),n=r[0],o=r[1],i=c(!1),l=i[0],u=i[1],p=c(!1),d=p[0],h=p[1],m=a(),y=new Date(t.year,t.month,1,0,0,0,0),v=M(y,{months:1});function g(){var e,r;if(t.previewState&&(h(!0),t.onDataDetected&&t.onDataDetected()),"Loading"==t.previewState&&u(!0),"WithData"==t.previewState){var n={};t.lines.forEach((function(e){var r=hf(e.dailyDataType,t.year,t.month);n[e.dailyDataType]=r})),o(n)}if("NoData"==t.previewState){n={};t.lines.forEach((function(e){n[e.dailyDataType]={}})),o(n),u(!1)}if(!t.previewState){!function(){if(!d){var e=t.lines.map((function(e){return _f(e.dailyDataType)}));Promise.all(e).then((function(e){e.find((function(e){return e}))&&(h(!0),t.onDataDetected&&t.onDataDetected())}))}}(),m.current=(null!==(e=m.current)&&void 0!==e?e:0)+1;var i=null!==(r=m.current)&&void 0!==r?r:0;u(!0);var a;a=t.lines.map((function(e){return Df(e.dailyDataType,y,v)})),Promise.all(a).then((function(e){if(i==m.current){for(var r={},n=0;n<t.lines.length;n++)r[t.lines[n].dailyDataType]=e[n];o(r),u(!1)}}))}}s((function(){return g(),f.on("applicationDidBecomeVisible",g),f.on("externalAccountSyncComplete",g),function(){f.off("applicationDidBecomeVisible",g),f.off("externalAccountSyncComplete",g)}}),[t]);for(var b=[],w=y,O=!1;w<v;){var x={day:w.getDate()};b.push(x);var k=df(w);t.lines.forEach((function(e){n&&(x[e.dailyDataType]=n[e.dailyDataType][k],e.valueConverter&&(x[e.dailyDataType]=e.valueConverter(x[e.dailyDataType])),x[e.dailyDataType]>0&&(O=!0))})),w=M(w,{days:1})}if(!d)return null;var E=function(){var e=t.lines.filter((function(e){return e.showAverage}));if(0==e.length)return null;if(e.length>1)return console.error("Only one line can display an average"),null;var r=e[0],n=b.map((function(e){return e[r.dailyDataType]}));return(n=n.filter((function(e){return!!e}))).length?(n.reduce((function(e,t){return e+t}))/n.length).toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:1}):null}();return e.createElement("div",{className:"mdhui-device-data-month-chart"},t.title&&e.createElement("div",{className:"title"},t.title),!l&&null!=E&&e.createElement("div",{className:"average"},"Daily Average: ",e.createElement("span",{className:"average-value"},E)),e.createElement("div",{style:{clear:"both"}}),e.createElement("div",{className:"chart-container"},(!O||l)&&e.createElement("div",null,!O&&!l&&e.createElement("div",{className:"no-data-label"},"No Data"),l&&e.createElement(Lu,null),e.createElement(lf,{width:"100%",height:150},e.createElement(af,{width:400,height:400,data:b,syncId:t.syncId},e.createElement(ff,{strokeDasharray:"3 3"}),e.createElement(sf,{axisLine:!1,interval:0,tickLine:!1,width:30,scale:"linear"}),e.createElement(cf,{id:"myXAxis",tick:Af,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))),O&&!l&&e.createElement(lf,{width:"100%",height:150},e.createElement(af,{width:400,height:400,data:b,syncId:t.syncId},t.lines.map((function(t){return e.createElement(pf,{key:t.dailyDataType,type:"monotone",dataKey:t.dailyDataType,stroke:"var(--mdhui-color-primary)"})})),e.createElement(uf,{content:e.createElement((function(r){var n=r.active,o=r.payload;if(r.label,n&&o&&o.length){var i=new Date(t.year,t.month,o[0].payload.day),a={};return t.lines.forEach((function(e){a[e.dailyDataType]=e.label})),e.createElement("div",{className:"graph-tooltip"},e.createElement("div",{className:"graph-date"},$e(i,"MM/dd/yyyy")),e.createElement("table",{className:"payload-values"},e.createElement("tbody",null,o.map((function(t){return e.createElement("tr",{key:t.dataKey},e.createElement("th",null,a[t.dataKey]),e.createElement("td",null,parseFloat(t.value.toFixed(2))))})))))}return null}),null)}),e.createElement(ff,{strokeDasharray:"3 3"}),e.createElement(sf,{tickFormatter:function(e){return e>=1e4?Math.floor(e/1e3)+"K":e},axisLine:!1,interval:0,tickLine:!1,width:30}),e.createElement(cf,{id:"myXAxis",tick:Af,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))))}function Mf(t){var r=c(!1),n=r[0],o=r[1],i=new Date,a=c(new Date(i.getFullYear(),i.getMonth(),1,0,0,0,0)),l=a[0],s=a[1];function u(){o(!0)}var f=l.getMonth(),p=l.getFullYear();return e.createElement(e.Fragment,null,!n&&e.createElement(Qu,null,Mu["device-data-no-data"]),e.createElement("div",{style:{display:n?"block":"none"}},e.createElement(uc,{intervalType:"Month",intervalStart:l,onIntervalChange:function(e){s(e)}}),e.createElement(Nf,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:Pf.FitbitSteps,label:Mu.steps}],title:"Fitbit "+Mu.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Nf,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:Pf.FitbitRestingHeartRate,label:Mu["resting-heart-rate"]}],title:"Fitbit "+Mu["resting-heart-rate"],month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Nf,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:Pf.AppleHealthSteps,label:Mu.steps}],title:"Apple Health "+Mu.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Nf,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:Pf.AppleHealthDistanceWalkingRunning,label:Mu["distance-traveled"],valueConverter:function(e){return 621371e-9*e}}],title:"Apple Health "+Mu["distance-traveled"]+" (Miles)",month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Nf,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:Pf.GoogleFitSteps,label:Mu.steps}],title:"Google Fit "+Mu.steps,month:f,year:p,syncId:"DeviceDataCharts"})))}!function(e){e.AppleHealthDistanceWalkingRunning="AppleHealthDistanceWalkingRunning",e.AppleHealthFlightsClimbed="AppleHealthFlightsClimbed",e.AppleHealthHeartRateRange="AppleHealthHeartRateRange",e.AppleHealthHrv="AppleHealthHrv",e.AppleHealthMaxHeartRate="AppleHealthMaxHeartRate",e.AppleHealthRestingHeartRate="AppleHealthRestingHeartRate",e.AppleHealthSleepMinutes="AppleHealthSleepMinutes",e.AppleHealthInBedMinutes="AppleHealthInBedMinutes",e.AppleHealthStandMinutes="AppleHealthStandMinutes",e.AppleHealthSteps="AppleHealthSteps",e.AppleHealthWalkingHeartRateAverage="AppleHealthWalkingHeartRateAverage",e.FitbitActiveMinutes="FitbitActiveMinutes",e.FitbitLightlyActiveMinutes="FitbitLightlyActiveMinutes",e.FitbitFairlyActiveMinutes="FitbitFairlyActiveMinutes",e.FitbitVeryActiveMinutes="FitbitVeryActiveMinutes",e.FitbitBreathingRate="FitbitBreathingRate",e.FitbitCaloriesBurned="FitbitCaloriesBurned",e.FitbitElevatedHeartRateMinutes="FitbitElevatedHeartRateMinutes",e.FitbitFatBurnHeartRateMinutes="FitbitFatBurnHeartRateMinutes",e.FitbitCardioHeartRateMinutes="FitbitCardioHeartRateMinutes",e.FitbitPeakHeartRateMinutes="FitbitPeakHeartRateMinutes",e.FitbitFloors="FitbitFloors",e.FitbitHrv="FitbitHrv",e.FitbitRestingHeartRate="FitbitRestingHeartRate",e.FitbitSleepMinutes="FitbitSleepMinutes",e.FitbitLightSleepMinutes="FitbitLightSleepMinutes",e.FitbitRemSleepMinutes="FitbitRemSleepMinutes",e.FitbitDeepSleepMinutes="FitbitDeepSleepMinutes",e.FitbitSpO2="FitbitSpO2",e.FitbitSteps="FitbitSteps",e.GoogleFitSteps="GoogleFitSteps",e.Steps="Steps",e.RestingHeartRate="RestingHeartRate"}(Pf||(Pf={})),zf(Pf.AppleHealthDistanceWalkingRunning,(function(e,t){return vf({namespace:"AppleHealth",type:"HourlyDistanceWalkingRunning",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=Je(Bl(e.startDate)).substring(0,10);t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}),Lf("AppleHealth",["HourlyDistanceWalkingRunning"])),zf(Pf.AppleHealthFlightsClimbed,(function(e,t){return vf({namespace:"AppleHealth",type:"FlightsClimbed",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=df(Bl(e.startDate));t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}),Lf("AppleHealth",["HourlySteps"])),zf(Pf.AppleHealthHeartRateRange,(function(e,t){return vf({namespace:"AppleHealth",type:["HourlyMaximumHeartRate","HourlyMinimumHeartRate"],observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(r){var n={};r.forEach((function(e){if(e.startDate){var t=df(Bl(e.startDate)),r=parseFloat(e.value);"HourlyMaximumHeartRate"==e.type&&(n[t]?(!n[t].MaxHeartRate||r>n[t].MaxHeartRate)&&(n[t].MaxHeartRate=r):n[t]={MaxHeartRate:r}),"HourlyMinimumHeartRate"==e.type&&(n[t]?(!n[t].MinHeartRate||r<n[t].MinHeartRate)&&(n[t].MinHeartRate=r):n[t]={MinHeartRate:r})}}));for(var o={};e<t;){var i=n[df(e)];i&&i.MaxHeartRate&&i.MinHeartRate&&(o[df(e)]=i.MaxHeartRate-i.MinHeartRate),e=M(e,{days:1})}return o}))}),Lf("AppleHealth",["HourlyMaximumHeartRate"])),zf(Pf.AppleHealthHrv,(function(e,t){return vf({namespace:"AppleHealth",type:"HeartRateVariability",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(r){var n={};r.forEach((function(e){if(e.startDate){var t=Je(Bl(e.startDate)).substring(0,10),r=parseFloat(e.value);n[t]||(n[t]=[]),n[t].push(r)}}));for(var o={};e<t;){var i=e.toISOString().substr(0,10);n[i]&&(o[i]=n[i].reduce((function(e,t){return e+t}))/n[i].length),e=M(e,{days:1})}return o}))}),Lf("AppleHealth",["HeartRateVariability"])),zf(Pf.AppleHealthMaxHeartRate,(function(e,t){return vf({namespace:"AppleHealth",type:"HourlyMaximumHeartRate",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=Je(Bl(e.startDate)).substring(0,10),n=parseFloat(e.value);t[r]?n>t[r]&&(t[r]=n):t[r]=n}})),t}))}),Lf("AppleHealth",["HourlyMaximumHeartRate"])),zf(Pf.AppleHealthRestingHeartRate,(function(e,t){return vf({namespace:"AppleHealth",type:"RestingHeartRate",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(r){var n={};r.forEach((function(e){if(e.startDate){var t=df(Bl(e.startDate)),r=parseFloat(e.value);n[t]||(n[t]=[]),n[t].push(r)}}));for(var o={};e<t;){var i=e.toISOString().substr(0,10);n[i]&&(o[i]=n[i].reduce((function(e,t){return e+t}))/n[i].length),e=M(e,{days:1})}return o}))}),Lf("AppleHealth",["RestingHeartRate"])),zf(Pf.AppleHealthSleepMinutes,(function(e,t){return wf(e,t,"Asleep")}),Lf("AppleHealth",["SleepAnalysisInterval"])),zf(Pf.AppleHealthInBedMinutes,(function(e,t){return wf(e,t,"InBed")}),Lf("AppleHealth",["SleepAnalysisInterval"])),zf(Pf.AppleHealthStandMinutes,(function(e,t){return vf({namespace:"AppleHealth",type:"AppleStandTime",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=df(Bl(e.startDate));t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}),Lf("AppleHealth",["AppleStandTime"])),zf(Pf.AppleHealthSteps,Of,Lf("AppleHealth",["HourlySteps"])),zf(Pf.AppleHealthWalkingHeartRateAverage,(function(e,t){return vf({namespace:"AppleHealth",type:"WalkingHeartRateAverage",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(r){var n={};r.forEach((function(e){if(e.startDate){var t=df(Bl(e.startDate)),r=parseFloat(e.value);n[t]||(n[t]=[]),n[t].push(r)}}));for(var o={};e<t;){var i=e.toISOString().substr(0,10);n[i]&&(o[i]=n[i].reduce((function(e,t){return e+t}))/n[i].length),e=M(e,{days:1})}return o}))}),Lf("AppleHealth",["WalkingHeartRateAverage"])),zf(Pf.FitbitActiveMinutes,(function(e,t){return xf(e,t,["MinutesVeryActive","MinutesFairlyActive","MinutesLightlyActive"])}),Lf("Fitbit",["MinutesVeryActive","MinutesFairlyActive","MinutesLightlyActive"])),zf(Pf.FitbitLightlyActiveMinutes,(function(e,t){return xf(e,t,["MinutesLightlyActive"])}),Lf("Fitbit",["MinutesLightlyActive"])),zf(Pf.FitbitFairlyActiveMinutes,(function(e,t){return xf(e,t,["MinutesFairlyActive"])}),Lf("Fitbit",["MinutesFairlyActive"])),zf(Pf.FitbitVeryActiveMinutes,(function(e,t){return xf(e,t,["MinutesVeryActive"])}),Lf("Fitbit",["MinutesVeryActive"])),zf(Pf.FitbitBreathingRate,(function(e,t){return Ef("BreathingRate",e,t)}),Lf("Fitbit",["BreathingRate"])),zf(Pf.FitbitCaloriesBurned,(function(e,t){return Ef("Calories",e,t)}),Lf("Fitbit",["Calories"])),zf(Pf.FitbitElevatedHeartRateMinutes,(function(e,t){return kf(e,t)}),Lf("Fitbit",["HeartRateZone"])),zf(Pf.FitbitFatBurnHeartRateMinutes,(function(e,t){return kf(e,t,"Fat Burn")}),Lf("Fitbit",["HeartRateZone"])),zf(Pf.FitbitCardioHeartRateMinutes,(function(e,t){return kf(e,t,"Cardio")}),Lf("Fitbit",["HeartRateZone"])),zf(Pf.FitbitPeakHeartRateMinutes,(function(e,t){return kf(e,t,"Peak")}),Lf("Fitbit",["HeartRateZone"])),zf(Pf.FitbitFloors,(function(e,t){return Ef("Floors",e,t)}),Lf("Fitbit",["HeartRateZone"])),zf(Pf.FitbitHrv,(function(e,t){return Ef("Hrv",e,t)}),Lf("Fitbit",["Floors"])),zf(Pf.FitbitRestingHeartRate,jf,Lf("Fitbit",["RestingHeartRate"])),zf(Pf.FitbitSleepMinutes,(function(e,t){return Sf(e,t,["SleepLevelRem","SleepLevelLight","SleepLevelDeep","SleepLevelAsleep"])}),Lf("Fitbit",["SleepLevelRem","SleepLevelLight","SleepLevelDeep","SleepLevelAsleep"])),zf(Pf.FitbitLightSleepMinutes,(function(e,t){return Sf(e,t,["SleepLevelLight"])}),Lf("Fitbit",["SleepLevelLight"])),zf(Pf.FitbitRemSleepMinutes,(function(e,t){return Sf(e,t,["SleepLevelRem"])}),Lf("Fitbit",["SleepLevelRem"])),zf(Pf.FitbitDeepSleepMinutes,(function(e,t){return Sf(e,t,["SleepLevelDeep"])}),Lf("Fitbit",["SleepLevelDeep"])),zf(Pf.FitbitSpO2,(function(e,t){return Ef("SpO2",e,t)}),Lf("Fitbit",["SpO2"])),zf(Pf.FitbitSteps,Tf,Lf("Fitbit",["Steps"])),zf(Pf.GoogleFitSteps,(function(e,t){return vf({namespace:"GoogleFit",type:"Steps",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=Je(Bl(e.startDate)).substring(0,10);t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}),Lf("GoogleFit",["Steps"])),zf(Pf.RestingHeartRate,(function(e,t){return vf({namespace:"AppleHealth",type:"RestingHeartRate",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(r){return jf(e,t).then((function(n){var o={};r.forEach((function(e){if(e.startDate){var t=df(Bl(e.startDate)),r=parseFloat(e.value);o[t]||(o[t]=[]),o[t].push(r)}}));for(var i={};e<t;){var a=df(e);n[a]&&(o[a]||(o[a]=[]),o[a].push(n[a])),o[a]&&(i[a]=o[a].reduce((function(e,t){return e+t}))/o[a].length),e=M(e,{days:1})}return i}))}))}),(function(e){return Lf("AppleHealth",["RestingHeartRate"])(e).then((function(t){return t||Lf("Fitbit",["RestingHeartRate"])(e)}))})),zf(Pf.Steps,(function(e,t){var r=Tf(e,t),n=Of(e,t);return Promise.all([r,n]).then((function(r){for(var n={};e<t;){var o=df(e),i=null;r[0][o]&&(i=r[0][o]),r[1][o]&&(null==i||r[1][o]>i)&&(i=r[1][o]),i&&(n[o]=i),e=M(e,{days:1})}return n}))}),(function(e){return Lf("AppleHealth",["Steps"])(e).then((function(t){return t||Lf("Fitbit",["Steps"])(e)}))}));var If=[{id:1,lastRefreshDate:M(new Date,{days:-1}).toISOString(),status:"fetchComplete",provider:{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"}},{id:2,lastRefreshDate:M(new Date,{hours:-8}).toISOString(),status:"unauthorized",provider:{id:1,name:"CareEvolution FHIR",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/1/logo"}},{id:3,lastRefreshDate:M(new Date,{hours:-2}).toISOString(),status:"fetchComplete",provider:{id:17,name:"CMS Sandbox",category:"Health Plan",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/17/logo"}},{id:4,lastRefreshDate:M(new Date,{hours:-3}).toISOString(),status:"fetchComplete",provider:{id:2,name:"Fitbit Staging",category:"Device Manufacturer",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/2/logo"}}];function Bf(t){var r=c(!0),n=r[0],o=r[1],i=c([]),a=i[0],l=i[1];function u(){if("Default"==t.previewState)return o(!1),void d(If);p()}function p(){f.getExternalAccounts().then((function(e){d(e),o(!1)}))}function d(e){t.externalAccountProviderCategories&&(e=e.filter((function(e){var r;return-1!=(null===(r=t.externalAccountProviderCategories)||void 0===r?void 0:r.indexOf(e.provider.category))}))),l(e),t.onExternalAccountsLoaded&&t.onExternalAccountsLoaded(e)}return s((function(){return u(),f.on("applicationDidBecomeVisible",u),f.on("externalAccountSyncComplete",u),function(){f.off("applicationDidBecomeVisible",u),f.off("externalAccountSyncComplete",u)}}),[]),e.createElement("div",{className:"mdhui-external-account-list"},a&&a.map((function(t){return e.createElement(lc,{key:t.id.toString()+t.lastRefreshDate},e.createElement(Hu,{externalAccount:t,onAccountRemoved:function(e){return o(!0),void p()},onReconnectAccount:function(e){return function(e){f.connectExternalAccount(e.provider.id)}(e)}}))})),n&&e.createElement(Lu,null))}y(".mdhui-external-accounts-preview\n{\n}\n\n .mdhui-external-accounts-preview .external-account-title\n {\n font-size:.88em;\n }");var Rf=[{id:1,lastRefreshDate:M(new Date,{days:-1}).toISOString(),status:"fetchComplete",provider:{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"}},{id:2,lastRefreshDate:M(new Date,{hours:-8}).toISOString(),status:"unauthorized",provider:{id:1,name:"CareEvolution FHIR",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/1/logo"}},{id:3,lastRefreshDate:M(new Date,{hours:-2}).toISOString(),status:"fetchComplete",provider:{id:17,name:"CMS Sandbox",category:"Health Plan",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/17/logo"}},{id:4,lastRefreshDate:M(new Date,{hours:-3}).toISOString(),status:"fetchComplete",provider:{id:2,name:"Fitbit Staging",category:"Device Manufacturer",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/2/logo"}}];function Ff(t){var r=c(null),n=r[0],o=r[1],i="",a=[];function l(){"Default"!=t.previewState?f.getExternalAccounts().then((function(e){u(e)})):u(Rf)}function u(e){a&&(e=e.filter((function(e){return-1!=(null==a?void 0:a.indexOf(e.provider.category))}))),o(e)}return t.excludeProviders||(a.push("Provider"),i+=Mu["external-accounts-title-providers"]),t.excludeHealthPlans||(a.push("Health Plan"),i.length>0&&(i+=Mu["external-accounts-title-divider"]),i+=Mu["external-accounts-title-health-plans"]),t.excludeDeviceManufacturers||(a.push("Device Manufacturer"),i.length>0&&(i+=Mu["external-accounts-title-divider"]),i+=Mu["external-accounts-title-devices"]),s((function(){return l(),f.on("applicationDidBecomeVisible",l),function(){f.off("applicationDidBecomeVisible",l)}}),[]),n&&n.length?e.createElement("div",{className:"mdhui-external-accounts-preview"},e.createElement(w,{title:i,onClick:function(){"preview"==t.applicationUrl?console.log("PREVIEW: Opening the external accounts application."):f.openApplication(t.applicationUrl)}},n.map((function(t){return e.createElement("div",{key:t.id,className:"external-account-title"},t.provider.name)})))):null}y(".mdhui-fitbit-devices .fitbit-device {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n padding: 16px;\n position: relative;\n padding-left: 48px;\n}\n\n.mdhui-fitbit-devices .fitbit-device:last-child {\n border-bottom: none;\n}\n\n.mdhui-fitbit-devices .fitbit-device .device-icon {\n position: absolute;\n left: 16px;\n top: calc(50% - 8px);\n color: var(--mdhui-text-color-2);\n font-size: 16px;\n}\n\n.mdhui-fitbit-devices .fitbit-device .device-title {\n font-weight: bold;\n font-size: .88em;\n}\n\n.mdhui-fitbit-devices .fitbit-device .device-sync {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}\n\n\n.mdhui-fitbit-devices .fitbit-device .battery-icon {\n position: absolute;\n font-size: 21px;\n right: 16px;\n top: calc(50% - 11px);\n}\n\n.mdhui-fitbit-devices .fitbit-device .battery-icon.battery-empty,\n.mdhui-fitbit-devices .fitbit-device .battery-icon.battery-low {\n color: var(--mdhui-color-danger);\n}\n\n.mdhui-fitbit-devices .fitbit-device .battery-icon.battery-medium {\n color: var(--mdhui-color-warning);\n}\n\n.mdhui-fitbit-devices .fitbit-device .battery-icon.battery-high {\n color: var(--mdhui-color-success);\n}");var qf={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-empty",r=["battery-0"],n="f244",o="M80 160c-8.8 0-16 7.2-16 16V336c0 8.8 7.2 16 16 16H464c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16H80zM0 176c0-44.2 35.8-80 80-80H464c44.2 0 80 35.8 80 80v16c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32v16c0 44.2-35.8 80-80 80H80c-44.2 0-80-35.8-80-80V176z";e.definition={prefix:"fas",iconName:t,icon:[576,512,r,n,o]},e.faBatteryEmpty=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(qf);var Hf={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-full",r=[128267,"battery","battery-5"],n="f240",o="M464 160c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16H464zM80 96C35.8 96 0 131.8 0 176V336c0 44.2 35.8 80 80 80H464c44.2 0 80-35.8 80-80V320c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32V176c0-44.2-35.8-80-80-80H80zm368 96H96V320H448V192z";e.definition={prefix:"fas",iconName:t,icon:[576,512,r,n,o]},e.faBatteryFull=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(Hf);var Wf={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-half",r=["battery-3"],n="f242",o="M464 160c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16H464zM80 96C35.8 96 0 131.8 0 176V336c0 44.2 35.8 80 80 80H464c44.2 0 80-35.8 80-80V320c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32V176c0-44.2-35.8-80-80-80H80zm208 96H96V320H288V192z";e.definition={prefix:"fas",iconName:t,icon:[576,512,r,n,o]},e.faBatteryHalf=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(Wf);var Vf={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-quarter",r=["battery-2"],n="f243",o="M464 160c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16H464zM80 96C35.8 96 0 131.8 0 176V336c0 44.2 35.8 80 80 80H464c44.2 0 80-35.8 80-80V320c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32V176c0-44.2-35.8-80-80-80H80zm112 96H96V320h96V192z";e.definition={prefix:"fas",iconName:t,icon:[576,512,r,n,o]},e.faBatteryQuarter=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(Vf);var Uf={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="weight-scale",r=["weight"],n="f496",o="M128 176a128 128 0 1 1 256 0 128 128 0 1 1 -256 0zM391.8 64C359.5 24.9 310.7 0 256 0S152.5 24.9 120.2 64H64C28.7 64 0 92.7 0 128V448c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H391.8zM296 224c0-10.6-4.1-20.2-10.9-27.4l33.6-78.3c3.5-8.1-.3-17.5-8.4-21s-17.5 .3-21 8.4L255.7 184c-22 .1-39.7 18-39.7 40c0 22.1 17.9 40 40 40s40-17.9 40-40z";e.definition={prefix:"fas",iconName:t,icon:[512,512,r,n,o]},e.faWeightScale=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(Uf);var Gf,$f={},Yf={get exports(){return $f},set exports(e){$f=e}},Zf={},Xf={get exports(){return Zf},set exports(e){Zf=e}},Qf={};var Jf,Kf,ep,tp,rp,np,op,ip,ap,lp,cp,sp,up,fp,pp={};
9
+ */Es={get exports(){return Os},set exports(e){Os=e}},"production"===process.env.NODE_ENV?Es.exports=function(){if(ys)return xs;ys=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case c:case s:case n:case i:case o:case f:return e;default:switch(e=e&&e.$$typeof){case l:case u:case h:case d:case a:return e;default:return p}}case r:return p}}}function w(e){return b(e)===s}return xs.AsyncMode=c,xs.ConcurrentMode=s,xs.ContextConsumer=l,xs.ContextProvider=a,xs.Element=t,xs.ForwardRef=u,xs.Fragment=n,xs.Lazy=h,xs.Memo=d,xs.Portal=r,xs.Profiler=i,xs.StrictMode=o,xs.Suspense=f,xs.isAsyncMode=function(e){return w(e)||b(e)===c},xs.isConcurrentMode=w,xs.isContextConsumer=function(e){return b(e)===l},xs.isContextProvider=function(e){return b(e)===a},xs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},xs.isForwardRef=function(e){return b(e)===u},xs.isFragment=function(e){return b(e)===n},xs.isLazy=function(e){return b(e)===h},xs.isMemo=function(e){return b(e)===d},xs.isPortal=function(e){return b(e)===r},xs.isProfiler=function(e){return b(e)===i},xs.isStrictMode=function(e){return b(e)===o},xs.isSuspense=function(e){return b(e)===f},xs.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===s||e===i||e===o||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===a||e.$$typeof===l||e.$$typeof===u||e.$$typeof===y||e.$$typeof===v||e.$$typeof===g||e.$$typeof===m)},xs.typeOf=b,xs}():Es.exports=(ks||(ks=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case c:case s:case n:case i:case o:case f:return m;default:var y=m&&m.$$typeof;switch(y){case l:case u:case h:case d:case a:return y;default:return p}}case r:return p}}}var w=c,O=s,x=l,k=a,E=t,j=u,S=n,T=h,P=d,C=r,z=i,_=o,D=f,L=!1;function A(e){return b(e)===s}js.AsyncMode=w,js.ConcurrentMode=O,js.ContextConsumer=x,js.ContextProvider=k,js.Element=E,js.ForwardRef=j,js.Fragment=S,js.Lazy=T,js.Memo=P,js.Portal=C,js.Profiler=z,js.StrictMode=_,js.Suspense=D,js.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(e)||b(e)===c},js.isConcurrentMode=A,js.isContextConsumer=function(e){return b(e)===l},js.isContextProvider=function(e){return b(e)===a},js.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},js.isForwardRef=function(e){return b(e)===u},js.isFragment=function(e){return b(e)===n},js.isLazy=function(e){return b(e)===h},js.isMemo=function(e){return b(e)===d},js.isPortal=function(e){return b(e)===r},js.isProfiler=function(e){return b(e)===i},js.isStrictMode=function(e){return b(e)===o},js.isSuspense=function(e){return b(e)===f},js.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===s||e===i||e===o||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===a||e.$$typeof===l||e.$$typeof===u||e.$$typeof===y||e.$$typeof===v||e.$$typeof===g||e.$$typeof===m)},js.typeOf=b}()),js);var Ss=Os,Ts={};Ts[Ss.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ts[Ss.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Ps="undefined"!=typeof document;function Cs(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var zs=function(e,t,r){!function(e,t,r){var n=e.key+"-"+t.name;(!1===r||!1===Ps&&void 0!==e.compat)&&void 0===e.registered[n]&&(e.registered[n]=t.styles)}(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+n:"",i,e.sheet,!0);Ps||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!Ps&&0!==o.length)return o}};var _s={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ds="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Ls="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",As=/[A-Z]|^ms/g,Ns=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ms=function(e){return 45===e.charCodeAt(1)},Is=function(e){return null!=e&&"boolean"!=typeof e},Bs=ns((function(e){return Ms(e)?e:e.replace(As,"-$&").toLowerCase()})),Rs=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ns,(function(e,t,r){return Zs={name:t,styles:r,next:Zs},t}))}return 1===_s[e]||Ms(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var Fs=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,qs=["normal","none","initial","inherit","unset"],Hs=Rs,Ws=/^-ms-/,Vs=/-(.)/g,Us={};Rs=function(e,t){if("content"===e&&("string"!=typeof t||-1===qs.indexOf(t)&&!Fs.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=Hs(e,t);return""===r||Ms(e)||-1===e.indexOf("-")||void 0!==Us[e]||(Us[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Ws,"ms-").replace(Vs,(function(e,t){return t.toUpperCase()}))+"?")),r}}var Gs="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function $s(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===r.toString())throw new Error(Gs);return r}switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return Zs={name:r.name,styles:r.styles,next:Zs},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)Zs={name:n.name,styles:n.styles,next:Zs},n=n.next;var o=r.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==r.map&&(o+=r.map),o}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=$s(e,t,r[o])+";";else for(var i in r){var a=r[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=i+"{"+t[a]+"}":Is(a)&&(n+=Bs(i)+":"+Rs(i,a)+";");else{if("NO_COMPONENT_SELECTOR"===i&&"production"!==process.env.NODE_ENV)throw new Error(Gs);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=$s(e,t,a);switch(i){case"animation":case"animationName":n+=Bs(i)+":"+l+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===i&&console.error(Ls),n+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)Is(a[c])&&(n+=Bs(i)+":"+Rs(i,a[c])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var i=Zs,a=r(e);return Zs=i,$s(e,t,a)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],c=r.replace(Ns,(function(e,t,r){var n="animation"+l.length;return l.push("const "+n+" = keyframes`"+r.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+n+"}"}));l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var Ys,Zs,Xs=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Ys=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Qs=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";Zs=void 0;var i,a=e[0];null==a||void 0===a.raw?(n=!1,o+=$s(r,t,a)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(Ds),o+=a[0]);for(var l=1;l<e.length;l++)o+=$s(r,t,e[l]),n&&("production"!==process.env.NODE_ENV&&void 0===a[l]&&console.error(Ds),o+=a[l]);"production"!==process.env.NODE_ENV&&(o=o.replace(Ys,(function(e){return i=e,""}))),Xs.lastIndex=0;for(var c,s="";null!==(c=Xs.exec(o));)s+="-"+c[1];var u=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+s;return"production"!==process.env.NODE_ENV?{name:u,styles:o,map:i,next:Zs,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:o,next:Zs}},Js="undefined"!=typeof document,Ks={}.hasOwnProperty,eu=o("undefined"!=typeof HTMLElement?ws({key:"css"}):null);"production"!==process.env.NODE_ENV&&(eu.displayName="EmotionCacheContext"),eu.Provider;var tu=function(e){return t((function(t,r){var n=i(eu);return e(t,n,r)}))};Js||(tu=function(e){return function(t){var n=i(eu);return null===n?(n=ws({key:"css"}),r(eu.Provider,{value:n},e(t,n))):e(t,n)}});var ru=o({});"production"!==process.env.NODE_ENV&&(ru.displayName="EmotionThemeContext");var nu=function(){return null},ou=tu((function(e,t,o){var a=e.css;"string"==typeof a&&void 0!==t.registered[a]&&(a=t.registered[a]);var l=e.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,c=[a],s="";"string"==typeof e.className?s=Cs(t.registered,c,e.className):null!=e.className&&(s=e.className+" ");var u=Qs(c,void 0,i(ru));if("production"!==process.env.NODE_ENV&&-1===u.name.indexOf("-")){var f=e.__EMOTION_LABEL_PLEASE_DO_NOT_USE__;f&&(u=Qs([u,"label:"+f+";"]))}var p=zs(t,u,"string"==typeof l);s+=t.key+"-"+u.name;var d={};for(var h in e)!Ks.call(e,h)||"css"===h||"__EMOTION_TYPE_PLEASE_DO_NOT_USE__"===h||"production"!==process.env.NODE_ENV&&"__EMOTION_LABEL_PLEASE_DO_NOT_USE__"===h||(d[h]=e[h]);d.ref=o,d.className=s;var m=r(l,d),y=r(nu,null);if(!Js&&void 0!==p){for(var v,g=u.name,b=u.next;void 0!==b;)g+=" "+b.name,b=b.next;y=r("style",((v={})["data-emotion"]=t.key+" "+g,v.dangerouslySetInnerHTML={__html:p},v.nonce=t.sheet.nonce,v))}return r(n,null,y,m)}));"production"!==process.env.NODE_ENV&&(ou.displayName="EmotionCssPropInternal");var iu=!1,au=tu((function(e,t){"production"===process.env.NODE_ENV||iu||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),iu=!0);var n=e.styles,o=Qs([n],void 0,i(ru));if(!Js){for(var c,s=o.name,u=o.styles,f=o.next;void 0!==f;)s+=" "+f.name,u+=f.styles,f=f.next;var p=!0===t.compat,d=t.insert("",{name:s,styles:u},t.sheet,p);return p?null:r("style",((c={})["data-emotion"]=t.key+"-global "+s,c.dangerouslySetInnerHTML={__html:d},c.nonce=t.sheet.nonce,c))}var h=a();return l((function(){var e=t.key+"-global",r=new pc({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,i=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(n=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),h.current=[r,n],function(){r.flush()}}),[t]),l((function(){var e=h.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&zs(t,o.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",o,r,!1)}}),[t,o.name]),null}));function lu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Qs(t)}"production"!==process.env.NODE_ENV&&(au.displayName="EmotionGlobal");var cu=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var i=t[n];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var l in"production"!==process.env.NODE_ENV&&void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",i)i[l]&&l&&(a&&(a+=" "),a+=l);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function su(e,t,r){var n=[],o=Cs(e,n,r);return n.length<2?r:o+t(n)}var uu=function(){return null},fu=tu((function(e,t){var o="",a="",l=!1,c=function(){if(l&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=Qs(r,t.registered);if(Js)zs(t,i,!1);else{var c=zs(t,i,!1);void 0!==c&&(o+=c)}return Js||(a+=" "+i.name),t.key+"-"+i.name},s={css:c,cx:function(){if(l&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return su(t.registered,c,cu(r))},theme:i(ru)},u=e.children(s);l=!0;var f,p=r(uu,null);Js||0===o.length||(p=r("style",((f={})["data-emotion"]=t.key+" "+a.substring(1),f.dangerouslySetInnerHTML={__html:o},f.nonce=t.sheet.nonce,f)));return r(n,null,p,u)}));if("production"!==process.env.NODE_ENV&&(fu.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV){var pu="undefined"!=typeof document,du="undefined"!=typeof jest;if(pu&&!du){var hu="undefined"!=typeof globalThis?globalThis:pu?window:global,mu="__EMOTION_REACT_"+"11.7.1".split(".")[0]+"__";hu[mu]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),hu[mu]=!0}}y("\n\n.mdhui-layout {\n padding-bottom: env(safe-area-inset-bottom);\n color: var(--mdhui-text-color-1);\n}");var yu=function(){return yu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yu.apply(this,arguments)};function vu(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function l(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,l)}c((n=n.apply(e,t||[])).next())}))}function gu(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function bu(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var wu,Ou,xu,ku=lu(wu||(wu=bu(["\n:root {\n --main-bg-color: #f5f5f5;\n\n --mdhui-background-color-0: #fff;\n --mdhui-background-color-1: #f5f5f5;\n --mdhui-background-color-2: #ddd;\n --mdhui-background-color-3: #eee;\n\n --mdhui-border-color-0: #eee;\n --mdhui-border-color-1: #ddd;\n --mdhui-border-color-2: #bbb;\n --mdhui-border-color-3: #000;\n\n --mdhui-text-color-0: #000;\n --mdhui-text-color-1: #333;\n --mdhui-text-color-2: #555;\n --mdhui-text-color-3: #999;\n --mdhui-text-color-4: #bbb;\n\n --mdhui-color-theme: #5381c3;\n --mdhui-color-primary: #5381c3;\n --mdhui-color-success: #00AE42;\n --mdhui-color-warning: #FF671D;\n --mdhui-color-danger: #C40D3C;\n\n --mdhui-box-shadow-color-0: #ddd;\n --mdhui-box-shadow-color-1: #aaa;\n\n --mdhui-box-shadow-0: 0px 9px 9px 0px var(--mdhui-box-shadow-color-0);\n --mdhui-box-shadow-1: 0px 0px 5px 0px var(--mdhui-box-shadow-color-1);\n\n --mdhui-overlay-gradient:linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 244, 240, 0.2) 100%);\n\n --mdhui-fadein-animation: fadein 1s;\n}\n\n@keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@-moz-keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@-webkit-keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}"],["\n:root {\n --main-bg-color: #f5f5f5;\n\n --mdhui-background-color-0: #fff;\n --mdhui-background-color-1: #f5f5f5;\n --mdhui-background-color-2: #ddd;\n --mdhui-background-color-3: #eee;\n\n --mdhui-border-color-0: #eee;\n --mdhui-border-color-1: #ddd;\n --mdhui-border-color-2: #bbb;\n --mdhui-border-color-3: #000;\n\n --mdhui-text-color-0: #000;\n --mdhui-text-color-1: #333;\n --mdhui-text-color-2: #555;\n --mdhui-text-color-3: #999;\n --mdhui-text-color-4: #bbb;\n\n --mdhui-color-theme: #5381c3;\n --mdhui-color-primary: #5381c3;\n --mdhui-color-success: #00AE42;\n --mdhui-color-warning: #FF671D;\n --mdhui-color-danger: #C40D3C;\n\n --mdhui-box-shadow-color-0: #ddd;\n --mdhui-box-shadow-color-1: #aaa;\n\n --mdhui-box-shadow-0: 0px 9px 9px 0px var(--mdhui-box-shadow-color-0);\n --mdhui-box-shadow-1: 0px 0px 5px 0px var(--mdhui-box-shadow-color-1);\n\n --mdhui-overlay-gradient:linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 244, 240, 0.2) 100%);\n\n --mdhui-fadein-animation: fadein 1s;\n}\n\n@keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@-moz-keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@-webkit-keyframes fadein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}"]))),Eu=lu(Ou||(Ou=bu(["\n@media (prefers-color-scheme: dark) {\n :root {\n --mdhui-background-color-0: #1a1b1e;\n --mdhui-background-color-1: #141517;\n --mdhui-background-color-2: #000;\n\n --mdhui-border-color-0: #333;\n --mdhui-border-color-1: #444;\n --mdhui-border-color-2: #555;\n --mdhui-border-color-3: #FFF;\n\n --mdhui-text-color-0: #FFF;\n --mdhui-text-color-1: #a6a7ab;\n --mdhui-text-color-2: #aaa;\n --mdhui-text-color-3: #777;\n --mdhui-text-color-4: #444;\n\n --mdhui-box-shadow-color-0: #333;\n --mdhui-box-shadow-color-1: #666;\n \n --mdhui-box-shadow-0: none;\n --mdhui-box-shadow-1: none;\n --mdhui-overlay-gradient:linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 11, 15, 0.2) 100%) !important;\n }\n}"],["\n@media (prefers-color-scheme: dark) {\n :root {\n --mdhui-background-color-0: #1a1b1e;\n --mdhui-background-color-1: #141517;\n --mdhui-background-color-2: #000;\n\n --mdhui-border-color-0: #333;\n --mdhui-border-color-1: #444;\n --mdhui-border-color-2: #555;\n --mdhui-border-color-3: #FFF;\n\n --mdhui-text-color-0: #FFF;\n --mdhui-text-color-1: #a6a7ab;\n --mdhui-text-color-2: #aaa;\n --mdhui-text-color-3: #777;\n --mdhui-text-color-4: #444;\n\n --mdhui-box-shadow-color-0: #333;\n --mdhui-box-shadow-color-1: #666;\n \n --mdhui-box-shadow-0: none;\n --mdhui-box-shadow-1: none;\n --mdhui-overlay-gradient:linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 11, 15, 0.2) 100%) !important;\n }\n}"]))),ju=lu(xu||(xu=bu(["\na {\n color: var(--mdhui-color-theme);\n}\n\nhtml {\n font-size: 17px;\n}\n\n/* this needs to be moved to a component called unstyledButton */\nbutton {\n color: inherit;\n font: inherit;\n text-align: inherit;\n line-height: inherit;\n -webkit-font-smoothing: inherit;\n -moz-osx-font-smoothing: inherit;\n -webkit-appearance: none;\n background: none;\n border: none;\n display: block;\n box-sizing: border-box;\n padding: 0;\n cursor: pointer;\n margin: 0;\n}\n\n@@supports (font: -apple-system-body) {\n html {\n font: -apple-system-body;\n }\n}\n\nbody {\n padding: 0;\n margin: 0;\n font-family: ui-rounded, -apple-system, Helvetica, Arial, sans-serif;\n background: var(--mdhui-background-color-1);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}"],["\na {\n color: var(--mdhui-color-theme);\n}\n\nhtml {\n font-size: 17px;\n}\n\n/* this needs to be moved to a component called unstyledButton */\nbutton {\n color: inherit;\n font: inherit;\n text-align: inherit;\n line-height: inherit;\n -webkit-font-smoothing: inherit;\n -moz-osx-font-smoothing: inherit;\n -webkit-appearance: none;\n background: none;\n border: none;\n display: block;\n box-sizing: border-box;\n padding: 0;\n cursor: pointer;\n margin: 0;\n}\n\n@@supports (font: -apple-system-body) {\n html {\n font: -apple-system-body;\n }\n}\n\nbody {\n padding: 0;\n margin: 0;\n font-family: ui-rounded, -apple-system, Helvetica, Arial, sans-serif;\n background: var(--mdhui-background-color-1);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}"]))),Su=o({darkMode:!1});function Tu(t){var r="mdhui-layout";t.className&&(r+=" "+t.className),t.bodyBackgroundColor?document.body.style.backgroundColor=t.bodyBackgroundColor:document.body.style.removeProperty("background-color"),t.statusBarStyle&&f.setStatusBarStyle(t.statusBarStyle);var n={darkMode:!1};return t.autoDarkMode&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(n.darkMode=!0),e.createElement(Su.Provider,{value:n},e.createElement(au,{styles:ku}),!t.noGlobalStyles&&e.createElement(au,{styles:ju}),t.autoDarkMode&&e.createElement(au,{styles:Eu}),e.createElement("div",{className:r},t.stylesheetPath&&e.createElement("link",{rel:"stylesheet",type:"text/css",href:t.stylesheetPath}),t.children))}function Pu(t){var r={};i(Su).darkMode&&!t.selected&&(r.filter="invert(1)");var n="mdhui-face";function o(){return 1==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M184%2c224c-29.824%2c0-58.232%2c12.632-77.96%2c34.664c-2.944%2c3.296-2.664%2c8.344%2c0.624%2c11.296c1.52%2c1.368%2c3.432%2c2.04%2c5.336%2c2.04 c2.192%2c0%2c4.384-0.896%2c5.96-2.664C134.656%2c250.688%2c158.728%2c240%2c184%2c240c25.28%2c0%2c49.352%2c10.688%2c66.04%2c29.336 c2.944%2c3.296%2c8.008%2c3.568%2c11.296%2c0.624c3.288-2.944%2c3.568-8%2c0.624-11.296C242.24%2c236.64%2c213.832%2c224%2c184%2c224z'/%3e %3cpath d='M184%2c0C82.536%2c0%2c0%2c82.544%2c0%2c184s82.536%2c184%2c184%2c184s184-82.544%2c184-184S285.464%2c0%2c184%2c0z M184%2c352 c-92.632%2c0-168-75.36-168-168S91.368%2c16%2c184%2c16s168%2c75.36%2c168%2c168S276.632%2c352%2c184%2c352z'/%3e %3cpath d='M280%2c128c-4.424%2c0-8%2c3.584-8%2c8c0%2c13.232-10.768%2c24-24%2c24s-24-10.768-24-24c0-4.416-3.576-8-8-8s-8%2c3.584-8%2c8 c0%2c22.056%2c17.944%2c40%2c40%2c40c22.056%2c0%2c40-17.944%2c40-40C288%2c131.584%2c284.424%2c128%2c280%2c128z'/%3e %3cpath d='M160%2c136c0-4.416-3.576-8-8-8s-8%2c3.584-8%2c8c0%2c13.232-10.768%2c24-24%2c24s-24-10.768-24-24c0-4.416-3.576-8-8-8s-8%2c3.584-8%2c8 c0%2c22.056%2c17.944%2c40%2c40%2c40C142.056%2c176%2c160%2c158.056%2c160%2c136z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":2==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M184%2c0C82.544%2c0%2c0%2c82.544%2c0%2c184s82.544%2c184%2c184%2c184c101.464%2c0%2c184-82.544%2c184-184S285.464%2c0%2c184%2c0z M184%2c352 c-92.64%2c0-168-75.36-168-168S91.36%2c16%2c184%2c16c92.632%2c0%2c168%2c75.36%2c168%2c168S276.632%2c352%2c184%2c352z'/%3e %3cpath d='M144%2c152c0-13.232-10.768-24-24-24s-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24S144%2c165.232%2c144%2c152z M112%2c152c0-4.408%2c3.592-8%2c8-8 s8%2c3.592%2c8%2c8s-3.592%2c8-8%2c8S112%2c156.408%2c112%2c152z'/%3e %3cpath d='M248%2c128c-13.232%2c0-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24s24-10.768%2c24-24S261.232%2c128%2c248%2c128z M248%2c160 c-4.416%2c0-8-3.592-8-8s3.584-8%2c8-8c4.416%2c0%2c8%2c3.592%2c8%2c8S252.416%2c160%2c248%2c160z'/%3e %3cpath d='M184%2c224c-29.824%2c0-58.24%2c12.632-77.96%2c34.664c-2.944%2c3.296-2.664%2c8.352%2c0.624%2c11.296 c3.296%2c2.952%2c8.352%2c2.664%2c11.296-0.624C134.648%2c250.688%2c158.72%2c240%2c184%2c240c25.28%2c0%2c49.352%2c10.688%2c66.04%2c29.336 c1.576%2c1.768%2c3.768%2c2.664%2c5.96%2c2.664c1.896%2c0%2c3.816-0.672%2c5.336-2.04c3.288-2.944%2c3.568-8%2c0.624-11.296 C242.24%2c236.64%2c213.832%2c224%2c184%2c224z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":3==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M184%2c0C82.544%2c0%2c0%2c82.544%2c0%2c184s82.544%2c184%2c184%2c184s184-82.544%2c184-184S285.456%2c0%2c184%2c0z M184%2c352 c-92.64%2c0-168-75.36-168-168S91.36%2c16%2c184%2c16s168%2c75.36%2c168%2c168S276.64%2c352%2c184%2c352z'/%3e %3cpath d='M120%2c176c13.232%2c0%2c24-10.768%2c24-24s-10.768-24-24-24s-24%2c10.768-24%2c24S106.768%2c176%2c120%2c176z M120%2c144 c4.408%2c0%2c8%2c3.592%2c8%2c8s-3.592%2c8-8%2c8s-8-3.592-8-8S115.592%2c144%2c120%2c144z'/%3e %3cpath d='M248%2c128c-13.232%2c0-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24s24-10.768%2c24-24S261.232%2c128%2c248%2c128z M248%2c160 c-4.408%2c0-8-3.592-8-8s3.592-8%2c8-8c4.408%2c0%2c8%2c3.592%2c8%2c8S252.408%2c160%2c248%2c160z'/%3e %3cpath d='M264%2c224H104c-4.416%2c0-8%2c3.584-8%2c8c0%2c4.416%2c3.584%2c8%2c8%2c8h160c4.416%2c0%2c8-3.584%2c8-8C272%2c227.584%2c268.416%2c224%2c264%2c224z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":4==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M184%2c0C82.544%2c0%2c0%2c82.544%2c0%2c184s82.544%2c184%2c184%2c184s184-82.544%2c184-184S285.456%2c0%2c184%2c0z M184%2c352 c-92.64%2c0-168-75.36-168-168S91.36%2c16%2c184%2c16s168%2c75.36%2c168%2c168S276.64%2c352%2c184%2c352z'/%3e %3cpath d='M144%2c152c0-13.232-10.768-24-24-24s-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24S144%2c165.232%2c144%2c152z M112%2c152c0-4.408%2c3.592-8%2c8-8 s8%2c3.592%2c8%2c8s-3.592%2c8-8%2c8S112%2c156.408%2c112%2c152z'/%3e %3cpath d='M248%2c128c-13.232%2c0-24%2c10.768-24%2c24s10.768%2c24%2c24%2c24s24-10.768%2c24-24S261.232%2c128%2c248%2c128z M248%2c160 c-4.408%2c0-8-3.592-8-8s3.592-8%2c8-8c4.408%2c0%2c8%2c3.592%2c8%2c8S252.408%2c160%2c248%2c160z'/%3e %3cpath d='M261.336%2c226.04c-3.296-2.952-8.36-2.664-11.296%2c0.624C233.352%2c245.312%2c209.288%2c256%2c184%2c256 c-25.28%2c0-49.352-10.688-66.04-29.336c-2.952-3.288-8-3.576-11.296-0.624c-3.296%2c2.944-3.568%2c8-0.624%2c11.296 C125.76%2c259.368%2c154.176%2c272%2c184%2c272c29.832%2c0%2c58.248-12.64%2c77.96-34.664C264.904%2c234.04%2c264.624%2c228.984%2c261.336%2c226.04z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":5==t.faceValue?"data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 19.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 368 368' style='enable-background:new 0 0 368 368%3b' xml:space='preserve'%3e%3cg%3e %3cg%3e %3cg%3e %3cpath d='M261.336%2c226.04c-3.296-2.952-8.36-2.664-11.296%2c0.624C233.352%2c245.312%2c209.288%2c256%2c184%2c256 c-25.28%2c0-49.352-10.688-66.04-29.336c-2.952-3.288-8-3.576-11.296-0.624c-3.296%2c2.944-3.568%2c8-0.624%2c11.296 C125.76%2c259.368%2c154.176%2c272%2c184%2c272c29.832%2c0%2c58.248-12.64%2c77.96-34.664C264.904%2c234.04%2c264.624%2c228.984%2c261.336%2c226.04z'/%3e %3cpath d='M184%2c0C82.544%2c0%2c0%2c82.544%2c0%2c184s82.544%2c184%2c184%2c184s184-82.544%2c184-184S285.456%2c0%2c184%2c0z M184%2c352 c-92.64%2c0-168-75.36-168-168S91.36%2c16%2c184%2c16s168%2c75.36%2c168%2c168S276.64%2c352%2c184%2c352z'/%3e %3cpath d='M248%2c128c-22.056%2c0-40%2c17.944-40%2c40c0%2c4.416%2c3.584%2c8%2c8%2c8c4.416%2c0%2c8-3.584%2c8-8c0-13.232%2c10.768-24%2c24-24s24%2c10.768%2c24%2c24 c0%2c4.416%2c3.584%2c8%2c8%2c8c4.416%2c0%2c8-3.584%2c8-8C288%2c145.944%2c270.056%2c128%2c248%2c128z'/%3e %3cpath d='M144%2c168c0%2c4.416%2c3.584%2c8%2c8%2c8s8-3.584%2c8-8c0-22.056-17.944-40-40-40c-22.056%2c0-40%2c17.944-40%2c40c0%2c4.416%2c3.584%2c8%2c8%2c8 s8-3.584%2c8-8c0-13.232%2c10.768-24%2c24-24S144%2c154.768%2c144%2c168z'/%3e %3c/g%3e %3c/g%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3cg%3e%3c/g%3e%3c/svg%3e":void 0}return t.selected&&(n+=" mdhui-face-selected"),t.className&&(n+=" "+t.className),t.onClick?e.createElement("button",{className:n,onClick:t.onClick},e.createElement("img",{src:o(),style:r}),e.createElement(Cu,null)):e.createElement("div",{className:n},e.createElement("img",{src:o(),style:r}),e.createElement(Cu,null))}function Cu(){return e.createElement("div",{className:"mdhui-shiny-overlay"})}y(".mdhui-shiny-overlay\n{\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n background: var(--mdhui-overlay-gradient);\n pointer-events: none;\n}\n");function zu(t){var r=0;t.entries.forEach((function(e){e.value>r&&(r=e.value)}));var n=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([],t.entries,!0).sort((function(e,t){return t.value-e.value||(e.label>t.label?1:t.label>e.label?-1:0)}));return e.createElement("div",{className:"mdhui-histogram"},n.map((function(t,n){return e.createElement("div",{className:"mdhui-histogram-entry"+(t.onSelect?" mdhui-histogram-entry-clickable":""),key:n,onClick:function(){var e;return null===(e=t.onSelect)||void 0===e?void 0:e.call(t)}},e.createElement("div",{className:"mdhui-histogram-entry-bar-wrapper"},e.createElement("div",{className:"mdhui-histogram-entry-bar",style:{background:t.color,width:t.value/r*100+"%"}},e.createElement(Cu,null)),e.createElement("div",{className:"mdhui-histogram-entry-value",style:{width:8*r.toString().length+"px"}},t.value)),e.createElement("div",{className:"mdhui-histogram-entry-label"},t.label))})))}y(".mdhui-histogram\n{\n padding: 16px;\n}\n\n .mdhui-histogram .mdhui-histogram-entry\n {\n padding-top: 8px;\n font-size: 15px;\n }\n\n .mdhui-histogram .mdhui-histogram-entry.mdhui-histogram-entry-clickable\n {\n cursor: pointer;\n }\n\n .mdhui-histogram .mdhui-histogram-entry.mdhui-histogram-entry-clickable .mdhui-histogram-entry-label\n {\n text-decoration: underline;\n color: var(--mdhui-color-theme);\n }\n\n .mdhui-histogram .mdhui-histogram-entry-bar-wrapper\n {\n display: flex;\n }\n\n .mdhui-histogram .mdhui-histogram-entry-bar\n {\n position: relative;\n height: 16px;\n border-radius: 8px;\n }\n\n .mdhui-histogram .mdhui-histogram-entry-value\n {\n padding-left: 4px;\n line-height: 16px;\n font-size: 12px;\n font-weight: bold;\n }\n");var _u={},Du={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="arrows-rotate",r=[128472,"refresh","sync"],n="f021",o="M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V448c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H176c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z";e.definition={prefix:"fas",iconName:t,icon:[512,512,r,n,o]},e.faArrowsRotate=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(Du),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Du;e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faRefresh=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(_u);function Lu(){return e.createElement("div",{className:"mdhui-loading-indicator"},e.createElement(b,{icon:_u.faRefresh,spin:!0}))}y(".mdhui-loading-indicator {\n padding: 16px;\n color: var(--mdhui-text-color-4);\n text-align: center;\n}");y(".mdhui-navigation-bar {\n text-align: left;\n padding: 16px;\n padding-top: calc(56px + env(safe-area-inset-top, 0px));\n box-sizing: border-box;\n padding-bottom: 16px;\n position: -webkit-sticky;\n position: sticky;\n z-index: 2;\n top: 0;\n font-weight: bold;\n background: var(--mdhui-background-color-1);\n}\n\n.mdhui-navigation-bar .title {\n font-size: 1.2em;\n}\n\n.mdhui-navigation-bar.scroll-shadow {\n box-shadow: var(--mdhui-box-shadow-1);\n}\n\n.mdhui-navigation-bar .icon {\n width: 32px;\n vertical-align: middle;\n}\n\n.mdhui-navigation-bar .close-button {\n position: absolute;\n right: 16px;\n top: calc(16px + env(safe-area-inset-top, 0px));\n font-weight: normal;\n font-size: .88em;\n text-decoration: none;\n cursor: pointer;\n}\n\n.mdhui-navigation-bar .back-button {\n position: absolute;\n left: 16px;\n top: calc(16px + env(safe-area-inset-top, 0px));\n font-weight: normal;\n font-size: .88em;\n text-decoration: none;\n cursor: pointer;\n}");var Au={back:"Back",close:"Close","connect-ehr-title-prefix":"Connect ","connect-ehr-title-divider":" or ","connect-ehr-title-providers":"Provider","connect-ehr-title-health-plans":"Health Plan","connect-ehr-connected":"We are receiving your EHR data!","connect-ehr-needs-attention":"One of your accounts requires attention.","connect-ehr-text":"Your electronic health records are an important source of information. They could help researchers make new discoveries. Connect your provider or health plan (ex: Medicare) with @@PROJECT_NAME@@.","connect-ehr-text-connected":"Thank you for sharing your EHR data with @@PROJECT_NAME@@. Connect another provider to share more data or manage your EHR connections.","connect-ehr-not-enabled":"EHR linking is not enabled for this project.","search-for-provider":"Search for Provider or Health Plan",reconnect:"Connection expired. Please reconnect.",connected:"Connected",search:"Search","connect-fitbit-intro":"You can share data from your Fitbit account if you have one. To begin, click or tap below to log in with your Fitbit credentials.","connect-fitbit-button":"Connect Fitbit","received-fitbit-data":"We are receiving your Fitbit data!","downloading-data":"Downloading data...","all-tasks-complete":"All Tasks Complete!","view-all":"View All",tasks:"Tasks","incomplete-tasks":"Incomplete Tasks","completed-tasks":"Completed Tasks",overdue:"Overdue","due-today":"Due Today","due-tomorrow":"Due Tomorrow",due:"Due","due-in":"Due in",days:"days",notifications:"Notifications",support:"Support","all-notifications":"All Notifications",steps:"Steps","resting-heart-rate":"Resting Heart Rate","distance-traveled":"Distance Traveled","google-fit-share":"Tap to share fitness data",devices:"Devices","last-sync":"Last synced",completed:"Completed","ehr-intro":"Your electronic health records (EHR) are an important source of information. If you help us gather your EHR, researchers will use this data to make discoveries.","external-accounts-title-divider":" / ","external-accounts-title-providers":"Providers","external-accounts-title-health-plans":"Health Plans","external-accounts-title-devices":"Devices","external-accounts-error":"One of your accounts requires attention","external-accounts-loading":"Your data is currently being downloaded from your linked health plans and providers. Please check back in a few moments to view your data.","external-account-authorization-expired":"Authorization expired","external-account-fetching-data":"Retrieving data...","external-account-deleting":"Removing...","external-account-last-updated":"Last updated","external-account-error":"Unexpected error","external-account-reconnect":"Reconnect","external-account-refresh":"Refresh","external-account-remove":"Remove","device-data-no-data":"If you have connected Apple Health, Google Fit, or Fitbit, check back later to view your data.","no-notifications-received":"No notifications received","next-button-text":"Next"},Nu={back:"Atrás",close:"Cerrar","connect-ehr-title-prefix":"Conectar ","connect-ehr-title-divider":" o ","connect-ehr-title-providers":"proveedor","connect-ehr-title-health-plans":"plan de salud","connect-ehr-connected":"¡Estamos recibiendo su información de EHR!","connect-ehr-needs-attention":"Una de tus cuentas requiere atención.","connect-ehr-text":"Sus registros electrónicos de salud son una fuente de información importante. Con ellos, usted podría ayudar a los investigadores de la salud a realizar nuevos descubrimientos. Conecte a su proveedor o a su plan de salud (por ejemplo: Medicare) con @@PROJECT_NAME@@.","connect-ehr-text-connected":"Gracias por compartir tus datos de EHR con @@PROJECT_NAME@@. Conecta a otro proveedor para compartir más datos o administrar tus conexiones de EHR.","connect-ehr-not-enabled":"EHR enlacando no está habilitado para este proyecto.","search-for-provider":"Encontrar a mi Proveedor",reconnect:"Volver a conectar",connected:"Conectado",search:"Buscar","connect-fitbit-intro":"Si ya tiene una cuenta Fitbit, puede compartir información desde allí. Para empezar, presione el siguiente botón para ingresar a su cuenta de Fitbit:","connect-fitbit-button":"Conectar a Fitbit","received-fitbit-data":"¡Estamos recibiendo su información de Fitbit!","downloading-data":"Descargando datos...","all-tasks-complete":"¡Todas las tareas terminadas!","view-all":"Ver todo",tasks:"Tareas","incomplete-tasks":"Tareas incompletas","completed-tasks":"Tareas completadas",overdue:"Vencidos","due-today":"Vence hoy","due-tomorrow":"Vence mañana",due:"Vence","due-in":"Vencido en",days:"dias",notifications:"Notificaciones",support:"Soporte","all-notifications":"Todas las notificaciones",steps:"Pasos","resting-heart-rate":"Ritmo cardíaco en reposo","distance-traveled":"Distancia Viajada","google-fit-share":"Toca para compartir datos de condición físic",devices:"Dispositivos","last-sync":"Última sincronización",completed:"Completadas","ehr-intro":"Sus registros de salud electrónicos son fuentes importantes de información. Pueden ayudar a investigadores hacer nuevos descubrimientos.","external-accounts-title-divider":" / ","external-accounts-title-providers":"Proveedores","external-accounts-title-health-plans":"Planes de Salud","external-accounts-title-devices":"Dispositivos","external-accounts-error":"Una de tus cuentas requiere atención","external-accounts-loading":"Actualmente tus datos se están descargando de tus planes de salud y proveedores vinculados. Por favor, vuelve a consultar en unos momentos para ver tus datos.","external-account-authorization-expired":"Venció la autorización","external-account-fetching-data":"Recuperando datos","external-account-deleting":"Eliminando...","external-account-last-updated":"Última actualización","external-account-error":"Error imprevisto","external-account-reconnect":"Volver a conectar","external-account-refresh":"Actualizar","external-account-remove":"Eliminar","device-data-no-data":"Si ha conectado Apple Health, Google Fit o Fitbit, vuelva más tarde para ver sus datos.","no-notifications-received":"No se recibieron notificaciones.","next-button-text":"Siguiente"},Mu=f.getCurrentLanguage().toLowerCase().startsWith("es")?Nu:Au;function Iu(t){var r=a(null);return l((function(){var e=r.current;function t(){window.scrollY>0?null==e||e.classList.add("scroll-shadow"):null==e||e.classList.remove("scroll-shadow")}return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t)}})),e.createElement("div",{className:"mdhui-navigation-bar "+(t.className||""),ref:r},t.showBackButton&&e.createElement("a",{className:"back-button",href:"javascript:{}",onClick:function(){f.back()}},e.createElement(b,{icon:sc.faChevronLeft}),t.backButtonText?t.backButtonText:Mu.back),t.title&&e.createElement("div",{className:"title"},e.createElement("span",null,t.title)),t.showCloseButton&&e.createElement("a",{className:"close-button",href:"javascript:{}",onClick:function(){f.dismiss()}},t.closeButtonText?t.closeButtonText:Mu.close),t.children)}function Bu(t){return t.children?e.createElement("div",{className:"mdhui-section "+(t.className||"")},t.children):null}y(".mdhui-section {\n margin-top: 16px;\n margin-bottom: 16px;\n background: var(--mdhui-background-color-0);\n box-shadow: var(--mdhui-box-shadow-0);\n animation: var(--mdhui-fadein-animation);\n -moz-animation: var(--mdhui-fadein-animation);\n -webkit-animation: var(--mdhui-fadein-animation);\n position: relative;\n}\n\n.mdhui-section:empty {\n display: none;\n}");function Ru(t){var r=100/t.segments.length;return e.createElement("div",{style:{borderColor:t.color},className:"mdhui-segmented-control "+(t.className||"")},t.segments.map((function(n){return e.createElement("button",{className:"mdhui-segment "+(n.key==t.selectedSegment?"mdhui-segment-selected":""),key:n.key,onClick:function(){return t.onSegmentSelected(n.key)},style:{width:r+"%",color:n.key==t.selectedSegment?void 0:t.color,backgroundColor:n.key==t.selectedSegment?t.color:void 0}},n.key==t.selectedSegment&&e.createElement(Cu,null),n.title)})))}y(".mdhui-segmented-control\n{\n border-radius: 32px;\n border: solid 1px var(--mdhui-color-primary);\n background: var(--mdhui-background-color-0);\n overflow: hidden;\n padding: 1px;\n}\n\n .mdhui-segmented-control .mdhui-segment\n {\n display: inline-block;\n font-size: .7em;\n cursor: pointer;\n text-align: center;\n padding: 8px;\n box-sizing: border-box;\n font-weight: bold;\n color: var(--mdhui-color-primary);\n position: relative;\n border-radius: 32px;\n overflow: hidden;\n vertical-align: top;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .mdhui-segmented-control .mdhui-segment:last-child\n {\n border: none;\n }\n\n .mdhui-segmented-control .mdhui-segment.mdhui-segment-selected\n {\n background: var(--mdhui-color-primary);\n color: #FFF;\n }\n");var Fu={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="repeat",r=[128257],n="f363",o="M0 224c0 17.7 14.3 32 32 32s32-14.3 32-32c0-53 43-96 96-96H320v32c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-9.2-9.2-22.9-11.9-34.9-6.9S320 19.1 320 32V64H160C71.6 64 0 135.6 0 224zm512 64c0-17.7-14.3-32-32-32s-32 14.3-32 32c0 53-43 96-96 96H192V352c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V448H352c88.4 0 160-71.6 160-160z";e.definition={prefix:"fas",iconName:t,icon:[512,512,r,n,o]},e.faRepeat=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(Fu);var qu={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="trash",r=[],n="f1f8",o="M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z";e.definition={prefix:"fas",iconName:t,icon:[448,512,r,n,o]},e.faTrash=e.definition,e.prefix="fas",e.iconName=t,e.width=448,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(qu);function Hu(t){var r=f.getCurrentLanguage().toLowerCase().startsWith("es")?ic:qe,n=c(""),o=n[0],i=n[1];function a(){return o||t.externalAccount.status}return e.createElement("div",{className:"mdhui-single-external-account"},e.createElement("div",{className:"external-account-header"},t.externalAccount.provider.logoUrl&&e.createElement("img",{alt:t.externalAccount.provider.name,src:t.externalAccount.provider.logoUrl,className:"external-account-provider-logo"}),!t.externalAccount.provider.logoUrl&&e.createElement("div",{className:"external-account-provider-name"},t.externalAccount.provider.name),"deleting"!==a()&&"fetchingData"!==a()&&e.createElement("button",{className:"delete-button",onClick:function(){i("deleting"),f.deleteExternalAccount(t.externalAccount.id).then((function(){t.onAccountRemoved(t.externalAccount)})).catch((function(){i("")}))},title:Mu["external-account-remove"]},e.createElement(b,{icon:qu.faTrash}))),e.createElement("div",{className:"external-account-status"},"unauthorized"===a()&&e.createElement("p",null,e.createElement("span",{className:"error"},Mu["external-account-authorization-expired"])),"fetchingData"===a()&&e.createElement("p",null,e.createElement(b,{icon:_u.faRefresh,spin:!0})," ",Mu["external-account-fetching-data"]),"fetchComplete"===a()&&e.createElement("p",null,Mu["external-account-last-updated"]," ",e.createElement("strong",null,Ke(Bl(t.externalAccount.lastRefreshDate),new Date,{locale:r}))),"error"===a()&&e.createElement("p",{className:"error"},Mu["external-account-error"]),("fetchComplete"===a()||"error"===a())&&e.createElement("p",null,e.createElement("a",{href:"javascript:{}",onClick:function(){i("fetchingData"),f.refreshExternalAccount(t.externalAccount.id).then()}},e.createElement(b,{icon:Fu.faRepeat})," ",Mu["external-account-refresh"])),"unauthorized"===a()&&e.createElement("p",null,e.createElement("a",{href:"javascript:{}",onClick:function(){return t.onReconnectAccount(t.externalAccount)}},e.createElement(b,{icon:Fu.faRepeat})," ",Mu["external-account-reconnect"])),"deleting"===a()&&e.createElement("p",null,e.createElement(b,{icon:_u.faRefresh,spin:!0})," ",Mu["external-account-deleting"])))}y(".mdhui-single-external-account {\n position: relative;\n overflow: hidden;\n background: var(--mdhui-background-color-0);\n}\n\n.mdhui-single-external-account .external-account-header {\n position: relative;\n padding: 8px;\n font-weight: bold;\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-single-external-account .external-account-header .delete-button {\n position: absolute;\n right: 0;\n top: 0;\n cursor: pointer;\n padding: 16px;\n color: var(--mdhui-text-color-4);\n width: auto;\n font-size: .88em;\n border: none;\n background: none;\n height: 100%;\n}\n\n.mdhui-single-external-account .external-account-header .external-account-provider-logo {\n height: 24px;\n display: block;\n background: #FFF;\n padding: 8px;\n border-radius: 8px;\n}\n\n.mdhui-single-external-account .external-account-header .external-account-provider-name {\n font-size: 1em;\n font-weight: bold;\n}\n\n.mdhui-single-external-account .external-account-status {\n padding: 16px;\n padding-bottom: 0;\n padding-top: 0;\n font-size: .88em;\n}\n\n.mdhui-single-external-account .external-account-status p {\n margin-bottom: 16px;\n margin-top: 16px;\n}\n\n.mdhui-single-external-account .external-account-status a {\n cursor: pointer;\n text-decoration: none;\n}\n\n.mdhui-single-external-account .external-account-status .error {\n color: var(--mdhui-color-danger);\n}");function Wu(t){var r,n;var o,i=f.getCurrentLanguage().toLowerCase().startsWith("es")?ic:qe;return e.createElement("div",{className:"mdhui-single-notification"},(null===(r=t.notification.content)||void 0===r?void 0:r.title)&&e.createElement("div",{className:"notification-title"},t.notification.content.title),(null===(n=t.notification.content)||void 0===n?void 0:n.body)&&e.createElement("div",{className:"notification-body"},t.notification.content.body),e.createElement("div",{className:"notification-date"},(o=Ke(Bl(t.notification.sentDate),new Date,{locale:i})).charAt(0).toUpperCase()+o.slice(1)))}y(".mdhui-single-notification\n{\n padding: 16px;\n border-bottom: solid 1px var(--mdhui-border-color-0);\n position: relative;\n}\n\n .mdhui-single-notification:last-child\n {\n border: none;\n }\n\n .mdhui-single-notification > .notification-title\n {\n font-weight: bold;\n }\n\n .mdhui-single-notification > .notification-body\n {\n font-size: .88em;\n }\n\n .mdhui-single-notification > .notification-date\n {\n color: var(--mdhui-text-color-2);\n margin-top: 16px;\n font-size: .75em;\n }\n");y(".mdhui-single-survey-task\n{\n padding: 16px;\n display: grid;\n grid-template-columns: max-content auto max-content;\n grid-column-gap: 16px;\n align-items: center;\n width: 100%;\n}\n\n .mdhui-single-survey-task .status-icon\n {\n color: var(--mdhui-text-color-3);\n }\n\n .mdhui-single-survey-task.complete .status-icon\n {\n color: var(--mdhui-color-success);\n }\n\n .mdhui-single-survey-task .survey-name\n {\n font-size: .88em;\n font-weight: bold;\n }\n\n .mdhui-single-survey-task .survey-description,\n .mdhui-single-survey-task .completed-date\n {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n }\n\n .mdhui-single-survey-task .due-date\n {\n font-size: .88em;\n color: var(--mdhui-color-primary);\n }\n\n .mdhui-single-survey-task .due-date.warning\n {\n color: var(--mdhui-color-warning);\n font-weight: bold;\n }\n\n .mdhui-single-survey-task .due-date.danger\n {\n color: var(--mdhui-color-danger);\n font-weight: bold;\n }\n\n .mdhui-single-survey-task .indicator\n {\n font-size: 16px;\n color: var(--mdhui-text-color-3);\n }\n\n .mdhui-single-survey-task.incomplete\n {\n cursor: pointer;\n }\n");var Vu={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="circle-check",r=[61533,"check-circle"],n="f058",o="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z";e.definition={prefix:"fas",iconName:t,icon:[512,512,r,n,o]},e.faCircleCheck=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(Vu);var Uu={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="circle-half-stroke",r=[9680,"adjust"],n="f042",o="M448 256c0-106-86-192-192-192V448c106 0 192-86 192-192zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z";e.definition={prefix:"fas",iconName:t,icon:[512,512,r,n,o]},e.faCircleHalfStroke=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(Uu);var Gu={};function $u(t){var r=function(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()},n=new Date,o=M(new Date,{days:1}),i="",a="",l=f.getCurrentLanguage().toLowerCase().startsWith("es")?ic:qe;if(t.task.dueDate){var c=Bl(t.task.dueDate);if(r(c,o))i=Mu["due-tomorrow"],a="warning";else if(r(c,n))i=Mu["due-today"],a="warning";else if(et(n,c))i=Mu.overdue,a="danger";else{var s;s=function(e,t){return z(1,arguments),Qe(e,Date.now(),t)}(new Date(t.task.dueDate),{locale:l}),i=Mu["due-in"]+" "+s}}return"incomplete"==t.task.status?e.createElement("button",{className:"mdhui-single-survey-task incomplete",onClick:function(){return e=t.task.surveyName,void(t.disableClick||f.startSurvey(e));var e}},e.createElement("div",{className:"status-icon"},t.task.hasSavedProgress&&e.createElement(b,{icon:Uu.faCircleHalfStroke}),!t.task.hasSavedProgress&&e.createElement(b,{icon:Gu.faCircle})),e.createElement("div",null,e.createElement("div",{className:"survey-name"},t.task.surveyDisplayName),e.createElement("div",{className:"survey-description"},t.descriptionIcon," ",t.task.surveyDescription),!t.hideDueDate&&i&&e.createElement("div",{className:"due-date "+a},i)),e.createElement("div",{className:"indicator"},e.createElement(b,{icon:m.faChevronRight}))):"complete"==t.task.status&&t.task.endDate?e.createElement("div",{className:"mdhui-single-survey-task complete"},e.createElement("div",{className:"status-icon"},e.createElement(b,{icon:Vu.faCircleCheck})),e.createElement("div",null,e.createElement("div",{className:"survey-name"},t.task.surveyDisplayName),e.createElement("div",{className:"completed-date"},Mu.completed," ",Ke(Bl(t.task.endDate),new Date,{locale:l})))):null}!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="circle",r=[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],n="f111",o="M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z";e.definition={prefix:"far",iconName:t,icon:[512,512,r,n,o]},e.faCircle=e.definition,e.prefix="far",e.iconName=t,e.width=512,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(Gu);function Yu(t){var r=100/t.bars.length;return e.createElement("div",{className:"mdhui-spark-bar-chart"},e.createElement("div",{className:"mdhui-spark-bar-chart-average",style:{bottom:100*t.averageFillPercent+"%"}}),e.createElement("div",{className:"mdhui-spark-bar-chart-bars"},t.bars.map((function(t,n){return e.createElement("div",{key:n,className:"mdhui-spark-bar-chart-bar",style:{backgroundColor:t.color,height:100*t.barFillPercent+"%",width:r+"%",left:r*n+"%"}},e.createElement(Cu,null))}))))}y(".mdhui-spark-bar-chart\n{\n position: relative;\n height: 72px;\n}\n\n .mdhui-spark-bar-chart .mdhui-spark-bar-chart-bars\n {\n margin-left: 8px;\n width: calc( 100% - 16px);\n position: relative;\n height: 100%;\n }\n\n .mdhui-spark-bar-chart .mdhui-spark-bar-chart-bars .mdhui-spark-bar-chart-bar\n {\n position: absolute;\n bottom: 0;\n z-index: 2;\n }\n\n .mdhui-spark-bar-chart .mdhui-spark-bar-chart-average\n {\n border-top: dashed 1px #ddd;\n position: absolute;\n left: 0px;\n right: 0px;\n z-index: 1;\n }\n");function Zu(t){return e.createElement("button",{onClick:function(){return t.onValueChanged(!t.isOn)},className:"mdhui-switch"+(t.isOn?" mdhui-switch-on":"")+(t.className?" "+t.className:""),style:{backgroundColor:t.isOn?t.onBackgroundColor:"#eee"}},e.createElement("div",{className:"mdhui-switch-circle"}))}y(".mdhui-switch\n{\n border: 1px solid #dfdfdf;\n border-radius: 20px;\n cursor: pointer;\n display: inline-block;\n height: 30px;\n position: relative;\n vertical-align: middle;\n width: 50px;\n background: #eee;\n -webkit-box-sizing: content-box;\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n -webkit-background-clip: content-box;\n background-clip: content-box;\n}\n\n .mdhui-switch.mdhui-switch-on\n {\n background: var(--mdhui-color-primary);\n }\n\n .mdhui-switch .mdhui-switch-circle\n {\n background: #fff;\n border-radius: 100%;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);\n height: 30px;\n position: absolute;\n top: 0;\n width: 30px;\n }\n\n .mdhui-switch.mdhui-switch-on .mdhui-switch-circle\n {\n right: 0;\n }\n");function Xu(t){var r=i(Su),n={};return t.color&&(n={backgroundColor:t.color}),!t.color&&r.darkMode&&f.setStatusBarStyle("lightContent"),e.createElement("div",{className:"mdhui-status-bar-background",style:n})}y(".mdhui-status-bar-background {\n position: sticky;\n position: -webkit-sticky;\n left: 0;\n top: 0;\n right: 0;\n height: env(safe-area-inset-top);\n width: 100%;\n z-index: 1;\n background: var(--mdhui-background-color-0);\n}");function Qu(t){return t.children?e.createElement("div",{className:"mdhui-text-block "+(t.className||"")},t.children):null}y(".mdhui-text-block\n{\n margin: 16px;\n font-size: .88em;\n line-height: 1.3em;\n}\n");function Ju(t){var r=["mdhui-tracker-item"];t.onClick&&r.push("selectable"),t.selected?r.push("selected"):r.push("unselected"),t.bordered&&r.push("bordered"),t.className&&r.push(t.className);var n={borderColor:t.color,color:t.color,backgroundColor:t.color};return e.createElement("button",{className:r.join(" "),style:n,onClick:function(){return t.onClick?t.onClick():null}},t.text,t.selected&&e.createElement(Cu,null),t.badge&&t.selected&&e.createElement("div",{className:"badge"},t.badge))}y(".mdhui-tracker-item {\n padding: 8px;\n padding-right: 16px;\n padding-left: 16px;\n color: var(--mdhui-background-color-0);\n border-radius: 32px;\n font-size: .88em;\n display: inline-block;\n margin: 8px;\n position: relative;\n border: solid 1px #000;\n user-select: none;\n}\n\n.mdhui-tracker-item.selectable {\n cursor: pointer;\n}\n\n.mdhui-tracker-item.selected {\n box-shadow: var(--mdhui-box-shadow-1);\n color: #FFF !important;\n background-color: inherit;\n}\n\n.mdhui-tracker-item.unselected {\n background-color: var(--mdhui-background-color-0) !important;\n}\n\n.mdhui-tracker-item.mdhui-shiny-overlay {\n border-radius: 16px;\n}\n\n.mdhui-tracker-item.bordered .mdhui-shiny-overlay {\n left: 1px;\n right: 1px;\n bottom: 1px;\n top: 1px;\n border: solid 2px #FFF;\n border-radius: 32px;\n}\n\n.mdhui-tracker-item .badge {\n position: absolute;\n right: -4px;\n top: -4px;\n border-radius: 32px;\n padding: 3px;\n background: linear-gradient(to bottom, #555 0%, #888 100%);\n font-size: .5em;\n font-weight: bold;\n text-align: center;\n min-width: 10px;\n user-select: none;\n font-size: .62em;\n}");function Ku(t){var r=a(null);s((function(){var e;if(t.onStartDateChange){var n=function(e){var o,i,a,l;0==(null===(o=r.current)||void 0===o?void 0:o.scrollLeft)?(t.onStartDateChange(M(t.startDate,{weeks:-1})),null===(i=r.current)||void 0===i||i.removeEventListener("scroll",n)):(null===(a=r.current)||void 0===a?void 0:a.scrollLeft)==2*window.innerWidth&&(t.onStartDateChange(M(t.startDate,{weeks:1})),null===(l=r.current)||void 0===l||l.removeEventListener("scroll",n))};return null===(e=r.current)||void 0===e||e.addEventListener("scroll",n),function(){var e;null===(e=r.current)||void 0===e||e.removeEventListener("scroll",n)}}}),[t.startDate]);for(var n=[],o=[],i=[],l=M(t.startDate,{days:-7}),c=0;c<21;c++)c<7?n.push(l):c<14?o.push(l):i.push(l),l=M(l,{days:1});function u(t){return e.createElement("div",{className:"mdhui-week-calendar-date-label"},e.createElement("div",{className:"mdhui-week-calendar-day-of-week"}," ",$e(t,"E").substr(0,1)),e.createElement("div",{className:"mdhui-week-calendar-day-of-month"},$e(t,"d")))}function f(e){var r=["mdhui-week-calendar-day"];return e>new Date?r.push("mdhui-week-calendar-day-future"):t.onDateSelected&&r.push("mdhui-week-calendar-day-selectable"),t.selectedDate&&Je(e).substr(0,10)==Je(t.selectedDate).substr(0,10)&&r.push("mdhui-week-calendar-day-selected"),r}return s((function(){r.current&&(r.current.scrollLeft=window.innerWidth)})),r.current&&(r.current.scrollLeft=window.innerWidth),e.createElement("div",{className:"mdhui-week-calendar",ref:r},t.loading&&e.createElement("div",{className:"mdhui-week-calendar-loading"},e.createElement(Lu,null)),e.createElement("div",{className:"mdhui-week-calendar-week"},n.map((function(r){return e.createElement("div",{key:r.getTime(),className:"mdhui-week-calendar-day"},t.dayRenderer(r.getFullYear(),r.getMonth(),r.getDate(),!1),!t.hideDateLabel&&u(r))}))),e.createElement("div",{className:"mdhui-week-calendar-week"},o.map((function(r){return e.createElement("button",{key:r.getTime(),className:f(r).join(" "),onClick:function(){var e;(e=r)>new Date||t.onDateSelected&&t.onDateSelected(e)}},t.dayRenderer(r.getFullYear(),r.getMonth(),r.getDate(),!0),!t.hideDateLabel&&u(r))}))),M(t.startDate,{days:7})<new Date&&e.createElement("div",{className:"mdhui-week-calendar-week"},i.map((function(r){return e.createElement("div",{key:r.getTime(),className:f(r).join(" ")},t.dayRenderer(r.getFullYear(),r.getMonth(),r.getDate(),!1),!t.hideDateLabel&&u(r))}))))}y(".mdhui-week-calendar {\n background: var(--mdhui-background-color-0);\n overflow-x: scroll;\n overflow-y: hidden;\n z-index: 0;\n position: relative;\n display: flex;\n scroll-snap-type: x mandatory;\n scrollbar-width: none;\n border-top: solid 1px var(--mdhui-border-color-1);\n border-bottom: solid 1px var(--mdhui-border-color-1);\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-loading {\n position: absolute;\n width: 100%;\n left: 100%;\n top: calc(50% - 10px);\n}\n\n.mdhui-week-calendar * {\n user-select: none;\n}\n\n.mdhui-week-calendar::-webkit-scrollbar {\n display: none;\n /* Safari and Chrome */\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-week {\n min-width: 100%;\n scroll-snap-align: start;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day {\n width: calc(14.28% - 1px);\n border-left: solid 1px var(--mdhui-border-color-1);\n overflow: hidden;\n position: relative;\n display: inline-block;\n vertical-align: top;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day:first-child {\n width: 14.28%;\n border-left: none;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-date-label {\n padding-top: 4px;\n line-height: 16px;\n padding-bottom: 8px;\n text-align: center;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-week {\n font-size: 10px;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-month {\n font-size: 14px;\n display: inline-block;\n text-align: center;\n width: 24px;\n height: 24px;\n border-radius: 24px;\n line-height: 24px;\n margin-top: 2px;\n margin-bottom: 2px;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-selectable {\n cursor: pointer;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-selected {\n background: var(--mdhui-background-color-2);\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-selected .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-month {\n background-color: var(--mdhui-color-theme);\n color: #FFF;\n font-weight: bold;\n}\n\n.mdhui-week-calendar .mdhui-week-calendar-day-future>* {\n opacity: .4;\n}");y(".mdhui-connect-ehr {\n background: var(--mdhui-background-color-0);\n position: relative;\n width: 100%;\n text-align: left;\n border: none;\n font-size: 1em;\n line-height: 1.2em;\n cursor: pointer;\n}\n\n.mdhui-connect-ehr .error-content {\n padding: 16px;\n}\n\n.mdhui-connect-ehr .content {\n padding: 16px 42px 16px 16px;\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-connect-ehr .connection-status {\n padding: 16px 42px 0 16px;\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-connect-ehr .connection-status .success svg {\n color: var(--mdhui-color-success);\n}\n\n.mdhui-connect-ehr .connection-status .warning {\n color: var(--mdhui-color-danger);\n}\n\n.mdhui-connect-ehr .indicator {\n position: absolute;\n top: calc(50% - 8px);\n right: 16px;\n font-size: 16px;\n color: var(--mdhui-text-color-2);\n}");var ef={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Vu;e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faCheckCircle=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(ef);var tf={};function rf(t){var r=c(!0),n=r[0],o=r[1],i=c(!1),a=i[0],l=i[1],u=c(null),p=u[0],d=u[1],h=c(!1),y=h[0],v=h[1],g=c(!1),w=g[0],O=g[1];function x(){if(t.previewState){if("notEnabled"==t.previewState)return;return l(!0),d("PROJECT"),"enabledConnected"==t.previewState?(v(!0),O(!1)):"enabledNeedsAttention"==t.previewState&&(v(!0),O(!0)),void o(!1)}f.getDataCollectionSettings().then((function(e){l(e.ehrEnabled),e.ehrEnabled&&f.getProjectInfo().then((function(e){d(e.name),f.getExternalAccounts().then((function(e){e=e.filter((function(e){return-1!=["Provider","Health Plan"].indexOf(e.provider.category)})),v(e.length>0),O(e.some((function(e){return"unauthorized"==e.status||"error"==e.status}))),o(!1)}))}))}))}return s((function(){return x(),f.on("applicationDidBecomeVisible",x),f.on("externalAccountSyncComplete",x),function(){f.off("applicationDidBecomeVisible",x),f.off("externalAccountSyncComplete",x)}}),[]),a?n?null:e.createElement("button",{className:"mdhui-connect-ehr",onClick:function(){"preview"==t.applicationUrl?console.log("PREVIEW: Opening the connect EHR application."):f.openApplication(t.applicationUrl)}},e.createElement(cc,{title:Mu["connect-ehr-title-prefix"]+Mu["connect-ehr-title-providers"]+Mu["connect-ehr-title-divider"]+Mu["connect-ehr-title-health-plans"]}),y?e.createElement("div",null,e.createElement("div",{className:"connection-status"},w?e.createElement("div",{className:"warning"},e.createElement(b,{icon:tf.faTriangleExclamation})," ",Mu["connect-ehr-needs-attention"]):e.createElement("div",{className:"success"},e.createElement(b,{icon:ef.faCheckCircle})," ",Mu["connect-ehr-connected"])),e.createElement("div",{className:"content"},Mu["connect-ehr-text-connected"].replace("@@PROJECT_NAME@@",p))):e.createElement("div",{className:"content"},Mu["connect-ehr-text"].replace("@@PROJECT_NAME@@",p)),e.createElement("div",{className:"indicator"},e.createElement(b,{icon:m.faChevronRight})),e.createElement(Cu,null)):"displayError"==t.disabledBehavior?e.createElement("div",{className:"mdhui-connect-ehr"},e.createElement("div",{className:"error-content"},Mu["connect-ehr-not-enabled"])):null}!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="triangle-exclamation",r=[9888,"exclamation-triangle","warning"],n="f071",o="M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z";e.definition={prefix:"fas",iconName:t,icon:[512,512,r,n,o]},e.faTriangleExclamation=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(tf);var nf={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=tf;e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faExclamationTriangle=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(nf);function of(t){var r=c(!0),n=r[0],o=r[1],i=c(!1),a=i[0],l=i[1],u=c(null),p=u[0],d=u[1];function h(){var e=564;return f.baseUrl&&!f.baseUrl.startsWith("https://mdhorg.ce.dev")||(e=2),t.fitbitProviderID&&(e=t.fitbitProviderID),e}function m(){if(t.previewState){if("notEnabled"==t.previewState)return;return l(!0),"notConnected"==t.previewState?void o(!1):(d({id:1,lastRefreshDate:Je(M(new Date,{hours:-1})),status:t.previewState,provider:{name:"Fitbit",category:"Device Manufacturer",id:h(),logoUrl:""}}),void o(!1))}f.getDataCollectionSettings().then((function(e){l(e.fitbitEnabled),e.fitbitEnabled?f.getExternalAccounts().then((function(e){for(var t=0;t<e.length;t++)e[t].provider.id==h()&&d(e[t]);o(!1)})):o(!1)}))}function y(){f.connectExternalAccount(h())}s((function(){return m(),f.on("applicationDidBecomeVisible",m),f.on("externalAccountSyncComplete",m),function(){f.off("applicationDidBecomeVisible",m),f.off("externalAccountSyncComplete",m)}}),[]);var v=null==p?void 0:p.status;if("fetchComplete"==(null==p?void 0:p.status)){var g=M(Bl(p.lastRefreshDate),{hours:3});et(new Date,g)&&(f.refreshExternalAccount(p.id),v="fetchingData")}return a?e.createElement("div",{className:"mdhui-connect-fitbit"},t.title&&e.createElement(cc,{title:t.title}),n&&e.createElement(Lu,null),!n&&e.createElement("div",{className:"content"},!p&&e.createElement("div",null,e.createElement("div",{className:"subtitle"},Mu["connect-fitbit-intro"]),e.createElement(x,{onClick:function(){return y()}},Mu["connect-fitbit-button"])),p&&"fetchComplete"==v&&e.createElement("div",{className:"subtitle success"},e.createElement(b,{icon:ef.faCheckCircle})," ",Mu["received-fitbit-data"]),p&&"fetchingData"==v&&e.createElement("div",{className:"subtitle downloading"},e.createElement(b,{icon:_u.faRefresh,spin:!0})," ",Mu["downloading-data"]),p&&"unauthorized"==v&&e.createElement("div",null,e.createElement("div",{className:"subtitle reconnect"},e.createElement(b,{icon:nf.faExclamationTriangle})," ",Mu.reconnect),e.createElement(x,{onClick:function(){return y()}},Mu["connect-fitbit-button"])))):"displayError"!=t.disabledBehavior||n?null:e.createElement("div",{className:"mdhui-connect-fitbit"},e.createElement("div",{className:"content"},"Fitbit is not enabled for this project."))}y(".mdhui-connect-fitbit .title {\n font-weight: bold;\n}\n\n.mdhui-connect-fitbit .subtitle {\n font-size: .88em;\n font-weight: normal;\n color: var(--mdhui-text-color-2);\n}\n\n.mdhui-connect-fitbit .subtitle.reconnect {\n color: var(--mdhui-color-danger);\n font-weight: bold;\n}\n\n.mdhui-connect-fitbit .subtitle.success svg {\n color: var(--mdhui-color-success);\n}\n\n.mdhui-connect-fitbit .mdhui-button {\n margin-top: 16px;\n}\n\n.mdhui-connect-fitbit .content {\n padding: 16px;\n}");y(".mdhui-device-data-month-chart {\n position: relative;\n}\n\n.mdhui-device-data-month-chart .title {\n padding: 16px;\n padding-bottom: 0;\n position: relative;\n font-weight: bold;\n float: left;\n}\n\n.mdhui-device-data-month-chart .average {\n font-weight: normal;\n float: right;\n font-size: .7em;\n padding: 16px;\n padding-top: 21px;\n padding-bottom: 0;\n}\n\n.mdhui-device-data-month-chart .average .average-value {\n font-weight: bold;\n}\n\n\n.mdhui-device-data-month-chart .chart-container {\n padding: 16px;\n height: 150px;\n position: relative;\n}\n\n.mdhui-device-data-month-chart .no-data-label,\n.mdhui-device-data-month-chart .mdhui-loading-indicator {\n position: absolute;\n left: 0;\n top: calc(50% - 40px);\n text-align: center;\n width: 100%;\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n box-sizing: border-box;\n padding: 16px;\n}\n\n.mdhui-device-data-month-chart .recharts-cartesian-axis-tick {\n font-size: 11px;\n}\n\n.mdhui-device-data-month-chart .graph-tooltip {\n padding: 4px;\n font-size: 12px;\n background: var(--mdhui-background-color-0);\n border-radius: 5px;\n box-shadow: var(--mdhui-box-shadow-0);\n animation: fadein 1s;\n -moz-animation: fadein 1s;\n -webkit-animation: fadein 1s;\n border: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-device-data-month-chart .graph-tooltip .graph-date {\n padding: 4px;\n}\n\n.mdhui-device-data-month-chart .graph-tooltip table {\n border-spacing: 0;\n border-collapse: collapse;\n}\n\n.mdhui-device-data-month-chart .graph-tooltip table tr:nth-child(odd) {\n background: var(--mdhui-background-color-2);\n}\n\n.mdhui-device-data-month-chart .graph-tooltip table th {\n padding: 4px;\n padding-right: 8px;\n text-align: left;\n font-weight: normal;\n}\n\n.mdhui-device-data-month-chart .graph-tooltip table td {\n padding: 4px;\n text-align: left;\n font-weight: bold;\n}\n\n.mdhui-device-data-month-chart .recharts-cartesian-axis-tick {\n fill: var(--mdhui-text-color-1);\n}");var af=require("recharts/es6/chart/LineChart").LineChart,lf=require("recharts/es6/component/ResponsiveContainer").ResponsiveContainer,cf=require("recharts/es6/cartesian/XAxis").XAxis,sf=require("recharts/es6/cartesian/YAxis").YAxis,uf=require("recharts/es6/component/Tooltip").Tooltip,ff=require("recharts/es6/cartesian/CartesianGrid").CartesianGrid,pf=require("recharts/es6/cartesian/Line").Line;function df(e){return Je(e).substr(0,10)}function hf(e,t,r){return"FitbitSteps"==e?mf(t,r):"FitbitRestingHeartRates"==e||"AppleHealthSteps"==e?yf(t,r):"AppleHealthDistanceRunningWalking"==e?function(e,t){var r=new Date(e,t,1,0,0,0,0),n=M(r,{months:1}),o={};for(;r<n;)o[df(r)]=Math.floor(500*Math.random()),r=M(r,{hours:1});return o}(t,r):"GoogleFitSteps"==e?function(e,t){var r=new Date(e,t,1,0,0,0,0),n=M(r,{months:1}),o={};for(;r<n;)o[df(r)]=Math.floor(500*Math.random()),r=M(r,{hours:1});return o}(t,r):mf(t,r)}function mf(e,t){for(var r=new Date(e,t,1,0,0,0,0),n=M(r,{months:1}),o={};r<n;)o[df(r)]=3e3+Math.floor(1e4*Math.random()),r=M(r,{days:1});return o}function yf(e,t){for(var r=new Date(e,t,1,0,0,0,0),n=M(r,{months:1}),o={};r<n;)o[df(r)]=60+Math.floor(5*Math.random()),r=M(r,{days:1});return o}function vf(e){var t=[],r=function(n){var o=yu({},e);return n&&(o.pageID=n),f.queryDeviceData(o).then((function(e){return t=t.concat(e.deviceDataPoints),e.nextPageID?r(e.nextPageID):t}))};return r()}function gf(e,t){var r=e.startDate;t.startDate<r&&(r=t.startDate);var n=e.endDate;return t.endDate>n&&(n=t.endDate),{startDate:r,endDate:n}}function bf(e){for(var t,r,n=[],o=(e=e.sort((function(e,t){return e.startDate.getTime()-t.startDate.getTime()})))[0],i=1;i<e.length;i++)t=o,(r=e[i]).startDate>=t.startDate&&r.startDate<=t.endDate||r.endDate>=t.startDate&&r.endDate<=t.endDate||t.startDate>=r.startDate&&t.startDate<=r.endDate||t.endDate>=r.startDate&&t.endDate<=r.endDate?o=gf(o,e[i]):(n.push(o),o=e[i]);n.push(o);var a=0;return n.forEach((function(e){a+=function(e,t,r){z(2,arguments);var n=Y(e,t)/6e4;return X(null==r?void 0:r.roundingMethod)(n)}(e.endDate,e.startDate)})),a}function wf(e,t,r){return vf({namespace:"AppleHealth",type:"SleepAnalysisInterval",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(n){var o={};n.forEach((function(e){if(e.observationDate&&e.startDate&&e.value==r)for(var t=function(e){for(var t=[],r=Bl(e.startDate),n=Bl(e.observationDate),o=M(new Date(r.getFullYear(),r.getMonth(),r.getDate(),18,0,0,0),{days:-1});o<n;){var i=M(o,{days:1});if(i>r){var a=new Date(o),l=new Date(i);r>=o&&r<i&&(a=r),n>=o&&n<i&&(l=n),t.push({startDate:a,endDate:l})}o=i}return t}(e),n=0;n<t.length;n++){var i=Je(M(t[n].startDate,{hours:6})).substring(0,10);o[i]||(o[i]=[]),o[i].push(t[n])}}));for(var i={};e<t;){var a=e.toISOString().substr(0,10),l=o[a];l&&(i[a]=bf(l)),e=M(e,{days:1})}return i}))}function Of(e,t){return vf({namespace:"AppleHealth",type:"HourlySteps",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=df(Bl(e.startDate));t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}function xf(e,t,r){return vf({namespace:"Fitbit",type:r,observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=e.startDate.substr(0,10);t[r]||(t[r]=0),t[r]+=parseInt(e.value)}})),t}))}function kf(e,t,r){return vf({namespace:"Fitbit",type:"HeartRateZone",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if("Out of Range"!=e.value&&(!r||e.value==r)&&e.properties&&e.properties.Minutes&&e.startDate){var n=e.startDate.substr(0,10);t[n]||(t[n]=0),t[n]+=parseInt(e.properties.Minutes)}})),t}))}function Ef(e,t,r){return vf({namespace:"Fitbit",type:e,observedAfter:M(t,{days:-1}).toISOString(),observedBefore:M(r,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate&&0!=parseInt(e.value)){var r=e.startDate.substr(0,10);t[r]=Math.round(parseFloat(e.value))}})),t}))}function jf(e,t){return Ef("RestingHeartRate",e,t)}function Sf(e,t,r){return vf({namespace:"Fitbit",type:r,observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.observationDate){var r=Je(M(Bl(e.observationDate),{hours:6})).substr(0,10);t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}function Tf(e,t){return Ef("Steps",e,t)}cf.displayName="XAxis",sf.displayName="YAxis";var Pf,Cf={};function zf(e,t,r){Cf[e]={provider:t,availabilityCheck:r}}function _f(e,t){var r=Cf[e];if(!r)throw"Unknown data type:"+e;return r.availabilityCheck(t)}function Df(e,t,r){return Cf[e].provider(t,r).then((function(e){for(var n={};t<r;){var o=df(t);e[o]&&(n[o]=e[o]),t=M(t,{days:1})}return n}))}function Lf(e,t){return function(r){var n={namespace:e,type:t,limit:1};return r&&(n.modifiedAfter=r.toISOString()),f.queryDeviceData(n).then((function(e){return e.deviceDataPoints.length>0})).catch((function(){return!1}))}}function Af(t){var r=t.x,n=t.y;t.stroke;var o=t.payload.value;return e.createElement("text",{x:r,y:n+15,textAnchor:"middle",fontSize:"12"},o)}function Nf(t){var r=c(null),n=r[0],o=r[1],i=c(!1),l=i[0],u=i[1],p=c(!1),d=p[0],h=p[1],m=a(),y=new Date(t.year,t.month,1,0,0,0,0),v=M(y,{months:1});function g(){var e,r;if(t.previewState&&(h(!0),t.onDataDetected&&t.onDataDetected()),"Loading"==t.previewState&&u(!0),"WithData"==t.previewState){var n={};t.lines.forEach((function(e){var r=hf(e.dailyDataType,t.year,t.month);n[e.dailyDataType]=r})),o(n)}if("NoData"==t.previewState){n={};t.lines.forEach((function(e){n[e.dailyDataType]={}})),o(n),u(!1)}if(!t.previewState){!function(){if(!d){var e=t.lines.map((function(e){return _f(e.dailyDataType)}));Promise.all(e).then((function(e){e.find((function(e){return e}))&&(h(!0),t.onDataDetected&&t.onDataDetected())}))}}(),m.current=(null!==(e=m.current)&&void 0!==e?e:0)+1;var i=null!==(r=m.current)&&void 0!==r?r:0;u(!0);var a;a=t.lines.map((function(e){return Df(e.dailyDataType,y,v)})),Promise.all(a).then((function(e){if(i==m.current){for(var r={},n=0;n<t.lines.length;n++)r[t.lines[n].dailyDataType]=e[n];o(r),u(!1)}}))}}s((function(){return g(),f.on("applicationDidBecomeVisible",g),f.on("externalAccountSyncComplete",g),function(){f.off("applicationDidBecomeVisible",g),f.off("externalAccountSyncComplete",g)}}),[t]);for(var b=[],w=y,O=!1;w<v;){var x={day:w.getDate()};b.push(x);var k=df(w);t.lines.forEach((function(e){n&&(x[e.dailyDataType]=n[e.dailyDataType][k],e.valueConverter&&(x[e.dailyDataType]=e.valueConverter(x[e.dailyDataType])),x[e.dailyDataType]>0&&(O=!0))})),w=M(w,{days:1})}if(!d)return null;var E=function(){var e=t.lines.filter((function(e){return e.showAverage}));if(0==e.length)return null;if(e.length>1)return console.error("Only one line can display an average"),null;var r=e[0],n=b.map((function(e){return e[r.dailyDataType]}));return(n=n.filter((function(e){return!!e}))).length?(n.reduce((function(e,t){return e+t}))/n.length).toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:1}):null}();return e.createElement("div",{className:"mdhui-device-data-month-chart"},t.title&&e.createElement("div",{className:"title"},t.title),!l&&null!=E&&e.createElement("div",{className:"average"},"Daily Average: ",e.createElement("span",{className:"average-value"},E)),e.createElement("div",{style:{clear:"both"}}),e.createElement("div",{className:"chart-container"},(!O||l)&&e.createElement("div",null,!O&&!l&&e.createElement("div",{className:"no-data-label"},"No Data"),l&&e.createElement(Lu,null),e.createElement(lf,{width:"100%",height:150},e.createElement(af,{width:400,height:400,data:b,syncId:t.syncId},e.createElement(ff,{strokeDasharray:"3 3"}),e.createElement(sf,{axisLine:!1,interval:0,tickLine:!1,width:30,scale:"linear"}),e.createElement(cf,{id:"myXAxis",tick:Af,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))),O&&!l&&e.createElement(lf,{width:"100%",height:150},e.createElement(af,{width:400,height:400,data:b,syncId:t.syncId},t.lines.map((function(t){return e.createElement(pf,{key:t.dailyDataType,type:"monotone",dataKey:t.dailyDataType,stroke:"var(--mdhui-color-primary)"})})),e.createElement(uf,{content:e.createElement((function(r){var n=r.active,o=r.payload;if(r.label,n&&o&&o.length){var i=new Date(t.year,t.month,o[0].payload.day),a={};return t.lines.forEach((function(e){a[e.dailyDataType]=e.label})),e.createElement("div",{className:"graph-tooltip"},e.createElement("div",{className:"graph-date"},$e(i,"MM/dd/yyyy")),e.createElement("table",{className:"payload-values"},e.createElement("tbody",null,o.map((function(t){return e.createElement("tr",{key:t.dataKey},e.createElement("th",null,a[t.dataKey]),e.createElement("td",null,parseFloat(t.value.toFixed(2))))})))))}return null}),null)}),e.createElement(ff,{strokeDasharray:"3 3"}),e.createElement(sf,{tickFormatter:function(e){return e>=1e4?Math.floor(e/1e3)+"K":e},axisLine:!1,interval:0,tickLine:!1,width:30}),e.createElement(cf,{id:"myXAxis",tick:Af,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))))}function Mf(t){var r=c(!1),n=r[0],o=r[1],i=new Date,a=c(new Date(i.getFullYear(),i.getMonth(),1,0,0,0,0)),l=a[0],s=a[1];function u(){o(!0)}var f=l.getMonth(),p=l.getFullYear();return e.createElement(e.Fragment,null,!n&&e.createElement(Qu,null,Mu["device-data-no-data"]),e.createElement("div",{style:{display:n?"block":"none"}},e.createElement(uc,{intervalType:"Month",intervalStart:l,onIntervalChange:function(e){s(e)}}),e.createElement(Nf,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:Pf.FitbitSteps,label:Mu.steps}],title:"Fitbit "+Mu.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Nf,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:Pf.FitbitRestingHeartRate,label:Mu["resting-heart-rate"]}],title:"Fitbit "+Mu["resting-heart-rate"],month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Nf,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:Pf.AppleHealthSteps,label:Mu.steps}],title:"Apple Health "+Mu.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Nf,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:Pf.AppleHealthDistanceWalkingRunning,label:Mu["distance-traveled"],valueConverter:function(e){return 621371e-9*e}}],title:"Apple Health "+Mu["distance-traveled"]+" (Miles)",month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Nf,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:Pf.GoogleFitSteps,label:Mu.steps}],title:"Google Fit "+Mu.steps,month:f,year:p,syncId:"DeviceDataCharts"})))}!function(e){e.AppleHealthDistanceWalkingRunning="AppleHealthDistanceWalkingRunning",e.AppleHealthFlightsClimbed="AppleHealthFlightsClimbed",e.AppleHealthHeartRateRange="AppleHealthHeartRateRange",e.AppleHealthHrv="AppleHealthHrv",e.AppleHealthMaxHeartRate="AppleHealthMaxHeartRate",e.AppleHealthRestingHeartRate="AppleHealthRestingHeartRate",e.AppleHealthSleepMinutes="AppleHealthSleepMinutes",e.AppleHealthInBedMinutes="AppleHealthInBedMinutes",e.AppleHealthStandMinutes="AppleHealthStandMinutes",e.AppleHealthSteps="AppleHealthSteps",e.AppleHealthWalkingHeartRateAverage="AppleHealthWalkingHeartRateAverage",e.FitbitActiveMinutes="FitbitActiveMinutes",e.FitbitLightlyActiveMinutes="FitbitLightlyActiveMinutes",e.FitbitFairlyActiveMinutes="FitbitFairlyActiveMinutes",e.FitbitVeryActiveMinutes="FitbitVeryActiveMinutes",e.FitbitBreathingRate="FitbitBreathingRate",e.FitbitCaloriesBurned="FitbitCaloriesBurned",e.FitbitElevatedHeartRateMinutes="FitbitElevatedHeartRateMinutes",e.FitbitFatBurnHeartRateMinutes="FitbitFatBurnHeartRateMinutes",e.FitbitCardioHeartRateMinutes="FitbitCardioHeartRateMinutes",e.FitbitPeakHeartRateMinutes="FitbitPeakHeartRateMinutes",e.FitbitFloors="FitbitFloors",e.FitbitHrv="FitbitHrv",e.FitbitRestingHeartRate="FitbitRestingHeartRate",e.FitbitSleepMinutes="FitbitSleepMinutes",e.FitbitLightSleepMinutes="FitbitLightSleepMinutes",e.FitbitRemSleepMinutes="FitbitRemSleepMinutes",e.FitbitDeepSleepMinutes="FitbitDeepSleepMinutes",e.FitbitSpO2="FitbitSpO2",e.FitbitSteps="FitbitSteps",e.GoogleFitSteps="GoogleFitSteps",e.Steps="Steps",e.RestingHeartRate="RestingHeartRate"}(Pf||(Pf={})),zf(Pf.AppleHealthDistanceWalkingRunning,(function(e,t){return vf({namespace:"AppleHealth",type:"HourlyDistanceWalkingRunning",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=Je(Bl(e.startDate)).substring(0,10);t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}),Lf("AppleHealth",["HourlyDistanceWalkingRunning"])),zf(Pf.AppleHealthFlightsClimbed,(function(e,t){return vf({namespace:"AppleHealth",type:"FlightsClimbed",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=df(Bl(e.startDate));t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}),Lf("AppleHealth",["HourlySteps"])),zf(Pf.AppleHealthHeartRateRange,(function(e,t){return vf({namespace:"AppleHealth",type:["HourlyMaximumHeartRate","HourlyMinimumHeartRate"],observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(r){var n={};r.forEach((function(e){if(e.startDate){var t=df(Bl(e.startDate)),r=parseFloat(e.value);"HourlyMaximumHeartRate"==e.type&&(n[t]?(!n[t].MaxHeartRate||r>n[t].MaxHeartRate)&&(n[t].MaxHeartRate=r):n[t]={MaxHeartRate:r}),"HourlyMinimumHeartRate"==e.type&&(n[t]?(!n[t].MinHeartRate||r<n[t].MinHeartRate)&&(n[t].MinHeartRate=r):n[t]={MinHeartRate:r})}}));for(var o={};e<t;){var i=n[df(e)];i&&i.MaxHeartRate&&i.MinHeartRate&&(o[df(e)]=i.MaxHeartRate-i.MinHeartRate),e=M(e,{days:1})}return o}))}),Lf("AppleHealth",["HourlyMaximumHeartRate"])),zf(Pf.AppleHealthHrv,(function(e,t){return vf({namespace:"AppleHealth",type:"HeartRateVariability",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(r){var n={};r.forEach((function(e){if(e.startDate){var t=Je(Bl(e.startDate)).substring(0,10),r=parseFloat(e.value);n[t]||(n[t]=[]),n[t].push(r)}}));for(var o={};e<t;){var i=e.toISOString().substr(0,10);n[i]&&(o[i]=n[i].reduce((function(e,t){return e+t}))/n[i].length),e=M(e,{days:1})}return o}))}),Lf("AppleHealth",["HeartRateVariability"])),zf(Pf.AppleHealthMaxHeartRate,(function(e,t){return vf({namespace:"AppleHealth",type:"HourlyMaximumHeartRate",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=Je(Bl(e.startDate)).substring(0,10),n=parseFloat(e.value);t[r]?n>t[r]&&(t[r]=n):t[r]=n}})),t}))}),Lf("AppleHealth",["HourlyMaximumHeartRate"])),zf(Pf.AppleHealthRestingHeartRate,(function(e,t){return vf({namespace:"AppleHealth",type:"RestingHeartRate",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(r){var n={};r.forEach((function(e){if(e.startDate){var t=df(Bl(e.startDate)),r=parseFloat(e.value);n[t]||(n[t]=[]),n[t].push(r)}}));for(var o={};e<t;){var i=e.toISOString().substr(0,10);n[i]&&(o[i]=n[i].reduce((function(e,t){return e+t}))/n[i].length),e=M(e,{days:1})}return o}))}),Lf("AppleHealth",["RestingHeartRate"])),zf(Pf.AppleHealthSleepMinutes,(function(e,t){return wf(e,t,"Asleep")}),Lf("AppleHealth",["SleepAnalysisInterval"])),zf(Pf.AppleHealthInBedMinutes,(function(e,t){return wf(e,t,"InBed")}),Lf("AppleHealth",["SleepAnalysisInterval"])),zf(Pf.AppleHealthStandMinutes,(function(e,t){return vf({namespace:"AppleHealth",type:"AppleStandTime",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=df(Bl(e.startDate));t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}),Lf("AppleHealth",["AppleStandTime"])),zf(Pf.AppleHealthSteps,Of,Lf("AppleHealth",["HourlySteps"])),zf(Pf.AppleHealthWalkingHeartRateAverage,(function(e,t){return vf({namespace:"AppleHealth",type:"WalkingHeartRateAverage",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(r){var n={};r.forEach((function(e){if(e.startDate){var t=df(Bl(e.startDate)),r=parseFloat(e.value);n[t]||(n[t]=[]),n[t].push(r)}}));for(var o={};e<t;){var i=e.toISOString().substr(0,10);n[i]&&(o[i]=n[i].reduce((function(e,t){return e+t}))/n[i].length),e=M(e,{days:1})}return o}))}),Lf("AppleHealth",["WalkingHeartRateAverage"])),zf(Pf.FitbitActiveMinutes,(function(e,t){return xf(e,t,["MinutesVeryActive","MinutesFairlyActive","MinutesLightlyActive"])}),Lf("Fitbit",["MinutesVeryActive","MinutesFairlyActive","MinutesLightlyActive"])),zf(Pf.FitbitLightlyActiveMinutes,(function(e,t){return xf(e,t,["MinutesLightlyActive"])}),Lf("Fitbit",["MinutesLightlyActive"])),zf(Pf.FitbitFairlyActiveMinutes,(function(e,t){return xf(e,t,["MinutesFairlyActive"])}),Lf("Fitbit",["MinutesFairlyActive"])),zf(Pf.FitbitVeryActiveMinutes,(function(e,t){return xf(e,t,["MinutesVeryActive"])}),Lf("Fitbit",["MinutesVeryActive"])),zf(Pf.FitbitBreathingRate,(function(e,t){return Ef("BreathingRate",e,t)}),Lf("Fitbit",["BreathingRate"])),zf(Pf.FitbitCaloriesBurned,(function(e,t){return Ef("Calories",e,t)}),Lf("Fitbit",["Calories"])),zf(Pf.FitbitElevatedHeartRateMinutes,(function(e,t){return kf(e,t)}),Lf("Fitbit",["HeartRateZone"])),zf(Pf.FitbitFatBurnHeartRateMinutes,(function(e,t){return kf(e,t,"Fat Burn")}),Lf("Fitbit",["HeartRateZone"])),zf(Pf.FitbitCardioHeartRateMinutes,(function(e,t){return kf(e,t,"Cardio")}),Lf("Fitbit",["HeartRateZone"])),zf(Pf.FitbitPeakHeartRateMinutes,(function(e,t){return kf(e,t,"Peak")}),Lf("Fitbit",["HeartRateZone"])),zf(Pf.FitbitFloors,(function(e,t){return Ef("Floors",e,t)}),Lf("Fitbit",["HeartRateZone"])),zf(Pf.FitbitHrv,(function(e,t){return Ef("Hrv",e,t)}),Lf("Fitbit",["Floors"])),zf(Pf.FitbitRestingHeartRate,jf,Lf("Fitbit",["RestingHeartRate"])),zf(Pf.FitbitSleepMinutes,(function(e,t){return Sf(e,t,["SleepLevelRem","SleepLevelLight","SleepLevelDeep","SleepLevelAsleep"])}),Lf("Fitbit",["SleepLevelRem","SleepLevelLight","SleepLevelDeep","SleepLevelAsleep"])),zf(Pf.FitbitLightSleepMinutes,(function(e,t){return Sf(e,t,["SleepLevelLight"])}),Lf("Fitbit",["SleepLevelLight"])),zf(Pf.FitbitRemSleepMinutes,(function(e,t){return Sf(e,t,["SleepLevelRem"])}),Lf("Fitbit",["SleepLevelRem"])),zf(Pf.FitbitDeepSleepMinutes,(function(e,t){return Sf(e,t,["SleepLevelDeep"])}),Lf("Fitbit",["SleepLevelDeep"])),zf(Pf.FitbitSpO2,(function(e,t){return Ef("SpO2",e,t)}),Lf("Fitbit",["SpO2"])),zf(Pf.FitbitSteps,Tf,Lf("Fitbit",["Steps"])),zf(Pf.GoogleFitSteps,(function(e,t){return vf({namespace:"GoogleFit",type:"Steps",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=Je(Bl(e.startDate)).substring(0,10);t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}),Lf("GoogleFit",["Steps"])),zf(Pf.RestingHeartRate,(function(e,t){return vf({namespace:"AppleHealth",type:"RestingHeartRate",observedAfter:M(e,{days:-1}).toISOString(),observedBefore:M(t,{days:1}).toISOString()}).then((function(r){return jf(e,t).then((function(n){var o={};r.forEach((function(e){if(e.startDate){var t=df(Bl(e.startDate)),r=parseFloat(e.value);o[t]||(o[t]=[]),o[t].push(r)}}));for(var i={};e<t;){var a=df(e);n[a]&&(o[a]||(o[a]=[]),o[a].push(n[a])),o[a]&&(i[a]=o[a].reduce((function(e,t){return e+t}))/o[a].length),e=M(e,{days:1})}return i}))}))}),(function(e){return Lf("AppleHealth",["RestingHeartRate"])(e).then((function(t){return t||Lf("Fitbit",["RestingHeartRate"])(e)}))})),zf(Pf.Steps,(function(e,t){var r=Tf(e,t),n=Of(e,t);return Promise.all([r,n]).then((function(r){for(var n={};e<t;){var o=df(e),i=null;r[0][o]&&(i=r[0][o]),r[1][o]&&(null==i||r[1][o]>i)&&(i=r[1][o]),i&&(n[o]=i),e=M(e,{days:1})}return n}))}),(function(e){return Lf("AppleHealth",["Steps"])(e).then((function(t){return t||Lf("Fitbit",["Steps"])(e)}))}));var If=[{id:1,lastRefreshDate:M(new Date,{days:-1}).toISOString(),status:"fetchComplete",provider:{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"}},{id:2,lastRefreshDate:M(new Date,{hours:-8}).toISOString(),status:"unauthorized",provider:{id:1,name:"CareEvolution FHIR",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/1/logo"}},{id:3,lastRefreshDate:M(new Date,{hours:-2}).toISOString(),status:"fetchComplete",provider:{id:17,name:"CMS Sandbox",category:"Health Plan",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/17/logo"}},{id:4,lastRefreshDate:M(new Date,{hours:-3}).toISOString(),status:"fetchComplete",provider:{id:2,name:"Fitbit Staging",category:"Device Manufacturer",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/2/logo"}}];function Bf(t){var r=c(!0),n=r[0],o=r[1],i=c([]),a=i[0],l=i[1];function u(){if("Default"==t.previewState)return o(!1),void d(If);p()}function p(){f.getExternalAccounts().then((function(e){d(e),o(!1)}))}function d(e){t.externalAccountProviderCategories&&(e=e.filter((function(e){var r;return-1!=(null===(r=t.externalAccountProviderCategories)||void 0===r?void 0:r.indexOf(e.provider.category))}))),l(e),t.onExternalAccountsLoaded&&t.onExternalAccountsLoaded(e)}return s((function(){return u(),f.on("applicationDidBecomeVisible",u),f.on("externalAccountSyncComplete",u),function(){f.off("applicationDidBecomeVisible",u),f.off("externalAccountSyncComplete",u)}}),[]),e.createElement("div",{className:"mdhui-external-account-list"},a&&a.map((function(t){return e.createElement(lc,{key:t.id.toString()+t.lastRefreshDate},e.createElement(Hu,{externalAccount:t,onAccountRemoved:function(e){return o(!0),void p()},onReconnectAccount:function(e){return function(e){f.connectExternalAccount(e.provider.id)}(e)}}))})),n&&e.createElement(Lu,null))}y(".mdhui-external-accounts-preview\n{\n}\n\n .mdhui-external-accounts-preview .external-account-title\n {\n font-size:.88em;\n }");var Rf=[{id:1,lastRefreshDate:M(new Date,{days:-1}).toISOString(),status:"fetchComplete",provider:{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"}},{id:2,lastRefreshDate:M(new Date,{hours:-8}).toISOString(),status:"unauthorized",provider:{id:1,name:"CareEvolution FHIR",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/1/logo"}},{id:3,lastRefreshDate:M(new Date,{hours:-2}).toISOString(),status:"fetchComplete",provider:{id:17,name:"CMS Sandbox",category:"Health Plan",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/17/logo"}},{id:4,lastRefreshDate:M(new Date,{hours:-3}).toISOString(),status:"fetchComplete",provider:{id:2,name:"Fitbit Staging",category:"Device Manufacturer",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/2/logo"}}];function Ff(t){var r=c(null),n=r[0],o=r[1],i="",a=[];function l(){"Default"!=t.previewState?f.getExternalAccounts().then((function(e){u(e)})):u(Rf)}function u(e){a&&(e=e.filter((function(e){return-1!=(null==a?void 0:a.indexOf(e.provider.category))}))),o(e)}return t.excludeProviders||(a.push("Provider"),i+=Mu["external-accounts-title-providers"]),t.excludeHealthPlans||(a.push("Health Plan"),i.length>0&&(i+=Mu["external-accounts-title-divider"]),i+=Mu["external-accounts-title-health-plans"]),t.excludeDeviceManufacturers||(a.push("Device Manufacturer"),i.length>0&&(i+=Mu["external-accounts-title-divider"]),i+=Mu["external-accounts-title-devices"]),s((function(){return l(),f.on("applicationDidBecomeVisible",l),function(){f.off("applicationDidBecomeVisible",l)}}),[]),n&&n.length?e.createElement("div",{className:"mdhui-external-accounts-preview"},e.createElement(w,{title:i,onClick:function(){"preview"==t.applicationUrl?console.log("PREVIEW: Opening the external accounts application."):f.openApplication(t.applicationUrl)}},n.map((function(t){return e.createElement("div",{key:t.id,className:"external-account-title"},t.provider.name)})))):null}y(".mdhui-fitbit-devices .fitbit-device {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n padding: 16px;\n position: relative;\n padding-left: 48px;\n}\n\n.mdhui-fitbit-devices .fitbit-device:last-child {\n border-bottom: none;\n}\n\n.mdhui-fitbit-devices .fitbit-device .device-icon {\n position: absolute;\n left: 16px;\n top: calc(50% - 8px);\n color: var(--mdhui-text-color-2);\n font-size: 16px;\n}\n\n.mdhui-fitbit-devices .fitbit-device .device-title {\n font-weight: bold;\n font-size: .88em;\n}\n\n.mdhui-fitbit-devices .fitbit-device .device-sync {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}\n\n\n.mdhui-fitbit-devices .fitbit-device .battery-icon {\n position: absolute;\n font-size: 21px;\n right: 16px;\n top: calc(50% - 11px);\n}\n\n.mdhui-fitbit-devices .fitbit-device .battery-icon.battery-empty,\n.mdhui-fitbit-devices .fitbit-device .battery-icon.battery-low {\n color: var(--mdhui-color-danger);\n}\n\n.mdhui-fitbit-devices .fitbit-device .battery-icon.battery-medium {\n color: var(--mdhui-color-warning);\n}\n\n.mdhui-fitbit-devices .fitbit-device .battery-icon.battery-high {\n color: var(--mdhui-color-success);\n}");var qf={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-empty",r=["battery-0"],n="f244",o="M80 160c-8.8 0-16 7.2-16 16V336c0 8.8 7.2 16 16 16H464c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16H80zM0 176c0-44.2 35.8-80 80-80H464c44.2 0 80 35.8 80 80v16c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32v16c0 44.2-35.8 80-80 80H80c-44.2 0-80-35.8-80-80V176z";e.definition={prefix:"fas",iconName:t,icon:[576,512,r,n,o]},e.faBatteryEmpty=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(qf);var Hf={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-full",r=[128267,"battery","battery-5"],n="f240",o="M464 160c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16H464zM80 96C35.8 96 0 131.8 0 176V336c0 44.2 35.8 80 80 80H464c44.2 0 80-35.8 80-80V320c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32V176c0-44.2-35.8-80-80-80H80zm368 96H96V320H448V192z";e.definition={prefix:"fas",iconName:t,icon:[576,512,r,n,o]},e.faBatteryFull=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(Hf);var Wf={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-half",r=["battery-3"],n="f242",o="M464 160c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16H464zM80 96C35.8 96 0 131.8 0 176V336c0 44.2 35.8 80 80 80H464c44.2 0 80-35.8 80-80V320c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32V176c0-44.2-35.8-80-80-80H80zm208 96H96V320H288V192z";e.definition={prefix:"fas",iconName:t,icon:[576,512,r,n,o]},e.faBatteryHalf=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(Wf);var Vf={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-quarter",r=["battery-2"],n="f243",o="M464 160c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16H464zM80 96C35.8 96 0 131.8 0 176V336c0 44.2 35.8 80 80 80H464c44.2 0 80-35.8 80-80V320c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32V176c0-44.2-35.8-80-80-80H80zm112 96H96V320h96V192z";e.definition={prefix:"fas",iconName:t,icon:[576,512,r,n,o]},e.faBatteryQuarter=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(Vf);var Uf={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="weight-scale",r=["weight"],n="f496",o="M128 176a128 128 0 1 1 256 0 128 128 0 1 1 -256 0zM391.8 64C359.5 24.9 310.7 0 256 0S152.5 24.9 120.2 64H64C28.7 64 0 92.7 0 128V448c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H391.8zM296 224c0-10.6-4.1-20.2-10.9-27.4l33.6-78.3c3.5-8.1-.3-17.5-8.4-21s-17.5 .3-21 8.4L255.7 184c-22 .1-39.7 18-39.7 40c0 22.1 17.9 40 40 40s40-17.9 40-40z";e.definition={prefix:"fas",iconName:t,icon:[512,512,r,n,o]},e.faWeightScale=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(Uf);var Gf,$f={},Yf={get exports(){return $f},set exports(e){$f=e}},Zf={},Xf={get exports(){return Zf},set exports(e){Zf=e}},Qf={};var Jf,Kf,ep,tp,rp,np,op,ip,ap,lp,cp,sp,up,fp,pp={};
10
10
  /** @license React v16.13.1
11
11
  * react-is.development.js
12
12
  *