@sequencing/design-system 1.0.72 → 1.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/documentation.json +7 -0
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Atoms/Button/Button.d.ts +5 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/components/Atoms/Button/Button.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
Copyright (c) 2018 Jed Watson.
|
|
9
9
|
Licensed under the MIT License (MIT), see
|
|
10
10
|
http://jedwatson.github.io/classnames
|
|
11
|
-
*/!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var a=arguments[r];if(a){var o=typeof a;if("string"===o||"number"===o)e.push(a);else if(Array.isArray(a)){if(a.length){var i=n.apply(null,a);i&&e.push(i)}}else if("object"===o){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){e.push(a.toString());continue}for(var s in a)t.call(a,s)&&a[s]&&e.push(s)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(d);var p,m=o(d.exports);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(null,arguments)}const f=e=>r.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,stroke:"rgba(0, 0, 0, .26)",viewBox:"0 0 24 24"},e),p||(p=r.createElement("style",null,"@keyframes spinner_zKoa{to{transform:rotate(360deg)}}@keyframes spinner_YpZS{0%{stroke-dasharray:0 150;stroke-dashoffset:0}47.5%{stroke-dasharray:42 150;stroke-dashoffset:-16}95%,to{stroke-dasharray:42 150;stroke-dashoffset:-59}}")),r.createElement("g",{style:{transformOrigin:"center",animation:"spinner_zKoa 2s linear infinite"}},r.createElement("circle",{cx:12,cy:12,r:9.5,fill:"none",strokeWidth:2,className:"spinner_svg__spinner_V8m1",style:{strokeLinecap:"round",animation:"spinner_YpZS 1.5s ease-in-out infinite"}}))),g=({size:t="16",color:n="white",className:r})=>e.createElement(f,{className:m("spinner",r),width:t,height:t,stroke:n});const v=l.bind({button:"Button-module_button__JK2Jx",fancy:"Button-module_fancy__2cnu9",primary:"Button-module_primary__wIuY6",secondary:"Button-module_secondary__n8cUo",outlined:"Button-module_outlined__dLv1u",outlinedSecondary:"Button-module_outlinedSecondary__oUBP1",outlinedDanger:"Button-module_outlinedDanger__pIcHL",outlinedWarning:"Button-module_outlinedWarning__ExDBS",danger:"Button-module_danger__8GArG",warning:"Button-module_warning__Bw4Rs",white:"Button-module_white__zpeRb",outlinedWhite:"Button-module_outlinedWhite__x89sZ",small:"Button-module_small__qRKwC",medium:"Button-module_medium__XwIa4",large:"Button-module_large__ZIejN",text:"Button-module_text__BWVYH",textSecondary:"Button-module_textSecondary__nIELn",loading:"Button-module_loading__PGkqg",success:"Button-module_success__uLz2G",yellow:"Button-module_yellow__G4hh4",outlinedSuccess:"Button-module_outlinedSuccess__WhbQj",outlinedYellow:"Button-module_outlinedYellow__x81-m"}),w=e.forwardRef(((t,n)=>{var{hint:r,label:a,loading:o,disabled:i,customClass:s,variant:l="primary",size:c="medium",iconSrc:u,iconPosition:d="left",onClick:p}=t,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(t,["hint","label","loading","disabled","customClass","variant","size","iconSrc","iconPosition","onClick"]);const h=u&&"string"==typeof u?e.createElement("img",{src:u}):u;return e.createElement("button",Object.assign({title:r,onClick:p,disabled:o||i,className:v("button",l,c,s,{loading:o}),ref:n,type:"button"},m),o&&e.createElement(g,null),!o&&u&&"left"===d&&h,void 0!==a&&e.createElement("span",null,a),!o&&u&&"right"===d&&h)}));w.displayName="Button";var y="data:image/svg+xml,%3csvg width='11' height='7' viewBox='0 0 11 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.56153 0.75411C4.88925 0.415298 5.42716 0.415297 5.75487 0.754109L9.91715 5.05737C10.4363 5.59406 10.0616 6.5 9.32049 6.5H0.99592C0.254841 6.5 -0.119853 5.59406 0.399253 5.05737L4.56153 0.75411Z' fill='%2312306C'/%3e%3c/svg%3e",k={dropdown:"Dropdown-module_dropdown__OYMLT",isOpen:"Dropdown-module_isOpen__I-Fwe",dropdownToggle:"Dropdown-module_dropdownToggle__K4-rD",outlined:"Dropdown-module_outlined__cubpr",withIcon:"Dropdown-module_withIcon__WZrCH",primary:"Dropdown-module_primary__rH-n3",dropdownContent:"Dropdown-module_dropdownContent__kCcyD",anchorRight:"Dropdown-module_anchorRight__4uqM4"};const b=l.bind(k),C=e.forwardRef((({hint:t,icon:n,label:r,children:a,hideCaret:o,customClass:i,customContentClass:s,variant:l="primary",anchorPoint:c="left",customCaretDownIconSrc:u,customToggleButtonClass:d,dismissOnClickOutside:p=!0,onToggle:m},h)=>{const f=e.useRef(null),[g,v]=e.useState(!1);e.useEffect((()=>{if(p)return document.addEventListener("mousedown",C),()=>{document.removeEventListener("mousedown",C)}})),e.useImperativeHandle(h,(()=>({close:w})));const w=()=>{v(!1),null==m||m(!g)},C=e=>{(null==f?void 0:f.current)&&!f.current.contains(e.target)&&g&&(v(!1),null==m||m(!g,e))};return e.createElement("div",{ref:f,className:b("dropdown",l,i,{isOpen:g,withIcon:!!n,anchorLeft:"left"===c,anchorRight:"right"===c})},e.createElement("button",{title:t,type:"button",onClick:e=>{e.preventDefault(),v(!g),null==m||m(!g,e)},className:b(k.dropdownToggle,d)},n&&e.createElement("img",{src:n,alt:"icon"}),r&&e.createElement("span",null,r),!o&&e.createElement("img",{src:u||y,alt:"caret"})),e.createElement("div",{className:b(k.dropdownContent,s),hidden:!g},a))}));var D={textfield:"TextField-module_textfield__Z5iSV",iconLeft:"TextField-module_iconLeft__OEYRe",iconRight:"TextField-module_iconRight__zQ0w9",clearButton:"TextField-module_clearButton__M8pNo",icon:"TextField-module_icon__E2Ieq"};const S=l.bind(D),E=({value:t,customClass:n,placeholder:r,showClearButton:a,variant:o="primary",onChange:i,onClick:s,inputRef:l,icon:c,iconPosition:u="left"})=>{var d,p;return e.createElement("div",{className:S("textfield",o,n)},c&&e.createElement("img",{src:c,alt:"icon",className:S("icon",{iconLeft:"left"===u,iconRight:"right"===u})}),e.createElement("input",{ref:l,value:t,autoComplete:"off",placeholder:r,onChange:e=>{null==i||i(e.target.value)},onClick:e=>{null==s||s(e)},className:S({iconLeft:!!c&&"left"===u,iconRight:!!c&&"right"===u})}),a&&(!!(null==t?void 0:t.length)||!!(null===(p=null===(d=null==l?void 0:l.current)||void 0===d?void 0:d.value)||void 0===p?void 0:p.length))&&e.createElement("button",{type:"button","aria-label":"clear",onClick:()=>{null==i||i(""),(null==l?void 0:l.current)&&(l.current.value="")},className:D.clearButton}))};var A,x;function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M.apply(null,arguments)}const N=e=>r.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:14,height:8,fill:"none"},e),r.createElement("mask",{id:"caret-down_svg__a",width:14,height:8,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},A||(A=r.createElement("path",{fill:"#D9D9D9",d:"M0 0v8h14V0z"}))),x||(x=r.createElement("g",{mask:"url(#caret-down_svg__a)"},r.createElement("path",{fill:"#12306C",d:"m7.005 2.086 5.426 5.627q.277.287.646.277a.9.9 0 0 0 .646-.296.94.94 0 0 0 .277-.67.94.94 0 0 0-.277-.67L8.057.46A1.47 1.47 0 0 0 7.005 0q-.278 0-.554.115-.277.114-.498.344L.268 6.354a.91.91 0 0 0-.268.68.98.98 0 0 0 .286.679.87.87 0 0 0 1.292 0z"}))));var P="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3e%3cmask id='mask0_19842_11414' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='14' height='8'%3e%3crect width='8' height='14' transform='matrix(-4.37114e-08 1 1 4.37114e-08 0 0)' fill='%23D9D9D9'/%3e%3c/mask%3e%3cg mask='url(%23mask0_19842_11414)'%3e%3cpath d='M7.00476 2.08612L12.4311 7.71292C12.6157 7.90431 12.8311 7.99681 13.0771 7.99043C13.3232 7.98405 13.5386 7.88517 13.7231 7.69378C13.9077 7.50239 14 7.27911 14 7.02392C14 6.76874 13.9077 6.54546 13.7231 6.35407L8.05682 0.459331C7.90916 0.30622 7.74305 0.191388 7.55848 0.114833C7.37391 0.0382778 7.18933 3.14256e-07 7.00476 3.06188e-07C6.82019 2.9812e-07 6.63562 0.0382778 6.45105 0.114833C6.26648 0.191388 6.10037 0.30622 5.95271 0.45933L0.267925 6.35407C0.0833543 6.54546 -0.00585497 6.77193 0.000297388 7.03349C0.00644974 7.29506 0.101811 7.52153 0.286382 7.71292C0.470953 7.90431 0.686286 8 0.93238 8C1.17847 8 1.39381 7.90431 1.57838 7.71292L7.00476 2.08612Z' fill='%2312306C'/%3e%3c/g%3e%3c/svg%3e",T={accordion:"Accordion-module_accordion__t2UQl",outlined:"Accordion-module_outlined__NQUM5",accordionToggle:"Accordion-module_accordionToggle__4X-Wg",accordionContent:"Accordion-module_accordionContent__j9no7",isOpen:"Accordion-module_isOpen__0d2yS",primary:"Accordion-module_primary__j0xoQ"};const L=l.bind(T);var O={tabMenu:"TabMenu-module_tabMenu__SbpUg",verticalOnDesktop:"TabMenu-module_verticalOnDesktop__CNPuo",tab:"TabMenu-module_tab__-NW1I",active:"TabMenu-module_active__F76rY",chip:"TabMenu-module_chip__KRJDB"};const R=l.bind(O),Y=({customClass:t,customActiveClass:n="",tabId:r,active:a,chip:o,children:i,onClick:s})=>e.createElement("div",{className:R("tab",t,{active:a,[n]:a}),onClick:()=>s(r)},"string"==typeof i?e.createElement("span",null,i):i,!!o&&e.createElement("div",{className:R("chip")},o)),I=l.bind(O);var B={modalOverlay:"Modal-module_modalOverlay__vB0a-",modalWrapper:"Modal-module_modalWrapper__0bvDk",modalCloseButton:"Modal-module_modalCloseButton__raBgL",modalTitle:"Modal-module_modalTitle__TW21J",modalContent:"Modal-module_modalContent__PUKvv",buttonsContainer:"Modal-module_buttonsContainer__dghew"};const _=l.bind(B);var H="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 18 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M8.955 15.0768C9.27 15.0768 9.5364 14.9679 9.7542 14.7501C9.9714 14.5329 10.08 14.2668 10.08 13.9518C10.08 13.6368 9.9714 13.3707 9.7542 13.1535C9.5364 12.9357 9.27 12.8268 8.955 12.8268C8.64 12.8268 8.3736 12.9357 8.1558 13.1535C7.9386 13.3707 7.83 13.6368 7.83 13.9518C7.83 14.2668 7.9386 14.5329 8.1558 14.7501C8.3736 14.9679 8.64 15.0768 8.955 15.0768ZM8.145 11.6118H9.81C9.81 11.1168 9.8664 10.7268 9.9792 10.4418C10.0914 10.1568 10.41 9.76676 10.935 9.27176C11.325 8.88176 11.6325 8.51036 11.8575 8.15756C12.0825 7.80536 12.195 7.38176 12.195 6.88676C12.195 6.04676 11.8875 5.40176 11.2725 4.95176C10.6575 4.50176 9.93 4.27676 9.09 4.27676C8.235 4.27676 7.5414 4.50176 7.0092 4.95176C6.4764 5.40176 6.105 5.94176 5.895 6.57176L7.38 7.15676C7.455 6.88676 7.6239 6.59426 7.8867 6.27926C8.1489 5.96426 8.55 5.80676 9.09 5.80676C9.57 5.80676 9.93 5.93786 10.17 6.20006C10.41 6.46286 10.53 6.75176 10.53 7.06676C10.53 7.36676 10.44 7.64786 10.26 7.91006C10.08 8.17286 9.855 8.41676 9.585 8.64176C8.925 9.22676 8.52 9.66926 8.37 9.96926C8.22 10.2693 8.145 10.8168 8.145 11.6118ZM9 18.6768C7.755 18.6768 6.585 18.4404 5.49 17.9676C4.395 17.4954 3.4425 16.8543 2.6325 16.0443C1.8225 15.2343 1.1814 14.2818 0.7092 13.1868C0.2364 12.0918 0 10.9218 0 9.67676C0 8.43176 0.2364 7.26176 0.7092 6.16676C1.1814 5.07176 1.8225 4.11926 2.6325 3.30926C3.4425 2.49926 4.395 1.85786 5.49 1.38506C6.585 0.912858 7.755 0.676758 9 0.676758C10.245 0.676758 11.415 0.912858 12.51 1.38506C13.605 1.85786 14.5575 2.49926 15.3675 3.30926C16.1775 4.11926 16.8186 5.07176 17.2908 6.16676C17.7636 7.26176 18 8.43176 18 9.67676C18 10.9218 17.7636 12.0918 17.2908 13.1868C16.8186 14.2818 16.1775 15.2343 15.3675 16.0443C14.5575 16.8543 13.605 17.4954 12.51 17.9676C11.415 18.4404 10.245 18.6768 9 18.6768Z' fill='white'/%3e%3c/svg%3e",F={appBar:"AppBar-module_appBar__Qdk4Q",wrapper:"AppBar-module_wrapper__1RQaw",appId:"AppBar-module_appId__dvlhd",icon:"AppBar-module_icon__llVzL",titleWrapper:"AppBar-module_titleWrapper__ZDbYC",betaApp:"AppBar-module_betaApp__glSMt",appInfo:"AppBar-module_appInfo__ojUgZ",appInfoPipe:"AppBar-module_appInfoPipe__-gQ7i",content:"AppBar-module_content__zfFex",rightAdornmentWrapper:"AppBar-module_rightAdornmentWrapper__llYw7",rightAdornment:"AppBar-module_rightAdornment__asOhj",appVersionWrapper:"AppBar-module_appVersionWrapper__rJLPr",appVersion:"AppBar-module_appVersion__CNsMr",lastUpdatedContainer:"AppBar-module_lastUpdatedContainer__7aFn5",appTooltipWrapper:"AppBar-module_appTooltipWrapper__o3bOA",lifted:"AppBar-module_lifted__Q8nLc",appTooltipCenterWrapper:"AppBar-module_appTooltipCenterWrapper__XqQiT",lastUpdatedTooltipContentWrapper:"AppBar-module_lastUpdatedTooltipContentWrapper__Pr1tq",appTooltipContent:"AppBar-module_appTooltipContent__WpduU",lastUpdatedTooltipWrapper:"AppBar-module_lastUpdatedTooltipWrapper__PEeHF"};const W=l.bind(F);var Q={sdsWrapper:"DatePicker-module_sdsWrapper__Ny8aV",sdsHeader:"DatePicker-module_sdsHeader__qPKM-",sdsHeader__yearSelector:"DatePicker-module_sdsHeader__yearSelector__3BNC2",sdsHeader__monthSelectors:"DatePicker-module_sdsHeader__monthSelectors__8jGdR",sdsYearsSelector__header:"DatePicker-module_sdsYearsSelector__header__MkyA8",sdsYearsSelector__headerTitle:"DatePicker-module_sdsYearsSelector__headerTitle__fUeso",sdsYearsSelector__headerButtons:"DatePicker-module_sdsYearsSelector__headerButtons__M816B",sdsYearsSelector__years:"DatePicker-module_sdsYearsSelector__years__Hbl23",sdsYearsSelector__year:"DatePicker-module_sdsYearsSelector__year__BvkEW",sdsYearsSelector__year_selected:"DatePicker-module_sdsYearsSelector__year_selected__rC-HK",sdsYearsSelector__year_current:"DatePicker-module_sdsYearsSelector__year_current__mq5zq",sdsYearsSelector__year_disabled:"DatePicker-module_sdsYearsSelector__year_disabled__0Iy-M"};function q(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=q(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function U(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=q(e))&&(r&&(r+=" "),r+=t);return r}function j(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function K(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function V(e,t){const n=j(e);return isNaN(t)?K(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function Z(e,t){return K(e,+j(e)+t)}const X=6048e5,J=864e5,G=6e4,z=36e5;function $(e,t){return Z(e,t*G)}function ee(e,t){const n=j(e);if(isNaN(t))return K(e,NaN);if(!t)return n;const r=n.getDate(),a=K(e,n.getTime());a.setMonth(n.getMonth()+t+1,0);return r>=a.getDate()?a:(n.setFullYear(a.getFullYear(),a.getMonth(),r),n)}function te(e,t){return ee(e,3*t)}function ne(e,t){return Z(e,1e3*t)}function re(e,t){return V(e,7*t)}function ae(e,t){return ee(e,12*t)}function oe(e){const t=j(e);return t.setHours(0,0,0,0),t}function ie(e){const t=j(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function se(e,t){const n=oe(e),r=oe(t),a=+n-ie(n),o=+r-ie(r);return Math.round((a-o)/J)}function le(e,t){const n=j(e),r=j(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}function ce(e){const t=j(e);return Math.trunc(t.getMonth()/3)+1}function ue(e,t){const n=j(e),r=j(t);return 4*(n.getFullYear()-r.getFullYear())+(ce(n)-ce(r))}function de(e,t){const n=j(e),r=j(t);return n.getFullYear()-r.getFullYear()}function pe(e){const t=j(e);return t.setHours(23,59,59,999),t}function me(e){const t=j(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}let he={};function fe(){return he}function ge(e){const t=j(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}const ve={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"}};function we(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ye={date:we({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:we({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:we({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ke={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function be(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,a=n?.width?String(n.width):t;r=e.formattingValues[a]||e.formattingValues[t]}else{const t=e.defaultWidth,a=n?.width?String(n.width):e.defaultWidth;r=e.values[a]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const Ce={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:be({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:be({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:be({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:be({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:be({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function De(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;const i=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(i)));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}const Se={ordinalNumber:(Ee={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(Ee.matchPattern);if(!n)return null;const r=n[0],a=e.match(Ee.parsePattern);if(!a)return null;let o=Ee.valueCallback?Ee.valueCallback(a[0]):a[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(r.length)}}),era:De({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:De({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:De({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:De({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:De({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var Ee;const Ae={code:"en-US",formatDistance:(e,t,n)=>{let r;const a=ve[e];return r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:ye,formatRelative:(e,t,n,r)=>ke[e],localize:Ce,match:Se,options:{weekStartsOn:0,firstWeekContainsDate:1}};function xe(e){const t=j(e),n=K(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Me(e,t){const n=fe(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=j(e),o=a.getDay(),i=(o<r?7:0)+o-r;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function Ne(e){return Me(e,{weekStartsOn:1})}function Pe(e){const t=j(e),n=t.getFullYear(),r=K(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=Ne(r),o=K(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const i=Ne(o);return t.getTime()>=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Te(e){const t=j(e),n=+Ne(t)-+function(e){const t=Pe(e),n=K(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ne(n)}(t);return Math.round(n/X)+1}function Le(e,t){const n=j(e),r=n.getFullYear(),a=fe(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,i=K(e,0);i.setFullYear(r+1,0,o),i.setHours(0,0,0,0);const s=Me(i,t),l=K(e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=Me(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function Oe(e,t){const n=j(e),r=+Me(n,t)-+function(e,t){const n=fe(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=Le(e,t),o=K(e,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),Me(o,t)}(n,t);return Math.round(r/X)+1}function Re(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Ye={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Re("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):Re(n+1,2)},d:(e,t)=>Re(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>Re(e.getHours()%12||12,t.length),H:(e,t)=>Re(e.getHours(),t.length),m:(e,t)=>Re(e.getMinutes(),t.length),s:(e,t)=>Re(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return Re(Math.trunc(r*Math.pow(10,n-3)),t.length)}},Ie="midnight",Be="noon",_e="morning",He="afternoon",Fe="evening",We="night",Qe={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return Ye.y(e,t)},Y:function(e,t,n,r){const a=Le(e,r),o=a>0?a:1-a;if("YY"===t){return Re(o%100,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):Re(o,t.length)},R:function(e,t){return Re(Pe(e),t.length)},u:function(e,t){return Re(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Re(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Re(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ye.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Re(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=Oe(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):Re(a,t.length)},I:function(e,t,n){const r=Te(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Re(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Ye.d(e,t)},D:function(e,t,n){const r=function(e){const t=j(e);return se(t,xe(t))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Re(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Re(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});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"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Re(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return Re(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(a=12===r?Be:0===r?Ie:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(a=r>=17?Fe:r>=12?He:r>=4?_e:We,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return Ye.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ye.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Re(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Re(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ye.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ye.s(e,t)},S:function(e,t){return Ye.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Ue(r);case"XXXX":case"XX":return je(r);default:return je(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ue(r);case"xxxx":case"xx":return je(r);default:return je(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+qe(r,":");default:return"GMT"+je(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+qe(r,":");default:return"GMT"+je(r,":")}},t:function(e,t,n){return Re(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return Re(e.getTime(),t.length)}};function qe(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),o=r%60;return 0===o?n+String(a):n+String(a)+t+Re(o,2)}function Ue(e,t){if(e%60==0){return(e>0?"-":"+")+Re(Math.abs(e)/60,2)}return je(e,t)}function je(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+Re(Math.trunc(r/60),2)+t+Re(r%60,2)}const Ke=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Ve=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Ze={p:Ve,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return Ke(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",Ke(r,t)).replace("{{time}}",Ve(a,t))}},Xe=/^D+$/,Je=/^Y+$/,Ge=["D","DD","YY","YYYY"];function ze(e){return Xe.test(e)}function $e(e){return Je.test(e)}function et(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),Ge.includes(e))throw new RangeError(r)}function tt(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function nt(e){if(!tt(e)&&"number"!=typeof e)return!1;const t=j(e);return!isNaN(Number(t))}const rt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,at=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ot=/^'([^]*?)'?$/,it=/''/g,st=/[a-zA-Z]/;function lt(e,t,n){const r=fe(),a=n?.locale??r.locale??Ae,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=j(e);if(!nt(s))throw new RangeError("Invalid time value");let l=t.match(at).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,Ze[t])(e,a.formatLong)}return e})).join("").match(rt).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:ct(e)};if(Qe[t])return{isToken:!0,value:e};if(t.match(st))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));a.localize.preprocessor&&(l=a.localize.preprocessor(s,l));const c={firstWeekContainsDate:o,weekStartsOn:i,locale:a};return l.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&$e(o)||!n?.useAdditionalDayOfYearTokens&&ze(o))&&et(o,t,String(e));return(0,Qe[o[0]])(s,o,a.localize,c)})).join("")}function ct(e){const t=e.match(ot);return t?t[1].replace(it,"'"):e}function ut(e){return j(e).getDate()}function dt(e){return j(e).getHours()}function pt(e){return j(e).getMinutes()}function mt(e){return j(e).getMonth()}function ht(e){return j(e).getSeconds()}function ft(e){return j(e).getTime()}function gt(e){return j(e).getFullYear()}function vt(e,t){const n=j(e),r=j(t);return n.getTime()>r.getTime()}function wt(e,t){return+j(e)<+j(t)}function yt(e){const t=j(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function kt(e,t){const n=+j(e),[r,a]=[+j(t.start),+j(t.end)].sort(((e,t)=>e-t));return n>=r&&n<=a}function bt(e){let t;return e.forEach((function(e){const n=j(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new Date(NaN)}function Ct(e){let t;return e.forEach((e=>{const n=j(e);(!t||t>n||isNaN(+n))&&(t=n)})),t||new Date(NaN)}class Dt{subPriority=0;validate(e,t){return!0}}class St extends Dt{constructor(e,t,n,r,a){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,a&&(this.subPriority=a)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class Et extends Dt{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:K(e,function(e,t){const n=t instanceof Date?K(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}(e,Date))}}class At{run(e,t,n,r){const a=this.parse(e,t,n,r);return a?{setter:new St(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,t,n){return!0}}const xt=/^(1[0-2]|0?\d)/,Mt=/^(3[0-1]|[0-2]?\d)/,Nt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Pt=/^(5[0-3]|[0-4]?\d)/,Tt=/^(2[0-3]|[0-1]?\d)/,Lt=/^(2[0-4]|[0-1]?\d)/,Ot=/^(1[0-1]|0?\d)/,Rt=/^(1[0-2]|0?\d)/,Yt=/^[0-5]?\d/,It=/^[0-5]?\d/,Bt=/^\d/,_t=/^\d{1,2}/,Ht=/^\d{1,3}/,Ft=/^\d{1,4}/,Wt=/^-?\d+/,Qt=/^-?\d/,qt=/^-?\d{1,2}/,Ut=/^-?\d{1,3}/,jt=/^-?\d{1,4}/,Kt=/^([+-])(\d{2})(\d{2})?|Z/,Vt=/^([+-])(\d{2})(\d{2})|Z/,Zt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Xt=/^([+-])(\d{2}):(\d{2})|Z/,Jt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Gt(e,t){return e?{value:t(e.value),rest:e.rest}:e}function zt(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function $t(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const r="+"===n[1]?1:-1,a=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(a*z+o*G+1e3*i),rest:t.slice(n[0].length)}}function en(e){return zt(Wt,e)}function tn(e,t){switch(e){case 1:return zt(Bt,t);case 2:return zt(_t,t);case 3:return zt(Ht,t);case 4:return zt(Ft,t);default:return zt(new RegExp("^\\d{1,"+e+"}"),t)}}function nn(e,t){switch(e){case 1:return zt(Qt,t);case 2:return zt(qt,t);case 3:return zt(Ut,t);case 4:return zt(jt,t);default:return zt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function rn(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function an(e,t){const n=t>0,r=n?t:1-t;let a;if(r<=50)a=e||100;else{const t=r+50;a=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?a:1-a}function on(e){return e%400==0||e%4==0&&e%100!=0}const sn=[31,28,31,30,31,30,31,31,30,31,30,31],ln=[31,29,31,30,31,30,31,31,30,31,30,31];function cn(e,t,n){const r=fe(),a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=j(e),i=o.getDay(),s=7-a;return V(o,t<0||t>6?t-(i+s)%7:((t%7+7)%7+s)%7-(i+s)%7)}function un(e,t){const n=j(e),r=function(e){let t=j(e).getDay();return 0===t&&(t=7),t}(n);return V(n,t-r)}const dn={G:new class extends At{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends At{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return Gt(tn(4,e),r);case"yo":return Gt(n.ordinalNumber(e,{unit:"year"}),r);default:return Gt(tn(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=an(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const a="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}},Y:new class extends At{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return Gt(tn(4,e),r);case"Yo":return Gt(n.ordinalNumber(e,{unit:"year"}),r);default:return Gt(tn(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const a=Le(e,r);if(n.isTwoDigitYear){const t=an(n.year,a);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Me(e,r)}const o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Me(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends At{priority=130;parse(e,t){return nn("R"===t?4:t.length,e)}set(e,t,n){const r=K(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ne(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends At{priority=130;parse(e,t){return nn("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends At{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return tn(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends At{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return tn(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends At{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"M":return Gt(zt(xt,e),r);case"MM":return Gt(tn(2,e),r);case"Mo":return Gt(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},L:new class extends At{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return Gt(zt(xt,e),r);case"LL":return Gt(tn(2,e),r);case"Lo":return Gt(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends At{priority=100;parse(e,t,n){switch(t){case"w":return zt(Pt,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return tn(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return Me(function(e,t,n){const r=j(e),a=Oe(r,n)-t;return r.setDate(r.getDate()-7*a),r}(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends At{priority=100;parse(e,t,n){switch(t){case"I":return zt(Pt,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return tn(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return Ne(function(e,t){const n=j(e),r=Te(n)-t;return n.setDate(n.getDate()-7*r),n}(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends At{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return zt(Mt,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return tn(t.length,e)}}validate(e,t){const n=on(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=ln[r]:t>=1&&t<=sn[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends At{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return zt(Nt,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return tn(t.length,e)}}validate(e,t){return on(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends At{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=cn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends At{priority=90;parse(e,t,n,r){const a=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Gt(tn(t.length,e),a);case"eo":return Gt(n.ordinalNumber(e,{unit:"day"}),a);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=cn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends At{priority=90;parse(e,t,n,r){const a=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Gt(tn(t.length,e),a);case"co":return Gt(n.ordinalNumber(e,{unit:"day"}),a);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=cn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends At{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return tn(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Gt(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return Gt(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Gt(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return Gt(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=un(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends At{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(rn(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends At{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(rn(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends At{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(rn(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends At{priority=70;parse(e,t,n){switch(t){case"h":return zt(Rt,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return tn(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends At{priority=70;parse(e,t,n){switch(t){case"H":return zt(Tt,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return tn(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends At{priority=70;parse(e,t,n){switch(t){case"K":return zt(Ot,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return tn(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends At{priority=70;parse(e,t,n){switch(t){case"k":return zt(Lt,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return tn(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends At{priority=60;parse(e,t,n){switch(t){case"m":return zt(Yt,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return tn(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},s:new class extends At{priority=50;parse(e,t,n){switch(t){case"s":return zt(It,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return tn(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},S:new class extends At{priority=30;parse(e,t){return Gt(tn(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},X:new class extends At{priority=10;parse(e,t){switch(t){case"X":return $t(Kt,e);case"XX":return $t(Vt,e);case"XXXX":return $t(Zt,e);case"XXXXX":return $t(Jt,e);default:return $t(Xt,e)}}set(e,t,n){return t.timestampIsSet?e:K(e,e.getTime()-ie(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends At{priority=10;parse(e,t){switch(t){case"x":return $t(Kt,e);case"xx":return $t(Vt,e);case"xxxx":return $t(Zt,e);case"xxxxx":return $t(Jt,e);default:return $t(Xt,e)}}set(e,t,n){return t.timestampIsSet?e:K(e,e.getTime()-ie(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends At{priority=40;parse(e){return en(e)}set(e,t,n){return[K(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends At{priority=20;parse(e){return en(e)}set(e,t,n){return[K(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},pn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hn=/^'([^]*?)'?$/,fn=/''/g,gn=/\S/,vn=/[a-zA-Z]/;function wn(e,t,n,r){const a=Object.assign({},fe()),o=r?.locale??a.locale??Ae,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(""===t)return""===e?j(n):K(n,NaN);const l={firstWeekContainsDate:i,weekStartsOn:s,locale:o},c=[new Et],u=t.match(mn).map((e=>{const t=e[0];if(t in Ze){return(0,Ze[t])(e,o.formatLong)}return e})).join("").match(pn),d=[];for(let a of u){!r?.useAdditionalWeekYearTokens&&$e(a)&&et(a,t,e),!r?.useAdditionalDayOfYearTokens&&ze(a)&&et(a,t,e);const i=a[0],s=dn[i];if(s){const{incompatibleTokens:t}=s;if(Array.isArray(t)){const e=d.find((e=>t.includes(e.token)||e.token===i));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${a}\` at the same time`)}else if("*"===s.incompatibleTokens&&d.length>0)throw new RangeError(`The format string mustn't contain \`${a}\` and any other token at the same time`);d.push({token:i,fullToken:a});const r=s.run(e,a,o.match,l);if(!r)return K(n,NaN);c.push(r.setter),e=r.rest}else{if(i.match(vn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===a?a="'":"'"===i&&(a=a.match(hn)[1].replace(fn,"'")),0!==e.indexOf(a))return K(n,NaN);e=e.slice(a.length)}}if(e.length>0&&gn.test(e))return K(n,NaN);const p=c.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>c.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let m=j(n);if(isNaN(m.getTime()))return K(n,NaN);const h={};for(const e of p){if(!e.validate(m,l))return K(n,NaN);const t=e.set(m,h,l);Array.isArray(t)?(m=t[0],Object.assign(h,t[1])):m=t}return K(n,m)}function yn(e,t){const n=t?.additionalDigits??2,r=function(e){const t={},n=e.split(kn.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],kn.timeZoneDelimiter.test(t.date)&&(t.date=e.split(kn.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=kn.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let a;if(r.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const a=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?a:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(r.date,n);a=function(e,t){if(null===t)return new Date(NaN);const n=e.match(bn);if(!n)return new Date(NaN);const r=!!n[4],a=Sn(n[1]),o=Sn(n[2])-1,i=Sn(n[3]),s=Sn(n[4]),l=Sn(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const a=r.getUTCDay()||7,o=7*(t-1)+n+1-a;return r.setUTCDate(r.getUTCDate()+o),r}(t,s,l):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(An[t]||(xn(e)?29:28))}(t,o,i)&&function(e,t){return t>=1&&t<=(xn(e)?366:365)}(t,a)?(e.setUTCFullYear(t,o,Math.max(a,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);const o=a.getTime();let i,s=0;if(r.time&&(s=function(e){const t=e.match(Cn);if(!t)return NaN;const n=En(t[1]),r=En(t[2]),a=En(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,a))return NaN;return n*z+r*G+1e3*a}(r.time),isNaN(s)))return new Date(NaN);if(!r.timezone){const e=new Date(o+s),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return i=function(e){if("Z"===e)return 0;const t=e.match(Dn);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,a))return NaN;return n*(r*z+a*G)}(r.timezone),isNaN(i)?new Date(NaN):new Date(o+s+i)}const kn={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},bn=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Cn=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Dn=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Sn(e){return e?parseInt(e):1}function En(e){return e&&parseFloat(e.replace(",","."))||0}const An=[31,null,31,30,31,30,31,31,30,31,30,31];function xn(e){return e%400==0||e%4==0&&e%100!=0}function Mn(e,t){const n=j(e),r=n.getFullYear(),a=n.getDate(),o=K(e,0);o.setFullYear(r,t,15),o.setHours(0,0,0,0);const i=function(e){const t=j(e),n=t.getFullYear(),r=t.getMonth(),a=K(e,0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}(o);return n.setMonth(t,Math.min(a,i)),n}function Nn(e,t){const n=j(e);return n.setHours(t),n}function Pn(e,t){const n=j(e);return n.setMinutes(t),n}function Tn(e,t){const n=j(e),r=t-(Math.trunc(n.getMonth()/3)+1);return Mn(n,n.getMonth()+3*r)}function Ln(e,t){const n=j(e);return n.setSeconds(t),n}function On(e,t){const n=j(e);return isNaN(+n)?K(e,NaN):(n.setFullYear(t),n)}function Rn(e){const t=j(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Yn(e,t){return ee(e,-t)}function In(e,t){return te(e,-t)}function Bn(e,t){return re(e,-t)}function _n(e,t){return ae(e,-t)}function Hn(){return"undefined"!=typeof window}function Fn(e){return qn(e)?(e.nodeName||"").toLowerCase():"#document"}function Wn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Qn(e){var t;return null==(t=(qn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function qn(e){return!!Hn()&&(e instanceof Node||e instanceof Wn(e).Node)}function Un(e){return!!Hn()&&(e instanceof Element||e instanceof Wn(e).Element)}function jn(e){return!!Hn()&&(e instanceof HTMLElement||e instanceof Wn(e).HTMLElement)}function Kn(e){return!(!Hn()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Wn(e).ShadowRoot)}function Vn(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=$n(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function Zn(e){return["table","td","th"].includes(Fn(e))}function Xn(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Jn(e){const t=Gn(),n=Un(e)?$n(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Gn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function zn(e){return["html","body","#document"].includes(Fn(e))}function $n(e){return Wn(e).getComputedStyle(e)}function er(e){return Un(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tr(e){if("html"===Fn(e))return e;const t=e.assignedSlot||e.parentNode||Kn(e)&&e.host||Qn(e);return Kn(t)?t.host:t}function nr(e){const t=tr(e);return zn(t)?e.ownerDocument?e.ownerDocument.body:e.body:jn(t)&&Vn(t)?t:nr(t)}function rr(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=nr(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=Wn(a);if(o){const e=ar(i);return t.concat(i,i.visualViewport||[],Vn(a)?a:[],e&&n?rr(e):[])}return t.concat(a,rr(a,[],n))}function ar(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const or=Math.min,ir=Math.max,sr=Math.round,lr=Math.floor,cr=e=>({x:e,y:e}),ur={left:"right",right:"left",bottom:"top",top:"bottom"},dr={start:"end",end:"start"};function pr(e,t,n){return ir(e,or(t,n))}function mr(e,t){return"function"==typeof e?e(t):e}function hr(e){return e.split("-")[0]}function fr(e){return e.split("-")[1]}function gr(e){return"y"===e?"height":"width"}function vr(e){return["top","bottom"].includes(hr(e))?"y":"x"}function wr(e){return"x"===vr(e)?"y":"x"}function yr(e){return e.replace(/start|end/g,(e=>dr[e]))}function kr(e){return e.replace(/left|right|bottom|top/g,(e=>ur[e]))}function br(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Cr(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function Dr(e,t,n){let{reference:r,floating:a}=e;const o=vr(t),i=wr(t),s=gr(i),l=hr(t),c="y"===o,u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let m;switch(l){case"top":m={x:u,y:r.y-a.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-a.width,y:d};break;default:m={x:r.x,y:r.y}}switch(fr(t)){case"start":m[i]-=p*(n&&c?-1:1);break;case"end":m[i]+=p*(n&&c?-1:1)}return m}function Sr(e){const t=$n(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=jn(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=sr(n)!==o||sr(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function Er(e){return Un(e)?e:e.contextElement}function Ar(e){const t=Er(e);if(!jn(t))return cr(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=Sr(t);let i=(o?sr(n.width):n.width)/r,s=(o?sr(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const xr=cr(0);function Mr(e){const t=Wn(e);return Gn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:xr}function Nr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=Er(e);let i=cr(1);t&&(r?Un(r)&&(i=Ar(r)):i=Ar(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Wn(e))&&t}(o,n,r)?Mr(o):cr(0);let l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(o){const e=Wn(o),t=r&&Un(r)?Wn(r):r;let n=e,a=ar(n);for(;a&&r&&t!==n;){const e=Ar(a),t=a.getBoundingClientRect(),r=$n(a),o=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=Wn(a),a=ar(n)}}return Cr({width:u,height:d,x:l,y:c})}function Pr(e,t){const n=er(e).scrollLeft;return t?t.left+n:Nr(Qn(e)).left+n}function Tr(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Wn(e),r=Qn(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;const e=Gn();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:o,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Qn(e),n=er(e),r=e.ownerDocument.body,a=ir(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ir(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Pr(e);const s=-n.scrollTop;return"rtl"===$n(r).direction&&(i+=ir(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}(Qn(e));else if(Un(t))r=function(e,t){const n=Nr(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=jn(e)?Ar(e):cr(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}}(t,n);else{const n=Mr(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Cr(r)}function Lr(e,t){const n=tr(e);return!(n===t||!Un(n)||zn(n))&&("fixed"===$n(n).position||Lr(n,t))}function Or(e,t,n){const r=jn(t),a=Qn(t),o="fixed"===n,i=Nr(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=cr(0);if(r||!r&&!o)if(("body"!==Fn(t)||Vn(a))&&(s=er(t)),r){const e=Nr(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&(l.x=Pr(a));let c=0,u=0;if(a&&!r&&!o){const e=a.getBoundingClientRect();u=e.top+s.scrollTop,c=e.left+s.scrollLeft-Pr(a,e)}return{x:i.left+s.scrollLeft-l.x-c,y:i.top+s.scrollTop-l.y-u,width:i.width,height:i.height}}function Rr(e){return"static"===$n(e).position}function Yr(e,t){if(!jn(e)||"fixed"===$n(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Qn(e)===n&&(n=n.ownerDocument.body),n}function Ir(e,t){const n=Wn(e);if(Xn(e))return n;if(!jn(e)){let t=tr(e);for(;t&&!zn(t);){if(Un(t)&&!Rr(t))return t;t=tr(t)}return n}let r=Yr(e,t);for(;r&&Zn(r)&&Rr(r);)r=Yr(r,t);return r&&zn(r)&&Rr(r)&&!Jn(r)?n:r||function(e){let t=tr(e);for(;jn(t)&&!zn(t);){if(Jn(t))return t;if(Xn(t))return null;t=tr(t)}return null}(e)||n}const Br={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o="fixed"===a,i=Qn(r),s=!!t&&Xn(t.floating);if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=cr(1);const u=cr(0),d=jn(r);if((d||!d&&!o)&&(("body"!==Fn(r)||Vn(i))&&(l=er(r)),jn(r))){const e=Nr(r);c=Ar(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:Qn,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?Xn(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=rr(e,[],!1).filter((e=>Un(e)&&"body"!==Fn(e))),a=null;const o="fixed"===$n(e).position;let i=o?tr(e):e;for(;Un(i)&&!zn(i);){const t=$n(i),n=Jn(i);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||Vn(i)&&!n&&Lr(e,i))?r=r.filter((e=>e!==i)):a=t,i=tr(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=Tr(t,n,a);return e.top=ir(r.top,e.top),e.right=or(r.right,e.right),e.bottom=or(r.bottom,e.bottom),e.left=ir(r.left,e.left),e}),Tr(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Ir,getElementRects:async function(e){const t=this.getOffsetParent||Ir,n=this.getDimensions,r=await n(e.floating);return{reference:Or(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Sr(e);return{width:t,height:n}},getScale:Ar,isElement:Un,isRTL:function(e){return"rtl"===$n(e).direction}};function _r(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Er(e),u=a||o?[...c?rr(c):[],...rr(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const a=Qn(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const m={rootMargin:-lr(u)+"px "+-lr(a.clientWidth-(c+d))+"px "+-lr(a.clientHeight-(u+p))+"px "+-lr(c)+"px",threshold:ir(0,or(1,l))||1};let h=!0;function f(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(f,{...m,root:a.ownerDocument})}catch(e){r=new IntersectionObserver(f,m)}r.observe(e)}(!0),o}(c,n):null;let p,m=-1,h=null;i&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let f=l?Nr(e):null;return l&&function t(){const r=Nr(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n();f=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const Hr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=hr(n),s=fr(n),l="y"===vr(n),c=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,d=mr(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(m="end"===s?-1*h:h),l?{x:m*u,y:p*c}:{x:p*c,y:m*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},Fr=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:f=!0,...g}=mr(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const v=hr(a),w=vr(s),y=hr(s)===s,k=await(null==l.isRTL?void 0:l.isRTL(c.floating)),b=p||(y||!f?[kr(s)]:function(e){const t=kr(e);return[yr(e),t,yr(t)]}(s)),C="none"!==h;!p&&C&&b.push(...function(e,t,n,r){const a=fr(e);let o=function(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:i;default:return[]}}(hr(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(yr)))),o}(s,f,h,k));const D=[s,...b],S=await async function(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=mr(t,e),h=br(m),f=s[p?"floating"===d?"reference":"floating":d],g=Cr(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(f)))||n?f:f.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,w=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),y=await(null==o.isElement?void 0:o.isElement(w))&&await(null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},k=Cr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:w,strategy:l}):v);return{top:(g.top-k.top+h.top)/y.y,bottom:(k.bottom-g.bottom+h.bottom)/y.y,left:(g.left-k.left+h.left)/y.x,right:(k.right-g.right+h.right)/y.x}}(t,g),E=[];let A=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&E.push(S[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=fr(e),a=wr(e),o=gr(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=kr(i)),[i,kr(i)]}(a,i,k);E.push(S[e[0]],S[e[1]])}if(A=[...A,{placement:a,overflows:E}],!E.every((e=>e<=0))){var x,M;const e=((null==(x=o.flip)?void 0:x.index)||0)+1,t=D[e];if(t)return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(M=A.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:M.placement;if(!n)switch(m){case"bestFit":{var N;const e=null==(N=A.filter((e=>{if(C){const t=vr(e.placement);return t===w||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}},Wr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=mr(e,t)||{};if(null==c)return{};const d=br(u),p={x:n,y:r},m=wr(a),h=gr(m),f=await i.getDimensions(c),g="y"===m,v=g?"top":"left",w=g?"bottom":"right",y=g?"clientHeight":"clientWidth",k=o.reference[h]+o.reference[m]-p[m]-o.floating[h],b=p[m]-o.reference[m],C=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let D=C?C[y]:0;D&&await(null==i.isElement?void 0:i.isElement(C))||(D=s.floating[y]||o.floating[h]);const S=k/2-b/2,E=D/2-f[h]/2-1,A=or(d[v],E),x=or(d[w],E),M=A,N=D-f[h]-x,P=D/2-f[h]/2+S,T=pr(M,P,N),L=!l.arrow&&null!=fr(a)&&P!==T&&o.reference[h]/2-(P<M?A:x)-f[h]/2<0,O=L?P<M?P-M:P-N:0;return{[m]:p[m]+O,data:{[m]:T,centerOffset:P-T-O,...L&&{alignmentOffset:O}},reset:L}}}),Qr=(e,t,n)=>{const r=new Map,a={platform:Br,...n},o={...a.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=Dr(c,r,l),p=r,m={},h=0;for(let n=0;n<s.length;n++){const{name:o,fn:f}=s[n],{x:g,y:v,data:w,reset:y}=await f({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,m={...m,[o]:{...m[o],...w}},y&&h<=50&&(h++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):y.rects),({x:u,y:d}=Dr(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:m}})(e,t,{...a,platform:o})};var qr="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function Ur(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Ur(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(("_owner"!==n||!e.$$typeof)&&!Ur(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function jr(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Kr(e,t){const n=jr(e);return Math.round(t*n)/n}function Vr(e){const t=r.useRef(e);return qr((()=>{t.current=e})),t}const Zr=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(a=n,{}.hasOwnProperty.call(a,"current"))?null!=n.current?Wr({element:n.current,padding:r}).fn(t):{}:n?Wr({element:n,padding:r}).fn(t):{};var a}}),Xr=(e,t)=>({...Hr(e),options:[e,t]}),Jr=(e,t)=>({...Zr(e),options:[e,t]}),Gr={...r},zr=Gr.useInsertionEffect||(e=>e());var $r="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ea.apply(this,arguments)}let ta=!1,na=0;const ra=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+na++;const aa=Gr.useId||function(){const[e,t]=r.useState((()=>ta?ra():void 0));return $r((()=>{null==e&&t(ra())}),[]),r.useEffect((()=>{ta=!0}),[]),e};let oa;"production"!==process.env.NODE_ENV&&(oa=new Set);const ia=r.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:a},middlewareData:{arrow:o,shift:i}},width:s=14,height:l=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:d,stroke:p,d:m,style:{transform:h,...f}={},...g}=e;"production"!==process.env.NODE_ENV&&(t||function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const a="Floating UI: "+n.join(" ");var o;null!=(e=oa)&&e.has(a)||(null==(o=oa)||o.add(a),console.warn(a))}("The `ref` prop is required for `FloatingArrow`."));const v=aa(),[w,y]=r.useState(!1);if($r((()=>{if(!a)return;"rtl"===$n(a).direction&&y(!0)}),[a]),!a)return null;const[k,b]=n.split("-"),C="top"===k||"bottom"===k;let D=d;(C&&null!=i&&i.x||!C&&null!=i&&i.y)&&(D=null);const S=2*u,E=S/2,A=s/2*(c/-8+1),x=l/2*c/4,M=!!m,N=D&&"end"===b?"bottom":"top";let P=D&&"end"===b?"right":"left";D&&w&&(P="end"===b?"left":"right");const T=null!=(null==o?void 0:o.x)?D||o.x:"",L=null!=(null==o?void 0:o.y)?D||o.y:"",O=m||"M0,0 H"+s+" L"+(s-A)+","+(l-x)+" Q"+s/2+","+l+" "+A+","+(l-x)+" Z",R={top:M?"rotate(180deg)":"",left:M?"rotate(90deg)":"rotate(-90deg)",bottom:M?"":"rotate(180deg)",right:M?"rotate(-90deg)":"rotate(90deg)"}[k];return r.createElement("svg",ea({},g,{"aria-hidden":!0,ref:t,width:M?s:s+S,height:s,viewBox:"0 0 "+s+" "+(l>s?l:s),style:{position:"absolute",pointerEvents:"none",[P]:T,[N]:L,[k]:C||M?"100%":"calc(100% - "+S/2+"px)",transform:[R,h].filter((e=>!!e)).join(" "),...f}}),S>0&&r.createElement("path",{clipPath:"url(#"+v+")",fill:"none",stroke:p,strokeWidth:S+(m?0:1),d:O}),r.createElement("path",{stroke:S&&!m?g.fill:"none",d:O}),r.createElement("clipPath",{id:v},r.createElement("rect",{x:-E,y:E*(M?-1:1),width:s+S,height:s})))}));const sa=r.createContext(null),la=r.createContext(null),ca=()=>{var e;return(null==(e=r.useContext(sa))?void 0:e.id)||null},ua=()=>r.useContext(la);function da(e){const{open:t=!1,onOpenChange:n,elements:a}=e,o=aa(),i=r.useRef({}),[s]=r.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),l=null!=ca();if("production"!==process.env.NODE_ENV){const e=a.reference;e&&!Un(e)&&function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const a="Floating UI: "+n.join(" ");var o;null!=(e=oa)&&e.has(a)||(null==(o=oa)||o.add(a),console.error(a))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,u]=r.useState(a.reference),d=function(e){const t=r.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return zr((()=>{t.current=e})),r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}(((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),p=r.useMemo((()=>({setPositionReference:u})),[]),m=r.useMemo((()=>({reference:c||a.reference||null,floating:a.floating||null,domReference:a.reference})),[c,a.reference,a.floating]);return r.useMemo((()=>({dataRef:i,open:t,onOpenChange:d,elements:m,events:s,floatingId:o,refs:p})),[t,d,m,s,o,p])}function pa(e){void 0===e&&(e={});const{nodeId:t}=e,n=da({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,i=o.elements,[s,l]=r.useState(null),[c,u]=r.useState(null),d=(null==i?void 0:i.reference)||s,p=r.useRef(null),m=ua();$r((()=>{d&&(p.current=d)}),[d]);const h=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[p,m]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=r.useState(o);Ur(h,o)||f(o);const[g,v]=r.useState(null),[w,y]=r.useState(null),k=r.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),b=r.useCallback((e=>{e!==E.current&&(E.current=e,y(e))}),[]),C=s||g,D=l||w,S=r.useRef(null),E=r.useRef(null),A=r.useRef(p),x=null!=u,M=Vr(u),N=Vr(i),P=Vr(d),T=r.useCallback((()=>{if(!S.current||!E.current)return;const e={placement:t,strategy:n,middleware:h};N.current&&(e.platform=N.current),Qr(S.current,E.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};L.current&&!Ur(A.current,t)&&(A.current=t,a.flushSync((()=>{m(t)})))}))}),[h,t,n,N,P]);qr((()=>{!1===d&&A.current.isPositioned&&(A.current.isPositioned=!1,m((e=>({...e,isPositioned:!1}))))}),[d]);const L=r.useRef(!1);qr((()=>(L.current=!0,()=>{L.current=!1})),[]),qr((()=>{if(C&&(S.current=C),D&&(E.current=D),C&&D){if(M.current)return M.current(C,D,T);T()}}),[C,D,T,M,x]);const O=r.useMemo((()=>({reference:S,floating:E,setReference:k,setFloating:b})),[k,b]),R=r.useMemo((()=>({reference:C,floating:D})),[C,D]),Y=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!R.floating)return e;const t=Kr(R.floating,p.x),r=Kr(R.floating,p.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...jr(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,R.floating,p.x,p.y]);return r.useMemo((()=>({...p,update:T,refs:O,elements:R,floatingStyles:Y})),[p,T,O,R,Y])}({...e,elements:{...i,...c&&{reference:c}}}),f=r.useCallback((e=>{const t=Un(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;u(t),h.refs.setReference(t)}),[h.refs]),g=r.useCallback((e=>{(Un(e)||null===e)&&(p.current=e,l(e)),(Un(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!Un(e))&&h.refs.setReference(e)}),[h.refs]),v=r.useMemo((()=>({...h.refs,setReference:g,setPositionReference:f,domReference:p})),[h.refs,g,f]),w=r.useMemo((()=>({...h.elements,domReference:d})),[h.elements,d]),y=r.useMemo((()=>({...h,...o,refs:v,elements:w,nodeId:t})),[h,v,w,t,o]);return $r((()=>{o.dataRef.current.floatingContext=y;const e=null==m?void 0:m.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),r.useMemo((()=>({...h,context:y,refs:v,elements:w})),[h,v,w,y])}
|
|
11
|
+
*/!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var a=arguments[r];if(a){var o=typeof a;if("string"===o||"number"===o)e.push(a);else if(Array.isArray(a)){if(a.length){var i=n.apply(null,a);i&&e.push(i)}}else if("object"===o){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){e.push(a.toString());continue}for(var s in a)t.call(a,s)&&a[s]&&e.push(s)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(d);var p,m=o(d.exports);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(null,arguments)}const f=e=>r.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,stroke:"rgba(0, 0, 0, .26)",viewBox:"0 0 24 24"},e),p||(p=r.createElement("style",null,"@keyframes spinner_zKoa{to{transform:rotate(360deg)}}@keyframes spinner_YpZS{0%{stroke-dasharray:0 150;stroke-dashoffset:0}47.5%{stroke-dasharray:42 150;stroke-dashoffset:-16}95%,to{stroke-dasharray:42 150;stroke-dashoffset:-59}}")),r.createElement("g",{style:{transformOrigin:"center",animation:"spinner_zKoa 2s linear infinite"}},r.createElement("circle",{cx:12,cy:12,r:9.5,fill:"none",strokeWidth:2,className:"spinner_svg__spinner_V8m1",style:{strokeLinecap:"round",animation:"spinner_YpZS 1.5s ease-in-out infinite"}}))),g=({size:t="16",color:n="white",className:r})=>e.createElement(f,{className:m("spinner",r),width:t,height:t,stroke:n});const v=l.bind({button:"Button-module_button__JK2Jx",fancy:"Button-module_fancy__2cnu9",primary:"Button-module_primary__wIuY6",secondary:"Button-module_secondary__n8cUo",outlined:"Button-module_outlined__dLv1u",outlinedSecondary:"Button-module_outlinedSecondary__oUBP1",outlinedDanger:"Button-module_outlinedDanger__pIcHL",outlinedWarning:"Button-module_outlinedWarning__ExDBS",danger:"Button-module_danger__8GArG",warning:"Button-module_warning__Bw4Rs",white:"Button-module_white__zpeRb",outlinedWhite:"Button-module_outlinedWhite__x89sZ",small:"Button-module_small__qRKwC",medium:"Button-module_medium__XwIa4",large:"Button-module_large__ZIejN",text:"Button-module_text__BWVYH",textSecondary:"Button-module_textSecondary__nIELn",loading:"Button-module_loading__PGkqg",preserveLabelWhileLoading:"Button-module_preserveLabelWhileLoading__fmFNI",success:"Button-module_success__uLz2G",yellow:"Button-module_yellow__G4hh4",outlinedSuccess:"Button-module_outlinedSuccess__WhbQj",outlinedYellow:"Button-module_outlinedYellow__x81-m"}),w=e.forwardRef(((t,n)=>{var{hint:r,label:a,loading:o,preserveLabelWhileLoading:i,disabled:s,customClass:l,variant:c="primary",size:u="medium",iconSrc:d,iconPosition:p="left",onClick:m}=t,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(t,["hint","label","loading","preserveLabelWhileLoading","disabled","customClass","variant","size","iconSrc","iconPosition","onClick"]);const f=d&&"string"==typeof d?e.createElement("img",{src:d}):d;return e.createElement("button",Object.assign({title:r,onClick:m,disabled:o||s,className:v("button",c,u,l,{loading:o,preserveLabelWhileLoading:i}),ref:n,type:"button"},h),o&&e.createElement(g,null),!o&&d&&"left"===p&&f,void 0!==a&&e.createElement("span",null,a),!o&&d&&"right"===p&&f)}));w.displayName="Button";var y="data:image/svg+xml,%3csvg width='11' height='7' viewBox='0 0 11 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.56153 0.75411C4.88925 0.415298 5.42716 0.415297 5.75487 0.754109L9.91715 5.05737C10.4363 5.59406 10.0616 6.5 9.32049 6.5H0.99592C0.254841 6.5 -0.119853 5.59406 0.399253 5.05737L4.56153 0.75411Z' fill='%2312306C'/%3e%3c/svg%3e",k={dropdown:"Dropdown-module_dropdown__OYMLT",isOpen:"Dropdown-module_isOpen__I-Fwe",dropdownToggle:"Dropdown-module_dropdownToggle__K4-rD",outlined:"Dropdown-module_outlined__cubpr",withIcon:"Dropdown-module_withIcon__WZrCH",primary:"Dropdown-module_primary__rH-n3",dropdownContent:"Dropdown-module_dropdownContent__kCcyD",anchorRight:"Dropdown-module_anchorRight__4uqM4"};const b=l.bind(k),C=e.forwardRef((({hint:t,icon:n,label:r,children:a,hideCaret:o,customClass:i,customContentClass:s,variant:l="primary",anchorPoint:c="left",customCaretDownIconSrc:u,customToggleButtonClass:d,dismissOnClickOutside:p=!0,onToggle:m},h)=>{const f=e.useRef(null),[g,v]=e.useState(!1);e.useEffect((()=>{if(p)return document.addEventListener("mousedown",C),()=>{document.removeEventListener("mousedown",C)}})),e.useImperativeHandle(h,(()=>({close:w})));const w=()=>{v(!1),null==m||m(!g)},C=e=>{(null==f?void 0:f.current)&&!f.current.contains(e.target)&&g&&(v(!1),null==m||m(!g,e))};return e.createElement("div",{ref:f,className:b("dropdown",l,i,{isOpen:g,withIcon:!!n,anchorLeft:"left"===c,anchorRight:"right"===c})},e.createElement("button",{title:t,type:"button",onClick:e=>{e.preventDefault(),v(!g),null==m||m(!g,e)},className:b(k.dropdownToggle,d)},n&&e.createElement("img",{src:n,alt:"icon"}),r&&e.createElement("span",null,r),!o&&e.createElement("img",{src:u||y,alt:"caret"})),e.createElement("div",{className:b(k.dropdownContent,s),hidden:!g},a))}));var D={textfield:"TextField-module_textfield__Z5iSV",iconLeft:"TextField-module_iconLeft__OEYRe",iconRight:"TextField-module_iconRight__zQ0w9",clearButton:"TextField-module_clearButton__M8pNo",icon:"TextField-module_icon__E2Ieq"};const S=l.bind(D),E=({value:t,customClass:n,placeholder:r,showClearButton:a,variant:o="primary",onChange:i,onClick:s,inputRef:l,icon:c,iconPosition:u="left"})=>{var d,p;return e.createElement("div",{className:S("textfield",o,n)},c&&e.createElement("img",{src:c,alt:"icon",className:S("icon",{iconLeft:"left"===u,iconRight:"right"===u})}),e.createElement("input",{ref:l,value:t,autoComplete:"off",placeholder:r,onChange:e=>{null==i||i(e.target.value)},onClick:e=>{null==s||s(e)},className:S({iconLeft:!!c&&"left"===u,iconRight:!!c&&"right"===u})}),a&&(!!(null==t?void 0:t.length)||!!(null===(p=null===(d=null==l?void 0:l.current)||void 0===d?void 0:d.value)||void 0===p?void 0:p.length))&&e.createElement("button",{type:"button","aria-label":"clear",onClick:()=>{null==i||i(""),(null==l?void 0:l.current)&&(l.current.value="")},className:D.clearButton}))};var A,x;function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M.apply(null,arguments)}const N=e=>r.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:14,height:8,fill:"none"},e),r.createElement("mask",{id:"caret-down_svg__a",width:14,height:8,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},A||(A=r.createElement("path",{fill:"#D9D9D9",d:"M0 0v8h14V0z"}))),x||(x=r.createElement("g",{mask:"url(#caret-down_svg__a)"},r.createElement("path",{fill:"#12306C",d:"m7.005 2.086 5.426 5.627q.277.287.646.277a.9.9 0 0 0 .646-.296.94.94 0 0 0 .277-.67.94.94 0 0 0-.277-.67L8.057.46A1.47 1.47 0 0 0 7.005 0q-.278 0-.554.115-.277.114-.498.344L.268 6.354a.91.91 0 0 0-.268.68.98.98 0 0 0 .286.679.87.87 0 0 0 1.292 0z"}))));var P="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3e%3cmask id='mask0_19842_11414' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='14' height='8'%3e%3crect width='8' height='14' transform='matrix(-4.37114e-08 1 1 4.37114e-08 0 0)' fill='%23D9D9D9'/%3e%3c/mask%3e%3cg mask='url(%23mask0_19842_11414)'%3e%3cpath d='M7.00476 2.08612L12.4311 7.71292C12.6157 7.90431 12.8311 7.99681 13.0771 7.99043C13.3232 7.98405 13.5386 7.88517 13.7231 7.69378C13.9077 7.50239 14 7.27911 14 7.02392C14 6.76874 13.9077 6.54546 13.7231 6.35407L8.05682 0.459331C7.90916 0.30622 7.74305 0.191388 7.55848 0.114833C7.37391 0.0382778 7.18933 3.14256e-07 7.00476 3.06188e-07C6.82019 2.9812e-07 6.63562 0.0382778 6.45105 0.114833C6.26648 0.191388 6.10037 0.30622 5.95271 0.45933L0.267925 6.35407C0.0833543 6.54546 -0.00585497 6.77193 0.000297388 7.03349C0.00644974 7.29506 0.101811 7.52153 0.286382 7.71292C0.470953 7.90431 0.686286 8 0.93238 8C1.17847 8 1.39381 7.90431 1.57838 7.71292L7.00476 2.08612Z' fill='%2312306C'/%3e%3c/g%3e%3c/svg%3e",T={accordion:"Accordion-module_accordion__t2UQl",outlined:"Accordion-module_outlined__NQUM5",accordionToggle:"Accordion-module_accordionToggle__4X-Wg",accordionContent:"Accordion-module_accordionContent__j9no7",isOpen:"Accordion-module_isOpen__0d2yS",primary:"Accordion-module_primary__j0xoQ"};const L=l.bind(T);var O={tabMenu:"TabMenu-module_tabMenu__SbpUg",verticalOnDesktop:"TabMenu-module_verticalOnDesktop__CNPuo",tab:"TabMenu-module_tab__-NW1I",active:"TabMenu-module_active__F76rY",chip:"TabMenu-module_chip__KRJDB"};const R=l.bind(O),Y=({customClass:t,customActiveClass:n="",tabId:r,active:a,chip:o,children:i,onClick:s})=>e.createElement("div",{className:R("tab",t,{active:a,[n]:a}),onClick:()=>s(r)},"string"==typeof i?e.createElement("span",null,i):i,!!o&&e.createElement("div",{className:R("chip")},o)),I=l.bind(O);var B={modalOverlay:"Modal-module_modalOverlay__vB0a-",modalWrapper:"Modal-module_modalWrapper__0bvDk",modalCloseButton:"Modal-module_modalCloseButton__raBgL",modalTitle:"Modal-module_modalTitle__TW21J",modalContent:"Modal-module_modalContent__PUKvv",buttonsContainer:"Modal-module_buttonsContainer__dghew"};const _=l.bind(B);var H="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 18 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M8.955 15.0768C9.27 15.0768 9.5364 14.9679 9.7542 14.7501C9.9714 14.5329 10.08 14.2668 10.08 13.9518C10.08 13.6368 9.9714 13.3707 9.7542 13.1535C9.5364 12.9357 9.27 12.8268 8.955 12.8268C8.64 12.8268 8.3736 12.9357 8.1558 13.1535C7.9386 13.3707 7.83 13.6368 7.83 13.9518C7.83 14.2668 7.9386 14.5329 8.1558 14.7501C8.3736 14.9679 8.64 15.0768 8.955 15.0768ZM8.145 11.6118H9.81C9.81 11.1168 9.8664 10.7268 9.9792 10.4418C10.0914 10.1568 10.41 9.76676 10.935 9.27176C11.325 8.88176 11.6325 8.51036 11.8575 8.15756C12.0825 7.80536 12.195 7.38176 12.195 6.88676C12.195 6.04676 11.8875 5.40176 11.2725 4.95176C10.6575 4.50176 9.93 4.27676 9.09 4.27676C8.235 4.27676 7.5414 4.50176 7.0092 4.95176C6.4764 5.40176 6.105 5.94176 5.895 6.57176L7.38 7.15676C7.455 6.88676 7.6239 6.59426 7.8867 6.27926C8.1489 5.96426 8.55 5.80676 9.09 5.80676C9.57 5.80676 9.93 5.93786 10.17 6.20006C10.41 6.46286 10.53 6.75176 10.53 7.06676C10.53 7.36676 10.44 7.64786 10.26 7.91006C10.08 8.17286 9.855 8.41676 9.585 8.64176C8.925 9.22676 8.52 9.66926 8.37 9.96926C8.22 10.2693 8.145 10.8168 8.145 11.6118ZM9 18.6768C7.755 18.6768 6.585 18.4404 5.49 17.9676C4.395 17.4954 3.4425 16.8543 2.6325 16.0443C1.8225 15.2343 1.1814 14.2818 0.7092 13.1868C0.2364 12.0918 0 10.9218 0 9.67676C0 8.43176 0.2364 7.26176 0.7092 6.16676C1.1814 5.07176 1.8225 4.11926 2.6325 3.30926C3.4425 2.49926 4.395 1.85786 5.49 1.38506C6.585 0.912858 7.755 0.676758 9 0.676758C10.245 0.676758 11.415 0.912858 12.51 1.38506C13.605 1.85786 14.5575 2.49926 15.3675 3.30926C16.1775 4.11926 16.8186 5.07176 17.2908 6.16676C17.7636 7.26176 18 8.43176 18 9.67676C18 10.9218 17.7636 12.0918 17.2908 13.1868C16.8186 14.2818 16.1775 15.2343 15.3675 16.0443C14.5575 16.8543 13.605 17.4954 12.51 17.9676C11.415 18.4404 10.245 18.6768 9 18.6768Z' fill='white'/%3e%3c/svg%3e",F={appBar:"AppBar-module_appBar__Qdk4Q",wrapper:"AppBar-module_wrapper__1RQaw",appId:"AppBar-module_appId__dvlhd",icon:"AppBar-module_icon__llVzL",titleWrapper:"AppBar-module_titleWrapper__ZDbYC",betaApp:"AppBar-module_betaApp__glSMt",appInfo:"AppBar-module_appInfo__ojUgZ",appInfoPipe:"AppBar-module_appInfoPipe__-gQ7i",content:"AppBar-module_content__zfFex",rightAdornmentWrapper:"AppBar-module_rightAdornmentWrapper__llYw7",rightAdornment:"AppBar-module_rightAdornment__asOhj",appVersionWrapper:"AppBar-module_appVersionWrapper__rJLPr",appVersion:"AppBar-module_appVersion__CNsMr",lastUpdatedContainer:"AppBar-module_lastUpdatedContainer__7aFn5",appTooltipWrapper:"AppBar-module_appTooltipWrapper__o3bOA",lifted:"AppBar-module_lifted__Q8nLc",appTooltipCenterWrapper:"AppBar-module_appTooltipCenterWrapper__XqQiT",lastUpdatedTooltipContentWrapper:"AppBar-module_lastUpdatedTooltipContentWrapper__Pr1tq",appTooltipContent:"AppBar-module_appTooltipContent__WpduU",lastUpdatedTooltipWrapper:"AppBar-module_lastUpdatedTooltipWrapper__PEeHF"};const W=l.bind(F);var Q={sdsWrapper:"DatePicker-module_sdsWrapper__Ny8aV",sdsHeader:"DatePicker-module_sdsHeader__qPKM-",sdsHeader__yearSelector:"DatePicker-module_sdsHeader__yearSelector__3BNC2",sdsHeader__monthSelectors:"DatePicker-module_sdsHeader__monthSelectors__8jGdR",sdsYearsSelector__header:"DatePicker-module_sdsYearsSelector__header__MkyA8",sdsYearsSelector__headerTitle:"DatePicker-module_sdsYearsSelector__headerTitle__fUeso",sdsYearsSelector__headerButtons:"DatePicker-module_sdsYearsSelector__headerButtons__M816B",sdsYearsSelector__years:"DatePicker-module_sdsYearsSelector__years__Hbl23",sdsYearsSelector__year:"DatePicker-module_sdsYearsSelector__year__BvkEW",sdsYearsSelector__year_selected:"DatePicker-module_sdsYearsSelector__year_selected__rC-HK",sdsYearsSelector__year_current:"DatePicker-module_sdsYearsSelector__year_current__mq5zq",sdsYearsSelector__year_disabled:"DatePicker-module_sdsYearsSelector__year_disabled__0Iy-M"};function q(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=q(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function U(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=q(e))&&(r&&(r+=" "),r+=t);return r}function j(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function K(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function V(e,t){const n=j(e);return isNaN(t)?K(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function Z(e,t){return K(e,+j(e)+t)}const X=6048e5,J=864e5,G=6e4,z=36e5;function $(e,t){return Z(e,t*G)}function ee(e,t){const n=j(e);if(isNaN(t))return K(e,NaN);if(!t)return n;const r=n.getDate(),a=K(e,n.getTime());a.setMonth(n.getMonth()+t+1,0);return r>=a.getDate()?a:(n.setFullYear(a.getFullYear(),a.getMonth(),r),n)}function te(e,t){return ee(e,3*t)}function ne(e,t){return Z(e,1e3*t)}function re(e,t){return V(e,7*t)}function ae(e,t){return ee(e,12*t)}function oe(e){const t=j(e);return t.setHours(0,0,0,0),t}function ie(e){const t=j(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function se(e,t){const n=oe(e),r=oe(t),a=+n-ie(n),o=+r-ie(r);return Math.round((a-o)/J)}function le(e,t){const n=j(e),r=j(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}function ce(e){const t=j(e);return Math.trunc(t.getMonth()/3)+1}function ue(e,t){const n=j(e),r=j(t);return 4*(n.getFullYear()-r.getFullYear())+(ce(n)-ce(r))}function de(e,t){const n=j(e),r=j(t);return n.getFullYear()-r.getFullYear()}function pe(e){const t=j(e);return t.setHours(23,59,59,999),t}function me(e){const t=j(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}let he={};function fe(){return he}function ge(e){const t=j(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}const ve={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"}};function we(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ye={date:we({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:we({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:we({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ke={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function be(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,a=n?.width?String(n.width):t;r=e.formattingValues[a]||e.formattingValues[t]}else{const t=e.defaultWidth,a=n?.width?String(n.width):e.defaultWidth;r=e.values[a]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const Ce={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:be({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:be({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:be({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:be({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:be({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function De(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;const i=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(i)));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}const Se={ordinalNumber:(Ee={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(Ee.matchPattern);if(!n)return null;const r=n[0],a=e.match(Ee.parsePattern);if(!a)return null;let o=Ee.valueCallback?Ee.valueCallback(a[0]):a[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(r.length)}}),era:De({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:De({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:De({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:De({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:De({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var Ee;const Ae={code:"en-US",formatDistance:(e,t,n)=>{let r;const a=ve[e];return r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:ye,formatRelative:(e,t,n,r)=>ke[e],localize:Ce,match:Se,options:{weekStartsOn:0,firstWeekContainsDate:1}};function xe(e){const t=j(e),n=K(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Me(e,t){const n=fe(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=j(e),o=a.getDay(),i=(o<r?7:0)+o-r;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function Ne(e){return Me(e,{weekStartsOn:1})}function Pe(e){const t=j(e),n=t.getFullYear(),r=K(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=Ne(r),o=K(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const i=Ne(o);return t.getTime()>=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Te(e){const t=j(e),n=+Ne(t)-+function(e){const t=Pe(e),n=K(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ne(n)}(t);return Math.round(n/X)+1}function Le(e,t){const n=j(e),r=n.getFullYear(),a=fe(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,i=K(e,0);i.setFullYear(r+1,0,o),i.setHours(0,0,0,0);const s=Me(i,t),l=K(e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=Me(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function Oe(e,t){const n=j(e),r=+Me(n,t)-+function(e,t){const n=fe(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=Le(e,t),o=K(e,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),Me(o,t)}(n,t);return Math.round(r/X)+1}function Re(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Ye={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Re("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):Re(n+1,2)},d:(e,t)=>Re(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>Re(e.getHours()%12||12,t.length),H:(e,t)=>Re(e.getHours(),t.length),m:(e,t)=>Re(e.getMinutes(),t.length),s:(e,t)=>Re(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return Re(Math.trunc(r*Math.pow(10,n-3)),t.length)}},Ie="midnight",Be="noon",_e="morning",He="afternoon",Fe="evening",We="night",Qe={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return Ye.y(e,t)},Y:function(e,t,n,r){const a=Le(e,r),o=a>0?a:1-a;if("YY"===t){return Re(o%100,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):Re(o,t.length)},R:function(e,t){return Re(Pe(e),t.length)},u:function(e,t){return Re(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Re(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Re(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ye.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Re(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=Oe(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):Re(a,t.length)},I:function(e,t,n){const r=Te(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Re(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Ye.d(e,t)},D:function(e,t,n){const r=function(e){const t=j(e);return se(t,xe(t))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Re(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Re(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});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"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Re(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return Re(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(a=12===r?Be:0===r?Ie:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(a=r>=17?Fe:r>=12?He:r>=4?_e:We,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return Ye.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ye.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Re(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Re(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ye.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ye.s(e,t)},S:function(e,t){return Ye.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Ue(r);case"XXXX":case"XX":return je(r);default:return je(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ue(r);case"xxxx":case"xx":return je(r);default:return je(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+qe(r,":");default:return"GMT"+je(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+qe(r,":");default:return"GMT"+je(r,":")}},t:function(e,t,n){return Re(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return Re(e.getTime(),t.length)}};function qe(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),o=r%60;return 0===o?n+String(a):n+String(a)+t+Re(o,2)}function Ue(e,t){if(e%60==0){return(e>0?"-":"+")+Re(Math.abs(e)/60,2)}return je(e,t)}function je(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+Re(Math.trunc(r/60),2)+t+Re(r%60,2)}const Ke=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Ve=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Ze={p:Ve,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return Ke(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",Ke(r,t)).replace("{{time}}",Ve(a,t))}},Xe=/^D+$/,Je=/^Y+$/,Ge=["D","DD","YY","YYYY"];function ze(e){return Xe.test(e)}function $e(e){return Je.test(e)}function et(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),Ge.includes(e))throw new RangeError(r)}function tt(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function nt(e){if(!tt(e)&&"number"!=typeof e)return!1;const t=j(e);return!isNaN(Number(t))}const rt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,at=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ot=/^'([^]*?)'?$/,it=/''/g,st=/[a-zA-Z]/;function lt(e,t,n){const r=fe(),a=n?.locale??r.locale??Ae,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=j(e);if(!nt(s))throw new RangeError("Invalid time value");let l=t.match(at).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,Ze[t])(e,a.formatLong)}return e})).join("").match(rt).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:ct(e)};if(Qe[t])return{isToken:!0,value:e};if(t.match(st))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));a.localize.preprocessor&&(l=a.localize.preprocessor(s,l));const c={firstWeekContainsDate:o,weekStartsOn:i,locale:a};return l.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&$e(o)||!n?.useAdditionalDayOfYearTokens&&ze(o))&&et(o,t,String(e));return(0,Qe[o[0]])(s,o,a.localize,c)})).join("")}function ct(e){const t=e.match(ot);return t?t[1].replace(it,"'"):e}function ut(e){return j(e).getDate()}function dt(e){return j(e).getHours()}function pt(e){return j(e).getMinutes()}function mt(e){return j(e).getMonth()}function ht(e){return j(e).getSeconds()}function ft(e){return j(e).getTime()}function gt(e){return j(e).getFullYear()}function vt(e,t){const n=j(e),r=j(t);return n.getTime()>r.getTime()}function wt(e,t){return+j(e)<+j(t)}function yt(e){const t=j(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function kt(e,t){const n=+j(e),[r,a]=[+j(t.start),+j(t.end)].sort(((e,t)=>e-t));return n>=r&&n<=a}function bt(e){let t;return e.forEach((function(e){const n=j(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new Date(NaN)}function Ct(e){let t;return e.forEach((e=>{const n=j(e);(!t||t>n||isNaN(+n))&&(t=n)})),t||new Date(NaN)}class Dt{subPriority=0;validate(e,t){return!0}}class St extends Dt{constructor(e,t,n,r,a){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,a&&(this.subPriority=a)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class Et extends Dt{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:K(e,function(e,t){const n=t instanceof Date?K(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}(e,Date))}}class At{run(e,t,n,r){const a=this.parse(e,t,n,r);return a?{setter:new St(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,t,n){return!0}}const xt=/^(1[0-2]|0?\d)/,Mt=/^(3[0-1]|[0-2]?\d)/,Nt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Pt=/^(5[0-3]|[0-4]?\d)/,Tt=/^(2[0-3]|[0-1]?\d)/,Lt=/^(2[0-4]|[0-1]?\d)/,Ot=/^(1[0-1]|0?\d)/,Rt=/^(1[0-2]|0?\d)/,Yt=/^[0-5]?\d/,It=/^[0-5]?\d/,Bt=/^\d/,_t=/^\d{1,2}/,Ht=/^\d{1,3}/,Ft=/^\d{1,4}/,Wt=/^-?\d+/,Qt=/^-?\d/,qt=/^-?\d{1,2}/,Ut=/^-?\d{1,3}/,jt=/^-?\d{1,4}/,Kt=/^([+-])(\d{2})(\d{2})?|Z/,Vt=/^([+-])(\d{2})(\d{2})|Z/,Zt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Xt=/^([+-])(\d{2}):(\d{2})|Z/,Jt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Gt(e,t){return e?{value:t(e.value),rest:e.rest}:e}function zt(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function $t(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const r="+"===n[1]?1:-1,a=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(a*z+o*G+1e3*i),rest:t.slice(n[0].length)}}function en(e){return zt(Wt,e)}function tn(e,t){switch(e){case 1:return zt(Bt,t);case 2:return zt(_t,t);case 3:return zt(Ht,t);case 4:return zt(Ft,t);default:return zt(new RegExp("^\\d{1,"+e+"}"),t)}}function nn(e,t){switch(e){case 1:return zt(Qt,t);case 2:return zt(qt,t);case 3:return zt(Ut,t);case 4:return zt(jt,t);default:return zt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function rn(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function an(e,t){const n=t>0,r=n?t:1-t;let a;if(r<=50)a=e||100;else{const t=r+50;a=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?a:1-a}function on(e){return e%400==0||e%4==0&&e%100!=0}const sn=[31,28,31,30,31,30,31,31,30,31,30,31],ln=[31,29,31,30,31,30,31,31,30,31,30,31];function cn(e,t,n){const r=fe(),a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=j(e),i=o.getDay(),s=7-a;return V(o,t<0||t>6?t-(i+s)%7:((t%7+7)%7+s)%7-(i+s)%7)}function un(e,t){const n=j(e),r=function(e){let t=j(e).getDay();return 0===t&&(t=7),t}(n);return V(n,t-r)}const dn={G:new class extends At{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends At{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return Gt(tn(4,e),r);case"yo":return Gt(n.ordinalNumber(e,{unit:"year"}),r);default:return Gt(tn(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=an(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const a="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}},Y:new class extends At{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return Gt(tn(4,e),r);case"Yo":return Gt(n.ordinalNumber(e,{unit:"year"}),r);default:return Gt(tn(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const a=Le(e,r);if(n.isTwoDigitYear){const t=an(n.year,a);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Me(e,r)}const o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Me(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends At{priority=130;parse(e,t){return nn("R"===t?4:t.length,e)}set(e,t,n){const r=K(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ne(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends At{priority=130;parse(e,t){return nn("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends At{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return tn(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends At{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return tn(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends At{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"M":return Gt(zt(xt,e),r);case"MM":return Gt(tn(2,e),r);case"Mo":return Gt(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},L:new class extends At{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return Gt(zt(xt,e),r);case"LL":return Gt(tn(2,e),r);case"Lo":return Gt(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends At{priority=100;parse(e,t,n){switch(t){case"w":return zt(Pt,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return tn(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return Me(function(e,t,n){const r=j(e),a=Oe(r,n)-t;return r.setDate(r.getDate()-7*a),r}(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends At{priority=100;parse(e,t,n){switch(t){case"I":return zt(Pt,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return tn(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return Ne(function(e,t){const n=j(e),r=Te(n)-t;return n.setDate(n.getDate()-7*r),n}(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends At{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return zt(Mt,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return tn(t.length,e)}}validate(e,t){const n=on(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=ln[r]:t>=1&&t<=sn[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends At{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return zt(Nt,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return tn(t.length,e)}}validate(e,t){return on(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends At{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=cn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends At{priority=90;parse(e,t,n,r){const a=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Gt(tn(t.length,e),a);case"eo":return Gt(n.ordinalNumber(e,{unit:"day"}),a);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=cn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends At{priority=90;parse(e,t,n,r){const a=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Gt(tn(t.length,e),a);case"co":return Gt(n.ordinalNumber(e,{unit:"day"}),a);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=cn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends At{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return tn(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Gt(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return Gt(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Gt(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return Gt(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=un(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends At{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(rn(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends At{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(rn(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends At{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(rn(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends At{priority=70;parse(e,t,n){switch(t){case"h":return zt(Rt,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return tn(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends At{priority=70;parse(e,t,n){switch(t){case"H":return zt(Tt,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return tn(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends At{priority=70;parse(e,t,n){switch(t){case"K":return zt(Ot,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return tn(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends At{priority=70;parse(e,t,n){switch(t){case"k":return zt(Lt,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return tn(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends At{priority=60;parse(e,t,n){switch(t){case"m":return zt(Yt,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return tn(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},s:new class extends At{priority=50;parse(e,t,n){switch(t){case"s":return zt(It,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return tn(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},S:new class extends At{priority=30;parse(e,t){return Gt(tn(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},X:new class extends At{priority=10;parse(e,t){switch(t){case"X":return $t(Kt,e);case"XX":return $t(Vt,e);case"XXXX":return $t(Zt,e);case"XXXXX":return $t(Jt,e);default:return $t(Xt,e)}}set(e,t,n){return t.timestampIsSet?e:K(e,e.getTime()-ie(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends At{priority=10;parse(e,t){switch(t){case"x":return $t(Kt,e);case"xx":return $t(Vt,e);case"xxxx":return $t(Zt,e);case"xxxxx":return $t(Jt,e);default:return $t(Xt,e)}}set(e,t,n){return t.timestampIsSet?e:K(e,e.getTime()-ie(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends At{priority=40;parse(e){return en(e)}set(e,t,n){return[K(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends At{priority=20;parse(e){return en(e)}set(e,t,n){return[K(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},pn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hn=/^'([^]*?)'?$/,fn=/''/g,gn=/\S/,vn=/[a-zA-Z]/;function wn(e,t,n,r){const a=Object.assign({},fe()),o=r?.locale??a.locale??Ae,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(""===t)return""===e?j(n):K(n,NaN);const l={firstWeekContainsDate:i,weekStartsOn:s,locale:o},c=[new Et],u=t.match(mn).map((e=>{const t=e[0];if(t in Ze){return(0,Ze[t])(e,o.formatLong)}return e})).join("").match(pn),d=[];for(let a of u){!r?.useAdditionalWeekYearTokens&&$e(a)&&et(a,t,e),!r?.useAdditionalDayOfYearTokens&&ze(a)&&et(a,t,e);const i=a[0],s=dn[i];if(s){const{incompatibleTokens:t}=s;if(Array.isArray(t)){const e=d.find((e=>t.includes(e.token)||e.token===i));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${a}\` at the same time`)}else if("*"===s.incompatibleTokens&&d.length>0)throw new RangeError(`The format string mustn't contain \`${a}\` and any other token at the same time`);d.push({token:i,fullToken:a});const r=s.run(e,a,o.match,l);if(!r)return K(n,NaN);c.push(r.setter),e=r.rest}else{if(i.match(vn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===a?a="'":"'"===i&&(a=a.match(hn)[1].replace(fn,"'")),0!==e.indexOf(a))return K(n,NaN);e=e.slice(a.length)}}if(e.length>0&&gn.test(e))return K(n,NaN);const p=c.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>c.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let m=j(n);if(isNaN(m.getTime()))return K(n,NaN);const h={};for(const e of p){if(!e.validate(m,l))return K(n,NaN);const t=e.set(m,h,l);Array.isArray(t)?(m=t[0],Object.assign(h,t[1])):m=t}return K(n,m)}function yn(e,t){const n=t?.additionalDigits??2,r=function(e){const t={},n=e.split(kn.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],kn.timeZoneDelimiter.test(t.date)&&(t.date=e.split(kn.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=kn.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let a;if(r.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const a=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?a:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(r.date,n);a=function(e,t){if(null===t)return new Date(NaN);const n=e.match(bn);if(!n)return new Date(NaN);const r=!!n[4],a=Sn(n[1]),o=Sn(n[2])-1,i=Sn(n[3]),s=Sn(n[4]),l=Sn(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const a=r.getUTCDay()||7,o=7*(t-1)+n+1-a;return r.setUTCDate(r.getUTCDate()+o),r}(t,s,l):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(An[t]||(xn(e)?29:28))}(t,o,i)&&function(e,t){return t>=1&&t<=(xn(e)?366:365)}(t,a)?(e.setUTCFullYear(t,o,Math.max(a,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);const o=a.getTime();let i,s=0;if(r.time&&(s=function(e){const t=e.match(Cn);if(!t)return NaN;const n=En(t[1]),r=En(t[2]),a=En(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,a))return NaN;return n*z+r*G+1e3*a}(r.time),isNaN(s)))return new Date(NaN);if(!r.timezone){const e=new Date(o+s),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return i=function(e){if("Z"===e)return 0;const t=e.match(Dn);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,a))return NaN;return n*(r*z+a*G)}(r.timezone),isNaN(i)?new Date(NaN):new Date(o+s+i)}const kn={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},bn=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Cn=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Dn=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Sn(e){return e?parseInt(e):1}function En(e){return e&&parseFloat(e.replace(",","."))||0}const An=[31,null,31,30,31,30,31,31,30,31,30,31];function xn(e){return e%400==0||e%4==0&&e%100!=0}function Mn(e,t){const n=j(e),r=n.getFullYear(),a=n.getDate(),o=K(e,0);o.setFullYear(r,t,15),o.setHours(0,0,0,0);const i=function(e){const t=j(e),n=t.getFullYear(),r=t.getMonth(),a=K(e,0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}(o);return n.setMonth(t,Math.min(a,i)),n}function Nn(e,t){const n=j(e);return n.setHours(t),n}function Pn(e,t){const n=j(e);return n.setMinutes(t),n}function Tn(e,t){const n=j(e),r=t-(Math.trunc(n.getMonth()/3)+1);return Mn(n,n.getMonth()+3*r)}function Ln(e,t){const n=j(e);return n.setSeconds(t),n}function On(e,t){const n=j(e);return isNaN(+n)?K(e,NaN):(n.setFullYear(t),n)}function Rn(e){const t=j(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Yn(e,t){return ee(e,-t)}function In(e,t){return te(e,-t)}function Bn(e,t){return re(e,-t)}function _n(e,t){return ae(e,-t)}function Hn(){return"undefined"!=typeof window}function Fn(e){return qn(e)?(e.nodeName||"").toLowerCase():"#document"}function Wn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Qn(e){var t;return null==(t=(qn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function qn(e){return!!Hn()&&(e instanceof Node||e instanceof Wn(e).Node)}function Un(e){return!!Hn()&&(e instanceof Element||e instanceof Wn(e).Element)}function jn(e){return!!Hn()&&(e instanceof HTMLElement||e instanceof Wn(e).HTMLElement)}function Kn(e){return!(!Hn()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Wn(e).ShadowRoot)}function Vn(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=$n(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function Zn(e){return["table","td","th"].includes(Fn(e))}function Xn(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Jn(e){const t=Gn(),n=Un(e)?$n(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Gn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function zn(e){return["html","body","#document"].includes(Fn(e))}function $n(e){return Wn(e).getComputedStyle(e)}function er(e){return Un(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tr(e){if("html"===Fn(e))return e;const t=e.assignedSlot||e.parentNode||Kn(e)&&e.host||Qn(e);return Kn(t)?t.host:t}function nr(e){const t=tr(e);return zn(t)?e.ownerDocument?e.ownerDocument.body:e.body:jn(t)&&Vn(t)?t:nr(t)}function rr(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=nr(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=Wn(a);if(o){const e=ar(i);return t.concat(i,i.visualViewport||[],Vn(a)?a:[],e&&n?rr(e):[])}return t.concat(a,rr(a,[],n))}function ar(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const or=Math.min,ir=Math.max,sr=Math.round,lr=Math.floor,cr=e=>({x:e,y:e}),ur={left:"right",right:"left",bottom:"top",top:"bottom"},dr={start:"end",end:"start"};function pr(e,t,n){return ir(e,or(t,n))}function mr(e,t){return"function"==typeof e?e(t):e}function hr(e){return e.split("-")[0]}function fr(e){return e.split("-")[1]}function gr(e){return"y"===e?"height":"width"}function vr(e){return["top","bottom"].includes(hr(e))?"y":"x"}function wr(e){return"x"===vr(e)?"y":"x"}function yr(e){return e.replace(/start|end/g,(e=>dr[e]))}function kr(e){return e.replace(/left|right|bottom|top/g,(e=>ur[e]))}function br(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Cr(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function Dr(e,t,n){let{reference:r,floating:a}=e;const o=vr(t),i=wr(t),s=gr(i),l=hr(t),c="y"===o,u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let m;switch(l){case"top":m={x:u,y:r.y-a.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-a.width,y:d};break;default:m={x:r.x,y:r.y}}switch(fr(t)){case"start":m[i]-=p*(n&&c?-1:1);break;case"end":m[i]+=p*(n&&c?-1:1)}return m}function Sr(e){const t=$n(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=jn(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=sr(n)!==o||sr(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function Er(e){return Un(e)?e:e.contextElement}function Ar(e){const t=Er(e);if(!jn(t))return cr(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=Sr(t);let i=(o?sr(n.width):n.width)/r,s=(o?sr(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const xr=cr(0);function Mr(e){const t=Wn(e);return Gn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:xr}function Nr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=Er(e);let i=cr(1);t&&(r?Un(r)&&(i=Ar(r)):i=Ar(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Wn(e))&&t}(o,n,r)?Mr(o):cr(0);let l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(o){const e=Wn(o),t=r&&Un(r)?Wn(r):r;let n=e,a=ar(n);for(;a&&r&&t!==n;){const e=Ar(a),t=a.getBoundingClientRect(),r=$n(a),o=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=Wn(a),a=ar(n)}}return Cr({width:u,height:d,x:l,y:c})}function Pr(e,t){const n=er(e).scrollLeft;return t?t.left+n:Nr(Qn(e)).left+n}function Tr(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Wn(e),r=Qn(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;const e=Gn();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:o,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Qn(e),n=er(e),r=e.ownerDocument.body,a=ir(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ir(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Pr(e);const s=-n.scrollTop;return"rtl"===$n(r).direction&&(i+=ir(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}(Qn(e));else if(Un(t))r=function(e,t){const n=Nr(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=jn(e)?Ar(e):cr(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}}(t,n);else{const n=Mr(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Cr(r)}function Lr(e,t){const n=tr(e);return!(n===t||!Un(n)||zn(n))&&("fixed"===$n(n).position||Lr(n,t))}function Or(e,t,n){const r=jn(t),a=Qn(t),o="fixed"===n,i=Nr(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=cr(0);if(r||!r&&!o)if(("body"!==Fn(t)||Vn(a))&&(s=er(t)),r){const e=Nr(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&(l.x=Pr(a));let c=0,u=0;if(a&&!r&&!o){const e=a.getBoundingClientRect();u=e.top+s.scrollTop,c=e.left+s.scrollLeft-Pr(a,e)}return{x:i.left+s.scrollLeft-l.x-c,y:i.top+s.scrollTop-l.y-u,width:i.width,height:i.height}}function Rr(e){return"static"===$n(e).position}function Yr(e,t){if(!jn(e)||"fixed"===$n(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Qn(e)===n&&(n=n.ownerDocument.body),n}function Ir(e,t){const n=Wn(e);if(Xn(e))return n;if(!jn(e)){let t=tr(e);for(;t&&!zn(t);){if(Un(t)&&!Rr(t))return t;t=tr(t)}return n}let r=Yr(e,t);for(;r&&Zn(r)&&Rr(r);)r=Yr(r,t);return r&&zn(r)&&Rr(r)&&!Jn(r)?n:r||function(e){let t=tr(e);for(;jn(t)&&!zn(t);){if(Jn(t))return t;if(Xn(t))return null;t=tr(t)}return null}(e)||n}const Br={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o="fixed"===a,i=Qn(r),s=!!t&&Xn(t.floating);if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=cr(1);const u=cr(0),d=jn(r);if((d||!d&&!o)&&(("body"!==Fn(r)||Vn(i))&&(l=er(r)),jn(r))){const e=Nr(r);c=Ar(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:Qn,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?Xn(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=rr(e,[],!1).filter((e=>Un(e)&&"body"!==Fn(e))),a=null;const o="fixed"===$n(e).position;let i=o?tr(e):e;for(;Un(i)&&!zn(i);){const t=$n(i),n=Jn(i);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||Vn(i)&&!n&&Lr(e,i))?r=r.filter((e=>e!==i)):a=t,i=tr(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=Tr(t,n,a);return e.top=ir(r.top,e.top),e.right=or(r.right,e.right),e.bottom=or(r.bottom,e.bottom),e.left=ir(r.left,e.left),e}),Tr(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Ir,getElementRects:async function(e){const t=this.getOffsetParent||Ir,n=this.getDimensions,r=await n(e.floating);return{reference:Or(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Sr(e);return{width:t,height:n}},getScale:Ar,isElement:Un,isRTL:function(e){return"rtl"===$n(e).direction}};function _r(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Er(e),u=a||o?[...c?rr(c):[],...rr(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const a=Qn(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const m={rootMargin:-lr(u)+"px "+-lr(a.clientWidth-(c+d))+"px "+-lr(a.clientHeight-(u+p))+"px "+-lr(c)+"px",threshold:ir(0,or(1,l))||1};let h=!0;function f(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(f,{...m,root:a.ownerDocument})}catch(e){r=new IntersectionObserver(f,m)}r.observe(e)}(!0),o}(c,n):null;let p,m=-1,h=null;i&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let f=l?Nr(e):null;return l&&function t(){const r=Nr(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n();f=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const Hr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=hr(n),s=fr(n),l="y"===vr(n),c=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,d=mr(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(m="end"===s?-1*h:h),l?{x:m*u,y:p*c}:{x:p*c,y:m*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},Fr=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:f=!0,...g}=mr(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const v=hr(a),w=vr(s),y=hr(s)===s,k=await(null==l.isRTL?void 0:l.isRTL(c.floating)),b=p||(y||!f?[kr(s)]:function(e){const t=kr(e);return[yr(e),t,yr(t)]}(s)),C="none"!==h;!p&&C&&b.push(...function(e,t,n,r){const a=fr(e);let o=function(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:i;default:return[]}}(hr(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(yr)))),o}(s,f,h,k));const D=[s,...b],S=await async function(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=mr(t,e),h=br(m),f=s[p?"floating"===d?"reference":"floating":d],g=Cr(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(f)))||n?f:f.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,w=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),y=await(null==o.isElement?void 0:o.isElement(w))&&await(null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},k=Cr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:w,strategy:l}):v);return{top:(g.top-k.top+h.top)/y.y,bottom:(k.bottom-g.bottom+h.bottom)/y.y,left:(g.left-k.left+h.left)/y.x,right:(k.right-g.right+h.right)/y.x}}(t,g),E=[];let A=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&E.push(S[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=fr(e),a=wr(e),o=gr(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=kr(i)),[i,kr(i)]}(a,i,k);E.push(S[e[0]],S[e[1]])}if(A=[...A,{placement:a,overflows:E}],!E.every((e=>e<=0))){var x,M;const e=((null==(x=o.flip)?void 0:x.index)||0)+1,t=D[e];if(t)return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(M=A.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:M.placement;if(!n)switch(m){case"bestFit":{var N;const e=null==(N=A.filter((e=>{if(C){const t=vr(e.placement);return t===w||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}},Wr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=mr(e,t)||{};if(null==c)return{};const d=br(u),p={x:n,y:r},m=wr(a),h=gr(m),f=await i.getDimensions(c),g="y"===m,v=g?"top":"left",w=g?"bottom":"right",y=g?"clientHeight":"clientWidth",k=o.reference[h]+o.reference[m]-p[m]-o.floating[h],b=p[m]-o.reference[m],C=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let D=C?C[y]:0;D&&await(null==i.isElement?void 0:i.isElement(C))||(D=s.floating[y]||o.floating[h]);const S=k/2-b/2,E=D/2-f[h]/2-1,A=or(d[v],E),x=or(d[w],E),M=A,N=D-f[h]-x,P=D/2-f[h]/2+S,T=pr(M,P,N),L=!l.arrow&&null!=fr(a)&&P!==T&&o.reference[h]/2-(P<M?A:x)-f[h]/2<0,O=L?P<M?P-M:P-N:0;return{[m]:p[m]+O,data:{[m]:T,centerOffset:P-T-O,...L&&{alignmentOffset:O}},reset:L}}}),Qr=(e,t,n)=>{const r=new Map,a={platform:Br,...n},o={...a.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=Dr(c,r,l),p=r,m={},h=0;for(let n=0;n<s.length;n++){const{name:o,fn:f}=s[n],{x:g,y:v,data:w,reset:y}=await f({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,m={...m,[o]:{...m[o],...w}},y&&h<=50&&(h++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):y.rects),({x:u,y:d}=Dr(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:m}})(e,t,{...a,platform:o})};var qr="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function Ur(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Ur(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(("_owner"!==n||!e.$$typeof)&&!Ur(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function jr(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Kr(e,t){const n=jr(e);return Math.round(t*n)/n}function Vr(e){const t=r.useRef(e);return qr((()=>{t.current=e})),t}const Zr=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(a=n,{}.hasOwnProperty.call(a,"current"))?null!=n.current?Wr({element:n.current,padding:r}).fn(t):{}:n?Wr({element:n,padding:r}).fn(t):{};var a}}),Xr=(e,t)=>({...Hr(e),options:[e,t]}),Jr=(e,t)=>({...Zr(e),options:[e,t]}),Gr={...r},zr=Gr.useInsertionEffect||(e=>e());var $r="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ea.apply(this,arguments)}let ta=!1,na=0;const ra=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+na++;const aa=Gr.useId||function(){const[e,t]=r.useState((()=>ta?ra():void 0));return $r((()=>{null==e&&t(ra())}),[]),r.useEffect((()=>{ta=!0}),[]),e};let oa;"production"!==process.env.NODE_ENV&&(oa=new Set);const ia=r.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:a},middlewareData:{arrow:o,shift:i}},width:s=14,height:l=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:d,stroke:p,d:m,style:{transform:h,...f}={},...g}=e;"production"!==process.env.NODE_ENV&&(t||function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const a="Floating UI: "+n.join(" ");var o;null!=(e=oa)&&e.has(a)||(null==(o=oa)||o.add(a),console.warn(a))}("The `ref` prop is required for `FloatingArrow`."));const v=aa(),[w,y]=r.useState(!1);if($r((()=>{if(!a)return;"rtl"===$n(a).direction&&y(!0)}),[a]),!a)return null;const[k,b]=n.split("-"),C="top"===k||"bottom"===k;let D=d;(C&&null!=i&&i.x||!C&&null!=i&&i.y)&&(D=null);const S=2*u,E=S/2,A=s/2*(c/-8+1),x=l/2*c/4,M=!!m,N=D&&"end"===b?"bottom":"top";let P=D&&"end"===b?"right":"left";D&&w&&(P="end"===b?"left":"right");const T=null!=(null==o?void 0:o.x)?D||o.x:"",L=null!=(null==o?void 0:o.y)?D||o.y:"",O=m||"M0,0 H"+s+" L"+(s-A)+","+(l-x)+" Q"+s/2+","+l+" "+A+","+(l-x)+" Z",R={top:M?"rotate(180deg)":"",left:M?"rotate(90deg)":"rotate(-90deg)",bottom:M?"":"rotate(180deg)",right:M?"rotate(-90deg)":"rotate(90deg)"}[k];return r.createElement("svg",ea({},g,{"aria-hidden":!0,ref:t,width:M?s:s+S,height:s,viewBox:"0 0 "+s+" "+(l>s?l:s),style:{position:"absolute",pointerEvents:"none",[P]:T,[N]:L,[k]:C||M?"100%":"calc(100% - "+S/2+"px)",transform:[R,h].filter((e=>!!e)).join(" "),...f}}),S>0&&r.createElement("path",{clipPath:"url(#"+v+")",fill:"none",stroke:p,strokeWidth:S+(m?0:1),d:O}),r.createElement("path",{stroke:S&&!m?g.fill:"none",d:O}),r.createElement("clipPath",{id:v},r.createElement("rect",{x:-E,y:E*(M?-1:1),width:s+S,height:s})))}));const sa=r.createContext(null),la=r.createContext(null),ca=()=>{var e;return(null==(e=r.useContext(sa))?void 0:e.id)||null},ua=()=>r.useContext(la);function da(e){const{open:t=!1,onOpenChange:n,elements:a}=e,o=aa(),i=r.useRef({}),[s]=r.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),l=null!=ca();if("production"!==process.env.NODE_ENV){const e=a.reference;e&&!Un(e)&&function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const a="Floating UI: "+n.join(" ");var o;null!=(e=oa)&&e.has(a)||(null==(o=oa)||o.add(a),console.error(a))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,u]=r.useState(a.reference),d=function(e){const t=r.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return zr((()=>{t.current=e})),r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}(((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),p=r.useMemo((()=>({setPositionReference:u})),[]),m=r.useMemo((()=>({reference:c||a.reference||null,floating:a.floating||null,domReference:a.reference})),[c,a.reference,a.floating]);return r.useMemo((()=>({dataRef:i,open:t,onOpenChange:d,elements:m,events:s,floatingId:o,refs:p})),[t,d,m,s,o,p])}function pa(e){void 0===e&&(e={});const{nodeId:t}=e,n=da({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,i=o.elements,[s,l]=r.useState(null),[c,u]=r.useState(null),d=(null==i?void 0:i.reference)||s,p=r.useRef(null),m=ua();$r((()=>{d&&(p.current=d)}),[d]);const h=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[p,m]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=r.useState(o);Ur(h,o)||f(o);const[g,v]=r.useState(null),[w,y]=r.useState(null),k=r.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),b=r.useCallback((e=>{e!==E.current&&(E.current=e,y(e))}),[]),C=s||g,D=l||w,S=r.useRef(null),E=r.useRef(null),A=r.useRef(p),x=null!=u,M=Vr(u),N=Vr(i),P=Vr(d),T=r.useCallback((()=>{if(!S.current||!E.current)return;const e={placement:t,strategy:n,middleware:h};N.current&&(e.platform=N.current),Qr(S.current,E.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};L.current&&!Ur(A.current,t)&&(A.current=t,a.flushSync((()=>{m(t)})))}))}),[h,t,n,N,P]);qr((()=>{!1===d&&A.current.isPositioned&&(A.current.isPositioned=!1,m((e=>({...e,isPositioned:!1}))))}),[d]);const L=r.useRef(!1);qr((()=>(L.current=!0,()=>{L.current=!1})),[]),qr((()=>{if(C&&(S.current=C),D&&(E.current=D),C&&D){if(M.current)return M.current(C,D,T);T()}}),[C,D,T,M,x]);const O=r.useMemo((()=>({reference:S,floating:E,setReference:k,setFloating:b})),[k,b]),R=r.useMemo((()=>({reference:C,floating:D})),[C,D]),Y=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!R.floating)return e;const t=Kr(R.floating,p.x),r=Kr(R.floating,p.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...jr(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,R.floating,p.x,p.y]);return r.useMemo((()=>({...p,update:T,refs:O,elements:R,floatingStyles:Y})),[p,T,O,R,Y])}({...e,elements:{...i,...c&&{reference:c}}}),f=r.useCallback((e=>{const t=Un(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;u(t),h.refs.setReference(t)}),[h.refs]),g=r.useCallback((e=>{(Un(e)||null===e)&&(p.current=e,l(e)),(Un(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!Un(e))&&h.refs.setReference(e)}),[h.refs]),v=r.useMemo((()=>({...h.refs,setReference:g,setPositionReference:f,domReference:p})),[h.refs,g,f]),w=r.useMemo((()=>({...h.elements,domReference:d})),[h.elements,d]),y=r.useMemo((()=>({...h,...o,refs:v,elements:w,nodeId:t})),[h,v,w,t,o]);return $r((()=>{o.dataRef.current.floatingContext=y;const e=null==m?void 0:m.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),r.useMemo((()=>({...h,context:y,refs:v,elements:w})),[h,v,w,y])}
|
|
12
12
|
/*!
|
|
13
13
|
react-datepicker v7.4.0
|
|
14
14
|
https://github.com/Hacker0x01/react-datepicker
|