@rededor/cura 1.6.0-alpha.1 → 1.6.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/cjs/cura-accordion_18.cjs.entry.js +1 -1
  2. package/dist/cjs/cura-accordion_18.cjs.entry.js.map +1 -1
  3. package/dist/cjs/cura-calendar.cjs.entry.js +6 -5
  4. package/dist/cjs/cura-calendar.cjs.entry.js.map +1 -1
  5. package/dist/cjs/cura.cjs.js +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/components/cura-calendar/cura-calendar.css +1 -1
  8. package/dist/collection/components/cura-calendar/cura-calendar.js +7 -6
  9. package/dist/collection/components/cura-calendar/cura-calendar.js.map +1 -1
  10. package/dist/collection/components/text/cura-heading/cura-heading.css +26 -31
  11. package/dist/components/cura-calendar2.js +8 -7
  12. package/dist/components/cura-calendar2.js.map +1 -1
  13. package/dist/components/cura-heading2.js +1 -1
  14. package/dist/components/cura-heading2.js.map +1 -1
  15. package/dist/cura/cura.esm.js +1 -1
  16. package/dist/cura/cura.esm.js.map +1 -1
  17. package/dist/cura/{p-56ca01a1.entry.js → p-506747fb.entry.js} +2 -2
  18. package/dist/cura/{p-56ca01a1.entry.js.map → p-506747fb.entry.js.map} +1 -1
  19. package/dist/cura/p-823d0bb5.entry.js +2 -0
  20. package/dist/cura/p-823d0bb5.entry.js.map +1 -0
  21. package/dist/esm/cura-accordion_18.entry.js +1 -1
  22. package/dist/esm/cura-accordion_18.entry.js.map +1 -1
  23. package/dist/esm/cura-calendar.entry.js +6 -5
  24. package/dist/esm/cura-calendar.entry.js.map +1 -1
  25. package/dist/esm/cura.js +1 -1
  26. package/dist/esm/loader.js +1 -1
  27. package/dist/types/components/cura-calendar/cura-calendar.d.ts +7 -7
  28. package/package.json +2 -2
  29. package/dist/cura/p-efce98a2.entry.js +0 -2
  30. package/dist/cura/p-efce98a2.entry.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
 
3
- const curaHeadingCss = ":host{display:block;font-size:var(--font-size-base)}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-family:var(--font-family);font-size:1.714em;font-weight:var(--font-weight-regular);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0px}:host h1.bold-weight,:host h2.bold-weight,:host h3.bold-weight,:host h4.bold-weight,:host h5.bold-weight,:host h6.bold-weight{font-weight:var(--font-weight-medium)}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.071em;letter-spacing:-0.58px}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.214em;line-height:calc(var(--line-height) + 20%)}:host h1.small.bold-weight,:host h1.small ::slotted(b),:host h1.small ::slotted(strong),:host h2.small.bold-weight,:host h2.small ::slotted(b),:host h2.small ::slotted(strong),:host h3.small.bold-weight,:host h3.small ::slotted(b),:host h3.small ::slotted(strong),:host h4.small.bold-weight,:host h4.small ::slotted(b),:host h4.small ::slotted(strong),:host h5.small.bold-weight,:host h5.small ::slotted(b),:host h5.small ::slotted(strong),:host h6.small.bold-weight,:host h6.small ::slotted(b),:host h6.small ::slotted(strong){font-weight:var(--font-weight-bold)}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:0.8571428571em;font-weight:var(--font-weight-medium);letter-spacing:0.6px}:host h1.xsmall.bold-weight,:host h1.xsmall ::slotted(b),:host h1.xsmall ::slotted(strong),:host h2.xsmall.bold-weight,:host h2.xsmall ::slotted(b),:host h2.xsmall ::slotted(strong),:host h3.xsmall.bold-weight,:host h3.xsmall ::slotted(b),:host h3.xsmall ::slotted(strong),:host h4.xsmall.bold-weight,:host h4.xsmall ::slotted(b),:host h4.xsmall ::slotted(strong),:host h5.xsmall.bold-weight,:host h5.xsmall ::slotted(b),:host h5.xsmall ::slotted(strong),:host h6.xsmall.bold-weight,:host h6.xsmall ::slotted(b),:host h6.xsmall ::slotted(strong){font-weight:var(--font-weight-bold)}@media (min-width: 769px) and (max-width: 1920px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:2em}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.357em;letter-spacing:-0.66px}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.357em}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:0.8571428571em;line-height:calc(var(--line-height) + 3%);letter-spacing:0.72px}}@media (min-width: 1921px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:2.5em;line-height:calc(var(--line-height) + 5%);letter-spacing:-0.82px}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.929em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.714em;line-height:calc(var(--line-height) + 30%);letter-spacing:0%}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:1em;line-height:calc(var(--line-height) + 12.857%);letter-spacing:0.28px}}:host ::slotted(b),:host ::slotted(strong),:host ::slotted(span b),:host ::slotted(span strong){font-weight:var(--font-weight-medium)}:host ::slotted(a),:host ::slotted(span a){font-weight:var(--font-weight-bold);color:var(--color-spot);text-underline-offset:10%;cursor:pointer}:host ::slotted(u),:host ::slotted(span u){text-underline-offset:10%}:host ::slotted(abbr){color:var(--color-spot);text-decoration:underline dashed 1px var(--color-spot);text-underline-offset:10%;cursor:default}:host ::slotted(i),:host ::slotted(span i){font-weight:var(--font-weight-medium)}:host ::slotted(em),:host ::slotted(span em){color:var(--color-spot) !important;font-weight:var(--font-weight-bold) !important;font-style:normal !important}";
3
+ const curaHeadingCss = ":host{display:block;font-size:var(--font-size-base)}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-family:var(--font-family);font-size:1.714em;font-weight:var(--font-weight-regular);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0px}:host h1.bold-weight,:host h2.bold-weight,:host h3.bold-weight,:host h4.bold-weight,:host h5.bold-weight,:host h6.bold-weight{font-weight:var(--font-weight-medium)}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.071em;letter-spacing:-0.58px}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.214em;line-height:calc(var(--line-height) + 20%)}:host h1.small.bold-weight,:host h1.small ::slotted(b),:host h1.small ::slotted(strong),:host h2.small.bold-weight,:host h2.small ::slotted(b),:host h2.small ::slotted(strong),:host h3.small.bold-weight,:host h3.small ::slotted(b),:host h3.small ::slotted(strong),:host h4.small.bold-weight,:host h4.small ::slotted(b),:host h4.small ::slotted(strong),:host h5.small.bold-weight,:host h5.small ::slotted(b),:host h5.small ::slotted(strong),:host h6.small.bold-weight,:host h6.small ::slotted(b),:host h6.small ::slotted(strong){font-weight:var(--font-weight-bold)}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:0.8571428571em;font-weight:var(--font-weight-medium);letter-spacing:0.6px}:host h1.xsmall.bold-weight,:host h1.xsmall ::slotted(b),:host h1.xsmall ::slotted(strong),:host h2.xsmall.bold-weight,:host h2.xsmall ::slotted(b),:host h2.xsmall ::slotted(strong),:host h3.xsmall.bold-weight,:host h3.xsmall ::slotted(b),:host h3.xsmall ::slotted(strong),:host h4.xsmall.bold-weight,:host h4.xsmall ::slotted(b),:host h4.xsmall ::slotted(strong),:host h5.xsmall.bold-weight,:host h5.xsmall ::slotted(b),:host h5.xsmall ::slotted(strong),:host h6.xsmall.bold-weight,:host h6.xsmall ::slotted(b),:host h6.xsmall ::slotted(strong){font-weight:var(--font-weight-bold)}:host h1 ::slotted(b),:host h1 ::slotted(strong),:host h2 ::slotted(b),:host h2 ::slotted(strong),:host h3 ::slotted(b),:host h3 ::slotted(strong),:host h4 ::slotted(b),:host h4 ::slotted(strong),:host h5 ::slotted(b),:host h5 ::slotted(strong),:host h6 ::slotted(b),:host h6 ::slotted(strong){font-weight:var(--font-weight-medium)}:host h1 ::slotted(a),:host h2 ::slotted(a),:host h3 ::slotted(a),:host h4 ::slotted(a),:host h5 ::slotted(a),:host h6 ::slotted(a){font-weight:var(--font-weight-bold);color:var(--color-spot);text-underline-offset:10%;cursor:pointer}:host h1 ::slotted(u),:host h2 ::slotted(u),:host h3 ::slotted(u),:host h4 ::slotted(u),:host h5 ::slotted(u),:host h6 ::slotted(u){text-underline-offset:10%}:host h1 ::slotted(abbr),:host h2 ::slotted(abbr),:host h3 ::slotted(abbr),:host h4 ::slotted(abbr),:host h5 ::slotted(abbr),:host h6 ::slotted(abbr){color:var(--color-spot);text-decoration:underline dashed 1px var(--color-spot);text-underline-offset:10%;cursor:default}:host h1 ::slotted(i),:host h2 ::slotted(i),:host h3 ::slotted(i),:host h4 ::slotted(i),:host h5 ::slotted(i),:host h6 ::slotted(i){font-weight:var(--font-weight-medium)}:host h1 ::slotted(em),:host h2 ::slotted(em),:host h3 ::slotted(em),:host h4 ::slotted(em),:host h5 ::slotted(em),:host h6 ::slotted(em){color:var(--color-spot);font-weight:var(--font-weight-bold);font-style:normal}@media (min-width: 769px) and (max-width: 1920px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:2em}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.357em;letter-spacing:-0.66px}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.357em}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:0.8571428571em;line-height:calc(var(--line-height) + 3%);letter-spacing:0.72px}}@media (min-width: 1921px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:2.5em;line-height:calc(var(--line-height) + 5%);letter-spacing:-0.82px}:host h1.large,:host h2.large,:host h3.large,:host h4.large,:host h5.large,:host h6.large{font-size:2.929em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:1.714em;line-height:calc(var(--line-height) + 30%);letter-spacing:0%}:host h1.xsmall,:host h2.xsmall,:host h3.xsmall,:host h4.xsmall,:host h5.xsmall,:host h6.xsmall{font-size:1em;line-height:calc(var(--line-height) + 12.857%);letter-spacing:0.28px}}";
4
4
  const CuraHeadingStyle0 = curaHeadingCss;
5
5
 
