@adyen/bento-vue2 1.86.0 → 1.87.0
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/@types/index.d.ts +1271 -1216
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/anchor-scroller.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/anchor-scroller.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-group.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/input-field-phone-number.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/rich-text-editor.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.Dnkt4yn7.js → action-bar.ChMlt59Z.js} +4 -4
- package/dist/chunks/{action-bar.Dnkt4yn7.js.map → action-bar.ChMlt59Z.js.map} +1 -1
- package/dist/chunks/{ai-tag.s8TECgn_.js → ai-tag.D5fCswAm.js} +2 -2
- package/dist/chunks/{ai-tag.s8TECgn_.js.map → ai-tag.D5fCswAm.js.map} +1 -1
- package/dist/chunks/anchor-scroller.Cb22EJiL.js +177 -0
- package/dist/chunks/{anchor-scroller.3_idPubO.js.map → anchor-scroller.Cb22EJiL.js.map} +1 -1
- package/dist/chunks/{base-modal.09nAcnF_.js → base-modal.CUSvvYnk.js} +14 -14
- package/dist/chunks/{base-modal.09nAcnF_.js.map → base-modal.CUSvvYnk.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.C8tSTxrm.js → button-actions-with-menu.D14S1pym.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.C8tSTxrm.js.map → button-actions-with-menu.D14S1pym.js.map} +1 -1
- package/dist/chunks/{button-actions.VSc47LLH.js → button-actions.DyPS54Yi.js} +134 -132
- package/dist/chunks/button-actions.DyPS54Yi.js.map +1 -0
- package/dist/chunks/{calendar.DiXkjQDP.js → calendar.BNg7mSj5.js} +398 -407
- package/dist/chunks/calendar.BNg7mSj5.js.map +1 -0
- package/dist/chunks/{card.BdjdBN36.js → card.9oGLUzev.js} +2 -2
- package/dist/chunks/{card.BdjdBN36.js.map → card.9oGLUzev.js.map} +1 -1
- package/dist/chunks/{checkbox-group.d6VQvZL7.js → checkbox-group.BtsDJN9I.js} +22 -22
- package/dist/chunks/checkbox-group.BtsDJN9I.js.map +1 -0
- package/dist/chunks/{checkbox.ClFNfhNh.js → checkbox.Dxvh9si9.js} +19 -22
- package/dist/chunks/checkbox.Dxvh9si9.js.map +1 -0
- package/dist/chunks/{code-snippet.DBNJgt1j.js → code-snippet.CaAEHdBl.js} +4 -4
- package/dist/chunks/{code-snippet.DBNJgt1j.js.map → code-snippet.CaAEHdBl.js.map} +1 -1
- package/dist/chunks/constructNow.CIc7d13I.js +8 -0
- package/dist/chunks/{constructNow.B8T1ljs6.js.map → constructNow.CIc7d13I.js.map} +1 -1
- package/dist/chunks/{controls-group.HUWlAOhG.js → controls-group.BCKGkHVl.js} +23 -28
- package/dist/chunks/controls-group.BCKGkHVl.js.map +1 -0
- package/dist/chunks/{copy.BXykYfg0.js → copy.DSNuoLZf.js} +3 -3
- package/dist/chunks/{copy.BXykYfg0.js.map → copy.DSNuoLZf.js.map} +1 -1
- package/dist/chunks/{dashboard-section.Cw2Ima3U.js → dashboard-section.DIesvnBa.js} +3 -3
- package/dist/chunks/{dashboard-section.Cw2Ima3U.js.map → dashboard-section.DIesvnBa.js.map} +1 -1
- package/dist/chunks/{dashed-underline.Dfw7cJ-9.js → dashed-underline.DauOBhSD.js} +3 -3
- package/dist/chunks/{dashed-underline.Dfw7cJ-9.js.map → dashed-underline.DauOBhSD.js.map} +1 -1
- package/dist/chunks/{data-grid-template.6LR2Jqka.js → data-grid-template.T-6_zLby.js} +3 -3
- package/dist/chunks/{data-grid-template.6LR2Jqka.js.map → data-grid-template.T-6_zLby.js.map} +1 -1
- package/dist/chunks/{data-grid.B_uZEPDW.js → data-grid.ZjYQaN9_.js} +695 -695
- package/dist/chunks/{data-grid.B_uZEPDW.js.map → data-grid.ZjYQaN9_.js.map} +1 -1
- package/dist/chunks/date-picker.BLOqU7Z9.js +173 -0
- package/dist/chunks/date-picker.BLOqU7Z9.js.map +1 -0
- package/dist/chunks/date-range-picker.CJexeNJg.js +900 -0
- package/dist/chunks/date-range-picker.CJexeNJg.js.map +1 -0
- package/dist/chunks/{de.DvtL0g75.js → de.BJvo6njq.js} +2 -2
- package/dist/chunks/{de.DvtL0g75.js.map → de.BJvo6njq.js.map} +1 -1
- package/dist/chunks/{dialog-page.DA6E6qma.js → dialog-page.4deowaF2.js} +2 -2
- package/dist/chunks/{dialog-page.DA6E6qma.js.map → dialog-page.4deowaF2.js.map} +1 -1
- package/dist/chunks/{differenceInMonths.BR4Z2HIa.js → differenceInMonths.CIYECBxK.js} +7 -7
- package/dist/chunks/{differenceInMonths.BR4Z2HIa.js.map → differenceInMonths.CIYECBxK.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.5WjhJWdh.js → dropdown-default-textbox.CKnrDQ2z.js} +18 -16
- package/dist/chunks/dropdown-default-textbox.CKnrDQ2z.js.map +1 -0
- package/dist/chunks/{dropdown-tag.BnMuMIDk.js → dropdown-tag.DSCZALNp.js} +3 -3
- package/dist/chunks/{dropdown-tag.BnMuMIDk.js.map → dropdown-tag.DSCZALNp.js.map} +1 -1
- package/dist/chunks/{dropdown.DDPfKc74.js → dropdown.ET_mq1_P.js} +8 -8
- package/dist/chunks/{dropdown.DDPfKc74.js.map → dropdown.ET_mq1_P.js.map} +1 -1
- package/dist/chunks/{en-GB.DCGuCmAv.js → en-GB.C3-QUpva.js} +2 -2
- package/dist/chunks/{en-GB.DCGuCmAv.js.map → en-GB.C3-QUpva.js.map} +1 -1
- package/dist/chunks/{en-US.BZii9jNW.js → en-US.YeSsZuOc.js} +150 -100
- package/dist/chunks/en-US.YeSsZuOc.js.map +1 -0
- package/dist/chunks/{error-message.VenUl2OK.js → error-message.CYfT0Qsi.js} +19 -22
- package/dist/chunks/error-message.CYfT0Qsi.js.map +1 -0
- package/dist/chunks/{es.bz0mzkMq.js → es.DyUjjSL8.js} +2 -2
- package/dist/chunks/{es.bz0mzkMq.js.map → es.DyUjjSL8.js.map} +1 -1
- package/dist/chunks/{file-uploader.BU1V40qK.js → file-uploader.BSX-zpyP.js} +377 -353
- package/dist/chunks/file-uploader.BSX-zpyP.js.map +1 -0
- package/dist/chunks/filter-bar.DkKvGUEm.js +3229 -0
- package/dist/chunks/filter-bar.DkKvGUEm.js.map +1 -0
- package/dist/chunks/{focus-trap.DMc1wL3A.js → focus-trap.DRqjHzt6.js} +2 -2
- package/dist/chunks/{focus-trap.DMc1wL3A.js.map → focus-trap.DRqjHzt6.js.map} +1 -1
- package/dist/chunks/{footer-actions.z-api8J_.js → footer-actions.Dq82H1Oc.js} +2 -2
- package/dist/chunks/{footer-actions.z-api8J_.js.map → footer-actions.Dq82H1Oc.js.map} +1 -1
- package/dist/chunks/form-layout-title.vF9Bmbre.js +212 -0
- package/dist/chunks/{form-layout-title.Bbq05nMT.js.map → form-layout-title.vF9Bmbre.js.map} +1 -1
- package/dist/chunks/{match.CMBZxEs9.js → fr.JD_4GwS8.js} +98 -61
- package/dist/chunks/fr.JD_4GwS8.js.map +1 -0
- package/dist/chunks/{header-meta.CuMQSsOm.js → header-meta.ByA0tkZw.js} +88 -94
- package/dist/chunks/header-meta.ByA0tkZw.js.map +1 -0
- package/dist/chunks/{header-with-views.DX8EXLMJ.js → header-with-views.DLoIc0yO.js} +9 -9
- package/dist/chunks/{header-with-views.DX8EXLMJ.js.map → header-with-views.DLoIc0yO.js.map} +1 -1
- package/dist/chunks/{header.YECm2GAh.js → header.BG6XUNEs.js} +3 -3
- package/dist/chunks/{header.YECm2GAh.js.map → header.BG6XUNEs.js.map} +1 -1
- package/dist/chunks/{index.BkJqgYF1.js → index.CwzYJHw2.js} +204 -197
- package/dist/chunks/{index.BkJqgYF1.js.map → index.CwzYJHw2.js.map} +1 -1
- package/dist/chunks/{info-icon.DS9ax8ZD.js → info-icon.BF8KxU-k.js} +3 -3
- package/dist/chunks/{info-icon.DS9ax8ZD.js.map → info-icon.BF8KxU-k.js.map} +1 -1
- package/dist/chunks/{input-field-password.DrI6eF5u.js → input-field-password.TIzrVzR6.js} +6 -6
- package/dist/chunks/{input-field-password.DrI6eF5u.js.map → input-field-password.TIzrVzR6.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.Buh4x3pJ.js → input-field-phone-number.s2fP7BVR.js} +42 -42
- package/dist/chunks/{input-field-phone-number.Buh4x3pJ.js.map → input-field-phone-number.s2fP7BVR.js.map} +1 -1
- package/dist/chunks/{input-field.NEKXqT4R.js → input-field.CSCJTxk1.js} +10 -10
- package/dist/chunks/input-field.CSCJTxk1.js.map +1 -0
- package/dist/chunks/{inspector.BomNgVb-.js → inspector.DgI3voTk.js} +3 -3
- package/dist/chunks/{inspector.BomNgVb-.js.map → inspector.DgI3voTk.js.map} +1 -1
- package/dist/chunks/isSameWeek.CzBCmu7d.js +14 -0
- package/dist/chunks/{isSameWeek.DjeUtLwI.js.map → isSameWeek.CzBCmu7d.js.map} +1 -1
- package/dist/chunks/{it.DIafuXtH.js → it.BlUnV-yA.js} +3 -3
- package/dist/chunks/{it.DIafuXtH.js.map → it.BlUnV-yA.js.map} +1 -1
- package/dist/chunks/{ja.Cm9tJMi2.js → ja.nUwDmVf2.js} +8 -8
- package/dist/chunks/{ja.Cm9tJMi2.js.map → ja.nUwDmVf2.js.map} +1 -1
- package/dist/chunks/{layout-row.BxuMJU4E.js → layout-row.B_IQC9Nq.js} +2 -2
- package/dist/chunks/{layout-row.BxuMJU4E.js.map → layout-row.B_IQC9Nq.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.Cv3y0TvQ.js → listbox-option-tag.BhPVuAjJ.js} +2 -2
- package/dist/chunks/{listbox-option-tag.Cv3y0TvQ.js.map → listbox-option-tag.BhPVuAjJ.js.map} +1 -1
- package/dist/chunks/modal-fullscreen.DJtDO8TR.js +235 -0
- package/dist/chunks/modal-fullscreen.DJtDO8TR.js.map +1 -0
- package/dist/chunks/{modal.DOR8c0gy.js → modal.BbsIM3qp.js} +4 -4
- package/dist/chunks/{modal.DOR8c0gy.js.map → modal.BbsIM3qp.js.map} +1 -1
- package/dist/chunks/{pagination.wuEIlDcq.js → pagination.iN0eYByB.js} +157 -138
- package/dist/chunks/pagination.iN0eYByB.js.map +1 -0
- package/dist/chunks/popover.types.hA13DZPg.js +6 -0
- package/dist/chunks/{popover.types.DkiRUQ4Z.js.map → popover.types.hA13DZPg.js.map} +1 -1
- package/dist/chunks/{popper-container.D4dworD4.js → popper-container.C_n9Ds1W.js} +2 -2
- package/dist/chunks/{popper-container.D4dworD4.js.map → popper-container.C_n9Ds1W.js.map} +1 -1
- package/dist/chunks/{promo-banner.bjMDm76T.js → promo-banner.BQreywWK.js} +2 -2
- package/dist/chunks/{promo-banner.bjMDm76T.js.map → promo-banner.BQreywWK.js.map} +1 -1
- package/dist/chunks/{pt-BR.CiGdfP45.js → pt-BR.BCU2Hj36.js} +2 -2
- package/dist/chunks/{pt-BR.CiGdfP45.js.map → pt-BR.BCU2Hj36.js.map} +1 -1
- package/dist/chunks/{radio-group.DKRxfGtE.js → radio-group.5ZxqWguJ.js} +6 -6
- package/dist/chunks/radio-group.5ZxqWguJ.js.map +1 -0
- package/dist/chunks/{rich-text-editor.DiuS9alD.js → rich-text-editor.BJ-FvvNc.js} +132 -132
- package/dist/chunks/{rich-text-editor.DiuS9alD.js.map → rich-text-editor.BJ-FvvNc.js.map} +1 -1
- package/dist/chunks/{search-bar.UVSaoX0h.js → search-bar.GPl6NU_w.js} +3 -3
- package/dist/chunks/{search-bar.UVSaoX0h.js.map → search-bar.GPl6NU_w.js.map} +1 -1
- package/dist/chunks/{secondary-nav.C6ldQMZ2.js → secondary-nav.DMHDxGDq.js} +3 -3
- package/dist/chunks/{secondary-nav.C6ldQMZ2.js.map → secondary-nav.DMHDxGDq.js.map} +1 -1
- package/dist/chunks/{segmented-control.BLnuxgnJ.js → segmented-control.BqIiX9hv.js} +2 -2
- package/dist/chunks/{segmented-control.BLnuxgnJ.js.map → segmented-control.BqIiX9hv.js.map} +1 -1
- package/dist/chunks/{selection-card-group.CqGYskmS.js → selection-card-group.Hol_gJKN.js} +23 -23
- package/dist/chunks/selection-card-group.Hol_gJKN.js.map +1 -0
- package/dist/chunks/{sidepanel.BKE87Uef.js → sidepanel.CSA5e8AF.js} +5 -5
- package/dist/chunks/{sidepanel.BKE87Uef.js.map → sidepanel.CSA5e8AF.js.map} +1 -1
- package/dist/chunks/{startOfWeek.D8Yh4c0G.js → startOfWeek.CXhhX-R7.js} +2 -2
- package/dist/chunks/{startOfWeek.D8Yh4c0G.js.map → startOfWeek.CXhhX-R7.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DRFRap_S.js → structured-list-item.C7W3zYcT.js} +4 -4
- package/dist/chunks/{structured-list-item.DRFRap_S.js.map → structured-list-item.C7W3zYcT.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.OldkhD7S.js → summary-grid.types.nrVagy9s.js} +5 -5
- package/dist/chunks/{summary-grid.types.OldkhD7S.js.map → summary-grid.types.nrVagy9s.js.map} +1 -1
- package/dist/chunks/{tag.Cy3XkSDQ.js → tag.CocLKztJ.js} +2 -2
- package/dist/chunks/{tag.Cy3XkSDQ.js.map → tag.CocLKztJ.js.map} +1 -1
- package/dist/chunks/{textarea.Bm9MZb_W.js → textarea.CpVhEv6I.js} +33 -33
- package/dist/chunks/textarea.CpVhEv6I.js.map +1 -0
- package/dist/chunks/{timeline-item.Cpbm8IUw.js → timeline-item.CSDdHboz.js} +52 -54
- package/dist/chunks/timeline-item.CSDdHboz.js.map +1 -0
- package/dist/chunks/{tooltip.DF11J3k3.js → tooltip.CbsNGnhw.js} +2 -2
- package/dist/chunks/{tooltip.DF11J3k3.js.map → tooltip.CbsNGnhw.js.map} +1 -1
- package/dist/chunks/{tutorial.D5xtZ1Pt.js → tutorial.3dTfBKtZ.js} +4 -4
- package/dist/chunks/{tutorial.D5xtZ1Pt.js.map → tutorial.3dTfBKtZ.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.wn2xnwYG.js → use-cached-selected-values.DiIjmiF_.js} +2 -2
- package/dist/chunks/{use-cached-selected-values.wn2xnwYG.js.map → use-cached-selected-values.DiIjmiF_.js.map} +1 -1
- package/dist/chunks/use-date-input-formatter.Dcjry8op.js +1732 -0
- package/dist/chunks/use-date-input-formatter.Dcjry8op.js.map +1 -0
- package/dist/chunks/{zh-CN.Bw_6j9Cd.js → zh-CN.ChYkuQAR.js} +3 -3
- package/dist/chunks/{zh-CN.Bw_6j9Cd.js.map → zh-CN.ChYkuQAR.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/draggable-handle.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +50 -50
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +11 -11
- package/dist/layout.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +104 -5
- package/package.json +6 -11
- package/dist/chunks/anchor-scroller.3_idPubO.js +0 -178
- package/dist/chunks/button-actions.VSc47LLH.js.map +0 -1
- package/dist/chunks/calendar.DiXkjQDP.js.map +0 -1
- package/dist/chunks/checkbox-group.d6VQvZL7.js.map +0 -1
- package/dist/chunks/checkbox.ClFNfhNh.js.map +0 -1
- package/dist/chunks/constructNow.B8T1ljs6.js +0 -8
- package/dist/chunks/controls-group.HUWlAOhG.js.map +0 -1
- package/dist/chunks/date-input.etw_pFpA.js +0 -20
- package/dist/chunks/date-input.etw_pFpA.js.map +0 -1
- package/dist/chunks/date-picker.CITeN8WH.js +0 -173
- package/dist/chunks/date-picker.CITeN8WH.js.map +0 -1
- package/dist/chunks/date-range-picker.DxVjXxap.js +0 -897
- package/dist/chunks/date-range-picker.DxVjXxap.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.5WjhJWdh.js.map +0 -1
- package/dist/chunks/en-US.BZii9jNW.js.map +0 -1
- package/dist/chunks/error-message.VenUl2OK.js.map +0 -1
- package/dist/chunks/file-uploader.BU1V40qK.js.map +0 -1
- package/dist/chunks/filter-bar.UdXQf_RN.js +0 -3321
- package/dist/chunks/filter-bar.UdXQf_RN.js.map +0 -1
- package/dist/chunks/form-layout-title.Bbq05nMT.js +0 -197
- package/dist/chunks/fr-CA.B1aPU8fp.js +0 -48
- package/dist/chunks/fr-CA.B1aPU8fp.js.map +0 -1
- package/dist/chunks/fr.Dj7wEToe.js +0 -47
- package/dist/chunks/fr.Dj7wEToe.js.map +0 -1
- package/dist/chunks/getTimezoneOffsetInMilliseconds.Tu2wlbTR.js +0 -51
- package/dist/chunks/getTimezoneOffsetInMilliseconds.Tu2wlbTR.js.map +0 -1
- package/dist/chunks/header-meta.CuMQSsOm.js.map +0 -1
- package/dist/chunks/input-field.NEKXqT4R.js.map +0 -1
- package/dist/chunks/isSameWeek.DjeUtLwI.js +0 -14
- package/dist/chunks/ko.Ceaof6EP.js +0 -348
- package/dist/chunks/ko.Ceaof6EP.js.map +0 -1
- package/dist/chunks/match.CMBZxEs9.js.map +0 -1
- package/dist/chunks/modal-fullscreen.6bAjPENL.js +0 -225
- package/dist/chunks/modal-fullscreen.6bAjPENL.js.map +0 -1
- package/dist/chunks/nl.B6vCf2B9.js +0 -327
- package/dist/chunks/nl.B6vCf2B9.js.map +0 -1
- package/dist/chunks/pagination.wuEIlDcq.js.map +0 -1
- package/dist/chunks/popover.types.DkiRUQ4Z.js +0 -6
- package/dist/chunks/radio-group.DKRxfGtE.js.map +0 -1
- package/dist/chunks/selection-card-group.CqGYskmS.js.map +0 -1
- package/dist/chunks/sv.f8EfZjMZ.js +0 -377
- package/dist/chunks/sv.f8EfZjMZ.js.map +0 -1
- package/dist/chunks/textarea.Bm9MZb_W.js.map +0 -1
- package/dist/chunks/timeline-item.Cpbm8IUw.js.map +0 -1
|
@@ -0,0 +1,1732 @@
|
|
|
1
|
+
var re = Object.defineProperty;
|
|
2
|
+
var se = (n, s, e) => s in n ? re(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
|
|
3
|
+
var i = (n, s, e) => se(n, typeof s != "symbol" ? s + "" : s, e);
|
|
4
|
+
import { computed as K } from "vue";
|
|
5
|
+
import { C as ne, p as F, j as ae } from "./calendar.BNg7mSj5.js";
|
|
6
|
+
import { t as Y, c as x, u as z, g as W, v as ie, r as oe, w as ce, k as V, j as ue } from "./en-US.YeSsZuOc.js";
|
|
7
|
+
import { s as M } from "./startOfWeek.CXhhX-R7.js";
|
|
8
|
+
const Z = ne.MONDAY, le = Z, Wt = (n) => ({
|
|
9
|
+
resolvedFirstDayOfWeek: K(() => n.value ?? le ?? Z)
|
|
10
|
+
});
|
|
11
|
+
function _(n, s) {
|
|
12
|
+
return M(n, { ...s, weekStartsOn: 1 });
|
|
13
|
+
}
|
|
14
|
+
function de(n, s) {
|
|
15
|
+
const e = Y(n, s == null ? void 0 : s.in), t = e.getFullYear(), r = x(e, 0);
|
|
16
|
+
r.setFullYear(t + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
17
|
+
const a = _(r), o = x(e, 0);
|
|
18
|
+
o.setFullYear(t, 0, 4), o.setHours(0, 0, 0, 0);
|
|
19
|
+
const c = _(o);
|
|
20
|
+
return e.getTime() >= a.getTime() ? t + 1 : e.getTime() >= c.getTime() ? t : t - 1;
|
|
21
|
+
}
|
|
22
|
+
function fe(n, s) {
|
|
23
|
+
const e = de(n, s), t = x(n, 0);
|
|
24
|
+
return t.setFullYear(e, 0, 4), t.setHours(0, 0, 0, 0), _(t);
|
|
25
|
+
}
|
|
26
|
+
function we(n, s) {
|
|
27
|
+
const e = Y(n, s == null ? void 0 : s.in), t = +_(e) - +fe(e);
|
|
28
|
+
return Math.round(t / z) + 1;
|
|
29
|
+
}
|
|
30
|
+
function j(n, s) {
|
|
31
|
+
var D, O, k, I;
|
|
32
|
+
const e = Y(n, s == null ? void 0 : s.in), t = e.getFullYear(), r = W(), a = (s == null ? void 0 : s.firstWeekContainsDate) ?? ((O = (D = s == null ? void 0 : s.locale) == null ? void 0 : D.options) == null ? void 0 : O.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((I = (k = r.locale) == null ? void 0 : k.options) == null ? void 0 : I.firstWeekContainsDate) ?? 1, o = x((s == null ? void 0 : s.in) || n, 0);
|
|
33
|
+
o.setFullYear(t + 1, 0, a), o.setHours(0, 0, 0, 0);
|
|
34
|
+
const c = M(o, s), d = x((s == null ? void 0 : s.in) || n, 0);
|
|
35
|
+
d.setFullYear(t, 0, a), d.setHours(0, 0, 0, 0);
|
|
36
|
+
const b = M(d, s);
|
|
37
|
+
return +e >= +c ? t + 1 : +e >= +b ? t : t - 1;
|
|
38
|
+
}
|
|
39
|
+
function he(n, s) {
|
|
40
|
+
var c, d, b, D;
|
|
41
|
+
const e = W(), t = (s == null ? void 0 : s.firstWeekContainsDate) ?? ((d = (c = s == null ? void 0 : s.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((D = (b = e.locale) == null ? void 0 : b.options) == null ? void 0 : D.firstWeekContainsDate) ?? 1, r = j(n, s), a = x((s == null ? void 0 : s.in) || n, 0);
|
|
42
|
+
return a.setFullYear(r, 0, t), a.setHours(0, 0, 0, 0), M(a, s);
|
|
43
|
+
}
|
|
44
|
+
function ye(n, s) {
|
|
45
|
+
const e = Y(n, s == null ? void 0 : s.in), t = +M(e, s) - +he(e, s);
|
|
46
|
+
return Math.round(t / z) + 1;
|
|
47
|
+
}
|
|
48
|
+
const B = (n, s) => {
|
|
49
|
+
switch (n) {
|
|
50
|
+
case "P":
|
|
51
|
+
return s.date({ width: "short" });
|
|
52
|
+
case "PP":
|
|
53
|
+
return s.date({ width: "medium" });
|
|
54
|
+
case "PPP":
|
|
55
|
+
return s.date({ width: "long" });
|
|
56
|
+
default:
|
|
57
|
+
return s.date({ width: "full" });
|
|
58
|
+
}
|
|
59
|
+
}, U = (n, s) => {
|
|
60
|
+
switch (n) {
|
|
61
|
+
case "p":
|
|
62
|
+
return s.time({ width: "short" });
|
|
63
|
+
case "pp":
|
|
64
|
+
return s.time({ width: "medium" });
|
|
65
|
+
case "ppp":
|
|
66
|
+
return s.time({ width: "long" });
|
|
67
|
+
default:
|
|
68
|
+
return s.time({ width: "full" });
|
|
69
|
+
}
|
|
70
|
+
}, me = (n, s) => {
|
|
71
|
+
const e = n.match(/(P+)(p+)?/) || [], t = e[1], r = e[2];
|
|
72
|
+
if (!r)
|
|
73
|
+
return B(n, s);
|
|
74
|
+
let a;
|
|
75
|
+
switch (t) {
|
|
76
|
+
case "P":
|
|
77
|
+
a = s.dateTime({ width: "short" });
|
|
78
|
+
break;
|
|
79
|
+
case "PP":
|
|
80
|
+
a = s.dateTime({ width: "medium" });
|
|
81
|
+
break;
|
|
82
|
+
case "PPP":
|
|
83
|
+
a = s.dateTime({ width: "long" });
|
|
84
|
+
break;
|
|
85
|
+
default:
|
|
86
|
+
a = s.dateTime({ width: "full" });
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
return a.replace("{{date}}", B(t, s)).replace("{{time}}", U(r, s));
|
|
90
|
+
}, G = {
|
|
91
|
+
p: U,
|
|
92
|
+
P: me
|
|
93
|
+
}, xe = /^D+$/, be = /^Y+$/, De = ["D", "DD", "YY", "YYYY"];
|
|
94
|
+
function Ye(n) {
|
|
95
|
+
return xe.test(n);
|
|
96
|
+
}
|
|
97
|
+
function Te(n) {
|
|
98
|
+
return be.test(n);
|
|
99
|
+
}
|
|
100
|
+
function X(n, s, e) {
|
|
101
|
+
const t = pe(n, s, e);
|
|
102
|
+
if (console.warn(t), De.includes(n)) throw new RangeError(t);
|
|
103
|
+
}
|
|
104
|
+
function pe(n, s, e) {
|
|
105
|
+
const t = n[0] === "Y" ? "years" : "days of the month";
|
|
106
|
+
return `Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${s}\`) for formatting ${t} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
107
|
+
}
|
|
108
|
+
function ge() {
|
|
109
|
+
return Object.assign({}, W());
|
|
110
|
+
}
|
|
111
|
+
function Me(n, s) {
|
|
112
|
+
const e = Y(n, s == null ? void 0 : s.in).getDay();
|
|
113
|
+
return e === 0 ? 7 : e;
|
|
114
|
+
}
|
|
115
|
+
function ke(n, s) {
|
|
116
|
+
const e = Pe(s) ? new s(0) : x(s, 0);
|
|
117
|
+
return e.setFullYear(n.getFullYear(), n.getMonth(), n.getDate()), e.setHours(
|
|
118
|
+
n.getHours(),
|
|
119
|
+
n.getMinutes(),
|
|
120
|
+
n.getSeconds(),
|
|
121
|
+
n.getMilliseconds()
|
|
122
|
+
), e;
|
|
123
|
+
}
|
|
124
|
+
function Pe(n) {
|
|
125
|
+
var s;
|
|
126
|
+
return typeof n == "function" && ((s = n.prototype) == null ? void 0 : s.constructor) === n;
|
|
127
|
+
}
|
|
128
|
+
const _e = 10;
|
|
129
|
+
class J {
|
|
130
|
+
constructor() {
|
|
131
|
+
i(this, "subPriority", 0);
|
|
132
|
+
}
|
|
133
|
+
validate(s, e) {
|
|
134
|
+
return !0;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
class Oe extends J {
|
|
138
|
+
constructor(s, e, t, r, a) {
|
|
139
|
+
super(), this.value = s, this.validateValue = e, this.setValue = t, this.priority = r, a && (this.subPriority = a);
|
|
140
|
+
}
|
|
141
|
+
validate(s, e) {
|
|
142
|
+
return this.validateValue(s, this.value, e);
|
|
143
|
+
}
|
|
144
|
+
set(s, e, t) {
|
|
145
|
+
return this.setValue(s, e, this.value, t);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
class Ie extends J {
|
|
149
|
+
constructor(e, t) {
|
|
150
|
+
super();
|
|
151
|
+
i(this, "priority", _e);
|
|
152
|
+
i(this, "subPriority", -1);
|
|
153
|
+
this.context = e || ((r) => x(t, r));
|
|
154
|
+
}
|
|
155
|
+
set(e, t) {
|
|
156
|
+
return t.timestampIsSet ? e : x(e, ke(e, this.context));
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
class l {
|
|
160
|
+
run(s, e, t, r) {
|
|
161
|
+
const a = this.parse(s, e, t, r);
|
|
162
|
+
return a ? {
|
|
163
|
+
setter: new Oe(
|
|
164
|
+
a.value,
|
|
165
|
+
this.validate,
|
|
166
|
+
this.set,
|
|
167
|
+
this.priority,
|
|
168
|
+
this.subPriority
|
|
169
|
+
),
|
|
170
|
+
rest: a.rest
|
|
171
|
+
} : null;
|
|
172
|
+
}
|
|
173
|
+
validate(s, e, t) {
|
|
174
|
+
return !0;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
class Ee extends l {
|
|
178
|
+
constructor() {
|
|
179
|
+
super(...arguments);
|
|
180
|
+
i(this, "priority", 140);
|
|
181
|
+
i(this, "incompatibleTokens", ["R", "u", "t", "T"]);
|
|
182
|
+
}
|
|
183
|
+
parse(e, t, r) {
|
|
184
|
+
switch (t) {
|
|
185
|
+
// AD, BC
|
|
186
|
+
case "G":
|
|
187
|
+
case "GG":
|
|
188
|
+
case "GGG":
|
|
189
|
+
return r.era(e, { width: "abbreviated" }) || r.era(e, { width: "narrow" });
|
|
190
|
+
// A, B
|
|
191
|
+
case "GGGGG":
|
|
192
|
+
return r.era(e, { width: "narrow" });
|
|
193
|
+
default:
|
|
194
|
+
return r.era(e, { width: "wide" }) || r.era(e, { width: "abbreviated" }) || r.era(e, { width: "narrow" });
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
set(e, t, r) {
|
|
198
|
+
return t.era = r, e.setFullYear(r, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
const y = {
|
|
202
|
+
month: /^(1[0-2]|0?\d)/,
|
|
203
|
+
// 0 to 12
|
|
204
|
+
date: /^(3[0-1]|[0-2]?\d)/,
|
|
205
|
+
// 0 to 31
|
|
206
|
+
dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
|
|
207
|
+
// 0 to 366
|
|
208
|
+
week: /^(5[0-3]|[0-4]?\d)/,
|
|
209
|
+
// 0 to 53
|
|
210
|
+
hour23h: /^(2[0-3]|[0-1]?\d)/,
|
|
211
|
+
// 0 to 23
|
|
212
|
+
hour24h: /^(2[0-4]|[0-1]?\d)/,
|
|
213
|
+
// 0 to 24
|
|
214
|
+
hour11h: /^(1[0-1]|0?\d)/,
|
|
215
|
+
// 0 to 11
|
|
216
|
+
hour12h: /^(1[0-2]|0?\d)/,
|
|
217
|
+
// 0 to 12
|
|
218
|
+
minute: /^[0-5]?\d/,
|
|
219
|
+
// 0 to 59
|
|
220
|
+
second: /^[0-5]?\d/,
|
|
221
|
+
// 0 to 59
|
|
222
|
+
singleDigit: /^\d/,
|
|
223
|
+
// 0 to 9
|
|
224
|
+
twoDigits: /^\d{1,2}/,
|
|
225
|
+
// 0 to 99
|
|
226
|
+
threeDigits: /^\d{1,3}/,
|
|
227
|
+
// 0 to 999
|
|
228
|
+
fourDigits: /^\d{1,4}/,
|
|
229
|
+
// 0 to 9999
|
|
230
|
+
anyDigitsSigned: /^-?\d+/,
|
|
231
|
+
singleDigitSigned: /^-?\d/,
|
|
232
|
+
// 0 to 9, -0 to -9
|
|
233
|
+
twoDigitsSigned: /^-?\d{1,2}/,
|
|
234
|
+
// 0 to 99, -0 to -99
|
|
235
|
+
threeDigitsSigned: /^-?\d{1,3}/,
|
|
236
|
+
// 0 to 999, -0 to -999
|
|
237
|
+
fourDigitsSigned: /^-?\d{1,4}/
|
|
238
|
+
// 0 to 9999, -0 to -9999
|
|
239
|
+
}, p = {
|
|
240
|
+
basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
|
|
241
|
+
basic: /^([+-])(\d{2})(\d{2})|Z/,
|
|
242
|
+
basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
|
|
243
|
+
extended: /^([+-])(\d{2}):(\d{2})|Z/,
|
|
244
|
+
extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
|
|
245
|
+
};
|
|
246
|
+
function m(n, s) {
|
|
247
|
+
return n && {
|
|
248
|
+
value: s(n.value),
|
|
249
|
+
rest: n.rest
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
function f(n, s) {
|
|
253
|
+
const e = s.match(n);
|
|
254
|
+
return e ? {
|
|
255
|
+
value: parseInt(e[0], 10),
|
|
256
|
+
rest: s.slice(e[0].length)
|
|
257
|
+
} : null;
|
|
258
|
+
}
|
|
259
|
+
function g(n, s) {
|
|
260
|
+
const e = s.match(n);
|
|
261
|
+
if (!e)
|
|
262
|
+
return null;
|
|
263
|
+
if (e[0] === "Z")
|
|
264
|
+
return {
|
|
265
|
+
value: 0,
|
|
266
|
+
rest: s.slice(1)
|
|
267
|
+
};
|
|
268
|
+
const t = e[1] === "+" ? 1 : -1, r = e[2] ? parseInt(e[2], 10) : 0, a = e[3] ? parseInt(e[3], 10) : 0, o = e[5] ? parseInt(e[5], 10) : 0;
|
|
269
|
+
return {
|
|
270
|
+
value: t * (r * ie + a * oe + o * ce),
|
|
271
|
+
rest: s.slice(e[0].length)
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
function S(n) {
|
|
275
|
+
return f(y.anyDigitsSigned, n);
|
|
276
|
+
}
|
|
277
|
+
function h(n, s) {
|
|
278
|
+
switch (n) {
|
|
279
|
+
case 1:
|
|
280
|
+
return f(y.singleDigit, s);
|
|
281
|
+
case 2:
|
|
282
|
+
return f(y.twoDigits, s);
|
|
283
|
+
case 3:
|
|
284
|
+
return f(y.threeDigits, s);
|
|
285
|
+
case 4:
|
|
286
|
+
return f(y.fourDigits, s);
|
|
287
|
+
default:
|
|
288
|
+
return f(new RegExp("^\\d{1," + n + "}"), s);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
function E(n, s) {
|
|
292
|
+
switch (n) {
|
|
293
|
+
case 1:
|
|
294
|
+
return f(y.singleDigitSigned, s);
|
|
295
|
+
case 2:
|
|
296
|
+
return f(y.twoDigitsSigned, s);
|
|
297
|
+
case 3:
|
|
298
|
+
return f(y.threeDigitsSigned, s);
|
|
299
|
+
case 4:
|
|
300
|
+
return f(y.fourDigitsSigned, s);
|
|
301
|
+
default:
|
|
302
|
+
return f(new RegExp("^-?\\d{1," + n + "}"), s);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
function q(n) {
|
|
306
|
+
switch (n) {
|
|
307
|
+
case "morning":
|
|
308
|
+
return 4;
|
|
309
|
+
case "evening":
|
|
310
|
+
return 17;
|
|
311
|
+
case "pm":
|
|
312
|
+
case "noon":
|
|
313
|
+
case "afternoon":
|
|
314
|
+
return 12;
|
|
315
|
+
default:
|
|
316
|
+
return 0;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
function ee(n, s) {
|
|
320
|
+
const e = s > 0, t = e ? s : 1 - s;
|
|
321
|
+
let r;
|
|
322
|
+
if (t <= 50)
|
|
323
|
+
r = n || 100;
|
|
324
|
+
else {
|
|
325
|
+
const a = t + 50, o = Math.trunc(a / 100) * 100, c = n >= a % 100;
|
|
326
|
+
r = n + o - (c ? 100 : 0);
|
|
327
|
+
}
|
|
328
|
+
return e ? r : 1 - r;
|
|
329
|
+
}
|
|
330
|
+
function te(n) {
|
|
331
|
+
return n % 400 === 0 || n % 4 === 0 && n % 100 !== 0;
|
|
332
|
+
}
|
|
333
|
+
class He extends l {
|
|
334
|
+
constructor() {
|
|
335
|
+
super(...arguments);
|
|
336
|
+
i(this, "priority", 130);
|
|
337
|
+
i(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
|
|
338
|
+
}
|
|
339
|
+
parse(e, t, r) {
|
|
340
|
+
const a = (o) => ({
|
|
341
|
+
year: o,
|
|
342
|
+
isTwoDigitYear: t === "yy"
|
|
343
|
+
});
|
|
344
|
+
switch (t) {
|
|
345
|
+
case "y":
|
|
346
|
+
return m(h(4, e), a);
|
|
347
|
+
case "yo":
|
|
348
|
+
return m(
|
|
349
|
+
r.ordinalNumber(e, {
|
|
350
|
+
unit: "year"
|
|
351
|
+
}),
|
|
352
|
+
a
|
|
353
|
+
);
|
|
354
|
+
default:
|
|
355
|
+
return m(h(t.length, e), a);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
validate(e, t) {
|
|
359
|
+
return t.isTwoDigitYear || t.year > 0;
|
|
360
|
+
}
|
|
361
|
+
set(e, t, r) {
|
|
362
|
+
const a = e.getFullYear();
|
|
363
|
+
if (r.isTwoDigitYear) {
|
|
364
|
+
const c = ee(
|
|
365
|
+
r.year,
|
|
366
|
+
a
|
|
367
|
+
);
|
|
368
|
+
return e.setFullYear(c, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
369
|
+
}
|
|
370
|
+
const o = !("era" in t) || t.era === 1 ? r.year : 1 - r.year;
|
|
371
|
+
return e.setFullYear(o, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
class Fe extends l {
|
|
375
|
+
constructor() {
|
|
376
|
+
super(...arguments);
|
|
377
|
+
i(this, "priority", 130);
|
|
378
|
+
i(this, "incompatibleTokens", [
|
|
379
|
+
"y",
|
|
380
|
+
"R",
|
|
381
|
+
"u",
|
|
382
|
+
"Q",
|
|
383
|
+
"q",
|
|
384
|
+
"M",
|
|
385
|
+
"L",
|
|
386
|
+
"I",
|
|
387
|
+
"d",
|
|
388
|
+
"D",
|
|
389
|
+
"i",
|
|
390
|
+
"t",
|
|
391
|
+
"T"
|
|
392
|
+
]);
|
|
393
|
+
}
|
|
394
|
+
parse(e, t, r) {
|
|
395
|
+
const a = (o) => ({
|
|
396
|
+
year: o,
|
|
397
|
+
isTwoDigitYear: t === "YY"
|
|
398
|
+
});
|
|
399
|
+
switch (t) {
|
|
400
|
+
case "Y":
|
|
401
|
+
return m(h(4, e), a);
|
|
402
|
+
case "Yo":
|
|
403
|
+
return m(
|
|
404
|
+
r.ordinalNumber(e, {
|
|
405
|
+
unit: "year"
|
|
406
|
+
}),
|
|
407
|
+
a
|
|
408
|
+
);
|
|
409
|
+
default:
|
|
410
|
+
return m(h(t.length, e), a);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
validate(e, t) {
|
|
414
|
+
return t.isTwoDigitYear || t.year > 0;
|
|
415
|
+
}
|
|
416
|
+
set(e, t, r, a) {
|
|
417
|
+
const o = j(e, a);
|
|
418
|
+
if (r.isTwoDigitYear) {
|
|
419
|
+
const d = ee(
|
|
420
|
+
r.year,
|
|
421
|
+
o
|
|
422
|
+
);
|
|
423
|
+
return e.setFullYear(
|
|
424
|
+
d,
|
|
425
|
+
0,
|
|
426
|
+
a.firstWeekContainsDate
|
|
427
|
+
), e.setHours(0, 0, 0, 0), M(e, a);
|
|
428
|
+
}
|
|
429
|
+
const c = !("era" in t) || t.era === 1 ? r.year : 1 - r.year;
|
|
430
|
+
return e.setFullYear(c, 0, a.firstWeekContainsDate), e.setHours(0, 0, 0, 0), M(e, a);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
class We extends l {
|
|
434
|
+
constructor() {
|
|
435
|
+
super(...arguments);
|
|
436
|
+
i(this, "priority", 130);
|
|
437
|
+
i(this, "incompatibleTokens", [
|
|
438
|
+
"G",
|
|
439
|
+
"y",
|
|
440
|
+
"Y",
|
|
441
|
+
"u",
|
|
442
|
+
"Q",
|
|
443
|
+
"q",
|
|
444
|
+
"M",
|
|
445
|
+
"L",
|
|
446
|
+
"w",
|
|
447
|
+
"d",
|
|
448
|
+
"D",
|
|
449
|
+
"e",
|
|
450
|
+
"c",
|
|
451
|
+
"t",
|
|
452
|
+
"T"
|
|
453
|
+
]);
|
|
454
|
+
}
|
|
455
|
+
parse(e, t) {
|
|
456
|
+
return E(t === "R" ? 4 : t.length, e);
|
|
457
|
+
}
|
|
458
|
+
set(e, t, r) {
|
|
459
|
+
const a = x(e, 0);
|
|
460
|
+
return a.setFullYear(r, 0, 4), a.setHours(0, 0, 0, 0), _(a);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
class qe extends l {
|
|
464
|
+
constructor() {
|
|
465
|
+
super(...arguments);
|
|
466
|
+
i(this, "priority", 130);
|
|
467
|
+
i(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
|
|
468
|
+
}
|
|
469
|
+
parse(e, t) {
|
|
470
|
+
return E(t === "u" ? 4 : t.length, e);
|
|
471
|
+
}
|
|
472
|
+
set(e, t, r) {
|
|
473
|
+
return e.setFullYear(r, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
class Ne extends l {
|
|
477
|
+
constructor() {
|
|
478
|
+
super(...arguments);
|
|
479
|
+
i(this, "priority", 120);
|
|
480
|
+
i(this, "incompatibleTokens", [
|
|
481
|
+
"Y",
|
|
482
|
+
"R",
|
|
483
|
+
"q",
|
|
484
|
+
"M",
|
|
485
|
+
"L",
|
|
486
|
+
"w",
|
|
487
|
+
"I",
|
|
488
|
+
"d",
|
|
489
|
+
"D",
|
|
490
|
+
"i",
|
|
491
|
+
"e",
|
|
492
|
+
"c",
|
|
493
|
+
"t",
|
|
494
|
+
"T"
|
|
495
|
+
]);
|
|
496
|
+
}
|
|
497
|
+
parse(e, t, r) {
|
|
498
|
+
switch (t) {
|
|
499
|
+
// 1, 2, 3, 4
|
|
500
|
+
case "Q":
|
|
501
|
+
case "QQ":
|
|
502
|
+
return h(t.length, e);
|
|
503
|
+
// 1st, 2nd, 3rd, 4th
|
|
504
|
+
case "Qo":
|
|
505
|
+
return r.ordinalNumber(e, { unit: "quarter" });
|
|
506
|
+
// Q1, Q2, Q3, Q4
|
|
507
|
+
case "QQQ":
|
|
508
|
+
return r.quarter(e, {
|
|
509
|
+
width: "abbreviated",
|
|
510
|
+
context: "formatting"
|
|
511
|
+
}) || r.quarter(e, {
|
|
512
|
+
width: "narrow",
|
|
513
|
+
context: "formatting"
|
|
514
|
+
});
|
|
515
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
516
|
+
case "QQQQQ":
|
|
517
|
+
return r.quarter(e, {
|
|
518
|
+
width: "narrow",
|
|
519
|
+
context: "formatting"
|
|
520
|
+
});
|
|
521
|
+
default:
|
|
522
|
+
return r.quarter(e, {
|
|
523
|
+
width: "wide",
|
|
524
|
+
context: "formatting"
|
|
525
|
+
}) || r.quarter(e, {
|
|
526
|
+
width: "abbreviated",
|
|
527
|
+
context: "formatting"
|
|
528
|
+
}) || r.quarter(e, {
|
|
529
|
+
width: "narrow",
|
|
530
|
+
context: "formatting"
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
validate(e, t) {
|
|
535
|
+
return t >= 1 && t <= 4;
|
|
536
|
+
}
|
|
537
|
+
set(e, t, r) {
|
|
538
|
+
return e.setMonth((r - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
class $e extends l {
|
|
542
|
+
constructor() {
|
|
543
|
+
super(...arguments);
|
|
544
|
+
i(this, "priority", 120);
|
|
545
|
+
i(this, "incompatibleTokens", [
|
|
546
|
+
"Y",
|
|
547
|
+
"R",
|
|
548
|
+
"Q",
|
|
549
|
+
"M",
|
|
550
|
+
"L",
|
|
551
|
+
"w",
|
|
552
|
+
"I",
|
|
553
|
+
"d",
|
|
554
|
+
"D",
|
|
555
|
+
"i",
|
|
556
|
+
"e",
|
|
557
|
+
"c",
|
|
558
|
+
"t",
|
|
559
|
+
"T"
|
|
560
|
+
]);
|
|
561
|
+
}
|
|
562
|
+
parse(e, t, r) {
|
|
563
|
+
switch (t) {
|
|
564
|
+
// 1, 2, 3, 4
|
|
565
|
+
case "q":
|
|
566
|
+
case "qq":
|
|
567
|
+
return h(t.length, e);
|
|
568
|
+
// 1st, 2nd, 3rd, 4th
|
|
569
|
+
case "qo":
|
|
570
|
+
return r.ordinalNumber(e, { unit: "quarter" });
|
|
571
|
+
// Q1, Q2, Q3, Q4
|
|
572
|
+
case "qqq":
|
|
573
|
+
return r.quarter(e, {
|
|
574
|
+
width: "abbreviated",
|
|
575
|
+
context: "standalone"
|
|
576
|
+
}) || r.quarter(e, {
|
|
577
|
+
width: "narrow",
|
|
578
|
+
context: "standalone"
|
|
579
|
+
});
|
|
580
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
581
|
+
case "qqqqq":
|
|
582
|
+
return r.quarter(e, {
|
|
583
|
+
width: "narrow",
|
|
584
|
+
context: "standalone"
|
|
585
|
+
});
|
|
586
|
+
default:
|
|
587
|
+
return r.quarter(e, {
|
|
588
|
+
width: "wide",
|
|
589
|
+
context: "standalone"
|
|
590
|
+
}) || r.quarter(e, {
|
|
591
|
+
width: "abbreviated",
|
|
592
|
+
context: "standalone"
|
|
593
|
+
}) || r.quarter(e, {
|
|
594
|
+
width: "narrow",
|
|
595
|
+
context: "standalone"
|
|
596
|
+
});
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
validate(e, t) {
|
|
600
|
+
return t >= 1 && t <= 4;
|
|
601
|
+
}
|
|
602
|
+
set(e, t, r) {
|
|
603
|
+
return e.setMonth((r - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
class Re extends l {
|
|
607
|
+
constructor() {
|
|
608
|
+
super(...arguments);
|
|
609
|
+
i(this, "incompatibleTokens", [
|
|
610
|
+
"Y",
|
|
611
|
+
"R",
|
|
612
|
+
"q",
|
|
613
|
+
"Q",
|
|
614
|
+
"L",
|
|
615
|
+
"w",
|
|
616
|
+
"I",
|
|
617
|
+
"D",
|
|
618
|
+
"i",
|
|
619
|
+
"e",
|
|
620
|
+
"c",
|
|
621
|
+
"t",
|
|
622
|
+
"T"
|
|
623
|
+
]);
|
|
624
|
+
i(this, "priority", 110);
|
|
625
|
+
}
|
|
626
|
+
parse(e, t, r) {
|
|
627
|
+
const a = (o) => o - 1;
|
|
628
|
+
switch (t) {
|
|
629
|
+
// 1, 2, ..., 12
|
|
630
|
+
case "M":
|
|
631
|
+
return m(
|
|
632
|
+
f(y.month, e),
|
|
633
|
+
a
|
|
634
|
+
);
|
|
635
|
+
// 01, 02, ..., 12
|
|
636
|
+
case "MM":
|
|
637
|
+
return m(h(2, e), a);
|
|
638
|
+
// 1st, 2nd, ..., 12th
|
|
639
|
+
case "Mo":
|
|
640
|
+
return m(
|
|
641
|
+
r.ordinalNumber(e, {
|
|
642
|
+
unit: "month"
|
|
643
|
+
}),
|
|
644
|
+
a
|
|
645
|
+
);
|
|
646
|
+
// Jan, Feb, ..., Dec
|
|
647
|
+
case "MMM":
|
|
648
|
+
return r.month(e, {
|
|
649
|
+
width: "abbreviated",
|
|
650
|
+
context: "formatting"
|
|
651
|
+
}) || r.month(e, { width: "narrow", context: "formatting" });
|
|
652
|
+
// J, F, ..., D
|
|
653
|
+
case "MMMMM":
|
|
654
|
+
return r.month(e, {
|
|
655
|
+
width: "narrow",
|
|
656
|
+
context: "formatting"
|
|
657
|
+
});
|
|
658
|
+
default:
|
|
659
|
+
return r.month(e, { width: "wide", context: "formatting" }) || r.month(e, {
|
|
660
|
+
width: "abbreviated",
|
|
661
|
+
context: "formatting"
|
|
662
|
+
}) || r.month(e, { width: "narrow", context: "formatting" });
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
validate(e, t) {
|
|
666
|
+
return t >= 0 && t <= 11;
|
|
667
|
+
}
|
|
668
|
+
set(e, t, r) {
|
|
669
|
+
return e.setMonth(r, 1), e.setHours(0, 0, 0, 0), e;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
class ve extends l {
|
|
673
|
+
constructor() {
|
|
674
|
+
super(...arguments);
|
|
675
|
+
i(this, "priority", 110);
|
|
676
|
+
i(this, "incompatibleTokens", [
|
|
677
|
+
"Y",
|
|
678
|
+
"R",
|
|
679
|
+
"q",
|
|
680
|
+
"Q",
|
|
681
|
+
"M",
|
|
682
|
+
"w",
|
|
683
|
+
"I",
|
|
684
|
+
"D",
|
|
685
|
+
"i",
|
|
686
|
+
"e",
|
|
687
|
+
"c",
|
|
688
|
+
"t",
|
|
689
|
+
"T"
|
|
690
|
+
]);
|
|
691
|
+
}
|
|
692
|
+
parse(e, t, r) {
|
|
693
|
+
const a = (o) => o - 1;
|
|
694
|
+
switch (t) {
|
|
695
|
+
// 1, 2, ..., 12
|
|
696
|
+
case "L":
|
|
697
|
+
return m(
|
|
698
|
+
f(y.month, e),
|
|
699
|
+
a
|
|
700
|
+
);
|
|
701
|
+
// 01, 02, ..., 12
|
|
702
|
+
case "LL":
|
|
703
|
+
return m(h(2, e), a);
|
|
704
|
+
// 1st, 2nd, ..., 12th
|
|
705
|
+
case "Lo":
|
|
706
|
+
return m(
|
|
707
|
+
r.ordinalNumber(e, {
|
|
708
|
+
unit: "month"
|
|
709
|
+
}),
|
|
710
|
+
a
|
|
711
|
+
);
|
|
712
|
+
// Jan, Feb, ..., Dec
|
|
713
|
+
case "LLL":
|
|
714
|
+
return r.month(e, {
|
|
715
|
+
width: "abbreviated",
|
|
716
|
+
context: "standalone"
|
|
717
|
+
}) || r.month(e, { width: "narrow", context: "standalone" });
|
|
718
|
+
// J, F, ..., D
|
|
719
|
+
case "LLLLL":
|
|
720
|
+
return r.month(e, {
|
|
721
|
+
width: "narrow",
|
|
722
|
+
context: "standalone"
|
|
723
|
+
});
|
|
724
|
+
default:
|
|
725
|
+
return r.month(e, { width: "wide", context: "standalone" }) || r.month(e, {
|
|
726
|
+
width: "abbreviated",
|
|
727
|
+
context: "standalone"
|
|
728
|
+
}) || r.month(e, { width: "narrow", context: "standalone" });
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
validate(e, t) {
|
|
732
|
+
return t >= 0 && t <= 11;
|
|
733
|
+
}
|
|
734
|
+
set(e, t, r) {
|
|
735
|
+
return e.setMonth(r, 1), e.setHours(0, 0, 0, 0), e;
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
function Ce(n, s, e) {
|
|
739
|
+
const t = Y(n, e == null ? void 0 : e.in), r = ye(t, e) - s;
|
|
740
|
+
return t.setDate(t.getDate() - r * 7), Y(t, e == null ? void 0 : e.in);
|
|
741
|
+
}
|
|
742
|
+
class Le extends l {
|
|
743
|
+
constructor() {
|
|
744
|
+
super(...arguments);
|
|
745
|
+
i(this, "priority", 100);
|
|
746
|
+
i(this, "incompatibleTokens", [
|
|
747
|
+
"y",
|
|
748
|
+
"R",
|
|
749
|
+
"u",
|
|
750
|
+
"q",
|
|
751
|
+
"Q",
|
|
752
|
+
"M",
|
|
753
|
+
"L",
|
|
754
|
+
"I",
|
|
755
|
+
"d",
|
|
756
|
+
"D",
|
|
757
|
+
"i",
|
|
758
|
+
"t",
|
|
759
|
+
"T"
|
|
760
|
+
]);
|
|
761
|
+
}
|
|
762
|
+
parse(e, t, r) {
|
|
763
|
+
switch (t) {
|
|
764
|
+
case "w":
|
|
765
|
+
return f(y.week, e);
|
|
766
|
+
case "wo":
|
|
767
|
+
return r.ordinalNumber(e, { unit: "week" });
|
|
768
|
+
default:
|
|
769
|
+
return h(t.length, e);
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
validate(e, t) {
|
|
773
|
+
return t >= 1 && t <= 53;
|
|
774
|
+
}
|
|
775
|
+
set(e, t, r, a) {
|
|
776
|
+
return M(Ce(e, r, a), a);
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
function Qe(n, s, e) {
|
|
780
|
+
const t = Y(n, e == null ? void 0 : e.in), r = we(t, e) - s;
|
|
781
|
+
return t.setDate(t.getDate() - r * 7), t;
|
|
782
|
+
}
|
|
783
|
+
class Ae extends l {
|
|
784
|
+
constructor() {
|
|
785
|
+
super(...arguments);
|
|
786
|
+
i(this, "priority", 100);
|
|
787
|
+
i(this, "incompatibleTokens", [
|
|
788
|
+
"y",
|
|
789
|
+
"Y",
|
|
790
|
+
"u",
|
|
791
|
+
"q",
|
|
792
|
+
"Q",
|
|
793
|
+
"M",
|
|
794
|
+
"L",
|
|
795
|
+
"w",
|
|
796
|
+
"d",
|
|
797
|
+
"D",
|
|
798
|
+
"e",
|
|
799
|
+
"c",
|
|
800
|
+
"t",
|
|
801
|
+
"T"
|
|
802
|
+
]);
|
|
803
|
+
}
|
|
804
|
+
parse(e, t, r) {
|
|
805
|
+
switch (t) {
|
|
806
|
+
case "I":
|
|
807
|
+
return f(y.week, e);
|
|
808
|
+
case "Io":
|
|
809
|
+
return r.ordinalNumber(e, { unit: "week" });
|
|
810
|
+
default:
|
|
811
|
+
return h(t.length, e);
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
validate(e, t) {
|
|
815
|
+
return t >= 1 && t <= 53;
|
|
816
|
+
}
|
|
817
|
+
set(e, t, r) {
|
|
818
|
+
return _(Qe(e, r));
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
const Be = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ge = [
|
|
822
|
+
31,
|
|
823
|
+
29,
|
|
824
|
+
31,
|
|
825
|
+
30,
|
|
826
|
+
31,
|
|
827
|
+
30,
|
|
828
|
+
31,
|
|
829
|
+
31,
|
|
830
|
+
30,
|
|
831
|
+
31,
|
|
832
|
+
30,
|
|
833
|
+
31
|
|
834
|
+
];
|
|
835
|
+
class Xe extends l {
|
|
836
|
+
constructor() {
|
|
837
|
+
super(...arguments);
|
|
838
|
+
i(this, "priority", 90);
|
|
839
|
+
i(this, "subPriority", 1);
|
|
840
|
+
i(this, "incompatibleTokens", [
|
|
841
|
+
"Y",
|
|
842
|
+
"R",
|
|
843
|
+
"q",
|
|
844
|
+
"Q",
|
|
845
|
+
"w",
|
|
846
|
+
"I",
|
|
847
|
+
"D",
|
|
848
|
+
"i",
|
|
849
|
+
"e",
|
|
850
|
+
"c",
|
|
851
|
+
"t",
|
|
852
|
+
"T"
|
|
853
|
+
]);
|
|
854
|
+
}
|
|
855
|
+
parse(e, t, r) {
|
|
856
|
+
switch (t) {
|
|
857
|
+
case "d":
|
|
858
|
+
return f(y.date, e);
|
|
859
|
+
case "do":
|
|
860
|
+
return r.ordinalNumber(e, { unit: "date" });
|
|
861
|
+
default:
|
|
862
|
+
return h(t.length, e);
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
validate(e, t) {
|
|
866
|
+
const r = e.getFullYear(), a = te(r), o = e.getMonth();
|
|
867
|
+
return a ? t >= 1 && t <= Ge[o] : t >= 1 && t <= Be[o];
|
|
868
|
+
}
|
|
869
|
+
set(e, t, r) {
|
|
870
|
+
return e.setDate(r), e.setHours(0, 0, 0, 0), e;
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
class Ke extends l {
|
|
874
|
+
constructor() {
|
|
875
|
+
super(...arguments);
|
|
876
|
+
i(this, "priority", 90);
|
|
877
|
+
i(this, "subpriority", 1);
|
|
878
|
+
i(this, "incompatibleTokens", [
|
|
879
|
+
"Y",
|
|
880
|
+
"R",
|
|
881
|
+
"q",
|
|
882
|
+
"Q",
|
|
883
|
+
"M",
|
|
884
|
+
"L",
|
|
885
|
+
"w",
|
|
886
|
+
"I",
|
|
887
|
+
"d",
|
|
888
|
+
"E",
|
|
889
|
+
"i",
|
|
890
|
+
"e",
|
|
891
|
+
"c",
|
|
892
|
+
"t",
|
|
893
|
+
"T"
|
|
894
|
+
]);
|
|
895
|
+
}
|
|
896
|
+
parse(e, t, r) {
|
|
897
|
+
switch (t) {
|
|
898
|
+
case "D":
|
|
899
|
+
case "DD":
|
|
900
|
+
return f(y.dayOfYear, e);
|
|
901
|
+
case "Do":
|
|
902
|
+
return r.ordinalNumber(e, { unit: "date" });
|
|
903
|
+
default:
|
|
904
|
+
return h(t.length, e);
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
validate(e, t) {
|
|
908
|
+
const r = e.getFullYear();
|
|
909
|
+
return te(r) ? t >= 1 && t <= 366 : t >= 1 && t <= 365;
|
|
910
|
+
}
|
|
911
|
+
set(e, t, r) {
|
|
912
|
+
return e.setMonth(0, r), e.setHours(0, 0, 0, 0), e;
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
class ze extends l {
|
|
916
|
+
constructor() {
|
|
917
|
+
super(...arguments);
|
|
918
|
+
i(this, "priority", 90);
|
|
919
|
+
i(this, "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
|
|
920
|
+
}
|
|
921
|
+
parse(e, t, r) {
|
|
922
|
+
switch (t) {
|
|
923
|
+
// Tue
|
|
924
|
+
case "E":
|
|
925
|
+
case "EE":
|
|
926
|
+
case "EEE":
|
|
927
|
+
return r.day(e, {
|
|
928
|
+
width: "abbreviated",
|
|
929
|
+
context: "formatting"
|
|
930
|
+
}) || r.day(e, { width: "short", context: "formatting" }) || r.day(e, { width: "narrow", context: "formatting" });
|
|
931
|
+
// T
|
|
932
|
+
case "EEEEE":
|
|
933
|
+
return r.day(e, {
|
|
934
|
+
width: "narrow",
|
|
935
|
+
context: "formatting"
|
|
936
|
+
});
|
|
937
|
+
// Tu
|
|
938
|
+
case "EEEEEE":
|
|
939
|
+
return r.day(e, { width: "short", context: "formatting" }) || r.day(e, { width: "narrow", context: "formatting" });
|
|
940
|
+
default:
|
|
941
|
+
return r.day(e, { width: "wide", context: "formatting" }) || r.day(e, {
|
|
942
|
+
width: "abbreviated",
|
|
943
|
+
context: "formatting"
|
|
944
|
+
}) || r.day(e, { width: "short", context: "formatting" }) || r.day(e, { width: "narrow", context: "formatting" });
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
validate(e, t) {
|
|
948
|
+
return t >= 0 && t <= 6;
|
|
949
|
+
}
|
|
950
|
+
set(e, t, r, a) {
|
|
951
|
+
return e = F(e, r, a), e.setHours(0, 0, 0, 0), e;
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
class Ve extends l {
|
|
955
|
+
constructor() {
|
|
956
|
+
super(...arguments);
|
|
957
|
+
i(this, "priority", 90);
|
|
958
|
+
i(this, "incompatibleTokens", [
|
|
959
|
+
"y",
|
|
960
|
+
"R",
|
|
961
|
+
"u",
|
|
962
|
+
"q",
|
|
963
|
+
"Q",
|
|
964
|
+
"M",
|
|
965
|
+
"L",
|
|
966
|
+
"I",
|
|
967
|
+
"d",
|
|
968
|
+
"D",
|
|
969
|
+
"E",
|
|
970
|
+
"i",
|
|
971
|
+
"c",
|
|
972
|
+
"t",
|
|
973
|
+
"T"
|
|
974
|
+
]);
|
|
975
|
+
}
|
|
976
|
+
parse(e, t, r, a) {
|
|
977
|
+
const o = (c) => {
|
|
978
|
+
const d = Math.floor((c - 1) / 7) * 7;
|
|
979
|
+
return (c + a.weekStartsOn + 6) % 7 + d;
|
|
980
|
+
};
|
|
981
|
+
switch (t) {
|
|
982
|
+
// 3
|
|
983
|
+
case "e":
|
|
984
|
+
case "ee":
|
|
985
|
+
return m(h(t.length, e), o);
|
|
986
|
+
// 3rd
|
|
987
|
+
case "eo":
|
|
988
|
+
return m(
|
|
989
|
+
r.ordinalNumber(e, {
|
|
990
|
+
unit: "day"
|
|
991
|
+
}),
|
|
992
|
+
o
|
|
993
|
+
);
|
|
994
|
+
// Tue
|
|
995
|
+
case "eee":
|
|
996
|
+
return r.day(e, {
|
|
997
|
+
width: "abbreviated",
|
|
998
|
+
context: "formatting"
|
|
999
|
+
}) || r.day(e, { width: "short", context: "formatting" }) || r.day(e, { width: "narrow", context: "formatting" });
|
|
1000
|
+
// T
|
|
1001
|
+
case "eeeee":
|
|
1002
|
+
return r.day(e, {
|
|
1003
|
+
width: "narrow",
|
|
1004
|
+
context: "formatting"
|
|
1005
|
+
});
|
|
1006
|
+
// Tu
|
|
1007
|
+
case "eeeeee":
|
|
1008
|
+
return r.day(e, { width: "short", context: "formatting" }) || r.day(e, { width: "narrow", context: "formatting" });
|
|
1009
|
+
default:
|
|
1010
|
+
return r.day(e, { width: "wide", context: "formatting" }) || r.day(e, {
|
|
1011
|
+
width: "abbreviated",
|
|
1012
|
+
context: "formatting"
|
|
1013
|
+
}) || r.day(e, { width: "short", context: "formatting" }) || r.day(e, { width: "narrow", context: "formatting" });
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
validate(e, t) {
|
|
1017
|
+
return t >= 0 && t <= 6;
|
|
1018
|
+
}
|
|
1019
|
+
set(e, t, r, a) {
|
|
1020
|
+
return e = F(e, r, a), e.setHours(0, 0, 0, 0), e;
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
class Ze extends l {
|
|
1024
|
+
constructor() {
|
|
1025
|
+
super(...arguments);
|
|
1026
|
+
i(this, "priority", 90);
|
|
1027
|
+
i(this, "incompatibleTokens", [
|
|
1028
|
+
"y",
|
|
1029
|
+
"R",
|
|
1030
|
+
"u",
|
|
1031
|
+
"q",
|
|
1032
|
+
"Q",
|
|
1033
|
+
"M",
|
|
1034
|
+
"L",
|
|
1035
|
+
"I",
|
|
1036
|
+
"d",
|
|
1037
|
+
"D",
|
|
1038
|
+
"E",
|
|
1039
|
+
"i",
|
|
1040
|
+
"e",
|
|
1041
|
+
"t",
|
|
1042
|
+
"T"
|
|
1043
|
+
]);
|
|
1044
|
+
}
|
|
1045
|
+
parse(e, t, r, a) {
|
|
1046
|
+
const o = (c) => {
|
|
1047
|
+
const d = Math.floor((c - 1) / 7) * 7;
|
|
1048
|
+
return (c + a.weekStartsOn + 6) % 7 + d;
|
|
1049
|
+
};
|
|
1050
|
+
switch (t) {
|
|
1051
|
+
// 3
|
|
1052
|
+
case "c":
|
|
1053
|
+
case "cc":
|
|
1054
|
+
return m(h(t.length, e), o);
|
|
1055
|
+
// 3rd
|
|
1056
|
+
case "co":
|
|
1057
|
+
return m(
|
|
1058
|
+
r.ordinalNumber(e, {
|
|
1059
|
+
unit: "day"
|
|
1060
|
+
}),
|
|
1061
|
+
o
|
|
1062
|
+
);
|
|
1063
|
+
// Tue
|
|
1064
|
+
case "ccc":
|
|
1065
|
+
return r.day(e, {
|
|
1066
|
+
width: "abbreviated",
|
|
1067
|
+
context: "standalone"
|
|
1068
|
+
}) || r.day(e, { width: "short", context: "standalone" }) || r.day(e, { width: "narrow", context: "standalone" });
|
|
1069
|
+
// T
|
|
1070
|
+
case "ccccc":
|
|
1071
|
+
return r.day(e, {
|
|
1072
|
+
width: "narrow",
|
|
1073
|
+
context: "standalone"
|
|
1074
|
+
});
|
|
1075
|
+
// Tu
|
|
1076
|
+
case "cccccc":
|
|
1077
|
+
return r.day(e, { width: "short", context: "standalone" }) || r.day(e, { width: "narrow", context: "standalone" });
|
|
1078
|
+
default:
|
|
1079
|
+
return r.day(e, { width: "wide", context: "standalone" }) || r.day(e, {
|
|
1080
|
+
width: "abbreviated",
|
|
1081
|
+
context: "standalone"
|
|
1082
|
+
}) || r.day(e, { width: "short", context: "standalone" }) || r.day(e, { width: "narrow", context: "standalone" });
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
validate(e, t) {
|
|
1086
|
+
return t >= 0 && t <= 6;
|
|
1087
|
+
}
|
|
1088
|
+
set(e, t, r, a) {
|
|
1089
|
+
return e = F(e, r, a), e.setHours(0, 0, 0, 0), e;
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
function je(n, s, e) {
|
|
1093
|
+
const t = Y(n, e == null ? void 0 : e.in), r = Me(t, e), a = s - r;
|
|
1094
|
+
return ae(t, a, e);
|
|
1095
|
+
}
|
|
1096
|
+
class Ue extends l {
|
|
1097
|
+
constructor() {
|
|
1098
|
+
super(...arguments);
|
|
1099
|
+
i(this, "priority", 90);
|
|
1100
|
+
i(this, "incompatibleTokens", [
|
|
1101
|
+
"y",
|
|
1102
|
+
"Y",
|
|
1103
|
+
"u",
|
|
1104
|
+
"q",
|
|
1105
|
+
"Q",
|
|
1106
|
+
"M",
|
|
1107
|
+
"L",
|
|
1108
|
+
"w",
|
|
1109
|
+
"d",
|
|
1110
|
+
"D",
|
|
1111
|
+
"E",
|
|
1112
|
+
"e",
|
|
1113
|
+
"c",
|
|
1114
|
+
"t",
|
|
1115
|
+
"T"
|
|
1116
|
+
]);
|
|
1117
|
+
}
|
|
1118
|
+
parse(e, t, r) {
|
|
1119
|
+
const a = (o) => o === 0 ? 7 : o;
|
|
1120
|
+
switch (t) {
|
|
1121
|
+
// 2
|
|
1122
|
+
case "i":
|
|
1123
|
+
case "ii":
|
|
1124
|
+
return h(t.length, e);
|
|
1125
|
+
// 2nd
|
|
1126
|
+
case "io":
|
|
1127
|
+
return r.ordinalNumber(e, { unit: "day" });
|
|
1128
|
+
// Tue
|
|
1129
|
+
case "iii":
|
|
1130
|
+
return m(
|
|
1131
|
+
r.day(e, {
|
|
1132
|
+
width: "abbreviated",
|
|
1133
|
+
context: "formatting"
|
|
1134
|
+
}) || r.day(e, {
|
|
1135
|
+
width: "short",
|
|
1136
|
+
context: "formatting"
|
|
1137
|
+
}) || r.day(e, {
|
|
1138
|
+
width: "narrow",
|
|
1139
|
+
context: "formatting"
|
|
1140
|
+
}),
|
|
1141
|
+
a
|
|
1142
|
+
);
|
|
1143
|
+
// T
|
|
1144
|
+
case "iiiii":
|
|
1145
|
+
return m(
|
|
1146
|
+
r.day(e, {
|
|
1147
|
+
width: "narrow",
|
|
1148
|
+
context: "formatting"
|
|
1149
|
+
}),
|
|
1150
|
+
a
|
|
1151
|
+
);
|
|
1152
|
+
// Tu
|
|
1153
|
+
case "iiiiii":
|
|
1154
|
+
return m(
|
|
1155
|
+
r.day(e, {
|
|
1156
|
+
width: "short",
|
|
1157
|
+
context: "formatting"
|
|
1158
|
+
}) || r.day(e, {
|
|
1159
|
+
width: "narrow",
|
|
1160
|
+
context: "formatting"
|
|
1161
|
+
}),
|
|
1162
|
+
a
|
|
1163
|
+
);
|
|
1164
|
+
default:
|
|
1165
|
+
return m(
|
|
1166
|
+
r.day(e, {
|
|
1167
|
+
width: "wide",
|
|
1168
|
+
context: "formatting"
|
|
1169
|
+
}) || r.day(e, {
|
|
1170
|
+
width: "abbreviated",
|
|
1171
|
+
context: "formatting"
|
|
1172
|
+
}) || r.day(e, {
|
|
1173
|
+
width: "short",
|
|
1174
|
+
context: "formatting"
|
|
1175
|
+
}) || r.day(e, {
|
|
1176
|
+
width: "narrow",
|
|
1177
|
+
context: "formatting"
|
|
1178
|
+
}),
|
|
1179
|
+
a
|
|
1180
|
+
);
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
validate(e, t) {
|
|
1184
|
+
return t >= 1 && t <= 7;
|
|
1185
|
+
}
|
|
1186
|
+
set(e, t, r) {
|
|
1187
|
+
return e = je(e, r), e.setHours(0, 0, 0, 0), e;
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
class Je extends l {
|
|
1191
|
+
constructor() {
|
|
1192
|
+
super(...arguments);
|
|
1193
|
+
i(this, "priority", 80);
|
|
1194
|
+
i(this, "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]);
|
|
1195
|
+
}
|
|
1196
|
+
parse(e, t, r) {
|
|
1197
|
+
switch (t) {
|
|
1198
|
+
case "a":
|
|
1199
|
+
case "aa":
|
|
1200
|
+
case "aaa":
|
|
1201
|
+
return r.dayPeriod(e, {
|
|
1202
|
+
width: "abbreviated",
|
|
1203
|
+
context: "formatting"
|
|
1204
|
+
}) || r.dayPeriod(e, {
|
|
1205
|
+
width: "narrow",
|
|
1206
|
+
context: "formatting"
|
|
1207
|
+
});
|
|
1208
|
+
case "aaaaa":
|
|
1209
|
+
return r.dayPeriod(e, {
|
|
1210
|
+
width: "narrow",
|
|
1211
|
+
context: "formatting"
|
|
1212
|
+
});
|
|
1213
|
+
default:
|
|
1214
|
+
return r.dayPeriod(e, {
|
|
1215
|
+
width: "wide",
|
|
1216
|
+
context: "formatting"
|
|
1217
|
+
}) || r.dayPeriod(e, {
|
|
1218
|
+
width: "abbreviated",
|
|
1219
|
+
context: "formatting"
|
|
1220
|
+
}) || r.dayPeriod(e, {
|
|
1221
|
+
width: "narrow",
|
|
1222
|
+
context: "formatting"
|
|
1223
|
+
});
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
set(e, t, r) {
|
|
1227
|
+
return e.setHours(q(r), 0, 0, 0), e;
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
class Se extends l {
|
|
1231
|
+
constructor() {
|
|
1232
|
+
super(...arguments);
|
|
1233
|
+
i(this, "priority", 80);
|
|
1234
|
+
i(this, "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]);
|
|
1235
|
+
}
|
|
1236
|
+
parse(e, t, r) {
|
|
1237
|
+
switch (t) {
|
|
1238
|
+
case "b":
|
|
1239
|
+
case "bb":
|
|
1240
|
+
case "bbb":
|
|
1241
|
+
return r.dayPeriod(e, {
|
|
1242
|
+
width: "abbreviated",
|
|
1243
|
+
context: "formatting"
|
|
1244
|
+
}) || r.dayPeriod(e, {
|
|
1245
|
+
width: "narrow",
|
|
1246
|
+
context: "formatting"
|
|
1247
|
+
});
|
|
1248
|
+
case "bbbbb":
|
|
1249
|
+
return r.dayPeriod(e, {
|
|
1250
|
+
width: "narrow",
|
|
1251
|
+
context: "formatting"
|
|
1252
|
+
});
|
|
1253
|
+
default:
|
|
1254
|
+
return r.dayPeriod(e, {
|
|
1255
|
+
width: "wide",
|
|
1256
|
+
context: "formatting"
|
|
1257
|
+
}) || r.dayPeriod(e, {
|
|
1258
|
+
width: "abbreviated",
|
|
1259
|
+
context: "formatting"
|
|
1260
|
+
}) || r.dayPeriod(e, {
|
|
1261
|
+
width: "narrow",
|
|
1262
|
+
context: "formatting"
|
|
1263
|
+
});
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
set(e, t, r) {
|
|
1267
|
+
return e.setHours(q(r), 0, 0, 0), e;
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
class et extends l {
|
|
1271
|
+
constructor() {
|
|
1272
|
+
super(...arguments);
|
|
1273
|
+
i(this, "priority", 80);
|
|
1274
|
+
i(this, "incompatibleTokens", ["a", "b", "t", "T"]);
|
|
1275
|
+
}
|
|
1276
|
+
parse(e, t, r) {
|
|
1277
|
+
switch (t) {
|
|
1278
|
+
case "B":
|
|
1279
|
+
case "BB":
|
|
1280
|
+
case "BBB":
|
|
1281
|
+
return r.dayPeriod(e, {
|
|
1282
|
+
width: "abbreviated",
|
|
1283
|
+
context: "formatting"
|
|
1284
|
+
}) || r.dayPeriod(e, {
|
|
1285
|
+
width: "narrow",
|
|
1286
|
+
context: "formatting"
|
|
1287
|
+
});
|
|
1288
|
+
case "BBBBB":
|
|
1289
|
+
return r.dayPeriod(e, {
|
|
1290
|
+
width: "narrow",
|
|
1291
|
+
context: "formatting"
|
|
1292
|
+
});
|
|
1293
|
+
default:
|
|
1294
|
+
return r.dayPeriod(e, {
|
|
1295
|
+
width: "wide",
|
|
1296
|
+
context: "formatting"
|
|
1297
|
+
}) || r.dayPeriod(e, {
|
|
1298
|
+
width: "abbreviated",
|
|
1299
|
+
context: "formatting"
|
|
1300
|
+
}) || r.dayPeriod(e, {
|
|
1301
|
+
width: "narrow",
|
|
1302
|
+
context: "formatting"
|
|
1303
|
+
});
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
set(e, t, r) {
|
|
1307
|
+
return e.setHours(q(r), 0, 0, 0), e;
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
class tt extends l {
|
|
1311
|
+
constructor() {
|
|
1312
|
+
super(...arguments);
|
|
1313
|
+
i(this, "priority", 70);
|
|
1314
|
+
i(this, "incompatibleTokens", ["H", "K", "k", "t", "T"]);
|
|
1315
|
+
}
|
|
1316
|
+
parse(e, t, r) {
|
|
1317
|
+
switch (t) {
|
|
1318
|
+
case "h":
|
|
1319
|
+
return f(y.hour12h, e);
|
|
1320
|
+
case "ho":
|
|
1321
|
+
return r.ordinalNumber(e, { unit: "hour" });
|
|
1322
|
+
default:
|
|
1323
|
+
return h(t.length, e);
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
validate(e, t) {
|
|
1327
|
+
return t >= 1 && t <= 12;
|
|
1328
|
+
}
|
|
1329
|
+
set(e, t, r) {
|
|
1330
|
+
const a = e.getHours() >= 12;
|
|
1331
|
+
return a && r < 12 ? e.setHours(r + 12, 0, 0, 0) : !a && r === 12 ? e.setHours(0, 0, 0, 0) : e.setHours(r, 0, 0, 0), e;
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
class rt extends l {
|
|
1335
|
+
constructor() {
|
|
1336
|
+
super(...arguments);
|
|
1337
|
+
i(this, "priority", 70);
|
|
1338
|
+
i(this, "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
|
|
1339
|
+
}
|
|
1340
|
+
parse(e, t, r) {
|
|
1341
|
+
switch (t) {
|
|
1342
|
+
case "H":
|
|
1343
|
+
return f(y.hour23h, e);
|
|
1344
|
+
case "Ho":
|
|
1345
|
+
return r.ordinalNumber(e, { unit: "hour" });
|
|
1346
|
+
default:
|
|
1347
|
+
return h(t.length, e);
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
validate(e, t) {
|
|
1351
|
+
return t >= 0 && t <= 23;
|
|
1352
|
+
}
|
|
1353
|
+
set(e, t, r) {
|
|
1354
|
+
return e.setHours(r, 0, 0, 0), e;
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
class st extends l {
|
|
1358
|
+
constructor() {
|
|
1359
|
+
super(...arguments);
|
|
1360
|
+
i(this, "priority", 70);
|
|
1361
|
+
i(this, "incompatibleTokens", ["h", "H", "k", "t", "T"]);
|
|
1362
|
+
}
|
|
1363
|
+
parse(e, t, r) {
|
|
1364
|
+
switch (t) {
|
|
1365
|
+
case "K":
|
|
1366
|
+
return f(y.hour11h, e);
|
|
1367
|
+
case "Ko":
|
|
1368
|
+
return r.ordinalNumber(e, { unit: "hour" });
|
|
1369
|
+
default:
|
|
1370
|
+
return h(t.length, e);
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
validate(e, t) {
|
|
1374
|
+
return t >= 0 && t <= 11;
|
|
1375
|
+
}
|
|
1376
|
+
set(e, t, r) {
|
|
1377
|
+
return e.getHours() >= 12 && r < 12 ? e.setHours(r + 12, 0, 0, 0) : e.setHours(r, 0, 0, 0), e;
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
class nt extends l {
|
|
1381
|
+
constructor() {
|
|
1382
|
+
super(...arguments);
|
|
1383
|
+
i(this, "priority", 70);
|
|
1384
|
+
i(this, "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
|
|
1385
|
+
}
|
|
1386
|
+
parse(e, t, r) {
|
|
1387
|
+
switch (t) {
|
|
1388
|
+
case "k":
|
|
1389
|
+
return f(y.hour24h, e);
|
|
1390
|
+
case "ko":
|
|
1391
|
+
return r.ordinalNumber(e, { unit: "hour" });
|
|
1392
|
+
default:
|
|
1393
|
+
return h(t.length, e);
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
validate(e, t) {
|
|
1397
|
+
return t >= 1 && t <= 24;
|
|
1398
|
+
}
|
|
1399
|
+
set(e, t, r) {
|
|
1400
|
+
const a = r <= 24 ? r % 24 : r;
|
|
1401
|
+
return e.setHours(a, 0, 0, 0), e;
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
class at extends l {
|
|
1405
|
+
constructor() {
|
|
1406
|
+
super(...arguments);
|
|
1407
|
+
i(this, "priority", 60);
|
|
1408
|
+
i(this, "incompatibleTokens", ["t", "T"]);
|
|
1409
|
+
}
|
|
1410
|
+
parse(e, t, r) {
|
|
1411
|
+
switch (t) {
|
|
1412
|
+
case "m":
|
|
1413
|
+
return f(y.minute, e);
|
|
1414
|
+
case "mo":
|
|
1415
|
+
return r.ordinalNumber(e, { unit: "minute" });
|
|
1416
|
+
default:
|
|
1417
|
+
return h(t.length, e);
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
validate(e, t) {
|
|
1421
|
+
return t >= 0 && t <= 59;
|
|
1422
|
+
}
|
|
1423
|
+
set(e, t, r) {
|
|
1424
|
+
return e.setMinutes(r, 0, 0), e;
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
class it extends l {
|
|
1428
|
+
constructor() {
|
|
1429
|
+
super(...arguments);
|
|
1430
|
+
i(this, "priority", 50);
|
|
1431
|
+
i(this, "incompatibleTokens", ["t", "T"]);
|
|
1432
|
+
}
|
|
1433
|
+
parse(e, t, r) {
|
|
1434
|
+
switch (t) {
|
|
1435
|
+
case "s":
|
|
1436
|
+
return f(y.second, e);
|
|
1437
|
+
case "so":
|
|
1438
|
+
return r.ordinalNumber(e, { unit: "second" });
|
|
1439
|
+
default:
|
|
1440
|
+
return h(t.length, e);
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
validate(e, t) {
|
|
1444
|
+
return t >= 0 && t <= 59;
|
|
1445
|
+
}
|
|
1446
|
+
set(e, t, r) {
|
|
1447
|
+
return e.setSeconds(r, 0), e;
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
class ot extends l {
|
|
1451
|
+
constructor() {
|
|
1452
|
+
super(...arguments);
|
|
1453
|
+
i(this, "priority", 30);
|
|
1454
|
+
i(this, "incompatibleTokens", ["t", "T"]);
|
|
1455
|
+
}
|
|
1456
|
+
parse(e, t) {
|
|
1457
|
+
const r = (a) => Math.trunc(a * Math.pow(10, -t.length + 3));
|
|
1458
|
+
return m(h(t.length, e), r);
|
|
1459
|
+
}
|
|
1460
|
+
set(e, t, r) {
|
|
1461
|
+
return e.setMilliseconds(r), e;
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
class ct extends l {
|
|
1465
|
+
constructor() {
|
|
1466
|
+
super(...arguments);
|
|
1467
|
+
i(this, "priority", 10);
|
|
1468
|
+
i(this, "incompatibleTokens", ["t", "T", "x"]);
|
|
1469
|
+
}
|
|
1470
|
+
parse(e, t) {
|
|
1471
|
+
switch (t) {
|
|
1472
|
+
case "X":
|
|
1473
|
+
return g(
|
|
1474
|
+
p.basicOptionalMinutes,
|
|
1475
|
+
e
|
|
1476
|
+
);
|
|
1477
|
+
case "XX":
|
|
1478
|
+
return g(p.basic, e);
|
|
1479
|
+
case "XXXX":
|
|
1480
|
+
return g(
|
|
1481
|
+
p.basicOptionalSeconds,
|
|
1482
|
+
e
|
|
1483
|
+
);
|
|
1484
|
+
case "XXXXX":
|
|
1485
|
+
return g(
|
|
1486
|
+
p.extendedOptionalSeconds,
|
|
1487
|
+
e
|
|
1488
|
+
);
|
|
1489
|
+
default:
|
|
1490
|
+
return g(p.extended, e);
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
set(e, t, r) {
|
|
1494
|
+
return t.timestampIsSet ? e : x(
|
|
1495
|
+
e,
|
|
1496
|
+
e.getTime() - V(e) - r
|
|
1497
|
+
);
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
class ut extends l {
|
|
1501
|
+
constructor() {
|
|
1502
|
+
super(...arguments);
|
|
1503
|
+
i(this, "priority", 10);
|
|
1504
|
+
i(this, "incompatibleTokens", ["t", "T", "X"]);
|
|
1505
|
+
}
|
|
1506
|
+
parse(e, t) {
|
|
1507
|
+
switch (t) {
|
|
1508
|
+
case "x":
|
|
1509
|
+
return g(
|
|
1510
|
+
p.basicOptionalMinutes,
|
|
1511
|
+
e
|
|
1512
|
+
);
|
|
1513
|
+
case "xx":
|
|
1514
|
+
return g(p.basic, e);
|
|
1515
|
+
case "xxxx":
|
|
1516
|
+
return g(
|
|
1517
|
+
p.basicOptionalSeconds,
|
|
1518
|
+
e
|
|
1519
|
+
);
|
|
1520
|
+
case "xxxxx":
|
|
1521
|
+
return g(
|
|
1522
|
+
p.extendedOptionalSeconds,
|
|
1523
|
+
e
|
|
1524
|
+
);
|
|
1525
|
+
default:
|
|
1526
|
+
return g(p.extended, e);
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
set(e, t, r) {
|
|
1530
|
+
return t.timestampIsSet ? e : x(
|
|
1531
|
+
e,
|
|
1532
|
+
e.getTime() - V(e) - r
|
|
1533
|
+
);
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
class lt extends l {
|
|
1537
|
+
constructor() {
|
|
1538
|
+
super(...arguments);
|
|
1539
|
+
i(this, "priority", 40);
|
|
1540
|
+
i(this, "incompatibleTokens", "*");
|
|
1541
|
+
}
|
|
1542
|
+
parse(e) {
|
|
1543
|
+
return S(e);
|
|
1544
|
+
}
|
|
1545
|
+
set(e, t, r) {
|
|
1546
|
+
return [x(e, r * 1e3), { timestampIsSet: !0 }];
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
class dt extends l {
|
|
1550
|
+
constructor() {
|
|
1551
|
+
super(...arguments);
|
|
1552
|
+
i(this, "priority", 20);
|
|
1553
|
+
i(this, "incompatibleTokens", "*");
|
|
1554
|
+
}
|
|
1555
|
+
parse(e) {
|
|
1556
|
+
return S(e);
|
|
1557
|
+
}
|
|
1558
|
+
set(e, t, r) {
|
|
1559
|
+
return [x(e, r), { timestampIsSet: !0 }];
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
const ft = {
|
|
1563
|
+
G: new Ee(),
|
|
1564
|
+
y: new He(),
|
|
1565
|
+
Y: new Fe(),
|
|
1566
|
+
R: new We(),
|
|
1567
|
+
u: new qe(),
|
|
1568
|
+
Q: new Ne(),
|
|
1569
|
+
q: new $e(),
|
|
1570
|
+
M: new Re(),
|
|
1571
|
+
L: new ve(),
|
|
1572
|
+
w: new Le(),
|
|
1573
|
+
I: new Ae(),
|
|
1574
|
+
d: new Xe(),
|
|
1575
|
+
D: new Ke(),
|
|
1576
|
+
E: new ze(),
|
|
1577
|
+
e: new Ve(),
|
|
1578
|
+
c: new Ze(),
|
|
1579
|
+
i: new Ue(),
|
|
1580
|
+
a: new Je(),
|
|
1581
|
+
b: new Se(),
|
|
1582
|
+
B: new et(),
|
|
1583
|
+
h: new tt(),
|
|
1584
|
+
H: new rt(),
|
|
1585
|
+
K: new st(),
|
|
1586
|
+
k: new nt(),
|
|
1587
|
+
m: new at(),
|
|
1588
|
+
s: new it(),
|
|
1589
|
+
S: new ot(),
|
|
1590
|
+
X: new ct(),
|
|
1591
|
+
x: new ut(),
|
|
1592
|
+
t: new lt(),
|
|
1593
|
+
T: new dt()
|
|
1594
|
+
}, wt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ht = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, yt = /^'([^]*?)'?$/, mt = /''/g, xt = /\S/, bt = /[a-zA-Z]/;
|
|
1595
|
+
function Dt(n, s, e, t) {
|
|
1596
|
+
var $, R, v, C;
|
|
1597
|
+
const r = () => x(e, NaN), a = ge(), o = a.locale ?? ue, c = a.firstWeekContainsDate ?? ((R = ($ = a.locale) == null ? void 0 : $.options) == null ? void 0 : R.firstWeekContainsDate) ?? 1, d = a.weekStartsOn ?? ((C = (v = a.locale) == null ? void 0 : v.options) == null ? void 0 : C.weekStartsOn) ?? 0;
|
|
1598
|
+
if (!s)
|
|
1599
|
+
return n ? r() : Y(e, t == null ? void 0 : t.in);
|
|
1600
|
+
const b = {
|
|
1601
|
+
firstWeekContainsDate: c,
|
|
1602
|
+
weekStartsOn: d,
|
|
1603
|
+
locale: o
|
|
1604
|
+
}, D = [new Ie(t == null ? void 0 : t.in, e)], O = s.match(ht).map((u) => {
|
|
1605
|
+
const w = u[0];
|
|
1606
|
+
if (w in G) {
|
|
1607
|
+
const T = G[w];
|
|
1608
|
+
return T(u, o.formatLong);
|
|
1609
|
+
}
|
|
1610
|
+
return u;
|
|
1611
|
+
}).join("").match(wt), k = [];
|
|
1612
|
+
for (let u of O) {
|
|
1613
|
+
Te(u) && X(u, s, n), Ye(u) && X(u, s, n);
|
|
1614
|
+
const w = u[0], T = ft[w];
|
|
1615
|
+
if (T) {
|
|
1616
|
+
const { incompatibleTokens: L } = T;
|
|
1617
|
+
if (Array.isArray(L)) {
|
|
1618
|
+
const Q = k.find(
|
|
1619
|
+
(A) => L.includes(A.token) || A.token === w
|
|
1620
|
+
);
|
|
1621
|
+
if (Q)
|
|
1622
|
+
throw new RangeError(
|
|
1623
|
+
`The format string mustn't contain \`${Q.fullToken}\` and \`${u}\` at the same time`
|
|
1624
|
+
);
|
|
1625
|
+
} else if (T.incompatibleTokens === "*" && k.length > 0)
|
|
1626
|
+
throw new RangeError(
|
|
1627
|
+
`The format string mustn't contain \`${u}\` and any other token at the same time`
|
|
1628
|
+
);
|
|
1629
|
+
k.push({ token: w, fullToken: u });
|
|
1630
|
+
const H = T.run(
|
|
1631
|
+
n,
|
|
1632
|
+
u,
|
|
1633
|
+
o.match,
|
|
1634
|
+
b
|
|
1635
|
+
);
|
|
1636
|
+
if (!H)
|
|
1637
|
+
return r();
|
|
1638
|
+
D.push(H.setter), n = H.rest;
|
|
1639
|
+
} else {
|
|
1640
|
+
if (w.match(bt))
|
|
1641
|
+
throw new RangeError(
|
|
1642
|
+
"Format string contains an unescaped latin alphabet character `" + w + "`"
|
|
1643
|
+
);
|
|
1644
|
+
if (u === "''" ? u = "'" : w === "'" && (u = Yt(u)), n.indexOf(u) === 0)
|
|
1645
|
+
n = n.slice(u.length);
|
|
1646
|
+
else
|
|
1647
|
+
return r();
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
if (n.length > 0 && xt.test(n))
|
|
1651
|
+
return r();
|
|
1652
|
+
const I = D.map((u) => u.priority).sort((u, w) => w - u).filter((u, w, T) => T.indexOf(u) === w).map(
|
|
1653
|
+
(u) => D.filter((w) => w.priority === u).sort((w, T) => T.subPriority - w.subPriority)
|
|
1654
|
+
).map((u) => u[0]);
|
|
1655
|
+
let P = Y(e, t == null ? void 0 : t.in);
|
|
1656
|
+
if (isNaN(+P)) return r();
|
|
1657
|
+
const N = {};
|
|
1658
|
+
for (const u of I) {
|
|
1659
|
+
if (!u.validate(P, b))
|
|
1660
|
+
return r();
|
|
1661
|
+
const w = u.set(P, N, b);
|
|
1662
|
+
Array.isArray(w) ? (P = w[0], Object.assign(N, w[1])) : P = w;
|
|
1663
|
+
}
|
|
1664
|
+
return P;
|
|
1665
|
+
}
|
|
1666
|
+
function Yt(n) {
|
|
1667
|
+
return n.match(yt)[1].replace(mt, "'");
|
|
1668
|
+
}
|
|
1669
|
+
const Tt = "YYYY-MM-DD", pt = {
|
|
1670
|
+
"YYYY-MM-DD": /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/,
|
|
1671
|
+
"DD-MM-YYYY": /^(0?[1-9]|[12][0-9]|3[01])-(0?[1-9]|1[012])-\d{4}$/,
|
|
1672
|
+
"MM-DD-YYYY": /^(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])-\d{4}$/
|
|
1673
|
+
}, gt = {
|
|
1674
|
+
"YYYY-MM-DD": "yyyy-MM-dd",
|
|
1675
|
+
"DD-MM-YYYY": "dd-MM-yyyy",
|
|
1676
|
+
"MM-DD-YYYY": "MM-dd-yyyy"
|
|
1677
|
+
}, Mt = /[\d]/, kt = /[A-Za-z]{2,}/, Pt = (n, s) => {
|
|
1678
|
+
const { selectionStart: e } = n.target, t = Mt.test(n.key) || kt.test(n.key), r = s === "YYYY-MM-DD" ? e === 4 || e === 7 : e === 2 || e === 5, a = n.key === "-" && r, { ctrlKey: o, shiftKey: c, altKey: d, metaKey: b } = n;
|
|
1679
|
+
!o && !c && !d && !b && !t && !a && n.preventDefault();
|
|
1680
|
+
}, _t = (n, s) => {
|
|
1681
|
+
if (!n)
|
|
1682
|
+
return n;
|
|
1683
|
+
let e = n;
|
|
1684
|
+
const t = e.slice(-1), r = e.length > 1 ? e.slice(-2, -1) : "";
|
|
1685
|
+
if (s === "YYYY-MM-DD") {
|
|
1686
|
+
const a = e.length === 6, o = e.length === 9;
|
|
1687
|
+
(a && parseInt(t, 10) > 1 && r === "-" || o && parseInt(t, 10) > 3 && r === "-") && (e = `${e.slice(0, e.length - 1)}0${t}`), (/^\d{4}$/.test(e) || /^\d{4}-\d{2}$/.test(e)) && (e += "-");
|
|
1688
|
+
} else if (s === "DD-MM-YYYY") {
|
|
1689
|
+
const a = e.length === 1, o = e.length === 4;
|
|
1690
|
+
a && parseInt(t, 10) > 3 ? e = `0${t}` : o && parseInt(t, 10) > 1 && r === "-" && (e = `${e.slice(0, e.length - 1)}0${t}`), (/^\d{2}$/.test(e) || /^\d{2}-\d{2}$/.test(e)) && (e += "-");
|
|
1691
|
+
} else if (s === "MM-DD-YYYY") {
|
|
1692
|
+
const a = e.length === 1, o = e.length === 4;
|
|
1693
|
+
a && parseInt(t, 10) > 1 ? e = `0${t}` : o && parseInt(t, 10) > 3 && r === "-" && (e = `${e.slice(0, e.length - 1)}0${t}`), (/^\d{2}$/.test(e) || /^\d{2}-\d{2}$/.test(e)) && (e += "-");
|
|
1694
|
+
}
|
|
1695
|
+
return e;
|
|
1696
|
+
}, qt = (n = Tt) => {
|
|
1697
|
+
const s = K(() => n), e = (c) => pt[s.value].test(c), t = (c) => {
|
|
1698
|
+
if (!c)
|
|
1699
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
1700
|
+
const d = Dt(c, gt[s.value], /* @__PURE__ */ new Date());
|
|
1701
|
+
return new Date(d.getFullYear(), d.getMonth(), d.getDate());
|
|
1702
|
+
}, r = (c) => {
|
|
1703
|
+
if (!c)
|
|
1704
|
+
return "";
|
|
1705
|
+
const d = c.getFullYear(), b = (c.getMonth() + 1).toString().padStart(2, "0"), D = c.getDate().toString().padStart(2, "0");
|
|
1706
|
+
return s.value === "DD-MM-YYYY" ? `${D}-${b}-${d}` : s.value === "MM-DD-YYYY" ? `${b}-${D}-${d}` : `${d}-${b}-${D}`;
|
|
1707
|
+
};
|
|
1708
|
+
return {
|
|
1709
|
+
dateFormat: s,
|
|
1710
|
+
isFormatValid: e,
|
|
1711
|
+
parseDate: t,
|
|
1712
|
+
formatDate: r,
|
|
1713
|
+
dateToInputDateString: r,
|
|
1714
|
+
autoFormat: (c) => _t(c, s.value),
|
|
1715
|
+
onKeyDown: (c) => {
|
|
1716
|
+
Pt(c, s.value);
|
|
1717
|
+
}
|
|
1718
|
+
};
|
|
1719
|
+
};
|
|
1720
|
+
export {
|
|
1721
|
+
Wt as a,
|
|
1722
|
+
ye as b,
|
|
1723
|
+
de as c,
|
|
1724
|
+
j as d,
|
|
1725
|
+
Ye as e,
|
|
1726
|
+
we as g,
|
|
1727
|
+
Te as i,
|
|
1728
|
+
G as l,
|
|
1729
|
+
qt as u,
|
|
1730
|
+
X as w
|
|
1731
|
+
};
|
|
1732
|
+
//# sourceMappingURL=use-date-input-formatter.Dcjry8op.js.map
|