@careevolution/mydatahelps-ui 1.9.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- 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,useRef as o,useLayoutEffect as i,useState as a,useEffect as l,useMemo as c}from"react";import s from"@careevolution/mydatahelps-js";import u from"punycode";var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d={};function h(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="M342.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.3L274.7 256 105.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:[384,512,r,n,o]},e.faChevronRight=e.definition,e.prefix="fas",e.iconName=t,e.width=384,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(d);h(".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: #555;\n }\n\n .mdhui-action .indicator\n {\n position: absolute;\n top: calc(50% - 9px);\n right: 16px;\n font-size: 16px;\n color: #999;\n }\n");var y=["icon","size","className","title","border","fixedWidth","flip","spin","pulse","inverse","listItem","pull","swapOpacity","rotation","role","symbol"],m={style:{display:"none"}},g=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,y);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",m,r("symbol",u,p))):r("svg",u,p)}));g.displayName="FontAwesomeSvgIcon";function v(t){var r,n=null!==(r=t.indicatorIcon)&&void 0!==r?r:d.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(g,{icon:n})))}h(":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-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 transition-delay: 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 b(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(fc,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))}h(".mdhui-activity-meter\n{\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 {\n position: absolute;\n line-height: 32px;\n text-align: center;\n left: 16px;\n top: calc(50% - 8px);\n color: var(--color-primary);\n font-size: 1em;\n }\n\n .mdhui-activity-meter .mdhui-activity-meter-value\n {\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 {\n font-size: .7em;\n color: #555;\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 {\n border-radius: 8px;\n background: #f5f5f5;\n position: relative;\n height: 16px;\n }\n\n .mdhui-activity-meter .mdhui-activity-meter-meter .mdhui-activity-meter-average-marker\n {\n position: absolute;\n top: -4px;\n bottom: -4px;\n border-left: dashed 1px #bbb;\n }\n\n .mdhui-activity-meter .mdhui-activity-meter-meter .mdhui-activity-meter-fill\n {\n height: 16px;\n background: var(--color-primary);\n position: relative;\n border-radius: 8px;\n }\n\n .mdhui-activity-meter .mdhui-activity-meter-message\n {\n font-size: .7em;\n margin-top: 4px;\n }\n");function w(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 O(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 x(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 k(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)?j(c,(function(e){return e.test(l)})):E(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 E(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function j(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function S(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 T(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 P(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function C(e){return C="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},C(e)}function z(e){P(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===C(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 _(e,t){P(2,arguments);var r=z(e),n=T(t);return isNaN(n)?new Date(NaN):n?(r.setDate(r.getDate()+n),r):r}function D(e,t){P(2,arguments);var r=z(e),n=T(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 L(e){return L="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},L(e)}function A(e,t){if(P(2,arguments),!t||"object"!==L(t))return new Date(NaN);var r=t.years?T(t.years):0,n=t.months?T(t.months):0,o=t.weeks?T(t.weeks):0,i=t.days?T(t.days):0,a=t.hours?T(t.hours):0,l=t.minutes?T(t.minutes):0,c=t.seconds?T(t.seconds):0,s=z(e),u=n||r?D(s,n+12*r):s,f=i||o?_(u,i+7*o):u,p=l+60*a,d=c+60*p,h=1e3*d,y=new Date(f.getTime()+h);return y}function N(e,t){P(2,arguments);var r=z(e).getTime(),n=T(t);return new Date(r+n)}h(".mdhui-button\n{\n width: 100%;\n box-sizing: border-box;\n padding: 16px;\n background: var(--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 color: #FFF;\n}\n\n .mdhui-button:disabled\n {\n color: #999;\n background: #ddd;\n }\n");var M={};function I(){return M}function B(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 R(e){P(1,arguments);var t=z(e);return t.setHours(0,0,0,0),t}function F(e,t){P(2,arguments);var r=R(e),n=R(t),o=r.getTime()-B(r),i=n.getTime()-B(n);return Math.round((o-i)/864e5)}function q(e,t){P(2,arguments);var r=z(e),n=z(t),o=r.getTime()-n.getTime();return o<0?-1:o>0?1:o}function H(e){return H="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},H(e)}function W(e){return P(1,arguments),e instanceof Date||"object"===H(e)&&"[object Date]"===Object.prototype.toString.call(e)}function V(e){if(P(1,arguments),!W(e)&&"number"!=typeof e)return!1;var t=z(e);return!isNaN(Number(t))}function U(e,t){P(2,arguments);var r=z(e),n=z(t),o=r.getFullYear()-n.getFullYear(),i=r.getMonth()-n.getMonth();return 12*o+i}function G(e,t){return P(2,arguments),z(e).getTime()-z(t).getTime()}var Y={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function Z(e){return e?Y[e]:Y.trunc}function $(e){P(1,arguments);var t=z(e);return t.setHours(23,59,59,999),t}function X(e){P(1,arguments);var t=z(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Q(e){P(1,arguments);var t=z(e);return $(t).getTime()===X(t).getTime()}function J(e,t){P(2,arguments);var r,n=z(e),o=z(t),i=q(n,o),a=Math.abs(U(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=q(n,o)===-i;Q(z(e))&&1===a&&1===q(e,o)&&(l=!1),r=i*(a-Number(l))}return 0===r?0:r}function K(e,t,r){P(2,arguments);var n=G(e,t)/1e3;return Z(null==r?void 0:r.roundingMethod)(n)}function ee(e,t){P(2,arguments);var r=T(t);return N(e,-r)}function te(e){P(1,arguments);var t=1,r=z(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 re(e){P(1,arguments);var t=z(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var o=te(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var a=te(i);return t.getTime()>=o.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function ne(e){P(1,arguments);var t=re(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=te(r);return n}function oe(e){P(1,arguments);var t=z(e),r=te(t).getTime()-ne(t).getTime();return Math.round(r/6048e5)+1}function ie(e,t){var r,n,o,i,a,l,c,s;P(1,arguments);var u=I(),f=T(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=z(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 ae(e,t){var r,n,o,i,a,l,c,s;P(1,arguments);var u=z(e),f=u.getUTCFullYear(),p=I(),d=T(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 y=ie(h,t),m=new Date(0);m.setUTCFullYear(f,0,d),m.setUTCHours(0,0,0,0);var g=ie(m,t);return u.getTime()>=y.getTime()?f+1:u.getTime()>=g.getTime()?f:f-1}function le(e,t){var r,n,o,i,a,l,c,s;P(1,arguments);var u=I(),f=T(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=ae(e,t),d=new Date(0);d.setUTCFullYear(p,0,f),d.setUTCHours(0,0,0,0);var h=ie(d,t);return h}function ce(e,t){P(1,arguments);var r=z(e),n=ie(r,t).getTime()-le(r,t).getTime();return Math.round(n/6048e5)+1}function se(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var ue=function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return se("yy"===t?n%100:n,t.length)},fe=function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):se(r+1,2)},pe=function(e,t){return se(e.getUTCDate(),t.length)},de=function(e,t){return se(e.getUTCHours()%12||12,t.length)},he=function(e,t){return se(e.getUTCHours(),t.length)},ye=function(e,t){return se(e.getUTCMinutes(),t.length)},me=function(e,t){return se(e.getUTCSeconds(),t.length)},ge=function(e,t){var r=t.length,n=e.getUTCMilliseconds();return se(Math.floor(n*Math.pow(10,r-3)),t.length)},ve="midnight",be="noon",we="morning",Oe="afternoon",xe="evening",ke="night",Ee={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 ue(e,t)},Y:function(e,t,r,n){var o=ae(e,n),i=o>0?o:1-o;return"YY"===t?se(i%100,2):"Yo"===t?r.ordinalNumber(i,{unit:"year"}):se(i,t.length)},R:function(e,t){return se(re(e),t.length)},u:function(e,t){return se(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 se(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 se(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 fe(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 se(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=ce(e,n);return"wo"===t?r.ordinalNumber(o,{unit:"week"}):se(o,t.length)},I:function(e,t,r){var n=oe(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):se(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):pe(e,t)},D:function(e,t,r){var n=function(e){P(1,arguments);var t=z(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"}):se(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 se(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 se(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 se(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?be:0===o?ve: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?xe:o>=12?Oe:o>=4?we:ke,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 de(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):he(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):se(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):se(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ye(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):me(e,t)},S:function(e,t){return ge(e,t)},X:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return Se(o);case"XXXX":case"XX":return Te(o);default:return Te(o,":")}},x:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return Se(o);case"xxxx":case"xx":return Te(o);default:return Te(o,":")}},O:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+je(o,":");default:return"GMT"+Te(o,":")}},z:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+je(o,":");default:return"GMT"+Te(o,":")}},t:function(e,t,r,n){var o=n._originalDate||e;return se(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,r,n){return se((n._originalDate||e).getTime(),t.length)}};function je(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+se(i,2)}function Se(e,t){return e%60==0?(e>0?"-":"+")+se(Math.abs(e)/60,2):Te(e,t)}function Te(e,t){var r=t||"",n=e>0?"-":"+",o=Math.abs(e);return n+se(Math.floor(o/60),2)+r+se(o%60,2)}var Pe=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"})}},Ce=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"})}},ze={p:Ce,P:function(e,t){var r,n=e.match(/(P+)(p+)?/)||[],o=n[1],i=n[2];if(!i)return Pe(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}}",Pe(o,t)).replace("{{time}}",Ce(i,t))}},_e=["D","DD"],De=["YY","YYYY"];function Le(e){return-1!==_e.indexOf(e)}function Ae(e){return-1!==De.indexOf(e)}function Ne(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 Me={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"}},Ie={date:O({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:O({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:O({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Be={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Re={code:"en-US",formatDistance:function(e,t,r){var n,o=Me[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:Ie,formatRelative:function(e,t,r,n){return Be[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:x({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:x({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:x({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:x({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:x({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:S({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:k({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:k({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:k({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:k({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:k({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}},Fe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,He=/^'([^]*?)'?$/,We=/''/g,Ve=/[a-zA-Z]/;function Ue(e,t,r){var n,o,i,a,l,c,s,u,f,p,d,h,y,m,g,v,b,w;P(2,arguments);var O=String(t),x=I(),k=null!==(n=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:x.locale)&&void 0!==n?n:Re,E=T(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=T(null!==(d=null!==(h=null!==(y=null!==(m=null==r?void 0:r.weekStartsOn)&&void 0!==m?m:null==r||null===(g=r.locale)||void 0===g||null===(v=g.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==y?y: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=z(e);if(!V(S))throw new RangeError("Invalid time value");var C=B(S),_=ee(S,C),D={firstWeekContainsDate:E,weekStartsOn:j,locale:k,_originalDate:S},L=O.match(qe).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,ze[t])(e,k.formatLong):e})).join("").match(Fe).map((function(n){if("''"===n)return"'";var o=n[0];if("'"===o)return Ge(n);var i=Ee[o];if(i)return null!=r&&r.useAdditionalWeekYearTokens||!Ae(n)||Ne(n,t,String(e)),null!=r&&r.useAdditionalDayOfYearTokens||!Le(n)||Ne(n,t,String(e)),i(_,n,k.localize,D);if(o.match(Ve))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return n})).join("");return L}function Ge(e){var t=e.match(He);return t?t[1].replace(We,"'"):e}function Ye(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 Ze(e){return Ye({},e)}function $e(e,t,r){var n,o;P(2,arguments);var i=I(),a=null!==(n=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:i.locale)&&void 0!==n?n:Re;if(!a.formatDistance)throw new RangeError("locale must contain formatDistance property");var l=q(e,t);if(isNaN(l))throw new RangeError("Invalid time value");var c,s,u=Ye(Ze(r),{addSuffix:Boolean(null==r?void 0:r.addSuffix),comparison:l});l>0?(c=z(t),s=z(e)):(c=z(e),s=z(t));var f,p=K(s,c),d=(B(s)-B(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 y=Math.round(h/60);return a.formatDistance("aboutXHours",y,u)}if(h<2520)return a.formatDistance("xDays",1,u);if(h<43200){var m=Math.round(h/1440);return a.formatDistance("xDays",m,u)}if(h<86400)return f=Math.round(h/43200),a.formatDistance("aboutXMonths",f,u);if((f=J(s,c))<12){var g=Math.round(h/43200);return a.formatDistance("xMonths",g,u)}var v=f%12,b=Math.floor(f/12);return v<3?a.formatDistance("aboutXYears",b,u):v<9?a.formatDistance("overXYears",b,u):a.formatDistance("almostXYears",b+1,u)}function Xe(e,t){var r,n;P(1,arguments);var o=z(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=se(o.getDate(),2),p=se(o.getMonth()+1,2),d=se(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 y=Math.abs(h),m=se(Math.floor(y/60),2),g=se(y%60,2),v=h<0?"+":"-";c="".concat(v).concat(m,":").concat(g)}else c="Z";var b=se(o.getHours(),2),w=se(o.getMinutes(),2),O=se(o.getSeconds(),2),x=""===l?"":"T",k=[b,w,O].join(u);l="".concat(l).concat(x).concat(k).concat(c)}return l}function Qe(e,t,r){var n,o,i,a,l,c,s,u,f,p;P(2,arguments);var d=z(e),h=z(t),y=I(),m=null!==(n=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:y.locale)&&void 0!==n?n:Re,g=T(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:y.weekStartsOn)&&void 0!==a?a:null===(f=y.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==i?i:0);if(!m.localize)throw new RangeError("locale must contain localize property");if(!m.formatLong)throw new RangeError("locale must contain formatLong property");if(!m.formatRelative)throw new RangeError("locale must contain formatRelative property");var v,b=F(d,h);if(isNaN(b))throw new RangeError("Invalid time value");v=b<-6?"other":b<-1?"lastWeek":b<0?"yesterday":b<1?"today":b<2?"tomorrow":b<7?"nextWeek":"other";var w=ee(d,B(d)),O=ee(h,B(h)),x=m.formatRelative(v,w,O,{locale:m,weekStartsOn:g});return Ue(d,x,{locale:m,weekStartsOn:g})}function Je(e,t){P(2,arguments);var r=z(e),n=z(t);return r.getTime()>n.getTime()}function Ke(e){return Ke="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},Ke(e)}function et(e,t){return et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},et(e,t)}function tt(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=nt(e);if(t){var o=nt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return rt(this,r)}}function rt(e,t){return!t||"object"!==Ke(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 nt(e){return nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nt(e)}function ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function it(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 at(e,t,r){return t&&it(e.prototype,t),r&&it(e,r),e}var lt=function(){function e(){var t,r,n;ot(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 at(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),ct=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&&et(e,t)}(r,lt);var t=tt(r);function r(e,n,o,i,a){var l;return ot(this,r),(l=t.call(this)).value=e,l.validateValue=n,l.setValue=o,l.priority=i,a&&(l.subPriority=a),l}return at(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 st(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 ut=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 ct(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,r){return!0}}],r&&st(t.prototype,r),n&&st(t,n),e}();function ft(e){return ft="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},ft(e)}function pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dt(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 ht(e,t){return ht=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ht(e,t)}function yt(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=vt(e);if(t){var o=vt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return mt(this,r)}}function mt(e,t){return!t||"object"!==ft(t)&&"function"!=typeof t?gt(e):t}function gt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vt(e){return vt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vt(e)}function bt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wt=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&&ht(e,t)}(i,ut);var t,r,n,o=yt(i);function i(){var e;pt(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return bt(gt(e=o.call.apply(o,[this].concat(r))),"priority",140),bt(gt(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&&dt(t.prototype,r),n&&dt(t,n),i}(),Ot=/^(1[0-2]|0?\d)/,xt=/^(3[0-1]|[0-2]?\d)/,kt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Et=/^(5[0-3]|[0-4]?\d)/,jt=/^(2[0-3]|[0-1]?\d)/,St=/^(2[0-4]|[0-1]?\d)/,Tt=/^(1[0-1]|0?\d)/,Pt=/^(1[0-2]|0?\d)/,Ct=/^[0-5]?\d/,zt=/^[0-5]?\d/,_t=/^\d/,Dt=/^\d{1,2}/,Lt=/^\d{1,3}/,At=/^\d{1,4}/,Nt=/^-?\d+/,Mt=/^-?\d/,It=/^-?\d{1,2}/,Bt=/^-?\d{1,3}/,Rt=/^-?\d{1,4}/,Ft=/^([+-])(\d{2})(\d{2})?|Z/,qt=/^([+-])(\d{2})(\d{2})|Z/,Ht=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Wt=/^([+-])(\d{2}):(\d{2})|Z/,Vt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Ut(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Gt(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Yt(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 Zt(e){return Gt(Nt,e)}function $t(e,t){switch(e){case 1:return Gt(_t,t);case 2:return Gt(Dt,t);case 3:return Gt(Lt,t);case 4:return Gt(At,t);default:return Gt(new RegExp("^\\d{1,"+e+"}"),t)}}function Xt(e,t){switch(e){case 1:return Gt(Mt,t);case 2:return Gt(It,t);case 3:return Gt(Bt,t);case 4:return Gt(Rt,t);default:return Gt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Qt(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Jt(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 Kt(e){return e%400==0||e%4==0&&e%100!=0}function er(e){return er="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},er(e)}function tr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rr(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 or(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=lr(e);if(t){var o=lr(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"!==er(t)&&"function"!=typeof t?ar(e):t}function ar(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lr(e){return lr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lr(e)}function cr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var sr=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,ut);var t,r,n,o=or(i);function i(){var e;tr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return cr(ar(e=o.call.apply(o,[this].concat(r))),"priority",130),cr(ar(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 Ut($t(4,e),n);case"yo":return Ut(r.ordinalNumber(e,{unit:"year"}),n);default:return Ut($t(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=Jt(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&&rr(t.prototype,r),n&&rr(t,n),i}();function ur(e){return ur="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},ur(e)}function fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pr(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 dr(e,t){return dr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dr(e,t)}function hr(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=gr(e);if(t){var o=gr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return yr(this,r)}}function yr(e,t){return!t||"object"!==ur(t)&&"function"!=typeof t?mr(e):t}function mr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gr(e){return gr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gr(e)}function vr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var br=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&&dr(e,t)}(i,ut);var t,r,n,o=hr(i);function i(){var e;fr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return vr(mr(e=o.call.apply(o,[this].concat(r))),"priority",130),vr(mr(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 Ut($t(4,e),n);case"Yo":return Ut(r.ordinalNumber(e,{unit:"year"}),n);default:return Ut($t(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=ae(e,n);if(r.isTwoDigitYear){var i=Jt(r.year,o);return e.setUTCFullYear(i,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),ie(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),ie(e,n)}}],r&&pr(t.prototype,r),n&&pr(t,n),i}();function wr(e){return wr="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},wr(e)}function Or(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xr(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 kr(e,t){return kr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kr(e,t)}function Er(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=Tr(e);if(t){var o=Tr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return jr(this,r)}}function jr(e,t){return!t||"object"!==wr(t)&&"function"!=typeof t?Sr(e):t}function Sr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tr(e){return Tr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Tr(e)}function Pr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Cr=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&&kr(e,t)}(i,ut);var t,r,n,o=Er(i);function i(){var e;Or(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Pr(Sr(e=o.call.apply(o,[this].concat(r))),"priority",130),Pr(Sr(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 Xt("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),te(n)}}],r&&xr(t.prototype,r),n&&xr(t,n),i}();function zr(e){return zr="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},zr(e)}function _r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dr(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 Lr(e,t){return Lr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Lr(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=Ir(e);if(t){var o=Ir(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Nr(this,r)}}function Nr(e,t){return!t||"object"!==zr(t)&&"function"!=typeof t?Mr(e):t}function Mr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ir(e){return Ir=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ir(e)}function Br(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Rr=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&&Lr(e,t)}(i,ut);var t,r,n,o=Ar(i);function i(){var e;_r(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Br(Mr(e=o.call.apply(o,[this].concat(r))),"priority",130),Br(Mr(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 Xt("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&&Dr(t.prototype,r),n&&Dr(t,n),i}();function Fr(e){return Fr="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},Fr(e)}function qr(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 Wr(e,t){return Wr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Wr(e,t)}function Vr(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=Yr(e);if(t){var o=Yr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ur(this,r)}}function Ur(e,t){return!t||"object"!==Fr(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 Yr(e){return Yr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yr(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&&Wr(e,t)}(i,ut);var t,r,n,o=Vr(i);function i(){var e;qr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Zr(Gr(e=o.call.apply(o,[this].concat(r))),"priority",120),Zr(Gr(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 $t(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&&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 Qr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jr(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 Kr(e,t){return Kr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Kr(e,t)}function en(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=nn(e);if(t){var o=nn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return tn(this,r)}}function tn(e,t){return!t||"object"!==Xr(t)&&"function"!=typeof t?rn(e):t}function rn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nn(e){return nn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nn(e)}function on(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var an=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&&Kr(e,t)}(i,ut);var t,r,n,o=en(i);function i(){var e;Qr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return on(rn(e=o.call.apply(o,[this].concat(r))),"priority",120),on(rn(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 $t(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&&Jr(t.prototype,r),n&&Jr(t,n),i}();function ln(e){return ln="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},ln(e)}function cn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sn(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 un(e,t){return un=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},un(e,t)}function fn(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=hn(e);if(t){var o=hn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return pn(this,r)}}function pn(e,t){return!t||"object"!==ln(t)&&"function"!=typeof t?dn(e):t}function dn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hn(e){return hn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hn(e)}function yn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var mn=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&&un(e,t)}(i,ut);var t,r,n,o=fn(i);function i(){var e;cn(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return yn(dn(e=o.call.apply(o,[this].concat(r))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),yn(dn(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 Ut(Gt(Ot,e),n);case"MM":return Ut($t(2,e),n);case"Mo":return Ut(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&&sn(t.prototype,r),n&&sn(t,n),i}();function gn(e){return gn="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},gn(e)}function vn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bn(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 wn(e,t){return wn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wn(e,t)}function On(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=En(e);if(t){var o=En(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return xn(this,r)}}function xn(e,t){return!t||"object"!==gn(t)&&"function"!=typeof t?kn(e):t}function kn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function En(e){return En=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},En(e)}function jn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Sn=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&&wn(e,t)}(i,ut);var t,r,n,o=On(i);function i(){var e;vn(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return jn(kn(e=o.call.apply(o,[this].concat(r))),"priority",110),jn(kn(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 Ut(Gt(Ot,e),n);case"LL":return Ut($t(2,e),n);case"Lo":return Ut(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&&bn(t.prototype,r),n&&bn(t,n),i}();function Tn(e){return Tn="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},Tn(e)}function Pn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cn(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 zn(e,t){return zn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zn(e,t)}function _n(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 Dn(this,r)}}function Dn(e,t){return!t||"object"!==Tn(t)&&"function"!=typeof t?Ln(e):t}function Ln(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 Nn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Mn=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&&zn(e,t)}(i,ut);var t,r,n,o=_n(i);function i(){var e;Pn(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Nn(Ln(e=o.call.apply(o,[this].concat(r))),"priority",100),Nn(Ln(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 Gt(Et,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return $t(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,r,n){return ie(function(e,t,r){P(2,arguments);var n=z(e),o=T(t),i=ce(n,r)-o;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,r,n),n)}}],r&&Cn(t.prototype,r),n&&Cn(t,n),i}();function In(e){return In="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},In(e)}function Bn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rn(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 Fn(e,t){return Fn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fn(e,t)}function qn(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=Vn(e);if(t){var o=Vn(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"!==In(t)&&"function"!=typeof t?Wn(e):t}function Wn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vn(e){return Vn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Vn(e)}function Un(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&&Fn(e,t)}(i,ut);var t,r,n,o=qn(i);function i(){var e;Bn(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Un(Wn(e=o.call.apply(o,[this].concat(r))),"priority",100),Un(Wn(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 Gt(Et,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return $t(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,r){return te(function(e,t){P(2,arguments);var r=z(e),n=T(t),o=oe(r)-n;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,r))}}],r&&Rn(t.prototype,r),n&&Rn(t,n),i}();function Yn(e){return Yn="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},Yn(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 Xn(e,t){return Xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Xn(e,t)}function Qn(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=eo(e);if(t){var o=eo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Jn(this,r)}}function Jn(e,t){return!t||"object"!==Yn(t)&&"function"!=typeof t?Kn(e):t}function Kn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eo(e){return eo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},eo(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 ro=[31,28,31,30,31,30,31,31,30,31,30,31],no=[31,29,31,30,31,30,31,31,30,31,30,31],oo=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,ut);var t,r,n,o=Qn(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 to(Kn(e=o.call.apply(o,[this].concat(r))),"priority",90),to(Kn(e),"subPriority",1),to(Kn(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 Gt(xt,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return $t(t.length,e)}}},{key:"validate",value:function(e,t){var r=Kt(e.getUTCFullYear()),n=e.getUTCMonth();return r?t>=1&&t<=no[n]:t>=1&&t<=ro[n]}},{key:"set",value:function(e,t,r){return e.setUTCDate(r),e.setUTCHours(0,0,0,0),e}}],r&&$n(t.prototype,r),n&&$n(t,n),i}();function io(e){return io="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},io(e)}function ao(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lo(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 co(e,t){return co=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},co(e,t)}function so(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=po(e);if(t){var o=po(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return uo(this,r)}}function uo(e,t){return!t||"object"!==io(t)&&"function"!=typeof t?fo(e):t}function fo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function po(e){return po=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},po(e)}function ho(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&&co(e,t)}(i,ut);var t,r,n,o=so(i);function i(){var e;ao(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ho(fo(e=o.call.apply(o,[this].concat(r))),"priority",90),ho(fo(e),"subpriority",1),ho(fo(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 Gt(kt,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return $t(t.length,e)}}},{key:"validate",value:function(e,t){return Kt(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&&lo(t.prototype,r),n&&lo(t,n),i}();function mo(e,t,r){var n,o,i,a,l,c,s,u;P(2,arguments);var f=I(),p=T(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=z(e),h=T(t),y=d.getUTCDay(),m=h%7,g=(m+7)%7,v=(g<p?7:0)+h-y;return d.setUTCDate(d.getUTCDate()+v),d}function go(e){return go="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},go(e)}function vo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bo(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 wo(e,t){return wo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wo(e,t)}function Oo(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=Eo(e);if(t){var o=Eo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return xo(this,r)}}function xo(e,t){return!t||"object"!==go(t)&&"function"!=typeof t?ko(e):t}function ko(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Eo(e){return Eo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Eo(e)}function jo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var So=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&&wo(e,t)}(i,ut);var t,r,n,o=Oo(i);function i(){var e;vo(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return jo(ko(e=o.call.apply(o,[this].concat(r))),"priority",90),jo(ko(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=mo(e,r,n)).setUTCHours(0,0,0,0),e}}],r&&bo(t.prototype,r),n&&bo(t,n),i}();function To(e){return To="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},To(e)}function Po(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Co(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 zo(e,t){return zo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zo(e,t)}function _o(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=Ao(e);if(t){var o=Ao(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Do(this,r)}}function Do(e,t){return!t||"object"!==To(t)&&"function"!=typeof t?Lo(e):t}function Lo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ao(e){return Ao=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ao(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 Mo=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&&zo(e,t)}(i,ut);var t,r,n,o=_o(i);function i(){var e;Po(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return No(Lo(e=o.call.apply(o,[this].concat(r))),"priority",90),No(Lo(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 Ut($t(t.length,e),o);case"eo":return Ut(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=mo(e,r,n)).setUTCHours(0,0,0,0),e}}],r&&Co(t.prototype,r),n&&Co(t,n),i}();function Io(e){return Io="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},Io(e)}function Bo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ro(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 Fo(e,t){return Fo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fo(e,t)}function qo(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=Vo(e);if(t){var o=Vo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ho(this,r)}}function Ho(e,t){return!t||"object"!==Io(t)&&"function"!=typeof t?Wo(e):t}function Wo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vo(e){return Vo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Vo(e)}function Uo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Go=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&&Fo(e,t)}(i,ut);var t,r,n,o=qo(i);function i(){var e;Bo(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Uo(Wo(e=o.call.apply(o,[this].concat(r))),"priority",90),Uo(Wo(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 Ut($t(t.length,e),o);case"co":return Ut(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=mo(e,r,n)).setUTCHours(0,0,0,0),e}}],r&&Ro(t.prototype,r),n&&Ro(t,n),i}();function Yo(e){return Yo="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},Yo(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 Xo(e,t){return Xo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Xo(e,t)}function Qo(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=ei(e);if(t){var o=ei(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Jo(this,r)}}function Jo(e,t){return!t||"object"!==Yo(t)&&"function"!=typeof t?Ko(e):t}function Ko(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ei(e){return ei=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ei(e)}function ti(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ri=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,ut);var t,r,n,o=Qo(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 ti(Ko(e=o.call.apply(o,[this].concat(r))),"priority",90),ti(Ko(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 $t(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return Ut(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 Ut(r.day(e,{width:"narrow",context:"formatting"}),n);case"iiiiii":return Ut(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n);default:return Ut(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){P(2,arguments);var r=T(t);r%7==0&&(r-=7);var n=1,o=z(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&&$o(t.prototype,r),n&&$o(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 oi(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 ai(e,t){return ai=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ai(e,t)}function li(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=ui(e);if(t){var o=ui(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ci(this,r)}}function ci(e,t){return!t||"object"!==ni(t)&&"function"!=typeof t?si(e):t}function si(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ui(e){return ui=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ui(e)}function fi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pi=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&&ai(e,t)}(i,ut);var t,r,n,o=li(i);function i(){var e;oi(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return fi(si(e=o.call.apply(o,[this].concat(r))),"priority",80),fi(si(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(Qt(r),0,0,0),e}}],r&&ii(t.prototype,r),n&&ii(t,n),i}();function di(e){return di="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},di(e)}function hi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yi(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 mi(e,t){return mi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mi(e,t)}function gi(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=wi(e);if(t){var o=wi(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return vi(this,r)}}function vi(e,t){return!t||"object"!==di(t)&&"function"!=typeof t?bi(e):t}function bi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wi(e){return wi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wi(e)}function Oi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xi=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&&mi(e,t)}(i,ut);var t,r,n,o=gi(i);function i(){var e;hi(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Oi(bi(e=o.call.apply(o,[this].concat(r))),"priority",80),Oi(bi(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(Qt(r),0,0,0),e}}],r&&yi(t.prototype,r),n&&yi(t,n),i}();function ki(e){return ki="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},ki(e)}function Ei(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ji(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 Si(e,t){return Si=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Si(e,t)}function Ti(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=zi(e);if(t){var o=zi(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Pi(this,r)}}function Pi(e,t){return!t||"object"!==ki(t)&&"function"!=typeof t?Ci(e):t}function Ci(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zi(e){return zi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zi(e)}function _i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Di=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&&Si(e,t)}(i,ut);var t,r,n,o=Ti(i);function i(){var e;Ei(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _i(Ci(e=o.call.apply(o,[this].concat(r))),"priority",80),_i(Ci(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(Qt(r),0,0,0),e}}],r&&ji(t.prototype,r),n&&ji(t,n),i}();function Li(e){return Li="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},Li(e)}function Ai(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ni(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 Mi(e,t){return Mi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Mi(e,t)}function Ii(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=Fi(e);if(t){var o=Fi(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Bi(this,r)}}function Bi(e,t){return!t||"object"!==Li(t)&&"function"!=typeof t?Ri(e):t}function Ri(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fi(e){return Fi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fi(e)}function qi(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&&Mi(e,t)}(i,ut);var t,r,n,o=Ii(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 qi(Ri(e=o.call.apply(o,[this].concat(r))),"priority",70),qi(Ri(e),"incompatibleTokens",["H","K","k","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"h":return Gt(Pt,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return $t(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&&Ni(t.prototype,r),n&&Ni(t,n),i}();function Wi(e){return Wi="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},Wi(e)}function Vi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ui(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 Yi(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 Zi(this,r)}}function Zi(e,t){return!t||"object"!==Wi(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 Xi(e){return Xi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xi(e)}function Qi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ji=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,ut);var t,r,n,o=Yi(i);function i(){var e;Vi(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Qi($i(e=o.call.apply(o,[this].concat(r))),"priority",70),Qi($i(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 Gt(jt,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return $t(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&&Ui(t.prototype,r),n&&Ui(t,n),i}();function Ki(e){return Ki="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},Ki(e)}function ea(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ta(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 ra(e,t){return ra=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ra(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=aa(e);if(t){var o=aa(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return oa(this,r)}}function oa(e,t){return!t||"object"!==Ki(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 aa(e){return aa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},aa(e)}function la(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ca=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&&ra(e,t)}(i,ut);var t,r,n,o=na(i);function i(){var e;ea(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return la(ia(e=o.call.apply(o,[this].concat(r))),"priority",70),la(ia(e),"incompatibleTokens",["h","H","k","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"K":return Gt(Tt,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return $t(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&&ta(t.prototype,r),n&&ta(t,n),i}();function sa(e){return sa="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},sa(e)}function ua(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fa(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 pa(e,t){return pa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},pa(e,t)}function da(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=ma(e);if(t){var o=ma(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ha(this,r)}}function ha(e,t){return!t||"object"!==sa(t)&&"function"!=typeof t?ya(e):t}function ya(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ma(e){return ma=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ma(e)}function ga(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var va=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&&pa(e,t)}(i,ut);var t,r,n,o=da(i);function i(){var e;ua(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ga(ya(e=o.call.apply(o,[this].concat(r))),"priority",70),ga(ya(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 Gt(St,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return $t(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&&fa(t.prototype,r),n&&fa(t,n),i}();function ba(e){return ba="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},ba(e)}function wa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oa(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 xa(e,t){return xa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},xa(e,t)}function ka(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=Sa(e);if(t){var o=Sa(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ea(this,r)}}function Ea(e,t){return!t||"object"!==ba(t)&&"function"!=typeof t?ja(e):t}function ja(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sa(e){return Sa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sa(e)}function Ta(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Pa=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&&xa(e,t)}(i,ut);var t,r,n,o=ka(i);function i(){var e;wa(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ta(ja(e=o.call.apply(o,[this].concat(r))),"priority",60),Ta(ja(e),"incompatibleTokens",["t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"m":return Gt(Ct,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return $t(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&&Oa(t.prototype,r),n&&Oa(t,n),i}();function Ca(e){return Ca="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},Ca(e)}function za(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _a(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 Da(e,t){return Da=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Da(e,t)}function La(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=Ma(e);if(t){var o=Ma(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"!==Ca(t)&&"function"!=typeof t?Na(e):t}function Na(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ma(e)}function Ia(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ba=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&&Da(e,t)}(i,ut);var t,r,n,o=La(i);function i(){var e;za(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ia(Na(e=o.call.apply(o,[this].concat(r))),"priority",50),Ia(Na(e),"incompatibleTokens",["t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"s":return Gt(zt,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return $t(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&&_a(t.prototype,r),n&&_a(t,n),i}();function Ra(e){return Ra="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},Ra(e)}function Fa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qa(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 Wa(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 Va(this,r)}}function Va(e,t){return!t||"object"!==Ra(t)&&"function"!=typeof t?Ua(e):t}function Ua(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 Ya(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&&Ha(e,t)}(i,ut);var t,r,n,o=Wa(i);function i(){var e;Fa(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ya(Ua(e=o.call.apply(o,[this].concat(r))),"priority",30),Ya(Ua(e),"incompatibleTokens",["t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t){return Ut($t(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&&qa(t.prototype,r),n&&qa(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 Xa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qa(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 Ja(e,t){return Ja=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ja(e,t)}function Ka(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=rl(e);if(t){var o=rl(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return el(this,r)}}function el(e,t){return!t||"object"!==$a(t)&&"function"!=typeof t?tl(e):t}function tl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rl(e){return rl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rl(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 ol=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&&Ja(e,t)}(i,ut);var t,r,n,o=Ka(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 nl(tl(e=o.call.apply(o,[this].concat(r))),"priority",10),nl(tl(e),"incompatibleTokens",["t","T","x"]),e}return t=i,r=[{key:"parse",value:function(e,t){switch(t){case"X":return Yt(Ft,e);case"XX":return Yt(qt,e);case"XXXX":return Yt(Ht,e);case"XXXXX":return Yt(Vt,e);default:return Yt(Wt,e)}}},{key:"set",value:function(e,t,r){return t.timestampIsSet?e:new Date(e.getTime()-r)}}],r&&Qa(t.prototype,r),n&&Qa(t,n),i}();function il(e){return il="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},il(e)}function al(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ll(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 cl(e,t){return cl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},cl(e,t)}function sl(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=pl(e);if(t){var o=pl(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ul(this,r)}}function ul(e,t){return!t||"object"!==il(t)&&"function"!=typeof t?fl(e):t}function fl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pl(e){return pl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pl(e)}function dl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var hl=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&&cl(e,t)}(i,ut);var t,r,n,o=sl(i);function i(){var e;al(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return dl(fl(e=o.call.apply(o,[this].concat(r))),"priority",10),dl(fl(e),"incompatibleTokens",["t","T","X"]),e}return t=i,r=[{key:"parse",value:function(e,t){switch(t){case"x":return Yt(Ft,e);case"xx":return Yt(qt,e);case"xxxx":return Yt(Ht,e);case"xxxxx":return Yt(Vt,e);default:return Yt(Wt,e)}}},{key:"set",value:function(e,t,r){return t.timestampIsSet?e:new Date(e.getTime()-r)}}],r&&ll(t.prototype,r),n&&ll(t,n),i}();function yl(e){return yl="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},yl(e)}function ml(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gl(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 vl(e,t){return vl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vl(e,t)}function bl(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=xl(e);if(t){var o=xl(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return wl(this,r)}}function wl(e,t){return!t||"object"!==yl(t)&&"function"!=typeof t?Ol(e):t}function Ol(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xl(e){return xl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xl(e)}function kl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var El=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&&vl(e,t)}(i,ut);var t,r,n,o=bl(i);function i(){var e;ml(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return kl(Ol(e=o.call.apply(o,[this].concat(r))),"priority",40),kl(Ol(e),"incompatibleTokens","*"),e}return t=i,(r=[{key:"parse",value:function(e){return Zt(e)}},{key:"set",value:function(e,t,r){return[new Date(1e3*r),{timestampIsSet:!0}]}}])&&gl(t.prototype,r),n&&gl(t,n),i}();function jl(e){return jl="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},jl(e)}function Sl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tl(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 Pl(e,t){return Pl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Pl(e,t)}function Cl(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=Dl(e);if(t){var o=Dl(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return zl(this,r)}}function zl(e,t){return!t||"object"!==jl(t)&&"function"!=typeof t?_l(e):t}function _l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dl(e){return Dl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Dl(e)}function Ll(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&&Pl(e,t)}(i,ut);var t,r,n,o=Cl(i);function i(){var e;Sl(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ll(_l(e=o.call.apply(o,[this].concat(r))),"priority",20),Ll(_l(e),"incompatibleTokens","*"),e}return t=i,(r=[{key:"parse",value:function(e){return Zt(e)}},{key:"set",value:function(e,t,r){return[new Date(r),{timestampIsSet:!0}]}}])&&Tl(t.prototype,r),n&&Tl(t,n),i}();function Nl(e,t){P(2,arguments);var r=T(t);return _(e,-r)}function Ml(e,t){var r;P(1,arguments);var n=T(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=ql(e);if(i.date){var a=Hl(i.date,n);o=Wl(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var l,c=o.getTime(),s=0;if(i.time&&(s=Ul(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=Yl(i.timezone),isNaN(l)?new Date(NaN):new Date(c+s+l)}new wt,new sr,new br,new Cr,new Rr,new $r,new an,new mn,new Sn,new Mn,new Gn,new oo,new yo,new So,new Mo,new Go,new ri,new pi,new xi,new Di,new Hi,new Ji,new ca,new va,new Pa,new Ba,new Za,new ol,new hl,new El,new Al;var Il={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Bl=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Rl=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Fl=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ql(e){var t,r={},n=e.split(Il.dateTimeDelimiter);if(n.length>2)return r;if(/:/.test(n[0])?t=n[0]:(r.date=n[0],t=n[1],Il.timeZoneDelimiter.test(r.date)&&(r.date=e.split(Il.timeZoneDelimiter)[0],t=e.substr(r.date.length,e.length))),t){var o=Il.timezone.exec(t);o?(r.time=t.replace(o[1],""),r.timezone=o[1]):r.time=t}return r}function Hl(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 Wl(e,t){if(null===t)return new Date(NaN);var r=e.match(Bl);if(!r)return new Date(NaN);var n=!!r[4],o=Vl(r[1]),i=Vl(r[2])-1,a=Vl(r[3]),l=Vl(r[4]),c=Vl(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<=(Zl[t]||($l(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=($l(e)?366:365)}(t,o)?(s.setUTCFullYear(t,i,Math.max(o,a)),s):new Date(NaN)}function Vl(e){return e?parseInt(e):1}function Ul(e){var t=e.match(Rl);if(!t)return NaN;var r=Gl(t[1]),n=Gl(t[2]),o=Gl(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 Gl(e){return e&&parseFloat(e.replace(",","."))||0}function Yl(e){if("Z"===e)return 0;var t=e.match(Fl);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 Zl=[31,null,31,30,31,30,31,31,30,31,30,31];function $l(e){return e%400==0||e%4==0&&e%100!=0}function Xl(e,t){P(2,arguments);var r=T(t);return D(e,-r)}function Ql(e){return Ql="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},Ql(e)}function Jl(e,t){if(P(2,arguments),!t||"object"!==Ql(t))return new Date(NaN);var r=t.years?T(t.years):0,n=t.months?T(t.months):0,o=t.weeks?T(t.weeks):0,i=t.days?T(t.days):0,a=t.hours?T(t.hours):0,l=t.minutes?T(t.minutes):0,c=t.seconds?T(t.seconds):0,s=Xl(e,n+12*r),u=Nl(s,i+7*o),f=l+60*a,p=c+60*f,d=1e3*p,h=new Date(u.getTime()-d);return h}var Kl={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"}},ec={date:O({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:O({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:O({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},tc={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"},rc={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"},nc={code:"es",formatDistance:function(e,t,r){var n,o=Kl[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:ec,formatRelative:function(e,t,r,n){return 1!==t.getUTCHours()?rc[e]:tc[e]},localize:{ordinalNumber:function(e,t){return Number(e)+"º"},era:x({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:x({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:x({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:x({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:x({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:S({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:k({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:k({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:k({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:k({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:k({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 oc(t){var r=[],n=s.getCurrentLanguage().toLowerCase().startsWith("es")?nc:Re,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))})))})))))}h(".mdhui-calendar\n{\n\tpadding-bottom: 16px;\n}\n\n.mdhui-calendar table\n{\n\twidth: 100%;\n\tfont-size: 14px;\n}\n\n .mdhui-calendar table tr th\n {\n font-size: 14px;\n font-weight: bold;\n color: #555;\n padding-bottom: 16px;\n padding-top: 16px;\n border-bottom: solid 1px #eee;\n text-align: center;\n }\n \n .mdhui-calendar table tr td\n {\n padding-top: 16px;\n vertical-align: top;\n text-align: center;\n height: 50px;\n padding-bottom: 0;\n position: relative;\n }");function ic(t){return t.children?e.createElement("div",{className:(t.allowOverflow?"allow-overflow ":"")+(t.className||"")+" mdhui-card"},t.children):null}h(".mdhui-card\n{\n border-radius: 5px;\n margin: 16px;\n background: #FFF;\n box-shadow: 0px 9px 9px #ddd;\n animation: fadein 1s;\n -moz-animation: fadein 1s;\n -webkit-animation: fadein 1s;\n position: relative;\n overflow: hidden;\n}\n\n .mdhui-card:empty\n {\n display: none;\n }\n\n .mdhui-card.allow-overflow\n {\n overflow: visible;\n display: flow-root;\n }\n\n@keyframes fadein\n{\n from\n {\n opacity: 0;\n }\n\n to\n {\n opacity: 1;\n }\n}\n\n@-moz-keyframes fadein\n{\n from\n {\n opacity: 0;\n }\n\n to\n {\n opacity: 1;\n }\n}\n\n@-webkit-keyframes fadein\n{\n from\n {\n opacity: 0;\n }\n\n to\n {\n opacity: 1;\n }\n}\n");function ac(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))}h(".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 lc={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="chevron-left",r=[9001],n="f053",o="M41.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.3L109.3 256 278.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:[384,512,r,n,o]},e.faChevronLeft=e.definition,e.prefix="fas",e.iconName=t,e.width=384,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(lc);function cc(t){var r,n,o="Month"==t.intervalType?{months:1}:{weeks:1},i=A(t.intervalStart,o),a=!1,l=new Date;return t.intervalStart<=l&&l<i&&(a=!0),e.createElement("div",{className:"mdhui-date-range-navigator"},e.createElement("button",{title:"Previous",className:"navigator-button navigate-previous",onClick:function(){return e=Jl(t.intervalStart,o),void t.onIntervalChange(e,A(e,o));var e}},e.createElement(g,{icon:lc.faChevronLeft})),"Month"==t.intervalType&&1==t.intervalStart.getDate()&&e.createElement("div",null,(n=s.getCurrentLanguage().toLowerCase().startsWith("es")?nc:Re,(r=Ue(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,Ue(t.intervalStart,"MM/dd/yyyy")," - ",Ue(Jl(i,{days:1}),"MM/dd/yyyy")),!a&&e.createElement("button",{title:"Next",className:"navigator-button navigate-next",onClick:function(){return e=A(t.intervalStart,o),void t.onIntervalChange(e,A(e,o));var e}},e.createElement(g,{icon:d.faChevronRight})))}h(".mdhui-card .mdhui-date-range-navigator:first-child\n{\n border-radius: 5px 5px 0px 0px;\n}\n\n.mdhui-date-range-navigator\n{\n padding: 16px;\n text-align: center;\n font-weight: bold;\n border-bottom: solid 1px var(--color-border);\n position: sticky;\n position: -webkit-sticky;\n top: 0;\n background: #FFF;\n z-index: 1;\n}\n\n .mdhui-date-range-navigator > .navigator-button\n {\n position: absolute;\n top: 0;\n padding: 16px;\n color: var(--color-primary);\n height: 100%;\n }\n\n .mdhui-date-range-navigator > .navigate-previous\n {\n left: 0;\n }\n\n .mdhui-date-range-navigator > .navigate-next\n {\n right: 0;\n }\n");function sc(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"},"+")))}h(".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: #eee;\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");h(".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 }");function uc(t){var r="mdhui-face";function n(){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&&(r+=" mdhui-face-selected"),t.className&&(r+=" "+t.className),t.onClick?e.createElement("button",{className:r,onClick:t.onClick},e.createElement("img",{src:n()}),e.createElement(fc,null)):e.createElement("div",{className:r},e.createElement("img",{src:n()}),e.createElement(fc,null))}h(".mdhui-histogram {\n padding: 16px;\n}\n\n.mdhui-histogram-entry {\n padding-top: 8px;\n font-size: 15px;\n}\n\n.mdhui-histogram-entry-bar-wrapper {\n display: flex;\n}\n\n.mdhui-histogram-entry-bar {\n position: relative;\n height: 16px;\n border-radius: 8px;\n}\n\n.mdhui-histogram-entry-value {\n padding-left: 4px;\n line-height: 16px;\n font-size: 12px;\n font-weight: bold;\n}\n");function fc(){return e.createElement("div",{className:"mdhui-shiny-overlay"})}function pc(t){var r=0;return t.entries.forEach((function(e){e.value>r&&(r=e.value)})),e.createElement("div",{className:"mdhui-histogram"},t.entries.map((function(t,n){return e.createElement("div",{className:"mdhui-histogram-entry",key:n},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(fc,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))})))}h(".mdhui-shiny-overlay\n{\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 244, 240, 0.2) 100%);\n}\n");function dc(t){return t.bodyBackgroundColor?document.body.style.backgroundColor=t.bodyBackgroundColor:document.body.style.removeProperty("background-color"),t.statusBarStyle&&s.setStatusBarStyle(t.statusBarStyle),e.createElement("div",{className:"mdhui-layout"},t.stylesheetPath&&e.createElement("link",{rel:"stylesheet",type:"text/css",href:t.stylesheetPath}),t.children)}h(":root\n{\n --main-bg-color: #f5f5f5;\n --color-theme: #0076BE;\n --color-primary: #0076BE;\n --color-success: #00AE42;\n --color-warning: #FF671D;\n --color-danger: #C40D3C;\n --color-info: #853275;\n --color-muted1: #555;\n --color-muted2: #999;\n --color-muted3: #bbb;\n --color-border: #eee;\n}\n\na\n{\n color: var(--color-primary);\n}\n\nhtml\n{\n font-size: 17px;\n line-height: 1.3;\n}\n\nbutton\n{\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{\n html\n {\n font: -apple-system-body;\n }\n}\n\nbody\n{\n padding: 0;\n margin: 0;\n font-family: ui-rounded, -apple-system, Helvetica, Arial, sans-serif;\n background: var(--main-bg-color);\n}\n\n.mdhui-layout\n{\n padding-bottom: env(safe-area-inset-bottom);\n}\n");var hc={},yc={};!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}(yc),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=yc;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}(hc);function mc(){return e.createElement("div",{className:"mdhui-loading-indicator"},e.createElement(g,{icon:hc.faRefresh,spin:!0}))}h(".mdhui-loading-indicator\n{\n padding: 16px;\n color: #bbb;\n text-align: center;\n}");h(".mdhui-navigation-bar\n{\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: #f5f5f5;\n}\n\n .mdhui-navigation-bar.scroll-shadow\n {\n box-shadow: 0px 0px 5px #aaa;\n }\n\n .mdhui-navigation-bar .icon\n {\n width: 32px;\n vertical-align: middle;\n }\n\n .mdhui-navigation-bar .close-button\n {\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 {\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 }\n");var gc={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"},vc={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"},bc=s.getCurrentLanguage().toLowerCase().startsWith("es")?vc:gc;function wc(t){var r=o(null);return i((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(){s.back()}},e.createElement(g,{icon:lc.faChevronLeft}),t.backButtonText?t.backButtonText:bc.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(){s.dismiss()}},t.closeButtonText?t.closeButtonText:bc.close),t.children)}function Oc(t){return t.children?e.createElement("div",{className:"mdhui-section"},t.children):null}h(".mdhui-section\n{\n margin-top: 16px;\n margin-bottom: 16px;\n background: #FFF;\n box-shadow: 0px 9px 9px #ddd;\n animation: fadein 1s;\n -moz-animation: fadein 1s;\n -webkit-animation: fadein 1s;\n position: relative;\n}\n\n .mdhui-section:empty\n {\n display: none;\n }\n\n\n@keyframes fadein\n{\n from\n {\n opacity: 0;\n }\n\n to\n {\n opacity: 1;\n }\n}\n\n@-moz-keyframes fadein\n{\n from\n {\n opacity: 0;\n }\n\n to\n {\n opacity: 1;\n }\n}\n\n@-webkit-keyframes fadein\n{\n from\n {\n opacity: 0;\n }\n\n to\n {\n opacity: 1;\n }\n}");function xc(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(fc,null),n.title)})))}h(".mdhui-segmented-control\n{\n border-radius: 32px;\n border: solid 1px var(--color-primary);\n background: #FFF;\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(--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(--color-primary);\n color: #FFF;\n }\n");var kc={};!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}(kc);var Ec={};!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}(Ec);function jc(t){var r=s.getCurrentLanguage().toLowerCase().startsWith("es")?nc:Re,n=a(""),o=n[0],i=n[1];function l(){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"!==l()&&"fetchingData"!==l()&&e.createElement("button",{className:"delete-button",onClick:function(){i("deleting"),s.deleteExternalAccount(t.externalAccount.id).then((function(){t.onAccountRemoved(t.externalAccount)})).catch((function(){i("")}))},title:bc["external-account-remove"]},e.createElement(g,{icon:Ec.faTrash}))),e.createElement("div",{className:"external-account-status"},"unauthorized"===l()&&e.createElement("p",null,e.createElement("span",{className:"error"},bc["external-account-authorization-expired"])),"fetchingData"===l()&&e.createElement("p",null,e.createElement(g,{icon:hc.faRefresh,spin:!0})," ",bc["external-account-fetching-data"]),"fetchComplete"===l()&&e.createElement("p",null,bc["external-account-last-updated"]," ",e.createElement("strong",null,Qe(Ml(t.externalAccount.lastRefreshDate),new Date,{locale:r}))),"error"===l()&&e.createElement("p",{className:"error"},bc["external-account-error"]),("fetchComplete"===l()||"error"===l())&&e.createElement("p",null,e.createElement("a",{href:"javascript:{}",onClick:function(){i("fetchingData"),s.refreshExternalAccount(t.externalAccount.id).then()}},e.createElement(g,{icon:kc.faRepeat})," ",bc["external-account-refresh"])),"unauthorized"===l()&&e.createElement("p",null,e.createElement("a",{href:"javascript:{}",onClick:function(){return t.onReconnectAccount(t.externalAccount)}},e.createElement(g,{icon:kc.faRepeat})," ",bc["external-account-reconnect"])),"deleting"===l()&&e.createElement("p",null,e.createElement(g,{icon:hc.faRefresh,spin:!0})," ",bc["external-account-deleting"])))}h(".mdhui-single-external-account {\n position: relative;\n overflow: hidden;\n background: #FFF;\n}\n\n.mdhui-single-external-account .external-account-header {\n position: relative;\n padding: 16px;\n font-weight: bold;\n border-bottom: solid 1px #eee;\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: #bbb;\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}\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(--color-danger);\n}");function Sc(t){var r,n;var o,i=s.getCurrentLanguage().toLowerCase().startsWith("es")?nc:Re;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=Qe(Ml(t.notification.sentDate),new Date,{locale:i})).charAt(0).toUpperCase()+o.slice(1)))}h(".mdhui-single-notification\n{\n padding: 16px;\n border-bottom: solid 1px var(--color-border);\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(--color-muted1);\n margin-top: 16px;\n font-size: .75em;\n }\n");h(".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}\n\n .mdhui-single-survey-task .status-icon\n {\n color: var(--color-muted2);\n }\n\n .mdhui-single-survey-task.complete .status-icon\n {\n color: var(--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: #555;\n }\n\n .mdhui-single-survey-task .due-date\n {\n font-size: .88em;\n color: var(--color-primary);\n }\n\n .mdhui-single-survey-task .due-date.warning\n {\n color: var(--color-warning);\n font-weight: bold;\n }\n\n .mdhui-single-survey-task .due-date.danger\n {\n color: var(--color-danger);\n font-weight: bold;\n }\n\n .mdhui-single-survey-task .indicator\n {\n font-size: 16px;\n color: var(--color-muted2);\n }\n\n .mdhui-single-survey-task.incomplete\n {\n cursor: pointer;\n }\n");var Tc={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="circle-check",r=[61533,"check-circle"],n="f058",o="M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 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}(Tc);var Pc={};!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-192zm64 0c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0S512 114.6 512 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}(Pc);var Cc={};function zc(t){var r=function(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()},n=new Date,o=A(new Date,{days:1}),i="",a="",l=s.getCurrentLanguage().toLowerCase().startsWith("es")?nc:Re;if(t.task.dueDate){var c=Ml(t.task.dueDate);if(r(c,o))i=bc["due-tomorrow"],a="warning";else if(r(c,n))i=bc["due-today"],a="warning";else if(Je(n,c))i=bc.overdue,a="danger";else{var u;u=function(e,t){return P(1,arguments),$e(e,Date.now(),t)}(new Date(t.task.dueDate),{locale:l}),i=bc["due-in"]+" "+u}}return"incomplete"==t.task.status?e.createElement("button",{className:"mdhui-single-survey-task incomplete",onClick:function(){return e=t.task.surveyName,void(t.disableClick||s.startSurvey(e));var e}},e.createElement("div",{className:"status-icon"},t.task.hasSavedProgress&&e.createElement(g,{icon:Pc.faCircleHalfStroke}),!t.task.hasSavedProgress&&e.createElement(g,{icon:Cc.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(g,{icon:d.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(g,{icon:Tc.faCircleCheck})),e.createElement("div",null,e.createElement("div",{className:"survey-name"},t.task.surveyDisplayName),e.createElement("div",{className:"completed-date"},bc.completed," ",Qe(Ml(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="M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z";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}(Cc);function _c(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(fc,null))}))))}h(".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 Dc(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"}))}h(".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(--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 Lc(t){var r={};return t.color&&(r={backgroundColor:t.color}),e.createElement("div",{className:"mdhui-status-bar-background",style:r})}h(".mdhui-status-bar-background\n{\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: #FFF;\n}\n");function Ac(t){return t.children?e.createElement("div",{className:"mdhui-text-block"},t.children):null}h(".mdhui-text-block\n{\n margin: 16px;\n font-size: .88em;\n}\n");function Nc(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(fc,null),t.badge&&t.selected&&e.createElement("div",{className:"badge"},t.badge))}h(".mdhui-tracker-item\n{\n padding: 8px;\n padding-right: 16px;\n padding-left: 16px;\n color: #FFF;\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 {\n cursor: pointer;\n }\n\n .mdhui-tracker-item.selected\n {\n box-shadow: 0px 0px 5px #aaa;\n color: #FFF !important;\n background-color: inherit;\n }\n\n .mdhui-tracker-item.unselected\n {\n background-color: #FFFFFF !important;\n }\n\n .mdhui-tracker-item.bordered .mdhui-shiny-overlay\n {\n left: 1px;\n right: 1px;\n bottom: 1px;\n top: 1px;\n border: solid 2px #FFF;\n border-radius: 16px;\n }\n\n .mdhui-tracker-item .badge\n {\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 }\n");function Mc(t){var r=o(null);l((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(A(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(A(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=[],i=[],a=[],c=A(t.startDate,{days:-7}),s=0;s<21;s++)s<7?n.push(c):s<14?i.push(c):a.push(c),c=A(c,{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"}," ",Ue(t,"E").substr(0,1)),e.createElement("div",{className:"mdhui-week-calendar-day-of-month"},Ue(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&&Xe(e).substr(0,10)==Xe(t.selectedDate).substr(0,10)&&r.push("mdhui-week-calendar-day-selected"),r}return l((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(mc,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"},i.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))}))),A(t.startDate,{days:7})<new Date&&e.createElement("div",{className:"mdhui-week-calendar-week"},a.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))}))))}h(".mdhui-week-calendar\n{\n background: #FFF;\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 #ddd;\n border-bottom: solid 1px #ddd;\n}\n\n .mdhui-week-calendar .mdhui-week-calendar-loading\n {\n position: absolute;\n width: 100%;\n left: 100%;\n top: calc(50% - 10px);\n }\n\n .mdhui-week-calendar *\n {\n user-select: none;\n }\n\n .mdhui-week-calendar::-webkit-scrollbar\n {\n display: none; /* Safari and Chrome */\n }\n\n .mdhui-week-calendar .mdhui-week-calendar-week\n {\n min-width: 100%;\n scroll-snap-align: start;\n }\n\n .mdhui-week-calendar .mdhui-week-calendar-day\n {\n width: calc(14.28% - 1px);\n border-left: solid 1px #ddd;\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 {\n width: 14.28%;\n border-left: none;\n }\n\n .mdhui-week-calendar .mdhui-week-calendar-date-label\n {\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 {\n font-size: 10px;\n }\n\n .mdhui-week-calendar .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-month\n {\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 {\n cursor: pointer;\n }\n\n .mdhui-week-calendar .mdhui-week-calendar-day-selected\n {\n background: #EAF4FB;\n }\n\n .mdhui-week-calendar .mdhui-week-calendar-day-selected .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-month\n {\n background-color: var(--color-theme);\n color: #FFF;\n font-weight: bold;\n }\n\n .mdhui-week-calendar .mdhui-week-calendar-day-future > *\n {\n opacity: .4;\n }\n");h(".mdhui-connect-ehr\n{\n background: #FFF;\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(--color-muted1);\n}\n\n.mdhui-connect-ehr .connection-status {\n padding: 16px 42px 0 16px;\n font-size: .88em;\n color: #555;\n}\n\n.mdhui-connect-ehr .connection-status .success svg {\n color: var(--color-success);\n}\n\n.mdhui-connect-ehr .connection-status .warning {\n color: var(--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(--color-muted2);\n}\n");var Ic={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Tc;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}(Ic);var Bc={};function Rc(t){var r=a(!0),n=r[0],o=r[1],i=a(!1),c=i[0],u=i[1],f=a(null),p=f[0],h=f[1],y=a(!1),m=y[0],v=y[1],b=a(!1),w=b[0],O=b[1];function x(){if(t.previewState){if("notEnabled"==t.previewState)return;return u(!0),h("PROJECT"),"enabledConnected"==t.previewState?(v(!0),O(!1)):"enabledNeedsAttention"==t.previewState&&(v(!0),O(!0)),void o(!1)}s.getDataCollectionSettings().then((function(e){u(e.ehrEnabled),e.ehrEnabled&&s.getProjectInfo().then((function(e){h(e.name),s.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 l((function(){return x(),s.on("applicationDidBecomeVisible",x),s.on("externalAccountSyncComplete",x),function(){s.off("applicationDidBecomeVisible",x),s.off("externalAccountSyncComplete",x)}}),[]),c?n?null:e.createElement("button",{className:"mdhui-connect-ehr",onClick:function(){"preview"==t.applicationUrl?console.log("PREVIEW: Opening the connect EHR application."):s.openApplication(t.applicationUrl)}},e.createElement(ac,{title:bc["connect-ehr-title-prefix"]+bc["connect-ehr-title-providers"]+bc["connect-ehr-title-divider"]+bc["connect-ehr-title-health-plans"]}),m?e.createElement("div",null,e.createElement("div",{className:"connection-status"},w?e.createElement("div",{className:"warning"},e.createElement(g,{icon:Bc.faTriangleExclamation})," ",bc["connect-ehr-needs-attention"]):e.createElement("div",{className:"success"},e.createElement(g,{icon:Ic.faCheckCircle})," ",bc["connect-ehr-connected"])),e.createElement("div",{className:"content"},bc["connect-ehr-text-connected"].replace("@@PROJECT_NAME@@",p))):e.createElement("div",{className:"content"},bc["connect-ehr-text"].replace("@@PROJECT_NAME@@",p)),e.createElement("div",{className:"indicator"},e.createElement(g,{icon:d.faChevronRight})),e.createElement(fc,null)):"displayError"==t.disabledBehavior?e.createElement("div",{className:"mdhui-connect-ehr"},e.createElement("div",{className:"error-content"},bc["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 224c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z";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}(Bc);var Fc={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Bc;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}(Fc);function qc(t){var r=a(!0),n=r[0],o=r[1],i=a(!1),c=i[0],u=i[1],f=a(null),p=f[0],d=f[1];function h(){var e=564;return s.baseUrl&&!s.baseUrl.startsWith("https://mdhorg.ce.dev")||(e=2),t.fitbitProviderID&&(e=t.fitbitProviderID),e}function y(){if(t.previewState){if("notEnabled"==t.previewState)return;return u(!0),"notConnected"==t.previewState?void o(!1):(d({id:1,lastRefreshDate:Xe(A(new Date,{hours:-1})),status:t.previewState,provider:{name:"Fitbit",category:"Device Manufacturer",id:h(),logoUrl:""}}),void o(!1))}s.getDataCollectionSettings().then((function(e){u(e.fitbitEnabled),e.fitbitEnabled?s.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 m(){s.connectExternalAccount(h())}l((function(){return y(),s.on("applicationDidBecomeVisible",y),s.on("externalAccountSyncComplete",y),function(){s.off("applicationDidBecomeVisible",y),s.off("externalAccountSyncComplete",y)}}),[]);var v=null==p?void 0:p.status;if("fetchComplete"==(null==p?void 0:p.status)){var b=A(Ml(p.lastRefreshDate),{hours:3});Je(new Date,b)&&(s.refreshExternalAccount(p.id),v="fetchingData")}return c?e.createElement("div",{className:"mdhui-connect-fitbit"},t.title&&e.createElement(ac,{title:t.title}),n&&e.createElement(mc,null),!n&&e.createElement("div",{className:"content"},!p&&e.createElement("div",null,e.createElement("div",{className:"subtitle"},bc["connect-fitbit-intro"]),e.createElement(w,{onClick:function(){return m()}},bc["connect-fitbit-button"])),p&&"fetchComplete"==v&&e.createElement("div",{className:"subtitle success"},e.createElement(g,{icon:Ic.faCheckCircle})," ",bc["received-fitbit-data"]),p&&"fetchingData"==v&&e.createElement("div",{className:"subtitle downloading"},e.createElement(g,{icon:hc.faRefresh,spin:!0})," ",bc["downloading-data"]),p&&"unauthorized"==v&&e.createElement("div",null,e.createElement("div",{className:"subtitle reconnect"},e.createElement(g,{icon:Fc.faExclamationTriangle})," ",bc.reconnect),e.createElement(w,{onClick:function(){return m()}},bc["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."))}h(".mdhui-connect-fitbit\n{\n}\n\n .mdhui-connect-fitbit .title\n {\n font-weight: bold;\n }\n\n .mdhui-connect-fitbit .subtitle\n {\n font-size: .88em;\n font-weight: normal;\n color: var(--color-muted1);\n }\n\n .mdhui-connect-fitbit .subtitle.reconnect\n {\n color: var(--color-danger);\n font-weight: bold;\n }\n\n .mdhui-connect-fitbit .subtitle.success svg\n {\n color: var(--color-success);\n }\n\n .mdhui-connect-fitbit .mdhui-button\n {\n margin-top: 16px;\n }\n\n .mdhui-connect-fitbit .content\n {\n padding: 16px;\n }\n");h(".mdhui-device-data-month-chart\n{\n position: relative;\n}\n\n .mdhui-device-data-month-chart .title\n {\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 {\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 {\n font-weight: bold;\n }\n\n\n .mdhui-device-data-month-chart .chart-container\n {\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 {\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(--color-muted2);\n box-sizing: border-box;\n padding: 16px;\n }\n\n .mdhui-device-data-month-chart .recharts-cartesian-axis-tick\n {\n font-size: 11px;\n }\n\n .mdhui-device-data-month-chart .graph-tooltip\n {\n padding: 4px;\n font-size: 12px;\n background: #FFF;\n border-radius: 5px;\n box-shadow: 0px 9px 9px #ddd;\n animation: fadein 1s;\n -moz-animation: fadein 1s;\n -webkit-animation: fadein 1s;\n border: solid 1px var(--color-border);\n }\n\n .mdhui-device-data-month-chart .graph-tooltip .graph-date\n {\n padding: 4px;\n }\n\n .mdhui-device-data-month-chart .graph-tooltip table\n {\n border-spacing: 0;\n border-collapse: collapse;\n }\n\n .mdhui-device-data-month-chart .graph-tooltip table tr:nth-child(odd)\n {\n background: #eee;\n }\n\n .mdhui-device-data-month-chart .graph-tooltip table th\n {\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 {\n padding: 4px;\n text-align: left;\n font-weight: bold;\n }\n");var Hc=require("recharts/es6/chart/LineChart").LineChart,Wc=require("recharts/es6/component/ResponsiveContainer").ResponsiveContainer,Vc=require("recharts/es6/cartesian/XAxis").XAxis,Uc=require("recharts/es6/cartesian/YAxis").YAxis,Gc=require("recharts/es6/component/Tooltip").Tooltip,Yc=require("recharts/es6/cartesian/CartesianGrid").CartesianGrid,Zc=require("recharts/es6/cartesian/Line").Line;function $c(e){return Xe(e).substr(0,10)}function Xc(e,t,r){return"FitbitSteps"==e?Qc(t,r):"FitbitRestingHeartRates"==e||"AppleHealthSteps"==e?Jc(t,r):"AppleHealthDistanceRunningWalking"==e?function(e,t){var r=new Date(e,t,1,0,0,0,0),n=A(r,{months:1}),o={};for(;r<n;)o[$c(r)]=Math.floor(500*Math.random()),r=A(r,{hours:1});return o}(t,r):"GoogleFitSteps"==e?function(e,t){var r=new Date(e,t,1,0,0,0,0),n=A(r,{months:1}),o={};for(;r<n;)o[$c(r)]=Math.floor(500*Math.random()),r=A(r,{hours:1});return o}(t,r):Qc(t,r)}function Qc(e,t){for(var r=new Date(e,t,1,0,0,0,0),n=A(r,{months:1}),o={};r<n;)o[$c(r)]=3e3+Math.floor(1e4*Math.random()),r=A(r,{days:1});return o}function Jc(e,t){for(var r=new Date(e,t,1,0,0,0,0),n=A(r,{months:1}),o={};r<n;)o[$c(r)]=60+Math.floor(5*Math.random()),r=A(r,{days:1});return o}Vc.displayName="XAxis",Uc.displayName="YAxis";var Kc=function(){return Kc=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},Kc.apply(this,arguments)};function es(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 ts(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 rs(e){var t=[],r=function(n){var o=Kc({},e);return n&&(o.pageID=n),s.queryDeviceData(o).then((function(e){return t=t.concat(e.deviceDataPoints),e.nextPageID?r(e.nextPageID):t}))};return r()}function ns(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 os(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=ns(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){P(2,arguments);var n=G(e,t)/6e4;return Z(null==r?void 0:r.roundingMethod)(n)}(e.endDate,e.startDate)})),a}function is(e,t,r){return rs({namespace:"AppleHealth",type:"SleepAnalysisInterval",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(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=Ml(e.startDate),n=Ml(e.observationDate),o=A(new Date(r.getFullYear(),r.getMonth(),r.getDate(),18,0,0,0),{days:-1});o<n;){var i=A(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=Xe(A(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]=os(l)),e=A(e,{days:1})}return i}))}function as(e,t){return rs({namespace:"AppleHealth",type:"HourlySteps",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=$c(Ml(e.startDate));t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}function ls(e,t,r){return rs({namespace:"Fitbit",type:r,observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(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 cs(e,t,r){return rs({namespace:"Fitbit",type:"HeartRateZone",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(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 ss(e,t,r){return rs({namespace:"Fitbit",type:e,observedAfter:A(t,{days:-1}).toISOString(),observedBefore:A(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 us(e,t){return ss("RestingHeartRate",e,t)}function fs(e,t,r){return rs({namespace:"Fitbit",type:r,observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.observationDate){var r=Xe(A(Ml(e.observationDate),{hours:6})).substr(0,10);t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}function ps(e,t){return ss("Steps",e,t)}var ds,hs={};function ys(e,t,r){hs[e]={provider:t,availabilityCheck:r}}function ms(e,t){var r=hs[e];if(!r)throw"Unknown data type:"+e;return r.availabilityCheck(t)}function gs(e,t,r){return hs[e].provider(t,r).then((function(e){for(var n={};t<r;){var o=$c(t);e[o]&&(n[o]=e[o]),t=A(t,{days:1})}return n}))}function vs(e,t){return function(r){var n={namespace:e,type:t,limit:1};return r&&(n.modifiedAfter=r.toISOString()),s.queryDeviceData(n).then((function(e){return e.deviceDataPoints.length>0})).catch((function(){return!1}))}}function bs(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 ws(t){var r=a(null),n=r[0],i=r[1],c=a(!1),u=c[0],f=c[1],p=a(!1),d=p[0],h=p[1],y=o(),m=new Date(t.year,t.month,1,0,0,0,0),g=A(m,{months:1});function v(){var e,r;if(t.previewState&&(h(!0),t.onDataDetected&&t.onDataDetected()),"Loading"==t.previewState&&f(!0),"WithData"==t.previewState){var n={};t.lines.forEach((function(e){var r=Xc(e.dailyDataType,t.year,t.month);n[e.dailyDataType]=r})),i(n)}if("NoData"==t.previewState){n={};t.lines.forEach((function(e){n[e.dailyDataType]={}})),i(n),f(!1)}if(!t.previewState){!function(){if(!d){var e=t.lines.map((function(e){return ms(e.dailyDataType)}));Promise.all(e).then((function(e){e.find((function(e){return e}))&&(h(!0),t.onDataDetected&&t.onDataDetected())}))}}(),y.current=(null!==(e=y.current)&&void 0!==e?e:0)+1;var o=null!==(r=y.current)&&void 0!==r?r:0;f(!0);var a;a=t.lines.map((function(e){return gs(e.dailyDataType,m,g)})),Promise.all(a).then((function(e){if(o==y.current){for(var r={},n=0;n<t.lines.length;n++)r[t.lines[n].dailyDataType]=e[n];i(r),f(!1)}}))}}l((function(){return v(),s.on("applicationDidBecomeVisible",v),s.on("externalAccountSyncComplete",v),function(){s.off("applicationDidBecomeVisible",v),s.off("externalAccountSyncComplete",v)}}),[t]);for(var b=[],w=m,O=!1;w<g;){var x={day:w.getDate()};b.push(x);var k=$c(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=A(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),!u&&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||u)&&e.createElement("div",null,!O&&!u&&e.createElement("div",{className:"no-data-label"},"No Data"),u&&e.createElement(mc,null),e.createElement(Wc,{width:"100%",height:150},e.createElement(Hc,{width:400,height:400,data:b,syncId:t.syncId},e.createElement(Yc,{strokeDasharray:"3 3"}),e.createElement(Uc,{axisLine:!1,interval:0,tickLine:!1,width:30,scale:"linear"}),e.createElement(Vc,{id:"myXAxis",tick:bs,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))),O&&!u&&e.createElement(Wc,{width:"100%",height:150},e.createElement(Hc,{width:400,height:400,data:b,syncId:t.syncId},t.lines.map((function(t){return e.createElement(Zc,{key:t.dailyDataType,type:"monotone",dataKey:t.dailyDataType,stroke:"var(--color-primary)"})})),e.createElement(Gc,{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"},Ue(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(Yc,{strokeDasharray:"3 3"}),e.createElement(Uc,{tickFormatter:function(e){return e>=1e4?Math.floor(e/1e3)+"K":e},axisLine:!1,interval:0,tickLine:!1,width:30}),e.createElement(Vc,{id:"myXAxis",tick:bs,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))))}function Os(t){var r=a(!1),n=r[0],o=r[1],i=new Date,l=a(new Date(i.getFullYear(),i.getMonth(),1,0,0,0,0)),c=l[0],s=l[1];function u(){o(!0)}var f=c.getMonth(),p=c.getFullYear();return e.createElement(e.Fragment,null,!n&&e.createElement(Ac,null,bc["device-data-no-data"]),e.createElement("div",{style:{display:n?"block":"none"}},e.createElement(cc,{intervalType:"Month",intervalStart:c,onIntervalChange:function(e){s(e)}}),e.createElement(ws,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:ds.FitbitSteps,label:bc.steps}],title:"Fitbit "+bc.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(ws,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:ds.FitbitRestingHeartRate,label:bc["resting-heart-rate"]}],title:"Fitbit "+bc["resting-heart-rate"],month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(ws,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:ds.AppleHealthSteps,label:bc.steps}],title:"Apple Health "+bc.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(ws,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:ds.AppleHealthDistanceWalkingRunning,label:bc["distance-traveled"],valueConverter:function(e){return 621371e-9*e}}],title:"Apple Health "+bc["distance-traveled"]+" (Miles)",month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(ws,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:ds.GoogleFitSteps,label:bc.steps}],title:"Google Fit "+bc.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"}(ds||(ds={})),ys(ds.AppleHealthDistanceWalkingRunning,(function(e,t){return rs({namespace:"AppleHealth",type:"HourlyDistanceWalkingRunning",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=Xe(Ml(e.startDate)).substring(0,10);t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}),vs("AppleHealth",["HourlyDistanceWalkingRunning"])),ys(ds.AppleHealthFlightsClimbed,(function(e,t){return rs({namespace:"AppleHealth",type:"FlightsClimbed",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=$c(Ml(e.startDate));t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}),vs("AppleHealth",["HourlySteps"])),ys(ds.AppleHealthHeartRateRange,(function(e,t){return rs({namespace:"AppleHealth",type:["HourlyMaximumHeartRate","HourlyMinimumHeartRate"],observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(r){var n={};r.forEach((function(e){if(e.startDate){var t=$c(Ml(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[$c(e)];i&&i.MaxHeartRate&&i.MinHeartRate&&(o[$c(e)]=i.MaxHeartRate-i.MinHeartRate),e=A(e,{days:1})}return o}))}),vs("AppleHealth",["HourlyMaximumHeartRate"])),ys(ds.AppleHealthHrv,(function(e,t){return rs({namespace:"AppleHealth",type:"HeartRateVariability",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(r){var n={};r.forEach((function(e){if(e.startDate){var t=Xe(Ml(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=A(e,{days:1})}return o}))}),vs("AppleHealth",["HeartRateVariability"])),ys(ds.AppleHealthMaxHeartRate,(function(e,t){return rs({namespace:"AppleHealth",type:"HourlyMaximumHeartRate",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=Xe(Ml(e.startDate)).substring(0,10),n=parseFloat(e.value);t[r]?n>t[r]&&(t[r]=n):t[r]=n}})),t}))}),vs("AppleHealth",["HourlyMaximumHeartRate"])),ys(ds.AppleHealthRestingHeartRate,(function(e,t){return rs({namespace:"AppleHealth",type:"RestingHeartRate",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(r){var n={};r.forEach((function(e){if(e.startDate){var t=$c(Ml(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=A(e,{days:1})}return o}))}),vs("AppleHealth",["RestingHeartRate"])),ys(ds.AppleHealthSleepMinutes,(function(e,t){return is(e,t,"Asleep")}),vs("AppleHealth",["SleepAnalysisInterval"])),ys(ds.AppleHealthInBedMinutes,(function(e,t){return is(e,t,"InBed")}),vs("AppleHealth",["SleepAnalysisInterval"])),ys(ds.AppleHealthStandMinutes,(function(e,t){return rs({namespace:"AppleHealth",type:"AppleStandTime",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=$c(Ml(e.startDate));t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}),vs("AppleHealth",["AppleStandTime"])),ys(ds.AppleHealthSteps,as,vs("AppleHealth",["HourlySteps"])),ys(ds.AppleHealthWalkingHeartRateAverage,(function(e,t){return rs({namespace:"AppleHealth",type:"WalkingHeartRateAverage",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(r){var n={};r.forEach((function(e){if(e.startDate){var t=$c(Ml(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=A(e,{days:1})}return o}))}),vs("AppleHealth",["WalkingHeartRateAverage"])),ys(ds.FitbitActiveMinutes,(function(e,t){return ls(e,t,["MinutesVeryActive","MinutesFairlyActive","MinutesLightlyActive"])}),vs("Fitbit",["MinutesVeryActive","MinutesFairlyActive","MinutesLightlyActive"])),ys(ds.FitbitLightlyActiveMinutes,(function(e,t){return ls(e,t,["MinutesLightlyActive"])}),vs("Fitbit",["MinutesLightlyActive"])),ys(ds.FitbitFairlyActiveMinutes,(function(e,t){return ls(e,t,["MinutesFairlyActive"])}),vs("Fitbit",["MinutesFairlyActive"])),ys(ds.FitbitVeryActiveMinutes,(function(e,t){return ls(e,t,["MinutesVeryActive"])}),vs("Fitbit",["MinutesVeryActive"])),ys(ds.FitbitBreathingRate,(function(e,t){return ss("BreathingRate",e,t)}),vs("Fitbit",["BreathingRate"])),ys(ds.FitbitCaloriesBurned,(function(e,t){return ss("Calories",e,t)}),vs("Fitbit",["Calories"])),ys(ds.FitbitElevatedHeartRateMinutes,(function(e,t){return cs(e,t)}),vs("Fitbit",["HeartRateZone"])),ys(ds.FitbitFatBurnHeartRateMinutes,(function(e,t){return cs(e,t,"Fat Burn")}),vs("Fitbit",["HeartRateZone"])),ys(ds.FitbitCardioHeartRateMinutes,(function(e,t){return cs(e,t,"Cardio")}),vs("Fitbit",["HeartRateZone"])),ys(ds.FitbitPeakHeartRateMinutes,(function(e,t){return cs(e,t,"Peak")}),vs("Fitbit",["HeartRateZone"])),ys(ds.FitbitFloors,(function(e,t){return ss("Floors",e,t)}),vs("Fitbit",["HeartRateZone"])),ys(ds.FitbitHrv,(function(e,t){return ss("Hrv",e,t)}),vs("Fitbit",["Floors"])),ys(ds.FitbitRestingHeartRate,us,vs("Fitbit",["RestingHeartRate"])),ys(ds.FitbitSleepMinutes,(function(e,t){return fs(e,t,["SleepLevelRem","SleepLevelLight","SleepLevelDeep","SleepLevelAsleep"])}),vs("Fitbit",["SleepLevelRem","SleepLevelLight","SleepLevelDeep","SleepLevelAsleep"])),ys(ds.FitbitLightSleepMinutes,(function(e,t){return fs(e,t,["SleepLevelLight"])}),vs("Fitbit",["SleepLevelLight"])),ys(ds.FitbitRemSleepMinutes,(function(e,t){return fs(e,t,["SleepLevelRem"])}),vs("Fitbit",["SleepLevelRem"])),ys(ds.FitbitDeepSleepMinutes,(function(e,t){return fs(e,t,["SleepLevelDeep"])}),vs("Fitbit",["SleepLevelDeep"])),ys(ds.FitbitSpO2,(function(e,t){return ss("SpO2",e,t)}),vs("Fitbit",["SpO2"])),ys(ds.FitbitSteps,ps,vs("Fitbit",["Steps"])),ys(ds.GoogleFitSteps,(function(e,t){return rs({namespace:"GoogleFit",type:"Steps",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=Xe(Ml(e.startDate)).substring(0,10);t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}),vs("GoogleFit",["Steps"])),ys(ds.RestingHeartRate,(function(e,t){return rs({namespace:"AppleHealth",type:"RestingHeartRate",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(r){return us(e,t).then((function(n){var o={};r.forEach((function(e){if(e.startDate){var t=$c(Ml(e.startDate)),r=parseFloat(e.value);o[t]||(o[t]=[]),o[t].push(r)}}));for(var i={};e<t;){var a=$c(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=A(e,{days:1})}return i}))}))}),(function(e){return vs("AppleHealth",["RestingHeartRate"])(e).then((function(t){return t||vs("Fitbit",["RestingHeartRate"])(e)}))})),ys(ds.Steps,(function(e,t){var r=ps(e,t),n=as(e,t);return Promise.all([r,n]).then((function(r){for(var n={};e<t;){var o=$c(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=A(e,{days:1})}return n}))}),(function(e){return vs("AppleHealth",["Steps"])(e).then((function(t){return t||vs("Fitbit",["Steps"])(e)}))}));var xs=[{id:1,lastRefreshDate:A(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:A(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:A(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:A(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 ks(t){var r=a(!0),n=r[0],o=r[1],i=a([]),c=i[0],u=i[1];function f(){if("Default"==t.previewState)return o(!1),void d(xs);p()}function p(){s.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))}))),u(e),t.onExternalAccountsLoaded&&t.onExternalAccountsLoaded(e)}return l((function(){return f(),s.on("applicationDidBecomeVisible",f),s.on("externalAccountSyncComplete",f),function(){s.off("applicationDidBecomeVisible",f),s.off("externalAccountSyncComplete",f)}}),[]),e.createElement("div",{className:"mdhui-external-account-list"},c&&c.map((function(t){return e.createElement(ic,{key:t.id.toString()+t.lastRefreshDate},e.createElement(jc,{externalAccount:t,onAccountRemoved:function(e){return o(!0),void p()},onReconnectAccount:function(e){return function(e){s.connectExternalAccount(e.provider.id)}(e)}}))})),n&&e.createElement(mc,null))}h(".mdhui-external-accounts-preview\n{\n}\n\n .mdhui-external-accounts-preview .external-account-title\n {\n font-size:.88em;\n }");var Es=[{id:1,lastRefreshDate:A(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:A(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:A(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:A(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 js(t){var r=a(null),n=r[0],o=r[1],i="",c=[];function u(){"Default"!=t.previewState?s.getExternalAccounts().then((function(e){f(e)})):f(Es)}function f(e){c&&(e=e.filter((function(e){return-1!=(null==c?void 0:c.indexOf(e.provider.category))}))),o(e)}return t.excludeProviders||(c.push("Provider"),i+=bc["external-accounts-title-providers"]),t.excludeHealthPlans||(c.push("Health Plan"),i.length>0&&(i+=bc["external-accounts-title-divider"]),i+=bc["external-accounts-title-health-plans"]),t.excludeDeviceManufacturers||(c.push("Device Manufacturer"),i.length>0&&(i+=bc["external-accounts-title-divider"]),i+=bc["external-accounts-title-devices"]),l((function(){return u(),s.on("applicationDidBecomeVisible",u),function(){s.off("applicationDidBecomeVisible",u)}}),[]),n&&n.length?e.createElement("div",{className:"mdhui-external-accounts-preview"},e.createElement(v,{title:i,onClick:function(){"preview"==t.applicationUrl?console.log("PREVIEW: Opening the external accounts application."):s.openApplication(t.applicationUrl)}},n.map((function(t){return e.createElement("div",{key:t.id,className:"external-account-title"},t.provider.name)})))):null}h(".mdhui-fitbit-devices\n{\n}\n\n .mdhui-fitbit-devices .fitbit-device\n {\n border-bottom: solid 1px var(--color-border);\n padding: 16px;\n position: relative;\n padding-left: 48px;\n }\n\n .mdhui-fitbit-devices .fitbit-device:last-child\n {\n border-bottom: none;\n }\n\n .mdhui-fitbit-devices .fitbit-device .device-icon\n {\n position: absolute;\n left: 16px;\n top: calc(50% - 8px);\n color: var(--color-muted2);\n font-size: 16px;\n }\n\n .mdhui-fitbit-devices .fitbit-device .device-title\n {\n font-weight: bold;\n font-size: .88em;\n }\n\n .mdhui-fitbit-devices .fitbit-device .device-sync\n {\n font-size: .88em;\n color: var(--color-muted);\n }\n\n\n .mdhui-fitbit-devices .fitbit-device .battery-icon\n {\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 {\n color: var(--color-danger);\n }\n\n .mdhui-fitbit-devices .fitbit-device .battery-icon.battery-medium\n {\n color: var(--color-warning);\n }\n\n .mdhui-fitbit-devices .fitbit-device .battery-icon.battery-high\n {\n color: var(--color-success);\n }\n");var Ss={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-empty",r=["battery-0"],n="f244",o="M80 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-80H80zM64 176c0-8.8 7.2-16 16-16H464c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176z";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}(Ss);var Ts={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-full",r=[128267,"battery","battery-5"],n="f240",o="M0 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-80V176zm80-16c-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-16H80zm368 32V320H96V192H448z";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}(Ts);var Ps={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-half",r=["battery-3"],n="f242",o="M0 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-80V176zm80-16c-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-16H80zm208 32V320H96V192H288z";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}(Ps);var Cs={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-quarter",r=["battery-2"],n="f243",o="M0 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-80V176zm80-16c-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-16H80zm112 32V320H96V192h96z";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}(Cs);var zs={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="weight-scale",r=["weight"],n="f496",o="M384 176c0 70.7-57.3 128-128 128s-128-57.3-128-128s57.3-128 128-128s128 57.3 128 128zm7.8-112C359.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}(zs);var _s,Ds={},Ls={get exports(){return Ds},set exports(e){Ds=e}},As={},Ns={get exports(){return As},set exports(e){As=e}},Ms={};var Is,Bs,Rs,Fs,qs,Hs,Ws,Vs,Us,Gs,Ys,Zs,$s,Xs,Qs={};
|
|
1
|
+
import e,{forwardRef as t,createElement as r,Fragment as n,useRef as o,useLayoutEffect as i,useState as a,useEffect as l,useMemo as c}from"react";import s from"@careevolution/mydatahelps-js";import u from"punycode";var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d={};function h(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="M342.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.3L274.7 256 105.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:[384,512,r,n,o]},e.faChevronRight=e.definition,e.prefix="fas",e.iconName=t,e.width=384,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(d);h(".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: #555;\n }\n\n .mdhui-action .indicator\n {\n position: absolute;\n top: calc(50% - 9px);\n right: 16px;\n font-size: 16px;\n color: #999;\n }\n");var y=["icon","size","className","title","border","fixedWidth","flip","spin","pulse","inverse","listItem","pull","swapOpacity","rotation","role","symbol"],m={style:{display:"none"}},g=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,y);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",m,r("symbol",u,p))):r("svg",u,p)}));g.displayName="FontAwesomeSvgIcon";function v(t){var r,n=null!==(r=t.indicatorIcon)&&void 0!==r?r:d.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(g,{icon:n})))}h(":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-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 transition-delay: 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 b(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(fc,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))}h(".mdhui-activity-meter\n{\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 {\n position: absolute;\n line-height: 32px;\n text-align: center;\n left: 16px;\n top: calc(50% - 8px);\n color: var(--color-primary);\n font-size: 1em;\n }\n\n .mdhui-activity-meter .mdhui-activity-meter-value\n {\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 {\n font-size: .7em;\n color: #555;\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 {\n border-radius: 8px;\n background: #f5f5f5;\n position: relative;\n height: 16px;\n }\n\n .mdhui-activity-meter .mdhui-activity-meter-meter .mdhui-activity-meter-average-marker\n {\n position: absolute;\n top: -4px;\n bottom: -4px;\n border-left: dashed 1px #bbb;\n }\n\n .mdhui-activity-meter .mdhui-activity-meter-meter .mdhui-activity-meter-fill\n {\n height: 16px;\n background: var(--color-primary);\n position: relative;\n border-radius: 8px;\n }\n\n .mdhui-activity-meter .mdhui-activity-meter-message\n {\n font-size: .7em;\n margin-top: 4px;\n }\n");function w(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 O(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 x(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 k(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)?j(c,(function(e){return e.test(l)})):E(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 E(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function j(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function S(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 T(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 P(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function C(e){return C="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},C(e)}function z(e){P(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===C(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 _(e,t){P(2,arguments);var r=z(e),n=T(t);return isNaN(n)?new Date(NaN):n?(r.setDate(r.getDate()+n),r):r}function D(e,t){P(2,arguments);var r=z(e),n=T(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 L(e){return L="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},L(e)}function A(e,t){if(P(2,arguments),!t||"object"!==L(t))return new Date(NaN);var r=t.years?T(t.years):0,n=t.months?T(t.months):0,o=t.weeks?T(t.weeks):0,i=t.days?T(t.days):0,a=t.hours?T(t.hours):0,l=t.minutes?T(t.minutes):0,c=t.seconds?T(t.seconds):0,s=z(e),u=n||r?D(s,n+12*r):s,f=i||o?_(u,i+7*o):u,p=l+60*a,d=c+60*p,h=1e3*d,y=new Date(f.getTime()+h);return y}function N(e,t){P(2,arguments);var r=z(e).getTime(),n=T(t);return new Date(r+n)}h(".mdhui-button\n{\n width: 100%;\n box-sizing: border-box;\n padding: 16px;\n background: var(--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 color: #FFF;\n}\n\n .mdhui-button:disabled\n {\n color: #999;\n background: #ddd;\n }\n");var M={};function I(){return M}function B(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 R(e){P(1,arguments);var t=z(e);return t.setHours(0,0,0,0),t}function F(e,t){P(2,arguments);var r=R(e),n=R(t),o=r.getTime()-B(r),i=n.getTime()-B(n);return Math.round((o-i)/864e5)}function q(e,t){P(2,arguments);var r=z(e),n=z(t),o=r.getTime()-n.getTime();return o<0?-1:o>0?1:o}function H(e){return H="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},H(e)}function W(e){return P(1,arguments),e instanceof Date||"object"===H(e)&&"[object Date]"===Object.prototype.toString.call(e)}function V(e){if(P(1,arguments),!W(e)&&"number"!=typeof e)return!1;var t=z(e);return!isNaN(Number(t))}function U(e,t){P(2,arguments);var r=z(e),n=z(t),o=r.getFullYear()-n.getFullYear(),i=r.getMonth()-n.getMonth();return 12*o+i}function G(e,t){return P(2,arguments),z(e).getTime()-z(t).getTime()}var Y={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function Z(e){return e?Y[e]:Y.trunc}function $(e){P(1,arguments);var t=z(e);return t.setHours(23,59,59,999),t}function X(e){P(1,arguments);var t=z(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Q(e){P(1,arguments);var t=z(e);return $(t).getTime()===X(t).getTime()}function J(e,t){P(2,arguments);var r,n=z(e),o=z(t),i=q(n,o),a=Math.abs(U(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=q(n,o)===-i;Q(z(e))&&1===a&&1===q(e,o)&&(l=!1),r=i*(a-Number(l))}return 0===r?0:r}function K(e,t,r){P(2,arguments);var n=G(e,t)/1e3;return Z(null==r?void 0:r.roundingMethod)(n)}function ee(e,t){P(2,arguments);var r=T(t);return N(e,-r)}function te(e){P(1,arguments);var t=1,r=z(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 re(e){P(1,arguments);var t=z(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var o=te(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var a=te(i);return t.getTime()>=o.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function ne(e){P(1,arguments);var t=re(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=te(r);return n}function oe(e){P(1,arguments);var t=z(e),r=te(t).getTime()-ne(t).getTime();return Math.round(r/6048e5)+1}function ie(e,t){var r,n,o,i,a,l,c,s;P(1,arguments);var u=I(),f=T(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=z(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 ae(e,t){var r,n,o,i,a,l,c,s;P(1,arguments);var u=z(e),f=u.getUTCFullYear(),p=I(),d=T(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 y=ie(h,t),m=new Date(0);m.setUTCFullYear(f,0,d),m.setUTCHours(0,0,0,0);var g=ie(m,t);return u.getTime()>=y.getTime()?f+1:u.getTime()>=g.getTime()?f:f-1}function le(e,t){var r,n,o,i,a,l,c,s;P(1,arguments);var u=I(),f=T(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=ae(e,t),d=new Date(0);d.setUTCFullYear(p,0,f),d.setUTCHours(0,0,0,0);var h=ie(d,t);return h}function ce(e,t){P(1,arguments);var r=z(e),n=ie(r,t).getTime()-le(r,t).getTime();return Math.round(n/6048e5)+1}function se(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var ue=function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return se("yy"===t?n%100:n,t.length)},fe=function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):se(r+1,2)},pe=function(e,t){return se(e.getUTCDate(),t.length)},de=function(e,t){return se(e.getUTCHours()%12||12,t.length)},he=function(e,t){return se(e.getUTCHours(),t.length)},ye=function(e,t){return se(e.getUTCMinutes(),t.length)},me=function(e,t){return se(e.getUTCSeconds(),t.length)},ge=function(e,t){var r=t.length,n=e.getUTCMilliseconds();return se(Math.floor(n*Math.pow(10,r-3)),t.length)},ve="midnight",be="noon",we="morning",Oe="afternoon",xe="evening",ke="night",Ee={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 ue(e,t)},Y:function(e,t,r,n){var o=ae(e,n),i=o>0?o:1-o;return"YY"===t?se(i%100,2):"Yo"===t?r.ordinalNumber(i,{unit:"year"}):se(i,t.length)},R:function(e,t){return se(re(e),t.length)},u:function(e,t){return se(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 se(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 se(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 fe(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 se(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=ce(e,n);return"wo"===t?r.ordinalNumber(o,{unit:"week"}):se(o,t.length)},I:function(e,t,r){var n=oe(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):se(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):pe(e,t)},D:function(e,t,r){var n=function(e){P(1,arguments);var t=z(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"}):se(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 se(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 se(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 se(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?be:0===o?ve: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?xe:o>=12?Oe:o>=4?we:ke,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 de(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):he(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):se(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):se(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ye(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):me(e,t)},S:function(e,t){return ge(e,t)},X:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return Se(o);case"XXXX":case"XX":return Te(o);default:return Te(o,":")}},x:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return Se(o);case"xxxx":case"xx":return Te(o);default:return Te(o,":")}},O:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+je(o,":");default:return"GMT"+Te(o,":")}},z:function(e,t,r,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+je(o,":");default:return"GMT"+Te(o,":")}},t:function(e,t,r,n){var o=n._originalDate||e;return se(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,r,n){return se((n._originalDate||e).getTime(),t.length)}};function je(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+se(i,2)}function Se(e,t){return e%60==0?(e>0?"-":"+")+se(Math.abs(e)/60,2):Te(e,t)}function Te(e,t){var r=t||"",n=e>0?"-":"+",o=Math.abs(e);return n+se(Math.floor(o/60),2)+r+se(o%60,2)}var Pe=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"})}},Ce=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"})}},ze={p:Ce,P:function(e,t){var r,n=e.match(/(P+)(p+)?/)||[],o=n[1],i=n[2];if(!i)return Pe(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}}",Pe(o,t)).replace("{{time}}",Ce(i,t))}},_e=["D","DD"],De=["YY","YYYY"];function Le(e){return-1!==_e.indexOf(e)}function Ae(e){return-1!==De.indexOf(e)}function Ne(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 Me={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"}},Ie={date:O({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:O({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:O({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Be={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Re={code:"en-US",formatDistance:function(e,t,r){var n,o=Me[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:Ie,formatRelative:function(e,t,r,n){return Be[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:x({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:x({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:x({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:x({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:x({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:S({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:k({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:k({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:k({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:k({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:k({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}},Fe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,He=/^'([^]*?)'?$/,We=/''/g,Ve=/[a-zA-Z]/;function Ue(e,t,r){var n,o,i,a,l,c,s,u,f,p,d,h,y,m,g,v,b,w;P(2,arguments);var O=String(t),x=I(),k=null!==(n=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:x.locale)&&void 0!==n?n:Re,E=T(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=T(null!==(d=null!==(h=null!==(y=null!==(m=null==r?void 0:r.weekStartsOn)&&void 0!==m?m:null==r||null===(g=r.locale)||void 0===g||null===(v=g.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==y?y: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=z(e);if(!V(S))throw new RangeError("Invalid time value");var C=B(S),_=ee(S,C),D={firstWeekContainsDate:E,weekStartsOn:j,locale:k,_originalDate:S},L=O.match(qe).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,ze[t])(e,k.formatLong):e})).join("").match(Fe).map((function(n){if("''"===n)return"'";var o=n[0];if("'"===o)return Ge(n);var i=Ee[o];if(i)return null!=r&&r.useAdditionalWeekYearTokens||!Ae(n)||Ne(n,t,String(e)),null!=r&&r.useAdditionalDayOfYearTokens||!Le(n)||Ne(n,t,String(e)),i(_,n,k.localize,D);if(o.match(Ve))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return n})).join("");return L}function Ge(e){var t=e.match(He);return t?t[1].replace(We,"'"):e}function Ye(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 Ze(e){return Ye({},e)}function $e(e,t,r){var n,o;P(2,arguments);var i=I(),a=null!==(n=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:i.locale)&&void 0!==n?n:Re;if(!a.formatDistance)throw new RangeError("locale must contain formatDistance property");var l=q(e,t);if(isNaN(l))throw new RangeError("Invalid time value");var c,s,u=Ye(Ze(r),{addSuffix:Boolean(null==r?void 0:r.addSuffix),comparison:l});l>0?(c=z(t),s=z(e)):(c=z(e),s=z(t));var f,p=K(s,c),d=(B(s)-B(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 y=Math.round(h/60);return a.formatDistance("aboutXHours",y,u)}if(h<2520)return a.formatDistance("xDays",1,u);if(h<43200){var m=Math.round(h/1440);return a.formatDistance("xDays",m,u)}if(h<86400)return f=Math.round(h/43200),a.formatDistance("aboutXMonths",f,u);if((f=J(s,c))<12){var g=Math.round(h/43200);return a.formatDistance("xMonths",g,u)}var v=f%12,b=Math.floor(f/12);return v<3?a.formatDistance("aboutXYears",b,u):v<9?a.formatDistance("overXYears",b,u):a.formatDistance("almostXYears",b+1,u)}function Xe(e,t){var r,n;P(1,arguments);var o=z(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=se(o.getDate(),2),p=se(o.getMonth()+1,2),d=se(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 y=Math.abs(h),m=se(Math.floor(y/60),2),g=se(y%60,2),v=h<0?"+":"-";c="".concat(v).concat(m,":").concat(g)}else c="Z";var b=se(o.getHours(),2),w=se(o.getMinutes(),2),O=se(o.getSeconds(),2),x=""===l?"":"T",k=[b,w,O].join(u);l="".concat(l).concat(x).concat(k).concat(c)}return l}function Qe(e,t,r){var n,o,i,a,l,c,s,u,f,p;P(2,arguments);var d=z(e),h=z(t),y=I(),m=null!==(n=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:y.locale)&&void 0!==n?n:Re,g=T(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:y.weekStartsOn)&&void 0!==a?a:null===(f=y.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==i?i:0);if(!m.localize)throw new RangeError("locale must contain localize property");if(!m.formatLong)throw new RangeError("locale must contain formatLong property");if(!m.formatRelative)throw new RangeError("locale must contain formatRelative property");var v,b=F(d,h);if(isNaN(b))throw new RangeError("Invalid time value");v=b<-6?"other":b<-1?"lastWeek":b<0?"yesterday":b<1?"today":b<2?"tomorrow":b<7?"nextWeek":"other";var w=ee(d,B(d)),O=ee(h,B(h)),x=m.formatRelative(v,w,O,{locale:m,weekStartsOn:g});return Ue(d,x,{locale:m,weekStartsOn:g})}function Je(e,t){P(2,arguments);var r=z(e),n=z(t);return r.getTime()>n.getTime()}function Ke(e){return Ke="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},Ke(e)}function et(e,t){return et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},et(e,t)}function tt(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=nt(e);if(t){var o=nt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return rt(this,r)}}function rt(e,t){return!t||"object"!==Ke(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 nt(e){return nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nt(e)}function ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function it(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 at(e,t,r){return t&&it(e.prototype,t),r&&it(e,r),e}var lt=function(){function e(){var t,r,n;ot(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 at(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),ct=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&&et(e,t)}(r,lt);var t=tt(r);function r(e,n,o,i,a){var l;return ot(this,r),(l=t.call(this)).value=e,l.validateValue=n,l.setValue=o,l.priority=i,a&&(l.subPriority=a),l}return at(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 st(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 ut=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 ct(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,r){return!0}}],r&&st(t.prototype,r),n&&st(t,n),e}();function ft(e){return ft="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},ft(e)}function pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dt(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 ht(e,t){return ht=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ht(e,t)}function yt(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=vt(e);if(t){var o=vt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return mt(this,r)}}function mt(e,t){return!t||"object"!==ft(t)&&"function"!=typeof t?gt(e):t}function gt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vt(e){return vt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vt(e)}function bt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wt=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&&ht(e,t)}(i,ut);var t,r,n,o=yt(i);function i(){var e;pt(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return bt(gt(e=o.call.apply(o,[this].concat(r))),"priority",140),bt(gt(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&&dt(t.prototype,r),n&&dt(t,n),i}(),Ot=/^(1[0-2]|0?\d)/,xt=/^(3[0-1]|[0-2]?\d)/,kt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Et=/^(5[0-3]|[0-4]?\d)/,jt=/^(2[0-3]|[0-1]?\d)/,St=/^(2[0-4]|[0-1]?\d)/,Tt=/^(1[0-1]|0?\d)/,Pt=/^(1[0-2]|0?\d)/,Ct=/^[0-5]?\d/,zt=/^[0-5]?\d/,_t=/^\d/,Dt=/^\d{1,2}/,Lt=/^\d{1,3}/,At=/^\d{1,4}/,Nt=/^-?\d+/,Mt=/^-?\d/,It=/^-?\d{1,2}/,Bt=/^-?\d{1,3}/,Rt=/^-?\d{1,4}/,Ft=/^([+-])(\d{2})(\d{2})?|Z/,qt=/^([+-])(\d{2})(\d{2})|Z/,Ht=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Wt=/^([+-])(\d{2}):(\d{2})|Z/,Vt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Ut(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Gt(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Yt(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 Zt(e){return Gt(Nt,e)}function $t(e,t){switch(e){case 1:return Gt(_t,t);case 2:return Gt(Dt,t);case 3:return Gt(Lt,t);case 4:return Gt(At,t);default:return Gt(new RegExp("^\\d{1,"+e+"}"),t)}}function Xt(e,t){switch(e){case 1:return Gt(Mt,t);case 2:return Gt(It,t);case 3:return Gt(Bt,t);case 4:return Gt(Rt,t);default:return Gt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Qt(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Jt(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 Kt(e){return e%400==0||e%4==0&&e%100!=0}function er(e){return er="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},er(e)}function tr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rr(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 or(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=lr(e);if(t){var o=lr(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"!==er(t)&&"function"!=typeof t?ar(e):t}function ar(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lr(e){return lr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lr(e)}function cr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var sr=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,ut);var t,r,n,o=or(i);function i(){var e;tr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return cr(ar(e=o.call.apply(o,[this].concat(r))),"priority",130),cr(ar(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 Ut($t(4,e),n);case"yo":return Ut(r.ordinalNumber(e,{unit:"year"}),n);default:return Ut($t(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=Jt(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&&rr(t.prototype,r),n&&rr(t,n),i}();function ur(e){return ur="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},ur(e)}function fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pr(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 dr(e,t){return dr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dr(e,t)}function hr(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=gr(e);if(t){var o=gr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return yr(this,r)}}function yr(e,t){return!t||"object"!==ur(t)&&"function"!=typeof t?mr(e):t}function mr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gr(e){return gr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gr(e)}function vr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var br=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&&dr(e,t)}(i,ut);var t,r,n,o=hr(i);function i(){var e;fr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return vr(mr(e=o.call.apply(o,[this].concat(r))),"priority",130),vr(mr(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 Ut($t(4,e),n);case"Yo":return Ut(r.ordinalNumber(e,{unit:"year"}),n);default:return Ut($t(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=ae(e,n);if(r.isTwoDigitYear){var i=Jt(r.year,o);return e.setUTCFullYear(i,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),ie(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),ie(e,n)}}],r&&pr(t.prototype,r),n&&pr(t,n),i}();function wr(e){return wr="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},wr(e)}function Or(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xr(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 kr(e,t){return kr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kr(e,t)}function Er(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=Tr(e);if(t){var o=Tr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return jr(this,r)}}function jr(e,t){return!t||"object"!==wr(t)&&"function"!=typeof t?Sr(e):t}function Sr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tr(e){return Tr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Tr(e)}function Pr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Cr=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&&kr(e,t)}(i,ut);var t,r,n,o=Er(i);function i(){var e;Or(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Pr(Sr(e=o.call.apply(o,[this].concat(r))),"priority",130),Pr(Sr(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 Xt("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),te(n)}}],r&&xr(t.prototype,r),n&&xr(t,n),i}();function zr(e){return zr="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},zr(e)}function _r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dr(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 Lr(e,t){return Lr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Lr(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=Ir(e);if(t){var o=Ir(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Nr(this,r)}}function Nr(e,t){return!t||"object"!==zr(t)&&"function"!=typeof t?Mr(e):t}function Mr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ir(e){return Ir=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ir(e)}function Br(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Rr=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&&Lr(e,t)}(i,ut);var t,r,n,o=Ar(i);function i(){var e;_r(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Br(Mr(e=o.call.apply(o,[this].concat(r))),"priority",130),Br(Mr(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 Xt("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&&Dr(t.prototype,r),n&&Dr(t,n),i}();function Fr(e){return Fr="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},Fr(e)}function qr(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 Wr(e,t){return Wr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Wr(e,t)}function Vr(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=Yr(e);if(t){var o=Yr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ur(this,r)}}function Ur(e,t){return!t||"object"!==Fr(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 Yr(e){return Yr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yr(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&&Wr(e,t)}(i,ut);var t,r,n,o=Vr(i);function i(){var e;qr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Zr(Gr(e=o.call.apply(o,[this].concat(r))),"priority",120),Zr(Gr(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 $t(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&&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 Qr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jr(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 Kr(e,t){return Kr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Kr(e,t)}function en(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=nn(e);if(t){var o=nn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return tn(this,r)}}function tn(e,t){return!t||"object"!==Xr(t)&&"function"!=typeof t?rn(e):t}function rn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nn(e){return nn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nn(e)}function on(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var an=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&&Kr(e,t)}(i,ut);var t,r,n,o=en(i);function i(){var e;Qr(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return on(rn(e=o.call.apply(o,[this].concat(r))),"priority",120),on(rn(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 $t(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&&Jr(t.prototype,r),n&&Jr(t,n),i}();function ln(e){return ln="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},ln(e)}function cn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sn(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 un(e,t){return un=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},un(e,t)}function fn(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=hn(e);if(t){var o=hn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return pn(this,r)}}function pn(e,t){return!t||"object"!==ln(t)&&"function"!=typeof t?dn(e):t}function dn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hn(e){return hn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hn(e)}function yn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var mn=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&&un(e,t)}(i,ut);var t,r,n,o=fn(i);function i(){var e;cn(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return yn(dn(e=o.call.apply(o,[this].concat(r))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),yn(dn(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 Ut(Gt(Ot,e),n);case"MM":return Ut($t(2,e),n);case"Mo":return Ut(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&&sn(t.prototype,r),n&&sn(t,n),i}();function gn(e){return gn="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},gn(e)}function vn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bn(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 wn(e,t){return wn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wn(e,t)}function On(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=En(e);if(t){var o=En(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return xn(this,r)}}function xn(e,t){return!t||"object"!==gn(t)&&"function"!=typeof t?kn(e):t}function kn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function En(e){return En=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},En(e)}function jn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Sn=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&&wn(e,t)}(i,ut);var t,r,n,o=On(i);function i(){var e;vn(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return jn(kn(e=o.call.apply(o,[this].concat(r))),"priority",110),jn(kn(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 Ut(Gt(Ot,e),n);case"LL":return Ut($t(2,e),n);case"Lo":return Ut(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&&bn(t.prototype,r),n&&bn(t,n),i}();function Tn(e){return Tn="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},Tn(e)}function Pn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cn(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 zn(e,t){return zn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zn(e,t)}function _n(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 Dn(this,r)}}function Dn(e,t){return!t||"object"!==Tn(t)&&"function"!=typeof t?Ln(e):t}function Ln(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 Nn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Mn=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&&zn(e,t)}(i,ut);var t,r,n,o=_n(i);function i(){var e;Pn(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Nn(Ln(e=o.call.apply(o,[this].concat(r))),"priority",100),Nn(Ln(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 Gt(Et,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return $t(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,r,n){return ie(function(e,t,r){P(2,arguments);var n=z(e),o=T(t),i=ce(n,r)-o;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,r,n),n)}}],r&&Cn(t.prototype,r),n&&Cn(t,n),i}();function In(e){return In="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},In(e)}function Bn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rn(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 Fn(e,t){return Fn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fn(e,t)}function qn(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=Vn(e);if(t){var o=Vn(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"!==In(t)&&"function"!=typeof t?Wn(e):t}function Wn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vn(e){return Vn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Vn(e)}function Un(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&&Fn(e,t)}(i,ut);var t,r,n,o=qn(i);function i(){var e;Bn(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Un(Wn(e=o.call.apply(o,[this].concat(r))),"priority",100),Un(Wn(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 Gt(Et,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return $t(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,r){return te(function(e,t){P(2,arguments);var r=z(e),n=T(t),o=oe(r)-n;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,r))}}],r&&Rn(t.prototype,r),n&&Rn(t,n),i}();function Yn(e){return Yn="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},Yn(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 Xn(e,t){return Xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Xn(e,t)}function Qn(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=eo(e);if(t){var o=eo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Jn(this,r)}}function Jn(e,t){return!t||"object"!==Yn(t)&&"function"!=typeof t?Kn(e):t}function Kn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eo(e){return eo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},eo(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 ro=[31,28,31,30,31,30,31,31,30,31,30,31],no=[31,29,31,30,31,30,31,31,30,31,30,31],oo=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,ut);var t,r,n,o=Qn(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 to(Kn(e=o.call.apply(o,[this].concat(r))),"priority",90),to(Kn(e),"subPriority",1),to(Kn(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 Gt(xt,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return $t(t.length,e)}}},{key:"validate",value:function(e,t){var r=Kt(e.getUTCFullYear()),n=e.getUTCMonth();return r?t>=1&&t<=no[n]:t>=1&&t<=ro[n]}},{key:"set",value:function(e,t,r){return e.setUTCDate(r),e.setUTCHours(0,0,0,0),e}}],r&&$n(t.prototype,r),n&&$n(t,n),i}();function io(e){return io="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},io(e)}function ao(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lo(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 co(e,t){return co=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},co(e,t)}function so(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=po(e);if(t){var o=po(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return uo(this,r)}}function uo(e,t){return!t||"object"!==io(t)&&"function"!=typeof t?fo(e):t}function fo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function po(e){return po=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},po(e)}function ho(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&&co(e,t)}(i,ut);var t,r,n,o=so(i);function i(){var e;ao(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ho(fo(e=o.call.apply(o,[this].concat(r))),"priority",90),ho(fo(e),"subpriority",1),ho(fo(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 Gt(kt,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return $t(t.length,e)}}},{key:"validate",value:function(e,t){return Kt(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&&lo(t.prototype,r),n&&lo(t,n),i}();function mo(e,t,r){var n,o,i,a,l,c,s,u;P(2,arguments);var f=I(),p=T(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=z(e),h=T(t),y=d.getUTCDay(),m=h%7,g=(m+7)%7,v=(g<p?7:0)+h-y;return d.setUTCDate(d.getUTCDate()+v),d}function go(e){return go="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},go(e)}function vo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bo(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 wo(e,t){return wo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wo(e,t)}function Oo(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=Eo(e);if(t){var o=Eo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return xo(this,r)}}function xo(e,t){return!t||"object"!==go(t)&&"function"!=typeof t?ko(e):t}function ko(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Eo(e){return Eo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Eo(e)}function jo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var So=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&&wo(e,t)}(i,ut);var t,r,n,o=Oo(i);function i(){var e;vo(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return jo(ko(e=o.call.apply(o,[this].concat(r))),"priority",90),jo(ko(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=mo(e,r,n)).setUTCHours(0,0,0,0),e}}],r&&bo(t.prototype,r),n&&bo(t,n),i}();function To(e){return To="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},To(e)}function Po(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Co(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 zo(e,t){return zo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zo(e,t)}function _o(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=Ao(e);if(t){var o=Ao(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Do(this,r)}}function Do(e,t){return!t||"object"!==To(t)&&"function"!=typeof t?Lo(e):t}function Lo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ao(e){return Ao=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ao(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 Mo=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&&zo(e,t)}(i,ut);var t,r,n,o=_o(i);function i(){var e;Po(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return No(Lo(e=o.call.apply(o,[this].concat(r))),"priority",90),No(Lo(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 Ut($t(t.length,e),o);case"eo":return Ut(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=mo(e,r,n)).setUTCHours(0,0,0,0),e}}],r&&Co(t.prototype,r),n&&Co(t,n),i}();function Io(e){return Io="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},Io(e)}function Bo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ro(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 Fo(e,t){return Fo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fo(e,t)}function qo(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=Vo(e);if(t){var o=Vo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ho(this,r)}}function Ho(e,t){return!t||"object"!==Io(t)&&"function"!=typeof t?Wo(e):t}function Wo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vo(e){return Vo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Vo(e)}function Uo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Go=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&&Fo(e,t)}(i,ut);var t,r,n,o=qo(i);function i(){var e;Bo(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Uo(Wo(e=o.call.apply(o,[this].concat(r))),"priority",90),Uo(Wo(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 Ut($t(t.length,e),o);case"co":return Ut(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=mo(e,r,n)).setUTCHours(0,0,0,0),e}}],r&&Ro(t.prototype,r),n&&Ro(t,n),i}();function Yo(e){return Yo="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},Yo(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 Xo(e,t){return Xo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Xo(e,t)}function Qo(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=ei(e);if(t){var o=ei(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Jo(this,r)}}function Jo(e,t){return!t||"object"!==Yo(t)&&"function"!=typeof t?Ko(e):t}function Ko(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ei(e){return ei=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ei(e)}function ti(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ri=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,ut);var t,r,n,o=Qo(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 ti(Ko(e=o.call.apply(o,[this].concat(r))),"priority",90),ti(Ko(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 $t(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return Ut(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 Ut(r.day(e,{width:"narrow",context:"formatting"}),n);case"iiiiii":return Ut(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n);default:return Ut(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){P(2,arguments);var r=T(t);r%7==0&&(r-=7);var n=1,o=z(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&&$o(t.prototype,r),n&&$o(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 oi(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 ai(e,t){return ai=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ai(e,t)}function li(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=ui(e);if(t){var o=ui(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ci(this,r)}}function ci(e,t){return!t||"object"!==ni(t)&&"function"!=typeof t?si(e):t}function si(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ui(e){return ui=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ui(e)}function fi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pi=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&&ai(e,t)}(i,ut);var t,r,n,o=li(i);function i(){var e;oi(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return fi(si(e=o.call.apply(o,[this].concat(r))),"priority",80),fi(si(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(Qt(r),0,0,0),e}}],r&&ii(t.prototype,r),n&&ii(t,n),i}();function di(e){return di="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},di(e)}function hi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yi(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 mi(e,t){return mi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mi(e,t)}function gi(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=wi(e);if(t){var o=wi(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return vi(this,r)}}function vi(e,t){return!t||"object"!==di(t)&&"function"!=typeof t?bi(e):t}function bi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wi(e){return wi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wi(e)}function Oi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xi=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&&mi(e,t)}(i,ut);var t,r,n,o=gi(i);function i(){var e;hi(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Oi(bi(e=o.call.apply(o,[this].concat(r))),"priority",80),Oi(bi(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(Qt(r),0,0,0),e}}],r&&yi(t.prototype,r),n&&yi(t,n),i}();function ki(e){return ki="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},ki(e)}function Ei(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ji(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 Si(e,t){return Si=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Si(e,t)}function Ti(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=zi(e);if(t){var o=zi(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Pi(this,r)}}function Pi(e,t){return!t||"object"!==ki(t)&&"function"!=typeof t?Ci(e):t}function Ci(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zi(e){return zi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zi(e)}function _i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Di=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&&Si(e,t)}(i,ut);var t,r,n,o=Ti(i);function i(){var e;Ei(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _i(Ci(e=o.call.apply(o,[this].concat(r))),"priority",80),_i(Ci(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(Qt(r),0,0,0),e}}],r&&ji(t.prototype,r),n&&ji(t,n),i}();function Li(e){return Li="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},Li(e)}function Ai(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ni(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 Mi(e,t){return Mi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Mi(e,t)}function Ii(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=Fi(e);if(t){var o=Fi(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Bi(this,r)}}function Bi(e,t){return!t||"object"!==Li(t)&&"function"!=typeof t?Ri(e):t}function Ri(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fi(e){return Fi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fi(e)}function qi(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&&Mi(e,t)}(i,ut);var t,r,n,o=Ii(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 qi(Ri(e=o.call.apply(o,[this].concat(r))),"priority",70),qi(Ri(e),"incompatibleTokens",["H","K","k","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"h":return Gt(Pt,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return $t(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&&Ni(t.prototype,r),n&&Ni(t,n),i}();function Wi(e){return Wi="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},Wi(e)}function Vi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ui(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 Yi(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 Zi(this,r)}}function Zi(e,t){return!t||"object"!==Wi(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 Xi(e){return Xi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xi(e)}function Qi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ji=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,ut);var t,r,n,o=Yi(i);function i(){var e;Vi(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Qi($i(e=o.call.apply(o,[this].concat(r))),"priority",70),Qi($i(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 Gt(jt,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return $t(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&&Ui(t.prototype,r),n&&Ui(t,n),i}();function Ki(e){return Ki="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},Ki(e)}function ea(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ta(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 ra(e,t){return ra=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ra(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=aa(e);if(t){var o=aa(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return oa(this,r)}}function oa(e,t){return!t||"object"!==Ki(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 aa(e){return aa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},aa(e)}function la(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ca=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&&ra(e,t)}(i,ut);var t,r,n,o=na(i);function i(){var e;ea(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return la(ia(e=o.call.apply(o,[this].concat(r))),"priority",70),la(ia(e),"incompatibleTokens",["h","H","k","t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"K":return Gt(Tt,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return $t(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&&ta(t.prototype,r),n&&ta(t,n),i}();function sa(e){return sa="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},sa(e)}function ua(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fa(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 pa(e,t){return pa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},pa(e,t)}function da(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=ma(e);if(t){var o=ma(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ha(this,r)}}function ha(e,t){return!t||"object"!==sa(t)&&"function"!=typeof t?ya(e):t}function ya(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ma(e){return ma=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ma(e)}function ga(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var va=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&&pa(e,t)}(i,ut);var t,r,n,o=da(i);function i(){var e;ua(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ga(ya(e=o.call.apply(o,[this].concat(r))),"priority",70),ga(ya(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 Gt(St,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return $t(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&&fa(t.prototype,r),n&&fa(t,n),i}();function ba(e){return ba="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},ba(e)}function wa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oa(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 xa(e,t){return xa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},xa(e,t)}function ka(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=Sa(e);if(t){var o=Sa(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ea(this,r)}}function Ea(e,t){return!t||"object"!==ba(t)&&"function"!=typeof t?ja(e):t}function ja(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sa(e){return Sa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sa(e)}function Ta(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Pa=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&&xa(e,t)}(i,ut);var t,r,n,o=ka(i);function i(){var e;wa(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ta(ja(e=o.call.apply(o,[this].concat(r))),"priority",60),Ta(ja(e),"incompatibleTokens",["t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"m":return Gt(Ct,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return $t(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&&Oa(t.prototype,r),n&&Oa(t,n),i}();function Ca(e){return Ca="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},Ca(e)}function za(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _a(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 Da(e,t){return Da=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Da(e,t)}function La(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=Ma(e);if(t){var o=Ma(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"!==Ca(t)&&"function"!=typeof t?Na(e):t}function Na(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ma(e)}function Ia(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ba=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&&Da(e,t)}(i,ut);var t,r,n,o=La(i);function i(){var e;za(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ia(Na(e=o.call.apply(o,[this].concat(r))),"priority",50),Ia(Na(e),"incompatibleTokens",["t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t,r){switch(t){case"s":return Gt(zt,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return $t(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&&_a(t.prototype,r),n&&_a(t,n),i}();function Ra(e){return Ra="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},Ra(e)}function Fa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qa(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 Wa(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 Va(this,r)}}function Va(e,t){return!t||"object"!==Ra(t)&&"function"!=typeof t?Ua(e):t}function Ua(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 Ya(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&&Ha(e,t)}(i,ut);var t,r,n,o=Wa(i);function i(){var e;Fa(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ya(Ua(e=o.call.apply(o,[this].concat(r))),"priority",30),Ya(Ua(e),"incompatibleTokens",["t","T"]),e}return t=i,r=[{key:"parse",value:function(e,t){return Ut($t(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&&qa(t.prototype,r),n&&qa(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 Xa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qa(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 Ja(e,t){return Ja=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ja(e,t)}function Ka(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=rl(e);if(t){var o=rl(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return el(this,r)}}function el(e,t){return!t||"object"!==$a(t)&&"function"!=typeof t?tl(e):t}function tl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rl(e){return rl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rl(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 ol=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&&Ja(e,t)}(i,ut);var t,r,n,o=Ka(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 nl(tl(e=o.call.apply(o,[this].concat(r))),"priority",10),nl(tl(e),"incompatibleTokens",["t","T","x"]),e}return t=i,r=[{key:"parse",value:function(e,t){switch(t){case"X":return Yt(Ft,e);case"XX":return Yt(qt,e);case"XXXX":return Yt(Ht,e);case"XXXXX":return Yt(Vt,e);default:return Yt(Wt,e)}}},{key:"set",value:function(e,t,r){return t.timestampIsSet?e:new Date(e.getTime()-r)}}],r&&Qa(t.prototype,r),n&&Qa(t,n),i}();function il(e){return il="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},il(e)}function al(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ll(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 cl(e,t){return cl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},cl(e,t)}function sl(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=pl(e);if(t){var o=pl(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ul(this,r)}}function ul(e,t){return!t||"object"!==il(t)&&"function"!=typeof t?fl(e):t}function fl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pl(e){return pl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pl(e)}function dl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var hl=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&&cl(e,t)}(i,ut);var t,r,n,o=sl(i);function i(){var e;al(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return dl(fl(e=o.call.apply(o,[this].concat(r))),"priority",10),dl(fl(e),"incompatibleTokens",["t","T","X"]),e}return t=i,r=[{key:"parse",value:function(e,t){switch(t){case"x":return Yt(Ft,e);case"xx":return Yt(qt,e);case"xxxx":return Yt(Ht,e);case"xxxxx":return Yt(Vt,e);default:return Yt(Wt,e)}}},{key:"set",value:function(e,t,r){return t.timestampIsSet?e:new Date(e.getTime()-r)}}],r&&ll(t.prototype,r),n&&ll(t,n),i}();function yl(e){return yl="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},yl(e)}function ml(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gl(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 vl(e,t){return vl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vl(e,t)}function bl(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=xl(e);if(t){var o=xl(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return wl(this,r)}}function wl(e,t){return!t||"object"!==yl(t)&&"function"!=typeof t?Ol(e):t}function Ol(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xl(e){return xl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xl(e)}function kl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var El=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&&vl(e,t)}(i,ut);var t,r,n,o=bl(i);function i(){var e;ml(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return kl(Ol(e=o.call.apply(o,[this].concat(r))),"priority",40),kl(Ol(e),"incompatibleTokens","*"),e}return t=i,(r=[{key:"parse",value:function(e){return Zt(e)}},{key:"set",value:function(e,t,r){return[new Date(1e3*r),{timestampIsSet:!0}]}}])&&gl(t.prototype,r),n&&gl(t,n),i}();function jl(e){return jl="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},jl(e)}function Sl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tl(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 Pl(e,t){return Pl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Pl(e,t)}function Cl(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=Dl(e);if(t){var o=Dl(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return zl(this,r)}}function zl(e,t){return!t||"object"!==jl(t)&&"function"!=typeof t?_l(e):t}function _l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dl(e){return Dl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Dl(e)}function Ll(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&&Pl(e,t)}(i,ut);var t,r,n,o=Cl(i);function i(){var e;Sl(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ll(_l(e=o.call.apply(o,[this].concat(r))),"priority",20),Ll(_l(e),"incompatibleTokens","*"),e}return t=i,(r=[{key:"parse",value:function(e){return Zt(e)}},{key:"set",value:function(e,t,r){return[new Date(r),{timestampIsSet:!0}]}}])&&Tl(t.prototype,r),n&&Tl(t,n),i}();function Nl(e,t){P(2,arguments);var r=T(t);return _(e,-r)}function Ml(e,t){var r;P(1,arguments);var n=T(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=ql(e);if(i.date){var a=Hl(i.date,n);o=Wl(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var l,c=o.getTime(),s=0;if(i.time&&(s=Ul(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=Yl(i.timezone),isNaN(l)?new Date(NaN):new Date(c+s+l)}new wt,new sr,new br,new Cr,new Rr,new $r,new an,new mn,new Sn,new Mn,new Gn,new oo,new yo,new So,new Mo,new Go,new ri,new pi,new xi,new Di,new Hi,new Ji,new ca,new va,new Pa,new Ba,new Za,new ol,new hl,new El,new Al;var Il={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Bl=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Rl=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Fl=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ql(e){var t,r={},n=e.split(Il.dateTimeDelimiter);if(n.length>2)return r;if(/:/.test(n[0])?t=n[0]:(r.date=n[0],t=n[1],Il.timeZoneDelimiter.test(r.date)&&(r.date=e.split(Il.timeZoneDelimiter)[0],t=e.substr(r.date.length,e.length))),t){var o=Il.timezone.exec(t);o?(r.time=t.replace(o[1],""),r.timezone=o[1]):r.time=t}return r}function Hl(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 Wl(e,t){if(null===t)return new Date(NaN);var r=e.match(Bl);if(!r)return new Date(NaN);var n=!!r[4],o=Vl(r[1]),i=Vl(r[2])-1,a=Vl(r[3]),l=Vl(r[4]),c=Vl(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<=(Zl[t]||($l(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=($l(e)?366:365)}(t,o)?(s.setUTCFullYear(t,i,Math.max(o,a)),s):new Date(NaN)}function Vl(e){return e?parseInt(e):1}function Ul(e){var t=e.match(Rl);if(!t)return NaN;var r=Gl(t[1]),n=Gl(t[2]),o=Gl(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 Gl(e){return e&&parseFloat(e.replace(",","."))||0}function Yl(e){if("Z"===e)return 0;var t=e.match(Fl);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 Zl=[31,null,31,30,31,30,31,31,30,31,30,31];function $l(e){return e%400==0||e%4==0&&e%100!=0}function Xl(e,t){P(2,arguments);var r=T(t);return D(e,-r)}function Ql(e){return Ql="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},Ql(e)}function Jl(e,t){if(P(2,arguments),!t||"object"!==Ql(t))return new Date(NaN);var r=t.years?T(t.years):0,n=t.months?T(t.months):0,o=t.weeks?T(t.weeks):0,i=t.days?T(t.days):0,a=t.hours?T(t.hours):0,l=t.minutes?T(t.minutes):0,c=t.seconds?T(t.seconds):0,s=Xl(e,n+12*r),u=Nl(s,i+7*o),f=l+60*a,p=c+60*f,d=1e3*p,h=new Date(u.getTime()-d);return h}var Kl={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"}},ec={date:O({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:O({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:O({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},tc={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"},rc={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"},nc={code:"es",formatDistance:function(e,t,r){var n,o=Kl[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:ec,formatRelative:function(e,t,r,n){return 1!==t.getUTCHours()?rc[e]:tc[e]},localize:{ordinalNumber:function(e,t){return Number(e)+"º"},era:x({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:x({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:x({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:x({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:x({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:S({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:k({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:k({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:k({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:k({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:k({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 oc(t){var r=[],n=s.getCurrentLanguage().toLowerCase().startsWith("es")?nc:Re,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))})))})))))}h(".mdhui-calendar\n{\n\tpadding-bottom: 16px;\n}\n\n.mdhui-calendar table\n{\n\twidth: 100%;\n\tfont-size: 14px;\n}\n\n .mdhui-calendar table tr th\n {\n font-size: 14px;\n font-weight: bold;\n color: #555;\n padding-bottom: 16px;\n padding-top: 16px;\n border-bottom: solid 1px #eee;\n text-align: center;\n }\n \n .mdhui-calendar table tr td\n {\n padding-top: 16px;\n vertical-align: top;\n text-align: center;\n height: 50px;\n padding-bottom: 0;\n position: relative;\n }");function ic(t){return t.children?e.createElement("div",{className:(t.allowOverflow?"allow-overflow ":"")+(t.className||"")+" mdhui-card"},t.children):null}h(".mdhui-card\n{\n border-radius: 5px;\n margin: 16px;\n background: #FFF;\n box-shadow: 0px 9px 9px #ddd;\n animation: fadein 1s;\n -moz-animation: fadein 1s;\n -webkit-animation: fadein 1s;\n position: relative;\n overflow: hidden;\n}\n\n .mdhui-card:empty\n {\n display: none;\n }\n\n .mdhui-card.allow-overflow\n {\n overflow: visible;\n display: flow-root;\n }\n\n@keyframes fadein\n{\n from\n {\n opacity: 0;\n }\n\n to\n {\n opacity: 1;\n }\n}\n\n@-moz-keyframes fadein\n{\n from\n {\n opacity: 0;\n }\n\n to\n {\n opacity: 1;\n }\n}\n\n@-webkit-keyframes fadein\n{\n from\n {\n opacity: 0;\n }\n\n to\n {\n opacity: 1;\n }\n}\n");function ac(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))}h(".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 lc={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="chevron-left",r=[9001],n="f053",o="M41.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.3L109.3 256 278.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:[384,512,r,n,o]},e.faChevronLeft=e.definition,e.prefix="fas",e.iconName=t,e.width=384,e.height=512,e.ligatures=r,e.unicode=n,e.svgPathData=o,e.aliases=r}(lc);function cc(t){var r,n,o="Month"==t.intervalType?{months:1}:{weeks:1},i=A(t.intervalStart,o),a=!1,l=new Date;return t.intervalStart<=l&&l<i&&(a=!0),e.createElement("div",{className:"mdhui-date-range-navigator"},e.createElement("button",{title:"Previous",className:"navigator-button navigate-previous",onClick:function(){return e=Jl(t.intervalStart,o),void t.onIntervalChange(e,A(e,o));var e}},e.createElement(g,{icon:lc.faChevronLeft})),"Month"==t.intervalType&&1==t.intervalStart.getDate()&&e.createElement("div",null,(n=s.getCurrentLanguage().toLowerCase().startsWith("es")?nc:Re,(r=Ue(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,Ue(t.intervalStart,"MM/dd/yyyy")," - ",Ue(Jl(i,{days:1}),"MM/dd/yyyy")),!a&&e.createElement("button",{title:"Next",className:"navigator-button navigate-next",onClick:function(){return e=A(t.intervalStart,o),void t.onIntervalChange(e,A(e,o));var e}},e.createElement(g,{icon:d.faChevronRight})))}h(".mdhui-card .mdhui-date-range-navigator:first-child\n{\n border-radius: 5px 5px 0px 0px;\n}\n\n.mdhui-date-range-navigator\n{\n padding: 16px;\n text-align: center;\n font-weight: bold;\n border-bottom: solid 1px var(--color-border);\n position: sticky;\n position: -webkit-sticky;\n top: 0;\n background: #FFF;\n z-index: 1;\n}\n\n .mdhui-date-range-navigator > .navigator-button\n {\n position: absolute;\n top: 0;\n padding: 16px;\n color: var(--color-primary);\n height: 100%;\n }\n\n .mdhui-date-range-navigator > .navigate-previous\n {\n left: 0;\n }\n\n .mdhui-date-range-navigator > .navigate-next\n {\n right: 0;\n }\n");function sc(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"},"+")))}h(".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: #eee;\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");h(".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 }");function uc(t){var r="mdhui-face";function n(){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&&(r+=" mdhui-face-selected"),t.className&&(r+=" "+t.className),t.onClick?e.createElement("button",{className:r,onClick:t.onClick},e.createElement("img",{src:n()}),e.createElement(fc,null)):e.createElement("div",{className:r},e.createElement("img",{src:n()}),e.createElement(fc,null))}h(".mdhui-histogram {\n padding: 16px;\n}\n\n.mdhui-histogram-entry {\n padding-top: 8px;\n font-size: 15px;\n}\n\n.mdhui-histogram-entry-bar-wrapper {\n display: flex;\n}\n\n.mdhui-histogram-entry-bar {\n position: relative;\n height: 16px;\n border-radius: 8px;\n}\n\n.mdhui-histogram-entry-value {\n padding-left: 4px;\n line-height: 16px;\n font-size: 12px;\n font-weight: bold;\n}\n");function fc(){return e.createElement("div",{className:"mdhui-shiny-overlay"})}function pc(t){var r=0;return t.entries.forEach((function(e){e.value>r&&(r=e.value)})),e.createElement("div",{className:"mdhui-histogram"},t.entries.map((function(t,n){return e.createElement("div",{className:"mdhui-histogram-entry",key:n},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(fc,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))})))}h(".mdhui-shiny-overlay\n{\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 244, 240, 0.2) 100%);\n}\n");function dc(t){return t.bodyBackgroundColor?document.body.style.backgroundColor=t.bodyBackgroundColor:document.body.style.removeProperty("background-color"),t.statusBarStyle&&s.setStatusBarStyle(t.statusBarStyle),e.createElement("div",{className:"mdhui-layout"},t.stylesheetPath&&e.createElement("link",{rel:"stylesheet",type:"text/css",href:t.stylesheetPath}),t.children)}h(":root\n{\n --main-bg-color: #f5f5f5;\n --color-theme: #0076BE;\n --color-primary: #0076BE;\n --color-success: #00AE42;\n --color-warning: #FF671D;\n --color-danger: #C40D3C;\n --color-info: #853275;\n --color-muted1: #555;\n --color-muted2: #999;\n --color-muted3: #bbb;\n --color-border: #eee;\n}\n\na\n{\n color: var(--color-primary);\n}\n\nhtml\n{\n font-size: 17px;\n line-height: 1.3;\n}\n\nbutton\n{\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{\n html\n {\n font: -apple-system-body;\n }\n}\n\nbody\n{\n padding: 0;\n margin: 0;\n font-family: ui-rounded, -apple-system, Helvetica, Arial, sans-serif;\n background: var(--main-bg-color);\n}\n\n.mdhui-layout\n{\n padding-bottom: env(safe-area-inset-bottom);\n}\n");var hc={},yc={};!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}(yc),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=yc;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}(hc);function mc(){return e.createElement("div",{className:"mdhui-loading-indicator"},e.createElement(g,{icon:hc.faRefresh,spin:!0}))}h(".mdhui-loading-indicator\n{\n padding: 16px;\n color: #bbb;\n text-align: center;\n}");h(".mdhui-navigation-bar\n{\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: #f5f5f5;\n}\n\n .mdhui-navigation-bar.scroll-shadow\n {\n box-shadow: 0px 0px 5px #aaa;\n }\n\n .mdhui-navigation-bar .icon\n {\n width: 32px;\n vertical-align: middle;\n }\n\n .mdhui-navigation-bar .close-button\n {\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 {\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 }\n");var gc={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"},vc={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"},bc=s.getCurrentLanguage().toLowerCase().startsWith("es")?vc:gc;function wc(t){var r=o(null);return i((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(){s.back()}},e.createElement(g,{icon:lc.faChevronLeft}),t.backButtonText?t.backButtonText:bc.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(){s.dismiss()}},t.closeButtonText?t.closeButtonText:bc.close),t.children)}function Oc(t){return t.children?e.createElement("div",{className:"mdhui-section"},t.children):null}h(".mdhui-section\n{\n margin-top: 16px;\n margin-bottom: 16px;\n background: #FFF;\n box-shadow: 0px 9px 9px #ddd;\n animation: fadein 1s;\n -moz-animation: fadein 1s;\n -webkit-animation: fadein 1s;\n position: relative;\n}\n\n .mdhui-section:empty\n {\n display: none;\n }\n\n\n@keyframes fadein\n{\n from\n {\n opacity: 0;\n }\n\n to\n {\n opacity: 1;\n }\n}\n\n@-moz-keyframes fadein\n{\n from\n {\n opacity: 0;\n }\n\n to\n {\n opacity: 1;\n }\n}\n\n@-webkit-keyframes fadein\n{\n from\n {\n opacity: 0;\n }\n\n to\n {\n opacity: 1;\n }\n}");function xc(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(fc,null),n.title)})))}h(".mdhui-segmented-control\n{\n border-radius: 32px;\n border: solid 1px var(--color-primary);\n background: #FFF;\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(--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(--color-primary);\n color: #FFF;\n }\n");var kc={};!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}(kc);var Ec={};!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}(Ec);function jc(t){var r=s.getCurrentLanguage().toLowerCase().startsWith("es")?nc:Re,n=a(""),o=n[0],i=n[1];function l(){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"!==l()&&"fetchingData"!==l()&&e.createElement("button",{className:"delete-button",onClick:function(){i("deleting"),s.deleteExternalAccount(t.externalAccount.id).then((function(){t.onAccountRemoved(t.externalAccount)})).catch((function(){i("")}))},title:bc["external-account-remove"]},e.createElement(g,{icon:Ec.faTrash}))),e.createElement("div",{className:"external-account-status"},"unauthorized"===l()&&e.createElement("p",null,e.createElement("span",{className:"error"},bc["external-account-authorization-expired"])),"fetchingData"===l()&&e.createElement("p",null,e.createElement(g,{icon:hc.faRefresh,spin:!0})," ",bc["external-account-fetching-data"]),"fetchComplete"===l()&&e.createElement("p",null,bc["external-account-last-updated"]," ",e.createElement("strong",null,Qe(Ml(t.externalAccount.lastRefreshDate),new Date,{locale:r}))),"error"===l()&&e.createElement("p",{className:"error"},bc["external-account-error"]),("fetchComplete"===l()||"error"===l())&&e.createElement("p",null,e.createElement("a",{href:"javascript:{}",onClick:function(){i("fetchingData"),s.refreshExternalAccount(t.externalAccount.id).then()}},e.createElement(g,{icon:kc.faRepeat})," ",bc["external-account-refresh"])),"unauthorized"===l()&&e.createElement("p",null,e.createElement("a",{href:"javascript:{}",onClick:function(){return t.onReconnectAccount(t.externalAccount)}},e.createElement(g,{icon:kc.faRepeat})," ",bc["external-account-reconnect"])),"deleting"===l()&&e.createElement("p",null,e.createElement(g,{icon:hc.faRefresh,spin:!0})," ",bc["external-account-deleting"])))}h(".mdhui-single-external-account {\n position: relative;\n overflow: hidden;\n background: #FFF;\n}\n\n.mdhui-single-external-account .external-account-header {\n position: relative;\n padding: 16px;\n font-weight: bold;\n border-bottom: solid 1px #eee;\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: #bbb;\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}\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(--color-danger);\n}");function Sc(t){var r,n;var o,i=s.getCurrentLanguage().toLowerCase().startsWith("es")?nc:Re;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=Qe(Ml(t.notification.sentDate),new Date,{locale:i})).charAt(0).toUpperCase()+o.slice(1)))}h(".mdhui-single-notification\n{\n padding: 16px;\n border-bottom: solid 1px var(--color-border);\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(--color-muted1);\n margin-top: 16px;\n font-size: .75em;\n }\n");h(".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(--color-muted2);\n }\n\n .mdhui-single-survey-task.complete .status-icon\n {\n color: var(--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: #555;\n }\n\n .mdhui-single-survey-task .due-date\n {\n font-size: .88em;\n color: var(--color-primary);\n }\n\n .mdhui-single-survey-task .due-date.warning\n {\n color: var(--color-warning);\n font-weight: bold;\n }\n\n .mdhui-single-survey-task .due-date.danger\n {\n color: var(--color-danger);\n font-weight: bold;\n }\n\n .mdhui-single-survey-task .indicator\n {\n font-size: 16px;\n color: var(--color-muted2);\n }\n\n .mdhui-single-survey-task.incomplete\n {\n cursor: pointer;\n }\n");var Tc={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="circle-check",r=[61533,"check-circle"],n="f058",o="M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 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}(Tc);var Pc={};!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-192zm64 0c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0S512 114.6 512 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}(Pc);var Cc={};function zc(t){var r=function(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()},n=new Date,o=A(new Date,{days:1}),i="",a="",l=s.getCurrentLanguage().toLowerCase().startsWith("es")?nc:Re;if(t.task.dueDate){var c=Ml(t.task.dueDate);if(r(c,o))i=bc["due-tomorrow"],a="warning";else if(r(c,n))i=bc["due-today"],a="warning";else if(Je(n,c))i=bc.overdue,a="danger";else{var u;u=function(e,t){return P(1,arguments),$e(e,Date.now(),t)}(new Date(t.task.dueDate),{locale:l}),i=bc["due-in"]+" "+u}}return"incomplete"==t.task.status?e.createElement("button",{className:"mdhui-single-survey-task incomplete",onClick:function(){return e=t.task.surveyName,void(t.disableClick||s.startSurvey(e));var e}},e.createElement("div",{className:"status-icon"},t.task.hasSavedProgress&&e.createElement(g,{icon:Pc.faCircleHalfStroke}),!t.task.hasSavedProgress&&e.createElement(g,{icon:Cc.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(g,{icon:d.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(g,{icon:Tc.faCircleCheck})),e.createElement("div",null,e.createElement("div",{className:"survey-name"},t.task.surveyDisplayName),e.createElement("div",{className:"completed-date"},bc.completed," ",Qe(Ml(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="M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z";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}(Cc);function _c(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(fc,null))}))))}h(".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 Dc(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"}))}h(".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(--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 Lc(t){var r={};return t.color&&(r={backgroundColor:t.color}),e.createElement("div",{className:"mdhui-status-bar-background",style:r})}h(".mdhui-status-bar-background\n{\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: #FFF;\n}\n");function Ac(t){return t.children?e.createElement("div",{className:"mdhui-text-block"},t.children):null}h(".mdhui-text-block\n{\n margin: 16px;\n font-size: .88em;\n}\n");function Nc(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(fc,null),t.badge&&t.selected&&e.createElement("div",{className:"badge"},t.badge))}h(".mdhui-tracker-item\n{\n padding: 8px;\n padding-right: 16px;\n padding-left: 16px;\n color: #FFF;\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 {\n cursor: pointer;\n }\n\n .mdhui-tracker-item.selected\n {\n box-shadow: 0px 0px 5px #aaa;\n color: #FFF !important;\n background-color: inherit;\n }\n\n .mdhui-tracker-item.unselected\n {\n background-color: #FFFFFF !important;\n }\n\n .mdhui-tracker-item.bordered .mdhui-shiny-overlay\n {\n left: 1px;\n right: 1px;\n bottom: 1px;\n top: 1px;\n border: solid 2px #FFF;\n border-radius: 16px;\n }\n\n .mdhui-tracker-item .badge\n {\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 }\n");function Mc(t){var r=o(null);l((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(A(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(A(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=[],i=[],a=[],c=A(t.startDate,{days:-7}),s=0;s<21;s++)s<7?n.push(c):s<14?i.push(c):a.push(c),c=A(c,{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"}," ",Ue(t,"E").substr(0,1)),e.createElement("div",{className:"mdhui-week-calendar-day-of-month"},Ue(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&&Xe(e).substr(0,10)==Xe(t.selectedDate).substr(0,10)&&r.push("mdhui-week-calendar-day-selected"),r}return l((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(mc,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"},i.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))}))),A(t.startDate,{days:7})<new Date&&e.createElement("div",{className:"mdhui-week-calendar-week"},a.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))}))))}h(".mdhui-week-calendar\n{\n background: #FFF;\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 #ddd;\n border-bottom: solid 1px #ddd;\n}\n\n .mdhui-week-calendar .mdhui-week-calendar-loading\n {\n position: absolute;\n width: 100%;\n left: 100%;\n top: calc(50% - 10px);\n }\n\n .mdhui-week-calendar *\n {\n user-select: none;\n }\n\n .mdhui-week-calendar::-webkit-scrollbar\n {\n display: none; /* Safari and Chrome */\n }\n\n .mdhui-week-calendar .mdhui-week-calendar-week\n {\n min-width: 100%;\n scroll-snap-align: start;\n }\n\n .mdhui-week-calendar .mdhui-week-calendar-day\n {\n width: calc(14.28% - 1px);\n border-left: solid 1px #ddd;\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 {\n width: 14.28%;\n border-left: none;\n }\n\n .mdhui-week-calendar .mdhui-week-calendar-date-label\n {\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 {\n font-size: 10px;\n }\n\n .mdhui-week-calendar .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-month\n {\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 {\n cursor: pointer;\n }\n\n .mdhui-week-calendar .mdhui-week-calendar-day-selected\n {\n background: #EAF4FB;\n }\n\n .mdhui-week-calendar .mdhui-week-calendar-day-selected .mdhui-week-calendar-date-label .mdhui-week-calendar-day-of-month\n {\n background-color: var(--color-theme);\n color: #FFF;\n font-weight: bold;\n }\n\n .mdhui-week-calendar .mdhui-week-calendar-day-future > *\n {\n opacity: .4;\n }\n");h(".mdhui-connect-ehr\n{\n background: #FFF;\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(--color-muted1);\n}\n\n.mdhui-connect-ehr .connection-status {\n padding: 16px 42px 0 16px;\n font-size: .88em;\n color: #555;\n}\n\n.mdhui-connect-ehr .connection-status .success svg {\n color: var(--color-success);\n}\n\n.mdhui-connect-ehr .connection-status .warning {\n color: var(--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(--color-muted2);\n}\n");var Ic={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Tc;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}(Ic);var Bc={};function Rc(t){var r=a(!0),n=r[0],o=r[1],i=a(!1),c=i[0],u=i[1],f=a(null),p=f[0],h=f[1],y=a(!1),m=y[0],v=y[1],b=a(!1),w=b[0],O=b[1];function x(){if(t.previewState){if("notEnabled"==t.previewState)return;return u(!0),h("PROJECT"),"enabledConnected"==t.previewState?(v(!0),O(!1)):"enabledNeedsAttention"==t.previewState&&(v(!0),O(!0)),void o(!1)}s.getDataCollectionSettings().then((function(e){u(e.ehrEnabled),e.ehrEnabled&&s.getProjectInfo().then((function(e){h(e.name),s.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 l((function(){return x(),s.on("applicationDidBecomeVisible",x),s.on("externalAccountSyncComplete",x),function(){s.off("applicationDidBecomeVisible",x),s.off("externalAccountSyncComplete",x)}}),[]),c?n?null:e.createElement("button",{className:"mdhui-connect-ehr",onClick:function(){"preview"==t.applicationUrl?console.log("PREVIEW: Opening the connect EHR application."):s.openApplication(t.applicationUrl)}},e.createElement(ac,{title:bc["connect-ehr-title-prefix"]+bc["connect-ehr-title-providers"]+bc["connect-ehr-title-divider"]+bc["connect-ehr-title-health-plans"]}),m?e.createElement("div",null,e.createElement("div",{className:"connection-status"},w?e.createElement("div",{className:"warning"},e.createElement(g,{icon:Bc.faTriangleExclamation})," ",bc["connect-ehr-needs-attention"]):e.createElement("div",{className:"success"},e.createElement(g,{icon:Ic.faCheckCircle})," ",bc["connect-ehr-connected"])),e.createElement("div",{className:"content"},bc["connect-ehr-text-connected"].replace("@@PROJECT_NAME@@",p))):e.createElement("div",{className:"content"},bc["connect-ehr-text"].replace("@@PROJECT_NAME@@",p)),e.createElement("div",{className:"indicator"},e.createElement(g,{icon:d.faChevronRight})),e.createElement(fc,null)):"displayError"==t.disabledBehavior?e.createElement("div",{className:"mdhui-connect-ehr"},e.createElement("div",{className:"error-content"},bc["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 224c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z";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}(Bc);var Fc={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Bc;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}(Fc);function qc(t){var r=a(!0),n=r[0],o=r[1],i=a(!1),c=i[0],u=i[1],f=a(null),p=f[0],d=f[1];function h(){var e=564;return s.baseUrl&&!s.baseUrl.startsWith("https://mdhorg.ce.dev")||(e=2),t.fitbitProviderID&&(e=t.fitbitProviderID),e}function y(){if(t.previewState){if("notEnabled"==t.previewState)return;return u(!0),"notConnected"==t.previewState?void o(!1):(d({id:1,lastRefreshDate:Xe(A(new Date,{hours:-1})),status:t.previewState,provider:{name:"Fitbit",category:"Device Manufacturer",id:h(),logoUrl:""}}),void o(!1))}s.getDataCollectionSettings().then((function(e){u(e.fitbitEnabled),e.fitbitEnabled?s.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 m(){s.connectExternalAccount(h())}l((function(){return y(),s.on("applicationDidBecomeVisible",y),s.on("externalAccountSyncComplete",y),function(){s.off("applicationDidBecomeVisible",y),s.off("externalAccountSyncComplete",y)}}),[]);var v=null==p?void 0:p.status;if("fetchComplete"==(null==p?void 0:p.status)){var b=A(Ml(p.lastRefreshDate),{hours:3});Je(new Date,b)&&(s.refreshExternalAccount(p.id),v="fetchingData")}return c?e.createElement("div",{className:"mdhui-connect-fitbit"},t.title&&e.createElement(ac,{title:t.title}),n&&e.createElement(mc,null),!n&&e.createElement("div",{className:"content"},!p&&e.createElement("div",null,e.createElement("div",{className:"subtitle"},bc["connect-fitbit-intro"]),e.createElement(w,{onClick:function(){return m()}},bc["connect-fitbit-button"])),p&&"fetchComplete"==v&&e.createElement("div",{className:"subtitle success"},e.createElement(g,{icon:Ic.faCheckCircle})," ",bc["received-fitbit-data"]),p&&"fetchingData"==v&&e.createElement("div",{className:"subtitle downloading"},e.createElement(g,{icon:hc.faRefresh,spin:!0})," ",bc["downloading-data"]),p&&"unauthorized"==v&&e.createElement("div",null,e.createElement("div",{className:"subtitle reconnect"},e.createElement(g,{icon:Fc.faExclamationTriangle})," ",bc.reconnect),e.createElement(w,{onClick:function(){return m()}},bc["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."))}h(".mdhui-connect-fitbit\n{\n}\n\n .mdhui-connect-fitbit .title\n {\n font-weight: bold;\n }\n\n .mdhui-connect-fitbit .subtitle\n {\n font-size: .88em;\n font-weight: normal;\n color: var(--color-muted1);\n }\n\n .mdhui-connect-fitbit .subtitle.reconnect\n {\n color: var(--color-danger);\n font-weight: bold;\n }\n\n .mdhui-connect-fitbit .subtitle.success svg\n {\n color: var(--color-success);\n }\n\n .mdhui-connect-fitbit .mdhui-button\n {\n margin-top: 16px;\n }\n\n .mdhui-connect-fitbit .content\n {\n padding: 16px;\n }\n");h(".mdhui-device-data-month-chart\n{\n position: relative;\n}\n\n .mdhui-device-data-month-chart .title\n {\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 {\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 {\n font-weight: bold;\n }\n\n\n .mdhui-device-data-month-chart .chart-container\n {\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 {\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(--color-muted2);\n box-sizing: border-box;\n padding: 16px;\n }\n\n .mdhui-device-data-month-chart .recharts-cartesian-axis-tick\n {\n font-size: 11px;\n }\n\n .mdhui-device-data-month-chart .graph-tooltip\n {\n padding: 4px;\n font-size: 12px;\n background: #FFF;\n border-radius: 5px;\n box-shadow: 0px 9px 9px #ddd;\n animation: fadein 1s;\n -moz-animation: fadein 1s;\n -webkit-animation: fadein 1s;\n border: solid 1px var(--color-border);\n }\n\n .mdhui-device-data-month-chart .graph-tooltip .graph-date\n {\n padding: 4px;\n }\n\n .mdhui-device-data-month-chart .graph-tooltip table\n {\n border-spacing: 0;\n border-collapse: collapse;\n }\n\n .mdhui-device-data-month-chart .graph-tooltip table tr:nth-child(odd)\n {\n background: #eee;\n }\n\n .mdhui-device-data-month-chart .graph-tooltip table th\n {\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 {\n padding: 4px;\n text-align: left;\n font-weight: bold;\n }\n");var Hc=require("recharts/es6/chart/LineChart").LineChart,Wc=require("recharts/es6/component/ResponsiveContainer").ResponsiveContainer,Vc=require("recharts/es6/cartesian/XAxis").XAxis,Uc=require("recharts/es6/cartesian/YAxis").YAxis,Gc=require("recharts/es6/component/Tooltip").Tooltip,Yc=require("recharts/es6/cartesian/CartesianGrid").CartesianGrid,Zc=require("recharts/es6/cartesian/Line").Line;function $c(e){return Xe(e).substr(0,10)}function Xc(e,t,r){return"FitbitSteps"==e?Qc(t,r):"FitbitRestingHeartRates"==e||"AppleHealthSteps"==e?Jc(t,r):"AppleHealthDistanceRunningWalking"==e?function(e,t){var r=new Date(e,t,1,0,0,0,0),n=A(r,{months:1}),o={};for(;r<n;)o[$c(r)]=Math.floor(500*Math.random()),r=A(r,{hours:1});return o}(t,r):"GoogleFitSteps"==e?function(e,t){var r=new Date(e,t,1,0,0,0,0),n=A(r,{months:1}),o={};for(;r<n;)o[$c(r)]=Math.floor(500*Math.random()),r=A(r,{hours:1});return o}(t,r):Qc(t,r)}function Qc(e,t){for(var r=new Date(e,t,1,0,0,0,0),n=A(r,{months:1}),o={};r<n;)o[$c(r)]=3e3+Math.floor(1e4*Math.random()),r=A(r,{days:1});return o}function Jc(e,t){for(var r=new Date(e,t,1,0,0,0,0),n=A(r,{months:1}),o={};r<n;)o[$c(r)]=60+Math.floor(5*Math.random()),r=A(r,{days:1});return o}Vc.displayName="XAxis",Uc.displayName="YAxis";var Kc=function(){return Kc=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},Kc.apply(this,arguments)};function es(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 ts(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 rs(e){var t=[],r=function(n){var o=Kc({},e);return n&&(o.pageID=n),s.queryDeviceData(o).then((function(e){return t=t.concat(e.deviceDataPoints),e.nextPageID?r(e.nextPageID):t}))};return r()}function ns(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 os(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=ns(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){P(2,arguments);var n=G(e,t)/6e4;return Z(null==r?void 0:r.roundingMethod)(n)}(e.endDate,e.startDate)})),a}function is(e,t,r){return rs({namespace:"AppleHealth",type:"SleepAnalysisInterval",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(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=Ml(e.startDate),n=Ml(e.observationDate),o=A(new Date(r.getFullYear(),r.getMonth(),r.getDate(),18,0,0,0),{days:-1});o<n;){var i=A(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=Xe(A(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]=os(l)),e=A(e,{days:1})}return i}))}function as(e,t){return rs({namespace:"AppleHealth",type:"HourlySteps",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=$c(Ml(e.startDate));t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}function ls(e,t,r){return rs({namespace:"Fitbit",type:r,observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(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 cs(e,t,r){return rs({namespace:"Fitbit",type:"HeartRateZone",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(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 ss(e,t,r){return rs({namespace:"Fitbit",type:e,observedAfter:A(t,{days:-1}).toISOString(),observedBefore:A(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 us(e,t){return ss("RestingHeartRate",e,t)}function fs(e,t,r){return rs({namespace:"Fitbit",type:r,observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.observationDate){var r=Xe(A(Ml(e.observationDate),{hours:6})).substr(0,10);t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}function ps(e,t){return ss("Steps",e,t)}var ds,hs={};function ys(e,t,r){hs[e]={provider:t,availabilityCheck:r}}function ms(e,t){var r=hs[e];if(!r)throw"Unknown data type:"+e;return r.availabilityCheck(t)}function gs(e,t,r){return hs[e].provider(t,r).then((function(e){for(var n={};t<r;){var o=$c(t);e[o]&&(n[o]=e[o]),t=A(t,{days:1})}return n}))}function vs(e,t){return function(r){var n={namespace:e,type:t,limit:1};return r&&(n.modifiedAfter=r.toISOString()),s.queryDeviceData(n).then((function(e){return e.deviceDataPoints.length>0})).catch((function(){return!1}))}}function bs(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 ws(t){var r=a(null),n=r[0],i=r[1],c=a(!1),u=c[0],f=c[1],p=a(!1),d=p[0],h=p[1],y=o(),m=new Date(t.year,t.month,1,0,0,0,0),g=A(m,{months:1});function v(){var e,r;if(t.previewState&&(h(!0),t.onDataDetected&&t.onDataDetected()),"Loading"==t.previewState&&f(!0),"WithData"==t.previewState){var n={};t.lines.forEach((function(e){var r=Xc(e.dailyDataType,t.year,t.month);n[e.dailyDataType]=r})),i(n)}if("NoData"==t.previewState){n={};t.lines.forEach((function(e){n[e.dailyDataType]={}})),i(n),f(!1)}if(!t.previewState){!function(){if(!d){var e=t.lines.map((function(e){return ms(e.dailyDataType)}));Promise.all(e).then((function(e){e.find((function(e){return e}))&&(h(!0),t.onDataDetected&&t.onDataDetected())}))}}(),y.current=(null!==(e=y.current)&&void 0!==e?e:0)+1;var o=null!==(r=y.current)&&void 0!==r?r:0;f(!0);var a;a=t.lines.map((function(e){return gs(e.dailyDataType,m,g)})),Promise.all(a).then((function(e){if(o==y.current){for(var r={},n=0;n<t.lines.length;n++)r[t.lines[n].dailyDataType]=e[n];i(r),f(!1)}}))}}l((function(){return v(),s.on("applicationDidBecomeVisible",v),s.on("externalAccountSyncComplete",v),function(){s.off("applicationDidBecomeVisible",v),s.off("externalAccountSyncComplete",v)}}),[t]);for(var b=[],w=m,O=!1;w<g;){var x={day:w.getDate()};b.push(x);var k=$c(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=A(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),!u&&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||u)&&e.createElement("div",null,!O&&!u&&e.createElement("div",{className:"no-data-label"},"No Data"),u&&e.createElement(mc,null),e.createElement(Wc,{width:"100%",height:150},e.createElement(Hc,{width:400,height:400,data:b,syncId:t.syncId},e.createElement(Yc,{strokeDasharray:"3 3"}),e.createElement(Uc,{axisLine:!1,interval:0,tickLine:!1,width:30,scale:"linear"}),e.createElement(Vc,{id:"myXAxis",tick:bs,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))),O&&!u&&e.createElement(Wc,{width:"100%",height:150},e.createElement(Hc,{width:400,height:400,data:b,syncId:t.syncId},t.lines.map((function(t){return e.createElement(Zc,{key:t.dailyDataType,type:"monotone",dataKey:t.dailyDataType,stroke:"var(--color-primary)"})})),e.createElement(Gc,{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"},Ue(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(Yc,{strokeDasharray:"3 3"}),e.createElement(Uc,{tickFormatter:function(e){return e>=1e4?Math.floor(e/1e3)+"K":e},axisLine:!1,interval:0,tickLine:!1,width:30}),e.createElement(Vc,{id:"myXAxis",tick:bs,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))))}function Os(t){var r=a(!1),n=r[0],o=r[1],i=new Date,l=a(new Date(i.getFullYear(),i.getMonth(),1,0,0,0,0)),c=l[0],s=l[1];function u(){o(!0)}var f=c.getMonth(),p=c.getFullYear();return e.createElement(e.Fragment,null,!n&&e.createElement(Ac,null,bc["device-data-no-data"]),e.createElement("div",{style:{display:n?"block":"none"}},e.createElement(cc,{intervalType:"Month",intervalStart:c,onIntervalChange:function(e){s(e)}}),e.createElement(ws,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:ds.FitbitSteps,label:bc.steps}],title:"Fitbit "+bc.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(ws,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:ds.FitbitRestingHeartRate,label:bc["resting-heart-rate"]}],title:"Fitbit "+bc["resting-heart-rate"],month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(ws,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:ds.AppleHealthSteps,label:bc.steps}],title:"Apple Health "+bc.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(ws,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:ds.AppleHealthDistanceWalkingRunning,label:bc["distance-traveled"],valueConverter:function(e){return 621371e-9*e}}],title:"Apple Health "+bc["distance-traveled"]+" (Miles)",month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(ws,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:ds.GoogleFitSteps,label:bc.steps}],title:"Google Fit "+bc.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"}(ds||(ds={})),ys(ds.AppleHealthDistanceWalkingRunning,(function(e,t){return rs({namespace:"AppleHealth",type:"HourlyDistanceWalkingRunning",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=Xe(Ml(e.startDate)).substring(0,10);t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}),vs("AppleHealth",["HourlyDistanceWalkingRunning"])),ys(ds.AppleHealthFlightsClimbed,(function(e,t){return rs({namespace:"AppleHealth",type:"FlightsClimbed",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=$c(Ml(e.startDate));t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}),vs("AppleHealth",["HourlySteps"])),ys(ds.AppleHealthHeartRateRange,(function(e,t){return rs({namespace:"AppleHealth",type:["HourlyMaximumHeartRate","HourlyMinimumHeartRate"],observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(r){var n={};r.forEach((function(e){if(e.startDate){var t=$c(Ml(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[$c(e)];i&&i.MaxHeartRate&&i.MinHeartRate&&(o[$c(e)]=i.MaxHeartRate-i.MinHeartRate),e=A(e,{days:1})}return o}))}),vs("AppleHealth",["HourlyMaximumHeartRate"])),ys(ds.AppleHealthHrv,(function(e,t){return rs({namespace:"AppleHealth",type:"HeartRateVariability",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(r){var n={};r.forEach((function(e){if(e.startDate){var t=Xe(Ml(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=A(e,{days:1})}return o}))}),vs("AppleHealth",["HeartRateVariability"])),ys(ds.AppleHealthMaxHeartRate,(function(e,t){return rs({namespace:"AppleHealth",type:"HourlyMaximumHeartRate",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=Xe(Ml(e.startDate)).substring(0,10),n=parseFloat(e.value);t[r]?n>t[r]&&(t[r]=n):t[r]=n}})),t}))}),vs("AppleHealth",["HourlyMaximumHeartRate"])),ys(ds.AppleHealthRestingHeartRate,(function(e,t){return rs({namespace:"AppleHealth",type:"RestingHeartRate",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(r){var n={};r.forEach((function(e){if(e.startDate){var t=$c(Ml(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=A(e,{days:1})}return o}))}),vs("AppleHealth",["RestingHeartRate"])),ys(ds.AppleHealthSleepMinutes,(function(e,t){return is(e,t,"Asleep")}),vs("AppleHealth",["SleepAnalysisInterval"])),ys(ds.AppleHealthInBedMinutes,(function(e,t){return is(e,t,"InBed")}),vs("AppleHealth",["SleepAnalysisInterval"])),ys(ds.AppleHealthStandMinutes,(function(e,t){return rs({namespace:"AppleHealth",type:"AppleStandTime",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=$c(Ml(e.startDate));t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}),vs("AppleHealth",["AppleStandTime"])),ys(ds.AppleHealthSteps,as,vs("AppleHealth",["HourlySteps"])),ys(ds.AppleHealthWalkingHeartRateAverage,(function(e,t){return rs({namespace:"AppleHealth",type:"WalkingHeartRateAverage",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(r){var n={};r.forEach((function(e){if(e.startDate){var t=$c(Ml(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=A(e,{days:1})}return o}))}),vs("AppleHealth",["WalkingHeartRateAverage"])),ys(ds.FitbitActiveMinutes,(function(e,t){return ls(e,t,["MinutesVeryActive","MinutesFairlyActive","MinutesLightlyActive"])}),vs("Fitbit",["MinutesVeryActive","MinutesFairlyActive","MinutesLightlyActive"])),ys(ds.FitbitLightlyActiveMinutes,(function(e,t){return ls(e,t,["MinutesLightlyActive"])}),vs("Fitbit",["MinutesLightlyActive"])),ys(ds.FitbitFairlyActiveMinutes,(function(e,t){return ls(e,t,["MinutesFairlyActive"])}),vs("Fitbit",["MinutesFairlyActive"])),ys(ds.FitbitVeryActiveMinutes,(function(e,t){return ls(e,t,["MinutesVeryActive"])}),vs("Fitbit",["MinutesVeryActive"])),ys(ds.FitbitBreathingRate,(function(e,t){return ss("BreathingRate",e,t)}),vs("Fitbit",["BreathingRate"])),ys(ds.FitbitCaloriesBurned,(function(e,t){return ss("Calories",e,t)}),vs("Fitbit",["Calories"])),ys(ds.FitbitElevatedHeartRateMinutes,(function(e,t){return cs(e,t)}),vs("Fitbit",["HeartRateZone"])),ys(ds.FitbitFatBurnHeartRateMinutes,(function(e,t){return cs(e,t,"Fat Burn")}),vs("Fitbit",["HeartRateZone"])),ys(ds.FitbitCardioHeartRateMinutes,(function(e,t){return cs(e,t,"Cardio")}),vs("Fitbit",["HeartRateZone"])),ys(ds.FitbitPeakHeartRateMinutes,(function(e,t){return cs(e,t,"Peak")}),vs("Fitbit",["HeartRateZone"])),ys(ds.FitbitFloors,(function(e,t){return ss("Floors",e,t)}),vs("Fitbit",["HeartRateZone"])),ys(ds.FitbitHrv,(function(e,t){return ss("Hrv",e,t)}),vs("Fitbit",["Floors"])),ys(ds.FitbitRestingHeartRate,us,vs("Fitbit",["RestingHeartRate"])),ys(ds.FitbitSleepMinutes,(function(e,t){return fs(e,t,["SleepLevelRem","SleepLevelLight","SleepLevelDeep","SleepLevelAsleep"])}),vs("Fitbit",["SleepLevelRem","SleepLevelLight","SleepLevelDeep","SleepLevelAsleep"])),ys(ds.FitbitLightSleepMinutes,(function(e,t){return fs(e,t,["SleepLevelLight"])}),vs("Fitbit",["SleepLevelLight"])),ys(ds.FitbitRemSleepMinutes,(function(e,t){return fs(e,t,["SleepLevelRem"])}),vs("Fitbit",["SleepLevelRem"])),ys(ds.FitbitDeepSleepMinutes,(function(e,t){return fs(e,t,["SleepLevelDeep"])}),vs("Fitbit",["SleepLevelDeep"])),ys(ds.FitbitSpO2,(function(e,t){return ss("SpO2",e,t)}),vs("Fitbit",["SpO2"])),ys(ds.FitbitSteps,ps,vs("Fitbit",["Steps"])),ys(ds.GoogleFitSteps,(function(e,t){return rs({namespace:"GoogleFit",type:"Steps",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var r=Xe(Ml(e.startDate)).substring(0,10);t[r]||(t[r]=0),t[r]+=parseFloat(e.value)}})),t}))}),vs("GoogleFit",["Steps"])),ys(ds.RestingHeartRate,(function(e,t){return rs({namespace:"AppleHealth",type:"RestingHeartRate",observedAfter:A(e,{days:-1}).toISOString(),observedBefore:A(t,{days:1}).toISOString()}).then((function(r){return us(e,t).then((function(n){var o={};r.forEach((function(e){if(e.startDate){var t=$c(Ml(e.startDate)),r=parseFloat(e.value);o[t]||(o[t]=[]),o[t].push(r)}}));for(var i={};e<t;){var a=$c(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=A(e,{days:1})}return i}))}))}),(function(e){return vs("AppleHealth",["RestingHeartRate"])(e).then((function(t){return t||vs("Fitbit",["RestingHeartRate"])(e)}))})),ys(ds.Steps,(function(e,t){var r=ps(e,t),n=as(e,t);return Promise.all([r,n]).then((function(r){for(var n={};e<t;){var o=$c(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=A(e,{days:1})}return n}))}),(function(e){return vs("AppleHealth",["Steps"])(e).then((function(t){return t||vs("Fitbit",["Steps"])(e)}))}));var xs=[{id:1,lastRefreshDate:A(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:A(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:A(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:A(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 ks(t){var r=a(!0),n=r[0],o=r[1],i=a([]),c=i[0],u=i[1];function f(){if("Default"==t.previewState)return o(!1),void d(xs);p()}function p(){s.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))}))),u(e),t.onExternalAccountsLoaded&&t.onExternalAccountsLoaded(e)}return l((function(){return f(),s.on("applicationDidBecomeVisible",f),s.on("externalAccountSyncComplete",f),function(){s.off("applicationDidBecomeVisible",f),s.off("externalAccountSyncComplete",f)}}),[]),e.createElement("div",{className:"mdhui-external-account-list"},c&&c.map((function(t){return e.createElement(ic,{key:t.id.toString()+t.lastRefreshDate},e.createElement(jc,{externalAccount:t,onAccountRemoved:function(e){return o(!0),void p()},onReconnectAccount:function(e){return function(e){s.connectExternalAccount(e.provider.id)}(e)}}))})),n&&e.createElement(mc,null))}h(".mdhui-external-accounts-preview\n{\n}\n\n .mdhui-external-accounts-preview .external-account-title\n {\n font-size:.88em;\n }");var Es=[{id:1,lastRefreshDate:A(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:A(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:A(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:A(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 js(t){var r=a(null),n=r[0],o=r[1],i="",c=[];function u(){"Default"!=t.previewState?s.getExternalAccounts().then((function(e){f(e)})):f(Es)}function f(e){c&&(e=e.filter((function(e){return-1!=(null==c?void 0:c.indexOf(e.provider.category))}))),o(e)}return t.excludeProviders||(c.push("Provider"),i+=bc["external-accounts-title-providers"]),t.excludeHealthPlans||(c.push("Health Plan"),i.length>0&&(i+=bc["external-accounts-title-divider"]),i+=bc["external-accounts-title-health-plans"]),t.excludeDeviceManufacturers||(c.push("Device Manufacturer"),i.length>0&&(i+=bc["external-accounts-title-divider"]),i+=bc["external-accounts-title-devices"]),l((function(){return u(),s.on("applicationDidBecomeVisible",u),function(){s.off("applicationDidBecomeVisible",u)}}),[]),n&&n.length?e.createElement("div",{className:"mdhui-external-accounts-preview"},e.createElement(v,{title:i,onClick:function(){"preview"==t.applicationUrl?console.log("PREVIEW: Opening the external accounts application."):s.openApplication(t.applicationUrl)}},n.map((function(t){return e.createElement("div",{key:t.id,className:"external-account-title"},t.provider.name)})))):null}h(".mdhui-fitbit-devices\n{\n}\n\n .mdhui-fitbit-devices .fitbit-device\n {\n border-bottom: solid 1px var(--color-border);\n padding: 16px;\n position: relative;\n padding-left: 48px;\n }\n\n .mdhui-fitbit-devices .fitbit-device:last-child\n {\n border-bottom: none;\n }\n\n .mdhui-fitbit-devices .fitbit-device .device-icon\n {\n position: absolute;\n left: 16px;\n top: calc(50% - 8px);\n color: var(--color-muted2);\n font-size: 16px;\n }\n\n .mdhui-fitbit-devices .fitbit-device .device-title\n {\n font-weight: bold;\n font-size: .88em;\n }\n\n .mdhui-fitbit-devices .fitbit-device .device-sync\n {\n font-size: .88em;\n color: var(--color-muted);\n }\n\n\n .mdhui-fitbit-devices .fitbit-device .battery-icon\n {\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 {\n color: var(--color-danger);\n }\n\n .mdhui-fitbit-devices .fitbit-device .battery-icon.battery-medium\n {\n color: var(--color-warning);\n }\n\n .mdhui-fitbit-devices .fitbit-device .battery-icon.battery-high\n {\n color: var(--color-success);\n }\n");var Ss={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-empty",r=["battery-0"],n="f244",o="M80 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-80H80zM64 176c0-8.8 7.2-16 16-16H464c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176z";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}(Ss);var Ts={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-full",r=[128267,"battery","battery-5"],n="f240",o="M0 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-80V176zm80-16c-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-16H80zm368 32V320H96V192H448z";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}(Ts);var Ps={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-half",r=["battery-3"],n="f242",o="M0 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-80V176zm80-16c-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-16H80zm208 32V320H96V192H288z";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}(Ps);var Cs={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-quarter",r=["battery-2"],n="f243",o="M0 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-80V176zm80-16c-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-16H80zm112 32V320H96V192h96z";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}(Cs);var zs={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="weight-scale",r=["weight"],n="f496",o="M384 176c0 70.7-57.3 128-128 128s-128-57.3-128-128s57.3-128 128-128s128 57.3 128 128zm7.8-112C359.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}(zs);var _s,Ds={},Ls={get exports(){return Ds},set exports(e){Ds=e}},As={},Ns={get exports(){return As},set exports(e){As=e}},Ms={};var Is,Bs,Rs,Fs,qs,Hs,Ws,Vs,Us,Gs,Ys,Zs,$s,Xs,Qs={};
|
|
2
2
|
/** @license React v16.13.1
|
|
3
3
|
* react-is.development.js
|
|
4
4
|
*
|