6
6
  const CuraHeading = /*@__PURE__*/ proxyCustomElement(class CuraHeading extends HTMLElement {
@@ -1 +1 @@
1
- {"file":"cura-heading2.js","mappings":";;AAAA,MAAM,cAAc,GAAG,23HAA23H,CAAC;AACn5H,0BAAe,cAAc;;MCMhB,WAAW;;;;;QAuDtB,UAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;qBAjD0B,CAAC;oBAMuC,QAAQ;sBAMnD,SAAS;yBAM1B,aAAa;;2BAYX,QAAQ;0BAMT,MAAM;sBAYxB,EAAE;;IAGpB,iBAAiB;QACf,IAAI,CAAC,iBAAiB,EAAE,CAAC;KAC1B;IAED,UAAU;QACR,MAAM,OAAO,GAAG,EAAE,CAAC;QACnB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,GAAI,IAAI,CAAC;QACzC,OAAO,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC;QACtD,OAAO,OAAO,CAAC;KAChB;IAED,iBAAiB;QACf,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;QAC7C,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;QAC/C,IAAI,CAAC,MAAM,GAAG;YACZ,eAAe,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC;YAChE,uBAAuB,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO;YAC7C,sBAAsB,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM;YAC3C,oBAAoB,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvC,qBAAqB,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK;SAC1C,CAAA;KACF;IAED,iBAAiB;QACf,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK;cACxB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC;cACtC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QAChC,OAAO;YACL,gBAAgB,EAAE,IAAI,CAAC,WAAW;YAClC,kBAAkB,EAAE,IAAI,CAAC,YAAY;YACrC,eAAe,EAAE,IAAI,CAAC,UAAU;YAChC,cAAc,EAAE,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC;YACzE,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;SAChE,CAAC;KACH;IAED,aAAa;QACX,MAAM,IAAI,GAAG;YACX,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;YACzE,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;YACzE,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;YACzE,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;YACzE,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;YACzE,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;YACzE,SAAS,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;SAChF,CAAC;QACF,OAAO,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC;KACjD;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,iBAAiB,EAAE,IACjC,IAAI,CAAC,aAAa,EAAE,CACjB,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/text/cura-heading/cura-heading.scss?tag=cura-heading&encapsulation=shadow","src/components/text/cura-heading/cura-heading.tsx"],"sourcesContent":["@import '../../../scss/mixins/responsive.scss';\n\n:host {\n display: block;\n font-size: var(--font-size-base);\n\n h1, h2, h3, h4, h5, h6 {\n font-family: var(--font-family);\n font-size: 1.714em;\n font-weight: var(--font-weight-regular);\n color: var(--color-body);\n line-height: var(--line-height);\n margin-block: var(--margin-block);\n letter-spacing: 0px;\n\n &.bold-weight {\n font-weight: var(--font-weight-medium);\n }\n\n &.large {\n font-size: 2.071em;\n letter-spacing: -0.58px;\n }\n\n &.small {\n font-size: 1.214em;\n line-height: calc(var(--line-height) + 20%);\n\n &.bold-weight, ::slotted(b), ::slotted(strong) {\n font-weight: var(--font-weight-bold);\n }\n }\n\n &.xsmall {\n font-size: 0.8571428571428571em;\n font-weight: var(--font-weight-medium);\n letter-spacing: 0.6px;\n\n &.bold-weight, ::slotted(b), ::slotted(strong) {\n font-weight: var(--font-weight-bold);\n }\n }\n\n }\n\n @include medium-large() {\n h1, h2, h3, h4, h5, h6 {\n font-size: 2em;\n\n &.large {\n font-size: 2.357em;\n letter-spacing: -0.66px;\n }\n\n &.small {\n font-size: 1.357em;\n }\n\n &.xsmall {\n font-size: 0.8571428571428571em;\n line-height: calc(var(--line-height) + 3%);\n letter-spacing: 0.72px;\n }\n\n }\n }\n\n @include xlarge-only() {\n h1, h2, h3, h4, h5, h6 {\n font-size: 2.5em;\n line-height: calc(var(--line-height) + 5%);\n letter-spacing: -0.82px;\n\n &.large {\n font-size: 2.929em;\n }\n\n &.small {\n font-size: 1.714em;\n line-height: calc(var(--line-height) + 30%);\n letter-spacing: 0%;\n }\n\n &.xsmall {\n font-size: 1em;\n line-height: calc(var(--line-height) + 12.857%);\n letter-spacing: 0.28px;\n }\n }\n }\n\n ::slotted(b), ::slotted(strong),\n ::slotted(span b), ::slotted(span strong) {\n font-weight: var(--font-weight-medium);\n }\n\n ::slotted(a),\n ::slotted(span a) {\n font-weight: var(--font-weight-bold);\n color: var(--color-spot);\n text-underline-offset: 10%;\n cursor: pointer;\n }\n\n ::slotted(u),\n ::slotted(span u) {\n text-underline-offset: 10%;\n }\n\n ::slotted(abbr) {\n color: var(--color-spot);\n text-decoration: underline dashed 1px var(--color-spot);\n text-underline-offset: 10%;\n cursor: default;\n }\n\n ::slotted(i),\n ::slotted(span i) {\n font-weight: var(--font-weight-medium);\n }\n\n ::slotted(em),\n ::slotted(span em) {\n color: var(--color-spot) !important;\n font-weight: var(--font-weight-bold) !important;\n font-style: normal !important;\n }\n\n}\n","import { Component, Host, h, Prop, Element, State } from '@stencil/core';\n\n@Component({\n tag: 'cura-heading',\n styleUrl: 'cura-heading.scss',\n shadow: true,\n})\nexport class CuraHeading {\n\n /**\n * Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ...\n * Values: 1(default) to 6.\n */\n @Prop({reflect: true}) level: 1 | 2 | 3 | 4 | 5 | 6 = 1;\n\n /**\n * Heading style size.\n * Values: regular (deprecated), medium (default) | large | small | caption (deprecated) | xsmall.\n */\n @Prop({reflect: true}) size: 'regular' | 'medium' | 'large' | 'small' | 'caption' | 'xsmall' = 'medium';\n\n /**\n * Heading font weight. It is possible to use regular HTML tags like <b> or <strong> as well.\n * Values: regular (default) | bold.\n */\n @Prop({reflect: true}) weight: 'regular' | 'bold' = 'regular';\n\n /**\n * Apply design system color to interactive elements like <a> and <abbr> inside the text.\n * Values: Color from design system scheme. Default to 'accent-dark'.\n */\n @Prop({reflect: true}) spotColor = 'accent-dark';\n\n /**\n * Text color.\n * Values: Color from design system scheme. Default to the font color from the theme.\n */\n @Prop({reflect: true}) color: string;\n\n /**\n * CSS margin-block property values.\n * Default to 1.25em\n */\n @Prop({reflect: true}) marginBlock = '1.25em';\n\n /**\n * CSS line-height property values.\n * Default to 130%\n */\n @Prop({reflect: true}) lineHeight = '130%';\n\n /**\n * Host element <cura-heading>\n */\n @Element() host: HTMLElement;\n\n /**\n * Internal Props\n */\n weights: any;\n fontSizeBase: string;\n @State() styles = {};\n theme = window.CuraAPI.theme;\n\n connectedCallback() {\n this.setFontProperties();\n }\n\n getClasses() {\n const classes = {};\n classes[this.size.toLowerCase()] = true;\n classes[`${this.weight.toLowerCase()}-weight`] = true;\n return classes;\n }\n\n setFontProperties() {\n this.weights = this.theme.fonts.getWeights();\n this.fontSizeBase = this.theme.fonts.getSize();\n this.styles = {\n '--font-family': window.CuraAPI.theme.fonts.getFamily('heading'),\n '--font-weight-regular': this.weights.regular,\n '--font-weight-medium': this.weights.medium,\n '--font-weight-bold': this.weights.bold,\n '--font-weight-black': this.weights.black\n }\n }\n\n hostCSSProperties() {\n const fontColor = this.color\n ? this.theme.colors.getColor(this.color)\n : this.theme.fonts.getColor();\n return {\n '--margin-block': this.marginBlock,\n '--font-size-base': this.fontSizeBase,\n '--line-height': this.lineHeight,\n '--color-body': fontColor || this.theme.colors.getColor('neutral-darker'),\n '--color-spot': this.theme.colors.getColor(`${this.spotColor}`)\n };\n }\n\n getHeadingTag() {\n const tags = {\n '1': <h1 style={this.styles} class={this.getClasses()}><slot></slot></h1>,\n '2': <h2 style={this.styles} class={this.getClasses()}><slot></slot></h2>,\n '3': <h3 style={this.styles} class={this.getClasses()}><slot></slot></h3>,\n '4': <h4 style={this.styles} class={this.getClasses()}><slot></slot></h4>,\n '5': <h5 style={this.styles} class={this.getClasses()}><slot></slot></h5>,\n '6': <h6 style={this.styles} class={this.getClasses()}><slot></slot></h6>,\n 'default': <h1 style={this.styles} class={this.getClasses()}><slot></slot></h1>\n };\n return tags[`${this.level}`] || tags['default'];\n }\n\n render() {\n return (\n <Host style={this.hostCSSProperties()}>\n { this.getHeadingTag() }\n </Host>\n );\n }\n\n}\n"],"version":3}
1
+ {"file":"cura-heading2.js","mappings":";;AAAA,MAAM,cAAc,GAAG,wgJAAwgJ,CAAC;AAChiJ,0BAAe,cAAc;;MCMhB,WAAW;;;;;QAuDtB,UAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;qBAjD0B,CAAC;oBAMuC,QAAQ;sBAMnD,SAAS;yBAM1B,aAAa;;2BAYX,QAAQ;0BAMT,MAAM;sBAYxB,EAAE;;IAGpB,iBAAiB;QACf,IAAI,CAAC,iBAAiB,EAAE,CAAC;KAC1B;IAED,UAAU;QACR,MAAM,OAAO,GAAG,EAAE,CAAC;QACnB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,GAAI,IAAI,CAAC;QACzC,OAAO,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC;QACtD,OAAO,OAAO,CAAC;KAChB;IAED,iBAAiB;QACf,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;QAC7C,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;QAC/C,IAAI,CAAC,MAAM,GAAG;YACZ,eAAe,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC;YAChE,uBAAuB,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO;YAC7C,sBAAsB,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM;YAC3C,oBAAoB,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvC,qBAAqB,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK;SAC1C,CAAA;KACF;IAED,iBAAiB;QACf,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK;cACxB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC;cACtC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QAChC,OAAO;YACL,gBAAgB,EAAE,IAAI,CAAC,WAAW;YAClC,kBAAkB,EAAE,IAAI,CAAC,YAAY;YACrC,eAAe,EAAE,IAAI,CAAC,UAAU;YAChC,cAAc,EAAE,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC;YACzE,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;SAChE,CAAC;KACH;IAED,aAAa;QACX,MAAM,IAAI,GAAG;YACX,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;YACzE,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;YACzE,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;YACzE,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;YACzE,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;YACzE,GAAG,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;YACzE,SAAS,EAAE,UAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAE,eAAa,CAAK;SAChF,CAAC;QACF,OAAO,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC;KACjD;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,iBAAiB,EAAE,IACjC,IAAI,CAAC,aAAa,EAAE,CACjB,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/text/cura-heading/cura-heading.scss?tag=cura-heading&encapsulation=shadow","src/components/text/cura-heading/cura-heading.tsx"],"sourcesContent":["@import '../../../scss/mixins/responsive.scss';\n\n:host {\n display: block;\n font-size: var(--font-size-base);\n\n h1, h2, h3, h4, h5, h6 {\n font-family: var(--font-family);\n font-size: 1.714em;\n font-weight: var(--font-weight-regular);\n color: var(--color-body);\n line-height: var(--line-height);\n margin-block: var(--margin-block);\n letter-spacing: 0px;\n\n &.bold-weight {\n font-weight: var(--font-weight-medium);\n }\n\n &.large {\n font-size: 2.071em;\n letter-spacing: -0.58px;\n }\n\n &.small {\n font-size: 1.214em;\n line-height: calc(var(--line-height) + 20%);\n\n &.bold-weight, ::slotted(b), ::slotted(strong) {\n font-weight: var(--font-weight-bold);\n }\n }\n\n &.xsmall {\n font-size: 0.8571428571428571em;\n font-weight: var(--font-weight-medium);\n letter-spacing: 0.6px;\n\n &.bold-weight, ::slotted(b), ::slotted(strong) {\n font-weight: var(--font-weight-bold);\n }\n }\n\n ::slotted(b), ::slotted(strong) {\n font-weight: var(--font-weight-medium);\n }\n\n ::slotted(a) {\n font-weight: var(--font-weight-bold);\n color: var(--color-spot);\n text-underline-offset: 10%;\n cursor: pointer;\n }\n\n ::slotted(u) {\n text-underline-offset: 10%;\n }\n\n ::slotted(abbr) {\n color: var(--color-spot);\n text-decoration: underline dashed 1px var(--color-spot);\n text-underline-offset: 10%;\n cursor: default;\n }\n\n ::slotted(i) {\n font-weight: var(--font-weight-medium);\n }\n\n ::slotted(em) {\n color: var(--color-spot);\n font-weight: var(--font-weight-bold);\n font-style: normal;\n }\n\n }\n\n @include medium-large() {\n h1, h2, h3, h4, h5, h6 {\n font-size: 2em;\n\n &.large {\n font-size: 2.357em;\n letter-spacing: -0.66px;\n }\n\n &.small {\n font-size: 1.357em;\n }\n\n &.xsmall {\n font-size: 0.8571428571428571em;\n line-height: calc(var(--line-height) + 3%);\n letter-spacing: 0.72px;\n }\n\n }\n }\n\n @include xlarge-only() {\n h1, h2, h3, h4, h5, h6 {\n font-size: 2.5em;\n line-height: calc(var(--line-height) + 5%);\n letter-spacing: -0.82px;\n\n &.large {\n font-size: 2.929em;\n }\n\n &.small {\n font-size: 1.714em;\n line-height: calc(var(--line-height) + 30%);\n letter-spacing: 0%;\n }\n\n &.xsmall {\n font-size: 1em;\n line-height: calc(var(--line-height) + 12.857%);\n letter-spacing: 0.28px;\n }\n }\n }\n\n}\n","import { Component, Host, h, Prop, Element, State } from '@stencil/core';\n\n@Component({\n tag: 'cura-heading',\n styleUrl: 'cura-heading.scss',\n shadow: true,\n})\nexport class CuraHeading {\n\n /**\n * Heading level for semantics. Will render the related HTML tag <h1>, <h2>, ...\n * Values: 1(default) to 6.\n */\n @Prop({reflect: true}) level: 1 | 2 | 3 | 4 | 5 | 6 = 1;\n\n /**\n * Heading style size.\n * Values: regular (deprecated), medium (default) | large | small | caption (deprecated) | xsmall.\n */\n @Prop({reflect: true}) size: 'regular' | 'medium' | 'large' | 'small' | 'caption' | 'xsmall' = 'medium';\n\n /**\n * Heading font weight. It is possible to use regular HTML tags like <b> or <strong> as well.\n * Values: regular (default) | bold.\n */\n @Prop({reflect: true}) weight: 'regular' | 'bold' = 'regular';\n\n /**\n * Apply design system color to interactive elements like <a> and <abbr> inside the text.\n * Values: Color from design system scheme. Default to 'accent-dark'.\n */\n @Prop({reflect: true}) spotColor = 'accent-dark';\n\n /**\n * Text color.\n * Values: Color from design system scheme. Default to the font color from the theme.\n */\n @Prop({reflect: true}) color: string;\n\n /**\n * CSS margin-block property values.\n * Default to 1.25em\n */\n @Prop({reflect: true}) marginBlock = '1.25em';\n\n /**\n * CSS line-height property values.\n * Default to 130%\n */\n @Prop({reflect: true}) lineHeight = '130%';\n\n /**\n * Host element <cura-heading>\n */\n @Element() host: HTMLElement;\n\n /**\n * Internal Props\n */\n weights: any;\n fontSizeBase: string;\n @State() styles = {};\n theme = window.CuraAPI.theme;\n\n connectedCallback() {\n this.setFontProperties();\n }\n\n getClasses() {\n const classes = {};\n classes[this.size.toLowerCase()] = true;\n classes[`${this.weight.toLowerCase()}-weight`] = true;\n return classes;\n }\n\n setFontProperties() {\n this.weights = this.theme.fonts.getWeights();\n this.fontSizeBase = this.theme.fonts.getSize();\n this.styles = {\n '--font-family': window.CuraAPI.theme.fonts.getFamily('heading'),\n '--font-weight-regular': this.weights.regular,\n '--font-weight-medium': this.weights.medium,\n '--font-weight-bold': this.weights.bold,\n '--font-weight-black': this.weights.black\n }\n }\n\n hostCSSProperties() {\n const fontColor = this.color\n ? this.theme.colors.getColor(this.color)\n : this.theme.fonts.getColor();\n return {\n '--margin-block': this.marginBlock,\n '--font-size-base': this.fontSizeBase,\n '--line-height': this.lineHeight,\n '--color-body': fontColor || this.theme.colors.getColor('neutral-darker'),\n '--color-spot': this.theme.colors.getColor(`${this.spotColor}`)\n };\n }\n\n getHeadingTag() {\n const tags = {\n '1': <h1 style={this.styles} class={this.getClasses()}><slot></slot></h1>,\n '2': <h2 style={this.styles} class={this.getClasses()}><slot></slot></h2>,\n '3': <h3 style={this.styles} class={this.getClasses()}><slot></slot></h3>,\n '4': <h4 style={this.styles} class={this.getClasses()}><slot></slot></h4>,\n '5': <h5 style={this.styles} class={this.getClasses()}><slot></slot></h5>,\n '6': <h6 style={this.styles} class={this.getClasses()}><slot></slot></h6>,\n 'default': <h1 style={this.styles} class={this.getClasses()}><slot></slot></h1>\n };\n return tags[`${this.level}`] || tags['default'];\n }\n\n render() {\n return (\n <Host style={this.hostCSSProperties()}>\n { this.getHeadingTag() }\n </Host>\n );\n }\n\n}\n"],"version":3}
@@ -1,2 +1,2 @@
1
- import{p as e,b as o}from"./p-af3ac476.js";export{s as setNonce}from"./p-af3ac476.js";import{g as l}from"./p-daf9feac.js";import"./p-ec4996c2.js";import"./p-1b201271.js";var a=()=>{const o=import.meta.url;const l={};if(o!==""){l.resourcesUrl=new URL(".",o).href}return e(l)};a().then((async e=>{await l();return o(JSON.parse('[["p-efce98a2",[[1,"cura-dropdown-search-new",{"name":[513],"size":[513],"status":[1537],"disabled":[516],"required":[516],"placeholder":[513],"label":[513],"icon":[513],"maxheight":[513],"value":[1025],"searchdelay":[514],"searchminchars":[514],"styles":[32],"zoomState":[32],"isOnFocus":[32],"dropdownItems":[32],"setFocus":[64],"selectOption":[64]}],[65,"cura-button",{"type":[513],"size":[513],"disabled":[516],"isLoading":[516,"is-loading"],"iconName":[513,"icon-name"],"iconset":[513],"iconPosition":[513,"icon-position"],"iconOnly":[516,"icon-only"],"href":[513],"target":[513],"color":[1],"background":[513],"fontColor":[513,"font-color"],"textAlign":[513,"text-align"],"justify":[516],"styles":[32],"hovered":[32]},null,{"background":["setColors"],"color":["setColors"]}],[1,"cura-accordion-item",{"label":[513],"iconSize":[514,"icon-size"],"labelIcon":[513,"label-icon"],"openIcon":[513,"open-icon"],"closeIcon":[513,"close-icon"],"iconColor":[513,"icon-color"],"colorMode":[1,"color-mode"],"level":[514],"opened":[1540],"styles":[32]}],[1,"cura-badge-distance",{"distance":[2],"label":[513],"styles":[32],"displayDistance":[32]},null,{"distance":["formatDistance"]}],[1,"cura-dropdown-search-category"],[1,"cura-accordion",{"color":[513],"colorMode":[513,"color-mode"],"iconSize":[514,"icon-size"],"labelIcon":[513,"label-icon"],"openIcon":[513,"open-icon"],"closeIcon":[513,"close-icon"],"iconColor":[513,"icon-color"],"behavior":[513],"level":[514],"styles":[32]},null,{"color":["handleChangeColor"]}],[1,"cura-avatar",{"size":[1],"backgroundColor":[513,"background-color"],"borderColor":[513,"border-color"],"borderRadius":[513,"border-radius"],"border":[516],"type":[513],"imageSrc":[1537,"image-src"],"imageSrcDefault":[513,"image-src-default"],"floating":[516],"styles":[32]},null,{"size":["sizeHandler"]}],[1,"cura-dropdown-search-option-new",{"value":[1],"optionid":[1],"selectable":[516],"selected":[516],"highlighted":[516]}],[1,"cura-page-template",{"contentwidth":[513]}],[65,"cura-select",{"label":[513],"placeholder":[513],"value":[1537],"mode":[513],"size":[513],"iconName":[1,"icon-name"],"status":[1537],"disabled":[516],"required":[516],"searchBehavior":[516,"search-behavior"],"caseSensitive":[516,"case-sensitive"],"isHovered":[32],"isFocused":[32],"isOpen":[32],"options":[32],"activeIndex":[32],"textInput":[32]},null,{"activeIndex":["updateOptionHighlights"],"textInput":["filterOptions"],"value":["handleValueChange"]}],[1,"cura-select-option",{"value":[513],"selected":[516],"active":[516],"size":[1],"styles":[32]},null,{"size":["getSize"]}],[65,"cura-input-text",{"mode":[1537],"status":[1537],"size":[1537],"type":[513],"inputMode":[513,"input-mode"],"label":[513],"name":[513],"placeholder":[513],"value":[1544],"iconName":[1537,"icon-name"],"helperText":[1537,"helper-text"],"disabled":[516],"required":[516],"maskPreset":[8,"mask-preset"],"enableSelectionMode":[1540,"enable-selection-mode"],"maskRegex":[1537,"mask-regex"],"maskAdvanced":[1544,"mask-advanced"],"maxlength":[1538],"readOnly":[516,"read-only"],"isLoading":[1540,"is-loading"],"clearIcon":[1540,"clear-icon"],"hideErrorIcon":[4,"hide-error-icon"],"autocomplete":[513],"isHovered":[32],"isFocused":[32],"styles":[32],"setFocus":[64]},null,{"styles":["connectedCallback"],"size":["getClasses"],"status":["renderIcon"],"mode":["renderIcon"],"maskPreset":["initializeMask"],"maskRegex":["initializeMask"],"maskAdvanced":["initializeMask"]}],[65,"cura-button-transparent",{"type":[513],"size":[513],"disabled":[516],"isLoading":[516,"is-loading"],"iconName":[513,"icon-name"],"iconset":[513],"iconPosition":[513,"icon-position"],"iconOnly":[516,"icon-only"],"href":[513],"target":[513],"color":[513],"fontColor":[513,"font-color"],"textAlign":[513,"text-align"],"justify":[516],"hovered":[32],"styles":[32]},null,{"fontColor":["getSymbolColor"],"color":["getSymbolColor"]}],[1,"cura-paragraph",{"size":[513],"spotColor":[513,"spot-color"],"color":[513],"marginBlock":[513,"margin-block"],"lineHeight":[513,"line-height"],"styles":[32]}],[1,"cura-heading",{"level":[514],"size":[513],"weight":[513],"spotColor":[513,"spot-color"],"color":[513],"marginBlock":[513,"margin-block"],"lineHeight":[513,"line-height"],"styles":[32]}],[1,"cura-loader-circle",{"size":[513],"color":[513]}],[1,"cura-icon",{"name":[513],"color":[1],"size":[8],"iconset":[513],"disabled":[4]},null,{"size":["sizeHandler"],"color":["colorHandler"],"disabled":["colorHandler"]}],[1,"cura-label",{"size":[513],"weight":[513],"spotColor":[513,"spot-color"],"color":[1],"marginBlock":[513,"margin-block"],"lineHeight":[513,"line-height"],"styles":[32]},null,{"color":["handleChangeColor"],"spotColor":["handleChangeColor"]}]]],["p-18af52e4",[[65,"cura-input-date",{"label":[513],"status":[1537],"size":[513],"name":[513],"helperText":[513,"helper-text"],"enableRangeDates":[516,"enable-range-dates"],"disableFutureDates":[516,"disable-future-dates"],"disablePassDates":[516,"disable-pass-dates"],"iconName":[513,"icon-name"],"placeholder":[513],"styles":[32],"isCalendarVisible":[32],"dates":[32],"value":[32],"dateSettings":[32]},[[8,"click","handleClick"]],{"enableRangeDates":["updateDateSettings"]}]]],["p-6243742a",[[1,"cura-stepper",{"activeStepIndex":[514,"active-step-index"],"errorInCurrentStep":[516,"error-in-current-step"],"displayHeading":[516,"display-heading"],"variant":[513],"steps":[1],"styles":[32],"stepList":[32]}]]],["p-bf69b32f",[[1,"cura-tooltip",{"elementId":[1,"element-id"],"interactive":[4],"delay":[2],"maxWidth":[1,"max-width"],"position":[513],"label":[513],"closeButton":[516,"close-button"],"isMobile":[32]},[[9,"resize","onWindowResize"],[9,"scroll","onWindowScroll"]]]]],["p-b1d6ee8d",[[1,"cura-dropdown-search",{"size":[1537],"status":[513],"disabled":[516],"name":[513],"required":[1540],"selected":[1540],"value":[1537],"placeholder":[1537],"label":[1537],"iconName":[513,"icon-name"],"dropdownMaxHeight":[513,"dropdown-max-height"],"overlayVisible":[32],"isDropdownOpen":[32],"styles":[32],"isMobile":[32],"mode":[32],"inputTextRef":[32],"isOnBlurInput":[32],"hoveredIndex":[32],"options":[32],"originalOverflow":[32],"screenDefaultHeight":[32]},null,{"value":["onValueChange"]}]]],["p-02c2b948",[[1,"cura-toast",{"type":[1],"position":[1],"icon":[513],"label":[513],"closeButton":[516,"close-button"],"loader":[516],"autoCloseDelay":[514,"auto-close-delay"],"styles":[32],"progress":[32],"close":[64]},null,{"type":["handleChangeType"],"position":["handleChangeType"]}]]],["p-89671cd4",[[1,"cura-alert",{"type":[1],"floating":[516],"label":[513],"closeable":[516],"icon":[513],"styles":[32]},null,{"type":["setColors"]}]]],["p-0a391c03",[[65,"cura-button-outline",{"type":[513],"size":[513],"disabled":[516],"isLoading":[516,"is-loading"],"iconName":[513,"icon-name"],"iconset":[513],"iconPosition":[513,"icon-position"],"iconOnly":[516,"icon-only"],"href":[513],"target":[513],"color":[1],"background":[1],"fontColor":[1,"font-color"],"textAlign":[513,"text-align"],"justify":[516],"styles":[32],"hovered":[32]},null,{"background":["setColors"],"color":["setColors","getSymbolColor"],"fontColor":["getSymbolColor"]}]]],["p-500f1256",[[1,"cura-button-select",{"selected":[1540],"iconName":[1537,"icon-name"],"size":[513],"counter":[1538],"disabled":[516],"background":[1],"color":[1],"iconPosition":[513,"icon-position"],"hovered":[32],"styles":[32]},null,{"background":["setColors"],"color":["setColors"]}]]],["p-f1098b41",[[65,"cura-checkbox",{"checked":[1540],"indeterminate":[1540],"status":[1537],"disabled":[516],"required":[516],"label":[513],"ontabindex":[514],"position":[513],"value":[513],"name":[513],"size":[513],"background":[1],"iconColor":[1,"icon-color"],"color":[1],"styles":[32]},null,{"size":["sizeHandler"],"color":["setColors"],"background":["setColors","assignColor"],"iconColor":["assignColor"]}]]],["p-5afb630e",[[1,"cura-icons-view",{"selected":[32]}]]],["p-fc9584dd",[[1,"cura-modal",{"open":[1540],"background":[1],"top":[2],"bottom":[2],"left":[2],"right":[2],"mobileCloseLabel":[513,"mobile-close-label"],"zindex":[513],"styles":[32]},null,{"background":["setColors"],"top":["setTop"],"bottom":["setBottom"],"left":["setLeft"],"right":["setRight"]}]]],["p-d227469a",[[65,"cura-radio",{"checked":[1540],"status":[1537],"disabled":[516],"required":[516],"label":[513],"ontabindex":[514],"position":[513],"value":[513],"name":[513],"background":[1],"size":[1],"color":[1],"styles":[32]},null,{"size":["sizeHandler"],"color":["setColors"],"background":["setColors","assignColor"]}]]],["p-86d317f3",[[1,"cura-dropdown-search-not-found"]]],["p-ee7328a5",[[1,"cura-dropdown-search-option",{"value":[513],"selected":[1540],"selectable":[516],"hovered":[1540],"styles":[32]},null,{"selected":["updateIconColor"]}]]],["p-46994182",[[1,"cura-dropdown-search-option-title"]]],["p-9214ee88",[[65,"cura-switch",{"checked":[1540],"disabled":[516],"label":[513],"ontabindex":[514],"position":[513],"size":[513],"background":[1],"color":[1],"styles":[32]},null,{"size":["sizeHandler"],"color":["setColors"],"background":["setColors"]}]]],["p-d2da92d9",[[1,"cura-badge-dot",{"color":[1],"disabled":[516],"type":[513],"styles":[32]}]]],["p-bfaf9964",[[1,"cura-card",{"hasPadding":[1028,"has-padding"],"hasShadow":[1028,"has-shadow"],"type":[1025],"colorMode":[1025,"color-mode"],"href":[1537],"target":[513],"styles":[32]}]]],["p-9dd47ec6",[[1,"cura-display",{"level":[514],"size":[513],"spotColor":[1,"spot-color"],"color":[1],"marginBlock":[513,"margin-block"],"lineHeight":[513,"line-height"],"styles":[32]},null,{"color":["handleChangeColor"],"spotColor":["handleChangeColor"]}]]],["p-56ca01a1",[[1,"cura-calendar",{"period":[513],"width":[513],"minWidth":[513,"min-width"],"maxWidth":[513,"max-width"],"mode":[513],"dateFormat":[1537,"date-format"],"locale":[513],"type":[513],"disable":[16],"enable":[16],"defaultDate":[1537,"default-date"],"customDates":[16],"limitRange":[514,"limit-range"],"disablePassDates":[1540,"disable-pass-dates"],"disableFutureDates":[1540,"disable-future-dates"],"collapsed":[1540],"floating":[1540],"embedded":[1540],"selectLabelColorMode":[513,"select-label-color-mode"],"currentDate":[32],"selectedDates":[32],"rangeStart":[32],"defaultDates":[32],"selectMonth":[32],"selectYear":[32],"styles":[32]},null,{"customDates":["watchDefaultDatesArray"],"defaultDate":["handleDefaultDateChange"]}]]],["p-d25142cd",[[1,"cura-badge-counter",{"number":[514],"color":[1],"disabled":[4],"type":[1],"styles":[32]},null,{"disabled":["handleColorChange"],"color":["handleColorChange"],"type":["handleColorChange"]}]]],["p-24cd591e",[[1,"cura-loader-bar",{"color":[1],"progress":[2],"styles":[32]},null,{"color":["handleChangeColor"],"progress":["handleProgress"]}]]],["p-02717e7d",[[1,"cura-badge-pill",{"type":[513],"color":[1],"iconName":[513,"icon-name"],"iconset":[513],"disabled":[516],"iconOnly":[516,"icon-only"],"borderRadius":[513,"border-radius"],"styles":[32]},null,{"color":["watchColorChange"]}]]],["p-635c0f4d",[[1,"cura-stepper-item",{"displayHeading":[516,"display-heading"],"heading":[513],"label":[513],"status":[513],"styles":[32]}],[1,"cura-progress-bar",{"progressColor":[513,"progress-color"],"progress":[514],"size":[514],"strokeWidth":[514,"stroke-width"],"active":[516]}]]]]'),e)}));
1
+ import{p as e,b as o}from"./p-af3ac476.js";export{s as setNonce}from"./p-af3ac476.js";import{g as l}from"./p-daf9feac.js";import"./p-ec4996c2.js";import"./p-1b201271.js";var a=()=>{const o=import.meta.url;const l={};if(o!==""){l.resourcesUrl=new URL(".",o).href}return e(l)};a().then((async e=>{await l();return o(JSON.parse('[["p-823d0bb5",[[1,"cura-dropdown-search-new",{"name":[513],"size":[513],"status":[1537],"disabled":[516],"required":[516],"placeholder":[513],"label":[513],"icon":[513],"maxheight":[513],"value":[1025],"searchdelay":[514],"searchminchars":[514],"styles":[32],"zoomState":[32],"isOnFocus":[32],"dropdownItems":[32],"setFocus":[64],"selectOption":[64]}],[65,"cura-button",{"type":[513],"size":[513],"disabled":[516],"isLoading":[516,"is-loading"],"iconName":[513,"icon-name"],"iconset":[513],"iconPosition":[513,"icon-position"],"iconOnly":[516,"icon-only"],"href":[513],"target":[513],"color":[1],"background":[513],"fontColor":[513,"font-color"],"textAlign":[513,"text-align"],"justify":[516],"styles":[32],"hovered":[32]},null,{"background":["setColors"],"color":["setColors"]}],[1,"cura-accordion-item",{"label":[513],"iconSize":[514,"icon-size"],"labelIcon":[513,"label-icon"],"openIcon":[513,"open-icon"],"closeIcon":[513,"close-icon"],"iconColor":[513,"icon-color"],"colorMode":[1,"color-mode"],"level":[514],"opened":[1540],"styles":[32]}],[1,"cura-badge-distance",{"distance":[2],"label":[513],"styles":[32],"displayDistance":[32]},null,{"distance":["formatDistance"]}],[1,"cura-dropdown-search-category"],[1,"cura-accordion",{"color":[513],"colorMode":[513,"color-mode"],"iconSize":[514,"icon-size"],"labelIcon":[513,"label-icon"],"openIcon":[513,"open-icon"],"closeIcon":[513,"close-icon"],"iconColor":[513,"icon-color"],"behavior":[513],"level":[514],"styles":[32]},null,{"color":["handleChangeColor"]}],[1,"cura-avatar",{"size":[1],"backgroundColor":[513,"background-color"],"borderColor":[513,"border-color"],"borderRadius":[513,"border-radius"],"border":[516],"type":[513],"imageSrc":[1537,"image-src"],"imageSrcDefault":[513,"image-src-default"],"floating":[516],"styles":[32]},null,{"size":["sizeHandler"]}],[1,"cura-dropdown-search-option-new",{"value":[1],"optionid":[1],"selectable":[516],"selected":[516],"highlighted":[516]}],[1,"cura-page-template",{"contentwidth":[513]}],[65,"cura-select",{"label":[513],"placeholder":[513],"value":[1537],"mode":[513],"size":[513],"iconName":[1,"icon-name"],"status":[1537],"disabled":[516],"required":[516],"searchBehavior":[516,"search-behavior"],"caseSensitive":[516,"case-sensitive"],"isHovered":[32],"isFocused":[32],"isOpen":[32],"options":[32],"activeIndex":[32],"textInput":[32]},null,{"activeIndex":["updateOptionHighlights"],"textInput":["filterOptions"],"value":["handleValueChange"]}],[1,"cura-select-option",{"value":[513],"selected":[516],"active":[516],"size":[1],"styles":[32]},null,{"size":["getSize"]}],[65,"cura-input-text",{"mode":[1537],"status":[1537],"size":[1537],"type":[513],"inputMode":[513,"input-mode"],"label":[513],"name":[513],"placeholder":[513],"value":[1544],"iconName":[1537,"icon-name"],"helperText":[1537,"helper-text"],"disabled":[516],"required":[516],"maskPreset":[8,"mask-preset"],"enableSelectionMode":[1540,"enable-selection-mode"],"maskRegex":[1537,"mask-regex"],"maskAdvanced":[1544,"mask-advanced"],"maxlength":[1538],"readOnly":[516,"read-only"],"isLoading":[1540,"is-loading"],"clearIcon":[1540,"clear-icon"],"hideErrorIcon":[4,"hide-error-icon"],"autocomplete":[513],"isHovered":[32],"isFocused":[32],"styles":[32],"setFocus":[64]},null,{"styles":["connectedCallback"],"size":["getClasses"],"status":["renderIcon"],"mode":["renderIcon"],"maskPreset":["initializeMask"],"maskRegex":["initializeMask"],"maskAdvanced":["initializeMask"]}],[65,"cura-button-transparent",{"type":[513],"size":[513],"disabled":[516],"isLoading":[516,"is-loading"],"iconName":[513,"icon-name"],"iconset":[513],"iconPosition":[513,"icon-position"],"iconOnly":[516,"icon-only"],"href":[513],"target":[513],"color":[513],"fontColor":[513,"font-color"],"textAlign":[513,"text-align"],"justify":[516],"hovered":[32],"styles":[32]},null,{"fontColor":["getSymbolColor"],"color":["getSymbolColor"]}],[1,"cura-paragraph",{"size":[513],"spotColor":[513,"spot-color"],"color":[513],"marginBlock":[513,"margin-block"],"lineHeight":[513,"line-height"],"styles":[32]}],[1,"cura-heading",{"level":[514],"size":[513],"weight":[513],"spotColor":[513,"spot-color"],"color":[513],"marginBlock":[513,"margin-block"],"lineHeight":[513,"line-height"],"styles":[32]}],[1,"cura-loader-circle",{"size":[513],"color":[513]}],[1,"cura-icon",{"name":[513],"color":[1],"size":[8],"iconset":[513],"disabled":[4]},null,{"size":["sizeHandler"],"color":["colorHandler"],"disabled":["colorHandler"]}],[1,"cura-label",{"size":[513],"weight":[513],"spotColor":[513,"spot-color"],"color":[1],"marginBlock":[513,"margin-block"],"lineHeight":[513,"line-height"],"styles":[32]},null,{"color":["handleChangeColor"],"spotColor":["handleChangeColor"]}]]],["p-18af52e4",[[65,"cura-input-date",{"label":[513],"status":[1537],"size":[513],"name":[513],"helperText":[513,"helper-text"],"enableRangeDates":[516,"enable-range-dates"],"disableFutureDates":[516,"disable-future-dates"],"disablePassDates":[516,"disable-pass-dates"],"iconName":[513,"icon-name"],"placeholder":[513],"styles":[32],"isCalendarVisible":[32],"dates":[32],"value":[32],"dateSettings":[32]},[[8,"click","handleClick"]],{"enableRangeDates":["updateDateSettings"]}]]],["p-6243742a",[[1,"cura-stepper",{"activeStepIndex":[514,"active-step-index"],"errorInCurrentStep":[516,"error-in-current-step"],"displayHeading":[516,"display-heading"],"variant":[513],"steps":[1],"styles":[32],"stepList":[32]}]]],["p-bf69b32f",[[1,"cura-tooltip",{"elementId":[1,"element-id"],"interactive":[4],"delay":[2],"maxWidth":[1,"max-width"],"position":[513],"label":[513],"closeButton":[516,"close-button"],"isMobile":[32]},[[9,"resize","onWindowResize"],[9,"scroll","onWindowScroll"]]]]],["p-b1d6ee8d",[[1,"cura-dropdown-search",{"size":[1537],"status":[513],"disabled":[516],"name":[513],"required":[1540],"selected":[1540],"value":[1537],"placeholder":[1537],"label":[1537],"iconName":[513,"icon-name"],"dropdownMaxHeight":[513,"dropdown-max-height"],"overlayVisible":[32],"isDropdownOpen":[32],"styles":[32],"isMobile":[32],"mode":[32],"inputTextRef":[32],"isOnBlurInput":[32],"hoveredIndex":[32],"options":[32],"originalOverflow":[32],"screenDefaultHeight":[32]},null,{"value":["onValueChange"]}]]],["p-02c2b948",[[1,"cura-toast",{"type":[1],"position":[1],"icon":[513],"label":[513],"closeButton":[516,"close-button"],"loader":[516],"autoCloseDelay":[514,"auto-close-delay"],"styles":[32],"progress":[32],"close":[64]},null,{"type":["handleChangeType"],"position":["handleChangeType"]}]]],["p-89671cd4",[[1,"cura-alert",{"type":[1],"floating":[516],"label":[513],"closeable":[516],"icon":[513],"styles":[32]},null,{"type":["setColors"]}]]],["p-0a391c03",[[65,"cura-button-outline",{"type":[513],"size":[513],"disabled":[516],"isLoading":[516,"is-loading"],"iconName":[513,"icon-name"],"iconset":[513],"iconPosition":[513,"icon-position"],"iconOnly":[516,"icon-only"],"href":[513],"target":[513],"color":[1],"background":[1],"fontColor":[1,"font-color"],"textAlign":[513,"text-align"],"justify":[516],"styles":[32],"hovered":[32]},null,{"background":["setColors"],"color":["setColors","getSymbolColor"],"fontColor":["getSymbolColor"]}]]],["p-500f1256",[[1,"cura-button-select",{"selected":[1540],"iconName":[1537,"icon-name"],"size":[513],"counter":[1538],"disabled":[516],"background":[1],"color":[1],"iconPosition":[513,"icon-position"],"hovered":[32],"styles":[32]},null,{"background":["setColors"],"color":["setColors"]}]]],["p-f1098b41",[[65,"cura-checkbox",{"checked":[1540],"indeterminate":[1540],"status":[1537],"disabled":[516],"required":[516],"label":[513],"ontabindex":[514],"position":[513],"value":[513],"name":[513],"size":[513],"background":[1],"iconColor":[1,"icon-color"],"color":[1],"styles":[32]},null,{"size":["sizeHandler"],"color":["setColors"],"background":["setColors","assignColor"],"iconColor":["assignColor"]}]]],["p-5afb630e",[[1,"cura-icons-view",{"selected":[32]}]]],["p-fc9584dd",[[1,"cura-modal",{"open":[1540],"background":[1],"top":[2],"bottom":[2],"left":[2],"right":[2],"mobileCloseLabel":[513,"mobile-close-label"],"zindex":[513],"styles":[32]},null,{"background":["setColors"],"top":["setTop"],"bottom":["setBottom"],"left":["setLeft"],"right":["setRight"]}]]],["p-d227469a",[[65,"cura-radio",{"checked":[1540],"status":[1537],"disabled":[516],"required":[516],"label":[513],"ontabindex":[514],"position":[513],"value":[513],"name":[513],"background":[1],"size":[1],"color":[1],"styles":[32]},null,{"size":["sizeHandler"],"color":["setColors"],"background":["setColors","assignColor"]}]]],["p-86d317f3",[[1,"cura-dropdown-search-not-found"]]],["p-ee7328a5",[[1,"cura-dropdown-search-option",{"value":[513],"selected":[1540],"selectable":[516],"hovered":[1540],"styles":[32]},null,{"selected":["updateIconColor"]}]]],["p-46994182",[[1,"cura-dropdown-search-option-title"]]],["p-9214ee88",[[65,"cura-switch",{"checked":[1540],"disabled":[516],"label":[513],"ontabindex":[514],"position":[513],"size":[513],"background":[1],"color":[1],"styles":[32]},null,{"size":["sizeHandler"],"color":["setColors"],"background":["setColors"]}]]],["p-d2da92d9",[[1,"cura-badge-dot",{"color":[1],"disabled":[516],"type":[513],"styles":[32]}]]],["p-bfaf9964",[[1,"cura-card",{"hasPadding":[1028,"has-padding"],"hasShadow":[1028,"has-shadow"],"type":[1025],"colorMode":[1025,"color-mode"],"href":[1537],"target":[513],"styles":[32]}]]],["p-9dd47ec6",[[1,"cura-display",{"level":[514],"size":[513],"spotColor":[1,"spot-color"],"color":[1],"marginBlock":[513,"margin-block"],"lineHeight":[513,"line-height"],"styles":[32]},null,{"color":["handleChangeColor"],"spotColor":["handleChangeColor"]}]]],["p-506747fb",[[1,"cura-calendar",{"period":[513],"width":[513],"minWidth":[513,"min-width"],"maxWidth":[513,"max-width"],"mode":[513],"dateFormat":[1537,"date-format"],"locale":[513],"type":[513],"disable":[16],"enable":[16],"defaultDate":[1537,"default-date"],"customDates":[16],"limitRange":[514,"limit-range"],"disablePassDates":[1540,"disable-pass-dates"],"disableFutureDates":[1540,"disable-future-dates"],"collapsed":[1540],"floating":[1540],"embedded":[1540],"selectLabelColorMode":[1537,"select-label-color-mode"],"selectedDates":[32],"rangeStart":[32],"defaultDates":[32],"currentDate":[32],"selectMonth":[32],"selectYear":[32],"styles":[32]},null,{"customDates":["watchDefaultDatesArray"],"defaultDate":["handleDefaultDateChange"]}]]],["p-d25142cd",[[1,"cura-badge-counter",{"number":[514],"color":[1],"disabled":[4],"type":[1],"styles":[32]},null,{"disabled":["handleColorChange"],"color":["handleColorChange"],"type":["handleColorChange"]}]]],["p-24cd591e",[[1,"cura-loader-bar",{"color":[1],"progress":[2],"styles":[32]},null,{"color":["handleChangeColor"],"progress":["handleProgress"]}]]],["p-02717e7d",[[1,"cura-badge-pill",{"type":[513],"color":[1],"iconName":[513,"icon-name"],"iconset":[513],"disabled":[516],"iconOnly":[516,"icon-only"],"borderRadius":[513,"border-radius"],"styles":[32]},null,{"color":["watchColorChange"]}]]],["p-635c0f4d",[[1,"cura-stepper-item",{"displayHeading":[516,"display-heading"],"heading":[513],"label":[513],"status":[513],"styles":[32]}],[1,"cura-progress-bar",{"progressColor":[513,"progress-color"],"progress":[514],"size":[514],"strokeWidth":[514,"stroke-width"],"active":[516]}]]]]'),e)}));
2
2
  //# sourceMappingURL=cura.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","async","options","globalScripts","bootstrapLazy","JSON","parse"],"sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.22.0 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"0KAOA,IAAIA,EAAe,KAUjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACrBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACjD,CACE,OAAOC,EAAeJ,EAAK,EClB7BH,IAAeQ,MAAKC,MAAOC,UACnBC,IACN,OAAOC,EAAcC,KAAAC,MAAA,6+VAAuCJ,EAAA","ignoreList":[]}
