@midas-ds/components 10.1.1 → 10.2.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/AccordionItem-DZT76sWu.js +320 -0
- package/AccordionItem-Z_c9MpAM.cjs +1 -0
- package/BadgeContainer-D3RtqcPF.js +37 -0
- package/BadgeContainer-DeUgqGqb.cjs +1 -0
- package/Breadcrumbs-CmZXtTiS.js +250 -0
- package/Breadcrumbs-Cx09jwZZ.cjs +1 -0
- package/Button-CbFRzRrF.js +38 -0
- package/Button-DnhqHU01.cjs +1 -0
- package/Button-ZOQy9Ivu.js +78 -0
- package/Button-iSiWjocA.cjs +1 -0
- package/Button.module-CMMhIrkn.js +14 -0
- package/Button.module-DO5s9hOk.cjs +1 -0
- package/ButtonGroup-DUqW5dzM.cjs +1 -0
- package/ButtonGroup-DvVvear6.js +22 -0
- package/CHANGELOG.md +48 -0
- package/Card-C0BFW3wJ.cjs +1 -0
- package/Card-CaKKKv9k.js +131 -0
- package/CharacterCounter-CPGdboVJ.js +22 -0
- package/CharacterCounter-CrY8QRuY.cjs +1 -0
- package/Checkbox-CvFsn_FL.js +380 -0
- package/Checkbox-DSxGAJX2.cjs +1 -0
- package/CheckboxGroup-Bk9DPq4I.cjs +1 -0
- package/CheckboxGroup-Dij9zKlF.js +54 -0
- package/Collection-C5ONNBqd.js +576 -0
- package/Collection-Csx3L9gh.cjs +1 -0
- package/ColorSchemeSwitch-CbAWIJCg.js +106 -0
- package/ColorSchemeSwitch-JRrCyYVv.cjs +16 -0
- package/ComboBox-BCaqPEIH.js +1375 -0
- package/ComboBox-gveQKHU3.cjs +1 -0
- package/DateField-CAQlzuDD.js +46 -0
- package/DateField-deVVFwKA.cjs +1 -0
- package/DateInputDivider-DnUxETEC.cjs +1 -0
- package/DateInputDivider-Dx8n1Lxp.js +2908 -0
- package/DateRangePicker-BmBvwqo6.js +881 -0
- package/DateRangePicker-BzfitoK0.cjs +6 -0
- package/Dialog-Bd5hK360.cjs +1 -0
- package/Dialog-Bxx8cBEq.js +208 -0
- package/Dialog-CYxThuMl.js +1609 -0
- package/Dialog-CwTEAujZ.cjs +1 -0
- package/DragAndDrop-CSwmPhxC.js +60 -0
- package/DragAndDrop-HvycSrKY.cjs +1 -0
- package/Dropdown-CaGon9OR.cjs +6 -0
- package/Dropdown-nkjzsVYX.js +84 -0
- package/FieldError-BZw8UzBk.cjs +1 -0
- package/FieldError-CZikNDxX.js +28 -0
- package/FieldError-DqdfJ3fs.cjs +1 -0
- package/FieldError-Dv3bBEjh.js +23 -0
- package/FileUpload-DYRZ0M9F.cjs +2 -0
- package/FileUpload-ULwcYDxs.js +2372 -0
- package/FocusScope-DwIqdYpQ.js +625 -0
- package/FocusScope-NaPbvuuS.cjs +1 -0
- package/Form-BuOomA4T.cjs +1 -0
- package/Form-CXcEMuBf.js +5 -0
- package/Grid--OhtgCo6.js +27 -0
- package/Grid-DVQtOcu9.cjs +1 -0
- package/GridItem-DlbSdRmB.js +246 -0
- package/GridItem-XgHmZWXY.cjs +1 -0
- package/Group-CeSsSQVC.js +44 -0
- package/Group-CgiqQHH1.cjs +1 -0
- package/Heading-BY5-QN4S.js +46 -0
- package/Heading-DoJAtYZf.cjs +1 -0
- package/Hidden-B5ir3Lei.js +34 -0
- package/Hidden-BxRZGdEW.cjs +1 -0
- package/InfoBanner-BS-dAfzO.cjs +1 -0
- package/InfoBanner-CVIBFSWx.js +82 -0
- package/Input-D8Ku_FQz.js +41 -0
- package/Input-DKSAYvsw.cjs +1 -0
- package/Label-C9ivwkAd.js +21 -0
- package/Label-CUV21CAv.cjs +1 -0
- package/Label-DkDOsmUF.js +16 -0
- package/Label-IMWAyoKb.cjs +1 -0
- package/Layout-BWeHHnqU.cjs +16 -0
- package/Layout-CCt_2L1k.js +468 -0
- package/Link-B-nus-FT.js +71 -0
- package/Link-DsnCtNeI.cjs +6 -0
- package/Link-SHMbeyIP.cjs +1 -0
- package/Link-uFowN4qv.js +59 -0
- package/LinkButton-CuBilDML.js +69 -0
- package/LinkButton-CymMrcGL.cjs +6 -0
- package/ListBox-CDOsQChA.cjs +1 -0
- package/ListBox-DOi_y_Lt.js +530 -0
- package/ListBoxButton-CFeNhJhr.cjs +1 -0
- package/ListBoxButton-O6zN3P4W.js +15 -0
- package/ListBoxSection-C1aLKL9p.js +1058 -0
- package/ListBoxSection-DGCP6xpf.cjs +1 -0
- package/ListKeyboardDelegate-BqMETvPv.cjs +1 -0
- package/ListKeyboardDelegate-DNOzQ8nc.js +158 -0
- package/LiveAnnouncer-B6177m92.js +51 -0
- package/LiveAnnouncer-CwEWPU8b.cjs +1 -0
- package/LocalizedStringFormatter-C0C54hjf.cjs +1 -0
- package/LocalizedStringFormatter-D-4Qyql0.js +77 -0
- package/Logo-BIrOEINM.js +133 -0
- package/Logo-DT2_2O43.cjs +1 -0
- package/NumberFormatter-DewVDY5w.cjs +1 -0
- package/NumberFormatter-DgOUVrge.js +119 -0
- package/OverlayArrow-D75k-EMl.cjs +1 -0
- package/OverlayArrow-DorA4Rbr.js +506 -0
- package/PressResponder-C06O3Z5P.cjs +1 -0
- package/PressResponder-CVEg5kND.js +33 -0
- package/ProgressBar-Bkw9zavs.cjs +1 -0
- package/ProgressBar-CEX2WNoW.js +77 -0
- package/ProgressBar-Dqh3ftSP.cjs +1 -0
- package/ProgressBar-gmAzSsrz.js +53 -0
- package/RSPContexts-BW2SEIqe.js +11 -0
- package/RSPContexts-D8hmBfGm.cjs +1 -0
- package/Radio-CDKrvQe4.cjs +1 -0
- package/Radio-_ukSkxPT.js +311 -0
- package/RangeCalendar-cbCKBPZv.cjs +11 -0
- package/RangeCalendar-uXwoBL-O.js +1685 -0
- package/SearchField-6yBGiojX.cjs +6 -0
- package/SearchField-DYl2uo7o.js +362 -0
- package/Select-CpHjd1tp.cjs +1 -0
- package/Select-PvCqY7Lp.js +646 -0
- package/SelectionManager-6H88Cv6B.js +1033 -0
- package/SelectionManager-C5NGBzvz.cjs +1 -0
- package/Separator-LYnFqh4L.js +60 -0
- package/Separator-nPra6kD-.cjs +1 -0
- package/Skeleton-BAwbfKBW.cjs +1 -0
- package/Skeleton-BePDRmrO.js +40 -0
- package/Spinner-D31SXm-U.js +41 -0
- package/Spinner-DAJtfxqJ.cjs +6 -0
- package/Table-B_N7wUmA.js +2451 -0
- package/Table-D9vNc_y-.cjs +16 -0
- package/Tabs-Ct6D83aR.js +404 -0
- package/Tabs-Dtcl2oK2.cjs +1 -0
- package/Tag-CVFkzg3s.cjs +1 -0
- package/Tag-g6HN-YCv.js +748 -0
- package/Text-3MNwRMpI.cjs +1 -0
- package/Text-B2K-BJKQ.cjs +1 -0
- package/Text-BN-g1iWi.js +32 -0
- package/Text-B_H68Tvq.js +15 -0
- package/TextArea-DSiQ578a.js +206 -0
- package/TextArea-cVyGBRbL.cjs +1 -0
- package/TextField-B70CL2qz.cjs +1 -0
- package/TextField-DBaRuNj7.js +119 -0
- package/TextField.module-BcpPBWnD.js +13 -0
- package/TextField.module-Dw5Rtn9y.cjs +1 -0
- package/Toast-CjpldAI8.js +988 -0
- package/Toast-DrkOGy4d.cjs +1 -0
- package/ToggleButtonGroup-BuU_6dYe.cjs +1 -0
- package/ToggleButtonGroup-Ceh9_yBM.js +210 -0
- package/Tooltip-BAIjaYax.js +283 -0
- package/Tooltip-CiWg4zIC.cjs +1 -0
- package/VisuallyHidden-CtXvK_Tw.cjs +1 -0
- package/VisuallyHidden-D-4z1VgU.js +40 -0
- package/accordion/index.cjs +1 -0
- package/accordion/index.js +5 -0
- package/arrow-right-Cw48o2oW.cjs +6 -0
- package/arrow-right-Dg8sttFO.js +14 -0
- package/assets/AccordionItem.css +1 -0
- package/assets/BadgeContainer.css +1 -0
- package/assets/Breadcrumbs.css +1 -0
- package/assets/Button.css +1 -0
- package/assets/ButtonGroup.css +1 -0
- package/assets/Card.css +1 -0
- package/assets/CharacterCounter.css +1 -0
- package/assets/Checkbox.css +1 -0
- package/assets/ColorSchemeSwitch.css +1 -0
- package/assets/ComboBox.css +1 -0
- package/assets/DateField.css +1 -0
- package/assets/DateInputDivider.css +1 -0
- package/assets/DateRangePicker.css +1 -0
- package/assets/Dialog.css +1 -0
- package/assets/Dropdown.css +1 -0
- package/assets/FieldError.css +1 -0
- package/assets/FileUpload.css +1 -0
- package/assets/GridItem.css +1 -0
- package/assets/Heading.css +1 -0
- package/assets/InfoBanner.css +1 -0
- package/assets/Label.css +1 -0
- package/assets/Layout.css +1 -0
- package/assets/Link.css +1 -0
- package/assets/LinkButton.css +1 -0
- package/assets/ListBoxSection.css +1 -0
- package/assets/Logo.css +1 -0
- package/assets/ProgressBar.css +1 -0
- package/assets/Radio.css +1 -0
- package/assets/RangeCalendar.css +1 -0
- package/assets/SearchField.css +1 -0
- package/assets/Select.css +1 -0
- package/assets/Skeleton.css +1 -0
- package/assets/Spinner.css +1 -0
- package/assets/Table.css +1 -0
- package/assets/Tabs.css +1 -0
- package/assets/Tag.css +1 -0
- package/assets/Text.css +1 -0
- package/assets/TextField.css +1 -0
- package/assets/Toast.css +1 -0
- package/assets/ToggleButtonGroup.css +1 -0
- package/assets/Tooltip.css +1 -0
- package/badge/index.cjs +1 -0
- package/badge/index.js +5 -0
- package/breadcrumbs/index.cjs +1 -0
- package/breadcrumbs/index.js +4 -0
- package/button/index.cjs +1 -0
- package/button/index.js +6 -0
- package/calendar/CalendarHeader.d.ts +2 -1
- package/calendar/index.cjs +1 -0
- package/calendar/index.js +5 -0
- package/card/index.cjs +1 -0
- package/card/index.js +10 -0
- package/character-counter/index.cjs +1 -0
- package/character-counter/index.js +4 -0
- package/check-CLF6Yxza.js +11 -0
- package/check-Dw9c62O4.cjs +6 -0
- package/checkbox/index.cjs +1 -0
- package/checkbox/index.js +6 -0
- package/chevron-down-C2E7aZ3N.cjs +6 -0
- package/chevron-down-Cd1bkzXT.js +13 -0
- package/clsx-C11secjj.cjs +1 -0
- package/clsx-OuTLNxxd.js +16 -0
- package/color-scheme-switch/index.cjs +1 -0
- package/color-scheme-switch/index.js +4 -0
- package/combobox/index.cjs +1 -0
- package/combobox/index.js +7 -0
- package/common/types.d.ts +2 -0
- package/context-B8cn10po.js +80 -0
- package/context-DjwhtgxQ.cjs +1 -0
- package/createLucideIcon-DAY4oS-S.cjs +21 -0
- package/createLucideIcon-DeWljiyi.js +79 -0
- package/date-field/index.cjs +1 -0
- package/date-field/index.js +8 -0
- package/date-picker/index.cjs +1 -0
- package/date-picker/index.js +5 -0
- package/dropdown/index.cjs +1 -0
- package/dropdown/index.js +5 -0
- package/field-error/FieldError.d.ts +4 -1
- package/field-error/index.cjs +1 -0
- package/field-error/index.js +4 -0
- package/file-upload/index.cjs +1 -0
- package/file-upload/index.js +4 -0
- package/filterDOMProps-BS2lrgFA.cjs +1 -0
- package/filterDOMProps-D6KHYVBX.js +24 -0
- package/focusSafely-Bqfo_DH7.cjs +1 -0
- package/focusSafely-C48ucRUz.js +56 -0
- package/getScrollParent-DuKmPmUa.cjs +1 -0
- package/getScrollParent-Ru2U2LlM.js +9 -0
- package/grid/Grid.d.ts +15 -4
- package/grid/GridItem.d.ts +31 -2
- package/grid/index.cjs +1 -0
- package/grid/index.d.ts +2 -2
- package/grid/index.js +8 -0
- package/heading/index.cjs +1 -0
- package/heading/index.js +4 -0
- package/index-BSMrH_Du.js +120 -0
- package/index-D97L3EBk.cjs +17 -0
- package/index.cjs +1 -169
- package/index.d.ts +0 -1
- package/index.js +127 -29979
- package/inertValue-B7loUihk.js +8 -0
- package/inertValue-BWmZ1afe.cjs +1 -0
- package/info-DkzVqB8I.js +38 -0
- package/info-DlzSeKbc.cjs +16 -0
- package/info-banner/index.cjs +1 -0
- package/info-banner/index.js +4 -0
- package/label/index.cjs +1 -0
- package/label/index.js +4 -0
- package/layout/index.cjs +1 -0
- package/layout/index.js +8 -0
- package/link/index.cjs +1 -0
- package/link/index.js +6 -0
- package/link-button/index.cjs +1 -0
- package/link-button/index.js +6 -0
- package/list-box/index.cjs +1 -0
- package/list-box/index.js +9 -0
- package/logo/index.cjs +1 -0
- package/logo/index.js +4 -0
- package/modal/index.cjs +1 -0
- package/modal/index.js +6 -0
- package/number-BE8InLgI.js +6 -0
- package/number-E0x3H9cL.cjs +1 -0
- package/package.json +4 -4
- package/progress-bar/index.cjs +1 -0
- package/progress-bar/index.js +4 -0
- package/radio/index.cjs +1 -0
- package/radio/index.js +5 -0
- package/scrollIntoView-ClEACHUk.js +57 -0
- package/scrollIntoView-DRSoJp89.cjs +1 -0
- package/search-field/index.cjs +1 -0
- package/search-field/index.js +4 -0
- package/select/index.cjs +1 -0
- package/select/index.js +4 -0
- package/skeleton/Skeleton.d.ts +5 -0
- package/skeleton/index.cjs +1 -0
- package/skeleton/index.js +4 -0
- package/spinner/index.cjs +1 -0
- package/spinner/index.js +4 -0
- package/square-arrow-out-up-right-BCAO2eJs.cjs +6 -0
- package/square-arrow-out-up-right-BkyqV2PN.js +15 -0
- package/table/Table.d.ts +7 -1
- package/table/index.cjs +1 -0
- package/table/index.js +9 -0
- package/tabs/index.cjs +1 -0
- package/tabs/index.js +4 -0
- package/tag/index.cjs +1 -0
- package/tag/index.js +5 -0
- package/text/index.cjs +1 -0
- package/text/index.js +4 -0
- package/textfield/index.cjs +1 -0
- package/textfield/index.js +7 -0
- package/theme/index.cjs +1 -0
- package/theme/index.d.ts +4 -0
- package/{theme.js → theme/index.js} +2 -2
- package/theme/tokens.d.ts +10 -0
- package/toast/index.cjs +1 -0
- package/toast/index.js +9 -0
- package/toggle-button/index.cjs +1 -0
- package/toggle-button/index.js +5 -0
- package/tokens-p6pg1Cea.cjs +1 -0
- package/{tokens-C0U7hdoO.js → tokens-xp-7KMK7.js} +18 -8
- package/tooltip/index.cjs +1 -0
- package/tooltip/index.js +5 -0
- package/triangle-alert-C0lvfCYH.cjs +6 -0
- package/triangle-alert-wxyxspAl.js +21 -0
- package/useButton-B1Fa-6qE.cjs +1 -0
- package/useButton-C-Lq7CNY.js +47 -0
- package/useCollator-C_ozeWLo.cjs +1 -0
- package/useCollator-CgZcHC8N.js +11 -0
- package/useControlledState-D0L6S_5r.cjs +1 -0
- package/useControlledState-u436Wbp1.js +30 -0
- package/useDateFormatter-C53Uxdli.js +1571 -0
- package/useDateFormatter-g2maMTGH.cjs +1 -0
- package/useDescription-CVKhFa3c.js +32 -0
- package/useDescription-DmQYSEES.cjs +1 -0
- package/useEvent-CjkbBniY.cjs +1 -0
- package/useEvent-Cyd2ZL0c.js +21 -0
- package/useField-B1RU0GKs.cjs +1 -0
- package/useField-BPMAlIbU.js +35 -0
- package/useFilter-ChIbnALW.js +35 -0
- package/useFilter-CtIwF2qW.cjs +1 -0
- package/useFocusRing-BDGH3lpn.js +82 -0
- package/useFocusRing-CbImDrwF.cjs +1 -0
- package/useFocusable-CaedRTpB.js +74 -0
- package/useFocusable-CuPQ7Cm5.cjs +1 -0
- package/useFormValidation-ClximP89.cjs +1 -0
- package/useFormValidation-R8hQIjWP.js +215 -0
- package/useHasTabbableChild-DgphNvnk.cjs +1 -0
- package/useHasTabbableChild-DsD9AJwE.js +34 -0
- package/useHighlightSelectionDescription-BizKjvPU.cjs +1 -0
- package/useHighlightSelectionDescription-DFfcgbUj.js +567 -0
- package/useHover-_mv5J4_q.cjs +1 -0
- package/useHover-qRAon4nS.js +490 -0
- package/useLabel-DDdAJ1JO.js +23 -0
- package/useLabel-m_S5xkHy.cjs +1 -0
- package/useLabels-BLOfc6Y-.cjs +1 -0
- package/useLabels-BZjoZA1Z.js +17 -0
- package/useListState-Ca2-uZMO.cjs +1 -0
- package/useListState-DFQ9d-uE.js +132 -0
- package/useLocalizedStringFormatter-D07YB2e1.js +22 -0
- package/useLocalizedStringFormatter-u9SJaOwk.cjs +1 -0
- package/useObserveElement-BdI4zgd7.js +27 -0
- package/useObserveElement-BzEr5D32.cjs +1 -0
- package/usePress-BFa6cT9o.cjs +7 -0
- package/usePress-CUJ3pMOw.js +542 -0
- package/useSingleSelectListState-C-nB8cug.js +34 -0
- package/useSingleSelectListState-MGNxUTum.cjs +1 -0
- package/useTextField-5OZQPyOW.js +86 -0
- package/useTextField-CtUDWsUl.cjs +1 -0
- package/useToggleState-Bz5rAf4C.js +18 -0
- package/useToggleState-DoIkSQdj.cjs +1 -0
- package/useUpdateEffect-CCDx8D4X.js +13 -0
- package/useUpdateEffect-sk3kiVGz.cjs +1 -0
- package/utils-BNtZbAib.cjs +1 -0
- package/utils-HNTsIwux.js +308 -0
- package/x-CvxiAZTW.cjs +6 -0
- package/x-JK7i-TQC.js +14 -0
- package/flex/Flex.d.ts +0 -17
- package/flex/FlexItem.d.ts +0 -15
- package/flex/index.d.ts +0 -2
- package/index.css +0 -1
- package/theme.cjs +0 -1
- package/tokens-COoF1t17.cjs +0 -1
- /package/{global.css → assets/global.css} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const G=require("./usePress-BFa6cT9o.cjs"),wr=require("./context-DjwhtgxQ.cjs"),He=require("react");function Pe(r,e){let t=He.useRef(null);return r&&t.current&&e(r,t.current)&&(r=t.current),t.current=r,r}function Y(r,e){return r-e*Math.floor(r/e)}const Ze=1721426;function w(r,e,t,n){e=Q(r,e);let a=e-1,o=-2;return t<=2?o=0:p(e)&&(o=-1),Ze-1+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*t-362)/12+o+n)}function p(r){return r%4===0&&(r%100!==0||r%400===0)}function Q(r,e){return r==="BC"?1-e:e}function j(r){let e="AD";return r<=0&&(e="BC",r=1-r),[e,r]}const xr={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class h{fromJulianDay(e){let t=e,n=t-Ze,a=Math.floor(n/146097),o=Y(n,146097),f=Math.floor(o/36524),c=Y(o,36524),i=Math.floor(c/1461),s=Y(c,1461),A=Math.floor(s/365),E=a*400+f*100+i*4+A+(f!==4&&A!==4?1:0),[C,M]=j(E),b=t-w(C,M,1,1),z=2;t<w(C,M,3,1)?z=0:p(M)&&(z=1);let Ae=Math.floor(((b+z)*12+373)/367),Dr=t-w(C,M,Ae,1)+1;return new l(C,M,Ae,Dr)}toJulianDay(e){return w(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return xr[p(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return p(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return e.era==="BC"}balanceDate(e){e.year<=0&&(e.era=e.era==="BC"?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const vr={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function $e(r,e){return e=u(e,r.calendar),r.era===e.era&&r.year===e.year&&r.month===e.month&&r.day===e.day}function Ar(r,e){return e=u(e,r.calendar),r=_(r),e=_(e),r.era===e.era&&r.year===e.year&&r.month===e.month}function Er(r,e){return he(r.calendar,e.calendar)&&$e(r,e)}function he(r,e){var t,n,a,o;return(o=(a=(t=r.isEqual)===null||t===void 0?void 0:t.call(r,e))!==null&&a!==void 0?a:(n=e.isEqual)===null||n===void 0?void 0:n.call(e,r))!==null&&o!==void 0?o:r.identifier===e.identifier}function Cr(r,e){return $e(r,We(e))}const Ir={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function de(r,e,t){let n=r.calendar.toJulianDay(r),a=t?Ir[t]:Jr(e),o=Math.ceil(n+1-a)%7;return o<0&&(o+=7),o}function Ve(r){return y(Date.now(),r)}function We(r){return rr(Ve(r))}function Ke(r,e){return r.calendar.toJulianDay(r)-e.calendar.toJulianDay(e)}function Ge(r,e){return Ee(r)-Ee(e)}function Ee(r){return r.hour*36e5+r.minute*6e4+r.second*1e3+r.millisecond}let ee=null;function ye(){return ee==null&&(ee=new Intl.DateTimeFormat().resolvedOptions().timeZone),ee}function _(r){return r.subtract({days:r.day-1})}function Yr(r){return r.add({days:r.calendar.getDaysInMonth(r)-r.day})}function Sr(r){return _(r.subtract({months:r.month-1}))}function Br(r){return r.calendar.getMinimumMonthInYear?r.calendar.getMinimumMonthInYear(r):1}function Tr(r){return r.calendar.getMinimumDayInMonth?r.calendar.getMinimumDayInMonth(r):1}function je(r,e,t){let n=de(r,e,t);return r.subtract({days:n})}function Ur(r,e,t){return je(r,e,t).add({days:6})}const Ce=new Map;function Rr(r){if(Intl.Locale){let t=Ce.get(r);return t||(t=new Intl.Locale(r).maximize().region,t&&Ce.set(r,t)),t}let e=r.split("-")[1];return e==="u"?void 0:e}function Jr(r){let e=Rr(r);return e&&vr[e]||0}function _r(r,e,t){let n=r.calendar.getDaysInMonth(r);return Math.ceil((de(_(r),e,t)+n)/7)}function Lr(r,e){return r&&e?r.compare(e)<=0?r:e:r||e}function kr(r,e){return r&&e?r.compare(e)>=0?r:e:r||e}function T(r){r=u(r,new h);let e=Q(r.era,r.year);return Xe(e,r.month,r.day,r.hour,r.minute,r.second,r.millisecond)}function Xe(r,e,t,n,a,o,f){let c=new Date;return c.setUTCHours(n,a,o,f),c.setUTCFullYear(r,e-1,t),c.getTime()}function fe(r,e){if(e==="UTC")return 0;if(r>0&&e===ye())return new Date(r).getTimezoneOffset()*-6e4;let{year:t,month:n,day:a,hour:o,minute:f,second:c}=ze(r,e);return Xe(t,n,a,o,f,c,0)-Math.floor(r/1e3)*1e3}const Ie=new Map;function ze(r,e){let t=Ie.get(e);t||(t=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Ie.set(e,t));let n=t.formatToParts(new Date(r)),a={};for(let o of n)o.type!=="literal"&&(a[o.type]=o.value);return{year:a.era==="BC"||a.era==="B"?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:a.hour==="24"?0:+a.hour,minute:+a.minute,second:+a.second}}const Ye=864e5;function Qr(r,e,t,n){return(t===n?[t]:[t,n]).filter(o=>Fr(r,e,o))}function Fr(r,e,t){let n=ze(t,e);return r.year===n.year&&r.month===n.month&&r.day===n.day&&r.hour===n.hour&&r.minute===n.minute&&r.second===n.second}function d(r,e,t="compatible"){let n=x(r);if(e==="UTC")return T(n);if(e===ye()&&t==="compatible"){n=u(n,new h);let i=new Date,s=Q(n.era,n.year);return i.setFullYear(s,n.month-1,n.day),i.setHours(n.hour,n.minute,n.second,n.millisecond),i.getTime()}let a=T(n),o=fe(a-Ye,e),f=fe(a+Ye,e),c=Qr(n,e,a-o,a-f);if(c.length===1)return c[0];if(c.length>1)switch(t){case"compatible":case"earlier":return c[0];case"later":return c[c.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(t){case"earlier":return Math.min(a-o,a-f);case"compatible":case"later":return Math.max(a-o,a-f);case"reject":throw new RangeError("No such absolute time found")}}function er(r,e,t="compatible"){return new Date(d(r,e,t))}function y(r,e){let t=fe(r,e),n=new Date(r+t),a=n.getUTCFullYear(),o=n.getUTCMonth()+1,f=n.getUTCDate(),c=n.getUTCHours(),i=n.getUTCMinutes(),s=n.getUTCSeconds(),A=n.getUTCMilliseconds();return new k(a<1?"BC":"AD",a<1?-a+1:a,o,f,e,t,c,i,s,A)}function rr(r){return new l(r.calendar,r.era,r.year,r.month,r.day)}function x(r,e){let t=0,n=0,a=0,o=0;if("timeZone"in r)({hour:t,minute:n,second:a,millisecond:o}=r);else if("hour"in r&&!e)return r;return e&&({hour:t,minute:n,second:a,millisecond:o}=e),new P(r.calendar,r.era,r.year,r.month,r.day,t,n,a,o)}function u(r,e){if(he(r.calendar,e))return r;let t=e.fromJulianDay(r.calendar.toJulianDay(r)),n=r.copy();return n.calendar=e,n.era=t.era,n.year=t.year,n.month=t.month,n.day=t.day,v(n),n}function Or(r,e,t){if(r instanceof k)return r.timeZone===e?r:Nr(r,e);let n=d(r,e,t);return y(n,e)}function qr(r){let e=T(r)-r.offset;return new Date(e)}function Nr(r,e){let t=T(r)-r.offset;return u(y(t,e),r.calendar)}const U=36e5;function X(r,e){let t=r.copy(),n="hour"in t?or(t,e):0;ce(t,e.years||0),t.calendar.balanceYearMonth&&t.calendar.balanceYearMonth(t,r),t.month+=e.months||0,ie(t),tr(t),t.day+=(e.weeks||0)*7,t.day+=e.days||0,t.day+=n,Hr(t),t.calendar.balanceDate&&t.calendar.balanceDate(t),t.year<1&&(t.year=1,t.month=1,t.day=1);let a=t.calendar.getYearsInEra(t);if(t.year>a){var o,f;let i=(o=(f=t.calendar).isInverseEra)===null||o===void 0?void 0:o.call(f,t);t.year=a,t.month=i?1:t.calendar.getMonthsInYear(t),t.day=i?1:t.calendar.getDaysInMonth(t)}t.month<1&&(t.month=1,t.day=1);let c=t.calendar.getMonthsInYear(t);return t.month>c&&(t.month=c,t.day=t.calendar.getDaysInMonth(t)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day)),t}function ce(r,e){var t,n;!((t=(n=r.calendar).isInverseEra)===null||t===void 0)&&t.call(n,r)&&(e=-e),r.year+=e}function ie(r){for(;r.month<1;)ce(r,-1),r.month+=r.calendar.getMonthsInYear(r);let e=0;for(;r.month>(e=r.calendar.getMonthsInYear(r));)r.month-=e,ce(r,1)}function Hr(r){for(;r.day<1;)r.month--,ie(r),r.day+=r.calendar.getDaysInMonth(r);for(;r.day>r.calendar.getDaysInMonth(r);)r.day-=r.calendar.getDaysInMonth(r),r.month++,ie(r)}function tr(r){r.month=Math.max(1,Math.min(r.calendar.getMonthsInYear(r),r.month)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day))}function v(r){r.calendar.constrainDate&&r.calendar.constrainDate(r),r.year=Math.max(1,Math.min(r.calendar.getYearsInEra(r),r.year)),tr(r)}function me(r){let e={};for(let t in r)typeof r[t]=="number"&&(e[t]=-r[t]);return e}function nr(r,e){return X(r,me(e))}function be(r,e){let t=r.copy();return e.era!=null&&(t.era=e.era),e.year!=null&&(t.year=e.year),e.month!=null&&(t.month=e.month),e.day!=null&&(t.day=e.day),v(t),t}function L(r,e){let t=r.copy();return e.hour!=null&&(t.hour=e.hour),e.minute!=null&&(t.minute=e.minute),e.second!=null&&(t.second=e.second),e.millisecond!=null&&(t.millisecond=e.millisecond),ar(t),t}function Pr(r){r.second+=Math.floor(r.millisecond/1e3),r.millisecond=F(r.millisecond,1e3),r.minute+=Math.floor(r.second/60),r.second=F(r.second,60),r.hour+=Math.floor(r.minute/60),r.minute=F(r.minute,60);let e=Math.floor(r.hour/24);return r.hour=F(r.hour,24),e}function ar(r){r.millisecond=Math.max(0,Math.min(r.millisecond,1e3)),r.second=Math.max(0,Math.min(r.second,59)),r.minute=Math.max(0,Math.min(r.minute,59)),r.hour=Math.max(0,Math.min(r.hour,23))}function F(r,e){let t=r%e;return t<0&&(t+=e),t}function or(r,e){return r.hour+=e.hours||0,r.minute+=e.minutes||0,r.second+=e.seconds||0,r.millisecond+=e.milliseconds||0,Pr(r)}function fr(r,e){let t=r.copy();return or(t,e),t}function Zr(r,e){return fr(r,me(e))}function ge(r,e,t,n){let a=r.copy();switch(e){case"era":{let c=r.calendar.getEras(),i=c.indexOf(r.era);if(i<0)throw new Error("Invalid era: "+r.era);i=m(i,t,0,c.length-1,n==null?void 0:n.round),a.era=c[i],v(a);break}case"year":var o,f;!((o=(f=a.calendar).isInverseEra)===null||o===void 0)&&o.call(f,a)&&(t=-t),a.year=m(r.year,t,-1/0,9999,n==null?void 0:n.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,r);break;case"month":a.month=m(r.month,t,1,r.calendar.getMonthsInYear(r),n==null?void 0:n.round);break;case"day":a.day=m(r.day,t,1,r.calendar.getDaysInMonth(r),n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return r.calendar.balanceDate&&r.calendar.balanceDate(a),v(a),a}function pe(r,e,t,n){let a=r.copy();switch(e){case"hour":{let o=r.hour,f=0,c=23;if((n==null?void 0:n.hourCycle)===12){let i=o>=12;f=i?12:0,c=i?23:11}a.hour=m(o,t,f,c,n==null?void 0:n.round);break}case"minute":a.minute=m(r.minute,t,0,59,n==null?void 0:n.round);break;case"second":a.second=m(r.second,t,0,59,n==null?void 0:n.round);break;case"millisecond":a.millisecond=m(r.millisecond,t,0,999,n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return a}function m(r,e,t,n,a=!1){if(a){r+=Math.sign(e),r<t&&(r=n);let o=Math.abs(e);e>0?r=Math.ceil(r/o)*o:r=Math.floor(r/o)*o,r>n&&(r=t)}else r+=e,r<t?r=n-(t-r-1):r>n&&(r=t+(r-n-1));return r}function cr(r,e){let t;if(e.years!=null&&e.years!==0||e.months!=null&&e.months!==0||e.weeks!=null&&e.weeks!==0||e.days!=null&&e.days!==0){let a=X(x(r),{years:e.years,months:e.months,weeks:e.weeks,days:e.days});t=d(a,r.timeZone)}else t=T(r)-r.offset;t+=e.milliseconds||0,t+=(e.seconds||0)*1e3,t+=(e.minutes||0)*6e4,t+=(e.hours||0)*36e5;let n=y(t,r.timeZone);return u(n,r.calendar)}function Vr(r,e){return cr(r,me(e))}function Wr(r,e,t,n){switch(e){case"hour":{let a=0,o=23;if((n==null?void 0:n.hourCycle)===12){let b=r.hour>=12;a=b?12:0,o=b?23:11}let f=x(r),c=u(L(f,{hour:a}),new h),i=[d(c,r.timeZone,"earlier"),d(c,r.timeZone,"later")].filter(b=>y(b,r.timeZone).day===c.day)[0],s=u(L(f,{hour:o}),new h),A=[d(s,r.timeZone,"earlier"),d(s,r.timeZone,"later")].filter(b=>y(b,r.timeZone).day===s.day).pop(),E=T(r)-r.offset,C=Math.floor(E/U),M=E%U;return E=m(C,t,Math.floor(i/U),Math.floor(A/U),n==null?void 0:n.round)*U+M,u(y(E,r.timeZone),r.calendar)}case"minute":case"second":case"millisecond":return pe(r,e,t,n);case"era":case"year":case"month":case"day":{let a=ge(x(r),e,t,n),o=d(a,r.timeZone);return u(y(o,r.timeZone),r.calendar)}default:throw new Error("Unsupported field "+e)}}function Kr(r,e,t){let n=x(r),a=L(be(n,e),e);if(a.compare(n)===0)return r;let o=d(a,r.timeZone,t);return u(y(o,r.timeZone),r.calendar)}function ir(r){return`${String(r.hour).padStart(2,"0")}:${String(r.minute).padStart(2,"0")}:${String(r.second).padStart(2,"0")}${r.millisecond?String(r.millisecond/1e3).slice(1):""}`}function lr(r){let e=u(r,new h),t;return e.era==="BC"?t=e.year===1?"0000":"-"+String(Math.abs(1-e.year)).padStart(6,"00"):t=String(e.year).padStart(4,"0"),`${t}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function sr(r){return`${lr(r)}T${ir(r)}`}function Gr(r){let e=Math.sign(r)<0?"-":"+";r=Math.abs(r);let t=Math.floor(r/36e5),n=r%36e5/6e4;return`${e}${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}function jr(r){return`${sr(r)}${Gr(r.offset)}[${r.timeZone}]`}function Me(r){let e=typeof r[0]=="object"?r.shift():new h,t;if(typeof r[0]=="string")t=r.shift();else{let f=e.getEras();t=f[f.length-1]}let n=r.shift(),a=r.shift(),o=r.shift();return[e,t,n,a,o]}var Xr=new WeakMap;class l{copy(){return this.era?new l(this.calendar,this.era,this.year,this.month,this.day):new l(this.calendar,this.year,this.month,this.day)}add(e){return X(this,e)}subtract(e){return nr(this,e)}set(e){return be(this,e)}cycle(e,t,n){return ge(this,e,t,n)}toDate(e){return er(this,e)}toString(){return lr(this)}compare(e){return Ke(this,e)}constructor(...e){G._class_private_field_init(this,Xr,{writable:!0,value:void 0});let[t,n,a,o,f]=Me(e);this.calendar=t,this.era=n,this.year=a,this.month=o,this.day=f,v(this)}}var zr=new WeakMap;class De{copy(){return new De(this.hour,this.minute,this.second,this.millisecond)}add(e){return fr(this,e)}subtract(e){return Zr(this,e)}set(e){return L(this,e)}cycle(e,t,n){return pe(this,e,t,n)}toString(){return ir(this)}compare(e){return Ge(this,e)}constructor(e=0,t=0,n=0,a=0){G._class_private_field_init(this,zr,{writable:!0,value:void 0}),this.hour=e,this.minute=t,this.second=n,this.millisecond=a,ar(this)}}var et=new WeakMap;class P{copy(){return this.era?new P(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new P(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return X(this,e)}subtract(e){return nr(this,e)}set(e){return be(L(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return ge(this,e,t,n);default:return pe(this,e,t,n)}}toDate(e,t){return er(this,e,t)}toString(){return sr(this)}compare(e){let t=Ke(this,e);return t===0?Ge(this,x(e)):t}constructor(...e){G._class_private_field_init(this,et,{writable:!0,value:void 0});let[t,n,a,o,f]=Me(e);this.calendar=t,this.era=n,this.year=a,this.month=o,this.day=f,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,v(this)}}var rt=new WeakMap;class k{copy(){return this.era?new k(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new k(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return cr(this,e)}subtract(e){return Vr(this,e)}set(e,t){return Kr(this,e,t)}cycle(e,t,n){return Wr(this,e,t,n)}toDate(){return qr(this)}toString(){return jr(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Or(e,this.timeZone).toDate().getTime()}constructor(...e){G._class_private_field_init(this,rt,{writable:!0,value:void 0});let[t,n,a,o,f]=Me(e),c=e.shift(),i=e.shift();this.calendar=t,this.era=n,this.year=a,this.month=o,this.day=f,this.timeZone=c,this.offset=i,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,v(this)}}const S=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],tt=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],q=[1867,1911,1925,1988,2018],g=["meiji","taisho","showa","heisei","reiwa"];function Se(r){const e=S.findIndex(([t,n,a])=>r.year<t||r.year===t&&r.month<n||r.year===t&&r.month===n&&r.day<a);return e===-1?S.length-1:e===0?0:e-1}function re(r){let e=q[g.indexOf(r.era)];if(!e)throw new Error("Unknown era: "+r.era);return new l(r.year+e,r.month,r.day)}class nt extends h{fromJulianDay(e){let t=super.fromJulianDay(e),n=Se(t);return new l(this,g[n],t.year-q[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(re(e))}balanceDate(e){let t=re(e),n=Se(t);g[n]!==e.era&&(e.era=g[n],e.year=t.year-q[n]),this.constrainDate(e)}constrainDate(e){let t=g.indexOf(e.era),n=tt[t];if(n!=null){let[a,o,f]=n,c=a-q[t];e.year=Math.max(1,Math.min(c,e.year)),e.year===c&&(e.month=Math.min(o,e.month),e.month===o&&(e.day=Math.min(f,e.day)))}if(e.year===1&&t>=0){let[,a,o]=S[t];e.month=Math.max(a,e.month),e.month===a&&(e.day=Math.max(o,e.day))}}getEras(){return g}getYearsInEra(e){let t=g.indexOf(e.era),n=S[t],a=S[t+1];if(a==null)return 9999-n[0]+1;let o=a[0]-n[0];return(e.month<a[1]||e.month===a[1]&&e.day<a[2])&&o++,o}getDaysInMonth(e){return super.getDaysInMonth(re(e))}getMinimumMonthInYear(e){let t=Be(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=Be(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function Be(r){if(r.year===1){let e=g.indexOf(r.era);return S[e]}}const ur=-543;class at extends h{fromJulianDay(e){let t=super.fromJulianDay(e),n=Q(t.era,t.year);return new l(this,n-ur,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Te(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(Te(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function Te(r){let[e,t]=j(r.year+ur);return new l(e,t,r.month,r.day)}const Z=1911;function $r(r){return r.era==="minguo"?r.year+Z:1-r.year+Z}function Ue(r){let e=r-Z;return e>0?["minguo",e]:["before_minguo",1-e]}class ot extends h{fromJulianDay(e){let t=super.fromJulianDay(e),n=Q(t.era,t.year),[a,o]=Ue(n);return new l(this,a,o,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Re(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=Ue($r(e));e.era=t,e.year=n}isInverseEra(e){return e.era==="before_minguo"}getDaysInMonth(e){return super.getDaysInMonth(Re(e))}getYearsInEra(e){return e.era==="before_minguo"?9999:9999-Z}constructor(...e){super(...e),this.identifier="roc"}}function Re(r){let[e,t]=j($r(r));return new l(e,t,r.month,r.day)}const Je=1948320,_e=[0,31,62,93,124,155,186,216,246,276,306,336];class ft{fromJulianDay(e){let t=e-Je,n=1+Math.floor((33*t+3)/12053),a=365*(n-1)+Math.floor((8*n+21)/33),o=t-a,f=o<216?Math.floor(o/31):Math.floor((o-6)/30),c=o-_e[f]+1;return new l(this,n,f+1,c)}toJulianDay(e){let t=Je-1+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=_e[e.month-1],t+=e.day,t}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||Y(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const te=78,Le=80;class ct extends h{fromJulianDay(e){let t=super.fromJulianDay(e),n=t.year-te,a=e-w(t.era,t.year,1,1),o;a<Le?(n--,o=p(t.year-1)?31:30,a+=o+155+90+10):(o=p(t.year)?31:30,a-=Le);let f,c;if(a<o)f=1,c=a+1;else{let i=a-o;i<155?(f=Math.floor(i/31)+2,c=i%31+1):(i-=155,f=Math.floor(i/30)+7,c=i%30+1)}return new l(this,n,f,c)}toJulianDay(e){let t=e.year+te,[n,a]=j(t),o,f;return p(a)?(o=31,f=w(n,a,3,21)):(o=30,f=w(n,a,3,22)),e.month===1?f+e.day-1:(f+=o+Math.min(e.month-2,5)*31,e.month>=8&&(f+=(e.month-7)*30),f+=e.day-1,f)}getDaysInMonth(e){return e.month===1&&p(e.year+te)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}const V=1948440,ke=1948439,$=1300,I=1600,it=460322;function W(r,e,t,n){return n+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+r-1}function hr(r,e,t){let n=Math.floor((30*(t-e)+10646)/10631),a=Math.min(12,Math.ceil((t-(29+W(e,n,1,1)))/29.5)+1),o=t-W(e,n,a,1)+1;return new l(r,n,a,o)}function Qe(r){return(14+11*r)%30<11}class we{fromJulianDay(e){return hr(this,V,e)}toJulianDay(e){return W(V,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return e.month===12&&Qe(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return Qe(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class lt extends we{fromJulianDay(e){return hr(this,ke,e)}toJulianDay(e){return W(ke,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}const st="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let le,B;function N(r){return it+B[r-$]}function R(r,e){let t=r-$,n=1<<11-(e-1);return le[t]&n?30:29}function Fe(r,e){let t=N(r);for(let n=1;n<e;n++)t+=R(r,n);return t}function Oe(r){return B[r+1-$]-B[r-$]}class ut extends we{fromJulianDay(e){let t=e-V,n=N($),a=N(I);if(t<n||t>a)return super.fromJulianDay(e);{let o=$-1,f=1,c=1;for(;c>0;){o++,c=t-N(o)+1;let i=Oe(o);if(c===i){f=12;break}else if(c<i){let s=R(o,f);for(f=1;c>s;)c-=s,f++,s=R(o,f);break}}return new l(this,o,f,t-Fe(o,f)+1)}}toJulianDay(e){return e.year<$||e.year>I?super.toJulianDay(e):V+Fe(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<$||e.year>I?super.getDaysInMonth(e):R(e.year,e.month)}getDaysInYear(e){return e.year<$||e.year>I?super.getDaysInYear(e):Oe(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",le||(le=new Uint16Array(Uint8Array.from(atob(st),e=>e.charCodeAt(0)).buffer)),!B){B=new Uint32Array(I-$+1);let e=0;for(let t=$;t<=I;t++){B[t-$]=e;for(let n=1;n<=12;n++)e+=R(t,n)}}}}const qe=347997,dr=1080,yr=24*dr,$t=29,ht=12*dr+793,dt=$t*yr+ht;function D(r){return Y(r*7+1,19)<7}function H(r){let e=Math.floor((235*r-234)/19),t=12084+13753*e,n=e*29+Math.floor(t/25920);return Y(3*(n+1),7)<3&&(n+=1),n}function yt(r){let e=H(r-1),t=H(r);return H(r+1)-t===356?2:t-e===382?1:0}function J(r){return H(r)+yt(r)}function mr(r){return J(r+1)-J(r)}function mt(r){let e=mr(r);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}function O(r,e){if(e>=6&&!D(r)&&e++,e===4||e===7||e===9||e===11||e===13)return 29;let t=mt(r);return e===2?t===2?30:29:e===3?t===0?29:30:e===6?D(r)?30:0:30}class bt{fromJulianDay(e){let t=e-qe,n=t*yr/dt,a=Math.floor((19*n+234)/235)+1,o=J(a),f=Math.floor(t-o);for(;f<1;)a--,o=J(a),f=Math.floor(t-o);let c=1,i=0;for(;i<f;)i+=O(a,c),c++;c--,i-=O(a,c);let s=f-i;return new l(this,a,c,s)}toJulianDay(e){let t=J(e.year);for(let n=1;n<e.month;n++)t+=O(e.year,n);return t+e.day+qe}getDaysInMonth(e){return O(e.year,e.month)}getMonthsInYear(e){return D(e.year)?13:12}getDaysInYear(e){return mr(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(D(t.year)&&!D(e.year)&&t.month>6?e.month--:!D(t.year)&&D(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const se=1723856,Ne=1824665,ue=5500;function K(r,e,t,n){return r+365*e+Math.floor(e/4)+30*(t-1)+n-1}function xe(r,e){let t=Math.floor(4*(e-r)/1461),n=1+Math.floor((e-K(r,t,1,1))/30),a=e+1-K(r,t,n,1);return[t,n,a]}function br(r){return Math.floor(r%4/3)}function gr(r,e){return e%13!==0?30:br(r)+5}class ve{fromJulianDay(e){let[t,n,a]=xe(se,e),o="AM";return t<=0&&(o="AA",t+=ue),new l(this,o,t,n,a)}toJulianDay(e){let t=e.year;return e.era==="AA"&&(t-=ue),K(se,t,e.month,e.day)}getDaysInMonth(e){return gr(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+br(e.year)}getYearsInEra(e){return e.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class gt extends ve{fromJulianDay(e){let[t,n,a]=xe(se,e);return t+=ue,new l(this,"AA",t,n,a)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class pt extends ve{fromJulianDay(e){let[t,n,a]=xe(Ne,e),o="CE";return t<=0&&(o="BCE",t=1-t),new l(this,o,t,n,a)}toJulianDay(e){let t=e.year;return e.era==="BCE"&&(t=1-t),K(Ne,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return e.era==="BCE"&&(t=1-t),gr(t,e.month)}isInverseEra(e){return e.era==="BCE"}balanceDate(e){e.year<=0&&(e.era=e.era==="BCE"?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return e.era==="BCE"?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}function Mt(r){switch(r){case"buddhist":return new at;case"ethiopic":return new ve;case"ethioaa":return new gt;case"coptic":return new pt;case"hebrew":return new bt;case"indian":return new ct;case"islamic-civil":return new we;case"islamic-tbla":return new lt;case"islamic-umalqura":return new ut;case"japanese":return new nt;case"persian":return new ft;case"roc":return new ot;case"gregory":default:return new h}}let ne=new Map;class pr{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(t)}`}formatRangeToParts(e,t){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),a=this.formatter.formatToParts(t);return[...n.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return xt()&&(this.resolvedHourCycle||(this.resolvedHourCycle=vt(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),e.calendar==="ethiopic-amete-alem"&&(e.calendar="ethioaa"),e}constructor(e,t={}){this.formatter=Mr(e,t),this.options=t}}const Dt={true:{ja:"h11"},false:{}};function Mr(r,e={}){if(typeof e.hour12=="boolean"&&wt()){e={...e};let a=Dt[String(e.hour12)][r.split("-")[0]],o=e.hour12?"h12":"h23";e.hourCycle=a??o,delete e.hour12}let t=r+(e?Object.entries(e).sort((a,o)=>a[0]<o[0]?-1:1).join():"");if(ne.has(t))return ne.get(t);let n=new Intl.DateTimeFormat(r,e);return ne.set(t,n),n}let ae=null;function wt(){return ae==null&&(ae=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),ae}let oe=null;function xt(){return oe==null&&(oe=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),oe}function vt(r,e){if(!e.timeStyle&&!e.hour)return;r=r.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),r+=(r.includes("-u-")?"":"-u")+"-nu-latn";let t=Mr(r,{...e,timeZone:void 0}),n=parseInt(t.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),a=parseInt(t.formatToParts(new Date(2020,2,3,23)).find(o=>o.type==="hour").value,10);if(n===0&&a===23)return"h23";if(n===24&&a===23)return"h24";if(n===0&&a===11)return"h11";if(n===12&&a===11)return"h12";throw new Error("Unexpected hour cycle result")}function At(r){r=Pe(r??{},Et);let{locale:e}=wr.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7();return He.useMemo(()=>new pr(e,r),[e,r])}function Et(r,e){if(r===e)return!0;let t=Object.keys(r),n=Object.keys(e);if(t.length!==n.length)return!1;for(let a of t)if(e[a]!==r[a])return!1;return!0}exports.$11d87f3f76e88657$export$93522d1a439f3617=rr;exports.$11d87f3f76e88657$export$b21e0b124e224484=x;exports.$11d87f3f76e88657$export$b4a036af3fc0b032=u;exports.$14e0f24ef4ac5c92$export$2061056d06d7cdf7=de;exports.$14e0f24ef4ac5c92$export$42c81a444fbfb5d4=je;exports.$14e0f24ef4ac5c92$export$461939dd4422153=Ve;exports.$14e0f24ef4ac5c92$export$5412ac11713b72ad=Br;exports.$14e0f24ef4ac5c92$export$5c333a116e949cdd=Lr;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=Cr;exports.$14e0f24ef4ac5c92$export$91b62ebf2ba703ee=Er;exports.$14e0f24ef4ac5c92$export$a18c89cbd24170ff=Ar;exports.$14e0f24ef4ac5c92$export$a2258d9c4118825c=Yr;exports.$14e0f24ef4ac5c92$export$a5a3b454ada2268e=_;exports.$14e0f24ef4ac5c92$export$a75f2bff57811055=kr;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=ye;exports.$14e0f24ef4ac5c92$export$b2f4953d301981d5=Tr;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=_r;exports.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3=We;exports.$14e0f24ef4ac5c92$export$dbc69fd56b53d5e=he;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=$e;exports.$14e0f24ef4ac5c92$export$ef8b6d9133084f4e=Ur;exports.$14e0f24ef4ac5c92$export$f91e89d3d0406102=Sr;exports.$35ea8db9cb2ccb90$export$680ea196effce5f=De;exports.$35ea8db9cb2ccb90$export$99faa760c7908e4f=l;exports.$3b62074eb05584b2$export$80ee6245ec4f29ec=h;exports.$5a387cc49350e6db$export$722debc0e56fea39=Pe;exports.$64244302c3013299$export$dd0bbc9b26defe37=Mt;exports.$896ba0a80a8f4d36$export$85fd5fdf27bacc79=At;exports.$fb18d541ea1ad717$export$ad991b66133851cf=pr;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { $ as o } from "./utils-HNTsIwux.js";
|
|
2
|
+
import { useState as $ } from "react";
|
|
3
|
+
let l = 0;
|
|
4
|
+
const d = /* @__PURE__ */ new Map();
|
|
5
|
+
function u(t) {
|
|
6
|
+
let [f, n] = $();
|
|
7
|
+
return o(() => {
|
|
8
|
+
if (!t) return;
|
|
9
|
+
let e = d.get(t);
|
|
10
|
+
if (e)
|
|
11
|
+
n(e.element.id);
|
|
12
|
+
else {
|
|
13
|
+
let r = `react-aria-description-${l++}`;
|
|
14
|
+
n(r);
|
|
15
|
+
let a = document.createElement("div");
|
|
16
|
+
a.id = r, a.style.display = "none", a.textContent = t, document.body.appendChild(a), e = {
|
|
17
|
+
refCount: 0,
|
|
18
|
+
element: a
|
|
19
|
+
}, d.set(t, e);
|
|
20
|
+
}
|
|
21
|
+
return e.refCount++, () => {
|
|
22
|
+
e && --e.refCount === 0 && (e.element.remove(), d.delete(t));
|
|
23
|
+
};
|
|
24
|
+
}, [
|
|
25
|
+
t
|
|
26
|
+
]), {
|
|
27
|
+
"aria-describedby": t ? f : void 0
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
u as $
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const $=require("./utils-BNtZbAib.cjs"),l=require("react");let o=0;const d=new Map;function u(t){let[f,n]=l.useState();return $.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!t)return;let e=d.get(t);if(e)n(e.element.id);else{let r=`react-aria-description-${o++}`;n(r);let a=document.createElement("div");a.id=r,a.style.display="none",a.textContent=t,document.body.appendChild(a),e={refCount:0,element:a},d.set(t,e)}return e.refCount++,()=>{e&&--e.refCount===0&&(e.element.remove(),d.delete(t))}},[t]),{"aria-describedby":t?f:void 0}}exports.$ef06256079686ba0$export$f8aeda7b10753fa1=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./utils-BNtZbAib.cjs"),$=require("react");function d(e,t,a,r){let c=u.$8ae05eaa5c114e9c$export$7f54fc3180508a52(a),f=a==null;$.useEffect(()=>{if(f||!e.current)return;let n=e.current;return n.addEventListener(t,c,r),()=>{n.removeEventListener(t,c,r)}},[e,t,r,f,c])}exports.$e9faafb641e167db$export$90fc3a17d93f704c=d;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { g as l } from "./utils-HNTsIwux.js";
|
|
2
|
+
import { useEffect as u } from "react";
|
|
3
|
+
function m(e, t, f, r) {
|
|
4
|
+
let a = l(f), c = f == null;
|
|
5
|
+
u(() => {
|
|
6
|
+
if (c || !e.current) return;
|
|
7
|
+
let n = e.current;
|
|
8
|
+
return n.addEventListener(t, a, r), () => {
|
|
9
|
+
n.removeEventListener(t, a, r);
|
|
10
|
+
};
|
|
11
|
+
}, [
|
|
12
|
+
e,
|
|
13
|
+
t,
|
|
14
|
+
r,
|
|
15
|
+
c,
|
|
16
|
+
a
|
|
17
|
+
]);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
m as $
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const b=require("./useLabel-m_S5xkHy.cjs"),r=require("./utils-BNtZbAib.cjs");function n(e){let{description:o,errorMessage:i,isInvalid:d,validationState:s}=e,{labelProps:l,fieldProps:a}=b.$d191a55c9702f145$export$8467354a121f1b9f(e),t=r.$bdb11010cef70236$export$b4cc09c592e8fdb8([!!o,!!i,d,s]),c=r.$bdb11010cef70236$export$b4cc09c592e8fdb8([!!o,!!i,d,s]);return a=r.$3ef42575df84b30b$export$9d1611c77c2fe928(a,{"aria-describedby":[t,c,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:l,fieldProps:a,descriptionProps:{id:t},errorMessageProps:{id:c}}}exports.$2baaea4c71418dea$export$294aa081a6c6f55d=n;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { $ as f } from "./useLabel-DDdAJ1JO.js";
|
|
2
|
+
import { f as l, d as c } from "./utils-HNTsIwux.js";
|
|
3
|
+
function $(e) {
|
|
4
|
+
let { description: a, errorMessage: o, isInvalid: i, validationState: d } = e, { labelProps: n, fieldProps: r } = f(e), s = l([
|
|
5
|
+
!!a,
|
|
6
|
+
!!o,
|
|
7
|
+
i,
|
|
8
|
+
d
|
|
9
|
+
]), t = l([
|
|
10
|
+
!!a,
|
|
11
|
+
!!o,
|
|
12
|
+
i,
|
|
13
|
+
d
|
|
14
|
+
]);
|
|
15
|
+
return r = c(r, {
|
|
16
|
+
"aria-describedby": [
|
|
17
|
+
s,
|
|
18
|
+
// Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA. See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
|
|
19
|
+
t,
|
|
20
|
+
e["aria-describedby"]
|
|
21
|
+
].filter(Boolean).join(" ") || void 0
|
|
22
|
+
}), {
|
|
23
|
+
labelProps: n,
|
|
24
|
+
fieldProps: r,
|
|
25
|
+
descriptionProps: {
|
|
26
|
+
id: s
|
|
27
|
+
},
|
|
28
|
+
errorMessageProps: {
|
|
29
|
+
id: t
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
$
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { $ as p } from "./useCollator-CgZcHC8N.js";
|
|
2
|
+
import { useCallback as o, useMemo as $ } from "react";
|
|
3
|
+
function F(h) {
|
|
4
|
+
let l = p({
|
|
5
|
+
usage: "search",
|
|
6
|
+
...h
|
|
7
|
+
}), r = o((a, e) => e.length === 0 ? !0 : (a = a.normalize("NFC"), e = e.normalize("NFC"), l.compare(a.slice(0, e.length), e) === 0), [
|
|
8
|
+
l
|
|
9
|
+
]), c = o((a, e) => e.length === 0 ? !0 : (a = a.normalize("NFC"), e = e.normalize("NFC"), l.compare(a.slice(-e.length), e) === 0), [
|
|
10
|
+
l
|
|
11
|
+
]), f = o((a, e) => {
|
|
12
|
+
if (e.length === 0) return !0;
|
|
13
|
+
a = a.normalize("NFC"), e = e.normalize("NFC");
|
|
14
|
+
let t = 0, m = e.length;
|
|
15
|
+
for (; t + m <= a.length; t++) {
|
|
16
|
+
let n = a.slice(t, t + m);
|
|
17
|
+
if (l.compare(e, n) === 0) return !0;
|
|
18
|
+
}
|
|
19
|
+
return !1;
|
|
20
|
+
}, [
|
|
21
|
+
l
|
|
22
|
+
]);
|
|
23
|
+
return $(() => ({
|
|
24
|
+
startsWith: r,
|
|
25
|
+
endsWith: c,
|
|
26
|
+
contains: f
|
|
27
|
+
}), [
|
|
28
|
+
r,
|
|
29
|
+
c,
|
|
30
|
+
f
|
|
31
|
+
]);
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
F as $
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const m=require("./useCollator-C_ozeWLo.cjs"),t=require("react");function u(h){let a=m.$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",...h}),r=t.useCallback((l,e)=>e.length===0?!0:(l=l.normalize("NFC"),e=e.normalize("NFC"),a.compare(l.slice(0,e.length),e)===0),[a]),o=t.useCallback((l,e)=>e.length===0?!0:(l=l.normalize("NFC"),e=e.normalize("NFC"),a.compare(l.slice(-e.length),e)===0),[a]),f=t.useCallback((l,e)=>{if(e.length===0)return!0;l=l.normalize("NFC"),e=e.normalize("NFC");let c=0,n=e.length;for(;c+n<=l.length;c++){let $=l.slice(c,c+n);if(a.compare(e,$)===0)return!0}return!1},[a]);return t.useMemo(()=>({startsWith:r,endsWith:o,contains:f}),[r,o,f])}exports.$bb77f239b46e8c72$export$3274cf84b703fff=u;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { b as T, c as v, d as m, e as V, f as P, g as C, h as w, i as B, j as D, k as E, l as G } from "./useHover-qRAon4nS.js";
|
|
2
|
+
import { useRef as x, useCallback as d, useState as g } from "react";
|
|
3
|
+
function L(b) {
|
|
4
|
+
let { isDisabled: $, onBlurWithin: n, onFocusWithin: i, onFocusWithinChange: t } = b, s = x({
|
|
5
|
+
isFocusWithin: !1
|
|
6
|
+
}), { addGlobalListener: a, removeAllGlobalListeners: f } = T(), o = d((e) => {
|
|
7
|
+
e.currentTarget.contains(e.target) && s.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget) && (s.current.isFocusWithin = !1, f(), n && n(e), t && t(!1));
|
|
8
|
+
}, [
|
|
9
|
+
n,
|
|
10
|
+
t,
|
|
11
|
+
s,
|
|
12
|
+
f
|
|
13
|
+
]), r = v(o), l = d((e) => {
|
|
14
|
+
if (!e.currentTarget.contains(e.target)) return;
|
|
15
|
+
const u = m(e.target), c = V(u);
|
|
16
|
+
if (!s.current.isFocusWithin && c === P(e.nativeEvent)) {
|
|
17
|
+
i && i(e), t && t(!0), s.current.isFocusWithin = !0, r(e);
|
|
18
|
+
let F = e.currentTarget;
|
|
19
|
+
a(u, "focus", (p) => {
|
|
20
|
+
if (s.current.isFocusWithin && !C(F, p.target)) {
|
|
21
|
+
let h = new u.defaultView.FocusEvent("blur", {
|
|
22
|
+
relatedTarget: p.target
|
|
23
|
+
});
|
|
24
|
+
w(h, F);
|
|
25
|
+
let W = B(h);
|
|
26
|
+
o(W);
|
|
27
|
+
}
|
|
28
|
+
}, {
|
|
29
|
+
capture: !0
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}, [
|
|
33
|
+
i,
|
|
34
|
+
t,
|
|
35
|
+
r,
|
|
36
|
+
a,
|
|
37
|
+
o
|
|
38
|
+
]);
|
|
39
|
+
return $ ? {
|
|
40
|
+
focusWithinProps: {
|
|
41
|
+
// These cannot be null, that would conflict in mergeProps
|
|
42
|
+
onFocus: void 0,
|
|
43
|
+
onBlur: void 0
|
|
44
|
+
}
|
|
45
|
+
} : {
|
|
46
|
+
focusWithinProps: {
|
|
47
|
+
onFocus: l,
|
|
48
|
+
onBlur: o
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function k(b = {}) {
|
|
53
|
+
let { autoFocus: $ = !1, isTextInput: n, within: i } = b, t = x({
|
|
54
|
+
isFocused: !1,
|
|
55
|
+
isFocusVisible: $ || D()
|
|
56
|
+
}), [s, a] = g(!1), [f, o] = g(() => t.current.isFocused && t.current.isFocusVisible), r = d(() => o(t.current.isFocused && t.current.isFocusVisible), []), l = d((c) => {
|
|
57
|
+
t.current.isFocused = c, a(c), r();
|
|
58
|
+
}, [
|
|
59
|
+
r
|
|
60
|
+
]);
|
|
61
|
+
E((c) => {
|
|
62
|
+
t.current.isFocusVisible = c, r();
|
|
63
|
+
}, [], {
|
|
64
|
+
isTextInput: n
|
|
65
|
+
});
|
|
66
|
+
let { focusProps: e } = G({
|
|
67
|
+
isDisabled: i,
|
|
68
|
+
onFocusChange: l
|
|
69
|
+
}), { focusWithinProps: u } = L({
|
|
70
|
+
isDisabled: !i,
|
|
71
|
+
onFocusWithinChange: l
|
|
72
|
+
});
|
|
73
|
+
return {
|
|
74
|
+
isFocused: s,
|
|
75
|
+
isFocusVisible: f,
|
|
76
|
+
focusProps: i ? u : e
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
export {
|
|
80
|
+
k as $,
|
|
81
|
+
L as a
|
|
82
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("./useHover-_mv5J4_q.cjs"),c=require("react");function g($){let{isDisabled:F,onBlurWithin:a,onFocusWithin:r,onFocusWithinChange:t}=$,i=c.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:d}=s.$03deb23ff14920c4$export$4eaf04e54aa8eed6(),o=c.useCallback(e=>{e.currentTarget.contains(e.target)&&i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,d(),a&&a(e),t&&t(!1))},[a,t,i,d]),n=s.$8a9cb279dc87e130$export$715c682d09d639cc(o),b=c.useCallback(e=>{if(!e.currentTarget.contains(e.target))return;const f=s.$431fbd86ca7dc216$export$b204af158042fbac(e.target),u=s.$d4ee10de306f2510$export$cd4e5573fbe2b576(f);if(!i.current.isFocusWithin&&u===s.$d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)){r&&r(e),t&&t(!0),i.current.isFocusWithin=!0,n(e);let p=e.currentTarget;l(f,"focus",h=>{if(i.current.isFocusWithin&&!s.$d4ee10de306f2510$export$4282f70798064fe0(p,h.target)){let x=new f.defaultView.FocusEvent("blur",{relatedTarget:h.target});s.$8a9cb279dc87e130$export$c2b7abe5d61ec696(x,p);let W=s.$8a9cb279dc87e130$export$525bc4921d56d4a(x);o(W)}},{capture:!0})}},[r,t,n,l,o]);return F?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:b,onBlur:o}}}function v($={}){let{autoFocus:F=!1,isTextInput:a,within:r}=$,t=c.useRef({isFocused:!1,isFocusVisible:F||s.$507fabe10e71c6fb$export$b9b3dfddab17db27()}),[i,l]=c.useState(!1),[d,o]=c.useState(()=>t.current.isFocused&&t.current.isFocusVisible),n=c.useCallback(()=>o(t.current.isFocused&&t.current.isFocusVisible),[]),b=c.useCallback(u=>{t.current.isFocused=u,l(u),n()},[n]);s.$507fabe10e71c6fb$export$ec71b4b83ac08ec3(u=>{t.current.isFocusVisible=u,n()},[],{isTextInput:a});let{focusProps:e}=s.$a1ea59d68270f0dd$export$f8168d8dd8fd66e6({isDisabled:r,onFocusChange:b}),{focusWithinProps:f}=g({isDisabled:!r,onFocusWithinChange:b});return{isFocused:i,isFocusVisible:d,focusProps:r?f:e}}exports.$9ab94262bd0047c7$export$420e68273165f4ec=g;exports.$f7dceffc5ad7768b$export$4e328f61c538687f=v;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { a as b, $ } from "./focusSafely-C48ucRUz.js";
|
|
2
|
+
import { l as p } from "./useHover-qRAon4nS.js";
|
|
3
|
+
import { e as P, d as i } from "./utils-HNTsIwux.js";
|
|
4
|
+
import c, { useRef as x, useEffect as v, useContext as D } from "react";
|
|
5
|
+
function s(e) {
|
|
6
|
+
if (!e) return;
|
|
7
|
+
let t = !0;
|
|
8
|
+
return (r) => {
|
|
9
|
+
let o = {
|
|
10
|
+
...r,
|
|
11
|
+
preventDefault() {
|
|
12
|
+
r.preventDefault();
|
|
13
|
+
},
|
|
14
|
+
isDefaultPrevented() {
|
|
15
|
+
return r.isDefaultPrevented();
|
|
16
|
+
},
|
|
17
|
+
stopPropagation() {
|
|
18
|
+
t && process.env.NODE_ENV !== "production" ? console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.") : t = !0;
|
|
19
|
+
},
|
|
20
|
+
continuePropagation() {
|
|
21
|
+
t = !1;
|
|
22
|
+
},
|
|
23
|
+
isPropagationStopped() {
|
|
24
|
+
return t;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
e(o), t && r.stopPropagation();
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function m(e) {
|
|
31
|
+
return {
|
|
32
|
+
keyboardProps: e.isDisabled ? {} : {
|
|
33
|
+
onKeyDown: s(e.onKeyDown),
|
|
34
|
+
onKeyUp: s(e.onKeyUp)
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
let l = /* @__PURE__ */ c.createContext(null);
|
|
39
|
+
function h(e) {
|
|
40
|
+
let t = D(l) || {};
|
|
41
|
+
$(t, e);
|
|
42
|
+
let { ref: r, ...o } = t;
|
|
43
|
+
return o;
|
|
44
|
+
}
|
|
45
|
+
const E = /* @__PURE__ */ c.forwardRef(function(t, r) {
|
|
46
|
+
let { children: o, ...a } = t, n = P(r), f = {
|
|
47
|
+
...a,
|
|
48
|
+
ref: n
|
|
49
|
+
};
|
|
50
|
+
return /* @__PURE__ */ c.createElement(l.Provider, {
|
|
51
|
+
value: f
|
|
52
|
+
}, o);
|
|
53
|
+
});
|
|
54
|
+
function K(e, t) {
|
|
55
|
+
let { focusProps: r } = p(e), { keyboardProps: o } = m(e), a = i(r, o), n = h(t), f = e.isDisabled ? {} : n, u = x(e.autoFocus);
|
|
56
|
+
v(() => {
|
|
57
|
+
u.current && t.current && b(t.current), u.current = !1;
|
|
58
|
+
}, [
|
|
59
|
+
t
|
|
60
|
+
]);
|
|
61
|
+
let d = e.excludeFromTabOrder ? -1 : 0;
|
|
62
|
+
return e.isDisabled && (d = void 0), {
|
|
63
|
+
focusableProps: i({
|
|
64
|
+
...a,
|
|
65
|
+
tabIndex: d
|
|
66
|
+
}, f)
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export {
|
|
70
|
+
K as $,
|
|
71
|
+
l as a,
|
|
72
|
+
E as b,
|
|
73
|
+
m as c
|
|
74
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const b=require("./focusSafely-Bqfo_DH7.cjs"),p=require("./useHover-_mv5J4_q.cjs"),u=require("./utils-BNtZbAib.cjs"),f=require("react");function s(e){if(!e)return;let t=!0;return r=>{let o={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(o),t&&r.stopPropagation()}}function l(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:s(e.onKeyDown),onKeyUp:s(e.onKeyUp)}}}let d=f.createContext(null);function x(e){let t=f.useContext(d)||{};b.$e7801be82b4b2a53$export$4debdb1a3f0fa79e(t,e);let{ref:r,...o}=t;return o}const P=f.forwardRef(function(t,r){let{children:o,...n}=t,a=u.$df56164dff5785e2$export$4338b53315abf666(r),c={...n,ref:a};return f.createElement(d.Provider,{value:c},o)});function v(e,t){let{focusProps:r}=p.$a1ea59d68270f0dd$export$f8168d8dd8fd66e6(e),{keyboardProps:o}=l(e),n=u.$3ef42575df84b30b$export$9d1611c77c2fe928(r,o),a=x(t),c=e.isDisabled?{}:a,i=f.useRef(e.autoFocus);f.useEffect(()=>{i.current&&t.current&&b.$3ad3f6e1647bc98d$export$80f3e147d781571c(t.current),i.current=!1},[t]);let $=e.excludeFromTabOrder?-1:0;return e.isDisabled&&($=void 0),{focusableProps:u.$3ef42575df84b30b$export$9d1611c77c2fe928({...n,tabIndex:$},c)}}exports.$46d819fcbaf35654$export$8f71654801c2f7cd=l;exports.$f645667febf57a63$export$13f3202a3e5ddd5=P;exports.$f645667febf57a63$export$4c014de7c8940b4c=v;exports.$f645667febf57a63$export$f9762fab77588ecb=d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const b=require("./utils-BNtZbAib.cjs"),s=require("react"),q=require("./useHover-_mv5J4_q.cjs");function B(a,e,t){let i=s.useRef(e),n=b.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{t&&t(i.current)});s.useEffect(()=>{var r;let l=a==null||(r=a.current)===null||r===void 0?void 0:r.form;return l==null||l.addEventListener("reset",n),()=>{l==null||l.removeEventListener("reset",n)}},[a,n])}const V={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},C={...V,customError:!0,valid:!1},$={isInvalid:!1,validationDetails:V,validationErrors:[]},T=s.createContext({}),I="__formValidationState"+Date.now();function U(a){if(a[I]){let{realtimeValidation:e,displayValidation:t,updateValidation:i,resetValidation:n,commitValidation:r}=a[I];return{realtimeValidation:e,displayValidation:t,updateValidation:i,resetValidation:n,commitValidation:r}}return j(a)}function j(a){let{isInvalid:e,validationState:t,name:i,value:n,builtinValidation:r,validate:l,validationBehavior:v="aria"}=a;t&&(e||(e=t==="invalid"));let o=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:C}:null,c=s.useMemo(()=>{if(!l||n==null)return null;let d=F(l,n);return D(d)},[l,n]);r!=null&&r.validationDetails.valid&&(r=void 0);let u=s.useContext(T),f=s.useMemo(()=>i?Array.isArray(i)?i.flatMap(d=>M(u[d])):M(u[i]):[],[u,i]),[w,A]=s.useState(u),[S,p]=s.useState(!1);u!==w&&(A(u),p(!1));let E=s.useMemo(()=>D(S?[]:f),[S,f]),L=s.useRef($),[y,g]=s.useState($),m=s.useRef($),R=()=>{if(!O)return;h(!1);let d=c||r||L.current;x(d,m.current)||(m.current=d,g(d))},[O,h]=s.useState(!1);return s.useEffect(R),{realtimeValidation:o||E||c||r||$,displayValidation:v==="native"?o||E||y:o||E||c||r||y,updateValidation(d){v==="aria"&&!x(y,d)?g(d):L.current=d},resetValidation(){let d=$;x(d,m.current)||(m.current=d,g(d)),v==="native"&&h(!1),p(!0)},commitValidation(){v==="native"&&h(!0),p(!0)}}}function M(a){return a?Array.isArray(a)?a:[a]:[]}function F(a,e){if(typeof a=="function"){let t=a(e);if(t&&typeof t!="boolean")return M(t)}return[]}function D(a){return a.length?{isInvalid:!0,validationErrors:a,validationDetails:C}:null}function x(a,e){return a===e?!0:!!a&&!!e&&a.isInvalid===e.isInvalid&&a.validationErrors.length===e.validationErrors.length&&a.validationErrors.every((t,i)=>t===e.validationErrors[i])&&Object.entries(a.validationDetails).every(([t,i])=>e.validationDetails[t]===i)}function Q(...a){let e=new Set,t=!1,i={...V};for(let l of a){var n,r;for(let v of l.validationErrors)e.add(v);t||(t=l.isInvalid);for(let v in i)(n=i)[r=v]||(n[r]=l.validationDetails[v])}return i.valid=!t,{isInvalid:t,validationErrors:[...e],validationDetails:i}}function _(a,e,t){let{validationBehavior:i,focus:n}=a;b.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(i==="native"&&(t!=null&&t.current)&&!t.current.disabled){let o=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";t.current.setCustomValidity(o),t.current.hasAttribute("title")||(t.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(H(t.current))}});let r=b.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{e.resetValidation()}),l=b.$8ae05eaa5c114e9c$export$7f54fc3180508a52(o=>{var c;e.displayValidation.isInvalid||e.commitValidation();let u=t==null||(c=t.current)===null||c===void 0?void 0:c.form;if(!o.defaultPrevented&&t&&u&&N(u)===t.current){var f;n?n():(f=t.current)===null||f===void 0||f.focus(),q.$507fabe10e71c6fb$export$8397ddfc504fdb9a("keyboard")}o.preventDefault()}),v=b.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{e.commitValidation()});s.useEffect(()=>{let o=t==null?void 0:t.current;if(!o)return;let c=o.form;return o.addEventListener("invalid",l),o.addEventListener("change",v),c==null||c.addEventListener("reset",r),()=>{o.removeEventListener("invalid",l),o.removeEventListener("change",v),c==null||c.removeEventListener("reset",r)}},[t,l,v,r,i])}function k(a){let e=a.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function H(a){return{isInvalid:!a.validity.valid,validationDetails:k(a),validationErrors:a.validationMessage?[a.validationMessage]:[]}}function N(a){for(let e=0;e<a.elements.length;e++){let t=a.elements[e];if(!t.validity.valid)return t}return null}exports.$99facab73266f662$export$5add1d006293d136=B;exports.$e5be200c675c3b3a$export$75ee7c75d68f5b0e=Q;exports.$e5be200c675c3b3a$export$a763b9476acd3eb=I;exports.$e5be200c675c3b3a$export$aca958c65c314e6c=V;exports.$e5be200c675c3b3a$export$dad6ae84456c676a=$;exports.$e5be200c675c3b3a$export$fc1a364ae1f3ff10=U;exports.$e93e671b31057976$export$b8473d3665f3a75a=_;
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { g as V, $ as j } from "./utils-HNTsIwux.js";
|
|
2
|
+
import { useRef as M, useEffect as S, useMemo as h, useContext as F, createContext as Q, useState as $ } from "react";
|
|
3
|
+
import { t as _ } from "./useHover-qRAon4nS.js";
|
|
4
|
+
function X(a, e, i) {
|
|
5
|
+
let t = M(e), n = V(() => {
|
|
6
|
+
i && i(t.current);
|
|
7
|
+
});
|
|
8
|
+
S(() => {
|
|
9
|
+
var r;
|
|
10
|
+
let l = a == null || (r = a.current) === null || r === void 0 ? void 0 : r.form;
|
|
11
|
+
return l == null || l.addEventListener("reset", n), () => {
|
|
12
|
+
l == null || l.removeEventListener("reset", n);
|
|
13
|
+
};
|
|
14
|
+
}, [
|
|
15
|
+
a,
|
|
16
|
+
n
|
|
17
|
+
]);
|
|
18
|
+
}
|
|
19
|
+
const L = {
|
|
20
|
+
badInput: !1,
|
|
21
|
+
customError: !1,
|
|
22
|
+
patternMismatch: !1,
|
|
23
|
+
rangeOverflow: !1,
|
|
24
|
+
rangeUnderflow: !1,
|
|
25
|
+
stepMismatch: !1,
|
|
26
|
+
tooLong: !1,
|
|
27
|
+
tooShort: !1,
|
|
28
|
+
typeMismatch: !1,
|
|
29
|
+
valueMissing: !1,
|
|
30
|
+
valid: !0
|
|
31
|
+
}, O = {
|
|
32
|
+
...L,
|
|
33
|
+
customError: !0,
|
|
34
|
+
valid: !1
|
|
35
|
+
}, f = {
|
|
36
|
+
isInvalid: !1,
|
|
37
|
+
validationDetails: L,
|
|
38
|
+
validationErrors: []
|
|
39
|
+
}, k = Q({}), w = "__formValidationState" + Date.now();
|
|
40
|
+
function Z(a) {
|
|
41
|
+
if (a[w]) {
|
|
42
|
+
let { realtimeValidation: e, displayValidation: i, updateValidation: t, resetValidation: n, commitValidation: r } = a[w];
|
|
43
|
+
return {
|
|
44
|
+
realtimeValidation: e,
|
|
45
|
+
displayValidation: i,
|
|
46
|
+
updateValidation: t,
|
|
47
|
+
resetValidation: n,
|
|
48
|
+
commitValidation: r
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
return q(a);
|
|
52
|
+
}
|
|
53
|
+
function q(a) {
|
|
54
|
+
let { isInvalid: e, validationState: i, name: t, value: n, builtinValidation: r, validate: l, validationBehavior: v = "aria" } = a;
|
|
55
|
+
i && (e || (e = i === "invalid"));
|
|
56
|
+
let o = e !== void 0 ? {
|
|
57
|
+
isInvalid: e,
|
|
58
|
+
validationErrors: [],
|
|
59
|
+
validationDetails: O
|
|
60
|
+
} : null, s = h(() => {
|
|
61
|
+
if (!l || n == null) return null;
|
|
62
|
+
let d = N(l, n);
|
|
63
|
+
return A(d);
|
|
64
|
+
}, [
|
|
65
|
+
l,
|
|
66
|
+
n
|
|
67
|
+
]);
|
|
68
|
+
r != null && r.validationDetails.valid && (r = void 0);
|
|
69
|
+
let u = F(k), c = h(() => t ? Array.isArray(t) ? t.flatMap((d) => x(u[d])) : x(u[t]) : [], [
|
|
70
|
+
u,
|
|
71
|
+
t
|
|
72
|
+
]), [B, T] = $(u), [D, b] = $(!1);
|
|
73
|
+
u !== B && (T(u), b(!1));
|
|
74
|
+
let p = h(() => A(D ? [] : c), [
|
|
75
|
+
D,
|
|
76
|
+
c
|
|
77
|
+
]), C = M(f), [E, y] = $(f), m = M(f), U = () => {
|
|
78
|
+
if (!R) return;
|
|
79
|
+
g(!1);
|
|
80
|
+
let d = s || r || C.current;
|
|
81
|
+
I(d, m.current) || (m.current = d, y(d));
|
|
82
|
+
}, [R, g] = $(!1);
|
|
83
|
+
return S(U), {
|
|
84
|
+
realtimeValidation: o || p || s || r || f,
|
|
85
|
+
displayValidation: v === "native" ? o || p || E : o || p || s || r || E,
|
|
86
|
+
updateValidation(d) {
|
|
87
|
+
v === "aria" && !I(E, d) ? y(d) : C.current = d;
|
|
88
|
+
},
|
|
89
|
+
resetValidation() {
|
|
90
|
+
let d = f;
|
|
91
|
+
I(d, m.current) || (m.current = d, y(d)), v === "native" && g(!1), b(!0);
|
|
92
|
+
},
|
|
93
|
+
commitValidation() {
|
|
94
|
+
v === "native" && g(!0), b(!0);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function x(a) {
|
|
99
|
+
return a ? Array.isArray(a) ? a : [
|
|
100
|
+
a
|
|
101
|
+
] : [];
|
|
102
|
+
}
|
|
103
|
+
function N(a, e) {
|
|
104
|
+
if (typeof a == "function") {
|
|
105
|
+
let i = a(e);
|
|
106
|
+
if (i && typeof i != "boolean") return x(i);
|
|
107
|
+
}
|
|
108
|
+
return [];
|
|
109
|
+
}
|
|
110
|
+
function A(a) {
|
|
111
|
+
return a.length ? {
|
|
112
|
+
isInvalid: !0,
|
|
113
|
+
validationErrors: a,
|
|
114
|
+
validationDetails: O
|
|
115
|
+
} : null;
|
|
116
|
+
}
|
|
117
|
+
function I(a, e) {
|
|
118
|
+
return a === e ? !0 : !!a && !!e && a.isInvalid === e.isInvalid && a.validationErrors.length === e.validationErrors.length && a.validationErrors.every((i, t) => i === e.validationErrors[t]) && Object.entries(a.validationDetails).every(([i, t]) => e.validationDetails[i] === t);
|
|
119
|
+
}
|
|
120
|
+
function ee(...a) {
|
|
121
|
+
let e = /* @__PURE__ */ new Set(), i = !1, t = {
|
|
122
|
+
...L
|
|
123
|
+
};
|
|
124
|
+
for (let l of a) {
|
|
125
|
+
var n, r;
|
|
126
|
+
for (let v of l.validationErrors) e.add(v);
|
|
127
|
+
i || (i = l.isInvalid);
|
|
128
|
+
for (let v in t) (n = t)[r = v] || (n[r] = l.validationDetails[v]);
|
|
129
|
+
}
|
|
130
|
+
return t.valid = !i, {
|
|
131
|
+
isInvalid: i,
|
|
132
|
+
validationErrors: [
|
|
133
|
+
...e
|
|
134
|
+
],
|
|
135
|
+
validationDetails: t
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function ae(a, e, i) {
|
|
139
|
+
let { validationBehavior: t, focus: n } = a;
|
|
140
|
+
j(() => {
|
|
141
|
+
if (t === "native" && (i != null && i.current) && !i.current.disabled) {
|
|
142
|
+
let o = e.realtimeValidation.isInvalid ? e.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
|
|
143
|
+
i.current.setCustomValidity(o), i.current.hasAttribute("title") || (i.current.title = ""), e.realtimeValidation.isInvalid || e.updateValidation(Y(i.current));
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
let r = V(() => {
|
|
147
|
+
e.resetValidation();
|
|
148
|
+
}), l = V((o) => {
|
|
149
|
+
var s;
|
|
150
|
+
e.displayValidation.isInvalid || e.commitValidation();
|
|
151
|
+
let u = i == null || (s = i.current) === null || s === void 0 ? void 0 : s.form;
|
|
152
|
+
if (!o.defaultPrevented && i && u && z(u) === i.current) {
|
|
153
|
+
var c;
|
|
154
|
+
n ? n() : (c = i.current) === null || c === void 0 || c.focus(), _("keyboard");
|
|
155
|
+
}
|
|
156
|
+
o.preventDefault();
|
|
157
|
+
}), v = V(() => {
|
|
158
|
+
e.commitValidation();
|
|
159
|
+
});
|
|
160
|
+
S(() => {
|
|
161
|
+
let o = i == null ? void 0 : i.current;
|
|
162
|
+
if (!o) return;
|
|
163
|
+
let s = o.form;
|
|
164
|
+
return o.addEventListener("invalid", l), o.addEventListener("change", v), s == null || s.addEventListener("reset", r), () => {
|
|
165
|
+
o.removeEventListener("invalid", l), o.removeEventListener("change", v), s == null || s.removeEventListener("reset", r);
|
|
166
|
+
};
|
|
167
|
+
}, [
|
|
168
|
+
i,
|
|
169
|
+
l,
|
|
170
|
+
v,
|
|
171
|
+
r,
|
|
172
|
+
t
|
|
173
|
+
]);
|
|
174
|
+
}
|
|
175
|
+
function P(a) {
|
|
176
|
+
let e = a.validity;
|
|
177
|
+
return {
|
|
178
|
+
badInput: e.badInput,
|
|
179
|
+
customError: e.customError,
|
|
180
|
+
patternMismatch: e.patternMismatch,
|
|
181
|
+
rangeOverflow: e.rangeOverflow,
|
|
182
|
+
rangeUnderflow: e.rangeUnderflow,
|
|
183
|
+
stepMismatch: e.stepMismatch,
|
|
184
|
+
tooLong: e.tooLong,
|
|
185
|
+
tooShort: e.tooShort,
|
|
186
|
+
typeMismatch: e.typeMismatch,
|
|
187
|
+
valueMissing: e.valueMissing,
|
|
188
|
+
valid: e.valid
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
function Y(a) {
|
|
192
|
+
return {
|
|
193
|
+
isInvalid: !a.validity.valid,
|
|
194
|
+
validationDetails: P(a),
|
|
195
|
+
validationErrors: a.validationMessage ? [
|
|
196
|
+
a.validationMessage
|
|
197
|
+
] : []
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
function z(a) {
|
|
201
|
+
for (let e = 0; e < a.elements.length; e++) {
|
|
202
|
+
let i = a.elements[e];
|
|
203
|
+
if (!i.validity.valid) return i;
|
|
204
|
+
}
|
|
205
|
+
return null;
|
|
206
|
+
}
|
|
207
|
+
export {
|
|
208
|
+
Z as $,
|
|
209
|
+
X as a,
|
|
210
|
+
ae as b,
|
|
211
|
+
w as c,
|
|
212
|
+
f as d,
|
|
213
|
+
ee as e,
|
|
214
|
+
L as f
|
|
215
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("./FocusScope-NaPbvuuS.cjs"),l=require("./utils-BNtZbAib.cjs"),s=require("react");function n(e,t){let r=t==null?void 0:t.isDisabled,[d,u]=s.useState(!1);return l.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(e!=null&&e.current&&!r){let a=()=>{if(e.current){let c=i.$9bf71ea28793e738$export$2d6ec8fc375ceafa(e.current,{tabbable:!0});u(!!c.nextNode())}};a();let b=new MutationObserver(a);return b.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{b.disconnect()}}}),r?!1:d}exports.$83013635b024ae3d$export$eac1895992b9f3d6=n;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { $ as s } from "./FocusScope-DwIqdYpQ.js";
|
|
2
|
+
import { $ as u } from "./utils-HNTsIwux.js";
|
|
3
|
+
import { useState as c } from "react";
|
|
4
|
+
function f(e, t) {
|
|
5
|
+
let a = t == null ? void 0 : t.isDisabled, [d, i] = c(!1);
|
|
6
|
+
return u(() => {
|
|
7
|
+
if (e != null && e.current && !a) {
|
|
8
|
+
let r = () => {
|
|
9
|
+
if (e.current) {
|
|
10
|
+
let l = s(e.current, {
|
|
11
|
+
tabbable: !0
|
|
12
|
+
});
|
|
13
|
+
i(!!l.nextNode());
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
r();
|
|
17
|
+
let b = new MutationObserver(r);
|
|
18
|
+
return b.observe(e.current, {
|
|
19
|
+
subtree: !0,
|
|
20
|
+
childList: !0,
|
|
21
|
+
attributes: !0,
|
|
22
|
+
attributeFilter: [
|
|
23
|
+
"tabIndex",
|
|
24
|
+
"disabled"
|
|
25
|
+
]
|
|
26
|
+
}), () => {
|
|
27
|
+
b.disconnect();
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
}), a ? !1 : d;
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
f as $
|
|
34
|
+
};
|