@sequencing/design-system 1.0.21 → 1.0.23
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 +3 -3
- 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/TextField/TextField.d.ts +3 -3
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/components/Atoms/TextField/TextField.d.ts +3 -3
- 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",outlinedSuccess:"Button-module_outlinedSuccess__WhbQj"}),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 b="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",y={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"};const C=l.bind(y),k=e.forwardRef((({hint:t,icon:n,label:r,children:a,customCaretDownIconSrc:o,customClass:i,variant:s="primary",dismissOnClickOutside:l=!0,onToggle:c},u)=>{const d=e.useRef(null),[p,m]=e.useState(!1);e.useEffect((()=>{if(l)return document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}})),e.useImperativeHandle(u,(()=>({close:h})));const h=()=>{m(!1)},f=e=>{(null==d?void 0:d.current)&&!d.current.contains(e.target)&&p&&m(!1)};return e.createElement("div",{ref:d,className:C("dropdown",s,i,{isOpen:p,withIcon:!!n})},e.createElement("button",{title:t,type:"button",onClick:e=>{e.preventDefault(),m(!p),null==c||c(!p,e)},className:y.dropdownToggle},n&&e.createElement("img",{src:n,alt:"icon"}),e.createElement("span",null,r),e.createElement("img",{src:o||b,alt:"caret"})),e.createElement("div",{className:y.dropdownContent,hidden:!p},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 x=l.bind(D),S=({value:t,customClass:n,placeholder:r,showClearButton:a,variant:o="primary",onChange:i,onClick:s,inputRef:l,icon:c,iconPosition:u="left"})=>e.createElement("div",{className:x("textfield",o,n)},c&&e.createElement("img",{src:c,alt:"icon",className:x("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:x({iconLeft:!!c&&"left"===u,iconRight:!!c&&"right"===u})}),a&&!!(null==t?void 0:t.length)&&e.createElement("button",{type:"button","aria-label":"clear",onClick:()=>null==i?void 0:i(""),className:D.clearButton}));var M={accordion:"Accordion-module_accordion__t2UQl",isOpen:"Accordion-module_isOpen__0d2yS",accordionToggle:"Accordion-module_accordionToggle__4X-Wg",accordionContent:"Accordion-module_accordionContent__j9no7"};const E=l.bind(M);var _={tabMenu:"TabMenu-module_tabMenu__SbpUg",tab:"TabMenu-module_tab__-NW1I",active:"TabMenu-module_active__F76rY",chip:"TabMenu-module_chip__KRJDB"};const N=l.bind(_),P=({customClass:t,tabId:n,active:r,chip:a,children:o,onClick:i})=>e.createElement("div",{className:N("tab",t,{active:r}),onClick:()=>i(n)},"string"==typeof o?e.createElement("span",null,o):o,!!a&&e.createElement("div",{className:N("chip")},a)),T=l.bind(_);var A={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=l.bind(A);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",Y={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",contentWrapper:"AppBar-module_contentWrapper__CIRle",content:"AppBar-module_content__zfFex",appVersionWrapper:"AppBar-module_appVersionWrapper__rJLPr",appVersion:"AppBar-module_appVersion__CNsMr",rightAddornmentWrapper:"AppBar-module_rightAddornmentWrapper__E7yIg",rightAddornment:"AppBar-module_rightAddornment__Lt7AS",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 O=l.bind(Y);var R;function I(){return I=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},I.apply(null,arguments)}const B=e=>r.createElement("svg",I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},e),R||(R=r.createElement("path",{fill:"#12306C",d:"m441.9 167.3-19.8-19.8c-4.7-4.7-12.3-4.7-17 0L224 328.2 42.9 147.5c-4.7-4.7-12.3-4.7-17 0L6.1 167.3c-4.7 4.7-4.7 12.3 0 17l209.4 209.4c4.7 4.7 12.3 4.7 17 0l209.4-209.4c4.7-4.7 4.7-12.3 0-17"})));var F={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 W(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=W(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function V(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=W(e))&&(r&&(r+=" "),r+=t);return r}function q(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 Z(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function K(e,t){const n=q(e);return isNaN(t)?Z(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function Q(e,t){return Z(e,+q(e)+t)}const j=6048e5,U=864e5,z=6e4,G=36e5;function X(e,t){return Q(e,t*z)}function J(e,t){const n=q(e);if(isNaN(t))return Z(e,NaN);if(!t)return n;const r=n.getDate(),a=Z(e,n.getTime());a.setMonth(n.getMonth()+t+1,0);return r>=a.getDate()?a:(n.setFullYear(a.getFullYear(),a.getMonth(),r),n)}function $(e,t){return J(e,3*t)}function ee(e,t){return Q(e,1e3*t)}function te(e,t){return K(e,7*t)}function ne(e,t){return J(e,12*t)}function re(e){const t=q(e);return t.setHours(0,0,0,0),t}function ae(e){const t=q(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 oe(e,t){const n=re(e),r=re(t),a=+n-ae(n),o=+r-ae(r);return Math.round((a-o)/U)}function ie(e,t){const n=q(e),r=q(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}function se(e){const t=q(e);return Math.trunc(t.getMonth()/3)+1}function le(e,t){const n=q(e),r=q(t);return 4*(n.getFullYear()-r.getFullYear())+(se(n)-se(r))}function ce(e,t){const n=q(e),r=q(t);return n.getFullYear()-r.getFullYear()}function ue(e){const t=q(e);return t.setHours(23,59,59,999),t}function de(e){const t=q(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}let pe={};function me(){return pe}function he(e){const t=q(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}const fe={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 ge(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ve={date:ge({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ge({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:ge({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},we={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 ye={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 Ce(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 ke={ordinalNumber:(De={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(De.matchPattern);if(!n)return null;const r=n[0],a=e.match(De.parsePattern);if(!a)return null;let o=De.valueCallback?De.valueCallback(a[0]):a[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(r.length)}}),era:Ce({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:Ce({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:Ce({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:Ce({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:Ce({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 De;const xe={code:"en-US",formatDistance:(e,t,n)=>{let r;const a=fe[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:ve,formatRelative:(e,t,n,r)=>we[e],localize:ye,match:ke,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Se(e){const t=q(e),n=Z(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Me(e,t){const n=me(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=q(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 Ee(e){return Me(e,{weekStartsOn:1})}function _e(e){const t=q(e),n=t.getFullYear(),r=Z(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=Ee(r),o=Z(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const i=Ee(o);return t.getTime()>=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Ne(e){const t=q(e),n=+Ee(t)-+function(e){const t=_e(e),n=Z(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ee(n)}(t);return Math.round(n/j)+1}function Pe(e,t){const n=q(e),r=n.getFullYear(),a=me(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,i=Z(e,0);i.setFullYear(r+1,0,o),i.setHours(0,0,0,0);const s=Me(i,t),l=Z(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 Te(e,t){const n=q(e),r=+Me(n,t)-+function(e,t){const n=me(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=Pe(e,t),o=Z(e,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),Me(o,t)}(n,t);return Math.round(r/j)+1}function Ae(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Le={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ae("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):Ae(n+1,2)},d:(e,t)=>Ae(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)=>Ae(e.getHours()%12||12,t.length),H:(e,t)=>Ae(e.getHours(),t.length),m:(e,t)=>Ae(e.getMinutes(),t.length),s:(e,t)=>Ae(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return Ae(Math.trunc(r*Math.pow(10,n-3)),t.length)}},He="midnight",Ye="noon",Oe="morning",Re="afternoon",Ie="evening",Be="night",Fe={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 Le.y(e,t)},Y:function(e,t,n,r){const a=Pe(e,r),o=a>0?a:1-a;if("YY"===t){return Ae(o%100,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):Ae(o,t.length)},R:function(e,t){return Ae(_e(e),t.length)},u:function(e,t){return Ae(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 Ae(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 Ae(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 Le.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 Ae(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=Te(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):Ae(a,t.length)},I:function(e,t,n){const r=Ne(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Ae(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Le.d(e,t)},D:function(e,t,n){const r=function(e){const t=q(e);return oe(t,Se(t))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Ae(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 Ae(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 Ae(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 Ae(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?Ye:0===r?He: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?Ie:r>=12?Re:r>=4?Oe:Be,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 Le.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):Le.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Ae(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Ae(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Le.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Le.s(e,t)},S:function(e,t){return Le.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Ve(r);case"XXXX":case"XX":return qe(r);default:return qe(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ve(r);case"xxxx":case"xx":return qe(r);default:return qe(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+We(r,":");default:return"GMT"+qe(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+We(r,":");default:return"GMT"+qe(r,":")}},t:function(e,t,n){return Ae(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return Ae(e.getTime(),t.length)}};function We(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+Ae(o,2)}function Ve(e,t){if(e%60==0){return(e>0?"-":"+")+Ae(Math.abs(e)/60,2)}return qe(e,t)}function qe(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+Ae(Math.trunc(r/60),2)+t+Ae(r%60,2)}const Ze=(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"})}},Ke=(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"})}},Qe={p:Ke,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return Ze(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}}",Ze(r,t)).replace("{{time}}",Ke(a,t))}},je=/^D+$/,Ue=/^Y+$/,ze=["D","DD","YY","YYYY"];function Ge(e){return je.test(e)}function Xe(e){return Ue.test(e)}function Je(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),ze.includes(e))throw new RangeError(r)}function $e(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function et(e){if(!$e(e)&&"number"!=typeof e)return!1;const t=q(e);return!isNaN(Number(t))}const tt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rt=/^'([^]*?)'?$/,at=/''/g,ot=/[a-zA-Z]/;function it(e,t,n){const r=me(),a=n?.locale??r.locale??xe,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=q(e);if(!et(s))throw new RangeError("Invalid time value");let l=t.match(nt).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,Qe[t])(e,a.formatLong)}return e})).join("").match(tt).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:st(e)};if(Fe[t])return{isToken:!0,value:e};if(t.match(ot))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&&Xe(o)||!n?.useAdditionalDayOfYearTokens&&Ge(o))&&Je(o,t,String(e));return(0,Fe[o[0]])(s,o,a.localize,c)})).join("")}function st(e){const t=e.match(rt);return t?t[1].replace(at,"'"):e}function lt(e){return q(e).getDate()}function ct(e){return q(e).getHours()}function ut(e){return q(e).getMinutes()}function dt(e){return q(e).getMonth()}function pt(e){return q(e).getSeconds()}function mt(e){return q(e).getTime()}function ht(e){return q(e).getFullYear()}function ft(e,t){const n=q(e),r=q(t);return n.getTime()>r.getTime()}function gt(e,t){return+q(e)<+q(t)}function vt(e){const t=q(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function wt(e,t){const n=+q(e),[r,a]=[+q(t.start),+q(t.end)].sort(((e,t)=>e-t));return n>=r&&n<=a}function bt(e){let t;return e.forEach((function(e){const n=q(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new Date(NaN)}function yt(e){let t;return e.forEach((e=>{const n=q(e);(!t||t>n||isNaN(+n))&&(t=n)})),t||new Date(NaN)}class Ct{subPriority=0;validate(e,t){return!0}}class kt extends Ct{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 Dt extends Ct{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:Z(e,function(e,t){const n=t instanceof Date?Z(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 xt{run(e,t,n,r){const a=this.parse(e,t,n,r);return a?{setter:new kt(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,t,n){return!0}}const St=/^(1[0-2]|0?\d)/,Mt=/^(3[0-1]|[0-2]?\d)/,Et=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,_t=/^(5[0-3]|[0-4]?\d)/,Nt=/^(2[0-3]|[0-1]?\d)/,Pt=/^(2[0-4]|[0-1]?\d)/,Tt=/^(1[0-1]|0?\d)/,At=/^(1[0-2]|0?\d)/,Lt=/^[0-5]?\d/,Ht=/^[0-5]?\d/,Yt=/^\d/,Ot=/^\d{1,2}/,Rt=/^\d{1,3}/,It=/^\d{1,4}/,Bt=/^-?\d+/,Ft=/^-?\d/,Wt=/^-?\d{1,2}/,Vt=/^-?\d{1,3}/,qt=/^-?\d{1,4}/,Zt=/^([+-])(\d{2})(\d{2})?|Z/,Kt=/^([+-])(\d{2})(\d{2})|Z/,Qt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,jt=/^([+-])(\d{2}):(\d{2})|Z/,Ut=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function zt(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Gt(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Xt(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*G+o*z+1e3*i),rest:t.slice(n[0].length)}}function Jt(e){return Gt(Bt,e)}function $t(e,t){switch(e){case 1:return Gt(Yt,t);case 2:return Gt(Ot,t);case 3:return Gt(Rt,t);case 4:return Gt(It,t);default:return Gt(new RegExp("^\\d{1,"+e+"}"),t)}}function en(e,t){switch(e){case 1:return Gt(Ft,t);case 2:return Gt(Wt,t);case 3:return Gt(Vt,t);case 4:return Gt(qt,t);default:return Gt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function tn(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function nn(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 rn(e){return e%400==0||e%4==0&&e%100!=0}const an=[31,28,31,30,31,30,31,31,30,31,30,31],on=[31,29,31,30,31,30,31,31,30,31,30,31];function sn(e,t,n){const r=me(),a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=q(e),i=o.getDay(),s=7-a;return K(o,t<0||t>6?t-(i+s)%7:((t%7+7)%7+s)%7-(i+s)%7)}function ln(e,t){const n=q(e),r=function(e){let t=q(e).getDay();return 0===t&&(t=7),t}(n);return K(n,t-r)}const cn={G:new class extends xt{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 xt{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 zt($t(4,e),r);case"yo":return zt(n.ordinalNumber(e,{unit:"year"}),r);default:return zt($t(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=nn(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 xt{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return zt($t(4,e),r);case"Yo":return zt(n.ordinalNumber(e,{unit:"year"}),r);default:return zt($t(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const a=Pe(e,r);if(n.isTwoDigitYear){const t=nn(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 xt{priority=130;parse(e,t){return en("R"===t?4:t.length,e)}set(e,t,n){const r=Z(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ee(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends xt{priority=130;parse(e,t){return en("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 xt{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return $t(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 xt{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return $t(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 xt{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 zt(Gt(St,e),r);case"MM":return zt($t(2,e),r);case"Mo":return zt(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 xt{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return zt(Gt(St,e),r);case"LL":return zt($t(2,e),r);case"Lo":return zt(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 xt{priority=100;parse(e,t,n){switch(t){case"w":return Gt(_t,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return $t(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return Me(function(e,t,n){const r=q(e),a=Te(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 xt{priority=100;parse(e,t,n){switch(t){case"I":return Gt(_t,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return $t(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return Ee(function(e,t){const n=q(e),r=Ne(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 xt{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return Gt(Mt,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return $t(t.length,e)}}validate(e,t){const n=rn(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=on[r]:t>=1&&t<=an[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 xt{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return Gt(Et,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return $t(t.length,e)}}validate(e,t){return rn(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 xt{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=sn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends xt{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 zt($t(t.length,e),a);case"eo":return zt(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=sn(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 xt{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 zt($t(t.length,e),a);case"co":return zt(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=sn(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 xt{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return $t(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return zt(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 zt(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return zt(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return zt(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=ln(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 xt{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(tn(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends xt{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(tn(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends xt{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(tn(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends xt{priority=70;parse(e,t,n){switch(t){case"h":return Gt(At,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return $t(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 xt{priority=70;parse(e,t,n){switch(t){case"H":return Gt(Nt,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return $t(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 xt{priority=70;parse(e,t,n){switch(t){case"K":return Gt(Tt,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return $t(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 xt{priority=70;parse(e,t,n){switch(t){case"k":return Gt(Pt,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return $t(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 xt{priority=60;parse(e,t,n){switch(t){case"m":return Gt(Lt,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return $t(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 xt{priority=50;parse(e,t,n){switch(t){case"s":return Gt(Ht,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return $t(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 xt{priority=30;parse(e,t){return zt($t(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 xt{priority=10;parse(e,t){switch(t){case"X":return Xt(Zt,e);case"XX":return Xt(Kt,e);case"XXXX":return Xt(Qt,e);case"XXXXX":return Xt(Ut,e);default:return Xt(jt,e)}}set(e,t,n){return t.timestampIsSet?e:Z(e,e.getTime()-ae(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends xt{priority=10;parse(e,t){switch(t){case"x":return Xt(Zt,e);case"xx":return Xt(Kt,e);case"xxxx":return Xt(Qt,e);case"xxxxx":return Xt(Ut,e);default:return Xt(jt,e)}}set(e,t,n){return t.timestampIsSet?e:Z(e,e.getTime()-ae(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends xt{priority=40;parse(e){return Jt(e)}set(e,t,n){return[Z(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends xt{priority=20;parse(e){return Jt(e)}set(e,t,n){return[Z(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},un=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pn=/^'([^]*?)'?$/,mn=/''/g,hn=/\S/,fn=/[a-zA-Z]/;function gn(e,t,n,r){const a=Object.assign({},me()),o=r?.locale??a.locale??xe,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?q(n):Z(n,NaN);const l={firstWeekContainsDate:i,weekStartsOn:s,locale:o},c=[new Dt],u=t.match(dn).map((e=>{const t=e[0];if(t in Qe){return(0,Qe[t])(e,o.formatLong)}return e})).join("").match(un),d=[];for(let a of u){!r?.useAdditionalWeekYearTokens&&Xe(a)&&Je(a,t,e),!r?.useAdditionalDayOfYearTokens&&Ge(a)&&Je(a,t,e);const i=a[0],s=cn[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 Z(n,NaN);c.push(r.setter),e=r.rest}else{if(i.match(fn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===a?a="'":"'"===i&&(a=a.match(pn)[1].replace(mn,"'")),0!==e.indexOf(a))return Z(n,NaN);e=e.slice(a.length)}}if(e.length>0&&hn.test(e))return Z(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=q(n);if(isNaN(m.getTime()))return Z(n,NaN);const h={};for(const e of p){if(!e.validate(m,l))return Z(n,NaN);const t=e.set(m,h,l);Array.isArray(t)?(m=t[0],Object.assign(h,t[1])):m=t}return Z(n,m)}function vn(e,t){const n=t?.additionalDigits??2,r=function(e){const t={},n=e.split(wn.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],wn.timeZoneDelimiter.test(t.date)&&(t.date=e.split(wn.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=wn.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=kn(n[1]),o=kn(n[2])-1,i=kn(n[3]),s=kn(n[4]),l=kn(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<=(xn[t]||(Sn(e)?29:28))}(t,o,i)&&function(e,t){return t>=1&&t<=(Sn(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(yn);if(!t)return NaN;const n=Dn(t[1]),r=Dn(t[2]),a=Dn(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*G+r*z+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(Cn);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*G+a*z)}(r.timezone),isNaN(i)?new Date(NaN):new Date(o+s+i)}const wn={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},bn=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,yn=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Cn=/^([+-])(\d{2})(?::?(\d{2}))?$/;function kn(e){return e?parseInt(e):1}function Dn(e){return e&&parseFloat(e.replace(",","."))||0}const xn=[31,null,31,30,31,30,31,31,30,31,30,31];function Sn(e){return e%400==0||e%4==0&&e%100!=0}function Mn(e,t){const n=q(e),r=n.getFullYear(),a=n.getDate(),o=Z(e,0);o.setFullYear(r,t,15),o.setHours(0,0,0,0);const i=function(e){const t=q(e),n=t.getFullYear(),r=t.getMonth(),a=Z(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 En(e,t){const n=q(e);return n.setHours(t),n}function _n(e,t){const n=q(e);return n.setMinutes(t),n}function Nn(e,t){const n=q(e),r=t-(Math.trunc(n.getMonth()/3)+1);return Mn(n,n.getMonth()+3*r)}function Pn(e,t){const n=q(e);return n.setSeconds(t),n}function Tn(e,t){const n=q(e);return isNaN(+n)?Z(e,NaN):(n.setFullYear(t),n)}function An(e){const t=q(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Ln(e,t){return J(e,-t)}function Hn(e,t){return $(e,-t)}function Yn(e,t){return te(e,-t)}function On(e,t){return ne(e,-t)}function Rn(){return"undefined"!=typeof window}function In(e){return Wn(e)?(e.nodeName||"").toLowerCase():"#document"}function Bn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Fn(e){var t;return null==(t=(Wn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Wn(e){return!!Rn()&&(e instanceof Node||e instanceof Bn(e).Node)}function Vn(e){return!!Rn()&&(e instanceof Element||e instanceof Bn(e).Element)}function qn(e){return!!Rn()&&(e instanceof HTMLElement||e instanceof Bn(e).HTMLElement)}function Zn(e){return!(!Rn()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Bn(e).ShadowRoot)}function Kn(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Xn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function Qn(e){return["table","td","th"].includes(In(e))}function jn(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Un(e){const t=zn(),n=Vn(e)?Xn(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 zn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Gn(e){return["html","body","#document"].includes(In(e))}function Xn(e){return Bn(e).getComputedStyle(e)}function Jn(e){return Vn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $n(e){if("html"===In(e))return e;const t=e.assignedSlot||e.parentNode||Zn(e)&&e.host||Fn(e);return Zn(t)?t.host:t}function er(e){const t=$n(e);return Gn(t)?e.ownerDocument?e.ownerDocument.body:e.body:qn(t)&&Kn(t)?t:er(t)}function tr(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=er(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=Bn(a);if(o){const e=nr(i);return t.concat(i,i.visualViewport||[],Kn(a)?a:[],e&&n?tr(e):[])}return t.concat(a,tr(a,[],n))}function nr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const rr=Math.min,ar=Math.max,or=Math.round,ir=Math.floor,sr=e=>({x:e,y:e}),lr={left:"right",right:"left",bottom:"top",top:"bottom"},cr={start:"end",end:"start"};function ur(e,t,n){return ar(e,rr(t,n))}function dr(e,t){return"function"==typeof e?e(t):e}function pr(e){return e.split("-")[0]}function mr(e){return e.split("-")[1]}function hr(e){return"y"===e?"height":"width"}function fr(e){return["top","bottom"].includes(pr(e))?"y":"x"}function gr(e){return"x"===fr(e)?"y":"x"}function vr(e){return e.replace(/start|end/g,(e=>cr[e]))}function wr(e){return e.replace(/left|right|bottom|top/g,(e=>lr[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 yr(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 Cr(e,t,n){let{reference:r,floating:a}=e;const o=fr(t),i=gr(t),s=hr(i),l=pr(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(mr(t)){case"start":m[i]-=p*(n&&c?-1:1);break;case"end":m[i]+=p*(n&&c?-1:1)}return m}function kr(e){const t=Xn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=qn(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=or(n)!==o||or(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function Dr(e){return Vn(e)?e:e.contextElement}function xr(e){const t=Dr(e);if(!qn(t))return sr(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=kr(t);let i=(o?or(n.width):n.width)/r,s=(o?or(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Sr=sr(0);function Mr(e){const t=Bn(e);return zn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Sr}function Er(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=Dr(e);let i=sr(1);t&&(r?Vn(r)&&(i=xr(r)):i=xr(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Bn(e))&&t}(o,n,r)?Mr(o):sr(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=Bn(o),t=r&&Vn(r)?Bn(r):r;let n=e,a=nr(n);for(;a&&r&&t!==n;){const e=xr(a),t=a.getBoundingClientRect(),r=Xn(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=Bn(a),a=nr(n)}}return yr({width:u,height:d,x:l,y:c})}function _r(e,t){const n=Jn(e).scrollLeft;return t?t.left+n:Er(Fn(e)).left+n}function Nr(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Bn(e),r=Fn(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=zn();(!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=Fn(e),n=Jn(e),r=e.ownerDocument.body,a=ar(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ar(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+_r(e);const s=-n.scrollTop;return"rtl"===Xn(r).direction&&(i+=ar(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}(Fn(e));else if(Vn(t))r=function(e,t){const n=Er(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=qn(e)?xr(e):sr(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 yr(r)}function Pr(e,t){const n=$n(e);return!(n===t||!Vn(n)||Gn(n))&&("fixed"===Xn(n).position||Pr(n,t))}function Tr(e,t,n){const r=qn(t),a=Fn(t),o="fixed"===n,i=Er(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=sr(0);if(r||!r&&!o)if(("body"!==In(t)||Kn(a))&&(s=Jn(t)),r){const e=Er(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&(l.x=_r(a));let c=0,u=0;if(a&&!r&&!o){const e=a.getBoundingClientRect();u=e.top+s.scrollTop,c=e.left+s.scrollLeft-_r(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 Ar(e){return"static"===Xn(e).position}function Lr(e,t){if(!qn(e)||"fixed"===Xn(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Fn(e)===n&&(n=n.ownerDocument.body),n}function Hr(e,t){const n=Bn(e);if(jn(e))return n;if(!qn(e)){let t=$n(e);for(;t&&!Gn(t);){if(Vn(t)&&!Ar(t))return t;t=$n(t)}return n}let r=Lr(e,t);for(;r&&Qn(r)&&Ar(r);)r=Lr(r,t);return r&&Gn(r)&&Ar(r)&&!Un(r)?n:r||function(e){let t=$n(e);for(;qn(t)&&!Gn(t);){if(Un(t))return t;if(jn(t))return null;t=$n(t)}return null}(e)||n}const Yr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o="fixed"===a,i=Fn(r),s=!!t&&jn(t.floating);if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=sr(1);const u=sr(0),d=qn(r);if((d||!d&&!o)&&(("body"!==In(r)||Kn(i))&&(l=Jn(r)),qn(r))){const e=Er(r);c=xr(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:Fn,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?jn(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=tr(e,[],!1).filter((e=>Vn(e)&&"body"!==In(e))),a=null;const o="fixed"===Xn(e).position;let i=o?$n(e):e;for(;Vn(i)&&!Gn(i);){const t=Xn(i),n=Un(i);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||Kn(i)&&!n&&Pr(e,i))?r=r.filter((e=>e!==i)):a=t,i=$n(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=Nr(t,n,a);return e.top=ar(r.top,e.top),e.right=rr(r.right,e.right),e.bottom=rr(r.bottom,e.bottom),e.left=ar(r.left,e.left),e}),Nr(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Hr,getElementRects:async function(e){const t=this.getOffsetParent||Hr,n=this.getDimensions,r=await n(e.floating);return{reference:Tr(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}=kr(e);return{width:t,height:n}},getScale:xr,isElement:Vn,isRTL:function(e){return"rtl"===Xn(e).direction}};function Or(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=Dr(e),u=a||o?[...c?tr(c):[],...tr(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=Fn(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:-ir(u)+"px "+-ir(a.clientWidth-(c+d))+"px "+-ir(a.clientHeight-(u+p))+"px "+-ir(c)+"px",threshold:ar(0,rr(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?Er(e):null;return l&&function t(){const r=Er(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 Rr=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=pr(n),s=mr(n),l="y"===fr(n),c=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,d=dr(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}}}}},Ir=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}=dr(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const v=pr(a),w=fr(s),b=pr(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),C=p||(b||!f?[wr(s)]:function(e){const t=wr(e);return[vr(e),t,vr(t)]}(s)),k="none"!==h;!p&&k&&C.push(...function(e,t,n,r){const a=mr(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[]}}(pr(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(vr)))),o}(s,f,h,y));const D=[s,...C],x=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}=dr(t,e),h=br(m),f=s[p?"floating"===d?"reference":"floating":d],g=yr(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)),b=await(null==o.isElement?void 0:o.isElement(w))&&await(null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},y=yr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:w,strategy:l}):v);return{top:(g.top-y.top+h.top)/b.y,bottom:(y.bottom-g.bottom+h.bottom)/b.y,left:(g.left-y.left+h.left)/b.x,right:(y.right-g.right+h.right)/b.x}}(t,g),S=[];let M=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&S.push(x[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=mr(e),a=gr(e),o=hr(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=wr(i)),[i,wr(i)]}(a,i,y);S.push(x[e[0]],x[e[1]])}if(M=[...M,{placement:a,overflows:S}],!S.every((e=>e<=0))){var E,_;const e=((null==(E=o.flip)?void 0:E.index)||0)+1,t=D[e];if(t)return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(_=M.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:_.placement;if(!n)switch(m){case"bestFit":{var N;const e=null==(N=M.filter((e=>{if(k){const t=fr(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{}}}},Br=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}=dr(e,t)||{};if(null==c)return{};const d=br(u),p={x:n,y:r},m=gr(a),h=hr(m),f=await i.getDimensions(c),g="y"===m,v=g?"top":"left",w=g?"bottom":"right",b=g?"clientHeight":"clientWidth",y=o.reference[h]+o.reference[m]-p[m]-o.floating[h],C=p[m]-o.reference[m],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let D=k?k[b]:0;D&&await(null==i.isElement?void 0:i.isElement(k))||(D=s.floating[b]||o.floating[h]);const x=y/2-C/2,S=D/2-f[h]/2-1,M=rr(d[v],S),E=rr(d[w],S),_=M,N=D-f[h]-E,P=D/2-f[h]/2+x,T=ur(_,P,N),A=!l.arrow&&null!=mr(a)&&P!==T&&o.reference[h]/2-(P<_?M:E)-f[h]/2<0,L=A?P<_?P-_:P-N:0;return{[m]:p[m]+L,data:{[m]:T,centerOffset:P-T-L,...A&&{alignmentOffset:L}},reset:A}}}),Fr=(e,t,n)=>{const r=new Map,a={platform:Yr,...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}=Cr(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:b}=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}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):b.rects),({x:u,y:d}=Cr(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:m}})(e,t,{...a,platform:o})};var Wr="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function Vr(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(!Vr(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)&&!Vr(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function qr(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zr(e,t){const n=qr(e);return Math.round(t*n)/n}function Kr(e){const t=r.useRef(e);return Wr((()=>{t.current=e})),t}const Qr=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?Br({element:n.current,padding:r}).fn(t):{}:n?Br({element:n,padding:r}).fn(t):{};var a}}),jr=(e,t)=>({...Rr(e),options:[e,t]}),Ur=(e,t)=>({...Qr(e),options:[e,t]}),zr={...r},Gr=zr.useInsertionEffect||(e=>e());var Xr="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function Jr(){return Jr=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},Jr.apply(this,arguments)}let $r=!1,ea=0;const ta=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ea++;const na=zr.useId||function(){const[e,t]=r.useState((()=>$r?ta():void 0));return Xr((()=>{null==e&&t(ta())}),[]),r.useEffect((()=>{$r=!0}),[]),e};let ra;"production"!==process.env.NODE_ENV&&(ra=new Set);const aa=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=ra)&&e.has(a)||(null==(o=ra)||o.add(a),console.warn(a))}("The `ref` prop is required for `FloatingArrow`."));const v=na(),[w,b]=r.useState(!1);if(Xr((()=>{if(!a)return;"rtl"===Xn(a).direction&&b(!0)}),[a]),!a)return null;const[y,C]=n.split("-"),k="top"===y||"bottom"===y;let D=d;(k&&null!=i&&i.x||!k&&null!=i&&i.y)&&(D=null);const x=2*u,S=x/2,M=s/2*(c/-8+1),E=l/2*c/4,_=!!m,N=D&&"end"===C?"bottom":"top";let P=D&&"end"===C?"right":"left";D&&w&&(P="end"===C?"left":"right");const T=null!=(null==o?void 0:o.x)?D||o.x:"",A=null!=(null==o?void 0:o.y)?D||o.y:"",L=m||"M0,0 H"+s+" L"+(s-M)+","+(l-E)+" Q"+s/2+","+l+" "+M+","+(l-E)+" Z",H={top:_?"rotate(180deg)":"",left:_?"rotate(90deg)":"rotate(-90deg)",bottom:_?"":"rotate(180deg)",right:_?"rotate(-90deg)":"rotate(90deg)"}[y];return r.createElement("svg",Jr({},g,{"aria-hidden":!0,ref:t,width:_?s:s+x,height:s,viewBox:"0 0 "+s+" "+(l>s?l:s),style:{position:"absolute",pointerEvents:"none",[P]:T,[N]:A,[y]:k||_?"100%":"calc(100% - "+x/2+"px)",transform:[H,h].filter((e=>!!e)).join(" "),...f}}),x>0&&r.createElement("path",{clipPath:"url(#"+v+")",fill:"none",stroke:p,strokeWidth:x+(m?0:1),d:L}),r.createElement("path",{stroke:x&&!m?g.fill:"none",d:L}),r.createElement("clipPath",{id:v},r.createElement("rect",{x:-S,y:S*(_?-1:1),width:s+x,height:s})))}));const oa=r.createContext(null),ia=r.createContext(null),sa=()=>{var e;return(null==(e=r.useContext(oa))?void 0:e.id)||null},la=()=>r.useContext(ia);function ca(e){const{open:t=!1,onOpenChange:n,elements:a}=e,o=na(),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!=sa();if("production"!==process.env.NODE_ENV){const e=a.reference;e&&!Vn(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=ra)&&e.has(a)||(null==(o=ra)||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 Gr((()=>{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 ua(e){void 0===e&&(e={});const{nodeId:t}=e,n=ca({...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=la();Xr((()=>{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);Vr(h,o)||f(o);const[g,v]=r.useState(null),[w,b]=r.useState(null),y=r.useCallback((e=>{e!==x.current&&(x.current=e,v(e))}),[]),C=r.useCallback((e=>{e!==S.current&&(S.current=e,b(e))}),[]),k=s||g,D=l||w,x=r.useRef(null),S=r.useRef(null),M=r.useRef(p),E=null!=u,_=Kr(u),N=Kr(i),P=Kr(d),T=r.useCallback((()=>{if(!x.current||!S.current)return;const e={placement:t,strategy:n,middleware:h};N.current&&(e.platform=N.current),Fr(x.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};A.current&&!Vr(M.current,t)&&(M.current=t,a.flushSync((()=>{m(t)})))}))}),[h,t,n,N,P]);Wr((()=>{!1===d&&M.current.isPositioned&&(M.current.isPositioned=!1,m((e=>({...e,isPositioned:!1}))))}),[d]);const A=r.useRef(!1);Wr((()=>(A.current=!0,()=>{A.current=!1})),[]),Wr((()=>{if(k&&(x.current=k),D&&(S.current=D),k&&D){if(_.current)return _.current(k,D,T);T()}}),[k,D,T,_,E]);const L=r.useMemo((()=>({reference:x,floating:S,setReference:y,setFloating:C})),[y,C]),H=r.useMemo((()=>({reference:k,floating:D})),[k,D]),Y=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!H.floating)return e;const t=Zr(H.floating,p.x),r=Zr(H.floating,p.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...qr(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,H.floating,p.x,p.y]);return r.useMemo((()=>({...p,update:T,refs:L,elements:H,floatingStyles:Y})),[p,T,L,H,Y])}({...e,elements:{...i,...c&&{reference:c}}}),f=r.useCallback((e=>{const t=Vn(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;u(t),h.refs.setReference(t)}),[h.refs]),g=r.useCallback((e=>{(Vn(e)||null===e)&&(p.current=e,l(e)),(Vn(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!Vn(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]),b=r.useMemo((()=>({...h,...o,refs:v,elements:w,nodeId:t})),[h,v,w,t,o]);return Xr((()=>{o.dataRef.current.floatingContext=b;const e=null==m?void 0:m.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),r.useMemo((()=>({...h,context:b,refs:v,elements:w})),[h,v,w,b])}
|
|
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",outlinedSuccess:"Button-module_outlinedSuccess__WhbQj"}),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 b="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",y={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"};const C=l.bind(y),k=e.forwardRef((({hint:t,icon:n,label:r,children:a,customCaretDownIconSrc:o,customClass:i,variant:s="primary",dismissOnClickOutside:l=!0,onToggle:c},u)=>{const d=e.useRef(null),[p,m]=e.useState(!1);e.useEffect((()=>{if(l)return document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}})),e.useImperativeHandle(u,(()=>({close:h})));const h=()=>{m(!1)},f=e=>{(null==d?void 0:d.current)&&!d.current.contains(e.target)&&p&&m(!1)};return e.createElement("div",{ref:d,className:C("dropdown",s,i,{isOpen:p,withIcon:!!n})},e.createElement("button",{title:t,type:"button",onClick:e=>{e.preventDefault(),m(!p),null==c||c(!p,e)},className:y.dropdownToggle},n&&e.createElement("img",{src:n,alt:"icon"}),e.createElement("span",null,r),e.createElement("img",{src:o||b,alt:"caret"})),e.createElement("div",{className:y.dropdownContent,hidden:!p},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 x=l.bind(D),S=({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:x("textfield",o,n)},c&&e.createElement("img",{src:c,alt:"icon",className:x("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:x({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 M={accordion:"Accordion-module_accordion__t2UQl",isOpen:"Accordion-module_isOpen__0d2yS",accordionToggle:"Accordion-module_accordionToggle__4X-Wg",accordionContent:"Accordion-module_accordionContent__j9no7"};const E=l.bind(M);var _={tabMenu:"TabMenu-module_tabMenu__SbpUg",tab:"TabMenu-module_tab__-NW1I",active:"TabMenu-module_active__F76rY",chip:"TabMenu-module_chip__KRJDB"};const N=l.bind(_),P=({customClass:t,tabId:n,active:r,chip:a,children:o,onClick:i})=>e.createElement("div",{className:N("tab",t,{active:r}),onClick:()=>i(n)},"string"==typeof o?e.createElement("span",null,o):o,!!a&&e.createElement("div",{className:N("chip")},a)),T=l.bind(_);var A={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=l.bind(A);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",Y={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",contentWrapper:"AppBar-module_contentWrapper__CIRle",content:"AppBar-module_content__zfFex",appVersionWrapper:"AppBar-module_appVersionWrapper__rJLPr",appVersion:"AppBar-module_appVersion__CNsMr",rightAddornmentWrapper:"AppBar-module_rightAddornmentWrapper__E7yIg",rightAddornment:"AppBar-module_rightAddornment__Lt7AS",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 O=l.bind(Y);var R;function I(){return I=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},I.apply(null,arguments)}const B=e=>r.createElement("svg",I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},e),R||(R=r.createElement("path",{fill:"#12306C",d:"m441.9 167.3-19.8-19.8c-4.7-4.7-12.3-4.7-17 0L224 328.2 42.9 147.5c-4.7-4.7-12.3-4.7-17 0L6.1 167.3c-4.7 4.7-4.7 12.3 0 17l209.4 209.4c4.7 4.7 12.3 4.7 17 0l209.4-209.4c4.7-4.7 4.7-12.3 0-17"})));var F={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 W(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=W(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function V(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=W(e))&&(r&&(r+=" "),r+=t);return r}function q(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 Z(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function K(e,t){const n=q(e);return isNaN(t)?Z(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function Q(e,t){return Z(e,+q(e)+t)}const j=6048e5,U=864e5,z=6e4,G=36e5;function X(e,t){return Q(e,t*z)}function J(e,t){const n=q(e);if(isNaN(t))return Z(e,NaN);if(!t)return n;const r=n.getDate(),a=Z(e,n.getTime());a.setMonth(n.getMonth()+t+1,0);return r>=a.getDate()?a:(n.setFullYear(a.getFullYear(),a.getMonth(),r),n)}function $(e,t){return J(e,3*t)}function ee(e,t){return Q(e,1e3*t)}function te(e,t){return K(e,7*t)}function ne(e,t){return J(e,12*t)}function re(e){const t=q(e);return t.setHours(0,0,0,0),t}function ae(e){const t=q(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 oe(e,t){const n=re(e),r=re(t),a=+n-ae(n),o=+r-ae(r);return Math.round((a-o)/U)}function ie(e,t){const n=q(e),r=q(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}function se(e){const t=q(e);return Math.trunc(t.getMonth()/3)+1}function le(e,t){const n=q(e),r=q(t);return 4*(n.getFullYear()-r.getFullYear())+(se(n)-se(r))}function ce(e,t){const n=q(e),r=q(t);return n.getFullYear()-r.getFullYear()}function ue(e){const t=q(e);return t.setHours(23,59,59,999),t}function de(e){const t=q(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}let pe={};function me(){return pe}function he(e){const t=q(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}const fe={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 ge(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ve={date:ge({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ge({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:ge({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},we={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 ye={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 Ce(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 ke={ordinalNumber:(De={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(De.matchPattern);if(!n)return null;const r=n[0],a=e.match(De.parsePattern);if(!a)return null;let o=De.valueCallback?De.valueCallback(a[0]):a[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(r.length)}}),era:Ce({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:Ce({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:Ce({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:Ce({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:Ce({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 De;const xe={code:"en-US",formatDistance:(e,t,n)=>{let r;const a=fe[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:ve,formatRelative:(e,t,n,r)=>we[e],localize:ye,match:ke,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Se(e){const t=q(e),n=Z(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Me(e,t){const n=me(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=q(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 Ee(e){return Me(e,{weekStartsOn:1})}function _e(e){const t=q(e),n=t.getFullYear(),r=Z(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=Ee(r),o=Z(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const i=Ee(o);return t.getTime()>=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Ne(e){const t=q(e),n=+Ee(t)-+function(e){const t=_e(e),n=Z(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ee(n)}(t);return Math.round(n/j)+1}function Pe(e,t){const n=q(e),r=n.getFullYear(),a=me(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,i=Z(e,0);i.setFullYear(r+1,0,o),i.setHours(0,0,0,0);const s=Me(i,t),l=Z(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 Te(e,t){const n=q(e),r=+Me(n,t)-+function(e,t){const n=me(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=Pe(e,t),o=Z(e,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),Me(o,t)}(n,t);return Math.round(r/j)+1}function Ae(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Le={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ae("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):Ae(n+1,2)},d:(e,t)=>Ae(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)=>Ae(e.getHours()%12||12,t.length),H:(e,t)=>Ae(e.getHours(),t.length),m:(e,t)=>Ae(e.getMinutes(),t.length),s:(e,t)=>Ae(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return Ae(Math.trunc(r*Math.pow(10,n-3)),t.length)}},He="midnight",Ye="noon",Oe="morning",Re="afternoon",Ie="evening",Be="night",Fe={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 Le.y(e,t)},Y:function(e,t,n,r){const a=Pe(e,r),o=a>0?a:1-a;if("YY"===t){return Ae(o%100,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):Ae(o,t.length)},R:function(e,t){return Ae(_e(e),t.length)},u:function(e,t){return Ae(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 Ae(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 Ae(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 Le.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 Ae(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=Te(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):Ae(a,t.length)},I:function(e,t,n){const r=Ne(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Ae(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Le.d(e,t)},D:function(e,t,n){const r=function(e){const t=q(e);return oe(t,Se(t))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Ae(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 Ae(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 Ae(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 Ae(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?Ye:0===r?He: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?Ie:r>=12?Re:r>=4?Oe:Be,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 Le.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):Le.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Ae(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Ae(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Le.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Le.s(e,t)},S:function(e,t){return Le.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Ve(r);case"XXXX":case"XX":return qe(r);default:return qe(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ve(r);case"xxxx":case"xx":return qe(r);default:return qe(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+We(r,":");default:return"GMT"+qe(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+We(r,":");default:return"GMT"+qe(r,":")}},t:function(e,t,n){return Ae(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return Ae(e.getTime(),t.length)}};function We(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+Ae(o,2)}function Ve(e,t){if(e%60==0){return(e>0?"-":"+")+Ae(Math.abs(e)/60,2)}return qe(e,t)}function qe(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+Ae(Math.trunc(r/60),2)+t+Ae(r%60,2)}const Ze=(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"})}},Ke=(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"})}},Qe={p:Ke,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return Ze(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}}",Ze(r,t)).replace("{{time}}",Ke(a,t))}},je=/^D+$/,Ue=/^Y+$/,ze=["D","DD","YY","YYYY"];function Ge(e){return je.test(e)}function Xe(e){return Ue.test(e)}function Je(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),ze.includes(e))throw new RangeError(r)}function $e(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function et(e){if(!$e(e)&&"number"!=typeof e)return!1;const t=q(e);return!isNaN(Number(t))}const tt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rt=/^'([^]*?)'?$/,at=/''/g,ot=/[a-zA-Z]/;function it(e,t,n){const r=me(),a=n?.locale??r.locale??xe,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=q(e);if(!et(s))throw new RangeError("Invalid time value");let l=t.match(nt).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,Qe[t])(e,a.formatLong)}return e})).join("").match(tt).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:st(e)};if(Fe[t])return{isToken:!0,value:e};if(t.match(ot))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&&Xe(o)||!n?.useAdditionalDayOfYearTokens&&Ge(o))&&Je(o,t,String(e));return(0,Fe[o[0]])(s,o,a.localize,c)})).join("")}function st(e){const t=e.match(rt);return t?t[1].replace(at,"'"):e}function lt(e){return q(e).getDate()}function ct(e){return q(e).getHours()}function ut(e){return q(e).getMinutes()}function dt(e){return q(e).getMonth()}function pt(e){return q(e).getSeconds()}function mt(e){return q(e).getTime()}function ht(e){return q(e).getFullYear()}function ft(e,t){const n=q(e),r=q(t);return n.getTime()>r.getTime()}function gt(e,t){return+q(e)<+q(t)}function vt(e){const t=q(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function wt(e,t){const n=+q(e),[r,a]=[+q(t.start),+q(t.end)].sort(((e,t)=>e-t));return n>=r&&n<=a}function bt(e){let t;return e.forEach((function(e){const n=q(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new Date(NaN)}function yt(e){let t;return e.forEach((e=>{const n=q(e);(!t||t>n||isNaN(+n))&&(t=n)})),t||new Date(NaN)}class Ct{subPriority=0;validate(e,t){return!0}}class kt extends Ct{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 Dt extends Ct{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:Z(e,function(e,t){const n=t instanceof Date?Z(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 xt{run(e,t,n,r){const a=this.parse(e,t,n,r);return a?{setter:new kt(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,t,n){return!0}}const St=/^(1[0-2]|0?\d)/,Mt=/^(3[0-1]|[0-2]?\d)/,Et=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,_t=/^(5[0-3]|[0-4]?\d)/,Nt=/^(2[0-3]|[0-1]?\d)/,Pt=/^(2[0-4]|[0-1]?\d)/,Tt=/^(1[0-1]|0?\d)/,At=/^(1[0-2]|0?\d)/,Lt=/^[0-5]?\d/,Ht=/^[0-5]?\d/,Yt=/^\d/,Ot=/^\d{1,2}/,Rt=/^\d{1,3}/,It=/^\d{1,4}/,Bt=/^-?\d+/,Ft=/^-?\d/,Wt=/^-?\d{1,2}/,Vt=/^-?\d{1,3}/,qt=/^-?\d{1,4}/,Zt=/^([+-])(\d{2})(\d{2})?|Z/,Kt=/^([+-])(\d{2})(\d{2})|Z/,Qt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,jt=/^([+-])(\d{2}):(\d{2})|Z/,Ut=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function zt(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Gt(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Xt(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*G+o*z+1e3*i),rest:t.slice(n[0].length)}}function Jt(e){return Gt(Bt,e)}function $t(e,t){switch(e){case 1:return Gt(Yt,t);case 2:return Gt(Ot,t);case 3:return Gt(Rt,t);case 4:return Gt(It,t);default:return Gt(new RegExp("^\\d{1,"+e+"}"),t)}}function en(e,t){switch(e){case 1:return Gt(Ft,t);case 2:return Gt(Wt,t);case 3:return Gt(Vt,t);case 4:return Gt(qt,t);default:return Gt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function tn(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function nn(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 rn(e){return e%400==0||e%4==0&&e%100!=0}const an=[31,28,31,30,31,30,31,31,30,31,30,31],on=[31,29,31,30,31,30,31,31,30,31,30,31];function sn(e,t,n){const r=me(),a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=q(e),i=o.getDay(),s=7-a;return K(o,t<0||t>6?t-(i+s)%7:((t%7+7)%7+s)%7-(i+s)%7)}function ln(e,t){const n=q(e),r=function(e){let t=q(e).getDay();return 0===t&&(t=7),t}(n);return K(n,t-r)}const cn={G:new class extends xt{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 xt{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 zt($t(4,e),r);case"yo":return zt(n.ordinalNumber(e,{unit:"year"}),r);default:return zt($t(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=nn(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 xt{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return zt($t(4,e),r);case"Yo":return zt(n.ordinalNumber(e,{unit:"year"}),r);default:return zt($t(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const a=Pe(e,r);if(n.isTwoDigitYear){const t=nn(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 xt{priority=130;parse(e,t){return en("R"===t?4:t.length,e)}set(e,t,n){const r=Z(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ee(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends xt{priority=130;parse(e,t){return en("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 xt{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return $t(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 xt{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return $t(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 xt{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 zt(Gt(St,e),r);case"MM":return zt($t(2,e),r);case"Mo":return zt(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 xt{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return zt(Gt(St,e),r);case"LL":return zt($t(2,e),r);case"Lo":return zt(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 xt{priority=100;parse(e,t,n){switch(t){case"w":return Gt(_t,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return $t(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return Me(function(e,t,n){const r=q(e),a=Te(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 xt{priority=100;parse(e,t,n){switch(t){case"I":return Gt(_t,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return $t(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return Ee(function(e,t){const n=q(e),r=Ne(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 xt{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return Gt(Mt,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return $t(t.length,e)}}validate(e,t){const n=rn(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=on[r]:t>=1&&t<=an[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 xt{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return Gt(Et,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return $t(t.length,e)}}validate(e,t){return rn(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 xt{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=sn(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends xt{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 zt($t(t.length,e),a);case"eo":return zt(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=sn(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 xt{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 zt($t(t.length,e),a);case"co":return zt(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=sn(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 xt{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return $t(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return zt(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 zt(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return zt(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return zt(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=ln(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 xt{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(tn(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends xt{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(tn(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends xt{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(tn(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends xt{priority=70;parse(e,t,n){switch(t){case"h":return Gt(At,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return $t(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 xt{priority=70;parse(e,t,n){switch(t){case"H":return Gt(Nt,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return $t(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 xt{priority=70;parse(e,t,n){switch(t){case"K":return Gt(Tt,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return $t(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 xt{priority=70;parse(e,t,n){switch(t){case"k":return Gt(Pt,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return $t(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 xt{priority=60;parse(e,t,n){switch(t){case"m":return Gt(Lt,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return $t(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 xt{priority=50;parse(e,t,n){switch(t){case"s":return Gt(Ht,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return $t(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 xt{priority=30;parse(e,t){return zt($t(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 xt{priority=10;parse(e,t){switch(t){case"X":return Xt(Zt,e);case"XX":return Xt(Kt,e);case"XXXX":return Xt(Qt,e);case"XXXXX":return Xt(Ut,e);default:return Xt(jt,e)}}set(e,t,n){return t.timestampIsSet?e:Z(e,e.getTime()-ae(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends xt{priority=10;parse(e,t){switch(t){case"x":return Xt(Zt,e);case"xx":return Xt(Kt,e);case"xxxx":return Xt(Qt,e);case"xxxxx":return Xt(Ut,e);default:return Xt(jt,e)}}set(e,t,n){return t.timestampIsSet?e:Z(e,e.getTime()-ae(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends xt{priority=40;parse(e){return Jt(e)}set(e,t,n){return[Z(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends xt{priority=20;parse(e){return Jt(e)}set(e,t,n){return[Z(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},un=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pn=/^'([^]*?)'?$/,mn=/''/g,hn=/\S/,fn=/[a-zA-Z]/;function gn(e,t,n,r){const a=Object.assign({},me()),o=r?.locale??a.locale??xe,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?q(n):Z(n,NaN);const l={firstWeekContainsDate:i,weekStartsOn:s,locale:o},c=[new Dt],u=t.match(dn).map((e=>{const t=e[0];if(t in Qe){return(0,Qe[t])(e,o.formatLong)}return e})).join("").match(un),d=[];for(let a of u){!r?.useAdditionalWeekYearTokens&&Xe(a)&&Je(a,t,e),!r?.useAdditionalDayOfYearTokens&&Ge(a)&&Je(a,t,e);const i=a[0],s=cn[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 Z(n,NaN);c.push(r.setter),e=r.rest}else{if(i.match(fn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===a?a="'":"'"===i&&(a=a.match(pn)[1].replace(mn,"'")),0!==e.indexOf(a))return Z(n,NaN);e=e.slice(a.length)}}if(e.length>0&&hn.test(e))return Z(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=q(n);if(isNaN(m.getTime()))return Z(n,NaN);const h={};for(const e of p){if(!e.validate(m,l))return Z(n,NaN);const t=e.set(m,h,l);Array.isArray(t)?(m=t[0],Object.assign(h,t[1])):m=t}return Z(n,m)}function vn(e,t){const n=t?.additionalDigits??2,r=function(e){const t={},n=e.split(wn.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],wn.timeZoneDelimiter.test(t.date)&&(t.date=e.split(wn.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=wn.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=kn(n[1]),o=kn(n[2])-1,i=kn(n[3]),s=kn(n[4]),l=kn(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<=(xn[t]||(Sn(e)?29:28))}(t,o,i)&&function(e,t){return t>=1&&t<=(Sn(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(yn);if(!t)return NaN;const n=Dn(t[1]),r=Dn(t[2]),a=Dn(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*G+r*z+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(Cn);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*G+a*z)}(r.timezone),isNaN(i)?new Date(NaN):new Date(o+s+i)}const wn={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},bn=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,yn=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Cn=/^([+-])(\d{2})(?::?(\d{2}))?$/;function kn(e){return e?parseInt(e):1}function Dn(e){return e&&parseFloat(e.replace(",","."))||0}const xn=[31,null,31,30,31,30,31,31,30,31,30,31];function Sn(e){return e%400==0||e%4==0&&e%100!=0}function Mn(e,t){const n=q(e),r=n.getFullYear(),a=n.getDate(),o=Z(e,0);o.setFullYear(r,t,15),o.setHours(0,0,0,0);const i=function(e){const t=q(e),n=t.getFullYear(),r=t.getMonth(),a=Z(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 En(e,t){const n=q(e);return n.setHours(t),n}function _n(e,t){const n=q(e);return n.setMinutes(t),n}function Nn(e,t){const n=q(e),r=t-(Math.trunc(n.getMonth()/3)+1);return Mn(n,n.getMonth()+3*r)}function Pn(e,t){const n=q(e);return n.setSeconds(t),n}function Tn(e,t){const n=q(e);return isNaN(+n)?Z(e,NaN):(n.setFullYear(t),n)}function An(e){const t=q(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Ln(e,t){return J(e,-t)}function Hn(e,t){return $(e,-t)}function Yn(e,t){return te(e,-t)}function On(e,t){return ne(e,-t)}function Rn(){return"undefined"!=typeof window}function In(e){return Wn(e)?(e.nodeName||"").toLowerCase():"#document"}function Bn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Fn(e){var t;return null==(t=(Wn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Wn(e){return!!Rn()&&(e instanceof Node||e instanceof Bn(e).Node)}function Vn(e){return!!Rn()&&(e instanceof Element||e instanceof Bn(e).Element)}function qn(e){return!!Rn()&&(e instanceof HTMLElement||e instanceof Bn(e).HTMLElement)}function Zn(e){return!(!Rn()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Bn(e).ShadowRoot)}function Kn(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Xn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function Qn(e){return["table","td","th"].includes(In(e))}function jn(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Un(e){const t=zn(),n=Vn(e)?Xn(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 zn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Gn(e){return["html","body","#document"].includes(In(e))}function Xn(e){return Bn(e).getComputedStyle(e)}function Jn(e){return Vn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $n(e){if("html"===In(e))return e;const t=e.assignedSlot||e.parentNode||Zn(e)&&e.host||Fn(e);return Zn(t)?t.host:t}function er(e){const t=$n(e);return Gn(t)?e.ownerDocument?e.ownerDocument.body:e.body:qn(t)&&Kn(t)?t:er(t)}function tr(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=er(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=Bn(a);if(o){const e=nr(i);return t.concat(i,i.visualViewport||[],Kn(a)?a:[],e&&n?tr(e):[])}return t.concat(a,tr(a,[],n))}function nr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const rr=Math.min,ar=Math.max,or=Math.round,ir=Math.floor,sr=e=>({x:e,y:e}),lr={left:"right",right:"left",bottom:"top",top:"bottom"},cr={start:"end",end:"start"};function ur(e,t,n){return ar(e,rr(t,n))}function dr(e,t){return"function"==typeof e?e(t):e}function pr(e){return e.split("-")[0]}function mr(e){return e.split("-")[1]}function hr(e){return"y"===e?"height":"width"}function fr(e){return["top","bottom"].includes(pr(e))?"y":"x"}function gr(e){return"x"===fr(e)?"y":"x"}function vr(e){return e.replace(/start|end/g,(e=>cr[e]))}function wr(e){return e.replace(/left|right|bottom|top/g,(e=>lr[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 yr(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 Cr(e,t,n){let{reference:r,floating:a}=e;const o=fr(t),i=gr(t),s=hr(i),l=pr(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(mr(t)){case"start":m[i]-=p*(n&&c?-1:1);break;case"end":m[i]+=p*(n&&c?-1:1)}return m}function kr(e){const t=Xn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=qn(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=or(n)!==o||or(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function Dr(e){return Vn(e)?e:e.contextElement}function xr(e){const t=Dr(e);if(!qn(t))return sr(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=kr(t);let i=(o?or(n.width):n.width)/r,s=(o?or(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Sr=sr(0);function Mr(e){const t=Bn(e);return zn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Sr}function Er(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=Dr(e);let i=sr(1);t&&(r?Vn(r)&&(i=xr(r)):i=xr(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Bn(e))&&t}(o,n,r)?Mr(o):sr(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=Bn(o),t=r&&Vn(r)?Bn(r):r;let n=e,a=nr(n);for(;a&&r&&t!==n;){const e=xr(a),t=a.getBoundingClientRect(),r=Xn(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=Bn(a),a=nr(n)}}return yr({width:u,height:d,x:l,y:c})}function _r(e,t){const n=Jn(e).scrollLeft;return t?t.left+n:Er(Fn(e)).left+n}function Nr(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Bn(e),r=Fn(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=zn();(!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=Fn(e),n=Jn(e),r=e.ownerDocument.body,a=ar(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ar(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+_r(e);const s=-n.scrollTop;return"rtl"===Xn(r).direction&&(i+=ar(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}(Fn(e));else if(Vn(t))r=function(e,t){const n=Er(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=qn(e)?xr(e):sr(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 yr(r)}function Pr(e,t){const n=$n(e);return!(n===t||!Vn(n)||Gn(n))&&("fixed"===Xn(n).position||Pr(n,t))}function Tr(e,t,n){const r=qn(t),a=Fn(t),o="fixed"===n,i=Er(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=sr(0);if(r||!r&&!o)if(("body"!==In(t)||Kn(a))&&(s=Jn(t)),r){const e=Er(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&(l.x=_r(a));let c=0,u=0;if(a&&!r&&!o){const e=a.getBoundingClientRect();u=e.top+s.scrollTop,c=e.left+s.scrollLeft-_r(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 Ar(e){return"static"===Xn(e).position}function Lr(e,t){if(!qn(e)||"fixed"===Xn(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Fn(e)===n&&(n=n.ownerDocument.body),n}function Hr(e,t){const n=Bn(e);if(jn(e))return n;if(!qn(e)){let t=$n(e);for(;t&&!Gn(t);){if(Vn(t)&&!Ar(t))return t;t=$n(t)}return n}let r=Lr(e,t);for(;r&&Qn(r)&&Ar(r);)r=Lr(r,t);return r&&Gn(r)&&Ar(r)&&!Un(r)?n:r||function(e){let t=$n(e);for(;qn(t)&&!Gn(t);){if(Un(t))return t;if(jn(t))return null;t=$n(t)}return null}(e)||n}const Yr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o="fixed"===a,i=Fn(r),s=!!t&&jn(t.floating);if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=sr(1);const u=sr(0),d=qn(r);if((d||!d&&!o)&&(("body"!==In(r)||Kn(i))&&(l=Jn(r)),qn(r))){const e=Er(r);c=xr(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:Fn,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?jn(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=tr(e,[],!1).filter((e=>Vn(e)&&"body"!==In(e))),a=null;const o="fixed"===Xn(e).position;let i=o?$n(e):e;for(;Vn(i)&&!Gn(i);){const t=Xn(i),n=Un(i);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||Kn(i)&&!n&&Pr(e,i))?r=r.filter((e=>e!==i)):a=t,i=$n(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=Nr(t,n,a);return e.top=ar(r.top,e.top),e.right=rr(r.right,e.right),e.bottom=rr(r.bottom,e.bottom),e.left=ar(r.left,e.left),e}),Nr(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Hr,getElementRects:async function(e){const t=this.getOffsetParent||Hr,n=this.getDimensions,r=await n(e.floating);return{reference:Tr(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}=kr(e);return{width:t,height:n}},getScale:xr,isElement:Vn,isRTL:function(e){return"rtl"===Xn(e).direction}};function Or(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=Dr(e),u=a||o?[...c?tr(c):[],...tr(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=Fn(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:-ir(u)+"px "+-ir(a.clientWidth-(c+d))+"px "+-ir(a.clientHeight-(u+p))+"px "+-ir(c)+"px",threshold:ar(0,rr(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?Er(e):null;return l&&function t(){const r=Er(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 Rr=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=pr(n),s=mr(n),l="y"===fr(n),c=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,d=dr(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}}}}},Ir=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}=dr(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const v=pr(a),w=fr(s),b=pr(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),C=p||(b||!f?[wr(s)]:function(e){const t=wr(e);return[vr(e),t,vr(t)]}(s)),k="none"!==h;!p&&k&&C.push(...function(e,t,n,r){const a=mr(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[]}}(pr(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(vr)))),o}(s,f,h,y));const D=[s,...C],x=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}=dr(t,e),h=br(m),f=s[p?"floating"===d?"reference":"floating":d],g=yr(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)),b=await(null==o.isElement?void 0:o.isElement(w))&&await(null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},y=yr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:w,strategy:l}):v);return{top:(g.top-y.top+h.top)/b.y,bottom:(y.bottom-g.bottom+h.bottom)/b.y,left:(g.left-y.left+h.left)/b.x,right:(y.right-g.right+h.right)/b.x}}(t,g),S=[];let M=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&S.push(x[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=mr(e),a=gr(e),o=hr(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=wr(i)),[i,wr(i)]}(a,i,y);S.push(x[e[0]],x[e[1]])}if(M=[...M,{placement:a,overflows:S}],!S.every((e=>e<=0))){var E,_;const e=((null==(E=o.flip)?void 0:E.index)||0)+1,t=D[e];if(t)return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(_=M.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:_.placement;if(!n)switch(m){case"bestFit":{var N;const e=null==(N=M.filter((e=>{if(k){const t=fr(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{}}}},Br=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}=dr(e,t)||{};if(null==c)return{};const d=br(u),p={x:n,y:r},m=gr(a),h=hr(m),f=await i.getDimensions(c),g="y"===m,v=g?"top":"left",w=g?"bottom":"right",b=g?"clientHeight":"clientWidth",y=o.reference[h]+o.reference[m]-p[m]-o.floating[h],C=p[m]-o.reference[m],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let D=k?k[b]:0;D&&await(null==i.isElement?void 0:i.isElement(k))||(D=s.floating[b]||o.floating[h]);const x=y/2-C/2,S=D/2-f[h]/2-1,M=rr(d[v],S),E=rr(d[w],S),_=M,N=D-f[h]-E,P=D/2-f[h]/2+x,T=ur(_,P,N),A=!l.arrow&&null!=mr(a)&&P!==T&&o.reference[h]/2-(P<_?M:E)-f[h]/2<0,L=A?P<_?P-_:P-N:0;return{[m]:p[m]+L,data:{[m]:T,centerOffset:P-T-L,...A&&{alignmentOffset:L}},reset:A}}}),Fr=(e,t,n)=>{const r=new Map,a={platform:Yr,...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}=Cr(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:b}=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}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):b.rects),({x:u,y:d}=Cr(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:m}})(e,t,{...a,platform:o})};var Wr="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function Vr(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(!Vr(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)&&!Vr(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function qr(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zr(e,t){const n=qr(e);return Math.round(t*n)/n}function Kr(e){const t=r.useRef(e);return Wr((()=>{t.current=e})),t}const Qr=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?Br({element:n.current,padding:r}).fn(t):{}:n?Br({element:n,padding:r}).fn(t):{};var a}}),jr=(e,t)=>({...Rr(e),options:[e,t]}),Ur=(e,t)=>({...Qr(e),options:[e,t]}),zr={...r},Gr=zr.useInsertionEffect||(e=>e());var Xr="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function Jr(){return Jr=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},Jr.apply(this,arguments)}let $r=!1,ea=0;const ta=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ea++;const na=zr.useId||function(){const[e,t]=r.useState((()=>$r?ta():void 0));return Xr((()=>{null==e&&t(ta())}),[]),r.useEffect((()=>{$r=!0}),[]),e};let ra;"production"!==process.env.NODE_ENV&&(ra=new Set);const aa=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=ra)&&e.has(a)||(null==(o=ra)||o.add(a),console.warn(a))}("The `ref` prop is required for `FloatingArrow`."));const v=na(),[w,b]=r.useState(!1);if(Xr((()=>{if(!a)return;"rtl"===Xn(a).direction&&b(!0)}),[a]),!a)return null;const[y,C]=n.split("-"),k="top"===y||"bottom"===y;let D=d;(k&&null!=i&&i.x||!k&&null!=i&&i.y)&&(D=null);const x=2*u,S=x/2,M=s/2*(c/-8+1),E=l/2*c/4,_=!!m,N=D&&"end"===C?"bottom":"top";let P=D&&"end"===C?"right":"left";D&&w&&(P="end"===C?"left":"right");const T=null!=(null==o?void 0:o.x)?D||o.x:"",A=null!=(null==o?void 0:o.y)?D||o.y:"",L=m||"M0,0 H"+s+" L"+(s-M)+","+(l-E)+" Q"+s/2+","+l+" "+M+","+(l-E)+" Z",H={top:_?"rotate(180deg)":"",left:_?"rotate(90deg)":"rotate(-90deg)",bottom:_?"":"rotate(180deg)",right:_?"rotate(-90deg)":"rotate(90deg)"}[y];return r.createElement("svg",Jr({},g,{"aria-hidden":!0,ref:t,width:_?s:s+x,height:s,viewBox:"0 0 "+s+" "+(l>s?l:s),style:{position:"absolute",pointerEvents:"none",[P]:T,[N]:A,[y]:k||_?"100%":"calc(100% - "+x/2+"px)",transform:[H,h].filter((e=>!!e)).join(" "),...f}}),x>0&&r.createElement("path",{clipPath:"url(#"+v+")",fill:"none",stroke:p,strokeWidth:x+(m?0:1),d:L}),r.createElement("path",{stroke:x&&!m?g.fill:"none",d:L}),r.createElement("clipPath",{id:v},r.createElement("rect",{x:-S,y:S*(_?-1:1),width:s+x,height:s})))}));const oa=r.createContext(null),ia=r.createContext(null),sa=()=>{var e;return(null==(e=r.useContext(oa))?void 0:e.id)||null},la=()=>r.useContext(ia);function ca(e){const{open:t=!1,onOpenChange:n,elements:a}=e,o=na(),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!=sa();if("production"!==process.env.NODE_ENV){const e=a.reference;e&&!Vn(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=ra)&&e.has(a)||(null==(o=ra)||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 Gr((()=>{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 ua(e){void 0===e&&(e={});const{nodeId:t}=e,n=ca({...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=la();Xr((()=>{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);Vr(h,o)||f(o);const[g,v]=r.useState(null),[w,b]=r.useState(null),y=r.useCallback((e=>{e!==x.current&&(x.current=e,v(e))}),[]),C=r.useCallback((e=>{e!==S.current&&(S.current=e,b(e))}),[]),k=s||g,D=l||w,x=r.useRef(null),S=r.useRef(null),M=r.useRef(p),E=null!=u,_=Kr(u),N=Kr(i),P=Kr(d),T=r.useCallback((()=>{if(!x.current||!S.current)return;const e={placement:t,strategy:n,middleware:h};N.current&&(e.platform=N.current),Fr(x.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};A.current&&!Vr(M.current,t)&&(M.current=t,a.flushSync((()=>{m(t)})))}))}),[h,t,n,N,P]);Wr((()=>{!1===d&&M.current.isPositioned&&(M.current.isPositioned=!1,m((e=>({...e,isPositioned:!1}))))}),[d]);const A=r.useRef(!1);Wr((()=>(A.current=!0,()=>{A.current=!1})),[]),Wr((()=>{if(k&&(x.current=k),D&&(S.current=D),k&&D){if(_.current)return _.current(k,D,T);T()}}),[k,D,T,_,E]);const L=r.useMemo((()=>({reference:x,floating:S,setReference:y,setFloating:C})),[y,C]),H=r.useMemo((()=>({reference:k,floating:D})),[k,D]),Y=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!H.floating)return e;const t=Zr(H.floating,p.x),r=Zr(H.floating,p.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...qr(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,H.floating,p.x,p.y]);return r.useMemo((()=>({...p,update:T,refs:L,elements:H,floatingStyles:Y})),[p,T,L,H,Y])}({...e,elements:{...i,...c&&{reference:c}}}),f=r.useCallback((e=>{const t=Vn(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;u(t),h.refs.setReference(t)}),[h.refs]),g=r.useCallback((e=>{(Vn(e)||null===e)&&(p.current=e,l(e)),(Vn(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!Vn(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]),b=r.useMemo((()=>({...h,...o,refs:v,elements:w,nodeId:t})),[h,v,w,t,o]);return Xr((()=>{o.dataRef.current.floatingContext=b;const e=null==m?void 0:m.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),r.useMemo((()=>({...h,context:b,refs:v,elements:w})),[h,v,w,b])}
|
|
12
12
|
/*!
|
|
13
13
|
react-datepicker v7.4.0
|
|
14
14
|
https://github.com/Hacker0x01/react-datepicker
|