1
+ {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","async","options","globalScripts","bootstrapLazy","JSON","parse"],"sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.22.0 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"0KAOA,IAAIA,EAAe,KAUjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACrBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACjD,CACE,OAAOC,EAAeJ,EAAK,EClB7BH,IAAeQ,MAAKC,MAAOC,UACnBC,IACN,OAAOC,EAAcC,KAAAC,MAAA,8+VAAuCJ,EAAA","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as t,c as e,h as r,H as n}from"./p-af3ac476.js";import{r as a,t as i,_ as o,i as s,a as u}from"./p-272c784a.js";function d(t){if(t===null||t===true||t===false){return NaN}var e=Number(t);if(isNaN(e)){return e}return e<0?Math.ceil(e):Math.floor(e)}function l(t,e){a(2,arguments);var r=i(t);var n=d(e);if(isNaN(n)){return new Date(NaN)}if(!n){return r}r.setDate(r.getDate()+n);return r}function c(t,e){a(2,arguments);var r=i(t);var n=d(e);if(isNaN(n)){return new Date(NaN)}if(!n){return r}var o=r.getDate();var s=new Date(r.getTime());s.setMonth(r.getMonth()+n+1,0);var u=s.getDate();if(o>=u){return s}else{r.setFullYear(s.getFullYear(),s.getMonth(),o);return r}}function h(t,e){a(2,arguments);var r=i(t).getTime();var n=d(e);return new Date(r+n)}var v={};function f(){return v}function m(t,e){var r,n,o,s,u,l,c,h;a(1,arguments);var v=f();var m=d((r=(n=(o=(s=e===null||e===void 0?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e===null||e===void 0?void 0:(u=e.locale)===null||u===void 0?void 0:(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:v.weekStartsOn)!==null&&n!==void 0?n:(c=v.locale)===null||c===void 0?void 0:(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&r!==void 0?r:0);if(!(m>=0&&m<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var w=i(t);var g=w.getDay();var b=(g<m?7:0)+g-m;w.setDate(w.getDate()-b);w.setHours(0,0,0,0);return w}function w(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));e.setUTCFullYear(t.getFullYear());return t.getTime()-e.getTime()}function g(t){a(1,arguments);var e=i(t);e.setHours(0,0,0,0);return e}function b(t,e){a(2,arguments);var r=d(e);var n=r*7;return l(t,n)}var p=6e4;var y=36e5;function x(t,e){a(2,arguments);var r=g(t);var n=g(e);return r.getTime()===n.getTime()}function M(t){a(1,arguments);return t instanceof Date||o(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function D(t){a(1,arguments);if(!M(t)&&typeof t!=="number"){return false}var e=i(t);return!isNaN(Number(e))}function k(t){a(1,arguments);var e=i(t);var r=e.getMonth();e.setFullYear(e.getFullYear(),r+1,0);e.setHours(23,59,59,999);return e}function P(t,e){var r;a(1,arguments);var n=t||{};var o=i(n.start);var s=i(n.end);var u=s.getTime();if(!(o.getTime()<=u)){throw new RangeError("Invalid interval")}var d=[];var l=o;l.setHours(0,0,0,0);var c=Number((r=e===null||e===void 0?void 0:e.step)!==null&&r!==void 0?r:1);if(c<1||isNaN(c))throw new RangeError("`options.step` must be a number greater than 1");while(l.getTime()<=u){d.push(i(l));l.setDate(l.getDate()+c);l.setHours(0,0,0,0)}return d}function N(t){a(1,arguments);var e=t||{};var r=i(e.start);var n=i(e.end);var o=n.getTime();var s=[];if(!(r.getTime()<=o)){throw new RangeError("Invalid interval")}var u=r;u.setHours(0,0,0,0);u.setDate(1);while(u.getTime()<=o){s.push(i(u));u.setMonth(u.getMonth()+1)}return s}function S(t){a(1,arguments);var e=i(t);e.setDate(1);e.setHours(0,0,0,0);return e}function W(t){a(1,arguments);var e=i(t);var r=new Date(0);r.setFullYear(e.getFullYear(),0,1);r.setHours(0,0,0,0);return r}function E(t,e){var r,n,o,s,u,l,c,h;a(1,arguments);var v=f();var m=d((r=(n=(o=(s=e===null||e===void 0?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e===null||e===void 0?void 0:(u=e.locale)===null||u===void 0?void 0:(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:v.weekStartsOn)!==null&&n!==void 0?n:(c=v.locale)===null||c===void 0?void 0:(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&r!==void 0?r:0);if(!(m>=0&&m<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var w=i(t);var g=w.getDay();var b=(g<m?-7:0)+6-(g-m);w.setDate(w.getDate()+b);w.setHours(23,59,59,999);return w}function j(t,e){a(2,arguments);var r=d(e);return h(t,-r)}var z=864e5;function q(t){a(1,arguments);var e=i(t);var r=e.getTime();e.setUTCMonth(0,1);e.setUTCHours(0,0,0,0);var n=e.getTime();var o=r-n;return Math.floor(o/z)+1}function C(t){a(1,arguments);var e=1;var r=i(t);var n=r.getUTCDay();var o=(n<e?7:0)+n-e;r.setUTCDate(r.getUTCDate()-o);r.setUTCHours(0,0,0,0);return r}function Y(t){a(1,arguments);var e=i(t);var r=e.getUTCFullYear();var n=new Date(0);n.setUTCFullYear(r+1,0,4);n.setUTCHours(0,0,0,0);var o=C(n);var s=new Date(0);s.setUTCFullYear(r,0,4);s.setUTCHours(0,0,0,0);var u=C(s);if(e.getTime()>=o.getTime()){return r+1}else if(e.getTime()>=u.getTime()){return r}else{return r-1}}function T(t){a(1,arguments);var e=Y(t);var r=new Date(0);r.setUTCFullYear(e,0,4);r.setUTCHours(0,0,0,0);var n=C(r);return n}var X=6048e5;function O(t){a(1,arguments);var e=i(t);var r=C(e).getTime()-T(e).getTime();return Math.round(r/X)+1}function R(t,e){var r,n,o,s,u,l,c,h;a(1,arguments);var v=f();var m=d((r=(n=(o=(s=e===null||e===void 0?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e===null||e===void 0?void 0:(u=e.locale)===null||u===void 0?void 0:(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:v.weekStartsOn)!==null&&n!==void 0?n:(c=v.locale)===null||c===void 0?void 0:(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&r!==void 0?r:0);if(!(m>=0&&m<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var w=i(t);var g=w.getUTCDay();var b=(g<m?7:0)+g-m;w.setUTCDate(w.getUTCDate()-b);w.setUTCHours(0,0,0,0);return w}function L(t,e){var r,n,o,s,u,l,c,h;a(1,arguments);var v=i(t);var m=v.getUTCFullYear();var w=f();var g=d((r=(n=(o=(s=e===null||e===void 0?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e===null||e===void 0?void 0:(u=e.locale)===null||u===void 0?void 0:(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:w.firstWeekContainsDate)!==null&&n!==void 0?n:(c=w.locale)===null||c===void 0?void 0:(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(g>=1&&g<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var b=new Date(0);b.setUTCFullYear(m+1,0,g);b.setUTCHours(0,0,0,0);var p=R(b,e);var y=new Date(0);y.setUTCFullYear(m,0,g);y.setUTCHours(0,0,0,0);var x=R(y,e);if(v.getTime()>=p.getTime()){return m+1}else if(v.getTime()>=x.getTime()){return m}else{return m-1}}function B(t,e){var r,n,i,o,s,u,l,c;a(1,arguments);var h=f();var v=d((r=(n=(i=(o=e===null||e===void 0?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e===null||e===void 0?void 0:(s=e.locale)===null||s===void 0?void 0:(u=s.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&n!==void 0?n:(l=h.locale)===null||l===void 0?void 0:(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1);var m=L(t,e);var w=new Date(0);w.setUTCFullYear(m,0,v);w.setUTCHours(0,0,0,0);var g=R(w,e);return g}var Q=6048e5;function A(t,e){a(1,arguments);var r=i(t);var n=R(r,e).getTime()-B(r,e).getTime();return Math.round(n/Q)+1}function G(t,e){var r=t<0?"-":"";var n=Math.abs(t).toString();while(n.length<e){n="0"+n}return r+n}var I={y:function t(e,r){var n=e.getUTCFullYear();var a=n>0?n:1-n;return G(r==="yy"?a%100:a,r.length)},M:function t(e,r){var n=e.getUTCMonth();return r==="M"?String(n+1):G(n+1,2)},d:function t(e,r){return G(e.getUTCDate(),r.length)},a:function t(e,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function t(e,r){return G(e.getUTCHours()%12||12,r.length)},H:function t(e,r){return G(e.getUTCHours(),r.length)},m:function t(e,r){return G(e.getUTCMinutes(),r.length)},s:function t(e,r){return G(e.getUTCSeconds(),r.length)},S:function t(e,r){var n=r.length;var a=e.getUTCMilliseconds();var i=Math.floor(a*Math.pow(10,n-3));return G(i,r.length)}};const H=I;var F={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};var $={G:function t(e,r,n){var a=e.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function t(e,r,n){if(r==="yo"){var a=e.getUTCFullYear();var i=a>0?a:1-a;return n.ordinalNumber(i,{unit:"year"})}return H.y(e,r)},Y:function t(e,r,n,a){var i=L(e,a);var o=i>0?i:1-i;if(r==="YY"){var s=o%100;return G(s,2)}if(r==="Yo"){return n.ordinalNumber(o,{unit:"year"})}return G(o,r.length)},R:function t(e,r){var n=Y(e);return G(n,r.length)},u:function t(e,r){var n=e.getUTCFullYear();return G(n,r.length)},Q:function t(e,r,n){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(r){case"Q":return String(a);case"QQ":return G(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function t(e,r,n){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(r){case"q":return String(a);case"qq":return G(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function t(e,r,n){var a=e.getUTCMonth();switch(r){case"M":case"MM":return H.M(e,r);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function t(e,r,n){var a=e.getUTCMonth();switch(r){case"L":return String(a+1);case"LL":return G(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function t(e,r,n,a){var i=A(e,a);if(r==="wo"){return n.ordinalNumber(i,{unit:"week"})}return G(i,r.length)},I:function t(e,r,n){var a=O(e);if(r==="Io"){return n.ordinalNumber(a,{unit:"week"})}return G(a,r.length)},d:function t(e,r,n){if(r==="do"){return n.ordinalNumber(e.getUTCDate(),{unit:"date"})}return H.d(e,r)},D:function t(e,r,n){var a=q(e);if(r==="Do"){return n.ordinalNumber(a,{unit:"dayOfYear"})}return G(a,r.length)},E:function t(e,r,n){var a=e.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function t(e,r,n,a){var i=e.getUTCDay();var o=(i-a.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return G(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function t(e,r,n,a){var i=e.getUTCDay();var o=(i-a.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return G(o,r.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function t(e,r,n){var a=e.getUTCDay();var i=a===0?7:a;switch(r){case"i":return String(i);case"ii":return G(i,r.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function t(e,r,n){var a=e.getUTCHours();var i=a/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function t(e,r,n){var a=e.getUTCHours();var i;if(a===12){i=F.noon}else if(a===0){i=F.midnight}else{i=a/12>=1?"pm":"am"}switch(r){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function t(e,r,n){var a=e.getUTCHours();var i;if(a>=17){i=F.evening}else if(a>=12){i=F.afternoon}else if(a>=4){i=F.morning}else{i=F.night}switch(r){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function t(e,r,n){if(r==="ho"){var a=e.getUTCHours()%12;if(a===0)a=12;return n.ordinalNumber(a,{unit:"hour"})}return H.h(e,r)},H:function t(e,r,n){if(r==="Ho"){return n.ordinalNumber(e.getUTCHours(),{unit:"hour"})}return H.H(e,r)},K:function t(e,r,n){var a=e.getUTCHours()%12;if(r==="Ko"){return n.ordinalNumber(a,{unit:"hour"})}return G(a,r.length)},k:function t(e,r,n){var a=e.getUTCHours();if(a===0)a=24;if(r==="ko"){return n.ordinalNumber(a,{unit:"hour"})}return G(a,r.length)},m:function t(e,r,n){if(r==="mo"){return n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"})}return H.m(e,r)},s:function t(e,r,n){if(r==="so"){return n.ordinalNumber(e.getUTCSeconds(),{unit:"second"})}return H.s(e,r)},S:function t(e,r){return H.S(e,r)},X:function t(e,r,n,a){var i=a._originalDate||e;var o=i.getTimezoneOffset();if(o===0){return"Z"}switch(r){case"X":return U(o);case"XXXX":case"XX":return V(o);case"XXXXX":case"XXX":default:return V(o,":")}},x:function t(e,r,n,a){var i=a._originalDate||e;var o=i.getTimezoneOffset();switch(r){case"x":return U(o);case"xxxx":case"xx":return V(o);case"xxxxx":case"xxx":default:return V(o,":")}},O:function t(e,r,n,a){var i=a._originalDate||e;var o=i.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+J(o,":");case"OOOO":default:return"GMT"+V(o,":")}},z:function t(e,r,n,a){var i=a._originalDate||e;var o=i.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+J(o,":");case"zzzz":default:return"GMT"+V(o,":")}},t:function t(e,r,n,a){var i=a._originalDate||e;var o=Math.floor(i.getTime()/1e3);return G(o,r.length)},T:function t(e,r,n,a){var i=a._originalDate||e;var o=i.getTime();return G(o,r.length)}};function J(t,e){var r=t>0?"-":"+";var n=Math.abs(t);var a=Math.floor(n/60);var i=n%60;if(i===0){return r+String(a)}var o=e||"";return r+String(a)+o+G(i,2)}function U(t,e){if(t%60===0){var r=t>0?"-":"+";return r+G(Math.abs(t)/60,2)}return V(t,e)}function V(t,e){var r=e||"";var n=t>0?"-":"+";var a=Math.abs(t);var i=G(Math.floor(a/60),2);var o=G(a%60,2);return n+i+r+o}const Z=$;var K=function t(e,r){switch(e){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}};var _=function t(e,r){switch(e){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}};var tt=function t(e,r){var n=e.match(/(P+)(p+)?/)||[];var a=n[1];var i=n[2];if(!i){return K(e,r)}var o;switch(a){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",K(a,r)).replace("{{time}}",_(i,r))};var et={p:_,P:tt};const rt=et;var nt=["D","DD"];var at=["YY","YYYY"];function it(t){return nt.indexOf(t)!==-1}function ot(t){return at.indexOf(t)!==-1}function st(t,e,r){if(t==="YYYY"){throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(t==="YY"){throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(t==="D"){throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(t==="DD"){throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) 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 ut={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"}};var dt=function t(e,r,n){var a;var i=ut[e];if(typeof i==="string"){a=i}else if(r===1){a=i.one}else{a=i.other.replace("{{count}}",r.toString())}if(n!==null&&n!==void 0&&n.addSuffix){if(n.comparison&&n.comparison>0){return"in "+a}else{return a+" ago"}}return a};const lt=dt;function ct(t){return function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=e.width?String(e.width):t.defaultWidth;var n=t.formats[r]||t.formats[t.defaultWidth];return n}}var ht={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"};var vt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"};var ft={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var mt={date:ct({formats:ht,defaultWidth:"full"}),time:ct({formats:vt,defaultWidth:"full"}),dateTime:ct({formats:ft,defaultWidth:"full"})};const wt=mt;var gt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var bt=function t(e,r,n,a){return gt[e]};const pt=bt;function yt(t){return function(e,r){var n=r!==null&&r!==void 0&&r.context?String(r.context):"standalone";var a;if(n==="formatting"&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth;var o=r!==null&&r!==void 0&&r.width?String(r.width):i;a=t.formattingValues[o]||t.formattingValues[i]}else{var s=t.defaultWidth;var u=r!==null&&r!==void 0&&r.width?String(r.width):t.defaultWidth;a=t.values[u]||t.values[s]}var d=t.argumentCallback?t.argumentCallback(e):e;return a[d]}}var xt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]};var Mt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]};var Dt={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"]};var kt={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"]};var Pt={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"}};var Nt={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"}};var St=function t(e,r){var n=Number(e);var a=n%100;if(a>20||a<10){switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}}return n+"th"};var Wt={ordinalNumber:St,era:yt({values:xt,defaultWidth:"wide"}),quarter:yt({values:Mt,defaultWidth:"wide",argumentCallback:function t(e){return e-1}}),month:yt({values:Dt,defaultWidth:"wide"}),day:yt({values:kt,defaultWidth:"wide"}),dayPeriod:yt({values:Pt,defaultWidth:"wide",formattingValues:Nt,defaultFormattingWidth:"wide"})};const Et=Wt;function jt(t){return function(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=r.width;var a=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth];var i=e.match(a);if(!i){return null}var o=i[0];var s=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth];var u=Array.isArray(s)?qt(s,(function(t){return t.test(o)})):zt(s,(function(t){return t.test(o)}));var d;d=t.valueCallback?t.valueCallback(u):u;d=r.valueCallback?r.valueCallback(d):d;var l=e.slice(o.length);return{value:d,rest:l}}}function zt(t,e){for(var r in t){if(t.hasOwnProperty(r)&&e(t[r])){return r}}return undefined}function qt(t,e){for(var r=0;r<t.length;r++){if(e(t[r])){return r}}return undefined}function Ct(t){return function(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=e.match(t.matchPattern);if(!n)return null;var a=n[0];var i=e.match(t.parsePattern);if(!i)return null;var o=t.valueCallback?t.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;var s=e.slice(a.length);return{value:o,rest:s}}}var Yt=/^(\d+)(th|st|nd|rd)?/i;var Tt=/\d+/i;var Xt={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};var Ot={any:[/^b/i,/^(a|c)/i]};var Rt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i};var Lt={any:[/1/i,/2/i,/3/i,/4/i]};var Bt={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};var Qt={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]};var At={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};var Gt={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]};var It={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};var Ht={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}};var Ft={ordinalNumber:Ct({matchPattern:Yt,parsePattern:Tt,valueCallback:function t(e){return parseInt(e,10)}}),era:jt({matchPatterns:Xt,defaultMatchWidth:"wide",parsePatterns:Ot,defaultParseWidth:"any"}),quarter:jt({matchPatterns:Rt,defaultMatchWidth:"wide",parsePatterns:Lt,defaultParseWidth:"any",valueCallback:function t(e){return e+1}}),month:jt({matchPatterns:Bt,defaultMatchWidth:"wide",parsePatterns:Qt,defaultParseWidth:"any"}),day:jt({matchPatterns:At,defaultMatchWidth:"wide",parsePatterns:Gt,defaultParseWidth:"any"}),dayPeriod:jt({matchPatterns:It,defaultMatchWidth:"any",parsePatterns:Ht,defaultParseWidth:"any"})};const $t=Ft;var Jt={code:"en-US",formatDistance:lt,formatLong:wt,formatRelative:pt,localize:Et,match:$t,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ut=Jt;var Vt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;var Zt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;var Kt=/^'([^]*?)'?$/;var _t=/''/g;var te=/[a-zA-Z]/;function ee(t,e,r){var n,o,s,u,l,c,h,v,m,g,b,p,y,x,M,k,P,N;a(2,arguments);var S=String(e);var W=f();var E=(n=(o=r===null||r===void 0?void 0:r.locale)!==null&&o!==void 0?o:W.locale)!==null&&n!==void 0?n:Ut;var z=d((s=(u=(l=(c=r===null||r===void 0?void 0:r.firstWeekContainsDate)!==null&&c!==void 0?c:r===null||r===void 0?void 0:(h=r.locale)===null||h===void 0?void 0:(v=h.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&l!==void 0?l:W.firstWeekContainsDate)!==null&&u!==void 0?u:(m=W.locale)===null||m===void 0?void 0:(g=m.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(z>=1&&z<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var q=d((b=(p=(y=(x=r===null||r===void 0?void 0:r.weekStartsOn)!==null&&x!==void 0?x:r===null||r===void 0?void 0:(M=r.locale)===null||M===void 0?void 0:(k=M.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&y!==void 0?y:W.weekStartsOn)!==null&&p!==void 0?p:(P=W.locale)===null||P===void 0?void 0:(N=P.options)===null||N===void 0?void 0:N.weekStartsOn)!==null&&b!==void 0?b:0);if(!(q>=0&&q<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}if(!E.localize){throw new RangeError("locale must contain localize property")}if(!E.formatLong){throw new RangeError("locale must contain formatLong property")}var C=i(t);if(!D(C)){throw new RangeError("Invalid time value")}var Y=w(C);var T=j(C,Y);var X={firstWeekContainsDate:z,weekStartsOn:q,locale:E,_originalDate:C};var O=S.match(Zt).map((function(t){var e=t[0];if(e==="p"||e==="P"){var r=rt[e];return r(t,E.formatLong)}return t})).join("").match(Vt).map((function(n){if(n==="''"){return"'"}var a=n[0];if(a==="'"){return re(n)}var i=Z[a];if(i){if(!(r!==null&&r!==void 0&&r.useAdditionalWeekYearTokens)&&ot(n)){st(n,e,String(t))}if(!(r!==null&&r!==void 0&&r.useAdditionalDayOfYearTokens)&&it(n)){st(n,e,String(t))}return i(T,n,E.localize,X)}if(a.match(te)){throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`")}return n})).join("");return O}function re(t){var e=t.match(Kt);if(!e){return t}return e[1].replace(_t,"'")}function ne(t){a(1,arguments);var e=i(t);var r=e.getDay();return r}function ae(t){a(1,arguments);var e=i(t);var r=e.getMonth();return r}function ie(t){a(1,arguments);return i(t).getFullYear()}function oe(t){a(1,arguments);return x(t,Date.now())}function se(t,e){a(2,arguments);var r=d(e);return l(t,-r)}function ue(t,e){var r;a(1,arguments);var n=d((r=e===null||e===void 0?void 0:e.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0){throw new RangeError("additionalDigits must be 0, 1 or 2")}if(!(typeof t==="string"||Object.prototype.toString.call(t)==="[object String]")){return new Date(NaN)}var i=ve(t);var o;if(i.date){var s=fe(i.date,n);o=me(s.restDateString,s.year)}if(!o||isNaN(o.getTime())){return new Date(NaN)}var u=o.getTime();var l=0;var c;if(i.time){l=ge(i.time);if(isNaN(l)){return new Date(NaN)}}if(i.timezone){c=pe(i.timezone);if(isNaN(c)){return new Date(NaN)}}else{var h=new Date(u+l);var v=new Date(0);v.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate());v.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds());return v}return new Date(u+l+c)}var de={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/};var le=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/;var ce=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/;var he=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ve(t){var e={};var r=t.split(de.dateTimeDelimiter);var n;if(r.length>2){return e}if(/:/.test(r[0])){n=r[0]}else{e.date=r[0];n=r[1];if(de.timeZoneDelimiter.test(e.date)){e.date=t.split(de.timeZoneDelimiter)[0];n=t.substr(e.date.length,t.length)}}if(n){var a=de.timezone.exec(n);if(a){e.time=n.replace(a[1],"");e.timezone=a[1]}else{e.time=n}}return e}function fe(t,e){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)");var n=t.match(r);if(!n)return{year:NaN,restDateString:""};var a=n[1]?parseInt(n[1]):null;var i=n[2]?parseInt(n[2]):null;return{year:i===null?a:i*100,restDateString:t.slice((n[1]||n[2]).length)}}function me(t,e){if(e===null)return new Date(NaN);var r=t.match(le);if(!r)return new Date(NaN);var n=!!r[4];var a=we(r[1]);var i=we(r[2])-1;var o=we(r[3]);var s=we(r[4]);var u=we(r[5])-1;if(n){if(!Pe(e,s,u)){return new Date(NaN)}return ye(e,s,u)}else{var d=new Date(0);if(!De(e,i,o)||!ke(e,a)){return new Date(NaN)}d.setUTCFullYear(e,i,Math.max(a,o));return d}}function we(t){return t?parseInt(t):1}function ge(t){var e=t.match(ce);if(!e)return NaN;var r=be(e[1]);var n=be(e[2]);var a=be(e[3]);if(!Ne(r,n,a)){return NaN}return r*y+n*p+a*1e3}function be(t){return t&&parseFloat(t.replace(",","."))||0}function pe(t){if(t==="Z")return 0;var e=t.match(he);if(!e)return 0;var r=e[1]==="+"?-1:1;var n=parseInt(e[2]);var a=e[3]&&parseInt(e[3])||0;if(!Se(n,a)){return NaN}return r*(n*y+a*p)}function ye(t,e,r){var n=new Date(0);n.setUTCFullYear(t,0,4);var a=n.getUTCDay()||7;var i=(e-1)*7+r+1-a;n.setUTCDate(n.getUTCDate()+i);return n}var xe=[31,null,31,30,31,30,31,31,30,31,30,31];function Me(t){return t%400===0||t%4===0&&t%100!==0}function De(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(xe[e]||(Me(t)?29:28))}function ke(t,e){return e>=1&&e<=(Me(t)?366:365)}function Pe(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}function Ne(t,e,r){if(t===24){return e===0&&r===0}return r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}function Se(t,e){return e>=0&&e<=59}function We(t,e){a(2,arguments);var r=d(e);return c(t,-r)}function Ee(t,e){a(2,arguments);var r=d(e);return b(t,-r)}var je={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"};var ze={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"};var qe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var Ce={date:ct({formats:je,defaultWidth:"full"}),time:ct({formats:ze,defaultWidth:"full"}),dateTime:ct({formats:qe,defaultWidth:"full"})};const Ye=Ce;var Te={code:"en-AU",formatDistance:lt,formatLong:Ye,formatRelative:pt,localize:Et,match:$t,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Xe=Te;var Oe={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}};var Re=function t(e,r,n){var a;var i=Oe[e];if(typeof i==="string"){a=i}else if(r===1){a=i.one}else{a=i.other.replace("{{count}}",String(r))}if(n!==null&&n!==void 0&&n.addSuffix){if(n.comparison&&n.comparison>0){return"em "+a}else{return"há "+a}}return a};const Le=Re;var Be={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"};var Qe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"};var Ae={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var Ge={date:ct({formats:Be,defaultWidth:"full"}),time:ct({formats:Qe,defaultWidth:"full"}),dateTime:ct({formats:Ae,defaultWidth:"full"})};const Ie=Ge;var He={lastWeek:function t(e){var r=e.getUTCDay();var n=r===0||r===6?"último":"última";return"'"+n+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"};var Fe=function t(e,r,n,a){var i=He[e];if(typeof i==="function"){return i(r)}return i};const $e=Fe;var Je={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]};var Ue={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]};var Ve={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]};var Ze={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]};var Ke={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}};var _e={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}};var tr=function t(e,r){var n=Number(e);if((r===null||r===void 0?void 0:r.unit)==="week"){return n+"ª"}return n+"º"};var er={ordinalNumber:tr,era:yt({values:Je,defaultWidth:"wide"}),quarter:yt({values:Ue,defaultWidth:"wide",argumentCallback:function t(e){return e-1}}),month:yt({values:Ve,defaultWidth:"wide"}),day:yt({values:Ze,defaultWidth:"wide"}),dayPeriod:yt({values:Ke,defaultWidth:"wide",formattingValues:_e,defaultFormattingWidth:"wide"})};const rr=er;var nr=/^(\d+)[ºªo]?/i;var ar=/\d+/i;var ir={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i};var or={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]};var sr={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i};var ur={any:[/1/i,/2/i,/3/i,/4/i]};var dr={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i};var lr={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,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]};var cr={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i};var hr={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]};var vr={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i};var fr={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}};var mr={ordinalNumber:Ct({matchPattern:nr,parsePattern:ar,valueCallback:function t(e){return parseInt(e,10)}}),era:jt({matchPatterns:ir,defaultMatchWidth:"wide",parsePatterns:or,defaultParseWidth:"any"}),quarter:jt({matchPatterns:sr,defaultMatchWidth:"wide",parsePatterns:ur,defaultParseWidth:"any",valueCallback:function t(e){return e+1}}),month:jt({matchPatterns:dr,defaultMatchWidth:"wide",parsePatterns:lr,defaultParseWidth:"any"}),day:jt({matchPatterns:cr,defaultMatchWidth:"wide",parsePatterns:hr,defaultParseWidth:"any"}),dayPeriod:jt({matchPatterns:vr,defaultMatchWidth:"any",parsePatterns:fr,defaultParseWidth:"any"})};const wr=mr;var gr={code:"pt-BR",formatDistance:Le,formatLong:Ie,formatRelative:$e,localize:rr,match:wr,options:{weekStartsOn:0,firstWeekContainsDate:1}};const br=gr;const pr=':host{display:block;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);margin:0 auto}:host .calendar{display:flex;flex-direction:column;gap:5px;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);border-radius:4px;overflow:hidden;background:#fff;font-family:var(--font-family)}:host .calendar.embedded{border:2px solid var(--neutral-light);padding:0px 12px 12px 12px}:host .calendar.floating{box-shadow:0 4px 8px var(--neutral-light)}:host .header{position:relative;padding:12px 0}:host .header::after{content:"";position:absolute;bottom:0;left:2px;right:2px;border-bottom:2px dotted var(--neutral-light)}:host .month-year{display:flex;padding:12px 8px;justify-content:space-between;align-self:stretch}:host .month-year.dropdown{padding:0%}:host .select{display:flex;padding:7px 10px 0px;justify-content:center;align-items:center;gap:6px;flex:1 0 0}:host .drop-month{display:flex;max-width:118px;padding:0px;align-items:flex-start;gap:0px;flex:1 0 0}:host .drop-year{display:flex;min-width:80px;max-width:85px;padding:0px;align-items:flex-start;gap:0px;flex:1 0 0}:host .days-of-week{display:flex;height:30px;padding:4px;justify-content:center;align-items:center;gap:4px;flex-shrink:0}:host .day{flex:1;text-align:center}:host .dates{display:flex;flex-wrap:wrap;align-items:center;align-self:stretch;gap:0}:host .icon{cursor:pointer;position:relative;overflow:hidden;border-radius:50%}:host .icon.dropdown{margin-top:10px}:host .icon::before{content:"";position:absolute;border-radius:50%;top:50%;left:50%;width:20px;height:20px;background:var(--primary-base);transform:translate(-50%, -50%) scale(0);transition:transform 0.2s ease}:host .icon:active::before{transform:translate(-50%, -50%) scale(1)}:host .icon:active{transform:scale(1)}:host .collapsed-container{text-align:center;position:relative;display:flex;align-items:center;justify-content:center;padding-top:10px}:host .collapsed-container::before{content:"";position:absolute;bottom:0;top:0;left:2px;right:2px;border-top:2px dotted var(--neutral-light)}:host .date{display:flex;justify-content:center;align-items:center;height:auto;width:14.2857142857%;aspect-ratio:1;font-size:14px;cursor:pointer;position:relative;box-sizing:border-box;text-align:center;flex-shrink:0}:host .date.today{border:2px solid var(--primary-darker);border-radius:50%;color:var(--primary-darker)}:host .date.selected{color:var(--select-label) !important;background:var(--primary-base);border-radius:50%}:host .date.default-dates{color:var(--neutral-white);background:var(--primary-base);border-radius:50%;border:none}:host .date.invalid{color:var(--neutral-dark) !important;cursor:not-allowed}:host .date.invalid:hover{background:none;box-shadow:none}:host .date.valid{color:var(--primary-darker);font-weight:var(--font-weight-bold)}:host .date.range.start{border-radius:50% 0 0 50%;color:var(--select-label) !important;background:var(--primary-base)}:host .date.range.interval{border-radius:0;background:var(--primary-lighter);color:var(--neutral-black) !important}:host .date.range.interval.today{border:none}:host .date.range.end{border-radius:0 50% 50% 0;color:var(--select-label) !important;background:var(--primary-base)}:host .date:hover{background:var(--primary-lighter);border-radius:50%;color:var(--neutral-white)}:host select,:host input{width:60px;font-size:16px;box-shadow:0 2px 2px var(--neutral-black);padding:5px;border-radius:4px;border:1px solid #ccc;background:#f7f7f7}';const yr=pr;const xr=class{constructor(r){t(this,r);this.onchangeday=e(this,"onchangeday",7);this.theme=window.CuraAPI.theme;this.weights=this.theme.fonts.getWeights();this.optionsLocale={"pt-BR":br,"en-US":Xe};this.period=null;this.width="268px";this.minWidth="268px";this.maxWidth="400px";this.mode="single";this.dateFormat="yyyy-MM-dd";this.locale="pt-BR";this.type="dropdown";this.disable=[];this.enable=[];this.defaultDate=[];this.customDates=[];this.limitRange=null;this.disablePassDates=undefined;this.disableFutureDates=undefined;this.collapsed=null;this.floating=undefined;this.embedded=undefined;this.selectLabelColorMode="light";this.currentDate=new Date;this.selectedDates=[];this.rangeStart=null;this.defaultDates=[];this.selectMonth="";this.selectYear="";this.styles={}}connectedCallback(){this.setFontProperties();this.initializeDefaultDates();const t=[{name:"--primary-base",theme:"primary-base"},{name:"--primary-lighter",theme:"primary-lighter"},{name:"--primary-light",theme:"primary-light"},{name:"--neutral-black",theme:"neutral-black"},{name:"--primary-darker",theme:"primary-darker"},{name:"--neutral-dark",theme:"neutral-dark"},{name:"--neutral-light",theme:"neutral-light"},{name:"--neutral-white",theme:"neutral-white"},{name:"--select-label",theme:this.selectLabelColorMode==="dark"?"neutral-black":"neutral-white"}];t.forEach((t=>this.styles=Object.assign(Object.assign({},this.styles),{[t.name]:this.theme.colors.getColor(t.theme)})))}setFontProperties(){this.styles["--font-family"]=window.CuraAPI.theme.fonts.getFamily();this.styles["--font-size"]=window.CuraAPI.theme.fonts.getSize();this.styles["--font-color"]=window.CuraAPI.theme.fonts.getColor();this.styles["--font-weight-medium"]=this.weights.medium;this.styles["--font-weight-bold"]=this.weights.bold;this.styles["--font-weight-regular"]=this.weights.regular}initializeDefaultDates(){if(typeof this.defaultDate==="string"){const t=JSON.parse(this.defaultDate||"[]");if(typeof t==="string"){this.defaultDate=[t]}else{this.defaultDate=t}}this.defaultDates=this.expandDateRanges(this.defaultDate)}determineLocale(){return this.optionsLocale[this.locale]||this.locale}isDateInValidPeriod(t){if(this.period===null){return true}return this.period.includes(ee(t,this.dateFormat))}isDateSelected(t){return this.isDateInList(this.selectedDates,t)}isDateInDefaultSelection(t){return this.isDateInList(this.defaultDates,t)}isDateInDisabledPeriod(t){const e=new Date;e.setHours(0,0,0,0);if(this.disablePassDates)return s(t,e);if(this.disableFutureDates)return u(t,e);if(this.disable===null)return false;return this.isDateInList(this.expandDateRanges(this.disable),t)}isDateInEnabledPeriod(t){if(this.enable===null||[])return true;return this.isDateInList(this.expandDateRanges(this.enable),t)}isDateInList(t,e){return t.some((t=>x(t,e)))}removeDateFromSelection(t,e){return t.filter((t=>!x(t,e)))}updateCurrentMonth(t){let e=new Date(this.currentDate);if(t==="prev")e=We(this.currentDate,1);if(t==="next")e=c(this.currentDate,1);this.currentDate=e}onMonthDropdownChange(t){const{months:e}=this.fetchMonthNames();const r=t.detail;this.selectMonth=r;this.currentDate=new Date(ie(this.currentDate),e.indexOf(r),1)}onYearDropdownChange(t){const e=t.detail;this.selectYear=e;this.currentDate=new Date(e,ae(this.currentDate),1)}expandDateRanges(t){if(!t)return[];return t.flatMap((t=>{if(typeof t==="string")return D(ue(t))?[ue(t)]:[];const e=ue(t.from);const r=ue(t.to);if(D(e)&&D(r)&&e<=r)return P({start:e,end:r});return[]}))}selectSingleDate(t){this.defaultDates=[];this.selectedDates=[t]}selectMultiplesDate(t){if(!this.isDateSelected(t)||!this.isDateInDefaultSelection(t))return this.selectedDates=[...this.selectedDates,t];this.selectedDates=this.removeDateFromSelection(this.selectedDates,t);this.defaultDates=this.removeDateFromSelection(this.defaultDates,t)}selectDateRange(t){this.defaultDates=[];const e=s(this.rangeStart,t)?this.rangeStart:t;const r=u(this.rangeStart,t)?this.rangeStart:t;const n=P({start:e,end:r});if(!this.rangeStart||this.selectedDates.length===2){this.rangeStart=t;this.selectedDates=[t];return}if(this.limitRange===null||n.length<=this.limitRange){this.selectedDates=n;this.rangeStart=null}}onDateClick(t){if(!this.isDateInValidPeriod(t)||this.isDateInDisabledPeriod(t)||!this.isDateInEnabledPeriod(t))return;const e={single:this.selectSingleDate.bind(this),multiple:this.selectMultiplesDate.bind(this),range:this.selectDateRange.bind(this)};e[this.mode](t);this.onchangeday.emit({days:[...this.defaultDates,...this.selectedDates].filter((t=>this.isDateInValidPeriod(t)))})}fetchWeekDays(){const t=m(new Date(2021,0,3),{locale:this.determineLocale()});const e=E(new Date(2021,0,3),{locale:this.determineLocale()});return P({start:t,end:e}).map((t=>ee(t,"EEEEEE",{locale:this.determineLocale()})))}showNotColapsedCalendar(){if(this.collapsed){this.fetchDaysOfWeek()}else this.fetchDaysOfMonth();this.collapsed=false}showColapsedCalendar(){this.collapsed=true;return this.fetchDaysOfWeek()}fetchDaysOfWeek(){const t=7;const e=m(this.currentDate);const r=E(this.currentDate);const n=P({start:e,end:r});return n.slice(0,t)}updateCurrentWeek(t){let e=new Date(this.currentDate);if(t==="prev")e=Ee(this.currentDate,1);if(t==="next")e=b(this.currentDate,1);this.currentDate=e}fetchDaysOfMonth(){const t=6;const e=42;const r=S(this.currentDate);const n=k(this.currentDate);const a=P({start:r,end:n});const i=S(c(r,-1));const o=k(i);const s=P({start:se(o,ne(r)),end:o});const u=S(c(n,1));const d=k(u);const h=t-ne(n);const v=P({start:u,end:l(d,h)});const f=[...s.slice(-ne(r)),...a,...v];return f.slice(0,e)}fetchMonthNames(){const t=ie(this.currentDate);const e=this.determineLocale();const r=N({start:W(new Date(t,0,1)),end:new Date(t,11,31)}).map((t=>ee(t,"MMMM",{locale:e})));const n=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase();return{months:r.map(n)}}fetchYearList(){const t=ie(new Date);return Array.from({length:100},((e,r)=>t-r))}determinePrevButtonColor(){const t=s(new Date(ie(this.currentDate),ae(this.currentDate)-1,1),S(new Date));return t&&"primary-base"}getDateStatus(t){const[e,r]=[this.selectedDates[0],this.selectedDates[this.selectedDates.length-1]];const[n,a]=[this.defaultDates[0],this.defaultDates[this.defaultDates.length-1]];const i=this.selectedDates.length>1;const o=this.defaultDates.length>1;const s=this.isDateSelected(t)&&x(t,e);const u=this.isDateInDefaultSelection(t)&&x(t,n);const d=this.isDateSelected(t)&&x(t,r);const l=this.isDateInDefaultSelection(t)&&x(t,a);const c=s||u;const h=d||l;const v=this.expandDateRanges([{from:e===null||e===void 0?void 0:e.toISOString(),to:r===null||r===void 0?void 0:r.toISOString()}]);const f=this.expandDateRanges([{from:n===null||n===void 0?void 0:n.toISOString(),to:a===null||a===void 0?void 0:a.toISOString()}]);const m=i&&this.isDateInList(v,t);const w=o&&this.isDateInList(f,t);const g=this.isDateInValidPeriod(t);const b=!g||this.isDateInDisabledPeriod(t)||!this.isDateInEnabledPeriod(t);const p=this.isDateSelected(t);const y=this.mode==="range"&&(i||o);const M=this.mode!=="range"&&this.isDateInDefaultSelection(t);const D=(m||w)&&!c&&!h;return{isStart:c,isEnd:h,isValid:g,isInvalid:b,isSelected:p,isRange:y,isDefault:M,isInterval:D}}getClasses(t){const e={date:true};if(t===null)return e;const r=this.getDateStatus(t);e["today"]=oe(t);e["valid"]=r.isValid;e["invalid"]=r.isInvalid;e["selected"]=r.isSelected;e["range"]=r.isRange;e["default-dates"]=r.isDefault;e["start"]=r.isStart;e["interval"]=r.isInterval;e["end"]=r.isEnd;return e}getHostCSSProperties(){return{"--width":this.width,"--min-width":this.minWidth,"--max-width":this.maxWidth}}watchDefaultDatesArray(){this.selectedDates=this.customDates}handleDefaultDateChange(t){if(typeof t==="string"){const e=JSON.parse(t||"[]");if(typeof e==="string"){t=[e]}else{t=e}}this.defaultDates=this.expandDateRanges(t)}render(){const{months:t}=this.fetchMonthNames();return r(n,{key:"ae4a9147b11d95bbc2551b2ae090e94544e6dfff",style:this.getHostCSSProperties()},r("div",{key:"84c22c868bbd9ccbfe6167b5162c8196ebd816a8",class:`calendar ${this.floating?"floating":""} ${this.embedded?"embedded":""}`,style:this.styles},r("header",{key:"ea6f883598de9a4ea1801c29eeaec1cf16ab74cc",class:"header"},r("div",{key:"e1f03e867a906d73e76245e669dbb8248e6f9d15",class:`month-year ${this.type==="dropdown"&&"dropdown"}`},r("cura-icon",{key:"81b9e1b8e20d611e3250bac789ed6b8ea1248d59",class:`icon ${this.type==="dropdown"&&"dropdown"}`,name:"left",color:this.determinePrevButtonColor(),onClick:!this.collapsed?()=>this.updateCurrentMonth("prev"):()=>this.updateCurrentWeek("prev")}),this.type==="dropdown"?r("div",{class:"select"},r("cura-select",{size:"small",class:"drop-month",mode:"transparent",value:t[ae(this.currentDate)],onSelected:t=>this.onMonthDropdownChange(t)},t.map(((t,e)=>r("cura-select-option",{size:"xsmall",key:e,value:t},t)))),r("cura-select",{size:"small",class:"drop-year",mode:"transparent",value:ie(this.currentDate).toString(),onSelected:t=>this.onYearDropdownChange(t)},this.fetchYearList().map(((t,e)=>r("cura-select-option",{key:e,value:t.toString()},t.toString()))))):r("cura-label",{color:"neutral-black",size:"large"},t[ae(this.currentDate)].slice(0,3),", ",ie(this.currentDate)),r("cura-icon",{key:"5e1b1e265ceeb4910014ea637fdd6909d8cd1076",class:`icon ${this.type==="dropdown"&&"dropdown"}`,name:"right",color:"primary-base",onClick:!this.collapsed?()=>this.updateCurrentMonth("next"):()=>this.updateCurrentWeek("next")}))),r("span",{key:"3cfb73b9e65e546526f30e25e440bf9235c01213",class:"days-of-week"},this.fetchWeekDays().map(((t,e)=>r("cura-label",{class:"day",size:"xsmall",color:"neutral-black",weight:"bold",key:e},t==="sab"?"SÁB":t.toLocaleUpperCase())))),r("div",{key:"b4a4a2cfbac55a1b965b1f52e4ac06e5fef2be54",class:"dates"},!this.collapsed?this.fetchDaysOfMonth().map(((t,e)=>r("div",{key:e,class:this.getClasses(t),onClick:()=>this.onDateClick(t)},t?ee(t,"d"):""))):this.fetchDaysOfWeek().map(((t,e)=>r("div",{key:e,class:this.getClasses(t),onClick:()=>this.onDateClick(t)},t?ee(t,"d"):"")))),this.collapsed!==null?this.collapsed?r("div",{class:"collapsed-container"},r("cura-button-transparent",{onClick:()=>this.showNotColapsedCalendar(),size:"small",color:"primary",fontColor:"dark",iconName:"plusCircle"},"Veja mais datas")):r("div",{class:"collapsed-container"},r("cura-button-transparent",{onClick:()=>this.showColapsedCalendar(),size:"small",color:"primary",fontColor:"dark",iconName:"minusCircle"},"Veja menos datas")):null))}static get watchers(){return{customDates:["watchDefaultDatesArray"],defaultDate:["handleDefaultDateChange"]}}};xr.style=yr;export{xr as cura_calendar};
2
- //# sourceMappingURL=p-56ca01a1.entry.js.map
1
+ import{r as t,c as e,h as r,H as n}from"./p-af3ac476.js";import{r as a,t as i,_ as o,i as s,a as d}from"./p-272c784a.js";function u(t){if(t===null||t===true||t===false){return NaN}var e=Number(t);if(isNaN(e)){return e}return e<0?Math.ceil(e):Math.floor(e)}function l(t,e){a(2,arguments);var r=i(t);var n=u(e);if(isNaN(n)){return new Date(NaN)}if(!n){return r}r.setDate(r.getDate()+n);return r}function c(t,e){a(2,arguments);var r=i(t);var n=u(e);if(isNaN(n)){return new Date(NaN)}if(!n){return r}var o=r.getDate();var s=new Date(r.getTime());s.setMonth(r.getMonth()+n+1,0);var d=s.getDate();if(o>=d){return s}else{r.setFullYear(s.getFullYear(),s.getMonth(),o);return r}}function h(t,e){a(2,arguments);var r=i(t).getTime();var n=u(e);return new Date(r+n)}var v={};function f(){return v}function m(t,e){var r,n,o,s,d,l,c,h;a(1,arguments);var v=f();var m=u((r=(n=(o=(s=e===null||e===void 0?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e===null||e===void 0?void 0:(d=e.locale)===null||d===void 0?void 0:(l=d.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:v.weekStartsOn)!==null&&n!==void 0?n:(c=v.locale)===null||c===void 0?void 0:(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&r!==void 0?r:0);if(!(m>=0&&m<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var w=i(t);var g=w.getDay();var p=(g<m?7:0)+g-m;w.setDate(w.getDate()-p);w.setHours(0,0,0,0);return w}function w(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));e.setUTCFullYear(t.getFullYear());return t.getTime()-e.getTime()}function g(t){a(1,arguments);var e=i(t);e.setHours(0,0,0,0);return e}function p(t,e){a(2,arguments);var r=u(e);var n=r*7;return l(t,n)}var b=6e4;var y=36e5;function x(t,e){a(2,arguments);var r=g(t);var n=g(e);return r.getTime()===n.getTime()}function M(t){a(1,arguments);return t instanceof Date||o(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function D(t){a(1,arguments);if(!M(t)&&typeof t!=="number"){return false}var e=i(t);return!isNaN(Number(e))}function k(t){a(1,arguments);var e=i(t);var r=e.getMonth();e.setFullYear(e.getFullYear(),r+1,0);e.setHours(23,59,59,999);return e}function P(t,e){var r;a(1,arguments);var n=t||{};var o=i(n.start);var s=i(n.end);var d=s.getTime();if(!(o.getTime()<=d)){throw new RangeError("Invalid interval")}var u=[];var l=o;l.setHours(0,0,0,0);var c=Number((r=e===null||e===void 0?void 0:e.step)!==null&&r!==void 0?r:1);if(c<1||isNaN(c))throw new RangeError("`options.step` must be a number greater than 1");while(l.getTime()<=d){u.push(i(l));l.setDate(l.getDate()+c);l.setHours(0,0,0,0)}return u}function N(t){a(1,arguments);var e=t||{};var r=i(e.start);var n=i(e.end);var o=n.getTime();var s=[];if(!(r.getTime()<=o)){throw new RangeError("Invalid interval")}var d=r;d.setHours(0,0,0,0);d.setDate(1);while(d.getTime()<=o){s.push(i(d));d.setMonth(d.getMonth()+1)}return s}function S(t){a(1,arguments);var e=i(t);e.setDate(1);e.setHours(0,0,0,0);return e}function W(t){a(1,arguments);var e=i(t);var r=new Date(0);r.setFullYear(e.getFullYear(),0,1);r.setHours(0,0,0,0);return r}function E(t,e){var r,n,o,s,d,l,c,h;a(1,arguments);var v=f();var m=u((r=(n=(o=(s=e===null||e===void 0?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e===null||e===void 0?void 0:(d=e.locale)===null||d===void 0?void 0:(l=d.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:v.weekStartsOn)!==null&&n!==void 0?n:(c=v.locale)===null||c===void 0?void 0:(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&r!==void 0?r:0);if(!(m>=0&&m<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var w=i(t);var g=w.getDay();var p=(g<m?-7:0)+6-(g-m);w.setDate(w.getDate()+p);w.setHours(23,59,59,999);return w}function j(t,e){a(2,arguments);var r=u(e);return h(t,-r)}var z=864e5;function q(t){a(1,arguments);var e=i(t);var r=e.getTime();e.setUTCMonth(0,1);e.setUTCHours(0,0,0,0);var n=e.getTime();var o=r-n;return Math.floor(o/z)+1}function C(t){a(1,arguments);var e=1;var r=i(t);var n=r.getUTCDay();var o=(n<e?7:0)+n-e;r.setUTCDate(r.getUTCDate()-o);r.setUTCHours(0,0,0,0);return r}function Y(t){a(1,arguments);var e=i(t);var r=e.getUTCFullYear();var n=new Date(0);n.setUTCFullYear(r+1,0,4);n.setUTCHours(0,0,0,0);var o=C(n);var s=new Date(0);s.setUTCFullYear(r,0,4);s.setUTCHours(0,0,0,0);var d=C(s);if(e.getTime()>=o.getTime()){return r+1}else if(e.getTime()>=d.getTime()){return r}else{return r-1}}function T(t){a(1,arguments);var e=Y(t);var r=new Date(0);r.setUTCFullYear(e,0,4);r.setUTCHours(0,0,0,0);var n=C(r);return n}var X=6048e5;function O(t){a(1,arguments);var e=i(t);var r=C(e).getTime()-T(e).getTime();return Math.round(r/X)+1}function R(t,e){var r,n,o,s,d,l,c,h;a(1,arguments);var v=f();var m=u((r=(n=(o=(s=e===null||e===void 0?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e===null||e===void 0?void 0:(d=e.locale)===null||d===void 0?void 0:(l=d.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:v.weekStartsOn)!==null&&n!==void 0?n:(c=v.locale)===null||c===void 0?void 0:(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&r!==void 0?r:0);if(!(m>=0&&m<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var w=i(t);var g=w.getUTCDay();var p=(g<m?7:0)+g-m;w.setUTCDate(w.getUTCDate()-p);w.setUTCHours(0,0,0,0);return w}function L(t,e){var r,n,o,s,d,l,c,h;a(1,arguments);var v=i(t);var m=v.getUTCFullYear();var w=f();var g=u((r=(n=(o=(s=e===null||e===void 0?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e===null||e===void 0?void 0:(d=e.locale)===null||d===void 0?void 0:(l=d.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:w.firstWeekContainsDate)!==null&&n!==void 0?n:(c=w.locale)===null||c===void 0?void 0:(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(g>=1&&g<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var p=new Date(0);p.setUTCFullYear(m+1,0,g);p.setUTCHours(0,0,0,0);var b=R(p,e);var y=new Date(0);y.setUTCFullYear(m,0,g);y.setUTCHours(0,0,0,0);var x=R(y,e);if(v.getTime()>=b.getTime()){return m+1}else if(v.getTime()>=x.getTime()){return m}else{return m-1}}function B(t,e){var r,n,i,o,s,d,l,c;a(1,arguments);var h=f();var v=u((r=(n=(i=(o=e===null||e===void 0?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e===null||e===void 0?void 0:(s=e.locale)===null||s===void 0?void 0:(d=s.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&n!==void 0?n:(l=h.locale)===null||l===void 0?void 0:(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1);var m=L(t,e);var w=new Date(0);w.setUTCFullYear(m,0,v);w.setUTCHours(0,0,0,0);var g=R(w,e);return g}var Q=6048e5;function A(t,e){a(1,arguments);var r=i(t);var n=R(r,e).getTime()-B(r,e).getTime();return Math.round(n/Q)+1}function G(t,e){var r=t<0?"-":"";var n=Math.abs(t).toString();while(n.length<e){n="0"+n}return r+n}var I={y:function t(e,r){var n=e.getUTCFullYear();var a=n>0?n:1-n;return G(r==="yy"?a%100:a,r.length)},M:function t(e,r){var n=e.getUTCMonth();return r==="M"?String(n+1):G(n+1,2)},d:function t(e,r){return G(e.getUTCDate(),r.length)},a:function t(e,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function t(e,r){return G(e.getUTCHours()%12||12,r.length)},H:function t(e,r){return G(e.getUTCHours(),r.length)},m:function t(e,r){return G(e.getUTCMinutes(),r.length)},s:function t(e,r){return G(e.getUTCSeconds(),r.length)},S:function t(e,r){var n=r.length;var a=e.getUTCMilliseconds();var i=Math.floor(a*Math.pow(10,n-3));return G(i,r.length)}};const H=I;var F={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};var $={G:function t(e,r,n){var a=e.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function t(e,r,n){if(r==="yo"){var a=e.getUTCFullYear();var i=a>0?a:1-a;return n.ordinalNumber(i,{unit:"year"})}return H.y(e,r)},Y:function t(e,r,n,a){var i=L(e,a);var o=i>0?i:1-i;if(r==="YY"){var s=o%100;return G(s,2)}if(r==="Yo"){return n.ordinalNumber(o,{unit:"year"})}return G(o,r.length)},R:function t(e,r){var n=Y(e);return G(n,r.length)},u:function t(e,r){var n=e.getUTCFullYear();return G(n,r.length)},Q:function t(e,r,n){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(r){case"Q":return String(a);case"QQ":return G(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function t(e,r,n){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(r){case"q":return String(a);case"qq":return G(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function t(e,r,n){var a=e.getUTCMonth();switch(r){case"M":case"MM":return H.M(e,r);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function t(e,r,n){var a=e.getUTCMonth();switch(r){case"L":return String(a+1);case"LL":return G(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function t(e,r,n,a){var i=A(e,a);if(r==="wo"){return n.ordinalNumber(i,{unit:"week"})}return G(i,r.length)},I:function t(e,r,n){var a=O(e);if(r==="Io"){return n.ordinalNumber(a,{unit:"week"})}return G(a,r.length)},d:function t(e,r,n){if(r==="do"){return n.ordinalNumber(e.getUTCDate(),{unit:"date"})}return H.d(e,r)},D:function t(e,r,n){var a=q(e);if(r==="Do"){return n.ordinalNumber(a,{unit:"dayOfYear"})}return G(a,r.length)},E:function t(e,r,n){var a=e.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function t(e,r,n,a){var i=e.getUTCDay();var o=(i-a.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return G(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function t(e,r,n,a){var i=e.getUTCDay();var o=(i-a.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return G(o,r.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function t(e,r,n){var a=e.getUTCDay();var i=a===0?7:a;switch(r){case"i":return String(i);case"ii":return G(i,r.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function t(e,r,n){var a=e.getUTCHours();var i=a/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function t(e,r,n){var a=e.getUTCHours();var i;if(a===12){i=F.noon}else if(a===0){i=F.midnight}else{i=a/12>=1?"pm":"am"}switch(r){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function t(e,r,n){var a=e.getUTCHours();var i;if(a>=17){i=F.evening}else if(a>=12){i=F.afternoon}else if(a>=4){i=F.morning}else{i=F.night}switch(r){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function t(e,r,n){if(r==="ho"){var a=e.getUTCHours()%12;if(a===0)a=12;return n.ordinalNumber(a,{unit:"hour"})}return H.h(e,r)},H:function t(e,r,n){if(r==="Ho"){return n.ordinalNumber(e.getUTCHours(),{unit:"hour"})}return H.H(e,r)},K:function t(e,r,n){var a=e.getUTCHours()%12;if(r==="Ko"){return n.ordinalNumber(a,{unit:"hour"})}return G(a,r.length)},k:function t(e,r,n){var a=e.getUTCHours();if(a===0)a=24;if(r==="ko"){return n.ordinalNumber(a,{unit:"hour"})}return G(a,r.length)},m:function t(e,r,n){if(r==="mo"){return n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"})}return H.m(e,r)},s:function t(e,r,n){if(r==="so"){return n.ordinalNumber(e.getUTCSeconds(),{unit:"second"})}return H.s(e,r)},S:function t(e,r){return H.S(e,r)},X:function t(e,r,n,a){var i=a._originalDate||e;var o=i.getTimezoneOffset();if(o===0){return"Z"}switch(r){case"X":return U(o);case"XXXX":case"XX":return V(o);case"XXXXX":case"XXX":default:return V(o,":")}},x:function t(e,r,n,a){var i=a._originalDate||e;var o=i.getTimezoneOffset();switch(r){case"x":return U(o);case"xxxx":case"xx":return V(o);case"xxxxx":case"xxx":default:return V(o,":")}},O:function t(e,r,n,a){var i=a._originalDate||e;var o=i.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+J(o,":");case"OOOO":default:return"GMT"+V(o,":")}},z:function t(e,r,n,a){var i=a._originalDate||e;var o=i.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+J(o,":");case"zzzz":default:return"GMT"+V(o,":")}},t:function t(e,r,n,a){var i=a._originalDate||e;var o=Math.floor(i.getTime()/1e3);return G(o,r.length)},T:function t(e,r,n,a){var i=a._originalDate||e;var o=i.getTime();return G(o,r.length)}};function J(t,e){var r=t>0?"-":"+";var n=Math.abs(t);var a=Math.floor(n/60);var i=n%60;if(i===0){return r+String(a)}var o=e||"";return r+String(a)+o+G(i,2)}function U(t,e){if(t%60===0){var r=t>0?"-":"+";return r+G(Math.abs(t)/60,2)}return V(t,e)}function V(t,e){var r=e||"";var n=t>0?"-":"+";var a=Math.abs(t);var i=G(Math.floor(a/60),2);var o=G(a%60,2);return n+i+r+o}const Z=$;var K=function t(e,r){switch(e){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}};var _=function t(e,r){switch(e){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}};var tt=function t(e,r){var n=e.match(/(P+)(p+)?/)||[];var a=n[1];var i=n[2];if(!i){return K(e,r)}var o;switch(a){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",K(a,r)).replace("{{time}}",_(i,r))};var et={p:_,P:tt};const rt=et;var nt=["D","DD"];var at=["YY","YYYY"];function it(t){return nt.indexOf(t)!==-1}function ot(t){return at.indexOf(t)!==-1}function st(t,e,r){if(t==="YYYY"){throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(t==="YY"){throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(t==="D"){throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(t==="DD"){throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) 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 dt={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"}};var ut=function t(e,r,n){var a;var i=dt[e];if(typeof i==="string"){a=i}else if(r===1){a=i.one}else{a=i.other.replace("{{count}}",r.toString())}if(n!==null&&n!==void 0&&n.addSuffix){if(n.comparison&&n.comparison>0){return"in "+a}else{return a+" ago"}}return a};const lt=ut;function ct(t){return function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=e.width?String(e.width):t.defaultWidth;var n=t.formats[r]||t.formats[t.defaultWidth];return n}}var ht={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"};var vt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"};var ft={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var mt={date:ct({formats:ht,defaultWidth:"full"}),time:ct({formats:vt,defaultWidth:"full"}),dateTime:ct({formats:ft,defaultWidth:"full"})};const wt=mt;var gt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var pt=function t(e,r,n,a){return gt[e]};const bt=pt;function yt(t){return function(e,r){var n=r!==null&&r!==void 0&&r.context?String(r.context):"standalone";var a;if(n==="formatting"&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth;var o=r!==null&&r!==void 0&&r.width?String(r.width):i;a=t.formattingValues[o]||t.formattingValues[i]}else{var s=t.defaultWidth;var d=r!==null&&r!==void 0&&r.width?String(r.width):t.defaultWidth;a=t.values[d]||t.values[s]}var u=t.argumentCallback?t.argumentCallback(e):e;return a[u]}}var xt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]};var Mt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]};var Dt={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"]};var kt={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"]};var Pt={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"}};var Nt={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"}};var St=function t(e,r){var n=Number(e);var a=n%100;if(a>20||a<10){switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}}return n+"th"};var Wt={ordinalNumber:St,era:yt({values:xt,defaultWidth:"wide"}),quarter:yt({values:Mt,defaultWidth:"wide",argumentCallback:function t(e){return e-1}}),month:yt({values:Dt,defaultWidth:"wide"}),day:yt({values:kt,defaultWidth:"wide"}),dayPeriod:yt({values:Pt,defaultWidth:"wide",formattingValues:Nt,defaultFormattingWidth:"wide"})};const Et=Wt;function jt(t){return function(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=r.width;var a=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth];var i=e.match(a);if(!i){return null}var o=i[0];var s=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth];var d=Array.isArray(s)?qt(s,(function(t){return t.test(o)})):zt(s,(function(t){return t.test(o)}));var u;u=t.valueCallback?t.valueCallback(d):d;u=r.valueCallback?r.valueCallback(u):u;var l=e.slice(o.length);return{value:u,rest:l}}}function zt(t,e){for(var r in t){if(t.hasOwnProperty(r)&&e(t[r])){return r}}return undefined}function qt(t,e){for(var r=0;r<t.length;r++){if(e(t[r])){return r}}return undefined}function Ct(t){return function(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=e.match(t.matchPattern);if(!n)return null;var a=n[0];var i=e.match(t.parsePattern);if(!i)return null;var o=t.valueCallback?t.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;var s=e.slice(a.length);return{value:o,rest:s}}}var Yt=/^(\d+)(th|st|nd|rd)?/i;var Tt=/\d+/i;var Xt={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};var Ot={any:[/^b/i,/^(a|c)/i]};var Rt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i};var Lt={any:[/1/i,/2/i,/3/i,/4/i]};var Bt={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};var Qt={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]};var At={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};var Gt={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]};var It={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};var Ht={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}};var Ft={ordinalNumber:Ct({matchPattern:Yt,parsePattern:Tt,valueCallback:function t(e){return parseInt(e,10)}}),era:jt({matchPatterns:Xt,defaultMatchWidth:"wide",parsePatterns:Ot,defaultParseWidth:"any"}),quarter:jt({matchPatterns:Rt,defaultMatchWidth:"wide",parsePatterns:Lt,defaultParseWidth:"any",valueCallback:function t(e){return e+1}}),month:jt({matchPatterns:Bt,defaultMatchWidth:"wide",parsePatterns:Qt,defaultParseWidth:"any"}),day:jt({matchPatterns:At,defaultMatchWidth:"wide",parsePatterns:Gt,defaultParseWidth:"any"}),dayPeriod:jt({matchPatterns:It,defaultMatchWidth:"any",parsePatterns:Ht,defaultParseWidth:"any"})};const $t=Ft;var Jt={code:"en-US",formatDistance:lt,formatLong:wt,formatRelative:bt,localize:Et,match:$t,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ut=Jt;var Vt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;var Zt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;var Kt=/^'([^]*?)'?$/;var _t=/''/g;var te=/[a-zA-Z]/;function ee(t,e,r){var n,o,s,d,l,c,h,v,m,g,p,b,y,x,M,k,P,N;a(2,arguments);var S=String(e);var W=f();var E=(n=(o=r===null||r===void 0?void 0:r.locale)!==null&&o!==void 0?o:W.locale)!==null&&n!==void 0?n:Ut;var z=u((s=(d=(l=(c=r===null||r===void 0?void 0:r.firstWeekContainsDate)!==null&&c!==void 0?c:r===null||r===void 0?void 0:(h=r.locale)===null||h===void 0?void 0:(v=h.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&l!==void 0?l:W.firstWeekContainsDate)!==null&&d!==void 0?d:(m=W.locale)===null||m===void 0?void 0:(g=m.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(z>=1&&z<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var q=u((p=(b=(y=(x=r===null||r===void 0?void 0:r.weekStartsOn)!==null&&x!==void 0?x:r===null||r===void 0?void 0:(M=r.locale)===null||M===void 0?void 0:(k=M.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&y!==void 0?y:W.weekStartsOn)!==null&&b!==void 0?b:(P=W.locale)===null||P===void 0?void 0:(N=P.options)===null||N===void 0?void 0:N.weekStartsOn)!==null&&p!==void 0?p:0);if(!(q>=0&&q<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}if(!E.localize){throw new RangeError("locale must contain localize property")}if(!E.formatLong){throw new RangeError("locale must contain formatLong property")}var C=i(t);if(!D(C)){throw new RangeError("Invalid time value")}var Y=w(C);var T=j(C,Y);var X={firstWeekContainsDate:z,weekStartsOn:q,locale:E,_originalDate:C};var O=S.match(Zt).map((function(t){var e=t[0];if(e==="p"||e==="P"){var r=rt[e];return r(t,E.formatLong)}return t})).join("").match(Vt).map((function(n){if(n==="''"){return"'"}var a=n[0];if(a==="'"){return re(n)}var i=Z[a];if(i){if(!(r!==null&&r!==void 0&&r.useAdditionalWeekYearTokens)&&ot(n)){st(n,e,String(t))}if(!(r!==null&&r!==void 0&&r.useAdditionalDayOfYearTokens)&&it(n)){st(n,e,String(t))}return i(T,n,E.localize,X)}if(a.match(te)){throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`")}return n})).join("");return O}function re(t){var e=t.match(Kt);if(!e){return t}return e[1].replace(_t,"'")}function ne(t){a(1,arguments);var e=i(t);var r=e.getDay();return r}function ae(t){a(1,arguments);var e=i(t);var r=e.getMonth();return r}function ie(t){a(1,arguments);return i(t).getFullYear()}function oe(t){a(1,arguments);return x(t,Date.now())}function se(t,e){a(2,arguments);var r=u(e);return l(t,-r)}function de(t,e){var r;a(1,arguments);var n=u((r=e===null||e===void 0?void 0:e.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0){throw new RangeError("additionalDigits must be 0, 1 or 2")}if(!(typeof t==="string"||Object.prototype.toString.call(t)==="[object String]")){return new Date(NaN)}var i=ve(t);var o;if(i.date){var s=fe(i.date,n);o=me(s.restDateString,s.year)}if(!o||isNaN(o.getTime())){return new Date(NaN)}var d=o.getTime();var l=0;var c;if(i.time){l=ge(i.time);if(isNaN(l)){return new Date(NaN)}}if(i.timezone){c=be(i.timezone);if(isNaN(c)){return new Date(NaN)}}else{var h=new Date(d+l);var v=new Date(0);v.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate());v.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds());return v}return new Date(d+l+c)}var ue={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/};var le=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/;var ce=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/;var he=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ve(t){var e={};var r=t.split(ue.dateTimeDelimiter);var n;if(r.length>2){return e}if(/:/.test(r[0])){n=r[0]}else{e.date=r[0];n=r[1];if(ue.timeZoneDelimiter.test(e.date)){e.date=t.split(ue.timeZoneDelimiter)[0];n=t.substr(e.date.length,t.length)}}if(n){var a=ue.timezone.exec(n);if(a){e.time=n.replace(a[1],"");e.timezone=a[1]}else{e.time=n}}return e}function fe(t,e){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)");var n=t.match(r);if(!n)return{year:NaN,restDateString:""};var a=n[1]?parseInt(n[1]):null;var i=n[2]?parseInt(n[2]):null;return{year:i===null?a:i*100,restDateString:t.slice((n[1]||n[2]).length)}}function me(t,e){if(e===null)return new Date(NaN);var r=t.match(le);if(!r)return new Date(NaN);var n=!!r[4];var a=we(r[1]);var i=we(r[2])-1;var o=we(r[3]);var s=we(r[4]);var d=we(r[5])-1;if(n){if(!Pe(e,s,d)){return new Date(NaN)}return ye(e,s,d)}else{var u=new Date(0);if(!De(e,i,o)||!ke(e,a)){return new Date(NaN)}u.setUTCFullYear(e,i,Math.max(a,o));return u}}function we(t){return t?parseInt(t):1}function ge(t){var e=t.match(ce);if(!e)return NaN;var r=pe(e[1]);var n=pe(e[2]);var a=pe(e[3]);if(!Ne(r,n,a)){return NaN}return r*y+n*b+a*1e3}function pe(t){return t&&parseFloat(t.replace(",","."))||0}function be(t){if(t==="Z")return 0;var e=t.match(he);if(!e)return 0;var r=e[1]==="+"?-1:1;var n=parseInt(e[2]);var a=e[3]&&parseInt(e[3])||0;if(!Se(n,a)){return NaN}return r*(n*y+a*b)}function ye(t,e,r){var n=new Date(0);n.setUTCFullYear(t,0,4);var a=n.getUTCDay()||7;var i=(e-1)*7+r+1-a;n.setUTCDate(n.getUTCDate()+i);return n}var xe=[31,null,31,30,31,30,31,31,30,31,30,31];function Me(t){return t%400===0||t%4===0&&t%100!==0}function De(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(xe[e]||(Me(t)?29:28))}function ke(t,e){return e>=1&&e<=(Me(t)?366:365)}function Pe(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}function Ne(t,e,r){if(t===24){return e===0&&r===0}return r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}function Se(t,e){return e>=0&&e<=59}function We(t,e){a(2,arguments);var r=u(e);return c(t,-r)}function Ee(t,e){a(2,arguments);var r=u(e);return p(t,-r)}var je={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"};var ze={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"};var qe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var Ce={date:ct({formats:je,defaultWidth:"full"}),time:ct({formats:ze,defaultWidth:"full"}),dateTime:ct({formats:qe,defaultWidth:"full"})};const Ye=Ce;var Te={code:"en-AU",formatDistance:lt,formatLong:Ye,formatRelative:bt,localize:Et,match:$t,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Xe=Te;var Oe={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}};var Re=function t(e,r,n){var a;var i=Oe[e];if(typeof i==="string"){a=i}else if(r===1){a=i.one}else{a=i.other.replace("{{count}}",String(r))}if(n!==null&&n!==void 0&&n.addSuffix){if(n.comparison&&n.comparison>0){return"em "+a}else{return"há "+a}}return a};const Le=Re;var Be={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"};var Qe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"};var Ae={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var Ge={date:ct({formats:Be,defaultWidth:"full"}),time:ct({formats:Qe,defaultWidth:"full"}),dateTime:ct({formats:Ae,defaultWidth:"full"})};const Ie=Ge;var He={lastWeek:function t(e){var r=e.getUTCDay();var n=r===0||r===6?"último":"última";return"'"+n+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"};var Fe=function t(e,r,n,a){var i=He[e];if(typeof i==="function"){return i(r)}return i};const $e=Fe;var Je={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]};var Ue={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]};var Ve={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]};var Ze={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]};var Ke={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}};var _e={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}};var tr=function t(e,r){var n=Number(e);if((r===null||r===void 0?void 0:r.unit)==="week"){return n+"ª"}return n+"º"};var er={ordinalNumber:tr,era:yt({values:Je,defaultWidth:"wide"}),quarter:yt({values:Ue,defaultWidth:"wide",argumentCallback:function t(e){return e-1}}),month:yt({values:Ve,defaultWidth:"wide"}),day:yt({values:Ze,defaultWidth:"wide"}),dayPeriod:yt({values:Ke,defaultWidth:"wide",formattingValues:_e,defaultFormattingWidth:"wide"})};const rr=er;var nr=/^(\d+)[ºªo]?/i;var ar=/\d+/i;var ir={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i};var or={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]};var sr={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i};var dr={any:[/1/i,/2/i,/3/i,/4/i]};var ur={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i};var lr={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,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]};var cr={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i};var hr={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]};var vr={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i};var fr={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}};var mr={ordinalNumber:Ct({matchPattern:nr,parsePattern:ar,valueCallback:function t(e){return parseInt(e,10)}}),era:jt({matchPatterns:ir,defaultMatchWidth:"wide",parsePatterns:or,defaultParseWidth:"any"}),quarter:jt({matchPatterns:sr,defaultMatchWidth:"wide",parsePatterns:dr,defaultParseWidth:"any",valueCallback:function t(e){return e+1}}),month:jt({matchPatterns:ur,defaultMatchWidth:"wide",parsePatterns:lr,defaultParseWidth:"any"}),day:jt({matchPatterns:cr,defaultMatchWidth:"wide",parsePatterns:hr,defaultParseWidth:"any"}),dayPeriod:jt({matchPatterns:vr,defaultMatchWidth:"any",parsePatterns:fr,defaultParseWidth:"any"})};const wr=mr;var gr={code:"pt-BR",formatDistance:Le,formatLong:Ie,formatRelative:$e,localize:rr,match:wr,options:{weekStartsOn:0,firstWeekContainsDate:1}};const pr=gr;const br=':host{display:block;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);margin:0 auto}:host .calendar{display:flex;flex-direction:column;gap:5px;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);border-radius:4px;overflow:hidden;background:#fff;font-family:var(--font-family)}:host .calendar.embedded{border:2px solid var(--neutral-light);padding:0px 12px 12px 12px}:host .calendar.floating{box-shadow:0 4px 8px var(--neutral-light)}:host .header{position:relative;padding:12px 0}:host .header::after{content:"";position:absolute;bottom:0;left:2px;right:2px;border-bottom:2px dotted var(--neutral-light)}:host .month-year{display:flex;padding:12px 8px;justify-content:space-between;align-self:stretch}:host .month-year.dropdown{padding:0%}:host .select{display:flex;padding:7px 10px 0px;justify-content:center;align-items:center;gap:6px;flex:1 0 0}:host .drop-month{display:flex;max-width:118px;padding:0px;align-items:flex-start;gap:0px;flex:1 0 0}:host .drop-year{display:flex;min-width:80px;max-width:85px;padding:0px;align-items:flex-start;gap:0px;flex:1 0 0}:host .days-of-week{display:flex;height:30px;padding:4px;justify-content:center;align-items:center;gap:4px;flex-shrink:0}:host .day{flex:1;text-align:center}:host .dates{display:flex;flex-wrap:wrap;align-items:center;align-self:stretch;gap:0}:host .icon{cursor:pointer;position:relative;overflow:hidden;border-radius:50%}:host .icon.dropdown{margin-top:10px}:host .icon::before{content:"";position:absolute;border-radius:50%;top:50%;left:50%;width:20px;height:20px;background:var(--primary-base);transform:translate(-50%, -50%) scale(0);transition:transform 0.2s ease}:host .icon:active::before{transform:translate(-50%, -50%) scale(1)}:host .icon:active{transform:scale(1)}:host .collapsed-container{text-align:center;position:relative;display:flex;align-items:center;justify-content:center;padding-top:10px}:host .collapsed-container::before{content:"";position:absolute;bottom:0;top:0;left:2px;right:2px;border-top:2px dotted var(--neutral-light)}:host .date{display:flex;justify-content:center;align-items:center;height:auto;width:14.2857142857%;aspect-ratio:1;font-size:14px;cursor:pointer;position:relative;box-sizing:border-box;text-align:center;flex-shrink:0}:host .date.today{border:2px solid var(--primary-darker);border-radius:50%;color:var(--primary-darker)}:host .date.selected{color:var(--select-label) !important;background:var(--primary-base);border-radius:50%}:host .date.default-dates{color:var(--select-label) !important;background:var(--primary-base);border-radius:50%;border:none}:host .date.invalid{color:var(--neutral-dark) !important;cursor:not-allowed}:host .date.invalid:hover{background:none;box-shadow:none}:host .date.valid{color:var(--primary-darker);font-weight:var(--font-weight-bold)}:host .date.range.start{border-radius:50% 0 0 50%;color:var(--select-label) !important;background:var(--primary-base)}:host .date.range.interval{border-radius:0;background:var(--primary-lighter);color:var(--neutral-black) !important}:host .date.range.interval.today{border:none}:host .date.range.end{border-radius:0 50% 50% 0;color:var(--select-label) !important;background:var(--primary-base)}:host .date:hover{background:var(--primary-lighter);border-radius:50%;color:var(--neutral-white)}:host select,:host input{width:60px;font-size:16px;box-shadow:0 2px 2px var(--neutral-black);padding:5px;border-radius:4px;border:1px solid #ccc;background:#f7f7f7}';const yr=br;const xr=class{constructor(r){t(this,r);this.onchangeday=e(this,"onchangeday",7);this.theme=window.CuraAPI.theme;this.weights=this.theme.fonts.getWeights();this.optionsLocale={"pt-BR":pr,"en-US":Xe};this.period=null;this.width="268px";this.minWidth="268px";this.maxWidth="400px";this.mode="single";this.dateFormat="yyyy-MM-dd";this.locale="pt-BR";this.type="dropdown";this.disable=[];this.enable=[];this.defaultDate=[];this.customDates=[];this.limitRange=null;this.disablePassDates=undefined;this.disableFutureDates=undefined;this.collapsed=null;this.floating=undefined;this.embedded=undefined;this.selectLabelColorMode="light";this.selectedDates=[];this.rangeStart=null;this.defaultDates=[];this.currentDate=new Date;this.selectMonth="";this.selectYear="";this.styles={}}connectedCallback(){this.setFontProperties();this.initializeDefaultDates();const t=[{name:"--primary-base",theme:"primary-base"},{name:"--primary-lighter",theme:"primary-lighter"},{name:"--primary-light",theme:"primary-light"},{name:"--neutral-black",theme:"neutral-black"},{name:"--primary-darker",theme:"primary-darker"},{name:"--neutral-dark",theme:"neutral-dark"},{name:"--neutral-light",theme:"neutral-light"},{name:"--neutral-white",theme:"neutral-white"},{name:"--select-label",theme:this.selectLabelColorMode==="dark"?"neutral-black":"neutral-white"}];t.forEach((t=>this.styles=Object.assign(Object.assign({},this.styles),{[t.name]:this.theme.colors.getColor(t.theme)})))}setFontProperties(){this.styles["--font-family"]=window.CuraAPI.theme.fonts.getFamily();this.styles["--font-size"]=window.CuraAPI.theme.fonts.getSize();this.styles["--font-color"]=window.CuraAPI.theme.fonts.getColor();this.styles["--font-weight-medium"]=this.weights.medium;this.styles["--font-weight-bold"]=this.weights.bold;this.styles["--font-weight-regular"]=this.weights.regular}initializeDefaultDates(){if(typeof this.defaultDate==="string"){const t=JSON.parse(this.defaultDate||"[]");if(typeof t==="string"){this.defaultDate=[t]}else{this.defaultDate=t}}this.defaultDates=this.expandDateRanges(this.defaultDate);this.currentDate=this.defaultDates[0]?this.defaultDates[0]:this.currentDate}determineLocale(){return this.optionsLocale[this.locale]||this.locale}isDateInValidPeriod(t){if(this.period===null){return true}return this.period.includes(ee(t,this.dateFormat))}isDateSelected(t){return this.isDateInList(this.selectedDates,t)}isDateInDefaultSelection(t){return this.isDateInList(this.defaultDates,t)}isDateInDisabledPeriod(t){const e=new Date;e.setHours(0,0,0,0);if(this.disablePassDates)return s(t,e);if(this.disableFutureDates)return d(t,e);if(this.disable===null)return false;return this.isDateInList(this.expandDateRanges(this.disable),t)}isDateInEnabledPeriod(t){if(this.enable===null||[])return true;return this.isDateInList(this.expandDateRanges(this.enable),t)}isDateInList(t,e){return t.some((t=>x(t,e)))}removeDateFromSelection(t,e){return t.filter((t=>!x(t,e)))}updateCurrentMonth(t){let e=this.currentDate;if(t==="prev")e=We(this.currentDate,1);if(t==="next")e=c(this.currentDate,1);this.currentDate=e}onMonthDropdownChange(t){const{months:e}=this.fetchMonthNames();const r=t.detail;this.selectMonth=r;this.currentDate=new Date(ie(this.currentDate),e.indexOf(r),1)}onYearDropdownChange(t){const e=t.detail;this.selectYear=e;this.currentDate=new Date(e,ae(this.currentDate),1)}expandDateRanges(t){if(!t)return[];return t.flatMap((t=>{if(typeof t==="string")return D(de(t))?[de(t)]:[];const e=de(t.from);const r=de(t.to);if(D(e)&&D(r)&&e<=r)return P({start:e,end:r});return[]}))}selectSingleDate(t){this.defaultDates=[];this.selectedDates=[t]}selectMultiplesDate(t){if(!this.isDateSelected(t)||!this.isDateInDefaultSelection(t))return this.selectedDates=[...this.selectedDates,t];this.selectedDates=this.removeDateFromSelection(this.selectedDates,t);this.defaultDates=this.removeDateFromSelection(this.defaultDates,t)}selectDateRange(t){this.defaultDates=[];const e=s(this.rangeStart,t)?this.rangeStart:t;const r=d(this.rangeStart,t)?this.rangeStart:t;const n=P({start:e,end:r});if(!this.rangeStart||this.selectedDates.length===2){this.rangeStart=t;this.selectedDates=[t];return}if(this.limitRange===null||n.length<=this.limitRange){this.selectedDates=n;this.rangeStart=null}}onDateClick(t){if(!this.isDateInValidPeriod(t)||this.isDateInDisabledPeriod(t)||!this.isDateInEnabledPeriod(t))return;const e={single:this.selectSingleDate.bind(this),multiple:this.selectMultiplesDate.bind(this),range:this.selectDateRange.bind(this)};e[this.mode](t);this.onchangeday.emit({days:[...this.defaultDates,...this.selectedDates].filter((t=>this.isDateInValidPeriod(t)))})}fetchWeekDays(){const t=m(new Date(2021,0,3),{locale:this.determineLocale()});const e=E(new Date(2021,0,3),{locale:this.determineLocale()});return P({start:t,end:e}).map((t=>ee(t,"EEEEEE",{locale:this.determineLocale()})))}showNotColapsedCalendar(){if(this.collapsed){this.fetchDaysOfWeek()}else this.fetchDaysOfMonth();this.collapsed=false}showColapsedCalendar(){this.collapsed=true;return this.fetchDaysOfWeek()}fetchDaysOfWeek(){const t=7;const e=m(this.currentDate);const r=E(this.currentDate);const n=P({start:e,end:r});return n.slice(0,t)}updateCurrentWeek(t){let e=this.currentDate;if(t==="prev")e=Ee(this.currentDate,1);if(t==="next")e=p(this.currentDate,1);this.currentDate=e}fetchDaysOfMonth(){const t=6;const e=42;const r=S(this.currentDate);const n=k(this.currentDate);const a=P({start:r,end:n});const i=S(c(r,-1));const o=k(i);const s=P({start:se(o,ne(r)),end:o});const d=S(c(n,1));const u=k(d);const h=t-ne(n);const v=P({start:d,end:l(u,h)});const f=[...s.slice(-ne(r)),...a,...v];return f.slice(0,e)}fetchMonthNames(){const t=ie(this.currentDate);const e=this.determineLocale();const r=N({start:W(new Date(t,0,1)),end:new Date(t,11,31)}).map((t=>ee(t,"MMMM",{locale:e})));const n=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase();return{months:r.map(n)}}fetchYearList(){const t=ie(new Date);return Array.from({length:100},((e,r)=>t-r))}determinePrevButtonColor(){const t=s(new Date(ie(this.currentDate),ae(this.currentDate)-1,1),S(new Date));return t&&"primary-base"}getDateStatus(t){const[e,r]=[this.selectedDates[0],this.selectedDates[this.selectedDates.length-1]];const[n,a]=[this.defaultDates[0],this.defaultDates[this.defaultDates.length-1]];const i=this.selectedDates.length>1;const o=this.defaultDates.length>1;const s=this.isDateSelected(t)&&x(t,e);const d=this.isDateInDefaultSelection(t)&&x(t,n);const u=this.isDateSelected(t)&&x(t,r);const l=this.isDateInDefaultSelection(t)&&x(t,a);const c=s||d;const h=u||l;const v=this.expandDateRanges([{from:e===null||e===void 0?void 0:e.toISOString(),to:r===null||r===void 0?void 0:r.toISOString()}]);const f=this.expandDateRanges([{from:n===null||n===void 0?void 0:n.toISOString(),to:a===null||a===void 0?void 0:a.toISOString()}]);const m=i&&this.isDateInList(v,t);const w=o&&this.isDateInList(f,t);const g=this.isDateInValidPeriod(t);const p=!g||this.isDateInDisabledPeriod(t)||!this.isDateInEnabledPeriod(t);const b=this.isDateSelected(t);const y=this.mode==="range"&&(i||o);const M=this.mode!=="range"&&this.isDateInDefaultSelection(t);const D=(m||w)&&!c&&!h;return{isStart:c,isEnd:h,isValid:g,isInvalid:p,isSelected:b,isRange:y,isDefault:M,isInterval:D}}getClasses(t){const e={date:true};if(t===null)return e;const r=this.getDateStatus(t);e["today"]=oe(t);e["valid"]=r.isValid;e["invalid"]=r.isInvalid;e["selected"]=r.isSelected;e["range"]=r.isRange;e["default-dates"]=r.isDefault;e["start"]=r.isStart;e["interval"]=r.isInterval;e["end"]=r.isEnd;return e}getHostCSSProperties(){return{"--width":this.width,"--min-width":this.minWidth,"--max-width":this.maxWidth}}watchDefaultDatesArray(){this.selectedDates=this.customDates}handleDefaultDateChange(t){if(typeof t==="string"){const e=JSON.parse(t||"[]");if(typeof e==="string"){t=[e]}else{t=e}}this.defaultDates=this.expandDateRanges(t)}render(){const{months:t}=this.fetchMonthNames();return r(n,{key:"a27b858fff12fe2d19898dbb0be8080a0175c465",style:this.getHostCSSProperties()},r("div",{key:"e2fe9991e3ef03d11b0e58b412d31020ead1b344",class:`calendar ${this.floating?"floating":""} ${this.embedded?"embedded":""}`,style:this.styles},r("header",{key:"8bf8a4f703043d907d8bc81ed22061380cd67ade",class:"header"},r("div",{key:"66c2b27693f188929065972828c2ce4a672f1e74",class:`month-year ${this.type==="dropdown"&&"dropdown"}`},r("cura-icon",{key:"0e6841eb77061f404e23fbfc28be40600255767a",class:`icon ${this.type==="dropdown"&&"dropdown"}`,name:"left",color:this.determinePrevButtonColor(),onClick:!this.collapsed?()=>this.updateCurrentMonth("prev"):()=>this.updateCurrentWeek("prev")}),this.type==="dropdown"?r("div",{class:"select"},r("cura-select",{size:"small",class:"drop-month",mode:"transparent",value:t[ae(this.currentDate)],onSelected:t=>this.onMonthDropdownChange(t)},t.map(((t,e)=>r("cura-select-option",{size:"xsmall",key:e,value:t},t)))),r("cura-select",{size:"small",class:"drop-year",mode:"transparent",value:ie(this.currentDate).toString(),onSelected:t=>this.onYearDropdownChange(t)},this.fetchYearList().map(((t,e)=>r("cura-select-option",{key:e,value:t.toString()},t.toString()))))):r("cura-label",{color:"neutral-black",size:"large"},t[ae(this.currentDate)].slice(0,3),", ",ie(this.currentDate)),r("cura-icon",{key:"cdc62d8666dc7b890daadf63d2ffe0d0000ec545",class:`icon ${this.type==="dropdown"&&"dropdown"}`,name:"right",color:"primary-base",onClick:!this.collapsed?()=>this.updateCurrentMonth("next"):()=>this.updateCurrentWeek("next")}))),r("span",{key:"fa0d8c6ff291f343da594799b3ba366d3e020e74",class:"days-of-week"},this.fetchWeekDays().map(((t,e)=>r("cura-label",{class:"day",size:"xsmall",color:"neutral-black",weight:"bold",key:e},t==="sab"?"SÁB":t.toLocaleUpperCase())))),r("div",{key:"dc072663767251cc694d51612cacd94f1fe31a84",class:"dates"},!this.collapsed?this.fetchDaysOfMonth().map(((t,e)=>r("div",{key:e,class:this.getClasses(t),onClick:()=>this.onDateClick(t)},t?ee(t,"d"):""))):this.fetchDaysOfWeek().map(((t,e)=>r("div",{key:e,class:this.getClasses(t),onClick:()=>this.onDateClick(t)},t?ee(t,"d"):"")))),this.collapsed!==null?this.collapsed?r("div",{class:"collapsed-container"},r("cura-button-transparent",{onClick:()=>this.showNotColapsedCalendar(),size:"small",color:"primary",fontColor:"dark",iconName:"plusCircle"},"Veja mais datas")):r("div",{class:"collapsed-container"},r("cura-button-transparent",{onClick:()=>this.showColapsedCalendar(),size:"small",color:"primary",fontColor:"dark",iconName:"minusCircle"},"Veja menos datas")):null))}static get watchers(){return{customDates:["watchDefaultDatesArray"],defaultDate:["handleDefaultDateChange"]}}};xr.style=yr;export{xr as cura_calendar};
2
+ //# sourceMappingURL=p-506747fb.entry.js.map